1450 Commits

Author SHA1 Message Date
96b2f51cdc Fix some infrastructure to be able to cope with host and target
machines with different sized basic types (ints, ptrs, etc).
(Idea from pierre@la.tce.com (Pierre Willard).)

* values.c (value_from_longest):  Rename from value_from_long.
Handle pointer types as well as integers, so that targets with
different pointer sizes from the host can be accomodated.
* breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
valarith.c, valops.c, valprint.c, value.h, values.c:  Rename
uses of value_from_long to value_from_longest.
1991-09-06 07:13:38 +00:00
06b6c733ae Fix some infrastructure to be able to cope with host and target
machines with different sized basic types (ints, ptrs, etc).
(Idea from pierre@la.tce.com (Pierre Willard).)

* value.c (value_from_longest):  Rename from value_from_long.
Handle pointer types as well as integers, so that targets with
different pointer sizes from the host can be accomodated.
* breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
valarith.c, valops.c, valprint.c, value.h, values.c:  Rename
uses of value_from_long to value_from_longest.
* eval.c, findvar.c, printcmd.c, valarith.c, valops.c:  Pass
the correct pointer type to value_from_long{est}.

* remote-vx.c:  Remove obsolete code for calling functions via
vxworks kludge interface (it referenced value_from_long).

* valops.c (value_string):  Find malloc with lookup_misc_func, not
raw search.

* breakpoint.c, remote-vx.c: Reword strings printed by
catch_errors callers.
1991-09-06 07:09:40 +00:00
2d8fa9ab98 * .gdbinit: Remove useless "rr" command. Set complaints
to 1 for people debugging gdb.
1991-09-06 06:52:38 +00:00
90262bf934 * WHATS.NEW: "history write -> history save". Doc "write on/off".
(Fix from kenc@viewlogic.com.)
1991-09-06 06:50:40 +00:00
e557edcf98 * a.out.gnu.h, aout64.h: Add N_WARNING. Change N_FN to 0x0E,
to match SunOS and BSD.  Add N_COMM as 0x12 for SunOS shared lib
support.
* stab.def:  Add N_COMM to table, fix overlap comment.
1991-09-04 16:03:52 +00:00
12e7087f53 Allow GDB to patch object files.
Makefile.in:  Add crude dependencies.
1991-09-04 07:52:46 +00:00
bdbd5f5086 Make writing to files work properly. (Fixes to BFD are also needed.)
* core.c (core_open):  Open file ourselves, read or r/w, depending on
write_files.  Use bfd_fdopenr.
* gdbcore.h (write_files):  New variable.
* exec.c (write_files):  Define variable, add set&show for it.
(exec_file_command):  Use write_files to open for read or r/write.

Make shared library reading happen automatically.  These changes
are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.

* inferior.h (stop_soon_quietly):  Add to exported variables.
* infrun.c (child_create_inferior):  call solib hook, if defined.
(child_attach):  call solib hook, if defined.
* solib.c:  Include inferior.h.  Add from_tty to so_list as kludge.
(find_solib):  Use lookup_misc_func rather than hand-rolled.
(symbol_add_stub):  New stub for catch_errors.
(solib_add):  Avoid output if !from_tty.  Catch errors rather
than just calling symbol_file_add and bombing.
(solib_create_inferior_hook):  Interface with the target process
to let it read and alloc shared libs, then figure out what it did.

* core.c (validate_files):  Fix typo, soften warning.
(Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.)

* utils.c (fputs_demangled):  Avoid duplicate printing if
demangling is off.  (Fix from J.T. Conklin <jtc@cayenne.com>.)

* infrun.c (proceed):  Cast -1 to (CORE_ADDR) before comparing.
(Fix from pierre@la.tce.com (Pierre Willard).)

