aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-02-20 08:56:35 +0100
committerJoel Brobecker <brobecker@adacore.com>2014-02-20 08:56:35 +0100
commit8d4fdb120dded259be0708054d689ac4b522fdcd (patch)
treea5edaea60424ac6c9bf8953f65a1da0e16aba49d /gdb
parentd9972968c1d99f7a159812296a59b1ab68e5b36d (diff)
downloadgdb-8d4fdb120dded259be0708054d689ac4b522fdcd.zip
gdb-8d4fdb120dded259be0708054d689ac4b522fdcd.tar.gz
gdb-8d4fdb120dded259be0708054d689ac4b522fdcd.tar.bz2
Fix ARI warning in thread-thread.c::dec_thread_get_ada_task_ptid
This patch fixes the following ARI warning: gdb/dec-thread.c:695: regression: multi-line string: Multi-line string must have the newline escaped I think the new-line was unintentional, so I simply removed it, and then reformatted the string to fit within our 70-80 max characters- per-line rule. gdb/ChangeLog: * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped new-line in debug string. Remove trailing spaces.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dec-thread.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index be515e4..7c54e0a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-20 Joel Brobecker <brobecker@adacore.com>
+
+ * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
+ new-line in debug string. Remove trailing spaces.
+
2014-02-19 Stan Shebs <stan@codesourcery.com>
* darwin-nat.c (darwin_xfer_partial): Fix return type.
diff --git a/gdb/dec-thread.c b/gdb/dec-thread.c
index e7cecc4..1057cfb 100644
--- a/gdb/dec-thread.c
+++ b/gdb/dec-thread.c
@@ -692,15 +692,15 @@ dec_thread_get_ada_task_ptid (struct target_ops *self, long lwp, long thread)
int i;
struct dec_thread_info *info;
- debug ("dec_thread_get_ada_task_ptid (struct target_ops *self,
- lwp=0x%lx, thread=0x%lx)",
+ debug ("dec_thread_get_ada_task_ptid (struct target_ops *self,"
+ " lwp=0x%lx, thread=0x%lx)",
lwp, thread);
for (i = 0; VEC_iterate (dec_thread_info_s, dec_thread_list, i, info);
i++)
if (info->info.teb == (pthread_t) thread)
return ptid_build_from_info (*info);
-
+
warning (_("Could not find thread id from THREAD = 0x%lx"), thread);
return inferior_ptid;
}