Bug 539318 - Assertion error for evaluate expression "&(*<symbol>)"
Summary: Assertion error for evaluate expression "&(*<symbol>)"
Status: RESOLVED FIXED
Alias: None
Product: TCF
Classification: Tools
Component: Agent (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.7   Edit
Assignee: Project Inbox CLA
QA Contact: Eugene Tarassov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-21 05:20 EDT by Andreas Ragnerstam CLA
Modified: 2021-06-25 16:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Ragnerstam CLA 2018-09-21 05:20:57 EDT
Running the expression "&(*main)" when there is a function symbol named "main" will cause the following assert to trigger:

if (v->function) {
    assert(v->type_class == TYPE_CLASS_POINTER);
}

The expectation is that this would return some error but not assert.
Comment 1 Eugene Tarassov CLA 2018-09-25 18:48:38 EDT
Such expression is supposed to be allowed in the debugger.
Fixed.
Thanks!