Syntax: pqueue : Prints all elements and the size of the queue Pstack s - prints all elements and the size of s Stack elements are listed "top to buttom" (top-most element is the first to come on pop) Syntax: pstack : Prints all elements and size of the stack Set $finish_cur = $arg0.c._M_impl._M_finish._M_cur Set $start_cur = $arg0.c._M_impl._M_start._M_cur Pdequeue d - prints all elements and size of d Syntax: pdequeue : Prints dequeue size, if T defined all elementsÄeque elements are listed "left to right" (left-most stands for front and right-most stands for back) Set $finish_last = $arg0._M_impl._M_finish._M_last Set $finish_cur = $arg0._M_impl._M_finish._M_cur Set $finish_first = $arg0._M_impl._M_finish._M_first Set $start_last = $arg0._M_impl._M_start._M_last Set $start_cur = $arg0._M_impl._M_start._M_cur Pset s int 20 - prints the element(s) with value = 20 ( if any) and the size of s Pset s int - prints all elements and the size of s Syntax: pset : Prints set size, if T defined all elements or just element(s) having val Printf "Use pset to see the elements in the set.\n" Pmap_member m class1 member1 class2 member2 lvalue - prints mber1 : mber2 where class1 = lvalue Pmap_member m class1 member1 class2 member2 - prints mber1 : mber2 Pmap m int int 20 200 - prints the element(s) with left-value = 20 and right-value = 200 ( if any) and map size Pmap m int int 20 - prints the element(s) with left-value = 20 ( if any) and map size Pmap m int int - prints all elements and map size Syntax: pmap : Prints map size, if T defined all elements or just element(s) with val(s) Printf "Use pmap to see the elements in the map.\n" Set $tree_size = $tree._M_t._M_impl._M_node_count Set $node = $tree._M_t._M_impl._M_header._M_left Plist_member l int member 2 - prints the third element in the list ( if exists) and list size ![]() Plist_member l int member - prints all elements and list size Printf "Use plist_member to see the elements in the list.\n" Plist l int 2 - prints the third element in the list ( if exists) and list size Plist l int - prints all elements and list size Plist l - prints list size and definition Syntax: plist : Prints list size, if T defined all elements or just element at idx Printf "Use plist to see the elements in the list.\n" Set $current = $arg0._M_impl._M_node._M_next Pvector v 1 2 - Prints elements in range from vector Pvector v - Prints vector content, size, capacity and T typedef Note: idx, idx1 and idx2 must be in acceptable range. Printf "Vector capacity = %u\n", $capacity If $start_idx $size_max || $stop_idx > $size_max Printf "idx1, idx2 are not in acceptable range. Set $capacity = $arg0._M_impl._M_end_of_storage - $arg0._M_impl._M_start Set $size = $arg0._M_impl._M_finish - $arg0._M_impl._M_start # Also added _member functions, that instead of printing the entire class in map, prints a member. # Modified to work with g++ 4.3 by Anders Elton # Gilad Mishne (PhD) and Many Many Others. # Simple GDB Macros writen by Dan Marinescu (H-PhD) - License GPL # The end of this file contains (optional) C++ beautifiers # std::priority_queue - via ppqueue command # std::multimap - via pmap or pmap_member command # std::map - via pmap or pmap_member command # std::list - via plist or plist_member command ![]() V7.4.0 support c++17, here is a sample from cppreference. contrib/download_prerequisits will download 4 packages: configure - enable-checking=release - enable-languages=c,c++ - disable-multilib turned out to be the most fastest mirror in China. Yum install glibc-static libstdc++-static How to upgrade gcc to a newer version install development tools 1 In the end, I found that cmake did not use the newer gcc when I was typing cmake. So I rebuilt gtest using the newer gcc, however, bugs remained. After I upgraded gcc from version of 4.4.7 to version of 7.4.0 on CentOS 6.5, some ridiculous bugs happened when I linked my project to gtest.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |