Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFC: Do not call write_pc for "signal SIGINT"
@ 2008-08-28 15:56 Daniel Jacobowitz
  2008-08-28 18:13 ` Michael Snyder
  0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2008-08-28 15:56 UTC (permalink / raw)
  To: gdb-patches

This FIXME has been there since the dawn of CVS.  Removing it causes
no testsuite regressions on x86_64-linux; I don't think it will on
other platforms either.

Any comments on this patch?  Otherwise I'll check it in after a little
while.

This isn't the only place where Linux's internal errno codes can leak
back into user programs because of how we fiddle orig_eax.  I'll file
another bug report about that.

-- 
Daniel Jacobowitz
CodeSourcery

2008-08-28  Daniel Jacobowitz  <dan@codesourcery.com>

	PR gdb/2241
	* infcmd.c (signal_command): Do not specify a resume PC.

Index: infcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/infcmd.c,v
retrieving revision 1.200
diff -u -p -r1.200 infcmd.c
--- infcmd.c	21 Aug 2008 20:13:08 -0000	1.200
+++ infcmd.c	28 Aug 2008 15:51:15 -0000
@@ -1123,11 +1123,7 @@ signal_command (char *signum_exp, int fr
     }
 
   clear_proceed_status ();
-  /* "signal 0" should not get stuck if we are stopped at a breakpoint.
-     FIXME: Neither should "signal foo" but when I tried passing
-     (CORE_ADDR)-1 unconditionally I got a testsuite failure which I haven't
-     tried to track down yet.  */
-  proceed (oursig == TARGET_SIGNAL_0 ? (CORE_ADDR) -1 : stop_pc, oursig, 0);
+  proceed ((CORE_ADDR) -1, oursig, 0);
 }
 
 /* Proceed until we reach a different source line with pc greater than


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-20 15:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-28 15:56 RFC: Do not call write_pc for "signal SIGINT" Daniel Jacobowitz
2008-08-28 18:13 ` Michael Snyder
2008-08-28 18:19   ` Daniel Jacobowitz
2008-08-28 18:38     ` Michael Snyder
2008-08-28 22:33       ` Daniel Jacobowitz
2008-11-18  4:18         ` Daniel Jacobowitz
2008-11-18  5:46           ` Pedro Alves
2009-01-20 15:32           ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox