projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unlink support to moxie simulator
[deliverable/binutils-gdb.git]
/
gdb
/
probe.c
diff --git
a/gdb/probe.c
b/gdb/probe.c
index 7bc75d8e879bd8cd0932827716cec46c1d13f6d1..8b108d6b02dce8e8dc87a7a01244199b740e93e6 100644
(file)
--- a/
gdb/probe.c
+++ b/
gdb/probe.c
@@
-36,7
+36,7
@@
#include "location.h"
#include <ctype.h>
#include <algorithm>
#include "location.h"
#include <ctype.h>
#include <algorithm>
-#include "
common
/gdb_optional.h"
+#include "
gdbsupport
/gdb_optional.h"
/* Class that implements the static probe methods for "any" probe. */
/* Class that implements the static probe methods for "any" probe. */
@@
-695,7
+695,7
@@
probe_safe_evaluate_at_pc (struct frame_info *frame, unsigned n)
if (!probe.prob)
return NULL;
if (!probe.prob)
return NULL;
- n_args = probe.prob->get_argument_count (
frame
);
+ n_args = probe.prob->get_argument_count (
get_frame_arch (frame)
);
if (n >= n_args)
return NULL;
if (n >= n_args)
return NULL;
@@
-818,7
+818,7
@@
compute_probe_arg (struct gdbarch *arch, struct internalvar *ivar,
if (pc_probe.prob == NULL)
error (_("No probe at PC %s"), core_addr_to_string (pc));
if (pc_probe.prob == NULL)
error (_("No probe at PC %s"), core_addr_to_string (pc));
- n_args = pc_probe.prob->get_argument_count (
frame
);
+ n_args = pc_probe.prob->get_argument_count (
arch
);
if (sel == -1)
return value_from_longest (builtin_type (arch)->builtin_int, n_args);
if (sel == -1)
return value_from_longest (builtin_type (arch)->builtin_int, n_args);
@@
-840,7
+840,6
@@
compile_probe_arg (struct internalvar *ivar, struct agent_expr *expr,
int sel = (int) (uintptr_t) data;
struct bound_probe pc_probe;
int n_args;
int sel = (int) (uintptr_t) data;
struct bound_probe pc_probe;
int n_args;
- struct frame_info *frame = get_selected_frame (NULL);
/* SEL == -1 means "_probe_argc". */
gdb_assert (sel >= -1);
/* SEL == -1 means "_probe_argc". */
gdb_assert (sel >= -1);
@@
-849,7
+848,7
@@
compile_probe_arg (struct internalvar *ivar, struct agent_expr *expr,
if (pc_probe.prob == NULL)
error (_("No probe at PC %s"), core_addr_to_string (pc));
if (pc_probe.prob == NULL)
error (_("No probe at PC %s"), core_addr_to_string (pc));
- n_args = pc_probe.prob->get_argument_count (
frame
);
+ n_args = pc_probe.prob->get_argument_count (
expr->gdbarch
);
if (sel == -1)
{
if (sel == -1)
{
This page took
0.024812 seconds
and
4
git commands to generate.