[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] i386/i386/db_trace.c: make function void
From: |
Marin Ramesa |
Subject: |
[PATCH 5/5] i386/i386/db_trace.c: make function void |
Date: |
Thu, 21 Nov 2013 13:11:08 +0100 |
* i386/i386/db_trace.c (db_i386_reg_value): Make function void.
(db_regs): Cast to (void *).
---
i386/i386/db_trace.c | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c
index 8bad6b0..17ceb66 100644
--- a/i386/i386/db_trace.c
+++ b/i386/i386/db_trace.c
@@ -46,7 +46,7 @@
#include "trap.h"
-long
+void
db_i386_reg_value(
struct db_variable *vp,
db_expr_t *valuep,
@@ -57,22 +57,22 @@ db_i386_reg_value(
* Machine register set.
*/
struct db_variable db_regs[] = {
- { "cs", (long *)&ddb_regs.cs, db_i386_reg_value },
- { "ds", (long *)&ddb_regs.ds, db_i386_reg_value },
- { "es", (long *)&ddb_regs.es, db_i386_reg_value },
- { "fs", (long *)&ddb_regs.fs, db_i386_reg_value },
- { "gs", (long *)&ddb_regs.gs, db_i386_reg_value },
- { "ss", (long *)&ddb_regs.ss, db_i386_reg_value },
- { "eax",(long *)&ddb_regs.eax, db_i386_reg_value },
- { "ecx",(long *)&ddb_regs.ecx, db_i386_reg_value },
- { "edx",(long *)&ddb_regs.edx, db_i386_reg_value },
- { "ebx",(long *)&ddb_regs.ebx, db_i386_reg_value },
- { "esp",(long *)&ddb_regs.uesp,db_i386_reg_value },
- { "ebp",(long *)&ddb_regs.ebp, db_i386_reg_value },
- { "esi",(long *)&ddb_regs.esi, db_i386_reg_value },
- { "edi",(long *)&ddb_regs.edi, db_i386_reg_value },
- { "eip",(long *)&ddb_regs.eip, db_i386_reg_value },
- { "efl",(long *)&ddb_regs.efl, db_i386_reg_value },
+ { "cs", (long *)&ddb_regs.cs, (void *)db_i386_reg_value },
+ { "ds", (long *)&ddb_regs.ds, (void *)db_i386_reg_value },
+ { "es", (long *)&ddb_regs.es, (void *)db_i386_reg_value },
+ { "fs", (long *)&ddb_regs.fs, (void *)db_i386_reg_value },
+ { "gs", (long *)&ddb_regs.gs, (void *)db_i386_reg_value },
+ { "ss", (long *)&ddb_regs.ss, (void *)db_i386_reg_value },
+ { "eax",(long *)&ddb_regs.eax, (void *)db_i386_reg_value },
+ { "ecx",(long *)&ddb_regs.ecx, (void *)db_i386_reg_value },
+ { "edx",(long *)&ddb_regs.edx, (void *)db_i386_reg_value },
+ { "ebx",(long *)&ddb_regs.ebx, (void *)db_i386_reg_value },
+ { "esp",(long *)&ddb_regs.uesp,(void *)db_i386_reg_value },
+ { "ebp",(long *)&ddb_regs.ebp, (void *)db_i386_reg_value },
+ { "esi",(long *)&ddb_regs.esi, (void *)db_i386_reg_value },
+ { "edi",(long *)&ddb_regs.edi, (void *)db_i386_reg_value },
+ { "eip",(long *)&ddb_regs.eip, (void *)db_i386_reg_value },
+ { "efl",(long *)&ddb_regs.efl, (void *)db_i386_reg_value },
};
struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
@@ -125,7 +125,7 @@ db_lookup_i386_kreg(
return 0;
}
-long
+void
db_i386_reg_value(
struct db_variable *vp,
db_expr_t *valuep,
--
1.8.1.4
[PATCH 3/5] i386/i386at/kd.h: fix implicit declaration of function, Marin Ramesa, 2013/11/21
[PATCH 4/5] i386/i386/db_interface.h: fix implicit declaration of function, Marin Ramesa, 2013/11/21
[PATCH 5/5] i386/i386/db_trace.c: make function void,
Marin Ramesa <=
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Samuel Thibault, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Marin Ramesa, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Samuel Thibault, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Marin Ramesa, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Samuel Thibault, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Marin Ramesa, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Samuel Thibault, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Samuel Thibault, 2013/11/21
- Re: [PATCH 5/5] i386/i386/db_trace.c: make function void, Marin Ramesa, 2013/11/21