Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC 00/23] Regset rework preparations
@ 2014-04-28  9:35 Andreas Arnez
  2014-04-28  9:39 ` [RFC 01/23] Constify regset structures Andreas Arnez
                   ` (24 more replies)
  0 siblings, 25 replies; 38+ messages in thread
From: Andreas Arnez @ 2014-04-28  9:35 UTC (permalink / raw)
  To: gdb-patches; +Cc: Ulrich Weigand

This patch series intends to make regset definitions more similar across
architectures.  It is the first half of a "regset rework" series which
(in particular) makes core file handling multi-arch capable for all
Linux platforms.  Since the whole series seemed too bulky at one go, I
decided to split it and collect some feedback for the first half before
going on.

Outline:

* Patch 1 ("Constify regset structures"): Converts (unnecessarily)
  non-constant static regsets to constant ones.

* Patch 2 ("Remove 'arch' field from regset structure"): Removes the
  only inherently dynamic field from the regset structure.

* Patch 3-8 and 10 ("Replace regset_alloc() invocations by static
  regset structures."): Eliminate dynamic regset allocations and
  replace them by static constant structures, now that regsets don't
  carry dynamic data any more.  This generally simplifies the code and
  increases the similarity of regset definitions across architectures.

* Patch 9 ("SPARC: Rename register maps from "*regset" to "*regmap"):
  Adjusts naming, to avoid name clashes in patch 10.

* Patch 11 ("Drop regset_alloc()"): Removes the now-unused function.

* Patch 12 ("regcache: Add functions suitable for
  regset_supply/collect"): Provides generic supply/collect functions,
  such that architecture-specific logic can be reduced.

* Patch 13 ("S390: Migrate to regcache_supply/collect_regset"):
  Exploits the new generic supply/collect functions from patch 12 for
  S390.  Such exploitation is likely possible by other architectures
  as well; this patch provides an example.

* Patch 14-21 ("Fill 'collect_regset' in regset structures"): Add the
  collect_regset method to all Linux regsets where it had been
  missing.  This is necessary, but not sufficient, to make the "gcore"
  command multi-arch capable.  Some of these patches exploit the new
  generic supply/collect functions from patch 12.  No real new
  functionality is provided, but an important prerequisite for
  multi-arch capable core file handling is fulfilled.

* Patch 22, 23 ("Define regset structures"): Define regset structures
  for each of the Linux targets that lacked them before (M68K and
  IA64).  Exploit the new generic supply/collect functions from patch
  12.  These patches should make core file reading (but not writing)
  multi-arch capable for these targets.

Note that all architecture-specific changes except for S390 are
completely untested.


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

end of thread, other threads:[~2014-05-08 10:31 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28  9:35 [RFC 00/23] Regset rework preparations Andreas Arnez
2014-04-28  9:39 ` [RFC 01/23] Constify regset structures Andreas Arnez
2014-05-05  9:45   ` Mark Kettenis
2014-04-28  9:40 ` [RFC 02/23] Remove 'arch' field from regset structure Andreas Arnez
2014-05-05  9:32   ` Mark Kettenis
2014-05-05 13:35     ` Andreas Arnez
2014-04-28  9:44 ` [RFC 03/23] AARCH64: Replace regset_alloc() invocations by static regset structures Andreas Arnez
2014-04-28  9:46 ` [RFC 04/23] ARM: " Andreas Arnez
2014-04-28  9:47 ` [RFC 05/23] X86: " Andreas Arnez
2014-04-28 15:33   ` Mark Kettenis
2014-04-29  8:58     ` Andreas Arnez
2014-04-28  9:48 ` [RFC 06/23] MIPS: " Andreas Arnez
2014-04-28  9:49 ` [RFC 07/23] MN10300: " Andreas Arnez
2014-04-28  9:50 ` [RFC 08/23] SCORE: Replace regset_alloc() invocation by a static regset structure Andreas Arnez
2014-04-28  9:51 ` [RFC 09/23] SPARC: Rename register maps from "*regset" to "*regmap" Andreas Arnez
2014-05-05  9:50   ` Mark Kettenis
2014-04-28  9:52 ` [RFC 10/23] SPARC: Replace regset_alloc() invocations by static regset structures Andreas Arnez
2014-05-05  9:52   ` Mark Kettenis
2014-04-28  9:53 ` [RFC 11/23] Drop regset_alloc() Andreas Arnez
2014-05-05  9:53   ` Mark Kettenis
2014-04-28  9:54 ` [RFC 12/23] regcache: Add functions suitable for regset_supply/collect Andreas Arnez
2014-05-05 10:02   ` Mark Kettenis
2014-05-05 15:34     ` Andreas Arnez
2014-04-28  9:54 ` [RFC 13/23] S390: Migrate to regcache_supply/collect_regset Andreas Arnez
2014-04-28  9:55 ` [RFC 14/23] AARCH64 Linux: Fill 'collect_regset' in regset structures Andreas Arnez
2014-04-28  9:56 ` [RFC 15/23] ALPHA " Andreas Arnez
2014-04-28  9:57 ` [RFC 16/23] FRV " Andreas Arnez
2014-04-28  9:58 ` [RFC 17/23] HPPA " Andreas Arnez
2014-04-28  9:59 ` [RFC 19/23] NIOS2 Linux: Fill 'collect_regset' in regset structure Andreas Arnez
2014-04-28  9:59 ` [RFC 18/23] M32R " Andreas Arnez
2014-04-28 10:00 ` [RFC 20/23] SCORE: " Andreas Arnez
2014-04-28 10:01 ` [RFC 22/23] M68K Linux: Define regset structures Andreas Arnez
2014-04-28 10:01 ` [RFC 21/23] TILEGX Linux: Fill 'collect_regset' in regset structure Andreas Arnez
2014-04-28 10:02 ` [RFC 23/23] IA64 Linux: Define regset structures Andreas Arnez
2014-04-28 15:29 ` [RFC 00/23] Regset rework preparations Maciej W. Rozycki
2014-04-28 15:38   ` Andreas Arnez
2014-05-08 10:31     ` Andreas Arnez
2014-05-05  8:09 ` [ping] " Andreas Arnez

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