* elf32-xtensa.c (ebb_propose_action): Fix argument order.
[deliverable/binutils-gdb.git] / gdb / tracepoint.c
index aceeed4503863c7dac8c407bac586f1f1f1c2b3d..5eceba783bca213305c7733284a1a089360c41fa 100644 (file)
@@ -1,7 +1,7 @@
 /* Tracing functionality for remote targets in custom GDB protocol
 
-   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software
-   Foundation, Inc.
+   Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -292,7 +292,7 @@ set_traceframe_context (CORE_ADDR trace_pc)
       func_string = create_array_type (func_string,
                                       builtin_type_char, func_range);
       func_val = allocate_value (func_string);
-      VALUE_TYPE (func_val) = func_string;
+      func_val->type = func_string;
       memcpy (VALUE_CONTENTS_RAW (func_val),
              DEPRECATED_SYMBOL_NAME (traceframe_fun),
              len);
@@ -313,7 +313,7 @@ set_traceframe_context (CORE_ADDR trace_pc)
       file_string = create_array_type (file_string,
                                       builtin_type_char, file_range);
       file_val = allocate_value (file_string);
-      VALUE_TYPE (file_val) = file_string;
+      file_val->type = file_string;
       memcpy (VALUE_CONTENTS_RAW (file_val),
              traceframe_sal.symtab->filename,
              len);
@@ -494,11 +494,10 @@ tracepoints_info (char *tpnum_exp, int from_tty)
          char *tmp;
 
          if (TARGET_ADDR_BIT <= 32)
-           tmp = local_hex_string_custom (t->address
-                                          & (CORE_ADDR) 0xffffffff, 
-                                          "08l");
+           tmp = hex_string_custom (t->address & (CORE_ADDR) 0xffffffff, 
+                                    8);
          else
-           tmp = local_hex_string_custom (t->address, "016l");
+           tmp = hex_string_custom (t->address, 16);
 
          printf_filtered ("%s ", tmp);
        }
@@ -826,12 +825,7 @@ read_actions (struct tracepoint *t)
      isn't declared.  Leave this alone for now.  */
 #ifdef STOP_SIGNAL
   if (job_control)
-    {
-      if (event_loop_p)
-       signal (STOP_SIGNAL, handle_stop_sig);
-      else
-       signal (STOP_SIGNAL, stop_sig);
-    }
+    signal (STOP_SIGNAL, handle_stop_sig);
 #endif
   old_chain = make_cleanup_free_actions (t);
   while (1)
@@ -1219,7 +1213,7 @@ collect_symbol (struct collection_list *collect, struct symbol *sym,
       /* check for doubles stored in two registers */
       /* FIXME: how about larger types stored in 3 or more regs? */
       if (TYPE_CODE (SYMBOL_TYPE (sym)) == TYPE_CODE_FLT &&
-         len > DEPRECATED_REGISTER_RAW_SIZE (reg))
+         len > register_size (current_gdbarch, reg))
        add_register (collect, reg + 1);
       break;
     case LOC_REF_ARG:
@@ -1572,7 +1566,7 @@ encode_actions (struct tracepoint *t, char ***tdp_actions,
                    case UNOP_MEMVAL:
                      /* safe because we know it's a simple expression */
                      tempval = evaluate_expression (exp);
-                     addr = VALUE_ADDRESS (tempval) + VALUE_OFFSET (tempval);
+                     addr = VALUE_ADDRESS (tempval) + value_offset (tempval);
                      len = TYPE_LENGTH (check_typedef (exp->elts[1].type));
                      add_memrange (collect, -1, addr, len);
                      break;
@@ -1693,7 +1687,7 @@ remote_set_transparent_ranges (void)
 
       anysecs = 1;
       lma = s->lma;
-      size = bfd_get_section_size_before_reloc (s);
+      size = bfd_get_section_size (s);
       sprintf_vma (tmp1, lma);
       sprintf_vma (tmp2, lma + size);
       sprintf (target_buf + strlen (target_buf), 
@@ -1955,7 +1949,7 @@ finish_tfind_command (char *msg,
       else
        print_what = SRC_AND_LOC;
 
-      print_stack_frame (get_selected_frame (), 1, print_what);
+      print_stack_frame (get_selected_frame (NULL), 1, print_what);
       do_displays ();
     }
 }
This page took 0.024452 seconds and 4 git commands to generate.