]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdbsupport/common-regcache.h
Update copyright year range in all GDB files
[thirdparty/binutils-gdb.git] / gdbsupport / common-regcache.h
index 18446ff8416d052c244decb298a7faa8d0ba688a..76ea764ac45be3529d1949643a538e9e8e43b181 100644 (file)
@@ -1,6 +1,6 @@
 /* Cache and manage the values of registers
 
-   Copyright (C) 2014-2020 Free Software Foundation, Inc.
+   Copyright (C) 2014-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -56,6 +56,11 @@ extern int regcache_register_size (const struct regcache *regcache, int n);
 
 extern CORE_ADDR regcache_read_pc (struct regcache *regcache);
 
+/* Read the PC register.  If PC cannot be read, return 0.
+   This is a wrapper around 'regcache_read_pc'.  */
+
+extern CORE_ADDR regcache_read_pc_protected (regcache *regcache);
+
 /* Read a raw register into a unsigned integer.  */
 extern enum register_status regcache_raw_read_unsigned
   (struct regcache *regcache, int regnum, ULONGEST *val);