This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: bug in gdb/target.c:target_signal_to_name
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Petr Ledvina <ledvinap at kae dot zcu dot cz>, gdb-patches at sources dot redhat dot com
- Date: Sun, 13 Jan 2002 16:12:43 -0500
- Subject: Re: bug in gdb/target.c:target_signal_to_name
- References: <Pine.OSF.4.33.0111301833160.4557-100000@eryx1.zcu.cz> <3C41F7AD.7040708@cygnus.com>
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.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer