1. I

    Solved Debug FreeBSD klds

    I'm trying to debug a function from a kld and in order to do that I use gdb, the steps that i follow in order to do that are: 1. load the debugging symbols from /boot/kernel/kernel; 2. load debugging symbols from <my_file>.ko; 3. set a breakpoint on a function that should execute when the...
  2. P

    upgrading kgdb

    As of now I have installed the latest version of gdb via the package manager (7.9.1). The binary gets installed as /usr/local/bin/gdb which is apparently a symlink to /usr/local/bin/gdb791. The version which comes with the system is at /usr/bin/gdb which is an older version (v6.1.1). I have...
  3. P

    Hacking/Debugging nullfs - KGDB cannot access memory at address

    I am trying to hack/understand the nullfs kernel module so to that end, I do the following: On the target machine: kldstat gives: Id Refs Address Size Name 1 10 0xffffffff80200000 17e10c8 kernel 2 1 0xffffffff819e2000 4cf0 vmxnet.ko 3 1 0xffffffff819e7000 16e0...
  4. P

    Toggling between remote KGDB and local DDB within a debugging session

    Hello. I think the title says it all!! :) I would like to know if there is indeed a way to toggle between gdb and ddb while debugging a remote kernel. I am already at the gdb (or rather kgdb :rolleyes:) prompt. From here how do I switch to local ddb on the debugged machine?? My kernel...
  5. P

    Solved Cannot see virtual serial port in Workstation VM

    Hello I am trying to add a virtual serial port (as a named pipe) on two FreeBSD 10 VMs in workstation. One end, I am keeping it as the server (the one VM which will actually be having the virtual serial port) and the other VM will connect to the other end. MY host is Windows 8.1. However when...