Commit graph

813 commits

Author SHA1 Message Date
Stu Grossman
b6113cc408 * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
29k-share/dfe/mini2udi.o.
* config/a29k-udi.mt:  Remove yank.o and mini2udi.o.
* alldeps.mak, depend:  Update to deal with removal of
aforementioned files.
* remote-udi.c:  Major cleanups.  Clean up udi_open and drop
requirement for useless 'program' argument.  Clean up
udi_create_inferior, and udi_load to call common download()
routine.  Create download routine to load remote hosts directly
(with the help of BFD) so that we don't need yank.c and
mini2udi.c.
Fix udi_detach to call UDIDisconnect with
the right arguments.  Clean up udi_resume, don't assign tip_error
twice.  Clean up udi_wait, straighten out status codes.  Make
udi_kill really work.
1992-11-12 01:15:06 +00:00
John Gilmore
59c84bd8d5 Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
when debugging a program with 100 shared libraries.

* solib.c (solib_map_sections):  Always close the BFD we open.
Free all malloc'd storage we allocate, too, including error cases.
(struct so_list):  Remove unused so_bfd member.
(clear_solib):  Don't bother closing so_bfd.

* symfile.c (symfile_bfd_open):  Mark newly opened BFD as
cacheable.  `So many symbol files, so little file descriptors.'
1992-11-06 11:05:08 +00:00
John Gilmore
8a96d79b70 * m68k-stub.c: Remove ansidecl.h and the few uses of it.
Stubs should stand alone as much as possible.

* source.c (show_directories):  Avoid printf_filtered length prob
pointed out by Jonathan Stone.

* i960-pinsn.c (MEM_MAX, MEM_SIZ):  Set upper limit properly to
avoid accesses beyond end of table.  Fix by Lee W. Cooprider,
<Lee_Cooprider@vos.stratus.com>.
1992-11-06 09:21:13 +00:00
Fred Fish
402dca80e7 * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
struct, not struct itself.
	* serial.h (serial_restore):  Fix prototype, takes pointer not
	struct.
1992-11-06 01:35:57 +00:00
Stu Grossman
2352d20bd7 * Makefile.in (depend): Add nm.h to the list of things to fixup.
* depend:  Redo, to fixup nm.h problems with *-tab.c files.
1992-11-06 01:13:34 +00:00
Stu Grossman
e7ae70e927 Re-install UDI comments. 1992-11-05 23:40:02 +00:00
John Gilmore
042bf84cf7 * i386-stub.c: Remove ansidecl.h and the few uses of it.
Stubs should stand alone as much as possible.
1992-11-05 08:40:38 +00:00
John Gilmore
61f55ca303 * README: Add remote-es1800.c and remote-st2000.c to table.
* go32-nat.c:  Remove, there is no native go32 support.
* go32-xdep.c:  Remove unused fork, fvork, wait, execlp, kill_inferior.
* infcmd.c (run_command):  Avoid long calls to printf_filtered.
Bug fix courtesy of Alexander Klaiber.
1992-11-05 08:26:15 +00:00
Stu Grossman
1549918a3f * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
new routines to deal with sending SIGINTs to attached processes
when the user interrupts the controlling GDB.
* inftarg.c (child_wait), procfs.c (procfs_wait):  Add calls to
the aforementioned routines when waiting for the attached process.
1992-11-05 03:54:01 +00:00
Stu Grossman
740b7efa43 * elfread.c, mipsread.c: Include <string.h>.
* i386-stub.c:  Include "ansidecl.h" to deal with prototypes.
* serial.h:  Add prototype for serial_restore().
1992-11-04 23:31:52 +00:00
Ian Lance Taylor
a521e93a8e Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
* minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
	minimal_symbol_count, because the NULL symbol is not included in
	the count.  This prevented this function from finding the last
	symbol in the table.
1992-11-04 19:45:42 +00:00
Ian Lance Taylor
b1fbbed48e Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
* dbxread.c (process_one_symbol): if not defined
	(BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
	the start of the function, not just after N_FUN.
1992-11-03 19:52:43 +00:00
Fred Fish
e35843d476 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
remap all malloc's to xmalloc's and all realloc's to xrealloc's.
	* c-exp.y, m2-exp.y:  Add comment about how malloc/realloc are
	  remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
	  file.  Remove preprocessor defines that previously did remapping.
1992-10-31 00:35:08 +00:00
K. Richard Pixley
b1de302a44 hp300 native support 1992-10-28 07:08:52 +00:00
K. Richard Pixley
7aae0974c2 vax native support 1992-10-28 05:31:14 +00:00
K. Richard Pixley
124a6fc037 add new nm files to HFILES 1992-10-28 03:05:29 +00:00
K. Richard Pixley
5c9bbfe62c apollo native support 1992-10-28 02:58:11 +00:00
K. Richard Pixley
851fffcf4e include nm.h in defs.h 1992-10-28 02:32:59 +00:00
Stu Grossman
bccaecc63b * Makefile.in (VERSION): 4.7.1 post release! 1992-10-23 13:17:47 +00:00
Stu Grossman
451df68019 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o. 1992-10-23 11:50:37 +00:00
John Gilmore
c50c519792 * Makefile.in (VERSION): gdb-4.7 release.
* README:  Update for gdb-4.7.
1992-10-23 07:53:03 +00:00
Stu Grossman
ee22c7f05e * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
when necessary.
1992-10-23 03:54:11 +00:00
Stu Grossman
db5b1f90ef * alldeps.mak, depend: Update. 1992-10-22 18:25:32 +00:00
John Gilmore
fef84cc41a * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
is null.
* tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP):  Remove -- it
causes problems in setting breakpoint in the right place in
functions with `float' args which are passed as doubles.
* xm-vaxbsd.h (MEM_FNS_DECLARED):  Avoid erroneous redecl's.
* config/rs6000.mh (NATDEPFILES):  Add corelow.o.
1992-10-22 11:23:54 +00:00
Stu Grossman
603900c746 * Makefile.in (HFILES): Add nm-i386sco.h.
* dwarfread.c:  include <sys/types.h> for SCO.
* infptrace.c:  Don't include ptrace.h under SCO.
* config/i386sco.mh:  Use -D_POSIX_SOURCE instead of -posix for
gcc.
* config/i386v.mt:  Add exec.o to TDEPFILES.
1992-10-22 08:07:12 +00:00
Stu Grossman
3496b74562 * i386v-nat.c: Remove space from front of #endif.
* irix4-nat.c:  Remove externs of registers[], include inferior.h
	instead.
	* mips-nat.c:  Explicitly initialize zerobuf to 0!
	* mips-tdep.c (init_extra_frame_info):  Undo John's last change.
	Always setup fci->frame, even if it's non-zero.  Too many places
	depend upon this behavior (and I have to get a release out the
	door)!
	* mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):  Set
	processing_gcc_compilation if we find the embedded stabs marker.
	This fixes several bugs with finding the location of short or char
	function parameters passed on the stack.
1992-10-22 02:26:04 +00:00
K. Richard Pixley
99ef5653ef sun4sol2 native stuff 1992-10-22 02:00:07 +00:00
John Gilmore
0a2a48a217 * coredep.c: Include "nm.h" to get REGISTER_U_ADDR. 1992-10-21 21:11:39 +00:00
John Gilmore
e4db3f3e06 * Makefile.in (VERSION): Tick to 4.6.9.
* mipsread.c (UNSAFE_DATA_ADDR):  Remove MIPS-host-specific
definition, replace with portable one.
* remote-nindy.c:  Lint.
(nindy_wait):  Return type is int, result is inferior_pid.
* symmisc.c (dump_psymtab):  Only print section_offsets if set.
(initialize_symmisc):  Remove empty function.
* tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
Remove obsolete, misspelled macro.
* doc/gdbint.texinfo:  Document obsolete STACK_END_ADDR.
(all @node commands):  Use new form to avoid nitpicking errors.
* doc/gdbint.texinfo:  Document host/native/target split.
1992-10-21 10:52:09 +00:00
Stu Grossman
e0e9107774 * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings. 1992-10-21 07:50:26 +00:00
Stu Grossman
ce5489d223 * xm-mips.h (offsetof): Don't define this if __STDC__. 1992-10-21 07:15:39 +00:00
K. Richard Pixley
3fcb902156 umax native support 1992-10-21 05:12:16 +00:00
K. Richard Pixley
ca0487229b hppa native support 1992-10-21 04:57:35 +00:00
Stu Grossman
2675499b51 * mips-nat.c: Straighten out include files. Work around
conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
	for Ultrix-4.2.
1992-10-20 07:03:38 +00:00
Stu Grossman
56fc16c70b * mips-nat.c (fetch_core_registers, register_addr): Copy from
coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
	backtraces from core files work.
	* config/decstation.mh, config/irix3.mh:  Remove coredep.o.
	Functions are now defined in mips-nat.c.
1992-10-20 05:47:47 +00:00
Stu Grossman
3ec5a74b0d * remote-hms.c: Disable all uses of serial_nextbaudrate and
serial_default_name().
1992-10-20 00:16:37 +00:00
Stu Grossman
5a6242dddd * remote-hms.c, ser-go32.c, serial.h: Change from
serial_timedreadchar() to new serial_readchar().
1992-10-19 23:40:36 +00:00
Stu Grossman
d95eb93075 * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones. 1992-10-19 22:12:50 +00:00
Per Bothner
10a297b791 * c-exp.y: Moved handling of 'const' and 'volatile' from
<type> to <typebase>.  This removes 2 conflicts.
1992-10-19 19:46:05 +00:00
Fred Fish
e6efef9f07 * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
from breakpoint table when reseting breakpoints.
1992-10-18 07:38:59 +00:00
Fred Fish
4d0eabff25 Native support cleanup and corefile fixes for i386 SVR4 systems.
* i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
	  fill_fpregset): Moved to i386v4-nat.c
	* i386v4-nat.c, nm-i386v4.h, :  New files.
	* i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE):  Use nm-i386v4.h.
	* i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES):  Add corelow.o,
	  change i386v-nat.o to i386v4-nat.o.
1992-10-17 08:07:14 +00:00
K. Richard Pixley
c36989aa95 misc 386 configs updated 1992-10-17 00:07:04 +00:00
K. Richard Pixley
f1a353db99 i386bsd cleanup 1992-10-16 23:49:43 +00:00
K. Richard Pixley
c7c9407366 i386v host/target/native separation 1992-10-16 23:39:34 +00:00
K. Richard Pixley
e24cb83d47 linux host/target/native separation 1992-10-16 23:11:13 +00:00
K. Richard Pixley
61bbb1c2cf sun386 host/target/native separation 1992-10-16 23:03:27 +00:00
K. Richard Pixley
a113beac21 i386mach host/target/native separation 1992-10-16 22:57:36 +00:00
K. Richard Pixley
d9548d448c go32 host/target/native separation 1992-10-16 22:49:35 +00:00
K. Richard Pixley
e367cb3b50 added nm-m88k.h to HFILES 1992-10-16 20:56:05 +00:00
K. Richard Pixley
173a4f1bda m88k native support 1992-10-16 20:53:46 +00:00