Is there a way to list out the assembly code of the current or last instruction at the frame?

Solution Verified - Updated -

Issue

  • In using the gdb debugger, the bt command shows the stack, and by using the f command I can go to a particular frame on the stack. Once I am at a particular frame, is there a way to list out the assembly code of the current or last instruction at the frame?

Environment

Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.