Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.development.system > #424
| From | Rainer Weikusat <rweikusat@mssgmbh.com> |
|---|---|
| Newsgroups | comp.os.linux.development.system |
| Subject | Re: Starting an application from GDB prompt |
| Date | 2012-05-31 14:20 +0100 |
| Message-ID | <87lik8ebbd.fsf@sapphire.mobileactivedefense.com> (permalink) |
| References | <8bb99d54-c1e4-4c96-9c48-d0cd3d6eeb50@6g2000vbv.googlegroups.com> |
Hari Prasath <gehariprasath@gmail.com> writes:
> I have an application that is to be debugged using GDB. So I can use
> the standard gdb <app_name> and enter into the gdb prompt and then
> start my application,make it to crash and get the backtrace.
>
> But the problem is that the application to be debugged is driven by
> another application which has to be started after this and from the
> same shell session. So my problem is once I am at the gdb prompt, I
> don't know how to start my other application(which is not needed to be
> debugged) which driver the actual application to be debugged.
>
> Any thoughts how to get this done?
- use a 2nd terminal window
- log into a different VT
- send gdb into the background with ^Z, start your application
backgrounded, get back to gdb with 'fg'
- start it via the gdb 'shell' command
OTOH, a much better solution, especially since it also enables you to
get information about uncontrolled crashes, use ulimit -c to ensure
that you get a coredump despite your 'upstream distribution provider'
has silently disabled that lest someone could expect him to fix the
crashes in his software.
Back to comp.os.linux.development.system | Previous | Next — Previous in thread | Next in thread | Find similar
Starting an application from GDB prompt Hari Prasath <gehariprasath@gmail.com> - 2012-05-30 15:55 -0700
Re: Starting an application from GDB prompt Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-05-31 14:20 +0100
Core dumps (was Re: Starting an application from GDB prompt) Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-05-31 21:39 +0000
Re: Core dumps (was Re: Starting an application from GDB prompt) "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-01 01:14 +0200
Re: Core dumps (was Re: Starting an application from GDB prompt) "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-01 01:44 +0200
Re: Core dumps Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-06-01 16:16 +0100
Re: Core dumps Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-06-04 21:22 +0000
Re: Core dumps "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-05 00:29 +0200
Re: Core dumps Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-06-05 06:55 +0000
Re: Core dumps Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-06-05 15:03 +0100
Re: Core dumps Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-06-06 06:56 +0000
Re: Core dumps "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-06 18:25 +0200
shell init files (was: Core dumps) Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-06-06 18:30 +0100
Re: shell init files (was: Core dumps) "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-06-06 21:45 +0200
Re: shell init files Rainer Weikusat <rweikusat@mssgmbh.com> - 2012-06-06 21:17 +0100
csiph-web