Article View: gnu.gdb.bug
Article #10227question regarding artificial arrays in gdb
From: ha
Date: Tue, 31 Oct 1989 18:16
Date: Tue, 31 Oct 1989 18:16
22 lines
1410 bytes
1410 bytes
I am not sure if this is right forum to ask this question (please let me know what is). Can I use artificial arrays on the left-hand-side of a `set variable' command? For example, if there are two arrays a[10] and b[10], can I say something like `set a[1]@3 = b[6]@3'? When I tried this in gdb, it didn't complain, but it didn't do the expected -- setting a[1], a[2], a[3] to b[6], b[7], b[8] respectively. It simply mauled the value of a[1]. Is there any other command to do this? I understand that I could define convenience variables for indices in the two arrays and then assign individual elements incrementing the indices simultaniously. But I am looking at something more general. Is there a way I can overwite N bytes starting at address X with N given bytes? I'll appreciate any help. Thanks. --Hira.
Technical Details
Message-ID:
<8910311816.AA25853@serc3.cs.purdue.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CS.PURDUE.EDU!haShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,c8479adbc12114e8,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1989-10-31 18:01:02 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!CS.PURDUE.EDU!ha From: ha@CS.PURDUE.EDU Newsgroups: gnu.gdb.bug Subject: question regarding artificial arrays in gdb Message-ID: <8910311816.AA25853@serc3.cs.purdue.edu> Date: 31 Oct 89 18:16:31 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22 Posted: Tue Oct 31 19:16:31 1989