Re: Does gdb show C++ source code?
On Mar 6, 6:07 pm, Christopher <cp...@austin.rr.com> wrote:
On Mar 6, 4:01 pm, Ramon F Herrera <ra...@conexus.net> wrote:
I am running gdb on a C++ executable. The code that I wrote looks like
this:
itr = doc.GetFieldIterator();
while (itr.HasNext()) {
Field field = itr.Current();
// Console.WriteLine("Field name: {0}", field.GetName());
// printf("Field name: %s\n", (char *)field.GetName());
printf("Hola %d\n", i);
itr.Next();
i++;
}
However, gdb shows some very different code:
new_allocator() throw() { }
int i = 1;
inline Iterator() : mp_impl(0) {}
new_allocator() throw() { }
basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
inline PDFDoc::PDFDoc (const char* filepath) {
basic_string<_CharT, _Traits, _Alloc> __str(__lhs);
{ return strlen(__s); }
Is there any way I can have gdb display higher level code?
TIA,
-RFH
Consult a GDB newsgroup, forum, after first consulting the manual. The
question is off topic here.
There is no such thing as a gdb newsgroup.
Are you saying that C++ developers do not know anything about gdb and
its applicability to C++ code?
I am sure a lot of people would like to disagree.
-RFH