public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/26054] New: step skipping over recommended breakpoint location
@ 2020-05-27 15:50 vries at gcc dot gnu.org
  2020-05-27 18:11 ` [Bug symtab/26054] " ssbssa at sourceware dot org
  2021-01-13 12:56 ` yangyibiao at outlook dot com
  0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-05-27 15:50 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26054
           Summary: step skipping over recommended breakpoint location
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ spinoff of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95360 ]

Consider test-case:
...
$ cat small.c
unsigned int b,d;
static int c[1][2] = {{0, 1}};

int main() {
  for (; d<1; d++)
    for (; b<1; b++)
      c[b][d+1] = 0;

  return 0;
}
...

Compiled like so:
...
$ gcc-10 -O0 -g small.c
...

When stepping through the program, we go straight from line 5 to line 7:
...
Temporary breakpoint 1 at 0x400496: file small.c, line 5.
Starting program: /home/vries/a.out 

Temporary breakpoint 1, main () at small.c:5
5         for (; d<1; d++)
(gdb) n
7             c[b][d+1] = 0;
...

If we disable the filtering in dwarf_record_line_p, we have instead:
...
Temporary breakpoint 1 at 0x400496: file small.c, line 5.
Starting program: /home/vries/a.out 

Temporary breakpoint 1, main () at small.c:5
5         for (; d<1; d++)
(gdb) n
6           for (; b<1; b++)
(gdb) n
7             c[b][d+1] = 0;
...

-- 
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 symtab/26054] step skipping over recommended breakpoint location
  2020-05-27 15:50 [Bug symtab/26054] New: step skipping over recommended breakpoint location vries at gcc dot gnu.org
@ 2020-05-27 18:11 ` ssbssa at sourceware dot org
  2021-01-13 12:56 ` yangyibiao at outlook dot com
  1 sibling, 0 replies; 3+ messages in thread
From: ssbssa at sourceware dot org @ 2020-05-27 18:11 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

-- 
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 symtab/26054] step skipping over recommended breakpoint location
  2020-05-27 15:50 [Bug symtab/26054] New: step skipping over recommended breakpoint location vries at gcc dot gnu.org
  2020-05-27 18:11 ` [Bug symtab/26054] " ssbssa at sourceware dot org
@ 2021-01-13 12:56 ` yangyibiao at outlook dot com
  1 sibling, 0 replies; 3+ messages in thread
From: yangyibiao at outlook dot com @ 2021-01-13 12:56 UTC (permalink / raw)
  To: gdb-prs

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

Yibiao Yang <yangyibiao at outlook dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yangyibiao at outlook dot com

--- Comment #1 from Yibiao Yang <yangyibiao at outlook dot com> ---
*** Bug 26059 has been marked as a duplicate of this bug. ***

-- 
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-01-13 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 15:50 [Bug symtab/26054] New: step skipping over recommended breakpoint location vries at gcc dot gnu.org
2020-05-27 18:11 ` [Bug symtab/26054] " ssbssa at sourceware dot org
2021-01-13 12:56 ` yangyibiao at outlook 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).