From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22489 invoked by alias); 15 Jan 2012 02:51:28 -0000 Received: (qmail 22481 invoked by uid 22791); 15 Jan 2012 02:51:26 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f41.google.com (HELO mail-lpp01m010-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Jan 2012 02:51:13 +0000 Received: by lagj5 with SMTP id j5so1176988lag.0 for ; Sat, 14 Jan 2012 18:51:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.39.98 with SMTP id o2mr1692951lbk.87.1326595871880; Sat, 14 Jan 2012 18:51:11 -0800 (PST) Received: by 10.112.90.21 with HTTP; Sat, 14 Jan 2012 18:51:11 -0800 (PST) Date: Sun, 15 Jan 2012 02:51:00 -0000 Message-ID: Subject: gdb user defined function From: Sinbad To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00050.txt.bz2 i am trying to write a user-defined function in gdb. while analyzing the core is it possible to see if a pointer variable is accessible or not inside a gdb user-defined function. for example. (gdb) p *ptr cannot access memory at address 0x35336 is there any way to find this inside a gdb function. i need something as follows define sub is_accessible(ptr) end