major and minor macros in /usr/include/x86_64-linux-gnu/sys/sysmacros.h

2012-01-04 Thread Pedro Larroy
Hi Shouldn't major and minor macros in /usr/include/x86_64-linux-gnu/sys/sysmacros.h be inline functions? They prevent doing stuff like struct T { T() : major() {} int major; }; in C++. According to the C++ standard those names shoudn't be reserved to the implementation, and thus be available

Re: GCC stack backtraces

2012-09-14 Thread Pedro Larroy
If you link with -rdynamic you can show a backtrace with something like the attached code. On Wed, Aug 29, 2012 at 9:22 AM, Ian Lance Taylor wrote: > I've spent the last couple of days working on a stack backtrace library. > > It uses the GCC unwind interface to collect a stack trace, and parses