aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2002-01-20Eliminate IEEE_FLOAT.Andrew Cagney1-1/+0
2001-12-20* s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regsJim Blandy1-13/+16
array is actually set before we try to use it.
2001-12-20* s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PCJim Blandy1-12/+10
out of the return address register, cache that in the frame's extra info, just as if we'd gotten it from the saved regs array; that way, it's not a lie to set the saved_pc_valid flag.
2001-12-20* s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonableJim Blandy1-1/+2
value, even when fextra_info->stack_bought can't be trusted,
2001-12-20* s390-tdep.c (s390_readinstruction): Don't callJim Blandy1-2/+5
info->read_memory_func to read zero bytes. Some targets' xfer_memory functions can't cope with that.
2001-12-20* gdbarch.sh (TARGET_CHAR_SIGNED): New macro.Jim Blandy1-0/+1
* gdbarch.c, gdbarch.h: Regenerated. * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero, set the TYPE_FLAG_UNSIGNED bit on the type. * s390-tdep.c (s390_gdbarch_init): On the S/390, characters are unsigned by default. * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and RS6000.
2001-12-19* s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,Jim Blandy1-4/+7
the last register number, not one greater than the last register number. * s390-tdep.c (s390_register_virtual_type): Replace clever but incorrect range comparison with correct, legible equivalent.
2001-12-19* s390-tdep.c (s390_gdbarch_init): Revert accidentally committedJim Blandy1-1/+0
change.
2001-12-19* s390-tdep.c (s390_register_raw_size): Replace unnecessarilyJim Blandy1-5/+7
obscure range comparison with legible equivalent.
2001-12-07* s390-tdep.c (s390_store_return_value): Don't convert floatJim Blandy1-6/+7
values to double format when returning them; just return them in the first half of the FP register, as the ABI specifies.
2001-12-05* s390-tdep.c (s390_get_frame_info): Recognize argument registerJim Blandy1-4/+17
spills that use the `stm' instruction. (is_arg_reg): New function.
2001-12-05* s390-tdep.c (s390_get_frame_info): Recognize spills of regJim Blandy1-0/+17
arguments into their stack slots.
2001-12-05* s390-tdep.c (s390_get_frame_info): More doc fixes.Jim Blandy1-6/+14
2001-12-04* s390-tdep.c (s390_get_frame_info): Doc fixes.Jim Blandy1-3/+26
2001-12-03* s390-tdep.c (s390_get_frame_info): Don't used fextra_info to setJim Blandy1-1/+2
orig_sp if it's not initialized.
2001-11-29Tighten up GDB's support for returning structs by value.Jim Blandy1-2/+14
* s390-tdep.c (s390_use_struct_convention): New function. (s390_gdbarch_init): Register it as the S/390's USE_STRUCT_CONVENTION method. Register generic_cannot_extract_struct_value_address as our EXTRACT_STRUCT_VALUE_ADDRESS method. * arch-utils.c (generic_cannot_extract_struct_value_address): New function. * arch-utils.h: Add corresponding prototype.
2001-11-29* s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn'tJim Blandy1-0/+2
save the return address register, assume that the return address is still in there.
2001-11-28* s390-tdep.c: Get frame chains and saved pc values properly fromJim Blandy1-0/+8
dummy frames. (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the saved PC from the dummy frame's registers. (s390_frame_chain): Same for the saved SP. (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets set correctly.
2001-11-28* s390-tdep.c (s390_frame_chain): Remember that the SP's elementJim Blandy1-9/+15
of the frame's saved_regs array is special.
2001-11-27* s390-tdep.c (s390_push_dummy_frame): Delete function; it's noJim Blandy1-16/+0
longer used.
2001-11-27* s390-tdep.c (register_names): Call the general-purpose registersJim Blandy1-4/+4
`r0' -- `r15', and the floating-point registers `f0' -- `f15', to match the assembly language.
2001-11-16* s390-tdep.c: Tweak argument-passing to match GCC bugs.Jim Blandy1-14/+73
(is_float_singleton, is_struct_like, is_float_like): New functions, that isolate the weirdness. (is_double_or_float, is_simple_arg, pass_by_copy_ref, is_double_arg): Use is_struct_like and is_float_like, rather than testing the type codes ourselves. (s390_push_arguments): When passing args on the stack, align each on to a four-byte boundary, regardless of what the type itself needs.
2001-11-16* s390-tdep.c (is_simple_arg): Structs and unions exactly eightJim Blandy1-2/+5
bytes long should be handled as DOUBLE_ARGs; don't recognize them as SIMPLE_ARGs.
2001-11-14* s390-tdep.c (s390_pop_frame_regular): On the S/390, the frameJim Blandy1-2/+4
pointer and the SP are often the same, so we can't pop the frame by setting the SP to the FP; we need to get the old SP from saved_regs.
2001-11-14* s390-tdep.c (s390_extract_return_value): Returned `float' valuesJim Blandy1-14/+1
can simply be copied bitwise from the registers into the value object's buffer.
2001-11-14* s390-tdep.c (s390_get_frame_info): Initialize SP's element ofJim Blandy1-0/+4
the frame's saved_regs array correctly.
2001-11-13* s390-tdep.c: Rewrite inferior function call code. This mayJim Blandy1-98/+325
break zSeries support; that should be fixed soon. #include "gdb_assert.h". (is_integer_like, is_pointer_like, is_simple_arg, pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up, round_down, alignment_of): New functions. (s390_push_arguments): Rewritten to handle passing large arguments by value, and to make more readable.
2001-11-13* s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, toJim Blandy1-9/+35
interact correctly with generic dummy frames. (s390_pop_frame_regular): Move the guts of the frame-popping code to here, to be called by generic_pop_current_frame. Use the frame's saved_regs array; this works for `return' as well as inferior function calls.
2001-11-13* s390-tdep.c (s390_gdbarch_init): Register the functionJim Blandy1-0/+2
`standard_coerce_float_to_double', since GCC for the S/390 follows the standard rules for passing floats.
2001-11-09* s390-tdep.c: Don't use a call dummy.Jim Blandy1-58/+17
(s390_fix_call_dummy, s390_pc_in_call_dummy): Delete. (s390_push_return_address): Put the address of the inferior call breakpoint in r14. (s390_gdbarch_init): - Provide trivial definition of s390_call_dummy_words; register it with the gdbarch appropriately. - Delete S390x_call_dummy_words. - Gather inferior-call-related settings into a group. - Use generic dummy frames. - Put the inferior call breakpoint at the entry point. - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point, generic_push_dummy_frame, generic_fix_call_dummy. - There is a call dummy breakpoint offset; it's zero.
2001-11-09* s390-nat.c: (s390_push_arguments): Write a back chain pointerJim Blandy1-1/+10
into the dummy frame, to help us get backtraces.
2001-11-08* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr andJim Blandy1-1/+1
got_load_len, to placate compiler.
2001-11-08* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, notJim Blandy1-1/+1
file_frame_chain_valid.
2001-11-08* s390-tdep.c (s390_get_frame_info): If the prologue loads r12Jim Blandy1-4/+33
from the constant pool, but doesn't add in the constant pool's address to it, then this function probably isn't using r12 as a GOT pointer, and that load probably wasn't part of the prologue.
2001-11-08* s390-tdep.c (s390_gdbarch_init): Use the defaultJim Blandy1-3/+0
prepare_to_proceed function established by config/nm-linux.h; don't try to set it to linuxthreads_prepare_to_proceed.
2001-11-01s/value_ptr/struct value */Andrew Cagney1-2/+2
2001-10-31From DJ Barrow.Andrew Cagney1-1/+1
* s390-tdep.c: (s390_gdbarch_init): Don't initialize find_solib_trampoline_target.
2001-10-21Add explicit #include of "value.h".Andrew Cagney1-1/+1
2001-10-13S/390 31 & 64 bit target and GNU/Linux native support.Andrew Cagney1-0/+1504
Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM. * s390-nat.c, s390-tdep.c: New file. * config/s390/nm-linux.h, config/s390/s390.mh: New file. * config/s390/s390.mt, config/s390/s390x.mt: New file. * config/s390/tm-linux.h, config/s390/tm-s390.h: New file. * config/s390/xm-linux.h: New file. * NEWS: Update. * MAINTAINERS: Update.