Andreas Schwab
1d0055ea55
* readelf.c (process_section_headers): Update key to flags.
2010-07-19 12:46:01 +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
Alan Modra
06e700d6a2
daily update
2010-07-19 00:00:05 +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
Paolo Bonzini
1d14850fc0
2010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>
...
PR target/44862
* Makefile.tpl (POSTSTAGE1_CXX_EXPORT):
Provide -B option to allow for link spec %s substitutions for
libstdc++.a on darwin.
* Makefile.in: Regenerate.
2010-07-18 08:12:40 +00:00
gdbadmin
a881f11cf9
*** empty log message ***
2010-07-18 00:00:33 +00:00
Alan Modra
7903b87cf2
daily update
2010-07-18 00:00:05 +00:00
Dave Korn
447049af48
* objcopy.c (copy_usage): Tweak previous typofix.
2010-07-17 19:33:11 +00:00
H.J. Lu
235f6e5342
Fix a typo in "objcopy --help".
...
2010-07-17 H.J. Lu <hongjiu.lu@intel.com>
* objcopy.c (copy_usage): Fix a typo.
2010-07-17 14:41:28 +00:00
Alan Modra
f4427a75c8
* ldlang.c (lang_check_section_addresses): Catch overlap for
...
sections that wrap around the address space.
2010-07-17 03:12:02 +00:00
Alan Modra
b559959291
* elf.c (_bfd_elf_map_sections_to_segments): Force new segment
...
for sections with overlapping LMAs.
(assign_file_positions_for_load_sections): Catch overlap for
sections that wrap around the address space. Replace a
warning that duplicates ld's --check-sections error with a
warning that lma has been adjusted for overlapping sections.
2010-07-17 03:10:50 +00:00
Alan Modra
34220e965e
daily update
2010-07-17 00:00:05 +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
H.J. Lu
502abbdf22
Run dw2-compress-2 only for 32bit.
...
2010-07-16 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run dw2-compress-2 only for 32bit.
2010-07-16 19:12:47 +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
Nick Clifton
183e4ed8bc
* corefile.c (core_sym_class): Fix handling of subprogram names
...
and add support for cloned function names.
2010-07-16 14:52:15 +00:00
Alan Modra
4e92bb1cd7
* config/tc-rx.c (md_estimate_size_before_relax): Fix format
...
specifier warnings for 32-bit host when --enable-64-bit-bfd.
(rx_relax_frag, md_convert_frag): Likewise.
2010-07-16 06:32:46 +00:00
gdbadmin
ad0385697b
*** empty log message ***
2010-07-16 00:00:33 +00:00
Alan Modra
a522592fd2
daily update
2010-07-16 00:00:05 +00:00
Cary Coutant
700c406090
* gas/NEWS: Add note about --compress-debug-sections.
...
* gas/as.c (show_usage): Add --compress-debug-sections and
--nocompress-debug-sections.
2010-07-15 17:45:17 +00:00
Cary Coutant
78384e8f72
* plugin.cc (Plugin_finish::run): Don't call cleanup handlers from here.
2010-07-15 17:36:23 +00:00
Nathan Sidwell
6e8bd58f83
* config/obj-elf.c (get_sym_from_input_line_and_check): New
...
function to catch missing pseudo-op arguments.
(obj_elf_local): Call new function.
(obj_elf_weak): Likewise.
(obj_elf_visibility): Likewise.
(obj_elf_vtable_entry): Likewise.
(obj_elf_type): Likewise.
testsuite/
* gas/elf/pseudo.s: New.
* gas/elf/pseudo.l: New.
* gas/elf/pseudo.d: New.
* gas/elf/elf.exp: Run the new test.
2010-07-15 14:34:42 +00:00
Kai Tietz
1e17085dea
2010-07-15 Kai Tietz <kai.tietz@onevision.com>
...
* config/obj-coff-seh.c
(seh_getelm_data_size): New.
(seh_read_offset): Handle negative values.
(obj_coff_seh_push): Handle offset for save-register store.
(obj_coff_seh_setframe): Add unwind-information for frame.
(seh_store_elm_data): New.
(seh_getelm_data_size): Return additionally unaligned element count.
(seh_make_unwind_entry): Correct tweak about element count.
2010-07-15 13:42:20 +00:00
Kai Tietz
f14ead0d15
2010-07-15 Kai Tietz <kai.tietz@onevision.com>
...
* dllwrap.c (main): Make sure is_leading_underscore
gets initialized with correct default.
2010-07-15 07:58:47 +00:00
H.J. Lu
25d17eb4cc
Add testcases for PR ld/11817.
...
2010-07-14 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11817
* ld-i386/compressed1.s: New.
* ld-i386/compressed1.d: Likewise.
* ld-x86-64/compressed1.s: Likewise.
* ld-x86-64/compressed1.d: Likewise.
* ld-i386/i386.exp: Run compressed1.
* ld-x86-64/x86-64.exp: Likewise.
2010-07-15 00:42:23 +00:00
H.J. Lu
dfc6c7b266
Fix a typo.
...
2010-07-14 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/i386/compressed-1a.d: Fix a typo.
* binutils-all/i386/compressed-1b.d: Likewise.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
2010-07-15 00:37:12 +00:00
gdbadmin
8942efd7f0
*** empty log message ***
2010-07-15 00:00:33 +00:00
Alan Modra
26e57e79fe
daily update
2010-07-15 00:00:05 +00:00
Cary Coutant
8c2ccebd6b
PR ld/11817
...
* dwarf2.c (read_section): Revert patch for compressed debug sections.
(find_line): Likewise.
(read_and_uncompress_section): Remove.
2010-07-14 22:18:07 +00:00
H.J. Lu
368886ac46
Add addr2line, objcopy and strip tests for compressed debug sections.
...
binutils/testsuite/
2010-07-14 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp (binutils_assemble): Use
default_binutils_assemble_flags.
(binutils_assemble_flags): New.
* lib/utils-lib.exp (default_binutils_assemble): Renamed to ...
(default_binutils_assemble_flags): This. Add asflags and
pass it to target_assemble.
(run_dump_test): Support assembler flags.
* binutils-all/i386/compressed-1.s: New.
* binutils-all/i386/compressed-1a.d: Likewise.
* binutils-all/i386/compressed-1b.d: Likewise.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/i386/i386.exp: Likewise.
* binutils-all/x86-64/compressed-1.s: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
* binutils-all/x86-64/x86-64.exp: Likewise.
gas/testsuite/
2010-07-14 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp (ADDR2LINE): New.
(ADDR2LINEFLAGS): Likewise.
* gas/i386/i386.exp: Run dw2-compress-2 and x86-64-dw2-compress-2.
* gas/i386/dw2-compress-2.d: New.
* gas/i386/dw2-compress-2.s: Likewise.
* gas/i386/x86-64-dw2-compress-2.d: Likewise.
* gas/i386/x86-64-dw2-compress-2.s: Likewise.
* lib/gas-defs.exp (run_dump_test): Support addr2line as dump
program.
(slurp_options): Allow numbers in options.
2010-07-14 19:46:01 +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
H.J. Lu
034cb2865b
Use .2byte/.4byte instead of .short/.long.
...
2010-07-14 Maciej W. Rozycki <macro@codesourcery.com>
* gas/elf/dwarf2-3.s: Replace .short and .long directives in
.debug_info section with .2byte and .4byte respectively.
2010-07-14 14:22:48 +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
Ian Lance Taylor
783659f926
* descriptors.cc (Descriptors::open): Report correct name in error
...
message.
2010-07-14 10:38:59 +00:00
H.J. Lu
a7b16ceb92
Don't allocate .got.plt section if there are no GOT nor PLT entries.
...
bfd/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* elf32-i386.c (elf_i386_size_dynamic_sections): Don't
allocate .got.plt section if there are no GOT nor PLT
entries.
* elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
ld/testsuite/
2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
PR ld/11812
* ld-elf/exclude3b.d: Don't run on ia64-*-*. Replace .got with
.dynamic.
* ld-elf/exclude3d.d: New.
* ld-i386/nogot1.d: Likewise.
* ld-i386/nogot1.s: Likewise.
* ld-x86-64/nogot1.d: Likewise.
* ld-x86-64/nogot1.s: Likewise.
* ld-i386/i386.exp: Run nogot1.
* ld-x86-64/x86-64.exp: Likewise.
2010-07-14 00:30:57 +00:00
Alan Modra
6ae10a3087
daily update
2010-07-14 00:00:05 +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