Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: Jose Flavio Aguilar Paulino <jflavio@br.ibm.com>,
		gdb-patches@sourceware.org
Subject: Re: [PATCH 24700]
Date: Thu, 01 Mar 2007 22:47:00 -0000	[thread overview]
Message-ID: <jebqjcfunl.fsf@sykes.suse.de> (raw)
In-Reply-To: <20070301220325.GA21380@caradoc.them.org> (Daniel Jacobowitz's 	message of "Thu, 1 Mar 2007 17:03:25 -0500")

Daniel Jacobowitz <drow@false.org> writes:

> That doesn't have anything to do with my question :-)  find_pc_section
> does the PC -> section mapping pretty much the way the new code you've
> duplicated does it.

The original implementation of ppc64_linux_convert_from_func_ptr_addr
actually used find_pc_section.  It was changed to use
target_section_by_addr a few years ago:

2003-10-24  Andrew Cagney  <cagney@redhat.com>

	* target.c: Include "gdbcore.h".
	(get_target_memory, get_target_memory_unsigned): New functions.
	* target.h (get_target_memory, get_target_memory_unsigned): Declare.
	* ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
	Use get_target_memory_unsigned.
	* Makefile.in (target.o): Update dependencies.

None of these implementations can handle all cases satisfactory.  I also
tried a combination of both, but it wasn't any better either.  There are
basically two problems: one is that gdb is often trying to convert a
function pointer that was already converted, the other one is that the
conversion is done both on unrelocated and relocated objects.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


      parent reply	other threads:[~2007-03-01 22:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-01 18:27 Jose Flavio Aguilar Paulino
2007-03-01 18:37 ` Daniel Jacobowitz
2007-03-01 20:06   ` Jose Flavio Aguilar Paulino
2007-03-01 20:40     ` Daniel Jacobowitz
2007-03-01 21:56       ` Thiago Jung Bauermann
2007-03-01 22:03         ` Daniel Jacobowitz
2007-03-01 22:28           ` Thiago Jung Bauermann
2007-03-01 22:47           ` Andreas Schwab [this message]

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=jebqjcfunl.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jflavio@br.ibm.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