Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Patch: Remove STOP_UNKNOWN/BREAKPOINT_HIT from infrun.c
@ 2007-02-22 14:33 Markus Deuling
  2007-02-22 14:36 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Deuling @ 2007-02-22 14:33 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

Hi,

> Sorry, I missed this message.  I think we can remove both of them.

as discussed this patch removes STOP_UNKNOWN and BREAKPOINT_HIT from infrun.c


Ok to commit?


ChangeLog:

      * infrun.c (inferior_stop_reason, print_stop_reason): Remove
      BREAKPOINT_HIT and STOP_UNKNOWN.

Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com 

=========================================

diff -urN src/gdb/infrun.c dev/gdb/infrun.c
--- src/gdb/infrun.c    2007-01-10 21:10:23.000000000 +0100
+++ dev/gdb/infrun.c    2007-02-22 15:23:34.000000000 +0100
@@ -904,12 +904,8 @@
  to the interface from within handle_inferior_event(). */
enum inferior_stop_reason
{
-  /* We don't know why. */
-  STOP_UNKNOWN,
 /* Step, next, nexti, stepi finished. */
 END_STEPPING_RANGE,
-  /* Found breakpoint. */
-  BREAKPOINT_HIT,
 /* Inferior terminated by signal. */
 SIGNAL_EXITED,
 /* Inferior exited. */
@@ -2986,10 +2982,6 @@
{
 switch (stop_reason)
   {
-    case STOP_UNKNOWN:
-      /* We don't deal with these cases from handle_inferior_event()
-         yet. */
-      break;
   case END_STEPPING_RANGE:
     /* We are done with a step/next/si/ni command. */
     /* For now print nothing. */
@@ -3001,10 +2993,6 @@
          (uiout, "reason",
           async_reason_lookup (EXEC_ASYNC_END_STEPPING_RANGE));
     break;
-    case BREAKPOINT_HIT:
-      /* We found a breakpoint. */
-      /* For now print nothing. */
-      break;
   case SIGNAL_EXITED:
     /* The inferior was terminated by a signal. */
     annotate_signalled ();



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Patch: Remove STOP_UNKNOWN/BREAKPOINT_HIT from infrun.c
@ 2007-02-22 14:51 Markus Deuling
  2007-02-22 14:55 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Deuling @ 2007-02-22 14:51 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

Hi,

sorry for the mangled patch. From now on I attach the patches. I give up to configure
Thunderbird :-(

> Sorry, I missed this message.  I think we can remove both of them.

As discussed this patch removes STOP_UNKNOWN and BREAKPOINT_HIT from infrun.c


Ok to commit?


ChangeLog:

     * infrun.c (inferior_stop_reason, print_stop_reason): Remove
     BREAKPOINT_HIT and STOP_UNKNOWN.

Regards,
Markus

-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com 


[-- Attachment #2: diff-cleanup-infrun --]
[-- Type: text/plain, Size: 1162 bytes --]

diff -urN src/gdb/infrun.c dev/gdb/infrun.c
--- src/gdb/infrun.c	2007-01-10 21:10:23.000000000 +0100
+++ dev/gdb/infrun.c	2007-02-22 15:23:34.000000000 +0100
@@ -904,12 +904,8 @@
    to the interface from within handle_inferior_event(). */
 enum inferior_stop_reason
 {
-  /* We don't know why. */
-  STOP_UNKNOWN,
   /* Step, next, nexti, stepi finished. */
   END_STEPPING_RANGE,
-  /* Found breakpoint. */
-  BREAKPOINT_HIT,
   /* Inferior terminated by signal. */
   SIGNAL_EXITED,
   /* Inferior exited. */
@@ -2986,10 +2982,6 @@
 {
   switch (stop_reason)
     {
-    case STOP_UNKNOWN:
-      /* We don't deal with these cases from handle_inferior_event()
-         yet. */
-      break;
     case END_STEPPING_RANGE:
       /* We are done with a step/next/si/ni command. */
       /* For now print nothing. */
@@ -3001,10 +2993,6 @@
 	    (uiout, "reason",
 	     async_reason_lookup (EXEC_ASYNC_END_STEPPING_RANGE));
       break;
-    case BREAKPOINT_HIT:
-      /* We found a breakpoint. */
-      /* For now print nothing. */
-      break;
     case SIGNAL_EXITED:
       /* The inferior was terminated by a signal. */
       annotate_signalled ();


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

end of thread, other threads:[~2007-02-22 15:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-22 14:33 Patch: Remove STOP_UNKNOWN/BREAKPOINT_HIT from infrun.c Markus Deuling
2007-02-22 14:36 ` Daniel Jacobowitz
2007-02-22 14:51 Markus Deuling
2007-02-22 14:55 ` Daniel Jacobowitz
2007-02-22 15:15   ` Ulrich Weigand

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