Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Breakpoint 14, libgt2d::Start_Lib (this=0x99d374, path=0x99d4a4 "/dev/gt2d") at gt2d_init.cpp:8
- 8 {
- (gdb) n
- 9 path_str = path;
- (gdb) n
- 12 uv_fs_t *o_req = (uv_fs_t*) malloc(sizeof(uv_fs_t));
- (gdb) n
- 13 memset(o_req, 0x0, sizeof(uv_fs_t));
- (gdb) p o_req
- $98 = (uv_fs_t *) 0x99d4d8
- (gdb) n
- 14 o_req->data = (void*)this;
- (gdb) n
- 17 int error = uv_fs_open(uv_loop, o_req, path_str.c_str(), O_RDWR, 0644, On_Start);
- (gdb) n
- 18 if (error)
- (gdb) p error
- $99 = 0
- (gdb) c
- Continuing.
- Breakpoint 12, libgt2d::On_Start (file=0x99d4d8) at gt2d_init.cpp:25
- 25 {
- (gdb) n
- 26 std::cout << "On start" << std::endl;
- (gdb) n
- 27 libgt2d *lib = static_cast<libgt2d*>(file->data);
- (gdb) n
- 28 uv_fs_req_cleanup(file);
- (gdb) n
- 30 if (file->result < 0)
- (gdb) n
- 36 lib->gt2d_fd = file->result;
- (gdb) n
- 37 std::cout << "FD: " << lib->gt2d_fd << std::endl;
- (gdb) n
- 39 free(file);
- (gdb) p file
- $100 = (uv_fs_t *) 0x99d4d8
- (gdb) p *file
- $101 = {data = 0x99d374, type = UV_FS, active_queue = {prev = 0x96ecc8 <default_loop_struct+24>, next = 0x96ecc8 <default_loop_struct+24>},
- fs_type = UV_FS_OPEN, loop = 0x96ecb0 <default_loop_struct>, cb = 0x402e4154 <libgt2d::On_Start(uv_fs_s*)>, result = 11, ptr = 0x0,
- 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,
- __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},
- st_ctim = {tv_sec = 0, tv_nsec = 0}, __glibc_reserved4 = 0, __glibc_reserved5 = 0}, new_path = 0x0, file = 0, flags = 0, mode = 0,
- 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,
- next = 0x0}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement