From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: hefeweizen <horacio.sanchez@kit.edu>
Cc: gdb@sourceware.org
Subject: Re: gdb can not debug “hello world” in mac os x
Date: Sun, 08 May 2011 08:52:00 -0000 [thread overview]
Message-ID: <BANLkTinYvKOx-OVaeZ+Vr=ppFqRu6Ckc6g@mail.gmail.com> (raw)
In-Reply-To: <31098392.post@talk.nabble.com>
On Tue, Mar 8, 2011 at 7:54 AM, hefeweizen <horacio.sanchez@kit.edu> wrote:
> (gdb) b main
> Breakpoint 1 at 0x1f8f: file hello.cpp, line 5.
>
> run the program:
>
> (gdb) r
> Starting program:
> /Users/horacio/work/software/gdb/gdb-7.2-inst/bin/hello.exe
>
> Breakpoint 1, main () at hello.cpp:5
> 5 puts("!!!Hello World!!!");
>
> and try to step, and this happens:
>
> (gdb) n
> 0x00003045 in ?? ()
FWIW, I did not reproduce this with current CVS build of GDB:
gdb/gdb ./a.out
GNU gdb (GDB) 7.3.50.20110508-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin10.7.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /Users/ppluzhnikov/gdb-cvs/build/a.out...Reading
symbols from /Users/ppluzhnikov/gdb-cvs/build/a.out.dSYM/Contents/Resources/DWARF/a.out...done.
done.
(gdb) b main
Breakpoint 1 at 0x100000ef8: file t.cc, line 5.
(gdb) r
Starting program: /Users/ppluzhnikov/gdb-cvs/build/a.out
Breakpoint 1, main () at t.cc:5
5 puts("!!!Hello World!!!");
(gdb) n
!!!Hello World!!!
6 return EXIT_SUCCESS;
(gdb) n
7 }
(gdb) n
0x0000000100000eec in start ()
(gdb) c
Continuing.
[Inferior 1 (process 41135) exited normally]
(gdb) q
--
Paul Pluzhnikov
next prev parent reply other threads:[~2011-05-08 8:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 15:54 hefeweizen
2011-03-08 16:02 ` Tristan Gingold
2011-03-08 16:12 ` hefeweizen
2011-03-08 16:23 ` André Pönitz
2011-05-08 8:52 ` Paul Pluzhnikov [this message]
[not found] <1299599657.19674.ezmlm@sourceware.org>
2011-03-08 16:29 ` Peter Watkins
2011-03-08 16:46 ` hefeweizen
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='BANLkTinYvKOx-OVaeZ+Vr=ppFqRu6Ckc6g@mail.gmail.com' \
--to=ppluzhnikov@google.com \
--cc=gdb@sourceware.org \
--cc=horacio.sanchez@kit.edu \
/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