🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #1154

how to set watchpoints before memory allocated

#1154
From: yichun
Date: Wed, 04 Jul 2007 03:11
11 lines
1416 bytes
in my gdb (version 6.1), the watch point has to be after the memory
allocated, or the error message

    Cannot access memory at address 0x557e54f8

will prevent me to continue. Is there any way for work-around? I know
dbx from SUN can watch any arbitrary memory address before the program
run.

thanks,
-yichun.
Technical Details
Message-ID: <1183518700.952530.171020@o11g2000prd.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o11g2000prd.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f5053,c40d5f6a02d7e66,start
X-Google-Attributes: gidf5053,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o11g2000prd.googlegroups.com!not-for-mail
From:  yichun <wangych@gmail.com>
Newsgroups: gnu.gdb.bug
Subject: how to set watchpoints before memory allocated
Date: Wed, 04 Jul 2007 03:11:40 -0000
Organization: http://groups.google.com
Lines: 12
Message-ID: <1183518700.952530.171020@o11g2000prd.googlegroups.com>
NNTP-Posting-Host: 202.147.20.60
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
X-Trace: posting.google.com 1183518701 3034 127.0.0.1 (4 Jul 2007 03:11:41 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 4 Jul 2007 03:11:41 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o11g2000prd.googlegroups.com; posting-host=202.147.20.60;
   posting-account=obf1wg0AAABsnYV0xQa7ZgXV-YPeUCwd