public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-tromey-remove-obj_section: initialize the full psymbol
@ 2012-12-18 15:49 tromey
0 siblings, 0 replies; only message in thread
From: tromey @ 2012-12-18 15:49 UTC (permalink / raw)
To: archer-commits
The branch, archer-tromey-remove-obj_section has been updated
via f95dc0c957ad8c479e5759c18584a41253881ae6 (commit)
from 4b16a2aaa6106ff7e3ce65c12e812da1b19ba236 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit f95dc0c957ad8c479e5759c18584a41253881ae6
Author: Tom Tromey <tromey@redhat.com>
Date: Tue Dec 18 08:04:54 2012 -0700
initialize the full psymbol
this prevents an assertion when the ada_mangled field is uninitialized
found by Joel
-----------------------------------------------------------------------
Summary of changes:
gdb/psymtab.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
First 500 lines of diff:
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 384a895..9e23932 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -1603,10 +1603,10 @@ add_psymbol_to_bcache (const char *name, int namelength, int copy_name,
{
struct partial_symbol psymbol;
- /* We must ensure that the entire 'value' field has been zeroed
- before assigning to it, because an assignment may not write the
- entire field. */
- memset (&psymbol.ginfo.value, 0, sizeof (psymbol.ginfo.value));
+ /* We must ensure that the entire struct has been zeroed before
+ assigning to it, because an assignment may not touch some of the
+ holes. */
+ memset (&psymbol, 0, sizeof (psymbol));
/* val and coreaddr are mutually exclusive, one of them *will* be zero. */
if (val != 0)
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-18 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 15:49 [SCM] archer-tromey-remove-obj_section: initialize the full psymbol tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).