diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e99ec92543c..94bb7a515d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-08-21 Pedro Alves + + * frame.c (null_frame_id): Explicitly zero-initialize. + 2015-08-21 Tom Tromey * dwarf2read.c (struct dwarf2_section_info): Rename field diff --git a/gdb/frame.c b/gdb/frame.c index f05f7396766..745e0072e21 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -503,7 +503,7 @@ frame_unwind_caller_id (struct frame_info *next_frame) return null_frame_id; } -const struct frame_id null_frame_id; /* All zeros. */ +const struct frame_id null_frame_id = { 0 }; /* All zeros. */ const struct frame_id outer_frame_id = { 0, 0, 0, FID_STACK_INVALID, 0, 1, 0 }; struct frame_id diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a11461ddb23..61032872c6a 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-08-21 Pedro Alves + + * tdesc.c (default_description): Explicitly zero-initialize. + 2015-08-21 Pedro Alves PR gdb/18749 diff --git a/gdb/gdbserver/tdesc.c b/gdb/gdbserver/tdesc.c index 8d008fd7e6e..1263efe4d7f 100644 --- a/gdb/gdbserver/tdesc.c +++ b/gdb/gdbserver/tdesc.c @@ -40,7 +40,7 @@ init_target_desc (struct target_desc *tdesc) #ifndef IN_PROCESS_AGENT -static const struct target_desc default_description; +static const struct target_desc default_description = { 0 }; void copy_target_description (struct target_desc *dest,