aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-27fix set but unused variable warningsAlan Modra88-789/+701
2010-06-27daily updateAlan Modra1-1/+1
2010-06-27*** empty log message ***gdbadmin1-1/+1
2010-06-26 * dwarf2expr.c (execute_stack_op): Place preprocessorUlrich Weigand2-2/+7
directives at the start of the source line.
2010-06-26Refactor 'maint time' command statistics.Paul N. Hilfinger9-133/+141
Consolidate code for displaying per-command time and space statistics to avoid duplication. Piggyback on cleanups so that statistics get printed even when commands terminate as a result of an error. Changelog * gdb/defs.h (make_command_stats_cleanup): Declare. (set_display_time): Declare. (set_display_space): Declare. * gdb/event-top.c (command_handler): Use make_command_stats_cleanup. * gdb/main.c (display_time, display_space): Move definitions to utils.c. (captured_main): Use make_command_stats_cleanup to get start-up statistics. Use set_display_time and set_display_space for processing OPT_STATISTICS case. * gdb/maint.c (maintenance_time_display): Use set_display_time. (maintenance_space_display): Use set_display_space. * gdb/top.c (execute_command): Remove obsolete 'maint time' code. (command_loop): Use make_command_stats_cleanup. * gdb/utils.c (struct cmd_stats): Structure for storing initial time and space usage. (display_time, display_space): Move definitions here from utils.c. (set_display_time): New function. (set_display_space): New function. (make_command_stats_cleanup): New function. (report_command_stats): New auxiliary function for make_command_stats_cleanup. * gdb/testsuite/gdb.gdb/selftest.exp: Adjust expected message for capturing start-up runtime.
2010-06-26daily updateAlan Modra1-1/+1
2010-06-26*** empty log message ***gdbadmin1-1/+1
2010-06-25 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement forUlrich Weigand2-2/+8
hosts where CORE_ADDR is long long.
2010-06-25Added NEWS entry about C++ improvements.Sami Wagiaalla1-0/+29
2010-06-25gdbTom Tromey6-10/+103
PR python/10808: * python/python.c (execute_gdb_command): Add keywords. Accept "to_string" argument. (struct restore_ui_file_closure): New. (restore_ui_file): New function. (make_cleanup_restore_ui_file): Likewise. (GdbMethods) <execute>: Update. gdb/doc PR python/10808: * gdb.texinfo (Basic Python): Document new gdb.execute argument. gdb/testsuite PR python/10808: * gdb.python/python.exp: Add new tests.
2010-06-25Added import loop test.Sami Wagiaalla3-0/+24
2010-06-25 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/operator.cc: Created an import loop. * gdb.cp/operator.exp: Added testcase for import loop.
2010-06-25 * s390-tdep.c (s390_push_dummy_call): Error on stack overflowUlrich Weigand2-9/+24
during inferior call stack frame setup.
2010-06-252010-06-25 Ken Werner <ken.werner@de.ibm.com>Ulrich Weigand2-0/+114
* solib-spu.c: Include "exception.h". (ocl_program_data_key): New variable. (append_ocl_sos): New function. (ocl_enable_break): Likewise. (spu_current_sos): Call append_ocl_sos. (spu_solib_loaded): Call ocl_enable_break. (_initialize_spu_solib): Register ocl_program_data_key.
2010-06-25 * cp-support.c (reset_directive_searched): New function.Ulrich Weigand2-2/+31
(make_symbol_overload_list_using): Prevent recursive calls.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-11/+36
* vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with its flags. Create an absolute section if needed.
2010-06-25gdb/testsuite/Jan Kratochvil5-32/+125
Test PR python/11407. * gdb.dwarf2/dw2-ref-missing-frame-func.c: New file. * gdb.dwarf2/dw2-ref-missing-frame.S: Use cu_text_start and cu_text_end. Split main into func_nofb and func_loopfb dropping NO_FRAME_BASE. * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove variables sources, executable_nofb and executable_fb. New variables srcsfile, objsfile, srcfuncfile, objfuncfile, srcmainfile, objmainfile, executable and binfile. Call gdb_compile with clean_restart twice. (func_nofb print, func_nofb backtrace, func_loopfb print) (func_loopfb backtrace): New.
2010-06-25gdb/testsuite/Jan Kratochvil4-322/+175
* gdb.dwarf2/dw2-ref-missing-frame-main.c: New. * gdb.dwarf2/dw2-ref-missing-frame.S: Replace compiler generated output by a hand made one. * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove invalid comment. Remove i?86 requirement. Remove variables srcfile and binfile. New variable sources, executable_nofb and executable_fb. Call prepare_for_testing.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-46/+53
* vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create dummy psect anymore. Adjust. (_bfd_vms_write_eeom): Adjust (use target_index instead of index) (_bfd_vms_write_etir): Ditto. (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of section name. Adjust.
2010-06-252010-06-24 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-5/+17
* printcmd.c (print_variable_and_value): Print error message on caught exception.
2010-06-252010-06-25 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+14
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
2010-06-25ChangeLog:Ulrich Weigand8-189/+418
* dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type of stack values. (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new "value" member. (dwarf_expr_push): Change input type to ULONGEST. (dwarf_expr_fetch): Change return type to ULONGEST. (dwarf_expr_fetch_address): Add prototype. (dwarf2_read_address): Remove prototype. * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values. Truncate stack values to ctx->addr_size bytes. (dwarf_expr_fetch): Change return value to ULONGEST. (dwarf_expr_fetch_address): New function. (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch when appropriate. Update for struct dwarf_expr_piece changes. (dwarf2_read_address): Remove. (unsigned_address_type): Remove. (signed_address_type): Remove. (execute_stack_op): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack values. Perform operations on ULONGEST instead of on GDB values, sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr values and DW_OP_deref results as unsigned integers. * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece changes. (write_pieced_value): Likewise. (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch when appropriate. (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers. * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch when appropriate. testsuite/ChangeLog: * gdb.cell/dwarfaddr.exp: New file. * gdb.cell/dwarfaddr.S: New file.
2010-06-25 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.Pierre Muller2-1/+6
2010-06-25include/elf/Alan Modra6-28/+211
* ppc64.h (R_PPC64_LO_DS_OPT): Define. bfd/ * elf64-ppc.c (toc_skip_enum): Define. (ppc64_elf_edit_toc): Use two low bits of skip array as markers. Optimize largetoc sequences. (adjust_toc_syms): Update for skip array change. (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. ld/ * emultempl/ppc64elf.em (prelim_size_sections): New function. (ppc_before_allocation): Use it. Size sections before toc edit too.
2010-06-25 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.Alan Modra2-3/+8
2010-06-25 * elf64-ppc.c (is_static_defined): New function.Alan Modra2-61/+115
(get_tls_mask, ppc_type_of_stub): Use it here. (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input. (ppc64_elf_tls_setup): Typo fix. (adjust_toc_syms): Correctly handle symbols defined past the end of the toc. Move syms on removed entries to next entry rather than to start of toc. (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to edit ppc64 input. Allocate one extra word in skip array. Honour info->keep_memory when reading relocs if we can. Adjust toc relocs after adjusting symbols.
2010-06-252010-06-25 Doug Kwan <dougkwan@google.com>Doug Kwan4-8/+120
* arm.cc (Target_arm::can_check_for_functions_pointers): Return true. (Target_arm::section_may_have_icf_unsafe_pointers): New method definition. (Target_arm::Scan::local_reloc_may_be_function_pointer, Target_arm::Scan::global_reloc_may_be_function_pointer): Implement target hook to detect function points. (Target_arm::Scan::possible_function_pointer_reloc): New method. * icf.h (Icf::check_section_for_function_pointers): Change type of parameter SECTION_NAME to const reference to std::string. Use target hook to determine if section may have unsafe pointers. * target.h (Target::section_may_have_icf_unsafe_pointers): New method definition.
2010-06-25*** empty log message ***gdbadmin1-1/+1
2010-06-25daily updateAlan Modra1-1/+1
2010-06-24Add support for gdb.PYTHONDIR as $gdb_datadir/python.Joel Brobecker2-0/+28
Python scripts to be used by GDB can be stored in that directory, and will be automatically found by the interpreter when importing them. This patch also sets up <gdb_pythondir>/gdb as the directory where gdb submodules can be stored. For now, there is nothing there, but it can now be added easily without further code changes. gdb/ChangeLog: 2010-06-24 Joel Brobecker <brobecker@adacore.com> * python/python.c (_initialize_python): Add new "constant" PYTHONDIR in gdb module. Insert this path at the head of sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and exec its __init__.py script if it exists in that directory.
2010-06-24Add "acc" register. Revise register order and names.Kevin Buettner6-11/+42
2010-06-24 * psymtab.c (lookup_partial_symbol): Mark definition as static.Tom Tromey2-1/+5
2010-06-24gdb/Jan Kratochvil2-1/+7
Fix GDB startup on readonly filesystem. * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2010-06-24gdb/Jan Kratochvil8-245/+262
Fix PR 9436. * breakpoint.c (handle_jit_event): New function. (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl, jit, err, table and bs_class. New variables shlib_event, jit_event, this_action and bptype. Change bs_class assignments to this_action assignments. new unhandled bptype internal error. Move here shlib_event and jit_event handling from handle_inferior_event. * breakpoint.h (enum bpstat_what_main_action): Extend the comment. Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and BPSTAT_WHAT_CHECK_JIT. * inferior.h (debug_infrun, stop_on_solib_events): New declarations. * infrun.c (debug_infrun, stop_on_solib_events): Remove static. (handle_inferior_event): Reinitialize frame and gdbarch after bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even gdbarch when frame gets reinitialized. gdb/testsuite/ Test PR 9436. * gdb.base/nostdlib.exp, gdb.base/nostdlib.c: New.
2010-06-24Add command "eval".Hui Zhu7-14/+96
2010-06-24*** empty log message ***gdbadmin1-1/+1
2010-06-24daily updateAlan Modra1-1/+1
2010-06-23ChangeLog:Ulrich Weigand9-0/+315
* infrun.c (handle_inferior_event): Handle presence of single-step breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED. Cancel single-step breakpoints for TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD. * breakpoint.c (detach_single_step_breakpoints): New function. (detach_breakpoints): Call it. (cancel_single_step_breakpoints): New function. * breakpoint.h (cancel_single_step_breakpoints): Add prototype. * spu-tdep.c (spu_memory_remove_breakpoint): New function. (spu_gdbarch_init): Install it. testsuite/ChangeLog: * gdb.cell/fork.exp: New file. * gdb.cell/fork.c: Likewise. * gdb.cell/fork-spu.c: Likewise.
2010-06-23 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrunNathan Sidwell2-6/+11
when scaning map.
2010-06-23gdb/Jan Kratochvil3-101/+77
* configure.ac: Always set RDYNAMIC at least as `-rdynamic'. * configure: Regenerate.
2010-06-23daily updateAlan Modra1-1/+1
2010-06-23*** empty log message ***gdbadmin1-1/+1
2010-06-22gas/Jan Beulich7-16/+38
2010-06-22 Jan Beulich <jbeulich@novell.com> PR gas/11732 * config/tc-i386-intel.c (i386_intel_parse_name): Handle pseudo symbols named "$". (i386_intel_operand): Remove bogus handling of pseudo symbols named "$". * expr.c (current_location): Remove 'static' and local declaration. * expr.h (current_location): Declare. gas/testsuite/ 2010-06-22 Jan Beulich <jbeulich@novell.com> PR gas/11732 * gas/i386/jump.d: Adjust. * gas/i386/jump.s: Add check for branch to 2+$.
2010-06-22 * lib/gdb.exp (banned_variables_traced): New global variable.Pierre Muller2-6/+30
(gdb_init, gdb_finish): Use new variable to avoid multiple tracing. (gdb_init): Use `trace add variable' instead of obsolete `trace variable'.
2010-06-222010-06-21 Stan Shebs <stan@codesourcery.com>Stan Shebs5-8/+16
* gdb.texinfo: Add explicit @node and @appendix for GFDL. * annotate.texinfo: Ditto. * gdbint.texinfo: Ditto. * stabs.texinfo: Ditto.
2010-06-222010-06-22 Hui Zhu <teawater@gmail.com>Hui Zhu7-36/+131
* i386-tdep.c (i386_record_lea_modrm): Change warning to query. (i386_process_record): Ditto. * record.c (record_memory_query): New variable. (_initialize_record): New command "set record memory-query". * record.h (record_memory_query): New extern. 2010-06-22 Hui Zhu <teawater@gmail.com> * gdb.texinfo: (Process Record and Replay): Add documentation for command "set record memory-query".
2010-06-22 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.Doug Evans4-4/+60
* i386-tdep.c (i386_displaced_step_copy_insn): New function. (i386_syscall_p): Change type of lengthp to int. (i386_displaced_step_fixup): Handle kernels that run one past a syscall insn. * i386-linux-tdep.c (i386_linux_init_abi): Use i386_displaced_step_copy_insn instead of simple_displaced_step_copy_insn.
2010-06-22 * gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.Doug Evans2-6/+4
2010-06-22*** empty log message ***gdbadmin1-1/+1
2010-06-22daily updateAlan Modra1-1/+1
2010-06-212010-06-21 Sterling Augustine <sterling@tensilica.com>Sterling Augustine2-4/+12
PR gas/11728 * as.c: Globalize keep_it. (main): Remove keep_it. Move conditional from here... (close_output_file): ...to here.