Re: Serial consoles and remote GDB

From: Rob Deker (deker_at_slackdot.org)
Date: 08/30/04

  • Next message: Avleen Vig: "Re: Finding MTU"
    To: Stephan Uphoff <ups@tree.com>
    Date: Sun, 29 Aug 2004 23:19:32 -0400
    
    
    

    On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote:
    > Hi,
    >
    > Try the patch from kern/65278
    >
    > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278
    >
    Thanks,

     Looks like that did some good (I have my console back now), but when i
    either "boot -g" or break into ddb and give it a "gdb" command, then try
    and connect gdb to it on the other serial port, gdb seems to not be able
    to connect to it (and I consequently have to power cycle the machine to
    un-hang it). What I get from gdb is the following:

    bash-2.05b$ sudo gdb -k kernel.debug
    GNU gdb 5.2.1 (FreeBSD)
    Copyright 2002 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you
    are
    welcome to change it and/or distribute copies of it under certain
    conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for
    details.
    This GDB was configured as "i386-unknown-freebsd"...
    (kgdb) target remote /dev/cuaa4
    Remote debugging using /dev/cuaa4
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Ignoring packet error, continuing...
    Couldn't establish connection to remote target
    Malformed response to offset query, timeout

    thanks for the help,

    -d

    
    



  • Next message: Avleen Vig: "Re: Finding MTU"

    Relevant Pages

    • Re: ARM9 Debugging with Chameleon POD ?
      ... > GDB 5.0 ... Remote debugging using 192.168.0.182:8888 ... Couldn't establish connection to remote target ... Ignoring packet error, continuing... ...
      (comp.arch.embedded)
    • Remote Buffer Overflow vulnerability in Zeroo HTTP Server.
      ... Many overflow bugs exist innumerably to source code of this Zeroo HTTP Server. ... Many remote vulnerability according to called function can happen at the same time therefore. ... i r esp ...
      (Bugtraq)
    • Re: VMWare Workstation 6 for debugging Linux Kernel (!)
      ... will make WS6 a great tool for Linux kernel development. ... kernel of Linux VM with gdb running on the Host without changing anything in ... target remote localhost:8832 ... Ignoring packet error, continuing... ...
      (Linux-Kernel)
    • Re: Dell gx280 and acpi problems
      ... > Step to enter the remote GDB backend. ... Enter 'tr' to connect to the remote target ... kernel.debug corresponding to the kernel you are booting. ... If you are doing an install, ...
      (freebsd-hackers)
    • remote gdb, kgdb and ddb
      ... for remote, gdb seems to work fine ... kgdb -r /dev/cuad0 kernel.debug thinks it's working but seems to get confused a lot.. ...
      (freebsd-current)