From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EC0263858D29; Fri, 10 Sep 2021 19:37:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC0263858D29 From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug varobj/27757] -var-list-children coredump Date: Fri, 10 Sep 2021 19:37:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: varobj X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2021 19:37:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27757 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #29 from Mehmet gelisin --- _typeof(oldval) prev; \ = \ __asm__ __volatile__( http://www-look-4.com/=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 \ "1: llock %0, [%1] \n" = \ " brne %0, %2, 2f \n" = \ " scond %3, [%1] \n" http://www.compilatori.= com/ \ " bnz 1b \n" = \ "2: http://www.wearelondonmade.com/ = \n" \ : "=3D&r"(prev) = \ : "r"(mem), "ir"(oldval), http://www.jopspeech.com/=20=20=20= =20=20=20=20=20=20=20=20=20=20 \ "r"(newval) /* can't be "ir". scond can't take limm for "b" *= /\ : "cc", "memory"); = \ = \ prev; http://joerg.li/=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 \ }) ------>8------- "llock" (Load Locked) loads the 32-bit word pointed by the source operand. If the load is completed without any interruption or http://connstr.net/=20 exception, the physical address is remembered, in Lock Physical Address (LPA), and the Lock Flag (LF) is set to 1. LF is a non-architecturally http://embermanchester.uk/=20 visible flag and is cleared whenever an interrupt or exception takes place. LF is also cleared (atomically) whenever another process writes to the LPA. http://www.slipstone.co.uk/=20 "scond" (Store Conditional) will write to the destination address if and only if the LF is set to 1. When finished, with or without a write, it atomically copies the LF value to ZF (Zero Flag). http://www.logoarts.co.uk/=20 These two instructions together provide the mechanism for entering a critical section. The code snippet above comes from uClibc: ----------------------- v3 (after Tom's remarks[2]): http://www.acpirateradio.co.uk/ handle_atomic_sequence() - no need to initialize the std::vector with "{}" - fix typo in comments: "conditial" -> "conditional" - add braces to the body of "if" condition because of the comment line arc_linux_software_single_step() https://waytowhatsnext.com/=20 - make the performance slightly more efficient by moving a few variables after the likely "return" point. https://komiya-dental.com/ v2 (after Simon's remarks[3]): https://www.webb-dev.co.uk/=20 - handle_atomic_sequence() gets a copy of an instruction instead of a reference. - handle_atomic_sequence() asserts if the given instruction is an llock. http://www.iu-bloomington.com/=20 I set a breakpoint at line 13 and run, then this command 0-interpreter-exec --thread 1 --frame 0 mi2 "-var-create var1_b * \"b\"" causes a crash for m https://komiya-dental.com/ --=20 You are receiving this mail because: You are on the CC list for the bug.=