From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25791 invoked by alias); 22 Mar 2010 14:36:03 -0000 Received: (qmail 25777 invoked by uid 48); 22 Mar 2010 14:36:02 -0000 Date: Mon, 22 Mar 2010 14:36:00 -0000 From: "danny dot geist at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20100322143600.11415.danny.geist@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug breakpoints/11415] New: Fix problem of hitting watchpoint of one thread while doing eval function on another X-Bugzilla-Reason: CC 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 X-SW-Source: 2010-q1/txt/msg00487.txt.bz2 If gdb receives an event on one thread while doing an eval of a function on another then an error occurs as follows: " The program received a signal in another thread while making a function call from GDB. Evaluation of the expression containing the function (XXX) will be abandoned.\n\ When the function is done executing, GDB will silently stop. " I hacked this a bit seems like a very small 4 line addition in the resume function in file infrun.c fixes the problem. heres a diff of the fix from version 7.0 1284,1287d1283 < else if(inferior_thread ()->in_infcall) < { < resume_ptid = inferior_ptid; < } I dont know what the impact other than it does seem to work and does not look like it breaks anything. I would like to get this fixed and am willing to do it if I get guidance as to how to test it and maybe on aspects I dont understand. I tried to do it very locally but maybe it requires more effort. Thanks, Danny -- Summary: Fix problem of hitting watchpoint of one thread while doing eval function on another Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: breakpoints AssignedTo: unassigned at sourceware dot org ReportedBy: danny dot geist at gmail dot com CC: gdb-prs at sourceware dot org GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://sourceware.org/bugzilla/show_bug.cgi?id=11415 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.