This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Use td_err_e type in linux-thread-db.c
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 3 Dec 2009 19:02:10 +0100
- Subject: [obv] Use td_err_e type in linux-thread-db.c
Hi,
linux-thread-db.c was using `int' instead of the more specific `td_err_e' type
at two places.
Verified the produced .s output has no effective change. Checked-in.
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2009-12/msg00016.html
--- src/gdb/ChangeLog 2009/12/03 17:47:05 1.11126
+++ src/gdb/ChangeLog 2009/12/03 17:59:02 1.11127
@@ -1,3 +1,9 @@
+2009-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * linux-thread-db.c (find_new_threads_once): Change errp and err types
+ to td_err_e.
+ (thread_db_find_new_threads_2): Change err type to td_err_e.
+
2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gdb/11022
--- src/gdb/linux-thread-db.c 2009/11/12 00:47:39 1.68
+++ src/gdb/linux-thread-db.c 2009/12/03 17:59:02 1.69
@@ -1363,11 +1363,11 @@
static int
find_new_threads_once (struct thread_db_info *info, int iteration,
- int *errp)
+ td_err_e *errp)
{
volatile struct gdb_exception except;
struct callback_data data;
- int err = TD_ERR;
+ td_err_e err = TD_ERR;
data.info = info;
data.new_threads = 0;
@@ -1440,7 +1440,7 @@
}
else
{
- int err;
+ td_err_e err;
find_new_threads_once (info, 0, &err);
if (err != TD_OK)