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

msnyder@cygnus.com msnyder@cygnus.com
Wed May 24 14:44:00 GMT 2000

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.

2000-05-24  Michael Snyder  <msnyder@seadog.cygnus.com>

        * breakpoint.c (create_solib_event_breakpoint): Temporary
        work-around: if Sparc64 native debugging Sparc32 target, 
        disable solib events until they're working correctly.

Index: breakpoint.c
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.10
diff -p -r1.10 breakpoint.c
*** breakpoint.c	2000/05/15 05:54:02	1.10
--- breakpoint.c	2000/05/24 21:40:18
*************** create_solib_event_breakpoint (address)
*** 4061,4066 ****
--- 4061,4073 ----
    struct breakpoint *b;
    struct symtab_and_line sal;
+ #if defined (__sparcv9)
+     {
+       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