This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
Re: insight/193: breakpoint at ling can not be get rig of or the programsomtimes exit abnormally
- From: "zhao mindong" <foolfox008 at hotmail dot com>
- To: kseitz at sources dot redhat dot com
- Cc: insight-prs at sources dot redhat dot com,
- Date: 11 Dec 2002 02:53:00 -0000
- Subject: Re: insight/193: breakpoint at ling can not be get rig of or the programsomtimes exit abnormally
- Reply-to: "zhao mindong" <foolfox008 at hotmail dot com>
The following reply was made to PR insight/193; it has been noted by GNATS.
From: "zhao mindong" <foolfox008@hotmail.com>
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