Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdbserver 6.4.50 on Coldfire
@ 2006-04-18 12:39 Jean-Rene Peulve
  2006-04-18 16:11 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Rene Peulve @ 2006-04-18 12:39 UTC (permalink / raw)
  To: gdb

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é 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-18 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-18 12:39 gdbserver 6.4.50 on Coldfire Jean-Rene Peulve
2006-04-18 16:11 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox