Commit Graph

18296 Commits

Author SHA1 Message Date
Mark Mitchell ec442778f9 * event-top.c (handle_sigquit): Do not define for systems without
SIGQUIT.
	(sigquit_token): Likewise.
	(async_init_signals): Allow for systems that do not
	define SIGQUIT.
	* ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
2005-03-16 17:07:17 +00:00
Mark Mitchell 6d318c73e1 * event-top.c (async_init_signals): Allow for systems that do not
define SIGQUIT.
	* ser-tcp.c (net_open): Allow for systems that do not have SIGPIPE.
2005-03-16 17:05:31 +00:00
Mark Mitchell 9b265ec209 * utils.c (internal_vproblem): Guard call to fork with
HAVE_WORKING_FORK.
	* cli/cli-cmds.c (shell_escape): Guard call to vfork with
	HAVE_WORKING_VFORK and HAVE_WORKING_FORK.

	* remote-fileo.c (remote_fileio_mode_to_host): Accomodate lack of
	S_IRGRP and related macros.
	(remote_fileio_mode_to_target): Likewise.
2005-03-16 15:58:41 +00:00
gdbadmin afee91aefd *** empty log message *** 2005-03-16 00:00:03 +00:00
gdbadmin 20401ce345 *** empty log message *** 2005-03-15 00:00:32 +00:00
Paul Brook 8e3049aa8c 2005-03-14 Paul Brook <paul@codesourcery.com>
* lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote
	targets.
2005-03-14 15:42:52 +00:00
Ben Elliston 3ae642fdf3 * Makefile.in (CLIBS): Link libbfd after libopcodes, as it is a
more primitive library.
2005-03-14 03:09:45 +00:00
gdbadmin 0c6003d200 *** empty log message *** 2005-03-14 00:00:33 +00:00
Mark Kettenis fd0a2a6f0c * inf-ttrace.c (inf_ttrace_pid_to_str): Use snprintf instead of
sprintf.
* target.c (normal_pid_to_str): Likewise.
* remote.c (remote_pid_to_str): Use snprint instead of sprintf.
Change capitalization of "thread".  Use ptid_get_pid instead of
GETPID.
2005-03-13 22:06:10 +00:00
Mark Kettenis 049742daef * cp-abi.c (set_cp_abi_as_auto_default): Use xasprintf instead of
a combination of xmalloc and sprintf.
2005-03-13 19:55:38 +00:00
Jim Blandy ca231fcc24 * configure.ac: Use '=', not '=='; the latter is a GNU extension.
* configure: Regenerated.
2005-03-13 05:37:48 +00:00
gdbadmin f996f4135f *** empty log message *** 2005-03-13 00:00:02 +00:00
gdbadmin f1210edfba *** empty log message *** 2005-03-12 00:00:05 +00:00
Michael Snyder b80b83f36a 2005-03-11 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c (mn10300_dummy_unwind_dummy_id): Replace
	stub fn with real implementatin mn10300_unwind_dummy_id.
	(mn10300_push_dummy_call): Implement.  Bare bones version,
	does not handle structs or floats.
2005-03-11 23:16:47 +00:00
Jim Blandy a3b362c440 Avoid warnings due to the use of -Wuninitialized without -O.
* configure.ac (build_warnings): Include -Wuninitialized only if
CFLAGS is unset at configure time, or CFLAGS is set and includes
some -O option other than -O0.
* configure: Regenerated.
2005-03-11 21:02:02 +00:00
Jim Blandy 1f8ca57c49 * mips-tdep.c (show_mips_abi): Change calling conventions to match
those expected by add_setshow_enum_cmd.  Use 'file' argument as
appropriate.
2005-03-11 20:27:56 +00:00
Daniel Jacobowitz fb4c6eba43 * Makefile.in (SFILES): Add cp-names.y.
(libiberty_h, safe_ctype_h): New.
	(YYFILES): Add cp-names.c.
	(YYOBJ): Add cp-names.o.
	(test-cp-names.o, test-cp-names$(EXEEXT), cp-names.o): New rules.
	(clean): Remove test-cp-names$(EXEEXT).
	(local-maintainer-clean): Remove cp-names.c.
	* cp-names.y: New file.
	* cp-support.c (find_last_component): Delete.
	(d_left, d_right): Define.
	(cp_canonicalize_string, mangled_name_to_comp): New functions.
	(cp_class_name_from_physname, method_name_from_physname): Rewrite
	to use mangled_name_to_comp.
	* cp-support.h (cp_canonicalize_string, cp_demangled_name_to_comp)
	(cp_comp_to_string): New prototypes.
	* config/djgpp/fnchange.lst: Add cp-names.c.
2005-03-11 02:24:23 +00:00
gdbadmin 9460aecf6f *** empty log message *** 2005-03-11 00:00:05 +00:00
Bob Rossi 5b93de64c0 Remove the --[no]async command line switch from --help 2005-03-10 20:49:08 +00:00
Bob Rossi 7d51c7de80 Add 2005 to doco copyright 2005-03-10 13:12:33 +00:00
Mark Kettenis 54433e3802 * proc-api.c: Update copyright year.
(_initialize_proc_api): Revert previous patch, removing spurious
space instead.
2005-03-10 09:11:10 +00:00
Joel Brobecker d2f0b918d1 * regcache.c: Fix typo in comment. 2005-03-10 02:43:23 +00:00
gdbadmin 71892b490c *** empty log message *** 2005-03-10 00:00:35 +00:00
David Lecomber e9274dd86f 2005-03-09 David Lecomber <david@lecomber.net>
* proc-api.c (_initialize_proc_api): Fix invalid multi-line
	i18n text.
2005-03-09 23:33:52 +00:00
Mark Kettenis 5b2d44a05d * sparc-tdep.c (sparc_frame_cache): Adjust cached frame base
address for 64-bit code.
(sparc_unwind_dummy_id): Likewise.
* sparc64-tdep.c (sparc64_frame_prev_register): Adjust for new
frame base address convention.
(sparc64_push_dummy_call): Likewise.
* sparc64nbsd-tdep.c: Update copyright year.
(sparc64nbsd_sigcontext_frame_cache): Adjust cached frame base
address for 64-bit code.
(sparc64nbsd_init_abi): Tweak comment.
* sparc64obsd-tdep.c: Update copyright year.
(sparc64obsd_frame_cache): Adjust cached frame base address for
64-bit code.
(sparc64obsd_init_abi): Tweak comment.
2005-03-09 22:08:13 +00:00
Mark Kettenis e5a8e242a8 Fix my email address in 2005-03-05 entry. 2005-03-09 21:55:21 +00:00
Corinna Vinschen 8d19ca4717 * exceptions.h (TRY_CATCH): Define setjmp/sigsetjmp macro safe.
(plus a tiny ChangeLog fix)
2005-03-09 17:52:54 +00:00
Joel Brobecker 5b5464adf1 * dwarf2read.c (dwarf_decode_lines): Use the complete filename
when creating include psymtabs.
2005-03-09 06:03:15 +00:00
Joel Brobecker a9df7c4413 * gdb.dwarf2/dup-psym.S: New file.
* gdb.dwarf2/dup-psym.exp: New testcase.
2005-03-09 05:58:45 +00:00
gdbadmin ac5bc1e36b *** empty log message *** 2005-03-09 00:00:35 +00:00
Joel Brobecker 9f0d94e893 * gdb.ada/exec_changed/first.adb: New file.
* gdb.ada/exec_changed/second.adb: New file.
        * gdb.ada/exec_changed.exp: New testcase.
2005-03-08 22:19:15 +00:00
Mark Mitchell 1bf1958d53 * environ.h (struct environ): Rename to ...
(struct gdb_environ): ... this.
	(make_environ): Update prototype.
	(free_environ): Likewise.
	(init_environ): Likewise.
	(get_in_environ): Likewise.
	(set_in_environ): Likewise.
	(unset_in_environ): Likewise.
	(environ_vector): Likewise.
	* environ.c (make_environ): Replace "struct environ" with "struct
	gdb_environ".
	(free_environ): Likewise.
	(init_environ): Likewise.
	(environ_vector): Likewise.
	(get_in_environ): Likewise.
	(set_in_environ): Likewise.
	(unset_in_environ): Likewise.
	* infcmd.c (inferior_environ): Likewise.
	* inferior.h (inferior_environ): Likewise.
2005-03-08 22:17:34 +00:00
Joel Brobecker f67a969fd6 * infcmd.c (run_command_1): New function, extracted from
run_command.
        (run_command): Replace implementation by call to run_command_1.
        (start_command): Use run_command_1 to insert the temporary
        breakpoint and run the program. Remove code that's no longer
        needed, as already done at the proper time by run_command_1.
2005-03-08 22:03:43 +00:00
Daniel Jacobowitz c0501be550 * symfile.c (clear_symtab_users): Call
clear_current_source_symtab_and_line first.
2005-03-08 21:40:46 +00:00
Nathan Sidwell 36e9969cac * ax-gdb.c (gen_expr): Add UNOP_PLUS case.
* c-exp.y (exp): Add unary plus.
	* eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
	* valarith.c (value_x_unop): Add UNOP_PLUS case.
	(value_pos): New.
	* value.h (value_pos): Declare.

	* gdb.cp/userdef.cc (A1::operator+): New unary plus.
	(A2): New class.
	(main): Test operator+.
	* gdb.cp/userdef.exp: Test unary plus.  Use A2::operator+ for
	breakpoint test.
2005-03-08 14:35:20 +00:00
Nathan Sidwell 3de11b2ef2 * remote.c (MIN_REMOTE_PACKET_SIZE): Set to 20.
(remote_fetch_registers): Allow uppercase hex when resyncing.
	(remote_write_bytes): Only call get_memory_write_packet_size once.
	Robustify packet size calculation for very small packets. Check
	that at least one byte will be written.
2005-03-08 14:30:46 +00:00
Nathan Sidwell 5f579bc5f9 * gdb.base/sigbpt.exp: Disable if gdb,nosignals.
* gdb.base/signull.exp: Disable if gdb,nosignals.
	* gdb.cp/bs15503.exp: Disable if skip_cplus_tests
	* gdb.cp/exception.exp: Disable if skip_cplus_tests.
	* gdb.mi/mi-console.exp: Disable hello test if gdb,noinferiorio.
	* gdb.mi/mi2-console.exp: Likewise.
	* gdb.trace/collection.exp (run_trace_experiment): Consume the
	continue output at start.
	(gdb_collect_locals_test): Robustify regexp.
	* gdb.trace/passc-dyn.exp: Fix comment typo.
	* gdb.trace/tfind.exp: Don't enable optimization. Remove stray ']'.
2005-03-08 10:12:21 +00:00
Nathan Sidwell 549678dac2 * tracepoint.c (target_is_remote): Allow extended-remote.
(struct collection_list): Allow 256 registers, like the comment
	said.
	(add_memrange): Fix comment.
	(read_actions): Turn EOF into 'end'.
2005-03-08 10:03:47 +00:00
Corinna Vinschen 20be272bd7 * Makefile.in: Add dependencies for iq2000-tdep.o.
* configure.tgt: Add iq2000-*-* target.
	* iq2000-tdep.c: New file.
	* config/iq2000/iq2000.mt: New file.
2005-03-08 08:59:47 +00:00
Corinna Vinschen be46087ebc * gdb.asm/asm-source.exp: Add iq2000 case.
* gdb.asm/iq2000.inc: New file.
2005-03-08 08:59:17 +00:00
Joel Brobecker ea53e89f14 * doc/observer.texi (executable_changed): New observer.
* symtab.c: Include "observer.h".
        (find_main_name): New function.
        (main_name): If name_of_main is unset, then compute it
        using find_main_name.
        (symtab_observer_executable_changed): New function.
        (_initialize_symtab): Attach executable_changed observer.
        * exec.c: Include "observer.h".
        (exec_file_attach): Emit executable_changed notification.
        * symfile.c: Include "observer.h".
        (reread_symbols): Send an executable_changed if appropriate.
        * Makefile.in (exec.o): Add dependency on observer.h.
        (symfile.o): Likewise.
        (symtab.o): Likewise.
2005-03-08 04:34:45 +00:00
gdbadmin 5e9c0e1d2d *** empty log message *** 2005-03-08 00:00:33 +00:00
Daniel Jacobowitz bb04426270 * findvar.c (read_var_value): Don't allocate V when it will not
be used.  Add missing break for LOC_INDIRECT.
2005-03-07 22:38:04 +00:00
Manoj Iyer 384e1a6106 2005-03-07 Manoj Iyer <manjo@austin.ibm.com>
* gdb.base/command.exp: Change hardcoded value to regular expression.
	* gdb.base/float.exp: Add powerpc to the list of targets checked.
2005-03-07 21:37:25 +00:00
Daniel Jacobowitz 584b6e9e37 * gdb.asm/alpha.inc, gdb.asm/frv.inc, gdb.asm/i386.inc,
gdb.asm/ia64.inc, gdb.asm/m68hc11.inc, gdb.asm/m68k.inc,
	gdb.asm/mips.inc, gdb.asm/pa.inc, gdb.asm/powerpc.inc,
	gdb.asm/s390.inc, gdb.asm/s390x.inc, gdb.asm/sh.inc,
	gdb.asm/x86_64.inc: Use .purgem before redefining macros.
2005-03-07 21:16:50 +00:00
Paul Gilliam c4d88f87b7 fix obvious problem with compiler.c and compiler.cc: for xlc, used 'regsub',
but for get_compiler_info, line must start with 'set'.
2005-03-07 18:57:57 +00:00
gdbadmin bf48a57f77 *** empty log message *** 2005-03-07 00:00:03 +00:00
Mark Kettenis 9e07977bda * sparc64fbsd-tdep.c: Include "solib-svr4.h".
(sparc64fbsd_init_abi): Set skip_trampoline_code and
solib_svr4_fetch_link_map_offsets.
* Makefile.in (sparc64fbsd-tdep.o): Update dependencies.
2005-03-06 21:29:10 +00:00
Daniel Jacobowitz 88d7a73841 Correct email address in last commit. 2005-03-06 16:43:20 +00:00
Daniel Jacobowitz f75c00e4cb * linux-nat.c (child_follow_fork): Call target_terminal_ours before
printing output.  Use fprintf_unfiltered.  Only print output when
	debugging.
2005-03-06 16:42:20 +00:00
gdbadmin a01ad9de04 *** empty log message *** 2005-03-06 00:00:34 +00:00
Mark Kettenis e219d7ceb6 * sparc64-tdep.c (sparc64_store_floating_fields): Constify third
argument.
(sparc64_store_arguments): Constify.
2005-03-05 20:58:14 +00:00
Mark Kettenis 0d6e4ad74b * alphabsd-nat.c: Update copyright year. Include "inf-ptrace.h".
(alphabsd_fetch_inferior_registers): Rename from
fetch_inferior_registers.  Make static.
(alphabsd_store_inferior_registers): Rename from
store_inferior_registers.  Make static.
(_initialize_alphabsd_nat): New function.
* Makefile.in (alphabsd-nat.o): Update dependencies.
* config/alpha/fbsd.mh (NATDEPFILES): Remove infptrace.o and
inftarg.o.  Add inf-ptrace.o, fbsd-nat.o and gcore.o.
* config/alpha/nbsd.mh (NAT_CLIBS): Remove variable.
(NATDEPFILES): Remove infptrace.o and inftarg.o.  Add
alphabsd-nat.o.
* config/alpha/nm-fbsd.h: Update copyright year.  Don't include
"config/nm-bsd.h" and "elf/common.h".
* config/alpha/nm-nbsd.h: Update copyright year.  Don't include
"config/nm-nbsd.h".
2005-03-05 14:36:10 +00:00
Mark Kettenis ab5b5d6168 * gdb.cp/ovldbreak.exp: Adjust regular expression for recent
changes.
2005-03-05 13:31:26 +00:00
Mark Kettenis 635ddbfb5b Fix botched checkin. 2005-03-05 10:47:49 +00:00
Mark Kettenis 672f7fb43d * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
software_single_step.
2005-03-05 10:46:59 +00:00
Mark Kettenis dda5f19aac * mips64obsd-tdep.c (mips64obsd_init_abi): Don't set
software_single_step.

* acconfig.h: Remove #undef.
2005-03-05 10:10:11 +00:00
Michael Snyder aac716726d 2005-03-04 Michael Snyder <msnyder@redhat.com>
* mn10300-prologue.c: New file.  Prologue analysis.
	* mn10300-tdep.c: Move REGNUM values to mn10300-tdep.h.
	(mn10300_frame_unwind_cache): Don't call trad_frame_set_id
	until after analyze_prologue, and don't call trad_frame_set_base
	at all (let analyze_prologue do it).
2005-03-05 02:01:40 +00:00
Michael Snyder 61e784e787 2005-03-04 Michael Snyder <msnyder@redhat.com>
* trad-frame.c (trad_frame_set_reg_value): New function.
	* trad-frame.h (trad_frame_set_reg_value): Export.
2005-03-05 01:57:20 +00:00
gdbadmin 92862f42b5 *** empty log message *** 2005-03-05 00:00:34 +00:00
Daniel Jacobowitz e0e76420c3 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly. 2005-03-04 18:16:25 +00:00
Daniel Jacobowitz 6867ae3eab * Makefile.in (remote.o): Update dependencies.
* remote.c: Include "observer.h".
2005-03-04 17:52:53 +00:00
Daniel Jacobowitz f90221d302 * target.c (target_read_memory_partial): Always initialize
ERR.
	(target_write_memory_partial): Likewise.
2005-03-04 17:47:59 +00:00
Paul Gilliam ae051c1bca 2004-03-03 Paul Gilliam <pgilliam@us.ibm.com>
* lib/compiler.c: Add test for IBM's xlc compiler.
        * lib/compiler.cc: Likewise.
