aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-04-27 15:33:01 +0000
committerMichael Snyder <msnyder@vmware.com>2000-04-27 15:33:01 +0000
commitcbda0a99a3593103bd5d5573ac5c86264d519b3f (patch)
tree220de83e113a7f2d540ce101f7332ffc06ac1bed /gdb/findvar.c
parenta034fba4ecd6c51e17a6a04df63bdad337fe8b62 (diff)
downloadgdb-cbda0a99a3593103bd5d5573ac5c86264d519b3f.zip
gdb-cbda0a99a3593103bd5d5573ac5c86264d519b3f.tar.gz
gdb-cbda0a99a3593103bd5d5573ac5c86264d519b3f.tar.bz2
2000-04-27 Michael Snyder <msnyder@seadog.cygnus.com>
* jv-valprint.c (java_val_print): Add arg declaration, fix compiler warning. * corelow.c (core_open): Call set_gdbarch_from_file so that gdbarch becomes aware of the architecture encoded in the corefile. * findvar.c (write_register_gen): Export this useful interface. * value.h (write_register_gen): Declare.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 3f3721f..5ee099b 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -42,9 +42,12 @@ const struct floatformat floatformat_unknown;
#define CANNOT_STORE_REGISTER(regno) 0
#endif
-static void write_register_gen PARAMS ((int, char *));
+void write_register_gen PARAMS ((int, char *));
-static int read_relative_register_raw_bytes_for_frame PARAMS ((int regnum, char *myaddr, struct frame_info * frame));
+static int
+read_relative_register_raw_bytes_for_frame PARAMS ((int regnum,
+ char *myaddr,
+ struct frame_info *frame));
/* Basic byte-swapping routines. GDB has needed these for a long time...
All extract a target-format integer at ADDR which is LEN bytes long. */
@@ -777,7 +780,7 @@ read_register_gen (regno, myaddr)
/* Write register REGNO at MYADDR to the target. MYADDR points at
REGISTER_RAW_BYTES(REGNO), which must be in target byte-order. */
-static void
+void
write_register_gen (regno, myaddr)
int regno;
char *myaddr;