From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8201 invoked by alias); 22 Sep 2010 19:15:31 -0000 Received: (qmail 8185 invoked by uid 22791); 22 Sep 2010 19:15:29 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Sep 2010 19:15:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C1A4C2BAC4F; Wed, 22 Sep 2010 15:15:22 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sMJ-ZP5RPWk6; Wed, 22 Sep 2010 15:15:22 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8DA2E2BAC4E; Wed, 22 Sep 2010 15:15:22 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id CD3DCF591E; Wed, 22 Sep 2010 12:15:20 -0700 (PDT) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [commit/testsuite] dw2-const.S: fix type reference size on 64bit platforms. Date: Wed, 22 Sep 2010 19:24:00 -0000 Message-Id: <1285182918-6901-1-git-send-email-brobecker@adacore.com> 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-09/txt/msg00383.txt.bz2 Hello, The testcase was failing on various 64bit platforms, because the debugging info said that the target type for a const type is a 4-byte reference. In the asm file, I used a .long directive, but the size of .long is of course dependent on the platform. This replaces this .long by a .4byte directive. (observed on ia64-linux and mips-irix, for instance). gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target type of our const type. Tested on x86_64-linux, and checked in. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.dwarf2/dw2-const.S | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 7b4b6a5..5d04cd9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-09-22 Joel Brobecker + + * gdb.dwarf2/dw2-const.S: Use .4byte to reference the target + type of our const type. + 2010-09-22 Sami Wagiaalla * gdb.cp/pr12028.cc: New. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-const.S b/gdb/testsuite/gdb.dwarf2/dw2-const.S index f5c64f9..aa91839 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-const.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-const.S @@ -55,7 +55,7 @@ func_cu1: .Ltype_const: .uleb128 0x9 /* Abbrev: DW_TAG_const_type */ - .long .Ltype_int-.Lcu1_begin /* DW_AT_type */ + .4byte .Ltype_int-.Lcu1_begin /* DW_AT_type */ /* func_cu1 */ .uleb128 2 /* Abbrev: DW_TAG_subprogram */ -- 1.7.1