]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ddb: de-duplicate decode_syscall()
authorMitchell Horne <mhorne@FreeBSD.org>
Sun, 2 Oct 2022 22:46:00 +0000 (19:46 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Sun, 6 Nov 2022 14:54:46 +0000 (10:54 -0400)
commita4dd26ead25db6d5aa07938ccb83413172c9cf2b
tree0595f8c3bf508de7d0bbf77818961c13c81411de
parent4718d86b3b1aac3f58c19fce34932fd88486af94
ddb: de-duplicate decode_syscall()

Only i386 and amd64 print the decoded syscall name in the backtrace.
This de-duplication facilitates further changes and adoption by other
platforms.

Reviewed by: jrtc27, markj, jhb
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36565

(cherry picked from commit 754cb545b68ba0a1643792763d000018ffe2afec)
(cherry picked from commit 6f8a182b15c4c14cfb9462b806a928ddaf47c87e)
(cherry picked from commit 89e5ef8917af900558c2d275f5d5c4c703520ead)
(cherry picked from commit 85b715baae22ca12f2d24e1b2980f3d5b32937b8)
sys/amd64/amd64/db_trace.c
sys/ddb/db_sym.c
sys/ddb/db_sym.h
sys/i386/i386/db_trace.c