Skip to content

Commit

Permalink
Added objdump context and test (#354)
Browse files Browse the repository at this point in the history
* Added objdump context and test

* Added objdump to README.md
  • Loading branch information
ColinKennedy authored Oct 28, 2023
1 parent e5c90f0 commit 2806d83
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Note: if you need support for Neovim 0.6.x please use the tag `compat/0.6`.
- [x] `nim`
- [x] `nix`
- [x] `norg`
- [x] `objdump'
- [x] `ocaml_interface`
- [x] `ocaml`
- [x] `odin`
Expand Down
4 changes: 4 additions & 0 deletions queries/objdump/context.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
(disassembly_section_label)
(disassembly_section)
] @context
21 changes: 21 additions & 0 deletions test/test.objdump
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
0000000000000012 <engine::world::World::initialize()> (File Offset: 0x82):
_ZN6engine5world5World10initializeEv():
/home/selecaoone/repositories/jumpy/engine/src/lib/world.cpp:22
12: 55 push rbp
13: 53 push rbx
14: 48 83 ec 08 sub rsp,0x8
_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrIN6engine7systems6SystemESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEC4ERKS8_():
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/stl_iterator.h:807
18: 48 8b 5f 60 mov rbx,QWORD PTR [rdi+0x60]
1c: 48 8b 6f 68 mov rbp,QWORD PTR [rdi+0x68]
_ZN6engine5world5World10initializeEv():
/home/selecaoone/repositories/jumpy/engine/src/lib/world.cpp:23
20: 48 39 eb cmp rbx,rbp
23: 74 12 je 37 <engine::world::World::initialize()+0x25> (File Offset: 0xa7)
_ZNKSt15__uniq_ptr_implIN6engine7systems6SystemESt14default_deleteIS2_EE6_M_ptrEv():
/opt/rh/devtoolset-9/root/usr/include/c++/9/bits/unique_ptr.h:154
25: 48 8b 3b mov rdi,QWORD PTR [rbx]
_ZN6engine5world5World10initializeEv():
/home/selecaoone/repositories/jumpy/engine/src/lib/world.cpp:25
28: 48 8b 07 mov rax,QWORD PTR [rdi]
2b: ff 50 10 call QWORD PTR [rax+0x10]

0 comments on commit 2806d83

Please sign in to comment.