Sami Wagiaalla
883df6ddea
Corrected pre-overload-resolution function evaluation.
...
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 14:59:05 +00:00
Pedro Alves
269b11a298
* breakpoint.c (bptype_string): New, abstracted out from
...
print_one_breakpoint_location.
(print_one_breakpoint_location): Adjust.
(breakpoint_1): Adjust the type column width dynamically.
2010-07-21 11:25:53 +00:00
gdbadmin
b806f530e2
*** empty log message ***
2010-07-21 00:00:33 +00:00
Jan Kratochvil
569b05a560
gdb/
...
* 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-20 22:19:07 +00:00
Jan Kratochvil
51d7d80300
gdb/testsuite/
...
* 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 22:06:59 +00:00
Ozkan Sezer
c6f46ca0a4
* gdb/gdbserver/server.c (handle_query): strcpy() the returned string from
...
paddress() instead of sprintf().
2010-07-20 18:20:27 +00:00
Ozkan Sezer
5c3216e2a7
* gdb/gdbserver/utils.c (paddress): Return phex_nz().
2010-07-20 18:10:52 +00:00
Jan Kratochvil
ad34eb2f7c
gdb/
...
* linux-nat.c (linux_handle_extended_wait): Handle case when
event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2010-07-20 12:54:57 +00:00
Jan Kratochvil
33355866db
gdb/
...
Code cleanup.
* linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
linux_nat_wait_1. Use always LP->STATUS afterwards.
2010-07-20 12:33:30 +00:00
Hui Zhu
26590820c2
2010-07-20 Hui Zhu <teawater@gmail.com>
...
* inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
(inf_ptrace_attach): Ditto.
2010-07-20 05:58:53 +00:00
gdbadmin
fcdc9c861b
*** empty log message ***
2010-07-20 00:00:33 +00:00
Jan Kratochvil
8ea5bce590
gdb/doc/
...
* gdb.texinfo (Active Targets): Fix wrong comma placement.
2010-07-19 18:11:31 +00:00
Jan Kratochvil
c0edd9edad
gdb/
...
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-19 17:51:25 +00:00
Hui Zhu
f02253f190
2010-07-19 Hui Zhu <teawater@gmail.com>
...
* 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 07:55:43 +00:00
gdbadmin
bd0cd65df4
*** empty log message ***
2010-07-19 00:00:04 +00:00
Jan Kratochvil
78768c4ae4
gdb/
...
* linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
a more inner block. Remove its unused declaration initializer.
2010-07-18 21:21:53 +00:00
gdbadmin
a881f11cf9
*** empty log message ***
2010-07-18 00:00:33 +00:00
gdbadmin
72f4afc7a3
*** empty log message ***
2010-07-17 00:00:03 +00:00
Thiago Jung Bauermann
431e49aac1
* NEWS: Mention support for the new ptrace interface and hardware
...
accelerated watchpoint conditions on powerpc-linux.
2010-07-16 23:19:37 +00:00
Ozkan Sezer
bd91e7ae05
* target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
...
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-16 20:04:41 +00:00
Sami Wagiaalla
29df156df4
Use allocated cplus_specific for cplus symbols.
...
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-16 19:23:56 +00:00
Sami Wagiaalla
b250c185b3
Use setter and getter for demangled_name.
...
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-16 19:00:56 +00:00
Sami Wagiaalla
afa1672571
Rename cplus_specific mangled_lang.
...
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 18:39:10 +00:00
gdbadmin
ad0385697b
*** empty log message ***
2010-07-16 00:00:33 +00:00
gdbadmin
8942efd7f0
*** empty log message ***
2010-07-15 00:00:33 +00:00
Ken Werner
3cbaedfff7
gdb/ChangeLog:* valops.c (value_assign): Do not call to 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 14:54:58 +00:00
Ken Werner
c932f1bef2
* MAINTAINERS: Add myself for write after approval privileges.
2010-07-14 14:30:35 +00:00
Tom Tromey
91158a569d
2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
...
* 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 14:13:55 +00:00
gdbadmin
cae36aed43
*** empty log message ***
2010-07-14 00:00:03 +00:00
Tom Tromey
b3b272e108
* dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2010-07-13 22:02:05 +00:00
Tom Tromey
bb3fa9d02e
* dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
...
objfile.
2010-07-13 21:06:48 +00:00
Tom Tromey
dd78685836
* symfile.c (set_initial_language): Update.
...
(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-13 20:52:52 +00:00
Tom Tromey
9291a0cd80
gdb
...
* 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 20:51:34 +00:00
Tom Tromey
58b6ab1339
* symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
...
(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 20:49:26 +00:00
Tom Tromey
f5011d116d
* gdb.texinfo (GDB/MI Variable Objects): Remove extra 'for'.
2010-07-13 20:32:43 +00:00
Tom Tromey
0f5238edfd
gdb
...
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 20:07:44 +00:00
Tom Tromey
9aa1f1e339
* dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
...
* 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 15:09:03 +00:00
gdbadmin
2ef36331d2
*** empty log message ***
2010-07-13 00:00:33 +00:00
H.J. Lu
add265ae41
Add is_ilp32_target/is_lp64_target.
...
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-12 17:33:15 +00:00
Jan Kratochvil
953ac07ed7
gdb/
...
* dwarf2read.c (read_subrange_type): Call read_subrange_type.
* p-lang.c (pascal_printstr): Likewise.
2010-07-12 17:07:11 +00:00
gdbadmin
c0e7d30b1e
*** empty log message ***
2010-07-12 00:00:33 +00:00
gdbadmin
a2f028ec35
*** empty log message ***
2010-07-11 00:00:33 +00:00
gdbadmin
73b86bec9f
*** empty log message ***
2010-07-10 00:00:03 +00:00
Tom Tromey
f04e4012c7
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
...
'hint' if it is NULL.
2010-07-09 20:29:56 +00:00
Hui Zhu
f4dfd9c05c
2010-07-04 Hui Zhu <teawater@gmail.com>
...
* source.c (print_source_lines_base): Add check for noprint.
2010-07-09 02:39:58 +00:00
gdbadmin
2ee2fea804
*** empty log message ***
2010-07-09 00:00:34 +00:00
Joel Brobecker
7e6e39e562
Resync python-config.py with Python-2.7 version.
...
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-08 22:12:44 +00:00
Joel Brobecker
76b8507d09
Fix typo in NEWS file (introduced in previous commit).
...
gdb/ChangeLog:
* NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2010-07-08 15:41:56 +00:00
gdbadmin
715036dc99
*** empty log message ***
2010-07-08 00:00:02 +00:00
Doug Evans
2dfb8c1771
* lib/gdb.exp (gdb_test_list_exact): New function.
...
* gdb.base/default.exp (show convenience): Call it, add tests for
$_sdata = void, $_thread = 0.
2010-07-07 18:49:51 +00:00