• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using gdb to step through gdb in os x leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using gdb to step through gdb in os x leopard


  • Subject: Re: Using gdb to step through gdb in os x leopard
  • From: Jonas Maebe <email@hidden>
  • Date: Wed, 8 Jul 2009 23:26:24 +0200


On 08 Jul 2009, at 21:42, Aron-Zvi wrote:

Either I'm doing something very wrong or there's a bug... I Think I'll try
an older version of gdb and see what happens:(

It works for me with a self-build gdb-908 I still have lying around:

firefly:/Data/dev/darwin/10.5/gdb-908/src/gdb jmaebe$ ls -l gdb
-rwxr-sr-x 1 jmaebe procmod 3920920 Mar 22 2008 gdb
firefly:/Data/dev/darwin/10.5/gdb-908/src/gdb jmaebe$ ./gdb gdb
GNU gdb 6.3.50.20050815-cvs (Sat Mar 22 10:18:45 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-apple-darwin9.2.2 -- target="...Reading symbols for shared libraries ........ done
Setting up the environment for debugging gdb.


During symbol reading, inner block (0x144006-0x1441b4) not inside outer block (0x144006-0x1440a0).
Breakpoint 1 at 0x141536: file utils.c, line 932.
Breakpoint 2 at 0x8ca4: file cli-cmds.c, line 189.
(top-gdb) b main
Breakpoint 3 at 0x23e7: file gdb.c, line 31.
(top-gdb) r
Starting program: /Data/dev/darwin/10.5/gdb-908/src/gdb/gdb
Reading symbols for shared libraries +++++++...................... done


Breakpoint 3, main (argc=0, argv=0x0) at gdb.c:31
31	  args.argc = argc;
(top-gdb)

(this is under Mac OS X 10.5.4 though, haven't updated my laptop in a while)


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Terry Lambert <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Terry Lambert <email@hidden>)
 >Re: Using gdb to step through gdb in os x leopard (From: Aron-Zvi <email@hidden>)

  • Prev by Date: Re: Using gdb to step through gdb in os x leopard
  • Next by Date: ptrace PT_CONTINUE
  • Previous by thread: Re: Using gdb to step through gdb in os x leopard
  • Next by thread: ptrace PT_CONTINUE
  • Index(es):
    • Date
    • Thread