This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb)
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Cc: Joseph Myers <joseph at codesourcery dot com>
- Date: Mon, 13 Jul 2015 10:21:43 +0000
- Subject: RE: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb)
- Authentication-results: sourceware.org; auth=none
- References: <6D39441BF12EF246A7ABCE6654B02353211760FA at LEMAIL01 dot le dot imgtec dot org> <alpine dot DEB dot 2 dot 10 dot 1506231529530 dot 4489 at digraph dot polyomino dot org dot uk>
Matthew Fortune <Matthew.Fortune@imgtec.com> writes:
> This tag allows debugging of MIPS position independent executables and
> provides access to shared library information.
>
> gdb/gdbserver/
>
> * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
>
> gdb/
>
> * solib-svr4.c (read_program_header): Add base_addr argument to
> report the runtime address of the segment.
> (find_program_interpreter): Update read_program_header call to pass
> a NULL pointer for the new argument.
> (scan_dyntag): Add ptr_addr argument to report the runtime address
> of the tag payload.
> (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
> read_program_header to get the base address of the dynamic segment.
> (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
> read_program_header.
> (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
Ping.
Matthew