Giter Site home page Giter Site logo

jevinskie / agent-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xypron/agent-proxy

0.0 1.0 0.0 63 KB

Proxy to share connction between terminal an gdb and text console

License: GNU General Public License v2.0

C 97.11% Makefile 2.89%

agent-proxy's Introduction

This is a simple, small proxy which was intended for use with kgdb, or
gdbserver type connections where you want to share a text console and
a debug session.

The idea is that you use the agent-proxy to connect to a serial port
directly or to a remote terminal server.

An example is to use kgdboc with the 2.6.26 or greater kernel
connected to a local serial port on your debug host (ttyS0 for example).

Start on your debug host:

## Start the agent-proxy in the background
./agent-proxy 5550^5551 0 /dev/ttyS0,115200 &

## Now connect to the console port
telnet localhost 5550

## Boot the remote system with the kernel arg:  kgdboc=ttyS0,115200

## Now you can connect gdb to the debug port
gdb ./vmlinux
tar rem localhost:5551

If you use a terminal server instead of a local serial port for your
connection use these instructions:

## Start the agent-proxy in the background
./agent-proxy 5550^5551 REMOTE_IPaddress_OR_NAME PORT_NUMBER &
######## Example: ./agent-proxy 5550^5551 10.0.55.4 2004 &

## Now connect to the console port
telnet localhost 5550

## Boot the remote system with the kernel arg:  kgdboc=ttyS0,115200

## Now you can connect gdb to the debug port
gdb ./vmlinux
tar rem localhost:5551


FAQ:
----------------------------------------------------------------
Q: Why do I see "junk" on my console when I am debugging?
A: The console port sees and repeats everything, so yes
   you will see the debug traffic as well as your normal console traffic.

Please send patches and questions to: [email protected]

agent-proxy's People

Contributors

jwessel avatar xypron avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.