OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
15 years ago2008-12-16 Paolo Bonzini <bonzini@gnu.org>
bonzini [Tue, 16 Dec 2008 12:31:18 +0000 (12:31 +0000)]
2008-12-16  Paolo Bonzini  <bonzini@gnu.org>

Sync with GCC:

2008-12-12  Sebastian Pop  <sebastian.pop@amd.com>

* configure.ac (ppllibs): Add by default the lib flags.
* configure: Regenerate.

2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Add double brackets on darwin[912].
        * configure: Regenerate.

2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>

        * configure.ac: Expand to darwin10 and later.
        * configure: Regenerate.

15 years ago2008-12-16 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 16 Dec 2008 11:15:57 +0000 (11:15 +0000)]
2008-12-16  Tristan Gingold  <gingold@adacore.com>

* inflow.c: Remove old_sigio, handle_sigio, old_fcntl_flags,
set_sigio_trap, clear_sigio_trap definitions.
* inferior.h: Remove set_sigio_trap and clear_sigio_trap declarations.
* inf-ptrace.c (inf_ptrace_wait): Remove call to set_sigio_trap
and clear_sigio_trap.
* inf-ttrace.c (inf_ttrace_wait): Ditto.
* linux-nat.c (linux_nat_wait): Ditto.
* spu-linux-nat.c (spu_child_wait): Ditto.
* rs6000-nat.c (rs6000_wait): Ditto.
* target.c: Remove target_activity_function and target_activity_fd.
* target.h: Remove target_activity_function and target_activity_fd
declarations.

15 years ago * utils.sgml: Fix typo in passwd screen text.
corinna [Tue, 16 Dec 2008 10:56:33 +0000 (10:56 +0000)]
* utils.sgml: Fix typo in passwd screen text.

15 years ago * fhandler_registry.cc (DEFAULT_VALUE_NAME): Remove constant.
corinna [Tue, 16 Dec 2008 09:20:05 +0000 (09:20 +0000)]
* fhandler_registry.cc (DEFAULT_VALUE_NAME): Remove constant.
(encode_regname): Encode empty (default) name to "@".
Encode "@" to "%40".  Change error return to -1.
(decode_regname): Decode "@" to empty name.  Decode "%40" to "@".
(fhandler_registry::exists): Skip check for keys if name is empty.
Remove check for DEFAULT_VALUE_NAME, now handled by decode_regname ().
(fhandler_registry::readdir): Remove check for empty name, now
handled by encode_regname ().
(fhandler_registry::open): Remove check for DEFAULT_VALUE_NAME.
(fhandler_registry::open_key): Fail with ENOENT if key name is empty.

15 years ago- Fix a problem with "File Close" menu that let insight becoming unstable
denis [Tue, 16 Dec 2008 09:07:57 +0000 (09:07 +0000)]
- Fix a problem with "File Close" menu that let insight becoming unstable
and unable to reopen a new binary (Linux and Win32 hosts)
- Fix a problem with the source window that, once a binary is closed, is
splitted into 2 part and alway displays the old sources. (Win32 hosts only)

2008-12-16  Denis Pilat  <denis.pilat@st.com>
on behalf of Nunzio Raciti  <nunzio.raciti@st.com>

* library/srctextwin.itb (_clear_cache): Take care of $p variable that
could contains ":" for source pane on windows hosts.
* library/srcwin.itb (choose_and_update): Avoid updating the "source"
window if target executable name is empty.

15 years ago * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
brobecke [Tue, 16 Dec 2008 06:14:00 +0000 (06:14 +0000)]
    * gdb.texinfo (Omissions from Ada): Add missing GDB prompt in
        examples.
        (Additions to Ada): Likewise. Add the missing opening and closing
        parenthesis of the GDB prompt in one of the examples.

15 years ago2008-12-15 Paul Pluzhnikov <ppluzhnikov@google.com>
ppluzhnikov [Tue, 16 Dec 2008 05:06:02 +0000 (05:06 +0000)]
2008-12-15  Paul Pluzhnikov  <ppluzhnikov@google.com>

* dbxread.c (read_ofile_symtab): Sign-extend 32-bit N_LSYM and
N_PSYM STABS values for 64-bit GDB.

15 years ago*** empty log message ***
gdbadmin [Tue, 16 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Tue, 16 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago * syscalls.cc (gen_full_path_at): Use isabspath instead of isdirsep
corinna [Mon, 15 Dec 2008 20:53:18 +0000 (20:53 +0000)]
* syscalls.cc (gen_full_path_at): Use isabspath instead of isdirsep
to recognize absolute path.

15 years ago2008-12-15 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Mon, 15 Dec 2008 20:31:47 +0000 (20:31 +0000)]
2008-12-15  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/stdio.tex: Remove putwc and getwc references as they
        are included as part of fputwc and fgetwc, respectively.

15 years ago * sec_auth.cc (open_local_policy): Set lsa handle to
corinna [Mon, 15 Dec 2008 20:25:44 +0000 (20:25 +0000)]
* sec_auth.cc (open_local_policy): Set lsa handle to
INVALID_HANDLE_VALUE when LsaOpenPolicy fails.  Explain why.

15 years ago2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>
joel [Mon, 15 Dec 2008 19:48:06 +0000 (19:48 +0000)]
2008-12-15 Joel Sherrill <joel.sherrill@oarcorp.com>

* ppc-instructions, ppc-spr-table: Add ability
to read tbrl and tbru special registers.

15 years ago * setlsapwd.cc (setlsapwd): Simplify code. Only try to call cygserver
corinna [Mon, 15 Dec 2008 18:07:34 +0000 (18:07 +0000)]
* setlsapwd.cc (setlsapwd): Simplify code.  Only try to call cygserver
if opening local policy fails.  Don't treat removing non-existant
private data as error.

15 years ago * generic/gdbtk-cmds.c (valprint.h): Include.
kevinb [Mon, 15 Dec 2008 18:06:12 +0000 (18:06 +0000)]
* generic/gdbtk-cmds.c (valprint.h): Include.
(gdb_eval): Fetch print options via get_formatted_print_options.
Update call to val_print.
(gdb_update_mem): Likewise, but for print_scalar_formatted.
* generic/gdbtk-register.c (valprint.h): Include.
(get_register): Use get_formatted_print_options.  Update calls
to val_print.
* generic/gdbtk-wrapper.c (valprint.h): Include.
(wrap_val_print): Use get_formatted_print_options.  Delete
variables deref_ref and pretty; assign to equivalent fields
in the value_print_options struct instead.  Update call to
val_print.

15 years ago * setpwd.cc (client_request_setpwd::serve): Don't treat removing
corinna [Mon, 15 Dec 2008 18:05:50 +0000 (18:05 +0000)]
* setpwd.cc (client_request_setpwd::serve): Don't treat removing
non-existant private data as error.

15 years ago * setlsapwd.cc (setlsapwd): Explicitely erase password buffer content
corinna [Mon, 15 Dec 2008 17:39:38 +0000 (17:39 +0000)]
* setlsapwd.cc (setlsapwd): Explicitely erase password buffer content
after usage.

15 years ago * setpwd.cc (client_request_setpwd::serve): Explicitely erase password
corinna [Mon, 15 Dec 2008 17:39:21 +0000 (17:39 +0000)]
* setpwd.cc (client_request_setpwd::serve): Explicitely erase password
buffer content after usage.

15 years ago * passwd.c (main): Put how to delete the registry password on its own
corinna [Mon, 15 Dec 2008 17:33:08 +0000 (17:33 +0000)]
* passwd.c (main): Put how to delete the registry password on its own
line in passwd -R output.

15 years agoopcodes:
rearnsha [Mon, 15 Dec 2008 17:24:12 +0000 (17:24 +0000)]
opcodes:
* arm-dis.c (coprocessor_opcodes): Disassemble VFP instructions using
unified syntax.
gas/testsuite:
* gas/arm/group-reloc-ldc.d: Disassembly of VFP instructions now uses
unified syntax.
* gas/arm/vfp-non-overlap.d: Likewise.
* gas/arm/vfp-neon-syntax.d: Likewise.
* gas/arm/vfp-neon-syntax_t2.d: Likewise.
* gas/arm/vfp1.d: Likewise.
* gas/arm/vfp1_t2.d: Likewise.
* gas/arm/vfp1xD.d: Likewise.
* gas/arm/vfp1xD_t2.d: Likewise.
* gas/arm/vfp2.d: Likewise.
* gas/arm/vfp2_t2.d: Likewise.
* gas/arm/vfpv3-32drs.d: Likewise.
* gas/arm/vfpv3-const-conv.d: Likewise.
ld/testsuite:
* ld-arm/vfp11-fix-scalar.d: Disassembly of VFP instructions now uses
unified syntax.
* ld-arm/vfp11-fix-vector.d: Likewise.

15 years ago * gdb.base/consecutive.exp: Don't use global in gdb_expect.
jiez [Mon, 15 Dec 2008 13:04:56 +0000 (13:04 +0000)]
* gdb.base/consecutive.exp: Don't use global in gdb_expect.

15 years ago * fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.
corinna [Mon, 15 Dec 2008 12:51:46 +0000 (12:51 +0000)]
* fhandler_registry.cc (fhandler_registry::exists): Handle EACCES.
(fhandler_registry::open): Ditto.

15 years ago * cygwin.din: Export fgetwc, fgetws, fputwc, fputws, fwide, getwc,
corinna [Mon, 15 Dec 2008 12:40:28 +0000 (12:40 +0000)]
* cygwin.din: Export fgetwc, fgetws, fputwc, fputws, fwide, getwc,
getwchar, putwc, putwchar, ungetwc.
* posix.sgml: Move above functions (add missing) into "implemented
SUSv3" section.
* include/cygwin/version.h: Bump api minor number.

15 years ago * fhandler.h (class fhandler_registry): Declare dup method.
corinna [Mon, 15 Dec 2008 12:33:27 +0000 (12:33 +0000)]
* fhandler.h (class fhandler_registry): Declare dup method.
* fhandler_registry.cc (fhandler_registry::exists): Fix missing
parenthesis.
(fhandler_registry::dup): New method.

15 years ago2008-12-15 Tristan Gingold <gingold@adacore.com>
gingold [Mon, 15 Dec 2008 11:32:08 +0000 (11:32 +0000)]
2008-12-15  Tristan Gingold  <gingold@adacore.com>

* dwarf2expr.c (execute_stack_op): Handle DW_OP_swap.

