368915f Seperate common s390-tdep.* from s390-linux-tdep.*

6 files Authored by Philipp Rudo 7 years ago, Committed by Andreas Arnez 7 years ago,
    Seperate common s390-tdep.* from s390-linux-tdep.*
    
    The new linux-kernel target need some architecture dependant code.  To
    prepare for this split up the existing s390 code into a general s390-tedep
    and a GDNU/Linux (user space) specific s390-linux-tdep.  This keeps the
    files manageable and allows for kernel specific code e.g. unwinder.
    
    gdb/ChangeLog:
    
    	* s390-tdep.h: New file.
    	* s390-tdep.c: New file.
    	* s390-linux-tdep.h: Move defines for hardware capabilities and
    	register informations to s390-tdep.h.
    	(s390_gdbarch_linux_init): New export.
    	(s390_upper_registers): New export.
    	* s390-linux-tdep.c: Remove unneeded includes and sort alphabetically.
    	(s390-tdep.h): New include.
    	(s390_upper_regset): Remove static.
    	(s390_gdbarch_init): Rename to...
    	(s390_gdbarch_linux_init): ...this and adjust.
    	(_initialize_s390_tdep): Rename to...
    	(_initialize_s390_linux_tdep): ...this and adjust.
    	(s390_abi_kind, s390_vector_abi_kind): Move to s390-tdep.h
    	(gdbarch_tdep, enum named opcodes): Move to s390-tdep.h
    	(s390_readinstruction, is_ri, is_ril): Move to s390-tdep.c
    	(is_rr, is_rre, is_rs, is_rsy, is_rsi, is_rie): Move to s390-tdep.c
    	(is_rx, is_rxy, s390_break_insn): Move to s390-tdep.c
    	(s390_breakpoint, s390_is_partial_instruction): Move to s390-tdep.c
    	(s390_software_single_step, s390_prologue_data): Move to s390-tdep.c
    	(s390_addr, s390_store, s390_load): Move to s390-tdep.c
    	(s390_check_for_saved, s390_analyze_prologue): Move to s390-tdep.c
    	(s390_skip_prologue, s390_register_call_saved): Move to s390-tdep.c
    	(s390_register_name, s390_cannot_store_register): Move to s390-tdep.c
    	(s390_write_pc, s390_dwarf_regmap): Move to s390-tdep.c
    	(s390_dwarf_reg_to_regnum, regnum_is_gpr_full): Move to s390-tdep.c
    	(regnum_is_vxr_full, s390_value_from_register): Move to s390-tdep.c
    	(s390_core_read_description): Move to s390-tdep.c
    	(s390_iterate_over_regset_sections): Move to s390-tdep.c
    	(s390_pseudo_register_name): Move to s390-tdep.c
    	(s390_pseudo_register_read): Move to s390-tdep.c
    	(s390_pseudo_register_write): Move to s390-tdep.c
    	(s390_pseudo_register_type): Move to s390-tdep.c
    	(s390_pseudo_register_reggroup_p): Move to s390-tdep.c
    	(s390_ax_pseudo_register_collect): Move to s390-tdep.c
    	(s390_ax_pseudo_register_push_stack): Move to s390-tdep.c
    	(s390_gen_return_address): Move to s390-tdep.c
    	(s390_unwind_pseudo_register): Move to s390-tdep.c
    	(s390_effective_inner_type): Move to s390-tdep.c
    	(s390_function_arg_float): Move to s390-tdep.c
    	(s390_function_arg_vector, is_power_of_two): Move to s390-tdep.c
    	(s390_function_arg_integer, s390_arg_state): Move to s390-tdep.c
    	(s390_handle_arg, s390_push_dummy_call): Move to s390-tdep.c
    	(s390_dummy_id, s390_register_return_value): Move to s390-tdep.c
    	(s390_return_value, s390_stack_frame_destroyed_p): Move to s390-tdep.c
    	(s390_dwarf2_prev_register): Move to s390-tdep.c
    	(s390_dwarf2_frame_init_reg): Move to s390-tdep.c
    	(s390_adjust_frame_regnum, s390_unwind_cache): Move to s390-tdep.c
    	(s390_prologue_frame_unwind_cache): Move to s390-tdep.c
    	(s390_stub_unwind_cache): Move to s390-tdep.c
    	(s390_stub_frame_unwind_cache): Move to s390-tdep.c
    	(s390_stub_frame_this_id): Move to s390-tdep.c
    	(s390_trad_frame_prev_register): Move to s390-tdep.c
    	(s390_stub_frame_prev_register): Move to s390-tdep.c
    	(s390_stub_frame_sniffer, s390_stub_frame_unwind): Move to s390-tdep.c
    	(s390_sigtramp_unwind_cache): Move to s390-tdep.c
    	(s390_sigtramp_frame_unwind_cache): Move to s390-tdep.c
    	(s390_sigtramp_frame_this_id): Move to s390-tdep.c
    	(s390_sigtramp_frame_prev_register): Move to s390-tdep.c
    	(s390_sigtramp_frame_sniffer): Move to s390-tdep.c
    	(s390_sigtramp_frame_unwind): Move to s390-tdep.c
    	(s390_backchain_frame_unwind_cache): Move to s390-tdep.c
    	(s390_frame_unwind_cache, s390_frame_this_id): Move to s390-tdep.c
    	(s390_frame_prev_register, s390_frame_unwind): Move to s390-tdep.c
    	(s390_frame_base_address): Move to s390-tdep.c
    	(s390_local_base_address, s390_frame_base): Move to s390-tdep.c
    	(s390_unwind_pc, s390_unwind_sp): Move to s390-tdep.c
    	(is_non_branch_ril): Move to s390-tdep.c
    	(s390_displaced_step_copy_insn): Move to s390-tdep.c
    	(s390_displaced_step_fixup): Move to s390-tdep.c
    	(s390_displaced_step_hw_singlestep): Move to s390-tdep.c
    	(s390_addr_bits_remove): Move to s390-tdep.c
    	(s390_address_class_type_flags): Move to s390-tdep.c
    	(s390_address_class_type_flags_to_name): Move to s390-tdep.c
    	(s390_address_class_name_to_type_flags): Move to s390-tdep.c
    
        
file modified
+3 -1
file modified
+1 -0
file modified
+127 -3508
file modified
+8 -170
file added
+3352
file added
+298