This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] [03/09] Get rid of current_gdbarch (gdbarch parameter to breakpoint_from_pc)
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Mon, 5 Nov 2007 17:25:30 +0100 (CET)
- Subject: Re: [rfc] [03/09] Get rid of current_gdbarch (gdbarch parameter to breakpoint_from_pc)
Markus Deuling wrote:
> * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
> * gdbarch.{c,h}: Regenerate.
>
> * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
> Replace current_gdbarch by gdbarch.
> * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
> * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
> * score-tdep.c (score_breakpoint_from_pc): Likewise.
> * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
> * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
> * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
> * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
>
> * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
> parameter.
> * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
> * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
> * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
> * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
> * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
> * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
> * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
> * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
> * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
> * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
> * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
> * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
> * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
> * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
> * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
> * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
> * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
> * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
> * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
> * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
>
> * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
> Replace current_gdbarch by gdbarch.
> (rs6000_software_single_step): Use get_frame_arch to get at the
> current architecture by frame_info. Add gdbarch to
> rs6000_breakpoint_from_pc call.
This is OK.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com