public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27196] New: clang+FreeBSD bug with "until"
@ 2021-01-17 10:24 evans_chen1 at dell dot com
  2021-01-17 10:25 ` [Bug gdb/27196] " evans_chen1 at dell dot com
  2021-12-09 14:34 ` blarsen at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: evans_chen1 at dell dot com @ 2021-01-17 10:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27196

            Bug ID: 27196
           Summary: clang+FreeBSD bug with "until"
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: evans_chen1 at dell dot com
  Target Milestone: ---

Created attachment 13125
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13125&action=edit
source file used to compile the program

GDB Version: GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Machine: Virtualbox FreeBSD 12.2 RELEASE amd64 VHD virtual machine
Compiler used to compile GDB: FreeBSD clang version 8.0.1
Compiler used to compile the program: FreeBSD clang version 10.0.1, target
x86_64-unknown-freebsd12.2
Command used to compile: clang -ggdb until.c -o until_clang
Source file “until.c” is attached.

Description of incorrect behavior:
The following output was produced. As you can see, the “until” command is not
working correctly, and repeatedly goes back to line 4 instead of advancing to
line 8.
However, the command “until 8” works correctly.

---BEGIN OUTPUT---

root@freebsd:~ # gdb until_clang
GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd12.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from until_clang...
(gdb) tbreak 6
Temporary breakpoint 1 at 0x2018ea: file until.c, line 6.
(gdb) r
Starting program: /root/until_clang 

Temporary breakpoint 1, main (argc=1, argv=0x7fffffffebb8) at until.c:6
6                    x = i; // tbreak here
(gdb) until
4                for (int i = 0; i <= 20; i++)
(gdb) until
6                    x = i; // tbreak here
(gdb) until
4                for (int i = 0; i <= 20; i++)
(gdb) until
6                    x = i; // tbreak here
(gdb) until
4                for (int i = 0; i <= 20; i++)
(gdb) until
6                    x = i; // tbreak here
(gdb) until 8
main (argc=1, argv=0x7fffffffebb8) at until.c:8
8                return 0;
(gdb) c
Continuing.
[Inferior 1 (process 1292) exited normally]
(gdb) q

--- END OUTPUT---

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27196] clang+FreeBSD bug with "until"
  2021-01-17 10:24 [Bug gdb/27196] New: clang+FreeBSD bug with "until" evans_chen1 at dell dot com
@ 2021-01-17 10:25 ` evans_chen1 at dell dot com
  2021-12-09 14:34 ` blarsen at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: evans_chen1 at dell dot com @ 2021-01-17 10:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27196

Evans Chen <evans_chen1 at dell dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |evans_chen1 at dell dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/27196] clang+FreeBSD bug with "until"
  2021-01-17 10:24 [Bug gdb/27196] New: clang+FreeBSD bug with "until" evans_chen1 at dell dot com
  2021-01-17 10:25 ` [Bug gdb/27196] " evans_chen1 at dell dot com
@ 2021-12-09 14:34 ` blarsen at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: blarsen at redhat dot com @ 2021-12-09 14:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27196

B. Larsen <blarsen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |blarsen at redhat dot com

--- Comment #1 from B. Larsen <blarsen at redhat dot com> ---
this is a known, and unfortunately not-yet-fixed, bug. There is some more
information on the older bug

*** This bug has been marked as a duplicate of bug 17315 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-17 10:24 [Bug gdb/27196] New: clang+FreeBSD bug with "until" evans_chen1 at dell dot com
2021-01-17 10:25 ` [Bug gdb/27196] " evans_chen1 at dell dot com
2021-12-09 14:34 ` blarsen at redhat dot com

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).