Commit Graph

5592 Commits

Author SHA1 Message Date
Kung Hsu 2858b1f25e * solib.c (solib_map_sections): Copy full path name into so_list
structure so that symbol_file_add can find it.
1995-09-08 20:00:56 +00:00
David Edelsohn 70943b5f0b * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
have size 4.
	(REGISTER_VIRTUAL_SIZE): Likewise.
	(REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
	Upper 32 fp regs have type double.
	* sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
	(FP_REGISTER_BYTES): this, and update all uses.
	(FP_MAX_REGNUM): Define if not already.
	(get_saved_register): Handle new sparc64 fp regs.
	(sparc_frame_find_saved_regs): Likewise.
	(sparc_print_register_hook): Only print fp regs < 32 as doubles.
	Add code to handle long doubles when gdb does.
	(_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
1995-09-06 21:35:20 +00:00
Peter Schauer 5b1748d494 * gdb.base/setvar.exp: Add new testcases for truncation when
assigning invalid values to bitfields.
1995-09-02 13:49:32 +00:00
Peter Schauer 5e711e7f50 * configure.in: Explicitly `exit 0' for broken shells.
* configure:  Rebuilt.

	* symtab.c (list_symbols):  Add missing blank after
	`<function, no debug info>' output.

	* valops.c (value_assign):  Handle truncation when assigning
	to bitfields. Use value_copy to construct the return value
	from toval.
	* values.c (value_copy):  Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
1995-09-02 13:48:16 +00:00
Fred Fish 218f9f03b8 * gdb.base/callfuncs.exp (do_function_calls): Remove
mips-sgi-irix* xfail for
	"call inferior func with struct - returns char *"
	and fix test so that an optional (unsigned char *) cast is
 	accepted in the result.
1995-09-02 07:25:13 +00:00
Fred Fish c08e5694d9 * gdb.base/funcargs.exp (float_and_integral_args): Remove
sparc-sun-solaris2* xfail for "print f1 after run to call2a".
	* gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
	* gdb.base/signals.exp: Remove duplicate "handle all print" test
	that accidentally got checked in.
1995-09-01 21:01:24 +00:00
Jackie Smith Cashion 180fd370b1 Ideally the "remote-mips.c" prompt spotting code should be updated to
spot different prompts at run-time, so as to avoid having target
specific versions of gdb. This is a pending TODO.

Fri Sep  1 08:25:50 1995  James G. Smith  <jsmith@beauty.cygnus.com>

        * configure (mips64*vr4300*-*-elf): Support added.
        * remote-mips.c (mips_readchar): Change to allow build-time prompt
        string.
        * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
        * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h,
        tm-vr4300el.h}: Added.
1995-09-01 15:33:14 +00:00
Jim Wilson 07846c7a1f * config/sh/sh.mt (SIM): Add -lm. 1995-08-31 19:59:59 +00:00
Kung Hsu 9b73a4677d * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
conform to GNU coding standards.
1995-08-31 01:21:57 +00:00
Kung Hsu 0858c908aa * remote.c (remote_wait): Revert 19 July my change which should be
customer specific.
1995-08-29 00:11:16 +00:00
Fred Fish 5762d8c6f3 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
	compiled test.
	* gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
	Add mips-sgi-irix5* xfail for not gcc compiled.
	* gdb.base/Makefile.in (nodebug.o):  Also create nodebug.ci.
	* gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
	"p top", "whatis top", "p middle", and "whatis middle".
	* gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
	"whatis signed char" for not gcc compiled.
	* gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
	"set variable signed char=-1 (-1)" and
	"set variable signed char=0xFF (0xFF)" for not gcc compiled.
	* gdb.base/funcargs.exp (float_and_integral_args):
	Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
	Add mips-sgi-irix* xfail when not gcc compiled for
	"continue to call2b".
	Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
	"continue to call2g".
	(discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
	"backtrace from call6a"
	(shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
	"backtrace from call7k".
	Add mips-sgi-irix5* xfail when not gcc compiled for
	"backtrace from call7a".
	(localvars_after_alloca):  Fix gdb_test cmds for
	"print * after runto ...".
	Remove rs6000-*-* xfails for
	"print i after runto localvars_after_alloca" and
	"print l after runto localvars_after_alloca"
	for all compilers.
	* gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
 	when not compiled with gcc, for:
	"print signed char == (minus)",
	"print signed char != (minus)",
	"print signed char < (minus)",
	"print signed char > (minus)".
	* gdb.base/callfuncs.exp (do_function_calls):
	Add mips-sgi-irix* xfail, when compiled with native compiler, for
	"call inferior func with struct - returns char *".
	* gdb.base/return.exp (return_tests): Change xfail for
	"correct value returned double test" to include Solaris 2.4.
	* gdb.base/funcargs.exp (float_and_integral_args):
	Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1995-08-28 09:44:14 +00:00
Peter Schauer 3c88a10a65 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
enumeration bitfields if compiling with GNU C.
	* lib/gdb.exp:  Consume `(y or n) ' in `Reinitialize source path
	to empty' prompt.
1995-08-26 07:36:45 +00:00
Peter Schauer 080868b466 * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
	(parse_type):  Handle btIndirect types, handle fBitfield for
	some non-member types.
	(upgrade_type):  Use TYPE_FLAG_TARGET_STUB for arrays with
	unknown length.
	(cross_ref):  Handle stIndirect forward reference to btTypedef.

	* stabsread.c (read_enum_type):  Determine signedness of enum
	type from enumerators.

	* top.c (execute_command):  Remove trailing whitespace from
	command arguments, except for `set' and `complete' commands.
	(validate_comname):  Allow underscores in user defined command
	names.

	* values.c (modify_field):  Change `Value does not fit in %d bits'
	error to a warning. Exclude sign extension bits of negative field
	values from fit check.
1995-08-26 07:35:13 +00:00
Michael Meissner 13ba8b6927 Only build PowerPC simulator if target is powerpc*-*-eabisim 1995-08-25 16:05:32 +00:00
Michael Meissner 19c3fec4bf Link in PowerPC simulator. 1995-08-23 20:59:06 +00:00
Jeff Law b9ba33e6f0 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
test for PRO targets.
1995-08-22 19:09:39 +00:00
Jeff Law 740e802827 * tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values. 1995-08-22 09:52:33 +00:00
Jeff Law 90df364f49 * tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
calling conventions too.  Use the TYPE of the return value, not
	its length to determine if it should also be copied into the
	floating point registers.
1995-08-22 08:13:34 +00:00
Jeff Law 7e72b115ad * tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
problems than it fixes.
	* hppa-tdep.c (skip_prologue): If we exit the main loop without
	finding all the register saves, retry again without looking for
	the registers we could not find the first time.

Better fix for 7768.
1995-08-22 08:04:15 +00:00
Jeff Law bed1eef3b6 Opps. Fix thinko in last change. 1995-08-22 06:51:47 +00:00
Jeff Law 80d28979c5 * gdb.base/funcargs.exp: Avoid ever setting more than 8
breakpoints in the inferior at any given time by making
	two groups of breakpoints for call2*, call6* and call7*
	tests.
1995-08-22 06:36:40 +00:00
Jeff Law c85ff3a363 * hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
calls "main" directly.
	(skip_prologue): Always assume arguments were saved into the stack
	since GCC will do so without setting the magic Args_Saved bit in
	the unwind descriptor.
1995-08-22 05:43:30 +00:00
Kung Hsu bb8e4e4d95 * remote-udi.c (udi_wait): Mask off high bits of stop reason.
* remote-udi.c (fetch_register): For unfetchable regs, pretend it's
	done. Fix a bug.
1995-08-21 18:56:04 +00:00
Jeff Law fa296a0c44 * Makefile.in (install): Remove "brokensed" hack, unnecessary now
that we're using autoconf.
	(uninstall): Likewise.
1995-08-21 06:49:42 +00:00
Peter Schauer 715682510e * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
* gdb.base/callfuncs.c (main):  Use struct_val1 to inhibit xlc
	from optimizing it away.
	* gdb.base/callfuncs.exp:  Remove rs6000-*-* xfails for
	"call inferior func with struct".
1995-08-20 14:03:45 +00:00
Michael Tiemann f61f41d929 Wire up the breakpoint window so that it works. Also, fix a typo that
kept the breakpoints in the source window from updating when enabled or
disabled.
1995-08-20 00:26:54 +00:00
Peter Schauer 2447e9afab * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
to inhibit infinite recursion when printing aggregate types.
1995-08-19 08:21:23 +00:00
Steve Chamberlain 69c626a9aa * dcache.c (dcache_write_line): Write dirty lines right. 1995-08-19 00:54:12 +00:00
Peter Schauer 673e1bab44 * sparc-tdep.c (isbranch): Fix typo which caused wrong
target addresses for annulled branches.
1995-08-18 13:27:21 +00:00
Jeff Law 1ce8a30f17 * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.
Yes, this dusty old macro is really the right thing to do when you've
got a port which performs scheduling on prologues...  Fixes latest
mentor gdb PR.
1995-08-17 04:01:24 +00:00
Stan Shebs 46ce3de0a9 * configure.in: Only configure gdb.chill for particular targets. 1995-08-16 19:03:10 +00:00
Fred Fish ce102e96e6 * gdb.base/Makefile.in: Add action to .c.o transformation
rule that generates a .ci file for each .o file and remove
	explicit .c.o rules except for callfuncs.o.
	* gdb.c++/Makefile.in:  Add .cc.o transformation rule that
	generates a .ci file for each .o file and remove explicit
	.cc.o rules.
	(clean): Remove *.tmp *.ci files.
	(EXECUTABLES): Remove templ-info.exp.
	* gdb.base/compiler.c: New file.
	* gdb.c++/compiler.cc: New file
	* gdb.base/scope.exp: Source gdb.base/scope.ci.
	Change rs6000-*-* xfail for
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal" and
	"print 'scope1.c'::filelocal_bss" and
	"print 'scope1.c'::filelocal_ro" and
	"print 'scope1.c'::foo::funclocal" and
	"print 'scope1.c'::foo::funclocal_ro" and
	"print 'scope1.c'::bar::funclocal" and
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal at foo" and
	"print 'scope1.c'::filelocal_bss at foo" and
	"print 'scope1.c'::filelocal_ro at foo" and
	"print 'scope1.c'::foo::funclocal at foo" and
	"print 'scope1.c'::foo::funclocal_bss at foo" and
	"print 'scope1.c'::foo::funclocal_ro at foo" and
	"print 'scope1.c'::bar::funclocal at foo" and
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal" and
	"print 'scope1.c'::filelocal_bss" and
	"print 'scope1.c'::filelocal_ro" and
	"print 'scope1.c'::foo::funclocal" and
	"print 'scope1.c'::foo::funclocal_bss" and
	"print 'scope1.c'::foo::funclocal_ro" and
	"print 'scope1.c'::bar::funclocal" and
	"print 'scope1.c'::bar::funclocal_bss"
	to only be xfail'd when not compiled with gcc.
	Add rs6000-*-* xfail for
	"print 'scope0.c'::filelocal_bss before run"
	when compiled with gcc.
	(test_at_main): Add rs6000-*-* xfail for
	"print filelocal_ro in test_at_main"
	when compiled with gcc.
	* gdb.base/ptype.exp: Source gdb.base/ptype.ci.
 	Add rs6000-*-aix* xfail for
	"whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
	"ptype t_char_array",  not compiled with gcc.
	* gdb.base/list.exp (test_list_function):  Add rs6000-*-*
	xfail for "list foo (in include file)" when gcc	compiled.
	* gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
 	(integral_args): Add rs6000-*-* xfail for
	"run to call0a" if not compiled with gcc.
	(unsigned_integral_args): Add rs6000-*-* xfail for
	"run to call1a" if not compiled with gcc.
	(float_and_integral_args):  Add rs6000-*-* xfail for
	"run to call2a" if not compiled with gcc and for
	"continue to call2b" for any compiler.
	Add rs6000-*-* xfail to
	"print f1 after run to call2a" for gcc compiled.
	(discard_and_shuffle): Add rs6000-*-* xfail for
	"run to call6a".
	(shuffle_round_robin): Add rs6000-*-* xfail for
	"backtrace from call7a" if not compiled with gcc.
	Add rs6000-*-* xfail for
	"backtrace from call7b" if compiled with gcc.
	(call_after_alloca): Add rs6000-*-* xfail for
	"print c in call_after_alloca" and
	"print s in call_after_alloca" and
	"backtrace from call_after_alloca_subr"
	if not compiled with gcc.
	(localvars_in_indirect_call): Add rs6000-*-* xfail for
	"print c in localvars_in_indirect_call" and
	"print c in localvars_in_indirect_call" and
	"backtrace in indirectly called function" and
	"stepping into indirectly called function"
	if not compiled with gcc.
	(localvars_after_alloca): Add rs6000-*-* xfail for
	"print c after runto localvars_after_alloca" and
	"print s after runto localvars_after_alloca" and
	"print i after runto localvars_after_alloca" and
	"print l after runto localvars_after_alloca"
	for all compilers.
	* gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
	than whatis-info.exp.
	* gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
	than opaque-info.exp.
	Setup rs6000-*-* xfail for
	"ptype on opaque struct pointer (statically)" and
	"ptype on opaque struct pointer (dynamically)" when
	not compiled with gcc.
	* gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
	rather than callf-info.exp.
	(do_function_calls):  Add clear_xfail for rs6000-*-* for
	"p t_float_values2(3.14159,float_val2)".  Seems to work
	fine there, both with xlc and gcc.  Need to find out what
	it is doing right and fix other platforms.
	* gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
	"call inferior func with struct - returns int",
	"call inferior func with struct - returns long",
	"call inferior func with struct - returns float",
	"call inferior func with struct - returns double",
	"call inferior func with struct - returns char *",
	but only if not gcc compiled (presumes xlc compiled).
	Change rs6000-*-* xfails for
	"call inferior func with struct - returns char" and
	" call inferior func with struct -  returns short" to only
	xfail if not using gcc.
	(clean mostlyclean):  Remove *.ci and *.tmp files.
	* gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
	than templ-info.exp.
	* gdb.base/langs.exp:  Source gdb.base/langs.ci.
	Add rs6000-*-* xfail for "up to foo in langs.exp"
	"up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
 	when not gcc compiled.
1995-08-16 07:37:19 +00:00
Steve Chamberlain ec10503a73 * remote.c (remote_write_bytes): Chop up large transfers. 1995-08-15 14:53:24 +00:00
Stan Shebs e551745b23 Departure of gcc.patch 1995-08-15 01:10:44 +00:00
Stan Shebs dd17dde6de * gcc.patch: Remove, relevant only to long-ago versions of GCC. 1995-08-15 01:07:54 +00:00
Kung Hsu ae71adb82b * blokcframe.c (inside_main_func): Add comments. 1995-08-14 22:15:16 +00:00
Kung Hsu 56c423fec5 * blockframe.c (inside_main_func): Fix a typo in previous change. 1995-08-14 21:42:17 +00:00
Kung Hsu 1deb3d7ac4 * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE. 1995-08-14 20:46:59 +00:00
Kung Hsu 0e2c2c1e3b * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.
* blockframe.c (inside_main_func): If main func addr range not set,
	try to set it now.
1995-08-14 20:45:51 +00:00
Jeff Law 407f52c1a2 * config/powerpc/xm-aix.h (FIVE_ARG_PTRACE): Define.
* config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.

So we can build under aix4 with an ansi compiler (should not effect aix3
since aix3 doesn't have a ptrace prototype).
1995-08-13 06:11:38 +00:00
Jeff Law 65eaea2742 * configure.in: Recognize aix4 specially as some aspects
of aix4 need different handling than aix3.
        * configure: Updated.
        * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: New files
        specific to aix4 support on the power pc.
        * config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do
        not defined.  The aix4 specific target files will do that.
        * config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files
        specific to aix4 support on the rs6000.

        * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't
        do the conversion if the pointer is not a magic aix function
        pointer.
        * rs6000-tdep.c: Include objfiles.h and symtab.h.
        (is_magic_function_pointer): New function.

        * rs6000-tdep.c (skip_prologue): Refine check for frameless
        functions.  Handle b .+4 emitted by aix4 compilers.  Only
        allow one load of a minimal toc pointer.  Handle aix4 compiler's
        code for alloca.

        * rs6000-tdep.c (find_toc_address): Report an error if no toc was
        found rather than possibly core dumping.

        * partial-stab.h: Handle extra field generated by the aix4 compiler
        for enumerations.
        * stabsread.c (read_enum_type): Likewise.
1995-08-12 22:50:04 +00:00
Jeff Law 5c6f833bb0 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/scope.exp: Likewise.
        * gdb.base/siganls.exp: Likewise.

        * gdb.base/nodebug.exp: Add xfails for the powerpc.  Handle aix4
        compiler output.
        * gdb.base/whatis.exp: Likewise.
1995-08-12 22:11:33 +00:00
Peter Schauer 07781ac0c3 * rs6000-tdep.c (extract_return_value): Fix returning of values
whose length is less than the register size for big endian targets.
1995-08-12 10:21:12 +00:00
Kung Hsu f21c9aecae * symtab.c (list_symbols): if break command set breakpoint on matched
symbol.
1995-08-11 20:15:21 +00:00
Jeff Law e334d7ea9d * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
failure (opcode table has been fixed to match reality).
1995-08-11 19:39:26 +00:00
Fred Fish 06c87bef35 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
"backtrace through signal handler" to "i*86-*-sysv4*".
	* gdb.base/signals.exp: Add xfail for "'next' behaved as
	continue" case.  Add "known SVR4 bug" to fail message.
	Add "i*86-*-bsdi2.0" xfail for "handle all print".
	Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
	* gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
	"whatis unnamed typedef'd enum..." and "ptype t_char_array".
	* gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
	"up to foo in langs.exp", "show language at foo in
	langs.exp", "up to cppsub_ in langs.exp", "show
	language at cppsub_ in langs.exp", "up to fsub in
	langs.exp", and "show language at fsub in langs.exp".
	* gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
	"bactrace in corefile.exp".
	* gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
	"call inferior function with struct - returns float" and
	"call inferior function with struct - returns double".
1995-08-11 16:42:45 +00:00
Fred Fish eae45ea981 * defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in
#ifndefs to protect against previous definitions as macros.
	* HOW_TO_RELEASE:  Continue updating...
1995-08-11 16:39:14 +00:00
Kung Hsu 38fb211bc9 * xcoffread.x (xcoff_symfile_offset): Revert an unwanted change gets
in accidentally from Aug 1 checkin.
1995-08-09 21:56:37 +00:00
Steve Chamberlain 998cfe7df0 * remote-hms.c (hms_cmds): Get reg term right.
* monitor.c (monitor_fetch_register):  If we see
	a non-hex digit, just stop reading.
 	* remote.c (remote_wait): Change way $O is handled.
1995-08-09 20:41:16 +00:00
Jeff Law 25d0e5a03a Fix typo in changelog entry. 1995-08-09 18:59:48 +00:00
Jeff Law fbc3f1913d * configure.in (powerpc-*-aix*): Recognize as a new gdb host
and target.
         (powerpc-*-eabi*): Don't set configdirs.
         (powerpcle-*-eabi*0: Likewise.
         * configure: Updated.
         * rs6000-nat.c (vmap_ldinfo): Don't relocate data addresses
         for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is
         defined.
         * config/powerpc/{aix.mh,aix.mh}: Host and target makefile fragments
         for powerpc running aix4.
         * config/powerpc/{nm-aix.h, tm-ppc-aix.h, xm-aix.h}: Native, target
         and host include files for powerpc running aix4.

More of Mike's powerpc work + minor changes.
1995-08-09 18:53:41 +00:00
Stan Shebs 327332d87d * top.c (target_output_hook): Really make it match defs.h (char *
is not the same as unsigned char *).
1995-08-09 15:16:33 +00:00
J.T. Conklin c61c48c055 * Makefile.in (CXX_FOR_TARGET): Don't use ${rootme}/../gcc/xgcc
unless it is present.
1995-08-08 22:15:20 +00:00
Jeff Law 7aaec27bc7 * top.c (target_output_hook): Make declaration match the one
in defs.h.
1995-08-08 18:01:46 +00:00
Jeff Law 842bdf8ce1 * symfile.c (add_psymbol_to_list): Initialize SYMBOL_SECTION.
(add_psymbol_addr_to_list): Likewise.
        * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Likewise.
1995-08-08 17:53:58 +00:00
Steve Chamberlain 764efb58e9 * top.c (target_output_hook): New definition. 1995-08-07 22:42:19 +00:00
Steve Chamberlain b6d70e158a * stack.c (gdb_string.h): Include after defs.h
* defs.h (target_output_hook): New declaration.
	* source.c (mod_path): Fix Win32 \ handling.
1995-08-07 22:39:00 +00:00
Jeff Law 98395eafc9 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
* gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
	* gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
	* gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.

sh3e disassembler tests.  Sanitized out for now.
1995-08-07 08:48:22 +00:00
Fred Fish db186b3db7 * gdb.base/corefile.exp: Change xfail for backtrace in
corefile.exp from linuxaout to all linux.
	* gdb.base/sigall.exp (test_one_sig):  Specifically deal with
	cases where we miss the breakpoint at the signal handler
	for some reason.  Setup xfail for linuxoldld/linuxaout and
	getting SIGIO.  Setup xfail for linuxoldld/linuxaout for
	hitting SIGURG breakpoint.
	* gdb.base/signals.exp:  Setup xfail for "next" acting like
	continue to add linuxoldld.  Setup xfail for all linux for
	"next to handler in signals_tests_1", "backtrace in
	signals_tests_1", "continue to func1", "pass SIGUSR1",
	and continue to handler".
1995-08-07 07:20:02 +00:00
Jeff Law f4eec25cb8 * hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
out of a long branch stub.

hpux10 _start is incorrectly marked as a long-branch stub.
1995-08-07 04:17:24 +00:00
Fred Fish ef8e137ced * ch-exp.y (write_lower_upper_value): Add prototype so bison
generated parser will insert prototype before first func usage.
	Bison and byacc order the output sections differently.  Also
	make function static.
1995-08-05 01:13:26 +00:00
Jeff Law d2fee216f6 * xcoffread.c (process_linenos): Fix typo in last change. 1995-08-04 20:40:44 +00:00
Stan Shebs d1307e4965 Lose EST-only files (now part of generic m68k monitor config) 1995-08-04 00:47:13 +00:00
Fred Fish 605b7789b1 Document FSF address updating of all files with FSF addresses,
except for the COPYING* files.
1995-08-03 18:42:27 +00:00
Fred Fish 471a24ce44 Add ChangeLog, pr-5984.ch, pr-5984.exp. 1995-08-03 17:07:16 +00:00
Fred Fish 7abd80b9d3 Add hppro.exp, monitor.exp. 1995-08-03 17:06:45 +00:00
Fred Fish 87544f53d2 Remove keep-chill stuff from .Sanitize and add gdb.chill to things to
keep.  Remove sanitize references in ChangeLog.  Remove start/end
sanitize-chill lines in Makefile.in.
1995-08-03 16:56:36 +00:00
Fred Fish fb333bb871 Add configure to r16_files and arc_files in .Sanitize
Remove references to .Sanitize in ChangeLogs, start updating
always sanitized away file HOW_TO_RELEASE.
1995-08-03 16:48:48 +00:00
Peter Schauer adbe434b92 * config/alpha/tm-alpha.h (EXTRA_FRAME_INFO): Add pc_reg field.
(SKIP_TRAMPOLINE_CODE):  Define.
	* alpha-tdep.c (alpha_frame_saved_pc):  Use pc_reg field from
	frame to find the saved pc register.
	(alpha_saved_pc_after_call):  Skip over shared library trampoline
	before trying to find the saved pc register.
	(find_proc_desc):  Copy PROC_PC_REG from found proc_desc
	to heuristic proc_desc.
	(init_extra_frame_info):  Initialize pc_reg field in frame.
1995-08-03 09:17:51 +00:00
Stan Shebs 949e2bbf44 * configure.in (m68*-est-*): Use monitor target config.
* configure: Update.
	* config/m68k/est.mt, config/m68k/tm-est.h: Delete.
	* config/m68k/monitor.mt, config/m68k/tm-monitor.h: Fix comments.
1995-08-03 01:07:32 +00:00
Fred Fish 7613212c97 * Makefile.in (VERSION): Bump to 4.14.2 1995-08-02 05:55:49 +00:00
Fred Fish 6c9638b444 Update FSF address. 1995-08-02 03:41:12 +00:00
Kung Hsu fc564b1858 * xcoffread.c (process_linenos): The value in include file symbol
should point to line number table. Currently this value is not
	set correctly by AIX ld. A fix to get around this bug.
1995-08-01 23:09:20 +00:00
J.T. Conklin 2b57629364 * configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h.
* configure: Regenerated.

* gdb_stat.h: New file, "portable" <sys/stat.h>.
* gdb_string.h: New file, "portable" <string.h>.

* altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
instead of <sys/stat.h>.

* alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
"gdb_string.h" instead of <string.h>.
* gdbtk.c: Likewise.

* config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
sparc/xm-sun4os4.h (HAVE_MMAP): Removed.

* config/xm-lynx.h, config/i386/xm-ptx.h,
config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
config/pa/hppah.h, config/rs6000/xm-rs6000.h,
config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
* config/mips/xm-irix3.h, config/mips/xm-mips.h,
config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1995-08-01 20:14:27 +00:00
Peter Schauer 92a6d60053 * mips-tdep.c (mips_extract_return_value): Fix returning of
values whose length is less than the register size for big endian
	targets.
	* alpha-tdep.c (alpha_extract_return_value,
	alpha_store_return_value):  Use alpha_convert_register_to_*
	to handle functions returning "float" correctly.
1995-08-01 09:20:05 +00:00
Stan Shebs ec7b6fcf7f * h8500-tdep.c: General linting and cleanup.
(opcodes/h8500-opc.h): Don't include.
	(code_size, data_size): Make static.
	(frame_locals_address, frame_args_address): Remove.
	(h8300_pop_frame): Rename to h8500_pop_frame.
	(big_command, medium_command, compact_command, small_command):
	Define as regular functions rather than with macro trickery.
	(tm_print_insn): Set to correct disassembler function.
	* config/h8500/tm-h8500.h: Minor cleanup, add prototypes.
	(ABOUT_TO_RETURN): #if 0 out.
	(FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Use usual define.
	(GDB_TARGET_IS_H8500): Remove duplicate	definition.
	(regoff): Remove, never used.
	* config/h8500/h8500.mt (TDEPFILES): Add monitor.o.
1995-08-01 02:37:02 +00:00
J.T. Conklin 19f5d8f164 Oops, don't edit a file when your checkin hasn't finished 1995-07-31 22:50:21 +00:00
J.T. Conklin 1a49497348 * configure.in: Check for unistd.h.
* configure: Regenerated.

* command.c, cp-valprint.c, fork-child.c, i386-tdep.c,
i386b-nat.c, inflow.c, main.c, maint.c, objfiles.c, solib.c,
source.c, stack.c, symfile.c, top.c, utils.c: Include strings.h
and/or unistd.h to bring prototypes into scope.
1995-07-31 22:46:03 +00:00
Fred Fish 62b1697ed7 Add file documenting basic procedures for gdb release manager to produce
FSF releases.  Set up .Sanitize to always remove this file.
1995-07-31 15:57:25 +00:00
Fred Fish 85934f3b48 * gdb.base/a2-run.exp: Change messages to be more explicit about
the status of args, and quote binfile in results.
1995-07-31 01:18:44 +00:00
Fred Fish eed4066f6b * gdb.base/callfuncs.exp: Add tests for passing structs to
inferior functions and return various types.
	* gdb.base/callfuncs.c: Add functions to receive a struct
	and return a member of the struct, in various types.
1995-07-30 19:29:36 +00:00
Peter Schauer 965dde97f0 * rs6000-tdep.c (frame_saved_pc): Check for signal handler caller
before trying to determine the start of the function.
	(skip_prologue):  Skip subroutine call which might save the
	floating point registers only if it is within the first three
	instructions.
	Reinstate setting of alloca_reg if setup of a gcc frame pointer
	is found.
	(frame_get_cache_fsr):  Use new fields in rs6000_framedata.
1995-07-30 08:45:15 +00:00
Fred Fish 7a13a704fe Fix problem with configure script when run on systems where native shell
is bash or ksh, which handles "... $(TCL) ..." by trying to run TCL.
Changed configure.in and regenerated configure, including two lines
apparently inserted by custom cygnus version of autoconf 2.4.
1995-07-30 01:15:54 +00:00
Stan Shebs fce537aeb2 Remove mentions of nonexistent things, add lose-mswin to control inclusion
of WinGDB stuff separately.
1995-07-29 22:43:07 +00:00
Stan Shebs 86b40da4da * sparclite: Removed subdirectory. aload and eload are now in
utils/sparclite, low-level library is in libgloss.
	* configure.in (sparclite*): Don't configure sparclite subdir.
	* configure: Update.
	* Makefile.in (TARDIRS): Remove, no longer used.
1995-07-29 21:59:26 +00:00
Peter Schauer 96fd3d08f9 * gdb.base/Makefile.in (clean): Remove callf-info.exp. 1995-07-29 21:24:39 +00:00
Peter Schauer b6753b3f6f * procfs.c (unconditionally_kill_inferior): Clear current signal
if PROCFS_NEED_CLEAR_CURSIG_FOR_KILL is defined.
	* config/alpha/nm-osf3.h (PROCFS_NEED_CLEAR_CURSIG_FOR_KILL):  Define.
1995-07-29 20:56:22 +00:00
Peter Schauer e3c05e1758 * config/mips/tm-irix3.h, config/mips/tm-irix5.h,
config/mips/tm-mipsv4.h (SIGFRAME_FPREGSAVE_OFF):  Define.
1995-07-29 08:50:35 +00:00
Peter Schauer e4dbd248df * alpha-tdep.c: Move sigtramp handling of saved registers from
read_next_frame_reg to alpha_find_saved_regs, handle saved
	floating point registers.
	* mips-tdep.c:  Move sigtramp handling of saved registers from
	read_next_frame_reg to mips_find_saved_regs, handle saved
	floating point registers.
	* config/mips/tm-irix3.h, config/mips/tm-irix5.h,
	config/mips/tm-mipsv4.h (SIGFRAME_FPREGSAVE_OFF):  Define.

	* sparc-tdep.c (sparc_pc_adjust):  Fix check for `unimp'
	instruction to handle functions returning structures with
	large sizes properly.
1995-07-29 08:50:00 +00:00
Brendan Kehoe ac72325fa8 * config/vxworks29k.exp: New file, sources vxworks.exp. 1995-07-28 20:36:50 +00:00
Steve Chamberlain ab7c53aed5 * configure, configure.in (z8k-*-sim): deleted. 1995-07-28 18:57:30 +00:00
Jeff Law e72d862288 * config/gdbremote.exp: New file. Testing framework using
gdbserver.

Doesn't work with lynx yet, and you need to set a handful of variables
in your site.exp, but it's worth checking in now.
1995-07-28 07:31:40 +00:00
Fred Fish 3b013a3a46 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
"call function when asleep" and "send end of file".
	* gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
	for "backtrace in corefile.exp".
	* gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
	for "backtrace through signal handler".
	* gdb.base/corefile.exp: Make sure we actually generate a core file
	before trying the core tests.  Some systems allow the user to suppress
	generation of core files and default to that (linux for example).
	* gdb.base/signals.exp: Change xfail for "next" acting like "continue"
	from "i*86-*-linux" to "i*86-*-linuxaout".  Works with ELF beta.
1995-07-28 04:58:12 +00:00
Jeff Law b339391255 * lynx-nat.c (child_wait): Handle threads exiting. 1995-07-27 19:57:16 +00:00
Jeff Law ef920bd889 Forgot to commit .Santiize. 1995-07-27 19:51:44 +00:00
Michael Meissner 4b4c6c9616 More V.4/AIX fixes 1995-07-27 14:01:34 +00:00
Jeff Law 46f569b403 * hppa-tdep.c (hppa_fix_call_dummy): Rewrite code for calling
into shared libraries.

Amazing...  7363 has required serious work in gcc, gas, bfd, and now gdb...
1995-07-27 08:30:22 +00:00
Michael Meissner 068c9fd63f Better support V.4 calling sequences. 1995-07-27 03:50:05 +00:00
Jeff Law ddb97850d0 * remote.c: Add documentation for extended protocol operations
and for thread_alive change from a couple weeks ago.
	(extended_remote_ops): Declare and define a new target vector
	for the extended remote protocol.
	(extended_remote_restart): New function to restart the remote
	server & process.
	(remote_open): Just a stub routine.
	(extended_remote_open): New function to start a remote session
	using the extended gdb remote protocol.
	(remote_open_1): New function containing code common to both
	remote_open and extended_remote_open.
	(remote_mourn, extended_remote_mourn, remote_mourn_1): Similarly.
	(extended_remote_create_inferior): New function for the extended
	remote target.
	(initialize_remote): Add the extended_remote_ops target vector.
	* gdbserver/server.c (main, case '!'): Set extended_protocol.
	(main, case 'k'): If the extended protocol is in use, kill the
	inferior then start a new one.
	(main, case 'R'): New command to restart the remote server and
	inferior process.  Only supported when using the extended
	protocol.
	(main, server loop): If the inferior terminates while using the
	extended protocol then start a new one.  If getpkt fails when
	using the extended protocol then exit.

New extended remote gdb protocol support; intended mainly for use with
the gdbserver testing framework that I'll be checking in soon.  Also
useful for interactive remote debugging since it supports "run".
1995-07-26 07:17:34 +00:00
Jeff Law f27ffb51f5 * gdb.threads: New directory with some crude multi-threaded
gdb tests (step.exp and step2.exp).
        * config/mt-lynx (STEP_EXECUTABLE): Define.
        (THREADFLAGS): Define.

Hiro's test for 6100 and a crude test of my own.  They both need some
major cleanup for non-lynx hosts; both are also a little too loose in
their checks.  But I'm too burnt out on lynx to address either concern.
1995-07-26 00:35:07 +00:00
Stan Shebs 80ac01168f Oops, forgot the parens. 1995-07-25 23:35:55 +00:00
Stan Shebs 1789d5d579 * mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
line numbers using the psymtab's section offsets.
PR 7514
1995-07-25 20:16:48 +00:00
Jeff Law d9d9e56366 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx. 1995-07-25 17:09:50 +00:00
Michael Meissner 636414911e Change aix_framedata -> rs6000_framedata 1995-07-25 14:46:12 +00:00
Jeff Law 8b67f01dff * gdb.base/signals.exp: Disable whole file for lynx until
further notice.

Looks like a bug in the lynx2.2.2 kernel scroggs the stack pointer in
these tests leading to massive failures.  I've sent a nice small concise
example to Mark Rome @ lynx.  Severe braindamage.
1995-07-25 08:52:39 +00:00
Jeff Law 2f11e8d4a6 * gdb.base/signals.exp: xfail test where "next" acts like
"continue" for lynx.
1995-07-25 07:05:21 +00:00
Jeff Law 92d9020df4 * gdb.base/interrupt.exp: xfail test for calling function while
inferior is asleep for lynx.
1995-07-25 05:16:07 +00:00
Jeff Law 238436912f * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
than one cr-lf	after each command.
1995-07-25 05:12:43 +00:00
Peter Schauer fe3c360b62 * configure.in: Reinstate setting of stabsdirs variable, fix
typo in setting up configdirs for native builds.

	* gdb.base/return.exp:  Fix typo in return double test.
	* gdb.base/return.c (tmp2, tmp3):  Made global to inhibit the
	compiler from optimizing them away.
1995-07-24 06:35:58 +00:00
Jeff Law 0f7f5292ac * defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined. 1995-07-23 05:47:32 +00:00
Jeff Law f8c90568d5 * lynx-nat.c (child_thread_alive): New function. Somehow I
forgot to check this in with all the other thread_alive changes.
1995-07-21 23:52:45 +00:00
Jeff Law 2d86d216f2 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
sequences to be echo'd by gdb when using gdb_test.
	* gdb.chill/chexp.exp: Likewise.
	* gdb.fortran/exprs.exp: Likewise
1995-07-21 17:42:14 +00:00
Jeff Law 5dc74605b0 * somread.c (som_symtab_read): Add unsatisfied common symbols to
the minimal symbol table.  All common symbols are "unsatisfied"
	when -E is passed to the linker.

mentor-7462
1995-07-21 04:26:39 +00:00
Fred Fish 032f80d8d4 * top.c (show_endian): Cast first arg of printf_unfiltered to
correct type of "char *".
1995-07-20 22:04:37 +00:00
Jeff Law 5c54124bab * lynx-nat.c (child_wait): A thread_id of zero from wait apparently
means the process is single threaded, so there's no need to add
        it to the thread list.  Handle case where multi-threaded process
        reverts back to a single-threaded process.
1995-07-20 21:25:12 +00:00
Jeff Law 76087c5388 * gdbserver/low-hppabsd.c: Remove error declaration.
* gdbserver/low-sparc.c: Likewise.
	* gdbserver/low-sun3.c: Likewise.
	* gdbserver/server.h: Remove error and fatal declaration.
	* gdbserver/utils.c (error): Update to be compatable with recent
	changes in defs.h.
	(fatal): Likewise.
1995-07-20 21:04:29 +00:00
Jeff Law f1c9e4462a * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
after the inferior gdb has started.
'cuz lynx may take a couple minutes to start the inferior gdb...

        * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
        after each command.
        * gdb.base/funcargs.exp: Likewise.
        * gdb.base/gdbvars.exp: Likewise.
        * gdb.base/interrupt.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
        * gdb.c++/demangle.exp: Likewise.
        * gdb.c++/inherit.exp: Likewise.
        * gdb.chill/chexp.exp: Likewise.
        * gdb.fortran/exprs.exp: Likewise.
Just in case we can't get a version of expect that sets the tty modes
right on lynx to avoid this problem.
1995-07-20 20:33:39 +00:00
Jeff Law 9ce4ab8471 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
test if we can't handle IO to/from the inferior.
1995-07-20 19:21:28 +00:00
Jeff Law 35e7ac7f54 * gdb.c++/misc.exp: Always check for a program already being
started after sending a "run" command to gdb.
1995-07-20 19:03:51 +00:00
Jeff Law b26202930b * gdb.base/twice.exp: Start with a fresh gdb. 1995-07-20 18:52:10 +00:00
Jeff Law 780f976310 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
only depend on gdb's expression code, not the chill runtime.
1995-07-20 18:50:31 +00:00
Jeff Law f20dfd566a * gdb.base/return.c: Put return values into variables so we
can have gdb print them rather than depending on the program
	to print them.
	* gdb.base/return.exp: Corresponding changes.
1995-07-20 18:43:53 +00:00
Jeff Law 46e8d4117a * lib/gdb.exp: Provide default value for noinferiorio.
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
	the inferior.
1995-07-20 18:27:55 +00:00
Jeff Law 8c72d4fcf6 * gdb.base/break.exp: Always check for a program already being
started after sending a "run" command to gdb.
	(text_next_with_recursion): Don't check the output from the
	program's printf statement.  Instead just make sure the program
	exited.
1995-07-20 17:50:05 +00:00
Jeff Law f4c40a88f3 * gdb.base/commands.exp: Protect tests which need arguments with
$noargs conditionals.
1995-07-20 17:41:18 +00:00
Peter Schauer 4bbec291b2 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
of structure member arrays to match gdb/valops.c:value_addr change.
1995-07-20 05:54:31 +00:00
Peter Schauer 5488b3b7a6 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
correctly map floating point registers numbers.
1995-07-20 05:53:28 +00:00
Peter Schauer bbcc95bdb1 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
correctly map floating point registers numbers.

	* dwarfread.c (locval, new_symbol):  Handle variables that are
	optimized out.

	* mdebugread.c:  Replace all uses of builtin_type_* with
	mdebug_type_*. Define and initialize mdebug_type_*.

	* serial.h (serial_close):  Add additional argument `really_close'.
	(SERIAL_CLOSE):  Update serial_close call accordingly.
	(SERIAL_UN_FDOPEN):  Use serial_close to handle refcnt properly.
	* serial.c (serial_close):  Handle `really_close'.
	* serial.h (scb_base):  Moved to serial.c, made static.

	* valops.c (value_addr):  Don't coerce arrays.
	(typecmp):  Coerce arrays instead of calling value_addr if necessary.
1995-07-20 05:52:42 +00:00
Stan Shebs f94cadf988 From Richard Earnshaw (rearnsha@armltd.co.uk):
* gdb.texinfo (convenience variables): Document $_exitcode.
	(quit): Document optional expression to use as exit code.
1995-07-20 02:12:09 +00:00
Stan Shebs 641c7fdfd7 From Richard Earnshaw (rearnsha@armltd.co.uk):
* infrun.c (wait_for_inferior): Set the convenience variable
	$_exitcode to the termination code of the inferior.
	* top.c (quit_command): Accept optional expression to use
	as parameter to exit().
1995-07-20 02:09:30 +00:00
Kung Hsu 1dde91596e * remote.c (remote_wait): When getting registers, check endianess and
do conversion if necessary.
1995-07-19 21:45:45 +00:00
Jeff Law 75675683a8 * gdbserver/low-hppabsd.c: New file.
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
        * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o
        (GDBSERVER_DEPFILES): Add low-hppabsd.o
        * config/hppaosf.mh: LIkewise.

Needed this for the gdbserver framework development.  Trying to avoid doing
development work on lynx for the obvious reasons.
1995-07-18 06:49:21 +00:00
Jeff Law c2aa5a891e * gdbserver/low-hppabsd.c: New file.
* gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
        * config/hppabsd.mh (XDEPFILES): Add ser-tcp.o
        (GDBSERVER_DEPFILES): Add low-hppabsd.o
        * config/hppaosf.mh: LIkewise.

Needed this for the gdbserver framework development.  Trying to avoid doing
development work on lynx for the obvious reasons.
1995-07-18 06:46:49 +00:00
Fred Fish 6b14af2bc6 * dache.c (struct dcache_block): Change data member from unsigned char
to char, since everything passed in and out of dcache is char or casted
	to appropriate type anyway.
	(dcache_alloc):  Move assignment of db out of test and combine separate
	tests into if-else.
	(dcache_peek_byte):  Change ptr from unsigned char* to char*.
	(dcache_peek_byte):  Remove now unnecessary cast in read_memory call.
	(dcache_peek):  Change cast of incoming data arg.
	(dcache_poke):  Change cast of addr of incoming data arg.
	(dcache_info):  Mask data passed to printf_filtered to lsbyte only.
	(dcache_info):  Change printf_filtered arg from "% 2x" to " %2x".
	* target.c (debug_to_thread_alive): Change return type to int and
	return zero, for type compatibility with other *_thread_alive funcs.
	(cleanup_target): Change cast of ignore function to match type of the
	to_thread_alive member.
	* defs.h (error_hook): Add ATTR_NORETURN.
	* defs.h (NORETURN, ATTR_NORETURN):  Switch from volatile to
	__attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug.
	* remote.c (remote_wait):  Cast first arg to strtol, strchr, and strncmp
	to "const char *" from "unsigned char *".
	(remote_wait):  Cast arg to putpkt and strcpy from "unsigned char *" to
	"char *".
	(remote_wait):  Change printf format for long arg from "%d" to "%ld".
	(getpkt):  Remove unused variable "bp".
	(remote_fetch_word, remote_store_word):  Ifdef out apparently unused
	functions.
	* breakpoint.c (watchpoint_check):  Removed unused variables
	"saved_level" and "saved_frame".
	* valops.c (value_arg_coerce):  Add other enum TYPE_CODE_* and
	default cases to switch for completeness.
	* infrun.c (wait_for_inferior):  Enclose "have_waited" label
	in #ifdef that matches the one in which it is referenced.
	* ser-unix.c (hardwire_noflush_set_tty_state):  Enclose otherwise
	unused variable "state" in #ifdef that matches one in which it is
	referenced.
	* eval.c (evaluate_subexp_standard):  Remove unused variable "var".
	* eval.c (evaluate_subexp_standard):  Remove unused variable "tmp_symbol".
	* valarith.c (value_subscript):  Remove unused variable "lowerbound",
	which is redeclared in a nested scope prior to use.
	* printcmd.c (print_frame_nameless_args):  Use "%ld" to print long
	arg, not "%d".
	* {mem-break.c, remote-pa.c, remote.c, saber.suppress}:
	Remove unused static var "check_break_insn_size".
	* buildsym.c (finish_block):  Add other enum LOC_* and default
	cases to switch for completeness.
	ch-lang.c (type_lower_upper):  Removed unused label "retry".
	Add other enum TYPE_* and default cases to switch for completeness.
	* f-typeprint.c (f_type_print_args):  Ifdef out unused function
	that may be used someday when Fortran support is complete.
	* ch-valprint.c (chill_print_type_scalar):  Add other enum
	TYPE_* and default cases to switch for completeness.
	(chill_val_print):  Remove unused local var "high_bound" that
	is redeclared in a nested scope prior to use.
	(chill_var_print):  Use "%ld" to print long arg, not "%d".
	* regex.c (re_compile_fastmap, re_match_2):  Add remaining enum types
	and default to switches for completeness.
	* minsyms.c (lookup_minimal_symbol_text): Delete unused variable
	"trampoline_symbol".
	(prim_record_minimal_symbol_and_info):  Return NULL rather than trash.
	* elfread.c (elf_symtab_read):  Don't dereference NULL returns from
	record_minimal_symbol_and_info.
	* f-lang.c (saved_function_list_end):  Ifdef out unused variable
	that may be used someday.
	* f-valprint.c (f_val_print):  Remove unused local variable "straddr".
1995-07-18 04:38:06 +00:00
Ian Lance Taylor f779e99f2a * stabsread.h (struct stab_section_list): Define.
(coffstab_build_psymtabs): Remove staboff and stabsize parameters.
	Add textaddr, textsize, and stabs parameters.
	* gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field.
	Add text_addr and text_size fields.
	(DBX_TEXT_SECT): Don't define.
	(DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define.
	* coffread.c: Include <ctype.h>.
	(struct coff_symfile_info): Remove stabsect and stabindexsect
	fields.  Add textaddr, textsize, and stabsects fields.
	(coff_locate_sections): Record the address of the .text section,
	and total the sizes of all sections with names beginning with
	".text".  Don't bother to record a .stab.index section (COFF
	doesn't use them).  Make a linked list of all sections with names
	beginning with ".stab".
	(coff_symfile_read): Adjust call to coffstab_build_psymtabs for
	new parameters.
	* dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and
	DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
	(dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
	DBX_TEXT_SECT.
	(elfstab_build_psymtabs): Likewise.
	(stabsect_build_psymtabs): Likewise.
	(symbuf_sections, symbuf_left, symbuf_read): New static variables.
	(fill_symbuf): If symbuf_sections is not NULL, read symbols from
	multiple sections.
	(coffstab_build_psymtabs): Remove staboffset and stabsize
	parameters.  Add textaddr, textsize, and stabsects parameters.
	Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT.  Handle
	multiple stabs sections.
	* os9kread.c (os9k_symfile_read):  Use DBX_TEXT_ADDR and
	DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
	(os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
	DBX_TEXT_SECT.
PR 7241.
1995-07-17 17:33:37 +00:00
Ian Lance Taylor 5d672f2897 * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
field.
1995-07-17 17:09:48 +00:00
Jeff Law 31ce436075 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
cases.
1995-07-17 16:14:48 +00:00
Peter Schauer c82fff91f8 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
for OSF/1-3.x procfs support.
1995-07-15 08:59:36 +00:00
Peter Schauer b8ea4fec37 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
for OSF/1-3.x procfs support.
	* configure.in (alpha-dec-osf):  Use them when configuring
	for OSF/1-3.x.
	* configure:  Updated.
	* target.c:  Include <string.h>.
1995-07-15 08:57:59 +00:00
J.T. Conklin 5f10790049 * Makefile.in, configure.in: Use one variable, frags, to hold
pathnames of makefile fragments.
* configure: regenerated.
1995-07-14 23:28:13 +00:00
Jeff Law 10f644eb64 * procfs.c (procfs_ops): Fix typo in last change. 1995-07-14 15:51:51 +00:00
Jeff Law 43fc25c87e * inftarg.c (child_thread_alive): New function to see if a
particular thread is still running.
        (child_ops): Add child_thread_alive entry.
        * remote.c (remote_thread_alive): New function to see if a
        particular thread is still alive.
        (remote_ops): Add remote_thread_alive.
        * target.c (dummy_target): Add dummy entry for thread_alive.
        (cleanup_target): de_fault thread_alive too.
        (update_current_target): INHERIT thread_alive too.
        (debug_to_thread_alive): New function.
        (setup_target_debug): Add debug_to_thread_alive.
        * target.h (struct target_ops): Add to_thread_alive.
        (target_thread_alive): Define.
        * thread.c (info_threads_command): Don't call kill; use
        target_thread_alive instead.
        * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
        * gdbserver/low-lynx.c (mythread_alive): New function.
        (mywait): Don't restart any threads after a new thread notification,
        let the generic code handle it.
        * gdbserver/low-sparc.c (mythread_alive): Dummy version.
        * gdbserver/low-sun3.c (mythread_alive): Likewise.
        * gdbserver/server.c (main): Handle thread_alive requests.
        * gdbserver/server.h (mythread_alive): Declare.
        * corelow.c (core_ops): Add dummy entry for thread_alive.
        * exec.c (exec_ops): Likewise.
        * m3-nat.c (m3_ops): Likewise.
        * monitor.c (monitor_ops): Likewise.
        * procfs.c (procfs_ops): Likewise.
        * remote-arc.c (arc_ops): Likewise.
        * remote-array.c (array_ops): Likewise.
        * remote-e7000.c (e7000_ops): Likewise.
        * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
        * remote-mips.c (mips_ops): Likewise.
        * remote-pa.c (remote_hppro_ops): Likewise.
        * remote-sim.c (gdbsim_ops): Likewise.
        * sparcl-tdep.c (sparclite_ops): Likewise.

More lynx-6100 work
1995-07-13 21:40:22 +00:00
Fred Fish 6942380809 * configure.in (configdirs): Remove gdb.chill from default list
of subdirs and then add it back in only if doing a native build.
	The current chill compiler does not yet work in any cross build.
1995-07-12 22:47:39 +00:00
Fred Fish b49f423b73 * Revert all signal changes from Jul 6.
* gdb.base/{sigall.c signals.c}:  Define away signal() and alarm()
	for sh-hms targets, allowing these tests to link, with no other
	changes.  Testing is suppressed by setting "nosignals" in site.exp.
1995-07-12 17:27:40 +00:00
Kung Hsu d97d5b48ab * elfread.c (elf_symtab_read): Fix a bug ignoring compiler
generated internal labels ($LM...).
1995-07-07 21:44:57 +00:00
Fred Fish 3ba76bd840 * configure.in (signaldirs): Define and add to configdirs for all
targets except some specific ones that are known to not support signals.
	Also clean up formatting.
	* gdb.base/Makefile.in (EXECUTABLES):  Remove sigall and signals.
	(signals, sigall):  Remove rules to build.
	* gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
	Moved to new gdb.signals directory.
	* gdb.signals: New test directory.
	* gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
	signals.c signals.exp}:  New or moved files.
1995-07-07 04:11:42 +00:00
Kung Hsu fec60da3d6 * defs.h: if __GO32__ or WIN32 the directory separating symbol should
be '\' not '/'.
1995-07-05 22:35:30 +00:00
Kung Hsu c6236d1227 * remote-nindy (nindy_wait): Use infinite timeout reading after
esacpe character.
1995-07-05 18:41:40 +00:00
Jeff Law 88a294b1b7 * infrun.c (wait_for_inferior): When switching from one thread to
another, save infrun's state for the old thread and load infrun's
        previous state for the new thread.
        * thread.c (struct thread_info): Add new fields for thread specific
        state saved/restored in infrun.c.
        (add_thread): Initialize new fields.
        (load_infrun_state): New function.
        (save_infrun_state): New function.
        * thread.h (load_infrun_state): Provide external decl.
        (save_infrun_state): Likewise.

More single-stepping patches for lynx-6100.
1995-07-04 17:48:37 +00:00
Jeff Law 48f4903f36 * infrun.c (wait_for_inferior): When we hit a breakpoint for the
wrong thread, make sure to write the fixed PC value into the thread
        that stopped.  Restart all threads after single stepping over a
        breakpoint for a different thread.
        * breakpoint.c (set_momentary_breakpoint): Make momentary
        breakpoints thread specific in a multi-threaded program.
        * lynx-nat.c (child_resume): Add some comments.  Correctly
        choose between the single and multi-threaded step and continue
        ptrace calls.

Some of the lynx-6100 single stepping fixes.
1995-07-04 17:40:41 +00:00