You can attach to a running child in one of the following ways.
$ dbx progname pid
(dbx) debug progname pid
You can substitute progname with the name - (minus sign), so dbx finds the executable associated with the given process id (pid). After using a -, a subsequent run or rerun will not work because dbx does not know the full path name of the executable.