------- Additional Comments From bje at sources dot redhat dot com  2006-03-28 
05:53 -------
objdump is behaving correctly.

It sounds like you want the --file-start-context option:

  `--file-start-context'
     Specify that when displaying interlisted source code/disassembly
     (assumes `-S') from a file that has not yet been displayed, extend
     the context to the start of the file.

When this option is omitted (as you were doing), the default is to show five
previous lines from a file that has not been displayed before.  When I use the
option, I see:

-- snip --
Disassembly of section .text:

00000000 <main>:

typedef struct {
  int a;
  int b;
  int c;
  int d;
  int f;
  int g;
  } s;

int main (void){
   0:   c0 e0           ldi     r28, 0x00       ; 0
   2:   d0 e0           ldi     r29, 0x00       ; 0
   4:   de bf           out     0x3e, r29       ; 62
   6:   cd bf           out     0x3d, r28       ; 61

[.. etc ..]

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


http://sourceware.org/bugzilla/show_bug.cgi?id=755

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to