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
Unknown Object (File)
Feb 24 2024, 2:06 PM
Unknown Object (File)
Feb 23 2024, 10:47 AM
Unknown Object (File)
Feb 2 2024, 2:03 PM
Unknown Object (File)
Dec 26 2023, 8:32 AM
Unknown Object (File)
Dec 22 2023, 9:33 PM
Unknown Object (File)
Dec 19 2023, 1:53 PM
Unknown Object (File)
Dec 12 2023, 2:12 AM
Unknown Object (File)
Dec 3 2023, 1:50 PM

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