Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threads to kill hung program; fixed source display issue #3

Merged
merged 7 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ termfu -c .termfu_01 -p .termfu_01_data
```

- Switch between layouts with your `(l)ayouts` key.
- A window's data can be scrolled through by selecting it with its key and then using the arrow or `hjkl` keys.
- Scroll window data by selecting it with its key and then using the arrow or `hjkl` keys.
- Kill a hung program with `(k)ill`, `(q)uit`, or `Esc`.
<br><br>

## Configuration
Expand All @@ -71,9 +72,10 @@ termfu -c .termfu_01 -p .termfu_01_data


```

[ command ]

gdb --interpreter=mi --quiet misc/vars
gdb --interpreter=mi --quiet test_programs/hello

[ plugins ]

Expand All @@ -92,39 +94,40 @@ Unt : u : (u)ntil

# windows
Asm : a : (a)ssembly
Brk : e : br(e)akpoints
Brk : b : (b)reakpoints
Dbg : d : (d)ebug out
LcV : v : local (v)ars
Prg : p : (p)rogram out
Reg : g : re(g)isters
Src : o : s(o)urce file
Stk : T : s(T)ack
Stk : t : s(t)ack
Wat : w : (w)atch


[ layout : Main ]

>h
mlqrns
cufk
mlq
rnscufk

>w
eeeooooo
bbbooooo
wwwooooo
vvvooooo
TTpppddd
ttpppddd

[ layout : Assembly / Registers ]

>h
mlqrns
cufk
mlq
rnscufk

>w
oag
oag
oag
wdT
wdt

```
<br>

Expand Down Expand Up @@ -223,6 +226,12 @@ TTpppddd
<br>


## Updates
- 11-07-2024 - Added threading for killing hung debugged program; fixed source file display issue
- 11-03-2024 - Existence revealed on Reddit
<br>


## Contributing

### General Guidelines
Expand All @@ -246,4 +255,3 @@ TTpppddd
- It is recommended to create a shortcut for refreshing your terminal screen, as `ncurses` will make a mess of it when not shut down properly.

<br><br>

12 changes: 6 additions & 6 deletions configs/.termfu_debugged
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[ command ]

gdb --quiet --interpreter=mi test_programs/fib
gdb --quiet --interpreter=mi test_programs/vars
#python -m pdb test_programs/gcd.py

[ plugins ]
Expand All @@ -21,24 +21,24 @@ Unt : u : (u)ntil

# windows
Asm : a : (a)ssembly
Brk : e : br(e)akpoints
Brk : b : (b)reakpoints
Dbg : d : (d)ebug out
LcV : v : local (v)ars
Prg : p : (p)rogram out
Reg : g : re(g)isters
Src : o : s(o)urce file
Stk : T : s(T)ack
Stk : t : s(t)ack
Wat : w : (w)atch


[ layout : Main ]

>h
Amlr
nscufkq
mlq
rnscufk

>w
eoo
boo
woo
vdd

10 changes: 5 additions & 5 deletions configs/.termfu_debugger
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@ Unt : u : (u)ntil

# windows
Asm : a : (a)ssembly
Brk : e : br(e)akpoints
Brk : b : (b)reakpoints
Dbg : d : (d)ebug out
LcV : v : local (v)ars
Prg : p : (p)rogram out
Reg : g : re(g)isters
Src : o : s(o)urce file
Stk : T : s(T)ack
Stk : t : s(t)ack
Wat : w : (w)atch


[ layout : Main ]

>h
Amlr
nscufkq
mlq
rnscufk

>w
eoo
boo
woo
vdd

30 changes: 9 additions & 21 deletions configs/.termfu_run_dev
Original file line number Diff line number Diff line change
Expand Up @@ -21,49 +21,37 @@ Unt : u : (u)ntil

# windows
Asm : a : (a)ssembly
Brk : e : br(e)akpoints
Brk : b : (b)reakpoints
Dbg : d : (d)ebug out
LcV : v : local (v)ars
Prg : p : (p)rogram out
Reg : g : re(g)isters
Src : o : s(o)urce file
Stk : T : s(T)ack
Stk : t : s(t)ack
Wat : w : (w)atch


[ layout : Main ]

>h
mlqrns
cufk
mlq
rnscufk

>w
eeeooooo
bbbooooo
wwwooooo
vvvooooo
TTpppddd
ttpppddd

[ layout : Assembly / Registers ]

>h
mlqrns
cufk
mlq
rnscufk

>w
oag
oag
oag
wdT

[ layout : Assembly ]

>h
mlqrns
cufk

>w
oa
oa
oa
wd
wdt

Binary file modified misc/layout1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified misc/layout2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 0 additions & 120 deletions src/create_scroll_buffer_llist.c

This file was deleted.

20 changes: 0 additions & 20 deletions src/create_scroll_buffer_llist.h

This file was deleted.

Loading