From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20683 invoked by alias); 16 Jan 2011 08:01:36 -0000 Received: (qmail 20674 invoked by uid 22791); 16 Jan 2011 08:01:35 -0000 X-SWARE-Spam-Status: No, hits=1.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,TW_QE X-Spam-Check-By: sourceware.org Received: from mailrelay007.isp.belgacom.be (HELO mailrelay007.isp.belgacom.be) (195.238.6.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 16 Jan 2011 08:01:30 +0000 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAMc0Mk1tgJG6/2dsb2JhbACEC4VVmwh0rzKNOA2BF4M4dASQT4YJ Received: from 186.145-128-109.adsl-dyn.isp.belgacom.be (HELO soleil) ([109.128.145.186]) by relay.skynet.be with SMTP; 16 Jan 2011 09:01:27 +0100 Message-ID: <8E9107677EC54D2C9C088B371EB0B0B7@soleil> From: "Philippe Waroquiers" To: =?utf-8?B?6Zmz6Z+L5Lu7?= Cc: =?utf-8?B?6Zmz6Z+L5Lu7?= , References: <20110115144525.GD44658@cs.nctu.edu.tw> <4D322AC5.2020509@vmware.com> <20110116025558.GA60714@cs.nctu.edu.tw> Subject: Re: How to run gdb with LD_PRELOAD? Date: Sun, 16 Jan 2011 08:01:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit 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: 2011-01/txt/msg00066.txt.bz2 > I actually use qemu as an emulator to run a program like "a.out". And the > LD_PRELOAD is for qemu not the a.out. I did what you said, but gdb gave > me the error below, If it is the a.out that you have to debug, the gdbserver embedded in qemu will allow to debug it (using "target remote" command of gdb, once ou started qemu with gdbserver)