From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4556 invoked by alias); 11 Nov 2014 18:01:25 -0000 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 Received: (qmail 4375 invoked by uid 89); 11 Nov 2014 18:01:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,NO_DNS_FOR_FROM,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailuogwhop.emc.com Received: from mailuogwhop.emc.com (HELO mailuogwhop.emc.com) (168.159.213.141) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 11 Nov 2014 18:01:23 +0000 Received: from maildlpprd03.lss.emc.com (maildlpprd03.lss.emc.com [10.253.24.35]) by mailuogwprd02.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id sABI1KUF011474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 Nov 2014 13:01:20 -0500 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd02.lss.emc.com sABI1KUF011474 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd02.lss.emc.com sABI1KUF011474 Received: from mailsyshubprd51.lss.emc.com (mailsyshubprd51.lss.emc.com [10.106.48.26]) by maildlpprd03.lss.emc.com (RSA Interceptor) for ; Tue, 11 Nov 2014 13:00:46 -0500 Received: from usendtaylorx2l.lss.emc.com (usendtaylorx2l.lss.emc.com [10.243.10.188]) by mailsyshubprd51.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id sABI15u7011859 for ; Tue, 11 Nov 2014 13:01:05 -0500 Received: by usendtaylorx2l.lss.emc.com (Postfix, from userid 26043) id C82BD5D7C00; Tue, 11 Nov 2014 13:01:04 -0500 (EST) Received: from usendtaylorx2l (localhost [127.0.0.1]) by usendtaylorx2l.lss.emc.com (Postfix) with ESMTP id C58F05D6238 for ; Tue, 11 Nov 2014 13:01:04 -0500 (EST) From: David Taylor To: gdb@sourceware.org Subject: GDB testsuite questions Date: Tue, 11 Nov 2014 18:01:00 -0000 Message-ID: <9588.1415728864@usendtaylorx2l> X-RSA-Classifications: DLM_1, public X-Sentrion-Hostname: mailuogwprd02.lss.emc.com X-IsSubscribed: yes X-SW-Source: 2014-11/txt/msg00008.txt.bz2 It's been more than a decade since I did anything significant in DejaGNU or Tcl (and I've never really cared for Tcl as a language), so these questions are probably easy for someone who uses it regularly. I have two sets of changes to GDB held up while I figure these out -- . how to grab part of the each of the responses to multiple gdb commands and do arithmetric on the result to decide whether the test failed or passed. More specifically testing a fix for bug 17520 (structure offset wrong when 1/4 GB or greater). While more of our structures are 'reasonably' sized, a few are rather large. If you have a structure where some members are 1/4 GB or more bytes from the start of the structure, GDB will calculate the wrong offset for the member. So, given the structure: struct big_struct { char first[0x10000000 + 16]; long second; } big_struct; in GDB 7.8, I did: (gdb) print &big_struct $1 = (struct big_struct *) 0x601040 (gdb) print &big_struct.second $2 = (long *) 0xfffffffff0601050 So, I want to take the addresses and compare the difference vs what it should be. . I also need to be able to disable it for targets that don't have enough memory. The program does not need to be downloaded or run; but, if the link fails, disable the test. As part of the bug fix a total of 33 files were modified. There are no regressions on x86-64 Linux, but there needs to be a new test to make sure the problem does not reoccur. The other set of changes that is yet to be submitted for approval involves extending the agent bytecode expressions to allow setting variables (useful when a breakpoint is hit). How do I force the testsuite to run against gdbserver? I have gdbserver changes and I want them tested. I also need to write the new tests...