Commit Graph

2972 Commits

Author SHA1 Message Date
Stu Grossman
cac390d444 * remote-nindy.c: Install Kung patch for PR 6820. I have no idea
what this does...
1995-05-23 00:01:17 +00:00
Stu Grossman
f5a8f1a6f3 * breakpoint.c: Move defaults of watchpoint related macros into
target.h.
	* target.h:  Macros from breakpoint.c.  Conditionalize based on
	TARGET_HAS_HARDWARE_WATCHPOINTS.
	* i386v-nat.c procfs.c:  Use TARGET_HAS_HARDWARE_WATCHPOINTS
	instead of TARGET_CAN_USE_HARDWARE_WATCHPOINT to enable watchpoint
	code.
	* config/i386/nm-linux.h, config/mips/nm-irix4.h,
	config/pa/nm-hppab.h, config/sparc/tm-sparclite.h:  #define
	TARGET_HAS_HARDWARE_WATCHPOINTS to enable watchpoint code.
1995-05-22 23:03:42 +00:00
Jim Kingdon
e8bf33c4ac * breakpoint.c, target.h: Move defaults of watchpoint related
macros back to breakpoint.c.  Required to get GDB compiling
	on Solaris again.
1995-05-22 15:29:00 +00:00
Jim Kingdon
a5298c2aa2 * infrun.c (wait_for_inferior): Move assignments to stop_signal
and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
	were--after the switch statement on w.kind.  You can't read the
	registers of an inferior which has exited.  Use a goto in the
	STOPPED_BY_WATCHPOINT code.
	* infrun.c (wait_for_inferior): Reinstate
	HAVE_STEPPABLE_WATCHPOINT and HAVE_CONTINUABLE_WATCHPOINT code.
1995-05-19 17:51:22 +00:00
Jim Kingdon
73d3dbd4e6 * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
	stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
	must match the definition of PARAMS.
start-sanitize-gdbtk
        * gdbtk.c: Likewise.
end-sanitize-gdbtk
1995-05-19 14:15:48 +00:00
J.T. Conklin
85c613aaa7 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
          error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
          with an ANSI compiler.
        * complain.c (complain): Likewise.
        * language.c (type_error, range_error): Likewise.
        * monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
        * remote-array.c (printf_monitor, debuglogs): Likewise.
        * remote-mips.c (mips_error): Likewise.
        * remote-os9k.c (printf_monitor): Likewise.
        * remote-st.c (printf_stdebug): Likewise.
        * gdbtk.c (gdbtk_query): Likewise.

        * defs.h, complain.h, language.h, monitor.h: Add prototypes to
          match above changes.

        * printcmd.c: Remove uneeded #include <varargs.h>.
        * remote-e7000.c: Likewise.

        * f-typeprint.c (f_type_print_base): Fix typo found by above
          changes.
1995-05-18 23:45:31 +00:00
Jim Kingdon
fb49432789 * Makefile.in (xcoffread.o): Depend on partial-stab.h.
* xcoffsolib.c (sharedlibrary_command): New command.
	* xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
	* xcoffsolib.c: Miscellaneous cleanups.

	* partial-stab.h: Ignore symbol descriptor '-' (for local
	variables with negative type numbers) without complaint.

	* rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
	local emulation thereof.  Remove unused variable ostart.
1995-05-18 05:24:29 +00:00
J.T. Conklin
e61853ddc5 * Makefile.in (config.status): changed target so that
config.status --recheck is executed if configure script changes.
1995-05-18 01:01:57 +00:00
J.T. Conklin
eba0864375 * monitor.c (monitor_printf): Changed format specification in
error message to work with pre-ansi compilers.
  (monitor_load_srec): reduced length of s-records from 128 to 32
  bytes so download is more reliable with the rom68k monitor.

* rom68k-rom.c: Added trailing space to prompt string.

* config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
* config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
  Removed.
* defs.h, config/{xm-lynx.h, xm-nbsd.h},
  config/i386/{xm-i386bsd.h, xm-linux.h},
  config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
  config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
  (PSIGNAL_IN_SIGNAL_H): Removed.
1995-05-17 23:13:26 +00:00
J.T. Conklin
0a5a18215c * configure.in: Added INIT-CMDS argument to AC_OUTPUT which sets
gdb_host_cpu, gdb_target_cpu and nativefile.
* configure: regenerated.
1995-05-16 20:21:58 +00:00
Peter Schauer
943b7032ab * mdebugread.c (parse_symbol): Do not relocate stBlock/scText
symbols, their value is the displacement from the procedure address.
	* top.c (init_main):  Add missing newlines to help strings for
	`if' and `while' commands, fix help string for `show commands'.
1995-05-16 07:12:22 +00:00
Stu Grossman
75cbae716f * breakpoint.c: Move defaults of watchpoint related macros into
target.h.  Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
	constants.
	* infrun.c (wait_for_inferior):  Enhance comment near
	STOPPED_BY_WATCHPOINT.
	* target.h:  Macros from breakpoint.c.
1995-05-16 01:47:52 +00:00
J.T. Conklin
5436fc6578 * config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
  mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
  out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.

* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
Stan Shebs
dfd7f39535 * remote.c (remote_kill): Add prototype.
* cpu32bug-rom.c (cpu32bug_open): Properly define as static.
	* config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
1995-05-15 21:55:42 +00:00
Stu Grossman
24e1a4e0eb * sparclite/salib.c (win_ovf win_unf): Make window size constant
into a variable (__WINSIZE) so that it can be controlled via the
	.h file.
	* sparclite/sparclite.h:  Add SL933 #ifdef to set __WINSIZE to 6
	for the 933 board.
1995-05-15 21:17:36 +00:00
Stu Grossman
c66ed884ed * infrun.c: Add #ifdef HP_OS_BUG to all references to
trap_expected_after_continue.
	* (wait_for_inferior):  Fix for remote watchpoints.  Don't try to
	insert breakpoints while target is running (this only works on
	*some* native targets).  This may also speed up native watchpoints
	considerably.
1995-05-15 20:15:17 +00:00
Jim Kingdon
bbb053fd78 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc),
	xcoffread.c (struct symloc): Fix inaccurate comment introduced
	20 Apr 1995.
1995-05-13 21:03:23 +00:00
Jim Kingdon
f133a597e4 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc): Fix error
	in 20 Apr 1995 cleanup of comments.
1995-05-13 21:00:17 +00:00
Jim Kingdon
a367db8959 * rs6000-tdep.c (find_toc_address): Revise comment.
* symfile.c, symfile.h (init_psymbol_list): New function;
	consolidate duplicated copies from os9kread.c, dbxread.c
	and dwarfread.c.
	* defs.h: Declare info_verbose.
	* xcoffread.c: Extensive changes to support psymtabs.
1995-05-13 20:39:21 +00:00
Stu Grossman
511ffbf219 * cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element. 1995-05-12 20:52:11 +00:00
Jim Kingdon
48b2d07e4c * partial-stab.h: Expand comments. 1995-05-12 13:41:52 +00:00
Jeff Law
2d2959e852 * Support debugging using native MACH primitives on hppa*-*-osf*.
* configure.in: hppa*-*-osf* != hppa*-*-bsd* anymore.
	* config/pa/hppaosf.mh: New file.
	* config/pa/nm-hppao.h: Likewise.
	* hppam3-nat.c: Likewise.
	* config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
	(MACHINE_CPROC_*_OFFSET): Define.
	(TRACE_*): Define.
	(START_INFERIOR_TRAPS_EXPECTED): Delete definition.
1995-05-12 01:10:28 +00:00
Stu Grossman
d8afcce964 * hppa-tdep.c (read_unwind_info): Cosmetic cleanup.
* (unwind_command):  Clean it up and make it print things out
	nicer.
	* monitor.c:  Add ^C handling capability (mostly ripped off from
	remote.c).
	* (monitor_printf):  Make it check the command echo.
	* (monitor_printf_noecho):  Similar to above, but doesn't check
	for echo.
	* (monitor_stop):  No longer waits for prompt.  That is the job of
	the caller.  This makes things work much better for monitor_wait,
	which waits for the prompt itself.
	* (monitor_open):  Deal with new monitor_stop semantics.  Also,
	flush input after sending init strings to get rid of junk that may
	be output.  Also, don't always send \r to remote.  Use
	monitor_ops->line_term cuz proper character isn't always \r.
	* (monitor_fetch_register):  Switch to completely different
	algorithm to deal with lame-ass monitors which put spaces in the
	middle of numbers, and prompt with a space!!!!!
	* (monitor_read_memory_single):  New routine to be used with
	monitors that can only return one byte/short/long at a time.  This
	is selected via MO_GETMEM_READ_SINGLE.
	* (monitor_load_srec):  Use monitor_printf_noecho for sending S
	records.  Most targets don't echo them.
	* (monitor.h):  Get rid of cmd_delim.  Add line_delim.
	* op50n-rom.c (op50n_cmds):  Fill it up.  Make it work.
	* w89k-rom.c:  Change all eols from \r to \n.  Change load_resp to
	^Q to prevent error message.
	* config/pa/tm-hppa.h (CALL_DUMMY (for hppro)):   Add special
	instruction sequence at end to make restore_pc_queue happy.
1995-05-11 02:26:00 +00:00
Torbjorn Granlund
bec6c6db22 remote-est.c (est_open): Make static to match prototype. 1995-05-10 23:02:46 +00:00
Michael Meissner
c7b44b0425 Add little endian PowerPC support. 1995-05-09 21:07:06 +00:00
J.T. Conklin
7e1bfb70aa * nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed.
These variables not used.
1995-05-08 20:16:37 +00:00
J.T. Conklin
5e3f4eac6b * config/m68k/monitor.mt (TDEPFILES): Added cpu32bug-rom.o. 1995-05-08 19:18:31 +00:00
Stan Shebs
774e5d7f64 * monitor.c (monitor_command): Don't use PROMPT until monitor
target is known to be open.
	(monitor_make_srec): Don't define size of hextab.
1995-05-04 01:00:29 +00:00
Stu Grossman
e2bc2606ae * array-rom.c (_initialize_array array_open): Move baud_rate
initialization from _initxxx to array_open to fix bug with
	overriding -b command line option.
1995-04-29 06:34:44 +00:00
David Edelsohn
ad0c0b7ffd * Makefile.in (RUNTEST): Fix reference of `srcdir'. 1995-04-28 03:32:06 +00:00
Steve Chamberlain
5d747d616f Wed Apr 26 19:01:08 1995 Steve Chamberlain <sac@slash.cygnus.com>
* remote-hms.c: Rewrite to use new monitor conventions.
1995-04-27 02:07:44 +00:00
Jim Kingdon
0f60fbb84e Add comment regarding stringtab_global and psymtabs. 1995-04-25 22:58:03 +00:00
Jim Kingdon
ab52cc44ba * dbxread.c: Add comment explaining lowest_text_address. 1995-04-25 18:31:31 +00:00
Jeff Law
87e33b8480 * config/pa/tm-hppa.h (EXTRACT_STRUCT_VALUE_ADDRESS): Fix. 1995-04-22 07:51:21 +00:00
Jeff Law
4a8b575e62 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Rewrite to correctly
handle "short", "int" and small structures returned in registers.
1995-04-22 07:42:36 +00:00
Kung Hsu
cdd2212f75 * minsyms.c: add new function lookup_minimal_symbol_text, to look
for text symbol only.
	* breakpoint.c (create_longjmp_breakpoint): call
	lookup_minimal_symbol_text instead of lookup_minimal_symbol.
	* symtab.h: add lookup_minimal_symbol_text prototype.
1995-04-21 20:02:50 +00:00
Stan Shebs
66d05e03ad * sh-tdep.c (sh-opc.h): Don't include.
(gdbcore.h): Include.
	(frame_find_saved_regs): Remove unused local.
1995-04-21 19:09:01 +00:00
Jim Kingdon
989d9cbac8 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc): Clean
	up comments.
1995-04-21 13:19:22 +00:00
Stu Grossman
7486c68d68 * hppa-tdep.c (deposit_17): New routine to deposit 17 bit
constants into PA instructions.
	* Put #ifdefs around all signal handling code.  Not generally
	needed for embedded boards.
	* (hppa_fix_call_dummy):  Parameterize offsets into call dummy to
	allow different dummys to be used by this code.  Use
	INSTRUCTION_SIZE instead of REGISTER_SIZE for things.
	Conditionalize setup of _sr4export fixup.  Improve comments.
	* config/pa/tm-hppa.h:  Define INSTRUCTION_SIZE.  Use a different
	call dummy if PA_LEVEL_0 is defined.  Better comments for call
	dummys.  Define offsets for LDIL/LDO instructions which load
	function addresses.
	* config/pa/tm-pro.h:  Get rid of signal handling stuff.  Define
	PA_LEVEL_0 to disable mucking with space regs and such.
1995-04-20 00:15:14 +00:00
Stu Grossman
fe4bce98e0 *** empty log message *** 1995-04-17 06:32:32 +00:00
Jim Kingdon
515587409e * rem-multi.shar: Removed; superceded by gdbserver. 1995-04-16 01:03:11 +00:00
Jim Kingdon
e2adc41a31 * xcoffread.c (xcoff_sym_fns): Revise comment about merging this
with coffread.c.

	* breakpoint.c (fixup_breakpoints): Removed.
	* rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
	(vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.

	* coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
	sections, not just SECT_OFF_MAX-1.

	* rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
	to be indexed by SECT_OFF_* instead of xcoff section numbers.
	* objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
	* symtab.h: Revise comment about block_line_section.
	* rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
1995-04-16 00:53:31 +00:00
Stan Shebs
8befb59469 * mpw-make.in (init.c): Don't try to do symbolic {o} in sed
command, not allowed by some version of MPW Make.
	* ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
1995-04-15 21:22:14 +00:00
Jim Kingdon
b3636ee55e Sat Apr 15 14:05:09 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
* alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
	VALUE_TYPE).  Do the cast for TYPE_CODE_BOOL, TYPE_CODE_CHAR,
	TYPE_CODE_ENUM, and TYPE_CODE_RANGE as well as TYPE_CODE_INT.

Sat Apr 15 14:04:32 1995  Per Bothner  <bothner@cygnus.com>

	* alpha-tdep.c (alpha_push_arguments): Only cast to long for
	TYPE_CODE_INT.
1995-04-15 21:13:08 +00:00
Stan Shebs
d7c4766c8c * gdbtk.c (gdb_disassemble): Read from inferior if connected
to a VxWorks target.
1995-04-15 21:01:31 +00:00
Stu Grossman
6fd934a698 * README.GDBTK: New file. Contains the obvious. 1995-04-14 17:20:29 +00:00
Rob Savoye
3e437fe639 * remote-array.c: New file for Array Tech LSI33k based controller
board.
1995-04-13 22:17:54 +00:00
Kung Hsu
546e6a3955 * a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
extract_address.
        * remote-vxsparc.c: New file, preliminary check in, this configuration
        not supported yet.
        * remote-vxmips.c: ditto.
1995-04-13 19:37:57 +00:00
Stan Shebs
d108166fde * monitor.h (init_monitor_ops): Declare.
* rom68k-rom.c: Clarify some comments.
	(rom68k_open): Define as static, to match decl.
1995-04-13 01:23:53 +00:00
Jim Kingdon
56b73ad2e3 * gdb.gdb: New file.
* .gdbinit: Move list-objfiles to gdb.gdb.
1995-04-13 00:46:52 +00:00
Jim Kingdon
ade016526a * values.c (set_internalvar): Set modifiable flag of newval. 1995-04-13 00:36:37 +00:00
Jim Kingdon
f8203ed005 * xcoffread.c: Call complain() rather than error() or printing a
warning.
1995-04-12 22:17:41 +00:00
David Edelsohn
32513ed10d ARC stuff. 1995-04-12 15:46:23 +00:00
Jim Kingdon
88a5c3fc6b * rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
symfile_objfile, nuke it.
1995-04-12 04:42:05 +00:00
Jim Kingdon
0c0c911b03 * top.c, utils.c, defs.h: Remove error_hook. It is currently
unused and would need to hook into error_begin()/return_to_top_level(),
	instead of error(), if it were to be used.
1995-04-12 00:16:35 +00:00
Jim Kingdon
8989d4fc4b * utils.c, defs.h (warning_begin): Renamed from warning_setup, for
consistency with error_begin.  Also print warning_pre_print.
	Document it better.
	* utils.c (warning): Use it.
	* utils.c (error_begin): Doc fix.
	* rs6000-nat.c (vmap_ldinfo): If symfile_objfile is not part of
	any vmap, nuke it.
1995-04-11 22:26:14 +00:00
Jim Kingdon
f1cd942d08 * printcmd.c (print_address_numeric): Pass use_local to
print_longest, rather than always passing 1.
1995-04-11 18:57:57 +00:00
Jim Kingdon
0b0785402d * nlm/Makefile.in: Remove comments discussing munch. 1995-04-11 16:39:37 +00:00
Michael Meissner
45f90c50d3 Use F_SETOWN if SIOCSPGRP is not available. 1995-04-11 15:14:07 +00:00
Stan Shebs
cb5aa38b34 Merge MPW ChangeLog in with generic ChangeLog 1995-04-11 01:55:20 +00:00
Kung Hsu
73dab896d4 * valprint.c (print_longest): Fix a syntax error in #ifdef
PRINTF_HAS_LONG_LONG.
1995-04-11 00:04:41 +00:00
Kung Hsu
c08c3640c7 * config/mips/xm-irix5.h: turn on CC_has_LONG_LONG and
PRINTF_HAS_LONG_LONG.
	* config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
1995-04-10 23:53:52 +00:00
Peter Schauer
4127057156 * mdebugread.c (parse_symbol): Use new variable
nodebug_var_symbol_type as type of variables which don't have any
	ecoff debug info associated with them.
	(parse_symbol, parse_procedure):  Use heuristics to determine if
	functions were compiled without debugging info and change their
	type to nodebug_function_symbol_type.
	(_initialize_mdebugread):  Initialize nodebug_*_symbol_type.

	* source.c (line_info):  Clear sal.pc for `info line' without
	arguments.
1995-04-08 09:59:02 +00:00
Stu Grossman
0ac704d288 * config/pa/tm-hppa.h: Define lots register offsets needed by
w89k-rom.c.
1995-04-08 01:10:34 +00:00
Stu Grossman
7952bce6fc * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
send_xmodem_packet shows up to do the obvious.  Lots of fixes to
	xmodem downloads including resetting of block number at start of
	new transfers, fix for buffer overrun problem, addition of CRC
	generation code.
	* (monitor_open):  loadtype_str and loadproto_str now default to
	first entry in monitor_ops->loadtypes.
	* (monitor_wait):  Lengthen register dump buf, because of verbose
	Winbond monitor.
	* (monitor_fetch_register):  Report unimplemented registers as 0.
	* (monitor_read_memory):  Only do 16 byte aligned transfers
	because of formatting weirdness with the Winbond monitor.  Also,
	ignore non-hex, non-whitespace formatting between bytes (same
	monitor).
	* (monitor_load):  Clean up logic.
	* (monitor_load_srec):  Re-do xmodem support.  Move lots of it
	into send_xmodem_packet.
	* (getacknak):  Get rid of polls and timeouts.  Handle CRC
	requests from receiver.
	* (monitor_make_srec):  Efficiency improvements.  Don't call
	sprintf to output two digit hex numbers.
	* (crcinit, docrc):  New, CRC-16 support routines.
	* (send_xmodem_packet):  New routine to generate either CRC-16 or
	checksummed xmodem packets.

	* remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
	Reduce tables down to only the load types supported by each
	monitor.

	* w89k-rom.c  (w89k_supply_register):  Parses output of Winbond
	register dumps.
	* (w89k_loadtypes, w89k_loadprotos):  Reduce to just srec/xmodem.
	* (w89k_cmds):  Add clear all breakpoints, memory fill, and dump
	registers commands.
1995-04-08 01:05:01 +00:00
Michael Meissner
77a8995732 Initial Linux ELF support. 1995-04-06 21:08:05 +00:00
Jim Kingdon
8066e4344e * mips-tdep.c (mips_print_register): Remove unused variable
our_type and call to init_type.  Fixes memory leak.  Reindent function.

	* mips-tdep.c (mips_print_register), findvar.c
	(write_register_bytes): Make buffer char[] instead of unsigned
	char[].
1995-04-06 03:03:12 +00:00
Jim Kingdon
dee803840d * top.c, utils.c, main.c: Replace error_pre_print with two
variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
	(for RETURN_QUIT).  Fixes a bug whereby typing ^C (e.g. in "maint
	print sym") could output extraneous stuff.
	* objfiles.c: Don't declare error_pre_print; defs.h does it.
1995-04-04 20:07:21 +00:00
Peter Schauer
576c39135f * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
Handle relocated symbol address.
	* partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
	Do not relocate a zero address.
1995-04-01 11:24:43 +00:00
Jim Kingdon
7c7c4f0a22 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
is nowhere used.
1995-03-31 03:58:27 +00:00
Jim Kingdon
23a1346e20 * stabsread.c (read_range_type): Remove FIXME comment about
type-id (I presume this meant a number followed by = followed by a
	type) versus type number; Per fixed it.
1995-03-31 03:52:28 +00:00
Stu Grossman
194559c48a Move testsuite entries into testsuite/ChangeLog. 1995-03-30 18:00:19 +00:00
Stan Shebs
1e1dd17536 Wed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
1995-03-30 03:09:35 +00:00
Stan Shebs
a2f0cf2f40 * remote-e7000.c (why_stop): Add new kinds of strings to expect
from the emulator.
	(e7000_wait): Add interpretations for more stop reasons,
	including warnings for write protect and cycle address errors.
1995-03-30 02:43:50 +00:00
Stu Grossman
a706069fdb start-sanitize-gdbtk
* Makefile.in (gdbtk.o):  Use X11_CFLAGS to provide alternate
	locations (per-host) for X11 include files.
	* config/pa/hppahpux.mh (XM_CLIBS):  Add -L/usr/lib/X11R5 to force
	the use of R5 libs.  (X11_CFLAGS):  Add this to indicate the locs
	of the R5 include files.
end-sanitize-gdbtk
	* monitor.c monitor.h remote-est.c rom68k-rom.c:  Add start of
	support for interrupting target.
	* monitor.c (monitor_open):  Send stop command before doing
	anything else.
	* (monitor_load_srec):  Fix record size calculation to prevent end
	of segment from getting trashed.
	* rom68k-rom.c:  Update to latest version of struct monitor_ops.
	* config/sparc/tm-sparc.h (FIX_CALL_DUMMY):  Fix byte-order
	problems.  Makes DOS hosted function calling work.
	* sparclite/crt0.s:  Define _start to make COFF happy.
	* testsuite/config/rom68k.exp (gdb_target_rom68k):  Use
	$targetname, $serialport and $baud instead of hardwired variables.
	* testsuite/gdb.base/{sigall.exp signals.exp}:  Skip these if the
	target doesn't support signals.
1995-03-30 01:47:32 +00:00
Michael Meissner
3e8fdb61ce Do not declare atof if it is a macro. 1995-03-29 14:13:43 +00:00
Peter Schauer
e137e850dc * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
	tests.
1995-03-29 08:16:05 +00:00
Per Bothner
e55a579687 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
set, set TYPE_FLAG_TARGET_STUB.
	(check_stub_type):  Recalculate TYPE_LENGTH for range type.
	* stabsread.c (read_range_type):  If index type number is followed
	by '=', back up, call read_type. and assume we have a true range.
	* gdbtypes.h (TYPE_FLAG_TARGET_STUB):  Update comment.
This fixes PR 6632.
1995-03-29 01:11:45 +00:00
Peter Schauer
3f403f6ab3 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
sparc-tdep.c (supply_gregset, supply_fpregset):  Fill inaccessible
	registers with zero to handle recent read_register_bytes change.
	* irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
	fill_gregset):  Fix handling of CAUSE_REGNUM.
	* mips-nat.c (store_inferior_registers):  Handle unwritable
	registers when storing a single register.
	* config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
	Fix definitions.

	* mdebugread.c (parse_symbol, psymtab_to_symtab_1):  Clear
	allocated mips_extra_func_info, if the debug info is corrupt,
	the PDR to fill it in might be missing.
1995-03-28 06:57:39 +00:00
Kung Hsu
3b94a0b871 * vx-share/regPacket.h: a new file interfacing with vxworks. 1995-03-27 22:47:04 +00:00
Jim Kingdon
d582898a7d * breakpoint.c (bpstat_do_actions): Once we've executed the
commands, set bs->commands to NULL.
1995-03-26 21:39:51 +00:00
Peter Schauer
b9e585030c * buildsym.c (patch_subfile_name): Update last_source_file
with the real source file name.
	* dbxread.c (end_psymtab):  Handle static functions in the
	SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
	to lookup_minimal_symbol.
	(process_one_symbol):  Ignore extra outermost context from
	SunPRO cc and acc.
	* stabsread.c (define_symbol):  Do not complain for SunPRO
	static variable encoding if STATIC_TRANSFORM_NAME is defined.
	* sparc-tdep.c, config/sparc/tm-sun4sol2.h
	(sunpro_static_transform_name):  Renamed from
	solaris_static_transform_name.
	* config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
	Define to sunpro_static_transform_name for acc 3.0 compiled
	executables.
	* procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
	Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
	if defined.
	* procfs.c (info_proc_siginfo):  Cast sip->si_addr to
	`unsigned long' and use `lx' format for printing it.
1995-03-25 09:23:10 +00:00
Jeff Law
9bfed1ee34 * somsolib.c (som_solib_add): Handle case where a shared library
referenced by a core file has sections without the SEC_ALLOC bit
        set (eg stabs sections).
1995-03-24 06:21:44 +00:00
Jim Kingdon
1c04536e70 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
chain, do all the commands regardless of whether they run the
	inferior.
1995-03-23 23:35:00 +00:00
David Edelsohn
aa949c081f * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
BREAKPOINT if mono-endian.
	(break_insn): Deleted.
	(big_break_insn, little_break_insn): Define.
	(memory_insert_breakpoint): Handle bi-endian cpus.
	(BREAKPOINT_LEN): Define.
	(memory_remove_breakpoint): Use it.
	(memory_breakpoint_size): Likewise.
1995-03-23 03:39:24 +00:00
Kung Hsu
9cc2cd4f7a * sparc-stub.c: add nop after 'bg good_wim'.
* sparcl-stub.c: ditto.
1995-03-22 01:06:36 +00:00
Jim Kingdon
1968ed139f * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
1995-03-21 21:59:03 +00:00
Stu Grossman
efe4e52d90 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
dump handling.
1995-03-20 23:41:51 +00:00
Jeff Law
e6059f4aaf * hppab-nat.c (store_inferior_registers): Sync with HPUX version. 1995-03-20 17:11:35 +00:00
Stu Grossman
a15f6b0a8e * hppah-nat.c (store_inferior_registers): Move check for
CANNOT_STORE_REGISTER to a better place.  Fixes ptrace I/O errors
	found by test suite during function calls, which attempts to write
	unwritable registers.
1995-03-20 15:38:56 +00:00
Peter Schauer
5c26250b95 * mdebugread.c (parse_symbol): If finishing a function without
known parameter type info, set that from parameter symbols.
	Remove commented-out add_param_to_type support.
1995-03-18 13:16:51 +00:00
J.T. Conklin
334655aae9 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
as it is not available on NetWare 3 or PIN.
* nlm/ppc.c (StopBell): Removed.
1995-03-17 00:03:11 +00:00
Jim Kingdon
d1f14b46bd * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
inferred from the traceback tags, give its type the name
	"<non-float parameter>".
1995-03-16 22:45:35 +00:00
Jim Kingdon
8367c66b2d * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34. 1995-03-16 20:37:09 +00:00
Stu Grossman
2081365ffa * findvar.c (read_register_bytes write_register_bytes): Make
these routines much smarter about updating registers from the
	target, only doing so when absolutely necessary.  This really
	speeds up register modification on some remote targets.

	* monitor.c:  More cleanups.  Get rid of monitor_load_ascii_srec.
	BFD makes this unnecessary.  Lots of debugging speedups.
	* (expect):  NULL terminate return string.
	* (monitor_open	monitor_supply_register parse_register_dump
	monitor_wait monitor_fetch_register):  Switch to using GNU regexp
	library to parse multi-register displays.
	* (monitor_read_memory): Read multiple bytes (up to 16) at once.
	* (monitor_create_inferior):  Call clear_proceed_status to make run
	command notice first breakpoint.
	* (monitor_load):  Clean up.  Reset inferior_pid, set pc to start
	address and reset symbol table stuff to make loads put things into
	a fresh state.
	* (monitor_load_srec):  Lower sleep time to 1 second.

	* monitor.h (struct monitor_ops):  Add register_pattern and
	supply_register to monitor_ops.

	* rom68k-rom.c:  Add new support for handling register dumps.
1995-03-15 23:31:14 +00:00
Jim Kingdon
a7f6f40b3c * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
argument be an int, not a char.  Using a prototype followed by an
	old-style function definition in a case where an argument is
	widened is a GCC-ism not supported by the native AIX compiler.
1995-03-15 23:24:24 +00:00
J.T. Conklin
a64bbacfc8 * configure.in (alpha-*-netware*): Removed configuration. 1995-03-15 22:36:46 +00:00
J.T. Conklin
68c1bc9ca1 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
long ago.

* config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
* nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
  alpha.c, alpha.h, altdebug.h}: Removed.
1995-03-15 21:24:56 +00:00
J.T. Conklin
b1dda26e87 * nlm/gdbserve.c (main): Add support for processing BOARD=
argument, deprecate NODE=.
1995-03-15 21:07:10 +00:00
Jim Kingdon
961b8ebd27 * c-exp.y (yylex): Make an empty character constant an error. 1995-03-15 19:18:26 +00:00