Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!gatech!tut.cis.ohio-state.edu!labs.labs.tek.com!eirik From: eirik@labs.labs.tek.com (Eirik Fuller) Newsgroups: gnu.gdb.bug Subject: bug in "info break", with a fix Message-ID: <8908041714.AA04002@elf.LABS.TEK.COM> Date: 4 Aug 89 17:14:39 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 28 The enclosed patch eliminates a gdb segfault. The segfault occurred during "info break" with a breakpoint whose condition is "this == 0". *** ../gdb-3.2/expprint.c Fri Jul 7 14:22:13 1989 --- expprint.c Fri Aug 4 10:06:49 1989 *************** *** 276,282 break; } ! default: for (tem = 0; tem < sizeof op_print_tab / sizeof op_print_tab[0]; tem++) if (op_print_tab[tem].opcode == opcode) { --- 276,287 ----- break; } ! case OP_THIS: ! ++(*pos); ! fprintf (stream, "this"); ! return; ! ! default: for (tem = 0; tem < sizeof op_print_tab / sizeof op_print_tab[0]; tem++) if (op_print_tab[tem].opcode == opcode) {