Skip to content

add conditional breakpoint UI support #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cs01 opened this issue Apr 17, 2018 · 0 comments · Fixed by #287
Closed

add conditional breakpoint UI support #185

cs01 opened this issue Apr 17, 2018 · 0 comments · Fixed by #287
Labels
enhancement good first issue good first contibutions

Comments

@cs01
Copy link
Owner

cs01 commented Apr 17, 2018

Add an input to supply a condition for a breakpoint, and display the condition for the breakpoint if there is one.

Documentation copied below from https://www.sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpoint-Commands.html#GDB_002fMI-Breakpoint-Commands

The -break-condition Command
Synopsis
-break-condition number expr
Breakpoint number will stop the program only if the condition in expr is true. The condition becomes part of the ‘-break-list’ output (see the description of the ‘-break-list’ command below).

GDB Command
The corresponding GDB command is ‘condition’.

Example
(gdb)
-break-condition 1 1
^done
(gdb)
-break-list
^done,BreakpointTable={nr_rows="1",nr_cols="6",
hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],
body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",
addr="0x000100d0",func="main",file="hello.c",fullname="/home/foo/hello.c",
line="5",cond="1",thread-groups=["i1"],times="0",ignore="3"}]}
(gdb)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue good first contibutions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant