]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Avoid compilation warning in gcore.c.
authorEli Zaretskii <eliz@gnu.org>
Sat, 8 Jun 2024 07:22:03 +0000 (10:22 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Jun 2024 07:22:03 +0000 (10:22 +0300)
See https://sourceware.org/pipermail/gdb-patches/2024-June/209726.html
for the details.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/gcore.c

index 007966212a793beeb51100f6eab915a09d7191c2..2ab00a0ec352554b8ea40ed6c4233407668d10e0 100644 (file)
@@ -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 ())