The following is needed to get GDB to compile with GCC 4.x on the GNU system. Could someone commit it?
Thanks, and happy hacking! gdb/ChangeLog 2005-09-15 Alfred M. Szmidt <[EMAIL PROTECTED]> * gnu-nat.c (inf_validate_procs): Don't use lvalue in assignments. --- gdb/gnu-nat.c +++ gdb/gnu-nat.c @@ -1050,7 +1050,10 @@ 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 @@ /* 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. */ _______________________________________________ Bug-gdb mailing list Bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb