diff options
author | Marc Khouzam <marc.khouzam@ericsson.com> | 2009-07-21 03:31:18 +0000 |
---|---|---|
committer | Marc Khouzam <marc.khouzam@ericsson.com> | 2009-07-21 03:31:18 +0000 |
commit | 7a01c6e0837f09cb0fe23e1d72cd4e303107f85d (patch) | |
tree | d5ae9159db0f4f3e66e467cbb1e1b0d01a316e77 | |
parent | 6a0d81b26f0189f1644b8df7386adf6f2ad957ba (diff) | |
download | gdb-7a01c6e0837f09cb0fe23e1d72cd4e303107f85d.zip gdb-7a01c6e0837f09cb0fe23e1d72cd4e303107f85d.tar.gz gdb-7a01c6e0837f09cb0fe23e1d72cd4e303107f85d.tar.bz2 |
2009-07-20 Marc Khouzam <marc.khouzam@ericsson.com>
* utils.c (defaulted_query): Update comment and remove dead code.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/utils.c | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 58a295d..de19c96 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-07-20 Marc Khouzam <marc.khouzam@ericsson.com> + + * utils.c (defaulted_query): Update comment and remove dead code. + 2009-07-20 Doug Evans <dje@google.com> Add support for "comdat types" from DWARF4. diff --git a/gdb/utils.c b/gdb/utils.c index 3f9d1e7..89278f6 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1433,7 +1433,7 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args) return def_value; /* If input isn't coming from the user directly, just say what - question we're asking, and then answer "yes" automatically. This + question we're asking, and then answer the default automatically. This way, important error messages don't get lost when talking to GDB over a pipe. */ if (! input_from_terminal_p ()) @@ -1448,11 +1448,6 @@ defaulted_query (const char *ctlstr, const char defchar, va_list args) return def_value; } - /* Automatically answer the default value if input is not from the user - directly, or if the user did not want prompts. */ - if (!input_from_terminal_p () || !caution) - return def_value; - if (deprecated_query_hook) { return deprecated_query_hook (ctlstr, args); |