Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jean-Rene Peulve <jr.peulve@wanadoo.fr>
To: gdb@sources.redhat.com
Subject: gdbserver 6.4.50 on Coldfire
Date: Tue, 18 Apr 2006 12:39:00 -0000	[thread overview]
Message-ID: <6.1.0.6.0.20060418102247.009f15c0@pop.wanadoo.fr> (raw)

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é 



             reply	other threads:[~2006-04-18  8:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-18 12:39 Jean-Rene Peulve [this message]
2006-04-18 16:11 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6.1.0.6.0.20060418102247.009f15c0@pop.wanadoo.fr \
    --to=jr.peulve@wanadoo.fr \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox