emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted undo-boundary


From: Lennart Borgman
Subject: Re: Unwanted undo-boundary
Date: Sun, 14 Feb 2010 23:32:25 +0100

On Sun, Feb 14, 2010 at 10:31 PM, Lennart Borgman
<address@hidden> wrote:
> On Sun, Feb 14, 2010 at 7:03 PM, Eli Zaretskii <address@hidden> wrote:
>>>    GNU gdb 5.2.1
>>>    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
>>> "i686-pc-mingw32"...c:/cygmnt/prj/pkg/src/gdb/mingw32/gdb/dwarf2read.c:985:
>>> gdb-internal-error: read_comp_unit_head: dwarf from non elf file
>>>
>>>    An internal GDB error was detected.  This may make further
>>>    debugging unreliable.  Quit this debugging session? (y or n)
>>
>> Get a newer port of GDB.  Evidently, the one you have does not support
>> DWARF-2 debug info on Windows.  You can find GDB 7.0 on the MinGW
>> site.
>
> Thanks Eli, worked much better. (Are you following gdb development
> since you knew what DWARF-2 debug info is?)


Looks like I need some more hand-helding. I put a breakpoint here

    (gdb) b Fundo_boundary

and executed in Emacs

    M-: (indent-region 1 (point-max))

and then called xbacktrace at each stop at Fundo_boundary. There were
five lines in the region and on each of them Fundo_boundary was called
but I do not understand how. I thought xbacktrace should give me
information about it, but it does not seem to do that as far as I can
see. So I guess I have to call bt instead, or?

The xbacktrace:s are here, just in case I misunderstand this:

    Breakpoint 3, Fundo_boundary () at undo.c:303
    303       if (EQ (current_buffer->undo_list, Qt))
    (gdb) xbacktrace
    "nxml-indent-line" (0x82d7b4)
    "funcall" (0x82d7b0)
    "let" (0x82da60)
    "save-restriction" (0x82dbc0)
    "let" (0x82dd90)
    "if" (0x82df10)
    "mumamo-call-indent-line" (0x82dfc0)
    "progn" (0x82e270)
    "if" (0x82e3b0)
    "cond" (0x82e530)
    "let*" (0x82e6e0)
    "mumamo-indent-line-function-1" (0x82e790)
    "let" (0x82ea90)
    "or" (0x82ebd0)
    "while" (0x82ed70)
    "let" (0x82ef60)
    "save-excursion" (0x82f0c0)
    "mumamo-indent-region-function" (0x82f204)
    "indent-region" (0x82f3a0)
    "eval" (0x82f5d4)
    "eval-expression" (0x82f814)
    "call-interactively" (0x82fb44)
    (gdb) c
    Continuing.

    Breakpoint 3, Fundo_boundary () at undo.c:303
    303       if (EQ (current_buffer->undo_list, Qt))
    (gdb) xbacktrace
    "indent-line-to" (0x82e040)
    "progn" (0x82e2f0)
    "if" (0x82e430)
    "when" (0x82e530)
    "let*" (0x82e6e0)
    "mumamo-indent-line-function-1" (0x82e790)
    "let" (0x82ea90)
    "or" (0x82ebd0)
    "while" (0x82ed70)
    "let" (0x82ef60)
    "save-excursion" (0x82f0c0)
    "mumamo-indent-region-function" (0x82f204)
    "indent-region" (0x82f3a0)
    "eval" (0x82f5d4)
    "eval-expression" (0x82f814)
    "call-interactively" (0x82fb44)
    (gdb) c
    Continuing.

    Breakpoint 3, Fundo_boundary () at undo.c:303
    303       if (EQ (current_buffer->undo_list, Qt))
    (gdb) xbacktrace
    "insert" (0x82d540)
    "if" (0x82d7a0)
    "save-current-buffer" (0x82d900)
    "with-current-buffer" (0x82da00)
    "let*" (0x82dbb0)
    "if" (0x82dd30)
    "unless" (0x82de30)
    "let" (0x82e000)
    "mumamo-template-indent-get-chunk-shift" (0x82e0b0)
    "let" (0x82e3b0)
    "cond" (0x82e530)
    "let*" (0x82e6e0)
    "mumamo-indent-line-function-1" (0x82e790)
    "let" (0x82ea90)
    "or" (0x82ebd0)
    "while" (0x82ed70)
    "let" (0x82ef60)
    "save-excursion" (0x82f0c0)
    "mumamo-indent-region-function" (0x82f204)
    "indent-region" (0x82f3a0)
    "eval" (0x82f5d4)
    "eval-expression" (0x82f814)
    "call-interactively" (0x82fb44)
    (gdb) c
    Continuing.

    Breakpoint 3, Fundo_boundary () at undo.c:303
    303       if (EQ (current_buffer->undo_list, Qt))
    (gdb) xbacktrace
    "indent-line-to" (0x82e040)
    "progn" (0x82e2f0)
    "if" (0x82e430)
    "when" (0x82e530)
    "let*" (0x82e6e0)
    "mumamo-indent-line-function-1" (0x82e790)
    "let" (0x82ea90)
    "or" (0x82ebd0)
    "while" (0x82ed70)
    "let" (0x82ef60)
    "save-excursion" (0x82f0c0)
    "mumamo-indent-region-function" (0x82f204)
    "indent-region" (0x82f3a0)
    "eval" (0x82f5d4)
    "eval-expression" (0x82f814)
    "call-interactively" (0x82fb44)
    (gdb) c
    Continuing.

    Breakpoint 3, Fundo_boundary () at undo.c:303
    303       if (EQ (current_buffer->undo_list, Qt))
    (gdb) xbacktrace
    "insert" (0x82d540)
    "if" (0x82d7a0)
    "save-current-buffer" (0x82d900)
    "with-current-buffer" (0x82da00)
    "let*" (0x82dbb0)
    "if" (0x82dd30)
    "unless" (0x82de30)
    "let" (0x82e000)
    "mumamo-template-indent-get-chunk-shift" (0x82e0b0)
    "let" (0x82e3b0)
    "cond" (0x82e530)
    "let*" (0x82e6e0)
    "mumamo-indent-line-function-1" (0x82e790)
    "let" (0x82ea90)
    "or" (0x82ebd0)
    "while" (0x82ed70)
    "let" (0x82ef60)
    "save-excursion" (0x82f0c0)
    "mumamo-indent-region-function" (0x82f204)
    "indent-region" (0x82f3a0)
    "eval" (0x82f5d4)
    "eval-expression" (0x82f814)
    "call-interactively" (0x82fb44)
    (gdb) c
    Continuing.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]