** Patch added: "armv8.1,2-hw-watch,breakpoints.diff"
   
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1608948/+attachment/4712374/+files/armv8.1%2C2-hw-watch%2Cbreakpoints.diff

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gdb in Ubuntu.
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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to