Commit Graph

9670 Commits

Author SHA1 Message Date
Mark Salter 0015fd9aa4 *** empty log message *** 2001-03-15 18:51:56 +00:00
Mark Salter 269a569e35 (gdb_target_cmd): Add explicit error return.
(gdb_target_monitor): Add check of gdb_target_cmd return value.
2001-03-15 18:51:25 +00:00
Martin Hunt 77cd5909d2 2001-03-15 Martin Hunt <hunt@redhat.com>
* linespec.c (decode_line_1): Remove trailing quote
	when parsing double quotes.
2001-03-15 18:02:14 +00:00
Kevin Buettner f7f5a202bc Pass NULL for the mem_attrib argument in the to_xfer_memory calls. 2001-03-15 17:42:00 +00:00
Andrew Cagney 0d35ddbaee Add list of targets being obsoleted. 2001-03-15 17:06:00 +00:00
Andrew Cagney 043780a1fb Add ``attrib'' parameter to *xfer_memory() functions. 2001-03-15 16:55:15 +00:00
Andrew Cagney 9b9c068d47 Note Harris 88k is obsolete in news file. 2001-03-15 01:07:51 +00:00
Andrew Cagney f88e2c5226 Include regcache.h 2001-03-14 23:23:16 +00:00
Andrew Cagney 0981ead9af Update target list. 2001-03-14 22:05:34 +00:00
Keith Seitz 91c1720e68 * linespec.c (decode_line_1): Skip argptr over a leading
double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
2001-03-14 18:36:45 +00:00
Kevin Buettner 3cc122b3fe Add entry of ia64-aix-nat.c. 2001-03-14 18:21:04 +00:00
Andrew Cagney 5bb367b1d9 Eliminate some uses of __STDC__. 2001-03-14 16:42:30 +00:00
Andrew Cagney a728f04251 Eliminate ARCH_NUM_REGS. 2001-03-13 23:31:14 +00:00
Fernando Nasser f48ff60ac8 2001-03-13 Fernando Nasser <fnasser@redhat.com>
From Steven Johnson <sjohnson@neurizon.net>
	* cli/cli-script.c (define_command): Fix setting of post hooks.
2001-03-13 22:29:14 +00:00
Mark Kettenis 305d65cac6 * i386-linux-tdep.c: Fix formatting and clarify comments.
(i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
where appropriate.
2001-03-13 12:42:08 +00:00
Andrew Cagney bf62e5b49c * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
(proc_update_sc): Use gdb_assert instead of assert.
(proc_abort): Ditto.
(inf_set_step_thread): Ditto.
(gnu_wait): Ditto.
(S_exception_raise_request): Ditto.
(gnu_terminal_init_inferior): Ditto.
2001-03-13 00:51:40 +00:00
Kevin Buettner 21479deda0 Cleanup solib-svr4.c by moving legacy code out to its own file. 2001-03-10 06:17:24 +00:00
Kevin Buettner d7fa9de08d Committed. 2001-03-10 01:22:11 +00:00
Andrew Cagney f8241bd143 Move Philip Blundell to Write After Approval list. 2001-03-09 23:58:24 +00:00
Keith Seitz e6b4b0c29a * MAINTAINERS: Add myself to write after approval list. 2001-03-09 22:30:36 +00:00
Mark Kettenis 96836138dc * i387-tdep.c (print_i387_status_word): Fix printing of Stack
fault flag.  It is bit 6 of the x87 FPU status word, not bit 7.
2001-03-09 16:14:55 +00:00
Andrew Cagney 1b59432770 Obsolete harris 88k target. 2001-03-09 03:56:03 +00:00
Andrew Cagney 4a32a1e416 Delete make rules for obsolete files. 2001-03-09 03:36:07 +00:00
David Taylor fc33412a6a * gdb.base/annota1.exp: Move test of isnative to earlier in the
file -- to prevent failing when the compile fails but we have no
 	intention of running the tests anyway.

	* gdb.base/long_long.exp: Test target_info for no_long_long, skip
	tests if set.

	* gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
 	integers.

	* gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
	* gdb.c++/namespace.exp: Ditto.

Fix PR gdb/16.
2001-03-08 21:09:23 +00:00
David Taylor 24285e3a2b Add comment (part of immediately previous commit). 2001-03-08 20:51:38 +00:00
David Taylor ec9a34493d * stack.c (parse_frame_specification): For one argument case,
handle the situation where the argument is an integer, not an
 	address -- arguably the most common case.  This matters on
	targets where pointers and addresses are different.
2001-03-08 20:45:22 +00:00
Andrew Cagney a50c34dcb9 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
review.  Clarify GNU/LINUX/sparc.  Move other tasks to 5.2 or
general.
2001-03-08 15:13:00 +00:00
Andrew Cagney cfc046cf08 Doco SID + GDB + Solaris 8 broken. 2001-03-08 03:19:59 +00:00
Orjan Friberg 115f06de3d 2001-03-07 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
2001-03-07 17:29:58 +00:00
Orjan Friberg 1b3c55407c 2001-02-26 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
2001-03-07 17:21:43 +00:00
Mark Kettenis 39424bef91 * defs.h: Provide prototypes for floatformat_is_negative,
floatformat_is_nan and floatformat_mantissa.
* utils.c: Include "gdb_assert.h".
(floatformat_is_negative): New function.
(floatformat_is_nan): New function.
(floatformat_mantissa): New function.
* valprint.c: Include "floatformat.h".
(print_floating): Get rid of the Linux-specific
TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
help these new functions.  Print NaN's in a format conforming to
ISO C99.
2001-03-07 16:09:03 +00:00
Eli Zaretskii 7a1bd56a08 * top.c (init_main): Make `set history file name' complete on file
names.
2001-03-07 07:21:13 +00:00
J.T. Conklin 21a12a30df * Makefile.in (LINTFLAGS): Update to contain all of the macros
which define include paths used when compiling.

* util.c (savestring, msavestring): Change type of length argument.
* defs.h (savestring, msavestring): Update to match.
2001-03-07 03:10:15 +00:00
J.T. Conklin b47218fbce Remove local change that wasn't supposed to be committed. 2001-03-07 03:00:33 +00:00
J.T. Conklin 5565b5569b 2001-03-06 J.T. Conklin <jtc@redback.com>
* symtab.h (decode_line_1): Removed declaration.

        * symfile.c (#include <assert.h>): Removed.

        * arch-utils.c (#include <ctype.h>): Removed.
        * c-typeprint.c: Likewise.
        * dbxread.c: Likewise.
        * gdbtypes.c: Likewise.
        * target.c: Likewise.
        * os9kread.c: Likewise.

        * c-valprint.c (#include "demangle.h"): Removed.
        * ch-typeprint.c: Likewise.
        * eval.c: Likewise.
        * f-typeprint.c: Likewise.
        * f-valprint.c: Likewise.
        * m2-typeprint.c: Likewise.
        * typeprint.c: Likewise.
        * p-typeprint.c: Likewise.
        * valarith.c: Likewise.
        * valprint.c: Likewise.

        * m2-typeprint.c (#include "gdb_string.h"): Removed.
        * nlmread.c: Likewise.

        * mdebugread.c (#include "gdb-stabs.h"): Removed.
        * minsyms.c: Likewise.
        * mipsread.c: Likewise.
        * nlmread.c: Likewise.

        * m2-typeprint.c (#include "obstack.h"): Removed.
        * m2-valprint.c: Likewise.

        * event-loop.c (#include <setjmp.h>): Removed.
2001-03-07 02:57:08 +00:00
Stan Shebs e8be95aefe * MAINTAINERS: Remove self from specific maintenance domains
(macos, gdbserver, documentation, testsuite).
2001-03-06 19:24:29 +00:00
Kevin Buettner b6ba6518e9 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
Kevin Buettner 8a5c92d309 Fix whitespace problem in my most recent entry. 2001-03-06 00:55:19 +00:00
Kevin Buettner 596c9d4b8f Configury changes for AIX5/IA-64. 2001-03-06 00:52:31 +00:00
Michael Chastain 60e012f18d Reverted revision 1.2. 2001-03-05 23:40:47 +00:00
Michael Chastain 997079667f Revert revisions 1.81, 1.82, 1.83, 1.84, and 1.85. 2001-03-05 23:37:38 +00:00
Michael Chastain 8ffcb692e6 Revert revision 1.2. 2001-03-05 23:33:17 +00:00
Andrew Cagney eccbb20dda * TODO (GDB 5.1 Known Problems): Document z8k as broken. 2001-03-05 22:22:57 +00:00
Christopher Faylor 61e2d1f302 clarify my recent entry. 2001-03-05 17:03:03 +00:00
Christopher Faylor 9ff2efe549 * wince.c: Change realloc to xrealloc throughout.
(handle_load_dll): Use void * rather than PTR.
2001-03-05 16:59:54 +00:00
Andrew Cagney 58841d58e5 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
* ocd.c (ocd_xfer_memory): Ditto.
* ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
* MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
buildable with ,-Werror.

* Makefile.in (symfile_h): Define.
(mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
* mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
* MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
,-Werror.

* dsrec.c (make_srec): Fix internal_error fmt arg.
* MAINTAINERS: Document i960-coff as buildable with ,-Werror.
2001-03-05 16:38:07 +00:00
Michael Chastain 6cd43bc59e Obvious fix: in an entry for 1997-02-01, expand wildcard to explicit
list of files actually modified.
2001-03-04 22:23:30 +00:00
Michael Chastain af6704f764 Obvioux fix: in an entry for 1997-06-29, expand wildcard to explicit
list of files actually modified.
2001-03-04 22:08:49 +00:00
Michael Chastain 5adc7e6d3b Obvious fix: in an entry for 1997-09-10, expand wildcard to explicit
list of files actually modified.
2001-03-04 21:41:15 +00:00
Michael Chastain 7f8890b962 Obvious fix. Add missing ChangeLog entry for gdb.c++/ovldbreak.exp
change on 2001-01-28.  Embarrassing!
2001-03-04 21:23:05 +00:00
Michael Chastain f48893aa08 Obvious fix: in an entry for 2001-02-11, change "gdb.base/cplusfuncs.exp"
to "gdb.c++/cplusfuncs.exp".
2001-03-04 21:15:17 +00:00
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
Fernando Nasser 9c21ccdc34 2000-12-01 Fernando Nasser <fnasser@redhat.com>
* p-exp.y: Define strncasecmp as strnicmp for MSVC.
	(yylex): Use strncasecmp, not strnicmp.
2000-12-01 20:05:48 +00:00
Fernando Nasser d318976c46 2000-12-01 Fernando Nasser <fnasser@redhat.com>
* cli/cli-decode.c: New file. Handle lists of commands, their decoding
        and documentation.
        (add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
        add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
        add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
        add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
        help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
        undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
        lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
        Moved here from command.c.
        (add_info, add_info_alias, add_com, add_com_alias): Moved here from
        top.c.
        * cli/cli-decode.h: Definitions/declarations for the above.
        * cli/cli-cmds.c: New file.  GDB CLI commands.
        (error_no_arg, info_command, show_command, help_command, show_version,
        quit_command, pwd_command, cd_command, echo_command, shell_escape,
        make_command, show_user, set_debug, show_debug, init_cmd_lists):
        Moved here from top.c.
        (apropos_command): Moved here from command.c.
        (complete_command, source_command): Moved here (part) from top.c.
        (is_complete_command): New function. Checks if a command is the
        "complete" command.
        (init_cli_cmds): New function. Add commands to the CLI (from code
        previously in top.c.
        * cli/cli-cmds.h: Definitions/declarations for the above.
        * cli/cli-script.c: New file. GDB CLI command scripting.
        (build_command_line, get_command_line, print_command_lines,
        print_command_line, execute_user_command, execute_control_command,
        while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
        insert_args, realloc_body_list, read_next_line,
        recurse_read_control_structure, read_command_lines, free_command_lines,
        do_free_command_lines_cleanup, make_cleanup_free_command_lines,
        validate_comname, user_defined_command, define_command,
        document_command, source_cleanup_lines, do_fclose_cleanup,
        show_user_1): Moved here from top.c.
        (script_from_file): New function. Implements execution of a script
        contained in a file (part of code for the source_command() that used
        to exist in top.c).
        * cli/cli-script.h: Definitions/declarations for the above.
        * cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
        (parse_auto_binary_operation, parse_binary_operation,
        do_setshow_command, cmd_show_list): Moved here from command.c.
        * cli/cli-setshow.h: Definitions/declarations for the above.
        * top.c: Remove all CLI code, except the command loop.
        (gdb_init): Call init_cli_cmds().
        * command.c: Remove obsolete file.
        * command.h: Mark as DEPRECATED.
        * gdbcmd.h: Ditto.
        * call-cmds.h: Ditto.
        * Makefile.in (SFILES): Remove command.c.
        (COMMON_OBS): Remove command.o.
        (command.o): Remove obsolete target.
        (cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
        Refer to CLI header files.
        (cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
        (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
        SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
        SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
        subdirectory.
        * configure.in (enable_gdbcli): New option. Include the CLI in the
        executable (cannot be disabled yet).
        (CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
        CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
        the corresponding SUBDIR_CLI_* macros if CLI requested.
        * configure: Regenerate.
2000-12-01 18:01:38 +00:00
Pierre Muller d3d6d17346 2000-10-27 Pierre Muller <muller@ics.u-strasbg.fr>
* p-exp.y (yylex): avoid problem with symbol name
	starting as a operator name.
2000-12-01 10:40:10 +00:00
Fernando Nasser c5f0f3d0c8 2000-11-30 Fernando Nasser <fnasser@redhat.com>
* linespec.h: New file. Declarations for linespec.c.
        * linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c,
        symtab.c, tracepoint.c: Include the above.
        * completer.c: New file. Line completion stuff for GDB.
        (get_gdb_completer_word_break_characters,
        get_gdb_completer_quote_characters): New functions. Accessors for
        useful completer internal data.
        (filename_completer, line_completion_function, skip_quoted): Moved
        here from top.c.
        * completer.h: New file. Declarations for the above.
        * linespec.c (decode_line_1): Use
        get_gdb_completer_word_break_characters and
        get_gdb_completer_quote_characters.
        * top.c: Include completer.h.
        (filename_completer, line_completion_function, skip_quoted):
        Moved to completer.c.
        * corefile.c, exec.c, source.c, symfile.c, linespec.c: Include
        completer.h.
        * Makefile.in (SFILES): Add completer.c.
        (COMMON_OBS): Add completer.o.
        (completer.o): New target.
        (linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o,
        symtab.o, tracepoint.o): Add linespec.h to dependencies list.
        (corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h
        to dependencies list.
2000-12-01 00:43:47 +00:00
Andrew Cagney be5a57e1c9 Regenerate gdbarch.c. 2000-11-30 03:30:52 +00:00
Andrew Cagney 2c67cb8b7a Fix -Wuninitialized warnings. 2000-11-29 14:41:34 +00:00
Fernando Nasser 44097287e5 2000-11-22 Michael Chastain <chastain@redhat.com>
* mips_pro.exp: Accept either "middle -> top -> main" or
	"middle -> main" in the backtrace, because gcc can optimize
	tail calls to jumps.  Remove setup_xfail for the hppa case.
	Add a comment with the original warning messages from PR 3016,
	which was filed in 1993, to preserve them for posterity.
2000-11-28 22:53:38 +00:00
Mark Salter 81dbc5e03f *** empty log message *** 2000-11-28 21:00:57 +00:00
Mark Salter 39f0ec5c6a Add Mark Salter to Write After Approval list. 2000-11-28 21:00:23 +00:00
Christopher Faylor 66ed1d85be * win32-nat.c (dll_code_sections_add): strdup -> xstrdup. 2000-11-28 17:27:38 +00:00
Andrew Cagney 7f7e9482db * remote.c (remote_write_bytes): Add default case to switch
initializing ``todo''. Ditto for ``nr_bytes''.
* top.c (catch_errors): Always initialize ``val''.
* solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size
returning an unknown size.
* gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''.
* breakpoint.c (break_at_finish_at_depth_command_1): Initialise
extra_args to NULL.
(break_at_finish_command_1): Ditto.
2000-11-27 02:18:44 +00:00
Andrew Cagney dc10500f22 * TODO: Add GFDL updates to 5.1 release criteria. 2000-11-27 00:37:19 +00:00
Nick Clifton 7cf6486b83 Add support for configuring an xscale atrget 2000-11-26 20:04:41 +00:00
Stephane Carrez ea3881d97c Support 68HC12 arch in Gdb 2000-11-24 21:24:04 +00:00
Stephane Carrez 5d1a66bd91 Use gdbarch_tdep for 68hc11 specific data (stack_correction global) 2000-11-24 20:59:42 +00:00
Andrew Cagney 3b851bce1d Add --enable-gdb-build-warnings=... to configure{,.in}. 2000-11-24 11:02:59 +00:00
Fernando Nasser 6442669634 Fix entry typo and missing information. 2000-11-24 00:34:43 +00:00
Peter Schauer d57fc35284 * target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.
* target.c (target_signal_from_host, do_target_signal_to_host):
	Handle TARGET_SIGNAL_REALTIME_64.
2000-11-21 10:26:07 +00:00
Kevin Buettner a7ec76fe2f * solib.c (solib_open): Handle the case where
solib_absolute_prefix is NULL.
2000-11-21 09:23:32 +00:00
Michael Snyder e4f7b8c818 2000-11-20 Michael Snyder <msnyder@cleaver.cygnus.com>
* solist.h: Declare new function solib_open.
        * solib.c (solib_open): New function.  Abstracts some of the
        code from solib_map_sections, for finding the binary solib file.
        (solib_map_sections): Call solib_open.
        * solib-svr4.c (enable_break): Call solib_open.
2000-11-21 01:09:54 +00:00
J.T. Conklin 22c720812e * gdbserver/low-nbsd.c (fetch_inferior_registers,
store_inferior_registers): Support older NetBSD/powerpc systems
from before fp reg support was added.  Adapt to register number
changes caused when powerpc target was multi-arched.
2000-11-21 00:25:58 +00:00
H.J. Lu ef58a6ac64 2000-11-20 H.J. Lu <hjl@gnu.org>
* ia64-tdep.c (gdbarch_tdep): Change reference from
	ELFOSABI_MONTEREY to ELFOSABI_AIX.
2000-11-20 23:46:36 +00:00
Peter Schauer 6e77854511 * c-valprint.c (print_function_pointer_address): New function
to automatically dereference a function pointer for printing
	if necessary.
	(c_val_print):  Use print_function_pointer_address when printing
	function pointer addresses.
2000-11-20 20:33:53 +00:00
J.T. Conklin 0c9f8a6941 * gdbserver/low-nbsd.c: Fix typos. 2000-11-20 19:30:29 +00:00
Jeff Law b57d7d21ef * pa64solib.c (add_to_solib): Pass TARGET to pa64_solib_load_symbols. 2000-11-20 17:44:07 +00:00
Andrew Cagney 81078c5d69 Add linespec maintainers. 2000-11-20 14:42:16 +00:00
Andrew Cagney 2a44e7c4e7 Devolve Solaris/x86 2000-11-20 12:45:01 +00:00
Andrew Cagney e306c3082a * MAINTAINERS: Peter Schauer and Kevin Buettner maintain AIX. Jim
Blandy, KEvin Buettner and Peter Schauer share shared libs.
2000-11-20 12:31:43 +00:00
Andrew Cagney c3eb0c00b3 Mark error_no_arg() as no-return. 2000-11-20 03:37:09 +00:00
Andrew Cagney 76995688e8 Replace asprintf() / vasprintf() with xasprintf() xvasprintf(). 2000-11-20 02:06:19 +00:00
Andrew Cagney 896f186799 Add ``extern'' and STREQ to cleanups. 2000-11-20 01:57:26 +00:00
Jim Blandy e85428fca3 * symtab.c (no_symtab_msg): Remove definition.
(sources_info): Replace use of no_symtab_msg with the string
itself.
* linespec.c (no_symtab_msg): Remove declaration.
(decode_line_1): Replace uses of no_symtab_msg with the string
itself.
2000-11-19 17:27:38 +00:00
Eli Zaretskii 4a92d01105 * gdb.texinfo (Continuing and Stepping): Fixed markup and typos,
as suggested by Dmitry Sivachenko <dima@Chg.RU>.
2000-11-19 06:31:39 +00:00
Kevin Buettner 55d05f3b1d Handle optimizer code motions into the prologue. 2000-11-18 05:50:11 +00:00
Kevin Buettner ba5f58cb2e Protoization. 2000-11-18 02:05:46 +00:00
Nicholas Duffek 9d2e1bab9d * lib/gdb.exp (gdb_test): Override timeout with board info. 2000-11-17 17:16:24 +00:00
Nicholas Duffek 1aca8eb7fa * gdb.base/display.exp: Don't kill running stub. Add "again" to
the second kill and detach messages.
2000-11-17 17:13:33 +00:00
Nicholas Duffek 930764990d * configure.in: Add AC_EXEEXT.
* configure: Regenerate.
	* Makefile.in (just-check): Export EXEEXT.
	* lib/gdb.exp ($EXEEXT): Import from environment.
	* gdb.base/maint.exp: Expect $EXEEXT in executable name.  Don't
	expect "maint dump-me" on Cygwin.
	* gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
	$EXEEXT.
2000-11-17 16:37:48 +00:00
Nicholas Duffek 30e87cd372 * gdb.base/break.exp: Test backtrace and finish from called
function on all platforms, not just HP-UX.
2000-11-17 16:24:48 +00:00
Christopher Faylor b90a5f516a * gdb.texinfo: Document new 'set step-mode' command. 2000-11-17 03:59:40 +00:00
Christopher Faylor e35ce267f5 * thread.c (thread_apply_all_command): Save the command before executing it
because it may be modified.  Restore the saved command so that the same command
is executed on next thread.
(thread_apply_command): Same correction.
2000-11-17 03:49:41 +00:00
Michael Snyder 165cd47f5e 2000-11-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* regcache.c (read_register_bytes): Failing to set register_valid
        is not necessarily an error, if the register is a pseudo-register.
        Some pseudo-registers are never marked as valid, so that they will
        be read anew every time.  Determining if a pseudo-register is valid
        (or should be marked invalid) may be difficult, whereas just
        recomputing it may be cheap.
2000-11-17 01:30:53 +00:00
David Taylor 0e828ed163 * tracepoint.c (trace_find_tracepoint_command): Replace call to
parse_and_eval_address with a call to parse_and_eval_long as
	we are evaluating an integer, not an address.
	* top.c (show_commands): Ditto.
2000-11-16 14:51:50 +00:00
Kevin Buettner b095261a94 Protoization. 2000-11-15 19:58:14 +00:00
David Taylor 79496e2fad * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,
not TARGET_PTR_BIT, since we are dealing with addresses, not
	pointers.
2000-11-15 14:33:50 +00:00
Michael Snyder 08e706b15a 2000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/monitor.exp (gdb_target_cmd): Abstracts some of the
        code from gdb_target_monitor, so it can be used independantly
        for gdbserver.  Also comment out an unnecessary PUTS.
2000-11-14 22:19:02 +00:00
Michael Snyder 958a4e4cde 2000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
        * gdb.base/corefile.exp: Expect the message "Program is being
        debugged already" when we send the "corefile" command, since
        the preceeding gdb_load may have connected gdb to a remote target.
        * gdb.base/display.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.
        Replace single-letter commands with more readable ones.
        * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
        if new board info variable "no_hardware_watchpoints" is true.
        * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
        to see if stdio (printf) testing is possible.
        * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.  Use new
        proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2000-11-14 22:12:26 +00:00
Daniel Berlin 770de1994e From Kenneth Block <kenneth.block@compaq.com>
* demangle.c: Use libibery list of demanglers instead of out of
date local copy.
2000-11-14 16:46:24 +00:00
Andrew Cagney 4ad5b0f716 Fix ``show remotewritesize'' was doing a set. 2000-11-14 13:45:38 +00:00
Fernando Nasser 39124deab4 2000-11-13 Fernando Nasser <fnasser@redhat.com>
From Orjan Friberg  <orjanf@axis.com>:
        * gdb.base/printcmds.exp: Escape curly braces followed by a number
        in array print pattern match.
2000-11-14 02:36:22 +00:00
Eli Zaretskii 158b3de091 * config/djgpp/config.sed: Fix tweaking "VPATH=.:foo", and handle
the gettext's posrcprefix correctly with drive letters.
2000-11-13 14:24:46 +00:00
Jim Blandy 1300f5dda8 * stabsread.c (read_range_type): Properly construct complex
type nodes.
2000-11-10 23:18:16 +00:00
Fernando Nasser 506419459a 2000-11-10 Fernando Nasser <fnasser@totem.toronto.redhat.com>
* symtab.c (decode_line_1, total_number_of_methods, find_methods,
	build_command_line_spec, find_toplevel_char, decode_line_2):
	Move to linespec.c.
	* linespec.c: New file. Routines that handle linespecs, formerly
	in symtab.c.
	* symtab.h: Export find_line_symtab and find_function_start_sal,
	* Makefile.in: Add linespec.c.
2000-11-10 23:02:56 +00:00
Christopher Faylor 5fbbeb2988 * inferior.h (step_over_calls_kind): New enum to clarify values in
step_over_calls.
* infcmd.c (step_over_calls): Change definition.
(step_1): Use new enum values in relation to step_over_calls.
(step_once): Ditto.
(until_next_command): Ditto.
* infrun.c (clear_proceed_status): Ditto.
(handle_inferior_event): Ditto.
* inferior.h (step_stop_if_no_debug): New variable.
* infrun.c (step_stop_if_no_debug): Declare.
(handle_inferior_event): Stop the step command if we entered a function without
line info.
(_initialize_infrun): New command 'set step-mode' to control the step command.
* infcmd.c (step_once): Switch to stepi mode if there is no line info
(and switching is enabled).
2000-11-10 19:27:45 +00:00
J.T. Conklin 67e0617e6e 2000-11-10 J.T. Conklin <jtc@redback.com>
* target.c (do_xfer_memory): Only perform a single memory transfer
        instead of iterating to tranfer the entire region.  Higher layers
        are expected to call this function multiple times for partial
        transfers.
        (target_xfer_memory_partial): Remove unused local variables.

2000-11-10  Nick Duffek  <nsd@redhat.com>

        * target.c (target_xfer_memory_partial): Return bytes transferred
        instead of 0.
2000-11-10 18:34:21 +00:00
Kevin Buettner 1669605fa3 Protoization. 2000-11-10 01:19:47 +00:00
Kevin Buettner e2a44558ad Add code for relocating dynamic executables. 2000-11-10 01:07:59 +00:00
Fernando Nasser a9e2e984e2 2000-11-09 Fernando Nasser <fnasser@redhat.com>
* gdb.c++/templates.exp (test_template_breakpoints): Change Britsh
        spelling "cancelled" to U.S. spelling "canceled" to match changes
        made to gdb.
        * gdb.c++/ovldbreak.exp: Ditto.
2000-11-09 23:29:20 +00:00
J.T. Conklin 74e0dee8a1 * config/i386/nbsd.mh: Remove solib.o, solib-svr4.o from 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.
* config/sparc/nbsdelf.mh: Likewise.
* config/i386/nbsd.mt: Add solib.o, solib-svr4.o to 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.
2000-11-09 22:57:03 +00:00
Peter Schauer 63f58cc529 Add auto-solib-add support for AIX, remove obsolete and unused
SOLIB_SYMBOLS_MANUAL code, cleanup of AIX shared library handling code.
	* rs6000-nat.c (vmap_symtab):  Do not try to modify offsets
	if symbols are not yet loaded.
	(vmap_add_symbols):  New function to add symbols for a vmap entry.
	(add_vmap):  Turn errors into warnings, return NULL vmap upon
	failure. Add symbols via vmap_add_symbols only if requested.
	(xcoff_relocate_core):  Allow debugging of core files without an
	executable file. Handle NULL returns from add_vmap gracefully.
	* xcoffsolib.c (solib_add):  Remove, no longer needed.
	(solib_info):  Do not check for new shared libraries if there is no
	inferior process.
	(sharedlibrary_command):  Made static.
	Do not check for new shared libraries if there is no inferior process.
	Add symbols for requested shared libraries via vmap_add_symbols.
	(_initialize_solib):  Add `set auto-solib-add' command.
	* xcoffsolib.h (vmap_add_symbols):  Add prototype declaration.

	* config/rs6000/tm-rs6000.h (PC_LOAD_SEGMENT):  Move from here ...
	* config/rs6000/nm-rs6000.h:  ... to here, this is an AIX native
	feature.
	* config/powerpc/tm-macos.h, config/powerpc/tm-ppc-eabi.h,
	config/powerpc/tm-ppc-nw.h, config/rs6000/tm-rs6000ly.h:
	Remove #undef PC_LOAD_SEGMENT.
	* config/powerpc/aix.mt, config/rs6000/aix4.mt, config/rs6000/rs6000.mt
	(TDEPFILES):  Move xcoffsolib.o from here ...
	* config/powerpc/aix.mh, config/rs6000/aix4.mh, config/rs6000/rs6000.mh
	(NATDEPFILES):  ... to here, xcoffsolib.o contains AIX native code
	only.
	* rs6000-tdep.c:  Remove #include xcoffsolib.h, no longer needed.
	* xcoffsolib.h (xcoff_relocate_symtab_hook):  Remove declaration.
	* rs6000-nat.c (_initialize_core_rs6000):  Remove setting of
	xcoff_relocate_symtab_hook, no longer needed.
	* xcoffsolib.c (solib_info, sharedlibrary_command):  Remove
	xcoff_relocate_symtab_hook indirection, call xcoff_relocate_symtab
	directly, as xcoffsolib.c is now compiled in native AIX configurations
	only.
	* Makefile.in:  Update dependencies for rs6000-tdep.o, rs6000-nat.o
	and xcoffsolib.o.
2000-11-09 09:49:00 +00:00
Andrew Cagney c11c3a98c0 * MAINTAINERS: Specify the vax-dec-vms5.5 target tupple.
* vax-tdep.c: Include "gdbcore.h", "frame.h" and "value.h".
	(vax_print_insn): Change ``d'' to a const char pointer.
2000-11-09 06:48:48 +00:00
Michael Snyder f44c642f36 2000-11-08 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdbarch.sh: Spelling correction: registrary -> registry.
        * gdbarch.c: Ditto.
2000-11-08 23:58:46 +00:00
Andrew Cagney 2765b7984f Work around targets that don't yet define JB_PC or JB_ELEMENT_SIZE. 2000-11-08 12:26:15 +00:00
Andrew Cagney f4281f55cf Rename get_longjmp_target to m68k_get_longjmp_target. Update all m68k
targets.
2000-11-08 11:55:34 +00:00
Andrew Cagney e4f7829551 * gdbserver/configure.in (files): Don't link nm-empty.h when a
non-native target.
* configure: Regenerate.
2000-11-08 11:39:20 +00:00
Kevin Buettner ed37ab2087 Protoization. 2000-11-08 05:10:18 +00:00
Kevin Buettner 698cb3f077 AIX5 changes. 2000-11-08 04:12:40 +00:00
Daniel Berlin b3810801a5 2000-11-07 Daniel Berlin <dberlin@redhat.com>
* dwarf2read.c: Revert June 5th change for caching of types,
        as per Jim Blandy's request.
2000-11-08 02:50:51 +00:00
Fernando Nasser 8a1a01128d 2000-11-06 Fernando Nasser <fnasser@totem.toronto.redhat.com>
* wrapper.c (gdb_value_assign): New function.  Longjump-free
        version of value_assign.
        (wrap_value_assign): New function. Wrapper for value_assign.
        * wrapper.h: Add declaration for the above.
        * varobj.c (varobj_set_value): Use gdb_value_assign, not
        value_assign which can longjump.  Do not change varobj value if
        assign fails.
2000-11-06 23:12:29 +00:00
Fernando Nasser 73bc900df9 2000-11-06 Fernando Nasser <fnasser@cygnus.com>
From  Steven Johnson  <sbjohnson@ozemail.com.au>:

        This set of changes add "hookpost-" as an expansion on the original
        hooking of commands to GDB. A Hook may now be run "AFTER" execution of
        a command as well as before.

        * command.h (struct cmd_list_element): Changed elements hook and hookee
        to hook_pre and hookee_pre respectively. Added hook_post and hookee_post
        for the post hook command operation. Added hook_in so that an executing
        hook can be flagged to prevent recursion.
        * command.c (add_cmd): Changed initilization of cmd_list_element to
        reflect above changes.
        (delete_cmd): Remove both pre and post hooks.
        (help_cmd): Notify that the command has pre and/or post hooks.
        * infrun.c (normal_stop): Change references to hook_pre from hook.
        * top.c (execute_command): Run both pre and post hooks.
        (define_command): Allow definition of both pre and post hooks.
        The definition of pre-hooks is done as before, with the "hook-"
        prefix for backward compatibility.
2000-11-06 22:44:34 +00:00
Peter Schauer c7db355bcd * gdb.base/callfuncs.c (main): Moved to end of file, call
t_double_values to initialize the FPU before inferior calls are made.
	* gdb.base/callfuncs.exp:  Test for register preservation after calling
	inferior functions.  Add tests for continuining, finishing and
	returning from a stop in a call dummy.
2000-11-06 20:38:02 +00:00
Peter Schauer 1a2aab69f1 * stack.c (return_command): Pop dummy frame if we just returned from
a stop in a call dummy.
2000-11-06 20:25:36 +00:00
Kevin Buettner 5af20574b3 Protoization. 2000-11-06 04:53:14 +00:00
Kevin Buettner 74f832daf0 Protoization. 2000-11-04 00:46:46 +00:00
Kevin Buettner a275699e3a In new_symbol(), relocate symbol address by base address of the section
it is in instead of using the base address of the .text section.
2000-11-03 22:38:38 +00:00
J.T. Conklin 4930751aae * TODO: Note abstraction layer violation where "ocd reset" command
must invalidate the dcache, and how this might be fixed.

* monitor.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(monitor_open): Removed code that created local dcache.
(flush_monitor_dcache): Removed (unused function).
(monitor_resume): Removed call to dcache_invd().
(monitor_load): Likewise.
(monitor_xfer_memory): Changed to call monitor_write_memory(),
monitor_write_memory_block(), and monitor_read_memory() instead
of dcache_xfer_memory().
* monitor.h (flush_monitor_dcache): Removed (unused function).
* ocd.c (#include "dcache.h"): Removed.
(ocd_dcache): Removed.
(ocd_open): Removed code that created local dcache.
(ocd_resume): Removed call to dcache_invd().
(ocd_xfer_memory): Changed to call ocd_write_bytes() and
ocd_read_bytes() instead of dcache_xfer_memory().
(bdm_reset_command): Invalidate target dcache.
* remote-bug.c (bug_load): Remove call to dcache_invd().
(bug_resume): Likewise.
(bug_settings): Remove dcache, readfunc, and writefunc fields
from initializer.
(bug_xfer_memory): Changed to call bug_read_memory() and
bug_write_memory() instead of dcache_xfer_memory().
* remote-nindy.c (#include "dcache.h"): Removed.
(nindy_dcache): Removed.
(nindy_open): Removed code that created local dcache.
(nindy_resume): Removed call to dcache_invd().
(nindy_load): Likewise.
(nindy_xfer_inferior_memory): Changed to call ninMemPut() and
ninMemGet() instead of dcache_xfer_memory().
* remote-sds.c (#include "dcache.h"): Removed.
(sds_dcache): Removed.
(sds_open): Removed code that created local dcache.
(sds_resume): Removed call to dcache_invd().
(sds_xfer_memory): Changed to call sds_write_bytes() and
sds_read_bytes() instead of dcache_xfer_memory().
* remote-utils.c (gr_open): Removed code that created local dcache.
* remote-utils.h (#include "dcache.h"): Removed.
(struct gr_settings): Removed dcache, readfunc, and writefunc fields.
(gr_get_dcache, gr_set_dcache): Removed macro definitions.
* remote.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(remote_open_1): Removed code that created local dcache.
(remote_async_open_1): Likewise.
(remote_resume): Removed call to dcache_invd().
(remote_async_resume): Likewise.
(remote_xfer_memory): Changed to call remote_write_bytes() and
remote_read_bytes() instead of dcache_xfer_memory().
* wince.c (#include "dcache.h"): Removed.
(remote_dcache): Removed.
(child_create_inferior): Removed code that created local dcache.
(child_xfer_memory): Changed to call remote_write_bytes() and
remote_read_bytes() instead of dcache_xfer_memory().
(child_resume): Removed call to dcache_invd().

* target.c (target_dcache): Added.
(target_load): Invalidate target_dcache.
(do_xfer_memory): New function.
(target_xfer_memory): Reimplement in terms of dcache_xfer_memory().
(target_xfer_memory_partial): Likewise.
(initialize_targets): Create target_dcache.
* target.h (#include "dcache.h"): Added.
(target_open): Invalidate target_dcache.
(target_resume): Likewise.
(do_xfer_memory): New declaration.

* dcache.c (dcache_init): Removed reading and writing arguments.
(dcache_struct): Removed read_memory and write_memory fields.
(dcache_write_line): Call do_xfer_memory.
(dcache_read_line): Likewise.
(dcache_xfer_memory): Likewise.
(dcache_invalidate): Renamed from dcache_invd.
(dcache_init): Updated.
(dcache_xfer_memory): Updated.
* dcache.h (memxferfunc): Removed definition.
2000-11-03 22:00:56 +00:00
Peter Schauer 36b0c0e021 * objfiles.c (objfile_relocate): Relocate ei.entry_point with
its section offset, use SECT_OFF_TEXT only as a fallback.
2000-11-03 19:00:06 +00:00
Kevin Buettner 3ed9691ff4 Protoization. 2000-11-02 03:18:49 +00:00
Michael Snyder 1a8629c735 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/sh/tm-linux.h: New file.  Include generic tm-linux.h,
	plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use
	the sh target function instead of the default link map offsets.
	* config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES.
	Use sh/tm-linux.h instead of sh/tm-sh.h.
	* sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets):
	New function.  Construct target-specific link map offsets.
	* i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets:
	New function.  Construct target-specific link map offsets.
	* config/i386/tm-linux.h: Use above function instead of default.

2000-10-30  Michael Snyder  <msnyder@cleaver.cygnus.com>

	* config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS,
	and inclusion of solib.h.  Move up into ../tm-linux.h.
	config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h.
2000-10-31 19:35:04 +00:00
Kevin Buettner 10689f25cd Protoization. 2000-10-31 05:49:55 +00:00
Kevin Buettner 749499cbc4 solib.c relocation improvements 2000-10-30 23:31:17 +00:00
Michael Snyder 0cf9d59bcb [left out in the previous check-in]
2000-10-30  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES.
        * config/powerpc/linux.mh: ditto.
        * config/ia64/linux.mh: ditto.
        * config/i386/linux.mh: ditto.
        * config/alpha/alpha-linux.mh: ditto.
        * config/arm/linux.mh: ditto.
        * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES.
        * config/powerpc/linux.mt: ditto.
        * config/ia64/linux.mt: ditto.
        * config/i386/linux.mt: ditto.
        * config/alpha/alpha-linux.mt: ditto.
        * config/arm/linux.mt: ditto.
2000-10-30 22:35:46 +00:00
Michael Snyder 85b29e5e93 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES.
        * config/powerpc/linux.mh: ditto.
        * config/ia64/linux.mh: ditto.
        * config/i386/linux.mh: ditto.
        * config/alpha/alpha-linux.mh: ditto.
        * config/arm/linux.mh: ditto.
        * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES.
        * config/powerpc/linux.mt: ditto.
        * config/ia64/linux.mt: ditto.
        * config/i386/linux.mt: ditto.
        * config/alpha/alpha-linux.mt: ditto.
        * config/arm/linux.mt: ditto.
2000-10-30 22:33:32 +00:00
J.T. Conklin 8e1a459b89 * gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c,
somread.c, tracepoint.c: Fix spelling errors in comments.
* gdbarch.c: Regenerate.

* gnu-nat.c (S_exception_raise_request): Fix typos and spelling
errors in strings.
* m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise.
* mcore-tdep.c (mcore_analyze_prologue): Likewise.
* mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise.
* remote-e7000.c (e7000_start_remote): Likewise.
* remote-rdp.c (handle_swi): Likewise.
* remote-vx.c (vx_load_command): Likewise.
* sh-tdep.c (sh_do_pseudo_register): Likewise.
* sol-thread.c (td_err_string): Likewise.
* symtab.c (decode_line_2): Likewise.
-------------------------------------------------------------------
2000-10-30 21:50:58 +00:00
Michael Snyder e8860ec2cf 2000-10-19 Josef Ezra <jezra@emc.com>
* ax-gdb.c (gen_struct_ref): while generating data code, cases of
      "collect p1->p2->data" where not covered if p2 is a 'typedefed'
      type. this simple fix should forward the type pointer to the real
      type.
2000-10-30 21:15:56 +00:00
David Taylor bb518678ac * eval.c (parse_and_eval_long): New function.
* value.h: Declare it.

	* breakpoint.c (breakpoints_info, maintenance_info_breakpoints):
	Call parse_and_eval_long, not parse_and_eval_address.
	* command.c (do_setshow_command): Ditto.
	* infcmd.c (step_1, signal_command, continue_command): Ditto.
	* infrun.c (signals_info): Ditto.
	* stack.c (set_backtrace_limit_command, backtrace_command_1,
	up_silently_base, down_silently_base): Ditto.
	* tracepoints.c (tracepoints_info, trace_find_command,
 	trace_find_tracepoint_command): Ditto.
	* valprint.c (set_radix): Ditto.
	* values.c (show_values): Ditto.
2000-10-30 15:32:51 +00:00
Kevin Buettner fd118b61e7 Protoization. 2000-10-28 22:15:09 +00:00
J.T. Conklin ec3d358c9f * arch-utils.c (set_architecture, set_architecture_from_arch_mach,
set_gdbarch_from_file): Fix spelling error.
* v850-tdep.c (v850_target_architecture_hook): Likewise.
* gdbarch.sh: Fix spelling errors in comment.
* gdbarch.c, gdbarch.h: Regenerate.

* ppcnbsd-nat.c (fetch_core_registers, fetch_inferior_registers,
store_inferior_registers): Support older NetBSD/powerpc systems
from before fp reg support was added.  Adapt to register number
changes caused when powerpc target was multi-arched.
2000-10-27 19:17:57 +00:00
David Anderson 7e73cedf75 Corrected spelling errors in comments.
gdbarch.{c,sh} removed a word from a comment.
2000-10-27 15:02:42 +00:00
Kevin Buettner 38ef650ed6 Protoization. 2000-10-27 01:25:10 +00:00
Elena Zannoni 49d97c6077 2000-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* stabsread.c (define_symbol): Update comment.

2000-10-26 Pierre Muller <muller@ics.u-strasbg.fr>

     	* stabsread.c (define_symbol): Set the type_name of the type
	of the new symbol to the symbol name for type symbol, if the
	language is Pascal.
2000-10-26 16:08:20 +00:00
Peter Schauer f517ea4ebb * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr):
New function.
	* gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR):  Add.
	* gdbarch.c, gdbarch.h:  Regenerate.
	* valops.c (find_function_addr):  Use CONVERT_FROM_FUNC_PTR_ADDR
	unconditionally.

	* config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR):  Delete
	definition.
	* config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR):  Remove
	undef.
	* rs6000-tdep.c (rs6000_convert_from_func_ptr_addr):  Fix comment.
	(rs6000_gdbarch_init):  Register rs6000_convert_from_func_ptr_addr
	if not ELFOSABI_LINUX.
2000-10-26 07:41:25 +00:00
Kevin Buettner 53d2c54b5b Revert change of 2000-10-24 in which solib-svr4.o was added to TDEPFILES. 2000-10-25 20:48:59 +00:00
Fred Fish 92e1c15ca0 Approved by Andrew Cagney <ac131313@cygnus.com>
* mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either
	the current arch or use zero.
2000-10-25 20:06:30 +00:00
Fernando Nasser faa5effd27 2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Coding style improvement only.
2000-10-25 14:19:38 +00:00
Fernando Nasser c5b739b50d 2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* target.c (generic_mourn_inferior): Notify GUI that inferior is gone
        by calling detach_hook, if defined.
2000-10-25 14:16:25 +00:00
Kevin Buettner 44c75fb368 Call end_symtab() with SECT_OFF_TEXT (objfile). 2000-10-24 21:13:08 +00:00
Kevin Buettner afebd68999 Removed extraneous blank line from one of my entries. 2000-10-24 20:35:04 +00:00
Kevin Buettner 367829d861 Restructure my 2000-10-24 solib reorg entry. 2000-10-24 20:32:38 +00:00
Kevin Buettner 13437d4b4b Reorganize solib.c. 2000-10-24 20:05:36 +00:00
Michael Snyder 42f5c13f56 2000-10-24 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/commands.exp: Break up long lines, and re-indent.
2000-10-24 18:36:32 +00:00
Kevin Buettner 35a2f53885 Protoization. 2000-10-24 17:45:35 +00:00
Andrew Cagney 55e0deaaae * solib.c (open_symbol_file_object): Update function signature to
match catch_errors function argument.
2000-10-24 14:42:21 +00:00
Andrew Cagney 3731b38ac3 From 2000-09-06 Angela Marie Thomas <angela@cygnus.com>:
* infttrace.c (get_dictionary_entry_of_page): Function
require_memory_page_dictionary takes no args.
2000-10-24 13:10:18 +00:00
Andrew Cagney 1a1d84463e Delete gdba.el. More recent gud.el part of standard EMACS distro. 2000-10-24 05:22:11 +00:00
Andrew Cagney 7f1ef1da4a Cleanup merge botch. 2000-10-24 04:11:02 +00:00
David Anderson e26cc3490a Corrected spelling errors in comments 2000-10-23 22:49:29 +00:00
Kevin Buettner c67b4c45e2 Protoization. 2000-10-23 03:21:06 +00:00
Christopher Faylor b70c120927 Remove erroneously committed entry. 2000-10-22 23:56:05 +00:00
Andrew Cagney bb160f3e2d Add Fred Fish to the Blanket Write Privs list. 2000-10-20 08:21:45 +00:00
Kevin Buettner 7ff096288f Protoization. 2000-10-20 00:44:49 +00:00
Christopher Faylor a0dbbe470a From Daniel Berlin <dberlin@redhat.com> :
* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol language to auto
instead of unknown, so it will try to demangle the symbol.
* symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
* symtab.c (gdb_mangle_name): Properly handle C++ operators.
2000-10-20 00:15:30 +00:00
Michael Snyder ae0323a862 2000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/gdbserver.exp:  Rewritten from the ground up, to make it
        compatible with the current dejagnu tree, and to make it work with
        the new "gdbserver" in libremote.
2000-10-19 21:46:42 +00:00
Kevin Buettner c338868aa6 Protoization. 2000-10-18 03:29:25 +00:00
Michael Snyder 13a5e3b841 2000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>
* lib/gdb.exp (gdb_skip_float_test): New proc.  Skip test if
        no floating point support.
        (gdb_skip_stdio_test): New proc.  Skip test if no stdio support.
        * gdb.base/call-ar-st.exp: Use above procs to skip tests.
        * gdb.base/call-rt-st.exp: Ditto.
        * gdb.base/call-strs.exp: Ditto.
        * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
        * gdb.base/varargs.exp: Skip entire test if no printf support.
        * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
        * gdb.base/shlib-call.exp: Skip several tests if no printf support.
2000-10-17 20:00:21 +00:00
Peter Schauer 9e36d949c4 * sparc-tdep.c (sparc_fix_call_dummy): Improve comments.
Adjust call_dummy_breakpoint_offset, so that `finish' after a stop
	in a call dummy works.
	(sparc_gdbarch_init):  Fix setting of pc_in_call_dummy, it depends
	on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK.
2000-10-16 17:19:47 +00:00
Eli Zaretskii 96c405b3f0 Spelling changes from Dmitry Sivachenko <dima@Chg.RU>. 2000-10-16 07:34:02 +00:00
Kevin Buettner 832c69cf02 Protoization. 2000-10-16 06:42:28 +00:00
Fernando Nasser 40e3f985d2 2000-10-13 Fernando Nasser <fnasser@cygnus.com>
* remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
	(read_frame): Do not call error() on communication error when
	reading checksum, but return failure instead and log message.
2000-10-13 21:41:21 +00:00
Fernando Nasser a80aa921bf 2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
* varobj.c (type_changeable): Arrays are not changeable.
	Trying to check for updates was causing an error if the array lived
	in a register as gdb value_equal() cannot handle that case yet.
2000-10-13 20:42:55 +00:00
Fernando Nasser ae093f962b 2000-10-13 Fernando Nasser <fnasser@totem.to.cygnus.com>
* varobj.c (varobj_update): Prevent uninitialized error code to be
	returned on type_changed.  Also, prevent value_equal() to be called
	for the types we do not want to test for updates.
2000-10-13 20:31:38 +00:00
Fernando Nasser e9110f4f31 2000-10-11 Fernando Nasser <fnasser@totem.to.cygnus.com>
From Grant Edwards <grante@visi.com>
        This keeps the GUI alive while running an RDI target and lets the
        STOP button be used to stop the target.
        * remote-rdi.c (arm_rdi_stop): New function.  Implements target_stop.
        (init_rdi_ops): Set to_stop target vector entry to the above.
        * rdi-share/ardi.c (stop_request): New variable.  Tells when a stop
        has been requested.
        (angel_RDI_stop_request): New function. Registers that a stop has
        been requested.
        (angel_RDI_ExecuteOrStep): Add call to ui_loop_hook() in loop that
        waits while target is executing.  Initialize and reset stop_request.
        * rdi-share/ardi.h: Add declaration of angel_RDI_stop_request().
2000-10-12 22:56:31 +00:00
Kevin Buettner d93bce0603 Protoization. 2000-10-12 21:39:21 +00:00
Elena Zannoni 235d1e0322 2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Daniel Berlin <dberlin@redhat.com> :

	* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol
 	language to auto instead of unknown, so it will try to demangle
 	the symbol.
	* symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
	* symtab.c (gdb_mangle_name): Properly handle C++ operators.
2000-10-12 19:34:27 +00:00
Elena Zannoni fba7f19cf6 2000-10-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Daniel Berlin <dberlin@redhat.com> :

	* symtab.c (lookup_symbol_aux): New function. Renamed from
 	lookup_symbol. Move code to do demangling/case sensitivity to
 	lookup_symbol().
  	(lookup_symbol): Now wrapper for lookup_symbol_aux, so we can
 	perform case sensitivity/demangling without leaking memory.  Move
 	code to do demangling/case sensitivity from old_lookup_symbol to
 	here.
	(lookup_partial_symbol): Use SYMBOL_SOURCE_NAME instead of
 	SYMBOL_NAME.
	(lookup_block_symbol): Use SYMBOL_SOURCE_NAME instead of
 	SYMBOL_NAME. Don't do linear search in case of C++.

  	* symfile.c (compare_symbols): Use SYMBOL_SOURCE_NAME instead of
 	SYMBOL_NAME.
  	(compare_psymbols): Same here.
2000-10-12 16:53:06 +00:00
Kevin Buettner 120abad8b7 Protoization. 2000-10-10 05:17:25 +00:00
Peter Schauer 16d6ab6428 * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
reference to gethostbyname.
2000-10-09 19:40:37 +00:00
Ben Elliston 454313e5ed Whitespace tweak: replace leading spaces with a hard tab. 2000-10-08 22:31:22 +00:00
Kevin Buettner d742f2c220 Protoization. 2000-10-06 21:50:56 +00:00
Kevin Buettner 077276e87b Add a limit parameter for scanning the prologue. 2000-10-05 01:13:53 +00:00
Kevin Buettner 69dc947abb Protoization. 2000-10-03 22:42:32 +00:00
Kevin Buettner e082ddcac6 Protoization. 2000-10-02 00:49:55 +00:00
Kevin Buettner 8ae45c112d Make definitions of supply_gregset, fill_gregset, supply_fpregset,
and fill_fpregset match declarations in gregset.h.
2000-09-30 05:41:39 +00:00
Kevin Buettner d0849a9a5a Protoization. 2000-09-30 02:39:10 +00:00
Peter Schauer a95ac8b608 * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
PS_ERR if exec_bfd is not yet open.
2000-09-28 07:53:41 +00:00
Peter Schauer 5ef227419a * target.c (target_signal_from_host, do_target_signal_to_host):
Add support for Solaris realtime signals.
2000-09-28 07:48:14 +00:00
Kevin Buettner fa6b9313b5 Protoization. 2000-09-27 17:43:07 +00:00
Eli Zaretskii c78b412857 * gdb.texinfo (Hooks): Document the new post-hook functionality.
From Steven Johnson <sbjohnson@ozemail.com.au>.
2000-09-26 15:53:59 +00:00
Kevin Buettner 697ec6c4a5 Protoization. 2000-09-26 04:27:59 +00:00
Andrew Cagney 1b57acd296 Add Mark Kettenis to blanket write privs list. 2000-09-25 19:45:45 +00:00
Peter Schauer 582236304c * rs6000-tdep.c (rs6000_pop_frame): Use PC_IN_CALL_DUMMY to test
for call dummy instead of accessing stop_stack_dummy, which does
	not work if we `return' from a stop in a call dummy.
	(rs6000_gdbarch_init):  Use generic_save_dummy_frame_tos for
	dummy_frame_tos function to make PC_IN_CALL_DUMMY work.
2000-09-24 09:58:16 +00:00
Kevin Buettner 0e7e8d51a4 Protoization. 2000-09-24 04:42:12 +00:00
Peter Schauer d5d653533c * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
OLD_CANNOT_FETCH_REGISTER):  New definitions for accessible registers
	when accessing the registers via the U area.
	(fetch_register, store_register):  Use them.
	(cannot_fetch_register, cannot_store_register):  New functions,
	all registers should be accessible if we have GETREGS support.
	* config/i386/nm-linux.h:  Use cannot_fetch/store_register for
	CANNOT_FETCH/STORE_REGISTER definitions.
2000-09-22 17:45:47 +00:00
Fred Fish 8c6b089eed * infttrace.c (update_thread_state_after_attach): Pass address
of ttstate_t object, not the object itself.
2000-09-21 16:17:49 +00:00
Mark Kettenis e63286713f * lin-lwp.c (stop_wait_callback): Remove bogus assertions in the
code that deals with exiting/signalled threads.  Replace with
code similar to what's done in lin_lwp_wait.
2000-09-18 13:09:12 +00:00
Kevin Buettner fdb28ac401 Enable Mark Kettenis' linux thread support for Linux/PPC. 2000-09-18 01:08:24 +00:00
Kevin Buettner afd64b4e2d Protoization. 2000-09-18 00:34:51 +00:00
Fernando Nasser 586e589c18 2000-09-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* varobj.c (varobj_set_value): Call wrapped version of
	parse_exp_1() to avoid longjumps.
2000-09-16 00:49:37 +00:00
Fernando Nasser f7c9d7b698 2000-09-15 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Prevent infinite read wait to be
	interrupted after 32K seconds.
2000-09-15 20:40:15 +00:00