From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25894 invoked by alias); 4 Dec 2005 22:05:55 -0000 Received: (qmail 25887 invoked by uid 22791); 4 Dec 2005 22:05:55 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 04 Dec 2005 22:05:53 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id jB4M5Gqi000201; Sun, 4 Dec 2005 23:05:16 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id jB4M5GFh027928; Sun, 4 Dec 2005 23:05:16 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jB4M5GKD015863; Sun, 4 Dec 2005 23:05:16 +0100 (CET) Date: Mon, 05 Dec 2005 09:43:00 -0000 Message-Id: <200512042205.jB4M5GKD015863@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: jimb@red-bean.com CC: gdb-patches@sourceware.org In-reply-to: <8f2776cb0512041312o19d356amabe6f7a2f47c67f1@mail.gmail.com> (message from Jim Blandy on Sun, 4 Dec 2005 13:12:41 -0800) Subject: Re: [RFC/RFA] Deal with -g1 generated DWARF2 debug info References: <200512041859.jB4IxrVO001319@elgar.sibelius.xs4all.nl> <8f2776cb0512041312o19d356amabe6f7a2f47c67f1@mail.gmail.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00093.txt.bz2 > Date: Sun, 4 Dec 2005 13:12:41 -0800 > From: Jim Blandy > > On 12/4/05, Mark Kettenis wrote: > > a void function. Indeed the debug info generated by -g1 for malloc > > looks like: > > > > $ readelf -wi /usr/lib/libc.so.38.4: > > ... > > <1>: Abbrev Number: 2 (DW_TAG_subprogram) > > DW_AT_name : (indirect string, offset: 0x6484): imalloc > > DW_AT_decl_file : 1 > > DW_AT_decl_line : 1123 > > DW_AT_low_pc : 0x67ca0 > > DW_AT_high_pc : 0x67d9f > > DW_AT_frame_base : 1 byte block: 57 (DW_OP_reg7) > > ... > > That says "imalloc"; is that really what you meant to quote? Oops sorry, the entry for malloc isn't really different though: <1>: Abbrev Number: 3 (DW_TAG_subprogram) DW_AT_external : 1 DW_AT_name : (indirect string, offset: 0x6485): malloc DW_AT_decl_file : 1 DW_AT_decl_line : 1762 DW_AT_low_pc : 0x68250 DW_AT_high_pc : 0x682ff DW_AT_frame_base : 1 byte block: 57 (DW_OP_reg7) Mark