summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/disassemblerlines.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Standardize on int for line and column valueshjk2019-07-261-2/+2
| | | | | | | | | | | | | | | Recently tons of warnings show up for presumably "problematic" singned <-> unsigned and size conversions. The Qt side uses 'int', and that's the biggest 'integration surface' for us, so instead of establishing some internal boundary between signed and unsigned areas, push that boundary out of creator core code, and use 'int' everywhere. Because it reduces friction further, also do it in libcplusplus. Change-Id: I84f3b79852c8029713e7ea6f133ffb9ef7030a70 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Fix warning: "Use midRef() instead of mid()"Alessandro Portale2019-01-171-2/+2
| | | | | | | [-Wclazy-qstring-ref] Change-Id: If8a0844b39377feb3772542559655854a92b93cd Reviewed-by: hjk <hjk@qt.io>
* Debugger: Strip QLatin1* where possibleOrgad Shaneh2018-10-131-19/+19
| | | | | Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk <hjk@qt.io>
* Debugger: Use decimal offset in disassembler viewOrgad Shaneh2018-08-081-2/+2
| | | | | | | | Jump directives are with decimal offset, at least on intel platforms. It is hard to track the jump target. Change-Id: I855068ea7470581667a541a54bb24193ec989dd4 Reviewed-by: hjk <hjk@qt.io>
* Debugger: ModernizeAlessandro Portale2018-07-251-2/+2
| | | | | | | | | | | | | modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using modernize-use-default-member-init modernize-use-equals-default Change-Id: I91a6874f0d7b94e9079ab4ef07c23c60c80be9c0 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
* Debugger: Remove libUtils dependency from some testshjk2017-03-101-1/+0
| | | | | | | | libUtils nowadays depends on Qt Declarative, which is not necessarily present in pure test setups. Change-Id: I8c40d086186ccf047c034345126f088f53652dbb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Debugger: Remove debuggerstringutils.hhjk2016-06-091-9/+8
| | | | | | | | | | With QT_RESTRICTED_CAST_FROM_ASCII making GdbMi etc operate on QString is feasible again. Take this as opportunity to move debugger encoding handling closer to a 'conversion on input and output if needed, storage in QString only' scheme. Change-Id: I2f10c9fa8a6c62c44f4e6682efe3769e9fba30f7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Debugger: Remove arg for a 0 hunk in disassembly.David Schulz2015-09-011-1/+1
| | | | | Change-Id: If519893dfcf72b034a133954e01ebfcfdbf9253d Reviewed-by: hjk <hjk@theqtcompany.com>
* Debugger: Recognize source data within disassembler viewhjk2015-07-221-7/+2
| | | | | | | | | | ... and use it to toggle breakpoints by file and line, and for jumping to file and line. Task-number: QTCREATORBUG-14278 Change-Id: I799d085eb53339905ea3608022aeae5a9aef1fda Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Debugger: Better location for hunk number in disassemblyhjk2014-05-051-5/+11
| | | | | Change-Id: If42d8d1f027df25225b87cbbb027efd41fe1658b Reviewed-by: hjk <hjk121@nokiamail.com>
* Debugger: Show raw opcode bytes in disassembler viewhjk2014-04-301-6/+22
| | | | | Change-Id: I420dd5e9af4a92c84d53dbd52837be8f84440995 Reviewed-by: David Schulz <david.schulz@digia.com>
* Debugger: Rework GDB disassembly displayhjk2014-04-281-0/+2
| | | | | | | | | | | | - Use exclusively CLI to retrieve information. MI output misses parts. - Remove MI output handling - Re-order lines in ascending address order in mixed output. GDB orders by source line, but that's confusing when stepping - Introduce a new 'hunk' field for source lines to give a hint which part of a split source line we are looking at. Change-Id: I61a547503e9a18f95e99b897e26dbb207cabb8cf Reviewed-by: David Schulz <david.schulz@digia.com>
* Debugger: Fix disassembler parsing if print max-symbolic-offset is 1hjk2014-02-191-15/+32
| | | | | | | Task-number: QTCREATORBUG-11504 Change-Id: Iaf26fbeefda46280e20b6a0943d15c4f2423f674 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Clean headers in debugger plugin.Friedemann Kleint2013-03-221-1/+0
| | | | | Change-Id: Ia50e61a82101b699390b23b4f1ea9509619314bb Reviewed-by: hjk <hjk121@nokiamail.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-4/+4
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Debugger: Compile with QT_NO_CAST_FROM_ASCII.Friedemann Kleint2011-12-211-12/+12
| | | | | | | | (except gdbmi.cpp, name_demangler.cpp). Remove some unneeded conversions, change some maps to take QByteArray keys. Change-Id: I010f1251998a441fe5c8c87901b1e0c277c0391c Reviewed-by: hjk <qthjk@ovi.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* debugger: take care of unknown instructions in arm disassembler outputhjk2011-09-081-14/+23
| | | | | | Change-Id: Ibeb8992856e8c5031e21925316c3fb0f9d7764e1 Reviewed-on: http://codereview.qt-project.org/4479 Reviewed-by: hjk <qthjk@ovi.com>
* debugger: fix disassemblerhjk2011-09-021-2/+2
| | | | | | Change-Id: I9e6ea258f6009a8299c0ddc2400abdb07e6dc6eb Reviewed-on: http://codereview.qt.nokia.com/4120 Reviewed-by: hjk <qthjk@ovi.com>
* debugger: fix optical glitch for first instruction in disassembled functionhjk2011-09-021-11/+10
| | | | | | Change-Id: I956e4b7b8afee843e1a282a0b8488fa9465faf06 Reviewed-on: http://codereview.qt.nokia.com/4117 Reviewed-by: hjk <qthjk@ovi.com>
* Debugger: Make disassembler caching smarter.Friedemann Kleint2011-07-041-0/+16
| | | | | | | | | | Check if address is contained in range of lines. Task-number: QTCREATORBUG-5205 Change-Id: I12a4f2f2f3837e164fd093e80fb427e9234136af Reviewed-on: http://codereview.qt.nokia.com/1017 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Merge branch '2.2'Oswald Buddenhagen2011-04-141-14/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/debugger/gdb/pythongdbengine.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4desktoptargetfactory.h src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.cpp src/plugins/qt4projectmanager/qt-desktop/qt4simulatortargetfactory.h src/plugins/qt4projectmanager/qt-maemo/maemodeploystep.cpp src/plugins/qt4projectmanager/qt-maemo/maemodeviceconfigurations.cpp src/plugins/qt4projectmanager/qt-maemo/maemoglobal.cpp src/plugins/qt4projectmanager/qt-maemo/qt4maemotargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/qt4symbiantargetfactory.cpp src/plugins/qt4projectmanager/qt-s60/s60deploystep.cpp src/plugins/qt4projectmanager/qt4target.cpp src/plugins/qt4projectmanager/qt4target.h src/plugins/qt4projectmanager/qtoptionspage.h src/plugins/qt4projectmanager/qtversionmanager.cpp src/plugins/welcome/welcomemode.cpp
| * Update license.hjk2011-04-131-14/+13
| |
* | Debugger[CDB]: Fix disassembler for lines with no offset.Friedemann Kleint2011-04-131-1/+1
| | | | | | | | | | Also add function lines as comment. Fix offset display.
* | Debugger[CDB]: Use new disassembler structures.Friedemann Kleint2011-04-131-0/+35
| | | | | | | | | | | | Parse CDB's ASM output, set it up with source line. Move convenience to add source lines into DisassemblerLines (cached).
* | debugger: re-work DisassemblerLine structurehjk2011-04-121-7/+78
|/
* debugger: rework logic for chain of disassembler fallbacks.hjk2011-02-101-8/+16
| | | | | Old logic was too fragile to maintain. Now it's PointMixed -> PointPlain -> RangeMixed -> RangePlain.
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* License headers, part 2con2010-12-171-7/+11
|
* Adapt Lldb to dissasembler changesArvid Ephraim Picciani2010-11-241-0/+86