Subject: Re: bug#9723: 24.0.50; Emacs Clipboard crash

From: martin rudalics <[email-masked]>
Date: Sun, 05 Feb 2012 19:17:13 +0100

>> pr doesn't print anything.
 >
 > Ah, that is a different matter.  My crystal ball says that you
 > attached the debugger to an already running Emacs (as opposed to
 > starting Emacs from GDB with "start" or "run"), is that true?

No.  In a running Emacs I do M-x gdb, get a prompt and answer to it:

Run gdb (like this): gdb -i=mi c:/emacs/quickfixes/bin/emacs.exe

Hittin RET the rest of my dialogue goes like:

Current directory is c:/emacs/quickfixes/src/
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY =
TERM = emacs
(gdb) break window.c:3681
Breakpoint 3 at 0x114c6e3: file window.c, line 3681.
(gdb) run
Starting program: c:/emacs/quickfixes/bin/emacs.exe
[New thread 1496.0x704]
[New thread 1496.0x6a0]
[New thread 1496.0x474]
[New thread 1496.0x5bc]
[New thread 1496.0x598]
[New thread 1496.0x1fc]
[New thread 1496.0x1f0]
[New thread 1496.0x4c8]
[New thread 1496.0x288]
[New thread 1496.0x378]
[New thread 1496.0x2b8]
[New thread 1496.0x70c]
[New thread 1496.0x790]
[New thread 1496.0x230]
[New thread 1496.0x150]

Breakpoint 3, Fsplit_window_internal (old=52893701, total_size=116,
     side=50301626, normal_size=50140399) at window.c:3681
3681	  combination_limit =
(gdb) step
3689	  if (WINDOW_LIVE_P (old))
(gdb) p o->parent
$1 = 50153498
(gdb) p o->total_cols
$2 = 640
(gdb) pr o->total_cols
(gdb) p o->total_cols
$3 = 640
(gdb) xint
$4 = 80
(gdb)