15 years ago * ada-lang.c (ada_value_slice_ptr): Rename to...
guitton [Mon, 15 Dec 2008 10:40:27 +0000 (10:40 +0000)]
* ada-lang.c (ada_value_slice_ptr): Rename to...
(ada_value_slice_from_ptr): ... this. Return a lazy value instead
of a reference. Update comment.
(ada_value_struct_elt): Ditto if arg is a pointer or a reference.
Update comment as well.
(ada_evaluate_subexp): Update use of ada_value_slice_ptr.

15 years ago * gcc.sgml: Use 'bash$' as Cygwin prompt throughout.
corinna [Mon, 15 Dec 2008 09:37:50 +0000 (09:37 +0000)]
* gcc.sgml: Use 'bash$' as Cygwin prompt throughout.
* gdb.sgml: Ditto.
* pathnames.sgml: Ditto.  Fix the @ expansion example.

15 years ago * elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
hp [Mon, 15 Dec 2008 03:17:49 +0000 (03:17 +0000)]
* elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
(elf_backend_copy_indirect_symbol): Define to above.

15 years ago * ld-cris/libdso-13b.d: New test.
hp [Mon, 15 Dec 2008 02:33:38 +0000 (02:33 +0000)]
* ld-cris/libdso-13b.d: New test.

15 years ago * elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
hp [Mon, 15 Dec 2008 02:32:22 +0000 (02:32 +0000)]
* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
r_type.  Fix formatting.
(cris_elf_relocate_section) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
<R_CRIS_32_PCREL>: Also break early if the symbol doesn't get
emitted as a dynamic one.
(cris_elf_check_relocs) <R_CRIS_7, R_CRIS_16, R_CRIS_32>: Fork
from PCREL relocs code and simplify; don't fall through.
<R_CRIS_8_PCREL, R_CRIS_16_PCREL, R_CRIS_32_PCREL>: Simplify for
pcrel only.  For non-local or overridable symbols in a DSO, always
keep count of relocs, not just when -Bsymbolic.  Don't emit
message nor mark as TEXTREL here.
(elf_cris_discard_excess_dso_dynamics): Emit warning and mark as
TEXTREL here, if there are nondiscarded pcrel relocs.

15 years ago * elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
hp [Mon, 15 Dec 2008 02:10:26 +0000 (02:10 +0000)]
* elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
using ibfd, not abfd.

15 years ago * ld-cris/hidedsofns2468, ld-cris/libdso-12b.d,
hp [Mon, 15 Dec 2008 01:36:21 +0000 (01:36 +0000)]
* ld-cris/hidedsofns2468, ld-cris/libdso-12b.d,
ld-cris/libdso-12c.d, ld-cris/libdso-1b.d, ld-cris/dso-1b.s: New
tests.

15 years ago * ld-cris/got7.s: Correct .size expression.
hp [Mon, 15 Dec 2008 01:30:57 +0000 (01:30 +0000)]
* ld-cris/got7.s: Correct .size expression.
* ld-cris/tls-e-20a.d: Adjust accordingly.

15 years agodaily update
amodra [Mon, 15 Dec 2008 00:00:45 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Mon, 15 Dec 2008 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

15 years ago * utils.c (xmalloc,xcalloc,xstrdup): New fns.
devans [Sun, 14 Dec 2008 20:51:04 +0000 (20:51 +0000)]
* utils.c (xmalloc,xcalloc,xstrdup): New fns.
* server.h (ATTR_MALLOC): New macro.
(xmalloc,xcalloc,xstrdup): Declare.
* hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
* inferiors.c: Ditto.
* linux-low.c: Ditto.
* mem-break.c: Ditto.
* regcache.c: Ditto.
* remote-utils.c: Ditto.
* server.c: Ditto.
* target.c: Ditto.
* win32-low.c: Ditto.

15 years ago * gdb.texinfo (Omissions from Ada): Remove incorrect documentation
brobecke [Sun, 14 Dec 2008 18:30:25 +0000 (18:30 +0000)]
    * gdb.texinfo (Omissions from Ada): Remove incorrect documentation
        about the result of 'Address not being of type System.Address.
        This problem has been fixed a while ago.

15 years ago* fhandler_disk_file.cc (readdir_get_ino): Don't complain about MS-DOS paths
cgf [Sun, 14 Dec 2008 06:01:46 +0000 (06:01 +0000)]
* fhandler_disk_file.cc (readdir_get_ino): Don't complain about MS-DOS paths
since the function could be fed one by an internal call.

15 years ago*** empty log message ***
gdbadmin [Sun, 14 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sun, 14 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years ago* utils.sgml: Convert some backslashes to slashes.
cgf [Sat, 13 Dec 2008 22:43:54 +0000 (22:43 +0000)]
* utils.sgml: Convert some backslashes to slashes.

15 years ago* pathnames.sgml: Convert some backslashes to slashes.
cgf [Sat, 13 Dec 2008 21:14:44 +0000 (21:14 +0000)]
* pathnames.sgml: Convert some backslashes to slashes.

15 years ago* cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code.
cgf [Sat, 13 Dec 2008 21:05:30 +0000 (21:05 +0000)]
* cygheap.cc (cygheap_user::~cygheap_user): Remove unneeded if 0'ed code.
* fhandler_registry.cc (fhandler_registry::exists): Recode goto as if/else to
avoid a gcc4 compiler warning.
(fhandler_registry::open): Ditto.  Use one goto rather than two.
* gentls_offsets: Fix compiler warning in generated output.
* tlsoffsets.h: Regenerate.
* mount.cc (fillout_mntent): slashify native paths returned via getmntent.

15 years ago * gnu-v3-abi.c (vtable_ptrdiff_type): New function.
kevinb [Sat, 13 Dec 2008 00:39:52 +0000 (00:39 +0000)]
* gnu-v3-abi.c (vtable_ptrdiff_type): New function.
(gnuv3_decode_method_ptr, gnuv3_print_method_ptr)
(gnuv3_method_ptr_to_value): Use a better approximation for
`ptrdiff_t' instead of `long'.

* m32c-tdep.c (m32c_gdbarch_init): Call set_gdbarch_vbit_in_delta().
(m32c_push_dummy_call): Dereference pointer type.

15 years ago*** empty log message ***
gdbadmin [Sat, 13 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Sat, 13 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
devans [Fri, 12 Dec 2008 23:14:28 +0000 (23:14 +0000)]
* linux-low.c (linux_wait_for_process): Don't clobber current_inferior
in debugging printf.

15 years ago * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
devans [Fri, 12 Dec 2008 23:13:20 +0000 (23:13 +0000)]
* linux-low.c (handle_extended_wait): Simplify, use my_waitpid.

15 years ago2008-12-12 Craig Howland <howland@LGSInnovations.com>
jjohnstn [Fri, 12 Dec 2008 19:47:05 +0000 (19:47 +0000)]
2008-12-12  Craig Howland <howland@LGSInnovations.com>

        * libc/include/wchar.h:  Added wcstok() declaration.
        * libc/string/wcstok.c: New file, implementing wcstok.
        * libc/string/Makefile.am: Add wcstok support.
        * libc/string/wcstrings.tex: Ditto.
        * libc/string/Makefile.in: Regenerated.

15 years agogdb
tromey [Fri, 12 Dec 2008 17:58:47 +0000 (17:58 +0000)]
gdb
PR cli/2563:
* cli/cli-decode.c (delete_cmd): Add hook-related out parameters.
(add_cmd): Update.  Install hooks into new command.
(add_alias_cmd): Update.
gdb/testsuite
* gdb.base/commands.exp (redefine_hook_test): New proc.
Call it.

15 years ago2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
jjohnstn [Fri, 12 Dec 2008 17:21:08 +0000 (17:21 +0000)]
2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>

        * libc/stdio/fputws.c: Fix documentation.
        * libc/stdio/getwchar.c: Ditto.
        * libc/stdio/putwchar.c: Ditto.

15 years ago2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
jjohnstn [Fri, 12 Dec 2008 17:16:03 +0000 (17:16 +0000)]
2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>

        * libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
        200112L (SUSv3 compliance).
        Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).

15 years ago2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
jjohnstn [Fri, 12 Dec 2008 17:11:33 +0000 (17:11 +0000)]
2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>

        * libc/sys/rtems/crt0.c: Add stubs for getdents(), nanosleep(),
        _execve(), _exit().

15 years ago2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
jjohnstn [Fri, 12 Dec 2008 17:07:37 +0000 (17:07 +0000)]
2008-12-12  Ralf Corsepius  <ralf.corsepius@rtems.org>

        * configure.host: Let *rtems* default to c99-formats.

15 years agogdb
tromey [Fri, 12 Dec 2008 17:03:36 +0000 (17:03 +0000)]
gdb
* macroexp.c (get_pp_number): Require digit after leading ".".
Correctly handle suffixes.
gdb/testsuite
* gdb.base/macscp.exp: New regression test.

15 years ago * macrocmd.c (macro_define_command): Skip whitespace after
tromey [Fri, 12 Dec 2008 16:58:45 +0000 (16:58 +0000)]
* macrocmd.c (macro_define_command): Skip whitespace after
macro name.
(print_one_macro): Print space after macro name.

15 years ago * target-reloc.h (Default_scan_relocatable_relocs): Only discard
ian [Fri, 12 Dec 2008 16:33:04 +0000 (16:33 +0000)]
* target-reloc.h (Default_scan_relocatable_relocs): Only discard
r_type == 0 for a local symbol with r_sym == 0.
(scan_relocatable_relocs): Pass r_sym to
local_non_section_strategy.
* reloc.cc (Emit_relocs_strategy::local_non_section_strategy): Add
r_sym parameter.

15 years ago * configure.ac: Update test for TLS descriptors: they are
ian [Fri, 12 Dec 2008 16:23:27 +0000 (16:23 +0000)]
* configure.ac: Update test for TLS descriptors: they are
supported as of glibc 2.9.
* configure: Rebuild.

15 years ago * libc/stdio/freopen.c: Add <string.h> for memset prototype.
corinna [Fri, 12 Dec 2008 15:45:19 +0000 (15:45 +0000)]
* libc/stdio/freopen.c:  Add <string.h> for memset prototype.
* libc/stdio/fseek.c:  Ditto.
* libc/stdio/fwide.c:  Add <wchar.h> for fwide prototype.

15 years ago * pathnames.sgml: New section for /proc/registry. Document registry
corinna [Fri, 12 Dec 2008 15:14:06 +0000 (15:14 +0000)]
* pathnames.sgml: New section for /proc/registry. Document registry
name encoding.

15 years ago * infrun.c (handle_inferior_event): Correctly tag non-executing
palves [Fri, 12 Dec 2008 14:20:48 +0000 (14:20 +0000)]
* infrun.c (handle_inferior_event): Correctly tag non-executing
threads in multi-process.
(normal_stop): Correctly tag stopped threads in multi-process.

15 years ago * remote.c (extended_remote_mourn_1): Always call
palves [Fri, 12 Dec 2008 13:45:41 +0000 (13:45 +0000)]
* remote.c (extended_remote_mourn_1): Always call
generic_mourn_inferior.

15 years ago PR 7091
ian [Fri, 12 Dec 2008 02:41:39 +0000 (02:41 +0000)]
PR 7091
* target-reloc.h (Default_scan_relocatable_relocs): For each
function, map r_type == 0 to RELOC_DISCARD.

15 years ago * remote.c (remote_detach_1): Don't delete the inferior here.
palves [Fri, 12 Dec 2008 01:08:28 +0000 (01:08 +0000)]
* remote.c (remote_detach_1): Don't delete the inferior here.
(process_stop_reply): Ditto.
(extended_remote_kill): Ditto.

15 years ago * remote.c (read_ptid): If we don't know about any inferior yet,
palves [Fri, 12 Dec 2008 00:12:02 +0000 (00:12 +0000)]
* remote.c (read_ptid): If we don't know about any inferior yet,
use the pid of magic_null_ptid.
(remote_start_remote): In the non-stop mode case, don't set
inferior_ptid to magic_null_ptid here.

15 years ago*** empty log message ***
gdbadmin [Fri, 12 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Fri, 12 Dec 2008 00:00:05 +0000 (00:00 +0000)]
daily update

15 years agoFormatting fix.
jjohnstn [Thu, 11 Dec 2008 22:49:58 +0000 (22:49 +0000)]
Formatting fix.

15 years ago2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Thu, 11 Dec 2008 22:48:38 +0000 (22:48 +0000)]
2008-12-11 Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/time.h(gettimeofday): Change prototype so
        2nd parameter is void *, matching SUSV2.
        * libc/syscalls/sysgettod.c(gettimeofday): Ditto.

15 years ago * infcmd.c (step_1): Use step_once in the synchronous case too.
palves [Thu, 11 Dec 2008 20:34:18 +0000 (20:34 +0000)]
* infcmd.c (step_1): Use step_once in the synchronous case too.
(step_1_continuation): Wrap line.
(step_once): Adjust comment.  Only install the continuation in
async mode.

15 years ago2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
jjohnstn [Thu, 11 Dec 2008 20:05:37 +0000 (20:05 +0000)]
2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>

        * configure.host: Add lm32
        * libc/include/machine/ieeefp.h: Add __lm32__
        * libc/include/machine/setjmp.h: Add __lm32__
        * libc/machine/configure.in: Add lm32
        * libc/machine/configure: Regenerated.
        * libc/machine/lm32/aclocal.m4: New file.
        * libc/machine/lm32/configure.in: Ditto.
        * libc/machine/lm32/configure: Ditto.
        * libc/machine/lm32/Makefile.am: Ditto.
        * libc/machine/lm32/Makefile.in: Ditto.
        * libc/machine/lm32/setjmp.s: Ditto.

15 years ago * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
palves [Thu, 11 Dec 2008 19:19:11 +0000 (19:19 +0000)]
* infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
* linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
returned.
* inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
minus_one_ptid if the inferior disappeared.
* rs6000-nat.c (rs6000_wait): Likewise.
* spu-linux-nat.c (spu_child_wait): Likewise.

15 years agogdb
tromey [Thu, 11 Dec 2008 18:30:26 +0000 (18:30 +0000)]
gdb
PR macros/2564:
* c-exp.y (macro_original_text, expansion_obstack,
expression_macro_scope): New globals.
(scan_macro_expansion): New function.
(scanning_macro_expansion): Likewise.
(finished_macro_expansion): Likewise.
(scan_macro_cleanup): Likewise.
(c_parse): Find macro scope.  Initialize obstack.
* c-lang.h (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
* c-lang.c (scan_macro_expansion, scanning_macro_expansion,
finished_macro_expansion, expression_macro_lookup_func,
expression_macro_lookup_baton): Remove.
(macro_original_text, macro_expanded_text,
c_preprocess_and_parse): Remove.
(c_language_defn, cplus_language_defn, asm_language_defn,
minimal_language_defn): Use c_parse.
gdb/testsuite
* gdb.base/macscp.exp: Print "address.addr".
* gdb.base/macscp1.c (struct outer): New struct.
(address): New global.

15 years ago2008-12-11 Craig Howland <howland@LGSInnovations.com>
jjohnstn [Thu, 11 Dec 2008 17:27:55 +0000 (17:27 +0000)]
2008-12-11  Craig Howland  <howland@LGSInnovations.com>

        * libc/include/sys/lock.h:  Add void cast to avoid "statement has no
        effect" warnings from gcc.
        * libc/include/sys/stdio.h:  Ditto.
        * libc/include/sys/time.h:  Correct gettimeofday() prototype.
        * libc/stdlib/__exp10.c:  Add #include "std.h" for function prototype.
        * libc/stdlib/__ten_mu.c:  Ditto.
        * libc/stdlib/std.h:  Correct __exp10's ANSI prototype.
        * libc/stdlib/ldtoa.c:  Change eiisinf definition to ANSI form.  (Are
        already others in file without _ansi method, so did not bother.)
        * libc/stdlib/system.c:  Use _ansi forms for function prototypes and
        definitions.
        * libc/time/mktime.c:  Ditto.
        * libc/misc/__dprintf.c:  Ditto.
        * libc/include/stdio.h:  Add function prototypes for _fgetc_r,
        _fgetpos_r, _fsetpos_r, _freopen_r, _rewind_r, freopen64, _freopen64_r,
        _funopen_r, and _fopencookie_r.
        * libc/include/reent.h:  Add function prototype for _stat64_r, align
        _execve_r prototype with POSIX definition for execve.
        * libc/reent/execr.c:  Align function prototype with POSIX definition.
        * libc/stdio/asniprintf.c:  Add #include "local.h".
        * libc/stdio/vasniprintf.c:  Ditto.
        * libc/stdio/fread.c:  Remove unused variable newcount.
        * libc/stdio/local.h:  Add function prototype for __sccl.
        * libc/stdio/open_memstream.c:  Remove unused variable flags.
        * libc/stdio/vfscanf.c:  Proper prototyping for ccfn, remove prototype
        for __sccl since now in local.h.
        * libc/string/memcpy.c:  Add #include <string.h> (for real and for
        traditional synopsis), remove extraneous stddef.h and limits.h.
        * libc/syscalls/sysclose.c:  Add #include <unistd.h>.
        * libc/syscalls/sysfork.c:  Ditto.
        * libc/syscalls/sysgetpid.c:  Ditto.
        * libc/syscalls/sysexecve.c:  Add #include <unistd.h>, align function
        prototype with POSIX definition.
        * libc/syscalls/sysfstat.c:  Add #include <sys/stat.h>.
        * libc/syscalls/sysgettod.c:  Correct sys/times.h to sys/time.h.
        * libc/syscalls/syskill.c:  Add #include <signal.h>.
        * libc/syscalls/syslink.c:  Add #include <unistd.h>, fix prototype.
        * libc/syscalls/sysunlink.c:  Ditto.
        * libc/syscalls/sysstat.c:  Add #include <sys/stat.h>, fix prototype.
        * libc/syscalls/syswait.c:  Add #include <sys/wait.h>, fix prototype.

15 years ago2008-12-11 Ken Werner <ken.werner@de.ibm.com
jjohnstn [Thu, 11 Dec 2008 12:46:36 +0000 (12:46 +0000)]
2008-12-11  Ken Werner  <ken.werner@de.ibm.com

        * spu/crt0.S: Call __monstartup if profiling is enabled.
        * spu/Makefile.in: Add gcrt1.o gcrt2.o.

15 years ago PR 7041
amodra [Thu, 11 Dec 2008 10:14:40 +0000 (10:14 +0000)]
PR 7041
* elf64-ppc.c (func_desc_adjust): Correct logic making fake function
descriptors.  Similarly correct making function descriptors dynamic.

15 years ago*** empty log message ***
gdbadmin [Thu, 11 Dec 2008 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

15 years agodaily update
amodra [Thu, 11 Dec 2008 00:00:09 +0000 (00:00 +0000)]
daily update

15 years ago2008-12-10 Corinna Vinschen <corinna@vinschen.de>
jjohnstn [Wed, 10 Dec 2008 23:43:12 +0000 (23:43 +0000)]
2008-12-10  Corinna Vinschen  <corinna@vinschen.de>

        Implement basic wide char stdio functionality, based on FreeBSD.
        * libc/include/stdio.h (__SORD): Define.
        (__SWID): Define.
        * libc/include/wchar.h: Add declarations for new wide char functions.
        (getwc): Define as macro.
        (getwchar): Ditto.
        (putwc): Ditto.
        (putwchar): Ditto.
        * libc/include/sys/reent.h (struct __sFILE): Add _mbstate member.
        (struct __sFILE64): Ditto.
        * libc/stdio/Makefile.am (ELIX_4_SOURCES): Add fgetwc.c, fgetws.c,
        fputwc.c, fputws.c, fwide.c, getwc.c, getwchar.c, putwc.c, putwchar.c
        and ungetwc.c.
        (CHEWOUT_FILES): Add fgetwc.def, fgetws.def, fputwc.def, fputws.def,
        fwide.def, getwc.def, getwchar.def, putwc.def, putwchar.def and
        ungetwc.def.
        Add header dependency rules for the new files.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/fgetwc.c: New file, implementing fgetwc and _fgetwc_r.
        * libc/stdio/fgetws.c: New file, implementing fgetws and _fgetws_r.
        * libc/stdio/findfp.c (std): Initialize FILE's _mbstate member.
        (__sfmoreglue): Ditto.
        * libc/stdio/fputs.c (_fputs_r): Set stream orientation.
        * libc/stdio/fputwc.c: New file, implementing fputwc and _fputwc_r.
        * libc/stdio/fputws.c: New file, implementing fputws and _fputws_r.
        * libc/stdio/fread.c (_fread_r): Set stream orientation.
        * libc/stdio/freopen.c (_freopen_r): Reset stream orientation.  Reset
        _mbstate.
        * libc/stdio/fseek.c (_fseek_r): Reset _mbstate.
        * libc/stdio/fwide.c: New file, implementing fwide and _fwide_r.
        * libc/stdio/fwrite.c (_fwrite_r): Set stream orientation.
        * libc/stdio/getwc.c: New file, implementing getwc and _getwc_r.
        * libc/stdio/getwchar.c: New file, implementing getwchar and
        _getwchar_r.
        * libc/stdio/local.h (ORIENT): New macro.
        * libc/stdio/puts.c (_puts_r): Set stream orientation.
        * libc/stdio/putwc.c: New file, implementing putwc and _putwc_r.
        * libc/stdio/putwchar.c: New file, implementing putwchar and
        _putwchar_r.
        * libc/stdio/refill.c (__srefill_r): Set stream orientation.
        * libc/stdio/stdio.tex: Add documentation for new functions.
        * libc/stdio/ungetc.c (_ungetc_r): Set stream orientation.
        * libc/stdio/ungetwc.c: New file, implementing ungetwc and _ungetwc_r.
        * libc/stdio/vfscanf.c (__SVFSCANF_R): Set stream orientation.
        * libc/stdio/wbuf.c (__swbuf_r): Ditto.

15 years agomerge from gcc
dj [Wed, 10 Dec 2008 23:28:15 +0000 (23:28 +0000)]
merge from gcc

15 years ago * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
palves [Wed, 10 Dec 2008 21:32:14 +0000 (21:32 +0000)]
* infcmd.c (until_next_command, finish_backward): Use get_frame_pc
instead of read_pc.

15 years ago2008-12-10 Joseph Myers <joseph@codesourcery.com>
jjohnstn [Wed, 10 Dec 2008 21:27:58 +0000 (21:27 +0000)]
2008-12-10  Joseph Myers  <joseph@codesourcery.com>

        * libc/include/stdint.h (INT32_MIN, INT32_MAX, UINT32_MAX,
        INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX): Define to
        constants with "long" types where appropriate.
        (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN,
        INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX,
        UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX):
        Correct to match logic for defining corresponding types.
        (INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX): Define.
        (SIZE_MAX): Define using __SIZE_MAX__ if available.
        (PTRDIFF_MAX): Define using __PTRDIFF_MAX__ if available.
        (PTRDIFF_MIN): Define in terms of PTRDIFF_MAX.
        (WCHAR_MAX, WCHAR_MIN, WINT_MAX, WINT_MIN): Define.
        (UINT8_C, UINT16_C): Define to give signed values if corresponding
        types would promote to int.

15 years ago * layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
ccoutant [Wed, 10 Dec 2008 19:50:14 +0000 (19:50 +0000)]
* layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
object to override a kept COMDAT group from a plugin object.

15 years agobfd/
amodra [Wed, 10 Dec 2008 13:36:40 +0000 (13:36 +0000)]
bfd/
* elf32-spu.h (struct spu_elf_params): Add num_regions.
* elf32-spu.c (spu_elf_auto_overlay): Handle multiple overlay regions.
ld/
* emultempl/spuelf.em (params): Init new field.
(OPTION_SPU_NUM_REGIONS): Define.
(PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --num-regions.
(PARSE_AND_LIST_ARGS_CASES): Handle --num-regions.

15 years agobfd/
amodra [Wed, 10 Dec 2008 06:32:51 +0000 (06:32 +0000)]
bfd/
* elf32-spu.g (struct spu_elf_params, enum _ovly_flavour): New.
(spu_elf_setup): Declare.
(spu_elf_create_sections, spu_elf_size_stubs): Update prototype.
(spu_elf_build_stubs, spu_elf_check_vma): Likewise.
* elf32-spu.c (struct spu_link_hash_table): Add "params". Remove
various other fields now in "params".  Adjust code throughout.
(struct call_info, struct function_info): Move earlier in file.
(struct spu_elf_stack_info): Likewise.
(spu_elf_setup): New function.
(spu_elf_create_sections): Remove args other than "info".
(spu_elf_size_stubs, spu_elf_build_stubs, spu_elf_check_vma): Likewise.
(maybe_needs_stubs): Remove "output_bfd" arg.  Adjust all calls.
(interesting_section): Similarly with "obfd" arg.
(needs_ovl_stub): Adjust output_section test.
(allocate_spuear_stubs): Likewise.
(OVL_STUB_SIZE): Don't define.
(ovl_stub_size): New function, use in place of OVL_STUB_SIZE.
(build_stub): Test params->ovly_flavour rather than OVL_STUB_SIZE.
(spu_elf_auto_overlay): Remove args other than "info".  Make use
of size returned from spu_elf_load_ovl_mgr.
(spu_elf_stack_analysis): Remove args other than "info".
(spu_elf_relocate_section): Tidy setting of "ea".
ld/
* emultempl/spuelf.em (params): New var, used instead of various others.
Adjust use throughout file.
(spu_after_open): Call spu_elf_setup.
(spu_place_special_section): Tidy.
(spu_elf_load_ovl_mgr): Return total size of sections loaded.  Move
code setting overlay section alignment to..
(spu_before_allocation): ..here.

15 years ago * elf32-spu.c (define_ovtab_symbol): Don't abort on symbols
amodra [Wed, 10 Dec 2008 03:49:01 +0000 (03:49 +0000)]
* elf32-spu.c (define_ovtab_symbol): Don't abort on symbols
defined in linker scripts.
(discover_functions): Consider STT_SECTION symbols too.
(collect_lib_sections): Don't cut short call tree traversal
when function size is too large.

15 years agogdb
tromey [Wed, 10 Dec 2008 01:05:13 +0000 (01:05 +0000)]
gdb
PR gdb/1815:
* cli/cli-decode.c (delete_cmd): Forward declare.
(delete_cmd): Now static.  Change return type.  Remove command
from alias chain.  Rewrite.
(add_cmd): Initialize new fields.  Update cmd_pointer on all
aliases.
(add_alias_cmd): Put command on alias chain.
* command.h (delete_cmd): Don't declare.
* cli/cli-decode.h (delete_cmd): Don't declare.
(struct cmd_list_element) <aliases, alias_chain>: New fields.
gdb/testsuite
* gdb.base/commands.exp (redefine_backtrace_test): New proc.
Call it.

15 years ago * elf32-spu.c (find_function_stack_adjust): Don't limit number
amodra [Wed, 10 Dec 2008 00:37:11 +0000 (00:37 +0000)]
* elf32-spu.c (find_function_stack_adjust): Don't limit number
of insns scanned.  Correct sp tests.  Handle "fsmbi" and "andbi".
(mark_detached_root): New function.
(build_call_tree): Call it.
(sort_calls): Don't do void* arithmetic.

15 years agodaily update
amodra [Wed, 10 Dec 2008 00:00:04 +0000 (00:00 +0000)]
daily update

15 years ago*** empty log message ***
gdbadmin [Wed, 10 Dec 2008 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

15 years agobfd
tromey [Tue, 9 Dec 2008 18:59:53 +0000 (18:59 +0000)]
bfd
* pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc
4.4.
binutils
* srconv.c (wr_hd): Add parens to placate gcc 4.4.

15 years ago * linux-low.h (struct process_info): Delete member tid, unused.
devans [Tue, 9 Dec 2008 18:52:20 +0000 (18:52 +0000)]
* linux-low.h (struct process_info): Delete member tid, unused.
* thread-db.c (find_one_thread): Update.
(maybe_attach_thread): Update.

15 years ago * config.in, configure: Rebuild.
tromey [Tue, 9 Dec 2008 17:18:28 +0000 (17:18 +0000)]
* config.in, configure: Rebuild.
* configure.ac: Check for locale.h, setlocale.  Call
AM_LC_MESSAGES.
* acinclude.m4: Include lcmessage.m4.

15 years ago * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
jkratoch [Tue, 9 Dec 2008 16:36:12 +0000 (16:36 +0000)]
* remote.c (remote_parse_stop_reply): Use REG only after its NULL check.

15 years ago * resolv.h: #include <netinet/in.h> for sockaddr_in typedef.
corinna [Tue, 9 Dec 2008 16:09:44 +0000 (16:09 +0000)]
* resolv.h: #include <netinet/in.h> for sockaddr_in typedef.

15 years ago PR 7088
ian [Tue, 9 Dec 2008 16:09:32 +0000 (16:09 +0000)]
PR 7088
* yyscript.y (file_cmd): Handle INPUT.

15 years ago * testsuite/initpri1.c: Change all declarations to be full
ian [Tue, 9 Dec 2008 16:03:47 +0000 (16:03 +0000)]
* testsuite/initpri1.c: Change all declarations to be full
prototypes by adding void, to avoid compiler warnings.

15 years ago2008-12-09 Tristan Gingold <gingold@adacore.com>
gingold [Tue, 9 Dec 2008 09:51:08 +0000 (09:51 +0000)]
2008-12-09  Tristan Gingold  <gingold@adacore.com>

* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.

15 years ago2008-12-09 Andrew Stubbs <ams@codesourcery.com>
ams [Tue, 9 Dec 2008 08:34:29 +0000 (08:34 +0000)]
2008-12-09  Andrew Stubbs  <ams@codesourcery.com>

* readelf.c (arm_attr_tag_CPU_arch): Add "v6-M" and "v6S-M".
(arm_attr_tag_WMMX_arch): Add "WMMXv2".
(arm_attr_tag_NEON_arch): Rename to ...
(arm_attr_tag_Advanced_SIMD_arch): ... official name.
(arm_attr_tag_ABI_PCS_config): Rename to ...
(arm_attr_tag_PCS_config): ... official name.
(arm_attr_tag_ABI_PCS_RO_DATA): Rename to ...
(arm_attr_tag_ABI_PCS_RO_data): ... official name.
(arm_attr_tag_ABI_FP_denormal): Add "Sign only".
(arm_attr_tag_CPU_unaligned_access): New array.
(arm_attr_tag_T2EE_use): New array.
(arm_attr_tag_Virtualization_use): New array.
(arm_attr_tag_MPextension_use): New array.
(arm_attr_publ): NEON_arch -> Advanced_SIMD_arch.
ABI_PCS_config -> PCS_config.
ABI_PCS_RO_DATA -> ABI_PCS_RO_data.
Add CPU_unaligned_access, nodefaults, also_compatible_with,
T2EE_use, conformance, Virtualization_use and MPextension_use.
(display_arm_attribute): Handle Tag_nodefaults and
Tag_also_compatible_with.

15 years agoCommitted as obvious.
dannysmith [Tue, 9 Dec 2008 02:42:21 +0000 (02:42 +0000)]
Committed as obvious.

2008-12-08  Dmitry G. Gorbachev  <d.g.gorbachev@gmail.com>

* cpu_features.c (__cpu_features_init): Remove erroneous ';'.