# HG changeset patch # User Thinker K.F. Li # Date 1283939673 -28800 # Node ID a32f4bd19eda4a2b1b13200b7ce556574c81e586 # Parent 8855f7d934aedd488b5e2ba29b843a6184412ec2 Show line number and source file after function name diff -r 8855f7d934ae -r a32f4bd19eda src/cospy.c --- a/src/cospy.c Wed Sep 08 17:46:29 2010 +0800 +++ b/src/cospy.c Wed Sep 08 17:54:33 2010 +0800 @@ -16,7 +16,9 @@ decl = cfun->decl; printf("decl %x\n", decl); - printf(" %s\n", current_function_name()); + printf(" %s:%d:%s\n", current_function_name(), + DECL_SOURCE_LINE(decl), + DECL_SOURCE_FILE(decl)); } int