mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-17 02:31:41 +01:00
Add freebsd stub
This commit is contained in:
parent
5976f1a5b3
commit
2646e0fde8
2 changed files with 43 additions and 0 deletions
|
@ -97,6 +97,8 @@ libunwind_la_SOURCES_os_linux = os-linux.h os-linux.c
|
|||
|
||||
libunwind_la_SOURCES_os_hpux = os-hpux.c
|
||||
|
||||
libunwind_la_SOURCES_os_freebsd = os-freebsd.c
|
||||
|
||||
dwarf_SOURCES_common = \
|
||||
dwarf/global.c
|
||||
|
||||
|
|
41
src/os-freebsd.c
Normal file
41
src/os-freebsd.c
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* libunwind - a platform-independent unwind library
|
||||
Copyright (C) 2010 Konstantin Belousov
|
||||
|
||||
This file is part of libunwind.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
|
||||
#ifndef UNW_REMOTE_ONLY
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libunwind_i.h"
|
||||
|
||||
HIDDEN int
|
||||
tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
||||
unsigned long *segbase, unsigned long *mapoff)
|
||||
{
|
||||
|
||||
/* XXXKIB */
|
||||
return (0);
|
||||
}
|
||||
|
||||
#endif /* UNW_REMOTE_ONLY */
|
Loading…
Add table
Reference in a new issue