From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id BBAD13858D32 for ; Mon, 27 Feb 2023 21:29:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BBAD13858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677533372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UPbTysIDk0NqcYS35qQim4asj79ZLuBG0TbTsuqL9aE=; b=LL81H3cQyptmKFPZ1mZt7MBzs1RcvBakBoTiNb3x4ywRrzHKRocI+cEknNE7nnSdu/n+oU cijkVHSv3Wg96YcUJ7wuQ7MjjGSj5faE/76AW0y4VuUHErkkRn/8s3m+Kfjy/9rXSybGRy Zy54davkBGOW1EORMBL0O4c2Cam3bwg= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-113-eF3580oOMHWsySjyMrJrHg-1; Mon, 27 Feb 2023 16:29:31 -0500 X-MC-Unique: eF3580oOMHWsySjyMrJrHg-1 Received: by mail-wm1-f71.google.com with SMTP id c7-20020a7bc847000000b003e00be23a70so5928518wml.2 for ; Mon, 27 Feb 2023 13:29:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677533369; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UPbTysIDk0NqcYS35qQim4asj79ZLuBG0TbTsuqL9aE=; b=uv0AhT5yybDqpADVK3zbTaBQdrzI4E81GDaghIhTidiC9tMeNeFTwDXxQIch9x9nou JTRY9Nh6bzkP/0PLgyKIskZMSL6QK2w/QB5beLJoy42LIpJJGYimmssX9IHDeas+2vIG WMPNWcIdxLKMccj3vIsGtQLSjsIp2Oof806WRVd954sHIKPydfPvCXaPjZjBjKPDcONU Ln0StWjYOvR82hUUfyyetZVPtGL0vtlwneYwssWTos9jA7Q3HT0gWrb8j0e5cLmE2zk2 v4sgr92GqvFu5VclsVpz2TIOERBvTXM3YfXfgVo8F9bJfRxPq7Z8NJ+PMeZcwAbBTPrw uZlQ== X-Gm-Message-State: AO0yUKWWX7Ku/Se1TesbMCIbK4kTns5DaAgejJNuTGCGsGS2Adz6Bnf/ boQsqJYH7MZhm5QOLdQkYW6IBM9CtLmRNiriD1+oVbaFZ+vsQpPs0639gQa11epNzYVWStYW0HN fUZNa3z3S1KETPdxqEKd3NivblfHy9L1MCP4o87Tz1LpXNrlaFgtLOSfHo2xrde5OZtfsrWKvZn 8EfYg= X-Received: by 2002:a05:600c:310b:b0:3eb:323e:de79 with SMTP id g11-20020a05600c310b00b003eb323ede79mr420837wmo.6.1677533369718; Mon, 27 Feb 2023 13:29:29 -0800 (PST) X-Google-Smtp-Source: AK7set/HoxImrV11rvmRK+CGndPJiXYodukQWfFqGW/RjV60WfbP7B4IKs5x+4rd1TDPP5XkL+68Fg== X-Received: by 2002:a05:600c:310b:b0:3eb:323e:de79 with SMTP id g11-20020a05600c310b00b003eb323ede79mr420825wmo.6.1677533369411; Mon, 27 Feb 2023 13:29:29 -0800 (PST) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id p15-20020a05600c1d8f00b003e20970175dsm14312489wms.32.2023.02.27.13.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 13:29:29 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 00/13] Remove a bunch of alloca uses Date: Mon, 27 Feb 2023 21:29:13 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Continuing effort to replace alloca calls with C++ data structures, here's a bunch of places where gdb::byte_vector can be used. This isn't all of them, there's still plenty to work through, but I thought I'd see how this lot is received. Thanks, Andrew --- Andrew Burgess (13): gdb: remove uses of alloca from arch-utils.c gdb: remove use of alloca from auxv.c gdb: remove use of alloca from c-lang.c gdb: remove use of alloca from corefile.c gdb: remove uses of alloca from dwarf2/expr.c gdb: remove a use of alloca from elfread.c gdb: remove use of alloca from findvar.c gdb: remove use of alloca from linux-nat-trad.c gdb: remove use of alloca from mem-break.c gdb: remove some uses of alloca from printcmd.c gdb: remove some uses of alloca from remote.c gdb: remove uses of alloca from valprint.c gdb: remove a use of alloca from symfile.c gdb/arch-utils.c | 13 ++++++------- gdb/auxv.c | 10 +++++----- gdb/c-lang.c | 8 +++----- gdb/corefile.c | 18 +++++++++--------- gdb/dwarf2/expr.c | 25 ++++++++++++++----------- gdb/elfread.c | 7 ++++--- gdb/findvar.c | 6 +++--- gdb/linux-nat-trad.c | 8 ++++---- gdb/mem-break.c | 7 +++---- gdb/printcmd.c | 44 +++++++++++++++++++++----------------------- gdb/remote.c | 40 ++++++++++++++++++---------------------- gdb/symfile.c | 11 +++++------ gdb/valprint.c | 17 ++++++++--------- 13 files changed, 103 insertions(+), 111 deletions(-) base-commit: 85c7cb3c4b70cc484ecf3d72a116503876a28f0a -- 2.25.4