freebsd-dev/sys/ddb
Mitchell Horne aba921bd9e ddb: print the actual syscall name
Some architectures will pretty-print a system call trap in the
backtrace. Rather than printing the symbol, use the syscallname()
function to pull the string from the sv_syscallnames array corresponding
to the process. This simplifies the function somewhat.

Mostly, this will result in dropping the "sys" prefix, e.g. "sys_exit"
will now be printed simply as "exit".

Make two minor tweaks to the function signature: use a u_int for the
syscall number since this is a more correct type (see the 'code' member
of struct syscall_args), and make the thread pointer the first argument.
The latter is more natural and conventional.

Suggested by:   jrtc27
Reviewed by:	jrtc27, markj, jhb
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D37200
2022-10-28 18:21:08 -03:00
..
db_access.c sys/ddb: Use C99 fixed-width integer types. 2021-12-28 09:41:47 -08:00
db_access.h
db_break.c ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_break.h ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_capture.c
db_command.c mac: kdb/ddb framework hooks 2022-07-18 22:06:13 +00:00
db_command.h
db_examine.c
db_expr.c fix style nit: space after if 2021-05-05 15:26:09 -06:00
db_input.c ddb: enable the use of ^C and ^S/^Q 2021-03-14 16:04:27 -07:00
db_lex.c Adjust db_flush_line() definition to avoid clang 15 warning 2022-07-19 20:37:15 +02:00
db_lex.h
db_main.c
db_output.c ddb: enable the use of ^C and ^S/^Q 2021-03-14 16:04:27 -07:00
db_output.h
db_print.c ddb: add ability to print user registers 2021-01-08 14:53:06 -04:00
db_ps.c Use atomic loads/stores when updating td->td_state 2021-02-18 14:02:48 +00:00
db_run.c ddb: Remove SOFTWARE_SSTEP support 2022-01-07 09:25:33 -07:00
db_script.c
db_sym.c ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
db_sym.h ddb: print the actual syscall name 2022-10-28 18:21:08 -03:00
db_textdump.c kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
db_thread.c Use kdb_thr_from_pid() in db_lookup_thread(). 2020-12-31 16:01:27 -08:00
db_variables.c
db_variables.h
db_watch.c ddb: annotate some commands with DB_CMD_MEMSAFE 2022-07-18 22:06:09 +00:00
db_watch.h
db_write_cmd.c ddb: clean up empty lines in .c and .h files 2020-09-01 22:14:30 +00:00
ddb.h mac: add new mac_ddb(4) policy 2022-07-18 22:06:15 +00:00