X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=BUGS;h=4381c87b5d093071bc030f369ce6c99afa877034;hp=5c9569cb6b656d3d4cf77183d22c7a041f5a7af8;hb=9e001244da2a2c472038ce1af0df32cfb2329569;hpb=d487a11b929de7d2637812ab03f6fa0eceb2d5f8 diff --git a/BUGS b/BUGS index 5c9569cb6b..4381c87b5d 100644 --- a/BUGS +++ b/BUGS @@ -1,34 +1,74 @@ -Please report bugs by posting a message to +// This file is part of the Doxygen Developer Manual +/** @page bugs Bug Reporting -openocd-development@lists.berlios.de. +Please report bugs by subscribing to the OpenOCD mailing list and +posting a message with your report: -To minimize work for OpenOCD developers, you can include -all the information below. If you feel that some of the -items below are unecessary for a clear bug report, you -leave them out. + openocd-devel@lists.sourceforge.net +Also, please check the Trac bug database to see if a ticket for +the bug has already been opened. You might be asked to open +such a ticket, or to update an existing ticket with more data. + + https://sourceforge.net/apps/trac/openocd/ + +To minimize work for OpenOCD developers, you should try to include +all of the information listed below. If you feel that some of the +items below are unnecessary for a clear bug report, you may leave +them out; likewise, feel free to include additional information +that may be important. - Target PCB/board description -- Config scripts +- Configuration scripts - OpenOCD command line - List of commands issued or GDB operations performed - Expected result - Actual result -- debug_level 3 logs -- If this is a regression, include logs for working and broken -version -- If this is a regression, please find out the precise version -that caused the regression. This can be done via a binary -search. E.g. if version 550 worked and 600 failed, then try -575, etc. +- Logs using debug_level 3 (or with '-d 3' on the command line) +- If the report is for a regression: + - Include logs for both working and broken versions. + - Find the precise version that caused the regression by binary search. + You can use "git bisect" to expedite this binary search: + http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html + +If possible, please develop and attach a patch that helps to expose or +solve the reported problem. See the HACKING file for information +about that process. + +Attach all files directly to your posting. The mailing list knows to +transform attachments to links, but attachments must be less than 300KB +in total. -- If OpenOCD is crashing, you can use GDB to get a trace: +@section bugscrashdump Obtaining Crash Backtraces -gdb --args openocd .... +If OpenOCD is crashing, there are two very effective things you can do to +improve your chances of getting help on the development mailing list. + +Try to reproduce the problem using the dummy JTAG interface to allow other developers to replicate +your problem robustly and use GDB to get a trace:@par +@code +% OPENOCDSRC/configure --enable-dummy ... +% openocd -f interface/dummy.cfg -f target/xxx.cfg +=> SEGFAULT +% gdb --args openocd .... (gdb) run (gdb) bt => here a stack trace is dumped. +@endcode + +@section bugsintreedebug Running and Debugging In-Tree + +To run or debug the in-tree executable (not recommended), you must +use libtool to set up the correct shared library paths: +@code + libtool gdb --args openocd .... +@endcode +or the more pedantic (and forward-compatible): +@code + libtool --mode=execute gdb --args openocd .... +@endcode -attach files directly to the posting. The mailing list knows to -transform attachments to links so you will not be bloating anyones -mail box. Keep attachments to <100kBytes. \ No newline at end of file + */ +/** @file +This file contains the @ref bugs page. +*/