如何在.gdbinit中指定silent / quiet

时间:2015-12-10 10:36:40

标签: gdb

  

您可以在不打印前面材料的情况下运行gdb,其中描述了   gdb的非保修,通过指定--silent(或-q / - quiet):

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:fresco="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/view_post" android:layout_width="match_parent" android:layout_height="225dp" android:paddingRight="5dp" android:paddingLeft="5dp" android:orientation="horizontal" android:background="#e6e6e6"> <com.facebook.drawee.view.SimpleDraweeView ... /> <TextView ... /> <TextView ... /> <TextView ... /> </RelativeLayout> 中是否有与adjustPan相同的选项?

我不介意看到重要的保修,但不是每次我启动gdb。我知道我可以使用别名,但我对配置文件感到好奇。

https://sourceware.org/gdb/download/onlinedocs/gdb/index.html

我查看了网站文档,阅读了手册页,但看不出是否可能。

2 个答案:

答案 0 :(得分:14)

我对此感到好奇,所以我查看了源代码。没有办法做到这一点。

首先,这依赖于参数解析函数(captured_main)中的局部变量。其次,在阅读~/.gdbinit之前打印消息。

除了别名(如你所提到的),唯一的另一种方法是修改gdb。

答案 1 :(得分:6)

如果你连续十几次启动gdb,唯一能保持理智的方法是:

alias gdb='gdb -q'

相关问题