Commit Graph

7461 Commits

Author SHA1 Message Date
Keith Seitz
4ce8d0e977 * gdbtk.c (gdbtk_wait): Don't run the timer for ice targets.
* v850ice.c (WM_ADDR_TO_SYM): New message.
        (v850ice_wndproc): Add handler for WM_SOURCE.
        (v850ice_wait): Call the ui_loop_hook occasionally.
        (ice_cont): Acknowledge message before doing anything.
        (ice_stepi): Ack message and let gdbtk do stepping.
        (ice_nexti): Ack message and let gdbtk do stepping.
        (view_source): New function ICE calls to display source code.
1998-09-25 15:22:23 +00:00
Jason Molenda
4817b40893 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Change --enable-warnings to --enable-build-warnings.
        * configure: Updated.
1998-09-25 03:04:03 +00:00
Jason Molenda
4b23e55c62 Ack, accidentally checked in a configure generated with an obsolete
version of autoconf.
1998-09-25 01:54:25 +00:00
Jason Molenda
e3009a74f4 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in (WARN_CFLAGS): Add -Wmissing-prototypes.
        * configure: Regenerated.
1998-09-25 01:30:46 +00:00
Jason Molenda
ba68ad5701 1998-09-24 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add --enable-warnings.
        Adjust whitespace of other --with and --enable options so that
        configure --help lines up correctly.
        * aclocal.m4: Ditto.
        * Makefile.in (WARN_CFLAGS): Add.  Set by configure.
        * configure: Regenerated.
1998-09-25 01:27:47 +00:00
Stan Shebs
f1f8c637ae * remote-rdi.c: Fix formatting, remove some commented-out code.
(init_rdi_ops): Omit needless initializations.
1998-09-24 22:48:48 +00:00
Andrew Cagney
8456141bb2 Allow full 64 bits of an address to be specified in an M' or n' packet.
Add backward compatibility variable `set remoteaddresssize' to handle
regressions.
1998-09-23 08:31:50 +00:00
Andrew Cagney
f8059b97e7 * remote.c (_initialize_remote, packet_command, print_packet): Pretty
* print code.
Delete reference to EMC!
1998-09-23 08:12:14 +00:00
Andrew Cagney
abf80d3b9c * remote.c (packet_command): Test REMOTE_DESC to determine if remote
connection is open.
1998-09-23 08:06:50 +00:00
Mark Alexander
0ec1e44d3d Patch from Dawn Perchik <dawn@cygnus.com>:
* rs6000-tdep.c (pop_frame): Handle generic dummy frames.
	(push_arguments): Likewise.
	(frame_saved_pc): Likewise.
	(rs6000_frame_chain): Likewise.
	(ppc_push_return_address): New function.
	(get_saved_register): New function.
	* config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
1998-09-23 05:41:38 +00:00
Stu Grossman
7b46dd00e4 * defs.h utils.c (fputc_filtered): New function. Does the obvious...
* jv-lang.c (java_printchar):  Fix output of chars > 0xff.  Fold
	java_emit_char into java_printchar.
	* language.h (PRINT_LITERAL_FORM):  Reformat for readability.
1998-09-22 02:34:38 +00:00
Nick Clifton
7f44038a5f Fix info float test for arm-elf toolchains 1998-09-21 21:41:36 +00:00
Nick Clifton
a63e37257f Support big endian as well as little endian breakpoints. 1998-09-21 21:39:41 +00:00
Drew Moseley
fa41e1a3fa Added sanitize-ide markers 1998-09-21 18:37:32 +00:00
Ron Unrau
3dc96daa2d * incorporate SKY-B changes (makes dual maintenance easier).
* txvu-tdep.c (check_overlap): new function to guarantee that
          overlays are either mapped or unmapped in their entirety.
        * txvu-tdep.c (compress_blockvector): compress blockvectors correctly
1998-09-21 05:11:13 +00:00
Keith Seitz
864e89fc9d * gdbtk-cmds.c (get_frame_name): Demangle function names, too. 1998-09-18 23:45:45 +00:00
Michael Snyder
d5e3b34ad8 Fri Sep 18 14:07:44 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.trace/*.exp: remove "remote_download" command.
1998-09-18 21:10:23 +00:00
Peter Schauer
d2fce7f74c * sol-thread.c (sol_thread_notice_signals): Use PIDGET when
passing pid down to procfs_notice_signals.
1998-09-18 14:57:16 +00:00
Stu Grossman
082a0803b1 * stabsread.c (resolve_symbol_reference): Return 1 on success, 0 on
failure.
	* (define_symbol):  Check return value from resolve_symbol_reference,
	and drop symbol if it fails.
1998-09-16 21:59:01 +00:00
Felix Lee
d9720f0dd4 * gdb.trace/configure.in(AC_INIT): typo
* gdb.trace/configure: regenerated
1998-09-16 08:25:59 +00:00
Stu Grossman
3c47adae01 * stabsread.c: Make all complaints static.
* Fix formatting of live range splitting code.
	* (resolve_symbol_reference define_symbol resolve_live_range):  Change
	errors to complaints so that bad live range symbols won't abort the
	entire symbol table.  Handle errors by aborting just the current
	symbol.
	* (ref_init):  Goes away.  Folded into ref_add().
	* (REF_MAP_SIZE):  Put parens around parameter so that args like
	`1 + 2' get handled correctly (yes, this was a real bug).
	* (ref_add):  Remove check for allocation failures.  Not necessary
	when using xrealloc().  Fix pointer arithmetic problem when clearing
	memory.  This and the previous patch prevent random SEGV's when there
	are lots of live range symbols.
1998-09-15 22:38:40 +00:00
Michael Snyder
27001c664d Mon Sep 14 20:00:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* lib/<emc-support.exp trace-support.exp}: New files.
        * configure.in: add new test directory gdb.trace.
        * gdb.trace/{configure configure.in Makefile.in}: New files.
        * gdb.trace/{actions.c actions.exp gdb_c_test.c}: New files.
        * gdb.trace/{circ.c circ.exp limits.c limits.exp}: New files.
        * gdb.trace/{collection.c collection.exp tfind.exp }: New files.
        * gdb.trace/{backtrace.exp deltrace.exp infotrace.exp}: New files.
        * gdb.trace/{packetlen.exp passc-dyn.exp passcount.exp}: New files.
        * gdb.trace/{report.exp save-trace.exp tracecmd.exp}: New files.
        * gdb.trace/{while-dyn.exp while-stepping.exp}: New files.
1998-09-15 22:25:01 +00:00
Nick Clifton
9d561e1e94 prevent multiple attempts at closing remote connection. 1998-09-15 21:03:26 +00:00
Andrew Cagney
b2d5581361 Use value_at_lazy() to examine memory values. For x/i this is very
important as it stops the specified address being fetched twice -
once by value_at() and once somewhere in the disassembler.
1998-09-15 07:50:31 +00:00
Michael Snyder
c8ca08efeb Mon Sep 14 20:00:57 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* dejagnu/baseboards/m68k-emc.exp: New file.
	* dejagnu/config/m68k-emc.exp: New file.
	* gdb/testsuite/config/m68k-emc.exp: New file.
1998-09-15 03:06:26 +00:00
Michael Snyder
4a8051a834 Sun Sep 13 01:34:59 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c (find_pc_sect_partial_function): use bfd section
	  of msymbol for end of section comparison.
1998-09-13 08:37:08 +00:00
Michael Snyder
74c1b0ba6b Fri Sep 11 14:02:49 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* tracepoint.c: clean up several unused variables and such.
1998-09-11 21:03:29 +00:00
Michael Snyder
b6e88501aa Fri Sep 11 13:58:02 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.c++/classes.exp: Change all regular expressions to match
        arbitrary combinations of newline/carriage-return, so that they
        will work equally well on Unix and Windows.
        * gdb.c++/inherit.exp: ditto.
        * gdb.c++/virtfunc.exp: ditto.
1998-09-11 21:00:26 +00:00
Zdenek Radouch
05f1989d85 Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com)
* arm-tdep.c (arm_push_arguments): fixed frame construction
1998-09-11 16:40:04 +00:00
Jim Ingham
d0757953c9 Thu Sep 10 22:10:29 1998 Jim Ingham <jingham@cygnus.com>
*gdbtk-cmds.c (gdb_disassemble): Make sure the symtab's linetable is not
	null before trying to use it...
1998-09-11 05:13:57 +00:00
Michael Snyder
6a5c768569 Thu Sep 10 20:51:23 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL.
1998-09-11 03:52:21 +00:00
Stan Shebs
d7d7dd1b5a More avoidance of writing documentation in the internals manual.
* dbxread.c (IGNORE_SYMBOL): Remove definition, is never used.
	* os9kread.c: Remove comment mentioning IGNORE_SYMBOL.
1998-09-10 02:58:19 +00:00
Ron Unrau
253ceee6d0 Merges from SKY branch:
* blockframe.c(find_pc_sect_partial_function): look for min syms in
          the same section when trying to guess the end of a function.
        * symfile.c(list_overlays_command): use print_address_numeric
        * remote-sim.c: export simulator_command
        * tm-r5900.h: add COP0 registers
        * txvu-tdep.c: printvector and printvector-order commands
        * tm-txvu.h: add COP0 registers
        * mips-tdep.c: use NUM_CORE_REGS
1998-09-09 17:41:59 +00:00
Jason Molenda
fc4109089c 1998-09-08 Jason Molenda (jsm@bugshack.cygnus.com)
* breakpoint.c (bpstat_stop_status):  Declare a bp match if the
        current fp matches the bp->fp OR if the current fp is less than
        the bp->fp if we're looking at a bp_step_resume breakpoint.

PR 15992.

With a bp_step_resume type breakpoint, the frame pointer check exists in
case we recurse and execute the same text section--we want to not stop
there because it would confuse the user.  So gdb checks to see that the
frame pointer matches the one recorded in the breakpoint.

If the current frame pointer is less than the frame pointer recorded in
the breakpoint, then something odd is happened and we should declare that
we're at the breakpoint so that we clear it out.

This happens in Purify instrumented executables on PA systems, at least.
They insert some calls out to Purify code in the function epilogue and
it confuses GDB (which assumes that the frame pointer does not move
around through the entire execution of a function).
1998-09-09 04:16:53 +00:00
Stan Shebs
1f926de145 Cleanup opportunity discovered while updating internals manual.
* symtab.h (struct symtab): Remove EXTRA_SYMTAB_INFO hook,
	not currently used.
	* symfile.c (allocate_symtab): Deprecate use of
	INIT_EXTRA_SYMTAB_INFO here.
1998-09-09 02:48:11 +00:00
Stan Shebs
da5328aeaf * README: Update remote debugging and testsuite info. 1998-09-04 22:54:30 +00:00
Mark Alexander
11ac795258 * config/mn10300/tm-mn10300.h (FP_REGNUM): Redefine to be a
pseudo-register, not the same as a3.
	(D2_REGNUM, D3_REGNUM, A2_REGNUM, A3_REGNUM): Define.
	* mn10300-tdep.c (fix_frame_pointer): New function.
	(set_movm_offsets): Use register number macros instead of
	hard-coded constants.
	(mn10300_analyze_prologue): Fix to handle redefinition of FP_REGNUM.
	(mn10300_frame_chain):  Fix to handle redefinition of FP_REGNUM;
	use register number macros instead of hard-coded constants;
	add missing parameter to call of mn10300_analyze_prologue.
	(mn10300_frame_saved_pc): Use register number macros instead of
	hard-coded constants.
1998-09-03 22:59:13 +00:00
Stan Shebs
3fe41381a6 Killed the clone 1998-09-03 21:54:38 +00:00
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