This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdbserver 6.4.50 on Coldfire


I compiled gdbserver (from gdb- 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 ()


    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é

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]