* how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ?
@ 2011-07-23 7:08 paawan oza
2011-07-25 3:56 ` paawan oza
0 siblings, 1 reply; 3+ messages in thread
From: paawan oza @ 2011-07-23 7:08 UTC (permalink / raw)
To: gdb; +Cc: chandra krishnappa
Hi all,
suppose some changes are done in arm.-tdep.c (not linux related changes, but
bare metal changes)
this is regarding reversible-debugging.
now, is it possible that I cross compile gdbserver for arm and put it on target.
then; have tcl/expect tests things running on x86 which remotely connects to
gdbserver ?
will that test i386-tdep.c reversible ?
but I am not sure how do we get arm-tdep.c into picture from host ?
Regards,
Oza.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ?
2011-07-23 7:08 how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ? paawan oza
@ 2011-07-25 3:56 ` paawan oza
2011-07-25 4:48 ` Yao Qi
0 siblings, 1 reply; 3+ messages in thread
From: paawan oza @ 2011-07-25 3:56 UTC (permalink / raw)
To: gdb; +Cc: chandra krishnappa
Hi,
I have done following, and with that should be able to test arm-reversible
stuffs with gdbserver.
> ./configure --target=arm-linux <which will compile gdb for x86 takes arm
>dependent code into build>
> make
> cd gdb
> cd gdbserver
> ./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
<above will preparegbserver for target, whihc could be later copied to arm
board>
there are other targets such as arm-eabi, arm-elf.
but I am using arm-linux, hope thats ok and it works.
Regards,
Oza.
----- Original Message ----
From: paawan oza <paawan1982@yahoo.com>
To: gdb@sourceware.org
Cc: chandra krishnappa <chandra_roadking@yahoo.com>
Sent: Sat, July 23, 2011 11:38:11 AM
Subject: how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver
?
Hi all,
suppose some changes are done in arm.-tdep.c (not linux related changes, but
bare metal changes)
this is regarding reversible-debugging.
now, is it possible that I cross compile gdbserver for arm and put it on target.
then; have tcl/expect tests things running on x86 which remotely connects to
gdbserver ?
will that test i386-tdep.c reversible ?
but I am not sure how do we get arm-tdep.c into picture from host ?
Regards,
Oza.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ?
2011-07-25 3:56 ` paawan oza
@ 2011-07-25 4:48 ` Yao Qi
0 siblings, 0 replies; 3+ messages in thread
From: Yao Qi @ 2011-07-25 4:48 UTC (permalink / raw)
To: gdb
On 07/25/2011 11:56 AM, paawan oza wrote:
> I have done following, and with that should be able to test arm-reversible
> stuffs with gdbserver.
>
>> > ./configure --target=arm-linux <which will compile gdb for x86 takes arm
>> >dependent code into build>
>> > make
>> > cd gdb
>> > cd gdbserver
>> > ./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
> <above will preparegbserver for target, whihc could be later copied to arm
> board>
>
That looks right to me. You have to build a gdb for arm, as you did
above, and then cross-compile gdbserver for arm-linux.
> there are other targets such as arm-eabi, arm-elf.
> but I am using arm-linux, hope thats ok and it works.
IMO, it works, since your reverse code on arm shares among these arm-*
targets. Testing your code on arm-linux should cover other arm-* targets.
However, there may be some corner cases, such as svc instruction, that
may behave a little different on bare-mental targets (arm-eabi, arm-elf)
and linux targets (arm-linux). I am not familiar with reverse
debugging, so I don't know how much affect of this difference to reverse
debugging. (I might be wrong, of course.)
--
Yao (é½å°§)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-25 4:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-23 7:08 how to test arm-tdep.c (with cross compiled gdbserver) using gdbserver ? paawan oza
2011-07-25 3:56 ` paawan oza
2011-07-25 4:48 ` Yao Qi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox