Commit Graph

46770 Commits

Author SHA1 Message Date
Mark Kettenis 53283f867b * inf-ptrace.c (inf_ptrace_prepare_to_store)
(inf_ptrace_post_startup_inferior)
(inf_ptrace_acknowledge_created_inferior)
(inf_ptrace_insert_fork_catchpoint)
(inf_ptrace_remove_fork_catchpoint)
(inf_ptrace_insert_vfork_catchpoint):
(inf_ptrace_remove_vfork_catchpoint, inf_ptrace_follow_fork)
(inf_ptrace_insert_exec_catchpoint)
(inf_ptrace_remove_exec_catchpoint): Remove functions.
(inf_ptrace_reported_exec_events_per_exec_call): Tweak comment.
(inf_ptrace_target): Don't set to_prepare_to_store,
to_post_startup_inferior, to_acknowledge_created_inferior,
to_insert_fork_ctachpoint, to_remove_fork_catchpoint,
to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
to_follow_fork, to_insert_exec_catchpoint,
to_remove_exec_catchpoint.
2005-01-19 10:04:35 +00:00
Kelley Cook a1e0f4e42f 2005-01-17 Kelley Cook <kcook@gcc.gnu.org>
* install-sh, config.sub: Import from upstream.
2005-01-19 00:34:56 +00:00
Kelley Cook 06bcb89d29 2005-01-13 Kelley Cook <kcook@gcc.gnu.org>
PR bootstrap/18222
	* Makefile.def: Pass CPPFLAGS_FOR_TARGET.
	* Makefile.tpl: Define target CPPFLAGS on CPPFLAGS_FOR_TARGET.
	* Makefile.in: Regenerate.
2005-01-19 00:33:04 +00:00
gdbadmin 7ace0f3fee *** empty log message *** 2005-01-19 00:00:35 +00:00
Alan Modra b16a311506 daily update 2005-01-18 23:00:07 +00:00
Andrew Cagney fa113d1a30 2005-01-18 Andrew Cagney <cagney@gnu.org>
* target.h (struct target_ops): Change return type of
	to_insert_fork_catchpoint, to_insert_vfork_catchpoint and
	to_insert_exec_catchpoint to void.
	(child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
	(child_insert_exec_catchpoint): Change return type to void.
	* target.c (update_current_target): Update.
	(debug_to_insert_fork_catchpoint)
	(debug_to_insert_vfork_catchpoint)
	(debug_to_insert_exec_catchpoint): Update.
	* inf-child.c (inf_child_insert_fork_catchpoint)
	(inf_child_insert_vfork_catchpoint)
	(inf_child_insert_exec_catchpoint): Update.
	* breakpoint.c (insert_catchpoint): Update, do not throw an error.
	* linux-nat.c (child_insert_fork_catchpoint)
	(child_insert_vfork_catchpoint)
	(child_insert_exec_catchpoint): Update.
	* inftarg.c (child_insert_fork_catchpoint)
	(child_insert_vfork_catchpoint,)
	(child_insert_exec_catchpoint): Update.
2005-01-18 17:04:28 +00:00
Andrew Cagney 9ee907e0a0 2005-01-18 Andrew Cagney <cagney@gnu.org>
* remote.c (remote_open_1): Use throw_exception.
2005-01-18 16:15:39 +00:00
Alan Modra 1449d79bae bfd/
* bfd.c (bfd_link_just_syms): Add abfd param.
	* bfd-in2.h: Regenerate.
ld/
	* ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
	(lang_place_orphans): Don't abort on just_syms_flag, instead call
	bfd_link_just_syms.
2005-01-18 08:51:54 +00:00
gdbadmin 2738419cd2 *** empty log message *** 2005-01-18 00:00:09 +00:00
Alan Modra f2ea2a2251 daily update 2005-01-17 23:00:08 +00:00
Michael Snyder 9f1c639570 2005-01-17 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo: Fix spelling, infinte  ->  infinite.
2005-01-17 19:54:42 +00:00
Michael Snyder 295093a415 2005-01-13 Michael Snyder <msnyder@redhat.com>
* mips-linux-tdep.c: Whitespace tweaks.
2005-01-17 19:49:14 +00:00
Andrew Cagney 4ac6917f4d 2005-01-17 Andrew Cagney <cagney@gnu.org>
* configure.ac: For mips*-*-* and mn10300*-*-* configure the
	common directory.  Remove sparc*-*-* from list.
2005-01-17 18:04:10 +00:00
Richard Sandiford dcf507a6ee * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
(_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
	instructions.  If the amount of padding is known, reduce the size
	of the CIE or FDE by that amount.
2005-01-17 17:44:41 +00:00
Richard Sandiford 2c42be6506 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
augmentation_size.  Use bfd_signed_vmas for data_align.
	* elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
	(read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
	functions.  Don't read past the end of the enclosing CIE or FDE.
	(skip_bytes): New utility function.
	(_bfd_elf_discard_section_eh_frame): Use new functions, adding more
	sanity checking.
	(_bfd_elf_write_section_eh_frame): Use new functions.
2005-01-17 17:41:47 +00:00
Richard Sandiford acfe556796 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
assert-style REQUIRE() macro to handle sanity checks.
2005-01-17 17:39:27 +00:00
H.J. Lu c0c28ab8b2 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
* dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
	(comp_unit): Here.
	(read_unsigned_leb128): Removed.
	(read_signed_leb128): Removed.
	(find_abstract_instance_name): Updated.
	(parse_comp_unit): Accept info_ptr_unit.
	(_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
	comp unit and pass it to parse_comp_unit.

	* elf-eh-frame.c (read_unsigned_leb128): Moved to ...
	(read_signed_leb128): Moved to ...
	* libbfd.c: Here.

	* libbfd-in.h (read_unsigned_leb128): New prototype.
	(read_signed_leb128): Likewise.
	* libbfd.h: Regenerated.
2005-01-17 17:12:00 +00:00
Corinna Vinschen 4bcff7eb85 * infcmd.c (attach_command): Call CLEAR_SOLIB if available. 2005-01-17 16:47:55 +00:00
Nick Clifton b09a777222 PR binutils/647
* rcparse.y (RCDATA): Allow a filename to be supplied as the parameter.
  Parse it with define_rcdata_file().
* resrc.c (define_rcdata_file): New function.
* windres.h: Provide a prototype for the new function.

* resrc.c (define_user_file): Fix typo by replacing "font file" with "file".
2005-01-17 16:24:12 +00:00
Andrew Cagney 637537d07b 2005-01-17 Andrew Cagney <cagney@gnu.org>
* top.h (source_error, source_pre_error): Delete declaration.
	* cli/cli-script.c (source_error_allocated, source_error): Delete.
	(script_from_file, source_cleanup_lines): Do not manipulate
	source_error_allocated, error_pre_print and source_error.
	(struct source_cleanup_lines_args): Delete fields old_pre_error,
	and old_error_pre_print.
	* top.c (source_error_allocated, source_error)
	(source_pre_error): Delete.
	(command_line_input): Do not set error_pre_print.
	* event-top.c (command_line_handler): Do not set error_pre_print.
2005-01-17 16:17:36 +00:00
Nick Clifton e38bc3b524 Fix SH2A machine variants in order to correctly select instruction inheritance 2005-01-17 14:08:17 +00:00
Jason Thorpe 12b21d1256 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
* MAINTAINERS: Update my email address.
2005-01-17 00:01:48 +00:00
gdbadmin 13c5645bee *** empty log message *** 2005-01-17 00:00:33 +00:00
Jason Thorpe ccf33464fc 2005-01-16 Jason Thorpe <thorpej@netbsd.org>
* MAINTAINERS: Update my email address.
2005-01-16 23:47:40 +00:00
Alan Modra d7ebd26642 daily update 2005-01-16 23:00:05 +00:00
Mark Kettenis c401b55a77 * configure.ac: Provide prerequisite headers when checking
<term.h>.
* configure: Regenerate.
2005-01-16 22:51:49 +00:00
Mark Kettenis 1c02b2a55e * amd64fbsd-tdep.c: Update copyright year. Include "gdb_assert.h"
and "bsd-uthread.h".
(amd64fbsd_jmp_buf_reg_offset): New variable.
(amd64fbsd_supply_uthread, amd64fbsd_collect_uthread): New
functions.
(amd64fbsd_init_abi): Set supply_uthread and collect_uthread.
* i386fbsd-tdep.c: Fix typo.
* Makefile.in (amd64fbsd-tdep.o): Update dependencies.
* config/i386/fbsd64.mt (TDEPFILES): Add bsd-uthread.o.
2005-01-16 21:53:35 +00:00
Andrew Cagney 17d92a0219 2005-01-16 Andrew Cagney <cagney@gnu.org>
* cli/cli-script.c: Include "exceptions.h".
	(struct wrapped_read_command_file_args): Define.
	(wrapped_read_command_file): New function.
	(script_from_file): Replace direct call to read_command_file by
	one wrapped by an exception handler.
	* exceptions.c (throw_it): Free the old message after creating the
	new.
	* Makefile.in: Update dependencies.

Index: testsuite/ChangeLog
2005-01-16  Andrew Cagney  <cagney@gnu.org>

	* gdb.base/source.exp: Delete KFAIL gdb/1846, simplify.
2005-01-16 21:20:06 +00:00
Mark Kettenis ae03635710 * sparc64fbsd-tdep.c: Update copyright year.
(sparc64fbsd_collect_gregset, sparc64fbsd_collect_fpregset): New
functions.
(sparc64fbsd_init_abi): Create register sets with collect
functions.
2005-01-16 21:18:48 +00:00
Andrew Cagney a7b01baf32 2005-01-16 Andrew Cagney <cagney@gnu.org>
* gdb.base/source-error.gdb, gdb.base/source.exp: New files.
2005-01-16 20:30:18 +00:00
Mark Kettenis ca5807d9a5 * sparc64fbsd-nat.c: Include "fbsd-nat.h".
(_initialize_sparc64fbsd_nat): Add some extra features to the
generic SPARC target.
* Makefile.in (sparc64fbsd-nat.o): Update dependencies.
* config/sparc/fbsd.mh (NATDEPFILES): Add fbsd-nat.o and gcore.o.
(NAT_FILE): Set to solib.h.
* config/sparc/nm-fbsd.h: Remove file.
2005-01-16 20:29:11 +00:00
Mark Kettenis c4f2d4d74d * sparc64-tdep.c (sparc64_store_arguments): Fix typo. 2005-01-16 20:08:20 +00:00
Mark Kettenis 80ad1639f7 * sparc-tdep.c (sparc_integral_or_pointer_p): Simplify. 2005-01-16 20:06:54 +00:00
Andrew Cagney 6212a5e9ad 2005-01-16 Andrew Cagney <cagney@gnu.org>
* exceptions.c (struct catcher): Delete saved_error_pre_print and
	saved_quit_pre_print.
	(catcher_init): Delete parameter errstring, do not override the
	pre_print strings.
	(catcher_pop): Do not restore the pre_print strings.
	(catch_exception, catch_exceptions_with_msg, catch_errors)
	(catch_command_errors): Update catch_init calls.
2005-01-16 19:51:51 +00:00
Mark Kettenis 936df4b3c3 * Makefile.in (sparc64fbsd-nat.o): Update dependencies.
* sparc64fbsd-nat.c: Update copyright year.  Include "target.h".
2005-01-16 17:54:38 +00:00
Danny Smith a0ce7f12db * dlltool.c (set_dll_name_from_def): New function. Strip name
to basename, with warning.
	(def_name): Use it.
	(def_library): Likwise.
	(main): Strip arg of --dllname to basename, with warning.
	Only use basename of exp_name when inferring dll_name.
2005-01-16 09:25:06 +00:00
Danny Smith a880c7485c * defilep.y (def_name, def_library): Combine into...
(def_image_name): New function.  Strip name to basename,
	with warning.
2005-01-16 09:18:35 +00:00
gdbadmin af42176667 *** empty log message *** 2005-01-16 00:00:33 +00:00
Alan Modra 5bd605a683 daily update 2005-01-15 23:00:06 +00:00
Andrew Cagney 85981d605a 2005-01-15 Andrew Cagney <cagney@gnu.org>
* acinclude.m4: Include ../bfd/bfd.m4 instead of
	../bfd/acinclude.m4.  Include ../gettext.m4.
	* aclocal.m4, configure: Re-generate.
2005-01-15 20:32:43 +00:00
Andrew Cagney 8fb84ecc44 2005-01-15 Andrew Cagney <cagney@gnu.org>
* bfd.m4: New file.
	* acinclude.m4: Move BFD_NEED_DECLARATION,
	BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
	the new file bfd.m4.  Include ../bfd/bfd.m4.
	* configure: Re-generate.
2005-01-15 19:14:54 +00:00
Andrew Cagney 5a14cc1abc 2005-01-15 Andrew Cagney <cagney@gnu.org>
* exceptions.c (do_captured_command)
	(struct captured_command_args): Delete.
	(catch_command_errors): Simplify by inlining call to catch_errors.
2005-01-15 18:59:43 +00:00
Andrew Cagney 3af1e0e300 2005-01-15 Andrew Cagney <cagney@gnu.org>
* exceptions.c (struct catcher): Delete field print_message.
	(catcher_init): Delete print_message parameter.
	(catch_exception, catch_exceptions_with_msg, catch_errors): Update.
	(throw_it): Delete prefix parameter.
	(throw_verror, throw_vfatal, throw_error): Update.
2005-01-15 06:03:34 +00:00
Andrew Cagney e48f5bee49 2005-01-14 Andrew Cagney <cagney@gnu.org>
* exceptions.c (print_and_throw): Delete, replaced by throw_it.
	(throw_reason): Leave the exception's message field blank.
	(throw_it): New function, create the exception and throw it.
	(throw_verror, throw_vfatal, throw_error): Call throw_it.
	(print_any_exception): New function.
	(catch_errors, catch_exceptions_with_msg): Call
	print_any_exception.
	(throw_exception): Move code calling annotate_error and
	annotate_quit from here ...
	(print_exception): ... to here.
2005-01-15 05:16:15 +00:00
Andrew Cagney c6da7a6d7d 2005-01-14 Andrew Cagney <cagney@gnu.org>
* exceptions.c (exception_fprintf, exception_print): Move printing
	of \n from here ...
	(print_exception): ... to here.
	(print_flush): New function.
	(exception_print, exception_fprintf): Replace duplicated flush and
	wrap code with call to print_flush.
	(print_and_throw): Simplify, by using xstrvprintf, print_flush,
	and print_exception.
	(do_write): Delete.
2005-01-15 04:31:10 +00:00
Andrew Cagney d05559016d 2005-01-14 Andrew Cagney <cagney@gnu.org>
* remote-sds.c (interrupt_query): Call throw_reason instead of
	throw_exception.
	* remote-mips.c (mips_error, mips_kill): Ditto
	* ocd.c (interrupt_query): Ditto.
	* nto-procfs.c (interrupt_query): Ditto.
	* monitor.c (monitor_interrupt_query): Ditto.
2005-01-15 02:33:19 +00:00
Jeff Johnston 949df321ec 2005-01-14 Jeff Johnston <jjohnstn@redhat.com>
* ia64-linux-nat.c: Include "ia64-tdep.h" to get register definitions.
2005-01-15 00:10:02 +00:00
gdbadmin aa23c537d8 *** empty log message *** 2005-01-15 00:00:36 +00:00
Andrew Cagney 1c3c7ee7fb 2005-01-14 Andrew Cagney <cagney@gnu.org>
* exceptions.h (catch_exceptions): Delete errstring parameter.
	(catch_exceptions_with_msg): Ditto.
	* exceptions.c (catch_exceptions_with_msg): Update.
	(catch_exceptions): Update.
	* symfile-mem.c (add_vsyscall_page): Update.
	* frame.c (get_current_frame): Update.
	* wrapper.c (gdb_value_struct_elt): Update.
	* exceptions.c (catch_exceptions): Update.
	* thread.c (gdb_list_thread_ids, gdb_thread_select): Update.
	* breakpoint.c (gdb_breakpoint_query, gdb_breakpoint): Update.
	* remote-fileio.c (remote_fileio_request): Update.
2005-01-14 23:27:14 +00:00
Alan Modra f304d6ec50 daily update 2005-01-14 23:00:06 +00:00