public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/27768] New: Connecting to debugserver fails
@ 2021-04-22 19:03 jrmuizel at gmail dot com
  2021-04-23 14:49 ` [Bug remote/27768] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: jrmuizel at gmail dot com @ 2021-04-22 19:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27768

            Bug ID: 27768
           Summary: Connecting to debugserver fails
           Product: gdb
           Version: 10.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: jrmuizel at gmail dot com
  Target Milestone: ---

Running the following on macOS 10.15:
/Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/debugserver
localhost:8080 ./test

and then trying to connect with gdb 10.1 gives:

(gdb) target remote localhost:8080
Remote debugging using localhost:8080
warning: Architecture rejected target-supplied description
Remote register badly formatted:
T11thread:3a3652;00:0000000000000000;01:0000000000000000;02:0000000000000000;03:0000000000000000;04:0000000000000000;05:0000000000000000;06:0000000000000000;07:1844b5e7fe7f0000;08:0000000000000000;09:0000000000000000;0a:0000000000000000;0b:0000000000000000;0c:0000000000000000;0d:0000000000000000;0e:0000000000000000;0f:0000000000000000;10:00f00a0a01000000;11:0002000000000000;12:2b00000000000000;13:0000000000000000;14:0000000000000000;metype:5;mecount:2;medata:10003;medata:11;
here:
00000000;12:2b00000000000000;13:0000000000000000;14:0000000000000000;metype:5;mecount:2;medata:10003;medata:11;

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug remote/27768] Connecting to debugserver fails
  2021-04-22 19:03 [Bug remote/27768] New: Connecting to debugserver fails jrmuizel at gmail dot com
@ 2021-04-23 14:49 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2021-04-23 14:49 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27768

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org
             Target|                            |*-*-darwin*

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
lldb extended the gdb remote protocol stop replies.

https://github.com/llvm/llvm-project/blob/main/lldb/docs/lldb-gdb-remote.txt

//  We have extended the "T" packet to be able to also understand the
//  following keys and values:
...
//  "metype"      unsigned  mach exception type (the value of the EXC_XXX
enumerations)
//                          as an unsigned integer. For targets with mach
//                          kernels only.
[...etc...]

Unfortunate that they chose not to have this be probed.

Some work in remote.c would be needed to handle these.


Also:

> warning: Architecture rejected target-supplied description

gdb's Darwin tdep code doesn't seem to handle XML target descriptions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2021-04-23 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 19:03 [Bug remote/27768] New: Connecting to debugserver fails jrmuizel at gmail dot com
2021-04-23 14:49 ` [Bug remote/27768] " tromey at sourceware dot org

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 read-only IMAP folder(s) and NNTP newsgroup(s).