bug in gdb/target.c:target_signal_to_name
Andrew Cagney
ac131313@cygnus.com
Sun Jan 13 13:55:00 GMT 2002
> On Sun, Jan 13, 2002 at 04:10:05PM -0500, Andrew Cagney wrote:
>
>> --- 214,223 ----
>> /* I think the code which prints this will always print it along with
>> the string, so no need to be verbose. */
>> return "?";
>> ! else if ((sig >= TARGET_SIGNAL_FIRST) && (sig <= TARGET_SIGNAL_LAST))
>> ! return signals[sig].name;
>> ! else
>> ! return signals[sig].name;
>> }
>> > /* Given a name, return its signal. */
>
>
> That's probably not what you meant to commit, since both cases are the
> same.
Er, no. Lets try the attached. Turns out that
signals[TARGET_SIGNAL_UNKNOWN].name is NULL.
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020113/b389ff78/attachment.ksh>
More information about the Gdb-patches
mailing list