Commit graph

4473 commits

Author SHA1 Message Date
Jim Kingdon
f6d5d0061c * target.c (push_target): Cast result from xmalloc. 1994-07-27 05:10:52 +00:00
Stan Shebs
beb773f39f * gdbint.texinfo: Removed mentions of many obsolete conditionals,
described or fixed the descriptions of many others.
1994-07-27 01:35:46 +00:00
Stan Shebs
d54b2c5069 Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
* elfread.c (elf_symtab_read): Discard compiler labels generated
	by the Solaris 2.1/Intel SunPro compiler.
1994-07-26 22:22:38 +00:00
Peter Schauer
d938d0f96a * gdb.base/corefile.exp: Change else if' to elseif', which is
the correct TCL syntax.
1994-07-26 06:52:38 +00:00
Stu Grossman
4fc5969d1d * target.c (nomemory): Fix prototype and routine to take correct
args.
1994-07-26 01:21:04 +00:00
J.T. Conklin
08104d73b8 * gdb.base/opaque.exp: use runto instead of messing around with
breakpoints.

* gdb.base/bitfields.exp: restart between tests on netware targets
  because breakpoints aren't relocated after target death.  Run
  processes to completion.

* gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
1994-07-25 23:35:10 +00:00
J.T. Conklin
a488d496ec * gdb.base/opaque.exp: use runto instead of messing around with
breakpoints.
1994-07-25 23:34:23 +00:00
Jim Kingdon
1ded65d1aa * Makefile.in (clean): Remove libgdb-files. 1994-07-25 22:43:29 +00:00
Stan Shebs
9a989b1f61 * coredep.c: Include inferior.h. 1994-07-25 18:55:22 +00:00
J.T. Conklin
159f3816fd * Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
* i386-nlmstub.c: Add support for NODE, PORT and BAUD command
  line arguments.
1994-07-25 18:45:14 +00:00
Fred Fish
dedd81f159 * Makefile.in: Remove extra tabs that confuse some versions
of "make".  Use the newly built gdb to test with by default,
	rather than the first one in the tester's search path.
1994-07-24 16:56:45 +00:00
Stan Shebs
73e484b44a * gdb.base/whatis.exp (v_signed_short_array): Fix a typo. 1994-07-23 23:24:05 +00:00
Stan Shebs
9e38b2fa8d * symfile.c (deduce_language_from_filename): Recognize .S as asm,
.cp as C++, alphabetize better.
1994-07-23 22:56:46 +00:00
Stan Shebs
a924cf196d * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
condition help.
1994-07-23 22:09:34 +00:00
Stan Shebs
557f3a0e60 * breakpoint.c (ignore, condition): Move usage note into body of
help text, so first line can be one-line summary.
1994-07-23 22:01:44 +00:00
Stu Grossman
67e947deb2 * target.c (unpush_target): Fix handling of removal of top target. 1994-07-23 08:01:09 +00:00
Stu Grossman
cad1498f8a * Makefile.in: Add stuff to build nlmstub.
* Add rule for annotate.o to keep Sun make happy.
	* configure.in:  Add config for powerpc/Netware.

	* partial-stab.h (near N_SO):  Don't call START_PSYMTAB with null
	filename.  This speeds up handling of trailing N_SO stabs (they
	mark the end of a .o file).

	* target.c, target.h:  Change the way pushing and popping of
	targets work to support target overlays and inheritance.
	* corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
	Fixup references to current_target, due to previous changes.

	* config/i386/tm-i386nw.h:  Enable longjmp support.  More work is
	needed to get the address of longjmp out of the target.
1994-07-23 00:53:28 +00:00
J.T. Conklin
316567f0ff Upgraded to use gdb_test. 1994-07-22 21:14:03 +00:00
J.T. Conklin
fafc71bab7 Use gdb_run_cmd 1994-07-20 17:38:05 +00:00
J.T. Conklin
959fea03b5 Changed pattern in gdb_run_cmd to match up to the first newline only.
The old pattern used ".*$", which could, and did, swallow up output
that we were attempting to match elsewhere.
1994-07-20 17:29:02 +00:00
J.T. Conklin
4f2ec2eeb8 New implementation of gdb_run_cmd which fixes some subtle bugs. 1994-07-20 16:40:08 +00:00
J.T. Conklin
412c988b1d Temporarily back out last change 1994-07-20 01:03:24 +00:00
J.T. Conklin
b34c14fb19 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd. 1994-07-19 22:57:49 +00:00
J.T. Conklin
27b4d34f08 * gdb.base/funcargs.exp: Use gdb_run_cmd to start program. 1994-07-19 22:57:29 +00:00
J.T. Conklin
4704ece79f * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
* gdb.base/funcargs.exp: Use gdb_run_cmd to start program.
1994-07-19 22:57:13 +00:00
J.T. Conklin
809943cfa9 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
running.
1994-07-19 22:19:41 +00:00
J.T. Conklin
c5ea7f99a4 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program. 1994-07-19 22:19:25 +00:00
J.T. Conklin
3236e9849d * lib/gdb.exp (gdb_run_cmd): New function, used to start program
running.
* gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
1994-07-19 22:18:48 +00:00
J.T. Conklin
940423347b Mostly converted to use gdb_test proc. 1994-07-19 21:42:58 +00:00
J.T. Conklin
7e63dc5fb2 This config file didn't belong here 1994-07-19 21:33:15 +00:00
Stan Shebs
844750e31e * main.c: Include <ctype.h>. 1994-07-19 20:28:00 +00:00
J.T. Conklin
3e304ddfab * gdb.base/bitfields.exp: Simplify by using delete_breakpoints and
gdb_test.
* lib/gdb.exp (gdb_test): if match times out, don't call fail if
  message is "".
1994-07-19 17:33:52 +00:00
Kung Hsu
b0a0ee5272 Modified Files:
remote-mips.c ChangeLog

        * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
        prompt.
1994-07-18 22:35:33 +00:00
J.T. Conklin
98f6da4f02 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
return,signals,twice}.exp: Handle non-existant binaries
  consistantly.
1994-07-18 22:27:07 +00:00
Stan Shebs
b0fbe5a26d (is there an echo in here?)
* solib.c (look_for_base): Don't deref exec_bfd if NULL.
1994-07-18 21:37:18 +00:00
J.T. Conklin
8f2d75fcf4 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
* gdb.base/Makefile.in: Don't try to generate a core dump, we
  might testing a cross development system.
1994-07-18 19:25:50 +00:00
Fred Fish
005234f563 (This is the change that should have gone in the main tree ...)
* Makefile.in (VERSION):  Bump to 4.12.4.
1994-07-17 23:08:07 +00:00
Fred Fish
0f221a6949 * Makefile.in (VERSION): Bump to 4.12.85. 1994-07-17 22:40:25 +00:00
Stan Shebs
356bc67bc5 * gdb.texinfo: Add some more credits.
* gdbint.texinfo: Capitalize GDB consistently, describe some
	macros and remove some.
1994-07-17 21:17:23 +00:00
Stan Shebs
f66c90b6bf * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
* config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
	consistently.
1994-07-17 21:10:21 +00:00
Stan Shebs
670a8e09e9 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
* configure.in (m88*-harris-cxux*): New configuration.
	* cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
	config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
	New files.
	* config/m88k/tm-m88k.h: Add comment about Harris OS.
	(TARGET_WRITE_PC): Pass pid through to register writers.

	* configure.in (m68*): Put vendor-only-specified host configs
	after vendor-and-os-specified configs.
	(m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
1994-07-17 21:08:42 +00:00
Peter Schauer
00306b1e9e * elfread.c (elf_symtab_read): Handle error return from
bfd_get_dynamic_symtab_upper_bound gracefully.
1994-07-17 06:42:14 +00:00
Stan Shebs
62a5dabced * inferior.h (ARCH_NUM_REGS): New macro, actual number of
registers in use by the inferior.
	* coredep.c (fetch_core_registers, register_addr): Use it.
	* findvar.c (registers_changed, registers_fetched,
	read_register_bytes): Ditto.
	* infcmd.c (do_registers_info, registers_info): Ditto.
	* infptrace.c (fetch_inferior_registers,
	store_inferior_registers): Ditto.
	* stack.c (frame_info): Ditto.

	* coredep.c (CORE_REGISTER_ADDR): New macro.
	(fetch_core_registers): Use it.
1994-07-17 00:00:36 +00:00
Stan Shebs
49b476bd20 * breakpoint.c (ignore, condition): Add usage notes to help strings.
* symfile.c (add-symbol-file): Add usage note to help string.
	(add_shared_symbol_files_command): New command.

	gcc -Wall lint.
	* inferior.h (read_pc_pid): Declare.
	* breakpoint.c (watchpoint_check): Cache breakpoint in local
	variable b, remove unused variable other_type_used.
	* main.c (inferior.h, call-cmds.h): Include.
	(gdb_init): Declare.
	* remote.c (remote_wait): Return 0 by default.
1994-07-16 22:57:23 +00:00
Stan Shebs
0568ccb0ac Stop printing at null char option, from Oliver Meyer
(omeyer@i3.informatik.rwth-aachen.de).
	* valprint.h, valprint.c (stop_print_at_null): New global.
	* valprint.c (_initialize_valprint): New print set subcommand
	"null-stop".
	* c-valprint.c (c_val_print): If stop_print_at_null is on, and
	printing a char	array, adjust the number of chars to print.
1994-07-15 23:53:04 +00:00
Stan Shebs
08f32e322b From Kevin A. Buettner (kev@cujo.geg.mot.com).
* m88k-tdep.c (examine_prologue): Modified to handle prologues for
	pic code in addition to prologues where an instruction from the
	prologue gets moved into the delay slot of a branch instruction
	immediately following the prologue.  A table of potential prologue
	instructions (prologue_insn_tbl) is now used for picking apart a
	function prologue.
	(frame_find_saved_regs): Changed the way in which limit gets set
	so that the delay slot of branch instructions immediately
	following the prologue gets examined.
	(pushed_size, store_parm_word, store_parm, push_parameters,
	collect_returned_value):  Deleted.
1994-07-15 21:37:30 +00:00
Peter Schauer
0b0ee55e42 * infrun.c (wait_for_inferior): Handle stepping into leaf
functions whose prologue consists of gp loading code only.
1994-07-15 08:15:13 +00:00
Stan Shebs
cdc647da07 * gdbint.texinfo: Removed mentions of many incorrectly placed and
obsolete conditionals, described some others.
1994-07-15 01:48:01 +00:00
Stan Shebs
802a2b00a9 * gdb.base/signals.exp: Allow for optionality of breakpoint
address.
1994-07-14 22:37:53 +00:00
Stan Shebs
8e3ff82354 * dbxread.c: Don't include libbfd.h.
* dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
	<time.h>, or <sys/types.h>.
	* elfread.c (elf_symfile_read): Use only standard BFD functions to
	collect information about the stab and stab string sections.
1994-07-14 21:34:09 +00:00
Kung Hsu
8dbe58d843 Modified Files:
stabsread.c ChangeLog

        * stabsread.c (read_huge_number): handle large unsigned number
        for stabs generated by os9k C compiler.
1994-07-14 20:20:49 +00:00
Jim Kingdon
7f5f5630fc * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test. 1994-07-14 18:31:46 +00:00
Stan Shebs
9f5772857f Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com).
* breakpoint.h (hit_count): New breakpoint field.
	* breakpoint.c (show_breakpoint_hit_counts): New variable.
	(clear_breakpoint_hit_counts): New function.
	(bpstat_stop_status): Increment the hit count.
	(breakpoint_1): Display the hit count.
	* infcmd.c (run_command): Reset breakpoint hit counts.
	* target.c (generic_mourn_inferior): Don't clear ignore counts if
	displaying hit counts.
1994-07-14 02:15:39 +00:00
J.T. Conklin
6380e4d28e Minor tweaks 1994-07-12 22:23:25 +00:00
J.T. Conklin
cdb181cb64 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
for size_t definition.
* gdb.c++/templates.cc: Likewise
1994-07-12 21:56:28 +00:00
J.T. Conklin
c14cb8ce80 * config/mt-i386-netware: New file. 1994-07-12 20:12:01 +00:00
J.T. Conklin
f3c8d0971b * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
defined.
1994-07-12 20:07:49 +00:00
J.T. Conklin
29a3db493f * gdb.base/Makefile.in: Added support for systems that name core
files by appending "core" to the program name.
* gdb.base/a1-selftest.exp: Likewise.
1994-07-12 19:33:37 +00:00
Peter Schauer
a4ae37021c * gdb.texinfo (help targets): Changed to `help target', which
is the correct gdb command.
1994-07-12 19:30:14 +00:00
Peter Schauer
6d9b8a93f9 * elfread.c (elf_symfile_read): Unconditionally add dynamic
symbols for all symbol files.  Makes skipping over the
	trampoline code work when stepping from a function in a shared
	library into a function in a different shared library for Irix 5.
	Other ELF targets do not have enough information in their
	dynamic symbol tables to make this work.
	(elf_symtab_read):  Relocate mst_solib_trampoline address.
1994-07-12 19:29:04 +00:00
Peter Schauer
c3ac803fe6 * gdb.base/return.exp: Add comment and message for `return double'
test failure on Sparc Solaris.
1994-07-12 07:04:15 +00:00
Stan Shebs
08df328495 Various updates 1994-07-12 01:43:09 +00:00
Stan Shebs
02176ddb29 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
* configure.in (m68*-atari-sysv4*): New configuration.
	(m68*-cbm-sysv4*): Use m68kv4 instead of amix.
	* m68k-tdep.c (R_PS): Define as R_SR if necessary.
	* config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
	config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
	* config/m68k/amix.mh, config/m68k/amix.mt,
	config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
	by m68kv4 files.
1994-07-12 00:36:42 +00:00
Peter Schauer
defa6c748a * symtab.c (find_function_start_sal): New function to find
the start of a function from a function symbol.
	(decode_line_1, decode_line_2):  Use it instead of open coded
	partial copies of the code.
	(list_symbols):  Quote symbol name before passing it to
	break_command to enable proper handling of mangled symbols.
1994-07-09 23:30:21 +00:00
Per Bothner
ad86f71799 * ch-exp.y (match_simple_name_string): Don't lower-case here.
* ch-exp.y (yylex):  First try name lookup using exact name
	typed by user;  if that fails, try lower-cased name.
1994-07-07 03:27:48 +00:00
Peter Schauer
cef0333efd * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
Move "no debugging symbols found" test to symfile.c.
	* symfile.c (syms_from_objfile, reread_symbols):  Add
	"no debugging symbols found" test.
	* coffread.c (init_stringtab):  Handle stripped files with a
	stringtab offset of zero gracefully.
	* osfsolib.c (solib_create_inferior_hook):  Use DYNAMIC flag from
	BFD instead of stop_pc heuristic to determine if it is a dynamically
	linked object file.
	* procfs.c (wait_fd):  Handle ENOENT error return from PIOCWSTOP
	ioctl, it indicates that the process has exited.
1994-07-06 08:01:52 +00:00
Jeff Law
0fc2728985 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
.PARISC.unwind section now.
1994-07-05 01:32:46 +00:00
Stan Shebs
51684caad1 * breakpoint.c (mention): Always show breakpoint address if no
source file.
1994-07-05 00:15:49 +00:00
Peter Schauer
fb1b2bd0af * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
Define to enable handling of shared libraries for a.out executables,
	run under Solaris BCP.
1994-07-02 08:55:43 +00:00
Stan Shebs
7f6572f512 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
* ser-mac.c (MacSerial.h): Include instead of Serial.h.
1994-07-01 18:44:26 +00:00
Jim Kingdon
018d94f53c * infrun.c (wait_for_inferior): Print "Program exited normally"
regardless of batch_mode.
	* defs.h, top.c (batch_mode): Removed.
1994-06-30 21:24:57 +00:00
Stan Shebs
8d9171304f Fix a booboo 1994-06-30 03:25:02 +00:00
Stan Shebs
054308add9 * Makefile.in (dcache_h): Remove redundant definition.
(init.c): Add a comment.
	(top.c): Remove explicit compile action.
	* breakpoint.c (mention): Share code indicating location of
	break/watchpoints, don't print address if addressprint is off.
	* breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
	(demangle): Remove redundant declarations.
	* eval.c: Remove redundant function declarations.
	* objfiles.h: Cosmetic and grammatical improvements.
	* TODO: Various updates.
1994-06-30 02:51:50 +00:00
Stan Shebs
7d13174e08 * remote-mips.c: Replace all \r chars with \015.
(mips_receive_header): Display control characters readably.
	(mips_xfer_memory): Add a simple progress display.
1994-06-30 01:59:36 +00:00
Stan Shebs
c2f2c6fa6c * mpw-make.in: Use {s} instead of {srcdir} everywhere.
(bindir, libdir): Remove extra colon.
	(source.c): Compile with C instead of gC.
	(c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
	(install-only): Don't install MacGDB.
	* source.c (openp) [MPW]: Add a debugging display.
	(open_source_file) [MPW]: Use MPW basename finders.
	[MPW_C]: Briefer versions of help for line and list commands.
1994-06-30 01:52:15 +00:00
Steve Chamberlain
402b0d2e55 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
using go32.
	* remote-hms.c (flush): New function.
	(expect): Get edge case right.
	(hms_read_inferior_memory): Be more tolerant of line noise.
1994-06-29 20:20:42 +00:00
Jean Marie Diaz
3563094ddc * configure.in: Use i386m3.mh and i386m3.mt as names of host and
target files, not non-existent mach3.mh and mach3.mt.
1994-06-29 13:15:51 +00:00
Peter Schauer
8959745750 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
from optimizing them away.
	* gdb.c++/classes.exp, gdb.c++/inherit.exp:  Update ptype expect
	patterns to include default constructors and assignment operators,
	to match gcc versions beyond 2.5.8.
1994-06-29 07:35:00 +00:00
Peter Schauer
ca694bfdd7 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
symbols for all symbol files.  Makes skipping over the
	trampoline code work when stepping from a function in a shared
	library into a function in a different shared library.
	(read_dbx_dynamic_symtab):  Relocate mst_solib_trampoline address.
1994-06-29 07:31:53 +00:00
Stu Grossman
320f93f714 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
names mean end of .o file.
	* infrun.c (wait_for_inferior):  Clean up multi-thread logic near
	top of routine.  Handle new thread notification cleanly.
	* lynx-nat.c (child_wait):  General cleanups, handle new LynxOS
	thread notification scheme.
	* (child_resume):  General cleanups, handle resumption of all
	threads properly.
1994-06-28 23:36:52 +00:00
Steve Chamberlain
aa48187bd3 ser-go32.c: Rewrite so it runs under windows. 1994-06-28 00:52:59 +00:00
Steve Chamberlain
bffce4c6b8 Use e7000-pc stuff. 1994-06-27 17:17:27 +00:00
Steve Chamberlain
5567978794 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
bus interface.
	* serial.c (serial_open): Notice device "pc".
	* remote-e7000.c: Fix copyright date.
	(expect): Compare \n and \r the same.
	(e7000_open): Allow pc as a serial port
	* sh/sh.mt: Add ser-e7kpc.
	* h8300/h8300hms.mt: Add ser-e7kpc.
	* main.c (proc_wait): Don't wait if using go32.
1994-06-27 17:16:26 +00:00
Jeff Law
6a86fa489b * somread.c: Simplify by using stabsect_build_psymtabs.
* dbxread.c (stabsect_build_psymtabs): New argument "text_name"
	corresponding to the name of the text section.  All references
	changed.
	(somstab_build_psymtabs): Delete function, no longer needed.
1994-06-27 06:45:35 +00:00
Jeff Law
bfe2f12bd0 * somread.c: Renamed from paread.c. Changed function names and
comments to reflect that this file deals with SOM (an object file
	format), rather than the PA (a cpu).
	(Makefile.in): Chaned appropriately.
	(config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
	* dbxread.c (somstab_build_psymtabs): Renamed from
	pastab_build_psymtabs.
1994-06-27 06:09:40 +00:00
Peter Schauer
5c3f264ff6 * core-sol2.c: New file to handle ELF and BCP core file flavours.
* config/sparc/sun4sol2.mh (NATDEPFILES):  Use it instead of
	core-svr4.
1994-06-24 16:27:52 +00:00
Peter Schauer
256533dfd7 * core-sol2.c: New file to handle ELF and BCP core file flavours.
* config/sparc/sun4sol2.mh (NATDEPFILES):  Use it instead of
	core-svr4.
	* Makefile.in:  Updated for core-sol2.c.
1994-06-24 16:26:33 +00:00
Peter Schauer
15c7f0c747 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
expression match in print_addr_of to avoid unintented matches.
	* gdb.c++/virtfunc.exp:  Accept alternate ptype output of g++
	versions up to 2.5.8.
1994-06-24 15:25:55 +00:00
Peter Schauer
d6f049084a * config/mips/xm-makeva.h: Removed, no longer necessary. 1994-06-24 15:22:35 +00:00
Peter Schauer
591554fd29 * config/mips/xm-makeva.h: Removed, no longer necessary.
* Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
	config/mips/xm-mips.h, config/mips/xm-news-mips.h,
	config/mips/xm-riscos.h:  Remove references to xm-makeva.h
1994-06-24 15:21:24 +00:00
Peter Schauer
a8044a2d04 * README: Add notes about SPARCworks cc under Solaris 2.x
(from Casper H.S. Dik casper@fwi.uva.nl).
	* config/mips/xm-makeva.h:  Removed, no longer necessary.
	* Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
	config/mips/xm-mips.h, config/mips/xm-news-mips.h,
1994-06-24 15:19:08 +00:00
Jim Kingdon
6ccc157f2e * gdba.el: Put program input and output in a separate buffer. 1994-06-24 13:39:35 +00:00
Jim Kingdon
aaa52579c7 * annotate.texi (TODO): New node, for keeping track of annotations
suggested but not yet implemented.
1994-06-23 01:15:24 +00:00
Jim Kingdon
cca32606b9 * gdba.el: Put program output in a separate buffer. 1994-06-23 00:59:47 +00:00
Fred Fish
b7ec5b8da5 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
top.h: Change all occurances of dirbuf to gdb_dirbuf.  Collides
	with global variable of same name in libnsl.so on UnixWare.
1994-06-23 00:08:09 +00:00
Kung Hsu
c79b49bb80 Modified Files:
symtab.c ChangeLog

        * symtab.c (decode_line_1): fix a bug in dealing with '<>'
        embedded in template name.
1994-06-22 21:45:22 +00:00
Stan Shebs
b8ec8d4ab0 * mpw-make.in (VERSION): Update to 4.12.3.
(SiowGDB): New target, GDB using SIOW library.
	(init-new.c): New target, attempt to generate init.c from sources.
	(main.c.o, top.c.o): Put each in its own segment.
	* main.c (main) [MPW]: Always call mac_init.
	* utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
	an extra newline otherwise.
	* mac-xdep.c: More comments in various places, remove junk.
	(mac_init): Add tests for MPW and SIOW.
	(use_wne, has_color_qd): Renamed.
	(use_color_qd): New variable.
	(grow_window): Only do console resizing to console window,
	call resize_console_window.
	(zoom_window): Call resize_console_window.
	(resize_console_window, scroll_text): New functions.
	(adjust_console_sizes): Always align viewrect to even multiples of
	text lines.
	(adjust_console_text): Always scroll by whole lines.
	(hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
	recalculation of scroll positions if a newline was output.
	(hacked_fflush): Similarly, for flushing.
	(hacked_fgetc): New function, aborts if called in MacGDB.
	* ser-mac.c (mac_readchar): Rename starttime to start_time,
	remove debugging printf.
	(mac_write): Sleep on first 4 writes.
	(sec_sleep): New function, works like standard sleep.
	* macgdb.r: Adjust positioning and contents of About box.
	Set minimum size to 2000K, preferred size to 5000K.
	* config/m68k/xm-mpw.h (fgetc): Define as a macro.
1994-06-22 19:57:02 +00:00
Stu Grossman
30e015ec42 Remove .Sanitize to prevent release of proprietary sources. This will be added
back when I figure out how to do it right.
1994-06-22 18:10:45 +00:00
Stan Shebs
1e6f592d82 Sanitization fixes 1994-06-22 02:26:39 +00:00
Kung Hsu
416b47c64d Modified Files:
ChangeLog

        * config/i386/nm-linux.h: change calling convention of
        TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
        target_insert_watchpoint() and
        target_remove_watchpoint().
1994-06-21 23:10:25 +00:00
Kung Hsu
733fa4c2f8 Modified Files:
tm-mips64.h tm-bigmips64.h

        * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
        to be long long in gdb.
        * config/mips/tm-bigmips.h: ditto.
1994-06-21 21:09:13 +00:00
Peter Schauer
55f3c2b411 * gdb.base/list.exp: Tweak alternate pattern for listing of an
included file to run under newer versions of expect.
	* gdb.c++/demangle.exp:  Add spaces to the expect patterns between
	consecutive >'s in templates to accomodate recent cplus-dem.c change.
	Remove xfail for the virtual table of BDDHookV.
1994-06-21 07:01:10 +00:00
Peter Schauer
2c06801014 * c-lang.c (asm_language_defn): New definitions for language_asm,
mostly copied from c_language_defn, to avoid warnings when
	switching between c and asm stack frames.
1994-06-21 06:58:41 +00:00
Ian Lance Taylor
6187dfac46 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
	(upgrade_type, handle_psymbol_enumerators): Likewise.
	(has_opaque_xref, cross_ref): Likewise.
	(elfmdebug_build_psymtabs): Call swap->read_debug_info to read
	debugging information, rather than doing it here.
	* mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
	point in ecoff_debug_swap backend structure, rather than calling
	ecoff_slurp_symbolic_info directly.
1994-06-20 18:27:29 +00:00
Stan Shebs
a8594cb3f3 * lib/gdb.exp (string_to_regexp): Set a default result.
(default_gdb_start): Fix misleading message.
1994-06-18 19:55:23 +00:00
Jim Kingdon
fb71d42292 * breakpoint.c: Include annotate.h. Call annotate_field rather
than printing annotation directly.
1994-06-18 04:14:26 +00:00
Jim Kingdon
afd3e3b15a * main.c: Include string.h. 1994-06-18 04:02:02 +00:00
Stan Shebs
9f8219f130 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
call it instead of doing normal loop.
	* infcmd.c (attach_command): Don't call wait_for_inferior if
	running	Mach 3.
	* infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
	hook that can decide whether to step over the next breakpoint.
	* utils.c (wrap_here): Abort if wrap_buffer not allocated.
	(request_quit) [REQUEST_QUIT]: If defined, call it instead of
	doing normal quit.

	* Makefile.in (stop-gdb): New target.
	* stop-gdb.c: New file, utility to get attention of waiting GDBs
	in Mach 3.
1994-06-16 23:04:55 +00:00
Stan Shebs
6ec7e4d36a * configure.in: Improve sorting/formatting of hosts and targets.
(i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
	m88*-*-mach3*, ns32k-*-mach3*): Recognize.
	* Makefile.in (gdb-stop): New target.
	* gdb-stop.c: New file, utility to gets attention of waiting GDBs
	in Mach 3.
1994-06-16 22:02:24 +00:00
Stan Shebs
8c16485eb0 Keep v9 bits now. 1994-06-16 21:18:05 +00:00
Stan Shebs
58c0b523fe Wed Jun 15 17:36:07 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
	(top.c.o, annotate.c.o): Add build rules.
	* macgdb.r (SysTypes.r): Include.
	('vers'): New resource, version info.
	(mFile, mEdit, mDebug): Enable all menu items.
	(mDebug): Add key equivalents for continue, step, next.
	(wConsole): Add zoom and close boxes to window.
	* mac-xdep.c (new_console_window): New function, code taken from
	mac_init.
	(mac_command_loop): Use GetCaretTime for wait interval, call
	do_idle on null events.
	(do_idle): New function.
	(zoom_window): Implement zooming.
	(v_scroll_proc): New function, handles vertical scrolling.
	(activate_window): Do activation of console window.
	(do_menu_command): Implement items of file, edit, and debug menus.
	(do_keyboard_command): Fix command extraction.
	(adjust_console_sizes, adjust_console_text): New functions.
	(hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
	hacked_putc): Don't call draw_console.
	* ser-mac.c (mac_open): Add an error message for invalid ports.
	(first_mac_write): New global.
	(mac_write): Use first_mac_write to sleep on first several writes.
1994-06-16 01:03:01 +00:00
Stan Shebs
9da7b23745 Wed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
	Remove all CC, etc definitions.
	* config/mt-hpux: New file.
	* config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
	(CFLAGS, LDFLAGS): Define.
	* config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
1994-06-15 19:49:41 +00:00
Stan Shebs
48f6098e1d Wed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (site.exp): Don't insert host_os, etc.
	(just-check): Just use RUNTEST with RUNTESTFLAGS only.
	(distclean): Check existence of subdir.
	* gdb.base/configure.in (hppa*-*-hpux*): Recognize.
	* gdb.base/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	to build executables.	Use default rule to build .o files.
	(EXPECT, RUNTEST, CC): Fix relative pathname.
	(site.exp): Don't insert host_os, etc.
	* gdb.base/signals.c (main): Don't call signal unless SIGALRM
	and/or SIGUSR1 defined.
	* gdb.base/watchpoint.c: Don't include stdio.h a second time.
	* gdb.c++/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	(CFLAGS): Remove.
	(EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
1994-06-15 19:31:19 +00:00
Thomas Lord
f36b58b10c Init current_directory. 1994-06-15 08:04:44 +00:00
Thomas Lord
e91c181625 New features. Less bugs. 1994-06-15 00:28:50 +00:00
Per Bothner
ccda44f92f * result.ch, result.exp, Makefile.in: New test case.
* pr-4975.ch, pr-4975-grt.ch, pr-4975.exp, Makefile.in:  Ditto.
1994-06-14 23:23:14 +00:00
Kung Hsu
f2d9c05802 Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: annotate changes lost at merge, put back in.
1994-06-14 23:22:44 +00:00
Stan Shebs
e884f41802 Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
	i387-tdep.o.
1994-06-14 00:47:06 +00:00
Kung Hsu
2b14c195f1 Modified Files:
.Sanitize ChangeLog

        * .Sanitize: change name from sparclite-*.c to sparcl-*.c.
1994-06-13 19:31:01 +00:00
Peter Schauer
020ed9bbb7 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
of inftarg.o.
	* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
	writing of floating registers, the dpx2 kernel disallows it.
1994-06-12 11:11:39 +00:00
Peter Schauer
33c66e44ed * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
of inftarg.o.
	* config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER):  Define to inhibit
	writing of floating registers, the dpx2 kernel disallows it.
	* irix5-nat.c (LM_ADDR):  The loaded address of the shared library
	is contained in o_praw.
	* irix5-nat.c (solib_map_sections):  Adjust sections by the
	difference between the loaded address and the prelinked address.
	* irix5-nat.c (solib_address):  Use LM_ADDR for the loaded start
	address.
	* mdebugread.c (parse_symbol):  Do not relocate stEnd/scText
	symbols, their value is absolute.
	* mdebugread.c (parse_partial_symbols):  Handle Irix 5.2 shared
	libraries fh->adr fields of zero. Relocate minimal symbol values
	upon readin. Relocate non-stabs symbols upon readin.
	* mdebugread.c (psymtab_to_symtab_1):  Use pst->textlow for the
	start address of the outermost block.
	* mdebugread.c (parse_lines, parse_procedure):  Pass in pst
	instead of section_offsets and use relocated pst->textlow for
	line number and procedure address relocations.

	From gmo@MicroUnity.com (Guillermo A. Loyola):
	* mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
	Handle SGI Irix5 stIndirect symbol type.
1994-06-12 11:10:13 +00:00
Kung Hsu
110548816a Modified Files:
breakpoint.c ChangeLog

        * breakpoint.c: fix a syntax error native cc does not like.
1994-06-11 01:09:25 +00:00
Kung Hsu
97f288325e Modified Files:
sparclite.mt

	* change sparclite-tdep.o to sparcl-tdep.o.
1994-06-11 00:03:28 +00:00
Kung Hsu
1782eb41a7 Modified Files:
Makefile.in ChangeLog

        * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
1994-06-10 23:55:12 +00:00
Kung Hsu
b955f68067 Added Files:
sparcl-tdep.c sparcl-stub.c
Removed Files:
	sparclite-tdep.c sparclite-stub.c

	* change file name because fisrt 8 chars has to be unique.
1994-06-10 23:26:59 +00:00
Kung Hsu
245efe138f Modified Files:
.Sanitize

        * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
1994-06-10 22:37:48 +00:00
Kung Hsu
2c3fb46af9 Modified Files:
ChangeLog

        * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
1994-06-10 21:58:48 +00:00
Jeff Law
d3f6b4638a * gdb.base/recurse.exp: Misc changes to get tests running again
after Kung's changes to the watchpoint code.
	* gdb.base/watchpoint.exp: Likewise.
1994-06-10 17:10:08 +00:00
Jeff Law
e9a3cde889 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
ignore) a PID argument.
	(hppa_pop_frame): Pass a PID to target_write_pc.
	* config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
	and pass through a PID argument.
	(target_read_pc, target_write_pc): Update prototypes.
1994-06-10 16:43:52 +00:00
Per Bothner
d1a390dc4c * pr-5022.ch, pr-5022.exp: New testcase.
* chillvars.exp:  Remove spurious newline.
1994-06-10 02:17:06 +00:00
Kung Hsu
7d1699ae19 Modified Files:
breakpoint.c breakpoint.h ChangeLog
Added Files:
	sparclite-tdep.c sparclite-stub.c

        * sparclite-tdep.c: new file, contains hardware breakpoint support
        code.
        * sparclite-stub.c: new file, stub code that add support hardware
        breakpoint support.
        * breakpoint.c: add hardware breakpoint support.
        * breakpoint.h: add new breakpoint type to support hardware
        breakpoint.
1994-06-10 01:30:06 +00:00
Kung Hsu
cd3508f16e Modified Files:
sparclite.mt tm-sparclite.h

        * config/sparc/sparclite.mt: add sparclite-tdep.o.
        * config/sparc/tm-sparclite.h: add hardware breakpoints support
        defiines and code.
1994-06-10 01:24:22 +00:00
Kung Hsu
7d5c4d30d8 Modified Files:
nm-hppab.h

        * config/pa/nm-hppab.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:23:20 +00:00
Kung Hsu
038a2f11f6 Modified Files:
nm-irix4.h

         * config/mips/nm-irix4.h: change interface for target dependent
        code supporting watch point.
1994-06-10 01:22:38 +00:00
Kung Hsu
2c012f9efc Modified Files:
ChangeLog

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.
1994-06-09 23:22:56 +00:00
Per Bothner
605f94ba35 * Makefile.in: Bunch of fixes so it actually works in this
directory.  (E.g. add extra ../ where needed.)
	Also, add .exe to executables, so we can use suffix rules.
	* chexp.exp (test_print_reject):  Update syntax error message.
	* chillvars.ch (module PR_5020):  Moved from here ...
	* pr-5022.ch: ... to this new file.
	* chillvars.exp, pr-5020.exp (binfile):  Add .exe extension.
	* chillvars.exp, pr-5020.exp: Don't check all_flag.
	* pr-5020.exp:  Add more tests; fix "print y pretty" output.
1994-06-09 23:13:54 +00:00
Kung Hsu
539dccd38e Modified Files:
remote-os9k.c stabsread.c

        * remote-os9k.c (rombuf_command): fix a bug accepting rombug
        output.
        * stabsread.c (read_struct_fields): os9k nested structure does not
        have terminating ';', instead it just get to ',' and bit position
        and length.
1994-06-09 22:03:41 +00:00
Stu Grossman
7314b3ee04 (nlm_symfile_read): Use SYMBOL_CLASS to access symbol class. 1994-06-09 15:32:46 +00:00
Stu Grossman
a4b4f52058 * nlmread.c (nlm_symtab_read): Clean up a bit.
* (nlm_symfile_read):  Record bounds of main() so that backtrace
	command will know where to stop.
	* objfiles.c (objfile_relocate):  Relocate entry point/func info
	for backtrace as well.
	* objfiles.h:  Define values for invalid PCs for entry point info.
	* symfile.c (init_entry_point_info):  Initialize invalid values
	with aforementioned macros.
	* config/alpha/tm-alphanw.h:  Turn on FRAME_CHAIN_VALID_ALTERNATE
	to cause backtrace to stop when it gets back to main().
	* config/i386/tm-i386nw.h:  Ditto.
1994-06-09 06:30:38 +00:00
Stan Shebs
0fba9aa255 Wed Jun 8 12:12:17 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
	* lib/gdb.exp (default_gdb_start): Define.
1994-06-08 19:25:43 +00:00
Jim Kingdon
68361314c0 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
(which was basically just a local version of the same thing).  In
	addition to avoiding duplication, gdb_test_exact is faster.
	* lib/gdb.exp (gdb_test_exact): Fix typo.
1994-06-07 16:40:10 +00:00
Jim Kingdon
31711c6961 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
don't give an error.
	* gdb.base/term.exp: Call delete_breakpoints before starting.
1994-06-07 16:04:40 +00:00
Jim Kingdon
63fb699b06 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
(t10): Add comment.
1994-06-07 15:43:59 +00:00
Stan Shebs
16def8c8a0 Reorganized GDB tests - Chill 1994-06-07 02:01:27 +00:00
Stan Shebs
ef44eed173 Reorganized GDB tests - base 1994-06-07 01:57:15 +00:00
Stan Shebs
33268150cb Mon Jun 6 18:26:50 1994 Stan Shebs (shebs@andros.cygnus.com)
Reorganization of the GDB Test Suite.

	* gdb.base: New directory, contains all the basic tests.
	* gdb.c++: New directory, tests specific to C++.
	* gdb.chill: New directory, tests specific to Chill.
	* gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
	gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
	gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
	gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
	into appropriate new directories (t00-t17 to base, t20-t23 to c++,
	t30-31 to chill).
	* */gdbme.*: Rename to match appropriate expect scripts.
	* gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
	gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
	gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
	gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
	gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
	gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
	gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
	gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
	gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
	gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
	* gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
	gdb.c++/virtfunc.cc: New names of C++ files.
	* gdb.chill/chillvars.ch: New name of Chill file.
	* gdb.base/configure.in, gdb.c++/configure.in,
	gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
	* gdb.base/Makefile.in, gdb.c++/Makefile.in,
	gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
	* configure.in (configdirs): Update to reflect directory changes.
	(target_abbrev): No longer define for any configuration.
	* Makefile.in: Cosmetic improvements to header comments.
1994-06-07 01:50:58 +00:00
Per Bothner
e10cfcaa37 Fix value_print, which used to be ostensibly langauge-indepentdent,
but would print pointers and arrays in C syntax.  Instead, call
	a language-specific function.  See ChangeLog for details.
1994-06-05 01:43:40 +00:00
Per Bothner
b11f2c1f76 Various changes to gdb.t31. 1994-06-04 02:03:08 +00:00
Jim Kingdon
172559ec33 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
to new file top.c.  Make things extern instead of static and
	similar rearrangements to deal with this.
	* top.h: New file.
	* utils.c: Move fputs_unfiltered to main.c.  Remove
	FPUTS_UNFILTERED_OVERRIDE ifndef.
	* Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
	and libgdb uses utils.c and top.c.
1994-06-03 17:25:08 +00:00
Jeff Law
36af5ec640 * hppa-tdep.c (skip_trampoline_code): Fix typo. 1994-06-03 05:21:30 +00:00