]> granicus.if.org Git - strace/blob - print_instruction_pointer.c
rtnl_neightbl: always decode struct ndt_config and struct ndt_stats
[strace] / print_instruction_pointer.c
1 /*
2  * Copyright (c) 1999-2018 The strace developers.
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: LGPL-2.1-or-later
6  */
7
8 #include "defs.h"
9
10 void
11 print_instruction_pointer(struct tcb *tcp)
12 {
13         kernel_ulong_t ip;
14
15         if (get_instruction_pointer(tcp, &ip)) {
16                 tprintf(current_wordsize == 4
17                         ? "[%08" PRI_klx "] "
18                         : "[%016" PRI_klx "] ", ip);
19         } else {
20                 tprints(current_wordsize == 4
21                         ? "[????????] "
22                         : "[????????????????] ");
23         }
24 }