* main.c (catch_errors):  Change argument to a char * from an int,
since a char * can point to a struct full of glop, but an int
is not guaranteed to be able to hold a pointer.
* breakpoint.c (breakpoint_cond_eval, bpstat_stop_status,
breakpoint_re_set_one, breakpoint_re_set):  Adapt.
* core.c (core_open, solib_add_stub):  Adapt.
* remote-vx.c (symbol_stub, add_symbol_stub, callers):  Adapt.
1991-09-04 07:43:50 +00:00
7c589d2562 Don't keep ldgram.h. Isn't even checked in. 1991-09-04 04:21:09 +00:00
01f0a88e4c Added "recover"'ability. 1991-09-04 03:59:15 +00:00
5f62d65b5a Adding "recover"'ability. 1991-09-04 02:51:18 +00:00
78375cd354 Bugs john noticed. 1991-09-04 02:28:15 +00:00
3116e6cf2f test & recover a better way. 1991-09-04 01:55:53 +00:00
10effd407e Fixed the line break as a test for cvs ci. 1991-09-03 22:43:19 +00:00
48543e053a "recover" aoutx.h 1991-09-03 22:21:30 +00:00
1baac72eb9 *** empty log message *** 1991-09-03 21:14:14 +00:00
1e33287356 *** empty log message *** 1991-09-03 21:14:13 +00:00
81003d7e1a Initial revision 1991-09-03 21:12:23 +00:00
30104b16c3 *** empty log message *** 1991-09-03 21:04:24 +00:00
01bc4918d7 Initial revision 1991-09-03 21:01:03 +00:00
c67056970a *** empty log message *** 1991-09-03 20:48:27 +00:00
4efb1cc9f0 Merge with FSF. 1991-09-03 13:35:35 +00:00
55fbee918b Merge with latest FSF versions. 1991-09-03 13:32:50 +00:00
cdabe52361 Updated list of Sanitizable directories. 1991-09-02 22:19:49 +00:00
8e25c1fa96 "recover" tc-sparc.c 1991-09-02 21:26:15 +00:00
1312dccc30 Recover the editted files. 1991-09-02 21:21:47 +00:00
385339e6e6 dump the obsolete INSTALL. 1991-09-02 01:12:42 +00:00
abf2ca6c2e Correcting some things. 1991-09-02 01:05:04 +00:00
a71150bd17 Correct a few things. 1991-09-02 01:03:38 +00:00
2dd8428e6d Initial revision 1991-09-02 01:03:06 +00:00
1493817dff m68040 support. 1991-09-01 23:45:00 +00:00
f4870f0f26 hack around memset(). 1991-09-01 23:40:56 +00:00
617ee8ed46 prototype for decode_local_label_name(), better definition of
obstack_chunk_fns.
1991-09-01 23:39:31 +00:00
da0b2bff46 Link via as.new to avoid what might be some other cross assembler for
people with '.' in their paths.

Also, push as.new into as.old in an attempt to catch a couple gdb
bugs.
1991-09-01 23:38:30 +00:00
5cf89596e7 Patch around gcc builtin memory functions. 1991-09-01 23:36:56 +00:00
9b24fc7087 Added config.sub 1991-09-01 03:47:07 +00:00
02757e591c Changed the word binutils to 'the linker' 1991-09-01 03:42:05 +00:00
e4899eb809 Welcome emacs to the mess. 1991-08-31 03:54:38 +00:00
7307c104b3 Retract last edit. System type should determine whether this file gets loaded
at all.
1991-08-31 02:01:17 +00:00
9e7f3b6a69 Undo edit 1.5. Easier to let abort be of unspecified type than to claim a type
and be wrong half the time.
1991-08-31 01:43:19 +00:00
9f2673804c Add in sysv configuration stuff. 1991-08-31 01:38:08 +00:00
5fad8bf967 Merge in irix support. 1991-08-31 00:59:29 +00:00
9712c6e200 Merge in irix support. 1991-08-31 00:54:16 +00:00
faaaea3c2a Merge in irix support. 1991-08-31 00:43:36 +00:00
625453dcfd Merge in irix support. 1991-08-31 00:31:30 +00:00
bceb2dded1 Merge in irix support. 1991-08-30 23:18:06 +00:00
20ccfb0996 paperwork handled for AMD Coff. 1991-08-29 00:35:06 +00:00
4d84d6ad73 Paperwork handled for AMD Coff. 1991-08-29 00:34:45 +00:00
662e94343e Backing out last round of changes. 1991-08-28 21:56:58 +00:00
b678740d04 Update to current standards. 1991-08-28 21:49:12 +00:00
dae50edd99 Better error reporting on missing local labels. 1991-08-28 21:38:48 +00:00