This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Remove dependency on load address of environ
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: fnf at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 26 Apr 2002 21:14:45 -0500
- Subject: Re: [RFA] Remove dependency on load address of environ
I remember looking at that code a year or two ago and wondering
what in the world it was doing with &environ.
I proofread this patch and it looks correct to me, no problems found.
I have not tested it though.
Michael C
2002-04-26 Fred Fish <fnf@redhat.com>
* main.c (display_space_base): Add global variable.
(main): Initialize display_space_base by calling sbrk.
* main.c (captured_main): Add display_space_base decl, remove environ
decl and reference, remove lim variable, use display_space_base.
* top.c (command_loop): Ditto.
* event-top.c (command_handler): Ditto.
(command_line_handler_continuation): Ditto.