[RFA] Remove dependency on load address of environ

Michael Elizabeth Chastain mec@shout.net
Fri Apr 26 19:14:00 GMT 2002


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.



More information about the Gdb-patches mailing list