public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "reeze.xia at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/14063] New: typedef Symbol not loaded before original type visited
Date: Sat, 05 May 2012 08:56:00 -0000	[thread overview]
Message-ID: <bug-14063-4717@http.sourceware.org/bugzilla/> (raw)

http://sourceware.org/bugzilla/show_bug.cgi?id=14063

             Bug #: 14063
           Summary: typedef Symbol not loaded before original type visited
           Product: gdb
           Version: 6.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: reeze.xia@gmail.com
    Classification: Unclassified


Hi, 
     I know it maybe wrong place for apple version gdb, I write this
is ask wheth gdb will lazy load symbol? 
   I'm debug PHP in debug/zts model. typedefed type zend_executor_globals can't
be access.  if I info type or bt type zend_executor_globals will be available.

   Thanks for you time. 

----------------------------------------------
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ....... done

(gdb) b gc_zval_possible_root
Breakpoint 1 at 0x1005aa670: file zend_gc.c, line 132.
(gdb) r -r '<?php gc_collect_cycles(); ?>'
Starting program: /Users/reeze/Opensource/php-src/sapi/cli/php -r '<?php
gc_collect_cycles(); ?>'
Reading symbols for shared libraries ++++++.......................... done

Breakpoint 1, gc_zval_possible_root (zv=0x100dcbae0, tsrm_ls=0x100e009f0) at
zend_gc.c:132
132        if (UNEXPECTED(GC_G(free_list) != NULL &&
(gdb) printzv zv
No symbol "zend_executor_globals" in current context.  <---- can't access here
(gdb) p zend_executor_globals
No symbol "zend_executor_globals" in current context.
(gdb) p struct _zend_executor_globals       
Attempt to use a type name as an expression
(gdb) p zend_executor_globals
Attempt to use a type name as an expression  <-------------- It can be access
now. confused.:(

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


             reply	other threads:[~2012-05-05  8:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05  8:56 reeze.xia at gmail dot com [this message]
2012-05-05 10:59 ` [Bug c++/14063] " reeze.xia at gmail dot com
2012-05-21 20:52 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-14063-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).