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>
This commit is contained in:
Eli Zaretskii 2024-06-08 10:22:03 +03:00
parent 7831bc9185
commit e222ed2ce5

View 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 ())