Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 2.15 KB

File metadata and controls

27 lines (19 loc) · 2.15 KB

GDB cheat sheet

Preface

  • During my studies at 42 Porto, I used many times this wonderful tool for debugging and better understanding my projecs, however, I decided to have this repo a handy future for other students and myself not to forget how to properly take advantage of this tool!\
  • I am in no way an expert, very far from that, but I decided to put up this colection of handful functionalities with my favourite notation style and functions I use the most, maybe it will be useful to you too!\
  • This cheat sheet is somewhat of a collage of many cheat sheets I have read through and a few videos on the topic, I will leave my main inspiration and resources linked at the end.

Introduction and Notation method

Note: this is by no means an exhaustive list of commands but more so a useful quick to parse and remember list of commands, followed by a minor breakdown of how they work. This should help programming students just like myself to quickly remind how the program works.
Commands will have the following notation:

[c]ommand1 |required arg| (option arg)

where the brackets[] will be the shorthand form of the command, if the command is fully in brackets [command2] it means there isn't a shorthand form of the command (at least that I am aware of).
By extension, commands that require an arg will be list with |arg| after the command and optional ones with (arg) like the aforemention example.

Resources and further learning