-
tsoome
ya, fortunately fusion has gdb stub and we can inspect the machine:)
-
gitomat
[illumos-gate] 16820 Ignore library/libxml2/32 during package lint -- Marcel Telka <marcel⊙ts>
-
Posterdati
ho
-
gitomat
[illumos-gate] 16670 libshare: issubdir() error: strcpy() 'dir1' too large for 'childdir' -- Toomas Soome <tsoome⊙mc>
-
richlowe
tsoome_: if you're using source debugging that way, have you seen arm64-gate's .gdbinit?
-
richlowe
it's not perfect (we don't have a way to find the .bss again for it, and it doesn't care about alignment), but it works like, many times out of 10
-
richlowe
unfortunately, the one time it doesn't will really confuse you :\
-
richlowe
anyway, that's what I did before I ported kmdb, and now I often use both at the same time (because I ported kmdb and don't trust it fully yet)
-
tsoome_
I usually do not use source debugging with gdb stub, I have done this just few times:) but it is good to know, thanks
-
richlowe
-
tsoome_
well, as it correctly stated, if we can declare variable in for statement, then why stop there -- it does make sense
-
richlowe
I was just remembering how you dislike if ((foo = bar()) == NULL)
-
richlowe
which isn't that different from if (foo = bar; foo != NULL)
-
richlowe
which seems allowed here regardless of whether the LHS is a declaration
-
richlowe
when I say "isn't that different", you're meant to ignore I reversed the condition like an absolute crumpet
-
tsoome_
well, I still dislike excessive use of assignment statement in if:D but if you add variable declaration to it, that is different;)
-
andyf
I could grow to like that. I'm always trying to scope things down as tightly as possible.
-
jclulow
My preference for assignment in if is definitely at odds with my preference for scope minimisation in C haha
-
jclulow
Hard to reconcile sometimes
-
richlowe
I just dont like _statements_, really.
-
alanc
I certainly like (declaration; value check) better than combining them into a single ((foo = bar()) == NULL) style combo value-setting+check