On Fri, Jun 08, 2007 at 08:35:10PM +0200, Reuben Thomas wrote:
> If you single-step in gdb from the call to search_forward you should be 
> able to see where bogosity sets in. (But don't worry about that too much; a 
> correct backtrace is the main thing, I think.)

With CVS from just a few minutes ago:

(gdb) step
search_forward (startp=0x55e970, starto=0, s=0x55d870 "a", regexp=0) at 
search.c:200
200           s1size = astr_len(lp->item) - starto;
(gdb) bt
#0  search_forward (startp=0x55e970, starto=0, s=0x55d870 "a", regexp=0) at 
search.c:200
#1  0x0000000000412419 in isearch (dir=1, regexp=0) at search.c:487
#2  0x0000000000405da9 in process_key (key=627) at bind.c:218
#3  0x000000000040fffd in main (argc=1, argv=0x7fffe3148db8) at main.c:88
(gdb) step
205         if (s1size < 1)
(gdb) bt
#0  search_forward (startp=0x55e970, starto=0, s=0x55d870 "a", regexp=0) at 
search.c:205
#1  0x0000000000412419 in isearch (dir=1, regexp=0) at search.c:487
#2  0x0000000000405da9 in process_key (key=627) at bind.c:218
#3  0x000000000040fffd in main (argc=1, argv=0x7fffe3148db8) at main.c:88
(gdb) step
208         if (regexp)
(gdb) bt
#0  search_forward (startp=0x55e970, starto=0, s=0x55d870 "a", regexp=0) at 
search.c:208
#1  0x0000000000412419 in isearch (dir=1, regexp=0) at search.c:487
#2  0x0000000000405da9 in process_key (key=627) at bind.c:218
#3  0x000000000040fffd in main (argc=1, argv=0x7fffe3148db8) at main.c:88
(gdb) step
92        for (; s1 <= e1 - s2size; s1++) {
(gdb) bt
#0  search_forward (startp=0x55e970, starto=0, s=0x55d870 "a", regexp=0) at 
search.c:92
#1  0x0000000000412419 in isearch (dir=1, regexp=0) at search.c:487
#2  0x0000000000405da9 in process_key (key=627) at bind.c:218
#3  0x000000000040fffd in main (argc=1, argv=0x7fffe3148db8) at main.c:88

Thank you,

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to