Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stan@codesourcery.com>
To: tromey@redhat.com
Cc: Stan Shebs <stan@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] No resuming while tfinding
Date: Thu, 18 Mar 2010 17:47:00 -0000	[thread overview]
Message-ID: <4BA2670E.2050701@codesourcery.com> (raw)
In-Reply-To: <m3k4t939b8.fsf@fleche.redhat.com>

Tom Tromey wrote:
> Does return_command also need to call ensure_not_tfind_mode?
>   
It seemed less necessary, because it doesn't resume, it just scribbles 
on the stack - in tfind mode the target kicks it back with write errors.

The previous discussion has gotten me to wondering whether it would be a 
good idea to allow the user to write into a trace buffer.  While it 
sounds crazy at first, it can make sense for the same reasons that it 
does in a live target; you have a hypothesis about how an expression 
calculates out, stuff the hypothesized value in memory, and print the 
expression.

It's a little more farfetched that return would be useful if writing 
worked; if you had collected enough stack, you would see a backtrace 
displayed as if the return had been done, but since you can't resume, 
the exercise seems pointless.

Stan


      reply	other threads:[~2010-03-18 17:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17  1:59 Stan Shebs
2010-03-17 13:51 ` Marc Khouzam
2010-03-17 15:19 ` Joel Brobecker
2010-03-17 17:36   ` Michael Snyder
2010-03-17 23:40     ` Stan Shebs
2010-03-17 23:44       ` Pedro Alves
2010-03-17 15:22 ` Pedro Alves
2010-03-17 17:31   ` Stan Shebs
2010-03-18  0:59   ` Stan Shebs
2010-03-18 12:19     ` Pedro Alves
2010-03-18 13:23       ` Pedro Alves
2010-03-18 16:05 ` Tom Tromey
2010-03-18 17:47   ` Stan Shebs [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=4BA2670E.2050701@codesourcery.com \
    --to=stan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.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