From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Michael Snyder <msnyder@vmware.com>
Subject: Re: [patch] Error reporting during insert_breakpoints
Date: Wed, 03 Jun 2009 21:46:00 -0000 [thread overview]
Message-ID: <200906032246.44508.pedro@codesourcery.com> (raw)
In-Reply-To: <4A26E026.2000705@vmware.com>
On Wednesday 03 June 2009 21:42:14, Michael Snyder wrote:
> Two small changes
>
> 1) If insert_breakpoints fails during stepping, "keep_going()"
> contains a TRY_CATCH block, but does not print the exception error.
> If the same thing happens during continue, "catch_errors" reports it.
Yes, please. This silent stop bites me often, when longjmp-resume
breakpoints fail to insert due to glibc pointer mangling...
> 2) insert_bp_locations() generates error text that assumes
> memory breakpoints. Confusing if remote_insert_breakpoints
> is using Z0.
Strictly speaking, Z0 breakpoints *are* supposed to have
memory breakpoints semantics. :-)
@item z0,@var{addr},@var{length}
@itemx Z0,@var{addr},@var{length}
@cindex @samp{z0} packet
@cindex @samp{Z0} packet
Insert (@samp{Z0}) or remove (@samp{z0}) a memory breakpoint at address
@var{addr} of size @var{length}.
> @@ -1223,10 +1223,10 @@ Note: automatically using hardware break
> else
> {
> fprintf_unfiltered (tmp_error_stream,
> - "Cannot insert breakpoint %d.\n",
> + "Cannot insert breakpoint %d",
> bpt->owner->number);
> fprintf_filtered (tmp_error_stream,
> - "Error accessing memory address ");
> + " at memory address ");
> fputs_filtered (paddress (bpt->address), tmp_error_stream);
> fprintf_filtered (tmp_error_stream, ": %s.\n",
> safe_strerror (val));
I'm not objecting to the change, but, honestly, I don't see where
the assumption was, or where it is being removed?
--
Pedro Alves
next prev parent reply other threads:[~2009-06-03 21:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-03 20:45 Michael Snyder
2009-06-03 21:46 ` Pedro Alves [this message]
2009-06-03 22:10 ` Pedro Alves
2009-10-23 15:36 ` Michael Snyder
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=200906032246.44508.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.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