• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 2nd try GDB and c++ template class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2nd try GDB and c++ template class


  • Subject: Re: 2nd try GDB and c++ template class
  • From: Andy Wiese <email@hidden>
  • Date: Thu, 4 Nov 2004 01:28:33 -0600


On Nov 3, 2004, at 6:04 PM, Luis E Flores wrote:




Hello, I am doing some c++ List class project. At the time of troubleshooting I use gdb and break points. I am able to stop at the break point and look at the data pointed by the List pointer. I do this by using the arrow next to the List pointer, this rocks !!.

The problem that i have is that if the class get template(template<class T>) I can't follow the pointer any more. The little arrow does not appear anymore and it just show me the hex value of the pointer. It also classified the type as a struct, for example; if the class is not template the arrow appear and the type is Node *, in the other hand, if the class is template, the arrow disappear, I get just the hex value of the pointer and the type change to struct Node<int> *

any ideas?

thanks

-luis




Sorry Luis, I have no answer for you, just a related question.
It sounds like Luis is asking how to inspect variables that contain template references. I would like to be able to step into STL code. It seems that I can step into my own template code, but the debugger seems to lose the source when I step into the STL. Is there a way get the debugger to show the STL code as I step through it?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: 2nd try GDB and c++ template class
      • From: Wade Tregaskis <email@hidden>
References: 
 >2nd try GDB and c++ template class (From: Luis E Flores <email@hidden>)

  • Prev by Date: Re: ZeroLink unknown symbol __ZTv0_n12_NSoD0Ev
  • Next by Date: Re: 2nd try GDB and c++ template class
  • Previous by thread: 2nd try GDB and c++ template class
  • Next by thread: Re: 2nd try GDB and c++ template class
  • Index(es):
    • Date
    • Thread