debugger picks up at wrong sourcefile ( again )

debugger picks up at wrong sourcefile ( again )

Post by j » Fri, 04 Jul 2003 23:12:05



hi,

some weeks ago I complained that CW83 on W2K sometimes starts
a debug session in another file than it should, this problem seemed
to disappear when the debug cache was purged.

However, this time nothing seems to help; my project looks like this:

project+sourcefiles1+file1_1.cpp
           |                     file1_1.h
           |                     file1_2.cpp
           |                     file1_2.h
           |                        ...
           +sourcefiles2+file2_1.cpp
           |                     file2_1.h
           |                     file2_2.cpp
           |                     file2_2.h
           |                         ...
           +subproject1+subproject1_data+...
           |                      subproject1.cpp
           |                      subproject1.h
           |                      main.cpp
           |                      subproject1.mcp
           |
           +subproject2+subproject2_data+...
                                  subproject2.cpp
                                  subproject2.h
                                  main.cpp
                                  subproject2.mcp

so subproject2.mcp is a copy of subproject1.mcp, where all files
belonging to subproject1 were deleted from the mcp and replaced by
the files in subproject2. This works fine, until debug-time. The main.cpp
from subproject 1 is seen by the de* as the file with entrypoint rather
than main.cpp in subproject2. Then it was suggested that I 1) delete
all _data directories of the subprojects and 2) purge the de* cache.
This time this doesnt work and the only solution seems to be to rename
the subproject1 folder in, say subproject1_. Then the de*
does pick the right file. No need to say I dont want to do this.

Any suggestions ?

J

--

 
 
 

debugger picks up at wrong sourcefile ( again )

Post by patro » Sat, 05 Jul 2003 05:31:06


I have the same problem sometimes, cw uses different source files.  ( W2K
also )

pat.

 
 
 

debugger picks up at wrong sourcefile ( again )

Post by MW Ro » Wed, 09 Jul 2003 07:44:38




>hi,

>some weeks ago I complained that CW83 on W2K sometimes starts
>a debug session in another file than it should, this problem seemed
>to disappear when the debug cache was purged.

>However, this time nothing seems to help; my project looks like this:

>project+sourcefiles1+file1_1.cpp
>           |                     file1_1.h
>           |                     file1_2.cpp
>           |                     file1_2.h
>           |                        ...
>           +sourcefiles2+file2_1.cpp
>           |                     file2_1.h
>           |                     file2_2.cpp
>           |                     file2_2.h
>           |                         ...
>           +subproject1+subproject1_data+...
>           |                      subproject1.cpp
>           |                      subproject1.h
>           |                      main.cpp
>           |                      subproject1.mcp
>           |
>           +subproject2+subproject2_data+...
>                                  subproject2.cpp
>                                  subproject2.h
>                                  main.cpp
>                                  subproject2.mcp

>so subproject2.mcp is a copy of subproject1.mcp, where all files
>belonging to subproject1 were deleted from the mcp and replaced by
>the files in subproject2. This works fine, until debug-time. The main.cpp
>from subproject 1 is seen by the de* as the file with entrypoint rather
>than main.cpp in subproject2. Then it was suggested that I 1) delete
>all _data directories of the subprojects and 2) purge the de* cache.
>This time this doesnt work and the only solution seems to be to rename
>the subproject1 folder in, say subproject1_. Then the de*
>does pick the right file. No need to say I dont want to do this.

Remove object code and compact, Research for files.  Purge the de*
cache and be sure to delete any debug files such as sym or dbg files
that you find.  If that doesn't work try switching from CodeView to SYM
or vice versa.  

This is a problem with the cache and for some reason (like you move
files while the project is loaded and create a new one, things happen.

If all else fails.  Create a new project in the same folder.  copy the
files from one project to the new one (drag and drop them) and it should
resolve any bad links.

Ron

--
           Metrowerks has moved, our new address is now
                     7700 West Parmer Lane
                       Austin, TX 78729
        Sales and Support 512-996-5300   800-377-5416    

 
 
 

1. debugger picks wrong file ?

hi,

when Im entering debug mode for my project,
the debugger sometimes (sic) opens up a file
that has the same name as the intended file in
my project but in the current working directory
- that is the last directory opened from within CW -
not the one that was actually compiled in the project.
Ive tried changing directories etc. But once it got hold
of it, it wont let go. restarting CW solves it ( sometimes )

any ideas, workarounds ?

J

2. The problem with temporaries <-> x3j16 string proposal

3. CW for Java Release 5 picking up wrong version of java.util.Properties, help please!

4. Initialisation string

5. ups debugger does not work with pigi

6. problems installing with 8.8.6 ( Linux)

7. AGAIN? and again and again and . . .

8. Please help me with PHSS_5515

9. 5333, again, again and again...

10. Did I buy the wrong thing AGAIN!?!

11. Neil your wrong again (was Divest Adobe)

12. Brian--wrong again

13. HELP! UPS Part for NCR/Exide UPS!