This repository contains my projects for the Computer Architecture and Operating Systenms course in my Bachelor's degree in Computer Science at the University of Warsaw.
In the ~/.bash_aliases put this:
#!/bin/bash
alias gdb_asm="gdb -x ~/pathToRepository/AKSO/config/.gdbasm"
If the alias gdb_asm is still unrecognized, reboot or run:
foo@AKSO:~$ source ~/.bash_aliasesRun:
foo@AKSO:~$ gdb_asm path/executableThe GDB window should pop out.
Here are the most useful GDB commands:
- b label - puts a breakpoint at the beginning of the given label
- b - puts a breakpoint at the current line
- b N - puts a breakpoint at line N
- d N - deletes breakpoint number N
- info break - lists breakpoints
- r - runs the program until a breakpoint or error
- r params - runs the program with given parameters
- c - continues running the program until the next breakpoint or error
- s - runs the next line of the program
- s N - Runs the next N lines of the program
- q - quits GDB
Here are the most useful reference sites for programming in NASM: