Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Configuring VMWare FreeBSD9.2 remote debugging kernel source code     - Using the Linux VNC service (Server)

- Linux development environment to build and use the directory structure and file --Linux (Linux)

- ActiveMQ memory settings and flow control (Linux)

- OpenGL Superb Learning Notes - Depth Texture and Shadows (Programming)

- Varnish configuration language VCL and its built-in variables (Server)

- Ubuntu 10.04 to Ubuntu 10.10 Upgrade (Linux)

- RHEL7.0 configuration CD-ROM to the local YUM (Linux)

- AngularJS notes --- Data Binding (Programming)

- Linux file permissions bit forced bits and adventure Comments (Linux)

- Build your own CA services: OpenSSL command line CA Quick Guide (Server)

- Oracle Execute to Parse perform analytical Ratio Analysis (Database)

- Struts2 Result Types (Programming)

- Linux Oracle delete archived logs (Database)

- Ambari and Hadoop configuration, management and monitoring of the project Getting (Server)

- How to build a container cluster (Server)

- The most concise Systemd tutorial, just ten minutes (Linux)

- MongoDB polymerization being given (Database)

- How to use scientific data Docker quickly configure the development environment (Server)

- The practical application of Oracle synonyms + dblink (Database)

- Lenovo E431 notebook CentOS system is installed wireless network card driver (Linux)

 
         
  Configuring VMWare FreeBSD9.2 remote debugging kernel source code
     
  Add Date : 2017-03-19      
         
         
         
  To learn FreeBSD kernel source code, if not a source-level debugging environment, it is difficult to start, so the record configuration steps:
 
#########################################
 # Configure VMWare good debugging machine, and then copy a:
 
Click VM-> Clone
 Select the default From current state, click Next
 Select Create a full clone, click Next
 Virtual Machine name input target, the cloned machine commands for the target machine
 
#########################################

Two serial ports increased by a virtual machine to "Output to named pipe", where:
 
Debugging maker SELECT "this end is the client", "the other end is a virtual machine"
 Select target "this end is the server", "the other end is a virtual machine"
 NOTE: The names of the two pipe should be the same, and select the following Connect at power on and Yield CPU on poll
 
#########################################
 # Compile the kernel, refer to < debug the FreeBSD kernel version>, copy the files to the target machine kernel.debug
 # Into the / boot / kernel / directory, put the old kernel file named kernel.old
 # The kernel.debug named kernel, and use the following command to remove one of the debug symbols:
 
strip -x kernel
 
#########################################
 # Edit target machine /boot/device.hints file, locate the serial number 0 mark the corresponding row
 # 0x80 increase its flag (Older is sio, now uart), after modify the line as follows (0x80 | 0x10 = 0x90):
 
hint.uart.0.flags = "0x90"
 
#########################################
 # On the Debug machine cd to kernel.debug directory, type:
 
kgdb -r / dev / cuau0 kernel.debug
 
#########################################
 # Restart the target machine, select "Escape to loader prompt" in the start menu will be displayed next content:
 Type '?' For a list of commands, 'help' for more detailed help.
 OK
 
# Input:
 boot -d
 
There will be the following:
 GDB: debug ports: uart
 GDB: current port: uart
 KDB: debugger backends: ddb gdb
 KDB: current backend: ddb
 KDB: enter: Boot flags requested debugger
 [Thread pid 0 tid 0]
 Stopped at kdb_enter + 0x3b: movq $ 0,0xaf0362 (% rip)
 db>
 
# Input:
 gdb
 
Configuration is completed!
     
         
         
         
  More:      
 
- Mahout source code analysis: FP-Growth algorithm parallelization (Programming)
- How to implement large-scale distributed Yahoo depth study on the Hadoop cluster (Server)
- Ruby and Python simple comparison (Programming)
- Linux performance optimization tools perf top (Linux)
- How to fix the Ubuntu Error script returned error exit status 1 (Linux)
- How to install Virtualbox 4.3.20 in Ubuntu 14.04 (Linux)
- C language print various graphic (Programming)
- SSH configuration under Linux (Linux)
- Solve the compatibility problem between Linux and Java at the source in bold font (Linux)
- Oracle 11g How dataguard master repository to Oracle single instance data recovery (Database)
- OpenNMS separate database (Server)
- Linux 6 install Oracle 11g (64bit) (Database)
- Linux mount command Detailed (Linux)
- Oracle database on the hit rate of query summary (Database)
- Ubuntu 12.04 installation NVIDIA GTX750 graphics driver (Linux)
- Puppet centralized configuration management system (Server)
- For the FreeBSD install Adobe Flash plug-in (Linux)
- Zabbix installation under Linux (Server)
- Improve the Ubuntu SSH login authentication approach speed (Linux)
- Cobbler automatic mass deployment of CentOS 6 and CentOS 7 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.