Skip to content

Architektura komputera i systemy operacyjne - Wydział Matematyki, Informatyki i Matematyki Uniwersytetu Warszawskiego

License

Notifications You must be signed in to change notification settings

witek-formanski/AKSO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AKSO

About

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.

How to setup GDB to debug assembly?

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_aliases

How to use GDB to debug assembly?

Run:

foo@AKSO:~$ gdb_asm path/executable

The 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

Useful links

Here are the most useful reference sites for programming in NASM:

About

Architektura komputera i systemy operacyjne - Wydział Matematyki, Informatyki i Matematyki Uniwersytetu Warszawskiego

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published