VMware

This Question is Answered

1 "helpful" answer available (6 pts)
4 Replies Last post: Oct 9, 2009 1:59 PM by rruvinsk  

Loading symbols for Linux user processes posted: Oct 8, 2009 2:44 PM

Click to view rruvinsk's profile Novice 3 posts since
Oct 8, 2009

Hello,

I'm trying to debug a multi-threaded application running inside a VM, both live and in replay mode. The VM is running RHEL 5, kernel 2.6.18-164-2-1. I've tried running the remote gdb on the host for this VM (also a RHEL 5 machine) as well as a Ubuntu 8.04 box. The results in both cases were identical. I'm running VMWare Workstation 6.5.3.

I can attach to the VM and, after issuing the "monitor linuxoffsets" command, see all processes. I can switch between them using the 'thread' command. However, I can't see backtraces. I suspect this is because the symbols aren't being loaded properly.

If I try to debug a live application, gdb makes no attempt to load the symbols at all, no matter what I do.

If I try to debug a replay session, gdb does attempt to load the symbols after I issue the "target remote" command. However, it looks for them on the machine where gdb is running, not on the guest being debugged. I have tried copying all required libraries to the machine where gdb is running and setting the solib-search-path and solib-absolute-prefix options. If I do that, gdb claims to successfully load all the symbols from the libraries, but the stacks are for the most part mangled. If I try to set breakpoints, they never get triggered.

I was wondering what is the correct procedure to get this to work. The User Manual has instructions for some of this, but they seem to be for Windows. gdb and Linux aren't at all mentioned.

Thanks,

Ray

Re: Loading symbols for Linux user processes

1. Oct 8, 2009 2:54 PM in response to: rruvinsk
Click to view xjchen77's profile Novice 5 posts since
Aug 19, 2008

Hi Ray,

Workstation 6.5.3 doesn't support gdb replay debugging. We do, however, just released a new Workstation Release Candidate, which supports Linux gdb replay debugging. You could download it from http://communities.vmware.com/community/beta/workstation?view=overview. The gdb replay debugging user manual is at http://communities.vmware.com/docs/DOC-10714. Let us know how it goes.

thanks,

eric

Re: Loading symbols for Linux user processes

3. Oct 8, 2009 3:09 PM in response to: rruvinsk
Click to view xjchen77's profile Novice 5 posts since
Aug 19, 2008

Linux live debugging is supported since WS 6.0, so 6.5.3 should be fine. Linux replay debugging is a new feature in this RC, not available in 6.5.3. If you want to use replay debugging, you need to download the RC. Hope this clarifies.

thanks,

eric

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities