From: "H . J . Lu" <hjl@lucon.org>
To: GDB <gdb@sources.redhat.com>
Subject: Re: gdb doesn't work well with DSO on Linux/mips
Date: Sat, 23 Mar 2002 00:08:00 -0000 [thread overview]
Message-ID: <20020323000803.A25045@lucon.org> (raw)
In-Reply-To: <20020322234648.A24693@lucon.org>; from hjl@lucon.org on Fri, Mar 22, 2002 at 11:46:48PM -0800
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
next prev parent reply other threads:[~2002-03-23 8:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-22 23:47 H . J . Lu
2002-03-23 0:08 ` H . J . Lu [this message]
2002-03-23 8:52 ` Daniel Jacobowitz
2002-03-23 11:39 ` Andrew Cagney
2002-03-25 20:06 ` Kevin Buettner
2002-03-25 20:32 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020323000803.A25045@lucon.org \
--to=hjl@lucon.org \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox