aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-05-31 17:09:07 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-05-31 17:09:07 +0200
commitae3b3f34ed96f121af37018b8ff3a78810881ad8 (patch)
treeba1624dc0e715e755ab6c98cf876affc32436351 /gdb
parentab12fca3906c9c76ec25a9de52f5142f5736413f (diff)
downloadgdb-ae3b3f34ed96f121af37018b8ff3a78810881ad8.zip
gdb-ae3b3f34ed96f121af37018b8ff3a78810881ad8.tar.gz
gdb-ae3b3f34ed96f121af37018b8ff3a78810881ad8.tar.bz2
Rename "mem" related commmands
Rename "mem" related commands, so that their naming is consistent with the <command-name>_command pattern of naming functions that implement commands. gdb/ChangeLog: * memattr.c (mem_info_command): Rename to ... (info_mem_command): ... this. (mem_enable_command): Rename to ... (enable_mem_command): ... this. (mem_disable_command): Rename to ... (disable_mem_command): ... this. (mem_delete_command): Rename to ... (delete_mem_command): ... this. (_initialize_mem): Adjust function names.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog12
-rw-r--r--gdb/memattr.c16
2 files changed, 20 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 158670d..263d57f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
+
+ * memattr.c (mem_info_command): Rename to ...
+ (info_mem_command): ... this.
+ (mem_enable_command): Rename to ...
+ (enable_mem_command): ... this.
+ (mem_disable_command): Rename to ...
+ (disable_mem_command): ... this.
+ (mem_delete_command): Rename to ...
+ (delete_mem_command): ... this.
+ (_initialize_mem): Adjust function names.
+
2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
* btrace.c (handle_pt_insn_events): New.
diff --git a/gdb/memattr.c b/gdb/memattr.c
index 2493537..8604e53 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -409,7 +409,7 @@ mem_command (char *args, int from_tty)
static void
-mem_info_command (char *args, int from_tty)
+info_mem_command (char *args, int from_tty)
{
struct mem_region *m;
struct mem_attrib *attrib;
@@ -561,7 +561,7 @@ mem_enable (int num)
}
static void
-mem_enable_command (char *args, int from_tty)
+enable_mem_command (char *args, int from_tty)
{
int num;
struct mem_region *m;
@@ -606,7 +606,7 @@ mem_disable (int num)
}
static void
-mem_disable_command (char *args, int from_tty)
+disable_mem_command (char *args, int from_tty)
{
require_user_regions (from_tty);
@@ -659,7 +659,7 @@ mem_delete (int num)
}
static void
-mem_delete_command (char *args, int from_tty)
+delete_mem_command (char *args, int from_tty)
{
require_user_regions (from_tty);
@@ -705,25 +705,25 @@ where <mode> may be rw (read/write), ro (read-only) or wo (write-only),\n\
<width> may be 8, 16, 32, or 64, and\n\
<cache> may be cache or nocache"));
- add_cmd ("mem", class_vars, mem_enable_command, _("\
+ add_cmd ("mem", class_vars, enable_mem_command, _("\
Enable memory region.\n\
Arguments are the code numbers of the memory regions to enable.\n\
Usage: enable mem <code number>...\n\
Do \"info mem\" to see current list of code numbers."), &enablelist);
- add_cmd ("mem", class_vars, mem_disable_command, _("\
+ add_cmd ("mem", class_vars, disable_mem_command, _("\
Disable memory region.\n\
Arguments are the code numbers of the memory regions to disable.\n\
Usage: disable mem <code number>...\n\
Do \"info mem\" to see current list of code numbers."), &disablelist);
- add_cmd ("mem", class_vars, mem_delete_command, _("\
+ add_cmd ("mem", class_vars, delete_mem_command, _("\
Delete memory region.\n\
Arguments are the code numbers of the memory regions to delete.\n\
Usage: delete mem <code number>...\n\
Do \"info mem\" to see current list of code numbers."), &deletelist);
- add_info ("mem", mem_info_command,
+ add_info ("mem", info_mem_command,
_("Memory region attributes"));
add_prefix_cmd ("mem", class_vars, dummy_cmd, _("\