This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Move gdb client utils into the packages tree
ClosedPublic

Authored by labath on Nov 15 2021, 7:05 AM.

Details

Summary

This infrastructure has proven proven its worth, so give it a more
prominent place.

My immediate motivation for this is the desire to reuse this
infrastructure for qemu platform testing, but I believe this move makes
sense independently of that. Moving this code to the packages tree will
allow as to add more structure to the gdb client tests -- currently they
are all crammed into the same test folder as that was the only way they
could access this code.

I'm splitting the code into two parts while moving it. The first once
contains just the generic gdb protocol wrappers, while the other one
contains the unit test glue. The reason for that is that for qemu
testing, I need to run the gdb code in a separate process, so I will
only be using the first part there.

Diff Detail

Event Timeline

labath created this revision.Nov 15 2021, 7:05 AM
labath requested review of this revision.Nov 15 2021, 7:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2021, 7:05 AM
Herald added a subscriber: aheejin. · View Herald Transcript

Are there any changes to the code you've moved that we should look at?

Nope. In fact, if you look closely, you'll see that phabricator highlights the entire lldbgdbclient.py file as being moved from the original file. :)

I will need to make some changes to this code, but I'll do that as a separate patch.

mgorny accepted this revision.Nov 15 2021, 7:20 AM

LGTM then.

This revision is now accepted and ready to land.Nov 15 2021, 7:20 AM
This revision was automatically updated to reflect the committed changes.