This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: amd64 executable debugging
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: vijay nag <vijunag at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 25 Mar 2018 07:35:08 -0400
- Subject: Re: amd64 executable debugging
- References: <CAKhyrx-QBqN85fXQnoE+4c9B84xsUZ+DroFfjHQPcXxX5d9kjg@mail.gmail.com> <CAKhyrx-DKjK0rBxnZF8AfmxyX92esSqhkV5g8xL6TDOXMn4qcQ@mail.gmail.com> <CAKhyrx9tfUc5qkWfeTAURJovHvjQN0g2zER-iKiuP+gyvx9Z+g@mail.gmail.com> <CAKhyrx-pEi+jJD9zAvUpcuMeY3nocB1VVKv6ro8DE6m-8NYGuA@mail.gmail.com> <CAKhyrx9C9R7_AJaL8YC2Wz74Hk+-FtxMcOoZQPPztmDnSOyVGw@mail.gmail.com> <CAKhyrx-7=dJOB9Mz=JdauejT7QLyJA4iAjNiH+fejsX397=bHA@mail.gmail.com> <CAKhyrx8XLzP1MKp_YZFE0nmk1Q51WRXNMEzO5kHNjjB5ypWk5g@mail.gmail.com> <CAKhyrx-Pc5KZbtyPSOAc+XLJNDXYsJG9umZCFShLrJ54ELMtiA@mail.gmail.com> <CAKhyrx84JMZ2tBB2FE0gux8aF2Jd9k8571ni6-u4w3G5Chy8Dw@mail.gmail.com> <CAKhyrx-3h2KAU4jy2t_fbYZa32ZwZRYdZuB==oBvKtQQzq1v3w@mail.gmail.com> <CAKhyrx_cATMnN_R6BL+X0mynNw7rLh2b7ekmbrEZsG3AV8wP_A@mail.gmail.com> <CAKhyrx8B3AD6BR8Obi-2mALfrbk20bE3J6EJa=87-Qr4XBwwMQ@mail.gmail.com> <CAKhyrx-q-+LBActXatdDqFZCUCTdMFxqEYvz9pMTRBK4ahX8uQ@mail.gmail.com> <CAKhyrx9LHywr=zK7w5k+VL=WQF+xuMK+=Y4sL+F_BOAq0rjKMQ@mail.gmail.com> <CAKhyrx9Y7GSN0PrUBYsPi63ngQKkpsyNbMf5+x6TBpinqF=D2Q@mail.gmail.com> <CAKhyrx8tH6bCziypL_aDiyF_x0HZt6TQQa1gSSdW-eYEB1AEEA@mail.gmail.com> <CAKhyrx9jKJShS2rgL9S=h3rpqq++mB6j=8Y88UXJ9dn7DbwB+g@mail.gmail.com> <CAKhyrx9t6VGEe5Zc-KwO3Cp-KLV+JUqtCnbQaUK7qcQqToz2aA@mail.gmail.com> <CAKhyrx8vBjMg+140b8XWLnw92-J1oh206sO6UOtR7X7BCnDL+w@mail.gmail.com> <d3802e89a10ea2e1bb56a61b9de28712@polymtl.ca> <CAKhyrx8jgp6P034apSsvvEYpg23B6qMLGXJiMY-xoqbexd7SnQ@mail.gmail.com> <CAKhyrx_xhoEUrS8WQGdB3+a_Mrxsjh3APhD5WfAHtx8z+gHCFA@mail.gmail.com>
On 2018-03-25 02:04, vijay nag wrote:
I mean the executable was built with -O2. The question is has GDB
somehow
managed to fix this problem on optimized binaries ?
If GDB says the value is optimized out, it's probably because it's
really not available. However, if you are able to find the value by
unwinding by hand, it could mean that the DWARF information output by
the compiler could be enhanced so that debuggers are able to find it as
well.
Simon