Re: [dev] suckless debugger?

2016-08-31 Thread Ben Woolley
> On Aug 31, 2016, at 3:07 PM, Ali H. Fardan wrote: > > u...@netbeisser.de wrote: >> do you know of a suckless linux debugger? what is an alternative to ptrace? > > I use throw a bunch of puts()s around the code to see when it crashes > (or misbehaves), and printf()s to print

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Greg Reagle
On Wed, Aug 31, 2016 at 08:59:05PM +0200, Markus Unterwaditzer wrote: > Hello Greg, > > I think the `unifont` package is it. For comparison, this is the content of > the > bdf-unifont package on ArchLinux: > > /usr/ > /usr/share/ > /usr/share/fonts/ > /usr/share/fonts/misc/ >

Re: [dev] suckless debugger?

2016-08-31 Thread Ali H. Fardan
u...@netbeisser.de wrote: do you know of a suckless linux debugger? what is an alternative to ptrace? I use throw a bunch of puts()s around the code to see when it crashes (or misbehaves), and printf()s to print variables value while the program is running, and getchar()s as a breakpoints.

Re: [dev] suckless debugger?

2016-08-31 Thread Charlie Kester
On Wed 31 Aug 2016 at 12:08:16 PDT Markus Teich wrote: u...@netbeisser.de wrote: do you know of a suckless linux debugger? what is an alternative to ptrace? Heyho Stefan, just use printf debugging. --Markus Even that might not be necessary if your program has enough visible indications of

Re: [dev] [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Wed, Aug 31, 2016 at 09:07:21PM +0200, Markus Unterwaditzer wrote: > On Wed, Aug 31, 2016 at 03:52:36PM +0200, Paul Menzel wrote: > > Dear Markus, > > > > > > On 08/30/16 19:32, Markus Unterwaditzer wrote: > > > > > On Tue, Aug 30, 2016 at 01:30:20PM +0200, Paul Menzel wrote: > > > > > None.

Re: [dev] suckless debugger?

2016-08-31 Thread Martin Kühne
Also, when in doubt, look things up in the C standard which you pass to -std=. Any case that you find practically not covered by printf, especially wrt to -O* would mean you are compiling code with unspecified/undefined behavior. It's not necessary to land in C's pitfalls if you learn to C

Re: [dev] [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Wed, Aug 31, 2016 at 03:52:36PM +0200, Paul Menzel wrote: > Dear Markus, > > > On 08/30/16 19:32, Markus Unterwaditzer wrote: > > > On Tue, Aug 30, 2016 at 01:30:20PM +0200, Paul Menzel wrote: > > > > None. > > > > > > How do you start dwm? > > > > A simple `dwm` in `.xinitrc`. You can

[dev] suckless debugger?

2016-08-31 Thread u
morrn, do you know of a suckless linux debugger? what is an alternative to ptrace? -- Greetings Stefan

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Wed, Aug 31, 2016 at 01:35:30PM -0400, Greg Reagle wrote: > On Wed, Aug 31, 2016, at 01:05 PM, Markus Unterwaditzer wrote: > > Greg, the issue only appears to me if I install bdf-unifont from > > [extras]. > > Okay. I don't have that package available on Debian 8.5. Would any of > these be

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Wed, Aug 31, 2016 at 03:36:10PM +0200, FRIGN wrote: > On Wed, 31 Aug 2016 15:29:25 +0200 > Markus Unterwaditzer wrote: > > Hey Markus, > > > Here's another one that fails: > > > > PROMPT_COMMAND='echo -ne "\x1b]0;\xf0\x9f\xa4\x94\x07"' > > > > taken from: > >

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Greg Reagle
On Wed, Aug 31, 2016, at 01:05 PM, Markus Unterwaditzer wrote: > Greg, the issue only appears to me if I install bdf-unifont from > [extras]. Okay. I don't have that package available on Debian 8.5. Would any of these be appropriate? greg@t400 ~> acseno bdf bdfresize - tool for resizing BDF

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Wed, Aug 31, 2016 at 10:30:58AM -0400, Greg Reagle wrote: > On Wed, Aug 31, 2016, at 09:29 AM, Markus Unterwaditzer wrote: > > Here's another one that fails: > > > >     PROMPT_COMMAND='echo -ne "\x1b]0;\xf0\x9f\xa4\x94\x07"' > > Well it shows up for me as a sort of inverse (foreground and

Re: [dev] [dwm] resize cursor

2016-08-31 Thread Cág
If anyone doesn't want to mess with their code, I made a patch. Cágdiff --git a/dwm.c b/dwm.c index 421bf27..26ef7bf 100644 --- a/dwm.c +++ b/dwm.c @@ -1580,7 +1580,7 @@ setup(void) netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False); /* init cursors */ cursor[CurNormal] =

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Greg Reagle
On Wed, Aug 31, 2016, at 09:29 AM, Markus Unterwaditzer wrote: > Here's another one that fails: > >     PROMPT_COMMAND='echo -ne "\x1b]0;\xf0\x9f\xa4\x94\x07"' Well it shows up for me as a sort of inverse (foreground and background switched) question mark, but no malfunction, and this is from

Re: [dev] [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Paul Menzel
Dear Markus, On 08/30/16 19:32, Markus Unterwaditzer wrote: On Tue, Aug 30, 2016 at 01:30:20PM +0200, Paul Menzel wrote: None. How do you start dwm? A simple `dwm` in `.xinitrc`. You can view the entire setup here: https://github.com/untitaker/dotfiles Did you already try running dwm

Re: [dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread FRIGN
On Wed, 31 Aug 2016 15:29:25 +0200 Markus Unterwaditzer wrote: Hey Markus, > Here's another one that fails: > > PROMPT_COMMAND='echo -ne "\x1b]0;\xf0\x9f\xa4\x94\x07"' > > taken from: > > https://twitter.com/djm_/status/770938881206317056 > > I seriously do

[dev] Re: [dwm] Crash when setting window title to a single emoji

2016-08-31 Thread Markus Unterwaditzer
On Mon, Aug 29, 2016 at 07:56:56PM +0200, Markus Unterwaditzer wrote: > Hello, > > > I'm getting crashes with a particular emoji in the window title. Enter the > following in st/termite/xterm/urxvt (without tmux inbetween): > > PROMPT_COMMAND='echo -ne "\x1b]0;\xe2\x9b\x93b\x07"' > >