summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-03 20:18:13 +0000
committerMatt Wilson <msw@redhat.com>2000-07-03 20:18:13 +0000
commit76e27eadd0837f271d212858ca426bc2d88bbcc6 (patch)
treea60e5e65f797ee616798a567b5e91da621350b96 /anaconda
parent7d508f91f670cd671cae2071b6ca76b731a68bf0 (diff)
downloadanaconda-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-xanaconda19
1 files changed, 15 insertions, 4 deletions
diff --git a/anaconda b/anaconda
index 64b50cb14..783b91c9c 100755
--- a/anaconda
+++ b/anaconda
@@ -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)