diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-11 14:05:11 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-12 10:34:17 -0500 |
commit | 5b3da067f0893be637f9e992b409e36682ea081a (patch) | |
tree | ef797cfda410987c111d3058da160c952e82d8f3 /gdb/gdbserver/regcache.c | |
parent | ba4dd7c4a1d99c62a1c2edd68f511a82f8fe041e (diff) | |
download | binutils-gdb-5b3da067f0893be637f9e992b409e36682ea081a.tar.gz |
gdbserver: fix various warnings
Delete unused funcs, update old prototypes, and mark local funcs
as static. This doesn't cover all missing prototype warnings.
Diffstat (limited to 'gdb/gdbserver/regcache.c')
-rw-r--r-- | gdb/gdbserver/regcache.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/gdbserver/regcache.c b/gdb/gdbserver/regcache.c index cd8d9db9631..6a737ea37ec 100644 --- a/gdb/gdbserver/regcache.c +++ b/gdb/gdbserver/regcache.c @@ -253,18 +253,6 @@ registers_from_string (struct regcache *regcache, char *buf) hex2bin (buf, registers, len / 2); } -struct reg * -find_register_by_name (const struct target_desc *tdesc, const char *name) -{ - int i; - - for (i = 0; i < tdesc->num_registers; i++) - if (strcmp (name, tdesc->reg_defs[i].name) == 0) - return &tdesc->reg_defs[i]; - internal_error (__FILE__, __LINE__, "Unknown register %s requested", - name); -} - int find_regno (const struct target_desc *tdesc, const char *name) { |