Commit Graph

8340 Commits

Author SHA1 Message Date
Andrew Cagney 2f9429aea3 * defs.h, utils.c (free_current_contents): Change parameter to
void*.

From Philippe De Muyter  <phdm@macqel.be>:
* printcmd.c (print_address_symbolic): Call `make_cleanup' with
`(free_current_contents, &x)', not `(free, x)'.
* utils.c (free_current_contents): Do not `free (NULL)'.

* printcmd.c (print_address_symbolic): Cleanup after a failed
call to build_address_symbolic.
2000-04-21 04:10:18 +00:00
Christopher Faylor 61c37cee5d * wince-stub.c (FREE): New macro.
(mempool): Just free any buffer prior to reuse.  Don't bother with realloc.
(flag_single_step): New function.
(skip_message): Detect "helpful" Windows CE messages and skip sending them to
the host.
(wait_for_debug_event): Use skip_message to avoid sending debug messages to the
host.
(dispatch): Prelimary implementation of single step detection.
* wince.c: Rework SH single stepping code to be more consistent with other
wince targets.
(handle_output_debug_string): Allow first chance exceptions to come through
since they seem to be all that we get on some versions of Windows CE.
(check_for_step): New function, conditionally compiled based on target.
(regptr): Delete obsolete function.
(handle_exception): Detect illegal instructions.
(get_child_debug_event): Return success only if event code matches target.
(child_create_inferior): Reflect change to get_child_debug_event arguments.
2000-04-21 03:04:35 +00:00
Christopher Faylor 8a892701f5 * win32-nat.c (thread_rec): Be more defensive about suspending already
suspended threads.
(safe_symbol_file_add_stub): New function.
(safe_symbole_file_add_cleanup): New function.
(safe_symbol_file_add): New function.
(handle_load_dll): Use wrapper to add DLL symbol information to avoid bogus
errors from non-stabs DLLs.
(handle_exception): Add work around for detection of first exception breakpoint
which does not seem to occur on W2K.  Detect more "signals" that can be
effectively passed to the debuggee.  Reorganize to eliminate continue_status
global.
(child_continue): Reorganize to eliminate continue_status global.
(child_wait): Ditto.
(child_resume): Ditto.
(get_child_debug_event): Ditto.  Recognize when an a breakpoint exception
should be ignored.  Change method for signalling when an important event has
occured to the caller.
(child_create_inferior): Use new method for noticing when get_child_debug_event
has found something interesting.
2000-04-21 02:26:14 +00:00
Glen McCready c18e0d23bd Fri Apr 7 13:44:38 2000 glen mccready <gkm@pobox.com>
* rs6000-nat.c (xcoff_relocate_symtab): Grow buffer if ptrace()
          fails due to lack of space.
2000-04-20 23:54:45 +00:00
Glen McCready 49a5a3a3e3 Fri Mar 24 12:10:38 2000 glen mccready <gkm@pobox.com>
* command.c, command.h (help_all): Add functionality to display
        a complete listing of available commands.
2000-04-20 23:51:01 +00:00
Scott Bambrough 41c49b06c4 Changes to support core files and linux threads.
2000-04-20  Scott Bambrough <scottb@netwinder.org>

	* arm-linux-nat.c (PIDGET, TIDGET): New.
	(get_thread_id, GET_THREAD_ID): New.
	(fetch_nwfpe_register, store_nwfpe_register): New.
	(fetch_register, store_register): New.
	(fetch_fpregister, store_fpregister): New.
	(fill_gregset, supply_gregset): New.
	(fill_fpregset, supply_fpregset): New.
	(fetch_fpregs): Modified to use thread id's.
	(store_fpregs): Modified to use thread id's and
	fetch_nwfpe_register.
	(fetch_regs): Modified to use thread id's.
	(store_regs): Modified to use thread id's.
	(fetch_inferior_registers): Modified to handle single register
	fetches.
	(store_inferior_registers): Modified to handle single register
	stores.
	(arm_linux_register_u_addr): Removed.

	* configure.tgt: Added gdbserver to configdirs for arm*-*-linux*.

	* config/arm/linux.mh
	(NATDEPFILES): Removed core-aout.o.  Added core-regset.o.
	(LOADLIBES): Define.

	* config/arm/nm-linux.h: Include config/nm-linux.h.
	(ATTACH_DETACH): Removed.  Defined in config/nm-linux.h.
	(REGISTER_U_ADDR): Removed.
	(SVR4_SHARED_LIBS): Removed.  Defined in config/nm-linux.h.
	(#include "solib.h"): Removed.  Included via config/nm-linux.h.
2000-04-20 21:13:19 +00:00
Andrew Cagney ef346e0411 Append NULL to enum based commands follow-fork and scheduler-locking. 2000-04-20 11:00:34 +00:00
Andrew Cagney ba886e9d72 * gdbarch.sh: Make multi-arch variable defaults, defaults for non-
multi-arch targets.
(TARGET_BFD_VMA_BIT, IEEE_FLOAT, CALL_DUMMY_WORDS,
SIZEOF_CALL_DUMMY_WORDS): Update.
* inferior.h (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Default
provided by gdbarch.
(CALL_DUMMY_P): Add FIXME. gdbarch should provide default.
* valprint.c (IEEE_FLOAT): Default provided by gdbarch.
2000-04-20 04:24:04 +00:00
Jim Blandy b209c575e3 *** empty log message *** 2000-04-19 23:22:26 +00:00
Jim Blandy 71a9f22e4f Bring RETURN_VALUE_ON_STACK under gdbarch's control.
* gdbarch.sh (RETURN_VALUE_ON_STACK): New entry.
* gdbarch.c, gdbarch.h: Regenerated.
* arch-utils.c (default_return_value_on_stack): New function.
* arch-utils.h (default_return_value_on_stack): New declaration.
* values.c (RETURN_VALUE_ON_STACK): Delete default definition.
2000-04-19 23:22:14 +00:00
Jim Blandy ceef0e3054 For real this time.
* i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
two-dimensional array, instead of faking it with explicit index
arithmetic.
2000-04-19 23:19:04 +00:00
Jim Blandy 4e32685259 I figured out what was going on.
Since nobody had made any changes to i386v-nat.c on sourceware since
the repository was started, we were still getting the version from the
vendor branch.  (If you don't understand how the vendor branch works,
treasure your innocence.)  I naively assumed that, to see what changes
had been introduced in version 1.2, one should diff it with 1.1,
as they say in TV Guide, "with hilarious results".

This change simply restores i386v-nat.c to what it used to be before I
started bungling around.  The text of this revision should be
identical to that of revision 1.1.1.3, which was the former head of
the trunk.  (Yes, 1.1.1.3 was the head of the trunk.  As I said,
treasure your innocence.)
2000-04-19 23:17:18 +00:00
Jim Blandy 77d2aaae45 My last commit introduced a bunch of mysterious whitespace changes; I
don't know where they came from.  They weren't intentional, so this
change reverts them.
2000-04-19 23:02:56 +00:00
Jim Blandy 8f0a00f878 *** empty log message *** 2000-04-19 22:56:22 +00:00
Jim Blandy 8557886114 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
two-dimensional array, instead of faking it with explicit index
arithmetic.
2000-04-19 22:55:38 +00:00
Jim Blandy 72a0cf8f17 * minsyms.c (prim_record_minimal_symbol_and_info): Doc fix.
(Thanks to Guy Harris.)
2000-04-19 21:13:09 +00:00
Elena Zannoni 8956470d36 2000-04-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* xcoffsolib.c (solib_add): Fix call to vmap_symtab().
2000-04-19 13:08:49 +00:00
Peter Schauer c2d1645f06 * TODO: Update. 2000-04-19 10:33:21 +00:00
Andrew Cagney e55e8cee85 Document -Wreturn-type problem. 2000-04-19 09:15:32 +00:00
Andrew Cagney 90515c233a From Peter Schauer: Add `mt i' alias for `mt info'. 2000-04-19 07:59:12 +00:00
Andrew Cagney 7194c49b36 From Peter Schauer: Add `info r' alias for `info registers'. 2000-04-19 07:51:26 +00:00
Andrew Cagney df02e9ed85 * bcache.c (free_bcache): Do not free NULL. 2000-04-19 07:08:35 +00:00
Andrew Cagney 9debab2f37 * TODO: Cleanup.
* NEWS: Update GDB version.  Duplicate paragraph explaining obsolete.
2000-04-19 07:01:08 +00:00
Andrew Cagney 747d1ccb27 Document real fix to problem of tui/Makefile not being deleted. 2000-04-19 03:37:07 +00:00
Jim Blandy c41dbdb813 *** empty log message *** 2000-04-18 19:10:41 +00:00
Andrew Cagney 784f35f92c Add full set of cleanup rules. 2000-04-18 08:04:59 +00:00
Andrew Cagney 92e9dde927 Do not delete testcmds. 2000-04-18 08:03:40 +00:00
Elena Zannoni a5a5122549 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/help.exp: Update output for add-symbol-file command.
2000-04-17 16:14:37 +00:00
Elena Zannoni d167840fc5 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.texinfo (Files): Update description of add-symbol-file
        command.
