X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Ftic4x-dis.c;h=de3d5366d9e83c0ea111feecd72612c28a769050;hb=831bd6aa3b2d5e36c94b89756f58bb99f35026ca;hp=ec56cb3c5b33227945b9061c93ca0246fc4210f4;hpb=01f0fe5e0450edf168c1f612feb93cf588e4e7ea;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/tic4x-dis.c b/opcodes/tic4x-dis.c index ec56cb3c5b..de3d5366d9 100644 --- a/opcodes/tic4x-dis.c +++ b/opcodes/tic4x-dis.c @@ -1,27 +1,30 @@ /* Print instructions for the Texas TMS320C[34]X, for GDB and GNU Binutils. - Copyright 2002, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2002-2019 Free Software Foundation, Inc. Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) - This program is free software; you can redistribute it and/or modify + This file is part of the GNU opcodes library. + + This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + the Free Software Foundation; either version 3, or (at your option) + any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + It is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + or FITNESS FOR A PARTICULAR PURPOSE. See the 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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ +#include "sysdep.h" #include #include "libiberty.h" -#include "dis-asm.h" +#include "disassemble.h" #include "opcode/tic4x.h" #define TIC4X_DEBUG 0 @@ -117,7 +120,7 @@ tic4x_print_char (struct disassemble_info * info, char ch) } static int -tic4x_print_str (struct disassemble_info *info, char *str) +tic4x_print_str (struct disassemble_info *info, const char *str) { if (info != NULL) (*info->fprintf_func) (info->stream, "%s", str); @@ -291,7 +294,7 @@ tic4x_print_indirect (struct disassemble_info *info, unsigned int aregno; unsigned int modn; unsigned int disp; - char *a; + const char *a; aregno = 0; modn = 0; @@ -354,8 +357,8 @@ tic4x_print_op (struct disassemble_info *info, unsigned long pc) { int val; - char *s; - char *parallel = NULL; + const char *s; + const char *parallel = NULL; /* Print instruction name. */ s = p->name; @@ -464,6 +467,7 @@ tic4x_print_op (struct disassemble_info *info, return 0; break; } + /* Fall through. */ case 'J': /* Indirect (short) 8--15. */ if (! tic4x_print_indirect (info, INDIRECT_SHORT,