Re: bug in debugger?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Check the following:

- Is the code optimized?

- Is the value of the pointer you use to view the data shown correctly by the debugger?
E.g. the value of lptr in the case of calloc (try to output the value to the console
or to debug output, and compare with the value shown by the debugger)

- If the pointer value is shown correctly, look at the raw memory in Memory window
(again, better with calloc case, since it's simpler).
Is the data correct in Memory window?

- Debug the same application with another debugger but on the same machine
(e.g. use WinDbg). Will the values be shown correctly by another debugger?

http://www.microsoft.com/whdc/ddk/debugging/default.mspx

Regards,
Oleg
[VC++ MVP]










.



Relevant Pages

  • Re: Whats the position of pointers
    ... something as core and basic is pointer usage. ... The basics ARE simple and ... any teacher worth his salt can get it across with a debugger and an OHP ... Normally one is only interested in ones local implementation. ...
    (comp.lang.c)
  • Re: Whats the position of pointers
    ... something as core and basic is pointer usage. ... The basics ARE simple and ... any teacher worth his salt can get it across with a debugger and an OHP ... If you are teaching a language then ...
    (comp.lang.c)
  • Re: Dr. Watson crash dump in Visual C++
    ... > This pointer is often wrong in optimized code (the optimizer ... > doesn't generate enough debug info for the debugger to find it). ... > windbg to dump the stack and look for pointers to vtables: ...
    (microsoft.public.vc.debugger)
  • Re: debugger extentions ADDIN, how to resolve pointers?
    ... The other was to walk the first record of an ADO recordset. ... They are implemented in a dll which is called by the debugger through ... The problem is that when I try to evaluate a pointer to an ADO recordset, ... COleDateTime works OK because I read a copy of the whole object. ...
    (microsoft.public.vc.mfc)
  • Re: Please help me overcome the segmentation fault
    ... int *p, *q; ... I'm temped to say that debugger is undefined, ... No, list is an array of ints, not a pointer. ... If that had happened after passing list to an external routine, ...
    (comp.lang.c)