Commit Graph

8167 Commits

Author SHA1 Message Date
Philippe De Muyter
89c3b6d36d * m68k-tdep.c (P_LINKL_FP, P_LINKW_FP): Macros renamed from P_LINK_L
and P_LINK_W.
	(P_PEA_FP, P_MOVL_SP_FP): New macros.
	(P_MOVL, P_LEAL, P_MOVML): Macros renamed from P_MOV_L, P_LEA_L and
	P_MOVM_L.
	(altos_skip_prologue, isi_skip_prologue): Use P_* macros, not octal
 	constants.
	(delta68_in_sigtramp): New function.
	(delta68_frame_args_address, delta68_frame_saved_pc): Ditto.
	(m68k_skip_prologue): Use P_* macros, not hex constants.
	(m68k_find_saved_regs): Do not expect a fixed sequence of register save
	instructions, but accept them in any order; use P_* macros, not octal
	or hex constants; recognize also `fmovemx to (fp + displacement)' and
 	`moveml to (fp + displacement)'.
	* m68/tm-delta68.h (IN_SIGTRAMP): New macro.
	(FRAME_SAVED_PC, FRAME_ARGS_ADDRESS): Ditto.
2000-03-24 11:12:11 +00:00
Andrew Cagney
b9deaee7a0 Fix texinfo-3.12 problems:
* annotate.texi (Annotations): When GDBN omit @chapter and @node entry.
* gdb.texinfo: Check for @ifinfo instead of @ifnottex.
(rluser.texinfo, inc-hist.texinfo, annotate.texi): Add local @chapter
and @node entries.
* gdb.texinfo: Link all top-level nodes.
* inc-hist.texinfo: When GDBN omit the chapter/node.
* rluser.texinfo (Command Line Editing): Ditto.
2000-03-24 07:30:07 +00:00
Andrew Cagney
9ef47d30e8 Create $(infodir) before trying to install info files. 2000-03-24 07:27:24 +00:00
Andrew Cagney
b83f362712 Add Fernando to testsuite maintainers. 2000-03-24 02:48:20 +00:00
Daniel Berlin
74cc24b096 FIx regression 2000-03-24 01:51:13 +00:00
Michael Snyder
bba2971c52 2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.texinfo: Add new queries ThreadInfo and ThreadExtraInfo.
2000-03-24 00:05:38 +00:00
Fernando Nasser
cfeada605e 2000-03-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
From David Whedon <dwhedon@gordian.com>
        * gdbint.texinfo : Added paragraphs about command deprecation.
2000-03-23 23:50:51 +00:00
Fernando Nasser
003ba2901f 2000-03-23 Fernando Nasser <fnasser@totem.to.cygnus.com>
From David Whedon <dwhedon@gordian.com>
        * gdb.base/commands.exp : Added command deprecator tests.
2000-03-23 23:48:28 +00:00
Fernando Nasser
5638284566 2000-03-23 Fernando Nasser <fnasser@cygnus.com>
From David Whedon <dwhedon@gordian.com>

	* top.c (execute_command): Checks all commands beore executing
	to see if the user needs to be warned that the command is
	deprecated, warns user if appropriate.
	(add_info), (add_info_alias), (add_com) , (add_com_alias): Changed
	return values from void to struct cmd_list_element *.
	* command.c (lookup_cmd_1): Check aliases before following link
	in case user needs to be warned about a deprecated alias.
	(deprecate_cmd): new exported function for command deprecation,
	sets flags and posibly a replacement string.
	(deprecated_cmd_warning): New exported funciton to warn user about
	a deprecated command.
	(lookup_cmd_composition): New exported function that determines
	alias, prefix_command, and cmd based on a string.  This is useful
	is we want to full name of a command.
	* command.h : Added prototypes for deprecate_cmd,
	deprecated_warn_user and lookup_cmd_composition, added flags to
	the cmd_list_element structure, changed return values for
	add_com_* and add_info_* from void to cmd_list_element.
	* maint.c : (maintenance_deprecate): New function to deprecate a
	command.  This exists only so that the testsuite can deprecate
	commands at runtime and check the warning behavior.
	(maintenance_undeprecate) : New function, drops deprecated flags.
	(maintenance_do_deprecate): Actually does the (un)deprecation.
	(initialize_maint_cmds): Added the above new deprecate commands.
2000-03-23 23:43:19 +00:00
Daniel Berlin
6837a0a2a9 Added the apropos command 2000-03-23 23:21:27 +00:00
Michael Snyder
0f4db1a159 2000-03-23 Michael Snyder <msnyder@cleaver.cygnus.com>
* sol-thread.c (ps_pglobal_lookup): Change argument type from
        paddr_t to psaddr_t.  This mistake appears to date from an
        erroneous man page in Solaris 2.5 -- the correct type from the
        system headers has always been psaddr_t.
        (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): ditto.
        (rw_common): ditto.
2000-03-23 21:44:50 +00:00
Kevin Buettner
64a5b29c66 HFA, function descriptor handling for IA-64. 2000-03-23 04:27:26 +00:00
Elena Zannoni
7e5cd2dee0 2000-03-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* event-loop.c (handle_file_event): Run through indent.
2000-03-23 03:48:13 +00:00
Elena Zannoni
44f4577063 2000-03-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From  Philippe De Muyter  <phdm@macqel.be>

	* event-loop.c (sys/types.h): File now included unconditionally.
	(use_poll): New variable..
	(gdb_notifier): poll- and select-versions merged.
	(add_file_handler): If HAVE_POLL, check whether poll is usable,
	and reset `use_poll' if not.
	(create_file_handler): Select poll- or select-version according to
	`use_poll'.
	(delete_file_handler, handle_file_event): Likewise.
	(gdb_wait_for_event, poll_timers): Likewise.
2000-03-23 03:45:13 +00:00
Peter Schauer
593de6a6a5 * printcmd.c (print_scalar_formatted): Truncate addresses to the
size of a target pointer before passing them to print_address.
2000-03-22 20:55:15 +00:00
Mark Kettenis
1a309862a7 2000-03-22 Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-i386aix.h (I386_AIX_TARGET): Remove.
	* config/i386/tm-linux.h (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM):
	Remove
	* i386-tdep.c (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): New defines.
	(i386_extract_return_value): Rewritten.  Correctly support all
	floating-point types and large integer types on targets that use
	the standard i386 GDB register layout and return floating-point
	values in the FPU.
2000-03-22 09:45:01 +00:00
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
b959323104 Test suite change for AIX 4.3. 2000-03-21 23:01:49 +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
Jim Blandy
058f20d52a * gdbarch.sh: Emit a definition and declaration for gdbarch_free,
a companion to gdbarch_alloc, which allows a gdbarch init function
to free partially-built gdbarch structures.
* gdbarch.c, gdbarch.h: Regenerated.
2000-03-21 20:40:43 +00:00
Kevin Buettner
f2ae78293c It turns out that 1.2 wasn't botched after all. (I was failing to take
into account all of the imports that had been done.)
2000-03-21 06:18:23 +00:00
Kevin Buettner
9505582ca3 Fixed botched commit in 1.2. 2000-03-21 05:43:30 +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
Michael Snyder
2b628194f8 2000-03-20 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.texinfo: Add white space to prevent overprinting in
        two places.
2000-03-20 22:51:36 +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
Eli Zaretskii
feba2e881d * ser-go32.c (ports): Make the initializers complete, to pacify
GCC 2.9X.
2000-03-19 11:24:41 +00:00
Jim Blandy
9f81f4aa6f *** empty log message *** 2000-03-18 01:57:42 +00:00
Jim Blandy
6d5a5207c5 * gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
to W_STOPCODE.
2000-03-18 01:57:00 +00:00
Jim Blandy
67aaefa2df * linux-thread.c (linuxthreads_attach, linuxthreads_detach,
linuxthreads_create_inferior): Fix typo in variable name: it's
linuxthreads_exit_status, not linux_exit_status.
2000-03-18 01:56:31 +00:00
Stan Shebs
96a2c33212 * gdb.texinfo: Many minor changes from Dmitry Sivachenko
<dima@Chg.RU>, also clarification of allowed content for
	string constants.
2000-03-18 00:40:12 +00:00
Jim Blandy
1cc26dd06a *** empty log message *** 2000-03-17 20:12:51 +00:00
Jim Blandy
c2d3b4ed35 * solib.c (solib_add): Delete debugging code. 2000-03-17 20:12:23 +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