Tested gdb 8.1-0ubuntu3.2~ppa.1 from ppa:dannf/lp1848200 on s390x and it
works fine.

ubuntu@hwe0002:~$ uname -a
Linux hwe0002 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:22:41 UTC 2019 
s390x s390x s390x GNU/Linux
ubuntu@hwe0002:~$ gdb hello
GNU gdb (Ubuntu 8.1-0ubuntu3.2~ppa.1) 8.1.0.20180409-git
Copyright (C) 2018 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 "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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 hello...done.
(gdb) b hello.c:5
Breakpoint 1 at 0x740: file hello.c, line 5.
(gdb) run
Starting program: /home/ubuntu/hello 

Breakpoint 1, main () at hello.c:5
5          printf("Hello, World!");
(gdb) quit

-- 
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/1848200

Title:
  gdb not stopping on breakpoint in a 32-bit program

Status in gdb package in Ubuntu:
  Invalid
Status in gdb source package in Bionic:
  In Progress
Status in gdb source package in Disco:
  Confirmed
Status in gdb source package in Eoan:
  Invalid
Status in gdb source package in Focal:
  Invalid

Bug description:
  [Impact]
  After upgrading gdb from 8.1-0ubuntu3 to 8.1-0ubuntu3.1, gdb does not stop 
  on breakpoint when running a 32-bit application (on 64-bit Ubuntu). 

  [Test Case]
  This can be reproduced with a simple “hello world” program:

  $ cat hello.c
  #include <stdio.h>
  int main()
  {
     // printf() displays the string inside quotation
     printf("Hello, World!");
     return 0;
  }
  $ gcc -ggdb -m32 hello.c
  $ gdb a.out
  (gdb) b hello.c:5
  Breakpoint 1 at 0x536: file hello.c, line 5.
  (gdb) run
  Starting program: /home/user/sandbox/a.out
  warning: Breakpoint address adjusted from 0xf7fd9be0 to 0xfffffffff7fd9be0.
  warning: Breakpoint address adjusted from 0xf7fda195 to 0xfffffffff7fda195.
  warning: Breakpoint address adjusted from 0xf7fdbd1c to 0xfffffffff7fdbd1c.
  warning: Breakpoint address adjusted from 0xf7fdb924 to 0xfffffffff7fdb924.
  warning: Breakpoint address adjusted from 0xf7fe99b3 to 0xfffffffff7fe99b3.
  warning: Breakpoint address adjusted from 0xf7fea401 to 0xfffffffff7fea401.
  warning: Breakpoint address adjusted from 0xf7fea706 to 0xfffffffff7fea706.

  --- (and not stopping nor outputting the text…) ---

  [Regression Risk]
  Test case ran on arm64 and regression tested on amd64/i386.

  This regression was fixed on the upstream gdb-8.1 branch within a few
  weeks of the breakage back in May 2018. Since then there have been no
  other fixes in this area on that branch, implying this fixed the issue
  and there were no further regressions discovered.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1848200/+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