Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: David Taylor <dtaylor@emc.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: gdb remote protocol breakpoints (Z0 command)
Date: Mon, 23 Jun 2014 13:29:00 -0000	[thread overview]
Message-ID: <2039.1403530133@usendtaylorx2l> (raw)
In-Reply-To: <y0my4wr8610.fsf@fche.csb>

Frank Ch. Eigler <fche@redhat.com> wrote:

> 
> David Taylor <dtaylor@emc.com> writes:
> 
> > [...]
> >     . there is no bytecode operator for setting memory
> >     . there is no bytecode operator for setting registers
> > [...]
> 
> Can you elaborate why you wish to modify state in breakpoint
> conditionals?

One of the options with Z0 breakpoints is 'persist' -- you can create a
breakpoint that sticks around when GDB disconnects.  I don't know why I
would want a persistent breakpint if it could neither alter state and
nor call functions.

Things that I envision using them for include

. quick and dirty patching before rebuilding

. collecting debugging information

If you can alter memory you can turn logging / event recording on and
off to just collect information in the areas of interest and generate
fewer messages / fewer records.

I think that pushing the 'conditional' part of the breakpoint to the
stub -- with existing limitations -- is very useful.  I think that
without extensions the 'persistence' and 'command list' parts aren't
very useful.

I'm curious, how do you envision using the 'persistence' and 'command
list' parts given the current limitations?


      reply	other threads:[~2014-06-23 13:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 14:44 David Taylor
2014-06-19 17:24 ` Tom Tromey
2014-06-23 13:14   ` David Taylor
2014-06-20  5:41 ` Yao Qi
2014-06-23 13:45   ` David Taylor
2014-06-24  0:53     ` Frank Ch. Eigler
2014-06-21  0:23 ` Frank Ch. Eigler
2014-06-23 13:29   ` David Taylor [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=2039.1403530133@usendtaylorx2l \
    --to=dtaylor@emc.com \
    --cc=fche@redhat.com \
    --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