OSDN Git Service

* remote.c (unpack_nibble): Use fromhex.
authordrow <drow>
Mon, 31 Dec 2007 18:38:42 +0000 (18:38 +0000)
committerdrow <drow>
Mon, 31 Dec 2007 18:38:42 +0000 (18:38 +0000)
* symtab.c (find_line_common): Always set exact_match.

gdb/ChangeLog
gdb/remote.c
gdb/symtab.c

index 1a2f9f9..3d90983 100644 (file)
@@ -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.
 
index 452af07..1a51fae 100644 (file)
@@ -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;
 }
 
index f836878..303f477 100644 (file)
@@ -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;
 }