OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
12 years ago2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
ironhead [Wed, 30 Nov 2011 23:49:46 +0000 (23:49 +0000)]
2011-11-30  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>

        * tlssup.c (__dyn_tls_init): Reapply patch from 3105314.

        Thank you to Earnie for creating the patch file.

12 years ago * thread-db.c (TID_MAY_BE_REUSED): Define.
kevinb [Wed, 30 Nov 2011 23:14:30 +0000 (23:14 +0000)]
* thread-db.c (TID_MAY_BE_REUSED): Define.
(find_new_threads_callback): Detect thread id reuse.

12 years agodaily update
amodra [Wed, 30 Nov 2011 23:00:07 +0000 (23:00 +0000)]
daily update

12 years agoChangeLog:
uweigand [Wed, 30 Nov 2011 16:06:46 +0000 (16:06 +0000)]
ChangeLog:

* s390-nat.c (SUBOFF): Remove.
(s390_native_supply, s390_native_collect): New functions.
(supply_gregset, supply_fpregset): Use s390_native_supply.
(fill_gregset, fill_fpregset): Use s390_native_collect.

* s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
(s390_unwind_pseudo_register): New function.
(s390_prologue_frame_unwind_cache): Unwind PSW address and mask
registers instead of PC and CC.
(s390_backchain_frame_unwind_cache): Likewise.
(s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
full GPR pseudos.
(s390_trad_frame_prev_register): New function.
(s390_frame_prev_register): Use it.
(s390_sigtramp_frame_prev_register): Likewise.
(s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
(s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
special callback to unwind any pseudo.

* features/s390-core32.xml: Add pswm/pswa to save/restore group.
* features/s390-core64.xml: Likewise.
* features/s390x-core64.xml: Likewise.
* features/s390-linux32.c: Regenerate.
* features/s390-linux64.c: Likewise.
* features/s390x-linux64.c: Likewise.

gdbserver/ChangeLog:

* linux-s390-low.c (s390_collect_ptrace_register): Fully convert
PSW address/mask between 8-byte and 16-byte formats.
(s390_supply_ptrace_register): Likewise.
(s390_get_pc, s390_set_pc): 4-byte PSW address always includes
basic addressing mode bit.

12 years ago * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
uweigand [Wed, 30 Nov 2011 08:26:46 +0000 (08:26 +0000)]
* s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.

12 years ago * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
uweigand [Wed, 30 Nov 2011 08:26:03 +0000 (08:26 +0000)]
* s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
instruction.  Add more diagnostic output.

12 years ago * gdb.base/testenv.exp: Skip on remote targets. Unset global
uweigand [Wed, 30 Nov 2011 08:25:15 +0000 (08:25 +0000)]
* gdb.base/testenv.exp: Skip on remote targets.  Unset global
environment variable after test completed.

12 years ago * gdb.base/solib-nodir.exp: Skip if remote target.
uweigand [Wed, 30 Nov 2011 08:24:30 +0000 (08:24 +0000)]
* gdb.base/solib-nodir.exp: Skip if remote target.
* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main
application.  Call gdb_load_shlibs.
* gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.

12 years ago*** empty log message ***
gdbadmin [Wed, 30 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agoopcode/
pinskia [Tue, 29 Nov 2011 20:28:53 +0000 (20:28 +0000)]
opcode/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips-dis.c (mips_arch_choices): Add Octeon+.
        * mips-opc.c (IOCT): Include Octeon+.
        (IOCTP): New macro.
        (mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * archures.c (bfd_mach_mips_octeonp): New macro.
        * bfd-in2.h: Regenerate.
        * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
        (arch_info_struct): Add bfd_mach_mips_octeonp.
        * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
        (mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
        (INSN_OCTEONP): New macro.
        (CPU_OCTEONP): New macro.
        (OPCODE_IS_MEMBER): Add Octeon+.
        (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * config/tc-mips.c (CPU_IS_OCTEON): New macro function.
        (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
        (NO_ISA_COP): Likewise.
        (macro) <ld_st>: Add support when off0 is true.
        Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
        (mips_cpu_info_table): Add octeon+.
        * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * gas/mips/mips.exp: Add octeon+ for an architecture.
        Run octeon-saa-saad test.
        (run_dump_test_arch): For Octeon architectures, also try octeon@.
        * gas/mips/octeon-pref.d: Remove -march=octeon from command line.
        * gas/mips/octeon.d: Likewise.
        * gas/mips/octeon-saa-saad.d: New file.
        * gas/mips/octeon-saa-saad.s: New file

12 years ago * ar.c (ranlib_usage): Describe -D.
roland [Tue, 29 Nov 2011 18:07:40 +0000 (18:07 +0000)]
* ar.c (ranlib_usage): Describe -D.
(ranlib_main): Parse -D.
(ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D.
* doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.

12 years ago* sigproc.cc (get_proc_lock): Remove extra NULL check. Return false on
cgf [Tue, 29 Nov 2011 17:41:00 +0000 (17:41 +0000)]
* sigproc.cc (get_proc_lock): Remove extra NULL check.  Return false on
failure.

12 years ago* sync.cc: Fix comment.
cgf [Tue, 29 Nov 2011 17:26:56 +0000 (17:26 +0000)]
* sync.cc: Fix comment.
* dll_init.cc (dll_list::reserve_space): Use %p rather than %lx to show
reserved space.

12 years agoNew gdb.base/infoline.exp testcase.
brobecke [Tue, 29 Nov 2011 16:59:43 +0000 (16:59 +0000)]
New gdb.base/infoline.exp testcase.

gdb/testsuite/ChangeLog:

        * gdb.base/infoline.c, gdb.base/infoline.exp: New files.

12 years ago* sigproc.cc (remove_proc): Don't terminate the currently executing thread.
cgf [Tue, 29 Nov 2011 15:34:47 +0000 (15:34 +0000)]
* sigproc.cc (remove_proc): Don't terminate the currently executing thread.

12 years ago PR ld/10144
macro [Tue, 29 Nov 2011 12:42:10 +0000 (12:42 +0000)]
PR ld/10144
* lib/ld-lib.exp (run_ld_link_tests): Handle sources from other
directories.
(run_ld_link_exec_tests): Likewise.
(run_cc_link_tests): Likewise.
* ld-elf/comm-data1.sd: New test.
* ld-elf/comm-data1.s: Source for the new test.
* ld-elf/comm-data2.sd: New test.
* ld-elf/comm-data2.rd: Likewise.
* ld-elf/comm-data2.xd: Likewise.
* ld-elf/comm-data2.s: Source for the new tests.
* ld-elf/comm-data.exp: New file.
* ld-mips-elf/comm-data.exp: Likewise.

12 years ago * MAINTAINERS (Write After Approval): Add myself to the list.
ndreys [Tue, 29 Nov 2011 10:26:23 +0000 (10:26 +0000)]
* MAINTAINERS (Write After Approval): Add myself to the list.

12 years agogdb/
sanjoyd [Tue, 29 Nov 2011 08:30:21 +0000 (08:30 +0000)]
gdb/

* jit.c (add_objfile_entry, jit_reader_try_read_symtab)
(jit_bfd_try_read_symtab): Fix comments.

12 years ago[libgloss]
dj [Tue, 29 Nov 2011 06:33:47 +0000 (06:33 +0000)]
[libgloss]
* configure.in: Add rl78.
* configure: Regenerate.
* rl78: New directory

[newlib]
* configure.host: Add rl78.
* libc/include/machine/ieeefp.h: Add rl78 support.
* libc/include/machine/setjmp.h: Add rl78 support.
* libc/machine/configure.in: Add rl78.
* libc/machine/rl78: New directory.

12 years agoRecord Mike Frysinger as a sim Global Maintainer.
brobecke [Tue, 29 Nov 2011 06:25:05 +0000 (06:25 +0000)]
Record Mike Frysinger as a sim Global Maintainer.

sim/ChangeLog:

* maintainers (global maintainers): new section.  add mike
frysinger.

12 years agofix older description
cgf [Tue, 29 Nov 2011 05:38:12 +0000 (05:38 +0000)]
fix older description

12 years ago[sim]
dj [Tue, 29 Nov 2011 03:49:08 +0000 (03:49 +0000)]
[sim]
* configure.tgt: Add rl78 support.
* configure: Regenerate.
* rl78: New directory.
* MAINTAINERS: Add myself as RL78 maintainer.
[gdb]
* NEWS: Mention RL78 simulator.

12 years agoFurther fix the documentation in struct quick_symbol_functions
brobecke [Tue, 29 Nov 2011 01:09:22 +0000 (01:09 +0000)]
Further fix the documentation in struct quick_symbol_functions

gdb/ChangeLog:

        * symfile.h (struct quick_symbol_functions): Fix the documentation
        of field map_matching_symbols, as symbols are sorted using
        strcmp_iw_ordered, not strcmp_iw.

12 years agoUpdate documentation in struct quick_symbol_functions
brobecke [Tue, 29 Nov 2011 01:01:01 +0000 (01:01 +0000)]
Update documentation in struct quick_symbol_functions

Paul sent me this documentiion update when I asked him a question
about compare_names in ada-lang.c.

gdb/ChangeLog:

        * symfile.h (struct quick_symbol_functions): Update the
        documentation for field map_matching_symbols.

12 years agowrong value returned by ada-lang.c:compare_names
brobecke [Tue, 29 Nov 2011 01:00:44 +0000 (01:00 +0000)]
wrong value returned by ada-lang.c:compare_names

The ada-lang.c:compare_names function returns the wrong value
when the first string starts with the same contents as the second
string, followed by '_' and then some characters that do not make
a symbol name suffix.  For instance:

    string1 = "generics__test_generics__instance__print"
    string2 = "generics__test_generics"

In that case, compare_names (string1, string2) return -1, when
clearly, string1 is greater than string2.

A consequence of this problem is that GDB may fail to lookup
"generics.test_generics" from our partial symtabs, because
partial symbols are ordered by strcmp_iw_ordered:

    (gdb) b generics.test_generics
    Function "generics.test_generics" not defined.
    Make breakpoint pending on future shared library load? (y or [n])

gdb/ChangeLog:

        * ada-lang.c (compare_names): Fix wrong return value in case
        string1 starts with the same contents as string2, followed
        by an underscore that do not start a symbol name suffix.

gdb/testsuite/ChangeLog:

        * gdb.ada/fullname_bp: New testcase.

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

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

12 years ago * locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
corinna [Mon, 28 Nov 2011 17:58:48 +0000 (17:58 +0000)]
* locale.cc (print_locale_with_codeset): Fetch Windows path as UNICODE
path and convert that to POSIX.

12 years ago * external.cc (fillout_pinfo): Store program name as POSIX path in
corinna [Mon, 28 Nov 2011 17:53:17 +0000 (17:53 +0000)]
* external.cc (fillout_pinfo): Store program name as POSIX path in
ep.progname_long.

12 years ago * ps.cc: Remove all Win 9x considerations. Use psapi functions
corinna [Mon, 28 Nov 2011 17:49:56 +0000 (17:49 +0000)]
* ps.cc: Remove all Win 9x considerations.  Use psapi functions
directly.  Drop support for older Cygwin DLLs.  Just use progname_long
as is since it's already a POSIX path now.  Rename "tty" to "pty" as in
the Cygwin DLL.  Call setlocale to make sure wcstombs does the right
thing according to the current locale.
* Makefile.in (ps.exe): Link against psapi.dll.

12 years ago PR binutils/13421
nickc [Mon, 28 Nov 2011 16:51:09 +0000 (16:51 +0000)]
PR binutils/13421
* readelf.c (arm_section_get_word): Add descriptive comments.
Initliase the rel_type field of the arm_sec structure.
(expand_prel31): Rename to arm_expand_prel31.
(dump_arm_unwind): Use new name.
Print the function name based on the function address entry.

12 years ago * pinfo.cc (pinfo::exit): Call TerminateProcess to avoid potential
corinna [Mon, 28 Nov 2011 16:00:03 +0000 (16:00 +0000)]
* pinfo.cc (pinfo::exit): Call TerminateProcess to avoid potential
busy loop in ntdll.dll when calling ExitProcess. Only call ExitProcess
as a fallback.

12 years ago2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
pmuldoon [Mon, 28 Nov 2011 15:49:40 +0000 (15:49 +0000)]
2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>

PR python/13369
PR python/13374

* python/python.c (gdbpy_decode_line): Do not acquire GIL.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
exceptions.
* python/py-type.c (typy_strip_typedefs): Ditto.
(typy_legacy_template_argument): Ditto.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-breakpoint.c (bppy_set_ignore_count): Ditto.

12 years ago*** empty log message ***
gdbadmin [Mon, 28 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Sun, 27 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
cgf [Sun, 27 Nov 2011 19:00:31 +0000 (19:00 +0000)]
* init.cc (dll_entry): Revert previous change since it caused inexplicable fork
problems.

12 years agoremove use of sprintf_vma in remote_get_tracepoint_status
brobecke [Sun, 27 Nov 2011 17:39:29 +0000 (17:39 +0000)]
remove use of sprintf_vma in remote_get_tracepoint_status

This function takes a VMA and was forcing us to perform a cast to
compile without warning on one platform. Except that the cast caused
a warning on sparc-solaris.  This patch fixes the problem by using
phex_nz instead.

gdb/ChangeLog:

        * remote.c (remote_get_tracepoint_status): Delete addrbuf
        local variable.  Avoid use of sprintf_vma.

12 years agogdb/
sanjoyd [Sun, 27 Nov 2011 14:26:05 +0000 (14:26 +0000)]
gdb/

Fix regression in jit.exp.
* jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(jit_register_code): Set the jit_objfile_data field to the correct
value.

12 years ago*** empty log message ***
gdbadmin [Sun, 27 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agoClean up DIRENT errno handling; make it more POSIX conformant.
keithmarshall [Sat, 26 Nov 2011 22:12:50 +0000 (22:12 +0000)]
Clean up DIRENT errno handling; make it more POSIX conformant.

12 years ago* init.cc (remove): Don't bother calling through thread removal cleanup if we
cgf [Sat, 26 Nov 2011 19:20:13 +0000 (19:20 +0000)]
* init.cc (remove): Don't bother calling through thread removal cleanup if we
are exiting.

12 years ago* exceptions.cc (stackdump): Make global.
cgf [Sat, 26 Nov 2011 19:14:19 +0000 (19:14 +0000)]
* exceptions.cc (stackdump): Make global.
(signal_exit): Move to sigproc.cc.
* sigproc.cc (signal_exit): Move here.  Declare stackdump extern.  Set
my_sendsig to indicate that signals are no longer available.
(my_readsig): Make Static again.
(sig_send): Interpret ERROR_BROKEN_PIPE as ESRCH.  Remove special-case EACCESS
errno setting, just setting errno generally, even for "its_me" case.

12 years ago* exceptions.cc (sigpacket::process): Move signal_exit processing into...
cgf [Sat, 26 Nov 2011 02:35:47 +0000 (02:35 +0000)]
* exceptions.cc (sigpacket::process): Move signal_exit processing into...
(_cygtls::signal_exit): ...here.  Close my_readsig and comment on why.
* pinfo.cc (pinfo::exit): Move sigproc_terminate earlier.  Set exiting flag in
lock_process.
* sigproc.cc (my_readsig): Make global.
* sync.cc (muto::exiting_thread): Delete.
(muto::acquire): Delete #if 0'ed code.
* sync.h (muto::exiting_thread): Delete.
(set_exiting_thread): Ditto.
(lock_process::lock_process): Don't worry about setting the exiting thread
since it had no meaning.

12 years ago*** empty log message ***
gdbadmin [Sat, 26 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/testsuite/
jkratoch [Fri, 25 Nov 2011 23:53:44 +0000 (23:53 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test):
Convert send_gdb and gdb_expect to gdb_test_multiple.

12 years agogdb/testsuite/
jkratoch [Fri, 25 Nov 2011 23:50:13 +0000 (23:50 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2):
Wrap send_gdb into a new gdb_test.

12 years agogdb/testsuite/
jkratoch [Fri, 25 Nov 2011 23:26:14 +0000 (23:26 +0000)]
gdb/testsuite/
* gdb.base/jit-so.exp (one_jit_test): Add testcase name to log message.

12 years agodaily update
amodra [Fri, 25 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
uweigand [Fri, 25 Nov 2011 17:05:36 +0000 (17:05 +0000)]
2011-11-25  Uros Bizjak  <ubizjak@gmail.com>

* alpha-tdep.c (br_opcode): New.
(ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
(alpha_deal_with_atomic_sequence): New function.
(alpha_gdbarch_init): Handle single stepping of atomic sequences
with alpha_deal_with_atomic_sequence.

12 years ago * mips-dis.c (print_insn_micromips): Rename local variable iprintf
muller [Fri, 25 Nov 2011 15:21:29 +0000 (15:21 +0000)]
* mips-dis.c (print_insn_micromips): Rename local variable iprintf
to infprintf to avoid shadow warning.

12 years ago * gas/config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
mgretton [Fri, 25 Nov 2011 15:17:35 +0000 (15:17 +0000)]
* gas/config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
is specified.
* gas/testsuite/gas/arm/mov-highregs-any.d: New testcase.
* gas/testsuite/gas/arm/mov-highregs-any.s: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.d: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.s: Likewise.

12 years ago * emultempl/armelf.em: Update copyright to 2010 and 2011.
nickc [Fri, 25 Nov 2011 15:04:08 +0000 (15:04 +0000)]
* emultempl/armelf.em: Update copyright to 2010 and 2011.
(PARSE_AND_LIST_OPTIONS): Fix formatting.

12 years ago * binutils-all/objdump.exp (cpus): Add MicroBlaze.
nickc [Fri, 25 Nov 2011 14:47:47 +0000 (14:47 +0000)]
* binutils-all/objdump.exp (cpus): Add MicroBlaze.
(objdump -WL): Skip this test on MCore, Moxie and OpenRisc
targets.

* binutils-all/objcopy.exp (localize-hidden-1): Expect this test
to fail on MIPS based targets.

12 years ago * po/it.po: Updated Italian translation.
nickc [Fri, 25 Nov 2011 09:19:07 +0000 (09:19 +0000)]
* po/it.po: Updated Italian translation.

12 years ago * po/it.po: New Italian translation.
nickc [Fri, 25 Nov 2011 09:15:25 +0000 (09:15 +0000)]
* po/it.po: New Italian translation.

12 years ago2011-11-24 Stan Shebs <stan@codesourcery.com>
shebs [Fri, 25 Nov 2011 04:41:15 +0000 (04:41 +0000)]
2011-11-24  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.

12 years ago*** empty log message ***
gdbadmin [Fri, 25 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Thu, 24 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago* strace.cc (attach_process): Use NT_SUCCESS to figure out if
cgf [Thu, 24 Nov 2011 21:54:41 +0000 (21:54 +0000)]
* strace.cc (attach_process): Use NT_SUCCESS to figure out if
NtSetInformationProcess succeeded.
(handle_output_debug_string): Put back DebugActiveProcess since it seems to
still be needed (on my system at least).  Detect new format
_STRACE_INTERFACE_ACTIVATE_ADDR which informs whether this is a forked process
or not.  Use that to decide if forkdebug should be handled.

12 years agomissed this in previous checkin
cgf [Thu, 24 Nov 2011 21:38:17 +0000 (21:38 +0000)]
missed this in previous checkin

12 years ago* cygthread.h (cygthread::name): Default name to "main" if we are early in the
cgf [Thu, 24 Nov 2011 21:36:52 +0000 (21:36 +0000)]
* cygthread.h (cygthread::name): Default name to "main" if we are early in the
process of setting up the DLL and no name is known.
* dcrt0.cc (initial_env): Remove CYGWIN_SLEEP stuff.
(get_cygwin_startup_info): Activate strace here as appropriate.
(dll_crt0_0): Move get_cygwin_startup_info as early as possible to avoid
missing strace output.
* fork.cc (frok::child): Move debugging statement to point where ppid will be
set.
* pinfo.cc (pinfo::thisproc): Remove obsolete call to strace.hello.  Tweak
debug output slightly.
* select.cc (select_stuff::wait): Allow APCS to be triggered while waiting
since we use them now.  Report when that happens.
* sigproc.cc (child_info::child_info): Use strace.active() rather than
strace.attached().
* spawn.cc (child_info_spawn::worker): Only write strace child pid when we know
it's a cygwin process.  Accommodate change to write_child argument list.
* strace.cc (strace::hello): Delete.  Move functionality...
(strace::activate): ...to here.
(mypid): Just use raw GetCurrentProcessId () if myself isn't set.
(strace::write_childpid): Don't wait for subproc_ready.  Remove arg which was
required for it.
* include/sys/strace.h (strace::hello): Delete.
(strace::write_childpid): Delete first argument.

12 years ago2011-11-24 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 24 Nov 2011 16:26:17 +0000 (16:26 +0000)]
2011-11-24  Tristan Gingold  <gingold@adacore.com>

* machoread.c (oso_el): Remove num_Sections, symbols, offsets
fields.  Add oso_sym, end_sym and nbr_syms.
(macho_register_oso): Change interface.
(macho_symtab_add_minsym): New function.
(macho_symtab_read): Rewritten.
(get_archive_prefix_len): Remove trailing blanks.
(oso_el_compare_name): Add comment.
(struct macho_sym_hash_entry): New structure.
(macho_relocate_common_syms): Remove.
(macho_sym_hash_newfunc): New function.
(macho_resolve_oso_sym_with_minsym): Likewise.
(macho_add_oso_symfile): Rewritten.
(macho_symfile_read_all_oso): Remove trailing blanks.
Adjust code to free oso vector.
(macho_symfile_read): Likewise.
Move code to initialize minimal symbol

12 years ago * mips-tdep.c (extended_offset): Fix formatting.
macro [Thu, 24 Nov 2011 15:56:22 +0000 (15:56 +0000)]
* mips-tdep.c (extended_offset): Fix formatting.

12 years ago* child_info.h (CURR_CHILD_INFO_MAGIC): Reset for previous changes.
cgf [Thu, 24 Nov 2011 02:17:53 +0000 (02:17 +0000)]
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset for previous changes.
* dcrt0.cc (get_cygwin_startup_info): Signal readiness when stracing since
strace::write_child relies on it.  Use strace.activate to notify strace
process, passing in arg indicating whether we're forked.
* sigproc.cc (wait_sig): Accommodate new strace::activate argument.
* spawn.cc (child_info_spawn::worker): Oops.  Previous suspended test was
actually correct.  Revert and document.
* strace.cc (strace::activate): Send additional flag indicating whether this is
an attempt to activate a forked process.
(strace::hello): Report on windows pid.
* include/sys/strace.h (strace::strace): Make a dummy.
(strace::activate): Modify declaration to accept an argument.
(strace::write_childpid): Set regparm.

12 years ago*** empty log message ***
gdbadmin [Thu, 24 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Wed, 23 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago* pipe.cc (fhandler_pipe::create): Avoid derefencing a NULL pointer.
cgf [Wed, 23 Nov 2011 21:58:42 +0000 (21:58 +0000)]
* pipe.cc (fhandler_pipe::create): Avoid derefencing a NULL pointer.
* child_info.h (child_info): Reorganize some elements so that the ones which
are initialized in a constructor are all together.
* sigproc.cc (child_info::child_info): Initialize values via the constructor
rather than as C statements and make sure that flags is set to zero initially.
* spawn.cc (child_info_spawn::worker): Use iscygwin() test for determining when
to send strace info since it is more foolproof than checking the suspend state.

12 years ago * lib/mi-support.exp (varobj_tree): New namespace and procs.
kseitz [Wed, 23 Nov 2011 21:02:54 +0000 (21:02 +0000)]
* lib/mi-support.exp (varobj_tree): New namespace and procs.
(mi_varobj_tree_test_children_callback): New proc.
(mi_walk_varobj_tree): New proc.

12 years ago * dwarf2read.c (dw2_lookup_symtab): Add comment.
devans [Wed, 23 Nov 2011 19:55:42 +0000 (19:55 +0000)]
* dwarf2read.c (dw2_lookup_symtab): Add comment.
(dw2_expand_symtabs_with_filename): Ditto.
(dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames): Ditto.

12 years agoMinor reformatting in ada-lang.c:assign_aggregate
brobecke [Wed, 23 Nov 2011 19:54:18 +0000 (19:54 +0000)]
Minor reformatting in ada-lang.c:assign_aggregate

No code change.

gdb/ChangeLog:

        From Andrey Smirnov <andrew.smirnov@gmail.com>:
        * ada-lang.c (assign_aggregate): Minor reformatting.

12 years agofix -Wshadow warning inside ada-lang.c:assign_aggregate
brobecke [Wed, 23 Nov 2011 19:54:08 +0000 (19:54 +0000)]
fix -Wshadow warning inside ada-lang.c:assign_aggregate

gdb/ChangeLog:

        From Andrey Smirnov <andrew.smirnov@gmail.com>:
        * ada-lang.c (assign_aggregate): Remove declaration of local
        variable `i' which is shadowing another variable with the same
        name declared in the outer scope.

12 years agoada-lang.c: Rename function base_type into get_base_type
brobecke [Wed, 23 Nov 2011 19:21:11 +0000 (19:21 +0000)]
ada-lang.c: Rename function base_type into get_base_type

This avoids shadowing issues with variables named base_type.

gdb/ChangeLog:

        * ada-lang.c (get_base_type): Renames base_type.  Adjust all
        calls throughout this file.

12 years ago* fhandler.h (fhandler_pipe::create): Rename from the misnamed
cgf [Wed, 23 Nov 2011 18:56:56 +0000 (18:56 +0000)]
* fhandler.h (fhandler_pipe::create): Rename from the misnamed
"create_selectable".  Change return to DWORD.
(fhandler_pty_common::pipesize): New constant.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Reflect create_selectable
name change.
* miscfuncs.cc (CreatePipeOverlapped): Ditto.
* pipe.cc (fhandler_pipe::create): Ditto.
(fhandler_pipe::create): Rename from the misnamed "create_selectable".  Return
DWORD.  Only set pipe size to default when it is passed in as zero.
* fhandler_tty.cc (fhandler_pty_master::setup): Ditto.  Use
fhandler_pty_common::pipesize rather than a raw constant.
* tty.cc (tty::not_allocated): Ditto.
* sigproc.cc (sigproc_init): Use create_selectable to create the signal pipe to
get a more appropriate message based pipe.

12 years agoFix compilation error in gdb-dlfcn.c (on Windows)
brobecke [Wed, 23 Nov 2011 17:24:00 +0000 (17:24 +0000)]
Fix compilation error in gdb-dlfcn.c (on Windows)

gdb/ChangeLog:

        * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
        FormatMessage.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 23 Nov 2011 11:32:41 +0000 (11:32 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (s_alpha_prologue): Requires empty line.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 23 Nov 2011 11:27:50 +0000 (11:27 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (s_alpha_frame): Emit a warning if bad value
of RA.
(s_alpha_pdesc): Adjust comment.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 23 Nov 2011 11:22:21 +0000 (11:22 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (get_idxlen): Add comments.  Fix type in sizeof.
(vms_write_index): Add comments.

12 years ago2011-11-23 Thomas Klein <th.r.klein@web.de>
rearnsha [Wed, 23 Nov 2011 10:50:52 +0000 (10:50 +0000)]
2011-11-23  Thomas Klein  <th.r.klein@web.de>

* config/tc-arm.c (do_t_mov_cmp): Prevent emitting code for MOV
with two low register at arch v4t or v5t when assember using
unified syntax.

12 years ago*** empty log message ***
gdbadmin [Wed, 23 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
amodra [Tue, 22 Nov 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agogdb
tromey [Tue, 22 Nov 2011 21:25:17 +0000 (21:25 +0000)]
gdb
PR mi/8444:
* mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
(EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
(EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
* mi/mi-common.c (async_reason_string_lookup): Add new reasons.
* breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
(print_it_catch_syscall, print_it_catch_exec)
(internal_bkpt_print_it): Use ui_out.  Emit stop reason.
(bpstat_print): Add 'kind' argument.  Handle
TARGET_WAITKIND_LOADED.
* infrun.c (normal_stop): Update for bpstat_print change.  Don't
handle TARGET_WAITKIND_LOADED here.
* breakpoint.h (bpstat_print): Update.
gdb/testsuite
* lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd.
Add "use_mi_command" argument.
(mi_run_cmd, mi_run_with_cli): New procs.
* gdb.mi/solib-lib.c: New file.
* gdb.mi/solib-main.c: New file.
* gdb.mi/mi-solib.exp: New file.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document new *stopped
reasons.

12 years ago * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
tromey [Tue, 22 Nov 2011 21:21:53 +0000 (21:21 +0000)]
* mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.

12 years ago * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
tromey [Tue, 22 Nov 2011 21:18:36 +0000 (21:18 +0000)]
* mi/mi-common.c (_initialize_gdb_mi_common): Remove.
Use static_assert to check the size of
async_reason_string_lookup.
* common/gdb_assert.h (static_assert): New macro.

12 years ago* elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
dj [Tue, 22 Nov 2011 19:50:35 +0000 (19:50 +0000)]
* elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
avoid using the special non-swapping target when not explicitly
requested.

12 years ago* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
dj [Tue, 22 Nov 2011 19:46:19 +0000 (19:46 +0000)]
* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.

12 years ago2011-11-22 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 22 Nov 2011 10:47:50 +0000 (10:47 +0000)]
2011-11-22  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_print_symbol): Display COM for common
symbols.  Print section name in brackets.

12 years ago * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
amodra [Tue, 22 Nov 2011 08:19:16 +0000 (08:19 +0000)]
* rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
destination calculation.  Don't expect >> to sign extend.  Don't
add a break if branch lands inside the sequence anywhere.

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

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

12 years ago * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
kseitz [Mon, 21 Nov 2011 21:53:49 +0000 (21:53 +0000)]
* gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
-var-evaluate-expression of an enumeration and fix expected result.
* gdb.mi/mi2-varvdisplay.exp: Likewise.

12 years ago* sigproc.cc (remove_proc): Don't do busy loop when exiting since it doesn't
cgf [Mon, 21 Nov 2011 21:09:31 +0000 (21:09 +0000)]
* sigproc.cc (remove_proc): Don't do busy loop when exiting since it doesn't
matter.

12 years ago* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
cgf [Mon, 21 Nov 2011 19:13:29 +0000 (19:13 +0000)]
* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
have been terminated prior to setting flag.
* signal.cc (sigwaitinfo): Zero event before closing to signal other threads
that it is no longer available.

12 years ago * gdb.cp/nextoverthrow.exp: Skip test if debug info for
devans [Mon, 21 Nov 2011 17:34:16 +0000 (17:34 +0000)]
* gdb.cp/nextoverthrow.exp: Skip test if debug info for
_Unwind_DebugHook is missing.

12 years ago* config/rl78-defs.h (rl78_error): Add "const".
dj [Mon, 21 Nov 2011 17:10:31 +0000 (17:10 +0000)]
* config/rl78-defs.h (rl78_error): Add "const".
* config/rl78-parse.y (rl78_error): Likewise.

12 years ago2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
kcy [Mon, 21 Nov 2011 16:54:28 +0000 (16:54 +0000)]
2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>

        * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
        the case where osdata->items is empty.  Rename column names to a
        canonical form to avoid problems with unusual column names.

12 years ago * Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
amodra [Mon, 21 Nov 2011 13:22:41 +0000 (13:22 +0000)]
* Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
source.
(eelf64ppc_fbsd.c): Add rules to build this file.
* Makefile.in: Regenerate.
* configure.tgt: Add target definition for powerpc64-*-freebsd*.
Adjust powerpc-*-freebsd*.
* emultempl/ppc64elf.em: Add a mechanism to override the default
value of 0 for plt_static_chain.
* emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
* emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
(DEFAULT_PLT_STATIC_CHAIN): Define to 1.

12 years ago * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.
amodra [Mon, 21 Nov 2011 13:19:32 +0000 (13:19 +0000)]
* config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.

12 years ago * config.bfd: Add vectors for powerpc and powerpc64-freebsd.
amodra [Mon, 21 Nov 2011 13:18:06 +0000 (13:18 +0000)]
* config.bfd: Add vectors for powerpc and powerpc64-freebsd.
* configure.in (TDEFINES): Add rules for powerpc*-freebsd.
* configure: Regenerate.
* elf32-ppc.c: Add powerpc-freebsd definitions.
* elf64-ppc.c: Add powerpc64-freebsd definitions.
* targets.c: Add bits for powerpc and powerpc64-freebsd.