User forums > Help
Pretty Printers working only for global variables
ollydbg:
--- Code: ---[debug]> print q
[debug]$4 = {c = {<std::_Deque_base<int, std::allocator<int> >> = {_M_impl = {<std::allocator<int>> = {<__gnu_cxx::new_allocator<int>> = {<No data fields>}, <No data fields>}, _M_map = 0x5427e0, _M_map_size = 8, _M_start = {_M_cur = 0x544d00, _M_first = 0x544d00, _M_last = 0x544f00, _M_node = 0x5427f8}, _M_finish = {_M_cur = 0x544d08, _M_first = 0x544d00, _M_last = 0x544f00, _M_node = 0x5427f8}}}, <No data fields>}}
[debug]>>>>>>cb_gdb:
$4 = {c = {<std::_Deque_base<int, std::allocator<int> >> = {_M_impl = {<std::allocator<int>> = {<__gnu_cxx::new_allocator<int>> = {<No data fields>}, <No data fields>}, _M_map = 0x5427e0, _M_map_size = 8, _M_start = {_M_cur = 0x544d00, _M_first = 0x544d00, _M_last = 0x544f00, _M_node = 0x5427f8}, _M_finish = {_M_cur = 0x544d08, _M_first = 0x544d00, _M_last = 0x544f00, _M_node = 0x5427f8}}}, <No data fields>}}
> print m
[debug]> print m
[debug]$5 = {_M_t = {_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<int const, int> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, int> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x544fc0, _M_left = 0x544fc0, _M_right = 0x544fc0}, _M_node_count = 1}}}
[debug]>>>>>>cb_gdb:
$5 = {_M_t = {_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<int const, int> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<int const, int> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<int, int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x544fc0, _M_left = 0x544fc0, _M_right = 0x544fc0}, _M_node_count = 1}}}
--- End code ---
It looks like pretty printer is not installed correctly. (But I do see you have
--- Code: ---[debug]> source C:\MinGW\bin\stl.gdb
--- End code ---
In the log message.
What is the result when you type "info pretty-printer" in C::B's gdb debug panel?
Also, can you show the full log when you debug the same command in the windows command line.
Sab:
--- Quote from: ollydbg on May 18, 2015, 04:00:40 pm ---
What is the result when you type "info pretty-printer" in C::B's gdb debug panel?
Also, can you show the full log when you debug the same command in the windows command line.
--- End quote ---
--- Code: ---> info pretty-printer
[debug]> info pretty-printer
[debug]global pretty-printers:
[debug] builtin
[debug] mpx_bound128
[debug]>>>>>>cb_gdb:
global pretty-printers:
builtin
mpx_bound128
--- End code ---
Now pretty printers are not working in cmd too.
ollydbg:
--- Quote from: Sab on May 18, 2015, 05:19:55 pm ---
--- Code: ---> info pretty-printer
[debug]> info pretty-printer
[debug]global pretty-printers:
[debug] builtin
[debug] mpx_bound128
[debug]>>>>>>cb_gdb:
global pretty-printers:
builtin
mpx_bound128
--- End code ---
Now pretty printers are not working in cmd too.
--- End quote ---
Interesting, so you could try to add the line "register_libstdcxx_printers (None)" back to stl.gdb file, and see whether it works again.
Sab:
--- Quote from: ollydbg on May 19, 2015, 02:19:02 am ---Interesting, so you could try to add the line "register_libstdcxx_printers (None)" back to stl.gdb file, and see whether it works again.
--- End quote ---
Its working :o I have attached screenshot of watcher and debugger log.
Navigation
[0] Message Index
[*] Previous page
Go to full version