| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 funcInfo.size = parseInt(fields[2], 16); | 469 funcInfo.size = parseInt(fields[2], 16); |
| 470 } | 470 } |
| 471 } | 471 } |
| 472 return funcInfo; | 472 return funcInfo; |
| 473 }; | 473 }; |
| 474 | 474 |
| 475 | 475 |
| 476 function MacCppEntriesProvider(nmExec) { | 476 function MacCppEntriesProvider(nmExec) { |
| 477 UnixCppEntriesProvider.call(this, nmExec); | 477 UnixCppEntriesProvider.call(this, nmExec); |
| 478 // Note an empty group. It is required, as UnixCppEntriesProvider expects 3 gr
oups. | 478 // Note an empty group. It is required, as UnixCppEntriesProvider expects 3 gr
oups. |
| 479 this.FUNC_RE = /^([0-9a-fA-F]{8}) ()[iItT] (.*)$/; | 479 this.FUNC_RE = /^([0-9a-fA-F]{8,16}) ()[iItT] (.*)$/; |
| 480 }; | 480 }; |
| 481 inherits(MacCppEntriesProvider, UnixCppEntriesProvider); | 481 inherits(MacCppEntriesProvider, UnixCppEntriesProvider); |
| 482 | 482 |
| 483 | 483 |
| 484 MacCppEntriesProvider.prototype.loadSymbols = function(libName) { | 484 MacCppEntriesProvider.prototype.loadSymbols = function(libName) { |
| 485 this.parsePos = 0; | 485 this.parsePos = 0; |
| 486 try { | 486 try { |
| 487 this.symbols = [os.system(this.nmExec, ['-n', '-f', libName], -1, -1), '']; | 487 this.symbols = [os.system(this.nmExec, ['-n', '-f', libName], -1, -1), '']; |
| 488 } catch (e) { | 488 } catch (e) { |
| 489 // If the library cannot be found on this system let's not panic. | 489 // If the library cannot be found on this system let's not panic. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { | 673 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { |
| 674 synonims.push(synArg); | 674 synonims.push(synArg); |
| 675 delete this.argsDispatch_[synArg]; | 675 delete this.argsDispatch_[synArg]; |
| 676 } | 676 } |
| 677 } | 677 } |
| 678 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); | 678 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); |
| 679 } | 679 } |
| 680 quit(2); | 680 quit(2); |
| 681 }; | 681 }; |
| 682 | 682 |
| OLD | NEW |