GDB and XIP libraries

Is it possible to load symbols from libraries which are contained in XIP
memory? I’m having some trouble setting breakpoints and thought this could
be a culprit.

thanks
Charlie

Charlie Surface <charlie_surface@oti.com> wrote:

Is it possible to load symbols from libraries which are contained in XIP
memory? I’m having some trouble setting breakpoints and thought this could
be a culprit.

thanks
Charlie

Hi. Can you provide us with the set of commands you are using to
load the symbol info for the shared libs? You need to type “shared”, or
have auto-solib-add set to 1 before running your app. Do the breakpoints
work if the libs are not in XIP?

Thanks.
GP

Thanks for the response. In fact, I was eventually able to correctly set
breakpoints in the library. There have been some other problems (which are
now corrected) with XIP on our target, so I was just curious about any known
issues.

Charlie

“Graeme Peterson” <gp@node128.ott.qnx.com> wrote in message
news:alo05f$702$1@nntp.qnx.com

Charlie Surface <> charlie_surface@oti.com> > wrote:
Is it possible to load symbols from libraries which are contained in XIP
memory? I’m having some trouble setting breakpoints and thought this
could
be a culprit.

thanks
Charlie

Hi. Can you provide us with the set of commands you are using to
load the symbol info for the shared libs? You need to type “shared”, or
have auto-solib-add set to 1 before running your app. Do the breakpoints
work if the libs are not in XIP?

Thanks.
GP

Charlie Surface <charlie_surface@oti.com> wrote:

Thanks for the response. In fact, I was eventually able to correctly set
breakpoints in the library. There have been some other problems (which are
now corrected) with XIP on our target, so I was just curious about any known
issues.

Charlie

The only other issue brought to my attention as a potential ‘gotcha’
is that you cannot set breakpoints in binaries that are XIP in ROM.
you have to be able to write to them.

Regards,
GP

“Graeme Peterson” <> gp@node128.ott.qnx.com> > wrote in message
news:alo05f$702$> 1@nntp.qnx.com> …
Charlie Surface <> charlie_surface@oti.com> > wrote:
Is it possible to load symbols from libraries which are contained in XIP
memory? I’m having some trouble setting breakpoints and thought this
could
be a culprit.

thanks
Charlie

Hi. Can you provide us with the set of commands you are using to
load the symbol info for the shared libs? You need to type “shared”, or
have auto-solib-add set to 1 before running your app. Do the breakpoints
work if the libs are not in XIP?

Thanks.
GP