Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » watchpoints on dynamic memory
watchpoints on dynamic memory [message #161598] Tue, 10 January 2006 22:08 Go to next message
Eclipse UserFriend
Originally posted by: hal.--remove-the-obvious--onsnet.nu

Hi

I am trying to debug a c++ program which segfaults somewhere in the
middle of a simulation run. Rather than stepping through the program
until I hit the offending statement I would like to set a watchpoint on
the address that it tries to access.
Afaik this can only be done on global variables. Is that right or did I
miss something?

Jan van Mastbergen
Re: watchpoints on dynamic memory [message #161606 is a reply to message #161598] Tue, 10 January 2006 22:27 Go to previous message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

The option to set a watchpoint on arbitrary expression was available for CDT
2.1.x but it didn't make to the current release for various reasons. We are
considering to bring it back in the next version.
The workaround is to use the gdb console and the "watch", "awatch" and
"rwatch" gdb commands.

"Jan van Mastbergen" <hal@--remove-the-obvious--onsnet.nu> wrote in message
news:dq1ba2$ksu$1@utils.eclipse.org...
> Hi
>
> I am trying to debug a c++ program which segfaults somewhere in the middle
> of a simulation run. Rather than stepping through the program until I hit
> the offending statement I would like to set a watchpoint on the address
> that it tries to access.
> Afaik this can only be done on global variables. Is that right or did I
> miss something?
>
> Jan van Mastbergen
Previous Topic:g++.exe: no input files on mingw
Next Topic:Keywords Highlighted
Goto Forum:
  


Current Time: Sun Sep 01 07:44:16 GMT 2024

Powered by FUDForum. Page generated in 0.03199 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top