aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations ofDoug Evans2-3/+11
"mov %rsp,%rbp".
2012-04-06gdb/testsuite/Jan Kratochvil2-2/+7
* gdb.trace/change-loc.exp (tracepoint_change_loc_1) (tracepoint_change_loc_2): Accept both orders of pending set_tracepoint.
2012-04-06*** empty log message ***gdbadmin1-1/+1
2012-04-05 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): FixKevin Buettner2-4/+16
fencepost error. (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS. (v850_gdbarch_init): Set `num_regs' as appropriate for the architecture.
2012-04-05linespec rewrite:Keith Seitz17-1609/+2271
* linespec.c (decode_compound): Remove. (enum offset_relative_sign): New enum. (struct line_offset): New struct. (struct linespec): New struct. (struct linespec_state): Move file_symtabs, user_filename, and user_function into struct linespec. Make result an anonymous struct holding vectors of symbolp and minsym_and_objfile_d. Add language member. (enum ls_token_type): New enum. (linespec_keywords): New array. (struct ls_token): New struct. (struct ls_parser): New struct. (linespec_lexer_lex_number): New function. (linespec_lexer_lex_keyword): New function. (is_ada_operator): New function. (skip_quote_char): New function. (copy_token_string): New function. (is_closing_quote_enclosed): New function. (find_parameter_list_end): New function. (linespec_lexer_lex_string): New function. (linespec_lexer_lex_one): New function. (linespec_lexer_consume_token): New function. (linespec_lexer_peek_token): New function. (cplusplus_error): Remove unused function. (find_methods): Update comment. (find_toplevel_char): Return const. (is_objc_method_format): Remove unused function. (find_toplevel_string): New function. (is_linespec_boundary): Remove. (symbol_not_found_error): New function. (find_method_overload_end): Remove function. (unexpected_linespec_error): New function. (keep_name_info): Remove. (linespec_parse_line_offset): New function. (linespec_parse_basic): New function. (canonicalize_linespec): New function. (decode_line_internal): Remove. (create_sals_line_offset): New function adapted from decode_all_digits. (convert_linespec_to_sals): New function. (parse_linespec): New function. (linespec_parser_new): New function. (linespec_state_destructor): Change parameter type to struct linespec_state *. Add language parameter. Remove freeing of moved members. (linespec_parser_delete): New function. (decode_line_full): Use parse_linespec and linespec_parser_new. (decode_line_1): Likewise. (decode_indirect): Rename to ... (linespec_expression_to_pc): ... this and rewrite to simply find CORE_ADDR, storing this result for later conversion to SALs. (locate_first_half): Remove. (deocde_objc): Add parameter LS. Initialize new struct collect_info members. Handle minimal symbols, too. (decode_compound): Delete. (lookup_prefix_sym): Rewrite. (compare_msymbols): New function. (find_method): Rewrite. Do not call cplusplus_error. (symtabs_from_filename): Rewrite. (collect_function_symbols): Delete. (find_function_symbols): Rewrite without ARGPTR-style processing. (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.) (decode_dollar): Adapted and renamed to ... (linespec_parse_variable): ... this. (find_linespec_symbols): New function. (decode_label): Adapted and renamed to ... (find_label_symbols): ... this. (decode_digits_list_mode): Add and use LS argument. (decode_digits_ordinary): Likewise. (collect_symbols): Do not collect SALs, just symbols and msymbols. If in list mode, allow any symbol class. Otherwise, only permit LOC_BLOCK symbols. (minsym_found): Update comments. (search_minsyms_for_name): Do not convert the matching symbol into a SAL. Simply push the symbol and objfile into the result vector. (decode_variable): Delete. Contents adapted into find_linespec_symbols. * cp-support.c (SKIP_SPACE): Remove. (operator_tokens): Remove unused global. (cp_validate_operator): Remove. * cp-support.h (cp_validate_operator): Remove declaration. * gdb.base/advance.exp: Update error message for "advance malformed" test. * gdb.base/break.exp: Likewise for "breakpoint with trailing garbage" test. * gdb.base/hbreak2.exp: Likewise for "hardware breakpoint with trailing garbage" test. * gdb.base/jump.exp: Likewise for "jump with trailing argument junk" test. * gdb.base/sepdebug.exp: Likewise for "breakpoint with trailng garbage" test. * gdb.base/until.exp: Likewise for "malformed until" test. * gdb.cp/ovldbreak.exp: Create the breakpoint table for "breakpoint info (after setting on all)". * gdb.cp/userdef.exp: Remove quoting for "break A2::operator+" tests. * gdb.cp/cplabel.cc: New file. * gdb.cp/cplabel.exp: New test. * gdb.linespec/ls-errs.c: New file. * gdb.linespec/ls-errs.exp: New test.
2012-04-052012-04-05 Pedro Alves <palves@redhat.com>Pedro Alves2-3/+10
-Werror=strict-aliasing * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned pointer.
2012-04-05*** empty log message ***gdbadmin1-1/+1
2012-04-042012-04-04 Pedro Alves <palves@redhat.com>Pedro Alves2-11/+21
* linux-sparc-low.c (sparc_fill_gregset_to_stack) (sparc_store_gregset_from_stack, sparc_store_gregset) (sparc_breakpoint_at): Fix formatting.
2012-04-04*** empty log message ***gdbadmin1-1/+1
2012-04-03gdb/Jan Kratochvil6-22/+49
* cp-valprint.c (cp_print_value_fields): Check valprint_check_validity for TYPE_VPTR_FIELDNO. * valprint.c (valprint_check_validity): Make it global, move the function comment ... * value.h (valprint_check_validity): ... to this new declaration. gdb/testsuite/ * gdb.trace/unavailable.exp (collect globals: print object on: print derived_partial) (collect globals: print object on: print derived_whole) (collect globals: print object off: print derived_partial) (collect globals: print object off: print derived_whole): Update expected output.
2012-04-03*** empty log message ***gdbadmin1-1/+1
2012-04-022012-04-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-18/+24
* i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use the STATE32 api for i386 state. (i386_darwin_store_inferior_registers): Likewise.
2012-04-022012-04-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold3-7/+14
* i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix SS offset. * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix format_string.
2012-04-022012-04-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+22
PR gdb/13901 * darwin-nat.c (darwin_execvp): Sey binary preference.
2012-04-02gdb/Jan Kratochvil2-1/+5
* NEWS (set breakpoint condition-evaluation): Use imperative mood.
2012-04-02*** empty log message ***gdbadmin1-1/+1
2012-04-01*** empty log message ***gdbadmin1-1/+1
2012-03-31*** empty log message ***gdbadmin1-1/+1
2012-03-30 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_tThiago Jung Bauermann5-0/+73
are available. * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef. [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise. * config.in: Regenerate. * configure: Likewise.
2012-03-30 * python/python.c (gdbpy_decode_line): Move cleanup creation outTom Tromey3-9/+30
of TRY_CATCH. Fix error handling. * python/py-value.c (convert_value_from_python): Move 'old' declaration to innermost scope.
2012-03-30 * gdb.python: Add test for linespecs with commas.Keith Seitz2-0/+7
2012-03-30*** empty log message ***gdbadmin1-1/+1
2012-03-29Rename variables in ada-lang.c:ada_make_symbol_completion_list.Joel Brobecker2-12/+21
This renaming allows us to have variable names that are consistent with the names of the parameters in the functions where these variables are used. This also allows us to avoid a -Wshadow warning in the case of variable "wild_match", which is now renamed to "wild_match_p". gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (ada_make_symbol_completion_list): Rename parameters "wild_match" and "encoded" into "wild_match_p" and "encoded_p". Adjust code accordingly.
2012-03-29Rename "encoded" parameter in ada-lang.c:symbol_completion_add...Joel Brobecker2-3/+9
... This is mostly to be consistent with the style used for the other parameter of the same kind ("wild_match_p") in that function. gdb/ChangeLog: * ada-lang.c (symbol_completion_add): Rename parameter "encoded" into "encoded_p". Ajust code and documentation accordingly.
2012-03-29Rename "wild_match" parameter in ada-lang.c:symbol_completion_add...Joel Brobecker2-3/+11
... to avoid a -Wshadow warning. gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (symbol_completion_add): Rename parameter "wild_match" into wild_match_p. Update code and documentation accordingly.
2012-03-29Rename "encoded" parameter in ada-lang.c:symbol_completion_match...Joel Brobecker2-4/+10
... This is mostly to be consistent with the style used for the other parameter of the same kind ("wild_match_p") in that function. gdb/ChangeLog: * ada-lang.c (symbol_completion_match): Rename parameter "encoded" into "encoded_p". Ajust code and documentation accordingly.
2012-03-29Rename "wild_match" parameter in ada-lang.c:symbol_completion_matchJoel Brobecker2-3/+11
gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (symbol_completion_match): Rename parameter "wild_match" into "wild_match_p". Adjust code and function documentation accordingly.
2012-03-29rename "symbol_info" to "sym_info" in ada-lang.c...Joel Brobecker2-10/+18
... to avoid a -Wshadow warning with a symbol exported by BFD. gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter "symbol_info" into "info". Adjust code accordingly. (ada_lookup_symbol): Likewise.
2012-03-29Minor reformatting of ada_lookup_symbol_list's documentation.Joel Brobecker2-5/+10
This patch mostly removes a few trailing spaces. gdb/ChangeLog: * ada-lang.c (ada_lookup_symbol_list): Minor reformatting of this function's documentation.
2012-03-29Rename "wild_match" variable in ada-lang.c:ada_lookup_symbol_listJoel Brobecker2-4/+11
... to avoid -Wshadow warning... gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match" variable into "wild_match_p". Adjust code accordingly.
2012-03-29Rename "wild_match" parameter in ada-lang.c:ada_add_local_symbolsJoel Brobecker2-3/+14
... to avoid -Wshadow warning... gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (ada_add_local_symbols): Rename "wild_match" parameter into "wild_match_p". Adjust code accordingly. Document this parameter in the function description.
2012-03-29Rename "wild_match" parameter in add_symbols_from_enclosing_procsJoel Brobecker2-3/+10
gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (add_symbols_from_enclosing_procs): Rename "wild_match" parameter to "wild_match_p" (-Wshadow).
2012-03-29Remove trailing spaces in ada-lang.c:ada_lookup_simple_minsym doc.Joel Brobecker2-2/+7
gdb/ChangeLog: * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces in function documentation.
2012-03-29Fix -Wshadow warning in ada-lang.c:ada_lookup_simple_minsymJoel Brobecker2-2/+9
gdb/ChangeLog: -Wshadow warning fix. * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local variable into wild_match_p. Adjust code accordingly.
2012-03-292012-03-29 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+6
* linux-low.c (regsets_store_inferior_registers) [__sparc__]: Correct ptrace arguments.
2012-03-29Fix -Wshadow error in ada-valprint.cJoel Brobecker2-32/+46
gdb/ChangeLog: * ada-valprint.c (ada_val_print_1): Move the code handling TYPE_CODE_ENUM inside its own lexical block. Declare variables len and val there, instead of in the function's top level block. Avoid declaring deref_val again in a way that shadows another variable of the same name declared in one of the up-level blocks. Just re-use the up-level variable instead.
2012-03-29Make ada_lookup_encoded_symbol "return" a struct ada_symbol_infoJoel Brobecker4-36/+56
This makes ada_lookup_encoded_symbol more consistent with other functions such as ada_lookup_symbol_list, and also makes it clearer in the code using that function that symbol and block are related. gdb/ChangeLog: * ada-lang.c (ada_lookup_encoded_symbol): Now returns void. Replace block_found argument by symbol_info. Adjust implementation accordingly. Add function documentation. (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol. Fix documentation. * ada-lang.h (ada_lookup_encoded_symbol): Update declaration. * ada-exp.y (write_object_renaming): Adjust to new ada_lookup_encoded_symbol API.
2012-03-29[Ada] struct ada_symbol_info minor reformatting & doc update.Joel Brobecker2-5/+14
gdb/ChangeLog: * ada-lang.h (struct ada_symbol_info): Reformat. Improve documentation.
2012-03-29Commit gdb and sim support for v850e2 and v850e2v3 on behalf ofKevin Buettner2-3/+145
Rathish C <Rathish.C@kpitcummins.com>.
2012-03-29*** empty log message ***gdbadmin1-1/+1
2012-03-28[NEWS] Announce support for Ada varobj support.Joel Brobecker2-0/+6
gdb/ChangeLog: * NEWS: Add entry for Ada varobj support.
2012-03-28[doco] document the "type_changed" flag further.Joel Brobecker2-0/+12
gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Variable Objects): Document what happens to the children of a varobj and its update range when -var-update returns that the varobj's type changed.
2012-03-28New varobj language callback: value_is_changeable_p.Joel Brobecker2-54/+91
This patch introduces a new language-specific callback for varobj objects, allowing us to move the language-specific bits of the varobj_value_is_changeable_p routine to language-specific functions. This is more elegant than testing for the varobj's language... gdb/ChangeLog: * varobj.c (default_value_is_changeable_p): New function, extracted from varobj_value_is_changeable_p. Add declaration. (ada_value_is_changeable_p): New function, extracted from varobj_value_is_changeable_p. Add declaration. (struct language_specific): New field "value_is_changeable_p". (languages): Add entries for new field. (varobj_create): Set language before calling install_new_value. (varobj_value_is_changeable_p): Reimplement to call the varobj's "value_is_changeable_p" language callback.
2012-03-28Varobj support for Ada.Joel Brobecker5-9/+1032
This patch adds varobj support for Ada variables. Most of the code is implemented in a separate Ada-specific file called ada-varobj.c. The only bits in varobj.c are the functions used as the hooks in the language-specific varobj's vector. gdb/ChangeLog: * ada-varobj.h, ada-varobj.c: New files. * Makefile.in (SFILES): Add ada-varobj.c. (HFILES_NO_SRCDIR): Add ada-varobj.h. (COMMON_OBS): Add ada-varobj.o.
2012-03-28framework for varobj type mutationJoel Brobecker2-8/+115
This patch introduces the framework necessary to support type mutations. The only language that currently provides a language-specific hook for that feature is Ada, but the hook remain unimplemented for now. The actual implementation is tied to the rest of the varobj code for Ada, and thus will be provided then. gdb/ChangeLog: * varobj.c (ada_value_has_mutated): Add declaration. New function. (struct language_specific): New field "value_has_mutated". (languages): Set field "value_has_mutated" in each entry of array. (varobj_value_has_mutated): New function. (varobj_udpdate): Add handling of type mutation. (value_of_root): Add handling of type mutation. (ada_value_has_mutated): New function.
2012-03-282012-03-28 Pedro Alves <palves@redhat.com>Pedro Alves18-2/+102
* linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC. (IA64_GR0_REGNUM, IA64_FR0_REGNUM) (IA64_FR1_REGNUM): New defines. (ia64_fetch_register): New. (the_low_target): Install it. * linux-low.h (struct linux_target_ops) <fetch_register>: New field. * linux-low.c (linux_fetch_registers): Try the the_low_target.fetch_register hook first. * linux-arm-low.c (the_low_target): Adjust. * linux-bfin-low.c (the_low_target): Adjust. * linux-cris-low.c (the_low_target): Adjust. * linux-crisv32-low.c (the_low_target): Adjust. * linux-m32r-low.c (the_low_target): Adjust. * linux-m68k-low.c (the_low_target): Adjust. * linux-mips-low.c (the_low_target): Adjust. * linux-ppc-low.c (the_low_target): Adjust. * linux-s390-low.c (the_low_target): Adjust. * linux-sh-low.c (the_low_target): Adjust. * linux-sparc-low.c (the_low_target): Adjust. * linux-tic6x-low.c (the_low_target): Adjust. * linux-x86-low.c (the_low_target): Adjust. * linux-xtensa-low.c (the_low_target): Adjust.
2012-03-282012-03-28 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+39
* ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register): Always supply $fr0 as 0.0 and $fr1 as 1.0.
2012-03-28 * python/py-inferior.c (infpy_read_memory): Remove cleanups andTom Tromey2-12/+14
explicitly free 'buffer' on exit paths. Decref 'membuf_object' before returning.
2012-03-28 * .dir-locals.el: New file.Tom Tromey2-0/+28
2012-03-28 * gdb.linespec/ls-dollar.cc: New file.Keith Seitz3-1/+70
* gdb.linespec/ls-dollar.exp: New test.