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.
This commit is contained in:
Michael Snyder 2000-04-27 15:33:01 +00:00
parent a034fba4ec
commit cbda0a99a3
5 changed files with 24 additions and 5 deletions

View file

@ -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).

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -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));