Commit 3dbe708c authored by alex@thinkpad's avatar alex@thinkpad
Browse files

GDB scripts: moved try_expand_ram_struct at the top

--HG--
branch : qemu
parent 26275622a6af
...@@ -156,6 +156,13 @@ define print_current_location_with_callstack ...@@ -156,6 +156,13 @@ define print_current_location_with_callstack
print_current_location print_current_location
end end
# helper for unknown data structures
define try_expand_ram_struct
if $arg0 > 0x1000 && $arg0 < 0x1000000
printf " "
printf "*0x%x = { %x %x %x %x %x ... }\n", $arg0, MEM($arg0), MEM($arg0+4), MEM($arg0+8), MEM($arg0+12), MEM($arg0+16)
end
end
define print_formatted_string define print_formatted_string
# count how many % characters we have # count how many % characters we have
...@@ -846,13 +853,6 @@ define prop_deliver_log ...@@ -846,13 +853,6 @@ define prop_deliver_log
end end
end end
define try_expand_ram_struct
if $arg0 > 0x1000 && $arg0 < 0x1000000
printf " "
printf "*0x%x = { %x %x %x %x %x ... }\n", $arg0, MEM($arg0), MEM($arg0+4), MEM($arg0+8), MEM($arg0+12), MEM($arg0+16)
end
end
define try_post_event_log define try_post_event_log
commands commands
silent silent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment