GDB

共 6 篇文章。

David O'Brien to import binutils 2.15

• Development

David O’Brien has just imported binutils 2.15 snapshot into FreeBSD src repository. What’s more, he stated that he will do gdb 6.x import soon. This will drastically improve the debug and development environment in FreeBSD.

参与评论

OpenBSD to adopt gdb 6.1

• Development

It seems (still can’t access to the Internet right now, however, HTTP and cvsup works) that OpenBSD has imported gdb 6.1 into their source tree. I am not sure whether they did some hacks to the source repository (from cvsup result, there is not), but the result is really strange. It seems that the last import was done by using a “cvs add -rCYGNUS” and not “cvs import”…

I hope FreeBSD can import a newer gdb ASAP, as well as gcc 3.4 series.

参与评论

How to debug a live FreeBSD kernel?

• Kernel

To quote Matthew Dillon:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    You can actually run gdb on a live kernel like this:

    gdb -k /dev/mem /path/to/kernel.debug

    You can then use the 'proc' command to switch to a process (give it a
    pid), and do a stack backtrace.  That part only really works if the
    process is blocked on something (i.e. not running).

    But you can also dig around kernel globals and various data structures
    and that can be quite useful on a live system.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>
参与评论