nuttxgdb/rpmsg.py:dump rpmsg_service message #14976
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(gdb)rpmsg_service
g_rpmsg_cb:
rpmsg_cb_s at ns_match ns_bind
0xf4e00ac0 0x44708225 <rpmsg_rtc_server_ns_match> 0x4470874c <rpmsg_rtc_server_ns_bind>
0xf4e27b20 0x440c8fd6 <syslog_rpmsg_ns_match> 0x440c966a <syslog_rpmsg_ns_bind>
0xf4e27af0 0x0 0x0
g_rpmsg:
Endpoint at Name local Addr dest Addr cb ns_bound_cb ns_unbind_cb
0xf2302ac0 NS 53 53 0x44699520 <rpmsg_virtio_ns_callback> 0x0 0x0
0xf3c0f920 rpmsg-ttysensor 1025 1028 0x44704457 <uart_rpmsg_ept_cb> 0x0 0x0
0xf301d058 rpmsg-sensor 1026 1029 0x440c1680 <sensor_rpmsg_ept_cb> 0x440c1871 <sensor_rpmsg_device_ns_bound> 0x44693a18 <rpmsg_destroy_ept>
0xf2302a6c rpmsg-ping 1027 1036 0x440a10d2 <rpmsg_ping_ept_cb> 0x0 0x0
List update: rpmsg dump contains none initialized list, need to take care of it in NxList.
Note: Please adhere to Contributing Guidelines.
Summary
The function of rpmsg_service is implemented under GDB. By entering the command rpmsg_service, you can print out the contents of the two linked lists g_rpmsg and g_rpmsg_cb of the AP and sensor front-end. This allows us to see what devices are currently waiting to connect and what devices are already connected.
Impact
The implementation of this function makes it easier for developers to view the connection status of the RPMsg service during debugging, allowing for better diagnosis and debugging. It mainly affects the debugging process and has no direct impact on the user interface and device functionality.
Testing
It has been verified on a real device and the functionality is confirmed to work properly. Relevant log information has been recorded and analyzed to ensure the correctness of the implementation.