move handing of "set interactive-mode" to gdb_has_a_terminal
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 1a99d78f02402dd06f2f1063462dbd35752d82a2..0e430d1b6a3ce0b90b3d9c0e3199cdfbaa364772 100644 (file)
@@ -1,3 +1,44 @@
+2011-01-21  Joel Brobecker  <brobecker@adacore.com>
+
+       * inflow.c: Include "gdbcmd.h".
+       (interactive_mode): New static global, moved here from top.c.
+       (show_interactive_mode): New function, moved here from top.c.
+       use gdb_has_a_terminal instead of input_from_terminal_p to
+       determine the current mode.
+       (gdb_has_a_terminal): Add handling of the "iteractive-mode"
+       setting.
+       (_initialize_inflow): Add the "set/show interactive-mode"
+       commands.  Moved here from top.c, after having adjusted slightly
+       the help text.
+       * top.c (interactive_mode, show_interactive_mode): Delete, moved
+       to inflow.c.
+       (input_from_terminal_p): Remove handling of "interactive-mode"
+       setting, moved to infow.c.
+       (init_main): Remove creation of the "set/show interactive-mode"
+       commands, moved to inflow.c.
+
+2011-01-19  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add entry for native ia64-hpux support.
+
+2011-01-19  Tom Tromey  <tromey@redhat.com>
+
+       PR mi/8618:
+       * thread.c (free_thread): Free 'name'.
+       (print_thread_info): Emit thread name.  Change CLI output.
+       (thread_name_command): New function.
+       (do_captured_thread_select): Emit newline.
+       (_initialize_thread): Register 'thread name' command.
+       * target.h (struct target_ops) <to_thread_name>: New field.
+       (target_thread_name): New macro.
+       * target.c (update_current_target): Handle to_thread_name.
+       * python/py-infthread.c (thpy_get_name): New function.
+       (thpy_set_name): Likewise.
+       (thread_object_getset): Add "name".
+       * linux-nat.c (linux_nat_thread_name): New function.
+       (linux_nat_add_target): Set to_thread_name.
+       * gdbthread.h (struct thread_info) <name>: New field.
+
 2011-01-18  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
This page took 0.024512 seconds and 4 git commands to generate.