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

[Bug] GEF with openocd #96

Open
1 task done
AnduinBrian opened this issue Dec 13, 2023 · 1 comment
Open
1 task done

[Bug] GEF with openocd #96

AnduinBrian opened this issue Dec 13, 2023 · 1 comment

Comments

@AnduinBrian
Copy link

AnduinBrian commented Dec 13, 2023

GEF+GDB version

GEF: rev:295cbf7afa5fd59a88c066e478bd3ef22760a6de (Git - clean)
GDB: 12.1
GDB-Python: 3.10

Operating System

Ubuntu

Describe the issue you encountered

No Stack and Code segment

Architecture impacted

  • ARM

Describe your issue. Without a proper reproduction step-by-step, your issue will be ignored.

I use openocd to debug my STM32 chip.
openocd command:

openocd -f /usr/share/openocd/scripts/interface/stlink.cfg -f /usr/share/openocd/scripts/target/stm32f1x.cfg

gdb-multiarch command:

file <xxx> # my ELF file
b * loop
gef-remote localhost 3333

I can see there is no Code or Stack segment.
image

I can see stack value and code only when i type the command like

x/10x $sp
disass $pc

image

@Grazfather
Copy link
Collaborator

Grazfather commented Dec 13, 2023

Please use gef-extras. See this PR for a work in progress. You could help test it out, in fact.

You'll need to checkout the branch from this PR to get the memory maps working. You'll use pi set_arch("ARMOpenOCD") to get it working.

@hugsy hugsy transferred this issue from hugsy/gef Dec 13, 2023
@Grazfather Grazfather removed the bug label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants