aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-12-31 18:38:43 +0000
committerDaniel Jacobowitz <drow@false.org>2007-12-31 18:38:43 +0000
commitb7589f7df4a6b1c7c7a3948cc006e2c4fcdee4d6 (patch)
tree86fb70af26015d0a487a8cf8a44ffdbc4180c872 /gdb/symtab.c
parent4ae6d70300700f5ed376463d059d422712225211 (diff)
downloadfsf-binutils-gdb-b7589f7df4a6b1c7c7a3948cc006e2c4fcdee4d6.zip
fsf-binutils-gdb-b7589f7df4a6b1c7c7a3948cc006e2c4fcdee4d6.tar.gz
fsf-binutils-gdb-b7589f7df4a6b1c7c7a3948cc006e2c4fcdee4d6.tar.bz2
* remote.c (unpack_nibble): Use fromhex.
* symtab.c (find_line_common): Always set exact_match.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index f836878..303f477 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2424,6 +2424,8 @@ find_line_common (struct linetable *l, int lineno,
int best_index = -1;
int best = 0;
+ *exact_match = 0;
+
if (lineno <= 0)
return -1;
if (l == 0)
@@ -2449,8 +2451,6 @@ find_line_common (struct linetable *l, int lineno,
}
/* If we got here, we didn't get an exact match. */
-
- *exact_match = 0;
return best_index;
}