diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-03-22 23:58:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-03-22 23:58:37 +0000 |
commit | 886655446608bea8e4cf8a93bf77df06dc087312 (patch) | |
tree | 3096b2299578cc4069ccd7d19e1b0b285aa75df8 | |
parent | 7389ff65de42693e0c69b18567377a3a9996bf6e (diff) | |
download | gdb-886655446608bea8e4cf8a93bf77df06dc087312.zip gdb-886655446608bea8e4cf8a93bf77df06dc087312.tar.gz gdb-886655446608bea8e4cf8a93bf77df06dc087312.tar.bz2 |
-Wuninitialized fixes.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/exec.c | 2 | ||||
-rw-r--r-- | gdb/infrun.c | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 322ac96..84d19b0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2001-03-22 Andrew Cagney <ac131313@redhat.com> + * exec.c (xfer_memory): Always initialize section. + * infrun.c (normal_stop): Always initialize source_flag. + +2001-03-22 Andrew Cagney <ac131313@redhat.com> + * TODO (Remote Protocol Support): Review. Add notes about ``!'', non-use of a continue address and typical use of ``q'' packet. @@ -486,7 +486,7 @@ xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, struct section_table *p; CORE_ADDR nextsectaddr, memend; boolean (*xfer_fn) (bfd *, sec_ptr, PTR, file_ptr, bfd_size_type); - asection *section; + asection *section = NULL; if (len <= 0) internal_error (__FILE__, __LINE__, "failed internal consistency check"); diff --git a/gdb/infrun.c b/gdb/infrun.c index d2373ad..7c9a38c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3521,6 +3521,7 @@ and/or watchpoints.\n"); source_flag = SRC_LINE; break; case PRINT_NOTHING: + source_flag = SRC_LINE; /* something bogus */ do_frame_printing = 0; break; default: |