AmigaLabs / binutils-gdb

binutils targeted for ppc-amigaos systems (AmigaOS NG like OS4.1).
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git
GNU General Public License v2.0
0 stars 0 forks source link

[GDB]: gdb can't load up simple test case with usage of altivec vector bringing internal error. #30

Open kas1e opened 2 months ago

kas1e commented 2 months ago

There very simple test case:

#include <stdio.h>
#include <altivec.h>

void add_vectors(vector signed int* a, vector signed int* b, vector signed int* result) {
   // *result = vec_add(*a, *b);
}

int main() {
    return 0;
}

Compile it like:

ppc-amigaos-gcc -maltivec -gstabs test_vector.c -o test_vector

Once we tried to run it in GDB (that one Pegasos2 of course, with real Altivec in) , GDB bring this warning:

../../gdb/gdbtypes.c:939: internal-error: create_range_type: Assertion 'index_type->length () > 0` failed.
A problem internal to GDB has been detected.
futher debugging may prove unrelable.
Unable to dump core