Public bug reported:

Binary package hint: gdb

Kubuntu 9.10 amd64.
gdb package 7.0-0ubuntu1

I was trying to break on a system call.
http://sourceware.org/gdb/current/onlinedocs/gdb/Set-Catchpoints.html
#Set-Catchpoints suggests the way you do this is `catch syscall foo` and
claims you can use tab completion.

But I couldn't get this to work.  Typing
  catch syscall op<tab>
prints 'warning: Could not open "syscalls/amd64-linux.xml"' . Typing
  catch syscall open
prints "Unknown syscall name 'open' . Typing
  catch syscall 2
prints "warning: The number '2' does not represent a known syscall."

Sure enough I do not have a /usr/share/gdb/ directory or the file
/usr/share/gdb/syscalls/amd64-linux.xml and it's not listed in
http://packages.ubuntu.com/karmic/amd64/gdb/filelist

The workaround: I found this file in sourceware.org's CVS, downloaded
it, installed it as root in the expected location, restarted gdb and
then all these commands work as expected.

Please could the files intended for /usr/share/gdb/syscalls be included
in the Ubuntu gdb package?  Thank you.

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

-- 
gdb "catch syscall" doesn't work, missing syscalls/amd64-linux.xml
https://bugs.launchpad.net/bugs/501277
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to