This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Add tests for JIT debugging interface
On Wed, Jan 12, 2011 at 2:03 AM, Pedro Alves <pedro@codesourcery.com> wrote:
> On Wednesday 12 January 2011 05:39:32, Yao Qi wrote:
>> Test cases work well in native GDB. ?Does gdbserver have JIT debugging
>> interface also? ?If not, we probably should skip this test for remote
>> mode or kfail it.
>
> The JIT debugging interface is all implemented in common code,
> so it should work against remote/gdbserver as well (though I haven't
> tried it). ?A gdb_load_shlibs call to copy the shlib to the
> target appears to be missing though.
I tried running the test with gdbserver-native, and it failed, because
'set args' doesn't work in server mode (AFAICT).
I grepped through *.exp in search of examples of how to run programs
that require args under gdbserver, but didn't find any.
I want something like
if {[is_remote host]} {
spawn gdbserver :2345 exe shlib 1
} else {
spawn gdb --args exe shlib 1
}
Is there a "standard" way to achieve this?
> You want notice it missing
> if you do the usual gdbserver running on the same machine as
> gdb testing (*).
Right. I didn't get that far yet.
Are there instructions for running with gdbserver on different host?
Thanks,
--
Paul Pluzhnikov