Bug 216159 - View Memory action retrieves expression value instead of expression address
Summary: View Memory action retrieves expression value instead of expression address
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 4.0.3   Edit
Assignee: Ken Ryall CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-01-22 11:47 EST by Tim Kelly CLA
Modified: 2008-06-22 02:40 EDT (History)
1 user (show)

See Also:


Attachments
proposal. (1.64 KB, patch)
2008-01-22 11:47 EST, Tim Kelly CLA
bjorn.freeman-benson: iplog+
tim.kelly: review?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Kelly CLA 2008-01-22 11:47:51 EST
Created attachment 87533 [details]
proposal.

Build ID: 4.0.3

Steps To Reproduce:


More information:
This may vary depending on how you implement your back-end debugger but the attach patch just makes a one line change to get the address from the stack frame instead of just getting the variable value. 

There was a comment suggesting there was a better way to do this, maybe this is it? 

It works for the Carbide debugger at least, where previously if you tried to view memory the address would be the value of the variable not the address of the variable. Because of this I set the severity to critical.
Comment 1 Ken Ryall CLA 2008-02-07 05:53:22 EST
Committed patch.