aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-08-18 13:27:21 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-08-18 13:27:21 +0000
commit673e1bab44eae4dd31c45ea2b84d025f5ac00d5e (patch)
treed310aea80a38f750e99cd06c9bb0c734db774c1a /gdb/sparc-tdep.c
parent0c0e50a478c4aae06c5a4233ed1d647d48f9e9e1 (diff)
downloadgdb-673e1bab44eae4dd31c45ea2b84d025f5ac00d5e.zip
gdb-673e1bab44eae4dd31c45ea2b84d025f5ac00d5e.tar.gz
gdb-673e1bab44eae4dd31c45ea2b84d025f5ac00d5e.tar.bz2
* sparc-tdep.c (isbranch): Fix typo which caused wrong
target addresses for annulled branches.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index 45031a2..5a1eaa3 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -16,7 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* ??? Support for calling functions from gdb in sparc64 is unfinished. */
@@ -537,7 +537,7 @@ isbranch (instruction, addr, target)
val = X_A (instruction) ? baa : ba;
else
val = X_A (instruction) ? bicca : bicc;
- switch (X_OP (instruction))
+ switch (X_OP2 (instruction))
{
case 2:
case 6: