Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Luis Machado <luisgpm@linux.vnet.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org, Pedro Alves <pedro@codesourcery.com>
Subject: Re: [PATCH] Handle absence of DT_DEBUG while debugging ld.so
Date: Tue, 29 Jul 2008 12:46:00 -0000	[thread overview]
Message-ID: <1217335536.16935.57.camel@gargoyle> (raw)
In-Reply-To: <20080729121244.GA2175@caradoc.them.org>

On Tue, 2008-07-29 at 08:12 -0400, Daniel Jacobowitz wrote:
> On Mon, Jul 28, 2008 at 11:57:15PM -0300, Luis Machado wrote:
> > Yes, this specific address seems broken somehow. This is the first
> > _r_debug entry GDB gets:
> 
> Looks like the section offsets are not set yet.
> 
> > And this is the next _r_debug minimal symbol entry GDB gets:
> 
> What do you mean by "next"?  What commands did you use to get this
> output?

"Next" as in the entry GDB locates in the next time it calls
elf_locate_base(...), this time solib_create_inferior_hook(...) is in
the code path after post_create_inferior(...):

#0  elf_locate_base () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:494
#1  0x00000000100af30c in locate_base () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:570
#2  0x00000000100af9a4 in svr4_current_sos () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:760
#3  0x00000000100ad208 in update_solib_list (from_tty=0, target=0x108fd990) at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib.c:494
#4  0x00000000100ad630 in solib_add (pattern=0x0, from_tty=0, target=0x108fd990, readsyms=1)
    at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib.c:677
#5  0x00000000100b0058 in enable_break () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:989
#6  0x00000000100b0a94 in svr4_solib_create_inferior_hook () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:1408
#7  0x00000000100adc60 in solib_create_inferior_hook () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib.c:884
#8  0x00000000101973e8 in post_create_inferior (target=0x108fd990, from_tty=0) at /home/luis/src/gdb/gdb-head/HEAD3/gdb/infcmd.c:441

... whereas the first time it was called:

#0  elf_locate_base () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:494
#1  0x00000000100af30c in locate_base () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:570
#2  0x00000000100af9a4 in svr4_current_sos () at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib-svr4.c:760
#3  0x00000000100ad208 in update_solib_list (from_tty=0, target=0x108fd990) at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib.c:494
#4  0x00000000100ad630 in solib_add (pattern=0x0, from_tty=0, target=0x108fd990, readsyms=1)
    at /home/luis/src/gdb/gdb-head/HEAD3/gdb/solib.c:677
#5  0x00000000101973e0 in post_create_inferior (target=0x108fd990, from_tty=0) at /home/luis/src/gdb/gdb-head/HEAD3/gdb/infcmd.c:433


> Also, with GDB 6.8 I can "continue" after this error.  With HEAD:
> 
> Continuing.
> Cannot execute this command while the selected thread is running.
> 
> Hey, Pedro?  Cleanup trouble?

Yes, i discussed this with Pedro yesterday and he's aware of the
problem.

Luis


  reply	other threads:[~2008-07-29 12:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-28 23:55 Luis Machado
2008-07-29  2:27 ` Daniel Jacobowitz
2008-07-29  2:57   ` Luis Machado
2008-07-29  3:03     ` Luis Machado
2008-07-29 12:13     ` Daniel Jacobowitz
2008-07-29 12:46       ` Luis Machado [this message]
2008-08-12 18:16         ` Luis Machado
2008-09-05 18:31           ` Luis Machado
2008-07-29 12:55       ` Pedro Alves

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=1217335536.16935.57.camel@gargoyle \
    --to=luisgpm@linux.vnet.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.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