Hi Dave, The newly modification of gdb involved some bug. When using mount, crash prints the following message. <cut> crash> mount mount: invalid structure member offset: mount_mnt_devname FILE: filesys.c LINE: 1396 FUNCTION: show_mounts() [./crash] error trace: 45dbf7 => 49dc02 => 49af31 => 502cdd MOUNT SUPERBLK TYPE DEVNAME DIRNAME 502cdd: OFFSET_verify+189 49af31: show_mounts+785 49dc02: cmd_mount+1234 45dbf7: exec_command+919 mount: invalid structure member offset: mount_mnt_devname FILE: filesys.c LINE: 1396 FUNCTION: show_mounts() crash> <cut> Then I try to find what caused the bug. I found a wrong number is returned when using "STRUCT_SIZE_INIT(mount, "mount");". and then I referred to the changelog to see what had happened, and I guess from changelog, the bug is related to <cut> - Patch to the internal gdb_get_datatype() function to return the typecode and length of integer variables. (adrian.wenl@xxxxxxxxx, anderson@xxxxxxxxxx) <cut> So I made the patch to fix it. -- -- Regards Qiao Nuohan
Attachment:
0001-fix-bug-of-gdb.patch
Description: Binary data
-- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility