aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2004-12-082004-12-07 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+13
* 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-082004-12-07 Randolph Chung <tausq@debian.org>Randolph Chung1-3/+15
* 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-07* hppa-tdep.h (hppa_read_pc, hppa_write_pc, hppa_unwind_pc): NewMark Kettenis1-45/+40
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-062004-12-05 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+25
* hppa-tdep.c (unwind_command): Print the stub type for stub unwind records.
2004-12-032004-12-03 Randolph Chung <tausq@debian.org>Randolph Chung1-19/+28
* 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-012004-11-30 Randolph Chung <tausq@debian.org>Randolph Chung1-33/+0
* 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-11-232004-11-23 Randolph Chung <tausq@debian.org>Randolph Chung1-8/+12
* 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-132004-11-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+2
* 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-122004-11-12 Randolph Chung <tausq@debian.org>Randolph Chung1-24/+0
* hppa-tdep.c (hppa_skip_permanent_breakpoint): Move definition ... * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): ... to here. * config/pa/tm-hppa.h (SKIP_PERMANENT_BREAKPOINT): Move definition ... * config/pa/tm-hppah.h (SKIP_PERMANENT_BREAKPOINT): ... to here.
2004-11-122004-11-11 Randolph Chung <tausq@debian.org>Randolph Chung1-13/+30
* hppa-tdep.c (skip_prologue_hard_way): Make static, add stop_after_branch parameter and use it to determine if we should look at the delay slot of the first branch insn to find prologue insns. (hppa_skip_prologue): Update comment and call to skip_prologue_hard_way. (hppa_frame_cache): Likewise.
2004-11-122004-11-11 Randolph Chung <tausq@debian.org>Randolph Chung1-10/+25
* hppa-tdep.c (hppa_frame_cache): Properly handle the frame pointer register so that it can be unwound from anywhere in the prologue.
2004-11-102004-11-10 Randolph Chung <tausq@debian.org>Randolph Chung1-12/+22
* hppa-tdep.c (hppa32_register_name, hppa64_register_name): Make static. (hppa32_push_dummy_call, hppa64_push_dummy_call): Likewise. (hppa_fetch_pointer_argument): Likewise. (hppa_frame_cache): Use safe_frame_unwind_memory instead of deprecated_read_memory_nobpt. (_initialize_hppa_tdep): Replace deprecated_add_show_from_set/ add_set_cmd sequence with add_setshow_boolean_cmd.
2004-11-032004-11-03 Randolph Chung <tausq@debian.org>Randolph Chung1-7/+37
* hppa-tdep.c (hppa_frame_cache): Use frame_pc_unwind instead of frame_func_unwind to locate the unwind entry. (hppa_frame_this_id): Likewise.
2004-10-312004-10-31 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+4
* hppa-tdep.c (hppa_stub_unwind_sniffer): Replace IN_SOLIB_CALL_TRAMPOLINE with tdep.in_solib_call_trampoline. * hppa-tdep.h (struct gdbarch_tdep): Add in_solib_call_trampoline. * hppa-hpux-tdep.c (hppa_hpux_init_abi): Set same. * hppa-linux-tdep.c (hppa_linux_init_abi): Ditto.
2004-10-14* hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD andMark Kettenis1-0/+5
NetBSD system call stubs that store %rp in the ERP slot of the stack frame.
2004-07-312004-07-31 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-5/+5
* trad-frame.c (trad_frame_get_prev_register): Rename trad_frame_get_prev_register. * vax-tdep.c (vax_frame_prev_register): Update. * trad-frame.h: Update. * trad-frame.c (trad_frame_get_register): Update. * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update. * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register): Update. * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register): Update. * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register): Update. * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register): Update. * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register): Update. * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register): Update. * s390-tdep.c (s390_frame_prev_register) (s390_stub_frame_prev_register) (s390_sigtramp_frame_prev_register): Update. * rs6000-tdep.c (rs6000_frame_prev_register): Update. * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update. * mips-tdep.c (mips_mdebug_frame_prev_register): Update. * m88k-tdep.c (m88k_frame_prev_register) * m68hc11-tdep.c (m68hc11_frame_prev_register) * m32r-tdep.c (m32r_frame_prev_register): Update. * hppa-tdep.c (hppa_frame_prev_register_helper) * frv-tdep.c (frv_frame_prev_register): Update. * d10v-tdep.c (d10v_frame_prev_register): Update. * cris-tdep.c (cris_frame_prev_register): Update. * avr-tdep.c (avr_frame_prev_register): Update. * arm-tdep.c (arm_prologue_prev_register) (arm_sigtramp_prev_register): Update.
2004-07-262004-07-26 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-3/+5
* cli/cli-decode.c (deprecated_add_show_from_set): Deprecate. * xcoffsolib.c (_initialize_xcoffsolib): Update. * wince.c (_initialize_wince): Update. * win32-nat.c (_initialize_win32_nat): Update. * varobj.c (_initialize_varobj): Update. * valops.c (_initialize_valops): Update. * utils.c (initialize_utils, initialize_utils): Update. * tui/tui-win.c (_initialize_tui_win): Update. * top.c (init_main): Update. * symfile.c (_initialize_symfile): Update. * source.c (_initialize_source): Update. * somsolib.c (_initialize_som_solib): Update. * solib.c (_initialize_solib): Update. * solib-frv.c (_initialize_frv_solib): Update. * serial.c (_initialize_serial): Update. * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update. * remote.c (_initialize_remote, _initialize_remote): Update. * remote-vx.c (_initialize_vx): Update. * remote-utils.c (_initialize_sr_support): Update. * remote-sds.c (_initialize_remote_sds): Update. * remote-mips.c (_initialize_remote_mips): Update. * remote-e7000.c (_initialize_remote_e7000): Update. * proc-api.c (_initialize_proc_api): Update. * printcmd.c: Update. * parse.c (_initialize_parse): Update. * pa64solib.c (_initialize_pa64_solib): Update. * p-valprint.c (_initialize_pascal_valprint): Update. * monitor.c (_initialize_remote_monitors): Update. * mips-tdep.c (_initialize_mips_tdep): Update. * mcore-tdep.c (_initialize_mcore_tdep): Update. * maint.c (_initialize_maint_cmds): Update. * lin-lwp.c (_initialize_lin_lwp): Update. * language.c (_initialize_language): Update. * kod.c (_initialize_kod): Update. * infrun.c (set_schedlock_func, _initialize_infrun): Update. * i386-tdep.c (_initialize_i386_tdep): Update. * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update. * gdbarch.sh: Update. * gdbarch.c: Re-generate. * gdb-events.sh: Update. * gdb-events.c: Re-generate. * frame.c (_initialize_frame): Update. * exec.c: Update. * demangle.c (_initialize_demangler): Update. * dcache.c (_initialize_dcache): Update. * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update. * cp-valprint.c (_initialize_cp_valprint): Update. * corefile.c (_initialize_core): Update. * command.h: Update. * cli/cli-decode.h: Update. * cli/cli-cmds.c (init_cli_cmds): Update. * charset.c (_initialize_charset): Update. * breakpoint.c (_initialize_breakpoint): Update. * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update. * alpha-tdep.c (_initialize_alpha_tdep): Update. * aix-thread.c (_initialize_aix_thread): Update.
2004-07-202004-07-20 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-6/+6
* breakpoint.c (deprecated_read_memory_nobpt): Rename read_memory_nobpt. * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update. * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p) (s390_sigtramp_frame_sniffer): Update. * mn10300-tdep.c (mn10300_analyze_prologue): Update. * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update. * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction) (mips32_fetch_instruction): Update. * mcore-tdep.c (get_insn): Update. * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update. * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update. * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update. * i386-linux-tdep.c (i386_linux_sigtramp_start) (i386_linux_rt_sigtramp_start): Update. * i386-linux-nat.c (child_resume): Update. * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update. * hppa-linux-tdep.c (insns_match_pattern): Update. * gdbcore.h: Update. * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update. * frame.c (safe_frame_unwind_memory): Update. * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update. * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update. * alpha-tdep.c (alpha_read_insn): Update.
2004-06-072004-06-07 Randolph Chung <tausq@debian.org>Randolph Chung1-43/+16
* hppa-tdep.c (hppa_frame_cache): Handle the cases when we start unwinding after sp has been saved to the stack but before the end of the prologue, and after the fp has been modified but before it has been saved to the stack. (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer): Remove superfluous definitions. (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2004-06-072004-06-06 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+12
* hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) (hppa_hpux_skip_trampoline_code): Don't cache symbol values. * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise. * hppa-tdep.c (hppa_symbol_address): New function definition. * hppa-tdep.h (hppa_symbol_address): New function declaration.
2004-06-072004-06-06 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+37
* hppa-tdep.h (struct value): Forward declaration. (gdbarch_tdep): Define tdep find_global_pointer method. * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer associated with the function we are trying to call, and write it to the gp register. (hppa32_convert_from_funct_ptr_addr): New function. (hppa_find_global_pointer): New function. (hppa_gdbarch_init): Set default find_global_pointer method; set convert_from_func_ptr_addr method. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function. (hppa_linux_init_abi): Set find_global_pointer method. * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2004-06-072004-06-06 Randolph Chung <tausq@debian.org>Randolph Chung1-2/+2
* gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument to struct value *function. * gdbarch.c: Regenerate. * gdbarch.h: Likewise. * infcall.c (call_function_by_hand): Pass entire function value to push_dummy_call. * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o) (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies. * alpha-tdep.c (alpha_push_dummy_call): Update call signature. * amd64-tdep.c (amd64_push_dummy_call): Likewise. * arm-tdep.c (arm_push_dummy_call): Likewise. * avr-tdep.c (avr_push_dummy_call): Likewise. * cris-tdep.c (cris_push_dummy_call): Likewise. * d10v-tdep.c (d10v_push_dummy_call): Likewise. * frv-tdep.c (frv_push_dummy_call): Likewise. * h8300-tdep.c (h8300_push_dummy_call): Likewise. * hppa-tdep.c (hppa32_push_dummy_call) (hppa64_push_dummy_call): Likewise. * i386-tdep.c (i386_push_dummy_call): Likewise. * ia64-tdep.c (ia64_push_dummy_call): Likewise. * m32r-tdep.c (m32r_push_dummy_call): Likewise. * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise. * m68k-tdep.c (m68k_push_dummy_call): Likewise. * m88k-tdep.c (m88k_push_dummy_call): Likewise. * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call) (ppc64_sysv_abi_push_dummy_call): Likewise. * ppc-tdep.h (ppc_sysv_abi_push_dummy_call) (ppc64_sysv_abi_push_dummy_call): Likewise. * rs6000-tdep.c (rs6000_push_dummy_call): Likewise. * s390-tdep.c (s390_push_dummy_call): Likewise. * sh-tdep.c (sh_push_dummy_call_fpu) (sh_push_dummy_call_nofpu): Likewise. * sparc-tdep.c (sparc32_push_dummy_call): Likewise. * sparc64-tdep.c (sparc64_push_dummy_call): Likewise. * vax-tdep.c (vax_push_dummy_call): Likewise.
2004-05-30* hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement toMark Kettenis1-10/+21
handle VALUEP being null.
2004-05-262004-05-25 Randolph Chung <tausq@debian.org>Randolph Chung1-10/+10
* hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment, and multiple stack unwinds. (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
2004-05-252004-05-24 Randolph Chung <tausq@debian.org>Randolph Chung1-5/+0
* hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove unused symbols. * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more references.
2004-05-242004-05-24 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+1
* hppa-tdep.c: Fix handling of 8-byte structures; they should not be "small_struct".
2004-05-192004-05-18 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+1
* hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for millicode functions.
2004-05-192004-05-18 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+33
* hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use it for unwinding the stack.
2004-05-192004-05-18 Randolph Chung <tausq@debian.org>Randolph Chung1-2/+1
* hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub handling for 64-bit HPUX (elf).
2004-05-172004-05-17 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+20
* hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding, check to see if we are unwinding an export stub. Export stubs clobber the %rp in the call path and stores the original rp in a stack slot.
2004-05-172004-05-17 Randolph Chung <tausq@debian.org>Randolph Chung1-10/+0
* hppa-tdep.c: Remove superfluous #include's. * Makefile.in (hppa-tdep.o): Update dependencies.
2004-05-172004-05-17 Randolph Chung <tausq@debian.org>Randolph Chung1-26/+0
* hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol. (THREAD_INITIAL_FRAME_SYM_LEN): Likewise. (unwind_command, hppa_alignof, prologue_inst_adjust_sp) (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries) (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr): Remove static function declarations.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung1-6/+6
* hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use read_memory_nobpt for code reading when doing frame unwinding. * hppa-linux-tdep.c (insns_match_pattern): Likewise.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung1-46/+139
* hppa-tdep.c (hppa_frame_prev_register_helper): New function to do common handling of the pcoqt register. (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert to use helper function. (hppa_frame_unwind_sniffer): Only use if unwind entry is present. (hppa_fallback_frame_cache, hppa_fallback_frame_this_id) (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New generic fallback unwinder when all else fails. (hppa_gdbarch_init): Add fallback sniffer. * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert to use helper function.
2004-05-072004-05-06 Randolph Chung <tausq@debian.org>Randolph Chung1-44/+44
* config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM) (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM) (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM) (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM) (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM) (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM) (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM definitions ... * hppa-tdep.h: ... to here, with HPPA_ prefix. * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h) * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig) (hppa64_hpux_frame_find_saved_regs_in_sig) (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage. * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise. * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum) (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache) (hppa_linux_sigtramp_frame_prev_register): Likewise. * hppa-tdep.c (hppa32_return_value, hppa64_return_value) (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align) (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache) (hppa_frame_prev_register, hppa_stub_frame_unwind_cache) (hppa_stub_frame_prev_register, hppa_unwind_dummy_id) (hppa_skip_permanent_breakpoint, hppa_instruction_nullified) (hppa32_register_type, hppa_cannot_store_register) (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise. * hppah-nat.c (store_inferior_registers, fetch_register): Likewise. * hpread.c (hpread_process_one_debug_symbol): Likewise. * pa64solib.c (pa64_solib_have_load_event) (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname) (pa64_solib_unloaded_library_pathname): Likewise. * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event) (som_solib_library_pathname): Likewise.
2004-04-292004-04-24 Randolph Chung <tausq@debian.org>Randolph Chung1-3/+4
* configure.host (hppa*-*-linux*): New target. * configure.tgt (hppa*-*-linux*): Likewise. * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move gdbarch_init_osabi() call earlier so that osabi-specific frame unwinders can be registered first. * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and hppa-linux-nat.c. * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM) (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers. * config/pa/linux.mh: New file. * config/pa/linux.mt: New file. * config/pa/nm-linux.h: New file. * config/pa/xm-linux.h: New file. * hppa-linux-nat.c: New file. * hppa-linux-tdep.c: New file.
2004-04-292004-04-28 Randolph Chung <tausq@debian.org>Randolph Chung1-26/+57
* hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp return values. (hppa32_push_dummy_call): Fix small struct and floating point argument passing, and make sure the stack frame is properly aligned.
2004-04-242004-04-23 Randolph Chung <tausq@debian.org>Randolph Chung1-3/+83
* hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache) (hppa_stub_frame_this_id, hppa_stub_frame_prev_register) (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder for handling stackless frames. (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2004-04-242004-04-23 Randolph Chung <tausq@debian.org>Randolph Chung1-19/+77
* hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind starts at a pc before the frame is created.
2004-04-232004-04-22 Randolph Chung <tausq@debian.org>Randolph Chung1-579/+46
* hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load) (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17) (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend) (hppa_sign_extend): Add prototype. * hppa-tdep.c (get_field, extract_5_load, extract_5R_store) (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend) (sign_extend): Rename with hppa_ prefix and make non-static. Other hppa targets will also use these functions. (find_unwind_entry): Remove prototype (moved to hppa-tdep.h). (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline) (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c (hppa_gdbarch_init): Remove gdbarch setting of skip_trampoline_code, in_solib_call_trampoline and in_solib_return_trampoline. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) (hppa64_hpux_in_solib_call_trampoline): New functions, split from hppa_in_solib_call_trampoline. (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code): Moved from hppa-tdep.c. (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code, in_solib_call_trampoline and in_solib_return_trampoline.
2004-04-232004-04-22 Randolph Chung <tausq@debian.org>Randolph Chung1-4/+47
* hppa-tdep.c (hppa_debug): New variable. (find_unwind_entry, hppa_frame_cache): Add debug output. (_initialize_hppa_tdep): Add command to set debug flag.
2004-04-172004-04-17 Randolph Chung <tausq@debian.org>Randolph Chung1-18/+24
* Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h). * hppa-hpux-tdep.c (hppa-tdep.h): Include. (hppa_hpux_som_init_abi): Set is_elf to 0. (hppa_hpux_elf_init_abi): Set is_elf to 1. * hppa-tdep.c (low_text_segment_address): Remove global. (record_text_segment_lowaddr): Pass in low address as parameter. Use section offset to calculate segment address. (internalize_unwinds): Define low_text_segment_address as local and pass to record_text_segment_lowaddr for ELF targets. (hppa_gdbarch_init): Zero fill tdep structure. (hppa_dump_tdep): Print tdep structure. * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2004-04-172004-04-17 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+14
* hppa-tdep.c (hppa_pseudo_register_read): Define. (hppa_gdbarch_init): Set pseudo_register_read. * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove. * regcache.c (supply_register): Remove check for DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2004-04-172004-04-17 Randolph Chung <tausq@debian.org>Randolph Chung1-38/+31
* Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h) * hppa-tdep.c (hppa_objfile_priv_data): New. (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Use HPPA_INSTRUCTION_SIZE. (read_unwind_info): Use objfile_data to reference unwind info. (find_unwind_entry): Likewise. (hpread_adjust_stack_address): Move to hpread.c. (_initialize_hppa_tdep): Register hppa objfile data. * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Define. (unwind_table_entry, unwind_stub_types): Move from tm-hppa.h. (obj_unwind_info, obj_private_struct): Move from tm-hppa.h, and rename with hppa_ prefix. * hpread.c (hppa-tdep.h): Include. (hpread_adjust_stack_address): Move from hppa-tdep.c. (hpread_read_function_type, hpread_read_doc_function_type) (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address directly. Use objfile_data to access solib data. * pa64solib.c (hppa-tdep.h): Include. (pa64_solib_add_solib_objfile): Use objfile_data to access solib data. * somsolib.c (hppa-tdep.h): Include. (som_solib_add_solib_objfile): Use objfile_data to access solib data. * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type) (inferior_status): Remove unused forward declarations. (INSTRUCTION_SIZE): Move to hppa-tdep.c. (unwind_table_entry, unwind_stub_types, obj_unwind_info) (obj_private_struct): Move to hppa-tdep.h. (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2004-04-172004-04-17 Randolph Chung <tausq@debian.org>Randolph Chung1-25/+8
* hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue) (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline) (hppa_in_solib_return_trampoline, hppa_cannot_store_register) (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc): Remove forward declaration and make static. (hppa_reg_struct_has_addr): Remove.
2004-04-112004-04-07 Randolph Chung <tausq@debian.org>Randolph Chung1-11/+1
* hppa-tdep.c (hppa_inner_than): Remove. (is_pa_2): Remove unused static variable. (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
2004-04-062004-04-06 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+4
* hppa-tdep.c (hppa_breakpoint_from_pc): Make static. (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32): (hppa_breakpoint_from_pc): Delete.
2004-04-062004-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-16/+0
* hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>, <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h", <sys/file.h>.
2004-04-062004-04-06 Randolph Chung <tausq@debian.org>Andrew Cagney1-568/+0
Committed by Andrew Cagney (mechanical change). * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present, exception_catchpoints_are_fragile, find_stub_with_shl_get, cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support, child_enable_exception_callback, current_ex_event, null_symtab_and_line, child_get_current_exception_event, HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support, hp_cxx_exception_support_initialized, eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior): Move hpux-specific definitions ... * hppa-hpux-tdep.c: ... to here.
2004-04-062004-04-05 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+2
* hppa-tdep.c (hppa_frame_cache): Pass the frame's func to skip_prologue_using_sal.