This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: pie warning patch
- From: Tom Tromey <tromey at redhat dot com>
- To: Thiago Jung Bauermann <thiago dot bauermann at gmail dot com>
- Cc: gdb-patches at sourceware dot org, Paul Pluzhnikov <ppluzhnikov at google dot com>
- Date: Tue, 04 Aug 2009 10:30:44 -0600
- Subject: Re: RFA: pie warning patch
- References: <200907272021.30201.thiago.bauermann@gmail.com> <m3hbww2158.fsf@fleche.redhat.com> <200908021045.54249.thiago.bauermann@gmail.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Thiago" == Thiago Jung Bauermann <thiago.bauermann@gmail.com> writes:
Thiago> Awesome BFD-fu. This tip has greatly simplified the patch, and IIUC it
Thiago> even takes care of the endianness issue that Paul mentioned, right?
Yes.
Thiago> 2009-08-02 Thiago Jung Bauermann <thiago.bauermann@gmail.com>
Thiago> gdb/
Thiago> * linux-tdep.c (check_is_pie_binary,
Thiago> _initialize_linux_tdep): New functions.
Thiago> gdb/testsuite/
Thiago> * gdb.base/pie-support.exp: New file.
Thiago> * gdb.base/pie-support.c: New file.
Thiago> + if (elf_tdata (exec_bfd)->elf_header->e_type == ET_DYN)
Thiago> + warning (_("\
Thiago> +The current binary is a PIE (Position Independent Executable), which\n\
Thiago> +GDB does NOT currently support. Most debugger features will fail if used\n\
Thiago> +in this session.\n"));
Two spaces after the "." ending the first sentence.
This is ok with that change.
Tom