Hello,

In order to solve this problem, I tried adjusting the order of parameters. Specifically, I put the 'const framing::FieldTable &arguments' as the first parameter to the authorise() methods.

Still no dice - the function call is jumping to the incorrect authorise.

What is the best way to pass the 'arguments' to the authorise methods? If needed I will consider modifying all calls to authorise, but I don't think that's the best way to go about this.

Thanks,
-Josh

On Fri, 10 Apr 2009, Joshua Kramer wrote:

Date: Fri, 10 Apr 2009 13:04:22 -0400 (EDT)
From: Joshua Kramer <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Bogus debug information?


Hello,

Has anyone run into a circumstance where gcc consistently generates bogus debug information - or, ddd can't read a source file correctly?

I am debugging some additions I made to the ACL framework. There are two problems I am having:

1. I overloaded the Acl::authorise method, and the method call is not dispatching to the correct instance. Previously there were two instances of Acl::authorise, and I overloaded each by creating a Framing::FieldTable & argument directly before the last argument. It appears to still be using the old methods even though the call I step out of clearly has the FieldTable argument.

2. In two source files, the code execution does not follow what ddd shows on-screen. ddd appears to be 3 lines behind what gdb indicates, and it appears to jump around randomly at times.

I've modified the Makefiles to remove optimization and hard-code -ggdb for CFLAGS and CXXFLAGS. The linker is not stripping debug info. What other things should I consider?

On the attached files - the call to acl->authorise on SessionAdapter.cpp line 339 ought to be calling the Acl::authorise on line 102 of Acl.cpp.

Any ideas?

Cheers,
-Josh



--

-----
http://www.globalherald.net/jb01
GlobalHerald.NET, the Smarter Social Network! (tm)

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to