|
From: Milian W. <ma...@mi...> - 2010-10-19 14:57:19
|
Hello Valgrinders, I have some questions related to --xml=yes mode: 1) Why is it not possible to turn off leak check? The --leak-check=no option will not show any effect. Sadly this is not even documented as far as I can see, nor do I get an error telling me that mixing these options is not possible. To me it looks as if in xml=yes mode, you always have --leak-check=full enabled, just without any kind of summary (the XML format has no elements for that). Considering how the =full mode slows down valgrind runs, I wonder why this is not possible to turn of? I have the feeling that there are other options that have different default settings and/or no effect in --xml=yes mode, what are those? Where is this documented? 2) The valgrind documentation says that one should use the following option: --child-silent-after-fork=yes This essentially means debugging applications that fork is not possible in XML mode? Why couldn't simply another file be created, or a second connection to the socket be created? I mean I don't have much knowledge in this area, but a web server runs on $server:80 and multiple clients can connect to that, or? Couldn't this be done in valgrind (==client) as well? 3) Similar to 2) I wonder why it's not possible to create suppressions or attach a debugger in xml mode. Basically this would also mean: valgrind asks some server via socket whether to attach debugger or create suppression at given position. Is it simply not implemented or was there a reason for this? Thanks, bye -- Milian Wolff ma...@mi... http://milianw.de |
|
From: WAROQUIERS P. <phi...@eu...> - 2010-10-19 18:36:34
|
>3) Similar to 2) I wonder why it's not possible to create >suppressions or >attach a debugger in xml mode. Basically this would also mean: >valgrind asks some server via socket whether to attach >debugger or create >suppression at given position. Is it simply not implemented or >was there a >reason for this? Note that the gdbserver patch (see http://bugs.kde.org/show_bug.cgi?id=214909 ) (a.o.) to debug together with --xml=yes. (as the interaction with the user is done from a gdb started by the user, typically from another window). To have the --db-attach=yes together with xml, I guess the gdb (which is started by valgrind) would also have to avoid using stdin and similar (even if the question to attach would be asked through a socket). Philippe ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. |