File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pebble_tool/commands/sdk/project Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11from __future__ import absolute_import , print_function , division
22__author__ = 'katharine'
33
4+ from six import iteritems
5+
46import os
57import signal
68import subprocess
@@ -65,11 +67,15 @@ def __call__(self, args):
6567
6668 offsets = self ._find_real_app_section_offsets (base_address , app_elf_path )
6769
70+ add_symbol_file = 'add-symbol-file "{elf}" {text} ' .format (elf = app_elf_path , ** offsets )
71+ del offsets ['text' ]
72+ add_symbol_file += '' .join ('-s .{} {}' .format (k , v ) for k , v in iteritems (offsets ))
73+
6874 gdb_commands = [
6975 "set charset US-ASCII" , # Avoid a bug in the ancient version of libiconv apple ships.
7076 "target remote :{}" .format (gdb_port ),
7177 "set confirm off" ,
72- 'add-symbol-file "{elf}" {text} -s .data {data} -s .bss {bss}' . format ( elf = app_elf_path , ** offsets ) ,
78+ add_symbol_file ,
7379 "set confirm on" ,
7480 "break app_crashed" , # app crashes (as of FW 3.10) go through this symbol for our convenience.
7581 'echo \n Press ctrl-D or type \' quit\' to exit.\n ' ,
You can’t perform that action at this time.
0 commit comments