This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Breakpoints numbering issue

Hi

When  I remove some breakpoints in my code, and  re enable it just after  I have a non constant breakpoint index

For example:

Execution stopped in Thread mode at 0x1FFE447A
0x1FFE447A   9,0   return result;
break -p "I:/try_env/src/tests/D_IP_ISI_SYN/imx8qm/pdma_bypass_dc0_iris_fetchlayer0_di0.c":547
Breakpoint 10 at 0x1FFF9A60
    on file pdma_bypass_dc0_iris_fetchlayer0_di0.c, line 547
delete 10
Breakpoint 10 deleted
break -p "I:/try_env/src/tests/D_IP_ISI_SYN/imx8qm/pdma_bypass_dc0_iris_fetchlayer0_di0.c":547
Breakpoint 11 at 0x1FFF9A60
    on file pdma_bypass_dc0_iris_fetchlayer0_di0.c, line 547
wait
continue

It sounds last breakpoint index is not removed from internal database of DS5.

It can be annoying when doing some scripting and using bkp index.

How to overcome this issue?

Issue is poping up with latest v 5.27.0 DS5 .

regards

claude

Parents
  • Hi Claude

    Related to the above, the internal "$" variable keeps track of the last "thing" (breakpoint, watchpoint...) created. You can check it with:

       print $

    (should return 13 above).

    You can use this, or an offset of it ($-3) to reference other breakpoints. Be careful though... doing something like

      print $-1

    will return 12 above, and set $=$-1, so then

     print $

    will return 12.

    Ronan

Reply
  • Hi Claude

    Related to the above, the internal "$" variable keeps track of the last "thing" (breakpoint, watchpoint...) created. You can check it with:

       print $

    (should return 13 above).

    You can use this, or an offset of it ($-3) to reference other breakpoints. Be careful though... doing something like

      print $-1

    will return 12 above, and set $=$-1, so then

     print $

    will return 12.

    Ronan

Children
No data