Bug 254789 - [variables][registers] Entering badly formatted register or variable value should cause a dialog to appear.
Summary: [variables][registers] Entering badly formatted register or variable value sh...
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 0 DD 1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 14:47 EST by Pawel Piech CLA
Modified: 2020-09-04 15:17 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2008-11-10 14:47:23 EST
The methods SyncRegisterDataAccess.writeVariable() and its equivalents ignore error messages returned by the service.  This is not good because there could be valuable information in the error that should be presented to the user.  Instead these methods should open a message dialog telling the user what went wrong.
Comment 1 Stanislav Perepelitsa CLA 2015-07-15 05:46:16 EDT
When tried to enter the following in Register view:
-value “77777777777777777777777777” and <CR>.
-value “kkkkkk” and <CR>.
-value “ ” and <CR>.

gdb/MI log  shows error, like that:

796,890 (gdb)
796,890 80-var-assign var2 "777777777777777777777777777777777777"
796,906 80^error,msg="Numeric constant too large."
796,906 (gdb)
815,295 81-var-assign var2 "kkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
815,311 81^error,msg="No symbol \"kkkkkkkkkkkkkkkkkkkkkkkkkkkkk\" in current context."
815,311 (gdb)
823,922 82-var-assign var2 "        "
823,938 82^error,msg="A syntax error in expression, near `'."
823,938 (gdb) 

Your point is to present error message to user in some sort of pop-up, right?