Commit Graph

4826 Commits

Author SHA1 Message Date
Andrew Cagney 6a08e74c32 Don't include nrom in CONFIG_INITS. 2000-03-22 04:19:35 +00:00
J.T. Conklin 5f04ac3de9 2000-03-21 J.T. Conklin <jtc@redback.com>
* i386/nbsd.mh (NATDEPFILES): Change i386b-nat.o to i386nbsd-nat.o.
        * i386nbsd-nat.c: New file.

        * i386/tm-nbsd.h (NUM_REGS): Removed.
        (HAVE_I387_REGS): Defined.
        * i386/nm-nbsd.h (FLOAT_INFO): Removed.

        * tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not
        SVR4_SHARED_LIBS.
2000-03-22 01:36:31 +00:00
Andrew Cagney f09cffe305 Add Jim Blandy to breakpoint maintainers. David taylor is the
Solaris/SPARC maintainer.  Add Jonathan Larmour to the write after
approval list.
2000-03-22 00:21:30 +00:00
Kevin Buettner 62557bbcee Make sure section addresses from a shared object are correctly set in
a new struct objfile.
2000-03-21 22:37:42 +00:00
Michael Snyder 99e5c1c84f 2000-03-21 Eli Zaretskii <eliz@is.elta.co.il>
* breakpoint.c (bpstat_stop_status): Don't stop if a read
        watchpoint appears to break, but the watched value changed.
2000-03-21 20:41:39 +00:00
Jim Blandy 333a782f7b *** empty log message *** 2000-03-21 20:40:47 +00:00
Kevin Buettner eafb830164 IA-64 changes. 2000-03-21 05:26:31 +00:00
Michael Snyder 2e70b7b962 2000-03-20 Eli Zaretskii <eliz@is.elta.co.il>
* breakpoint.c (insert_breakpoints, remove_breakpoint)
        (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert,
        remove, or check status of hardware watchpoints for entire structs
        and arrays unless the user explicitly asked to watch that struct
        or array.
        (insert_breakpoints): Try to insert watchpoints for all the values
        on the value chain, even if some of them fail to insert.

        * values.c (value_primitive_field): Set the offset in struct value
        we return when the field is a packed bitfield.
2000-03-21 01:27:34 +00:00
Michael Snyder 9d1f7ab2c8 2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
* remote.c (remote_threads_extra_info): new function.
        Implement the extra thread info query for "info threads".
        (remote_threads_info): clean up a bit.
        (use_threadinfo_query, use_threadextra_query): new variables.
        Control whether GDB will use the new or old protocol for
        thread info queries.
        (remote_open_1): initialize new variables.
        (remote_async_open_1): ditto.
        (remote_cisco_open): ditto.
2000-03-21 01:22:05 +00:00
Kevin Buettner 16461d7d89 New files for IA-64 port. 2000-03-21 00:11:10 +00:00
Kevin Buettner ba8966d6c3 Fixes for floatformat_from_doublest(). 2000-03-20 22:15:58 +00:00
Jim Blandy e7ee86a99a * i386-linux-nat.c: No need to #include "frame.h" any more.
(LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
i386_linux_sigtramp_saved_sp):	Deleted.  Folks rightly pointed
out that these are target-dependent, and useful in non-native
configurations.  Moved to...
* i386-linux-tdep.c: ... Here, a new file.
* Makefile.in (ALLDEPFILES): Add i386-linux-tdep.c.
(i386-linux-tdep.o): New rule.
(i386-linux-nat.o): We no longer depend on frame.h.
* config/i386/linux.mt (TDEPFILES): Add i386-linux-tdep.o.
2000-03-20 20:38:29 +00:00
Elena Zannoni 58a2c44a26 2000-03-04 Eli Zaretskii <eliz@is.elta.co.il>
* event-loop.c (top-level) [NO_FD_SET]: Deprecate this branch.
	Print an error at compile time if we are to use select, but FD_SET
	is not available.
	(SELECT_MASK, NBBY, FD_SETSIZE, NFDBITS, MASK_SIZE): Define only
	if HAVE_POLL is not defined and NO_FD_SET *is* defined.
	(create_file_handler) [!HAVE_POLL]: Use FD_SET and FD_CLR.
	(delete_file_handler) [!HAVE_POLL]: Use FD_CLR and FD_ISSET.
	(gdb_wait_for_event) [!HAVE_POLL]: Copy fd_set sets directly
	instead of using memcpy and memset.  Use FD_ISSET.

	* config/i386/xm-go32.h (fd_mask): Remove typedef.
2000-03-20 19:59:38 +00:00
Andrew Cagney acd46a93b6 Document requirements on adding a ``!'' command. 2000-03-20 09:19:45 +00:00
Andrew Cagney b71896da7e Add sh2 to list of known architectures. 2000-03-20 07:28:05 +00:00
Andrew Cagney 4397a6ab7a From John David Anglin:
Don't initialize HPUX thread twice.
2000-03-20 06:41:24 +00:00
Eli Zaretskii c5201926ef * event-top.c (_initialize_event_loop): If instream is not
connected to a terminal device, turn editing off.
2000-03-19 12:30:38 +00:00
Eli Zaretskii ded59a1e28 Support for building GDB with DJGPP, and running the test suite on
it:
	* config/djgpp/djconfig.sh: New file.
	* config/djgpp/config.sed: New file.
	* config/djgpp/README: New file.
	* config/djgpp/fnchange.lst: New file.
	* config/djgpp/djcheck.sh: New file.
2000-03-19 11:53:24 +00:00
Eli Zaretskii 615b480ff2 *** empty log message *** 2000-03-19 11:26:30 +00:00
Jim Blandy 9f81f4aa6f *** empty log message *** 2000-03-18 01:57:42 +00:00
Jim Blandy 1cc26dd06a *** empty log message *** 2000-03-17 20:12:51 +00:00
Michael Snyder ca9c33a529 2000-03-17 Mark Kettenis <kettenis@gnu.org>
* gdb_wait.h: add definitions of WSETSTOP and WSETEXIT for Linux.
        * linux-thread.c: Use WSETSTOP instead of W_STOPCODE.
2000-03-17 19:50:29 +00:00
Philippe De Muyter ccdaf797f7 * language.c (set_lang_str): Do not call `free' for a null pointer.
(set_type_str, set_range_str): Ditto.
2000-03-17 10:19:22 +00:00
Jim Blandy 17f9defb0b * i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
merge; reinstated.
2000-03-16 23:53:35 +00:00
Jim Blandy 7f869e41c6 *** empty log message *** 2000-03-16 23:13:18 +00:00
Jim Blandy 11708b95a3 * i386-tdep.c (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
i386_linux_sigtramp_saved_sp): Deleted.  These all implement
Linux-specific signal trampoline detection, and should be moved to...
* i386-linux-nat.c: ... here.
* config/i386/tm-linux.h (I386_LINUX_SIGTRAMP): No need to define
this any more, since we're not enabling OS-specific code in a
OS-independent file.
2000-03-16 22:46:30 +00:00
Eli Zaretskii 2c33cc30aa Typo in spelling Makefile.in... 2000-03-16 10:24:30 +00:00
Eli Zaretskii 3a95698a29 (go32-nat.o): Add prerequisites.
(ALLDEPFILES): Add go32-nat.c.
2000-03-16 10:23:38 +00:00
Michael Snyder 0a83117aa4 2000-03-15 Michael Snyder <msnyder@cleaver.cygnus.com>
From "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
        * symfile.c (reread_symbols):  Clear msymbol hash table.
2000-03-15 19:43:57 +00:00
Jim Blandy 07cd4b9723 Deal with the inferior unloading shared objects.
* solib.c (current_sos): New function, replacing find_solib.
(find_solib): Deleted.
(free_so): New function.
(clear_solib): Call free_so, instead of writing it out.
(solib_add): Rewritten: compare the inferior's current list of
shared objects with GDB's list, and do the required loads and
unloads.
(info_sharedlibrary_command, solib_address): Don't use find_solib
to walk the list of shared libraries: call solib_add, and then
walk the list at so_list_head normally.
* objfiles.c (free_objfile): Don't call CLEAR_SOLIB, and don't
detach the core target.  These tasks are taken care of elsewhere.
* target.c (remove_target_sections): New function.
* target.h (remove_target_sections): New declaration.

* solib.c (symbol_add_stub): Check whether we've already created
an objfile for this shared object first, before doing all that
work to compute section addresses, etc.

* objfiles.c (unlink_objfile): Report an internal error if objfile
doesn't occur in the object_files list.

* solib.c (special_symbol_handling): Delete argument; it's not
used.

* solib.c (SOLIB_EXTRACT_ADDRESS):  New macro to extract addresses
from solib structures. Use it throughout solib.c, get rid of all
CORE_ADDR casts.
(struct so_list):  Change type of lmaddr to CORE_ADDR.
(first_link_map_member):  Change return value type to CORE_ADDR,
update callers.
(solib_add_common_symbols):  Change parameter type to CORE_ADDR,
update callers.
(open_symbol_file_object, find_solib):  Change type of lm variable
to CORE_ADDR.
2000-03-15 16:55:07 +00:00
Eli Zaretskii afbae4e340 *** empty log message *** 2000-03-15 11:13:49 +00:00
Elena Zannoni 751a959bb8 2000-03-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* eval.c (evaluate_subexp_with_coercion): Add call to
 	check_typedef, to handle typedeffed vars correctly.

	* gdb.base/printcmds.c: Add typedeffed arrays.

	* gdb.base/printcmds.exp (test_print_typedef_arrays): New
 	procedure to test arrays that are typedef'd.
2000-03-14 17:01:05 +00:00
Andrew Cagney 1a0559af2c Almost, but not quite, deprecate STREQ, STREQN, STRCMP and QUIT. 2000-03-14 02:37:25 +00:00
Jim Ingham 73a93a3251 2000-03-13 James Ingham <jingham@leda.cygnus.com>
Add support for a variable object that tries to evaluate itself in
	the currently selected frame, rather than in a fixed frame.

	* wrapper.c,h (gdb_parse_exp_1): Added a wrapper for
 	gdb_parse_exp_1.
	* varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n
	of varobj_create.
	* varobj.c (varobj_list): Return type indicates whether the
	variable's type has changed (for current frame variables).
	(varobj_update): Handle the case where the variable's type has
	changed.
	(delete_variable_1): Allow for deletion of variables that have not
	been installed yet.
	(new_root_variable): Initialize use_selected_frame variable.
	(value_of_root): This is where most of the work to handle "current
	frame" variables was added.  Most of the complexity involves
	handling the case where the type of the variable has changed.
	(varobj_create): Add a "type" argument, to tell if the
	variable is one of these "current frame" variables.  Also protect
	call to parse_exp_1 from long jumping.

	* mi-var-block.exp: The error report from varobj_create changed
	since I am now trapping parse_exp_1 errors.  Change the tests to
	match the new error message.
	* mi-var-child.exp: Ditto.
	* mi-var-cmd.exp: Ditto.

	* lib/gdb.exp: Fix the gdbtk_start routine to correctly find all
	the library directories.

	* gdbtk-varobj.c (variable_create): Pass the correct
	"how_specified" flag to the varobj_create routine.
2000-03-13 21:51:46 +00:00
Eli Zaretskii 0fff5247b5 * go32-nat.c (struct env387): Remove declaration.
(print_387_status, i386_go32_float_info): Remove redundant
	functions.
	(regno_mapping, sig_map, excepn_map): Add braces around inner
	initializers.
	(many functions): Use ATTRIBUTE_UNUSED to shut up the compiler;
	fix code which mixed signed with unsigned.
	(go32_resume): Use TARGET_SIGNAL_LAST instead of -1.
	(go32_wait): Initialize INT3_addr.
	(go32_fetch_registers): Extend all FP registers that are shorter
	than 4 bytes to 32 bits.  Support 32 standard FP registers defined
	on config/i386/tm-i386.h.
	(store_register): Support 32 FP registers.
	(go32_create_inferior): Don't crash if handed a NULL pointer
	instead of exec file name.
	(ignore): Remove unused function.
	(go32_insert_hw_breakpoint): Remove unused variables.
	(init_go32_ops): Set value of processing_gcc_compilation to 2.
2000-03-13 15:59:02 +00:00
Andrew Cagney db577aea67 From Daniel Berlin:
Fix C++ overloading, add support for seeing through references.
2000-03-13 10:01:23 +00:00
Andrew Cagney 7b83ea04b2 Revert: ``Fix C++ overload support, see through references''.
Change also contained numerous white-space changes.
2000-03-13 07:30:00 +00:00
Mark Kettenis f75c77fc06 2000-03-11 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c: Fix the formatting where indent misinterpreted `&' as
	a binary operator.
	(gnu_attach): Change error message for missing
	argument to be identical to the corresponding message in
	`inftarg.c'.  This makes the testsuite happy.
2000-03-12 21:16:09 +00:00
Mark Kettenis fb5577443e 2000-03-11 Mark Kettenis <kettenis@gnu.org>
* i386gnu-nat.c (gnu_store_registers): Make sure the T bit in the
	%eflags isn't modified.  This fixes a bug where every call to a
	function in the program beyond the first call would fail.
2000-03-11 00:34:50 +00:00
Daniel Berlin 09b59ee380 Fix C++ overload support, see through references 2000-03-10 08:02:58 +00:00
Andrew Cagney 36c2118fc9 Devolve area maintaineship responsibilities. 2000-03-10 00:52:40 +00:00
Elena Zannoni a79dea61e7 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* minsyms.c (prim_record_minimal_symbol_and_info): Add comment.
2000-03-09 22:58:49 +00:00
Scott Bambrough f1a6b754ab 2000-02-25 Scott Bambrough <scottb@netwinder.org>
* gdb.base/long_long.exp: Correct test suite failure when printing
	a long long value as a double on ARM platforms.

ARM doubles use a hybrid endian format.  It is not strictly little or big
endian.  It is little endian with the words swapped.
2000-03-09 21:55:40 +00:00
Andrew Cagney 513d6ebaf7 Anthony Green is Java maintainer. 2000-03-09 03:32:09 +00:00
Mark Kettenis 4cc2418890 2000-03-08 Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_linux_saved_pc_after_call): New function.
	* config/i386/tm-linux.h (SAVED_PC_AFTER_CALL): Define to call
	i386_linux_saved_pc_after_call.
2000-03-08 22:34:19 +00:00
Jim Blandy 9227b5eb3d From Tom Tromey <tromey@cygnus.com> and Keith Seitz <?>:
* minsyms.c: #include <ctype.h>, for msymbol_hash_iw.
(compact_minimal_symbols): Added `objfile' argument.
Put symbols in the objfile's hash table.
(install_minimal_symbols): Put symbols in the objfile's demangled
hash table.
(lookup_minimal_symbol): Use hash table to find symbol in
objfile.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): New
functions.
(prim_record_minimal_symbol_and_info): Initialize the
hash link fields of the new minimal symbol.
* symtab.h (struct minimal_symbol): New fields `hash_next',
`demangled_hash_next'.
(msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): Declare.
* objfiles.h (MINIMAL_SYMBOL_HASH_SIZE): New define.
(struct objfile): New fields `msymbol_hash',
`msymbol_demangled_hash'.
2000-03-07 04:33:52 +00:00
Jim Blandy ef7904ee59 *** empty log message *** 2000-03-06 18:06:04 +00:00
Elena Zannoni 2f16bb3237 2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From  Eli Zaretskii  <eliz@is.elta.co.il>:

	* event-loop.c (poll_timers): Don't compare delta.tv_sec with
	zero, since time_t might be unsigned.
2000-03-06 17:07:03 +00:00
Mark Kettenis b948cda90b 2000-03-06 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c (supply_fpregset): Mask off the reserved bits
	in *FPREGSETP.
	(convert_to_fpregset): Don't touch the reserved bits in *FPREGSETP.
2000-03-06 16:08:12 +00:00
Mark Kettenis 9eaaac1650 Oops, forgot to save ChangeLog before commit. 2000-03-05 22:57:57 +00:00
Mark Kettenis 04cd15b61d 2000-01-29 Mark Kettenis <kettenis@gnu.org>
* i386-linux-nat.c: Use elf_gregset_t and elf_fpregset_t instead
	of gregset_t and fpregset_t.  Those are the only names that are
	guaranteed to specify the right types for all supported Linux
	systems out there.
	Various doc fixes and gratitious local variable renames, all in an
	attempt to stress similarities between the code and unify the
	terminology used.  Use ISO-C all over.
	(regmap): Remove trailing comma.
	(FPREG_ADDR): Renamed from FPREGSET_T_FPREG_ADDR.
	(convert_to_gregset): Make static.  Remove GDB_REGS argument.  It
	is unnecessary and wasn't used anyway.  All callers changed.
	(convert_to_fpregset, convert_to_xfpregset): Likewise.
	(fetch_regs, store_regs): Remove unused variable `regno'.
	(fill_fpregs): If REGNO is not -1, only update the specified
	register.
	(fetch_core_registers): Renamed from
	i386_linux_fetch_core_registers.  There is no need for a unique
	name since the function is static anyway.
	(linux_elf_core_fns): Renamed from i386_linux_nat_core_functions
	since it is more descriptive.
2000-03-05 16:39:11 +00:00
Andrew Cagney 9ec7faef59 Expand readline/ maintainers. 2000-03-05 08:46:56 +00:00
Mark Kettenis 45a816d93e 2000-03-04 Mark Kettenis <kettenis@gnu.org>
Fix support for Linux/i386 signal trampolines.  The old approach
	didn't work for Linux 2.2 and beyond, and didn't work with recent
	versions of the GNU C library.
	* i386-tdep.c (LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
	LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): New defines.
	(linux_rt_sigtramp_code): New variable.
	(LINUX_RT_SIGTRAMP_LEN): New define.
	(i386_linux_rt_sigtramp_start): New function.  Detect start of
	signal trampolines for RT signals.
	(i386_linux_sigtramp): Removed.
	(i386_linux_in_sigtramp): New function.
	(i386_linux_sigcontext_addr): New function.  Recognize the names
	of the signal tranmpolines used by recent versions of the GNU C
	library, and add support for RT signals.
        (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET):  New
	defines.  Moved here from config/i386/tm-linux.h.
	(i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
	Reimplement in terms of i386_linux_sigcontext_addr.
	* config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Removed.
        (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET):
        Moved to i386-tdep.c.
	(IN_SIGTRAMP): Redefine to call i386_linux_in_sigtramp.
2000-03-04 23:37:33 +00:00
Andrew Cagney 109213fcda Re-do checkin by Alexandre Oliva <oliva@lsd.ic.unicamp.br>. Pointed
out maintainer rules.
2000-03-04 08:40:22 +00:00
Alexandre Oliva b70bc471df * Makefile.in (all-gdbtk): Fix $srcdir to ${srcdir}. 2000-03-04 07:11:38 +00:00
Andrew Cagney 7158fd7f9b Transfer SIM maintainership to Frank. 2000-03-04 06:27:00 +00:00
Andrew Cagney e7411eaaec Add MichaelS and PeterS to all privs list. 2000-03-04 05:21:51 +00:00
Andrew Cagney 392746e563 Don't use LONG_LONG when it isn't available. 2000-03-04 05:11:19 +00:00
Andrew Cagney 7acb79c883 Comment out longest_raw_hex_string. 2000-03-04 04:56:46 +00:00
Andrew Cagney 082faf240e Make mmalloc functions consistent. Some need ISO-C others need PTR :-(. 2000-03-04 02:23:06 +00:00
Andrew Cagney e54a9244cd Oops, lost update to defs.h:null_cleanup(). 2000-03-04 01:15:32 +00:00
Andrew Cagney a9ac8f511f Convert extract/store functions to ISO-C. 2000-03-04 01:05:48 +00:00
Andrew Cagney e400552667 Convert make_cleanup functions to ISO-C. 2000-03-04 00:40:40 +00:00
Elena Zannoni 97bb9d91de 2000-03-03 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* defs.h (struct continuation_arg): Change type of field 'data'
 	from PTR to void *.

	* event-loop.h: Eliminate uses of PTR, use 'void *' instead.

	* event-top.c: Ditto.
2000-03-03 15:37:09 +00:00
Andrew Cagney b3a9033281 Move GDBtk's ``ln -s ... gdbtcl'' code out of configure.
Add CONFIG_CLEAN, CONFIG_ALL to configured targets.
Add all-gdbtk, clean-gdbtk.
2000-03-03 05:44:39 +00:00
Andrew Cagney 379d643457 Only configure GDBtk when it is present. 2000-03-03 02:50:24 +00:00
Elena Zannoni 7b64ac2f7a 2000-03-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/alpha/alpha-linux.mh: Remove core-regset.o fron the
        NATDEPFILES list.
2000-03-03 02:18:26 +00:00
Mark Kettenis 667620fa27 Attempt to fix AIX/i386 target. 2000-03-02 15:44:27 +00:00
Kevin Buettner 3db87ba3ca Fixes for extract_floating() and store_floating(). 2000-03-02 06:50:50 +00:00
Nicholas Duffek 6c7e601e3e * uw-thread.c: Apply GNU conventions to comment formatting.
(deactivate_uw_thread): Call remove_thread_event_breakpoints().
	(uw_thread_mourn_inferior): Move remove_thread_event_breakpoints()
	call to deactivate_uw_thread().
2000-03-02 06:05:03 +00:00
Andrew Cagney a09e9d093b Daniel Berlin is C++ maintainer. 2000-03-01 22:17:52 +00:00
Andrew Cagney ef7b44880e Mark Kettenis is the x86 architcture maintainer and a joint
GNU/Linux/x86 maintainer.  Nick Duffeck and Robert Lipe share
SCO/Unixware.  Nick Duffek and Peter Schauer share Solaris/x86.
2000-03-01 22:04:28 +00:00
Andrew Cagney 75660bc072 From Fernando: call generic_mourn_inferior() when closing rdi and sim
targets.
2000-03-01 11:25:51 +00:00
Andrew Cagney 15db4a06e0 Note that there is no need to send configure.in patches. 2000-03-01 08:33:47 +00:00
Mark Kettenis 80582566fd 2000-03-01 Mark Kettenis <kettenis@gnu.org>
* MAINTAINERS: Correct my own mail address.
2000-03-01 00:45:18 +00:00
Andrew Cagney dfe25b3ab9 Identify maintainers caught up in a paper trail. 2000-03-01 00:28:35 +00:00
Andrew Cagney 05e28a7bbf From Peter Schauer: Fix Solaris/x86 threads by copying linux code. 2000-02-29 13:53:59 +00:00
Andrew Cagney b241ba8eab From Peter Schauer: Define Solaris/x86 MERGEPID. 2000-02-29 13:38:55 +00:00
Andrew Cagney 1211c4e429 From J.T.: Convert i386 to updated frame_saved_regs. 2000-02-29 13:28:24 +00:00
Andrew Cagney 2fc18c15d2 From Peter Schauer - fix mmalloc bitrot. 2000-02-29 12:58:51 +00:00
Andrew Cagney 024094993c From Eli. Bring go32 target up-to-date with recent GDB i386 changes. 2000-02-29 08:16:40 +00:00
Andrew Cagney 9d271fd8b3 From Eli. Warning fixes. 2000-02-29 07:45:13 +00:00
Andrew Cagney 30f6df08a5 Include <ctype.h> for isupper(). 2000-02-29 07:23:02 +00:00
Andrew Cagney d082b2bb92 Add more checks for no stack frame. 2000-02-29 07:17:15 +00:00
Andrew Cagney 244106e863 Read 2 byte (16 bit addresses) when needed. 2000-02-29 05:10:04 +00:00
Christopher Faylor 33ee05bca2 Fix a typo. 2000-02-29 04:11:24 +00:00
Scott Bambrough 56624b0a88 2000-02-28 Scott Bambrough <scottb@netwinder.org>
* arm-linux-nat.c (fetch_nw_fpe_*):
 	Renamed to fetch_nwfpe_* to use the same naming convention
	as in the Linux kernel.  Modified prototype to get rid of
	unused parameters.
	(store_nw_fpe_*): Renamed to store_nwfpe_* to use the same
	naming convention as in the Linux kernel.  Fixed calls to
	fetch_nwfpe_*.
	(store_fpregs): Fixed calls to store_nwfpe_*.  Removed
	unused variable.
2000-02-28 20:17:16 +00:00
Andrew Cagney 388c17336a Transfer d30v to David Taylor. 2000-02-28 07:26:14 +00:00
Christopher Faylor f0d4243274 * win32-nat.c: Remove unneeded header.
* wince.c: Ditto.
2000-02-28 06:43:20 +00:00
Andrew Cagney c322964e5d Include "gdb_wait.h" instead of "wait.h". 2000-02-28 05:03:09 +00:00
Andrew Cagney 8860ff2e51 Add MAINTAINERS file to mmalloc directory - part of GDB and maintained
by GDB's Host maintainers.
2000-02-28 00:22:03 +00:00
Mark Kettenis 942fd805e4 2000-02-26 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c: Include "gdbthread.h".  Include <hurd.h>.
	Reorder headers a bit.  Overall cleanup and minor reformatting.
	(MIG_SERVER_DIED): Remove define.
	(proc_update_sc): Add braces to silence compiler warning.
	(proc_steal_exc_port): Initialize err to zero.
	(make_proc): Add braces to silence compiler warning.
	(inf_validate_task_sc): Add cast to silence compiler warning.
	(inf_set_traced): Reorganize a bit to silence compiler warning.
	(inf_validate_procs): Use mach_msg_type_number_t for all thread
	numbers and add braces to silence compiler warning.
	(gnu_wait): Add prototypes for server functions and add braces to
	silence compiler warnings.
	(S_exception_raise_request): Pass subcode to inf_debug call.
	(gnu_write_inferior): Remove unused variable `protection_changed'.
	(gnu_xfer_memory): Remove unused variable `result'.
	(set_sig_thread_cmd): Remove unused varible `tid'.
	(set_signals_cmd): Remve unused variable `trace'.
	(add_task_commands): Provide complete prototype.  Reformat help
	strings a bit to make sure the first line is a full sentence.
	Call info_port_rights_cmd instead of info_send_rights_cmd for the
	"info port-rights" command.
	(add_thread_commands): Provide complete prototype.  Make static.
	Reformat help strings a bit to make sure the first line is a full
	sentence.
	(_initialize_gnu_nat): Provide complete prototype.
2000-02-26 15:04:30 +00:00
Mark Kettenis 75c6e08a8a 2000-02-26 Mark Kettenis <kettenis@gnu.org>
Make cross-compilation for the Hurd more friendly.
	From Jeff Bailey <jbailey@gnu.org>:
	* configure.in: Use AC_CHECK_TOOL to find MiG.
	* Makefile.in (MIG): New variable.
	* config/i386/i386gnu.mh (MIG): Remove.
	* configure: Regenerated.
2000-02-26 13:46:56 +00:00
Kevin Buettner ddb20c56a3 Changes to skip_prologue for PPC architecture. 2000-02-26 09:30:30 +00:00
Andrew Cagney 2a20d0681e Jim Blandy has always been the trace stuff maintainer. Extend Chris
Faylor's reponsibilities to cover most Windows platforms.
2000-02-26 06:20:56 +00:00
Fernando Nasser 608d5915ac 2000-02-25 Fernando Nasser <fnasser@cygnus.com>
From: Thomas Zenker <thz@Lennartz-electronic.DE>
        * rdi-share/hsys.c: to compile under 4.4BSD derived systems (FreeBSD,
        NetBSD...) sys_errlist should not be declared in hsys.c.
        NEED_SYSERRLIST is set already by configure, so we can use it.
        * rdi-share/unixcomm.c: 4.4BSD derived systems define BSD, but are
        posix compliant and we should not work with the old compatibility
        stuff.  Because of that I undef BSD in case of FBSD etc and include
        sys/ioctl to get the flags.
        * rdi-share/unixcomm.c: If the TIOCEXCL flags exists set serial line
        for exclusive use.
2000-02-25 16:37:32 +00:00
Kevin Buettner 482ca3f5dc Shared library, function calling fixes for GNU/Linux PPC port. 2000-02-24 23:06:48 +00:00
Andrew Cagney a526d7137a Include "gdb_wait.h" instead of <wait.h>. 2000-02-24 08:55:15 +00:00
Andrew Cagney e56ac5c3a3 Only install GDBtk files when GDBtk is being built. 2000-02-24 08:16:26 +00:00
Andrew Cagney b0b1b869c7 * configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace. 2000-02-24 07:27:51 +00:00
Christopher Faylor 091be84d73 * configure.tgt: Add arm, mips, sh wince targets.
* config/arm/tm-wince.h: New file.
* config/arm/wince.mt New file.
* config/sh/tm-wince.h: New file.
* config/sh/wince.mt New file.
* config/mips/tm-wince.h: New file.
* config/mips/wince.mt New file.
* wince.c: New file.
* wince-stub.c: New file.
* wince-stub.h: New file.
* sh-tdep.c: Use correct register names for Windows CE.
2000-02-24 03:31:45 +00:00
Nicholas Duffek 99eeeb0ff7 * top.c (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Update comments.
(error_return, quit_return): Merge into catch_return pointer.
	(return_to_top_level): Update comment.  Longjmp to *catch_errors,
	and communicate reason to catch_errors via setjmp return value.
	(catch_errors): Always catch both quit and error, and if a catch
	wasn't requested by caller, throw it to the next catch_error.
	Replace dual longjmp buffer memcpy with single pointer change.
	Add FIXME for possibly adding new interface to tell caller what
	event was caught.  Add extensive comments.
	* defs.h (enum return_reason): Reserve 0 for use as initial
	setjmp() return value.
	(RETURN_MASK): New public macro to generate RETURN_MASK_* from
	enum return_reason.
	(RETURN_MASK_QUIT, RETURN_MASK_ERROR): Define using RETURN_MASK.
2000-02-24 00:04:03 +00:00
Fernando Nasser 242bfc55af 2000-02-23 Fernando Nasser <fnasser@cygnus.com>
* infcmd.c (run_stack_dummy): Do not pop frame on random signal.
        * valops.c (_initialize_valops): Add command "set unwindonsignal".
        (hand_function_call): Test for unwind_on_signal and act accordingly.
2000-02-23 15:53:33 +00:00
Andrew Cagney ff844c8dea Re-sync with ../include/dis-asm.h - LEN param changed to unsigned int. 2000-02-23 02:42:40 +00:00
Andrew Cagney fb40c20903 Add mi/ and testsuite/gdb.mi/ subdirectories.
Add --enable-gdbmi option to configury.
Add mi rules to Makefile.in
Add mi conditional output to event-top.c infrun.c main.c top.c.
Add -i=mi option.
2000-02-23 00:25:43 +00:00
Jim Blandy 14e0eb3bb9 *** empty log message *** 2000-02-22 19:22:37 +00:00
Kevin Buettner 50c9bd316d Cleanups and signal handler backtrace fix for GNU/Linux PPC port. 2000-02-22 18:47:41 +00:00
Kevin Buettner 8883511eb0 Changes for GNU/Linux PPC native gdb port. 2000-02-22 01:27:35 +00:00
Kevin Buettner 223b8554ec Changes for GNU/Linux PPC native gdb port. 2000-02-22 01:21:06 +00:00
Elena Zannoni 750334d754 2000-02-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Philippe De Muyter  <phdm@macqel.be>

	* event-loop.c (handle_file_event): In case of poll, enable
 	printing of informational message if an error/exception is
 	detected on the file descriptor.
2000-02-21 15:56:37 +00:00
Jim Kingdon 2403ff6fdb * MAINTAINERS (Misc): Clarify that yes, anyone can edit web pages. 2000-02-21 06:13:23 +00:00
Andrew Cagney 91b9ff2179 Include "expression.h" which "language.h" depends on. 2000-02-21 03:04:19 +00:00
Andrew Cagney f7cb3ef862 Include "language.h" for longest_local_hex_string_custom(). 2000-02-21 02:51:07 +00:00
Andrew Cagney 0596389cd2 Update gdbarch.sh so that it generates code including <gdb_wait.h>. 2000-02-21 00:21:51 +00:00
Andrew Cagney f5bca8e789 Add more maintainers. Expand the ARM related maintainers. 2000-02-21 00:15:55 +00:00
Andrew Cagney 538aae9db5 Add paragraph on multiple maintainers. 2000-02-20 23:52:58 +00:00
Fernando Nasser 55555bbca2 2000-02-19 Philippe De Muyter <phdm@macqel.be>
* cli-out.c (cli_table_header): Type of parameter `alignment' is
        `enum ui_align', not `int'.
        (cli_field_string, cli_field_skip): Likewise.
2000-02-20 18:23:31 +00:00
Jim Blandy dea753cd34 *** empty log message *** 2000-02-18 22:19:31 +00:00
Jim Blandy 9a90a84581 *** empty log message *** 2000-02-18 22:16:16 +00:00
Elena Zannoni cca728d0c9 2000-02-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* remote.c (remote_async_detach): Use target_mourn_inferior(), to
 	make sure that all is cleaned up after we disconnect from the
 	target.
	(remote_detach): Ditto.
2000-02-18 17:00:18 +00:00
Fernando Nasser 418156660d 2000-02-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
Add the patcher separator line between two same-day patches
	(emacs thinks that they are not necessary).
2000-02-17 20:11:15 +00:00
Fernando Nasser b8d86de35c 2000-02-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
From Rodney Brown  <RodneyBrown@pmsc.com>
	* ui-out.c (ui_out_set_flags): Fix typo, removing warning and
	potentially harming mistake.
2000-02-17 20:08:48 +00:00
Fernando Nasser e8b09175c1 2000-02-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
* arm-tdep.c: Use header file instead of extern declarations for
	the {get,set}_arm_regname* functions.
2000-02-17 19:51:04 +00:00
Fernando Nasser d45b9300fc 2000-02-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
* configure.in: Replaces obsolete gdbtk-variable.c with
	gdbtk-varobj.c.
	* configure: Regenerate.
	* Makefile.in: Remove obsolete/extraneous references to
	gdbtk-var* files.
2000-02-16 23:35:19 +00:00
Mark Kettenis e95a43adc3 2000-02-16 Mark Kettenis <kettenis@gnu.org>
* target.c (do_target_signal_to_host): Do not use REALTIME_LO in
	the conversion of the signal number.  TARGET_SIGNAL_REALTIME_33 is
	33 by definition, whereas REALTIME_LO might be 32 on systems that
	have SIG32 such as Linux.  Make sure that the signal number
	returned is within the range specified by REALTIME_LO and
	REALTIME_HI.
2000-02-16 22:26:12 +00:00
Mark Kettenis 7433da2265 2000-02-16 Mark Kettenis <kettenis@gnu.org>
* configure: Regenerated.
2000-02-16 22:21:18 +00:00
Fernando Nasser bc90b915f7 2000-02-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
* arm-tdep.c (set_disassembly_flavor, arm_othernames,
	_initialize_arm_tdep): Allows the user to choose between any of
	the flavors available for the disassembly to be used in the "info
	reg" command and elsewhere in gdb.  It prevents having to maintain
	this information in two places by using the data kept in the
	opcodes directory.
2000-02-16 20:17:50 +00:00
Mark Kettenis 83d37ec863 2000-02-09 Mark Kettenis <kettenis@gnu.org>
* configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
	prfpregset_t in <sys/procfs.h>.
	* config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
	HAVE_PRFPREGSET_T.
	* gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
	prgregset_t and prfpregset_t if they are not already present.
