From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11844 invoked by alias); 13 Aug 2010 15:34:59 -0000 Received: (qmail 11829 invoked by uid 22791); 13 Aug 2010 15:34:58 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 13 Aug 2010 15:34:50 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7DFYmFv009563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Aug 2010 11:34:48 -0400 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7DFYjNP008264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 13 Aug 2010 11:34:47 -0400 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id o7DFYjUv030260; Fri, 13 Aug 2010 17:34:45 +0200 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id o7DFYiVU030259; Fri, 13 Aug 2010 17:34:44 +0200 Date: Fri, 13 Aug 2010 15:34:00 -0000 From: Jan Kratochvil To: Phil Muldoon Cc: gdb-patches@sourceware.org Subject: python.exp: filename functions FAIL Message-ID: <20100813153444.GA29732@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) 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: 2010-08/txt/msg00189.txt.bz2 Hi Phil, getting FAIL: gdb.python/python.exp: Test decode_line current locationn filename FAIL: gdb.python/python.exp: Test decode_line python.c:26 filename FAIL: gdb.python/python.exp: Test decode_line func1 filename on x86_64-fedora14snapshot-linux-gnu (but even on fedora13 etc.). The problem is the testcase gets compiled as: < c> DW_AT_producer : GNU C 4.5.0 20100716 (Red Hat 4.5.0-3) <11> DW_AT_name : ./gdb.python/python-sl.c <15> DW_AT_comp_dir : /home/path/to/gdb-clean/gdb/testsuite while gdb uses result = PyString_FromString (symtab->filename); and expects gdb_test "python print symtab\[1\]\[0\].symtab" "gdb/testsuite/gdb.python/python.c.*" "Test decode_line python.c:26 filename" but it gets python print symtab[1][0].symtab ./gdb.python/python.c (gdb) FAIL: gdb.python/python.exp: Test decode_line python.c:26 filename It is a larger GDB problem with compilation directory vs. relative filename path (wrt same base names in multiple directories etc.). I do not know specifically why sometimes the directory is /home/path/to/gdb-clean/gdb/testsuite and sometimes /home/path/to/gdb-clean . Suggesting to use for Python always only the absolute filename provided by: char * symtab_to_fullname (struct symtab *s) This is the only easy way how to solve the same filename in multiple source directories anyway. Thanks, Jan