aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-07-20 16:57:32 +0000
committerPedro Alves <palves@redhat.com>2012-07-20 16:57:32 +0000
commit09826ec59df0c34fb49e483b88436b0ea0a7bb30 (patch)
tree2977e95bb21d81ba0042e2cd4b7ad528d09dbe2f /gdb/linux-nat.c
parentf7a35f025bd80233c01edb9321aad6f7b523c756 (diff)
downloadgdb-09826ec59df0c34fb49e483b88436b0ea0a7bb30.zip
gdb-09826ec59df0c34fb49e483b88436b0ea0a7bb30.tar.gz
gdb-09826ec59df0c34fb49e483b88436b0ea0a7bb30.tar.bz2
2012-07-20 Pedro Alves <palves@redhat.com>
* linux-nat.c (linux_nat_wait): Dump the passed in target options. * target.c (target_wait): Likewise. (str_comma_list_concat_elem, do_option, target_options_to_string): New functions. * target.h (target_options_to_string): Declare.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index d2a529a..c25f155 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -3929,8 +3929,16 @@ linux_nat_wait (struct target_ops *ops,
ptid_t event_ptid;
if (debug_linux_nat)
- fprintf_unfiltered (gdb_stdlog,
- "linux_nat_wait: [%s]\n", target_pid_to_str (ptid));
+ {
+ char *options_string;
+
+ options_string = target_options_to_string (target_options);
+ fprintf_unfiltered (gdb_stdlog,
+ "linux_nat_wait: [%s], [%s]\n",
+ target_pid_to_str (ptid),
+ options_string);
+ xfree (options_string);
+ }
/* Flush the async file first. */
if (target_can_async_p ())