Simplify calls to init_psymbol_list
[deliverable/binutils-gdb.git] / gdb / dwarf2-frame-tailcall.c
index 1d3e1f445bba24407c8d73c1018f55f03210406e..4cf7f5ff63abe94358c1aaa3d842e0ad84ac71cf 100644 (file)
@@ -1,6 +1,6 @@
 /* Virtual tail call frames unwinder for GDB.
 
-   Copyright (C) 2010-2018 Free Software Foundation, Inc.
+   Copyright (C) 2010-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -318,6 +318,9 @@ tailcall_frame_sniffer (const struct frame_unwind *self,
   int next_levels;
   struct tailcall_cache *cache;
 
+  if (!dwarf2_frame_unwinders_enabled_p)
+    return 0;
+
   /* Inner tail call element does not make sense for a sentinel frame.  */
   next_frame = get_next_frame (this_frame);
   if (next_frame == NULL)
This page took 0.027228 seconds and 4 git commands to generate.