• 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: gdb can't find main?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb can't find main?


  • Subject: Re: gdb can't find main?
  • From: Justin Walker <email@hidden>
  • Date: Thu, 14 Apr 2005 11:20:31 -0700

A bit more info:

On Apr 14, 2005, at 11:04, Justin Walker wrote:

Hi, all,

Further adventures in C++ land...

This may be obvious, but I've looked at the doc (even bought Stan's book!), to no avail.

I get into gdb (with or without xcode), and try to plant a breakpoint at main().

I get the following:

(gdb) b main
Breakpoint 1 at 0x262c: file iset_str.c, line 28.

The address for main, according to 'nm', is 0x2abc. It appears to be the only 'main' in the nm list (which one would hope would be the case). 0x262c does not show up in the list produced by 'nm'.


Gdb appears to be matching a gmp name because the addresses in gmp.dylib are in that range. Are the addresses in dylibs unrelocated?

Thanks for any light...

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
Men are from Earth.
Women are from Earth.
   Deal with it.
--------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: gdb can't find main?
      • From: Jason Molenda <email@hidden>
References: 
 >gdb can't find main? (From: Justin Walker <email@hidden>)

  • Prev by Date: gdb can't find main?
  • Next by Date: Re: gdb can't find main?
  • Previous by thread: gdb can't find main?
  • Next by thread: Re: gdb can't find main?
  • Index(es):
    • Date
    • Thread