aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-01-11 PR gdb/9598:Tom Tromey2-4/+8
* breakpoint.c (_initialize_breakpoint): Fix help for "catch catch" and "catch throw".
2012-01-112012-01-11 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+6
* gdb.base/default.exp (core-file): Don't expect "GDB can't read core files on this machine" anymore.
2012-01-11Add test for use of "<block>::<variable>" syntax for locals in watch.Paul N. Hilfinger3-1/+28
First, fix a technical problem with the function recurser. The test sets a watch on local_x at a point where its value is technically undefined. The test is written assuming that the value is not initially 2, but nothing in the C standard guarantees that. Second, augment the existing test for variables in recursive calls to check an equivalent expression that explicitly sets the scope of the local variable being tracked. 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> * gdb.base/watchpoint.c (recurser): Initialize local_x. (main): Repeat recurser call. * gdb.base/watchpoint.exp: Check that 'watch recurser::local_x' is equivalent to 'local_x'.
2012-01-11Add testcase for locals identified with FUNCTION::VAR syntax.Paul N. Hilfinger3-0/+89
This test stops inside a recursive function after a few levels of recursion, goes up some frames, and then accesses a local variable with 'print foo::val' rather than the usual 'print val' to see if the former pays attention to the selected frame. 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> Joel Brobecker <brobecker@adacore.com> * gdb.base/recpar.c, gdb.base/recpar.exp: New files.
2012-01-11Have block_innermost_frame start from selected frame and document.Paul N. Hilfinger7-5/+85
GDB used to search for the frame containing variables in a particular lexical block starting from the current (top) frame, ignoring any currently selected frame. It is not clear why this is desirable for variables that require a frame; why would a user deliberately select one frame and then expect to see the value of a variable in a more recent frame? This change causes block_innermost_frame to start looking from the selected frame, if there is one. It may be unnecessarily conservative: we use get_selected_frame_if_set rather than get_selected_frame in order to avoid the side effect of calling select_frame, which would probably be harmless. Expression-parsing routines previously made the unwarranted assumption that all block-qualified variables (written with the GDB extension <block>::<variable>) are static. As a result, they failed to update innermost_block, which confused the watch commands about when variables in watched expressions went out of scope, and also caused the wrong variables to be watched. This patch also modifies these routines to treat all local variables the same whether or not they are block-qualified. Finally, we add a paragraph to the "Program Variables" section of the texinfo documentation concerning the use of "::" for accessing non-static variables. 2012-01-11 Paul Hilfinger <hilfingr@adacore.com> * gdb/blockframe.c (block_innermost_frame): Start search from selected frame, if present, or otherwise the current frame. * gdb/c-exp.y (variable): Update innermost_block for 'block COLONCOLON NAME' clause. * gdb/m2-exp.y (variable): Ditto. * gdb/objc-exp.y (variable): Ditto. * gdb/doc/gdb.texinfo (Variables): Document use of :: for non-static variables.
2012-01-11*** empty log message ***gdbadmin1-1/+1
2012-01-10 PR python/13199:Tom Tromey2-0/+8
* python/python.c (finish_python_initialization): Set sys.argv.
2012-01-10 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New argDoug Evans2-37/+71
"want_line_info". All callers updated. (dwarf_decode_lines_1): New function. (handle_DW_AT_stmt_list): Add function comment. New arg "want_line_info". All callers updated. (read_file_scope,read_type_unit_scope): Move comment from handle_DW_AT_stmt_list to here.
2012-01-10gdb/Jan Kratochvil4-11/+52
Fix regression after libiberty/ update for GCC PR 6057 and others. * c-exp.y (operator) <OPERATOR DELETE> (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. * cp-name-parser.y (fill_comp, make_operator, make_dtor) (make_builtin_type, make_name): New variable i, add gdb_assert. (operator) <OPERATOR NEW>: Update ARGS to 3. (operator) <OPERATOR DELETE>: Add trailing space. (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3. (operator) <OPERATOR DELETE '[' ']'>: Add trailing space. * cp-support.c (cp_canonicalize_string): Check NULL from cp_comp_to_string, call warning and return.
2012-01-10gdb/Jan Kratochvil24-114/+143
Fix duplicate .o files after omitting libbfd.a. * Makefile.in (ALL_TARGET_OBS): Remove corelow.o. (SFILES): Add corelow.c. (COMMON_OBS): Add corelow.o. (ALLDEPFILES): Remove corelow.c. * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o. * config/alpha/alpha-osf3.mh: Likewise. * config/alpha/fbsd.mh: Likewise. * config/arm/nbsdaout.mh: Likewise. * config/arm/nbsdelf.mh: Likewise. * config/i386/i386gnu.mh: Likewise. * config/ia64/hpux.mh: Likewise. * config/ia64/linux.mh: Likewise. * config/m32r/linux.mh: Likewise. * config/m68k/linux.mh: Likewise. * config/mips/irix5.mh: Likewise. * config/mips/irix6.mh: Likewise. * config/pa/hpux.mh: Likewise. * config/pa/linux.mh: Likewise. * config/powerpc/aix.mh: Likewise. * config/sparc/linux.mh: Likewise. * config/sparc/linux64.mh: Likewise. * config/sparc/sol2.mh: Likewise. * config/vax/vax.mh: Likewise. * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu) (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*) (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*) (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*) (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*) (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*) (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*) (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*) (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*) (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu) (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*) (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*) (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*) (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*) (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*) (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*) (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*) (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu) (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*) (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*) (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*) (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove corelow.o from gdb_target_obs. * corefile.c (core_target): Update the comment on NULL value. (core_file_command): Replace error by gdb_assert on CORE_TARGET. * corelow.c (sniff_core_bfd): Call error instead of warning on zero MATCHES. Drop YUMMY set on NULL. (core_close): Do not call exit_inferior_silent on zero PID. Do not reclaim CORE_DATA if it is already NULL.
2012-01-10*** empty log message ***gdbadmin1-1/+1
2012-01-09 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.Doug Evans3-4/+8
* varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2012-01-09 * breakpoint.c (wrapper.h): Don't include.Keith Seitz2-1/+4
2012-01-09 * Makefile.in (SFILES): Remove wrapper.c.Keith Seitz9-273/+124
(HFILES_NO_SRCDIR): Remove wrapper.h. (COMMON_OBS): Remove wrapper.o. * cli/cli-interp.c: Don't inlude wrapper.h. * corelow.c: Likewise. (core_open): Replace gdb_target_find_new_threads with TRY_CATCH around target_find_new_threads. * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy. * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type. * varobj.c (varobj_create): Likewise for parse_exp_1 and evaluate_expression. (varobj_set_value): Likewise for evaluate_expression and value_assign. (install_new_variable): Likewise for value_fetch_lazy. (adjust_value_for_child_access): Likewise for value_ind. (c_describe_child): Likewise for value_subscript and value_ind. (c_value_of_root): Likewise for evaluate_expression. * wrapper.c: Remove. * wrapper.h: Remove.
2012-01-09 * dwarf2read.c (read_and_check_comp_unit_head): Renamed fromDoug Evans2-97/+103
partial_read_comp_unit_head. Replace "buffer", "buffer_size" and "abfd" args with "section". All callers updated. Error checking code moved ... (error_check_comp_unit_head): ... here. New function. (read_and_check_type_unit_head): Renamed from read_type_unit_head. Delete arg "abfd". New arg "type_offset". All callers updated. (create_debug_types_hash_table): Simplify by using read_and_check_type_unit_head.
2012-01-09 * parser-defs.h (namecopy): Delete.Doug Evans3-23/+22
* parse.c (namecopy, namecopy_size): Move into copy_name.
2012-01-09 * server.c (start_inferior): Set last_ptid in --wrapper case.Doug Evans2-2/+6
2012-01-09gdb/Jan Kratochvil8-7/+18
Partially fix duplicate .o files after omitting libbfd.a. * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o. * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o. * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o. * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o. * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o. * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o. * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2012-01-092012-01-09 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+5
* MAINTAINERS: Update my email address.
2012-01-09*** empty log message ***gdbadmin1-1/+1
2012-01-08 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units toDoug Evans2-25/+31
n_type_units. Rename type_comp_units to all_type_units. All uses updated. (add_signatured_type_cu_to_table): Renamed from add_signatured_type_cu_to_list. All callers updated.
2012-01-08 * gdbtypes.h (struct cplus_struct_type): Delete memberDoug Evans6-20/+5
nfn_fields_total. All uses removed.
2012-01-08*** empty log message ***gdbadmin1-1/+1
2012-01-07*** empty log message ***gdbadmin1-1/+1
2012-01-06 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hardDoug Evans2-71/+33
to top of file. (dwarf2_find_comp_unit): Delete. (process_psymtab_comp_unit): Make result "void". Delete args buffer, info_ptr, buffer_size, and replace with "section". All callers updated. (dwarf2_build_psymtabs_hard): Simplify.
2012-01-06 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): MacroYao Qi2-2/+12
defined. [IN_PROCESS_AGENT] (debug_agent): New global variable.
2012-01-062012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior9-14/+31
Thiago Jung Bauermann <bauerman@br.ibm.com> * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword before `struct gdb_exception'. * breakpoint.c (update_global_location_list_nothrow) (update_breakpoint_locations, enable_breakpoint_disp): Likewise. * cp-abi.c (value_rtti_type): Likewise. * cp-support.c (cp_validate_operator): Likewise. * infrun.c (insert_exception_resume_breakpoint) (check_exception_resume, keep_going): Likewise. * mi-interp.c (mi_breakpoint_created) (mi_breakpoint_modified): Likewise. * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise. * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p) (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2012-01-06*** empty log message ***gdbadmin1-1/+1
2012-01-05 * dwarf2read.c (statement_prologue): Delete, unused.Doug Evans2-23/+2
2012-01-05 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.Doug Evans3-2/+5
* dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2012-01-05 * dwarf2read.c (comp_unit_header): Delete, unused.Doug Evans2-17/+4
2012-01-05 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.Ulrich Weigand3-2/+7
* config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2012-01-052012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>Pedro Alves7-1/+110
* infrun.c (normal_stop): Don't skip calling the normal_stop observers if the thread was doing a multi-step, but stopped for some reason other than stepping. gdb/testsuite/ 2012-01-05 Pedro Alves <alves.ped@gmail.com> * gdb.mi/mi-stepn.c, gdb.mi/mi-stepn.exp: New files. * gdb.python/py-events.c (first): Add bits for new "step N" test. * gdb.python/py-events.exp: Test that "step N" tripping on a breakpoint emits a breakpoint event.
2012-01-052012-01-05 Pedro Alves <alves.ped@gmail.com>Pedro Alves3-97/+28
* cli/cli-decode.h: Add comments. (CMD_LIST_AMBIGUOUS): Moved to command.h (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd) (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq) (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1) (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition) (add_com, add_com_alias, add_info, add_info_alias) (complete_on_cmdlist, complete_on_enum, help_list): Remove declarations. * command.h: Add and adjust comments. (CMD_LIST_AMBIGUOUS): Moved here. (help_cmd, help_cmd_list): Delete declarations.
2012-01-05Document new procedure for updating copyright yearsJoel Brobecker2-29/+8
We now use a different script to perform the update. This patch updates the procedure in our documentation gdb/doc/ChangeLog: * gdbint.texinfo (Start of New Year Procedure): Update to replace use of copyright.sh by use of copyright.py.
2012-01-05*** empty log message ***gdbadmin1-1/+1
2012-01-04 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".Doug Evans2-20/+27
All callers updated. (load_full_type_unit): Renamed from read_signatured_type_at_offset. Replace all arguments with "per_cu". All callers updated.
2012-01-04 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.Doug Evans2-3/+3
2012-01-04 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".Doug Evans2-52/+38
New arg "per_cu". All callers updated.
2012-01-04 Delete #if 0'd out code.Doug Evans3-284/+9
* language.c (binop_result_type): Delete. (simple_type, ordered_type, same_type, integral_type): Delete. (numeric_type, character_type, string_type, boolean_type): Delete. (float_type, structured_type): Delete. * language.h: Update.
2012-01-04 * python/py-value.c (valpy_binop): Initialize 'res_val'.Tom Tromey2-1/+5
2012-01-04Get rid of corefile.c:close_exec_fileJoel Brobecker4-23/+8
The body of this function has been commented out since Jul 1999, and thus seems unnecessary. While at it, remove some commented out code that seems to be related to the function being deleted. gdb/ChangeLog: * corefile.c (close_exec_file): Delete. (reopen_exec_file): Remove commented out code that seems related to close_exec_file, which is being deleted here. * inferior.h (close_exec_file): Delete. * fork-child.c (fork_inferior): Remove call to fork_inferior.
2012-01-04Use skip_spaces and skip_to_space in ada-lang.cJoel Brobecker2-14/+14
This is just a minor cleanup that reduces a bit the code in ada-lang.c by using skip_spaces or skip_to_space, instead of doing the skipping ourselves. gdb/ChangeLog: * ada-lang.c: #include "cli/cli-utils.h". (get_selections): Use skip_spaces. (ada_get_next_arg): Use skip_spaces and skip_to_space. (catch_ada_exception_command_split): Use skip_spaces. (ada_decode_assert_location): Likewise.
2012-01-04gdb/gdbserver/Yao Qi2-1/+6
* tracepoint.c (cmd_qtdp): Print debug message for static tracepoint.
2012-01-04gdb/gdbserver/Yao Qi2-0/+9
* tracepoint.c (trace_vdebug): Differentiate debug message between gdbserver and IPA.
2012-01-04do not call decode_compound with Ada expressions.Joel Brobecker2-21/+38
Trying to insert a breakpoint on `ops."<"', we get the following error: (gdb) b ops."<" malformed template specification in command This is because locate_first_half skips the linespec until the dot, and the decode_line_internal thinks that the dot might mean that we have C++ or Java compound. It then tries calling decode_compound which errors out because it sees the opening angle bracket but not the closing one (I am guessing). This patch short-circuits this part of the code when the current language is Ada. gdb/ChangeLog: * linespec.c (decode_line_internal): Check for C++ or Java compound constructs only if the current language is C, C++ or Java.
2012-01-04gdb/Jan Kratochvil4-34/+32
Revert: 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com> Joel Brobecker <brobecker@adacore.com> Fix regression for gdb.cp/gdb2495.exp with gcc-4.7. * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to 3 times. * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and fall through into AT_ENTRY_POINT. (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust DUMMY_ADDR with it. * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase PPC_INSN_SIZE skip to 3 times.
2012-01-04linespec: keep function descriptors during minimal symbol searchJoel Brobecker2-1/+15
When discarding data (minimal) symbols, we need to be careful to not throw away the function descriptors. This makes a difference on platforms where these descriptors are used and live in a data section. gdb/ChangeLog: * linespec.c (add_minsym): Preserve function descriptors.
2012-01-04 * breakpoint.c (all_locations_are_pending): Consider locationsUlrich Weigand2-1/+7
in program spaces executing during startup pending as well.
2012-01-04Copyright year update in most files of the GDB Project.Joel Brobecker359-509/+398
gdb/ChangeLog: Copyright year update in most files of the GDB Project.