← Back to team overview

touch-packages team mailing list archive

[Bug 1148283] Re: gdb-multiarch doesn't work for i386->amd64

 

With 7.8.1-1ubuntu1, I no longer get "Invalid bfd target" from gdb-
multiarch, although it doesn't actually run the target binary:

  (gdb) r
  Starting program: /mnt/bin/ls
  warning: Selected architecture i386:x86-64 is not compatible with reported target architecture i386
  warning: Architecture rejected target-supplied description
  PC register is not available

But gdb64 seems to work, so I guess that's fine.  Thanks.

** Changed in: gdb (Ubuntu)
       Status: New => Fix Released

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

Title:
  gdb-multiarch doesn't work for i386->amd64

Status in “gdb” package in Ubuntu:
  Fix Released

Bug description:
  http://lists.linaro.org/pipermail/linaro-dev/2011-January/002022.html
  suggests that gdb should work for such things as debugging an amd64
  binary from i386 userspace (I'm running an amd64 kernel, so I can
  execute the binaries).  However:

  $ file /media/passport/chroot/raring-amd64/bin/ls
  /media/passport/chroot/raring-amd64/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0xf31e99218b4d7034cf8257055686bca22f5a3c01, stripped
  $ gdb-multiarch /media/passport/chroot/raring-amd64/bin/ls
  GNU gdb (GDB) 7.5-ubuntu
  Copyright (C) 2012 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 "i686-linux-gnu".
  For bug reporting instructions, please see:
  <http://www.gnu.org/software/gdb/bugs/>...
  "/media/cjwatson/passport/chroot/raring-amd64/bin/ls": not in executable format: File format not recognised
  (gdb) set gnutarget elf64-x86-64
  (gdb) file /media/passport/chroot/raring-amd64/bin/ls
  "/media/cjwatson/passport/chroot/raring-amd64/bin/ls": could not open as an executable file: Invalid bfd target
  (gdb) quit

  (I'm actually trying to debug GRUB, but this will do for a simpler
  example.)

  This doesn't look right.  Is gdb-multiarch misconfigured?

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