public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Array indexing, lazy values, and C-like languages
@ 2021-10-15 15:39 Andrew Burgess
  2021-10-15 15:39 ` [PATCH 1/2] gdb: make value_subscripted_rvalue static Andrew Burgess
  2021-10-15 15:39 ` [PATCH 2/2] gdb: improve reuse of value contents when fetching array elements Andrew Burgess
  0 siblings, 2 replies; 7+ messages in thread
From: Andrew Burgess @ 2021-10-15 15:39 UTC (permalink / raw)
  To: gdb-patches

Create fewer lazy values when performing array indexing for C-like
languages.

Thanks,
Andrew


---

Andrew Burgess (2):
  gdb: make value_subscripted_rvalue static
  gdb: improve reuse of value contents when fetching array elements

 gdb/testsuite/gdb.base/non-lazy-array-index.c | 31 ++++++++
 .../gdb.base/non-lazy-array-index.exp         | 78 +++++++++++++++++++
 gdb/valarith.c                                | 28 ++++---
 gdb/value.h                                   |  4 -
 4 files changed, 126 insertions(+), 15 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/non-lazy-array-index.c
 create mode 100644 gdb/testsuite/gdb.base/non-lazy-array-index.exp

-- 
2.25.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-12-13 14:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 15:39 [PATCH 0/2] Array indexing, lazy values, and C-like languages Andrew Burgess
2021-10-15 15:39 ` [PATCH 1/2] gdb: make value_subscripted_rvalue static Andrew Burgess
2021-10-15 15:42   ` Simon Marchi
2021-12-03 11:11     ` Andrew Burgess
2021-10-15 15:39 ` [PATCH 2/2] gdb: improve reuse of value contents when fetching array elements Andrew Burgess
2021-12-03 11:11   ` Ping: " Andrew Burgess
2021-12-13 14:18     ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).