summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-04-27 15:33:01 +0000
committerMichael Snyder <msnyder@specifix.com>2000-04-27 15:33:01 +0000
commit17a304cef8a97b99d825e2488627034f0074cd1e (patch)
treeb7097ad33e60fc237ad6d8e02fd8141fdf00bfa8
parent04d9d094d02e638021528076f6b6ef56d0534f82 (diff)
downloadgdb-17a304cef8a97b99d825e2488627034f0074cd1e.tar.gz
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.
-rw-r--r--gdb/ChangeLog14
-rw-r--r--gdb/corelow.c2
-rw-r--r--gdb/findvar.c9
-rw-r--r--gdb/jv-valprint.c1
-rw-r--r--gdb/value.h3
5 files changed, 24 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d750ccd7bd7..04b9f00b6c0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+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.
+
2000-04-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* cxux-nat.c (add_shared_symbol_files): Don't treat .text section
@@ -17,13 +27,13 @@ Thu Apr 27 10:06:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
2000-04-26 Michael Snyder <msnyder@seadog.cygnus.com>
* utils.c (internal_verror): Call target_terminal_ours.
- * wrapper.h: fix minor comment typo.
+ * wrapper.h: Fix minor comment typo.
* proc-api.c (write_with_trace): Change 'arg' from long to int.
Treat 'off_t' and 'size_t' as unsigned long in printfs.
(lseek_with_trace): Treat 'off_t' as unsigned long in printf.
* procfs.c (comments): Eliminate "???" in comments, which GCC
wants to interpret as a trigraph. (fill_gregset, supply_gregset,
- fill_fpregset, supply_fpregset): declare.
+ fill_fpregset, supply_fpregset): Declare.
(procfs_wait): Sysargs is a long, change printf format to match.
(test-mapping, mapping_test, test_mapping_cmd) Remove (test only).
diff --git a/gdb/corelow.c b/gdb/corelow.c
index d5998f4c42d..adcfe90df19 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -318,6 +318,8 @@ core_open (filename, from_tty)
error ("\"%s\": Can't find sections: %s",
bfd_get_filename (core_bfd), bfd_errmsg (bfd_get_error ()));
+ set_gdbarch_from_file (core_bfd);
+
ontop = !push_target (&core_ops);
discard_cleanups (old_chain);
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 3f3721f5bc5..5ee099ba946 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;
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 0f4232cc8c6..6f9273d5100 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -454,6 +454,7 @@ java_val_print (type, valaddr, embedded_offset, address, stream, format,
deref_ref, recurse, pretty)
struct type *type;
char *valaddr;
+ int embedded_offset;
CORE_ADDR address;
struct ui_file *stream;
int format;
diff --git a/gdb/value.h b/gdb/value.h
index b67967a301c..57fd38cbaf5 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -464,6 +464,9 @@ extern void write_register_bytes PARAMS ((int regbyte, char *myaddr, int len));
extern void
read_register_gen PARAMS ((int regno, char *myaddr));
+extern void
+write_register_gen PARAMS ((int regno, char *myaddr));
+
extern CORE_ADDR
read_register PARAMS ((int regno));