Lines Matching +full:resume +full:- +full:offset
1 /*-
2 * Copyright (c) 2014-2017 Mark Johnston <markj@FreeBSD.org>
35 #include <atf-c.h>
40 static const char *ldelf_object = "ld-elf.so.1";
59 argv[1] = strdup("-s"); in start_prog()
125 ATF_CHECK_EQ_MSG(addr, sym->st_value, in verify_bkpt()
127 addr, (uintmax_t)sym->st_value); in verify_bkpt()
147 mapname_copy = strdup(map->pr_mapname); in verify_bkpt()
179 ATF_CHECK_EQ(strcmp(map1->pr_mapname, map2->pr_mapname), 0); in ATF_TC_BODY()
181 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
203 /* Make sure that "ld-elf" and "ld-elf.so" return the same map. */ in ATF_TC_BODY()
204 map1 = proc_name2map(phdl, "ld-elf"); in ATF_TC_BODY()
205 ATF_REQUIRE_MSG(map1 != NULL, "failed to look up map for 'ld-elf'"); in ATF_TC_BODY()
206 map2 = proc_name2map(phdl, "ld-elf.so"); in ATF_TC_BODY()
207 ATF_REQUIRE_MSG(map2 != NULL, "failed to look up map for 'ld-elf.so'"); in ATF_TC_BODY()
208 ATF_CHECK_EQ(strcmp(map1->pr_mapname, map2->pr_mapname), 0); in ATF_TC_BODY()
210 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
249 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
258 "Look up a couple of well-known symbols in the test program, place " in ATF_TC_HEAD()
280 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
285 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
289 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
298 "Verify that proc_addr2sym() returns an error when given an offset " in ATF_TC_HEAD()
322 error = proc_addr2sym(phdl, map->pr_vaddr, symname, sizeof(symname), in ATF_TC_BODY()
326 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
345 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
353 ATF_CHECK_EQ_MSG(proc_continue(phdl), 0, "failed to resume execution"); in ATF_TC_BODY()
357 * SIGUSR1 that it sent to itself, it'll exit with a non-zero exit in ATF_TC_BODY()
376 "Ensure that proc_addr2sym() returns the non-local alias when " in ATF_TC_HEAD()