aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
AgeCommit message (Collapse)AuthorFilesLines
2000-02-15AIX 4.3 changes.Kevin Buettner1-34/+74
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-1/+2
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-3/+0
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-575/+654
1999-06-14import gdb-1999-06-14 snapshotJason Molenda1-1/+1
1999-06-07import gdb-1999-06-07 snapshotJason Molenda1-1/+1
1999-05-25import gdb-1999-05-25 snapshotJason Molenda1-1/+1
1999-05-05import gdb-19990504 snapshotStan Shebs1-0/+10
1999-04-26import gdb-19990422 snapshotStan Shebs1-67/+59
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1800
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1800/+0
1999-02-01Allow PPC users to select which PPC/RS6000 variant they're debuggingJim Blandy1-2/+381
at run-time. At the moment, the only thing this affects is the set of registers visible. * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call to the function rs6000_register_name. (rs6000_register_name): Include extern decl. (NUM_REGS): Bump to 183. What's the right way to do this? (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from FIRST_SP_REGNUM, LAST_SP_REGNUM. (REGISTER_BYTES): Recompute this. * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with some concomitant formatting changes. #include "gdbcmd.h", so we can define commands here. (struct variant): New structure. (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES, PPC_32_OEA_SPR_NAMES, num_registers): New macros. (register_names_rs6000, register_names_uisa, register_names_403, register_names_403GC, register_names_505, register_names_860, register_names_601, register_names_602, register_names_603, register_names_604, register_names_750, variants): New variables. (rs6000_register_name, install_variant, find_variant_by_name, install_variant_by_name, list_variants, show_current_variant, set_processor, show_processor): New functions. (_initialize_rs6000_tdep): Define new commands `set processor' and `show processor', and call install_variant_by_name to set the default variant. * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with some concomitant formatting changes. * configure.in: Accept the `--with-cpu' flag, to specify a default processor variant. * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set by configure's `--with-cpu' flag. * config.in, configure: Regenerated.
1998-12-12CARP: Mechanism to replace EXTRA_FRAME_INFO.Andrew Cagney1-49/+111
Add two pointers (saved_regs, extra_info) to struct frame_info. Introduce new macro FRAME_INIT_SAVED_REGS which replaces FRAME_FIND_SAVED_REGS. Document. Use in mn10300 and rs6000 targets. Fix side effects on ALPHA, MIPS, Z8K and SPARC targets.
1998-12-07* rs6000-tdep.c (pop_frame): Correctly find the registers saved inJim Blandy1-13/+19
the stack frame. Their offset from the previous stack frame is in fdata.gpr_offset and fdata.fpr_offset, not fdata.offset. (gdb.base/return.exp) * config/rs6000/tm-rs6000.h: Doc fixes.
1998-11-27CARP:Andrew Cagney1-7/+4
STEP_SKIPS_DELAY - add STEP_SKIPS_DELAY_P and rewrite use removing #ifdef's. NO_SINGLE_STEP - replace with SOFTWARE_SINGLE_STEP_P + SOFTWARE_SINGLE_STEP. Replace global variable one_stepped with static singlestep_breakpoints_inserted_p. Cleanup infrun.c (scary!).
1998-11-26* rs6000-tdep.c (rs6000_breakpoint_from_pc): Change big_breakpointAndrew Cagney1-2/+2
and little_breakpoint to char[] from char*. * remote-array.c (array_insert_breakpoint): Change bp_addr to CORE_ADDR type.
1998-11-24CARP: *BREAKPOINT*Andrew Cagney1-0/+19
Convert mn10300, MIPS and powerpc/rs6000 targets to use BREAKPOINT_FROM_PC Delete global variable memory_breakpoint_size. Use BREAKPOINT_FROM_PC instead.
1998-10-10 * rs6000-tdep.c: Don't include tm.h twice.Mark Alexander1-1/+0
1998-10-08 * rs6000-tdep.c (get_saved_register): Define only ifMark Alexander1-0/+2
USE_GENERIC_DUMMY_FRAMES is defined.
1998-09-23 Patch from Dawn Perchik <dawn@cygnus.com>:Mark Alexander1-6/+101
* rs6000-tdep.c (pop_frame): Handle generic dummy frames. (push_arguments): Likewise. (frame_saved_pc): Likewise. (rs6000_frame_chain): Likewise. (ppc_push_return_address): New function. (get_saved_register): New function. * config/powerpc/tm-ppc-eabi.h: Add generic dummy frame macros.
1998-06-24Tue Jun 23 17:32:26 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-29/+43
* rs6000-tdep.c (pop_dummy_frame): use memcpy. (push_arguments): use memset. (various other places): fix up indentation and long lines.
1997-09-23 * mips-tdep.c (mips_push_arguments): Tweak alignment of registerPeter Schauer1-1/+17
value if the remaining length of a non-integral argument is smaller than the register size for big-endian non-EABI mode. * rs6000-tdep.c (branch_dest): Handle return from signal handler function via sigreturn kernel call.
1997-08-15 * infrun.c (wait_for_inferior): Add the symbols for anyPeter Schauer1-128/+18
newly loaded objects upon a TARGET_WAITKIND_LOADED event. Rewrite code which determines the TOC address for calling functions in the inferior under AIX. * rs6000-nat.c (find_toc_address): New function to determine the required TOC address from a function address. (_initialize_core_rs6000): Set up find_toc_address_hook to point to find_toc_address. (xcoff_relocate_symtab, xcoff_relocate_core): Remove add_text_to_loadinfo calls. (exec_one_dummy_insn): Change pid and status to int to get rid of compiler warnings. (xcoff_relocate_symtab): Cast ldi to `int *' when passing it to ptrace to get rid of compiler warnings. * rs6000-tdep.c: Add definition for find_toc_address_hook. (rs6000_fix_call_dummy): If find_toc_address_hook is non zero, patch TOC address load code in the call dummy with the value returned from find_toc_address_hook. (struct loadinfo, loadinfo, loadinfolen, loadinfotextindex, xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo, add_text_to_loadinfo, find_toc_address): Remove. (_initialize_rs6000_tdep): Remove initialization of coff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook. * xcoffread.c (coff_add_toc_to_loadinfo_hook, xcoff_init_loadinfo_hook): Remove. (struct coff_symfile_info): Add toc_offset field. (scan_xcoff_symtab): Record toc_offset value in toc_offset field instead of calling xcoff_add_toc_to_loadinfo_hook. (get_toc_offset): New function to return the value of the toc_offset field for an object file. (xcoff_initial_scan): Remove call of xcoff_init_loadinfo_hook. * xcoffsolib.h (add_text_to_loadinfo): Remove declaration. * config/rs6000/tm-rs6000.h: Add declarations for find_toc_address_hook and get_toc_offset.
1997-05-15 * config/rs6000/tm-rs6000.h (SIG_FRAME_LR_OFFSET): Define.Peter Schauer1-7/+28
* rs6000-tdep.c (frameless_function_invocation): Mark frames with a zero PC as frameless to improve backtraces from core dumps caused by dereferencing a NULL function pointer. (frameless_function_invocation, frame_saved_pc, rs6000_frame_chain): Handle frameless functions interrupted by a signal. * sparc-tdep.c (sparc_init_extra_frame_info, sparc_frame_saved_pc): Handle frameless functions interrupted by a signal.
1997-04-19 * config/powerpc/tm-ppc-aix4.h, config/rs6000/tm-rs6000-aix4.hPeter Schauer1-2/+3
(DONT_RELOCATE_SYMFILE_OBJFILE): Removed. * xcoffsolib.h (struct vmap): Add new members tvma, toffs and dvma, remove tadj. * exec.c (bfdsec_to_vmap): Initialize new vmap members, initialize tstart and dstart with section VMA. * rs6000-nat.c (vmap_symtab): Relocate relative to the VMA in the object file. (vmap_ldinfo, xcoff_relocate_core): Adjust tstart by section offset of the text section, remove DONT_RELOCATE_SYMFILE_OBJFILE hack. (vmap_exec): Relocate relative to the VMA in the object file, relocate .bss section as well. (xcoff_relocate_core): No longer adjust section addresses by VMA. * rs6000-tdep.c (find_toc_address): Change type of tocbase to CORE_ADDR. * xcoffread.c (secnum_to_bfd_section): New routine to get BFD section from CS section number. (scan_xcoff_symtab): Make toc_offset section relative. * symtab.c (total_number_of_methods): Avoid core dump if baseclass type is still undefined.
1996-08-25 * rs6000-tdep.c: Fix typo in comment.Fred Fish1-1/+1
* valops.c (call_function_by_hand): Set using_gcc to 2 for code compiled without -g, per comment in code. * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment. * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment. * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment. * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment. * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment. * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s. (STACK_ALIGN): Add comment, move to be with other associated macros, and document. * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s. (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS. * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s. * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS. (PUSH_ARGUMENTS): Enclose args in ()'s.
1996-08-17 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.Stan Shebs1-3/+5
* config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments to function, declare function correctly.
1996-07-30 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".Fred Fish1-5/+9
(branch_dest): Remove unused variable "offset". (pop_dummy_frame): Add prototype and make static. (push_arguments): Guard against using len uninitialized. (push_arguments): Guard against using arg uninitialized. (frame_saved_pc): Remove unused variable "frameless". (free_loadinfo): Ifdef out unused function.
1996-07-30 * rs6000-tdep.c (skip_prologue): Add missing parens aroundFred Fish1-2/+2
operands of logical-or so that first operand does not bind to previous logical-and.
1996-07-26See gdb ChangeLog entry with header:Fred Fish1-1/+1
Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com> for a rather huge set of changes. I was going to put them here, but it made cvs dump core. :-(
1996-05-06Do not do XCOFF hoooks for ELF systemsMichael Meissner1-9/+10
1996-05-02 * Makefile.in (rs6000-nat.o): Dependant on xcoffsolib.h.Fred Fish1-0/+15
* config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ... * config/rs6000/rs6000.mt (TDEPFILES): ... to here * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize. (solib_info): Call xcoff_relocate_symtab via the hook. (sharedlibrary_command): Ditto. * xcoffread.c: Remove all FAKING_RS6000 comments and defines. (xcoff_add_toc_to_loadinfo_hook): Define and initialize here. (xcoff_init_loadinfo_hook): Define and initialize here. (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook. (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook. * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func. * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook. * rs6000-nat.c (_initialize_core_rs6000): Add initialization of xcoff_relocate_symtab_hook.
1995-12-01fix typoMichael Meissner1-1/+1
1995-11-30 * alpha-tdep.c, c-exp.y, h8500-tdep.c, f-exp.y, f-valprint.c,Per Bothner1-7/+9
findvar.c, hppa-tdep.c, infcmd.c, language.c, printcmd.c, rs6000-tdep.c, symmisc.c, symtab.c: Add check_typedef/CHECK_TYPEDEF as needed.
1995-10-15 * rs6000-tdep.c: Don't include a.out.h, improve some formatting.Stan Shebs1-41/+38
1995-09-23 * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zeroPeter Schauer1-1/+2
correctly.
1995-09-10Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>Michael Tiemann1-2/+12
* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the simulator. FIXME. * rs6000-tdep.c (push_dummy_frame): Calculate the correct link register offset from the current frame (don't assume it is always 8). (push_dummy_frame): Add comment about having only 4096 bytes of stack space in the simulator (by default). * remote-sim.c (gdbsim_create_inferior): Call `add_text_to_loadinfo' so that gdb can find TOC entries when calling functions in the inferior. With this changes, it is now possible to correctly call inferior functions in the PPC simulator.
1995-08-12 * configure.in: Recognize aix4 specially as some aspectsJeff Law1-2/+41
of aix4 need different handling than aix3. * configure: Updated. * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: New files specific to aix4 support on the power pc. * config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do not defined. The aix4 specific target files will do that. * config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files specific to aix4 support on the rs6000. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't do the conversion if the pointer is not a magic aix function pointer. * rs6000-tdep.c: Include objfiles.h and symtab.h. (is_magic_function_pointer): New function. * rs6000-tdep.c (skip_prologue): Refine check for frameless functions. Handle b .+4 emitted by aix4 compilers. Only allow one load of a minimal toc pointer. Handle aix4 compiler's code for alloca. * rs6000-tdep.c (find_toc_address): Report an error if no toc was found rather than possibly core dumping. * partial-stab.h: Handle extra field generated by the aix4 compiler for enumerations. * stabsread.c (read_enum_type): Likewise.
1995-08-12 * rs6000-tdep.c (extract_return_value): Fix returning of valuesPeter Schauer1-2/+9
whose length is less than the register size for big endian targets.
1995-08-02Update FSF address.Fred Fish1-1/+1
1995-07-30 * rs6000-tdep.c (frame_saved_pc): Check for signal handler callerPeter Schauer1-14/+35
before trying to determine the start of the function. (skip_prologue): Skip subroutine call which might save the floating point registers only if it is within the first three instructions. Reinstate setting of alloca_reg if setup of a gcc frame pointer is found. (frame_get_cache_fsr): Use new fields in rs6000_framedata.
1995-07-27More V.4/AIX fixesMichael Meissner1-58/+53
1995-07-27Better support V.4 calling sequences.Michael Meissner1-227/+184
1995-07-25Change aix_framedata -> rs6000_framedataMichael Meissner1-9/+9
1995-06-06Fix some little endian problemsMichael Meissner1-2/+17
1995-05-13 * rs6000-tdep.c (find_toc_address): Revise comment.Jim Kingdon1-3/+5
* symfile.c, symfile.h (init_psymbol_list): New function; consolidate duplicated copies from os9kread.c, dbxread.c and dwarfread.c. * defs.h: Declare info_verbose. * xcoffread.c: Extensive changes to support psymtabs.
1995-04-13Do not use unprotected ANSI/ISO prototypes.Michael Meissner1-1/+2
1995-03-29 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR inPeter Schauer1-2/+12
the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)' tests.
1995-03-03 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments toJim Kingdon1-1/+1
store_address.
1995-03-03Support saving saved regs with multiple stores in addition to store multiple ↵Michael Meissner1-9/+12
instructions in prologue.