Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EngineerZone Spotlight
    • The Engineering Mind
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • Amplifiers
    • Analog Microcontrollers
    • Analysis Control Evaluation (ACE) Software
    • Audio
    • Clock and Timing
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power By Linear
    • Processors and DSP
    • Reference Circuits
    • RF and Microwave
    • Signal Chain Power (SCP)
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • My EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • More
  • Cancel
Linux Distribution for Blackfin
  • Processors and DSP
  • Software and Development Tools
  • Linux Distribution for Blackfin
  • More
  • Cancel
Linux Distribution for Blackfin
Documents [#6030] test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"
  • Q&A
  • Discussions
  • Documents
  • File Uploads
  • Video/Images
  • Sub-Groups
  • Members
  • Tags
  • Reports
  • Managers
  • More
  • Cancel
  • New
Linux Distribution for Blackfin requires membership for participation - click to join
  • Documents
  • 2005-06-18 08:54:21     how load and compile the uClinux kernel
  • 2007-04-03 05:21:47     SPI eeprom write read
  • 2007-06-05 06:05:45     How to load Linux from JFFS2/NAND flash
  • 2011-10-18 00:59:25     Attention: help forums are moving to the Analog Devices' EngineerZone Since Oct.24
  • 2013R1 Linux release for Blackfin
  • AD5700/AD5700-1 RXD Activity After HART Carrier Off
  • DAS U-BOOT FOR BLACKFIN BUGS ARCHIVE
  • Development of the Blackfin Linux Projects is moved to sourceforge.net since Jul. 20, 2013.
  • FAQ: Demo the video capability on BF609
  • FAQ: Does ADI u-boot support BF70x processors?
  • FAQ: GDB commands for newbie.
  • FAQ: Getting Started with SDP-B using GCC Toolchain
  • FAQ: How do I re-use projects built in VDSP in a GCC Bare metal environment?
  • FAQ: How to make u-boot to do somthing automatically after booting
  • FAQ: Moving to a newer Blacinfin Linux release version
  • FAQ: Why I get compile errors with the default ADI release
  • GNU TOOLCHAIN FOR BLACKFIN BUGS ARCHIVE
  • GNU TOOLCHAIN FOR BLACKFIN SUPPORT COMMUNITY
  • How can I flash the uImage into Flash and boot from it?
  • How to autorun applications in uClinux
  • I want to use the second core of Blackfin in Linux to boost the performance, is there a quick guide?
  • LINUX DISTRIBUTION FOR BLACKFIN SUPPORT COMMUNITY
  • +Parent Document for U-Boot Bug Archive
  • +Parent Document for U-Boot Bug Forum Archive
  • +Parent for all content moved from GNU Archive
  • Re: bf537 SPI Bus: To use Kernel, Userspace, or Bitbang control
  • TAGS LIST: Interface and Isolation
  • The 2013R1 Linux release for Blackfin
  • The development of the Blackfin Linux Projects is moved to sourceforge.net since Jul. 20, 2013.
  • Use gdbproxy to debug kernel
  • Use the ADI test scripts to auto config and build a target for a set of function
  • what does a successful "loading u-boot over uart" look like?
  • Where can I get Linux Blackfin documents?
  • [#3812] svn head u-boot build fails initcode.c on older parts
  • [#5809] gcc/g++ test on trunk head regression compared with testing on 09r1.1
  • [#5825] gdb: symbols cannot map to correct source file
  • [#5826] gdb.cp/userdef.exp fails to load executable's loadmap in fdpic testing
  • [#5827] gcc.dg/trampoline-1.c test on hardware fdpic fails on bf527 but pass on bf548
  • [#5828] libstdc++-4.3 21_strings/basic_string/capacity/char/18654.cc test on fdpic would fail
  • [#5842] gdb.base/sigall.exp would fail when debug through serial port 1
  • [#5845] gdb.gdbtk/c_variable.exp fails to be tested through /dev/ttyBF1
  • [#5858] gcc.c-torture/execute/memset-2.c regression now
  • [#5880] ldr-utils build fails
  • [#5886] bfin-elf-libstdc++-4.3 has two regression case compared with libstdc++-4.1
  • [#5887] bfin-uclinux-libstdc++-4.3 ext/headers.cc regress
  • [#5888] bfin-uclinux-libmudflap-4.3.sum pass40-frag.c output pattern test regress
  • [#5889] toolchain-regtest -r (test compare) option has multiple issues
  • [#5890] toolchain-regtest does not handle unknown args very well
  • [#5891] trunk head gdbproxy can't find and open urjtag device
  • [#5892] bfin-uclinux-libstdc++-4.3 23_containers/set/modifiers/16728.cc fail sometimes
  • [#5895] prepare_target_solibs in toolchain-regtest fail to check the libs
  • [#5922] gcc/g++ testcase regression in simulator test for Unhandled instruction
  • [#5928] gas has problems with local labels in LOOP instructions
  • [#5935] toolchain-regtest can't find the toolchain to be tested now
  • [#5938] toolchain-regtest aborts when previous results are missing
  • [#5953] test libmudflap fails for mfconfig.exp.in missing
  • [#5962] mcpu doesn't get passed in testing linux-uclibc toolchain
  • [#5965] elf-simulator test cases regress for program stopped with signal 11
  • [#5966] build sim binutils fails now
  • [#5970] Build oprofile failed at bfd library after toolchain upgrade from 3801 to 3852
  • [#5974] CPLB fault or SIGABRT when throwing&catching C++ exception in static FDPIC ELF
  • [#5980] trunk toolchain cannot find -lbffastfp with -mfast-fp
  • [#5981] gas tests have regressions due to SHIFT->LSHIFT change
  • [#5989] build toolchain fails at binutils-2.17/sim/bfin
  • [#6018] gcc-4.3 ICEs with {interrupt,exception,nmi}_handler function attributes in copyprop_hardreg_forward_1, at regrename.c:1787
  • [#6030] test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"
  • [#7702] GDB fails to find prologue
  • [#7806] gdb test regression after using buildroot as target os
  • [DOC] Configuring Qt Creator as SDK for uClinux

[#6030] test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"

[#6030] test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"

Submitted By: Vivi Li

Open Date

2010-05-17 03:05:06     Close Date

2010-05-25 23:28:21

Priority:

Medium High     Assignee:

Mike Frysinger

Board:

N/A     Silicon Revision:

Resolution:

Assigned (Not Started)     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

4.3.4_rev4152     kernel rev.:

State:

Closed     Found In Release:

2010R1

Is this bug repeatable?:

N/A     

Summary: test bfin-elf via simulator, it stops in gdb.gdbtk/c_variable.exp with case "stop in subroutine1"

Details:

When test bfin-elf via simulator, gdb test stops in gdb.gdbtk/c_variable.exp with test case "stop in subroutine1". I have to kill the test pid in the background as the test can not continue.

Last passed time is on Mar 29th, 2010. And it fails after that.

--

toolchain svn Revision: 4130

U-Boot svn Revision: 2242

uclinux-dist svn Revision: 9538

linux svn Revision: 8561

--

In gdb.log, we can see it stops after case "check whether linteger -- lsimple.integer changed (c_variable-2.8)" is passed.

The next case is "stop in subroutine1 (c_variable-2.9)".

--

  check_update

==== Result was:

lpcharacter {}

++++ c_variable-2.5 PASSED

==== c_variable-2.6 check whether llong -- lsimple.character changed

==== Contents of test case:

  check_update

==== Result was:

{lsimple.character lsimple.integer lfloat lpfloat llong lplong ldouble lpdouble} {}

++++ c_variable-2.6 PASSED

==== c_variable-2.7 check whether lsimple.signed_character, lsimple.char_ptr, lpsimple, func changed

==== Contents of test case:

  check_update

==== Result was:

{lpsimple func lpsimple->integer} {}

++++ c_variable-2.7 PASSED

==== c_variable-2.8 check whether linteger -- lsimple.integer changed

==== Contents of test case:

  check_update

==== Result was:

{lsimple.character lsimple.integer lcharacter linteger lfloat llong lpsimple->integer ldouble} {}

++++ c_variable-2.8 PASSED

(it stops here)

--

Follow-ups

--- Robin Getz                                               2010-05-20 19:29:05

I can replicate -

> ps 24582

  PID TTY      STAT   TIME COMMAND

24582 pts/1    S+     0:00 bfin-elf-insight -nx -q

--tclcommand=/home/rgetz/blackfin/trunk/toolchain/binutils-2.17/gdb/testsuite/gdb.gdbtk/c_variable.test

> strace -p 24582

Process 24582 attached - interrupt to quit

select(6, [5], [], [], NULL

>cat /proc/24582/fdinfo/6

pos:    2377279

flags:  0100002

>cat /proc/24582/fd/6

Test Run By rgetz on Thu May 20 17:56:45 2010

Target is bfin-unknown-elf

Host   is x86_64-unknown-linux-gnu

                === gdb tests ===

Schedule of variations:

    bfin-sim

Running target bfin-sim

Using /home/rgetz/blackfin/trunk/gcc_build/boards/bfin-sim.exp as board

description file for target.

Using /usr/share/dejagnu/config/sim.exp as generic interface file for target.

Using /usr/share/dejagnu/baseboards/basic-sim.exp as board description file for

target.

Using

/home/rgetz/blackfin/trunk/toolchain/binutils-2.17/gdb/testsuite/config/sim.exp

as tool-and-target-specific interface file.

Running

/home/rgetz/blackfin/trunk/toolchain/binutils-2.17/gdb/testsuite/gdb.ada/array_return.exp

...

UNSUPPORTED: gdb.ada/array_return.exp: Ada compilation failed:

default_target_compile: Can't find bfin-elf-gnatmake.

[...snip...]

==== c_variable-2.8 check whether linteger -- lsimple.integer changed

==== Contents of test case:

  check_update

==== Result was:

{lsimple.character lsimple.integer lcharacter linteger lfloat llong

lpsimple->integer ldouble} {}

++++ c_variable-2.8 PASSED

?

I see things being run - but I'm not sure where it's getting stuck...

The program is not being run.

(gdb) file

/home/rgetz/blackfin/trunk/gcc_build/gdb_build/testsuite/gdb.asm/asm-source

Reading symbols from

/home/rgetz/blackfin/trunk/gcc_build/gdb_build/testsuite/gdb.asm/asm-source...done.

(gdb) target sim

Connected to the simulator.

(gdb) load

Loading section .text, size 0x5c lma 0x0

Loading section .data, size 0x8 lma 0x105c

Start address 0x0

Transfer rate: 800 bits in <1 sec.

(gdb) delete breakpoints

(gdb) info breakpoints

No breakpoints or watchpoints.

(gdb) break main

Breakpoint 1 at 0x14: file

/home/rgetz/blackfin/trunk/toolchain/binutils-2.17/gdb/testsuite/gdb.asm/asmsrc1.s,

line 25.

(gdb) target sim

Connected to the simulator.

(gdb) load

Loading section .text, size 0x5c lma 0x0

Loading section .data, size 0x8 lma 0x105c

Start address 0x0

Transfer rate: 800 bits in <1 sec.

(gdb) run

Starting program:

/home/rgetz/blackfin/trunk/gcc_build/gdb_build/testsuite/gdb.asm/asm-source

Breakpoint 1, main () at

/home/rgetz/blackfin/trunk/toolchain/binutils-2.17/gdb/testsuite/gdb.asm/asmsrc1.s:29

29              gdbasm_several_nops

Current language:  auto; currently asm

(gdb) f

It seems to be working OK - but the file doesn't ever close.

--- Mike Frysinger                                           2010-05-24 15:22:08

when it stops like that, it has most likely displayed something in the X session

and the select() is actually waiting for user input (click a button).  best

thing would be to install something like scrot and take a snapshot of it.

$ pgrep -lf Xvfb

5026 Xvfb :1464 -ac

$ DISPLAY=:1464 scrot snap.png

then post that snapshot as an attachment, or look at it yourself to see what it

wants ...

--- Mike Frysinger                                           2010-05-24 16:28:23

i was hitting a problem, but turned out to be unrelated (committed a fix for it

at any rate).  current svn trunk passes the same way for me as it always has.  a

few tests fail, but they've always failed.  i certainly dont see the hang as

reported here.  please run that scrot stuff to see what's going on in your Xvfb.

another option might be to vnc into it via x11vnc, but that's more

complicated.

...

Running ../../../gdb/testsuite/gdb.gdb/xfullpath.exp ...

Running ../../../gdb/testsuite/gdb.gdbtk/browser.exp ...

Running ../../../gdb/testsuite/gdb.gdbtk/c_variable.exp ...

FAIL: gdb.gdbtk/c_variable.exp: check that all children of weird change (ops,

we are now reporting array names as changed in this case - seems harmless

though) (c_variable-6.31)

Running ../../../gdb/testsuite/gdb.gdbtk/console.exp ...

gdb compile failed, ../../../gdb/testsuite/gdb.gdbtk/simple.c: In function

‘main’:

../../../gdb/testsuite/gdb.gdbtk/simple.c:9: warning: incompatible implicit

declaration of built-in function ‘malloc’

../../../gdb/testsuite/gdb.gdbtk/simple.c:15: warning: incompatible implicit

declaration of built-in function ‘strncpy’

WARNING: Testcase compile failed, so some tests in this file will automatically

fail.

FAIL: gdb.gdbtk/console.exp: invoke unknown command (console-error-1)

Running ../../../gdb/testsuite/gdb.gdbtk/cpp_variable.exp ...

Running ../../../gdb/testsuite/gdb.gdbtk/insight-support.exp ...

Running ../../../gdb/testsuite/gdb.gdbtk/srcwin.exp ...

FAIL: gdb.gdbtk/srcwin.exp: variable balloon test (srcwin-5.1)

FAIL: gdb.gdbtk/srcwin.exp: mixed mode disassembly of include file (mi/1101)

(srcwin-6.1)

FAIL: gdb.gdbtk/srcwin.exp: stack up (2) (srcwin3-3.2)

Running ../../../gdb/testsuite/gdb.gdbtk/windows.exp ...

Running ../../../gdb/testsuite/gdb.hp/gdb.aCC/exception.exp ...

...

--- Robin Getz                                               2010-05-24 21:38:38

Yeah - this looks like it works for me now...

                === gdb Summary ===

# of expected passes            9273

# of unexpected failures        17

# of expected failures          41

# of known failures             8

# of unresolved testcases       2

# of untested testcases         34

# of unsupported tests          36

/home/rgetz/blackfin/trunk/gcc-t-elf/bin/bfin-elf-gdb version  6.6 -nx

--- Vivi Li                                                  2010-05-25 23:26:03

It works for me too.

So close this bug.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
Related
 
社交网络
快速链接
  • 关于ADI
  • Partners
  • 模拟对话
  • 职业
  • 联系我们
  • 投资信息
  • 新闻中心
  • 质量和可靠性
  • 办事处与代理商
  • Analog Garage
语言
  • English
  • 简体中文
  • 日本語
  • Руccкий
电子快讯

欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

订阅
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • 网站地图
  • 隐私和保密政策
  • 隐私设置
  • 使用条款
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2021 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2021 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.