Skip to contentSkip to conversation

Question about UML gdb

uml-devel Alex LIU 3 participants 3 messages Apr 27, 2005 – Apr 28, 2005 User-mode Linux (UML)

lore
Share & tools
lore

Alex LIU

author
#0 lore raw

Hi all:

I have 2 questions about UML gdb:

1.how to get the address of current process UML gdb? It seems "esp & 0xffffe000" is not the correct address.

2.how to read the contents of a file in UML gdb?
The file is an object of struct file. I only know the address of the file.

Thanks a lot!

Alex

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 4 lines

I have 2 questions about UML gdb:

1.how to get the address of current process UML gdb? It seems "esp & 0xffffe000" is not the correct address.

For most applications, the mention address-space is mapped to linux-gate.so, which to my understanding is a part of sysenter/tls implementation in glibc. Either make gdb breakpoint (since processes doing any system calls appear with this setup, or disable tls libraries. Atleast that works for my setup).
To disable tls:
mv /lib/tls /lib/tls-old
and later to re-enable
mv /lib/tls-old /lib/tls

Hopes this gives any help.

Stian

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw

On Wed, 27 Apr 2005, [email protected] moaned:

Quoted 3 lines

For most applications, the mention address-space is mapped to linux-gate.so, which to my understanding is a part of sysenter/tls implementation in glibc.

It is the vsyscall implementation; it's exported by the kernel, not by glibc.

Signature · 13 lines
This is like system("/usr/funky/bin/perl -e 'exec sleep 1'");
   --- Peter da Silva


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel