Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: [rfc][00/37] Eliminate builtin_type_ macros
@ 2008-09-11 20:21 Ulrich Weigand
  0 siblings, 0 replies; 20+ messages in thread
From: Ulrich Weigand @ 2008-09-11 20:21 UTC (permalink / raw)
  To: gdb-patches; +Cc: brobecker

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

Joel Brobecker wrote:

>OK, I ended up checking in both patches (there was simply too much
>confusion on the second one, so it was simpler if I just change
>the use of builtin_type_int into builtin_type_int32).  Hopefully,
>this should clear the way for you to commit your series of patches!

(Hmm, it seems my first reply didn't make it to the list; I'll try again
with the patch compressed to make it shorter ...)

I've now checked in the remaining parts of the patch series.
The cumulative patch as checked-in is appended.



Thanks,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com

[-- Attachment #2: builtin-type-all.diff.bz2 --]
[-- Type: application/octet-stream, Size: 50079 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* [rfc][00/37] Eliminate builtin_type_ macros
@ 2008-08-31 17:53 uweigand
  2008-08-31 22:20 ` Mark Kettenis
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: uweigand @ 2008-08-31 17:53 UTC (permalink / raw)
  To: gdb-patches

Hello,

one of the last remaining "implicit" uses of current_gdbarch is the
builtin_type_ macros.  This patch set completely removes those macros.

I've attempted to not simply replace those types with explict uses of
current_gdbarch, but instead choose the proper architecture to use:

- I've added a gdbarch pointer to struct expression, and used this
  per-expression arch throughout expression parsing and evaluation.
- I've converted some types (like builtin_void_type) back to be
  platform-neutral, so they can be freely used throughout GDB.
- In many cases, an existing per-frame or per-objfile arch was available
  (or could be made available) and should be used.
- Target-specific code should use target_gdbarch.
- In a very small number of case, current_gdbarch remains for now.

Each of the following patches contains a more specific explanation.

Combination of all 37 patches tested on amd64-linux, s390-ibm-linux,
s390x-ibm-linux, powerpc-linux, powerpc64-linux, and spu-elf with no
regressions.  Also, compile-tested with --enable-targets=all (each 
patch by itself).

I'd be interested in particular in feedback from the Ada maintainers
on the Ada-related changes in this patch-set.

What do you think?

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-09-11 20:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-11 20:21 [rfc][00/37] Eliminate builtin_type_ macros Ulrich Weigand
  -- strict thread matches above, loose matches on Subject: below --
2008-08-31 17:53 uweigand
2008-08-31 22:20 ` Mark Kettenis
2008-09-01  3:46   ` David Miller
2008-09-01 18:57   ` Ulrich Weigand
2008-09-02 10:22     ` Mark Kettenis
2008-09-02 12:30       ` Daniel Jacobowitz
2008-09-02 21:37       ` Ulrich Weigand
2008-09-02 12:50 ` Daniel Jacobowitz
2008-09-02 22:02   ` Ulrich Weigand
2008-09-02 22:12     ` Daniel Jacobowitz
2008-09-06  3:16 ` Joel Brobecker
2008-09-07 16:43   ` Ulrich Weigand
2008-09-09 18:05     ` Joel Brobecker
2008-09-09 20:21       ` Ulrich Weigand
2008-09-09 21:18       ` Joel Brobecker
2008-09-09 22:12         ` Ulrich Weigand
2008-09-10  6:18           ` Joel Brobecker
2008-09-10  9:43             ` Ulrich Weigand
2008-09-10 16:25               ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox