Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* View backtraces for core dumps generated under OS X 10.4.8 on intel macs
@ 2006-11-02 19:19 Paul Litvak
  2006-11-02 19:21 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Litvak @ 2006-11-02 19:19 UTC (permalink / raw)
  To: gdb-patches

The bug:

Can't view backtraces for core dumps generated under OS X 10.4.8 on  
intel macs.
GDB reports "Core file contained no thread-specific data" after  
loading the core file.
I can reproduce the bug with gdb in Xcode 2.4 and 2.4.1

The patch to Apple's 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

-- Paul Litvak


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: View backtraces for core dumps generated under OS X 10.4.8 on intel macs
  2006-11-02 19:19 View backtraces for core dumps generated under OS X 10.4.8 on intel macs Paul Litvak
@ 2006-11-02 19:21 ` Daniel Jacobowitz
  2006-11-02 19:32   ` Jim Ingham
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-11-02 19:21 UTC (permalink / raw)
  To: Paul Litvak; +Cc: gdb-patches

On Thu, Nov 02, 2006 at 01:18:12PM -0600, Paul Litvak wrote:
> The bug:
> 
> Can't view backtraces for core dumps generated under OS X 10.4.8 on  
> intel macs.
> GDB reports "Core file contained no thread-specific data" after  
> loading the core file.
> I can reproduce the bug with gdb in Xcode 2.4 and 2.4.1
> 
> The patch to Apple's gdb-563 sources:

Apple's GDB sources bear fairly little relationship to the FSF GDB
sources, which are all that we on this list can change; I recommend you
report this directly to Apple.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: View backtraces for core dumps generated under OS X 10.4.8 on intel macs
  2006-11-02 19:21 ` Daniel Jacobowitz
@ 2006-11-02 19:32   ` Jim Ingham
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Ingham @ 2006-11-02 19:32 UTC (permalink / raw)
  To: Paul Litvak; +Cc: gdb-patches

The xcode users list (xcode-users@lists.apple.com) is the best place  
for Apple gdb issues, and of course, for bugs use:

http://bugreporter.apple.com

Jim

On Nov 2, 2006, at 11:21 AM, Daniel Jacobowitz wrote:

> On Thu, Nov 02, 2006 at 01:18:12PM -0600, Paul Litvak wrote:
>> The bug:
>>
>> Can't view backtraces for core dumps generated under OS X 10.4.8 on
>> intel macs.
>> GDB reports "Core file contained no thread-specific data" after
>> loading the core file.
>> I can reproduce the bug with gdb in Xcode 2.4 and 2.4.1
>>
>> The patch to Apple's gdb-563 sources:
>
> Apple's GDB sources bear fairly little relationship to the FSF GDB
> sources, which are all that we on this list can change; I recommend  
> you
> report this directly to Apple.
>
> -- 
> Daniel Jacobowitz
> CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-02 19:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02 19:19 View backtraces for core dumps generated under OS X 10.4.8 on intel macs Paul Litvak
2006-11-02 19:21 ` Daniel Jacobowitz
2006-11-02 19:32   ` Jim Ingham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox