Article View: comp.sys.mac.programmer.codewarrior
Article #1407Mac OS X CodeWarrior debugger problem
From: Matt Covey
Date: Fri, 29 Sep 2000 00:00
Date: Fri, 29 Sep 2000 00:00
445 lines
15230 bytes
15230 bytes
I'm not able to get the CodeWarrior debugger to work. I've isolated it
down to just the simple, brand new project:
The vanilla "Hello, World" Std C Carbon Console project compiles fine
and runs when not using the debugger (either from the CW IDE or the
Finder). However when running it from the IDE using the CW Debugger it
crashes just after "ProcessLaunchedEvent" and "Reading symbols for
shared libraries . done" with a "Program exited with code 01."
(MetroNubX, DebugNub and gdb-powerpc-appl all start up OK.)
I've tried starting DebugNub up by hand, etc. This is on a stock G4 450
MP. Mac OS X installed on internal ATA HFS+ disk (with Mac OS 9.0.4). 2
monitors, ATI cards.
Any thoughts?
Here's the console output:
---- start of console output ----
DebugNub (process-id 23761) listening on port 6968
connection from localhost
started "/usr/bin/gdb" with process-ID 23775
executing command: "set annotate 2\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "GNU gdb 4.18.1-20000320 (Apple version gdb-172)
(UI_OUT)\nCopyright 1998 Free Software Foundation, Inc.\nGDB is free
software, covered by the GNU General Public License, and you
are\nwelcome to change it and/or distribute copies of it under certain
conditions.\nType "show copying" to see the conditions.\nThere is
absolutely no warranty for GDB. Type "show warranty" for details.\nThis
GDB was configured as "powerpc-apple-macos10".\n(gdb) set annotate
2\n\n[0x1a][0x1a]pre-prompt\n(gdb) \n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 1: "\n[0x1a][0x1a]prompt\n"
executing command: "tty /dev/null\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "tty
/dev/null\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set width 0\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set width
0\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set height 0\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set height
0\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set output-radix 16\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set output-radix 16\n\n[0x1a][0x1a]post-prompt\nOutput radix
now set to decimal 16, hex 10, octal
20.\n\n[0x1a][0x1a]pre-prompt\n(gdb) \n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt\nOutput radix now set to
decimal 16, hex 10, octal 20."
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set input-radix 10\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set input-radix 10\n\n[0x1a][0x1a]post-prompt\nInput radix
now set to decimal 10, hex a, octal 12.\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt\nInput radix now set to decimal
10, hex a, octal 12."
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set print max-symbolic-offset 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set print max-symbolic-offset
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set metrowerks-ignore-breakpoint-errors 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set metrowerks-ignore-breakpoint-errors
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set inferior-auto-start-cfm 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set inferior-auto-start-cfm
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set inferior-auto-start-dyld 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set inferior-auto-start-dyld
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set dyld-preload-libraries 0\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set dyld-preload-libraries
0\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set dyld-load-shlib-symbols 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set dyld-load-shlib-symbols
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "set dyld-load-dyld-symbols 1\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set dyld-load-dyld-symbols
1\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "file /Developer/Tools/LaunchCFMApp\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "file
/Developer/Tools/LaunchCFMApp\n\n[0x1a][0x1a]post-prompt\nReading
symbols from
/Developer/Tools/LaunchCFMApp...done.\n\n[0x1a][0x1a]breakpoints-invalid\
n\n[0x1a][0x1a]pre-prompt\n(gdb) \n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt\nReading symbols from
/Developer/Tools/LaunchCFMApp...done."
annotation 1: "\n[0x1a][0x1a]breakpoints-invalid"
annotation 2: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 3: "\n[0x1a][0x1a]prompt\n"
received message:
{
length: 10
message-id: kRegisterDebuggerMessage (0x65)
auto-target: kWantsNoSetting
multi-thread: yes
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'Ctsk'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 12
message-id: kGestaltMessage (0x66)
selector: 'sysa'
}
sending message:
{
length: 16
message-id: kGestaltReply (0x67)
errno: 0
value: 2
}
received message:
{
length: 12
message-id: kGestaltMessage (0x66)
selector: 'ppcf'
}
sending message:
{
length: 16
message-id: kGestaltReply (0x67)
errno: -5551
value: 0
}
received message:
{
length: 12
message-id: kGestaltMessage (0x66)
selector: 'cfrg'
}
sending message:
{
length: 16
message-id: kGestaltReply (0x67)
errno: 0
value: 1
}
received message:
{
length: 12
message-id: kGestaltMessage (0x66)
selector: 'fpu '
}
sending message:
{
length: 16
message-id: kGestaltReply (0x67)
errno: 0
value: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'D68K'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'DPPC'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'StD6'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'StDP'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 16
message-id: kSetNubFeatureMessage (0x6a)
feature: 'LDSM'
value: 1
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 336
message-id: kTargetFragmentMessage (0x6b)
path-name:
"Sericana:Users:matt:Library:Desktop:mtest:mtest.out"
lib-name: "mtest.out"
fragment-type: 0x0
code-length: 0xb3a8
}
sending message:
{
length: 16
message-id: kTargetFragmentReply (0x6c)
error: 0
fragment-id: 0x1000
}
received message:
{
length: 24
message-id: kAddDisabledRangeMessage (0x97)
fragment-id: 0x1000
section-id: 0x0
start-offset: 0xb224
end-offset: 0xb23c
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 24
message-id: kAddDisabledRangeMessage (0x97)
fragment-id: 0x1000
section-id: 0x0
start-offset: 0x9eb0
end-offset: 0x9f04
}
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
received message:
{
length: 20
message-id: kSetBreakPointMessage (0x75)
fragment-id: 0x1000
section-id: 0x0
offset: 0x1c
}
executing command: "metrowerks-break "mtest.out" 0 0x1c\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "metrowerks-break "mtest.out" 0
0x1c\n\n[0x1a][0x1a]post-prompt\n\n[0x1a][0x1a]breakpoints-invalid\n\n[0x
1a][0x1a]breakpoint 1\n\n[0x1a][0x1a]pre-prompt\n(gdb)
\n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]breakpoints-invalid"
annotation 2: "\n[0x1a][0x1a]breakpoint 1"
annotation 3: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 4: "\n[0x1a][0x1a]prompt\n"
sending message:
{
length: 16
message-id: kSetBreakPointReply (0x76)
error: 0
breakpoint-id: 1
}
received message:
{
length: 14
message-id: kLaunchFragmentMessage (0x8c)
fragment-id: 0x1000
background: no
}
executing command: "set args
"/Sericana/Users/matt/Library/Desktop/mtest/mtest.out"\n"
awaiting response: "\n[0x1a][0x1a]prompt\n"
raw data: "set args
"/Sericana/Users/matt/Library/Desktop/mtest/mtest.out"\n\n[0x1a][0x1a]pos
t-prompt\n\n[0x1a][0x1a]pre-prompt\n(gdb) \n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]post-prompt"
annotation 1: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 2: "\n[0x1a][0x1a]prompt\n"
executing command: "run\n"
awaiting response: "\n[0x1a][0x1a]starting\n"
raw data: "run\n\n[0x1a][0x1a]post-prompt\nStarting program:
/Developer/Tools/LaunchCFMApp
"/Sericana/Users/matt/Library/Desktop/mtest/mtest.out"\n[Switching to
thread 1 (process 23783 thread
0x2a03)]\n\n[0x1a][0x1a]breakpoints-invalid\n\n[0x1a][0x1a]breakpoints-in
valid\n\n[0x1a][0x1a]starting\n"
annotation 0: "\n[0x1a][0x1a]post-prompt\nStarting program:
/Developer/Tools/LaunchCFMApp
"/Sericana/Users/matt/Library/Desktop/mtest/mtest.out"\n[Switching to
thread 1 (process 23783 thread 0x2a03)]"
annotation 1: "\n[0x1a][0x1a]breakpoints-invalid"
annotation 2: "\n[0x1a][0x1a]breakpoints-invalid"
annotation 3: "\n[0x1a][0x1a]starting\n"
sending message:
{
length: 12
message-id: kGenericReply (0x64)
error: 0
}
sending message:
{
length: 16
message-id: kProcessLaunchedEvent (0x0)
error: 0
process-id: 10755
}
un-handled data:
raw data: "unable to read unknown load command 0x12\nunable to read
unknown load command 0x12\nunable to read unknown load command
0x12\nunable to read unknown load command 0x12\nunable to read unknown
load command 0x12\n"
un-handled data:
raw data: "Reading symbols for shared libraries ..."
un-handled data:
raw data: "."
un-handled data:
raw data: "."
un-handled data:
raw data: "."
un-handled data:
raw data: "....."
un-handled data:
raw data: "."
un-handled data:
raw data: "."
un-handled data:
raw data: "."
un-handled data:
raw data: ". done\n"
raw data: "\n[0x1a][0x1a]breakpoints-invalid\n\n[0x1a][0x1a]exited
1\n\nProgram exited with code
01.\n\n[0x1a][0x1a]breakpoints-invalid\n\n[0x1a][0x1a]stopped\n\n[0x1a][0
x1a]pre-prompt\n(gdb) \n[0x1a][0x1a]prompt\n"
annotation 0: "\n[0x1a][0x1a]exited 1\n\nProgram exited with code 01."
annotation 1: "\n[0x1a][0x1a]breakpoints-invalid"
annotation 2: "\n[0x1a][0x1a]stopped"
annotation 3: "\n[0x1a][0x1a]pre-prompt\n(gdb)"
annotation 4: "\n[0x1a][0x1a]prompt\n"
sending message:
{
length: 16
message-id: kProcessDiedEvent (0x3)
error: 0
process-id: 10755
}
---- end of console output ----
Technical Details
Message-ID:
<mattnuz-1BF1EC.16401829092000@[209.128.88.94]>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,c9e0c8583aa6a28e,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,c9e0c8583aa6a28e,start X-Google-Attributes: gidf635e,public From: Matt Covey <mattnuz@metawire.com> Subject: Mac OS X CodeWarrior debugger problem Date: 2000/09/29 Message-ID: <mattnuz-1BF1EC.16401829092000@[209.128.88.94]> X-Deja-AN: 675714992 X-Complaints-To: news@bayarea.net X-Trace: localhost.localdomain 970270813 7469 205.219.92.164 (29 Sep 2000 23:40:13 GMT) Organization: MetaWire, Inc User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: 29 Sep 2000 23:40:13 GMT Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac