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

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.

Reviewed by:	alfredo
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D28046
This commit is contained in:
Mitchell Horne 2021-01-22 14:56:56 -04:00
parent 195cd6ae24
commit 57a543d8b8

View File

@ -98,10 +98,7 @@ gdb_cpu_signal(int vector, int dummy __unused)
return (SIGTRAP);
#endif
if (vector <= 255)
return (vector);
else
return (SIGEMT);
return (SIGEMT);
}
void