From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5186 invoked by alias); 20 Oct 2011 14:47:47 -0000 Received: (qmail 5176 invoked by uid 22791); 20 Oct 2011 14:47:46 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Oct 2011 14:47:31 +0000 Received: by vcbfk1 with SMTP id fk1so3339128vcb.0 for ; Thu, 20 Oct 2011 07:47:31 -0700 (PDT) Received: by 10.220.1.68 with SMTP id 4mr229642vce.17.1319122051082; Thu, 20 Oct 2011 07:47:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.180.75 with HTTP; Thu, 20 Oct 2011 07:47:10 -0700 (PDT) From: Kevin Pouget Date: Thu, 20 Oct 2011 14:56:00 -0000 Message-ID: Subject: Dejagnu testing issue To: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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: 2011-10/txt/msg00559.txt.bz2 Hello, I'm trying to build regression tests with DejaGNU, but I can't see how to solve this problem: how can I read a value from what GDB writes, and use it later to validate some tests. For instance, the pid: I know it's it "info inferiors" --> ".*process HERE .*", I would like to save it, and then do something like "detach", "attach $PID" (don't get me wrong, I know there are some alternatives to get the PID, but I really want to read it from a GDB command) By the way, is it a normal that I can't set a thread breakpoint this way: > break thread $_thread > Junk after thread keyword. (that would have bypassed the problem described above !) Thanks, Kevin