This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/10079] Commands attached to a breakpoint do not execute in MI mode


------- Additional Comments From maxim2405 at gmail dot com  2009-04-20 20:03 -------
(In reply to comment #1)
> I wonder if this patch would fix it:
> http://sourceware.org/ml/gdb-patches/2008-07/msg00583.html

Yes, it seems to work fine. Only, it did not apply directly.

I had to modify it like this :
Index: gdb/top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.163
diff -u -r1.163 top.c
--- gdb/top.c   25 Mar 2009 21:42:34 -0000      1.163
+++ gdb/top.c   20 Apr 2009 20:01:45 -0000
@@ -472,6 +472,9 @@
          warned = 1;
        }
     }
+
+   /* Do any commands attached to breakpoint we stopped at.  */
+  bpstat_do_actions ();
 }

 /* Read commands from `instream' and execute them
@@ -518,10 +521,6 @@
        }

       execute_command (command, instream == stdin);
-
-      /* Do any commands attached to breakpoint we are stopped at.  */
-      bpstat_do_actions ();
-
       do_cleanups (old_chain);

       if (display_time)

So what should be done now ? Is it going to be applied against the top of the
GDB FSF tree ?




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10079

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]