[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GDB 6.3, GCC 4.x, and GNU.
From: |
Alfred M\. Szmidt |
Subject: |
GDB 6.3, GCC 4.x, and GNU. |
Date: |
Fri, 30 Sep 2005 17:11:18 -0000 |
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 <address@hidden>
* 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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- GDB 6.3, GCC 4.x, and GNU.,
Alfred M\. Szmidt <=