From: Andrew Cagney <cagney@gnu.org>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Fix PR testsuite/1504
Date: Sun, 18 Jan 2004 18:51:00 -0000 [thread overview]
Message-ID: <400AD5A0.7060900@gnu.org> (raw)
In-Reply-To: <200401181835.i0IIZcwu054181@elgar.kettenis.dyndns.org>
> Turns out there is an inconsistency between platforms in the error
> message one gets when reading from a bit of memory that isn't
> readable:
>
> void
> memory_error (int status, CORE_ADDR memaddr)
> {
> struct ui_file *tmp_stream = mem_fileopen ();
> make_cleanup_ui_file_delete (tmp_stream);
>
> if (status == EIO)
> {
> /* Actually, address between memaddr and memaddr + len
> was out of bounds. */
> fprintf_unfiltered (tmp_stream, "Cannot access memory at address ");
> print_address_numeric (memaddr, 1, tmp_stream);
> }
> else
> {
> fprintf_filtered (tmp_stream, "Error accessing memory address ");
> print_address_numeric (memaddr, 1, tmp_stream);
> fprintf_filtered (tmp_stream, ": %s.",
> safe_strerror (status));
> }
>
> error_stream (tmp_stream);
> }
>
> I wonder whether we should try to unify this. In the meantime, this
> patch fixes the fall-out in the testsuite.
Yes, definitly. Kfail instead - that would flush out those cases?
Andrew
prev parent reply other threads:[~2004-01-18 18:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-18 18:35 Mark Kettenis
2004-01-18 18:51 ` Andrew Cagney [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=400AD5A0.7060900@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@chello.nl \
/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