Commit Graph

7051 Commits

Author SHA1 Message Date
Nick Clifton 47819b7207 Add v850 directory to keep list 1997-12-03 18:16:22 +00:00
Michael Snyder 28ad0632ee Tue Dec 2 14:53:09 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c: make "tdump" command handle literal memranges.
1997-12-02 22:55:04 +00:00
Michael Snyder 728c7f37da Tue Dec 2 11:34:48 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c: use "lookup_cmd" to parse actions commands
        (thus allowing unambiguous prefixes and aliases).
1997-12-02 19:36:26 +00:00
Michael Snyder 2b146fa098 Tue Dec 2 10:14:15 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c: move prototype of validate_actionline(), and
        make it consistent with the function declaration.
1997-12-02 18:22:16 +00:00
Nick Clifton 89b993af84 Add support for Thumb target. 1997-12-02 18:17:13 +00:00
Michael Snyder 8b9c29f5cb Mon Dec 1 17:13:53 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* tracepoint.c: modify error behavior of the tfind commands.
	  Add some comments.
1997-12-02 01:14:40 +00:00
Keith Seitz ddaa4b587f remove useless info 1997-12-01 21:04:52 +00:00
Keith Seitz dd3dd91841 * gdbtk.c: move include of "guitcl.h" back out of IDE ifdef
(gdbtk_init): move ide_initialize_paths out of IDE ifdef

        * configure.in (TCL_LIBS, CONFIG_DEPS): add IDE libraries for all
        builds
        (CONFIG_OBS): remove tracepoint.o, which should always be included

        * configure: regenerate

        * Makefile.in (install-only): ALWAYS install the new gdbtk
        (REMOTE_OBS): add tracepoint.o
1997-12-01 20:53:02 +00:00
Michael Meissner 8d21d88c08 Add tracepoint.o to gdbtk builds 1997-11-27 15:13:14 +00:00
Michael Meissner b2b1c5da2e If not --enable-ide, do not include ide libs 1997-11-27 14:30:06 +00:00
Michael Meissner 84f71d6385 Fix typos 1997-11-27 14:10:03 +00:00
Jeff Law 9447f05fbb * remote-sim.c (gdbsim_cntrl_c): Lose ANSI prototype. 1997-11-27 06:01:08 +00:00
Keith Seitz 6c3908dba3 * gdbtk.c (gdb_loc): symtab_to_filename can return NULL
(breakpoint_notify): symtab_to_filename can return NULL
        (gdb_get_breakpoint_info): symtab_to_filename can return NULL

        * tracepoint.c (set_raw_tracepoint): fix typo
1997-11-26 23:50:45 +00:00
Keith Seitz 018d76dddb * tracepoint.c (set_raw_tracepoint): make sure there's a trailing slash on
the directory name

        * Merge (lots) with foundry-971118-build

        * Makefile.in (install-only): install the new gdbtk, not the old

        * top.h: add declaration of get_prompt

        * top.c (get_prompt): new function

        * gdbtk.c (gdbtk_call_command): also run idle hooks for class_trace
        commands
        (gdbtk_init): add new commands "gdb_get_locals", "gdb_get_args",
        "gdb_get_function", "gdb_get_line", "gdb_get_file",
        "gdb_tracepoint_exists", "gdb_get_tracepoint_info", "gdb_actions",
        and "gdb_prompt"
        (gdb_get_vars_command): new function
        (gdb_get_line_command): new function
        (gdb_get_file_command): new function
        (gdb_get_function_command): new function
        (gdb_get_tracepoint_info): new function
        (gdbtk_create_tracepoint): new function
        (gdbtk_delete_tracepoint): new function
        (tracepoint_notify): new function
        (tracepoint_exists): new function
        (gdb_actions_command): new function
        (gdb_tracepoint_exists_command): new function
        (gdb_prompt_command): new function

        * main.tcl: initialize gdbtk_state(readline)

        * console.tcl (invoke): get realine working
        (activate): add prompt argument for readline
        (setprompt): add prompt argument for readline

        * interface.tcl (gdbtk_tcl_readline): hack to get readline working

        * lots: Merge with foundry-971118-build

        * console.tcl (setprompt): get prompt from gdb

        * prefs.tcl (pref_set_defaults): add tracepoint defaults

        * interface.tcl (gdbtk_tcl_tracepoint): new function

        * src.tcl (constructor): set default behavior of left click, make
        a tracepoint dot, too
        (fill_files): "new" function: ripped out of "location"
        (location): use fill_files instead
        (do_bp): add support for tracepoints
        (bp_line): add support for tracepoints
        (set_tracepoint): new function
        (config_win): add "Set tracepoint here" to right-click menu

        * actiondlg.tcl: new file to help with tracepoint data collection actions

        * tracedlg.tcl: new file to help with tracepoints
1997-11-26 22:38:10 +00:00
Andrew Cagney 3199620a49 Check the abbrev offset found in the .debug_info section before using
it.
1997-11-26 12:35:07 +00:00
Andrew Cagney ae1cf848ed Add tm-fbsd.h 1997-11-25 21:44:13 +00:00
Stan Shebs e386d4d2fb Flush ser-go32-para.c, never worked and never used. 1997-11-25 03:25:18 +00:00
Andrew Cagney d440e85e43 Handle case where sizeof long != sizeof int when examining a union. 1997-11-25 02:28:05 +00:00
Michael Snyder 46ac172085 Mon Nov 24 14:17:02 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* infcmd.c: export registers_info, for use by other modules.
	* printcmd.c: export output_command, for use by other modules.
	* stack.c: export locals_info and args_info, for use by other modules.
