This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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 libstdc++/53477] pretty printer fails with: Python Exception <type 'exceptions.IndexError'> list index out of range


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53477

--- Comment #7 from asmwarrior <asmwarrior at gmail dot com> ---
Ok, I found another issue on the line "return 0", see the GDB log:

[debug]> p m
[debug]$2 = std::map with 1 elements = {[3] = std::set with 2 elements = {[0] =
5, [1] = 6}}
[debug]>>>>>>cb_gdb:
[debug]> p m[3]
[debug]Attempt to take address of value not located in memory.
[debug]>>>>>>cb_gdb:

"p m" shows the correct value, but I'm not sure why "p m[3]" failed? Is it a
GDB bug?


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