{"id":5434,"date":"2014-03-30T21:56:11","date_gmt":"2014-03-30T21:56:11","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/jailbroken-ios-line-number-of-source-for-framwork-library-in-gdb-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:56:11","modified_gmt":"2014-03-30T21:56:11","slug":"jailbroken-ios-line-number-of-source-for-framwork-library-in-gdb-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/jailbroken-ios-line-number-of-source-for-framwork-library-in-gdb-collection-of-common-programming-errors\/","title":{"rendered":"Jailbroken iOS: line number of source for framwork\/library in GDB-Collection of common programming errors"},"content":{"rendered":"<p>I statically compiled JavaScriptCore source in debug mode given at opensource.apple.com for iOS. Purpose is to examine an App that uses JavaScriptCore at runtime. I have no source for the App I&#8217;m examining <em>on a jailbroken device<\/em>.<\/p>\n<p>As such I&#8217;m thinking of attaching LLDB\/GDB to the app at runtime and load the line number and extensive symbol information from the JavascriptCore.a file we compiled.<\/p>\n<p>I tried using<\/p>\n<pre><code>(gdb) add-symbol-file \/path\/to\/libJavaScriptCore.a \n<\/code><\/pre>\n<p>inside GDB but only to get <code>warning: section LC_SEGMENT.__TEXT not found in \/path\/to\/someIntermediateObjectFile.o<\/code><\/p>\n<p>Any others ideas on how that can be achieved?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I statically compiled JavaScriptCore source in debug mode given at opensource.apple.com for iOS. Purpose is to examine an App that uses JavaScriptCore at runtime. I have no source for the App I&#8217;m examining on a jailbroken device. As such I&#8217;m thinking of attaching LLDB\/GDB to the app at runtime and load the line number and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5434","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5434"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5434\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}