Gulshan Singh
d9e4c95503
Add slab info command ( #1447 )
3 years ago
Gulshan Singh
ebc915483d
Add commands to categories ( #1478 )
3 years ago
Gulshan Singh
a58e08e899
Add support for command categories ( #1477 )
3 years ago
Gulshan Singh
612328a0a7
Upgrade dependencies ( #1476 )
3 years ago
Gulshan Singh
fef5077eef
Fix type issue in ida.py ( #1474 )
3 years ago
Gulshan Singh
c53ad59aae
More type fixes ( #1473 )
3 years ago
Gulshan Singh
7221a371b3
More type hints ( #1472 )
3 years ago
Gulshan Singh
9568859cfa
Automatically add types with pyannotate ( #1471 )
3 years ago
Mario Haustein
d5f6b4669d
Remove dependency to `python-future` ( #1250 )
...
`python-future` isn't used in the entire code and abandoned upstream. The
module `__future__` is a Python builtin instead.
Closes #1250
3 years ago
Gulshan Singh
241da50582
Add safe type hints ( #1469 )
3 years ago
Gulshan Singh
806943f58f
Add mypy configuration to pyproject.toml ( #1468 )
3 years ago
Eleanor
a4e8b2a028
Fix issue #1466 ( #1467 )
...
By Replacing line `if len(history_commands > 1):` to `if
len(history_commands) > 1:` in pwndbg/commands/version.py line 165
3 years ago
Gulshan Singh
768cb04257
Better error handling in bugreport command when no command history ( #1464 )
3 years ago
Gulshan Singh
513dcdf870
Don't print aliases as commands in pwndbg output ( #1460 )
...
Fixes https://github.com/pwndbg/pwndbg/issues/1290
3 years ago
Gulshan Singh
4b49085092
Annotate some vmmap methods with @OnlyWhenRunning ( #1463 )
3 years ago
Gulshan Singh
0467886258
Cleanup command docstrings ( #1461 )
3 years ago
Gulshan Singh
f9ff357ba0
Add paging_enabled function and OnlyWhenPagingEnabled decorator ( #1454 )
3 years ago
Gulshan Singh
caa22ce04e
Added command to list slabs ( #1442 )
3 years ago
Gulshan Singh
6a6107b4bf
Fix gdb-pt-dump exception when attaching to x86 QEMU ( #1452 )
...
Fixes https://github.com/pwndbg/pwndbg/issues/1404
3 years ago
Gulshan Singh
0083962780
Remove redundant struct.unpack formats ( #1451 )
3 years ago
Gulshan Singh
09d31c58b8
Add kbase command ( #1450 )
3 years ago
Gulshan Singh
2daf9faf62
Add x86_64ArchOps ( #1449 )
3 years ago
Gulshan Singh
22409202e7
Add kchecksec command ( #1441 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
8b43ac297e
Use RawTextHelpFormatter for more commands ( #1448 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
d08c6af337
Start a env_parallel session to avoid argument too long errors ( #1446 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
Fixes https://github.com/pwndbg/pwndbg/issues/1430
3 years ago
Gulshan Singh
7263d14adf
Move some event hooks to hooks.py ( #1431 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
2971635c5a
Make it easier to remove cwatch expressions ( #1421 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
0c0ab5f154
Add ArchOps ( #1444 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
fa8a033749
Fail tests if an error occurs ( #1445 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Mohit Saxena
894f6e2103
Update tests.yml
3 years ago
Mohit Saxena
0b0b09c7f5
Update tests.yml
3 years ago
lebr0nli
1e32ff1fbb
Reduce unnecessary `monitor` called if possible
3 years ago
lebr0nli
416bd4726c
Update the comment about the bug caused by `monitor`
...
The GDB didn't freeze, but somehow showed an additional newline and failed to show the context because `pwndbg.gdblib.proc.thread_is_stopped` is False when running `gdb.prompt_hook`.
3 years ago
lebr0nli
86d096d544
Fix the bug when using gdbserver
...
If we execute the `monitor` command in `is_debug_probe()`, the GDB with normal GDBserver will stuck after first `continue`.
To avoid this, we check if `monitor help` showed that we are using GDBserver.
3 years ago
ytk2128
8ad2d649bb
Fix ValueError of cyclic command
3 years ago
Gulshan Singh
f49aa00f42
Allow running cpsr command on aarch64 ( #1437 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
00f09a7831
Add OnlyWithKernelDebugSyms decorator ( #1436 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
lebr0nli
af9ecf2203
Add developing guide for adding config
3 years ago
lebr0nli
2b1b6d567a
Improve the docs of some configs
...
- Update the docs of the config: `kernel-vmmap`, `hexdump-group-use-big-endian`, `kernel_vmmap_via_pt`, and `resolve-heap-via-heuristic`
- Update the output of `get_show_string()` to display: ``See `help set <config>` for more information`` in the end of the output of `show <config>`
3 years ago
lebr0nli
2dc7cd168f
Some enhancements to the heap heuristic
...
- Fix wrong output of `heap_config` command
- Implement auto mode for heap heuristic
- In auto mode, pwndbg will try to resolve the heap using heuristics if debug symbols are missing
3 years ago
lebr0nli
0b394a440d
Some improvements to configuration
...
- Modify `get_set_string()` to match GDB's builtin behaviour
- Make `gcc-compiler-path`'s and `cymbol-editor`'s `set_show_doc` first strings to lowercase
- Change `gcc-compiler-path` and `cymbol-editor` to `gdb.PARAM_OPTIONAL_FILENAME`
- Add resolve_heap_via_heuristic as a gdb.PARAM_ENUM config with options:
- auto: pwndbg will try to use heuristics if debug symbols are missing
- force: pwndbg will always try to use heuristics, even if debug symbols are available
- never: pwndbg will never use heuristics to resolve the heap
- Move some hints to `resolve_heap_via_heuristic`'s `help_docstring`
3 years ago
Gulshan Singh
d28f25c345
Add is_kaslr_enabled function ( #1435 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
6f50b08767
Add commands to print kernel commandline and version ( #1434 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
a575fa7fab
Add kconfig command ( #1425 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
800e6d5f23
Replace OnlyAmd64 decorator with more generic OnlyWithArch decorator ( #1433 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
1bd4e4a482
Move some env_parallel code into the else branch ( #1432 )
...
Co-authored-by: Gulshan Singh <gsgx@google.com>
3 years ago
Gulshan Singh
5e47e344a7
Fix gdb-pt-dump error when attaching to QEMU on aarch64 ( #1429 )
3 years ago
Gulshan Singh
3b482a6485
Add basic QEMU system testing scripts ( #1428 )
3 years ago
Gulshan Singh
5b32e6831c
Handle gdb-pt-dump permission error gracefully ( #1426 )
3 years ago
Gulshan Singh
d52011877b
Add simple qemu-aarch64 test ( #1423 )
3 years ago