qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: qemu-devel@nongnu.org
Cc: Philippe Waille <Philippe.Waille@imag.fr>
Subject: [Qemu-devel] Re: gdbstub user mode : local/unix socket (cf remote pipe connexion addition)
Date: Fri, 03 Apr 2009 18:35:56 +0200	[thread overview]
Message-ID: <49D63AEC.8000105@siemens.com> (raw)
In-Reply-To: <20090403093137.GB31512@otto.imag.fr>

Philippe Waille wrote:
> On Thu, Apr 02, 2009 at 03:53:12PM +0200, Philippe Waille wrote:
> 
> I suggest this patch :
> 
> allow unix-domain socket gdb connection in user-mode gdbstub
> (updated version : fix socket address reuse error in my previous patch)

For unknown reasons my comments on the first version didn't made it to the list. Find them below, I think they still apply.

Jan

----------

Philippe Waille wrote:
> Hi
> 
>   I failed to add stdio remote pipe connection method to the linux-user gdbstub
> mode. But adding local/unix sockets instead solves the main part of my 
> problem.

Great. Thanks for working on this!

> 
> GDB options :
> -g trcp_portnumber (deprecated, for compatibility)

IMHO we should rather drop with a hard cut this instead of keeping
(potentially) confusing legacy around.

> -gdb tcp::portnumber
> -gdb local::portname

Why not using the standard syntax from the system emulation instead
inventing a new one? Even if you do not support all variations of
qemu-char, at least the corresponding ones should be compatible.

> 
> 
>   Local/unix sockets allow for instance 
> 
>   > qemu-arm -gdb /tmp/my_private_socket_name  executable_file
>   gdb>  target remote | socat stdio unix-connect:/tmp/my_private_socket_name
> 
> Files modified : gdbstub.c gdbstub.h linux-user/main.c  (tar file attached)
> 
> Diff from latest stable release (patch "Rework configuration via
> command line not applied).

If the patches have conflicts, maybe we can stack them. They logically
belong together (at least once we align the syntax :->), so they should
come as a pair.

> 
> Best regards
> Ph. Waille
> 
> --- qemu-0.10.1_modifie/gdbstub.c	2009-04-02 13:04:08.000000000 +0200
> +++ qemu-0.10.1_orig/gdbstub.c	2009-03-22 00:05:48.000000000 +0100

Reversed patch. A simple svn diff (or git diff, whatever you use) might
be a better idea than manual diffing.

Jan


-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

      reply	other threads:[~2009-04-03 16:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-02 13:53 [Qemu-devel] gdbstub user mode : local/unix socket (cf remote pipe connexion addition) Philippe Waille
2009-04-03  9:31 ` [Qemu-devel] " Philippe Waille
2009-04-03 16:35   ` Jan Kiszka [this message]

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=49D63AEC.8000105@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=Philippe.Waille@imag.fr \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).