diff options
author | Eli Zaretskii <eliz@gnu.org> | 2024-06-08 10:22:03 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-06-08 10:22:03 +0300 |
commit | e222ed2ce5b5359bfc6d8fd125534ccb507d7fb0 (patch) | |
tree | 879c2180fbf948f3c0b23d311b046c22faf77962 | |
parent | 7831bc9185340d294e02eb9e1312ec9dc865e2ff (diff) | |
download | fsf-binutils-gdb-e222ed2ce5b5359bfc6d8fd125534ccb507d7fb0.zip fsf-binutils-gdb-e222ed2ce5b5359bfc6d8fd125534ccb507d7fb0.tar.gz fsf-binutils-gdb-e222ed2ce5b5359bfc6d8fd125534ccb507d7fb0.tar.bz2 |
gdb: Avoid compilation warning in gcore.c.
See https://sourceware.org/pipermail/gdb-patches/2024-June/209726.html
for the details.
Approved-By: Tom Tromey <tom@tromey.com>
-rw-r--r-- | gdb/gcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 0079662..2ab00a0 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -528,7 +528,7 @@ objfile_find_memory_regions (struct target_ops *self, find_memory_region_ftype func, void *obfd) { /* Use objfile data to create memory sections. */ - bfd_vma temp_bottom, temp_top; + bfd_vma temp_bottom = 0, temp_top = 0; /* Call callback function for each objfile section. */ for (objfile *objfile : current_program_space->objfiles ()) |