From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17429 invoked by alias); 18 Jul 2002 12:50:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17421 invoked from network); 18 Jul 2002 12:50:15 -0000 Received: from unknown (HELO kerberos.suse.cz) (195.47.106.10) by sources.redhat.com with SMTP; 18 Jul 2002 12:50:15 -0000 Received: from chimera.suse.cz (chimera.suse.cz [10.20.0.2]) by kerberos.suse.cz (SuSE SMTP server) with ESMTP id 64A8D59D34C for ; Thu, 18 Jul 2002 14:50:14 +0200 (CEST) Received: from suse.cz (naga.suse.cz [10.20.1.16]) by chimera.suse.cz (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g6ICo8g27608 for ; Thu, 18 Jul 2002 14:50:08 +0200 X-Authentication-Warning: chimera.suse.cz: Host naga.suse.cz [10.20.1.16] claimed to be suse.cz Message-ID: <3D36B967.7030205@suse.cz> Date: Thu, 18 Jul 2002 05:54:00 -0000 From: Michal Ludvig Organization: SuSE CR User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: cs, cz, en MIME-Version: 1.0 To: GDB Patches Subject: [RFA] dwarf2cfi.c improvements Content-Type: multipart/mixed; boundary="------------000604080306060108070901" X-SW-Source: 2002-07/txt/msg00385.txt.bz2 This is a multi-part message in MIME format. --------------000604080306060108070901 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Content-length: 374 Hi all, this patch adds an error() call when there is an unknown DW_OP_ value in a debug_frame section. Next it initialises return value CFA so that it isn't used uninitialised when the switch{} finishes on default label. Easy. Nothing to be broken in here. OK to commit? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * +420 2 9654 5373 * http://www.suse.cz --------------000604080306060108070901 Content-Type: text/plain; name="cfi-1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cfi-1.diff" Content-length: 973 2002-07-17 Michal Ludvig * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value. (update_context): Initialise cfa variable. Index: dwarf2cfi.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2cfi.c,v retrieving revision 1.15 diff -u -p -r1.15 dwarf2cfi.c --- dwarf2cfi.c 15 Jul 2002 16:01:31 -0000 1.15 +++ dwarf2cfi.c 18 Jul 2002 12:35:40 -0000 @@ -1227,7 +1227,8 @@ execute_stack_op (struct objfile *objfil case DW_OP_ne: result = (LONGEST) first != (LONGEST) second; break; - default: /* This label is here just to avoid warning. */ + default: + error ("execute_stack_op: Unknown DW_OP_ value"); break; } } @@ -1271,7 +1272,7 @@ static void update_context (struct context *context, struct frame_state *fs, int chain) { struct context *orig_context; - CORE_ADDR cfa; + CORE_ADDR cfa = 0; long i; unwind_tmp_obstack_init (); --------------000604080306060108070901--