Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: 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 14:57:00 -0000	[thread overview]
Message-ID: <4041F837.5020708@gnu.org> (raw)
In-Reply-To: <200402291603.38244.ramana.radhakrishnan@codito.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. 

Hmm, there's an idea:

(top-gdb) rbreak 'main.c:*(*)'

nope :-(  but the theory is ok :-/




  reply	other threads:[~2004-02-29 14:57 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 [this message]
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=4041F837.5020708@gnu.org \
    --to=cagney@gnu.org \
    --cc=Deepak.Kotian@patni.com \
    --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