[Bug 1202220] [NEW] step function does not work with gdb-mutiarch
bhs
1202220 at bugs.launchpad.net
Wed Jul 17 14:22:05 UTC 2013
Public bug reported:
In cross mode, running gdbserver from 12.04 armhf in the target and
using gdb-multiarch in the host 12.04 x86 ubuntu, we can connect to the
target using suitable gdbinit file but we cannot use step command in
gdb-mutliarch shell. Using once starts the program to be run in the
gdbserver, using it once more the program completion in the target.
Steps to repro:
Test C file: test.c
#include <stdio.h>
void printest()
{
printf("printest function.\n");
printf("printest function.\n");
printf("printest function.\n");
printf("printest function.\n");
}
int main(int argc, char *argv[])
{
printf("Hello World!\n");
printf("Hello World!\n");
printest();
printest();
printf("Hello World!\n");
printf("Hello World!\n");
return 0;
}
Build:
arm-linux-gnueabihf-gcc -g test.c -o test
In target:
gdbserver :1234 ./test
In host:
gdb-multiarch ./test
gdbinit file used has:
set solib-absolute-prefix <path of targetfs used in ARM target>
set sysroot <path of targetfs used in ARM target>
set solib-search-path <path of targetfs used in ARM target> /lib:<path of targetfs used in ARM target> /usr/lib
set architecture arm
In the gdb shell:
(gdb)target remote <ip>:1234
(gdb) step
(gdb) step
Output:
The program terminates in the target and the debugging is stopped.
Also, I verified that using just the latest 12.04-armhf gdb (not the
client/server combination) in the target itself that the same issue does
not reproduce.
** Affects: gdb (Ubuntu)
Importance: Undecided
Status: New
** Tags: gdb gdb-multiarch linaro-gdb
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gdb in Ubuntu.
https://bugs.launchpad.net/bugs/1202220
Title:
step function does not work with gdb-mutiarch
Status in “gdb” package in Ubuntu:
New
Bug description:
In cross mode, running gdbserver from 12.04 armhf in the target and
using gdb-multiarch in the host 12.04 x86 ubuntu, we can connect to
the target using suitable gdbinit file but we cannot use step command
in gdb-mutliarch shell. Using once starts the program to be run in the
gdbserver, using it once more the program completion in the target.
Steps to repro:
Test C file: test.c
#include <stdio.h>
void printest()
{
printf("printest function.\n");
printf("printest function.\n");
printf("printest function.\n");
printf("printest function.\n");
}
int main(int argc, char *argv[])
{
printf("Hello World!\n");
printf("Hello World!\n");
printest();
printest();
printf("Hello World!\n");
printf("Hello World!\n");
return 0;
}
Build:
arm-linux-gnueabihf-gcc -g test.c -o test
In target:
gdbserver :1234 ./test
In host:
gdb-multiarch ./test
gdbinit file used has:
set solib-absolute-prefix <path of targetfs used in ARM target>
set sysroot <path of targetfs used in ARM target>
set solib-search-path <path of targetfs used in ARM target> /lib:<path of targetfs used in ARM target> /usr/lib
set architecture arm
In the gdb shell:
(gdb)target remote <ip>:1234
(gdb) step
(gdb) step
Output:
The program terminates in the target and the debugging is stopped.
Also, I verified that using just the latest 12.04-armhf gdb (not the
client/server combination) in the target itself that the same issue
does not reproduce.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1202220/+subscriptions
More information about the foundations-bugs
mailing list