From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17261 invoked by alias); 11 Mar 2011 16:06:10 -0000 Received: (qmail 17151 invoked by uid 22791); 11 Mar 2011 16:06:09 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Mar 2011 16:06:05 +0000 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id p2BG62Dp000369 for ; Fri, 11 Mar 2011 08:06:03 -0800 Received: from vws7 (vws7.prod.google.com [10.241.21.135]) by hpaq12.eem.corp.google.com with ESMTP id p2BG60Vt019014 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 11 Mar 2011 08:06:01 -0800 Received: by vws7 with SMTP id 7so874159vws.21 for ; Fri, 11 Mar 2011 08:06:00 -0800 (PST) Received: by 10.220.53.14 with SMTP id k14mr374871vcg.163.1299859559074; Fri, 11 Mar 2011 08:05:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.220.60.9 with HTTP; Fri, 11 Mar 2011 08:05:29 -0800 (PST) From: Paul Pluzhnikov Date: Fri, 11 Mar 2011 17:09:00 -0000 Message-ID: Subject: Advice on fixing gdb/12528 To: gdb-patches ml Cc: Doug Evans Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00664.txt.bz2 Greetings, Doug and myself just independently hit http://sourceware.org/bugzilla/show_bug.cgi?id=12528 (and 12568). I would like advice on fixing it. I know that in general GDB can not ignore code at location 0, but it appears inevitable that it must do so on platforms where - it is known that no code can execute there, and - linker relocates debug info to address 0 to indicate that the corresponding code has been discarded. So would something like: case DW_LNE_set_address: address = read_address (abfd, line_ptr, cu, &bytes_read); if (!target->to_valid_code_address (address)) { // this debug line info corresponds to function that has // been GCd by the linker. Skip to end_sequence. } in dwarf_decode_lines() ? Thanks, -- Paul Pluzhnikov