flat assembler
Message board for the users of flat assembler.
Index
> IDE Development > Fresh work version with "Source level debuger" :D Goto page Previous 1, 2, 3 Next |
Author |
|
Tommy 27 Jan 2004, 17:29
Oh.. That's why...? I'll check it and try to find a solution...
|
|||
27 Jan 2004, 17:29 |
|
comrade 27 Jan 2004, 22:41
Does it at least give you image base of loaded DLL on NT?
|
|||
27 Jan 2004, 22:41 |
|
JohnFound 27 Jan 2004, 22:56
comrade wrote: Does it at least give you image base of loaded DLL on NT? Yes, the problem is only the filename. |
|||
27 Jan 2004, 22:56 |
|
JohnFound 27 Jan 2004, 23:06
BTW: New work version with all fixes for WinXP is uploaded in the Fresh site. Also FASM 1.51 beta 3 and Decard's documentation on Fresh macro library are added to the project.
Now Fresh (and debugger) should work on WinXP, but of course if you get some bugs, please report them here. Regards. |
|||
27 Jan 2004, 23:06 |
|
pelaillo 28 Jan 2004, 00:52
JohnFound wrote: Yes, the problem is only the filename. I could write a proc to get the filename from the image address... |
|||
28 Jan 2004, 00:52 |
|
comrade 28 Jan 2004, 22:52
Such procedure exist....
Code: mov eax,IMAGEBASE_OF_DLL add eax,[eax+IMAGE_DOS_HEADER.e_lfanew] mov eax,dword [eax+IMAGE_NT_HEADERS.OptionalHeader.DataDirectory] ; export table mov eax,[eax+edx+IMAGE_EXPORT_DIRECTORY.nName] add eax,edx stdcall [MessageBox],0,eax,OFFSET szAppTitle,MB_OK+MB_ICONASTERISK+MB_APPLMODAL
|
|||||||||||
28 Jan 2004, 22:52 |
|
JohnFound 28 Jan 2004, 23:02
Hi, comrade.
Your solution looks interesting. Actually I found another one that works too (well on Win98 ), but I will check your too. My solution is: Code: invoke GetModuleFileName, ImageBaseOfTheDll, ptrbuffer, bufflen but actually I didn't check it under Win2000 yet. Regards. |
|||
28 Jan 2004, 23:02 |
|
comrade 29 Jan 2004, 01:31
But can you do it for non-system DLL that is not in process space of Fresh.exe? For routine I paste, you can convert moves to calls to ReadProcessMemory().
|
|||
29 Jan 2004, 01:31 |
|
JohnFound 29 Jan 2004, 06:39
comrade wrote: But can you do it for non-system DLL that is not in process space of Fresh.exe? Probably not. You are right, about this. I have to use ReadProcessMemory and internal structures. I will try some variants. Thank you for the help. Regards |
|||
29 Jan 2004, 06:39 |
|
comrade 29 Jan 2004, 17:37
edx supposed to hold imagebase too, sorry, I did not paste completely.
|
|||
29 Jan 2004, 17:37 |
|
JohnFound 30 Jan 2004, 00:36
Hi all.
Next work version uploaded. (I know, it is a time for next official... ) Big rewrite of the debugger to make it to run faster. Several bugfixes. Implemented FASM 1.51 beta 3. If your tests are good, I think to continue with remaining debugger features - memory, stack, breakpoints etc. Regards. |
|||
30 Jan 2004, 00:36 |
|
decard 30 Jan 2004, 07:40
Hi John,
The debugger itself works just perfectly, at least on my machine But you didn't include new version of the help.asm - its here: http://board.flatassembler.net/download.php?id=508 Also, findreplace still need one change. It's only one line so I think it would be simpler if I tell you what to change rather than attaching the whole file. It's line 202 of findreplace.asm: Code: invoke InvalidateRect, [hSourceEditor],NULL,0 it should be: Code: invoke InvalidateRect, NULL,NULL,0 This line caused problem when searching all files in the project and some file was already open in the source editor. It's strange - it didn't update the screen with only hSourceEditor as a first parameter regards |
|||
30 Jan 2004, 07:40 |
|
JohnFound 30 Jan 2004, 08:56
Hi Decard.
Sorry for the delay. I was too tired yesterday. I will implement it probably this night. About InvalidateRect - isn't it too hard to force all windows to be redrawn? Maybe RedrawWindow with suitable parameters will be more gentle? BTW: We need some visual feedback during searching process in many files, because it may continue too long. Maybe some progress window? Ah, and another thing - when Find/Replace window is opened, the the option "Search in current file" should be set, not the last used option (IMHO). So, if you have time to make this, make it, but the freshguide is more important in this moment I think. Regards |
|||
30 Jan 2004, 08:56 |
|
Tommy 30 Jan 2004, 15:22
Good work John! Now, there's no delays during the debugging process... It's fast and good!
|
|||
30 Jan 2004, 15:22 |
|
JohnFound 30 Jan 2004, 16:21
Tommy wrote: Good work John! Thank you, Tommy. Btw, do you have some progress with AsmEdit? I mean, following features will be highly neccessary in the near future: 1. Mark for current executed line. 2. Mark for break points. 3. It will be good if we can make AsmEdit read-only for the time of debugging. Regards |
|||
30 Jan 2004, 16:21 |
|
Tommy 30 Jan 2004, 17:29
I've just implemented the read-only feature... Posting an update during the week-end with some more fixes...
|
|||
30 Jan 2004, 17:29 |
|
JohnFound 30 Jan 2004, 17:34
Great, thank you! Ah, and please, there is a very anoying bug somewhere in the editor, that makes caret to disapear, even when the AsmEdit have keyboard focus. I don't know is it a problem with DestroyCaret, or with HideCaret... it is not very important, just look for it when you are working on another things.
Keep good work! |
|||
30 Jan 2004, 17:34 |
|
Tommy 30 Jan 2004, 18:44
Hmm...strange, I've not been bothered with that, but I'll take a look while I'm work with the other tasks...
|
|||
30 Jan 2004, 18:44 |
|
Tommy 31 Jan 2004, 11:20
Here's an update (with read-only and debug-line features implemented) ... New update will be uploaded soon (during the day or tomorrow)...
|
|||||||||||
31 Jan 2004, 11:20 |
|
Goto page Previous 1, 2, 3 Next < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.