Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Regression
@ 2009-02-10 15:14 Mark Kettenis
  0 siblings, 0 replies; 12+ messages in thread
From: Mark Kettenis @ 2009-02-10 15:14 UTC (permalink / raw)
  To: drow; +Cc: gdb

Hi Daniel,

The following commit breaks the signal command on OpenBSD.  Can you
please revert it for now?

2009-01-20  Daniel Jacobowitz  <dan@codesourcery.com>

        PR gdb/9346
        * 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.230
retrieving revision 1.229
diff -u -p -r1.230 -r1.229
--- infcmd.c	20 Jan 2009 15:33:13 -0000	1.230
+++ infcmd.c	18 Jan 2009 17:42:16 -0000	1.229
@@ -1145,7 +1145,11 @@ signal_command (char *signum_exp, int fr
     }
 
   clear_proceed_status ();
-  proceed ((CORE_ADDR) -1, oursig, 0);
+  /* "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 until we reach a different source line with pc greater than


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Regression
@ 2009-02-10 15:17 Mark Kettenis
  2009-02-10 15:27 ` Regression Daniel Jacobowitz
  0 siblings, 1 reply; 12+ messages in thread
From: Mark Kettenis @ 2009-02-10 15:17 UTC (permalink / raw)
  To: drow; +Cc: gdb

Hi Daniel,

The following commit breaks the signal command on OpenBSD.  Can you
please revert it for now?

2009-01-20  Daniel Jacobowitz  <dan@codesourcery.com>

        PR gdb/9346
        * 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.230
retrieving revision 1.229
diff -u -p -r1.230 -r1.229
--- infcmd.c	20 Jan 2009 15:33:13 -0000	1.230
+++ infcmd.c	18 Jan 2009 17:42:16 -0000	1.229
@@ -1145,7 +1145,11 @@ signal_command (char *signum_exp, int fr
     }
 
   clear_proceed_status ();
-  proceed ((CORE_ADDR) -1, oursig, 0);
+  /* "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 until we reach a different source line with pc greater than


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

end of thread, other threads:[~2009-02-11 15:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-10 15:14 Regression Mark Kettenis
2009-02-10 15:17 Regression Mark Kettenis
2009-02-10 15:27 ` Regression Daniel Jacobowitz
2009-02-10 15:47   ` Regression Mark Kettenis
2009-02-10 16:06     ` Regression Pedro Alves
2009-02-10 16:18       ` Regression Tristan Gingold
2009-02-10 18:00       ` Regression Pedro Alves
2009-02-10 18:40         ` Regression Mark Kettenis
2009-02-10 19:05           ` Regression Pedro Alves
2009-02-10 19:18             ` Regression Pedro Alves
2009-02-10 19:27               ` Regression Pedro Alves
2009-02-11 15:50                 ` Regression Daniel Jacobowitz

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