commit | f728f408737538dbe704b2d5bc10566a198a6cc1 | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Wed May 30 00:29:12 2012 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Wed May 30 00:29:12 2012 +0000 |
tree | 94eedf841dadb1bed50901550f13225ba58dc3e2 | |
parent | 33e5188c270fbd5ccce4ea4656f75c95ec68cfaf [diff] [blame] |
For dump_register_value() sub-routine, issue a return after an error condition occurs. llvm-svn: 157656
diff --git a/lldb/scripts/disasm-gdb-remote.pl b/lldb/scripts/disasm-gdb-remote.pl index 2725c6e..0742ea8 100755 --- a/lldb/scripts/disasm-gdb-remote.pl +++ b/lldb/scripts/disasm-gdb-remote.pl
@@ -554,6 +554,7 @@ if ($reg_num >= @$registers_aref) { printf("\tinvalid register index %d\n", $reg_num); + return; } my $reg_href = $$registers_aref[$reg_num];