author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Sun, 23 Sep 2018 07:03:34 +0100 | |
changeset 107 | d98c11f9a7f5 |
parent 103 | df0374b41f76 |
child 108 | 277fadaec466 |
permissions | -rw-r--r-- |
103 | 1 |
# Visual / VM Debugger |
2 |
||
3 |
*Visual / VM Debugger* (*VDB* for short) is a simple standalone graphical |
|
4 |
front-end for [GDB][2] aimed to debug, not only, virtual machines. It provides |
|
5 |
easy-to-use, easy-to-extend user interface while keeping full power of GDB |
|
6 |
command line and scripting facilities. |
|
7 |
||
8 |
## Features |
|
9 |
||
10 |
* integrated support for reverse-debugging |
|
11 |
* source-and-assembly view with detailed instruction analysis (basic blocks, |
|
12 |
jump targets and so on) |
|
13 |
* data structure inspector |
|
14 |
* configurable memory view |
|
15 |
* integrated *GDB* command line |
|
16 |
||
17 |
## Prerequisites |
|
18 |
||
19 |
It is recommended to use the latest GDB built from GDB [git master][4] as it |
|
20 |
contains changes required by *VDB*. |
|
21 |
||
22 |
## Building from Source |
|
23 |
||
24 |
*Visual / VM Debugger* is a part of [Smalltalk/X jv-branch][3] since |
|
25 |
version 8.0.0. To build VDB, just follow instructions how to [build |
|
26 |
Smalltalk/X jv-branch][6] and then run either: |
|
27 |
||
28 |
``` |
|
107
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
29 |
./build/stx/projects/smalltalk/smalltalk --load jv:vdb --run VDBStartup |
103 | 30 |
``` |
31 |
||
32 |
Or evaluate following in a workspace: |
|
33 |
||
34 |
``` |
|
107
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
35 |
Smalltalk loadPackage: 'jv:vdb'. |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
36 |
VDBStartup main. |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
37 |
"or" |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
38 |
VDBStartup main: #('--help') |
103 | 39 |
``` |
40 |
||
41 |
## Pre-built binaries |
|
42 |
||
43 |
Download and unpack latest [Smalltalk/X jv-branch toy archive][5] |
|
44 |
and run run: |
|
45 |
||
46 |
``` |
|
107
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
47 |
stx --load jv:vdb --run VDBStartup |
103 | 48 |
``` |
49 |
||
50 |
Or evaluate following in a workspace: |
|
51 |
||
52 |
``` |
|
107
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
53 |
Smalltalk loadPackage: 'jv:vdb'. |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
54 |
VDBStartup main. |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
55 |
"or" |
d98c11f9a7f5
Move `VDBStartup` from `jv:vdb/application` to `jv:vdb`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
103
diff
changeset
|
56 |
VDBStartup main: #('--help') |
103 | 57 |
``` |
58 |
||
59 |
## Reporting issues |
|
60 |
||
61 |
Use [Smalltalk/X jv-branch issue tracker][6] to [report issues][7] (you may need |
|
62 |
to login using your Google account in order to submit an issue). Alternatively, |
|
63 |
send a message to [Smalltalk/X mailing list][8]. |
|
64 |
||
65 |
## Author |
|
66 |
||
67 |
Jan Vrany `<jan.vrany [at] fit.cvut.cz>` |
|
68 |
||
69 |
## License |
|
70 |
||
71 |
![CC-BY-NC](https://i.creativecommons.org/l/by-nc/4.0/88x31.png) |
|
72 |
||
73 |
This software is licensed under [Creative Commons Attribution-NonCommercial 4.0 International License][1]. You may find a full license text in `LICENSE.txt`. |
|
74 |
||
75 |
In short, you are free to: |
|
76 |
||
77 |
* **Share** — copy and redistribute the material in any medium or format, |
|
78 |
* **Adapt** — remix, transform, and build upon the material, |
|
79 |
||
80 |
under the following terms: |
|
81 |
||
82 |
* **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made, |
|
83 |
* **NonCommercial** — You may not use the software for commercial purposes. |
|
84 |
||
85 |
For permissions beyond the scope of this license please contact author at |
|
86 |
`<jan.vrany [at] fit.cvut.cz>` |
|
87 |
||
88 |
[1]: http://creativecommons.org/licenses/by-nc/4.0/ |
|
89 |
[2]: https://www.gnu.org/software/gdb/ |
|
90 |
[3]: https://swing.fit.cvut.cz/projects/stx-jv |
|
91 |
[4]: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git |
|
92 |
[5]: https://swing.fit.cvut.cz/jenkins/job/stx_jv/lastSuccessfulBuild/ |
|
93 |
[6]: https://swing.fit.cvut.cz/projects/stx-jv/report/9 |
|
94 |
[7]: https://swing.fit.cvut.cz/projects/stx-jv/newticket |
|
95 |
[8]: https://groups.google.com/forum/#!forum/stx-jv |