From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1397 invoked by alias); 11 Dec 2002 02:53:01 -0000 Mailing-List: contact insight-prs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sources.redhat.com Received: (qmail 1379 invoked by uid 71); 11 Dec 2002 02:53:00 -0000 Date: Tue, 10 Dec 2002 18:53:00 -0000 Message-ID: <20021211025300.1378.qmail@sources.redhat.com> To: kseitz@sources.redhat.com Cc: insight-prs@sources.redhat.com, From: "zhao mindong" Subject: Re: insight/193: breakpoint at ling can not be get rig of or the program somtimes exit abnormally Reply-To: "zhao mindong" X-SW-Source: 2002-q4/txt/msg00035.txt.bz2 List-Id: The following reply was made to PR insight/193; it has been noted by GNATS. From: "zhao mindong" To: kseitz@sources.redhat.com, foolfox008@hotmail.com, insight-prs@sources.redhat.com, nobody@sources.redhat.com, insight-gnats@sources.redhat.com Cc: Subject: Re: insight/193: breakpoint at ling can not be get rig of or the program somtimes exit abnormally Date: Wed, 11 Dec 2002 10:43:52 +0800 srctextwin.itb body SrcTextWin::remove_bp_at_line {{win {}} {y -1}} if {$Running} {return} # Look up the line... This foreach is an lassign... foreach {name line addr type} [lookup_line $win $y] { break } # FIXME: if there are multiple bp/tp at a single line, # we will (right now) always take the first one we find... switch $type { # src { set bps [gdb_find_bp_at_line $name $addr] } i think the problem # takes place here,the $current(filename) include the absolutepath, # $name only includes the name of the file--no path info,so when we want # to get rid of the breakpoint ,it couldn't find the source file. src { set bps [gdb_find_bp_at_line $current(filename) $addr] } asm { set bps [gdb_find_bp_at_addr $addr] } } i hope sunch change would not cause other troubles... >From: kseitz@sources.redhat.com >Reply-To: kseitz@sources.redhat.com, foolfox008@hotmail.com, >insight-prs@sources.redhat.com, kseitz@sources.redhat.com, >nobody@sources.redhat.com, insight-gnats@sources.redhat.com >To: foolfox008@hotmail.com, insight-prs@sources.redhat.com, >kseitz@sources.redhat.com, nobody@sources.redhat.com >Subject: Re: insight/193: breakpoint at ling can not be get rig of or the >program somtimes exit abnormally >Date: 10 Dec 2002 00:55:29 -0000 > >Synopsis: breakpoint at ling can not be get rig of or the program somtimes >exit abnormally > >Responsible-Changed-From-To: unassigned->kseitz >Responsible-Changed-By: kseitz >Responsible-Changed-When: Mon Dec 9 16:55:29 2002 >Responsible-Changed-Why: > who else? >State-Changed-From-To: open->feedback >State-Changed-By: kseitz >State-Changed-When: Mon Dec 9 16:55:29 2002 >State-Changed-Why: > I notice in your compile line that you are using windows-style paths. >Remember, gdb (and consequently insight) are cygwin applications. Therefore >paths _must_ be POSIX-style paths. So don't use "d:\file.c", use >"/cygdrive/d/file.c" or (better yet) "mkdir /d; mount d: /d" Then use >"/d/file.c" (this is what I do). > > Try recompiling your exe with POSIX paths and let me know if it helps >any. > >http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=insight&pr=193 _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus