* Extending corefile.exp to handle remote targets
@ 2004-08-05 15:19 Orjan Friberg
2004-08-05 15:38 ` Andrew Cagney
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Orjan Friberg @ 2004-08-05 15:19 UTC (permalink / raw)
To: gdb-patches
I'm looking at testing the core dump functionality for CRIS (remote
target, Linux-based). (The gcore functionality is not an option for a
remote target, right?).
I was thinking I should extend corefile.exp to work with a remote
target, probably adding a register restoration check, and possibly even
unifying it with gcore.exp - or is there a reason for the difference
between the two? On the surface it looks like the only difference is
how the core file is generated.
Any hints or warnings before I proceed?
--
Orjan Friberg
Axis Communications
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending corefile.exp to handle remote targets
2004-08-05 15:19 Extending corefile.exp to handle remote targets Orjan Friberg
@ 2004-08-05 15:38 ` Andrew Cagney
2004-08-05 15:47 ` Daniel Jacobowitz
2004-08-05 16:08 ` Michael Chastain
2 siblings, 0 replies; 6+ messages in thread
From: Andrew Cagney @ 2004-08-05 15:38 UTC (permalink / raw)
To: Orjan Friberg; +Cc: gdb-patches
> I'm looking at testing the core dump functionality for CRIS (remote target, Linux-based). (The gcore functionality is not an option for a remote target, right?).
There's also auxv.exp and, to a lesser extent, bigcore.exp.
I've actually been thinking of submitting a patch that splits auxv.exp
in two - separately test auxv with corefile. That way it's easier to
differentiate between broken native and broken corefile auxv.
But what ever.
> I was thinking I should extend corefile.exp to work with a remote target, probably adding a register restoration check, and possibly even unifying it with gcore.exp - or is there a reason for the difference between the two? On the surface it looks like the only difference is how the core file is generated.
>
> Any hints or warnings before I proceed?
Watch out for BFD!
Writing cross core-files doesn't work because the relevant BFD code
assumes HOST == TARGET :-(
It's been suggested that we [gdb] should instead implement our own local
core file manipulation routines and bypass what's provided by BFD.
Andrew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending corefile.exp to handle remote targets
2004-08-05 15:19 Extending corefile.exp to handle remote targets Orjan Friberg
2004-08-05 15:38 ` Andrew Cagney
@ 2004-08-05 15:47 ` Daniel Jacobowitz
2004-08-06 8:05 ` Orjan Friberg
2004-08-05 16:08 ` Michael Chastain
2 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2004-08-05 15:47 UTC (permalink / raw)
To: Orjan Friberg; +Cc: gdb-patches
On Thu, Aug 05, 2004 at 05:19:51PM +0200, Orjan Friberg wrote:
> I'm looking at testing the core dump functionality for CRIS (remote
> target, Linux-based). (The gcore functionality is not an option for a
> remote target, right?).
Incorrect. It doesn't work today but there's no theoretical reason
gdbserver could not handle it.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending corefile.exp to handle remote targets
2004-08-05 15:19 Extending corefile.exp to handle remote targets Orjan Friberg
2004-08-05 15:38 ` Andrew Cagney
2004-08-05 15:47 ` Daniel Jacobowitz
@ 2004-08-05 16:08 ` Michael Chastain
2 siblings, 0 replies; 6+ messages in thread
From: Michael Chastain @ 2004-08-05 16:08 UTC (permalink / raw)
To: orjan.friberg, gdb-patches
Orjan Friberg <orjan.friberg@axis.com> wrote:
> Any hints or warnings before I proceed?
:dumb look: I'm not fluent in this area of the test suite.
About all I can say is, if you choose to re-organize the various
core tests, separate the re-organization patches from the
"actually change stuff" patches.
Michael C
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending corefile.exp to handle remote targets
2004-08-05 15:47 ` Daniel Jacobowitz
@ 2004-08-06 8:05 ` Orjan Friberg
2004-08-11 19:17 ` Michael Snyder
0 siblings, 1 reply; 6+ messages in thread
From: Orjan Friberg @ 2004-08-06 8:05 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
Daniel Jacobowitz wrote:
> On Thu, Aug 05, 2004 at 05:19:51PM +0200, Orjan Friberg wrote:
>
>>I'm looking at testing the core dump functionality for CRIS (remote
>>target, Linux-based). (The gcore functionality is not an option for a
>>remote target, right?).
>
>
> Incorrect. It doesn't work today but there's no theoretical reason
> gdbserver could not handle it.
Sorry, bad wording on my part: I meant to suggest using gcore for a
remote target is not an option _now_ (which was the reason for wanting
to test my core dumps another way than through gcore.exp et. al.)
--
Orjan Friberg
Axis Communications
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Extending corefile.exp to handle remote targets
2004-08-06 8:05 ` Orjan Friberg
@ 2004-08-11 19:17 ` Michael Snyder
0 siblings, 0 replies; 6+ messages in thread
From: Michael Snyder @ 2004-08-11 19:17 UTC (permalink / raw)
To: Orjan Friberg; +Cc: Daniel Jacobowitz, gdb-patches
Orjan Friberg wrote:
> Daniel Jacobowitz wrote:
>
>> On Thu, Aug 05, 2004 at 05:19:51PM +0200, Orjan Friberg wrote:
>>
>>> I'm looking at testing the core dump functionality for CRIS (remote
>>> target, Linux-based). (The gcore functionality is not an option for
>>> a remote target, right?).
>>
>>
>>
>> Incorrect. It doesn't work today but there's no theoretical reason
>> gdbserver could not handle it.
>
>
> Sorry, bad wording on my part: I meant to suggest using gcore for a
> remote target is not an option _now_ (which was the reason for wanting
> to test my core dumps another way than through gcore.exp et. al.)
Orjan,
When I wrote the gcore stuff, I tried to leave it open to be
extended for remote targets at some later time. It certainly
should be possible.
Michael
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-08-11 19:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-05 15:19 Extending corefile.exp to handle remote targets Orjan Friberg
2004-08-05 15:38 ` Andrew Cagney
2004-08-05 15:47 ` Daniel Jacobowitz
2004-08-06 8:05 ` Orjan Friberg
2004-08-11 19:17 ` Michael Snyder
2004-08-05 16:08 ` Michael Chastain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox