Skip to content

Instantly share code, notes, and snippets.

@j0sh
Created November 15, 2011 00:27
Show Gist options
  • Select an option

  • Save j0sh/1365686 to your computer and use it in GitHub Desktop.

Select an option

Save j0sh/1365686 to your computer and use it in GitHub Desktop.
why i hate c++
(gdb) p *this
$2 = {_vptr.BaseClientApplication = 0xffffffff, static _idGenerator = 30, _id = 224273, _name = {static npos = 18446744073709551615,
_M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x7fe18d2eb648 "8?.\215?\177"}},
_aliases = {<std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >> = {
_M_impl = {<std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<__gnu_cxx::new_allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >> = {<No data fields>}, <No data fields>}, _M_start = 0x7fe18d2eb648, _M_finish = 0x4a4a3b0, _M_end_of_storage = 0x4a4a3b0}}, <No data fields>},
_protocolsHandlers = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned long const, BaseAppProtocolHandler*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned long const, BaseAppProtocolHandler*> > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<unsigned long, unsigned long, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
_M_parent = 0x10101, _M_left = 0xc3d070, _M_right = 0x1}, _M_node_count = 0}}}, _streamsManager = {_vptr.StreamsManager = 0x42733a48ef9caea3,
_pApplication = 0x400000001, _uniqueIdGenerator = 12833584, _streamsByUniqueId = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned int const, BaseStream*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned int const, BaseStream*> > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<unsigned int, unsigned int, bool>> = {<No data fields>}, <No data fields>},
_M_header = {_M_color = std::_S_red, _M_parent = 0x100000000000, _M_left = 0x10, _M_right = 0x20000}, _M_node_count = 131072}}}, _streamsByProtocolId = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned int const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned int const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<unsigned int, unsigned int, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = 12833584, _M_parent = 0x0,
_M_left = 0x0, _M_right = 0x100000000000}, _M_node_count = 16}}}, _streamsByType = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<unsigned long const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<unsigned long const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<unsigned long, unsigned long, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
_M_parent = 0x0, _M_left = 0x4a4a300, _M_right = 0x0}, _M_node_count = 4294967295}}}, _streamsByName = {_M_t = {
_M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::map<unsigned int, BaseStream*, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, BaseStream*> > > > > >> = {<No data fields>}, <No data fields>},
_M_key_compare = {<std::binary_function<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red, _M_parent = 0x0, _M_left = 0x0, _M_right = 0x0},
_M_node_count = 4294967295}}}}, _allowDuplicateInboundNetworkStreams = true, _configuration = {_vptr.Variant = 0xc3d330, _type = 0, _value = {b = false,
i8 = 0 '\000', i16 = 0, i32 = 0, i64 = 0, ui8 = 0 '\000', ui16 = 0, ui32 = 0, ui64 = 0, d = 0, t = 0x0, s = 0x0, m = 0x0}}, _isDefault = false, _authSettings = {
_vptr.Variant = 0x10, _type = 0, _value = {b = false, i8 = 0 '\000', i16 = 0, i32 = 0, i64 = 0, ui8 = 0 '\000', ui16 = 0, ui32 = 0, ui64 = 0, d = 0, t = 0x0, s = 0x0,
m = 0x0}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment