From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24258 invoked by alias); 25 Mar 2012 19:27:08 -0000 Received: (qmail 24248 invoked by uid 22791); 25 Mar 2012 19:27:06 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f41.google.com (HELO mail-lpp01m010-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Mar 2012 19:26:52 +0000 Received: by lagz14 with SMTP id z14so4050200lag.0 for ; Sun, 25 Mar 2012 12:26:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.29.233 with SMTP id n9mr7530285lbh.9.1332703610521; Sun, 25 Mar 2012 12:26:50 -0700 (PDT) Received: by 10.152.24.2 with HTTP; Sun, 25 Mar 2012 12:26:50 -0700 (PDT) In-Reply-To: <831uop3aen.fsf@gnu.org> References: <83fwgzbrp9.fsf@gnu.org> <201112061249.47758.pedro@codesourcery.com> <20120315224504.GA24829@host2.jankratochvil.net> <831uop3aen.fsf@gnu.org> Date: Sun, 25 Mar 2012 19:27:00 -0000 Message-ID: Subject: Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename) From: iam ahal To: Eli Zaretskii Cc: tromey@redhat.com, jan.kratochvil@redhat.com, palves@redhat.com, dje@google.com, gdb-patches@sourceware.org, pmuldoon@redhat.com, brobecker@adacore.com, drow@false.org, asmwarrior@gmail.com Content-Type: text/plain; charset=ISO-8859-1 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: 2012-03/txt/msg00856.txt.bz2 To Eli Zaretskii: The difference between "basename" and "relative" is: "basename" option just cuts directory part from 'DW_AT_name'. "relative" option cuts 'DW_AT_comp_dir' part from 'DW_AT_name' If and only if 'DW_AT_name' contains 'DW_AT_comp_dir' part at the beginning. Quite frankly, I don't know how exactly make records like this: <11> DW_AT_name : (indirect string, offset: 0x1e): /home/username/contrib/test/prog.c <15> DW_AT_comp_dir : (indirect string, offset: 0x0): /home/username/contrib/ Jan Kratochvil: Where I can see 'dw2-dir-file-name.exp'? I didn't find this file. ~Eldar