From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6869 invoked by alias); 4 Sep 2009 07:35:01 -0000 Received: (qmail 6852 invoked by uid 22791); 4 Sep 2009 07:35:00 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f201.google.com (HELO mail-yx0-f201.google.com) (209.85.210.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Sep 2009 07:34:51 +0000 Received: by yxe39 with SMTP id 39so2130560yxe.18 for ; Fri, 04 Sep 2009 00:34:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.76.3 with SMTP id y3mr11951491ana.76.1252049689023; Fri, 04 Sep 2009 00:34:49 -0700 (PDT) Date: Fri, 04 Sep 2009 07:35:00 -0000 Message-ID: Subject: how to pass environment variables to inferior when debugging with gdbserver From: "Amker.Cheng" To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00064.txt.bz2 Hi All: I want to debug a problem with dynamic linker when setting LD_AUDIT variable, apparently this can only be set to inferior, or gdbserver itself would break. The problem is how to pass this variables to inferior by gdbserver command line? I searched the doc but didn't found a solution. Maybe I've missed something important, please help and correct me if I am wrong. Thanks. -- Best Regards.