public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/14063] New: typedef Symbol not loaded before original type visited
@ 2012-05-05  8:56 reeze.xia at gmail dot com
  2012-05-05 10:59 ` [Bug c++/14063] " reeze.xia at gmail dot com
  2012-05-21 20:52 ` tromey at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: reeze.xia at gmail dot com @ 2012-05-05  8:56 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/14063] typedef Symbol not loaded before original type visited
  2012-05-05  8:56 [Bug c++/14063] New: typedef Symbol not loaded before original type visited reeze.xia at gmail dot com
@ 2012-05-05 10:59 ` reeze.xia at gmail dot com
  2012-05-21 20:52 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: reeze.xia at gmail dot com @ 2012-05-05 10:59 UTC (permalink / raw)
  To: gdb-prs

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

reeze <reeze.xia at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |https://bugs.php.net/bug.ph
                   |                            |p?id=61936
                 CC|                            |reeze.xia at gmail dot com

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/14063] typedef Symbol not loaded before original type visited
  2012-05-05  8:56 [Bug c++/14063] New: typedef Symbol not loaded before original type visited reeze.xia at gmail dot com
  2012-05-05 10:59 ` [Bug c++/14063] " reeze.xia at gmail dot com
@ 2012-05-21 20:52 ` tromey at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2012-05-21 20:52 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |INVALID

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-05-21 20:51:49 UTC ---
I think you either have to try the FSF gdb, or report this bug to Apple.

-- 
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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-21 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-05  8:56 [Bug c++/14063] New: typedef Symbol not loaded before original type visited reeze.xia at gmail dot com
2012-05-05 10:59 ` [Bug c++/14063] " reeze.xia at gmail dot com
2012-05-21 20:52 ` tromey at redhat dot com

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).