From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16519 invoked by alias); 29 Mar 2011 12:53:14 -0000 Received: (qmail 16499 invoked by uid 9478); 29 Mar 2011 12:53:13 -0000 Date: Tue, 29 Mar 2011 12:53:00 -0000 Message-ID: <20110329125313.16497.qmail@sourceware.org> From: jbrassow@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/scripts gdbinit Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00080.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: jbrassow@sourceware.org 2011-03-29 12:53:13 Modified files: scripts : gdbinit Log message: gdbinit update When doing lv_status_r on a sub_lv, do not climb the tree up past the starting point. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/gdbinit.diff?cvsroot=lvm2&r1=1.5&r2=1.6 --- LVM2/scripts/gdbinit 2011/03/14 18:05:56 1.5 +++ LVM2/scripts/gdbinit 2011/03/29 12:53:13 1.6 @@ -31,6 +31,7 @@ printf "break check_lv_segments\n" printf "break text_import_areas\n" printf "run --type raid1 -L 200M -n lv vg\n" +printf "run -m1 -L 200M -n lv vg\n" printf "lv_status_r lv\n" printf "\n\n" @@ -390,8 +391,15 @@ if ($_s == $_seg_list_head) if ($argc == 1) + __print_indent $indent 1 printf "[ No segments for %s ]\n", $_lv->name end + __get_only_segment_using_this_lv $_seg $_lv + + if ($_seg && $indent) + set $indent-- + __lv_status_r $_lv $_seg + end else set $_seg = (struct lv_segment *)$_s set $_type = 0x0