-fpack-struct problems with gdb 5.3

Matthew J Fletcher mfletcher@serck-controls.co.uk
Mon Jun 30 14:40:00 GMT 2003


Hi,

i am using the gcc -fpack-struct flag with gcc2.96-82mdk to pack all 
structures (needed to for some asm routines). the problem being
is that gdb-5.3 does not correctly recognise the structs as packed and
so displayes them as if they were not, (viewing the memory region shows
what it should look like).

so may i ask can gdb view packed structs ?, is there a way to tell from the 
ELF mapfile or any other objdump information that the compiler has poorly
generated the debug info ?

or is there any way to investigate this further myself.

regards

---
Matthew J Fletcher
Embedded Software
Serck Controls Ltd
---

**********************************************************************
Serck Controls Ltd, Rowley Drive, Coventry, CV3 4FH, UK
Tel: 44 (0) 24 7630 5050   Fax: 44 (0) 24 7630 2437
Web: www.serck-controls.com  Admin: post@serck-controls.co.uk
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the above.  Any views or opinions presented are solely those of the
author and do not necessarily represent those of Serck Controls Ltd.
Please note that Serck Controls Ltd is able to, and reserves the right
to, monitor e-mail communications passing through its network.
This email has been checked for viruses.  Serck Controls Ltd shall not
be responsible for damage caused by any undetected virus.
**********************************************************************
Serck Controls Ltd is a subsidiary of Serck Controls Pty. Ltd.
Registered in England No. 4353634.
**********************************************************************


******************************************************************
This message has been checked for all known viruses by MessageLabs
******************************************************************



More information about the Gdb mailing list