gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gdb] (no subject)


From: kevin
Subject: Re: [Gdb] (no subject)
Date: Sat, 26 Aug 2006 09:47:08 -0500
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]