主要文档: Installing GNU/Linux · GitBook
关于abstract machine : Abstract Machine -- from Wolfram MathWorld
硬件指令集手册:在开始愉快的PA之旅之前 · GitBook
进入NEMU 方法
cd nemu make # make clean make ISA=mips32 run # 跑x86需要调试。 make ISA=mips32 gdb # 进入调试页面
GDB调试NEMU
make ISA=mips32 gdb b 7 # 断点断在第7行 r # 运行程序, 此时断点打在第七行 s # 跑下一行。
GDB基本使用
-
TUI界面
layout split # 进入TUI界面
-
常用指令
GDB offers a big list of commands, however the following commands are the ones used most frequently: b main - Puts a breakpoint at the beginning of the program b - Puts a breakpoint at the current line b N - Puts a breakpoint at line N b +N - Puts a breakpoint N lines down from the current line b fn - Puts a breakpoint at the beginning of function "fn" d N - Deletes breakpoint number N info break - list breakpoints r - Runs the program until a breakpoint or error c - Continues running the program until the next breakpoint or error f - Runs until the current function is finished s - Runs the next line of the program s N - Runs the next N lines of the program n - Like s, but it does not step into functions u N - Runs until you get N lines in front of the current line p var - Prints the current value of the variable "var" bt - Prints a stack trace u - Goes up a level in the stack d - Goes down a level in the stack q - Quits gdb
ERROR FIX
-
sudo apt-get updata
Get:1 http://mirrors.tuna.tsinghua.edu.cn/debian stable InRelease [122 kB] Err:1 http://mirrors.tuna.tsinghua.edu.cn/debian stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517 Reading package lists... Done W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517 E: The repository 'http://mirrors.tuna.tsinghua.edu.cn/debian stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
解决办法:
# 参考连接:https://chrisjean.com/fix-apt-get-update-the-following-signatures-couldnt-be-verified-because-the-public-key-is-not-available/ sudo apt-key adv --keyserver keyserver.ubuntu.com --rece-keys 04EE7237B7D453EC sudo apt-key adv --keyserver keyserver.ubuntu.com --rece-keys 648ACFD622F3D138 sudo apt-key adv --keyserver keyserver.ubuntu.com --rece-keys DCC9EFBF77E11517
-
软件源的问题
换源方法:Ubuntu 20.04换国内源 清华源 阿里源 中科大源 163源_xiangxianghehe的博客-CSDN博客_ubuntu20换源
sudo vim /etc/apt/sources.list ## 修改内容为清华源 # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse # 预发布软件源,不建议启用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse ### 最后执行指令 sudo apt-get update sudo apt-get upgrade
-
git 配置
git config --global user.name "JewinH" git config --global user.email "694906523@qq.com" git config --global core.editor vim git config --global color.ui true ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub
-
vscode 在Ubuntu 中的安装
1、sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make 2、sudo apt-get update 3、sudo apt-get install ubuntu-make 4、umake ide visual-studio-code