This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)
- From: Pedro Alves <palves at redhat dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'GDB Patches'" <gdb-patches at sourceware dot org>
- Date: Thu, 13 Dec 2012 16:55:53 +0000
- Subject: Re: [RFC-v5] Fix .text section offset for windows DLL (was Calling __stdcall functions in the inferior)
- References: <20121024194517.GK3555@adacore.com> <509ABA17.30507@redhat.com> <000301cdbd96$f5cd9f10$e168dd30$@muller@ics-cnrs.unistra.fr> <20121122173019.GF9964@adacore.com> <15690.5992342674$1353883881@news.gmane.org> <87624si9ur.fsf@fleche.redhat.com> <001501cdccaf$ad85e9b0$0891bd10$@muller@ics-cnrs.unistra.fr> <20121207071035.GG31477@adacore.com> <50C20A66.70002@gmail.com> <29545.4593528577$1354894901@news.gmane.org> <50C21696.7040006@gmail.com> <50c21914.a750420a.2ec3.ffffe4ffSMTPIN_ADDED_BROKEN@mx.google.com> <50C222D5.4000802@redhat.com> <50C22C20.8090906@redhat.com> <008101cdd920$907e7580$b17b6080$@muller@ics-cnrs.unistra.fr> <50C9B6E0.1050709@redhat.com> <00a201cdd931$b0ee13f0$12ca3bd0$@muller@ics-cnrs.unistra.fr> <50C9E742.1030207@redhat.com> <001201cdd941$f9d83450$ed889cf0$@muller@ics-cnrs.unistra.fr> <50C9EE3A.20601@redhat.com> <50CA0582.5070107@redhat.com> <000c01cdd952$8f5a7c30$ae0f7490$@muller@ics-cnrs.unistra.fr>
On 12/13/2012 04:54 PM, Pierre Muller wrote:
> OK, we were probably lucky because
> most DLL's have their .text section as first section, so that we never get to
> 8 char long names...
Yeah.
>
> ChangeLog entry:
> 2012-12-13 Pierre Muller <muller@sourceware.org>
>
> * coff-pe-read.c (pe_text_section_offset): Increase size of sname
> local variable and zero terminate it to avoid possible problems
> in strcmp.
Okay, thanks.
--
Pedro Alves