Hi, > How do I get gdb to work with this? I've tried running it until that point, > and then Ctrl+Z it in gdb to be able to type commands, but then:
that's exactly the way to do it (I use CTRL+C, but that shouldn't matter). The problem is that rxvt is built with too little debugging info, regardless of the contents of $DEB_BUILD_OPTIONS. (Yep, that's my fault.) For debugging purposes I've rebuilt with the following modification in debian/rules: ] build.stamp: ] dh_testdir ] ] ./configure $(CFG_BASE) --without-xpm ] echo "#define PTYS_ARE_GETPT 1" >> config.h ] $(MAKE) CFLAGS='$(CFLAGS) -g3 -O0' all clock ^^^^^^^ That should make gdb understand all the structures and typedefs that the rxvt headers introduce. Alternatively you can work on the bare metal if you know the size of your terminal (TermWin.nrow, usually 24) and your saveLines setting (seems to be 500 in your case): (gdb) p (char *[24])*((void **)screen + 500) $15 = { 0x543a10 "i:Exit -:PrevPg <Space>:NextPg v:View Attachm. d:Del r:Reply j:Next ?:Help ", 0x543d40 "X-Spam-Level:", ' ' <repeats 67 times>, 0x544070 "Delivery-date: Sun, 22 Jul 2007 15:43:56 +0200", ' ' <repeats 34 times>, 0x5443a0 "To: [EMAIL PROTECTED]", ' ' <repeats 56 times>, 0x5446d0 "From: [EMAIL PROTECTED]", ' ' <repeats 52 times>, 0x544a00 "Date: Sun, 22 Jul 2007 15:43:45 +0200", ' ' <repeats 43 times>, 0x544d30 "X-SA-Exim-Connect-IP: 2001:b68:e160:0:20b:dbff:fee6:9fcd", ' ' <repeats 24 times>, 0x545060 "Subject: ** PROBLEM alert - nekkar.CARNet.hr host is DOWN **", ' ' <repeats 20 times>, 0x545390 ' ' <repeats 80 times>, 0x0, 0x0, 0x0, 0x0, 0x0, 0x55c9f0 ' ' <repeats 80 times>, 0x55cb00 ' ' <repeats 80 times>, 0x55cc10 ' ' <repeats 80 times>, 0x55cd20 ' ' <repeats 80 times>, 0x55ce30 ' ' <repeats 80 times>, 0x5456c0 "[-- The following data is signed --]", ' ' <repeats 44 times>, 0x5459f0 ' ' <repeats 80 times>, 0x545d20 "Debian-Edu: Skolelinux 3.0 Terra available for free download!", ' ' <repeats 19 times>, 0x546050 "- s - 1/2: Steffen Joeris Release Announcement: Debian-Edu/Sko -- (16%) ", 0x546380 ' ' <repeats 80 times>} Regards, Jan
signature.asc
Description: Digital signature