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 ext3_fill_super >>> gdb) run >>> >>> >> Can you bring UML up and attach gdb to it later? That seems to be reliable. >> >> gdb has always had problems with UML, and I've never understood why. >> >> Jeff >> >> >> > I've been ok thus far starting linux from gdb, but I would like to > attach or otherwise have the gdb console at all times while running uml. > How can I do this? The documentation on user-mode-linux.sf.net hasn't > worked for me. > > I have CONFIG_DEBUG_INFO set in .config. > > $ ./linux ubd0=images/x debug stderr=1 > > But that does not bring up an extra xterm with a gdb console. > 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.
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user