1997-11-24 22:20:34 +00:00
Michael Snyder 6156728be0 A ton of my most recent changes, mostly to add post-mortem data analysis,
plus some better error checking and reporting.  Still not publically
visible (not mentioned in the makefile or changelog).
1997-11-24 20:02:28 +00:00
Michael Snyder 57c0b02655 Some early changes by Keith Seitz to support the Tcl/Tk GUI.
Note: these files are still not publically visible; just keeping
their history at this point.
1997-11-24 19:47:05 +00:00
Michael Snyder 6a02d20100 Create CVS files tracepoint.c and tracepoint.h. This is new work,
not yet ready for public release, so no changelog entry yet (and I'm
sanitizing the files out).  Just want to get them into the repository
for now, so I can begin keeping their history.  Not checking in the
Makefile change that would cause them to be built and linked.
1997-11-24 19:38:44 +00:00
Andrew Cagney 4251ff49e8 Add function print_decimal to handle display of long long decimal
values on hosts with long-long but no "%ll".
1997-11-24 12:49:38 +00:00
Andrew Cagney f7b8c9ce46 Improve GDB support for FreeBSD host/target.
To configure.in: make PRINTF_HAS_LONG_LONG check more pedantic; check
that SCANF_HAS_LONG_DOUBLE instead of assuming PRINTF_HAS_LONG_DOUBLE
implies it; document.
1997-11-24 06:50:12 +00:00
Andrew Cagney d14573e31e Pass architecture from ``set arch MACH'' command into disasembler
through tm_print_insn_info.mach argument.
Delete x86 specific set assembler command, subsumed by replaced with
``set arch''
1997-11-24 06:37:01 +00:00
Andrew Cagney c08075aaf8 Have mips64vr5400-*-elf look like a mips64vr5000. 1997-11-24 06:31:05 +00:00
Jim Blandy 38639b1294 *** empty log message *** 1997-11-22 01:24:57 +00:00
Jim Blandy 345bcdcc4d * valops.c (call_function_by_hand): If the function has a
prototype, convert its arguments as if by assignment.  Otherwise,
do the usual promotions.
* stabsread.c (define_symbol): Set the TYPE_FLAG_PROTOTYPED flag
on functions' types when we can; all C++ functions should get it,
and if the Sun-style prototype notation is in the stabs, we can
notice that.
1997-11-22 00:50:09 +00:00
Ian Lance Taylor 3fbb8cde37 * aclocal.m4 (AM_CYGWIN32, AM_EXEEXT): Remove. They are already
defined by the inclusion of ../bfd/aclocal.m4.
	* configure: Rebuild.
1997-11-21 17:22:33 +00:00
Michael Meissner f092e2a999 tabify changelog 1997-11-21 15:56:57 +00:00
Michael Meissner 40e8f10571 Really do SHELL = /bin/sh change Noer wanted to do 1997-11-21 15:55:07 +00:00
Geoffrey Noer ebb2647017 Fri Nov 21 02:19:57 1997 Geoffrey Noer <noer@cygnus.com>
* Makefile.in: also revert SHELL change until configury
        changes work
1997-11-21 10:23:06 +00:00
Doug Evans 2aa8a8fce8 * sparc-tdep.c (sparc_pc_adjust): Don't assume sizeof (long) == 4. 1997-11-21 00:36:08 +00:00
Geoffrey Noer d7cd126469 Thu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
* Makefile.in: pepper with EXEEXTs in appropriate places,
        set SHELL = @SHELL@ for those lame hosts that don't have a /bin/sh
        For some reason, EXEEXT isn't getting substututed in correctly
        so for now, set EXEEXT to empty string
1997-11-20 13:05:07 +00:00
Geoffrey Noer 98fa4ade2c Thu Nov 20 04:11:27 1997 Geoffrey Noer <noer@cygnus.com>
* aclocal.m4: add EXEEXT setting rule
        * configure.in: call it
        * configure: regenerate
        * Makefile.in: pepper with EXEEXTs in appropriate places,
        set SHELL = @SHELL@ for those lame hosts that don't have a /bin/sh
1997-11-20 12:20:39 +00:00
Doug Evans 269a0e01c7 * Makefile.in (remote-sim.o): Depend on $(INCLUDE_DIR)/callback.h. 1997-11-17 23:36:16 +00:00
Jeff Law e7f1439940 * jv-exp.y (copy_exp, insert_exp): Avoid ANSI prototypes. 1997-11-14 20:02:46 +00:00
Michael Meissner 35cac98ab5 fix spacing 1997-11-13 15:38:23 +00:00
Michael Meissner c2f766136e Add comment about code that is actually d10v specific instead of d30v 1997-11-13 15:11:56 +00:00
Michael Meissner 5d62f957a8 Add info command to print out flags values 1997-11-13 14:52:14 +00:00
Ian Lance Taylor db316a832a * valprint.c (print_longest): The b, h, w, and g format specifiers
print unsigned values.
1997-11-10 20:14:15 +00:00
Geoffrey Noer b330780e25 Tue Nov 4 16:52:50 1997 Geoffrey Noer <noer@cygnus.com>
* config/i386/cygwin32.mh: because cygwin.dll calls malloc/realloc
        to allocate memory for environ space, gdb cannot use memory
        checks -- set -DNO_MMCHECK
