Commit Graph

72152 Commits

Author SHA1 Message Date
Cary Coutant 74bc605283 * dwarf.c (dwarf_vmatoa64): New function.
(read_and_display_attr_value): Print 8-byte forms as single hex
	numbers.
	(process_debug_info): Print type signatures as single hex numbers.
	* elfcomm.c (byte_get_64): New function.
	* elfcomm.h (byte_get_64): New function.
2012-02-15 18:32:30 +00:00
Pedro Alves 10010058f2 2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when
	the target doesn't support tracepoints.
	* gdb.trace/circ.exp: Ditto.
	* gdb.trace/collection.exp: Ditto.
	* gdb.trace/packetlen.exp: Ditto.
	* gdb.trace/passc-dyn.exp: Ditto.
	* gdb.trace/report.exp: Ditto.
	* gdb.trace/tfind.exp: Ditto.
	* gdb.trace/tspeed.exp: Ditto.
	* gdb.trace/tsv.exp: Ditto.
	* gdb.trace/unavailable.exp: Ditto.
	* gdb.trace/while-dyn.exp: Ditto.
2012-02-15 18:09:20 +00:00
Tom Tromey c691065997 * python/py-symbol.c (sympy_value): Use _(). 2012-02-15 17:51:04 +00:00
Pedro Alves a2e0062d4b 2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.trace/circ.exp (trace_buffer_normal): Rewrite using
	gdb_test_multiple, and call unsupported instead of fail, if the
	remote side does not support the request.
2012-02-15 17:20:07 +00:00
Pedro Alves a1999d4022 2012-02-15 Pedro Alves <palves@redhat.com>
* gdb.server/ext-attach.exp: Make sure gdb is disconnected.
	* gdb.server/ext-run.exp: Make sure gdb is disconnected.
	* gdb.server/file-transfer.exp: Make sure gdb is disconnected.
	* gdb.server/server-mon.exp: Make sure gdb is disconnected.
	* gdb.server/server-run.exp: Make sure gdb is disconnected.
	* lib/gdbserver-support.exp (gdbserver_start_extended): Only
	prepend "extended-" to $gdbserver_protocol if $gdbserver_protocol
	doesn't start with "extended-" already.
2012-02-15 12:51:17 +00:00
Pedro Alves 7cee1e5405 gdb/
2012-02-15  Pedro Alves  <palves@redhat.com>

	* remote.c (remote_detach_1, extended_remote_attach_1): Tweak
	output to be like native targets'.
	(remote_pid_to_str): Special case the null ptid.

gdb/testsuite/
2012-02-15  Pedro Alves  <palves@redhat.com>

	Support extended-remote.  Avoid cascading timeouts.

	* gdb.base/attach.exp (do_attach_tests): Add expected output for
	the extended-remote target.  If attaching with no file fails, load
	the file manually.
	* gdb.server/ext-attach.exp: Adjust expected attach/detach output.
2012-02-15 12:48:55 +00:00
Cary Coutant f9fa4a6341 * options.cc (General_options::finalize): Disallow -pie and -static. 2012-02-15 00:56:16 +00:00
gdbadmin 9ad44fdb9d *** empty log message *** 2012-02-15 00:00:33 +00:00
Stan Shebs 816338b563 2012-02-14 Stan Shebs <stan@codesourcery.com>
* NEWS: Mention enable count command.
	* breakpoint.h (struct breakpoint): New field enable_count.
	* breakpoint.c (enable_breakpoint_disp): Add count argument.
	(enable_breakpoint): Add arg to call.
	(struct disp_data): New struct.
	(do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
	(do_map_enable_once_breakpoint): Create a struct and pass it.
	(do_map_enable_delete_breakpoint): Ditto.
	(do_map_enable_count_breakpoint): New function.
	(enable_count_command): New function.
	(bpstat_stop_status): Decrement enable_count.
	(print_one_breakpoint_location): Report enable count.
	(_initialize_breakpoint): Add enable count command.

	* gdb.texinfo (Disabling Breakpoints): Document enable count.

	* gdb.base/ena-dis-br.exp: Add enable count test.
2012-02-14 23:28:15 +00:00
Alan Modra 9395078e8d daily update 2012-02-14 23:00:05 +00:00
Richard Henderson 3035ca03e8 PR ld/13621
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.
2012-02-14 20:43:26 +00:00
Kevin Buettner c47a44f4a8 rl78-tdep.c: Rearrange order in which registers are displayed. 2012-02-14 20:15:44 +00:00
Kevin Buettner e4569f1e25 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
the name parameter being passed to find_pc_partial_function().
2012-02-14 20:07:26 +00:00
Jan Kratochvil 7a05aae796 gdb/
* MAINTAINERS: Step down from being ia64 target maintainer.
2012-02-14 14:42:12 +00:00
Alan Modra 3140414bd2 * binutils-all/dlltool.exp: Add setup_xfail. 2012-02-14 02:40:39 +00:00
Alan Modra 1d2b8df224 Regenerate 2012-02-14 01:25:47 +00:00
Alan Modra 6ae3e978c3 Regenerate. 2012-02-14 01:24:35 +00:00
Alan Modra 32d79e6818 * ld-elf/linkoncerdiff.d: Don't run for hppa64-hpux.
* ld-elf/pr11304a.s: Always have whitespace before directives.
	* ld-elf/pr11304b.s: Likewise.
	* ld-selective/selective.exp: Test m68hc1* variant of m6811, m6812.
	* lib/ld-lib.exp: Likewise, and vice versa.
2012-02-14 01:02:04 +00:00
Alan Modra 516e75beac * gas/elf/bad-group.s: Add section attributes.
* gas/elf/elf.exp (groupautoa, groupautob): Don't run for hppa64-hpux.
	(ifunc-1, type): Don't run for hpux.
	* gas/elf/type-noifunc.e: Accept ANSI_COM.
	* gas/elf/section7.s: Always have whitespace before directives.
	* gas/elf/warn-2.s: Likewise.
	* gas/i386/ifunc-3.s: Move .size directive.
2012-02-14 01:01:30 +00:00
Alan Modra 71ac97b253 * binutils-all/dw2-decodedline.S: Always have whitespace before
directives.
	* binutils-all/version.s: Likewise.
	* binutils-all/objdump.exp (dw2-decodedline): Don't run for
	hppa64*-*-hpux*, i370-*-*, i960-*-*.
2012-02-14 01:00:50 +00:00
gdbadmin 0dd6b7d310 *** empty log message *** 2012-02-14 00:00:03 +00:00
Alan Modra 662f60d3a0 daily update 2012-02-13 23:00:05 +00:00
Kai Tietz d0ac693824 * deffilep.y (find_export_in_list): Set is_indent for
first or last element, if identical.
        (find_import_in_list): Likewise.
2012-02-13 20:42:07 +00:00
Pedro Alves cc30c4bd19 gdb/doc/
2012-02-13  Pedro Alves  <palves@redhat.com>

	* gdb.texinfo (MIPS boards): Refer to mips-elf instead of
	mips-idt-ecoff.

gdb/testsuite/
2012-02-13  Pedro Alves  <palves@redhat.com>

	* config/mips-idt.exp: Delete.
	* gdb.base/a2-run.exp: Remove mips-idt xfails.
	* gdb.base/bitfields.exp: Remove mips-idt restarts.
	* gdb.base/break.exp: Remove mips-idt references.
	* gdb.base/chng-syms.exp: Ditto.
	* gdb.base/default.exp: Ditto.
	* gdb.base/funcargs.exp (funcargs_reload): Delete.
	(top level): Don't call it.
	* gdb.base/opaque.exp: Remove mips-idt restarts.
	* gdb.base/ptype.exp: Remove mips-idt xfails.
	* gdb.base/scope.exp: Remove mips-idt restarts.
	* gdb.base/sepdebug.exp: Remove mips-idt references.
	* gdb.base/watchpoint.exp (maybe_clean_restart)
	(maybe_reinitialize): Delete.
	(test_disabling_watchpoints, test_disabling_watchpoints)
	(test_watchpoint_triggered_in_syscall)
	(test_watchpoint_and_breakpoint, test_inaccessible_watchpoint):
	Don't call them.
2012-02-13 18:09:59 +00:00
Richard Henderson e1741a1ed1 PR ld/13621
bfd/
	* linker.c (fix_syms): Force symbols outside any section into
	bfd_abs_section_ptr.
ld/testsuite/
	* ld-elf/warn2.d: Expect ABS section for Foo.
	* ld-elf/zerosize1.d, zerosize1.s: New test.
2012-02-13 18:08:51 +00:00
Alan Modra cec7aa6aca revert premature delta 2012-02-13 04:10:56 +00:00
Alan Modra fae5f26d81 * ld-m68hc11/m68hc11.exp: Run for m68hc11-*-* and m68hc12-*-*.
* ld-m68hc11/adj-brset.d: Remove redundant #target line.  Add
	-m m68hc11elf to ld invocation.
	* ld-m68hc11/adj-jump.d: Likewise.
	* ld-m68hc11/bug-1403.d: Likewise.
	* ld-m68hc11/bug-1417.d: Likewise.
	* ld-m68hc11/bug-3331.d: Likewise.
	* ld-m68hc11/relax-direct.d: Likewise.
	* ld-m68hc11/relax-group.d: Likewise.
	* ld-m68hc11/far-hc11.d: Remove redundant #target line.  Adjust for
	changed addresses.
	* ld-m68hc11/far-hc12.d: Remove redundant #target line.
	* ld-m68hc11/link-hcs12.d: Likewise, and adjust for header changes.
2012-02-13 02:31:53 +00:00
Alan Modra 017761eafe * gas/all/gas.exp (redef2): xfail m6811 and m6812.
* gas/elf/elf.exp: Use is_elf_format.
	* gas/symver/symver.exp: Likewise.
	* gas/m68hc11/m68hc11.exp: Simplify target test.
	Add -m68hc11 to error tests that pass for hc12.
2012-02-13 02:31:18 +00:00
Alan Modra 5efbbc4340 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
* elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
	* elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
	* elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
2012-02-13 02:29:51 +00:00
gdbadmin d5ded7aab1 *** empty log message *** 2012-02-13 00:00:34 +00:00
Alan Modra f85c0d490a daily update 2012-02-12 23:00:07 +00:00
Jan Kratochvil 11fde611c4 gdb/
* ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
	compilation warning.
2012-02-12 19:25:29 +00:00
Jan Kratochvil 570083757c gdb/
Fix crash on loaded shlibs without loaded exec_bfd.
	* exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
	(set_section_command): Replace exec_bfd by p->bfd.

gdb/testsuite/
	* gdb.server/server-exec-info.exp: New file.
2012-02-12 19:15:01 +00:00
Iain Sandoe 8e43fc024d gas:
* config/obj-macho.c (obj_mach_o_indirect_symbol): Force promotion of
	any local symbol used as an indirect.
2012-02-12 15:47:17 +00:00
gdbadmin cce17ce070 *** empty log message *** 2012-02-12 00:00:33 +00:00
Alan Modra ec9d606732 daily update 2012-02-11 23:00:06 +00:00
Kai Tietz aa83d1ec50 ChangeLog binutils
2012-02-11  Kai Tietz  <ktietz@redhat.com>

	PR binutils/13657
	* defparse.y (%union): New type id_const.
	(opt_name2): New rule.
	(keyword_as_name): New rule.
	(opt_name): Adjust rule.
	(opt_import_name): Likewise.
	(opt_equal_name): Likewise.

ChangeLog binutils/testsuite

2012-02-11  Kai Tietz  <ktietz@redhat.com>

	* binutils-all/version.def: New file.
	* binutils-all/dlltool.exp: Add version-dll test.

ChangeLog ld

2012-02-11  Kai Tietz  <ktietz@redhat.com>

	* deffilep.y (%union): New type id_const.
	(opt_name2): New rule.
	(keyword_as_name): New rule.
	(dot_name): Replaced by opt_name2 rule.
	(opt_name): Adjust rule.
	(opt_equal_name): Likewise.
2012-02-11 20:02:03 +00:00
Nick Clifton 98872a7c39 * pe-dll.c (auto_export): Use bsearch to speed up scan of exports
table.
	(process_def_file_and_drectve): Maintain sorting of exports table
	after stripping leading @ signs.
2012-02-11 19:25:12 +00:00
Kai Tietz 7afcdbb2bf PR binutils/13297
* resrc.c (write_rc_dialog_control): Omit text dump for
	EDITTEXT, COMBOBOX, LISTBOX, and SCROLLBAR.
2012-02-11 15:15:34 +00:00
Kai Tietz fd08dafa65 * gas/i386/disp32.d: Adjust lable-pattern. 2012-02-11 15:12:56 +00:00
Jan Kratochvil 3e3c397d77 bfd/
* oasys.c (oasys_write_header): Fix compilation warning on zero-sized
	memset.
2012-02-11 15:10:12 +00:00
Yao Qi d73f2619de gdb/gdbserver/
* server.c: (handle_monitor_command): Add a new parameter
	`own_buf'.
	(handle_query): Update caller.
2012-02-11 13:36:41 +00:00
gdbadmin a037eb8401 *** empty log message *** 2012-02-11 00:00:03 +00:00
Alan Modra 19ed63b22f daily update 2012-02-10 23:00:06 +00:00
Tom Tromey ff3c9849a7 * linespec.c (decode_line_internal): Skip symtabs_from_filename
when we have a C++ qualified name.
2012-02-10 17:31:34 +00:00
Pedro Alves 4a2d9c0801 2012-02-10 Pedro Alves <palves@redhat.com>
* gdb.base/break-interp.exp (test_attach_gdb): Assume $file is
	always non-empty.
	(test_attach): Always pass $exec to test_attach_gdb.
2012-02-10 16:06:50 +00:00
Pedro Alves db2b9fdd4f 2012-02-10 Pedro Alves <palves@redhat.com>
* inferior.c (inferior_pid_to_str): New.
	(print_inferior, inferior_command): Use it.
2012-02-10 14:23:52 +00:00
Pedro Alves 12cd34f3ad 2012-02-10 Pedro Alves <palves@redhat.com>
* configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
	the test CFLAGS.
	* configure: Regenerate.
2012-02-10 13:57:59 +00:00
Jan Kratochvil e871429d8d gdb/
* linespec.c (decode_line_internal): Fix comment correctness.
2012-02-10 13:27:04 +00:00
Iain Sandoe fb4914b0e6 gas:
* config/obj-macho.c (obj_mach_o_make_or_get_sect): Always fill in
	stub size when provided.  (obj_mach_o_section): Flag that stub-size
	has been provided.
2012-02-10 13:12:55 +00:00