Wolfgang Bai's Blog


  • 首页

  • 分类

  • 归档

mac os vim + cscope 卡死

发表于 2019-12-28 | 分类于 Mac OS

Mac OS 10.14使用vim+ cscope 卡死

问题描述

在使用cs find g func命令时,卡住不动了,没有任何反应

解决办法

brew install vim

升级vim版本,我的默认vim 8.0,升级后版本:

VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 6 2019 08:27:54)

MIT6.828-Homework: boot xv6

发表于 2019-12-08 | 分类于 操作系统

boot xv6

问题 1. 一个窗口make qemu-gdb(qemu-nox-gdb),另一个gdb失败

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
GNU gdb (Ubuntu 8.1-0ubuntu3.1) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
To enable execution of this file add
add-auto-load-safe-path /data/github/MIT6.828/xv6-public/.gdbinit
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual. E.g., run from the shell:
info "(gdb)Auto-loading safe path"
(gdb)

其实,错误提示有解决方案,在/root/.gdbinit 加上如下语句即可, xv6的绝对路径

1
add-auto-load-safe-path /data/github/MIT6.828/xv6-public/.gdbinit

MIT 6.828 Lab 1: Booting a PC

发表于 2019-11-17 | 分类于 操作系统

安装

mac 使用docker,然后安装 ubuntu

Wolfgang Bai

3 日志
2 分类
© 2019 Wolfgang Bai
由 Hexo 强力驱动
|
主题 — NexT.Mist v5.1.4