This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [5/10] Add "explicit size" types to builtin_type
On Wed, Jun 13, 2007 at 04:10:07PM +0200, Ulrich Weigand wrote:
> What I had been thinking of is to explicitly assign a gdbarch to
> each objfile (probably as an objfile->arch member). Now this arch
> is -as you mention- not necessarily the same as the "current"
> architecture (what will become the per-thread / per-frame
> architecture), but it will simply be the gdbarch selected by the
> sniffers on the basis of the objfile (bfd) alone. This arch would
> then be used to provide per-platform configuration information to
> the symbol parts of GDB.
I like this idea. The other thing I was thinking of was a gdbarch
check that two gdbarches have the same methods and constants for the
parts that symbol readers are allowed to use, but that isn't feasible.
--
Daniel Jacobowitz
CodeSourcery