aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-68k.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-21 02:20:30 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-21 02:20:30 +0000
commitf70be3e45afa60e5639ef0a4411470ccd094b39d (patch)
tree451a23a5504dbc7110536fb8c1773c954f74b4b8 /gdb/tm-68k.h
parent0cc37e2948c2b7adf4a1fb4c484e2183c9e30726 (diff)
downloadgdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.zip
gdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.tar.gz
gdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.tar.bz2
COFF changes for dealing better with EPI 29K C compiler output.
* coffread.c (record_minimal_symbol): Pass the minsym type to it. Callers changed. (coff_end_symtab): Sort blocks if needed. Complain if misordered. (read_coff_symtab): Move patch_opaque_types call from coff_symfile_read. Restrict it to symtabs from this objfile. (process_coff_symbol: C_TPDEF): Don't put ordinary foward references on opaque type chain; just let coff_lookup_type handle 'em. (decode_type): Complain about tagndx values on non-struct/union/enum types, which the EPI compiler tends to produce. * symtab.c (list_symbols): Make minimal symbol variable-finding work. * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order dependency. * elfread.c (elf_symfile_read): Update bfd_elf_find_section usage to match new prototype. Include libbfd.h to get prototype.
Diffstat (limited to 'gdb/tm-68k.h')
-rw-r--r--gdb/tm-68k.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/tm-68k.h b/gdb/tm-68k.h
index 6a926e0..96d71de 100644
--- a/gdb/tm-68k.h
+++ b/gdb/tm-68k.h
@@ -501,11 +501,12 @@ extern const struct ext_format ext_format_68881;
#endif /* HAVE_68881 */
/* Insert the specified number of args and function address
- into a call sequence of the above form stored at DUMMYNAME. */
+ into a call sequence of the above form stored at DUMMYNAME.
+ We use the BFD routines to store a big-endian value of known size. */
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
-{ *(int *)((char *) dummyname + CALL_DUMMY_START_OFFSET + 2) = fun; \
- *(int *)((char *) dummyname + CALL_DUMMY_START_OFFSET + 8) = nargs * 4; }
+{ _do_putb32 (fun, (char *) dummyname + CALL_DUMMY_START_OFFSET + 2); \
+ _do_putb32 (nargs*4, (char *) dummyname + CALL_DUMMY_START_OFFSET + 8); }
/* Push an empty stack frame, to record the current PC, etc. */