Changeset 7f95cc0 in rtems for cpukit/libdebugger


Ignore:
Timestamp:
Apr 19, 2017, 4:33:29 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
bedd927
Parents:
3d803af
Message:

libdebugger: Fix the mode on task create. Clean up warnings.

Closes #2976.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdebugger/rtems-debugger-server.c

    r3d803af r7f95cc0  
    246246                          priority,
    247247                          stack_size,
    248                           RTEMS_FLOATING_POINT | RTEMS_LOCAL,
    249248                          RTEMS_PREEMPT | RTEMS_NO_ASR,
     249                          RTEMS_LOCAL | RTEMS_FLOATING_POINT,
    250250                          id);
    251251  if (sc != RTEMS_SUCCESSFUL) {
     
    278278  while (timeout) {
    279279    bool has_finished;
     280
    280281    rtems_debugger_lock();
    281282    has_finished = *finished;
     
    385386{
    386387  rtems_debugger_remote* remote = rtems_debugger_remote_handle();
    387   if (remote == NULL) {
    388     errno = EIO;
    389     return -1;
    390   }
    391   if (!remote->isconnected(remote))
    392     return remote->connect(remote);
     388  if (remote != NULL) {
     389    if (!remote->isconnected(remote))
     390      return remote->connect(remote);
     391  }
     392  errno = EIO;
     393  return -1;
    393394}
    394395
     
    397398{
    398399  rtems_debugger_remote* remote = rtems_debugger_remote_handle();
    399   if (remote == NULL) {
    400     errno = EIO;
    401     return -1;
    402   }
    403   if (remote->isconnected(remote))
    404     return remote->disconnect(remote);
     400  if (remote != NULL) {
     401    if (remote->isconnected(remote))
     402      return remote->disconnect(remote);
     403  }
     404  errno = EIO;
     405  return -1;
    405406}
    406407
     
    18851886    r = rr;
    18861887
    1887   rr = rtems_debugger_task_destroy("DBSr",
     1888  rr = rtems_debugger_task_destroy("DBSs",
    18881889                                   rtems_debugger->server_task,
    18891890                                   &rtems_debugger->server_finished,
     
    19061907{
    19071908  int r;
     1909
     1910
     1911  rtems_debugger_lock();
     1912  rtems_debugger->server_running = true;
     1913  rtems_debugger->server_finished = false;
     1914  rtems_debugger_unlock();
    19081915
    19091916  rtems_debugger_printf("rtems-db: remote running\n");
     
    19411948
    19421949  rtems_debugger_lock();
    1943   rtems_debugger->server_running = true;
    1944   rtems_debugger->server_finished = false;
     1950  rtems_debugger->server_running = false;
     1951  rtems_debugger->server_finished = true;
    19451952  rtems_debugger_unlock();
    19461953
Note: See TracChangeset for help on using the changeset viewer.