Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / October 2003



Tip: Looking for answers? Try searching our database.

The debugger does not launch

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jérôme Seydoux - 24 Oct 2003 20:05 GMT
Hi,

I am compiling a Mach-O application with CW 9.1, but when I want to debug
it, the application launches but not the debugger.
If I quit the application and re-debug, I get a "the process is already
starting" error.
If I make my application crash, the IDE crashes with this stack frame:

>Thread 0 Crashed:
> #0   0x051af118 in SetBreakPoint__13GDBConnectionFUlUlUlPi
>(SetBreakPoint__13GDBConnectionFUlUlUlPi + 264)
> #1   0x051b8b78 in NubSetBreakPoint_
>_13OSXConnectionFUlUllP17RoutineDescriptorlRUl
>(NubSetBreakPoint__13OSXConnectionFUlUllP17RoutineDescriptorlRUl + 248)
> #2   0x05191e94 in SetBreakpoint__14MetroNubPluginFP9IMWTargetlllblRl
>(SetBreakpoint__14MetroNubPluginFP9IMWTargetlllblRl + 388)
> #3   0x02502914 in 0x2502914
> #4   0x024fc7fc in 0x24fc7fc
> #5   0x0250850c in 0x250850c
> #6   0x025075a4 in 0x25075a4
> #7   0x02461300 in 0x2461300
> #8   0x02452160 in 0x2452160
> #9   0x0244f7d4 in 0x244f7d4
> #10  0x02488dd0 in 0x2488dd0
> #11  0x05195244 in DoProcessTargeted
>Event__14MetroNubPluginFP10IMWMachineUlUlUl
>(DoProcessTargetedEvent__14MetroNubPluginFP10IMWMachineUlUlUl + 900)
> #12  0x0519820c in CheckMessageQueue__14MetroNubPluginFb
>(CheckMessageQueue__14MetroNubPluginFb + 348)
> #13  0x05199030 in DoIdle__14MetroNubPluginFv
>(DoIdle__14MetroNubPluginFv + 48)
> #14  0x0519b4dc in MNPEventLoopTimer
>Callback__14MetroNubPluginFP23OpaqueEventLoopTimerRefPv
>(MNPEventLoopTimerCallback__14MetroNubPluginFP23OpaqueEventLoopTimerRefPv
>+ 60)
> #15  0x90194848 in __CFRunLoopDoTimer (__CFRunLoopDoTimer + 244)
> #16  0x90191ba8 in __CFRunLoopRun (__CFRunLoopRun + 1480)
> #17  0x901960bc in CFRunLoopRunSpecific (CFRunLoopRunSpecific + 328)
> #18  0x927d5ecc in RunCurrentEventLoopInMode (RunCurrentEventLoopInMode
>+ 172)
> #19  0x927d8f70 in GetNextEventMatchingMask (GetNextEventMatchingMask + 416)
> #20  0x927eca9c in WNEInternal (WNEInternal + 160)
> #21  0x927fd738 in WaitNextEvent (WaitNextEvent + 76)
> #22  0x02032edc in 0x2032edc
> #23  0x02030dd8 in 0x2030dd8
> #24  0x020384a0 in 0x20384a0

I linked with STABS infos, so I tried to debug the app with XCode, but I can
only put breakpoints in the main(), and not in my C++ classes or in
PowerPlant. Is there something else to do to debug with XCode an application
compiled with CW 9?

Mac OS 10.3, dev tools 10.3, CW 9.1

Jérôme
MW Ron - 27 Oct 2003 21:59 GMT
>Hi,
>
[quoted text clipped - 3 lines]
>starting" error.
>If I make my application crash, the IDE crashes with this stack frame:

Wow,  we haven't even released a 9.1 update and you have it.  I hope
everyone else doesn't want one too :)

It sounds like it isn't finding GDB I'd really need to know more about
your system to help.

Ron

Signature

      Now Shipping CodeWarrior Development Studio,
    ARM ISA Edition for Linux Platform Development v2
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Jérôme Seydoux - 28 Oct 2003 09:02 GMT
Ron,

>> I am compiling a Mach-O application with CW 9.1, but when I want to debug
>> it, the application launches but not the debugger.
[quoted text clipped - 4 lines]
> Wow,  we haven't even released a 9.1 update and you have it.  I hope
> everyone else doesn't want one too :)

Well, it's the "CW_9_1_Update_Installer.bin" from MPTP, I thought it was
kind of final, but I had the exact same problem with 9.0.

> It sounds like it isn't finding GDB I'd really need to know more about
> your system to help.

I finally found the problem: I'm linking with the StuffIt Engine framework
(from /Library/Frameworks). If I remove this framework (and the code that
use it), the debugger works.
I can reproduce the problem by adding the StuffIt framework to the C++
Toolbox Mach-O stationary.

Jérôme
MW Ron - 28 Oct 2003 17:52 GMT
>Ron,
>
[quoted text clipped - 9 lines]
>Well, it's the "CW_9_1_Update_Installer.bin" from MPTP, I thought it was
>kind of final, but I had the exact same problem with 9.0.

For bugs with 9.0  report them to cw_bugs@metrowerks.com and you can
discuss them here.

for Beta stuff which you signed a Non Disclosure for report them to the
appropriate report and discuss them on the  list server for that beta
product.   You can not legally discuss such matters on this public
newsgroup.

>> It sounds like it isn't finding GDB I'd really need to know more about
>> your system to help.
[quoted text clipped - 4 lines]
>I can reproduce the problem by adding the StuffIt framework to the C++
>Toolbox Mach-O stationary.


Thanks

Ron

Signature

      Now Shipping CodeWarrior Development Studio,
    ARM ISA Edition for Linux Platform Development v2
                <http://store.metrowerks.com/>
       Sales and Support 512-996-5300   800-377-5416
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.