Opdis 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ChangeLog +2 -0
  2. data/module/Arch.c +5 -0
  3. data/module/Callbacks.c +1 -1
  4. metadata +25 -44
data/ChangeLog CHANGED
@@ -1,3 +1,5 @@
1
+ 2013-03-04 : mkfs <mkfs@thoughtgang.org>
2
+ * Fixed build errors and removed non-i386 binutils support
1
3
  2013-03-03 : mkfs <mkfs@thoughtgang.org>
2
4
  * Fixed compiler warnings
3
5
  2010-08-16 : mkfs <mkfs@thoughtgang.org>
@@ -17,6 +17,8 @@ static int generic_print_address_wrapper(bfd_vma vma, disassemble_info *info ) {
17
17
  static const Opdis_disasm_def disasm_definitions[] = {
18
18
  /* Goddamn GNU. They make it near-impossible to get a list of supported
19
19
  * architectures at build OR run time. */
20
+ // This broke AGAIN. Disabling all but i386.
21
+ #if 0
20
22
  #ifdef ARCH_ALPHA
21
23
  {"alpha", bfd_arch_alpha, bfd_mach_alpha_ev4, print_insn_alpha},
22
24
  {"alphaev4", bfd_arch_alpha, bfd_mach_alpha_ev4,
@@ -103,6 +105,7 @@ static const Opdis_disasm_def disasm_definitions[] = {
103
105
  #ifdef ARCH_I370
104
106
  {"i370", bfd_arch_i370, 0, print_insn_i370},
105
107
  #endif
108
+ #endif
106
109
  #ifdef ARCH_I386
107
110
  {"8086", bfd_arch_i386, bfd_mach_i386_i8086, print_insn_i386},
108
111
  {"x86", bfd_arch_i386, bfd_mach_i386_i386, print_insn_i386},
@@ -115,6 +118,7 @@ static const Opdis_disasm_def disasm_definitions[] = {
115
118
  {"x86_64_intel", bfd_arch_i386, bfd_mach_x86_64_intel_syntax,
116
119
  print_insn_i386},
117
120
  #endif
121
+ #if 0
118
122
  #ifdef ARCH_i860
119
123
  {"i860", bfd_arch_i860, 0, print_insn_i860},
120
124
  #endif
@@ -316,6 +320,7 @@ static const Opdis_disasm_def disasm_definitions[] = {
316
320
  {"z8001", bfd_arch_z8k, bfd_mach_z8001, print_insn_z8001},
317
321
  {"z8002", bfd_arch_z8k, bfd_mach_z8002, print_insn_z8002},
318
322
  #endif
323
+ #endif
319
324
  /* NULL entry to ensure table ends up ok */
320
325
  {"INVALID", bfd_arch_unknown, 0, generic_print_address_wrapper}
321
326
  };
@@ -51,7 +51,7 @@ static VALUE insn_type_to_str( enum dis_insn_type t ) {
51
51
  static void fill_decoder_hash( VALUE hash, const opdis_insn_buf_t in,
52
52
  const opdis_byte_t * buf, opdis_off_t offset,
53
53
  opdis_vma_t vma, opdis_off_t length ) {
54
- int i;
54
+ unsigned int i;
55
55
  VALUE str, ary;
56
56
  char info = in->insn_info_valid;
57
57
 
metadata CHANGED
@@ -1,38 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: Opdis
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 1
10
- version: 1.3.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - TG Community
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-03-03 00:00:00 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: |-
22
- Opdis is a disassembler based on the GNU binutils
23
- libopcodes disassembler. The strings generated by libopcodes are
24
- translated into Instruction and Operand objects, and disassembly
25
- algorithms such as linear and control-flow are provided.
14
+ description: ! "Opdis is a disassembler based on the GNU binutils\n libopcodes disassembler.
15
+ The strings generated by libopcodes are\n translated into Instruction and Operand
16
+ objects, and disassembly\n algorithms such as linear and control-flow are provided."
26
17
  email: community@thoughtgang.org
27
18
  executables: []
28
-
29
- extensions:
19
+ extensions:
30
20
  - module/extconf.rb
31
- extra_rdoc_files:
21
+ extra_rdoc_files:
32
22
  - module/rdoc_input/Opdis.rb
33
23
  - module/rdoc_input/Callbacks.rb
34
24
  - module/rdoc_input/Model.rb
35
- files:
25
+ files:
36
26
  - module/Opdis.c
37
27
  - module/Model.c
38
28
  - module/Arch.c
@@ -67,41 +57,32 @@ files:
67
57
  - module/rdoc_input/Model.rb
68
58
  - module/extconf.rb
69
59
  homepage: http://rubyforge.org/projects/opdis/
70
- licenses:
60
+ licenses:
71
61
  - GPLv3
72
62
  post_install_message:
73
63
  rdoc_options: []
74
-
75
- require_paths:
64
+ require_paths:
76
65
  - lib
77
- required_ruby_version: !ruby/object:Gem::Requirement
66
+ required_ruby_version: !ruby/object:Gem::Requirement
78
67
  none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 57
83
- segments:
84
- - 1
85
- - 8
86
- - 7
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
87
71
  version: 1.8.7
88
- required_rubygems_version: !ruby/object:Gem::Requirement
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
73
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
97
- requirements:
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ requirements:
98
79
  - opdis library and headers
99
80
  - GNU binutils library and headers
100
81
  rubyforge_project: opdis
101
- rubygems_version: 1.8.11
82
+ rubygems_version: 1.8.10
102
83
  signing_key:
103
84
  specification_version: 3
104
85
  summary: Ruby extension library providing an API to libopdis
105
- test_files:
86
+ test_files:
106
87
  - tests/ut_opdis.rb
107
88
  - tests/ut_opdis_bfd.rb