Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Aurelian Melinte <ame01@gmx.net>
Cc: gdb@sourceware.org
Subject: Re: gdb on automatic pilot?
Date: Thu, 25 Aug 2011 00:27:00 -0000	[thread overview]
Message-ID: <20110825002720.GA10980@host1.jankratochvil.net> (raw)
In-Reply-To: <4E559477.1060306@gmx.net>

On Thu, 25 Aug 2011 02:16:55 +0200, Aurelian Melinte wrote:
> 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.

(gdb) break malloc
Breakpoint 1 at 0x483940
(gdb) commands 
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>backtrace 
>continue 
>end
(gdb) set pagination off 
(gdb) run


See also:
$ info '(gdb)Break Commands'


Regards,
Jan


  reply	other threads:[~2011-08-25  0:27 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 [this message]
2011-08-25  0:42 ` Sergio Durigan Junior
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=20110825002720.GA10980@host1.jankratochvil.net \
    --to=jan.kratochvil@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