← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1608948] [NEW] support hw watchpoints/breakpoints on ARMv8.{1, 2}

 

Public bug reported:

[Impact]
gdb reports no hw watchpoint/breakpoint support on ARMv8.1

[Test Case]
Test.c:
int main(void)
{
  int a;
  a = 0;
  a++;
  return a!=1;
}
----- CUT ----
gcc -g test.c -o testprog
apinski@apinski-ss1:~/binutils-gdb$ ./tools/bin/gdb -q a.out
Reading symbols from a.out...done.
(gdb) start
Temporary breakpoint 1 at 0x40050c: file t.c, line 4.
Starting program: /home/apinski/binutils-gdb/a.out

Temporary breakpoint 1, main () at t.c:4
4         a = 0;
(gdb) hb 5
Hardware assisted breakpoint 2 at 0x400510: file t.c, line 5.
(gdb) c
Continuing.

Breakpoint 2, main () at t.c:5
5         a++;
(gdb)

This fails on ARMv8.1 platforms w/o the patch.

[Regression Risk]
Patch is a clean cherry pick from upstream that just adds code to detect 8.1 & 8.2 chip debug types.

** Affects: gdb (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: gdb (Ubuntu Xenial)
     Importance: Undecided
         Status: New

** Also affects: gdb (Ubuntu Xenial)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1608948

Title:
  support hw watchpoints/breakpoints on ARMv8.{1,2}

Status in gdb package in Ubuntu:
  New
Status in gdb source package in Xenial:
  New

Bug description:
  [Impact]
  gdb reports no hw watchpoint/breakpoint support on ARMv8.1

  [Test Case]
  Test.c:
  int main(void)
  {
    int a;
    a = 0;
    a++;
    return a!=1;
  }
  ----- CUT ----
  gcc -g test.c -o testprog
  apinski@apinski-ss1:~/binutils-gdb$ ./tools/bin/gdb -q a.out
  Reading symbols from a.out...done.
  (gdb) start
  Temporary breakpoint 1 at 0x40050c: file t.c, line 4.
  Starting program: /home/apinski/binutils-gdb/a.out

  Temporary breakpoint 1, main () at t.c:4
  4         a = 0;
  (gdb) hb 5
  Hardware assisted breakpoint 2 at 0x400510: file t.c, line 5.
  (gdb) c
  Continuing.

  Breakpoint 2, main () at t.c:5
  5         a++;
  (gdb)

  This fails on ARMv8.1 platforms w/o the patch.

  [Regression Risk]
  Patch is a clean cherry pick from upstream that just adds code to detect 8.1 & 8.2 chip debug types.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1608948/+subscriptions


Follow ups