aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-10-20 23:54:29 +0000
committerAndrew Cagney <cagney@redhat.com>2001-10-20 23:54:29 +0000
commit278cd55f785496ae4c4ab971958d752af18d2b11 (patch)
treeab9213988289defe93ab07608481ae38cace7332 /gdb/breakpoint.c
parent6a7805b5c05938868d60139bc38b487272ac51bd (diff)
downloadgdb-278cd55f785496ae4c4ab971958d752af18d2b11.zip
gdb-278cd55f785496ae4c4ab971958d752af18d2b11.tar.gz
gdb-278cd55f785496ae4c4ab971958d752af18d2b11.tar.bz2
* breakpoint.h, breakpoint.c: Ditto.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 6593b37..310d2d6 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -377,7 +377,7 @@ get_number_trailer (char **pp, int trailer)
to pass to lookup_internalvar(). */
char *varname;
char *start = ++p;
- value_ptr val;
+ struct value *val;
while (isalnum (*p) || *p == '_')
p++;
@@ -866,8 +866,8 @@ insert_breakpoints (void)
{
struct frame_info *saved_frame;
int saved_level, within_current_scope;
- value_ptr mark = value_mark ();
- value_ptr v;
+ struct value *mark = value_mark ();
+ struct value *v;
/* Save the current frame and level so we can restore it after
evaluating the watchpoint expression on its own frame. */
@@ -1306,7 +1306,8 @@ remove_breakpoint (struct breakpoint *b, insertion_state_t is)
&& b->enable_state == bp_enabled
&& !b->duplicate)
{
- value_ptr v, n;
+ struct value *v;
+ struct value *n;
b->inserted = (is == mark_inserted);
/* Walk down the saved value chain. */
@@ -2250,7 +2251,7 @@ bpstat_print (bpstat bs)
static int
breakpoint_cond_eval (PTR exp)
{
- value_ptr mark = value_mark ();
+ struct value *mark = value_mark ();
int i = !value_true (evaluate_expression ((struct expression *) exp));
value_free_to_mark (mark);
return i;
@@ -2321,8 +2322,8 @@ watchpoint_check (PTR p)
call free_all_values. We can't call free_all_values because
we might be in the middle of evaluating a function call. */
- value_ptr mark = value_mark ();
- value_ptr new_val = evaluate_expression (bs->breakpoint_at->exp);
+ struct value *mark = value_mark ();
+ struct value *new_val = evaluate_expression (bs->breakpoint_at->exp);
if (!value_equal (b->val, new_val))
{
release_value (new_val);
@@ -2543,7 +2544,7 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_breakpoint)
b->type == bp_access_watchpoint)
{
CORE_ADDR addr;
- value_ptr v;
+ struct value *v;
int found = 0;
addr = target_stopped_data_address ();