Menu

#7 perl: bug-fix detection of "sources have been recompiled"

closed-fixed
nobody
None
5
2003-10-01
2003-09-15
No

This patch has been posted to the DDD mailing list by Peter Ernst on Thu, 6 Jun 2002 15:13:04 +0200 (MET DST)

-----------------------------------------------------------

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.

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
=======================================================================

Discussion

  • Christian Hattemer

    diff with fix

     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01
    • status: open --> closed
     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01
    • status: closed --> closed-fixed
     
  • Arnaud Desitter

    Arnaud Desitter - 2003-10-01

    Logged In: YES
    user_id=566665

    Applied to CVS repository.