Re: Only Link In Essential Symbols
Re: Only Link In Essential Symbols
- Subject: Re: Only Link In Essential Symbols
- From: Graham Westlake <email@hidden>
- Date: Fri, 20 Jan 2006 10:19:34 +0000
On 20 Jan 2006, at 04:30, Jeff Nordquist wrote:
I've been trying to debug our app after linking with the "Only Link
In Essential Symbols" pref. Has anyone used this feature
successfully? I'm assuming it's sort of a halfway point between
linking all symbols and Zerolink, right?
The docs say it can't normally be debugged without all the .o
files, but even with all the .o's I can't seem to stop on any
breakpoints. Breakpoints work just fine for me with this feature off.
I know breakpoints have been discussed many times on this list, but
I wasn't able to find any info tying those problems to the
Essential Symbols pref. Has anyone run into this since switching to
Xcode 2.2 and, if so, were you able to work around it?
We've had exactly the same problem here. I posted the following
message about it to the list, but it doesn't seem to have made it
into the archives:
------------------------------------------------------------------------
----------------------
I've enabled this flag in several of my projects in an effort to
reduce link times. All the projects share some static libraries,
included as subprojects. Enabling the flag has caused breakpoints to
fail - when a breakpoint is hit I get the following status message:
"MyApp exited with status (10). The Debugger is still running. Use
'Restart' to debug again"
Although it states that the debugger is still running, the console
shows that in fact gdb has crashed - see crash log below.
Has anyone else seen anything like this?
Thanks,
Graham Westlake
Sibelius Software
Crash log extract follows:
------------------------------------------------------------------------
-----------------
Command: gdb-powerpc-apple-darwin
Path: /usr/libexec/gdb/gdb-powerpc-apple-darwin
Parent: Xcode [1939]
Version: ??? (???)
PID: 3633
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 libSystem.B.dylib 0x90003180 strcmp + 192
1 gdb-powerpc-apple-darwin 0x000d4dc8 dbx_psymtab_to_symtab_1 + 3412
2 gdb-powerpc-apple-darwin 0x000d51e8 dbx_psymtab_to_symtab + 264
3 gdb-powerpc-apple-darwin 0x00081000 psymtab_to_symtab + 104
4 gdb-powerpc-apple-darwin 0x0003121c find_pc_sect_symtab + 628
5 gdb-powerpc-apple-darwin 0x0006011c blockvector_for_pc_sect + 40
6 gdb-powerpc-apple-darwin 0x000605b0 block_for_pc + 52
7 gdb-powerpc-apple-darwin 0x0004b1bc get_pc_function_start + 28
8 gdb-powerpc-apple-darwin 0x000c1338 ppc_find_function_boundaries
+ 164
9 gdb-powerpc-apple-darwin 0x000c14e8
ppc_frame_function_boundaries + 212
10 gdb-powerpc-apple-darwin 0x000c15e8
ppc_frame_function_properties + 208
11 gdb-powerpc-apple-darwin 0x0007b830 ppc_frame_find_prev_fp + 40
12 gdb-powerpc-apple-darwin 0x0007b97c ppc_frame_cache + 108
13 gdb-powerpc-apple-darwin 0x0007c0b0 ppc_frame_this_id + 24
14 gdb-powerpc-apple-darwin 0x000507b4 get_frame_id + 272
15 gdb-powerpc-apple-darwin 0x0005238c get_prev_frame + 2272
16 gdb-powerpc-apple-darwin 0x000bab44 do_check_is_thread_unsafe + 336
17 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
18 gdb-powerpc-apple-darwin 0x0001b438 catch_errors + 68
19 gdb-powerpc-apple-darwin 0x000babc8
safe_macosx_check_is_thread_unsafe + 84
20 gdb-powerpc-apple-darwin 0x00091ac4 iterate_over_threads + 56
21 gdb-powerpc-apple-darwin 0x000bac60 macosx_check_safe_call + 120
22 gdb-powerpc-apple-darwin 0x00026b1c
allocate_space_in_inferior_malloc + 44
23 gdb-powerpc-apple-darwin 0x000e5bc4
macosx_allocate_space_in_inferior_helper + 28
24 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
25 gdb-powerpc-apple-darwin 0x0001b2b4 catch_exceptions + 48
26 gdb-powerpc-apple-darwin 0x000e5c6c
macosx_allocate_space_in_inferior + 136
27 gdb-powerpc-apple-darwin 0x00026e14 value_string + 132
28 gdb-powerpc-apple-darwin 0x000a260c lookup_objc_class + 208
29 gdb-powerpc-apple-darwin 0x0011a3d8 c_lex + 3744
30 gdb-powerpc-apple-darwin 0x0011a778 c_parse + 584
31 gdb-powerpc-apple-darwin 0x000cb2b8 c_preprocess_and_parse + 300
32 gdb-powerpc-apple-darwin 0x00035988 parse_exp_1 + 388
33 gdb-powerpc-apple-darwin 0x00035a68 parse_expression + 32
34 gdb-powerpc-apple-darwin 0x00012a44
mi_cmd_data_evaluate_expression + 188
35 gdb-powerpc-apple-darwin 0x000145f0 captured_mi_execute_command
+ 368
36 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
37 gdb-powerpc-apple-darwin 0x0001b2b4 catch_exceptions + 48
38 gdb-powerpc-apple-darwin 0x00013964 mi_execute_command + 132
39 gdb-powerpc-apple-darwin 0x00037240 process_event + 188
40 gdb-powerpc-apple-darwin 0x000381a4 gdb_do_one_event + 1096
41 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
42 gdb-powerpc-apple-darwin 0x0001b438 catch_errors + 68
43 gdb-powerpc-apple-darwin 0x00037298 start_event_loop + 60
44 gdb-powerpc-apple-darwin 0x000150ac captured_command_loop + 16
45 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
46 gdb-powerpc-apple-darwin 0x0001b438 catch_errors + 68
47 gdb-powerpc-apple-darwin 0x000161fc captured_main + 4364
48 gdb-powerpc-apple-darwin 0x0001b1ac catcher + 216
49 gdb-powerpc-apple-darwin 0x0001b438 catch_errors + 68
50 gdb-powerpc-apple-darwin 0x00016238 gdb_main + 56
51 gdb-powerpc-apple-darwin 0x00002324 main + 48
52 gdb-powerpc-apple-darwin 0x00001b4c _start + 340
53 gdb-powerpc-apple-darwin 0x000019f4 start + 60
------------------------------------------------------------------------
-----------------
_______________________________________________
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