Re: Debug version of firefox
On 2019-05-06 04:33, Michael Zhilin wrote: > Hi, > > pstack shows firefox methods for example: > [...] Thanks for the suggestion, but in practice I get: (core file "firefox.core"): /usr/local/bin/firefox - thread -1 (running) - 0x80208d47a (11b76432, 8, , 0, 400, 0) 0x811b76432 (123d1745, 8, 2363898, 8, 12b59ae5, 0) 0x8123d1745 (1da9954, 8, 0, 7fff, 1, 0) 0x801da9954 (1da8eb2, 8, 123d15f0, 8, 51, 0) 0x801da8eb2 (e193, 7fff, 1da8d70, 8, 0, 0) 0x7fffe193 (e8b2f6c, 8, df109810, 7fff, e91ac4e, 8) 0x80e8b2f6c (e91ac4e, 8, 21af9f40, 8, 1e9aab58, 8) 0x80e91ac4e (e94c63d, 8, 0, 0, 0, 1) 0x80e94c63d (e91e30e, 8, 1435ff20, 8, 1e9aab58, 8) 0x80e91e30e (e91e182, 8, df109910, 7fff, 2078374, 4) 0x80e91e182 (e9230f5, 8, 1e9aab50, 8, 27efbb88, 8) 0x80e9230f5 (e9229c9, 8, df1099e0, 7fff, 23e5a, 11) 0x80e9229c9 (e94c9ae, 8, df109a30, 7fff, 21073f1, 18) 0x80e94c9ae (e925a7c, 8, 27efbb88, 8, df109aa0, 7fff) 0x80e925a7c (ea0a84b, 8, df109bf0, 7fff, e95b405, 0) 0x80ea0a84b (e8aee92, 8, 1, 0, 21b2aa00, 8) 0x80e8aee92 (e8adddc, 8, df109c90, 7fff, 2533f738, 8) 0x80e8adddc (e8ae95e, 8, 27efbb40, 8, df109e40, 7fff) 0x80e8ae95e (e873d35, 8, 20a4f000, 8, df109e40, 7fff) 0x80e873d35 (e87404b, 8, 0, 0, 0, 0) 0x80e87404b (e874881, 8, 236b200, 8, 21ad7f88, 8) 0x80e874881 (e873748, 8, 21eb27b0, 8, 1, 0) 0x80e873748 (e889cf5, 8, 0, 0, 0, 0) 0x80e889cf5 (e879f2a, 8, df109ff0, 7fff, 1da3c06, 8) 0x80e879f2a (1da3c06, 8, 0, 0, 0, 0) 0x801da3c06 (0, 0) -- George signature.asc Description: OpenPGP digital signature
Re: Debug version of firefox
On 2019-05-06 00:49, Robert Huff wrote: > [...] > Has anyone asked the maintainer, which I believe is > "ge...@freebsd.org"? > [...] I have done so now; thanks!-- George signature.asc Description: OpenPGP digital signature
Re: Debug version of firefox
Hi, pstack shows firefox methods for example: - thread 100583 (running) - 0x80151cf5a 0x7fffd980 __sys_poll (13c2aa0, 8, 0, 0, 12f1e30, 8) + a in libc.so.7 0x8013c2aa0 0x7fffd9b0 poll (7898b74, 8, da24, 7fff, 0, 0) + 30 in libc.so.7 0x807898b74 0x7fffda00 PollWrapper(_GPollFD*, unsigned int, int) (2fb3cc7, 8, 1, 1, 3789540, 8) + 54 in libxul.so 0x802fb3cc7 0x7fffda50 (2fb3dd4, 8, 1, 0, cb4a400, 8) in libglib-2.0.so.0 0x802fb3dd4 0x7fffda70 g_main_context_iteration (7898d0b, 8, dae0, 7fff, 7855de5, 8) + 64 in libglib-2.0.so.0 0x807898d0b 0x7fffda80 nsAppShell::ProcessNextNativeEvent(bool) (7855de5, 8, 128bbe50, 8, 0, 0) + b in libxul.so 0x807855de5 0x7fffdae0 nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (7855f3d, 8, dbf0, 7fff, 546e69e, 8) + 1b5 in libxul.so 0x807855f3d 0x7fffdaf0 virtual function non-virtual override offset : -8 nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (546e69e, 8, db50, 7fff, fae5f80, 8) + d in libxul.so 0x80546e69e 0x7fffdbf0 nsThread::ProcessNextEvent(bool, bool*) (547110b, 8, dc20, 7fff, 4f27b4d8, a873a41d) + 13e in libxul.so 0x80547110b 0x7fffdc20 NS_ProcessNextEvent(nsIThread*, bool) (5816a0f, 8, cb4a400, 8, 17e09b0, 8) + 4b in libxul.so 0x805816a0f 0x7fffdc60 mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (57d67fb, 8, 9fefc01, 8, 2, 0) + cf in libxul.so 0x8057d67fb 0x7fffdca0 MessageLoop::Run(void) (7855af9, 8, 17e09b0, 8, 17e09b0, 8) + 5b in libxul.so 0x807855af9 0x7fffdcc0 nsBaseAppShell::Run(void) (8dea7a7, 8, 128bbe20, 8, 4f27b4d8, a873a41d) + 29 in libxul.so 0x808dea7a7 0x7fffdcf0 XRE_RunAppShell(void) (57d67fb, 8, dd30, 7fff, 1, 0) + 47 in libxul.so 0x8057d67fb 0x7fffdd30 MessageLoop::Run(void) (8dea48e, 8, 1, 7fff, 1833700, 8) + 5b in libxul.so 0x808dea48e 0x7fffdf10 XRE_InitChildProcess(int, char**, XREChildData const*) (102d568, 0, 0, 0, 0, 0) + 34e in libxul.so 0x102d568 0x7fffe360 main (102d10b, 0, 0, 0, 15, 0) + 1e8 in firefox 0x102d10b 0x7fffe3b0 _start (1084000, 8, 0, 0, 15, 0) + 10b in firefox Information about methods is stored in dwarf2 structures of files. I suppose it should be enough for debugging by GDB. Is it not enough? Thanks! On Mon, May 6, 2019 at 8:10 AM Robert Huff wrote: > > Anders Jensen-Waud writes: > > > On 5/5/19 8:56 am, George Mitchell wrote: > > > I tried compiling a debugging version of firefox: > > > > > > cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install > > > > > > The resulting binary had no debug symbols. What did I do wrong? > > > -- George > > > > > WITH_DEBUG may not modify Firefox's actual makefile to do what you > want. > > I would see if you need to monkey patch './configure' with a flag or > two. > > Has anyone asked the maintainer, which I believe is > "ge...@freebsd.org"? > > > Respectfully, > > > Robert Huff > > > ___ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org" > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Debug version of firefox
Anders Jensen-Waud writes: > On 5/5/19 8:56 am, George Mitchell wrote: > > I tried compiling a debugging version of firefox: > > > > cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install > > > > The resulting binary had no debug symbols. What did I do wrong? > > -- George > > > WITH_DEBUG may not modify Firefox's actual makefile to do what you want. > I would see if you need to monkey patch './configure' with a flag or two. Has anyone asked the maintainer, which I believe is "ge...@freebsd.org"? Respectfully, Robert Huff ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Debug version of firefox
On 5/5/19 8:56 am, George Mitchell wrote: I tried compiling a debugging version of firefox: cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install The resulting binary had no debug symbols. What did I do wrong? -- George WITH_DEBUG may not modify Firefox's actual makefile to do what you want. I would see if you need to monkey patch './configure' with a flag or two. ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: Debug version of firefox
Hi, AFAIK, firefox uses dwarf2 even if no WITH_DEBUG option is used. Thank! On Sun, May 5, 2019 at 2:24 AM George Mitchell wrote: > I tried compiling a debugging version of firefox: > > cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install > > The resulting binary had no debug symbols. What did I do wrong? > -- George > > ___ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Debug version of firefox
I tried compiling a debugging version of firefox: cd /usr/ports/www/firefox; make clean; make WITH_DEBUG=yes install The resulting binary had no debug symbols. What did I do wrong? -- George signature.asc Description: OpenPGP digital signature