forked from auracaster/openocd
rtos: linux: align switch and case statements
The coding style requires the 'case' to be at the same indentation level of its 'switch' statement. Align the code accordingly. No changes are reported by git log -p -w --ignore-blank-lines --patience Change-Id: Ic4070571d322776b638a15a40af85cd31fdae7ce Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9038 Tested-by: jenkins
This commit is contained in:
@@ -1283,16 +1283,16 @@ static int linux_thread_packet(struct connection *connection, char const *packet
|
|||||||
|
|
||||||
switch (packet[0]) {
|
switch (packet[0]) {
|
||||||
case 'T': /* Is thread alive?*/
|
case 'T': /* Is thread alive?*/
|
||||||
|
|
||||||
linux_gdb_t_packet(connection, target, packet, packet_size);
|
linux_gdb_t_packet(connection, target, packet, packet_size);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'H': /* Set current thread */
|
case 'H': /* Set current thread */
|
||||||
/* ( 'c' for step and continue, 'g' for all other operations )*/
|
/* ( 'c' for step and continue, 'g' for all other operations )*/
|
||||||
/*LOG_INFO(" H packet received '%s'", packet);*/
|
/*LOG_INFO(" H packet received '%s'", packet);*/
|
||||||
linux_gdb_h_packet(connection, target, packet, packet_size);
|
linux_gdb_h_packet(connection, target, packet, packet_size);
|
||||||
break;
|
break;
|
||||||
case 'q':
|
|
||||||
|
|
||||||
|
case 'q':
|
||||||
if (!strncmp(packet, "qSymbol", 7)) {
|
if (!strncmp(packet, "qSymbol", 7)) {
|
||||||
if (rtos_qsymbol(connection, packet, packet_size) == 1) {
|
if (rtos_qsymbol(connection, packet, packet_size) == 1) {
|
||||||
linux_compute_virt2phys(target,
|
linux_compute_virt2phys(target,
|
||||||
@@ -1325,6 +1325,7 @@ static int linux_thread_packet(struct connection *connection, char const *packet
|
|||||||
* gdb_put_packet(connection, "E01", 3); */
|
* gdb_put_packet(connection, "E01", 3); */
|
||||||
retval = GDB_THREAD_PACKET_NOT_CONSUMED;
|
retval = GDB_THREAD_PACKET_NOT_CONSUMED;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'c':
|
case 'c':
|
||||||
case 's':
|
case 's':
|
||||||
if (linux_os->threads_lookup == 1) {
|
if (linux_os->threads_lookup == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user