Re: Can't view backtrace with gdb: core file contained no thread-specific data
Re: Can't view backtrace with gdb: core file contained no thread-specific data
- Subject: Re: Can't view backtrace with gdb: core file contained no thread-specific data
- From: Paul Litvak <email@hidden>
- Date: Thu, 19 Oct 2006 06:19:28 -0500
On Oct 18, 2006, at 5:34 PM, Paul Litvak wrote:
I am trying to view a backtrace in core files generated on 10.4.8.
All I see is this:
#0 0x00000000 in ?? ()
gdb says "Core file contained no thread-specific data"
I am using GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul
19 05:10:58 GMT 2006)
Looks like gdb can't find and read the thread state segments in the
core file.
Here is a patch to the gdb-563 sources:
--- src/gdb/macosx/core-macho.c 2005-08-04 15:41:17.000000000 -0500
+++ /Users/plitvak/src/darwin/gdb/src/gdb/macosx/core-macho.c
2006-10-19 04:57:49.000000000 -0500
@@ -77,7 +77,7 @@ check_thread (bfd *abfd, asection *asect
#if defined (TARGET_POWERPC)
const char *expected = "LC_THREAD.PPC_THREAD_STATE.";
#elif defined (TARGET_I386)
- const char *expected = "LC_THREAD.i386_THREAD_STATE.";
+ const char *expected = "LC_THREAD.x86_THREAD_STATE.";
#else
#error "unsupported architecture"
#endif
@@ -280,7 +280,7 @@ core_fetch_section_registers (asection *
#if defined (TARGET_POWERPC)
ppc_macosx_fetch_gp_registers ((gdb_ppc_thread_state_t *) regs);
#elif defined (TARGET_I386)
- i386_macosx_fetch_gp_registers ((gdb_i386_thread_state_t *) regs);
+ i386_macosx_fetch_gp_registers ( (gdb_i386_thread_state_t*)&
((gdb_x86_thread_state_t *) regs)->uts.ts32 );
#else
#error "unsupported architecture"
#endif
_______________________________________________
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