Commit graph

66393 commits

Author SHA1 Message Date
gdbadmin
ad0d0dfb98 *** empty log message *** 2010-07-26 00:00:03 +00:00
Jan Kratochvil
30d5032895 gdb/gdbserver/
* 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-25 10:15:54 +00:00
Jan Kratochvil
857d11d04f gdb/
* linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
	the host signal first.
2010-07-25 09:31:12 +00:00
Alan Modra
bcd065d860 daily update 2010-07-25 00:00:05 +00:00
gdbadmin
45b143c8af *** empty log message *** 2010-07-25 00:00:03 +00:00
Maciej W. Rozycki
d3fca0b5d4 gas/
* config/tc-mips.c (macro)[M_JAL_1, M_JAL_2]: Handle the JALR
	delay slot in the noreorder mode with the o32 ABI.

	gas/testsuite/
	* gas/mips/jal-svr4pic-noreorder.d: New test case.
	* gas/mips/mips1@jal-svr4pic-noreorder.d: New test
	subarchitecture.
	* gas/mips/r3000@jal-svr4pic-noreorder.d: Likewise.
	* gas/mips/jal-svr4pic-noreorder.s: Source for the new test
	case.
	* gas/mips/mips.exp: Run the new test case.
2010-07-24 01:51:53 +00:00
Maciej W. Rozycki
4d2ad3b06d * gas/mips/jal-svr4pic.d: Rename to...
* gas/mips/mips1@jal-svr4pic.d: ... this.
	* gas/mips/r3000@jal-svr4pic.d: New test subarchitecture.
	* gas/mips/jal-svr4pic.d: New default subarchitecture patterns.
	* gas/mips/mips.exp: Run jal-svr4pic with run_dump_test_arches
	rather than run_dump_test.
2010-07-24 01:43:32 +00:00
Maciej W. Rozycki
6f02363dde * gas/mips/jal-svr4pic.d: Reformat. Use --show-raw-insn with
`objdump'.
	* gas/mips/jal-svr4pic.s: Reformat.  Fix up trailing zeroes.
2010-07-24 01:39:21 +00:00
Maciej W. Rozycki
89210bdc8f * lib/gas-defs.exp (run_dump_test): Handle the "dump" option. 2010-07-24 01:36:16 +00:00
Alan Modra
dfe5355771 daily update 2010-07-24 00:00:05 +00:00
gdbadmin
295b7e0333 *** empty log message *** 2010-07-24 00:00:02 +00:00
Tom Tromey
1fd400ffc4 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
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-23 22:15:13 +00:00
Jan Kratochvil
3a674486ec gdb/
* 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 21:10:55 +00:00
Keith Seitz
54ec275af0 * symtab.c (basic_lookup_transparent_type): Call pre-expand
hook for STATIC_BLOCK types, too.
2010-07-23 17:42:13 +00:00
Nick Clifton
1cd986c585 Add support for v850E2 and v850E2V3 2010-07-23 14:52:54 +00:00
Keith Seitz
8fd447e6d3 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
and vector definition.
2010-07-23 14:43:33 +00:00
Jan Kratochvil
25b72ddee0 gdb/
* linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2010-07-23 12:19:00 +00:00
Alan Modra
c0ba1095fd PR gas/11834
* macro.c (macro_expand): Recover gracefully from named args that
	don't match params.
2010-07-23 06:44:25 +00:00
Alan Modra
3895431c5c daily update 2010-07-23 00:00:05 +00:00
gdbadmin
8dd40a7aaa *** empty log message *** 2010-07-23 00:00:04 +00:00
Jan Kratochvil
96d19272e8 gdb/
* 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 16:24:38 +00:00
Tom Tromey
ca1f3406ef * dwarf2read.c (create_debug_types_hash_table): Set objfile on
type signature's per-CU data.
2010-07-22 15:53:48 +00:00
Alan Modra
21fd2dbd9c * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
Correct format specifier.
2010-07-22 14:48:54 +00:00
Alan Modra
c6a3cf87fb * ecoff.c: Don't include aout/ranlib.h.
(_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
	(_bfd_ecoff_write_armap): Output ar_date and ar_size using
	_bfd_ar_spacepad.
2010-07-22 14:29:15 +00:00
Alan Modra
4c1534c7a2 * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
relocs.
2010-07-22 14:07:10 +00:00
Pedro Alves
ba25b92104 * NEWS: Mention target reported shared libraries support by
default.
2010-07-22 10:52:02 +00:00
Thomas Schwinge
1575952e13 2010-07-22 Thomas Schwinge <thomas@codesourcery.com>
Switch MIPS to 32-bit DWARF format.
	* config/tc-mips.h (DWARF2_FORMAT): Only define for [TE_IRIX].
	* config/tc-mips.c (mips_dwarf2_format): Likewise.
2010-07-22 07:39:20 +00:00
Alan Modra
5506d11a07 * readelf.c: Add Moxie support. 2010-07-22 04:54:10 +00:00
Alan Modra
dad7c68012 * gas/arm/mapdir.s: Don't specify attr/type for .fini_array.
* gas/elf/dwarf2-3.s: Don't specify attr for .init_array.
	* gas/elf/dwarf2-3.d: Don't run on h8300.
2010-07-22 04:48:18 +00:00
Alan Modra
cdb3517eda daily update 2010-07-22 00:00:05 +00:00
gdbadmin
5bc13057e7 *** empty log message *** 2010-07-22 00:00:03 +00:00
Cary Coutant
7689733114 * merge.h (Output_merge_string::Merged_string): Remove object, shndx,
string, and length fields.
	(Output_merge_string::Merged_strings_list): New type.
	(Output_merge_string::Merged_strings_lists): New typedef.
	(Output_merge_string): Replace merged_strings_ with
	merged_strings_lists_.
	* merge.cc (Output_merge_string::do_add_input_section): Allocate new
	Merged_strings_list per input object and section.  Don't store pointer
	to the string.  Don't store length with each merged string entry.
	(Output_merge_string::finalize_merged_data): Loop over list of merged
	strings lists.  Recompute length of each merged string.
2010-07-21 21:03:54 +00:00
Pedro Alves
23bd0f7c5e gdb/
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-21 18:08:27 +00:00
DJ Delorie
ae30dc00b4 merge from gcc 2010-07-21 16:08:01 +00:00
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
Alan Modra
9e4c26773e daily update 2010-07-21 00:00:05 +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
H.J. Lu
0af8aa50ec Add missing ChangeLog entry. 2010-07-20 21:31:13 +00:00
Mike Frysinger
bb1515f254 ld: improve linker script section
The example version script in the manual currently suggests:
	extern "C++" { "int f(int, double)"; }

But a C++ function like that doesn't encode the return type into the
mangled  name, so when the linker demangles things, it ends up with
"f(int, double)"  and so it never matches.

The example also lacks a trailing semicolon after the brace, so the
linker always complains about a syntax error in the file.

While the language section documents the possibilities, it isn't clear
as to which is the default language.  So explicitly state that the C
language is the default.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-20 19:25:42 +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
Alan Modra
f463846733 include/elf/
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from..
	(ELF_SECTION_SIZE): ..here.
	(ELF_SECTION_IN_SEGMENT_1): Add "strict" arg.
	(ELF_SECTION_IN_SEGMENT_STRICT): New macro.
bfd/
	* elf.c (assign_file_positions_for_load_sections): Check that
	zero size sections are allocated in segments too.
	(assign_file_positions_for_non_load_sections): Warn if zero
	size alloc sections are found here.
	(copy_elf_program_header): Don't drop zero size sections from
	segment map.
	(copy_private_bfd_data): Check for changes in zero size sections.
binutils/
	* readelf.c (process_program_headers): Don't ignore all zero size
	sections.
ld/testsuite/
	* ld-powerpc/tlsexe.r: Update.
	* ld-powerpc/tlsexetoc.r: Update.
	* ld-powerpc/tlsso.r: Update.
	* ld-powerpc/tlstocso.r: Update.
2010-07-20 14:08:32 +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
Alan Modra
8c05cf89c7 * ld-powerpc/vxworks-relax.s: Add branches to match expected output.
* ld-powerpc/vxworks-relax-2.s: Likewise.
	* ld-powerpc/vxworks1-lib.rd: Reorder reloc sections.
2010-07-20 07:22:37 +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
Alan Modra
33740db9cd * config/tc-ppc.c (ppc_setup_opcodes): Add all macros for -many. 2010-07-20 05:07:23 +00:00