2000-02-16 13:45:24 +00:00
Andrew Cagney eeefac92e7 From Rodney Brown: Define MERGEPID when needed. 2000-02-16 08:02:57 +00:00
Jason Molenda 1a645206d4 2000-02-15 Jason Molenda (jsm@bugshack.cygnus.com)
* Makefile.in (diststuff): Run 'diststuff' in doc/ subdir, not
        'do-doc'.
2000-02-16 04:45:41 +00:00
Kevin Buettner f6077098c9 AIX 4.3 changes. 2000-02-15 21:17:04 +00:00
Jim Kingdon 70d5406d75 * elfread.c (elf_symtab_read): Revert changes by Amit S. Kale. A
sym->section->index number is not a SECT_OFF_* code.
2000-02-15 04:48:23 +00:00
Andrew Cagney 168770df11 Add H.J. Lu to check-in after approval list. 2000-02-15 01:23:15 +00:00
Jim Kingdon e18ef0bde6 Add ChangeLog entry which had been omitted in checkin of Mark Kettenis
changes last week.
2000-02-14 19:17:52 +00:00
Nick Clifton 031d1bf1b8 Remove extraneous code. 2000-02-14 18:43:48 +00:00
Jim Kingdon 2bc8a45718 2000-02-14 Amit S. Kale <akale@veritas.com>
* elfread.c (elf_symtab_read): Move the use of sym to after where
	it is set.
	Checked in by Jim Kingdon  <kingdon@redhat.com>
2000-02-14 15:27:28 +00:00
Andrew Cagney 0c566c2e6c Nick Duffek is the UnixWare threads maintainer. 2000-02-14 04:42:15 +00:00
Andrew Cagney 3ca72b44a8 From Jason Merrill: (die_is_declaration): New fn.. 2000-02-14 04:37:06 +00:00
Jim Kingdon 4d9ab7f6c1 Correct missing ChangeLog entry. 2000-02-13 01:19:33 +00:00
Jim Kingdon d6e9fb0513 2000-02-10 J.T. Conklin <jtc@redback.com>
* config/i386/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o
	* configure.tgt (i[3456]86-*-netbsd*): add gdbserver to
 	configdirs.
	* gdbserver/low-nbsd.c: New file.

	* gdbserver/Makefile.in: convert to autoconf.
	* gdbserver/configure.in: likewise.
	* gdbserver/configure: generate.
2000-02-13 01:06:58 +00:00
Andrew Cagney 41c8e0096b Explain how to contribute to GDB. 2000-02-13 00:22:01 +00:00
Andrew Cagney 15929d056e Maintenance - update djgpp, powerpc maintainers. Add some check-in
after approval maintainers.
2000-02-12 23:55:14 +00:00
Andrew Cagney 5185fdd7b6 Reformat only. 2000-02-12 23:19:53 +00:00
Nicholas Duffek f086451a32 * uw-thread.c: Remove __FUNCTION__ GNUism. 2000-02-12 06:08:10 +00:00
Jason Molenda 6d05b4a653 2000-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
* ChangeLog:  Tiny whitespace removal to test modification to
	logger scripts.
