[PATCH]: temp work-around for native sparc64-x-sparc32

Michael Snyder msnyder@cygnus.com
Thu May 25 11:35:00 GMT 2000


Mark Kettenis wrote:
> 
>    Date: Wed, 24 May 2000 14:44:54 -0700 (PDT)
>    From: msnyder@cygnus.com
> 
>    This is an ugly little kludge, but it's only temporary (he said).
>    I am having trouble getting shared libraries to work on a Sparc-64
>    Solaris host when debugging a Sparc-32 program.  Until I get it
>    working, I want to disable the shared library event breakpoint
>    so that at least we can debug non-shared-library code.  This will
>    have no effect on non-Sparc64 hosts and non-sparc32 targets.
> 
> If it's only temporary, *please* include a comment saying so in the
> source (preferably with a data and your name, so we now who to blame
> if it's still there in the next millennium :-)).

Point taken.  ;-)
Is this better?

Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.10
diff -c -r1.10 breakpoint.c
*** breakpoint.c        2000/05/15 05:54:02     1.10
--- breakpoint.c        2000/05/25 18:34:34
***************
*** 4061,4066 ****
--- 4061,4077 ----
    struct breakpoint *b;
    struct symtab_and_line sal;
  
+   /* Temporary hack:  until I can get Sparc64-x-Sparc32 to handle
+      shared libraries, I'm disabling them so they don't interfere
+      with other debugging.  Msnyder 5/24/2000  */
+     
+ #if defined (__sparcv9)
+   if (!GDB_TARGET_IS_SPARC64)
+     {
+       warning ("Ignoring solib event bp at 0x%llx", address);
+       return NULL;
+     }
+ #endif
    INIT_SAL (&sal);            /* initialize to zeroes */
    sal.pc = address;
    sal.section = find_pc_overlay (sal.pc);


More information about the Gdb-patches mailing list