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 3/3] Add regression test for PR gdb/19858 (JIT code registration on attach)


Pedro Alves <palves@redhat.com> writes:

> gdb/testsuite/ChangeLog:
> 2016-03-23  Pedro Alves  <palves@redhat.com>
>
> 	PR gdb/19858
> 	* gdb.base/jit-main.c: Include unistd.h.
> 	(ATTACH): Define to 0 if not already defined.
> 	(wait_for_gdb, mypid): New globals.
> 	(WAIT_FOR_GDB): New macro.
> 	(MAIN): Set an alarm.  Store the process's pid.  Wait for GDB at
> 	some breakpoint locations.
> 	* gdb.base/jit.exp (clean_reattach, continue_to_test_location):
> 	New procedures.
> 	(one_jit_test): Add REATTACH parameter, and handle it.  Use
> 	continue_to_test_location.
> 	(top level): Test attach, and adjusts calls to one_jit_test.

Patch is good to me.

-- 
Yao (éå)


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