2003-09-10 Marcel Telka <marcel@telka.sk>

* src/cmd/dr.c (cmd_dr_run): Added test for missing active instruction and data register (thanks to
		Mike Tesch for reporting).


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@561 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 21 years ago
parent 8d216f236c
commit 1a1d3ff56e

@ -1,3 +1,8 @@
2003-09-10 Marcel Telka <marcel@telka.sk>
* src/cmd/dr.c (cmd_dr_run): Added test for missing active instruction and data register (thanks to
Mike Tesch for reporting).
2003-09-10 Marcel Telka <marcel@telka.sk>
* src/bus/bcm1250.c (bcm1250_bus_printinfo, bcm1250_bus): Fixed typo (compatibile->compatible) in

@ -16,6 +16,7 @@ Guennadi Liakhovetski
Brad Parker
Christian Pellegrin
Ramses VI
Mike Tesch
Holger Schurig
Matan Ziv-Av
Alessandro Zummo

@ -50,7 +50,7 @@ cmd_dr_run( char *params[] )
}
if (chain->active_part >= chain->parts->len) {
printf( _("%s: no active part\n"), "part" );
printf( _("%s: no active part\n"), "dr" );
return 1;
}
@ -63,6 +63,15 @@ cmd_dr_run( char *params[] )
return -1;
}
if (chain->parts->parts[chain->active_part]->active_instruction == NULL) {
printf( _("%s: part without active instruction\n"), "dr" );
return 1;
}
if (chain->parts->parts[chain->active_part]->active_instruction->data_register == NULL) {
printf( _("%s: part without active data register\n"), "dr" );
return 1;
}
if (dir)
r = chain->parts->parts[chain->active_part]->active_instruction->data_register->out;
else

Loading…
Cancel
Save