summaryrefslogtreecommitdiffstats
path: root/scripts/gdbinit
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-09-13 13:57:02 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-09-13 13:57:02 +0000
commit08c50a291ea987b3bd49ab23a1e5bfa908bfabd9 (patch)
tree5b59b8c5548d1a7cd5005eb00f3a7aa0992d605e /scripts/gdbinit
parenteeef3558876b7e2797b5179f859a06c4ede2b7f2 (diff)
downloadlvm2-08c50a291ea987b3bd49ab23a1e5bfa908bfabd9.tar.gz
lvm2-08c50a291ea987b3bd49ab23a1e5bfa908bfabd9.tar.xz
lvm2-08c50a291ea987b3bd49ab23a1e5bfa908bfabd9.zip
reorder some status flag printing in gdbinit file.
Diffstat (limited to 'scripts/gdbinit')
-rw-r--r--scripts/gdbinit30
1 files changed, 15 insertions, 15 deletions
diff --git a/scripts/gdbinit b/scripts/gdbinit
index 8eb42d61..0088017b 100644
--- a/scripts/gdbinit
+++ b/scripts/gdbinit
@@ -189,6 +189,21 @@ define __status
set $_s_status = $_s_status & ~0x0000000400000000LU
printf " RAID_IMAGE"
end
+# if ($_s_status & MIRRORED)
+ if ($_s_status & 0x00008000U)
+ set $_s_status = $_s_status & ~0x00008000U
+ printf " MIRRORED"
+ end
+# if ($_s_status & MIRROR_LOG)
+ if ($_s_status & 0x00020000U)
+ set $_s_status = $_s_status & ~0x00020000U
+ printf " MIRROR_LOG"
+ end
+# if ($_s_status & MIRROR_IMAGE)
+ if ($_s_status & 0x00040000U)
+ set $_s_status = $_s_status & ~0x00040000U
+ printf " MIRROR_IMAGE"
+ end
# if ($_s_status & VISIBLE_LV)
if ($_s_status & 0x00000040U)
printf " VISIBLE_LV"
@@ -226,21 +241,6 @@ define __status
set $_s_status = $_s_status & ~0x00004000U
printf " LOCKED"
end
-# if ($_s_status & MIRRORED)
- if ($_s_status & 0x00008000U)
- set $_s_status = $_s_status & ~0x00008000U
- printf " MIRRORED"
- end
-# if ($_s_status & MIRROR_LOG)
- if ($_s_status & 0x00020000U)
- set $_s_status = $_s_status & ~0x00020000U
- printf " MIRROR_LOG"
- end
-# if ($_s_status & MIRROR_IMAGE)
- if ($_s_status & 0x00040000U)
- set $_s_status = $_s_status & ~0x00040000U
- printf " MIRROR_IMAGE"
- end
# if ($_s_status & LV_NOTSYNCED)
if ($_s_status & 0x00080000U)
set $_s_status = $_s_status & ~0x00080000U