From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: Andrew Cagney <cagney@gnu.org>, ramana@codito.com
Cc: "Kotian, Deepak" <Deepak.Kotian@patni.com>, gdb@sources.redhat.com
Subject: Re: How do I set breakpoints on all lines for a particular file.
Date: Sun, 29 Feb 2004 15:42:00 -0000 [thread overview]
Message-ID: <200402292108.55850.ramana.radhakrishnan@codito.com> (raw)
In-Reply-To: <4041F837.5020708@gnu.org>
> 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
next prev parent reply other threads:[~2004-02-29 15:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 8:10 Kotian, Deepak
2004-02-29 10:37 ` Ramana Radhakrishnan
2004-02-29 14:57 ` Andrew Cagney
2004-02-29 15:42 ` Ramana Radhakrishnan [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-02-29 19:09 Kotian, Deepak
2004-02-27 15:03 Kotian, Deepak
2004-02-29 4:03 ` Andrew Cagney
2004-02-24 13:56 Kotian, Deepak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200402292108.55850.ramana.radhakrishnan@codito.com \
--to=ramana.radhakrishnan@codito.com \
--cc=Deepak.Kotian@patni.com \
--cc=cagney@gnu.org \
--cc=gdb@sources.redhat.com \
--cc=ramana@codito.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox