From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFC] Eliminate use of deprecated_register_bytes() from remote.c
Date: Fri, 15 Apr 2005 21:32:00 -0000 [thread overview]
Message-ID: <20050415143245.4b210dfe@ironwood.lan> (raw)
This one seems almost obvious, but I'd like someone else to look it
over before I check it in...
* remote.c (init_remote_state): Eliminate use of
deprecated_register_bytes().
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.184
diff -u -p -r1.184 remote.c
--- remote.c 15 Apr 2005 21:16:09 -0000 1.184
+++ remote.c 15 Apr 2005 21:25:00 -0000
@@ -248,10 +248,7 @@ init_remote_state (struct gdbarch *gdbar
int regnum;
struct remote_state *rs = GDBARCH_OBSTACK_ZALLOC (gdbarch, struct remote_state);
- if (deprecated_register_bytes () != 0)
- rs->sizeof_g_packet = deprecated_register_bytes ();
- else
- rs->sizeof_g_packet = 0;
+ rs->sizeof_g_packet = 0;
/* Assume a 1:1 regnum<->pnum table. */
rs->regs = GDBARCH_OBSTACK_CALLOC (gdbarch, NUM_REGS + NUM_PSEUDO_REGS,
@@ -266,8 +263,7 @@ init_remote_state (struct gdbarch *gdbar
/* ...name = REGISTER_NAME (regnum); */
/* Compute packet size by accumulating the size of all registers. */
- if (deprecated_register_bytes () == 0)
- rs->sizeof_g_packet += register_size (current_gdbarch, regnum);
+ rs->sizeof_g_packet += register_size (current_gdbarch, regnum);
}
/* Default maximum number of characters in a packet body. Many
next reply other threads:[~2005-04-15 21:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 21:32 Kevin Buettner [this message]
2005-04-15 21:38 ` Daniel Jacobowitz
2005-04-15 23:12 ` Kevin Buettner
2005-04-27 15:40 ` Daniel Jacobowitz
2005-04-28 18:16 ` Kevin Buettner
2005-04-29 22:59 ` Michael Snyder
2005-05-02 19:39 ` Kevin Buettner
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=20050415143245.4b210dfe@ironwood.lan \
--to=kevinb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/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