aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-02-05 testsuite/Doug Evans4-1/+37
* lib/gdb.exp (INTERNAL_GDBFLAGS): Don't override value provided by user. doc/ * gdbint.texinfo (Testsuite): Document INTERNAL_GDBFLAGS.
2010-02-052010-02-05 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla6-23/+77
PR c++/7935: * gdb.cp/namespace-using.exp: Removed kfail; bug has been fixed. 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com> PR c++/7935: * cp-support.h: Added char* alias element to using_direct data struct. (cp_add_using): Added char* alias argument. (cp_add_using_directive): Ditto. * cp-namespace.c: Updated with the above changes. (cp_lookup_symbol_imports): Check for aliases. * dwarf2read.c (read_import_statement): Figure out local alias for the import and pass it on to cp_add_using. (read_namespace): Pass alias argument to cp_add_using.
2010-02-05 * gdbint.texinfo (Testsuite): Add a new section to document theDoug Evans2-0/+51
various DejaGnu variables that may be overridden.
2010-02-052010-02-05 Hui Zhu <teawater@gmail.com>Hui Zhu4-2/+60
* defs.h (gdb_bfd_errmsg): New extern. * exec.c (exec_file_attach): Change bfd_errmsg to gdb_bfd_errmsg. * utils.c (AMBIGUOUS_MESS1): New macro. (AMBIGUOUS_MESS2): New macro. (gdb_bfd_errmsg): New function.
2010-02-05*** empty log message ***gdbadmin1-1/+1
2010-02-04 * solib-svr4.c (enable_break): Add comment.Doug Evans2-0/+23
2010-02-04Fix prolog analyzerAnthony Green2-0/+7
2010-02-04gdbTom Tromey4-17/+21
* valops.c (search_struct_field): Account for value_embedded_offset. Fix check for virtual base past the end of the object. Use value_copy when making a slice of the value. gdb/testsuite * gdb.cp/virtbase.exp: Make test case names unique.
2010-02-04 PR cli/8830:Tom Tromey2-2/+8
* gdb.texinfo (Files): -readnow comes before the filename for file and symbol-file.
2010-02-04Call tui_initialize_readline only if gdb_stdout is a tty.H.J. Lu2-1/+8
2010-02-04 H.J. Lu <hongjiu.lu@intel.com> PR tui/9622 * tui/tui-interp.c (tui_init): Call tui_initialize_readline only if gdb_stdout is a tty.
2010-02-04Generate set_tdesc_osabi for valid OSABI.H.J. Lu2-0/+17
2010-02-04 H.J. Lu <hongjiu.lu@intel.com> * target-descriptions.c: Include "osabi.h". (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid OSABI.
2010-02-042010-02-04 Tristan Gingold <gingold@adacore.com>Tristan Gingold4-50/+34
* machoread.c (macho_add_oso): Renamed to macho_register_oso. (macho_symtab_read): Adjust calls to macho_add_oso. (macho_oso_symfile): Renamed to macho_symfile_read_all_oso. (macho_symfile_read): Adjust call to macho_oso_symfile. (macho_new_init): Move this function after declarations. (macho_symfile_init): Ditto. * darwin-nat-info.c (darwin_lib_gdb_ports): Remove. * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
2010-02-04 Include MI command in remotelog.Vladimir Prus2-0/+8
* mi/mi-main.c (mi_execute_command): Call target_log_command.
2010-02-04*** empty log message ***gdbadmin1-1/+1
2010-02-03Pass target_gdbarch to gdbarch_qsupported.H.J. Lu2-7/+8
2010-02-03 H.J. Lu <hongjiu.lu@intel.com> * remote.c (remote_state): Remove gdbarch. (init_remote_state): Don't set gdbarch. (remote_query_supported): Pass target_gdbarch instead of rs->gdbarch to gdbarch_qsupported.
2010-02-032010-02-03 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+9
* regcache.c (supply_register): Clear regcache if buf is NULL.
2010-02-03Add qsupported to gdbarch.H.J. Lu5-3/+65
2010-02-03 H.J. Lu <hongjiu.lu@intel.com> * gdbarch.sh: Add qsupported. * gdbarch.c: Regenerated. * gdbarch.h: Likewise. * remote.c (remote_state): Add gdbarch. (init_remote_state): Set gdbarch. (remote_query_supported): Support gdbarch_qsupported.
2010-02-03 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check forDaniel Jacobowitz2-1/+6
__FreeBSD_kernel_version.
2010-02-032010-02-03 Tristan Gingold <gingold@adacore.com>Tristan Gingold11-15/+71
* symfile.h (struct sym_fns): Add sym_relocate field. (default_symfile_relocate): New prototype. (symfile_relocate_debug_section): First argument is now an objfile. * symfile.c (default_symfile_relocate): Rename from symfile_relocate_debug_section, first argument is now an objfile. (symfile_relocate_debug_section): New function. * coffread.c (coff_sym_fns): Set sym_relocate field. * somread.c (som_sym_fns): Ditto. * mipsread.c (ecoff_sym_fns): Ditto. * machoread.c (macho_sym_fns): Ditto. * elfread.c (elf_sym_fns): Ditto. * dwarf2read.c (dwarf2_read_section): Ditto. * xcoffread.c (xcoff_sym_fns): Ditto. * dbxread.c (aout_sym_fns): Ditto. (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section. (elfstab_build_psymtabs): Ditto.
2010-02-03Increase MAX_REGISTER_SIZE to 32.H.J. Lu2-1/+5
2010-02-03 H.J. Lu <hongjiu.lu@intel.com> * defs.h (MAX_REGISTER_SIZE): Increase to 32.
2010-02-03*** empty log message ***gdbadmin1-1/+1
2010-02-02gdbTom Tromey5-2/+73
* valops.c (value_cast_structs): Try downcasting using the RTTI type. gdb/testsuite * gdb.cp/virtbase.exp: Add regression tests. * gdb.cp/virtbase.cc (RHA, RHB, RHC): New classes. (main): Instantiate RHC.
2010-02-02 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.Tom Tromey4-30/+9
(gnuv2_baseclass_offset): Now static. * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. * gnu-v2-abi.h: Remove.
2010-02-02gdbTom Tromey8-62/+45
* m2-typeprint.c (m2_record_fields): Don't use TYPE_DECLARED_TYPE. * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. (struct main_type) <flag_declared_class>: New field. (struct cplus_struct_type) <declared_type>: Remove. <ntemplate_args>: Move earlier. (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) (DECLARED_TYPE_TEMPLATE): Remove. (TYPE_DECLARED_TYPE): Remove. * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not TYPE_DECLARED_TYPE. gdb/testsuite * gdb.dwarf2/member-ptr-forwardref.exp: Update expected result for type-printing change.
2010-02-02gdbTom Tromey11-15/+223
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * valops.c (search_struct_field): Compute nbases after calling CHECK_TYPEDEF. (check_field): Call CHECK_TYPEDEF. * cp-valprint.c (cp_print_value): Pass correct address to baseclass_offset. Fix check for virtual base past the end of the object. Don't offset address passed to cp_print_value_fields or apply_val_pretty_printer. (cp_print_value_fields): Fix call to val_print. (cp_print_value_fields_rtti): New function. * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. * p-valprint.c (pascal_object_print_value_fields): Fix call to val_print. * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded offset to address. * language.h (struct language_defn) <la_val_print>: Document. * c-lang.h (cp_print_value_fields_rtti): Declare. gdb/testsuite PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * gdb.cp/virtbase.cc: New file. * gdb.cp/virtbase.exp: New file. * gdb.cp/userdef.exp: Allow 'struct' or 'class'.
2010-02-02gdbserver crash when running 32bits exes on x64 Windows.Joel Brobecker2-3/+29
* inferiors.c (find_inferior): Add function documentation. (unloaded_dll): Handle the case where the unloaded dll has not been previously registered in the dll list.
2010-02-02*** empty log message ***gdbadmin1-1/+1
2010-02-01gdb/Jan Kratochvil4-7/+60
PR libc/11214: * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. gdb/testsuite/ PR libc/11214: * gdb.threads/current-lwp-dead.c: Include features.h. (HAS_NOMMU): New. (fn, main): Move CLONE_VM into [__UCLIBC__ && HAS_NOMMU].
2010-02-01 * i386-tdep.c (i386_frame_cache): Assume valid anonymousDaniel Jacobowitz2-1/+19
functions use a frame pointer.
2010-02-01gdb/Jan Kratochvil6-3/+84
* solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert by a conditional setting DYN_ADDR. Use DYN_ADDR. * config/djgpp/fnchange.lst: Add translations for symbol-without-target_section.exp and symbol-without-target_section.c. gdb/testsuite/ * gdb.base/symbol-without-target_section.exp, gdb.base/symbol-without-target_section.c: New.
2010-02-01 * gdb.base/bigcore.exp: Reset increased timeout.Daniel Jacobowitz3-0/+7
* gdb.base/interrupt.exp: Match unexpected gdb prompt.
2010-02-01 * gdb.base/gcore.exp (capture_command_output): UseDaniel Jacobowitz2-5/+6
gdb_test_multiple.
2010-02-01 * gdbarch.sh: Set LANG and LC_ALL to C, not c.Daniel Jacobowitz3-5/+10
(remote_breakpoint_for_pc): Correct invalid_p check. * gdbarch.c: Regenerated.
2010-02-01 * arm-tdep.c (arm_find_mapping_symbol): New function, fromDaniel Jacobowitz5-18/+308
arm_pc_is_thumb. (arm_pc_is_thumb): Use arm_find_mapping_symbol. (extend_buffer_earlier): New function. (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. (arm_adjust_breakpoint_address): New function. (arm_gdbarch_init): Register arm_adjust_breakpoint_address. testsuite/ * gdb.arch/thumb2-it.S (it_breakpoints): New function. * gdb.arch/thumb2-it.exp (test_it_break): New function. (Top level): Call it.
2010-02-01 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)Daniel Jacobowitz9-11/+494
(arm_linux_thumb2_le_breakpoint): New constants. (arm_linux_init_abi): Set thumb2_breakpoint and thumb2_breakpoint_size. * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. Implement support for single stepping through IT blocks if a 32-bit Thumb breakpoint instruction is available. (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction is available, use it when needed. (arm_remote_breakpoint_from_pc): New function. (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint comment. Add thumb2_breakpoint and thumb2_breakpoint_size. gdbserver/ * linux-arm-low.c (thumb_breakpoint_len): Delete. (thumb2_breakpoint): New. (arm_breakpoint_at): Check for Thumb-2 breakpoints. testsuite/ * gdb.arch/thumb2-it.S, gdb.arch/thumb2-it.exp: New files.
2010-02-01 * arch-utils.c (default_remote_breakpoint_from_pc): New function.Daniel Jacobowitz9-28/+123
* arch-utils.h (default_remote_breakpoint_from_pc): Declare. * gdbarch.c, gdbarch.h: Regenerated. * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use gdbarch_remote_breakpoint_from_pc. doc/ * gdb.texinfo (Architecture-Specific Protocol Details): New section. Document ARM breakpoint types. (Register Packet Format): Move into the new section. (Packets): Describe the KIND argument for Z0, z0, Z1, and z1 packets.
2010-02-01*** empty log message ***gdbadmin1-1/+1
2010-01-31*** empty log message ***gdbadmin1-1/+1
2010-01-30*** empty log message ***gdbadmin1-1/+1
2010-01-29 * infrun.c (prepare_to_proceed): Handle other signals which mightDaniel Jacobowitz4-26/+58
match a breakpoint. (handle_inferior_event): Move the check for unusual breakpoint signals earlier. gdbserver/ * linux-low.c (get_stop_pc): Check for SIGTRAP. (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible breakpoints.
2010-01-29 * gdb.base/call-strs.exp, gdb.base/default.exp,Daniel Jacobowitz17-18/+55
gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp, gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp, gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp, gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp, gdb.base/watchpoint-solib.exp: Save and restore timeout. * gdb.base/ending-run.exp: Correct restore of timeout. * gdb.base/page.exp: Remove unnecessary timeout setting.
2010-01-29amd64 - function returning record with field straddling 2 registersJoel Brobecker7-0/+166
gdb/ChangeLog: From Paul Hilfinger <hilfinger@adacore.com> * amd64-tdep.c (amd_classify_aggregate): Handle the case of a record of length <= 16 in which a field straddles the two eightbytes. gdb/testsuite/ChangeLog: * gdb.ada/rec_return: New testcase.
2010-01-29Implement return values on amd64-windows.Joel Brobecker2-1/+64
* amd64-windows-tdep.c: #include gdbcore.h and regcache.h. (amd64_windows_return_value): New function. (amd64_windows_init_abi): Call set_gdbarch_return_value with amd64_windows_return_value.
2010-01-29amd64-windows: 32 bytes allocated on stack by caller for integer parameter ↵Joel Brobecker4-4/+32
registers * i386-tdep.h (struct gdbarch_tdep): Add new field integer_param_regs_saved_in_caller_frame. * amd64-windows-tdep.c (amd64_windows_init_abi): Set tdep->integer_param_regs_saved_in_caller_frame to 1. * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2010-01-29Add summary line to the second to last entry.Joel Brobecker1-0/+1
2010-01-29amd64-windows: memory args passed by pointer during function calls.Joel Brobecker4-4/+52
* i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer. * amd64-tdep.c (amd64_push_arguments): Add handling of architectures where tdep->memory_args_by_pointer is non-zero. * amd64-windows-tdep.c (amd64_windows_init_abi): Set tdep->memory_args_by_pointer to 1.
2010-01-29amd64: Integer parameters in function calls on Windows.Joel Brobecker10-31/+269
gdb/ChangeLog: * i386-tdep.h (enum amd64_reg_class): New, moved here from amd64-tdep.c. (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs, call_dummy_integer_regs, and classify. * amd64-tdep.h (amd64_classify): Add declaration. * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant. (amd64_reg_class): Delete, moved to i386-tdep.h. (amd64_classify): Make non-static. Move declaration to amd64-tdep.h. Replace call to amd64_classify by call to tdep->classify. (amd64_push_arguments): Get the list of registers to use for passing integer parameters from the gdbarch tdep structure, rather than using a hardcoded one. Replace calls to amd64_classify by calls to tdep->classify. (amd64_push_dummy_call): Get the register number used for the "hidden" argument from tdep->call_dummy_integer_regs. (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs and tdep->call_dummy_integer_regs. Set tdep->classify. * amd64-windows-tdep.c: Add include of gdbtypes.h. (amd64_windows_dummy_call_integer_regs): New static global. (amd64_windows_classify): New function. (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs tdep->call_dummy_integer_regs and tdep->classify. gdb/testsuite/ChangeLog: * gdb.ada/call_pn: New testcase.
2010-01-29*** empty log message ***gdbadmin1-1/+1
2010-01-28 * gdb.mi/mi-nonstop.exp (mi_nonstop_resume): New function.Daniel Jacobowitz3-8/+28
(Top level): Use it to resume. * lib/mi-support.exp (mi_send_resuming_command_raw): Recognize the Thumb mode displaced stepping error as unsupported.
2010-01-28 * regcache.c (regcache_xmalloc): Add aspace argument. Use itDaniel Jacobowitz6-13/+26
for the new regcache. All callers updated. (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here. (get_thread_arch_regcache): Do not set aspace here. * regcache.h (regcache_xmalloc): Update declaration. * frame.c, infcall.c, ppc-linux-tdep.c: Calls to regcache_xmalloc updated.