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: [3/3] Remove deprecated_register_gdbarch_swap infrastructure


Ulrich Weigand wrote:

> I've now committed the following version of this patch.
> 
> Bye,
> Ulrich
> 
>         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
>         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
>         (struct gdbarch_swap, struct gdbarch_swap_registration,
>         struct gdbarch_swap_registry, gdbarch_swap_registry,
>         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
>         current_gdbarch_swap_in_hack): Remove.
>         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
>         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
>         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
>         (deprecated_current_gdbarch_select_hack): Likewise.
>         * gdbarch.h, gdbarch.c: Regenerate.

Insight is still a user of deprecated_register_gdbarch_swap, so now it's
broken.  What's the proper replacement for the following -

int
Gdbtk_Register_Init (Tcl_Interp *interp)
{
  Tcl_CreateObjCommand (interp, "gdb_reginfo", gdbtk_call_wrapper,
                        gdb_register_info, NULL);

  /* Register/initialize any architecture specific data */
  setup_architecture_data ();

  deprecated_register_gdbarch_swap (&old_regs, sizeof (old_regs), NULL);
  deprecated_register_gdbarch_swap (&regformat, sizeof (regformat),
NULL);
  deprecated_register_gdbarch_swap (&regtype, sizeof (regtype), NULL);
  deprecated_register_gdbarch_swap (NULL, 0, setup_architecture_data);

  return TCL_OK;
}

Brian


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