- 博客(8)
- 资源 (34)
- 收藏
- 关注
原创 Android下双调试器(gdb+jdb)调试应用程序
原文地址:http://blog.csdn.net/ariesjzj/article/details/7402832Android下的程序大多数用java写的,跑在dalvik里,但中间又夹杂着native的C code(如来自于JNI调用,或者来自于Android操作系统本身)。这导致了程序执行时控制流会在java和c两个上下文之间跳转,而我们一般会用gdb调c程序,jdb调java程序,因
2012-03-28 14:37:18 5934
原创 Android下的JDB调试
原文地址:http://blog.csdn.net/ariesjzj/article/details/7399249 第一步在$HOME/.jdbrc里设断点,如:stop in com.almalence.hdr.MainScreen.FindExpoParameters 第二步让程序在启动时停止等待jdb:Dev Tools -Development Setting
2012-03-28 14:17:08 7940
原创 Android中用gdb调试一启动就崩溃的程序
原文地址:http://blog.csdn.net/ariesjzj/article/details/7393573一般情况下程序是在某一个点挂掉的,我们可以用adb shell ps查到PID,然后在target端用gdbserver attach上去,最后在host端用gdb连上去调。但程序往往不会崩溃得这么完美,很多情况下程序一起来就crash掉了。这个时候分两种情况:1.真的是一起来就
2012-03-26 10:32:01 8282
原创 Android下用JNI让Java调用C函数
原文地址:http://blog.csdn.net/ariesjzj/article/details/7388874基本步骤是首先将C函数编译成一个.so库,然后用Java主程序通过JNI载入库和调用其中的函数。 第一步是下载NDK,其中有些很适合入手的例子,按官方文档说的装好或解压好。 第二步:编译动态链接库。以NDK自带的sample之一hello-jni为例,先进入到该目
2012-03-26 08:27:20 2930
转载 Android项目中编译 C的模块
Android编译环境本身比较复杂,且不像普通的编译环境:只有顶层目录下才有Makefile文件,而其他的每个component都使用统一标准的Android.mk. Android.mk文件本身是比较简单的,不过它并不是我们熟悉的Makefile,而是经过了Android自身编译系统的很多处理,因此要真正理清楚其中的联系还比较复杂,不过这种方式的好处在于,编写一个新的Android.mk来给An
2012-03-26 08:17:52 1353
原创 Android下用gdb进行系统级源码调试
原文地址:http://blog.csdn.net/ariesjzj/article/details/7375048Host: ubuntuTarget: Android ICS1. 将gdbserver和gdbclient分别放入target和host。两者都可在android源代码的prebuilt目录下找到。2. 在Target上启动gdbserver,在adb shell中
2012-03-20 19:00:42 7856
转载 写出健壮的Bash脚本
原文http://www.davidpashley.com/articles/writing-robust-shell-scripts.htmlMany people hack together shell scripts quickly to do simple tasks, but these soon take on a life of their own. Unfortunatel
2012-03-19 22:38:48 1196
转载 eval, exec, source区别
1.eval 执行一个命令 2.exec 在新进程中执行一个命令,并且终止当前进程 3.source 在当前进程中执行脚本
2012-03-06 14:04:03 1870
The.Art.of.Multiprocessor.Programming.Source.Code
2012-02-14
Windows Internals Fifth Edition
2011-01-28
Data.Mining.Practical.Machine.Learning.Tools.and.Techniques.Second.Edition
2010-09-08
Principles of Data Mining
2010-09-08
Understanding Search Engines: Mathematical Modeling and Text Retrieval
2010-09-08
Mining the Web-Discovering Knowledge from Hypertext Data
2010-09-08
Search Engines, Link Analysis, and User’s Web Behavior
2010-09-08
Professional Linux Kernel Architecture
2010-08-29
《Dynamic Programming and Optimal Control》 Vol 2
2010-07-05
《The nature of statistical learning theory》Vapnik V.N.
2009-10-25
《Elements of the Theory of Computation》
2009-10-02
《The Design of The Unix Operating System》(unix操作系统设计)
2009-10-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人