mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
Bug 421541 allow debugging of non C language
when sizeof(void *) cannot be evaluated, log an error instead of aborting the debug session. Change-Id: Ic6b0e53645626b2174d93b64942d3caf3cae5c86 Signed-off-by: Philippe Gil <gil@adacore.com> Reviewed-on: https://git.eclipse.org/r/18815 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
ceac5fd156
commit
bccbb89f68
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
* Contributors:
|
||||
* Mentor Graphics - Initial API and implementation
|
||||
* John Dallaway - Add methods to get the endianness and address size (Bug 225609)
|
||||
* Philippe Gil (AdaCore) - Don't fail initializeMemoryData if sizeof(void *) cannot be evaluated (Bug 421541)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.service;
|
||||
|
||||
|
@ -143,6 +144,13 @@ public class GDBMemory extends MIMemory implements IGDBMemory {
|
|||
fAddressSizes.put(memContext, getData());
|
||||
requestMonitor.done();
|
||||
}
|
||||
@Override
|
||||
@ConfinedToDsfExecutor("fExecutor")
|
||||
protected void handleError() {
|
||||
// log the error, but go on initializing memory data.
|
||||
GdbPlugin.getDefault().getLog().log(getStatus());
|
||||
requestMonitor.done();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue