ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
1532
today:
1
yesterday:
0
now:
1
本文
ノート
?
編集
差分
一覧
Unixコマンド/gdb の編集
*gdb [#w4d468ab] gdb は Gnu DeBugger の略称で、gcc(もしくは互換のコンパイラ)でコンパイルしたプログラムのデバッグを支援します。 **プログラムのコンパイル [#j12764b3] gcc -g -O0 <ソースファイル名> ***オプション [#c4868d25] オプション 意味 -g ファイルにデバッグ情報を付加する。これがないとデバッグ時に変数名や行番号が表示されない -O0 最適化を行わない。最適化を行うと、コードの入れ替えや削除が行われてしまい、デバッグしにくくなる **使用例 [#x0253029] $ gdb a.out GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) break main ・・ブレイクポイントをmainに (gdb) run ・・スタート (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) quit ・・終了 **参考サイト [#tb9228c9] http://uguisu.skr.jp/Windows/gdb.html
タイムスタンプを変更しない
*gdb [#w4d468ab] gdb は Gnu DeBugger の略称で、gcc(もしくは互換のコンパイラ)でコンパイルしたプログラムのデバッグを支援します。 **プログラムのコンパイル [#j12764b3] gcc -g -O0 <ソースファイル名> ***オプション [#c4868d25] オプション 意味 -g ファイルにデバッグ情報を付加する。これがないとデバッグ時に変数名や行番号が表示されない -O0 最適化を行わない。最適化を行うと、コードの入れ替えや削除が行われてしまい、デバッグしにくくなる **使用例 [#x0253029] $ gdb a.out GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) break main ・・ブレイクポイントをmainに (gdb) run ・・スタート (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) next ・・次へ (gdb) quit ・・終了 **参考サイト [#tb9228c9] http://uguisu.skr.jp/Windows/gdb.html
テキスト整形のルールを表示する
ログインまたはアカウント作成