public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/58663] New: entry-value: missing DW_TAG_GNU_call_site for libasan calls
@ 2013-10-08 12:53 jan.kratochvil at redhat dot com
2013-10-08 14:32 ` [Bug debug/58663] " jan.kratochvil at redhat dot com
2013-10-09 11:53 ` jan.kratochvil at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-08 12:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58663
Bug ID: 58663
Summary: entry-value: missing DW_TAG_GNU_call_site for libasan
calls
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-unknown-linux-gnu
FAIL: gcc (GCC) 4.9.0 20131008 (experimental)
<1><5b4>: Abbrev Number: 5 (DW_TAG_subprogram)
<5b5> DW_AT_name : (indirect string, offset: 0x2d16): main
<5d1> DW_AT_GNU_all_tail_call_sites: 1
<2><5d5>: Abbrev Number: 6 (DW_TAG_variable)
<2><5e1>: Abbrev Number: 0
.s:
movq %rax, %rdi
call __asan_report_store1
In practice one does not see the passed values:
#4 0x000000000040f447 in __asan::__asan_report_store1 (addr=<optimized out>)
#5 0x000000000041aafe in main () at old/test9.c:4
(gdb) set debug entry-values 1
(gdb) print addr
DW_OP_GNU_entry_value resolving cannot find DW_TAG_GNU_call_site 0x41aafe in
main
Tried also -static-libasan, it does not / cannot help.
(I am not sure entry-values would be valid here if the call site was present.)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debug/58663] entry-value: missing DW_TAG_GNU_call_site for libasan calls
2013-10-08 12:53 [Bug debug/58663] New: entry-value: missing DW_TAG_GNU_call_site for libasan calls jan.kratochvil at redhat dot com
@ 2013-10-08 14:32 ` jan.kratochvil at redhat dot com
2013-10-09 11:53 ` jan.kratochvil at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-08 14:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58663
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
#include <stdlib.h>
int main(void) {
char *p=malloc(1);
p[1]=1;
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debug/58663] entry-value: missing DW_TAG_GNU_call_site for libasan calls
2013-10-08 12:53 [Bug debug/58663] New: entry-value: missing DW_TAG_GNU_call_site for libasan calls jan.kratochvil at redhat dot com
2013-10-08 14:32 ` [Bug debug/58663] " jan.kratochvil at redhat dot com
@ 2013-10-09 11:53 ` jan.kratochvil at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2013-10-09 11:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58663
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
I forgot DW_TAG_GNU_call_site is only generated with -O.
Just in such case it is still not resolved but it is because the value is not
saved in the caller:
(gdb) p addr
Cannot find matching parameter at DW_TAG_GNU_call_site 0x4007c6 at main
$1 = <optimized out>
0: DW_OP_GNU_entry_value
2: DW_OP_reg5 [$rdi]
+
<2><600>: Abbrev Number: 10 (DW_TAG_GNU_call_site)
<601> DW_AT_low_pc : 0x4007c6
<609> DW_AT_abstract_origin: <0x65d>
[no parameters]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-10-09 11:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08 12:53 [Bug debug/58663] New: entry-value: missing DW_TAG_GNU_call_site for libasan calls jan.kratochvil at redhat dot com
2013-10-08 14:32 ` [Bug debug/58663] " jan.kratochvil at redhat dot com
2013-10-09 11:53 ` jan.kratochvil at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).