http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48677
--- Comment #10 from ralphengels at gmail dot com <ralphengels at gmail dot com> 2011-04-20 22:48:54 UTC --- hmm it seems im getting closer to iron out where the bug appears. 3880 #if defined(TARGET_SYSTEM_ROOT_RELOCATABLE) && !defined(VMS) 3881 /* If the normal TARGET_SYSTEM_ROOT is inside of $exec_prefix, 3882 then consider it to relocate with the rest of the GCC installation 3883 if GCC_EXEC_PREFIX is set. 3884 ``make_relative_prefix'' is not compiled for VMS, so don't call it. */ - 3885 if (target_system_root && !target_system_root_changed && gcc_exec_prefix) 3886 { - 3887 char *tmp_prefix = get_relative_prefix (decoded_options[0].arg, // decoded_options throws the BADF00D according to gdb 3888 standard_bindir_prefix, 3889 target_system_root); - 3890 if (tmp_prefix && access_check (tmp_prefix, F_OK) == 0) 3891 { - 3892 target_system_root = tmp_prefix; - 3893 target_system_root_changed = 1; 3894 } 3895 } 3896 #endif if i do a memory dump on the call to decoded_options in insight the first 10 registers show {0xbaadf00d} funny name btw. maybe a bad pointer somewhere ?