Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

st-util: supply osabi to gdb #1387

Merged
merged 1 commit into from Apr 21, 2024
Merged

Conversation

bauen1
Copy link
Contributor

@bauen1 bauen1 commented Apr 17, 2024

Fixes #1386

This branch is currently based on v1.8.0 ; but I can rebase it on the develop branch if necessary.

Tested:

(gdb) show osabi                                                                                                                       
The current OS ABI is "auto" (currently "GNU/Linux").                                                                                  
The default OS ABI is "GNU/Linux".                                                                                                     
(gdb) target extended-remote localhost:4242                                                                                            
Remote debugging using localhost:4242                                                                                                  
0x080001bc in Reset ()                                                                                                                 
(gdb) show osabi                                                   
The current OS ABI is "auto" (currently "none").                   
The default OS ABI is "GNU/Linux".                                 

This tells gdb the osabi to use, which is especially useful if the osabi
is not communicated to gdb by manually setting it, or by a special
section in the ELF file loaded by gdb.
@Nightwalker-87
Copy link
Member

Hi @bauen1. Thanks for your contribution.
The PR shall be fine on the testing branch for further handling.
I'll review it this weekend.

@Nightwalker-87 Nightwalker-87 self-requested a review April 17, 2024 18:06
@Nightwalker-87 Nightwalker-87 added this to the v1.8.1 milestone Apr 17, 2024
@Nightwalker-87 Nightwalker-87 merged commit 5508663 into stlink-org:testing Apr 21, 2024
10 checks passed
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[STM32L4R5ZI]: gdb-multiarch uses wrong osabi
2 participants