This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] Add support for pretty-printing .debug_gnu_pubnames, pubtypes
- From: Tom Tromey <tromey at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: binutils at sourceware dot org, ccoutant at google dot com, saugustine at google dot com
- Date: Thu, 10 Oct 2013 07:27:29 -0600
- Subject: Re: [RFA] Add support for pretty-printing .debug_gnu_pubnames, pubtypes
- Authentication-results: sourceware.org; auth=none
- References: <yjt2li22du37 dot fsf at ruffy dot mtv dot corp dot google dot com>
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> +static const char *
Doug> +get_gdb_index_symbol_kind_name (gdb_index_symbol_kind kind)
Doug> +{
Doug> + /* See gdb/gdb-index.h. */
Doug> + static const char * const kinds[] =
Doug> + {
Doug> + N_ ("no info"),
Doug> + N_ ("type"),
Doug> + N_ ("variable"),
Doug> + N_ ("function"),
Doug> + N_ ("other"),
Doug> + N_ ("unused5"),
Doug> + N_ ("unused6"),
Doug> + N_ ("unused7")
Doug> + };
Doug> +
Doug> + return kinds[kind];
These are marked with N_ and returned verbatim, but...
Doug> + kind_name = get_gdb_index_symbol_kind_name (kind);
Doug> + is_static = GDB_INDEX_SYMBOL_STATIC_VALUE (kind_data);
Doug> + printf (" %-6lx %s,%-10s %s\n",
Doug> + offset, is_static ? "s" : "g", kind_name, data);
... printed without passing them through gettext.
Either they should not be marked, or you need an explicit call to
gettext somewhere.
Tom