From 2e1a9cdb64bb7a064d49f6db0c8cb1d7c91e813a Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Tue, 10 Mar 2015 12:32:09 +0000 Subject: [PATCH] * gdbinit.in (pcfun): Define and document. From-SVN: r221320 --- gcc/ChangeLog | 4 ++++ gcc/gdbinit.in | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dbef42ad3b1..ddd430ba03c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2015-03-10 Marek Polacek + + * gdbinit.in (pcfun): Define and document. + 2015-03-10 Ilya Verbin * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 10fe5ad6718..3f117844420 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -199,6 +199,15 @@ document pel Print expanded location of $. end +define pcfun +output debug_function (cfun ? cfun->decl : current_function_decl, 0) +echo \n +end + +document pcfun +Print current function. +end + # Define some macros helpful to gdb when it is expanding macros. macro define __FILE__ "gdb" macro define __LINE__ 1 -- 2.30.2