From: <raj...@wi...> - 2007-05-23 10:03:56
|
Hi Guys, =20 Am a newbie to linux and UML.I have installed UML(mandrake) in my linux system. And I started UML from my host linux system using the command: =20 ./linux ubd0=3Droot_fs eth0=3Dtuntap,,,10.145.93.183 debug =20 I get the gdb xterm and another one for uml. =20 I have written a basic character ram disk driver( which writes n read one byte of ram).This .c is in /root/raj/chardev/ directory in uml and I stored it as chardriver.c and compiled it with proper kernel flags to get chardriver.o =20 This chardriver.o is in uml now. Then I insmoded it and it got loaded. =20 When I typed print *module_list in gdb, it said chardriver is loaded. then i typed: printf "0x%08x", (int)module_list + module_list->size_of_struct it gave me 0xa307b060 but when i asked gdb to add the symbols by: add-symbol-file /root/raj/chardev/chardriver.o 0xa307b060 =20 adding symbol tabel from file "chardriver.o" at .text_addr =3D = 0xa307b060 (y or n) yes to which it replied =20 chardriver.o: No such file or directory =20 =20 how to proceed ? kindly help me out. =20 Regards, Raj =20 =20 |
From: Blaisorblade <bla...@ya...> - 2007-05-23 22:10:02
|
On mercoled=EC 23 maggio 2007, raj...@wi... wrote: > Hi Guys, > > Am a newbie to linux and UML.I have installed UML(mandrake) in my linux > system. And I started UML from my host linux system using the command: > > ./linux ubd0=3Droot_fs eth0=3Dtuntap,,,10.145.93.183 debug > > I get the gdb xterm and another one for uml. > > I have written a basic character ram disk driver( which writes n read > one byte of ram).This .c is in /root/raj/chardev/ directory > in uml=20 You see? It's only in UML. > and =20 > I stored it as chardriver.c and compiled it with proper kernel flags to > get chardriver.o > > This chardriver.o is in uml now. > Then I insmoded it and it got loaded. > > When I typed print *module_list in gdb, it said chardriver is loaded. > then i typed: > printf "0x%08x", (int)module_list + module_list->size_of_struct > it gave me 0xa307b060 > but when i asked gdb to add the symbols by: > add-symbol-file /root/raj/chardev/chardriver.o 0xa307b060 > adding symbol tabel from file "chardriver.o" at .text_addr =3D 0xa307b060 > (y or n) yes > to which it replied > chardriver.o: No such file or directory > how to proceed ? kindly help me out. Your problem seems just that gdb does not find the file chardriver.o, which= is=20 probably inside the guest (you say that in the mail). Gdb has no special=20 access to files inside the VM. Btw, since you have a .o module I assume you are _STILL_ using a 2.4 UML=20 kernel, right? =2D-=20 Inform me of my mistakes, so I can add them to my list! Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade |
From: battipatisainagendra B. <sai...@gm...> - 2007-05-24 05:45:12
|
Hi, Does Suse linux consist of skas patch bult in??? rgds, Prasad |
From: Antoine M. <an...@na...> - 2007-05-24 11:10:24
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 battipatisainagendra Bhavaniprasad wrote: > Hi, > Does Suse linux consist of skas patch bult in??? No, I am not aware of any vendor kernels that contain the skas patch. Antoine > > rgds, > Prasad > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > User-mode-linux-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVXKVGK2zHPGK1rsRCuGVAJ4mnCXhI0o7kNMWEkf0TjdveLZ7WQCbBzqj mOTNylYXEU8bZS8ZMieDOWI= =1OBq -----END PGP SIGNATURE----- |
From: <raj...@wi...> - 2007-05-24 11:17:45
|
Hi, Thanks for your response. The actual problem is I dint compile the module with -g option, that is wy it could nt load the symbols. Its solved now.=20 Thanks guyz.=20 -----Original Message----- From: Antoine Martin [mailto:an...@na...]=20 Sent: Thursday, May 24, 2007 4:40 PM To: battipatisainagendra Bhavaniprasad Cc: Blaisorblade; jd...@ka...; Rajasekhar Pulluru (WT01 - Computing, Storage & Software Products); use...@li...; use...@li... Subject: Re: [uml-devel] doubt in debugging. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 battipatisainagendra Bhavaniprasad wrote: > Hi, > Does Suse linux consist of skas patch bult in??? No, I am not aware of any vendor kernels that contain the skas patch. Antoine >=20 > rgds, > Prasad >=20 > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No=20 > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > User-mode-linux-devel mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel >=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVXKVGK2zHPGK1rsRCuGVAJ4mnCXhI0o7kNMWEkf0TjdveLZ7WQCbBzqj mOTNylYXEU8bZS8ZMieDOWI=3D =3D1OBq -----END PGP SIGNATURE----- |