aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-13 02:18:44 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-13 02:18:44 +0000
commit93297ea028114b30f985e6609a663bc5cbf04010 (patch)
tree1ac506adc6787a8d1576c499a80ccf5e08538d60 /gdb/minsyms.c
parentbf2e5f6b82634e5bfc3ae4c8cedb2cda6f13aed5 (diff)
downloadgdb-93297ea028114b30f985e6609a663bc5cbf04010.zip
gdb-93297ea028114b30f985e6609a663bc5cbf04010.tar.gz
gdb-93297ea028114b30f985e6609a663bc5cbf04010.tar.bz2
* buildsym.h: Add processing_acc_compilation flag.
* buildsym.c (read_sun_builtin_type, read_sun_floating_type): New. (define_symbol): Skip arg types in function entries. Resolve overloaded 'P' which acc uses for prototypes of functions called by this file. (read_type: 'b', 'r'): Handle Solaris2 builtin types. * minsyms.c (prim_record_minimal_symbol_and_info): Hack to save size of ELF symbols. FIXME. * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2. * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines. * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 6810d9a..1641592 100644
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -263,6 +263,32 @@ prim_record_minimal_symbol (name, address, ms_type)
msym_count++;
}
+void
+prim_record_minimal_symbol_and_info (name, address, ms_type, info)
+ const char *name;
+ CORE_ADDR address;
+ enum minimal_symbol_type ms_type;
+ char *info;
+{
+ register struct msym_bunch *new;
+
+ if (msym_bunch_index == BUNCH_SIZE)
+ {
+ new = (struct msym_bunch *) xmalloc (sizeof (struct msym_bunch));
+ msym_bunch_index = 0;
+ new -> next = msym_bunch;
+ msym_bunch = new;
+ }
+ msym_bunch -> contents[msym_bunch_index].name = (char *) name;
+ msym_bunch -> contents[msym_bunch_index].address = address;
+ msym_bunch -> contents[msym_bunch_index].info = NULL;
+ msym_bunch -> contents[msym_bunch_index].type = ms_type;
+ /* FIXME: This info, if it remains, needs its own field. */
+ msym_bunch -> contents[msym_bunch_index].info = info; /* FIXME! */
+ msym_bunch_index++;
+ msym_count++;
+}
+
/* Compare two minimal symbols by address and return a signed result based
on unsigned comparisons, so that we sort into unsigned numeric order. */