Steps to reproduce.

In one shell run:
gcc -ggdb gdb-bug.c
./a.out

In another shell run:
./script.sh >commands.txt
time gdb -x commands.txt | cat

With Fedora on a 500MHz CPU gdb executed those commands in 1.8 seconds.
With Ubuntu on a 1.3GHz CPU it took 42 seconds.

** Attachment added: "script demonstrating the bug"
   
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1095990/+attachment/3473935/+files/script.sh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1095990

Title:
  gdb -x uses quadratic time

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

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

Reply via email to