diff options
author | Fred Fish <fnf@specifix.com> | 1996-03-24 00:22:50 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-03-24 00:22:50 +0000 |
commit | 4cfb23a94c8cd4aac096c54ee7f8fe28cdc5f525 (patch) | |
tree | 3221fbbd6af66a2ba9fba00d639f686928d07278 /gdb/os9kread.c | |
parent | a319972ce65345235a584dc629ca3ae29b25fa44 (diff) | |
download | gdb-4cfb23a94c8cd4aac096c54ee7f8fe28cdc5f525.zip gdb-4cfb23a94c8cd4aac096c54ee7f8fe28cdc5f525.tar.gz gdb-4cfb23a94c8cd4aac096c54ee7f8fe28cdc5f525.tar.bz2 |
* os9kread.c (os9k_process_one_symbol): Note nonportable
assumption that an int can hold a char *.
* bcache.h (struct hashlink): Wrap data[] inside union with
double to force longest alignment.
(BCACHE_DATA): New macro to access data[].
(BCACHE_ALIGNMENT): New macro to get offset to data[].
* bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
address of cached data. Use BCACHE_ALIGNMENT to compute
amount of space to allocate for each hashlink struct.
Diffstat (limited to 'gdb/os9kread.c')
-rw-r--r-- | gdb/os9kread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/os9kread.c b/gdb/os9kread.c index 2de2922..edef8bc 100644 --- a/gdb/os9kread.c +++ b/gdb/os9kread.c @@ -1528,9 +1528,10 @@ os9k_process_one_symbol (type, desc, valu, name, section_offsets, objfile) case N_SYM_SLINE: /* This type of "symbol" really just records one line-number -- core-address correspondence. - Enter it in the line list for this symbol table. */ + Enter it in the line list for this symbol table. */ /* Relocate for dynamic loading and for ELF acc fn-relative syms. */ valu += ANOFFSET (section_offsets, SECT_OFF_TEXT); + /* FIXME: loses if sizeof (char *) > sizeof (int) */ record_line (current_subfile, (int)name, valu); break; |