From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4850 invoked by alias); 2 Mar 2012 02:57:30 -0000 Received: (qmail 4838 invoked by uid 22791); 2 Mar 2012 02:57:29 -0000 X-SWARE-Spam-Status: No, hits=-2.6 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-tul01m020-f169.google.com (HELO mail-tul01m020-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 02:57:18 +0000 Received: by obbta14 with SMTP id ta14so823337obb.0 for ; Thu, 01 Mar 2012 18:57:17 -0800 (PST) Received-SPF: pass (google.com: domain of j.vimal@gmail.com designates 10.182.11.71 as permitted sender) client-ip=10.182.11.71; Authentication-Results: mr.google.com; spf=pass (google.com: domain of j.vimal@gmail.com designates 10.182.11.71 as permitted sender) smtp.mail=j.vimal@gmail.com; dkim=pass header.i=j.vimal@gmail.com Received: from mr.google.com ([10.182.11.71]) by 10.182.11.71 with SMTP id o7mr2939543obb.58.1330657037289 (num_hops = 1); Thu, 01 Mar 2012 18:57:17 -0800 (PST) Received: by 10.182.11.71 with SMTP id o7mr2553980obb.58.1330657037217; Thu, 01 Mar 2012 18:57:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.33.134 with HTTP; Thu, 1 Mar 2012 18:56:57 -0800 (PST) From: Vimal Date: Fri, 02 Mar 2012 02:57:00 -0000 Message-ID: Subject: Collecting description of types from symbol table 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-03/txt/msg00000.txt.bz2 I would like to dump the collect the output of the "ptype" command for all possible types that gdb is aware of. For example, the following output is very useful when debugging the kernel, and I would like to collect the output of all such types in the kernel for reference. Could someone tell me rough ideas of how this is stored in the executable, and how to dump this? (gdb) ptype raw_spinlock_t type = struct raw_spinlock { arch_spinlock_t raw_lock; unsigned int magic; unsigned int owner_cpu; void *owner; struct lockdep_map dep_map; } Thanks, -- Vimal