From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: deuling@de.ibm.com (Markus Deuling)
Cc: gdb-patches@sourceware.org (GDB Patches)
Subject: Re: [rfc] [08/09] Get rid of current_gdbarch (infcall)
Date: Mon, 05 Nov 2007 16:33:00 -0000 [thread overview]
Message-ID: <200711051633.lA5GXRTe027727@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <472F0AD5.10204@de.ibm.com> from "Markus Deuling" at Nov 05, 2007 01:21:41 PM
Markus Deuling wrote:
> * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
> current architecture by frame_info.
This part is fine.
However, I'm not convinced this:
> (find_function_addr): Add gdbarch parameter. Replace current_gdbarch by
> gdbarch.
> * infcall.h (find_function_addr): Add gdbarch parameter.
is the right way to go. Consider the call to find_function_addr in value_ind:
there is no clear way how that function would know which architecture to use.
I'm hoping that at some point in the future, a "struct value" for a function
would contain enough information to identify the architecture the function
is defined for, determined at the time the value is generated.
If we can make that happen, there will be no need to pass an additional
gdbarch parameter to find_function_addr. Thus, I'd prefer to defer this
interface change until we have resolved that question.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2007-11-05 16:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-05 12:23 Markus Deuling
2007-11-05 16:33 ` Ulrich Weigand [this message]
2007-11-06 12:05 ` Markus Deuling
2007-11-06 17:46 ` Ulrich Weigand
2007-11-07 6:50 ` Markus Deuling
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=200711051633.lA5GXRTe027727@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.org \
/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