/* Low level interface to ptrace, for the remote server for GDB.
- Copyright (C) 1995-2020 Free Software Foundation, Inc.
+ Copyright (C) 1995-2021 Free Software Foundation, Inc.
This file is part of GDB.
CORE_ADDR low_get_pc (regcache *regcache) override;
/* No low_set_pc is needed. */
+
+ bool low_breakpoint_at (CORE_ADDR pc) override;
};
/* The singleton target ops object. */
return sparc_breakpoint;
}
-static int
-sparc_breakpoint_at (CORE_ADDR where)
+bool
+sparc_target::low_breakpoint_at (CORE_ADDR where)
{
unsigned char insn[INSN_SIZE];
- the_target->read_memory (where, (unsigned char *) insn, sizeof (insn));
+ read_memory (where, (unsigned char *) insn, sizeof (insn));
if (memcmp (sparc_breakpoint, insn, sizeof (insn)) == 0)
- return 1;
+ return true;
/* If necessary, recognize more trap instructions here. GDB only
uses TRAP Always. */
- return 0;
+ return false;
}
void
return &myregs_info;
}
-struct linux_target_ops the_low_target = {
- NULL, /* get_next_pcs */
- 0,
- sparc_breakpoint_at,
- NULL, /* supports_z_point_type */
- NULL, NULL, NULL, NULL,
- NULL, NULL
-};
-
/* The linux target ops object. */
linux_process_target *the_linux_target = &the_sparc_target;