Review request: generate DWARF pubnames under a compiler option
Krzysztof Parzyszek
kparzysz at codeaurora.org
Wed Jan 30 07:33:59 PST 2013
On 1/22/2013 6:33 PM, Eric Christopher wrote:
> No worries at all. If you need anything let me know!
>
Hi Eric,
My Thunderbird was confused when I first sent it, so I'm not sure you
got it. Here's a repost (plus I'm ccing the list):
I'm creating testcases for the pubnames generation, and I have a couple
of questions (about what is expected).
For this C code:
--- x.c ---
int global_variable;
static int static_global_variable;
static int static_global_function() {
return static_global_variable;
}
int global_function() {
static int static_local_variable = 1;
static_local_variable++;
return global_variable +
static_global_function() +
static_local_variable;
}
-----------
I get 3 names in the pubnames section (no "static_global_variable" and
no "static_local_variable"). Is this correct?
.Lpubnames_begin0:
.half 2
.word .L.debug_info_begin0
.set .Lset1, .L.debug_info_end0-.L.debug_info_begin0
.word .Lset1
.word 77
.string "global_variable"
.word 37
.string "global_function"
.word 112
.string "static_global_function"
.word 0
.Lpubnames_end0:
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-commits
mailing list