Commit Graph

15860 Commits

Author SHA1 Message Date
Michael Chastain dbad775550 2004-02-03 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/inherit.exp: Accept both "ctor()" and "ctor(void)".
2004-02-04 04:04:25 +00:00
Michael Chastain ec4646ef4d 2004-02-03 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/inherit.exp: Accept output with gcc 3.2-7-rh.
2004-02-04 02:01:17 +00:00
gdbadmin 89d6be807a *** empty log message *** 2004-02-04 00:00:32 +00:00
Jeff Johnston cae688ecfa 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
* breakpoint.c (struct captured_parse_breakpoint_args):  Move
        outside of #ifdef SOLIB_ADD region.
        (do_restore_lang_radix_cleanup): Ditto.
        (resolve_pending_breakpoint): Ditto.
2004-02-03 22:47:40 +00:00
Andrew Cagney 1921767605 2004-02-03 Andrew Cagney <cagney@redhat.com>
* ia64-tdep.c (read_sigcontext_register): Delete unused function.
	(process_note_abi_tag_sections): Delete unused function.
	(ia64_read_fp): Delete unused function.
	(gdbarch_extract_struct_value_address): Delete declaration.
2004-02-03 22:21:36 +00:00
Andrew Cagney 876753be32 2004-02-02 Andrew Cagney <cagney@redhat.com>
* vax-tdep.c (vax_frame_chain): Delete call to
	deprecated_inside_entry_file.
	* ns32k-tdep.c (ns32k_frame_chain): Ditto.
2004-02-03 03:44:26 +00:00
gdbadmin 96f525c5b7 *** empty log message *** 2004-02-03 00:00:33 +00:00
Mark Kettenis d4f10bf20b * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
column that's "empty" or "same value" when eliminating REG_RA
rules.
2004-02-02 22:00:14 +00:00
Fred Fish 1b8021965a Reviewed and approved by drow@mvista.com.
2004-02-02  Fred Fish  <fnf@redhat.com>
	* gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
	remote targets.  Update copyright years.
2004-02-02 21:30:02 +00:00
Jeff Johnston 18fe20335a 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Add pending breakpoint
        support.
        * gdb.base/langs.exp: Fix test which attempts to create
        breakpoint on non-existent function to handle new pending
        support.
        * gdb.base/shlib-call.exp: Use gdb_breakpoint to set
        a breakpoint.
        * gdb.base/pending.exp: New test.
        * gdb.base/pending.c: New file.
        * gdb.base/pendshr.c: Ditto.
2004-02-02 21:14:33 +00:00
Jeff Johnston 0101ce28cf 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* breakpoint.h (struct breakpoint): Add new flag, from_tty,
        and pending fields for pending breakpoint support.
        * breakpoint.c (breakpoint_enabled): Add check for not pending.
        (condition_command): Only parse condition if not a pending
        breakpoint.
        (print_one_breakpoint): Add support for pending breakpoints.
        (describe_other_breakpoints): Add checks to verify we are not
        dealing with pending breakpoints.
        (check_duplicates): Don't check pending breakpoints.
        (set_raw_breakpoint): Initialize pending flag.
        (do_restore_lang_radix_cleanup): New cleanup routine.
        (resolve_pending_breakpoint): New function.
        (re_enable_breakpoints_in_shlibs): Try and resolve any
        pending breakpoints via resolve_pending_breakpoint.
        (mention): Add pending breakpoint support.
        (parse_breakpoint_sals): Add new parameter to pass to
        decode_line_1 to indicate silent errors when files or functions
        are not found.  Change all callers.
        (do_captured_parse_breakpoint): New function.
        (break_command_1): Change prototype to return an rc value and to
        take an optional pending breakpoint pointer.  Support creating
        a pending breakpoint if a "not found" form of error occurs when
        parsing the breakpoint.  Also support resolving an existing pending
        breakpoint and be silent if the resolution fails.
        (create_breakpoints): Change prototype to take pending breakpoint
        pointer.  When resolving a pending breakpoint, use the new pointer
        to provide a conditional or commands added by the end-user.
        (delete_breakpoint): Add appropriate check for pending.
        (breakpoint_re_set_one): Ditto.
        (do_enable_breakpoint): Ditto.
2004-02-02 21:10:49 +00:00
Jeff Johnston 2650777c07 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* gdb.texinfo (Breakpoints): Add information about pending
        breakpoint support.
2004-02-02 21:07:53 +00:00
David Carlton 8d577d328a 2004-02-02 David Carlton <carlton@kealia.com>
* valops.c (enum oload_classification): New.
	(find_overload_match): Break implementation into separate
	functions; delete #if 0'd code; look for symbols within
	namespaces.
	(find_oload_champ_namespace,find_oload_champ_namespace_loop)
	(find_oload_champ,oload_method_static,classify_oload_match): New.
	* cp-support.h: Add declaration for cp_func_name; update
	declaration for make_symbol_overload_list.
	* cp-support.c (cp_func_name): New.
	(overload_list_add_symbol): Fix comment, use
	SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
	(make_symbol_overload_list): Take a function name and a namespace
	instead of a symbol; change implementation.
	(make_symbol_overload_list_using): New.
	(make_symbol_overload_list_qualified, read_in_psymtabs): New.

2004-02-02  David Carlton  <carlton@kealia.com>

	* gdb.cp/overload.exp: Add overloadNamespace tests.
	* gdb.cp/overload.cc (dummyClass, dummyInstance): New.
	(overloadNamespace, XXX): New.
	(main): Call XXX::marker2.
2004-02-02 20:44:53 +00:00
Fred Fish 15390fef31 Forgot copyright updates in previous checkin 2004-02-02 16:16:09 +00:00
Fred Fish 59773b4e06 Forgot to update copyrights in previous check in. 2004-02-02 16:14:36 +00:00
Fred Fish 22e8e3c7c5 Reviewed and approved by cagney@redhat.com.
2004-02-02  Fred Fish  <fnf@redhat.com>
	* main.c (gdb_stdtarg): Move definition to group with other
	gdb_stdtarg definitions.
	* remote-sim.c (gdb_os_write_stderr): Write output to
	gdb_stdtargerr stream instead of gdb_stdtarg stream.
	(gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
	gdb_stderr stream.
2004-02-02 16:12:49 +00:00
Fred Fish 1cd348be86 Fix typo in comment 2004-02-02 16:07:26 +00:00
Fred Fish 3ad1377116 Reviewed and approved by drow@mvista.com:
2004-02-01  Fred Fish  <fnf@redhat.com>
	* gdb.base/dump.exp: Use runto_main instead of "runto main".
	* gdb.base/finish.exp: Ditto.
	* gdb.base/gcore.exp: Ditto.
	* gdb.base/huge.exp: Ditto.
	* gdb.base/info-proc.exp: Ditto.
	* gdb.base/return2.exp: Ditto.
	* gdb.threads/gcore-thread.exp: Ditto.
2004-02-02 05:15:27 +00:00
Daniel Jacobowitz 6b753f60f5 * Makefile.in (mips-linux-nat.o): Update dependencies.
* mips-linux-nat.c: Include mips-tdep.h.
2004-02-02 03:12:32 +00:00
Daniel Jacobowitz 44c7584953 * gdb.threads/thread-specific.exp: Add missing anchor to regexp. 2004-02-02 01:57:56 +00:00
gdbadmin aeb55b2034 *** empty log message *** 2004-02-02 00:00:02 +00:00
Roland McGrath 2cb6b099ac . 2004-02-01 22:35:35 +00:00
Roland McGrath 6034ae49ff 2004-01-28 Roland McGrath <roland@redhat.com>
* sol-thread.c (sol_thread_xfer_partial): New function.
	(init_sol_thread_ops): Use that for to_xfer_partial hook.
	(init_sol_core_ops): Likewise.
2004-02-01 22:35:28 +00:00
Roland McGrath 14ed0a8b1b 2004-01-28 Roland McGrath <roland@redhat.com>
* auxv.h: New file.
	* auxv.c: New file.
	* Makefile.in (auxv_h): New variable.
	(COMMON_OBS): Add auxv.o here.
	(auxv.o): New target.
2004-02-01 22:35:24 +00:00
Roland McGrath 90c119f48c 2004-01-28 Roland McGrath <roland@redhat.com>
* config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
	procfs_xfer_auxv function.
2004-02-01 22:35:22 +00:00
Roland McGrath e2544d02e2 2004-01-28 Roland McGrath <roland@redhat.com>
* corelow.c (core_xfer_partial): New function.
	(init_core_ops): Use it for core_ops.to_xfer_partial.
2004-02-01 22:35:20 +00:00
Roland McGrath cbb685f35a 2004-01-28 Roland McGrath <roland@redhat.com>
* procfs.c (procfs_make_note_section): If we can read
	TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
	* linux-proc.c (linux_make_note_section): Likewise.
2004-02-01 22:35:15 +00:00
Roland McGrath 4e73f23d28 2004-01-28 Roland McGrath <roland@redhat.com>
* procfs.c (procfs_xfer_partial): New function.
	(init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
	* Makefile.in (procfs.o): Add $(auxv_h) dep.
	* procfs.c (procfs_make_note_section): If we can read
	TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
	* linux-proc.c (linux_make_note_section): Likewise.
2004-02-01 22:35:13 +00:00
Roland McGrath 2146d243ce 2004-01-28 Roland McGrath <roland@redhat.com>
* target.h (enum target_object): Add TARGET_OBJECT_AUXV.
	* inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
	macro if that is defined.
2004-02-01 22:35:10 +00:00
Roland McGrath 3cf93817cf 2004-01-28 Roland McGrath <roland@redhat.com>
* procfs.c (procfs_xfer_partial): New function.
	(init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
	* Makefile.in (procfs.o): Add $(auxv_h) dep.
	* auxv.h: New file.
	* auxv.c: New file.
	* Makefile.in (auxv_h): New variable.
	(COMMON_OBS): Add auxv.o here.
	(auxv.o): New target.
2004-02-01 22:35:08 +00:00
Mark Kettenis 005bc093f6 * gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
that opening the file succeeds on OpenBSD.
2004-02-01 18:51:29 +00:00
Daniel Jacobowitz fa5281d02b * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
and check the specified thread for each breakpoint.
	* breakpoint.h (bpstat_stop_status): Update prototype.
	* infrun.c (handle_inferior_event): Update calls to
	bpstat_stop_status.
2004-02-01 18:05:09 +00:00
Daniel Jacobowitz c47cebdbd2 * gdb.threads/thread-specific.c: New file.
* gdb.threads/threads-specific.exp: New test script.
	* lib/gdb.exp (gdb_test_multiple): Allow user patterns access
	to expect_out.
2004-02-01 18:04:37 +00:00
Mark Kettenis 5a01311c59 * gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs
only on the "print_small_structs from print_long_arg_list" test.
2004-02-01 10:17:36 +00:00
Daniel Jacobowitz 26ee262d1f * Makefile.in (cli-cmds.o): Add $(readline_h). 2004-02-01 05:50:53 +00:00
Daniel Jacobowitz d9b526553b * cli/cli-cmds.c: Include readline.h.
(complete_command): Pass the start of the last word to
	complete_line.
2004-02-01 05:49:28 +00:00
Daniel Jacobowitz ce22a4f1db * gdb.base/completion.exp: Kill a stray backslash.
From Jim Ingham <jingham@apple.com>:
	* gdb.base/completion.exp: Test that "complete file ./gdb.base/compl"
	agrees with the result from sending a tab.
2004-02-01 05:49:07 +00:00
gdbadmin 7b16db4bd5 *** empty log message *** 2004-02-01 00:00:32 +00:00
Daniel Jacobowitz 5544ad8993 * linux-low.c: Update copyright year.
(check_removed_breakpoint): Clear pending_is_breakpoint.
	(linux_set_resume_request, linux_queue_one_thread)
	(resume_status_pending_p): New functions.
	(linux_continue_one_thread): Use process->resume.
	(linux_resume): Only resume threads if there are no pending events.
	* linux-low.h (struct process_info): Add resume request
	pointer.
2004-01-31 22:19:32 +00:00
Daniel Jacobowitz 9709f61c0f * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
argument, and change first argument to a CORE_ADDR.
	* breakpoint.h (bpstat_stop_status): Update prototype.
	* infrun.c (adjust_pc_after_break): Add a new comment.
	(handle_inferior_event): Update calls to bpstat_stop_status.
2004-01-31 19:59:06 +00:00
Daniel Jacobowitz 4f1280bb71 * breakpoint.h: Update copyright years. 2004-01-31 19:24:18 +00:00
Daniel Jacobowitz 4fa8626cb3 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
(bpstat_stop_status): Don't decrement PC.
	* breakpoint.h (software_breakpoint_inserted_here_p): Add
	prototype.
	* infrun.c (adjust_pc_after_break): New function.
	(handle_inferior_event): Call it, early.  Remove later references
	to DECR_PC_AFTER_BREAK.
	(normal_stop): Add commentary.
2004-01-31 19:18:13 +00:00
Daniel Jacobowitz fad0733a64 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
2004-01-27 double-free fix.
2004-01-31 18:14:08 +00:00
Daniel Jacobowitz abbab9d3eb * gdb.base/chng-syms.exp: Remove stray newline. 2004-01-31 18:11:25 +00:00
Mark Kettenis 42cdca6c41 * sparc-tdep.c (sparc_fetch_wcookie): New function.
(sparc32_frame_prev_register): Handle StackGhost.
(sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2004-01-31 15:42:24 +00:00
Mark Kettenis 53904d1e5f * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for
*-*-openbsd*.
* gdb.asm/openbsd.inc: New file.
2004-01-31 14:32:24 +00:00
gdbadmin f7f58dbed2 *** empty log message *** 2004-01-31 00:00:33 +00:00
Mark Kettenis 3a4b3aac5a * gdb.asm/asm-source.exp: Strip -Wl, from link-flags. Don't
append -static to link-flags for *-*-freebsd*, *-*netbsd* and
*-*solaris2*.  Remove commented out default settings for
asm-flags.  Replace gdb_compile with target_link.
2004-01-30 21:23:46 +00:00
Daniel Jacobowitz 2a68b70e96 * regcache.c (new_register_cache): Clear the allocated register
buffer.  Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2004-01-30 15:08:57 +00:00
Michael Chastain ebac27b4c3 2004-01-29 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/inherit.exp: Rewrite.  Use gdb_test_multiple and gdb
	for all tests.  Remove old hp-ux and cygnus xfail cases.
2004-01-30 01:37:42 +00:00
gdbadmin 367b6c920c *** empty log message *** 2004-01-30 00:00:02 +00:00
Roland McGrath 932d541674 . 2004-01-29 21:54:54 +00:00
Roland McGrath e7c61be38f 2004-01-29 Roland McGrath <roland@redhat.com>
* configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
	* configure: Regenerated.
2004-01-29 21:54:34 +00:00
Roland McGrath 199587082a 2004-01-29 Roland McGrath <roland@redhat.com>
* procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
	* Makefile.in (procfs.o): Add dep.
2004-01-29 21:54:22 +00:00
Paul N. Hilfinger d8679d841d New test to check that GDB does not crash due to memory corruption
when a reload caused by a change in an executable invalidates
a breakpoint condition.
2004-01-29 11:15:44 +00:00
gdbadmin 79cf253c04 *** empty log message *** 2004-01-29 00:00:02 +00:00
Andrew Cagney 47d3492a0e 2004-01-28 Andrew Cagney <cagney@redhat.com>
* tui/tui-stack.h: Update copyright.
	(struct frame_info): Add opaque declaration.
	(tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
	(tui_show_locator_content): Rename tuiShowLocatorContent.
	(tui_show_frame_info): Rename tuiShowFrameInfo.
	* tui/tui-stack.c: Update copyright.  Update references.
	* tui/tui-winsource.c: Update references.
	* tui/tui-win.c: Update references.
	* tui/tui-layout.c: Update references.
	* tui/tui-hooks.c: Update copyright, update references.
	* tui/tui.c: Update copyright, update references.
	* tui/tui-disasm.c: Update references.
2004-01-28 23:16:50 +00:00
David Carlton 5d51ca5457 2004-01-28 David Carlton <carlton@kealia.com>
* dwarf2read.c (add_partial_structure): Use demangled name if
	namespace equals "".
2004-01-28 18:43:06 +00:00
Jim Blandy 2a35147e4a * dwarf2read.c (read_func_scope): Re-indent comment. 2004-01-28 04:05:22 +00:00
Jim Blandy 086ed43dbd Clean up misapplied patch:
* dwarf2read.c (determine_prefix): Change one of the two forward
declarations for 'determine_prefix_aux' to a declaration for this.
(read_func_scope): Use cu->language, not cu_language.  Pass 'cu'
argument to 'die_specification'.
2004-01-28 04:02:52 +00:00
Andrew Cagney a355c7de35 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
* breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
	b->exp to NULL after freeing so that error during re-parsing or
	evaluation of expressions associated with breakpoint don't
	eventually lead to re-freeing of storage.
	Committed by Andrew Cagney.
2004-01-28 01:39:51 +00:00
gdbadmin a9991af858 *** empty log message *** 2004-01-28 00:00:32 +00:00
Andrew Cagney 63ff5125e3 2004-01-27 Andrew Cagney <cagney@redhat.com>
* source.c (ambiguous_line_spec): Delete undefined declaration.
	* m32r-rom.c (m32r_set_board_address): Delete unused function.
	(m32r_set_server_address, m32r_set_download_path): Ditto.
	* remote-fileio.c (remote_fileio_to_fio_int): Ditto.
2004-01-27 23:19:51 +00:00
Daniel Jacobowitz e142c38c71 * dwarf2read.c: Update calls to changed and renamed functions, and
references to moved variables.

	(struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
	language, language_defn, list_in_scope, and ftypes members.
	(cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
	(cu_language_defn, list_in_scope, ftypes, cu_header_offset)
	(baseaddr): Remove globals.

	(dwarf_attr): Renamed to dwarf2_attr.  Add CU argument.
	(set_cu_language, die_is_declaration, die_specification)
	(determine_prefix, determin_prefix_aux, class_name, namespace_name)
	(dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
	(dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
	(initialize_cu_func_list, add_to_cu_func_list): Add CU argument.

	(dwarf2_build_psymtabs_hard): Add local baseaddr.  Initialize
	cu.list_in_scope.  Don't initialize cu_header_offset.
	(add_partial_symbol): Add local baseaddr.
	(psymtab_to_symtab_1): Add local baseaddr.  Use
	objfile->section_offsets for consistency.  Don't initialize
	cu_header_offset; do initialize cu.header.offset and
	cu.list_in_scope.
	(read_file_scope, read_func_scope, read_lexical_block_scope)
	(dwarf_decode_lines, new_symbol): Add local baseaddr.
2004-01-27 20:47:20 +00:00
Michael Chastain fb328ecc90 Fix capitalization in my last ChangeLog entry.
"Add".
2004-01-27 14:07:02 +00:00
Michael Chastain c6e06edef4 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
* PROBLEMS: add gdb/1516.
2004-01-27 09:46:16 +00:00
Andrew Cagney 48184fd4b3 2003-12-29 Robert Millan <robertmh@gnu.org>
Patch committed by Andrw Cagney.
	* configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
	* configure.tgt: Match knetbsd*-gnu.
2004-01-27 04:10:38 +00:00
Andrew Cagney f3699be3e9 2004-01-26 Andrew Cagney <cagney@redhat.com>
* breakpoint.c (catch_command_1): Delete #ifdef code.
	(catch_fork_command_1): Delete #ifdef wrapper.
	(catch_exec_command_1): Ditto.
	(catch_load_command_1): Ditto.
	(catch_unload_command_1): Ditto.
2004-01-27 03:13:34 +00:00
Michael Chastain 0a55bc2299 2004-01-24 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/local.exp: Rewrite "ptype Local".  Add "ptype l".
	Provide arms for current output in all my configurations.
2004-01-27 02:43:35 +00:00
Andrew Cagney c1321b30cf 2004-01-26 Andrew Cagney <cagney@redhat.com>
* breakpoint.c (watchpoint_check): Delete #if0ed variable.
	(catch_breakpoint): Delete #if0ed function.
	(disable_catch_breakpoint): Ditto.
	(delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
	(disable_catch, enable_catch, delete_catch): Ditto.

Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.149
diff -u -r1.149 breakpoint.c
--- breakpoint.c	17 Jan 2004 21:56:12 -0000	1.149
+++ breakpoint.c	27 Jan 2004 00:11:06 -0000
@@ -2455,9 +2455,6 @@
   struct breakpoint *b;
   struct frame_info *fr;
   int within_current_scope;
-#if 0
-  struct frame_id current_frame_id;
-#endif

   b = bs->breakpoint_at;

@@ -5879,30 +5876,6 @@
     do_cleanups (old_chain);
 }

-#if 0
-/* These aren't used; I don't konw what they were for.  */
-/* Set a breakpoint at the catch clause for NAME.  */
-static int
-catch_breakpoint (char *name)
-{
-}
-
-static int
-disable_catch_breakpoint (void)
-{
-}
-
-static int
-delete_catch_breakpoint (void)
-{
-}
-
-static int
-enable_catch_breakpoint (void)
-{
-}
-#endif /* 0 */
-
 static void
 ep_skip_leading_whitespace (char **s)
 {
@@ -6482,30 +6455,6 @@
   b->thread = -1;
   return b;
 }
-
-#if 0
-/* These aren't used; I don't know what they were for.  */
-/* Disable breakpoints on all catch clauses described in ARGS.  */
-static void
-disable_catch (char *args)
-{
-  /* Map the disable command to catch clauses described in ARGS.  */
-}
-
-/* Enable breakpoints on all catch clauses described in ARGS.  */
-static void
-enable_catch (char *args)
-{
-  /* Map the disable command to catch clauses described in ARGS.  */
-}
-
-/* Delete breakpoints on all catch clauses in the active scope.  */
-static void
-delete_catch (char *args)
-{
-  /* Map the delete command to catch clauses described in ARGS.  */
-}
-#endif /* 0 */

 static void
 catch_command (char *arg, int from_tty)
2004-01-27 00:11:39 +00:00
gdbadmin 8b61078920 *** empty log message *** 2004-01-27 00:00:32 +00:00
Andrew Cagney b450112530 Index: ChangeLog
2004-01-26  Andrew Cagney  <cagney@redhat.com>

	* remote.c (echo_check, quit_flag): Delete variables.
	(cisco_kernel_mode): Delete variable.
	(minitelnet_return, tty_input, escape_count): Delete variables.
	(remote_cisco_mode): Delete variable.
	(remote_cisco_open, remote_cisco_close): Delete function.
	(remote_cisco_mourn, remote_cisco_wait): Delete function.
	(init_remote_cisco_ops): Delete function.
	(_initialize_remote): Do not install "remote cisco" code.
	(read_frame): Delete cisco specific code.
	(remote_info_process): Delete function.
	(remote_wait): Delete cisco specific code.
	(remote_cisco_section_offsets): Delete function.
	(remote_cisco_objfile_relocate): Delete function.
	(remote_async_wait): Delete cisco specific code.
	(minitelnet, readtty, readsocket): Delete function.

Index: doc/ChangeLog
2004-01-26  Andrew Cagney  <cagney@redhat.com>

	* gdb.texinfo (Overview): Delete references to the cisco protocol
	including the "N" response.
2004-01-26 23:07:01 +00:00
Andrew Cagney 74055713e6 2004-01-26 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate.  Add
	comments mentioning extract_returned_value_address.
	* infcmd.c (print_return_value): Update.  Add comments on
	extract_returned_value_address.
	* stack.c (return_command): Add comments on
	extract_returned_value_address.
	* values.c: Update comment.
	* m32r-tdep.c: Update comment.
	* sparc-tdep.c: Update comment.
	* ia64-tdep.c (ia64_use_struct_convention): Update comment.
	* xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
	* sh64-tdep.c (sh64_gdbarch_init): Update.
	* sh-tdep.c (sh_gdbarch_init): Update.
	* s390-tdep.c (s390_gdbarch_init): Update.
	* rs6000-tdep.c (rs6000_gdbarch_init): Update.
	* m68klinux-tdep.c (m68k_linux_init_abi): Update.
	* m68k-tdep.c (m68k_gdbarch_init): Update.
	* m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
	* m32r-tdep.c (m32r_gdbarch_init): Update.
	* ia64-tdep.c (ia64_gdbarch_init): Update.
	* h8300-tdep.c (h8300_gdbarch_init): Update.
	* frv-tdep.c (frv_gdbarch_init): Update.
	* arm-tdep.c (arm_gdbarch_init): Update.
	* alpha-tdep.c (alpha_gdbarch_init): Update.

Index: doc/ChangeLog
2004-01-26  Andrew Cagney  <cagney@redhat.com>

	* gdbint.texinfo (Target Architecture Definition): Rename
	EXTRACT_STRUCT_VALUE_ADDRESS to
	DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2004-01-26 20:52:13 +00:00
Andrew Cagney a67af2b9de 2004-01-26 Andrew Cagney <cagney@redhat.com>
* dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
	SYMBOL_LOCATION_FUNCS
	(dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
	"struct symbol_ops".
	* dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
	type to "struct symbol_ops".
	* symtab.h (struct symbol_ops): Rename "struct location_funcs".
	(struct symbol): Replace ".aux_value.loc.funcs" and
	".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
	(SYMBOL_OBJFILE): Delete macro.
	(SYMBOL_LOCATION_FUNCS): Delete macro.
	(SYMBOL_LOCATION_BATON): Update.
	* dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
	intead of SYMBOL_LOCATION_FUNCS.
	* ax-gdb.c (gen_var_ref): Ditto.
	* printcmd.c (address_info): Ditto.
	* findvar.c (read_var_value): Ditto.
	(symbol_read_needs_frame): Ditto.
2004-01-26 20:36:32 +00:00
Andrew Cagney c034e007d5 Index: ChangeLog
2004-01-26  Andrew Cagney  <cagney@redhat.com>

	* dwarf2read.c (read_func_scope): Document frame-base hack.
2004-01-26 19:55:45 +00:00
gdbadmin d0fdc0f861 *** empty log message *** 2004-01-26 00:00:02 +00:00
Mark Kettenis bb472c1e07 * infcmd.c (print_return_value): Plug memory leak; delete
ui_stream object.  Rename argument `structure_return' to
`struct_return'.
2004-01-25 21:00:18 +00:00
Mark Kettenis f941662f5e * infcmd.c (print_return_value): Wrap long lines.
(finish_command_continuation, finish_command): Remove unused
variable `funcaddr'.  Fix some coding-standards problems.
2004-01-25 17:32:45 +00:00
Mark Kettenis c558d81a87 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
SECT_SIZE is large enough, not wheter it's exactly the right size.
(sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
TDEP->fpregset to zero.
2004-01-25 12:10:55 +00:00
Mark Kettenis bf1e58615c Fix Typo. 2004-01-25 12:08:41 +00:00
Mark Kettenis c8e737d5b4 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also sipply the
floating-point registers for traditional NetBSD core files.
(sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
TDEP->sizeof_fpregset here.
2004-01-25 12:03:36 +00:00
Mark Kettenis 566626fa4d * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
* sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
function with code split out from
sparc32nbsd_sigcontext_frame_cache.
(sparc32nbsd_sigcontext_frame_cache): Use
sparc32nbsd_sigcontext_saved_regs.
(_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
OpenBSD.
* sparcobsd-tdep.c: New file.
* Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
(sparcobsd-tdep.o): New dependency.
* configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
* config/sparc/obsd.mt: New file.
2004-01-25 11:46:45 +00:00
Mark Kettenis f0f207fd1d Fix typo. 2004-01-25 11:38:34 +00:00
Mark Kettenis 4c72d57a4b * sparc-tdep.c (sparc32_gdbarch_init): Don't require
TDEP->fpregset to be initialized to enable core file register
sets.
2004-01-25 00:58:53 +00:00
gdbadmin 0b69dc6c23 *** empty log message *** 2004-01-25 00:00:32 +00:00
Mark Kettenis 1e067c66c8 * sparc64-tdep.h (stryct_frame_info, struct trad_frame_saved_reg):
Add opaque declarations.
(sparc64nbsd_sigcontext_saved_regs): New prototype.
* sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
function with code split out from
sparc64nbsd_sigcontext_frame_cache.
(sparc64nbsd_sigcontext_frame_cache): Use
sparc64nbsd_sigcontext_saved_regs.
(_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
OpenBSD.
* sparc64obsd-tdep.c: New file.
* Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
(sparc64obsd-tdep.o): New dependency.
* configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
gdb_osabi to GDB_OSABI_OPENBSD_ELF.
* config/sparc/obsd64.mt: New file.
2004-01-24 22:18:22 +00:00
Michael Chastain 94b8e87660 2004-01-24 Michael Chastain <mec.gnu@mindspring.com>
* lib/compiler.c: Add hp_cc_compiler and hp_aCC_compiler.
	* lib/compiler.cc: Likewise.
	* lib/gdb.exp (get_compiler_info): Always call gdb_compile to
	get the right preprocessor.  Eval the output directly.  Remove
	special tests for hp_cc_compiler and hp_aCC_compiler.  Remove
	hp_f77_compiler and hp_f90_compiler completely.
	(gdb_preprocess): Delete.
	(get_compiler): Delete.
2004-01-24 21:59:03 +00:00
Mark Kettenis 690668cc17 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
read the instruction at PC.
2004-01-24 21:34:45 +00:00
Mark Kettenis 7e5e9f880f * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
value of GDB_OSABI_DEFAULT.
(sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
instead of GDB_OSABI_NETBSD_AOUT.
2004-01-24 20:55:41 +00:00
Mark Kettenis 7cf03d44ce * gdb.base/charset.c, gdb.base/dump.c, gdb.base/huge.c: Include
<string.h>.
2004-01-24 18:25:06 +00:00
Eli Zaretskii 3bbe969674 * gdb.texinfo (KOD): Document "show os". Add index entries for
"set/show os" and "info cisco" commands.
2004-01-24 11:37:29 +00:00
Nick Roberts ad27498312 Update copyright year. 2004-01-24 04:22:51 +00:00
Nick Roberts 68b6dce908 *** empty log message *** 2004-01-24 04:20:55 +00:00
gdbadmin 6684fb8cee *** empty log message *** 2004-01-24 00:00:32 +00:00
Andrew Cagney 080ce8c082 2004-01-23 Andrew Cagney <cagney@redhat.com>
* printcmd.c (display_command): Replace tui_set_display call with
	tui_set_layout_for_display_command.
	* tui/tui.h (enum tui_win_type): Define.
	(tui_set_layout): Delete declaration.
	(tui_set_layout_for_display_command): Rename set_tui_layout.
	* tui/tui-data.h (enum tui_layout_type): Define.
	* tui/tui-layout.h: Update copyright.  Include "tui-data.h" and
	"tui.h".
	(tui_add_win_to_layout): Rename tuiAddWinToLayout.
	(tui_default_win_height): Rename tuiDefaultWinHeight.
	(tui_default_win_viewport_height): Rename
	tuiDefaultWinViewportHeight.
	(tui_set_layout): RenametuiSetLayout.
	* tui/tui-layout.c: Update references.
	* tui/tui.c: Update references.
	* tui/tui-disasm.c: Update references.
2004-01-23 23:25:17 +00:00
David Carlton b368761e45 2004-01-23 David Carlton <carlton@kealia.com>
Partial workaround for PR c++/1511:
	* cp-namespace.c: Include frame.h.
	(cp_lookup_transparent_type): New
	(cp_lookup_transparent_type_loop): New.
	* cp-support.h: Declare cp_lookup_transparent_type.
	* symtab.c (basic_lookup_transparent_type): Renamed from
	lookup_transparent_type.
	(lookup_transparent_type): Replace old body by a call to
	current_language->la_lookup_transparent_type.
	* symtab.h: Update copyright.  Declare
	basic_lookup_transparent_type.
	* language.h: Update copyright.
	(struct language_defn): Add la_lookup_transparent_type.
	* language.c: Update copyright.
	(unknown_language_defn): Add basic_lookup_transparent_type.
	(auto_language_defn): Add basic_lookup_transparent_type.
	(local_language_defn): Add basic_lookup_transparent_type.
	* ada-lang.c: Update copyright.
	(ada_language_defn): Add basic_lookup_transparent_type.
	* c-lang.c: Update copyright.
	(c_language_defn): Add basic_lookup_transparent_type.
	(cplus_language_defn): Add basic_lookup_transparent_type.
	(asm_language_defn): Add basic_lookup_transparent_type.
	(minimal_language_defn): Add basic_lookup_transparent_type.
	* f-lang.c: Update copyright.
	(f_language_defn): Add basic_lookup_transparent_type.
	* jv-lang.c: Update copyright.
	(java_language_defn): Add basic_lookup_transparent_type.
	* m2-lang.c: Update copyright.
	(m2_language_defn): Add basic_lookup_transparent_type.
	* objc-lang.c: Update copyright.
	(objc_language_defn): Add basic_lookup_transparent_type.
	* p-lang.c: Update copyright.
	(p_language_defn): Add basic_lookup_transparent_type.
	* scm-lang.c: Update copyright.
	(scm_language_defn): Add basic_lookup_transparent_type.
	* Makefile.in (cp-namespace.o): Depend on frame.h.

2004-01-23  David Carlton  <carlton@kealia.com>

	* gdb.cp/rtti.exp: Don't include full path in ${srcfile}.  Add
	test for cp_lookup_transparent_type.
	* gdb.cp/rtti1.cc: Update copyright.  Add n2::func and refer_to;
	call them.
2004-01-23 23:03:31 +00:00
Daniel Jacobowitz f2061b53c1 * gdb.mi/mi-var-child.exp: Update copyright year. Move new test
after -var-update.
2004-01-23 22:46:13 +00:00
David Carlton fdde2d8148 2004-01-23 David Carlton <carlton@kealia.com>
Patch for PR c++/1520:
	* dwarf2read.c (read_func_scope): Set processing_current_prefix
	properly if we have a specification die.
	(determine_prefix_aux): Rename from determine_prefix.
	(determine_prefix): Like the old determine_prefix, but never
	returns NULL.
2004-01-23 22:41:28 +00:00
Theodore A. Roth 5b828b6b4b * avr-tdep.c: Update copyright.
(avr_iaddr_p): Delete unused function.
(avr_saddr_p): Delete unused function.
2004-01-23 22:37:14 +00:00
David Carlton 37fc574aa0 2004-01-23 David Carlton <carlton@kealia.com>
* gdb.cp/namespace.cc (C::ensureRefs): New.
	* gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
2004-01-23 21:55:57 +00:00
David Carlton a1b8c0673d 2004-01-23 David Carlton <carlton@kealia.com>
* symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
	Fix for PR symtab/1534.
2004-01-23 17:56:46 +00:00
gdbadmin a69fbd84ce *** empty log message *** 2004-01-23 00:00:02 +00:00
Mark Kettenis f2cab56957 * NEWS (New native configurations): Mention OpenBSD/sparc and
OpenBSD/sparc64.
* configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
* configure.host: Likewise.
* sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
handler for OpenBSD.
* sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
2004-01-22 23:18:04 +00:00
Mark Kettenis 89aac506c2 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
(_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
2004-01-22 22:57:59 +00:00
Mark Kettenis 36662fde7b * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
* cli/cli-cmds.c (shell_escape): Likewise.
2004-01-22 22:20:39 +00:00
Mark Kettenis 642d8300fe * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
OpenBSD .note.openbsd.ident sections.
2004-01-22 21:56:34 +00:00
David Carlton fae299cdd3 2004-01-22 David Carlton <carlton@kealia.com>
* dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
	get_scope_pc_bounds.
	(read_file_scope): Ditto.
	(get_scope_pc_bounds): New function, produced by extracting code
	from the above two functions, consolidating it, and adding support
	for DW_TAG_namespace.
2004-01-22 19:56:54 +00:00
gdbadmin 51f72ab2bc *** empty log message *** 2004-01-22 00:00:02 +00:00
Mark Kettenis a49d618c8c * osabi.c (MAX_NOTESZ): New define.
(check_note): New function.
(generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
check_note.
2004-01-21 23:07:26 +00:00
Roland McGrath fe61caabef . 2004-01-21 20:50:57 +00:00
Roland McGrath a8cbc6f7ed 2004-01-21 Roland McGrath <roland@redhat.com>
* MAINTAINERS (write after approval): Add myself.
2004-01-21 20:50:41 +00:00
Eli Zaretskii ec14596596 * utils.c (init_page_info): Move declarations of `rows' and
`cols' before the __GO32__-specific code.  Move the closing brace
	outside the #ifdef __GO32__..#endif block.
	[__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
2004-01-21 18:46:23 +00:00
Eli Zaretskii 5843504f37 * Makefile.in (install-info): Prepend $(DESTDIR) to $(infodir). 2004-01-21 18:44:52 +00:00
Paul Brook 877522dba4 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
BPSTAT_WHAT_CHECK_SHLIBS.
2004-01-21 16:32:07 +00:00
Paul Brook dbf5be1caf * MAINTAINERS: Add myself to write-after-approval. 2004-01-21 16:30:42 +00:00
Andrew Cagney 5a1efed76c 2004-01-20 Andrew Cagney <cagney@redhat.com>
* ax-gdb.c (print_axs_value): Delete unused function.
	* jv-lang.c (java_lookup_type): Delete unused function.
	* cli/cli-dump.c (dump_filetype): Delete unused function.
	* remote-mips.c (remote_mips_insert_hw_breakpoint)
	(remote_mips_remove_hw_breakpoint): Delete unused functions.
	(mips_getstring): Delete unused function.
	(pmon_insert_breakpoint): Delete #if0ed function.
	(PMON_MAX_BP): Delete #if0ed MACRO.
	(mips_pmon_bp_info): Delete #if0ed variable.
	(pmon_remove_breakpoint): Delete #if0ed function.
	* monitor.c (monitor_write_even_block): Delete unused function.
	(monitor_write_memory_block): Delete #if0ed code.
	* dink32-rom.c (dink32_load): Delete unused function.
	(_initialize_dink32_rom): Delete #if0ed code.
	* d10v-tdep.c (d10v_daddr_p): Delete unused function.
2004-01-21 15:37:11 +00:00
Andrew Cagney b0a30fcea7 2004-01-20 Andrew Cagney <cagney@redhat.com>
* tui/tui-command.c: Update references.
	* tui/tui-io.c: Update references.
	* tui/tui-command.h: Update copyright.
	(tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
2004-01-21 04:16:53 +00:00
Andrew Cagney 81f08b92d6 2004-01-20 Andrew Cagney <cagney@redhat.com>
* source.c (ambiguous_line_spec): Delete never-defined function.
	* remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
	* gdbtypes.c (add_name, add_mangled_type): Ditto.
	* cli/cli-cmds.c (validate_comname): Ditto.
2004-01-21 04:11:16 +00:00
gdbadmin 8e5b3ccb79 *** empty log message *** 2004-01-21 00:00:01 +00:00
Andrew Cagney 65f056028c 2004-01-20 Andrew Cagney <cagney@redhat.com>
* tui/tui-disasm.h: Update copyright.  Include "tui.h" and
	"tui-data.h".
	(tui_set_disassem_content): Rename tuiSetDisassemContent.
	(tui_show_disassem): Rename tuiShowDisassem.
	(tui_show_disassem_and_update_source): Rename
	tuiVerticalDisassemScroll.
	(tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
	(tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
	* tui/tui.h: Update copyright.
	(enum tui_status): Define.
	* tui/tui-data.h (enum tui_scroll_direction): Define.
	* tui/tui-disasm.c: Update copyright.  Update references.
	* tui/tui-winsource.c: 	Update copyright.  Update references.
	* tui/tui-win.c: Update references.
	* tui/tui-layout.c: Update references.
2004-01-20 21:56:22 +00:00
Andrew Cagney 6bb0384f7c 2004-01-20 Andrew Cagney <cagney@redhat.com>
* mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
	sym2 to start of block.
2004-01-20 21:47:53 +00:00
Michael Chastain 9175c9a32c 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
* MAINTAINERS: Delete mmalloc.
	* Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
	* NEWS: Mention removal of --with-malloc.
	* acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
	* config.in: Regenerate.
	* configure: Regenerate.
	* configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc, USE_MMALLOC, MMCHECK_FORCE.
	* gdbinit.in: Remove mmalloc.
	* utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
	* config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
	* config/i386/go32.mh: Likewise.
	* config/i386/interix.mh: Likewise.
	* config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.

2004-01-19  Michael Chastain  <mec.gnu@mindspring.com>

	* gdbint.texinfo: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE,
	MMAP_BASE_ADDRESS, MMAP_INCREMENT.
2004-01-20 09:29:18 +00:00
Jeff Johnston 4fcef00ad0 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
* linespec.c (decode_variable, symtab_from_filename):  Call
        error_silent with error message instead of throwing an exception
        directly.
        * defs.h (error_silent, error_output_message): Add prototypes.
        (catch_exceptions_with_msg): Ditto.
        * utils.c (error_silent, error_output_message): New functions.
        * top.c (catch_exceptions_with_msg): New function.
2004-01-20 02:04:19 +00:00
Nick Roberts 53a83a21c7 Test for case "-var-list-children --all-values NAME". 2004-01-20 00:54:04 +00:00
Nick Roberts a0c76b6b77 (test_stack_locals_listing): Test for case "-stack-list-locals 2". 2004-01-20 00:52:06 +00:00
Nick Roberts 8e94b9285c *** empty log message *** 2004-01-20 00:51:13 +00:00
Nick Roberts bc8ced35b3 (GDB/MI Stack Manipulation): Describe extension to -stack-list-locals.
(GDB/MI Variable Objects): Describe extension to -var-list-children.
2004-01-20 00:50:05 +00:00
Nick Roberts c9e1f0fc1f (mi_cmd_var_list_children): Print the values of the
children, if required.
2004-01-20 00:46:36 +00:00
Nick Roberts f5ec20424b (mi_cmd_stack_list_locals): Print the name,
type and value for simple data types and just the name and type
for complex ones, if required.
2004-01-20 00:46:00 +00:00
Nick Roberts 90e645cd1b (enum print_values): Add definition. 2004-01-20 00:45:29 +00:00
gdbadmin 4b3f065892 *** empty log message *** 2004-01-20 00:00:01 +00:00
Kevin Buettner a02d6af8f3 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
unused declarations.
2004-01-19 23:11:36 +00:00
Andrew Cagney 78a4a9b940 2004-01-19 Andrew Cagney <cagney@redhat.com>
* top.h (mapped_symbol_files): Delete declaration.
	* main.c (captured_main): Delete option "m" and "mapped".
	* objfiles.c (mapped_symbol_files): Delete variable.
	* symfile.c (symbol_file_command): Delete mmap code.
	(symbol_file_add_with_addrs_or_offsets): Ditto.
	(add_symbol_file_command, reread_separate_symbols): Ditto.
	* objfiles.h (OBJF_MAPPED): Delete.
	* objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
	(free_objfile) [USE_MMALLOC]: Ditto.
	(open_existing_mapped_file): Delete function.
	(open_mapped_file): Delete function.
	(map_to_file): Delete function.
2004-01-19 19:56:02 +00:00
Kevin Buettner 2dbd5e3068 * infrun.c (step_into_function): Account for possible breakpoint
adjustment when computing ``stop_func_start''.
2004-01-19 17:28:52 +00:00
Kevin Buettner 437b434f9a * target.c (default_region_size_ok_for_hw_watchpoint): Compare
the region size against the size of a pointer, not the size of
	a register as given by DEPRECATED_REGISTER_SIZE.
2004-01-19 16:49:35 +00:00
Andrew Cagney 55fb071392 2004-01-19 Andrew Cagney <cagney@redhat.com>
* tui/tui-regs.h: Include "tui-data.h".
	(tuiFirstRegElementNoInLine): Delete declaration.
	(tui_display_registers_from): Rename tuiDisplayRegistersFrom.
	(tui_last_regs_line_no): Rename tuiLastRegsLineNo.
	(tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
	(tui_calculate_regs_column_count): Rename
	tuiCalculateRegsColumnCount.
	(tui_check_register_values): Rename tuiCheckRegisterValues.
	(tui_show_registers): Rename tuiShowRegisters.
	(tui_display_registers_from_line): Rename
	tuiDisplayRegistersFromLine.
	(tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
	(tui_toggle_float_regs): Rename tuiToggleFloatRegs.
	(tui_first_reg_element_no_inline): Rename
	tuiFirstRegElementNoInLine.
	* tui/tui-data.h: Update copyright.
	(enum tui_register_display_type): Rename _TuiRegisterDisplayType.
	* tui/tui-windata.c: Update copyright, update references.
	* tui/tui-regs.c: Update copyright, update references.
	* tui/tui-win.c: Update copyright, update references.
	* tui/tui-layout.c: Update copyright, update references.
2004-01-19 16:06:04 +00:00
Andrew Cagney bcdf15685f 2004-01-18 Andrew Cagney <cagney@redhat.com>
* tui/tui-io.c: Update copyright.
	(key_is_end_sequence, key_is_backspace): New functions.
	(key_is_command_char, key_is_start_sequence): New function.
	(tui_getc): Update references.
	* tui/tui-io.h: Update copyright.
	(m_tuiStartNewLine): Delete macro.
	(m_isBackspace, m_isDeleteChar): Delete macros.
	(m_isDeleteLine, m_isDeleteToEol): Delete macros.
	(m_isNextPage, m_isPrevPage): Delete macros.
	(m_isLeftArrow, m_isRightArrow): Delete macros.
	(m_isXdbStyleCommandChar): Delete macro.
	(key_is_start_sequence): Declare, replace m_isStartSequence.
	(key_is_end_sequence): Declare, replace m_isEndSequence.
	(key_is_backspace): Declare ,replace m_isBackspace.
	(key_is_command_char): Declare, replace m_isCommandChar.
	* tui/tui-command.c: Update copyright.
	(tuiDispatchCtrlChar): Update references.
2004-01-19 05:06:34 +00:00
Andrew Cagney 130d87e6f7 2004-01-18 Andrew Cagney <cagney@redhat.com>
* config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
	tuiSourceWin.h.
2004-01-19 04:36:57 +00:00
Andrew Cagney d7b2e96719 2004-01-18 Andrew Cagney <cagney@redhat.com>
* tui/tui-command.c: Rename tui/tuiCommand.c.
	* tui/tui-command.h: Rename tui/tuiCommand.h.
	* tui/tui-data.c: Rename tui/tuiData.c.
	* tui/tui-data.h: Rename tui/tuiData.h.
	* tui/tui-disasm.c: Rename tui/tuiDisassem.c.
	* tui/tui-disasm.h: Rename tui/tuiDisassem.h.
	* tui/tui-io.c: Rename tui/tuiIO.c.
	* tui/tui-io.h: Rename tui/tuiIO.h.
	* tui/tui-layout.c: Rename tui/tuiLayout.c.
	* tui/tui-layout.h: Rename tui/tuiLayout.h.
	* tui/tui-regs.c: Rename tui/tuiRegs.c.
	* tui/tui-regs.h: Rename tui/tuiRegs.h.
	* tui/tui-source.c: Rename tui/tuiSource.c.
	* tui/tui-source.h: Rename tui/tuiSource.h.
	* tui/tui-stack.c: Rename tui/tuiStack.c.
	* tui/tui-stack.h: Rename tui/tuiStack.h.
	* tui/tui-win.c: Rename tui/tuiWin.c.
	* tui/tui-win.h: Rename tui/tuiWin.h.
	* tui/tui-windata.c: Rename tui/tuiDataWin.c.
	* tui/tui-windata.h: Rename tui/tuiDataWin.h.
	* tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
	* tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
	* tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
	* tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
	* tui/tui-file.c: Update includes.
	* tui/tui-hooks.c: Update includes.
	* tui/tui-interp.c: Update includes.
	* tui/tui.c: Update includes.
	* Makefile.in: Update all tui/ dependencies.
	(SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
2004-01-19 04:31:53 +00:00
Michael Chastain 997b095265 2004-01-18 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/local.exp: Accept correct output for gcc v3 -gstabs+.
2004-01-19 04:06:42 +00:00
Andrew Cagney b210091059 2004-01-18 Andrew Cagney <cagney@redhat.com>
* Makefile.in: Update copyright.  Update dependencies.
2004-01-19 03:51:12 +00:00
Andrew Cagney cebe9500e0 2004-01-18 Andrew Cagney <cagney@redhat.com>
* tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
	problem.
2004-01-19 02:58:48 +00:00
Andrew Cagney 43e9390bf0 2004-01-18 Andrew Cagney <cagney@redhat.com>
* mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
	instead of register_gdbarch_init.
2004-01-19 02:50:15 +00:00
Andrew Cagney c6f0559b48 2004-01-18 Andrew Cagney <cagney@redhat.com>
* remote-sds.c (tohex): Delete unused function.  Update copyright.
	* xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
	* v850-tdep.c (v850_register_virtual_size): Ditto.
	* target.c (normal_target_post_startup_inferior): Ditto.
	* source.c (ambiguous_line_spec): Ditto.
	* remote.c (adapt_remote_get_threadinfo): Ditto.
	* mi/mi-out.c (out_field_fmt): Ditto.
	* mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
	(output_control_change_notification): Ditto.
	* m68k-tdep.c (m68k_register_byte): Ditto.
	(m68k_remote_breakpoint_from_pc): Ditto.
	* ui-out.c (init_ui_out_state): Delete unused declaration.
	* stabsread.c (search_value): Ditto.
	* mi/mi-cmd-env.c (env_cli_command): Ditto.
	* maint.c (print_section_table): Ditto.
	* infrun.c (set_follow_fork_mode_command): Ditto.
2004-01-19 01:20:12 +00:00
gdbadmin 8819f097a4 *** empty log message *** 2004-01-19 00:00:01 +00:00
Mark Kettenis a850449234 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
DW_CFA_def_cfa_exporession.  Add support for
DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
DW_CFA_def_cfa_offset_sf.  This should fix PR backtrace/1391.
2004-01-18 21:22:50 +00:00
Mark Kettenis 7049b4b8ac * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns
used with gdb_test_multiple.
2004-01-18 21:17:57 +00:00
Andrew Cagney 0bd8997ef2 2004-01-18 Andrew Cagney <cagney@redhat.com>
* ocd.c: Update copyright.
	(bdm_read_register_command): Delete unused function.
	(_initialize_remote_ocd): Delete commented out reference.
	(get_quoted_char, reset_packet): Delete #if0ed function.
	(output_packet, put_quoted_char): Delete #if0ed function.
	(stu_put_packet, stu_get_packet): Delete #if0ed function.
	(ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
	(BDM_BREAKPOINT): Delete #if0ed macro.
	(remote_timeout): Delete #if0ed variable.
2004-01-18 19:26:51 +00:00
Mark Kettenis 52470da313 * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
read at address 0.  This fixes PR testsuite/1504.
2004-01-18 16:35:11 +00:00
Daniel Jacobowitz da6012e52d * config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
Remove downloading, guessing the host executable, the calls to
	gdb_file_cmd and gdb_target_cmd, and "load" support.
	(infer_host_exec): New function broken out from gdb_load.
	(gdb_load): New wrapper for gdbserver_gdb_load.
	* lib/mi-support.exp (mi_gdb_target_cmd): New function, based on
	gdb_target_cmd.  Use -target-select.
	(mi_gdb_file_cmd): New function, broken out from mi_gdb_load.
	Download binaries to the host.  Clear last_mi_remote_file when
	we load a new binary.
	(mi_gdb_load): Call mi_gdb_file_cmd.  If gdbserver.exp is loaded,
	call gdbserver_gdb_load and mi_gdb_target_cmd.
2004-01-18 15:23:30 +00:00