Commit Graph

374 Commits

Author SHA1 Message Date
Steve Chamberlain
dcf22de996 Fixed problem where pc relative stuff was not being translated
properly. Oasys keeps no -ve pc in the disp of a branch, so we fake
it.
1991-05-07 19:13:58 +00:00
Steve Chamberlain
bc488d8923 *** empty log message *** 1991-05-05 22:13:56 +00:00
John Gilmore
5594d534a2 Saber C (lint) cleanups, and a few bug fixes. See ChangeLog. 1991-05-04 23:15:02 +00:00
John Gilmore
b1847ba9e7 Saber C cleanup. Fix horrid bug in opncls.c in which an obstack is
initialized on the stack and then copied into its own allocated space.
(Wow, Steve, you're twisted...)
1991-05-04 22:52:03 +00:00
John Gilmore
f929c7d43b Saber C fixups. 1991-05-04 22:45:02 +00:00
John Gilmore
6281dfd59d Roll version to 3.95. 1991-05-04 18:10:57 +00:00
John Gilmore
1417a2cd1c Fix =&'s in copy.c 1991-05-04 05:22:47 +00:00
John Gilmore
77ac93922c See ChangeLog. 1991-05-04 05:07:07 +00:00
John Gilmore
7c884bf003 Jim Kingdon's gdb port to the m88k. 1991-05-04 04:42:18 +00:00
John Gilmore
591cd7a6f4 Jim Kingdon's port to m88k on his last day at Cygnus. 1991-05-04 04:41:34 +00:00
John Gilmore
74dcea7b24 Jim Kingdon's port of gdb to m88k on his last day. 1991-05-04 04:40:57 +00:00
K. Richard Pixley
e9dcae1a71 John's suggestions. 1991-05-04 00:57:57 +00:00
Steve Chamberlain
d082a54f59 *** empty log message *** 1991-05-04 00:40:37 +00:00
Steve Chamberlain
b63165349f *** empty log message *** 1991-05-03 23:52:48 +00:00
John Gilmore
592ecfb22e Rename getopt to libiberty. 1991-05-03 21:30:41 +00:00
Roland Pesch
1722479547 *** empty log message *** 1991-05-03 20:19:18 +00:00
John Gilmore
86bbb439c8 There should be a Makefile in the cvs main directory, configured
for "./config.gdb none", so that things like "make tags" and "make tar"
will work.
1991-05-03 19:57:13 +00:00
John Gilmore
9c2f3ceeb4 Avoid making a machine-dependent (probably wrong) declaration of malloc
and free.  Depend on the sysdep.h file to do that for us.
1991-05-03 19:25:38 +00:00
John Gilmore
09a98ceece Be sure malloc and free are declared; bfd/opncls uses them. 1991-05-03 19:24:18 +00:00
K. Richard Pixley
67ca110ded Changed getopt to libiberty, commented out an aborted attempt at host
level Makefiles because it caused errors on +rm, add a warning for
directories expected to be removed on +rm but that don't exist.
1991-05-03 19:14:21 +00:00
Jim Kingdon
8e7457b2aa *** empty log message *** 1991-05-03 06:06:53 +00:00
Jim Kingdon
7b54d319af * mtrace.c: Don't typedef things like size_t, just #define them. 1991-05-03 06:04:13 +00:00
Jim Kingdon
2cb3be2c94 * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*. 1991-05-03 06:03:54 +00:00
Jim Kingdon
63a463b149 * signame.c: Cast const char* to char* when assigning to sys_siglist. 1991-05-03 06:02:52 +00:00
Jim Kingdon
8aa13b8777 Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog. 1991-05-03 06:02:03 +00:00
Jim Kingdon
6f48f7f198 (osys_read_record): If record->header.lenth <= sizeof (record->header),
then return rather than passing a negative (or zero) nelts to bfd_read.
1991-05-03 05:56:58 +00:00
Jim Kingdon
ede87e2901 Make arg to zalloc a bfd_size_type not a size_t 1991-05-03 01:59:25 +00:00
John Gilmore
bf475b4991 Make it limp for MIPS ECOFF, too. 1991-05-03 01:24:03 +00:00
John Gilmore
8ffd75c8a9 Mips bringup and general cleanup
* cplus-dem.c:  Move CPLUS_MARKER define to after defs.h.
        * infptrace.c (PT_WRITE_D, PT_READ_D):  Use correct values.
        (This still doesn't seem to make MIPS bkpts work.)
        * mipsread.c:  Remove dup "Reading symbol data..." msg.
        (symbol_file_command, add_file_command):  Remove, obsol.
        * printcmd.c (ptype_command):  Say "an enum" rather than "a enum".
        Wrap output appropriately.
        * stack.c (locals_info, catch_info, args_info):  Check
        selected_frame rather than target_has_stack or coredumping.
        * valprint.c (type_print_varspec_suffix):  Wrap "ptype" output of
        enums appropriately.
1991-05-03 01:07:12 +00:00
Jim Kingdon
2bff8e38bc *** empty log message *** 1991-05-03 00:50:18 +00:00
John Gilmore
23b0b55855 Merge Per Bothner's MIPS changes from 31 March 1991 (bfd-0.5.2-patch1a)
and make the result compile and run on the DEC 3100.  It still has
trouble running but it can handle opening exec and symbol files in
ecoff format.
1991-05-02 23:10:23 +00:00
John Gilmore
9b4641a629 Make it compile on DEC 3100. 1991-05-02 21:27:31 +00:00
John Gilmore
1e6d5d3023 Minor cleanup to make it compile on DECstation. 1991-05-02 21:22:43 +00:00
Jim Kingdon
8c01a0eab1 Make bfd_filename return a char *, not a const char *. 1991-05-02 19:05:06 +00:00
Jim Kingdon
511a6d0ad6 *** empty log message *** 1991-05-02 06:46:25 +00:00
Jim Kingdon
65c9348236 *** empty log message *** 1991-05-02 04:38:14 +00:00
John Gilmore
f7895c8750 Merge devo/bfd with GDB's bfd. 1991-05-02 04:37:41 +00:00
Jim Kingdon
8c8212900e * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE. 1991-05-02 04:37:28 +00:00
Jim Kingdon
2d0c090e48 * blockframe.c, breakpoint.c, core.c, command.c, findvar.c,
eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c,
	remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h,
	symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h,
	target.c, inftarg.c, ieee-float.c, environ.c, defs.h,
	command.h, inferior.h, gdbcore.h, symtab.h, expression.h,
	symtab.c, cplus-dem.c, value.h, expread.y, valprint.c,
	copying.awk, solib.c, inflow.c, symmisc.c
	: Lint.  Use read_memory not read_memory_integer on CORE_ADDR's.
	Use {value_as,unpack}_pointer (added to values.c)
	not {value_as,unpack}_long on CORE_ADDR's.
	Use longest_to_int (added to defs.h) instead of cast to int.
	Remove from_tty arg to mod_path.
	Put symfile_bfd in {coff,dbx}read.c not symfile.h.
	Use OP_NULL instead of 0 where dummy enum exp_opcode needed.
1991-05-02 04:36:15 +00:00
Jim Kingdon
e1ce8aa5ed The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
1991-05-02 04:28:42 +00:00
Jim Kingdon
04a0511c0a * signame.c: Include defs.h and param.h. 1991-05-02 04:17:41 +00:00
John Gilmore
fc7233808a Merge devo/bfd with GDB's bfd.
Remove obstack.h to ../include and obstack.c to ../libiberty.
Move COFF symbol swapping code to coffswap.c where GDB can call it but it
won't be duplicated if we have N different COFF targets.
Add support for traditional Unix core files (with a upage).  This support
is from an Ultrix port, but is probably slightly broken now.
Improve bfd_release's of obstack'd items on error returns.
gcc -Wall fixes.
Handle section alignment slightly better in coff, and comment where it
needs more work (on page-aligning virtual vs file addresses for DPAGED).
Use set_tdata everywhere that tdata is set, to avoid "cast to the left
of assignment" problems with some compilers.
Move bfd_alloc, bfd_zalloc, bfd_realloc, and bfd_release into libbfd.h
(from bfd.h) since they are internal routines.
Remove the redundant suffix "_struct" from struct tags.
Set symbol count early in file reading, before slurping in the syms,
for GDB's use.
1991-05-02 04:11:40 +00:00
John Gilmore
ff37ea550b Initial revision 1991-05-02 04:11:17 +00:00
John Gilmore
639893384d Merge devo/bfd with GDB's bfd.
Get getopt and obstack from -liberty rather than compiling them here.
* coffread.c: turn a printf into a complain(), and try to deal more
gracefully with botched-looking lineno pointers.
* dbxread.c:  Use bfd_get_symcount rather than bfd_get_symcount_upper_bound.
Don't coredump on files with zero symbols in them (a BFD bug showed this one).
* environ.c:  Pass GNUTARGET into the parent (gdb) as well as the child.
1991-05-02 03:39:15 +00:00
John Gilmore
e77463a15c Merge devo/bfd with GDB's bfd.
Things that use -lbfd must also use -liberty, to get obstacks.
1991-05-02 03:08:32 +00:00
John Gilmore
7a5a3c7b86 Merge devo/bfd with GDB's bfd.
Use "libiberty" rather than "getopt" directory.
Add a few FIXME's to ar.c.
1991-05-02 03:06:46 +00:00
John Gilmore
9c6a9c925f Update for merge of main BFD and GDB's BFD. Remove "_struct" suffix
on all struct types -- they are in a separate namespace anyway.
Move bfd_alloc, bfd_zalloc, bfd_realloc, bfd_release into libbfd.h,
since external users shouldn't be calling them anyway.
1991-05-02 02:52:21 +00:00
Michael Tiemann
aec4cb918e Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
* valprint.c (type_print_base): If the type being printed is a
	struct containing undefined types, print "<undefine type>"
	as the type instead of crashing.
	* values.c (value_headof): Get the vtable pointer taking
	TYPE_VPTR_BASETYPE into account.
	* symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1991-04-30 20:19:02 +00:00
Jim Kingdon
98c1b9e79b *** empty log message *** 1991-04-30 19:51:50 +00:00
Jim Kingdon
39d2bcca7d * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to
GDB_TARGET_IS_SUN3.
1991-04-30 19:50:49 +00:00