From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: "Kotian, Deepak" <Deepak.Kotian@patni.com>,
"Andrew Cagney" <cagney@gnu.org>
Cc: <gdb@sources.redhat.com>
Subject: Re: How do I set breakpoints on all lines for a particular file.
Date: Sun, 29 Feb 2004 10:37:00 -0000 [thread overview]
Message-ID: <200402291603.38244.ramana.radhakrishnan@codito.com> (raw)
In-Reply-To: <374639AB1012AA4C840022842AA95BC2015ABFE8@ruby.patni.com>
On Sunday 29 February 2004 13:45, Kotian, Deepak wrote:
> Break at all functions in a particular file(.c file), can it be done?
If you have the corresponding object file , maybe you can write a shell / awk
/ perl script to generate this using objdump -t and finding out the function
symbols and using that in a gdb script and then include that using the source
command.
Dont know of any other way of setting breakpoints with respect to all
functions in the file you need.
cheers
ramana
>
> Thanks and Regards
> Deepak
>
>
> -----Original Message-----
> From: Andrew Cagney [mailto:cagney@gnu.org]
> Sent: Sunday, February 29, 2004 9:34 AM
> To: Kotian, Deepak
> Cc: gdb@sources.redhat.com
> Subject: Re: How do I set breakpoints on all lines for a particular
> file.
>
> > How do I set breakpoints in gdb on all lines for a a target program file.
> > Basically, I need to know if any code segment is executed from
> > that file.
>
> Other than explicitly setting a breakpoint on every line, I don't know.
>
> Andrew
next prev parent reply other threads:[~2004-02-29 10:37 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 [this message]
2004-02-29 14:57 ` Andrew Cagney
2004-02-29 15:42 ` Ramana Radhakrishnan
-- 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=200402291603.38244.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