aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-07-28Add missing gettext markup.Joel Brobecker3-2/+7
gdb/ChangeLog: * remote.c (remote_download_tracepoint): Add missing gettext markup. * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2010-07-28[PATCH] breakpoint_re_set fails while connecting to gdbserver.Joel Brobecker2-1/+6
This is a problem that I noticed on GNU/Linux, when using both GDB and GDBserver to debug an Ada program. To reproduce, use any Ada program, built with debug info ("gnatmake -g ..."). Then start the program with gdbserver: % gdbserver :4444 simple_main And then insert a breakpoint using the name of an Ada function, followed by connecting to the target server: (gdb) b simple.test_simple Breakpoint 1 at 0x401f28: file simple.adb, line 16. (gdb) tar rem :4444 Remote debugging using :4444 Reading symbols from /lib64/ld-linux-x86-64.so.2... Reading symbols from /usr/lib/debug/lib/ld-2.11.1.so...done. done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 !! -> Error in re-setting breakpoint 1: Can't find member of namespace, class, !! -> struct, or union named "simple.test_simple" !! -> Hint: try 'simple.test_simple<TAB> or 'simple.test_simple<ESC-?> !! -> (Note leading single quote.) 0x00007f4db3cf2af0 in _start () from /lib64/ld-linux-x86-64.so.2 Created trace state variable $trace_timestamp for target's variable 1. The problem is related to the fact that GDB found debug symbols for ld.so in /usr/lib/debug. For debugger configured with a prefix that is different from /usr, one way to force the problem to reproduce is to use: (gdb) set debug-file-directory /usr/lib/debug (assuming that debug info has been installed at that location). The problem is that the wrong language is used to parse the breakpoint location because it gets changed from under us as a side effect of some of the code that we do in prepration for re-parsing. In particular, breakpoint_re_set_one reads: set_language (b->language); input_radix = b->input_radix; s = b->addr_string; save_current_space_and_thread (); switch_to_program_space_and_thread (b->pspace); marker_spec = b->type == bp_static_tracepoint && is_marker_spec (s); [if (marker_spec) decode_tracepoint_spec (...) else decode_line_1] What happens in our case is that debugging information gets found for ld.so. As a result, the current_frame language is C whereas it would have been unknown if we did not have debugging info. And save_current_space_and_thread() implicitly causes the current frame to be selected, which changes the language automatically if the new language is not uknown and the the language mode is auto. The fix, until all parsing routines (including decode_line_1) get upgraded to take a language, is to select the breakpoint language as late as possible. In this case, we don't need to do that until we actually try to parse the breakpoint addr_string. gdb/ChangeLog: * breakpoint.c (breakpoint_re_set_one): Move call to set_language down, just before the block that parse the breakpoint addr_string.
2010-07-28gdbTom Tromey14-40/+532
PR c++/9946: * symfile.c (reread_symbols): Clear template_symbols. * symtab.h (struct symbol) <is_cplus_template_function>: New field. (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro. (struct template_symbol): New. * symtab.c (lookup_symbol_aux_local): Use cp_lookup_symbol_imports_or_template. * objfiles.h (struct objfile) <template_symbols>: New field. * objfiles.c (relocate_one_symbol): New function. (objfile_relocate1): Use it. Relocate isolated symbols. * gdbtypes.h (struct cplus_struct_type) <n_template_arguments, template_arguments>: New fields. (TYPE_N_TEMPLATE_ARGUMENTS): New macro. (TYPE_TEMPLATE_ARGUMENTS): Likewise. (TYPE_TEMPLATE_ARGUMENT): Likewise. (lookup_typename): Update. * gdbtypes.c (lookup_typename): Constify "block" argument. * dwarf2read.c: Include vec.h. (symbolp): New typedef. (read_func_scope): Read template arguments. Allocate a template_symbol when needed. (read_structure_type): Read template arguments. (new_symbol_full): New function, from new_symbol. Handle DW_TAG_template_type_param and DW_TAG_template_value_param. (new_symbol): Rewrite as wrapper. * cp-support.h (cp_lookup_symbol_imports_or_template): Declare. * cp-namespace.c: Include language.h. (search_symbol_list): New function. (cp_lookup_symbol_imports_or_template): Likewise. gdb/testsuite PR c++/9946: * gdb.cp/temargs.exp: New file. * gdb.cp/temargs.cc: New file.
2010-07-282010-07-28 Balazs Kezes <rlblaster@gmail.com>Pedro Alves2-0/+11
* tui/tui-win.c (make_visible_with_new_height): Resize and move the command window to the new size and position.
2010-07-28tabs vs spacesPedro Alves1-3/+3
2010-07-28 * tui/tui-win.c (tui_resize_all): Update the locator's origin'sPedro Alves2-0/+6
coordinates.
2010-07-282010-07-28 Balazs Kezes <rlblaster@gmail.com>Pedro Alves3-1/+8
* tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all after a detecting a resize. * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to call.
2010-07-28 * configure.ac: Check for resize_term.Pedro Alves4-2/+10
* configure, config.in: Regenerate.
2010-07-28misordered names in Write After Approval listJoel Brobecker2-2/+6
This patch moves a couple of write-after-approval names up to keep the list in alphabetical order. 2010-07-27 Joel Brobecker <brobecker@adacore.com> * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2010-07-28Minor (space) reformatting.Joel Brobecker1-1/+1
2010-07-28*** empty log message ***gdbadmin1-1/+1
2010-07-27gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/help.exp (help disassemble): Update the content.
2010-07-27 * dwarf2read.c (read_string): Rename to ...Pedro Alves2-11/+18
(read_direct_string): ... this. (skip_one_die, read_attribute_value, dwarf_decode_line_header) (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2010-07-27gdb/Jan Kratochvil2-9/+24
* linux-nat.c (linux_nat_lp_status_is_event): New function. (count_events_callback, select_event_lwp_callback) (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2010-07-27gdb/Jan Kratochvil7-7/+499
* ia64-linux-nat.c (ia64_linux_status_is_event): New function. (_initialize_ia64_linux_nat): Install it. * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event) (linux_nat_set_status_is_event): New. (stop_wait_callback, count_events_callback, select_event_lwp_callback) cancel_breakpoints_callback, linux_nat_filter_event) (linux_nat_wait_1): Use linux_nat_status_is_event. * linux-nat.h (linux_nat_set_status_is_event): New prototype. gdb/testsuite/ * gdb.threads/ia64-sigill.exp: New file. * gdb.threads/ia64-sigill.c: New file.
2010-07-27 * NEWS: Mention labels, .gdb_index.Tom Tromey2-0/+13
2010-07-27* cli/cli-cmds.c (disassemble_command): Add support of disassembleCheng Renquan5-11/+61
"start,+length" form of arguments.
2010-07-27gdb/Jan Kratochvil3-2/+13
* top.c (input_from_terminal_p): Return 0 on BATCH_FLAG. * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG. (fputs_maybe_filtered): Do not do filtering also on ! INPUT_FROM_TERMINAL_P.
2010-07-27Fix file name mentioned in this entry:Doug Evans1-1/+1
2010-07-27 Ken Werner <ken.werner@de.ibm.com> * dwarf2read.c (dwarf2_read_index): Initialize the types_list and types_list_elements variables.
2010-07-27 * gdb.opt/inline-cmds.c (ATTR): New define.Tom Tromey5-10/+52
(func1): Use it. (func2): Likewise. (func3): Likewise. (outer_inline1): Likewise. (outer_inline2): Likewise. * gdb.opt/inline-bt.c (ATTR): New define. (func1): Use it. (func2): Likewise. * gdb.opt/inline-locals.c (ATTR): New define. (func1): Use it. (func2): Likewise.
2010-07-27 * gdb.stabs/gdb11479.c (hack): New function.Tom Tromey4-8/+33
(test): Use it. (test2): Use it. * gdb.python/py-inferior.c (int8_search_buf, int16_search_buf) (int32_search_buf, int64_search_buf): No longer static. (x): Remove. * gdb.base/relocate.c (hack): New function.
2010-07-27ARI fix (trailing newline in warning message).Joel Brobecker2-1/+6
* dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline in warning message.
2010-07-272010-07-27 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon7-1/+126
* python/py-value.c (valpy_call): New Function. 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-value.exp (test_inferior_function_call): New function. * gdb.python/py-value.c (func1): New function. (func2): Likewise. 2010-07-27 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Values From Inferior): Add value inferior function call description.
2010-07-27* valops.c (dwarf2_read_index): Initialize the types_list and ↵Ken Werner2-2/+9
types_list_elements variables.
2010-07-27*** empty log message ***gdbadmin1-1/+1
2010-07-26 * dwarf2loc.c (locexpr_describe_location_piece): Also recognizeTom Tromey2-5/+14
TLS with DW_OP_const4u or DW_OP_const8u.
2010-07-26 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to getThiago Jung Bauermann2-1/+6
VSX registers contents.
2010-07-26 * gdb.asm/xstormy16.inc (gdbasm_startup): Fix beginning of stack soCorinna Vinschen2-1/+6
as not to clash with .data section.
2010-07-26gdb/testsuite/Jerome Guitton4-0/+251
* gdb.base/code_elim.exp: New file. * gdb.base/code_elim1.c: New file. * gdb.base/code_elim2.c: New file.
2010-07-26gdb/Jerome Guitton2-5/+29
* dwarf2read.c (add_partial_symbol): Do not add a global variable if its adress is null. Add comment to explain why. (new_symbol): Ditto.
2010-07-26*** empty log message ***gdbadmin1-1/+1
2010-07-25gdb/gdbserver/Jan Kratochvil3-2/+9
* server.c (handle_target_event): Use target_signal_to_host for resume_info.sig initialization. * target.h (struct thread_resume) <sig>: New comment.
2010-07-25gdb/Jan Kratochvil2-6/+10
* linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to the host signal first.
2010-07-25*** empty log message ***gdbadmin1-1/+1
2010-07-24*** empty log message ***gdbadmin1-1/+1
2010-07-23 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,Tom Tromey2-58/+322
type_comp_units>: New fields. (dw2_get_cu): New function. (create_cus_from_index): Remove unused argument. (create_signatured_type_hash_from_index): New function. (create_addrmap_from_index): Update. (dwarf2_read_index): Handle version 2. (dw2_find_last_source_symtab, dw2_forget_cached_source_info) (dw2_lookup_symtab, dw2_do_expand_symtabs_matching) (dw2_print_stats, dw2_expand_all_symtabs) (dw2_expand_symtabs_with_filename, dw2_find_symbol_file) (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update. (dwarf2_initialize_objfile): Call create_debug_types_hash_table. (allocate_signatured_type_hash_table): New function. (add_signatured_type_cu_to_list): Likewise. (create_debug_types_hash_table): Use them. Set type_comp_units. (read_signatured_type): Ensure section data is available. (add_address_entry): Don't record empty ranges. (struct signatured_type_index_data): New. (write_one_signatured_type): New function. (write_psymtabs_to_index): Write type CUs. (save_gdb_index_command): Update comment. (process_type_comp_unit): Move inititalization of from_debug_types... (create_debug_types_hash_table): ... here.
2010-07-23gdb/Jan Kratochvil2-20/+12
* gdb_gcore.sh (tmpfile): Remove the variable, its initialization, cleanup and generating of gdb script to it. (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination and terminal size. Convert $tmpfile to a series of -ex-es.
2010-07-23 * symtab.c (basic_lookup_transparent_type): Call pre-expandKeith Seitz2-6/+18
hook for STATIC_BLOCK types, too.
2010-07-23 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptrKeith Seitz2-3/+5
and vector definition.
2010-07-23gdb/Jan Kratochvil2-1/+4
* linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2010-07-23*** empty log message ***gdbadmin1-1/+1
2010-07-22gdb/Jan Kratochvil2-4/+15
* dwarf2read.c: Include completer.h. (save_gdb_index_command): Use matching usage command name. (_initialize_dwarf2_read): New variable c, initialize it by add_cmd. Set filename_completer for it.
2010-07-22 * dwarf2read.c (create_debug_types_hash_table): Set objfile onTom Tromey2-0/+6
type signature's per-CU data.
2010-07-22 * NEWS: Mention target reported shared libraries support byPedro Alves2-0/+13
default.
2010-07-22*** empty log message ***gdbadmin1-1/+1
2010-07-21gdb/Pedro Alves5-4/+31
2010-07-21 Pedro Alves <pedro@codesourcery.com> PR symtab/11827 Revert: 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr> * dwarf2read.c (process_die): Also allow DW_TAG_const_type and DW_TAG_volatile_type. (new_symbol): Likewise. gdb/testsuite/ 2010-07-21 Pedro Alves <pedro@codesourcery.com> PR symtab/11827 * gdb.base/printcmds.c (enum some_volatile_enum): New enum. (some_volatile_enum): New variable. * gdb.base/printcmds.exp (test_print_enums): New. <top level>: Call it.
2010-07-21Corrected pre-overload-resolution function evaluation.Sami Wagiaalla5-10/+110
2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> * eval.c (evaluate_subexp_standard): Disabled evaluation of C++ function symbols before overload resolution. 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/fpointer.cc: New test. * gdb.cp/fpointer.exp: New test.
2010-07-21 * breakpoint.c (bptype_string): New, abstracted out fromPedro Alves2-22/+43
print_one_breakpoint_location. (print_one_breakpoint_location): Adjust. (breakpoint_1): Adjust the type column width dynamically.
2010-07-21*** empty log message ***gdbadmin1-1/+1
2010-07-20gdb/Jan Kratochvil5-4/+71
* symfile.c (find_separate_debug_file_by_debuglink): Remove a gdb_assert call, new comment. gdb/testsuite/ * gdb.base/solib-nodir.exp: New file. * lib/gdb.exp (runto): New case for a GDB internal error.