[Compiler] EABI compilation mode

More info on subject

Test Scenario 1: SecondFile.h placed inside src\SubFolderTest
Test Scenario 2: SecondFile.h placed inside inc

Test Scenarios Info:

  • both with MDK Keil toolchain
  • both successfuly downloaded and debug with breakpoints located inside hello_world.c file
  • Test Scenario 1 - placing breakpoints inside SecondFile.h doesn’t work
  • Test Scenario 2 - placing breakpoints inside SecondFile.h works ok

Command maint info psymtabs SecondFile.c executed from GDB Console returns different result in above test scenarios.

Test Scenario 1

maint info psymtabs SecondFile.c
{ objfile C:/workspace/TestA/[Target]RVDS_Debug/TestA.axf
((struct objfile *) 01CD1570)
{ psymtab …\src\SubFolderTest\SecondFile.c
((struct partial_symtab ) 01D0E170)
readin yes
fullname (null)
text addresses 0x0 – 0x0
globals (none)
statics (
(struct partial_symbol **) 01CDA978 @ 2)
dependencies (none)
}
{ psymtab …\src\SubFolderTest/SecondFile.c
((struct partial_symtab *) 01D0E0F8)
readin no
fullname (null)
text addresses 0x0 – 0x0
globals (none)
statics (none)
dependencies {
psymtab …\src\SubFolderTest\SecondFile.c ((struct partial_symtab *) 01D0E088)
}
}
{ psymtab …\src\SubFolderTest\SecondFile.c
((struct partial_symtab ) 01D0E088)
readin yes
fullname (null)
text addresses 0x260200 – 0x260212
globals (
(struct partial_symbol *) 01D09BD8 @ 1)
statics (
(struct partial_symbol **) 01CDA974 @ 1)
dependencies (none)
}
}

maint info symtabs SecondFile.c
{ objfile C:/workspace/TestA/[Target]RVDS_Debug/TestA.axf
((struct objfile *) 01CD1570)
{ symtab …\src\SubFolderTest\SecondFile.c ((struct symtab *) 01D107A0)
dirname C:\workspace\TestA[Target]RVDS_Debug
fullname (null)
blockvector ((struct blockvector *) 01D10718) (primary)
linetable ((struct linetable *) 00000000)
debugformat DWARF 2
}
{ symtab …\src\SubFolderTest/SecondFile.c ((struct symtab *) 01D103D0)
dirname C:\workspace\TestA[Target]RVDS_Debug
fullname (null)
blockvector ((struct blockvector *) 01D10718)
linetable ((struct linetable *) 01D10730)
debugformat unknown
}
{ symtab …\src\SubFolderTest\SecondFile.c ((struct symtab *) 01D10300)
dirname C:\workspace\TestA[Target]RVDS_Debug
fullname (null)
blockvector ((struct blockvector *) 01D102F0) (primary)
linetable ((struct linetable *) 00000000)
debugformat DWARF 2
}
}

Test Scenario 2

maint info psymtabs SecondFile.c
{ objfile C:/workspace/TestA/[Target]RVDS_Debug/TestA.axf
((struct objfile *) 01C81570)
{ psymtab …\src\SubFolderTest\SecondFile.c
((struct partial_symtab ) 01CBE170)
readin no
fullname (null)
text addresses 0x0 – 0x0
globals (none)
statics (
(struct partial_symbol **) 01C8A978 @ 2)
dependencies (none)
}
{ psymtab …\src\SubFolderTest\SecondFile.c
((struct partial_symtab *) 01CBE0F8)
readin no
fullname (null)
text addresses 0x0 – 0x0
globals (none)
statics (none)
dependencies {
psymtab …\src\SubFolderTest\SecondFile.c ((struct partial_symtab *) 01CBE088)
}
}
{ psymtab …\src\SubFolderTest\SecondFile.c
((struct partial_symtab ) 01CBE088)
readin no
fullname (null)
text addresses 0x260200 – 0x260212
globals (
(struct partial_symbol *) 01CB9BD8 @ 1)
statics (
(struct partial_symbol **) 01C8A974 @ 1)
dependencies (none)
}
}

maint info symtabs SecondFile.c
(doesn’t return anything)