diff options
| author | Peter Maydell | 2018-03-22 14:15:52 +0100 |
|---|---|---|
| committer | Peter Maydell | 2018-03-22 14:15:52 +0100 |
| commit | 99728ba3ec9b8795ff7191ea75a2a8c0329c29a5 (patch) | |
| tree | fe64d29fb86b50ba92001990609b5d803d71d2f8 /scripts | |
| parent | Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2018-03-21-1... (diff) | |
| parent | dump-guest-memory: more descriptive lookup_type failure (diff) | |
| download | qemu-99728ba3ec9b8795ff7191ea75a2a8c0329c29a5.tar.gz qemu-99728ba3ec9b8795ff7191ea75a2a8c0329c29a5.tar.xz qemu-99728ba3ec9b8795ff7191ea75a2a8c0329c29a5.zip | |
Merge remote-tracking branch 'remotes/elmarco/tags/dump-pull-request' into staging
Pull request
# gpg: Signature made Wed 21 Mar 2018 14:37:05 GMT
# gpg: using RSA key DAE8E10975969CE5
# gpg: Good signature from "Marc-André Lureau <marcandre.lureau@redhat.com>"
# gpg: aka "Marc-André Lureau <marcandre.lureau@gmail.com>"
# Primary key fingerprint: 87A9 BD93 3F87 C606 D276 F62D DAE8 E109 7596 9CE5
* remotes/elmarco/tags/dump-pull-request:
dump-guest-memory: more descriptive lookup_type failure
dump.c: allow fd_write_vmcore to return errno on failure
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/dump-guest-memory.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py index 51acfcd0c0..276eebf0c2 100644 --- a/scripts/dump-guest-memory.py +++ b/scripts/dump-guest-memory.py @@ -16,7 +16,12 @@ the COPYING file in the top-level directory. import ctypes import struct -UINTPTR_T = gdb.lookup_type("uintptr_t") +try: + UINTPTR_T = gdb.lookup_type("uintptr_t") +except Exception as inst: + raise gdb.GdbError("Symbols must be loaded prior to sourcing dump-guest-memory.\n" + "Symbols may be loaded by 'attach'ing a QEMU process id or by " + "'load'ing a QEMU binary.") TARGET_PAGE_SIZE = 0x1000 TARGET_PAGE_MASK = 0xFFFFFFFFFFFFF000 |
