bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new version of binutils does not print source with disassemble


From: Russell Cattelan
Subject: new version of binutils does not print source with disassemble
Date: 10 Dec 2001 13:19:56 -0600

This is a simple little script that dumps out 
the disassembly intermixed with the source code.
The parameters match the stack strace of kdb (linux kernel debugger)

It works fine with binutils 
ib4[2:27pm]-=>objdump --version
GNU objdump 2.10.91

scare[1:09pm]-=>objdump  --version
GNU objdump 2.11.92.0.7 20011016

Has something simple and non obvious changed?


#!/bin/bash

set -x
#cd $WORKAREA

if [ $1 = "kernel" ]; then
        objdump --source -j $2                \
                --start-address=$4      \
                --stop-address=$5       \
                ./vmlinux
else
        find linux -name $1.o -print
        objdump --source -j $2                \
                --adjust-vma=$3         \
                --start-address=$4      \
                --stop-address=$5       \
                $1.o
fi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]