2005-03-04 17:35:46 +00:00
gdbadmin b91e7df1e4 *** empty log message *** 2005-03-04 00:00:04 +00:00
Daniel Jacobowitz a1928bada5 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
Take unsigned long arguments for PIDs.
	* linux-low.c (add_process, linux_attach_lwp, linux_attach)
	(linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
	(wait_for_sigstop, linux_resume_one_process)
	(regsets_fetch_inferior_registers, linux_send_signal)
	(linux_read_auxv): Likewise.  Update the types of variables holding
	PIDs.  Update format string specifiers.
	* linux-low.h (struct process_info, linux_attach_lwp): Likewise.
	* remote-utils.c (prepare_resume_reply): Likewise.
	* server.c (cont_thread, general_thread, step_thread)
	(thread_from_wait, old_thread_from_wait, signal_pid): Change type to
	unsigned long.
	(handle_query): Update format specifiers.
	(handle_v_cont, main): Use strtoul for thread IDs.
	* server.h (struct inferior_list_entry): Use unsigned long for ID.
	(add_thread, find_inferior_id, change_inferior_id, cont_thread)
	(general_thread, step_thread, thread_from_wait)
	(old_thread_from_wait): Update.
	* target.h (struct thread_resume): Use unsigned long for THREAD.
	(struct target_ops): Use unsigned long for arguments to attach and
	thread_alive.
2005-03-03 16:56:53 +00:00
Daniel Jacobowitz e20b46382a * remote.c (remote_open_1): Call observer_notify_inferior_created. 2005-03-03 16:54:05 +00:00
Daniel Jacobowitz 909cf6ea0e * arm-tdep.c (arm_make_stub_cache, arm_stub_this_id)
(arm_stub_unwind, arm_stub_unwind_sniffer): New.
	(arm_gdbarch_init): Add arm_stub_unwind_sniffer.
2005-03-03 15:14:09 +00:00
gdbadmin b5f8bdd7d1 *** empty log message *** 2005-03-03 00:00:34 +00:00
Daniel Jacobowitz d35870480f * linux-nat.c (linux_supports_tracevforkdone, child_follow_fork):
Use LWP IDs.
2005-03-02 15:07:49 +00:00
gdbadmin 76f0e58516 *** empty log message *** 2005-03-02 00:00:35 +00:00
gdbadmin 2ac2974baf *** empty log message *** 2005-03-01 00:00:34 +00:00
Daniel Jacobowitz 806048c68a * dwarf2loc.c (loclist_read_variable): Set optimized_out
instead of reporting an error.
	* valprint.c (value_check_printable): New function.
	(common_val_print): New function.  Use value_check_printable.
	(value_print): Use value_check_printable.
	* value.h (common_val_print): Add prototype.

	* c-valprint.c (c_val_print): Use common_val_print.
	* cp-valprint.c (cp_print_value_fields): Likewise.
	(cp_print_hpacc_virtual_table_entries): Likewise.
	* f-valprint.c (f_val_print): Likewise.
	* jv-valprint.c (java_value_print, java_print_value_fields):
	Likewise.
	* scm-valprint.c (scm_value_print): Likewise.
	* stack.c (print_frame_args): Likewise.
	* varobj.c (c_value_of_variable): Likewise.
	* p-valprint.c (pascal_val_print, pascal_value_print): Likewise.
	(pascal_object_print_value_fields): Likewise.  Update call to
	pascal_object_print_static_field.
	(pascal_object_print_static_field): Remove TYPE argument.  Use
	common_val_print.
2005-02-28 17:00:49 +00:00
gdbadmin 5f0aed8e42 *** empty log message *** 2005-02-28 00:00:03 +00:00
gdbadmin 76e9f60548 *** empty log message *** 2005-02-27 00:00:07 +00:00
Elena Zannoni dd373385f3 2005-02-25 Mark Kettenis <kettenis@gnu.org>
Committed by Elena Zannoni <ezannoni@redhat.com>

	* dwarf2read.c (dwarf2_build_psymtabs_hard): Adjust
	info_ptr before building psymtabs for included files.
	(create_all_comp_units): Initailize initial length size of
	compilation header to zero.
	(read_initial_length): Complain if both 32-bit and 64-bit DWARF
	sections are encountered within the same compilation header.
	(dwarf_decode_line_header): Pass compilation header in call to
	read_initial_length.
2005-02-26 04:32:56 +00:00
gdbadmin 014caf2bf8 *** empty log message *** 2005-02-26 00:00:10 +00:00
gdbadmin 1978907b39 *** empty log message *** 2005-02-25 00:00:33 +00:00
Joel Brobecker 3f0f6ed2e8 * gdb.ada/fixed_points.exp: Create compilation object directory
before running the test.
        * gdb.ada/null_record.exp: Likewise.
        * gdb.ada/packed_array.exp: Likewise.
        * gdb.ada/start.exp: Likewise.
2005-02-24 23:54:03 +00:00
Daniel Jacobowitz dcdb98d29d * acinclude.m4: Include bfd/bfd.m4 directly.
* configure.ac: Use AC_ARG_PROGRAM.  Suggested by Aron Griffis
	<agriffis@toolchain.org>.
	* aclocal.m4, configure: Regenerated.
2005-02-24 20:26:32 +00:00
Andrew Cagney 920d2a4419 2005-02-24 Andrew Cagney <cagney@gnu.org>
Add show_VARIABLE functions, update add_setshow call.
	* varobj.c (_initialize_varobj, show_varobjdebug): Add and update.
	* valprint.c (_initialize_valprint, show_print_max)
	(show_stop_print_at_null, show_repeat_count_threshold)
	(show_prettyprint_structs, show_unionprint)
	(show_prettyprint_arrays, show_addressprint, show_input_radix)
	(show_output_radix): Ditto.
	* valops.c (_initialize_valops, show_overload_resolution): Ditto.
	* utils.c (initialize_utils, show_chars_per_line)
	(show_lines_per_page, show_demangle, show_pagination_enabled)
	(show_sevenbit_strings, show_asm_demangle): Ditto
	* tui/tui-win.c (_initialize_tui_win, show_tui_border_kind)
	(show_tui_border_mode, show_tui_active_border_mode): Ditto.
	* top.c (init_main, show_new_async_prompt)
	(show_async_command_editing_p, show_write_history_p)
	(show_history_size, show_history_filename, show_caution)
	(show_annotation_level, init_main): Ditto.
	* target.c (initialize_targets, show_targetdebug)
	(show_trust_readonly): Ditto.
	* symfile.c (_initialize_symfile, show_symbol_reloading)
	(show_ext_args, show_download_write_size)
	(show_debug_file_directory): Ditto.
	* source.c (_initialize_source, show_lines_to_list): Ditto.
	* solib.c (_initialize_solib, show_auto_solib_add)
	(show_solib_search_path): Ditto.
	* p-valprint.c (_initialize_pascal_valprint)
	(show_pascal_static_field_print): Ditto.
	* printcmd.c (_initialize_printcmd, show_max_symbolic_offset)
	(show_print_symbol_filename): Add and update.
	* parse.c (_initialize_parse, show_expressiondebug): Dito.
	* observer.c (_initialize_observer, show_observer_debug): Dito.
	* maint.c (_initialize_maint_cmds, show_watchdog)
	(show_maintenance_profile_p): Dito.
	* linux-nat.c (_initialize_linux_nat, show_debug_linux_nat): Dito.
	* infrun.c (_initialize_infrun, show_debug_infrun)
	(show_stop_on_solib_events, show_follow_fork_mode_string)
	(show_scheduler_mode, show_step_stop_if_no_debug): Ditto.
	* infcall.c (_initialize_infcall, show_coerce_float_to_double_p)
	(show_unwind_on_signal_p): Ditto.
	* gdbtypes.c (build_gdbtypes, show_opaque_type_resolution)
	(_initialize_gdbtypes, show_overload_debug): Ditto.
	* gdb-events.c, gdb-events.sh (_initialize_gdb_events)
	(show_gdb_events_debug): Ditto.
	* gdbarch.c, gdbarch.sh (show_gdbarch_debug)
	(_initialize_gdbarch): Ditto.
	* frame.c (_initialize_frame, show_backtrace_past_main)
	(show_backtrace_past_entry, show_backtrace_limit)
	(show_frame_debug): Ditto.
	* exec.c (_initialize_exec, show_write_files): Ditto.
	* dwarf2read.c (_initialize_dwarf2_read)
	(show_dwarf2_max_cache_age): Ditto.
	* demangle.c (_initialize_demangler)
	(show_demangling_style_names): Ditto.
	* dcache.c (_initialize_dcache, show_dcache_enabled_p): Ditto.
	* cp-valprint.c (show_static_field_print)
	(_initialize_cp_valprint, show_vtblprint, show_objectprint): Ditto.
	* corefile.c (_initialize_core, show_gnutarget_string): Ditto.
	* cli/cli-logging.c (_initialize_cli_logging)
	(show_logging_overwrite, show_logging_redirect)
	(show_logging_filename): Ditto.
	* cli/cli-cmds.c (show_info_verbose, show_history_expansion_p)
	(init_cli_cmds, show_baud_rate, show_remote_debug)
	(show_remote_timeout, show_max_user_call_depth): Ditto.
	* charset.c (show_host_charset_name, show_target_charset_name)
	(initialize_charset): Ditto.
	* breakpoint.c (show_can_use_hw_watchpoints)
	(show_pending_break_support, _initialize_breakpoint): Ditto.
2005-02-24 13:51:36 +00:00
gdbadmin 729d81e30e *** empty log message *** 2005-02-24 00:00:35 +00:00
Jim Blandy 2877b4cc78 * disasm.c (gdb_disassemble_info): Call disassemble_init_for_target. 2005-02-23 16:06:58 +00:00
Andrew Cagney e9c55a7bd7 2005-02-23 Andrew Cagney <cagney@gnu.org>
* cli/cli-dump.c (dump_bfd_file): Replace magic constant with
	SEC_XXX flags.
2005-02-23 15:24:22 +00:00
gdbadmin e46482877c *** empty log message *** 2005-02-23 00:00:08 +00:00
Andrew Cagney 04ac69aa9d 2005-02-22 Andrew Cagney <cagney@gnu.org>
* configure.ac: Only enaable insight when itcl is present.
	* configure: Re-generate.
2005-02-22 23:25:11 +00:00
gdbadmin 64e451ae37 *** empty log message *** 2005-02-22 00:00:33 +00:00
Andrew Cagney 3470a02f88 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* infptrace.c (store_register): Fix typo.
2005-02-21 17:22:43 +00:00
Andrew Cagney b66df561bb 2005-02-21 Andrew Cagney <cagney@gnu.org>
* command.h (deprecated_add_set_cmd): Rename add_set_cmd.
	* cli/cli-decode.h (add_set_cmd): Delete declaration.
	* cli/cli-decode.c (deprecated_add_set_cmd): Rename add_set_cmd.
	* i386-nat.c (_initialize_i386_nat): Update call.
	* valprint.c (_initialize_valprint): Update comment.
	* gnu-nat.c (_initialize_gnu_nat): Update call.
2005-02-21 17:14:03 +00:00
Alan Modra 85e3476f96 * elfread.c (elf_symtab_read): Discard section syms. 2005-02-21 11:00:44 +00:00
Andrew Cagney eefe576e60 2005-02-21 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_set_enum_cmd): Delete function.
	(deprecated_add_show_from_set): Delete function.
	* command.h (add_set_enum_cmd): Delete declaration.
	(deprecated_add_show_from_set): Delete declaration.
	* cli/cli-decode.h (add_set_enum_cmd): Delete declaration.
	(deprecated_add_show_from_set): Delete declaration.
	* arm-tdep.c (_initialize_arm_tdep): Update comment.
	* kod.c (kod_set_os): Simplify.
	* infrun.c (set_schedlock_func): Simplify.
	* cli/cli-dump.c (add_dump_command): Update comment.
2005-02-21 07:15:49 +00:00
Andrew Cagney 525226b563 2005-02-21 Andrew Cagney <cagney@gnu.org>
Replace string variables with a filename completer with
	add_setshow_optional_filename_cmd.
	* solib.c, symfile.c: Update.
	* cli/cli-setshow.c: Do not tidle expand the file.
2005-02-21 07:08:42 +00:00
Andrew Cagney 4d28ad1ece 2005-02-21 Andrew Cagney <cagney@gnu.org>
Add more uses of add_setshow_string_cmd, add_setshow_integer_cmd,
	and add_setshow_string_noescape_cmd.
	* cli/cli-setshow.c (deprecated_show_value_hack): Do not print a
	NULL command's value.
	* kod.c, language.c, ocd.c, remote-e7000.c, remote-mips.c: Update.
	* remote-sds.c, remote.c, symfile.c, top.c: Update.
2005-02-21 06:21:09 +00:00
Andrew Cagney 7ab044018a 2005-02-20 Andrew Cagney <cagney@gnu.org>
Use add_setshow_enum_cmd through out.
	* arch-utils.c, charset.c, demangle.c, i386-tdep.c: Update.
	* infrun.c, mips-tdep.c, osabi.c, serial.c, tui/tui-win.c: Update.
2005-02-21 04:31:59 +00:00
Andrew Cagney 78f5381d69 2005-02-20 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (captured_mi_execute_command): Use
	mi_cmd_interpreter_exec.
