Standardize darwin's lm_info
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:12 +0000 (17:16 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:12 +0000 (17:16 -0400)
commit434a40239548115cf04a80410e4f570f35c361c1
tree59072d73a0277f988e1528b07c4d0580c8b26ce7
parent1670f9c1546818c4ffe02e8f460df1c1c4b1601d
Standardize darwin's lm_info

Darwin's lm_info structure is used a little bit differently than the
other solib implementations.  The other implementations first allocate
an so_list object, then instanciate their specific lm_info structure,
and assign it to so_list::lm_info.

The Darwin implementation allocates both at the same time
(darwin_so_list).  This patch changes it to be like the others, so that
we'll be able to do some generalizations later.

gdb/ChangeLog:

* solib-darwin.c (struct darwin_so_list): Remove.
(darwin_current_sos): Allocate an so_list object instead of a
darwin_so_list, separately allocate an lm_info object.
(darwin_free_so): Free lm_info.
gdb/ChangeLog
gdb/solib-darwin.c
This page took 0.02583 seconds and 4 git commands to generate.