aboutsummaryrefslogtreecommitdiff
path: root/src/gdb_main.c
AgeCommit message (Collapse)Author
2015-03-29gdb: don't access target fields directly.Gareth McMullin
2015-03-26Add a flash_done target method.Gareth McMullin
2015-03-22Clean up handling of lost targets using new exceptions mechanism.Gareth McMullin
2015-03-15Consolidate target_mem_read* and target_mem_write* methods.Gareth McMullin
There are now only mem_read and mem_write, that must handle all alignments. These methods return void, errors must be checked with target_check_error.
2015-03-13Fix pointer sign warnings and remove -Wno-pointer-sign.Gareth McMullin
2015-03-11Cleaned up printf/scanf for C99 integer types.Gareth McMullin
2015-03-01Clean up includes everywhere.Gareth McMullin
All source files include general.h first and before anything else. This inlcludes platform.h and platform_support.h No header file needs to include to include any of these, but should include any others needed for it's own declarations.
2015-01-17Fixed spaces / tabs from last commitRichard Meadows
2015-01-17Check target_attach succeeded in vRun command, and return error if notRichard Meadows
2014-10-21Add support for halfword memory accesses.Vegard Storheil Eriksen
2014-10-16Whitespace cleanup.Gareth McMullin
2013-06-17Fix register array sizes.Gareth McMullin
2013-05-18Move semihosting support to cortexm.c.Gareth McMullin
Try to implement more syscalls.
2013-05-18Basic semihosting supportPaul Fertser
Implement bare minimum necessary to support console IO. This works with standard newlib builds and is based on the reference documentation: http://infocenter.arm.com/help/topic/com.arm.doc.dui0471c/CHDJHHDI.html Tested using gcc-arm-none-eabi-4_7-2013q1-20130313 for both stm32f1-based BMP and stm32f0 target. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2013-04-14Make code compatible with newlib-nano and use it for stlinkPaul Fertser
With gcc-arm-none-eabi-4_7-2013q1-20130313 and -O2 I get text data bss dec hex filename 45744 304 2376 48424 bd28 blackmagic With -Os the results are even more impressive: text data bss dec hex filename 37900 304 2376 40580 9e84 blackmagic Since -Os might lower the debugging speed, do not enable it yet in the absence of real measurements. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2012-11-03Move breakpoint packet handler out of main gdb loop.Gareth McMullin
Use gdb_putpacketz for constant strings.
2012-11-03Clean up whitespace.Gareth McMullin
2012-11-03Clean up ancient bad typing and malloc madness.Gareth McMullin
2012-11-03Check for null pointer before decalaring register array.Gareth McMullin
2012-11-03Allow target attachment to timeout and report failure.Gareth McMullin
This is needed for if the target device is held in reset.
2012-06-30Signal on halt is now returned by target_halt_wait().Gareth McMullin
Fault unwinding is now handled internally in target implementation. GDB server doesn't need to know about it.
2012-06-27Made cur_target, last_target static in gdb_main.c.Gareth McMullin
Added target destroy notify mechanism.
2012-06-24Added mechanism for target driver to add new monitor commands.Gareth McMullin
2012-06-18Renamed target_flash_write_words to target_flash_write.Gareth McMullin
Buffer from GDB may not be aligned or integer number of words. Corrected alignment in in STM32F1 driver.
2011-12-18Cleaned up debug output on linux build.Gareth McMullin
2011-12-17Implement gdb 'qCRC' packet to support 'compare-sections' command.Gareth McMullin
2011-11-26Fixed qSupported resonse.Gareth McMullin
2011-11-25Add support for a more comprehensive target description, including the ↵Mike Smith
additional v7m registers. This doesn't work with vanilla gdb, as for reasons unknown said vanilla gdb doesn't support XML target descriptions queried from the remote. Add code to the fault unwinder to deal with the stack alignment fixup and FP registers. Avoid saving/restoring registers that don't get trashed.
2011-11-12Added preliminary support for the STM32F4.Gareth McMullin
2011-07-02Halt and detach target if host releases DTR.Gareth McMullin
Port reads 0x04 (EOF) when DTR is released. GDB loop detaches from target if EOF is read. Fixes bug 3307433.
2011-03-29Minor changes to allow a build for Windows hosts with libftdi.Gareth McMullin
2011-02-21Stack is now unwound on hardfault.Gareth McMullin
2011-02-07Changed some uint32_t to unsigned long to remove warnings.Gareth McMullin
2011-02-06Changed to use sprintf/sscanf by default.Gareth McMullin
Overridden by STM32 platform.h to use newling siprintf/siscanf.
2011-02-04Import of working source tree.Gareth McMullin