[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ddd && perl: bug-fix detection of "sources have been recompiled"
From: |
Peter Ernst |
Subject: |
ddd && perl: bug-fix detection of "sources have been recompiled" |
Date: |
Thu, 6 Jun 2002 15:13:04 +0200 (MET DST) |
Problem description:
DDD 3.3.1 with Perl: when debugging a Perl program, DDD doesn't
detect when the source files have been
modified and continues showing old versions of
the source from its source_file_cache.
The manual Source->Reload Source is working.
Fix description:
DDD's PosBuffer (ddd/PosBuffer.C) sets a "recompiled" flag
on certain messages from GDB or DBX. This flag causes
DDD to flush its source_file_cache. Until now there has
been no code to set the "recompiled" flag if Perl is in
use.
The "recompiled" flag should be set, when
PosBuffer::filter detects
has_prefix(answer, "Loading DB routines from perl5db.pl")
if Perl is in use.
here's the patch:
------------- begin patch -------------------
*** PosBuffer.C.orig Tue Jan 16 09:47:55 2001
--- PosBuffer.C Thu Jun 6 12:11:16 2002
***************
*** 198,207 ****
}
break;
case XDB:
case JDB:
case PYDB:
- case PERL:
break; // Nothing special
}
--- 198,213 ----
}
break;
+ case PERL:
+ {
+ if (has_prefix(answer, "Loading DB routines from perl5db.pl"))
+ recompiled = true;
+ }
+ break;
+
case XDB:
case JDB:
case PYDB:
break; // Nothing special
}
------------- end patch -------------------
Kind regards,
Peter Ernst
--
=======================================================================
Peter Ernst
Department of Molecular Biophysics - H0200
Deutsches Krebsforschungszentrum (German Cancer Research Center) DKFZ
Im Neuenheimer Feld 280
69120 Heidelberg, Germany phone: +49-6221-42-2330
http://genome.dkfz-heidelberg.de/ fax: +49-6221-42-2333
=======================================================================
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- ddd && perl: bug-fix detection of "sources have been recompiled",
Peter Ernst <=