public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-jankratochvil-watchpoint3: Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3
Date: Fri, 20 Jan 2012 11:07:00 -0000	[thread overview]
Message-ID: <20120120110731.4139.qmail@sourceware.org> (raw)

The branch, archer-jankratochvil-watchpoint3 has been updated
       via  c26d0d9f865ae8f84e3ff24551718ec3573d1397 (commit)
       via  00260922fde4f889be25be14c0db82f18a9015a6 (commit)
       via  68cbc25cb17e9b432b4b0a472fa9ee2c75b26178 (commit)
       via  a7e3ac7b897f3cdcaca71d80aff9f0754146b3a9 (commit)
       via  84d62c5ff2a207fd5f36ded60e82f2bbfa1a9602 (commit)
       via  8deba5c6ed4af7b2e1d209bd85a061dece34198a (commit)
       via  f076ba40346bb343e0f99cdf3217d10c01a7efc7 (commit)
       via  a863c2dd217a0e800eed8f4cbc860a5951a8581f (commit)
       via  9c64052db7b6e426f361c8bcef0d3cba745ad927 (commit)
       via  cba35773df17a05ddfffdc7432c5335b16bd329f (commit)
       via  b1805119882385f115008912122d043431aa2019 (commit)
       via  e275619a2e8d64964b675b0e85bb7c69e2a7dad0 (commit)
       via  f8cdeea569d34d96c29b22f12dcc0c82bef1bd5a (commit)
       via  a230ffaf9414998a3ea403773b26d3abcf9c6507 (commit)
       via  f3a8d239696d4bb787e96e83695bed9099d89fed (commit)
       via  e9d6c476e825d7d8156ff4d3c267f85d3f068413 (commit)
      from  9ffdb81bc216f908184b56c00ad44ef0246c2121 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit c26d0d9f865ae8f84e3ff24551718ec3573d1397
Merge: 9ffdb81 0026092
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Jan 20 12:07:18 2012 +0100

    Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3

commit 00260922fde4f889be25be14c0db82f18a9015a6
Merge: 04317ef 68cbc25
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Jan 20 12:07:14 2012 +0100

    Merge branch 'f-cleanup-fork' into f-cleanup-fork-multifix

commit 68cbc25cb17e9b432b4b0a472fa9ee2c75b26178
Merge: 84d62c5 a7e3ac7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Jan 20 12:07:13 2012 +0100

    Merge branch 'f-cleanup' into f-cleanup-fork

commit a7e3ac7b897f3cdcaca71d80aff9f0754146b3a9
Merge: 6d6f5ba 8deba5c
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Jan 20 12:07:13 2012 +0100

    Merge branch 'f' into f-cleanup

commit 84d62c5ff2a207fd5f36ded60e82f2bbfa1a9602
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Jan 20 12:06:41 2012 +0100

    remove cache reset

commit 8deba5c6ed4af7b2e1d209bd85a061dece34198a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:59:14 2012 +0000

    	* gdbarch.sh (find_memory_regions): New callback.
    	* gdbarch.c, gdbarch.h: Regenerate.
    
    	* gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
    	callback before falling back to target method.
    
    	* linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
    	(linux_target_install_ops): No longer install it.
    
    	* linux-tdep.c (linux_find_memory_regions): New function.
    	(linux_init_abi): Install it.

commit f076ba40346bb343e0f99cdf3217d10c01a7efc7
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:56:55 2012 +0000

    	* gdbarch.sh (make_corefile_notes): New architecture callback.
    	* gdbarch.c: Regenerate.
    	* gdbarch.h: Likewise.
    
    	* gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
    	before target_make_corefile_notes.  If NULL is returned, the
    	target does not support core file generation.
    
    	* linux-nat.c: Include "linux-tdep.h".
    	(find_signalled_thread, find_stop_signal): Remove.
    	(linux_nat_do_thread_registers): Likewise.
    	(struct linux_nat_corefile_thread_data): Likewise.
    	(linux_nat_corefile_thread_callback): Likewise.
    	(iterate_over_spus): Likewise.
    	(struct linux_spu_corefile_data): Likewise.
    	(linux_spu_corefile_callback): Likewise.
    	(linux_spu_make_corefile_notes): Likewise.
    	(linux_nat_collect_thread_registers): New function.
    	(linux_nat_make_corefile_notes): Replace contents by call to
    	linux_make_corefile_notes passing linux_nat_collect_thread_registers
    	as native-only callback.
    
    	* linux-tdep.h: Include "bfd.h".
    	(struct regcache): Add forward declaration.
    	(linux_collect_thread_registers_ftype): New typedef.
    	(linux_make_corefile_notes): Add prototype.
    	* linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
    	"regset.h", and "elf-bfd.h".
    	(find_signalled_thread, find_stop_signal): New functions.
    	(linux_spu_make_corefile_notes): Likewise.
    	(linux_collect_thread_registers): Likewise.
    	(struct linux_corefile_thread_data): New data structure.
    	(linux_corefile_thread_callback): New funcion.
    	(linux_make_corefile_notes): Likewise.
    	(linux_make_corefile_notes_1): Likewise.
    	(linux_init_abi): Install it.

commit a863c2dd217a0e800eed8f4cbc860a5951a8581f
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:52:43 2012 +0000

    	* elf.c (elfcore_write_prpsinfo): Provide unconditionally.
    	Return NULL if core file generation is unsupported.
    	(elfcore_write_prstatus): Likewise.
    	* elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
    	(elf_backend_write_core_note): Define.

commit 9c64052db7b6e426f361c8bcef0d3cba745ad927
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:49:57 2012 +0000

    	* gdbarch.sh (info_proc): New callback.
    	* gdbarch.c, gdbarch.h: Regenerate.
    
    	* infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
    	before falling back to the target info_proc callback.
    
    	* linux-nat.c: Do not include "cli/cli-utils.h".
    	(linux_nat_info_proc): Remove.
    	(linux_target_install_ops): No longer install it.
    
    	* linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
    	(read_mapping): New function.
    	(linux_info_proc): Likewise.
    	(linux_init_abi): Install it.

commit cba35773df17a05ddfffdc7432c5335b16bd329f
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:49:01 2012 +0000

    ChangeLog:
    
    	* defs.h (enum info_proc_what): Moved here from linux-nat.c
    	* infcmd.c: (info_proc_cmd_1): New function.
    	(info_proc_cmd): New function, moved here from equivalent routine
    	orignally in linux-nat.c.
    	(info_proc_cmd_mappings): Likewise.
    	(info_proc_cmd_stat): Likewise.
    	(info_proc_cmd_status): Likewise.
    	(info_proc_cmd_cwd): Likewise.
    	(info_proc_cmd_cmdline): Likewise.
    	(info_proc_cmd_exe): Likewise.
    	(info_proc_cmd_all): Likewise.
    	(_initialize_infcmd): Install "info proc" command and subcommands.
    
    	* target.h (struct target_ops): Add to_info_proc.
    	(target_info_proc): Add prototype.
    	* target.c (target_info_proc): New function.
    
    	* procfs.c (procfs_info_proc): Add prototype.
    	(info_proc_cmd): Rename into ...
    	(procfs_info_proc): ... this.  Update argument types as appropriate
    	for a to_info_proc implementation.  Handle "what" argument.
    	(procfs_target): Install procfs_info_proc.
    	(_initialize_procfs): No longer install "info proc" command.
    
    	* linux-nat.c: (enum info_proc_what): Remove.
    	(linux_nat_info_proc_cmd_1): Rename into ...
    	(linux_nat_info_proc): ... this.  Update argument types as appropriate
    	for a to_info_proc implementation.
    	(linux_nat_info_proc_cmd): Remove.
    	(linux_nat_info_proc_cmd_mappings): Likewise.
    	(linux_nat_info_proc_cmd_stat): Likewise.
    	(linux_nat_info_proc_cmd_status): Likewise.
    	(linux_nat_info_proc_cmd_cwd): Likewise.
    	(linux_nat_info_proc_cmd_cmdline): Likewise.
    	(linux_nat_info_proc_cmd_exe): Likewise.
    	(linux_nat_info_proc_cmd_all): Likewise.
    	(linux_target_install_ops): Install linux_nat_info_proc.
    	(_initialize_linux_nat): No longer install "info proc" command
    	and subcommands.
    
    testsuite/ChangeLog:
    
    	* gdb.base/info-proc.exp: Also run on remote targets.  Main
    	"info proc" command is now always present; whether target supports
    	actual info proc operation is detected when attempting to issue
    	the command.

commit b1805119882385f115008912122d043431aa2019
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:47:32 2012 +0000

    ChangeLog:
    
    	* configure.ac [AC_CHECK_FUNCS]: Check for readlink.
    	* config.in, configure: Regenerate.
    
    	* target.h (struct target_ops): Add to_fileio_readlink.
    	(target_fileio_readlink): Add prototype.
    	* target.c (target_fileio_readlink): New function.
    
    	* inf-child.c: Conditionally include <sys/param.h>.
    	(inf_child_fileio_readlink): New function.
    	(inf_child_target): Install it.
    
    	* remote.c (PACKET_vFile_readlink): New enum value.
    	(remote_hostio_readlink): New function.
    	(init_remote_ops): Install it.
    	(_initialize_remote): Handle vFile:readlink packet type.
    
    doc/ChangeLog:
    
    	* gdb.texinfo (Remote Configuration): Document
    	"set remote hostio-readlink-packet" command.
    	(General Query Packets): Document vFile:readlink packet.
    
    gdbserver/ChangeLog:
    
    	* hostio.c (handle_readlink): New function.
    	(handle_vFile): Call it to handle "vFile:readlink" packets.

commit e275619a2e8d64964b675b0e85bb7c69e2a7dad0
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:45:49 2012 +0000

    2012-01-20  Pedro Alves  <palves@redhat.com>
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    	* configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
    	* config.in, configure: Regenerate.
    
    	* target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
    	to_fileio_pread, to_fileio_close, to_fileio_unlink.
    	(target_fileio_open): Add prototype.
    	(target_fileio_pwrite): Likewise.
    	(target_fileio_pread): Likewise.
    	(target_fileio_close): Likewise.
    	(target_fileio_unlink): Likewise.
    	(target_fileio_read_alloc): Likewise.
    	(target_fileio_read_stralloc): Likewise.
    
    	* target.c: Include "gdb/fileio.h".
    	(target_read_stralloc): Accept trailing, but not embedded NUL bytes.
    	(default_fileio_target): New function.
    	(target_fileio_open): Likewise.
    	(target_fileio_pwrite): Likewise.
    	(target_fileio_pread): Likewise.
    	(target_fileio_close): Likewise.
    	(target_fileio_unlink): Likewise.
    	(target_fileio_close_cleanup): Likewise.
    	(target_fileio_read_alloc_1): Likewise.
    	(target_fileio_read_alloc): Likewise.
    	(target_fileio_read_stralloc): Likewise.
    
    	* inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
    	<fcntl.h>, and <unistd.h>.
    	(inf_child_fileio_open_flags_to_host): New function.
    	(inf_child_errno_to_fileio_error): Likewise.
    	(inf_child_fileio_open): Likewise.
    	(inf_child_fileio_pwrite): Likewise.
    	(inf_child_fileio_pread): Likewise.
    	(inf_child_fileio_close): Likewise.
    	(inf_child_fileio_unlink): Likewise.
    	(inf_child_target): Install to_fileio routines.
    
    	* remote.c (init_remote_ops): Install to_fileio routines.

commit f8cdeea569d34d96c29b22f12dcc0c82bef1bd5a
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:44:34 2012 +0000

    2012-01-20  Pedro Alves  <palves@redhat.com>
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    ChangeLog:
    
    	* remote.c (remote_multi_process_p): Only check for multi-process
    	protocol feature, do not check for extended protocol.
    	(remote_supports_multi_process): Check for extended protocol here.
    	(set_general_process): Likewise.
    	(extended_remote_kill): Likewise.
    	(remote_pid_to_str): Likewise.
    	(remote_query_supported): Always query multiprocess mode.
    
    gdbserver/ChangeLog:
    
    	* server.c (handle_v_requests): Only support vAttach and vRun to
    	start multiple processes when in extended protocol mode.

commit a230ffaf9414998a3ea403773b26d3abcf9c6507
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date:   Fri Jan 20 09:42:43 2012 +0000

    2012-01-20  Pedro Alves  <palves@redhat.com>
    	    Ulrich Weigand  <ulrich.weigand@linaro.org>
    
    	* inferior.h (struct inferior): Add fake_pid_p.
    	* inferior.c (exit_inferior_1): Clear fake_pid_p.
    	* remote.c (remote_start_remote): Set fake_pid_p if we have to use
    	magic_null_ptid since the remote side doesn't provide a real PID.

