Skip to content

Instantly share code, notes, and snippets.

View christophebedard's full-sized avatar
🤖
working on tools for robotics software development

Christophe Bedard christophebedard

🤖
working on tools for robotics software development
View GitHub Profile
@simonhf
simonhf / _gcc_trace_wish.md
Created November 28, 2019 02:06
Which missing feature in gcc would make tracing function calls in userspace C/C++ applications easier

Which missing feature in gcc would make tracing function calls in userspace C/C++ applications easier

Background

Let's say we want to compile a larger C/C++ application with 80,000 unique functions so that at run-time the function call-tree is output for code comprehension and debugging purposes.

There are a couple of options to do this today which spring to mind:

Option 1: Manually markup the source code

@awesomebytes
awesomebytes / debian_from_ros_pkg.md
Last active June 27, 2024 08:01
How to create a debian from a ROS package
@dieseltravis
dieseltravis / shrug.ahk
Last active January 3, 2023 15:58
autohotkey script to replace 🤷 with ¯\_(ツ)_/¯ (and a few other common unicode art emoji)
; :shrug: ¯\_(ツ)_/¯
:B0:`:shrug::
if (A_EndChar == ":") {
SendInput, {BS 7}¯\_(ツ)_/¯
}
return
; :whatever: ◔_◔
:B0:`:whatever::
@fmela
fmela / stacktrace.cxx
Last active September 22, 2023 10:58
A C++ function that produces a stack backtrace with demangled function & method names.
/*
* Copyright (c) 2009-2017, Farooq Mela
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright