Blame SOURCES/gdb-dlopen-stap-probe-6of9.patch

2c2fa1
http://sourceware.org/ml/gdb-cvs/2013-06/msg00017.html
2c2fa1
2c2fa1
### src/gdb/ChangeLog	2013/06/04 13:02:15	1.15683
2c2fa1
### src/gdb/ChangeLog	2013/06/04 13:10:53	1.15684
2c2fa1
## -1,5 +1,21 @@
2c2fa1
 2013-06-04  Gary Benson  <gbenson@redhat.com>
2c2fa1
 
2c2fa1
+	* target.h (target_ops): New field
2c2fa1
+	"to_augmented_libraries_svr4_read".
2c2fa1
+	(target_augmented_libraries_svr4_read): New macro.
2c2fa1
+	* target.c (update_current_target): Handle
2c2fa1
+	to_augmented_libraries_svr4_read.
2c2fa1
+	* remote.c (remote_state): New field
2c2fa1
+	"augmented_libraries_svr4_read".
2c2fa1
+	(remote_augmented_libraries_svr4_read_feature): New function.
2c2fa1
+	(remote_protocol_features): Add entry for
2c2fa1
+	"augmented-libraries-svr4-read".
2c2fa1
+	(remote_augmented_libraries_svr4_read): New function.
2c2fa1
+	(init_remote_ops): Initialize
2c2fa1
+	remote_ops.to_augmented_libraries_svr4_read.
2c2fa1
+
2c2fa1
+2013-06-04  Gary Benson  <gbenson@redhat.com>
2c2fa1
+
2c2fa1
 	* NEWS: Update.
2c2fa1
 
2c2fa1
 2013-06-04  Gary Benson  <gbenson@redhat.com>
2c2fa1
--- src/gdb/remote.c	2013/05/30 09:29:18	1.552
2c2fa1
+++ src/gdb/remote.c	2013/06/04 13:10:53	1.553
2c2fa1
@@ -361,6 +361,10 @@
2c2fa1
   /* True if the stub can collect strings using tracenz bytecode.  */
2c2fa1
   int string_tracing;
2c2fa1
 
2c2fa1
+  /* True if the stub supports qXfer:libraries-svr4:read with a
2c2fa1
+     non-empty annex.  */
2c2fa1
+  int augmented_libraries_svr4_read;
2c2fa1
+
2c2fa1
   /* Nonzero if the user has pressed Ctrl-C, but the target hasn't
2c2fa1
      responded to that.  */
2c2fa1
   int ctrlc_pending_p;
2c2fa1
@@ -3949,6 +3953,16 @@
2c2fa1
   rs->string_tracing = (support == PACKET_ENABLE);
2c2fa1
 }
2c2fa1
 
2c2fa1
+static void
2c2fa1
+remote_augmented_libraries_svr4_read_feature
2c2fa1
+  (const struct protocol_feature *feature,
2c2fa1
+   enum packet_support support, const char *value)
2c2fa1
+{
2c2fa1
+  struct remote_state *rs = get_remote_state ();
2c2fa1
+
2c2fa1
+  rs->augmented_libraries_svr4_read = (support == PACKET_ENABLE);
2c2fa1
+}
2c2fa1
+
2c2fa1
 static struct protocol_feature remote_protocol_features[] = {
2c2fa1
   { "PacketSize", PACKET_DISABLE, remote_packet_size, -1 },
2c2fa1
   { "qXfer:auxv:read", PACKET_DISABLE, remote_supported_packet,
2c2fa1
@@ -3959,6 +3973,8 @@
2c2fa1
     PACKET_qXfer_libraries },
2c2fa1
   { "qXfer:libraries-svr4:read", PACKET_DISABLE, remote_supported_packet,
2c2fa1
     PACKET_qXfer_libraries_svr4 },
2c2fa1
+  { "augmented-libraries-svr4-read", PACKET_DISABLE,
2c2fa1
+    remote_augmented_libraries_svr4_read_feature, -1 },
2c2fa1
   { "qXfer:memory-map:read", PACKET_DISABLE, remote_supported_packet,
2c2fa1
     PACKET_qXfer_memory_map },
2c2fa1
   { "qXfer:spu:read", PACKET_DISABLE, remote_supported_packet,
2c2fa1
@@ -11439,6 +11455,14 @@
2c2fa1
   return btrace;
2c2fa1
 }
2c2fa1
 
2c2fa1
+static int
2c2fa1
+remote_augmented_libraries_svr4_read (void)
2c2fa1
+{
2c2fa1
+  struct remote_state *rs = get_remote_state ();
2c2fa1
+
2c2fa1
+  return rs->augmented_libraries_svr4_read;
2c2fa1
+}
2c2fa1
+
2c2fa1
 static void
2c2fa1
 init_remote_ops (void)
2c2fa1
 {
2c2fa1
@@ -11561,6 +11585,8 @@
2c2fa1
   remote_ops.to_disable_btrace = remote_disable_btrace;
2c2fa1
   remote_ops.to_teardown_btrace = remote_teardown_btrace;
2c2fa1
   remote_ops.to_read_btrace = remote_read_btrace;
2c2fa1
+  remote_ops.to_augmented_libraries_svr4_read =
2c2fa1
+    remote_augmented_libraries_svr4_read;
2c2fa1
 }
2c2fa1
 
2c2fa1
 /* Set up the extended remote vector by making a copy of the standard
2c2fa1
--- src/gdb/target.c	2013/05/14 20:33:36	1.335
2c2fa1
+++ src/gdb/target.c	2013/06/04 13:10:53	1.336
2c2fa1
@@ -731,6 +731,7 @@
2c2fa1
       INHERIT (to_traceframe_info, t);
2c2fa1
       INHERIT (to_use_agent, t);
2c2fa1
       INHERIT (to_can_use_agent, t);
2c2fa1
+      INHERIT (to_augmented_libraries_svr4_read, t);
2c2fa1
       INHERIT (to_magic, t);
2c2fa1
       INHERIT (to_supports_evaluation_of_breakpoint_conditions, t);
2c2fa1
       INHERIT (to_can_run_breakpoint_commands, t);
2c2fa1
@@ -975,6 +976,9 @@
2c2fa1
   de_fault (to_can_use_agent,
2c2fa1
 	    (int (*) (void))
2c2fa1
 	    return_zero);
2c2fa1
+  de_fault (to_augmented_libraries_svr4_read,
2c2fa1
+	    (int (*) (void))
2c2fa1
+	    return_zero);
2c2fa1
   de_fault (to_execution_direction, default_execution_direction);
2c2fa1
 
2c2fa1
 #undef de_fault
2c2fa1
--- src/gdb/target.h	2013/05/14 20:33:36	1.262
2c2fa1
+++ src/gdb/target.h	2013/06/04 13:10:53	1.263
2c2fa1
@@ -941,6 +941,10 @@
2c2fa1
        (inclusive) to function END (exclusive).  */
2c2fa1
     void (*to_call_history_range) (ULONGEST begin, ULONGEST end, int flags);
2c2fa1
 
2c2fa1
+    /* Nonzero if TARGET_OBJECT_LIBRARIES_SVR4 may be read with a
2c2fa1
+       non-empty annex.  */
2c2fa1
+    int (*to_augmented_libraries_svr4_read) (void);
2c2fa1
+
2c2fa1
     int to_magic;
2c2fa1
     /* Need sub-structure for target machine related rather than comm related?
2c2fa1
      */
2c2fa1
@@ -1809,6 +1813,9 @@
2c2fa1
 #define target_can_use_agent() \
2c2fa1
   (*current_target.to_can_use_agent) ()
2c2fa1
 
2c2fa1
+#define target_augmented_libraries_svr4_read() \
2c2fa1
+  (*current_target.to_augmented_libraries_svr4_read) ()
2c2fa1
+
2c2fa1
 /* Command logging facility.  */
2c2fa1
 
2c2fa1
 #define target_log_command(p)						\