Page MenuHomeFreeBSD

gdb: only return signal values for powerpc's gdb_cpu_signal()
ClosedPublic

Authored by mhorne on Jan 8 2021, 8:31 PM.
Tags
None
Referenced Files
F103079098: D28046.diff
Wed, Nov 20, 4:15 PM
Unknown Object (File)
Tue, Nov 12, 7:20 AM
Unknown Object (File)
Sat, Nov 2, 5:25 PM
Unknown Object (File)
Fri, Oct 25, 6:09 AM
Unknown Object (File)
Oct 20 2024, 2:36 AM
Unknown Object (File)
Oct 20 2024, 2:36 AM
Unknown Object (File)
Oct 20 2024, 2:36 AM
Unknown Object (File)
Oct 20 2024, 2:14 AM

Details

Summary

The values returned by this function are reported to the gdb client as
the reason for the break in execution, a signal value such as SIGTRAP,
SIGEMT, or SIGSEGV. As such, exact vector numbers can be misidentified.
Return SIGEMT in the default case instead.

For reference, the list of gdb signal values:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=include/gdb/signals.def

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mhorne requested review of this revision.Jan 8 2021, 8:31 PM

Ping. Any opposition to this patch?

@mhorne looks good to me. I also look on other platforms and your patch makes sense.

This revision is now accepted and ready to land.Jan 21 2021, 8:43 PM