From: Aurelian Melinte <ame01@gmx.net>
To: gdb@sourceware.org
Subject: Re: gdb on automatic pilot?
Date: Thu, 25 Aug 2011 01:13:00 -0000 [thread overview]
Message-ID: <4E55A188.3090008@gmx.net> (raw)
In-Reply-To: <m38vqi490r.fsf@redhat.com>
On 24/08/2011 8:41 PM, Sergio Durigan Junior wrote:
> Aurelian Melinte<ame01@gmx.net> writes:
>
>> I am looking to use gdb to print the stack each time a certain
>> function is called , then resume execution. And this without manual
>> intervention.
> Sorry, I'm not sure I understood your question. Will you be already
> runnning GDB? If so, you can put a breakpoint at the function and use
> `commands' to specify what you want to do when the breakpoint is hit.
> Something like:
>
> (gdb) break f
> (gdb) commands
>> bt
>> cont
>> end
> (gdb) run
>
> Is that what you want?
Eaxctly what I was looking for :)
Thanks Sergio and Jan!
prev parent reply other threads:[~2011-08-25 1:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 0:17 Aurelian Melinte
2011-08-25 0:27 ` Jan Kratochvil
2011-08-25 0:42 ` Sergio Durigan Junior
2011-08-25 1:13 ` Aurelian Melinte [this message]
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=4E55A188.3090008@gmx.net \
--to=ame01@gmx.net \
--cc=gdb@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).