[#6402] dump command in bfin-elf-gdb fails with ending nulls

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6402] dump command in bfin-elf-gdb fails with ending nulls

Submitted By: Bill Brubaker

Open Date

2010-12-08 20:45:38    

Priority:

Medium     Assignee:

Nobody

Board:

Custom     Silicon Revision:

0.2 and 0.3

Resolution:

N/A     Fixed In Release:

N/A

Processor:

BF534     

Host Operating System:

Windows XP

toolchain rev.:

SVN-20101024     kernel rev.:

N/A

State:

Open     Found In Release:

snaps

Is this bug repeatable?:

yes     

Summary: dump command in bfin-elf-gdb fails with ending nulls

Details:

 

my setup:

- connecting to board using ICE-100B jtag cable

- using Windows toolchain

  http://blackfin.uclinux.org/gf/download/frsrelease/344/3231/blackfin-toolchain-win32-SVN.exe

- using Cygwin to provide command line

 

 

steps to reproduce using attached files:

 

$ make

 

$ bfin-gdbproxy bfin --reset

 

$ bfin-elf-gdb -x gdb-commands buffer.exe

 

 

The x/6b from gdb-commands displays the expected result:

0xffb00fbc:     0xff    0xff    0xff    0xff    0x00    0x00

 

However...

$ hexl dump.bin

 

expected results:

00000000: ffff ffff 0000

 

actual results:

00000000: ffff ffff 5678

 

Notice that the bytes 5678 which overwrite the null bytes occur 4 bytes later in the array.

 

I get the expected results using plain (that is, not bfin-elf-) gcc and gdb.

 

Follow-ups

No Messages Were Found

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

gdb-commands    application/octet-stream    104    Bill Brubaker

buffer.c    text/x-csrc    143    Bill Brubaker

Makefile    application/octet-stream    138    Bill Brubaker

Attachments

Outcomes