Hi, I compiled webrtc as static library and use libwebrtc.a in another android native module. The gn args are:
is_debug=true
symbol_level=2
dcheck_always_on=false
target_os="android"
target_cpu=arm
use_rtti=true
use_custom_libcxx=false
rtc_build_tools=false
rtc_include_tests=false
rtc_build_examples=false
is_component_build=false
rtc_enable_protobuf=false
treat_warnings_as_errors=false
rtc_libvpx_build_vp9=false
rtc_use_h264=true
proprietary_codecs=true
ffmpeg_branding="Chrome"
Linkage show as below:
libwebrtc.a ---link into--> lib****SDK.so
When I native debug lib****SDK.so in Android Studio, I can use lldb to set breakpoint in webrtc source code, but it didn't hit. Both Step into or direct Run into didn't work.
The lldb breakpoint list show as:
1: file = '/home/*****/Projects/third_party/webrtc-android/src/api/rtc_error.cc', line = 76, exact_match = 0, locations = 0 (pending)
But other cmake-based source or makefile-based source debug symbols work greak like this:
2: file = '/home/*****/Projects/third_party/libwebsockets/lib/core-net/vhost.c', line = 469, exact_match = 0, locations = 1, resolved = 1, hit count = 0
2.1: where = lib****SDK.so`lws_create_vhost + 24 at vhost.c:469, address = 0xb5f8bf38, resolved, hit count = 0
I also try to use add-dsym or settings set target.source-map, but these didn't work.
What's wrong with my configuration, Anyone can help?