aboutsummaryrefslogtreecommitdiff
path: root/gprof/corefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/corefile.c')
-rw-r--r--gprof/corefile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gprof/corefile.c b/gprof/corefile.c
index 0d90b06..7ad18f1 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -25,6 +25,7 @@
#include "search_list.h"
#include "source.h"
#include "symtab.h"
+#include "hist.h"
#include "corefile.h"
bfd *core_bfd;
@@ -269,6 +270,11 @@ core_get_text_space (bfd *cbfd)
void
find_call (Sym *parent, bfd_vma p_lowpc, bfd_vma p_highpc)
{
+ if (core_text_space == 0)
+ return;
+
+ hist_clip_symbol_address (&p_lowpc, &p_highpc);
+
switch (bfd_get_arch (core_bfd))
{
case bfd_arch_i386: