@@ -65,9 +65,9 @@ |
||
65 | 65 | { |
66 | 66 | $thread_pointer = $this->thread_pointer_retriever->getThreadPointer($pid); |
67 | 67 | |
68 | - [,,$thread_db_pthread_dtvp_offset] = $this->getLibThreadDbDescriptor('_thread_db_pthread_dtvp'); |
|
68 | + [,, $thread_db_pthread_dtvp_offset] = $this->getLibThreadDbDescriptor('_thread_db_pthread_dtvp'); |
|
69 | 69 | [$thread_db_dtv_dtv_size,,] = $this->getLibThreadDbDescriptor('_thread_db_dtv_dtv'); |
70 | - [,,$thread_db_dtv_t_pointer_val_offset] = $this->getLibThreadDbDescriptor('_thread_db_dtv_t_pointer_val'); |
|
70 | + [,, $thread_db_dtv_t_pointer_val_offset] = $this->getLibThreadDbDescriptor('_thread_db_dtv_t_pointer_val'); |
|
71 | 71 | // [,,] = $this->getLibThreadDbDescriptor($pid, '_thread_db_link_map_l_tls_modid'); |
72 | 72 | |
73 | 73 | $dtv_pointer_address = $thread_pointer + $thread_db_pthread_dtvp_offset; |
@@ -81,7 +81,7 @@ |
||
81 | 81 | */ |
82 | 82 | public function resolve(string $symbol_name): Elf64SymbolTableEntry |
83 | 83 | { |
84 | - $index = $this->hash_table->lookup($symbol_name, function (string $name, int $index) { |
|
84 | + $index = $this->hash_table->lookup($symbol_name, function(string $name, int $index) { |
|
85 | 85 | $symbol = $this->symbol_table->lookup($index); |
86 | 86 | return $name === $this->string_table->lookup($symbol->st_name); |
87 | 87 | }); |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $count_retry = 0; |
100 | 100 | while ($key !== 'q' and $count_retry < 10) { |
101 | 101 | try { |
102 | - echo $eg_reader->readCurrentFunctionName($pid, $eg_address) , PHP_EOL; |
|
102 | + echo $eg_reader->readCurrentFunctionName($pid, $eg_address), PHP_EOL; |
|
103 | 103 | $count_retry = 0; |
104 | 104 | time_nanosleep(0, $sleep_nano_seconds); |
105 | 105 | } catch (MemoryReaderException $e) { |
@@ -111,7 +111,7 @@ |
||
111 | 111 | $count_retry = 0; |
112 | 112 | while ($key !== 'q' and $count_retry < 10) { |
113 | 113 | try { |
114 | - echo join(PHP_EOL, $eg_reader->readCallTrace($pid, $eg_address, $depth)) , PHP_EOL, PHP_EOL; |
|
114 | + echo join(PHP_EOL, $eg_reader->readCallTrace($pid, $eg_address, $depth)), PHP_EOL, PHP_EOL; |
|
115 | 115 | $count_retry = 0; |
116 | 116 | time_nanosleep(0, $sleep_nano_seconds); |
117 | 117 | } catch (MemoryReaderException $e) { |