public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Sergio Durigan Junior <sergiodj@redhat.com>
To: Aurelian Melinte <ame01@gmx.net>
Cc: gdb@sourceware.org
Subject: Re: gdb on automatic pilot?
Date: Thu, 25 Aug 2011 00:42:00 -0000	[thread overview]
Message-ID: <m38vqi490r.fsf@redhat.com> (raw)
In-Reply-To: <4E559477.1060306@gmx.net> (Aurelian Melinte's message of "Wed,	24 Aug 2011 20:16:55 -0400")

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?

  parent reply	other threads:[~2011-08-25  0:42 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 [this message]
2011-08-25  1:13   ` Aurelian Melinte

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=m38vqi490r.fsf@redhat.com \
    --to=sergiodj@redhat.com \
    --cc=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).