Ignore:
Timestamp:
2013-02-11T12:56:03Z (11 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
5a0ffa2
Parents:
7e5b4bd
git-author:
Mike Kazantsev <mk.fraggod@…> (11-02-13 12:56:03)
git-committer:
Miklos Vajna <vmiklos@…> (11-02-13 12:56:03)
Message:

skype: add ATTACH_GDB env flag, extend hacking instructions with info on pexpect/gdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/test.py

    r7e5b4bd r3e23850  
    2525                        try:
    2626                                bitlbee = pexpect.spawn('../../bitlbee', ['-d', 't/bitlbee'], logfile=pexpect_log)
     27                                if os.environ.get('ATTACH_GDB'):
     28                                        subprocess.Popen(['gdb', '-batch-silent',
     29                                                '-ex', 'set logging overwrite on',
     30                                                '-ex', 'set logging file t/gdb-%s.log' % bitlbee.pid,
     31                                                '-ex', 'set logging on',
     32                                                '-ex', 'handle all pass nostop noprint',
     33                                                '-ex', 'handle SIGSEGV pass stop print',
     34                                                '-ex', 'set pagination 0',
     35                                                '-ex', 'continue',
     36                                                '-ex', 'backtrace full',
     37                                                '-ex', 'info registers',
     38                                                '-ex', 'thread apply all backtrace',
     39                                                '-ex', 'quit',
     40                                                '../../bitlbee', str(bitlbee.pid) ])
    2741                                bitlbee_mock = open("t/%s-bitlbee.mock" % name)
    2842                                for i in bitlbee_mock.readlines():
Note: See TracChangeset for help on using the changeset viewer.