#225 objdump does not mix source code with disassembly

None
open
nobody
objdump (1)
1
2014-10-09
2014-06-23
CCompletion
No

I'm using the current 64-bit full installer (tdm64-gcc-4.8.1-3.exe) with objdump 2.23.2.

In previous versions, objdump would dump disassembly, mixed with the source code (as per -S switch). Now, no source code is dumped. I tried different combinations (64/32-bit), be it my old programs or a simplest hello world, nothing works.

Example:

#include <stdio.h>
int main(int argc, char** argv)
{
    printf("hello world");
    return (0);
}

gcc -g -c test.c
gcc -g -o test test.o
objdump -S test.exe > dump.txt

dump.txt does not contain source code lines, which make it easy to work with the disassembly.

I also tried the 'official' MinGW objdump 2.24 but it returns "file format not recognized".

Discussion


Anonymous

Cancel  Add attachments