From 9175a16bd8c5b37c485dfe36fea8f9df96e02bf0 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Mon, 13 Jul 2015 21:50:21 +0200 Subject: Generate proper debug info for function pointers Instead of generating pointer debug info, we're currently generating subroutine debug info. --- src/test/debuginfo/basic-types-metadata.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/debuginfo') diff --git a/src/test/debuginfo/basic-types-metadata.rs b/src/test/debuginfo/basic-types-metadata.rs index 57dabadfbd5..1bc2ddef51e 100644 --- a/src/test/debuginfo/basic-types-metadata.rs +++ b/src/test/debuginfo/basic-types-metadata.rs @@ -42,6 +42,8 @@ // gdb-check:type = f32 // gdb-command:whatis f64 // gdb-check:type = f64 +// gdb-command:whatis fnptr +// gdb-check:type = void (*)(void) // gdb-command:info functions _yyy // gdb-check:[...]![...]_yyy([...]); // gdb-command:continue @@ -65,6 +67,7 @@ fn main() { let u64: u64 = 64; let f32: f32 = 2.5; let f64: f64 = 3.5; + let fnptr : fn() = _zzz; _zzz(); // #break if 1 == 1 { _yyy(); } } -- cgit 1.4.1-3-g733a5