1 /* Copyright (C) 2021-2024 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
26 class DataInputStream
;
27 class BinaryConstantPool
;
32 class ClassFile
: public Module
36 virtual ~ClassFile ();
37 virtual int readFile ();
38 virtual char *get_disasm (uint64_t inst_address
, uint64_t end_address
,
39 uint64_t start_address
, uint64_t f_offset
,
41 static char *get_java_file_name (char *clname
, bool classSuffix
);
45 void openFile (const char *fname
);
46 char *get_opc_name (int op
);
47 void readAttributes (int count
);
48 void printConstant (StringBuilder
*sb
, int index
);
49 long long printCodeSequence (StringBuilder
*sb
, uint64_t addr
, DataInputStream
*in
);
51 unsigned char *cf_buf
;
54 DataInputStream
*input
;
55 BinaryConstantPool
*bcpool
;
60 Vector
<ByteCodeInfo
*> *byteCodeInfo
;