This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix warning: Invalid entry in .debug_gdb_scripts section
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jkratoch at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 16 Mar 2017 17:03:41 +0000
- Subject: Re: [patch] Fix warning: Invalid entry in .debug_gdb_scripts section
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=palves at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4D4F6C0467CB
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4D4F6C0467CB
- References: <20170316154110.GA20969@host1.jankratochvil.net>
On 03/16/2017 03:41 PM, Jan Kratochvil wrote:
> Hi,
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1429598
>
> there remains questionable whether bfd_get_section_by_name() should not return
> an error for !SEC_LOAD but I haven't investigated that.
>
> Also it could have a testcase.
>
> OK for check-in?
I don't think you've supplied enough rationale.
Why is this the right thing to do?
Shouldn't we be able to load scripts from debug-only sections?
A testcase would indeed be good to have.
Thanks,
Pedro Alves