Menu

#3534 SDCDB clear breakpoint by filename:line not working

closed-fixed
None
Simulator
5
2026-08-18
2022-12-31
No

The SDCDB clear breakpoint by specifying 'filename:line' command is not working.

The versions of SDCDB with SDCC 3.6.0 and the current SVN head (with [patches:#449] and [patches:#450] applied) have this issue. I have not checked other versions of SDCC.

To reproduce compile the source and debug in SDCDB using the following commands:

sdcc --debug clearbug.c
sdcdb -cpu 8051 clearbug -z -b

Then in sdcdb set and clear the breakpoint.

(sdcdb)break clearbug:13
Breakpoint 1 at 0x81: file clearbug.c line 13
(sdcdb)clear clearbug:13
No breakpoint at address 0x7fffffff
1 Attachments

Related

Patches: #449
Patches: #450
Patches: #452

Discussion

  • Maarten Brock

    Maarten Brock - 2026-08-18
    • status: open --> closed-accepted
    • assigned_to: Maarten Brock
    • Category: other --> Simulator
     
  • Maarten Brock

    Maarten Brock - 2026-08-18

    [patches:#452] was only half the fix.

    • The clear command tried to clear the wrong line.
    • In asm mode it was using data from the C file.
    • And sdcdb could not even find the files due to a stray newline.
      And on top of that has the ucsim executable changed its name.

    Applied and fixed in [r16796].

     

    Related

    Commit: [r16796]
    Patches: #452


    Last edit: Maarten Brock 2026-08-18
  • Maarten Brock

    Maarten Brock - 2026-08-18
    • status: closed-accepted --> closed-fixed
     

Log in to post a comment.