Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2008

Tip: Looking for answers? Try searching our database.

memory breakpoints/buffer overflows in the VC++ 2005 debugger

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jonathan Wilson - 16 Feb 2008 11:55 GMT
I have an app written in native C++ using Visual C++ 2005 (pro edition).
How can I set a memory breakpoint in the debugger for this app?
Or alternatively, is there another source level debugger I can use that
will let me set such breakpoints?

Note that moving to Visual Studio 2008 is not an option.
Bob Altman - 16 Feb 2008 16:55 GMT
Does VS 2008 have this feature?

Way back in my VAX/VMS days, the debugger had a feature called a "watch
point", which would break into the debugger when data at a specified memory
address was modified.  The debugger did this by write protecting the page
containing the watch point, then handling the resultant access violations,
completing those that don't involve the watch point and breaking into the
debugger on those that do.

Bob

>I have an app written in native C++ using Visual C++ 2005 (pro edition).
>How can I set a memory breakpoint in the debugger for this app?
> Or alternatively, is there another source level debugger I can use that
> will let me set such breakpoints?
>
> Note that moving to Visual Studio 2008 is not an option.
Jochen Kalmbach [MVP] - 16 Feb 2008 17:12 GMT
Hi Jonathan!
> I have an app written in native C++ using Visual C++ 2005 (pro edition).
> How can I set a memory breakpoint in the debugger for this app?
> Or alternatively, is there another source level debugger I can use that
> will let me set such breakpoints?

Start your project in the debugger. Set some breakpoint where the
variable is accessible.
Then in the menu:
Debug|New Breakpoint|New Data Breakpoint...

The specify either the address or the variable name.

Depending on the processor, normally 4 data breakpoints are natively
supported.

PS: Memory(Data)-Breakpoints are a avilable since several years in VS...

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.