Commit Graph

7473 Commits

Author SHA1 Message Date
Keith Seitz b2a9dbf70f * gdbtk-cmds.c (gdb_cmd): Do not run the timer when downloading --
the ui_progress_hook that has been installed will actually
        update the gui for us.
1998-09-02 19:01:13 +00:00
Zdenek Radouch e01b420025 Modifications/fixes to support the ARM/ELF port. 1998-09-01 16:24:23 +00:00
Tom Tromey d5adad6aa2 * top.c (context_hook): Define.
* gdbtk-hooks.c (context_hook): Don't define.
1998-08-31 22:43:21 +00:00
Keith Seitz 4af2d83a66 * gdbtk-cmds.c (gdb_listfuncs): When stripping out "global destructors"
and "global constructors", do not append any elements to the result.
 	(gdb_get_vars_command): Install patch from Jun 9 1998 which appears
        to have been lost.

        Clean up some tabbing mess.
1998-08-31 21:34:09 +00:00
Martin Hunt 4ff5d55a08 Sun Aug 30 00:49:18 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (Gdbtk_Init): Link C variable gdb_context
	with tcl variable gdb_context_id.

	* gdbtk-hooks.c (gdbtk_context_change): Implement new hook called
	context_hook.  Called when threads change.

	* gdbtk.c: Initialize gdb_context.

	* gdbtk.h: Declare gdb_context.

	* infrun (wait_for_inferior): Call context_hook.

	* thread.c (thread_command): Call context_hook.

	* defs.h: Declare context_hook.
1998-08-30 07:53:29 +00:00
Martin Hunt 973b0216f6 Fri Aug 28 12:14:49 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_loadfile): Open the file after doing
	the symtab lookup and calling symtab_to_filename(). This
	makes GDBtk work with the GDB "dir" command.
1998-08-28 19:18:38 +00:00
Michael Snyder 290bc1851b Tue Aug 25 13:21:58 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* ax-gdb.c (gen_var_ref): Allow for typedef types.
        (gen_cast, gen_bitfield_ref, gen_expr): ditto.
1998-08-25 20:24:03 +00:00
Michael Snyder 98760699c7 Mon Aug 24 18:29:03 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (collect_symbol): Handle register doubles that
        are stored in two registers.
1998-08-25 01:31:06 +00:00
Mark Alexander ce8f5b49f6 * sh-stub.c (undoSStep): Improve comment.
* sparc-tdep.c (sparc_extract_struct_value_address): Simplify to use
	same method on both 32-bit and 64-bit machines.
	* sparcl-tdep.c (sparclite_check_watch_resources): Simulator doesn't
	support hardware breakpoints.
	* config/sparc/tm-sparc.h (CALL_DUMMY): Improve comments.
1998-08-24 21:51:33 +00:00
Jason Molenda ae69b4c467 1998-08-20 Jason Molenda (jsm@bugshack.cygnus.com)
* rdi-share/Makefile.am (INCLUDES): Fix typeo.
        * rdi-share/Makefile.in: Regenerated.
1998-08-20 20:11:18 +00:00
Jason Molenda c0ca074b5d 1998-08-19 Jason Molenda (jsm@bugshack.cygnus.com)
* rdi-share/Makefile.am: Use just `INCLUDES' not `libname_INCLUDES'.
        * rdi-share/Makefile.in: Regenerated.
1998-08-20 03:15:05 +00:00
Keith Seitz 67205639eb * v850ice.c (v850ice_stop): New function to stop the ICE.
(v850ice_load) Pass filename to ICE DLL.
        (ice_stepi, ice_nexti, ice_cont): Do not directly call the gdb
        commands -- let the GUI do it so that it can retain control
        of the display.
1998-08-20 00:14:03 +00:00
Anthony Green 9ca743cf2f * i386v4-nat.c: Include sys/reg.h if present. 1998-08-19 22:57:00 +00:00
Fernando Nasser 6cf219acdf *** empty log message *** 1998-08-19 19:55:58 +00:00
Richard Henderson 54f750d1d6 * config/alpha/alpha-linux (XDEPFILES): Build ser-tcp. 1998-08-19 10:09:01 +00:00
Keith Seitz 3d64f1e050 * gdbtk-hooks.c (gdbtk_add_hooks): Set selected_frame_level_changed_hook
.
        (gdbtk_selected_frame_changed): New function.

        * gdbtk-cmds.c (Gdbtk_Init): Add command gdb_stack into interpreter.
        Link gdb's global selected_frame_level with interpreter global
        gdb_selected_frame_level.
        (gdb_stack): New function to faciltate speedier backtraces from
        gdbtk.
        (get_frame_name): New helper function for gdb_stack.
1998-08-19 02:25:21 +00:00
Keith Seitz a36035532f * stack.c: Define new hook, selected_frame_level_changed_hook, which
will be called whenever the selected stack level changes.
        (select_frame): Call the selected_frame_level_changed_hook.
1998-08-19 02:24:45 +00:00
Stan Shebs d9c02b1eb8 * remote-rdi.c (arm_rdi_open): Pass serial device name to
Adp_OpenDevice, and include it in error reports.
1998-08-19 01:27:46 +00:00
Jason Molenda 6ee3e5d66d Ack, accidentally generated it with autoconf 2.12, not the current version. 1998-08-19 00:09:17 +00:00
Jason Molenda 4ff3dfab54 1998-08-18 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add more header files to AC_CHECK_HEADERS.
        * configure: Regenerated.

        * command.c: Include wait.h or sys/wait.h if present.
        * inftarg.c: Ditto.
        * core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
        on autoconf test.
        * infptrace.c: Ditto.

        * expprint.c: Include ctype.h for isprint prototype.
        * i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
        * i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
        present, based on autoconf test.

        * utils.c: Include curses.h and term.h if present.
        (puts_debug): Change 'carriage_return' local variable to return_p
        to avoid name clash.

        * config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
        determine it with autoconf.
        * config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
        with autoconf.
        * config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
        with autoconf.
        * config/i386/nm-i386v.h: Ditto.
        * config/i386/nm-symmetry.h: Ditto.
        * config/m88k/xm-cxux.h: Ditto.
        * config/m88k/xm-dgux.h: Ditto.

        * config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
        * config/m68k/nm-delta68.h: Removed.
1998-08-18 23:04:24 +00:00
Martin Hunt 1aecc7dccb Tue Aug 18 15:42:40 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_listfuncs): Strip out global constructors
	and destructors from the function list.
1998-08-18 22:43:18 +00:00
Stan Shebs c905465b00 No longer need to sanitize out tx39 bits 1998-08-14 22:52:18 +00:00
Jeff Law 854b0c14b4 * mn10300-tdep.c (set_movm_offsets): Change second argument to
be the actual args to movm itself.  All callers changed.  Only set
        fi->fsr.regs[x] if reg X is saved by the movm instruction.
1998-08-14 17:18:01 +00:00
Peter Schauer cfd7cb2995 * sol-thread.c (lwp_to_thread): Fix error message for failing
td_ta_map_lwp2thr call.
	(ps_lgetLDT):  Mask off upper bits in GS register when comparing
	with selector.
1998-08-14 11:20:51 +00:00
Drew Moseley c076f1ed1c Added Foundry SDK changes. 1998-08-13 20:24:45 +00:00
Drew Moseley 1dd251f99d Added a scope-level around the contents of an #ifdef in
gdbtk_cleanup() so that the variable declarations in there
would not be illegal in a C compilation.
1998-08-13 20:15:20 +00:00
Stu Grossman d826d368a9 * expprint.c (dump_prefix/postfix_expression): Don't try to print type
expressions.
1998-08-12 16:10:31 +00:00
Stu Grossman 433732f25e * c-typeprint.c (c_print_type): Don't crash if varstring is null.
* expprint.c expression.h (dump_expression):  Rename to
	dump_prefix_expression.
	* Print out the expression in normal form.  Call print_longest
	instead of trying to do it ourselves.
	* (dump_postfix_expression):  New function, prints out the expression
	with indentation and better formatting and interpretation.
	* parse.c (parse_exp_1):  Put calls to dump expressions under ifdef
	MAINTENANCE_CMDS and expressiondebug variable.
