Page MenuHomeFreeBSD

D6146.1796040397.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D6146.1796040397.diff

Index: sys/ddb/db_examine.c
===================================================================
--- sys/ddb/db_examine.c
+++ sys/ddb/db_examine.c
@@ -89,16 +89,7 @@
case 'g':
size = 8;
break;
- case 'a': /* address */
- size = sizeof(void *);
- /* always forces a new line */
- if (db_print_position() != 0)
- db_printf("\n");
- db_prev = addr;
- db_printsym(addr, DB_STGY_ANY);
- db_printf(":\t");
- break;
- default:
+ default:
if (db_print_position() == 0) {
/* Print the address. */
db_printsym(addr, DB_STGY_ANY);
@@ -108,6 +99,21 @@
width = size * 4;
switch (c) {
+ case 'a': /* address */
+ size = sizeof(void *);
+ /* always forces a new line */
+ if (db_print_position() != 0)
+ db_printf("\n");
+ db_prev = addr;
+ db_printsym(addr, DB_STGY_ANY);
+ db_printf(":\t");
+ break;
+ case 'p':
+ size = sizeof(void *);
+ value = db_get_value(addr, size, TRUE);
+ addr += size;
+ db_printf("%p", (void *)value);
+ break;
case 'r': /* signed, current radix */
value = db_get_value(addr, size, true);
addr += size;
@@ -173,7 +179,7 @@
default:
break;
}
- if (db_print_position() != 0)
+ if (db_print_position() != 0 || c == 'a' || c == 'p')
db_end_line(1);
break;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 30, 12:06 PM (16 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42105625
Default Alt Text
D6146.1796040397.diff (1 KB)

Event Timeline