/* Target-dependent code for OpenBSD/sparc.
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 2004-2015 Free Software Foundation, Inc.
This file is part of GDB.
#include "symtab.h"
#include "trad-frame.h"
-#include "gdb_assert.h"
-
#include "obsd-tdep.h"
#include "sparc-tdep.h"
#include "solib-svr4.h"
static const int sparc32obsd_page_size = 4096;
static int
-sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, char *name)
+sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
{
CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1));
unsigned long insn;
void **this_cache)
{
CORE_ADDR pc = get_frame_pc (this_frame);
- char *name;
+ const char *name;
find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc32obsd_pc_in_sigtramp (pc, name))