From: Daniel Jacobowitz <drow@false.org>
To: Sandeep Joshi <sandeepjoshi.it@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: GDB not able to debug files(dwarf2.0) loaded using add-symbol-file
Date: Sat, 23 Dec 2006 21:26:00 -0000 [thread overview]
Message-ID: <20061223212620.GC1091@nevyn.them.org> (raw)
In-Reply-To: <ad83c5670612212021r7c247e8cm2df837e8637fcb03@mail.gmail.com>
On Fri, Dec 22, 2006 at 09:51:20AM +0530, Sandeep Joshi wrote:
> The problem is in the way GDB performs symbol lookup using PC. In
> function 'find_pc_sect_psymtab' gdb is not performing symbol lookup in
> all the objfiles. If it finds the PC in the range of any partial
> symtab, it tries to find the partial symtab that contains a symbol
> whose address is closest to the PC address in that object file only
> and returns that partial symbol table.
>
> Now if the user puts a breakpoint in the file loaded using
> add-symbol-file, then in function 'find_pc_sect_psymtab' the PC
> Address might in the range of some psymtab in the first objfile
> (vmlinux) and the best match in that file is returned. This is
> happening because the code range of partial symtabs often overlap,
> mostly if the functions are reordered.
That would slow this already slow function down even further. What
does your memory layout look like to create this problem?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-12-23 21:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-22 4:21 Sandeep Joshi
2006-12-23 21:26 ` Daniel Jacobowitz [this message]
2007-01-03 9:44 ` Sandeep Joshi
2007-01-04 3:30 ` Daniel Jacobowitz
2007-01-04 6:56 ` Sandeep Joshi
2007-01-10 4:16 ` 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=20061223212620.GC1091@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=sandeepjoshi.it@gmail.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