Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Steffen Dettmer <steffen.dettmer@googlemail.com>
Subject: Re: gdb "automation" question
Date: Mon, 28 Jun 2010 15:21:00 -0000	[thread overview]
Message-ID: <201006281621.23546.pedro@codesourcery.com> (raw)
In-Reply-To: <AANLkTinwuC3Qx6TceKtDvP7sTfVbPpV_EsRkF0SL7uwy@mail.gmail.com>

I'll answer this one:

On Monday 28 June 2010 16:11:44, Steffen Dettmer wrote:
> #3 my connect command has to disable breakpoints.
>    I cannot re-enable them, because it does not know which
>    breakpoints were enabled and which not.
>    I've read about `save breakpoints' and tried it:
> 
>      (gdb) i b
>      Num     Type           Disp Enb Address    What
>      1       breakpoint     keep y   0x000d2b44 in logTrace
>                                             at xxx.c:123
>              stop only if $show_log_py()
> 
>      (gdb) save breakpoints tmpfile
>      warning: save-tracepoints: no tracepoints to save.
> 
>      (gdb) source tmpfile
>      tmpfile: No such file or directory.
> 
>    Would `save breakpoints' help to re-enable my breakpoints?
>    How do I use it correctly?

"save breakpoints" is new, starting with gdb 7.2.  7.1 only had
"save-tracepoints".  So in < 7.2, "save breakpoints tmpfile"
is the same as "save-tracepoints breakpoints tmpfile", that is,
you're attempting to save tracepoints to a file named
"breakpoints tmpfile".  This is why you see the warning above.

-- 
Pedro Alves


  reply	other threads:[~2010-06-28 15:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-22 14:51 Steffen Dettmer
2010-06-22 16:09 ` Tom Tromey
2010-06-23 17:12   ` Steffen Dettmer
2010-06-23 20:59     ` Tom Tromey
2010-06-23 18:21   ` Steffen Dettmer
2010-06-23 21:01     ` Tom Tromey
2010-06-24 10:33       ` Steffen Dettmer
2010-06-24 18:19         ` Tom Tromey
2010-06-28 15:11 ` Steffen Dettmer
2010-06-28 15:21   ` Pedro Alves [this message]
2010-06-28 20:25   ` Tom Tromey

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=201006281621.23546.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=steffen.dettmer@googlemail.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