summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatolii Nikulin <nikulin.a@samsung.com>2016-12-23 15:08:06 +0300
committerDmitry Kovalenko <d.kovalenko@samsung.com>2016-12-25 22:59:54 -0800
commit65ae6c415a59b13d344747d54b6be58053040813 (patch)
tree3347c1a7c108b66ee41421540a248529be5b2d94
parenta3022c9789b3d8b228b002a113d5a2ba688db915 (diff)
downloadswap-manager-65ae6c415a59b13d344747d54b6be58053040813.tar.gz
swap-manager-65ae6c415a59b13d344747d54b6be58053040813.tar.bz2
swap-manager-65ae6c415a59b13d344747d54b6be58053040813.zip
Fix extracting WSP data from chromium-efl for TV
Change-Id: I12accfc4d945c4e7a1f58e960d7314acfafe8321 Signed-off-by: Anatolii Nikulin <nikulin.a@samsung.com>
-rwxr-xr-xscripts/gen_wsp_data.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/gen_wsp_data.sh b/scripts/gen_wsp_data.sh
index 4a4cb33..a70c4c8 100755
--- a/scripts/gen_wsp_data.sh
+++ b/scripts/gen_wsp_data.sh
@@ -6,15 +6,10 @@ webapp_path="/sys/kernel/debug/swap/wsp/webapp_path"
ewebkit_path="/sys/kernel/debug/swap/wsp/ewebkit_path"
source $script_dir/dyn_vars
-if [ "$__tizen_profile_name__" == "tv" ]; then
- chromium_package_name=chromium-efl-tv
-else
- chromium_package_name=chromium-efl
-fi
-
+chromium_package_name=chromium-efl
path_libchromium=`rpm -ql $chromium_package_name | grep "libchromium-ewk.so$" | head -1`
-if [ "$__tizen_profile_name__" == "1" ]; then
+if [ "$__tizen_profile_name__" == "tv" ]; then
path_libchromium_debuginfo=$path_libchromium
else
path_libchromium_debuginfo=`rpm -ql ${chromium_package_name}-debuginfo | grep "libchromium-ewk.so.debug$" | head -1`
@@ -45,7 +40,7 @@ get_addrs()
path_lib=$path_libchromium_debuginfo
fi
- addrs=($(parse_elf ${path_lib} -s ${names[@]}))
+ addrs=($(parse_elf ${path_lib} -sf ${names[@]}))
for (( i=0; i < ${len}; ++i)); do
name=${names[$i]}