From: Roland McGrath <roland@redhat.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: Andrew Cagney <cagney@gnu.org>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] auxv support
Date: Wed, 25 Feb 2004 20:38:00 -0000 [thread overview]
Message-ID: <200402252038.i1PKceR4005916@magilla.sf.frob.com> (raw)
In-Reply-To: Daniel Jacobowitz's message of Tuesday, 24 February 2004 23:03:09 -0500 <20040225040309.GA21742@nevyn.them.org>
> Here's the board file I use to run locally, gross hacks and all.
I can't figure out where to put this file and how to tell runtest to use it.
> > However, on a system that does not support getting the auxv data, it shows
> > three failures. What is the right thing to do about this? The difficulty
> > is that the error from `info auxv' does not distinguish an error/bug in
> > reading the data from the target code not supporting auxv access or from
> > the native system not supporting the access even though the gdb target code
> > does (e.g. Linux < 2.6).
>
> Perhaps arrange to distinguish in the error message?
This sounds like it should be easy, but it's really not. The
target-config-never-supports case and error cases are both indicated by
target_read_partial returning -1. No other details are made available by
the target interfaces. Even if we addressed the case of there not being
any code around that does it at all, there are still the kernel (or stub)
doesn't support it vs miscellaneous error cases. The backend or gdbserver
code can potentially distinguish, i.e. failing open with ENOENT vs other
errors or errors on read after open. But that would require passing back
the failure mode in some distinguished way, rather than just -1.
Thanks,
Roland
next prev parent reply other threads:[~2004-02-25 20:38 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-29 2:59 Roland McGrath
2004-01-29 6:39 ` Eli Zaretskii
2004-01-29 8:20 ` Roland McGrath
2004-01-29 20:14 ` Eli Zaretskii
2004-01-29 21:31 ` Roland McGrath
2004-01-30 19:03 ` Daniel Jacobowitz
2004-01-30 23:35 ` Andrew Cagney
2004-01-30 23:51 ` Roland McGrath
2004-01-31 0:11 ` Andrew Cagney
2004-01-31 0:16 ` Roland McGrath
2004-02-02 14:27 ` Andrew Cagney
2004-02-17 16:35 ` Andrew Cagney
2004-02-18 2:08 ` Roland McGrath
2004-02-24 3:50 ` Roland McGrath
2004-02-25 3:59 ` Andrew Cagney
2004-03-19 0:09 ` [COMMITTED PATCH] testsuite for info auxv Roland McGrath
2004-03-17 20:46 ` Roland McGrath
2004-02-25 4:03 ` [PATCH] auxv support Daniel Jacobowitz
2004-02-25 20:38 ` Roland McGrath [this message]
[not found] <200401310013.i0V0DnGE018646@magilla.sf.frob.com>
2004-02-01 6:04 ` Daniel Jacobowitz
2004-02-01 22:36 ` Roland McGrath
2004-02-02 0:11 ` Roland McGrath
2004-02-02 6:24 ` Eli Zaretskii
2004-02-02 14:17 ` Andrew Cagney
2004-02-02 14:25 ` Andrew Cagney
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=200402252038.i1PKceR4005916@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=cagney@gnu.org \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.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