aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1998-04-26 03:15:37 +0000
committerRichard Henderson <rth@redhat.com>1998-04-26 03:15:37 +0000
commit94fa695ecaeef03ffb23f101913de94a9280c8b7 (patch)
tree97e82d312881a1dc80f8574b30141d6451e6e042 /gas
parentdbcd157d76a3345ee473a8fb5096b0d18c610345 (diff)
downloadgdb-94fa695ecaeef03ffb23f101913de94a9280c8b7.zip
gdb-94fa695ecaeef03ffb23f101913de94a9280c8b7.tar.gz
gdb-94fa695ecaeef03ffb23f101913de94a9280c8b7.tar.bz2
* ecoff.c (ecoff_get_cur_proc_sym): New function.
* ecoff.h: Protoype it. * config/tc-alpha.c [ELF] (s_alpha_prologue): New function. [EVAX] (s_alpha_prologue): Delete. (md_pseudo_table): Update.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/ecoff.c6
-rw-r--r--gas/ecoff.h5
3 files changed, 18 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0ef98bc..4191303 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,11 @@
+Sat Apr 25 20:12:02 1998 Richard Henderson <rth@cygnus.com>
+
+ * ecoff.c (ecoff_get_cur_proc_sym): New function.
+ * ecoff.h: Protoype it.
+ * config/tc-alpha.c [ELF] (s_alpha_prologue): New function.
+ [EVAX] (s_alpha_prologue): Delete.
+ (md_pseudo_table): Update.
+
Sat Apr 25 14:00:52 1998 Ian Lance Taylor <ian@cygnus.com>
* config/tc-i960.c (md_assemble): Change bp_error_msg from static
diff --git a/gas/ecoff.c b/gas/ecoff.c
index f8e538f..664edf4 100644
--- a/gas/ecoff.c
+++ b/gas/ecoff.c
@@ -2195,6 +2195,12 @@ add_procedure (func)
noproc_lineno = (lineno_list_t *) NULL;
}
}
+
+symbolS *
+ecoff_get_cur_proc_sym ()
+{
+ return (cur_proc_ptr ? cur_proc_ptr->sym->as_sym : NULL);
+}
/* Add a new filename, and set up all of the file relative
virtual arrays (strings, symbols, aux syms, etc.). Record
diff --git a/gas/ecoff.h b/gas/ecoff.h
index ed0be76..a99db5a 100644
--- a/gas/ecoff.h
+++ b/gas/ecoff.h
@@ -1,5 +1,5 @@
/* ecoff.h -- header file for ECOFF debugging support
- Copyright (C) 1993, 94, 95, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1993, 94, 95, 96, 1997 Free Software Foundation, Inc.
Contributed by Cygnus Support.
Put together by Ian Lance Taylor <ian@cygnus.com>.
@@ -103,5 +103,8 @@ extern int ecoff_no_current_file PARAMS ((void));
file. */
extern void ecoff_generate_asm_lineno PARAMS ((const char *, int));
+/* This function returns the symbol associated with the current proc. */
+extern symbolS *ecoff_get_cur_proc_sym PARAMS ((void));
+
#endif /* ! GAS_ECOFF_H */
#endif /* ECOFF_DEBUGGING */