* [uml-devel] doubt in debugging.
@ 2007-05-23 10:07 rajasekhar.pulluru
2007-05-23 22:09 ` Blaisorblade
0 siblings, 1 reply; 5+ messages in thread
From: rajasekhar.pulluru @ 2007-05-23 10:07 UTC (permalink / raw)
To: user-mode-linux-devel, user-mode-linux-user; +Cc: jdike
[-- Attachment #1.1: Type: text/plain, Size: 1091 bytes --]
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=root_fs eth0=tuntap,,,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 and
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 = 0xa307b060
(y or n) yes
to which it replied
chardriver.o: No such file or directory
how to proceed ? kindly help me out.
Regards,
Raj
[-- Attachment #1.2: Type: text/html, Size: 4279 bytes --]
[-- Attachment #2: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
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/
[-- Attachment #3: Type: text/plain, Size: 194 bytes --]
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [uml-devel] doubt in debugging.
2007-05-23 10:07 [uml-devel] doubt in debugging rajasekhar.pulluru
@ 2007-05-23 22:09 ` Blaisorblade
2007-05-24 5:45 ` battipatisainagendra Bhavaniprasad
0 siblings, 1 reply; 5+ messages in thread
From: Blaisorblade @ 2007-05-23 22:09 UTC (permalink / raw)
To: user-mode-linux-devel; +Cc: jdike, rajasekhar.pulluru, user-mode-linux-user
On mercoledì 23 maggio 2007, rajasekhar.pulluru@wipro.com 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=root_fs eth0=tuntap,,,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
You see? It's only in UML.
> and
> 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 = 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
probably inside the guest (you say that in the mail). Gdb has no special
access to files inside the VM.
Btw, since you have a .o module I assume you are _STILL_ using a 2.4 UML
kernel, right?
--
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------------------------
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [uml-devel] doubt in debugging.
2007-05-23 22:09 ` Blaisorblade
@ 2007-05-24 5:45 ` battipatisainagendra Bhavaniprasad
2007-05-24 11:10 ` Antoine Martin
0 siblings, 1 reply; 5+ messages in thread
From: battipatisainagendra Bhavaniprasad @ 2007-05-24 5:45 UTC (permalink / raw)
To: Blaisorblade
Cc: jdike, rajasekhar.pulluru, user-mode-linux-user,
user-mode-linux-devel
Hi,
Does Suse linux consist of skas patch bult in???
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [uml-devel] doubt in debugging.
2007-05-24 5:45 ` battipatisainagendra Bhavaniprasad
@ 2007-05-24 11:10 ` Antoine Martin
2007-05-24 11:21 ` rajasekhar.pulluru
0 siblings, 1 reply; 5+ messages in thread
From: Antoine Martin @ 2007-05-24 11:10 UTC (permalink / raw)
To: battipatisainagendra Bhavaniprasad
Cc: jdike, Blaisorblade, rajasekhar.pulluru, user-mode-linux-devel,
user-mode-linux-user
-----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
> User-mode-linux-devel@lists.sourceforge.net
> 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-----
-------------------------------------------------------------------------
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] doubt in debugging.
2007-05-24 11:10 ` Antoine Martin
@ 2007-05-24 11:21 ` rajasekhar.pulluru
0 siblings, 0 replies; 5+ messages in thread
From: rajasekhar.pulluru @ 2007-05-24 11:21 UTC (permalink / raw)
To: antoine, sainagendrabhavaniprasad
Cc: jdike, blaisorblade, user-mode-linux-devel, user-mode-linux-user
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.
Thanks guyz.
-----Original Message-----
From: Antoine Martin [mailto:antoine@nagafix.co.uk]
Sent: Thursday, May 24, 2007 4:40 PM
To: battipatisainagendra Bhavaniprasad
Cc: Blaisorblade; jdike@karaya.com; Rajasekhar Pulluru (WT01 -
Computing, Storage & Software Products);
user-mode-linux-user@lists.sourceforge.net;
user-mode-linux-devel@lists.sourceforge.net
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
>
> 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
> User-mode-linux-devel@lists.sourceforge.net
> 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-----
-------------------------------------------------------------------------
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-24 11:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 10:07 [uml-devel] doubt in debugging rajasekhar.pulluru
2007-05-23 22:09 ` Blaisorblade
2007-05-24 5:45 ` battipatisainagendra Bhavaniprasad
2007-05-24 11:10 ` Antoine Martin
2007-05-24 11:21 ` rajasekhar.pulluru
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.