https://bugs.kde.org/show_bug.cgi?id=434057

--- Comment #21 from Paul Floyd <pjfl...@wanadoo.fr> ---
It seems quite intermittent. I've only reproduced it once, and without
debug/verbose.

I had a very quick look on Illumos and Darwin and Illumos has a man page for
accept4 but not Darwin.

I also tried to make the startup even easier and after searching a bit and
getting some info on SO I came up with

define set-program-name
  set logging file tmp.gdb
  set logging overwrite on
  set logging redirect on
  set logging enabled on
  python print(f"set $programname = \"{gdb.current_progspace().filename}\"")
  set logging enabled off
  set logging redirect off
  set logging overwrite off
  source tmp.gdb
end

define start_vg
  set-program-name
  eval "set remote exec-file %s", $programname
  show remote exec-file
  set sysroot /
  target extended-remote | vgdb --multi --vargs -q
  start
end

I can't find an easy way to get the inferior in gdb (in general there isn't
always just one).

Again I don't know how to do it, but this gdb function would be nicer if
there's a way to pass args to the vgdb line to pass on to valgrind.

Something like

if $argc >= 2
  while $i < $argc
    eval "set $args = $args arg%d", $i
    set $i = $i + 1
  end

  eval "target extended-remote | vgdb --multi --vargs -q %s", $args

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to