the addr is before the first source addr, let's assume it's legit and
return the first source line. This prevents the obnoxious 'second number
must be greater than first' message after 'func foo; list' and function foo
is the first function in the file.
SCCS-vsn: old/dbx/mappings.c 5.2
-static char sccsid[] = "@(#)mappings.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)mappings.c 5.2 (Berkeley) %G%";
#endif not lint
static char rcsid[] = "$Header: mappings.c,v 1.4 84/12/26 10:40:25 linton Exp $";
#endif not lint
static char rcsid[] = "$Header: mappings.c,v 1.4 84/12/26 10:40:25 linton Exp $";
register Lineno r;
register Address a;
register Lineno r;
register Address a;
- if (nlhdr.nlines == 0 or addr < linetab[0].addr) {
+ if (nlhdr.nlines == 0) {
+ } else if (addr < linetab[0].addr) {
+ r = exact ? -1 : 0;
} else {
i = 0;
j = nlhdr.nlines - 1;
} else {
i = 0;
j = nlhdr.nlines - 1;