Commit graph

6049 commits

Author SHA1 Message Date
Per Bothner
bebd888e23 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java. 2001-06-08 18:08:03 +00:00
Keith Seitz
8f45b7fe58 * tracepoint.c (tracepoint_opertation): Add ui event
notifications.
	(trace_pass_command): Ditto.
2001-06-07 22:02:18 +00:00
Andrew Cagney
a4f1e24f01 Jeff Law sepped down as HP/UX maintainer. 2001-06-07 21:43:00 +00:00
Andrew Cagney
b76a2a579b Doco write-after-approval criteria. 2001-06-07 21:03:48 +00:00
Jim Blandy
72e74a2126 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
variable values as operators.
2001-06-07 20:52:47 +00:00
Keith Seitz
8c6ee71525 * gdb-events.sh: Fix quote escaping which was obsoleted
by last patch.
2001-06-07 20:18:45 +00:00
Keith Seitz
9e79109904 * gdb-events.sh: Make if statements and tests
a little more portable.
	Don't use shell's echo command to put strings containing
	escaped characeters into a file -- different flavors of /bin/sh
	require differnt levels of escaping. Use cat <<EOF instead.
	Our internal field separator is a colon. Change all
	commands which assume it is a space.
2001-06-07 19:40:55 +00:00
Mark Kettenis
fce0e6e1ed * lin-lwp.c (struct lwp_info): Add member `resumed'.
(iterate_over_lwps): Make sure we can handle CALLBACK deleting the
LWP it's called for.
(lin_lwp_attach): Mark LWP as resumed to make sure the fake
SIGSTOP is reported.
(resume_clear_callback): New function.
(resume_set_callback): New function.
(lin_lwp_resume): Mark all LWP's that we're going to resume as
resumed, and unmark all others.
(status_callback): Only report a pending wait status if we pretend
that LP has been resumed.
(resumed_callback): New function.
(lin_lwp_wait): Add assertions to check that LWP's are properly
marked as resumed.  Partially revert 2001-05-25 patch by Michael
Snyder: do not resume all threads.  Add comment explaining the
problems associated with this bit of code.
2001-06-07 19:31:10 +00:00
Keith Seitz
54403c593a * MAINTAINTERS: Syd Polk is stepping down from
maintaining libgui. I am replacing him.
2001-06-07 18:37:40 +00:00
Eli Zaretskii
1d06468c1f * config/mips/tm-irix6.h: New file.
* config/mips/irix6.mh: New file.

	* config/mips/irix6.mt: New file.

	* config/mips/xm-irix6.h: New file.

	* config/mips/nm-irix6.h: New file.

	* mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
	disassembler info in tm_print_insn_info as appropriate for the N32
	ABI.  Force N32 ABI to be the default if the CPU is R8000 or
	R10000.

	* configure.tgt (mips*-sgi-irix6*): Map to irix6.

	* configure.host (mips*-sgi-irix6*): Ditto.
2001-06-07 15:57:57 +00:00
Andrew Cagney
3d499020f6 s/abort/gdb_assert/ 2001-06-07 14:51:20 +00:00
Jim Blandy
c5f5341b0e * cp-abi.h: Rearrange code to put documentation comments above the
functions we export.  The actual function table itself simply
refers to those functions.  Minor doc fixes.
2001-06-06 22:21:15 +00:00
Jim Blandy
ceaa8edf7e * gdbarch.sh: Changes to effect the following:
* gdbarch.c (initialize_non_multiarch): New function.
* gdbarch.h (initialize_non_multiarch): New declaration.
* arch-utils.c (initialize_current_architecture): For
non-multiarch configurations, call initialize_non_multiarch.
2001-06-06 17:47:28 +00:00
Andrew Cagney
0cd64fe2f1 Delete some unnecessary PTR uses. 2001-06-06 17:12:30 +00:00
Jonathan Larmour
8849f47dd9 * arch-utils.c (generic_prepare_to_proceed): Allow for having
stopped due to a Ctrl-C as well as breakpoints.

* hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
support thread switches after Ctrl-C.
* lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
* linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
* m3-nat.c (mach3_prepare_to_proceed): Ditto.
2001-06-06 16:31:32 +00:00
Jim Blandy
b3cc30771b * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
per-architecture data should be registered at initialization time,
before any gdbarch objects get used, so the generality is
unnecessary.
2001-06-06 14:46:30 +00:00
Keith Seitz
ba9fe0367b * gdb-events.sh (function_list): Add tracepoint_create,
tracepoint_delete, and tracepoint_modify events.
	* gdb-events.c: Regenerated.
	* gdb-events.h: Regenerated.
2001-06-06 14:44:42 +00:00
Keith Seitz
e28f816adc * gdb-events.sh: Update copyrights.
Change free to xfree.
	* gdb-events.c: Regenerated.
	* gdb-events.h: Regenerated.
2001-06-06 14:36:05 +00:00
Eli Zaretskii
c369014146 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
	* completer.c: Ditto.
	* cli/cli-cmds.c (cd_command): Ditto.
2001-06-06 10:27:59 +00:00
Eli Zaretskii
1012bd0e5f * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
(mips_set_processor_type_command): Remove unused variable j.
	(mips_breakpoint_from_pc): Declare breakpoint instruction
	sequences as unsigned char, to avoid compiler warnings.
2001-06-04 07:53:08 +00:00
Eli Zaretskii
fe4e3eb861 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
instead of system-specific define's like _WIN32 and __MSDOS__.
	Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
	ROOTED_P.
	(top-level): #include "filenames.h".

	* solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
	instead of SLASH_CHAR, ROOTED_P and SLASH_P.
	(top-level): #include "filenames.h".

	* defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
	(SLASH_STRING): Define only for _WIN32.

	* completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
	__MSDOS_.

	* cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
	IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P.  Replace
	system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
	(top-level): #include "filenames.h".
2001-06-04 07:45:08 +00:00
Eli Zaretskii
37ba1196cf *** empty log message *** 2001-06-04 07:29:29 +00:00
Jim Blandy
3c875b6f0d Expand the gdbarch per-architecture data vector as needed, rather
than requiring that all per-architecture data be registered before
the first gdbarch object is allocated.
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
declarations and definitions.
(check_gdbarch_data): New function, and declaration.
(gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
zero is good enough.
(free_gdbarch_data): Tolerate a null data pointer.  Free only
those data items gdbarch->data actually has allocated.
(set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
(gdbarch_update_p): No need to call init_gdbarch_data.
2001-06-02 03:50:56 +00:00
Kevin Buettner
98f96ba187 Make alignment of struct arguments in inferior function calls comply with
the IA-64 Software Conventions and Runtime manual.
2001-06-02 01:37:20 +00:00
Michael Snyder
8601f500c8 2001-06-01 Michael Snyder <msnyder@redhat.com>
* thread.c (delete_step_resume_breakpoint): New function.
	Maintain internal consistency of the thread list while deleting
	a step_resume_breakpoint.
	* gdbthread.h (delete_step_resume_breakpoint): Export.
	* breakpoint.c (bpstat_find_step_resume_breakpoint):
	Make thread-aware: don't return a step_resume_breakpoint
	for the wrong thread.
	* infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
	instead of delete_breakpoint_current_contents.
	(fetch_inferior_event): Ditto.
	(handle_inferior_event): Call delete_step_resume_breakpoint
	instead of delete_breakpoint.
2001-06-02 00:36:20 +00:00
Michael Snyder
c6ad9598d0 2001-06-01 Michael Snyder <msnyder@redhat.com>
* infrun.c (handle_inferior_event): After singlestepping over a
	thread-specific breakpoint, use currently_stepping() to decide
	whether to step or continue.
2001-06-01 23:23:19 +00:00
Jim Blandy
b27b8843dc * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
these static --- there's no reason other files should use these.
2001-06-01 22:22:25 +00:00
Jim Blandy
d0bbfec7b6 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.
2001-06-01 21:17:50 +00:00
Jim Blandy
531017dfa4 * partial-stab.h: New complaint: function_outside_compilation_unit.
(case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
complain, and don't try to set pst's start address.
2001-06-01 20:37:11 +00:00
Kevin Buettner
58ab00f996 Prologue scanner modifications. 2001-06-01 02:39:51 +00:00
Kevin Buettner
d469a809fa * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
match the location at which the kernel is placing the sigcontext
	struct.
2001-06-01 02:22:01 +00:00
Christopher Faylor
9fd7143a93 * partial-stab.h: Revert previous patch. 2001-05-31 03:41:31 +00:00
Christopher Faylor
34a7837abd * partial-stab.h: Consistently guard against pst being NULL. 2001-05-31 02:58:57 +00:00
Michael Snyder
c4365b1915 2001-05-25 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
	to consume the SIGSTOP generated by PTRACE_ATTACH.
	(stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
	try again to get the SIGSTOP event.
	(lin_lwp_wait): Resume all threads when ignoring a signal.
	This will insure that newly attached threads get resumed.
2001-05-30 22:58:37 +00:00
Michael Snyder
5f885618b6 2001-05-25 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2001-05-30 18:15:45 +00:00
Alexandre Oliva
09d011c5ca * symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.
* minsyms.c (compare_minimal_symbols): Likewise.
* coffread.c (find_targ_sec): Likewise.
* elfread.c (free_elfinfo, elf_locate_sections): Likewise.
* mipsread.c (alphacoff_locate_sections): Likewise.
* mdebugread.c (compare_blocks): Likewise.
2001-05-29 10:45:10 +00:00
Alexandre Oliva
ad53e288d3 * symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.
2001-05-29 10:20:27 +00:00
Nicholas Duffek
b41be06e3b * solib.c (update_solib_list): Move target_resize_to_sections()
into solib_map_sections() loop.
	(info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
	bfd_get_arch_size() fails.
2001-05-26 00:55:11 +00:00
Nicholas Duffek
a1cd19081d * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
solib-osf.o.
	* config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
	with solib-osf.o and solib.o.
	* config/alpha/alpha-osf2.mh: Likewise.
	* config/alpha/alpha-osf3.mh: Likewise.
	* solib-osf.c: New file, renamed and largely rewritten from
	osfsolib.c.
2001-05-26 00:52:15 +00:00
Michael Snyder
aa6c001779 2001-05-25 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Update 'p' packet pointer.
2001-05-25 17:46:33 +00:00
Jim Blandy
4b1fedf105 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
useful value, then we should fix that instead.
2001-05-25 17:09:48 +00:00
Nicholas Duffek
fa3b51d224 * solist.h (struct so_list): Document the requirement that
current_sos initialize some fields to 0.
2001-05-25 01:27:11 +00:00
Mark Kettenis
2747183e55 * gnu-nat.c: Include <ctype.h>.
(gnu_pid_to_exec_file): Add PID parameter.
(set_sig_thread_cmd): Use PIDGET on return value from
thread_id_to_pid.
(proc_string): Use MERGEPID to construct argument to
pid_to_thread_id.
2001-05-24 20:05:07 +00:00
Kevin Buettner
e4f237da05 * breakpoint.c (breakpoint_address_is_meaningful): New function.
(check_duplicates): Don't compare non-meaningful addresses.
2001-05-23 00:52:44 +00:00
Michael Snyder
5fd913cc66 2001-05-22 Michael Snyder <msnyder@redhat.com>
* thread-db.c: Allow for defunct zombie threads.
	(attach_thread): Do not attempt to attach zombie thread.
	(thread_db_thread_alive): Return false for defunct zombie thread.
	(find_new_threads_callback): Don't add defunct zombie thread to list.
2001-05-23 00:06:15 +00:00
Jim Blandy
7ed49443c2 Add support for the GNU V3 C++ ABI.
(Includes changes by Dan Berlin.)

* gnu-v3-abi.c: New file.
* minsyms.c: #include "value.h" and "cp-abi.h".
(install_minimal_symbols): Check the minimal symbol table for
symbols that look mangled in the V3 style, and select the V3 ABI
if we find any.
* Makefile.in (SFILES): Add gnu-v3-abi.c.
(COMMON_OBS): Add gnu-v3-abi.o.
(gnu-v3-abi.o): Add new rule.
(minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2001-05-22 21:02:41 +00:00
Jim Blandy
8d65888a44 * values.c (value_primitive_field): If we're extracting a base
class, then the type of the result should be the base class being
extracted, not the type of which it is a base class.
2001-05-21 20:08:59 +00:00
Jim Blandy
a44999d56d * value.h (struct value): Doc fix, and rearrange members to place
them near their explanations.
2001-05-21 20:02:22 +00:00
Michael Snyder
6c3f2dbfeb 2001-05-21 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_async_wait): Added new variable fieldsize.
	Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-21 18:48:26 +00:00
Jim Blandy
984e377c92 Formatting tweak. 2001-05-21 05:30:59 +00:00
Stephane Carrez
b4fa4770b8 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
(m68hc11_analyze_instruction): Update the pc correctly.
	(m68hc11_guess_from_prologue): Take into account the stack correction
	for the saving address.
2001-05-20 11:53:42 +00:00
Daniel Berlin
2b12787743 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
Changes by Jim Ingham:

	* values.c (value_change_enclosing_type): New function.  If the
	new enclosing type is larger than the old one, we need to allocate
	more space.
	* value.h: Add value_change_enclosing_type prototype.
	* valops.c (value_cast): Use it.
	(value_assign): Use it.
	(value_addr): Use it.
	(value_ind): Use it.
	(value_full_object): Use it.

2001-05-07  Daniel Berlin  <dan@cgsoftware.com>

	* values.c (value_static_field): Handle static fields that have a constant value.
2001-05-19 15:20:14 +00:00
Michael Snyder
736d0890a9 2001-05-17 Michael Snyder <msnyder@redhat.com>
* blockframe.c (create_new_frame): Zero all the fields via memset,
	rather than zeroing them one by one.
2001-05-17 20:04:46 +00:00
Eli Zaretskii
a577b05c32 * top.c (user_args): Remove unused declaration. 2001-05-17 15:05:32 +00:00
Michael Snyder
9734519825 2001-05-15 John S Kallal <jskallal@home.com>
* remote.c (remote_wait): Added new variable fieldsize.
        Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-16 20:10:52 +00:00
Michael Snyder
b8adfa9f55 2001-05-16 Michael Snyder <msnyder@redhat.com>
* infcmd.c (do_registers_info): Move alloca outside of loop.
2001-05-16 20:05:49 +00:00
Mark Kettenis
aca21d9a80 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
2001-05-15 11:38:26 +00:00
Kevin Buettner
b08cfdb65e Fix warnings resulting from fact that GET_LWP() now returns a long rather
than an int.
2001-05-15 00:13:47 +00:00
Kevin Buettner
ca6724c16a Redefine ptid_t to be a struct rather than an int. 2001-05-15 00:03:38 +00:00
Michael Snyder
234fa6d16b 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (hex2bin):   Make first argument const.
	Require explicit count, don't accept null-terminated str.
	(remote_resume, remote_async_resume): White space fix-up.
2001-05-14 19:02:00 +00:00
Mark Kettenis
caadab2cfa * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
basename (NAME).  The FreeBSD basename returns a pointer to a
static buffer, even if it's simply returning a string identical to
its argument.
(lookup_partial_symtab): Likewise.
2001-05-14 18:49:54 +00:00
Michael Snyder
cb0ba49e37 2001-05-14 Michael Snyder <msnyder@redhat.com>
* solib.c, solib.h: Add comment for function no_shared_libraries.
2001-05-14 18:45:45 +00:00
Michael Snyder
2644f3936c 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Set nr_bytes to return value of
	bin2hex.
2001-05-14 18:31:35 +00:00
Kevin Buettner
183a2f1a42 Fix no_shared_libraries() declaration. 2001-05-14 18:09:05 +00:00
Andrew Cagney
1dd1751e96 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
* solib.h (no_shared_libraries): Declare.
2001-05-14 16:48:01 +00:00
Andrew Cagney
b732d07d86 Fix logic selecting a new architecture. Use the sequence:
o	provided by INFO
	o	hard-wired by (gdb) set ...
	o	reversed engineered from INFO.abfd
	o	default to previous architecture
2001-05-14 16:43:35 +00:00
Fernando Nasser
67dd5ca691 2001-05-12 Fernando Nasser <fnasser@redhat.com>
* remote-e7000.c (e7000_open): Check for bad baud rate.
	* remote-st.c (st2000_open): Ditto.
2001-05-12 21:05:59 +00:00
Jim Blandy
f8e42d245c * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
and ui_out_tuple_end instead of ui_out_list_begin and
ui_out_list_end.
2001-05-12 05:04:01 +00:00
Jim Blandy
529acb4893 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
dependencies.  Reorder dependencies to match #includes in file,
for easier verification.
2001-05-12 04:09:38 +00:00
Andrew Cagney
666547aa9e s/ui_out_list/ui_out_tupple/ 2001-05-12 04:08:24 +00:00
Jim Blandy
30c98d84cd * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it. 2001-05-12 04:01:16 +00:00
Andrew Cagney
1faa59a8b2 Tweeks from RDBrown to fix compiling on HP/UX using HP's compiler. 2001-05-12 03:18:34 +00:00
Andrew Cagney
5d6640b1ba NEWS on version.in. 2001-05-12 01:34:09 +00:00
Jim Blandy
99567b1b4e * mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.
2001-05-12 00:38:11 +00:00
Andrew Cagney
d381488167 Replace Makefile.in:VERSION with the file version.in. 2001-05-12 00:31:09 +00:00
Kevin Buettner
4d28f7a8fb Add ``type'' parameter to set_raw_breakpoint(). 2001-05-11 19:46:35 +00:00
Fernando Nasser
08b4f080d5 2001-05-11 Fernando Nasser <fnasser@redhat.com>
* ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
	(hardwire_setbaudrate): Set errno to EINVAL and return with error
	if the conversion of the baud rate to code fails.
2001-05-11 18:34:13 +00:00
Andrew Cagney
127431f9a7 2001-05-10 Andrew Cagney <ac131313@redhat.com>
* ui-out.h (make_cleanup_ui_out_begin_end): Declare.
	* ui-out.c (struct ui_out_end_cleanup_data): Define.
	(do_cleanup_end): New function.  Replace do_list_end.
	(make_cleanup_ui_out_end): New function.
	(make_cleanup_ui_out_begin_end): New function.
	(make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2001-05-10 21:30:37 +00:00
Elena Zannoni
5dbc5e5f25 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* MAINTAINERS: Declare xcoffread.c open to all maintainers,
        and make Kevin Buettner (kevinb@redhat.com) the reference person.
2001-05-10 21:10:09 +00:00
Elena Zannoni
8e40d29290 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2001-05-10 21:03:03 +00:00
Fernando Nasser
5a703563ae 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* MAINTAINERS: Add testsuite subdirectory co-maintainers.
2001-05-10 20:33:09 +00:00
Andrew Cagney
6311b07d72 Fix -Werror problem with mi-main.c. 2001-05-10 20:31:46 +00:00
Michael Snyder
f78f6cf107 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): Call no_shared_libraries, so that
	symbols for shared libraries can be reloaded per session.
	(remote_async_open_1): Ditto.
2001-05-10 19:06:19 +00:00
Michael Snyder
30559e10c3 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (bin2hex, hex2bin): New functions.  Factor out these
	two conversions which are coded for repeatedly in this module.
	(remote_threads_extra_info, remote_wait, remote_async_wait,
	store_register_using_P, remote_store_registers, remote_write_bytes,
	remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
	of coding the conversions inline.
	(fromhex): Not exported, change from extern to static.
2001-05-10 19:00:35 +00:00
Andrew Cagney
0a1d979176 Delete ``info architecture'' command. 2001-05-10 18:36:26 +00:00
Andrew Cagney
ee05526729 General updates for 5.1/5.2 lists. 2001-05-10 18:20:51 +00:00
Andrew Cagney
85886af694 Jim Ingham stepping back from Arm maintenance. 2001-05-10 18:10:48 +00:00
Keith Seitz
ecb9ce7eca * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
and gdbtk-stack.o.
	(SUBDIR_GDBTK_SRCS): Ditto for the sources.
	(gdbtk-bp.o): New rule.
	(gdbtk-register.o): New rule.
	(gdbtk-stack.o): New rule.
	(gdbtk-cmds.o): Update dependencies.
	(gdbtk.o): Ditto.
	(gdbtk-hooks.o): Ditto.
	(gdbtk-varobj.o): Ditto.
2001-05-10 18:02:58 +00:00
Fernando Nasser
f7635dd920 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
	variables, not just unregister them.
2001-05-10 16:57:01 +00:00
Fernando Nasser
0755e6c1ab 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Check for target type of void*,
	not the target type name.  Allow dereferencing char*.
2001-05-10 16:44:56 +00:00
Fernando Nasser
d7db6da9f6 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* symfile.c (symbol_file_add_main_1): New static function.
	Passes the flags arguments to  symbol_file_add() and takes care
	of any necessary reinitializations.
        (symbol_file_command): Call symbol_file_add_main_1() instead of
        symbol_file_add().
        (symbol_file_add_main): Ditto.
2001-05-10 15:33:21 +00:00
Kevin Buettner
3d6e28e2e7 Revert a couple of small changes that inadvertently came in via the
2001-05-03 patch.
2001-05-10 01:34:17 +00:00
Kevin Buettner
01263b571c Minor ptid_t changes for the upcoming phase 3 ptid patch. 2001-05-10 01:07:39 +00:00
Elena Zannoni
74a151fa4a 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
* sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
 	conditional for help with connections through parallel ports,
 	given that the actual code for downloading through a parallel port
 	is not conditionalized.

	* sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
 	unmaintaned, and probably on its way to obsolescence.
2001-05-09 17:51:01 +00:00
Mark Kettenis
0d17c81d95 * i386-tdep.c (i386_frame_saved_pc): New function.
* config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
i386_frame_saved_pc.
(i386_frame_saved_pc): New prototype.
2001-05-09 16:16:33 +00:00
Mark Kettenis
d7a0d72c95 * i386-tdep.c (i386_register_virtual_type): New function.
(i386_register_convertible): New function.
* config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
of i386_register_virtual_type.
(REGISTER_CONVERTIBLE): Redefine in terms of
i386_register_convertible.
(i386_register_virtual_type, i386_register_convertible): New
prototypes.
2001-05-09 09:58:45 +00:00
Jim Blandy
3375748999 * Makefile.in (mn10300-tdep.o): New rule. 2001-05-09 05:45:30 +00:00
Jim Blandy
c2c197ae42 * Makefile.in (obstack_h, target_h): Define; these are already
used elsewhere, but have been expanding to the empty string.
(memattr_h): Define; needed by target_h.
2001-05-09 05:23:24 +00:00
Jim Blandy
c064f384c9 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
static.  (This was accidentally omitted from the earlier patch.)
2001-05-09 05:03:01 +00:00
Jim Blandy
2343651077 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
(mn10300_gdbarch_init): Register it as the architecture's
dwarf2_reg_to_regnum method.
2001-05-09 02:55:21 +00:00
Jim Blandy
ae83b20d8f Correct and expand handling of `movm' instruction, and register
saves in general.
* config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
(enum movm_register_bits): New enum.
* mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
bits, not hex literals.  Handle the `other', `exreg0', and
`exother' bits.  Correct handling of `exreg1': it saves r4, r5,
r6, and r7, not r2, r3, r4, and r5.
(saved_regs_size): New function.
(mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
of computing the same thing inline, incorrectly.
2001-05-09 02:44:01 +00:00
Jim Blandy
bf4b70a5e8 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
dummy_breakpoint_offset; it's zero.
2001-05-09 02:27:47 +00:00
Jim Blandy
ee9f9641e0 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
stuff out into mn10300_pop_frame_regular, and use
generic_pop_current_frame.  This lets us share code, and also
makes this function's prototype match that expected by gdbarch.
Make this function static.
(mn10300_pop_frame_regular): New function.
(mn10300_gdbarch_init): Register mn10300_pop_frame as the
gdbarch's pop_frame method.
* config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
(mn10300_pop_frame): Delete declaration.
2001-05-09 02:22:35 +00:00
Jim Blandy
2ac51b362b * mn10300-tdep.c (mn10300_saved_pc_after_call,
mn10300_extract_return_value,
mn10300_extract_struct_value_address, mn10300_store_return_value,
mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
mn10300_frame_chain, mn10300_skip_prologue,
mn10300_push_arguments, mn10300_push_return_address,
mn10300_store_struct_return, mn10300_frame_saved_pc,
mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
Make these functions static; they should only be visible to the
outside world as gdbarch methods.
2001-05-09 02:19:06 +00:00
Jim Blandy
af4e72e9d0 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
unused declaration.
2001-05-09 02:16:38 +00:00
Jim Blandy
584f96a8e0 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
in some rational order.
2001-05-09 02:09:48 +00:00
Jim Blandy
82d983b66b * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2001-05-09 02:07:36 +00:00
Jim Blandy
ad8fe2ce84 Use gdbarch for most target parameters for the MN10300, rather
than the tm-*.h file.
* config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
Delete definitions.  We register gdbarch methods for these now.
(struct frame_info, struct type, struct value): Delete forward
declarations of these types; they're no longer necessary, since we
don't have function declarations here any more.
* mn10300-tdep.c: #include "arch-utils.h", to get declarations for
some default gdbarch methods.
(mn10300_store_struct_return): Return void, as expected by
gdbarch.
(mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
as expected by gdbarch.
(mn10300_frame_init_saved_regs): Provide dummy definition for
this, as required by gdbarch.
(mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
by gdbarch.  Register gdbarch methods or values for all the stuff
removed from tm-10300.h, listed above.
2001-05-09 02:04:26 +00:00
Andrew Cagney
631ec795c9 Replace ui_out_list_{begin,end}() with ui_out_{begin,end}(). 2001-05-09 01:33:10 +00:00
Andrew Cagney
80f49b30cf Use a stack of structures (instead of a simple array) to keep track of
the top list.
2001-05-09 00:23:23 +00:00
Michael Snyder
7aedc9f8b2 2001-05-08 Michael Snyder <msnyder@redhat.com>
* language.c (longest_local_hex_string_custom): Strlen test is
	inverted -- reverse the sense of the test.
2001-05-08 21:19:43 +00:00
Mark Kettenis
c6ec85d6ae * config/i386/tm-i386v.h (struct frame_info, struct
frame_saved_regs):  Remove declarations.
(i386_frame_num_args): Remove prototype.
2001-05-08 12:00:49 +00:00
Andrew Cagney
f938fa6a95 Drop self as mn10300 maintainer. 2001-05-07 20:02:26 +00:00
Andrew Cagney
fb10666368 Zap some bogus #ifndef _WIN32 - hangover from WinGDB 2001-05-07 19:03:11 +00:00
Kevin Buettner
ce696e0556 Consolidate save_inferior_ptid/restore_inferior_ptid implementation to
one source file.
2001-05-06 22:22:03 +00:00
Mark Kettenis
c194fbe18b Implement attach/detach for multi-threaded programs on Linux.
* thread-db.c (keep_thread_db): Adjust comment.
(deactivate_target): Removed.
(thread_db_new_objfile): Don't call deactivate_target.  Implement
guts of deactivate_target inline instead.
(attach_thread): Call ATTACH_LWP unconditionally if defined.
(thread_db_attach): New function.
(thread_db_detach): Don't call deactivate_target.  Do necessary
cleanup inline instead.  Set inferior_ptid to LWP corresponding to
the current user-level thread.
(thread_db_kill): Set inferior_ptid to LWP corresponding to the
current user-level thread.
(thread_db_create_inferior): Deactivate target vector if
KEEP_THREAD_DB is zero.
(thread_db_mourn_inferior): Don't call deactivate_target.  Do
necessary cleanup inline instead.
(init_thread_db_ops): Initialize to_attach field to
thread_db_attach.
* lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
(stop_wait_callback): Add prototype.
(init_lwp_list): Add comment about when to re-initialize the LWP
list.
(lin_lwp_attach_lwp): Only call ptrace for cloned processes.
Avoid adding publicates to the LWP list.  Only mark an LWP as
signalled if it doesn't correspond to a cloned process.
(lin_lwp_attach): Add initial process to the LWP list.  Make sure
it's stopped and fake a SIGSTOP.
(detach_callback): New function.
(lin_lwp_detach): Implement.
(lin_lwp_create_inferior): Don't re-initialize LWP list here.
Call child_ops.to_create_inferior directly instead of via
target_beneath local.
(lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
directly instead of via target_beneath local.
2001-05-06 17:00:44 +00:00
Eli Zaretskii
a7fdf62f9b * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
instead of non-portable search for `/'.  Use FILENAME_CMP instead
	of STREQ, to account for case-insensitive filesystems.
	(top-level): #include "filenames.h".
2001-05-06 06:07:20 +00:00
Jim Blandy
644a1fe1ca * breakpoint.c (check_duplicates): Use the breakpoint's type, not
its address, to decide whether it's a watchpoint or not.  Zero
is a valid code address.
(update_breakpoints_after_exec): Admonishing comments.
* breakpoint.h (struct breakpoint): Doc fixes.
2001-05-06 01:35:57 +00:00
Jim Blandy
9f60f21b6d * breakpoint.c (check_duplicates): Take a breakpoint object as an
argument, rather than an address and section.  All callers changed.
2001-05-06 00:52:07 +00:00
Kevin Buettner
39f770628a Phase 1 of the ptid_t changes. 2001-05-04 04:15:33 +00:00
Jonathan Larmour
31e28849ee * rdi-share/devsw.c: Include <time.h> for struct tm 2001-05-03 13:42:12 +00:00
Eli Zaretskii
8d34114297 * config/djgpp/fnchange.lst: Add mappings for the new
opcodes/openrisc-* files.
2001-05-03 13:25:21 +00:00
Michael Snyder
9085700cc0 2001-05-01 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c: Change printf to fprintf_unfiltered.
2001-05-01 20:39:51 +00:00
Michael Snyder
9572d2b676 2001-05-01 Michael Snyder <msnyder@redhat.com>
* Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
2001-05-01 20:15:43 +00:00
Nicholas Duffek
977adac5db * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
(rs6000_in_solib_return_trampoline): Declare.
	* rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
	function.
	(rs6000_skip_trampoline_code): Skip bigtoc fixup code.
	* xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
	check after the CSECT check rather than before it.  Allocate
	separate symtabs for CSECTs whose names begin with '@'.
	(scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
	Activate the misc_func_recorded mechanism for whose names begin
	with '@'.
2001-05-01 19:36:11 +00:00
Eli Zaretskii
f5a6fc0555 *** empty log message *** 2001-05-01 08:54:08 +00:00
J.T. Conklin
6d7993318a * ppcnbsd-nat.c (fetch_inferior_registers)
(store_inferior_registers, fetch_core_registers): Changed to use
fpreg[] instead of r_regs[] to access floating point registers.
2001-04-30 23:57:27 +00:00
Elena Zannoni
7f4dbe9449 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c: Get rid of the function prototypes.
      (sh_sh4_build_float_register_type): Move earlier in file.
      (fv_reg_base_num): Ditto.
      (dr_reg_base_num): Ditto.
2001-04-30 20:57:31 +00:00
Michael Snyder
7ca673cdc5 2001-04-30 Michael Snyder <msnyder@redhat.com>
* thread-db.c: Revert 2001-04-26 change for debugging output.
	* lin-lwp.c: Ditto.
	* lin-lwp.c: Add set/show debug lin-lwp command.  Use this
	command to turn extra debugging output on / off.
2001-04-30 20:25:07 +00:00
Michael Snyder
540af40015 2001-04-30 Michael Snyder <msnyder@redhat.com>
* thread-db.c: Revert 2001-04-26 change for debugging output.
	* lin-lwp.c:   Ditto.
2001-04-30 18:21:17 +00:00
Andrew Cagney
502dcf4e39 Always initialize `p'. 2001-04-30 17:09:19 +00:00
Andrew Cagney
cc3f9cbbf7 Zap romp host. 2001-04-27 16:40:29 +00:00
Andrew Cagney
ed9c5cf251 All 5.1 obsolete targets are done. 2001-04-27 16:20:51 +00:00
Don Howard
128437e69f (Changes from Kevin Buettner, with minor update by Don Howard.)
* i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
	typos in which hexadecimal constants were really intended to be
	binary constants.
	(i387_tag): Swap logic regarding zero vs non-zero exponents.
2001-04-27 16:06:53 +00:00
Don Howard
d1a310e7f4 Added myself to the write-after-approval list. 2001-04-27 15:53:06 +00:00
Jim Blandy
015a42b4cf (Changes from Daniel Berlin, with revisions by Jim Blandy.)
Abstract out operations specific to particular C++ ABI's, and
invoke them through a function table.  This removes the C++ ABI
dependencies scattered throughout the code, and allows us to
cleanly add support for new C++ ABI's.
* cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
* c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
#include "cp-abi.h".  These files all use functions now declared
there.
* symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
Deleted.  These services are now provided by functions declared in
cp-abi.h.
* value.h (value_rtti_type, value_virtual_fn_field): Same.
* values.c (value_virtual_fn_field): Same, for this definition.
* valops.c (value_rtti_type): Same.
* c-typeprint.c (c_type_print_base): Use the functions from
"cp-abi.h", instead of the old macros, or hard-coded ABI-specific
tests.
* dbxread.c (record_minimal_symbol): Same.
* gdbtypes.c (get_destructor_fn_field, virtual_base_index,
virtual_base_index_skip_primaries): Same.
* jv-typeprint.c (java_type_print_base): Same.
* linespec.c (find_methods, decode_line_1): Same.
* symtab.c (gdb_mangle_name): Same.
* Makefile.in (SFILES): Add the new .c files mentioned above.
(cp_abi_h): New variable.
(COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
(cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
(c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
dependency on $(cp_abi_h).
2001-04-27 00:19:09 +00:00
Michael Snyder
20b8570d73 2001-04-26 Michael Snyder <msnyder@redhat.com>
* thread-db.c (_initialize_thread_db): Add set/show command
	"debug-linux-threads" for debugging output.
	* lin-lwp.c (various): Use global "debug_linux_threads to
	turn on extra debugging output.
2001-04-26 23:14:20 +00:00
Michael Snyder
4c8de859cc 2001-04-26 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c: Minor cleanups in comments.
2001-04-26 22:35:08 +00:00
Michael Snyder
f3fb8c8501 2001-04-26 Michael Snyder <msnyder@redhat.com>
* target.c (normal_pid_to_str): Get rid of an ancient hack.
	* remote.c (remote_pid_to_str): New function for remote target.
2001-04-26 22:10:42 +00:00
Jim Blandy
7f0b5c30f8 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
qualifier on C++ references; all references are innately const.
2001-04-24 23:12:50 +00:00
Mark Kettenis
0af5533d75 * event-top.h: Fix formatting. 2001-04-20 14:25:59 +00:00
Andrew Cagney
d036b4d9cf Obsolete MPW as host. 2001-04-19 23:56:14 +00:00
Mark Kettenis
539ffe0b42 * i386-tdep.c (i386_frameless_function_invocation): New function.
* config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
in terms of i386_frameless_function_invocation.  Adjust comment.
(i386_frameless_function_invocation): New prototype.
2001-04-19 11:39:48 +00:00
Martin Hunt
67e1e03acb 2001-04-18 Martin M. Hunt <hunt@redhat.com>
* top.c (gdb_init): Don't call cli_out_new() to
	create global uiout if init_ui_hook is set.  uiout will
	have to be initialized there.
2001-04-19 05:28:12 +00:00
Andrew Cagney
fbec36e2cb #include "regcache.h". 2001-04-19 00:37:24 +00:00
Michael Snyder
c9e030cfcd 2001-04-17 Michael Snyder <msnyder@redhat.com>
* i386-nat.c: Fix typo in comment.
2001-04-18 00:37:49 +00:00
Michael Snyder
c60a7562e3 2001-04-17 Michael Snyder <msnyder@redhat.com>
* solib.c (no_shared_libraries): New function.  Discard all symbols
	from shared libraries.
	(_initialize_solib): Add command "nosharedlibrary" as complement
	to the command "sharedlibrary".  Unloads symbols for all solibs.
2001-04-17 23:21:48 +00:00
Mark Kettenis
ed84f6c149 * i386-tdep.c (i386_saved_pc_after_call): New function.
* config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
of i386_saved_pc_after_call.
(i386_saved_pc_after_call): New prototype.
2001-04-17 23:20:55 +00:00
Andrew Cagney
514e603dc0 Obsolete NEWS and ISI systems (along with a few redundant m68k targets). 2001-04-17 21:20:49 +00:00
Michael Snyder
6240bebf51 2001-04-17 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): On opening the remote target, activate
	the solib_create_inferior_hook, so that it can detect when the
	target loads shared libraries.
	(remote_async_open_1): Ditto.
2001-04-17 20:31:00 +00:00
Michael Snyder
75ac9d7b9d 2001-04-17 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
	* tracepoint.c (tracepoints_info): Handle 64-bit addresses.
        * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
	* testsuite/gdb.trace/infotrace.exp: Ditto.
        * testsuite/gdb.trace/passcount.exp: Ditto.
	* testsuite/gdb.trace/while-stepping.exp: Ditto.
2001-04-17 20:16:31 +00:00
Michael Snyder
b95697738e 2001-04-17 Michael Snyder <msnyder@redhat.com>
* thread-db.c (check_thread_signals): When looping over all
	signals, ignore signal zero.
	(disable_thread_signals): Ditto.
2001-04-17 19:14:54 +00:00
Michael Snyder
81490ea1cb 2001-04-17 Eirik Fuller <eirik@netapp.com>
* thread.c (do_captured_thread_select): Allow the argument to the
	thread command to be an expression rather than a literal integer.
2001-04-17 19:01:35 +00:00
Mark Kettenis
e5434c3d1a * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
read_memory_unsigned_integer instead of read_memory_integer.
2001-04-17 09:38:52 +00:00
Kevin Buettner
00c7912d77 * solib-aix5.c (map_index_vs_section_name_okay): New function.
(aix5_relocate_main_executable): Don't use file offsets for
	determining corresponding sections and map file entries.  Call
	map_index_vs_section_name_okay() to do this instead.
2001-04-17 02:29:23 +00:00
Kevin Buettner
4d1bcd09bd Add code to retry certain open()s. 2001-04-17 01:24:49 +00:00
Kevin Buettner
097e5c0b4c Fix date on previous commit. 2001-04-16 21:40:48 +00:00
Kevin Buettner
1186f287dc Make hw watchpoints work with both the 2.4.2 kernel and the 2.4.3 kernel. 2001-04-16 21:26:46 +00:00
Daniel Berlin
9e0c176c3b 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
* demangle.c (_initialize_demangler): Use xcalloc on the
	demangling_style_names, and make it a null terminated array of
	names, to avoid a crash.
2001-04-16 14:36:16 +00:00
Mark Kettenis
c833a37e77 * i386-tdep.c (i386_frame_chain): New function.
* config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
i386_frame_chain.
(i386_frame_chain): New prototype.
2001-04-16 13:03:15 +00:00
J.T. Conklin
46c6cdcf5e * target.h (target_ops): Removed to_core_file_to_sym_file vector
function.
* corelow.c (core_ops): Updated for above change.
* gnu-nat.c (core_ops): Likewise.
* inftarg.c (child_ops): Likewise.
* monitor.c (monitor_ops): Likewise.
* ppc-bdm.c (bdm_ppc_ops): Likewise.
* remote-adapt.c (adapt_ops): Likewise.
* remote-bug.c (bug_ops): Likewise.
* remote-e7000.c (e7000_ops): Likewise.
* remote-eb.c (eb_ops): Likewise.
* remote-es.c (es1800_ops, es1800_child_ops): Likewise.
* remote-mm.c (mm_ops): Likewise.
* remote-nindy.c (nindy_ops): Likewise.
* remote-nrom.c (nrom_ops): Likewise.
* remote-os9k.c (rombug_ops): Likewise.
* remote-rdp.c (remote_rdp_ops): Likewise.
* remote-sim.c (gdbsim_ops): Likewise.
* remote-st.c (st2000_ops): Likewise.
* v850ice.c (v850ice_ops): Likewise.
* target.c (cleanup_target): Likewise
(update_current_target): Likewise.
(setup_target_debug): Likewise
(debug_to_core_file_to_sym_file): Removed.

* corefile.c (core_file_command) [HPUXHPPA]: Removed code that
sets symbol file from information obtained from the core file.
* corelow.c (core_file_to_sym_file): Removed.
2001-04-14 19:23:02 +00:00
Fernando Nasser
d1566ff562 2001-04-13 Fernando Nasser <fnasser@redhat.com>
From  Adam Mirowski  <Adam.Mirowski@Sun.COM>
	Fixed Insight on Solaris. It was not possible to debug a process
	because of EINTR "errors".
	* procfs.c: (procfs_wait): if proc_wait_for_stop() fails
	with EINTR, retry the call.
2001-04-13 13:51:54 +00:00
Kevin Buettner
6c98e688d5 Revise way in which mappings are allocated/searched. 2001-04-12 22:27:09 +00:00
Nicholas Duffek
49282387fc * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
"@".
2001-04-12 19:53:09 +00:00
Kevin Buettner
7f6b83a5db * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o. 2001-04-12 18:44:40 +00:00
Andrew Cagney
24f89b6880 Obsolete sun386i. 2001-04-11 22:39:07 +00:00
J.T. Conklin
c114dcd5b7 * maint.c: Fix typo in comment. 2001-04-11 01:01:04 +00:00
Keith Seitz
6755f5adf6 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer. 2001-04-10 03:03:28 +00:00
Kevin Buettner
7700434b5c Add comments noting that vfork might be defined to be fork. 2001-04-08 18:26:03 +00:00
Kevin Buettner
d493eb331e Use cleanup machinery to invoke ui_out_list_end(). 2001-04-08 17:55:13 +00:00
J.T. Conklin
c839c4db61 * dcache.c (dcache_write_line): Fixed bugs where cache line was
not written to target correctly.
2001-04-06 22:43:55 +00:00
J.T. Conklin
af471f3cf4 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
void return value;
* gdbserver/low-nbsd.c: Likewise.
* gdbserver/low-sparc.c: Likewise.
* gdbserver/low-sun3.c: Likewise.
---------------------------------------------------------------------
2001-04-06 22:25:09 +00:00
Geoffrey Keating
d8e275b49d * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
(PTRACE_DETACH): Don't define.
2001-04-06 21:05:10 +00:00
Christopher Faylor
125503dda0 Correct erroneous ChangeLog. 2001-04-06 19:24:16 +00:00
David Smith
e02bc4cc30 2001-04-06 David Smith <dsmith@redhat.com>
* arch-utils.c (default_prepare_to_proceed)
	(generic_prepare_to_proceed): Added new functions.
	* arch-utils.h: New function declarations for
	default_prepare_to_proceed() and generic_prepare_to_proceed().
	* gdbarch.sh: Added PREPARE_TO_PROCEED.
	* gdbarch.c: Regenerated.
	* gdbarch.h: Regenerated.
	* inferior.h: Added get_last_target_status() declaration.
	* infrun.c (get_last_target_status): Added new function.
	(handle_inferior_event): Saves last pid and waitstatus, which will
	get returned by get_last_target_status().

	* hppa-tdep.c (prepare_to_proceed):  Added comment stating that
	prepare_to_proceed() is potentially redundant since
	default_prepare_to_proceed() has been added.
	* linux-thread.c (prepare_to_proceed): Ditto.
	* lin-lwp.c (prepare_to_proceed): Ditto.
	* m3-nat.c (prepare_to_proceed): Ditto.
2001-04-06 17:53:39 +00:00
Andrew Cagney
1b2b2c1600 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
and powerpc-*-netware* target.
2001-04-06 16:25:22 +00:00
Fernando Nasser
063fd66879 2001-04-06 Fernando Nasser <fnasser@redhat.com>
* buildsym.c (record_line): Turn off unused addr bits.
2001-04-06 13:14:55 +00:00
Fernando Nasser
a250df2e35 2001-04-06 Fernando Nasser <fnasser@redhat.com>
From David Deephanphongs <deephan@telocity.com>
	* inferior.h:   Fix declarations of get_inferior_args and
	set_inferior_args, which were missing the trailing 's'.
2001-04-06 12:09:30 +00:00
Jeff Holcomb
1fcef33420 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
* monitor.c (monitor_supply_register): Only report an error if we
        don't get a valid value.
2001-04-05 17:44:06 +00:00
Eli Zaretskii
f032fb6e9e * README: Don't mention gdba.el. 2001-04-05 16:52:30 +00:00
Elena Zannoni
0191bed77d 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From  Jimmy Guo  <guo@cup.hp.com>
        * top.c (init_main): set prompt if annotation_level>1,
        this is necessary when annotation_level is set to 2 via
        --annotate=2 command line option.
2001-04-05 15:19:42 +00:00
Andrew Cagney
4a1968f494 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets. 2001-04-05 14:49:29 +00:00
Christopher Faylor
608506ed67 * main.c: Remove windows.h use.
(gdbtk_test): Use PATH_MAX for home var calculation.
* remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as Win32 in
test.
* ser-tcp.c: Use modern __CYGWIN__ conditional.
* source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
(openp): Ditto.
* symfile.c (symfile_bfd_open): Ditto.
* gdbtk/generic/gdbtk.c: Ditto.
2001-04-05 02:02:13 +00:00
Martin Hunt
6457bd4761 2001-04-04 Martin M. Hunt <hunt@redhat.com>
* main.c (captured_main): For GDBtk, don't use tui_fileopen().
	Handle all stream setup in gdbtk_init
2001-04-05 00:04:45 +00:00
Mark Kettenis
3df1b9b49d * i386-tdep.c (i386_extract_return_value): Don't return the return
value of a void function.
(i386_store_return_value): Likewise.
2001-04-04 15:09:46 +00:00
Andrew Cagney
76f4ea5303 Obsolete w65-*-* target. 2001-04-03 21:56:01 +00:00
Andrew Cagney
52071915c8 Obsolete tic80. 2001-04-03 21:14:37 +00:00
J.T. Conklin
ba79cc8154 * remote-mips.c (S_IROTH): Moved definition from here.
* gdb_stat.h (S_IROTH): to here.
2001-04-03 01:51:26 +00:00
J.T. Conklin
44eaed12c5 * remote.c (remote_protocol_e, remote_protocol_E): Define.
(set_remote_protocol_e_packet_cmd)
(set_remote_protocol_E_packet_cmd)
(show_remote_protocol_e_packet_command)
(show_remote_protocol_E_packet_command): New functions.
(init_all_packet_configs): Initialize remote_protocol_e and
remote_protocol_E.
(remote_resume, remote_async_resume): Support e/E command
packets.
(show_remote_cmd): Show state of remote_protocol_e and
remote_protocol_E.
(_initialize_remote): Add "set remote step-over-range-packet"
and "set remote step-over-range-w-signal-packet" to CLI.
-------------------------------------------------------------------
2001-04-03 01:42:17 +00:00
Andrew Cagney
bb19ff3b14 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
ns32k-utek-*.
2001-04-02 20:57:26 +00:00
Eli Zaretskii
d6259d756b * config/djgpp/fnchange.lst: Tweak due to
expect/example/chesslib.c.
2001-04-02 17:16:11 +00:00
Kevin Buettner
971ff5453a Make --target=m88k buildable again. 2001-04-02 14:47:22 +00:00
Daniel Berlin
4e4f46a17d 2001-03-20 Daniel Berlin <dberlin@redhat.com>
* symtab.c (completion_list_add_name): Remove duplicate string checks,
	readline already does this, and it's much faster at it, too.
2001-04-01 19:50:50 +00:00
Eli Zaretskii
ba8629a96e * go32-nat.c: Minor tweaks, to pacify the ari script. 2001-04-01 14:01:52 +00:00
Mark Kettenis
f7af964784 * i386-tdep.c (i386_extract_struct_value_address): New function.
* config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
in terms of i386_extract_struct_value_address.
(i386_extract_struct_value_address): New prototype.
2001-04-01 12:39:52 +00:00
Mark Kettenis
7bf0983e94 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
value to `unsigned long'.  Change type of `value' to `unsigned
long'.
(i386_linux_dr_set): Change type of second argument to `unsigned
long'.
(i386_linux_dr_set_control): Change type of first argument to
`unsigned long'.
(i386_linux_dr_get_status): Change type of return value to
unsigned long.
* config/i386/nm-linux.h (i386_linux_dr_set_control,
i386_linux_dr_get_status): Adjust prototypes accordingly.
2001-04-01 10:48:48 +00:00
Kevin Buettner
517a56366b Revert change to config/ia64/linux.mh in which core-regset.h was
removed from NATDEPFILES.
2001-03-31 23:07:10 +00:00
Kevin Buettner
521f1f968c * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o
from list.
2001-03-31 22:55:25 +00:00
Kevin Buettner
6e4862ff55 Make hardware watchpoint support work again on Linux/IA-64. 2001-03-31 21:53:39 +00:00
Mark Kettenis
0afdd43759 * i386bsd-nat.c: Include "gdb_assert.h".
[HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
already defined.
[HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
i386bsd_dr_get_status): New functions.
* config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
(I386_USE_GENERIC_WATCHPOINTS): Define.
Include "i386/nm-i386.h".
(I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
(i386bsd_dr_set_control, i386bsd_dr_set_addr,
i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
* acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
* configure.in: Cleanup a few comments.  Check for PT_GETDBREGS
ptrace request.
* config.in, configure: Regenerate.
2001-03-31 18:09:03 +00:00