Skip to content

Commit

Permalink
FuzzyFinder and improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanrhu committed Dec 14, 2019
1 parent 50f2cc2 commit c6e5712
Show file tree
Hide file tree
Showing 116 changed files with 13,788 additions and 169 deletions.
42 changes: 28 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GDBFrontend is an easy, flexible and extensionable gui debugger.
[![GitHub forks](https://img.shields.io/github/forks/rohanrhu/gdb-frontend?style=flat-square)](https://github.com/rohanrhu/gdb-frontend/network)
[![GitHub stars](https://img.shields.io/github/stars/rohanrhu/gdb-frontend?style=flat-square)](https://github.com/rohanrhu/gdb-frontend/stargazers)
[![GitHub license](https://img.shields.io/github/license/rohanrhu/gdb-frontend?style=flat-square)](https://github.com/rohanrhu/gdb-frontend/blob/master/LICENSE)
[![Donate](http://img.shields.io/liberapay/receives/EvrenselKisilik.svg?logo=liberapay&style=flat-square)](https://liberapay.com/EvrenselKisilik/donate)
[![Twitter](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Foguzhaneroglu.com%2Fprojects%2Fgdb-frontend%2F)](https://twitter.com/intent/tweet?text=&url=https%3A%2F%2Fgithub.com%2Frohanrhu%2Fgdb-frontend)

![gdb-frontend](https://oguzhaneroglu.com/static/images/gdbfrontend-ss.png "gdb-frontend")
Expand All @@ -19,6 +20,7 @@ You can download latest source and run it.
#### Requirements
* GDB (with python3)
* python3
* tmux

You can run gdb-frontend with following commands:
```bash
Expand Down Expand Up @@ -46,16 +48,10 @@ cd gdb-frontend
tmux a -t gdb-frontend
```

#### Troubleshooting

##### Zombie Processes
Sometimes GDB and gdb-frontend may not be closed correctly. In this case, you can terminate gdb-frontend shell.

```bash
tmux kill-session -t gdb-frontend
```
### Flatpak
Flatpak package is a TODO.

### `gdbfrontend` Command
## `./gdbfrontend`
```bash
$ gdbfrontend --help
GDBFrontend is a easy, flexible and extensionable gui debugger.
Expand All @@ -64,14 +60,27 @@ Options:
--help, -h: Shows this help message.
--version, -v: Shows version.
--gdb-executable=PATH, -g PATH: Specifies GDB executable path (Default is "gdb" command on PATH environment variable.)
--tmux-executable=PATH, -tmux PATH: Specifies Tmux executable path (Default is "tmux" command on PATH environment variable.)
--terminal-id=NAME, -t NAME: Specifies GDB executable path (Default is "gdb" command on PATH environment variable.)
```

#### Options
##### `--gdb-executable=PATH`, `-g PATH`
You can specify GDB executable path like `gdbfrontend --gdb-executable=/usr/bin/gdb`.
### Options
#### `--gdb-executable=PATH`, `-g PATH`
You can specify GDB executable path like `gdbfrontend --gdb-executable=/path/to/gdb`. (Optional)

### Flatpak
Flatpak package is a TODO.
#### `--tmux-executable=PATH`, `-tmux PATH`
You can specify Tmux executable path like `gdbfrontend --tmux-executable=/path/to/tmux`. (Optional)

#### `--terminal-id=PATH`, `-t PATH`
You can specify Tmux terminal id like `gdbfrontend --terminal-id=terminal-name`. (Default: `gdb-frontend`)

## Troubleshooting
### Zombie Processes
Sometimes GDB and gdb-frontend may not be closed correctly. In this case, you can terminate gdb-frontend shell.

```bash
tmux kill-session -t gdb-frontend
```

## GDB-Related Issues and Tips
* GDB does not give sources of linked object **until stepping a line once**.
Expand All @@ -95,6 +104,11 @@ API Documentation is TODO yet.
## Plugin Development
There is an example plugin `hello` in `plugins/` directory.

## Donate
You can donate to support the project.

<a href="https://liberapay.com/EvrenselKisilik/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>

## License
GNU General Public License v3 (GPL-3)

Expand Down
2 changes: 1 addition & 1 deletion api/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under MIT
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

"""
Expand Down
2 changes: 1 addition & 1 deletion api/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under MIT
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

import threading
Expand Down
2 changes: 1 addition & 1 deletion api/globalvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under MIT
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

import threading
Expand Down
2 changes: 1 addition & 1 deletion api/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under MIT
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

import re
Expand Down
Binary file removed bin/deps/libc.so.6
Binary file not shown.
Binary file removed bin/deps/libevent-2.1.so.6
Binary file not shown.
Binary file removed bin/deps/libpthread.so.0
Binary file not shown.
Binary file removed bin/deps/libresolv.so.2
Binary file not shown.
Binary file removed bin/deps/libtinfo.so.6
Binary file not shown.
Binary file removed bin/deps/libutempter.so.0
Binary file not shown.
Binary file removed bin/deps/libutil.so.1
Binary file not shown.
Binary file removed bin/tmux
Binary file not shown.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under MIT
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>

import os
Expand Down
9 changes: 5 additions & 4 deletions frontend/components/AboutDialog/css/AboutDialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*/

Expand Down Expand Up @@ -44,8 +44,8 @@

.css_AboutDialog_box_content1 {
margin-bottom: 10px;
font-size: 14px;
line-height: 20px;
font-size: 16px;
line-height: 22px;
}

/* ---------------------- */
Expand All @@ -54,9 +54,10 @@
position: absolute;
right: 0px;
top: 0px;
padding: 10px 10px;
padding: 12px 12px;
transition: opacity 250ms;
cursor: pointer;
font-size: 20px;
}

.css_AboutDialog_box_closeButton:hover {
Expand Down
8 changes: 4 additions & 4 deletions frontend/components/AboutDialog/html/AboutDialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="css_AboutDialog_box_container">
<div class="css_AboutDialog_box_content">
<div class="css_AboutDialog_box_content1">
<b>gdb-frontend</b> is a easy, flexible and extensionable gui debugger.
<b>gdb-frontend</b> is an easy, flexible and extensionable gui debugger.
<br>
<br>
Version: <span class="AboutDialog_version"></span>
Expand All @@ -20,19 +20,19 @@
</a>
<br>
<br>
Licensed under MIT
Licensed under GNU/GPLv3
<br>
Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <rohanrhu2@gmail.com>
</div>
<div class="css_AboutDialog_box_content2">
<div class="button1 AboutDialog_button__ok" tabindex="0">
Ok
<i class="icofont-verification-check" style="margin-right: 5px;"></i> Ok
</div>
</div>
</div>
</div>
<div class="css_AboutDialog_box_closeButton AboutDialog_button__ok">
<i class="icofont-close-line"></i>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/AboutDialog/js/AboutDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*
*/
Expand Down
14 changes: 9 additions & 5 deletions frontend/components/BreakpointsEditor/css/BreakpointsEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*/

.BreakpointsEditor {
text-align: center;
font-size: 12px;
overflow-y: auto;
text-align: left;
height: 100%;
Expand Down Expand Up @@ -64,21 +63,24 @@
}

.BreakpointsEditor_items_item {
line-height: 15px;
cursor: pointer;
display: flex;
border-bottom: 1px solid rgba(0,0,0,0.1);
background: rgba(0,0,0,0.05);
line-height: 18px;
min-height: 32px;
align-items: stretch;
}

.BreakpointsEditor_items_item:nth-child(odd) {
background: rgba(0,0,0,0.1);
}

.BreakpointsEditor_items_item_loc {
display: flex;
padding: 5px 5px;
display: inline-block;
flex-grow: 1;
align-items: center;
}

.BreakpointsEditor_items_item:hover {
Expand All @@ -88,7 +90,9 @@
/* ---------------------- */

.BreakpointsEditor_items_item_check {
padding: 5px 5px;
padding: 0px 5px;
display: flex;
align-items: center;
}

.BreakpointsEditor_items_item_check .Checkbox_icon_img {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="BreakpointsEditor_items_item_loc_val">...</div>
</div>
<div class="BreakpointsEditor_items_item_remove">
<i class="icofont-close-line"></i>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*
*/
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Checkbox/css/Checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*/

Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Checkbox/js/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*
*/
Expand Down
3 changes: 1 addition & 2 deletions frontend/components/FileBrowser/css/FileBrowser.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*/

.FileBrowser {
display: none;
font-size: 12px;
padding: 10px;
overflow-y: auto;
text-align: left;
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/FileBrowser/html/FileBrowser.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Files
<div class="FileBrowser_path"></div>
<div class="FileBrowser_window_closeBtn FileBrowser_window_box_closeBtn">
<i class="icofont-close-line"></i>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/FileBrowser/js/FileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*
*/
Expand Down
16 changes: 7 additions & 9 deletions frontend/components/FileTabs/css/FileTabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://github.com/rohanrhu/gdb-frontend
* https://oguzhaneroglu.com/projects/gdb-frontend/
*
* Licensed under MIT
* Licensed under GNU/GPLv3
* Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <[email protected]>
*/

Expand Down Expand Up @@ -35,7 +35,7 @@
display: flex;
flex: 0;
min-height: 20px;
border: 1px solid rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.05);
border-bottom: 0px;
border-top: 0px;
cursor: pointer;
Expand All @@ -52,7 +52,7 @@
align-items: center;
padding-left: 10px;
padding-right: 5px;
font-size: 13px;
font-size: 16px;
}

.FileTabs_tabs_items_item_closeBtn {
Expand All @@ -61,7 +61,7 @@
align-items: center;
padding-left: 5px;
padding-right: 10px;
font-size: 10px;
font-size: 16px;
color: rgba(255,255,255,0.5);
}

Expand All @@ -71,8 +71,6 @@

.FileTabs_tabs_items_item.FileTabs_tabs_items_item__current {
background: rgb(0, 36, 81);
color: rgba(255, 255, 255, 0.8);
font-weight: bold;
}

.FileTabs_tabs_items_item.FileTabs_tabs_items_item__current .FileTabs_tabs_items_closeBtn {
Expand All @@ -94,7 +92,7 @@
.FileTabs_tabs_items_item_pathTooltip_box {
background: #3465a4;
color: white;
font-size: 13px;
font-size: 16px;
display: inline-block;
border-radius: 1px;
box-shadow: 0px 0px 20px 0px rgba(0, 25, 0, 0.5);
Expand Down Expand Up @@ -122,13 +120,13 @@
.FileTabs_tabs_items_item_pathTooltip_path {
display: inline-block;
vertical-align: middle;
padding: 5px;
padding: 10px;
}

.FileTabs_tabs_items_item_pathTooltip_copyBtn {
display: inline-block;
vertical-align: middle;
padding: 5px;
padding: 10px;
cursor: pointer;
border-left: 1px solid rgba(0,0,0,0.15);
user-select: none;
Expand Down
Loading

0 comments on commit c6e5712

Please sign in to comment.