Re: (no subject)
kevin <[email protected]>
| Newsgroups | gmane.comp.gdb.general |
|---|---|
| Message-ID | <[email protected]> |
You need an 'if' in your break statement:
(gdb) b if 1 i>5
or
(gdb) b if i > 5 && i < 9
if you want a range.
-Kevin
Fred J. wrote:
> Hi
>
> I am running gdb under emacs, M-x gdb executable.file, it is a c++
> project spanning multiple files, in one of the files, there is a
> function looking like this
> void fun_name(int i){
> if(i >= my_tag){
> ...
>
> I place a breakpoint at the line "if(i >= my_tab)" then on the (gdb)
> shell,
> Breakpoint 1 at 0x804b806: file somefile.cpp, line 91.
> (gdb) b 1 i>5
> Junk at end of arguments.
> (gdb)
>
> how can I get the conditional break to work.
>
> thanks alot
>
> ------------------------------------------------------------------------
> Get your own web address for just $1.99/1st yr
> <%20http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains>.
> We'll help. Yahoo! Small Business
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/>.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gdb mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gdb
>
_______________________________________________
Gdb mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gdb