This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH] Sparc Linux stuff
- To: jakub at redhat dot com
- Subject: Re: [PATCH] Sparc Linux stuff
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Tue, 23 May 2000 12:30:43 +0200
- CC: msnyder at cygnus dot com, jimb at cygnus dot com, gdb-patches at sourceware dot cygnus dot com
- References: <20000523091140.C474@sunsite.ms.mff.cuni.cz>
Date: Tue, 23 May 2000 09:11:40 +0200
From: Jakub Jelinek <jakub@redhat.com>
Hi Jakub,
Following patch makes gdb 5.0 compile on sparc-*-linux and adds a
semi-usable support for sparc64-*-linux.
I'll leave reviewing the patch up to those who're really in charge,
but IMHO the patch will need some more work. You're trying to address
multiple, not entirely related issue's at once. Better to split these
out. Furthermore the GDB_TARGET_IS_SPARC_BI_ARCH approach doesn't
seem to be "the right thing" to me. It is probably better to
mult-arch Linux/Sparc. Michael already did some (preliminary)
multi-arch work on Sparc.
This patch works just fine against gdb from say November, but after
somewhen in December things broke - that's why I haven't submitted
the patch yet (no matter whether this patch is in or not (in the
latter case one has to tweak a few things to make things compile),
e.g. next command does not work. Say
#include <stdio.h>
void foo(void)
{
printf("a\n");
}
void bar(void)
{
printf("b\n");
}
void main(void)
{
foo();
bar();
foo();
}
compiled with -g -O0, putting breakpoint on main works just fine
but then if I enter next, it goes on until program exit (ie. does
not stop where it should).
This may very well be caused by GCC not putting out the right
debugging information. What version of GCC are you using?
Mark