From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61404 invoked by alias); 17 Mar 2016 17:33:49 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 61384 invoked by uid 89); 17 Mar 2016 17:33:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=states X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (176.31.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 17 Mar 2016 17:33:47 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] Suggest running gdbserver for a PID in container From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <708bf0a14b10d801a600759f3ef6d272978ae854@gdb-build> Date: Thu, 17 Mar 2016 17:33:00 -0000 X-SW-Source: 2016-q1/txt/msg09303.txt.bz2 *** TEST RESULTS FOR COMMIT 708bf0a14b10d801a600759f3ef6d272978ae854 *** Author: Jan Kratochvil Branch: master Commit: 708bf0a14b10d801a600759f3ef6d272978ae854 Suggest running gdbserver for a PID in container currently gdb -p will print: warning: Target and debugger are in different PID namespaces; thread lists and other data are likely unreliable It correctly states the problem but it does not say how to solve it. 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. gdb/ChangeLog 2016-03-17 Jan Kratochvil * linux-thread-db.c (check_pid_namespace_match): Extend the message.