This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 5/7] btrace, gdbserver: remove the to_supports_btrace target method
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: "Metzger\, Markus T" <markus dot t dot metzger at intel dot com>
- Cc: "Maciej W. Rozycki" <macro at mips dot com>, "gdb-patches\@sourceware.org" <gdb-patches at sourceware dot org>
- Date: Mon, 26 Feb 2018 20:30:02 +0100
- Subject: Re: [PATCH v2 5/7] btrace, gdbserver: remove the to_supports_btrace target method
- Authentication-results: sourceware.org; auth=none
- References: <1516976072-19282-1-git-send-email-markus.t.metzger@intel.com> <1516976072-19282-6-git-send-email-markus.t.metzger@intel.com> <alpine.DEB.2.00.1802241605470.3553@tp.orcam.me.uk> <A78C989F6D9628469189715575E55B236964BE94@IRSMSX104.ger.corp.intel.com>
On Mon, Feb 26 2018, Metzger, Markus T wrote:
> Hello Maciej,
>
>> Process .../gdb/testsuite/outputs/gdb.base/advance/advance created; pid =
>> 25519 Listening on port 2346 target remote 1.2.3.4:2346 Remote debugging using
>> 1.2.3.4:2346 Reading symbols from .../lib/ld.so.1...done.
>> 0x77fc8de0 in __start () from .../lib/ld.so.1 Protocol error: qXfer:btrace-conf
>> (read-btrace-conf) conflicting enabled responses.
>> (gdb) continue
>> The program is not being run.
>> (gdb) FAIL: gdb.base/advance.exp: can't run to main
>>
>> See the attached RSP packet exchange log for details. Please investigate.
For the record, the same happens on s390x. It seems that you broke all
targets without HAVE_LINUX_BTRACE.
> Below is a patch to address this. I tested it on IA by undefining HAVE_LINUX_BTRACE.
> Does it fix the issue you reported?
I've tested your patch on s390x, and it seems to fix the problem.
--
Andreas