This is the mail archive of the gdb@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]

Re: how to view content in stl vector


even better.... after I read you last mail entirely


1. start and  run gdb:

3. let gdb say what it has to say:
    output 'bool foo<int>'
    {bool (int)} 0x8048b66 <bool foo<int>(int)>

4. call it like this:
    p ({bool (int)} 0x8048b66)(i)
    $1 = true



Maik




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