English 中文(简体)
缩略语
原标题:Debugging user-code on xv6 with gdb
  • 时间:2012-05-10 13:15:31
  •  标签:
  • gdb
  • qemu
  • xv6

我做过一个基于Xv6的非洲顾问小组,我写了一个需要加以管理的方案。

我知道,我可以用<代码>make qemu-gdb对油轮代码进行 de击,但我不敢肯定如何减少我自己的用户方案。

我要说的是,我如何去做?

成就

P.S. isn t there an xv6 tag? 这个问题是否在这里?

最佳回答

file cat, break main, continue

半参考资料running and debugging xv6

问题回答

从Xv6级顶级继承人那里:

  1. 采用 de(假定X11):

  2. In other terminal just run the debugger loading the kernel symbols with: gdb kernel This is important, otherwise the debugger will be confused between kernel and and user program symbols, for example main()

  3. From the gdb interface run: (gdb) target remote localhost:26000 where 26000 is the TCP port that the step #1 report at the end (this might change).

  4. 用户使用<代码>(gdb) 文档用户_program

  5. 定点<条码>(gdb)

  6. ......





相关问题
tell gdb to disassemble "unknown" code

is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a ...

C++ Netbeans debugging issues

I installed netbeans6.7.1 ide for c/c++ also i have mingw/msys cygwin installed and i have given C:Msysin as environment variable path.It has gdb7 version.However wheni run dbugging thru netbeans ...

setting strings in gdb

c++: int main() { string a = "a"; ... ... } when i debug in gdb: (gdb) set var a = "ok" Invalid cast I run the program and pause at a break point after string a has been ...

How to debug programms written in fasm under linux using gdb?

I wrote simple "hello, world" in fasm, and its works, but how i can generate debug info for gdb and edb (Evan s Debugger)? Fasm compiler could only produce debugging symbols in its specific format - "...

How can I display Unicode strings while debugging on linux?

I have been working for some years now as C++ Developer using MS Visual Studio as working platform. Since I privately prefer to use linux, I recently took the chance to move my working environment to ...

Continue to debug after failed assertion on Linux?

When an assertion fails with Visual C++ on Windows, the debugger stops, displays the message, and then lets you continue (or, if no debugging session is running, offers to launch visual studio for you)...

热门标签