Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot inspect array: is more than max-value-size
Cannot inspect array: is more than max-value-size [message #1841193] Thu, 06 May 2021 07:19 Go to next message
Markus Wenzel is currently offline Markus WenzelFriend
Messages: 3
Registered: May 2021
Junior Member
I created an C project and added a global uint16_t array of size 65536

uint16_t array[65536] ;


I created a breakpoint and added the array as watch expression. Clicking on the array in the Expressions-Tab shows this error message:

Failed to execute MI command:
-data-evaluate-expression binBuffer
Error message from debugger back end:
value requires 131072 bytes, which is more than max-value-size


Trying to expand the array in the view results in termination and close of the debug view...

How to solve that issue? Can I somewhere increase the max-value-size?
Re: Cannot inspect array: is more than max-value-size [message #1841231 is a reply to message #1841193] Fri, 07 May 2021 09:19 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Have you tried this?
https://sourceware.org/gdb/current/onlinedocs/gdb/Value-Sizes.html

This is really a GDB issue having nothing to do with Eclipse/CDT.
The above link was found by googling: Cannot inspect array: is more than max-value-size
You could have had an almost instant answer had you done that yourself.

[Updated on: Fri, 07 May 2021 09:23]

Report message to a moderator

Re: Cannot inspect array: is more than max-value-size [message #1841286 is a reply to message #1841231] Tue, 11 May 2021 07:23 Go to previous messageGo to next message
Markus Wenzel is currently offline Markus WenzelFriend
Messages: 3
Registered: May 2021
Junior Member
Thanks, I was able to alter max-value-size by adding "set max-value-size unlimited" to my ~/.gdbinit file.
But the debugger view still crashes if I try to expand the array in the expressions tab returning to normal viewport.
Re: Cannot inspect array: is more than max-value-size [message #1841295 is a reply to message #1841286] Tue, 11 May 2021 10:51 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
It's probably just taking a very long time to collect the data.
I've had this happen with uninitialized STL sets as well as they appear to have 2^32 elements.
With large entities, it's best to only look at a subset range with the Expressions tab and avoid the Variables tab.
Re: Cannot inspect array: is more than max-value-size [message #1841393 is a reply to message #1841295] Fri, 14 May 2021 07:44 Go to previous message
Markus Wenzel is currently offline Markus WenzelFriend
Messages: 3
Registered: May 2021
Junior Member
Thanks, I totally missed this option to display an array by range:
http://p-bg.de/pics/eclispe_array.png
This works now.
Previous Topic:Manage build configuration list
Next Topic:no Preprocessor Include Paths, Macros etc. available
Goto Forum:
  


Current Time: Fri Mar 29 07:42:12 GMT 2024

Powered by FUDForum. Page generated in 0.02467 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top