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: why in cplus_demangle_operators operation sizeof is expected to be followed with space


Hi, Jan,

On Sun, Sep 16, 2012 at 11:00 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Sun, 16 Sep 2012 08:58:07 +0200, Vasyl Vavrychuk wrote:
>> cp_canonicalize_string(exact_unsigned_base_helper<sizeof(unsigned int) * 8>)
>
> Could you post the mangled form of this name?  'nm' vs. 'nm -C' on the file(s)
> should help.

This looks to be not a symbol but type name. So I can not locate it with nm.
But I have found it directly in the binary. Line containing this text looks like

.... ^@exact_unsigned_base_helper<sizeof(unsigned int) *
8>^@uint_t<32>^@low_bits_mask_t .......

> The internal error happens
>         gdb -ex 'b internal_error' -ex 'b print_command' -ex r -ex 'p cp_canonicalize_string("exact_unsigned_base_helper<sizeof(unsigned int) * 8>")' --args ./gdb -ex 'print 1'
> but GDB does not expect it could demangle such name itself.

Do you think the problem is in clang? Could you point out some
specification, so I can reference it while contacting clang people.

Thanks,
Vasyl


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