mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-09-28 17:39:29 +02:00
Correct assignments, remove unneeded includes.
This commit is contained in:
parent
4de09a9c15
commit
63ae8ca894
1 changed files with 3 additions and 4 deletions
|
@ -26,9 +26,8 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/user.h>
|
#include <sys/user.h>
|
||||||
#include <dlfcn.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <libutil.h>
|
#include <libutil.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "libunwind_i.h"
|
#include "libunwind_i.h"
|
||||||
|
|
||||||
|
@ -50,8 +49,8 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
||||||
free(freep);
|
free(freep);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
segbase = kve->kve_start;
|
*segbase = kve->kve_start;
|
||||||
mapoff = kve->kve_offset;
|
*mapoff = kve->kve_offset;
|
||||||
rc = elf_map_image(ei, kve->kve_path);
|
rc = elf_map_image(ei, kve->kve_path);
|
||||||
free(freep);
|
free(freep);
|
||||||
return (rc);
|
return (rc);
|
||||||
|
|
Loading…
Reference in a new issue