From: Per Fransson <fransson@cs.lth.se>
To: gdb mailing list <gdb@sources.redhat.com>
Subject: redirecting output
Date: Sun, 24 Nov 2002 16:29:00 -0000 [thread overview]
Message-ID: <Pine.GSO.4.33.0211250108110.12739-100000@ygg> (raw)
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 <point early in the program>
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
next reply other threads:[~2002-11-25 0:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-24 16:29 Per Fransson [this message]
2002-11-24 22:24 ` Eli Zaretskii
2002-11-27 13:25 ` Ben Elliston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.33.0211250108110.12739-100000@ygg \
--to=fransson@cs.lth.se \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox