aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2003-05-21*** empty log message ***gdbadmin1-1/+1
2003-05-20 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to functionKevin Buettner2-12/+20
register_ptrace_addr(). Fix all callers.
2003-05-20 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): UpdateAndreas Schwab5-38/+66
dependencies. * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the end. * m68klinux-tdep.c (m68k_linux_init_abi): New function. (_initialize_m68k_linux_tdep): New function. (m68k_linux_frame_saved_pc): Make static. (m68k_linux_extract_return_value): Likewise. (m68k_linux_store_return_value): Likewise. (m68k_linux_extract_struct_value_address): Likewise. * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Remove. (DEPRECATED_STORE_RETURN_VALUE): Remove. (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove. (DEPRECATED_FRAME_SAVED_PC): Remove.
2003-05-202003-05-20 David Carlton <carlton@math.stanford.edu>David Carlton2-0/+36
* gdb.c++/namespace1.cc: Actually do 'cvs add' before committing this time.
2003-05-20Fix regset numbering.Kris Warkentin2-9/+9
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton7-0/+291
* gdb.c++/rtti.exp: New file, containing tests for PR c++/488. * gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto. 2003-05-19 David Carlton <carlton@bactrian.org> * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton11-17/+399
Partial fix for PR c++/827. * cp-support.h: Include symtab.h. Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace. * cp-namespace.c: Update contributors. (cp_lookup_symbol_nonlocal): New. (lookup_namespace_scope, cp_lookup_symbol_namespace) (lookup_symbol_file): Ditto. * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal. * block.h: Declare block_scope, block_using, block_global_block. * block.c (block_scope): New. (block_using, block_global_block): Ditto. * Makefile.in (cp_support_h): Depend on symtab_h. * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc. 2003-05-19 David Carlton <carlton@bactrian.org> * gdb.c++/namespace.exp: Add namespace scope and anonymous namespace tests. Bump copyright date. * gdb.c++/namespace.cc: Add anonymous namespace and namespace C. (main): Call C::D::marker2. * gdb.c++/namespace1.cc: New file.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton14-59/+219
* language.h (struct language_defn): Add 'la_value_of_this' and 'la_lookup_symbol_nonlocal' members. * symtab.h: Declare basic_lookup_symbol_nonlocal, lookup_symbol_static, lookup_symbol_global, lookup_symbol_aux_block. * symtab.c (lookup_symbol_aux): Call language hooks to determine if we should search fields of this and how to do static/global lookup. (lookup_symbol_aux_block): Make extern. (basic_lookup_symbol_nonlocal): New. (lookup_symbol_static, lookup_symbol_global): Ditto. * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and 'la_lookup_symbol_nonlocal' members. * c-lang.c (c_language_defn, cplus_language_defn) (asm_language_defn, minimal_language_defn): Ditto. * jv-lang.c (java_language_defn): Ditto. * language.c (unknown_language_defn, auto_language_defn) (local_language_defn): Ditto. * m2-lang.c (m2_language_defn): Ditto. * objc-lang.c (objc_language_defn): Ditto. * scm-lang.c (scm_language_defn): Ditto. * f-lang.c (f_language_defn): Ditto, and include value.h as well. * p-lang.c (pascal_language_defn): Ditto for both. * Makefile.in (f-lang.o): Depend on value_h. (p-lang.o): Ditto.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton4-16/+36
* block.h: Declare block_static_block. * block.c (block_static_block): New. * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to lookup_symbol_aux_local, calling block_static_block instead. (lookup_symbol_aux_local): Delete 'static_block' argument.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton2-46/+4
* symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
2003-05-20*** empty log message ***gdbadmin1-1/+1
2003-05-192003-05-19 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2-1/+6
* x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix register numbers mapping.
2003-05-19* symtab.c (completion_list_objc_symbol): New function.Adam Fedor2-10/+119
(make_symbol_completion_list): Use it to add ObjC symbols when looking though the list. (language_search_unquoted_string): New function. (make_file_symbol_completion_list): Use it.
2003-05-19*** empty log message ***gdbadmin1-1/+1
2003-05-18 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): UpdateAndreas Schwab5-52/+84
dependencies. * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define as m68k_linux_extract_return_value. (DEPRECATED_STORE_RETURN_VALUE): Define as m68k_linux_store_return_value. (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as m68k_linux_extract_struct_value_address. * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use get_next_frame, get_frame_base, get_frame_pc. (m68k_linux_frame_saved_pc): Use get_frame_base. (m68k_linux_extract_return_value): New function. (m68k_linux_store_return_value): New function. (m68k_linux_extract_struct_value_address): New function. * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
2003-05-18 * c-exp.y (typebase): Remove duplicate occurence ofAndreas Schwab2-5/+9
`SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead of lookup_signed_typename.
2003-05-18* dwarf2loc.c (find_location_expression): Change type of secondMark Kettenis2-3/+10
argument to `size_t *'. (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t for size variable.
2003-05-182003-05-18 David Carlton <carlton@bactrian.org>David Carlton2-35/+50
* symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to 'linkage_name'. Add comment. (lookup_symbol_aux_local): Rename 'mangled_name' argument to 'linkage_name'. (lookup_symbol_aux_block, lookup_symbol_aux_symtabs) (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms) (lookup_block_symbol): Ditto.
2003-05-18*** empty log message ***gdbadmin1-1/+1
2003-05-172003-05-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney56-121/+196
* gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES. * gdbarch.h, gdbarch.c: Re-generate. * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference. * TODO (REGISTER_BYTES): Delete reference. * alpha-tdep.c (alpha_gdbarch_init): Update. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * x86-64-tdep.c (x86_64_init_abi): Update. * vax-tdep.c (vax_gdbarch_init): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update. (ns32k_gdbarch_init_32382): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * i386-tdep.c (i386_gdbarch_init): Update. * i386-linux-tdep.c (i386_linux_init_abi): Update. * hppa-tdep.c (hppa_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * avr-tdep.c (avr_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * sparc-tdep.c (sparc_pop_frame): Update. * rs6000-tdep.c (rs6000_pop_frame): Update. * remote.c (init_remote_state): Update. (remote_prepare_to_store): Update. * remote-vx.c (vx_prepare_to_store): Update. * remote-sds.c (sds_fetch_registers): Update. (sds_prepare_to_store): Update. * remote-array.c: Update. * regcache.c (init_legacy_regcache_descr): Update. (init_regcache_descr): Update. * mips-tdep.c (mips_eabi_extract_return_value): Update. (mips_o64_extract_return_value): Update. * irix5-nat.c (fetch_core_registers): Update. * irix4-nat.c (fetch_core_registers): Update. * i386-tdep.h: Update. * hppa-tdep.c (pa_do_registers_info): Update. (pa_do_strcat_registers_info): Update. * cris-tdep.c (cris_register_bytes_ok): Update. * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update. * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update. * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update. * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update. * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update. * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update. * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update. * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update. * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update. * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update. * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update. * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update. (REGISTER_BYTES_OK): Update. * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update. * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update. Index: doc/ChangeLog 2003-05-16 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Replace REGISTER_BYTES with DEPRECATED_REGISTER_BYTES. Fix typo, DEPRECATED_REGISTER_SIZE instead of REGISTER_BYTE. Index: mi/ChangeLog 2003-05-16 Andrew Cagney <cagney@redhat.com> * mi-main.c (mi_setup_architecture_data):
2003-05-17*** empty log message ***gdbadmin1-1/+1
2003-05-16 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.Ian Lance Taylor2-250/+10
(vax_print_insn, print_insn_arg): Remove static functions. (vax_gdbarch_init): Call set_gdbarch_print_insn with print_insn_vax from opcodes library. (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
2003-05-16*** empty log message ***gdbadmin1-1/+1
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney21-200/+113
* arch-utils.h (legacy_breakpoint_from_pc): Delete declaration. * target.h (memory_breakpoint_from_pc): Delete declaration. * mem-break.c (memory_breakpoint_from_pc): Delete function. * arch-utils.c (legacy_breakpoint_from_pc): Delete function. * monitor.c (monitor_insert_breakpoint): Use gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc. * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default. * gdbarch.h, gdbarch.c: Re-generate. * sparc-tdep.c (sparc_breakpoint_from_pc): New function. (sparc_gdbarch_init): Set breakpoint_from_pc to sparc_breakpoint_from_pc. * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro. (BREAKPOINT_FROM_PC): Define. (sparc_breakpoint_from_pc): Declare. * hppa-tdep.c (hppa_breakpoint_from_pc): New function. * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare. (BREAKPOINT_FROM_PC): Define. (BREAKPOINT): Delete macro. * target.h: Update comment. * s390-tdep.c (s390_gdbarch_init): Update comments. * remote.c: Update comments. * remote-mips.c: Update comments. * proc-api.c (write_with_trace): Do not check for a breakpoint. * mem-break.c: Update comment. * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT. (ia64_memory_insert_breakpoint): Update. * config/sparc/tm-sparc.h: Update comment. * config/pa/tm-hppa64.h: Update comment. * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro. (rs6000_breakpoint_from_pc): Update. * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro. (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro. (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro. (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro. (mips_breakpoint_from_pc): Update. (mips_dump_tdep): Update.
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-11/+13
* symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro. * minsyms.c (lookup_minimal_symbol): Inline DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney11-13/+16
* c-lang.c (c_printstr): Delete "extern inspect_it" declaration. * p-valprint.c (pascal_object_print_value_fields): Ditto. * p-lang.c (pascal_printstr): Ditto. * objc-lang.c (objc_printstr): Ditto. * m2-lang.c (m2_printstr): Ditto. * jv-valprint.c (java_print_value_fields): Ditto. * f-lang.c (f_printstr): Ditto. * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h". * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and for repeat_count_threshold. * Makefile.in (cp-valprint.o): Update dependencies.
2003-05-152003-05-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-7/+84
* ia64-tdep.c: Increase max_skip_non_prologue_insns to 40. (examine_prologue): Support looking through leaf functions, knowing they start with mov r2,r12. Support skipping over indirect stores of the input registers. Upon hitting a non-nop branch instruction or predicated instruction, bail out by setting lim_pc to the current pc value in the loop. At the end, if the lim_pc value is still beyond our calculated value and we have trust_limit set, use the lim_pc value.
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-7/+16
* dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename generic_find_dummy_frame. * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update. (deprecated_generic_find_dummy_frame): Update. (deprecated_read_register_dummy): Update. * frame.c (deprecated_generic_get_saved_register): Update.
2003-05-15* avr-tdep.c (avr_breakpoint_from_pc): New function.Theodore A. Roth2-0/+18
(avr_gdbarch_init): Set breakpoint_from_pc method.
2003-05-152003-05-15 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-8/+9
* regcache.c (build_regcache): Set deprecated_register_valid directly. (deprecated_grub_regcache_for_register_valid): Delete function. * regcache.h (deprecated_grub_regcache_for_register_valid): Delete declaration.
2003-05-152003-05-15 David Carlton <carlton@bactrian.org>Elena Zannoni2-52/+17
Committed by Elena Zannoni <ezannoni@redhat.com> * symtab.c (lookup_symbol_aux): Delete calls to lookup_symbol_aux_minsyms. (lookup_symbol_aux_minsyms): Comment out function and prototype. Delete lookup by mangled name.
2003-05-15*** empty log message ***gdbadmin1-1/+1
2003-05-14 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' toKevin Buettner2-14/+24
correctly indicate an empty stack and ``stack_allocated'' to the indicate the number of elements initially allocated. (dwarf_expr_grow_stack): Simplify method for computing new stack size. Don't loop infinitely if ``stack_len'' is zero. (execute_stack_op): Move ``ctx->in_reg'' initialization out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to be used in conjuction with DW_OP_piece. Revise error message accordingly.
2003-05-14* gdbint.texinfo (Breakpoint Handling): Correct a double negative.Theodore A. Roth2-1/+5
2003-05-14* MAINTAINERS: Update my email address.Theodore A. Roth3-4/+9
* avr-tdep.c: Ditto.
2003-05-142003-05-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-4/+38
Roland McGrath <roland@redhat.com> * gdb.threads/linux-dp.exp: Account for fact that in nptl model there is no manager thread.
2003-05-142003-05-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni50-446/+471
* symtab.h (enum domain_enum): Rename from namespace_enum. (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN, VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN): Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE, LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE, TYPES_NAMESPACE, METHODS_NAMESPACE. (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN. (struct symbol, struct partial_symbol): Rename field 'namespace_enum namespace' to 'domain_enum domain'. (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN. Delete old define kludge for namespace. * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c, blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c, dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h, gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c, language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c, mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c, p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c, stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c, valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all occurrences of the above. 2003-05-12 Elena Zannoni <ezannoni@redhat.com> * mi-mi-cmd-stack.c (list_args_or_locals): Rename VAR_NAMESPACE to VAR_DOMAIN.
2003-05-14 * Makefile.in (install-only): Use $(SHELL) when runningIan Lance Taylor2-2/+7
mkinstalldirs.
2003-05-14*** empty log message ***gdbadmin1-1/+1
2003-05-13 * MAINTAINERS (write after approval): Add myself.Ian Lance Taylor2-0/+3
2003-05-13 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swapIan Lance Taylor4-3/+10
second and third arguments. * ser-tcp.c (_initialize_ser_tcp): Likewise. * ser-unix.c (_initialize_ser_hardwire): Likewise.
2003-05-132003-05-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney19-62/+77
* defs.h (store_address): Delete declaration. findvar.c (store_address): Delete function. * arm-tdep.c (arm_push_dummy_call): Replace store_address with store_unsigned_integer. * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto. * v850-tdep.c (v850_push_arguments): Ditto. * sparc-tdep.c (sparc_get_saved_register): Ditto. * sh-tdep.c (sh64_get_saved_register): Ditto. * rs6000-tdep.c (rs6000_push_arguments): Ditto. * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto. * mips-tdep.c (mips_eabi_push_arguments): Ditto. (mips_get_saved_register): Ditto. * ia64-tdep.c (ia64_get_saved_register): Ditto. (find_func_descr, ia64_push_arguments): Ditto. * i386-tdep.c (i386_push_arguments): Ditto. * hpux-thread.c (hpux_thread_fetch_registers): Ditto. * frv-tdep.c (frv_push_arguments): Ditto. * frame.c (legacy_saved_regs_prev_register): Ditto. (deprecated_generic_get_saved_register): Ditto. * findvar.c (unsigned_address_to_pointer): Ditto. * dwarf2read.c (dwarf2_const_value): Ditto. * arm-linux-tdep.c (arm_linux_push_arguments): Ditto. * alpha-tdep.c (alpha_push_arguments): Ditto.
2003-05-13 * NEWS: Mention that the hppa-hpux port has been partiallyJoel Brobecker2-0/+9
multiarched (32bit ABIT only, so far).
2003-05-13*** empty log message ***gdbadmin1-1/+1
2003-05-12Removed redundant call.Kris Warkentin1-2/+0
2003-05-12Index: gdb/ChangeLogAndrew Cagney8-5/+30
2003-05-11 Andrew Cagney <cagney@redhat.com> * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol. * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h, include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms, sim/testsuite/sim/arm/misaligned2.ms, and sim/testsuite/sim/arm/misaligned3.ms. * disasm.h (struct ui_file): Add opaque struct declaration. * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto. * frame.h (struct ui_file): Ditto. Index: gdb/mi/ChangeLog 2003-05-11 Andrew Cagney <cagney@redhat.com> * mi-symbol-cmds.c: Rename "mi-cmd-symbol.c", avoid 8.3 problem.
2003-05-12*** empty log message ***gdbadmin1-1/+1
2003-05-11*** empty log message ***gdbadmin1-1/+1
2003-05-10* value.h: Pretty print.Mark Kettenis2-157/+167
2003-05-10* config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.Mark Kettenis2-2/+4