diff options
author | Daniel Jacobowitz <dan@debian.org> | 2007-12-31 18:38:43 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2007-12-31 18:38:43 +0000 |
commit | bed4bb58ce2cf607c58a4c0ed5d2c50e9c3868c6 (patch) | |
tree | 91648b177fc34f4483a8e0aafc93866630b1a02a /gdb | |
parent | 37b60284fac6cccba870eb09e271c69187edf931 (diff) | |
download | gdb-bed4bb58ce2cf607c58a4c0ed5d2c50e9c3868c6.tar.gz |
* remote.c (unpack_nibble): Use fromhex.
* symtab.c (find_line_common): Always set exact_match.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 2 | ||||
-rw-r--r-- | gdb/symtab.c | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a2f9f9841e..3d90983d956 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2007-12-31 Daniel Jacobowitz <dan@codesourcery.com> + * remote.c (unpack_nibble): Use fromhex. + * symtab.c (find_line_common): Always set exact_match. + +2007-12-31 Daniel Jacobowitz <dan@codesourcery.com> + * hppa-linux-nat.c: Use hppa-linux-offsets.h. * hppa-linux-offsets.h: New file. diff --git a/gdb/remote.c b/gdb/remote.c index 452af070138..1a51faef77d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1353,7 +1353,7 @@ unpack_varlen_hex (char *buff, /* packet to parse */ static char * unpack_nibble (char *buf, int *val) { - ishex (*buf++, val); + *val = fromhex (*buf++); return buf; } diff --git a/gdb/symtab.c b/gdb/symtab.c index f83687830c3..303f4778348 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; } |