Skip to content

Instantly share code, notes, and snippets.

CLANG 8.0 (ports) : readelf -wi test80 | rg -B 1 -A 6 Foo
<1><845>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<846> DW_AT_name : (indirect string) Foo
<84a> DW_AT_byte_size : 1
<84b> DW_AT_decl_file : 1
<84c> DW_AT_decl_line : 3
CLANG 9.0: readelf -wi test90 | rg -B 1 -A 6 Foo
<1><845>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<846> DW_AT_name : (indirect string) Foo
<84a> DW_AT_byte_size : 1
@pizzamig
pizzamig / gist:c0d4216bf8408ccb69444974c3f5f6fa
Created October 19, 2016 12:24
gtk-3 dialog issue using FreeBSD 12-drm-next-47 + xserver-next on skylake
// cc -g $(pkgconf --cflags gtk+-3.0) -o repro repro $(pkgconf --libs gtk+-3.0)
#include <gtk/gtk.h>
static void
activate (GtkApplication* app, gpointer user_data)
{
GtkPrintOperation *print_operation=gtk_print_operation_new();
GError* error = NULL;
GtkPrintOperationResult result = gtk_print_operation_run( print_operation,
GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, NULL, &error);
@pizzamig
pizzamig / offsetof.c
Created July 28, 2016 08:30
extended offsetof case
/* The warning is issued using -pedantic */
#include <sys/stddef.h>
struct foo
{
int i;
int j;
struct
{

Keybase proof

I hereby claim:

  • I am pizzamig on github.
  • I am pizzamig (https://keybase.io/pizzamig) on keybase.
  • I have a public key whose fingerprint is 3ED9 7B13 7730 26B9 EB62 5A18 2560 C16B 5F4D 2D72

To claim this, I am signing this object: