Bug 70040 - debug in kdevelop has an architectural problem
Summary: debug in kdevelop has an architectural problem
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 4.0.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-10 20:48 UTC by Roger Larsson
Modified: 2009-07-25 16:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Larsson 2003-12-10 20:48:38 UTC
Version:           unknown (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.3.1 (SuSE Linux)
OS:          Linux (i686) release 2.4.19-4GB

When I read the API/architecture documentation I remembered one
thing I saw earlier but did not report. Since I am currently
recompiling KDE I can not check if this works in recent releases.
So I report it here most as a mental note.

(The API documentation:
http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/architecture.html )

And noticed that GDB debug is a subdirectory of C/C++
But GDB could also be used for Fortran, ADA, ...

Even worse is that Java can be compiled with gcj
	http://gcc.gnu.org/java/
and that result should be debugged with GDB...

Some restructuring is needed...
Comment 1 Amilcar do Carmo Lucas 2003-12-11 11:47:32 UTC
This is know.

The problem was introduced in b1 by me. I and some other persons in the project got the idea that the degugger could only do C.
jbb corrected me but I haven't corrected the problem yet because he didn't told me exacly which languages (from the 12 KDevelop supports) GDB supports.

He also have a Java debugger. What should we do with it?
Comment 2 Roger Larsson 2003-12-13 02:27:21 UTC
Simple rule - gdb can debug everything (close enough)...

Debug should be a subsystem on its own! ("Debug Tools")
Then you can select the debug system you like - gdb, ddd, ..., java debug.

Note the case where gdb can be used to debug natively compiled java programs.

source in java
	compile to bytecode
		(no link?)
			debug with java debugger
	compile to object code with gcj
		link with ...
			debug with gcc
			debug with ddd
Comment 3 Roger Larsson 2003-12-13 03:12:28 UTC
(tabs was deleted in previous...)

Almost forgot - in one project the source code type can be mixed!
Comment 4 Andreas Pakulat 2008-06-29 17:06:27 UTC
this will change in kdevelop4, but hasn't been finished yet.
Comment 5 Niko Sams 2009-07-25 15:36:58 UTC
does the kdevelop4 gdb plugin have any c++ dependencies? I don't think so. At least it's not under a c++ directory anymore.
Comment 6 Aleix Pol 2009-07-25 16:17:07 UTC
No, it's not linking against the c++ module.
Comment 7 Andreas Pakulat 2009-07-25 16:54:38 UTC
right, it doesn't use C++ support and AFAIK never did - even though it was in the cpp subdir. closing as invalid