This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Detect loops in the solib chain
- From: "Paul Pluzhnikov" <ppluzhnikov at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 17 Jul 2008 14:17:36 -0700
- Subject: Re: [RFC] Detect loops in the solib chain
- References: <20080717205721.GA19882@caradoc.them.org>
On Thu, Jul 17, 2008 at 1:57 PM, Daniel Jacobowitz <drow@false.org> wrote:
> The best I could think of was to detect cycles.
This is a double-linked list. You could also check that
lm->l_next == NULL || lm->l_next->l_prev == lm
--
Paul Pluzhnikov