aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-03-25 09:23:10 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-03-25 09:23:10 +0000
commitb9e585030c6d1007849c42d0bc19d1e77041505d (patch)
treed19636a519ae76b78d82efbba19d81bdbeec6fe8 /gdb/sparc-tdep.c
parent62f2c8080203a4c48cb408119a4afb4d9cb766c2 (diff)
downloadgdb-b9e585030c6d1007849c42d0bc19d1e77041505d.zip
gdb-b9e585030c6d1007849c42d0bc19d1e77041505d.tar.gz
gdb-b9e585030c6d1007849c42d0bc19d1e77041505d.tar.bz2
* buildsym.c (patch_subfile_name): Update last_source_file
with the real source file name. * dbxread.c (end_psymtab): Handle static functions in the SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename to lookup_minimal_symbol. (process_one_symbol): Ignore extra outermost context from SunPRO cc and acc. * stabsread.c (define_symbol): Do not complain for SunPRO static variable encoding if STATIC_TRANSFORM_NAME is defined. * sparc-tdep.c, config/sparc/tm-sun4sol2.h (sunpro_static_transform_name): Renamed from solaris_static_transform_name. * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME): Define to sunpro_static_transform_name for acc 3.0 compiled executables. * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS): Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults if defined. * procfs.c (info_proc_siginfo): Cast sip->si_addr to `unsigned long' and use `lx' format for printing it.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index c83cbcd..172f98d 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -279,8 +279,13 @@ CORE_ADDR
sparc_extract_struct_value_address (regbuf)
char regbuf[REGISTER_BYTES];
{
+#ifdef GDB_TARGET_IS_SPARC64
+ return extract_address (regbuf + REGISTER_BYTE (O0_REGNUM),
+ REGISTER_RAW_SIZE (O0_REGNUM));
+#else
return read_memory_integer (((int *)(regbuf)) [SP_REGNUM] + (16 * SPARC_INTREG_SIZE),
TARGET_PTR_BIT / TARGET_CHAR_BIT);
+#endif
}
/* Find the pc saved in frame FRAME. */
@@ -1272,7 +1277,7 @@ get_longjmp_target (pc)
related to C++ mangling, it is done for C too. */
char *
-solaris_static_transform_name (name)
+sunpro_static_transform_name (name)
char *name;
{
char *p;
@@ -1295,20 +1300,11 @@ solaris_static_transform_name (name)
#ifdef GDB_TARGET_IS_SPARC64
-CORE_ADDR
-sparc64_extract_struct_value_address (regbuf)
- char regbuf[REGISTER_BYTES];
-{
- CORE_ADDR addr;
-
- /* FIXME: We assume a non-leaf function. */
- addr = read_register (I0_REGNUM);
- return addr;
-}
-
/* Utilities for printing registers.
Page numbers refer to the SPARC Architecture Manual. */
+static void dump_ccreg PARAMS ((char *, int));
+
static void
dump_ccreg (reg, val)
char *reg;