1998-08-12 15:50:59 +00:00
Frank Ch. Eigler 902459f256 * Handle the possibility that some simulator commands may modify register
state behind gdb's back.
Wed Aug 12 16:30:01 1998  Frank Ch. Eigler  <fche@cygnus.com>
	* remote-sim.c (simulator_command): Reset register cache after
	simulator command.
1998-08-12 13:50:45 +00:00
Ken Raeburn 3d759c53c9 sanitize-vr5400 -> sanitize-cygnus, for 98r2 1998-08-12 10:50:35 +00:00
Ron Unrau b620406abc * txvu-tdep.c: add VU0/1 control registers
* config/mips/tm-txvu.h: ditto
1998-08-06 19:16:53 +00:00
Ron Unrau 05ee9089de * txvu-tdep.c (txvu_insert_breakpoint): make sure CPU context is
set to correct VU memory space.
          (txvu_remove_breakpoint): use this instead of txvu_breakpoint_from_pc
        * config/tm-txvu.h: use new track-table address
          Do note define BREAKPOINT_FROM_PC anymore
1998-08-04 17:05:15 +00:00
Ron Unrau e417b893a7 * config/tm-txvu.h: use NUM_CORE_REGS instead of NUM_R5900_REGS
* mips-tdep.c: use NUM_CORE_REGS
        * txvu-tdep.c: use NUM_CORE_REGS, add function prototypes
        (txvu_insert_breakpoints): use VIF interrupt bit
1998-07-31 22:08:08 +00:00
Drew Moseley c2867a6c70 Change the definition of ui_loop_hook to be a function pointer
rather than a function.
1998-07-31 17:26:05 +00:00
Mark Alexander 3d3abf70e9 * mips-tdep.c (mask_address_p): New variable.
(mips_addr_bits_remove): Test mask_address_p to decide whether
	to mask off the upper 32 bits of addresses.
	(_initialize_mips_tdep): Add command to set mask_address_p.
	(mips_call_dummy_address): New function.
	* config/mips/tm-mips.h (CALL_DUMMY_ADDRESS): Redefine to
	call mips_call_dummy_address.
1998-07-30 21:07:14 +00:00
Fernando Nasser 4ef0351db6 * symfile.c (add_symbol_file_command): Test for the from_tty
parameter and avoid query when not interactive.
PR16620
1998-07-29 18:59:19 +00:00
Jeff Law 6185f899b9 * mn10300-tdep.c (set_movm_offsets): Do nothing for the am33
registers if we are not in am33 mode.
        (mn10300_frame_chain, mn10300_frame_saved_pc): Similarly.
        (set_machine_hook): Keep track of whether or not we're in am33 mode.
1998-07-29 16:41:36 +00:00
Michael Snyder 0745a748dd Mon Jul 27 16:11:42 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (remote_set_transparent_ranges): new function.
        Send the start and end addresses of all loadable read-only
        sections down to the trace target, so that it can treat them
        as "transparent" (ie. don't care if they were collected or not).
1998-07-27 23:13:22 +00:00
Mark Alexander 5ef103c0b9 * mn10300-tdep.c (mn10300_analyze_prologue): Undo previous fix
for setting frame address in optimized code; made unnecessary
	by compiler fixes.
1998-07-27 22:41:21 +00:00
Martin Hunt 6f5af15b07 Mon Jul 27 13:07:16 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_call_command): Removed because it is now
	in gdbtk-hooks.c
	(null_routine): Removed.

	* gdbtk-hooks.c (tracepoint_notify): Fix sprintf to
	match number of arguments.

	* gdbtk-cmds.c (gdb_loc): When calling gdb_loc with an
	argument, call find_pc_line() to get a complete
	symtab_and_line struct.
1998-07-27 20:23:58 +00:00
Martin Hunt 55d3002f53 Mon Jul 27 10:45:56 1998 Martin M. Hunt <hunt@cygnus.com>
* symtab.c (decode_line_1): For minimal symbol, call
	find_pc_sect_line() to make sure the line number gets set
	properly.
	(print_symbol_info): Redeclare function void.
1998-07-27 20:23:32 +00:00
Jason Molenda 2926766b79 1998-07-27 Jason Molenda (jsm@bugshack.cygnus.com)
* config/d10v/tm-d10v.h (REGISTER_NAMES): sp -> r15.  The
        stack pointer et al are synthesized from the SP_REGNUM (etc)
        defines and should not be mentioned in REGISTER_NAMES.

There is a log discussion copied into PR 15966 about how this is not
handled consistently across all targets and we ought to clean it up
a bit.  I'm not tackling the general for this PR, though.
1998-07-27 19:24:40 +00:00
Jeff Law b5b59a3c3c * mn10300-tdep.c (mn10300_frame_chain): Account for space saved
by am33 register saves.
        (mn10300_frame_saved_pc): Similarly.
1998-07-27 14:55:51 +00:00
Keith Seitz 313f4e31dd * gdb.gdbtk/Makefile.in: Add new example program "stack".
* gdb.gdbtk/browser.test,browser.exp: Add browser window
          tests.
        * gdb.gdbtk/stack1.c,stack2.c: Test case for browser window.
1998-07-24 22:11:22 +00:00
Keith Seitz 850e1491cc * gdbtk-cmds.c (gdb_search): Add missing NULL to switches.
Add missing flags to result_ptr.
        Pass along any errors caused by getting the list of files from
        tcl.
        Allocate correct amount of memory for the file list.
        Don't do any unecessary cleanups.
1998-07-24 22:02:39 +00:00
Jeff Law 73fe88bc9f * gdb.disasm/am33.s: Add tests for autoincrement instructions.
* gdb.disasm/am33.exp: Run time.  Update tests which use r8-r15
        to use a0-a3/d0-d3 as needed.
1998-07-24 21:52:43 +00:00
Ian Lance Taylor 96909b926c * stabs.texinfo (Method Type Descriptor): Expand and correct. 1998-07-24 21:52:03 +00:00
Michael Snyder 8d6476c711 Fri Jul 24 14:41:19 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (encode_actions): Treat register names and simple
        variable names as special cases and don't convert them to byte-
        codes: these things can be collected far more efficiently
        without invoking the bytecode interpreter.
1998-07-24 21:44:14 +00:00
Mark Alexander 4448ace242 * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
work on hosts of any endianness.
	* config/i386/tm-i386v.h: Ditto.
1998-07-24 20:44:47 +00:00
Mark Alexander bd06c4e4d3 * config/i386/tm-i386.h (STORE_STRUCT_RETURN): Make it
work on hosts of any endianness.
1998-07-24 20:38:43 +00:00
Mark Alexander 52e4073c5f * mn10300-tdep.c (set_movm_offsets): New helper function
for mn10300_analyze_prologue.
	(mn10300_analyze_prologue): Simplify by factoring out common code.
	Fix bugs in setting frame address for optimized code.
	Use read_memory_nobpt instead of target_read_memory.
1998-07-24 14:48:41 +00:00
Martin Hunt 6e77819495 Fri Jul 24 01:08:37 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk-cmds.c (gdb_loadfile): When there are no
	linenumbers, use only one tab.
1998-07-24 08:09:03 +00:00
Ian Lance Taylor 2c9fd4b158 remove d30v sanitization 1998-07-24 04:44:58 +00:00
Michael Snyder f32fa05325 Thu Jul 23 17:01:17 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c (collect_symbol): handle LOC_ARG case.
1998-07-24 00:02:07 +00:00
Dawn Perchik 79dc930562 * sparc-tdep.c (sparc_init_extra_frame_info): Recognize when we're
in a function prologue before the SAVE instruction.
	(sparc_frame_saved_pc): Ditto.
	* config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Add in_prologue flag.
1998-07-23 22:14:48 +00:00
Dawn Perchik dd473edc9f * i386-tdep.c (i386_get_frame_setup): Recognize function
prologues in code compiled with -fcheck-stack.
1998-07-23 21:59:49 +00:00
Dawn Perchik 2474bfd794 * remote-mips.c (remote_mips_insert_hw_breakpoint,
remote_mips_remove_hw_breakpoint): New functions for hardware
	breakpoints on LSI targets.
	* config/mips/tm-embed.h (target_remove_hw_breakpoint,
	target_insert_hw_breakpoint): Define to call
	remote_mips_insert_hw_breakpoint and remote_mips_remove_hw_breakpoint,
	respectively.
1998-07-23 21:48:28 +00:00
Ian Carmichael f07122bc9e * VU memory now accessed via kseg1. 1998-07-23 17:05:08 +00:00
Martin Hunt 9c56157ffa (gdb_listfiles): Fix comments and cleanup. 1998-07-21 18:40:06 +00:00
Martin Hunt 4d14b2522a Sun Jul 19 02:11:45 1998 Martin M. Hunt <hunt@cygnus.com>
* symtab.c (decode_line_2): Instead of printing a prompt
	and calling command_line_input() without a prompt, just
	call it with the proper args.  This makes the GUI work too.

Sat Jul 18 12:28:39 1998  Martin M. Hunt  <hunt@cygnus.com>

	* gdbtk.c (gdbtk_cleanup): Add call to tcl function
	gdbtk_cleanup. We need this so the GUI gets to clean
	up no matter how GDB exits.
1998-07-19 09:33:34 +00:00
Ron Unrau 36297ff31d * blockframe.c (find_pc_sect_partial_function): allow for the possi-
bility of multiple symbols at the same address when finding high.
        * breakpoint.c (resolve_sal_pc): if the function based section lookup
          fails, try getting the section from the minimal symbol table.
        * parse.c (write_exp_msymbol): use symbol_overlayed_address to get
          the LMA of a minimal symbol if unmapped.
        * symtab.c (find_line_symtab): change interface to return symtab
          containing the best linetable found.
          (decode_line_1): use find_line_symtab to set val.symtab. This should
          improve support for source files with multiple symtabs.
        * tm-txvu.h: include tm-mips64.h instead of starting from scratch.
1998-07-17 15:29:11 +00:00
Keith Seitz e3ca310c69 Merge v850 branch ICE support onto devo. 1998-07-15 20:13:34 +00:00
Keith Seitz 895cc8ab1c * main.c (main): Fix violations of GNU coding standard.
* breakpoint.c: Export delete_command.

	* infcmd.c: Export continue_command, stepi_command, and nexti_command.

	* Makefile.in: Add target for v850ice.o.

	* configure.tgt: Add cygwin32 dependencies for v850 ice.
1998-07-15 18:52:50 +00:00
Nick Clifton e1f1ed1ad7 Cope with setting trace points on symbols which do not have an associated directory. 1998-07-15 18:00:49 +00:00
Keith Seitz ead0877781 * configure.in: Fix sanitization start/end error.
* configure: Regenerate.
1998-07-14 23:16:40 +00:00
Felix Lee de5cce9cb4 * gdb.base/callfuncs.exp: add cmp10 test.
* gdb.base/callfuncs.c (cmp10): new function.
1998-07-13 13:42:45 +00:00
Per Bothner 3ba862b607 Remove references to Alcatel. 1998-07-10 20:46:48 +00:00
Dawn Perchik faf0a71f31 * gdb.base/commands.exp: Break up infrun_breakpoint_command_test
into two parts to get around a synchronization problem in expect.
1998-07-10 08:54:17 +00:00
Jeff Law f05bd277cf * mn10300-tdep.c (mn10300_generic_register_names): New variable.
(set_machine_hook): New function.  Copy the appropriate register
        names into reg_names.
        (_initialize_mn10300_tdep): Set up to call set_machine_hook.
        * tm-mn10300 (NUM_REGS): Bump to 32.
        (REGISTER_NAMES): Updated accordingly.

