diff options
author | Peter Griffin <peter.griffin@linaro.org> | 2016-12-22 10:46:56 +0000 |
---|---|---|
committer | Peter Griffin <peter.griffin@linaro.org> | 2016-12-22 10:47:33 +0000 |
commit | da8c22023cf6cb54cc20735c282e2f809382fa04 (patch) | |
tree | bd5f4f3e9d10dd9bc57115bbc730a59b27b97184 | |
parent | d085925b0286c80987cdb558941823d75aa42929 (diff) |
arm-linux-kthread: more style updateslinux-kthread-rewrite
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
-rw-r--r-- | gdb/arm-linux-kthread.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/arm-linux-kthread.c b/gdb/arm-linux-kthread.c index 7d47d560b9..a4352ac45a 100644 --- a/gdb/arm-linux-kthread.c +++ b/gdb/arm-linux-kthread.c @@ -112,7 +112,7 @@ arm_linuxkthread_store_registers (const struct regcache *regcache, } -/* get_unmapped_area() in linux/mm/mmap.c */ +/* get_unmapped_area() in linux/mm/mmap.c. */ DECLARE_ADDR (get_unmapped_area); #define DEFAULT_PAGE_OFFSET 0xC0000000 @@ -121,13 +121,15 @@ void arm_linuxkthread_get_page_offset(CORE_ADDR *page_offset) { const char *result = NULL; - /* we can try executing a python command if it exists in the kernel source - result = execute_command_to_string ("lx-pageoffset", 0); */ + /* We can try executing a python command if it exists in the kernel + source, and parsing the result. + result = execute_command_to_string ("lx-pageoffset", 0); */ - /* find CONFIG_PAGE_OFFSET macro definition at get_unmapped_area symbol - in linux/mm/mmap.c */ + /* Find CONFIG_PAGE_OFFSET macro definition at get_unmapped_area symbol + in linux/mm/mmap.c. */ - result = kthread_find_macro_at_symbol(&get_unmapped_area, "CONFIG_PAGE_OFFSET"); + result = kthread_find_macro_at_symbol(&get_unmapped_area, + "CONFIG_PAGE_OFFSET"); if (result) { *page_offset = strtol(result, (char **) NULL, 16); |