tracetool 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8472dc65529d01a91acb750d319896a662a39e387b78b624cab705759a082325
4
- data.tar.gz: 6933e16c48afbfbe1d7d79a26644dfc6b36023a689defaaae08c4549d29e6497
3
+ metadata.gz: c3c0c06ce37f4009396b0bb3256d49d67e37225fc065df12015c0598e02d6cc7
4
+ data.tar.gz: a64ccc18d5efbeb7618b5b7c4e0a8724cf88404786b7612307b18bdf36753e79
5
5
  SHA512:
6
- metadata.gz: a42194c3b26c71ece0ae466c4e82c1b1e2fbec7468b24a795c1c21075492378e20f991152ce4fdb3e1db535ecca3fd45fa4f059e37e7691bc5e4629ea16f1d77
7
- data.tar.gz: 7e2f747f6de6a6865a207f0670ea3c406e3b42f76bd2528b6cb9795d1aaf214ec2295bb5626601d5690e84a5f35e0c0b971b47f2e9036c98254a6e36dc5e93c4
6
+ metadata.gz: 9ca5c6e9fe0bd39683e8ed5a1cfa6ca7e158377ca3336e9e264ecc29544e7ffe0c991efe605a4f59c293e2342bcadfdfc1098ffc83adc09df99bbb3c7bfb2099
7
+ data.tar.gz: 562e32d32a00737c75030a7765bc46892aa80094c0feb720ce8d8bc08fb45cf759bbbbae63c80d02f5bc0b285ac60ede17d38f7a9d4de35f80601f3c90e0189a
@@ -105,13 +105,7 @@ module Tracetool
105
105
  # path to symbols dir
106
106
  # @return [String] desymbolicated stack trace
107
107
  def process(ctx)
108
- symbols = File.join(ctx.symbols, 'local')
109
- symbols = if ctx.arch
110
- File.join(symbols, ctx.arch)
111
- else
112
- Dir[File.join(symbols, '*')].first || symbols
113
- end
114
- Pipe['ndk-stack', '-sym', symbols] << @trace
108
+ Pipe['ndk-stack', '-sym', ctx.symbols] << @trace
115
109
  end
116
110
 
117
111
  # Create parser for current trace format
@@ -6,8 +6,8 @@ require_relative '../../version'
6
6
  module Tracetool
7
7
  # Tracetool cli args parser
8
8
  class ParseArgs
9
- # List of supported abis
10
- ARCH_LIST = %i[armeabi-v7a armeabi x86 arm64 arm64-v8a x86_64].freeze
9
+ # List of supported abis. Only needed for iOS unpacking
10
+ ARCH_LIST = %i[arm arm64].freeze
11
11
  #
12
12
  # Return a structure describing the options.
13
13
  #
@@ -30,14 +30,14 @@ module Tracetool
30
30
 
31
31
  {
32
32
  'address' => options.address,
33
- 'module' => options.modulename
33
+ 'module' => options.modulename,
34
+ 'arch' => options.arch
34
35
  }.each { |arg, check| raise(OptionParser::MissingArgument, arg) unless check }
35
36
  end
36
37
 
37
38
  def self.check(options)
38
39
  {
39
- 'platform' => options.platform,
40
- 'arch' => options.arch
40
+ 'platform' => options.platform
41
41
  }.each { |arg, check| raise(OptionParser::MissingArgument, arg) unless check }
42
42
  end
43
43
 
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Tracetool
2
2
  # Version constant
3
3
  module Version
4
- VERSION = [0, 4, 2].freeze
4
+ VERSION = [0, 5, 0].freeze
5
5
 
6
6
  class << self
7
7
  # @return [String] version string
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracetool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ilya.arkhanhelsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-16 00:00:00.000000000 Z
11
+ date: 2019-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: powerpack