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

 
 

bug #33172: DDD has problems parsing Temporary breakpoints

Submitter:  Matheus Ribeiro <matferib>
Submitted:  Wed 27 Apr 2011 05:10:06 PM UTC
   
 
Category:  Breakpoint/Watchpoint Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  eickeler
Open/Closed:  Closed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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.

Anonymous
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:

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

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:

<code>
        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) )
</code>

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by eickeler (Updated the item)
  • -email is unavailable- added by matferib (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-24 eickeler Open/ClosedOpen Closed
    2021-01-14 eickeler StatusNone Fixed
    2021-01-14 eickeler Assigned toNone eickeler

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code