From: Tom Tromey <tromey@redhat.com>
To: Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Gracefully handle not being able to access a DWARF register number
Date: Mon, 26 Apr 2010 20:06:00 -0000 [thread overview]
Message-ID: <m3eii2m111.fsf@fleche.redhat.com> (raw)
In-Reply-To: <1272295674.16160.23.camel@e102111-lin.cambridge.arm.com> (Matthew Gretton-Dann's message of "Mon, 26 Apr 2010 16:27:54 +0100")
>>>>> "Matthew" == Matthew Gretton-Dann <matthew.gretton-dann@arm.com> writes:
Matthew> The attached patch changes these internal errors into warnings, and
Matthew> tries to return something sensible to the user.
Why a warning and not an error?
It seems to me that an error is preferable to returning incorrect
information.
Matthew> Please could someone review and comment on the patch, and then if this
Matthew> is approved can they please commit it as I don't have commit rights.
Do you have copyright assignment paperwork in place?
Matthew> + warning (_("Unable to access DWARF register number %" BFD_VMA_FMT "d"),
Matthew> + p->v.expr.value);
I think there is some other way to print a CORE_ADDR, but I forget what
it is. BFD_VMA_FMT seems suspect, just because it is not used anywhere
else in gdb.
Tom
next prev parent reply other threads:[~2010-04-26 20:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 15:28 Matthew Gretton-Dann
2010-04-26 20:06 ` Tom Tromey [this message]
2010-04-26 20:21 ` Sergio Durigan Junior
2010-04-27 10:54 ` Matthew Gretton-Dann
2010-04-30 18:08 ` 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=m3eii2m111.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=matthew.gretton-dann@arm.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