Commit Graph

8433 Commits

Author SHA1 Message Date
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
Andrew Cagney 413ccac7ea Only re-generate copying.c when maintainer mode. 2000-04-13 05:33:41 +00:00
Kevin Buettner acf7b9e14f IA-64 watchpoint support. 2000-04-13 02:18:13 +00:00
Eli Zaretskii d03cef9d48 * go32-nat.c (go32_insert_hw_breakpoint): When there are no more
hardware breakpoint resources, return EBUSY.
	(go32_handle_nonaligned_watchpoint): If the argument WHAT is not
	one of the enumerated values, return EINVAL.
2000-04-12 17:04:42 +00:00
Eli Zaretskii c63ce87553 * README: Mention special build instructions for DJGPP.
* NEWS: Update with FP features on x87 platforms, and
	DJGPP-related changes.
2000-04-12 16:51:27 +00:00
Eli Zaretskii ae678129eb * top.c (gdb_completer_file_name_break_characters): New variable.
(line_completion_function): When completing on file names, use
	gdb_completer_file_name_break_characters as word break
	characters for the readline library.
2000-04-12 16:43:27 +00:00
Eli Zaretskii f0ca3dcec2 Typos fixed (from Dmitry Sivachenko <dima@Chg.RU>). 2000-04-12 16:35:02 +00:00
Daniel Berlin 1a8237e8c3 Changelog entry for gdbint.texinfo fix 2000-04-12 02:27:39 +00:00
Daniel Berlin 25822942b6 GDB->@value{GDBN} 2000-04-12 02:26:59 +00:00
Mark Kettenis 1d77867f99 2000-04-12 Mark Kettenis <kettenis@gnu.org>
* i387-tdep.c (print_i387_value): Avoid call to
	floatformat_to_doublest if long double type is the same on host
	and target.
2000-04-12 00:22:56 +00:00
Fernando Nasser 287e305808 2000-04-11 Fernando Nasser <fnasser@cygnus.com>
* wrapper.h: Remove definitions of internal functions.
	* wrapper.c: Remove definitions of exported functions (which are
	already in wrapper.h) and make static all internal wrap_* functions.
2000-04-11 19:41:11 +00:00
Andrew Cagney e48f66e46e Cleanup USE_INCLUDED_REGEX. Move -D to acconfig.h. 2000-04-11 01:21:15 +00:00
Scott Bambrough f38e884d67 Move arm_skip_solib_resolver from arm-linux-nat.c to arm-linux-tdep.c.
2000-04-10  Philip Blundell <philb@gnu.org>

	* arm-linux-nat.c (arm_skip_solib_resolver): Remove and move to
	arm-linux-tdep.c.
	* arm-linux-tdep.c (arm_skip_solib_resolver): New.
2000-04-10 21:02:33 +00:00
Jim Blandy ca526f1a3e *** empty log message *** 2000-04-10 15:50:15 +00:00
Jim Blandy 4281a42ed4 Use the three-argument form of @xref to get the references right. 2000-04-10 15:50:02 +00:00
Jim Blandy 0a1a0be203 * gdbint.texinfo (Target Architecture Definition): Fix screwed-up
references to ``Using Different Register and Memory Data
Representations''.
2000-04-10 15:33:19 +00:00
Fernando Nasser 9285ab8042 2000-04-10 Fernando Nasser <fnasser@cygnus.com>
From 2000-04-10 Rodney Brown <rdb@redhat.com>:
	* command.h (enum command_class): Remove trailing "," to placate
	AIX xlc.
2000-04-10 15:07:37 +00:00
Fernando Nasser 7930cc7cdc 2000-04-10 Fernando Nasser <fnasser@cygnus.com>
From Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
	* gdb.base/structs2.c: Support platforms defaulting to a unsigned char.
