OSDN Git Service

pf3gnuchains/pf3gnuchains3x.git
14 years ago2009-08-18 Doug Kwan <dougkwan@google.com>
dougkwan [Tue, 18 Aug 2009 23:49:29 +0000 (23:49 +0000)]
2009-08-18  Doug Kwan  <dougkwan@google.com>

* dynobj.cc (Sized_dynobj::setup): Take a Target object instead of
an elcpp::Ehdr as parameter.  Adjust call to set_target.
* dynobj.h (Sized_dynobj::setup): Take a Target object instead of
an elfcpp::Ehdr as parameter.
* object.cc (Object::set_target): Remove the version that looks up
a target and sets it.
(Sized_relobj::setup): Take a Target object instead of
an elfcpp::Ehdr as parameter.  Adjust call to set_target.
(make_elf_sized_object): Find target and ask target to
make an ELF object.
* object.h: (Object::set_target): Remove the version that looks up
a target and sets it.
(Sized_relobj::setup): Take a Target object instead of
an elfcpp:Ehdr as parameter.
* target.cc: Include dynobj.h.
(Target::do_make_elf_object_implementation): New.
  (Target::do_make_elf_object): New.
* target.h (Target::make_elf_object): New template declaration.
(Target::do_make_elf_object): New method declarations.
(Target::do_make_elf_object_implementation): New template declaration.

14 years ago2009-08-18 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Tue, 18 Aug 2009 21:48:04 +0000 (21:48 +0000)]
2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>

        * newlib.hin: Add comment regarding file being manually edited.
        * Makefile.am: Add no-op rule for newlib.hin.
        * Makefile.in: Regenerated.

14 years ago2009-08-18 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Tue, 18 Aug 2009 19:57:59 +0000 (19:57 +0000)]
2009-08-18  Jeff Johnston  <jjohnstn@redhat.com>

        * acconfig.h: Add templates for _HAVE_LONG_DOUBLE and _LDBL_EQ_DBL.

14 years agoFix source files list in sid/component/cgen-cpu/mep/Makefile.am.
rwild [Tue, 18 Aug 2009 19:29:15 +0000 (19:29 +0000)]
Fix source files list in sid/component/cgen-cpu/mep/Makefile.am.

sid/component/cgen-cpu/mep/
* Makefile.am (CPU_SOURCES): Replace mep-ivc2.cxx with
ivc2-cop.cxx.
* Makefile.in: Regenerate.

14 years ago2009-08-18 Eric Blake <ebb9@byu.net>
jjohnstn [Tue, 18 Aug 2009 18:34:57 +0000 (18:34 +0000)]
2009-08-18  Eric Blake  <ebb9@byu.net>

        * libc/posix/popen.c (popen): Fix documented prototype.

        Improve popen compatibility with glibc.
        * libc/posix/popen.c (popen): The 2006-08-22 change to use
        FD_CLOEXEC disagrees with other implementations; instead, use
        pidlist to work even when fcntl is not available.  Meanwhile,
        support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
        cygwin-specific code, now that cygwin has its own version.
        * libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
        * libc/posix/posix.tex: New file.

14 years agoFix obvious fix.
ktietz [Tue, 18 Aug 2009 17:50:12 +0000 (17:50 +0000)]
Fix obvious fix.
CVS: ----------------------------------------------------------------------

14 years ago* libc/posix/popen.c (popen): Fix documented prototype.
ericb [Tue, 18 Aug 2009 17:07:55 +0000 (17:07 +0000)]
* libc/posix/popen.c (popen): Fix documented prototype.

14 years ago2009-08-18 Kai Tietz <kai.tietz@onevision.com>
ktietz [Tue, 18 Aug 2009 16:44:32 +0000 (16:44 +0000)]
2009-08-18  Kai Tietz  <kai.tietz@onevision.com>

        * config/obj-coff-seh.c: Add copyright notice.
        * config/obj-coff-seh.h: Add copyright notice.
        Add x64 specific macros from coff/pe.h header.

14 years agoImprove popen compatibility with glibc.
ericb [Tue, 18 Aug 2009 16:43:21 +0000 (16:43 +0000)]
Improve popen compatibility with glibc.

* libc/posix/popen.c (popen): The 2006-08-22 change to use
FD_CLOEXEC disagrees with other implementations; instead, use
pidlist to work even when fcntl is not available.  Meanwhile,
support the 'e' modifier to set CLOEXEC, as in glibc.  Drop
cygwin-specific code, now that cygwin has its own version.
* libc/posix/Makefile.am (CHEWOUT_FILES): Document popen.
* libc/posix/posix.tex: New file.

14 years ago2009-08-18 Sterling Augustine <sterling@tensilica.com>
sterling [Tue, 18 Aug 2009 16:42:14 +0000 (16:42 +0000)]
2009-08-18  Sterling Augustine  <sterling@tensilica.com>

* config/tc-xtensa.c (xtensa_create_xproperty_segments): Use
sizeof instead of hard-coded value.
(add_xt_block_frags): Remove unused local variable.
(frag_flags_to_number): Change return type to flagword.  Remove
unused local variable.

14 years ago * gas-test.scm (<hw-asm>, test-data): Handle () values.
devans [Tue, 18 Aug 2009 16:34:41 +0000 (16:34 +0000)]
* gas-test.scm (<hw-asm>, test-data): Handle () values.
(<keyword>, test-data): Convert symbols to strings before passing
to string-append.
(<hw-index>, test-data): Enumerate all cases.  Emit correctly sized
result for scalars.

* operand.scm (hw-index-scalar): Set `name'.
(hw-index-anyof, hw-index-derived): Ditto.

14 years ago2009-08-17 Sterling Augustine <sterling@jaw.hq.tensilica.com>
sterling [Tue, 18 Aug 2009 16:21:46 +0000 (16:21 +0000)]
2009-08-17  Sterling Augustine  <sterling@jaw.hq.tensilica.com>

* config/tc-xtensa.c (xtensa_frob_label): move call to
do_align_targets to set frag_type only.

14 years ago * utils.c (add_internal_problem_command): Free set_doc and
tromey [Tue, 18 Aug 2009 16:17:11 +0000 (16:17 +0000)]
* utils.c (add_internal_problem_command): Free set_doc and
show_doc.
* remote.c (add_packet_config_cmd): Free set_doc and show_doc.
* language.c (add_language): Free language_set_doc.

14 years ago2009-08-17 Craig Howland <howland@LGSInnovations.com>
jjohnstn [Tue, 18 Aug 2009 16:03:03 +0000 (16:03 +0000)]
2009-08-17  Craig Howland <howland@LGSInnovations.com>

        * libc/string/wcsncpy.c (wcsncpy):  Re-write function based on small
        version of strncpy() (fixing two bugs).

14 years ago * Makefile.in (ALL_TARGET_OBS): Remove prologue-value.o, solib.o.
tromey [Tue, 18 Aug 2009 15:22:12 +0000 (15:22 +0000)]
* Makefile.in (ALL_TARGET_OBS): Remove prologue-value.o, solib.o.

14 years ago* dtable.cc (dtable::fixup_after_exec): Close any popen'ed file handles here.
cgf [Tue, 18 Aug 2009 15:21:47 +0000 (15:21 +0000)]
* dtable.cc (dtable::fixup_after_exec): Close any popen'ed file handles here.
* fhandler.h (fhandler_*::ispipe): New function.
(fhandler_base::get_popen_pid): Define virtual function.
(fhandler_*::isdevice): Make const.
(fhandler_*::isfifo): Ditto.

14 years ago * Makefile.in (CXXFLAGS): Allow override.
corinna [Tue, 18 Aug 2009 08:37:23 +0000 (08:37 +0000)]
* Makefile.in (CXXFLAGS): Allow override.

14 years ago* syscalls.cc (popen): Reorganize slightly for clarity. Fix a comment.
cgf [Tue, 18 Aug 2009 01:51:34 +0000 (01:51 +0000)]
* syscalls.cc (popen): Reorganize slightly for clarity.  Fix a comment.

14 years ago * pmacros.scm (-pmacro-builtin-internal-test): New function.
devans [Tue, 18 Aug 2009 01:40:56 +0000 (01:40 +0000)]
* pmacros.scm (-pmacro-builtin-internal-test): New function.
(pmacros-init!): Add .internal-test.
* testsuite/test-utils.sh.in (post_process): Tweak FAIL output.
* testsuite/testsuite.cpu (internal-verify): New pmacro.
* doc/pmacros.text: Document .internal-test.

* utils-cgen.scm (parse-name): Handle (add 3) -> add3.
(parse-comment): Allow numbers.
* doc/porting.texi: Document that names and comments may be lists.

* insn.scm (-insn-parse): Fix typo.

14 years ago* syscalls.cc (popen): Rewrite to accommodate situations where stdin, stdout,
cgf [Tue, 18 Aug 2009 01:40:45 +0000 (01:40 +0000)]
* syscalls.cc (popen): Rewrite to accommodate situations where stdin, stdout,
or stderr are closed.

14 years ago*** empty log message ***
gdbadmin [Tue, 18 Aug 2009 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Tue, 18 Aug 2009 00:00:06 +0000 (00:00 +0000)]
daily update

14 years ago * symfile.c (reread_symbols): Call objfiles_changed *before*
uweigand [Mon, 17 Aug 2009 20:09:37 +0000 (20:09 +0000)]
* symfile.c (reread_symbols): Call objfiles_changed *before*
calling clear_symtab_users.

14 years ago2009-08-17 Michael Snyder <msnyder@vmware.com>
msnyder [Mon, 17 Aug 2009 18:23:45 +0000 (18:23 +0000)]
2009-08-17  Michael Snyder  <msnyder@vmware.com>

* amd64-tdep.c: Add a frame unwinder for function epilogues.
(amd64_in_function_epilogue_p): New function.
(amd64_epilogue_frame_sniffer): New function.
(amd64_epilogue_frame_cache): New function.
(amd64_epilogue_frame_this_id): New function.
(amd64_epilogue_frame_unwind): New struct frame_unwind.
(amd64_init_abi): Hook the new unwinder.

* amd64-linux-tdep.c (amd64_linux_init_abi): Set gdbarch to use
SVR4 method for skip_trampoline_code.

14 years ago Rename .eval -> .exec. Add new .eval.
devans [Mon, 17 Aug 2009 15:27:55 +0000 (15:27 +0000)]
Rename .eval -> .exec.  Add new .eval.
* pmacros.scm (-pmacro-built-exec): Renamed from -pmacro-builtin-eval.
(-pmacro-builtin-eval): New function.
(pmacros-init!): Add .exec.
* doc/pmacros.texi: Update, .exec -> .eval.  Document new .eval.
* testsuite/location-1.test: Update.
* testsuite/pmacros-1.test: Add test for .eval.

14 years ago* pipe.cc (fhandler_pipe::create_selectable): Add -pipe to default pipe names.
cgf [Mon, 17 Aug 2009 12:45:51 +0000 (12:45 +0000)]
* pipe.cc (fhandler_pipe::create_selectable): Add -pipe to default pipe names.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Use bool/true/false for
what is actually a boolean variable.

14 years agoAdd missed files.
ktietz [Mon, 17 Aug 2009 11:46:29 +0000 (11:46 +0000)]
Add missed files.

14 years ago2009-08-17 Kai Tietz <kai.tietz@onevision.com>
ktietz [Mon, 17 Aug 2009 11:45:20 +0000 (11:45 +0000)]
2009-08-17  Kai Tietz  <kai.tietz@onevision.com>

        * config/obj-coff-seh.c: New file.
        * config/obj-coff-seh.h: Likewise.
        * config/obj-coff.c (obj-coff-seh.c): Add include.
        (coff_pseudo_table): Add new .seh... commands.
        * config/obj-coff.h (obj_coff_seh_do_final): Add new
        function prototype.
        (obj_coff_generate_pdata): New obj-coff hook.
        * gas/write.c (size_seg): Avoid sizing of already sized
        sections.
        (write_object_file): Call conditional hook
        objc_coff_generate_pdata.
        * Makefile.am: Add dependencies for new files.
        * Makefile.in: Regenerated.

14 years ago2009-08-17 Pedro Alves <pedro@codesourcery.com>>
palves [Mon, 17 Aug 2009 11:16:11 +0000 (11:16 +0000)]
2009-08-17  Pedro Alves  <pedro@codesourcery.com>>

* objfiles.c (objfile_relocate): Relocate the entry point before
relocating the section offsets.  Flush the section map before
resetting breakpoints.

14 years ago * ld-elf/linkonce1.d: Accept "UNUSED" as part of the name of an
nickc [Mon, 17 Aug 2009 09:22:18 +0000 (09:22 +0000)]
    * ld-elf/linkonce1.d: Accept "UNUSED" as part of the name of an
        unused reloc.
        * ld-elf/linkonce2.d: Likewise.

14 years ago * binutils-all/strip-10.d: Accept "<OS specific>: 10" for the type
nickc [Mon, 17 Aug 2009 09:17:42 +0000 (09:17 +0000)]
    * binutils-all/strip-10.d: Accept "<OS specific>: 10" for the type
        of the UNIQUE symbol.

14 years ago * config/tc-microblaze.c: Include safe-ctype.h instad of ctype.h.
nickc [Mon, 17 Aug 2009 09:09:04 +0000 (09:09 +0000)]
    * config/tc-microblaze.c: Include safe-ctype.h instad of ctype.h.
        (parse_reg): Use safe-ctype.h macros.
        (parse_exp): Likewise.
        (md_assemble): Likewise.

14 years ago * readelf.c (is_32bit_abs_reloc): Treat R_PARISC_SECREL32 as a
nickc [Mon, 17 Aug 2009 08:34:37 +0000 (08:34 +0000)]
    * readelf.c (is_32bit_abs_reloc): Treat R_PARISC_SECREL32 as a
        32-bit absolute reloc for the purposes of processing debug
        sections.

14 years ago * config.sub, config.guess: Update from upstream sources.
bje [Mon, 17 Aug 2009 04:10:29 +0000 (04:10 +0000)]
* config.sub, config.guess: Update from upstream sources.

14 years agodaily update
amodra [Mon, 17 Aug 2009 00:00:08 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Mon, 17 Aug 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * doc/porting.texi: Remove support for Guile 1.4.
devans [Sun, 16 Aug 2009 17:46:46 +0000 (17:46 +0000)]
* doc/porting.texi: Remove support for Guile 1.4.

14 years ago * read.scm (current-reader-location): Return unspecified location
devans [Sun, 16 Aug 2009 17:44:22 +0000 (17:44 +0000)]
* read.scm (current-reader-location): Return unspecified location
if reader hasn't been initialized yet.

14 years ago * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
devans [Sun, 16 Aug 2009 17:32:35 +0000 (17:32 +0000)]
* opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
at least don't leak memory.

14 years ago * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
devans [Sun, 16 Aug 2009 17:32:21 +0000 (17:32 +0000)]
* opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
at least don't leak memory.

14 years agoSync config/ from GCC:
rwild [Sun, 16 Aug 2009 12:49:48 +0000 (12:49 +0000)]
Sync config/ from GCC:

--- config/ChangeLog
+++ config/ChangeLog
@@ -19,6 +19,10 @@
  * tls.m4 (GCC_CHECK_TLS): Also test TLS in a shared library when
  cross-compiling.

+2009-06-25  Olivier Hainque  <hainque@adacore.com>
+
+ * config/mh-ppc-aix (BOOT_ADAFLAGS): Remove -mminimal-toc.
+
 2009-05-26  Rafael Avila de Espindola  <espindola@google.com>

  * plugins.m4: New.
@@ -39,6 +43,27 @@
  "# no Tcl configs found".
  (SC_LOAD_TKCONFIG): Similarily for TK_BIN_DIR.

+2009-04-09  Jakub Jelinek  <jakub@redhat.com>
+
+ * lead-dot.m4: Change copyright header to refer to version
+ 3 of the GNU General Public License and to point readers at the
+ COPYING3 file and the FSF's license web page.
+ * warnings.m4: Likewise.
+
+2009-02-11  Kai Tietz  <kai.tietz@onevision.com>
+
+ * mh-cygwin (LDFLAGS): Add linker option to increase stack limit
+ up to 8MB.
+
+2009-01-23  Jie Zhang  <jie.zhang@analog.com>
+
+ * tls.m4 (GCC_CHECK_EMUTLS): Define.
+
+2008-12-21  Andrew Pinski  <pinskia@gmail.com>
+
+ PR target/38300
+ * unwind_ipinfo.m4: Darwin before 9 does not have _Unwind_GetIPInfo.
+
 2008-11-21  Kai Tietz  <kai.tietz@onevision.com>

  Fix PR/25502

14 years agoSync include/ChangeLog-9103 from GCC to fix invalid UTF-8.
rwild [Sun, 16 Aug 2009 12:06:21 +0000 (12:06 +0000)]
Sync include/ChangeLog-9103 from GCC to fix invalid UTF-8.

14 years agodaily update
amodra [Sun, 16 Aug 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Sun, 16 Aug 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
ironhead [Sat, 15 Aug 2009 02:50:18 +0000 (02:50 +0000)]
2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

        * include/_mingw.h: Increment version to 3.16.

14 years ago*** empty log message ***
gdbadmin [Sat, 15 Aug 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Sat, 15 Aug 2009 00:00:08 +0000 (00:00 +0000)]
daily update

14 years ago * symfile.c (find_separate_debug_file): Remove double free of
devans [Fri, 14 Aug 2009 23:35:32 +0000 (23:35 +0000)]
* symfile.c (find_separate_debug_file): Remove double free of
canon_name.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length
corinna [Fri, 14 Aug 2009 18:27:18 +0000 (18:27 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix length
check for ".." dir.

14 years ago2009-08-14 Pedro Alves <pedro@codesourcery.com>
palves [Fri, 14 Aug 2009 14:28:12 +0000 (14:28 +0000)]
2009-08-14  Pedro Alves  <pedro@codesourcery.com>

gdb/
* top.c (any_thread_of): Delete.
(kill_or_detach): Use any_thread_of_process.
* top.c (print_inferior_quit_action): New.
(quit_confirm): Rewrite to print info about all inferiors.
* target.c (dispose_inferior): New.
(target_preopen): Use it.

2009-08-14  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* gdb.threads/killed.exp, gdb.threads/manythreads.exp,
gdb.threads/staticthreads.exp: Adjust to "quit" output changes.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir): Change comment
corinna [Fri, 14 Aug 2009 14:10:31 +0000 (14:10 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir): Change comment
to be fair.

14 years ago * fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Remove
corinna [Fri, 14 Aug 2009 13:39:07 +0000 (13:39 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Remove
ill-advised attempt to optimize "." and ".." handling by checking for
specific position in directory listing.  Explain why.
(fhandler_disk_file.cc (fhandler_disk_file::readdir): Ditto.
Special-case opening file on NFS to fetch inode number and add longish
comment to explain why.

14 years ago * gold.h (FUNCTION_NAME): Define.
ian [Fri, 14 Aug 2009 09:35:38 +0000 (09:35 +0000)]
* gold.h (FUNCTION_NAME): Define.
(gold_unreachable): Use FUNCTION_NAME.

14 years ago * (fhandler_socket::getsockname): Fix length returned for unbound
corinna [Fri, 14 Aug 2009 06:58:44 +0000 (06:58 +0000)]
* (fhandler_socket::getsockname): Fix length returned for unbound
AF_LOCAL sockets.
(fhandler_socket::getpeername): Ditto.
* net.cc (socketpair): Don't set sun_path and peer_sun_path to
make sure getsockname and getpeername return the correct values
for AF_LOCAL sockets.

14 years ago* configure.in: Check for sys/select.h, termios.h, sys/socket.h,
dj [Fri, 14 Aug 2009 04:24:30 +0000 (04:24 +0000)]
* configure.in: Check for sys/select.h, termios.h, sys/socket.h,
netinet/in.h, and netinet/tcp.h.
* configure: Regenerate.
* config.in: Add those headers.
* main.c: Check for them.
(setup_tcp_console): Disable if no networking.
(main): Note missing networking or termios.
* mem.c: Check for those headers.
(stdin_ready): Disable if no termios.
(m32c_sim_restore_console): Disable if no termios.
(mem_get_byte): Disable console input if no termios.

14 years ago* elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
dj [Fri, 14 Aug 2009 03:44:21 +0000 (03:44 +0000)]
* elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
if needed.

14 years ago * ui-file.h (ui_file_xstrdup): Mention that the length argument
palves [Fri, 14 Aug 2009 00:32:31 +0000 (00:32 +0000)]
* ui-file.h (ui_file_xstrdup): Mention that the length argument
may be NULL.
* ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
NULL.
* aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
parameter to ui_file_xstrdup.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* infrun.c (print_target_wait_results): Ditto.
* language.c (add_language): Ditto.
* linespec.c (cplusplus_error): Ditto.
* remote.c (escape_buffer): Ditto.
* typeprint.c (type_to_string): Ditto.
* utils.c (error_stream): Ditto.
* varobj.c (value_get_print_value): Ditto.
* xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
`length' local.  Pass it to ui_file_xstrdup, and avoid an strlen
call.
* gdbarch.sh (verify_gdbarch): Ditto.
* gdbarch.c: Regenerate.
* cli/cli-setshow.c (do_setshow_command): Pass NULL as length
parameter to ui_file_xstrdup.
* python/python-frame.c (frapy_str): Ditto.
* python/python-type.c (typy_str): Use the length local instead of
calling strlen.
* python/python-value.c (valpy_str): Pass NULL as length parameter
to ui_file_xstrdup.

14 years agodaily update
amodra [Fri, 14 Aug 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago*** empty log message ***
gdbadmin [Fri, 14 Aug 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
devans [Thu, 13 Aug 2009 22:35:29 +0000 (22:35 +0000)]
* utils.c (gnu_debuglink_crc32): Store crc32_table as unsigned int
instead of unsigned long.

14 years ago * dev.scm: Document tracing options.
devans [Thu, 13 Aug 2009 19:51:13 +0000 (19:51 +0000)]
* dev.scm: Document tracing options.

14 years ago * pmacros.scm (pmacro-dump): New function.
devans [Thu, 13 Aug 2009 19:36:52 +0000 (19:36 +0000)]
* pmacros.scm (pmacro-dump): New function.
(check-pmacro): Tweak debugging output.
* doc/cgenint.texi: Mention pmacro-dump, pmacro-debug.
* doc/pmacros.texi (.splice): Use pmacro-dump instead of pmacro-expand.

14 years agotweak
devans [Thu, 13 Aug 2009 19:30:32 +0000 (19:30 +0000)]
tweak

14 years agoadd example usage of -t tracing option
devans [Thu, 13 Aug 2009 19:28:09 +0000 (19:28 +0000)]
add example usage of -t tracing option

14 years agoNew section for syntactic forms.
devans [Thu, 13 Aug 2009 19:10:01 +0000 (19:10 +0000)]
New section for syntactic forms.

14 years ago * varobj.c (update_dynamic_varobj_children): Don't use
tromey [Thu, 13 Aug 2009 18:39:19 +0000 (18:39 +0000)]
* varobj.c (update_dynamic_varobj_children): Don't use
value_copy.
* value.h: (preserve_one_value): Declare.
(value_prepend_to_list, value_remove_from_list): Remove.
* value.c (preserve_one_value): No longer static.
(preserve_values): Call preserve_python_values.
(value_prepend_to_list): Remove.
(value_remove_from_list): Remove.
* python/python.h (values_in_python): Don't declare.
(preserve_python_values): Declare.
* python/python-value.c (values_in_python): Change type.  Move
lower.  Now static.
(struct value_object): Add struct tag.
<next, prev>: New fields.
(valpy_dealloc): Update.
(note_value): New function.
(valpy_new): Use value_incref, note_value.
(preserve_python_values): New function.
(valpy_positive): Don't use value_copy.
(value_to_value_object): Use value_incref, note_value.
(convert_value_from_python): Update comment.

14 years ago * remote.c (remote_pid_to_str): If printing a process id and we
palves [Thu, 13 Aug 2009 18:27:56 +0000 (18:27 +0000)]
* remote.c (remote_pid_to_str): If printing a process id and we
don't know what the remote pid could be, output "Remote target";
otherwise, use normal_pid_to_str.

14 years ago Add .let* pmacro builtin.
devans [Thu, 13 Aug 2009 17:57:51 +0000 (17:57 +0000)]
Add .let* pmacro builtin.
* pmacros.scm (-pmacro-builtin-let*): New function.
(pmacros-init!): Add .let*.
* doc/pmacros.texi: Document .let*.
* testsuite/pmacros-1.test: Test .let*.

14 years ago * language.h (longest_raw_hex_string): Remove unused declaration.
tromey [Thu, 13 Aug 2009 17:06:20 +0000 (17:06 +0000)]
* language.h (longest_raw_hex_string): Remove unused declaration.

14 years agomerge from gcc
dj [Thu, 13 Aug 2009 17:03:55 +0000 (17:03 +0000)]
merge from gcc

14 years agosome minor tweaks
devans [Thu, 13 Aug 2009 16:23:17 +0000 (16:23 +0000)]
some minor tweaks

14 years ago * fhandler_socket.cc (fhandler_socket::accept): Use sizeof rather
corinna [Thu, 13 Aug 2009 15:44:28 +0000 (15:44 +0000)]
* fhandler_socket.cc (fhandler_socket::accept): Use sizeof rather
then constant size.  Truncate returned data, but return full address
length as per POSIX.
(fhandler_socket::getsockname): Truncate returned data, but return full
address length as per POSIX.
(fhandler_socket::getpeername): Ditto.

14 years ago2009-08-13 Pedro Alves <pedro@codesourcery.com>
palves [Thu, 13 Aug 2009 14:58:25 +0000 (14:58 +0000)]
2009-08-13  Pedro Alves  <pedro@codesourcery.com>

PR gdb/8869:

* language.c (language, type, range, case_sensitive): Make const.
(show_language_command): Don't call deprecated_show_value_hack.
Special case "auto".
(set_language_command): An unrecognized language is now an
internal error instead of a user error.  Don't call set_lang_str.
(show_type_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_type_command): An unrecognized type is now an internal error
instead of a user error.  Output type check mismatch with language
here.  Don't call set_type_str.
(show_range_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_range_command): An unrecognized range check is now an
internal error instead of a warning.  Output range check mismatch
with language here.  Don't call set_range_str.
(show_case_command): Don't call deprecated_show_value_hack.
Special case "auto".  Use warning.
(set_case_command): Don't call set_case_str.  An unrecognized case
check is now an internal error instead of a warning.  Output range
check mismatch with language here.  Don't call set_case_str.
(set_type_range_case): Don't call set_type_str, set_range_str or
set_case_str here.
(set_lang_str, set_type_str, set_range_str, set_case_str): Delete.
(add_language): Install or reinstall the "set language" command
here, and make it an enum command.  Build the enumeration and the
help string from the current list of known languages.
(_initialize_language): Don't install "set language" here.  Make
"set check type", "set check range" and "set case-sensitive" enum
commands.  Register the "auto" "local" and "unknown" languages in
that order.

2009-08-13  Pedro Alves  <pedro@codesourcery.com>

* gdb.base/default.exp: Adjust "set language test": it's now an
enum command.  Larger help string moved to "help set language".
* gdb.base/help.exp: Adjust "help set language" expected output,
now lists all known languages.

14 years ago Revert 2009-08-07 changes for PR gdb/8869:
palves [Thu, 13 Aug 2009 14:56:18 +0000 (14:56 +0000)]
Revert 2009-08-07 changes for PR gdb/8869:

* language.c (set_language_command): Strip whitespace.
(set_type_command): Likewise.
(set_range_command): Likewise.

* language.c (language_completer): New function.
(range_or_type_completer): New function.
(case_completer): New function.
(_initialize_language): Set completers.
* cli/cli-decode.c (add_setshow_string_cmd): Return the "set"
command.
(add_setshow_string_noescape_cmd): Likewise.
(add_setshow_integer_cmd): Likewise.
(add_setshow_uinteger_cmd): Likewise.
(add_setshow_zinteger_cmd): Likewise.
(add_setshow_zuinteger_cmd): Likewise.
* command.h (add_setshow_string_cmd,
add_setshow_string_noescape_cmd, add_setshow_uinteger_cmd,
add_setshow_zinteger_cmd, add_setshow_zuinteger_cmd): Update.

14 years ago * fhandler.h (class fhandler_socket): Add peer_sun_path member.
corinna [Thu, 13 Aug 2009 10:26:42 +0000 (10:26 +0000)]
* fhandler.h (class fhandler_socket): Add peer_sun_path member.
(fhandler_socket::set_peer_sun_path): New method.
(fhandler_socket::get_peer_sun_path): New method.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize
peer_sun_path to NULL.
(fhandler_socket::~fhandler_socket): Free peer_sun_path if necessary.
(fhandler_socket::dup): Duplicate peer_sun_path.
(fhandler_socket::accept): Ditto.  Return fake unbound peer content
and len in case of AF_LOCAL sockets.
(fhandler_socket::getsockname): Always use local sockaddr_storage to
store socket address and copy over to incoming address.  Handle every
namelen correctly per POSIX.
(fhandler_socket::getpeername): Ditto.  Add code path to return
correct value for AF_LOCAL sockets.
(fhandler_socket::set_peer_sun_path): New method.
* net.cc (socketpair): Set peer_sun_path to empty string, just like
sun_path.

14 years agoChangeLog: Fix typo in "typo".
corinna [Thu, 13 Aug 2009 07:41:35 +0000 (07:41 +0000)]
ChangeLog: Fix typo in "typo".

14 years ago * cxx.cc (default_cygwin_cxx_malloc): Enhance commenting.
corinna [Thu, 13 Aug 2009 07:35:48 +0000 (07:35 +0000)]
* cxx.cc (default_cygwin_cxx_malloc): Enhance commenting.
* dll_init.cc (dll_dllcrt0_1): Likewise.
* dlfcn.cc (dlopen): Prevent dlopen()'d DLL from installing any
cxx malloc overrides.
* include/cygwin/cygwin_dll.h (__dynamically_loaded): New variable.
* lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Check it and only
install cxx malloc overrides when statically loaded.  Extend comments.

14 years ago * libc/stdio/mktemp.c (mkdtemp): Fix type in function name.
corinna [Thu, 13 Aug 2009 07:19:33 +0000 (07:19 +0000)]
* libc/stdio/mktemp.c (mkdtemp): Fix type in function name.

14 years ago2009-08-12 Sriraman Tallam <tmsriram@google.com>
tmsriram [Thu, 13 Aug 2009 00:03:43 +0000 (00:03 +0000)]
2009-08-12  Sriraman Tallam  <tmsriram@google.com>

* icf.cc (Icf::find_identical_sections): Issue a warning when a
symbol in the --keep-unique list is not found.

14 years ago*** empty log message ***
gdbadmin [Thu, 13 Aug 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Thu, 13 Aug 2009 00:00:05 +0000 (00:00 +0000)]
daily update

14 years ago2009-08-12 Michael Snyder <msnyder@vmware.com>
msnyder [Wed, 12 Aug 2009 23:00:21 +0000 (23:00 +0000)]
2009-08-12  Michael Snyder  <msnyder@vmware.com>

* remote.c (remote_add_inferior): Remove unused local.
(remote_add_thread): Ditto.
(read_ptid): Ditto.
(remote_current_thread): Ditto.
(remote_stop_ns): Ditto.
(remote_parse_stop_reply): Ditto.
(remote_get_pending_stop_replies): Ditto.
(remote_wait_ns): Ditto.
(remote_wait_as): Ditto.
(send_g_packet): Ditto.
(remote_fetch_registers): Ditto.
(store_register_using_P): Ditto.
(remote_store_registers): Ditto.
(remote_remove_breakpoint): Ditto.
(remote_write_qxfer): Ditto.
(remote_read_qxfer): Ditto.

14 years ago Clean up cpu file parsing, pass context consistently instead of the
devans [Wed, 12 Aug 2009 22:33:36 +0000 (22:33 +0000)]
Clean up cpu file parsing, pass context consistently instead of the
old "errtxt" argument.
NOTE: ACU == "All Callers Updated".
* attr.scm (-parse-simple-attribute): Renamed from
parse-simple-attribute, ACU.
(-attr-parse): Change errtxt argument to context, ACU.
(-attr-read): Ditto.
(atlist-parse): Ditto.  Put context arg first.
(attr-parse): Use parse-error instead of context-error.
* enum.scm (parse-enum-vals): Change errtxt argument to context, ACU.
(-enum-parse-prefix, -enum-parse, -enum-read): Ditto.
* hardware.scm (-keyword-parse): Renamed from keyword-parse.
`context' arg is now a <context> object.  ACU.
(-keyword-read): `context' arg is now a <context> object.  ACU.
(-hw-parse-indices): Change errtxt argument to context, ACU.
(-hw-parse-values, -hw-parse-handlers): Ditto.
(-hw-parse-getter, -hw-parse-setter, -hw-parse, -hw-read): Ditto.
(-hw-validate-layout, -hw-create-getter-from-layout,
-hw-create-setter-from-layout): Ditto.
(<hw-register>:parse!, <hw-pc>:parse!): Ditto.
(<hw-memory>:parse!, <hw-immediate>:parse!): Ditto.
(<hw-address>:parse!): Ditto.
* ifield.scm (-ifield-parse, ifield-read): Ditto.
(-ifld-parse-follows, -ifld-parse-encode-decode): Ditto.
(-ifld-parse-encode, -ifld-parse-decode): Ditto.
(-multi-ifield-parse, -multi-ifield-read): Ditto.
* insn.scm (-insn-parse, -insn-read): Ditto.
(parse-syntax): Ditto.  Put context arg first.
(-parse-insn-format-symbol): Change errtxt argument to context, ACU.
(-parse-insn-format-ifield-spec, -parse-insn-format-list): Ditto.
(-parse-insn-format): Ditto.
* mach.scm (-arch-parse-alignment, -arch-parse-machs): Ditto.
(-arch-parse-isas): Ditto.
(-isa-read): Add context arg, ACU.
(-cpu-parse, -cpu-read, -mach-read): Ditto.
* minsn.scm (-minsn-parse-expansion): Change errtxt argument to
context, ACU.
(-minsn-parse, -minsn-read, -minsn-compute-iflds): Ditto.
(minsn-make-alias): Ditto.
* mode.scm (-mode-parse): Ditto.
(parse-mode-name): Ditto.  Put context arg first.
* model.scm (-prefetch-parse, -retire-parse, -pipeline-parse): Change
errtxt argument to context, ACU.
(-unit-parse, -model-parse, -model-read): Ditto.
* operand.scm (-operand-parse-getter): Use parse-error instead of
context-error.
(-operand-parse-setter): Ditto.
(-operand-parse): Change errtxt argument to context, ACU.
(-operand-read, -derived-operand-parse, -derived-operand-read): Ditto.
(-anyof-operand-parse, -anyof-operand-read): Ditto.
* read.scm (reader-error): Delete.  Use parse-error instead.
(parse-error): Change errtxt argument to context, ACU.  Split args
argument into expr and maybe-help-text.
(-reader-process-expanded-1!): Reorganize.
* rtl.scm (-subr-read): Change errtxt argument to context, ACU.
* types.scm (parse-type): Ditto.
* utils-cgen.scm (single-location->simple-string): New function.
(<context>): Replace members file,lineno with location.
(make-prefix-context): Renamed from context-make-prefix, ACU.
(make-current-context): New function.
(context-append, context-append-name): New functions.
(context-make-reader): Delete.
(parse-name): Change errtxt argument to context, ACU.
Put context arg first.
(parse-comment): Ditto.
(parse-number): Change errtxt argument to context, ACU.
(arg-list-validate-name, arg-list-check-no-args,
arg-list-symbol-arg): Ditto.

* read.scm (-cmd-if): Don't assume test is a list.

* html.scm (get-insn-properties): Delete errtxt, unused.

14 years ago * faq-using.xml (faq.using.bloda): Typofix MacAfee -> McAfee.
davek [Wed, 12 Aug 2009 22:03:18 +0000 (22:03 +0000)]
* faq-using.xml (faq.using.bloda): Typofix MacAfee -> McAfee.

14 years agoSriraman Tallam <tmsriram@google.com>
tmsriram [Wed, 12 Aug 2009 19:03:16 +0000 (19:03 +0000)]
Sriraman Tallam  <tmsriram@google.com>

* icf.cc (Icf::find_identical_sections): Unfold symbols that have
been maked as --keep-unique.
(Icf::unfold_section): New function.
* icf.h (Icf::unfold_section): New function.
* options.h (General_options::keep_unique): New option.
* testsuite/Makefile.am: Add commands to build icf_keep_unique_test.
* testsuite/Makefile.in: Regenerate.
* testsuite/icf_keep_unique_test.sh: New file.
* testsuite/icf_keep_unique_test.cc: New file.

14 years ago PR 10471
ccoutant [Wed, 12 Aug 2009 18:30:39 +0000 (18:30 +0000)]
PR 10471
* resolve.cc (Symbol_table::resolve): Check for references from
dynamic objects to hidden and internal symbols.
* testsuite/Makefile.am (hidden_test.sh): New test.
* testsuite/Makefile.in: Regenerate.
* testsuite/hidden_test.sh: New script.
* testsuite/hidden_test_1.c: New test source.
* testsuite/hidden_test_main.c: New test source.

14 years ago2009=08-12 Jeff Johnston <jjohnstn@redhat.com>
jjohnstn [Wed, 12 Aug 2009 18:22:37 +0000 (18:22 +0000)]
2009=08-12  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/mktemp.c (_gettemp): Do not call _mkdir_r unless
        HAVE_MKDIR is defined.

2009-08-12  Hans-Peter Nilsson  <hp@axis.com>

        * libc/include/reent.h: Add prototype and definition of _mkdir_r.
        * libc/reent/Makefile.am (GENERAL_SOURCES): Add mkdirr.c.
        (CHEWOUT_FILES): Add mkdirr.def.
        * libc/reent/Makefile.in: Regenerate.
        * libc/reent/mkdirr.c: New file.

14 years ago * po/fi.po: Updated Finnish translation.
nickc [Wed, 12 Aug 2009 16:13:17 +0000 (16:13 +0000)]
    * po/fi.po: Updated Finnish translation.

14 years ago * fhandler_socket.cc (fhandler_socket::accept): Always use local
corinna [Wed, 12 Aug 2009 14:48:15 +0000 (14:48 +0000)]
* fhandler_socket.cc (fhandler_socket::accept): Always use local
sockaddr_storage to store peer address and copy over to incoming
peer address if available.  Truncate data as necessary according
to POSIX.

14 years ago2009-08-12 Tristan Gingold <gingold@adacore.com>
gingold [Wed, 12 Aug 2009 12:40:55 +0000 (12:40 +0000)]
2009-08-12  Tristan Gingold  <gingold@adacore.com>

* ld.h (fat_user_section_struct): Add map_symbol_def_count field.
* ldlang.c (hash_entry_addr_cmp): New function.
(print_all_symbols): Sort the symbols by address before printing them.

14 years ago* config/tc-mep.c (md_estimate_size_before_relax): Handle weak
dj [Wed, 12 Aug 2009 03:40:47 +0000 (03:40 +0000)]
* config/tc-mep.c (md_estimate_size_before_relax): Handle weak
symbols correctly.
(md_convert_frag): Likewise.
(md_pcrel_from_section): Likewise.
(mep_force_relocation): Likewise.

14 years ago*** empty log message ***
gdbadmin [Wed, 12 Aug 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
amodra [Wed, 12 Aug 2009 00:00:09 +0000 (00:00 +0000)]
daily update

14 years ago * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make a cleanup.
tromey [Tue, 11 Aug 2009 20:36:48 +0000 (20:36 +0000)]
* dwarf2loc.c (dwarf2_evaluate_loc_desc): Make a cleanup.
(dwarf2_loc_desc_needs_frame): Likewise.
* dwarf2expr.h (make_cleanup_free_dwarf_expr_context): Declare.
* dwarf2expr.c (free_dwarf_expr_context_cleanup): New function.
(make_cleanup_free_dwarf_expr_context): Likewise.
* dwarf2-frame.c (execute_stack_op): Make a cleanup.

14 years ago * gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing of
froydnj [Tue, 11 Aug 2009 19:21:35 +0000 (19:21 +0000)]
* gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing of
all frame arguments.
* gdb.arch/altivec-regs.exp: Likewise.

14 years ago From Jie Zhang <jie.zhang@analog.com>
bernds [Tue, 11 Aug 2009 18:44:11 +0000 (18:44 +0000)]
From Jie Zhang  <jie.zhang@analog.com>
* config/tc-bfin.h (bfin_anomaly_checks): Declare.
(AC_05000074): Define.
(ENABLE_AC_05000074): Define.
* config/tc-bfin.c (enum bfin_cpu_type): New.
(bfin_cpu_t): Typedef.
(bfin_cpu_type): Define.
(bfin_si_revision): Define.
(bfin_anomaly_checks): Define.
(struct bfin_cpu): New.
(bfin_cpus[]): New. (struct bfin_cpu_isa): Define.
(bfin_isa): New global variable.
(OPTION_MCPU): Define.
(md_longopts[]): Add -mcpu option.
(md_parse_option): Deal with -mcpu option and initialize
bfin_anomaly_checks.
* doc/c-bfin.texi: Rename BFIN to Blackfin throughout.  Document
-mcpu option.
* config/bfin-parse.y (gen_multi_instr_1): Check anomaly
05000074.

14 years agogas/
bernds [Tue, 11 Aug 2009 18:29:41 +0000 (18:29 +0000)]
gas/
* config/bfin-parse.y (gen_multi_instr_1): New function.
(asm): Use it instead of bfin_gen_multi_instr.
(error): Add a format string when calling as_bad.
* config/bfin-defs.h (insn_regmask): Declare.
* config/tc-bfin.c (DREG_MASK, DREGH_MASK, DREGL_MASK, IREG_MASK): New
macros.
(decode_ProgCtrl_0, decode_LDSTpmod_0, decode_dagMODim_0,
decode_dagMODik_0, decode_dspLDST_0, decode_LDST_0, decode_LDSTiiFP_0,
decode_LDSTii_0, decode_dsp32mac_0, decode_dsp32mult_0,
decode_dsp32alu_0, decode_dsp32shift_0, decode_dsp32shitimm_0,
insn_regmask): New functions.
gas/testsuite/
* gas/bfin/parallel.s: Add more test cases.
* gas/bfin/parallel.d: Update accordingly.
* gas/bfin/resource_conflict.l: New test.
* gas/bfin/resource_conflict.s: New test.
* gas/bfin/bfin.exp: Add resource_conflict.

14 years agogas/
bernds [Tue, 11 Aug 2009 18:28:29 +0000 (18:28 +0000)]
gas/
* config/bfin-parse.y (gen_multi_instr_1): New function.
(asm): Use it instead of bfin_gen_multi_instr.
(error): Add a format string when calling as_bad.
* config/bfin-defs.h (insn_regmask): Declare.
* config/tc-bfin.c (DREG_MASK, DREGH_MASK, DREGL_MASK, IREG_MASK): New
macros.
(decode_ProgCtrl_0, decode_LDSTpmod_0, decode_dagMODim_0,
decode_dagMODik_0, decode_dspLDST_0, decode_LDST_0, decode_LDSTiiFP_0,
decode_LDSTii_0, decode_dsp32mac_0, decode_dsp32mult_0,
decode_dsp32alu_0, decode_dsp32shift_0, decode_dsp32shitimm_0,
insn_regmask): New functions.
gas/testsuite/
* gas/bfin/parallel.s: Add more test cases.
* gas/bfin/parallel.d: Update accordingly.
* gas/bfin/resource_conflict.l: New test.
* gas/bfin/resource_conflict.s: New test.
* gas/bfin/bfin.exp: Add resource_conflict.

14 years agofix typo in gas error output (this is an assembler, not a compiler)
vapier [Tue, 11 Aug 2009 17:16:37 +0000 (17:16 +0000)]
fix typo in gas error output (this is an assembler, not a compiler)

14 years ago2009-08-11 Doug Kwan <dougkwan@google.com>
dougkwan [Tue, 11 Aug 2009 17:09:14 +0000 (17:09 +0000)]
2009-08-11  Doug Kwan  <dougkwan@google.com>

* arm.cc: Update comments.
(Target_arm::do_finalize_sections): Add a special PT_ARM_EXIDX
segment to locate the .ARM.exidx section if present.