qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Knoppix results


From: Herbert Poetzl
Subject: Re: [Qemu-devel] Knoppix results
Date: Fri, 30 Jan 2004 23:15:55 +0100
User-agent: Mutt/1.4.1i

On Thu, Jan 29, 2004 at 06:38:21PM +0100, Johan Rydberg wrote:
> Kyle Hayes <address@hidden> 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
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/qemu-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]