VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
6 Replies Last post: Jan 31, 2010 10:52 PM by slava_malyugin  

Connecting to x64 target posted: Nov 5, 2009 7:41 PM

Click to view kernelgrunt's profile Lurker 5 posts since
Nov 5, 2009

I am trying to hook up to a Win7 x64 boot in VMWare WS 6.5 using host platform XP x64. GNU gdb 6.3 from MinGW. Settings in vmx file:

bios.bootDelay = "3000"
debugStub.hideBreakpoints = "TRUE"
#debugStub.listen.guest32 = "TRUE"
#debugStub.listen.guest32.remote = "TRUE"
#monitor.debugOnStartGuest32 = "TRUE"
debugStub.listen.guest64 = "TRUE"
debugStub.listen.guest64.remote = "TRUE"

From gdb command-line:

(gdb) set architecture i386:x86-64
The target architecture is assumed to be i386:x86-64
(gdb) target remote localhost:8864
Remote debugging using localhost:8864
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout


If I use the 32-bit settings I can connect just fine at boot and step all the way until long mode is enabled.

Using the 64-bit settings I have tried connecting at boot, and I have tried connecting after I know 64-bit instructions are executing. Same behavior...no luck. Am I doing something obviously wrong?

Re: Connecting to x64 target

2. Nov 9, 2009 11:11 AM in response to: kernelgrunt
Click to view ecl100's profile Enthusiast VMware Employees 48 posts since
Sep 24, 2007
Hi, kernelgrunt. Would you enter "set debug remote 1" in gdb before "target remote..." and post what you see here?

Re: Connecting to x64 target

6. Jan 31, 2010 10:52 PM in response to: kernelgrunt
Click to view slava_malyugin's profile Enthusiast VMware Employees 61 posts since
May 14, 2007

Hi kernelgrunt,

You are in the right forum. From the output, I suspect that you are catching boot loader while it is still in the 32-bit mode. You are trying to connect to 64-bit side of the debug stub through port 8864, but stub sends back 32-bit version of registers, confusing the debugger. That would be one possibility, and the other one would be a bug in the debug stub. You may want to try the most recent Workstation build to see if the problem persists, and if so, please try attaching in 32-bit mode. I hope this helps.

Sincerely,

Vyacheslav (Slava) Malyugin

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and 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

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities