From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16816 invoked by alias); 29 Jul 2010 14:42:17 -0000 Received: (qmail 16804 invoked by uid 22791); 29 Jul 2010 14:42:15 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-bw0-f41.google.com (HELO mail-bw0-f41.google.com) (209.85.214.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Jul 2010 14:41:52 +0000 Received: by bwz9 with SMTP id 9so278444bwz.0 for ; Thu, 29 Jul 2010 07:41:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.179.12 with SMTP id g12mr57463mup.10.1280414509359; Thu, 29 Jul 2010 07:41:49 -0700 (PDT) Received: by 10.102.83.11 with HTTP; Thu, 29 Jul 2010 07:41:49 -0700 (PDT) Date: Thu, 29 Jul 2010 14:42:00 -0000 Message-ID: Subject: inconsistency in gdb/mi -file-list-exec-source-files From: Xavier de Gaye To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00118.txt.bz2 The output of '-file-list-exec-source-files' differs between gdb 7.2 and gdb previous releases: with gdb 7.2 the 'fullname' attribute becomes the file basename and the 'file' attribute becomes the full pathname. It was the reverse previously. Xavier === GDB 7.2 ====================================== gdb/gdb-git/gdb/build/gdb/gdb --interpreter=mi =thread-group-added,id="i1" ~"GNU gdb (GDB) 7.2.50.20100724-cvs\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-unknown-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~".\n" (gdb) -file-exec-and-symbols testsuite/foobar ^done (gdb) -file-list-exec-source-files ^done,files=[{file="",fullname="/home/aurel32/debian/co-packages/glibc/ glibc-2.7/build-tree/amd64-libc/csu/crtn.S"},{file="",fullname="bar.c"}, {file="/home/xavier/src/pyclewn-hg-working/testsuite/bar.c",fullname="bar.c"}, {file="",fullname="foo.c"}, {file="/home/xavier/src/pyclewn-hg-working/testsuite/foo.c",fullname="foo.c"}, {file="",fullname="foobar.c"}, {file="/home/xavier/src/pyclewn-hg-working/testsuite/foobar.c",fullname="foobar.c"}, {file="",fullname="/home/aurel32/debian/co-packages/glibc/glibc-2.7/build-tree/amd64-libc/csu/crti.S"}, {file="",fullname="init.c"}] (gdb) === GDB 6.8 ====================================== /usr/bin/gdb --interpreter=mi ~"GNU gdb 6.8-debian\n" ~"Copyright (C) 2008 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later \n" ~"This is free software: you are free to change and redistribute it.\n" ~"There is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\n" ~"and \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-linux-gnu\".\n" (gdb) -file-exec-and-symbols testsuite/foobar ^done (gdb) -file-list-exec-source-files ^done,files=[{file="/home/aurel32/debian/co-packages/glibc/glibc-2.7/build-tree/amd64-libc/csu/crtn.S"}, {file="bar.c"}, {file="bar.c",fullname="/home/xavier/src/pyclewn-hg-working/testsuite/bar.c"}, {file="foo.c"}, {file="foo.c",fullname="/home/xavier/src/pyclewn-hg-working/testsuite/foo.c"}, {file="foobar.c"}, {file="foobar.c",fullname="/home/xavier/src/pyclewn-hg-working/testsuite/foobar.c"}, {file="/home/aurel32/debian/co-packages/glibc/glibc-2.7/build-tree/amd64-libc/csu/crti.S"},{file="init.c"}] (gdb)