summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.kettenis_i386newframe-20030419-branchcvs/kettenis_i386newframe-20030419-branchRichard Henderson2003-05-314-69/+44
| | | | | | | | | | | | | | | | | (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder. (alpha_mdebug_frame_this_id): Likewise. (alpha_mdebug_frame_prev_register): Likewise. (alpha_mdebug_frame_base_address): Likewise. (alpha_mdebug_frame_locals_address): Likewise. (alpha_mdebug_frame_args_address): Likewise. (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache. * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start. (alpha_heuristic_frame_unwind_cache): Make static; add missing loop increment. (alpha_heuristic_frame_this_id): Make static. (alpha_heuristic_frame_prev_register): Likewise. (alpha_heuristic_frame_base_address): Likewise. * alpha-tdep.h: Update.
* * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.Richard Henderson2003-05-309-1407/+1331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (alpha_linux_sigtramp_offset): Use it. Make static. (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn; update for new frame model. * alpha-mdebug-tdep.c: New file. * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c. (alpha_osf1_init_abi): Install it. * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c. (linked_proc_desc_table): Remove. (alpha_frame_past_sigtramp_frame): Remove. (alpha_dynamic_sigtramp_offset): Remove. (ALPHA_PROC_SIGTRAMP_MAGIC): Remove. (alpha_proc_desc_is_dyn_sigtramp): Remove. (alpha_set_proc_desc_is_dyn_sigtramp): Remove. (push_sigtramp_desc): Remove. (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM. (alpha_cannot_store_register): Likewise. (alpha_sigcontext_addr): Remove. (alpha_find_saved_regs): Remove. (alpha_frame_init_saved_regs): Remove. (alpha_init_frame_pc_first): Remove. (read_next_frame_reg): Remove. (alpha_frame_saved_pc): Remove. (alpha_saved_pc_after_call): Remove. (temp_proc_desc, temp_saved_regs): Remove. (alpha_about_to_return): Remove. (cached_proc_desc): Remove. (alpha_frame_chain): Remove. (alpha_print_extra_frame_info): Remove. (alpha_init_extra_frame_info): Remove. (alpha_frame_locals_address): Remove. (alpha_frame_args_address): Remove. (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR. (alpha_push_dummy_frame): Remove. (alpha_pop_frame): Remove. (alpha_after_prologue): Rename from after_prologue; remove mdebug bits. (alpha_read_insn): New. (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust for different insn encodings. (alpha_in_lenient_prologue): Remove. (struct alpha_sigtramp_unwind_cache): New. (alpha_sigtramp_frame_unwind_cache): New. (alpha_sigtramp_register_address): New. (alpha_sigtramp_frame_this_id): New. (alpha_sigtramp_frame_prev_register): New. (alpha_sigtramp_frame_unwind): New. (alpha_sigtramp_frame_p): New. (struct alpha_heuristic_unwind_cache): New. (alpha_heuristic_proc_start): Rename from heuristic_proc_start; don't count nop insns that occur between functions. (alpha_heuristic_frame_unwind_cache): New; incorporate much of heuristic_proc_desc, but without the mdebug wrapping. (alpha_heuristic_frame_this_id): New. (alpha_heuristic_frame_prev_register): New. (alpha_heuristic_frame_unwind): New. (alpha_heuristic_frame_p): New. (alpha_heuristic_frame_base_address): New. (alpha_heuristic_frame_base): New. (alpha_unwind_dummy_id): New. (alpha_unwind_pc): New. (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of frame related deprecated initializations; install replacements. (alpha_dump_tdep): Remove. * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame. (alpha_read_insn, alpha_after_prologue, alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id, alpha_heuristic_frame_prev_register, alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare. * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o. * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove. * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
* * dwarf-frame.c (dwarf2_frame_cache): Assert that we have a FDE.Mark Kettenis2003-05-292-0/+3
|
* * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" andMark Kettenis2003-05-292-44/+26
| | | | | | | | "dummy-frame.h". (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed. (_initialize_i386_cygwin_tdep): New prototype. (i386_cygwin_init_abi): Don't set deprecated_frame_chain and deprecated_frame_chain_valid.
* * i386-tdep.c (i386_frame_this_id): Remove inside_entry_fileMark Kettenis2003-05-293-8/+7
| | | | | | check. The majority of i386 targets shouldn't need this, and it hurts Cygwin. * x86-64-tdep.c (x86_64_frame_this_id): Likewise.
* * i386-tdep.c (i386_skip_prologue): Fix comment.Mark Kettenis2003-05-292-1/+3
|
* * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frameMark Kettenis2003-05-292-5/+16
| | | | unwinder.
* 2003-05-29 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2003-05-292-1/+5
| | | | * x86-64-linux-nat.c: Fix nested comments.
* * x86-64-linux-tdep.c (x86_64_linux_sigcontext_addr): Fix.Mark Kettenis2003-05-282-5/+10
|
* * i386-tdep.c, dwarf-frame.c, dwarf-frame.h: Use dwarf2_ insteadMark Kettenis2003-05-234-93/+101
| | | | of dwarf_ as the prefix where appropriate.
* * x86-64-tdep.c (x86_64_frame_this_id,Mark Kettenis2003-05-192-3/+10
| | | | | | x86_64_sigtramp_frame_this_id, x86_64_unwind_dummy_id): Add offset to the frame base such that we use the same defenition for the top of stack as DWARF CFI does.
* * x86-64-tdep.c (x86_64_frame_cache): Don't throw away the newlyMark Kettenis2003-05-182-0/+4
| | | | created cache.
* * i386-tdep.c (i386_frame_cache): Fix indentation of comment.Mark Kettenis2003-05-182-8/+12
|
* 2003-05-18 Mark Kettenis <kettenis@gnu.org>Mark Kettenis2003-05-18288-5755/+8534
| | | | | | | | | | | | | | | | | | Merge from mainline. * i386-tdep.h (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove defenitions. (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions. * i386-tdep.c (i386_gdbarch_init): Don't set register_bytes, register_size, call_dummy_words and sizeof_call_dummy. * i386-linux-tdep.c (i386_linux_init_abi): Don't set register_bytes. * x86-64-tdep.c (x86_64_init_abi): Don't set register_bytes and register_size. (x86_64_register_bytes): Remove variable. (_initialize_x86_64_tdep): Remove function. * i386-linux-tdep.c (i386_linux_sigcontext_addr): Call read_memory with correct arguments. * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
* * i386-linux-tdep.c (i386_linux_sigcontext_addr): Call read_memoryMark Kettenis2003-05-173-2/+8
| | | | | with correct arguments. * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
* * dwarf-frame.c (dwarf_frame_cache): Fix handling of returnMark Kettenis2003-05-172-3/+12
| | | | address column.
* * config/i386/x86-64linux.mh (NATDEPFILES): Fix typo.Mark Kettenis2003-05-172-1/+3
|
* * i386-tdep.c (i386_unwind_dummy_id): Use extract_unsigned_integerMark Kettenis2003-05-173-18/+38
| | | | | | | | | | | | | | | instead of extract_typed_address for consistency with the rest of the code in this file. * i386-linux-tdep.c: Fix formatting in some comments. (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0, LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1, LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0, LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop redundant parentheses. (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define. (i386_linux_sigcontext_addr): Use it. (find_minsym_and_objfile): Change name of second argument.
* * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Add back definition.Mark Kettenis2003-05-172-0/+4
|
* Revise the x86_64 (sub)taget.Mark Kettenis2003-05-179-869/+853
| | | | | | | * x86-64-tdep.c, x86-64-linux-tdep.c, x86-64-linux-nat.c, config/i386/tm-x86-64linux.h, config/i386/nm-x86-64linux.h, config/i386/x86-64-linux.mt, config/i386/x86-64linux.mh: Extensive changes.
* * dwarf-frame.c: Add and fix some comments.Mark Kettenis2003-05-172-1/+17
|
* * i386-tdep.c (i386_frame_cache, i386_sigtramp_frame_cache,Mark Kettenis2003-05-174-8/+16
| | | | | | | i386_extract_struct_value_address, i386_svr4_sigcontext_addr): Use extract_unsigned_integer instead of extract_address. * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise. * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
* * i386-tdep.c (i386_frame_p): Move signal trampoline unwinder...Mark Kettenis2003-05-102-9/+25
| | | | | | | (i386_sigtramp_frame_p): ...here. Make both functions static. (i386_gdbarch_init): Register signal trampoline unwinder. Change order in which frame unwinders and frame baase methods are registered to make overriding them easier.
* * i386-tdep.c (i386_analyze_struct_return): Correctly indentMark Kettenis2003-05-102-12/+16
| | | | | | comment. (i386_analyze_frame_setup): Report correct bug after matching initial `pushl %ebp'.
* * dwarf-frame.c: Add support for .eh_frame sections. Fix a fewMark Kettenis2003-05-102-52/+306
| | | | bugs.
* * i386-tdep.c (i386_gdbarch_init): Don't hook in the DWARF CFIMark Kettenis2003-05-102-1/+5
| | | | frame base methods.
* * i386-tdep.c (i386_frame_prev_register): UseMark Kettenis2003-05-052-9/+6
| | | | | frame_register_unwind to unwind I386_EAX_REGNUM when that's where the PC lives.
* * dwarf-frame.c (dwarf_frame_prev_register): For the REG_SAVED_REGMark Kettenis2003-05-052-9/+8
| | | | rule, simply call frame_register_unwind.
* * dwarf-frame.c, dwarf-frame.h: New files.Mark Kettenis2003-05-045-2/+1033
| | | | | | | | | * i386-tdep.c: Include "dwarf-frame.h". (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder. * Makefile.in (SFILES): Add dwarf-frame.c (dwarf_frame_h): Define. (COMMON_OBS): Add dwarf-frame.o (dwarf-frame.o): Add dependencies.
* * i386-tdep.c: Put header files in alphabetical orde.Mark Kettenis2003-05-042-30/+34
| | | | | | | | | | | (i386_frameless_function_invocation): Removed. (i386_frame_this_id, i386_sigtramp_frame_this_id): Adjust stack address when building the frame ID. (i386_save_dummy_frame_tos): New function. (i386_unwind_dummy_id): Adjust stack address when building the frame ID. (i386_gdbarch_init): Don't set frameless_function_invocation. Set save_dummy_frame_tos to i386_save_dummy_frame_tos.
* * i386-tdep.c (i386_gdbarch_init): Don't set deprecated_fp_regnum.Mark Kettenis2003-05-042-1/+4
|
* Merge from mainline.Mark Kettenis2003-05-04197-5409/+7415
|
* * i386-tdep.c (i386_analyze_frame_setup): Use I386_EBP_REGNUMMark Kettenis2003-05-042-25/+19
| | | | | | | | | | instead of FP_REGNUM. (i386_unwind_dummy_id): Use I386_ESP_REGNUM instead of FP_REGNUM. Don't mark this function as 64-bit safe. (i386_save_dummy_frame_tos): Remove function. (i386_push_dummy_call): Fake the frame pointer here. (i386_gdbarch_init): Set save_dummy_frame_tos to generic_save_dummy_frame_tos.
* * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.Mark Kettenis2003-04-19725-121782/+793
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * i386-tdep.c: Mark functions that are 64-bit safe as such. (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM, I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM, I386_ST0_REGNUM): New defines. (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek, codestream_get): Remove define. (codestream_next_addr, condestream_addr, condestream_buf, codestream_off, codestream_cnt): Remove variables. (codestream_fill, codestream_seek, codestream_read): Remove functions. (i386_follow_jump): Rewrite to avoid usage of removed codestream functionality. (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain, i386_sigtramp_saved_pc, i386_sigtramp_saved_sp, i386_frame_saved_pc, i386_saved_pc_after_call, i386_frame_num_args, i386_frame_init_saved_regs, i386_push_return_address, i386_do_pop_frame, i386_pop_frame, i386_push_arguments): Remove functions. (i386_skip_prologue): Rewrite to avoid usage of removed codestream functionality. Use i386_analyze_prologue instead of i386_get_frame_setup. (I386_NUM_SAVED_REGS): New define. (struct i386_frame_cache): New structure. (i386_alloc_frame_cache, i386_analyze_struct_return, i386_skip_probe, i386_analyze_frame_setup, i386_analyze_register_saves, i386_analyze_prologue, i386_unwind_pc, i386_frame_cache, i386_frame_this_id, i386_frame_prev_register, i386_sigtramp_frame_cache, i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register, i386_frame_p, i386_frame_base_address, i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call): New functions. (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base): New variables. (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of I386_EAX_REGNUM and I386_EDX_REGNUM. (i386_extract_return_value, i386_store_return_value): Use I386_ST0_REGNUM where appropriate. (i386_extract_struct_value_address): Rewrite to use extract_address. (i386_svr4_pc_in_sigtramp): Add comment. (i386_svr4_sigcontext_addr): Rewrite. (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and TDEP->sc_sp_offset. (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms of new defines. Set push_dummy_call, don't set deprecated_push_arguments, deprecated_push_return_address, deprecated_pop_frame. Don't set parm_boundary. Don't set deprecated_frame_chain, deprecated_frame_saved_pc, deprecated_saved_pc_after_call. Set unwind_dummy_id, save_dummy_frame_tos, unwind_pc. Call frame_unwind_append_predicate and frame_base_set_default. Don't set deprecated_dummy_write_pc. * i386-linux-tdep.c (i386_linux_sigcontext_addr): Rewrite. (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers changed. Use frame_pc_unwind instead of DEPRECATED_SAVED_PC_AFTER_CALL. * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite. * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset. Rely on the SVR4 defaults. * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
* * i386-tdep.c (i386_num_register_names): New variable.kettenis_i386newframe-20030419-branchpointMark Kettenis2003-04-192-14/+28
| | | | | | | | | (i386_num_mmx_regs): Renamed from mmx_num_regs. (MM0_REGNUM): Remove redundant parentheses in define. (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs. (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove redundant parentheses. (i386_register_name): Use i386_num_register_names.
* * i386-tdep.c (i386_extract_return_value,Mark Kettenis2003-04-192-2/+6
| | | | | i386_store_return_value): Correct check for availability of floating-point registers.
* * i386-tdep.c (i386_frame_num_args): Remove function.Mark Kettenis2003-04-192-75/+4
| | | | (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
* * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed fromMark Kettenis2003-04-192-5/+12
| | | | mmx_regnum_to_fp_regnum. Adjust all callers.
* * i386-tdep.c (i386_get_longjmp_target): UseMark Kettenis2003-04-192-3/+10
| | | | | | TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT and TARGET_CHAR_BIT. Use extract_typed_address instead of extract_address.
* * core-regset.c: Update comments to reflect reality. Re-orderMark Kettenis2003-04-192-62/+54
| | | | | | includes. (fetch_core_registers): Use switch instead of if. Remove redundant prototype.
* * Makefile.tpl (MAKEINFOFLAGS): Default to --split-size=5000000.cvs/add-fakeroots-diradd-fakeroots-dirDJ Delorie2003-04-195-12/+14
| | | | | | | * Makefile.in: Regenerate. * configure.in (powerpc64*-*-linux*): Remove. * configure: Rebuilt.
* daily updateAlan Modra2003-04-191-1/+1
|
* *** empty log message ***gdbadmin2003-04-191-1/+1
|
* * s390-tdep.c (s390_frame_align): New function.Jim Blandy2003-04-182-0/+15
| | | | (s390_gdbarch_init): Register it with the gdbarch object.
* Only check associated vector if the matching_vector has been created.Nick Clifton2003-04-182-1/+8
|
* * remote.c (minitelnet): Don't redeclare escape_count, echo_check.Richard Henderson2003-04-182-3/+4
|
* daily updateAlan Modra2003-04-181-1/+1
|
* *** empty log message ***gdbadmin2003-04-181-1/+1
|
* * Makefile.tpl (GCC_STRAP_TARGETS): New variable containing all theDJ Delorie2003-04-175-4/+20
| | | | | | | | | previous bootstrap targets, plus bubblestrap, quickstrap, cleanstrap, and restrap. * Makefile.in: Regenerate. * configure.in (arm-*-netbsdelf*): Enable building java libraries. * configure: Regenerated.
* 2003-04-17 Michael Snyder <msnyder@redhat.com>Elena Zannoni2003-04-172-0/+87
| | | | | | | Karen Bennet <bennet@redhat.com> Committed by Elena Zannoni <ezannoni@redhat.com> * gdb_gcore.sh: New script to create a core dump of a process.