11d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath/* Return system call ABI mapped to DWARF register numbers. 21d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath Copyright (C) 2008 Red Hat, Inc. 3de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard This file is part of elfutils. 41d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 5de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard This file is free software; you can redistribute it and/or modify 6de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard it under the terms of either 71d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 8de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard * the GNU Lesser General Public License as published by the Free 9de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard Software Foundation; either version 3 of the License, or (at 10de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard your option) any later version 11de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard 12de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard or 13de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard 14de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard * the GNU General Public License as published by the Free 15de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard Software Foundation; either version 2 of the License, or (at 16de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard your option) any later version 17de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard 18de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard or both in parallel, as here. 19de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard 20de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard elfutils is distributed in the hope that it will be useful, but 211d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath WITHOUT ANY WARRANTY; without even the implied warranty of 221d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 231d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath General Public License for more details. 241d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 25de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard You should have received copies of the GNU General Public License and 26de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard the GNU Lesser General Public License along with this program. If 27de2ed97f33139af5c7a0811e4ec66fc896a13cf2Mark Wielaard not, see <http://www.gnu.org/licenses/>. */ 281d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 291d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath#ifdef HAVE_CONFIG_H 301d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath# include <config.h> 311d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath#endif 321d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 331d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath#include <libeblP.h> 341d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 351d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath 361d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrathint 371ccdfb683ad6c7e59793136c3a657ddf131cafd1Mark Wielaardebl_syscall_abi (Ebl *ebl, int *sp, int *pc, int *callno, int *args) 381d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath{ 391d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1; 401d8bb25cac06b5af57f8733e5ea7a068a79edfe0Roland McGrath} 41