-/* Copyright (C) 2012-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2015 Free Software Foundation, Inc.
This file is part of GDB.
#ifndef IN_PROCESS_AGENT
-static const struct target_desc default_description;
+static const struct target_desc default_description = { 0 };
void
copy_target_description (struct target_desc *dest,
const struct target_desc *
current_target_desc (void)
{
- if (current_inferior == NULL)
+ if (current_thread == NULL)
return &default_description;
return current_process ()->tdesc;