2000-02-12 04:28:52 +00:00
Jim Kingdon fa292f2358 2000-01-17 Amit S. Kale <akale@veritas.com>
* elfread.c (elf_symtab_read): Use offset for the section in which a
	symbol resides, instead of .text section for calculating address of a
	symbol.
	Checked in by Jim Kingdon  <kingdon@redhat.com>
2000-02-11 19:37:06 +00:00
Jim Kingdon f90b2b1da8 2000-02-09 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c (proc_string): Make global.
	(do_mach_notify_dead_name): Suppress dead name notifications if we
	know that the task is dead.

1999-12-13  Mark Kettenis  <kettenis@gnu.org>

	* gnu-nat.c (inf_validate_task_sc): Get task info via proc server
	instead of directly from the kernel.  Add some hackery to make
	sure that the info isn't influenced by suspension of the task in
	the proc server itself.
2000-02-11 06:34:58 +00:00
Jim Kingdon 09f99d3f44 * defs.h (MERGEPID): Added. Patch submitted by Andrew Hobson and
approved by Michael Snyder.
2000-02-10 20:06:32 +00:00
Andrew Cagney 203051afde From Mark Kettenis: Re-order #includes. defs.h is always first. 2000-02-10 04:53:26 +00:00
Andrew Cagney 145679a837 Update nindy files - #include "gdb_wait.h" instead of "wait.h". 2000-02-09 09:04:27 +00:00