On Friday 04 August 2006 02:03, Rick Spillane wrote: > How do I debug modules with the new UML? I searched around the old > website, and the link pointing to the handy-sounding script that does > it for you is broken > (http://user-mode-linux.sourceforge.net/dl-sf#UML%20utilities), this > link came from http://user-mode-linux.sourceforge.net/debugging.html > under the "debugging modules section". I tried to manually do it the > 'hard way'. However I can't print module_list in the regular debugger > running on linux with the SKAS patch (I am assuming this is a special > symbol either restricted to 2.4 The whole description is about 2.4 - there is some similar list in 2.6 but you must look the source for that.
> , or restricted to the special UML > debugger, and not regular gdb running on SKASed linux, but I don't > know for sure). > In addition I want to break in the module_init routine (the one passed > to module_init and called when the module is first initialized). Break in sys_init_module instead and step by step in sources and in the function call. Search on lwn.net for "module debugging" to have more info about debugging modules in standard Linux; those indications work even in UML, but since you want to debug module_init you must get those info (the relocation info) not with cat /sys but by looking at kernel variables. If I had time I could write an howto, but I don't have such time. However look in the uml-devel and uml-user archives, I answered a similar mail much time ago in more detail. > The primary component of my debugging effort is in a module, so it > behooves me to be able to break in modules. This software has really > been kick-ass so far, Help please? -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user