Skip to content

Instantly share code, notes, and snippets.

gdb ./geany
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
# Extended formatter
class Fmt(string.Formatter):
def __init__(self, builddir, sourcedir, cachedir):
self.bd = builddir
self.sd = sourcedir
self.cd = cachedir
def get_field(self, name, args, kwargs):
if len(name) > 1 and ( name[0] == '"' or name[0] == "'" ):
return (name[1:-1], name)
class a {
some_reference_to_a_class_b the_b;
/* more stuff */
void function_that_uses_the_b(){...};
}
class b {
some_reference_to_a_class_a the_a;
/* more stuff */
void function_that_uses_the_a(){...};