This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: How do I set breakpoints on all lines for a particular file.
- From: "Kotian, Deepak" <Deepak dot Kotian at patni dot com>
- To: <ramana at codito dot com>, "Andrew Cagney" <cagney at gnu dot org>, <ramana at codito dot com>
- Cc: <gdb at sources dot redhat dot com>
- Date: Mon, 1 Mar 2004 00:43:40 +0530
- Subject: RE: How do I set breakpoints on all lines for a particular file.
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