aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-01-162012-01-16 Pedro Alves <palves@redhat.com>Pedro Alves473-1888/+4
Remove all calls to strace.
2012-01-16*** empty log message ***gdbadmin1-1/+1
2012-01-15*** empty log message ***gdbadmin1-1/+1
2012-01-14 * NEWS: Update text for "maint set python print-stack".Doug Evans2-4/+14
It is deprecated in gdb 7.4 and deleted in 7.5.
2012-01-14gdb/testsuite/Jan Kratochvil3-0/+131
* gdb.dwarf2/dw2-namespaceless-anonymous.S: New file. * gdb.dwarf2/dw2-namespaceless-anonymous.exp: New file.
2012-01-14*** empty log message ***gdbadmin1-1/+1
2012-01-132012-01-13 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+8
* server.c (attach_inferior): Clear `cont_thread'.
2012-01-132012-01-13 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+15
* server.c (main): Avoid infinite loop while detaching/killing after a longjmp.
2012-01-132012-01-13 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov3-3/+8
* gdb.base/attach-pie-misread.exp: Pass -pie only to the linker. * gdb.base/pie-execl.exp: Likewise.
2012-01-13gdb/doc/Jan Kratochvil2-0/+26
* gdbint.texinfo (Coding Standards): Require braces for two lines of code.
2012-01-13Avoid compiler warnings in gdb_curses.h on MinGW.Eli Zaretskii2-0/+13
See http://sourceware.org/ml/gdb-patches/2012-01/msg00298.html for more details about the problem. gdb/gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before including curses.h.
2012-01-13*** empty log message ***gdbadmin1-1/+1
2012-01-12gdb/Jan Kratochvil3-10/+25
* configure: Regenerate. * config.in: Regenerate.
2012-01-12 PR mi/10586Keith Seitz2-27/+145
* varobj.c (ANONYMOUS_STRUCT_NAME): Define. (ANONYMOUS_UNION_NAME): Define. (is_path_expr_parent): New function. (get_path_expr_parent): New function. (is_anonymous_child): New function. (create_child_with_value): If the child is anonymous and without a name, assign an object name to it. (c_describe_child): Use get_path_expr_parent to determine the parent expression. If there field represents an anonymous struct or union and has no name, set an appropriate display name and expression. (cplus_describe_child): Likewise.
2012-01-12 PR mi/10586Keith Seitz5-0/+279
* gdb.mi/var-cmd.c (struct anonymous): New structure. (do_anonymous_type_tests): New function. (main): Call do_anonymous_type_tests. * gdb.mi/mi2-var-child.exp: Add anonymous type tests. (verify_everything): New procedure. * gdb.mi/mi-var-cp.cc (class A): New class. (anonymous_structs_and_unions): New function. (main): Call anonymous_structs_and_unions. * gdb.mi/mi-var-cp.exp: Add anonymous type tests. (verify_everything): New procedure.
2012-01-12 * lib/mi-support.exp: Expand comments about PATH_EXPR.Keith Seitz2-12/+68
(varobj_tree::get_path_expr): Assume that all varobjs are compound unless they are known simple types. Adjust path expressions based on parent type, path parent type, and tree language. (varobj_tree::walk_tree): Add LANGUAGE parameter and save it into the root varobj. (mi_walk_varobj_tree): Add LANGUAGE parameter.
2012-01-122012-01-12 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+9
* i386-tdep.c (i386_frame_cache_1): Also mark the frame base as available when %ebp is found to be zero (outermost).
2012-01-12*** empty log message ***gdbadmin1-1/+1
2012-01-12Trivial cleanup: kill trailing whitespacePaul Pluzhnikov1-4/+4
2012-01-112012-01-11 Andreas Tobler <andreast@fgznet.ch>Andreas Tobler3-2/+9
* common/gdb_assert.h (gdb_static_assert): Rename static_assert to an internal gdb_static_assert. * mi/mi-common.c: Rename static_assert to gdb_static_assert.
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.