From owner-freebsd-questions@freebsd.org Mon May 30 04:06:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5410B511F0 for ; Mon, 30 May 2016 04:06:09 +0000 (UTC) (envelope-from ooxxao@gmail.com) Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7CCC16CF for ; Mon, 30 May 2016 04:06:09 +0000 (UTC) (envelope-from ooxxao@gmail.com) Received: by mail-yw0-x230.google.com with SMTP id o16so153457171ywd.2 for ; Sun, 29 May 2016 21:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=nQpholCvyGFH+lw5DCxfAnrI8he+Q3hStdIXnvVcYEo=; b=jgjbdVX6H83oge7rvc+jgILkoGf6dACe66f+70C0oEaWgNepPp6Pycy8M3NGt+Pt7t k/ebCzSxLzVhpNCYm57NvSOk5N/07hwsABTmLMwJ5jabm/qWRk8/tgSaUS6wvA8sSB8x RpamknzMI0ANP0MUJp96HReDgVj2T80rIZA6uQ6+tRSd5JdyAGk6PSaC52OfyK8uVB91 DWV8UMhBhc0zFm86gJVKlXdHDlIG2VJE+eiHpupJEPF5Jgo8/3K7QNLwezt8QwwFK6UR RsSah9qgp+uJHWsQE+dab5mBdjb+uYuUDWmMUmfzS4D+UcNF6ta6UBXbvOeYZr1ydjNJ Tbgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=nQpholCvyGFH+lw5DCxfAnrI8he+Q3hStdIXnvVcYEo=; b=KmpPbWX4tBlzX5YY7rSwWXirUKHWQeYkQx045Dxk/cb2BRpDN2+H+clllCAh3Ph5oQ tD5uFTOXXDB0xi5stD/A4jxPcdvzPkLtSo08mPNhtjeKLnSG/flBR+UtIWPOni8q18+B QbI0ZlhwUjoB1bRSNqiHS1wgPJLFuRIewnIj1fzc0G3TRfKspFfLpUn+fKlmfLIK+YUj Z9wc7yLIDVs3aWKTtM+Rx8PCWj0SISKJAUNZEfu2/pmhyHVH+Jd7WN5PgEM0laaQvDqR qZ1XLuwzlFOubGg+pxrCSSaS9RVbYUK5OZStES5DS1ENHzbItyhgHswrtnOyomylN1gD Y/ZQ== X-Gm-Message-State: ALyK8tJXSQ/haIv+/YgqZYJhsPDlhTmQdmJ35lwO5CKJ/nlA0gy9mWbRwD+Uf9/lLTazcvXiJCG60mLWY6Io/w== MIME-Version: 1.0 X-Received: by 10.13.229.195 with SMTP id o186mr15457907ywe.117.1464581168679; Sun, 29 May 2016 21:06:08 -0700 (PDT) Received: by 10.13.216.197 with HTTP; Sun, 29 May 2016 21:06:08 -0700 (PDT) Date: Mon, 30 May 2016 13:06:08 +0900 Message-ID: Subject: gdb can't find any source after compile through distcc From: =?UTF-8?B?6rSA7Jqp6rmA?= To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2016 04:06:10 -0000 I'm using several FreeBSD machines, and all of them are in same version, 10.3-RELEASE i386. And installed distcc on every machine through ports, /usr/ports/devel/distcc. The distcc version is distcc-3.1. Using ninja build system with Clang 3.4.1 instead of GCC. Any compile was done very successfully. But after, every time I try to make break point in gdb, it cannot catch any source files of the project. I think It may be the result of the temp files named distccd_xxxxxxxx.ii that distcc/distccd give and receive between machines. It located at /tmp/ and it is volatile. Because clang write path and file name like /tmp/distccd_xxxxxxxx.ii and distccd_xxxxxxxx.ii on object file, gdb only knows the 'distccd_XX.ii' file is the real one. I've tried 'directory' command in gdb, and it is not sufficient because my file tree is so complicated and too big. And also, I need to recompile project again when I changed the obj files. gdb is just fine when I compiled locally without distcc. I can't use gcc right now (I can't modify existing compile structure), and pump-mode isn't helpful either. Is there any solutions for my situation?