From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7879 invoked by alias); 18 Dec 2012 15:49:36 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 7773 invoked by uid 306); 18 Dec 2012 15:49:34 -0000 Date: Tue, 18 Dec 2012 15:49:00 -0000 Message-ID: <20121218154934.7744.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-remove-obj_section: initialize the full psymbol X-Git-Refname: refs/heads/archer-tromey-remove-obj_section X-Git-Reftype: branch X-Git-Oldrev: 4b16a2aaa6106ff7e3ce65c12e812da1b19ba236 X-Git-Newrev: f95dc0c957ad8c479e5759c18584a41253881ae6 X-SW-Source: 2012-q4/txt/msg00034.txt.bz2 List-Id: 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 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.