commit f3a8d239696d4bb787e96e83695bed9099d89fed
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Fri Jan 20 00:00:33 2012 +0000

    *** empty log message ***

commit e9d6c476e825d7d8156ff4d3c267f85d3f068413
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Jan 19 23:00:07 2012 +0000

    daily update

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                        |    8 +
 bfd/elf.c                            |   24 +-
 bfd/elf32-arm.c                      |   49 +++
 bfd/version.h                        |    2 +-
 gdb/ChangeLog                        |  191 ++++++++
 gdb/config.in                        |    9 +
 gdb/configure                        |    5 +-
 gdb/configure.ac                     |    5 +-
 gdb/defs.h                           |   29 ++
 gdb/doc/ChangeLog                    |    6 +
 gdb/doc/gdb.texinfo                  |   14 +
 gdb/gcore.c                          |   54 ++-
 gdb/gdbarch.c                        |   99 +++++
 gdb/gdbarch.h                        |   24 +
 gdb/gdbarch.sh                       |    9 +
 gdb/gdbserver/ChangeLog              |   11 +
 gdb/gdbserver/hostio.c               |   33 ++
 gdb/gdbserver/server.c               |    4 +-
 gdb/inf-child.c                      |  231 ++++++++++
 gdb/infcmd.c                         |  113 +++++
 gdb/inferior.c                       |    1 +
 gdb/inferior.h                       |    2 +
 gdb/linux-nat.c                      |  787 ++--------------------------------
 gdb/linux-tdep.c                     |  653 ++++++++++++++++++++++++++++
 gdb/linux-tdep.h                     |   12 +
 gdb/procfs.c                         |   33 +-
 gdb/remote.c                         |  107 ++++-
 gdb/target.c                         |  347 +++++++++++++++-
 gdb/target.h                         |   94 ++++
 gdb/testsuite/ChangeLog              |    7 +
 gdb/testsuite/gdb.base/info-proc.exp |   29 +-
 gdb/version.in                       |    2 +-
 32 files changed, 2143 insertions(+), 851 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 35ab5a4..ab9cde1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* elf.c (elfcore_write_prpsinfo): Provide unconditionally.
+	Return NULL if core file generation is unsupported.
+	(elfcore_write_prstatus): Likewise.
+	* elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
+	(elf_backend_write_core_note): Define.
+
 2012-01-19  Tristan Gingold  <gingold@adacore.com>
 
 	* pef.c: Add a comment.
diff --git a/bfd/elf.c b/bfd/elf.c
index bafb3bb..35007cd 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8890,7 +8890,6 @@ elfcore_write_note (bfd *abfd,
   return buf;
 }
 
-#if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T)
 char *
 elfcore_write_prpsinfo (bfd  *abfd,
 			char *buf,
@@ -8898,7 +8897,6 @@ elfcore_write_prpsinfo (bfd  *abfd,
 			const char *fname,
 			const char *psargs)
 {
-  const char *note_name = "CORE";
   const struct elf_backend_data *bed = get_elf_backend_data (abfd);
 
   if (bed->elf_backend_write_core_note != NULL)
@@ -8910,6 +8908,7 @@ elfcore_write_prpsinfo (bfd  *abfd,
 	return ret;
     }
 
+#if defined (HAVE_PRPSINFO_T) || defined (HAVE_PSINFO_T)
 #if defined (HAVE_PRPSINFO32_T) || defined (HAVE_PSINFO32_T)
   if (bed->s->elfclass == ELFCLASS32)
     {
@@ -8925,7 +8924,7 @@ elfcore_write_prpsinfo (bfd  *abfd,
       strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
       strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
       return elfcore_write_note (abfd, buf, bufsiz,
-				 note_name, note_type, &data, sizeof (data));
+				 "CORE", note_type, &data, sizeof (data));
     }
   else
 #endif
@@ -8942,12 +8941,14 @@ elfcore_write_prpsinfo (bfd  *abfd,
       strncpy (data.pr_fname, fname, sizeof (data.pr_fname));
       strncpy (data.pr_psargs, psargs, sizeof (data.pr_psargs));
       return elfcore_write_note (abfd, buf, bufsiz,
-				 note_name, note_type, &data, sizeof (data));
+				 "CORE", note_type, &data, sizeof (data));
     }
-}
 #endif	/* PSINFO_T or PRPSINFO_T */
 
-#if defined (HAVE_PRSTATUS_T)
+  free (buf);
+  return NULL;
+}
+
 char *
 elfcore_write_prstatus (bfd *abfd,
 			char *buf,
@@ -8956,7 +8957,6 @@ elfcore_write_prstatus (bfd *abfd,
 			int cursig,
 			const void *gregs)
 {
-  const char *note_name = "CORE";
   const struct elf_backend_data *bed = get_elf_backend_data (abfd);
 
   if (bed->elf_backend_write_core_note != NULL)
@@ -8969,6 +8969,7 @@ elfcore_write_prstatus (bfd *abfd,
 	return ret;
     }
 
+#if defined (HAVE_PRSTATUS_T)
 #if defined (HAVE_PRSTATUS32_T)
   if (bed->s->elfclass == ELFCLASS32)
     {
@@ -8978,7 +8979,7 @@ elfcore_write_prstatus (bfd *abfd,
       prstat.pr_pid = pid;
       prstat.pr_cursig = cursig;
       memcpy (&prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
-      return elfcore_write_note (abfd, buf, bufsiz, note_name,
+      return elfcore_write_note (abfd, buf, bufsiz, "CORE",
 				 NT_PRSTATUS, &prstat, sizeof (prstat));
     }
   else
@@ -8990,12 +8991,15 @@ elfcore_write_prstatus (bfd *abfd,
       prstat.pr_pid = pid;
       prstat.pr_cursig = cursig;
       memcpy (&prstat.pr_reg, gregs, sizeof (prstat.pr_reg));
-      return elfcore_write_note (abfd, buf, bufsiz, note_name,
+      return elfcore_write_note (abfd, buf, bufsiz, "CORE",
 				 NT_PRSTATUS, &prstat, sizeof (prstat));
     }
-}
 #endif /* HAVE_PRSTATUS_T */
 
+  free (buf);
+  return NULL;
+}
+
 #if defined (HAVE_LWPSTATUS_T)
 char *
 elfcore_write_lwpstatus (bfd *abfd,
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 31ea861..62a0b8d 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -1988,6 +1988,54 @@ elf32_arm_nabi_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
   return TRUE;
 }
 
+static char *
+elf32_arm_nabi_write_core_note (bfd *abfd, char *buf, int *bufsiz,
+				int note_type, ...)
+{
+  switch (note_type)
+    {
+    default:
+      return NULL;
+
+    case NT_PRPSINFO:
+      {
+	char data[124];
+	va_list ap;
+
+	va_start (ap, note_type);
+	memset (data, 0, sizeof (data));
+	strncpy (data + 28, va_arg (ap, const char *), 16);
+	strncpy (data + 44, va_arg (ap, const char *), 80);
+	va_end (ap);
+
+	return elfcore_write_note (abfd, buf, bufsiz,
+				   "CORE", note_type, data, sizeof (data));
+      }
+
+    case NT_PRSTATUS:
+      {
+	char data[148];
+	va_list ap;
+	long pid;
+	int cursig;
+	const void *greg;
+
+	va_start (ap, note_type);
+	memset (data, 0, sizeof (data));
+	pid = va_arg (ap, long);
+	bfd_put_32 (abfd, pid, data + 24);
+	cursig = va_arg (ap, int);
+	bfd_put_16 (abfd, cursig, data + 12);
+	greg = va_arg (ap, const void *);
+	memcpy (data + 72, greg, 72);
+	va_end (ap);
+
+	return elfcore_write_note (abfd, buf, bufsiz,
+				   "CORE", note_type, data, sizeof (data));
+      }
+    }
+}
+
 #define TARGET_LITTLE_SYM               bfd_elf32_littlearm_vec
 #define TARGET_LITTLE_NAME              "elf32-littlearm"
 #define TARGET_BIG_SYM                  bfd_elf32_bigarm_vec
@@ -1995,6 +2043,7 @@ elf32_arm_nabi_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
 
 #define elf_backend_grok_prstatus	elf32_arm_nabi_grok_prstatus
 #define elf_backend_grok_psinfo		elf32_arm_nabi_grok_psinfo
+#define elf_backend_write_core_note	elf32_arm_nabi_write_core_note
 
 typedef unsigned long int insn32;
 typedef unsigned short int insn16;
diff --git a/bfd/version.h b/bfd/version.h
index 6ff275f..8753259 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120119
+#define BFD_VERSION_DATE 20120120
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c241643..3f7669d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,194 @@
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* gdbarch.sh (find_memory_regions): New callback.
+	* gdbarch.c, gdbarch.h: Regenerate.
+
+	* gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
+	callback before falling back to target method.
+
+	* linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
+	(linux_target_install_ops): No longer install it.
+
+	* linux-tdep.c (linux_find_memory_regions): New function.
+	(linux_init_abi): Install it.
+
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* gdbarch.sh (make_corefile_notes): New architecture callback.
+	* gdbarch.c: Regenerate.
+	* gdbarch.h: Likewise.
+
+	* gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
+	before target_make_corefile_notes.  If NULL is returned, the
+	target does not support core file generation.
+
+	* linux-nat.c: Include "linux-tdep.h".
+	(find_signalled_thread, find_stop_signal): Remove.
+	(linux_nat_do_thread_registers): Likewise.
+	(struct linux_nat_corefile_thread_data): Likewise.
+	(linux_nat_corefile_thread_callback): Likewise.
+	(iterate_over_spus): Likewise.
+	(struct linux_spu_corefile_data): Likewise.
+	(linux_spu_corefile_callback): Likewise.
+	(linux_spu_make_corefile_notes): Likewise.
+	(linux_nat_collect_thread_registers): New function.
+	(linux_nat_make_corefile_notes): Replace contents by call to
+	linux_make_corefile_notes passing linux_nat_collect_thread_registers
+	as native-only callback.
+
+	* linux-tdep.h: Include "bfd.h".
+	(struct regcache): Add forward declaration.
+	(linux_collect_thread_registers_ftype): New typedef.
+	(linux_make_corefile_notes): Add prototype.
+	* linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
+	"regset.h", and "elf-bfd.h".
+	(find_signalled_thread, find_stop_signal): New functions.
+	(linux_spu_make_corefile_notes): Likewise.
+	(linux_collect_thread_registers): Likewise.
+	(struct linux_corefile_thread_data): New data structure.
+	(linux_corefile_thread_callback): New funcion.
+	(linux_make_corefile_notes): Likewise.
+	(linux_make_corefile_notes_1): Likewise.
+	(linux_init_abi): Install it.
+
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* gdbarch.sh (info_proc): New callback.
+	* gdbarch.c, gdbarch.h: Regenerate.
+
+	* infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
+	before falling back to the target info_proc callback.
+
+	* linux-nat.c: Do not include "cli/cli-utils.h".
+	(linux_nat_info_proc): Remove.
+	(linux_target_install_ops): No longer install it.
+
+	* linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
+	(read_mapping): New function.
+	(linux_info_proc): Likewise.
+	(linux_init_abi): Install it.
+
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* defs.h (enum info_proc_what): Moved here from linux-nat.c
+	* infcmd.c: (info_proc_cmd_1): New function.
+	(info_proc_cmd): New function, moved here from equivalent routine
+	orignally in linux-nat.c.
+	(info_proc_cmd_mappings): Likewise.
+	(info_proc_cmd_stat): Likewise.
+	(info_proc_cmd_status): Likewise.
+	(info_proc_cmd_cwd): Likewise.
+	(info_proc_cmd_cmdline): Likewise.
+	(info_proc_cmd_exe): Likewise.
+	(info_proc_cmd_all): Likewise.
+	(_initialize_infcmd): Install "info proc" command and subcommands.
+
+	* target.h (struct target_ops): Add to_info_proc.
+	(target_info_proc): Add prototype.
+	* target.c (target_info_proc): New function.
+
+	* procfs.c (procfs_info_proc): Add prototype.
+	(info_proc_cmd): Rename into ...
+	(procfs_info_proc): ... this.  Update argument types as appropriate
+	for a to_info_proc implementation.  Handle "what" argument.
+	(procfs_target): Install procfs_info_proc.
+	(_initialize_procfs): No longer install "info proc" command.
+
+	* linux-nat.c: (enum info_proc_what): Remove.
+	(linux_nat_info_proc_cmd_1): Rename into ...
+	(linux_nat_info_proc): ... this.  Update argument types as appropriate
+	for a to_info_proc implementation.
+	(linux_nat_info_proc_cmd): Remove.
+	(linux_nat_info_proc_cmd_mappings): Likewise.
+	(linux_nat_info_proc_cmd_stat): Likewise.
+	(linux_nat_info_proc_cmd_status): Likewise.
+	(linux_nat_info_proc_cmd_cwd): Likewise.
+	(linux_nat_info_proc_cmd_cmdline): Likewise.
+	(linux_nat_info_proc_cmd_exe): Likewise.
+	(linux_nat_info_proc_cmd_all): Likewise.
+	(linux_target_install_ops): Install linux_nat_info_proc.
+	(_initialize_linux_nat): No longer install "info proc" command
+	and subcommands.
+
+2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* configure.ac [AC_CHECK_FUNCS]: Check for readlink.
+	* config.in, configure: Regenerate.
+
+	* target.h (struct target_ops): Add to_fileio_readlink.
+	(target_fileio_readlink): Add prototype.
+	* target.c (target_fileio_readlink): New function.
+
+	* inf-child.c: Conditionally include <sys/param.h>.
+	(inf_child_fileio_readlink): New function.
+	(inf_child_target): Install it.
+
+	* remote.c (PACKET_vFile_readlink): New enum value.
+	(remote_hostio_readlink): New function.
+	(init_remote_ops): Install it.
+	(_initialize_remote): Handle vFile:readlink packet type.
+
+2012-01-20  Pedro Alves  <palves@redhat.com>
+	    Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
+	* config.in, configure: Regenerate.
+
+	* target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
+	to_fileio_pread, to_fileio_close, to_fileio_unlink.
+	(target_fileio_open): Add prototype.
+	(target_fileio_pwrite): Likewise.
+	(target_fileio_pread): Likewise.
+	(target_fileio_close): Likewise.
+	(target_fileio_unlink): Likewise.
+	(target_fileio_read_alloc): Likewise.
+	(target_fileio_read_stralloc): Likewise.
+
+	* target.c: Include "gdb/fileio.h".
+	(target_read_stralloc): Accept trailing, but not embedded NUL bytes.
+	(default_fileio_target): New function.
+	(target_fileio_open): Likewise.
+	(target_fileio_pwrite): Likewise.
+	(target_fileio_pread): Likewise.
+	(target_fileio_close): Likewise.
+	(target_fileio_unlink): Likewise.
+	(target_fileio_close_cleanup): Likewise.
+	(target_fileio_read_alloc_1): Likewise.
+	(target_fileio_read_alloc): Likewise.
+	(target_fileio_read_stralloc): Likewise.
+
+	* inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
+	<fcntl.h>, and <unistd.h>.
+	(inf_child_fileio_open_flags_to_host): New function.
+	(inf_child_errno_to_fileio_error): Likewise.
+	(inf_child_fileio_open): Likewise.
+	(inf_child_fileio_pwrite): Likewise.
+	(inf_child_fileio_pread): Likewise.
+	(inf_child_fileio_close): Likewise.
+	(inf_child_fileio_unlink): Likewise.
+	(inf_child_target): Install to_fileio routines.
+
+	* remote.c (init_remote_ops): Install to_fileio routines.
+
+2012-01-20  Pedro Alves  <palves@redhat.com>
+	    Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* remote.c (remote_multi_process_p): Only check for multi-process
+	protocol feature, do not check for extended protocol.
+	(remote_supports_multi_process): Check for extended protocol here.
+	(set_general_process): Likewise.
+	(extended_remote_kill): Likewise.
+	(remote_pid_to_str): Likewise.
+	(remote_query_supported): Always query multiprocess mode.
+
+2012-01-20  Pedro Alves  <palves@redhat.com>
+	    Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+	* inferior.h (struct inferior): Add fake_pid_p.
+	* inferior.c (exit_inferior_1): Clear fake_pid_p.
+	* remote.c (remote_start_remote): Set fake_pid_p if we have to use
+	magic_null_ptid since the remote side doesn't provide a real PID.
+
 2012-01-19  Tom Tromey  <tromey@redhat.com>
 
 	* NEWS: Combine the two Python sections.
diff --git a/gdb/config.in b/gdb/config.in
index 45c2c73..bae1763 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -324,6 +324,9 @@
 /* Define to 1 if you have the `posix_madvise' function. */
 #undef HAVE_POSIX_MADVISE
 
+/* Define to 1 if you have the `pread' function. */
+#undef HAVE_PREAD
+
 /* Define to 1 if you have the `pread64' function. */
 #undef HAVE_PREAD64
 
@@ -381,6 +384,9 @@
 /* Define if sys/ptrace.h defines the PT_GETXMMREGS request. */
 #undef HAVE_PT_GETXMMREGS
 
+/* Define to 1 if you have the `pwrite' function. */
+#undef HAVE_PWRITE
+
 /* Define if Python interpreter is being linked in. */
 #undef HAVE_PYTHON
 
@@ -468,6 +474,9 @@
 /* Define to 1 if wcwidth is declared even after undefining macros. */
 #undef HAVE_RAW_DECL_WCWIDTH
 
+/* Define to 1 if you have the `readlink' function. */
+#undef HAVE_READLINK
+
 /* Define to 1 if you have the `realpath' function. */
 #undef HAVE_REALPATH
 
diff --git a/gdb/configure b/gdb/configure
index 2ced763..920c716 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -12931,8 +12931,9 @@ $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
 
 fi
 
-for ac_func in canonicalize_file_name realpath getrusage getuid \
-		getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
+for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
+		pipe poll pread pread64 pwrite readlink resize_term \
+		sbrk setpgid setpgrp setsid \
 		sigaction sigprocmask sigsetmask socketpair syscall \
 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
 		setrlimit getrlimit posix_madvise waitpid lstat
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 66844ed..6f9a42c 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -1063,8 +1063,9 @@ AC_C_BIGENDIAN
 AC_FUNC_ALLOCA
 AC_FUNC_MMAP
 AC_FUNC_VFORK
-AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid \
-		getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
+AC_CHECK_FUNCS([canonicalize_file_name realpath getrusage getuid getgid \
+		pipe poll pread pread64 pwrite readlink resize_term \
+		sbrk setpgid setpgrp setsid \
 		sigaction sigprocmask sigsetmask socketpair syscall \
 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
 		setrlimit getrlimit posix_madvise waitpid lstat])
diff --git a/gdb/defs.h b/gdb/defs.h
index 057e0ac..83a716a 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -752,6 +752,35 @@ extern struct command_line *read_command_lines_1 (char * (*) (void), int,
 
 extern void free_command_lines (struct command_line **);
 
+/* Parameters of the "info proc" command.  */
+
+enum info_proc_what
+  {
+    /* Display the default cmdline, cwd and exe outputs.  */
+    IP_MINIMAL,
+
+    /* Display `info proc mappings'.  */
+    IP_MAPPINGS,
+
+    /* Display `info proc status'.  */
+    IP_STATUS,
+
+    /* Display `info proc stat'.  */
+    IP_STAT,
+
+    /* Display `info proc cmdline'.  */
+    IP_CMDLINE,
+
+    /* Display `info proc exe'.  */
+    IP_EXE,
+
+    /* Display `info proc cwd'.  */
+    IP_CWD,
+
+    /* Display all of the above.  */
+    IP_ALL
+  };
+
 /* String containing the current directory (what getwd would return).  */
 
 extern char *current_directory;
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index e5a0dac..99bc881 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2012-01-20 11:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 11:07 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-30 16:58 jkratoch
2012-01-24 14:19 jkratoch
2012-01-20 20:16 jkratoch
2012-01-20  1:30 jkratoch
2012-01-20  1:20 jkratoch
2012-01-05  9:18 jkratoch
2012-01-02 22:43 jkratoch
2012-01-02 16:46 jkratoch
2012-01-02 15:19 jkratoch
2011-12-26 23:24 jkratoch
2011-12-26 22:04 jkratoch
2011-12-26 20:32 jkratoch
2011-12-26 19:28 jkratoch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120120110731.4139.qmail@sourceware.org \
    --to=jkratoch@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).