2009-11-24 19:28:21 +00:00
|
|
|
// This file is part of the Doxygen Developer Manual
|
2009-05-18 20:22:55 +00:00
|
|
|
/** @page bugs Bug Reporting
|
2008-04-23 13:13:38 +00:00
|
|
|
|
2009-05-18 20:22:55 +00:00
|
|
|
Please report bugs by subscribing to the OpenOCD mailing list and
|
|
|
|
posting a message with your report:
|
|
|
|
|
2011-11-09 21:34:13 +00:00
|
|
|
openocd-devel@lists.sourceforge.net
|
2008-04-23 13:13:38 +00:00
|
|
|
|
2010-02-04 19:10:15 +00:00
|
|
|
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/
|
|
|
|
|
2009-06-30 05:34:44 +00:00
|
|
|
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.
|
2008-04-23 13:13:38 +00:00
|
|
|
|
|
|
|
- Target PCB/board description
|
2009-06-30 05:34:44 +00:00
|
|
|
- Configuration scripts
|
2008-04-23 13:13:38 +00:00
|
|
|
- OpenOCD command line
|
|
|
|
- List of commands issued or GDB operations performed
|
|
|
|
- Expected result
|
|
|
|
- Actual result
|
2009-06-30 05:34:44 +00:00
|
|
|
- Logs using <code>debug_level 3</code> (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.
|
2009-12-29 23:48:49 +00:00
|
|
|
You can use "git bisect" to expedite this binary search:
|
2009-11-04 18:25:20 +00:00
|
|
|
http://www.kernel.org/pub/software/scm/git/docs/git-bisect.html
|
2008-04-23 13:13:38 +00:00
|
|
|
|
2009-06-30 05:34:44 +00:00
|
|
|
If possible, please develop and attach a patch that helps to expose or
|
2010-01-09 01:20:47 +00:00
|
|
|
solve the reported problem. See the PATCHES.txt file for information
|
|
|
|
about that process.
|
2009-06-30 05:34:44 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
@section bugscrashdump Obtaining Crash Backtraces
|
|
|
|
|
2009-07-27 14:46:49 +00:00
|
|
|
If OpenOCD is crashing, there are two very effective things you can do to
|
2009-12-29 23:48:49 +00:00
|
|
|
improve your chances of getting help on the development mailing list.
|
2009-07-27 14:46:49 +00:00
|
|
|
|
|
|
|
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
|
2009-05-18 20:22:55 +00:00
|
|
|
@code
|
2009-07-27 14:46:49 +00:00
|
|
|
% OPENOCDSRC/configure --enable-dummy ...
|
|
|
|
% openocd -f interface/dummy.cfg -f target/xxx.cfg
|
|
|
|
=> SEGFAULT
|
2009-05-18 20:22:55 +00:00
|
|
|
% gdb --args openocd ....
|
2008-05-19 07:29:45 +00:00
|
|
|
(gdb) run
|
|
|
|
(gdb) bt
|
|
|
|
=> here a stack trace is dumped.
|
2009-05-18 20:22:55 +00:00
|
|
|
@endcode
|
|
|
|
|
2009-06-30 05:34:44 +00:00
|
|
|
@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:
|
2009-05-18 20:22:55 +00:00
|
|
|
@code
|
|
|
|
libtool gdb --args openocd ....
|
|
|
|
@endcode
|
|
|
|
or the more pedantic (and forward-compatible):
|
|
|
|
@code
|
|
|
|
libtool --mode=execute gdb --args openocd ....
|
|
|
|
@endcode
|
2008-04-23 13:13:38 +00:00
|
|
|
|
2009-05-18 20:22:55 +00:00
|
|
|
*/
|
2009-05-26 23:58:01 +00:00
|
|
|
/** @file
|
|
|
|
This file contains the @ref bugs page.
|
|
|
|
*/
|