From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16448 invoked by alias); 19 Oct 2006 20:10:56 -0000 Received: (qmail 16439 invoked by uid 22791); 19 Oct 2006 20:10:55 -0000 X-Spam-Check-By: sourceware.org Received: from smtp10.hccnet.nl (HELO smtp10.hccnet.nl) (62.251.0.13) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 19 Oct 2006 20:10:52 +0000 Received: from [192.168.0.151] by smtp10.hccnet.nl via [80.100.236.49] with ESMTP for id k9JKAlXM020156 (8.13.6/2.05); Thu, 19 Oct 2006 22:10:47 +0200 (MET DST) Message-ID: <4537DBC6.1030807@hccnet.nl> Date: Thu, 19 Oct 2006 20:10:00 -0000 From: Erik Leunissen User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gdb@sourceware.org Subject: breakpoint for accessing memory location Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Status: Clean X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00143.txt.bz2 Hi, I've got a shared lib that I programmed to store some data on the heap in order to retrieve them later. The main program which loads the shared lib appears to overwrite that location in memory, before the next time I want to use it (which is weird because the main program shouldn't have a clue about this particular action of the shared lib). So, in order to find out which part of the main program is being nasty, I want to set some kind of breakpoint that alerts me whenever that memory location is being written to. Is that possible using gdb? (P.S. In the manual, I found the gdb command [break *address], but from its behaviour, I think it's meant to do something different from what I want.) Thanks for any help, Erik Leunissen