• Jan 08 Tue 2008 13:04
  • gdb

Compile the program with the -g option, this causes the compiler to generate an augmented symbol table.$gdb [program] [core-dump]gdb options:

nix 發表在 痞客邦 留言(0) 人氣()

By default, make looks first for a makefile named makefile, then it looks for Makefile.A simple example: two targets, stimulate and stimulate.db# A very simple makefile.
# Lines beginning with # are comments.
# Targets begin at the left margin, followed by : .
# Shell command lines must begin with a tab.
simulate:
# Shell commands to create stimulate
    gcc -o stimulate -O stimulate.c inputs.c outputs.c
stimulate.db:
# Shell commands to create stimulate.db
    gcc -DDEBUG -g -o stimulate.db stimulate.c inputs.c outputs.c

nix 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。