Skip to content

Instantly share code, notes, and snippets.

View jdmiranda's full-sized avatar
💭
Building the future

Jeremy jdmiranda

💭
Building the future
View GitHub Profile
@jclosure
jclosure / gdb_inspecting_stl_containers.md
Created October 2, 2017 19:06
Debugging STL objects in GDB

Original: https://github.com/NREL/EnergyPlus/wiki/Debugging-STL-objects-in-GDB

Overview

This documents how to add STL visualizer support in gdb. This information was pulled together from a variety of sources on the web to ultimately get it working well. Without these pretty printers, you get some details (that might be interesting sometimes) like:

(gdb) print foo_int_vector
$1 = {<std::_Vector_base<int, std::allocator<int> >> = {_M_impl = {<std::allocator<int>> = {<__gnu_cxx::new_allocator<int>> = {<No data fields>}, <No data fields>}, _M_start = 0x603010, _M_finish = 0x60301c, 
      _M_end_of_storage = 0x60301c}}, <No data fields>}
#The MIT License (MIT)
# Copyright (c) 2012 Jordan Wright <jordan-wright.github.io>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 29, 2025 11:48
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname