From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24570 invoked by alias); 14 Jul 2014 10:59:04 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 24503 invoked by uid 48); 14 Jul 2014 10:59:03 -0000 From: "skwllsp at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug python/17152] when python pretty printer is used watch command prints new value in the old value filed Date: Mon, 14 Jul 2014 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: skwllsp at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q3/txt/msg00072.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17152 --- Comment #3 from Sergey Kurenkov --- What is expected for the test program is to see in gdb initial value (0,0,0,0,) in the field "Old value =". In this test the initial value is printed right after start of the program: $ gdb -q -x my_uchar4_printer.py -ex "set pagination off" -ex "start" -ex "watch value" -ex "print value" -ex "c" ./change_uchar_array4 Reading symbols from ./change_uchar_array4...done. Temporary breakpoint 1 at 0x4005a8: file change_uchar_array4.cpp, line 7. Starting program: /home/change_uchar_array4 Temporary breakpoint 1, main () at change_uchar_array4.cpp:7 7 memcpy(value, "He",2); Hardware watchpoint 2: value $1 = (0,0,0,0,) Continuing. Hardware watchpoint 2: value Old value = (72,101,0,0,) New value = (72,101,0,0,) 0x0000003a1d889974 in memcpy () from /lib64/libc.so.6 -- You are receiving this mail because: You are on the CC list for the bug.