Can't load source in ddd

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”

What’s going on?
thanks
Markus

You compiled with -g? I’ve never had to open source before simply because,
if the debug info is there it always gets pulled in automatically.

As far as shared libs go, they also need to be compiled with debug info but
you can’t pull them in until the program is actually running (the linker
needs to run for gdb to know which libs are being pulled in).

Forgive me if I’ve just spewed a bunch of obviousness…if the problem is
more complex I may need some more details of exactly the steps you went
through.

cheers,

Kris

Markus Loffler <loffler@ces.clemson.edu> wrote:

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”

What’s going on?
thanks
Markus


Kris Warkentin
kewarken@qnx.com
(613)591-0836 x9368
“You’re bound to be unhappy if you optimize everything” - Donald Knuth

Markus Loffler a écrit :

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

For that, I don’t know exactly, first read Kris’s answer.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”

Here, I think it’s normal (maybe), your program has to start to load the
library. So, Hit the Run button, after that you should be able to see your
sources.

What’s going on?
thanks
Markus

Alain.

Markus Loffler wrote:

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”

I had similar problems. After removing some comments containing
suspicouse sequences of characters … the
sources has been loaded.

Armin


What’s going on?
thanks
Markus

Armin Steinhoff a écrit :

Markus Loffler wrote:

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”


I had similar problems. After removing some comments containing
suspicouse sequences of characters … the
sources has been loaded.

Armin

What’s going on?
thanks
Markus

Exactly,
DDD really doesn’t like languages other than english!!

Alain Bonnefoy wrote:

Armin Steinhoff a écrit :

Markus Loffler wrote:

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the source file
window, even if I say “load shared symbols”


I had similar problems. After removing some comments containing
suspicouse sequences of characters … the
sources has been loaded.

Armin

What’s going on?
thanks
Markus

Exactly,
DDD really doesn’t like languages other than english!!

I found out in the meantime that the German (French?) dieresises (ä,
ö, ü) are raising up that problem!

Markus … you have to rewrite your second name as Loeffler :slight_smile:

Armin

Don’t think I have any funky characters in my files, but I’ll check again.

Actually I start spelling my name as “Loffler” here… It’s getting funny if
people try to pronounce “Loeffler” :wink:
Markus


“Armin Steinhoff” <a-steinhoff@web._de> wrote in message
news:3B76A966.CF742EB1@web._de…

Alain Bonnefoy wrote:

Armin Steinhoff a écrit :

Markus Loffler wrote:

I go to “File/Open Source”, select the file “myfile.c++”
gdb says: myfile.c++ is at address 0x… but contains no code.

Also, I was never able to see source of shared libraries in the
source file
window, even if I say “load shared symbols”


I had similar problems. After removing some comments containing
suspicouse sequences of characters … the
sources has been loaded.

Armin

What’s going on?
thanks
Markus

Exactly,
DDD really doesn’t like languages other than english!!

I found out in the meantime that the German (French?) dieresises (ä,
ö, ü) are raising up that problem!

Markus … you have to rewrite your second name as Loeffler > :slight_smile:

Armin