watchpoint

Freescale CodeWarrior : Register watchpoint on HCS08

I need to break the debugging when I-bit of SR (global interrupt mask) changes it's state. Freescale CodeWarrior 6.1 MCU: HCS08 ...

watchpoint in GDB

Hi, If I set a watchpoint for a variable local to the current scope, it will be auto deleted when going out of the scope. Is there any way to set it once and keep it auto alive whenever entering the same scope? Is there anyway to set conditional watchpoint, like "watch var1 if var1==0"? In my case, the condition does't work. gdb stops ...

iphone Xcode 3.1.4 3.1.2 SDK, watchpoints don't work?

If I try to set a watchpoint I get a gdb error: " can't clear hardware watchpoints without the 'Z2' (write-watchpoint) packet " Then it seems to corrupt the device (on restarting the device it complains that the OS is too old for the SDK, even though it's OS 3.1.2). I've got a bug to track down that really would be easy to track down ...

How to set up gdb watchpoints in a program consisting of many files in C++ ?

I am trying to set up a watchpoint to monitor a variable in a package consisting of many C++ files. There are many files abc.cpp qwe.cpp .. xyz.cpp and so on I want to monitor a variable 'temp' in some function qwerty() in the file abc.cpp How do I set the watchpoint ? I tried watch abc.cpp::temp watch abc.cpp:temp watch temp but...

GDB hardware watchpoint very slow - why?

On a large C application, I have set a hardware watchpoint on a memory address as follows: (gdb) watch *0x12F5D58 Hardware watchpoint 3: *0x12F5D58 As you can see, it's a hardware watchpoint, not software, which would explain the slowness. Now the application running time under debugger has changed from less than ten seconds to one h...

Linux C debugging library to detect memory corruptions

When working sometimes ago on an embedded system with a simple MMU, I used to program dynamically this MMU to detect memory corruptions. For instance, at some moment at runtime, the foo variable was overwritten with some unexpected data (probably by a dangling pointer or whatever). So I added the additional debugging code : at init, t...

How to set watchpoint via procfs in Linux?

Hi I'm trying to build a debugger-like program under ubuntu linux and I've run into some problems... From what I've heard, the /proc vfs provides mechanisms to create watchpoints, but I can't seem to find out how. Some man pages pointed me to 'control file's, supposedly located at /proc//ctl, but I can't find this file anywhere. (Perh...

gdb watch pointer that is not valid yet

Hi all, I have the following code: #include <stdlib.h> #include <stdio.h> #define SIZE 100 int* arr; main() { int i; arr = (int*)malloc(SIZE*sizeof(int)); if (arr == NULL) { printf("Could not allocate SIZE(=%d)", SIZE); } for (i=0; i<SIZE; i++) { arr[i] = 0; } free(arr); } I wan't to...

Setting a watch point for a variable with Qt Creator

How to say to Qt Creator to stop debuging if an object has been changed and show the line where it is changed? ...

GDB: Watchpoint a fixed address.

For my current embedded application I am trying to put GDB watch point at a fixed memory address. As an example, my application updates the following address: 0x10793ad0. In order to be sure which part of the code is corrupting the value, I tried watch 0x10793ad0 Even though GDB does not print any error after this, it is not able to ...