This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 3/5] Prec: x86 segment register support: target
- From: Michael Snyder <msnyder at vmware dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 16 Mar 2010 11:12:49 -0700
- Subject: Re: [RFA 3/5] Prec: x86 segment register support: target
- References: <daef60381003160948q7ba41966o76b6194cd7a8f1d0@mail.gmail.com>
Hui Zhu wrote:
This patch add a interface to let GDB get segment base message from inferior.
Thanks,
Hui
2010-03-16 Hui Zhu <teawater@gmail.com>
* target.c (update_current_target): Add to_get_segment_base.
* target.h (target_ops): Ditto.
Hi Hui,
I'm glad you're doing this.
However, isn't target.c the wrong place for this function?
Wouldn't it belong better in the gdbarch? It is architecture-
specific, if I understand correctly.
That is, this will be the same between i386-ptrace and i386-remote,
but different between i386-remote and (say) mips-remote.
Michael