Commit Graph

9419 Commits

Author SHA1 Message Date
Michael Chastain 15744ab16c Obvious fix: in an entry for 1997-02-23, expand wildcard to explicit
list of files actually modified.
2001-03-04 20:26:44 +00:00
Michael Chastain f20b8a29a5 Obvious fix: in entries for 1998-02-10 and 1998-02-06,
change "m68k/tm-delta68.h" to "config/m68k/tm-delta68.h".
2001-03-04 18:52:48 +00:00
Michael Chastain c4e4e46645 Obvious fix: in an entry for 1997-02-11, change "m32r/tm-m32r.h" to
"config/m32r/tm-m32r.h".
2001-03-04 18:44:42 +00:00
Kevin Buettner 3cad1ac9a2 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
as an lvalue.
2001-03-03 08:31:20 +00:00
Kevin Buettner d112a051b5 Don't use ANOFFSET as an lvalue. 2001-03-03 08:24:05 +00:00
Andrew Cagney 130c39e6f1 * MAINTAINERS (paper trail): Update. 2001-03-03 03:34:27 +00:00
Andrew Cagney b9fa2e73d9 Change convention to ``Fix PR gdb/NNNN'' 2001-03-03 03:23:50 +00:00
Andrew Cagney c53efe6e57 From 2001-03-01 Tom Rix <trix@redhat.com>:
* mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
parameter to mn10200_analyze_prologue.
* config/mn10200/tm-mn10200.h: Include "regcache.h".
* MAINTAINERS: Document that mn10200-elf target is buildable.
2001-03-03 01:38:49 +00:00
Kevin Buettner 52b5c2eb6c Move GDB_GREGSET_T, GDB_FPREGSET_T defines from config/ia64/xm-aix.h
to config/ia64/nm-aix.h.
2001-03-03 00:08:27 +00:00
Matthew Hiller 2edb46b1ea 2001-03-02 Matt Hiller <hiller@redhat.com>
* config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
2001-03-02 22:41:05 +00:00
Kevin Buettner 82a2886fa2 Revise earlier comment regarding sparc-nat.c to be more meaningful. 2001-03-02 20:04:21 +00:00
Kevin Buettner 92c71a3eb7 Fix typo in which sparc-nat.c was changed to include itself. 2001-03-02 17:01:48 +00:00
J.T. Conklin 3a644c8da1 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
if __CYGWIN32__ is set from here.
* config/i386/xm-cygwin.h: To here.
* config/powerpc/xm-cygwin.h: To here.
2001-03-02 02:54:10 +00:00
J.T. Conklin e2a4c6c1d8 * i386-stub.c (handle_exception): Use 'T' response packet. 2001-03-01 22:45:42 +00:00
Michael Snyder dc96c6c7af [fix my email address in changelog entries] 2001-03-01 22:18:45 +00:00
Michael Snyder 4b33390acd 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* m32r-tdep.c: Fix cut and paste error in comment.
2001-03-01 22:10:04 +00:00
J.T. Conklin ba41d5499a * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
(MAX_OF_TYPE): Wrap macro definition in parenthesis.
(MIN_OF_TYPE): Likewise.

* memattr.h (mem_access_mode): Removed extraneous trailing comma.
2001-03-01 21:56:35 +00:00
Andrew Cagney 088d891f58 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
* os9kread.c (os9k_process_one_symbol): Add assert to detect
``loses if sizeof (char *) > sizeof (int)''.
2001-03-01 18:19:28 +00:00
Andrew Cagney 3826677692 Document pragmatics of why gdb_assert() is lowercase. 2001-03-01 17:30:05 +00:00
Andrew Cagney 2ad43c4f09 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
lists.
(mi-main.o): Ditto.
2001-03-01 16:13:18 +00:00
Andrew Cagney 367e21d8a0 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
dependency lists.
2001-03-01 15:49:13 +00:00
Michael Snyder c0d8fd9a10 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* printcmd.c (print_address_numeric): Update comments to refer
	to sizeof addr, not sizeof pointer.
	(x_command): Remove needless whitespace (shorten long line).
2001-03-01 03:56:45 +00:00
Michael Snyder d85310f71a 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* breakpoint.c (print_one_breakpoint): Formatting clean-up.
	(read_memory_nobpt): Ditto.
	(ep_is_catchpoint): Ditto.
	(ep_is_shlib_catchpoint): Ditto.
	(ep_is_exception_catchpoint): Ditto.
	(describe_other_breakpoints): Ditto.
2001-03-01 03:50:17 +00:00
Andrew Cagney 97900206ca * regcache.h (register_valid): Fix comment documenting valid
states.
2001-03-01 01:51:54 +00:00
Andrew Cagney 4e052eda91 Create new file regcache.h. Update all uses. 2001-03-01 01:39:22 +00:00
Michael Chastain 0cff82d9a9 Fix the year on the following lines:
! 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
  ! 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
  ! 2001-02-10  Peter Schauer  <pes@regent.e-technik.tu-muenchen.de>
  ! 2001-01-27  Christopher Faylor  <cgf@cygnus.com>
2001-03-01 00:39:56 +00:00
Matthew Hiller 07d48ebccc 2001-02-28 Matt Hiller <hiller@redhat.com>
* MAINTAINERS: Add Matt Hiller to Write After Approval list.
2001-02-28 21:51:25 +00:00
Michael Snyder d8f92b1f63 2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/varargs.c (find_max_double): Fix printf format string:
	first arg is int not float.
2001-02-28 01:54:47 +00:00
David Taylor 3078eca931 remove conflict indicator. 2001-02-27 21:58:33 +00:00
David Taylor 993f3aa5bc fix off by one error in test for error. 2001-02-27 21:57:09 +00:00
Andrew Cagney 86168def62 * config/sparc/sp64linux.mt: New file.
* configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
* configure.host: Recognize sparc64-*-linux* as a linux host.
From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
* config/sparc/tm-sp64linux.h: New file.
2001-02-27 17:04:47 +00:00
Kevin Buettner e1e9e218c1 Replace calls to abort() with calls to internal_error(). 2001-02-25 04:45:12 +00:00
Andrew Cagney 2126d5fbda Mention how to cite GDB problem reports. 2001-02-23 22:20:38 +00:00
Andrew Cagney 17fceda3ae Mention gdbarch.sh and to not submit gdbarch.[ch]. 2001-02-23 22:09:30 +00:00
Michael Snyder 40f33b9b8e 2001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/reread.exp: Unsupported for non-native targets;
	doesn't work for remote debugging.
2001-02-23 19:04:40 +00:00
Andrew Cagney 60edd51d05 Move get_saved_register to frame.h. 2001-02-22 16:48:19 +00:00
Kevin Buettner aacc1edd3a Fix typo in my previously committed ChangeLog entry. 2001-02-22 03:12:13 +00:00
Kevin Buettner d7fa2ae254 Made changes to shared library support and added more of the support needed
for AIX/IA-64.
2001-02-22 03:01:27 +00:00
Eli Zaretskii 5ece1a18c0 * gdb.texinfo (Signals): Document "ignore", "noignore", and "all". 2001-02-21 16:17:50 +00:00
Kevin Buettner fbad08934d Enable new thread support for Linux/IA-64. 2001-02-21 05:20:35 +00:00
Andrew Cagney 1adad886b2 Fix printf fmt arguments. 2001-02-21 00:05:34 +00:00
Kevin Buettner 0579d647a6 Cleanup solib-aix5.c as suggested by J.T. Conklin. 2001-02-20 23:42:23 +00:00
Andrew Cagney d65fe83949 Move frame specific register code to the new file frame.c. 2001-02-20 22:39:03 +00:00
Kevin Buettner 60cf7a8541 * solib-aix5.c: New file. 2001-02-20 20:43:12 +00:00
Martin Hunt a43ad351c8 2001-02-20 Martin M. Hunt <hunt@redhat.com>
* solib.c (info_sharedlibrary_command): Don't assume pointers
	are the same size of long, call	longest_local_hex_string_custom().
2001-02-20 18:07:17 +00:00
Martin Hunt 58bc91c9c3 2001-02-20 Martin M. Hunt <hunt@redhat.com>
* solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
	extract_signed_integer() should be called instead of
	extract_address().
2001-02-20 18:05:19 +00:00
Martin Hunt 291b7e049d 2001-02-20 Martin M. Hunt <hunt@redhat.com>
* MAINTAINERS: Add Martin Hunt to Write After Approval list.
2001-02-20 18:02:49 +00:00
Andrew Cagney d02ee68167 When the target h/w has 8byte registers, return 8 bytes for the raw buffer size
(from jim kingdon).
2001-02-20 03:38:32 +00:00
Elena Zannoni f07e76c6c1 Remove cvs conflict indicator. 2001-02-20 00:12:40 +00:00
Michael Snyder a858089e45 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
	accomodate 64-bit addresses.
2001-02-20 00:10:18 +00:00
Elena Zannoni 23cc649f21 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
 	* symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
 	lookup_symbol, when trying to find a symbol with a mangled name,
 	to avoid infinite recursion.
2001-02-20 00:09:01 +00:00
Andrew Cagney 0db23c95cc TODO Tweeks. 2001-02-19 23:20:54 +00:00
Jonathan Larmour 911413e6b3 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
(save_prologue_cache): Ditto.
2001-02-19 22:03:25 +00:00
Fernando Nasser 9b0c4aebb4 2001-02-19 Fernando Nasser <fnasser@redhat.com>
From  Drew Moseley  <dmoseley@redhat.com>
        * gdb.base/ending-run.exp: Properly handle the BSP state when
        stepping past the end of main.
2001-02-19 21:48:52 +00:00
Michael Chastain 02aa71d5de 2001-02-19 John Moore <jmoore@redhat.com>
* gdb.base/commands.exp (infrun_breakpoint_command_test):
	Converted HPUX fix for non-expected items following multiple
	step commands into general solution for all platforms.
2001-02-19 20:44:27 +00:00
Elena Zannoni 8d1de4b7ab 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From: innadadadavida@yahoo.com:
	* partial-stab.h (switch): Check that pst is not null
 	before dereferencing it.
2001-02-19 20:15:42 +00:00
Elena Zannoni 3017564ad2 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Andrew Cagney  <cagney@b1.cygnus.com>:
	* symfile.c (add_symbol_file_command): Always initialize
 	my_cleanup using a NULL cleanup.
2001-02-19 18:56:11 +00:00
Eli Zaretskii fa58ee1196 * demangle.c (demangling_style_names): New variable.
(_initialize_demangler): Fill demangling_style_names with the
	names of known demangling styles from libiberty_demanglers[].  Use
	add_set_enum_cmd instead of add_set_cmd, to get completion on
	demangling style names.

	* proc-api.c (_initialize_proc_api): Make `procfs-file' use
	file-name completion.

	* remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.

	* solib.c (_initialize_solib): Ditto for `solib-search-path' and
	`solib-absolute-prefix'.

	* tracepoint.c (_initialize_tracepoint): Ditto for
	`save-tracepoints'.

	* win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.

	* cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
	file-name completion.

	* infcmd.c (_initialize_infcmd): Make the following commands use
	the file-name completer: `tty', `args', `path', `paths', and
	`run'.
2001-02-19 11:47:16 +00:00
Michael Chastain 1fa449a475 2001-02-18 Michael Chastain <chastain@redhat.com>
* gdb.c++/classes.exp (do_tests): Change runto statements
	from "runto 'foo(void)'" to "runto 'foo'".  This makes the
	statements demangler agnostic.
	* gdb.c++/virtfunc.exp (do_tests): Likewise.
	(gdb_virtfunc_restart): Likewise.
2001-02-18 19:59:57 +00:00
Eli Zaretskii 89dea5aa55 * go32-nat.c: Include i387-nat.h.
(fetch_register): New function, uses some of the guts of
	go32_fetch_registers and i387_supply_register.
	(go32_fetch_registers): Most of the code moved into
	fetch_register.  Use i387_supply_fsave.
	(store_register): Use i387_fill_fsave instead of custom code.
	(go32_store_registers): Use i387_fill_fsave.

	* Makefile.in (go32-nat.o): Depend on i387-nat.h.

	* config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
2001-02-18 07:22:17 +00:00
Michael Chastain b2f9ec70af 2001-02-14 Michael Chastain <chastain@redhat.com>
* gdb.c++/inherit.exp (do_tests): Change runto statements
	from "runto 'foo(void)'" to "runto 'foo'".  This makes the
	statements demangler agnostic.
2001-02-18 07:10:32 +00:00
Eli Zaretskii 7830cf6fb9 * completer.c (gdb_completer_file_name_break_characters): Remove
slash from file-name break characters.
	[__MSDOS__]: Special definition for DOS/Windows file names.
	(line_completion_function): When completing on file names, bump
	`p' to the first file-name constituent character of `word', before
	invoking the completer.
2001-02-18 07:04:11 +00:00
Mark Kettenis f31e928cd4 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
consistently for parameter names.  Fix comments accordingly.
(i387_supply_register): New function.
(i387_supply_fsave): Implement using i387_supply_register.
* i387-nat.h: Use regnum instead of regno consistently for
parameter names.  Fix comments accordingly.
(i387_supply_register): New prototype.
2001-02-17 09:01:14 +00:00
Michael Snyder d696208fa8 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
	instead of TARGET_PTR_BIT (to support Harvard architectures).
2001-02-16 23:40:39 +00:00
Andrew Cagney 971429b4a4 From Paul Hilfinger. Add attribs param to hpux_thread_xfer_memory. 2001-02-16 23:09:05 +00:00
Andrew Cagney 0a9c3cb62a Move hardware stuff to not 5.1 - changelog already committed. 2001-02-16 22:59:48 +00:00
Michael Chastain da7dd56fe4 Obvious fix.
I wrote "gdb/somsolib.c" in ChangeLog.  Should be "somsolib.c".
2001-02-16 18:25:56 +00:00
Michael Chastain 9ca0e47c00 2001-02-12 Michael Chastain <chastain@redhat.com>
* gdb/somsolib.c (som_solib_add_solib_objfile): Do not use
	section relocation feature of syms_from_objfile.  Do my own
	section relocation, offsetting each section of the som by
	either text_addr - text_link_addr or data_start.
2001-02-16 18:03:22 +00:00
Andrew Cagney 7d65bd2d7c Move hardware bug out of 5.1 2001-02-16 17:44:09 +00:00
Andrew Cagney e33e969289 Update paper trail list. 2001-02-16 17:13:04 +00:00
Mark Kettenis 17dee195e8 * target.h (target_fetch_registers): Fix comment. 2001-02-16 11:25:15 +00:00
Andrew Cagney 0f6e1ba6ee Simplify code parsing integers and, in process fix a -Wuninitialized warning. 2001-02-16 01:27:46 +00:00
Andrew Cagney cf74b8caf7 Make thread messages more consistent in pass/fail cases. 2001-02-15 05:32:12 +00:00
Jim Kingdon 9a069618ac * MAINTAINERS: Add myself to paper trail section. 2001-02-15 00:50:06 +00:00
Michael Chastain 99f78f560a 2001-02-11 Michael Chastain <chastain@redhat.com>
* gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
	Helps the test script figure out which demangler is in use.
	(dm_type_foo_ref): Ditto.
	(dm_type_int_star): Ditto.
	(dm_type_long_star): Ditto.
	(dm_type_unsigned_int): Ditto.
	(dm_type_void): Ditto.
	(dm_type_void_star): Ditto.
	* gdb.base/cplusfuncs.exp (probe_demangler): New function.
	Probe the gdb demangler and set variables to accommodate
	formatting differences.
	(info_func_regexp): New function.  Same as info_func, but
	matches against a regexp.
	(info_func): Match against a literal string.
	(print_addr_2): New function.  Match against a literal string,
	which can be different from the input to gdb.
	(print_addr): Simply call print_addr_2 with the same argument twice.
	(test_lookup_operator_functions): Use demangler formatting variables.
	Blow away the xfails and workarounds for gnats gdb bug gdb/18.  Sort
	the tests in the same order as the C++ class declaration.
	(test_paddr_operator_functions): Ditto.
	(test_paddr_overloaded_functions): Ditto.
	(test_paddr_hairy_functions): Use demangler formatting variables.
	Add reference to gdb/19 for related tests.
	(do_tests): Call probe_demangler.
2001-02-14 19:54:04 +00:00
Michael Sokolov fc24370e47 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
* configure, config.in: Regenerate.
	* corelow.c: Include <sys/file.h> if present.
2001-02-14 18:48:40 +00:00
Andrew Cagney 4b69c284e7 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
declare when have SIGTTOU.
2001-02-14 16:57:29 +00:00
Eli Zaretskii 7904f322ac Add entries for gdb/gdbtk/*/ChangeLog-*. 2001-02-14 07:52:04 +00:00
Jim Kingdon 9e798668bb * MAINTAINERS: Update my email address. 2001-02-13 22:55:31 +00:00
Eli Zaretskii 17cc6a06fb * gdb.texinfo (Environment): Document that `path' does not change
the value of PATH in GDB's own environment (it did in the past,
	but that was changed on March 15, 1994).  Reported by Doug Evans
	<dje@transmeta.com>.
2001-02-11 13:37:32 +00:00
Eli Zaretskii 65d5a54a0c * NEWS: Document that "info symbol" works with COFF debug info and
its variants.

	* minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
	symbols whose SYMBOL_BFD_SECTION is NULL.
2001-02-11 06:11:38 +00:00
Eli Zaretskii 56caf160f3 * gdbint.texinfo: Fix up @itemize lists so that @item is alone on
its line.  Fix markup of commands.  Add an index and index entries.
2001-02-11 05:48:30 +00:00
Peter Schauer a8079a9b4c Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
* xcoffsolib.c (xcoff_solib_address):  Renamed from
	pc_load_segment_name.  Return NULL if address is not in a shared
	library.  Cleanup shared library name construction, using xasprintf.
	Format shared library member names consistent with format in exec.c.
	(solib_info):  Format shared library member names consistent with
	format in exec.c.
	* config/rs6000/nm-rs6000.h:  Replace PC_LOAD_SEGMENT with PC_SOLIB,
	using xcoff_solib_address for PC_SOLIB definition.
	* stack.c (print_frame):  Remove PC_LOAD_SEGMENT code, no longer
	needed.
2001-02-10 12:01:11 +00:00
Peter Schauer 4b2e486790 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
with xmalloc calls and cleanups.
2001-02-10 11:12:06 +00:00
Peter Schauer d737ece6da * rs6000-nat.c (child_xfer_memory): Add missing parameter
'struct mem_attrib *' required by 2001-01-23 change.
2001-02-10 11:05:39 +00:00
Jim Kingdon c5bb12431c Updates to "make TAGS":
* Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
	arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
	tahoe-tdep.c.
	(TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
2001-02-09 01:47:34 +00:00
Eli Zaretskii c799ae7bba * config/djgpp/fnchange.lst: Remove extraneous "too many dots". 2001-02-08 11:14:11 +00:00
Andrew Cagney 12685e01fb From Dean Luick <luick@cray.com>:
* defs.h (continuation): Remove unused global variable.
2001-02-08 06:49:19 +00:00
Andrew Cagney 7fcca85b94 Remove configurations marked as obsolete in 5.0. 2001-02-08 06:30:25 +00:00
Andrew Cagney 8e65ff28b0 Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
2001-02-08 06:03:54 +00:00
Andrew Cagney 72290732e9 From Mark Kettenis, include <signal.h>. 2001-02-08 05:06:13 +00:00
Andrew Cagney a6da1910ac Fix printf fmt of long in remote-sim.c.
mn10300-elf now buildable.
2001-02-07 18:37:25 +00:00
Mark Kettenis 153f9905cb * event-top.c: Remove duplicate #include <signal.h>. 2001-02-07 07:29:38 +00:00
Andrew Cagney f042532cc4 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
allocated buffer.
(save_inferior_pid): Restore the PID from that tempoary
buffer. Delete the buffer.
* utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
2001-02-07 03:44:24 +00:00
Andrew Cagney 58cfabe6f8 * MAINTAINERS: Add ``The Obvious Fix Rule''. 2001-02-07 03:11:44 +00:00
Andrew Cagney ea8a41b887 Add Michael Synder to Solaris/SPARC list. 2001-02-07 03:08:44 +00:00
Andrew Cagney 9516075289 Addd set_gdbarch_data() method. Update register_gdbarch_data() interface. 2001-02-07 02:17:48 +00:00
Michael Sokolov 64122a8ba7 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
fprintf_filtered with correct arguments.
2001-02-06 21:39:46 +00:00
Michael Snyder e6cbd02ac2 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
Submitted by Paul Hilfinger (hilfingr@gnat.com)
	and Andrei Petrov (and@genesyslab.com).
	* findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
	must be allocated dynamically, since these are no longer constants.
	* infcmd.c: Ditto.
	* regcache.c: Ditto.
	* remote.c: Ditto.
	* sol-thread.c: Ditto.
	* valops.c: Ditto.
	* config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
	work-around for a missing Sun header file in solaris for sparc64.
2001-02-06 20:05:42 +00:00
Phil Blundell 713f0374c0 2001-02-04 Philip Blundell <philb@gnu.org>
* config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
	thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
	* config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
	GET_THREAD_SIGNALS): Define.
	* arm-linux-nat.c (fill_gregset): Correct type of argument.
	(supply_gregset): Likewise.
	(fill_fpregset): Likewise.
	(supply_fpregset): Likewise.
2001-02-06 19:59:06 +00:00
David Taylor 4603e466c2 * valops.c (value_cast): If casting a scalar to a pointer, do not
issue a message about truncation unless it exceeds the length of
 	an address, not the length of a pointer.  This is because what the
 	user gives us is an address, not a pointer, and we will ultimately
 	convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
 	to a pointer.  This allows things like "print *(int *)0x01000234"
 	to work without generating a misleading message on a target having
 	two byte pointers and four byte addresses.
2001-02-06 18:07:48 +00:00
Christopher Faylor 56c40d469c Fix spacing. 2001-02-06 05:04:40 +00:00
Christopher Faylor 554cb4863b * win32-nat.c: Change PTR to void * throughout. 2001-02-06 05:01:04 +00:00
J.T. Conklin 042be3a9b3 * signals.h: Removed.
* event-top.c (#include <signal.h>): Changed from signals.h.
* inflow.c: Likewise.
* mac-xdep.c: Likewise.
* ser-pipe.c: Likewise.
* ser-tcp.c: Likewise.
* standalone.c: Likewise.
* top.c: Likewise.
* utils.c: Likewise.
* Makefile.in: Removed signals.h from dependencies.
2001-02-06 04:17:03 +00:00
Christopher Faylor a4acd088c9 Change suggested by Dean Luick <luick@cray.com>
* inferior.h (step_over_calls_kind): Remove trailing comma from last enum
element.
(step_over_calls): Declare as extern rather than global.
2001-02-06 04:03:23 +00:00
Elena Zannoni 3116c80aec 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c: Update copyright.
      (sh_extract_return_value): Rewrite.
      (sh3e_sh4_extract_return_value): New function.
      (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
      version of the function for sh3e and sh4 CPUs.
2001-02-06 02:00:44 +00:00
Michael Chastain 240be855ba 2001-02-05 Michael Chastain <chastain@redhat.com>
* hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
	to conform with interface change.
2001-02-05 21:09:21 +00:00
Eli Zaretskii 32fe095003 * config/djgpp/fnchange.lst: Tweak to make consistent with the
new files.
2001-02-04 07:56:38 +00:00
Eli Zaretskii 619cbaf76d * config/djgpp/djconfig.sh: Use explicit absolute file name when
invoking `find'.
2001-02-04 07:52:33 +00:00
Eli Zaretskii cd42d3a86d * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
UART_FIFO_WORKS is defined.  Otherwise use outportb.
	From Francisco Pastor <fpastor.etra-id@etra.es>
2001-02-04 07:48:18 +00:00
Eli Zaretskii a17b5c4efc * go32-nat.c (go32_xfer_memory): Make the argument list consistent
with target.h's to_xfer_memory member.
2001-02-04 07:24:57 +00:00
J.T. Conklin 86ddecc5fc * ppc-bdm.c (#include <signal.h>): Removed.
* remote-array.c: Likewise.
* remote-bug.c: Likewise.
* remote-e7000.c: Likewise.
* remote-mips.c: Likewise.
* remote-os9k.c: Likewise.
* remote-st.c: Likewise.
* remote-udi.c: Likewise.
* remote-vx29k.c: Likewise.
* remote-vx68.c: Likewise.
* remote-vx960.c: Likewise.
* remote-vxmips.c: Likewise.
* remote-vxsparc.c: Likewise.
2001-02-02 23:04:14 +00:00
John R. Moore 338d7c5c40 Changed free() to xfree() where appropriate. Also changed Copyright to
include 2001.
2001-02-02 20:01:16 +00:00
John R. Moore 2b5436af18 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to xfree().
Also changed Copyright to include 2001.
2001-02-02 19:37:48 +00:00
J.T. Conklin 824670030b * monitor.c (#include "gdb_wait.h"): Removed.
* ocd.c: Likewise.
* ppc-bdm.c: Likewise.
* remote-adapt.c: Likewise.
* remote-array.c: Likewise.
* remote-bug.c: Likewise.
* remote-e7000.c: Likewise.
* remote-eb.c: Likewise.
* remote-es.c: Likewise.
* remote-mips.c: Likewise.
* remote-mm.c: Likewise.
* remote-nindy.c: Likewise.
* remote-os9k.c: Likewise.
* remote-rdi.c: Likewise.
* remote-rdp.c: Likewise.
* remote-sds.c: Likewise.
* remote-sim.c: Likewise.
* remote-st.c: Likewise.
* remote-udi.c: Likewise.
* remote-vx.c: Likewise.
* remote-vx29k.c: Likewise.
* remote-vx68.c: Likewise.
* remote-vx960.c: Likewise.
* remote-vxmips.c: Likewise.
* remote-vxsparc.c: Likewise.
* remote.c: Likewise.
* ser-pipe.c: Likewise.
* ser-unix.c: Likewise.
* Makefile.in: Updated dependencies.
-------------------------------------------------------------------
2001-02-02 19:14:33 +00:00
Jonathan Larmour 7fb91dc8bf v850-elf target is now building. 2001-02-01 07:00:53 +00:00
David Smith 27b82ed26e 2001-01-31 David Smith <dsmith@redhat.com>
* event-loop.c: Change inclusion of string.h to gdb_string.h and
	updated the copyright notice.
	* ser-pipe.c: Ditto.
	* mi/mi-cmds.c: Ditto.
	* mi/mi-console.c: Ditto.
	* mi/mi-getopt.c: Ditto.
	* mi/mi-parse.c: Ditto.
2001-01-31 15:46:36 +00:00
David Smith ab9cc81536 2001-01-31 David Smith <dsmith@redhat.com>
* MAINTAINERS: Add David Smith to Write After Approval list.
2001-01-31 15:03:45 +00:00
Andrew Cagney d1f4cff847 Move putchar_filtered() to utils.c. 2001-01-31 03:46:23 +00:00
Andrew Cagney 74c1b268c6 Cleanup autoconfigury of vfork(). 2001-01-31 02:08:23 +00:00
Andrew Cagney 4fcf66da88 Replace strsave() with xstrdup(). 2001-01-31 01:24:03 +00:00
Andrew Cagney e191e0abe5 * cli/cli-script.c (define_command): Check for a bad hook value in
switch statement.
2001-01-31 00:50:01 +00:00
J.T. Conklin 10214f55f8 * configure/sh/embed.mt: New file.
* configure/sh/linux.mt: New file.
* configure/sh/sh.mt: Removed.
* configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
(sh-*-*): Removed.
2001-01-30 23:37:07 +00:00
Kevin Buettner 7b769fb03b Replace blanked lines from earlier commit with comment stating that
the reason why the space is empty.
2001-01-30 22:18:21 +00:00
Kevin Buettner 1de8f0232c Remove unused printf() definition. 2001-01-30 16:45:23 +00:00
Michael Chastain f8bf377815 Removed files structs3.c structs3.exp.
These were added by accident.  Whoops!
2001-01-30 04:48:50 +00:00
Michael Chastain c9049fc98f 2001-01-29 Michael Chastain <chastain@redhat.com>
* symtab.c (block_lookup_symbol): Use 'namespace' parameter in
	symbol comparisons in binary search.
2001-01-30 02:49:36 +00:00
Michael Chastain b2bbed47aa 2001-01-28 Michael Chastain <chastain@redhat.com>
* gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc
	to call when tests fail.  It takes gdb out of the overloaded
	function choice menu back to the main prompt, so that the test
	program stays synchronized.
	(set_bp_overloaded): New proc to collect all the common
	code for setting a breakpoint on an overloaded name.  Calls
	take_gdb_out_of_choice_menu when needed.
	(menu_overload1arg): New variable to collect the repeated
	instances of the expected menu for an overloaded name.	Change
	the regular expression to handle changes in g++ type encoding:
	"void" can be either "void" or "", and "unsigned int" can be
	either "unsigned int" or "unsigned".
	(continue_to_bp_overloaded): Change regular expressions to handle
	changes in g++ type encoding.
	(no proc): Call take_gdb_out_of_choice_menu when needed.
	Remove redundant calls to "info break".  Accept either "canceled"
	or "cancelled".  Change regular expressions in "info break"
	calls to handle changes in g++ type encoding.  Give all tests
	unique strings.
2001-01-28 23:49:43 +00:00
Fernando Nasser 80ee4fd53b 2001-01-27 Fernando Nasser <fnasser@redhat.com>
From Momchil Velikov  <velco@fadata.bg>
	* mi-cmd-disas.c (gdb_dis_asm_read_memory): Add missing memory
	attributes argument in the call to `xfer_memory'.
2001-01-27 22:18:15 +00:00
Christopher Faylor aea02b6b07 * win32-nat.c (child_xfer_memory): Add missing argument required by 2001-01-23
change.
2001-01-27 19:32:32 +00:00
Mark Kettenis e6e0bfabf4 * ui-out.c (do_list_end): New function.
(make_cleanup_ui_out_list_end): New function.
* ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
* stack.c (print_frame) [UI_OUT]: Call
make_cleanup_ui_out_list_end to make sure we mark the end of the
list if we do a non-local exit.  At the end of the function,
instead of calling ui_out_list_end directly, let do_cleanups
handle it.
2001-01-27 17:57:53 +00:00
Fernando Nasser 1adeb98a32 2001-01-26 Fernando Nasser <fnasser@redhat.com>
Fix double parsing of filenames passed as command line arguments
        to GDB (causes weird handling of escape characters).
        Also, remove dependencies on the CLI from libgdb.
        * call-cmds.h: Remove declaration of exec_file_command().
        * gdbcore.h: Remove declaration of exec_file_command().
        Add declarations for exec_open() and exec_file_clear().
        * symfile.h: Add declarations for symbol_file_add_main() and
        symbol_file_clear().
        * exec.c (exec_open): New function. Implements to_open for exec
        targets.
        (exec_file_clear): New function. Makes GDB forget about a previously
        specified executable file.
        (exec_file_attach): Move parsing of arguments from here ...
        (exec_file_command): ... to here.
        (init_exec_ops): Use exec_open(), not exec_file_command() to
        implement to_open for exec targets.
        * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()        with default values.  Used when the file name has already been parsed.
        (symbol_file_clear): New function. Makes GDB forget about previously
        read symbols.
        (symbol_file_command): Call the above function instead of inline code.
        * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
        "call-cmds.h".
        (captured_main): Call exec_file_attach() and symbol_file_add_main()
        instead of exec_file_command() and symbol_file_command().
        (captured_main): Add comment.
        * corefile.c: Include "symfile.h".
        (core_file_command): Call symbol_file_add_main() instead of
        symbol_file_command().
        (reopen_exec_file): Call exec_open() instead of exec_file_command().
        * infcmd.c: Include "symfile.h".
        (attach_command): Call symbol_file_add_main() instead of
        symbol_file_command().
        * infrun.c: Remove comment about the inclusion of "symfile.h",
        not any longer appropriate.
        (follow_exec): Call symbol_file_add_main() instead of
        symbol_file_command().
        * remote-es.c: Include "symfile.h".
        (es1800_load): Call symbol_file_add_main() instead of
        symbol_file_command().
        * remote-vx.c: Remove comment about the inclusion of "symfile.h",
        not any longer appropriate.
        (vx-wait): Call symbol_file_add_main() instead of
        symbol_file_command().
        * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
        instead of symbol_file_command().
        * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
        symbol_file_add_main() instead of exec_file_command() and
        symbol_file_command().
        * Makefile.in: Update dependencies.
2001-01-27 00:43:26 +00:00
Jeff Holcomb 5b616ba11e 2001-01-24 Jeff Holcomb <jeffh@redhat.com>
* remote-udi.c (udi_open): Change strdup to xstrdup.
        * thread.c (thread_apply_all_command): Change strdup to xstrdup.
        Update copyright message.
        * varobj.c (delete_variable_1): Likewise.

        * gdb_string.h: Remove declaration of strdup.  Update copyright
        message.
        * config/xm-mpw.h: Likewise.
        * config/i386/xm-i386mach.h: Likewise.
        * config/m68k/xm-apollo68b.h: Likewise.
        * config/m68k/xm-hp300bsd.h: Likewise.
        * config/rs6000/xm-rs6000.h: Likewise.
        * config/vax/xm-vaxult.h: Remove declaration of strdup.
        * config/vax/xm-vaxult2.h: Likewise.
2001-01-26 19:47:23 +00:00
Jeff Holcomb b91d87cfc7 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
* MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
2001-01-26 19:40:21 +00:00
J.T. Conklin 873406a684 * target.c (target_xfer_memory_partial): Return -1 on failure due
to invalid access mode attribute.
2001-01-26 02:30:15 +00:00
Christopher Faylor 0613c4019c * win32-nat.c (_initialize_core_win32): Prototype correctly. 2001-01-25 22:35:01 +00:00
Mark Kettenis efd59e3f32 * config/alpha/tm-fbsd.h: Update copyright.
(USE_STRUCT_CONVENTION): Define in terms of
alphabsd_use_struct_convention.
* config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
* alphafbsd-tdep.c: New file.
2001-01-25 18:41:23 +00:00
Fernando Nasser 388e1ff2e5 2001-01-24 Fernando Nasser <fnasser@redhat.com>
* top.c (print_gdb_version): Update Copyright year.
2001-01-25 15:19:30 +00:00
J.T. Conklin f4d650ecb3 * dcache.c (dcache_write_line): Fix typo.
* memattr.c (delete_mem_region): Replace free() with xfree().
(mem_number): Add explicit type.

* sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
(rw_common): Likewise.
2001-01-24 21:01:02 +00:00
Fernando Nasser 07091751ff 2001-01-24 Fernando Nasser <fnasser@redhat.com>
* infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
        for the inferior program arguments.
        (run_command, run_no_args_command, init_infcmd)): Use accessor
        functions to set the inferior program arguments.
        * inferior.h: Add definitions to the accessor functions above.
2001-01-24 16:28:20 +00:00
J.T. Conklin e5da8f389f * lin-lwp.c (lin_lwp_xfer_memory): Add attrib argument.
* thread-db.c (thread_db_xfer_memory): Likewise.
2001-01-24 00:26:46 +00:00
Jim Blandy 090c42a489 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
Implement these correctly, using make_cv_type.
2001-01-24 00:22:47 +00:00
J.T. Conklin 29e5738069 * exec.c (xfer_memory): Add attrib argument.
* infptrace.c (child_xfer_memory): Likewise.
* monitor.c (monitor_xfer_memory): Likewise.
* remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
* remote-array.c (array_xfer_memory): Likewise.
* remote-bug.c (bug_xfer_memory): Likewise.
* remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
* remote-eb.c (eb_xfer_inferior_memory): Likewise.
* remote-es.c (es1800_xfer_inferior_memory): Likewise.
* remote-mips.c (mips_xfer_memory): Likewise.
* remote-mm.c (mm_xfer_inferior_memory): Likewise.
* remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
* remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
* remote-rdi.c (arm_rdi_xfer_memory): Likewise.
* remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
* remote-sds.c (sds_xfer_memory): Likewise.
* remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
* remote-st.c (st2000_xfer_inferior_memory): Likewise.
* remote-udi.c (udi_xfer_inferior_memory): Likewise.
* remote-vx.c (vx_xfer_memory): Likewise.
* remote.c (remote_xfer_memory): Likewise.
* target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
* target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.

* target.h (#include "memattr.h"): Added.
(target_ops.to_xfer_memory): Add attrib argument.

* wince.c (_initialize_inftarg): Removed call to set_dcache_state.
* dcache.h (set_dcache_state): Removed declaration.
* dcache.c (set_dcache_state): Removed definition

* dcache.c: Update module comment, as dcache is now enabled and
disabled with memory region attributes instead of by the global
variable "remotecache".  Add comment describing the interaction
between dcache and memory region attributes.
(dcache_xfer_memory): Add comment describing benefits of moving
cache writeback to a higher level.
(dcache_struct): Removed cache_has_stuff field.  This was used to
record whether the cache had been accessed in order to invalidate
it when it was disabled.  However, this is not needed because the
cache is write through and the code that enables, disables, and
deletes memory regions invalidate the cache.  Add comment which
suggests that we could be more selective and only invalidate those
cache lines containing data from those memory regions.
(dcache_invalidate): Updated.
(dcache_xfer_memory): Updated.

(dcache_alloc): Don't abort() if dcache_enabled_p is clear.
(dcache_xfer_memory): Removed code that called do_xfer_memory() to
perform a uncached transfer if dcache_enabled_p was clear.  This
function is now only called if caching is enabled for the memory
region.
(dcache_info): Always print cache info.

* target.c (do_xfer_memory): Add attrib argument.
(target_xfer_memory, target_xfer_memory_partial): Break transfer
into chunks defined by memory regions, pass region attributes to
do_xfer_memory().
* dcache.c (dcache_read_line, dcache_write_line): Likewise.

* Makefile.in (SFILES): Add memattr.c.
(COMMON_OBS): Add memattr.o.
(dcache.o): Add target.h to dependencies.
* memattr.c: New file.
* memattr.h: Likewise.
2001-01-23 22:48:56 +00:00
J.T. Conklin f29d9b6d30 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
* config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
* config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
* gdbserver/low-sim.c (#include "defs.h"): Removed.
(mygeneric_load): Rename from generic_load.

* gdbserver/low-hppabsd.c (#include "server.h"): Added.
(#include "defs.h"): Removed.
(inferior_pid, perror_with_name): Remove declarations.
* gdbserver/low-linux.c: Likewise.
* gdbserver/low-nbsd.c: Likewise.
* gdbserver/low-sparc.c: Likewise.
* gdbserver/low-sun3.c: Likewise.

* i386-stub.c: Re-indent.
* m68k-stub.c: Re-indent.
2001-01-23 19:45:12 +00:00
Nicholas Duffek 58d5518ebe * gdbarch.sh (PARM_BOUNDARY): Define.
* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
2001-01-22 23:32:49 +00:00
J.T. Conklin f6427adebb * ns32k-tdep.c: #include "frame.h"
* config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore.  It
appears to have been inadvertantly removed sometime in May 1999.

* Revert 2000-11-09 changes where shared library objects were
moved from NATDEPFILES to TDEPFILES on NetBSD targets.  While
we'd like to be able to debug dynamically linked executables,
this makes it impossible to build a cross debugger on a many
hosts.

* config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
* config/i386/nbsdelf.mt: Likewise.
* config/m68k/nbsd.mt: Likewise.
* config/ns32k/nbsd.mt: Likewise.
* config/powerpc/nbsd.mt: Likewise.
* config/sparc/nbsd.mt: Likewise.
* config/sparc/nbsdelf.mt: Likewise.
* config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
* config/i386/nbsdelf.mh: Likewise.
* config/m68k/nbsd.mh: Likewise.
* config/ns32k/nbsd.mh: Likewise.
* config/powerpc/nbsd.mh: Likewise.
* config/sparc/nbsd.mh: Likewise.
2001-01-22 20:23:25 +00:00
Mark Kettenis 7d76bd60cf * mi-support.exp (mi_gdb_start): Skip mi tests if -i flag is
recognized (i.e. if GDB was compiled with UI_OUT, but the mi
interpreter wasn't recognized (because it wasn't compiled in).
2001-01-21 15:07:05 +00:00
Jason Merrill 8052a17a6a * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
(process_one_symbol): Likewise.
        * dwarfread.c (handle_producer): Likewise.
2001-01-19 14:53:44 +00:00
Andrew Cagney 21a6f6bb02 Drop -Wuninitialized until GDB compiles with it.
Add list of buildable targets to the MAINTAINERS file.
2001-01-19 10:25:13 +00:00
Andrew Cagney 494b7ec97e Replace STRCMP with strcmp() 2001-01-19 08:01:47 +00:00
Andrew Cagney 8038e1e2b1 Replace FREEIF() with xfree(). 2001-01-19 05:45:16 +00:00
Nick Clifton ea8d0b28e6 Add new arc core numbers. 2001-01-19 04:08:52 +00:00
Jim Blandy 5dbd90485c * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
a mangled symbol rather than recursing into lookup_symbol, since
this will just re-unmangle the name & call lookup_symbol_aux -
leading to an infinite recursion.
2001-01-18 23:38:26 +00:00
Mark Kettenis 28ae27b1a6 * infcmd.c (print_return_value): Restore another space lost by
switch to UIOUT. ``$NN='' should be ``$NN =''.
2001-01-18 16:11:22 +00:00
Andrew Cagney 6ab3a9c917 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
* breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
definition in parenthesis.
2001-01-18 15:42:24 +00:00
Andrew Cagney ad6525fcf5 From Mark Salter, fix hw-breakpoint packet format. 2001-01-18 15:29:11 +00:00
J.T. Conklin 9c95b27fbc * config/m68k/tm-nbsd.h (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf. 2001-01-17 23:22:17 +00:00
J.T. Conklin 6259c7e28d * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
* config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
* m68knbsd-tdep.c: New file.
* i386nbsd-tdep.c: Remove #if 0'd out #includes.
* m68knbsd-nat.c: #include gdbcore.h.
2001-01-17 23:07:15 +00:00
Ben Elliston 9c646a6e13 2001-01-17 Ben Elliston <bje@redhat.com>
* config/sid.exp: New file.
2001-01-16 23:03:19 +00:00
Andrew Cagney abdcb2a571 Add J.T. to blanket write privs list. 2001-01-16 22:45:48 +00:00
Michael Snyder aaeb7efa68 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* procfs.c (procfs_stopped_by_watchpoint): Don't die if	process
        goes away -- just return false.
2001-01-16 17:41:51 +00:00
Michael Snyder e7a8479f5a 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* source.c (openp): Fix	typo in comment.
2001-01-16 17:36:44 +00:00
Nicholas Duffek 7036d6ce0e * blockframe.c (generic_get_saved_register): Spelling fix.
* frame.h (FRAME_FP): Spelling fix.
2001-01-12 20:43:35 +00:00
Andrew Cagney 9549d9c176 Restore missing space lost when switching to UI_OUT. 2001-01-12 09:45:57 +00:00
J.T. Conklin 15f33b666d Shuffle ChangeLog files... 2001-01-12 03:44:32 +00:00
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
Fernando Nasser b46cd1657c 2000-12-11 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (CONFIG_LOBS): New macro.  Configured to the files
        that must be added to the gdblib itself.
        (DEPFILES): Use CONFIG_LOBS, not CONFIG_OBS.
        (INIT_FILES): Include CONFIG_OBS.
        (gdb$(EXEEXT)): Depend on CONFIG_OBS and link with it.
        (kdb): Ditto.
        * configure.in (CONFIG_LOBS): New variable. Object files that must
        be added to gdblib for the specific configuration.
        * configure: Regenerate.
2000-12-11 22:36:26 +00:00
Michael Snyder 0c8053b6bb 2000-12-11 Michael Snyder <msnyder@cleaver.cygnus.com>
* sh-tdep.c (sh_extract_struct_value_address): Protoize.

2000-12-11  Michael Snyder  <msnyder@mvstp600e.cygnus.com>

	* blockframe.c (get_prev_frame): Add missing paren omitted in
	last check-in.
2000-12-11 21:34:27 +00:00
Fernando Nasser 4226a5a518 2000-12-11 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (SUBDIR_GDBTK_OBS, SUBDIR_GDBTK_SRCS,
        SUBDIR_GDBTK_DEPS, SUBDIR_GDBTK_INITS, SUBDIR_GDBTK_LDFLAGS,
        SUBDIR_GDBTK_CFLAGS): New macros.  For gdbtk subdir.
        * configure.in: Fix typo.  It is CONFIG_OBS not CONFIG_OJS.
        Use the SUBDIR_GDBTK_* macros instead of hard coded file names.
        * configure: Regenerate.
2000-12-11 21:11:16 +00:00
Michael Snyder bb30608f10 2000-12-11 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* blockframe.c (get_prev_frame): Zero all fields of prev by
        default using memset (instead of one at a time).
2000-12-11 21:10:15 +00:00
Michael Snyder b3df3fffb8 2000-12-11 Michael Snyder <msnyder@cleaver.cygnus.com>
* sh-tdep.c (sh_extract_struct_value_address): For consistancy,
        change decl from "CORE_ADDR static" to "static CORE_ADDR".
2000-12-11 21:04:04 +00:00
Fernando Nasser 486697a0b3 2000-12-11 Fernando Nasser <fnasser@redhat.com>
* configure.in: Fix typos.  It is CONFIG_SRCS not CONFIG_SRS.
        * configure: Regenerate.
2000-12-11 20:21:57 +00:00
Fernando Nasser 6bad8db2dc 2000-12-11 Fernando Nasser <fnasser@redhat.com>
* configure.in: Fix a couple of typos in the handling of the
        enable_gdbcli option.  Make it check enableval for the result
        of AC_ARG_ENABLE.
        * configure: Regenerate.
2000-12-11 18:59:47 +00:00
Michael Chastain 4a7bddb62e 2000-12-09 Michael Chastain <chastain@redhat.com>
* gdb.base/break.exp (test_clear_command): Use a marker function
	rather than 'main' for the test function.  Also move this
	test to an execution point where the marker function names are
	guaranteed to be bound to functions.  (Executing tests after a
	'finish' from main runs into name conflicts with local names
	in __libc_start_main).
2000-12-09 22:35:05 +00:00
Michael Snyder 88496bb5c6 2000-12-08 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* dwarf2read.c (DWARF2_REG_TO_REGNUM): New macro.  Provide default
        definition.  Will be used to translate between the compiler's
        register numbering and GDB's (for register variables etc).
        (new_symbol): Use DWARF2_REG_TO_REGNUM to translate register ids.
2000-12-08 20:12:36 +00:00
Michael Snyder 0fb34c3a10 2000-12-08 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* alpha-tdep.c: Fix typo in comment.
        * dbxread.c: Fix typo in comment.
        * fr30-tdep.c: Fix typo: newline missing after comment.
        * mcore-tdep.c: Fix typo in comment.
2000-12-08 19:59:25 +00:00
J.T. Conklin bd2fa4f6c9 * gdbserver/low-hppabsd.c (buf2, environ, quit, quit_flag):
Removed unused variables and declarations.
* gdbserver/low-linux.c (buf2, environ, query, quit, quit_flag):
Likewise.
* gdbserver/low-nbsd.c (buf2, environ, quit, quit_flag):
Likewise.
* gdbserver/low-sparc.c (buf2, environ, query, quit, quit_flag):
Likewise.
* gdbserver/low-sun.c (buf2, environ, query, quit, quit_flag):
Likewise.

* gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
gdbserver/low-nbsd.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
(create_inferior): Update comment.

* gdbserver/low-nbsd.c (initialize_arch, fetch_inferior_registers,
store_inferior_registers): Provide implementations for the m68k
and ns32k.
* config/m68k/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o
* config/ns32k/nbsd.mt (GDBSERVER_DEPFILES): Likewise.
* configure.tgt (m68*-*-netbsd*, ns32k-*-netbsd*): Add gdbserver
to configdirs.
-------------------------------------------------------------------
2000-12-08 19:46:08 +00:00
Michael Snyder efb663452c 2000-12-07 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/finish.exp: New test for gdb's "finish" command.
        * gdb.base/return2.exp: New test for gdb's "return" command.
        * gdb.base/return2.c: New source file for above.
2000-12-08 19:30:32 +00:00
Elena Zannoni e6c42fda06 2000-12-07 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/sh/tm-sh.h (struct gdbarch_tdep): Rename fields
        {FP15,DR14,FV12}_REGNUM to {FP,DR,FV}_LAST_REGNUM.
	* sh-tdep.c (sh_sh3e_register_virtual_type,
 	sh_sh4_register_virtual_type, sh_do_registers_info,
 	sh_gdbarch_init, sh_sh4_register_byte, sh_sh4_register_raw_size,
 	sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
 	sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
 	sh_store_pseudo_register, sh_do_pseudo_register): Ditto.

	* sh-tdep.c (sh_gdbarch_init): Use a function pointer to set the
        disassembly print function.
	(_initialize_sh_tdep): Initialize tm_print_insn using the function
 	pointer.
2000-12-07 16:40:44 +00:00
Mark Kettenis ce58987770 From Richard Henderson <rth@twiddle.net>:
* alpha-nat.c (supply_gregset, fill_gregset): Use gdb_gregset_t.
(supply_fpregset, fill_fpregset): Use gdb_fpregset_t.
2000-12-07 10:50:50 +00:00
Fernando Nasser 69da3468fd 2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (add_abbrev_cmd): Reinstate. Add comment saying
	that is not currently used.
2000-12-06 23:53:03 +00:00
Fernando Nasser c64601c792 2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (lookup_cmd): Change disabled code into comment.
2000-12-06 23:27:41 +00:00
Fernando Nasser 7c4710aef5 2000-12-06 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c (lookup_cmd): Remove old stale copy of this routine
	which was not being used for quite some time.
2000-12-06 23:12:12 +00:00
Michael Snyder 3c077de93f 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:57:36 +00:00
Michael Snyder 660fd4696e 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Test result of "up" command.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.base/scope.exp:     Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:14:40 +00:00
Mark Kettenis 8157b96704 * gdb-stabs.h (SECT_OFF_MAX): Increase to 64.
* symfile.h (MAX_SECTIONS): Increase to 64.
2000-12-05 18:28:25 +00:00
Elena Zannoni c2ab3f09a1 2000-12-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* config/sh/tm-sh.h (struct gdbarch_tdep): Get rid of
        DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM, they are not used
        anywhere.
        * sh-tdep.c (sh_gdbarch_init): Don't initialize
        DR{2,4,6,8,10,12}_REGNUM, FV{4,8}_REGNUM.
2000-12-05 17:50:28 +00:00
Michael Snyder 62fd9fad96 2000-12-04 Michael Snyder <msnyder@cleaver.cygnus.com>
* utils.c (internal_verror): Fix typo in error msg.
2000-12-05 03:15:31 +00:00
Andrew Cagney 0dcedd822e * gdbint.texinfo (ECOFF_REG_TO_REGNUM, DWARF_REG_TO_REGNUM,
DWARF2_REG_TO_REGNUM): Document.
2000-12-05 00:44:34 +00:00
Mark Kettenis f1f64586bc * Makefile.in (symfile.o): Add gdb-stabs.h to dependencies list. 2000-12-04 23:27:59 +00:00
Kevin Buettner bbeae04739 Fix dwarf2read.c related crash in which section index was not being
initialized properly.
2000-12-04 15:55:09 +00:00
Andrew Cagney 88c72b7d71 Multiarch STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM.
2000-12-04 04:01:16 +00:00
Stephane Carrez ed99b3d09e 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup.
	(gdbarch_tdep): Likewise.
2000-12-02 17:13:44 +00:00
Stephane Carrez f91a8b6b5d 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* m68hc11-tdep.c (SOFT_D1_REGNUM): Soft registers start at 14.
	(m68hc11_register_names): Add null for register 13.
2000-12-02 17:07:04 +00:00
Stephane Carrez 908f682f97 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* m68hc11-tdep.c (m68hc11_frame_args_address): Fix args address
	computation.
	(m68hc11_frame_init_saved_regs): Frame pointer is saved only if
	the symbol exist.
	(m68hc11_analyze_instruction): New function.
	(m6811_prologue, m6812_prologue): New prologue description tables.
	(m68hc11_guess_from_prologue): Use the above.
	(m68hc11_gdbarch_init): Setup gdbarch_tdep for the prologue
	descriptions.
2000-12-02 16:55:37 +00:00
Andrew Cagney 818fa2bf21 Add check for vfork() to configure.in. Cleanup uses. 2000-12-02 15:40:56 +00:00
Andrew Cagney ab5ba170e9 * ser-unix.c (wait_for): Initialize the FD_SET before every select
call.
(ser_unix_wait_for): Ditto.
2000-12-02 14:56:20 +00:00
Andrew Cagney b045c3f9e7 Really check-in:
* Makefile.in (varobj.o): Delete special .c.o rule supressing
-Werror flag.
2000-12-02 14:08:22 +00:00
Andrew Cagney a12ee2c5a4 * m32r-rom.c (m32r_load_section): Update to match
bfd_map_over_sections's ``func'' arg.
2000-12-02 13:43:26 +00:00
Andrew Cagney 12f02c2abc * mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
``fmt''.  Make ``offset'' a CORE_ADDR.
(print_unpack): Delete.
(extended_offset): Construct and return a CORE_ADDR.
(fetch_mips_16): Return an int.  Don't assume short is 16 bits.
(unpack_mips16): Rewrite.  Add ``extension'' parameter instead of
incorrectly guessing if the instruction had an extension.
(map16): Delete array.
(mips16_op): Delete macro.
(extended_mips16_next_pc): Rewrite of old mips16_next_pc function.
When an extended instruction do a recursive call.
(mips16_next_pc): Call extended_mips16_next_pc.
(mips_next_pc): Cleanup.
2000-12-02 13:25:26 +00:00
Andrew Cagney 55d8016036 * ser-e7kpc.c (e7000pc_setstopbits): New function.
(e7000pc_ops): Add e7000pc_setstopbits.

* remote-e7000.c (e7000_detach, e7000_resume,
e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info,
e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill):
Update function signature to match target vector.

* h8300-tdep.c (h8300_command, h8300h_command, h8300s_command):
h8500-tdep.c (small_command, big_command, medium_command,
compact_command): Update function signature to match add_cmd.
2000-12-02 11:37:15 +00:00