* [uml-devel] Question about UML gdb
@ 2005-04-27 9:04 Alex LIU
2005-04-27 21:50 ` stian
0 siblings, 1 reply; 3+ messages in thread
From: Alex LIU @ 2005-04-27 9:04 UTC (permalink / raw)
To: UML-dev
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] Question about UML gdb
2005-04-27 9:04 [uml-devel] Question about UML gdb Alex LIU
@ 2005-04-27 21:50 ` stian
2005-04-28 11:29 ` Nix
0 siblings, 1 reply; 3+ messages in thread
From: stian @ 2005-04-27 21:50 UTC (permalink / raw)
To: Alex LIU; +Cc: UML-dev
> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] Question about UML gdb
2005-04-27 21:50 ` stian
@ 2005-04-28 11:29 ` Nix
0 siblings, 0 replies; 3+ messages in thread
From: Nix @ 2005-04-28 11:29 UTC (permalink / raw)
To: stian; +Cc: Alex LIU, UML-dev
On Wed, 27 Apr 2005, stian@nixia.no moaned:
> 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.
--
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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-28 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 9:04 [uml-devel] Question about UML gdb Alex LIU
2005-04-27 21:50 ` stian
2005-04-28 11:29 ` Nix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox