summaryrefslogtreecommitdiffstats
path: root/scripts/gdbinit
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-09-08 22:19:45 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-09-08 22:19:45 +0000
commit4c259ae9454152e2549e886490ae8ee80ed7e1c0 (patch)
tree5b7b9c4007398e47ee31d3132b9012ffd8cfb032 /scripts/gdbinit
parent52e3f9dd5e683a6ae93fbfdeda3db2b3d1b26f1c (diff)
downloadlvm2-4c259ae9454152e2549e886490ae8ee80ed7e1c0.tar.gz
lvm2-4c259ae9454152e2549e886490ae8ee80ed7e1c0.tar.xz
lvm2-4c259ae9454152e2549e886490ae8ee80ed7e1c0.zip
Adjust gdbinit script to new RAID status flag values.
Diffstat (limited to 'scripts/gdbinit')
-rw-r--r--scripts/gdbinit16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/gdbinit b/scripts/gdbinit
index d542b010..8eb42d61 100644
--- a/scripts/gdbinit
+++ b/scripts/gdbinit
@@ -27,8 +27,8 @@ printf " - \n"
printf "Use 'help <command>' for more info\n"
printf "\n\n"
printf "Popular breakpoints:\n"
-printf "break _split_mirror_images\n"
-printf "run --splitmirrors 2 -n new vg/lv\n"
+printf "break _raid_add_images\n"
+printf "run --type raid1 -m 1 vg/lv\n"
printf "\n\n"
set follow-fork-mode child
@@ -175,18 +175,18 @@ define __status
# Constants defined in metadata-exported.h
# if ($_s_status & RAID)
- if ($_s_status & 0x00000001U)
- set $_s_status = $_s_status & ~0x00000001U
+ if ($_s_status & 0x0000000100000000LU)
+ set $_s_status = $_s_status & ~0x0000000100000000LU
printf " RAID"
end
# if ($_s_status & RAID_META)
- if ($_s_status & 0x00000002U)
- set $_s_status = $_s_status & ~0x00000002U
+ if ($_s_status & 0x0000000200000000LU)
+ set $_s_status = $_s_status & ~0x0000000200000000LU
printf " RAID_META"
end
# if ($_s_status & RAID_IMAGE)
- if ($_s_status & 0x00000004U)
- set $_s_status = $_s_status & ~0x00000004U
+ if ($_s_status & 0x0000000400000000LU)
+ set $_s_status = $_s_status & ~0x0000000400000000LU
printf " RAID_IMAGE"
end
# if ($_s_status & VISIBLE_LV)