[PATCH v3 5/5] btrace, testsuite: fix extended-remote fail

Pedro Alves palves@redhat.com
Tue Jan 31 13:00:00 GMT 2017


On 01/30/2017 10:05 AM, Markus Metzger wrote:
> Parts of gdb.btrace/enable.exp are only valid for native debug.  The check for
> skip_gdbserver_tests is done while GDB is running, though, which causes it to
> fail with --target_board=native-extended-gdbserver.  Exit GDB before that check.
> 

Can you clarify how it fails?  It's not obvious to me from looking at
skip_gdbserver_tests.

Should we add something like:

    global gdb_spawn_id
    if {[info exists gdb_spawn_id]} {
      	error "....."
	return
    }

... to skip_gdbserver_tests ?

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list