C/C++言語関連
stackoverflow.comd.hatena.ne.jpセクションとか.textとか定数が何故スタック領域に配置されるのか - 109: 開発ツール - Forum - かふぇルネ - Renesas Rulz - Japan より、引用 Renesasの場合 ① const static char[] = "A" : C-1セクション ② static co…
#pragma optimize("", off) void sample_no_cache5() { const UCHAR *fontdata = font_data; printf("Start[5]\n"); struct timespec ts; timespec_get(&ts, TIME_UTC); printf("測定開始 %ldsec %09ldns\n", ts.tv_sec, ts.tv_nsec); sample_no_cache(fontd…
これで、いけた。 #pragma region 入力値チェック #pragma endregion 入力値のチェック#pragma region name #pragma endregion comment
TEST_METHOD_INITIALIZE(methodName) { // method initialization code }
#chown -R shell.shell /data/local/Inst #cd /data/local/Inst/bin #./valgrind # su shell $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied $ whoami whoami: unknown uid 2000ユーザーをSHELLにし…
$ adb shell b2g-ps * daemon not running. starting it now on port 5037 * * daemon started successfully * APPLICATION USER PID PPID VSIZE RSS WCHAN PC NAME b2g root 1472 1 226084 100056 ffffffff 40044140 S /system/b2g/b2g Usage app_1591 1591…
B2G/run-gdb.sh B2G GitHub #!/bin/bash SCRIPT_NAME=$(basename $0) basename ファイル名からディレクトリや末尾の文字列を削除したものを返す . load-config.sh #!/bin/bash if [[ ! -n "$B2G_DIR" ]]; then B2G_DIR=$(cd `dirname $0`; pwd) fi . "$B2G_D…
adb shell setprop net.dns1 10.0.2.3 こちらでもつながる。 adb shell setprop net.dns1 8.8.8.8 adb shell setprop net.dns1 10.0.2.3
$ adb -e shell root@android:/ # ll drwxr-xr-x root root 2013-03-08 15:34 acct drwxrwx--- system cache 2013-03-08 15:34 cache dr-x------ root root 2013-03-08 15:34 config lrwxrwxrwx root root 2013-03-08 15:34 d -> /sys/kernel/debug drwxrwx-…
起動時のlogcat
emulator: can't connect to ADB server: Connection refused adbのサーバーを再起動してから、起動する。 $adb kill-server $adb start-server $./run-emulator.sh
$ ./run-emulator.sh emulator: autoconfig: -system /home/B2G/out/target/product/generic//system.img emulator: autoconfig: -ramdisk /home/B2G/out/target/product/generic//ramdisk.img emulator: autoconfig: -datadir /home/B2G/out/target/product…
公式のカスタマイズ用ファイル(.userconfig)は、以下のとおりです。 GECKO_PATH=/home/work/B2G-profiler/mozilla-inbound echo "GECKO_PATH = ${GECKO_PATH}" export B2G_DEBUG=1 echo "B2G_DEBUG = ${B2G_DEBUG}" GECKO_OBJDIR=${GECKO_PATH}/objdir-gon…
android gdb debug - のねの日記 コマンドラインのgdbclientの方法を応用し、eclipseでデバッグ - のねの日記 linuxでのgdbclientの使い方 - のねの日記 端末側 >adb shell $su #gdbserver :5039 --attach 1984 ※PID=1984とするeclipse側 C++のプロジェクト…
Cross Reference: /frameworks/base/include/utils/StrongPointer.habout <sp> and <wp> - Google グループBoostでC++0xのライブラリ「TR1」を先取りしよう (1) 悩ましきメモリ管理 - shared_ptr / weak_ptr2/2):CodeZine いつもandroidのframeworkコードのなかにsp<xxx></xxx></wp></sp>…
http://www.ccfinder.net/ccfinderxos-j.html=ccfinder AIST CCFinderXはコードクローン検出ツールです。 Java, C/C++, COBOL, VB, C#のソースコードから、コードクローン(重複コード)を検出します。以下のようにして、javaを32bit環境に切り替えた。あと…
>cl object.c>dumpbin object.obj Microsoft (R) COFF/PE Dumper Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file object.obj File Type: COFF OBJECT Summary A0 .debug$S 2F .drectve 7 .text >dumpbin /h…
XGetopt - A Unix-compatible getopt() for MFC and Win32 This software is released into the public domain. You are free to use it in any way you like. If you modify it or extend it, please consider posting the new code here for everyone to s…
Free Getopt(BSDライセンス)
C言語を使ったコンソールアプリケーションの作成コマンドラインオプションの解析方法オプションの取り方を勉強しよう!C言語でコマンドを作るまで
Command line options parser for Win32: getopt() GNUライセンス *.cppでうまくコンパイルできなかった。 コンパイルオプション ctype.hは、不要かな? features.hは Linux/glibc 固有のヘッダファイルである。 __need_getopt __cplusplus __GNU_LIBRARY__ …
strcpy => _tcscpy strcpy_s => _tcscpy_s strlen => _tcslen strtol => _tcstol strtok_s => _tcstok_s "xxxx" => _T("xxxx") or _TEXT("xxxx") sprintf => _stprintf frpintf => _ftprintf fopen => _tfopen fgets => _fgetts fseek,fgetpos,fcloseはその…
これはステップインして、ソースへいく。 IntPtr hWnd = pictureBox1.Handle; OpenVgWrap.OpenVgWrapFunc.initOpenVg(hWnd); これはステップインしても、ソースへ行かない。 逆アセンブラになる。 OpenVgWrap.OpenVgWrapFunc.initOpenVg(pictureBox1.Handle)…
デバッグするとき、C#とC++/CLIのDLLのコードはステップインできるのに、 ネイティブのスタティックライブラリはステップインしませんでした。C#の”デバッグ”タブの”デバッガーを有効にする”のところに、 アンマネージコードのデバッグを有効にするというチ…
C++ネイティブのライブラリ(スタティックライブラリ[.lib])を C++/CLI(CLR)でラップしようとしています。ビルドすると、以下のようなエラーが出ます。エラー 6 error LNK2028: 未解決のトークン (0A000020) "public: void * __thiscall OpenVgCpp::CreateGV…
C#のアプリにC++のDLLを使ってデバッグするとき、 ステップインしてもソースへ飛ばない場合は、 DLLのデバッグ用のファイルがあるか確認。 abcdef.dll abcdef.pdb無いとステップインしても、アセンブラの表示になってしまう。あと、アンマネージコードのデバ…
ソースのフォルダを移動して、 もう一度プロジェクトへ登録しなおしたとき、 フォームの画面デザインができなくなりました。以下のHPをみたところ、form1.hのプロパティに ファイルの種類という項目があります。 これを、”C++フォーム”に変えると正しく編集…
●RealTek(RTL8150)のVista用のドライバ(RTLUSBNT.126_VISTA_Signed.zip)を探した。 Realtek●Windows7(64bit)でARMのドングル(RTL8150)のドライバ(Vista-64bit用)を入れてみた。 エラーコード52で動かない。●ブート時にF8を押すと、署名のないドライバを動…
windows7でCodeWarriorからデバッガを動かそうとしたら、 エラーメッセージが出た。 starting external process error code 87 (0x57) http://forums.freescale.com/t5/CodeWarrior-General/When-Will-CodeWarrior-Run-On-Windows-Vista/m-p/44107ここの情報…
Windows7でRVDS2.2のCW5.6.1.1832を使って、 ファイルをクリックすると エラーメッセージ CodeWarrior encounterd an unhandled exception 0x00000005 at XXXX Location:IDE_MFC60cw.dll:0x55215e94 と出て死んでしまった。CodeWarrior for RVDSのプロパティ…