public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Add message suggesting gdbserver for non-matching PID namespaces.
Date: Sat, 27 Jun 2026 23:57:33 GMT	[thread overview]
Message-ID: <178260465344.1.1622333729638572275.rpms-gdb-04d3aefc176e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : 04d3aefc176e61f684b966a23b0e6d322c8fdac3
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date   : 2016-03-17T21:57:11+01:00
Stats  : +64/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/gdb/c/04d3aefc176e61f684b966a23b0e6d322c8fdac3?branch=gdb-17.2-rebase-f44

Log:
Add message suggesting gdbserver for non-matching PID namespaces.

---
diff --git a/gdb-upstream.patch b/gdb-upstream.patch
index 1e5d59f..e60e67a 100644
--- a/gdb-upstream.patch
+++ b/gdb-upstream.patch
@@ -153,3 +153,63 @@ index 1eb457d..ce60beb 100644
 -- 
 2.5.0
 
+
+
+http://sourceware.org/ml/gdb-patches/2016-03/msg00246.html
+Subject: [patch] Suggest running gdbserver for a PID in container
+
+
+--azLHFNyN32YCQGCU
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: inline
+
+Hi,
+
+currently
+	gdb -p <pid from a container>
+will print:
+	warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable
+
+BTW it is a bit lost in all the other messages.  Full screen output is in:
+	https://sourceware.org/bugzilla/show_bug.cgi?id=19828
+
+It correctly states the problem but it does not say how to solve it.
+
+Is at least this little suggestion OK?
+
+Originally I wanted to suggest also the Docker "-p 1234:1234" parameter but
+I see the containers are more general topic than just Docker (even LxC etc.).
+
+According to Gary future GDBs should be able to work even without gdbserver.
+But currently gdbserver is still required.
+
+
+Thanks,
+Jan
+
+--azLHFNyN32YCQGCU
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: inline; filename=1
+
+gdb/ChangeLog
+2016-03-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* linux-thread-db.c (check_pid_namespace_match): Extend the message.
+
+diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c
+index 1eb457d..21166bf 100644
+--- a/gdb/linux-thread-db.c
++++ b/gdb/linux-thread-db.c
+@@ -1020,7 +1020,8 @@ check_pid_namespace_match (void)
+ 	{
+ 	  warning (_ ("Target and debugger are in different PID "
+ 		      "namespaces; thread lists and other data are "
+-		      "likely unreliable"));
++		      "likely unreliable.  "
++		      "Connect to gdbserver inside the container."));
+ 	}
+     }
+ }
+
+--azLHFNyN32YCQGCU--
+

diff --git a/gdb.spec b/gdb.spec
index 0266af9..c2aa597 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -27,7 +27,7 @@ Version: 7.11
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 60%{?dist}
+Release: 61%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL
 Group: Development/Debuggers
@@ -1393,6 +1393,9 @@ then
 fi
 
 %changelog
+* Thu Mar 17 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11-61.fc24
+- Add message suggesting gdbserver for non-matching PID namespaces.
+
 * Tue Mar 15 2016 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.11-60.fc24
 - New Fedora GDB testfile: rhbz1261564-aarch64-watchpoint.exp
 - Backport gdb-7.11 stable branch PR gdb/19676 fix (Pedro Alves).

                 reply	other threads:[~2026-06-27 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178260465344.1.1622333729638572275.rpms-gdb-04d3aefc176e@fedoraproject.org \
    --to=jan.kratochvil@redhat.com \
    --cc=git-commits@fedoraproject.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