Commit graph

6936 commits

Author SHA1 Message Date
Geoffrey Noer
9cf7f520c6 Thu Aug 7 19:40:52 1997 Geoffrey Noer <noer@cygnus.com>
Changes to OCD support to support wiggler box as well as
        target boxes:
        * ocd.c: change speed in init command to 0 from 80,
        add (temporary) logging commands to help debugging,
        (ocd_open): if "target ocd wiggler lpt" then use special
        ser-ocd.c serial interface which communicates with Wigglers.dll,
        otherwise do as we did before
        (ocd_get_packet): add OCD_LOG_FILE and OCD_SET_CONNECTION to
        switch of known commands of len 0
        * ocd.h: add OCD_LOG_FILE
        * serial.c (serial_open): do serial_interface_lookup on ocd
        in the case of ocd
        * ser-ocd.c: add buffer to contain responses from sending a
        command to the Wigglers.dll.
        (ocd_readchar): return curr char from buffer and increment ptr
        (ocd_write): send buffer to Wigglers.dll, storing response in
        return buffer and initializing curr location ptr to start of
        buffer.
1997-08-08 02:57:35 +00:00
Martin Hunt
1154b47ab1 Thu Aug 7 14:08:23 1997 Martin M. Hunt <hunt@cygnus.com>
* configure.in: Change required Tix version to 4.1.8.0 .
	* configure: Rebuilt.
1997-08-07 21:07:44 +00:00
Geoffrey Noer
2d38a02f54 Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.h: add OCD_SET_CONNECTION
        * ocd.c: rename "do_command" to "ocd_do_command"
1997-08-07 20:49:46 +00:00
Geoffrey Noer
b622687f77 Thu Aug 7 13:39:31 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.h: add OCD_SET_CONNECTION
1997-08-07 20:40:18 +00:00
Geoffrey Noer
706eff3f9d Thu Aug 7 13:09:17 1997 Geoffrey Noer <noer@cygnus.com>
Nomenclature change.  BDM is a specific type of OCD
        (On chip debugging).  Wiggler is the parallel port box controlled
        by Wigglers.dll.  The faster target box from Macraigor Systems
        is not a wiggler.
        * ocd.c:
        * ocd.h:
        * ppc-bdm.c:
	* ser-ocd.c:
        Replace all instances of "wiggler_" with "ocd_" and change most other
        instances of "wiggler" to "ocd" or "ocd device" depending on context.
        * config/m68k/monitor.mt: remove remote-wiggler.o from TDEPFILES
        until OCD with that target is supported again.
1997-08-07 20:19:26 +00:00
Geoffrey Noer
35ce4f0813 Wed Aug 6 16:15:31 1997 Geoffrey Noer <noer@cygnus.com>
* Makefile.in: add DLLTOOL = @DLLTOOL@, pass on DLLTOOL to
        sub makes, change clean rule to also remove *.a to remove
        libwigglers.a, in dependencies: add ppc-bdm.o ocd.o ser-ocd.o and
        remove remote-wiggler.o
        * configure.in: add DLLTOOL support
        * configure: regenerate
        * wigglers.def: new file for imports for wigglers.dll
        * ser-ocd.c: new file which is layer between ocd.c and either the
        wigglers.dll or the target box, only stub so far
        * config/powerpc/ppc-eabi.mt: add ppc-bdm.o to TDEPFILES
        * config/powerpc/ppc-sim.mt: add ppc-bdm.o to TDEPFILES
        * config/i386/cygwin32.mh: add ocd.o ser-ocd.o libwigglers.a
        to XDEPFILES, add rules to build libwigglers.a

        checking in changes of Stu Grossman  <grossman@cygnus.com>:
        * remote-wiggler.c: delete
        * ocd.c: new, was remote-wiggler.c
        always include sys/types.h, include ocd.h, move WIGGLER
        commands and many wiggler prototypes to ocd.h, make wiggler_desc
        static, stop making local wiggler functions static,
        define write_mem_command for wiggler_write_bytes
        (wiggler_start_remote): stop hardcoding the target type,
        instead set and use a target_type variable.
        (wiggler_open): add new target_type and ops args
        (wiggler_wait): now no longer takes pid and target_status as args,
        stop trying to set target_status struct, remove BGND insn
        checks
        (read_bdm_registers): renamed to wiggler_read_bdm_registers
        (wiggler_read_bdm_registers): numregs arg changed to reglen arg,
        remove pktlen check, set reglen instead of numregs
        (dump_all_bdm_regs): delete
        (wiggler_fetch_registers): delete
        (wiggler_prepare_to_store): now just an empty function
        (wiggler_store_registers): delete
        (wiggler_read_bdm_register): new
        (wiggler_write_bdm_registers): new
        (wiggler_write_bdm_register): new
        (wiggler_write_bytes): use write_mem_command variable instead of
        WIGGLER_WRITE_MEM
        (get_packet): renamed to wiggler_get_packet, change refs throughout
        (put_packet): renamed to wiggler_put_packet, change refs throughout
        (wiggler_get_packet): add break to default case of switch,
        change length of WIGGLER_GET_VERSION len to 10 from 4 to match
        specs
        (wiggler_mourn): unpush_target with current_ops, not &wiggler_ops
        (flash_xfer_memory): delete
        (noop_store_registers): new placeholder replacement for
        target_store_registers() which prevents generic_load from trying to
        set up the PC.
        (bdm_update_flash_command): add store_registers_tmp variable,
        make handling of wiggler_ops more generic -- define wiggler_ops
        in a target-specific file instead (such as ppc-bdm.c in the case
        of the ppc), use current_target to deal with registers again
        making this file less target-specific.
        (bdm_read_register_command): new
        (_initialize_remote_wiggler): stop doing add_target (&wiggler_ops),
        comment out add_cmd ("read-register", ...)
        * ocd.h: new, contains common wiggler prototypes, command definitions
        * ppc-bdm.c: file for ppc-specific OCD code, including target_ops
        structure for ppc bdm
        (bdm_ppc_open): new
        (bdm_ppc_wait): new
        (bdm_ppc_fetch_registers): new
        (bdm_ppc_store_registers_: new
        (_initialize_bdm_ppc): new
	* config/powerpc/tm-ppc-eabi.h: add necessary CPU32 BDM defines
1997-08-07 06:31:46 +00:00
Mark Alexander
3d18ed7d46 tic80 sanitization. 1997-08-07 00:02:03 +00:00
Mark Alexander
ac210a14ca * tic80-tdep.c (tic80_init_extra_frame_info): Allow zero
as a valid SP-relative offset of a saved register.
1997-08-06 06:59:03 +00:00
Jeff Law
c031a0bdf6 * hpread.c (hpread_read_struct_type): Use accessor macros rather
than directly mucking around with data structures.
1997-08-06 06:24:31 +00:00
Per Bothner
d2e131a198 * jv-lang.c (get_java_utf8_name): Re-write so it works with
implied (missing) data field, as defined by cc1java.
	(java_link_class_type):  Type length and field offset (in interior)
	now includes object header.  Get static fields working.
	* jv-lang.h (JAVA_OBJECT_SIZE):  Update for change in Kaffe.
	* jv-typeprint.c (java_type_print_derivation_info,
	java_type_print_base):  New functions, for better Java output.
	* jv-valprint.c:  Start to support Java-specific output.
1997-08-05 21:59:56 +00:00
Per Bothner
f7f37388dc * gdbtypes.h: Re-interpret struct field. Suppport address of static.
Add a bunch of macros.
	* coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c:
	Update to use new macros.
	* coffread.c, hpread.c, stabsread.c:  Remove bugus TYPE_FIELD_VALUE.
	* value.h, values.c (value_static_field):  New function.
	* cp-valprint.c, valops.c:  Modify to use value_static_field.
1997-08-05 21:58:57 +00:00
Peter Schauer
153da921f3 * c-valprint.c (c_val_print): Use extract_address to retrieve
the address of the virtual function.
	From Peter Bloecher (Peter.Bloecher@eedn.ericsson.se).

	* eval.c (evaluate_subexp_standard), valarith.c (value_x_unop):
	Handle C++ operator *.
1997-08-03 15:24:55 +00:00
Ian Lance Taylor
9b119644fc * gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
_WIN32.
	(Tcl_Realloc, Tcl_Free): Likewise.
	* configure.in: Check for cygwin32 environment.  Define and
	substitute WIN32LIBS and WIN32LDAPP.  Always set configdir to
	unix; setting it to win was for an old Tcl/Tk configuration
	scheme.
	* aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
	* Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
	(WIN32LDAPP, WIN32LIBS): Define.
	(CLIBS): Add $(WIN32LIBS).
	(gdb): Use $(WIN32LDAPP).
	* configure: Rebuild.
1997-08-01 19:24:55 +00:00
Per Bothner
61c5746302 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC, SYMBOL_INIT_DEMANGLED_NAME,
SYMBOL_DEMANGLED_NAME):  Add demangling support for Java.
	* utils.c (fprintf_symbol_filtered):  Handle language_java.

	* symtab.c (decode_line_1):  Handle Java-style package.class.method.
1997-07-31 22:57:58 +00:00
Per Bothner
166606b71e * java-*: Renamed to jv-*, to make fit within 14 characters.
* jv-lang.h (java_type_print):  Added declaration.
	* jv-typeprint.c:  New file.  Provides java_print_type.
	* jv-lang.c (java_link_class_type):  New function.
	(java_language_defn):  Replace c_print_type by java_print_type.
	* Makefile.in:  Update accordingly.
1997-07-31 22:39:34 +00:00
Felix Lee
3b53c82a11 * Makefile.in (init.c): except some mswin files do need to be
scanned.  oh well.
1997-07-29 17:17:08 +00:00
Felix Lee
ce4450fa09 * Makefile.in (init.c): don't try to scan mswin for _initialize
funcs.  (generates misleading error message because files have
 	.cpp suffix, not .c suffix)

	* ser-e7kpc.c: <w32sut.h> -> "mswin/w32sut.h"

	* mon960-rom.c: removed unused #includes; no ioctl.h in Windows.
	* nindy-share/ttyflush.c: find sleep() for _MSC_VER.
	* remote-array.c: #include <ctype.h> for isascii().
	* utils.c (notice_quit,pollquit): cleanup.  _WIN32 -> _MSC_VER.
1997-07-28 22:34:36 +00:00
Peter Schauer
4e9e52ab08 * xcoffread.c (coff_getfilename): Do not strip directory component
of filename.
1997-07-28 09:56:24 +00:00
Jeff Law
5959df8e16 * top.c (execute_command): Force cleanup of alloca areas.
* findvar.c (registers_changed): Likewise.
Fixes memory "leak" reported by HP.  Call from execute_command is for general
alloca cleanup; call from registers_changed is to fix hp's specific problem.
1997-07-25 22:47:17 +00:00
Stu Grossman
264b9de03a * v850ice.c: Include <windows.h>. Support new v850 DLL interface.
* Add defs for target status.
1997-07-25 22:41:56 +00:00
Martin Hunt
6bc5b2fa96 Tue Jul 22 19:45:37 1997 Martin M. Hunt <hunt@cygnus.com>
* configure.in, aclocal.m4: Another fix to find the
	correct Tix library name.

	* configure: Rebuilt.
1997-07-23 02:45:59 +00:00
Michael Snyder
6886574678 Pulling changes over from tx39 branch 1997-07-22 21:00:21 +00:00
Michael Snyder
9ffd1eabd3 Cleaning up mips tx39 sanitization. 1997-07-22 20:58:56 +00:00
Michael Snyder
7631a23e41 Tue Jul 22 12:11:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* config/mips/tm-mips64.h: longs, long longs, and pointers
        are all 64 bits on EABI mips targets.
1997-07-22 19:14:46 +00:00
Martin Hunt
111bc9a751 Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>
* configure: Rebuilt.
1997-07-22 05:26:21 +00:00
Martin Hunt
e81e79124e Mon Jul 21 22:24:07 1997 Martin M. Hunt <hunt@cygnus.com>
* aclocal.m4: Search for the correct tix library.
1997-07-22 05:24:01 +00:00
Michael Snyder
3822bab9fa Thu Jul 17 11:38:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* partial-stab.h (case N_BINCL): detect missing partial symtab.
        * dbxread.c: Add a complaint for N_BINCL without a corresponding
        partial symtab.  Remove earlier change of 5/27/97.
1997-07-17 18:45:11 +00:00
Michael Snyder
2aeedbf89e Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* sol-thread.c (sol_thread_[store, fetch]_registers): if
        inferior_pid is an LWP rather than a Solaris thread, let
        procfs handle the request.
        (rw_common, sol_thread_xfer_memory): procfs_xfer_memory will
        only work if inferior_pid points to an LWP (rather than a
        Solaris thread).  Use procfs_first_available to find a good LWP.
        (info_solthreads): added a maintenance command to list all
        known Solaris threads and their attributes.
        * mips-tdep.c (mips_do_registers_info): Completely changed the
        output format to be neat and columnar.  Added the helper funcs
        do_fp_register_row and do_gp_register_row.  Also small mods to
        mips_print_register, which is still used to print a single reg.
1997-07-16 20:42:28 +00:00
Michael Snyder
0f5b751aaf Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* sol-thread.c (sol_thread_[store, fetch]_registers): if
        inferior_pid is an LWP rather than a Solaris thread, let
        procfs handle the request.
        (rw_common, sol_thread_xfer_memory): procfs_xfer_memory will
        only work if inferior_pid points to an LWP (rather than a
        Solaris thread).  Use procfs_first_available to find a good LWP.
        (info_solthreads): added a maintenance command to list all
        known Solaris threads and their attributes.
1997-07-16 19:16:07 +00:00
Michael Snyder
f14465c3a7 Mon Jul 14 18:02:53 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* procfs.c (wait_fd): Handle an fd that has "hung up" or
        otherwise terminated (Solaris threads).
1997-07-15 01:05:10 +00:00
Martin Hunt
2476848aaf Thu Jul 10 00:02:41 1997 Martin M. Hunt <hunt@cygnus.com>
* Makefile.in, configure.in, aclocal.m4: Add Itcl, Tix, and
	IDE configuration information.

	* gdbtk.c (breakpoint_notify): Send address, linenumber and
	filename when a breakpoint is set.  Avoids call to bp_info.
 	(gdbtk_init): Call Tcl_FindExecutable(). Add code to handle
	Itcl, Tix and IDE initialization.

	* defs.h (init_ui_hook): Change prototype to accept one arg.

	* main.c (gdb_init): Change prototype to accept one arg.

	* top.c (gdb_init): Accepts one argument which it uses to
	call (*init_ui_hook), which will be gdbtk_init(). This is
 	used for calling Tcl_FindExecutable().

	* gdbtcl/breakpoint.tcl (gdbtk_tcl_breakpoint): Change to
	accept variable number of args for compatibility with
	cchanges in gdbtk.c.

	* configure: Regenerated.

	* gdbtcl/tclIndex: Regenerated.
1997-07-10 07:15:26 +00:00
Ian Lance Taylor
f897ef47f1 * source.c (OPEN_MODE, FDOPEN_MODE): Define; value depends upon
whether CRLF_SOURCE_FILES is defined.
	(open_source_file): Use OPEN_MODE with open and openp.
	(print_source_lines): Use FDOPEN_MODE with fdopen.  If
	CRLF_SOURCE_FILES is defined, ignore \r characters.
	(forward_search_command): Use FDOPEN_MODE with fdopen.
	(reverse_search_command): Likewise.
	* config/i386/xm-cygwin32.h (CRLF_SOURCE_FILES): Define.
	(LSEEK_NOT_LINEAR): Don't define.
1997-07-04 18:54:57 +00:00
Ian Lance Taylor
96ac3cb652 * gdbint.texinfo (Host Conditionals): Add CRLF_SOURCE_LINES.
Document LSEEK_NOT_LINEAR.
1997-07-04 18:53:24 +00:00
Bob Manson
9039701bda * lib/gdb.exp(get_debug_format): Don't cause the testsuite to fail
if we can't get a debug format from GDB (we may be testing an
 	older GDB). Use a 10 second timeout when checking for the format.

	* gdb.stabs/weird.exp: Fix quoting.
1997-07-04 01:04:45 +00:00
Michael Snyder
87910097ba Thu Jul 3 17:41:46 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* mips-tdep.c (mips_extract_return_value): align 4-byte float
        return values within the 8-byte FP register.
1997-07-04 00:44:01 +00:00
Bob Manson
6d2f93f855 * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c. 1997-07-03 22:38:51 +00:00
Michael Snyder
c430260cae Thu Jul 3 13:48:11 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* mips-tdep.c (mips_push_arguments): don't left-adjust 32-bit
        integers in 64-bit register parameters before function calls.
1997-07-03 20:50:11 +00:00
Bob Manson
2255614907 * config/arm-ice.exp: New file. 1997-07-01 01:33:58 +00:00
Michael Snyder
781a59b28a Mon Jun 30 17:54:51 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* mips-tdep.c (mips_push_arguments): special-case handling for
        odd-sized struct parameters passed in registers / on stack.
1997-07-01 00:57:19 +00:00
Michael Snyder
158bda58c5 Mon Jun 30 15:30:38 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* mips-tdep.c (mips_push_arguments): tweak alignment of small
        structs passed in registers for little-endian non-EABI mode.
1997-06-30 22:32:20 +00:00
Michael Snyder
71e099952d Mon Jun 30 13:05:39 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* breakpoint.c (frame_in_dummy): use generic dummy if available.
          (check_duplicates, clear_command): compare sections only if
          doing overlay debugging.
