Commit Graph

9054 Commits

Author SHA1 Message Date
Nicholas Duffek 7302a204c4 * regcache.c (set_register_cached, register_buffer,
real_register, pseudo_register fetch_register, store_register):
	New functions.
	(register_changed, read_relative_register_raw_bytes_for_frame,
	registers_changed, registers_fetched, read_register_bytes,
	read_register_gen, write_register_gen, read_register,
	read_signed_register, write_register, supply_register): Replace
	register_valid[] with register_cached() and
	set_register_cached().
	(read_register_bytes, read_register_gen, write_register_gen,
	read_register, read_signed_register, write_register,
	supply_register): Replace registers[] with register_buffer().
	(read_register_bytes, read_register_gen, read_register,
	read_signed_register): Call fetch_register().
	(write_register_gen, write_register): Call real_register() and
	store_register().
	(write_register_bytes): Call store_register().
	* value.h (set_register_cached, register_buffer): Prototype.
	* remote.c (remote_fetch_registers): Allocate regs[] with a
	run-time size.  Replace register_valid[] with
	set_register_cached().
	(store_register_using_P, remote_store_registers): Replace
	registers[] with register_buffer().
2001-01-09 00:12:48 +00:00
Nicholas Duffek 5ebd2499d3 * regcache.c: Change "write-back" comment to "write-through".
Change "regno" to "regnum".
	(read_register, read_signed_register): Remove "raw" from return
	value description.
	(supply_register): Spelling fix.
	* value.h: Change "regno" to "regnum".
2001-01-09 00:11:28 +00:00
Fernando Nasser 1302fd5e2b 2001-01-08 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (install-gdbtk): Add .itcl files to the list of files
	to be installed.
2001-01-08 12:47:49 +00:00
Michael Snyder 9dcb560c82 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
2001-01-04 23:22:45 +00:00
Nicholas Duffek 0e2fb98e8d * valops.c (VALUE_SUBSTRING_START): Delete. 2001-01-04 19:58:32 +00:00
Nicholas Duffek 12cf3f1bf8 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
(SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
	(cli_utils_h): New variable.
	(cli/cli-utils.o): New rule.
	* cli/cli-utils.c: New file.
	* cli/cli-utils.h: New file.
2001-01-04 15:50:48 +00:00
Nicholas Duffek cc533b9d85 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
2001-01-04 15:46:22 +00:00
Nicholas Duffek 1c6147de4c * gdbint.texinfo (POP_FRAME): Document use by return_command. 2001-01-04 15:39:28 +00:00
J.T. Conklin ad2a4d0953 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in comment. 2001-01-03 21:12:18 +00:00
Michael Snyder d19b71becf 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
* sh-tdep.c (sh_extract_return_value):  Allow for small return type.
        (sh_sh4_extract_return_value): Call sh_extract_return_value for
2001-01-02 23:51:35 +00:00
Michael Snyder 3cac1297fb Remove prototypes for obsolete static functions. 2001-01-02 20:49:18 +00:00
Michael Snyder 72e22353b1 * sparc-tdep.c: update copyright notice. 2001-01-02 20:37:11 +00:00
Michael Snyder 779e876b68 Oops, fix typo in previous check-in. 2001-01-02 20:34:50 +00:00
Michael Snyder 8140e7acd1 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
* sparc-tdep.c (sparc-frame-chain): Fix typo in comment.
2001-01-02 20:32:50 +00:00
Michael Snyder c347ee3e51 2000-12-20 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* arch-utils.c (default_frame_address): New function.  Default
        implementation of frame_args_address and frame_locals_address.
        * arch-utils.h (default_frame_address): Export.
        * d10v-tdep.c (d10v_gdbarch_init): Use default_frame_address.
        (d10v_frame_args_address, d10v_frame_locals_address): Delete.
        * sh-tdep.c (sh_gdbarch_init): Use default_frame_address.
        (sh_frame_args_address, sh_frame_locals_address): Delete.
        * sparc-tdep.c (sparc_gdbarch_init): Use default_frame_address.
        (sparc_frame_address): Delete.
2001-01-02 20:21:53 +00:00
Mark Kettenis bda9cb723c Fix debugging programs statically linked against the thread library.
* thread-db.c: Various comment fixes and additions.
Include "bfd.h", "symfile.h" and "objfiles.h".
(keep_thread_db): New variable.
(find_new_threads_callback): Remove prototype.
(thread_db_find_new_threads): New prototype.
(thread_db_push_target, thread_db_unpush_target): Remove
functions.
(deactivate_target): New function.
(thread_db_new_objfile): If OBJFILE == NULL, force deactivation of
target vector.  Activate target vector directly instead of calling
thread_db_push_target.  Set keep_thread_db if thread library is
detected in the main symbol file.  Only enable thread event
reporting if there actually is a child process.  Likewise for
detecting new threads, done by calling thread_db_find_new_threads
instead of iterating over the threads ourselves.
(thread_db_detach): Call deactivate_target instead of
thread_db_unpush_target.
(thread_db_wait): Bail out early if we're not debugging the
multi-threaded child process yet.
(thread_db_post_startup_inferior): New function.
(thread_db_mourn_inferior): Call deactivate_target instead of
thread_db_unpush_target.
(init_thread_db_ops): Add thread_db_post_startup_inferior to
thread_db_ops.
2000-12-27 21:37:57 +00:00
Orjan Friberg 09295b5730 Added Orjan Friberg to Write After Approval list. 2000-12-27 11:14:12 +00:00
Eli Zaretskii b157b00f4a GDB version and refcard copyright fixed. 2000-12-25 09:10:46 +00:00
Mark Kettenis b21f0843bf * solib.c (solib_open): If path is relative, look for it
literally.  This matches the behaviour of the GNU dynamic linker
more closely.
2000-12-23 00:27:20 +00:00
Fernando Nasser bec71058e4 2000-12-22 Fernando Nasser <fnasser@redhat.com>
* README: Suggest building in an empty directory.
2000-12-22 15:03:10 +00:00
Michael Snyder 315f8b0e91 2000-12-21 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
        Add a RE to accept a non-ascii char if one is ever presented.
2000-12-22 01:49:46 +00:00
Mark Kettenis ef9dff19c4 * i386-tdep.c: Add missing ')' in comment.
(i386_extract_return_value): Return directly after issuing the
warning and filling *VALBUF with zeroes if we cannot get at the
floating-point registers.
(i386_store_return_value): New function.
* config/i386/tm-i386.h (STORE_RETURN_VALUE): Simply call
i386_store_return_value.
Add prototype for i386_store_return_value.
2000-12-21 20:52:59 +00:00
Mark Kettenis 2866d30574 * i386-linux-nat.c (store_fpxregs): Add code to detect support for
the PTRACE_GETFPXREGS request, and return zero if it's not.
2000-12-21 20:18:45 +00:00
Fernando Nasser dafc8383e8 2000-12-21 Fernando Nasser <fnasser@redhat.com>
* TODO: Add pre-uiout code removal to 5.2 cleanups.
2000-12-21 16:28:28 +00:00
Fernando Nasser 66b965bb75 2000-12-20 Fernando Nasser <fnasser@redhat.com>
* configure.in: Rename CONFIG_LOBS to CONFIG_LIB_OBS.
        * Makefile.in: Ditto.
        * configure: Regenerate.
2000-12-21 16:16:17 +00:00
Fernando Nasser a35736189e 2000-12-20 Fernando Nasser <fnasser@redhat.com>
* command.h: Register date when it was deprecated.
        * call-cmds.h: Ditto.
2000-12-21 16:08:52 +00:00
Fernando Nasser 297dd0fd54 Fix typo on last entry. 2000-12-20 21:26:14 +00:00
Fernando Nasser b4df4f6849 2000-12-20 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code
        to be compiled.  Defines UI_OUT.
        (SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT.
        (INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS.
        * configure.in (UIOUT_CFLAGS): New configuration variable.
        (--with-uiout): New configuration option.  Causes uiout code to
        be compiled, instead of the old *printf one.
        * configure: Regenerate.
        * top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT.
        * testsuite/lib/mi-support.exp (mi_gdb_start): Test for MI_OUT,
        not UI_OUT.
2000-12-20 21:24:28 +00:00
Fernando Nasser 22d1504010 2000-12-20 Fernando Nasser <fnasser@redhat.com>
* complaints.c (complain): Call warning_hook if defined, instead of
        writting to gdb_stderr.
        (clear_complaints): Do not write anything to gdb_stderr if warning_hook
        is defined.
2000-12-20 17:32:17 +00:00
Michael Snyder 49c890fc5e 2000-12-18 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/setvar.exp: Use double '\\' to quote curly braces
        in regexp.  One '\' does not suffice on Linux.
2000-12-20 16:29:27 +00:00
Elena Zannoni e30839fee3 2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_print_register): Don't leave regnum 0 out of the
       non-pseudo-regs group.
2000-12-19 23:20:45 +00:00
Elena Zannoni eaf90c5d1f 2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_gdbarch_init): Move setting of breakpoint_from_pc
	to before switch statement.
2000-12-19 15:41:07 +00:00
Elena Zannoni c5f7d19c5a 2000-12-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_gdbarch_init): Initialize do_registers_info.

        * config/sh/tm-sh.h (DO_REGISTERS_INFO): Remove macro. Use
        multiarch version instead.
2000-12-18 04:36:35 +00:00
Elena Zannoni d55e473712 Fix date of last commit. 2000-12-18 04:18:18 +00:00
Elena Zannoni c6c1f1914d 2000-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/sh/tm-sh.h: Don't remove SR_REGNUM from enum.
2000-12-18 04:15:18 +00:00
Andrew Cagney 780a49fab4 * i386gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
(gnu_store_registers): Replace assert with gdb_assert.
2000-12-17 00:35:58 +00:00
Elena Zannoni c62a7c7ba7 2000-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
 	sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): SR_REGNUM is
 	now part of gdbarch_tdep structure.
	(sh_gdbarch_init): Initialize SR_REGNUM.

	* config/sh/tm-sh.h (struct gdbarch_tdep): Add field SR_REGNUM.
2000-12-15 21:44:35 +00:00
Elena Zannoni c898ebff4c whoops, remove conflict indicators! 2000-12-15 20:56:42 +00:00
Elena Zannoni a38d2a54be 2000-12-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_do_pseudo_register): Indent properly. Call
 	do_dr_register_info() only for DR registers.
	(sh_sh4_register_name): Add comments with numbers.
	(_initialize_sh_tdep): Move assignment to disassemble printing
 	function from here...
	(sh_gdbarch_init):...to here. Move some more general settings to
 	before the architecture is recognized.
2000-12-15 20:54:24 +00:00
Andrew Cagney 2649061d59 Multi-arch REGISTER_BYTES_OK. 2000-12-15 12:33:08 +00:00
Andrew Cagney 12859c09a6 vasprintf() -> xvasprintf() 2000-12-15 12:04:03 +00:00
Kevin Buettner e7b044d683 Removed (tui and mi) directory prefixes from ChangeLog comments that I
added in last commit.
2000-12-15 03:00:38 +00:00
Kevin Buettner 46c6187fb5 Put mi and tui comments for free -> xfree change in proper ChangeLogs. 2000-12-15 02:56:42 +00:00
Kevin Buettner 1f72e58919 Applied solib-svr4.c changes for NetBSD from Matthew Green. 2000-12-15 02:04:59 +00:00
Kevin Buettner e87d965b56 free -> xfree changes 2000-12-15 01:57:51 +00:00
Kevin Buettner b8c9b27d1e Replace free() with xfree(). 2000-12-15 01:01:51 +00:00
J.T. Conklin 6477a14af7 * configure.tgt (hppa*-*-bsd*, hppa*-*-osf*, m68*-*-sunos4*,
rs6000-*-lynxos*, sparc-*-sunos4*): Add gdbserver to configdirs.
2000-12-14 20:15:45 +00:00
David O'Brien e87b0c0b21 Add myself as a "FreeBSD native & host" maintainer.
Approved by:  Andrew Cagney <ac131313@cygnus.com>
              Message-ID: <3A383037.96AB4C62@cygnus.com>
2000-12-14 16:50:20 +00:00
Michael Chastain b031d0f2ce 2000-12-13 Michael Chastain <chastain@redhat.com>
* MAINTAINERS: Add Michael Chastain to Write After Approval list.
2000-12-14 06:17:05 +00:00
Michael Chastain 990e9371f0 Added Michael Chastain with Write After Approval access. 2000-12-14 06:14:57 +00:00