diff options
author | Fred Fish <fnf@specifix.com> | 1996-08-01 05:25:23 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-08-01 05:25:23 +0000 |
commit | a95d92fa57f3430915df280f9f866cc87ef20628 (patch) | |
tree | fe3271b8415ba7e7d4374f5c38d09ccace2dbc12 /gdb | |
parent | 9971ae5941d67c7e51df1f5b2b9db0f003146a7e (diff) | |
download | gdb-a95d92fa57f3430915df280f9f866cc87ef20628.zip gdb-a95d92fa57f3430915df280f9f866cc87ef20628.tar.gz gdb-a95d92fa57f3430915df280f9f866cc87ef20628.tar.bz2 |
* rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
(vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
(fetch_core_registers): Add prototype.
(vmap_symtab): Ditto.
(objfile_symbol_add): Ditto.
(add_vmap): Ditto.
(vmap_ldinfo): Ditto.
(vmap_exec): Ditto.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 11 | ||||
-rw-r--r-- | gdb/rs6000-nat.c | 22 |
2 files changed, 31 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 315e42a..89c15d6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com> + + * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value. + (vmap_ldinfo): Ensure got_exec_file is not used uninitialized. + (fetch_core_registers): Add prototype. + (vmap_symtab): Ditto. + (objfile_symbol_add): Ditto. + (add_vmap): Ditto. + (vmap_ldinfo): Ditto. + (vmap_exec): Ditto. + Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com> * stabsread.c (get_substring): Declare second arg as int. diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 5772fe0..7aa42bd 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -52,6 +52,24 @@ extern struct vmap * map_vmap PARAMS ((bfd *bf, bfd *arch)); extern struct target_ops exec_ops; static void +vmap_exec PARAMS ((void)); + +static void +vmap_ldinfo PARAMS ((struct ld_info *)); + +static struct vmap * +add_vmap PARAMS ((struct ld_info *)); + +static int +objfile_symbol_add PARAMS ((char *)); + +static void +vmap_symtab PARAMS ((struct vmap *)); + +static void +fetch_core_registers PARAMS ((char *, unsigned int, int, unsigned int)); + +static void exec_one_dummy_insn PARAMS ((void)); extern void @@ -402,7 +420,7 @@ add_vmap (ldi) bfd_close (abfd); /* FIXME -- should be error */ warning ("\"%s\": member \"%s\" missing.", abfd->filename, mem); - return; + return 0; } if (!bfd_check_format(last, bfd_object)) @@ -447,7 +465,7 @@ vmap_ldinfo (ldi) struct stat ii, vi; register struct vmap *vp; int got_one, retried; - int got_exec_file; + int got_exec_file = 0; /* For each *ldi, see if we have a corresponding *vp. If so, update the mapping, and symbol table. |