Hi,
I compiled gdbserver (from gdb-6.4.50.20060405) on my
uClinux Coldfire tree
(m68knommu).
I then encounter 2 problems:
1) linux-low.c uses fork when vfork should be use for system
without MMU.
I changed this and went to the next problem
2) the older gdbserver was displaying the address of the
main sections:
.text, .data and .bss
Without this info, I cannot use the add_symbol_file
xxx.gdb text_addr -s
.data data_addr -s .bss bss_addr
There was the following function called by server.c:main()
after
start_inferior()
or attach_inferior ()
void
show_area()
{
code_start = ptrace (PTRACE_PEEKUSER, inferior_pid,
(PTRACE_ARG3_TYPE) 49*4,
0);
data_start = ptrace (PTRACE_PEEKUSER, inferior_pid,
(PTRACE_ARG3_TYPE) 50*4,
0);
bss_start = data_start;
code_end = ptrace (PTRACE_PEEKUSER, inferior_pid,
(PTRACE_ARG3_TYPE) 51*4,
0);
fprintf(stderr,"code at %p - %p, data at
%p\n", code_start, code_end,
data_start);
}
What is the status of the support of m68knommu in gdbserver
?
Jean-René Peulvé
|