2005-02-21 03:59:23 +00:00
Andrew Cagney b4b4ac0b71 2005-02-20 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_optional_filename_cmd): New
	function.
	* cli/cli-setshow.c (deprecated_show_value_hack)
	(do_setshow_command): Handle var_optional_filename.
	* command.h (enum var_types): Add var_optional_filename.
	(add_setshow_optional_filename_cmd): Declare.
	* infcmd.c (notice_args_read): Use.
2005-02-21 03:25:56 +00:00
Andrew Cagney 942fd9fe45 2005-02-20 Andrew Cagney <cagney@gnu.org>
* symfile-mem.c (symbol_file_add_from_memory): Pass
	target_read_memory to bfd_elf_bfd_from_remote_memory.
	(do_target_read_memory): Delete.
2005-02-21 02:09:46 +00:00
gdbadmin b45cadd9ce *** empty log message *** 2005-02-21 00:00:35 +00:00
Mark Kettenis a6c442d881 * value.h (value_contents_equal): New prototype.
* value.c (value_contents_equal): New function.
* varobj.c: Include "exceptions.h" and "gdb_assert.h".  Don't
include <math.h>.
(varobj_set_value): Initialize error to zero.
(varobj_update): Rename error2 to error and initialize it to zero.
Slightly change the wording of some comments.
(my_value_equal): Reimplement using TRY_CATCH and
value_contents_equal.
2005-02-20 01:19:24 +00:00
gdbadmin 0ac0f72ae7 *** empty log message *** 2005-02-20 00:00:35 +00:00