Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/fbt DTrace: fix a sign problem with ...
details: https://anonhg.NetBSD.org/src/rev/f0aaef0805c0
branches: trunk
changeset: 752955:f0aaef0805c0
user: darran <darran%NetBSD.org@localhost>
date: Sat Mar 13 01:10:01 2010 +0000
description:
DTrace: fix a sign problem with instruction size handling.
diffstat:
external/cddl/osnet/dev/fbt/fbt.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 1ea256a883e4 -r f0aaef0805c0 external/cddl/osnet/dev/fbt/fbt.c
--- a/external/cddl/osnet/dev/fbt/fbt.c Fri Mar 12 23:07:13 2010 +0000
+++ b/external/cddl/osnet/dev/fbt/fbt.c Sat Mar 13 01:10:01 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fbt.c,v 1.3 2010/03/12 21:53:15 darran Exp $ */
+/* $NetBSD: fbt.c,v 1.4 2010/03/13 01:10:01 darran Exp $ */
/*
* CDDL HEADER START
@@ -237,7 +237,7 @@
static int
fbt_provide_module_cb(const char *name, int symindx, void *value,
- uint32_t size, int type, void *opaque)
+ uint32_t symsize, int type, void *opaque)
{
fbt_probe_t *fbt, *retfbt;
u_int8_t *instr, *limit;
@@ -245,6 +245,7 @@
const char *modname = mod->mod_info->mi_name;
int j;
int ind;
+ int size;
/* got a function? */
if (ELF_ST_TYPE(type) != STT_FUNC) {
@@ -266,7 +267,7 @@
return (0);
instr = (u_int8_t *) value;
- limit = (u_int8_t *) value + size;
+ limit = (u_int8_t *) value + symsize;
#ifdef __amd64__
while (instr < limit) {
Home |
Main Index |
Thread Index |
Old Index