Index: x86-64-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v retrieving revision 1.20 diff -c -3 -p -r1.20 x86-64-tdep.c *** x86-64-tdep.c 27 May 2002 13:37:38 -0000 1.20 --- x86-64-tdep.c 5 Jun 2002 11:55:18 -0000 *************** x86_64_frameless_function_invocation (st *** 845,854 **** CORE_ADDR x86_64_skip_prologue (CORE_ADDR pc) { ! int i, firstline, currline; struct symtab_and_line v_sal; struct symbol *v_function; ! CORE_ADDR salendaddr = 0, endaddr = 0; /* We will handle only functions beginning with: 55 pushq %rbp --- 845,854 ---- CORE_ADDR x86_64_skip_prologue (CORE_ADDR pc) { ! int i; struct symtab_and_line v_sal; struct symbol *v_function; ! CORE_ADDR endaddr; /* We will handle only functions beginning with: 55 pushq %rbp *************** x86_64_skip_prologue (CORE_ADDR pc) *** 876,893 **** if (!v_function || !v_function->ginfo.value.block || !v_sal.symtab) return pc; - firstline = v_sal.line; - currline = firstline; - salendaddr = v_sal.end; endaddr = v_function->ginfo.value.block->endaddr; for (i = 0; i < v_sal.symtab->linetable->nitems; i++) ! if (v_sal.symtab->linetable->item[i].line > firstline ! && v_sal.symtab->linetable->item[i].pc >= salendaddr && v_sal.symtab->linetable->item[i].pc < endaddr) { pc = v_sal.symtab->linetable->item[i].pc; - currline = v_sal.symtab->linetable->item[i].line; break; } --- 876,888 ---- if (!v_function || !v_function->ginfo.value.block || !v_sal.symtab) return pc; endaddr = v_function->ginfo.value.block->endaddr; for (i = 0; i < v_sal.symtab->linetable->nitems; i++) ! if (v_sal.symtab->linetable->item[i].pc >= pc && v_sal.symtab->linetable->item[i].pc < endaddr) { pc = v_sal.symtab->linetable->item[i].pc; break; }