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)
Sat, Jun 28, 9:41 AM
Unknown Object (File)
Wed, Jun 25, 11:12 AM
Unknown Object (File)
Wed, Jun 25, 11:12 AM
Unknown Object (File)
Wed, Jun 25, 11:11 AM
Unknown Object (File)
Tue, Jun 24, 2:45 PM
Unknown Object (File)
Sun, Jun 15, 8:48 PM
Unknown Object (File)
Fri, Jun 13, 7:23 PM
Unknown Object (File)
Wed, Jun 11, 7:38 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36043
Build 32932: arc lint + arc unit

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