From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89733 invoked by alias); 13 Jul 2015 10:21:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 89719 invoked by uid 89); 13 Jul 2015 10:21:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mailapp01.imgtec.com Received: from mailapp01.imgtec.com (HELO mailapp01.imgtec.com) (195.59.15.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Jul 2015 10:21:47 +0000 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id D02E8EF668371; Mon, 13 Jul 2015 11:21:42 +0100 (IST) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 13 Jul 2015 11:21:44 +0100 Received: from LEMAIL01.le.imgtec.org ([fe80::5ae:ee16:f4b9:cda9]) by LEMAIL01.le.imgtec.org ([fe80::5ae:ee16:f4b9:cda9%17]) with mapi id 14.03.0210.002; Mon, 13 Jul 2015 11:21:44 +0100 From: Matthew Fortune To: "gdb-patches@sourceware.org" CC: Joseph Myers Subject: RE: [PATCH, MIPS] Support shared library debug with MIPS PIE (gdb) Date: Mon, 13 Jul 2015 10:21:00 -0000 Message-ID: <6D39441BF12EF246A7ABCE6654B02353211CB116@LEMAIL01.le.imgtec.org> References: <6D39441BF12EF246A7ABCE6654B02353211760FA@LEMAIL01.le.imgtec.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00373.txt.bz2 Matthew Fortune writes: > This tag allows debugging of MIPS position independent executables and > provides access to shared library information. >=20 > gdb/gdbserver/ >=20 > * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL. >=20 > gdb/ >=20 > * 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