From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6367 invoked by alias); 17 Jun 2015 08:55:22 -0000 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 Received: (qmail 6345 invoked by uid 89); 17 Jun 2015 08:55:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ob0-f170.google.com Received: from mail-ob0-f170.google.com (HELO mail-ob0-f170.google.com) (209.85.214.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 17 Jun 2015 08:55:17 +0000 Received: by obbgp2 with SMTP id gp2so28715871obb.2 for ; Wed, 17 Jun 2015 01:55:16 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.172.16 with SMTP id v16mr3470269oie.51.1434531315978; Wed, 17 Jun 2015 01:55:15 -0700 (PDT) Received: by 10.76.75.228 with HTTP; Wed, 17 Jun 2015 01:55:15 -0700 (PDT) Date: Wed, 17 Jun 2015 08:55:00 -0000 Message-ID: Subject: Print addresses of all local variables From: Suryansh Kumar To: gdb@sourceware.org Cc: Vini Kanvar Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00037.txt.bz2 Print addresses ---------------- I want to print the addresses of all the local and global variables which are being used in the current frame and store them in a file. "info local" prints the values of all local variables. I need something to print the addresses in a similar way. Is there any built in command for it? GDB macro coding language tutorial ----------------------------------- I tried writing a gdb script for the same using the gdb macro coding language, but I am not able to find sufficient material for it. Any handbook or tutorial on the gdb scripting language which covers its usage and syntax in detail is urgently needed. I need to know if we can declare arrays and strings, and perform comparisons on them. "step" into non-library functions ---------------------------------- I need to store the data at the end of every function when it is executed using a gdb script. I am not able to use the 'step' command in the script as it also steps into the library functions, which I don't need. Need a way to run step conditionally on user functions only. -- Regards, Suryansh D Kumar