Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
set arg -dファイル〜/ .gdbinitを処理する方法ですが、特定のバイナリがgdbにロードされたときだけですか?
set arg -d
Pythonを使用すると、gdbinitに次のようなものを追加できます
py def on_bin_echo(): gdb.execute("set arg -d") exec_funcs = {"/bin/echo" : on_bin_echo} map(lambda x: exec_funcs[x.filename]() if exec_funcs.has_key(x.filename) else None, gdb.objfiles()) end