This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Skip gdb.threads/execl.exp on remote target


On Friday 17 June 2011 10:26:43, Yao Qi wrote:
> As far as I know, exec event is not handled in gdbserver or in remote
> debugging, 

Correct.

> so this patch is to skip gdb.threads/execl.exp on remote target.

Patch is okay.

> 
> The condition checking in my patch is "{ [is_remote target] }", instead
> of "{ [is_remote target] || ![isnative] }", which is widely used
> elsewhere, because "![isnative]" can be regarded as a subset of
> "is_remote target".  I can't think of a case that non-native debugger
> works with non-remote board.  Am I missing something?

isnative just returns whether the build _triplet_ is the same
as the target _triplet_.  It's unrelated to whether the remote
protocol is being used or not, and it's orthogonal to the board
in use.  Not using it here is correct, because for example,
one may be running dejagnu on a x86-linux machine (build), using
remote host testing to test a native debugger running on
an HP-UX host, and we'd still want gdb's native exec support
to be tested then.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]