]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/minsyms.c
Use memcpy in minimal_symbol_reader::install
authorTom Tromey <tom@tromey.com>
Sat, 2 Mar 2019 19:31:04 +0000 (12:31 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 15 Mar 2019 22:02:10 +0000 (16:02 -0600)
commit0de2420c4b023e644f91a409803fedfb235bfc0b
treefb51210a0a4c6af67ecd0935efa199e64b73e31f
parent042d75e42c5572f333e0e06dabd3c5c4afab486c
Use memcpy in minimal_symbol_reader::install

minimal_symbol_reader::install copies minsyms from the msym_bunch
objects into the allocated memory.  It seemed better to me to do this
via memcpy, as that is frequently optimized in libc.

gdb/ChangeLog
2019-03-15  Tom Tromey  <tom@tromey.com>

* minsyms.c (minimal_symbol_reader::install): Use memcpy.
gdb/ChangeLog
gdb/minsyms.c