summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-31Profiler: Cache parsed DWARF debug information in disassembly viewDaniel Bertalan
This changes browsing through disassembled functions in Profiler from a painfully sluggish experience into quite a swift one. It's especially true for profiling the kernel, as it has more than 10 megabytes of DWARF data to churn through.
2021-10-31Profiler: Load the actual kernel binary for disassemblyDaniel Bertalan
/boot/Kernel.debug only contains the symbol table and DWARF debug information, and has its `.text` and other PT_LOAD segments stripped out. When we try to parse its data as instructions, we get a crash from within LibX86. We now load the actual /boot/Kernel binary when we want to disassemble kernel functions.
2021-10-31Profiler: Share the mapped kernel between Profile and DisassemblyModelDaniel Bertalan
There is no point in keeping around a separate MappedFile object for /boot/Kernel.debug for each DisassemblyModel we create and re-parsing the kernel image multiple times. This will significantly speed up browsing through profile entries from the kernel in disassembly view.
2021-10-31LibWeb: Convert all generated bindings to ThrowCompletionOrTimothy Flynn
This also required converting URLSearchParams::for_each and the callback function it invokes to ThrowCompletionOr. With this, the ReturnType enum used by WrapperGenerator is removed as all callers would be using ReturnType::Completion.
2021-10-31LibWeb: Convert the Navigator object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the CSS namespace object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the Window object to ThrowCompletionOrTimothy Flynn
2021-10-31LibWeb: Convert the Location object to ThrowCompletionOrTimothy Flynn
2021-10-31Spreadsheet: Convert JSIntegration to ThrowCompletionOrTimothy Flynn
2021-10-31WindowServer: Remove some commented code in WindowManager.cppMarco Cutecchia
2021-10-31PixelPaint: Use a bucket cursor for the Bucket toolMarco Cutecchia
2021-10-31PixelPaint: Support using a bitmap as a tool's cursorMarco Cutecchia
2021-10-31LibGUI: Support using a bitmap as override cursorMarco Cutecchia
2021-10-31FileOperation: Deduplicate file names on moveTetsui Ohkubo
For file copying, when there is a file with the same name in the destination directory, the file will be automatically renamed to "file-2.txt", for example. This change expands that special-case handling to file moving.
2021-10-31Kernel: Draw picture on screen when booting Raspberry PiMarcin Undak
2021-10-31Kernel: Add very simple PPM parser for Aarch64Marcin Undak
This is much simpler and more embeddable version than libGFX one. Solely purpose is to draw initial boot logo on screen before kernel is even booted.
2021-10-31Kernel: Add Framebuffer class for Raspberry PiMarcin Undak
It initializes framebuffer and exposes access to its properties.
2021-10-31Kernel: Refactor Aarch64 MailBox classMarcin Undak
The goal was to reduce common setup of messages. Changes: * MailBox turned into singleton to follow existing patterns * Removed device specific messages from MailBox requiring clients to know the details instead * Created base Message class which clients should deriver from It really simplify the usage for more complicated message queues like framebuffer setup - see followup commits.
2021-10-31Kernel: Add temporary debug printing utilities for Aarch64Marcin Undak
Added dbgln() and warnln() debug functions to help bootstraping. Eventually they are going to be replaced by AK/Format.h implementation.
2021-10-31Userland: Handle terminal window resizing in less(1)Kyle Ambroff-Kao
Before this patch less would query the terminal geometry only at startup and use this information to render the file when appropriate. If the terminal is resized then the output is broken in several different ways because of this. This patch adds a SIGWINCH signal handler receive notification any time the terminal is resized. This signal handler just sets a flag to notify the main loop that a resize has occurred. The main loop of the program just calls get_key_sequence() to get input from the user, interpreting keystrokes as commands like scroll up or down. The get_key_sequence() function has been changed to return Optional<String>, so it either returns a keystroke from the user or it returns nothing as an empty Optional. While the user is not pressing any keys on the keyboard, the program is blocking on a read() system call in get_key_sequence(). When SIGWINCH is received, this read() will return with -1 and errno is set to EINTR since the system call was interrupted by the signal. When this happens we just return an empty Optional. The mainloop now checks to see if a resize has been requested by checking the flag, and if it has it performs a resize. init() now just calls resize() since the required logic is the same. Setters for m_filename and m_prompt are removed because these are now just initialized by the constructor, as they never change for the life of the program.
2021-10-31AK+Tests: Fix formatting of infinity and NaN valuesDaniel Bertalan
When I added this code in 1472f6d, I forgot to add tests for it. That's why I didn't realize that the values were appended to the wrong FormatBuilder object, so an empty string was returned instead of the expected "nan"/"inf". This made debugging some FPU issues with the ScummVM port significantly more difficult.
2021-10-31SpaceAnalyzer: Display scan progress with popup window during analysisForLoveOfCats
2021-10-31Calculator: Add Constants menuMusab Kılıç
2021-10-31Calculator: Fix copy button not copying the fractional part bug :^)Musab Kılıç
2021-10-31Calculator: Improve KeypadValue conversion to handle integer valuesMusab Kılıç
2021-10-31Toolchain: Use dynamic paths for cross-compile CMake toolchainsTim Schumacher
`CMAKE_INSTALL_PREFIX` is supposed to be the in-system installation path. The sysroot path on the host doesn't belong there, since other applications will duplicate that path when applying their respective sysroot.
2021-10-31Kernel: Remove misleading FIXME in DevTmpFSBen Wiederhake
This FIXME does not seem to apply anymore. Yes, symbolic links in all filesystems appear to be slightly broken, but that has nothing to do with File::absolute_path. Let's remove the wrong FIXME instead of adding to the confusion.
2021-10-31Kernel: Clarify ambiguous {File,Description}::absolute_pathBen Wiederhake
Found due to smelly code in InodeFile::absolute_path. In particular, this replaces the following misleading methods: File::absolute_path This method *never* returns an actual path, and if called on an InodeFile (which is impossible), it would VERIFY_NOT_REACHED(). OpenFileDescription::try_serialize_absolute_path OpenFileDescription::absolute_path These methods do not guarantee to return an actual path (just like the other method), and just like Custody::absolute_path they do not guarantee accuracy. In particular, just renaming the method made a TOCTOU bug obvious. The new method signatures use KResultOr, just like try_serialize_absolute_path() already did.
2021-10-31Kernel: Enable early-returns from VFS::for_each_mountBen Wiederhake
2021-10-31Kernel: Avoid OpenFileDescription::absolute_pathBen Wiederhake
2021-10-31Shell: Unwind execution after runtime errorsAli Mohammad Pur
This commit makes the Shell check for errors after a node is run(), and prevents further execution by unwinding until the error is cleared. Fixes #10649.
2021-10-31LibC: Add `labs()`Jelle Raaijmakers
We defined it in `stdlib.h` but forgot to implement it.
2021-10-31Ports: Add FreeDink portBrendan Coles
2021-10-31Ports: Add OpenGL Mathematics (GLM) portBrendan Coles
2021-10-31Utilities: Add option to suppress errors to grepMarco Cutecchia
2021-10-31Utilities: Add 'quiet' mode to grepMarco Cutecchia
2021-10-31js: Convert JavaScript REPL to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert %IteratorPrototype% to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert ObjectConstructor to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert ObjectConstructor GetOwnPropertyKeys to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert GlobalObject to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert GlobalObject's Encode and Decode AOs to ThrowCompletionOrTimothy Flynn
2021-10-31LibJS: Convert Object.prototype to ThrowCompletionOrTimothy Flynn
2021-10-31Ports: Remove ScummVM FMOPL patchJelle Raaijmakers
This patch is no longer required after this PR fixes the x86_64 PLT trampoline: https://github.com/SerenityOS/serenity/pull/10711
2021-10-31LibELF: Store SSE registers in x86_64 PLT TrampolinePeter
Save and restore XMM registers so userspace programs don't randomly lose values from calls. This fixes a crash in ScummVM.
2021-10-31Debugger: Add logging for the other 8 GPRs tooPeter
2021-10-31Meta: Suppress rule v1047 in PVS-Studio Static AnalysisBrian Gianforcaro
This rule appears to produce a lot of noise, most of them look like false positives (400+). Lets suppress for now to try to move the signal to noise ratio higher for PVS-Studio. Reference: https://pvs-studio.com/en/docs/warnings/v1047/
2021-10-31Spreadsheet: Make the 'Help' window accessoryMarco Cutecchia
2021-10-30LibJS: Update spec comment in parse_temporal_time_zone_string()Linus Groh
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/19b693c
2021-10-30LibJS: Fix format_time_zone_offset_string() for negative offsetsLinus Groh
This is a normative change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/ec43be3