2000-04-17 16:12:39 +00:00
Elena Zannoni e7cf9df194 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* symfile.h (struct section_addr_info ): Remove fields for special
 	treatment of .text, .data and .bss sections.

	* solib.c (symbol_add_stub): The special field text_addr is not
 	available anymore. Search for the .text field the hard way.

	* symfile.c (build_section_addr_info_from_section_table): Don't
 	fill in {text, data, bss}_addr any more.
	(default_symfile_offsets): Don't use {text, data, bss}_addr fields
 	to fill in section_offsets for objfile.
	(syms_from_objfile): Don't deal with {text, data, bss}_addr as a
 	special case anymore.
        (add_symbol_file_command): Ditto.
2000-04-17 16:09:04 +00:00
Elena Zannoni 4da95fc42d 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
symfile.c: (symbol_file_command): Remove support for rombug, to
 	simplify code.
2000-04-17 15:59:56 +00:00
Elena Zannoni db162d44d7 2000-04-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* symfile.c (add_symbol_file_command): Rewrite the arguments
 	processing part. Simplify syntax of command. Remove support for
 	rombug.
	(_initialize_symfile): Update help message for add-symbol-file
 	command.
2000-04-17 15:47:17 +00:00
Eli Zaretskii 5beae2cf40 Fixed incorrect date on the previous entry. 2000-04-17 10:56:17 +00:00
Eli Zaretskii 8487521e34 * gdb.texinfo (Porting GDB): Don't use @value in the node name, it
prevents the build (and is generally a Bad Idea).
2000-04-17 10:46:50 +00:00
Eli Zaretskii 00e4a2e455 * gdb.texinfo (Protocol): Prevent makeinfo from complaining about
a comma inside @var.
	(Command Files): Index markup changes from Dmitry Sivachenko
	<dima@Chg.RU>.
