From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AmgwM-0000rq-7I for qemu-devel@nongnu.org; Fri, 30 Jan 2004 17:16:42 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Amgvj-0000eU-U9 for qemu-devel@nongnu.org; Fri, 30 Jan 2004 17:16:35 -0500 Received: from [212.16.62.51] (helo=mail.13thfloor.at) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Amgvj-0000di-Bp for qemu-devel@nongnu.org; Fri, 30 Jan 2004 17:16:03 -0500 Date: Fri, 30 Jan 2004 23:15:55 +0100 From: Herbert Poetzl Subject: Re: [Qemu-devel] Knoppix results Message-ID: <20040130221555.GA27011@MAIL.13thfloor.at> References: <200401282211.00224.kyle@silverbeach.net> <20040129141247.GA13654@cs.unibo.it> <20040129153217.55cfc212.jrydberg@night.trouble.net> <200401290843.11725.kyle@silverbeach.net> <20040129183821.5547ad6f.jrydberg@night.trouble.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040129183821.5547ad6f.jrydberg@night.trouble.net> Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johan Rydberg Cc: qemu-devel@nongnu.org On Thu, Jan 29, 2004 at 06:38:21PM +0100, Johan Rydberg wrote: > Kyle Hayes wrote: > > : Would I run QEMU from the command line via GDB? > : > : $ gdb qemu -hda hda.img -cdrom knoppix.iso -boot d -m 128 > : > : Oh, right, I can't pass it args... Ugh. > > If you have a recent version of GDB (I'm not sure GDB 5.3, which is ancient, > support this) you can use the --args argument. > > $ gdb --args qemu -hda .... not necessary, just fire up gdb qemu and pass the args on the run command # gdb echo GNU gdb 5.1.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-mandrake-linux"...(no debugging symbols found)... (gdb) run hello world Starting program: /bin/echo hello world hello world (no debugging symbols found)... Program exited normally. (gdb) or attach to the running instance like that: # sleep 100 & [1] 17868 # gdb GNU gdb 5.1.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-mandrake-linux". (gdb) attach 17868 Attaching to process 17868 0x4011c7b1 in ?? () (gdb) HTH, Herbert > : I find GDB to be one of the more difficult tools to use unless you use > : it every hour of every day. I do almost exclusively Perl coding and have > : for years now. > > Sure, it's a rather complex tool. But as soon as you get familiar with it, > you can not live without it. > > : That's odd. Any clues > : why that would happen? What does the shared library handler warning mean? > > No idea. I suggest you update GDB (to version 6 at least) and give that > a try. > > : I'll try to build from source and see if I can get farther than this. > : > : Best, > : Kyle > > > -- > Johan Rydberg, Free Software Developer, Sweden > http://rtmk.sf.net | http://www.nongnu.org/guss/ > > Playing A-Skills and Krafty Kuts - Tricka Technology > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://mail.nongnu.org/mailman/listinfo/qemu-devel