1
0

patch-gdb_i386-linux-nat_c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --- gdb-7.6.orig/gdb/i386-linux-nat.c 2013-03-11 09:25:57.000000000 +0100
  2. +++ gdb-7.6/gdb/i386-linux-nat.c 2013-09-04 13:28:35.000000000 +0200
  3. @@ -25,8 +25,6 @@
  4. #include "regset.h"
  5. #include "target.h"
  6. #include "linux-nat.h"
  7. -#include "linux-btrace.h"
  8. -#include "btrace.h"
  9. #include "gdb_assert.h"
  10. #include "gdb_string.h"
  11. @@ -1048,47 +1046,6 @@ i386_linux_read_description (struct targ
  12. return tdesc_i386_linux;
  13. }
  14. -/* Enable branch tracing. */
  15. -
  16. -static struct btrace_target_info *
  17. -i386_linux_enable_btrace (ptid_t ptid)
  18. -{
  19. - struct btrace_target_info *tinfo;
  20. - struct gdbarch *gdbarch;
  21. -
  22. - errno = 0;
  23. - tinfo = linux_enable_btrace (ptid);
  24. -
  25. - if (tinfo == NULL)
  26. - error (_("Could not enable branch tracing for %s: %s."),
  27. - target_pid_to_str (ptid), safe_strerror (errno));
  28. -
  29. - /* Fill in the size of a pointer in bits. */
  30. - gdbarch = target_thread_architecture (ptid);
  31. - tinfo->ptr_bits = gdbarch_ptr_bit (gdbarch);
  32. -
  33. - return tinfo;
  34. -}
  35. -
  36. -/* Disable branch tracing. */
  37. -
  38. -static void
  39. -i386_linux_disable_btrace (struct btrace_target_info *tinfo)
  40. -{
  41. - int errcode = linux_disable_btrace (tinfo);
  42. -
  43. - if (errcode != 0)
  44. - error (_("Could not disable branch tracing: %s."), safe_strerror (errcode));
  45. -}
  46. -
  47. -/* Teardown branch tracing. */
  48. -
  49. -static void
  50. -i386_linux_teardown_btrace (struct btrace_target_info *tinfo)
  51. -{
  52. - /* Ignore errors. */
  53. - linux_disable_btrace (tinfo);
  54. -}
  55. /* -Wmissing-prototypes */
  56. extern initialize_file_ftype _initialize_i386_linux_nat;
  57. @@ -1123,13 +1080,6 @@ _initialize_i386_linux_nat (void)
  58. t->to_read_description = i386_linux_read_description;
  59. - /* Add btrace methods. */
  60. - t->to_supports_btrace = linux_supports_btrace;
  61. - t->to_enable_btrace = i386_linux_enable_btrace;
  62. - t->to_disable_btrace = i386_linux_disable_btrace;
  63. - t->to_teardown_btrace = i386_linux_teardown_btrace;
  64. - t->to_read_btrace = linux_read_btrace;
  65. -
  66. /* Register the target. */
  67. linux_nat_add_target (t);
  68. linux_nat_set_new_thread (t, i386_linux_new_thread);