aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-01-03 * NEWS: Mention pointer to member improvements.Daniel Jacobowitz42-806/+1188
* Makefile.in (gnu-v3-abi.o): Delete special rule. (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update. * ada-valprint.c (ada_print_scalar): Update for new type codes. * c-typeprint.c (c_print_type): Update for new type codes. (c_type_print_varspec_prefix, c_type_print_varspec_suffix) (c_type_print_base): Likewise. (c_type_print_args): Rewrite. * c-valprint.c (c_val_print): Update for new type codes. Remove support for references to members. Treat methods like functions. * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size) (cplus_make_method_ptr, cplus_method_ptr_to_value): New. * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size) (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes. (struct cp_abi_ops): Add corresponding members. * cp-valprint.c (cp_print_class_method): Delete. (cp_find_class_member): New function. (cp_print_class_member): Use it. Simplify support for bogus member pointers. * dwarf2read.c (quirk_gcc_member_function_pointer): Use lookup_methodptr_type. (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type. * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for OP_SCOPE. Update call to value_aggregate_elt. Rewrite member pointer support. (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle references returned by user defined operators. * f-typeprint.c (f_print_type, f_type_print_varspec_prefix) (f_type_print_varspec_suffix): Remove support for member pointers. * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type and adjusted. (smash_to_memberptr_type): Likewise, from smash_to_member_type. (lookup_methodptr_type): New. (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR. (recursive_dump_type): Update for new types. * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR. (lookup_memberptr_type, lookup_methodptr_type) (smash_to_memberptr_type): New prototypes. (smash_to_method_type): Formatting fix. (lookup_member_type, smash_to_member_type): Delete prototypes. * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New. Do not rely on debug information for the vptr or the method's enclosing type. Handle function descriptors for IA64. (gnuv3_virtual_fn_field): Rewrite using the new functions. (gnuv3_find_method_in, gnuv3_print_method_ptr) (gnuv3_method_ptr_size, gnuv3_make_method_ptr) (gnuv3_method_ptr_to_value): New. (init_gnuv3_ops): Set new members of gnu_v3_abi_ops. * hpread.c (hpread_type_lookup): Update for new types. * infcall.c (value_arg_coerce): Likewise. * m2-typeprint.c (m2_print_type): Remove explicit support for member pointers. * m2-valprint.c (m2_val_print): Likewise. * p-typeprint.c (pascal_type_print_varspec_prefix) (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise. * p-valprint.c (pascal_val_print): Likewise. (pascal_object_print_class_method, pascal_object_print_class_member): Delete. * p-lang.h (pascal_object_print_class_method) (pascal_object_print_class_member): Delete prototypes. * stabsread.c (read_type): Update for new types. * typeprint.c (print_type_scalar): Likewise. * valops.c (value_struct_elt_for_reference, value_namespace_elt) (value_maybe_namespace_elt, value_aggregate_elt): Add want_address argument. Construct a pointer to member if the address of a function or data member is requested. (value_cast_pointers): Don't modify the input value. (value_cast): Adjust pointer to member handling for new types. Allow null pointer to member constants. Don't modify the input value. (value_ind): Remove pointer to member check. Handle function descriptors for function pointers. (value_struct_elt, value_find_oload_method_list, check_field): Remove pointer to member checks. * value.c (unpack_long): Allow pointers to data members. (value_from_longest): Allow member pointers. * value.h (value_aggregate_elt): Add want_address. * varobj.c (c_variable_editable): Remove check for members. * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta. * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors in virtual tables. (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors. * c-lang.h (cp_print_class_method): Delete prototype. * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta. * mips-tdep.c (mips_gdbarch_init): Likewise. * gdbarch.c, gdbarch.h: Regenerated. * gdb.cp/classes.exp (test_pointers_to_class_members): Update expected output. Test the types of members and member pointers. * gdb.cp/inherit.exp (test_print_mi_member_types): Remove KFAILs for gdb/2092. * gdb.cp/member-ptr.exp: Search for a comment instead of a statement. Enable for GCC. Update expected output for some tests and add new tests. Remove obsolete GCC KFAILs. Allow GCC's class layout. * gdb.cp/member-ptr.cc (Padding, Padding::vspacer, Base, Base::get_x) (Base::vget_base, Left, Left::vget, Right, Right::vget, Diamond) (Diamond::vget_base): New. (main): Add new tests. * gdb.cp/printmethod.exp: Update expected output for member functions. * gdb.cp/virtfunc.exp (test_virtual_calls): Add a KFAIL for print pEe->D::vg().
2007-01-03 * linux-low.c (linux_kill): Handle being called with no threads.Daniel Jacobowitz3-2/+17
* win32-i386-low.c (win32_kill): Likewise. (get_child_debug_event): Clear current_process_handle.
2007-01-03 * gdb.threads/tls.exp: Allow stops in sem_post.Daniel Jacobowitz2-1/+9
2007-01-03*** empty log message ***gdbadmin1-1/+1
2007-01-02daily updateAlan Modra1-1/+1
2007-01-02* rs6000-tdep.c (rs6000_use_struct_convention)Mark Kettenis2-131/+118
(rs6000_extract_return_value, rs6000_store_return_value) (rs6000_extract_struct_value_address): Remove. (rs6000_return_value): New function. (rs6000_gdbarch_init): Don't set deprecated_extract_return_value, store_return_value, deprecated_extract_struct_value_address and deprecated_use_struct_convention. Use rs6000_return_value instead.
2007-01-022007-01-01 Mike Stump <mrs@apple.com>Paolo Bonzini2-8/+2
* mh-ppc-darwin: Remove support for building with Apple's gcc-3.1.
2007-01-02 * pe-dll.c: Include pe-dll.h.Alan Modra3-0/+7
* pep-dll.c (pe_bfd_is_dll): Define.
2007-01-02(mi_cmds): Remove entries for -display-delete,Nick Roberts1-5/+0
-display-disable, -display-enable, -display-insert and -display-list.
2007-01-02*** empty log message ***Nick Roberts1-0/+6
2007-01-02*** empty log message ***gdbadmin1-1/+1
2007-01-01daily updateAlan Modra1-1/+1
2007-01-01 * breakpoint.c (remove_breakpoint): Remove dead code.Joel Brobecker2-12/+5
2007-01-01 * gdbint.texinfo (Start of New Year Procedure): Add missing item.Joel Brobecker2-0/+8
2007-01-01Include block.h.Nick Roberts1-2/+9
(c_value_of_root): Check scope within nested statements.
2007-01-01*** empty log message ***Nick Roberts1-0/+5
2007-01-01* mi/mi-main.c (mi_cmd_data_write_register_values): UseMark Kettenis2-19/+14
regcache_cooked_write_signed instead of deprecated_write_register_bytes.
2007-01-01 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.Joel Brobecker2-0/+5
2007-01-01 Followed the Start of New Year Procedure:Joel Brobecker3-4728/+4744
* ChangeLog-2006: New file, containing all the entries for 2006. * ChangeLog: Removed all 2006 entries, and changed the reference to the previous ChangeLog to point to ChangeLog 2006. * top.c (print_gdb_version): Update copyright year.
2007-01-01*** empty log message ***gdbadmin1-1/+1
2006-12-31* Makefile.in (remote-sds.o): Remove.Mark Kettenis3-1130/+5
* remote-sds.c: Delete.
2006-12-31daily updateAlan Modra1-1/+1
2006-12-31 * linux-nat.c (lin_lwp_attach_lwp): Return a status. Do notDaniel Jacobowitz5-24/+47
add the LWP to our list until we are attached. Warn instead of erroring if the attach fails. * linux-nat.h (lin_lwp_attach_lwp): New prototype. * linux-thread-db.c (attach_thread): Call lin_lwp_attach_lwp directly. Do not add the thread to our list until we are successfully attached. * config/nm-linux.h (lin_lwp_attach_lwp, ATTACH_LWP): Delete.
2006-12-31 * configure.ac: Add tests for TD_VERSION and TD_NOTLS.Daniel Jacobowitz5-6/+182
* linux-thread-db.c (thread_db_err_str): Recognize TD_NOTALLOC, TD_VERSION, and TD_NOTLS. * configure, config.in: Regenerated.
2006-12-31 * gdb.base/annota1.exp: Allow .*printf in backtraces.Daniel Jacobowitz11-146/+124
* gdb.base/annota3.exp: Likewise. * gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint again (instead of timing out). * gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for GCC bug 26475. * gdb.java/jmisc.exp: Adjust to work with method signatures including return types. Add kfails for GDB bugs 2214 and 2215. Move exit test from jmisc1.exp. * gdb.java/jmisc1.exp: Delete. * gdb.java/jprint.exp: Adjust to work with method signatures including return types. * gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info. * gdb.threads/linux-dp.exp: Don't be confused by program output. * lib/java.exp (compile_java_from_source): Pass the correct type to target_compile.
2006-12-312006-12-31 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-4/+6
* bfd.c (bfd_record_phdr): Call bfd_zalloc instead of bfd_alloc to allocate elf_segment_map.
2006-12-31 * gdb.arch/i386-prologue.c (stack_align_ecx): Renamed from stack_align.Joel Brobecker3-13/+116
(stack_align_edx): New function. (stack_align_eax): New function. (main): Add calls to stack_align_edx and stack_align_eax. * gdb.arch/i386-prologue.exp: Replace stack_align with stack_align_ecx. Add testing for the cases where the register used during a stack realignment is edx. Same for eax.
2006-12-31 * i386-tdep.c (i386_analyze_stack_align): Add handling of twoJoel Brobecker2-2/+19
other possible code sequences that perform a stack realignment.
2006-12-31* sparc64-tdep.h (SPARC64_PSTATE_AG, SPARC64_PSTATE_IE)Mark Kettenis5-4/+126
(SPARC64_PSTATE_PRIV, SPARC64_PSTATE_AM, SPARC64_PSTATE_PEF) (SPARC64_PSTATE_RED, SPARC64_PSTATE_TLE, SPARC64_PSTATE_CLE) (SPARC64_PSTATE_PID0, SPARC64_PSTATE_PID1): New defines. * sparc64nbsd-nat.c: Include "gdbcore.h". (sparc64nbsd_supply_pcb): Get %pc from stack if necessary. Supply processor state register. * sparc64obsd-tdep.c (sparc64obsd_trapframe_cache) (sparc64obsd_trapframe_this_id) (sparc64obsd_trapframe_prev_register) (sparc64obsd_trapframe_sniffer): New functions. (sparc64obsd_trapframe_unwind): New variable. (sparc64obsd_init_abi): Append trapframe unwinder. * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
2006-12-31*** empty log message ***gdbadmin1-1/+1
2006-12-30daily updateAlan Modra1-1/+1
2006-12-30 * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGWDaniel Jacobowitz2-1/+9
and generic PE targets.
2006-12-302006-12-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* config/tc-i386.h (ShiftCount): Fix a comment typo.
2006-12-302006-12-30 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
* config/tc-i386.c (md_show_usage): Mention --32/--64.
2006-12-30 * infrun.c (handle_inferior_event): Don't callDaniel Jacobowitz3-25/+7
ENSURE_VFORKING_PARENT_REMAINS_STOPPED. * target.h (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Delete. (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Delete.
2006-12-30 * remote-utils.c (remote_open): Check the type of specifiedDaniel Jacobowitz3-3/+32
serial port devices before opening them. * server.c (main): Kill the inferior if an error occurs during the first remote_open.
2006-12-30*** empty log message ***gdbadmin1-1/+1
2006-12-29daily updateAlan Modra1-1/+1
2006-12-29gas/H.J. Lu9-6/+38
2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_modrm_byte): Handle shift count register with 3 operands. gas/testsuite/ 2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/intel.s: Add tests for "shrd %cl,%edx,%eax" and "shld %cl,%edx,%eax". * gas/i386/opcode.s: Likewise. * gas/i386/intel.d: Updated. * gas/i386/opcode-intel.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/opcode.d: Likewise.
2006-12-29* sparc-tdep.c (sparc_psr_type, sparc_fsr_type): New variables.Mark Kettenis2-0/+57
(sparc_init_types): New function. (sparc32_register_type): Use appropriate flag types for %fsr and %prs. (_initialize_sparc_tdep): Call sparc_init_types.
2006-12-29bfd/H.J. Lu8-3/+105
2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (elf_link_add_object_symbols): Remember the symbol size only if it is defined. ld/testsuite/ 2006-12-29 H.J. Lu <hongjiu.lu@intel.com> * ld-elf/wrap.exp: New file. * ld-elf/wrap1.c: Likewise. * ld-elf/wrap1.out: Likewise. * ld-elf/wrap1a.c: Likewise. * ld-elf/wrap1b.c: Likewise.
2006-12-292006-12-29 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini7-392/+376
Sync with gcc: 2006-12-29 Paolo Bonzini <bonzini@gnu.org> * configure.in: Reorganize recognition of languages. Add --enable-stage1-languages. Show supported languages for the chosen target rather than all recognized languages. * configure: Regenerate. 2006-12-29 Paolo Bonzini <bonzini@gnu.org> * Makefile.tpl (GCC_STRAP_TARGETS, all-prebootstrap): Remove. * Makefile.in: Regenerate. 2006-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * configure.in: Warn that MPFR 2.2.0 is buggy. * configure: Regenerate. config: 2006-12-29 Paolo Bonzini <bonzini@gnu.org> * acx.m4: Sync with gcc.
2006-12-29 * gdb.ada/array_return.exp: Update copyright date list.Joel Brobecker2-1/+5
2006-12-29* memory-map.c (memory_map_end_element): Move variableMark Kettenis2-1/+7
declarations to the begining of the block.
2006-12-292006-12-28 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-11/+33
* config/tc-i386.c (process_operands): Check i.reg_operands and increment i.operands when adding a register operand. (build_modrm_byte): Fix 4 operand instruction handling.
2006-12-29*** empty log message ***gdbadmin1-1/+1
2006-12-28 * ia64-tdep.c (get_kernel_table): Correct signedness in checkDaniel Jacobowitz2-6/+12
for a negative return value.
2006-12-28daily updateAlan Modra1-1/+1
2006-12-28Consolidate Gary Funck's two ChangeLog entries.Jim Blandy1-2/+0
2006-12-282006-12-27 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-3/+22
* config/tc-i386.c (disp_expressions): Use MAX_MEMORY_OPERANDS for array size instead of 2. (im_expressions): Use MAX_IMMEDIATE_OPERANDS for for array size instead of 2. (i386_immediate): Update immediate operand overflow error message. (i386_displacement): Check displacement operand overflow.