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. We'll help. Yahoo!
Small Business.
_______________________________________________
Gdb mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gdb
|