start-sanitize-am33
        * mn10300-tdep.c (am33_register_names): New variable.
        (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
        * tm-mn10300.h (E0_REGNUM): Define.
end-sanitize-am33

Initial am33 support.
1998-07-09 22:23:18 +00:00
Ron Unrau 89f015d750 symtab.c (find_pc_sect_psymbol) - handle address 0 better 1998-07-07 13:41:03 +00:00
Frank Ch. Eigler 8d3c21b3d4 * Belatedly bringing over PR 15850 patch from d30v branch.
Thu Jul  2 15:57:58 1998  Frank Ch. Eigler  <fche@cygnus.com>
	* breakpoint.c (resolve_sal_pc): Accept absence of innermost
	Lexical block for breakpoint resolution.
1998-07-02 17:30:21 +00:00
Dawn Perchik 3acd0db516 * mdebugread.c (parse_partial_symbols): Go ahead and read the .mdebug
section, but just don't add a 2nd minimal symbol if this is an .mdebug
        section in an ELF file.
1998-07-02 17:30:20 +00:00
Jim Blandy 40d8aa2c1b *** empty log message *** 1998-07-01 20:51:19 +00:00
Jim Ingham f3b86a30f9 Wed Jul 1 13:10:58 1998 Jim Ingham <jingham@cygnus.com>
* Moved gdbtk_hooks.c & gdbtk_cmds.c to gdbtk-hooks.c &
	gdbtk-cmds.c to comply with the gdb conventions.  Changed the
	configure & makefile to reflect the change...
1998-07-01 20:17:31 +00:00
Jim Ingham ca4e7e143d Wed Jul 1 11:07:21 1998 Jim Ingham <jingham@cygnus.com>
* main.tcl (gdbtk_preloop): Call gdbtk_idle on spec.  If there was an
        error in loading an executible specified on the command line,
	then the pre_add_symbol hook would have called gdbtk_busy but
        the corresponding call to gdbtk_idle would not have occured.

        Also changed some catch calls so they didn't use
        "catch {set foo [real_command]}"
	    but rather the more efficient:
	"catch {real_command} foo"

	* register.tcl: more catch cleanups
	* src.tcl: more catch cleanups
	* stack.tcl: more catch cleanups
	* target.tcl: more catch cleanups
	* tdump.tcl: more catch cleanups
	* variables.tcl: more catch cleanups
	* watch.tcl: more catch cleanups

	* gdbtk.c (gdbtk_init): Fixed a bug in the startup code on Windows
	that caused gdbtk not to find the share directory unless
	GDBTK_LIBRARY was set.

	* gdbtk.c: removed all the commands and hooks from this file so
	now it contains only the startup code.
 	* gdbtk_cmds.c: New file - this contains all the Tcl commands that
	gdb defines.  All the old commands were moved here, the
	string-based commands were converted to object commands, and the
	object-based commands were all converted to uniformly use the
	call_wrapper.  A new function, Gdbtk_Init was added to centralize
	initializing the gdb package.  Also added gdbtk as a package
	into gdbtk_interp.
	* gdbtk_hooks.c: New file - All the hooks were moved here, and a new
	function, gdbtk_add_hooks was added to centralize adding all these
	hook functions.  gdbtk_fputs was also modified to handle the new
	result_ptr structure.  See the comments in gdbtk.h for more
	details.
	* gdbtk.h: New file - this contains all the defines and globals
	shared by gdbtk.c, gdbtk_cmds.c & gdbtk_hooks.c
	* Makefile.in, configure.in & configure: mutatis mutandi for the
	new files.
1998-07-01 19:29:14 +00:00
Jason Molenda d40d5880c2 Mon Jun 29 19:01:18 1998 Jim Wilson <wilson@cygnus.com>
* gnu-regex.c (re_comp): Add cast to char * before gettext calls.
1998-06-30 02:40:12 +00:00
Keith Seitz 509b70ac80 * main.c (main): Don't include gdbtk test code if GDBTK is
not defined by configure.

        * configure.in: When enabling gdbtk, add "-DGDBTK" to ENABLE_CFLAGS.

        * configure: Regenerate.
1998-06-29 19:04:30 +00:00
Martin Hunt e16def6302 Sun Jun 28 22:34:34 1998 Martin M. Hunt <hunt@cygnus.com>
* gdb.gdbtk/simple.c (main): Make main return an
	int so compiler will stop complaining.
1998-06-29 05:31:35 +00:00
Peter Schauer 655a27b099 Improve support for SunPro F77.
* dbxread.c (end_psymtab, process_one_symbol):  Handle minimal
	symbols with trailing underscore names.
	* minsyms.c (find_stab_function_addr):  Ditto.
	* dbxread.c (process_one_symbol):  Ignore N_ALIAS for now.
	* partial-stab.h (case N_ALIAS):  Ditto.
	* stabsread.c (read_sun_builtin_type):  Handle boolean types.
1998-06-28 18:36:50 +00:00
Keith Seitz f35ea21826 * lib/gdb.exp (gdbtk_start): Add startup for gdbtk.
* configure.in: Add options for gdbtk testsuite.

        * configure: Regenerate.

        * gdb.gdbtk: New directory to hold gdbtk tests.

        * gdb.gdbtk/console.{exp, test}: New console window tests.
1998-06-27 00:47:35 +00:00
Keith Seitz 7f6cb62ee6 * symtab.h (enum namespace): Add new namespaces FUNCTIONS_NAMESPACE,
TYPES_NAMESPACE, METHODS_NAMESPACE, and VARIABLES_NAMESPACE used by
        new search_symbols.
        Add prototype for search_symbols and free_search_symbols.

        * symtab.c (list_symbols): Rewrite to use new search_symbols.
        (file_matches): New helper function for search_symbols.
        (free_search_symbols): New function which frees data returned from
        search_symbols.
        (print_symbol_info): New helper function which prints info about a
        matched symbol to stdout. Extracted from old list_symbols.
        (print_msymbol_info): New helper function which prints info about
        a matched msymbol to stdout. Extracted from old list_symbols.
        (symtab_symbol_info): Extracted from old list_symbols.
        (variables_info): Use symtab_symbol_info.
        (functions_info): Use symtab_symbol_info.
        (types_info): Use symtab_symbol_info.
        (rbreak_command): Rewrite to use new search_symbols.

        * gdbtk.c: Change all references to static global "interp" to
        "gdbtk_interp" and export this global.
        (gdbtk_init): If gdbtk_source_filename is not NULL, source this file
        into the interpreter when it goes idle.
        Add new command "gdb_search".
        (gdb_search): New function which searches the symbol table.
        (gdbtk_test): New function called by main when the --tclcommand
        option is used.

        * main.c (main): Add a new option "--tclcommand" which is used
        by the testsuite to source a file into the interpreter when it
        goes idle.
1998-06-27 00:45:20 +00:00
Peter Schauer 3f1739b32a * gdb.fortran/types.exp: Escape brackets in expect patterns
for test_float_literal_types_accepted tests.
	* gdb.base/scope.exp:  Remove extraneous newline in filelocal_bss
	before run test.
1998-06-26 21:59:29 +00:00
Jeff Law 85a6fcfd5d * am33.exp: Just compile, do not link the testcase.
* am33.s: Add ".am33" pseudoop to force am33 mode.
1998-06-26 17:17:03 +00:00
Felix Lee be2cb9926c * gdb.base/setshow.exp: make sure $pc is sane.
* gdb.stabs/weird.exp: split expect patterns properly.
1998-06-25 22:39:02 +00:00
Frank Ch. Eigler d3f153adbe * Fix gdb inferior calls on 128-bit MIPS targets.
Thu Jun 25 22:38:32 1998  Frank Ch. Eigler  <fche@cygnus.com>
	* mips-tdep.c (mips_push_arguments): Use 128-bit stack frame
	alignment for inferior calls.
1998-06-25 20:36:57 +00:00
Mark Alexander 9d4cd1e849 * mn10200-tdep.c (mn10200_analyze_prologue): Fix calculation
of jsr target address.
1998-06-25 06:20:35 +00:00
Jeff Law 54977a6833 * gdb.disasm/am33.s: New disassembler testfile for the am33.
* gdb.disasm/am33.exp: Run it.
1998-06-24 19:07:51 +00:00
Mark Alexander 2f75adc0b2 * config/mn10200/tm-mn10200.h (SAVED_PC_AFTER_CALL): Don't
zero upper byte of address.
1998-06-24 02:40:54 +00:00
Michael Snyder 75621b2b2c Tue Jun 23 17:32:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* rs6000-tdep.c (pop_dummy_frame): use memcpy.
        (push_arguments): use memset.
        (various other places): fix up indentation and long lines.
1998-06-24 00:37:49 +00:00
Jason Molenda 59bbabf5c0 Tue Jun 23 11:58:35 1998 Jason Molenda (crash@bugshack.cygnus.com)
* configure.in: s/lXext/-lXext/ for Jillian's change.
1998-06-23 19:01:10 +00:00
Michael Snyder d32d4319df fix indentation. 1998-06-23 18:55:13 +00:00
Michael Snyder a59614102b Tue Jun 23 11:45:01 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/funcargs.exp: simplify expect strings to ease pattern
        match processing (and eliminate spurious timeouts when running).
1998-06-23 18:46:00 +00:00
Michael Snyder a00dfa360a Tue Jun 23 11:14:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/mips/tm-irix5.h: Modify to work better on irix 6, by
	making FP registers 8 bytes instead of 4.
	REGISTER_BYTES: redefine.  REGISTER_BYTE(): redefine.
	REGISTER_VIRTUAL_TYPE: redefine.  MIPS_LAST_ARG_REGNUM: redefine.
	* irix5-nat.c (fetch_core_registers): read 8 bytes per FP register.
	* mips-tdep.c (FP_REGISTER_DOUBLE): new macro to distinguish
	targets with 8-byte FP registers (don't use TARGET_MIPS64).
	(STACK_ARGSIZE): new macro, how much space is taken up on the
	stack for each function argument (don't use TARGET_MIPS64).
	(mips_push_arguments): modify logic to work better on Irix 6
	(n32 ABI).
1998-06-23 18:22:43 +00:00
Jillian Ye f915cc9125 configure.in: Add -lXext to mips_extra_libs 1998-06-23 17:59:31 +00:00
Ron Unrau 36841840ec * symtab.c (find_line_pc): assumed that a PC of 0 is illegal.
Changed to pass PC as arg and return 1 if valid (0 otherwise).
          symtab.h: change prototype to match
          symtab.c (find_line_pc_range): use new interface
          breakpoint.c (resolve_sal_pc): ditto
          gdbtk.c (gdb_set_bp): ditto
1998-06-21 15:31:09 +00:00
release 27cd90b285 fix sanitization; add ax-gdb.c ax-gdb.h ax-general.c ax.h 1998-06-18 06:27:54 +00:00
release 9682b440c6 install tracing help files 1998-06-18 02:14:08 +00:00
Ron Unrau 3b3835ccde * parse.c (target_map_name_to_register): Check target specific
aliases *first* so that it can over-ride architectural names
	* txvu-tdep.c: start to handle backtraces
1998-06-17 21:53:20 +00:00
Said Ziouani 959941e717 * remote-sds.c (sds_start_remote): Fix printf call. 1998-06-17 21:21:55 +00:00
Mark Alexander 40fad4934f * mn10200-tdep.c (mn10200_analyze_prologue): Fix null pointer
crash when in "start".
1998-06-16 23:36:01 +00:00