[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/11] i386/i386/db_interface.c: comment function and the calls
From: |
Marin Ramesa |
Subject: |
[PATCH 06/11] i386/i386/db_interface.c: comment function and the calls |
Date: |
Wed, 20 Nov 2013 20:42:50 +0100 |
* i386/i386/db_interface.c (db_search_null): Comment unused function and the
calls in the never reached code.
---
i386/i386/db_interface.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index d8d5b9b..12e59ca 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -640,6 +640,7 @@ db_phys_eq(
#define DB_USER_STACK_ADDR (VM_MIN_KERNEL_ADDRESS)
#define DB_NAME_SEARCH_LIMIT (DB_USER_STACK_ADDR-(INTEL_PGBYTES*3))
+/*
static boolean_t
db_search_null(
task_t task,
@@ -670,6 +671,7 @@ db_search_null(
}
return FALSE;
}
+*/
#define GNU
@@ -771,17 +773,18 @@ db_task_name(
/*
* skip nulls at the end
*/
+ /*
if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 0)) {
db_printf(DB_NULL_TASK_NAME);
return;
- }
+ }*/
/*
* search start of args
*/
- if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 1)) {
+ /*if (!db_search_null(task, &vaddr, DB_NAME_SEARCH_LIMIT, &kaddr, 1)) {
db_printf(DB_NULL_TASK_NAME);
return;
- }
+ }*/
#endif /* GNU */
ok:
--
1.8.1.4
- [PATCH 01/11] i386/i386/db_interface.c: fix passing from incompatible pointer type, Marin Ramesa, 2013/11/20
- [PATCH 02/11] i386/i386/db_interface.c: fix assignment from incompatible pointer type, Marin Ramesa, 2013/11/20
- [PATCH 03/11] i386/i386/db_interface.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- [PATCH 04/11] i386/i386/db_interface.c: remove return value, Marin Ramesa, 2013/11/20
- [PATCH 05/11] i386/i386/db_interface.c: add comments after else and endif, Marin Ramesa, 2013/11/20
- [PATCH 06/11] i386/i386/db_interface.c: comment function and the calls,
Marin Ramesa <=
- [PATCH 07/11] i386/i386/db_trace.c: cast to (int *), Marin Ramesa, 2013/11/20
- [PATCH 09/11] i386/i386/db_trace.c: don't cast to db_addr_t, Marin Ramesa, 2013/11/20
- [PATCH 08/11] i386/i386/db_trace.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- [PATCH 10/11] i386/i386/db_trace.c: return reg value, Marin Ramesa, 2013/11/20
- [PATCH 11/11] i386/i386/trap.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- Re: [PATCH 01/11] i386/i386/db_interface.c: fix passing from incompatible pointer type, Samuel Thibault, 2013/11/20