This is the mail archive of the gdb-patches@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: pr9065 patch


On 03/11/10 16:32, Tom Tromey wrote:

I guess the problem is that type_id::name is an inlined function with no
out-of-line instance in libstdc++. So, there is no way to call it.

Yeah, I tried it anyway with a few variation of find_function_in_inferior ("std::type_info.name",...). Didn't work, which is why I was using a fake-out approach.



Chris> +static struct value * Chris> +evaluate_subexp_for_typeid_type (struct expression *exp, int *pos) Chris> + __attribute__ ((noinline));

Just remove this. For future reference, you can't use __attribute__
unconditionally in (most of) gdb, you have to hide it behind a define.
See defs.h.

Yeah, that was just there for debugging to keep the fcn from being inlined--I meant to take it out before making the patch.


I'm incorporating what I can of the rest of your comments, and trying to figure out how to do a "not-outlined method."


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