diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-05-11 19:37:52 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-05-11 19:37:52 +0000 |
commit | c4c50d37408542b33e29eb64ae2007d2de6aa554 (patch) | |
tree | f03c266b1ad75f7e7efb4f92c0ce6f92808c9e04 /gdb | |
parent | 370b66a12822ceb6341ebe50954ce0645800acbb (diff) | |
download | gdb-c4c50d37408542b33e29eb64ae2007d2de6aa554.zip gdb-c4c50d37408542b33e29eb64ae2007d2de6aa554.tar.gz gdb-c4c50d37408542b33e29eb64ae2007d2de6aa554.tar.bz2 |
2006-05-11 Alfred M. Szmidt <ams@gnu.org>
* gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gnu-nat.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3f4db56..6842b6b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2006-05-11 Alfred M. Szmidt <ams@gnu.org> + + * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments. + 2006-05-11 Fred Fish <fnf@specifix.com> * symtab.c (skip_prologue_using_sal): Handle single line functions diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index f17d001..968a9cf 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1050,7 +1050,10 @@ inf_validate_procs (struct inf *inf) proc_debug (thread, "died!"); thread->port = MACH_PORT_NULL; thread = _proc_free (thread); /* THREAD is dead. */ - (last ? last->next : inf->threads) = thread; + if (last) + last->next = thread; + else + inf->threads = thread; } } @@ -1063,7 +1066,10 @@ inf_validate_procs (struct inf *inf) /* THREADS[I] is a thread we don't know about yet! */ { thread = make_proc (inf, threads[i], next_thread_id++); - (last ? last->next : inf->threads) = thread; + if (last) + last->next = thread; + else + inf->threads = thread; last = thread; proc_debug (thread, "new thread: %d", threads[i]); add_thread (pid_to_ptid (thread->tid)); /* Tell GDB's generic thread code. */ |