diff options
author | Matt Wilson <msw@redhat.com> | 2000-07-03 20:18:13 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-07-03 20:18:13 +0000 |
commit | 76e27eadd0837f271d212858ca426bc2d88bbcc6 (patch) | |
tree | a60e5e65f797ee616798a567b5e91da621350b96 /anaconda | |
parent | 7d508f91f670cd671cae2071b6ca76b731a68bf0 (diff) | |
download | anaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.tar.gz anaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.tar.xz anaconda-76e27eadd0837f271d212858ca426bc2d88bbcc6.zip |
1) save the local variables on the innermost frame. 2) implement dump window on gui
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -446,7 +446,10 @@ except: device = todo.fdDevice file = "/tmp/floppy" - isys.makeDevInode(device, file) + try: + isys.makeDevInode(device, file) + except SystemError: + pass try: fd = os.open(file, os.O_RDONLY) except: @@ -462,20 +465,28 @@ except: iutil.execWithRedirect (cmd, args, stdout = '/dev/tty5', stderr = '/dev/tty5') - isys.mount(device, "/mnt/crash", fstype = "vfat") + isys.mount(device, "/tmp/crash", fstype = "vfat") - out = open("/mnt/crash/anacdump.txt", "w") + out = open("/tmp/crash/anacdump.txt", "w") p = Pickler(out) out.write(text) + trace = tb + while trace.tb_next: + trace = trace.tb_next + frame = trace.tb_frame + out.write ("\nLocal variables in innermost frame:\n") + for (key, value) in frame.f_locals.items(): + out.write ("%s: %s\n" % (key, value)) + out.write("\nToDo object:\n") todo.intf = None todo.fstab = None p.dump(todo) out.close() - isys.umount("/mnt/crash") + isys.umount("/tmp/crash") intf.__del__ () os._exit (1) |