Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Jim Levie
Sat, 20 Jan 1990 04:55
gdb 3.3 and 3.4 problem with Fortran under SunOS 4.x
Author: Jim Levie
Date: Sat, 20 Jan 1990 04:55
Date: Sat, 20 Jan 1990 04:55
36 lines
1713 bytes
1713 bytes
Both gdb 3.3 and 3.4 fail when debugging a Fortran program under SunOS 4.x
when the Fortran program uses an "external" statment. The following patch
will apparently fix the problem without breaking anything else as far as
I know. I'm not sure if this is technically the best fix... but it works!
*** dbxread.c-orig Fri Jan 19 22:26:45 1990
--- dbxread.c Fri Jan 19 22:25:52 1990
***************
*** 4057,4066 ****
--- 4057,4076 ----
SYMBOL_VALUE (sym) = value;
SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE;
add_symbol_to_list (sym, &local_symbols);
break;
+ #ifdef SUNOS4
+ case'X':
+ /* Most likely a unique Sun Fortran special for "externals" */
+ SYMBOL_CLASS (sym) = LOC_STATIC;
+ SYMBOL_VALUE (sym) = value;
+ SYMBOL_NAMESPACE (sym) = VAR_NAMESPACE;
+ add_symbol_to_list (sym, &global_symbols);
+ break;
+ #endif
+
default:
error ("Invalid symbol data: unknown symbol-type code `%c' at symtab pos %d.", deftype, symnum);
}
return sym;
}
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Jim Levie REMTECH Inc Huntsville, Al
The opinions expressed above are just that.
Ph. (205) 536-8581 email: uunet!ingr!chimera!jim
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads