blob: d2cc7628b5ba5b1a582ba12bd631cebc7ca179cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright (c) 1999-2022 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "defs.h"
void
print_instruction_pointer(struct tcb *tcp)
{
kernel_ulong_t ip;
tprint_attribute_begin();
if (get_instruction_pointer(tcp, &ip)) {
tprintf_string(current_wordsize == 4
? "%08" PRI_klx
: "%016" PRI_klx, ip);
} else {
tprints_string(current_wordsize == 4
? "????????"
: "????????????????");
}
tprint_attribute_end();
tprint_space();
}
|