xref: /llvm-project/lldb/test/API/functionalities/gdb_remote_client/msp430.yaml (revision 81beb15d7e54b16f4beba0bafd982d56c6b95222)
1# File test.c, compiled with flags "-O0 -g"
2# Source code:
3#
4# int foo = 0;
5#
6# int func() {
7#     foo = 1234;
8#     return foo;
9# }
10#
11# int main() {
12#     return func();
13# }
14#
15
16--- !ELF
17FileHeader:
18  Class:           ELFCLASS32
19  Data:            ELFDATA2LSB
20  OSABI:           ELFOSABI_STANDALONE
21  Type:            ET_EXEC
22  Machine:         EM_MSP430
23  Flags:           [  ]
24  Entry:           0x500
25ProgramHeaders:
26  - Type:            PT_LOAD
27    Flags:           [ PF_X, PF_R ]
28    FirstSec:        .text
29    LastSec:         .bss
30    VAddr:           0x46C
31    Align:           0x4
32  - Type:            PT_LOAD
33    Flags:           [ PF_W, PF_R ]
34    FirstSec:        .data
35    LastSec:         .bss
36    VAddr:           0x53C
37    Align:           0x4
38  - Type:            PT_LOAD
39    Flags:           [ PF_R ]
40    FirstSec:        __interrupt_vector_31
41    LastSec:         __interrupt_vector_31
42    VAddr:           0xFFFE
43    Align:           0x4
44Sections:
45  - Name:            .text
46    Type:            SHT_PROGBITS
47    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
48    Address:         0x500
49    AddressAlign:    0x4
50    Content:         3140C0FF0C43B0121C05B01281010000B240D2043C051C423C0530413180020081430000B01210053150020030411C4330413C402A0030410C433041
51  - Name:            .data
52    Type:            SHT_PROGBITS
53    Flags:           [ SHF_WRITE, SHF_ALLOC ]
54    Address:         0x53C
55    AddressAlign:    0x1
56  - Name:            .bss
57    Type:            SHT_NOBITS
58    Flags:           [ SHF_WRITE, SHF_ALLOC ]
59    Address:         0x53C
60    AddressAlign:    0x2
61    Size:            0x2
62  - Name:            __interrupt_vector_31
63    Type:            SHT_PROGBITS
64    Flags:           [ SHF_ALLOC ]
65    Address:         0xFFFE
66    AddressAlign:    0x1
67    Offset:          0xD2
68    Content:         '0005'
69  - Name:            .rodata
70    Type:            SHT_PROGBITS
71    Flags:           [ SHF_WRITE, SHF_ALLOC ]
72    Address:         0x500
73    AddressAlign:    0x1
74  - Name:            .rodata2
75    Type:            SHT_PROGBITS
76    Flags:           [ SHF_WRITE ]
77    Address:         0x500
78    AddressAlign:    0x1
79  - Name:            .noinit
80    Type:            SHT_PROGBITS
81    Flags:           [ SHF_WRITE ]
82    Address:         0x53E
83    AddressAlign:    0x1
84  - Name:            .persistent
85    Type:            SHT_PROGBITS
86    Flags:           [ SHF_WRITE ]
87    Address:         0x53E
88    AddressAlign:    0x1
89  - Name:            .MSP430.attributes
90    Type:            SHT_MSP430_ATTRIBUTES
91    AddressAlign:    0x1
92    Content:         41160000006D737061626900010B000000040106010801
93  - Name:            .comment
94    Type:            SHT_PROGBITS
95    Flags:           [ SHF_MERGE, SHF_STRINGS ]
96    AddressAlign:    0x1
97    EntSize:         0x1
98    Content:         4743433A20284D6974746F2053797374656D73204C696D69746564202D206D73703433302D67636320392E332E312E31312920392E332E3100636C616E672076657273696F6E2031362E302E30202868747470733A2F2F6769746875622E636F6D2F6163636573732D736F6674656B2F6C6C766D2D70726F6A6563742E67697420373634363331663864643330353231386339613938656165373535353464303436303236343032322900
99  - Name:            .debug_info
100    Type:            SHT_PROGBITS
101    AddressAlign:    0x1
102    Content:         4D000000050001040000000001001D0001080000000000000002011E0000000800000002032E000000000202A1000304050204010C00000001510500042E00000004021200000001510600092E00000000
103  - Name:            .debug_abbrev
104    Type:            SHT_PROGBITS
105    AddressAlign:    0x1
106    Content:         011101252513050325721710171B25111B120673170000023400032549133F193A0B3B0B0218000003240003253E0B0B0B0000042E00111B1206401803253A0B3B0B49133F19000000
107  - Name:            .debug_line
108    Type:            SHT_PROGBITS
109    AddressAlign:    0x1
110    Content:         660000000500040037000000010101FB0E0D00010101010000000100000101011F010000000003011F020F051E011E000000002C97BF5F43C79BB948A69660B684FF4A0400000502100500001505060A130509670502064A0500063105090A830502060B4A0206000101
111  - Name:            .debug_frame
112    Type:            SHT_PROGBITS
113    AddressAlign:    0x4
114    Content:         10000000FFFFFFFF04000400017E000C010280010C00000000000000100500000C00000014000000000000001C05000012000000440E044C0E020000
115  - Name:            .debug_str_offsets
116    Type:            SHT_PROGBITS
117    AddressAlign:    0x1
118    Content:         2000000005000000000000007200000079000000970000009B0000009F000000A4000000
119  - Name:            .debug_line_str
120    Type:            SHT_PROGBITS
121    Flags:           [ SHF_MERGE, SHF_STRINGS ]
122    AddressAlign:    0x1
123    EntSize:         0x1
124    Content:         2F686F6D652F757365722F6465762F746573742F6D737034333000746573742E6300
125  - Type:            SectionHeaderTable
126    Sections:
127      - Name:            __interrupt_vector_31
128      - Name:            .rodata
129      - Name:            .rodata2
130      - Name:            .text
131      - Name:            .data
132      - Name:            .bss
133      - Name:            .noinit
134      - Name:            .persistent
135      - Name:            .MSP430.attributes
136      - Name:            .comment
137      - Name:            .debug_info
138      - Name:            .debug_abbrev
139      - Name:            .debug_line
140      - Name:            .debug_frame
141      - Name:            .debug_str
142      - Name:            .debug_str_offsets
143      - Name:            .debug_addr
144      - Name:            .debug_line_str
145      - Name:            .symtab
146      - Name:            .strtab
147      - Name:            .shstrtab
148Symbols:
149  - Name:            __interrupt_vector_31
150    Type:            STT_SECTION
151    Section:         __interrupt_vector_31
152    Value:           0xFFFE
153  - Name:            .rodata
154    Type:            STT_SECTION
155    Section:         .rodata
156    Value:           0x500
157  - Name:            .rodata2
158    Type:            STT_SECTION
159    Section:         .rodata2
160    Value:           0x500
161  - Name:            .text
162    Type:            STT_SECTION
163    Section:         .text
164    Value:           0x500
165  - Name:            .data
166    Type:            STT_SECTION
167    Section:         .data
168    Value:           0x53C
169  - Name:            .bss
170    Type:            STT_SECTION
171    Section:         .bss
172    Value:           0x53C
173  - Name:            .noinit
174    Type:            STT_SECTION
175    Section:         .noinit
176    Value:           0x53E
177  - Name:            .persistent
178    Type:            STT_SECTION
179    Section:         .persistent
180    Value:           0x53E
181  - Name:            .MSP430.attributes
182    Type:            STT_SECTION
183    Section:         .MSP430.attributes
184  - Name:            .comment
185    Type:            STT_SECTION
186    Section:         .comment
187  - Name:            .debug_info
188    Type:            STT_SECTION
189    Section:         .debug_info
190  - Name:            .debug_abbrev
191    Type:            STT_SECTION
192    Section:         .debug_abbrev
193  - Name:            .debug_line
194    Type:            STT_SECTION
195    Section:         .debug_line
196  - Name:            .debug_frame
197    Type:            STT_SECTION
198    Section:         .debug_frame
199  - Name:            .debug_str
200    Type:            STT_SECTION
201    Section:         .debug_str
202  - Name:            .debug_str_offsets
203    Type:            STT_SECTION
204    Section:         .debug_str_offsets
205  - Name:            .debug_addr
206    Type:            STT_SECTION
207    Section:         .debug_addr
208  - Name:            .debug_line_str
209    Type:            STT_SECTION
210    Section:         .debug_line_str
211  - Name:            __msp430_resetvec_hook
212    Section:         __interrupt_vector_31
213    Value:           0xFFFE
214  - Name:            .Loc.58.1
215    Section:         .text
216    Value:           0x500
217  - Name:            "L0\x01"
218    Section:         .text
219    Value:           0x504
220  - Name:            "L0\x01 (1)"
221    Section:         .text
222    Value:           0x500
223  - Name:            "L0\x01 (2)"
224    Section:         .text
225    Value:           0x504
226  - Name:            crt_main.o
227    Type:            STT_FILE
228    Index:           SHN_ABS
229  - Name:            .Loc.253.1
230    Section:         .text
231    Value:           0x504
232  - Name:            .Loc.254.1
233    Section:         .text
234    Value:           0x506
235  - Name:            "L0\x01 (3)"
236    Section:         .text
237    Value:           0x50A
238  - Name:            "L0\x01 (4)"
239    Section:         .text
240    Value:           0x504
241  - Name:            "L0\x01 (5)"
242    Section:         .text
243    Value:           0x50A
244  - Name:            crt_callexit.o
245    Type:            STT_FILE
246    Index:           SHN_ABS
247  - Name:            .Loc.267.1
248    Section:         .text
249    Value:           0x50A
250  - Name:            "L0\x01 (6)"
251    Section:         .text
252    Value:           0x50E
253  - Name:            "L0\x01 (7)"
254    Section:         .text
255    Value:           0x50A
256  - Name:            "L0\x01 (8)"
257    Section:         .text
258    Value:           0x50E
259  - Name:            test.c
260    Type:            STT_FILE
261    Index:           SHN_ABS
262  - Name:            syscalls.o
263    Type:            STT_FILE
264    Index:           SHN_ABS
265  - Name:            .Loc.59.1
266    Section:         .text
267    Value:           0x52E
268  - Name:            .Loc.60.1
269    Section:         .text
270    Value:           0x530
271  - Name:            .Loc.65.1
272    Section:         .text
273    Value:           0x532
274  - Name:            .Loc.66.1
275    Section:         .text
276    Value:           0x536
277  - Name:            .Loc.71.1
278    Section:         .text
279    Value:           0x538
280  - Name:            .Loc.72.1
281    Section:         .text
282    Value:           0x53A
283  - Name:            "L0\x01 (9)"
284    Section:         .text
285    Value:           0x53C
286  - Name:            "L0\x01 (10)"
287    Section:         .text
288    Value:           0x52E
289  - Name:            "L0\x01 (11)"
290    Section:         .text
291    Value:           0x53C
292  - Name:            __crt0_call_exit
293    Type:            STT_FUNC
294    Section:         .text
295    Binding:         STB_GLOBAL
296    Value:           0x50A
297    Size:            0x4
298  - Name:            getpid
299    Section:         .text
300    Binding:         STB_WEAK
301    Value:           0x532
302  - Name:            isatty
303    Section:         .text
304    Binding:         STB_WEAK
305    Value:           0x52E
306  - Name:            __crt0_start
307    Type:            STT_FUNC
308    Section:         .text
309    Binding:         STB_GLOBAL
310    Value:           0x500
311    Size:            0x4
312  - Name:            lseek
313    Index:           SHN_ABS
314    Binding:         STB_WEAK
315    Value:           0x186
316  - Name:            _isatty
317    Section:         .text
318    Binding:         STB_WEAK
319    Value:           0x52E
320  - Name:            fstat
321    Index:           SHN_ABS
322    Binding:         STB_WEAK
323    Value:           0x18A
324  - Name:            kill
325    Index:           SHN_ABS
326    Binding:         STB_WEAK
327    Value:           0x189
328  - Name:            _start
329    Section:         .text
330    Binding:         STB_GLOBAL
331    Value:           0x500
332  - Name:            read
333    Index:           SHN_ABS
334    Binding:         STB_WEAK
335    Value:           0x184
336  - Name:            __rom_highdatacopysize
337    Index:           SHN_ABS
338    Binding:         STB_WEAK
339  - Name:            gettimeofday
340    Section:         .text
341    Binding:         STB_WEAK
342    Value:           0x538
343    Size:            0x4
344  - Name:            main
345    Type:            STT_FUNC
346    Section:         .text
347    Binding:         STB_GLOBAL
348    Value:           0x51C
349    Size:            0x12
350  - Name:            __high_bsssize
351    Index:           SHN_ABS
352    Binding:         STB_WEAK
353  - Name:            __rom_highdatastart
354    Index:           SHN_ABS
355    Binding:         STB_WEAK
356  - Name:            __high_datastart
357    Index:           SHN_ABS
358    Binding:         STB_WEAK
359  - Name:            __upper_data_init
360    Index:           SHN_ABS
361    Binding:         STB_WEAK
362  - Name:            func
363    Type:            STT_FUNC
364    Section:         .text
365    Binding:         STB_GLOBAL
366    Value:           0x510
367    Size:            0xC
368  - Name:            foo
369    Type:            STT_OBJECT
370    Section:         .bss
371    Binding:         STB_GLOBAL
372    Value:           0x53C
373    Size:            0x2
374  - Name:            __stack
375    Section:         .persistent
376    Binding:         STB_GLOBAL
377    Value:           0xFFC0
378  - Name:            _edata
379    Section:         .data
380    Binding:         STB_GLOBAL
381    Value:           0x53C
382  - Name:            _end
383    Section:         .bss
384    Binding:         STB_GLOBAL
385    Value:           0x53E
386  - Name:            exit
387    Index:           SHN_ABS
388    Binding:         STB_WEAK
389    Value:           0x181
390  - Name:            __high_bssstart
391    Index:           SHN_ABS
392    Binding:         STB_WEAK
393  - Name:            __crt0_call_main
394    Type:            STT_FUNC
395    Section:         .text
396    Binding:         STB_GLOBAL
397    Value:           0x504
398    Size:            0x6
399  - Name:            _exit
400    Index:           SHN_ABS
401    Binding:         STB_WEAK
402    Value:           0x181
403  - Name:            open
404    Index:           SHN_ABS
405    Binding:         STB_WEAK
406    Value:           0x182
407  - Name:            close
408    Index:           SHN_ABS
409    Binding:         STB_WEAK
410    Value:           0x183
411DWARF:
412  debug_str:
413    - test.c
414    - foo
415    - int
416    - func
417    - main
418  debug_addr:
419    - Length:          0x10
420      Version:         0x5
421      AddressSize:     0x4
422      Entries:
423        - Address:         0x53C
424        - Address:         0x510
425        - Address:         0x51C
426...
427