1997-11-05 00:56:39 +00:00
Jim Blandy 9f410a5289 *** empty log message *** 1997-11-04 21:55:24 +00:00
Jim Blandy 028da17987 * jv-exp.y (ArrayAccess): Implement Name [ Expression ]; check the
code to see why this is not trivial.
(copy_exp, insert_exp): New functions.
1997-11-04 21:54:13 +00:00
Dawn Perchik 6850646060 * dwarf2read.c (dwarf2_build_psymtabs_hard): Handle the case
where a compilation unit die has no children (DW_TAG_compile_unit
	has DW_children_no).
	(scan_partial_symbols): Add comment for nesting_level.
1997-11-01 01:28:26 +00:00
Gavin Romig-Koch 8ed44d1968 * configure.tgt: Add tx49 configury based on 4300. 1997-10-30 02:17:25 +00:00
Gavin Romig-Koch a50b45f379 * include/opcode/mips.h (INSN_4900): Added. 1997-10-29 22:38:20 +00:00
Gavin Romig-Koch da3636f762 * configure.tgt: Add tx49 configury based on 4300. 1997-10-29 22:38:09 +00:00
David Taylor 6e2ac3c72d add Solaris 2.6 entry to solib_break_names list -- closes gdb/13689
change from Casper Dik via Peter Schauer.
1997-10-29 21:09:51 +00:00
David Taylor 022278948f fix for PR 13618 -- gdb incorrectly reports thread information.
If other systems besides nm-sun4sol2 exhibit the problem, they may need
definitions of FIND_NEW_THREADS and a corresponding support function.
1997-10-24 21:04:39 +00:00
Jeff Law cdecdcc4f5 * dbxread.c (process_one_symbol): Put back initialization
of a variable lost during last change.  Don't perform
        assignment inside conditionals.
        * stabsread.c (symbol_reference_defined): Return -1 for error/not
        found.  All callers changed appropriately.
        (define_symbol): Don't perform assignment inside conditionals.
1997-10-23 22:42:07 +00:00
Jeff Law b84b918329 * mdebugread.c (psymtab_to_symtab_1): Handle new live range stabs
entries.

        * dbxread.c: More comment cleanups.
        * stabsread.c: Fix various violations of the GNU coding and
        formatting standards.  Update/add comments to make code clearer.
        (resolve_reference): Delete unused function.
        (ref_search_val): Remove function.  It didn't belong in stabsread.c
        (resolve_live_range): No longer returns a value.  Do not add it
        to the live range list until the entire range stab has been parsed.
        (get_substring): Remove duplicate declaration.
        (resolve_symbol_reference): Now static.  Remove unnecessary code
        to deal with cleanups.
         (ref_add): Use xrealloc instea of realloc.
        (process_reference): Reorganize slightly to make clearer.
        * stabsread.h (resolve_symbol_reference): Remove declaration.
        (resolve_reference): Likewise.
        * symtab.c (find_active_alias): New function.
        (lookup_block_symbol): Use find_active_alias.
        * symtab.h (struct range_list): Fix dangling struct live_range
        reference.
        (ref_search_val): Remove decl.

        * symtab.h (struct range_list): Renamed from struct live_range.
        (struct symbol): Remove struct live_range_info substruct.
        Bring the alias list and range list fields up to the toplevel
        as "aliases" and "ranges".
        (SYMBOL_ALIASES, SYMBOL_RANGES): Corresponding changes.
        (SYMBOL_RANGE_START, SYMBOL_RANGE_END, SYMBOL_RANGE_NEXT): Delete.
        * stabsread.c: Corresponding changes.
Bring first round of cleanups over from r5900 branch.
1997-10-22 23:28:30 +00:00
Jeff Law a259afccd8 More comment fixes to make the code clearer. 1997-10-22 19:15:44 +00:00
Jeff Law ab41527bce * dbxread.c: Fix various violations of the GNU coding and
formatting standards.  Update/add comments to make code
        clearer.
        (process_later): Use xrealloc instead of realloc.
1997-10-22 19:04:30 +00:00
Jeff Law f109cc3d9e Minor comment fix. 1997-10-22 18:28:25 +00:00
Jeff Law 1a490ebc92 * symtab.c: Include inferior.h.
Brought over from r5900 branch.
1997-10-22 18:12:30 +00:00
Per Bothner fbb09651da * ch-exp.c: Rename FIELD_NAME to DOT_FIELD_NAME (to avoid conflict). 1997-10-21 21:15:52 +00:00
Stan Shebs 08655f154a * infcmd.c: Improve grammar of "set args" help. 1997-10-17 20:24:02 +00:00
Michael Meissner 9d59cbb13c Make decl of sds_load static 1997-10-16 19:06:25 +00:00
David Edelsohn 899f620488 * sparc/tm-sparc.h (STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd. 1997-10-15 19:08:18 +00:00
David Edelsohn 223f2ecd9a (STORE_STRUCT_RETURN): Change to handle --enable-64-bit-bfd. 1997-10-15 19:07:30 +00:00
David Edelsohn 048c2f0179 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Mask off displacement
to 30 bits in call insn to handle --enable-64-bit-bfd.
1997-10-15 17:31:07 +00:00
Jeff Law 326ca4ee57 Bring over from r5900 branch. 1997-10-15 04:11:06 +00:00
Frank Ch. Eigler eec1d04840 Added MIPS16 PC masking for disassembly. See PR 12149. 1997-10-09 20:26:08 +00:00
Jeff Law db0af6f771 New file describing how stabs for live range splitting work. Should be
folded into the main stabs documentation.
1997-10-07 19:48:22 +00:00
Stan Shebs e5d6b49ad9 Remove sanitized-out Magic Cap support, will never be released 1997-10-06 22:55:34 +00:00
Stan Shebs 501ad43a89 Remove sanitized-out Magic Cap support, will never be released 1997-10-06 19:38:43 +00:00
Mark Alexander 794868783d * remote-mips.c (mips-initialize): Work around flakiness in
some versions of PMON after loading a program.
1997-10-05 01:53:22 +00:00
Per Bothner 8d2755a953 * c-lang.h, cp-valprint.c (static_field_print): Make non-static.
* parse.c, parser-defs.h (length_of_subexp):  Make non-static.
	* jv-exp.y (FieldAccess):  Handle dollar-VARIABLE as primary.
	(ArrayAccess):  Likewise.  Also remove warnings.
	(CastExpression):  Implement (typename) UnaryExpression.
	(push_qualified_expression_name):  Fix small bug.
	* jv-lang.c:  Use TYPE_TAG_NAME, not TYPE_NAME for class names.
 	(_initialize_jave_language):  Fix typo (jave -> java).
	(java_language):  Java does *not* have C-style arrays.
	(java_class_from_object):  Make more general (and complicated).
	(java_link_class_type):  Fix typo "super" -> "class".  Handle arrays.
	(java_emit_char, java_printchar):  New function.
	(evaluate_subexp_java case BINOP_SUBSCRIPT):  Handle Java arrays.
	* jv-valprint.c (java_value_print):  Implement printing of Java arrays.
	(java_print_value_fields):  New function.
	(java_val_print):  Better printing of TYPE_CODE_CHAR, TYPE_CODE_STRUCT.
1997-10-03 23:05:12 +00:00
Mark Alexander 9388a6f2be * config/mips/tm-mips.h (MAKE_MSYMBOL_SPECIAL): Force MIPS16
addresses to be odd.
	(MIPS_FPU_SINGLE_REGSIZE, MIPS_FPU_DOUBLE_REGSIZE): Define.
	* mips-tdep.c (mips_extract_return_value): Doubles aren't
	returned in FP0 if FP registers are single-precision only.
start-sanitize-r5900
	* config/mips/tm-r5900.h (MIPS_LAST_FP_ARG_REGNUM): Redefine
	to disable use of FP registers for function arguments.
end-sanitize-r5900
1997-10-03 16:58:31 +00:00
Mark Alexander 639c861230 * mips-tdep.c (set_reg_offset): New function.
(mips16_heuristic_proc_desc): Calculate offsets of registers
	saved by entry pseudo-op after rest of prologue has been read.
	Use set_reg_offset to ignore all but the first save of a given
	register.
	(mips32_heuristic_proc_desc): Initialize frame adjustment value.
	* remote-sim.c (gdbsim_store_register): Don't update registers
	that have a null or empty name.
	* findvar.c (read_register_bytes): Don't fetch registers
	that have a null or empty name.
1997-09-30 06:20:59 +00:00
Andrew Cagney 467ad5d4b7 Re-define MAX_REGS and REGISTER_NAMES instead of defining them.
(Move definition past #include tm-mips64).
1997-09-30 04:07:42 +00:00
Andrew Cagney adf4739efe Add access to hi part of r5900 128 bit registers. 1997-09-30 03:45:51 +00:00
Jason Molenda 36ad9bd5b6 * command.c (add_cmd, add_show_from_set): Insert new commands in
alphabetical order.
1997-09-27 00:34:41 +00:00
Mark Alexander af774411e5 * config/mips-tm-mips.h (mips_extra_func_info): New frame_adjust
member for storing offset of MIPS16 frame pointer from SP.
	* mips-tdep.c: Use RA_REGNUM instead of hardcoded 31 throughout.
	(PROC_FRAME_ADJUST): Define.
	(mips16_heuristic_proc_desc): Store frame pointer adjustment value.
	(get_frame_pointer): Use frame pointer adjustment value when
	calculating frame address.
	* remote-sim.c (gdbsim_fetch_register): Don't fetch registers
	that have a null or empty name.
start-sanitize-tx19
	* config/mips/tm-tx19.h (MIPS_DEFAULT_FPU_TYPE): Define.
	(REGISTER_NAMES): Redefine to eliminate FP registers.
	* config/mips/tm-tx19l.h: Ditto.
end-sanitize-tx19
1997-09-26 19:42:55 +00:00
Jeff Law 91ee277977 * configure.tgt: Set gdb_target to r5900.
* config/mips/tm-r5900.h, config/mips/r5900.mt: New files

        * mips-tdep.c (_initialize_mips_tdep): Allow target files to
        override default FPU type.
Brought over from r5900 branch.
1997-09-26 18:53:22 +00:00
Felix Lee afa38b3dff * configure.tgt (v850-*-*): necmsg.lib instead of v850.lib. 1997-09-26 17:37:34 +00:00
Andrew Cagney 7a3fb4e6ea * config/v850/tm-v850.h (BREAKPOINT): Use 1 word DIVH insn with
RRRRR=0 for simulator breakpoint. Previous breakpoint insn was two
words.
1997-09-25 07:01:21 +00:00
Andrew Cagney c1937db3e5 Only use get_ds_base function on true Windows. 1997-09-25 04:31:34 +00:00
Stu Grossman 45a70ed653 * The following block of changes add support for debugging assembly
source files.
	* breakpoint.c (resolve_sal_pc):  Prevent crash when pc isn't
	associated with a function.
	* buildsym.c (record_line start_symtab end_symtab):  Don't delete
	symtabs which only have line numbers (but no other debug symbols).
	* dbxread.c (read_dbx_symtab end_psymtab):  Ditto.

	* remote-sim.c:  New functions gdbsim_insert/remove_breakpoint.  Use
	intrinsic simulator breakpoints if available, otherwise do it the
 	hard way.
	* configure.tgt:  Add d30v.
	* d30v-tdep.c:  New file.
	* config/d30v/d30v.mt, config/d30v/tm-d30v.h:  New files.
1997-09-25 01:26:36 +00:00
Stu Grossman 4d5d36f015 d30v sanitization 1997-09-25 01:26:07 +00:00
Bob Manson b82a1bdb8b * lib/gdb.exp(gdb_compile): If is_vxworks target feature is set,
define vxworks when building the testcase.

	* gdb.base/ptype.exp: Fix testnames to be unique.
	* gdb.base/radix.exp: Ditto.
	* gdb.base/term.exp: Ditto.
	* gdb.base/whatis.exp: Ditto.
	* gdb.c++/classes.exp: Ditto.

More misc fixes.
1997-09-24 20:10:07 +00:00
Stan Shebs 5952566935 * Makefile.in (ALLCONFIG): Remove, inaccurate and never used. 1997-09-23 18:25:55 +00:00
Jeff Law 7dce98aab2 vr5900 -> r5900
r5900 is always little endian.
1997-09-23 16:31:33 +00:00
Peter Schauer 0c6c5eebf4 * mips-tdep.c (mips_push_arguments): Tweak alignment of register
value if the remaining length of a non-integral argument is smaller
	than the register size for big-endian non-EABI mode.

	* rs6000-tdep.c (branch_dest):  Handle return from signal
	handler function via sigreturn kernel call.
1997-09-23 07:10:51 +00:00
Dawn Perchik 166d7e5549 * stabsread.h, symtab.h, dbxread.c, symtab.c, stabsread.c:
Fix prototypes.  Remove function scoped function declarations.
1997-09-22 22:52:23 +00:00
Nick Clifton 446df8b8d5 Removed v850eq sanitization. 1997-09-21 01:19:51 +00:00
Felix Lee 20b32dc554 * config/i386/windows.mh (XDEPFILES): need to list some files
explicitly, for odd reasons.
1997-09-20 01:53:41 +00:00
Felix Lee e1625ed217 v850 files that weren't being removed if !keep-v850 1997-09-18 01:33:24 +00:00
Mark Alexander 2a3b391bbe Fix tx19 sanitization. 1997-09-17 20:59:27 +00:00
Bob Manson f33e31a61a * gdb.base/callfuncs.exp: Fix indentation.
* lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
	suppress_flag has been set.
	(gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
	target feature.
1997-09-17 05:24:14 +00:00
Per Bothner a183753d92 * valops.c (search_struct_field): Search basesclasses in
ascending, not descending order.  Hack to avoid virtual baseclass
	botch for Java interfaces.
1997-09-17 04:28:14 +00:00
Per Bothner fc655dc202 * jv-exp.y (push_fieldnames): New, to handle EXP.FIELD1....FIELDN.
(push_expression_name):  New, to handle expression names.
	(push_qualified_expression_name):  New, for qualified expression names.
	(parse_number):  Fix bugs in parsing of non-decimal integers.
	* jv-lang.h, jv-lang.c (java_demangle_type_signature):  New.
	* jv-lang.c (type_from_class):  Just use name with java_lookup_class.
	(java_link_class_type):  Add dummy "class" field.
	(java_lookup_type):  New.
	(evaluate_subexp_java case STRUCTOP_STRUCT):  Force to address.
	* jv-typeprint.c (java_type_print_base):  Don't print "class" field.
	Use java_demangle_type_signature to print array class types.
	* jv-valprint.c (java_value_print):  Preliminary array support.
	Print pointer as TYPE@HEXADDR, instead of (TYPE)0xHEXADDR.
	(java_val_print):  Move check for object type to java_value_print.
	Check for null.  Print pointer as @HEXADDR, not 0xHEXADDR.
1997-09-17 03:38:30 +00:00
Per Bothner e49b476e24 * util.c (run_cleanup_chain, make_run_cleanup, do_run_cleanups):
New cleanup clean for cleanups to be run when at each 'run' command.
	* infcmd.c (run_command):  Call do_run_cleanups.
	* solib.c (find_solib):  Register cleanup to call clear_solib
	on a new 'run' command.
	(symbol_add_stub):  First look for existing objfile with same name.
1997-09-17 02:57:39 +00:00
Stan Shebs c77bcbc2f7 * monitor.h (MO_SREC_ACK_PLUS, MO_SREC_ACK_ROTATE): New flags.
* monitor.c (monitor_wait_srec_ack): Add DINK32-specific ack code.
	* dsrec.c (load_srec): Always write a header S-record.
	* dink32-rom.c (dink32_regnames): Fix the names of float registers.
	(dink32_cmds): Set to use S-record downloading with acks.
	* remote-est.c (est_cmds): Add MO_SREC_ACK_PLUS flag.
1997-09-16 23:58:01 +00:00
Stan Shebs 665ff287fb * remote-sds.c (sds_load): New function.
(sds_ops): Use it.
	(sds_open): Don't set inferior_pid yet.
	(sds_kill): Remove contents.
	(sds_create_inferior): Rewrite to work more like monitor
 	interfaces.
	(sds_restart): Remove, no longer used.
1997-09-16 23:01:29 +00:00
Stan Shebs b75b6c6396 remove one more arc dreg 1997-09-16 02:31:06 +00:00
Stan Shebs 2bf15e13f5 Remove/retain old ARC stuff as appropriate 1997-09-16 02:27:10 +00:00
Andrew Cagney 5ed0a9a369 Add v850e version of breakpoint. Make v850 breakpoint unique. 1997-09-16 02:19:56 +00:00
Bob Manson 93a8f1e119 * gdb.stabs/weird.exp: Don't start gdb 'til after we've compiled
the testcase.
1997-09-16 00:46:12 +00:00
Mark Alexander 899c402166 * dbxread.c (MSYMBOL_SIZE): New macro.
(end_psymtab): Use MSYMBOL_SIZE to extract size from minimal symbol.
	* elfread.c (elf_symtab_read): If ELF symbol is "special",
	such as a MIPS16 function, mark minimal symbol as special too.
	* mips-tdep.c (pc_is_mips16): New function to check whether
	a function is MIPS16 by looking at the minimal symbol.  Use
	pc_is_mips16 throughout instead of IS_MIPS16_ADDR macro.
	* config/mips/tm-mips.h (SYMBOL_IS_SPECIAL, MAKE_MSYMBOL_SPECIAL,
	MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): New functions for setting/testing
	"special" MIPS16 bit in ELF and minimal symbols.
	* mdebugread.c (parse_partial_symbols): Don't construct a partial
	symbol table for a file that already has one.
start-sanitize-tx19
	* configure.tgt: Support TX19.
	* config/mips/tm-tx19.h, config/mips/tm-tx19l.h, config/mips/tx19.mt,
	config/mips/tx19l.mt: New files for TX19.
end-sanitize-tx19
1997-09-15 21:06:16 +00:00
Peter Schauer f9292f5ef3 * mdebugread.c (parse_symbol, handle_psymbol_enumerators): Handle
yet another variant of enumerator debugging info, used by DU 4.0
	native cc.
1997-09-13 15:34:44 +00:00
Bob Manson fc75bd970a * lib/gdb.exp(gdb_step_for_stub): New function.
(gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
	exists, reload the executable and do a "continue" instead of
	doing a jump.
	(runto_main): Use gdb_step_for_stub.

	* gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
 	tests to have unique names.
	* gdb.base/callfuncs.exp: Ditto.
	* gdb.base/commands.exp: Ditto.
	* gdb.base/default.exp: Ditto.
	* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/opaque.exp: Ditto.
	* gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
	similar tests.

	* gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
	* gdb.c++/cplusfuncs.cc: Ditto.
	* gdb.c++/virtfunc.cc: Ditto.

	* config/monitor.exp: Keep track of the last file we saw, rather
	than trying to get the info from gdb.

	* gdb.fortran/types.exp: Move comment to previous line.

Fixes for TCL8 miscellaneous problems, plus other changes.
1997-09-13 00:08:05 +00:00
Bob Manson eb16c04c8c * lib/gdb.exp(gdb_step_for_stub): New function.
(gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
	exists, reload the executable and do a "continue" instead of
	doing a jump.
	(runto_main): Use gdb_step_for_stub.

	* gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
 	tests to have unique names.
	* gdb.base/callfuncs.exp: Ditto.
	* gdb.base/commands.exp: Ditto.
	* gdb.base/default.exp: Ditto.
	* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/opaque.exp: Ditto.
	* gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
	similar tests.

	* gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
	* gdb.c++/cplusfuncs.cc: Ditto.
	* gdb.c++/virtfunc.cc: Ditto.

	* config/monitor.exp: Keep track of the last file we saw, rather
	than trying to get the info from gdb.

	* gdb.fortran/types.exp: Move comment to previous line.

Fixes for TCL8 miscellaneous problems.
1997-09-13 00:07:21 +00:00
Bob Manson 8e88a52215 * *.exp: The end-all be-all of quoting fixes. Ha.
At least I hope so.
1997-09-10 22:02:40 +00:00
Felix Lee 008c23e8fc * config/i386/windows.mh (XDEPFILES): reduce to libwingdb.a.
otherwise link command line is too long.
1997-09-10 03:48:37 +00:00
David Edelsohn 48e696ce0d arc port no longer sanitized 1997-09-10 00:30:45 +00:00
David Edelsohn eb631f3133 arc port no longer sanitized. 1997-09-10 00:30:05 +00:00
Jeff Law b303e1053f * symtab.c, dbxread.c, stabsread.c: Fix up ANSI-C isms. Fix
some formatting problems.
1997-09-09 23:53:37 +00:00
David Edelsohn c58dbe95a6 Remove arc sanitization. 1997-09-09 23:49:45 +00:00
David Edelsohn 8f5eb36c13 Misc. changes I had lying around. 1997-09-09 23:47:12 +00:00
Jeff Law 2f36d00478 * symtab.c (lookup_block_symbol): Add missing PARAMS for
function scoped prototype.
1997-09-09 23:40:44 +00:00
Stu Grossman a9fafdc280 * ser-e7kpc.c: Don't include w32sut.h. We no longer use the UT
mechanism.  Remove prototypes for dos_async_* functions.  They don't
	exist anymore.
1997-09-08 23:50:02 +00:00
Dawn Perchik d719efc6d5 * dbxread.c, buildsym.c, symtab.c, stabsread.c: Add support for
reading stabs extensions for live range information.
	* stabsread.h, partial-stab.h: Add prototypes for new functions.
	* symtab.h: Add structure for storing live range information.
1997-09-08 00:38:19 +00:00
Nick Clifton 3234b2e7a5 removed v850 sanitization. 1997-09-03 23:26:21 +00:00
Andrew Cagney ee36741e63 Allow backends to set the architecture using bfd_architecture enum
instead of some magic name.
1997-09-03 07:31:55 +00:00
Bob Manson eaac098bd3 * config/sparclet.exp: Detect gratuitous change to sparclet gdb
target mode.
1997-09-03 02:56:30 +00:00
Bob Manson dbd850bb60 Fix missing global verbose declaration. grrrr. this is NOT
right.
1997-09-03 00:29:03 +00:00
Andrew Cagney 2d89f63ec2 Typo in e700 #ifdef'd code. 1997-09-02 03:55:17 +00:00
Andrew Cagney cd2c720ae2 Add ``set processor'' - an alias to ``set architecture''. 1997-09-01 03:43:08 +00:00
Bob Manson 99bdb8d22d * config/sparc/sparclite.mt: Removed simulator references (erc32
has been disabled).
1997-08-30 20:47:27 +00:00
Andrew Cagney d0aba53f38 New commands ``set architecture'', ``show architecture'' and ``info
architecture''.  Update SH target to use new target_architecture_hook.
1997-08-28 10:20:21 +00:00
Andrew Cagney 750b794296 Only pass endianess to simulator when explicitly set by user with set
endian.
Prepend endian argument so that it can be overriden with target sim -ARGS.
1997-08-27 07:45:50 +00:00
Andrew Cagney fafce69ab1 Add ABFD argument to sim_create_inferior. Document.
Add file sim-hload.c - generic load for hardware only simulators.
Review each simulators sim_open, sim_load, sim_create_inferior so that
they more closely match required behavour.
1997-08-27 04:44:41 +00:00
Geoffrey Noer 1211388f13 Mon Aug 25 17:08:01 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c: revert Sun change -- enable log file handling
1997-08-26 00:11:16 +00:00
Andrew Cagney 247fccdeb5 Add ABFD argument to sim_open call. Pass through to sim_config so
that image properties such as endianness can be checked.

More strongly document the expected behavour of each of the sim_*
interfaces.

Add default endian argument to simulator config macro
SIM_AC_OPTION_ENDIAN.  Use in sim_config.
1997-08-25 23:14:25 +00:00
Geoffrey Noer e8bd2ae702 Sun Aug 24 21:16:59 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c: comment out sections that create and flush wigglers.log
        log file when using the wiggler.
1997-08-25 04:20:11 +00:00
Geoffrey Noer aaba39af9a Thu Aug 21 16:18:08 1997 Geoffrey Noer <noer@cygnus.com>
* config/powerpc/ppc-eabi.mt:
        * config/powerpc/ppc-sim.mt:
        * config/powerpc/ppcle-eabi.mt:
        * config/powerpc/ppcle-sim.mt: ser-ocd.c needs to be before
        other ocd-related files in TDEPFILES
1997-08-21 23:27:02 +00:00
Geoffrey Noer 61a0d0227a Thu Aug 21 14:56:04 1997 Geoffrey Noer <noer@cygnus.com>
* ppc-bdm.c (bdm_ppc_wait): stop printfing ecr, der
        * ocd.c: initialize remote_timeout
        (ocd_wait): while looping, call ocd_do_command with OCD_AYT
        (ocd_get_packet): remove find_packet goto.  If there isn't
        an 0x55 at the start, something is quite wrong so error out
        instead of advancing in the packet and trying again.  If checksum
        is invalid, print error message instead of trying again.
        * ser-ocd.c (ocd_readchar): error if we attempt to read past
        the end of the from_wiggler_buffer.
1997-08-21 23:10:34 +00:00
Bob Manson 0424a0941b * pr-9946.exp: Ditto.
* gch1280.exp: Ditto.
	* gch1272.exp: Ditto.
1997-08-21 17:34:28 +00:00
Bob Manson 7376c77b93 * enum.exp: More quoting fixes.
*sigh*
1997-08-21 17:31:58 +00:00
Fred Fish ee804cff4f * objfiles.c (objfile_relocate): Add call to breakpoint_re_set
after relocations are complete.
	* remote-vx.c (vx_add_symbols): Remove call to breakpoint_re_set,
	this is now done in objfile_relocate.
PR 11308
1997-08-19 15:46:20 +00:00
Ian Lance Taylor 36339ecd2b * win32-nat.c (handle_exception): Return a value indicating
whether the exception was handled.  Don't handle random exceptions
	the first time around, so that structured exception handling
	works.
	(child_wait): Check the return value of handle_exception.  Set the
	continue_status argument to ContinueDebugEvent accordingly.
1997-08-18 21:31:51 +00:00
Nick Clifton ab11a82c2d Add support for v850e and v850eq targets. 1997-08-18 18:12:54 +00:00
Mark Alexander 9d48327cb2 * Add gdbtcl2 to gdbtk_files. 1997-08-18 17:02:58 +00:00
Michael Snyder 5f7142bf06 Sun Aug 17 20:31:57 1997 Michael Snyder (msnyder@cleaver.cygnus.com)
* m32r-stub.c: fix typo
1997-08-18 03:33:27 +00:00
Stan Shebs 3d7cd51746 * remote-sds.c: Remove unused remnants of remote.c.
(tob64): Return the result length.
	(sds_interrupt): Send a stop message.
	(sds_wait): Add debug output for signal interpretation, flag
	that signal was due to a trap.
	(sds_fetch_registers): Fill the registers array correctly for
 	PowerPC.
	(sds_store_registers): Get the right values from registers array.
	(putmessage): Tweak length handling so checksum comes out right.
	(sds_insert_breakpoint, sds_remove_breakpoint): Do correctly.
1997-08-18 00:41:39 +00:00
Martin Hunt 99c98415f2 Sun Aug 17 00:42:11 1997 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdb_listfuncs): New function that returns
	a list of all the functions in a source file.
1997-08-17 07:47:55 +00:00
Peter Schauer 05d52ace86 * infrun.c (wait_for_inferior): Add the symbols for any
newly loaded objects upon a TARGET_WAITKIND_LOADED event.

	Rewrite code which determines the TOC address for calling functions
	in the inferior under AIX.
	* rs6000-nat.c (find_toc_address):  New function to determine
	the required TOC address from a function address.
	(_initialize_core_rs6000):  Set up find_toc_address_hook to point
	to find_toc_address.
	(xcoff_relocate_symtab, xcoff_relocate_core):  Remove
	add_text_to_loadinfo calls.
	(exec_one_dummy_insn):  Change pid and status to int to get rid of
	compiler warnings.
	(xcoff_relocate_symtab):  Cast ldi to `int *' when passing it to
	ptrace to get rid of compiler warnings.
	* rs6000-tdep.c:  Add definition for find_toc_address_hook.
	(rs6000_fix_call_dummy):  If find_toc_address_hook is non zero,
	patch TOC address load code in the call dummy with the value
	returned from find_toc_address_hook.
	(struct loadinfo, loadinfo, loadinfolen,
	loadinfotextindex, xcoff_init_loadinfo, free_loadinfo,
	xcoff_add_toc_to_loadinfo, add_text_to_loadinfo, find_toc_address):
	Remove.
	(_initialize_rs6000_tdep):  Remove initialization of
	coff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
	* xcoffread.c (coff_add_toc_to_loadinfo_hook,
	xcoff_init_loadinfo_hook):  Remove.
	(struct coff_symfile_info):  Add toc_offset field.
	(scan_xcoff_symtab):  Record toc_offset value in toc_offset field
	instead of calling xcoff_add_toc_to_loadinfo_hook.
	(get_toc_offset):  New function to return the value of the
	toc_offset field for an object file.
	(xcoff_initial_scan):  Remove call of xcoff_init_loadinfo_hook.
	* xcoffsolib.h (add_text_to_loadinfo):  Remove declaration.
	* config/rs6000/tm-rs6000.h:  Add declarations for
	find_toc_address_hook and get_toc_offset.
1997-08-15 21:10:32 +00:00
Stan Shebs 23cb1bc1aa keep remote-sds.c 1997-08-14 02:46:46 +00:00
Stan Shebs 2d46177ce1 * remote-sds.c: New file, interface to SDS-compatible monitors.
* Makefile.in (remote-sds.o): Add build rule.
	* config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt
 	(TDEPFILES): Add remote-sds.o.
1997-08-14 02:41:15 +00:00
Bob Manson 398e180ae9 Fix quoting. 1997-08-13 04:53:09 +00:00
Bob Manson 07ce0e49de Fix quoting. 1997-08-13 04:50:07 +00:00
Bob Manson bc1e11e9d5 * tests2.exp: Fix quoting.
* tests1.exp: Ditto.
1997-08-13 04:49:25 +00:00
Geoffrey Noer a2c23081d5 Tue Aug 12 14:37:18 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c (ocd_wait): loop until we're in BDM mode instead of
        assuming control has returned to GDB.
1997-08-12 21:38:54 +00:00
Ian Lance Taylor ccf1cf9c69 * Makefile.in (install-only): Install tclIndex if ENABLE_IDE. 1997-08-12 20:38:39 +00:00
Stan Shebs 66df708b34 keep dink32 interface 1997-08-12 02:35:11 +00:00
Stan Shebs 339cddf717 * dink32-rom.c: New file, support for DINK32 monitor.
* Makefile.in (dink32-rom.o): Add build rule.
	* config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt
 	(TDEPFILES): Add dink32-rom.o.
	* monitor.h (MO_32_REGS_PAIRED, MO_SETREG_INTERACTIVE,
 	MO_SETMEM_INTERACTIVE, MO_GETMEM_16_BOUNDARY,
 	MO_CLR_BREAK_1_BASED): New monitor interface flags.
	* monitor.c: Use them.
	(monitor_store_register): Use setreg.term if defined.
	(monitor_insert_breakpoint, monitor_remove_breakpoint): Notice
	if set_break and clr_break fields are empty.
1997-08-12 02:34:14 +00:00
Geoffrey Noer 2549d2b385 Mon Aug 11 16:22:36 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): macro
        BDM_BREAKPOINT already has braces around it, remove erroneous ones.
        * ser-ocd.c (ocd_write): conditionalize on _WIN32 instead of
        __CYGWIN32__
        * config/powerpc/tm-ppc-eabi.h: remove BDM_NUM_REGS, BDM_REGMAP
        * ppc-bdm.c: move BDM_NUM_REGS, BDM_REGMAP here from tm.h file,
        fill in doc fields of bdm_ppc_ops.
        (bdm_ppc_fetch_registers): don't ask for invalid registers such
        as the MQ or floating point regs not present on ppc 8xx boards
        (bdm_ppc_store_registers): don't write those same invalid registers
        * config/i386/cygwin32.mh: stop including ocd.o ser-ocd.o
        * config/powerpc/ppc-eabi.mt:
        * config/powerpc/ppcle-eabi.mt:
        * config/powerpc/ppc-sim.mt:
        * config/powerpc/ppcle-sim.mt: include ser-ocd.o
1997-08-11 23:40:26 +00:00
Fred Fish 53a9bb1a32 * frame.h (enum lval_type): Conditionalize on __GNUC__
instead of __STDC__.
1997-08-11 23:14:47 +00:00