[PATCH] Sparc Linux stuff

Mark Kettenis kettenis@wins.uva.nl
Tue May 23 03:30:00 GMT 2000


   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


More information about the Gdb-patches mailing list