My project uses source files with same name
My project uses source files with same name
- Subject: My project uses source files with same name
- From: email@hidden (tim lindner)
- Date: Wed, 30 Mar 2005 08:16:37 -0800
- Organization: Computers Suck, Inc.
and I can't set breakpoints!
I have this very large project, ported from Windows called MacMESS. The
project (similar to MAME) emulates many different consoles and home
computers.
Each of the different machine's (called drivers) code is split among
different folders depending on what part of the machine they emulate.
For instance. There is a system/dragon.c to define the general structor
of of the driver. There is a vidhrdw/dragon.c to implement the video
hardware. There is a machine/dragon.c to emulate other bits of the
machine.
The basic problem is, when I set a break point in the xcode GUI, it
usually associates it with the wrong file.
So if I set a breakpoint in line 1066 of machine/dragon.c, I'll get an
error (shown in the Debugger Console):
/Users/tlindner/MacMESS/mess/vidhardw/dragon.c contains no line 1066.
I used to have a workaround, but it doesn't work anymore. I used to have
_all_ of the source files in one project. I could then type this in the
console and set the proper breakpoint:
b ../../machine/draon.c:1066
But now I have static libraries built for each system/, machine/,
sound/, vidhrdw/ tree.
And now relative (and even absolute) pathnames come up with the error:
Function not defined.
My only current workaround it to set a breakpoint by function call,
rather than file.
Does anyone know of a way I can use the GUI to set breakpoints?
A while ago I decided to file a bug report. I put together a small
project to exhibit the problem. But the problem never occured. Even
though the source files had the same name, and I set the breakpoints in
the GUI, GDB always broke at the correct line. Very frustrating.
--
tim lindner
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