Jerome Guitton [Thu, 29 Nov 2012 16:26:12 +0000 (16:26 +0000)]
Handle other cases than EVAL_NORMAL in the default case
In the evaluation of an expression in Ada mode, the default case
unwraps the argument unconditionally. For an object of a variant
record type, this unwrapping builds a fixed type from the
specification of the variant type and the actual values of the
object's discriminants. It means that unwrapping needs the "proper"
value for the object, not just a zero value with the proper type.
When not in EVAL_NORMAL, we cannot assume that the evaluation returns
such a proper value; it may well return a zero value of the
appropriate type e.g in EVAL_AVOID_SIDE_EFFECTS. It is wrong to try to
unwrap in that case.
In particular, a problem shows up when using expression of the form
{VARIANT_TYPE}OBJ. GDB first evaluates this expression in
EVAL_AVOID_SIDE_EFFECTS to compute the type, the evaluation of OBJ
in most cases returns a zero value of its type, and as UNOP_MEMVAL
is mapped to the default case its evaluation ends up trying to
read memory around address 0.
gdb/ChangeLog:
* ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
Hans-Peter Nilsson [Thu, 29 Nov 2012 14:39:23 +0000 (14:39 +0000)]
Fix attribution for old patch:
2009-10-19 Edgar E. Iglesias <edgar@axis.com>
Hans-Peter Nilsson <hp@axis.com>
* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_DTPREL>:
Don't subtract the size of the TLS block for non-shared objects
from the relocation.
gdbadmin [Thu, 29 Nov 2012 13:12:22 +0000 (13:12 +0000)]
GDB 7.5.1 released.
Maciej W. Rozycki [Thu, 29 Nov 2012 11:03:13 +0000 (11:03 +0000)]
* Makefile.in: Regenerate.
Yao Qi [Thu, 29 Nov 2012 07:55:10 +0000 (07:55 +0000)]
gdb/
2012-11-29 Yao Qi <yao@codesourcery.com>
Tom Tromey <tromey@redhat.com>
* eval.c (evaluate_subexp_standard): Get the correct pointer
type for TYPE_CODE_MEMBERPTR.
Yao Qi [Thu, 29 Nov 2012 06:24:24 +0000 (06:24 +0000)]
gdb/doc/
2012-11-29 Yao Qi <yao@codesourcery.com>
PR gdb/1477.
* gdb.texinfo (Print Settings): Correct the default 'demangle-style'
to 'auto' instead of 'gnu'.
gdbadmin [Thu, 29 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 28 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Edjunior Barbosa Machado [Wed, 28 Nov 2012 20:07:19 +0000 (20:07 +0000)]
2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
* rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
since now it is being done by binutils' powerpc_init_dialect().
Tom Tromey [Wed, 28 Nov 2012 18:48:38 +0000 (18:48 +0000)]
PR gdb/14290:
* solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
(darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
Use it.
* gdb_bfd.h (gdb_bfd_mark_parent): Declare.
* gdb_bfd.c (gdb_bfd_mark_parent): New function.
(gdb_bfd_openr_next_archived_file): Use it.
Julian Brown [Wed, 28 Nov 2012 16:53:01 +0000 (16:53 +0000)]
gas/
* config/tc-arm.c (md_apply_fix): Fix conversion of BL to BLX for
local targets in Thumb mode.
gas/testsuite/
* gas/arm/bl-local-2.s: New test.
* gas/arm/bl-local-2.d: New.
Markus Metzger [Wed, 28 Nov 2012 16:21:58 +0000 (16:21 +0000)]
2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
gdb/
* configure.ac: Check for linux/perf_event.h.
* config.in: Regenerated.
* configure: Regenerated.
gdb/gdbserver/
* configure.ac: Check for linux/perf_event.h.
* config.in: Regenerated.
* configure: Regenerated.
Kai Tietz [Wed, 28 Nov 2012 15:53:37 +0000 (15:53 +0000)]
* resbin.c (bin_to_res_version): Correct offset
and length calculation of resource.
(get_version_header): Apply alignement of 4 to len.
Yao Qi [Wed, 28 Nov 2012 11:56:15 +0000 (11:56 +0000)]
gdb/
2012-11-28 Yao Qi <yao@codesourcery.com>
* breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
abbreviate 'delete tracepoints' to 'delete tr'.
* corefile.c (_initialize_core): Call add_alias_cmd to
abbreviate 'set gnutarget' to 'set g'.
* value.c (_initialize_values): Call add_alias_cmd to abbreviate
'show convenience' to 'show conv'.
Jan-Benedict Glaw [Wed, 28 Nov 2012 11:43:47 +0000 (11:43 +0000)]
Disable libsanitizer for non-C++ builds.
* configure.ac (noconfigdirs): Merge from GCC.
* configure: Regenerate.
gdbadmin [Wed, 28 Nov 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Tue, 27 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update
Roland McGrath [Tue, 27 Nov 2012 17:26:11 +0000 (17:26 +0000)]
binutils/testsuite/
* lib/binutils-common.exp (is_zlib_supported): New function.
* lib/utils-lib.exp (run_dump_test): If as options include
--compress-debug-sections and zlib is not available, report
the test as unsupported.
* binutils-all/compress.exp: Bail out if zlib is not available.
* binutils-all/objdump.exp (objdump compressed debug):
Mark unsupported if zlib is not available.
* binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
gas/testsuite/
* lib/gas-defs.exp (run_dump_test): If as options include
--compress-debug-sections and zlib is not available, report
the test as unsupported.
ld/testsuite/
* ld-elf/compress.exp: Bail out if zlib is not supported.
* lib/ld-lib.exp (run_dump_test): If as options include
--compress-debug-sections and zlib is not available, report
the test as unsupported.
Roland McGrath [Tue, 27 Nov 2012 17:20:29 +0000 (17:20 +0000)]
ld/testsuite/
* ld-elf/flags1.d: Add *-*-nacl* to xfail list.
* ld-elf/orphan-region.d: Likewise.
Nick Clifton [Tue, 27 Nov 2012 17:04:30 +0000 (17:04 +0000)]
PR ld/14776
* ld.texinfo: Fix spelling mistakes.
Joel Brobecker [Tue, 27 Nov 2012 14:09:13 +0000 (14:09 +0000)]
Fix sparc-solaris build failure (sparc-sol2-nat.c)
Hello,
The recent patch for %fsr handling had a couple of tiny mistakes
that cause the build to fail on sparc-solaris. Fixed thusly.
gdb/ChangeLog:
* sparc-sol2-nat.c (supply_gregset): Fix first parameter in
call to sparc_supply_fpregset.
(fill_fpregset): Fix first parameter in call to
sparc_collect_fpregset.
Tested on sparc-solaris by rebuilding GDB. Will check it in.
Thanks,
--
Joel
Yao Qi [Tue, 27 Nov 2012 08:11:59 +0000 (08:11 +0000)]
gdb/
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
Kazu Hirata <kazu@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* objfiles.c (init_entry_point_info): Call
gdbarch_convert_from_func_ptr_addr and
gdbarch_addr_bits_remove here ...
(entry_point_address_query): ... instead of here.
* solib-svr4.c (exec_entry_point): Call
gdbarch_addr_bits_remove.
* symfile.c (generic_load): Call gdbarch_addr_bits_remove on
the entry address.
Yao Qi [Tue, 27 Nov 2012 07:59:12 +0000 (07:59 +0000)]
gdb/
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* eval.c (evaluate_subexp_standard): Add handling of
TYPE_CODE_MEMBERPTR when calling functions. Correct the
result of ptype for calling a TYPE_CODE_METHODPTR.
gdb/testsuite/
2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.cp/member-ptr.cc (class Diamond): Add func_ptr.
(func): New function.
(main): Initialize diamond.func_ptr and add diamond_pfunc_ptr.
* gdb.cp/member-ptr.exp: Add new tests for ptype and for
pointers to members with pointer-to-function type.
Yao Qi [Tue, 27 Nov 2012 07:41:43 +0000 (07:41 +0000)]
gdb/
2012-11-27 Yao Qi <yao@codesourcery.com>
* symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
warning.
Add i18n markup.
gdbadmin [Tue, 27 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Roland McGrath [Mon, 26 Nov 2012 23:26:35 +0000 (23:26 +0000)]
ld/
* emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse):
Copy last elf32.em here too.
* emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
* emultempl/mmixelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
* emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
Alan Modra [Mon, 26 Nov 2012 23:00:10 +0000 (23:00 +0000)]
daily update
Tom Tromey [Mon, 26 Nov 2012 22:31:29 +0000 (22:31 +0000)]
2012-11-26 Alexander Larsson <alexl@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* NEWS: Mention mini debuginfo feature.
* minidebug.c: New file.
* configure.ac: Check for lzma.
* configure, config.in: Rebuild.
* Makefile.in (LIBLZMA): New variable.
(CLIBS): Include LIBLZMA.
(SFILES): Mention minidebug.c.
(COMMON_OBS): Mention minidebug.o.
* symfile.c (read_symbols): New function.
(syms_from_objfile, reread_symbols): Call it.
* symfile.h (find_separate_debug_file_in_section): Declare.
doc
* gdb.texinfo (MiniDebugInfo): New node.
(GDB Files): Update.
testsuite
* gdb.base/gnu-debugdata.exp: New file.
* gdb.base/gnu-debugdata.c: New file.
* lib/gdb.exp (gdb_file_cmd): Handle LZMA warning.
(gdb_unload): Return 0 on success.
Tom Tromey [Mon, 26 Nov 2012 19:23:56 +0000 (19:23 +0000)]
2012-11-26 Alexander Larsson <alexl@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
* NEWS: Mention mini debuginfo feature.
* minidebug.c: New file.
* configure.ac: Check for lzma.
* configure, config.in: Rebuild.
* Makefile.in (LIBLZMA): New variable.
(CLIBS): Include LIBLZMA.
(SFILES): Mention minidebug.c.
(COMMON_OBS): Mention minidebug.o.
* symfile.c (read_symbols): New function.
(syms_from_objfile, reread_symbols): Call it.
* symfile.h (find_separate_debug_file_in_section): Declare.
doc
* gdb.texinfo (MiniDebugInfo): New node.
(GDB Files): Update.
testsuite
* gdb.base/gnu-debugdata.exp: New file.
* gdb.base/gnu-debugdata.c: New file.
* lib/gdb.exp (gdb_file_cmd): Handle LZMA warning.
(gdb_unload): Return 0 on success.
Jan Kratochvil [Mon, 26 Nov 2012 18:13:24 +0000 (18:13 +0000)]
gdb/testsuite/
* gdb.base/enumval.exp (print e, print f, print K): XFAIL on GCC <= 4.6.
Roland McGrath [Mon, 26 Nov 2012 17:49:11 +0000 (17:49 +0000)]
bfd/
* elf-nacl.c (nacl_modify_segment_map): Don't crash when INFO is null.
Joel Brobecker [Mon, 26 Nov 2012 17:41:44 +0000 (17:41 +0000)]
Do not crash when calling GDB with empty executable name.
% gdb -q ''
... or ...
% gdb -q
(gdb) file ''
... both cause GDB to crash with an invalid free. This is because
exec_file_attach is attempting to free a string that has not been
allocated. The string is only allocated if openp is successful.
But in the case of this obviously invalid filename, openp fails,
and leaves scratch_pathname uninitialized, thus causing the xfree
to fail.
The fix is to enable the associated cleanup after we have verified
that openp was successful.
gdb/ChangeLog (By Keith Seitz <keiths@redhat.com>):
* exec.c (exec_file_attach): Move cleanup after verifying that
memory has in fact been allocated.
gdb/testsuite/ChangeLog:
* gdb.base/empty_exe.exp: New testcase.
Tom Tromey [Mon, 26 Nov 2012 15:54:29 +0000 (15:54 +0000)]
* ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
* dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
SYMBOL_SYMTAB.
* skip.c (skip_info): Use SYMBOL_SYMTAB.
Pedro Alves [Mon, 26 Nov 2012 14:19:33 +0000 (14:19 +0000)]
gdb/
2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
Pedro Alves <palves@redhat.com>
* common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
size parameter passed to readlink by one byte.
* fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
* linux-nat.c (linux_child_pid_to_exec_file): Ditto.
* nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
* inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
size by one byte.
gdb/gdbserver/
2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
* hostio.c (handle_readlink): Decrease buffer size
parameter passed to readlink by one byte.
Yao Qi [Mon, 26 Nov 2012 13:30:07 +0000 (13:30 +0000)]
gdb/gdbserver/
2012-11-26 Yao Qi <yao@codesourcery.com>
* configure.ac (build_warnings): Append '-Wempty-body'.
* configure: Regenerated.
* linux-low.c (linux_create_inferior): Use braces for empty 'if'
body.
Yao Qi [Mon, 26 Nov 2012 13:26:57 +0000 (13:26 +0000)]
gdb/
2012-11-26 Yao Qi <yao@codesourcery.com>
* f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
extraneous parentheses.
Yao Qi [Mon, 26 Nov 2012 13:19:18 +0000 (13:19 +0000)]
gdb/
2012-11-26 Yao Qi <yao@codesourcery.com>
* remote.c (remote_start_remote): Typo fix.
gdbadmin [Mon, 26 Nov 2012 00:00:37 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 25 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 25 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sat, 24 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
gdbadmin [Sat, 24 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 23 Nov 2012 23:00:05 +0000 (23:00 +0000)]
daily update
David S. Miller [Fri, 23 Nov 2012 20:30:23 +0000 (20:30 +0000)]
Fix Sparc %fsr regset offset for BSD and Linux.
gdb/
* sparc-tdep.h (struct sparc_fpregset): New data structure.
(sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
sparc32_sol2_fpregset): Declare new globals.
(sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
'fpregset' argument.
* sparc64-tdep.h (sparc64_supply_fpregset,
sparc64_collect_fpregset): Likewise.
(sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
globals.
* sparc-nat.h (struct sparc_fpregset): Add forward declaration.
(sparc_fpregset): Declare new global.
(sparc_supply_fpregset, sparc_collect_fpregset): Add new
'fpregset' argument.
* sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
into handler.
(fill_fpregset): Likewise.
(_initialize_sparc_linux_nat): Set sparc_fpregset to
sparc32_bsd_fpregset.
* sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
sparc32_bsd_fpregset down into handler.
(sparc32_linux_collect_core_fpregset): Likewise.
* sparc-nat.c (sparc_fpregset): Define.
(sparc_supply_fpregset): Add 'fpregset' argument.
(sparc_collect_fpregset): Likewise.
(sparc_fetch_inferior_registers): Pass sparc_fpregset down
into fpregset handler.
(sparc_store_inferior_registers): Likewise.
(_initialize_sparc_nat): Set sparc_fpregset to
sparc32_sunos4_fpregset if NULL.
* sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
down into handler.
(fill_fpregset): Likewise.
* sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
* sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
use it to compute offsets.
(sparc32_collect_fpregset): Likewise.
(sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
* sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
down into handler.
(fill_fpregset): Likewise.
* sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
Likewise.
(sparc64_linux_collect_core_fpregset): Likewise.
* sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
* sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
use it to compute offsets.
(sparc64_collect_fpregset): Likewise.
(sparc64_bsd_fpregset): Define.
* sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
sparc64_bsd_fpregset down into handler.
(sparc64fbsd_collect_fpregset): Likewise.
* sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
and pass sparc{32,64}_bsd_fpregset down into handler.
(sparc64nbsd_collect_fpregset): Likewise.
* sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
sparc64_bsd_fpregset down into handler.
* sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
* sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
to sparc32_bsd_fpregset.
* sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
sparc32_bsd_fpregset down into sparc32_supply_fpregset.
(sparc32nbsd_supply_fpregset): Likewise.
Alan Modra [Fri, 23 Nov 2012 03:28:13 +0000 (03:28 +0000)]
include/opcode/
* ppc.h (ppc_parse_cpu): Update prototype.
opcodes/
* ppc-dis.c (ppc_parse_cpu): Add "sticky" param. Track bits
set from ppc_opts.sticky in it. Delete "retain_mask".
(powerpc_init_dialect): Choose default dialect from info->mach
before parsing -M options. Handle more bfd_mach_ppc variants.
Update common default to power7.
gas/
* config/tc-ppc.c (sticky): New var.
(md_parse_option, ppc_machine): Update ppc_parse_cpu calls.
gas/testsuite/
* gas/ppc/astest2.d: Pass -Mppc to objdump.
ld/testsuite/
* ld-powerpc/plt1.d: Update for default "at" branch hints.
* ld-powerpc/tlsexe.d: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsopt1.d: Likewise.
* ld-powerpc/tlsopt1_32.d: Likewise.
* ld-powerpc/tlsopt2.d: Likewise.
* ld-powerpc/tlsopt2_32.d: Likewise.
* ld-powerpc/tlsopt4.d: Likewise.
* ld-powerpc/tlsopt4_32.d: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
gdbadmin [Fri, 23 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 22 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
gdbadmin [Thu, 22 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Wed, 21 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
H.J. Lu [Wed, 21 Nov 2012 21:31:18 +0000 (21:31 +0000)]
Set output maxpagesize when rewriting program header
bfd/
PR binutils/14493
* elf.c (copy_elf_program_header): When rewriting program
header, set the output maxpagesize to the maximum alignment
of input PT_LOAD segments.
2012-11-21 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14493
* ld-elf/maxpage5.d: New file.
* ld-elf/maxpage5.s: Likewise.
* ld-elf/maxpage5.t: Likewise.
Roland McGrath [Wed, 21 Nov 2012 20:13:04 +0000 (20:13 +0000)]
bfd/
* elf-nacl.c (segment_nonexecutable_and_has_contents): Renamed to ...
(segment_eligible_for_headers): ... this. Take new arguments
MAXPAGESIZE and SIZEOF_HEADERS. Return false if the first section's
start address doesn't leave space for the headers.
(nacl_modify_segment_map): Update caller.
Roland McGrath [Wed, 21 Nov 2012 19:56:38 +0000 (19:56 +0000)]
ld/
* ld.h (ld_config_type): New flag member separate_code.
* emultempl/elf32.em
(gld${EMULATION_NAME}_before_parse): Set it based on $SEPARATE_CODE.
* ldlang.c (ldlang_override_segment_assignment): If it's set, then
always return TRUE when SEC_CODE differs between the sections.
Roland McGrath [Wed, 21 Nov 2012 19:31:24 +0000 (19:31 +0000)]
* ld-elf/comm-data.exp: Add XFAIL for arm*-*-* targets, referring
to PR ld/13802.
Tom Tromey [Wed, 21 Nov 2012 18:07:17 +0000 (18:07 +0000)]
* gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
field.
(TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
Remove.
* c-typeprint.c (c_type_print_base): Update.
Michael Eager [Wed, 21 Nov 2012 17:54:11 +0000 (17:54 +0000)]
Add swap byte (swapb) and swap halfword (swaph) opcodes.
binutils/opcodes
* microblaze-opc.h (op_code_struct): Add swapb, swaph Increase MAX_OPCODES.
* microblaze-opcm.h (microblaze_instr): Likewise
binutils/gas/testsuite
* gas/microblaze/allinsn.s: Add swapb, swaph
* gas/microblaze/allinsn.d: Likewise
Michael Eager [Wed, 21 Nov 2012 17:34:14 +0000 (17:34 +0000)]
Add stack high register and stack low register for MicroBlaze
hardware assisted stack protection, stores stack low / stack high limits
for detecting stack overflow / underflow
binutils/opcodes
* microblaze-opcm.h: Add REG_SLR_MASK, REG_SHR_MASK, REG_SHR and REG_SLR
* microblaze-dis.c (get_field_special): Handle REG_SLR_MASK and REG_SHR_MASK
binutils/gas
* config/tc-microblaze.c (parse_reg): Parse REG_SLR, REG_SHR
binutils/gas
* gas/microblaze/allinsn.s: Test use of SHR, SLR
* gas/microblaze/allinsn.d: Likewise
Pedro Alves [Wed, 21 Nov 2012 14:09:10 +0000 (14:09 +0000)]
Revert previous change to i386-tdep.c.
H.J. Lu [Wed, 21 Nov 2012 13:53:23 +0000 (13:53 +0000)]
Run more tests on x86_64-*-linux-gnu*/i?86-*-linux-gnu
* ld-elf/discard1.d: Run on x86_64-*-linux-gnu*.
* ld-elf/discard2.d: Likewise.
* ld-elf/discard3.d: Likewise.
* ld-elf/eh6.d: Likewise.
* ld-elf/maxpage3c.d: Run on i?86-*-linux-gnu.
* ld-elf/maxpage4.d: Likewise.
Karthik Bhat [Wed, 21 Nov 2012 08:02:13 +0000 (08:02 +0000)]
Added forgotton ChangeLog for previous fix i.e. breakpoint not set properly in case of clang compiled binary commit
Karthik Bhat [Wed, 21 Nov 2012 07:39:02 +0000 (07:39 +0000)]
Fix for incorrect breakpoint set in case of clang compiled binary
Yao Qi [Wed, 21 Nov 2012 00:29:55 +0000 (00:29 +0000)]
gdb/
2012-11-21 Yao Qi <yao@codesourcery.com>
PR tdep/7438
* gdbarch.sh (smash_text_address): Remove.
* gdbarch.c, gdbarch.h: Regenerate.
* arm-tdep.c (arm_smash_text_address): Remove.
(arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
* hppa-tdep.c (hppa_smash_text_address): Remove.
(hppa_addr_bits_remove): Rename from hppa_smash_text_address.
(hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
Caller update.
* coffread.c (coff_symtab_read): Caller update.
* dbxread.c (process_one_symbol): Likewise.
* elfread.c (record_minimal_symbol): Likewise.
* somread.c (som_symtab_read): Likewise.
gdbadmin [Wed, 21 Nov 2012 00:00:36 +0000 (00:00 +0000)]
*** empty log message ***
Pierre Muller [Tue, 20 Nov 2012 23:02:29 +0000 (23:02 +0000)]
Add forgotten ChangeLog for previous ARI fixes commit
Alan Modra [Tue, 20 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update
Pierre Muller [Tue, 20 Nov 2012 22:51:05 +0000 (22:51 +0000)]
ARI fixes: sprintf rule.
Replace sprintf function calls for char arrays by
calls to xsnprintf calls.
* arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
(arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
(arm_neon_quad_read, arm_pseudo_read): Ditto.
(arm_neon_quad_write, arm_pseudo_write): Ditto.
* breakpoint.c (condition_completer): Ditto.
(create_tracepoint_from_upload): Ditto.
* dwarf2read.c (file_full_name): Ditto.
* gcore.c (gcore_command): Ditto.
* gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
* go32-nat.c (go32_sysinfo): Ditto.
* interps.c (interp_set): Ditto.
* m32c-tdep.c (make_types): Ditto.
* ppc-linux-nat.c (fetch_register, store_register): Ditto.
* remote-m32r-sdi.c (m32r_open): Ditto.
* sol-thread.c (td_err_string): Ditto.
(td_state_string, solaris_pid_to_str): Ditto.
* symtab.c (gdb_mangle_name): Ditto.
* cli/cli-script.c (execute_control_command): Ditto.
(define_command, document_command): Ditto.
* tui/tui-io.c (tui_rl_display_match_list): Ditto.
* tui/tui-stack.c (tui_make_status_line): Ditto.
* tui/tui-win.c (tui_update_gdb_sizes): Ditto.
H.J. Lu [Tue, 20 Nov 2012 22:17:27 +0000 (22:17 +0000)]
Remove ref_dynamic_nonweak added by accident
bfd/
2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14862
* elf-bfd.h (elf_link_hash_entry): Remove ref_dynamic_nonweak
added by accident.
(elf_link_add_object_symbols): Don't set nor check
ref_dynamic_nonweak.
ld/testsuite/
2012-11-20 H.J. Lu <hongjiu.lu@intel.com>
PR ld/14862
* ld-elf/shared.exp (build_tests): Build libpr14862-1.o and
libpr14862.so.
(run_tests): Test pr14862.
* ld-elf/pr14862-1.c: New file.
* ld-elf/pr14862-2.c: Likewise.
* ld-elf/pr14862.map: Likewise.
* ld-elf/pr14862.out: Likewise.
H.J. Lu [Tue, 20 Nov 2012 22:16:05 +0000 (22:16 +0000)]
Implement ELF linker -z global option
ld/
* ld.texinfo: Document "-z global".
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Support
"-z global".
(gld${EMULATION_NAME}_list_options): Likewise.
ld/testsuite/
* ld-elf/global1.d: New file.
Mike Frysinger [Tue, 20 Nov 2012 21:02:36 +0000 (21:02 +0000)]
gdb: include help aliases in help command completion
There are a bunch of aliases that get used with help, but the current
command completion logic does not include those when doing completions.
Since the framework is already mostly in place, extend complete_on_cmdlist
slightly to pass down the ignore_help_classes flag like is done with the
existing lookup command logic.
Now you can do:
(gdb) help use<tab>
and get back:
(gdb) help user-defined
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Tom Tromey [Tue, 20 Nov 2012 18:18:39 +0000 (18:18 +0000)]
* completer.c (count_struct_fields): Remove.
(expression_completer): Don't call count_struct_fields.
Roland McGrath [Tue, 20 Nov 2012 17:53:46 +0000 (17:53 +0000)]
gas/
* config/tc-arm.c (arm_symbol_chars): New variable.
* config/tc-arm.h (tc_symbol_chars): New macro, defined to that.
gas/testsuite/
* gas/arm/macro-pld.s: New file.
* gas/arm/macro-pld.d: New file.
Pedro Alves [Tue, 20 Nov 2012 17:49:02 +0000 (17:49 +0000)]
2012-11-20 Pedro Alves <palves@redhat.com>
* annotate.c (breakpoints_changed): Rename to ...
(annotate_breakpoints_changed): ... this.
(annotate_stopped, breakpoint_changed): Adjust caller.
* annotate.h (breakpoints_changed): Rename to ...
(annotate_breakpoints_changed): ... this.
* breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
(do_map_commands_command, init_raw_breakpoint, clear_command)
(set_ignore_count, enable_breakpoint_disp): Adjust callers.
David S. Miller [Tue, 20 Nov 2012 17:40:28 +0000 (17:40 +0000)]
Fix 'info os' crashes on sparc.
* common/linux-osdata.c (get_number_of_cpu_cores): Delete.
(linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
sysconf.
(get_cores_used_by_process): Update comment.
H.J. Lu [Tue, 20 Nov 2012 14:41:26 +0000 (14:41 +0000)]
Fix sim build when configured with --enable-plugins
* common/Make-common.in: Use lt_cv_dlopen_libs under PLUGINS
condition.
* common/acinclude.m4: Define lt_cv_dlopen_libs.
* arm/configure: Regenerate.
* avr/configure: Regenerate.
* bfin/configure: Regenerate.
* common/configure: Regenerate.
* cr16/configure: Regenerate.
* cris/configure: Regenerate.
* d10v/configure: Regenerate.
* erc32/configure: Regenerate.
* frv/configure: Regenerate.
* h8300/configure: Regenerate.
* igen/configure: Regenerate.
* iq2000/configure: Regenerate.
* lm32/configure: Regenerate.
* m32c/configure: Regenerate.
* m32r/configure: Regenerate.
* m68hc11/configure: Regenerate.
* mcore/configure: Regenerate.
* microblaze/configure: Regenerate.
* mips/configure: Regenerate.
* mn10300/configure: Regenerate.
* moxie/configure: Regenerate.
* ppc/configure: Regenerate.
* rl78/configure: Regenerate.
* rx/configure: Regenerate.
* sh/configure: Regenerate.
* sh64/configure: Regenerate.
* testsuite/configure: Regenerate.
* v850/configure: Regenerate.
H.J. Lu [Tue, 20 Nov 2012 14:21:33 +0000 (14:21 +0000)]
Fix opcode for 64-bit jecxz
gas/testsuite/
PR gas/14859
* gas/i386/x86-64-opcode.s: Add jecxz.
* gas/i386/x86-64-opcode.d: Updated.
opcodes/
PR gas/14859
* i386-opc.tbl: Fix opcode for 64-bit jecxz.
* i386-tbl.h: Regenerated.
Andreas Krebbel [Tue, 20 Nov 2012 11:58:30 +0000 (11:58 +0000)]
2012-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* s390-opc.txt: Fix srstu and strag opcodes.
2012-11-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/zarch-z9-109.d: Fix srstu opcode.
* gas/s390/zarch-z900.d: Replace lasp with strag.
Yufeng Zhang [Tue, 20 Nov 2012 10:29:00 +0000 (10:29 +0000)]
gas/ChangeLog
2012-11-20 Yufeng Zhang <yufeng.zhang@arm.com>
* config/tc-aarch64.c (first_error_fmt): Add ATTRIBUTE_UNUSED to the
local variable "ret".
David S. Miller [Tue, 20 Nov 2012 08:37:52 +0000 (08:37 +0000)]
Fix sparc bitness overrides in GAS. Noticed by Eric Botcazou.
gas/
* config/tc-sparc.c (md_parse_option): Only certain arch
specifications should override the object to be 32-bit
or 64-bit.
Yao Qi [Tue, 20 Nov 2012 06:47:25 +0000 (06:47 +0000)]
gdb/
2012-11-20 Yao Qi <yao@codesourcery.com>
* objfiles.c (init_entry_point_info): Remove trailing spaces.
H.J. Lu [Tue, 20 Nov 2012 05:56:06 +0000 (05:56 +0000)]
Fix TLS to LE optimization for x32
PR gold/14858
* x86_64.cc (Relocate::tls_ld_to_le): Support x32.
Yao Qi [Tue, 20 Nov 2012 03:10:24 +0000 (03:10 +0000)]
gdb/
2012-11-20 Yao Qi <yao@codesourcery.com>
* infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
to deprecated_context_hook.
Yao Qi [Tue, 20 Nov 2012 02:55:10 +0000 (02:55 +0000)]
gdb/testsuite/
2012-11-20 Yao Qi <yao@codesourcery.com>
* gdb.mi/mi-cmd-param-changed.exp (test_command_param_changed):
Don't test 'maint set show-debug-regs'.
Use command 'set remotecache' instead of
'set circular-trace-buffer'.
Alan Modra [Tue, 20 Nov 2012 01:40:00 +0000 (01:40 +0000)]
* elf32-rx.c (rx_elf_print_private_bfd_data): Warning fix.
gdbadmin [Tue, 20 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Mon, 19 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update
Jan-Benedict Glaw [Mon, 19 Nov 2012 22:03:01 +0000 (22:03 +0000)]
2012-11-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config.sub (arm): Merge from upstream: Handle armv[6-8] targets.
Yao Qi [Mon, 19 Nov 2012 06:56:52 +0000 (06:56 +0000)]
gdb/
2012-11-19 Yao Qi <yao@codesourcery.com>
* infrun.c (infwait_state): Add static.
gdbadmin [Mon, 19 Nov 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Sun, 18 Nov 2012 23:00:02 +0000 (23:00 +0000)]
daily update
gdbadmin [Sun, 18 Nov 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
gdbadmin [Sat, 17 Nov 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Fri, 16 Nov 2012 23:00:04 +0000 (23:00 +0000)]
daily update
Keith Seitz [Fri, 16 Nov 2012 20:54:30 +0000 (20:54 +0000)]
PR c++/13615
* cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
parameter and pass it to lookup_symbol_file.
(cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
to search base classes.
(cp_lookup_symbol_namespace): Likewise.
(lookup_namespace_scope): Likewise.
(lookup_symbol_file): Add SEARCH parameter.
If SEARCH is non-zero and no symbol is found, lookup the class
and call cp_lookup_nested_symbol.
(find_symbol_in_baseclass): New function.
(cp_lookup_nested_symbol): Do not let
cp_lookup_symbol_in_namespace search through base classes.
Do that later when there is no global symbol match.
PR c++/13615
* gdb.cp/baseenum.cc: New file.
* gdb.cp/baseenum.exp: New file.
* gdb.cp/derivation.cc (A): Add copyright.
Add a typedef.
(B): Use A::value_type instead of int. Change all references.
(D): Use value_type instead of int. Change all references.
(E): Likewise.
(F); Likewise.
(Z): New class.
(ZZ): New class.
(N, Base, Derived): New namespace and classes.
(main): Add instances of Z and ZZ.
Make sure all symbols from N are kept.
* gdb.cp/derivation.exp: Update typedef changes in tests.
Add tests for class typedefs both before and after starting
the inferior.
Add tests for searching for a typedef while stopped in a
method.
Doug Evans [Fri, 16 Nov 2012 19:43:39 +0000 (19:43 +0000)]
* main.c (gdb_datadir_provided): New static global.
(get_init_files): If --data-directory is provided,
and SYSTEM_GDBINIT lives in data-directory, look for it there.
* NEWS: Mention it.
doc/
* gdb.texinfo (System-wide configuration): If the system-wide init
file lives in the data-directory, and --data-directory is provided,
look for it there.
Yufeng Zhang [Fri, 16 Nov 2012 18:33:00 +0000 (18:33 +0000)]
bfd/ChangeLog
2012-11-16 Joey Ye <joey.ye@arm.com>
* elf32-arm.c (elf32_arm_final_link_relocate,
case R_ARM_THM_ALU_PREL_11_0, case R_ARM_THM_PC12): Align address of
the place being relocated.
(elf32_arm_final_link_relocate, case R_ARM_THM_PC8): Align address
of the place being relocated and truncate addend.
(Pa): New macro.
H.J. Lu [Fri, 16 Nov 2012 12:49:20 +0000 (12:49 +0000)]
Update DF_1_XXX from Solaris
binutils/
* readelf.c (process_dynamic_section): Correct DF_1_CONFALT.
Also dump DF_1_ENDFILTEE, DF_1_DISPRELDNE, DF_1_NODIRECT,
DF_1_IGNMULDEF, DF_1_NOKSYMS, DF_1_NOHDR, DF_1_EDITED,
DF_1_NORELOC, DF_1_SYMINTPOSE, DF_1_GLOBAUDIT and DF_1_SINGLETON.
include/elf/
* common.h (DF_1_CONLFAT): Renamed to ...
(DF_1_CONFALT): This.
(DF_1_ENDFILTEE): New.
(DF_1_DISPRELDNE): Likewise.
(DF_1_DISPRELPND): Likewise.
(DF_1_NODIRECT): Likewise.
(DF_1_IGNMULDEF): Likewise.
(DF_1_NOKSYMS): Likewise.
(DF_1_NOHDR): Likewise.
(DF_1_EDITED): Likewise.
(DF_1_NORELOC): Likewise.
(DF_1_SYMINTPOSE): Likewise.
(DF_1_GLOBAUDIT): Likewise.
(DF_1_SINGLETON): Likewise.
Maxim Kuvyrkov [Fri, 16 Nov 2012 04:01:14 +0000 (04:01 +0000)]
Fix typo.
Maxim Kuvyrkov [Fri, 16 Nov 2012 04:00:41 +0000 (04:00 +0000)]
Port lib32 arangement from Debian.
* emulparams/elf_i386.sh: Include lib32 directories in library search
path.
gdbadmin [Fri, 16 Nov 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
Alan Modra [Thu, 15 Nov 2012 23:00:03 +0000 (23:00 +0000)]
daily update
Tom Tromey [Thu, 15 Nov 2012 21:25:43 +0000 (21:25 +0000)]
* gdb.texinfo (Signaling): Fix typo.