Re: [lldb-dev] How to handle "O XX..." reply packets from gdb servers like openocd

2018-01-04 Thread Pedro Alves via lldb-dev
On 01/03/2018 07:11 PM, Greg Clayton via lldb-dev wrote:
> 
>> On Jan 1, 2018, at 6:30 PM, Owen Shaw via lldb-dev  
>> wrote:
>>
>> I dug into this a bit more, and these output reply packets seem to be
>> handled already, but only if the program is running.
> 
>> Since the relevant openocd commands are often issued when the program
>> paused, the reply packets aren't processed as expected.
>>
>> The spec does say that reply packets can happen "any time while the
>> program is running", so perhaps openocd is abusing the protocol, but
>> gdb handles the packets just fine when stopped.
> 
> Yes, LLDB is assuming that an "O" packet will only come during a continue 
> command. "O" is for stdout output and it seems the rCmd assuming it will 
> work. Why not just send back the text in response to the rCmd? Is some common 
> code path being hit where it might send this text while running and also in 
> response to the rCmd? I am confused by "O" packets are needed in response to 
> the rCmd.

qRcmd was invented well before my time, but qRcmd provides support
for running random interpreter commands on the server, with the
resulting output being potentially long, unbounded.  Thus sending the
text back in response to qRcmd would require an unbounded packet buffer
and would potentially hit the max packet size.  So you'd need some
way to send partial output in chunks.  Which ends up being exactly what
you get by reusing "O".

> If the rCmd can't be fixed to just return the text without using "O" packets, 

The documentation of the qRcmd packet explicitly specifies that output
should be sent via "O" packets:

 
https://sourceware.org/gdb/onlinedocs/gdb/General-Query-Packets.html#index-qRcmd-packet

Sounds like OpenOCD is working as intended.

Pedro Alves
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] 2018 European LLVM Developers’ Meeting -- Call for "Papers" Inbox x

2018-01-04 Thread p23 power via lldb-dev
*Call for Talks, Tutorials, BoFs, Panels.*


You are invited to submit your abstracts for the 2018 European LLVM
Developers’ Meeting  on April 16-17 in
Bristol, UK. All developers and users of LLVM and related sub-projects are
invited to present at this meeting.

*The submission deadline is: *February 9, 2018 at 23:59 (PDT).


We are looking for proposals on the following:


   - Technical Talks on LLVM Infrastructure (~30 minutes)
   - Technicals Talks on related sub-projects (Clang, etc)
   - Talks of uses of LLVM in academia or industry
   - Talks on new projects using Clang or LLVM
   - Lightning Talks (5 minutes, no questions, no discussions)
   - In depth Tutorials (60 minutes)
   - Posters (1 hour poster session)
   - Birds of a Feather (~30 minutes)
   - Panels related to LLVM or sub-projects

*Student Research Competition (SRC): * The Student Research Competition
offers students doing LLVM related research a non-academic platform to
announce and advertise their work as well as to discuss it with other
researchers, developers and users of LLVM. Students are asked to submit a
proposal for a 20 minute technical talk. There will be a prize for the best
SRC talk.

*Please submit your proposal here:*  https://hotcrp.llvm.org/eurollvm2018/

*What to submit *For each proposal, please submit a title and short
abstract (to be used on the website) and attach/upload either an extended
abstract (1 page maximum) or slides. We ask that you do not submit a full
length paper as your only attachment as reviewer time is limited.  For the
submission, you will need to note who the speaker is. If there is more than
one speaker, please mention it in the abstract.



*FAQ*

*When will I be notified of acceptance? *- Our goal is to notify all
proposal submitters by February 22, 2018.

*Should I register if I have submitted a proposal? * - We have 1
complimentary reserved registration for each accepted technical talk, BoF,
or student research competition talk. Accepted tutorials have been reserved
2 complimentary registrations. Panels have up to 3 reserved registrations.
There are no reserved registration spots for posters or lightning talks.
Please register any additional speakers or if you do not have a reserved
registration slot.

*What if I registered and my talk got accepted?* - We can refund your
registration fee and instructions will be sent following the notification.
If you plan to attend even if your proposal is not accepted and are worried
about the event selling out, we suggest registering before notification of
acceptance.

*What if I registered and my talk did NOT get accepted?* - We can refund
your registration fee if you no longer wish to attend if you contact the
organizer by March 2, 2018.

*What will be recorded? *- All technical talks, tutorials, SRC talks,
panels, and lightning talks will be recorded. By submitting your proposal,
you are giving us permission to record if you present at the meeting. For
SRC talks, you have the option to delay publication of the slides and video
for your talk for up to 12 months.

*I have a question, who do I contact? *- Please check the llvm-devmeeting
mailing list to see if your question has already been answered. It if has
not, and your question is generic enough that it can benefit to others,
please email llvm-devmeet...@llvm.org. Alternatively, you can ask the
organizing committee directly at eurollvm-organiz...@llvm.org.

*Are there travel grants for students? *- The LLVM Foundation sponsors
student travel to attend the European LLVM Developers' Meeting. Travel
grants cover some or all of travel related expenses. This program is open
to full time undergraduate and graduate students.  Please submit your
application by February 26th 2018. Full details on eligibility an
application. Notification of successful travel grant awards will be sent
via email by March 2 2018.


--- Best regards, Phillip Power
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev