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

gdb can't find main?


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

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.
(gdb) b hecke.cc:main
Note: breakpoint 1 also set at pc 0x262c.
Breakpoint 2 at 0x262c: file iset_str.c, line 28.
(gdb) show dir
Source directories searched: $cdir:$cwd
(gdb) pwd
Working directory /Volumes/SandBox/Justin/NumberTheory/MFC/hecke.

The working directory is the directory with the executable and all its files. The file iset_str.c isn't one of them. It is a file in the 'gmp' library, which is a shared library used by the executable (and is located in a directory parallel with the cwd).

hecke.cc contains the main() procedure for the executable, and is in the working directory.

Gak!  Clues?  Will wash windows for clues...

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
      - Homer J Simpson
--------

_______________________________________________
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: Justin Walker <email@hidden>
  • Prev by Date: Re: C++ warnings
  • Next by Date: Re: gdb can't find main?
  • Previous by thread: Re: adding libraries
  • Next by thread: Re: gdb can't find main?
  • Index(es):
    • Date
    • Thread