aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-01-27gdb/testsuite/Jan Kratochvil2-4/+10
* gdb.base/break-interp.exp: Use [file tail $filename] to omit any absolute directory pathnames in gdb.sum file.
2010-01-27* windows-nat.c (windows_initialization_done): New variable.Christopher Faylor2-5/+25
(get_windows_debug_event): Issue error when process dies before completely initializing. (do_initial_windows_stuff): Set flag to indicate when we are done with the initial steps of attaching to the child.
2010-01-272010-01-27 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla3-1/+6
* gdb.cp/namespace-using.exp: Rename to nsusing.exp. * gdb.cp/namespace-using.cc: Rename to nsusing.cc.
2010-01-27 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.Doug Evans2-0/+3
2010-01-27gdb/Jan Kratochvil2-1/+6
* symtab.h (struct symbol <symtab>): New comment on NULL values.
2010-01-27*** empty log message ***gdbadmin1-1/+1
2010-01-26 * breakpoint.c (bpstat_stop_status): Delete useless code.Doug Evans2-1/+4
2010-01-26gdb/Jan Kratochvil2-3/+7
* printcmd.c (display_uses_solib_p): Remove variable section. Access objfile via SYMBOL_SYMTAB.
2010-01-26gdbTom Tromey4-2/+13
PR exp/7643: * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call coerce_array on result. gdb/testsuite PR exp/7643: * gdb.base/printcmds.exp (test_print_string_constants): Remove setup_kfail.
2010-01-26 2010-01-14 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla11-16/+444
* gdb.cp/nsrecurs.exp: New test. * gdb.cp/nsrecurs.cc: New test program. * gdb.cp/nsstress.exp: New test. * gdb.cp/nsstress.cc: New test program. * gdb.cp/nsdecl.exp: New test. * gdb.cp/nsdecl.cc: New test program. 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> * cp-namespace.c (cp_lookup_symbol_namespace): Added search_parent argument. (cp_add_using): Initialize 'searched' field. (reset_directive_searched): New function. * cp-support.h: Add 'searched' field to using_direct struct. (cp_lookup_symbol_imports): Ditto. * cp-namespace.c (cp_lookup_symbol_imports): Ditto. Perform recursive search. Implement non parent search. * valops.c (value_maybe_namespace_elt): Updated.
2010-01-262010-01-26 Sami Wagiaalla <swagiaal@redhat.com>Sami Wagiaalla11-74/+421
* gdb.cp/namespace-using.exp: Add test for printing of namespaces imported into file scope. Marked test as xfail. * gdb.cp/namespace-using.cc (marker5): New function. * gdb.cp/shadow.exp: New test. * gdb.cp/shadow.cc: New test program. * gdb.cp/nsimport.exp: New test. * gdb.cp/nsimport.cc: New test program. 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com> PR gdb/10929: * dwarf2read.c (read_lexical_block_scope): Create blocks for scopes which contain using directives even if they contain no declarations. * symtab.c (lookup_symbol_aux): Pass lowest level block to la_lookup_symbol_nonlocal. * cp-namespace.c (cp_lookup_symbol_nonlocal): call cp_lookup_symbol_namespace. (cp_lookup_symbol_namespace): Perform an import lookup at every block level. (cp_lookup_symbol_imports): New function. (cp_lookup_symbol_in_namespace): New function.
2010-01-26*** empty log message ***gdbadmin1-1/+1
2010-01-25gdbTom Tromey4-1/+18
PR gdb/11049: * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer result. gdb/testsuite PR gdb/11049: * gdb.base/printcmds.exp (test_print_typedef_arrays): Add test with "set print null-stop on".
2010-01-25 * configure.ac: Only use host_os part when disabling TUI on osf.Rainer Orth4-7/+15
Use test to check variables, prefix strings with x. * configure: Regenerate. * solib-osf.c (osf_current_sos): Initialize tail.
2010-01-252010-01-25 gingold <gingold@adacore.com>Tristan Gingold2-8/+13
* windows-nat.c (windows_continue): Use %x to print thread id. (get_windows_debug_event): Ditto.
2010-01-25*** empty log message ***gdbadmin1-1/+1
2010-01-24gdb/testsuite/Jan Kratochvil2-1/+6
* gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'): Adjust it for DISASSEMBLY_OMIT_FNAME.
2010-01-24*** empty log message ***gdbadmin1-1/+1
2010-01-23*** empty log message ***gdbadmin1-1/+1
2010-01-22gdbTom Tromey7-47/+432
PR symtab/11199: * dwarf2read.c (quirk_gcc_member_function_pointer): Change return type and arguments. Use smash_to_methodptr_type. (read_structure_type): Call quirk_gcc_member_function_pointer later. * gdbtypes.h (smash_to_methodptr_type): Declare. * gdbtypes.c (smash_to_methodptr_type): New function. (lookup_methodptr_type): Use it. gdb/testsuite 2010-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> PR symtab/11199: * gdb.dwarf2/member-ptr-forwardref.exp, gdb.dwarf2/member-ptr-forwardref.S: New.
2010-01-22*** empty log message ***gdbadmin1-1/+1
2010-01-21 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcachePedro Alves2-1/+7
changes.
2010-01-21gdb/gdbserver/Jan Kratochvil2-5/+12
* linux-s390-low.c (s390_collect_ptrace_register) (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
2010-01-21 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.Doug Evans2-13/+45
(PTRACE_ARG4_TYPE): New macro. (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE. (linux_wait_for_event_1, linux_resume_one_lwp): Ditto. (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE. (usr_store_inferior_registers): Ditto. (linux_read_memory, linux_write_memory): Ditto. (linux_test_for_tracefork): Ditto.
2010-01-21 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.Doug Evans2-2/+9
Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
2010-01-21 PR symtab/11198:Tom Tromey4-30/+45
* symtab.h (lookup_minimal_symbol_and_objfile): Declare. * minsyms.c (lookup_minimal_symbol_and_objfile): New function. * glibc-tdep.c (find_minsym_and_objfile): Remove. (glibc_skip_solib_resolver): Use lookup_minimal_symbol_and_objfile.
2010-01-21 * proc-service.c (ps_lgetregs): Don't refetch registers from thePedro Alves2-1/+5
target.
2010-01-212010-01-21 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-1/+7
* inflow.c (check_syscall): Guard by #if clause for GO32 and WIN32 targets.
2010-01-21 * spu-low.c (spu_fetch_registers, spu_store_registers): ChangePedro Alves2-7/+12
prototype to take a regcache. Adjust.
2010-01-21Improve doc on how to execute a Python script from GDB.Joel Brobecker2-10/+93
* gdb.texinfo (File Options): Adjust the documentation of this switch to refer to the "source" command rather than partially duplicating some of the relevant information. (Extending GDB): Introduce and document the set/show script-extension setting. (Command Files): Add note explaining that the "source" command is also used to evalute scripts written in other languages. Remove the short slightly incorrect reference to sourcing Python scripts. (Python Commands): Document how to execute a Python script from GDB.
2010-01-21*** empty log message ***gdbadmin1-1/+1
2010-01-20 * regcache.h (struct thread_info): Forward declare.Pedro Alves28-457/+664
(struct regcache): New. (new_register_cache): Adjust prototype. (get_thread_regcache): Declare. (free_register_cache): Adjust prototype. (registers_to_string, registers_from_string): Ditto. (supply_register, supply_register_by_name, collect_register) (collect_register_as_string, collect_register_by_name): Ditto. * regcache.c (struct inferior_regcache_data): Delete. (get_regcache): Rename to ... (get_thread_regcache): ... this. Adjust. Switch inferior before fetching registers. (regcache_invalidate_one): Adjust. (regcache_invalidate): Fix prototype. (new_register_cache): Return the new register cache. (free_register_cache): Change prototype. (realloc_register_cache): Adjust. (registers_to_string): Change prototype to take a regcache. Adjust. (registers_from_string): Ditto. (register_data): Ditto. (supply_register): Ditto. (supply_register_by_name): Ditto. (collect_register): Ditto. (collect_register_as_string): Ditto. (collect_register_by_name): Ditto. * server.c (process_serial_event): Adjust. * linux-low.h (regset_fill_func, regset_store_func): Change prototype. (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register): Change prototype. * linux-low.c (get_stop_pc): Adjust. (check_removed_breakpoint): Adjust. (linux_wait_for_event): Adjust. (linux_resume_one_lwp): Adjust. (fetch_register): Add regcache parameter. Adjust. (usr_store_inferior_registers): Ditto. (regsets_fetch_inferior_registers): Ditto. (regsets_store_inferior_registers): Ditto. (linux_fetch_registers, linux_store_registers): Ditto. * i387-fp.c (i387_cache_to_fsave): Change prototype to take a regcache. Adjust. (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change prototype to take a regcache. (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto. * remote-utils.c (convert_ascii_to_int, outreg) (prepare_resume_reply): Change prototype to take a regcache. Adjust. * target.h (struct target_ops) <fetch_registers, store_registers>: Change prototype to take a regcache. (fetch_inferior_registers, store_inferior_registers): Change prototype to take a regcache. Adjust. * proc-service.c (ps_lgetregs): Adjust. * linux-x86-low.c (x86_fill_gregset, x86_store_gregset) (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset) (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to take a regcache. Adjust. * linux-arm-low.c (arm_fill_gregset, arm_store_gregset) (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset) (arm_store_vfpregset, arm_get_pc, arm_set_pc): (arm_breakpoint_at): Change prototype to take a regcache. Adjust. * linux-cris-low.c (cris_get_pc, cris_set_pc) (cris_cannot_fetch_register): (cris_breakpoint_at): Change prototype to take a regcache. Adjust. * linux-crisv32-low.c (cris_get_pc, cris_set_pc, cris_reinsert_addr, cris_write_data_breakpoint): Change prototype to take a regcache. Adjust. (cris_breakpoint_at, cris_insert_point, cris_remove_point): Adjust. * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to take a regcache. Adjust. * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset) (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc, (m68k_set_pc): Change prototype to take a regcache. Adjust. * linux-mips-low.c (mips_get_pc): (mips_set_pc): Change prototype to take a regcache. Adjust. (mips_reinsert_addr): Adjust. (mips_collect_register): Change prototype to take a regcache. Adjust. (mips_supply_register): (mips_collect_register_32bit, mips_supply_register_32bit) (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset) (mips_store_fpregset): Ditto. * linux-ppc-low.c (ppc_supply_ptrace_register, ppc_supply_ptrace_register): Ditto. (parse_spufs_run): Adjust. (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset) (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset) (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to take a regcache. Adjust. * linux-s390-low.c (s390_collect_ptrace_register) (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc) (s390_set_pc): Change prototype to take a regcache. Adjust. (s390_arch_setup): Adjust. * linux-sh-low.c (sh_get_pc, sh_breakpoint_at) (sh_fill_gregset): Change prototype to take a regcache. Adjust. * linux-sparc-low.c (sparc_fill_gregset_to_stack) (sparc_fill_gregset, sparc_store_gregset_from_stack) (sparc_store_gregset, sparc_get_pc): Change prototype to take a regcache. Adjust. (sparc_breakpoint_at): Adjust. * linux-xtensa-low.c (xtensa_fill_gregset): (xtensa_store_gregset): (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc) (xtensa_set_pc): Change prototype to take a regcache. Adjust. * nto-low.c (nto_fetch_registers, nto_store_registers): Change prototype to take a regcache. Adjust. * win32-arm-low.c (arm_fetch_inferior_register) (arm_store_inferior_register): Change prototype to take a regcache. Adjust. * win32-i386-low.c (i386_fetch_inferior_register) (i386_store_inferior_register): Change prototype to take a regcache. Adjust. * win32-low.c (child_fetch_inferior_registers) (child_store_inferior_registers): Change prototype to take a regcache. Adjust. (win32_wait): Adjust. (win32_fetch_inferior_registers): Change prototype to take a regcache. Adjust. (win32_store_inferior_registers): Adjust. * win32-low.h (struct win32_target_ops) <fetch_inferior_register, store_inferior_register>: Change prototype to take a regcache.
2010-01-20gdb/testsuite/Jan Kratochvil2-23/+29
* gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove. (thread1_func): Protect thread1_tid with thread1_tid_cond by thread1_tid_mutex. Remove gdbstop_mutex handling. (thread2_func): Protect thread2_tid with thread2_tid_cond by thread2_tid_mutex. Remove gdbstop_mutex handling. (main): Move thread1_tid_mutex and thread2_tid_mutex locks before pthread_create. Remove gdbstop_mutex handling. New comment. Replace pthread_cond_wait conditionalizations by while loops.
2010-01-20* linux-low.c (W_STOPCODE): Provide definition if missing.Doug Evans2-0/+5
2010-01-20 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN inDoug Evans2-1/+11
#ifdef. (linux_wait_for_event1, linux_init_signals): Ditto.
2010-01-20gdbTom Tromey7-5/+449
PR backtrace/10770: * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case. * dwarf2expr.c (new_dwarf_expr_context): Allocate dwarf_stack_values, not CORE_ADDRs. (execute_stack_op): Change DW_OP_div and comparison operators to use signed operands. gdb/testsuite PR backtrace/10770: * gdb.dwarf2/pr10770.exp: New file. * gdb.dwarf2/pr10770.c: New file. * gdb.dwarf2/Makefile.in (EXECUTABLES): Add pr10770.
2010-01-20 * gdb.mi/mi-async.exp: Remove check for 'async' target, becauseVladimir Prus2-4/+10
that target was removed, and the test always runs native anyway.
2010-01-20 Per-inferior args and tty and environment.Vladimir Prus7-141/+219
* infcmd.c (inferior_args): Rename to ... (inferior_args_scratch): ... this. (inferior_io_terminal): Rename to ... (inferior_io_terminal_scratch): ... this. (inferior_argc, inferior_argv): Remove. (set_inferior_io_terminal, get_inferior_io_terminal): Store inside current_inferior(). (set_inferior_tty_command, show_inferior_tty_command): New. (get_inferior_args, set_inferior_args): Store inside current_inferior(). (notice_args_set): Likewise and rename to... (set_args_command): ... this. (set_inferior_args_vector): Likewise. (notice_args_read): Rename to... (show_args_command): ...new. (tty_command): Remove. (run_command_1): Don't free old args, as they are freed by set_inferior_arg now. (run_no_args_command): Likewise. (inferior_environ): Remove. (run_command_1): Use environment of the current inferior. (environment_info, set_environment_command) (unset_environment_command, path_info, path_command): Likewise. (_initialize_infcmd): Adjust for function and variable renames. Do not init inferior_environ. * inferior.h (set_inferior_arg): Adjust prototype. (struct inferior): New fields args, argc, argv, terminal, environment. (inferior_environ): Remove declaration. * inferior.c (free_inferior): Free new fields. (add_inferior_silent): Initialize 'environment' field. * main.c (captured_main): Set arguments only after the initial inferior has been created. Set set_inferior_io_terminal, not tty_command. * mi/mi-main.c (mi_cmd_env_path): Use environment of the current inferior. (_initialize_mi_cmd_env): Adjust for disappearance of global inferior_environ. * solib.c (solib_find): Use environment of the current inferior.
2010-01-20gdb/Jan Kratochvil2-4/+20
* varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if HAVE_PYTHON. (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
2010-01-20Get rid of ada-lang.c:function_name_from_pc.Joel Brobecker2-18/+16
* ada-lang.c: Add "stack.h" #include. (function_name_from_pc): Delete. (is_known_support_routine): Replace call to function_name_from_pc by call to find_frame_funname. (ada_unhandled_exception_name_addr_from_raise): Likewise.
2010-01-20 PR c++/11026:Tom Tromey2-1/+7
* dwarf2read.c (read_partial_die): Allocate partial DIE's name on objfile obstack.
2010-01-20*** empty log message ***gdbadmin1-1/+1
2010-01-19 * top.c (stop_sig, float_handler, do_nothing): Remove.Tom Tromey2-60/+4
2010-01-19gdb/Jan Kratochvil7-11/+137
* breakpoint.c (watchpoint_check): Check the call gdbarch_in_function_epilogue_p before calling frame_find_by_id. Extend the comment. * config/djgpp/fnchange.lst: Add translations for watchpoint-cond-gone.exp, watchpoint-cond-gone.c and watchpoint-cond-gone-stripped.c. gdb/testsuite/ * gdb.base/watchpoint-cond-gone.exp, gdb.base/watchpoint-cond-gone.c, gdb.base/watchpoint-cond-gone-stripped.c: New.
2010-01-19gdbTom Tromey5-5/+29
PR c++/8000: * dwarf2read.c (partial_die_parent_scope): Put enumeration type into parent scope, and enumerator into grandparent scope. gdb/testsuite PR c++/8000: * gdb.cp/namespace.exp: Use new enum. Fix line numbers in existing tests. * gdb.cp/namespace.cc (AAA::SomeEnum): New enum. (main): Use AAA::SomeEnum.
2010-01-19 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.Joel Brobecker2-0/+13
2010-01-19Fix typo in GDB documentation.Joel Brobecker2-1/+5
* gdb.texinfo (Command Files): Fix typo.
2010-01-19Add configure handling of x86_64-*-solaris2.1[0-9]*Joel Brobecker3-2/+9
* configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of i[34567]86-*-solaris2.1[0-9]*. * configure.tgt: Likewise.
2010-01-19 * NEWS: Document the source command enhancement allowing itJoel Brobecker2-0/+23
to load Python scripts. Document the "set/show script-extension" commands.
2010-01-19Add -Wunused-function to compile flags.Joel Brobecker3-2/+10
* configure.ac: Add -Wunused-function to build_warnings. * configure: Regenerate.