|
@@ -24,7 +24,7 @@ class LxDmesg(gdb.Command):
|
|
|
|
|
|
def invoke(self, arg, from_tty):
|
|
|
log_buf_addr = int(str(gdb.parse_and_eval(
|
|
|
- "'printk.c'::log_buf")).split()[0], 16)
|
|
|
+ "(void *)'printk.c'::log_buf")).split()[0], 16)
|
|
|
log_first_idx = int(gdb.parse_and_eval("'printk.c'::log_first_idx"))
|
|
|
log_next_idx = int(gdb.parse_and_eval("'printk.c'::log_next_idx"))
|
|
|
log_buf_len = int(gdb.parse_and_eval("'printk.c'::log_buf_len"))
|