1997-06-30 20:08:11 +00:00
Bob Manson
a6d380b997 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabled
until it has been modified to work with the new testsuite.

	* gdb.*/*.exp: Instead of causing 1 unresolved test when the
 	testcase won't compile, cause all of the testcases in the file to
 	fail instead.

	* lib/gdb.exp(gdb_suppress_entire_file): New procedure.
	(gdb_clear_suppressed): New procedure.
	(gdb_stop_suppressing_tests): Only clear suppress_flag if
	it contains a positive value.
1997-06-30 04:24:17 +00:00
Bob Manson
4ea71e9de9 Check in correct file (config/m32r-stub.exp) 1997-06-29 23:26:33 +00:00
Bob Manson
b14f3a01ff * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature. 1997-06-29 04:05:41 +00:00
Bob Manson
3128c5978f * gdb.c++/virtfunc.exp: Remove setting of libs variable. 1997-06-28 20:32:31 +00:00
Fred Fish
609fd03384 * buildsym.h (struct subfile): Add debugformat member.
(record_debugformat): Declare global function.
	* buildsym.c (start_subfile): Initialize debugformat member
	to NULL.
	(record_debugformat): New function to record the format.
	(end_symtab): Copy format into symtab debugformat member.
	(end_symtab): Free subfile debugformat member.
	* symmisc.c (free_symtab): Free debugformat when freeing
	symtab.
	* symfile.c (allocate_symtab): Initialize the new debugformat
	member for new symtabs.
	* symtab.h (struct symtab): Add debugformat member.
	* source.c (source_info): Print the debug format.

	* os9kread.c (os9k_process_one_symbol): Call record_debugformat
	with "OS9".
	* hpread.c (hpread_expand_symtab): Call record_debugformat
	with "HP".
	(hpread_process_one_debug_symbol): Ditto.
	* dbxread.c (process_one_symbol): Call record_debugformat
	with "stabs".
	* coffread.c (coff_start_symtab): Call record_debugformat
	with "COFF".
	* xcoffread.c (read_xcoff_symtab): Call record_debugformat
	with "XCOFF".
	* dwarfread.c (read_file_scope): Call record_debugformat
	with "DWARF 1".
	* dwarf2read.c (read_file_scope): Call record_debugformat
	with "DWARF 2".
	* dstread.c (dst_end_symtab): Set debugformat to be
	"Apollo DST".
	* mdebugread.c (new_symtab): Set debugformat to be "ECOFF".
1997-06-28 06:10:06 +00:00
Fred Fish
70742cd831 * lib/gdb.exp (setup_xfail_format): New function.
(get_debug_format): New function to get debug format.
	(debug_format): New global variable to hold last value set
	by get_debug_format.
	* gdb.base/list.exp: Call get_debug_format and expect some
 	tests to fail for DWARF 1 and COFF formats.
	* gdb.c++/ptype.exp: Ditto.
	* gdb.c++/classes.exp: Ditto.
	* gdb.c++/cplusfuncs.exp: Ditto.
	* gdb.c++/inherit.exp: Ditto.
	* gdb.c++/templates.exp: Ditto.
	* gdb.c++/virtfunc.exp: Ditto.
1997-06-28 06:03:43 +00:00
Michael Snyder
08d8f99560 Fri Jun 27 21:05:45 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* mips-tdep.c (mips_push_arguments): handle alignment of
	integer and struct args on stack for mips64 big-endian.
1997-06-28 04:07:56 +00:00
Michael Snyder
0af60e0326 Fri Jun 27 19:19:12 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* config/mips/tm-mips.h (USE_STRUCT_CONVENTION): MIPS_EABI returns
        structs in a register wherever possible.
1997-06-28 02:23:30 +00:00
Bob Manson
5e7be5310d * lib/gdb.exp(default_gdb_exit): Don't give an error if the remote
host doesn't have a currently-open connection.

	* config/sparclet.exp: Cleanups and fixes to make it generic for
 	any gdb stub target. Handle cases where gdb doesn't respond when
 	interrupted in a sane fashion.

	* config/m32r.exp: Load sparclet.exp instead of trying to do the
 	same thing in a totally different way.

	* config/monitor.exp: Pass in timeouts to gdb_expect instead of
 	setting "timeout".
	(gdb_start): We set the global gdb_prompt variable in
 	default_gdb_init now.
1997-06-25 16:29:59 +00:00
Fred Fish
677a92a07d Fix a "ninemoons" email address that slipped in. 1997-06-22 16:40:16 +00:00
Fred Fish
7c0cb2b726 Fix one of my "ninemoons" email addresses that slipped in. 1997-06-22 16:32:18 +00:00
Fred Fish
41438a392a * gdb.base/printcmds.exp: Fix "check for floating addition"
regexp to accept results within approx +/- .01 of exact value.
	* lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
1997-06-22 16:17:49 +00:00
Fred Fish
4a9d4495eb * sh-tdep.c (sh_skip_prologue): Also recognize fmov insns.
(sh_frame_find_saved_regs): Recognize fmov insns and adjust
	stack push count accordingly.
	* sh-tdep.c (IS_FMOV, FPSCR_SZ): New defines
1997-06-21 03:50:11 +00:00
Fred Fish
73bb488673 Sanitize away sh4 stuff for now. 1997-06-21 03:48:48 +00:00
Fred Fish
b25b1c62b0 Minor formatting change (whitespace only). 1997-06-21 03:42:10 +00:00
Mark Alexander
9b91bc2295 * utils.c (floatformat_from_doublest): Improve test for infinity. 1997-06-19 15:18:13 +00:00
Bob Manson
283e535d3f (gdb_expect): Add optional timeout parameter, and add timeout
value to various calls.
	(gdb_suppress_tests): Only give one warning message per group.
1997-06-19 04:36:04 +00:00
Fred Fish
705ebd9239 * dwarfread.c (isreg, optimized_out, offreg, basereg): Move
global variables into the struct dieinfo structure.
	(locval): Pass pointer to a dieinfo struct rather than a
	pointer to the raw location information.  Change prototype.
	Set isreg, optimized_out, offreg and basereg as appropriate.
	(struct_type): Call locval with dieinfo struct pointer.
	(new_symbol): Ditto.
	(new_symbol): Call locval and save location before testing
	the values of the new dieinfo struct flags, set by locval.
1997-06-18 21:38:57 +00:00
Bob Manson
585a4b7b35 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
properly.
1997-06-18 18:13:19 +00:00
Bob Manson
66e38fb282 lib/gdb.exp(gdb_expect): Handle getting a value for $timeout
more gracefully.
1997-06-18 05:10:11 +00:00
Peter Schauer
b682323727 * procfs.c (proc_set_exec_trap, procfs_init_inferior, procfs_wait,
unconditionally_kill_inferior):  Undo Oct 26 1996 and Apr 26 1997
	changes to trace PRFS_STOPTERM and handle PR_DEAD.
	These changes tried to work around a problem with an early DU 4.0
	release, but they trigger subtle timing dependent kernel bugs
	in older OSF/1 releases.
1997-06-17 20:33:18 +00:00
Bob Manson
17b59a7407 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
as global variables.
1997-06-17 20:11:04 +00:00
Fred Fish
015e113cfe * dwarfread.c (new_symbol): Use SYMBOL_VALUE_ADDRESS, instead of
SYMBOL_VALUE, to set the value of LOC_STATIC symbols.
1997-06-17 14:01:37 +00:00
Mark Alexander
f781fe93a6 * infrun.c (wait_for_inferior): Mark registers as invalid when
stepping over an instruction that triggered a watchpoint.
	* remote-mips.c: Numerous changes to support hardware breakpoints
	and watchpoints on LSI MiniRISC and TinyRISC boards.
	* mips-tdep.c: Move MIPS16-related macros to config/mips/tm-mips.h.
	(mips_breakpoint_from_pc): Account for different breakpoint
	instructions used by PMON and IDT monitor.
	* config/mips/tm-embed.h: Enable hardware breakpoints on embedded
	MIPS targets.
	* config/mips/tm-mips.h: Define breakpoint instructions for
	PMON and IDT monitor.  Move MIPS16-related macros here from
	mips-tdep.c.
1997-06-17 02:11:42 +00:00
Bob Manson
77f3ac77b5 * lib/gdb.exp: Close connection to remote host if gdb doesn't
initialize.
	(default_gdb_init): New procedure; allow gdb_init to be overridden
 	by a target configuration file.
	(gdb_expect): Pass the timeout to remote_expect.

	* config/dos.exp(dos_wait): Add timeout parameter.

	* lib/remote.exp(remote_expect): Add timeout parameter.
	(remote_wait): Ditto.
	(standard_wait): Ditto. Also give up if the program outputs
	more than 512,000 bytes.

	* config/vxworks.exp: Use timeout parameter instead of setting
	timeout variable.
	* config/dos.exp: Ditto.
	* config/ddb.exp: Ditto.
	* lib/mondfe.exp: Ditto.
	* lib/rlogin.exp: Ditto.
	* lib/telnet.exp: Ditto.
	* config/base68k.exp: Ditto.
	* config/i386-bozo.exp: Ditto.
	* config/gdb-comm.exp: Ditto.
	* config/gdb_stub.exp: Ditto.
	* config/i960.exp: Ditto.
	* config/ddb-ether.exp: Ditto.
	* config/sim.exp: Ditto.

	* lib/g++.exp(g++_init): Use g++_include_flags instead of making
	up the includes ourselves.
1997-06-17 00:08:20 +00:00
Bob Manson
45c795f7c0 * config/monitor.exp(gdb_load): Fix typo in regexp.
Fixes last night's tcl error mesages.
1997-06-14 16:25:14 +00:00
Michael Snyder
90154aff57 * fix earlier checkin error 1997-06-13 22:41:14 +00:00
Michael Snyder
00e40d11f4 Fri Jun 13 13:44:47 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* config/mips/tm-tx39[l].h, tx39[l].mt: change r3900 target to tx39.
	[also clean up sanitization]
1997-06-13 20:53:34 +00:00
Jeff Law
dd1c7d5f5e * mn10300-tdep.c (mn10300_analyze_prologue): Fix some comments.
Add missing return statements after finding an "add imm{16,32},sp"
        instruction.
        (mn10300_frame_chain): Add in size of our register save area to find
        our caller's frame if our caller does not have a frame pointer.
Fixes some problems debugging optimized code.
1997-06-13 20:19:53 +00:00
David Edelsohn
a6b6627ba2 * symfile.c (generic_load): Check return code of target_write_memory. 1997-06-13 19:56:51 +00:00
Fred Fish
40b647e9e2 * config/i386/nm-linux.h: Enable prototypes that were #ifdef out.
* config/tm-sysv4.h (in_plt_section): Add prototype.

	* maint.c (maintenance_translate_address): Avoid assignment
	inside if, per GNU coding standards.
	* symfile.c (simple_read_overlay_table): Avoid assignments inside if, per
	GNU coding standards.

	* monitor.c (parse_register_dump): Is really a void function.
	Add prototype.
	(monitor_read_memory): Remove unused variable "name".
	(monitor_read_memory): Remove unused variable "regbuf".
	(monitor_open): Remove unused variable "i".
	(get_hex_word): Apparently unused, #if away for now.
	(from_hex): Ditto.

	* i386v4-nat.c (supply_fpregset): Remove unused variable "regi".
	(fill_fpregset): Remove unused variables "regi", "to", "from" and
	"registers".

	* remote-e7000.c (ctype.h): Include.
	(e7000_insert_breakpoint): #if away unused arg used by unused expr.
	* frame.h (generic_get_saved_register): Add prototype.
	(enum lval_type): Add partial forward decl.
	* dsrec.c (make_srec): Remove unused variable "type_code".
	* remote-sim.c (gdbsim_wait): Handle sim_running and sim_polling
	cases by just ignoring them.
	(command.h): Include.

	* java-exp.y (parse_number): Remove unused variable "unsigned_p".
	* java-lang.c (gdbcore.h): Include for prototypes.
	(type_from_class): Remove unused variable "ftype".
	(type_from_class): Remove unused variable "name_length".
	(evaluate_subexp_java): Add default case to handle remaining
	enumerations.
	* java-valprint.c (c-lang.h): Include for prototypes.

	* symfile.c (simple_read_overlay_region_table): #if away
	unused function.
	(simple_free_overlay_region_table): Ditto.
	(overlay_is_mapped): Add default case to switch.
	(simple_read_overlay_region_table): Ditto.
	(simple_read_overlay_region_table): Add prototype.

	* symtab.c (fixup_symbol_section): Remove unused msym variable.
	(fixup_psymbol_section): Ditto.
	(find_pc_sect_symtab): Make distance a CORE_ADDR.

	* utils.c: Add comment about t_addr being either unsigned long or
	unsigned long long.
	(paddr): Change formats to match actual types args are cast to.
	(preg): Ditto.
	(paddr_nz): Ditto.
	(preg_nz): Ditto.
1997-06-13 17:30:24 +00:00
Fred Fish
cf2b165ede * sh-tdep.c (symfile.h): Include.
(gdb_string.h): Include.
	(sh_fix_call_dummy): Ifdef away, currently unused.
	* config/sh/tm-sh.h (pop_frame): Add prototype.
	* config/sh/tm-sh.h (sh_set_processor_type): Add prototype.
1997-06-13 15:22:08 +00:00
Fred Fish
56e327b302 * defs.h (perror_with_name): Is a NORETURN function.
* utils.c (perror_with_name): Is a NORETURN function.
	(error): Is NORETURN independently of ANSI_PROTOTYPES.

	* symtab.c (fixup_symbol_section): Remove prototype.
	* symtab.h: (fixup_symbol_section): Add prototype.
	* m32r-rom.c (report_transfer_performance): Add prototype.
	* sparclet-rom.c: Ditto.
	* dsrec.c: Ditto.

	* c-exp.y (parse_number): Cast args to float* or double* as
	appropriate for conversion format.
	* java-exp.y (parse_number): Ditto.

	* Makefile.in (c-exp.tab.c): Remove #line lines that refer
	to nonexistant y.tab.c file.
	(java-exp.tab.c): Ditto.
	(f-exp.tab.c): Ditto.
	(m2-exp.tab.c): Ditto.
start-sanitize-gdbtk

	* gdbtk.c (gdbtk_init): Make truth value test explicit.
	Remove unused static variable "Gdbtk_Library".
end-sanitize-gdbtk
1997-06-13 14:51:32 +00:00
Bob Manson
59df24f7c2 * gdb.base/funcargs.exp: Remove spurious suppress tests call. 1997-06-13 03:59:40 +00:00
Peter Schauer
27f1958c24 start-sanitize-gdbtk
* gdbtk.c (gdb_get_breakpoint_info):  Add string for new
	enumeration del_at_next_stop to bpdisp array.

end-sanitize-gdbtk
	* eval.c (evaluate_subexp_for_sizeof):  Handle dereferencing
	of non-pointer values.

	* symtab.c (gdb_mangle_name):  Improve mangling of nested types,
	their physical names already include the class name.

	* valops.c (value_cast):  Handle upcast of a class pointer.

	From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
	* corelow.c (get_core_registers):  Make secname big enough.
1997-06-07 09:38:31 +00:00
Keith Seitz
1e6479d4d7 Modified Files:
ChangeLog sh-tdep.c config/sh/tm-sh.h
        * config/sh/tm-sh.h: add define for FPSCR_REGNUM
        * sh-tdep.c (sh_show_regs): print out all registers for
        the current processor
1997-06-06 21:47:12 +00:00
Andrew Cagney
aa02a0b0f2 sim_kill() isn't used. 1997-06-06 03:02:51 +00:00
Bob Manson
43f396d007 * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
here. Call gdb_target_exec before rebooting the target, to make
 	sure the connection to the target is closed.
	(gdb_load): Pass the name of the executable to gdb_target_monitor.
	Don't call gdb_file_cmd here; let gdb_target_monitor do it.

	* config/gdbserver.exp: Pass the executable being loaded to
 	gdb_target_monitor. Don't call gdb_file_cmd here; let
 	gdb_target_monitor do it.

	* gdb.disasm/hppa.exp: Don't use exec_output.
1997-06-04 00:04:43 +00:00
Michael Snyder
3d400c0939 * configure.tgt: add mipsr3900-elf target
* config/mips/r3900*.mt config/mips/tm-r3900*.h: ditto
1997-06-03 23:28:54 +00:00
Tom Tromey
f131deb19f * Makefile.in (LIB_RUNTIME_DIR): New variable. 1997-06-03 22:34:23 +00:00
Bob Manson
9ab2431f84 Added proelf. 1997-06-03 22:05:24 +00:00
Bob Manson
29a76b68a6 * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
test_calls after restarting.

	* lib/gdb.exp(gdb_run_cmd): Send jump command again after
 	reloading.

	* gdb.base/watchpoint.exp: Fix typo.

	* gdb.base/setshow.exp: Check for use_gdb_stub.

	* gdb.base/break.exp: Fix continue until exit test for the gdb
 	stub case.
	* gdb.base/langs.exp: Ditto.

	* config/monitor.exp(gdb_load): Handle gdb_sect_offset and
 	gdb_load_offset. If we weren't given a file to load, figure out
 	what the current file is and use it.
1997-05-23 22:30:29 +00:00
Bob Manson
1e0d962e4f * config/monitor.exp(gdb_load): Handle gdb_sect_offset and
gdb_load_offset.
1997-05-23 21:49:12 +00:00
Bob Manson
badd64f29f * infcmd.c (jump_command): Don't try to dereference sfn if it's
NULL.
1997-05-23 21:46:34 +00:00
Bob Manson
81740ee442 * config/i386-bozo.exp: New file. 1997-05-23 20:28:54 +00:00
Andrew Cagney
95edd7c167 Don't restrict the endian commands to BI-ENDIAN gdb. 1997-05-23 09:25:01 +00:00
Bob Manson
19d31cb3e8 Make sure we keep the old value of timeout set properly. 1997-05-23 06:15:46 +00:00
Bob Manson
d8b63305a2 Don't look at timeout unless it exists. 1997-05-23 06:10:08 +00:00
Bob Manson
c55809ce2d * lib/gdb.exp(gdb_expect): Look for gdb,timeout target
feature.
1997-05-23 06:05:12 +00:00
Bob Manson
de8ea54f90 * config/proelf.exp: New entry. 1997-05-23 02:06:18 +00:00
Bob Manson
fb07c69693 * lib/gdb.exp: Remove spurious .* patterns at the beginning
of regexps.
1997-05-22 06:00:28 +00:00
Bob Manson
ee9a6181ff * gdb.base/watchpoint.exp: Don't run the test_stepping
tests if gdb can't call functions on the target.
1997-05-22 05:56:31 +00:00
Bob Manson
3596a9fcb0 add new file. 1997-05-22 05:55:41 +00:00
Andrew Cagney
1fa0cc2dfc Restrict simulator commands to an enabled simulator. 1997-05-22 04:59:25 +00:00
Bob Manson
28558bdb36 * gdb.base/setshow.exp: Don't run the set prompt tests if
the board has gdb_prompt set.
1997-05-22 04:24:23 +00:00
Michael Snyder
3780c33708 Wed May 21 16:03:25 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* procfs.c (init_procinfo): new function, abstracts some code
        shared by create_procinfo and do_attach;
        (procfs_set_inferior_syscall_traps): new function, abstracts
        some code needed by procfs_init_inferior, do_attach, and
        procfs_lwp_creation_handler; (procfs_first_available): new
        function, find any LWP that's runnable; (procfs_thread_alive):
        replace stub function with real implementation;
        (procfs_lwp_creation_handler): fix bug starting new child
        threads; (info_proc): bug fixes and enhancements for the
        "INFO PROCESSES" command; (close_procinfo_file): call new
        function "delete_thread" to cleanup GDB's thread database;
        (proc_init_failed): add new argument "kill", to control whether
        process is killed (so this function can be shared by
        create_procinfo and do_attach); (procfs_exit_handler): handle
        exit from an attached process, and cleanup procinfo handles
        when the process exits; (procfs_resume, procfs_wait): cleanup
        after a thread when it exits; (do_attach, do_detach): handle
        attached processes with multiple threads; plus some general
        improvements in the diagnostic output.
        * sol-thread.c (sol_thread_alive): replace stub with real
        implementation; (thread_to_lwp, lwp_to_thread): enhance to
        handle threads that may have exited; (sol_thread_attach): add
        startup setup stuff; (sol_thread_detach): add unpush_target
        call; (sol_thread_mourn_inferior): add unpush_target call;
        (sol_thread_wait, sol_thread_resume): enhance to deal with
        thread exit cleanly; (sol_thread_new_objfile,
        sol_thread_pid_to_str): detect unsuccessful startup and
        don't crash; plus some general cleanup.
        * thread.c (delete_thread): new function, allows targets to
        notify gdb when a thread is no longer valid.
        * infrun.c (wait_for_inferior): don't try to detect a new
        thread on receiving a TARGET_EXITED event.
1997-05-21 23:33:33 +00:00
Jeff Law
c86924cf7e * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".
* gdb.base/commands.exp: Likewise.
        * gdb.base/setshow.exp: Likewise.
1997-05-20 15:00:01 +00:00
Andrew Cagney
24aa2b57af Depreciate sim_set_callbacks() function. Set simulator callbacks
during sim_open().
1997-05-20 00:05:27 +00:00
Bob Manson
2aec653f17 * config/monitor.exp(gdb_start): Look for gdb_prompt target
feature.

	* config/i960.exp: New file.
1997-05-19 22:40:00 +00:00
Peter Schauer
4cc5671656 * config/rs6000/tm-rs6000.h (SIG_FRAME_LR_OFFSET): Define.
* rs6000-tdep.c (frameless_function_invocation):  Mark frames
	with a zero PC as frameless to improve backtraces from core dumps
	caused by dereferencing a NULL function pointer.
	(frameless_function_invocation, frame_saved_pc, rs6000_frame_chain):
	Handle frameless functions interrupted by a signal.

	* sparc-tdep.c (sparc_init_extra_frame_info, sparc_frame_saved_pc):
	Handle frameless functions interrupted by a signal.
1997-05-15 15:01:54 +00:00
Jeff Law
4dbe5f8d3c * mn10200-tdep.c (mn10200_analyze_prologue): Update prologue comments
to reflect current reality.  Gross attempt at handling out of
        line prologues.
1997-05-14 22:04:28 +00:00
Jeff Law
c23cc10a8f * mn10200-tdep.c (mn10200_skip_prologue): Don't look at the debug
symbols to find the end of the prologue.
        * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
1997-05-14 15:01:33 +00:00
Andrew Cagney
68cad8a2c8 Fix total number of tic80 registers 1997-05-14 05:10:00 +00:00
Mark Alexander
60f0562bb8 Fix tic80 sanitization. 1997-05-13 22:31:47 +00:00
Mark Alexander
6e12c187ba * tic80-tdep.c, config/tic80/tm-tic80.h: First cut at getting
basic C80 features working.
1997-05-12 18:38:28 +00:00
Mark Alexander
1c877a7aae Add h8300.exp. 1997-05-08 05:25:53 +00:00
Andrew Cagney
c14cabbac4 Part II of getting GdbTk's stop button to always work. 1997-05-08 01:00:39 +00:00
Mark Alexander
b02a4cab06 Remove remote-pa.c. 1997-05-06 21:42:31 +00:00
Michael Snyder
a50c4c7cd7 Tue May 6 13:53:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Add overlay tests to gdb.base/.Sanitize
1997-05-06 20:53:53 +00:00
Mark Alexander
04a7708a32 * utils.c (floatformat_from_doublest): Handle infinity properly. 1997-05-04 03:53:29 +00:00
Michael Snyder
2847920ae9 Thu May 1 11:44:46 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Finalize merge from Hurd folk.
	    Mon Oct 30 16:41:04 1995  Miles Bader  <miles@gnu.ai.mit.edu>
	    * thread.c (thread_apply_command, thread_apply_all_command,
	    thread_command): Make sure TP is alive.
	    (thread_alive): New function.
	    Tue Nov 14 14:31:03 1995  Miles Bader  <miles@gnu.ai.mit.edu>
	    * infrun.c (sig_print_info): Deal better with long signal names.
	    Wed Nov 22 15:23:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
	    * thread.c (thread_id_to_pid): New function.
	    Fri Dec  1 13:25:25 1995  Miles Bader  <miles@gnu.ai.mit.edu>
	    * gnu-nat.c: (set_thread_cmd_list, show_thread_cmd_list,
	    set_thread_default_cmd_list, show_thread_default_cmd_list):
	    New variables.  (set_thread_cmd, show_thread_cmd,
	    set_thread_default_cmd, show_thread_default_cmd): New functions.
	    Fri Apr 18 15:20:16 1997  Miles Bader  <miles@gnu.ai.mit.edu>
	    * gnu-nat.c (inf_startup): remove TASK parameter.
	    (inf_set_task): replace with new function (inf_set_pid).
	  * gdbthread.h: Add extern decl for thread_cmd_list.
1997-05-01 20:39:06 +00:00
Peter Schauer
b217c2d876 * printcmd.c (disassemble_command): Adjust low function bound
by FUNCTION_START_OFFSET.
1997-05-01 09:29:44 +00:00
Andrew Cagney
7bd5c2e6e5 Define TiC80 break point (tmp) 1997-04-30 08:38:28 +00:00
Michael Snyder
c889a1eb87 Mon Apr 28 21:25:32 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Makefile.in: Add rule for gnu-nat.o and i386gnu-nat.o (Gnu Hurd)
        * config/i386/i386gnu.mh: remove rules for [i386]gnu-nat.o, now
        in Makefile.in (as for other targets); add NATDEPFILE corelow.o to
        satisfy symbol dependancy in solib.c (core_ops).
        * target.[ch] conditionalize Mach-specific signals so that they
        won't show up in non-Mach gdb's!
        * thread.c: add function thread_id_to_pid; change name of static
        function "thread_switch" to "switch_to_thread", to avoid conflict
        with Mach global symbol; move thread_cmd_list to global scope
        so targets can add their own thread commands.
        * infrun.c: sig_print_info: allow for long signal names.
        * gnu-nat.[ch]: tidying up comments.
        * gnu-nat.c: move several functions to static scope, just for tidy;
        remove calls to prune_threads and renumber_threads;
        gnu_wait must not return -1 when inferior exits;
        attach_to_child will modify inferior_pid in a way that allows
        fork_inferior to remain unchanged;
        remove extra arg from startup_inferior;
        move mach-specific thread commands here from thread.c.
1997-04-29 04:27:26 +00:00
Michael Snyder
75dc6b820f Mon Apr 28 18:21:20 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* symtab.c: decode_line_1, replace the assignment to
        values.sals[0].pc which I accidentally left out on 4/3/97.
1997-04-29 04:25:11 +00:00
Michael Snyder
d030f469c1 Mon Apr 28 17:27:40 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* c-exp.y, java-exp.y: make parse_number reject "123DEADBEEF".
        (fix by Bob Manson).
1997-04-29 01:02:37 +00:00
Michael Snyder
6a85a617df Mon Apr 28 17:27:40 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* top.c: change "to enable to enable" to "to enable" in a couple
        of help strings.
1997-04-29 00:32:03 +00:00
Mark Alexander
abcf64e73a * breakpoint.c (remove_breakpoint): Pass correct type to
target_remove_watchpoint.
	* target.h: Improve comment for target_{remove,insert}_breakpoint.
1997-04-28 16:08:01 +00:00
Peter Schauer
fc3622611e * alpha-tdep.c (heuristic_proc_desc): Increase search limit
for return address register, handle `ret' instruction.
1997-04-26 10:41:14 +00:00
Peter Schauer
95b7107182 * corelow.c (get_core_registers): Initialize cf.
* procfs.c:  Minor changes to make pre-ANSI compilers happy.
	(procfs_notice_signals):  Copy traced signal set back to
	pi->prrun.pr_trace.
	(unconditionally_kill_inferior):  If PR_DEAD is defined,
	rerun inferior after killing it.
1997-04-26 09:44:30 +00:00
Jeff Law
157d3d5daa * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS): The
structure value address is found in $a0 now.
        * config/mn10200/tm-mn10200.h (EXTRACT_STRUCT_VALUE_ADDRESS): Likewise.
Fixes some struct.exp failures.
1997-04-25 06:14:15 +00:00
Jeff Law
15ef24c83e * gdb.base/callfuncs.exp: Mark some tests as expected to fail
on the mn10300.
1997-04-24 20:53:11 +00:00
Jeff Law
726229db59 * config/mn10300/tm-mn10300.h (STORE_RETURN_VALUE): Pointers are
returned in $a0.
        (EXTRACT_RETURN_VALUE): Likewise.

        * mn10300-tdep.c (mn10300_analyze_prologue): Check for a return
        insn at "pc", not "fi->pc".
1997-04-24 19:35:11 +00:00
Andrew Cagney
e5b9ee95f6 Fix? some reg definitions 1997-04-24 12:06:14 +00:00
Jeff Law
99c71408b2 Wed Apr 23 11:18:45 1997 Jeffrey A Law (law@cygnus.com)
* config/mn10200/tm-mn10200.h (STORE_RETURN_VALUE): Pointers are
        returned in $a0.
        (EXTRACT_RETURN_VALUE): Likewise.
1997-04-23 17:22:34 +00:00
Fred Fish
fc77ae8e02 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Define to use
floatformat_ieee_double_littlebyte_bigword for little endian
        target byte order.
        * utils.c (floatformat_to_doublest): Create local preswapped
        copy of input for floatformat_littlebyte_bigword formats.
        (get_field, put_field): Treat floatformat_littlebyte_bigword
        the same as floatformat_little.
        (floatformat_from_doublest): Postswap output words for
        the floatformat_littlebyte_bigwords format.
1997-04-22 18:57:02 +00:00
Andrew Cagney
15c1649391 TIc80 simulator checkpoint - runs 3 instructions - trap, addu, br.a. 1997-04-22 17:46:07 +00:00
Stu Grossman
178b282ba9 * config/alpha/alpha-osf3.mh config/i386/{i386gnu linux}.mh
config/mips/{embed embed64 embedl embedl64 vr4300 vr4300el vr5000
	vr5000el}.mt config/powerpc/{aix aix4}.mh config/rs6000/{aix
	aix4}.mh config/sh/sh.mt config/sparc/sp64sim.mt:
start-sanitize-v850
	config/v850/v850.mt:
end-sanitize-v850
	Remove -lm.  That's now handled by configure.
1997-04-22 17:13:41 +00:00
Stu Grossman
253a70ff1c * Makefile.in (maintainer-clean): Add distclean to dependencies.
Remove duplicate rm's of files.
1997-04-22 16:04:38 +00:00
Fred Fish
c31ffb3b38 * gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
where the test executable is run with explicit args.
      * gdb.base/default.exp: Handle arm-*-coff case for "info float".
1997-04-22 14:46:58 +00:00
Fred Fish
b0c4d379ff * gdb.base/run.c: Use FAKEARGV to build test executable that
does not require a command line arg, since most simulators
      don't currently support passing such an arg into the simulated
      program.
      * gdb.base/commands.exp: Change tests to insert the proper
      value as the arg to the first recursive factorial call.  Change
      compilation line to define FAKEARGV at compile time.
1997-04-21 21:56:32 +00:00
David Edelsohn
e4bb902716 * gdbtk.c (gdb_disassemble): Store endian-ness in `di'. 1997-04-21 21:01:28 +00:00
Stan Shebs
d9263d5fc5 One more removal of internal Cygnus stuff 1997-04-21 20:19:21 +00:00
Stan Shebs
41e0a2b48c Fix various standards violations. 1997-04-21 20:07:53 +00:00
Stu Grossman
3278ed0c9e * remote-pa.c: Remove. It's broken and no longer necessary. 1997-04-21 16:51:22 +00:00
Per Bothner
75a947c66b * java-exp.y: Combine TRUE and FALSE into BOOLEAN_LITERAL.
(Avoids name clash with broken AIX header files.)
1997-04-19 19:11:28 +00:00
Peter Schauer
64e6335a65 * serial.c (serial_log_command): Fix fputs_unfiltered calls. 1997-04-19 11:53:58 +00:00
Peter Schauer
0daae7e21b * config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
(DONT_RELOCATE_SYMFILE_OBJFILE):  Removed.
1997-04-19 08:52:42 +00:00
Peter Schauer
211b564e41 * config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.h
(DONT_RELOCATE_SYMFILE_OBJFILE):  Removed.
	* xcoffsolib.h (struct vmap):  Add new members tvma, toffs and dvma,
	remove tadj.
	* exec.c (bfdsec_to_vmap):  Initialize new vmap members, initialize
	tstart and dstart with section VMA.
	* rs6000-nat.c (vmap_symtab):  Relocate relative to the VMA in the
	object file.
	(vmap_ldinfo, xcoff_relocate_core):  Adjust tstart by section offset
	of the text section, remove DONT_RELOCATE_SYMFILE_OBJFILE hack.
	(vmap_exec):  Relocate relative to the VMA in the object file,
	relocate .bss section as well.
	(xcoff_relocate_core):  No longer adjust section addresses by VMA.
	* rs6000-tdep.c (find_toc_address):  Change type of tocbase
	to CORE_ADDR.
	* xcoffread.c (secnum_to_bfd_section):  New routine to get
	BFD section from CS section number.
	(scan_xcoff_symtab):  Make toc_offset section relative.

	* symtab.c (total_number_of_methods):  Avoid core dump if
	baseclass type is still undefined.
1997-04-19 08:52:17 +00:00
Stu Grossman
0649bb3d69 * Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans up
that directory.
	* defs.h utils.c (error warning):  Make message be const.
	* main.c (fputs_unfiltered):  Only send gdb_stdout and gdb_stderr
	to hook.  Otherwise send it to fputs.
	* monitor.c monitor.h (monitor_get_dev_name):  New function.  Does
	the obvious.
	* remote-e7000.c:  Remove debugify stuff.  Change printf, fprintf
	to _filtered forms to make output appear in GUIs.  Replace all
	uses of SERIAL_READCHAR with readchar, which has better error
	checking.
	* (e7000_parse_device):  Add prototype.
	* (readchar):  Improve doc.  Handle random serial errors.
	* (expect):  Disable notice_quit code.  It's busted.  Remove
	serial error handling (it's now handled in readchar).  Remove
	remote_debug echoing.  That's handled in readchar as well.
	* (e7000_parse_device):  Remove serial_flag arg.  It's not
	necessary.
	* (e7000_open):  Split into two pieces.  Second part is
	e7000_start_remote, and is error protected.  Now, when we connect
	to the target, we setup the initial frame and registers so that
	the user gets an immediate indication of where the target is.
	* (gch):  Remove debug output.  That's handled by readchar.
	* (e7000_read_inferior_memory):  Handle errors better.
	* (_initialize_remote_e7000):  Get rid of `<xxx>' things from
	command names.  They show up when doing completion and confuse
	things horribly.
	* ser-e7kpc.c:  Remove the last seven months of brain damage.  Get
	rid of the DLL's since we can access the device directly from Win32s
	and Win95.  Get rid of debugify crud.
	* serial.c:  Remove debugify cruft.
	* (serial_logchar serial_log_command serial_write serial_readchar
	serial_send_break serial_close):  Merge common functionality into
	serial_logchar.  Clean up rest of routines.
	* sparclet-rom.c:  Disembowel.  Leave only download routine.
	Download routine now switches to remote target automatically.
	* top.c (disconnect):  Only define if SIGHUP is defined.  Cleans
	up MSVC/Win32 problem.
	* utils.c (gdb_flush):  Don't call hook unless it's for gdb_stdout
	or gdb_stderr.
	* config/sh/tm-sh.h:  Define TARGET_SH for WinGDB.
	* config/sparc/tm-sparclet.h:  Remove override for prompt.
1997-04-19 01:52:30 +00:00
Stu Grossman
4ce7ba5188 * Makefile.in (SUBDIRS): Add mswin so that make cleanup cleans up
that directory.
	* defs.h utils.c (error warning):  Make message be const.
	* main.c (fputs_unfiltered):  Only send gdb_stdout and gdb_stderr
	to hook.  Otherwise send it to fputs.
	* monitor.c monitor.h (monitor_get_dev_name):  New function.  Does
	the obvious.
	* remote-e7000.c:  Remove debugify stuff.  Change printf, fprintf
	to _filtered forms to make output appear in GUIs.  Replace all
	uses of SERIAL_READCHAR with readchar, which has better error
	checking.
	* (e7000_parse_device):  Add prototype.
	* (readchar):  Improve doc.  Handle random serial errors.
	* (expect):  Disable notice_quit code.  It's busted.  Remove
	serial error handling (it's now handled in readchar).  Remove
	remote_debug echoing.  That's handled in readchar as well.
	* (e7000_parse_device):  Remove serial_flag arg.  It's not
	necessary.
	* (e7000_open):  Split into two pieces.  Second part is
	e7000_start_remote, and is error protected.  Now, when we connect
	to the target, we setup the initial frame and registers so that
	the user gets an immediate indication of where the target is.
	* (gch):  Remove debug output.  That's handled by readchar.
	* (e7000_read_inferior_memory):  Handle errors better.
	* (_initialize_remote_e7000):  Get rid of `<xxx>' things from
	command names.  They show up when doing completion and confuse
	things horribly.
	* ser-e7kpc.c:  Remove the last seven months of brain damage.  Get
	rid of the DLL's since we can access the device directly from Win32s
	and Win95.  Get rid of debugify crud.
	* serial.c:  Remove debugify cruft.
	* (serial_logchar serial_log_command serial_write serial_readchar
	serial_send_break serial_close):  Merge common functionality into
	serial_logchar.  Clean up rest of routines.
	* sparclet-rom.c:  Disembowel.  Leave only download routine.
	Download routine now switches to remote target automatically.
	* top.c (disconnect):  Only define if SIGHUP is defined.  Cleans
	up MSVC/Win32 problem.
	* utils.c (gdb_flush):  Don't call hook unless it's for gdb_stdout
	or gdb_stderr.
	* config/sh/tm-sh.h:  Define TARGET_SH for WinGDB.
	* config/sparc/tm-sparclet.h:  Remove override for prompt.
1997-04-19 01:42:34 +00:00
David Edelsohn
0c4cec9f72 * remote-sim.c (gdbsim_open): Only pass -E to sim_open if
TARGET_BYTE ORDER_SELECTABLE.
1997-04-18 20:39:38 +00:00
Andrew Cagney
8517f62b16 Ref gdb/11763 - can't stop a running simulator:
o	Provide poll_quit callback to simulators
		so that they can poll for SIGINT on
		clueless OS's.

	o	Add sim_stop to simulators so that clients
		can request a halt (eg gdbtk's STOP button)
		Works for PPC!

	o	Re-arange remote-sim.c so that the
		hard work is moved from gdbsim_resume()
		to gdbsim_wait() (where it should be).
1997-04-18 12:24:52 +00:00
Per Bothner
2d3588808f Add new Java files. 1997-04-18 02:23:16 +00:00
Per Bothner
7a9eb4c45a * defs.h (enum language): Add language_java.
* java-exp.y, java-lang.c, java-lang.h, java-valprint.c:  New files.
	* Makefile.in:  Upadte for new files.
	* objfiles.c (allocate_objfile):  Allow NULL bfd argument.
	* symfile.c (deduce_language_from_filename):  Recognize .java.
1997-04-18 02:22:18 +00:00
Per Bothner
b57d4d17d6 Change FIXME comment - should replace bubble sort by merge sort, not qsort. 1997-04-17 21:32:25 +00:00
David Edelsohn
d4d2dce553 * m32r-stub.c (stash_registers): Rewrite.
(restore_registers): Renamed to restore_and_return.
	(cleanup_stash): New function.
	(process_exception): New function.
	(_catchException*): Rewrite.
1997-04-17 21:13:57 +00:00
David Edelsohn
22003c917e (gdbsim_open): Pass endian indicator as arg.
[forgot this]
1997-04-17 09:23:55 +00:00
David Edelsohn
44cd79e4b1 * remote-sim.c (gdbsim_load): Update call to sim_load.
(gdbsim_create_inferior): No longer pass start_address to
	sim_create_inferior.
	(gdbsim_open): Pass endian indicator as arg.
1997-04-17 09:23:28 +00:00
Stan Shebs
1654a68d5b * remote.c (get_offsets): Don't use scanf for interpreting
response to qOffsets.
1997-04-16 01:55:47 +00:00
Ian Lance Taylor
591042f3e7 * gdbserver/Makefile.in (INSTALL_XFORM): Remove.
(INSTALL_XFORM1): Remove.
	(install-only): Use $(program_transform_name) directly, rather
	than using $(INSTALL_XFORM) and $(INSTALL_XFORM1).
	(uninstall): Transform name.
1997-04-15 18:52:33 +00:00
Mark Alexander
8e7c36868b * remote-mips.c (mips_load): Ensure that PC gets updated
after a load on LSI target.
1997-04-15 00:09:24 +00:00
Geoffrey Noer
234c409626 Mon Apr 14 15:54:51 1997 Geoffrey Noer <noer@pizza.cygnus.com>
* procfs.c (notice_signals): fix typo
1997-04-14 23:06:49 +00:00
Ian Lance Taylor
3ea58ef861 * gdbserver/Makefile.in (INSTALL): Change install.sh to
install-sh.
1997-04-14 20:25:38 +00:00
Geoffrey Noer
5e127f7693 Mon Apr 14 11:55:27 1997 Geoffrey Noer <noer@pizza.cygnus.com>
* config/i386/cygwin32.mh: remove -lkernel32 from XM_CLIBS
        since gcc automatically includes it
1997-04-14 18:57:47 +00:00
Geoffrey Noer
234a732de0 Thu Apr 10 13:20:53 1997 Geoffrey Noer <noer@cygnus.com>
* procfs.c: Substantial (but incomplete) changes to support
        sysv4.2mp procfs as implemented in UnixWare 2.1.  The procinfo
        struct now has substructs like struct flt_ctl instead of
        just a fltset_t and has a ctl_fd, status_fd, as_fd, and
        map_fd instead of a single fd.  Non-sysv4.2mp procfs models
        still have the structs and multiple fds, but don't use the
        entire struct and the four fds all point to the same thing.
        We use PROCFS_USE_READ_WRITE to decide whether to talk to
        procfs with reads/writes or use ioctl instead.  We use
        HAVE_MULTIPLE_PROC_FDS to determine whether procfs really has
        multiple fds or not.  PROC_NAME_FMT is split out into
        CTL_PROC_NAME_FMT, AS_PROC_NAME_FMT, MAP_PROC_NAME_FMT,
        STATUS_PROC_NAME_FMT.

        (procfs_notice_signals): now a necessary wrapper around
        (notice_signals): which are the new guts for noticing signals
        (open_proc_file): gets a new flag arg used in sysv4.2mp to
        determine whether or not to attempt to open the ctl_fd.
        (procfs_read_status): new local function, reads procfs status
        (procfs_write_pcwstop): new local function, writes a PCWSTOP
        (procfs_write_pckill): new local function, writes a PCKILL
        (unconditionally_kill_inferior): remove signo since we now
        just call procfs_write_pckill().
        (procfs_xfer_memory): call lseek with SEEK_SET rather than 0
        (proc_iterate_over_mappings): the whole function is ifdefed
        on UNIXWARE to keep things readable.

        Expanded the syscall_table to include new potential sysv4.2mp
        members.  Note that all ifdefs of UNIXWARE should be eliminated
        if possible or renamed to describe what's being selected for a
        bit better.  Sysv4.2mp and IRIX both have SYS_sproc so the
        IRIX specific code now also checks it's not UNIXWARE.

        * config/i386/tm-i386v42mp.h: also define HAVE_PSTATUS_T,
        HAVE_NO_PRRUN_T, PROCFS_USE_READ_WRITE, and UNIXWARE
        * config/mips/nm-irix4.h: set CTL_PROC_NAME_FMT et al to
        "/debug/%d" as PROC_NAME_FMT used to be
1997-04-10 20:24:42 +00:00
Jeff Law
fc8d57c2dc * mn10300-tdep.c: Almost completely rewritten based on mn10200
port.
        * config/mn10300/tm-mn10300.h: Likewise.

                === gdb Summary ===

# of expected passes            3890
# of unexpected failures        8
# of expected failures          39
# of unresolved testcases       1
1997-04-09 17:43:26 +00:00
Bob Manson
5f4c2f2db9 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):
Don't call gdb_test when the command doesn't return to a gdb prompt.

Oops.
1997-04-09 05:54:15 +00:00
Bob Manson
614fb1b421 Fix typo. 1997-04-09 02:35:38 +00:00
Bob Manson
1a84b8b1b4 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratiutious
"Tests restarted" messages.
1997-04-09 02:35:07 +00:00
Michael Snyder
df04bd49f6 Remove mention of .Sanitize from ChangeLogs 1997-04-08 23:49:14 +00:00
Jeff Law
69f80b9d40 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests. 1997-04-08 22:50:33 +00:00
Stu Grossman
524f442b04 * config/pa/{hppabsd.mt hppahpux.mt hppaosf.mt}: Remove
remote-pa.o from TDEPFILES.  Nobody uses it, and besides, it's a
	lousy out-of-date clone of remote.c.
1997-04-08 17:50:50 +00:00
Michael Snyder
3ac09675e8 * .Sanitize: remove sanitization for m32r. 1997-04-08 00:55:42 +00:00
Michael Snyder
1397dff873 Mon Apr 7 17:46:23 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* .Sanitize: remove sanitization for M32R target.
1997-04-08 00:51:12 +00:00
David Edelsohn
038e48cf64 Remove m32r sanitization. 1997-04-07 23:01:27 +00:00
Stu Grossman
a057f07b3a * remote.c: Fix problems realized while showering.
* (hexnumlen):  Add prototype.  Use max, not min.
	* (remote_write_bytes remote_read_bytes):  Fix max packet size
	calculations to properly account for packet overhead.  Also handle
	(probably rare) case where remote_register_buf_size isn't set.
1997-04-04 18:53:26 +00:00
Stu Grossman
0a325463ed * remote.c: Fix doc for C' and S' commands to indicate full
address.
	* (remote_ops extended_remote_ops remote_desc remote_write_size):
	Make static.
	* (remote_fetch_registers remote_write_bytes remote_read_bytes):
	Record size of response to fetch registers command, use this to
	limit size of memory read and write commands.
	* (push_remote_target):  New function to make it possible to have
	another target switch to the remote target.
	* target.h:  Add prototype for push_remote_target.
	* sh-tdep.c (sh_frame_find_saved_regs):  Fix sign extension bugs
	for hosts which default to unsigned chars (such as SGI's).
	* (_initialize_sh_tdep):  Don't set remote_write_size.  It's now
	handled automatically in remote.c.
1997-04-04 16:52:55 +00:00
Michael Snyder
320b1d82e4 Thu Apr 3 15:21:26 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/help.exp: update help msg for INFO ADDR; add help test
        for INFO SYMBOL; add help tests for OVERLAY commands.
        * gdb.base/default.exp: add tests for INFO SYMBOL command;
        add tests for OVERLAY commands
        * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h
        d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays.
        * gdb.base/sigall.c: add usestubs code frag
        * gdb.base/watchpoint.c: turn on complex watchpoint test for M32R.
1997-04-03 23:24:30 +00:00
Michael Snyder
b9580b812c Thu Apr 3 15:10:30 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
Except for the two m32r modules, this checkin is for
	overlay support.

        * blockframe.c: blockvector_for_pc_sect(), block_for_pc_sect(),
        find_pc_sect_function(), find_pc_sect_partial_function(): new
        functions for debugging overlays; pc without section is ambiguous.
        * breakpoint.[ch]: add section pointer to breakpoint struct;
        add section argument to check_duplicates(); check section as well
        as pc in [breakpoint_here_p(), breakpoint_inserted_here_p(),
        breakpoint_thread_match(), bpstat_stop_status()];
        add section argument to describe_other_breakpoints();
        use INIT_SAL() macro to zero-out new sal structures;
        make resolve_sal_pc() fix up the sal's section as well as its pc;
        match on section + pc in clear_command() and delete_breakpoint();
        account for overlay sections in insert_breakpoints(),
        remove_breakpoint() and breakpoint_re_set_one();
        all this to support overlays where a PC is not unique.
        * exec.c: change xfer_memory() to handle overlay sections.
        * findvar.c: change read_var_value() to handle overlay sections.
        * frame.h: declaration for block_for_pc_sect() [blockframe.c].
        * infcmd.c: jump_command() warns against jumping into an overlay
        that's not in memory.  Also use INIT_SAL() to initialize sals.
        * infrun.c: wait_for_inferior() sets a flag to invalidate cached
        overlay state information; Also use INIT_SAL() to init sals.
        * m32r-rom.c: modify load routines to use LMA instead of VMA.
        * m32r-stub.c: mask exit value down to 8 bits; screen out any
        memory read/writes in the range 600000 to a00000, and ff680000
        to ff800000 (hangs because nothing is mapped there); fix strcpy().
        * maint.c: maintenance command "translate-address" supports overlays.
        * minsyms.c: lookup_minimal_symbol_by_pc_sect() supports overlays.
        * objfiles.[ch]: add ovly_mapped field to the obj_section struct;
        this constitutes gdb's internal overlay mapping table.  Add macro
        ALL_OBJSECTIONS() to loop thru the obj_structs and look at overlays.
        Add function find_pc_sect_section().
        * printcmd.c: modify print_address_symbolic() with overlay smarts;
        modify address_info() with overlay smarts; add function sym_info()
        to support the INFO SYMBOL command (translate address to symbol(s));
        modify disassemble_command() to work on unmapped overlays.
        * source.c: use INIT_SAL() to initialize sals.
        * symfile.[ch]: change generic_load() to use section's LMA address
        instead of VMA address, for overlay sections.
        Add numerous functions for finding a PC's section / overlay,
        translating between VMA and LMA address ranges, determining if an
        overlay section is mapped, etc.  Add several user commands for
        overlay debugging.  Add support for a "generic" form of automatically
        reading overlay mapping info from the inferior (based on the default
        (simple) overlay manager which Cygnus provides as an example).
        * symtab.[ch]: add functions find_pc_sect_symtab(),
        find_pc_sect_psymtab(), find_pc_sect_psymbol(), find_pc_sect_line()
        for lookup; modify lookup_symbol and decode_line_1() to use them;
        modify find_function_start_sal() to account for overlay sections;
        add macro INIT_SAL() for initializing struct symtab_and_line.
        * target.c: fix a comment in the declaration of target_ops.
1997-04-03 23:19:46 +00:00
Mark Alexander
4eb4b87e13 * mips-tdep.c (mips_in_call_stub, mips_in_return_stub,
mips_skip_stub, mips_ignore_helper): New functions for dealing
	with MIPS16 call/return thunks.
	(mips_init_frame_pc_first): New function to implement
	INIT_FRAME_PC_FIRST macro; includes code from old macro plus
	new code to skip over MIPS16 thunks.
	(mips_frame_chain): Skip over MIPS16 thunks.
	* config/mips/tm-mips.h (mips_in_call_stub, mips_in_return_stub,
	mips_skip_stub, mips_ignore_helper): Declare.
	(IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE,
	SKIP_TRAMPOLINE_CODE, IGNORE_HELPER_CALL): New macros that invoke
	the above functions.
	(INIT_FRAME_PC_FIRST): Change to invoke mips_init_frame_pc.
	(mips_init_frame_pc): Declare.
	* infrun.c (wait_for_inferior): Use new IGNORE_HELPER_CALL macro
	to decide if certain library function calls should be ignored.
1997-04-03 19:43:39 +00:00
Bob Manson
ddb594ac2a * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequent
failures.
	(gdb_stop_suppressing_tests): Note that tests have restarted.
1997-04-03 17:47:33 +00:00
Bob Manson
96a6f034a6 * config/h8300.exp: New file. 1997-04-03 03:05:12 +00:00
David Edelsohn
78077ce6d2 * remote-sim.c (gdbsim_open): Check return code from sim_open.
Update call to sim_open (new arg SIM_OPEN_DEBUG).
Forgot the last sentence in the previous checking.
1997-04-02 23:27:06 +00:00
David Edelsohn
9909707740 * remote-sim.c (gdbsim_open): Check return code from sim_open. 1997-04-02 22:17:42 +00:00
Jason Molenda
991747113e * configure.in (gdbtcl): Create soft-link for gdbtcl/ directory instead
of gdbtk.tcl.
1997-04-01 06:04:02 +00:00
Ian Lance Taylor
0cb7d01dd2 * gdbinit.in: New file.
* .gdbinit: Remove.
	* configure.in: Generate .gdbinit from gdbinit.in.
	* configure: Rebuild.
1997-03-31 19:57:51 +00:00
Fred Fish
538fd878d8 * config/tic80/tic80.mt: Disable using the simulator
until it is ready.
1997-03-30 19:35:55 +00:00
Bob Manson
5cb6d16506 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion. 1997-03-29 22:08:56 +00:00
Fred Fish
681a0aded2 * COPYING: Install new version of file from FSF.
* copying.c (show_copying_command): Update FSF address.
1997-03-29 21:03:31 +00:00
Bob Manson
81ad11036d * gdb.base/scope.exp: It's now init0(), not init().
* gdb.base/scope0.c: For now, change init() to be init0().
1997-03-29 21:00:14 +00:00
Bob Manson
d848223548 * config/monitor.exp: Use gdb_serial in preference to serial
or netport.

	* lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
 	and it's not already set.

	* gdb.base/setshow.exp: Only test the run command if the target
 	isn't using a stub and if it supports argument passing.
1997-03-29 19:24:07 +00:00
Ian Lance Taylor
cd6a44090f * Makefile.in (distclean): Remove .gdbinit. 1997-03-28 23:34:28 +00:00
Fred Fish
7fcf0be5e7 * config/tic80/tm-tic80.h (NAMES_HAVE_UNDERSCORE): Define. 1997-03-28 22:47:22 +00:00
Michael Meissner
8902803f75 Fix faulty assumption that va_list is a pointer type 1997-03-28 20:48:12 +00:00
Jason Molenda
253c591b40 * Makefile.in (gdbtk.o): look for GDBTK_LIBRARY in $(datadir) by
default, not $(srcdir).
1997-03-28 08:04:44 +00:00
Mark Alexander
b68b97830b * remote-mips.c: Clean up comment and extraneous semicolon
for mips_monitor_prompt variable.
1997-03-27 22:25:51 +00:00
Mark Alexander
8e493b6178 * remote-mips.c: Add `set monitor-prompt' command. 1997-03-27 22:09:34 +00:00
Mark Alexander
4a3150f58a Fix from Peter Schauer:
* mdebugread.c (parse_procedure): Set address of procedure to
	block start; this fixes problems with shared libraries introduced
	by change of Mar 21.
1997-03-26 14:48:59 +00:00
Ian Lance Taylor
3b111d29fb * stabs.texinfo (Stab Section Basics): Make it clear that only
some versions of the GNU linker remove the leading N_UNDF symbol.
1997-03-25 19:44:43 +00:00
Geoffrey Noer
2f472f924c Mon Mar 24 19:43:16 1997 Geoffrey Noer <noer@cygnus.com>
* symtab.c (find_pc_symtab): change to support the case
        where the objfile is reordered and contains both coff and
        stabs debugging info (continue on if a psymtab isn't found).
1997-03-25 03:47:14 +00:00
Jeff Law
292a8231f4 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
* gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
disassembler testsuite for the mn10300.
1997-03-24 21:48:36 +00:00
Mark Alexander
87ee36023c Fixes from Peter Schauer:
* config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE,
	REGISTER_CONVERT_FROM_TYPE): Swap words if target, not host,
	is big-endian and if registers are 32 bits.
	* mips-tdep.c (mips_print_register, mips_extract_return_value,
	mips_store_return_value): Fix floating-point word-order problems on
	little-endian targets introduced by changes of Mar 21.
1997-03-24 00:29:12 +00:00
Stan Shebs
a9b9b4071f * remote.c (target_resume_hook, target_wait_loop_hook): New
globals.
 	(remote_resume, remote_wait): Use them.
	* d10v-tdep.c: Set the above hooks.
	(tracesource): New GDB variable, controls source display in
 	traces.
	(display_trace): Find and display source line if requested.
	(trace_info): Mention empty trace buffer if appropriate.
	(tdisassemble_command): Robustify argument handling.
1997-03-24 00:08:26 +00:00
Stan Shebs
94626fd155 * configure.host: Remove extra bogus Linux case. 1997-03-23 20:50:09 +00:00
Bob Manson
4d400231d9 Moved change from gdb_target_udi to gdb_start. 1997-03-23 04:41:14 +00:00
Bob Manson
fb9eb1371d * config/udi.exp(gdb_target_udi): Make sure UDICONF is set
properly before starting gdb.
1997-03-23 04:01:48 +00:00
Fred Fish
09f0789e93 Add this file too.. 1997-03-22 23:55:06 +00:00
Fred Fish
46c755d495 Forgot this change in last checkin. 1997-03-22 23:53:32 +00:00