Discussion:
64-bit debug switch
(too old to reply)
Anil Nagubadi
2009-04-11 19:42:31 UTC
Permalink
In VC++ 9.0 -- is there a swith for 64-bit compilations such that the first
4 parameters that are passed in registers
rcx,rdx, r8,r9 -- can be stored in their "home locations" in the callee
prolog.

I need this for better debuging.

I have tried /Zi -- generate full debug symbols and /Od -- disable
optimization. But, they don't this.

I need this when I am debugging, I need to look at previous call frames
parameters.

Can anyone help>
Leo Violette
2009-04-12 11:23:43 UTC
Permalink
I'm not really sure what specifically you are asking, but if you have
installed the 64-bit components of Visual Studio (they are optionally
installed in VS 2005/VS 2008), and created a project for the Win32
configuration.

You can create a 64-bit configuration by adding a new configuration and
basing it off the Win32 configuration.

You can do this by right-clicking on the solution file in the Solution
Explorer and selecting "Configuration Manager..."
In the "Active solution platform:" dropdown, choose "<New...>" if x64 isn't
already in there.
Choose x64 and say copy settings from Win32.

After this, rebuild your project, making sure to select the x64
configuration.
Post by Anil Nagubadi
In VC++ 9.0 -- is there a swith for 64-bit compilations such that the
first 4 parameters that are passed in registers
rcx,rdx, r8,r9 -- can be stored in their "home locations" in the callee
prolog.
I need this for better debuging.
I have tried /Zi -- generate full debug symbols and /Od -- disable
optimization. But, they don't this.
I need this when I am debugging, I need to look at previous call frames
parameters.
Can anyone help>
Scot T Brennecke
2009-04-18 07:42:26 UTC
Permalink
In VC++ 9.0 -- is there a swith for 64-bit compilations such that the first 4 parameters that are
passed in registers
rcx,rdx, r8,r9 -- can be stored in their "home locations" in the callee prolog.
I need this for better debuging.
I have tried /Zi -- generate full debug symbols and /Od -- disable optimization. But, they don't
this.
I need this when I am debugging, I need to look at previous call frames parameters.
Can anyone help>
Anil,
Did you try /homeparams already?

http://msdn.microsoft.com/en-us/library/6exwh0y6.aspx

Scot

Continue reading on narkive:
Loading...