Advertisement
Guest User

Untitled

a guest
May 31st, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. Breakpoint 14, libgt2d::Start_Lib (this=0x99d374, path=0x99d4a4 "/dev/gt2d") at gt2d_init.cpp:8
  2. 8 {
  3. (gdb) n
  4. 9 path_str = path;
  5. (gdb) n
  6. 12 uv_fs_t *o_req = (uv_fs_t*) malloc(sizeof(uv_fs_t));
  7. (gdb) n
  8. 13 memset(o_req, 0x0, sizeof(uv_fs_t));
  9. (gdb) p o_req
  10. $98 = (uv_fs_t *) 0x99d4d8
  11. (gdb) n
  12. 14 o_req->data = (void*)this;
  13. (gdb) n
  14. 17 int error = uv_fs_open(uv_loop, o_req, path_str.c_str(), O_RDWR, 0644, On_Start);
  15. (gdb) n
  16. 18 if (error)
  17. (gdb) p error
  18. $99 = 0
  19. (gdb) c
  20. Continuing.
  21.  
  22. Breakpoint 12, libgt2d::On_Start (file=0x99d4d8) at gt2d_init.cpp:25
  23. 25 {
  24. (gdb) n
  25. 26 std::cout << "On start" << std::endl;
  26. (gdb) n
  27. 27 libgt2d *lib = static_cast<libgt2d*>(file->data);
  28. (gdb) n
  29. 28 uv_fs_req_cleanup(file);
  30. (gdb) n
  31. 30 if (file->result < 0)
  32. (gdb) n
  33. 36 lib->gt2d_fd = file->result;
  34. (gdb) n
  35. 37 std::cout << "FD: " << lib->gt2d_fd << std::endl;
  36. (gdb) n
  37. 39 free(file);
  38. (gdb) p file
  39. $100 = (uv_fs_t *) 0x99d4d8
  40. (gdb) p *file
  41. $101 = {data = 0x99d374, type = UV_FS, active_queue = {prev = 0x96ecc8 <default_loop_struct+24>, next = 0x96ecc8 <default_loop_struct+24>},
  42. fs_type = UV_FS_OPEN, loop = 0x96ecb0 <default_loop_struct>, cb = 0x402e4154 <libgt2d::On_Start(uv_fs_s*)>, result = 11, ptr = 0x0,
  43. path = 0x0, errorno = UV_OK, statbuf = {st_dev = 0, __pad1 = 0, st_ino = 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0,
  44. __pad2 = 0, st_size = 0, st_blksize = 0, st_blocks = 0, st_atim = {tv_sec = 0, tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0},
  45. st_ctim = {tv_sec = 0, tv_nsec = 0}, __glibc_reserved4 = 0, __glibc_reserved5 = 0}, new_path = 0x0, file = 0, flags = 0, mode = 0,
  46. buf = 0x0, len = 0, off = 2, uid = 420, gid = 0, atime = 0, mtime = 0, work_req = {work = 0x0, done = 0x0, loop = 0x0, wq = {prev = 0x0,
  47. next = 0x0}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement