How do I set breakpoints on all lines for a particular file.
Kotian, Deepak
Deepak.Kotian@patni.com
Sun Feb 29 19:09:00 GMT 2004
Thanks
Thanks and Regards
Deepak
-----Original Message-----
From: Ramana Radhakrishnan [mailto:ramana.radhakrishnan@codito.com]
Sent: Sun 2/29/2004 9:08 PM
To: Andrew Cagney; ramana@codito.com
Cc: Kotian, Deepak; gdb@sources.redhat.com
Subject: Re: How do I set breakpoints on all lines for a particular file.
> nope :-( but the theory is ok :-/
Just parameterise this in a shell script and possibly add stuff to take care
of the file names .
At the command prompt you could do this.
$>objdump -t try.o | awk '{ if($3 == "F") { printf ("break try.c:
%s\n",$6);}}' > fooscript
fooscript would contain stuff like break try.c:<function name> and so on.
$> gdb
gdb> source fooscript.
Cant think of anything else unless we want to implement rbreak to take care of
file names too :-/
cheers
ramana
More information about the Gdb
mailing list