2000-04-10 14:14:54 +00:00
Andrew Cagney bc9e5bbf1b TODO, NEWS: Update. Mention MI. 2000-04-10 10:52:19 +00:00
Andrew Cagney 1ad03bde8a Rename gdbarch-utils.[hc] to arch-utils.[hc] 2000-04-09 14:37:28 +00:00
Andrew Cagney a5ea25581c Rename gdbarch-utils.[hc] to arch-utils.[hc]. 2000-04-09 14:35:35 +00:00
Andrew Cagney f7384f0ffd 2000-04-07 J.T. Conklin <jtc@redback.com>: lynx-nat.c
(fetch_inferior_registers, store_inferior_registers): replace calls to
target_xfer_memory() with target_read_memory() and
target_write_memory().
2000-04-09 13:29:52 +00:00
Andrew Cagney 85c9a9d507 Compare VALUE_ADDRESS() return value with ZERO not NULL. 2000-04-09 13:02:10 +00:00
Jim Blandy 64367e0abc * dwarf2read.c: Revert Andrew Cagney's change of Dec 15, 1997.
Don't include "bfd-elf.h".
(address_significant_size): Delete variable.
(dwarf2_build_psymtabs_hard): Don't set it, or check for
consistency between it and the Dwarf 2 compilation unit header
address size.
(read_address): Don't mask off bits above
address_significant_size.
* Makefile.in (dwarf2read.o): Don't depend on $(elf_bfd_h).
(elf_bfd_h): Remove variable; it's no longer used.
2000-04-08 22:35:35 +00:00
Jim Blandy faaafcb468 *** empty log message *** 2000-04-08 17:49:50 +00:00
Jim Blandy 9fb4dd364d * gdbint.texinfo (Using Different Register and Memory Data
Representations): New section.
(REGISTER_CONVERTIBLE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
REGISTER_VIRTUAL_TYPE, REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Document.
2000-04-08 17:49:31 +00:00
Peter Schauer 3423db8257 * configure.in (NEW_PROC_API): Escape square brackets when testing
for solaris2.[678].
	* configure:  Regenerate.
2000-04-08 11:13:17 +00:00
J.T. Conklin e93c542c45 * gdb.base/call-ar-st.exp: Relax patterns matching tab characters. 2000-04-08 05:10:43 +00:00
J.T. Conklin 23e37ab112 2000-04-07 J.T. Conklin <jtc@redback.com>
* gdb.base/funcargs.exp: Relax patterns matching pointers to char.
2000-04-07 22:26:35 +00:00
Scott Bambrough 134e61c4a7 2000-04-07 Scott Bambrough <scottb@netwinder.org>
* ChangeLog: Correct date on last entry.
	* arm-linux-tdep.c (arm_linux_push_arguments): New function.
	* config/arm/tm-linux: Redefined PUSH_ARGUMENTS for Linux.
	* config/arm/tm-embed: Fix build warning from redefinition of
	LOWEST_PC.
	* config/arm/tm-arm.h: Remove TARGET_BYTE_ORDER_SELECTABLE.
	* config/arm/tm-wince.h: Remove TARGET_BYTE_ORDER_SELECTABLE and
	TARGET_BYTE_ORDER.  Add TARGET_BYTE_ORDER_SELECTABLE_P to
	override default in tm-arm.h.  Use default target byte order
	from tm-arm.h.
2000-04-07 22:26:11 +00:00
Scott Bambrough 03e0fb3a47 2000-04-05 Scott Bambrough <scottb@netwinder.org>
* Makefile.in: Add dependency information for arm-linux-tdep.c.
	* config/djgpp/fnchange.lst: Add arm-linux-tdep.c, arm-linux-nat.c.
2000-04-07 22:04:01 +00:00
Peter Schauer 291dcb3e0d * sol-thread.c (gdb_ps_addr_t): New typedef, depends on definition
of PROC_SERVICE_IS_OLD.
	(ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite,
	rw_common):  Change argument type from psaddr_t to gdb_ps_addr_t.
2000-04-07 17:18:57 +00:00
Andrew Cagney 1decb32380 When GCC always enable certain warnings.
Allow configure to set CFLAGS (-g -O2) when GCC.
2000-04-07 08:57:39 +00:00
Andrew Cagney d311cd50fc From 2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* procfs.c (init_procfs_ops):  Set procfs_ops.to_has_memory and
procfs_ops.to_has_all_memory to 1.
2000-04-07 04:33:21 +00:00
Andrew Cagney 1b27397f36 ChangeLog for
/cvs/src/src/gdb/doc/gdb.texinfo,v  <--  gdb.texinfo
new revision: 1.13; previous revision: 1.12
2000-04-07 01:41:06 +00:00
Andrew Cagney 6cf7e47433 Deprecate sequence-id's. 2000-04-07 01:33:18 +00:00
Nicholas Duffek 6abadcf80e * configure.in (_MSE_INT_H): Define on Solaris 7.
(NEW_PROC_API): Define on Solaris 7 and 8 as well as 6.
	* acconfig.h (_MSE_INT_H): Define on Solaris 7.
	* configure: Regenerate.
	* config.in: Regenerate.
2000-04-07 01:16:17 +00:00
Nicholas Duffek 2f09097b73 * sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):
Change to rely on PIDGET etc.
	* config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS,
	TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
	STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint):
	define.  Allow target to use procfs hardware watchpoints.
	* config/sparc/nm-sun4sol2.h: ditto.
	* config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify
	definitions to use 16 bits for the pid, 15 bits for the tid, and
	1 bit for the flag.
	* config/sparc/tm-sun4sol2.h: ditto.
	(SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine.
	* testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow
	for more than 15 thread increments.
2000-04-07 01:14:10 +00:00
Eli Zaretskii bcea15ac19 * top.c (filename_completer): Set subsequent_name to 1 early on,
to prevent an infinite loop if the first file in the directory is
	a backup file.
2000-04-06 15:24:36 +00:00
Jim Blandy c3f432d938 *** empty log message *** 2000-04-05 20:41:57 +00:00
Jim Blandy 105b175f27 * solib.c (update_solib_list): New function.
(solib_add): Call update_solib_list, and then read symbols.
(info_sharedlibrary_command): Call update_solib_list, not
solib_add.
2000-04-05 20:40:22 +00:00
Scott Bambrough c20f6dea13 2000-04-05 Scott Bambrough <scottb@netwinder.org>
* arm-linux-tdep.c: Resolve implicit function declarations by
	including target.h and value.h.  Inclusion of symtab.h is
	no longer needed.
	* ChangeLog: Fix formatting of previous entry.
2000-04-05 17:24:08 +00:00
Scott Bambrough faf5f7ad8a Unable to build x86 hosted debugger for ARM Linux, due to missing target
dependencies.  Created ARM Linux specific arm-linux-tdep.c file and moved
missing code into it from arm-linux-nat.c.

2000-04-05  Scott Bambrough <scottb@netwinder.org>

	* arm-linux-tdep.c: New file.
	* arm-linux-nat.c (fetch_fpregs): Remove unused code.
	  (arm_get_longjmp_target): Moved it and all defines
	  it uses to arm-linux-tdep.c.
	  (arm_linux_extract_return_value): Moved to
	  arm-linux-tdep.c.
	* config/arm/linux.mt: Add arm-linux-tdep.c to TDEPFILES.
2000-04-05 15:38:05 +00:00
Nicholas Duffek c7e79b4bee * infrun.c (handle_inferior_event): Call target_mourn_inferior
instead of kill_target.
2000-04-05 02:26:37 +00:00
Daniel Berlin eb3d1d196c Update todo 2000-04-04 05:13:44 +00:00
Daniel Berlin 070ad9f02e C++ changes for 5.0, finally committed. 2000-04-04 04:53:50 +00:00
Andrew Cagney eb90a51f9d Stop GCC thinking a shift will overflow. 2000-04-04 04:16:48 +00:00
H.J. Lu d66c34e293 2000-04-03 H.J. Lu <hjl@gnu.org>
* TODO: Remove the regex entry.
2000-04-04 02:11:36 +00:00
H.J. Lu 8898755195 2000-04-03 H.J. Lu <hjl@gnu.org>
* gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX
	is defined and <regex.h> otherwise.

        * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h".
	* monitor.c: Likewise.
	* osfsolib.c: Likewise.
	* solib.c: Likewise.
	* source.c: Likewise.
	* symtab.c: Likewise.

	* Makefile.in (REGEX): Changed to @REGEX@.
	(REGEX_CFLAGS): New.
	(REGEX1): Removed.
	(ADD_DEPS): Use $(REGEX) instead of $(REGEX1).
	(INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS).

	* configure.in (--with-included-regex): New switch.
	(REGEX): New. Subsstitue @REGEX@ in Makefile.in.
	(REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in.
	* configure: Regenerated.
2000-04-04 02:08:52 +00:00
Kevin Buettner afc05dd4fd Mention new PowerPC GNU/Linux native configuration. 2000-04-03 22:10:45 +00:00
J.T. Conklin c1ed99b861 2000-04-03 J.T. Conklin <jtc@redback.com>
* config/i386/xm-nbsd.h (HOST_LONG_DOUBLE_FORMAT): Define.
2000-04-03 21:33:21 +00:00
Kevin Buettner d61e6540a1 IA-64 changes for linux threads 2000-04-03 19:10:50 +00:00
Kevin Buettner 76d689a6e3 IA-64 changes 2000-04-03 18:58:48 +00:00
Jim Blandy 3ace57aafd *** empty log message *** 2000-04-03 17:50:12 +00:00
Jim Blandy f16568948d *** empty log message *** 2000-04-03 17:49:40 +00:00
Jim Blandy e8930304b2 * solib.c (solib_add): Move all the code for loading symbol tables
below the code to sort out additions and removals.  That way, we
always catch all loaded shared libraries whose symbols we haven't
grabbed yet.

* solib.c (solib_add): Don't try to free a shared object's objfile
if it doesn't have one.  Duh.

* solib.c (solib_add): If a pattern was given, but it doesn't
match any currently loaded shared libraries, print a message;
don't just be silent.
2000-04-03 17:45:17 +00:00
Eli Zaretskii a984817e9c * annotate.texi (Frame Annotations): Fix a cross-reference. 2000-04-03 16:11:07 +00:00
Eli Zaretskii 184a103e6d * go32-nat.c (go32_handle_nonaligned_watchpoint): Use a
two-dimensional array instead of faking it with index
	arithmetics.
2000-04-03 15:27:42 +00:00
Eli Zaretskii 7f668b8658 * config/i386/xm-go32.h (HOST_LONG_DOUBLE_FORMAT): Define.
* config/i386/tm-go32.h (TARGET_LONG_DOUBLE_BIT): Remove
	definition (and use the common one in tm-i386.h).
	(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Likewise.
	(I386_DJGPP_TARGET): Don't define, it's no longer required.
	(LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Remove definition,
	i386-tdep.c defines it for all x86 targets.
	(LD_I387, HEX_LONG_DOUBLE_INPUT): Remove.

	* config/djgpp/fnchange.lst: Add i386-linux-tdep.c.

	* config/djgpp/djcheck.sh: Edit the copyright year out of the test
	results.  Fix editing of `main' arguments for non-GNU Sed.
2000-04-03 15:24:17 +00:00
Eli Zaretskii c0c9b0b8a6 Fix a typo (comtaining -> containing). 2000-04-03 15:17:37 +00:00
Eli Zaretskii 515ad16ca7 * symfile.c (map_overlay_command, unmap_overlay_command): Fix
error message: there's no "overlay on" command.
2000-04-03 15:16:13 +00:00
Eli Zaretskii bf1798eaab * Makefile.in (copying.c): Depend on copying.txt, not COPYING.
(copying.txt): New target, a link to COPYING.
2000-04-03 15:12:59 +00:00
Daniel Berlin 7876dd4328 NEWS file update 2000-04-03 13:24:08 +00:00
Andrew Cagney 9d6d78f259 Update removing anything fixed. 2000-04-03 08:47:48 +00:00
Andrew Cagney 62a4b482f9 Revert white space changes. Need way of stopping this happening. 2000-04-03 06:52:38 +00:00
Andrew Cagney eb2f494ab0 Re-indent (almost). Several cases where indent was getting it wrong
were omitted.
2000-04-03 05:30:13 +00:00
Andrew Cagney a960f24961 Delete add_minsym_to_demangled_hash_table from symtabs.h. Static function. 2000-04-03 04:47:27 +00:00
Andrew Cagney afbfc876f1 Re-indent gdb-events.h, gdb-events.c using gdb-events.sh. 2000-04-03 04:43:26 +00:00
Nicholas Duffek c91ecb25c3 * gdbtypes.c (safe_parse_type): New wrapper function to ignore
error() during parse_and_eval_type().
	(check_stub_method): Call safe_parse_type instead of
	parse_and_eval_type().
	* wrapper.c (gdb_parse_and_eval_type): New wrapper function.
	(wrap_parse_and_eval_type): New support function.
	* wrapper.h (gdb_parse_and_eval_type): Prototype.
	(wrap_parse_and_eval_type): Prototype.
2000-04-03 03:39:09 +00:00
Andrew Cagney 2df7b2a766 Add Eli to doco maintainers. 2000-04-03 00:04:00 +00:00
Andrew Cagney c0e8c25248 * gdbarch-utils.h, gdbarch-utils.c: New files.
* Makefile.in (SFILES, COMMON_OBS): Update.
(gdbarch_utils_h) Define.
(gdbarch-utils.o): Add dependencies.

* gdbarch.c, gdbarch.sh: Include "gdbarch-utils.h". Fix code
handling default method values.
(startup_gdbarch): Rename default_gdbarch, name misleading.
(breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
(register_name): Default to legacy_register_name.
(call_dummy_words): Default to legacy_call_dummy_words.
(sizeof_call_dummy_words): Default to
legacy_sizeof_call_dummy_words.
(register_convertible): Default to
generic_register_convertible_not.
(breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
(remote_translate_xfer_address): Default to
generic_remote_translate_xfer_address.
(frameless_function_invocation): Default to
generic_frameless_function_invocation_not.
2000-04-03 00:00:32 +00:00
Mark Kettenis ed40e7aff9 2000-04-02 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c: Add copyright notice.
2000-04-02 20:16:28 +00:00
Mark Kettenis b1ced0139c 2000-04-02 Mark Kettenis <kettenis@gnu.org>
* config/i386/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define as
	&floatformat_i387_ext.
	* config/i386/xm-i386gnu.h (HOST_LONG_DOUBLE_FORMAT): Likewise.
2000-04-02 14:41:45 +00:00
Mark Kettenis 3956bd7095 2000-03-29 Mark Kettenis <kettenis@gnu.org>
* findvar.c (extract_floating): Remove reference to
	TARGET_EXTRACT_FLOATING.
	(store_floating): Remove reference to TARGET_STORE_FLOATING.
2000-03-31 22:04:50 +00:00
Philippe De Muyter 591b8fa3ef * gdb.base/call-ar-st.c (init_small_structs, main): Use floating-point
values that can be represented exactly.
	* gdb.base/call-ar-st.exp (print print_small_structs): Fixed to match
	above change, and to not check against the directory part of the source
	file name.
	(step into print_long_arg_list): Likewise.
	(print print_small_structs from print_long_arg_list): Likewise.
	(print print_long_arg_list): Likewise.
2000-03-30 23:32:30 +00:00
Fernando Nasser 8310b29b55 2000-03-30 Fernando Nasser <fnasser@cygnus.com>
* wrapper.c (gdb_value_subscript, wrap_value_subscript): New functions.
	Safe version of value_subscript.
	* varobj.c (): Use gdb_value_subscript() to get an array element value.
2000-03-30 20:15:35 +00:00
Michael Snyder 1d1358b667 2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* ui-file.c: Include "gdb_string.h"
	* cli-out.c: Include gdb_string.h to avoid compiler warnings.
	* wrapper.[ch] (struct gdb_wrapper_arguments): Change fields into
	unions, since they are all used to hold both pointers and ints
	at various times.  Casting pointer to int and vice versa gives
	warnings (and is not safe) if they are not the same size.
2000-03-30 19:52:35 +00:00
Michael Snyder 213c01f70e Capitalize sentences. 2000-03-30 19:12:08 +00:00
Michael Snyder 57e687d9ad 2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* defs.h (struct continuation_arg): make 'data' a union, to avoid
        casting problems when int and pointer are not the  same size.
        * event-top.c (command_handler): use data as a union.
        (command_line_handler_continuation): ditto.
        * infcmd.c (step_1_continuation): use data as a union.  Re-indent.
        (step_once): ditto.  (finish_command_continuation): ditto.
        (finish_command): ditto.
        * breakpoint.c (until_break_command): use data as a union.
        (until_break_command_continuation): ditto.
        * utils.c (add_intermediate_continuation): fix typo in comment.
2000-03-30 18:54:28 +00:00
Andrew Cagney 59233f88f1 gdbarch cleanups. 2000-03-30 05:32:23 +00:00
Daniel Berlin 23bd111d92 Didn't realize this auto-generated gdb-events.c. Since it does, i applied the gdb-events.c fix for deprecation back to here. 2000-03-30 03:10:58 +00:00
Daniel Berlin 0729fd5008 demangled symbol lookup fixes 2000-03-30 03:03:23 +00:00
Jason Merrill d332c5ac7e * configure.in: -linux-gnu*, not -linux-gnu.
* configure (gcc_version): When setting, narrow search to
        lines containing `version_string'.
2000-03-30 02:19:56 +00:00
Andrew Cagney 480ff1fb28 Fix thread-extra-info name. qfThreadExtraInfo ->qThreadExtraInfo. 2000-03-29 08:29:00 +00:00
J.T. Conklin f1251bdd6b 2000-03-28 J.T. Conklin <jtc@redback.com>
* gdb.texinfo: Clarify which remote debug protocol commands are
        required and which are optional.
2000-03-29 04:16:57 +00:00
J.T. Conklin eafd453605 2000-03-29 J.T. Conklin <jtc@redback.com>
* i386nbsd-nat.c (fetch_core_registers): Make static.

        * m68knbsd-nat.c (fetch_core_registers): Make static.
        (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added.
2000-03-29 04:03:56 +00:00
Andrew Cagney dbeb8dbdff Revert movement of @chapter and @node tags from separate files to
gdb.texinfo.
2000-03-29 03:55:18 +00:00
Andrew Cagney 67edb2c6ae Update GDB 5 status. 2000-03-29 03:51:18 +00:00
Andrew Cagney 80ce1ecb70 Fix various GCC warnings. 2000-03-29 00:51:17 +00:00
Michael Snyder 692590c19f 2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
breakpoint.c, breakpoint.h (remove_hw_watchpoints):  New function.
        infrun.c (resume):  Remove hardware watchpoints before stepping
        when CANNOT_STEP_HW_WATCHPOINTS is nonzero.
2000-03-28 22:30:19 +00:00
Michael Snyder e529db18ad 2000-03-28 Michael Snyder <msnyder@cleaver.cygnus.com>
* Makefile.in: anchor tui-file.h dependency to $srcdir.
2000-03-28 21:19:04 +00:00
Michael Snyder c690268831 2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* breakpoint.c (insert_breakpoints, do_enable_breakpoint):
        Reselect the saved frame silently after frame selection for
        watchpoint evaluation.
        (insert_breakpoints):  Add missing space in `Hardware watchpoint
        deleted' message.  Do not reinsert hardware watchpoint if it is
        already marked for deletion at next stop.
2000-03-28 19:29:56 +00:00
Michael Snyder 03905a3cee 2000-03-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* procfs.c (proc_set_watchpoint):  Declare addr parameter as
        CORE_ADDR, to match call from procfs_set_watchpoint.
2000-03-28 19:02:47 +00:00
Christopher Faylor 7d88144cc7 * partial-stab.h: Add one more check against corrupted or irregular stabs
entry.
2000-03-28 17:44:53 +00:00
Stan Shebs 6d2ebf8bcc * gdb.texinfo: Update dates, bump to Eighth Edition (note
expectation of additional changes before release), update
	ISBN, add copy of top-level menu for @ifhtml, remove explicit
	node links, rephrase and/or shorten lines to fix formatting
	problem in both regular and @smallbook formats.
	* annotate.texi: Shorten lines in example, use smallexample
	consistently everywhere.
	* Makefile.in: Add comment about texinfo 4.0 html generation.
	(SFILES_INCLUDED): Add annotate.texi.
2000-03-28 16:46:24 +00:00
Philippe De Muyter f25d2425f4 * gnu-regex.c (regerror): Function renamed from `__regerror'. 2000-03-28 12:13:15 +00:00
Andrew Cagney 2171aa415b From Jonathan L. Fix ser-unix.c timing out when there was no timeout. 2000-03-28 08:24:28 +00:00
Daniel Berlin 5d161b2419 The set debug changes 2000-03-28 02:25:14 +00:00
Andrew Cagney 107b56f053 Bump copyright to 2000. 2000-03-28 02:03:53 +00:00
Andrew Cagney c247e9c435 Add Glen McCready 2000-03-28 00:17:13 +00:00
Andrew Cagney 3f1ef994e9 Fix typo in description of GETREGS. 2000-03-28 00:03:57 +00:00
Elena Zannoni 30b53638f1 2000-03-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
fix typo.
2000-03-27 17:44:32 +00:00
Elena Zannoni 7a49518043 2000-03-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.base/printcmds.c: Terminate char array ctable2 with 0.
2000-03-27 17:34:48 +00:00
Andrew Cagney 138f88c0ba Add GDB 5.0 release criteria. 2000-03-27 10:24:58 +00:00
Andrew Cagney e7d0728ac1 Move default definition of HAVE_PTRACE_GETREGS to acconfig.h. 2000-03-27 07:31:37 +00:00
Andrew Cagney ee29d710d1 Create destdirs before installing GDB (don't assume parent directory
did it for us).
2000-03-27 06:51:30 +00:00
Andrew Cagney 2e022a79b4 Re-fix ln -s gdbtk code. Mark ready for deletion post 5.0. 2000-03-27 06:42:08 +00:00
Andrew Cagney beb998c6a0 Revert white space changes. 2000-03-27 05:29:24 +00:00