* gdbinit.in (pcfun): Define and document.

From-SVN: r221320
This commit is contained in:
Marek Polacek 2015-03-10 12:32:09 +00:00 committed by Marek Polacek
parent 3009434489
commit 2e1a9cdb64
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2015-03-10 Marek Polacek <polacek@redhat.com>
* gdbinit.in (pcfun): Define and document.
2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
* config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead

View file

@ -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