2000-04-17 10:42:13 +00:00
Andrew Cagney 301ab94d77 Only dump IEEE_FLOAT when defined. 2000-04-17 05:59:42 +00:00
Andrew Cagney bc1821e659 * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.c
(MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h
(BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE),
gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR,
FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS,
ADDRESS_TO_POINTER): Delete default definition.  Handled by
gdbarch.

* gdbarch.sh: Make multi-arch defaults, defaults for non-
multi-arch targets.
(REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE,
REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC,
MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT,
REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION):
Provide default/legacy implementation.
(REGISTER_NAMES, CALL_DUMMY): Allow legacy definition.
* gdbarch.h, gdbarch.c: Re-generate.
2000-04-17 02:27:37 +00:00
Jim Blandy 0ce865f26f *** empty log message *** 2000-04-16 16:04:59 +00:00
Jim Blandy c0aba12e91 * findvar.c (store_typed_address, extract_typed_address): Fix
function names in error messages.
2000-04-16 16:04:53 +00:00
Eli Zaretskii 39ec565510 * Makefile.in (LN_S): Define.
(gdb-cfg.texi, gdb.dvi, links2roff, inc-hist.texinfo): Don't
	invoke "ln -s" unless it is known to work.

	* configure.in (AC_PROG_LN_S): Add.
2000-04-16 08:47:41 +00:00
Eli Zaretskii 6c9d75b842 * config/djgpp/config.sed: Fix the lines which edit clean: and
uninstall-info: targets.
2000-04-16 08:16:03 +00:00
Jim Blandy 7355ddbace Bring IEEE_FLOAT under gdbarch's control.
* gdbarch.sh (IEEE_FLOAT): New entry.
* gdbarch.c, gdbarch.h: Regenerated.
* valprint.c (IEEE_FLOAT): Provide a default #definition for this.
(print_floating): Use IEEE_FLOAT as if it were an expression; use
the code specific to IEEE-format numbers whenever the value of
IEEE_FLOAT is non-zero.
* config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h,
config/h8300/tm-h8300.h, config/i386/tm-i386.h,
config/i960/tm-i960.h, config/m88k/tm-m88k.h,
config/mips/tm-mips.h, config/pa/tm-hppa.h,
config/sparc/tm-sparc.h, config/delta/tm-delta.h,
config/frv/tm-frv.h (IEEE_FLOAT): For all ports that #define
IEEE_FLOAT, make sure they give it the value (1).
2000-04-14 19:14:19 +00:00
Jim Blandy 8dc7983f05 *** empty log message *** 2000-04-14 18:46:19 +00:00
Jim Blandy 93e79dbd47 * gdbint.texinfo (Pointers Are Not Always Addresses): New manual
section.
(Target Conditionals): Document ADDRESS_TO_POINTER,
POINTER_TO_ADDRESS.
2000-04-14 18:46:17 +00:00
Jim Blandy 4478b372e9 * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two new
functions which architectures can redefine, defaulting to
generic_pointer_to_address and generic_address_to_pointer.
* findvar.c (extract_typed_address, store_typed_address,
generic_pointer_to_address, generic_address_to_pointer): New
functions.
(POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Provide default
definitions.
(extract_address, store_address): Doc fixes.
* values.c (value_as_pointer): Doc fix.
(value_from_pointer): New function.
* defs.h (extract_typed_address, store_typed_address): New
declarations.
* inferior.h (generic_address_to_pointer,
generic_pointer_to_address): New declarations.
* value.h (value_from_pointer): New declaration.

* ax-gdb.c (const_var_ref): Use value_from_pointer, not
value_from_longest.
* blockframe.c (generic_push_dummy_frame): Use read_pc and
read_sp, not read_register.
* c-valprint.c (c_val_print): Use extract_typed_address instead of
extract_address to extract vtable entries and references.
* cp-valprint.c (cp_print_value_fields): Use value_from_pointer
instead of value_from_longest to extract the vtable's address.
* eval.c (evaluate_subexp_standard): Use value_from_pointer
instead of value_from_longest to compute `this', and for doing
pointer-to-member dereferencing.
* findvar.c (read_register): Use extract_unsigned_integer, not
extract_address.
(read_var_value): Use store_typed_address instead of store_address
for building label values.
(locate_var_value): Use value_from_pointer instead of
value_from_longest.
* hppa-tdep.c (find_stub_with_shl_get): Use value_from_pointer,
instead of value_from_longest, to build arguments to __d_shl_get.
* printcmd.c (set_next_address): Use value_from_pointer, not
value_from_longest.
(x_command): Use value_from_pointer, not value_from_longest.
* tracepoint.c (set_traceframe_context): Use value_from_pointer,
not value_from_longest.
* valarith.c (value_add, value_sub): Use value_from_pointer, not
value_from_longest.
* valops.c (find_function_in_inferior, value_coerce_array,
value_coerce_function, value_addr, hand_function_call): Same.
* value.h (COERCE_REF): Use unpack_pointer, not unpack_long.
* values.c (unpack_long): Use extract_typed_address to produce
addresses from pointers and references, not extract_address.
(value_from_longest): Use store_typed_address instead of
store_address to produce pointer and reference values.
2000-04-14 18:43:41 +00:00
Mark Kettenis d84dd0c55e 2000-04-13 Mark Kettenis <kettenis@gnu.org>
* acconfig.h (HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, HAVE_LWPID_T,
	HAVE_PSADDR_T): Add them here instead of in config.in.

	* acconfig.h (PRFPREGSET_T_BROKEN): New define.
	* configure.in: Add check for broken prfpregset_t type.
	* lin-thread.c (gdb_prfpregset): New typedef, depends on
	definition of PRFPREGSET_T_BROKEN.
	(ps_lgetfpregs, ps_lsetfpregs, p_td_thr_getfpregs,
	p_td_thr_setfpregs, thread_db_fetch_registers,
	thread_db_store_registers): Use gdb_prfpregset_t instead of
	prfpregset_t.
	* config.in: Regenerated.
	* configure: Regenerated.
2000-04-14 10:13:50 +00:00
DJ Delorie 65edb64b15 * mips-tdep.c (do_fp_register_row): copy the number of bytes
allocated, not the size of the pointer.
2000-04-13 22:58:42 +00:00
Peter Schauer 14164c30b6 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Define.
* config/i386/tm-i386sol2.h (HAVE_I387_REGS):  Define.
	* i386v4-nat.c (supply_fpregset, fill_fpregset):  Add code
	to handle floating point registers if NUM_FREGS is not zero.
2000-04-13 18:11:41 +00:00
Nicholas Duffek db348f2745 * sol-thread.c (init_sol_core_ops): Initialize to_thread_alive
and document to_find_new_threads bug.
2000-04-13 16:31:50 +00:00
Eli Zaretskii 010a3cd955 * infrun.c (proceed, normal_stop): Change the error message about
failure to insert breakpoints/watchpoints so that it makes sense
	even if ptrace is not used or no other processes can be active.
2000-04-13 10:22:22 +00:00