public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gnu 2.95 and Gdb 4.16
@ 1999-11-19  3:11 chrmills
  1999-11-30 23:28 ` chrmills
  0 siblings, 1 reply; 2+ messages in thread
From: chrmills @ 1999-11-19  3:11 UTC (permalink / raw)
  To: help-gcc

I am having problems using GNU 2.95 with GDB 4.16. The problem is symbol
related, I am using the -gstabs+ option when compiling and linking, and
yet when I use a dynamically allocated class and try to call a method it
doesn't step into the method, i.e. when I do:

aClass a=new aClass;
a->someMethod();

GDB doesn't step into someMethod(). Whats more when I use DDD (version
4.1.6) and open a source file I get the message:
"somefile.cpp" is at address 0xXXXX <method(parms)> but contains no code

What's more it seems that the addresses that the symbol table says a
method or function is at is not neccesarily where physically are.
Incedentally I am not using the -O optimisation option. This is really
getting annoying I can't figure it out, any ideas?

    ChrisM

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Gnu 2.95 and Gdb 4.16
  1999-11-19  3:11 Gnu 2.95 and Gdb 4.16 chrmills
@ 1999-11-30 23:28 ` chrmills
  0 siblings, 0 replies; 2+ messages in thread
From: chrmills @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

I am having problems using GNU 2.95 with GDB 4.16. The problem is symbol
related, I am using the -gstabs+ option when compiling and linking, and
yet when I use a dynamically allocated class and try to call a method it
doesn't step into the method, i.e. when I do:

aClass a=new aClass;
a->someMethod();

GDB doesn't step into someMethod(). Whats more when I use DDD (version
4.1.6) and open a source file I get the message:
"somefile.cpp" is at address 0xXXXX <method(parms)> but contains no code

What's more it seems that the addresses that the symbol table says a
method or function is at is not neccesarily where physically are.
Incedentally I am not using the -O optimisation option. This is really
getting annoying I can't figure it out, any ideas?

    ChrisM

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-19  3:11 Gnu 2.95 and Gdb 4.16 chrmills
1999-11-30 23:28 ` chrmills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).