From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22515 invoked by alias); 25 Nov 2002 00:29:25 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22507 invoked from network); 25 Nov 2002 00:29:22 -0000 Received: from unknown (HELO himmelsborg.cs.lth.se) (130.235.16.11) by sources.redhat.com with SMTP; 25 Nov 2002 00:29:22 -0000 Received: from ygg.cs.lth.se (ygg [130.235.16.32]) by himmelsborg.cs.lth.se (8.10.2/8.10.2/perf-jw-tr) with ESMTP id gAP0T6L23336 for ; Mon, 25 Nov 2002 01:29:11 +0100 (CET) Received: from localhost (fransson@localhost) by ygg.cs.lth.se (8.11.6+Sun/8.10.2) with ESMTP id gAP0T1412761 for ; Mon, 25 Nov 2002 01:29:06 +0100 (CET) X-Authentication-Warning: ygg.cs.lth.se: fransson owned process doing -bs Date: Sun, 24 Nov 2002 16:29:00 -0000 From: Per Fransson X-X-Sender: To: gdb mailing list Subject: redirecting output Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00347.txt.bz2 Hi, I'm trying to log a whole lot of program counter values during the execution of a program using GDB on sparc (solaris-2.8). I'm doing it with a command file like this one: b run si si si . . 'bout a million si's . . . si si q Then I run it like this: % gdb a.out --command=command_file > pc_log Unfortunately it doesn't seem to work. Somehow the execution gets corrupted. The 'pc_log' file deviates from what I get by just letting gdb print to stdout like this (they come to different concusions at some conditional branch): % gdb a.out --command=command_file I find this very puzzling. Can someone tell me what's going on? And, better yet, how I can get the pc log I'm looking for? Thanks in advance Per