summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* 2003-09-30 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-305-13/+20
| | | | | | | * remote-vxsparc.c (vx_read_register): Replace bzero with memset. * remote-vxmips.c (vx_read_register): Ditto. * remote-vx68.c (vx_read_register): Ditto. * gnu-nat.c (inf_validate_procs): Ditto.
* *** empty log message ***gdbadmin2003-09-301-1/+1
|
* * infcall.c (call_function_by_hand): Fix build failureJoel Brobecker2003-09-292-1/+6
| | | | introduced in the previous change to this file.
* 2003-09-29 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-292-6/+4
| | | | | * gdbint.texinfo (Target Architecture Definition): Delete documentation for NEED_TEXT_START_END.
* 2003-09-29 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-292-3/+13
| | | | | | * gdbint.texinfo (Target Architecture Definition): Rename NPC_REGNUM to DEPRECATED_NPC_REGNUM. Add cross reference to TARGET_WRITE_PC.
* 2003-09-29 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-292-0/+9
| | | | * NEWS: Mention Objective-C.
* * ChangeLog: Correct an entry command.exp -> commands.exp.Daniel Jacobowitz2003-09-292-2/+18
| | | | | * gdb.base/commands.exp (bp_deleted_in_command_test) (temporary_breakpoint_commands): Check noargs.
* 2003-09-29 Jerome Guitton <guitton@act-europe.fr>Jerome Guitton2003-09-292-2/+10
| | | | | | | * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to test if the register has been saved on the stack. (arm_scan_prologue_cache): When analysing the instruction "str lr, [sp, #-4]", save the address where lr has been stored.
* *** empty log message ***gdbadmin2003-09-291-1/+1
|
* 2003-09-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-2812-85/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | * frame.c (frame_read_unsigned_register): Delete function. * frame.h (frame_read_unsigned_register): Delete declaration. * sparc-tdep.c (sparc_init_extra_frame_info): Use get_frame_register_unsigned. (sparc_frame_saved_pc, sparc_pop_frame): Ditto. * m68hc11-tdep.c (m68hc11_print_register): Ditto. * d10v-tdep.c (d10v_print_registers_info): Ditto. * frame.h (frame_read_register): Delete declaration. * frame.c (frame_read_register): Delete function. * arch-utils.c (legacy_register_to_value): Use get_frame_register. * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto. * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto. * mips-tdep.c (mips_register_to_value): Ditto. * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto. * d10v-tdep.c (d10v_print_registers_info): Ditto. * frame.c (frame_read_signed_register): Delete function. (frame_read_unsigned_register): Update comments. * frame.h (frame_read_signed_register): Delete declaration. * h8300-tdep.c (h8300_print_register): Use get_frame_register_signed. * m68hc11-tdep.c (m68hc11_print_register): Ditto.
* 2003-09-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-284-3/+13
| | | | | | | * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK): Rename VALUE_RETURNED_FROM_STACK. * infcmd.c (print_return_value): Update. * infcall.c (call_function_by_hand): Update.
* * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): AddMark Kettenis2003-09-2817-46/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | regcache argument and reverse the order of the other two arguments. Remove local regcache variable. Determine architecture from REGCACHE. Update comments. * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and reverse the order of the other two arguments. Remove local regcache variable. Determine architecture from REGCACHE. Update comments. * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust prototypes. Update comments. * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust comment. * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers): Update. * go32-nat.c (fetch_register, go32_fetch_registers): Update. * i386-interix-nat.c (supply_fpregset): Update. * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update. * i386-nto-tdep.c (i386nto_supply_fpregset): Update. * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update. * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update. * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers): Update. * i386obsd-tdep.c (fetch_core_registers): Update. * i386v4-nat.c (supply_fpregset): Update. * x86-64-linux-nat.c (supply_fpregset): Update. * x86-64-linux-tdep.c (fetch_core_registers): Update.
* *** empty log message ***gdbadmin2003-09-281-1/+1
|
* * i386-tdep.h: Put opaque declarations in alphabeticalMark Kettenis2003-09-276-175/+377
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | order. Remove spurious whitespace. (struct gdbarch_tdep): add st0_regnum and mm0_regnum members. (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes. * i386-tdep.c (MM0_REGNUM): Remove define. (i386_mmx_regnum_p): Add gdbarch argument. (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument. Rewrite using new macro definitions for FPU/SSE registers. (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro definitions from i387-tdep.h. (i386_register_name): Update. (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use new macro definitions for FPU/SSE registers. (i386_extract_return_value): Determine whether floating-point registers are present by examining REGCACHE's architecture. (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE. Use new macro definitions for FPU/SSE registers. (i386_register_type): Update. (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro definitions for FPU registers. Use REGCACHE's architecture to determine the appropriate register numbers. (i386_pseudo_register_read, i386_pseudo_register_write, i386_register_reggroup_p): Update. (i386_gdbarch_init): Initialize TDEP->st0_regnum and TDEP->mm0_regnum. * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines. (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave, i387_fill_fxsave): Change type of fsave/fxsave argument from `char *' to `void *'. * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR, i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR, i387_supply_fxsave, i387_fill_fxsave): Update to use new macro definitions for FPU/SSE registers. (FXSAVE_MXCSR_ADDR): New define. * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and TDEP->mm0_regnum. (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines. (I387_ST0_REGNUM): Define.
* * regcache.h (get_regcache_arch): New prototype.Mark Kettenis2003-09-273-0/+15
| | | | * regcache.c (get_regcache_arch): New function.
* * x86-64-tdep.c (x86_64_store_return_value): Remove spuriousMark Kettenis2003-09-272-1/+4
| | | | whitespace.
* * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):Mark Kettenis2003-09-272-4/+7
| | | | Initialize using ARRAY_SIZE.
* 2003-09-27 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-2713-13/+29
| | | | | | | | | | | | | | | | * arch-utils.c (deprecated_init_frame_pc_default): Rename "init_frame_pc_default". * arch-utils.h (deprecated_init_frame_pc_default): Update. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sh64-tdep.c (sh64_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * ns32k-tdep.c (ns32k_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
* *** empty log message ***gdbadmin2003-09-271-1/+1
|
* * regset.h: New file.Mark Kettenis2003-09-263-0/+47
| | | | * Makefile.in (regset_h): Add.
* *** empty log message ***gdbadmin2003-09-261-1/+1
|
* 2003-09-25 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-2518-180/+190
| | | | | | | | | | * frame.h (deprecated_frame_saved_regs): Rename get_frame_saved_regs. * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update. * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update. * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update. * s390-tdep.c, sh64-tdep.c, stack.c: Update. * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
* 2003-09-25 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-253-0/+85
| | | | | | | | * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions, and Java. * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and arm*-*-* do not use the new frame code.
* 2003-09-25 David Carlton <carlton@kealia.com>David Carlton2003-09-257-54/+59
| | | | | * c-exp.y: Remove 'register' declarations. * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
* 2003-09-25 David Carlton <carlton@kealia.com>David Carlton2003-09-2511-103/+288
| | | | | | | | | | | | | | | | | | | | | | | | * c-exp.y: Include cp-support.h. Add qualified_type. (yylex): Delete nested type hack; add comments. * cp-namespace.c (cp_lookup_nested_type): New function. * cp-support.h: Declare cp_lookup_nested_type. * eval.c (evaluate_subexp_standard): Call value_aggregate_elt instead of value_struct_elt_for_reference. * valops.c: Include cp-support.h. (value_aggregate_elt): New function. (value_namespace_elt): Ditto. (value_struct_elt_for_reference): Make static. * value.h: Delete declaration of value_struct_elt_for_reference; add declaration for value_aggregate_elt. * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h). (valops.o): Ditto. 2003-09-25 David Carlton <carlton@kealia.com> * gdb.cp/namespace.exp: Tweak comments. Add non-quoted versions of some print tests, where appropriate. Add tests for C::D::cd, E::ce, F::cXfX, G::XgX. * gdb.cp/namespace.cc: Add XgX, cXfX, ce.
* * lib/java.exp (java_init): Import target_alias before using it.Richard Earnshaw2003-09-252-0/+5
|
* * stack.c: Include "reggroups.h".Daniel Jacobowitz2003-09-253-2/+10
| | | | | (frame_info): Only display registers in all_reggroup. * Makefile.in (stack.o): Update dependencies.
* 2003-09-25 David Carlton <carlton@kealia.com>David Carlton2003-09-252-1/+4
| | | | * gdb.base/corefile.exp: Delete obsolete setup_xfail.
* * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" andJerome Guitton2003-09-252-3/+32
| | | | | "add ip, sp #n" in the prologue. (arm_scan_prologue): Ditto.
* * MAINTAINERS (write after approval): Add myself.Jerome Guitton2003-09-252-0/+5
|
* * m68k-tdep.c: Include "dwarf2-frame.h".Andreas Schwab2003-09-253-2/+13
| | | | | (m68k_gdbarch_init): Add the DWARF CFI frame unwinder. * Makefile.in (m68k-tdep.o): Update dependencies.
* * sh-tdep.c (struct frame_extra_info): Remove.Corinna Vinschen2003-09-252-594/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct sh_frame_cache): New structure. (GET_SOURCE_REG): New macro extracting source register of an opcode. (GET_TARGET_REG): Ditto but target register. (GET_PUSHED_REG): Remove. (IS_MOV_ARG_TO_REG): New macro. (IS_MOV_ARG_TO_IND_R14): New macro. (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro. (IS_MOVW_PCREL_TO_REG): New macro. (IS_MOVL_PCREL_TO_REG): New macro. (IS_SUB_REG_FROM_SP): New macro. (IS_ARG_MOV): Remove. (IS_MOV_TO_R14): Remove. (IS_RESTORE_FP): New macro. (IS_RTS): New macro. (IS_LDS): New macro. (IS_MOV_FP_SP): New macro. (IS_ADD_REG_TO_FP): New macro. (IS_ADD_IMM_FP): New macro. (sh_skip_prologue_hard_way): Remove. (sh_saved_pc_after_call): Remove. (sh_frame_chain): Remove. (sh_find_callers_reg): Remove. (sh_nofp_frame_init_saved_regs): Remove. (sh_fp_frame_init_saved_regs): Remove. (sh_init_extra_frame_info): Remove. (sh_analyze_prologue): New function. (sh_skip_prologue): Remove deprecated code. Rely on new function sh_analyze_prologue when after_prologue fails. (sh_frame_saved_pc): Remove. (sh_alloc_frame_cache): New function. (sh_frame_cache): Ditto. (sh_frame_prev_register): Ditto. (sh_frame_this_id): Ditto. (sh_frame_unwind): New structure defining the heuristic frame sniffer interface. (sh_frame_sniffer): New function. (sh_unwind_sp): Ditto. (sh_unwind_pc): Ditto. (sh_unwind_dummy_id): Ditto. (sh_frame_base_address): Ditto. (sh_frame_base): New structure defining new frame base code. (sh_in_function_epilogue_p): New function. (sh_gdbarch_init): Restructure and simplify to eliminate deprecated code and to call all new code instead. Initialize dwarf2 and heuristic frame sniffer.
* * parser-defs.h (struct exp_descriptor): New definition, containingPaul N. Hilfinger2003-09-2516-33/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | language-specific info for printing, prefixifying, dumping, and evaluating expressions. (exp_descriptor_standard): Declare new variable. (print_subexp): Make global and declare here (from expprint.c). (dump_subexp): Ditto. (dump_subexp_body_standard): Declare. (operator_length_standard): Declare. (op_name_standard): Declare. (print_subexp): Declare. (print_subexp_standard): Declare. * language.h (struct language_defn): Add la_exp_desc field to hold pointer to table for language-specific operators. Remove evaluate_exp field, which is now in struct exp_descriptor. * parse.c (operator_length): Move most code to new operator_length_standard function. Use language-specific information. (operator_length_standard): New function taking most code from operator_length. (exp_descriptor_standard): New constant. * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0 and OP_EXTENDED_LAST. * expprint.c (print_subexp): Use language-specific print_subexp. Make global; remove static declaration. Move most code to print_subexp_standard. (print_subexp_standard): New function, containing code formerly in print_subexp. (op_name): Add expression to argument signature. Use langauge-specific op_name. Move most code to op_name_standard. (op_name_standard): New function, containing code formerly in op_name. (dump_subexp): Use new version of op_name function. Use language-specific dump_subexp_body, and move most existing code to dump_subexp_body_standard. (dump_raw_expression): Use new op_name interface. (dump_subexp_body): Move most code to dump_subexp_body_standard. (dump_subexp_body_standard): New function, containing code formerly in dump_subexp_body. * language.c (unknown_language): Add default la_exp_desc field and remove evaluate_exp field. (auto_language): Ditto. (local_language): Ditto. * f-lang.c (f_language_defn): Ditto. * c-lang.c (c_language_defn): Ditto. (cplus_language_defn): Ditto. (asm_language_defn): Ditto. (minimal_language_defn): Ditto. * p-lang.c (pascal_language_defn): Ditto. * m2-lang.c (m2_language_defn): Ditto. * objc-lang.c (objc_language_defn): Ditto. * jv-lang.c (exp_descriptor_java): New variable, containing Java-specific expression evaluator. (java_language_defn): Add la_exp_desc field and remove evaluate_exp field. * scm-lang.c (exp_descriptor_scm): New variable, containing Scheme-specific expression evaluator. (scm_language_defn): Add la_exp_desc field and remove evaluate_exp field. * objc-lang.c (print_object_command): Take evaluate_exp from the la_exp_desc field. * Makefile.in (eval.o): Add dependency on parser-defs.h. * eval.c: Include parser-defs.h for the full declaration of la_exp_desc's type. (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
* *** empty log message ***gdbadmin2003-09-251-1/+1
|
* * parser-defs.h (operator_length): Declare.Paul N. Hilfinger2003-09-245-159/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * parse.c (length_of_subexp): Use operator_length to get operator lengths and arities for operators. Move most code to new operator_length function. (operator_length): New function absorbing most code from length_of_subexp. (prefixify_subexp): Remove large case and use operator_length instead. (parse_exp_1): Use renamings: dump_prefix_expression => dump_raw_expression and dump_postfix_expression => dump_prefix_expression. * expression.h (dump_prefix_expression): Rename to ... (dump_raw_expression): New name. (dump_postfix_expression): Rename to ... (dump_prefix_expression): New name. * expprint.c (dump_subexp): Make global. Add comment. Move most existing code to dump_subexp_body. (dump_subexp_body): New function. (dump_prefix_expression): Rename to dump_raw_expression. Remove attempt to print the expression via print_expression: it can't work before the expression is prefixified. (dump_raw_expression): Renamed from dump_prefix_expression. (dump_postfix_expression): Rename to dump_prefix_expression, since that's what it does. Remove 'note' parameter, since this routine must be used on prefixified expression. (dump_prefix_expression): Renamed from dump_postfix_expression.
* *** empty log message ***gdbadmin2003-09-241-1/+1
|
* 2003-09-23 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2003-09-232-0/+10
| | | | | * gdb.base/selftest.exp: Accomodate more instruction reordering weirdness.
* * dwarf2read.c (read_array_type): When building the type for anJim Blandy2003-09-232-2/+15
| | | | | | array of unspecified length, make sure to choose the upper bound so that the array's total length comes out to be zero --- that's how we represent such arrays.
* *** empty log message ***gdbadmin2003-09-231-1/+1
|
* 2003-09-22 Michael Chastain <mec@shout.net>Michael Chastain2003-09-222-2/+6
| | | | * gdbint.texinfo (Testsuite Organization): Change gdb.c++ to gdb.cp.
* 2003-09-22 Michael Chastain <mec@shout.net>Michael Chastain2003-09-222-1/+5
| | | | * MAINTAINERS: Rename gdb.c++ to gdb.cp.
* 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-09-222-1/+10
| | | | | * top.c (quit_force): Fix indirect call to quit_target so a struct qt_args pointer is passed.
* 2003-09-22 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-228-23/+15
| | | | | | | | | | | | | | | * arch-utils.h (init_frame_pc_noop): Delete declaration. * arch-utils.c (init_frame_pc_noop): Delete function. * mn10300-tdep.c (mn10300_gdbarch_init): Do not set "init_frame_pc". * mips-tdep.c (mips_gdbarch_init): Ditto. * i386-interix-tdep.c (i386_interix_init_abi): Ditto. * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete declaration. (DEPRECATED_INIT_FRAME_PC): Delete macro. * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete declaration. (DEPRECATED_INIT_FRAME_PC): Delete macro.
* Fix targ_ops declaration problem.Anthony Green2003-09-222-1/+5
|
* Fix typos.Anthony Green2003-09-222-3/+7
|
* *** empty log message ***gdbadmin2003-09-221-1/+1
|
* * gdbint.texinfo (Target Architecture Definition): DocumentMark Kettenis2003-09-212-3/+21
| | | | stabs_argument_has_addr.
* 2003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-2139-118/+11
| | | | | | | | | | | | | * breakpoint.c: Eliminate ARGSUSED. * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto. * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto. * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto. * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto. * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto. * remote.c, sol-thread.c, source.c, stabsread.c: Ditto. * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto. * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto. * wince.c, remote-vx.c: Ditto.
* *** empty log message ***gdbadmin2003-09-211-1/+1
|
* 2003-09-20 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-09-207-22/+33
| | | | | | | * cli/cli-script.c: Remove "register" attributes. * config/pa/tm-hppa.h: Ditto. * cli/cli-decode.c: Ditto. * cli/cli-cmds.c: Ditto.