Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: gdb/skip.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/sh64-tdep.c ('k') | gdb/sol-thread.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/skip.c
diff --git a/gdb/skip.c b/gdb/skip.c
index 637f4e0c509ddfc249ea1e99fa932b12a5cddd77..8e1965266a5346e05a1c448955a6ef5ebc38668d 100644
--- a/gdb/skip.c
+++ b/gdb/skip.c
@@ -67,7 +67,7 @@ static void skip_file_command (char *arg, int from_tty);
static void skip_info (char *arg, int from_tty);
static void add_skiplist_entry (struct skiplist_entry *e);
-static void skip_function_pc (CORE_ADDR pc, char *name,
+static void skip_function_pc (CORE_ADDR pc, const char *name,
struct gdbarch *arch,
int pending);
@@ -133,7 +133,7 @@ static void
skip_function_command (char *arg, int from_tty)
{
CORE_ADDR func_pc;
- char *name = NULL;
+ const char *name = NULL;
/* Default to the current function if no argument is given. */
if (arg == 0)
@@ -155,9 +155,6 @@ skip_function_command (char *arg, int from_tty)
/* Decode arg. We set funfirstline=1 so decode_line_1 will give us the
first line of the function specified, if it can, and so that we'll
reject variable names and the like. */
-
- int i;
- int pending = 0;
char *orig_arg = arg; /* decode_line_1 modifies the arg pointer. */
volatile struct gdb_exception decode_exception;
struct symtabs_and_lines sals = { 0 };
@@ -397,7 +394,7 @@ skip_delete_command (char *arg, int from_tty)
function name and add it to the list. */
static void
-skip_function_pc (CORE_ADDR pc, char *name, struct gdbarch *arch,
+skip_function_pc (CORE_ADDR pc, const char *name, struct gdbarch *arch,
int pending)
{
struct skiplist_entry *e = XZALLOC (struct skiplist_entry);
@@ -524,7 +521,7 @@ skip_re_set (void)
CORE_ADDR pc = sal.pc;
CORE_ADDR func_start = 0;
struct gdbarch *arch = get_sal_arch (sal);
- char *func_name;
+ const char *func_name;
if (find_pc_partial_function (pc, &func_name, &func_start, 0))
{
@@ -542,6 +539,9 @@ skip_re_set (void)
}
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern initialize_file_ftype _initialize_step_skip;
+
void
_initialize_step_skip (void)
{
« no previous file with comments | « gdb/sh64-tdep.c ('k') | gdb/sol-thread.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698