Re: Is there a kgdb for Opteron for linux-2.6?

From: Andi Kleen (ak_at_suse.de)
Date: 10/29/03

  • Next message: Oleg Drokin: "Re: 2.6.0test9 Reiserfs boot time "buffer layer error at fs/buffer.c:431""
    Date:	Wed, 29 Oct 2003 22:24:54 +0100
    To: George Anzinger <george@mvista.com>
    
    

    On Wed, 29 Oct 2003 13:14:55 -0800
    George Anzinger <george@mvista.com> wrote:

    > Andi Kleen wrote:
    > > On Tue, 28 Oct 2003 14:47:34 -0800
    > > George Anzinger <george@mvista.com> wrote:
    > >
    > >
    > >
    > >>I see that Andrew has not picked up my latest kgdb. In the latest version I
    > >>have the dwarf2 stuff working in entry.S. Just ask, off list.
    > >
    > >
    > > Do you use the .cfi* mnemonics in newer binutils? Without that it would get ugly.
    >
    > I use asm mnemonics .uleb*, .sleb*, .byte and .long. For operands I use the
    > defines in dwarf2.h (after fixing them to work with asm). These are, for the
    > most part DW_CFA_* and other DW_* things. I put this together to build macros
    > (CCP) so that I can code things like:

    The latest binutils has new .cfi_* mnemonics in gas that make writing such a table
    much cleaner and easier. My plan was to use that. It would require new binutils,
    but make future mainteance much easier. When people don't have the new binutils
    it can be defined away.

    See http://www.logix.cz/~mic/devel/gas-cfi/

    >
    > Which allows "bt" through entry.S code. I did not try to allow you to get the
    > correct answer if you stop in the middle of the register save or restore code.

    On x86-64 it is unfortunately more complicated because it has a separate interrupt
    or exception stack. The backtracker has to read the old stack pointer from the
    frame. This can be expressed in dwarf2, but is a bit tricky.

    -Andi

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Oleg Drokin: "Re: 2.6.0test9 Reiserfs boot time "buffer layer error at fs/buffer.c:431""

    Relevant Pages

    • Re: 2.6.12: arm compilation problems
      ... > on my zaurus after some patches. ... Your binutils is probably too old and therefore buggy. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6 zaurus: pcmcia now works
      ... > it makes following backtraces harder. ... > Get a better binutils. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • [PATCH] binutils-2.16 & kernel-2.6.11.10
      ... the "not being able to compile kernel with latest binutils" problem is also ... substituting movl with movw for segreg moves will make it work again, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.18-mm1 compile failure on x86_64
      ... BFD: Warning: Writing section `.data.percpu' to huge file ... offset 0x804700c0. ... Does this box have an older version of binutils? ...
      (Linux-Kernel)
    • Re: [PATCH] i386 CFI annotations
      ... >You know this is just convention, ... And that binutils allows ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)