aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-07-20gdb/testsuite/Jan Kratochvil4-12/+50
* gdb.base/charset-malloc.c: New file. * gdb.base/charset.c (malloc_stub): New prototype. (main): Call it instead of malloc itself. * gdb.base/charset.exp: Use only prepare_for_testing. (binfile): Remove the variable.
2010-07-20* gdb/gdbserver/server.c (handle_query): strcpy() the returned string fromOzkan Sezer2-2/+4
paddress() instead of sprintf().
2010-07-20* gdb/gdbserver/utils.c (paddress): Return phex_nz().Ozkan Sezer2-11/+13
2010-07-20gdb/Jan Kratochvil2-0/+22
* linux-nat.c (linux_handle_extended_wait): Handle case when event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2010-07-20gdb/Jan Kratochvil2-2/+11
Code cleanup. * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling linux_nat_wait_1. Use always LP->STATUS afterwards.
2010-07-202010-07-20 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+7
* inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. (inf_ptrace_attach): Ditto.
2010-07-20*** empty log message ***gdbadmin1-1/+1
2010-07-19gdb/doc/Jan Kratochvil2-1/+5
* gdb.texinfo (Active Targets): Fix wrong comma placement.
2010-07-19gdb/Jan Kratochvil18-74/+217
Make core files the process_stratum. * corefile.c (core_target): New variable. (core_file_command): Remove variable t, use core_target. * corelow.c (core_ops): Make it static. (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. * defs.h (make_cleanup_unpush_target): New prototype. * gdbarch.h: Regenerate. * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. * gdbcore.h (core_target): New declaration. * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New variables ops_already_pushed and back_to. Use push_target, make_cleanup_unpush_target and discard_cleanups calls. * record.c (record_open): Replace core_stratum by a core_bfd check. * target.c (target_is_pushed): New function. (find_core_target): Remove. * target.h (enum strata) <core_stratum>: Remove. (target_is_pushed): New declaration. (find_core_target): Remove declaration. * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. gdb/doc/ Make core files the process_stratum. * gdb.texinfo (Active Targets): Remove core_stratum. Include record_stratum example. gdb/testsuite/ Make core files the process_stratum. * gdb.base/corefile.exp (run: load core again) (run: sanity check we see the core file, run: with core) (run: core file is cleared, attach: load core again) (attach: sanity check we see the core file, attach: with core) (attach: core file is cleared): New tests. * gdb.base/coremaker.c (main): New parameters. Implement "sleep" argv.
2010-07-192010-07-19 Hui Zhu <teawater@gmail.com>Hui Zhu5-6/+81
* breakpoint.c (single_step_breakpoints_inserted): New function. * breakpoint.h (single_step_breakpoints_inserted): Extern. * infrun.c (maybe_software_singlestep): Add check code. * record.c (record_resume): Add code for software single step. (record_wait): Ditto.
2010-07-19*** empty log message ***gdbadmin1-1/+1
2010-07-18gdb/Jan Kratochvil2-1/+8
* linux-nat.c (linux_handle_extended_wait): Move variable new_lp into a more inner block. Remove its unused declaration initializer.
2010-07-18*** empty log message ***gdbadmin1-1/+1
2010-07-17*** empty log message ***gdbadmin1-1/+1
2010-07-16 * NEWS: Mention support for the new ptrace interface and hardwareThiago Jung Bauermann2-0/+20
accelerated watchpoint conditions on powerpc-linux.
2010-07-16* target.c (debug_to_insert_breakpoint): Instead of casting to unsignedOzkan Sezer2-26/+40
long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars and host_address_to_string() and %s for pointers. (debug_to_remove_breakpoint): Likewise. (debug_to_region_ok_for_hw_watchpoint): Likewise. (debug_to_can_accel_watchpoint_condition): Likewise. (debug_to_stopped_data_address): Likewise. (debug_to_watchpoint_addr_within_range): Likewise. (debug_to_insert_hw_breakpoint): Likewise. (debug_to_remove_hw_breakpoint): Likewise. (debug_to_insert_watchpoint): Likewise. (debug_to_remove_watchpoint): Likewise.
2010-07-16Use allocated cplus_specific for cplus symbols.Sami Wagiaalla4-11/+70
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* argument. (cplus_specific): New struct. * symtab.c (symbol_set_demangled_name): Updated. Use cplus_specific for cplus symbols. (symbol_get_demangled_name): Retrive the name from the cplus_specific struct for cplus symbols. (symbol_init_language_specific): Set cplus_specific for cplus symbols. (symbol_set_names): Pass objfile to symbol_set_demangled_name. * symtab.c (symbol_init_cplus_specific): New function.
2010-07-16Use setter and getter for demangled_name.Sami Wagiaalla4-16/+46
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. * symtab.c (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. (symbol_init_language_specific): Use demangled_name setter and getter. (symbol_set_names): Ditto. (symbol_natural_name): Ditto. (symbol_demangled_name): Ditto. * dwarf2read.c (new_symbol): Ditto.
2010-07-16Rename cplus_specific mangled_lang.Sami Wagiaalla5-18/+29
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h: Renamed cplus_specific to mangled_lang. * symtab.c (symbol_init_language_specific): Updated. (symbol_set_names): Updated. (symbol_natural_name): Updated. (symbol_demangled_name): Updated. * ada-lang.c (ada_decode_symbol): Updated. * dwarf2read.c (new_symbol): Updated.
2010-07-16*** empty log message ***gdbadmin1-1/+1
2010-07-15*** empty log message ***gdbadmin1-1/+1
2010-07-14gdb/ChangeLog:* valops.c (value_assign): Do not call to ↵Ken Werner4-4/+21
value_coerce_to_target.(value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.gdb/testsuite/ChangeLog:* gdb.arch/altivec-abi.exp: New tests.
2010-07-14* MAINTAINERS: Add myself for write after approval privileges.Ken Werner2-0/+5
2010-07-142010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>Tom Tromey5-1/+26
* c-valprint.c (c_val_print): Add embedded_offset to address in call to val_print_array_elements. 2010-07-13 Tom Tromey <tromey@redhat.com> * gdb.python/py-prettyprint.c (struct arraystruct): New struct. (main): Use it. * gdb.python/py-prettyprint.exp (run_lang_tests): Add test.
2010-07-14*** empty log message ***gdbadmin1-1/+1
2010-07-13 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.Tom Tromey2-5/+6
2010-07-13 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference toTom Tromey2-1/+6
objfile.
2010-07-13 * symfile.c (set_initial_language): Update.Tom Tromey7-11/+24
(deduce_language_from_filename): Argument type now const. * symtab.h (find_main_filename): Update. (deduce_language_from_filename): Update. * symtab.c (find_main_filename): Make result const. * dwarf2read.c (dw2_find_symbol_file): Change return type. * psymtab.c (find_symbol_file_from_partial): Change return type. * symfile.h (struct quick_symbol_functions) <find_symbol_file>: Make result const.
2010-07-13gdbTom Tromey10-68/+1813
* breakpoint.c (save_cmdlist): No longer static. * gdbcmd.h (save_cmdlist): Declare. * symfile.c (symbol_file_add_with_addrs_or_offsets): Set OBJF_READNOW on objfile if readnow_symbol_files. * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile. (elf_sym_fns_gdb_index): New global. * dwarf2read.c: Include exceptions.h. (offset_type): New. (struct mapped_index): New. (dwarf2_per_cu_data_ptr): New typedef. (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>: New fields. (GDB_INDEX_SECTION): New define. (struct dwarf2_per_cu_quick_data): New. (struct dwarf2_per_cu_data) <objfile>: New field. <psymtab>: Removed. <v>: New field. (byte_swap): New function. (MAYBE_SWAP): New macro. (INDEX_SUFFIX): New macro. (dw2_do_instantiate_symtab): New function. (dw2_instantiate_symtab): Likewise. (create_cus_from_index): Likewise. (create_addrmap_from_index): Likewise. (mapped_index_string_hash): Likewise. (find_slot_in_mapped_hash): Likewise. (dwarf2_read_index): Likewise. (dw2_setup): Likewise. (dw2_require_line_header): Likewise. (dw2_require_full_path): Likewise. (dw2_find_last_source_symtab): Likewise. (dw2_forget_cached_source_info): Likewise. (dw2_lookup_symtab): Likewise. (dw2_lookup_symbol): Likewise. (dw2_do_expand_symtabs_matching): Likewise. (dw2_pre_expand_symtabs_matching): Likewise. (dw2_print_stats): Likewise. (dw2_dump): Likewise. (dw2_relocate): Likewise. (dw2_expand_symtabs_for_function): Likewise. (dw2_expand_all_symtabs): Likewise. (dw2_expand_symtabs_with_filename): Likewise. (dw2_find_symbol_file): Likewise. (dw2_map_ada_symtabs): Likewise. (dw2_expand_symtabs_matching): Likewise. (dw2_find_pc_sect_symtab): Likewise. (dw2_map_symbol_names): Likewise. (dw2_map_symbol_filenames): Likewise. (dw2_has_symbols): Likewise. (dwarf2_gdb_index_functions): New global. (dwarf2_initialize_objfile): New function. (process_psymtab_comp_unit): Update. (add_partial_subprogram): Likewise. (dwarf2_psymtab_to_symtab): Likewise. (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab. (process_full_comp_unit): Update. (find_file_and_directory): New function. (read_file_scope): Use find_file_and_directory. (dwarf2_per_cu_objfile): Update. (dwarf2_per_cu_addr_size): Update. (dwarf2_per_cu_offset_size): Update. (dwarf2_free_objfile): Free the index, if needed. (dwarf2_per_objfile_free): Unmap the index, if needed. (struct strtab_entry): New. (hash_strtab_entry): New function. (eq_strtab_entry): Likewise. (create_strtab): Likewise. (add_string): Likewise. (struct symtab_index_entry): New. (struct mapped_symtab): New. (hash_symtab_entry): New function. (eq_symtab_entry): Likewise. (delete_symtab_entry): Likewise. (create_index_table): Likewise. (create_mapped_symtab): Likewise. (cleanup_mapped_symtab): Likewise. (find_slot): Likewise. (hash_expand): Likewise. (add_index_entry): Likewise. (add_indices_to_cpool): Likewise. (write_hash_table): Likewise. (add_address_entry): Likewise. (write_psymbols): Likewise. (write_obstack): Likewise. (unlink_if_set): Likewise. (write_psymtabs_to_index): Likewise. (save_gdb_index_command): Likewise. (_initialize_dwarf2_read): Install "save gdb-index" command. (create_all_comp_units): Initialize 'objfile' field of CU. (dwarf2_locate_sections): Check for .gdb_index. * psymtab.h (dwarf2_gdb_index_functions): Declare. * symfile.h (dwarf2_initialize_objfile): Declare. gdb/doc * gdb.texinfo (Index Files): New node.
2010-07-13 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.Tom Tromey4-17/+62
(basic_lookup_transparent_type): Likewise. * symfile.h (struct quick_symbol_functions) <pre_expand_symtabs_matching>: New field. * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function. (psym_functions): Update.
2010-07-13 * gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.Tom Tromey2-1/+5
2010-07-13gdbTom Tromey9-3/+147
PR breakpoints/8357: * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment. * linespec.c (decode_line_1): Update comment. Call decode_label. (decode_label): New function. (symbol_found): Handle LOC_LABEL. * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and domain. Call add_symbol_to_list. gdb/doc * gdb.texinfo (Specify Location): Document labels. gdb/testsuite * gdb.base/label.exp: New file. * gdb.base/label.c: New file.
2010-07-13 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.Tom Tromey4-14/+42
* dwarf2loc.c (find_location_expression): Use dwarf2_per_cu_text_offset. (dwarf2_evaluate_loc_desc): Likewise. (dwarf2_loc_desc_needs_frame): Likewise. (compile_dwarf_to_ax): Likewise. (loclist_describe_location): Likewise. * dwarf2read.c (dwarf2_per_cu_text_offset): New function. (dwarf2_per_cu_objfile): Update comment.
2010-07-13*** empty log message ***gdbadmin1-1/+1
2010-07-12Add is_ilp32_target/is_lp64_target.H.J. Lu19-19/+126
2010-07-12 Ulrich Weigand <uweigand@de.ibm.com> H.J. Lu <hongjiu.lu@intel.com> * lib/gdb.exp (is_ilp32_target): New. (is_lp64_target): Likewise. * gdb.arch/amd64-byte.exp: Use is_lp64_target to check 64bit target. * gdb.arch/amd64-disp-step.exp: Likewise. * gdb.arch/amd64-dword.exp: Likewise. * gdb.arch/amd64-i386-address.exp: Likewise. * gdb.arch/amd64-word.exp: Likewise. * gdb.arch/i386-avx.exp: Use is_ilp32_target to check for 32bit target. * gdb.arch/i386-bp_permanent.exp: Likewise. * gdb.arch/i386-byte.exp: Likewise. * gdb.arch/i386-disp-step.exp: Likewise. * gdb.arch/i386-gnu-cfi.exp: Likewise. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-size-overlap.exp: Likewise. * gdb.arch/i386-size.exp: Likewise. * gdb.arch/i386-sse.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise. * gdb.arch/i386-word.exp: Likewise. * gdb.arch/ppc64-atomic-inst.exp: Use is_lp64_target to execute test only when building 64-bit executables. Do not hard-code -m64 option.
2010-07-12gdb/Jan Kratochvil3-1/+12
* dwarf2read.c (read_subrange_type): Call read_subrange_type. * p-lang.c (pascal_printstr): Likewise.
2010-07-12*** empty log message ***gdbadmin1-1/+1
2010-07-11*** empty log message ***gdbadmin1-1/+1
2010-07-10*** empty log message ***gdbadmin1-1/+1
2010-07-09 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't useTom Tromey2-3/+10
'hint' if it is NULL.
2010-07-092010-07-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+8
* source.c (print_source_lines_base): Add check for noprint.
2010-07-09*** empty log message ***gdbadmin1-1/+1
2010-07-08Resync python-config.py with Python-2.7 version.Joel Brobecker2-29/+37
This is just a copy of the Python 2.7 version of python-config.py. Tested with versions 2.5 and 2.6. It's nearly identical to the previous version, except it's written in a more pythonic way, so it should be fine for 2.4 as well. gdb/ChangeLog: * python/python-config.py: Resync with Python 2.7 version of this script.
2010-07-08Fix typo in NEWS file (introduced in previous commit).Joel Brobecker2-1/+5
gdb/ChangeLog: * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2010-07-08*** empty log message ***gdbadmin1-1/+1
2010-07-07 * lib/gdb.exp (gdb_test_list_exact): New function.Doug Evans3-1/+71
* gdb.base/default.exp (show convenience): Call it, add tests for $_sdata = void, $_thread = 0.
2010-07-07 * NEWS: Create a new section for the next release branch.Joel Brobecker2-1/+9
Rename the section of the current branch, now that it has been cut.
2010-07-07Record GDB 7.2 branch creation. Bump version number to 7.2.50.20100707-cvs.gdbadmin2-1/+6