this post was submitted on 04 Oct 2023
0 points (50.0% liked)

Linux Questions

1149 readers
25 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

I am using gdb to look at assembly but I want to print the assembly instructions and function names to a file for further analysis.

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 1 year ago (1 children)

Sounds like you might want to use objdump instead.

You could also have gcc generate the intermediate .S files.

[–] possiblylinux127 0 points 1 year ago (1 children)

Objdump doesn't have function names.

[–] [email protected] 0 points 1 year ago

It does if you use it right ...