bugDDD - Bugs: bug #33172, DDD has problems parsing Temporary...


bug #33172: DDD has problems parsing Temporary breakpoints

Submitted by:  Matheus Ribeiro <matferib>
Submitted on:  Wed 27 Apr 2011 05:10:06 PM UTC  
Category: Breakpoint/WatchpointSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 14 Nov 2014 10:27:07 PM UTC, comment #1:

I've had the same problem. It breaks the "set execution point" feature, which is a significant problem.

Wed 27 Apr 2011 05:10:06 PM UTC, original submission:

There is a bug in DDD when setting temporary breakpoints (which is also used by other commands, like set execution point). The answer received from GDB is something like

Breakpoint X at ADDRESS: file FILENAME, line LINE. << for breakpoints
Temporary breakpoint X at ADDRESS: file FILENAME, line LINE. << for tbreaks

In PosBuffer.C, there is a function which parses gdb answers and acquires information from it: gdb_filter. This function tries several cases, one of them is the UP and DOWN command outputs, with this if statement:

int at_index = answer.index(" at ");
int br_index = answer.index("Break");
if ( (at_index > 0) && (br_index < 0) )

As can be see, it looks for an "at" string at sentence not started by Break. But his comparison is bugged for temporary breakpoints, the correct code is:

int at_index = answer.index(" at ");
int br_index = answer.index("Break");
int tbr_index = answer.index("Temporary break");
if ( (at_index > 0) && (br_index < 0) && (tbr_index < 0) )

This will avoid many weird messages like: cannot find file /usr/src/0x12345 for example. Also it will avoid many unecessary info sources by ddd trying to find this weird file. If anyone wants a patch, let me know.

Matheus Ribeiro <matferib>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by matferib (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1