#ã¯ããã« çµã¿è¾¼ã¿Linuxã§éçºãã¦ããã¨ãã«ã¼ãã«ã§ãªãã¦ã¦ã¼ã¶ã¼ããã»ã¹ããç©çã¡ã¢ãªç©ºéä¸ã®ã¬ã¸ã¹ã¿ãèªã¿æ¸ããããå ´é¢ãåºã¦ãã¾ãã ãã㯠/dev/mem ã使ãã°å®ç¾ã§ããã®ã§ãããå¶éäºé ãããã¾ãã /dev/memã®èªã¿æ¸ãã«ã¯root権éãå¿ è¦ã éã«root権éã§/dev/memãã¢ã¯ã»ã¹ããã¨ééãªãå ¨ã¦ã®ã¡ã¢ãªã«ã¢ã¯ã»ã¹ã§ãã¦ãã¾ãã®ã§ãã»ãã¥ãªãã£ã®è¦³ç¹ã§é£ããã ä¾ãã°ãAndroidã§ã¯ã¢ããªã±ã¼ã·ã§ã³ã®ããã»ã¹ã¯root権éãæã£ã¦ããªãã®ã§/dev/mem ã¯æ±ãã¾ããã æå®ããç¯å²ã®ã¡ã¢ãªã ããæå®ãã権éã§ã¢ã¯ã»ã¹å¯è½ã«ã§ããã°ããã®ã«ãªãã ãããUIOã§ã§ãã¾ãã #UIOã¨ã¯ UIO(User space I/O)ã¯ãããã¤ã¹ãã©ã¤ãã®å¤§é¨åãã¦ã¼ã¶ã¼ç©ºéå´ã§æ¸ããããã«ããã¤ã³ã¿ãã§ã¼ã¹ã§ããã«ã¼ãã«å´ã«æ¸ããªããã°ãªããªãã³ã¼ãã¯ã»
2. 2 î The latest version of this slide will be available from here î http://www.slideshare.net/tetsu.koba/presentati ons 3. 3 Who am I? î 20+ years involved in embedded systems î 10 years in real time OS, such as iTRON î 10 years in embedded Java Virtual Machine î Now GCC, Linux, QEMU, Android, ⦠î Blogs î https://qiita.com/tetsu_koba î http://d.hatena.ne.jp/embedded/ î http://kobablog.wordpress.
ååã®ç¶ãã #å¾æ¥ã®remoteã¢ã¼ãã§ã¯ã§ããªãã¦ãextended-remoteã¢ã¼ãã§å¯è½ã«ãªã£ãã㨠ããã¯ãgdbå´ããã®æä½ã§æ°ããªãããã°å¯¾è±¡ããã»ã¹ãèµ·åãããã¨ã§ããã¤ã¾ã run ã³ãã³ãã®å®è¡ã ã¾ãããããã°å¯¾è±¡ããã»ã¹ãã¾ã èµ·åãã¦ããªãç¶æ ã§ãgdbã¨gdbserverã®éã§ãã¡ã¤ã«ã転éãããã¨ãã§ãã¾ãã ãã®2ã¤ãåãããã¨ããä¿®æ£ãããå®è¡ãã¡ã¤ã«ãã¿ã¼ã²ããã«éä¿¡ãã¦ããããèµ·åãã¦ãããã°ãéå§ãããã¨ããã®ãgdbå ã§å®çµã§ãã¾ãã #ãªã¢ã¼ããããã°ã®ãµã¤ã¯ã« 以ä¸ã®1-5ãç¹°ãè¿ãã ã½ã¼ã¹ã³ã¼ããä¿®æ£ãã ã³ã³ãã¤ã«ããªã³ã¯ãã¦å®è¡ãã¡ã¤ã«ãä½æãã å®è¡ãã¡ã¤ã«ãã¿ã¼ã²ããã«è»¢éãã å®è¡ãã¡ã¤ã«ãèµ·åãã ãã¬ã¼ã¯ãã¤ã³ãããããããå¤æ°ãè¦ãããã¦ãããã° å¾æ¥ã®remoteã¢ã¼ãã§ã¯3ã¯scpã§è»¢éãããNFSã«ãããå¥ã®æ¹æ³ã§ã®å®
gdbããgdbserverã«æ¥ç¶ãã¦ãªã¢ã¼ããããã°ããã¨ãã«å¾æ¥ã®remoteã¢ã¼ãã«å ãã¦ãextended-remoteã¢ã¼ãã使ç¨ã§ãã¾ãã #å¾æ¥ã®remoteã¢ã¼ãã¨extended-remoteã¢ã¼ãã®æ¯è¼ remoteã¢ã¼ãã§ã¯gdbserverãèµ·åãã段éã§ã©ã®ããã»ã¹ããããã°å¯¾è±¡ã¨ããã®ãã決ããå¿ è¦ãããã¾ããã(æ°ãã«ããã»ã¹ãèµ·åããã or å®è¡ä¸ã®ããã»ã¹ã«ã¢ã¿ããããã) ããã¦ããããã°ãçµäºãã¦gdbã¨gdbserverã®éã®éä¿¡ãåãã段éã§gdbserverã®ããã»ã¹ã¯çµäºãã¦ãã¾ããã extended-remoteã¢ã¼ãã§ã¯ãããã°å¯¾è±¡ã決ããã«gdbserverãèµ·åããã¦ãããã¨ãã§ããgdbã¨æ¥ç¶ããå¾ã«ãããã°å¯¾è±¡ã®ããã»ã¹ã決ãã¦ã¢ã¿ãããããã¨ãã§ãã¾ããã¾ããã¿ããããå¾ãgdbserverã¯çãç¶ãã¦ãå度åãã¾ãã¯å¥ã®ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}