From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: insight@sourceware.org
Cc: gdb-patches@sourceware.org
Subject: Re: [3/3] Remove deprecated_register_gdbarch_swap infrastructure
Date: Wed, 27 Jun 2007 01:10:00 -0000 [thread overview]
Message-ID: <200706270013.l5R0DDii030369@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <46815309.331600D9@dessent.net> from "Brian Dessent" at Jun 26, 2007 10:55:21 AM
Brian Dessent wrote:
> 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 (®format, sizeof (regformat),
> NULL);
> deprecated_register_gdbarch_swap (®type, sizeof (regtype), NULL);
> deprecated_register_gdbarch_swap (NULL, 0, setup_architecture_data);
>
> return TCL_OK;
> }
There's no direct replacement. You'd have to eliminate those global
variables (old_regs, regformat, regtype), and replace them by something
that explicitly takes the architecture into account.
I've actually never looked at Insight before. Where's that code
located?
Bye,
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2007-06-27 0:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 23:23 Ulrich Weigand
2007-06-12 15:35 ` Daniel Jacobowitz
2007-06-22 12:54 ` Ulrich Weigand
2007-06-26 18:30 ` Brian Dessent
2007-06-27 1:10 ` Ulrich Weigand [this message]
2007-06-27 6:52 ` Brian Dessent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200706270013.l5R0DDii030369@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=insight@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox