UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 24875

11.1 EDK - powerpc-eabi-objump -S <file_name> does not intermix assembly with the source code

Description

Keywords: gcc, PPC, Power PC, powerpc-eabi-objdump, assembly, source, debug, ELF

When I dump the contents of the ELF with the command powerpc-eabi-objump -S <file_name>, I do not get the source intermixed with the assembly code. What is wrong?

Solution

There are two ways to work around this issue:

Solution 1
Add -gstabs to the compiler flags. This reverts to stabs based debugging, but also causes objdump to intermix source code.

Solution 2
Run object dump from the folder containing the source files.


AR# 24875
Date Created 09/04/2007
Last Updated 04/27/2009
Status Active
Type General Article