Submitter | Tom Tromey |
---|---|
Date | April 10, 2018, 5:37 p.m. |
Message ID | <20180410173704.21702-1-tom@tromey.com> |
Download | mbox | patch |
Permalink | /patch/26676/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d46ecdd120..8cc1486c87 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-04-10 Tom Tromey <tom@tromey.com> + + * value.c (value::value): Clear "location". + 2018-04-10 Pedro Alves <palves@redhat.com> * gdbthread.h (finish_thread_state_cleanup): Delete declaration. diff --git a/gdb/value.c b/gdb/value.c index 12aa2b8bb4..64e3eaca22 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -180,7 +180,7 @@ struct value type (type_), enclosing_type (type_) { - location.address = 0; + memset (&location, 0, sizeof (location)); } ~value ()