Commit Graph

18026 Commits

Author SHA1 Message Date
gdbadmin 97fca46524 *** empty log message *** 2005-01-02 00:00:04 +00:00
Joel Brobecker e22b26cbff * hppa-tdep.c (prologue_inst_adjust_sp): Fix small confusion
in register number for addil instruction.
2005-01-01 12:28:21 +00:00
gdbadmin 8bcccff18f *** empty log message *** 2005-01-01 00:00:04 +00:00
gdbadmin e2c1bc70b1 *** empty log message *** 2004-12-31 00:00:33 +00:00
gdbadmin 1244e39887 *** empty log message *** 2004-12-30 00:00:34 +00:00
gdbadmin e8d6fddf14 *** empty log message *** 2004-12-29 00:00:04 +00:00
Jim Blandy 3f9a994c5e * remote.c (fetch_register_using_p): Recognize a register value
starting with 'x' as indicating an unfetchable register.
2004-12-28 09:06:10 +00:00
gdbadmin 7d2a4abafe *** empty log message *** 2004-12-28 00:00:03 +00:00
Mark Kettenis e0eee039ce * config/mips/obsd64.mh (NATDEPFILES): Unwrap line. 2004-12-27 15:08:13 +00:00
gdbadmin d274dd3683 *** empty log message *** 2004-12-27 00:00:33 +00:00
Mark Kettenis c9591d9843 * inftarg.c (child_xfer_partial): Remove code that handles
TARGET_OBJ_WCOOKIE.
2004-12-26 23:24:26 +00:00
gdbadmin aa0d59f223 *** empty log message *** 2004-12-26 00:00:33 +00:00
Mark Kettenis 4c4e409cd4 * inftarg.c (child_create_inferior) [HPUXHPPA]: Remove code. 2004-12-25 12:31:35 +00:00
Mark Kettenis 536ffdb7e1 * gdbint.texinfo (Algorithms): Remove description of
TARGET_DISABLE_HW_WATCHPOINTS and TARGET_ENABLE_HW_WATCHPOINTS.
2004-12-25 10:19:48 +00:00
gdbadmin 01f2a9c402 *** empty log message *** 2004-12-25 00:00:04 +00:00
Mark Kettenis b4dc5ffa12 * target.h (TARGET_DISABLE_HW_WATCHPOINTS)
(TARGET_ENABLE_HW_WATCHPOINTS): Remove macros.
* infrun.c (struct execution_control_state): Remove
enable_hw_watchpoints_after_wait member.
(number_of_threads_in_syscalls): Remove variable.
(init_wait_for_inferior): Don't initialize
number_of_threads_in_syscalls.
(init_execution_control_state): Don't initialize
ECS->enable_hw_watchpoints_after_wait.
(handle_inferior_event): Never invoke TARGET_ENABLE_HW_WATCHPOINTS
or TARGET_DISABLE_HW_WATCHPOINTS.
2004-12-24 22:54:02 +00:00
Mark Kettenis 3d171c85e7 * i386-tdep.h (i386_collect_gregset): New prototype.
* i386-nto-tdep.c (i386_nto_target): Move variable.  Add comment.
(i386nto_gregset_reg_offset): Rename frame regmap.
(nto_reg_offset): Tweak comment.  Use ARRAY_SIZE.
(i386nto_supply_gregset): Implement using register set support.
(i386nto_supply_regset): Remove redundant comment.
(i386nto_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset.
* nto-tdep.c (fetch_core_registers): Remove function.
(regset_core_fns): Remove structure.
(_initialize_nto_tdep): Don't call deprecated_add_core_fns.
2004-12-24 14:45:32 +00:00
gdbadmin b4c8d1433f *** empty log message *** 2004-12-24 00:00:33 +00:00
Mark Kettenis 17ca283af2 * i386-nto-tdep.c: Reorder include files.
(i386nto_svr4_fetch_link_map_offsets): Remove function.
(init_i386nto_ops, i386nto_init_abi): Use
svr4_ilp32_fetch_link_map_offsets instead of
i386nto_svr4_fetch_link_map_offsets.
2004-12-23 22:34:23 +00:00
gdbadmin f471f2e78b *** empty log message *** 2004-12-23 00:00:04 +00:00
gdbadmin 15dafedca8 *** empty log message *** 2004-12-22 00:00:03 +00:00
Mark Kettenis 8f4e467cb1 * hppa-tdep.c (hppa_frame_prev_register_helper): Make 64-bit safe. 2004-12-21 22:50:54 +00:00
Mark Kettenis 9738b0348b * hppa-tdep.c (hppa64_return_value): Fix previous commit. 2004-12-21 22:06:40 +00:00
Mark Kettenis 08a2711331 * hppa-tdep.c (hppa32_return_value): Move further down.
(hppa64_return_value): Re-implement.
2004-12-21 21:36:28 +00:00
Jim Blandy 8480adf25b * remote.c (fetch_register_using_p): Fix formatting. 2004-12-21 21:24:56 +00:00
Paul N. Hilfinger 0b48a29120 * ada-lang.c (ada_print_subexp): Remove i18n markup from Ada code
output.
* ada-typeprint.c (ada_typedef_print): Ditto.
(print_unchecked_union_type): Ditto.
(print_record_type): Ditto, and correct output for non-derived
types that was inadvertently left off during the markup.
2004-12-21 10:03:55 +00:00
gdbadmin 5acea80106 *** empty log message *** 2004-12-21 00:00:33 +00:00
gdbadmin 12769ad22a *** empty log message *** 2004-12-20 00:00:33 +00:00
Mark Kettenis 81092a3ee1 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
whether the name returned by find_pc_partial_function is a null
pointer, not whether it is an empty string.
2004-12-19 22:09:26 +00:00
Mark Kettenis 38ca4e0c24 * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
* hppa-tdep.c (hppa64_integral_or_pointer_p)
(hppa64_floating_p) New functions.
(hppa64_push_dummy_call): Re-implement.
(hppa32_register_type): Rename argument reg_nr to regnum.
(hppa64_register_type): Likewise.  Use HPPA64_FP4_REGNUM instead
of HPPA_FP4_REGNUM.
(hppa32_cannot_store_register): Renamed from
hppa_cannot_store_register.
(hppa64_cannot_store_register): New function.
(hppa_gdbarch_init): Set cannot_store_register and
cannot_fetch_register to hppa32_cannot_store_register or
hppa64_cannot_store_register when appropriate.
2004-12-19 21:09:40 +00:00
gdbadmin a94ab04713 *** empty log message *** 2004-12-19 00:00:02 +00:00
Mark Kettenis 87285d5bcb * hppah-nat.c: Remove file.
* infttrace.h: Remove file.
* infttrace.c: Remove file.
* Makefile.in (ALLDEPFILES): Remove hppah-nat.c
(infttrace_h): Remove variable.
(hppah-nat.o, infttrace.o): Remove dependencies.
* configure.host (hppa*64*-*-hpux11*): Remove.
* config/pa/hpux11w.mh: Remove file.
* config/pa/nm-hppah.h: Remove file.
* config/pa/nm-hppah11.h: Remove file.
2004-12-18 17:36:33 +00:00
Mark Kettenis 70d1ae419f * config/djgpp/fnchange.lst: Resolve name clash between
../bfd/elf32-arm.c and ../bfd/elf32-arc.c, i386-sol2-nat.c and
i386-sol2-tdep.c, mips64obsd-nat.c and mips64obsd-tdep.c,
testsuite/gdb.base/bitfields.c and
testsuite/gdb.base/bitfields2.c, testsuite/gdb.base/bitfields.exp
and testsuite/gdb.base/bitfields2.exp.  Remove entry for
config/m88k/xm-delta88v4.h.
2004-12-18 14:53:39 +00:00
Mark Kettenis d0ac9ef822 * solib-pa64.c: Only include <dlfcn.h>, <elf.h> and <elf_hp.h> if
PA_SOM_ONLY isn't defined.
2004-12-18 14:27:57 +00:00
Mark Kettenis 17fe2d6e13 * somread.c: Include "solib-som.h".
(som_symfile_init, som_new_init, som_symfile_read,
som_symfile_finish, som_symtab_read, som_symfile_offsets): Remove
redudant prototypes.
* Makefile.in (somread.o): Update dependencies.
2004-12-18 14:21:09 +00:00
gdbadmin d29b835cdb *** empty log message *** 2004-12-18 00:00:36 +00:00
Jim Blandy 1ee455f4ea * remote.c (fetch_register_using_p): Indentation cleanup. 2004-12-17 22:19:51 +00:00
Randolph Chung 1c95a4acbf 2004-12-17 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (setup_d_pid_in_inferior): Make static.
	(find_stub_with_shl_get): Make static.
2004-12-17 19:21:20 +00:00
Randolph Chung 77d18ded6e 2004-12-17 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (IS_32BIT_TARGET): New.
	(in_opd_section): New.
	(hppa32_hpux_find_global_pointer): Rename from
	hppa_hpux_som_find_global_pointer.
	(hppa64_hpux_find_global_pointer): New.
	(ldsid_pattern): New.
	(hppa_hpux_search_pattern): New.
	(hppa32_hpux_search_dummy_call_sequence): New.
	(hppa64_hpux_search_dummy_call_sequence): New.
	(hppa_hpux_find_import_stub_for_addr): New.
	(hppa_hpux_sr_for_addr): New.
	(hppa_hpux_find_dummy_bpaddr): New.
	(hppa_hpux_init_abi): Use IS_32BIT_TARGET predicate.
	(hppa_hpux_som_init_abi): Set find_global_pointer method to
	hppa32_hpux_find_global_pointer instead of
	hppa_hpux_som_find_global_pointer.
	(hppa_hpux_elf_init_abi): Set find_global_pointer method.
	* hppa-tdep.c (hppa_init_objfile_priv_data): New.
	(read_unwind_info): Use function to initialize objfile-private data.
	(hppa32_push_dummy_call): Don't automatically set the RP if there is
	a push_dummy_code method.
	(hppa64_push_dummy_call): Retrieve and set the global pointer.
	Don't automatically set the RP if there is a push_dummy_code method.
	* hppa-tdep.h (hppa_objfile_private): Add dummy_call_sequence_reg and
	dummy_call_sequence_addr members.
	(hppa_init_objfile_priv_data): New prototype.
2004-12-17 19:09:53 +00:00
Joel Brobecker ff644745cd * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): New function.
* hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Add declaration.
        * solib-som.c (som_solib_create_inferior_hook): Replace stub
        msymbol search by call to hppa_lookup_stub_minimal_symbol. This
        extends the search to all objfiles, not just shared libraries.
        Remove unused variable.
2004-12-17 07:42:48 +00:00
gdbadmin bca22fde58 *** empty log message *** 2004-12-17 00:00:09 +00:00
Michael Snyder 5260ca71c4 2004-12-16 Michael Snyder <msnyder@redhat.com>
* MAINTAINERS: Add myself as maintainer for mn10300.
	* NEWS: Mention mn10300.
2004-12-16 23:53:12 +00:00
gdbadmin 120398a2fc *** empty log message *** 2004-12-16 00:00:02 +00:00
Kevin Buettner 28fe5f6afd * xstormy16-tdep.c (xstormy16_skip_prologue): Clear/initialize the
frame cache.
2004-12-15 22:45:39 +00:00
Jim Blandy f10b16d41f * gdb.threads/linux-dp.exp: Fix output regexp to handle output
under NPTL when there is debugging info available for libpthread.
2004-12-15 18:28:54 +00:00
gdbadmin deaac1f7e7 *** empty log message *** 2004-12-15 00:00:38 +00:00
Randolph Chung 1fb249302e 2004-12-14 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_in_function_epilogue_p): New function.
	(hppa_gdbarch_init): Set in_epilogue_p method.
2004-12-14 16:35:37 +00:00
Corinna Vinschen 3ffc5b9b5b * sh-tdep.c (sh_extract_return_value_nofpu): Rename from
sh_default_extract_return_value.
	(sh_extract_return_value_fpu): Rename from
	sh3e_sh4_extract_return_value.
	(sh_store_return_value_nofpu): Rename from
	sh_default_store_return_value.
	(sh_store_return_value_fpu): Rename from sh3e_sh4_store_return_value.
	(sh_return_value_nofpu): Accomodate above changes.
	(sh_return_value_fpu): Ditto.
2004-12-14 15:40:17 +00:00
gdbadmin 4446463b16 *** empty log message *** 2004-12-14 00:00:04 +00:00
Jerome Guitton fb6e181400 * gdb.ada/fixed_points.c: New file.
* gdb.ada/fixed_points.exp: New file.
2004-12-13 16:04:20 +00:00
Jerome Guitton 94e10a2220 * stabsread.c (read_huge_number): Add support for reading octal
signed number in twos complement, based on the size of this
	number.
	(read_range_type): Add support for reading octal signed bounds
	in twos complements, based on the size of the type.
	(read_type_number, read_cpp_abbrev, read_member_functions,
	read_cpp_abbrev, read_one_struct_field, read_baseclasses,
	read_struct_type, read_array_type, read_enum_type,
	read_sun_builtin_type, read_sun_floating_type): Update calls to
	read_huge_number.
	(read_type): Update call to read_range_type.
2004-12-13 15:56:47 +00:00
Randolph Chung 61aff869b9 2004-12-13 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
	solib_get_solib_by_pc method through target vector.
	(hppa_hpux_som_find_global_pointer): Call solib_get_got_by_pc
	method through target vector.
2004-12-13 08:47:07 +00:00
Randolph Chung 4bb7a26649 2004-12-13 Randolph Chung <tausq@debian.org>
* hppa-hpux-tdep.c (internalize_hp_cxx_exception_support): Call
	solib_get_solib_by_pc method through target vector.
2004-12-13 08:43:17 +00:00
Joel Brobecker 3ddae2db59 Correct date in last entry. 2004-12-13 05:10:16 +00:00
Joel Brobecker a99b228b02 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Change
parameter name to make it clear that we already have a next
        frame.  Return the sigcontext from that next frame instead
        of the frame following it.
2004-12-13 05:07:23 +00:00
Randolph Chung acf86d5407 2004-12-13 Randolph Chung <tausq@debian.org>
* Makefile.in (pa64solib_h, somsolib_h): Delete.
	(solib_pa64_h, solib_som_h): New.
	(HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h.
	(hppa-hpux-tdep.o, hpread.o): Update dependencies.
	(pa64solib.o, somsolib.o): Delete.
	(solib-pa64.o, solib-som.o): New.
	* hppa-hpux-tdep.c: Include new solib interfaces.
	(hppa_hpux_som_init_abi): Attach to SOM solib interface.
	(hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface.
	* hppa-tdep.c (internalize_unwinds): If solib_get_text_base method
	is available, use it to determine the base of unwind records.
	* hppa-tdep.h (gdbarch_tdep): Add new solib methods.
	* hpread.c: Replace somsolib.h with solib-som.h.
	(hpread_process_one_debug_symbol): Use target vector to get thread
	start address.
	* config/pa/hppa64.mt (TDEPFILES): Use new solib interface.
	* config/pa/hppahpux.mt (TDEPFILES): Likewise.
	* config/pa/hpux.mh (NATDEPFILES): Delete references to target objects.
	* config/pa/tm-hppah.h: Use new solib interface.
2004-12-13 04:06:16 +00:00
Randolph Chung 0efcf9dce5 2004-12-13 Randolph Chung <tausq@debian.org>
* tramp-frame.c (tramp_frame_sniffer): Allow frames with names or
	sections to be trampolines too.
2004-12-13 03:38:23 +00:00
gdbadmin 44548205b4 *** empty log message *** 2004-12-13 00:00:33 +00:00
Ben Elliston 048a01af27 * f-exp.y (typename): Remove unused nonterminal.
(name): Likewise.
2004-12-12 21:48:55 +00:00
Andrew Cagney 323e0a4a75 2004-11-27 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
Committed by Andrw Cagney.
	* abug-rom.c, ada-lang.c, ada-typeprint.c, alpha-tdep.c: i18n
	markup.
2004-12-12 17:06:26 +00:00
Andrew Cagney 39ee2ff0da 2004-12-12 Andrew Cagney <cagney@gnu.org>
* frame.c (get_prev_frame): When unwinding normal frames, check
	that the PC isn't zero.
	* hppa-tdep.c (hppa_stub_frame_unwind_cache): Delete check for a
	zero PC.
2004-12-12 16:26:17 +00:00
Andrew Cagney 91a533d47b 2004-12-12 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Reword description of what "Target Instruction Set
	Architectures" covers.
2004-12-12 15:31:36 +00:00
Mark Kettenis 0d9b270c62 * hppa-hpux-nat.c (hppa_hpux_child_can_run): Tweak comment. 2004-12-12 13:51:55 +00:00
gdbadmin c2d8244d21 *** empty log message *** 2004-12-12 00:00:32 +00:00
Mark Kettenis eeca586fd4 * hppa-hpux-nat.c (ss_mpsfu_high): Remove define.
(hppa_hpux_save_state_offset): New function, replacing variable
with the same name.
(hppa_cannot_fetch_register, hppa_cannot_store_register): Remove
functions.
(hppa_hpux_fetch_register): Don't call hppa_cannot_fetch_register.
Use new hppa_hpux_save_state_offset function.  Add special
handling for handling 64-bit "flags" register.
(hppa_hpux_store_register): Likewise.
(hppa_hpux_child_can_run): Tweak comment.
2004-12-11 23:04:58 +00:00
Mark Kettenis 7ba0e0c29a * inf-ttrace.c (inf_ttrace_him): Set TTEVT_BPT_SSTEP if available.
(inf_ttrace_attach): Likewise.
(inf_ttrace_resume_callback): New function.
(inf_ttrace_resume): Don't use TT_PROC_CONTINUE.  Iterate over all
lwps and call inf_ttrace_resume_callback instead.
(inf_ttrace_wait): Handle TTEVT_BPT_SSTEP.
2004-12-11 21:53:58 +00:00
Mark Kettenis d3322e8a42 * inf-ttrace.c (_initialize_inf_ttrace): Unconditionially compile. 2004-12-11 16:49:26 +00:00
Mark Kettenis 58544210ca Wrap long line. 2004-12-11 16:44:23 +00:00
Michael Snyder e02147b10c 2004-12-10 Michael Snyder <msnyder@redhat.com>
* mn10300-tdep.c: New file.  This is a re-implementation of
	the mn10300 target back-end using the new frame api etc.
	* mn10300-tdep.h: New file.
	* config/mn10300/mn10300.mt: New file (or replace old file).
	* configure.tgt: Add mn10300 target.
2004-12-11 02:02:01 +00:00
gdbadmin 15ff3443d9 *** empty log message *** 2004-12-11 00:00:36 +00:00
Mark Kettenis c510157568 * configure.host (hppa*-*-hpux11*): Remove.
* config/pa/hpux11.mh: Remove file.
2004-12-10 20:06:31 +00:00
Mark Kettenis 01926a6935 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind_cache): Fix
typo.
2004-12-10 15:48:21 +00:00
Kris Warkentin d737fd7f91 * nto-tdep.h: Include osabi.h. Prototypes for generic Neutrino
osabi sniffer, signal handling initializer, 'in_dynsym_resolve_code'
function and nto_set_target function.
(struct nto_target_ops): Put comments inline with struct.  Add osabi
sniffer hook.  Redefine macros to permit testing/assignment.  Remove
nto_ prefix from members.
* nto-tdep.c (nto_find_and_open_solib): Allocate all buffers
dynamically to support arbitrary root paths.  Check for basename of
lib in search path and then check for absolute.
(nto_in_dynsym_resolve_code): New function.
(nto_core_sniffer): New function.
(regset_core_fns): Register core sniffer.
(nto_initialize_signals): New function.
(_initialize_nto_tdep): Move signal initialization code to above to
avoid initialization race conditions.
(nto_set_target): New function.
* nto-procfs.c: Minor formatting/indenting changes.
(procfs_is_nto_target): New function.
(procfs_open): Set nto_is_nto_target.
(_initialize_procfs): Ditto.  Remove notice_signals() call to avoid
initialization race conditions.
(procfs_create_inferior): Resume inferior after creation.
* i386-nto-tdep.c: Declare i386_nto_target.
(init_i386nto_ops): Initialize i386_nto_target instead of
current_nto_target.
(i386nto_init_abi): Initialize signals.  Call nto_set_target.  Set
TARGET_SO_IN_DYNSYM_RESOLVE_CODE.
(_initialize_i386nto_tdep): Call init_i386nto_ops.  Register osabi sniffer.
2004-12-10 13:38:23 +00:00
Mark Kettenis 3cd36e7c72 * hppa-hpux-tdep.c (child_enable_exception_callback): Use XMALLOC.
(hppa_hpux_sigtramp_frame_unwind_cache): Use ARRAY_SIZE.
(hppa_hpux_init_abi): Reformat long line.
2004-12-10 10:45:33 +00:00
Mark Kettenis 08d5305588 * hppa-hpux-tdep.c: Include "regset.h".
(HPPA_HPUX_SS_WIDEREGS, HPPA_HPUX_SS_FLAGS_OFFSET)
(HPPA_HPUX_SS_NARROW_OFFSET, HPPA_HPUX_SS_FPBLOCK_OFFSET)
(HPPA_HPUX_SS_WIDE_OFFSET, HPPA_HPUX_SAVE_STATE_SIZE)
(HPPA_HPUX_PA89_SAVE_STATE_SIZE): New defines.
(hppa_hpux_supply_ss_narrow, hppa_hpux_supply_ss_fpblock)
(hppa_hpux_supply_ss_wide, hppa_hpux_supply_save_state): New
functions.
(hppa_hpux_regset): New variable.
(hppa_hpux_regset_from_core_section): New function.
(hppa_hpux_init_abi): Set regset_from_core_section.
(hppa_hpux_core_osabi_sniffer): New function.
(_initialize_hppa_hpux_tdep): Register
hppa_hpux_core_osabi_sniffer.
* Makefile.in (hppa-hpux-tdep.o): Update dependencies.
* config/pa/hppahpux.mt (TDEPFILES): Add corelow.o.
2004-12-10 09:42:10 +00:00
gdbadmin 5922e7530e *** empty log message *** 2004-12-10 00:00:33 +00:00
Randolph Chung 45851e004a 2004-12-09 Randolph Chung <tausq@debian.org>
* solib-pa64.c (pa64_relocate_section_addresses): Properly relocate
	text and data sections.
	(pa64_current_sos): Also include the dld in the list of current shared
	objects.
	(pa64_solib_get_solib_by_pc): Update comments.
	(pa64_solib_get_text_base): New function.
	(pa64_solib_select): Set solib_get_text_base method.
2004-12-09 17:58:04 +00:00
gdbadmin 1626ace5e4 *** empty log message *** 2004-12-09 00:00:32 +00:00
Daniel Jacobowitz 434c4c7751 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
LIBS when finished.
	* aclocal.m4: Regenerated.
	* configure: Regenerated.
2004-12-08 15:50:29 +00:00
Daniel Jacobowitz 1bac0d4d5f * linux-thread-db.c (BUILD_THREAD): Delete.
(thread_get_info_callback): Include LWP ID in thread ID.
	(thread_from_lwp, check_event, find_new_threads_callback): Likewise.
	(lwp_from_thread): Use the LWP ID from the thread ID.
2004-12-08 15:10:30 +00:00
Randolph Chung 254ce0a11f 2004-12-07 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_frame_prev_register_helper): Zero out the entire
	register for both 32- and 64-bit targets.
2004-12-08 06:12:40 +00:00
Jim Blandy e1aac25bcf * gdb.texinfo (General Query Packets): Specify that thread ID's in
the 'qC' and 'qThreadInfo' packets are unsigned hexidecimal
numbers.
2004-12-08 05:28:31 +00:00
Randolph Chung cc9bed8396 2004-12-07 Randolph Chung <tausq@debian.org>
* frame.c (get_prev_frame): Don't terminate unwinding at main if we
	are unwinding through a dummy frame.
2004-12-08 01:56:16 +00:00
Randolph Chung f77a2124d6 2004-12-07 Randolph Chung <tausq@debian.org>
* hppa-tdep.h (gdbarch_tdep): Add unwind_adjust_stub method.
	* hppa-hpux-tdep.c (hppa_hpux_unwind_adjust_stub): New function.
	(hppa_hpux_init_abi) Set unwind_adjust_stub method.
	* hppa-tdep.c (hppa_frame_cache): Call unwind_adjust_stub method
    	if defined.
2004-12-08 01:48:03 +00:00
Randolph Chung f1b38a5791 2004-12-07 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (hppa_stub_Frame_unwind_cache): Stop unwinding if
	unwinding from a frame with pc == 0.
	(hppa_stub_frame_this_id): Likewise.
	(hppa_stub_frame_prev_register): Only provide real values if the frame
	cache is not NULL.
2004-12-08 01:44:02 +00:00
Randolph Chung 419b8bfb23 2004-12-07 Randolph Chung <tausq@debian.org>
* solib-som.c: New file.
	* solib-som.h: New file.
	* solib-pa64.c: New file.
	* solib-pa64.h: New file.
2004-12-08 01:36:42 +00:00
gdbadmin 52e8304c2f *** empty log message *** 2004-12-08 00:00:04 +00:00
Mark Kettenis 6e93c4f78b * Makefile.in (inf-ttrace.o): Fix typo. 2004-12-07 22:17:59 +00:00
Jim Blandy c273b20f14 * remote.c (remote_threads_info, remote_current_thread): Use
strtoul to parse thread ID numbers.
2004-12-07 20:21:32 +00:00
Mark Kettenis a7be7fa8ef * inf-ttrace.c: Include "gdbthread.h".
(inf_ttrace_num_lwps): New variable.
(inf_ttrace_num_lwps_in_syscall): Renamed from
inf_ttrace_num_threads_in_syscall.
(inf_ttrace_him): Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
TTEVT_LWP_TERMINATE events.
(inf_ttrace_create_inferior): Assert that INF_TTRACE_NUM_LWPS is
zero.
(inf_ttrace_mourn_inferior): Set INF_TTRACE_NUM_LWPS to zero.
(inf_ttrace_attach): Assert that INF_TTRACE_NUM_LWPS is zero.
Track TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE
events.
(inf_ttrace_wait): Report status as TARGET_WAITKIND_SPURIOUS by
default.  Handle TTEVT_LWP_CREATE, TTEVT_LWP_EXIT and
TTEVT_LWP_TERMINATE events.
(inf_ttrace_thread_alive, inf_ttrace_pid_to_str): New functions.
(inf_ttrace_target): Set to_thread_alive and to_pid_to_str.
* Makefile.in (inf-ttrace.o): Update dependencies.
2004-12-07 19:57:21 +00:00
Mark Kettenis cc72850f95 * hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): New
prototypes.
* hppa-tdep.c (hppa_read_pc): Rename from hppa_target_read_pc.
Make global.  Remove HP-UX specific code.  Use
frame_unwind_register_unsigned instead of
frame_unwind_register_signed.
(hppa_write_pc): Rename from hppa_target_write_pc.  Make global.
Remove HP-UX specific code.
(hppa_unwind_pc): Make global.  Remove HP-UX specific code.
(hppa_frame_prev_register_helper): Set "flags" register to zero
for all unwound frames.
(hppa_gdbarch_init): Adjust.
* hppa-hpux-tdep.c (HPPA_HPUX_SS_INSYSCALL): New define.
(hppa_hpux_read_pc, hppa_hpux_write_pc)
(hppa_hpux_unwind_pc): New functions.
(hppa_hpux_init_abi): Set read_pc, write_pc and unwind_pc.
2004-12-07 18:04:11 +00:00
Andreas Schwab f47b15032f * main.c (long_options): Add entry for "-l".
(print_gdb_help): Add line for -l option.
	* NEWS: Mention it.

doc/
	* gdb.texinfo (Mode Options): Document -l option.
2004-12-07 11:06:04 +00:00
gdbadmin 64f8573442 *** empty log message *** 2004-12-07 00:00:34 +00:00
Randolph Chung c1299d67f5 2004-12-05 Randolph Chung <tausq@debian.org>
* hppah-nat.c (store_inferior_registers): Rewrite logic to not use
	DEPRECATED_REGISTER_BYTE.
2004-12-06 03:36:38 +00:00
Randolph Chung 57dac9e17d 2004-12-05 Randolph Chung <tausq@debian.org>
* hppa-tdep.c (unwind_command): Print the stub type for stub unwind
	records.
2004-12-06 03:32:26 +00:00
gdbadmin e940c538cd *** empty log message *** 2004-12-06 00:00:33 +00:00
Mark Kettenis a61ce9b40d Oops. 2004-12-05 20:05:32 +00:00
Mark Kettenis 792432a57f * somsolib.c [PA_SOM_ONLY] (no_shared_libraries): New function.
* config/pa/hppahpux.mt (TDEPFILES): Remove solib.o.
2004-12-05 19:41:37 +00:00
Mark Kettenis b1acf338d3 * hppa-hpux-tdep.c: Update copyright notice and year. 2004-12-05 15:48:14 +00:00
Richard Earnshaw fcab3fb53b * doublest.c (FLOATFORMAT_LARGEST_BYTES): New define.
(get_field, put_field): Assert that the format is one we can handle.
Simplify logic accordingly.
(floatformat_normalize_byteorder): New function.
(convert_floatformat_to_doublest): Use floatformat_normalize_byteorder
to normalize and select modified byte order. Pass modified byte order
to get_field.
(floatformat_is_negative, floatformat_is_nan, floatformat_mantissa):
Likewise.
(convert_doublest_to_floatformat): Select an appropriate intermediate
byte order if necessary.  Always convert to the final format before
returning.
2004-12-05 15:17:34 +00:00
gdbadmin a2b2ee2c6d *** empty log message *** 2004-12-05 00:00:05 +00:00
Daniel Jacobowitz 48bb3cceeb PR tui/1703
* linux-nat.c (linux_tracefork_child): Use _exit instead of exit.
	Suggested by Joshua Neuheisel.
2004-12-04 17:21:26 +00:00
Eli Zaretskii b6b8ece66c * gdbint.texinfo (Algorithms): More accurate description of
STOPPED_BY_WATCHPOINT.  Point out that target_stopped_data_address
	is not needed unless data-read and data-access watchpoints are
	supported.  Add a description of how GDB checks whether the
	inferior stopped because a watchpoint was hit.
2004-12-04 14:02:44 +00:00
gdbadmin 256d90da48 *** empty log message *** 2004-12-04 00:00:02 +00:00
Randolph Chung fe46cd3ab5 2004-12-03 Randolph Chung <tausq@debian.org>
* gdbarch.sh (instruction_nullified): Delete.
	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
	* hppa-tdep.c (hppa_target_read_pc): Adjust pc if instruction is
	nullified.
	(hppa_unwind_pc): Likewise.
	(hppa_instruction_nullified): Delete.
	(hppa_gdbarch_init): Don't set instruction_nullified method.
	* infrun.c (infwait_states): Remove infwait_nullified_state.
	(handle_inferior_event): Remove handling of infwait_nullified_state.
	Remove handling of nullified instructions.


testsuite/

	* gdb.arch/pa-nullify.exp: New file.
	* gdb.arch/pa-nullify.s: New file.
2004-12-03 23:59:53 +00:00
Mark Kettenis 932936f0df * inf-ttrace.c: Include <sys/mman.h>.
(struct inf_ttrace_page): New.
(struct inf_ttrace_page_dict): New.
(inf_ttrace_num_threads_in_syscall)
(inf_ttrace_reenable_page_protections): New variables.
(inf_ttrace_enable_syscall_events)
(inf_ttrace_disable_syscall_events, inf_ttrace_get_page)
(inf_ttrace_remove_page, inf_ttrace_mask_page_protections)
(inf_ttrace_enable_page_protections)
(inf_ttrace_disable_page_protections)
(inf_ttrace_insert_watchpoint, inf_ttrace_remove_watchpoint)
(inf_ttrace_can_use_hw_breakpoint)
(inf_ttrace_region_size_ok_for_hw_watchpoint)
(inf_ttrace_stopped_by_watchpoint): New functions.
(inf_ttrace_him): Remove unsused varaible `tts'.
(inf_ttrace_create_inferior): Add assertionts.
(inf_ttrace_mourn_inferior): Clear page dictionary.
(inf_ttrace_attach): Set initial event mask.
(inf_ttrace_detach): Reset number of threads in system call.
(inf_ttrace_wait): Deal with system call events.
(inf_ttrace_target): Initialize "hardware" watchpoint-related
parts of the target vector.
(_initialize_inf_ttrace): New prototype and function.
2004-12-03 22:20:00 +00:00
Mark Kettenis dd515450aa * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Use ULONGEST as
type of `gp' variable.
2004-12-03 18:03:09 +00:00
Richard Sandiford 73fb706800 Remove config.if. 2004-12-03 10:30:13 +00:00
gdbadmin ca5e5bc767 *** empty log message *** 2004-12-03 00:00:06 +00:00
gdbadmin bd9d51e058 *** empty log message *** 2004-12-02 00:00:03 +00:00
Joel Brobecker 515921d78f * alpha-tdep.c (alpha_register_name): Add comment.
(alpha_cannot_fetch_register): Exclude registers numbers which
        are no longer used from the list of registers that can be fetched.
        (alpha_cannot_store_register): Exclude registers numbers which
        are no longer used from the list of registers that can be stored.
        * alpha-nat.c (fetch_osf_core_registers): Add missing value in
        core_reg_mapping array.
2004-12-01 17:13:44 +00:00
Joel Brobecker 1cc759c321 * alpha-tdep.c (alpha_heuristic_frame_prev_register): Fetch
the register value from the correct frame.
2004-12-01 17:05:45 +00:00
Randolph Chung b546247c05 2004-11-30 Randolph Chung <tausq@debian.org>
* hppa-linux-tdep.c (insns_match_pattern_relaxed): New function.
	(hppa_linux_in_dyncall): Check that we are inside the range of
	$$dyncall, not necessarily at the first insn.
	(hppa_linux_in_solib_call_trampoline): Identify a trampoline
	even if the pc does not point to the first insn of the trampoline.
2004-12-01 06:58:57 +00:00
Randolph Chung 8de0841b1c 2004-11-30 Randolph Chung <tausq@debian.org>
* gdb.threads/thread_check.exp: Use ${srcfile} for test program name
	instead of "tbug".  Fix regexp to work properly with gdb_test.
2004-12-01 06:56:21 +00:00
Randolph Chung 46905982ed 2004-11-30 Randolph Chung <tausq@debian.org>
* breakpoint.c (break_at_finish_command): Delete.
	(break_at_finish_command_1): Delete.
	(break_at_finish_at_depth_command): Delete.
	(break_at_finish_at_depth_command_1): Delete.
	(tbreak_at_finish_command): Delete.
	* hppa-tdep.c (_initialize_hppa_tdep): Remove deprecated xbreak, tbreak
	and bx commands.
2004-12-01 06:54:56 +00:00
gdbadmin 2b99d679a6 *** empty log message *** 2004-12-01 00:00:06 +00:00
Andrew Cagney a7711b1fd7 2004-11-30 Andrew Cagney <cagney@gnu.org>
* config/nm-gnu.h: Delete file.
	* config/i386/nm-i386gnu.h: Inline "config/nm-gnu.h".
2004-11-30 15:15:27 +00:00
Andrew Cagney 80b93d6b1a 2004-11-30 Andrew Cagney <cagney@gnu.org>
* config/nm-sysv4.h: Delete file.
	* config/i386/nm-i386v4.h: Inline "config/nm-sysv4.h".
	* config/i386/nm-i386v42mp.h: Inline "config/nm-sysv4.h".
	* config/i386/nm-i386sol2.h: Inline "config/nm-sysv4.h".
	* config/ia64/nm-aix.h: Inline "config/nm-sysv4.h".
	* config/mips/nm-irix5.h: Inline "config/nm-sysv4.h".
2004-11-30 15:05:20 +00:00
gdbadmin 2af8501f61 *** empty log message *** 2004-11-30 00:00:33 +00:00
Andrew Cagney 31ffb2216b 2004-11-29 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Add Randolph Chung (pa), Jeff Johnston (ia64), Kei
	Sakamoto (m32r), Joel Brobecker (mips), and Ulrich Weigand (s390)
	as can-commit architecture developers.
2004-11-29 22:29:45 +00:00
Mark Kettenis 075ccec82f * sparc-tdep.c (X_RS1, X_SIMM13): New macros.
(sparc32_skip_prologue): Skip instructions that store arguments in
registers into their corresponding stack slots.
2004-11-29 19:52:44 +00:00
Mark Kettenis 388e0111e7 * config/m68k/nbsdaout.mh (NAT_FILE): Set to solib.h instead of
tm-solib.h.
* config/m68k/obsd.mh (NAT_FILE): Likewise.
2004-11-29 15:53:13 +00:00
Mark Kettenis 19671c2bed * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
* sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
* sparcobsd-tdep.c (sparc32obsd_init_abi): Call
sparc32nbsd_elf_init_abi.  Remove duplicate code.
2004-11-29 15:20:28 +00:00
Mark Kettenis 77a7fe6d0b * config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
* config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
* config/sparc/nm-nbsd.h: Remove file.
* config/sparc/nm-nbsdaout.h: Remove file.
2004-11-29 11:20:10 +00:00
Paul N. Hilfinger c817078231 * gdb.base/bitfields2.exp: New test.
* gdb.base/bitfields2.c: New file.
2004-11-29 09:11:20 +00:00
Mark Kettenis cbfc58d125 * sparc-nat.c (inf_ptrace_xfer_partial): New variable.
(sparc_xfer_partial): New function.
(sparc_target): Save value of to_xfer_partial from ptrace vector.
Set to_xfer_partial.
2004-11-29 08:41:56 +00:00
Mark Kettenis 3919e12ce5 * fork-child.c (fork_inferior): Fork instead of vfork if
PRE_TRACE_FUN is non-null.
2004-11-29 08:37:14 +00:00
gdbadmin 1d5cce3bc9 *** empty log message *** 2004-11-29 00:00:06 +00:00
Richard Earnshaw 954269c2f7 * config/sim.exp (gdb_load): Return 0 on success, -1 on failure. 2004-11-28 23:17:33 +00:00
gdbadmin 91b6903ccb *** empty log message *** 2004-11-28 00:00:39 +00:00
gdbadmin bc94873170 *** empty log message *** 2004-11-27 00:00:05 +00:00
gdbadmin f25861cde0 *** empty log message *** 2004-11-26 00:00:04 +00:00
Fred Fish ebd98106b2 Approved by Kevin Buettner <kevinb@redhat.com>
2004-11-24  Fred Fish  <fnf@specifixinc.com>
	* rs6000-tdep.c (skip_prologue): Use line table info to skip over
	compiler generated function calls made as part of a prologue.
2004-11-25 02:48:27 +00:00
gdbadmin 7a851328ae *** empty log message *** 2004-11-25 00:00:02 +00:00
gdbadmin b34bf369e7 *** empty log message *** 2004-11-24 00:00:33 +00:00
Mark Kettenis eee22bf873 * inf-ttrace.c: New file.
* inf-ttrace.h: New file.
* hppa-hpux-nat.c [HAVE_TTRACE]: Include <sys/ttrace>.
Include "inf-ttrace.h".
(ss_mpsfu_high): Define to ss_tlsp if necessary.
(hppa_hpux_fetch_register, hppa_hpux_store_register): Use
ptid_get_pid instead of PIDGET.  Modify to handle both ttrace and
ptrace systems.
(_initialize_hppa_hpux_nat) [HAVE_TTRACE]: Call inf_ttrace_traget
instead of inf_ptrace_target.
* config/pa/hpux.mh (NATDEPFILES): Add inf-ttrace.o.
* Makefile.in (inf_ttrace_h): New variable.
(hppa-hpux-nat.o): Update dependency.
(inf-ttrace.o): New dependency.
(ALLDEPFILES): Add inf-ptrace.c and inf-ttrace.c.
2004-11-23 21:14:33 +00:00
Randolph Chung 3ca6495449 2004-11-23 Randolph Chung <tausq@debian.org>
* arch-utils.c (generic_instruction_nullified): New.
	* arch-utils.h (generic_instruction_nullified): New.
	* gdbarch.sh (instruction_nullified): New method.
	* gdbarch.c: Regenerate.
	* gdbarch.h: Regenerate.
	* infrun.c (INSTRUCTION_NULLIFIED): Delete.
	(handle_inferior_event): Replace INSTRUCTION_NULLIFIED with calls to
	new gdbarch method.
	* config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Delete definition.
	* hppa-tdep.c (hppa_instruction_nullified): Remove prototype and make
	static.  Rewrite to work directly off the passed regcache.
	(hppa_gdbarch_init): Set instruction_nullified method.
2004-11-23 21:05:23 +00:00
Randolph Chung 0107feeddf 2004-11-16 Randolph Chung <tausq@debian.org>
* gdb.base/unload.exp: Pass relative path to gdb_get_line_number.
2004-11-23 19:51:35 +00:00
Joel Brobecker 5465445a4b * sparc-tdep.c (sparc_is_unimp_insn): New function.
(sparc32_frame_cache): For functions where there is no debugging
        information to help us determine whether it's a struct-return
        function or not, fallback on checking whether the instruction
        at the return address is an "unimp" instruction or not.
2004-11-23 18:59:14 +00:00
Eli Zaretskii 7b5ba0cc21 Fix last change. 2004-11-23 12:12:15 +00:00
Eli Zaretskii 013717475e * gdb.texinfo (Files): Add cross-reference to description of
-readnow command-line switch.
2004-11-23 12:05:28 +00:00
Dave Anglin 871cce518a * MAINTAINERS: Add myself to write after approval section. 2004-11-23 01:11:18 +00:00
Dave Anglin 3f6306ec32 * hppa-hpux-nat.c (child_suppress_run): Add variable to allow
hpux-thread.c to suppress children from running.
	(hppa_hpux_child_can_run): New function.
	(_initialize_hppa_hpux_nat): Use hppa_hpux_child_can_run.
	* hpux-thread.c: Include string.h and hppa-tdep.h.
	(FLAGS_REGNUM, SP_REGNUM, PC_REGNUM): Rename to HPPA_FLAGS_REGNUM,
	HPPA_SP_REGNUM and HPPA_PCOQ_HEAD_REGNUM, respectively.
	(hpux_thread_store_registers): Replace deprecated_registers with
	calls to regcache_raw_read.
	* config/pa/hpux11.mh, config/pa/hpux11w.mh: Delete HOST_IPC.
2004-11-23 01:01:59 +00:00
gdbadmin 55903abd03 *** empty log message *** 2004-11-23 00:00:05 +00:00
gdbadmin ef0f43a9d2 *** empty log message *** 2004-11-22 00:00:34 +00:00
Mark Kettenis f5ccf7a2c6 * sparc64fbsd-nat.c: Update copyright year.
(_initialize_sparc64fbsd_nat): Construct and add target vector.
* config/sparc/fbsd.mh (NATDEPFILES): Remove infptrace.o,
inftarg.o.
2004-11-21 20:22:56 +00:00
Daniel Jacobowitz 8c3900e409 * sparc-tdep.c (sparc_software_single_step): Handle stepping to NULL. 2004-11-21 20:11:09 +00:00
Daniel Jacobowitz b957e93796 * linux-nat.c (my_waitpid): New function.
(linux_test_for_tracefork): Make more robust and verbose.  Take
	an ORIGINAL_PID argument and test for PTRACE_SETOPTIONS first.
	(linux_supports_tracefork, linux_supports_tracevforkdone): Take a PID
	argument.  Update calls to linux_test_for_tracefork.
	(linux_enable_event_reporting, child_follow_fork)
	(child_insert_fork_catchpoint, child_insert_vfork_catchpoint)
	(child_insert_exec_catchpoint): Update calls to
	linux_supports_tracefork and linux_supports_tracevforkdone.
2004-11-21 20:10:02 +00:00
Daniel Jacobowitz 65d3800afd * valarith.c (value_subscript): Copy VALUE_FRAME_ID.
(value_subscripted_rvalue): Likewise.
	* valops.c (search_struct_field, value_slice): Likewise.
