diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-08-19 13:05:02 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-08-19 13:05:02 +0000 |
commit | c6ebd6cf9956565b8b2c3e14a54dea6c467f48d4 (patch) | |
tree | e35cffef73d4cdeba52ea413769fc16c33979a5f /gdb/doc | |
parent | 073120b913e2614f309c5b6d0c313308ed2b4c82 (diff) | |
download | gdb-c6ebd6cf9956565b8b2c3e14a54dea6c467f48d4.zip gdb-c6ebd6cf9956565b8b2c3e14a54dea6c467f48d4.tar.gz gdb-c6ebd6cf9956565b8b2c3e14a54dea6c467f48d4.tar.bz2 |
* target.c (target_async_permitted, target_async_permitted_1)
(set_maintenance_target_async_permitted)
(show_maintenance_target_async_permitted): New.
(initialize_targets): Register 'set target-async'.
* target.h (target_async_permitted): Declare.
* linux-nat.c (linux_nat_async_enabled)
(linux_nat_async_permitted, set_maintenance_linux_async_permitted)
(show_maintenance_linux_async_permitted): Remove.
(sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
(get_pending_events, linux_nat_async): Use target_async_permitted.
(linux_nat_set_async_mode): Remove, moving the only used bits
into...
(linux_nat_setup_async): This.
(_initialize_linux_nat): Do not register 'maint set linux-async'.
Use linux_nat_setup_async.
* remote.c (remote_async_permitted, remote_async_permitted_set)
(set_maintenance_remote_async_permitted)
(show_maintenance_remote_async_permitted): Remove.
(remote_open_1, remote_terminal_inferior, remote_can_async_p)
(remote_is_async_p): Use target_async_permitted.
(_initialize_remote): Don't register 'main set remote-async'.
* mi/mi-cmds.c (mi_cmds): Register -list-target-features.
* mi/mi-cmds.h (mi_cmd_list_target_features): New.
* mi/mi-main.c (mi_cmd_list_target_features): New.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 35 |
2 files changed, 35 insertions, 5 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index e76952e..abe140c 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,10 @@ 2008-08-19 Vladimir Prus <vladimir@codesourcery.com> + * gdb.texinfo (Background execution): Adjust example + (GDB/MI Miscellaneous Commands): Document -list-target-features. + +2008-08-19 Vladimir Prus <vladimir@codesourcery.com> + * doc/gdb.texinfo (PowerPC): Fix typo. (PowerPC features): Fix typo. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 21648b7..100d795 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4572,12 +4572,9 @@ independently and simultaneously. To enter non-stop mode, use this sequence of commands before you run or attach to your program: -@c FIXME: can we fix this recipe to avoid the linux-async/remote-async details? - @smallexample # Enable the async interface. -# For target remote, use remote-async instead of linux-async. -maint set linux-async 1 +set target-async 1 # If using the CLI, pagination breaks non-stop. set pagination off @@ -4710,7 +4707,7 @@ use @code{interrupt -a}. @end table You may need to explicitly enable async mode before you can use background -execution commands. @xref{Maintenance Commands}, for details. If the +execution commands, with the @code{set target-async 1} command. If the target doesn't support async mode, @value{GDBN} issues an error message if you attempt to use the background execution commands. @@ -22640,6 +22637,34 @@ option to the @code{-break-insert} command. @end itemize +@subheading The @code{-list-target-features} Command +@findex -list-target-features + +Returns a list of particular features that are supported by the +target. Those features affect the permitted MI commands, but +unlike the features reported by the @code{-list-features} command, the +features depend on which target GDB is using at the moment. Whenever +a target can change, due to commands such as @code{-target-select}, +@code{-target-attach} or @code{-exec-run}, the list of target features +may change, and the frontend should obtain it again. +Example output: + +@smallexample +(gdb) -list-features +^done,result=["async"] +@end smallexample + +The current list of features is: + +@table @samp +@item async +Indicates that the target is capable of asynchronous command +execution, which means that @value{GDBN} will accept further commands +while the target is running. + +@end table + + @subheading The @code{-interpreter-exec} Command @findex -interpreter-exec |