From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20933 invoked by alias); 23 Mar 2002 08:08:20 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 20925 invoked from network); 23 Mar 2002 08:08:20 -0000 Received: from unknown (HELO rwcrmhc52.attbi.com) (216.148.227.88) by 209.249.29.67 with SMTP; 23 Mar 2002 08:08:20 -0000 Received: from ocean.lucon.org ([12.234.143.38]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020323080806.GJEZ1147.rwcrmhc52.attbi.com@ocean.lucon.org> for ; Sat, 23 Mar 2002 08:08:06 +0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id 63418125C7; Sat, 23 Mar 2002 00:08:03 -0800 (PST) Date: Sat, 23 Mar 2002 00:08:00 -0000 From: "H . J . Lu" To: GDB Subject: Re: gdb doesn't work well with DSO on Linux/mips Message-ID: <20020323000803.A25045@lucon.org> References: <20020322234648.A24693@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020322234648.A24693@lucon.org>; from hjl@lucon.org on Fri, Mar 22, 2002 at 11:46:48PM -0800 X-SW-Source: 2002-03/txt/msg00207.txt.bz2 On Fri, Mar 22, 2002 at 11:46:48PM -0800, H . J . Lu wrote: > # gdb /lib/ld-2.2.4.so > (gdb) b _dl_start > Breakpoint 1 at 0xfe4: file rtld.c, line 181. > (gdb) r > Starting program: /lib/ld-2.2.4.so > Breakpoint 1 at 0x55550fe4: file rtld.c, line 181. > warning: shared library handler failed to enable breakpoint > > The problem is the entry point for SVR4/MIPS is __start. But bkpt_names > in solib-svr4.c only checks _start. Should I add __start to bkpt_names > or define SOLIB_BKPT_NAME to __start for Linux/MIPS? > > This seems to work for me. H.J. --- 2002-03-22 H.J. Lu (hjl@gnu.org) * config/mips/tm-linux.h (SOLIB_BKPT_NAME): New. --- gdb/config/mips/tm-linux.h.dso Wed Mar 6 22:31:53 2002 +++ gdb/config/mips/tm-linux.h Fri Mar 22 23:53:42 2002 @@ -49,6 +49,9 @@ extern struct link_map_offsets *mips_lin #define SVR4_FETCH_LINK_MAP_OFFSETS() \ mips_linux_svr4_fetch_link_map_offsets () +#undef SOLIB_BKPT_NAME +#define SOLIB_BKPT_NAME "__start" + /* Details about jmp_buf. */ #define JB_ELEMENT_SIZE 4