aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-06-08 10:22:03 +0300
committerEli Zaretskii <eliz@gnu.org>2024-06-08 10:24:45 +0300
commit48db4a8344070c37f3ab34e09e50dae119e1cf3d (patch)
tree8a2483b788c15030c1eee57b6e071f3af5c07edc
parent2feb7c18106919b2cbeb92beb56d6dae76de2f16 (diff)
downloadgdb-48db4a8344070c37f3ab34e09e50dae119e1cf3d.zip
gdb-48db4a8344070c37f3ab34e09e50dae119e1cf3d.tar.gz
gdb-48db4a8344070c37f3ab34e09e50dae119e1cf3d.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> (cherry picked from commit e222ed2ce5b5359bfc6d8fd125534ccb507d7fb0)
-rw-r--r--gdb/gcore.c2
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 ())