#1 Gdb plugin is broken when using gdb 7.0

closed-fixed
nobody
None
5
2010-10-28
2009-11-13
shleym2009
No

Gdb jEdit plugin does not stop at breakpoints since gdb was updated from 6.8 to 7.0 in out company.

The immediate reason for failure is that old version of gdb (running with --interpretor=mi switch) reported the following lines when running toward breakepoint:

^running
*stopped,reason=...

The new gdb version had started to report an extra line (*running) and the respopnce sequence now looks like
^running
*running,thread-id="all"
*stopped,reason=...

Gdb plugin stops reading gdb responses at the newly introduced line "*running".

IMHO the easiest fix could be done in the /home/titan/lenny/Downloads/GdbPlugin/gdb/core/Debuger.java file, private class OutOfBandHandler, method "void handle(String msg, GdbResult res)".

This method is dedicated to process all "*<some_word>,..." lines and the goal is to make it just skip "*report,..." line.

Adding two lines at the beginning of this file will achieve this goal:
public void handle(String msg, GdbResult res) {
if (msg.equals("running"))
return;
...
}

Discussion

  • shleym2009

    shleym2009 - 2009-12-21

    Fixed already by Shlomy

     
  • shleym2009

    shleym2009 - 2009-12-21
    • status: open --> open-fixed
     
  • Alan Ezust

    Alan Ezust - 2010-10-28
    • status: open-fixed --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks