Commit graph

6396 commits

Author SHA1 Message Date
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
Stan Shebs
5efcbe3636 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
(@HLDFLAGS@): Always edit out.
1996-10-22 17:37:18 +00:00
Martin Hunt
7eb7c902a9 Tue Oct 22 10:25:29 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* tm-d10v.h: Changes to allow stack
 	backtraces and inferior function calls.
1996-10-22 17:27:51 +00:00
Martin Hunt
3b1af95c73 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.
1996-10-22 17:27:37 +00:00
Mark Alexander
d883102448 * mdebugread.c (parse_partial_symbols): Fix 64-bit
sign-extension problems in calculating psymtab addresses.
	* buildsym.c (end_symtab): Use macro to pop context.
1996-10-22 01:26:20 +00:00
Stu Grossman
23da411ac8 * v850-tdep.c: Cleanup lots of things. Add many comments.
* testsuite/gdb.base/nodebug.exp:  Whack out -g options by hand so
	that cflags can contains -gstabs, and work correctly for other tests.
1996-10-21 21:45:55 +00:00
Michael Snyder
dece5fa0c3 PR 8511, keep new test cases 1996-10-21 21:35:29 +00:00
Michael Snyder
79654d0b75 * gdb.base/setshow.exp: New file, tests show and set.
* gdb.base/setshow.c:   New file, tests show and set.
	* gdb.base/help.exp: Add test for help set|show annotate.
	* gdb.base/default.exp: Add test for set|show annotate.
PR 8511
1996-10-21 21:28:48 +00:00
Michael Snyder
62dd860e25 * top.c: Add new commands "set annotate" and "show annotate".
PR 8511
1996-10-21 21:11:31 +00:00
Peter Schauer
972256e712 * corelow.c (core_close): Clear inferior_pid only if there is
an open core_bfd.

	* cp-valprint.c (cp_print_value_fields):  Pass correct address
	to val_print, not 0.

	From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
	* eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
	typedefs before checking for integral type of right operand.
1996-10-20 11:41:30 +00:00
Mark Alexander
91d12e123a * mdebugread.c (parse_symbol): Fix crash when malloc has
no type info and void type has no associated pointer type.
1996-10-19 00:31:53 +00:00
Stan Shebs
edda595e38 Keep new configure helpers, update conditional sanitizes 1996-10-18 01:34:49 +00:00
Stan Shebs
943e243ce7 * configure.host: New file, host configuration mapping.
* configure.tgt: New file, target configuration mapping.
	* configure.in: Remove host and target mapping.
	* configure: Rebuild.
1996-10-18 01:27:59 +00:00
Stu Grossman
6420594bbf * testsuite/gdb.base/break.exp: Make backtrace from factorial
errors unique.
	* testsuite/gdb.base/nodebug.exp:  Whack out all -g options
	explicitly.

	* v850-tdep.c (v850_init_extra_frame_info v850_frame_chain):  Fix
	sign bugs with scanning prologues.  Get a little smarter about
	calculating the length of uninteresting instructions.
1996-10-17 02:12:24 +00:00
Stan Shebs
93ed453c68 * breakpoint.c (must_shift_inst_regs): New global.
(bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
	equivalent expression uses.
	* infrun.c (wait_for_inferior): Ditto.
1996-10-17 00:54:59 +00:00
Stu Grossman
687f4e2379 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
registers.
	* config/v850/tm-v850.h:  Change FP to 29.  Define arg regs.
1996-10-16 08:57:35 +00:00
Stu Grossman
9bf9a31876 * Makefile.in (init.c): Don't use -s option with grep. It means
something different under Digital Unix.
1996-10-15 23:54:48 +00:00
Stu Grossman
4ed1437f34 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
and width commands.  This is done elsewhere.
	* (gdb_start):  Don't call gdb_start_sim here.  That's already
	done in gdb_load.  This fixes lots of failures in default.exp.
1996-10-15 23:50:54 +00:00
Stu Grossman
ac9548059b * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
LOC_LOCAL_ARG as arguments so that GDB will know about function
	args declared this way.  Mostly affects dwarf.
	* dwarfread.c (decode_die_type):  Change default type from int to
	void.  This allows GDB to recognize void functions.
	* (new_symbol):  If AT_PROTOTYPED is present, set a flag in the
	type structure.
	* findvar.c (extract_floating store_floating):  Clean up comments
	to reflect reality.
	* gdbtypes.h:  Add TYPE_FLAG_PROTOTYPED so that we can tell if a
	function has a prototype.  Currently, only dwarf supports this.
	* utils.c (floatformat_from_doublest):  Fix logic error with
	converting from double to float.  (It wasn't shifting mant_long if
	it had a hidden bit.)

	* v850-tdep.c:  Add support for function calling.  Fix some
	problems with debugging code w/o debug symbols.
	* config/v850/tm-v850.h:  Ditto.
1996-10-15 23:44:13 +00:00
Ian Lance Taylor
03e2a8c8a0 * utils.c: Always ensure that size_t is defined. Check
HAVE_STDDEF_H rather than __STDC__
	(xmalloc, xrealloc): Use size_t rather than long.
1996-10-15 22:24:17 +00:00
Martin Hunt
3f3d60c1bc Tue Oct 15 14:24:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
	can use single-step commands.
1996-10-15 21:26:29 +00:00
Peter Schauer
19406903ab * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
follow typedefs before checking TYPE_CODE for structures and unions.
1996-10-13 18:40:26 +00:00
Fred Fish
90a0f3aa64 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
(distclean maintainer-clean realclean): No need to remove files
 	twice.  Nuke the duplicates.
	* gdb.base/Makefile.in (EXECUTABLES): Add "structs".
	* gdb.threads/Makefile.in (distclean maintainer-clean realclean):
	Remove config.h along with other config files.
1996-10-12 00:10:33 +00:00
Fred Fish
37d1429623 * expstruct.exp (objfile2): Set and use, like other chill tests.
* pr-4975.exp: Ditto.
	* pr-5646.exp: Ditto.
	* pr-8134.exp: Ditto.
1996-10-11 23:54:12 +00:00
Stu Grossman
e5a2ac8b3f * frame.h: Move definition of struct frame_saved_args to before
struct frame to make it possible to use frame_saved_args in
	EXTRA_FRAME_INFO macro.

	* v850-tdep.c config/v850/tm-v850.h:  Lotsa new functions and
	macros to make frame operations (such as backtrace) work.
1996-10-11 22:50:42 +00:00
Fred Fish
693e9bf655 * dbxread.c (process_one_symbol): Check for null string directly
rather than using strcmp against "".
	* partial-stab.h: Ditto.
1996-10-11 22:31:56 +00:00
Mark Alexander
913a7c4cc4 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
Make it compile on Linux and eliminate some warnings.
1996-10-11 19:26:04 +00:00
Fred Fish
a5ecaa632b Revert last change. I was fooled by an old Makefile that didn't
get rebuilt.
1996-10-11 17:48:24 +00:00
Fred Fish
7b6244ebcf Bug reported by Paul Flinders <paul@dawa.demon.co.uk>:
* Makefile.in (init.c): Restore '-n' option in sed command.
1996-10-11 17:23:14 +00:00
Stu Grossman
e96dc1f7d4 * Makefile.in (init.c): Fixup final sed script to work around
Linux bug with `p' operator.
1996-10-10 23:34:38 +00:00
Stan Shebs
5dad831218 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
VR4300 target.
	(ddb_ops, pmon_ops): Fix the documentation strings.
1996-10-10 01:17:05 +00:00
Stu Grossman
5faa6e1e4f * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
filenames with sed instead.
1996-10-09 14:47:29 +00:00
Stu Grossman
5621d991bf Add hpux-thread.c. 1996-10-09 08:46:25 +00:00
Stu Grossman
99283e8779 * defs.h: Remove decls of xmalloc and xrealloc. There is a
conflicting definition in libiberty.h.
1996-10-08 23:01:04 +00:00
Fred Fish
a7f56d5aff Just some cleanups noticed while working on PR 10760
* dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
	than poking global variable (which is now static).
	* hpread.c (hpread_build_psymtabs): Ditto.
	* os9kread.c (os9k_symfile_read): Ditto.
	* xcoffread.c (xcoff_initial_scan): Ditto.

	* buildsym.h (free_pending_blocks): Declare here.
	(pending_blocks): Remove declaration of global symbol.
	(free_pendings): Remove declaration of global symbol.
	(make_blockvector): Declare here.
	(record_pending_block): Declare here.

	* dstread.c (make_blockvector): Remove static copy that was old
	clone of version in buildsym.c.
	(process_dst_block): Call record_pending_block rather than doing
	it by hand.
	(read_dst_symtab): Ditto.

	* buildsym.c (make_blockvector): Make global rather than static,
	(record_pending_block): New function, code moved from finish_block.
	(finish_block): Use record_pending_block.
	(free_pending_blocks): New function.
	(really_free_pendings): Call free_pending_blocks.
	(pending_blocks): Make static instead of global.
	(free_pendings): Make static instead of global.
1996-10-08 19:00:38 +00:00
Stu Grossman
e7b9847623 Add windows.mh and xm-windows.h 1996-10-08 17:27:11 +00:00
Stu Grossman
8a5c77a19e * config/i386/windows.mh config/i386/xm-windows.h:: New config
files to support building Wingdb (built under Microsoft build
	environment).
1996-10-08 17:12:06 +00:00
Stu Grossman
7d44ab7f63 Add osf-share directory. 1996-10-08 17:07:35 +00:00
Stu Grossman
5d394f7072 * Makefile.in: Add rule for hpux-thread.o (needs special header
files).
	* (SUBDIRS):  Remove mswin.
	* Change procedure for creating init.c.  Speeds things up quite a
	bit.
	* config.in configure configure.in:  Check for select, poll.
	* Check for OSF header files before including hpux-thread.o.
	* Don't configure doc or testsuite when building under MSVC.
	* findvar.c value.h (read_register_pid write_register_pid):  Make
	global.  Needed for hppa-tdep.c.
	* (supply_register):  Don't set pid to inferior_pid when supplying
	registers.
	* hppa-tdep.c (saved_pc_after_call):  frame_saved_pc ->
	FRAME_SAVED_PC.
	* (frame_saved_pc):  Change name to hppa_frame_saved_pc.
	* (hppa_pop_frame):  Don't use a pid of 0 with target_write_pc.
	Use write_pc instead, which uses the correct pid.
	* (target_read_pc target_write_pc):  Use read/write_register_pid
	instead of read/write_register to preserve the pid passed in.
	* inftarg.c (child_can_run):  Add flag child_suppress_run to allow
	hpux-threads.c to override this as a runnable target.
	* config/pa/nm-hppah.h:  Define target_new_objfile and
	target_pid_to_str.
	* config/pa/tm-hppa.h (FRAME_SAVED_PC):  Use hppa_frame_saved_pc
	instead of frame_saved_pc.
	* config/m68k/tm-m68k.h:  Define TARGET_M68K for Wingdb.
	* config/m68k/tm-monitor.h:  Use FRAME_CHAIN_VALID_ALTERNATE, since
	we can't easily determine the start file bounds with ELF.
	* config/mips/tm-mips.h:  Define TARGET_MIPS for Wingdb.
	* hpux-thread.c:  New file for HPUX/OSF thread support.
	* osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
	RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
	cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
	cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
	cma_stack_int.h cma_tcb_defs.h cma_util.h}:  New files for OSF
	thread support.
1996-10-08 17:06:17 +00:00
Fred Fish
7336948874 * buildsym.c (finish_block): Change innerblock_anon_complaint to
print the addresses as part of the complaint.  Add a complaint for
	cases where the block end address is smaller than the block start
	address, in case any such conditions slip through our fixup mechanism.
	* symmisc.c (dump_symtab): Only print blockvector for primary
 	symtabs, to avoid massive duplication of output due to secondary
 	symtabs that point to same blockvector.  Also do some minor
	formatting tweaks.
1996-10-07 17:58:56 +00:00
Per Bothner
7f8da359a8 Replace header_files global by per-objfile field.
* gdb-stabs.h (struct dbx_symfile_info):  Add fields header_files,
	n_header_files, n_allocated_header_files.
	* stabsread.h (header_files, n_header_files, n_allocated_header_files):
	Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
	N_ALLOCATED_HEADER_FILES.
	* dbxread.c (dbx_symfile_finish):  Free HEADER_FILES.
	(free_header_files, init_header-files):  Don't free/init headerfiles.
	(various functions):  Use macros instead of header_files globals.
	* stabsread.c (various functions):  Likewise.
1996-10-07 17:45:29 +00:00
Jason Merrill
e61a754e39 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
* dwarf2read.c (read_tag_reference_type): New fn.
	(read_type_die): Call it.
	(dwarf_attr): Also look in the DIEs referred to by specification
 	or abstract_origin attributes.
1996-10-07 17:18:24 +00:00
Fred Fish
5bb23a95f4 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
SIGTRAMP_END.
	* config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
	Define with dummy pc arg.
	* config/m68k/tm-nbsd.h: Ditto.
	* doc/gdbint.texinfo: Document that SIGTRAMP_START and
	SIGTRAMP_END are macros that take an single argument.
1996-10-03 17:05:00 +00:00
Stan Shebs
407e05d604 Fix a stutter
Fix a stutter
1996-10-01 05:15:10 +00:00
Fred Fish
f646eef47b * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
"p func1 ()" and note that rests of tests are skipped.
	* gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print func2::coremaker_local".
	Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
	* gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
	affected by the previous run test.
	* gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
	"print array () ubyte (foo)" and "print/x array () byte (\$i)"
	* gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
	"pass int powerset tuple" and "pass modeless int powerset tuple".
	* gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
	"real write 4" and "real write 8".
	* gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print vs1 after tuple assign 2",
	"print \$i after tuple assign 2", and
	"print vs2 after tuple assign 2".
	* lib/gdb.exp (gdb_test): When a gdb aborts, print a more
	meaningful error message and return -1 so the caller can
	suppress further tests and avoid a cascade of errors.
1996-10-01 03:29:45 +00:00
Fred Fish
b51843d888 * defs.h: Remove define of PRIVATE_XMALLOC. 1996-10-01 03:04:13 +00:00
Stu Grossman
1a282a7d41 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC. 1996-09-30 22:42:23 +00:00
Jeff Law
e20c36baa7 * top.c (execute_control_command): Free values from while_control
and if_control conditions after evaluation to avoid storage leaks.
        From Peter Schauer.
Fixes 10442.
1996-09-30 17:16:35 +00:00
Fred Fish
4d99d4eaaf Make sanitize-v850 lines into comments and rebuild configure 1996-09-28 15:22:09 +00:00
Fred Fish
0d4c1152af Remade configure, which appears to have gotten out of sync
with the current files it is built from.
1996-09-28 15:14:27 +00:00
Stu Grossman
8d622d4c7c Sanitize for v850. 1996-09-28 01:23:45 +00:00
Stu Grossman
2652deb7e0 Sanitize v850 shit. 1996-09-28 01:16:06 +00:00
Stu Grossman
1fa83dcd66 Add configure. 1996-09-28 01:11:34 +00:00
Stu Grossman
0ce9347cea v850 shit 1996-09-28 01:08:10 +00:00
Stu Grossman
f6c6791e0a Sanitize out v850 stuff. 1996-09-28 01:00:59 +00:00
Stu Grossman
e281063162 * configure.in: Recognize v850 target.
* v850-tdep.c:  New file, NEC V850 target support.
	* config/v850/{v850.mt tm-v850.h}:  New files for NEC V850 support.
1996-09-28 00:59:13 +00:00