This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Problem calling functions within gdb (version 7.5)
- From: Tom Tromey <tromey at redhat dot com>
- To: Saurabh T <saurabh at hotmail dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Thu, 25 Apr 2013 07:25:42 -0600
- Subject: Re: Problem calling functions within gdb (version 7.5)
- References: <DUB123-W3379C1D5569CB0664A9923B1B50 at phx dot gbl>
>>>>> "Saurabh" == Saurabh T <saurabh@hotmail.com> writes:
Saurabh> 1. call fn(3, x)
Saurabh> gdb says: Cannot resolve function fn to any overloaded instance
Saurabh> This used to work with gdb 7.2. The function signature completely
Saurabh> matches the arguments so I dont know what it's complaining about.
Please file a bug report.
Saurabh> 2. print k
Saurabh> Let's say this prints 0x7ffb24
Saurabh> call fn2(0x7ffb24)
Saurabh> gdb again says: Cannot resolve function fn2 to any overloaded instance
Saurabh> This also used to work with gdb 7.2. Here I can understand if
Saurabh> promoting ints to arbitrary pointers is no longer supported.
I was under the impression that we allowed this again, but it fails for
me too. Please file another bug for this one.
Saurabh> Any thoughts as to whether these are bugs, or how I can get the
Saurabh> behaviour I want at least wrt case 1?
Not offhand.
Tom