Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2003 16:30:53 -0800 (PST)
From:      Ian Dowse <iedowse@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/gnu/usr.bin/binutils/gdb Makefile fbsd-kgdb.h kvm-fbsd.c solib-fbsd-kld.c
Message-ID:  <200303210030.h2L0UsXj076988@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
iedowse     2003/03/20 16:30:53 PST

  FreeBSD src repository

  Modified files:
    gnu/usr.bin/binutils/gdb Makefile fbsd-kgdb.h kvm-fbsd.c 
  Added files:
    gnu/usr.bin/binutils/gdb solib-fbsd-kld.c 
  Log:
  Attempt to automatically read in kernel module symbols when a live
  or dead kernel core is loaded into gdb. This extends gdb's existing
  shared library support, so the "info sharedlibrary", "sharedlibrary"
  and "nosharedlibrary" commands can be used to view and change the
  list of loaded symbol files.
  
  The current implementation is more than a kludge however, and it
  will not always manage to find the .ko.debug file corresponding to
  the loaded module. In particular, for modules whose build directory
  cannot be easily guessed from the module name such as all the
  netgraph modules, the debug version of the .ko will not be found
  automatically.
  
  The logic for finding the module file first attempts to guess at
  the module build directory by parsing the version[] string. Then
  using that directory ($DIR), it tries the following paths in turn:
  
          ./<module>.ko.debug             ./<module>.ko
          $DIR/<module>.ko.debug          $DIR/<module>.ko
          /boot/kernel/<module>.ko.debug  /boot/kernel/<module>.ko
  
  Approved by:    obrien, mp
  
  Revision  Changes    Path
  1.65      +1 -1      src/gnu/usr.bin/binutils/gdb/Makefile
  1.4       +1 -0      src/gnu/usr.bin/binutils/gdb/fbsd-kgdb.h
  1.45      +30 -1     src/gnu/usr.bin/binutils/gdb/kvm-fbsd.c
  1.1       +298 -0    src/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c (new)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303210030.h2L0UsXj076988>