This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] Add regression test for PR gdb/19858 (JIT code registration on attach)
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Yichao Yu <yyc1992 at gmail dot com>
- Date: Thu, 24 Mar 2016 09:15:24 +0000
- Subject: Re: [PATCH 3/3] Add regression test for PR gdb/19858 (JIT code registration on attach)
- Authentication-results: sourceware.org; auth=none
- References: <1458739792-9864-1-git-send-email-palves at redhat dot com> <1458739792-9864-4-git-send-email-palves at redhat dot com>
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 (éå)