Commit graph

6351 commits

Author SHA1 Message Date
Michael Snyder
6f3eea2bdf start-sanitize-m32r
Tue Nov 12 12:06:58 1996  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * m32r-tdep.c: Add functionality for target function calls.
        * valops.c:    Small change to support target function calls.
        * config/m32r/tm-m32r.h: Add support for target function calls.
This is a safety checkin -- everything works, but there'll be another
clean-up round later.
1996-11-12 20:16:10 +00:00
Geoffrey Noer
cad9cd605c Mon Nov 11 17:15:59 1996 Geoffrey Noer <noer@cygnus.com>
* defs.h: modify Nov 11 12:59:00 change so _MSC_VER is checked
        instead of _WIN32
        * win32-nat.c: fix Nov 11 12:59:00 change (windows.h should
        be included instead of windefs.h for compilers other than
        VC++).
        * mswin/windefs.h: remove ^Ms and change C++ style comments
        to C style comments
1996-11-12 02:19:25 +00:00
Mark Alexander
57821e0c39 * utils.c (get_cell): Fix off-by-one bug.
* mips-tdep.c (get_frame_pointer, fix_sign_extension):
	New functions to consolidate common code.
	(mips_frame_chain, init_extra_frame_info): Use new functions
	to fix problems with backtrace and finish commands on ddb board.
1996-11-11 23:37:30 +00:00
Jeff Law
d5e51b2558 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
force argument to an unsigned long type.
From Peter Schauer.
1996-11-11 21:12:28 +00:00
Dawn Perchik
28444bf3a1 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
	* defs.h: Cleanup; add prototypess
	* corefile.c: Change FIXME #ifdef
	* win32-nat.c: Include windefs instead of windows.h.
	* utils.c: Add routines for printing addresses and registers
	based on type size.
1996-11-11 21:02:55 +00:00
Fred Fish
77814fa882 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
tests and anonymous union print/ptype tests.
	* gdb.base/list.exp (test_forward-search): Increase timeout by
	5 minutes for the "search extremely long line" case.
	* lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
	completely optional and that the pass/fail messages use the command as
	the message if that third arg is a null string.
	(gdb_test_exact):  Arrange that a null string pattern means match a
	null string output rather than any output, which might include random
 	errors.
	* gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
	backtrace test.
	* gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
	always failing and failure is now exposed by gdb.exp changes.
1996-11-11 18:33:14 +00:00
Fred Fish
63a0ebfbe9 * callch.exp: Add mips*-sgi-irix* xfail for
"call king(a, otto[[10, 15], [20, 25]])".
	* pr-8742.exp: Add mips*-sgi-irix* xfails for
	"pass int powerset tuple"
	"pass set powerset tuple"
	"pass modeless int powerset tuple" and
	"pass modeless set powerset tuple".
	* tuples.exp: Add sparc-*-solaris* and sparc-*-sunos*
	xfails for several "set var" commands that are failing.
	Convert most of the set commands into gdb_test_exact
	commands.
1996-11-11 18:32:39 +00:00
Fred Fish
cb87e99f09 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
weren't being noted.
1996-11-09 18:16:11 +00:00
Peter Schauer
134a3f780d * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
* gdb.stabs/weird.exp:  Remove v_comb xfails.
1996-11-09 09:22:23 +00:00
Peter Schauer
b78512db03 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1. 1996-11-09 09:19:55 +00:00
Peter Schauer
074d813d38 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
if we encounter a positive stack adjustment.
	(find_proc_desc):  If heuristic_fence_post is non-zero, use
	heuristic_proc_start to determine the start of a function before
	calling heuristic_proc_desc.

	* coffread.c (coff_symtab_read):  Change minimal symbol types
	for C_LABEL symbols from mst_* to mst_file_*.

	* config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.

	* configure.in:  Handle error message from sun3 native ld when
	configuring HLDFLAGS.
	* configure:  Regenerated with autoconf.

	* c-valprint.c (c_value_print):  Adjust value address by VALUE_OFFSET.
	* cp-valprint.c (cp_print_value):  Prevent gdb crashes by making sure
	that the virtual base pointer from an user object still points to
	accessible memory.

	* dbxread.c (dbx_symfile_init):  Initialize sym_stab_info to
	clear the recently added header_files fields.
	(dbx_symfile_finish):  Free hfiles[i].vector to avoid storage leak.
1996-11-09 09:17:34 +00:00
Michael Snyder
4dc42997c3 Fri Nov 8 14:30:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/tm-sh.h: Added a missing comma in middle of REGISTER_NAMES list.
1996-11-08 22:31:36 +00:00
Stan Shebs
944257d452 * monitor.c: Fix some formatting and comments. 1996-11-08 21:37:16 +00:00
Stan Shebs
07997f65e5 * remote-sim.c (simulator_command): Set up callbacks before
entering the simulator.
1996-11-08 20:38:07 +00:00
Martin Hunt
81a6f5b208 Thu Nov 7 15:19:08 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c: Fix some problems with inferior function calls.
	* config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
	a pointer to the dummy's stack instead of just a flag.
1996-11-07 23:23:57 +00:00
Michael Snyder
7d03ae5e13 Tue Nov 5 10:44:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
                    list.exp scope.exp watchpoint.exp]
          Make all timeout error msgs explicitly say "(timeout)".

        * config/monitor.exp: Increase download timeout to 1000 seconds.
        * config/m32r.exp: Increase timeout to 120 seconds.
1996-11-05 19:17:15 +00:00
Michael Snyder
e1703d1f53 Tue Nov 5 10:21:02 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c: Improved frame_chain and fn prologue analysis.
        * config/tm-m32r.h: Add framesize and register to extra_frame_info.
1996-11-05 19:06:11 +00:00
Stu Grossman
7af1bcd64c * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
* mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1):  Initialize depth
	to fix divide-by-zero problem with clicking on source window.
1996-11-05 18:15:41 +00:00
Stu Grossman
9356d50dd2 * mswin/recordit: Fix problem with absolute paths. 1996-11-04 21:16:16 +00:00
Jeff Law
83d6b9df83 Fix problems introduced in last change (two "Do-first" lines). 1996-11-04 20:49:59 +00:00
Stu Grossman
237fa47ee0 * mswin/recordit: Fix problem with relative paths. 1996-11-04 08:52:44 +00:00
Stu Grossman
0f6e298424 * mswin/{Makefile.in configure configure.in}: New files for
configuring wingdb under Unix.
1996-11-04 02:10:19 +00:00
Fred Fish
1c9e66903c * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
and accept older ordering as obsolescent gcc or gdb.
	* gdb.c++/templates.exp: Ditto.
	* gdb.c++/virtfunc.exp: Ditto.
1996-11-03 23:50:29 +00:00
Peter Schauer
73b8e6a915 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
missing or zero-sized .text sections properly.
	* mdebugread.c:  Handle scRConst and scSUndefined storage classes.
	* stabsread.c (scan_file_globals):  Try to resolve symbols
	for shared libraries from the minimal symbol table of the main
	executable first.
1996-11-02 11:59:19 +00:00
Martin Hunt
61e5b759cd Fri Nov 1 13:59:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h:  Major fixes to support
	inferior function calls and proper stack backtracing on D10V-EVA
	board.
1996-11-01 22:02:37 +00:00
Martin Hunt
21260fe16f Fri Nov 1 13:59:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c, config/d10v/tm-d10v.h:  Major fixes to support
	inferior function calls and proper stack backtracing on D10V-EVA
	board.
1996-11-01 22:02:20 +00:00
Fred Fish
7a6e913309 * gdb.base/coremaker.c: Add code to mmap some data so we
can check that it ends up in the core file.
	* gdb.base/corefile.exp: Add test to read mmapped data
	from core file.
1996-11-01 20:00:26 +00:00
Michael Meissner
5db7cc25b8 Make gdb compile & link cleanly on powerpc-linux 1996-11-01 15:53:28 +00:00
Michael Snyder
8665f3dcfa Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c: Improved frame_chain and fn prologue analysis.
        * configure.tgt: Add entry for m32r target.
        * monitor.h:   Add a flag to tell monitor_store_register to use
                        (val, regno) instead of (regno, val).
        * monitor.c:   Make monitor_store_register honor the above flag.
                        Make monitor_exp ignore DC1/DC3 for m32r.
                        Increase buf size in monitor_dump_regs.
1996-11-01 00:41:21 +00:00
David Edelsohn
5477ff627b .Sanitize for config/m32r. 1996-10-31 18:11:44 +00:00
Michael Snyder
7e69daa771 Filter changes for m32r target. 1996-10-31 02:31:56 +00:00
Michael Snyder
f8931413c9 Wed Oct 30 18:19:16 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/m32r.exp: New file.
1996-10-31 02:30:32 +00:00
Michael Snyder
afb89dc334 Keep changes, if m32r. 1996-10-31 02:28:56 +00:00
Michael Snyder
70ab088d08 Wed Oct 30 18:14:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* m32r-tdep.c, m32r-rom.c: New files.
        * config/m32r/m32r.mt: New file.
        * config/m32r/tm-m32r.h: New file.
1996-10-31 02:27:58 +00:00
Michael Snyder
1d3d059535 Keep new files, modulo m32r. 1996-10-31 02:26:56 +00:00
Geoffrey Noer
ea5c2d663c Tue Oct 29 16:56:01 1996 Geoffrey Noer <noer@cygnus.com>
* config/i386/xm-cygwin32.h:
        * config/powerpc/xm-cygwin32.h:
        add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
        truncated
1996-10-30 00:58:26 +00:00
Michael Meissner
3f7401733d Allow bi-endian support in PowerPC 1996-10-29 23:40:58 +00:00
Stan Shebs
62c0cf2405 * TODO: Add item suggesting an "info bfd" command. 1996-10-29 23:20:54 +00:00
Martin Hunt
089f0d4540 Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
	(TARGET_READ_FP,TARGET_WRITE_FP): Define.
1996-10-29 20:53:04 +00:00
Martin Hunt
19414cdfb0 Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* d10v-tdep.c: Snapshot that supports D10V-EVA board.

	* config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
	(TARGET_READ_FP,TARGET_WRITE_FP): Define.
1996-10-29 20:52:52 +00:00
Stu Grossman
cb5e6e683a * mswin/genmakes mswin/recordit: New scripts to generate make
files for MSVC.
1996-10-29 01:36:25 +00:00
Ian Lance Taylor
4b8f6786ca add new files 1996-10-28 16:38:46 +00:00
Mark Alexander
26c87277f4 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
New files.
	* configure.tgt: Modify cases for vr5000 to use new files.
1996-10-28 04:24:30 +00:00
Peter Schauer
1cb1b16cfb * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
the entry to the exit system call to detect termination of the
	inferior stopped working. Trace termination of the inferior via
	PRFS_STOPTERM instead.
	(procfs_init_inferior):  Do not trace entry to exit system call
	if PIOCSSPCACT is defined.
	(procfs_wait):  Handle PR_DEAD event, which signals the termination
	of the inferior if PRFS_STOPTERM is set.

	* mdebugread.c (parse_partial_symbols):  Ignore stNil section
	start address symbols.

	* sparc-tdep.c (get_saved_register):  Get saved PC from the
	frame info if not in innermost frame.
1996-10-26 14:22:35 +00:00
Mark Alexander
ac2321b633 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
Correct	for pc-linux-gnu problem in config.guess.
1996-10-24 18:52:16 +00:00
Mark Alexander
8ddf07a29a * dbxread.c (process_one_symbol): Interpret end-of-function
markers correctly; this fixes problem on Vr5000 where all
	functions in a module had the same address.
	* configure.in, configure.tgt, configure.host, gdbserver/configure.in:
	Correct	for pc-linux-gnu problem in config.guess.
	* configure: Regenerate.
1996-10-24 18:51:46 +00:00
Stu Grossman
139e2c0f92 * dbxread.c: Don't swap symbols in place, since internal and
external forms may have different sizes.  Don't assume that an
	internal_nlist has the same layout as an external_nlist.  Create
	symbol for n_strx element so to hide specifics of nlist from
	partial-stab.h.
	* partial-stab.h:  Don't reference dbxread symbols directly.  Use
	CUR_SYMBOL_STRX instead.
	* config/i386/xm-windows.h:  Define SIGQUIT and SIGTRAP.

	* config/v850/tm-v850.h:  Define PS_REGNUM and TARGET_V850 for
	MSVC builds.
	* mswin/gdbwin.c (reg_order):  Define register order for V850.
	* mswin/gui.cpp (CGuiApp::InitInstance):  Define target name for
	V850.
	* mswin/regdoc.h:  Define MAXREGS for V850.
1996-10-24 17:31:45 +00:00
Stu Grossman
a638512f44 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
prologues correctly.  First, prologue end is now defined by
	presence of a branch, jump or call insn.  Second, can no longer
	fix frame offsets because we may not know the offset until after a
	register has been saved.
	* (v850_init_extra_frame_info):  Fixup frame offsets here because
	we have all the info at this time.
	* (v850_frame_chain):  Use new calling convention for scan_prologue.
1996-10-22 23:34:11 +00:00
Martin Hunt
fcabf67618 start-sanitize-d10v
Tue Oct 22 10:25:29 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

	* d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
 	backtraces and inferior function calls.

end-sanitize-d10v
1996-10-22 21:13:38 +00:00
Stu Grossman
53845f94f7 Sanitize out v850 stuff. 1996-10-22 17:43:02 +00:00