From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31485 invoked by alias); 24 Mar 2013 15:21:33 -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 31455 invoked by uid 48); 24 Mar 2013 15:21:32 -0000 From: "jan.kratochvil at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/14959] Software watchpoint deleted when we have a call to @plt function Date: Sun, 24 Mar 2013 15:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: jan.kratochvil at redhat 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-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q1/txt/msg00507.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14959 --- Comment #6 from Jan Kratochvil 2013-03-24 15:21:32 UTC --- (In reply to comment #3) > And before executing instruction, that "read from" or "write to" > memory, GDB should check, does it write or read to this software break places GDB (almost) never decodes instructions (only 'record' does). It brings in the problem to keep GDB up to date with all the instruction extensions (AVX2 etc.). (In reply to comment #5) > Sorry for double posting. Also > http://sourceware.org/bugzilla/show_bug.cgi?id=15299 I do not see how it is related. But this Bug is rather a problem of the libraries. Recent GNU ld and also gold provide unwind information even for the plt frames. GDB could workaround it somehow but I do not see any need for it nowadays. Fedora 17 x86_64: GNU gdb (GDB) 7.6.50.20130322-cvs Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/jkratoch/t/sbp...done. (gdb) b main Breakpoint 1 at 0x40055b: file sbp.c, line 12. (gdb) r Starting program: /home/jkratoch/t/sbp Breakpoint 1, main () at sbp.c:12 12 int q = 0; (gdb) set can-use-hw-watchpoints 0 (gdb) watch q Watchpoint 2: q (gdb) n 13 func2(); (gdb) c Continuing. global = 0 Watchpoint 2: q Old value = 0 New value = 1 main () at sbp.c:15 15 return 0; (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.