I tested a little more and I used
(gdb) symbol-file program.debug
instead of
(gdb) add-symbol-file program.debug
And I see the same result now.