From: Bob Rossi <bob@brasko.net>
To: JS <fedevaps@yahoo.dk>
Cc: gdb@sources.redhat.com
Subject: Re: Still cannot print variable
Date: Fri, 15 Apr 2005 11:55:00 -0000 [thread overview]
Message-ID: <20050415115453.GA26855@white> (raw)
In-Reply-To: <d3o02u$t10$1@sea.gmane.org>
On Fri, Apr 15, 2005 at 11:09:09AM +0200, JS wrote:
> I am still have problems printing a variable. I have this code in a file
> called test.:
>
> int main()
> {
>
> int d = 119;
>
> return(0);
>
> }
>
> I then compile it like this:
>
> gcc -g -Wall -o test test.c
>
> (I have also tried with option -O0 but that changes nothing).
>
> I run "gdb test" followed by "print d" and then I get this error:
You know, I just realized it's kind of odd that GDB doesn't look on the
users PATH to figure out which program to debug. For instance, it must
first look in the . directory, which is why this works in the first
place. I'd expect GDB to start debugging /usr/bin/test, as if he'd run
'test' on the command line.
Bob Rossi
next prev parent reply other threads:[~2005-04-15 11:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 9:09 JS
2005-04-15 9:20 ` Konstantin Karganov
2005-04-15 10:02 ` JS
2005-04-15 10:11 ` Re[2]: " Konstantin Karganov
2005-04-15 10:22 ` JS
2005-04-15 9:27 ` Joakim Hove
2005-04-15 9:30 ` Eli Zaretskii
2005-04-15 11:55 ` Bob Rossi [this message]
2005-04-15 12:01 ` Dave Korn
2005-04-15 12:06 ` Daniel Jacobowitz
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=20050415115453.GA26855@white \
--to=bob@brasko.net \
--cc=fedevaps@yahoo.dk \
--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