1*b725ae77SkettenisFri Dec 28 00:13:42 1990  John Gilmore  (gnu at cygint)
2*b725ae77Skettenis
3*b725ae77Skettenis	Further stabilization for the Intel 960.
4*b725ae77Skettenis
5*b725ae77Skettenis	* Makefile.dist: Parameterize the location of the "include"
6*b725ae77Skettenis	and "bfd" directories, as well as "getopt".  Add symfile.c.
7*b725ae77Skettenis	Link in both dbxread and coffread.  Fix up "make depend" to
8*b725ae77Skettenis	rewack the locations of include, bfd, and getopt in its output.
9*b725ae77Skettenis
10*b725ae77Skettenis	* README:  Document moving include files, improve some of
11*b725ae77Skettenis	the other doc.
12*b725ae77Skettenis
13*b725ae77Skettenis	* coffread.c:  Move common code out to symfile.c.  Change
14*b725ae77Skettenis	symbol_file_command style interface to use new *_symfile_init
15*b725ae77Skettenis	and *_symfile_read interface under BFD.  Use BFD internal
16*b725ae77Skettenis	info to locate line table, symbols, etc.
17*b725ae77Skettenis
18*b725ae77Skettenis	* core.c (core_fetch_registers):  Rename to get_core_registers
19*b725ae77Skettenis	to avoid confusion with fetch_core_registers.
20*b725ae77Skettenis	(register_addr):  Move to coredep.c, which is already machine
21*b725ae77Skettenis	dependent.  This leaves core.c pretty clean of dependencies.
22*b725ae77Skettenis
23*b725ae77Skettenis	* coredep.c (register_addr):  Accept this routine from core.c.
24*b725ae77Skettenis
25*b725ae77Skettenis	* dbxread.c: Move common code (with coffread.c, etc) into new
26*b725ae77Skettenis	symfile.c.  Each psymtab now contains a pointer to the
27*b725ae77Skettenis	format-dependent function that knows how to read it in.  Make
28*b725ae77Skettenis	some things static.
29*b725ae77Skettenis	(dbx_psymtab_to_symtab): Renamed from psymtab_to_symtab_2.
30*b725ae77Skettenis	(process_one_symbol): Add code to complain about a "compiler bug
31*b725ae77Skettenis	we muzzle here", if we actually see it.
32*b725ae77Skettenis
33*b725ae77Skettenis	* eval.c (evaluate_subexp):  Insert missing "break" statements
34*b725ae77Skettenis	in code that determines whether a variable is an lvalue in
35*b725ae77Skettenis	memory, register, or whatever.	I detected this via a compiler
36*b725ae77Skettenis	bug in which it *almost* mashed out the whole switch statement.
37*b725ae77Skettenis
38*b725ae77Skettenis	* gdb-int.texinfo:  Add minor sections on configuring gdb for
39*b725ae77Skettenis	release, and about the README file.
40*b725ae77Skettenis
41*b725ae77Skettenis	* infcmd.c (registers_info):  Fix formatting somewhat.  Still
42*b725ae77Skettenis	not as pretty as before, but it handles byte swapping.
43*b725ae77Skettenis
44*b725ae77Skettenis	* remote-nindy.c: If data cache routines are interrupted while
45*b725ae77Skettenis	waiting for the remote end, be sure that any uninitialized cache
46*b725ae77Skettenis	blocks are on the free list, not on the valid list!
47*b725ae77Skettenis
48*b725ae77Skettenis	* symfile.h: Flesh out this header file with all the various
49*b725ae77Skettenis	routines and variables that have been merged in from dbxread.c
50*b725ae77Skettenis	coffread.c, and symtab.c to symfile.c.
51*b725ae77Skettenis
52*b725ae77Skettenis	* symfile.c: New file, containing code common to dbxread.c,
53*b725ae77Skettenis	coffread.c, and some code from symtab.c.  All generic code for
54*b725ae77Skettenis	reading symbol files should be in here now.
55*b725ae77Skettenis	(unrecord_misc_function):  Remove unused function.
56*b725ae77Skettenis
57*b725ae77Skettenis	* symtab.h:  Remove file-reading things to symfile.h.
58*b725ae77Skettenis
59*b725ae77Skettenis	* symtab.c:  Remove file-reading things to symfile.c.
60*b725ae77Skettenis
61*b725ae77Skettenis	* tm-i960.h:  Fix FRAME_CHAIN types; define PRINT_RANDOM_SIGNAL
62*b725ae77Skettenis	to decode i960 fault types.
63*b725ae77Skettenis
64*b725ae77Skettenis	* target.h, remote.c, remote-eb.c, remote-vx.c, remote-nindy.c,
65*b725ae77Skettenis	target.c: Change type of the "resume" function from int to void,
66*b725ae77Skettenis	since its result was never used.
67*b725ae77Skettenis
68*b725ae77SkettenisSat Dec 22 02:51:40 1990  John Gilmore  (gnu at cygint)
69*b725ae77Skettenis
70*b725ae77Skettenis	* main.c:  Replace "stupid" with "caution"; you now "set caution
71*b725ae77Skettenis	on or off".
72*b725ae77Skettenis
73*b725ae77Skettenis	* printcmd.c (print_scalar_formatted):  Fix typo in 'g' format
74*b725ae77Skettenis
75*b725ae77Skettenis	* infcmd.c (do_registers_info):  Call val_print to deal with the
76*b725ae77Skettenis	byte order of the registers being printed.  FIXME, this makes
77*b725ae77Skettenis	the formatting of the output uglier.
78*b725ae77Skettenis
79*b725ae77Skettenis	* infcmd.c (wait_for_inferior):  If PRINT_RANDOM_SIGNAL is
80*b725ae77Skettenis	defined, call it for signals the debugger doesn't itself use.
81*b725ae77Skettenis	The i960 uses this for more detailed fault information.
82*b725ae77Skettenis
83*b725ae77Skettenis	* remote.c (remote_open):  If arg is null, print help rather than
84*b725ae77Skettenis	dumping core.
85*b725ae77Skettenis
86*b725ae77Skettenis	* sparc-xdep.c (register_valid):  Avoid declaring size, since
87*b725ae77Skettenis	various modules will think of various sizes depending on the
88*b725ae77Skettenis	architecture of their tm-file.  FIXME, we need protection against
89*b725ae77Skettenis	actually entering one of those modules, which would clobber
90*b725ae77Skettenis	storage if not for the target architecture compiled into gdb.
91*b725ae77Skettenis
92*b725ae77Skettenis	* stack.c (up_command, down_command):  Always print the frame
93*b725ae77Skettenis	you arrive at.
94*b725ae77Skettenis	(up_silently_command, down_silently_command):  New commands
95*b725ae77Skettenis	for use in scripts.
96*b725ae77Skettenis
97*b725ae77Skettenis	* i960-pinsn.c (reg), i960-tdep.c:  Lint.
98*b725ae77Skettenis
99*b725ae77Skettenis	* i960-tdep.c (i960_frame_chain_valid): Lookup_symbol now takes
100*b725ae77Skettenis	more parameters than it used to.
101*b725ae77Skettenis
102*b725ae77Skettenis	* findvar.c (registers):  Increase slop to 256 bytes, which should
103*b725ae77Skettenis	protect us against even most RISC machines with large register
104*b725ae77Skettenis	sets.
105*b725ae77Skettenis	(locate_var_value):  Move declaration inside related ifdef.
106*b725ae77Skettenis
107*b725ae77Skettenis	* remote-nindy.c ():  Use TIOCSETN rather than TIOCSETP
108*b725ae77Skettenis	throughout, to avoid throwing away buffered input from the board.
109*b725ae77Skettenis	(nindy_wait):  Supply_register takes addr_of_value, not value.
110*b725ae77Skettenis	(i960_print_fault):  Renamed from i80960_fault.
111*b725ae77Skettenis	(nindy_fetch_registers):  Avoid have_regs stuff, just get them.
112*b725ae77Skettenis	(nindy_store_registers):  Avoid regs_changed stuff, just stuff
113*b725ae77Skettenis	them.
114*b725ae77Skettenis	(nindy_create_inferior):  Don't bother to write PC_REGNUM since
115*b725ae77Skettenis	we can set the PC in the call to proceed().  Unpush nindy_ops
116*b725ae77Skettenis	before pushing it on top, to avoid message to user.  Eliminate
117*b725ae77Skettenis	commentary from Unix machines that just misleads here.
118*b725ae77Skettenis	(reset_command):  Fix error message to suggest target command.
119*b725ae77Skettenis
120*b725ae77SkettenisWed Dec 19 11:03:56 1990  John Gilmore  (gnu at cygint)
121*b725ae77Skettenis
122*b725ae77Skettenis	Release 3.92.5 as frozen.
123*b725ae77Skettenis
124*b725ae77Skettenis	Stabilize the merged release...with help from lint, Saber C,
125*b725ae77Skettenis	gcc -W, etc.
126*b725ae77Skettenis
127*b725ae77Skettenis	Everywhere:  Add include files needed to declare return types
128*b725ae77Skettenis	of functions called.
129*b725ae77Skettenis
130*b725ae77Skettenis	* gdb.texinfo:  Roland Pesch is documenting gdb, glory be!
131*b725ae77Skettenis
132*b725ae77Skettenis	* breakpoint.h:  Add undeclared breakpoint functions, and some
133*b725ae77Skettenis	functions for display handling since I couldn't think of a better
134*b725ae77Skettenis	.h to put them in.
135*b725ae77Skettenis
136*b725ae77Skettenis	* breakpoint.c (insert_breakpoints):  Make code for disabling
137*b725ae77Skettenis	shared library bkpts more likely to work.  It's used when we
138*b725ae77Skettenis	rerun a program and stop before the shared library has been
139*b725ae77Skettenis	mapped in.
140*b725ae77Skettenis	(breakpoint_cond_eval, bpstat_stop_status):  Pass arg as int,
141*b725ae77Skettenis	cast from pointer, so it squeezes through catch_errors.
142*b725ae77Skettenis	(bpstat_stop_status):  Fix logic broken some time ago.  We now
143*b725ae77Skettenis	always create a bpstat if the stop address matches a breakpoint,
144*b725ae77Skettenis	even if we don't stop there -- just like the old code used to do
145*b725ae77Skettenis	before I got my fingers into it (sigh).
146*b725ae77Skettenis	(breakpoint_1):  Print "ignore count" after "stop only if"
147*b725ae77Skettenis	condition, since that's how it actually works.
148*b725ae77Skettenis	(mention):  Handle watchpoints as well as breakpoints.
149*b725ae77Skettenis	(watch_command):  use set_raw_breakpoint and mention to do most
150*b725ae77Skettenis	of the work (and initialize all the fields!).  Only pass one
151*b725ae77Skettenis	arg to parse_c_expression, since that's all it takes.
152*b725ae77Skettenis
153*b725ae77Skettenis	* command.c (not_just_help_class_command):  Rename arg to args
154*b725ae77Skettenis	since we ignore "unused argument" warnings on vars named "args".
155*b725ae77Skettenis	inflow.c (child_terminal_info):  ditto.
156*b725ae77Skettenis	infptrace.c (kill_inferior):  ditto
157*b725ae77Skettenis	main.c (catch_errors, version_info, quit_command, pwd_command,
158*b725ae77Skettenis	source_command, dump_me_command, editing_info,
159*b725ae77Skettenis	set_history_size_command, set_history, show_history,
160*b725ae77Skettenis	set_verbose): ditto
161*b725ae77Skettenis	stack.c (locals_info):  ditto
162*b725ae77Skettenis	target.c (target_files_info):  ditto
163*b725ae77Skettenis	valprint.c (set_input_radix, set_output_radix):  ditto
164*b725ae77Skettenis
165*b725ae77Skettenis	* core.c:  Remove old variables for handling core and exec file
166*b725ae77Skettenis	sections (data_start, data_end, stack_start, stack_end,
167*b725ae77Skettenis	reg_stack_start, reg_stack_end, reg_stack_offset, text_start,
168*b725ae77Skettenis	text_end, exec_data_start, exec_data_end, text_offset,
169*b725ae77Skettenis	exec_data_offset, data_offset, stack_offset).  They're
170*b725ae77Skettenis	superseded the more general build_section_table and
171*b725ae77Skettenis	xfer_memory.
172*b725ae77Skettenis	(get_exec_file):  Mention the `file' command.
173*b725ae77Skettenis	(read_memory_check):  Rename to memory_error, and only call it
174*b725ae77Skettenis	in the case of an actual error.
175*b725ae77Skettenis	(read_memory, write_memory):  call memory_error.
176*b725ae77Skettenis	(core_fetch_registers):  Register section name is ".reg".
177*b725ae77Skettenis
178*b725ae77Skettenis	coredep.c:  Remove a bunch of crud now that all this file does
179*b725ae77Skettenis	is pull the registers out of a core file.
180*b725ae77Skettenis	(fetch_core_registers):  Rewrite to actually work, I hope.
181*b725ae77Skettenis
182*b725ae77Skettenis	dbxread.c:  Use a.out.gnu.h, not system a.out, now.
183*b725ae77Skettenis	Replace index() with strchr().  Remove all the pre-BFD macro
184*b725ae77Skettenis	definitions for accessing the symbol file.
185*b725ae77Skettenis	(struct dbx_symfile_info):  Encapsulate the information that
186*b725ae77Skettenis	dbx_symfile_init needs to pass to dbx_symfile_read in this
187*b725ae77Skettenis	struct.
188*b725ae77Skettenis
189*b725ae77Skettenis	(dbx_new_init, dbx_symfile_init, dbx_symfile_read,
190*b725ae77Skettenis	dbx_symfile_discard): Rearrange symbol file reading to divide
191*b725ae77Skettenis	the format-specific part from the format-independent part,
192*b725ae77Skettenis	leaving the format-independent part such as file name expansion
193*b725ae77Skettenis	and opening in symtab.c.  This replaces
194*b725ae77Skettenis	partial_symbol_file_open and partial_symbol_file_read.
195*b725ae77Skettenis	Symbol_file_read, add_file, add_file_target_command,
196*b725ae77Skettenis	add_file_addr_command move to symtab.c.  Pass an explicit
197*b725ae77Skettenis	"mainline" flag for when reading the main symbol table, rather
198*b725ae77Skettenis	than relying on the offset address to be zero or nonzero.
199*b725ae77Skettenis
200*b725ae77Skettenis	(dbx_symfile_read): Don't allow void *'s to be printed as
201*b725ae77Skettenis	typedefs.
202*b725ae77Skettenis	(SWAP_SYMBOL):  Use bfd routines to byte-swap the symbols.
203*b725ae77Skettenis	(ADD_PSYMBOL_TO_LIST):  Make the "function call rather than
204*b725ae77Skettenis	macro" debug version really work.
205*b725ae77Skettenis	(read_dbx_symtab):  Remove unref'd parameter inclink.
206*b725ae77Skettenis	Avoid swapping N_SLINE symbols, for speed.
207*b725ae77Skettenis	Merge N_TEXT!N_EXT case with the other external symbol
208*b725ae77Skettenis	definitions' case. Add comments.
209*b725ae77Skettenis	(start_psymtab):  Allocate the symfile name in the psymtab on
210*b725ae77Skettenis	the psymbol_obstack, rather than using the caller's storage.
211*b725ae77Skettenis	(end_psymtab): Only allocate a dependencies list if there are
212*b725ae77Skettenis	more than zero.
213*b725ae77Skettenis	(psymtab_to_symtab_2):  Use BFD when reopening file to read
214*b725ae77Skettenis	its symbols for real.
215*b725ae77Skettenis	(read_struct_type):  Add FIXME comments where it needs work
216*b725ae77Skettenis	for C++ bogosity.
217*b725ae77Skettenis	(read_huge_number):  Add FIXME about overflows.
218*b725ae77Skettenis	(read_range_type):  Add FIXME about comparing a long to 1<<32.
219*b725ae77Skettenis
220*b725ae77Skettenis	* coffread.c:  Minor changes to move things closer to the new
221*b725ae77Skettenis	regime with symtab.c and dbxread.c   Major work is still needed
222*b725ae77Skettenis	here.
223*b725ae77Skettenis
224*b725ae77Skettenis	* exec.c (exec_file_command):  Remove old variables (see core.c
225*b725ae77Skettenis	above).
226*b725ae77Skettenis	(xfer_memory): If memory transfer is right at the end of a
227*b725ae77Skettenis	section, don't lose.
228*b725ae77Skettenis
229*b725ae77Skettenis	* findvar.c (get_saved_register):  If value is in a real
230*b725ae77Skettenis	register, LVAL is lval_register, not lval_memory.
231*b725ae77Skettenis
232*b725ae77Skettenis	frame.h:  Declare print_sel_frame and record_selected_frame.
233*b725ae77Skettenis
234*b725ae77Skettenis	gdb-int.texinfo:  New file, for GDB internals documentation.
235*b725ae77Skettenis	Very simple, unformatted doc of cleanups is there for now.
236*b725ae77Skettenis
237*b725ae77Skettenis	gdbcore.h:  Remove obsolete variables that described a.out
238*b725ae77Skettenis	section addresses and offsets.  (See core.c above.)
239*b725ae77Skettenis	Declare fetch_core_registers and registers_fetched.
240*b725ae77Skettenis
241*b725ae77Skettenis	getopt.c:  Declare char *alloca(); even on SPARC.
242*b725ae77Skettenis
243*b725ae77Skettenis	infcmd.c (run_command):  Call target_kill rather than
244*b725ae77Skettenis	kill_inferior.
245*b725ae77Skettenis	(step_command, next_command, stepi_command, nexti_command):
246*b725ae77Skettenis	Declare from_tty parameter even though we don't use it.
247*b725ae77Skettenis	(run_stack_dummy):  argument BUFFER is a char array, not
248*b725ae77Skettenis	a pointer to REGISTER_TYPE.
249*b725ae77Skettenis	(finish_command):  using_struct_return needed a value *,
250*b725ae77Skettenis	not a struct symbol *.
251*b725ae77Skettenis
252*b725ae77Skettenis	* infptrace.c (child_xfer_memory):  To avoid dependency on
253*b725ae77Skettenis	where sections are in memory, try PT_WRITE_D and if that fails,
254*b725ae77Skettenis	try PT_WRITE_I.  Most Unixes don't care which you use.
255*b725ae77Skettenis
256*b725ae77Skettenis	* infrun.c (step_resume_break_shadow):  Change to array to
257*b725ae77Skettenis	match other breakpoint shadow storage.
258*b725ae77Skettenis	(clear_proceed_status):  Pass address of bpstat to
259*b725ae77Skettenis	bpstat_clear, not the bpstat itself.
260*b725ae77Skettenis	(child_create_inferior):  FIXME comment about if the child
261*b725ae77Skettenis	exits.
262*b725ae77Skettenis	(start_inferior):  Remove old function.
263*b725ae77Skettenis	(child_open):  Use target_kill rather than kill_inferior.
264*b725ae77Skettenis	(wait_for_inferior):  Ditto.
265*b725ae77Skettenis	(insert_step_breakpoint, remote_step_breakpoint):  Use
266*b725ae77Skettenis	new step_resume_break_shadow.
267*b725ae77Skettenis
268*b725ae77Skettenis	* inftarg.c (child_wait):  If all child processes die,
269*b725ae77Skettenis	pretend that the one being waited for exited with signal 42.
270*b725ae77Skettenis
271*b725ae77Skettenis	* main.c (command_line_input):  When scanning for comments,
272*b725ae77Skettenis	don't coredump on unclosed quotes.
273*b725ae77Skettenis	(quit_command):  Use target_kill rther than kill_inferior.
274*b725ae77Skettenis	(_initialize_main):  Rename class_user from "user" to
275*b725ae77Skettenis	"user-defined".
276*b725ae77Skettenis
277*b725ae77Skettenis	* printcmd.c (print_command_1):  Initialize "fmt" if no format
278*b725ae77Skettenis	is specified by the user.
279*b725ae77Skettenis	(print_frame_args):  Only add to args_printed if we are
280*b725ae77Skettenis	actually fetching args from the stack (avoiding undefined
281*b725ae77Skettenis	arg_size).
282*b725ae77Skettenis	(_initialize_printcmd):  Remove bogus \{ from string.
283*b725ae77Skettenis
284*b725ae77Skettenis	* remote-eb.c (eb_open):  Avoid coredump on no argument.
285*b725ae77Skettenis
286*b725ae77Skettenis	* remote-nindy.c:  Bring out of Intel environment into new
287*b725ae77Skettenis	target environment.  Remove all conditional compilation on
288*b725ae77Skettenis	I80960.  Massive hacking throughout.
289*b725ae77Skettenis	(nindy_xfer_inferior_memory):  New routine stolen from
290*b725ae77Skettenis	infptrace.c.
291*b725ae77Skettenis	(nindy_create_inferior):  New routine pieced together, probably
292*b725ae77Skettenis	not quite working yet.
293*b725ae77Skettenis	(nindy_ops):  New target_ops struct for nindy.
294*b725ae77Skettenis
295*b725ae77Skettenis	* remote-vx.c:	Use write_memory rather than target_write_memory
296*b725ae77Skettenis	to get error checking.
297*b725ae77Skettenis	(vx_add_file_command, vx_open): Use symbol_file_add rather than
298*b725ae77Skettenis	add_file.
299*b725ae77Skettenis	(vx_create_inferior):  Use target_terminal_ours...
300*b725ae77Skettenis
301*b725ae77Skettenis	* signame.c (_initialize_signame):  Always initialize, since
302*b725ae77Skettenis	we need the table for things other than psignal.
303*b725ae77Skettenis
304*b725ae77Skettenis	* solib.c (solib_add):  Use symbol_file_add, not add_file.
305*b725ae77Skettenis	(solib_address):  Return boolean result rather than struct
306*b725ae77Skettenis	pointer which nobody else knows the type of.
307*b725ae77Skettenis
308*b725ae77Skettenis	* sparc-tdep.c, valops.c:  Use write_memory rather than
309*b725ae77Skettenis	target_write_memory, to get error checking.
310*b725ae77Skettenis
311*b725ae77Skettenis	* stack.c (locals_info, catch_info, args_info,
312*b725ae77Skettenis	get_selected_block, frame_command, up_command): Use
313*b725ae77Skettenis	target_has_stack, rather than have_inferior_p or
314*b725ae77Skettenis	have_core_file_p.
315*b725ae77Skettenis
316*b725ae77Skettenis	* sun3-xdep.c (fetch_core_registers):  Rewrite for new BFD regime.
317*b725ae77Skettenis
318*b725ae77Skettenis	* symfile.h:  New file, defining the interface between the
319*b725ae77Skettenis	generic and object-file-specific symbol reading code.
320*b725ae77Skettenis
321*b725ae77Skettenis	* symtab.c:  Move generic symbol-reading interface to symtab.c,
322*b725ae77Skettenis	from dbxread.c, coffread.c, mipsread.c, etc.  Add symtab_fns
323*b725ae77Skettenis	table to map BFD targets to symbol-reading modules in GDB.
324*b725ae77Skettenis	Change index to strchr.
325*b725ae77Skettenis	(lookup_struct_elt_type):  Use error() rather than hand-made
326*b725ae77Skettenis	simulations thereof.
327*b725ae77Skettenis	(lookup_partial_symbol):  Speedup slightly when length == 0.
328*b725ae77Skettenis	(symbol_file_add):  New function.
329*b725ae77Skettenis	(symbol_file_command):  Call it.
330*b725ae77Skettenis	(symfile_open, symfile_init):  New function.
331*b725ae77Skettenis	(add_file_target_command, add_file_addr_command): moved from
332*b725ae77Skettenis	dbxread.c.
333*b725ae77Skettenis
334*b725ae77Skettenis	* target.c (target_command):  use target_kill.
335*b725ae77Skettenis
336*b725ae77Skettenis	* target.h (target_files_info):  Don't declare, never called
337*b725ae77Skettenis	from outside.
338*b725ae77Skettenis
339*b725ae77Skettenis	* tm-sun2.h, tm-sun3.h (STACK_END_ADDR): Use system include
340*b725ae77Skettenis	files to determine stack end address.
341*b725ae77Skettenis
342*b725ae77Skettenis	* valarith.c (value_x_binop, value_x_unop): Change error message
343*b725ae77Skettenis	to be more useful.  Pass proper argument to value_struct_elt.
344*b725ae77Skettenis
345*b725ae77Skettenis	* valops.c (value_assign):  FIXME comment that long long
346*b725ae77Skettenis	bitfields will break here.
347*b725ae77Skettenis
348*b725ae77Skettenis	* Makefile.dist:  Add symfile.h, remote-nindy.c, remote-eb.c.
349*b725ae77Skettenis	Update `make saber_gdb' to work better.
350*b725ae77Skettenis
351*b725ae77Skettenis	* TODO:  A woman's work is never done.
352*b725ae77Skettenis
353*b725ae77Skettenis	* cplus-dem.c, environ.c, inferior.h, infrun.c, inftarg.c,
354*b725ae77Skettenis	main.c, obstack.c, printcmd.c, remote-eb.c, remote-nindy.c,
355*b725ae77Skettenis	remote-vx.c, remote.c, solib.c, source.c, sparc-pinsn.c,
356*b725ae77Skettenis	sparc-tdep.c, sparc-xdep.c, symmisc.c, symtab.c, symtab.h
357*b725ae77Skettenis	target.c, terminal.h, tm-sparc.h, tm-sunos.h, utils.c,
358*b725ae77Skettenis	valops.c, valprint.c, exec.c:  Lint.
359*b725ae77Skettenis
360*b725ae77Skettenis
361*b725ae77SkettenisWed Dec 12 23:44:15 1990  John Gilmore  (gnu at cygnus.com)
362*b725ae77Skettenis
363*b725ae77Skettenis	Continuing Intel 960 port merge of GDB.
364*b725ae77Skettenis
365*b725ae77Skettenis	* Makefile.dist:  Merge i960 "nindy-share" files.  Rename
366*b725ae77Skettenis	malloc.h to gmalloc.h to avoid name conflicts in /usr/include.
367*b725ae77Skettenis	Don't ship gdb.dvi in tar file.  Link gdb with init.o, not init.c.
368*b725ae77Skettenis	Wack over "make depend" so it handles files in subdirectories
369*b725ae77Skettenis	vx-share, nindy-share, bfd, and in the current directory.
370*b725ae77Skettenis
371*b725ae77Skettenis	* blockframe.c (get_prev_frame_info):  Remove fatal error
372*b725ae77Skettenis	if stack not defined.
373*b725ae77Skettenis
374*b725ae77Skettenis	* core.c (core_open, core_detach):  New functions that handle
375*b725ae77Skettenis	the old "core-file" command as "target core" and "detach" instead.
376*b725ae77Skettenis	(core_file_command):  Call them.
377*b725ae77Skettenis	(core_xfer_memory):  Use common routine xfer_memory.
378*b725ae77Skettenis
379*b725ae77Skettenis	* dbxread.c:  Include a.out.gnu.h, not system a.out.h.
380*b725ae77Skettenis	dbxread now uses bfd for everything but symbol reading itself.
381*b725ae77Skettenis	BFD internals are used to drag out the relevant file offsets.
382*b725ae77Skettenis	(partial_symbol_file_open):  Change args all around for BFD.
383*b725ae77Skettenis
384*b725ae77Skettenis	* symtab.c: Rename "value" to "val" everywhere, so we can
385*b725ae77Skettenis	#include "value.h".
386*b725ae77Skettenis	(symbol_file_command):  New command, moved from dbxread.c
387*b725ae77Skettenis	and coffread.c.  It uses BFD to read the file, then vectors
388*b725ae77Skettenis	based on its type, to dbx or coff symbol readers.
389*b725ae77Skettenis	* symtab.h:  Extern a few vars for symbol_file_command.
390*b725ae77Skettenis
391*b725ae77Skettenis	* target.h:  Breakpoint takes a char * save area, not a char **.
392*b725ae77Skettenis
393*b725ae77Skettenis	* valprint.c (val_print):  When unpacking bitfields, offset
394*b725ae77Skettenis	the address in gdb of the value, if it is declared with a shorter
395*b725ae77Skettenis	type.  Remove the last "runtime kludge test" of host byte order.
396*b725ae77Skettenis
397*b725ae77Skettenis	* utils.c:  Remove old my_bfd_read routine.
398*b725ae77Skettenis
399*b725ae77Skettenis	* stack.c (frame_info):  Use target_has_stack.  Print program counter
400*b725ae77Skettenis	register's actual name rather than "pc", since it's called the
401*b725ae77Skettenis	"ip" (instruction pointer) on the i960 (sigh).
402*b725ae77Skettenis
403*b725ae77Skettenis	* target.c (target_command):  Add command for selecting a target
404*b725ae77Skettenis	type and calling its open routine.  This is used for initiating
405*b725ae77Skettenis	communication with a particular target, in a generic way.
406*b725ae77Skettenis
407*b725ae77Skettenis	* tm-i960.h:  Update for modern gdb.  Remove semicolons from
408*b725ae77Skettenis	various macros.  Handle reading struct return convention, and
409*b725ae77Skettenis	error-out attempts to return structs with the "return" command.
410*b725ae77Skettenis	Be sure gdb doesn't think we know how to call functions in the
411*b725ae77Skettenis	inferior.
412*b725ae77Skettenis
413*b725ae77Skettenis	* i960-tdep.c:  Rename FRAME_CHAIN_VALID and FRAME_FIND_SAVED_REGS
414*b725ae77Skettenis	to i960_xxx in lower case.
415*b725ae77Skettenis	(arg_address):  Circumvent errors due to LOC_ARG_BLOCK
416*b725ae77Skettenis	not being defined yet.
417*b725ae77Skettenis
418*b725ae77Skettenis	* remote.c (remote_open):  Call start_remote to initialize
419*b725ae77Skettenis	wait_for_inferior during open.
420*b725ae77Skettenis	(remote_xfer_inferior_memory):  Return length written rather
421*b725ae77Skettenis	than errno value.
422*b725ae77Skettenis
423*b725ae77Skettenis	* remote-vx.c (target_command -> vx_open):  Use new generic
424*b725ae77Skettenis	target command.
425*b725ae77Skettenis	* remote-eb.c, inftarg.c, exec.c: ditto.
426*b725ae77Skettenis
427*b725ae77Skettenis	* infrun.c:  Fix comments.
428*b725ae77Skettenis	(attach_program -> child_open):  Use new generic target command.
429*b725ae77Skettenis	(wait_for_inferior):  Clear saved register values before target_wait,
430*b725ae77Skettenis	so target_wait can set some of them if convenient.
431*b725ae77Skettenis
432*b725ae77Skettenis	* infptrace.c (fetch_inferior_registers, store_inferior_registers):
433*b725ae77Skettenis	Return success indicator, not void.
434*b725ae77Skettenis	(child_xfer_memory):  Avoid fetching initial word if we'll
435*b725ae77Skettenis	overwrite it anyway.
436*b725ae77Skettenis
437*b725ae77Skettenis	* infcmd.c (attach_command):  Use new generic target open routine.
438*b725ae77Skettenis	(_initialize_infcmd):  Update doc on attach and detach commands.
439*b725ae77Skettenis	(do_registers_info):  Merge in a byte-order problem as a FIXME
440*b725ae77Skettenis	comment.
441*b725ae77Skettenis
442*b725ae77Skettenis	* findvar.c (find_saved_register):  Avoid problem in current frame.
443*b725ae77Skettenis	(read_relative_register):  Ditto.
444*b725ae77Skettenis	(write_register):  Convert byte order on the way out.
445*b725ae77Skettenis
446*b725ae77Skettenis	* exec.c (file_command):  Add.
447*b725ae77Skettenis	(add_to_section_table, exec_command):  Use new bfd_map_over_sections.
448*b725ae77Skettenis	(xfer_memory):  Common function between core_xfer_memory and
449*b725ae77Skettenis	exec_xfer_memory.
450*b725ae77Skettenis	(exec_xfer_memory):  Use it.
451*b725ae77Skettenis
452*b725ae77Skettenis	* pn-opcode.h:  Document that a "PN" is a Gould PowerNode.
453*b725ae77Skettenis
454*b725ae77Skettenis	* breakpoint.c, breakpoint.h, symtab.h, value.h, frame.h, utils.c,
455*b725ae77Skettenis	valops.c, stack.c, target.c, sparc-xdep.c, source.c, printcmd.c,
456*b725ae77Skettenis	infcmd.c, i960-pinsn.c, eval.c, defs.h:  lint and gcc -Wall.
457*b725ae77Skettenis
458*b725ae77SkettenisSun Dec  2 16:45:06 1990  John Gilmore  (gnu at cygnus.com)
459*b725ae77Skettenis
460*b725ae77Skettenis	Merge Intel 960 port of gdb, continuing...
461*b725ae77Skettenis
462*b725ae77Skettenis	* dbxread.c (partial_symbol_file_open, partial_symbol_file_read,
463*b725ae77Skettenis	symbol_file_command):  Pass from_tty arg to hush 'em up.
464*b725ae77Skettenis
465*b725ae77Skettenis	* coffread.c (symbol_file_command):  Avoid output if from_tty != 1.
466*b725ae77Skettenis	Add magic numbers for 960 COFF format.
467*b725ae77Skettenis
468*b725ae77SkettenisFri Nov 30 09:18:20 1990  John Gilmore  (gnu at cygnus.com)
469*b725ae77Skettenis
470*b725ae77Skettenis	Merge Intel 960 port of gdb, from Intel "1.2" release.
471*b725ae77Skettenis
472*b725ae77Skettenis	CHANGE_LOG entries from their port, which was based on
473*b725ae77Skettenis	gdb+-2.8.0:
474*b725ae77Skettenis
475*b725ae77Skettenis    Thu Sep  6 11:02:22 PDT 1990
476*b725ae77Skettenis	Remove temp file if download is interrupted.
477*b725ae77Skettenis
478*b725ae77Skettenis    Wed Aug  1 09:08:33 PDT 1990
479*b725ae77Skettenis	Now uses binary protocol to talk to NINDY.
480*b725ae77Skettenis	Old hex protocol (NINDY 2.13 and older) supported with -O switch.
481*b725ae77Skettenis	Times out after 5 seconds when trying to talk to NINDY.
482*b725ae77Skettenis
483*b725ae77Skettenis    Tue May 29 12:54:49 PDT 1990
484*b725ae77Skettenis	Added variable baud rate (-b switch).
485*b725ae77Skettenis	Source code reorganization.
486*b725ae77Skettenis
487*b725ae77Skettenis    Thu Apr 26 11:09:55 PDT 1990
488*b725ae77Skettenis	More cleanup of batch mode;  specifically, execute "-s", "-e", and
489*b725ae77Skettenis	"-se" switches as soon as they are encountered on the invocation line.
490*b725ae77Skettenis
491*b725ae77Skettenis    Fri Apr 20 13:47:15 PDT 1990
492*b725ae77Skettenis	Add -brk switch.
493*b725ae77Skettenis
494*b725ae77Skettenis    Thu Apr 19 09:54:28 PDT 1990
495*b725ae77Skettenis	Add 'reset' command.
496*b725ae77Skettenis
497*b725ae77Skettenis    Wed Apr 18 09:48:07 PDT 1990
498*b725ae77Skettenis	After opening remote tty, wait for 1 second to go by without input
499*b725ae77Skettenis	from it before trying to talk to NINDY (fixes problems with the
500*b725ae77Skettenis	Heurikon HK80/V960E).
501*b725ae77Skettenis
502*b725ae77Skettenis    Mon Apr  4 16:33:05 PDT 1990
503*b725ae77Skettenis	Some output was not being suppressed in 'batch' mode.
504*b725ae77Skettenis
505*b725ae77Skettenis    Thu Mar 22 15:31:11 PST 1990
506*b725ae77Skettenis	Ask user if old symbol table should be deleted when new file is
507*b725ae77Skettenis	downloaded.
508*b725ae77Skettenis
509*b725ae77Skettenis	Allow user to run a program downloaded before gdb960 was brought up.
510*b725ae77Skettenis
511*b725ae77Skettenis	Correct "exec-file" help message for i80960 context.
512*b725ae77Skettenis
513*b725ae77Skettenis	Correct bug in calculating user space address:  could occasionally
514*b725ae77Skettenis	corrupt user program.
515*b725ae77Skettenis
516*b725ae77Skettenis	Make sure to zero low-order bits in rip's because of bug in 960CA
517*b725ae77Skettenis	A-step part:  could cause operation faults when "next"ing across
518*b725ae77Skettenis	a function call.
519*b725ae77Skettenis
520*b725ae77Skettenis	Correct bug that made it impossible to get source line numbers for
521*b725ae77Skettenis	code loaded at addresses higher than 0x7fffffff.
522*b725ae77Skettenis
523*b725ae77Skettenis    Wed Jan 10 12:43:22 PST 1990
524*b725ae77Skettenis	Open remote tty for exclusive use.
525*b725ae77Skettenis
526*b725ae77Skettenis    Fri Jan  5 12:14:42 PST 1990
527*b725ae77Skettenis	Correct disassembly (CA manual was right after all):
528*b725ae77Skettenis	opcode for sysctl is 0x659
529*b725ae77Skettenis
530*b725ae77Skettenis    Mon Oct 23 12:03:04 PDT 1989
531*b725ae77Skettenis	Use G960BASE and G960BIN environment variables to find 'sx' utility.
532*b725ae77Skettenis
533*b725ae77Skettenis    Mon Oct 16 14:15:09 PDT 1989
534*b725ae77Skettenis	"sfr0"-"sfr31" should have been named "sf0"-"sf31"
535*b725ae77Skettenis
536*b725ae77Skettenis    Mon Oct  2 15:56:31 PDT 1989
537*b725ae77Skettenis
538*b725ae77Skettenis	Added 960CA disassembly support.
539*b725ae77Skettenis
540*b725ae77Skettenis	To simplify maintenance:
541*b725ae77Skettenis		- eliminated use of symblic links on pinsn.c: use i960-pinsn.c
542*b725ae77Skettenis			directly instead.
543*b725ae77Skettenis		- eliminated opcode.h: incorporates tables into i960-pinsn.c
544*b725ae77Skettenis		- moved 960-specific routines from i960-pinsn.c to i960-md.c
545*b725ae77Skettenis		- made disassembly interface identical to that in gdmp960.
546*b725ae77Skettenis
547*b725ae77Skettenis
548*b725ae77Skettenis
549*b725ae77SkettenisWed Nov 28 21:32:48 1990  John Gilmore  (gnu at cygint)
550*b725ae77Skettenis
551*b725ae77Skettenis	* target.h: Allow targets to stack.  Add target_has_memory,
552*b725ae77Skettenis	_registers, etc.  Restructure memory access and "info files"
553*b725ae77Skettenis	to walk the target stack.
554*b725ae77Skettenis	* exec.c, core.c, inftarg.c, remote.c, remote-vx.c, remote-eb.c,
555*b725ae77Skettenis	target.c:  Change tables to match target.h.
556*b725ae77Skettenis	* inflow.c (child_mourn_inferior):  pop child_ops.
557*b725ae77Skettenis	(generic_mourn_inferior):  Use new has_stack flag.
558*b725ae77Skettenis	* infptrace.c (child_xfer_memory): New memory regime.
559*b725ae77Skettenis	* inftarg.c (child_files_info): New "info files" regime.
560*b725ae77Skettenis	* remote-eb.c: New memory regime, new info files.
561*b725ae77Skettenis	* remote-vx.c: New memory regime, new info files.  Now use
562*b725ae77Skettenis	separate targets for VxWorks attachment to machine, and
563*b725ae77Skettenis	actually running a process under VxWorks, since one has
564*b725ae77Skettenis	stack & execution & regs and the other doesn't.
565*b725ae77Skettenis	* remote.c: New memory regime, new info files.
566*b725ae77Skettenis	* sparc-xdep.c (fetch_core-registers):  New memory regime.
567*b725ae77Skettenis	* target.c:  New routines and support for stacked targets,
568*b725ae77Skettenis	new memory regime, new info files regime.
569*b725ae77Skettenis
570*b725ae77Skettenis
571*b725ae77Skettenis	Generalize section handling for an arbitrary number of sections,
572*b725ae77Skettenis	including use of the new BFD (binary file) library.
573*b725ae77Skettenis	* gdbcore.h: Add struct section_table.
574*b725ae77Skettenis	* exec.c (build_section_table):  Iterate all sections and
575*b725ae77Skettenis	record what gdb needs to know about them.
576*b725ae77Skettenis	(exec_command):  Use it.
577*b725ae77Skettenis	(exec_xfer_memory):  Use the table.
578*b725ae77Skettenis	(exec_files_info):  Print the table.
579*b725ae77Skettenis	* core.c (core_file_command, core_xfer_memory, core_files_info):
580*b725ae77Skettenis	Likewise.
581*b725ae77Skettenis	* source.c (find_source_lines):  Use bfd_get_mtime.
582*b725ae77Skettenis	* dbxread.c:  Quick changes to make it compile with new BFD.
583*b725ae77Skettenis	* utils.c (error):  Avoid using bfd_error in generic routines.
584*b725ae77Skettenis
585*b725ae77Skettenis	* core.c (core_fetch_registers):  Get from the ".regs" section of
586*b725ae77Skettenis	the BFD core file.
587*b725ae77Skettenis	* sparc-xdep.c (fetch_core_registers):  Use the .regs info.
588*b725ae77Skettenis
589*b725ae77Skettenis	* inferior.h (attach_flag):  Export.
590*b725ae77Skettenis	* infcmd.c (run_command):  use new target_create_inferior.
591*b725ae77Skettenis	* infrun.c (child_create_inferior):  Don't return result.
592*b725ae77Skettenis	* Makefile.dist (VERSION):  3.91.4.
593*b725ae77Skettenis
594*b725ae77SkettenisFri Nov 23 28:15:38 1990  John Gilmore  (gnu at cygint)
595*b725ae77Skettenis
596*b725ae77Skettenis	* breakpoint.c (bpstat_num):  Handle breakpoints which have
597*b725ae77Skettenis	since been deleted, such as temporary breakpoints.
598*b725ae77Skettenis	infcmd.c (program_info):  ditto.
599*b725ae77Skettenis
600*b725ae77Skettenis	* core.c (core_file_command):  Display the frame where the core
601*b725ae77Skettenis	dump occurred.
602*b725ae77Skettenis
603*b725ae77Skettenis	* main.c:  lint.
604*b725ae77Skettenis
605*b725ae77Skettenis	* remote-vx.c (target_command):  Merge in target command from
606*b725ae77Skettenis	targ-vx.c.  A few other cleanups.
607*b725ae77Skettenis
608*b725ae77Skettenis	* TODO, Projects:  Lots more stuff to do...
609*b725ae77Skettenis
610*b725ae77SkettenisFri Nov 23 18:15:38 1990  John Gilmore  (gnu at cygint)
611*b725ae77Skettenis
612*b725ae77Skettenis	Massive changes to wall off the remote-debugging interface
613*b725ae77Skettenis	behind a function vector.  The port to handle VxWorks targets
614*b725ae77Skettenis	is also part of this.
615*b725ae77Skettenis
616*b725ae77Skettenis	All files:  Replace references to renamed functions,
617*b725ae77Skettenis	remove references to remote_debugging, remove references to
618*b725ae77Skettenis	have_include_file, have_core_file in favor of target_has_stack,
619*b725ae77Skettenis	target_has_memory, etc.
620*b725ae77Skettenis
621*b725ae77Skettenis	* Modularize the breakpoint interface.
622*b725ae77Skettenis	breakpoint.h (BREAKPOINT_MAX):  New define sets max length of
623*b725ae77Skettenis	a breakpoint instruction.
624*b725ae77Skettenis	breakpoint.c: struct breakpoint's shadow_contents now sized as
625*b725ae77Skettenis	BREAKPOINT_MAX.
626*b725ae77Skettenis	(insert_breakpoints):  Vector to target to install breakpoints.
627*b725ae77Skettenis	(remove_breakpoints):  Vector to target here too.
628*b725ae77Skettenis	Remove REMOTE_SA_SPARC kludges and other remote_debugging.
629*b725ae77Skettenis	sparc-tdep.c (single_step):  Use new breakpoint interface for
630*b725ae77Skettenis	the single-step breakpoints.
631*b725ae77Skettenis	mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
632*b725ae77Skettenis	New file, contains routines to insert and remove breakpoints by
633*b725ae77Skettenis	reading out the old contents and later replacing them.  This is
634*b725ae77Skettenis	how ptrace breakpoints work, and many remote systems as well.
635*b725ae77Skettenis
636*b725ae77Skettenis	* tm-vxworks68.h:  New config file, overrides a few things for
637*b725ae77Skettenis	Wind River's preferences.
638*b725ae77Skettenis
639*b725ae77Skettenis	* target.h:  New file, for transfer vector used to talk to the
640*b725ae77Skettenis	inferior (child, attached, core, exec, remote, etc).  All accesses
641*b725ae77Skettenis	to the thing being debugged should come through these vectors.
642*b725ae77Skettenis	target.c:  New file, routines to handle transfer vector.
643*b725ae77Skettenis	(various files):  Add transfer vectors XXX_ops for the various
644*b725ae77Skettenis	targets and pseudo-targets (core files, etc) we support.
645*b725ae77Skettenis
646*b725ae77Skettenis	* breakpoint.c (bpstat_stop_status):  Further explorations of
647*b725ae77Skettenis	watchpoints and why things don't work all the time.
648*b725ae77Skettenis	(bpstat_alloc):  New fn to allocate a bpstat and chain it.
649*b725ae77Skettenis
650*b725ae77Skettenis	* config.gdb:  Only add "source ${srcdir}/.gdbinit" to
651*b725ae77Skettenis	the local gdbinit if it doesn't already have it.
652*b725ae77Skettenis
653*b725ae77Skettenis	* core.c (core_ops):  add and install.
654*b725ae77Skettenis	Allow core debugging without exec file.
655*b725ae77Skettenis
656*b725ae77Skettenis	* dbxread.c (free_and_init_header_files):  Merge two fns.
657*b725ae77Skettenis	(end_symtab):  Free named symbol table when a new version comes in.
658*b725ae77Skettenis	(read_dbx_symtab):  Relocate all kinds of symbols with base
659*b725ae77Skettenis	address.  First step toward handling different text, data, bss
660*b725ae77Skettenis	reloc.
661*b725ae77Skettenis	(add_file_addr_command):  Renamed add_file_command.
662*b725ae77Skettenis	(add_file_command):  Vector to remote handler.
663*b725ae77Skettenis	Add "load" as an alias for "add-file" command.
664*b725ae77Skettenis
665*b725ae77Skettenis	* defs.h:  Allow "volatile" to be used in non-ANSI; use it for
666*b725ae77Skettenis	non-returning functions.
667*b725ae77Skettenis
668*b725ae77Skettenis	* exec.c:  Add exec_ops, and push it as a target when an exec
669*b725ae77Skettenis	file is specified.
670*b725ae77Skettenis
671*b725ae77Skettenis	* infcmd.c (run_command):  Pass executable file name and arg list
672*b725ae77Skettenis	separately when starting an inferior.  Permit "run" when no exec
673*b725ae77Skettenis	file is specified, for VxWorks.
674*b725ae77Skettenis	(detach_command):  Move to child_detach in inftarg.c.
675*b725ae77Skettenis
676*b725ae77Skettenis	* inftarg.c:  New file.  Unix-child-specific routines, and the
677*b725ae77Skettenis	child_ops structure.
678*b725ae77Skettenis
679*b725ae77Skettenis	* inferior.h (registers):  Export "registers" as the way for
680*b725ae77Skettenis	target dependent register handlers to find gdb's local copy of
681*b725ae77Skettenis	the registers.  Rename "stop_after_attach" to "stop_soon_quietly"
682*b725ae77Skettenis	since it is now used by places that want wait_for_inferior to
683*b725ae77Skettenis	handle the grunge but want to see every trap from the inferior.
684*b725ae77Skettenis
685*b725ae77Skettenis	* inflow.c (create_inferior):  Pull out, and merge into infrun.c.
686*b725ae77Skettenis	Eliminate remote_debugging hooks in terminal handling.
687*b725ae77Skettenis
688*b725ae77Skettenis	* infrun.c:  Replace start_inferior with child_create_inferior.
689*b725ae77Skettenis	Move all the hair of Unix shells and ptrace idiosyncracies into
690*b725ae77Skettenis	child_create_inferior, so remote handlers don't have to deal.
691*b725ae77Skettenis	Remove running_in_shell.  Rename stop_after_attach to
692*b725ae77Skettenis	stop_soon_quietly, and use it in a few other places where we want
693*b725ae77Skettenis	to just call wait_for_inferior and get control back on the first
694*b725ae77Skettenis	trap.  trap_expected now never takes a value > 1.
695*b725ae77Skettenis	(init_wait_for_inferior):  Initialize static vars when a new
696*b725ae77Skettenis	process is created.
697*b725ae77Skettenis
698*b725ae77Skettenis	main.c (gdbinit):  Add new hook for .gdbinit file name, let
699*b725ae77Skettenis	it be overridden by config files as GDBINIT_FILENAME.
700*b725ae77Skettenis	(DEFAULT_PROMPT):  Add new hook for overriding (gdb) prompt.
701*b725ae77Skettenis	Both of these are used for VxWorks gdb.
702*b725ae77Skettenis
703*b725ae77Skettenis	mcheck.c:  rename include file "gmalloc.c" to avoid problems
704*b725ae77Skettenis	with system include file "malloc.c".
705*b725ae77Skettenis
706*b725ae77Skettenis	param-no-tm.h:  New include file, same as param.h but does not
707*b725ae77Skettenis	include the default "tm.h" file.  This is used in files where
708*b725ae77Skettenis	the target is known, e.g. remote-eb.c or sparc-xdep.c.
709*b725ae77Skettenis
710*b725ae77Skettenis	param.h:  Now just a shell that includes tm.h and param-no-tm.h.
711*b725ae77Skettenis
712*b725ae77Skettenis	remote-vx.c:  New file, VxWorks remote debugging support.  Uses
713*b725ae77Skettenis	RPC routines that are shared with the target system, in directory
714*b725ae77Skettenis	${srcdir}/vx-share.
715*b725ae77Skettenis
716*b725ae77Skettenis	remote.c:  Vectorize remote interface.
717*b725ae77Skettenis
718*b725ae77Skettenis	source.c:  Globalize source_path, and make an alias "l" for "list"
719*b725ae77Skettenis	since we now have the "load" command.
720*b725ae77Skettenis
721*b725ae77Skettenis	sparc-xdep.c:  Use new param-no-tm.h.
722*b725ae77Skettenis
723*b725ae77Skettenis	symmisc.c (free_named_symtab):  Add new function from Wind River.
724*b725ae77Skettenis	However, ifdef it out for now while we think about what it should
725*b725ae77Skettenis	really be doing.
726*b725ae77Skettenis
727*b725ae77Skettenis	tm-sun3.h, xm-sparc.h, xm-sun3.h, xm-symmetry.h: Move
728*b725ae77Skettenis	PREPARE_TO_STORE to
729*b725ae77Skettenis	the xm- file, and change its name to CHILD_PREPARE_TO_STORE, since
730*b725ae77Skettenis	non-Unix-children handle this with their own code in the target
731*b725ae77Skettenis	transfer vector.
732*b725ae77Skettenis
733*b725ae77Skettenis	Makefile.dist:  Roll version to 3.92.3.  Add vx-share stuff to
734*b725ae77Skettenis	source and target lists.  Add vx-share to default list of include
735*b725ae77Skettenis	directories.  Add new files to src and target lists: mem-break,
736*b725ae77Skettenis	target, inftarg, remote-eb, remote-vx, targ-vx.  Be sure the
737*b725ae77Skettenis	${srcdir} versions of munch and createtags are used.
738*b725ae77Skettenis
739*b725ae77Skettenis	* valops.c (find_function_addr):  Split out of call_function.
740*b725ae77Skettenis	(call_function_by_hand):  Rename call_function; this function
741*b725ae77Skettenis	calls functions in the target by laboriously patching the target
742*b725ae77Skettenis	word-by-word with the right stack, args, regs, etc.
743*b725ae77Skettenis
744*b725ae77Skettenis
745*b725ae77SkettenisMon Nov  5 17:29:10 1990  John Gilmore  (gnu at cygint)
746*b725ae77Skettenis
747*b725ae77Skettenis	Handle AMD 29000 a bit better.
748*b725ae77Skettenis
749*b725ae77Skettenis	* remote-eb.c (readchar):  Mask received char log to make it readable.
750*b725ae77Skettenis	(remote_start):  Pass arguments down to executing program.
751*b725ae77Skettenis	Make startaddr unsigned.
752*b725ae77Skettenis	infrun.c (start_inferior):  Accept args, pass them to
753*b725ae77Skettenis	remote_start.
754*b725ae77Skettenis	infcmd.c (run_command):  Pass args down to start_inferior.
755*b725ae77Skettenis
756*b725ae77Skettenis	* tconfig/am29k-aout, tconfig/am29k-coff:  New files specifying
757*b725ae77Skettenis	the target object file format.
758*b725ae77Skettenis	tm-29k.h:  Pay heed to COFF_ENCAPSULATE.
759*b725ae77Skettenis
760*b725ae77Skettenis	* am29k-pinsn.c (print_insn):  Print 0x on hex numbers in disassembly.
761*b725ae77Skettenis	am29k-tdep.c (examine_prologue):  Better checking of function prefixes.
762*b725ae77Skettenis
763*b725ae77SkettenisSun Oct  7 18:20:45 1990  John Gilmore  (gnu at cygint)
764*b725ae77Skettenis
765*b725ae77Skettenis	* Makefile.dist (VERSION):  Roll version to 3.91.9 and freeze.
766*b725ae77Skettenis	* TODO:  We did a few things, we have more to do though.
767*b725ae77Skettenis
768*b725ae77Skettenis	* xm-sparc.h (CLEAR_DEFERRED_STORES):  Define.
769*b725ae77Skettenis	* inflow.c (inferior_died):  Clear deferred stores.
770*b725ae77Skettenis
771*b725ae77Skettenis	* Debug problems with dummy frames and calls to the inferior.
772*b725ae77Skettenis	* tm-sparc.h (PUSH_DUMMY_FRAME, POP_FRAME):  Move to sparc-tdep.c.
773*b725ae77Skettenis	* sparc-tdep.c (do_restore_insn):  Simplify.
774*b725ae77Skettenis	(sparc_frame_find_saved_regs):  Simplify and fix what we find.
775*b725ae77Skettenis	(sparc_push_dummy_frame):  Simplify and fix what we push.
776*b725ae77Skettenis	(sparc_pop_frame):  Slightly more hair here, deciding whether
777*b725ae77Skettenis	we are restoring a saved PC or returning to a return address in %i7.
778*b725ae77Skettenis	* sparc-xdep.c (read_inferior_registers):  Debug if valid reg is read.
779*b725ae77Skettenis
780*b725ae77Skettenis	* utils.c (xmalloc, xrealloc):  Return type depends on __STDC__.
781*b725ae77Skettenis	* symtab.h (xmalloc): ditto, for obstack_chunk_alloc.
782*b725ae77Skettenis	* obstack.h (chunkfun): ditto.
783*b725ae77Skettenis	* defs.h (xmalloc, xrealloc): ditto
784*b725ae77Skettenis
785*b725ae77Skettenis	* utils.c (quit):  Grab the terminal from the child if necessary.
786*b725ae77Skettenis
787*b725ae77Skettenis	* inflow.c (term_status_command): Rename to term_info, change
788*b725ae77Skettenis	to "info terminal".
789*b725ae77Skettenis
790*b725ae77Skettenis	* sparc-pinsn.c (print_insn):  Disassembly prefers real instructions.
791*b725ae77Skettenis	(is_delayed_branch):  Speed up.
792*b725ae77Skettenis	* sparc-opcode.h: Add ALIAS bit to aliases.  Fix up opcode tables.
793*b725ae77Skettenis	Still missing some float ops, and needs testing.
794*b725ae77Skettenis
795*b725ae77Skettenis	* Support for input and output radixes other than base 10
796*b725ae77Skettenis	* defs.h (input_radix, output_radix):  Declare.
797*b725ae77Skettenis	* expread.y (yyparse, parse_number):  Handle changes of input
798*b725ae77Skettenis	radix, and ambiguous names-or-numbers in radixes >10.
799*b725ae77Skettenis	* printcmd.c (print_scalar_formatted):  Print formatted hex
800*b725ae77Skettenis	numbers in varying column widths.
801*b725ae77Skettenis	* valprint.c (val_print):  Use output_format to print scalar ints.
802*b725ae77Skettenis	(set_input_radix, set_output_radix, set_radix):  Create.
803*b725ae77Skettenis	(set_output_radix):  Set output_format from output_radix.
804*b725ae77Skettenis	(_initialize_valprint):  add `set radix' but leave the others off.
805*b725ae77Skettenis
806*b725ae77Skettenis	* main.c (execute_command): Let stupid questions be turned off.
807*b725ae77Skettenis	(_initialize_main): Handle "set stupidity", etc.
808*b725ae77Skettenis
809*b725ae77Skettenis	* main.c, inflow.c, inferior.h, frame.h, command.c, defs.h,
810*b725ae77Skettenis	sparc-pinsn.c, sparc-xdep.c, value.h, valops.c, values.c:  Lint.
811*b725ae77Skettenis
812*b725ae77SkettenisTue Oct  2 11:20:02 1990  John Gilmore  (gnu at cygint)
813*b725ae77Skettenis
814*b725ae77Skettenis	* TODO, Makefile.dist, ChangeLog:  Freeze for 3.91.8 release.
815*b725ae77Skettenis	bfd stuff is still screwed up, but with some manual work, it
816*b725ae77Skettenis	compiles.
817*b725ae77Skettenis
818*b725ae77Skettenis	* breakpoint.c (bpstat_do_actions):  Start over if a command
819*b725ae77Skettenis	proceeds the inferior, since the inferior will have stopped and
820*b725ae77Skettenis	will need to have its new stop-actions taken care of.
821*b725ae77Skettenis
822*b725ae77Skettenis	* dbxread.c (read_struct_type):  Expression gives Sun3 4.0.3
823*b725ae77Skettenis	compiler fits, simplify it.
824*b725ae77Skettenis
825*b725ae77Skettenis	* gdb.texinfo (directory command): Doc new dir command.
826*b725ae77Skettenis	source.c (directory_command):  "dir" now puts things on the front
827*b725ae77Skettenis	of the path, moves dups up front, and handles multiple names
828*b725ae77Skettenis	on the command line, inserting each one in order.  It also
829*b725ae77Skettenis	blows away cached line and full_filename info.
830*b725ae77Skettenis
831*b725ae77Skettenis	* stack.c (backtrace_command):  Skip "more stack frames follow"
832*b725ae77Skettenis	unless interactive.
833*b725ae77Skettenis
834*b725ae77Skettenis	* Change #ifndef HAVE_VPRINTF to #define MISSING_VPRINTF in
835*b725ae77Skettenis	xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
836*b725ae77Skettenis	xm-np1.h, xm-pn.h, xm-pyr.h, xm-symmetry.h, xm-umax.h, xm-vax.h.
837*b725ae77Skettenis	The only odd one was Gould NP1, which had defined vprintf to
838*b725ae77Skettenis	"printf"!!!
839*b725ae77Skettenis
840*b725ae77Skettenis	* Merge Ted Goldstein <tedg@Eng.sun.com>'s changes for epoch.
841*b725ae77Skettenis	printcmd.c (print_command_1): Pass 'inspect' flag down as a global
842*b725ae77Skettenis	variable, inspect_it.
843*b725ae77Skettenis	valprint.c (print_string, val_print): Use the global inspect_it
844*b725ae77Skettenis	to indicate whether to print in Epoch style or normal style.
845*b725ae77Skettenis
846*b725ae77SkettenisMon Oct  1 23:55:26 1990  John Gilmore  (gnu at cygint)
847*b725ae77Skettenis
848*b725ae77Skettenis	* printcmd.c (call_command):  add an alias for the "print" command
849*b725ae77Skettenis	which runs expressions and doesn't print the result if void.
850*b725ae77Skettenis	(print_command_1): implement it.
851*b725ae77Skettenis
852*b725ae77Skettenis	* command.c: Remove #if 0'd code.  Initialize all the fields
853*b725ae77Skettenis	in add_cmd ().  Rename do_nothing_command to
854*b725ae77Skettenis	not_just_help_class_command, and make it externally visible.
855*b725ae77Skettenis	command.h: add user_commands to struct.
856*b725ae77Skettenis	* main.c (define_command):  Don't overload c->function with a char
857*b725ae77Skettenis	string as well as a function pointer.
858*b725ae77Skettenis
859*b725ae77Skettenis	* eval.c (evaluate_subexp):  Reinstall tiemann changes to
860*b725ae77Skettenis	calling convention of value_struct_elt () that got dropped in
861*b725ae77Skettenis	merge.
862*b725ae77Skettenis
863*b725ae77Skettenis	* tm-sparc.h (FRAME_FIND_SAVED_REGS):  move to sparc-xdep.c.
864*b725ae77Skettenis	sparc-tdep.c (sparc_frame_find_saved_regs):  ditto.
865*b725ae77Skettenis
866*b725ae77Skettenis	* tm-sparc.h (POP_FRAME): replace some constants with defines.
867*b725ae77Skettenis
868*b725ae77Skettenis	* sparc-xdep.c (store_inferior_registers):  defer stores to regs
869*b725ae77Skettenis	until a good time (e.g. when we are about to run the child),
870*b725ae77Skettenis	saving ptrace calls.
871*b725ae77Skettenis    	* infrun.c (proceed):  handle DO_DEFERRED_STORES.
872*b725ae77Skettenis	* tm-sparc.h: define DO_DEFERRED_STORES.
873*b725ae77Skettenis
874*b725ae77Skettenis	* sparc-xdep.c (store_inferior_registers): when storing float
875*b725ae77Skettenis	registers, don't store stack regs too.  When storing the SP,
876*b725ae77Skettenis	however, DO store the stack regs too.  This fixes a bug in which
877*b725ae77Skettenis	the dummy frame is not recognized when a call_function finishes,
878*b725ae77Skettenis	because its frame pointer (in the stack regs) was never
879*b725ae77Skettenis	initialized.
880*b725ae77Skettenis	(read_inferior_registers):  Mark WIM and TBR and FPS and CPS valid
881*b725ae77Skettenis	even though we don't know how to read them from an inferior.
882*b725ae77Skettenis	valops.c (call_function):  Comment about storing SP.
883*b725ae77Skettenis
884*b725ae77Skettenis	* infrun.c (save_inferior_status): Save away the original bpstat
885*b725ae77Skettenis	chain so it can be restored later.  Install the copied version for
886*b725ae77Skettenis	use by whoever saved the status.  It will be blow away by
887*b725ae77Skettenis	restore_inferior_status, and the original chain restored.  This is
888*b725ae77Skettenis	important for people who have pointers into the original.
889*b725ae77Skettenis
890*b725ae77Skettenis	* breakpoint.c, command.h, copying.awk, dbxread.c, defs.h,
891*b725ae77Skettenis	findvar.c, frame.h, obstack.h, obstack.c, inflow.c, value.h,
892*b725ae77Skettenis	main.c, printcmd.c, sparc-tdep.c, symtab.c, valprint.c: lint
893*b725ae77Skettenis
894*b725ae77Skettenis
895*b725ae77SkettenisFri Sep 28 20:32:46 1990  John Gilmore  (gnu at cygnus.com)
896*b725ae77Skettenis
897*b725ae77Skettenis	* Makefile.dist: Roll version to 3.91.8.  Add bfd.h and bfdconfig.h
898*b725ae77Skettenis	temporarily to the makefile.  Add am29k-opcode.h and WHATS.NEW.
899*b725ae77Skettenis	Add stuff.c and kdb-start.c to the OTHERS list for tar files.
900*b725ae77Skettenis
901*b725ae77SkettenisFri Sep 28 19:12:12 1990  John Gilmore  (gnu at cygint)
902*b725ae77Skettenis
903*b725ae77Skettenis	* Merge Mike Tiemann's multiple inheritance changes from Sun.
904*b725ae77Skettenis	Store the baseclasses in a type struct starting from array element
905*b725ae77Skettenis	0 rather than from the unusual array element 1.
906*b725ae77Skettenis
907*b725ae77Skettenis	dbxread.c: the above.
908*b725ae77Skettenis	(virtual_context): Add
909*b725ae77Skettenis	Read new debug information about which virtual function table
910*b725ae77Skettenis	a virtual function is from, and store it in fn_field.fcontext.
911*b725ae77Skettenis
912*b725ae77Skettenis	symtab.h: Add fcontextt.  Fix baseclass indices.  Typo in
913*b725ae77Skettenis	TYPE_FN_FIELD_STATIC_P.
914*b725ae77Skettenis
915*b725ae77Skettenis	symtab.c: the above.
916*b725ae77Skettenis	valops.c: the above.  Handle pointer casts of object *'s.
917*b725ae77Skettenis	(search_struct_method): Add.
918*b725ae77Skettenis	(value_struct_elt): First arg is now a pointer to a value, and is
919*b725ae77Skettenis	modified on return.
920*b725ae77Skettenis
921*b725ae77Skettenis	valprint.c: the above.
922*b725ae77Skettenis	values.c (value_virtual_fn_field): Add type arg.  Handle
923*b725ae77Skettenis	offsetting to the proper object when calling virtual fns.
924*b725ae77Skettenis	The above.
925*b725ae77Skettenis	(baseclass_addr): Add valuep arg.
926*b725ae77Skettenis
927*b725ae77Skettenis	* README:  Document the current state of BFD config (missing).
928*b725ae77Skettenis	* TODO, ChangeLog, Makefile.dist: Roll version.
929*b725ae77Skettenis	* WHATS.NEW: Add summary of changes since 3.5.
930*b725ae77Skettenis
931*b725ae77SkettenisThu Sep 27 16:23:12 1990  John Gilmore  (gnu at cygint)
932*b725ae77Skettenis
933*b725ae77Skettenis	* dbxread.c (read_struct_type): Clear bit vectors whenever
934*b725ae77Skettenis	we allocate one.
935*b725ae77Skettenis	symtab.c (B_CLRALL): define.
936*b725ae77Skettenis
937*b725ae77Skettenis	* tm-sparc.h (STORE_RETURN_VALUE): Avoid clobbering types by
938*b725ae77Skettenis	using == rather than =.  Huh...  This fixes the dreaded problem
939*b725ae77Skettenis	wherein builtin_type_int becomes TYPE_CODE_FLT.
940*b725ae77Skettenis
941*b725ae77Skettenis	* core.c (info_files): Show the inferior pid.
942*b725ae77Skettenis
943*b725ae77Skettenis	* config.gdb: Avoid putting "dir" command into .gdbinit.  GDB
944*b725ae77Skettenis	already knows how to look in the source directory.
945*b725ae77Skettenis
946*b725ae77Skettenis	* Remove psymtab hair from many places.  Remove duplicated code
947*b725ae77Skettenis	for searching symbol tables.  Hide psymtabs from most places.
948*b725ae77Skettenis	Make it fast to get from a psymtab to its symtab.
949*b725ae77Skettenis
950*b725ae77Skettenis	blockframe.c (blockvector_for_pc): Remove psymtab hair.
951*b725ae77Skettenis	coffread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
952*b725ae77Skettenis	mipsread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
953*b725ae77Skettenis	dbxread.c: export psymtab_to_symtab, make it work if called N times.
954*b725ae77Skettenis	(psymtab_to_symtab): Rename to psymtab_to_symtab2.  Initialize
955*b725ae77Skettenis	new symtab completely.  New psymtabs get symtab pointer
956*b725ae77Skettenis	initialized to zero.  Remove MI warning printf.
957*b725ae77Skettenis	symtab.h: Comments.  Add psymtab to symtab pointer.
958*b725ae77Skettenis	(PSYMTAB_TO_SYMTAB): New macro.
959*b725ae77Skettenis	symtab.c: use PSYMTAB_TO_SYMTAB.  Add psymtab_to_symtab and export it.
960*b725ae77Skettenis	source.c: use PSYMTAB_TO_SYMTAB.  Remove symtab version and
961*b725ae77Skettenis	compilation fields.
962*b725ae77Skettenis	stack.c (backtrace_command): Avoid pre-pass to read symbols, if
963*b725ae77Skettenis	verbose is not set.
964*b725ae77Skettenis	(print_frame_info): Avoid special-casing symbols that have not yet
965*b725ae77Skettenis	been read in.
966*b725ae77Skettenis
967*b725ae77Skettenis	* source.c (open_source_file): Quick path if we have already
968*b725ae77Skettenis	located the source file by its full name.
969*b725ae77Skettenis
970*b725ae77Skettenis	* symtab.c (lookup_symbol): Use find_pc_symtab rather than
971*b725ae77Skettenis	find_pc_psymtab.  When a name is found in the misc function
972*b725ae77Skettenis	vector, search the symbol table for its mangled name, not the
973*b725ae77Skettenis	name that the user typed.
974*b725ae77Skettenis
975*b725ae77Skettenis	* bfd.h: Fix missing comment terminators, make #endifs match.
976*b725ae77Skettenis
977*b725ae77Skettenis	* valarith.c (value_less): Handle unsigned int comparisons.
978*b725ae77Skettenis	Add FIXME about pointer compares, which assume host and target
979*b725ae77Skettenis	pointers are the same.
980*b725ae77Skettenis
981*b725ae77Skettenis	* command.c (do_nothing_command): lint
982*b725ae77Skettenis	dbxread.c: lint.  Remove sort_syms.  Document C++ visibility info,
983*b725ae77Skettenis	fix comments on debug symbol format for visibility.  Actually set
984*b725ae77Skettenis	visibility of symbols.
985*b725ae77Skettenis	main.c (echo_command): lint; use <readline/history.h>.
986*b725ae77Skettenis	tm-sparc.h (FRAME_FIND_SAVED_REGS): lint
987*b725ae77Skettenis	obstack.h (_obstack_blank): Rearrange pointer math to avoid
988*b725ae77Skettenis	pointing past end of allocated memory; saber complains.
989*b725ae77Skettenis	obstack.h: Declare the external functions that we use.
990*b725ae77Skettenis	valarith.h: use <string.h>
991*b725ae77Skettenis	solib.c (solib_add): lint.
992*b725ae77Skettenis
993*b725ae77SkettenisFri Sep 21 17:05:19 1990  John Gilmore  (gnu at cygint)
994*b725ae77Skettenis
995*b725ae77Skettenis	* main.c (initialize_main):  Default info_verbose to off, now that
996*b725ae77Skettenis	symbol reading is fast.
997*b725ae77Skettenis	(quit_command):  Avoid clobbering exec_bfd while quitting.
998*b725ae77Skettenis
999*b725ae77Skettenis	* Initial BFD (binary file diddling library) merger:
1000*b725ae77Skettenis	coffread.c: Change AOUTHDR to struct exe_hdr.
1001*b725ae77Skettenis	dbxread.c: ditto.
1002*b725ae77Skettenis	core.c: initialize initialized data at compile time.
1003*b725ae77Skettenis	(core_file_command):  Move from coredep.c, convert to bfd.
1004*b725ae77Skettenis	(xfer_core_file): Convert to bfd.
1005*b725ae77Skettenis	exec.c (exec_file_command): use bfd routines.
1006*b725ae77Skettenis	gdbcore.h: BFD.
1007*b725ae77Skettenis	mips-tdep.c: Remove exec_file_command and friends.
1008*b725ae77Skettenis	source.c: bfd.
1009*b725ae77Skettenis
1010*b725ae77Skettenis	* coredep.c: (fetch_core_registers) Convert core_file_command to
1011*b725ae77Skettenis	fetch_core_registers.
1012*b725ae77Skettenis	mips-xdep.c, sparc-xdep.c, sun3-xdep.c: ditto.
1013*b725ae77Skettenis
1014*b725ae77Skettenis	* utils.c: (error): Bogus crap, FIXME, to print bfd errors.
1015*b725ae77Skettenis	(my_bfd_read): More bogosity, which I don't think we call.
1016*b725ae77Skettenis	(program_name): Remove this atrocity asap!
1017*b725ae77Skettenis
1018*b725ae77SkettenisWed Sep 19 13:36:41 1990  John Gilmore  (gnu at cygint)
1019*b725ae77Skettenis
1020*b725ae77Skettenis	* From Per Bothner:
1021*b725ae77Skettenis	values.c: allocate_repeat_value was not clearing the
1022*b725ae77Skettenis	optimized_out field.
1023*b725ae77Skettenis	(value_static_field): minor stylistic fix (wrong macro was used).
1024*b725ae77Skettenis	valops.c (value_struct_elt_for_address): didn't work for C++
1025*b725ae77Skettenis	static fields.
1026*b725ae77Skettenis
1027*b725ae77Skettenis	* signame.c (_initialize_signame):  Initialize signal names once.
1028*b725ae77Skettenis
1029*b725ae77Skettenis	* breakpoint.h, command.c, copying.awk, defs.h, environ.c,
1030*b725ae77Skettenis	exec.c, frame.h, infcmd.c, inferior.h, main.c, munch, sun3-xdep.c,
1031*b725ae77Skettenis	symtab.h, tm-29k.h, valprint.c, value.h, values.c:  Lint.
1032*b725ae77Skettenis
1033*b725ae77Skettenis	* remote-eb.c:  Support user-settable baud rates on the serial port.
1034*b725ae77Skettenis
1035*b725ae77Skettenis	* tm-sun3.h (PREPARE_TO_STORE): fix typo.
1036*b725ae77Skettenis
1037*b725ae77SkettenisFri Sep 14 13:28:29 1990  John Gilmore  (gnu at cygint)
1038*b725ae77Skettenis
1039*b725ae77Skettenis	* tconfig/sun3os4: Remove warning about native assembler,
1040*b725ae77Skettenis	since it also occurs in the xconfig file.
1041*b725ae77Skettenis
1042*b725ae77Skettenis	* findvar.c (registers): Allocate some slop after `registers'
1043*b725ae77Skettenis	to prevent stray accesses from trashing the next variable.
1044*b725ae77Skettenis
1045*b725ae77Skettenis	* tm-68k.h (REGISTER_BYTES):  Allocate the right number of bytes
1046*b725ae77Skettenis	on the sun-3, by changing the #ifdef from `sun3' (which is not
1047*b725ae77Skettenis	defined by cc) to `sun'.  Symptom was trashed builtin_type_XXX
1048*b725ae77Skettenis	vars, which happened to follow `registers' in the executable.
1049*b725ae77Skettenis
1050*b725ae77Skettenis	* readline/history.c (history_search): Heed gcc-2's advice
1051*b725ae77Skettenis	and parenthesize && inside ||).
1052*b725ae77Skettenis
1053*b725ae77Skettenis	* am29k-opcode.h, am29k-pinsn.c, am29k-tdep.c, remote-eb.c,
1054*b725ae77Skettenis	tm-29k.c:  Insert FSF copyright headers.
1055*b725ae77Skettenis
1056*b725ae77Skettenis	* remote-eb.c:  Better comments.
1057*b725ae77Skettenis
1058*b725ae77Skettenis	* Makefile.dist:  Update to 3.91.6.
1059*b725ae77Skettenis	* TODO: note PREPARE_TO_STORE problem.
1060*b725ae77Skettenis
1061*b725ae77SkettenisThu Sep 13 09:52:33 1990  Jim Kingdon  (kingdon at cygint)
1062*b725ae77Skettenis
1063*b725ae77Skettenis	* stack.c (frame_info): Only use FRAME_FIND_SAVED_REGS if defined.
1064*b725ae77Skettenis
1065*b725ae77Skettenis	* remote.c:  Wrap the whole file in #if !defined (SPECIAL_REMOTE).
1066*b725ae77Skettenis
1067*b725ae77Skettenis	* infrun.c (wait_for_inferior, at end): Don't set up
1068*b725ae77Skettenis	prev_* if the inferior no longer exists.
1069*b725ae77Skettenis
1070*b725ae77Skettenis	* inferior.h (CALL_DUMMY_LOCATION): New macro, to replace
1071*b725ae77Skettenis	CANNOT_EXECUTE_STACK.
1072*b725ae77Skettenis	valops.c (call_function): Use it.
1073*b725ae77Skettenis
1074*b725ae77Skettenis	* tm-convex.h: Add CALL_DUMMY_LENGTH for use by PC_IN_CALL_DUMMY.
1075*b725ae77Skettenis
1076*b725ae77Skettenis	* inferior.h (PC_IN_CALL_DUMMY): New macro.
1077*b725ae77Skettenis	infrun.c (wait_for_inferior, 2 places): Use it.
1078*b725ae77Skettenis
1079*b725ae77Skettenis	* values.c (value_being_returned): Only use
1080*b725ae77Skettenis	EXTRACT_STRUCT_VALUE_ADDRESS if defined.
1081*b725ae77Skettenis
1082*b725ae77Skettenis	* Move PREPARE_TO_STORE from xm-sun3.h to tm-sun3.h to do the
1083*b725ae77Skettenis	right thing for remote-eb.c.
1084*b725ae77Skettenis
1085*b725ae77Skettenis	* sun3-xdep.c:  Remove extraneous call to remote_store_registers.
1086*b725ae77Skettenis	* sun386-xdep.c, hp300hpux-xdep.c, sparc-xdep.c:  Ditto.
1087*b725ae77Skettenis
1088*b725ae77Skettenis	* blockframe.c:  Put get_frame_saved_regs inside #if !defined
1089*b725ae77Skettenis	(FRAME_FIND_SAVED_REGS).
1090*b725ae77Skettenis
1091*b725ae77Skettenis	* findvar.c ({fetch,store}_registers): Check for
1092*b725ae77Skettenis	REMOTE_{FETCH_STORE}_REGISTER macro.
1093*b725ae77Skettenis
1094*b725ae77Skettenis	* findvar.c (get_saved_register): Add argument lval and
1095*b725ae77Skettenis	change meaning of argument addr.
1096*b725ae77Skettenis	findvar.c:  Change calls to get_saved_register to reflect
1097*b725ae77Skettenis	new calling convention.
1098*b725ae77Skettenis	valops.c (value_assign): Use get_saved_register instead of
1099*b725ae77Skettenis	find_saved_register.
1100*b725ae77Skettenis
1101*b725ae77SkettenisSun Sep  2 12:40:20 1990  Jim Kingdon  (kingdon at cygint.cygnus.com)
1102*b725ae77Skettenis
1103*b725ae77Skettenis	* coffread.c (read_one_sym): Make temp_aux an AUXENT, not
1104*b725ae77Skettenis	an (uninitialized) pointer to one.  Use "&" when passing it
1105*b725ae77Skettenis	to fread.
1106*b725ae77Skettenis
1107*b725ae77SkettenisFri Aug 31 22:57:54 1990  Jim Kingdon  (kingdon at cygint.cygnus.com)
1108*b725ae77Skettenis
1109*b725ae77Skettenis	* coffread.c (getfilename): Use DGUX x_offset and x_name if
1110*b725ae77Skettenis	defined.
1111*b725ae77Skettenis
1112*b725ae77Skettenis	* coffread.c (symbol_file_command): Put semicolon after
1113*b725ae77Skettenis	"int from_tty".
1114*b725ae77Skettenis	Put safe_to_init_tdesc_context in #if defined (TDESC).
1115*b725ae77Skettenis	Put #ifdef TDESCs in 1st column for non-ANSI cpp's.
1116*b725ae77Skettenis	coffread.c: #include <sys/stat.h>.
1117*b725ae77Skettenis	(read_coff_symtab): Typo: in_source_files -> in_source_file.
1118*b725ae77Skettenis	Add missing ')' in check for "lc%" and friends.  Remove
1119*b725ae77Skettenis	extraneous '}'.
1120*b725ae77Skettenis	Declare read_one_sym() at top of file.
1121*b725ae77Skettenis	(read_file_hdr): Put in extra #ifdefs so MC68MAGIC and
1122*b725ae77Skettenis	MC68WRMAGIC can have the same value without causing a duplicate
1123*b725ae77Skettenis	case.
1124*b725ae77Skettenis
1125*b725ae77SkettenisThu Sep 13 15:55:36 1990  John Gilmore  (gnu at cygint)
1126*b725ae77Skettenis
1127*b725ae77Skettenis	* Allow a Makefile to be built without building the
1128*b725ae77Skettenis	tm and xm file links that screw up builds in subdirectories.
1129*b725ae77Skettenis	This is done with `config.gdb none', then you can do things
1130*b725ae77Skettenis	like `make gdb.tar.Z'.
1131*b725ae77Skettenis	* tconfig/none: Config file for no target system
1132*b725ae77Skettenis	* xconfig/none: Config file for no host system
1133*b725ae77Skettenis	* config.gdb: If no TM or XM files are called out by the
1134*b725ae77Skettenis	host or target file, don't make links for them.
1135*b725ae77Skettenis
1136*b725ae77Skettenis	* cplus-dem.c: Add documentation.
1137*b725ae77Skettenis
1138*b725ae77Skettenis	* dbxread.c (read_ofile_symtab): Turn a fatal error into a
1139*b725ae77Skettenis	simple error, so the user's gdb doesn't crash due to some object
1140*b725ae77Skettenis	file problem (e.g. somebody is rebuilding the file out from under
1141*b725ae77Skettenis	gdb).
1142*b725ae77Skettenis
1143*b725ae77Skettenis	* printcmd.c (print_address_symbolic): demangle the symbol.
1144*b725ae77Skettenis
1145*b725ae77Skettenis	* Makefile.dist (OTHERS): Remove tdesc-lib because it has
1146*b725ae77Skettenis	Motorola copyrights in it.  Make "make gdb.tar.Z" work.
1147*b725ae77Skettenis	(alldeps.mak): sort and uniq all results from this; duplicates
1148*b725ae77Skettenis	hose gdb.tar.Z link building.  Remove RCS files from
1149*b725ae77Skettenis	tconfig and xconfig.  Add config files for sun386.  Add
1150*b725ae77Skettenis	a few odd files to OTHERS and HFILES.
1151*b725ae77Skettenis
1152*b725ae77SkettenisMon Sep 10 21:20:24 1990  John Gilmore  (gnu at cygint)
1153*b725ae77Skettenis
1154*b725ae77Skettenis	* Makefile.dist: Pull solib.c to tconfig/sun?os4.
1155*b725ae77Skettenis	Roll version number to 3.91.5.  Make lint work in bindir.
1156*b725ae77Skettenis
1157*b725ae77Skettenis	* README:  Document cross-debugging and new file structure.
1158*b725ae77Skettenis
1159*b725ae77Skettenis	* blockframe.c: Lint.  Include "value.h" to declare read_register.
1160*b725ae77Skettenis	(find_pc_partial_function): remove duplicate line.
1161*b725ae77Skettenis
1162*b725ae77Skettenis	* command.h: Lint.  Declare error_no_arg and dont_repeat.
1163*b725ae77Skettenis
1164*b725ae77Skettenis	* tm-news.h: Remove inadvertently duplicated stuff.
1165*b725ae77Skettenis
1166*b725ae77Skettenis	* mipsread.c: Remove cache_pc_function stuff, now done cleanly.
1167*b725ae77Skettenis	Clean up usage of misc_function_type.  Declare some CORE_ADDRs.
1168*b725ae77Skettenis
1169*b725ae77Skettenis	* config.gdb: Allow `config.gdb host target' form.  Clean
1170*b725ae77Skettenis	up previous change that printed bogus messages when you just said
1171*b725ae77Skettenis	`config.gdb'.
1172*b725ae77Skettenis
1173*b725ae77Skettenis	* core.c: #include "command.h" for lint.
1174*b725ae77Skettenis	* dbxread.c: lint
1175*b725ae77Skettenis	* eval.c: lint
1176*b725ae77Skettenis	* main.c: Remove some casts of enums.  Lint.
1177*b725ae77Skettenis	* source.c: lint
1178*b725ae77Skettenis	* symtab.c: lint
1179*b725ae77Skettenis	* symtab.h: lint
1180*b725ae77Skettenis	* expread.y: lint
1181*b725ae77Skettenis	* valarith.c: lint
1182*b725ae77Skettenis
1183*b725ae77Skettenis	* printcmd.c (initialize_printcmd): Fix thinko in inspect cmd.
1184*b725ae77Skettenis
1185*b725ae77Skettenis	* sparc-tdep.c (isannulled): Take instruction as parameter, don't
1186*b725ae77Skettenis	read it from memory.  This will allow us to save ptrace calls
1187*b725ae77Skettenis	eventually.   Changed caller single_step too.
1188*b725ae77Skettenis
1189*b725ae77Skettenis	* sparc-xdep.c (fetch_inferior_registers): Avoid reading regs
1190*b725ae77Skettenis	that we aren't going to use, saving many ptrace calls, especially
1191*b725ae77Skettenis	when watchpointing or single stepping.  Use some #define's for
1192*b725ae77Skettenis	constants.
1193*b725ae77Skettenis	(store_inferior_registers): Ditto.
1194*b725ae77Skettenis	(core_file_command): Use some #define's for constants.
1195*b725ae77Skettenis
1196*b725ae77Skettenis	* tm-sparc.h: Add #define's for some register numbers, so we
1197*b725ae77Skettenis	can eliminate the use of random constants in sparc-xdep.c.
1198*b725ae77Skettenis
1199*b725ae77Skettenis	* stack.c (frame_command, print_frame_info, up_command,
1200*b725ae77Skettenis	down_command) Remove frame_changed, since it
1201*b725ae77Skettenis	causes a bug and doesn't seem to do anything useful.  In some
1202*b725ae77Skettenis	places it was used as a flag, in others as a stack level (?).
1203*b725ae77Skettenis
1204*b725ae77Skettenis	* utils.c: Use MISSING_VPRINTF rather than HAVE_VPRINTF, so the
1205*b725ae77Skettenis	default is to use the portable (vprintf) version rather than the
1206*b725ae77Skettenis	kludge version.
1207*b725ae77Skettenis	* xm-news.h (MISSING_VPRINTF): Add.
1208*b725ae77Skettenis
1209*b725ae77Skettenis	* valprint.c (val_print): Demangle fancy vtbl printouts.  Lint.
1210*b725ae77Skettenis
1211*b725ae77SkettenisSat Sep  8 00:24:12 1990  John Gilmore  (gnu at cygint)
1212*b725ae77Skettenis
1213*b725ae77Skettenis	* Remove stuff that forces -Bstatic linking of gdb, and warnings
1214*b725ae77Skettenis	about linking debugged programs -Bstatic in the sun?os4 config
1215*b725ae77Skettenis	files in tconfig and xconfig subdirectories.
1216*b725ae77Skettenis
1217*b725ae77Skettenis	* main.c (main):  Remove unreached exit(0) now that we exit
1218*b725ae77Skettenis	via quit_command().
1219*b725ae77Skettenis
1220*b725ae77Skettenis	* Create TODO file for online bug list.  There are too many
1221*b725ae77Skettenis	"little" bugs to keep track of on paper.
1222*b725ae77Skettenis
1223*b725ae77Skettenis	* Change Projects file to refer to bug-gdb@cygnus.com
1224*b725ae77Skettenis	rather than kingdon@ai.
1225*b725ae77Skettenis
1226*b725ae77SkettenisFri Sep  7 23:35:15 1990  John Gilmore  (gnu at cygint)
1227*b725ae77Skettenis
1228*b725ae77Skettenis	* Makefile.dist (VERSION): 3.91.4 now.
1229*b725ae77Skettenis
1230*b725ae77Skettenis	* symtab.c (init_misc_bunches): Rename from init_misc_functions.
1231*b725ae77Skettenis	(condense_misc_bunches): Add sanity check that misc_count is
1232*b725ae77Skettenis	the same as the number of symbols in the bunch.
1233*b725ae77Skettenis
1234*b725ae77Skettenis	* coffread.c: rename init_misc_bunches.  Pass an argument
1235*b725ae77Skettenis	to condense_misc_bunches (a zero).
1236*b725ae77Skettenis
1237*b725ae77Skettenis	* dbxread.c (partial_symbol_file_read): Call init_misc_bunches
1238*b725ae77Skettenis	every time we are called; don't rely on our caller to do it.
1239*b725ae77Skettenis	(add_file): Remove call to init_misc_bunches.
1240*b725ae77Skettenis
1241*b725ae77Skettenis	* mipsread.c: Only warn, don't error, if unknown symbol types.
1242*b725ae77Skettenis	This keeps an old gdb from falling on its face if it sees newly
1243*b725ae77Skettenis	extended symbol info.  Rename init_misc_bunches.
1244*b725ae77Skettenis
1245*b725ae77SkettenisFri Sep  7 22:58:15 1990  John Gilmore  (gnu at cygint)
1246*b725ae77Skettenis
1247*b725ae77Skettenis	* Merge in changes from Per Bothner for DECstations and other
1248*b725ae77Skettenis	MIPS stuff.  The rest is Bothner speaking:
1249*b725ae77Skettenis
1250*b725ae77Skettenis	The next message is a merger of Alessando Forin's mips port with
1251*b725ae77Skettenis	mine.  I've tried to use my good if biased judgment to get
1252*b725ae77Skettenis	the best of both. It *does* need testing.
1253*b725ae77Skettenis
1254*b725ae77Skettenis	Some of the changes are general, *not* mips-specific.
1255*b725ae77Skettenis
1256*b725ae77Skettenis	param.h:
1257*b725ae77Skettenis	Didn't believe in little-endian bit order.
1258*b725ae77Skettenis	There are still inconsistencies about whether flags
1259*b725ae77Skettenis	like BITS_BIG_ENDIAN are integer (#if ...) or
1260*b725ae77Skettenis	boolean (#ifdef ...). I tried to paper over them.
1261*b725ae77Skettenis
1262*b725ae77Skettenis	dbxread.c,coffread.c,mipsread.c,symtab.c,symtab.h:
1263*b725ae77Skettenis	Moved some misc_function code that was common to
1264*b725ae77Skettenis	{dbx,coff,mips}read.c to symtab.c.
1265*b725ae77Skettenis	In the process, I think I cleaned things up a bit.
1266*b725ae77Skettenis	At the same time, moved obsavestring and obconcat to symtab.c.
1267*b725ae77Skettenis
1268*b725ae77Skettenis	dbxread.c:
1269*b725ae77Skettenis	Removed obsolete condense_addl_misc_bunches (use
1270*b725ae77Skettenis	condense_misc_bunches(1) instead).
1271*b725ae77Skettenis
1272*b725ae77Skettenis	exec.c:
1273*b725ae77Skettenis	Needed to include <sys/dir>, at least on DECstations.
1274*b725ae77Skettenis
1275*b725ae77Skettenis	valops.c, mips-tdep.c, tm-mips.h:
1276*b725ae77Skettenis	Added PUSH_ARGUMENTS macro to support funny argument-pushing
1277*b725ae77Skettenis	conventions (when STACK_ALIGN is insufficient).
1278*b725ae77Skettenis	Needed on mips, where doubles need 8-byte alignment,
1279*b725ae77Skettenis	but ints only need 4.
1280*b725ae77Skettenis
1281*b725ae77Skettenis	mips-opcode.h:
1282*b725ae77Skettenis	Removed cruft that was not being used.
1283*b725ae77Skettenis	Merged in many fixes (most from Frank Yellin, fy@lucid.com).
1284*b725ae77Skettenis
1285*b725ae77Skettenis	mips-pinsn.c:
1286*b725ae77Skettenis	Print $ before register-names (I think that makes things a little
1287*b725ae77Skettenis	more consistent).
1288*b725ae77Skettenis	Never print two instructions, even if one delays.
1289*b725ae77Skettenis	Removed hex-disassemble set_cmd.  (This is not mips-specific,
1290*b725ae77Skettenis	so I think the argument is whether it is generally worthwhile or not.
1291*b725ae77Skettenis	I'm inclined to think not, given how easy it is to
1292*b725ae77Skettenis	convert between radixes in gdb.)
1293*b725ae77Skettenis
1294*b725ae77Skettenis	mipsread.c:
1295*b725ae77Skettenis	This is basically Alessando's code.
1296*b725ae77Skettenis	It doesn't use obstacks; I changed it to use obstacks
1297*b725ae77Skettenis	in a few minor places where using malloc causes a
1298*b725ae77Skettenis	memory leak. (Probably, more places could/should be changed.)
1299*b725ae77Skettenis	I added record_misc_function where it was missing.
1300*b725ae77Skettenis	In symbol_file_command and add_file_command, I tried
1301*b725ae77Skettenis	to make the code consistent with more recent versions.
1302*b725ae77Skettenis	Minor sylistic changes in parse_procedure.
1303*b725ae77Skettenis	Make a .gdbinfo. psuedo-symbol point back to the real
1304*b725ae77Skettenis	procedure symbol (using the isym field).
1305*b725ae77Skettenis
1306*b725ae77Skettenis	mips-tdep.c:
1307*b725ae77Skettenis	This is basically from my port, but with a lot of details
1308*b725ae77Skettenis	and a number of routines merged in from Alessando's version.
1309*b725ae77Skettenis	I basically used my code "raw" backtrace (use heuristics
1310*b725ae77Skettenis	from the actual code, rather than symbol table info) - though
1311*b725ae77Skettenis	the idea is Alessandro's. I feel my code is a little cleaner
1312*b725ae77Skettenis	here, particularly in being a little more flexible, such as being
1313*b725ae77Skettenis	able to handle gcc-produced code (which it now can).
1314*b725ae77Skettenis	It also doesn't do frame caching (which is not useful
1315*b725ae77Skettenis	more recent gdb versions).
1316*b725ae77Skettenis	I also used my code for push_/pop_dummy, more or less.
1317*b725ae77Skettenis	I tried to incorporate AF's code for testing sigtramp
1318*b725ae77Skettenis	while backtracing; I probably got it wrong.
1319*b725ae77Skettenis	Added mips_print_register, which tries to scrunch as much
1320*b725ae77Skettenis	information as possible on a screen...
1321*b725ae77Skettenis	Removed the skip-prologue set_cmd. As with hex-disassemble (see
1322*b725ae77Skettenis	under mips-pinsn.c), I don't see anything mips-specific here,
1323*b725ae77Skettenis	and I don't see it being all that useful anyway.
1324*b725ae77Skettenis
1325*b725ae77Skettenis	tm-mips.h:
1326*b725ae77Skettenis	Added a $fp psuedo-reg distinct from $fp (nice for gcc).
1327*b725ae77Skettenis	Use more register names (rather than hard-cases numbers).
1328*b725ae77Skettenis
1329*b725ae77SkettenisThu Sep  6 18:33:15 1990  John Gilmore  (gnu at cygint)
1330*b725ae77Skettenis
1331*b725ae77Skettenis	* Hack up 3.90.11 changes:
1332*b725ae77Skettenis
1333*b725ae77Skettenis	* Makefile.dist (depend): parameterize $(GCC).
1334*b725ae77Skettenis	Add solib.c and solib.o.
1335*b725ae77Skettenis	(readline): Fix vpath for both absolute or relative SRCDIR.
1336*b725ae77Skettenis
1337*b725ae77Skettenis	* blockframe.c: Fix from Schaefer@asc.slb.com for shared libs.
1338*b725ae77Skettenis	Also, let the part I didn't understand at least compile so
1339*b725ae77Skettenis	I can test the rest.  FIXME.
1340*b725ae77Skettenis
1341*b725ae77Skettenis	* dbxread.c: Fix thinko using strcmp.
1342*b725ae77Skettenis	(init_psymbol_list): declare static.
1343*b725ae77Skettenis	(partial_symbol_file_open): Comment cleanups better, avoid
1344*b725ae77Skettenis	cleaning up the string table since the caller will do that.
1345*b725ae77Skettenis	Move the stat for mod time into symbol_file_command, temporarily.
1346*b725ae77Skettenis	(There should be a mod time for each symbol file, eventually,
1347*b725ae77Skettenis	to control its rereading.  FIXME.)
1348*b725ae77Skettenis
1349*b725ae77Skettenis	* infptrace.c (PT_WRITE_D): use same value as PT_WRITE_I for
1350*b725ae77Skettenis	SunOS, which gives error for shared libs otherwise.  (From
1351*b725ae77Skettenis	Schaefer, probably FIXME needs work for portability.)
1352*b725ae77Skettenis
1353*b725ae77Skettenis	* solib.c:  Move #include "param.h" to work.
1354*b725ae77Skettenis	Lowercase all the Uppercase Letters In the Messages.
1355*b725ae77Skettenis	(find_solib): Clean up inferior_so_name for debug printouts.
1356*b725ae77Skettenis	Allow no argument, to mean all shared libraries.
1357*b725ae77Skettenis
1358*b725ae77Skettenis	* symmisc.c: include param.h to get CLEAR_SOLIB.
1359*b725ae77Skettenis
1360*b725ae77SkettenisWed Sep  5 18:00:08 1990  John Gilmore  (gnu at cygint)
1361*b725ae77Skettenis
1362*b725ae77Skettenis	* Merge in Kingdon's changes from FSF: the diffs from 3.90.9
1363*b725ae77Skettenis	  to 3.90.11.  ChangeLog entries below are from this.
1364*b725ae77Skettenis
1365*b725ae77SkettenisWed Jun 13 09:17:39 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
1366*b725ae77Skettenis
1367*b725ae77Skettenis	* Version 3.90.11.
1368*b725ae77Skettenis
1369*b725ae77Skettenis	* Makefile.dist (HFILES): Add tm-sunos.h.
1370*b725ae77Skettenis
1371*b725ae77SkettenisTue Jun 12 16:15:26 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1372*b725ae77Skettenis
1373*b725ae77Skettenis	* Version 3.90.10.
1374*b725ae77Skettenis
1375*b725ae77Skettenis	* Makefile.dist (gdb.tar.Z): Change linking of config so it works.
1376*b725ae77Skettenis
1377*b725ae77SkettenisThu Jun  7 16:22:27 EDT 1990  Jay Fenlason (hack@ai.mit.edu)
1378*b725ae77Skettenis
1379*b725ae77Skettenis	* sparc-opcode.h  Added single-operand version of rett.
1380*b725ae77Skettenis
1381*b725ae77SkettenisMon Jun  4 18:12:31 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1382*b725ae77Skettenis
1383*b725ae77Skettenis	* m-sparc.h (REG_STRUCT_HAS_ADDR, STRUCT_ARG_SYM_GARBAGE):
1384*b725ae77Skettenis	Put parens around gcc_p in expansion.
1385*b725ae77Skettenis
1386*b725ae77SkettenisThu May 24 15:44:51 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
1387*b725ae77Skettenis
1388*b725ae77Skettenis	* utils.c (lines_to_list): Return 10 if lines_per_page == 0.
1389*b725ae77Skettenis
1390*b725ae77SkettenisWed May 23 16:36:04 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1391*b725ae77Skettenis
1392*b725ae77Skettenis	* Changes for Sun shared libraries:
1393*b725ae77Skettenis	blockframe.c (find_pc_partial_function): If a non-text symbol
1394*b725ae77Skettenis	is found, set *address = pc - FUNCTION_START_OFFSET.
1395*b725ae77Skettenis	breakpoint.c (insert_breakpoints) [DISABLE_UNSETTABLE_BREAK]:
1396*b725ae77Skettenis	Disable breakpoints instead of giving an error.
1397*b725ae77Skettenis	source.c (select_source_symtab): Initialize cs_pst.
1398*b725ae77Skettenis	symmisc.c: Call CLEAR_SOLIB if defined.
1399*b725ae77Skettenis	symtab.h: Make text{low,high} CORE_ADDR not int.
1400*b725ae77Skettenis	(psymtab): New field addr.
1401*b725ae77Skettenis	solib.c: New file.
1402*b725ae77Skettenis	dbxread.c: Move DECLARE_FILE_HEADERS outside functions.
1403*b725ae77Skettenis	(record_misc_function): Give correct type for N_DATA symbols.
1404*b725ae77Skettenis	(condense_misc_bunches): do "misc_function_count = j" regardless
1405*b725ae77Skettenis	of inclink.
1406*b725ae77Skettenis	Take code which is shared between symbol_file_command and
1407*b725ae77Skettenis	add_file_command and put it into partial_symbol_file_{open,read}.
1408*b725ae77Skettenis	Split add_file_command into add_file_command and add_file.
1409*b725ae77Skettenis	Make psymtab_to_symtab read in the string table if the file
1410*b725ae77Skettenis	is not symfile.
1411*b725ae77Skettenis	Two new parameters to read_dbx_symtab and start_psymtab.
1412*b725ae77Skettenis	tm-sunos.h: New file.
1413*b725ae77Skettenis
1414*b725ae77SkettenisTue May 22 17:43:03 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1415*b725ae77Skettenis
1416*b725ae77Skettenis	* infcmd.c: Change cont_command to continue_command and "cont"
1417*b725ae77Skettenis	to "continue".
1418*b725ae77Skettenis
1419*b725ae77SkettenisMon May 21 14:41:41 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1420*b725ae77Skettenis
1421*b725ae77Skettenis	* breakpoint.c (enable_breakpoint): Get value of watchpoint.
1422*b725ae77Skettenis
1423*b725ae77Skettenis	* defs.h [sparc]: Use <alloca.h> regardless of __GNUC__.
1424*b725ae77Skettenis
1425*b725ae77Skettenis	* values.c (USE_STRUCT_CONVENTION): Check for structures of
1426*b725ae77Skettenis	size 1,2,4,8 rather than size < 8.
1427*b725ae77Skettenis
1428*b725ae77Skettenis	* dbxread.c (dbx_lookup_type): Do f->length *= 2 as many times
1429*b725ae77Skettenis	as necessary, not just once.
1430*b725ae77Skettenis
1431*b725ae77Skettenis	* sparc-opcode.h: Add a bunch of new opcodes which Sun as supports.
1432*b725ae77Skettenis
1433*b725ae77SkettenisThu May 17 15:04:09 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1434*b725ae77Skettenis
1435*b725ae77Skettenis	* {t,x}m-sun386.h, sun386-xdep.c, {x,t}config/sun386
1436*b725ae77Skettenis
1437*b725ae77Skettenis	* tm-news.h: Add CALL_DUMMY_*.
1438*b725ae77Skettenis
1439*b725ae77Skettenis	* tm-68k.h: Remove duplicate comment at FRAME_FIND_SAVED_REGS.
1440*b725ae77Skettenis
1441*b725ae77Skettenis	* config.gdb: In list_host, list_target, use ${i}, not $i.
1442*b725ae77Skettenis
1443*b725ae77SkettenisTue May 15 21:27:12 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1444*b725ae77Skettenis
1445*b725ae77Skettenis	* source.c (find_source_lines) [BROKEN_LARGE_ALLOCA]: Use xmalloc.
1446*b725ae77Skettenis
1447*b725ae77Skettenis	* sparc-opcode.h: Change all store floating-point state register
1448*b725ae77Skettenis	instructions to have the right match & lose fields.
1449*b725ae77Skettenis
1450*b725ae77SkettenisSat May  5 12:39:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1451*b725ae77Skettenis
1452*b725ae77Skettenis	* Makefile.dist: Move -I${srcdir} to GLOBAL_CFLAGS and pass
1453*b725ae77Skettenis	VPATH to readline.
1454*b725ae77Skettenis	config.gdb: If srcdir != ., create readline directory and
1455*b725ae77Skettenis	copy a makefile into it.
1456*b725ae77Skettenis
1457*b725ae77Skettenis	* wait.h, infrun.c: Change WRETCODE to WEXITSTATUS for
1458*b725ae77Skettenis	consistency with POSIX.
1459*b725ae77Skettenis
1460*b725ae77Skettenis	* breakpoint.c (bpstat_stop_status): Disable watchpoint
1461*b725ae77Skettenis	when we exit its exp_valid_block.
1462*b725ae77Skettenis
1463*b725ae77SkettenisTue Sep  4 11:46:46 1990  John Gilmore  (gnu at cygint)
1464*b725ae77Skettenis
1465*b725ae77Skettenis	* Makefile.dist: Bump version to 3.91.3.
1466*b725ae77Skettenis
1467*b725ae77Skettenis	* Clean up handling of breakpoint commands (somewhat).
1468*b725ae77Skettenis	  Prompted by Tiemann bug report "cont 10" doesn't work any more.
1469*b725ae77Skettenis
1470*b725ae77Skettenis	  inferior.h: Add breakpoint_proceeded to inferior status struct
1471*b725ae77Skettenis	  and globals; save it and restore it.
1472*b725ae77Skettenis	  (clear_breakpoint_commands): Cleanup, remove old #define.
1473*b725ae77Skettenis
1474*b725ae77Skettenis	  infrun.c (clear_proceed_status): Set breakpoint_proceeded.
1475*b725ae77Skettenis	  (save_inferior_status, restore_inferior_status): handle it also.
1476*b725ae77Skettenis	  (proceed): Remove earlier code that set breakpoint_proceeded.
1477*b725ae77Skettenis	  It is now set only in clear_proceed_status.
1478*b725ae77Skettenis	  (clear_proceed_status): Cleanup, use bpstat_clear rather
1479*b725ae77Skettenis	  than clear_breakpoint_commands.  No callers need the stop_bpstat
1480*b725ae77Skettenis	  between clear_proceed_status and proceed.
1481*b725ae77Skettenis
1482*b725ae77Skettenis	  infcmd.c: Add breakpoint_proceeded definition and comment.
1483*b725ae77Skettenis	  (cont_command, jump_command, signal_command): Move call to
1484*b725ae77Skettenis	  clear_proceed_status right next to call to proceed.
1485*b725ae77Skettenis
1486*b725ae77Skettenis	  breakpoint.c (bpstat_do_actions): Avoid clobbering our
1487*b725ae77Skettenis	  caller's argument while running down the chain of breakpoints.
1488*b725ae77Skettenis	  Use new variable "breakpoint_proceeded" to determine when
1489*b725ae77Skettenis	  a command that it executes moves the inferior past the
1490*b725ae77Skettenis	  breakpoint.
1491*b725ae77Skettenis	  (bpstat_clear): Handle NULL argument.
1492*b725ae77Skettenis	  (bpstat_clear_actions): Avoid useless call to
1493*b725ae77Skettenis	  breakpoint_auto_delete.
1494*b725ae77Skettenis	  (delete_breakpoint):  Clean up bpstat's that are pointing to
1495*b725ae77Skettenis	  the deleted breakpoint from the stop_bpstat chain.
1496*b725ae77Skettenis	  (breakpoint_auto_delete): Simplify.
1497*b725ae77Skettenis
1498*b725ae77Skettenis	* Clean up handling of EOF, error on stdin, etc.  This was
1499*b725ae77Skettenis	  prompted by a network problem that caused gdb to go into an
1500*b725ae77Skettenis	  infinite loop filling up its malloc'd memory.
1501*b725ae77Skettenis
1502*b725ae77Skettenis	  main.c (return_to_top_level): Cleanup: call bpstat_clear_actions,
1503*b725ae77Skettenis	  not clear_breakpoints_commands, which is now gone.
1504*b725ae77Skettenis	  (main): If command_loop returns (e.g. from EOF on stdin), do
1505*b725ae77Skettenis	  a quit_command (looping back to command_loop if quit_command
1506*b725ae77Skettenis	  doesn't really quit).
1507*b725ae77Skettenis	  (command_loop): check result from command_line_input and
1508*b725ae77Skettenis	  exit if it returns NULL, rather than passing the NULL to
1509*b725ae77Skettenis	  execute_command.
1510*b725ae77Skettenis	  (gdb_readline):  Free malloc'd result space before returning
1511*b725ae77Skettenis	  NULL for EOF.
1512*b725ae77Skettenis
1513*b725ae77Skettenis	* utils.c (query): Handle C-d to mean "yes", just as if the
1514*b725ae77Skettenis	  input was not a terminal.  Also avoid infinite loop if EOF
1515*b725ae77Skettenis	  occurs in mid-input-line before newline.  This allows
1516*b725ae77Skettenis	  query to be used at EOF on stdin with reasonable results.
1517*b725ae77Skettenis
1518*b725ae77Skettenis	* infrun.c (proceed): Set breakpoint_proceeded.
1519*b725ae77Skettenis
1520*b725ae77Skettenis	* values.c (value_as_long): Avoid infinite recursion for enums.
1521*b725ae77Skettenis	  (_initialize_values): Fix typo in help msg (kingdon).
1522*b725ae77Skettenis
1523*b725ae77Skettenis	* Makefile.dist (RL_LIB): Use RL_LIB_DEP for dependencies,
1524*b725ae77Skettenis	  RL_LIB for linking.  This allows -lreadline for linking
1525*b725ae77Skettenis	  and nothing for dependencies, once readline is a real library.
1526*b725ae77Skettenis
1527*b725ae77Skettenis	* config.gdb: Jim Kingdon: give useful error message if the
1528*b725ae77Skettenis	  host or target type is not recognized.
1529*b725ae77Skettenis
1530*b725ae77Skettenis	* defs.h (alloca): SPARC <alloca.h> does not declare alloca,
1531*b725ae77Skettenis	  it just defines it.  Dumb, but deal with it.
1532*b725ae77Skettenis
1533*b725ae77Skettenis	* Jim Kingdon suggests:
1534*b725ae77Skettenis	  in xconfig/sun3os4, CFLAGS should be XM_CFLAGS.
1535*b725ae77Skettenis
1536*b725ae77SkettenisWed Aug 29 18:03:27 1990  John Gilmore  (gnu at cygint)
1537*b725ae77Skettenis
1538*b725ae77Skettenis	* Makefile.dist (VERSION): Bump version # to 3.91.2.
1539*b725ae77Skettenis
1540*b725ae77Skettenis	* Clean up Bothner's changes.
1541*b725ae77Skettenis
1542*b725ae77Skettenis	* blockframe.c (clear_pc_function_cache): New function.
1543*b725ae77Skettenis	* blockframe.c: remake cache_pc_function_* static.
1544*b725ae77Skettenis	* dbxread.c (symbol_file_command): remove references to
1545*b725ae77Skettenis		    cache_pc_function_* variables.
1546*b725ae77Skettenis	* dbxread.c (read_struct_type): Use VOFFSET_STATIC.
1547*b725ae77Skettenis	* printcmd.c: Avoid kludging a global variable (addressprint)
1548*b725ae77Skettenis	  to avoid printing the address of a string twice.  Instead,
1549*b725ae77Skettenis	  pass the format letter 's' down low enough that it can be seen
1550*b725ae77Skettenis	  to avoid this problem.
1551*b725ae77Skettenis	  (print_formatted): Pass format arg to value_print.
1552*b725ae77Skettenis	  (restore_addressprint): Remove function.
1553*b725ae77Skettenis	  (do_examine):  Avoid hacking addressprint, cleanups and such.
1554*b725ae77Skettenis	  (print_frame_args):  Add a comment to a Bothner change.
1555*b725ae77Skettenis	* symtab.h: define VOFFSET_STATIC and use it instead of "-1".
1556*b725ae77Skettenis	* symmisc.c (free_all_symtabs): Call clear_pc_function_cache
1557*b725ae77Skettenis	  to wipe out the values cached in blockframe.c.
1558*b725ae77Skettenis	* symtab.c (find_method): Add comment saying how big you must
1559*b725ae77Skettenis	  allocate to be "big enough".  Per being terse again.
1560*b725ae77Skettenis	* valprint.c (val_print): Handle format letter "s" to print
1561*b725ae77Skettenis	  strings without addresses.  Add comment to vtbl printing code
1562*b725ae77Skettenis	  which casts with wild abandon.  Rearrange reference-printing
1563*b725ae77Skettenis	  code so it prints:
1564*b725ae77Skettenis	       @0xaddr: value		(print w/addressprint)
1565*b725ae77Skettenis	       value			(print w/~addressprint)
1566*b725ae77Skettenis	       @0xaddr			(parameter lists w/addressprint)
1567*b725ae77Skettenis	  or   nothing			(parameter lists w/o addressprint)
1568*b725ae77Skettenis
1569*b725ae77SkettenisTue Aug 28 10:47:18 1990  John Gilmore  (gnu at cygint)
1570*b725ae77Skettenis
1571*b725ae77Skettenis	* Merge more changes from Per Bothner:
1572*b725ae77Skettenis
1573*b725ae77SkettenisGdb's handling of TYPE_CODE_REF was so counter-C++ (and otherwise
1574*b725ae77Skettenisannoying) that I tried to improve it. Here are my suggestions.
1575*b725ae77Skettenis
1576*b725ae77Skettenis	These patches all attempt to handle TYPE_CODE_REF (as in C++) better.
1577*b725ae77Skettenis
1578*b725ae77Skettenis	findvar.c:
1579*b725ae77Skettenis	Do automatic de-reference when taking the address of a reference.
1580*b725ae77Skettenis	printcmd.c:
1581*b725ae77Skettenis	Don't deref_ref when printing parameter lists.
1582*b725ae77Skettenis	valops.c:
1583*b725ae77Skettenis	More attempts at treating refernences properly.
1584*b725ae77Skettenis	valprint.c:
1585*b725ae77Skettenis	In val_print, if deref_ref==0, don't print dangling " = ".
1586*b725ae77Skettenis	value.h:
1587*b725ae77Skettenis	Add COERCE_REF macro, which de-references an REF.
1588*b725ae77Skettenis
1589*b725ae77Skettenis	* Merge changes from Per Bothner:
1590*b725ae77Skettenis
1591*b725ae77Skettenis* Fixed (Sony news)-specific configuration problems.
1592*b725ae77Skettenis* Fixed other problems with using vanilla pcc and libc (enum problems;
1593*b725ae77Skettenisassumption that vsprintf exists).
1594*b725ae77Skettenis* Some major speed-ups (finc_pc_partial_function now caches a match;
1595*b725ae77Skettenisparsing avoids duplicate symbol_lookup calls).
1596*b725ae77Skettenis* Changed handling of baseclasses (no longer use baseclasses field
1597*b725ae77Skettenisof struct type, use the first n_baseclasses fields instead).
1598*b725ae77Skettenis* Various minor changes/fixes, most C++-related.
1599*b725ae77Skettenis
1600*b725ae77Skettenisblockframe.c:
1601*b725ae77SkettenisCache the most previous match from find_pc_partial_function.
1602*b725ae77Skettenis(Save both low and high ends of matching function's pc range.)
1603*b725ae77SkettenisThis speeds up the loop of infrun.c:wait_for_inferior quite
1604*b725ae77Skettenisa bit, and makes step/next commands much zippier.
1605*b725ae77Sketteniscommand.c:
1606*b725ae77SkettenisAdded an enum->int cast (otherwise, some compilers barf).
1607*b725ae77Skettenisdbxread.c:
1608*b725ae77SkettenisNo longer set baseclass offset to 0, since multiple
1609*b725ae77Skettenisinheritance now mostly works.
1610*b725ae77SkettenisAdded a number of casts, to shut up compiler warnings
1611*b725ae77Skettenis(after stabs where made enums, not ints).
1612*b725ae77SkettenisWhen discarding a symbol table (in symbol_file_command),
1613*b725ae77Skettenismust clear the cache introduced in blockframe.c.
1614*b725ae77SkettenisDon't convert $vtbl_ptr_type to vtbl any more.
1615*b725ae77SkettenisGet rid of TYPE_BASECLASEES and  baseclass_vec (see also symtab.h).
1616*b725ae77SkettenisMask off sign bit emitted by g++ for virtual table offset.
1617*b725ae77SkettenisSet voffset to -1 (not 1) for static member functions.
1618*b725ae77Skettenisexpread.y:
1619*b725ae77SkettenisChanged parsing/lexing of names to avoid doing symbol lookup twice
1620*b725ae77Skettenis(once when lexing to determine symbol class, once for real).
1621*b725ae77SkettenisNow only call symbol_lookup once. Fields of 'this' win especially big.
1622*b725ae77Skettenisprintcmd.c:
1623*b725ae77SkettenisSubpress printing addr twice in the case of 'x/s addr'.
1624*b725ae77Skettenissymtab.c:
1625*b725ae77Skettenislookup_basetype_type is no longer used.
1626*b725ae77SkettenisAdd find_methods as recursive helper function to decode_line_1.
1627*b725ae77SkettenisThis allows multiple inheritance to work.
1628*b725ae77SkettenisAlso, once one or more matches has been found, do not look in
1629*b725ae77Skettenisbase-classes. (Baseclass methods would be overridden, anyway.)
1630*b725ae77Skettenissymtab.h:
1631*b725ae77SkettenisRemoved baseclasses array in struct type.
1632*b725ae77SkettenisInstead of using baseclasses[i], use fields[i-1].
1633*b725ae77SkettenisAdded virtual_field_bits[i] to indicate if the i'th baseclass is virtual.
1634*b725ae77SkettenisChanged sign convention of voffset (previous was inconsistent).
1635*b725ae77Skettenistm-news.h:
1636*b725ae77SkettenisSome macros (CALL_DUMMY and relatives) were missing. Put them back.
1637*b725ae77Skettenisutils.c:
1638*b725ae77SkettenisUsed to assume existence of vsprintf. Re-written to not need it
1639*b725ae77Skettenisif HAVE_VPRINTF is undefined.
1640*b725ae77Skettenisvalops.c:
1641*b725ae77Skettenistypecmp was too pessimistic. Made it less so.
1642*b725ae77Skettenisvalprint.c:
1643*b725ae77SkettenisDon't print space after address.
1644*b725ae77SkettenisIf vtable points to a misc symbol (with 0 offset), print it,
1645*b725ae77Skettenissince that indicates the actual class of the object.
1646*b725ae77SkettenisChanged ype_print_derivation_info to use new inheritance
1647*b725ae77Skettenisscheme (without baseclasses vector).
1648*b725ae77Skettenisvalues.c:
1649*b725ae77SkettenisIn value_primitive_field, fixed some bugs left over from previous set of fixes.
1650*b725ae77SkettenisAlso, changes needed because TYPE_BASECLASSES were removed.
1651*b725ae77Skettenisxm-news.h:
1652*b725ae77SkettenisREGISTER_U_ADDR didn't work for PC. Rewrote to use an array.
1653*b725ae77Skettenis
1654*b725ae77SkettenisTue Aug 21 20:08:54 1990  John Gilmore  (gnu at cygint)
1655*b725ae77Skettenis
1656*b725ae77Skettenis	* source.c:
1657*b725ae77Skettenis  If there is no path set, and the symbols don't indicate what directory
1658*b725ae77Skettenis  a file was compiled in, look in the current directory.  But either
1659*b725ae77Skettenis  a path or a known compilation directory will prevent this.
1660*b725ae77Skettenis
1661*b725ae77Skettenis	* dbxread.c:
1662*b725ae77Skettenis  Three independent bug fixes:
1663*b725ae77Skettenis   * Remove the #if 0 block that breaks some stuff.
1664*b725ae77Skettenis   * SunOS 4.1 fixed the promoted-parameter-wrong-addr bug in Sun C;
1665*b725ae77Skettenis     adapt gdb to either SunOS 4.0.* or 4.1.
1666*b725ae77Skettenis   * MAX_OF_TYPE and MIN_OF_TYPE thinko.  By tedg@sun, I think.
1667*b725ae77Skettenis
1668*b725ae77Skettenis	* symtab.c:
1669*b725ae77Skettenis  Instantiate the class T when looking for methods in it.  (Tiemann@sun)
1670*b725ae77Skettenis
1671*b725ae77Skettenis	* valprint.c:
1672*b725ae77Skettenis  (type_print) Demangle the name being printed.
1673*b725ae77Skettenis  (type_print_base) Handle botched demangling without coredump (tiemann).
1674*b725ae77Skettenis
1675*b725ae77Skettenis	* values.c:
1676*b725ae77Skettenis  (check_stub_method):  Document routine.
1677*b725ae77Skettenis			(tiemann) fix bug for no-arg functions
1678*b725ae77Skettenis			Avoid clobbering beyond end of malloc'd storage.
1679*b725ae77Skettenis			Terminate the argument list properly.
1680*b725ae77Skettenis
1681*b725ae77SkettenisSat Aug 18 01:29:59 1990  Per Bothner (bothner@cs.wisc.edu)
1682*b725ae77Skettenis
1683*b725ae77Skettenis	* Changes merged by John Gilmore:
1684*b725ae77Skettenis
1685*b725ae77Skettenisbreakpoint.c:
1686*b725ae77Skettenis  In breakpoint_1, use new print_address_symbolic instead
1687*b725ae77Skettenis  of find_pc_partial_function. (This forces use of assembler-level
1688*b725ae77Skettenis  addresses, and avoids misleading non-mangled source-level names.)
1689*b725ae77Sketteniscplus-dem.c:
1690*b725ae77Skettenis  Generalize ansi argument such that -1 means skip arglist totally.
1691*b725ae77Skettenis  Removed global variable print_ansi_qualifiers (which made
1692*b725ae77Skettenis  code non-reentrant), in favor of extra explicit arguments
1693*b725ae77Skettenis  to internal routines.
1694*b725ae77Skettenisprintcmd.c:
1695*b725ae77Skettenis  Add new helper function print_address_symbolic.
1696*b725ae77Skettenis  Use find_pc_misc_function instead of find_pc_partial_function
1697*b725ae77Skettenis  (since we want assembler-level symbols here).
1698*b725ae77Skettenisstack.c:
1699*b725ae77Skettenis  Print unknown function as just "f (...)", not "f (...) (...)".
1700*b725ae77Skettenis  Use new fputs_demangled explicitly.
1701*b725ae77Skettenissymtab.c:
1702*b725ae77Skettenis  Fixed a typing violation (problem: value.h cannot be imported
1703*b725ae77Skettenis  without renaming many variable in this file).
1704*b725ae77Skettenis  lookup_symbol: If no matching misc_func, look for a C++-mangled name.
1705*b725ae77Skettenis  decode_line_1: Moved forward some never-reached code.
1706*b725ae77Skettenis  Made decode_line_2 skip function prologues correctly.
1707*b725ae77Skettenisutils.c:
1708*b725ae77Skettenis  fputs_filtered should not demangle by default.
1709*b725ae77Skettenis  Add new fputs_demangled to demangle on demand..
1710*b725ae77Skettenisvalops.c:
1711*b725ae77Skettenis  Change value_struct_elt to use value_primitive_field (using recursive
1712*b725ae77Skettenis  utility function search_struct_field). This allows foo.bar to work
1713*b725ae77Skettenis  for multiple inheritance (so far only for data fields).
1714*b725ae77Skettenis  Change check_field in the same way (recursive helper function
1715*b725ae77Skettenis  to support multiple inheritance).
1716*b725ae77Skettenis  (Note: there are more of these problems that I haven't fixed.
1717*b725ae77Skettenis  Any code that says TYPE_BASECLASS (t, 1) is probably wrong.)
1718*b725ae77Skettenis  value_of_this: 'this' symbol name is now just "this", note "$this".
1719*b725ae77Skettenisvalprint.c:
1720*b725ae77Skettenis  Don't print static members.
1721*b725ae77Skettenis  Avoid printing "members of <type>" if there are none.
1722*b725ae77Skettenis  Simplified type_print_derivation_info by merging duplicate code.
1723*b725ae77Skettenis  Remove useless blank lines in type_print_base (ptype command).
1724*b725ae77Skettenisvalue.h:
1725*b725ae77Skettenis  Added declaration of new routine value_primitive_field.
1726*b725ae77Skettenisvalues.c:
1727*b725ae77Skettenis  Added value_primitive_field which is generalized version of
1728*b725ae77Skettenis  value_field that can handle multiple inheritance (non-zero offsets etc).
1729*b725ae77Skettenis  Re-implemented value_field to call value_primitive_field.
1730*b725ae77Skettenis
1731*b725ae77SkettenisFri Aug 17 23:33:44 1990  John Gilmore  (gnu at cygint)
1732*b725ae77Skettenis
1733*b725ae77Skettenis	* infcmd.c -- insert else to avoid 'delete env' coredump when you
1734*b725ae77Skettenis	delete the whole environment.  Karl Berry reported the bug.
1735*b725ae77Skettenis	* source.c - fix openp to avoid //'s in filenames, which
1736*b725ae77Skettenis	trigger an Emacs bug causing it to not be able to find files
1737*b725ae77Skettenis	when running gdb in a window.
1738*b725ae77Skettenis	* dbxread.c - zap the #if 0 that botches the add-file code.
1739*b725ae77Skettenis	It seems to work a lot better without all the code commented out.
1740*b725ae77Skettenis
1741*b725ae77SkettenisFri Jul 20 16:58:46 1990  John Gilmore  (gnu at cygnus.com)
1742*b725ae77Skettenis
1743*b725ae77Skettenis	* Merge Tiemann's and Ted Goldstein's changes, detailed below,
1744*b725ae77Skettenis	into gdb-3.90.9.
1745*b725ae77Skettenis
1746*b725ae77SkettenisTue Jul 17 19:34:33 1990  Ted Goldstein  (tedg at golem)
1747*b725ae77Skettenis
1748*b725ae77Skettenis	* Makefile - added a ${CFLAGS} to a couple of entries,
1749*b725ae77Skettenis	added remote-sa.sparc.c
1750*b725ae77Skettenis	* added remote.sa-sparc.c, a modification of remote.c
1751*b725ae77Skettenis	which conducts a dialog directly with the SparcStation prom.
1752*b725ae77Skettenis	* breakpoint.c, infrun.c, sparcdep.c  added
1753*b725ae77Skettenis	remote_insert_breakpoint(), and remote_remove_breakpoint()
1754*b725ae77Skettenis	to breakpoint.c instead of directly writing breakpoint instructions.
1755*b725ae77Skettenis	* sparcdep.c on remote_debugging,there is no need
1756*b725ae77Skettenis	to remove signle step breakpoint instructions.
1757*b725ae77Skettenis	* main.c added "-epoch" flag and "int epoch_interface" to main.c
1758*b725ae77Skettenis	global variable
1759*b725ae77Skettenis	* printcmd.c - epoch interface sends lisp expressions to open up
1760*b725ae77Skettenis	epoch windows on inspection.
1761*b725ae77Skettenis	* valprint.c - added arrayprint, and addressprint and made adding
1762*b725ae77Skettenis	format controls easier
1763*b725ae77Skettenis	* wait.h added a couple of undef's because we were getting
1764*b725ae77Skettenis	complaints about WSTOPSIG and WTERMSIG begin redefined.
1765*b725ae77Skettenis
1766*b725ae77Skettenis
1767*b725ae77SkettenisWed Jul  4 05:27:51 1990  Michael Tiemann  (tiemann at masham)
1768*b725ae77Skettenis
1769*b725ae77Skettenis	* symtab.c (decode_line_1): Add support for handling method stubs
1770*b725ae77Skettenis	in the type information.
1771*b725ae77Skettenis
1772*b725ae77SkettenisTue Jul  3 09:39:18 1990  Michael Tiemann  (tiemann at masham)
1773*b725ae77Skettenis
1774*b725ae77Skettenis	* values.c (baseclass_addr): Run loop from INDEX+1 to
1775*b725ae77Skettenis	N_BASECLASSES; otherwise, we can still get into a loop.
1776*b725ae77Skettenis	@@ This should be restructured to use a cleaner search strategy.
1777*b725ae77Skettenis
1778*b725ae77SkettenisSun Jul  1 12:28:51 1990  Michael Tiemann  (tiemann at masham)
1779*b725ae77Skettenis
1780*b725ae77Skettenis	* dbxread.c (define_symbol,read_type): Grok GNU C++'s new
1781*b725ae77Skettenis	abbreviation "Tt" for tags which have the same name as their
1782*b725ae77Skettenis	typedecls.
1783*b725ae77Skettenis
1784*b725ae77SkettenisFri Jun 29 01:03:46 1990  Michael Tiemann  (tiemann at masham)
1785*b725ae77Skettenis
1786*b725ae77Skettenis	* symtab.c (list_symbols): add ability to set breakpoints on all
1787*b725ae77Skettenis	the functions which match a particular regular expression.
1788*b725ae77Skettenis
1789*b725ae77SkettenisTue Jun 26 04:26:29 1990  Michael Tiemann  (tiemann at masham)
1790*b725ae77Skettenis
1791*b725ae77Skettenis	* cplus-dem.c (cplus_demangle): New parameter ANSI says whether we
1792*b725ae77Skettenis	should print ANSI qualifiers (such as `const' and `volatile').
1793*b725ae77Skettenis	All callers changed to call with ANSI == 1, except from
1794*b725ae77Skettenis	`check_method_stub', which uses old-style syntax.
1795*b725ae77Skettenis
1796*b725ae77Skettenis	* symseg.h (struct fn_field): Remove unneccessary `args' field.
1797*b725ae77Skettenis	* symtab.h (TYPE_FN_FIELD_ARGS): Redefined.
1798*b725ae77Skettenis
1799*b725ae77Skettenis	* values.c (check_stub_method): New function.
1800*b725ae77Skettenis
1801*b725ae77Skettenis	* cplus-dem.c (do_type): Handle "long long" (encoded as 'x').
1802*b725ae77Skettenis
1803*b725ae77Skettenis	* dbxread.c (read_type): Handle new GNU C++ method type stubs.
1804*b725ae77Skettenis	* valprint (type_print_base): Ditto.
1805*b725ae77Skettenis
1806*b725ae77Skettenis	* symtab.c (gdb_mangle_typename): New function.
1807*b725ae77Skettenis
1808*b725ae77SkettenisTue Jun  5 00:18:43 1990  Michael Tiemann  (tiemann at gzilla)
1809*b725ae77Skettenis
1810*b725ae77Skettenis	* breakpoint.c (catch_command): New function.  Provides a
1811*b725ae77Skettenis	mechanism to set breakpoints based on catch clauses.
1812*b725ae77Skettenis	(disable_catch): Similar, but disables breakpoints on catch
1813*b725ae77Skettenis	clauses.
1814*b725ae77Skettenis	(delete_catch): Similar, but deleted breakpoints on catch clauses.
1815*b725ae77Skettenis
1816*b725ae77SkettenisSun Jun  3 22:54:08 1990  Michael Tiemann  (tiemann at gzilla)
1817*b725ae77Skettenis
1818*b725ae77Skettenis	* blockframe.c (blockvector_for_pc): New function.
1819*b725ae77Skettenis	* blockframe.c (block_for_pc): Changed to call
1820*b725ae77Skettenis	`blockvector_for_pc' and get the block itself.
1821*b725ae77Skettenis
1822*b725ae77Skettenis	* stack.c (catch_info): New function.  Prints info about
1823*b725ae77Skettenis	exceptions which can be caught in the current frame.
1824*b725ae77Skettenis	* stack.c (print_frame_label_vars): New function.  Similar to
1825*b725ae77Skettenis	`print_frame_local_vars'.
1826*b725ae77Skettenis	* stack.c (print_block_frame_labels): Prints out labels that are
1827*b725ae77Skettenis	defined in this frame.  These labels are exceptions that can be
1828*b725ae77Skettenis	caught.
1829*b725ae77Skettenis
1830*b725ae77Skettenis	* dbxread.c: Updated to handle N_CATCH symtab types.
1831*b725ae77Skettenis
1832*b725ae77SkettenisThu May  3 22:10:00 1990  Michael Tiemann  (tiemann at teacake)
1833*b725ae77Skettenis
1834*b725ae77Skettenis	* valprint.c (everywhere): TYPE_NAME (TYPE) no longer comes in the
1835*b725ae77Skettenis	form "struct ..." for GNU C++.  Don't flush any part of TYPE_NAME
1836*b725ae77Skettenis	when printing the type.
1837*b725ae77Skettenis
1838*b725ae77SkettenisWed May  2 22:43:04 1990  Michael Tiemann  (tiemann at teacake)
1839*b725ae77Skettenis
1840*b725ae77Skettenis	* valprint.c (val_print): Use `baseclass_addr' to access the
1841*b725ae77Skettenis	baseclasses pointed to via the derived class object at VALADDR.
1842*b725ae77Skettenis
1843*b725ae77Skettenis	* values.c (baseclass_addr): New function.  Casts derived pointers
1844*b725ae77Skettenis	to baseclass pointers taking virtual baseclasses and multiple
1845*b725ae77Skettenis	inheritance into account.
1846*b725ae77Skettenis
1847*b725ae77SkettenisSat May  5 12:39:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1848*b725ae77Skettenis
1849*b725ae77Skettenis	* Version 3.90.9.
1850*b725ae77Skettenis
1851*b725ae77SkettenisFri May  4 12:12:55 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1852*b725ae77Skettenis
1853*b725ae77Skettenis	* breakpoint.c (watch_command, bpstat_stop_status): Deal with
1854*b725ae77Skettenis	exp_valid_block field correctly.
1855*b725ae77Skettenis
1856*b725ae77Skettenis	* infrun.c (wait_for_inferior): When checking "don't even think
1857*b725ae77Skettenis	about breakpoints" if stop_signal == SIGTRAP && trap_expected,
1858*b725ae77Skettenis	also check step_resume_breakpoint.
1859*b725ae77Skettenis	Insert breakpoints and continue (not step) if
1860*b725ae77Skettenis	step_resume_break_address != NULL, even if another_trap.
1861*b725ae77Skettenis	If trap_expected and we enter sigtramp, then set up a
1862*b725ae77Skettenis	step_resume_break.
1863*b725ae77Skettenis	If trap_expected is set when we hit the step_resume_break,
1864*b725ae77Skettenis	set another_trap.
1865*b725ae77Skettenis	When calling resume and trap_expected says tell resume to step
1866*b725ae77Skettenis	(2 places), also check step_resume_break_address.
1867*b725ae77Skettenis
1868*b725ae77Skettenis	* infrun.c (wait_for_inferior): Don't set
1869*b725ae77Skettenis	prev_{pc,sp,func_{start,name}} before calling wait ().
1870*b725ae77Skettenis	Do set them after exiting loop.
1871*b725ae77Skettenis	Move their declarations outside functions.
1872*b725ae77Skettenis	(start_inferior): Initialize them.
1873*b725ae77Skettenis
1874*b725ae77SkettenisThu May  3 00:15:11 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1875*b725ae77Skettenis
1876*b725ae77Skettenis	* infrun.c (wait_for_inferior, after check for trap_expected > 1):
1877*b725ae77Skettenis	Restore old code which distinguishes between trap_expected and
1878*b725ae77Skettenis	running_in_shell, just make the latter take any non-TRAP signal,
1879*b725ae77Skettenis	not just SEGV.
1880*b725ae77Skettenis
1881*b725ae77Skettenis	* values.c (allocate_value): Zero VALUE_OPTIMIZED_OUT flag.
1882*b725ae77Skettenis
1883*b725ae77Skettenis	* Makefile.dist (pinsn.o): Use PINSN_CC to compile.
1884*b725ae77Skettenis	xconfig/3b1 (CC,PINSN_CC): Define.
1885*b725ae77Skettenis
1886*b725ae77Skettenis	* xconfig/altos, altos-dep.c: Rename altos-dep.c to altos-xdep.c.
1887*b725ae77Skettenis
1888*b725ae77Skettenis	* Version 3.90.8
1889*b725ae77Skettenis
1890*b725ae77Skettenis	* breakpoint.c (bpstat_stop_status),
1891*b725ae77Skettenis	infrun.c (wait_for_inferior) [SHIFT_INST_REGS]: New code.
1892*b725ae77Skettenis
1893*b725ae77Skettenis	* param.h, tm-88k.h: Define ADDR_BITS_*.
1894*b725ae77Skettenis	infcmd.c (jump_command, read_pc), infrun.c (wait_for_inferior),
1895*b725ae77Skettenis	printcmd.c (do_one_display): Use them.
1896*b725ae77Skettenis
1897*b725ae77Skettenis	* utils.c: Split #ifdef USG into a USG_UTILS and a QUEUE_MISSING.
1898*b725ae77Skettenis	xm-88k.h: Define USG_UTILS.
1899*b725ae77Skettenis
1900*b725ae77SkettenisWed May  2 00:05:33 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1901*b725ae77Skettenis
1902*b725ae77Skettenis	* printcmd.c (printf_command) [__INT_VARARGS_H]: New code.
1903*b725ae77Skettenis	(printf_command): Add from_tty parameter.
1904*b725ae77Skettenis
1905*b725ae77Skettenis	* valprint.c (value_print): Check VALUE_OPTIMIZED_OUT flag.
1906*b725ae77Skettenis
1907*b725ae77Skettenis	* value.h: Add optimized_out field and change lazy field to
1908*b725ae77Skettenis	char.  Add macro VALUE_OPTIMIZED_OUT.
1909*b725ae77Skettenis
1910*b725ae77Skettenis	* i386-pinsn.c: Change from Eirik Fuller to write to stream directly
1911*b725ae77Skettenis	instead of stuffing things in buffers (oappend, etc).
1912*b725ae77Skettenis
1913*b725ae77Skettenis	* breakpoint.c (bpstat_do_actions): If *BSP is set to NULL by
1914*b725ae77Skettenis	execute_command, exit both loops.
1915*b725ae77Skettenis
1916*b725ae77Skettenis	* Makefile.dist: Don't set TARGET_ARCH.  Add .c.o rule.
1917*b725ae77Skettenis
1918*b725ae77SkettenisTue May  1 17:07:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1919*b725ae77Skettenis
1920*b725ae77Skettenis	* Makefile.dist (RAPP_OBS, rapp),
1921*b725ae77Skettenis	rgdb.c, rserial.c, rudp.c, serial.c, udp.c, xdep.h,
1922*b725ae77Skettenis	remote.h: Added.
1923*b725ae77Skettenis	m68k-xdep.c, coredep.c: Wrap in #if !defined (RDB).
1924*b725ae77Skettenis
1925*b725ae77Skettenis	* valops.c (value_struct_elt), values.c (value_static_field):
1926*b725ae77Skettenis	Change error messages to remove references to `info methods'.
1927*b725ae77Skettenis
1928*b725ae77SkettenisTue Apr 24 10:25:10 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1929*b725ae77Skettenis
1930*b725ae77Skettenis	* More 88k changes:
1931*b725ae77Skettenis	infrun.c (start_inferior): Add START_INFERIOR_HOOK.
1932*b725ae77Skettenis	infcmd.c [SHIFT_INST_REGS]: New code.
1933*b725ae77Skettenis	findvar.c (read_relative_register_raw_bytes): Return a value.
1934*b725ae77Skettenis	infcmd.c (do_registers_info): Check value from
1935*b725ae77Skettenis	read_relative_register_raw_bytes.
1936*b725ae77Skettenis
1937*b725ae77Skettenis	* command.c (delete_cmd): Free the struct cmd_list_element(s)
1938*b725ae77Skettenis	we are removing.
1939*b725ae77Skettenis
1940*b725ae77SkettenisMon Apr 23 10:42:21 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1941*b725ae77Skettenis
1942*b725ae77Skettenis	* More 88k changes:
1943*b725ae77Skettenis	findvar.c (get_saved_register): New function.
1944*b725ae77Skettenis	findvar.c: Rewrite code which called find_saved_register to
1945*b725ae77Skettenis	call get_saved_register instead.
1946*b725ae77Skettenis
1947*b725ae77SkettenisSun Apr 22 14:47:51 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1948*b725ae77Skettenis
1949*b725ae77Skettenis	* valprint.c (val_print): Change error message printed when
1950*b725ae77Skettenis	the type has TYPE_FLAG_STUB set.
1951*b725ae77Skettenis
1952*b725ae77Skettenis	* valprint.c (val_print): Check for TYPE_CODE_UNDEF.
1953*b725ae77Skettenis
1954*b725ae77Skettenis	* findvar.c (write_register): Set register_valid (regno).
1955*b725ae77Skettenis
1956*b725ae77Skettenis	* valops.c (call_function): Check for NULL return from block_for_pc.
1957*b725ae77Skettenis
1958*b725ae77SkettenisFri Apr 20 11:31:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1959*b725ae77Skettenis
1960*b725ae77Skettenis	* findvar.c (write_register): Add PREPARE_TO_STORE.
1961*b725ae77Skettenis	{sun3,sparc,symmetry}-xdep.c (PREPARE_TO_STORE): Add.
1962*b725ae77Skettenis	infptrace.c, {mips,pyr,symmetry,sun3,arm,hp300hpux}-xdep.c
1963*b725ae77Skettenis	(store_inferior_registers): Don't call read_register_bytes.
1964*b725ae77Skettenis	symmetry-xdep.c (store_inferior_registers):
1965*b725ae77Skettenis	#if 0 out code to fetch registers.
1966*b725ae77Skettenis
1967*b725ae77Skettenis	* values.c (value_as_long): Call COERCE_ARRAY.
1968*b725ae77Skettenis
1969*b725ae77Skettenis	* tm-sun3.h: Include tm-68k.h not m-68k.h
1970*b725ae77Skettenis
1971*b725ae77Skettenis	* sparc-tdep.c (single_step): Set next_pc, npc4 within
1972*b725ae77Skettenis	if (!one_stepped), not outside it.
1973*b725ae77Skettenis
1974*b725ae77Skettenis	* Changes from Data General for 88k:
1975*b725ae77Skettenis	* coffread.c (read_file_hdr): Add *88*MAGIC.
1976*b725ae77Skettenis	* coffread.c (have_symbol_file_p): New function.
1977*b725ae77Skettenis	* coffread.c [COFF_CHECK_X_ZEROES] [TDESC]: New code.
1978*b725ae77Skettenis	* coffread.c (read_one_sym): If there is more than one
1979*b725ae77Skettenis	aux entry, don't give an error message, just ignore the
1980*b725ae77Skettenis	extra ones.
1981*b725ae77Skettenis	* coffread.c (process_coff_symbol): Replace clipper with
1982*b725ae77Skettenis	BELIEVE_PCC_PROMOTION in #ifdef's.
1983*b725ae77Skettenis	* coffread.c: Define L_LNNO32 if not defined.
1984*b725ae77Skettenis	(enter_linenos): Use it.
1985*b725ae77Skettenis	* blockframe.c: Add INIT_FRAME_PC hook and use it in
1986*b725ae77Skettenis	get_prev_frame_info.
1987*b725ae77Skettenis	m-m88k.h: Use INIT_{FRAME_PC,EXTRA_FRAME_INFO} to do tdesc stuff.
1988*b725ae77Skettenis	Use dummy versions of FRAME_CHAIN_*.
1989*b725ae77Skettenis	* Makefile.dist, xconfig/i386*: Rename M_CLIBS to XM_CLIBS and add
1990*b725ae77Skettenis	TM_CLIBS and CDEPS.
1991*b725ae77Skettenis	tdesc/libdc.o: New target.
1992*b725ae77Skettenis	tdesc.{c,h}, tdesc/*, {t,x}config/m88k: New files.
1993*b725ae77Skettenis
1994*b725ae77SkettenisThu Apr 12 15:47:00 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1995*b725ae77Skettenis
1996*b725ae77Skettenis	* m68k-opcode.h (bras, bsrs): Use "Bw" not "Bg".
1997*b725ae77Skettenis
1998*b725ae77SkettenisTue Apr 10 20:50:25 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
1999*b725ae77Skettenis
2000*b725ae77Skettenis	* Version 3.90.7.
2001*b725ae77Skettenis
2002*b725ae77Skettenis	* xm-mips.h (BYTE_ORDER): If not defined, make it LITTLE_ENDIAN.
2003*b725ae77Skettenis
2004*b725ae77Skettenis	* mips-xdep.c ({fetch,store}_inferior_registers): Remove variable
2005*b725ae77Skettenis	offset and just use register_addr (regno, 1).
2006*b725ae77Skettenis	(core_file_command): Remove variable reg_offset and just use
2007*b725ae77Skettenis	register_addr (regno, 0).
2008*b725ae77Skettenis
2009*b725ae77Skettenis	* gdbcore.h [COFF_FORMAT]: #undef a_magic before redefining it.
2010*b725ae77Skettenis
2011*b725ae77Skettenis	* infrun.c ("if (trap_expected && stop_signal != SIGTRAP)", near end
2012*b725ae77Skettenis	of wait_for_inferior): Always pass 0 as first arg to resume.
2013*b725ae77Skettenis	#if 0 out "SIGSEGV in shell" test right above it (now redundant).
2014*b725ae77Skettenis
2015*b725ae77Skettenis	* i386-pinsn.c (oappend_address): New function.
2016*b725ae77Skettenis	(oappend): Make it "static void" and declare at top of file.
2017*b725ae77Skettenis	(OP_J, OP_DIR): Use oappend_address.
2018*b725ae77Skettenis
2019*b725ae77SkettenisMon Apr  9 15:22:09 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2020*b725ae77Skettenis
2021*b725ae77Skettenis	* mips-xdep.c: Include <mips/inst.h> not "mips/inst.h".
2022*b725ae77Skettenis
2023*b725ae77Skettenis	* wait.h [HAVE_WAIT_STRUCT]: Put #defines in #if !defined so that
2024*b725ae77Skettenis	it's OK if they are defined in <sys/wait.h>.
2025*b725ae77Skettenis
2026*b725ae77Skettenis	* findvar.c (fetch_registers): Pass "registers", not "&registers",
2027*b725ae77Skettenis	to remote_fetch_registers.
2028*b725ae77Skettenis
2029*b725ae77Skettenis	* mips-tdep.c (_initialize_mipsdep): Remove hex_disassembler
2030*b725ae77Skettenis	and re-write skip_prologue to use add_set_cmd.
2031*b725ae77Skettenis
2032*b725ae77Skettenis	* Makefile.dist (alldeps.mak): Don't put \ after the last
2033*b725ae77Skettenis	filename in each list.
2034*b725ae77Skettenis
2035*b725ae77SkettenisSun Apr  8 01:59:19 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2036*b725ae77Skettenis
2037*b725ae77Skettenis	* Version 3.90.6.
2038*b725ae77Skettenis
2039*b725ae77Skettenis	* Makefile.dist (alldeps.mak): "XM_FILE" -> "XM_FILE=".
2040*b725ae77Skettenis
2041*b725ae77Skettenis	* valarith.c (value_x_{un,bin}op): use "operator" not "operator "
2042*b725ae77Skettenis	to match dbxread.c change of 16 Mar 90.
2043*b725ae77Skettenis
2044*b725ae77Skettenis	* valarith.c (value_x_unop): Pass &static_memfuncp,
2045*b725ae77Skettenis	not static_memfuncp.
2046*b725ae77Skettenis
2047*b725ae77Skettenis	* breakpoint.c: Add watchpoint stuff.
2048*b725ae77Skettenis	breakpoint.h: Add bpstat_should_step.
2049*b725ae77Skettenis	infrun.c (proceed, wait_for_inferior): Use it.
2050*b725ae77Skettenis	breakpoint.h: Add bpstat_print (and rename old bpstat_print
2051*b725ae77Skettenis	to bpstat_should_print).
2052*b725ae77Skettenis	infrun.c (normal_stop): Use it.
2053*b725ae77Skettenis
2054*b725ae77Skettenis	* value.h: Add value_free.  Declare a few functions.
2055*b725ae77Skettenis
2056*b725ae77SkettenisSat Apr  7 21:43:43 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2057*b725ae77Skettenis
2058*b725ae77Skettenis	* dbxread.c (read_dbx_symtab): Remove PROFILE_TYPES code and
2059*b725ae77Skettenis	insert comment suggesting easy shell script equivalents.
2060*b725ae77Skettenis
2061*b725ae77Skettenis	* values.c (unpack_long): Give better error messages for
2062*b725ae77Skettenis	unrecognized sizes of ints and floats.
2063*b725ae77Skettenis
2064*b725ae77SkettenisFri Apr  6 00:32:21 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2065*b725ae77Skettenis
2066*b725ae77Skettenis	* dbxread.c, gdbcore.h (IS_OBJECT_FILE): Check for a_drsize
2067*b725ae77Skettenis	nonzero as well as a_trsize.
2068*b725ae77Skettenis
2069*b725ae77Skettenis	* More places: Use SWAP_TARGET_AND_HOST.
2070*b725ae77Skettenis
2071*b725ae77Skettenis	* valops.c (destructor_name_p): Only skip "struct " if present.
2072*b725ae77Skettenis
2073*b725ae77Skettenis	* main.c (gdb_readline): Return NULL on end of file.
2074*b725ae77Skettenis
2075*b725ae77Skettenis	* sparc-opcode.h: Add jmp 1+2, jmp 1+i, jmp i+1.
2076*b725ae77Skettenis
2077*b725ae77Skettenis	* Makefile.dist: Make expread.tab.c unambiguously be in srcdir.
2078*b725ae77Skettenis
2079*b725ae77Skettenis	* main.c: Split source_command into source_command and
2080*b725ae77Skettenis	read_command_file.
2081*b725ae77Skettenis	(main): Accept "-" as arg to +command for stdin.
2082*b725ae77Skettenis
2083*b725ae77Skettenis	* dbxread.c (psymtab_to_symtab): Don't read string table.
2084*b725ae77Skettenis	(symbol_file_command): Save string table size.
2085*b725ae77Skettenis
2086*b725ae77Skettenis	* Version 3.90.5
2087*b725ae77Skettenis
2088*b725ae77Skettenis	* symtab.c: Remove declaration of lookup_misc_func.
2089*b725ae77Skettenis
2090*b725ae77Skettenis	* mips-pinsn.c: Add use_hex_p stuff (re-worked from Forin stuff).
2091*b725ae77Skettenis
2092*b725ae77Skettenis	* mips-opcode.h: Add bdelay field.
2093*b725ae77Skettenis	mips-pinsn.c: Various changes from Forin, I think to make it look
2094*b725ae77Skettenis	like the MIPS assembler format.
2095*b725ae77Skettenis	mips-tdep.c, mips-xdep.c, mipsread.c: Various changes from Forin.
2096*b725ae77Skettenis
2097*b725ae77Skettenis	* gdbcore.h: Declare register_addr.
2098*b725ae77Skettenis
2099*b725ae77Skettenis	* gdbcore.h: Include <a.out.h>, before trying to redefine N_TXTADDR
2100*b725ae77Skettenis	and friends.
2101*b725ae77Skettenis	various: Don't include both a.out.h and gdbcore.h.
2102*b725ae77Skettenis
2103*b725ae77Skettenis	* Makefile.dist (HFILES): Add param.h
2104*b725ae77Skettenis
2105*b725ae77Skettenis	* utils.c (init_malloc): Moved here from mcheck.c and modified
2106*b725ae77Skettenis	to use the standard mcheck.c
2107*b725ae77Skettenis	Makefile.dist: Modify to reflect new mcheck.
2108*b725ae77Skettenis
2109*b725ae77SkettenisThu Apr  5 16:38:28 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2110*b725ae77Skettenis
2111*b725ae77Skettenis	* valprint.c (val_print, print_hex_chars): Print integers
2112*b725ae77Skettenis	larger than LONGEST.
2113*b725ae77Skettenis
2114*b725ae77Skettenis	* valarith.c (value_sub): Give error message if attempt to
2115*b725ae77Skettenis	subtract something of the wrong type from a pointer.
2116*b725ae77Skettenis
2117*b725ae77Skettenis	* breakpoint.c (bpstat_stop_status): Initialize retval to NULL.
2118*b725ae77Skettenis
2119*b725ae77Skettenis	* i386-tdep.c (i386_pop_frame): Change addr to adr.
2120*b725ae77Skettenis
2121*b725ae77SkettenisWed Apr  4 05:21:50 1990  Jim Kingdon  (kingdon at teenage-mutant)
2122*b725ae77Skettenis
2123*b725ae77Skettenis	* main.c (command_line_input): return NULL on end of file.
2124*b725ae77Skettenis	(execute_command): If p is NULL, return almost right away.
2125*b725ae77Skettenis	(read_command_lines): Treat end of file like "end".
2126*b725ae77Skettenis
2127*b725ae77Skettenis	* printcmd.c (print_frame_args): Change it so num is number
2128*b725ae77Skettenis	of ints of args, not number of args.
2129*b725ae77Skettenis
2130*b725ae77Skettenis	* xm-*.h: Make sure BYTE_ORDER is defined.
2131*b725ae77Skettenis	Also fix various #includes of old names of things.
2132*b725ae77Skettenis
2133*b725ae77Skettenis	* main.c (command_line_input): Fix comment code of 2 Apr.
2134*b725ae77Skettenis
2135*b725ae77Skettenis	* values.c (value_from_long, unpack_long): SWAP_TARGET_AND_HOST.
2136*b725ae77Skettenis	various: Replace {BYTES,WORDS}_BIG_ENDIAN with TARGET_BYTE_ORDER.
2137*b725ae77Skettenis	valarith.c various: SWAP_TARGET_AND_HOST.
2138*b725ae77Skettenis	dbxread.c (READ_FILE_HEADERS): SWAP_TARGET_AND_HOST.
2139*b725ae77Skettenis	(SWAP_SYMBOL): New macro.  Use it wherever symbuf_idx is incremented.
2140*b725ae77Skettenis	exec.c (exec_file_command): SWAP_TARGET_AND_HOST.
2141*b725ae77Skettenis
2142*b725ae77Skettenis	* valarith.c (value_subscripted_rvalue): Just bcopy() the
2143*b725ae77Skettenis	appropriate bytes rather than playing strange games with
2144*b725ae77Skettenis	value_from_long.
2145*b725ae77Skettenis
2146*b725ae77Skettenis	* param.h (SWAP_TARGET_AND_HOST): New macro.
2147*b725ae77Skettenis
2148*b725ae77Skettenis	* tm-np1.h (V7_REGNUM): Change from 27 to 26.
2149*b725ae77Skettenis	(REGISTER_VIRTUAL_TYPE): Return correct result for vector regs.
2150*b725ae77Skettenis	gould-tdep.c: New file.
2151*b725ae77Skettenis
2152*b725ae77Skettenis	* Move reading of register before store from
2153*b725ae77Skettenis	findvar.c (write_register) to
2154*b725ae77Skettenis	infptrace.c, *-xdep.c (store_inferior_register).
2155*b725ae77Skettenis
2156*b725ae77Skettenis	* findvar.c (fetch_registers, store_registers): New functions.
2157*b725ae77Skettenis	write_register{,_bytes}: Use store_registers regardless of
2158*b725ae77Skettenis	have_inferior_p.
2159*b725ae77Skettenis	registers_valid: New variable.
2160*b725ae77Skettenis	(supply_register, read_register, etc.): Use it.
2161*b725ae77Skettenis	(read_register_gen): New variable.
2162*b725ae77Skettenis	various: Use read_register_gen rather than read_register_bytes
2163*b725ae77Skettenis	where appropriate.
2164*b725ae77Skettenis	*-xdep.c (fetch_inferior_registers): Remove remote_debugging check.
2165*b725ae77Skettenis	infrun.c (wait_for_inferior, start_inferior): Call registers_changed
2166*b725ae77Skettenis	not fetch_inferior_registers.
2167*b725ae77Skettenis	*-xdep.c (fetch_inferior_registers): Call registers_fetched if
2168*b725ae77Skettenis	not setting registers via supply_register, and if fetching
2169*b725ae77Skettenis	all registers.
2170*b725ae77Skettenis	infptrace.c, *-xdep.c (fetch_inferior_registers): Add param,
2171*b725ae77Skettenis	# of register to fetch (-1 for all).
2172*b725ae77Skettenis	infptrace.c, hp300hpux-xdep.c (fetch_inferior_registers):
2173*b725ae77Skettenis	Actually fetch only those registers needed.
2174*b725ae77Skettenis	value.h: Declare all the extern register functions from findvar.c.
2175*b725ae77Skettenis
2176*b725ae77Skettenis	* coffread.c (read_coff_symtab): Test for specific kinds of GCC
2177*b725ae77Skettenis	labels (LI%.*, LPB%.*, etc), not just ??%.*.
2178*b725ae77Skettenis
2179*b725ae77Skettenis	* coffread.c (record_misc_function): Use mf_text not mf_unknown.
2180*b725ae77Skettenis
2181*b725ae77Skettenis	* utils.c,defs.h (lines_to_list): New function.
2182*b725ae77Skettenis	source.c (select_source_symtab, list_command, forward_search_command,
2183*b725ae77Skettenis	reverse_search_command), stack.c (print_frame_info):
2184*b725ae77Skettenis	Use it instead of 10.
2185*b725ae77Skettenis
2186*b725ae77Skettenis	* munch: If MUNCH_NM variable exists, use it.
2187*b725ae77Skettenis
2188*b725ae77Skettenis	* main.c (initialize_main): Set rl_readline_name.
2189*b725ae77Skettenis	main.c: #include readline.h and #undef savestring.
2190*b725ae77Skettenis	Remove declarations of things declared in readline.h.
2191*b725ae77Skettenis
2192*b725ae77Skettenis	* main.c (gdb_readline): If instream == 0, read from stdin.
2193*b725ae77Skettenis
2194*b725ae77Skettenis	* main.c (main): Only call clearerr if ISATTY.  Exit loop if
2195*b725ae77Skettenis	feof (instream).
2196*b725ae77Skettenis
2197*b725ae77Skettenis	* infcmd.c (detach_command): Set inferior_pid to 0 after
2198*b725ae77Skettenis	calling remote_close.
2199*b725ae77Skettenis
2200*b725ae77Skettenis	* main.c (main): If exec and sym files are the same, and there
2201*b725ae77Skettenis	is an error reading execfile, don't try to read sym file.
2202*b725ae77Skettenis
2203*b725ae77Skettenis	* infcmd.c (detach_command) [ATTACH_DETACH]: Don't try to detach
2204*b725ae77Skettenis	from inferior when remote debugging.
2205*b725ae77Skettenis
2206*b725ae77Skettenis	* source.c (reverse_search_command): Change while test from 1 to
2207*b725ae77Skettenis	line > 1.
2208*b725ae77Skettenis
2209*b725ae77SkettenisTue Apr  3 18:14:14 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2210*b725ae77Skettenis
2211*b725ae77Skettenis	* Version 3.90.4.
2212*b725ae77Skettenis
2213*b725ae77Skettenis	* Makefile.dist (gdb.tar.Z): Use -z option to tar rather than
2214*b725ae77Skettenis	creating gdb.tar and calling compress separately.
2215*b725ae77Skettenis
2216*b725ae77Skettenis	* breakpoint.c (read_memory_nobpt): Do not treat bcopy as if it
2217*b725ae77Skettenis	returned an "errno" value.
2218*b725ae77Skettenis
2219*b725ae77Skettenis	* various: Make sure gdbcore.h is not included before a.out.h.
2220*b725ae77Skettenis
2221*b725ae77Skettenis	* Makefile.dist (OPCODES): Add mips-opcode.h.
2222*b725ae77Skettenis
2223*b725ae77Skettenis	* config.gdb: Print lists of {hosts,targets} after finding srcdir.
2224*b725ae77Skettenis	When parsing +{host,target}=, strip off +{host,target}=, not +{x,t}m=.
2225*b725ae77Skettenis
2226*b725ae77Skettenis	* Makefile.dist (gdb.tar): Do {t,x}config not just config.
2227*b725ae77Skettenis
2228*b725ae77SkettenisMon Apr  2 02:42:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2229*b725ae77Skettenis
2230*b725ae77Skettenis	* sparc-opcode.h (inc): Fix incorrect lose field.
2231*b725ae77Skettenis
2232*b725ae77Skettenis	* valarith.c (value_subscripted_rvalue): Use TARGET_BYTE_ORDER,
2233*b725ae77Skettenis	rather than checking endianness at runtime.
2234*b725ae77Skettenis
2235*b725ae77Skettenis	* main.c (comand_line_input): Accept comments anywhere, not
2236*b725ae77Skettenis	just at starts of lines.
2237*b725ae77Skettenis
2238*b725ae77SkettenisSat Mar 31 21:59:35 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2239*b725ae77Skettenis
2240*b725ae77Skettenis	* symtab.c (check_stub_type): Call lookup_symbol with 5 args.
2241*b725ae77Skettenis
2242*b725ae77SkettenisFri Mar 30 15:23:52 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2243*b725ae77Skettenis
2244*b725ae77Skettenis	* frame.h: #include param.h.
2245*b725ae77Skettenis	param.h: Protect against multiple inclusion.
2246*b725ae77Skettenis
2247*b725ae77Skettenis	* i386-tdep.c (i386_get_frame_setup): Fix comment about what
2248*b725ae77Skettenis	opcode 0x55 is.
2249*b725ae77Skettenis	If 0x81 or 0x83 is followed by something besides 0xec,
2250*b725ae77Skettenis	put codestream back where it was and return 0.
2251*b725ae77Skettenis	[USE_MACHINE_REG_H]: Include <machine/reg.h> not <sys/reg.h>
2252*b725ae77Skettenis	Move include of a.out.h above <sys/user.h>.
2253*b725ae77Skettenis	(i386_frame_find_saved_regs): Make locals signed.
2254*b725ae77Skettenis	(i386_frame_find_saved_regs, i386_push_dummy_frame, i386_pop_frame):
2255*b725ae77Skettenis	Use REGISTER_BYTES, REGISTER_RAW_SIZE, etc. to deal with floating
2256*b725ae77Skettenis	point registers.
2257*b725ae77Skettenis
2258*b725ae77SkettenisWed Mar 28 18:33:40 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2259*b725ae77Skettenis
2260*b725ae77Skettenis	* Makefile.dist (OTHERS): Add gdb.dvi.
2261*b725ae77Skettenis	(gdb.dvi): New rule.
2262*b725ae77Skettenis
2263*b725ae77Skettenis	* breakpoint.c (_initialize_breakpoint): Clean up docstrings so
2264*b725ae77Skettenis	as not to mention subcommands (e.g. auto-display).
2265*b725ae77Skettenis	Call add_cmd not add_abbrev_cmd for "disable breakpoint" and
2266*b725ae77Skettenis	put it in class_alias.
2267*b725ae77Skettenis
2268*b725ae77Skettenis	* breakpoint.c (set_breakpoint_count): New function.
2269*b725ae77Skettenis	(set_breakpoint, break_command_1): Use it.
2270*b725ae77Skettenis
2271*b725ae77Skettenis	* breakpoint.c (get_number): New function.
2272*b725ae77Skettenis	(*_command, map_breakpoint_numbers): Use it.
2273*b725ae77Skettenis
2274*b725ae77Skettenis	* infptrace.c (write_inferior_memory): Remove remote_debugging
2275*b725ae77Skettenis	stuff (is handled in core.c).
2276*b725ae77Skettenis	(read_inferior_memory): Remove #if 0'd out remote_debugging code.
2277*b725ae77Skettenis
2278*b725ae77SkettenisTue Mar 27 16:51:27 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2279*b725ae77Skettenis
2280*b725ae77Skettenis	* inferior.h: Include frame.h.
2281*b725ae77Skettenis
2282*b725ae77Skettenis	* findvar.c (write_register): Replace sun4 #ifdef with
2283*b725ae77Skettenis	check of CANNOT_STORE_REGISTER.
2284*b725ae77Skettenis	xm-sparc.h: Define CANNOT_STORE_REGISTER.
2285*b725ae77Skettenis
2286*b725ae77Skettenis	* sparc-tdep.c: Remove superfluous declaration of
2287*b725ae77Skettenis	get_breakpoint_commands.
2288*b725ae77Skettenis
2289*b725ae77Skettenis	* breakpoint.{c,h}: Add bpstat stuff.
2290*b725ae77Skettenis	bpstat_do_action: Re-work do_breakpoint_commands into this.
2291*b725ae77Skettenis	main.c (command_loop): Call bpstat_do_action not
2292*b725ae77Skettenis	do_breakpoint_commands.
2293*b725ae77Skettenis	inferior.h, infrun.c, breakpoint.c, infcmd.c:
2294*b725ae77Skettenis	Rework breakpoint_commands and stop_breakpoint
2295*b725ae77Skettenis	stuff to use bpstat instead.
2296*b725ae77Skettenis
2297*b725ae77Skettenis	* infcmd.c (program_info): "info reg"->"info registers".
2298*b725ae77Skettenis
2299*b725ae77Skettenis	* np1-opcode.h: Renamed from npl-opcode.h.
2300*b725ae77Skettenis	gould-pinsn.c: Include np1-opcode.h.
2301*b725ae77Skettenis	Makefile.dist (OPCODES): Change npl-opcode.h to np1-opcode.h
2302*b725ae77Skettenis
2303*b725ae77Skettenis	* coffread.c (read_enum_type): Stop reading when we hit .eos.
2304*b725ae77Skettenis
2305*b725ae77SkettenisMon Mar 26 15:52:35 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2306*b725ae77Skettenis
2307*b725ae77Skettenis	* Version 3.90.3.
2308*b725ae77Skettenis
2309*b725ae77Skettenis	* breakpoint.c (read_memory_nobpt): New function.
2310*b725ae77Skettenis	gdbcore.h: Declare read_memory_{nobpt,check}.
2311*b725ae77Skettenis	mips-tdep.c: Use read_memory_nobpt not breakpoint_shadow_val.
2312*b725ae77Skettenis
2313*b725ae77SkettenisFri Mar 23 14:26:38 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2314*b725ae77Skettenis
2315*b725ae77Skettenis	* inflow.c (terminal_inferior): Reenable commented out
2316*b725ae77Skettenis	inferior_thisrun_terminal check.
2317*b725ae77Skettenis	(terminal_ours_1): If inferior_thisrun_terminal is nonzero,
2318*b725ae77Skettenis	return immediately.
2319*b725ae77Skettenis
2320*b725ae77Skettenis	* Makefile.dist: Rewrite DEPFILES, M_FILE, etc. stuff to deal
2321*b725ae77Skettenis	with host & target separation.
2322*b725ae77Skettenis
2323*b725ae77Skettenis	* config/*: Split into xconfig/* and tconfig/*.
2324*b725ae77Skettenis	*-dep.c: Split into *-xdep.c and *-tdep.c.
2325*b725ae77Skettenis
2326*b725ae77Skettenis	* main.c (main): Always pass two args to xrealloc.
2327*b725ae77Skettenis
2328*b725ae77SkettenisThu Mar 22 20:29:25 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2329*b725ae77Skettenis
2330*b725ae77Skettenis	* Makefile.dist ({,dist}clean): rm {x,t}m.h not param.h
2331*b725ae77Skettenis	xgdb.o: Remove obsolete dependency (now in depend).
2332*b725ae77Skettenis
2333*b725ae77Skettenis	* arm-pinsn.c: Include arm-opcode.h not opcode.h.
2334*b725ae77Skettenis
2335*b725ae77Skettenis	* mips-pinsn.c, mips-opcode.h: New files from Bothner (from
2336*b725ae77Skettenis	release of 24 Jan 90 with mips-opcode.h patch from 1 Feb 90).
2337*b725ae77Skettenis
2338*b725ae77Skettenis	* utils.c (xmalloc): Return NULL on request for 0 bytes.
2339*b725ae77Skettenis
2340*b725ae77SkettenisWed Mar 21 13:30:08 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2341*b725ae77Skettenis
2342*b725ae77Skettenis	* config.gdb: Re-write machine stuff to deal with host & target.
2343*b725ae77Skettenis
2344*b725ae77Skettenis	* xm-altos.h: Don't define HAVE_WAIT_STRUCT.
2345*b725ae77Skettenis
2346*b725ae77Skettenis	* m-*.h: Split into xm-*.h and tm-*.h.
2347*b725ae77Skettenis
2348*b725ae77Skettenis	* infrun.c (wait_for_inferior): Put #ifdef sony_news code
2349*b725ae77Skettenis	in regardless of machine.
2350*b725ae77Skettenis
2351*b725ae77Skettenis	* symtab.c (decode_line_1): Add quotes and capitalize error
2352*b725ae77Skettenis	message "no class, struct, or union named".
2353*b725ae77Skettenis
2354*b725ae77Skettenis	* Makefile.dist (cplus-dem.o): Compile with -Dnounderscore.
2355*b725ae77Skettenis
2356*b725ae77Skettenis	* stack.c (print_frame_info): Use print_symbol to print function name.
2357*b725ae77Skettenis
2358*b725ae77Skettenis	* symtab.c (output_source_filename): Don't print a comma if
2359*b725ae77Skettenis	we are skipping a filename already printed.
2360*b725ae77Skettenis
2361*b725ae77SkettenisTue Mar 20 10:48:54 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2362*b725ae77Skettenis
2363*b725ae77Skettenis	* symtab.c (output_source_filename): Don't print a filename
2364*b725ae77Skettenis	more than once.
2365*b725ae77Skettenis
2366*b725ae77Skettenis	* utils.c (fprint_symbol): New function.
2367*b725ae77Skettenis	defs.h: Decalare it.
2368*b725ae77Skettenis	various: Use fprint_symbol to print symbol names.
2369*b725ae77Skettenis	Makefile.dist (SFILES, OBS): Add cplus-dem.{c,o}.
2370*b725ae77Skettenis
2371*b725ae77SkettenisMon Mar 19 17:11:03 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2372*b725ae77Skettenis
2373*b725ae77Skettenis	* coffread.c (read_file_hdr): Add MC68K??MAGIC.
2374*b725ae77Skettenis
2375*b725ae77Skettenis	* coffread.c (read_coff_symtab): Ignore swbeg and string label
2376*b725ae77Skettenis	symbols.
2377*b725ae77Skettenis
2378*b725ae77Skettenis	* coffread.c (read_coff_symtab): Increment num_object_files
2379*b725ae77Skettenis	in case C_STAT not C_FILE.
2380*b725ae77Skettenis	New variable in_source_file.  Set it in case C_FILE.
2381*b725ae77Skettenis	Check it in case C_STAT.
2382*b725ae77Skettenis
2383*b725ae77Skettenis	* coffread.c [FUNCTION_EPILOGUE_SIZE]: New code.
2384*b725ae77Skettenis	m-umax.h (FUNCTION_EPILOGUE_SIZE): Define.
2385*b725ae77Skettenis
2386*b725ae77Skettenis	* config/3b1: New file.
2387*b725ae77Skettenis
2388*b725ae77Skettenis	* config/sun*: Print message warning people to use GAS with GCC.
2389*b725ae77Skettenis
2390*b725ae77SkettenisSun Mar 18 02:56:40 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2391*b725ae77Skettenis
2392*b725ae77Skettenis	* infcmd.c (run_stack_dummy): Change error message.
2393*b725ae77Skettenis
2394*b725ae77Skettenis	* m-68k.h (REGISTER_VIRTUAL_TYPE): Make pc, fp, sp char *.
2395*b725ae77Skettenis
2396*b725ae77Skettenis	* m-mips.h (LONGEST, BUILTIN_TYPE_LONGEST): Remove.
2397*b725ae77Skettenis
2398*b725ae77SkettenisSat Mar 17 21:27:49 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2399*b725ae77Skettenis
2400*b725ae77Skettenis	* mips-dep.c: Remove infptrace.c stuff.
2401*b725ae77Skettenis
2402*b725ae77Skettenis	* m-bigmips.h: New file.
2403*b725ae77Skettenis	m-mips.h [MIPSEB]: Remove *_BIG_ENDIAN stuff.
2404*b725ae77Skettenis
2405*b725ae77Skettenis	* m-sparc.h (FIX_CALL_DUMMY): Do not insert unimp instruction
2406*b725ae77Skettenis	if function was compiled with gcc.
2407*b725ae77Skettenis
2408*b725ae77Skettenis	* m-mips.h: Remove FIX_CALL_DUMMY_ALIGNED and make FIX_CALL_DUMMY
2409*b725ae77Skettenis	use new args.
2410*b725ae77Skettenis
2411*b725ae77Skettenis	* valops.c (call_function): New args to FIX_CALL_DUMMY.
2412*b725ae77Skettenis	m-*.h (FIX_CALL_DUMMY): Take new args.
2413*b725ae77Skettenis
2414*b725ae77Skettenis	* values.c (using_struct_return): New parameter gcc_p.
2415*b725ae77Skettenis	valops.c (call_function): New variable using_gcc.
2416*b725ae77Skettenis	valops.c (call_function) [REG_STRUCT_HAS_ADDR]: New code.
2417*b725ae77Skettenis
2418*b725ae77Skettenis	* m-mips.h, mips-dep.c: New files from Forin.
2419*b725ae77Skettenis	m-mips.h: Replace RETURN_STRUCT_BY_REF with USE_STRUCT_CONVENTION.
2420*b725ae77Skettenis
2421*b725ae77SkettenisFri Mar 16 13:17:19 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2422*b725ae77Skettenis
2423*b725ae77Skettenis	* Makefile.dist: Add some dependencies of m-*.h files.
2424*b725ae77Skettenis	(HFILES): Add m-68k.h.
2425*b725ae77Skettenis
2426*b725ae77Skettenis	* dbxread.c (read_struct_type): Put "operator+" not "operator +"
2427*b725ae77Skettenis	in symtab.
2428*b725ae77Skettenis
2429*b725ae77Skettenis	* core.c: Split read_memory into read_memory_check and read_memory.
2430*b725ae77Skettenis	breakpoint.c (insert_breakpoints): If can't read memory,
2431*b725ae77Skettenis	tell user that error was due to seting breakpoints.
2432*b725ae77Skettenis
2433*b725ae77SkettenisThu Mar 15 11:47:19 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2434*b725ae77Skettenis
2435*b725ae77Skettenis	* infrun.c [COFF_ENCAPSULATE]: Include a.out.encap.h.
2436*b725ae77Skettenis
2437*b725ae77Skettenis	* blockframe.c (FRAMELESS_LOOK_FOR_PROLOGUE): Make it a function.
2438*b725ae77Skettenis	various m-*.h: Call function not macro.
2439*b725ae77Skettenis	frame.h: Declare the function.
2440*b725ae77Skettenis
2441*b725ae77SkettenisWed Mar 14 02:44:51 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2442*b725ae77Skettenis
2443*b725ae77Skettenis	* sparc-dep.c: Include signame.h.
2444*b725ae77Skettenis
2445*b725ae77Skettenis	* sparc-pinsn.c (print_insn): When looking for sethi before
2446*b725ae77Skettenis	delayed branch, call read_memory_noerr not read_memory.
2447*b725ae77Skettenis
2448*b725ae77Skettenis	* m-isi.h, m-sun3.h, m-news.h, m-hp300bsd.h, m-altos.h,
2449*b725ae77Skettenis	m-hp300hpux.h, m-sun2.h: Merge machine stuff except inferior
2450*b725ae77Skettenis	function call stuff into new file m-68k.h.  Create m-3b1.h.
2451*b725ae77Skettenis
2452*b725ae77SkettenisTue Mar 13 21:34:33 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2453*b725ae77Skettenis
2454*b725ae77Skettenis	* inflow.c (new_tty): If can't open tty, print error message
2455*b725ae77Skettenis	before exiting.
2456*b725ae77Skettenis
2457*b725ae77Skettenis	* blockframe.c: Remove declaration of psymtab_to_symtab.
2458*b725ae77Skettenis	symtab.h: Declare psymtab_to_symtab.
2459*b725ae77Skettenis	blockframe.c: Remove declarations of block_for_pc and
2460*b725ae77Skettenis	find_pc_function_start.
2461*b725ae77Skettenis	frame.h: Add declarations of block_for_pc and find_pc_function_start.
2462*b725ae77Skettenis	Remove declaration of nonexistent function find_pc_function.
2463*b725ae77Skettenis	values.c: include frame.h instead of declaring block_for_pc.
2464*b725ae77Skettenis
2465*b725ae77Skettenis	* Version 3.90.2.
2466*b725ae77Skettenis
2467*b725ae77SkettenisMon Mar 12 14:20:06 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2468*b725ae77Skettenis
2469*b725ae77Skettenis	* main.c (main): Delete superfluous "e" from long_options.
2470*b725ae77Skettenis
2471*b725ae77SkettenisSat Mar 10 15:47:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2472*b725ae77Skettenis
2473*b725ae77Skettenis	* valprint.c (val_print): Print <%d bit integer> not just
2474*b725ae77Skettenis	<large integer>.
2475*b725ae77Skettenis
2476*b725ae77Skettenis	* dbxread.c (error_type): Fix loop that finds '\0' so that on
2477*b725ae77Skettenis	exit, *pp points to the '\0', not the character after.
2478*b725ae77Skettenis	(read_type): Make sure that places which call read_type and then
2479*b725ae77Skettenis	try to read more input stop immediately with another error
2480*b725ae77Skettenis	upon encountering '\0'.
2481*b725ae77Skettenis
2482*b725ae77Skettenis	* dbxread.c (read_range_type): Fix check for large signed
2483*b725ae77Skettenis	integral type to match comment and reality.  Set TYPE_LENGTH based
2484*b725ae77Skettenis	on n2bits for signed, n3bits for unsigned.
2485*b725ae77Skettenis
2486*b725ae77Skettenis	* infcmd.c (cont_command): Print warning message if we
2487*b725ae77Skettenis	decide to ignore the argument.
2488*b725ae77Skettenis
2489*b725ae77Skettenis	* gdb.texinfo (attach): @xref{Attach} -> @xref{Remote}.
2490*b725ae77Skettenis
2491*b725ae77SkettenisFri Mar  9 16:26:47 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2492*b725ae77Skettenis
2493*b725ae77Skettenis	* symtab.h (address_class): Reinstate LOC_EXTERNAL with rewritten
2494*b725ae77Skettenis	comment.
2495*b725ae77Skettenis
2496*b725ae77Skettenis	* expread.y (yyerror, parse_c_1): Make yyerror take a char * arg.
2497*b725ae77Skettenis
2498*b725ae77Skettenis	* main.c (symbol_completion_function): Don't call error() on
2499*b725ae77Skettenis	"info jkldskf".
2500*b725ae77Skettenis
2501*b725ae77Skettenis	* m-npl.h (USE_STRUCT_CONVENTION): Change >= to >.
2502*b725ae77Skettenis
2503*b725ae77SkettenisThu Mar  8 00:19:01 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2504*b725ae77Skettenis
2505*b725ae77Skettenis	* symseg.h: Nuke more symseg references including LOC_EXTERNAL.
2506*b725ae77Skettenis	Put contents of	symseg.h into symtab.h and remove symseg.h.
2507*b725ae77Skettenis
2508*b725ae77SkettenisWed Mar  7 18:02:15 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2509*b725ae77Skettenis
2510*b725ae77Skettenis	* symtab.h (SYMBOL_LINE): New macro.
2511*b725ae77Skettenis	symtab.c (decode_line_1): Accept variable as well as function.
2512*b725ae77Skettenis	Lookup variable/function in selected block if no file specified.
2513*b725ae77Skettenis	printcmd.c: #if 0 out whereis_command.
2514*b725ae77Skettenis
2515*b725ae77Skettenis	* command.c (do_setshow_command): Call function with additional
2516*b725ae77Skettenis	argument C.
2517*b725ae77Skettenis	main.c (set_history_size_command): Take argument C.
2518*b725ae77Skettenis	(set_verbose): New function to set docstring.
2519*b725ae77Skettenis	(initialize_main): Put set_verbose in command list.
2520*b725ae77Skettenis	command.c (lookup_cmd_1): Accept result_list NULL.
2521*b725ae77Skettenis
2522*b725ae77Skettenis	* valprint.c (_initialize_valprint): Change docstring for
2523*b725ae77Skettenis	"set unionprint" to normal set/show form.
2524*b725ae77Skettenis
2525*b725ae77Skettenis	* command.c (add_show_from_set): Check that docstring starts with
2526*b725ae77Skettenis	"Set " before assuming it does.
2527*b725ae77Skettenis
2528*b725ae77Skettenis	* main.c (show_history): Call cmd_show_list.
2529*b725ae77Skettenis	command.{c,h} (cmd_show_list): New function.
2530*b725ae77Skettenis	command.h: Declare do_setshow_command.
2531*b725ae77Skettenis
2532*b725ae77Skettenis	* command.h (cmd_list_element): New field completer.
2533*b725ae77Skettenis	main.c (symbol_completion_function): Use it.
2534*b725ae77Skettenis	symtab.h: Declare make_symbol_completion_list.
2535*b725ae77Skettenis	command.c (add_cmd): Set completer.
2536*b725ae77Skettenis	main.c, gdbcmd.h (noop_completer): New function.
2537*b725ae77Skettenis	infcmd.c: Set completer for environment functions.
2538*b725ae77Skettenis
2539*b725ae77Skettenis	* symtab.c (types_info, _initialize_symtab): #if 0 out.
2540*b725ae77Skettenis	various: Use fputs_filtered, not fprintf_filtered(%s).
2541*b725ae77Skettenis
2542*b725ae77Skettenis	* valprint.c (type_print_base): Check for integers larger than
2543*b725ae77Skettenis	LONGEST.
2544*b725ae77Skettenis
2545*b725ae77Skettenis	* sun3-dep.c: Include "signame.h" instead of directly declaring
2546*b725ae77Skettenis	sys_siglist.
2547*b725ae77Skettenis
2548*b725ae77SkettenisTue Mar  6 14:59:34 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2549*b725ae77Skettenis
2550*b725ae77Skettenis	* infrun.c (signals_info): Allow argument to be a signal name
2551*b725ae77Skettenis	as well as an expression.
2552*b725ae77Skettenis	(handle_command): Check for error from sig_number.
2553*b725ae77Skettenis
2554*b725ae77Skettenis	* main.c (float_handler): Change error message.
2555*b725ae77Skettenis
2556*b725ae77Skettenis	* inflow.c (create_inferior): If getenv ("SHELL") exists, use it
2557*b725ae77Skettenis	instead of /bin/sh.
2558*b725ae77Skettenis
2559*b725ae77Skettenis	* dbxread.c (read_dbx_symtab, case N_SO): New variable first_symnum.
2560*b725ae77Skettenis	Pass it to {start,end}_psymtab.
2561*b725ae77Skettenis
2562*b725ae77Skettenis	* dbxread.c (read_ofile_symtab): Increment symbuf_idx and symnum
2563*b725ae77Skettenis	when calling process_symbol_pair.
2564*b725ae77Skettenis
2565*b725ae77Skettenis	* symtab.c (sources_info, output_source_filename):
2566*b725ae77Skettenis	Re-write so output_source_filename takes a first parameter
2567*b725ae77Skettenis	instead of a next one.
2568*b725ae77Skettenis
2569*b725ae77Skettenis	* dbxread.c (read_dbx_symtab, case N_SO): When incrementing
2570*b725ae77Skettenis	symbuf_idx, increment symnum also.
2571*b725ae77Skettenis
2572*b725ae77Skettenis	* values.c (set_internalvar_component): Use VALUE_CONTENTS,
2573*b725ae77Skettenis	not VALUE_CONTENTS_RAW.
2574*b725ae77Skettenis
2575*b725ae77Skettenis	* symmisc.c (free_symtab): Don't free filename (now in symbol_obstack).
2576*b725ae77Skettenis
2577*b725ae77Skettenis	* environ.c (init_environ): Copy entire string, including
2578*b725ae77Skettenis	terminating '\0'.
2579*b725ae77Skettenis
2580*b725ae77Skettenis	* value.h, values.c: Rename value_lazy to value_fetch_lazy.
2581*b725ae77Skettenis	values.c (value_of_internalvar): Call value_fetch_lazy.
2582*b725ae77Skettenis
2583*b725ae77Skettenis	* dbxread.c (read_huge_number): Return an error on encountering
2584*b725ae77Skettenis	a large decimal number.
2585*b725ae77Skettenis
2586*b725ae77Skettenis	* dbxread.c (read_huge_number): Reverse sense of overflow test.
2587*b725ae77Skettenis
2588*b725ae77Skettenis	* valprint.c (val_print, case TYPE_CODE_INT): Check for integers
2589*b725ae77Skettenis	larger than LONGEST.
2590*b725ae77Skettenis
2591*b725ae77Skettenis	* dbxread.c (read_ofile_symtab): When calling process_one_symbol,
2592*b725ae77Skettenis	call it with desc and value rather than with bufp->n_{desc,value}.
2593*b725ae77Skettenis
2594*b725ae77Skettenis	* defs.h (LONG_MAX): Define.
2595*b725ae77Skettenis
2596*b725ae77Skettenis	* sun3-dep.c: Declare sys_siglist.
2597*b725ae77Skettenis
2598*b725ae77Skettenis	* infptrace.c: Move include of gdbcore.h after a.out.h
2599*b725ae77Skettenis
2600*b725ae77Skettenis	* Makefile.dist (expread.o, mcheck.o): Remove leading "./" not
2601*b725ae77Skettenis	leading ".".
2602*b725ae77Skettenis
2603*b725ae77Skettenis	* m-hp300hpux.h [!HPUX_VERSION_5]: Define KERNEL_U_ADDR_HPUX.
2604*b725ae77Skettenis	infptrace.c [KERNEL_U_ADDR_HPUX] [KERNEL_U_ADDR_BSD]:
2605*b725ae77Skettenis	Set kernel_u_addr using nlist().
2606*b725ae77Skettenis	m-hp300bsd.h: Define KERNEL_U_ADDR_BSD.
2607*b725ae77Skettenis
2608*b725ae77SkettenisMon Mar  5 16:52:41 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2609*b725ae77Skettenis
2610*b725ae77Skettenis	* dbxread.c (read_dbx_symtab): If value of .o symbol is crazy,
2611*b725ae77Skettenis	don't end psymtab.
2612*b725ae77Skettenis
2613*b725ae77Skettenis	* dbxread.c (read_dbx_symtab): Ignore first of a pair of N_SO
2614*b725ae77Skettenis	when both appear.
2615*b725ae77Skettenis	(start_subfile, start_symtab): Extra parameter dirname.
2616*b725ae77Skettenis	(start_subfile): Use obsavestring, not savestring, for name.
2617*b725ae77Skettenis	various: Call start_{subfile,symtab} with extra argument.
2618*b725ae77Skettenis	(end_symtab): Set dirname field in symtab.
2619*b725ae77Skettenis	(read_ofile_symtab): Call process_symbol_pair on pair of N_SO.
2620*b725ae77Skettenis	(process_symbol_pair): New function.
2621*b725ae77Skettenis	symtab.h (symtab): New field dirname.
2622*b725ae77Skettenis	source.c (open_source_file): New function.
2623*b725ae77Skettenis	source.c: Use open_source_file instead of openp where appropriate.
2624*b725ae77Skettenis
2625*b725ae77Skettenis	* defs.h (TARGET_CHAR_BIT): Define.
2626*b725ae77Skettenis
2627*b725ae77SkettenisSun Mar  4 13:11:48 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2628*b725ae77Skettenis
2629*b725ae77Skettenis	* dbxread.c (fill_symbuf): Print error messages nicely.
2630*b725ae77Skettenis
2631*b725ae77Skettenis	* Makefile.dist (SFILES): Put standalone.c at end.
2632*b725ae77Skettenis
2633*b725ae77Skettenis	* Makefile.dist (alldeps.mak): Put out backslash after arm-convert.s.
2634*b725ae77Skettenis
2635*b725ae77Skettenis	* symtab.{c,h} (builtin_type_error): New type.
2636*b725ae77Skettenis	symseg.h (type_code): Add TYPE_CODE_ERROR.
2637*b725ae77Skettenis	valprint.c (val_print, type_print_base),
2638*b725ae77Skettenis	values.c (using_struct_return, set_return_value):
2639*b725ae77Skettenis	Check for and deal with TYPE_CODE_ERROR.
2640*b725ae77Skettenis	dbxread.c (error_type): New function
2641*b725ae77Skettenis	(read_type and subroutines): Call error_type instead of error.
2642*b725ae77Skettenis
2643*b725ae77Skettenis	* dbxread.c (read_huge_number): New function.
2644*b725ae77Skettenis	(read_range_type): Use read_huge_number and check results
2645*b725ae77Skettenis	to see if it is a large integral type.
2646*b725ae77Skettenis
2647*b725ae77Skettenis	* symmisc.c: Remove symseg stuff.
2648*b725ae77Skettenis
2649*b725ae77Skettenis	* Gould NP1 changes from (or inspired by) chpmjd@gdr.bath.ac.uk
2650*b725ae77Skettenis	dbxread.c (read_dbx_symtab) [N_NBSTS]:
2651*b725ae77Skettenis	Treat this and N_NBLCS like N_LCSYM, etc.
2652*b725ae77Skettenis	(process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]: New code.
2653*b725ae77Skettenis	m-npl.h (USE_STRUCT_CONVENTION): Add.
2654*b725ae77Skettenis	(IGNORE_SYMBOL): Add 0xa4.
2655*b725ae77Skettenis	(END_OF_TEXT_DEFAULT): Remove.
2656*b725ae77Skettenis	(STRING_TABLE_OFFSET): don't add sizeof(int).
2657*b725ae77Skettenis	[!HAVE_VPRINTF]: Define vprintf to be doprnt, not printf.
2658*b725ae77Skettenis	(BLOCK_ADDRESS_ABSOLUTE): Define.
2659*b725ae77Skettenis	(BREAKPOINT): Pad to size of machine word.
2660*b725ae77Skettenis	(SAVED_PC_AFTER_CALL): Remove ` at start of line (!).
2661*b725ae77Skettenis	(R2_REGNUM): Define.
2662*b725ae77Skettenis	(SP_REGNUM, FP_REGNUM): Switch definitions.
2663*b725ae77Skettenis	(REGISTER_U_ADDR): Use FP_REGNUM in place of SP_REGNUM.
2664*b725ae77Skettenis	(STORE_STRUCT_RETURN, EXTACT_RETURN_VALUE, STORE_RETURN_VALUE,
2665*b725ae77Skettenis	call function stuff):
2666*b725ae77Skettenis	Replace bogus definitions with correct ones for NP1.
2667*b725ae77Skettenis	(CANNOT_EXECUTE_STACK): Define.
2668*b725ae77Skettenis	(FRAME_LOCALS_ADDRESS): Don't add 80.
2669*b725ae77Skettenis	(FRAME_FIND_SAVED_REGS): Also get SP.
2670*b725ae77Skettenis	gould-pinsn.c (findframe): Move framechain declaration outside #if 0.
2671*b725ae77Skettenis	infptrace.c (write_inferior_memory): Check addr against text_end
2672*b725ae77Skettenis	and use PT_WRITE_I or PT_WRITE_D as appropriate.
2673*b725ae77Skettenis	(store_inferior_registers): Don't try to write registers in
2674*b725ae77Skettenis	CANNOT_STORE_REGISTER.
2675*b725ae77Skettenis	m-npl.h (CANNOT_STORE_REGISTER): Define.
2676*b725ae77Skettenis	npl-opcode.h (lil): 0xf8080000 -> 0xf80b0000.
2677*b725ae77Skettenis
2678*b725ae77Skettenis	* munch: Distinguish between BSD and System V nm by actually
2679*b725ae77Skettenis	seeing what output from nm looks like.
2680*b725ae77Skettenis
2681*b725ae77SkettenisFri Mar  2 13:43:36 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2682*b725ae77Skettenis
2683*b725ae77Skettenis	* printcmd.c (print_frame_args): Change highest_offset to point
2684*b725ae77Skettenis	to next unprinted arg.
2685*b725ae77Skettenis
2686*b725ae77Skettenis	* main.c (main): Print "type help for list of commands" along
2687*b725ae77Skettenis	with the version.  Follow it with a blank line.
2688*b725ae77Skettenis
2689*b725ae77SkettenisThu Mar  1 14:49:26 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2690*b725ae77Skettenis
2691*b725ae77Skettenis	* valprint.c: Move print_address for function from value_print
2692*b725ae77Skettenis	to val_print.
2693*b725ae77Skettenis
2694*b725ae77SkettenisWed Feb 28 15:06:12 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2695*b725ae77Skettenis
2696*b725ae77Skettenis	* Makefile.dist (m-sun4os4.h): Depend on m-sparc.h
2697*b725ae77Skettenis
2698*b725ae77Skettenis	* Makefile.dist (version.c): Depend on Makefile.dist, not Makefile.
2699*b725ae77Skettenis
2700*b725ae77Skettenis	* Makefile.dist: Change MAKEFILES to Makefiles.
2701*b725ae77Skettenis
2702*b725ae77Skettenis	* symtab.h: Declare get_sym_file.
2703*b725ae77Skettenis	core.c: Include symtab.h.
2704*b725ae77Skettenis
2705*b725ae77Skettenis	* Move signal name stuff from utils.c to signame.c
2706*b725ae77Skettenis	Move signal name stuff from defs.h to signame.h.
2707*b725ae77Skettenis	Makefile.dist (SFILES, HFILES, OBS): Add signame.{c,h,o}.
2708*b725ae77Skettenis
2709*b725ae77SkettenisMon Feb 26 12:03:12 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2710*b725ae77Skettenis
2711*b725ae77Skettenis	* command.c (add_cmd): Don't call savestring on name.
2712*b725ae77Skettenis
2713*b725ae77SkettenisSun Feb 25 15:52:18 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2714*b725ae77Skettenis
2715*b725ae77Skettenis	* printcmd.c (print_frame_args): Make highest_offset an int.
2716*b725ae77Skettenis	New variable args_printed.
2717*b725ae77Skettenis	(print_frame_nameless_args): Remove parameter end and add num
2718*b725ae77Skettenis	and first.
2719*b725ae77Skettenis	(print_frame_args): Change call to print_frame_nameless_args.
2720*b725ae77Skettenis
2721*b725ae77SkettenisFri Feb 23 21:40:15 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2722*b725ae77Skettenis
2723*b725ae77Skettenis	* stack.c (up_command, down_command):
2724*b725ae77Skettenis	Only print stack frame if from_tty.
2725*b725ae77Skettenis
2726*b725ae77SkettenisThu Feb 22 12:01:36 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2727*b725ae77Skettenis
2728*b725ae77Skettenis	* expread.y: Inlcude value.h and don't cast return value from
2729*b725ae77Skettenis	lookup_internalvar.
2730*b725ae77Skettenis
2731*b725ae77Skettenis	* infrun.c: Remove code in #ifdef UMAX_PTRACE.
2732*b725ae77Skettenis
2733*b725ae77Skettenis	* values.c (convenience_info): Print in form "$foo = 5".
2734*b725ae77Skettenis	Don't print "Debugger convenience variables:" before first one.
2735*b725ae77Skettenis
2736*b725ae77Skettenis	* Makefile.dist: Remove ADD_FILES from CLIBS.
2737*b725ae77Skettenis	(gdb, kdb, xgdb): Put in ADD_FILES as well as CLIBS.
2738*b725ae77Skettenis
2739*b725ae77Skettenis	* m-pyr.h: #if 0 out call dummy stuff.
2740*b725ae77Skettenis	Put in POP_FRAME which just calls error().
2741*b725ae77Skettenis	valops.c: If CALL_DUMMY is not defined, put in dummy call_function
2742*b725ae77Skettenis	which just prints an error message.
2743*b725ae77Skettenis
2744*b725ae77SkettenisTue Feb 20 22:11:40 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2745*b725ae77Skettenis
2746*b725ae77Skettenis	* breakpoint.c (commands_command): Add arg from_tty.
2747*b725ae77Skettenis
2748*b725ae77Skettenis	* main.c (main): Put if (!setjmp (to_top_level)) around calls
2749*b725ae77Skettenis	to *_command made in response to command line arguments.
2750*b725ae77Skettenis
2751*b725ae77SkettenisMon Feb 19 13:58:28 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2752*b725ae77Skettenis
2753*b725ae77Skettenis	* main.c (main): Use getopt_long_only.  Move one-character options
2754*b725ae77Skettenis	to long_options.  Remove entries which are just unambiguous
2755*b725ae77Skettenis	abbreviations of other options.
2756*b725ae77Skettenis
2757*b725ae77Skettenis	* command.h: Add types cmd_types and var_types.
2758*b725ae77Skettenis	Add fields type, var_type, and var to struct cmd_list_element.
2759*b725ae77Skettenis	command.c (add_set_cmd, add_set_from_show): New functions.
2760*b725ae77Skettenis	(add_cmd): Set c->var_type.
2761*b725ae77Skettenis	(add_abbrev_cmd): Call add_cmd instead of duplicating code.
2762*b725ae77Skettenis	main.c: Add showlist.
2763*b725ae77Skettenis	Move parse_binary_operation from main.c to command.c.
2764*b725ae77Skettenis	command.c (do_setshow_command): New function.
2765*b725ae77Skettenis	gdbcmd.h: New file.
2766*b725ae77Skettenis	Makefile.dist: Add gdbcmd.h.
2767*b725ae77Skettenis	many files: Include gdbcmd.h, use add_set_cmd and add_show_from_set.
2768*b725ae77Skettenis	Replace info * with show * where appropriate.
2769*b725ae77Skettenis	utils.c (fputs_filtered): Use UINT_MAX in lines_per_page to mean
2770*b725ae77Skettenis	no paging.
2771*b725ae77Skettenis	defs.h: Define UINT_MAX.
2772*b725ae77Skettenis	infcmd.c (run_command): Use execute_command, not set_args_command.
2773*b725ae77Skettenis	main.c (execute_command): Call do_setshow_command if necessary.
2774*b725ae77Skettenis	main.c (show_command, show_history): New functions.
2775*b725ae77Skettenis	main.c (initialize_main): Call add_prefix_cmd
2776*b725ae77Skettenis	for show and show history.
2777*b725ae77Skettenis
2778*b725ae77Skettenis	* coffread.c (enter_linenos): Print error if
2779*b725ae77Skettenis	file_offset < linetab_offset.
2780*b725ae77Skettenis
2781*b725ae77SkettenisSun Feb 18 15:37:05 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2782*b725ae77Skettenis
2783*b725ae77Skettenis	* convex-dep.c (comm_registers_info): Fix typo.  ("argc"->"arg").
2784*b725ae77Skettenis
2785*b725ae77SkettenisWed Feb 14 20:45:14 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2786*b725ae77Skettenis
2787*b725ae77Skettenis	* config.gdb: Create Makefile with make.
2788*b725ae77Skettenis
2789*b725ae77Skettenis	* Makefile.dist, config.gdb: Move "srcdir=" line from Makefile.dist
2790*b725ae77Skettenis	to new file Makefile.srcdir.
2791*b725ae77Skettenis
2792*b725ae77Skettenis	* valprint.c: Include <errno.h>.
2793*b725ae77Skettenis
2794*b725ae77Skettenis	* value.h: Declare value_coerce_function.
2795*b725ae77Skettenis
2796*b725ae77Skettenis	* findvar.c: Add missing " after #include "gdbcore.h
2797*b725ae77Skettenis
2798*b725ae77Skettenis	* main.c (main): Re-write command parsing to use getopt.
2799*b725ae77Skettenis	On "gdb +help" print options with '+' not '-'.
2800*b725ae77Skettenis	Makefile.dist: Add getopt.
2801*b725ae77Skettenis
2802*b725ae77SkettenisTue Feb 13 00:08:27 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2803*b725ae77Skettenis
2804*b725ae77Skettenis	* Makefile.dist: Add "srcdir=."
2805*b725ae77Skettenis	config.gdb: Edit srcdir= rather than adding it to the beginning.
2806*b725ae77Skettenis
2807*b725ae77Skettenis	* pyr-dep.c: Make global_reg_offset, last_frame_offset not static.
2808*b725ae77Skettenis	Move definition of reg_stack_offset to core.c [REG_STACK_SEGMENT].
2809*b725ae77Skettenis
2810*b725ae77Skettenis	* config/pyramid: Print message about alloca.
2811*b725ae77Skettenis
2812*b725ae77Skettenis	* breakpoint.c (clear_command): When printing "no breakpoint"
2813*b725ae77Skettenis	error, only use arg if non-NULL.
2814*b725ae77Skettenis
2815*b725ae77Skettenis	* core.c (read_memory): Rename to read_memory_noerr.
2816*b725ae77Skettenis	(read_memory): New function which calls read_memory and checks for err.
2817*b725ae77Skettenis	gdbcore.h: Declare all extern core.c functions.
2818*b725ae77Skettenis	move myread from core.c to utils.c.
2819*b725ae77Skettenis	declare it in defs.h.
2820*b725ae77Skettenis	(read_memory_integer): move from infcmd.c to core.c.
2821*b725ae77Skettenis	gdbcore.h: Declare it.
2822*b725ae77Skettenis	Many places: Remove error checking on read_memory, or call
2823*b725ae77Skettenis	read_memory_noerr instead.  Include "gdbcore.h" if calling either.
2824*b725ae77Skettenis
2825*b725ae77Skettenis	* value.h (COERCE_ARRAY): Coerce functions to function pointers.
2826*b725ae77Skettenis	valops.c (value_coerce_function): New function.
2827*b725ae77Skettenis
2828*b725ae77Skettenis	* core.c, convex-dep.c, arm-dep.c (xfer_core_file): Return EIO
2829*b725ae77Skettenis	if address out of bounds.
2830*b725ae77Skettenis
2831*b725ae77Skettenis	* m-arm.h, arm-dep.c arm-pinsn.c arm-opcode.h: New files.
2832*b725ae77Skettenis	dbxread.c, m-convex.h (VARIABLES_INSIDE_BLOCK): Add gcc_p parameter.
2833*b725ae77Skettenis	Makefile.dist (alldeps.mak): Special case for arm-convert.s.
2834*b725ae77Skettenis	dbxread.c (define_symbol): Check for local based on it not
2835*b725ae77Skettenis	being any one of the known deftypes.
2836*b725ae77Skettenis	values.c (using_struct_return): Use new macro USE_STRUCT_CONVENTION.
2837*b725ae77Skettenis
2838*b725ae77Skettenis	* Makefile.dist, config.gdb: Put in srcdir stuff.
2839*b725ae77Skettenis
2840*b725ae77SkettenisMon Feb 12 22:46:16 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2841*b725ae77Skettenis
2842*b725ae77Skettenis	* breakpoint.c: Add addr_string and cond_string fields to
2843*b725ae77Skettenis	struct breakpoint.
2844*b725ae77Skettenis	(break_command_1): Set them.  Use mention ().
2845*b725ae77Skettenis	(mention): Create with code from break_command_1.
2846*b725ae77Skettenis	(breakpoint_re_set): New function.
2847*b725ae77Skettenis	(breakpoint_clear): Remove.
2848*b725ae77Skettenis	(condition_command): Set cond_string.
2849*b725ae77Skettenis	(breakpoint_delete): Free cond_string and addr_string.
2850*b725ae77Skettenis	Declare parse_c_1's type and remove casts to struct expression *.
2851*b725ae77Skettenis	symmisc.c (free_all_symtabs): Don't call breakpoint_clear.
2852*b725ae77Skettenis	dbxread.c, coffread.c (reread_symbols): Call breakpoint_re_set,
2853*b725ae77Skettenis	Include breakpoint.h.
2854*b725ae77Skettenis	breakpoint.h: New file.
2855*b725ae77Skettenis	dbxread.c: Move declaration of symmisc.c functions to symtab.h.
2856*b725ae77Skettenis
2857*b725ae77SkettenisSun Feb 11 17:29:23 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2858*b725ae77Skettenis
2859*b725ae77Skettenis	* symtab.c: Make lookup_block_symtab extern.
2860*b725ae77Skettenis	symtab.h: Declare it.
2861*b725ae77Skettenis	valops.c (value_of_this): Use it.
2862*b725ae77Skettenis
2863*b725ae77SkettenisFri Feb  9 08:59:37 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2864*b725ae77Skettenis
2865*b725ae77Skettenis	* config/hp300hpux: Print message telling people to use gcc.
2866*b725ae77Skettenis
2867*b725ae77Skettenis	* value.h: Declare print_floating.
2868*b725ae77Skettenis	printcmd.c (print_scalar_formatted, case 'f'): Use print_floating.
2869*b725ae77Skettenis	valprint.c (val_print, case TYPE_CODE_FLT): Use print_floating.
2870*b725ae77Skettenis	valprint.c (print_floating): Make this function out of is_nan
2871*b725ae77Skettenis	and the code which was in val_print.
2872*b725ae77Skettenis	Put parentheses around high & 0xfffff.
2873*b725ae77Skettenis	Print sign and fraction for NaN's.
2874*b725ae77Skettenis	Print 17 digits not 16 for doubles.
2875*b725ae77Skettenis	(is_nan): Remove.
2876*b725ae77Skettenis	m-news.h, m-sun3.h: Define IEEE_FLOAT.
2877*b725ae77Skettenis
2878*b725ae77Skettenis	* Rename gld-pinsn.c to gould-pinsn.c.
2879*b725ae77Skettenis	config/{pn,npl}: Change name of gld-pinsn.c
2880*b725ae77Skettenis
2881*b725ae77SkettenisTue Feb  6 00:25:36 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2882*b725ae77Skettenis
2883*b725ae77Skettenis	* infptrace.c: Define PT_ATTACH if not defined.
2884*b725ae77Skettenis	m-hp300hpux.h: Define ATTACH_DETACH.
2885*b725ae77Skettenis
2886*b725ae77Skettenis	* main.c (initialize_main): Change alias class to aliases.
2887*b725ae77Skettenis
2888*b725ae77Skettenis	* dbxread.c: Search and destroy references to symsegs.
2889*b725ae77Skettenis	Also remove some #if 0'd code.
2890*b725ae77Skettenis
2891*b725ae77Skettenis	* core.c: Remove reread_exec.
2892*b725ae77Skettenis	dbxread.c (reread_symbols): New function.
2893*b725ae77Skettenis	dbxread.c (symbol_file_command): Set symfile_mtime.
2894*b725ae77Skettenis	coffread.c: Same.
2895*b725ae77Skettenis	infcmd.c (run_command): Call reread_symbols not reread_exec.
2896*b725ae77Skettenis
2897*b725ae77Skettenis	* valprint.c (val_print): When printing string after char *, print
2898*b725ae77Skettenis	it for "" just like any other string.
2899*b725ae77Skettenis
2900*b725ae77Skettenis	* core.c (reread_exec): New procedure.
2901*b725ae77Skettenis	infcmd.c (run_command): Call reread_exec.
2902*b725ae77Skettenis
2903*b725ae77Skettenis	* coffread.c (symbol_file_command): Add from_tty.
2904*b725ae77Skettenis
2905*b725ae77Skettenis	* dbxread.c (symbol_file_command): Only ask about loading new
2906*b725ae77Skettenis	symbol table if from_tty.
2907*b725ae77Skettenis
2908*b725ae77SkettenisMon Feb  5 02:25:25 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2909*b725ae77Skettenis
2910*b725ae77Skettenis	* inflow.c (inferior_died): Call breakpoint_clear_ignore_counts.
2911*b725ae77Skettenis
2912*b725ae77Skettenis	* Makefile.dist (OBS): Remove dbxread.o and coffread.o.
2913*b725ae77Skettenis
2914*b725ae77Skettenis	* config.gdb: Ignore files ending in '#' in config.
2915*b725ae77Skettenis
2916*b725ae77Skettenis	* stack.c (backtrace_command): Add QUIT to get_prev_frame loops.
2917*b725ae77Skettenis
2918*b725ae77SkettenisSat Feb  3 22:25:09 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2919*b725ae77Skettenis
2920*b725ae77Skettenis	* Makefile.dist (YACC): Don't use -v.
2921*b725ae77Skettenis
2922*b725ae77SkettenisFri Feb  2 19:26:50 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
2923*b725ae77Skettenis
2924*b725ae77Skettenis	* createtags: Only change .o to .c at end of name.
2925*b725ae77Skettenis
2926*b725ae77Skettenis	* Makefile.dist (alldeps.mak): new target.
2927*b725ae77Skettenis	(Makefile): add alldeps.mak.
2928*b725ae77Skettenis	(SOURCES): remove PINSNS.
2929*b725ae77Skettenis	(TAGFILES: use ALLPARAM.
2930*b725ae77Skettenis	(gdb.tar): add config/.
2931*b725ae77Skettenis
2932*b725ae77Skettenis	* config.gdb: Check for M_FILE= not #param.h
2933*b725ae77Skettenis	config/*: Make sure M_FILE= exists with space after M_FILE=.
2934*b725ae77Skettenis	Makefile.dist (TAGS): Pass M_FILE and DEPFILES.
2935*b725ae77Skettenis	createtags: Change .o to .c.  Remove special tests for dep.c etc.
2936*b725ae77Skettenis
2937*b725ae77Skettenis	* dbxread.c, coffread.c: Don't check COFF_FORMAT and READ_DBX_FORMAT.
2938*b725ae77Skettenis	Makefile.dist: Move {dbx,coff}read.c from SFILES to ALLDEPFILES.
2939*b725ae77Skettenis	config/*: add dbxread.o or coffread.o to depfiles.
2940*b725ae77Skettenis
2941*b725ae77Skettenis	* Makefile.dist (depend): Depend on $(SOURCES), not force.
2942*b725ae77Skettenis
2943*b725ae77SkettenisThu Feb  1 17:43:54 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2944*b725ae77Skettenis
2945*b725ae77Skettenis	* symmisc.c (print_symbol): Print newline after label.
2946*b725ae77Skettenis
2947*b725ae77SkettenisWed Jan 31 22:35:38 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2948*b725ae77Skettenis
2949*b725ae77Skettenis	* dbxread.c (read_addl_syms): Remove code that checks for
2950*b725ae77Skettenis	_etext.
2951*b725ae77Skettenis	Move end_of_text_addr into read_dbx_symtab.
2952*b725ae77Skettenis	(read_dbx_symtab): #if 0 out code which checks for _etext.
2953*b725ae77Skettenis
2954*b725ae77SkettenisTue Jan 30 15:40:19 1990  Jim Kingdon  (kingdon at albert.ai.mit.edu)
2955*b725ae77Skettenis
2956*b725ae77Skettenis	* Makefile.dist (gdb.tar): Use readline's "make readline.tar"
2957*b725ae77Skettenis	instead of having a list of readline files.
2958*b725ae77Skettenis
2959*b725ae77Skettenis	* infrun.c (normal_stop): #if 0 out "you have found a bug in sh".
2960*b725ae77Skettenis
2961*b725ae77Skettenis	* munch (-DSYSV): Check for .text at end of name.
2962*b725ae77Skettenis	Optionally allow extra underscore before initialize.
2963*b725ae77Skettenis	Remove space between #! and /bin/sh.
2964*b725ae77Skettenis
2965*b725ae77Skettenis	* m-merlin.h: Put in clarifying comments about SHELL_FILE.
2966*b725ae77Skettenis	Makefile.dist (install): Execute M_INSTALL.
2967*b725ae77Skettenis	config/merlin: Define M_INSTALL.
2968*b725ae77Skettenis
2969*b725ae77SkettenisMon Jan 29 04:32:09 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2970*b725ae77Skettenis
2971*b725ae77Skettenis	* inflow.c: Change all references to signal handlers from
2972*b725ae77Skettenis	int (*)() to void (*)().
2973*b725ae77Skettenis
2974*b725ae77Skettenis	* main.c: Declare init_signals before use & make it void.
2975*b725ae77Skettenis	Declare initialize_all_files.
2976*b725ae77Skettenis
2977*b725ae77Skettenis	* Makefile.dist (config.status): New target.
2978*b725ae77Skettenis
2979*b725ae77SkettenisSat Jan 27 00:19:50 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
2980*b725ae77Skettenis
2981*b725ae77Skettenis	* defs.h (enum command_class): Remove comma after last element.
2982*b725ae77Skettenis
2983*b725ae77Skettenis	* Makefile.dist (gdb.tar.Z): Use compress <foo >bar rather
2984*b725ae77Skettenis	than deleting gdb.tar.Z before starting.
2985*b725ae77Skettenis
2986*b725ae77Skettenis	* dbxread.c (process_one_symbol): Compare context_stack_depth
2987*b725ae77Skettenis	with !VARIABLES_INSIDE_BLOCK, not VARIABLES_INSIDE_BLOCK.
2988*b725ae77Skettenis
2989*b725ae77Skettenis	* mcheck.c: Put whole file in #if defined MALLOC_RANGE_CHECK.
2990*b725ae77Skettenis
2991*b725ae77Skettenis	* mcheck.c (checkhdr): Call fatal_dump_core not abort.
2992*b725ae77Skettenis
2993*b725ae77Skettenis	* mcheck.c: Copy from malloc distribution.
2994*b725ae77Skettenis
2995*b725ae77Skettenis	* main.c (main): Call init_malloc ().
2996*b725ae77Skettenis
2997*b725ae77Skettenis	* main.c (initialize_signals): Rename to init_signals.
2998*b725ae77Skettenis
2999*b725ae77SkettenisFri Jan 26 00:53:23 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
3000*b725ae77Skettenis
3001*b725ae77Skettenis	* *dep.c: Make core_file_command return void.
3002*b725ae77Skettenis
3003*b725ae77Skettenis	* gdbcore.h [!KERNEL_U_ADDR]: Declare kernel_u_addr.
3004*b725ae77Skettenis	infptrace.c [!KERNEL_U_ADDR]: Make it extern.
3005*b725ae77Skettenis
3006*b725ae77Skettenis	* altos-dep.c (NBPG, UPAGES): Wrap #define in #if !defined.
3007*b725ae77Skettenis
3008*b725ae77Skettenis	* m-pn.h (GOULD_PN): Define.
3009*b725ae77Skettenis	*-pinsn.c: Include actual opcode table not just opcode.h
3010*b725ae77Skettenis
3011*b725ae77Skettenis	* main.c [ALIGN_STACK_ON_STARTUP]: New code.
3012*b725ae77Skettenis	m-i386.h: Define ALIGN_STACK_ON_STARTUP.
3013*b725ae77Skettenis
3014*b725ae77Skettenis	* m-merlin.h (NO_SIGINTERRUPT, SHELL_FILE): Define.
3015*b725ae77Skettenis
3016*b725ae77Skettenis	* Move code from infptrace [USE_PTRACE_GETREGS] to sun3-dep.c.
3017*b725ae77Skettenis	m-sun{2,3}.h, m-sparc.h: Define FETCH_INFERIOR_REGISTERS.
3018*b725ae77Skettenis
3019*b725ae77Skettenis	* Makefile.dist, config.gdb, config/*:
3020*b725ae77Skettenis	Re-write to use machine-dependent makefiles instead of cpp.
3021*b725ae77Skettenis
3022*b725ae77Skettenis	* m-hp300hpux.h: Define FETCH_INFERIOR_REGISTERS.
3023*b725ae77Skettenis	infptrace.c: Put {fetch,store}_inferior_registers inside
3024*b725ae77Skettenis	#if !defined FETCH_INFERIOR_REGISTERS.
3025*b725ae77Skettenis
3026*b725ae77Skettenis	* Split execcore.c into exec.c and coredep.c.
3027*b725ae77Skettenis	Move a bunch of stuff from coredep.c and *dep.c to gdbcore.h.
3028*b725ae77Skettenis
3029*b725ae77Skettenis	* infptrace.c ({fetch,store}_inferior_registers):
3030*b725ae77Skettenis	Use U_REGS_OFFSET to set offset.
3031*b725ae77Skettenis	m-umax.h: Define U_REGS_OFFSET.
3032*b725ae77Skettenis
3033*b725ae77Skettenis	* m-umax.h: Define PTRACE_{ATTACH,DETACH}.
3034*b725ae77Skettenis
3035*b725ae77Skettenis	* m-i386.h (N_SET_MAGIC): Define.
3036*b725ae77Skettenis	m-i386gas.h: add #undef N_SET_MAGIC.
3037*b725ae77Skettenis
3038*b725ae77SkettenisThu Jan 25 18:39:45 1990  Jim Kingdon  (kingdon at mole.ai.mit.edu)
3039*b725ae77Skettenis
3040*b725ae77Skettenis	* m-hp300bsd.h: Remove KERNEL_U_ADDR.
3041*b725ae77Skettenis
3042*b725ae77Skettenis	* infptrace.c [!KERNEL_U_ADDR]: Get address of kernel u area
3043*b725ae77Skettenis	at runtime.
3044*b725ae77Skettenis
3045*b725ae77Skettenis	* infptrace.c: Replace numbers with PT_KILL, etc.
3046*b725ae77Skettenis	(store_inferior_registers): Loop for as many words are in the register.
3047*b725ae77Skettenis
3048*b725ae77Skettenis	* infptrace.c [NO_SINGLE_STEP]: Call single_step().
3049*b725ae77Skettenis
3050*b725ae77Skettenis	* kill_inferior{,_fast}: Declare as returning void.
3051*b725ae77Skettenis
3052*b725ae77Skettenis	* m-sun3.h (USE_PTRACE_GETREGS): Define.
3053*b725ae77Skettenis
3054*b725ae77Skettenis	* execcore.c: Add IS_OBJECT_FILE & related stuff.
3055*b725ae77Skettenis
3056*b725ae77Skettenis	* infptrace.c: Include <sys/ptrace.h>.
3057*b725ae77Skettenis	[ATTACH_DETACH] [USE_PTRACE_GETREGS]: New code.
3058*b725ae77Skettenis
3059*b725ae77Skettenis	* Split default-dep.c into infptrace.c and execcore.c.
3060*b725ae77Skettenis
3061*b725ae77Skettenis	* valprint.c [IEEE_FLOAT]: Change void * to char *.
3062*b725ae77Skettenis
3063*b725ae77Skettenis	* breakpoint.c: Change printf_filtered(%s) to fputs_filtered.
3064*b725ae77Skettenis
3065*b725ae77SkettenisWed Jan 24 00:35:52 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
3066*b725ae77Skettenis
3067*b725ae77Skettenis	* dbxread.c (symbol_file_command): When freeing everything, free
3068*b725ae77Skettenis	the string table too.
3069*b725ae77Skettenis
3070*b725ae77Skettenis	* Makefile.dist (gdb1): add "rm -f gdb1".
3071*b725ae77Skettenis
3072*b725ae77Skettenis	* printcmd.c (print_scalar_formatted): If size is 0, use 'b'
3073*b725ae77Skettenis	'h', 'w', or 'g' depending on the type.
3074*b725ae77Skettenis
3075*b725ae77Skettenis	* stack.c (backtrace_command): Read in symbols for frames we'll
3076*b725ae77Skettenis	print before printing them.
3077*b725ae77Skettenis
3078*b725ae77Skettenis	* valops.c (value_at): Don't print "I/O error" on EIO from
3079*b725ae77Skettenis	ptrace.  Don't print "out of bounds" for any ptrace error
3080*b725ae77Skettenis	except EIO.
3081*b725ae77Skettenis
3082*b725ae77Skettenis	* valprint.c (type_print_base, case TYPE_CODE_ENUM):
3083*b725ae77Skettenis	Print "FOO = 5" not "FOO : 5".
3084*b725ae77Skettenis
3085*b725ae77Skettenis	* symtab.{c,h}: Make lookup_misc_func extern.
3086*b725ae77Skettenis
3087*b725ae77Skettenis	* Makefile.dist: Define VERSION in makefile, and generate
3088*b725ae77Skettenis	version.c automatically.
3089*b725ae77Skettenis	(gdb.tar): Use gdb-$(VERSION), not dist-gdb.
3090*b725ae77Skettenis
3091*b725ae77Skettenis	* expread.y (yylex): Use lookup_primitive_typename to
3092*b725ae77Skettenis	cut down on calls to lookup_symbol.
3093*b725ae77Skettenis	symtab.{c,h} (lookup_primitive_typename): New function.
3094*b725ae77Skettenis	(lookup_typename): Use it.
3095*b725ae77Skettenis
3096*b725ae77Skettenis	* symtab.{c,h} (check_stub_type): New function.
3097*b725ae77Skettenis	valprint.c (type_print_base, val_print, type_print_derivation_info),
3098*b725ae77Skettenis	values.c (allocate_value): Call it.
3099*b725ae77Skettenis
3100*b725ae77Skettenis	* printcmd.c (whereis_command): New function.
3101*b725ae77Skettenis	symtab.c (lookup_symbol): Add symtab parameter.
3102*b725ae77Skettenis	various: Pass additional argument to lookup_symbol.
3103*b725ae77Skettenis	symseg.h (struct symbol): Add line field.
3104*b725ae77Skettenis	dbxread.c (define_symbol): Set sym->line.
3105*b725ae77Skettenis
3106*b725ae77Skettenis	* dbxread.c (symbol_file_command): Read string table into
3107*b725ae77Skettenis	malloc'd memory (symfile_string_table) and leave it there.
3108*b725ae77Skettenis	(psymtab_to_symtab): Use symfile_string_table.
3109*b725ae77Skettenis
3110*b725ae77Skettenis	* utils.c (sig_abbrev): Return NULL if not found.
3111*b725ae77Skettenis	infrun.c (sig_print_{header,info}): Consolidate duplicated
3112*b725ae77Skettenis	code from handle_command, signals_info.
3113*b725ae77Skettenis	(sig_print_info): Just print number if no name from sig_abbrev.
3114*b725ae77Skettenis
3115*b725ae77Skettenis	* Makefile.dist (OTHERS): Add ChangeLog-3.x
3116*b725ae77Skettenis
3117*b725ae77Skettenis	* infrun.c (restore_inferior_status): #if 0 out
3118*b725ae77Skettenis	"Unable to restore previously selected frame" error message.
3119*b725ae77Skettenis
3120*b725ae77Skettenis	* infrun.c (signals_info, handle_command): Print signal
3121*b725ae77Skettenis	abbrevs along with numbers.
3122*b725ae77Skettenis
3123*b725ae77Skettenis	* infrun.c (handle_command): Accept symbol signal names.
3124*b725ae77Skettenis
3125*b725ae77Skettenis	* utils.c (sig_{number,abbrev}, init_sig): New functions.
3126*b725ae77Skettenis	_initialize_utils: Call init_sig for each signal.
3127*b725ae77Skettenis	defs.h: Declare them.
3128*b725ae77Skettenis
3129*b725ae77Skettenis	* default-dep.c (read_inferior_memory): Check quit_flag in
3130*b725ae77Skettenis	fetch loop.
3131*b725ae77Skettenis
3132*b725ae77Skettenis	* Changes for lazy fetching (speeds things up for big objects):
3133*b725ae77Skettenis	value.h (struct value): New field lazy.
3134*b725ae77Skettenis	VALUE_CONTENTS_RAW, VALUE_LAZY, value_at_lazy: New.
3135*b725ae77Skettenis	findvar.c (read_var_value): Set lazy instead of fetching.
3136*b725ae77Skettenis	various: Copy into VALUE_CONTENTS_RAW, not VALUE_CONTENTS.
3137*b725ae77Skettenis	valops.c: Add value_at_lazy, value_lazy.
3138*b725ae77Skettenis	various: Call value_at_lazy instead of value_at.
3139*b725ae77Skettenis
3140*b725ae77Skettenis	* symtab.h (LONGEST): Define.
3141*b725ae77Skettenis
3142*b725ae77Skettenis	* m-*.h (LONGEST, BUILTIN_TYPE_LONGEST): Delete (in symtab.h).
3143*b725ae77Skettenis
3144*b725ae77Skettenis	* infrun.c (wait_for_inferior): #if 0 out stop if ABOUT_TO_RETURN
3145*b725ae77Skettenis
3146*b725ae77Skettenis	* version.c: Change version number to 4.0development
3147*b725ae77Skettenis
3148*b725ae77SkettenisFor older changes see ChangeLog-3.x
3149*b725ae77Skettenis
3150*b725ae77SkettenisLocal Variables:
3151*b725ae77Skettenismode: indented-text
3152*b725ae77Skettenisleft-margin: 8
3153*b725ae77Skettenisfill-column: 74
3154*b725ae77Skettenisversion-control: never
3155*b725ae77SkettenisEnd:
3156