This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] new command to search memory
- From: Daniel Jacobowitz <drow at false dot org>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 8 May 2008 23:24:38 -0400
- Subject: Re: [RFA] new command to search memory
- References: <20080214021915.F3FE51C72F0@localhost> <20080226022335.GB4456@caradoc.them.org> <e394668d0802281844q23f860e7hd4ee9977fdf9b4b3@mail.gmail.com> <20080229031252.GA2897@caradoc.them.org> <e394668d0804161946n687aab63u51e44b51b6118de6@mail.gmail.com> <20080502151742.GM29202@caradoc.them.org> <e394668d0805081951rf692bf3xed8e8062d7de370b@mail.gmail.com>
On Thu, May 08, 2008 at 07:51:29PM -0700, Doug Evans wrote:
> I thought gnulib/memmem.o was always going to be used. We started
> down this path because, in part, libc's memmem is O(n^2).
>
> configure ...
> checking for memmem... yes
>
> after making gdbserver ...
> $ nm gdbserver | grep memmem
> U memmem@@GLIBC_2.0
It was deliberate, since gdbserver is supposed to be small rather than
fast. If you feel strongly about it we can rip out the configure bits
easily enough.
--
Daniel Jacobowitz
CodeSourcery