Commit graph

6852 commits

Author SHA1 Message Date
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