Bug 16206

Summary: gnu debugger ARM Android compilation
Product: gdb Reporter: SFENCE <sfence.software>
Component: buildAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: qiyao, sfence.software
Priority: P2    
Version: 7.6   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: diff patch of changes which I have done
diff path without useless informations

Description SFENCE 2013-11-22 17:45:52 UTC
Created attachment 7296 [details]
diff patch of changes which I have done

Here is some problems with compilation of gdb on Android by native gcc compiler 4.8.

I have fixed this problems with my knowledge.

I add path of differences I had to do to fix it.
To fix one problem, it was easier way for my to add preprocessor directive to android system header.

Feel free to ask me about everything. I can share my experiences with gdb Android compilation.
Comment 1 SFENCE 2013-11-22 22:13:46 UTC
Created attachment 7297 [details]
diff path without useless informations

For better clear arrangement...
Comment 2 Yao Qi 2013-11-23 07:21:51 UTC
(In reply to SFENCE from comment #1)
> Created attachment 7297 [details]
> diff path without useless informations
> 
> For better clear arrangement...

The changes look a little hacky and they may have some effects on other targets.

These patches work, but I am afraid they are not acceptable.  If you want to have a try, please send them to different mail lists because they belong to different projects.
 - Changes in bfd should be sent to binutils mailing list,
 - Changes in libiberty should be sent to gcc mailing list,
 - Changes in readline should be sent to list of project readline.  Once it is accepted, backport it to GDB
 - Changes in gdb should be sent to gdb mailing list.
Comment 3 SFENCE 2013-11-23 09:27:33 UTC
(In reply to Yao Qi from comment #2)
> (In reply to SFENCE from comment #1)
> > Created attachment 7297 [details]
> > diff path without useless informations
> > 
> > For better clear arrangement...
> 
> The changes look a little hacky and they may have some effects on other
> targets.
> 
> These patches work, but I am afraid they are not acceptable.  If you want to
> have a try, please send them to different mail lists because they belong to
> different projects.
>  - Changes in bfd should be sent to binutils mailing list,
>  - Changes in libiberty should be sent to gcc mailing list,
>  - Changes in readline should be sent to list of project readline.  Once it
> is accepted, backport it to GDB
>  - Changes in gdb should be sent to gdb mailing list.

I have just compiled actual release of readline projects without any problems on ARM Android. But the change I have added to readline in GDB source missed here. It is probably solved by configure.