PATCH: MIPS support for libjava (version 2).

David Daney ddaney@avtrex.com
Wed Sep 17 16:11:00 GMT 2003


Andrew Haley wrote:

>Sure.  It would help me if you could post the disassembly of the code
>and the ouput of 'readelf --debug=F' for the method.
>
>Andrew.
>
The same problem exists in c++, so I am using a c++ test program to 
debug as it is easier for me to debug (It is difficult for me to debug 
multithreaded programs which covers all java programs).

Attached are various forms of catcher3fa.   catcherf3a.s is generated by 
g++, catcherf3a.s.corrected is the same file patched by hand by me so 
that it works.


[daney@dl proton]$ mipsel-linux-as -o catcherf3a.o catcherf3a.s
[daney@dl proton]$ mipsel-linux-readelf --debug-dump=frames catcherf3a.o
The section .eh_frame contains:

00000000 00000018 00000000 CIE
  Version:               1
  Augmentation:          "zPR"
  Code alignment factor: 1
  Data alignment factor: 4
  Return address column: 64
  Augmentation data:     9b 00 00 00 00 1b

  DW_CFA_def_cfa: r29 ofs 0
  DW_CFA_nop
  DW_CFA_nop

0000001c 0000001c 00000020 FDE cie=00000000 pc=00000024..00000068
  DW_CFA_advance_loc: 20 to 00000038
  DW_CFA_def_cfa_offset: 24
  DW_CFA_advance_loc: 8 to 00000040
  DW_CFA_offset_extended_sf: r28 at cfa-8
  DW_CFA_offset_extended_sf: r30 at cfa-4
  DW_CFA_advance_loc: 4 to 00000044
  DW_CFA_def_cfa: r30 ofs 24
  DW_CFA_nop

[daney@dl proton]$ mipsel-linux-as -o catcherf3a.o.corrected 
catcherf3a.s.corrected
[daney@dl proton]$ mipsel-linux-readelf --debug-dump=frames 
catcherf3a.o.corrected
The section .eh_frame contains:

00000000 00000018 00000000 CIE
  Version:               1
  Augmentation:          "zPR"
  Code alignment factor: 1
  Data alignment factor: 4
  Return address column: 64
  Augmentation data:     9b 00 00 00 00 1b

  DW_CFA_def_cfa: r29 ofs 0
  DW_CFA_nop
  DW_CFA_nop

0000001c 00000020 00000020 FDE cie=00000000 pc=00000024..00000068
  DW_CFA_advance_loc: 20 to 00000038
  DW_CFA_def_cfa_offset: 24
  DW_CFA_advance_loc: 8 to 00000040
  DW_CFA_offset_extended_sf: r28 at cfa-8
  DW_CFA_offset_extended_sf: r30 at cfa-4
  DW_CFA_register: r64 in r31
  DW_CFA_advance_loc: 4 to 00000044
  DW_CFA_def_cfa: r30 ofs 24
  DW_CFA_nop
  DW_CFA_nop


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: catcherf3a.cc
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030917/f3942c8f/attachment.cc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: catcherf3a.s
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030917/f3942c8f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: catcherf3a.s.corrected
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030917/f3942c8f/attachment-0001.ksh>


More information about the Java-patches mailing list