* [RFA] Don't try to run auxv tests in simulator
@ 2006-05-11 9:44 Fred Fish
2006-05-11 12:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Fred Fish @ 2006-05-11 9:44 UTC (permalink / raw)
To: gdb-patches; +Cc: fnf
AFAIK all available simulators don't support auxv info, so trying to
run the auxv tests will fail. They also need corefile support.
I see that corefile.exp has:
# are we on a target board
if ![isnative] then {
return
}
which may be too restrictive for auxv. So I'd propose suppressing the
auxv tests just for simulators, for now at least.
2006-05-11 Fred Fish <fnf@specifix.com>
* gdb.base/auxv.exp: Simulators don't support auxv info
so don't run test if executing in a simulator.
Index: gdb.base/auxv.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/auxv.exp,v
retrieving revision 1.4
diff -u -p -r1.4 auxv.exp
--- gdb.base/auxv.exp 2 May 2005 20:57:30 -0000 1.4
+++ gdb.base/auxv.exp 11 May 2006 09:43:40 -0000
@@ -30,6 +30,12 @@ if $tracelevel then {
set prms_id 0
set bug_id 0
+# Simulators don't support auxv.
+if [target_info exists is_simulator] {
+ unsupported "auxv tests running in simulator"
+ return
+}
+
set testfile "auxv"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFA] Don't try to run auxv tests in simulator
2006-05-11 9:44 [RFA] Don't try to run auxv tests in simulator Fred Fish
@ 2006-05-11 12:41 ` Daniel Jacobowitz
2006-05-11 13:13 ` Fred Fish
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-05-11 12:41 UTC (permalink / raw)
To: Fred Fish; +Cc: gdb-patches
On Thu, May 11, 2006 at 05:45:35AM -0400, Fred Fish wrote:
> AFAIK all available simulators don't support auxv info, so trying to
> run the auxv tests will fail. They also need corefile support.
>
> I see that corefile.exp has:
>
> # are we on a target board
> if ![isnative] then {
> return
> }
>
> which may be too restrictive for auxv. So I'd propose suppressing the
> auxv tests just for simulators, for now at least.
>
> 2006-05-11 Fred Fish <fnf@specifix.com>
>
> * gdb.base/auxv.exp: Simulators don't support auxv info
> so don't run test if executing in a simulator.
Simulatorness has nothing to do with it, though. Does anyone know if
the BSDs use auxv, or is it entirely a GNU/Linux + Solaris thing?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFA] Don't try to run auxv tests in simulator
2006-05-11 13:13 ` Fred Fish
@ 2006-05-11 13:08 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2006-05-11 13:08 UTC (permalink / raw)
To: Fred Fish; +Cc: gdb-patches
On Thu, May 11, 2006 at 09:06:15AM -0400, Fred Fish wrote:
> On Thursday 11 May 2006 08:41, Daniel Jacobowitz wrote:
> >
> > Simulatorness has nothing to do with it, though. Does anyone know if
> > the BSDs use auxv, or is it entirely a GNU/Linux + Solaris thing?
>
> So a program running in the builtin gdb simulator under GNU/Linux should
> be able to support aux info? I admit to not looking too close at how
> the aux info support is implemented, but I do seem to recall it had
> something to do with opening /proc/<pid>/auxv.
That has nothing to do with it either. That's host, not target. A
GNU/Linux targetted GDB either doesn't have a simulator, or else has a
simulator which is expected to simulate GNU/Linux features - including
this one. The /proc interface is encapsulated in the native target, it
wouldn't be used for a sim.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFA] Don't try to run auxv tests in simulator
2006-05-11 12:41 ` Daniel Jacobowitz
@ 2006-05-11 13:13 ` Fred Fish
2006-05-11 13:08 ` Daniel Jacobowitz
2006-05-11 17:38 ` Nathan J. Williams
2006-05-12 20:48 ` Mark Kettenis
2 siblings, 1 reply; 6+ messages in thread
From: Fred Fish @ 2006-05-11 13:13 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches, fnf
On Thursday 11 May 2006 08:41, Daniel Jacobowitz wrote:
>
> Simulatorness has nothing to do with it, though. Does anyone know if
> the BSDs use auxv, or is it entirely a GNU/Linux + Solaris thing?
So a program running in the builtin gdb simulator under GNU/Linux should
be able to support aux info? I admit to not looking too close at how
the aux info support is implemented, but I do seem to recall it had
something to do with opening /proc/<pid>/auxv.
-Fred
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFA] Don't try to run auxv tests in simulator
2006-05-11 12:41 ` Daniel Jacobowitz
2006-05-11 13:13 ` Fred Fish
@ 2006-05-11 17:38 ` Nathan J. Williams
2006-05-12 20:48 ` Mark Kettenis
2 siblings, 0 replies; 6+ messages in thread
From: Nathan J. Williams @ 2006-05-11 17:38 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: Fred Fish, gdb-patches
Daniel Jacobowitz <drow@false.org> writes:
> Simulatorness has nothing to do with it, though. Does anyone know if
> the BSDs use auxv, or is it entirely a GNU/Linux + Solaris thing?
The BSDs don't use auxv. I've noticed this test failing for a while
but not bothered to do anything about it.
- Nathan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFA] Don't try to run auxv tests in simulator
2006-05-11 12:41 ` Daniel Jacobowitz
2006-05-11 13:13 ` Fred Fish
2006-05-11 17:38 ` Nathan J. Williams
@ 2006-05-12 20:48 ` Mark Kettenis
2 siblings, 0 replies; 6+ messages in thread
From: Mark Kettenis @ 2006-05-12 20:48 UTC (permalink / raw)
To: drow; +Cc: fnf, gdb-patches
> Date: Thu, 11 May 2006 08:41:49 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Thu, May 11, 2006 at 05:45:35AM -0400, Fred Fish wrote:
> > AFAIK all available simulators don't support auxv info, so trying to
> > run the auxv tests will fail. They also need corefile support.
> >
> > I see that corefile.exp has:
> >
> > # are we on a target board
> > if ![isnative] then {
> > return
> > }
> >
> > which may be too restrictive for auxv. So I'd propose suppressing the
> > auxv tests just for simulators, for now at least.
> >
> > 2006-05-11 Fred Fish <fnf@specifix.com>
> >
> > * gdb.base/auxv.exp: Simulators don't support auxv info
> > so don't run test if executing in a simulator.
>
> Simulatorness has nothing to do with it, though. Does anyone know if
> the BSDs use auxv, or is it entirely a GNU/Linux + Solaris thing?
GDB doesn't have any auxv support on OpenBSD. There is some minimal
auxv stuff in the kernel (just enough to implement stuff in the
official ELF ABI), but it isn't really interesting, and there is no
way for the debugger to get at it. I have no plans to implement it.
I think the situation is similar for the other BSDs.
Mark
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-12 20:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-11 9:44 [RFA] Don't try to run auxv tests in simulator Fred Fish
2006-05-11 12:41 ` Daniel Jacobowitz
2006-05-11 13:13 ` Fred Fish
2006-05-11 13:08 ` Daniel Jacobowitz
2006-05-11 17:38 ` Nathan J. Williams
2006-05-12 20:48 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox