Skip to content

Instantly share code, notes, and snippets.

View AyoubBenBrahim's full-sized avatar

Ayoub B. AyoubBenBrahim

View GitHub Profile

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@AyoubBenBrahim
AyoubBenBrahim / cheat_sheet.txt
Created December 16, 2022 11:38
GDB cheat sheet
GDB commands by function - simple guide
---------------------------------------
More important commands have a (*) by them.
Startup
% gdb -help print startup help, show switches
*% gdb object normal debug
*% gdb object core core debug (must specify core file)
%% gdb object pid attach to running process
% gdb use file command to load object
/// Continuous rotattion of a widget
/// [widget] - Widget to rotate {required}
/// [duration] - Duration of the rotation (default [Duration(seconds:15)])
import 'package:flutter/material.dart';
class RotatingAnimationWidget extends StatefulWidget {
final Widget rotatingWidget;
final Duration duration;
const RotatingAnimationWidget(this.rotatingWidget, {this.duration}) : assert(rotatingWidget != null);
_RotatingAnimationWidget createState() => _RotatingAnimationWidget();