• 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: No source file named .... in gdb
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No source file named .... in gdb


  • Subject: Re: No source file named .... in gdb
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 30 Nov 2004 10:22:47 -0800

Are you building your Development build with ZeroLink?

If you are using Xcode to build your app, that is the default, so unless you have changed it you probably are... You can check by looking at the Build Style for your target (you can get that by doing Command-I on the top-most item in the group tree in the Xcode project window & choosing the Styles tab).

ZeroLink works by building each .c file into a separate bundle, and then loading it only when the code in that file is used. So gdb doesn't know about any of the source files till they actually get used. One way to work around this is to use the "future-break" command - "fb" is the short form of this. That will store the breakpoint expression & try to apply it each time a new bundle or shared library is loaded. So do:

(gdb) fb UStaticText.cpp:384

It will tell you it can't set the breakpoint now, but as you run the program, it will eventually get resolved.

The other way is just to turn off ZeroLink. ZeroLink is an optimization that reduces link time. If your App is not too big, the link time is not such a problem and you will probably be fine with it off.

Jim

On Nov 30, 2004, at 7:10 AM, Norio Ota wrote:

Hi,

I'm sorry but I don't know a suitable mailing list of this problem.

Now I just feel like I'm into gdb, thanks to all of you. But I quite often face to a troublesome problem.

When I set break point to file, gdb can't find out the file. In spite of that I used 'cd' or 'directory' commands in gdb to set the directory in which the file located, but it didn't work.
I backed to shell and tried using shell command 'cd', but the result was the same.
I have always checked the working directory using 'pwd' in gdb, it tells me the correct directory.


What I did and gdb's responses are the following:
(gdb) cd "/Volumes/Development¥ disk/MyApp¥ source¥ folder/"
Working directory /Volumes/Development disk/MyApp source folder/
(gdb) dir "/Volumes/Development disk/MyApp source folder/"
Source directories searched: /Volumes/Development disk/MyApp source folder/:$cdir:$cwd
(gdb) shell cd "/Volumes/Development disk/MyApp source folder/"
(gdb) break UStaticText.cpp :384
No source file named UStaticText.cpp.
(gdb) pwd
Working directory /Volumes/Development disk/MyApp source folder/


Then I tried doing 'shell ls' command in gdb, I could see the file in the list.

Would you tell me what I'm missing?

Thank you,
Norio Ota

_______________________________________________
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
_______________________________________________
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


References: 
 >No source file named .... in gdb (From: Norio Ota <email@hidden>)

  • Prev by Date: Re: headers automatically bundled?
  • Next by Date: Toggle front window?
  • Previous by thread: No source file named .... in gdb
  • Next by thread: Toggle front window?
  • Index(es):
    • Date
    • Thread