This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 00/12] Make use of default gdbarch methods for some targets


* Andrew Burgess <andrew.burgess@embecosm.com> [2018-12-27 14:08:24 +0000]:

> Following on from this patch:
> 
>     https://sourceware.org/ml/gdb-patches/2018-11/msg00132.html
> 
> This series removes the dummy_id, unwind_pc, and unwind_sp gdbarch
> methods from some targets in cases where it seems obvious that the
> default method, and the method being deleted are the same.
> 
> From this series only the RISC-V patch has been tested (due to lack of
> targets), so I'm relying on manual code inspection to convince myself
> the patches are correct.
> 
> I've CC'd target maintainers where I can find any in the hope people
> might test their own target, however, not every target has an obvious
> maintainer, so some are going to rely on review.
> 
> I've not adjusted every target, this is about half.  I wanted to see
> if it's possible to get this set of changes accepted before I do the
> remaining set.  I don't think updating half the targets now, and half
> later will leave GDB in a worse state.
> 
> Final note, all of these patches are independent, each should apply
> cleanly without the preceding patches, so feel free to review any that
> are of interest, I'll push patches as they get approval.
> 
> Thanks,
> Andrew
> 
> ---
> 
> Andrew Burgess (12):
>   gdb/aarch64: Use default gdbarch methods where possible
>   gdb/alpha: Use default gdbarch methods where possible
>   gdb/arc: Use default gdbarch method default_dummy_id.
>   gdb/arm: Use default gdbarch methods where possible
>   gdb/bfin: Use default gdbarch methods where possible
>   gdb/cris: Use default gdbarch methods where possible
>   gdb/csky: Use default gdbarch methods where possible
>   gdb/riscv: Use default gdbarch methods where possible
>   gdb/frv: Use default gdbarch methods where possible
>   gdb/ft32: Use default gdbarch methods where possible
>   gdb/h8300: Use default gdbarch methods where possible
>   gdb/hppa: Use default gdbarch method default_dummy_id.

I've now pushed this series with the change Anton suggested - removing
the arc specific unwind_pc (and also the arc unwind_sp) functions.

Thanks,
Andrew



> 
>  gdb/ChangeLog      | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  gdb/aarch64-tdep.c | 38 -----------------------
>  gdb/alpha-tdep.c   | 29 ------------------
>  gdb/arc-tdep.c     | 14 ---------
>  gdb/arm-tdep.c     | 37 -----------------------
>  gdb/bfin-tdep.c    | 18 -----------
>  gdb/cris-tdep.c    | 40 -------------------------
>  gdb/csky-tdep.c    | 34 ---------------------
>  gdb/frv-tdep.c     | 27 -----------------
>  gdb/ft32-tdep.c    | 33 --------------------
>  gdb/h8300-tdep.c   | 22 --------------
>  gdb/hppa-tdep.c    |  9 ------
>  gdb/riscv-tdep.c   | 30 -------------------
>  13 files changed, 88 insertions(+), 331 deletions(-)
> 
> -- 
> 2.14.5
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]