From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86727 invoked by alias); 27 Mar 2018 14:32:07 -0000 Mailing-List: contact gdb-testers-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-testers-owner@sourceware.org Received: (qmail 86711 invoked by uid 89); 27 Mar 2018 14:32:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=contribute X-HELO: kwanyin.sergiodj.net Received: from kwanyin.sergiodj.net (HELO kwanyin.sergiodj.net) (158.69.185.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Mar 2018 14:32:04 +0000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [binutils-gdb] set varsize-limit: New GDB setting for maximum dynamic object size From: sergiodj+buildbot@sergiodj.net To: gdb-testers@sourceware.org Message-Id: <3fcded8f30b6b0c1930d4f82914476315027aa2e@gdb-build> Date: Tue, 27 Mar 2018 14:32:00 -0000 X-SW-Source: 2018-q1/txt/msg07154.txt.bz2 *** TEST RESULTS FOR COMMIT 3fcded8f30b6b0c1930d4f82914476315027aa2e *** Author: Joel Brobecker Branch: master Commit: 3fcded8f30b6b0c1930d4f82914476315027aa2e set varsize-limit: New GDB setting for maximum dynamic object size This is a command we somehow forgot to contribute at the time the Ada language was first contributed to the FSF. This command allows the user to change the maximum size we allow when reading memory from dynamic objects (the default is 65536 bytes). At the moment, this limit is only used by Ada, and so the implementation is kept inside ada-lang.c. However, it is conceivable that other language might want to use it also to handle the same kind of issues; for instance, this might be useful when handling dynamic types in C. So the name of the setting was made language-neutral, to allow for this. Note that an alias for "set var" needs to be introduced as well. We are not adding a test for that, since this is a feature that is already exercized by numerous existing tests. gdb/ChangeLog * NEWS: Add entry describing new "set|show varsize-limit" command. * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" command. * printcmd.c (_initialize_printcmd): Add "set var" alias of "set variable". gdb/doc/ChangeLog: * gdb.texinfo (Ada Settings): New subsubsection. gdb/testsuite/ChangeLog: * gdb.ada/varsize_limit: New testcase. Tested on x86_64-linux.