Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (gdb) break mime.cpp:529
- Breakpoint 1 at 0x4005b504: file mime.cpp, line 530.
- (gdb) c
- Continuing.
- Thread 1 "lipstick" hit Breakpoint 1, ContentAction::mimeForUrl (uri=...) at mime.cpp:530
- 530 domain = domain.mid(n);
- (gdb) printqs5static uri
- (Qt5 QString)0xbec31b20 length=31: "https://t.me/sailfishos_porters"
- (gdb) printqs5static domain
- (Qt5 QString)0xbec31a9c length=23: "t.me/sailfishos_porters"
- (gdb) list
- 525
- 526 if (uri.startsWith("http:") || uri.startsWith("https:")) {
- 527 int n = uri.indexOf(':');
- 528 QString domain = uri.mid(n + 3);
- 529 n = domain.indexOf('/');
- 530 domain = domain.mid(n);
- 531 mime = QString("x-url-handler/") + domain;
- 532 }
- 533 return mime;
- 534 }
- (gdb) print n
- $1 = 4
- (gdb) next
- 531 mime = QString("x-url-handler/") + domain;
- (gdb) printqs5static domain
- (Qt5 QString)0xbec31a9c length=19: "/sailfishos_porters"
- (gdb) q
- A debugging session is active.
- Inferior 1 [process 18865] will be detached.
- Quit anyway? (y or n) y
- Detaching from program: /usr/bin/lipstick, process 18865
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement