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

Cannot run view control-flow graph on main(int, char**) function #44

Open
Kazhuu opened this issue May 27, 2023 · 0 comments
Open

Cannot run view control-flow graph on main(int, char**) function #44

Kazhuu opened this issue May 27, 2023 · 0 comments

Comments

@Kazhuu
Copy link
Owner

Kazhuu commented May 27, 2023

When you have a C/C++ project with a source code and you simple break in main function that has a signature of main(int, char**) and run viewcfg. Following is printed and no control-flow graph is displayed:

(gdb) viewcfg
Unexpected assembly at line 1:
  Dump of assembler code for function main(int, char**):
Python Exception <class 'SystemExit'>: 1
Error occurred in Python: 1

It seems that the python code cannot handle function names on the fist line of the disassembly and fails. Following disassembly will fail for example:

Dump of assembler code for function main(int, char**):
   0x0000555555769de9 <+0>:     push   %rbp
   0x0000555555769dea <+1>:     mov    %rsp,%rbp
   0x0000555555769ded <+4>:     push   %r13
   0x0000555555769def <+6>:     push   %r12
   0x0000555555769df1 <+8>:     push   %rbx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant