Re: [uml-user] GDB and uml_net issues

2009-05-27 Thread Antoine Nguyen
This is a good suggestion, it solved my problem. I was so focused on this error that I didn't think about this simple solution ^^ Thanks David! David Francisco Rodriguez Perez a écrit : > Antoine > > I had same issue before. using gdb 6.3 under x86_64 it was working > okay. Then I jumped to g

Re: [uml-user] GDB and uml_net issues

2009-05-26 Thread David Francisco Rodriguez Perez
Antoine I had same issue before. using gdb 6.3 under x86_64 it was working okay. Then I jumped to gdb 6.5 under i686 and it worked fine only if I ran as user root. Now with gdb 6.8 I can not do that. It looks the gdb people has closed the door to debug setuid programs. So the suggestion is to allo

[uml-user] GDB and uml_net issues

2009-05-26 Thread Antoine Nguyen
Hi all, I'm using a recent kernel (2.6.29.2, compiled by myself) for debugging purposes. When I launch the guest inside gdb, all is going well until network configuration. At the moment uml_net is called, I see a "Permission denied" error inside GDB, which does not appear when I launch the gue

[uml-user] GDB

2008-10-04 Thread David Francisco Rodriguez Perez
Hi I have read and used the gdb on UML tutorials to debug kernel drivers. It works just fine. But I have not found anything to debug user space programs inside UML. I am wondering if I want to debug a user space program can i use gdb inside UML and maybe use mounted directories of the source cod

[uml-user] gdb in UML instance

2008-09-30 Thread Rahul Gauba
Hi!, Where can I find gdb rpm for UML instance. I am using Fedora Core 5 UML and filesystem from http://user-mode-linux.sourceforge.net. The filesystem does not have gdb installed. Thanks in advance. Rahul - T

Re: [uml-user] gdb + uml

2007-10-30 Thread Jeff Dike
On Mon, Oct 29, 2007 at 12:18:02PM -0600, Jon Rafkind wrote: > Actually scratch that. I'm not sure what I was doing wrong before but > now I can make gdb attach to uml in a seperate xterm. Its probably the > extra 'debug' argument. There is an up-to-date description of gdb-ing UML at http://user-m

Re: [uml-user] gdb + uml

2007-10-29 Thread Jon Rafkind
Jon Rafkind wrote: > Jeff Dike wrote: > >> On Tue, Sep 18, 2007 at 01:48:09PM -0600, Jon Rafkind wrote: >> >> >>> How can I use gdb to debug uml? I get a segfault because I have been >>> hacking on the ext3 code but I can't seem to use gdb to set breakpoints >>> in uml >>> >>> gdb) break

Re: [uml-user] gdb + uml

2007-10-29 Thread Jon Rafkind
Jeff Dike wrote: > On Tue, Sep 18, 2007 at 01:48:09PM -0600, Jon Rafkind wrote: > >> How can I use gdb to debug uml? I get a segfault because I have been >> hacking on the ext3 code but I can't seem to use gdb to set breakpoints >> in uml >> >> gdb) break ext3_fill_super >> gdb) run >> > >

Re: [uml-user] gdb + uml

2007-09-18 Thread Jeff Dike
On Tue, Sep 18, 2007 at 01:48:09PM -0600, Jon Rafkind wrote: > How can I use gdb to debug uml? I get a segfault because I have been > hacking on the ext3 code but I can't seem to use gdb to set breakpoints > in uml > > gdb) break ext3_fill_super > gdb) run Can you bring UML up and attach gdb to i

[uml-user] gdb + uml

2007-09-18 Thread Jon Rafkind
How can I use gdb to debug uml? I get a segfault because I have been hacking on the ext3 code but I can't seem to use gdb to set breakpoints in uml gdb) break ext3_fill_super gdb) run ... Program received signal SIGSEGV, Segmentation fault. 0x080d9e97 in ext3_count_free_blocks (sb=0x87e38c0) at fs

Re: Re[2]: [uml-user] gdb 6.3 doesn't stop on breakpoints in UML

2006-03-23 Thread Blaisorblade
On Thursday 23 March 2006 15:50, Serge Goodenko wrote: > > In my experience, it stops on some breakpoints and not on others (for > > instance it doesn't break on panic). You may see if attaching to an > > already running UML rather than starting it under GDB makes a difference > > ("gdb kernelBinar

Re[2]: [uml-user] gdb 6.3 doesn't stop on breakpoints in UML

2006-03-23 Thread Serge Goodenko
> In my experience, it stops on some breakpoints and not on others (for > instance > it doesn't break on panic). You may see if attaching to an already running > UML rather than starting it under GDB makes a difference ("gdb kernelBinary" > and "attach ", where PID is the lowest one between th

Re: [uml-user] gdb 6.3 doesn't stop on breakpoints in UML

2006-03-17 Thread Blaisorblade
On Thursday 16 March 2006 15:37, Serge Goodenko wrote: > Hello! > > I debug UML kernel 2.6.13-4 using gdb 6.3 with > SIGSEGV pass nostop noprint > SIGUSR1 pass nostop noprint > > and with breakpoint set on function that is definetely called during my UML > session (particulary tcp_sendmsg() when I

[uml-user] gdb 6.3 doesn't stop on breakpoints in UML

2006-03-16 Thread Serge Goodenko
Hello! I debug UML kernel 2.6.13-4 using gdb 6.3 with SIGSEGV pass nostop noprint SIGUSR1 pass nostop noprint and with breakpoint set on function that is definetely called during my UML session (particulary tcp_sendmsg() when I send message using Inet sockets) and gdb doesn't stop on it! I sup

Re: [uml-user] gdb: SIGTRAP at proc_fs.h:190

2005-11-21 Thread Franz Lenhardt
On Sunday 20 November 2005 17:00, Blaisorblade wrote: > On Saturday 19 November 2005 14:48, Franz Lenhardt wrote: > > Hello, > > > > I have a problem debugging the uml kernel using gdb in SKAS mode. > > What happens is that right after running the kernel in gdb, it > > immediately hits a breakpoint

Re: [uml-user] gdb: SIGTRAP at proc_fs.h:190

2005-11-20 Thread Blaisorblade
On Saturday 19 November 2005 14:48, Franz Lenhardt wrote: > Hello, > > I have a problem debugging the uml kernel using gdb in SKAS mode. > What happens is that right after running the kernel in gdb, it immediately > hits a breakpoint in proc_fs.h. Once I continue, it keeps hitting that > breakpoint

[uml-user] gdb: SIGTRAP at proc_fs.h:190

2005-11-19 Thread Franz Lenhardt
Hello, I have a problem debugging the uml kernel using gdb in SKAS mode. What happens is that right after running the kernel in gdb, it immediately hits a breakpoint in proc_fs.h. Once I continue, it keeps hitting that breakpoint a few times, then moves on to break in swab.h etc. Also it's not

[uml-user] gdb w/guest linux 2.6.11

2005-04-29 Thread Garth Goodson
Hi, I'm running a guest Linux 2.6.11 w/uml-2.6.11-bb2 (compiled on 32bit platform) on an AMD 64bit SMP host (2.6.9 unmodified -- no SKAS support) running RedHat FC3. I'm using a 32bit compiled gdb and have the following problem. I'm having trouble stepping through code after a breakpoint. I hit

Re: [uml-user] gdb does not work when using kill -USR1

2005-04-20 Thread Blaisorblade
On Wednesday 20 April 2005 04:57, Yu Dong-W4760C wrote: > when i use kill -USR1 after UML launch, a gdb xterm is prompt > up and pirnt message as: GNU gdb Red Hat Linux (6.1post-1.20040607.52rh) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Publ

[uml-user] gdb does not work when using kill -USR1

2005-04-19 Thread Yu Dong-W4760C
Title: Message when i use kill -USR1 after UML launch, a gdb xterm is prompt up and pirnt message as: GNU gdb Red Hat Linux (6.1post-1.20040607.52rh)Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to