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

Unified Diff: gdb/ax-general.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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/ax-gdb.c ('k') | gdb/bcache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/ax-general.c
diff --git a/gdb/ax-general.c b/gdb/ax-general.c
index 6ea6f145566384903815381a5133cfd3c4a2c6aa..4489c20791903cd7af2605d6a8621e9acaa26050 100644
--- a/gdb/ax-general.c
+++ b/gdb/ax-general.c
@@ -1,5 +1,5 @@
/* Functions for manipulating expressions designed to be executed on the agent
- Copyright (C) 1998-2000, 2007-2012 Free Software Foundation, Inc.
+ Copyright (C) 1998-2013 Free Software Foundation, Inc.
This file is part of GDB.
@@ -25,7 +25,7 @@
#include "ax.h"
#include "value.h"
-#include "gdb_string.h"
+#include <string.h>
#include "user-regs.h"
@@ -58,6 +58,9 @@ new_agent_expr (struct gdbarch *gdbarch, CORE_ADDR scope)
x->reg_mask = xmalloc (x->reg_mask_len * sizeof (x->reg_mask[0]));
memset (x->reg_mask, 0, x->reg_mask_len * sizeof (x->reg_mask[0]));
+ x->tracing = 0;
+ x->trace_string = 0;
+
return x;
}
@@ -337,7 +340,7 @@ ax_tsv (struct agent_expr *x, enum agent_op op, int num)
is counted in the length.) */
void
-ax_string (struct agent_expr *x, char *str, int slen)
+ax_string (struct agent_expr *x, const char *str, int slen)
{
int i;
@@ -375,7 +378,6 @@ void
ax_print (struct ui_file *f, struct agent_expr *x)
{
int i;
- int is_float = 0;
fprintf_filtered (f, _("Scope: %s\n"), paddress (x->gdbarch, x->scope));
fprintf_filtered (f, _("Reg mask:"));
@@ -430,8 +432,6 @@ ax_print (struct ui_file *f, struct agent_expr *x)
}
fprintf_filtered (f, "\n");
i += 1 + aop_map[op].op_size;
-
- is_float = (op == aop_float);
}
}
« no previous file with comments | « gdb/ax-gdb.c ('k') | gdb/bcache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698