This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14063] New: typedef Symbol not loaded before original typevisited


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]