gdb.mi/mi-var-display.exp failure

Bug #616003 reported by Ulrich Weigand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GDB
Fix Released
Low
Yao Qi

Bug Description

FAIL: gdb.mi/mi-var-display.exp: create variable a2 in different scope
FAIL: gdb.mi/mi2-var-display.exp: create variable a2 in different scope

Needs further analysis.

Tags: testsuite

Related branches

Revision history for this message
Yao Qi (yao-codesourcery) wrote :

[CodeSourcery #3779, #3276]

Changed in gdb-linaro:
status: New → Confirmed
Revision history for this message
Ulrich Weigand (uweigand) wrote :

The test case assumes that $fp returns a frame-base value that can in turn be used as argument to var-create to identify a particular frame to create a variable object in.

However, the ARM back-end overrides $fp to always display the value of register 11. In particular for Thumb code, the contents of register 11 are completely unrelated to that frame base value ...

Changed in gdb-linaro:
importance: Undecided → Low
Revision history for this message
Yao Qi (yao-codesourcery) wrote :

Yes, GDB ARM back-end treats always $fp as r11, even in Thumb mode. The expected behavior should be fp is mapped to r7 in Thumb mode, while to r11 in ARM mode.

Current GDB has no such capability without changing some target-independent part.

Patch is submitted http://sourceware.org/ml/gdb-patches/2010-12/msg00286.html

Changed in gdb-linaro:
assignee: nobody → Yao Qi (yao-codesourcery)
Changed in gdb-linaro:
status: Confirmed → Fix Committed
Michael Hope (michaelh1)
tags: added: testsuite
Michael Hope (michaelh1)
Changed in gdb-linaro:
milestone: none → 7.2-2011.02-0
Michael Hope (michaelh1)
Changed in gdb-linaro:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.