* gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
[deliverable/binutils-gdb.git] / gdb / sparc64-sol2-tdep.c
index 5411b9bdff6d2cc1cce24b796bd4a350862ed82d..ab9a4610d4a6ac52578a6a5f2fb4f6582e0e4882 100644 (file)
@@ -157,6 +157,11 @@ sparc64_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
   sparc64_init_abi (info, gdbarch);
 
+  /* The Sun compilers (Sun ONE Studio, Forte Developer, Sun WorkShop, SunPRO)
+     compiler puts out 0 instead of the address in N_SO stabs.  Starting with
+     SunPRO 3.0, the compiler does this for N_FUN stabs too.  */
+  set_gdbarch_sofun_address_maybe_missing (gdbarch, 1);
+
   /* The Sun compilers also do "globalization"; see the comment in
      sparc_sol2_static_transform_name for more information.  */
   set_gdbarch_static_transform_name
This page took 0.026483 seconds and 4 git commands to generate.