aboutsummaryrefslogtreecommitdiff
path: root/gdb/ravenscar-thread.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-02-05 04:08:48 -0700
committerTom Tromey <tromey@adacore.com>2019-02-15 13:53:42 -0700
commit6cbcc006e95110b5d9168e9835e5df36782e975b (patch)
treeb4ab2ce0eb05c99dd687aed7f230d200f3770426 /gdb/ravenscar-thread.c
parent7657f14df7c697792b626efbd24ac44ad5642485 (diff)
downloadgdb-6cbcc006e95110b5d9168e9835e5df36782e975b.zip
gdb-6cbcc006e95110b5d9168e9835e5df36782e975b.tar.gz
gdb-6cbcc006e95110b5d9168e9835e5df36782e975b.tar.bz2
Fix formatting in ravenscar-thread.c
This fixes some incorrect formatting in ravenscar-thread.c. gdb/ChangeLog 2019-02-15 Tom Tromey <tromey@adacore.com> * ravenscar-thread.c (ravenscar_runtime_initializer) (has_ravenscar_runtime, get_running_thread_id) (ravenscar_thread_target::resume): Fix indentation.
Diffstat (limited to 'gdb/ravenscar-thread.c')
-rw-r--r--gdb/ravenscar-thread.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/gdb/ravenscar-thread.c b/gdb/ravenscar-thread.c
index 95c4046..0e0b6f2 100644
--- a/gdb/ravenscar-thread.c
+++ b/gdb/ravenscar-thread.c
@@ -70,8 +70,8 @@ static const char running_thread_name[] = "__gnat_running_thread_table";
static const char known_tasks_name[] = "system__tasking__debug__known_tasks";
static const char first_task_name[] = "system__tasking__debug__first_task";
-static const char ravenscar_runtime_initializer[] =
- "system__bb__threads__initialize";
+static const char ravenscar_runtime_initializer[]
+ = "system__bb__threads__initialize";
static const target_info ravenscar_target_info = {
"ravenscar",
@@ -263,12 +263,12 @@ get_running_thread_msymbol (void)
static int
has_ravenscar_runtime (void)
{
- struct bound_minimal_symbol msym_ravenscar_runtime_initializer =
- lookup_minimal_symbol (ravenscar_runtime_initializer, NULL, NULL);
- struct bound_minimal_symbol msym_known_tasks =
- lookup_minimal_symbol (known_tasks_name, NULL, NULL);
- struct bound_minimal_symbol msym_first_task =
- lookup_minimal_symbol (first_task_name, NULL, NULL);
+ struct bound_minimal_symbol msym_ravenscar_runtime_initializer
+ = lookup_minimal_symbol (ravenscar_runtime_initializer, NULL, NULL);
+ struct bound_minimal_symbol msym_known_tasks
+ = lookup_minimal_symbol (known_tasks_name, NULL, NULL);
+ struct bound_minimal_symbol msym_first_task
+ = lookup_minimal_symbol (first_task_name, NULL, NULL);
struct bound_minimal_symbol msym_running_thread
= get_running_thread_msymbol ();
@@ -297,8 +297,8 @@ get_running_thread_id (int cpu)
int buf_size;
gdb_byte *buf;
CORE_ADDR object_addr;
- struct type *builtin_type_void_data_ptr =
- builtin_type (target_gdbarch ())->builtin_data_ptr;
+ struct type *builtin_type_void_data_ptr
+ = builtin_type (target_gdbarch ())->builtin_data_ptr;
if (!object_msym.minsym)
return 0;
@@ -313,7 +313,8 @@ get_running_thread_id (int cpu)
}
void
-ravenscar_thread_target::resume (ptid_t ptid, int step, enum gdb_signal siggnal)
+ravenscar_thread_target::resume (ptid_t ptid, int step,
+ enum gdb_signal siggnal)
{
inferior_ptid = base_ptid;
beneath ()->resume (base_ptid, step, siggnal);