OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years ago2011-11-10 Doug Kwan <dougkwan@google.com>
dougkwan [Thu, 10 Nov 2011 20:53:35 +0000 (20:53 +0000)]
2011-11-10  Doug Kwan  <dougkwan@google.com>

PR gold/13362
* arm.cc (Target_arm::Relocate::relocate_tls): Do unaligned accesses
when processing data relocs.
* reloc.h (Relocate_functions::rel_unaligned): New method.
(Relocate_functions::pcrel_unaligned): Ditto.
(Relocate_functions::rel32_unaligned): Ditto.
(Relocate_functions::pcrel32_unaligned): Ditto.

13 years ago * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
devans [Thu, 10 Nov 2011 20:21:26 +0000 (20:21 +0000)]
* defs.h (is_cplus_marker, set_demangling_style): Moved to ...
* gdb-demangle.h: ... here.  New file.
* demangle.c: #include "gdb-demangle.h".
(_initialize_demangler): Use initialize_file_ftype for prototype.
Move "set demangle" and "set asm-demangle" parameters here from utils.c
(demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
from utils.c
* utils.c: Update. #include "gdb-demangle.h".
* symtab.h (asm_demangle): Delete.
(demangle): Move declaration next to use.
* breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
* dwarf2read.c: #include "gdb-demangle.h".
* gnu-v2-abi.c: Ditto.
* jv-typeprint.c: Ditto.
* mdebugread.c: Ditto.
* p-typeprint.c: Ditto.
* stabsread.c: Ditto.
* printcmd.c: Ditto.
(asm_demangle): Delete declaration.
* tui/tui-stack.c: #include "gdb-demangle.h".

13 years ago2011-11-10 Pedro Alves <pedro@codesourcery.com>
palves [Thu, 10 Nov 2011 20:17:52 +0000 (20:17 +0000)]
2011-11-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* linux-nat.c (linux_nat_wait): Don't force waking up the event
loop when returning a TARGET_WAITKIND_NO_RESUMED.

13 years ago2011-11-10 Pedro Alves <pedro@codesourcery.com>
palves [Thu, 10 Nov 2011 20:07:47 +0000 (20:07 +0000)]
2011-11-10  Pedro Alves  <pedro@codesourcery.com>

gdb/
* target.c (target_waitstatus_to_string): Handle
TARGET_WAITKIND_NO_RESUMED.

13 years ago * gdb.reverse/i387-env-reverse.exp: Extend timeout of
devans [Thu, 10 Nov 2011 19:22:07 +0000 (19:22 +0000)]
* gdb.reverse/i387-env-reverse.exp: Extend timeout of
"record to end of main" test.

13 years ago * python/py-type.c (typy_fields_items): Call check_typedef.
devans [Thu, 10 Nov 2011 19:15:05 +0000 (19:15 +0000)]
* python/py-type.c (typy_fields_items): Call check_typedef.

testsuite/
* gdb.python/py-type.c (TS): New typedef.
(ts): New global.
* gdb.python/py-type.exp: Test field list of typedef.

13 years agoFix wrong changelog entry date.
brobecke [Thu, 10 Nov 2011 17:14:51 +0000 (17:14 +0000)]
Fix wrong changelog entry date.

13 years agoread_frame_register_value and big endian arches
brobecke [Thu, 10 Nov 2011 17:14:39 +0000 (17:14 +0000)]
read_frame_register_value and big endian arches

The read_frame_register_value function as it was implemented introduced
a regression on big-endian targets. The problem appears when trying to
get the value of an entity stored inside a register, and when the size
of the entity is smaller than the size of the register. In that case,
we were always reading the first N bytes of the register, which is wrong
for big-endian architectures, where we need to read the last N bytes of
the register.

gdb/ChangeLog:

        * findvar.c (read_frame_register_value): Read correct bytes from
        register on big-endian architectures.

gdb/testsuite/ChangeLog:

        * gdb.ada/small_reg_param: New testcase.

13 years agoprocfs file descriptor leaks
brobecke [Thu, 10 Nov 2011 16:36:28 +0000 (16:36 +0000)]
procfs file descriptor leaks

gdb/ChangeLog (from Tom Tromey):

* procfs.c (load_syscalls): Make a cleanup.
(open_procinfo_files): fd==0 is ok.

13 years ago[procfs] /proc/.../map file descriptor leak
brobecke [Thu, 10 Nov 2011 16:36:17 +0000 (16:36 +0000)]
[procfs] /proc/.../map file descriptor leak

When opening the procfs map file, we create a cleanup routine to make
sure that the associated file descriptor gets closed, but we never
call the cleanup. So the FD gets leaked.

gdb/ChangeLog:

        * procfs.c (iterate_over_mappings): Call do_cleanups before
        returning.

13 years ago * gdbtypes.c (check_typedef): Document that this function can
devans [Thu, 10 Nov 2011 06:53:55 +0000 (06:53 +0000)]
* gdbtypes.c (check_typedef): Document that this function can
throw an exception.

13 years ago2011-11-09 Doug Kwan <dougkwan@google.com>
dougkwan [Thu, 10 Nov 2011 00:41:52 +0000 (00:41 +0000)]
2011-11-09  Doug Kwan  <dougkwan@google.com>

PR gold/13362
* arm.cc (Arm_scan_relocatable_relocs::Default_scan_relocatable_relocs):
Use unaligned 4-byte relocs for static 32-bit data as required by EABI.
* reloc.h (Relocatable_relocs::Reloc_strategy): New enum
RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
(Relocate_functions::rel_unaligned): New.
(Relocate_functions::rel32_unaligned): New.
* target-reloc.h (relocate_for_relocatable): Add code to handle
RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
* testsuite/Makefile.am (arm_unaligned_reloc_r.stdout,
arm_unaligned_reloc_r): New targets.
* testsuite/Makefile.in: Regenerate.
* arm_unaligned_reloc.sh: Check unaligned relocs in relocatable
linking.

13 years ago*** empty log message ***
gdbadmin [Thu, 10 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 9 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogdb
tromey [Wed, 9 Nov 2011 19:50:12 +0000 (19:50 +0000)]
gdb
PR c++/13342:
* valops.c (value_full_object): Return early if real type is
smaller than the enclosing type.
gdb/testsuite
* gdb.cp/destrprint.exp: New file.
* gdb.cp/destrprint.cc: New file.

13 years ago2011-11-09 Roland McGrath <mcgrathr@google.com>
dj [Wed, 9 Nov 2011 18:57:28 +0000 (18:57 +0000)]
2011-11-09  Roland McGrath  <mcgrathr@google.com>
* configure.ac: Add tool checks for READELF and READELF_FOR_TARGET.
* configure: Rebuild.
* Makefile.def (flags_to_pass): Add READELF_FOR_TARGET.
* Makefile.tpl (READELF, READELF_FOR_TARGET): New variables.
(HOST_EXPORTS): Add READELF, READELF_FOR_TARGET.
(BASE_FLAGS_TO_PASS): Add READELF_FOR_TARGET.
(BASE_TARGET_EXPORTS, EXTRA_HOST_FLAGS, EXTRA_TARGET_FLAGS):
Add READELF.
* Makefile.in: Rebuild.

13 years ago * ld/testsuite/ld-arm/jump-reloc-veneers.s: Update for changes to assembler output.
mgretton [Wed, 9 Nov 2011 17:01:37 +0000 (17:01 +0000)]
* ld/testsuite/ld-arm/jump-reloc-veneers.s: Update for changes to assembler output.

13 years agogdb/gdbserver
qiyao [Wed, 9 Nov 2011 02:32:42 +0000 (02:32 +0000)]
gdb/gdbserver

* remote-utils.c (relocate_instruction): A comment fix.

13 years agogdb/
qiyao [Wed, 9 Nov 2011 02:21:52 +0000 (02:21 +0000)]
gdb/

* amd64-tdep.c (amd64_relocate_instruction): Make it static.

13 years agogdb/
meadori [Wed, 9 Nov 2011 00:53:38 +0000 (00:53 +0000)]
gdb/
* arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
register when the frame can't be determined.
* arm-tdep.c (arm_analyze_prologue): Ditto.

gdb/testsuite/
* gdb.arch/thumb-prologue.c (switch_stack_to_same): New test function.
(switch_stack_to_other): New test function.
* gdb.arch/thumb-prologue.exp: New test cases.

13 years ago*** empty log message ***
gdbadmin [Wed, 9 Nov 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 8 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * gdb.texinfo (MIPS): Remove duplicate "auto" reference from
macro [Tue, 8 Nov 2011 21:34:18 +0000 (21:34 +0000)]
* gdb.texinfo (MIPS): Remove duplicate "auto" reference from
"set mips abi" documentation.

13 years ago * lib/mi-support.exp (mi_send_resuming_command_raw): Fix a typo.
macro [Tue, 8 Nov 2011 19:51:16 +0000 (19:51 +0000)]
* lib/mi-support.exp (mi_send_resuming_command_raw): Fix a typo.

13 years agoMerge libitm changes to configure.ac from gcc master.
rth [Tue, 8 Nov 2011 18:23:33 +0000 (18:23 +0000)]
Merge libitm changes to configure.ac from gcc 

13 years agomerge from gcc
dj [Tue, 8 Nov 2011 16:01:51 +0000 (16:01 +0000)]
merge from gcc

13 years ago * libnosys/Makefile.in (install): Use INSTALL_DATA.
corinna [Tue, 8 Nov 2011 15:56:49 +0000 (15:56 +0000)]
* libnosys/Makefile.in (install): Use INSTALL_DATA.

13 years ago * libc/iconv/ccs/Makefile.am: Add missing backslash.
corinna [Tue, 8 Nov 2011 15:46:41 +0000 (15:46 +0000)]
* libc/iconv/ccs/Makefile.am: Add missing backslash.
* libc/iconv/ccs/Makefile.in: Regenerate.

13 years ago * elf-m10300.c (mn10300_elf_relax_section): Fix check for an
nickc [Tue, 8 Nov 2011 15:07:17 +0000 (15:07 +0000)]
* elf-m10300.c (mn10300_elf_relax_section): Fix check for an
immediate move into an address register.

13 years ago * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
amodra [Tue, 8 Nov 2011 13:49:11 +0000 (13:49 +0000)]
* elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark syms in
executables when export_dynamic.

13 years agobfd/
amodra [Tue, 8 Nov 2011 13:06:00 +0000 (13:06 +0000)]
bfd/
* elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename
ha_relocs_not_using_r2 to unexpected_toc_insn.
(ok_lo_toc_insn): New function.
(ppc64_elf_edit_toc): Check insn on lo toc reloc.  Emit warning.
(ppc64_elf_relocate_section): Don't check insn on lo toc reloc here.
Handle addic on lo toc reloc.
ld/testsuite/
* ld-powerpc/powerpc.exp: Expect ld warnings for tocopt test.
* ld-powerpc/tocopt.out: New file.

13 years ago * new-features.sgml (ov-new1.7.10): Document ptsname_r.
corinna [Tue, 8 Nov 2011 09:25:25 +0000 (09:25 +0000)]
* new-features.sgml (ov-new1.7.10): Document ptsname_r.

13 years ago * posix.sgml (std-gnu): Add ptsname_r.
corinna [Tue, 8 Nov 2011 09:24:57 +0000 (09:24 +0000)]
* posix.sgml (std-gnu): Add ptsname_r.

13 years agogdb/testsuite/
qiyao [Tue, 8 Nov 2011 08:23:48 +0000 (08:23 +0000)]
gdb/testsuite/

* gdb.exp (supports_process_record): New.
(supports_reverse): New.
* gdb.reverse/break-precsave.exp: Call support_process_record
to run test conditionally.
* gdb.reverse/consecutive-precsave.exp: Likewise.
* gdb.reverse/i386-precsave.exp: Likewise.
* gdb.reverse/machinestate-precsave.exp: Likewise.
* gdb.reverse/solib-precsave.exp: Likewise.
* gdb.reverse/step-precsave.exp: Likewise.
* gdb.reverse/until-precsave.exp: Likewise.
* gdb.reverse/watch-precsave.exp: Likewise.
* gdb.reverse/break-reverse.exp: Call support_reverse  to run
test conditionally.
* gdb.reverse/consecutive-reverse.exp: Likewise.
* gdb.reverse/finish-precsave.exp: Likewise.
* gdb.reverse/finish-reverse-bkpt.exp: Likewise.
* gdb.reverse/finish-reverse.exp: Likewise.
* gdb.reverse/i386-reverse.exp: Likewise.
* gdb.reverse/i386-sse-reverse.exp: Likewise.
* gdb.reverse/machinestate.exp: Likewise.
* gdb.reverse/next-reverse-bkpt-over-sr.exp: Likewise.
* gdb.reverse/sigall-precsave.exp: Likewise.
* gdb.reverse/sigall-reverse.exp: Likewise.
* gdb.reverse/solib-reverse.exp: Likewise.
* gdb.reverse/step-reverse.exp: Likewise.
* gdb.reverse/until-reverse.exp: Likewise.
* gdb.reverse/watch-reverse.exp: Likewise.

13 years ago* fhandler.h (__ptsname): New macro.
cgf [Tue, 8 Nov 2011 06:26:14 +0000 (06:26 +0000)]
* fhandler.h (__ptsname): New macro.
* dtable.cc (decode_tty): Use __ptsname to generate the slave pty name.
* fhandler_tty.cc (fhandler_pty_master::ptsname_r): Ditto.
* bsdlib.cc: Add needed includes for openpty() changes.
(openpty): Use __ptsname to generate the slave pty name.  Close slave fd when
aslave == NULL.

13 years ago* include/cygwin/stdlib.h: Update copyright.
cgf [Tue, 8 Nov 2011 05:50:16 +0000 (05:50 +0000)]
* include/cygwin/stdlib.h: Update copyright.

13 years ago * MAINTAINERS: Move Michael Snyder to Past Maintainers.
shebs [Tue, 8 Nov 2011 00:07:50 +0000 (00:07 +0000)]
* MAINTAINERS: Move Michael Snyder to Past Maintainers.

13 years ago*** empty log message ***
gdbadmin [Tue, 8 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 7 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago* cygwin.din (ptsname_r): Export.
cgf [Mon, 7 Nov 2011 20:05:45 +0000 (20:05 +0000)]
* cygwin.din (ptsname_r): Export.
* fhandler.cc (fhandler_base::ptsname_r): Define.
* fhandler.h (fhandler_base::ptsname): Delete.
(fhandler_base::ptsname_r): Declare.
(fhandler_pty_master::ptsname_r): Declare.
* fhandler_tty.cc (fhandler_pty_master::ptsname): Delete.
(fhandler_pty_master::ptsname_r): New reentrant function derived from previous
ptsname.
* syscalls.cc (ptsname_r): Implement new function with functionality similar to
Linux.
(ptsname): Use ptsname_r () to fill out buf.
* include/cygwin/stdlib.h (ptsname_r): Declare.
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 255 to reflect
export of ptsname_r.
* pinfo.cc (pinfo::wait): Return bool rather than int.
* pinfo.h (info::wait): Ditto.
(pinfo::reattach): Define !defined(_SIGPROC_H) case for consistency.
* sigproc.cc (child_info_spawn::reattach_children): Use correct dwProcessId
rather than pid when duplicating handle.

13 years agoMinor reformatting in infrun.c:handle_inferior_event
brobecke [Mon, 7 Nov 2011 16:30:17 +0000 (16:30 +0000)]
Minor reformatting in infrun.c:handle_inferior_event

gdb/ChangeLog:

        * infrun.c (handle_inferior_event): Minor reformatting.

13 years agosim: dv-cfi: check for posix_fallocate
vapier [Mon, 7 Nov 2011 16:28:52 +0000 (16:28 +0000)]
sim: dv-cfi: check for posix_fallocate

Some systems (like OS X) do not have posix_fallocate.  Add a configure
check for it before we try to use it.  This is less work than trying
to support old systems.

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=13161
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: mn10300: fix typo in if check
vapier [Mon, 7 Nov 2011 16:26:05 +0000 (16:26 +0000)]
sim: mn10300: fix typo in if check

The code looks like it should be doing a bit check, not logical.

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=9302
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: mn10300: fix typo in if check
vapier [Mon, 7 Nov 2011 16:25:56 +0000 (16:25 +0000)]
sim: mn10300: fix typo in if check

The code looks like it should be doing a bit check, not logical.

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=9302
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * gas/config/tc-arm.c (arm_cpus): Add cortex-a7 entry.
mgretton [Mon, 7 Nov 2011 16:20:47 +0000 (16:20 +0000)]
* gas/config/tc-arm.c (arm_cpus): Add cortex-a7 entry.
* gas/doc/c-arm.texi (ARM Options): Add cortex-a7 to list of accepted
CPUs.

13 years ago[gdbserver] Fix watchpoint support on Windows
brobecke [Mon, 7 Nov 2011 14:45:09 +0000 (14:45 +0000)]
[gdbserver] Fix watchpoint support on Windows

Watchpoint support doesn't work anymore when using gdbserver on Windows.
They just never trigger.

The problem comes from the fact that we always set the debug registers
to zero, no matter what.  This in turn comes from the fact that we
use i386_low_insert_watchpoint to compute the DR values:

      return i386_low_insert_watchpoint (&debug_reg_state,
                                         type, addr, len);

This function saves the new values in debug_reg_state.  However,
the values we actually use when setting the DR registers are
taken from two different globals:

        static unsigned dr_status_mirror;
        static unsigned dr_control_mirror;

These are really never actually changed (their value is set from
the DR values read from the inferior, but since we never change
them, in practice, they never change).

The fix is to use the values provided by debug_reg_state, and
to eliminate the two dr_[...] globals.

gdb/gdbserver/ChangeLog:

        * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
        (i386_dr_low_get_control, i386_dr_low_get_status): Use
        dr_status_mirror and dr_control_mirror from debug_reg_state.
        (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
        (i386_initial_stuff): Remove use of deleted globals.
        (i386_get_thread_context, i386_set_thread_context,
        i386_thread_added): Use dr_status_mirror and dr_control_mirror
        from debug_reg_state.

13 years ago * fhandler.cc (CHUNK_SIZE): Drop NO_COPY.
corinna [Mon, 7 Nov 2011 10:06:44 +0000 (10:06 +0000)]
* fhandler.cc (CHUNK_SIZE): Drop NO_COPY.

13 years ago * syscalls.cc (check_dir_not_empty): Check surplus directory entries
corinna [Mon, 7 Nov 2011 10:03:30 +0000 (10:03 +0000)]
* syscalls.cc (check_dir_not_empty): Check surplus directory entries
by calling NtQueryAttributesFile.  Make STATUS_DIRECTORY_NOT_EMPTY
return value dependent on its status code.  Add long comment to explain.
(unlink_nt): Add comment to explain flaw in checking the sharing mode.
Set status to STATUS_SUCCESS instead of 0.  Add a retry loop to setting
the delete disposition and trying to move a directory to bin to
workaround rare cases of lingering, already deleted subdirectory
entries.  Add long comment to explain.
(rename): Set status to STATUS_SUCCESS instead of 0.

13 years ago*** empty log message ***
gdbadmin [Mon, 7 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sun, 6 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago PR ld/13387
danglin [Sun, 6 Nov 2011 20:25:16 +0000 (20:25 +0000)]
PR ld/13387
* elf32-hppa.c (elf32_hppa_hide_symbol): Make STT_GNU_IFUNC symbol
go through PLT.  Reset plt field with init_plt_offset.
(elf32_hppa_adjust_dynamic_symbol): Ensure that a PLT slot is
allocated for symbols referenced by a plabel.

13 years ago * source.c (forget_cached_source_info_for_objfile): Move call to
devans [Sun, 6 Nov 2011 04:24:54 +0000 (04:24 +0000)]
* source.c (forget_cached_source_info_for_objfile): Move call to
objfile->sf->qf->forget_cached_source_info outside of
ALL_OBJFILE_SYMTABS loop.
(forget_cached_source_info): Delete unused variable `s'.

13 years ago*** empty log message ***
gdbadmin [Sun, 6 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 5 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogdb/
jkratoch [Sat, 5 Nov 2011 20:25:18 +0000 (20:25 +0000)]
gdb/
* i386-nat.c (dr_ref_count): Remove unused variable.

13 years ago* pinfo.cc (status_exit): Recognize STATUS_ILLEGAL_INSTRUCTION.
cgf [Sat, 5 Nov 2011 18:47:38 +0000 (18:47 +0000)]
* pinfo.cc (status_exit): Recognize STATUS_ILLEGAL_INSTRUCTION.
(child_info::proc_retry): Ditto.

13 years ago * faq-using.xml (faq.using.fixing-fork-failures): Add new FAQ.
jturney [Sat, 5 Nov 2011 18:42:55 +0000 (18:42 +0000)]
* faq-using.xml (faq.using.fixing-fork-failures): Add new FAQ.
* overview2.sgml (ov-hi-process-problems): Describe some difficulties
in implementing fork()

13 years ago* pinfo.cc (status_exit): Return complete error code. Handle
cgf [Sat, 5 Nov 2011 18:29:50 +0000 (18:29 +0000)]
* pinfo.cc (status_exit): Return complete error code.  Handle
STATUS_ACCESS_VIOLATION correctly.
(pinfo::set_exit_code): Set self->exitcode directly from status_exit.

13 years ago * main.c (captured_main): Set lim_at_start before calling
devans [Sat, 5 Nov 2011 17:08:29 +0000 (17:08 +0000)]
* main.c (captured_main): Set lim_at_start before calling
make_command_stats_cleanup.

13 years agogdb/gdbserver:
qiyao [Sat, 5 Nov 2011 13:16:22 +0000 (13:16 +0000)]
gdb/gdbserver:

2011-11-05  Yao Qi  <yao@codesourcery.com>

* tracepoint.c (gdb_collect): Loop over tracepoints of same
address as TPOINT's.

gdb/testsuite:

2011-11-05  Yao Qi  <yao@codesourcery.com>

* gdb.trace/trace-break.exp: Add test on setting two
fast tracepoints at the same address.

13 years ago*** empty log message ***
gdbadmin [Sat, 5 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 4 Nov 2011 23:00:07 +0000 (23:00 +0000)]
daily update

13 years ago* pinfo.h (pinfo::reattach): Only set destroy to false when proc_subproc
cgf [Fri, 4 Nov 2011 17:07:20 +0000 (17:07 +0000)]
* pinfo.h (pinfo::reattach): Only set destroy to false when proc_subproc
succeeds.  Return true for success.
* sigproc.cc (child_info_spawn::reattach_children): Try harder to clean up on
error by detecting reattach failures too.

13 years ago* sigproc.cc (child_info_spawn::reattach_children): Clean up handle when can't
cgf [Fri, 4 Nov 2011 16:52:42 +0000 (16:52 +0000)]
* sigproc.cc (child_info_spawn::reattach_children): Clean up handle when can't
open parent process or suffer handle leak.

13 years ago * utils.c: #include "timeval-utils.h".
devans [Fri, 4 Nov 2011 16:45:12 +0000 (16:45 +0000)]
* utils.c: #include "timeval-utils.h".
(cmd_stats): Rename start_time to start_cpu_time.
New member start_wall_time.
(report_command_stats): Report wall time.
(make_command_stats_cleanup): Record start wall time.

doc/
* gdb.texinfo (Maintenance Commands): Update docs of "maint time".

13 years ago * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
tromey [Fri, 4 Nov 2011 16:37:13 +0000 (16:37 +0000)]
* cp-namespace.c (cp_lookup_symbol_imports): Reindent.

13 years ago* doc/c-rl78.texi (RL78-Float): Remove unused menu entry.
dj [Fri, 4 Nov 2011 16:04:12 +0000 (16:04 +0000)]
* doc/c-rl78.texi (RL78-Float): Remove unused menu entry.

13 years agomerge from gcc
dj [Fri, 4 Nov 2011 14:32:13 +0000 (14:32 +0000)]
merge from gcc

13 years ago * coff-pe-read.c: Include defs.h before bfd.h.
ro [Fri, 4 Nov 2011 14:04:03 +0000 (14:04 +0000)]
* coff-pe-read.c: Include defs.h before bfd.h.

13 years ago2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 4 Nov 2011 12:07:53 +0000 (12:07 +0000)]
2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>

PR Python/13345

* python/python.c (python_run_simple_file): Expand tilde in path.

13 years ago2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Fri, 4 Nov 2011 11:57:02 +0000 (11:57 +0000)]
2011-11-04  Phil Muldoon  <pmuldoon@redhat.com>

PR Python/13363

* python/py-type.c (typy_lookup_type): Do not return a type in
          an exception handler.

13 years ago*** empty log message ***
gdbadmin [Fri, 4 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Thu, 3 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago* sigproc.cc (child_info::sync): Report on exit code in strace output.
cgf [Thu, 3 Nov 2011 21:44:04 +0000 (21:44 +0000)]
* sigproc.cc (child_info::sync): Report on exit code in strace output.
(child_info::proc_retry): Don't consider STATUS_ACCESS_VIOLATION as a
restartable event.

13 years ago* sigproc.cc (child_info_spawn::reattach_children): Avoid issuing an error when
cgf [Thu, 3 Nov 2011 18:48:25 +0000 (18:48 +0000)]
* sigproc.cc (child_info_spawn::reattach_children): Avoid issuing an error when
we can't duplicate from "parent" since it is probably ok if children of the
previous owner of the pid disappear.

13 years agogdb/
jkratoch [Thu, 3 Nov 2011 18:24:44 +0000 (18:24 +0000)]
gdb/
* linux-nat.c (_initialize_linux_nat): Improve help
for `info proc stat', `info proc status', `info proc cwd',
`info proc cmdline' and `info proc exe'.

13 years ago * fhandler.cc (off_current): Define local in fhandler_base::raw_write.
corinna [Thu, 3 Nov 2011 17:47:33 +0000 (17:47 +0000)]
* fhandler.cc (off_current): Define local in fhandler_base::raw_write.
Drop erroneous NO_COPY, add _RDATA to make R/O.
(off_append): Ditto.
* globals.cc (_RDATA): Move definition from here...
* winsup.h: ...to here.

13 years agogdb/testsuite/
jkratoch [Thu, 3 Nov 2011 17:43:51 +0000 (17:43 +0000)]
gdb/testsuite/
* gdb.base/commands.exp (cmd1 error): Fix false ERROR with gdbserver.

13 years ago2011-02-11 Ben Golding <ben_golding@yahoo.co.uk>
tromey [Thu, 3 Nov 2011 15:48:17 +0000 (15:48 +0000)]
2011-02-11  Ben Golding  <ben_golding@yahoo.co.uk>

* events.c: add #include <stdlib.h> for free(). Fix PR build/13372.

13 years ago * gdb.texinfo (Stopping): Add menu entry.
tromey [Thu, 3 Nov 2011 14:32:49 +0000 (14:32 +0000)]
* gdb.texinfo (Stopping): Add menu entry.
(Continuing and Stepping): Restore @node.  Use @section, not
@subsection.

13 years ago2011-11-03 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 3 Nov 2011 11:53:39 +0000 (11:53 +0000)]
2011-11-03  Tristan Gingold  <gingold@adacore.com>

* scripttempl/aix.sc: Consider header size for .text and .data
alignment.

13 years ago * configure.ac: Add --with-lib-path option. Define LIB_PATH and
ian [Thu, 3 Nov 2011 04:32:00 +0000 (04:32 +0000)]
* configure.ac: Add --with-lib-path option.  Define LIB_PATH and
NATIVE_LINKER.
* Makefile.am (AM_CPPFLAGS): Define TOOLLIBDIR.
* options.cc (General_options::finalize): Use library search path
from configure script if specified.  If not native and no sysroot,
only search TOOLLIBDIR.
* options.h (Search_directory::Search_directory): Change name to
const std::string&.
(General_options::add_to_library_path_with_sysroot): Change arg to
const std::string&.
* configure, Makefile.in, config.in: Rebuild.

13 years ago * arm.cc (Target_arm::may_use_v5t_interworking): Check whether
ian [Thu, 3 Nov 2011 03:38:34 +0000 (03:38 +0000)]
* arm.cc (Target_arm::may_use_v5t_interworking): Check whether
we are working around the ARM1176 Erratum.
* options.h (General_options::fix_arm1176): Add option.
* testsuite/Makefile.am: Add testcases, and keep current ones
working.
* testsuite/Makefile.in: Regenerate.
* testsuite/arm_fix_1176.s: New file.
* testsuite/arm_fix_1176.sh: Likewise.

13 years ago * gdb.texinfo (Skipping Over Functions and Files): Remove node
macro [Thu, 3 Nov 2011 00:16:45 +0000 (00:16 +0000)]
* gdb.texinfo (Skipping Over Functions and Files): Remove node
designation.  Fix "Specify Location" cross-reference.

13 years ago*** empty log message ***
gdbadmin [Thu, 3 Nov 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago2011-11-02 Stan Shebs <stan@codesourcery.com>
shebs [Wed, 2 Nov 2011 23:44:18 +0000 (23:44 +0000)]
2011-11-02  Stan Shebs  <stan@codesourcery.com>

String collection for tracepoints.
* NEWS: Mention string collection.
* common/ax.def (tracenz): New bytecode.
* ax-gdb.h (trace_string_kludge): Declare.
* ax-gdb.c: Include valprint.h and c-lang.h.
(trace_string_kludge): New global.
(gen_traced_pop): Add string case.
(agent_command): Add string case.
* tracepoint.h (decode_agent_options): Declare.
* tracepoint.c: Include cli-utils.h.
(decode_agent_options): New function.
(validate_actionline): Call it.
(encode_actions_1): Ditto.
* target.h (struct target_ops): New method to_supports_string_tracing.
(target_supports_string_tracing): New macro.
* target.c (update_current_target): Add to_supports_string_tracing.
* remote.c (struct remote_state): New field string_tracing.
(remote_string_tracing_feature): New function.
(remote_protocol_features): New feature tracenz.
(remote_supports_string_tracing): New function.
(init_remote_ops): Set to_supports_string_tracing.

* tracepoint.c (agent_mem_read_string): New function.
(eval_agent_expr): Call it for tracenz.
* server.c (handle_query): Report support for tracenz.

* gdb.texinfo (Tracepoint Action Lists): Document collect/s.
(General Query Packets): Describe tracenz feature.
* agentexpr.texi (Bytecode Descriptions): Describe tracenz.

* gdb.trace/collection.c: Add code using strings.
* gdb.trace/collection.exp: Add tests of string collection.

13 years agodaily update
amodra [Wed, 2 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agomerge from gcc
dj [Wed, 2 Nov 2011 22:02:55 +0000 (22:02 +0000)]
merge from gcc

13 years ago[bfd]
dj [Wed, 2 Nov 2011 20:40:19 +0000 (20:40 +0000)]
[bfd]
* elf32-rl78.c (rl78_elf_merge_private_bfd_data): Delete unused
variable.

[gas]
* config/tc-rl78.c (tc_gen_reloc): Remove unused variable.

13 years ago * generic/gdbtk-interp.c (struct gdbtk_interp_data)
kseitz [Wed, 2 Nov 2011 19:44:37 +0000 (19:44 +0000)]
* generic/gdbtk-interp.c (struct gdbtk_interp_data)
<uiout>: New member.
(gdbtk_data): Remove global.
(gdbtk_interpreter_init): Update with GDB API changes.
Allocate private intepreter data.
(gdbtk_interpreter_ui_out): New function.
(_initialize_gdbtk_interp): Add gdbtk_interpreter_ui_out to
PROCS.
Remove gdbtk_data and related allocation/initialization.

13 years ago * arm.cc (Target_arm::Target_arm): Remove initialisation of
ian [Wed, 2 Nov 2011 19:11:47 +0000 (19:11 +0000)]
* arm.cc (Target_arm::Target_arm): Remove initialisation of
may_use_blx_.
(Target_arm::may_use_blx): Remove method.
(Target_arm::set_may_use_blx): Likewise.
(Target_arm::may_use_v4t_interworking): New method.
(Target_arm::may_use_v5t_interworking): Likewise.
(Target_arm::may_use_blx_): Remove member variable.
(Arm_relocate_functions::arm_branch_common): Check for v5T
interworking.
(Arm_relocate_functions::thumb_branch_common): Likewise.
(Reloc_stub::stub_type_for_reloc): Likewise.
(Target_arm::do_finalize_sections): Correct interworking checks.
* testsuite/Makefile.am: Add new tests.
* testsuite/Makefile.in: Regenerate.
* testsuite/arm_farcall_arm_arm.s: New test.
* testsuite/arm_farcall_arm_arm.sh: Likewise.
* testsuite/arm_farcall_arm_thumb.s: Likewise.
* testsuite/arm_farcall_arm_thumb.sh: Likewise.
* testsuite/arm_farcall_thumb_arm.s: Likewise.
* testsuite/arm_farcall_thumb_arm.sh: Likewise.
* testsuite/arm_farcall_thumb_thumb.s: Likewise.
* testsuite/arm_farcall_thumb_thumb.sh: Likewise.

13 years agogdb/
jkratoch [Wed, 2 Nov 2011 18:47:15 +0000 (18:47 +0000)]
gdb/
* linux-nat.c: Include cli/cli-utils.h.
(enum info_proc_what): New.
(linux_nat_info_proc_cmd): Rename to ...
(linux_nat_info_proc_cmd_1): ... here.  Remove variables argv and all.
New parameter what.  Initialize cmdline_f, cwd_f, exe_f, mappings_f,
status_f and stat_f from WHAT.  Throw error on extra parameters.
(linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
(linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
(linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
(linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
(_initialize_linux_nat): New variable info_proc_cmdlist.  Install `info
proc mappings', `info proc stat`, `info proc status', `info proc cwd',
`info proc cmdline', `info proc exe' and `info proc all' as real
subcommands of `info proc'.

13 years ago2011-11-02 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 2 Nov 2011 16:28:30 +0000 (16:28 +0000)]
2011-11-02  Tristan Gingold  <gingold@adacore.com>

* emultempl/aix.em (read_file_list): New function.
(_handle_option): Handle '-f'.
* NEWS: Mention this feature.

13 years ago ld:
ro [Wed, 2 Nov 2011 15:28:17 +0000 (15:28 +0000)]
ld:
* configure.tgt (x86_64-*-solaris2*): Use $targ_extra_emuls for
targ_extra_libpath.

13 years ago toplevel:
ro [Wed, 2 Nov 2011 15:23:36 +0000 (15:23 +0000)]
toplevel:
* Makefile.tpl (EXTRA_GCC_FLAGS): Remove LIBGCC2_CFLAGS,
LIBGCC2_DEBUG_CFLAGS, LIBGCC2_INCLUDES.
* Makefile.in: Regenerate.

config:
* mh-interix (LIBGCC2_DEBUG_CFLAGS): Remove.

13 years agoBuilding EFI binaries, particularly larger ones (like e.g. Xen does), on Linux
jbeulich [Wed, 2 Nov 2011 14:53:01 +0000 (14:53 +0000)]
Building EFI binaries, particularly larger ones (like e.g. Xen does), on Linux
(where relocatable objects are in ELF format) so far led to all local (aka
static) symbols to be discarded, making debugging quite a bit more difficult
(like Linux, Xen builds an internal symbol lookup table from nm output
generated on the binary produced by an earlier linking pass). Therefore, this
patch arranges to insert all (relevant) local symbols from non-COFF objects
into the final executable's symbol table between those coming from COFF input
files and the global ones.

bfd/
2011-11-02  Jan Beulich  <jbeulich@suse.com>

* coffgen.c (coff_write_alien_symbol): Make public. Add 'struct
internal_syment *' parameter. Extend 'dummy' to an array with two
elements. Set n_numaux early. Handle BSF_FILE.
(coff_write_symbols): Pass NULL as new third argument to
coff_write_alien_symbol().
* cofflink.c (_bfd_coff_final_link): Don't use COFF-specific
obj_raw_syment_count() on non-COFF input BFD. Insert local symbols
from non-COFF input BFDs.
* libcoff-in.h (coff_write_alien_symbol): Declare.
* libcoff.h (coff_write_alien_symbol): Re-generate.

13 years ago * po/it.po: New Italian translation.
nickc [Wed, 2 Nov 2011 12:02:21 +0000 (12:02 +0000)]
* po/it.po: New Italian translation.
* configure.in (ALL_LINGUAS): Add it.
* configure: Regenerate.
* po/opcodes.pot: Regenerate.

13 years ago * config/tc-arm.c (md_begin): Remove ARM_PLT32 reloc associated
nickc [Wed, 2 Nov 2011 11:13:57 +0000 (11:13 +0000)]
* config/tc-arm.c (md_begin): Remove ARM_PLT32 reloc associated
with the (PLT) instruction suffix when operating in eabi mode.
* doc/c-arm.texi (ARM_Relocations): Extend description of (PLT)
suffix.

* gas/arm/pic.d: Update expected output.

13 years agogdb/testsuite/
jkratoch [Wed, 2 Nov 2011 08:43:39 +0000 (08:43 +0000)]
gdb/testsuite/
* gdb.base/skip-solib.exp (executable_main): New variable.
(binfile_main): Base it on that.
Use $executable_main in clean_restart calls.  Drop gdb_exit and
gdb_start calls.

13 years agogdb/gdbserver/
qiyao [Wed, 2 Nov 2011 04:34:22 +0000 (04:34 +0000)]
gdb/gdbserver/

* tracepoint.c (cmd_qtstart): Remove unused local variables.