summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-09-20 13:56:11 +0000
committerjhb <jhb@FreeBSD.org>2002-09-20 13:56:11 +0000
commit8ba762c99fdd5542140d9c5fc4f06101b0ca1253 (patch)
tree54cca31c8dd88afc780267705380f6bd5f212b42
parent1deeb25fda9faa05fc654ec58f293b16fcb5806d (diff)
downloadFreeBSD-src-8ba762c99fdd5542140d9c5fc4f06101b0ca1253.zip
FreeBSD-src-8ba762c99fdd5542140d9c5fc4f06101b0ca1253.tar.gz
Use proper type for a variable used as a DDB symbol.
-rw-r--r--sys/amd64/amd64/db_trace.c3
-rw-r--r--sys/i386/i386/db_trace.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c
index 9ec6aea..69aa8e8 100644
--- a/sys/amd64/amd64/db_trace.c
+++ b/sys/amd64/amd64/db_trace.c
@@ -206,7 +206,8 @@ db_nextframe(fp, ip, p)
int frame_type;
int eip, esp, ebp;
db_expr_t offset;
- const char *sym, *name;
+ c_db_sym_t sym;
+ const char *name;
eip = db_get_value((int) &(*fp)->f_retaddr, 4, FALSE);
ebp = db_get_value((int) &(*fp)->f_frame, 4, FALSE);
diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c
index 9ec6aea..69aa8e8 100644
--- a/sys/i386/i386/db_trace.c
+++ b/sys/i386/i386/db_trace.c
@@ -206,7 +206,8 @@ db_nextframe(fp, ip, p)
int frame_type;
int eip, esp, ebp;
db_expr_t offset;
- const char *sym, *name;
+ c_db_sym_t sym;
+ const char *name;
eip = db_get_value((int) &(*fp)->f_retaddr, 4, FALSE);
ebp = db_get_value((int) &(*fp)->f_frame, 4, FALSE);
OpenPOWER on IntegriCloud