aboutsummaryrefslogtreecommitdiff
path: root/gdb/d10v-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2001-07-15s/value_ptr/struct value */Andrew Cagney1-2/+2
2001-07-10Clean up the D10V port so that GDB and the target program noJim Blandy1-99/+49
longer disagree on how big pointers are. * findvar.c (value_from_register): Remove special case code for D10V. * printcmd.c (print_frame_args): Same. * valops.c (value_at, value_fetch_lazy): Same. * values.c (unpack_long): Same. * gdbarch.sh: Changes to effect the following: * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR, gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr, set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR, gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr, set_gdbarch_d10v_make_iaddr, D10V_DADDR_P, gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p, set_gdbarch_d10v_daddr_p, D10V_IADDR_P, gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p, set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW, gdbarch_d10v_convert_daddr_to_raw_ftype, gdbarch_d10v_convert_daddr_to_raw, set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW, gdbarch_d10v_convert_iaddr_to_raw_ftype, gdbarch_d10v_convert_iaddr_to_raw, set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations. * gdbarch.c: Delete the corresponding definitions. (struct gdbarch): Delete members d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw. (startup_gdbarch): Remove initializers for the above. (verify_gdbarch, gdbarch_dump): Don't verify or dump them any more. * d10v-tdep.c (d10v_register_virtual_type): Rather that claiming the stack pointer and PC are 32 bits long (which they aren't), say that the stack pointer is an int16_t, and the program counter is a function pointer. This allows the rest of GDB to make the appropriate conversions between the code pointer format and real addresses. (d10v_register_convertible, d10v_register_convert_to_virtual, d10v_register_convert_to_raw): Delete function; no registers are convertible now, so we use generic_register_convertible_not instead. (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch methods. (d10v_push_arguments, d10v_extract_return_value): Remove special cases for code and data pointers. (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and the target agree on how large pointers are. Say that addresses are 32 bits long. Register the address_to_pointer and pointer_to_address conversion functions. Since no registers are convertible now, register generic_register_convertible_not as the gdbarch_register_convertible method instead of d10v_register_convertible. Remove registrations for d10v_register_convert_to_virtual, d10v_register_convert_to_raw, gdbarch_d10v_make_daddr, gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p, gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and gdbarch_d10v_convert_iaddr_to_raw.
2001-07-05* d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,Jim Blandy1-17/+17
show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp, d10v_push_return_address): Call the functions d10v_make_daddr, d10v_make_iaddr, d10v_convert_iaddr_to_raw, and d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and D10V_CONVERT_DADDR_TO_RAW.
2001-06-28* d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.Jim Blandy1-1/+14
2001-06-28* d10v-tdep.c (10v_frame_chain_valid, d10v_use_struct_convention,Jim Blandy1-36/+36
d10v_breakpoint_from_pc, d10v_register_byte, d10v_register_raw_size, d10v_register_virtual_size, d10v_register_virtual_type, d10v_register_convertible, d10v_register_convert_to_virtual, d10v_register_convert_to_raw, d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p, d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw, d10v_store_struct_return, d10v_store_return_value, d10v_extract_struct_value_address, d10v_frame_saved_pc, d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue, d10v_frame_chain, d10v_frame_init_saved_regs, d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc, d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp, d10v_push_return_address, d10v_push_arguments, d10v_extract_return_value): Make these functions static.
2001-05-04Phase 1 of the ptid_t changes.Kevin Buettner1-10/+10
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-0/+1
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-3/+5
internal_verror().
2001-01-022000-12-20 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder1-14/+2
* arch-utils.c (default_frame_address): New function. Default implementation of frame_args_address and frame_locals_address. * arch-utils.h (default_frame_address): Export. * d10v-tdep.c (d10v_gdbarch_init): Use default_frame_address. (d10v_frame_args_address, d10v_frame_locals_address): Delete. * sh-tdep.c (sh_gdbarch_init): Use default_frame_address. (sh_frame_args_address, sh_frame_locals_address): Delete. * sparc-tdep.c (sparc_gdbarch_init): Use default_frame_address. (sparc_frame_address): Delete.
2000-12-15Replace free() with xfree().Kevin Buettner1-3/+3
2000-09-01Spelling correction in comment: dependant->dependentDavid Anderson1-1/+1
2000-08-13Protoization.Kevin Buettner1-7/+3
2000-08-04Multi-arch EXTRA_STACK_ALIGNMENT_NEEDED (nee NO_EXTRA_ALIGNMENT_NEEDED).Andrew Cagney1-0/+1
2000-08-02Multi-arch REGISTER_SIM_REGNO. Update d10v.Andrew Cagney1-9/+5
2000-07-30Protoization.Kevin Buettner1-124/+54
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-2/+2
2000-06-02Multiarch TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,Andrew Cagney1-0/+18
TARGET_LONG_DOUBLE_FORMAT. Update d10v.
2000-05-28PARAMS removal.Kevin Buettner1-13/+15
2000-04-27Include "arch-utils.h".Andrew Cagney1-0/+1
2000-04-21* d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align.Andrew Cagney1-1/+2
(d10v_stack_align): Make static. * config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
2000-02-09Stop GDB mis-aligning the stack when doing inferior function calls.Andrew Cagney1-0/+5
2000-02-02import gdb-2000-02-01 snapshotJason Molenda1-2/+2
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-185/+242
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-1/+1
1999-09-22import gdb-1999-09-21Jason Molenda1-0/+159
1999-09-13import gdb-1999-09-13 snapshotJason Molenda1-7/+7
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-32/+34
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-0/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-135/+141
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-1/+111
1999-06-07import gdb-1999-06-07 snapshotJason Molenda1-61/+100
1999-06-01import gdb-1999-06-01 snapshotJason Molenda1-15/+35
1999-05-25import gdb-1999-05-25 snapshotJason Molenda1-4/+231
1999-04-26import gdb-19990422 snapshotStan Shebs1-6/+53
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1028
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1028/+0
1998-11-30CARP:Andrew Cagney1-0/+9
Cleanup FRAME_CHAIN_VALID. Replace all macro's with functions.
1998-11-23CARP: Convert macro definitions of USE_STRUCT_CONVENTION into targetAndrew Cagney1-0/+16
specific functions.
1998-04-01* d10v-tdep.c (d10v_extract_return_value): Wierd. GCC wants to returnAndrew Cagney1-1/+10
odd sized register quantities with only half of the first register used! * config/d10v/tm-d10v.h (USE_STRUCT_CONVENTION): Use stack when size > 8.
1998-02-12* d10v-tdep.c (show_regs): Avoid use of %llx when printing 8 byteAndrew Cagney1-4/+14
accumulators.
1998-02-10D10V memory map changed. Update.Andrew Cagney1-30/+19
Replace all references to [ID]MEM_ADDR with conversion macros.
1998-02-06 * config/d10v/tm-d10v.h (D10V_CONVERT_IADDR_TO_RAW,Andrew Cagney1-72/+51
D10V_CONVERT_DADDR_TO_RAW): Define. * d10v-tdep.c (d10v_push_arguments): Re-write. Pass arguments in registers, regardless of their size, when they fit.
1998-02-06o Update GDB to match changes to d10v abi (ARG1 in r0 instead of r2).Andrew Cagney1-108/+94
o Fix code assuming that host/target were both bigendian. o Replace d10v push dummy frame code with version using new common generic generic version. o Find/fix more cases where a value needs to be translated to/from instruction (IMAP) or data (DMAP) spaces.
1998-01-23 * config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".Fred Fish1-12/+55
(TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp. (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp. (d10v_write_fp, d10v_read_fp): Add prototypes. * symtab.c (decode_line_1): Remove assignment of sals[0].pc field. * symfile.c (simple_overlay_update, simple_overlay_update_1): Ignore the size of overlay sections. This check is redundant anyway. * printcmd.c (print_frame_args): Ditto. * valops.c (value_fetch_lazy): Ditto. * values.c (unpack_long): Ditto. * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs, d10v_init_extra_frame_info): Fix some minor bugs so the finish command works properly. (show_regs): Change num1 and num2 types from "long long" to "LONGEST". (d10v_read_fp, d10v_write_fp): New functions. (d10v_push_arguments): Remove unneeded assigns to "val" and "contents". (d10v_push_arguments): Fix for pointers and structs. (d10v_extract_return_value): Fix for pointers and chars.
1997-03-24 * remote.c (target_resume_hook, target_wait_loop_hook): NewStan Shebs1-39/+76
globals. (remote_resume, remote_wait): Use them. * d10v-tdep.c: Set the above hooks. (tracesource): New GDB variable, controls source display in traces. (display_trace): Find and display source line if requested. (trace_info): Mention empty trace buffer if appropriate. (tdisassemble_command): Robustify argument handling.
1996-12-22Sun Dec 22 15:52:25 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-1/+1
* d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where some breakpoints weren't being set.
1996-12-06 * d10v-tdep.c: Add support for examination and interpretationStan Shebs1-8/+303
of instruction trace buffer. (trace, untrace, info trace, tdisassemble): New commands.
1996-11-21Wed Nov 20 19:09:16 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-0/+11
* infcmd.c (do_registers_info): Call val_print with the virtual buf instead of the raw buf. Needed for REGISTER_CONVERT to work with non-floating point regs. start-sanitize-d10v * d10v-tdep.c (d10v_skip_prologue): If we have line debugging information, then the end of the prologue should the first assembly instruction of the first source line. * values.c (value_from_longest): Put in D10V call to fix up address pointers. * config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified. (REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM. (REGISTER_CONVERTIBLE): Make PC and SP convertible. (REGISTER_CONVERT_TO_VIRTUAL): Define. (REGISTER_CONVERT_TO_RAW): Define. (D10V_MAKE_DADDR): Define. (D10V_MAKE_IADDR): Define. end-sanitize-d10v
1996-11-07Thu Nov 7 15:19:08 1996 Martin M. Hunt <hunt@pizza.cygnus.com>Martin Hunt1-25/+62
* d10v-tdep.c: Fix some problems with inferior function calls. * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be a pointer to the dummy's stack instead of just a flag.