-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo_source.htm
52 lines (45 loc) · 1.75 KB
/
info_source.htm
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Referensi Perintah GDB - Perintah info source</title>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<div class="main">
<h2>Perintah info source</h2>
<p>Menampilkan informasi tentang file sumber saat ini</p>
<h4>Sintaks</h4>
<div class="syntax">
<b>info</b> source<br/>
</div>
<p></p>
<h4>Catatan</h4>
<p>Jika Anda ingin melihat daftar semua file sumber daripada informasi tentang file sumber saat ini, gunakan perintah <b>info sources</b>.</p>
<p></p>
<h4>Contoh</h4>
<p>Berikut adalah contoh keluaran dari perintah <b>info source</b>:</p>
<pre>
<code>
(gdb) start
Temporary breakpoint 1 at 0x80486b6: file test.cpp, line 5.
Starting program: /home/bazis/test
Temporary breakpoint 1, main (argc=1, argv=0xbffff064) at test.cpp:5
5 std::cout << "Hello!" << std::endl;
(gdb) info source
Current source file is test.cpp
Compilation directory is /home/bazis
Located in /home/bazis/test.cpp
Contains 7 lines.
Source language is c++.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
</code>
</pre>
</div>
</div>
</div>
</div>
</body>
</html>