This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/11415] New: Fix problem of hitting watchpoint of one thread while doing eval function on another
- From: "danny dot geist at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 22 Mar 2010 14:36:02 -0000
- Subject: [Bug breakpoints/11415] New: Fix problem of hitting watchpoint of one thread while doing eval function on another
- Reply-to: sourceware-bugzilla at sourceware dot org
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.