2004-11-21 19:52:13 +00:00
Mark Kettenis 2c4a536d5d * inf-ptrace.c: Don't include "regcache.h" and "gdbcmd.h".
Reorder includes a bit.  Fix comment.
* Makefile.in (inf-ptrace.o): Update dependencies.
2004-11-21 13:51:53 +00:00
Andreas Schwab db1d3e1b97 * linux-m68k-low.c (m68k_num_gregs): Define.
(m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
	(m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
	(m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
	(m68k_breakpoint_at): New.  Add to the_low_target.

	* configure.srv (m68*-*-linux*): Set srv_linux_regsets and
	srv_linux_thread_db to yes.
2004-11-21 03:09:39 +00:00
Andreas Schwab fefa18880b * m68klinux-tdep.c: Include "glibc-tdep.h" and "solib-svr4.h".
(m68k_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
	svr4_ilp32_fetch_link_map_offsets and gdbarch_skip_solib_resolver
	to glibc_skip_solib_resolver.
	* config/m68k/linux.mt (TDEPFILES): Add glibc-tdep.o.  Remove
	solib-legacy.o.
	* Makefile.in (m68klinux-tdep.o): Update dependencies.
2004-11-21 01:51:16 +00:00
gdbadmin 27a987e351 *** empty log message *** 2004-11-21 00:00:02 +00:00
Dave Anglin d564a7d4b1 * infttrace.h (ttrace_write_reg_64): Add prototype.
* hppah-nat.c (store_inferior_registers): Fix warning from ambiguous
	expression.
	(store_inferior_registers): Correct formatting.  Replace uses of
	deprecated_registers with calls to regcache_raw_read,
	regcache_raw_write_part and regcache_raw_read_part.
2004-11-20 23:56:18 +00:00
Mark Kettenis 3f70a5e974 * config/pa/hppahpux.mh: Remove file.
* config/pa/hpux1020.mh: Remove file.
2004-11-20 23:04:53 +00:00
Andreas Schwab ced0d73d51 * configure.host: Set host floatformat for m68k. 2004-11-20 18:16:34 +00:00
Eli Zaretskii fcf54f50e5 Resolve file-name clash between
hppa-hpux-tdep.c and the new hppa-hpux-nat.c.
2004-11-20 18:08:33 +00:00
Mark Kettenis eeb8076cc0 * hppa-hpux-nat.c: New file.
* config/pa/hpux.mh (NATDEPFILES): New file.
* Makefile.in (ALLDEPFILES): Add hppa-hpux-nat.c.
(hppa-hpux-nat.o): New dependency.
* configure.host: Remove hppa*-*-hpux10.20.
(hppa*-*-hpux*, hppa*-*-hiux*): Set gdb_host to hpux.mh.
2004-11-20 17:23:57 +00:00
Mark Kettenis f6ffd89b00 * inf-ptrace.c: Fix coding style. 2004-11-20 17:03:38 +00:00
Mark Kettenis f1bc22da72 * gdb_ptrace.h [PTRACE_TYPE_ARG5] (ptrace): New macro.
* infptrace.c (call_ptrace): Simply call ptrace with four
arguments.
2004-11-20 16:52:22 +00:00
Mark Kettenis e31272c3a6 * dbxread.c (process_one_symbol): Fix a few coding standard
issues.  Improve code formatting.
2004-11-20 12:38:38 +00:00
Mark Kettenis 91f54576a2 * dbxread.c: Include "gdb_string.h".
(record_minimal_symbol, read_ofile_symtab): Replace
DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
* Makefile.in (dbxread.o): Update dependencies.
2004-11-20 10:20:33 +00:00
Mark Kettenis a728960949 * dwarf2-frame.c (read_encoded_value): Correctly calculate number
of bytes read for aligned LEB128 encodings.
2004-11-20 10:10:17 +00:00
gdbadmin ef81051b92 *** empty log message *** 2004-11-20 00:00:34 +00:00
Mark Kettenis 57ac95b8fc * bsd-kvm.c (bsd_kvm_pcb_cmd): Cast return value from
parse_and_eval_address to u_long before converting it to a pointer
type.
* i386fbsd-nat.c (_initialize_i386fbsd_nat): Change type of
ps_strings from int to u_long.
* i386obsd-nat.c (_initialize_i386obsd_nat): Cast _ps.val to
u_long instead of CORE_ADDR.
2004-11-19 21:55:24 +00:00
gdbadmin c457f63246 *** empty log message *** 2004-11-19 00:00:31 +00:00
Mark Kettenis ceddaf06ac * dbxread.c (process_one_symbol): Do not adjust address of first
N_SLINE stab for a function for code generated by non-GCC
compilers.
2004-11-18 22:37:22 +00:00
Kevin Buettner 915a2d21dd * solib-null.c: New file. 2004-11-18 17:23:05 +00:00
Andrew Cagney 92790ee734 2004-11-17 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Drop MIPS and remote.
2004-11-18 00:16:33 +00:00
gdbadmin 90f90d2cef *** empty log message *** 2004-11-18 00:00:03 +00:00
gdbadmin 4f151830a9 *** empty log message *** 2004-11-17 00:00:02 +00:00
gdbadmin c98fd1d524 *** empty log message *** 2004-11-16 00:00:32 +00:00
Andrew Cagney 0c16dd26a8 2004-11-15 Andrew Cagney <cagney@gnu.org>
* findvar.c (value_of_register): Set the frame ID.
	* value.c (value_primitive_field): Copy the frame ID.
	* valops.c (value_assign): Simplify lval_register case, there's
	always a frame.
2004-11-15 22:17:59 +00:00
gdbadmin 62d5693236 *** empty log message *** 2004-11-15 00:00:01 +00:00
Daniel Jacobowitz 2fdf551c88 * Makefile.in (mips-linux-tdep.o): Update dependencies.
* mips-linux-tdep.c: Include "regcache.h".
	(fill_fpregset, mips64_fill_fpregset): Use regcache_raw_collect.
2004-11-14 19:29:46 +00:00
Daniel Jacobowitz 98754800c6 * Makefile.in (linux-thread-db.o): Fix typo in last change. 2004-11-14 18:53:32 +00:00
Daniel Jacobowitz ed89d17542 * linux-thread-db.c: New file, renamed from thread-db.c.
* thread-db.c: Remove.
	* Makefile.in (linux-thread-db.o): Rename from thread-db.o rule.
	* config/alpha/alpha-linux.mh (NATDEPFILES): Rename thread-db.o
	to linux-thread-db.o.
	* config/arm/linux.mh (NATDEPFILES): Likewise.
	* config/i386/linux.mh (NATDEPFILES): Likewise.
	* config/i386/linux64.mh (NATDEPFILES): Likewise.
	* config/ia64/linux.mh (NATDEPFILES): Likewise.
	* config/m32r/linux.mh (NATDEPFILES): Likewise.
	* config/m68k/linux.mh (NATDEPFILES): Likewise.
	* config/mips/linux.mh (NATDEPFILES): Likewise.
	* config/pa/linux.mh (NATDEPFILES): Likewise.
	* config/powerpc/linux.mh (NATDEPFILES): Likewise.
	* config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
	* config/s390/s390.mh (NATDEPFILES): Likewise.
	* config/sparc/linux.mh (NATDEPFILES): Likewise.
	* config/sparc/linux64.mh (NATDEPFILES): Likewise.
2004-11-14 18:47:52 +00:00
Daniel Jacobowitz f073ae8c82 * gdb.threads/threadapply.exp: Correct "macro details" test. 2004-11-14 18:45:17 +00:00
Andrew Cagney f97fe8ff79 2004-11-13 Andrew Cagney <cagney@gnu.org>
* config/i386/i386lynx.mh: Delete file.
	* config/i386/i386lynx.mt: Delete file.
	* Makefile.in (ALLDEPFILES, i386ly-tdep.o): Remove i386ly-tdep.c.
	* i386ly-tdep.c: Delete.
2004-11-14 03:57:04 +00:00
Andrew Cagney 5873946b90 2004-11-13 Andrew Cagney <cagney@gnu.org>
* config/tm-lynx.h: Delete, inline contents ...
	* config/rs6000/tm-rs6000ly.h: ... here.
2004-11-14 03:09:26 +00:00
Andrew Cagney a69637bd40 2004-11-13 Andrew Cagney <cagney@gnu.org>
* config/tm-sysv4.h: Delete file, inlining contents.
	* config/ia64/tm-aix.h (SKIP_TRAMPOLINE_CODE): Define.
	* config/tm-linux.h (SKIP_TRAMPOLINE_CODE): Define.
	* config/tm-nto.h (SKIP_TRAMPOLINE_CODE): Define.
2004-11-14 02:56:34 +00:00
Andrew Cagney 8851ec7ac2 2004-11-13 Andrew Cagney <cagney@gnu.org>
* regcache.h (deprecated_register_valid): Delete.
	(deprecated_registers): Delete.
	* regcache.c (deprecated_register_valid): Delete.
	(deprecated_registers): Delete.
	(deprecated_read_register_byte, _initialize_regcache)
	(deprecated_write_register_bytes, build_regcache): Update.
	* config/powerpc/ppc-sim.mt (TDEPFILES): Remove ppc-bdm.o and
	remote-sds.o.
	* config/powerpc/ppc-eabi.mt (TDEPFILES): Ditto.
	* config/mips/embed.mt (TDEPFILES): Remove remote-mips.o.
2004-11-14 01:11:07 +00:00
Andrew Cagney 9445aa303f 2004-11-13 Andrew Cagney <cagney@gnu.org>
* NEWS: List h8300*-*-*, mcore-*-*, mn10300-*-*, ns32k-*-*, and
	v850-*-* under removed.
	* configure.host: Delete ns32k-*-netbsd*.
	* configure.tgt: Delete h8300-*-*, mcore*-*-*, mn10300-*-*,
	ns32k-*-netbsd*, and v850*-*-*.
	* MAINTAINERS: Mark h8300, mcore, mn10300, ns32k, v850 as
	"Deleted"
	* config/h8300/tm-h8300.h, config/h8300/h8300.mt: Delete.
	* h8300-tdep.c, config/mcore/mcore.mt, mcore-rom.c: Delete.
	* mcore-tdep.c, config/mn10300/mn10300.mt: Delete.
	* mn10300-tdep.c, config/ns32k/nbsdaout.mh: Delete.
	* config/ns32k/nbsdaout.mt, config/ns32k/nm-nbsd.h: Delete.
	* config/ns32k/nm-nbsdaout.h, config/ns32k/tm-ns32k.h: Delete.
	* ns32knbsd-nat.c, ns32knbsd-tdep.c, ns32k-tdep.c: Delete.
	* ns32k-tdep.h, config/v850/v850.mt, v850ice.c: Delete.
	* v850-tdep.c: Delete.
2004-11-14 00:10:55 +00:00
gdbadmin e3ab723477 *** empty log message *** 2004-11-14 00:00:33 +00:00
Joel Brobecker f6e1bffc2b * irix5-nat.c (fetch_core_registers): Replace use of
deprecated_registers by equivalent code.
2004-11-13 23:49:31 +00:00
Joel Brobecker 44ed547b2d * irix5-nat.c (fill_gregset): Replace use of deprecated_registers
with equivalent code.
        (fill_fpregset): Likewise.
2004-11-13 23:40:01 +00:00
Andrew Cagney ca1a823ab2 2004-11-13 Andrew Cagney <cagney@gnu.org>
* MAINTAINERS: Do not list "Deleted" architectures.
2004-11-13 23:20:15 +00:00
Andrew Cagney e84ecc995d 2004-11-13 Andrew Cagney <cagney@gnu.org>
* configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
	m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
	sparc-*-vxworks*.
	* NEWS: Mention that vxworks was deleted.
	* config/m68k/tm-vx68.h, config/mips/tm-vxmips.h: Delete.
	* config/powerpc/tm-vxworks.h, config/tm-vxworks.h: Delete.
	* config/i386/vxworks.mt, config/m68k/vxworks68.mt: Delete.
	* config/mips/vxmips.mt, config/powerpc/vxworks.mt: Delete.
	* config/sparc/vxworks.mt, vx-share/dbgRpcLib.h: Delete.
	* vx-share/ptrace.h, vx-share/regPacket.h: Delete.
	* vx-share/vxTypes.h, vx-share/vxWorks.h: Delete.
	* vx-share/wait.h, vx-share/xdr_ld.c: Delete.
	* vx-share/xdr_ld.h, vx-share/xdr_ptrace.c: Delete.
	* vx-share/xdr_ptrace.h, vx-share/xdr_rdb.c: Delete.
	* vx-share/xdr_rdb.h, remote-vxsparc.c: Delete.
	* remote-vxmips.c, remote-vx.c: Delete.
	* remote-vx68.c: Delete.
	* config/m68k/tm-os68k.h: Remove reference to VxWorks.
	* config/m68k/os68k.mt, ada-lang.h: Ditto.
	* Makefile.in (HFILES_NO_SRCDIR, ALLDEPFILES, remote-vx68.o)
	(remote-vx.o, remote-vxmips.o, remote-vxsparc.o): Delete vx files.
2004-11-13 23:10:02 +00:00
Eli Zaretskii 2924732466 * config/i386/xm-go32.h: Don't include fopen-bin.h.
Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR.

	* source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the
	branch that doesn't define CRLF_SOURCE_FILES; always use
	binary-mode open.
	(print_source_lines_base, forward_search_command)
	(reverse_search_command): Enable the code that accepts DOS-style
	CRLF line endings on all platforms (this removes the need for
	CRLF_SOURCE_FILES).

	* defs.h: (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
2004-11-13 17:00:04 +00:00
Eli Zaretskii f8f0d88af1 *** empty log message *** 2004-11-13 15:29:40 +00:00
Eli Zaretskii a880ad57a7 * defs.h: Fix wording of the comment before FOPEN_RB. 2004-11-13 15:28:50 +00:00
Eli Zaretskii 01e937bc69 Fix DJGPP configury due to some bitrot:
* config/djgpp/fnchange.lst: Group renames for opcode directory
	together.

	* config/djgpp/djconfig.sh: Replace file names that don't exist
	anymore with existing files, for checking the unpacked
	distribution.

	* config/djgpp/config.sed (am_cv_exeext, lt_cv_sys_max_cmd_len):
	Export pre-cooked values in configure-* targets that begin with
	"@test -f stage_last".
2004-11-13 13:36:53 +00:00
Andrew Cagney 25ae5d16b1 2004-11-12 Andrew Cagney <cagney@gnu.org>
* defs.h (enum lval_type): Delete lval_reg_frame_relative.
	* value.h (struct value): Update comment.
	* valops.c (value_assign): Fold lval_reg_fame_relative into
	lval_register.
	* findvar.c (value_from_register, locate_var_value): Ditto.
2004-11-13 02:29:48 +00:00
Randolph Chung d73188182e 2004-11-12 Randolph Chung <tausq@debian.org>
* config/tm/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
	* parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): Remove.
	(write_exp_msymbol): Remove conditional check for symbols starting
	with $.  Update comments.
2004-11-13 02:27:41 +00:00
Randolph Chung b82f24bfcc 2004-11-12 Randolph Chung <tausq@debian.org>
* pa64solib.c (pa64_solib_thread_start_addr): Rename from
	so_lib_thread_start_addr.
	* pa64solib.h (so_list): Forward declare.
	(pa64_solib_thread_start_addr): Prototype.
	* somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
	(no_shared_libraries): Remove.
	(som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
	* somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
	* hpread.c (hpread_process_one_debug_symbol): Use either the som or
	the elf solib handler to find the start address.

	* config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
	files to the target makefile.
	* config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
	* config/pa/hpux11.mh (NATDEPFILES): Likewise.
	* config/pa/hpux11w.mh (NATDEPFILES): Likewise.

	* config/pa/hppa64.mt (TDEPFILES): Put target-specific support
	files for symbol reading and shared library handling here.
	* config/pa/hppahpux.mt (TDEPFILES): Likewise.
	(PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
	without bringing in 64-bit support.
2004-11-13 02:24:34 +00:00
Randolph Chung 89676665cf 2004-11-12 Randolph Chung <tausq@debian.org>
* pa64solib.c (pa64_solib_thread_start_addr): Rename from
	so_lib_thread_start_addr.
	* pa64solib.h (so_list): Forward declare.
	(pa64_solib_thread_start_addr): Prototype.
	* somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined.
	(no_shared_libraries): Remove.
	(som_solib_thread_start_addr): Rename from so_lib_thread_start_addr.
	* somsolib.h (som_solib_thread_start_addr): Likewise; prototype.
	* hpread.c (hpread_process_one_debug_symbol): Use either the som or
	the elf solib handler to find the start address.

	* config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support
	files to the target makefile.
	* config/pa/hpux1020.mh (NATDEPFILES):  Likewise.
	* config/pa/hpux11.mh (NATDEPFILES): Likewise.
	* config/pa/hpux11w.mh (NATDEPFILES): Likewise.

	* config/pa/hppa64.mt (TDEPFILES): Put target-specific support
    files for symbol reading and shared library handling here.
	* config/pa/hppahpux.mt (TDEPFILES): Likewise.
    (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target
    without bringing in 64-bit support.
2004-11-13 02:19:03 +00:00
Andrew Cagney 4991999e35 2004-11-12 Andrew Cagney <cagney@gnu.org>
* sparc-tdep.c: Replace VALUE_TYPE with value_type.
	* v850-tdep.c, sparc64-tdep.c, sh-tdep.c: Ditto.
	* sh64-tdep.c, s390-tdep.c, mcore-tdep.c: Ditto.
	* h8300-tdep.c, arm-linux-tdep.c, amd64-tdep.c: Ditto.
	* hppa-tdep.c, mips-tdep.c, m88k-tdep.c: Ditto.
	* m68hc11-tdep.c, m32r-tdep.c, ia64-tdep.c: Ditto.
	* frv-tdep.c, cris-tdep.c, avr-tdep.c, alpha-tdep.c: Ditto.
2004-11-13 02:15:33 +00:00
Andrew Cagney 9ee8fc9d71 2004-11-12 Andrew Cagney <cagney@gnu.org>
Merge VALUE_REGNO and VALUE_FRAME_REGNUM into VALUE_REGNUM.
	* value.h (VALUE_REGNO, VALUE_FRAME_REGNUM): Delete.
	(VALUE_REGNUM): Define.
	(struct value): Delete location.regnum, rename "regno" to
	"regnum".
	* value.c, valops.c, valarith.c, findvar.c: Update.
2004-11-13 00:53:09 +00:00
gdbadmin b88f0b484e *** empty log message *** 2004-11-13 00:00:35 +00:00
Andrew Cagney df407dfe2e 2004-11-12 Andrew Cagney <cagney@gnu.org>
* value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
	(VALUE_BITPOS): Delete.
	(value_type, value_offset, value_bitsize, value_bitpos): Declare.
	* value.c (value_type, value_offset, value_bitpos)
	(value_bitsize): New functions.  Update references.
	* arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
	* f-valprint.c, cp-valprint.c, c-valprint.c: Update.
	* ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
	* p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
	* objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
	* infcall.c, linespec.c, printcmd.c, valarith.c: Update.
	* valops.c, eval.c, findvar.c, breakpoint.c: Update.
	* tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
	* rs6000-tdep.c, ppc-sysv-tdep.c: Update.
2004-11-12 21:45:08 +00:00