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] Fix warning: Invalid entry in .debug_gdb_scripts section


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


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