OSDN Git Service
amylaar [Thu, 27 Oct 2011 14:27:16 +0000 (14:27 +0000)]
bfd:
* cpu-epiphany.c: Reinstate full list of Copyright years.
* elf32-epiphany.c: Likewise.
cpu:
* epiphany.cpu, epiphany.opc: Likewise.
gas:
* config/tc-epiphany.c, config/tc-epiphany.h: Likewise.
* doc/c-epiphany.texi: Likewise.
include:
* elf/epiphany.h: Likewise.
amylaar [Thu, 27 Oct 2011 14:13:24 +0000 (14:13 +0000)]
* MAINTAINERS: Add myself as EPIPHANY port maintainer.
kpouget [Thu, 27 Oct 2011 11:04:25 +0000 (11:04 +0000)]
Move unwind reasons to an external .def file
gdb/
* frame.c (frame_stop_reason_string): Rewrite using
unwind_stop_reasons.def.
* frame.h (enum unwind_stop_reason): Likewise.
* python/py-frame.c (gdbpy_initialize_frames): Likewise.
(gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
constants for bound-checking.
* unwind_stop_reasons.def: New file.
* stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
instead of a distinct value.
doc/
* gdb.texinfo ((Frames In Python): Document
gdb.FRAME_UNWIND_FIRST_ERROR contant.
pmuldoon [Thu, 27 Oct 2011 10:29:58 +0000 (10:29 +0000)]
2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
PR python/13331
* python/py-function.c (fnpy_call): Check 'args' is not NULL.
(convert_values_to_python): Return on Python tuple allocation
failure. Return NULL on value conversion error.
nickc [Thu, 27 Oct 2011 09:45:24 +0000 (09:45 +0000)]
* config.sub: Import these changes from the config project:
2011-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
Ben Elliston <bje@gnu.org>
* config.sub (epiphany): New.
2011-09-09 Linas Vepstas <linasvepstas@gmail.com>
Ben Elliston <bje@gnu.org>
* config.sub (hexagon, hexagon-*): New.
2011-08-23 Roland McGrath <mcgrathr@google.com>
* config.sub: Rename 32eb to be32, 32el to le32, 64el to le64, and
64eb to be64.
2011-08-16 Roland McGrath <mcgrathr@google.com>
* config.sub (32eb, 32el, 64eb, 64el): New (pseudo-)CPUs.
(nacl): Grok as alias for 32el-unknown-nacl.
pmuldoon [Thu, 27 Oct 2011 09:14:26 +0000 (09:14 +0000)]
2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
* python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
(bppy_set_task): Ditto.
(bppy_delete_breakpoint): Ditto.
* python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
(gdbpy_lookup_global_symbol): Ditto.
* python/py-lazy-string.c (stpy_convert_to_value): Ditto.
* python/py-frame.c (frapy_is_valid): Ditto.
(frame_info_to_frame_object): Ditto.
* python/py-type.c (typy_lookup_type): Ditto.
(typy_getitem): Ditto.
(typy_has_key): Ditto.
(typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
gdbadmin [Thu, 27 Oct 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 26 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update
brobecke [Wed, 26 Oct 2011 21:23:54 +0000 (21:23 +0000)]
Regenerate gdbarch.h
Not sure why, but the version currently checked in as an extraneous
trailing whitespace that showed up as a diff when I reran gdbarch.sh.
gdb/ChangeLog:
* gdbarch.h: Regenerate.
cgf [Wed, 26 Oct 2011 19:42:37 +0000 (19:42 +0000)]
* child_info.h (cchildren): New struct.
(child_info_spawn::nchildren): Rename from nprocs.
(child_info_spawn::children): Change type to cchildren for more bookkeeping
possibilities.
(child_info_spawn::child_info_spawn): Clear nchildren.
(child_info_spawn::record_children): Declare new function.
(child_info_spawn::reattach_children): Ditto.
* dcrt0.cc (child_info_spawn::handle_spawn): Call reattach_children to gather
list of processes we are potentially waiting for.
* pinfo.h (pinfo::pinfo): Make sure that rd_proc_pipe is always cleared.
(pinfo::reattach): New function.
* sigproc.cc: Move pinfo.h earlier so that it can be used in sigproc.h.
(get_proc_lock): Don't bother with a lock during DLL initialization.
(proc_subproc): Handle PROC_REATTACH_CHILD.
(proc_terminate): Orphan children only when we are not an execed process or
when the pid is about to be occupied by a non-cygwin process.
(child_info_spawn::record_children): Define new function.
(child_info_spawn::reattach_children): Ditto.
* sigproc.h (procstuff): Define PROC_REATTACH_CHILD and renumber other
elements.
* spawn.cc (spawn_guts): Record any to-be-waited-for subprocesses if about to
exec a cygwin process.
* sigproc.cc (sig_send): Fix harmless transposition of fifth and six arguments
to DuplicateHandle().
(child_info::child_info): Ditto.
* globals.cc (hExeced): Make NO_COPY.
brobecke [Wed, 26 Oct 2011 18:21:35 +0000 (18:21 +0000)]
Fix 'sprintf' of potential NULL pointer in 'maint print arch'
gdb/
* gdbarch.sh (function_list): Use 'pstring' when printing
'gcore_bfd_target'.
* gdbarch.c: Regenerate.
uweigand [Wed, 26 Oct 2011 17:32:00 +0000 (17:32 +0000)]
* regcache.c (registers_changed_ptid): Invalidate thread architecture
and frame caches if PTID refers to all threads of a process.
uweigand [Wed, 26 Oct 2011 17:26:29 +0000 (17:26 +0000)]
* spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
to create_breakpoint.
uweigand [Wed, 26 Oct 2011 17:21:51 +0000 (17:21 +0000)]
* ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
(ppc_sysv_abi_push_dummy_call): Use it.
(do_ppc_sysv_return_value): Likewise.
(ppc64_sysv_abi_push_dummy_call): Likewise.
(ppc64_sysv_abi_return_value): Likewise.
dj [Wed, 26 Oct 2011 15:56:36 +0000 (15:56 +0000)]
merge from gcc
pkoning [Wed, 26 Oct 2011 15:10:37 +0000 (15:10 +0000)]
* gdb.texinfo (gdb.types): Document new deepitems function.
pkoning [Wed, 26 Oct 2011 15:10:10 +0000 (15:10 +0000)]
* gdb.python/lib-types.cc (struct A): New structure.
* gdb.python/lib-types.exp (deepitems): New tests.
pkoning [Wed, 26 Oct 2011 15:09:37 +0000 (15:09 +0000)]
* python/lib/gdb/types.py (deepitems): New function.
nickc [Wed, 26 Oct 2011 14:45:59 +0000 (14:45 +0000)]
PR binutils/13348
* i386-dis.c (print_insn): Fix testing of array subscript.
amylaar [Wed, 26 Oct 2011 12:46:03 +0000 (12:46 +0000)]
cpu:
* epiphany.opc (parse_branch_addr): Fix type of valuep.
Cast value before printing it as a long.
(parse_postindex): Fix type of valuep.
opcodes:
* epiphany-asm.c, epiphany-opc.h: Regenerate.
amylaar [Wed, 26 Oct 2011 12:14:16 +0000 (12:14 +0000)]
gas:
* doc/as.texinfo [EPIPHANY]: Include c-epiphany.texi to avoid
duplication.
opcodes:
* disassemble.c (ARCH_epiphany): Move into alphasorted spot.
amylaar [Wed, 26 Oct 2011 12:13:45 +0000 (12:13 +0000)]
gas:
* doc/as.texinfo [EPIPHANY]: Include c-epiphany.texi to avoid
duplication.
opcodes:
* disassemble.c (ARCH_epiphany): Move into alphasorted spot.
nickc [Wed, 26 Oct 2011 09:51:57 +0000 (09:51 +0000)]
* hist.c (hist_assign_samples_1): Update comment.
nickc [Wed, 26 Oct 2011 09:47:56 +0000 (09:47 +0000)]
PR ld/13049
* elf64-ppc.c (STUB_SUFFIX): Revert previous delta.
* elf32-hppa.c (STUB_SUFFIX): Likewise.
gdbadmin [Wed, 26 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Tue, 25 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update
vapier [Tue, 25 Oct 2011 20:39:40 +0000 (20:39 +0000)]
binutils: fix out of tree building with syslex regens
If you take a release tarball (which has pregenerated syslex and sysinfo files
in it), apply some patches which touch syslex.l, and then build the result out
of tree, it will fail. This is because syslex.l uses sysinfo.h, but the
sysinfo.y file wasn't updated and so it wasn't regenerated (the files are found
in the $srcdir), and the build rule for syslex.c does not use -I$(srcdir) when
it finds a local file. Simple fix below.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
vapier [Tue, 25 Oct 2011 20:36:21 +0000 (20:36 +0000)]
Building rx's gas code atm fails:
rx-parse.c: In function ‘rx_parse’:
rx-parse.c:3774:9: error: passing argument 1 of ‘rx_error’ discards ‘const’
qualifier from pointer target type [-Werror]
../../../gas/config/rx-defs.h:40:12: note:
expected ‘char *’ but argument is of type ‘const char *’
cc1: all warnings being treated as errors
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
pkoning [Tue, 25 Oct 2011 18:35:48 +0000 (18:35 +0000)]
* gdb.python/py-value.exp: Add testcases for is_lazy attribute,
fetch_lazy method.
pkoning [Tue, 25 Oct 2011 18:35:19 +0000 (18:35 +0000)]
PR python/13327
* gdb.texinfo (Values From Inferior): Add is_lazy attribute,
fetch_lazy method.
pkoning [Tue, 25 Oct 2011 18:34:50 +0000 (18:34 +0000)]
PR python/13327
* python/py-value.c (value_to_value_object): Remove fetching of
the value if it was lazy.
(valpy_get_is_lazy): New function.
(valpy_fetch_lazy): New function.
nickc [Tue, 25 Oct 2011 16:46:46 +0000 (16:46 +0000)]
Oops - apply correct patch for previous delta.
corinna [Tue, 25 Oct 2011 16:35:53 +0000 (16:35 +0000)]
* hookapi.cc (hook_or_detect_cygwin): Take additional handle
to a file mapping as parameter. If this handle is not NULL,
create another file mapping for the IAT.
* spawn.cc (av::fixup): Only map the first 64K of an image and
keep the mapping handle to use as argument to hook_or_detect_cygwin.
* winsup.h (hook_or_detect_cygwin): Add mapping handle as default
parameter in declaration.
nickc [Tue, 25 Oct 2011 13:34:59 +0000 (13:34 +0000)]
* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'.
nickc [Tue, 25 Oct 2011 11:17:58 +0000 (11:17 +0000)]
bfd:
* Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo .
(ALL_MACHINES_CFILES): Add cpu-epiphany.c .
(BFD32_BACKENDS): Add elf32-epiphany.lo .
(BFD32_BACKENDS_CFILES): Add elf32-epiphany.c .
* Makefile.in, bfd-in2.h, configure, libbfd.h: Regenerate.
* archures.c (bfd_arch_epiphany): Add.
(bfd_mach_epiphany16, bfd_mach_epiphany32): Define.
(bfd_epiphany_arch): Declare.
(bfd_archures_list): Add &bfd_epiphany_arch.
* config.bfd (epiphany-*-elf): New target case.
* configure.in (bfd_elf32_epiphany_vec): New target vector case.
* reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation.
(BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise.
(BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise.
(BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise.
* targets.c (bfd_elf32_epiphany_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_epiphany_vec.
* po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
* cpu-epiphany.c, elf32-epiphany.c: New files.
binutils:
* readelf.c (include "elf/epiphany.h")
(guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY.
(get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise.
(is_16bit_abs_reloc, is_none_reloc): Likewise.
* po/binutils.pot: Regenerate.
cpu:
* cpu/epiphany.cpu, cpu/epiphany.opc: New files.
gas:
* NEWS: Mention addition of Adapteva Epiphany support.
* config/tc-epiphany.c, config/tc-epiphany.h: New files.
* Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c .
(TARGET_CPU_HFILES): Add config/tc-epiphany.h .
* Makefile.in, configure, doc/Makefile.in, po/POTFILES.in: Regenerate.
* configure.in: Also set using_cgen for epiphany.
* configure.tgt: Handle epiphany.
* doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi .
* doc/all.texi: Set EPIPHANY.
* doc/as.texinfo: Add EPIPHANY-specific text.
* doc/c-epiphany.texi: New file.
* po/gas.pot: Regenerate.
gas/testsuite:
* gas/epiphany: New directory.
include:
* dis-asm.h (print_insn_epiphany): Declare.
* elf/epiphany.h: New file.
* elf/common.h (EM_ADAPTEVA_EPIPHANY): Define.
ld:
* NEWS: Mention addition of Adapteva Epiphany support.
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c .
(eelf32epiphany.c): New rule.
* Makefile.in: Regenerate.
* configure.tgt: Handle epiphany-*-elf.
* po/ld.pot: Regenerate.
* testsuite/ld-srec/srec.exp: xfail epiphany.
* emulparams/elf32epiphany.sh: New file.
opcodes:
* Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h .
(TARGET_LIBOPCODES_CFILES): Add epiphany-asm.c, epiphany-desc.c,
epiphany-dis.c, epiphany-ibld.c and epiphany-opc.c .
(CLEANFILES): Add stamp-epiphany.
(EPIPHANY_DEPS): Set. Make CGEN-generated Epiphany files depend on it.
(stamp-epiphany): New rule.
* Makefile.in, configure, po/POTFILES.in, po/opcodes.pot: Regenerate.
* configure.in: Handle bfd_epiphany_arch.
* disassemble.c (ARCH_epiphany): Define.
(disassembler): Handle bfd_arch_epiphany.
* epiphany-asm.c, epiphany-desc.c, epiphany-desc.h: New files.
* epiphany-dis.c, epiphany-ibld.c, epiphany-opc.c: Likewise.
* epiphany-opc.h: Likewise.
nickc [Tue, 25 Oct 2011 08:38:49 +0000 (08:38 +0000)]
PR gprof/13325
* hist.c (hist_assign_samples_1): Make sure that inner loop
iterator remains valid.
ktietz [Tue, 25 Oct 2011 08:03:17 +0000 (08:03 +0000)]
2011-10-25 Kai Tietz <ktietz@redhat.com>
* winduni.h (unicode_from_ascii_len): New prototype.
* winduni.c (unicode_from_ascii_len): New function.
* windres.h (define_stringtable): Add additional length argument.
* windres.c (define_stringtable): Add length argument for string.
* rcparse.y (res_unicode_sizedstring): New rule.
(res_unicode_sizedstring_concat): Likewise.
(string_data): Adjust rule.
2011-10-25 Kai Tietz <ktietz@redhat.com>
* binutils-all/windres/strtab4.rc: New test.
* binutils-all/windres/strtab4.rsd: Likewise.
gdbadmin [Tue, 25 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Mon, 24 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update
brobecke [Mon, 24 Oct 2011 16:51:31 +0000 (16:51 +0000)]
[powerpc] crash trying to allocate memory in inferior
Our testsuite noticed a crash when trying to call a function which
requires GDB to allocate memory in the inferior. Typically, this
happens when one of the parameters is a string. For instance, our
testcase tries:
(gdb) call debug.trace (me, "You")
[1] 32737 segmentation fault /path/to/gdb
What happens is that GDB sees the string, and thus tries to allocate
memory for it in the inferior:
> /* Allocate NBYTES of space in the inferior using the inferior's
> malloc and return a value that is a pointer to the allocated
> space. */
>
> struct value *
> value_allocate_space_in_inferior (int len)
> {
> struct objfile *objf;
> struct value *val = find_function_in_inferior ("malloc", &objf);
And find_function_in_inferior first searches the symtab in case
we have debug info. But, in our case (bareboard powerpc), we don't,
so it gets "malloc"'s address from the minimal symbols, and builds
a value whose type is a TYPE_CODE_PTR, not a TYPE_CODE_FUNC.
As a result, when we later try to make the call to malloc, we end up
inside the powerpc tdep code that has:
> do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type,
[...]
> if (func_type
> && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL)
The problem is that func_type is not a TYPE_CODE_FUNC, and thus
the type-specific kind is not TYPE_SPECIFIC_FUNC, and so we do
TYPE_CALLING_CONVENTION is an invalid access.
Interestingly, the other call to TYPE_CALLING_CONVENTION is correctly
preceded by a check of the type's TYPE_CODE (making sure that it is
TYPE_CODE_FUNC).
gdb/ChangeLog:
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
jules [Mon, 24 Oct 2011 16:36:48 +0000 (16:36 +0000)]
opcodes/
* m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml.
gas/testsuite/
* gas/m68k/all.exp (movem-offset): Add test.
* gas/m68k/movem-offset.s: New test.
* gas/m68k/movem-offset.d: New.
jkratoch [Mon, 24 Oct 2011 14:28:01 +0000 (14:28 +0000)]
binutils/
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET
also for DW_FORM_ref_udata.
palves [Mon, 24 Oct 2011 14:25:51 +0000 (14:25 +0000)]
2011-10-24 Pedro Alves <pedro@codesourcery.com>
gdb/
* linux-nat.c (linux_handle_extended_wait): When handling a clone
event, in non-stop, if not stopping, make sure the new lwp has
last_resume_kind set to resume_continue. Assert that when we're
resuming the new lwp, its last_resume_kind is resume_continue.
macro [Mon, 24 Oct 2011 14:25:01 +0000 (14:25 +0000)]
* config/tc-mips.c (move_register): Fix formatting.
macro [Mon, 24 Oct 2011 14:21:40 +0000 (14:21 +0000)]
* mips.h: Fix a typo in description.
macro [Mon, 24 Oct 2011 14:17:09 +0000 (14:17 +0000)]
* config/tc-mips.c (can_swap_branch_p): Remove empty line.
(start_noreorder): Likewise.
palves [Mon, 24 Oct 2011 14:09:20 +0000 (14:09 +0000)]
2011-10-24 Pedro Alves <pedro@codesourcery.com>
gdb/
* infrun.c (handle_inferior_event): Don't assume inferior_ptid is
already set when marking the event thread as not executing in
non-stop mode.
macro [Mon, 24 Oct 2011 14:08:22 +0000 (14:08 +0000)]
* config/tc-mips.c (s_option): Fix formatting.
(mips_elf_final_processing): Likewise.
macro [Mon, 24 Oct 2011 14:04:41 +0000 (14:04 +0000)]
* config/tc-mips.c (validate_micromips_insn): Fix formatting.
corinna [Mon, 24 Oct 2011 14:02:29 +0000 (14:02 +0000)]
* syscalls.cc (unlink_nt): Fix a bug which overwrites the NT status
value in case setting the delete disposition returns with
STATUS_DIRECTORY_NOT_EMPTY.
palves [Mon, 24 Oct 2011 14:01:08 +0000 (14:01 +0000)]
2011-10-24 Pedro Alves <pedro@codesourcery.com>
gdb/
* infrun.c (handle_inferior_event): Add debug output for
TARGET_WAITKIND_NO_HISTORY.
macro [Mon, 24 Oct 2011 13:58:46 +0000 (13:58 +0000)]
* elfxx-mips.c (_bfd_mips_elf_symbol_processing): Remove
assertions.
qiyao [Mon, 24 Oct 2011 13:51:19 +0000 (13:51 +0000)]
gdb/testsuite/
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when
target is tic6x-*-*.
nickc [Mon, 24 Oct 2011 12:52:37 +0000 (12:52 +0000)]
PR ld/13273
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about
identical TAG_PCS_config attributes.
nickc [Mon, 24 Oct 2011 11:51:19 +0000 (11:51 +0000)]
Updated Japanese translation
pmuldoon [Mon, 24 Oct 2011 11:49:26 +0000 (11:49 +0000)]
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
* NEWS: Move set/show extended-prompt to "New Options". Expand
description. Fix typos.
pmuldoon [Mon, 24 Oct 2011 11:39:49 +0000 (11:39 +0000)]
2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
PR python/13310
* python/py-param.c (call_doc_function): Correctly deference on
function exit.
nickc [Mon, 24 Oct 2011 11:23:39 +0000 (11:23 +0000)]
PR binutils/13292
* bfd-in.h: Include <sys/stat.h> rather than forward defining
struct stat.
* bfd-in2.h: Regenerate.
corinna [Mon, 24 Oct 2011 09:19:56 +0000 (09:19 +0000)]
* shared.cc (open_shared): Fix memory reservation of essential shared
memory regions. Drop delta computations since delta is always 0 in
non-relocated case. Add a comment.
amodra [Mon, 24 Oct 2011 02:49:24 +0000 (02:49 +0000)]
* config/tc-mn10200.c (md_convert_frag): Add missing break.
gdbadmin [Mon, 24 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sun, 23 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update
cgf [Sun, 23 Oct 2011 19:01:44 +0000 (19:01 +0000)]
* fhandler_tty.cc (fhandler_pty_slave::read): Use consistent way for testing
ReadFile return.
* pipe.cc (fhandler_pipe::create_selectable): Open the write side of the pipe
in message-mode to force writing as "chunks". Explain why.
cgf [Sun, 23 Oct 2011 17:19:14 +0000 (17:19 +0000)]
* path.cc (path_conv::get_nt_native_path): Avoid dereferencing path when it is
NULL.
gdbadmin [Sun, 23 Oct 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Sat, 22 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update
cgf [Sat, 22 Oct 2011 16:26:24 +0000 (16:26 +0000)]
* dtable.cc (dtable::delete_archetype): Improve debugging output.
(dtable::init_std_file_from_handle): Close console handle early, before
initialization. Build up openflags for passing to open_setup, just to be safe.
(last_tty_dev): New variable.
(fh_last_tty_dev): New macro.
(fh_alloc): Try again to keep track of previously opened tty, this time by just
saving the device and using that to potentially open an archetype. Avoid
setting the "/dev/tty" name if the creation of the fhandler failed.
(build_fh_pc): Remove unused second argument. Reorganize how and where the
name is set. Set last_tty_dev as appropriate. Avoid a NULL dereference in a
debug printf.
* dtable.h (build_fh_pc): Reflect removal of second parameter.
* fhandler.cc (fhandler_base::reset): Use new '<<' operator to copy pc since it
preserves any potentially previously set name.
(fhandler_base::set_name): Ditto.
* fhandler.h (fhandler_*::clone): Throughout use ccalloc to allocate new
fhandler, primarily to make sure that pc field is properly zeroed.
(fhandler_termios::last): Eliminate.
(fhandler_termios): Remove setting of last.
(fhandler_base::~fhandler_termios): Ditto.
* fhandler_console.cc (fhandler_console::open): Don't make decisions about
opening close-on-exec handles here since it makes no sense for archetypes.
(fhandler_console::init): Assume that input handle has already been opened.
* fhandler_termios.cc (fhandler_termios::last): Delete.
* path.h (path_conv::eq_worker): New function. Move bulk of operator = here.
(operator <<): New function.
(operator =): Use eq_worker to perform old functionality.
dj [Sat, 22 Oct 2011 01:35:28 +0000 (01:35 +0000)]
* obstack.h [!GNUC] (obstack_free): Avoid cast to int.
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
gdbadmin [Sat, 22 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Fri, 21 Oct 2011 23:00:06 +0000 (23:00 +0000)]
daily update
hjl [Fri, 21 Oct 2011 19:37:13 +0000 (19:37 +0000)]
Replace IRELATIVE relocations with RELATIVE in .rel.dyn.
bfd/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* elf32-i386.c (elf_i386_relocate_section): Replace
R_386_IRELATIVE with R_386_RELATIVE.
* elf64-x86-64.c (elf_x86_64_relocate_section): Replace
R_X86_64_IRELATIVE with R_X86_64_RELATIVE.
ld/testsuite/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* ld-i386/i386.exp: Run pr13302.
* ld-i386/pr13302.d: New.
* ld-i386/pr13302.s: Likewise.
* ld-x86-64/pr13082-5b.d: Updated.
* ld-x86-64/pr13082-6a.d: Likewise.
* ld-x86-64/pr13082-6b.d: Likewise.
brobecke [Fri, 21 Oct 2011 18:46:02 +0000 (18:46 +0000)]
[Ada] Fix number of lines in -ada-task-info output
When using the new -ada-task-info command with an argument,
the output would say that there are N entries in the returned
table, (where N is the total number of tasks present in the inferior).
But, in fact, the table would only contain at most 1 entry.
This patch fixes this by properly computing the number of
tasks being displayed before giving it to the uiout.
gdb/ChangeLog:
* ada-tasks.c (print_ada_task_info): Fix computation of
number of tasks displayed in command output.
gdb/testsuite/ChangeLog:
* gdb.ada/mi_task_info/task_switch.adb: New file.
* gdb.ada/mi_task_info.exp: New file.
corinna [Fri, 21 Oct 2011 17:42:59 +0000 (17:42 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalid
success only on Samba shares.
* mount.cc (fs_info::update): Drop has_buggy_basic_info flag for
NcFsd.
* syscalls.cc (unlink_nt): Fix typo in comment.
jkratoch [Fri, 21 Oct 2011 16:31:15 +0000 (16:31 +0000)]
gdb/testsuite/
* gdb.cp/expand-psymtabs-cxx.exp: New file.
* gdb.cp/expand-psymtabs-cxx.cc: New file.
hjl [Fri, 21 Oct 2011 16:16:48 +0000 (16:16 +0000)]
Fix a typo in comments.
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>.
* elf32-i386.c (elf_i386_relocate_section): Fix a typo in
comments.
* elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
hjl [Fri, 21 Oct 2011 15:13:35 +0000 (15:13 +0000)]
Put IRELATIVE relocations after JUMP_SLOT.
bfd/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index
and next_irelative_index.
(elf_i386_link_hash_table_create): Initialize next_jump_slot_index
and next_irelative_index.
(elf_i386_allocate_dynrelocs): Increment reloc_count instead of
next_tls_desc_index.
(elf_i386_size_dynamic_sections): Set next_tls_desc_index and
next_irelative_index from reloc_count.
(elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after
R_386_JUMP_SLOT.
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add
next_jump_slot_index and next_irelative_index.
(elf_x86_64_link_hash_table_create): Initialize
next_jump_slot_index and next_irelative_index.
(elf_x86_64_size_dynamic_sections): Set next_irelative_index
from reloc_count.
(elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after
R_X86_64_JUMP_SLOT.
ld/testsuite/
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>
PR ld/13302
* ld-ifunc/ifunc-16-i386.d: New.
* ld-ifunc/ifunc-16-x86-64.d: Likewise.
* ld-ifunc/ifunc-16-x86.s: Likewise.
gingold [Fri, 21 Oct 2011 13:24:25 +0000 (13:24 +0000)]
2011-10-21 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (load_expression): Use symbol_mark_used accessor.
(s_alpha_comm): Use symbol_set_frag accessor.
krebbel [Fri, 21 Oct 2011 12:50:28 +0000 (12:50 +0000)]
2011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>
* s390-opc.txt: Add CPUMF instructions.
2011-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* gas/s390/zarch-z10.d: Add CPUMF instructions.
* gas/s390/zarch-z10.s: Likewise.
cgf [Fri, 21 Oct 2011 12:24:58 +0000 (12:24 +0000)]
Check in missing ChangeLog entry.
corinna [Fri, 21 Oct 2011 08:29:18 +0000 (08:29 +0000)]
* globals.cc (ro_u_ncfsd): New R/O unicode string.
* mount.cc (fs_info::update): Check for "NcFsd" FS. Set flags and
change comments accordingly.
(fs_names): Add entry for NcFsd FS.
* mount.h (enum fs_info_type): Add ncfsd.
(class fs_info): Add ncfsd flag and accessor methods.
* path.h (class path_conv): Add fs_is_ncfsd method.
* syscalls.cc (unlink_nt): Experimentally try delete-on-close on NcFsd
in STATUS_CANNOT_DELETE case.
gdbadmin [Fri, 21 Oct 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***
jkratoch [Thu, 20 Oct 2011 23:57:23 +0000 (23:57 +0000)]
gdb/
* dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
(dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
(dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
gdbarch_pc_regnum and frame_unwind_register_unsigned by
gdbarch_unwind_pc.
ccoutant [Thu, 20 Oct 2011 23:12:59 +0000 (23:12 +0000)]
* dwarf2read.c (dw2_get_file_names): Move adjustment for type
section to...
(partial_read_comp_unit_head): ...here. Add is_debug_type_section
flag. Adjust all callers.
(process_psymtab_comp_unit): Remove adjustment for type section.
amodra [Thu, 20 Oct 2011 23:00:05 +0000 (23:00 +0000)]
daily update
cgf [Thu, 20 Oct 2011 21:35:59 +0000 (21:35 +0000)]
* fhandler.h (fhandler*::copyto): Free path_conv strings first.
* path.h (cfree_and_null): Rename and expand from cfree_maybe.
(path_conv &operator =): Call free_strings rather than freeing strings
directly.
aristovski [Thu, 20 Oct 2011 20:06:11 +0000 (20:06 +0000)]
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE. Instead of getting objfile from
symbol's symtab, use new argument OBJFILE.
* cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE.
* gdb/dwarf2read.c (new_symbol_full): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
* gdb/stabsread.c (define_symbol): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
nickc [Thu, 20 Oct 2011 16:26:57 +0000 (16:26 +0000)]
PR ld/13049
* elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace
symbol names.
* elf64-ppc.c (STUB_SUFFIX): Likewise.
* elf32-hppa.c (STUB_SUFFIX): Likewise.
cgf [Thu, 20 Oct 2011 14:02:53 +0000 (14:02 +0000)]
Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
* devices.cc: Regenerate.
* dtable.cc: (fh_alloc): Preserve /dev/tty name when that's what we opened.
(build_fh_pc): Preserve any existing name.
* fhandler.cc (fhandler_base::open_with_arch): Ditto.
* fhandler_tty.cc (fhandler_pty_master::fhandler_pty_master): Force the name to
/dev/ptmx while preserving other pty master device information.
* path.h (cfree_maybe): New macro.
(path_conv::operator =): Free any allocated strings in target.
(path_conv::free_strings): Delete unused function.
* sigproc.cc (proc_terminate): Remove previous accommodation for execed
processes since it didn't have the desired effect. Change comment to a FIXME.
* spawn.cc (chExeced): Mark NO_COPY.
(exe_suffixes): Ditto.
pmuldoon [Thu, 20 Oct 2011 13:34:13 +0000 (13:34 +0000)]
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/13308
PR python/13309
* python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
leak.
* python/py-inferior.c (gdbpy_inferiors): Fix List reference
leak. Delete unused variables.
amodra [Thu, 20 Oct 2011 12:34:19 +0000 (12:34 +0000)]
* ld-selective/selective.exp: Use check_gc_sections_available.
Remove redundant xfails.
* ld-selective/sel-dump.exp: Likewise.
pmuldoon [Thu, 20 Oct 2011 12:31:22 +0000 (12:31 +0000)]
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/12656
* python/py-frame.c (frapy_read_var): Use const struct *block.
* python/py-type.c (typy_lookup_typename): Likewise.
(typy_lookup_type): Likewise.
(typy_legacy_template_argument): Likewise.
(typy_template_argument): Likewise.
(gdbpy_lookup_type): Likewise.
* python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
* python/py-block.c (blpy_block_object): Likewise.
(blpy_iter): Likewise.
(blpy_get_start): Likewise.
(blpy_get_end): Likewise.
(blpy_get_function): Likewise.
(blpy_get_superblock): Likewise.
(set_block): Likewise.
(block_to_block_object): Likewise.
(block_object_to_block): Likewise.
(blpy_is_valid): Likewise.
(blpy_get_global_block): New function.
(blpy_get_static_block): New function.
(blpy_is_global): New function.
(blpy_is_static): New function.
* blockframe.c (block_innermost_frame): Likewise.
* valops.c (value_of_variable): Likewise.
* frame.h: Update prototypes.
* python/python-internal.h: Likewise.
* value.h: Likewise.
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/12656
* gdb.texinfo (Blocks In Python): Document is_static, is_global,
global_block, static_block function.
2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
PR python/12656
* gdb.python/py-block.exp: Add is_global, is_static, static_block,
global_block tests.
corinna [Thu, 20 Oct 2011 10:59:00 +0000 (10:59 +0000)]
* syscalls.cc (try_to_bin): Improve debug output.
(check_dir_not_empty): Take additional path_conv argument. Improve
debug output. Change syscall_printf to debug_printf.
(unlink_nt): Improve debug output. Change syscall_printf to
debug_printf.
(unlink): Change syscall_printf to debug_printf.
* cygthread.h: Fix copyright dates.
amodra [Thu, 20 Oct 2011 09:50:58 +0000 (09:50 +0000)]
PR ld/13287
* plugin.c (plugin_should_reload): New function.
* plugin.h (plugin_should_reload): Declare.
* ldlang.c (open_input_bfds): Use above function.
ccoutant [Thu, 20 Oct 2011 01:11:32 +0000 (01:11 +0000)]
* dwarf2read.c (create_debug_types_hash_table): Fix size of
type_offset field.
gdbadmin [Thu, 20 Oct 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***
amodra [Wed, 19 Oct 2011 23:09:10 +0000 (23:09 +0000)]
* config/tc-mips.c (micromips_add_label): Avoid gcc warning.
(md_convert_frag): Likewise.
amodra [Wed, 19 Oct 2011 23:02:47 +0000 (23:02 +0000)]
* elf32-i386.c (i386_opcode16): Delete.
(elf_i386_check_tls_transition): Use memcmp to compare contents.
* elf64-x86-64.c (x86_64_opcode16, x86_64_opcode32): Delete.
(elf_x86_64_check_tls_transition): Use memcmp to compare contents.
amodra [Wed, 19 Oct 2011 23:00:04 +0000 (23:00 +0000)]
daily update
vapier [Wed, 19 Oct 2011 21:28:25 +0000 (21:28 +0000)]
sim: dv-cfi: check for log2 support in libm when enabled
The dv-cfi model uses log2() internally, so make sure we automatically
link in libm when required.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tromey [Wed, 19 Oct 2011 17:51:00 +0000 (17:51 +0000)]
* gdb.texinfo (Commands In Python): Add missing "@"s.