This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bad function parameter values for C++ code in backtrace


On Thu, Mar 11, 2010 at 11:03 PM, Lalit Mohan Tripathi
<lalit.mohan.tripathi@gmail.com> wrote:
> Hi,
>
> I find problem with gdb backtrace for ?printing incorrect function
> argument values in backtrace. ?Please let me know if it is some
> limitation of gdb or a bug?
>
> The parameter values printed by the "bt" command in gdb is incorrect.
> I've tried on ?x86 as well on ARM, the result is same (and incorrect
> parameter values). ?For example, the down-most frame's function
> parameter values is shown in the upper frame's function also.
>
> [...]
> [user@localhost]$ gdb test2
> GNU gdb Red Hat Linux (6.5-25.el5rh)
> Copyright (C) 2006 Free Software Foundation, Inc.

gdb 6.5 is pretty old.
Have you tried a newer version of gdb?  E.g. 7.0?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]