Minor cleanup.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
486b440e
JK
1Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
2
df2a1bd7
JK
3 * stack.c (print_frame_info): Print specially if dummy frame.
4
fa99ebe1
JK
5 * breakpoint.c: Add comments regarding within_scope future direction.
6
ee7e82fe
JK
7 * Version 4.8.3.
8
486b440e
JK
9 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
10
11Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
12
13 * ch-exp.y: Fix thinko that broke parsing of FALSE.
14
39cb3d04
PS
15Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
16
17 * stabsread.c (read_member_functions): Initialize domain for stubbed
18 member functions to avoid gdb core dumps when printing pointers
19 to member functions.
20 * cp-valprint.c (cp_print_class_method): Check for stubbed member
21 functions.
22
ccd87bf2
JK
23Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
24
e2ff731b
JK
25 * expprint.c (print_subexp): If opcode not found in op_print_tab,
26 stop with an error().
27 eval.c (evaluate_subexp): Change error message.
28
ccd87bf2
JK
29 * objfiles.c (build_objfile_section_table): Cast return value
30 from obstack_finish.
31
0a62ff36
JK
32Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
33
f3649227
JK
34 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
35 to rs6000_frame_chain and deal with it if we're in a signal handler.
36 (FRAME_SAVED_PC): Use rs6000_frame_chain.
37
0a819c04
JK
38 * breakpoint.c (within_scope): New function.
39 (enable_breakpoint, watchpoint_check): Use it.
40
affc9686
JK
41 * source.c (openp): Handle "exec-file ./ls" correctly.
42
0a62ff36
JK
43 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
44
5a7c9cce
PB
45Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
46
47 * ch-exp.y: Clean up lexing of identifiers and
48 reserved words. (E.g. don't recognize FALSEXXX as the
49 keyword FALSE followed by the identifier XXX.)
50 Also, convert identifiers to lower case.
51
1724c671
SG
52Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
53
54 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
55 new serial interface.
56
4febd102
SG
57Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
58
59 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
60 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
61 * ser-go32.c: Return -1 on most failures, 0 on most successes,
62 and use new return codes for go32_readchar().
63 * ser-unix.c: Ditto. Also, move error handling up to caller for
64 SERIAL_SETBAUDRATE().
65 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
66 to specific routine.
67 (serial_close): New routine to wrap around device close routine.
68 serial.h: Clean & document return values more clearly.
69
a80c7bf6
JK
70Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
71
944c1c2f
JK
72 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
73
74 * rs6000-pinsn.c (print_operand, case LI): Print condition register
75 operand in decimal rather than wrong textual versions.
76
21486670
JK
77 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
78 (mention 't', remove false thing about 'g' only good with 'f').
79
ddc6e6f7
JK
80 * breakpoint.h: move "struct breakpoint" and friends to top of
81 file so that bpstat_find_breakpoint prototype works.
82
a80c7bf6
JK
83 * solib.c (struct so_list): Add bfd field.
84 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
85 Put the bfd in bfd field of the so_list.
86 (clear_solib): Free bfd name and close_bfd on the bfd.
87
47f366bc
PB
88Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
89
90 * valarith.c (value_subscript): Add COERCE_REF.
a80c7bf6 91 **** start-sanitize-chill ****
47f366bc
PB
92 * ch-exp.y (operand_5): We can generalize the 2nd operand
93 of a string repetition ot 'literal' without ambiguity.
a80c7bf6 94 **** end-sanitize-chill ****
47f366bc 95
cabd4da6
JK
96Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
97
98 * breakpoint.h (struct bpstat): Remove momentary field.
99 Remove bpstat_momentary_breakpoint. This was always kludgy
100 and is no longer used.
101
102 * breakpoint.h: Add enum bpstat_what.
103 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
104 stop and print fields of bpstat now per-breakpoint, not just
105 one for the whole chain.
106 breakpoint.{c,h} (bpstat_what): New function.
107 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
108 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
109 with call to bpstat_what.
110 README: Remove watchpoint/breakpoint bug from known bugs.
111
112 * breakpoint.h: Prototype bpstat_find_breakpoint.
113
dfbfbd96
FF
114Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
115
116 * symtab.c (find_methods, gdb_mangle_name): Note that functions
117 are g++ specific.
118 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
119 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
120
121Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
122
123 * i960-pinsn.c (tabent): Copied struct definition from
124 opcodes/i960-dis.c.
125
ca6a826d
PS
126Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
127
128 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
129 is a C++ destructor.
130 * symtab.c (gdb_mangle_name): Use it.
131 * symtab.c (find_methods): Do not add destructors to choice list
132 for constructors.
133 * symtab.c (decode_line_1): Make breakpoints on destructors work
134 for gcc-2.x again.
135
40b56283
SG
136Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
137
b83bf6b3
SG
138 * ser-go32.c: Make it use serial port name.
139 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
140
40b56283
SG
141 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
142 in a system call!
143
41faa775
SG
144Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
145
146 * configure.in: Only configure sparclite subdir when target_cpu
147 is sparclite.
148
f635bd47
JK
149Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
150
ef5b809c
JK
151 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
152 Remove FIXME comment regarding this.
153
47045b36
JK
154 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
155
f635bd47
JK
156 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
157
73d0fc78
RP
158Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
159
160 Add section table to objfile struct. Use it for find_pc_section.
161 * objfiles.c (add_to_objfile_sections,
162 build_objfile_section_table, find_pc_section): new functions.
163 (allocate_objfile): build section table.
164 * objfiles.h (struct obj_section): new structure.
165 (struct objfile): add section table.
166 (find_pc_section): new prototype.
167 * solib.[ch] (find_pc_section_from_so_list): removed.
168 * sparc-tdep.c: include objfiles.h for find_pc_section. include
169 symfile.h for objfiles.h.
170 (in_solib_trampoline): adjusted for new find_pc_section
171 prototype. Removed BAD_RICH_HACK ifdefs.
172 * symfile.c (syms_from_objfile): offset objfile sections.
173 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
174 * symfile.h (find_pc_section): prototype removed. Also fixed
175 comment typo NUL -> NULL.
176 * target.[ch] (find_pc_section_from_targets): removed.
177 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
178
07861607
SG
179Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
180
181 * ser-go32.c: Format. (go32_open): Use proper return value.
182
183 * configure.in: Undo conditional configdirs hack for sparclite.
184
118ec55a
JW
185Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
186
187 * symtab.c (list_symbols): When call break_command, pass both
188 filename and function name not just function name.
189
190Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
191
192 (Changes and new files to make "none" a full fledged configuration)
193 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
194 Currently only tm-none.h has any meaningful contents.
195 * config/none/none.mh (NAT_FILE): Use nm-none.h
196 * config/none/none.mh (XM_FILE): Use xm-none.h
197 * config/none/none.mt (TM_FILE): Use tm-none.h
198 * Makefile.in (depend): Remove comment about parse errors in
199 valops.c, it now parses correctly and generates a correct depend
200 line. Remove line that touches xm.h, tm.h, and nm.h; they are
201 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
202
786757a9
JK
203Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
204
9925b928
JK
205 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
206
786757a9
JK
207 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
208 exactly 8 characters.
209
0c101d49
SG
210Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
211
212 * configure.in: Sparclite uses sparc config dir. Also has it's
213 own tm- & .mt files now. Also add sparclite to configdirs.
214 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
215 * config/i386/go32.mh: Nullify def of TERMCAP.
216 * config/i386/xm-go32.h: Get rid of redef of EIO.
217 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
218 specific configs. Very similar to sun4os4, but without solib.
219 * sparclite/{Makefile.in configure.in}: First cut at making this
220 dir configgable.
221
5d2b030a
SG
222Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
223
224 * ser-go32.c: First cut at adapting to new serial interface.
225
4e772f44
SG
226Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
227
228 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
229 These implement a new serial line interface for talking to remote
230 targets.
231 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
232 EXCEPT go32, which gets ser-go32.c.
233 * remote.c: Use new serial interface. More remote-xxx's to be
234 converted later.
235 * ser-bsd.c, ser-termios.c: Removed.
236 * serial.c: New. Implements common operations for all serial
237 types.
238 * ser-unix.c: New. Unix specific serial operations for various
239 flavors of Unix (Posix, SysV, BSD).
240 * serial.h: Generic serial interface defs.
241 * config/i386/go32.mh, config/i386/i386bsd.h,
242 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
243 ser-bsd.o from XDEPFILES. All the magic is now handled in
244 configure.in.
245
9acdb2dc
SG
246Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
247
248 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
249
0848ad1c
JK
250Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
251
1d7e34e1
JK
252 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
253
b0e932ad 254 * rs6000-tdep.c (frameless_function_invocation): Don't even think
1d7e34e1 255 about framelessness except on the innermost frame.
b0e932ad 256
0848ad1c
JK
257 * xcoffexec.c: Call fatal() not abort().
258
259 * stabsread.c (patch_block_stabs): If stab & no symbol, make
260 a LOC_OPTIMIZED_OUT symbol.
261 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
262 findvar.c (read_var_value), printcmd.c (address_info),
263 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
264 m2-exp.y (yylex): Deal with it.
265 **** start-sanitize-chill ****
266 ch-exp.y (yylex): Deal with it.
267 **** end-sanitize-chill ****
268
269Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
270
271 * findvar.c (value_from_register): H8500 specific, check to see
272 if we are looking at short pointer. If so, skip crock.
273 * h8500-tdep.c (h8500_frame_chain): Mask down value from
274 read_memory_integer() to avoid getting messed up by sign extension.
275
0e184833
RP
276Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
277
278 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
279 ifdef protect using BAD_RICH_HACK. This should be removed soon.
280 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
281
a6cead71
JK
282Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
283
720b3aed
JK
284 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
285
286 * core.c (dis_asm_print_address): New function.
287
a6cead71
JK
288 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
289 has been fixed.
290
494503c7
PS
291Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
292
293 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
294 entire breakpoint chain and print only the first entry that needs to
295 be printed and needs to be stopped for. Fixes problems with printing
296 of multiple breakpoints with different conditions.
297 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
298 effectively stops printing of the breakpoint chain.
299 * breakpoint.c (print_it_noop): New routine to print nothing
300 for this breakpoint entry and dont stop printing.
301 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
302 watchpoint only if it is enabled.
303 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
304 descriptor from the library to make backtraces through setjmp work.
305 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
306 sigtramp.
307 * mips-tdep.c (read_next_frame_reg): Provide correct values for
308 all registers saved within sigtramp, cleanup.
309
f7ed13c7
JK
310Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
311
312 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
313
bf097a0b
RP
314Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
315
316 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
317 with prototype in ../include/dis-asm.h.
318
5d0734a7
JK
319Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
320
321 * core.c (dis_asm_{read_memory,memory_error}): New functions.
322 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
323 Use read_memory_func interface to disassembler.
324
2093fe68
RP
325Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
326
327 Teach sparc solaris to next over shared library functions.
328 * solib.[hc] (find_pc_section_from_so_list): new function and
329 prototype.
330 * sparc-tdep.c (in_solib_trampoline): new function.
331 * symfile.[hc] (find_pc_section): new function and prototypes.
332 * target.[hc] (find_pc_section_from_targets): new function and
333 prototypes.
334 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
335 in_solib_trampoline.
336
b27be792
JK
337Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
338
deae7611
JK
339 * infrun.c (wait_for_inferior): Revise comment.
340
359a097f
JK
341 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
342
343 * command.{c,h}: New var_type var_integer.
344 main.c: Use it for history_size.
345
346 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
347 Lint and byte-order fixups.
348
3f031adf
JK
349 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
350
8af68e4e
JK
351 * breakpoint.h (bpstat): New field print_it.
352 breakpoint.c (bpstat_print): Use it.
353 (print_it_normal): New function (from old bpstat_print code).
354 (bpstat_{alloc,stop_status}): Set print_it field.
355
356 * breakpoint.c (bpstat_stop_status): Use catch_errors when
357 evaluating watchpoint condition, via new function watchpoint_check.
358 Also stop if watchpoint disabled due to leaving its block.
359
b27be792
JK
360 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
361
aa66fddd
PS
362Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
363
364 * mips-pinsn.c: Add missing include of dis-asm.h.
365
d7d35f00
FF
366Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
367
239121e2
FF
368 * Makefile.in (clean, distclean, realclean): Recursively apply
369 to subdirs first, rather than last. This avoids, for example,
370 Makefile being removed in a parent directory before the recursive
371 make is run.
372
141ccc03
FF
373 * alldeps.mak, depend: Update for below changes.
374
2225eb85
FF
375 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
376 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
377 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
378 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
379 instead of tm-68k.h.
380 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
381 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
382 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
383 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
384 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
385 tm-68k.h to tm-m68k.h.
386 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
387 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
388 tm-m68k-nofp.h.
389
d7d35f00
FF
390 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
391 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
392 * a29k-tdep.c: Renamed from am29k-tdep.c.
393 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
394 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
395 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
396 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
397 Map '29k' to 'a29k'.
398 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
399 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
400 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
401 tm-a29k.h.
402 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
403 define that does not appear anywhere else in the gdb source tree.
404 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
405
ad376893
JK
406Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
407
2225eb85
FF
408 * breakpoint.c: Add comments regarding breakpoint_re_set.
409
e5c00760
JK
410 * xcoffread.c (sort_syms, compare_symbols): Remove.
411 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
412 not our own sort_syms (it is identical).
413
ad376893
JK
414 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
415
0b0d6c3f
PS
416Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
417
418 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
419 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
420 went out of scope.
421 * exec.c (exec_close): Fix storage leak.
422 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
423 output sections when patching an executable.
424 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
425 when writing all registers.
426 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
427 at the right offset in the dummy frame.
428 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
429 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
430 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
431
0f0834c5
JG
432Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
433
434 * Makefile.in (TARFILES): Avoid trailing backslash.
435
2d313932
JK
436Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
437
d7d35f00
FF
438 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
439 it in breakpoint_re_set.
2d313932
JK
440 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
441
442 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
443 don't use sizeof(int) for target stuff, etc).
444
53f6119f 445Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
3c02636b 446
53f6119f
FF
447 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
448 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
449 support that can't be integrated anyway due to lack of clear
450 authorship.
3c02636b 451
ccf1e898
SG
452Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
453
454 * findvar.c (read_register, write_register): Make these capable
455 of reading/writing registers that are shorter than REGISTER_TYPE.
456 * (value_from_register): Install H8500 specific code to return
457 proper value when register is being used as a pointer.
458 * h8500-tdep.c: Remove extra defines of NUM_REGS.
459 (h8500_skip_prologue): Use correct lengths for LINK instructions.
460 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
461 chain frames properly by combining frame pointer with T reg.
462 (init_extra_frame_info): Delete. It's now a macro.
463 (frame_args_address): Don't add PTR_SIZE. Stack args are already
464 offset by the correct amount off of the frame pointer.
465 (register_byte): Delete. It's now a macro.
466 (register_raw_size, register_virtual_size): Delete. Replaced by
467 common routine h8500_register_size, cuz there's no difference
468 between the raw & virtual sizes on this machine.
469 (register_convert_to_raw, register_convert_to_virtual): Delete,
470 cuz there's no difference between the raw & virtual forms.
471 Replaced by memcpy in tm file.
472 (register_virtual_type): Rename to h8500_register_virtual_type.
473 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
474 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
475 emulator have same reg offsets. This is all handled in the
476 simulator code now.
477 (h8500_trapped_internalvar): New routine to detect references to
478 convenience vars acting as pointer pseudo-regs.
479 (h8500_value_trapped_internalvar): Conjure up value of pointer
480 pseudo-regs.
481 (h8500_set_trapped_internalvar): Convert set value in real
482 register references.
483 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
484 code segment register.
485 infrun.c (proceed): Simplify. Call write_pc instead of doing it
486 by hand.
487 (wait_for_inferior): Add h8500 specific code to add stack segment
488 when reading SP register.
489 remote-sim.c (fetch_register): Spacing.
490 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
491 detect cruft. Redo all register manipulation stuff. Get rid of
492 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
493 to frame pointer. (IS_TRAPPED_INTERNALVAL,
494 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
495 to create internal vars for pointer pseudo-regs.
496
2531303c
FF
497Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
498
499 * Makefile.in: Numerous small changes to macro definitions
500 and rules for building gdb distribution tree. Many macros
501 eliminated or merged, and rules simplified.
502 * alldeps.mak: Update.
503 * depend: Update.
504
b396a969
DZ
505Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
506
507 * Makefile.in: recurse through SUBDIRS for dvi target too
508
53f6119f
FF
509Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
510
511 * Clean up xcoff relocation.
512 objfiles.h (struct objfiles): Add section_offsets, num_sections.
513 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
514 Set them.
515 symtab.h (struct general_symbol_info): Add section field.
516 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
517 xcoffread.c: Set section for symbols and msymbols.
518 (struct symtab): Add block_line_section field.
519 buildsym.c (end_symtab): Set it.
520 (end_symtab and callers): Add section parameter.
521 objfiles.c (objfile_relocate): New funciton.
522 xcoffexec.c (vmap_symtab): Use it.
523 xcoffsolib.h (struct vmap): Remove unused fields.
524 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
525 CORE_NEEDS_RELOCATION, symtab_relocated.
526 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
527 rs6000-tdep.c: Make loadinfotext static.
528 breakpoint.c (fixup_breakpoints): Doc fix.
529 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
530 (end_symtab): primary field replaces nonreloc.
531
ece2e98a
JG
532Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
533
534 * symtab.h (struct linetable_entry): Remove confusing comment.
535
80c8fd72
DZ
536Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
537
538 * Makefile.in: add installcheck target
539
1a0edbc7
FF
540Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
541
542 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
543 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
544 z8k}: New directories to hold cpu specific configuration files.
545 Naming follows gcc convention.
546 * config/{*.mt, *.mh}: All target and host makefile fragment
547 config files moved to an appropriate config/<cpu> subdirectory.
548 * nm-*, xm-*, tm-*: All native, host, and target files, which
549 get linked to nm.h, xm.h, and tm.h respectively by configure,
550 moved to appropriate config/<cpu> subdirectory.
551 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
552 Native, host, and target files that are common across more than
553 one cpu architecture and included by one of the configured
554 native, host, or target files, get moved to config directory.
555 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
556 pick up native, host, or target include files moved to one of
557 the config subdirectories, and that are included by other files.
558 * Makefile.in (alldeps.mak): Modify to account for new config
559 directory structure.
560 * alldeps.mak, depend: Update for new config directory structure.
561 * config/*/[ntx]m-*.h: Modify all files that include other
562 [ntx]m-*.h files to use path relative to gdb/config. I.E.
563 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
564 "tm-29k.h".
565 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
566 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
567 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
568 * configure.in: Default gdb_host_cpu to host_cpu, and remap
569 the ones where the default is not unique or different than the
570 config subdirectory name. Similarly, handle gdb_target_cpu.
571 Modify configure.in as appropriate to make use of gdb_host_cpu
572 and gdb_target_cpu to find makefile fragments and make links.
573
5f5341a7
ILT
574Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
575
576 * mipsread.c (compare_blocks): Sort blocks with the same start
577 address by decreasing ending address.
578
1a3579df
PS
579Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
580
581 * mipsread.c (parse_procedure): Save cur_fdr accross call to
582 lookup_symbol as it might get clobbered by the call.
583
584 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
585 The previous code did not initialize the language field for the psymtab
586 entry.
587
f24c159f
JG
588Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
589
590 * c-exp.y (parse_number): Avoid shift warning.
591 * serial.h (struct ttystate): Declare empty one on DOS.
592
bc0d4cb9
SG
593Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
594
733a9015
SG
595 * xm-sun4os4.h: Return type of free() should be void, not int.
596
bc0d4cb9
SG
597 * vx-share/vxWorks.h: Remove #def of NULL.
598
deb3f296
JK
599Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
600
601 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
602
52f8e6a0
SC
603Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
604
605 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
606
00cea52f
PB
607Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
608
609 * ieee-float.c: Moved to ../libiberty.
610 * ieee-float.h: Moved to ../include.
611 * Makefile.in: Update accordingly.
612 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
613 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
614 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
615 it is now in ../opcodes/m68881-ext.c.
616 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
617 prologue (some callers _do_ care).
618 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
619 new interface of ../opcodes/*-dis.c.
a80c7bf6 620 **** start-sanitize-chill ****
00cea52f 621 * ch-exp.y: Add #include <ctype.h>.
a80c7bf6 622 **** end-sanitize-chill ****
00cea52f 623
b60b2e3e
JK
624Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
625
c161de74
JK
626 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
627
b60b2e3e
JK
628 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
629
ecfd2b60
JK
630Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
631
632 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
633
2d8d693a
SC
634Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
635
636 * z8k-tdep.c (extract_return_value, write_return_value,
637 store_struct_return): New functions from macros in tm-z8k.h.
638
898e13c8
FF
639Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
640
641 * valops.c (value_arg_coerce): Apply temporary patch to
642 fix problem with coercion of array and function types when
643 passed as arguments to C functions, pending a more complete
644 review of when and how coercion should be done, depending
645 upon context and language.
646
9d61147e
JK
647Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
648
3e57da38
JK
649 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
650
9d61147e
JK
651 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
652 debugsec if there are a non-zero number of symbols.
653
3021c40d
JG
654Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
655
656 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
657
8112a711
JK
658Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
659
660 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
661
662 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
663 not just 50 symbols.
664 (symtbl_num_syms): New variable.
665 (read_xcoff_symtab): Set it.
666 (read_symbol_nvalue): Check for bad symno.
667 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
668 always symtbl.
669
e829d983
SG
670Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
671
672 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
673 This is defined in defs.h if necessary.
674 * vx-share/vxWorks.h: Remove #defs of min and max.
675 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
676 vx-share/xdr_rdb.c: include defs.h.
677
c8ade719
JK
678Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
679
680 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
681 of while condition.
682
683 * xcoffread.c (enter_line_range): complain() on bad endoffset.
684 xcoffread.c: Doc fixes.
685
686Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
687
688 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
689 xcoffexec.c (xcoff_relocate_core): New function.
690 (text_adjustment): Removed.
691 (add_vmap): Return the vmap.
692 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
693
694Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
695
696 * xcoffsolib.h: Add objfile member to struct vmap.
697 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
698 xcoffexec.c (add_vmap): Allocate objfiles here.
699
48a522d9
JG
700Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
701
01deac12
JG
702 Support 68000 series without floating point.
703
704 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
705 * tm-68k-nofp.h: New file, lacks 68881 support.
706 * config/m68k-nofp.mt: New file.
707
84a05e52
JG
708Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
709
710 Remove a few remaining underscore/no-underscore remnants from
711 config files.
712
713 * config/{m68k-un.mt, sparc-un.mt}: Remove.
714 * config/m68k-noun.mt: Rename to m68k-fp.mt.
715 * config/sparc-noun.mt: Rename to sparc-em.mt.
716 * tm-68k-noun.h, tm-spc-noun.h: Remove.
717 * tm-68k-un.h: Rename to tm-68k-fp.h.
718 * tm-spc-un.h: Rename to tm-spc-em.h.
719 * tm-sun4sol2.h: Cleanup.
720 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
721
961ee88e
JG
722Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
723
724 * symmisc.c (std_in, std_out, std_err): Move initializations
725 to runtime code, in case they aren't constant.
726
a8172eea
RP
727Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
728
aa8f3210
RP
729 * symtab.c (find_pc_symtab): some object file formats, notably
730 mips, have holes in the address ranges of symtabs. Change
731 this algorythm from first hit to tightest fit.
732
a8172eea
RP
733 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
734 fence post without finding the enclosing function, then print a
735 warning.
736
bd5d07d9
FF
737Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
738
5e81259d
FF
739 * utils.c (fputs_demangled, fprint_symbol): Remove.
740 * utils.c (fprintf_symbol_filtered): New function which combines
741 the functionality of fputs_demangled and fprint_symbol. Uses a
742 caller provided language parameter to select the appropriate
743 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
744 * defs.h (enum language): Move further up in file so enum can
745 be used in prototypes.
5e81259d
FF
746 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
747 * defs.h (fprintf_symbol_filtered): Add prototype.
748 * c-typeprint.c (cp_type_print_method_args): Replace calls to
749 fputs_demangled with call to fprintf_symbol_filtered.
750 * cp-valprint.c (demangle.h): Include
751 * cp-valprint.c (cp_print_value_fields): Replace calls to
752 fprint_symbol with calls to fprintf_symbol_filtered.
753 * printcmd.c (print_frame_args): Replace call to fprint_symbol
754 with call to fprintf_symbol_filtered.
bd5d07d9
FF
755 * stack.c (print_frame_info): Remove obsolete code so we don't
756 have to update fputs_demangled usage in it.
757 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
758 to pass to fprintf_symbol_demangled and initialize it from the
759 symbol's language. Replace calls to fputs_demangled with calls
760 to fprintf_symbol_filtered.
761 * symtab.c (find_methods): Replace call to fputs_demangled with
762 call to fprintf_symbol_filtered.
763 **** start-sanitize-chill ****
764 * ch-valprint.c (demangle.h): Include.
765 * ch-valprint.c (chill_print_value_fields): Replace call to
766 fprint_symbol with call to new fprintf_symbol_filtered.
767 **** end-sanitize-chill ****
bd5d07d9 768
f77ad505
FF
769Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
770
0b96ed06
FF
771 * Makefile.in (VERSION): Bump version to 4.8.2.
772
f77ad505
FF
773 * main.c (source_command): Require an explicit pathname of file
774 to source, since previous behavior of defaulting to gdb init file
775 was troublesome and undocumented.
776 * printcmd.c (disassemble_command): Add missing '{}' pair to
777 else with two statements. Bug reported by Stephane Tsacas
778 <slt@isoft.fr>.
779 * symtab.c (find_pc_line): Don't complain about zero length or
780 negative length line numbers for the moment, since we may not own
781 the terminal when called, such as when single stepping. (FIXME)
782 * language.h (CAST_IS_CONVERSION): True if current language is
783 C++ as well as C. Fix from Peter Schauer.
784 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
785 Use STREQN macro rather than bare '!strncmp()'.
786 * environ.c (unset_in_environ): Avoid use of memcpy on
787 overlapping memory regions, as suggested by Paul Eggert
788 <eggert@twinsun.com>.
789 * c-exp.y (%union struct): Remove unused ulval as suggested
790 by Paul Eggert <eggert@twinsun.com>.
791
792Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
793
794 * main.c (gdbinit): Make static.
795 * main.c (inhibit_gdbinit): Move to file scope.
796 * main.c (main): Remove local inhibit_gdbinit.
797 * main.c (source_command): Don't source '.gdbinit' file by
798 default if gdb has been told to ignore it.
799
aecc5459
ILT
800Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
801
802 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
803 3.63.
804
19327ea5
JG
805Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
806
aecc5459
ILT
807 * printcmd.c (print_address_symbolic): Only print if offset
808 is shorter than max_symbolic_offset.
809 (initialize_printcmd): `set print max-symbolic-offset'.
810
946f014b
JG
811 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
812 (examine_tag): Use it.
813 (read_register_stack): Only look in the local registers for a
814 memory address if it's between rfb and rsp; go to memory otherwise.
815 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
816 (reginv_com): Remove ancient kludge command.
817
81029114
RP
818Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
819
24365af9
RP
820 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
821 irix4 will again compile.
822
5870d848
RP
823 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
824
81029114
RP
825 * configure.in: accept mips-sgi-irix4* for irix4.
826
827Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
828
829 * z8k-tdep.c (print_register_hook): Lint.
830
4966c17c
JG
831Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
832
833 Lint fixes from Paul Eggert (eggert@twinsun.com):
834
835 * command.c (do_setshow_command): var_uintegers are unsigned.
836 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
837 unsigned, since they use hex values with the high bit set.
838
83386662
FF
839Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
840
2456bacb
FF
841 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
842 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
843 access symbol name.
e5bb7e61 844 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 845 macro definitions in parenthesis.
e5bb7e61 846
83386662
FF
847 * dbxread.c (dbx_symfile_init): Catch the case where there is
848 no string table, but the only way we find out is by reading zero
849 bytes from EOF.
850
69a272c4
FF
851Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
852
853 * dbxread.c (dbx_symfile_init): Make size of the string table
854 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
855 offset to the string table is nonzero and handle the nonexistant
856 string table case, should it occur. Ensure that the string table
857 size read from the file is reasonable, with a minimum lower bound
858 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
859
b010e283
ILT
860Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
861
862 * Makefile.in: Changes to build testsuite correctly.
863 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
864 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
865 (TARGET_FLAGS_TO_PASS): New variable.
866 (SUBDIRS): Added testsuite.
867 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
868 testsuite is compiled with CC_FOR_TARGET rather than CC.
869
45364c8a
FF
870Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
871
6985bc54
FF
872 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
873 reported by mycroft@gnu.ai.mit.edu.
874
875 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
876 * configure.in (vax-*-ultrix2*): New triplet.
877 * config/vaxult2.mh: New file.
878 * xm-vaxult2.h: New file.
879
45364c8a
FF
880 * c-exp.y (parse_number): Change high_bit to unsigned.
881 * demangle.c: Change all references to cfront to ARM, since the
882 actual algorithm is the one specified in the Annotated Reference
883 Manual. This was confusing users into thinking that full cfront
884 support was implemented.
885 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
886 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
887 directly to lookup_struct_elt_type, which will do the
888 dereferencing itself.
889 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
890 NULL dereferencing bug for unnamed structs, comment out
891 questionable code.
892
fefe2ed9
JG
893Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
894
1d9449ab
JG
895 * coffread.c (process_coff_symbol): Change PCC argument correction
896 so that it only happens on big-endian targets; so that it only
897 happens if the short or char argument is aligned on an int
898 boundary; and so that it changes the location, rather than the
899 type, of the argument. These changes tend to parallel similar
900 (old) changes in stabsread.c.
901
902 * coffread.c (coff_read_enum_type): Use the specified size for
903 enums, don't assume that they are int-sized.
904
905 * c-valprint.c (c_val_print): Don't assume enums are the same as
906 ints.
907
fefe2ed9
JG
908 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
909 Rendell, <michael@mercury.cs.mun.ca>.
910
58a66e24
FF
911Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
912
913 * language.h (local_decimal_format_custom): Add prototype.
914 * language.c (local_decimal_format_custom): Add function, bug
915 reported by Robert R. Henry (rrh@tera.com).
916
9116f7c7
JG
917Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
918
919 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
920 by Josef Leherbauer, joe@takeFive.co.at.
921
922Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
923
924 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
925 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
926 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
927 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
928 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
929 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
930 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
931 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
932
8fbdca53
FF
933Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
934
f31e2e7a
FF
935 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
936 of demangled name fields to NULL if no demangling exists for
937 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
938 symbols if their language is known at the time they are created,
939 but sometimes the language is not known until later.
940
8fbdca53
FF
941 **** start-sanitize-chill ****
942 * ch-typeprint.c (chill_print_type_base): Name changed to
943 chill_type_print_base to match pattern for C and C++ names.
944 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
945 to be consistent with other usages.
946 * ch-typeprint.c (chill_type_print_base): Add support for
947 printing Chill STRUCT types.
948 * ch-valprint.c: Include values.h.
949 * ch-valprint.c (chill_print_value_fields): New function and
950 prototype for printing Chill STRUCT values.
951 * ch-valprint.c (chill_val_print): Fix call to val_print_string
952 that was being called with two args instead of three.
953 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
954 to print Chill STRUCT values.
955 **** end-sanitize-chill ****
956
b12529c1
MW
957Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
958
959 * configure.in: added testsuite to configdirs.
960
c2dc518b
MS
961Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
962
963 * doc/stabs.texi: The `this' pointer is now known by the name
964 `this' instead of `$t'.
965
b6236d6e
FF
966Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
967
bb6e8fe6
FF
968 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
969 references of TAG_string_type DIEs in user defined types.
970 **** start-sanitize-chill ****
b6236d6e
FF
971 * ch-lang.c (chill_create_fundamental_type): Track compiler
972 change that now emits debugging info with the type long for Chill
973 longs.
bb6e8fe6 974 **** end-sanitize-chill ****
b6236d6e 975
c2a0f1cb
ILT
976Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
977
978 * remote-mips.c: New file; implements MIPS remote debugging
979 protocol.
980 * config/idt.mt: New file; uses remote-mips.c
981 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
982
983 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
984 floating point coprocessor.
985 (mips_push_dummy_frame): If not mips_fpu, don't save floating
986 point registers.
987 (mips_pop_frame): If not mips_fpu, don't restore floating point
988 registers.
989 (_initialize_mips_tdep): New function; let the user reset mips_fpu
990 variable.
991 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
992 mips_fpu, don't use fp0 as floating point return register.
993 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
994 registers.
995
bf3d2b75
MW
996Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
997
998 * gdb/testsuite: made modifications to testcases, etc., to allow
999 them to work properly given the reorganization of deja-gnu and the
1000 relocation of the testcases from deja-gnu to a "tool" subdirectory.
1001
19fa4a0a
MW
1002Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
1003
1004 * gdb/testsuite: Initial creation of gdb/testsuite.
1005 Migrated dejagnu testcases and support files for testing nm to
1006 gdb/testsuite from deja-gnu. These files were moved "as is"
1007 with no modifications. This migration is part of a major overhaul
1008 of dejagnu. The modifications to these testcases, etc., which
1009 will allow them to work with the new version of dejagnu will be
1010 made in a future update.
1011
cb46c402
JG
1012Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
1013
1014 * NEWS: Add reminders for next release.
1015
254dec35
ILT
1016Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
1017
1018 * mipsread.c (parse_lines): Correct check for files compiled with
1019 -g1.
1020
dba02c60
JG
1021Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
1022
1023 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
1024
c7cb1025 1025Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
1026
1027 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 1028 * README, NEWS: Update for release.
ead97959 1029
b9163d1a
SG
1030Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
1031
1032 * am29k-pinsn.c (print_insn): Minor nits with const.
1033 * am29k-tdep.c: More minor nits with arg types for
1034 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
1035
5e3d0ab0
JG
1036Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
1037
1038 * gcc.patch: Update for a different GCC (G++) bug.
1039 * main.c (print_gdb_version): Update copyright year to 1993.
1040 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
1041 conditionalize this file on it. FIXME, right way is to split
1042 these into two config files.
1043 (ATTACH_DETACH): Define for BSD 4.4
1044 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
1045 (U_REGS_OFFSET): Revise for 4.4.
1046 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
1047 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
1048 LONG_MAX into this file to avoid cpp "redefinition" warnings.
1049
add04f8b
RP
1050Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1051
1052 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
1053 caddr_t.
1054
c5c00171
JG
1055Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
1056
961ccde6
JG
1057 * c-lang.c (c_printstr): Bugfix for length==0 case.
1058
c5c00171
JG
1059 * c-lang.c (c_printstr): If a C string ends in a null, don't
1060 print the null.
1061
eece984d
SG
1062Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
1063
1064 * defs.h (STRCMP): Make it work for unsigned chars.
1065
ec4bf6a0
JG
1066Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
1067
1068 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
1069 * config/hp300bsd.mh (REGEX, REGEX1): Define.
1070 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
1071 define to kludge the large opcode table into two smaller tables,
1072 since GCC take exponential space to build the table. Lint.
1073 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
1074
0ae975ea
JG
1075Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
1076
be220da1
JG
1077 * Makefile.in (VERSION): Roll to 4.7.9.
1078 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
1079 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
1080 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
1081 * remote.c (alarm): Move declaration to global level, before
1082 first reference to it.
1083 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
1084 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
1085
8631194d
RP
1086Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
1087
fce7f2d9
RP
1088 * remote.c (readchar): forward declare alarm which otherwise looks
1089 like an undeclared variable to gcc.
1090
040b9597
RP
1091 * dbxread.c (process_one_symbol): cast enum value N_SO into int
1092 when comparing against an int. Avoids superfluous warning from
1093 vax ultrix 4.2 cc.
1094
9549404e
RP
1095 * inflow.c (set_sigint_trap): add cast to assignment from signal.
1096 Avoids superfluous warnings from some systems and/or compilers
1097 (like vax ultrix 4.2.)
1098
8631194d
RP
1099 * language.c (struct op_print unk_op_print_tab): use the enum
1100 values rather naked zeros as initializers. Avoids warnings from
1101 ultrix type compilers.
1102
f4ed8840
JG
1103Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
1104
1105 * Makefile.in (VERSION): Roll to 4.7.6.
1106 (SFILES_SUBDIR): Add 29k-share/udi_soc.
1107 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
1108 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
1109 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
1110 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
1111 (depend): Fix bug where nm-files in config files weren't noticed.
1112 (make-proto-gdb-1): Avoid changing directories while building new
1113 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
1114
7c622b41
JG
1115Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
1116
1117 * remote.c: Improve error recovery. Allow user to break out
1118 of initial connection attempt with INTERRUPT. Treat a timeout
1119 while waiting for remote packet like a retry, unless the remote
1120 side is actively running user code. Fix a few long printf_filtered's.
1121
1122 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
1123 trampoline symbols.
1124
1125 * buildsym.c (start_subfile): Allow null file name.
1126
e9916390
RP
1127Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
1128
1129 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
1130 expects a pointer to complaint rather than a complaint
1131 structure.
6d4ea3a5
RP
1132 (process_linenos): free the previously allocated subfile name,
1133 then allocate the new one from the heap.
e9916390 1134
256b4f37
SC
1135Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1136
1137 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
1138
e5eeaaf8
JG
1139Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
1140
256b4f37
SC
1141 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
1142 Previously, would bogusly index off the bottom of type_vector.
1143 (rs6000_builtin_type): Accept type number as argument.
1144 (read_type, case '-'): Handle negatives like any other type number.
1145
1146 * symfile.c (deduce_language_from_filename): Handle null name.
1147
015605c5
JG
1148 * mips-tdep.c (isa_NAN): Fix byte order dependency.
1149 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
1150 fixed by sato@sm.sony.co.jp.
1151
e5eeaaf8
JG
1152 * xcoffread.c (parmsym): Don't use an initializer to set up
1153 this struct symbol. Set it up in initialize_xcoffread.
1154 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
1155 works on real rs/6000 target with #ifndef FAKING_RS6000.
1156
dd469789
JG
1157Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
1158
1159 * stabsread.c (rs6000_builtin_type): Move function from
1160 xcoffread.c:builtin_type.
1161 * xcoffread.c (builtin_type): Move to stabsread. Remove
1162 IBM6000_HOST dependency. Move misplaced comments.
1163 (various): Change printf's to complaints.
1164 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
1165 objfile argument to read_type calls under #if 0.
1166 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
1167 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
1168 * Makefile.in: xcoffread.o is not built by default.
364c1151 1169 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
1170 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
1171 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
1172 IBM6000_TARGET.
1173
733a94e8
SG
1174Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
1175
1176 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
1177 VALUE_LVAL to be lval_memory so that we don't try to modify wild
1178 register numbers when user tries to modify elements in structs
1179 passed as arguments.
1180 * inflow.c (child_terminal_info): Move banner outside of system
1181 specific #ifdefs.
1182 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
1183 passes struct/union arguments by address.
1184
1185Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
1186
14b1f0d9 1187 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
1188 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
1189 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
1190 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
1191
79533adf
JG
1192Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
1193
1194 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
1195 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
1196
2368ffb6
ILT
1197Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
1198
1199 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
1200 cc debugging output.
1201
2a021f21
JG
1202Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
1203
1204 * stabsread.c (define_symbol): Complain about unrecognized names
1205 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
1206 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
1207 (read_cpp_abbrev): Don't use the class name as part of the
1208 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
1209 abbrevs. Inspired by Mike Tiemann.
1210 (read_tilde_fields): Comment. Remove ancient dead code.
1211 Remove erroneous but non-dead code. Simplify. Add complaints.
1212 (in general): Remove extraneous (parentheses) in return
1213 statements.
1214
c653bc6d
JG
1215Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
1216
931bf12a
JG
1217 * coffread.c (coff_lookup_type): Fix fencepost error reported
1218 by Art Berggreen, <arg@opal.acc.com>.
1219
c653bc6d 1220 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 1221 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
1222
1223 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
1224 test, which is apparently left over from when we used native
1225 include files and couldn't depend on the member names being there.
1226 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
1227
1228Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
1229
1230 * mipsread.c: Major overhaul to use new BFD symbol table reading
1231 routines. Now swaps information as it is needed, rather than
1232 swapping everything when the file is read.
1233
b076f024
JG
1234Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
1235
1236 * Makefile.in (TARDIRS): Add sparclite demo dir.
1237 (*.tab.c): Change dependency on Makefile to depend on
1238 Makefile.in, otherwise it always rebuilds after configuring.
1239 Force output *.tab.c file into current directory even in "make"
1240 versions that rewrite dependent file names used in command lines.
1241
1242 * TODO: Remove some things we did.
1243 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
1244 * os68k-xdep.c: Remove; useless file (os68k is a target only).
1245 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
1246 * symtab.h: Eliminate unnamed unions and structs.
1247
ad89bdfd
JG
1248Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
1249
1250 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 1251
ca5a72cd
JG
1252Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
1253
1254 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
1255 re-evaluating symbol pointers.
1256
9da75ad3
FF
1257Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
1258
1259 * c-exp.y (lcurly, rcurly): New nonterminals.
1260 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
1261 constructs.
1262 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
1263 made function static.
1264 * parse.c (struct funcall): Moved struct def from parser-defs.h.
1265 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
1266 * parse.c (start_arglist):
1267 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
1268 * parser-defs.h (struct funcall): Moved struct def to parse.c.
1269 * parser-defs.h (funcall_chain): Moved to parse.c.
1270 * printcmd.c (print_frame_nameless_args): Fix prototype.
1271 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
1272 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
1273 * valops.c (typecmp): Moved prototype from values.h.
1274 * value.h (typecmp): Moved prototype to valops.c, made static.
1275 **** start-sanitize-chill ****
1276 * ch-exp.y (yylex): Change way control sequences are disabled.
1277 **** end-sanitize-chill ****
1278
58bcc08c
JG
1279Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
1280
1281 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
1282
fee754c9
ILT
1283Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
1284
1285 * mipsread.c (upgrade_type): Build array types correctly, using
1286 create_range_type and create_array_type.
1287
7dc15bb7
JG
1288Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
1289
58bcc08c
JG
1290 * remote-nindy.c: Cleanup.
1291
1b6a2087
JG
1292 * infrun.c (wait_for_inferior): When rolling back the PC after
1293 a breakpoint, call write_pc so that NPC gets rolled back as well
1294 (for the 29K).
1295
d122f257
JG
1296 * blockframe.c (inside_entry_file, inside_main_func,
1297 inside_entry_func): PC of zero is always "bottom of stack".
1298
7dc15bb7
JG
1299 * printcmd.c (print_frame_args, print_frame_nameless_args):
1300 Let print_frame_nameless_args decide whether there are any,
1301 laying groundwork for possibly later printing 29K args for
1302 functions where we have tag words but no symbols.
1303
2b21d8aa
RP
1304Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1305
1306 * Makefile.in: fix GDB doc targets for new doc subdir structure
1307
07c2fa3e
JG
1308Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
1309
1310 * stack.c (parse_frame_specification): Parse as many arguments
1311 as there are (up to MAXARGS). Pass all of them in argc, argv
1312 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
1313 many there were, onto SETUP_ARBITRARY_FRAME.
1314 * tm-mips.h, tm-sparc.h: Corresponding changes.
1315 * mips-tdep.c, sparc-tdep.c: Ditto.
1316
6edd74ae
JG
1317Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
1318
1319 * hp300ux-nat.c: Update copyrights.
1320 * mipsread.c (parse_partial_symbols): Complain about block
1321 indexes that go backwards. Fix from Peter Schauer.
1322 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
1323 symbol-file that has no linkage symbols to be read.
1324 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
1325 from tm- file to xm-file, since they're host dependent.
1326 * valarith.c (value_binop): Typo.
797bc12b 1327
6edd74ae 1328Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
1329
1330 * sparclite/aload.c: Add copyleft.
1331 * sparclite/crt0.s: Add comment at beginning.
1332
2431d063
SC
1333Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1334
1335 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
1336 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
1337
d112a0c6
MT
1338Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
1339
7cb0f870
MT
1340 * values.c (value_headof): Fix typo in which VTBL and ARG were
1341 being confused for one another.
1342
a163ddec
MT
1343 * valops.c (typecmp): Now static.
1344
edf67bd1
MT
1345 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
1346 baseclass--we don't always inherit its virtual function table
1347 pointer.
1348
271e5030
MT
1349 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
1350 pointer correctly in case value_struct_elt moves it around.
1351
1352 * valops.c (typecmp): Now static. Also, now groks references
1353 better.
1354
d112a0c6 1355 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 1356 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 1357
3d9b9577
JG
1358Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
1359
ec68a93f
JG
1360 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
1361 to avoid "too much defining" error from native C compiler (!).
1362
3d9b9577
JG
1363 * Makefile.in (HFILES): Add typeprint.h.
1364 * typeprint.[ch]: Update copyrights.
1365
926d7800
JG
1366Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
1367
bdec39b3
JG
1368 * Makefile.in: Update to match doc/ subdir changes.
1369
92063c3e 1370 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
1371 * config/go32.mh: Remove nonexistent "native" support.
1372
2a770cac
JG
1373 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
1374 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1375 * m88k-tdep.c (next_insn): Lint, cleanup.
1376 (store_parm_word): Lint.
1377
926d7800
JG
1378 * README: Fix typo (reported by karl@hq.ileaf.com).
1379
2fcc38b8
FF
1380Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
1381
1382 * expression.h (BINOP_CONCAT): Document use for self concatenation
1383 an integral number of times.
1384 * language.c (binop_type_check): Extend BINOP_CONCAT for self
1385 concatenation case.
1386 * valarith.c (value_concat): Rewrite to support self
1387 concatenation an integral number of times.
1388 **** start-sanitize-chill ****
1389 * Makefile.in (ch-exp.tab.c): Change "expect" message.
1390 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
1391 eliminate hundreds of spurious shift/reduce and reduce/reduce
1392 conflicts that mask the 5 real ones.
1393 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
1394 * ch-exp.y (integer_literal_expression): Remove production,
1395 no longer used.
1396 **** end-sanitize-chill ****
1397
1398Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
1399
1400 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
1401 implied that "no side effects" was nonfunctional.
1402 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
1403 character string and bitstring concatenation.
1404 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
1405 * expression.h (exp_opcode): Add BINOP_CONCAT.
1406 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
1407 * language.c (string_type): Add function to determine if a type
1408 is a string type.
1409 * language.c (binop_type_check): Add case for BINOP_CONCAT.
1410 * valarith.c (value_concat): New function to concatenate two
1411 values, such as character strings or bitstrings.
1412 * valops.c (value_string): Remove error stub and implement
1413 function body.
1414 * value.h (value_concat): Add prototype.
1415 **** start-sanitize-chill ****
1416 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
1417 * ch-exp.y (yylex): Recognize SLASH_SLASH.
1418 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
1419 BINOP_CONCAT.
1420 **** end-sanitize-chill ****
1421
1422Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
1423
1424 * c-exp.y (exp): Add production to support direct creation
1425 of array constants using the obvious syntax.
1426 * c-valprint.c (c_val_print): Set printed string length.
1427 * dwarfread.c (read_tag_string_type): New prototype and
1428 function that handles TAG_string_type DIEs.
1429 * dwarfread.c (process_dies): Add case for TAG_string_type
1430 that calls new read_tag_string_type function.
1431 * expprint.c (print_subexp): Add support for OP_ARRAY.
1432 * gdbtypes.c (create_range_type, create_array_type): Inherit
1433 objfile from the index type.
1434 **** start-sanitize-chill ****
1435 * ch-typeprint.c (chill_print_type): Add case for
1436 TYPE_CODE_STRING.
1437 * ch-valprint.c (chill_val_print): Fix case for
1438 TYPE_CODE_STRING.
1439 **** end-sanitize-chill ****
1440
201c1243
ILT
1441Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
1442
1443 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
1444 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
1445 include/coff/mips.h.
1446
c4413e2c
FF
1447Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
1448
1449 * c-exp.y (exp:STRING): Convert C strings into array-of-char
1450 constants with an explicit null byte terminator. OP_STRING is
1451 now used for real string types.
1452 * c-lang.c (builtin_type_*): Move declarations to lang.c since
1453 they are used by all languages.
1454 * c-lang.c (_initialize_c_language): Move initializations of
1455 builtin_type_* to lang.c.
1456 * c-typeprint.c (c_type_print_varspec_prefix,
1457 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
1458 to TYPE_CODE_STRING.
1459 * c-valprint.c (c_val_print): Change the way character arrays
1460 are printed as strings to be consistent with the way strings
1461 are printed when pointer-to-char types are dereferenced.
1462 Remove test of print_max before calling val_print_string, which
1463 now does it's own test.
1464 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
1465 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
1466 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
1467 * gdbtypes.c (builtin_type_*): Add declarations moved from
1468 c-lang.c.
1469 * gdbtypes.c (create_string_type): New function to create real
1470 string types.
1471 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
1472 renamed to TYPE_CODE_STRING.
1473 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
1474 builtin_type_* types moved from c-lang.c.
1475 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
1476 to TYPE_CODE_STRING.
1477 * gdbtypes.h (builtin_type_string): Add extern declaration.
1478 * gdbtypes.h (create_string_type): Add prototype.
1479 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
1480 renamed to TYPE_CODE_STRING.
1481 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
1482 TYPE_CODE_STRING.
1483 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
1484 renamed to TYPE_CODE_STRING.
1485 * parse.c (length_of_subexp, prefixify_subexp): Add case for
1486 OP_ARRAY.
1487 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
1488 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
1489 to TYPE_CODE_STRING.
1490 * valops.c (allocate_space_in_inferior): New function and
1491 prototype, using code ripped out of value_string.
1492 * valops.c (value_string): Rewritten to use new function
1493 allocate_space_in_inferior, but temporarily disabled until some
1494 other support is in place.
1495 * valops.c (value_array): New function to create array constants.
1496 * valprint.c (val_print_string): Add comment to document use,
1497 complete rewrite to fix several small buglets.
1498 * value.h (value_array): Add prototype.
1499 * value.h (val_print_string): Change prototype to match rewrite.
1500 **** start-sanitize-chill ****
1501 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
1502 * ch-exp.y (match_character_literal): Disable recognition of
1503 control sequence form of character literals and document why.
1504 **** end-sanitize-chill ****
1505
6d1e8f54
SG
1506Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
1507
1508 * nindy-share/nindy.c: Add comments to #endif's to clarify
1509 grouping.
1510
1511 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
1512 read_memory to get byte order right.
1513 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
1514 anymore. This is done in paread.c now. We expect unwind info
1515 to hang off of objfiles, and search all of the objfiles when until
1516 we find a match.
1517 * (skip_trampoline_code): Cast arg to target_read_memory.
1518 * objfiles.h (struct objfile): Add new field obj_private to hold
1519 per object file private data (unwind info in this case).
1520 * paread.c (read_unwind_info): New routine to read unwind info
1521 for the objfile. This data is hung off of obj_private.
1522 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
1523 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
1524 make this easier to access.
1525
c7da3ed3
FF
1526Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
1527
1528 * c-valprint.c (cp_print_class_member): Add extern decl.
1529 * c-valprint.c (c_val_print): Extract code for printing methods
1530 and move it to cp_print_class_method in cp-valprint.c.
1531 * c-valprint.c (c_val_print): Extract code to print strings and
1532 move it to val_print_string in valprint.c.
1533 * cp-valprint.c (cp_print_class_method): New function using
1534 code extracted from c_val_print.
1535 * valprint.c (val_print_string): New function using code
1536 extracted from c_val_print.
1537 * value.h (val_print_string): Add prototype.
1538 **** start-sanitize-chill ****
1539 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
1540 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
1541 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
1542 CHECKBUF, growbuf_by_size): New variables, macros, and support
1543 functions for implementing a dynamically expandable temp buffer.
1544 * ch-exp.y (match_string_literal): New lexer function.
1545 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
1546 removed and replaced with new CHECKBUF macro.
1547 * ch-exp.y (yylex): Call match_string_literal when appropriate.
1548 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
1549 **** end-sanitize-chill ****
1550
0213d96f
SG
1551Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
1552
78205fb6
SG
1553 * Makefile.in: Add info for paread.o.
1554 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
1555
0213d96f
SG
1556 * blockframe.c (frameless_look_for_prologue): Correct the
1557 comment.
1558 * gdbtypes.h, gdbtypes.c: Use const in decl of
1559 cplus_struct_default, now that pa-gas assembler has been fixed.
1560 * hppah-nat.c: Formatting.
1561 * hppah-tdep.c: Remove lots of useless externs for variables we
1562 don't use.
1563 * (find_unwind_entry): Speed up by using binary search, and a one
1564 entry cache.
1565 * (rp_saved): New routine to see what unwind info says about RP
1566 being saved on the stack frame.
1567 * (frame_saved_pc): Look for prologue to see if we need to
1568 examine the stack for the saved RP or not.
1569 * (init_extra_frame_info): Check for prologue, instead of
1570 framesize to determine if we are frameless or not.
1571 * (frame_chain_valid): Stop backtraces when we run into _start.
1572 * (push_dummy_frame): Reformat to make more readable.
1573 * (find_dummy_frame_regs): ditto.
1574 * (hp_pop_frame): ditto.
1575 * (hp_restore_pc_queue): small cleanup.
1576 * (hp_push_arguments): ditto.
1577 * (pa_do_registers_info): ditto.
1578 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
1579 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
1580 * Define FRAME_CHAIN_VALID.
1581 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
1582 passed to functions.
1583
1584 * paread.c (pa_symtab_read): Use new bfd conventions for
1585 accessing linker symbol table.
1586 * (pa_symfile_init): Access embedded STAB info via BFD section
1587 mechanism and related macros.
1588
1589
bfc55a5d
SG
1590Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
1591
1592 * sparc-stub.c: Use a seperate stack for our traps.
1593 * Handle recursive traps.
1594 * Remove all trap init code. This needs to be done by the
1595 environment.
1596 * (set_mem_fault_trap): Call exceptionHandler() to setup this
1597 trap.
1598 * (handle_exception): See if we are at breakinst, if so, then
1599 advance PC sp that users can just step out of breakpoint().
1600 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
1601 new place if SP has changed.
1602 * (case 's'): Get rid of this, we can't do it yet.
1603 * (case 't'): New command to test any old random feature.
1604 * (case 'r'): New command to reset the system.
1605 * (breakpoint): Add label to breakpoint trap instruction so that
1606 handle_exception() can detect where we are and get past the
1607 breakpoint trivially.
1608
f92743ae
ILT
1609Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
1610
1611 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
1612
bfc55a5d
SG
1613Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1614
1615 * configure.in: recognise all sparclite variants
1616
f92743ae
ILT
1617Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1618
1619 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
1620 binary files oring in the right bit.
1621
1622 * main.c, source.c, state.c, symmisc.c: use macros defined in
1623 fopen-{bin|both} when fopening files.
1624
81028ab0
FF
1625Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
1626
1627 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
1628 from a configuration file (typically including <limits.h>), or to
1629 TARGET_CHAR_BIT if CHAR_BIT is not defined.
1630 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
1631 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
1632 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
1633 * exppritn.c (print_subexp, dump_expression): Add case for
1634 OP_BITSTRING.
1635 * expression.h (OP_BITSTRING): New expression element type for
1636 packed bitstrings.
1637 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
1638 macros to convert between number of expression elements and bytes
1639 to store that many elements.
1640 * i960-tdep.c (leafproc_return): Use new macros to access
1641 minimal symbol name and address fields.
1642 * m88k-pinsn.c (sprint_address): Use new macros to access
1643 minimal symbol name and address fields.
1644 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
1645 minimal symbol address field.
1646 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
1647 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
1648 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
1649 Use new BYTES_TO_EXP_ELEM macro.
1650 * parse.c (write_exp_bitstring): New function to write packed
1651 bitstrings into the expression element vector.
1652 * parse.c (length_of_subexp, prefixify_subexp): Add case for
1653 OP_BITSTRING.
1654 * parser-defs.h (struct stoken): Document that it is used for
1655 OP_BITSTRING as well as OP_STRING.
1656 * parser-defs.h (write_exp_bitstring): Add prototype.
1657 **** start-sanitize-chill ****
1658 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
1659 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
1660 LOWER, LENGTH): New tokens for keywords.
1661 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
1662 upper_lower_argument, length_argument, array_mode_name,
1663 string_mode_name, variant_structure_mode_name): New non-terminals
1664 and productions.
1665 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
1666 * ch-exp.y (match_bitstring_literal): New lexer support function
1667 to recognize bitstring literals.
1668 * ch-exp.y (tokentab6): New token table for 6 character keywords.
1669 * ch-exp.y (tokentab5): Add LOWER, UPPER.
1670 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
1671 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
1672 * ch-exp.y (yylex): Check tokentab6.
1673 * ch-exp.y (yylex): Call match_bitstring_literal.
1674 **** end-sanitize-chill ****
1675
76a0ffb4
FF
1676Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
1677
2eda1cdf
FF
1678 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
1679 symbol name and value fields.
1680
533d1dc7
FF
1681 * c-exp.y (yylex): Make static, to match prototype and other
1682 <lang>-exp.y files.
1683
76a0ffb4
FF
1684 * expression.h (exp_opcode): Add BINOP_MOD.
1685 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
1686 * expprint.c (dump_expression): Handle new BINOP_MOD.
1687 * language.c (binop_type_check): Handle new BINOP_MOD.
1688 * main.c (float_handler): Re-enable float handler when hit.
1689 * valarith.c (language.h): Include, need current_language.
1690 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
1691 for integer divide truncates towards zero for negative results.
1692 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
1693 * valarith.c (value_binop): Allow arithmetic operations on
1694 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
1695 **** start-sanitize-chill ****
1696 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
1697 * ch-exp.y (tokentab3): Add MOD and REM.
1698 * ch-exp.y (yylex): Set innermost_block for symbols found
1699 in local scopes. Return LOCATION_NAME for local symbols.
1700 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
1701 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
1702 **** end-sanitize-chill ****
1703
f92743ae
ILT
1704Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
1705
1706 * command.c (shell_escape, make_command, _initialize_command):
1707 don't create or use fork if CANT_FORK is defined.
1708 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
1709 code written for the IBM PC" remain.
1710 * xm-go32.h: define CANT_FORK
1711
ec25d19b
SC
1712Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1713
1714 * remote-sim.c: first attempt at general simulator interface
1715 * remote-hms.c: whitespace
1716 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
1717 understand new stack layout. (print_register_hook): print ccr
1718 register in a fancy way.
1719
fb6e675f
FF
1720Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
1721
1722 * eval.c (language.h): Include.
1723 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
1724 to pointer types when the current language is C. It loses for
1725 other languages when the lower index bound is nonzero.
1726 * valarith.c (value_subscript): Take array lower bounds into
1727 account when performing subscripting operations.
1728 * valops.c (value_coerce_array): Add comment describing why
1729 arrays with nonzero lower bounds are dealt with in value_subscript,
1730 rather than in value_coerce_array.
1731
54bbbfb4
FF
1732Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
1733
1188fbbf
FF
1734 **** start-sanitize-chill ****
1735 * ch-exp.y (FLOAT_LITERAL): Add token.
1736 * ch-exp.y (literal): Add FLOAT_LITERAL.
1737 * ch-exp.y (match_float_literal): New lexer routine.
1738 * ch-exp.y (convert_float): Remove.
1739 * ch-exp.y (yylex): Call match_float_literal.
1740 * ch-exp.y (yylex): Match single '.' after trying
1741 to match floating point literals.
1742 **** end-sanitize-chill ****
1743
54bbbfb4
FF
1744 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
1745 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
1746 MULTI_SUBSCRIPT.
1747 * expprint.c (dump_expression): New function for dumping
1748 expression vectors during gdb debugging.
1749 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
1750 MULTI_SUBSCRIPT and moved out of BINOP range.
1751 * expression.h (DUMP_EXPRESSION): New macro that calls
1752 dump_expression if DEBUG_EXPRESSIONS is defined.
1753 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
1754 * parse.c (length_of_subexp, prefixify_subexp): Change
1755 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
1756 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
1757 prefixify'ing the expression.
1758 * printcmd.c (print_command_1): Add comment.
1759 **** start-sanitize-chill ****
1760 * ch-exp.y (expression_list): Add useful actions.
1761 * ch-exp.y (value_array_element): Add useful actions.
1762 * ch-exp.y (array_primitive_value): Add production.
1763 * ch-exp.y (yylex): Recognize ',' as a token.
1764 **** end-sanitize-chill ****
1765
ea81b10d
DZ
1766Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1767
1768 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
1769 POSIXize the recursive makes (make [variable assignments] target{s})
1770
7532cf10
FF
1771Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
1772
1773 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
1774 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
1775 CPLUS_MARKER for all SVR4 systems, so follow suit.
1776 * defs.h (strdup_demangled): Remove prototype.
1777 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
1778 SYMBOL_INIT_LANGUAGE_SPECIFIC.
1779 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
1780 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
1781 prim_record_minimal_symbol_and_info): Use new macro
1782 SYMBOL_INIT_LANGUAGE_SPECIFIC.
1783 * minsyms.c (install_minimal_symbols): Use new macro
1784 SYMBOL_INIT_DEMANGLED_NAME.
1785 * stabsread.c (define_symbol): Use new macro
1786 SYMBOL_INIT_DEMANGLED_NAME.
1787 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1788 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
1789 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
1790 SYMBOL_INIT_DEMANGLED_NAME.
1791 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
1792 SYMBOL_DEMANGLED_NAME now tests language itself.
1793 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
1794 now tests language itself.
1795 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
1796 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
1797 mangled name member in the language dependent portion of a symbol.
1798 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
1799 mangled name member appropriate for a symbol's language.
1800 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
1801 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
1802 SYMBOL_DEMANGLED_NAME now tests language itself.
1803 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
1804 initializes language dependent portion of symbol.
1805 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
1806 demangles and caches the demangled form of symbol names.
1807 * utils.c (fputs_demangled, fprint_symbol): Use current language
1808 to select an appropriate demangling algorithm.
1809 * utils.c (strdup_demangled): Remove, no longer used.
1810 **** start-sanitize-chill ****
1811 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
1812 access the Chill mangled name member in the language dependent
1813 portion of a symbol.
1814 * ch-lang.c (chill_demangle): New function, simple demangler.
1815 * defs.h (chill_demangle): Add prototype.
1816 * symtab.h (language_dependent_info): Add struct for Chill.
1817 **** end-sanitize-chill ****
1818
19d0f3f4
FF
1819Thu Dec 31 11:06:38 1992 Fred Fish (fnf@cygnus.com)
1820
1821 * Makefile.in (BISON): Add comment that when bison is used, it
1822 must include the "-y" option.
1823 * c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
1824 Remove defines to remap non-yacc symbols, thus backing out of
1825 previous recent changes. Standard policy is that non-yacc parser
1826 generators get fixed, rather than adding bug workarounds in gdb
1827 for each new one that pops up. Expand comment to note this.
1828 * c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
1829
684a832f
SG
1830Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
1831
8a1c3e99
SG
1832 * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
1833 case. Use code in N_SOL.
1834
684a832f
SG
1835 * paread.c: New file that contains all HPPA/HPUX symbol reading
1836 code.
1837 * dbxread.c: Remove almost all HPPA/HPUX symbol reading code.
1838 * (dbx_symfile_init): Use sizeof(long) instead of 4.
1839 * (dbx_symfile_offsets): Make static.
1840 * (pastab_build_psymtabs): New interface routine for paread to
1841 send stabs into dbxread.
1842 * gdb-stabs.h: Remove gobs of HPPA cruft.
1843
45fe3db4
FF
1844Wed Dec 30 19:47:13 1992 Fred Fish (fnf@cygnus.com)
1845
cbf5231b
FF
1846 * c-exp.y, m2-exp.y (yyrule, yyname): Remap like other yy* names
1847 for byacc.
1848 **** start-sanitize-chill ****
1849 * ch-exp.y (yyrule, yyname): Remap like other yy* names for byacc.
1850 **** end-sanitize-chill ****
1851
45fe3db4
FF
1852 * c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
1853 * c-exp.y, m2-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
1854 and YYDEBUG is not already defined.
1855 * c-exp.y (strncmp): Replace throughout with STREQN, missed
1856 them during the previous replacements.
1857 * printcmd.c (_initialize_printcmd): Update internal documentation
1858 for "set" command to note that the assignment syntax is language
1859 dependent.
1860 **** start-sanitize-chill ****
1861 * ch-exp.y (yyreds, yytoks): Remap like other yy* names.
1862 * ch-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
1863 and YYDEBUG is not already defined.
1864 * ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
1865 single_assignment_action): New terminals and nonterminal for gdb
1866 extensions to chill expression grammer.
1867 * ch-exp.y (match_dollar_tokens): Lexer routine to match all
1868 tokens that start with '$' (register names, convenience vars, etc).
1869 * ch-exp.y (tokentab2): Add GDB_ASSIGNMENT.
1870 * ch-exp.y (yylex): Call match_dollar_tokens.
1871 **** end-sanitize-chill ****
1872
b5c10493
SG
1873Mon Dec 28 15:00:01 1992 Stu Grossman (grossman at cygnus.com)
1874
b8ef8163
SG
1875 * hppah-tdep.c (skip_trampoline_code): Use new macros for
1876 accessing minimal symbol data.
1877 * infcmd.c (read_pc): Use #ifdef, not #if.
1878 * symfile.c (syms_from_objfile): Add CONST to decl for targets.
1879 * tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
1880 minimal symbol data.
1881
b5c10493
SG
1882 * hppah-tdep.c (frame_saved_pc): Use better test for outermost
1883 frame. Use find_return_regnum to find the caller.
1884 * (find_unwind_entry): New routine to locate stack frame info
1885 associated with a procedure. This looks in the $UNWIND_START$
1886 section in the SOM file.
1887 * (find_return_regnum): New routine. Uses find_unwind_entry() to
1888 figure out where the caller's return address is stored.
1889 * (find_proc_framesize): New routine. Uses find_unwind_entry()
1890 to figure out the frame size for a procedure.
1891 * (saved_pc_after_call): New routine, moved from tm-hppa.h.
1892 * (init_extra_frame_info): New routine. Corrects PC and FP for
1893 outermost frame if necessary.
1894 * (frame_chain): New routine, moved from tm-hppa.h.
1895 * (skip_trampoline_code): Handle computed function calls (ie:
1896 calls from $$dyncall).
1897 * (unwind_command): Temporary support function to allow user
1898 to control/observe aspects of the unwind (stack frame) info.
1899 * infcmd.c (read_pc): (Temporary), put a hack in to see if the PC
1900 was in a system call, if so, then read the PC from r31.
1901 * tm-hppah.h (SKIP_TRAMPOLINE_CODE, IN_SOLIB_TRAMPOLINE): Deal
1902 with extra arg for skip_trampoline_code().
1903 * (INIT_EXTRA_FRAME_INFO): Define to point at subr (see above).
1904 * (FRAME_CHAIN, FRAME_CHAIN_VALID): Turn into real subroutines.
1905 * tm-hppa.h (SAVED_PC_AFTER_CALL): Turn into real subroutine.
1906
51db2323
FF
1907Sun Dec 27 17:34:15 1992 Fred Fish (fnf@cygnus.com)
1908
1909 * dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
1910 Call new bfd_get_size() and verify that string table is no larger
1911 than the file that is supposed to contain it.
1912 * symfile.c (syms_from_objfile): Only complain about configured
1913 NAMES_HAVE_UNDERSCORE differences between gdb and bfd if the
1914 current target is the default BFD target.
1915
1169c958
FF
1916Sat Dec 26 20:51:41 1992 Fred Fish (fnf@cygnus.com)
1917
1918 * solib.c (BKPT_AT_MAIN): Change to BKPT_AT_SYMBOL.
1919 * solib.c (bkpt_names): New array of symbol names to try to
1920 use for the "mapping complete" breakpoint. Configurable
1921 define SOLIB_BKPT_NAME is first one to try.
1922 * solib.c (find_solib): Test debug_base for nonzero rather
1923 than just greater than zero.
1924 * solib.c (enable_break): Use bkpt_names to look up address
1925 at which to set "mapping complete" breakpoint.
1926
2e4964ad
FF
1927Tue Dec 22 20:33:38 1992 Fred Fish (fnf@cygnus.com)
1928
1929 * defs.h (STRCMP, STREQ, STREQN): New macros.
1930 * defs.h (demangle_and_match): Remove prototype.
1931 * dwarfread.c (STREQ, STREQN): Remove macros, replaced with STREQ
1932 and STREQN defined in defs.h.
1933 * dwarfread.c (set_cu_language): For completely unknown languages,
1934 try to deduce the language from the filename. Retain behavior
1935 that for known languages we don't know how to handle, we use
1936 language_unknown.
1937 * dwarfread.c (enum_type, symthesize_typedef): Initialize language
1938 and demangled name fields in symbol.
1939 * dwarfread.c, mipsread.c, partial-stab.h: For all usages of
1940 ADD_PSYMBOL_TO_LIST, add language and objfile parameters.
1941 * dwarfread.c (new_symbol): Attempt to demangle C++ symbol names
1942 and cache the results in SYMBOL_DEMANGLED_NAME for the symbol.
1943 * elfread.c (STREQ): Remove macro, use STREQ defined in defs.h.
1944 Replace usages throughout.
1945 * elfread.c (demangle.h): Include.
1946 * elfread.c (record_minimal_symbol): Remove prototype and function.
1947 * gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES,
1948 B_CLRALL): Moved from symtab.h to gdbtypes.h.
1949 * infcmd.c (jump_command): Remove code to demangle name and add
1950 it to a cleanup list. Now just use SYMBOL_DEMANGLED_NAME.
1951 * minsyms.c (demangle.h): Include.
1952 * minsyms.c (lookup_minimal_symbol): Indent comment to match code.
1953 * minsyms.c (install_minimal_symbols): Attempt to demangle symbol
1954 names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME.
1955 * mipsread.c (psymtab_language): Add static variable.
1956 * stabsread.c (demangle.h): Include.
1957 * stabsread.c (define_symbol): Attempt to demangle C++ symbol
1958 names and cache them in the SYMBOL_DEMANGLED_NAME field.
1959 * stack.c (return_command): Remove explicit demangling of name
1960 and use of cleanups. Just use SYMBOL_DEMANGLED_NAME.
1961 * symfile.c (demangle.h): Include.
1962 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Fix
1963 to match macros in symfile.h and allow them to be compiled
1964 if INLINE_ADD_PSYMBOL is not true.
1965 * symfile.h (INLINE_ADD_PSYMBOL): Default to true if not set.
1966 * symfile.h (ADD_PSYMBOL_*): Add language and objfile parameters.
1967 Add code to demangle and cache C++ symbol names. Use macro form
1968 if INLINE_ADD_PSYMBOL is true, otherwise use C function form.
1969 * symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1970 Remove, also defined in symfile.c, which we already fixed.
1971 * symtab.c (expensive_mangler): Remove prototype and function.
1972 * symtab.c (find_methods): Remove physnames parameter and fix
1973 prototype to match.
1974 * symtab.c (completion_list_add_symbol): Name changed to
1975 completion_list_add_name.
1976 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): New macro, adds both
1977 the normal symbol name and the cached C++ demangled name.
1978 * symtab.c (lookup_demangled_partial_symbol,
1979 lookup_demangled_block_symbol): Remove prototypes and functions.
1980 * symtab.c (lookup_symbol): Remove use of expensive_mangler,
1981 use lookup_block_symbol instead of lookup_demangled_block_symbol.
1982 Remove code to try demangling names and matching them.
1983 * symtab.c (lookup_partial_symbol, lookup_block_symbol):
1984 Fix to try matching the cached demangled name if no match is
1985 found using the regular symbol name.
1986 * symtab.c (find_methods): Remove unused physnames array.
1987 * symtab.c (name_match, NAME_MATCH): Remove function and macro,
1988 replaced with SYMBOL_MATCHES_REGEXP from symtab.h.
1989 * symtab.c (completion_list_add_symbol): Rewrite to use cached
1990 C++ demangled symbol names.
1991 * symtab.h: Much reformatting of structures and such to add
1992 whitespace to make them more readable, and make them more
1993 consistent with other gdb structure definitions.
1994 * symtab.h (general_symbol_info): New struct containing fields
1995 common to all symbols.
1996 * symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME,
1997 SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME,
1998 SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE): New macros.
1999 * symtab. (struct minimal_symbol, struct partial_symbol, struct
2000 symbol): Use general_symbol_info struct.
2001 * utils.c (demangle_and_match): Remove, no longer used.
2002 * valops.c (demangle.h): Include.
2003 * xcoffexec.c (eq): Remove macro, replace usages with STREQ.
2004 * blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c,
2005 infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c,
2006 symmisc.c, symtab.c, valops.c: Replace references to minimal
2007 symbol fields with appropriate macros.
2008 * breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c,
2009 coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c,
2010 demangle.c, elfread.c, energize.c, environ.c, exec.c,
2011 gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c,
2012 main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c,
2013 remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c,
2014 sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c,
2015 symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h,
2016 tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c: Replace strcmp
2017 and strncmp usages with STREQ, STREQN, or STRCMP as appropriate.
2018 * breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c,
2019 mipsread.c, printcmd.c, source.c, stabsread.c, stack.c,
2020 symmisc.c, tm-29k.h, valops.c, values.c: Replace SYMBOL_NAME
2021 references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as
2022 appropriate.
2023 * buildsym.c (start_subfile, patch_subfile_names): Default the
2024 source language to what can be deduced from the filename.
2025 * buildsym.c (end_symtab): Update the source language in the
2026 allocated symtab to match what we have been using.
2027 * buildsym.h (struct subfile): Add a language field.
2028 * c-typeprint.c (c_print_type): Remove code to do explicit
2029 demangling.
2030 * dbxread.c (psymtab_language): Add static variable.
2031 * dbxread.c (start_psymtab): Initialize psymtab_language using
2032 deduce_language_from_filename.
2033
a9b37611
FF
2034Mon Dec 21 22:24:33 1992 Fred Fish (fnf@cygnus.com)
2035
2036 * valprint.c (val_print): Reorganize comment and add note
2037 about dependency on target byte ordering.
2038 **** start-sanitize-chill ****
2039 * ch-exp.y (value_array_slice): Fix typo.
2040 * ch-valprint.c (chill_val_print): Remove C'ism that arrays of
2041 byte sized ints are assumed to be char strings and printed with
2042 string syntax. In chill, arrays of chars and arrays of
2043 bytes/ubytes are distinquishable, and printed appropriately.
2044 **** end-sanitize-chill ****
2045
9f739abd
SG
2046Mon Dec 21 18:02:35 1992 Stu Grossman (grossman at cygnus.com)
2047
e5e6b6b1
SG
2048 * tm-hppah.h: #define NEED_TEXT_START_END for target memory
2049 read/write routines for HPUX.
2050
9f739abd
SG
2051 * hppa-pinsn.c (print_insn): Improve handling of be and ble
2052 branch targets to compute target address using const from previous
2053 instruction if necessary.
2054 * Add `Q' operator to print out bit position field various
2055 instructions.
2056 * hppah-nat.c: #include sys/param.h, and sys/user.h. General
2057 cleanups, use new code from Utah.
2058 * (store_inferior_registers): Update to new code from Utah.
2059 * (initialize_kernel_u_addr): Re-enable decl of struct user u.
2060 * (fetch_register): Clear out priv level when reading PCs.
2061 * hppah-tdep.c: Get rid of gobs of KERNELDEBUG stuff.
2062 * Remove decl of errno, #include wait.h and target.h.
2063 * (frame_saved_pc): Check `flags' pseudo-register to see if we
2064 were inside of a kernel call. If so, then PC is in a different
2065 register. Also, mask out bottom two bits of all PCs so as not to
2066 confuse higher level code.
2067 * (push_dummy_frame): Create from #define in tm-hppa.h.
2068 * (find_dummy_frame_regs): Update from Utah.
2069 * (hp_pop_frame): Create from #define in tm-hppa.h.
2070 * (hp_restore_pc_queue): New, from Utah.
2071 * (hp_push_arguments): Big fixes from Utah.
2072 * (pa_do_registers_info, pa_print_registers): Only print out fp
2073 regs upon request.
2074 * (skip_trampoline_code): New routine to deal with stubs that
2075 live in nowhereland between callers and callees.
2076 * i860-tdep.c: Remove decl of attach_flag.
2077 * infrun.c (wait_for_inferior): Add new macro
2078 INSTRUCTION_NULLIFIED, which can tell if the instruction pointed
2079 at by PC will be nullified. If so, then step the target once more
2080 so as to avoid confusing the user.
2081 * (just before step_over_function:): Use stop_func_start, not
2082 stop_pc when checking for the existance of line number info.
2083 stop_func_start will reflect the proper address of the target
2084 routine, not of the stub that we may be traversing to get there.
2085 * tm-hppa.h: define SKIP_TRAMPOLINE_CODE and IN_SOLIB_TRAMPOLINE
2086 to deal with the stubs that PA compilers sometimes stick between
2087 callers and callees. Also, define FLAGS_REGNUM for access to the
2088 `flags' pseudo-reg.
2089 * (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use
2090 memcpy, not bcopy.
2091 * (CANNOT_STORE_REGISTER): New from Utah. Says that we can't
2092 write gr0, PC regs, and PSW!
2093 * (FRAME_FIND_SAVED_REGS): Bug fixes from Utah.
2094 * (PUSH_DUMMY_FRAME, POP_FRAME): Make into real routines in
2095 hppah-nat.c.
2096 * (CALL_DUMMY, FIX_CALL_DUMMY): Fixes from Utah.
2097 * Define struct unwind_table_entry.
2098 * valops.c (call_function_by_hand): Add another arg to
2099 FIX_CALL_DUMMY (under #ifdef GDB_TARGET_IS_HPPA). Why is this
2100 necessary?
2101
5998e362
DZ
2102Mon Dec 21 02:17:57 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2103
2104 * remote-vx.c: remove include of "symfile.h", replace it with "complaints.h"
2105
a8a69e63
FF
2106Fri Dec 18 10:32:25 1992 Fred Fish (fnf@cygnus.com)
2107
2108 * Makefile.in (VERSION): Bump to 4.7.4.
2109 * Makefile.in (SFILES_MAINDIR): Add typeprint.c, c-typeprint.c,
2110 m2-typeprint.c, c-valprint.c cp-valprint.c m2-valprint.c.
2111 * Makefile.in (HFILES): Add valprint.h.
2112 * Makefile.in (OBS): Add typeprint.o, c-typeprint.o,
2113 m2-typeprint.o, c-valprint.o, cp-valprint.o m2-valprint.o.
2114 * typeprint.c, typeprint.h: New files for language independent
2115 type printing functions.
2116 * c-typeprint.c, m2-typeprint.c: New files for language dependent
2117 type printing functions and definitions.
2118 * valprint.h: New include file for language independent value
2119 printing definitions.
2120 * c-valprint.c, cp-valprint.c, m2-valprint.c: New files for language
2121 dependent value printing functions.
2122 * c-exp.y (production ptype): Add range_type variable and use new
2123 create_range_type function.
2124 * c-exp.y (tokentab2, tokentab3), c-lang.c (c_op_print_tab),
2125 infcmd.c (path_var_name), language.c (unk_op_print_tab),
2126 m2-lang.c (m2_op_print_tab): Change from ANSI-obsolescent
2127 "const static" to ANSI-conformant "static const".
2128 * c-exp.y (c_create_fundamental_type): Remove unused nbytes.
2129 * c-exp.y (c_language_defn, cplus_language_defn): Add c_print_type,
2130 and c_val_print.
2131 * c-lang.h (c_print_type, c_val_print): Add prototypes.
2132 * coffread.c (decode_type): Add range_type variable and call to
2133 new create_range_type function.
2134 * complaints.c (complain): Remove unused val variable.
2135 * complaints.c (_initialize_complaints): Make it void.
2136 * convex-tdep.c (value_of_trapped_internalvar): Add range_type
2137 variable and call new create_range_type function.
2138 * defs.h (enum val_prettyprint): Move enum from value.h to here
2139 so we can avoid having to include value.h just for prototypes that
2140 need the enum (thanks ANSI).
2141 * dwarfread.c (struct_type): Local anonymous_size variable is
2142 only used if !BITS_BIG_ENDIAN.
2143 * dwarfread.c (decode_subscript_data_item): Add rangetype
2144 variable and call new create_range_type function.
2145 * elfread.c (elf_symfile_read): Remove unused dbx and text_sect
2146 variables.
2147 * eval.c (evaluate_subexp): Remove unused local variable name
2148 and the statement with no side effects that initializes it.
2149 * expprint.c (print_subexp): Change local_printstr to
2150 LA_PRINT_STRING.
2151 * gdbtypes.c (create_range_type): New function that creates
2152 a range type using code fragments from object file readers as
2153 an example of what has to be initialized.
2154 * gdbtypes.c (create_array_type): Removed index_type, low_bound,
2155 and high_bound parameters, replaced with a single range_type
2156 parameter. Change function body to use passed in range_type
2157 rather than handcrafting one.
2158 * gdbtypes.h (create_range_type): Add prototype.
2159 * gdbtypes.h (create_array_type): Change prototype parameters.
2160 * infrun.c (normal_stop): Remove unused local variables tem and c.
2161 * infrun.c (hook_stop_stub): Return 0 rather than random value.
2162 * language.c (unk_lang_print_type, unk_lang_val_print): Add
2163 stub functions that call error if called.
2164 * language.c (unknown_language_defn, auto_language_defn,
2165 local_language_defn): Add initializers unk_lang_print_type and
2166 unk_lang_val_print.
2167 * language.h (struct language_defn): Reformat for larger
2168 comments, add la_print_type and la_val_print members. Add
2169 LA_PRINT_TYPE and LA_VAL_PRINT macros. Change local_printchar
2170 to LA_PRINT_CHAR and local_printstr to LA_PRINT_STRING.
2171 * m2-lang.c (m2_create_fundamental_type): Remove unused local
2172 variable nbytes.
2173 * m2-lang.c (m2_language_defn): Add initializers m2_print_type
2174 and m2_val_print.
2175 * m2-lang.h (m2_print_type, m2_val_print): Add prototypes.
2176 * main.c (execute_command): Remove unused local variable cmdlines.
2177 * main.c (echo_command), stabsread.c (read_type), printcmd.c
2178 (clear_displays), symmisc.c (block_depth), values.c
2179 (clear_value_history):
2180 Make testing of truth value of assignment result explicit.
2181 * mipsread.c (upgrade_type): Update FIXME to include future use
2182 of create_range_type.
2183 * printcmd.c (ptype_command, ptype_eval, whatis_command,
2184 whatis_exp, maintenance_print_type): Move prototypes and functions
2185 to new typeprint.c.
2186 * printcmd.c (_initialize_printcmd): Move add_com calls for
2187 ptype_command and whatis_command to new typeprint.c.
2188 * ser-bsd.c (serial_open): Remove unused variable sgttyb.
2189 * source.c (find_source_lines): Local variable c only used
2190 when LSEEK_NOT_LINEAR is defined.
2191 * stabsread.c (read_array_type): Use new create_range_type
2192 function.
2193 * stabsread.c (read_range_type): Add new index_type variable and
2194 call new create_range_type function rather than handcrafting
2195 range types.
2196 * symmisc.c (type_print_1): Change usages to LA_PRINT_TYPE.
2197 * symtab.c (typedef_print usages): Use c_typedef_print, renamed.
2198 * symtab.c (type_print_base usages): Use c_type_print_base.
2199 * symtab.c (type_print_varspec_prefix usages): Use
2200 c_type_print_varspec_prefix.
2201 * symtab.c (type_print_method_args usages): Use
2202 cp_type_print_method_args.
2203 * valprint.c: Completely ripped apart and the fragments used
2204 to create c-valprint.c, cp-valprint.c, m2-valprint.c, and
2205 valprint.h. Remaining stuff is language independent.
2206 * value.h (struct fn_field): Forward declare for prototypes.
2207 * value.h (type_print_1): Remove prototype.
2208 * value.h (enum val_prettyprint): Moved to defs.h.
2209 * value.h (typedef_print): Prototype renamed to c_typedef_print.
2210 * value.h (baseclass_offset): Add prototype.
2211 **** start-sanitize-chill ****
2212 * Makefile.in (SFILES_MAINDIR): Add ch-typeprint.c, ch-valprint.c.
2213 * Makefile.in (OBS): Add ch-typeprint.o, ch-valprint.o.
2214 * ch-typeprint.c: New file for language dependent type printing.
2215 * ch-valprint.c: New file for language dependent value printing.
2216 * ch-exp.y (parse_number): Remove prototype and stub function.
2217 * ch-exp.y (decode_integer_literal): Removed unused digits and
2218 temp variables.
2219 * ch-exp.y (convert_float): Completely ifdef out for now.
2220 * ch-exp.y (tokentab2, tokentab3, tokentab4, tokentab5),
2221 ch-lang.c (chill_op_print_tab):
2222 Change from ANSI-obsolescent "const static" to ANSI-conformant
2223 "static const".
2224 * ch-exp.y (yylex): Add unhandled storage class enumeration
2225 literals to switch statement for completeness.
2226 * ch-lang.c (chill_create_fundamental_types): Remove unused
2227 nbytes variable. Change dummy type to 2 bytes to match int.
2228 Handle FT_VOID types gratuituously added to chill DWARF by
2229 compiler. Change FT_CHAR case to generate an TYPE_CODE_CHAR
2230 type rather than a one byte TYPE_CODE_INT type.
2231 * ch-lang.c (chill_language_defn): Add chill_print_type and
2232 chill_val_print.
2233 * ch-lang.h (chill_print_type, chill_val_print): Add prototypes.
2234 **** end-sanitize-chill ****
2235
de9bef49
JG
2236Thu Dec 17 00:44:57 1992 John Gilmore (gnu@cygnus.com)
2237
2238 Eliminate uses of NAMES_HAVE_UNDERSCORE, using
2239 bfd_get_symbol_leading_char instead.
2240
2241 * coffread.c (EXTERNAL_NAME): New macro for removing possible
2242 leading character from names.
2243 (read_coff_symtab): Use BFD's FILE *, don't open a second one.
de9bef49
JG
2244 (process_coff_symbol, coff_read_struct_type, coff_read_enum_type):
2245 Replace NAMES_HAVE_UNDERSCORE with EXTERNAL_NAME.
2246
2247 * kdb-start.c (main): Remove NAMES_HAVE_UNDERSCORE.
2248 * minsyms.c (install_minimal_symbols): Replace NAMES_HAVE_UNDERSCORE.
2249 Remove SOME_NAMES_HAVE_DOT support (apparently unused).
2250 * partial-stab.h: Replace NAMES_HAVE_UNDERSCORE.
2251 * solib.c: Replace NAMES_HAVE_UNDERSCORE.
2252 * stabsread.h: Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
2253 * symfile.c (syms_from_objfile): Insert debugging check to test
84a05e52 2254 NAMES_HAVE_UNDERSCORE setting against the BFD support.
de9bef49
JG
2255
2256 * doc/gdbint.texinfo (Host Conditionals): Remove
2257 NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
2258 MEM_FNS_DECLARED.
2259 (Target Conditionals): Remove all of the above.
2260
926d7800
JG
2261 * xm-rs6000.h (MEM_FNS_DECLARED): Update comments.
2262
ca5a72cd
JG
2263 * coffread.c (read_coff_symtab, C_BLOCK): Use complain() rather
2264 than error() for .bb/.eb. Bug found by Eddie Fung, <efung@cs.uq.oz.au>.
2265
117f631e
ILT
2266Tue Dec 15 10:05:56 1992 Ian Lance Taylor (ian@cygnus.com)
2267
2268 * coffread.c (decode_type): catch negative tagndx fields generated
2269 by SCO 3.2v4 cc.
2270 * exec.c: comment out string following #endif.
2271 * configure.in (i[34]86-*-sco3.2v4*): use host i386sco4.
2272 * xm-i386sco.h: include <sys/types.h> and <sys/dir.h>, required by
2273 <sys/user.h>.
2274 * config/i386sco4.mh: new file; like i386sco.mh, but don't require
2275 gcc, and define const to empty to avoid SCO 3.2v4 cc bug.
2276
51b80b00
FF
2277Tue Dec 15 04:14:24 1992 Fred Fish (fnf@cygnus.com)
2278
2279 * complaints.c: New file, code moved from utils.c.
2280 * complaints.c (complain): Made into a varargs function.
2281 * complaints.h: New file, code moved from symfile.h.
2282 * Makefile.in (SFILES_MAINDIR): Add complaints.c.
2283 * Makefile.in (HFILES): Add complaints.h.
2284 * Makefile.in (OBS): Add complaints.o.
2285 * symfile.c (complaint_root, stop_whining, complaint_series,
2286 complain, clear_complaints, add_show_from_set for stop_whining):
2287 Moved to complaints.c.
2288 * symfile.h (struct complaint, complaint_root decl, complain
2289 prototype, clear_complaints prototype): Moved to complaints.h.
2290 * buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
2291 gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include
2292 complaints.h. Remove casts from arguments to complain(),
2293 which is now a varargs function, and remove unnecessary
2294 placeholder zero args.
2295 * defs.h (begin_line): Add prototype.
2296 * defs.h (vprintf_filtered): Add prototype.
2297 * dwarfread.c (varargs.h): Remove, no longer needed.
2298 * dwarfread.c (dwarfwarn): Remove prototype and function.
2299 * dwarfread.c (complaints): Define a bunch of complaints.
2300 * dwarfread.c (SQUAWK): Remove macro defs, convert all
2301 usages to standard complain() calls.
2302 * utils.c (begin_line): New function that ensures that
2303 whatever gets filter-printed next starts on its own line.
2304 * utils.c (vprintf_filtered): New func, like vfprintf_filtered,
2305 but to stdout (calls vfprintf_filtered internally).
2306
031dd1a9
JG
2307Tue Dec 15 02:01:00 1992 John Gilmore (gnu@cygnus.com)
2308
fb29d681
JG
2309 * remote.c: Avoid printf_filtered line limit. Suggested by
2310 Robert R. Henry, <rrh@tera.com>.
ca5a72cd 2311 * infcmd.c (environment_info): Ditto, for Don Allen <allen@think.com>.
fb29d681
JG
2312
2313 * main.c (main): Accept --silent as well as --quiet. Change +help
2314 to --help. Suggested by Karl Berry, <karl@cs.umb.edu>.
2315
031dd1a9
JG
2316 * doc/gdbint.texinfo: SWAP_HOST_AND_TARGET => SWAP_TARGET_AND_HOST.
2317 Noticed by Andy Jackson, <arj@cam-orl.co.uk>.
2318
df86eb44
JG
2319Mon Dec 14 23:28:15 1992 John Gilmore (gnu@cygnus.com)
2320
2321 * tm-nindy960.h, remote-nindy.c: Lint.
2322
85f0a848
FF
2323Mon Dec 14 18:48:52 1992 Fred Fish (fnf@cygnus.com)
2324
2325 * gdbtypes.c (create_array_type): Complete rewrite. Now requires
2326 a optional type to decorate as an array type, the type of the
2327 index, and the bounds of the array. Records this additional info
2328 in the array type for use with languages with nonzero array
2329 bounds.
2330 * gdbtypes.h (enum type_code): Update comment for TYPE_CODE_ARRAY
2331 to note that arrays may have bounds.
2332 * gdbtypes.h (create_array_type): Update prototype.
2333 * c-exp.y (ptype production): Adjust for new create_array_type
2334 calling conventions.
2335 * coffread.c (decode_type): Call create_array_type rather than
2336 handcrafting array types.
2337 * convex-tdep.c (value_type): Remove, now use create_array_type.
2338 * convex-tdep.c (value_of_trapped_internalvar): Convert calls to
2339 vector_type into calls to create_array_type.
2340 * dwarfread.c (decode_subscr_data): Name changed to
2341 decode_subscript_data_item throughout.
2342 * dwarfread.c (decode_subscript_data_item): Rewrite to use
2343 create_array_type. Now records index type and range as well.
2344 * dwarfread.c (dwarf_read_array_type): Rewrite as part of
2345 change to use create_array_type.
2346 * dwarfread.c (read_subroutine_type): Test existing user defined
2347 types before decorating them, to ensure they are blank, and
2348 complain about it if they are not.
2349 * dwarfread.c (decode_fund_type): For unrecognized types, always
2350 return some valid type (type integer). If the unrecognized type
2351 cannot be an implementation defined type, complain as well.
2352 * m88k-tdep.c (pushed_size): Update comment for TYPE_CODE_ARRAY.
2353 * m88k-tdep.c (store_param): Update comment for TYPE_CODE_ARRAY.
2354 * mipsread.c (upgrade_type): Add FIXME comment that code to
2355 handcraft arrays should be replaced with call to create_array_type.
2356 * stabsread.c (read_array_type): Replace code to handcraft
2357 array types with call to create_array_type.
2358 * valprint.c (type_print_varspec_prefix): Minor formatting
2359 change, join lines that don't need to be split.
2360
01d1590b
SG
2361Mon Dec 14 17:18:42 1992 Stu Grossman (grossman at cygnus.com)
2362
fb29d681 2363 * convex-xdep.c, hppab-nat.c, infptrace.c: Remove
01d1590b
SG
2364 decl for attach_flag, it now lives in inferior.h.
2365 * hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
2366 Make most functions static.
2367 * hppah-nat.c: General cleanups, remove BSD specific code (since
2368 that all lives in hppab-nat.c).
2369 * hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
2370 Change sense of test against inside_entry_file(). This fix is
2371 from U. of Utah.
2372 * tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
2373 to read/write_register_bytes().
7f70a275
SG
2374 * gdbtypes.h: Remove const from decl for cplus_struct_default to
2375 work around PA-GAS assembler bug. Also, add trailing */ to some
2376 comments.
2377 * gdbtypes.c: Remove const from decl for cplus_struct_default.
2378 Same reason as above.
01d1590b 2379
b69d8432
JG
2380Wed Dec 9 19:53:25 1992 John Gilmore (gnu@cygnus.com)
2381
c8aac932
JG
2382 * mipsread.c (parse_symbol): When checking whether a structured
2383 type is an enum, check qualifiers of its first member, as well as
2384 the base type of the member. Bug found and fixed by John M.
01d1590b 2385 Farrell, <farrell@fjord.reo.dec.com>.
c8aac932 2386
b69d8432
JG
2387 * vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
2388 * remote-vx.c: Don't include vx-share/reg.h.
2389 * vx-share/ptrace.h: Reproduce from scratch.
c8aac932 2390 * config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
01d1590b
SG
2391 * Makefile.in: Remove references to removed files, and to removed
2392 29k-share directories.
b69d8432 2393
160be0de
FF
2394Tue Dec 8 13:30:58 1992 Fred Fish (fnf@cygnus.com)
2395
d62e7a20
FF
2396 * c-lang.c (_initialize_c_language): Name changed from
2397 _initialize_c_exp.
2398 * m2-lang.c (_initialize_m2_language): Name changed from
2399 _initialize_m2_exp.
2400 * m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since
2401 it is no longer inside m2-exp.y, where it was remapped by Makefile.
22e39759
FF
2402 * c-exp.y, m2-exp.y: Migrate code that has nothing to do with
2403 expression parsing into c-lang.c and m2-lang.c respectively.
2404 * c-lang.c, m2-lang.c: New files, code migrated from c-exp.y and
2405 m2-exp.y respectively.
2406 * c-lang.h, m2-lang.h: New files, internal interfaces between c-*
2407 and m2-* files respectively.
2408 * Makefile.in (SFILES_MAINDIR): Add c-lang.c, m2-lang.c.
2409 * Makefile.in (HFILES): Add c-lang.h, m2-lang.h.
2410 * Makefile.in (OBS): Add c-lang.o, m2-lang.o.
2411 * expression.h (struct block): Forward declaration for prototypes.
2412 * language.h (struct objfile): Forward declaration for prototypes.
2413 **** start-sanitize-chill ****
2414 * Makefile.in (SFILES_MAINDIR): Add ch-lang.c.
2415 * Makefile.in (HFILES): Add ch-lang.h.
2416 * Makefile.in (OBS): Add ch-lang.o.
2417 * ch-exp.y: Migrate code that has nothing to do with expression
2418 parsing into ch-lang.c.
2419 * ch-lang.c: New file, code migrated from c-exp.y.
2420 * ch-lang.h: New file, internal interface between ch-* files.
d62e7a20
FF
2421 * ch-lang.c (_initialize_chill_language): Name changed from
2422 _initialize_chill_exp.
22e39759
FF
2423 **** end-sanitize-chill ****
2424
160be0de
FF
2425 Changes for Amiga Unix from rhealey@ub.d.umn.edu.
2426 * config/amix.mh (NAT_FILE): Add, set to nm-sysv4.h.
2427 * config/amix.mh (NATDEPFILES): Add.
2428 * config/amix.mh (XDEPFILES): Move procfs.o and fork-child.o
2429 to NATDEPFILES.
2430
2431 * dwarfread.c (decode_subscr_data): Remove spurious test that
2432 accepted only integer subscript types. We don't do anything
2433 with the type at the moment anyway.
2434
aed656ba
FF
2435 **** start-sanitize-chill ****
2436Fri Dec 4 06:56:56 1992 Fred Fish (fnf@cygnus.com)
2437
2438 * ch-exp.y (match_character_literal): Fix case where no
2439 match at all is found.
64e738a3
FF
2440 * ch-exp.y (chill_create_fundamental_type): Chill uses fixed
2441 width types. For example, "INT" is always 2 bytes regardless
2442 of the values of any TARGET_*_BIT macros. So use explicit
2443 numeric sizes for the types.
aed656ba
FF
2444 **** end-sanitize-chill ****
2445
bf229b4e
FF
2446Thu Dec 3 12:00:06 1992 Fred Fish (fnf@cygnus.com)
2447
2448 * c-exp.y (c_create_fundamental_type): New function to create
2449 language specific fundamental types for C.
2450 * m2-exp.y (m2_create_fundamental_type): New function to create
2451 language specific fundamental types for Modula 2.
2452 * c-exp.y (c_language_defn, cplus_language_defn): Add
2453 c_create_fundamental_type to language struct initializers.
2454 * m2-exp.y (m2_language_defn): Add m2_create_fundamental_type
2455 to language struct initializers.
2456 * dwarfread.c (expression.h, language.h): Include.
2457 * dwarfread.c (ftypes): New array to hold fundamental types
2458 for current compilation unit.
2459 * dwarfread.c (cu_language_defn): New pointer to language
2460 struct for language of current compilation unit.
2461 * dwarfread.c (dwarf_fundamental_type): New function to
2462 create/lookup fundamental types.
2463 * dwarfread.c (set_cu_language): Initialize cu_language_defn.
2464 * dwarfread.c (throughout): Replace lookup_fundamental_type
2465 with dwarf_fundamental_type.
2466 * dwarfread.c (read_file_scope): Zero out ftypes for each new
2467 compilation unit (may be different language or different objfile).
2468 * gdbtypes.c (lookup_fundamental_type): Move actual type
2469 creations into language specific fundamental type creation
2470 functions and call via create_fundamental_type. Add comment
2471 about this function being obsolescent.
2472 * gdbtypes.h (FT_BYTE, FT_UNSIGNED_BYTE): New types, true byte
2473 sized signed and unsigned integers.
2474 * gdbtypes.h (FT_NUM_MEMBERS): Increment, new types added.
2475 * language.c (language_def): New function to lookup a language
2476 struct given it's enumeration.
2477 * language.h (struct language_defn): Add la_fund_type, a pointer
2478 to a function that creates fundamental types for this language.
2479 * language.h (create_fundamental_type): New macro to create
2480 fundamental types based on the current language.
2481 * language.h (language_def): Add prototype.
2482 * language.c (unk_lang_create_fundamental_type): New function
2483 for initializing language structs, calls error if called.
2484 * language.c (unk_language_defn, auto_language_defn,
2485 local_language_defn): Use unk_lang_create_fundamental_type.
2486 **** start-sanitize-chill ****
2487 ch-exp.y (chill_create_fundamental_type): New function.
2488 ch-exp.y (chill_language_defn): Add chill_create_fundamental_type.
2489 ch-exp.y (_initialize_chill_exp): BOOL types are only one byte.
2490 **** end-sanitize-chill ****
2491
93bb6e65
FF
2492 **** start-sanitize-chill ****
2493Tue Dec 1 17:07:31 1992 Fred Fish (fnf@cygnus.com)
2494
2495 * dwarfread.c (CHILL_PRODUCER): Add producer string for
2496 GNU chill.
2497 * dwarfread.c (handle_producer): Test CHILL_PRODUCER as well
2498 as GCC_PRODUCER and GPLUS_PRODUCER.
2499 **** end-sanitize-chill ****
2500
7c86126f
SG
2501Mon Nov 30 18:46:58 1992 Stu Grossman (grossman at cygnus.com)
2502
2503 * remote-udi.c (udi_wait): Don't stop if TIP says that remote is
2504 still running.
2505
394171ac
FF
2506Mon Nov 30 12:00:25 1992 Fred Fish (fnf@cygnus.com)
2507
2508 * tm-sun4sol2.h: Add CPLUS_MARKER. Solaris 2.0 requires '.'
2509 rather than '$'. This particular piece of braindamage is
2510 spreading like ooze. It's now infected libiberty, deja-gnu,
2511 gdb, and gcc.
2512 * values.c (baseclass_addr): Use CPLUS_MARKER rather than
2513 hardwired '$' character.
2514
e7177cc2 2515Sun Nov 29 15:22:42 1992 Fred Fish (fnf@cygnus.com)
cbd1bdc3 2516
e7177cc2
FF
2517 (Changes to break incredibly ugly, unmaintainable 750 line
2518 read_struct_type function up into managable pieces.)
b076b3f8 2519 * Makefile.in (VERSION): Bump to 4.7.3.
e7177cc2
FF
2520 * stabsread.c (struct field_info): Local struct definition.
2521 * stabsread.c (read_member_functions, read_struct_fields,
2522 read_baseclasses, read_tilde_fields, attach_fn_fields_to_type,
2523 attach_fields_to_type, read_cpp_abbrev): Prototypes and new
2524 functions from fragmented read_struct_type.
2525 * stabsread.c (stabs_general_complaint): Catchall complaint.
2526 * stabsread.c (STABS_CONTINUE): Macro'ize cretinous stabs
2527 symbol name continuation code. Use macro throughout.
2528 * stabsread.c (various places): Replace add-one-to-pointer
2529 with pointer increment.
2530 * stabsread.c (read_type): Retain function local copy of type
2531 descriptor. Rearrange code calling read_struct_type() to match
2532 new conventions.
94daba7f
FF
2533 * stabsread.c (define_symbol): For the sake of dbx, gcc emits
2534 a single blank as the name of nameless enumerations. Recognize
2535 this special case and set nameless flag.
e7177cc2 2536 **** start-sanitize-chill ****
cbd1bdc3
FF
2537 * ch-exp.y (GENERAL_PROCEDURE_NAME, LOCATION_NAME): New
2538 terminal tokens.
2539 * ch-exp.y (access_name): New non-terminal token and
2540 production.
2541 * ch-exp.y (general_procedure_name): Now a terminal token.
2542 * ch-exp.y (location): Expand production.
2543 * ch-exp.y (match_simple_name_string): New function.
2544 * ch-exp.y (yylex): Call match_simple_name_string and return
2545 GENERAL_PROCEDURE_NAME or LOCATION_NAME as appropriate.
2546 **** end-sanitize-chill ****
2547
d1065385
FF
2548Wed Nov 25 07:17:13 1992 Fred Fish (fnf@cygnus.com)
2549
b9b6dbc2
FF
2550 * munch: Backslash escape vertical bar characters inside
2551 grep patterns since they have special meaning for some greps.
d1065385
FF
2552 * parse.c (write_exp_string): Complete rewrite to store string
2553 contants as a leading explicit length, followed by the string data,
2554 followed by a trailing explicit length.
2555 * eval.c (evaluate_subexp), expprint.c (print_subexp),
2556 parse.c (length_of_subexp), parse.c (prefixify_subexp):
2557 Use recorded explicit length of strings in expression elements,
2558 rather than strlen. Adjust code to skip over strings stored in
2559 expression elements, and code to access strings, to account for
2560 new leading explicit size expression element.
2561 * parse.c (length_of_subexp): Test for minimum endpos of 1, not
2562 0, to avoid negative expression element indices.
2563 * valops.c (search_struct_method): Minor whitespace change.
2564
5707ea9f
FF
2565Mon Nov 23 11:14:15 1992 Fred Fish (fnf@cygnus.com)
2566
bac89d6c
FF
2567 * c-exp.y (yylex): Add tempbuf, tempbufindex, and tempbufsize,
2568 which together maintain a dynamically expandable static buffer
2569 for the lexer to use when translating C strings to their internal
2570 form (other future uses possible). Fix parsing of C style strings
2571 to do the normal C style input conversions of escaped character
2572 sequences.
2573 * valops.c (value_string): Remove translation of escaped
2574 character sequences, now done in C expression parser.
5707ea9f
FF
2575 * language.h (PRINT_LITERAL_FORM): New macro that takes character
2576 and decides if it should be printed in literal form or some other
2577 form, based on it's ASCII value and setting of sevenbit_strings.
2578 * {c-exp.y, m2-exp.y} (emit_char): Use new PRINT_LITERAL_FORM
2579 macro, change indentation style.
2580 **** start-sanitize-chill ****
2581 * ch-exp.y (chill_printchar): Use new PRINT_LITERAL_FORM macro.
2582 * ch-exp.y (chill_printstr): First cut at real function instead
2583 of error stub.
2584 **** end-sanitize-chill ****
2585
36e0df23
DZ
2586Sun Nov 22 16:21:41 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2587
2588 * nindy-share/stop.h: fixed bogus comment-end in copyright message
2589
2590 * i960-pinsn.c: fixed two calls of fputs_filtered that had 3 arguments
2591
5d074aa9
FF
2592Fri Nov 20 21:35:57 1992 Fred Fish (fnf@cygnus.com)
2593
2594 * defs.h (sevenbit_strings): Add declaration.
2595 * defs.h (printchar): Replace with gdb_printchar.
2596 * language.h (language_defn): Add new function pointers
2597 la_printchar and la_printstr, to do language dependent
2598 printing of characters and strings.
2599 * language.h (local_printchar, local_printstr): New macros
2600 to call language dependent functions pointed to by la_printchar
2601 and la_printstr respectively.
2602 * c-exp.y (emit_char, c_printchar, c_printstr): New language
2603 dependent functions for printing characters and strings.
2604 * c-exp.y (c_language_defn, cplus_language_defn): Add
2605 c_printchar and c_printstr.
2606 * command.c (do_setshow_command): Rename printchar use to
2607 gdb_printchar.
2608 * expprint.c (print_subexp): Replace C style string output
2609 with call to local_printstr.
2610 * language.c (unk_lang_printchar, unk_lang_printstr):
2611 New stubs, currently errors.
2612 * language.c (unknown_language_defn, auto_language_defn,
2613 local_language_defn): Add unk_lang_printchar and
2614 unk_lang_printstr.
2615 * m2-exp.y (emit_char, m2_printchar, m2_printstr): New
2616 language dependent functions to print characters and strings.
2617 * m2-exp.y (m2_language_defn): Add m2_printchar and m2_printstr.
2618 * utils.c (printchar): Renamed to gdb_printchar.
2619 * valprint.c (print_string): Remove prototype, function moved
2620 to c-exp.y, where it becomes c_printstr.
2621 * valprint.c (print_max): Made global for reference from the
2622 language dependent printing routines in *-exp.y.
2623 * valprint.c (repeat_count_threshold): New variable with function
2624 of old REPEAT_COUNT_THREHOLD define, but now settable by user.
2625 Change all references to old macro to references to new variable.
2626 * valprint.c (value_print, val_print): Replace calls to
2627 print_string with calls to local_printstr.
2628 * valprint.c (val_print): Replace C style character printing
2629 with call to local_printchar.
2630 * valprint.c (val_print): Add case for TYPE_CODE_CHAR.
2631 * valprint.c (_initialize_valprint): Add add_show_from_set
2632 call for setting up repeat_count_threshold as print variable.
2633 **** start-sanitize-chill ****
2634 * ch-exp.y (decode_integer_value): New function.
2635 * ch-exp.y (decode_integer_literal): Use decode_integer_value.
2636 * ch-exp.y (chill_printchar, chill_printstr): New language
2637 dependent functions for printing characters and strings.
2638 * ch-exp.y (chill_language_defn): Add chill_printchar and
2639 chill_printstr.
2640 **** end-sanitize-chill ****
2641
b0944a33
JG
2642Thu Nov 19 21:22:21 1992 John Gilmore (gnu@cygnus.com)
2643
2644 * main.c (main): Print GDB version number in gdb -help; doc pid arg.
2645 Suggested by Marty Leisner, <leisner@eso.mc.xerox.com>.
2646 (print_gdb_version): New arg is stdout or stderr. Callers changed.
2647
195b44d9
ILT
2648Wed Nov 18 15:05:45 1992 Ian Lance Taylor (ian@cygnus.com)
2649
2650 * remote-vx.c (vx_kill): just warn if we can't contact the board,
2651 and assume the process has been killed.
2652
2104007f
SG
2653Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
2654
2104007f
SG
2655 * remote-udi.c (udi_open): Reset vars so that user can re-run
2656 programs without leaving GDB.
2657 * (many routines): Slightly improve error handling.
2658 * (download): Zero out BSS by longs instead of bytes to avoid
2659 timeouts in real hardware.
2660 * 29k-share/udi/udip2soc.c (UDIDisconnect, UDIKill): Indicate
2661 that connection is no longer in use after shutdown() of socket.
2662 This keeps GDB from dying of a SIGPIPE when you issue multiple
2663 `target udi' commands.
2664
2e66cf7d
FF
2665Wed Nov 18 14:27:47 1992 Fred Fish (fnf@cygnus.com)
2666
2667 * language.h (language_format_info): New structure to bundle
2668 local formatting information.
2669 * language.h (language_defn): Replace individual format info
2670 with language_format_info structs.
2671 * language.h (local_*_format, local_*_format_prefix,
2672 local_*_format_specifier, local_*_format_suffix): New macros
2673 for binary/octal/decimal/hex formats to access info elements.
2674 * c-exp.y (c_language_defn): Update for new format handling.
2675 * m2-exp.y (m2_language_defn): Update for new format handling.
2676 * dbxread.c (language.h): Include for partial-stab.h use.
5d074aa9
FF
2677 * mipsread.c (expression.h, language.h): Include for
2678 partial-stab.h use.
2e66cf7d
FF
2679 * defs.h (local_hex_format, local_hex_format_custom,
2680 local_hex_string, local_hex_string_custom): Move to language.h.
2681 * language.c (local_hex_format_custom, local_hex_string,
2682 local_hex_string_custom, local_octal_format_custom): Use new
2683 format handling.
2684 * language.c (unknown_language_defn, auto_language_defn,
2685 local_language_defn): Update for new format handling.
2686 * printcmd.c (print_scalar_formatted): Use new macros
2687 to access decimal and binary format info for printing.
2688 **** start-sanitize-chill ****
2689 * c-exp.y (chill_language_defn): Update for new format handling.
2690 * ch-exp.y (CHARACTER_LITERAL): Add support to yylex.
5d074aa9
FF
2691 * ch-exp.y (decode_integer_literal): Add function
2692 * ch-exp.y (match_integer_literal): Use decode_integer_literal.
2e66cf7d
FF
2693 * ch-exp.y (builtin_type_chill_char): Add definition.
2694 * gdbtypes.h (builtin_type_chill_char): Add declaration.
2695 **** end-sanitize-chill ****
2696
cdb1cc92
ILT
2697Tue Nov 17 11:17:06 1992 Ian Lance Taylor (ian@cygnus.com)
2698
2699 * tm-rs6000.h (BELIEVE_PCC_PROMOTION): Define, since AIX cc gets
2700 it right.
2701 (aix_framedata): added nosavedpc field.
2702 (SAVED_PC_AFTER_CALL): Don't try to optimize; just call
2703 read_register.
2704 (FRAMELESS_FUNCTION_INVOCATION): Pass second argument of 0.
2705 (FRAME_SAVED_PC): If PC not saved, use SAVED_PC_AFTER_CALL.
2706 * rs6000-tdep.c (skip_prologue): Handle gcc generated stfd
2707 instructions as function_frame_info does. Expand special case of
2708 st r31,-4(r1) to be st r31,NUM(r1), since gcc can generate offsets
2709 other than -4.
2710 (pop_frame): Add 4 rather than sizeof (int) to avoid host
2711 dependence.
2712 (function_frame_info): Set frameless if the function has no frame,
2713 and set nosavedpc if the PC was not saved. Handle gcc generated
2714 stfd 31,-4(31); st 31, -12(31) correctly.
2715 (frameless_function_invocation): New second argument pcsaved; if 0
2716 return whether the function has a frame, if 1 return whether the
2717 function saved PC.
2718 (frame_initial_stack_address): Correct typo: cache registers for
2719 callee_fi, not for fi, (avoids reading garbage memory locations).
2720
b638ca91
SG
2721Mon Nov 16 15:58:07 1992 Stu Grossman (grossman at cygnus.com)
2722
cdb1cc92
ILT
2723 * infrun.c (wait_for_inferior (just before step_over_function
2724 label)): Change test for stepping into subroutine to check for the
2725 presence of line number info. This makes stuff compiled with -g1
2726 cause GDB to not lose control when stepping.
2727
b638ca91
SG
2728 * symtab.c (find_pc_line): Improve code per gnu's suggestions.
2729 Improve comments as well.
2730
e58de8a2
FF
2731Sun Nov 15 09:22:09 1992 Fred Fish (fnf@cygnus.com)
2732
45a655b0
FF
2733 * Makefile.in (VERSION): Bump to 4.7.2
2734 * symtab.c (find_pc_symtab): Fix return of random value
2735 to caller.
e58de8a2
FF
2736 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add dependency on
2737 Makefile since it contains sed patterns used in generation.
2738 Add sed pattern to also delete #include of any malloc.h.
e58de8a2
FF
2739 * c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
2740 parser-defs.h, valarith.c, valops.c, value.h: Remap macros and
2741 function names to conform to K&R terminology with respect to
2742 logical and bitwise operators:
2743 UNOP_ZEROP => UNOP_LOGICAL_NOT
2744 UNOP_LOGNOT => UNOP_COMPLEMENT
2745 BINOP_LOGAND => BINOP_BITWISE_AND
2746 BINOP_LOGXOR => BINOP_BITWISE_XOR
2747 BINOP_LOGIOR => BINOP_BITWISE_IOR
2748 BINOP_AND => BINOP_LOGICAL_AND
2749 BINOP_OR => BINOP_LOGICAL_OR
2750 PREC_OR => PREC_LOGICAL_OR
2751 PREC_AND => PREC_LOGICAL_AND
2752 PREC_LOGIOR => PREC_BITWISE_IOR
2753 PREC_LOGXOR => PREC_BITWISE_XOR
2754 PREC_LOGAND => PREC_BITWISE_AND
2755 value_zerop() => value_logical_not()
2756 value_lognot() => value_complement()
2757 * c-exp.y (c_op_print_tab): Add explicit empty terminator.
2758 * m2-exp.y (m2_op_print_tab): Add explicit empty terminator.
19cfe25d
FF
2759 * i387-tdep.c (sys/dir.h): Remove, appears to be unnecessary
2760 and is nonexistant in some SVR4 based systems.
2761 * language.c (DEFAULT_ALLOCSIZE): Change from 3 => 4.
2762 * m2-exp.y (number_sign, modblock): Make static, #ifdef out
2763 unused modblock.
2764 * m2-exp.y (ANDAND): Rename to LOGICAL_AND.
2765 * source.c (source_info): Fix minor nits, print "1 line" rather
2766 than "1 lines", and "language is <lang>".
2767 * valarith.c (value_binop): Handle TYPE_CODE_BOOL as well
2768 as TYPE_CODE_INT and TYPE_CODE_FLOAT.
2769 * valprint.c (val_print): Print TYPE_CODE_BOOL type values as
2770 "TRUE" or "FALSE".
2771 * values.c (value_from_longest): Handle TYPE_CODE_BOOL.
2772 **** start-sanitize-chill ****
2773 * ch-exp.y: New expression parser, for GNU-Chill.
e58de8a2
FF
2774 * defs.h (enum language): Add language_chill.
2775 * dwarfread.c (set_cu_language): Add LANG_CHILL case and make
2776 LANG_MODULA2 a recognized language.
e58de8a2
FF
2777 * gdbtypes.h (enum_typecode): Note TYPE_CODE_BOOL used for
2778 Chill as well as Modula-2.
2779 * gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
2780 builtin_type_chill_ulong, builtin_type_chill_real): Add.
e58de8a2
FF
2781 * language.c (set_language_command): Add chill.
2782 * language.c (binop_result_type, integral_type, character_type,
2783 boolean_type, structured_type, value_true, binop_type_check):
2784 Add language_chill cases.
2785 * language.h (_LANG_chill): Define.
e58de8a2
FF
2786 * symfile.c (deduce_language_from_filename): Recognize the
2787 filename extensions ".chill", ".c186", and ".c286" for Chill.
e58de8a2 2788 * valprint.c (typedef_print): Add case for language_chill.
19cfe25d
FF
2789 * Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
2790 * Makefile.in (YYFILES): Add ch-exp.tab.c.
2791 * Makefile.in (YYOBJ): Add ch-exp.tab.o.
2792 * Makefile.in (saber_gdb): Add unload of ch-exp.y and load
2793 of ch-exp.tab.c.
2794 * Makefile.in (distclean): Add target ch-exp.tab.c.
2795 * Makefile.in (realclean): Add rm of ch-exp.tab.c.
2796 * Makefile.in (ch-exp.tab.o, ch-exp.tab.c): New targets.
2797 * eval.c (evaluate_subexp): Add OP_BOOL case.
2798 * expprint.c (print_subexp): Add OP_BOOL case.
2799 **** end-sanitize-chill ****
e58de8a2 2800
cbf15d9a
JG
2801Fri Nov 13 20:36:28 1992 John Gilmore (gnu@cygnus.com)
2802
2803 * infcmd.c (set_environment_command): Avoid skipping first
2804 char of env value if an '=' appears in it. Bug report and fix
2805 by Mark Jungerman, <maj@lucid.com>.
2806
c1878f87
SG
2807Fri Nov 13 20:24:10 1992 Stu Grossman (grossman at cygnus.com)
2808
2809 * infcmd.c (step_over_calls): Improve comments.
2810 * symtab.c (find_pc_psymtab): Clean up a bit.
2811 * (find_pc_symtab): Fix comments, clean up code.
2812 * (find_pc_line): General cleanups, efficiency improvements.
2813 Also, don't return garbage when some line info exists, but there
2814 was no good match.
2815
cbf15d9a
JG
2816Thu Nov 5 23:04:38 1992 Rob Ryan (rr2b@andrew.cmu.edu)
2817
2818 * xcoffexec.c (vmap_symtab): fixed a bug where if a object has no
2819 member, and the stat pointer passed to vmap_symtab was NULL, the
2820 wrong vmap entries would be modified. Fixes behavior where
2821 attempting to load symbols for a module with no member would mess
2822 up already read in symbols.
2823
b6113cc4
SG
2824Wed Nov 11 17:09:17 1992 Stu Grossman (grossman at cygnus.com)
2825
2826 * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
2827 29k-share/dfe/mini2udi.o.
2828 * config/a29k-udi.mt: Remove yank.o and mini2udi.o.
2829 * alldeps.mak, depend: Update to deal with removal of
2830 aforementioned files.
2831 * remote-udi.c: Major cleanups. Clean up udi_open and drop
2832 requirement for useless 'program' argument. Clean up
2833 udi_create_inferior, and udi_load to call common download()
2834 routine. Create download routine to load remote hosts directly
2835 (with the help of BFD) so that we don't need yank.c and
2836 mini2udi.c.
2837 Fix udi_detach to call UDIDisconnect with
2838 the right arguments. Clean up udi_resume, don't assign tip_error
2839 twice. Clean up udi_wait, straighten out status codes. Make
2840 udi_kill really work.
2841
2842Fri Nov 6 10:26:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2843
2844 * c-exp.y: separated host/target idea of integer type size,
2845 removed redundant parse rules. (YYSTYPE): added typed_val, removed
2846 UINT and CHAR rules. (parse_number): work out the targetwise type
2847 of a number based upon it's size and qualifiers. (yylex): chars
2848 are now treated the same way as ints.
2849
2850 * source.c (indentify_source_line): don't core dump if wanted
2851 line is larger than number of lines in source. (can happen when
2852 coff gets confused about #included source).
2853
59c84bd8
JG
2854Fri Nov 6 03:00:39 1992 John Gilmore (gnu@cygnus.com)
2855
2856 Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
2857 when debugging a program with 100 shared libraries.
2858
2859 * solib.c (solib_map_sections): Always close the BFD we open.
2860 Free all malloc'd storage we allocate, too, including error cases.
2861 (struct so_list): Remove unused so_bfd member.
2862 (clear_solib): Don't bother closing so_bfd.
2863
2864 * symfile.c (symfile_bfd_open): Mark newly opened BFD as
2865 cacheable. `So many symbol files, so little file descriptors.'
2866
8a96d79b
JG
2867Fri Nov 6 00:14:38 1992 John Gilmore (gnu@cygnus.com)
2868
2869 * m68k-stub.c: Remove ansidecl.h and the few uses of it.
2870 Stubs should stand alone as much as possible.
2871
2872 * source.c (show_directories): Avoid printf_filtered length prob
2873 pointed out by Jonathan Stone.
2874
2875 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper limit properly to
2876 avoid accesses beyond end of table. Fix by Lee W. Cooprider,
2877 <Lee_Cooprider@vos.stratus.com>.
2878
402dca80
FF
2879Thu Nov 5 17:33:08 1992 Fred Fish (fnf@cygnus.com)
2880
2881 * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
2882 struct, not struct itself.
2883 * serial.h (serial_restore): Fix prototype, takes pointer not
2884 struct.
2885
2352d20b
SG
2886Thu Nov 5 17:12:42 1992 Stu Grossman (grossman at cygnus.com)
2887
2888 * Makefile.in (depend): Add nm.h to the list of things to fixup.
2889 * depend: Redo, to fixup nm.h problems with *-tab.c files.
2890
61f55ca3
JG
2891Thu Nov 5 00:19:51 1992 John Gilmore (gnu@cygnus.com)
2892
042bf84c
JG
2893 * i386-stub.c: Remove ansidecl.h and the few uses of it.
2894 Stubs should stand alone as much as possible.
2895
61f55ca3
JG
2896 * README: Add remote-es1800.c and remote-st2000.c to table.
2897 * go32-nat.c: Remove, there is no native go32 support.
2898 * go32-xdep.c: Remove unused fork, fvork, wait, execlp, kill_inferior.
2899
740b7efa
SG
2900Wed Nov 4 15:27:31 1992 Stu Grossman (grossman at cygnus.com)
2901
1549918a
SG
2902 * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
2903 new routines to deal with sending SIGINTs to attached processes
2904 when the user interrupts the controlling GDB.
2905 * inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to
2906 the aforementioned routines when waiting for the attached process.
2907
740b7efa
SG
2908 * elfread.c, mipsread.c: Include <string.h>.
2909 * i386-stub.c: Include "ansidecl.h" to deal with prototypes.
2910 * serial.h: Add prototype for serial_restore().
2911
a521e93a
ILT
2912Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
2913
2914 * minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
2915 minimal_symbol_count, because the NULL symbol is not included in
2916 the count. This prevented this function from finding the last
2917 symbol in the table.
2918
b1fbbed4
ILT
2919Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
2920
2921 * dbxread.c (process_one_symbol): if not defined
2922 (BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
2923 the start of the function, not just after N_FUN.
2924
2925Fri Oct 30 16:33:02 1992 Fred Fish (fnf@cygnus.com)
e35843d4
FF
2926
2927 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
2928 remap all malloc's to xmalloc's and all realloc's to xrealloc's.
2929 * c-exp.y, m2-exp.y: Add comment about how malloc/realloc are
2930 remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
2931 file. Remove preprocessor defines that previously did remapping.
2932
61f55ca3
JG
2933Fri Oct 30 00:58:18 1992 John Gilmore (gnu@cygnus.com)
2934
2935 * infcmd.c (run_command): Avoid long calls to printf_filtered.
2936 Bug fix courtesy of Alexander Klaiber.
2937
851fffcf
RP
2938Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
2939
b1de302a
RP
2940 hp300 native support (hp300hpux untested).
2941
2942 * hp300ux-xdep.c: removed.
2943 * xm-hp300bsd.h (REGISTER_U_ADDR): removed.
2944 * xm-hp300hpux.h: updated copyright.
2945 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed.
2946 * nm-hp300bsd.h, nm-hp300hpux.h, hp300ux-nat.c: new files.
2947 * Makefile.in (HFILES): added nm-hp300bsd.h and nm-hp300hpux.h.
2948 * config/hp300bsd.mh (XDEPFILES): removed infptrace.o inftarg.o
2949 fork-child.o coredep.o corelow.o.
2950 (NAT_FILE, NATDEPFILES): new macros.
2951 * config/hp300bsd.mt (TDEPFILES): removed exec.o.
2952 * config/hp300hpux.mh (XDEPFILES): removed infptrace.o inftarg.o
2953 fork-child.o.
2954 (NAT_FILE, NATDEPFILES): new macros.
2955 * config/hp300hpux.mt (TDEPFILES): removed exec.o.
2956
7aae0974
RP
2957 Vax ultrix native support.
2958
2959 * nm-vax.h: new file.
2960 * Makefile.in (HFILES): added nm-vax.h.
2961 * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
2962 coredep.o corelow.o removed.
2963 (NAT_FILE, NATDEPFILES): new macros.
2964 * xm-vax.h: updated copyright.
2965 (REGISTER_U_ADDR): removed.
2966
5c9bbfe6
RP
2967 Apollo native support (untested).
2968
124a6fc0 2969 * Makefile.in (HFILES): added nm-apollo68[bv].h.
5c9bbfe6
RP
2970 * a68v-nat.c, nm-apollo68[bv].h: new files.
2971 * xm-apollo68[bv].h (FETCH_INFERIOR_REGISTERS): removed.
2972 * xm-apollo68b.h (PTRACE_IN_WRONG_PLACE): removed.
2973 * a68v-xdep.c: removed.
2974 * config/apollo68[bv].mh (XDEPFILES): removed infptrace.o
2975 inftarg.o fork-child.o a68v-xdep.o.
2976 (NAT_FILE, NATDEPFILES): new macros.
2977
851fffcf
RP
2978 * defs.h: include nm.h.
2979 * coredep.c, infptrace.c, procfs.c, rs6000-nat.c, sparc-nat.c,
2980 sparc-tdep.c, : do not include nm.h.
2981 * doc/gdbint.texinfo: nm.h now included in defs.h.
2982
451df680
SG
2983Fri Oct 23 04:47:17 1992 Stu Grossman (grossman at cygnus.com)
2984
bccaecc6
SG
2985 * Makefile.in (VERSION): 4.7.1 post release!
2986
451df680
SG
2987 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
2988
c50c5197
JG
2989Fri Oct 23 00:48:08 1992 John Gilmore (gnu@cygnus.com)
2990
2991 * Makefile.in (VERSION): gdb-4.7 release.
2992 * README: Update for gdb-4.7.
2993
db5b1f90
SG
2994Thu Oct 22 11:24:18 1992 Stu Grossman (grossman at cygnus.com)
2995
ee22c7f0
SG
2996 * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
2997 when necessary.
2998
db5b1f90
SG
2999 * alldeps.mak, depend: Update.
3000
fef84cc4
JG
3001Thu Oct 22 03:14:36 1992 John Gilmore (gnu@cygnus.com)
3002
3003 * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
3004 is null.
3005 * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP): Remove -- it
3006 causes problems in setting breakpoint in the right place in
3007 functions with `float' args which are passed as doubles.
3008 * xm-vaxbsd.h (MEM_FNS_DECLARED): Avoid erroneous redecl's.
3009 * config/rs6000.mh (NATDEPFILES): Add corelow.o.
3010
603900c7
SG
3011Thu Oct 22 01:01:24 1992 Stu Grossman (grossman at cygnus.com)
3012
3013 * Makefile.in (HFILES): Add nm-i386sco.h.
3014 * dwarfread.c: include <sys/types.h> for SCO.
3015 * infptrace.c: Don't include ptrace.h under SCO.
3016 * config/i386sco.mh: Use -D_POSIX_SOURCE instead of -posix for
3017 gcc.
3018 * config/i386v.mt: Add exec.o to TDEPFILES.
3019
3496b745
SG
3020Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com)
3021
3022 * i386v-nat.c: Remove space from front of #endif.
3023 * irix4-nat.c: Remove externs of registers[], include inferior.h
3024 instead.
3025 * mips-nat.c: Explicitly initialize zerobuf to 0!
3026 * mips-tdep.c (init_extra_frame_info): Undo John's last change.
3027 Always setup fci->frame, even if it's non-zero. Too many places
3028 depend upon this behavior (and I have to get a release out the
3029 door)!
3030 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set
3031 processing_gcc_compilation if we find the embedded stabs marker.
3032 This fixes several bugs with finding the location of short or char
3033 function parameters passed on the stack.
3034
99ef5653
RP
3035Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3036
3037 Native support for sun4sol2.
3038
3039 * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
3040 * nm-sysv4.h: new file.
3041 * Makefile.in (HFILES): added nm-sysv4.h.
3042 * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
3043 (NAT_FILE, NATDEPFILES): new macros.
3044 * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
3045
e4db3f3e
JG
3046Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com)
3047
0a2a48a2
JG
3048 * coredep.c: Include "nm.h" to get REGISTER_U_ADDR.
3049 * doc/gdbint.texinfo: Improve REGISTER_U_ADDR and USE_PROC_FS doc.
3050
e4db3f3e
JG
3051 * Makefile.in (VERSION): Tick to 4.6.9.
3052
3053Tue Oct 20 23:27:56 1992 John Gilmore (gnu@cygnus.com)
3054
3055 * mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
3056 definition, replace with portable one.
3057 * remote-nindy.c: Lint.
3058 (nindy_wait): Return type is int, result is inferior_pid.
3059 * symmisc.c (dump_psymtab): Only print section_offsets if set.
3060 (initialize_symmisc): Remove empty function.
3061 * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
3062 Remove obsolete, misspelled macro.
3063 * doc/gdbint.texinfo: Document obsolete STACK_END_ADDR.
3064 (all @node commands): Use new form to avoid nitpicking errors.
3065 * doc/gdbint.texinfo: Document host/native/target split.
3066
ce5489d2
SG
3067Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com)
3068
e0e91077
SG
3069 * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings.
3070
ce5489d2
SG
3071 * xm-mips.h (offsetof): Don't define this if __STDC__.
3072
ca048722
RP
3073Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3074
3fcb9021
RP
3075 umax native support (untested).
3076
3077 * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
3078 fork-child.o.
3079 (NAT_FILE, NATDEPFILES): new macros.
3080 * config/umax.mt (TDEPFILES): removed exec.o.
3081 * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
3082 removed to nm-umax.h.
3083 * nm-umax.h: new file.
3084 * Makefile.in (HFILES): added nm-umax.h.
3085
ca048722
RP
3086 hppa native support (untested).
3087
3088 * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
3089 (NAT_FILE, NATDEPFILES): new macros.
3090 * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
3091 * config/hppahpux.mt (TDEPFILES): removed exec.o.
3092 * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
3093 * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
3094 * hppa[bh]-xdep.c: removed.
3095 * hppa[bh]h-tdep.c: do not include ptrace.h.
3096 * Makefile.in (HFILES): added nm-hppa[bh].h.
3097
3098 * doc/gdbint.texinfo: add PUSH_DUMMY_FRAME, POP_FRAME.
3099
2675499b
SG
3100Tue Oct 20 00:01:46 1992 Stu Grossman (grossman at cygnus.com)
3101
3102 * mips-nat.c: Straighten out include files. Work around
3103 conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
3104 for Ultrix-4.2.
3105
d95eb930
SG
3106Mon Oct 19 15:09:57 1992 Stu Grossman (grossman at cygnus.com)
3107
56fc16c7
SG
3108 * mips-nat.c (fetch_core_registers, register_addr): Copy from
3109 coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
3110 backtraces from core files work.
3111 * config/decstation.mh, config/irix3.mh: Remove coredep.o.
3112 Functions are now defined in mips-nat.c.
3113
3114 * tm-irix3.h: Put MIPS_EFI_SYMBOL_NAME in here too.
3115
3ec5a74b
SG
3116 * remote-hms.c: Disable all uses of serial_nextbaudrate and
3117 serial_default_name().
3118
5a6242dd
SG
3119 * remote-hms.c, ser-go32.c, serial.h: Change from
3120 serial_timedreadchar() to new serial_readchar().
3121
d95eb930
SG
3122 * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones.
3123
10a297b7
PB
3124Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
3125
3126 * c-exp.y: Moved handling of 'const' and 'volatile' from
3127 <type> to <typebase>. This removes 2 conflicts.
3128
e6efef9f
FF
3129Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
3130
3131 * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
3132 from breakpoint table when reseting breakpoints.
3133
4d0eabff
FF
3134Sat Oct 17 00:59:23 1992 Fred Fish (fnf@cygnus.com)
3135
3136 Native support cleanup and corefile fixes for i386 SVR4 systems.
3137
3138 * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3139 fill_fpregset): Moved to i386v4-nat.c
3140 * i386v4-nat.c, nm-i386v4.h, : New files.
3141 * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE): Use nm-i386v4.h.
3142 * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES): Add corelow.o,
3143 change i386v-nat.o to i386v4-nat.o.
3144
173a4f1b
RP
3145Fri Oct 16 13:06:08 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3146
c36989aa
RP
3147 Miscellaneous 386 configs updated.
3148
3149 * config/i386aout.mt (TDEPFILES): removed exec.o.
3150 * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
3151 (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
3152 (NAT_FILE, NATDEPFILES): new macros.
3153 * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
3154 config/i386v4.mt (TDEPFILES): removed exec.o.
3155 * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
3156 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
3157 (NAT_FILE, NATDEPFILES): new macros.
3158 * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
3159 fork-child.o coredep.o corelow.o i386-xdep.o.
3160 (NAT_FILE, NATDEPFILES): new macros.
3161
f1a353db
RP
3162 Native support cleanup for i386bsd (untested).
3163
3164 * config/i386bsd.mt (NATDEPFILES): exec.o removed.
3165 * config/i386bsd.mh (NATDEPFILES): added exec.o
3166 * tm-i386bsd.h (FLOAT_INFO): removed.
3167 * nm-i386bsd.h (FLOAT_INFO): added.
3168
c7c94073
RP
3169 Native support for i386v (untested).
3170
3171 * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
3172 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
3173 (NAT_FILE, NATDEPFILES): new macros.
3174 * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
3175 * i386-xdep.c: removed.
3176 * Makefile.in (HFILES): added nm-i386v.h
3177 * i386v-nat.c, nm-i386v.h: new file.
3178 * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
3179 nm-i386v.h.
3180 * tm-i386v.h (FLOAT_INFO): removed.
3181
e24cb83d
RP
3182 Native support for linux (untested).
3183
3184 * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
c7c94073 3185 fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
e24cb83d
RP
3186 (NAT_FILE, NATDEPFILES): new macros.
3187 * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
3188 * Makefile.in (HFILES): added nm-linux.h.
3189 * nm-linux.h: new file.
3190 * xm-linux.h: updated copyright. cleaned up formatting.
3191 (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
3192
61bbb1c2
RP
3193 Native support for sun386 (untested).
3194
3195 * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
3196 fork-child.o sun386-xdep.o.
3197 (NAT_FILE, NATDEPFILES): new macros.
3198 * config/sun386.mt (TDEPFILES): removed exec.o.
3199 * Makefile.in (HFILES): added nm-sun386.h.
3200 * sun386-nat.c, nm-sun386.h: new file.
3201 * sun386-xdep.c: removed.
3202 * xm-sun386.h: updated comment and copyright.
3203 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
3204 nm-sun386.h.
3205
a113beac
RP
3206 Native support for i386mach (untested).
3207
3208 * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
3209 fork-child.o mach386-xdep.o.
3210 (NAT_FILE, NATDEPFILES): new macros.
3211 * Makefile.in (HFILES): added nm-i386mach.h.
3212 * nm-i386mach.h, i386mach-nat.c: new files.
3213 * mach386-xdep.c: removed.
3214 * xm-i386mach.h: updated copyright.
3215 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
3216 nm-i386mach.h.
3217
d9548d44
RP
3218 Native separation for go32 (untested).
3219
3220 * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
3221 * go32-nat.c: new file.
3222 * go32-xdep.c (call_ptrace, child_resume,
3223 fetch_inferior_registers, store_inferior_registers,
3224 child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
3225
173a4f1b
RP
3226 Native support for m88k (untested).
3227
e367cb3b 3228 * Makefile.in (HFILES): added nm-m88k.h
173a4f1b
RP
3229 * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
3230 FETCH_INFERIOR_REGISTERS): removed.
3231 * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
3232 inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
3233 (NAT_FILE, NATDEPFILES): new macros.
3234 * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
3235 * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
3236 * m88k-xdep.c: removed.
3237
f4cc0e9b
JG
3238Fri Oct 16 04:16:30 1992 John Gilmore (gnu@cygnus.com)
3239
3240 * i386b-nat.c: Comment changes.
3241 * nm-i386bsd.h, xm-i386bsd.h: Split native dependent pieces out
3242 into new nm-file.
3243 * config/i386bsd.mh (NAT_FILE): Point to new nm-file.
3244
2268d619
JG
3245Fri Oct 16 03:34:01 1992 John Gilmore (gnu@cygnus.com)
3246
3247 Avoid longjmp()-catching compilation errors in cross-ports.
3248
3249 * doc/gdbint.texinfo: Update GET_LONGJMP_TARGET, L_SET doc.
3250 * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
3251 Move from mips-tdep.c and tm-{irix3,mips}.h.
3252 * mips-nat.c: Remove a bunch of code that was ifdef'd out of
3253 native MIPS ports.
3254 * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
3255 and tm-mips.h.
3256
3257 * ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
3258 (fetch_core_registers): Fix bfd_seek arguments.
3259
62aa17e3
JG
3260Fri Oct 16 03:02:28 1992 John Gilmore (gnu@cygnus.com)
3261
d5a66a8d
JG
3262 Make core files work again (add back the `core' target).
3263
3264 * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
3265 (NATDEPFILES): Add corelow.o.
62aa17e3
JG
3266 * config/delta88.mt, m88k.mt (TDEPFILES): Remove coredep.o, it's
3267 native dependent.
3268
d5a66a8d
JG
3269 * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
3270 i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
3271 littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
3272 vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
3273 appears. FIXME, these should be moved to NATDEPFILES for native
3274 use only.
3275
b396595a
RP
3276Thu Oct 15 21:53:53 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3277
6bf98ac0
RP
3278 Ultra3 host/target/native split. (untested).
3279
3280 * ultra3-xdep.c: updated copyright. Do not include sys/ptrace.h.
3281 (fetch_register, fetch_inferior_registers,
3282 store_inferior_registers, fetch_core_registers): removed to
3283 ultra3-nat.c.
3284 * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
3285 to nm-ultra3.h.
3286 * Makefile.in (HFILES): added nm-ultra3.h.
3287 * nm-ultra3.h, ultra3-nat.c: new files for native support.
3288 * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
3289 fork-child.o.
3290 (NAT_FILE, NATDEPFILES): new macros for native support.
3291 * config/ultra3.mt (TDEPFILES): exec.o removed.
3292
b396595a
RP
3293 * xm-vaxult.h: add MEM_FNS_DECLARED.
3294
d5931d79
JG
3295Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com)
3296
3297 * Makefile.in (VERSION): Roll to 4.6.8.
3298 (OBS): Put version.o first, so Makefile rebuild happens early.
3299
3300 * command.h: Publicize prototype for not_just_help_class_command.
3301 * command.c: Remove proto.
327f7197
JG
3302 * maint.c: Mark "mt" as an abbrev, to avoid duplicated help
3303 output. Move "maint info" from class info to class maintenance,
3304 and improve text.
3305 * infrun.c: Move "stop" to class_obscure, and give it a
d5931d79
JG
3306 function so it will not be seen as a global help topic. FIXME,
3307 it should be possible to set these attributes independently.
3308
3309 * core.c (core_command): Make nicer error message for no core support.
d5931d79
JG
3310
3311 Lint around file_ptr's (bfd's off_t's) and bfd_seek.
3312
3313 * dbxread.c (read_dbx_symtab): Use L_SET as bfd_seek arg.
3314 (elfstab_build_psymtabs): staboffset and stabstroffset args are
3315 file_ptr's.
3316 * dwarfread.c (struct dwfinfo): Convert dbfoff, lnfoff to file_ptr.
3317 (scan_compilation_units): Punt unused filename arg. dbfoff,
3318 lnoffset, and curlnoffset are file_ptr's now.
3319 (dwarf_build_psymtabs): Drop desc and filename args; use
3320 objfile. dbfoff and lnoffset are file_ptr's now.
3321 (read_ofile_symtab): foffset is now file_ptr. Use L_SET in bfd_seek.
3322 * elfread.c (struct elfinfo): dboffset and lnoffset are file_ptr's.
3323 (elf_symfile_read): Skip desc and filename args to
3324 dwarf_build_psymtabs. Pass file_ptr's to elfstab_build_psymtabs.
3325 * gdb-stabs.h: Use file_ptr rather than off_t.
3326 * mipsread.c (fixup_symtab): f_ptr is a file_ptr. Re-enable
3327 compile-time debug check that someone turned off as "unused".
3328 (read_the_mips_symtab): st_filptr is a file_ptr. Fix bfd_seek call.
3329 * symfile.h: Update dwarf_build_psymtabs and
3330 elfstab_build_psymtabs prototypes.
3331 * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
3332 Use file_ptr offsets. bfd_seeks use L_SET.
3333
dac4929a
SG
3334Thu Oct 15 01:27:32 1992 Stu Grossman (grossman at cygnus.com)
3335
3336 * mips-tdep.c, mipsread.c, tm-mips.h: Get rid of ".gdbinfo."
3337 symbol. #define MIPS_EFI_SYMBOL_NAME instead. Use different
3338 value so that demangler won't be invoked. This greatly speeds up
3339 stepping.
3340 * mips-tdep.c (mips_pop_frame): Rewrite handling of
3341 linked_proc_info so that it properly deallocates the appropriate
3342 item after it is done with it instead of before.
3343 * Don't pass bogus frame pointer to create_new_frame(). Just
3344 leave it as zero so that lower level code will figure out the
3345 correct value.
3346
a6b98cb9
RP
3347Wed Oct 14 18:56:28 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3348
75365589
RP
3349 Sony News native support.
3350
3351 * Makefile.in (HFILES): added nm-news.h.
3352 * nm-news.h: new file.
3353 * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
3354 fork-child.o coredep.o to NATDEPFILES.
3355 (NAT_FILE, NATDEPFILES): new macros for native support.
3356 * config/news.mt (TDEPFILES): removed exec.o.
3357
170d4f55
RP
3358 * remote-vx.c: remove redundant include of sys/time.h.
3359
a6b98cb9
RP
3360 * infrun.c: include ctype.h. Otherwise some machines result in
3361 undefined for isdigit.
3362
358ca35e
JG
3363Tue Oct 13 01:27:14 1992 John Gilmore (gnu@cygnus.com)
3364
3365 * configure.in: Convert m68k entries to m68* entries to handle
3366 all the various m68xxx hosts and targets.
849d81e5 3367 * config/news1000.mt: No longer needed, same as news.mt.
358ca35e 3368
601f1570
RP
3369Fri Oct 9 18:54:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3370
3371 * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
3372
89f1a7df
SG
3373Fri Oct 9 14:20:08 1992 Stu Grossman (grossman at cygnus.com)
3374
47b7176b
SG
3375 * Makefile.in (HFILES): Add all nm-irix3.h, nm-irix4.h,
3376 nm-sun2.h, nm-mips.h.
3377
30328636
SG
3378 * config/irix3.mh (NATDEPFILES): nat-mips.o => mips-nat.o.
3379
a1096574
SG
3380 * Makefile.in (alldeps.mak): Add = sign after NATDEPFILES.
3381
89f1a7df
SG
3382 * config/bigmips.mh config/littlemips.mh: Remove mips-xdep.o.
3383
b5ddc101
ILT
3384Fri Oct 9 08:41:11 1992 Ian Lance Taylor (ian@cygnus.com)
3385
3386 * xm-hppah.h: if __STDC__ is not defined, define
3387 HPPA_COMPILER_BUG.
3388 symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
3389 compiler; see the comment in the file.
3390
0e35d2f3
JG
3391Fri Oct 9 04:43:43 1992 John Gilmore (gnu@cygnus.com)
3392
3393 First cut at support for all BSD variants on 386.
3394
3395 * tm-i386bsd.h, xm-i386bsd.h: New config files.
3396 * i386b-nat.c: New native support file.
3397 * configure.in: Add host and target for i[34]86-*-bsd*.
3398 * config/i386bsd.mh, config/i386bsd.mt: New config files.
3399
a70dc898
RP
3400Fri Oct 9 00:31:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3401
56e89422
RP
3402 Sun2 native support (untested).
3403
3404 * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
3405 REGISTER_U_ADDR): removed to nm-sun2.h.
3406 * nm-sun2.h: new file.
3407 * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
3408 fork-child.o sun3-xdep.o removed.
3409 (NAT_FILE, NATDEPFILES): new macros.
3410
a70dc898
RP
3411 Mips native support. Decstation and iris4 have been tested.
3412 Iris3 has not.
3413
3414 * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3415 fill_fpregset): removed to irix4-nat.c
3416 * mips-xdep.c: removed.
3417 * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
3418 files.
3419 * procfs.c: include nm.h.
3420 * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
3421 * xm-irix4.h: bump copyright.
3422 (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
3423 PROC_NAME_FMT): removed.
3424 * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
3425 * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
3426 (NAT_FILE, NATDEPFILES): new macros for native support.
3427 (CC): supply default compiler switches.
d5931d79
JG
3428 * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
3429 fork-child.o coredep.o.
a70dc898
RP
3430 (NAT_FILE, NATDEPFILES): new macros for native support. Note that
3431 irix3 is untested.
3432 * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
3433 fork-child.o mips-xdep.o coredep.o.
3434 (NAT_FILE, NATDEPFILES): new macros for native support.
3435
55ec69fb
RP
3436Thu Oct 8 23:50:51 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3437
3438 * config/rs6000.mh (XDEPFILES): removed fork-child.o.
3439 (NATDEPFILES): added fork-child.o
3440 * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
3441 (NATDEPFILES): added fork-child.o
3442 * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
3443 (NATDEPFILES): added fork-child.o
3444
01ae50eb
JG
3445Thu Oct 8 23:19:25 1992 John Gilmore (gnu@cygnus.com)
3446
3447 * infcmd.c (path_info): Avoid 250-char limit on printf_filtered,
3448 by using puts_filtered instead.
3449
0256270d
KR
3450Fri Oct 9 00:28:25 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3451
3452 * remote-nindy.c (nindy_load): Replacement version from Steve
3453 Chamberlain, doesn't require forking to run "strip" or "sx".
3454
e6c61372
SG
3455Thu Oct 8 18:27:35 1992 Stu Grossman (grossman at cygnus.com)
3456
3457 * Makefile.in (HFILES): Add nm-*.h files.
3458
968720bf
RP
3459Thu Oct 8 16:27:45 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3460
dd6f8695
RP
3461 * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
3462 (NATDEPFILES): added fork-child.o.
3463
968720bf
RP
3464 * doc/gdbint.texinfo: document a few more macros, create new
3465 section for native macros.
3466
e7ae70e9
SG
3467Thu Oct 8 13:52:46 1992 Stu Grossman (grossman at cygnus.com)
3468
3469 * Makefile.in alldeps.mak depend: Rip out 29k/udi pending
3470 resolution of copyright issues.
3471
0da70124
SG
3472Wed Oct 7 20:08:53 1992 Stu Grossman (grossman at cygnus.com)
3473
3474 * Makefile.in (setup-to-dist): Remove -norecursion so that doc
3475 subdir gets configured.
3476
6a1f93f6
KR
3477Wed Oct 7 12:24:01 1992 Ken Raeburn (raeburn@cygnus.com)
3478
3479 * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
3480 program.
3481 * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
3482 searching for a "bfd_strip" program. Also, fixed up arguments
3483 passed to that program.
3484
3485 * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
3486 which is now used for something else. Rewrite description of
3487 associated parameters to match how gdb does it now.
3488 (ADDITIONAL_OPTION_HELP): Fix message accordingly.
3489
3490 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
3491
3950a34e
RP
3492Tue Oct 6 14:47:11 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3493
3494 NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
3495 to_notice_signals.
3496
3497 * inferior.h (proc_signal_handling_change): prototype removed.
3498 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
3499 (handle_command): now calls target_notice_signals.
3500 * procfs.c (proc_signal_handling_change): renamed to
3501 procfs_notice_signals. Now static. Add prototype. All callers
3502 changed.
3503 * target.h (struct target_ops): new field, to_notice_signals.
3504 (target_notice_signals): new macro to cover new field.
3505 * target.c (cleanup_target): default to_notice_signals to ignore.
3506 * corelow.c (core_ops),
3507 exec.c (exec_ops),
3508 inftarg.c (child_ops),
3509 procfs.c (procfs_ops),
3510 remote-adapt.c (adapt-ops),
3511 remote-eb.c (eb_ops),
3512 remote-es1800.c (es1800_ops, es1800_child_ops),
3513 remote-hms.c (hms_ops),
3514 remote-mm.c (mm_ops),
3515 remote-nindy.c (nindy_ops),
3516 remote-st2000.c (st2000_ops),
e7ae70e9 3517 remote-udi.c (udi_ops),
3950a34e
RP
3518 remote-vx.c (vx_ops, vx_run_ops),
3519 remote.c (remote_ops),
3520 target.c (dummy_target),
3521 xcoffexec.c (exec_ops): added static initializer for
3522 to_notice_signals.
3523 * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
3524
06e4d12d
JG
3525Tue Oct 6 12:13:08 1992 John Gilmore (gnu@cygnus.com)
3526
3527 * main.c (define_command): Add forgotten initializer.
3528
48ab6c0e
JG
3529Tue Oct 6 02:23:17 1992 John Gilmore (gnu@cygnus.com)
3530
b5af69c3
JG
3531 * language.c, language.h: Move saved_language out to global
3532 expected_language. Set expected_language when user expectation
3533 changes.
3534 * language.c (language_info): Don't print type/range checking gub.
3535 * main.c (main): Set expected language.
3536 (execute_command): Check against expected language.
3537 * symfile.c (set_initial_language): Set expected language.
3538
48ab6c0e
JG
3539 * configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.
3540
94603999
JG
3541Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
3542
3543 A bunch of changes mostly to improve debugging of C++ programs.
3544 Specifically, the calling of inferiors methods is improved.
3545
3546 * value.h: New macros METHOD_PTR_IS_VIRTUAL,
3547 METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
3548 hide the implementation details of pointer-to-method objects.
3549 How to tell if the pointer points to a virtual method is
3550 still very dependent on the particular compiler, but this
3551 should make it easier to find the places to change.
3552 * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
3553 (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_*
3554 macros, instead of a hard-wired-in code that incorrectly
3555 assumed a no-longerused representation of pointer-to-method
3556 values. And otherwise fix the relevant bit-rotted code.
3557
3558 * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
3559 If there are both fields and methods, put a space between.
3560
3561 * stabsread.c (read_struct_type): Fix bug in handling of
3562 GNU C++ anonymous type (indicated by CPLUS_MARKER followed
3563 by '_'). (It used to prematurely exit the loop reading in
3564 the fields, so it would think it should start reading
3565 methods while still in the fields. This could crash gdb
3566 given a gcc that can emit nested type information.)
3567
3568 * valops.c (search_struct_method): Pass 'this' value by
3569 reference instead of by value. This provides a more
3570 consistent interface through a recursive search where the
3571 "bottom" functions may need to adjust offsets (due to multiple
3572 inheritance).
3573 * valops.c, value.h, values.c: Pass extra parameters to
3574 value_fn_field and value_virtual_fn_field so we can
3575 correctly adjust offset for multiple inheritance.
3576 * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify
3577 virtual function calls by using value_virtual_fn_field().
3578 * values.c: New function baseclass_offset, derived from
3579 baseclass_addr (which perhaps can be made obsolete?).
3580 It returns an offset rather than an address. This is a
3581 cleaner interface since it doesn't mess around allocating
3582 new values.
3583 * valops.c (search_struct_method): Use baseclass_offset
3584 rather than baseclass_addr.
3585
aa1dea48
SG
3586Mon Oct 5 16:02:04 1992 Stu Grossman (grossman at cygnus.com)
3587
e7ae70e9
SG
3588 * Makefile.in: Re-install 29K/UDI stuff.
3589 * remote-udi.c (udi_resume): Clean up.
3590 * (udi_wait): Rewrite, leave out bugs.
3591 * Add debugging code to print out all register fetches and stores.
3592 * Straighten out target_ops.
aa1dea48
SG
3593 * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
3594
e661aaae
ILT
3595Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
3596
e7ae70e9
SG
3597 * remote-udi.c (udi_create_inferior): run with no arguments should
3598 not pass the program name as an argument, since the UDI code
3599 already handles that.
3600 (udi_load): get the symbols from prog_name, not arg_string (the
3601 load command should really use arg_string as the program name, not
3602 prog_name, but at least the run command works now).
3603
5d5a9c3c 3604 * munch: HP9000/300 nm puts an extra space between T and symbol
91912864
ILT
3605 name.
3606
e661aaae
ILT
3607 * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
3608 needed for vxworks targets.
3609
34517ebc
JG
3610Fri Oct 2 22:04:42 1992 John Gilmore (gnu@cygnus.com)
3611
3612 * am29k-tdep.c (_initialize_29k): Make it possible for the
3613 user to set and query the address where function calls into the
3614 inferior write a small scratch routine. `set call_scratch_address'
3615 * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error.
3616 * remote.c (remote_prepare_to_store): Only fetch regs if they are
3617 not already cached validly.
3618
93282e61
RP
3619Thu Oct 1 14:36:42 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3620
ef6f3a8b
RP
3621 Rs6000 native support.
3622
3623 * infptrace.c: remove #ifdef USG from around include ptrace.h.
3624 machines without this header should not be compiling this file.
3625 * nm-rs6000.h, rs6000-nat.c: new files for native support.
3626 * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
3627 * rs6000-xdep.c: removed. all code now in rs6000-nat.c.
3628 * xm-rs6000.h: do not include ptrace.h.
3629 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
3630 * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
3631 infptrace.o and inftarg.o move to NATDEPFIES.
3632 (NAT_FILE, NATDEPFILES): new macro for native support.
3633
93282e61
RP
3634 Sun3 native support.
3635
3636 * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
3637 new macros for native support.
3638 (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
3639 removed sun3-xdep.o.
3640 * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
3641 nm-sun3.h.
3642 * sun3-xdep.c: removed. All code is now in sun3-nat.c.
3643 * sun3-nat.c, nm-sun3.h: new files for native support.
3644
3645Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com)
3646
3647 * dwarfread.c (dbsize): New variable to hold size of dwarf info.
3648 * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to
3649 dbfsize and use it to initialize new local file scope dbsize.
3650 * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it.
3651 * dwarfread.c (basicdieinfo): Use dbsize to check for oversize
3652 DIEs as well as the current check for undersize DIEs. This helps
3653 to gracefully detect and reject corrupted DIE information.
3654
a65841d7
JG
3655Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com)
3656
3657 Add `command hooks' and a hook for inferior program stopping.
3658
3659 * command.h (struct cmd_list_element): Remove unused `aux'
3660 field. Add new `hook', `hookee', and `cmd_pointer' fields.
3661 * command.c (add_cmd): Initialize new fields, elim old.
3662 (add_alias_cmd): Clone new fields.
3663 (delete_cmd): Un-hook hookee if we're deleting hook.
3664 (help_cmd): Tell user the command is hooked, if it is.
3665 (lookup_cmd_1): Abbreviations return the original command
3666 instead of themselves, so that hooks on the original cmd will be
3667 run.
3668 * defs.h (enum command_class): Add class_pseudo and comments.
3669 * gdbcmd.h (execute_user_command): Add prototype.
3670 * infrun.c (normal_stop): If the stop command is hooked,
3671 run the hook whenever we stop.
3672 (hook_stop_stub): Stub for catch_errors.
3673 (_initialize_infrun): Set up pseudo "stop" command.
3674 * main.c (execute_user_command): Code extracted from execute_command.
3675 (execute_command): If hooked, run the hook before the command.
3676 (define_command): If defining a new hook, check the command it
3677 is hooking, and warn if none. Install the hook.
3678 * source.c (_initialize_source): "l" is an abbrev for "list".
3679 * doc/gdb.texinfo: Document command hooks.
3680
3681 * Makefile.in (VERSION): Roll to 4.6.7.
3682 * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES.
3683 * infrun.c (breakpoints_inserted): Make it static again.
3684 * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.
3685
dfc82617
RP
3686Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3687
3688 Native file renaming.
3689
3690 * nat-sparc.c -> sparc-nat.c
3691 * nat-sun4os4.h -> nm-sun4os4.h
3692 * nat-trash.h -> nm-trash.h
9c14e78d 3693 * config/sun4os4.mh: track file renaming.
dfc82617
RP
3694 * configure.in: link to nm.h rather than nat.h.
3695 * infptrace.c: include nm.h rather than nat.h.
3696
df9b3bfc
RP
3697Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3698
c9c23412
RP
3699 Host/target/native split for sun4.
3700
3701 * Makefile.in (TSOBS): removed corelow.o.
3702 * infptrace.c: included nat.h.
3703 * nat-trash.h: temporary header file. This should be removed once
3704 all hosts have the native/host/target split.
3705 * configure.in: add a symlink from nat-trash.h to nat.h if no
3706 other nat file exists for this configuration.
3707 * sparc-tdep.c: no longer include sys/ptrace.h.
3708 * sparc-xdep.c: removed. contents have been moved to nat-sparc.c.
3709 * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
3710 nat-sun4os4.h.
3711 * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
3712 * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
3713 to NATDEPFILES. removed sparc-xdep.o.
3714 (NATDEPFILES, NAT_FILE): new macros for native support.
3715
df9b3bfc
RP
3716 Break the direct connection from core_file_command to any
3717 particular type of core file support.
3718
3719 * target.h (find_core_target): new prototype.
3720 * target.c (find_core_target): new function. Walks the target
3721 list looking for the core target.
3722 * core.c (core_file_command): replace calls to core_detach and
3723 core_open with find_core_target and direct calls.
3724
be891e75
ILT
3725Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
3726
3727 * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
3728 for infptrace.c.
3729 config/hp300hpux.mh: ALLOCA1 was not defined.
3730
597dc86b
SG
3731Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com)
3732
3733 * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
3734 target.c, valprint.c: Use unfiltered forms of f/printf, et. al.
3735 until we can figure out a better way to do paging.
3736
e0ba1d14
JG
3737Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com)
3738
3739 * findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
3740 * tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
3741 * hppa-coredep.c: Remove, now that we use the hook.
3742 * config/hppab.mh, config/hppah.mh: Use standard coredep.o.
3743 * hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
3744
3745 * dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
3746 GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
3747 be ripped out and reimplemented right (see elfread.c).
3748 * tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
3749
3750 Rename all HPPA files to fit into unique DOS filenames:
3751 * *hppabsd* => *hppab*
3752 * *hppahpux* => *hppah*
3753
b3d4dd73
JG
3754Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com)
3755
3fbdd536
JG
3756 Make the /proc support a target-struct in its own right.
3757
b3d4dd73
JG
3758 * Makefile.in: Remove inftarg.[co], since it is now included via
3759 config/*.mh files.
3760 * config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
3761 reference infptrace.o. Add fork-child.o to all *.mh that
3762 reference procfs.o.
3763
3fbdd536
JG
3764 * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
3765 No longer global functions.
3766 (fork_inferior): New global function from fork-child.c.
3767 * inftarg.c (child_wait): Remove USE_PROC_FS conditional.
3768 (ptrace_me, ptrace_him): New stub functions for fork_inferior().
3769 (child_create_inferior): Moved to fork-child.c as fork_inferior.
3770 (child_create_inferior): New tiny function that calls fork_inferior.
3771 * fork-child.c: New file, containing fork_inferior, which is
3772 built from slight mods to inftarg.c's child_create_inferior.
3773
3774 * procfs.c (procfs_ops): Add target vector.
3775 (attach): Rename as static do_attach.
3776 (procfs_create_inferior): New tiny function that calls fork_inferior.
3777 (child_xfer_memory): Rename to static procfs_xfer_memory.
3778 (store_inferior_registers): Rename to static procfs_store_registers.
3779 (inferior_proc_init): Rename to static procfs_init_inferior.
3780 (procfs_attach, procfs_detach, procfs_prepare_to_store,
3781 procfs_files_info, procfs_open, procfs_mourn_inferior,
3782 procfs_can_run): Slightly mangled copies of the corresponding
3783 child_XXX routines from inftarg.c.
3784 (proc_wait): Renamed to static procfs_wait.
3785 (child_resume): Rename to static procfs_resume.
3786 (fetch_inferior_registers): Rename to static procfs_fetch_registers.
3787 (initialize_proc_fs): Rename to initialize_procfs. Set up
3788 procfs_ops, too.
3789
3790 * putenv.c: index -> strchr.
3791 * regex.c: Always rename bcopy to memcpy, etc.
3792 FIXME: Eventually do the renames rather than use #define's.
3793 * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
3794 Fix bcopy->memcpy.
3795 * sparc-xdep.c: Move deferred_stores to target dependent.
3796 * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
3797
836e343b
JG
3798Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com)
3799
3800 Split non-target-dependent code out of target_attach routines.
3801
3802 * target.h: Comments on target_attach args and results.
3803 * infcmd.c (attach_command): Check for existing execution, call
3804 target_attach, set up terminal status and wait_for_inferior, wait
3805 for the attach status, and do normal_stop.
3806 * inftarg.c (child_attach): Remove target independent stuff.
3807 * remote-adapt.c (adapt_attach): Ditto.
3808 * remote-mm.c (mm_attach): Ditto.
e7ae70e9 3809 * remote-udi.c (udi_attach): Ditto.
836e343b
JG
3810 * remote-vx.c (vx_attach): Ditto.
3811
3812 Cleanup.
3813
3814 * remote-hms.c (hms_attach): Remove completely, it was useless.
e7ae70e9 3815 * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove
836e343b 3816 commented-out start_remote calls.
e7ae70e9 3817 * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
836e343b
JG
3818 DENTER and DEXIT macros and their calls. Use a real debugger --
3819 like gdb -- to see what functions are being called when.
a5a7c719 3820 * utils.c (strcmp_iw): Make nonstatic, for lint.
836e343b 3821
3aa6856a
JG
3822Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
3823
3824 * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
3825
b869d3f4
SG
3826Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
3827
1aed6766
SG
3828 * tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
3829 fix to differentiate between gcc1 & gcc2 compiled files so that we
3830 can debug calls that pass structs as args correctly.
3831 * symmisc.c (dump_symtab): If block was compiled with gcc, say
3832 so, and what version.
3833
b869d3f4
SG
3834 * remote.c (remote_wait): Make regs be char to avoid picayune
3835 ANSI compiler warnings.
3836
e7ae70e9
SG
3837 * energize.h: Move all external struct decls to inside of
3838 __STDC__, add prototype for energize_shell_wait().
3839 * energize.c (getpty): Clean up, make us really get a controlling
3840 terminal.
3841 * (energize_initialize): Disable SIGIO prior to setting up for
3842 I/O interrupts. Move setsid(), et. al. to getpty().
3843 * (energize_shell_wait): New routine to wait for things started
3844 via the shell command, uses wait() instead of /dev/proc.
3845 * Also, add prototype for execute_command_1().
3846
050d45c5
RP
3847Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3848
310cc570
RP
3849 * inftarg.c (child_create_inferior, child_attach,
3850 child_mourn_inferior): collect unix child process stratum
3851 functions which live below the target vector into this file to
3852 facilitate host/target/native split. Also, make them static.
3853 * inflow.c (child_mourn_inferior): removed.
3854 * infrun.c (child_create_inferior, child_attach): removed.
3855 (resume): becomes global so that functions below the
3856 target vector can find it.
3857 * inferior.h (resume): add prototype.
3858 (child_mourn_inferior, child_create_inferior, child_attach):
3859 remove prototypes.
3860
050d45c5
RP
3861 * xcoffexec.c (exec_ops): child_attach and child_create_inferior
3862 replaced with find_default_attach and
3863 find_default_create_inferior.
3864
3865Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
3866
3867 * i960-pinsn.c: Use _filtered routines for printing, so symbolic
3868 addresses don't get displayed in the wrong positions.
3869
8afd6ca5
RP
3870Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3871
3872 Separate core functions along target vector in preparation for
3873 native support. Functions above vector now live in core.c. Those
3874 below in corelow.c.
3875
3876 * core.c (solib_add_stub, core_close, core_open, core_detach,
3877 get_core_registers, core_files_info, core_ops): moved to corelow.c
3878 (_initialize_core): removed addition of core_ops target.
3879 * corelow.c: new file.
3880 (solib_add_stub, core_close, core_open, core_detach,
3881 get_core_registers, core_files_info, core_ops): moved from core.c
3882 (_initialize_corelow): new function.
3883 * gdbcore.h (core_open, core_detach): added prototypes.
3884 (core_ops): add forward declaration.
3885 * Makefile.in (SFILES_MAINDIR): add core.c
3886 (OBS): add core.o
3887 (TSOBS): change core.o to corelow.o
3888
cdfab267
SG
3889Wed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com)
3890
3891 * m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
3892 instead of 'sun' predefined symbol so that trap analysis code is
3893 enabled only when the TARGET is a sun3.
3894
5e9a7f00
KR
3895Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3896
3897 * tm-i960.h (ext_format_i960): Add top-level declaration.
3898 (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
3899 blocks, else Sun4 compiler complains.
3900
ebeccdf0
JG
3901Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com)
3902
3903 * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
3904 instruction's argument. Patch from jonathan@cs.stanford.edu
3905 (Jonathan Stone).
3906
5ee4e16c
JG
3907Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3908
3909 Break the thread of control that implies that a unix child
3910 process will be the default target.
3911
3912 * target.c (find_default_run_target, find_default_attach,
3913 find_default_create_inferior, return_zero): new functions.
3914 (cleanup_target): Make return_zero the default for to_can_run.
3915
3916 * exec.c (exec_ops), core.c (core_ops): Replace child_attach and
3917 child_create_inferior references with find_default_XXX instead.
3918
3919 * target.h (struct target_ops): new field, to_can_run.
3920 (find_default_attach, find_default_create_inferior): new prototypes.
3921 (target_can_run): new macro.
3922
3923 * Also added a zero (default) to_can_run element to all static
3924 struct target_ops initializations throughout GDB, except:
3925 * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
3926
3927 * infrun.c (child_create_inferior): Clean up error handling when
3928 no exec file is specified.
3929 (child_attach): Don't require exec file.
3930
b28d3617
JG
3931Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com)
3932
3933 Remove kill_inferior_fast, in favor of target_kill, which goes
3934 through the target vector.
3935
3936 * inferior.h (kill_inferior_fast): remove declaration.
3937
3938 * main.c (disconnect): call quit_cover using catch_errors rather
3939 than calling kill_inferior_fast directly. New way goes through
3940 the target vector, handles attached processes, and writes
3941 command history if appropriate.
3942 (quit_cover): new function, wrapper for quit_command.
3943
3944 * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
3945 infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
3946 inlining them into the local kill_inferior when needed.
3947
6b50c5c2
JG
3948Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com)
3949
3950 * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
3951 * stabsread.c (read_struct_type): Simplify complicated expression
3952 for dumb DECstation compiler.
3953
8f61b5e4
ILT
3954Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
3955
3956 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
3957 operands to memory management instructions, from WRS.
3958
538280d8
FF
3959Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com)
3960
3961 * main.c (main): Back out previous language setting changes.
3962 Replace with simple default to C before processing any init
3963 files. There MUST be a language set, even in the absence of
3964 init files or executables, or expression parsing fails.
3965
d75710b0
FF
3966Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com)
3967
3968 * main.c (main): Move code that sets initial language to
3969 symfile.c. Fixup places where command files are processed to
3970 be consistent in setting a default language if none has been
3971 previously set.
3972 * symfile.c (set_initial_language): Add code moved from
3973 main() that sets an initial default language when a new
3974 symbol file is read.
3975 * symfile.c (symbol_file_command): Call set_initial_language.
3976 * symtab.c (find_main_psymtab): Add FIXME comment.
3977
45413b27
JG
3978Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3979
3980 * breakpoint.c, sparc-tdep.c: comment changes.
f7fe7196
JG
3981 * configure.in: removed target_dependent line.
3982
3983 * remote-mm.c (mm_attach): change printf to error to prevent
3984 fallthrough bug.
e7ae70e9
SG
3985 * remote-udi.c (udi_attach): change printf to error to prevent
3986 fallthrough bug.
45413b27 3987
5f1c39ef
JG
3988 * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
3989 calls to {fetch|store}_inferior_registers with calls to
3990 target_{fetch|store}_registers, for remote-target independence.
3991
dd9da95a
JG
3992Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com)
3993
3994 * Makefile.in: Fix bug I introduced in merging Rich's change.
3995 * infrun.c (child_create_inferior): Use proceed() rather than
3996 doing all the same stuff by hand.
3997
d40309c7
JG
3998Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3999
4000 * Makefile.in, configure.in: add support for files used only when
4001 configured native, that is, when host = target.
4002
a4afec9a
JG
4003Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4004
4005 * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
d40309c7 4006 stores are target dependent and were moved from xm to tm.
a4afec9a 4007
2e384b3b
JG
4008Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com)
4009
8c095066
JG
4010 * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
4011
2e384b3b
JG
4012 * config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
4013 overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
4014
dcc8abce
JG
4015Wed Sep 16 20:04:54 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4016
4017 * target.h (struct target_ops): removed to_convert_to_virtual and
4018 to_convert_from_virtual elements. Initializations removed from
4019 all static initializations.
4020 (target_convert_to_virtual, target_convert_from_virtual):
4021 removed.
4022 (host_convert_to_virtual, host_convert_from_virtual): Removed
4023 forward declarations.
4024 * target.c (cleanup_target): removed default assignments for
4025 to_convert_to_virtual and to_convert_from_virtual.
4026 * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
4027 removed.
4028 * findvar.c (value_of_register, value_from_register):
4029 target_convert_to_virtual inlined.
4030 * infcmd.c (do_registers_info): target_convert_to_virtual inlined.
4031 * valops.c (value_assign): target_convert_from_virtual inlined.
4032
2886f8b2
JG
4033Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com)
4034
c35475f9
JG
4035 * main.c (gdb_readline): Avoid printf_filtered, which sets char
4036 position wrong if used for the prompt.
4037 * utils.c (puts_filtered): Comment: NOT a puts() replacement!
4038
2886f8b2
JG
4039 Support for accessing arbitrary MIPS stack frames in memory.
4040
4041 * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
4042 set, run it before INIT_EXTRA_FRAME_INFO.
4043 * stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
4044
4045 * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
4046 (FP) value in the frame_info struct if it is zero (as from top of
4047 execution stack).
4048 (setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
4049
4050 * mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
4051 comes back as zero. So does FP_REGNUM, as a trigger for
4052 init_extra_frame_info.
4053
4054 * tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
4055 the program counter set before INIT_EXTRA_FRAME_INFO is run.
4056 (INIT_FRAME_PC): Defined to null.
4057 (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
4058 (FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
4059 Briefly explain MIPS stacks in GDB.
4060
d974236f
JG
4061Thu Sep 17 03:49:59 1992 John Gilmore (gnu@cygnus.com)
4062
cb1d36fc
JG
4063 * copying.awk, copying.c (show_copying_command,
4064 show_warranty_command): Rename from copying_info, warranty_info,
4065 to match command function conventions.
4066
d974236f
JG
4067 * utils.c (prompt_for_continue): Reinitialize more-counts
4068 before printing anything, and again afterward. Fix comments.
4069 (vfprintf_filtered): Eliminate static buffer; use auto buffer,
4070 or alloca() if needed.
4071
4072 * rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
4073 detect native versus cross-host.
4074
f4992534
SG
4075Wed Sep 16 21:57:14 1992 Stu Grossman (grossman at cygnus.com)
4076
4077 * m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
4078 Suns. Rename to m68k_saved_pc_after_call.
4079 * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
4080 m68k_saved... instead of sun3_saved...
4081
22473f72
JG
4082Wed Sep 16 17:00:07 1992 John Gilmore (gnu@cygnus.com)
4083
4084 * Makefile.in (update-depend, update-alldeps): Split out of
4085 setup-to-dist, for convenience in rebuilding the depend and
4086 alldeps.mak files.
4087 (assorted): Update to catch straggler files when building gdb.tar.Z.
4088
997cc2c0
JG
4089Tue Sep 15 01:18:50 1992 John Gilmore (gnu@cygnus.com)
4090
4091 Preliminary cleanup for splitting host/native/target.
4092
4093 * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
4094 here; it is dealt with at a gdb-target-independent level.
4095 * rs6000-tdep.c (single_step): Don't call ptrace, we are a
4096 high toned routine. Fix return type to void.
6bb40269
JG
4097 * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
4098 Rich and I believe the "real problem" was that both single_step
4099 and target_resume were issuing PT_CONTINUE calls. This would
4100 cause the second PT_CONTINUE to sometimes fail because the process
4101 was already running.
4102 * infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
997cc2c0 4103
5ca812d4
SG
4104Mon Sep 14 19:20:43 1992 Stu Grossman (grossman at cygnus.com)
4105
e7ae70e9
SG
4106 * energize.c (pty_to_kernel): Must check for EAGAIN as
4107 termination condition.
4108 (full_filename): Don't prepend dirname if filename begins with /.
4109 (breakpoint_notify, kernel_dispatch): Deal with DynamicLoad
4110 messages properly!!
4111 (getpty (NCR)): Lotsa bug fixes...
4112 (kernel_dispatch (case StopRType)): Use kill() instead of
4113 killpg() so we can deal with losing systems...
4114 (wait_for_events): Work around NCR select() lossage. It doesn't
4115 zero out readfds when select() returns zero.
4116 (energize_initialize): Use I_SETSIG to get SIGIO interrupts. Use
4117 getcwd() instead of getwd() (NCR getwd() seg faults).
4118 (energize_wait): Use sigaction() for NCR. Their version of signal()
4119 is unreliable by default.
4120
34da3608
SG
4121 * procfs.c (proc_wait): Call print_sys_errmsg() if we get an
4122 error from PIOCSWSTOP.
4123
a8e033f2
SG
4124 * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
4125 symfile.c, target.c, valprint.c: Use _filtered form of *printf.
4126 defs.h, utils.c: Make vfprintf_filtered global.
4127
e7ae70e9
SG
4128 * energize.c (send_location): New routine to consolidate all
4129 places where we must notify kernel of where the given pc is.
4130 (cplus_demangle): Put single-quotes around demangled names.
4131 (energize_call_command): Call send_location() after doing up,
4132 down, and frame commands.
4133
549ff100
RP
4134Fri Sep 11 18:28:28 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4135
d1d1ab12 4136 * doc/gdb.texinfo, doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: first
e7ae70e9 4137 pass at doc for two new remote targets---29K using UDI, and Tandem
d1d1ab12
RP
4138 ST2000 using STDBUG.
4139
4140 * doc/all.m4, doc/none.m4: new m4 switch, _ST2000__
4141
4142 * doc/all.m4: turn on H8/300 stuff for generic manual
4143
549ff100
RP
4144 * doc/gdbinv-s.m4.in: remove text on special procedures to continue
4145 after explicit call to breakpoint() in serial stubs.
4146
3de61d8c
JG
4147Fri Sep 11 01:34:25 1992 John Gilmore (gnu@sphagnum.cygnus.com)
4148
57a9bb5f
JG
4149 * mipsread.c: Clean up some white space.
4150 (parse_symbol): Handle stEnd of stFile.
4151 (parse_partial_symbols): Remove old #if 0'd code. Handle stLocal.
4152
3de61d8c
JG
4153 * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
4154 store_inferior_registers): Replace unexplained numbers
4155 with manifest constants from a DECstation header file.
4156 * xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.
4157 (REGISTER_U_ADDR): Fix up for Ultrix 4.2.
4158
4159 * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h.
4160
4161 * stack.c (_initialize_stack): "dow" should be a valid abbreviation
4162 for "down". Suggested by Richard Stallman.
4163
73386fff
KR
4164Thu Sep 10 15:26:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
4165
4166 * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
4167 redeclaration bug on SunOS 4.
4168
4ddd278f
JG
4169Wed Sep 9 17:36:53 1992 John Gilmore (gnu@cygnus.com)
4170
4171 * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
4172 * m68k-stub.c: Remove a few extraneous ANSI-isms.
4173 * remote-nindy.c (nindy_prepare_to_store): Only fetch regs if
4174 they aren't already there.
4175 * remote-vx.c (vx_prepare_to_store): Ditto.
4176 * xcoffread.c: Surround forward struct defns with #ifdef __STDC__.
4177
2640f7e1
JG
4178Wed Sep 9 16:50:22 1992 John Gilmore (gnu@cygnus.com)
4179
4180 Removed a large number of changes inserted by Per Bothner
4181 for C++ support. These will go back in when they've been
4182 examined.
4183
ed3f6049
SG
4184Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
4185
4186 * serial.h: Fix prototye for serial_raw().
4187 * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
4188 serial_write() to match prototypes.
4189 * remote-st2000.c (get_reg_name): Make *p be const.
4190
120f867e
KR
4191Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
4192
4193 * remote-nindy.c (nindy_fetch_registers): Make return type void,
4194 to agree with target structure field type.
4195 (nindy_store_registers): Ditto.
4196
4197 * Makefile (OPCODES): New var, pointing to opcodes library.
4198 (CLIBS, CDEPS): Include it.
4199 (saber_gdb): Load opcodes library.
4200
a090e706
SG
4201Tue Sep 8 15:22:06 1992 Stu Grossman (grossman at cygnus.com)
4202
4203 * a68v-xdep.c (store_inferior_registers): declare as void.
4204 * infptrace.c: HP/Apollos have ptrace.h in the wrong place.
4205 * remote-st2000.c: Massive changes to use new serial package.
4206 Also added 'connect' command to transparantly connect to serial
4207 port.
4208 * ser-termios.c: Big cleanup, use nicer coding conventions.
4209 * ser-bsd.c: New module, serial stuff for BSD systems.
4210 * serial.h: Define struct ttystate properly using HAVE_TERMIO.
4211 * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
4212
4468ccfb
RP
4213Fri Sep 4 18:53:57 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
4214
4215 * doc/gdb.texinfo: fix shameful error of agreement reported by
4216 jimb@occs.cs.oberlin.edu (Jim Blandy)
4217 * doc/gdb.texinfo: remove old partial discussion of remote serial
4218 protocol (via serial debug stubs)
4219 * doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: new section discussing
4220 use of serial debug stubs
4221
35fcebce
PB
4222Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
4223
35fcebce
PB
4224 * symfile.h: Declaration of set_demangling_style() moved
4225 here from demangle.h (which is now in ../include).
4226 * i386-xdep.c: Update comment.
35fcebce 4227
8005788c
RP
4228Thu Sep 3 13:44:46 1992 K. Richard Pixley (rich@sendai.cygnus.com)
4229
4230 * symtab.c (completion_list_add_symbol): restructured to optimize
2640f7e1
JG
4231 for time. First clip names that cannot match. Then clip any
4232 names we've already considered. Drop a redundant strncpy. Drop
4233 a redundant malloc and associated free for demangled names.
8005788c 4234
6c7e40b4
SG
4235Thu Sep 3 09:17:05 1992 Stu Grossman (grossman at cygnus.com)
4236
4237 * a68v-xdep.c (store_inferior_registers): Define as type void.
4238 * configure.in: Add host m68k-apollo*-bsd*.
4239 * demangle.c (struct demanglers): Use enum instead of constant
4240 value to keep braindamaged HP/Apollo compiler happy.
4241
546014f7
PB
4242Wed Sep 2 20:45:31 1992 Per Bothner (bothner@rtl.cygnus.com)
4243
4244 * utils.c (strcmp_iw): Add a hack to allow "FOO(ARGS)" to
4245 match "FOO". This allows 'break Foo' to work when Foo is
4246 a mangled C++ function. (See comment before function.)
4247
6131a42a
JG
4248Wed Sep 2 13:45:27 1992 John Gilmore (gnu@cygnus.com)
4249
82eabd43
JG
4250 * config/rs6000.mh (MH_CFLAGS): Circumvent IBM <rpc/rpc.h> bug,
4251 for files in vx-share/*.c.
4252 * xm-rs6000.h (fd_set): Circumvent the rs6000.mh circumvention,
4253 for normal GDB source files.
4254
6d7bfa9a
JG
4255 * Makefile.in (VERSION): Roll to 4.6.6.
4256
6131a42a
JG
4257 * tm-vx68.h, tm-es1800.h: Use tm-68k.h rather than tm-sun3.h.
4258 * tm-sun3.h: Remove STACK_END_ADDR, no longer used.
4259 * tm-sun3os4.h: Update comments.
4260 * xm-delta88.h: Remove STACK_END_ADDR.
4261
b52373a2
JG
4262Wed Sep 2 01:18:31 1992 John Gilmore (gnu@cygnus.com)
4263
6aef3bde
JG
4264 * Makefile.in (VERSION): Roll to 4.6.5.
4265
6131a42a
JG
4266 * infrun.c: Lint for recent `handle' changes.
4267
b52373a2
JG
4268 * ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
4269 * serial.h (EXFUN): Remove all uses, convert to PARAMS.
4270 * config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
4271 should include a ser-XXX.o module.
4272
4273 * dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
4274 * defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
4275
4276 * configure.in: Map unrecognized sun 68k's, sun sparcs, into
4277 known suns in configure.in, rather than mapping them to unique
4278 config files that happen to duplicate other config files.
4279 * config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
4280 * config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
4281
ebb3a1e5
JG
4282Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
4283
4284 * configure.in (*-*-sunos*): Use trailing * to match all
4285 sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
4286 (sparc-*-sunos3): Remove host & target. Sunos3 never shipped
4287 in production on Sun-4.
4288 ({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
4289 (m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
4290 (sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
4291
4292 * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
4293 config/sparc-noun.mt: New target configs for embedded.
4294 * config/sun4os3.{mh,mt}: Remove, never existed in production.
4295
4296 * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
4297 target definitions for embedded with and without underlines on
84a05e52 4298 identifiers.
ebb3a1e5
JG
4299
4300 * tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
4301 not a parameter of the CPU, but of the development environment.
4302 * tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
4303
ea678717
JG
4304Tue Sep 1 17:31:45 1992 John Gilmore (gnu@cygnus.com)
4305
4306 * breakpoint.c (breakpoint_re_set): Avoid setting source symtab
4307 (which involves reading in main's symtab) if we have no breakpoints.
4308
95ff889e
FF
4309Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
4310
4311 * dwarfread.c (cu_language): New local variable to record
4312 language for current compilation unit being processed.
4313 * dwarfread.c (set_cu_language): New local function to decode
4314 and record language for current compilation unit being processed.
4315 * dwarfread.c (synthesize_typedef): Add local function to
4316 synthesize a typedef for C++ classes, structs, unions, and
4317 enumerations.
4318 * dwarfread.c (read_structure_scope): Synthesize typedefs
4319 for C++ classes, structs and unions.
4320 * dwarfread.c (read_enumeration): Synthesize typedefs for
4321 C++ enumerations.
4322 * dwarfread.c (read_file_scope): Call set_cu_language to
4323 record language for current compilation unit. After symtab
4324 is built, save this recorded language.
4325 * dwarfread.c (process_dies, add_partial_symbol, struct_type,
4326 scan_partial_symbols, new_symbol): Recognize TAG_class_type.
4327 * dwarfread.c (add_partial_symbol): Synthesize partial symbol
4328 typedefs for C++ classes, structs, unions, and enumerations.
4329 * dwarfread.c (scan_compilation_units): Call set_cu_language
4330 to record language for current compilation unit.
4331 * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here
4332 for TAG_enumeration_types, rather than in add_partial_symbol.
4333 * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type
4334 case with class, struct, and union type cases, now that they are
4335 the same. Remove tests for non-NULL name attributes, now done
4336 by callers.
4337 * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
4338 treat as alias for TYPE_CODE_STRUCT for now.
4339
b68b44fa
ILT
4340Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
4341
4342 * Makefile.in: map "gdb" through program_transform_name when
4343 installing.
4344
3877a219
FF
4345Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
4346
4347 * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
4348 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4349 Use "regi" for local indexing through register numbers, reserving
4350 "regno" for the name of a specific register passed as an input
4351 parameter. Fix bug propagated through all versions that sometimes
4352 used regno as an index when it should have been regi, thus using
4353 -1 as an index in some cases.
4354
3402b1cf
PB
4355Sun Aug 30 18:15:17 1992 Per Bothner (bothner@rtl.cygnus.com)
4356
4357 * cplus-dem.c, demangle.h: Moved to ../libiberty and ../include,
4358 respectively, so same demangler can be used by other programs.
4359 * Makefile.in: Remove demangler stuff.
4360 * Makefile.in (depend): Pass -I../readline (needed for main.c).
4361 * demangle.c (_initialize_demangler): Tell demangler which
4362 CPLUS_MARKER to assume.
4363
d6776adb
JG
4364Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
4365
9b280a7f
JG
4366 RS/6000 portability changes (for hosting cross-debuggers).
4367
4368 * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
4369 * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
4370 xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
4371 * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
4372 * stabsread.c (define_symbol): Remove RS/6000 dependencies.
4373 * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
4374 (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
4375 (NO_SINGLE_STEP): Add, target-dependent.
4376 (loadinfotextindex): Lowercase, remove "aix_".
4377 * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
4378 (NO_SINGLE_STEP): Remove, target-dependent.
4379 * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
4380 * xcoffread.c: Only build file if RS/6000 native GDB.
4381 (build_function_symbol): Remove #if 0'd code.
4382 * rs6000-tdep.c: Cleanup. Add static fn protos.
4383 Use CORE_ADDR for addresses throughout. Make void fns void.
4384 (pop_dummy_frame): Add FIXME about bogosity of design here.
4385 (rs6000_struct_return_address): Ditto.
4386 (frameless_function_invocation, frame_get_cache_fsr,
4387 frame_initial_stack_address, xcoff_relocate_symtab,
4388 xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
4389 add_text_to_loadinfo, find_toc_address): Move from xdep file.
4390 Use CORE_ADDRs. Change identifiers to lowercase.
4391
4392 * rs6000-xdep.c: Make whole file conditional on native RS/6000,
4393 supplying dummy routines if non-native. Add prototype for
4394 static exec_one_dummy_insn. Move a mess of functions to
4395 rs6000-tdep.c (as above). Remove #if 0'd code.
4396
4397 * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
4398 (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
4399 * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
4400
4401 * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
4402 for callers.
4403
d6776adb
JG
4404 * vx-share/README, nindy-share/README: New files describing
4405 how these directories' code is shared, and with whom.
4406
ef131e13
JG
4407Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
4408
4409 * configure.in (target configurations): Reformat into table.
4410 Remove unsupp. Amigados host and target. Ditto Mach 386 target.
4411
4412 * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
4413 * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
4414 * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
4415 * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
4416 * config/nindy960.mt: Remove useless MT_CFLAGS setting.
4417 * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
4418
4419 * Makefile.in (config-check): Add command to check whether
4420 configure.in is consistent with config/*.
4421
19758e9e
JG
4422Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
4423
4424 * configure.in (host configurations): Reformat nested cases into
4425 easy-to-maintain table.
b1aa08e2
JG
4426 (m68k-altos-*, i386v*): We don't care whether coff encap is used.
4427 config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
19758e9e 4428
38e9ed49
FF
4429Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
4430
4431 * cplus-dem.c: Reorder args to most local functions to make them
4432 follow the consistent pattern of struct work_stuff pointer first,
4433 followed by pointer into string being demangled, followed by
4434 pointer to the string where the result is being stored, followed
4435 by other args. Also generally replace most variables of name
4436 "type" with "mangled" for consistency. They all pointed to the
4437 same string but half were one name and half the other.
4438 * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
4439 * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
4440 use whenever a qualified name is being demangled.
4441 * cplus-dem.c (do_type): Qualified names are treated similarly
4442 to fundamental types, not as modifiers of fundamental types.
4443
ee97d673
SG
4444Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
4445
38e9ed49
FF
4446 * configure.in: Add sparclite as a target.
4447
ee97d673
SG
4448 * sparc-stub.c (handle_exception): Flush instruction cache just
4449 before returning to the user. (hexToInt): Fix overzealous cleanup.
4450
93220abe
FF
4451Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
4452
4453 * infrun.c (handle_command): Rewrite to allow multiple signal
4454 numbers, signal number ranges, and to recognize "all" to mean all
4455 signals except those used by the debugger.
4456 * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
4457 to set or reset actions for specific signals.
4458
dac9734e
FF
4459Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
4460
4461 * coffread.c (decode_type): Call alloc_type to alloc new
4462 types.
4463 * stabsread.c (read_array_type, read_range_type, define_symbol):
4464 Call alloc_type to alloc new types.
4465 * stabsread.c (define_symbol): Move dbl_valu symbol field data
4466 from type_obstack to symbol_obstack.
4467 * stabsread.c (define_symbol): Move typedef_sym from type_obstack
4468 to symbol_obstack.
4469 * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
4470 associated with a type, using the same mechanism as was used to
4471 allocate space for the type structure itself.
4472 * coffread.c (patch_type, coff_read_struct_type,
4473 coff_read_enum_type): Use TYPE_ALLOC.
4474 * dwarfread.c (struct_type): Use TYPE_ALLOC.
4475 * gdbtypes.c (create_array_type, check_stub_method,
4476 allocate_cplus_struct_type): Use TYPE_ALLOC.
4477 * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
4478 * stabsread.c (read_struct_type, read_array_type, read_enum_type,
4479 read_range_type): Use TYPE_ALLOC.
4480
ca8820f9
FF
4481Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
4482
4483 * breakpoint.c (breakpoint_re_set): Select a default source
4484 symtab if one is not currently selected.
4485 * utils.c (query): Call wrap_here before building the output
4486 query string, to turn off wrapping and flush any buffered output.
4487 Otherwise our query may end up in the wrap buffer and never be
4488 seen by the user.
4489 * eval.c (evaluate_subexp): Report error when attempting to
4490 evaluate subscript for types without a target type, rather
4491 than dumping core by using the NULL pointer.
4492 * symfile.c (symbol_file_command): Forget current_source_symtab
4493 and current_source_line when discarding symbol table.
4494
42e8b658
JG
4495Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
4496
4497 Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
4498
4499 * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
4500 * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
4501
39a13178
SG
4502Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
4503
4504 * remote.c (remote_open): Fix baud rate setting to make -b flag
4505 work. (remote_wait): Change 'T' message parser to deal with new
4506 improved format which allows stub to send an arbitrary bunch of
4507 registers.
4508 * sparc-stub.c: General cleanups. (trap_low, handle_exception):
4509 make all this re-entrant by storing all state on the stack. Clean
4510 up memory error trapping. (computeSignal, set_debug_traps):
4511 make it all table driven. Make a start at a baud rate setting command.
4512
0d6d92c7
ILT
4513Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
4514
664cf438
ILT
4515 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
4516
0d6d92c7
ILT
4517 * remote-vx.c: redefine malloc to avoid buggy declaration on
4518 RS/6000 <rpc/types.h>.
4519 xm-rs6000.h: include <sys/select.h> to define fd_set for
4520 <rpc/svc.h> on RS/6000.
4521
4bbefa86
ILT
4522Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
4523
4524 * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
4525 recursive invocations of make. Always create installation
4526 directories.
4527
d6b38bfb
PB
4528Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
4529
4530 * m68k-pinsn.c: Minor fix in style of output (don't use
4531 range to indicate floating point control registers).
4532
e893a126
JG
4533Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
4534
67c9f54c
JG
4535 * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
4536
e893a126
JG
4537 * infcmd.c (registers_info): Handle multiple register names.
4538 Changes inspired by Roland McGrath.
4539
4ecee2f9
SG
4540Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
4541
4542 * sparc-stub.c: New file. Mix it with your SPARClite
4543 application, and it will speak GDB remote protocol!
4544 * remote.c (remote_wait): Change 'T' (expedited reply) message to
e893a126 4545 deal with arbitrary registers. Needed for sparc-stub.
4ecee2f9 4546
3dc755fb
FF
4547Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
4548
4549 * cplus-dem.c (cplus_markers): Add table for gnu style and
4550 use throughout, in place of compile time constant CPLUS_MARKER.
4551 * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
4552 * cplus-dem.c (cfront_special): New function, as suggested
4553 by pfieland@stratus.com.
4554 * cplus-dem.c (forget_types): New function.
4555 * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
4556 demangle_prefix().
4557 * cplus-dem.c (mop_up): Call forget_types().
4558 * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
4559 Use throughout, instead of checking current_demangling_style.
4560 * cplus-dem.c (demangle_signature): When finding an explicit
4561 start of function args, forget all remembered types for
4562 lucid/cfront style demangling.
4563 * cplus-dem.c (demangle_prefix): In a sequence of two or more
4564 underbar characters, use last pair as the delimiter. Hoist
4565 gnu_special() call up to cplus_demangle(). Call cfront_special()
4566 when appropriate.
4567 * cplus-dem.c (cplus_special): Fix virtual table name demangling
4568 for inherited classes.
4569 * cplus-dem.c (demangle_args): Document quirks of numbered
4570 references to previously seen types.
4571 * dbxread.c (read_ofile_symtab, process_one_symbol):
4572 Use AUTO_DEMANGLING rather than explicitly checking
4573 current_demangling_style.
4574 * demangle.h: Add some comments.
4575 * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
4576 CFRONT_DEMANGLING): New macros.
4577 * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
4578 not found in the actual producer string produced by lcc.
4579 * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
4580 than explicitly checking current_demangling_style.
4581
4e8ea7a6
JG
4582Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
4583
4584 * breakpoint.c (enable_longjmp_breakpoint,
4585 disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
4586 Check for duplicate breakpoints at the same address. Bug report
4587 and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
4588
7b5d9650
FF
4589Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
4590
4591 * buildsym.c (end_symtab): Document that end_symtab can return
4592 NULL under non-error conditions.
4593 * dwarfread.c (read_file_scope): Guard against dereferencing NULL
4594 returned from end_symtab for empty compilation units.
4595
6872cfda
JG
4596Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
4597
4598 * am29k-tdep.c: Lint from DECstation compiler.
4599 * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
4600 As the man page says, "Sometimes you just can't get lint to shut
4601 up". That doesn't mean you should blow away the code it won't
4602 shut up about.
4603 * mips-xdep.c: Revise stubbing-out of code until Rich cleans
4604 it up over the next few weeks. Make mips x 29k build.
4605 * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
4606 (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
4607 but leave it as a comment because the breakpoint instruction
4608 is not easily accessible at this moment (it's static, and if
4609 we define one here, it goes into every file compiled).
4610
a679650f
FF
4611Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
4612
4613 * Makefile.in (VERSION): Bump to 4.6.3.
4614 * dwarfread.c (scan_partial_symbols): Skip over DIE's within
4615 function scopes when building partial symbol tables.
4616 * objfiles.c (open_existing_mapped_file): Make it clear in
4617 warning message that out of date mapped files are ignored.
4618 * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
4619 unit source file name in error message.
4620
50055e94
FF
4621Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
4622
4623 * dwarfread.c (struct dieinfo): Add has_at_byte_size.
4624 * dwarfread.c (struct_type): In absence of AT_byte_size for
4625 bitfield, use size of object of member's type for the size of
4626 the anonymous object containing the bit field.
4627 * dwarfread.c (completedieinfo): Set has_at_byte_size when
4628 an AT_byte_size attribute is seen.
4629 * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
4630 union aux_ext (was aux_ent).
4631 * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
4632 unsigned char* to char*, for Lucid compiler.
4633 * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
4634 to be correct type (from unsigned char* to char*).
4635 * valprint.c (type_print_derivation_info): Minor tweak to placement
4636 of commas in derived class printing.
4637 * xcoffread.c (builtin_type): Fix misspelling in fatal message.
4638
f6492282
SC
4639Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4640
4641 * xm-go32.h: Define LSEEK_NOT_LINEAR
a65841d7 4642 * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
f6492282
SC
4643 then work out the lseek positions of newlines by running through
4644 the file and `tell'ing. This makes source file listing work on
4645 OS's where the relationship between physical position in file and
4646 canonical position is indeterminate, eg VMS and DOS.
4647
8275e802
FF
4648Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
4649
c02a37ea
FF
4650 * stabsread.c: Ensure that all members of all allocated structures
4651 are initialized to known state to avoid hard to find bugs with gdb
4652 using fields containing random data.
3416d90b
FF
4653 * buildsym.c (start_subfile): Compact dirname initialization.
4654 * buildsym.c (patch_subfile_names): New function.
8275e802 4655 * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
3416d90b
FF
4656 * buildsym.c (end_symtab): Free all malloc'd subfile fields.
4657 * buildsym.h (patch_subfile_names): Add prototype.
4658 * dbxread.c (process_one_symbol): Call patch_subfile_names.
8275e802 4659
38094c60
JG
4660Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
4661
e7ae70e9
SG
4662 * remote-udi.c: Update comments.
4663
38094c60
JG
4664 * remote.c (getpkt): Only force retransmission ten times;
4665 after that, assume bug in target code, and handle pkt anyway.
4666
d0d0f75e
SG
4667Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
4668
4669 * configure.in: Add support for apollo 68k under BSD environment.
4670 * xm-apollo68b.h: New file to support above.
4671
9e4667f6
FF
4672Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
4673
4674 * configure.in: Recognize i486 host cpu.
4675 * valprint.c (type_print_derivation_info): Print derivation info
4676 in same form as class declarations in source.
4677 * valprint.c (type_print_varspec_suffix): Split arg printing
4678 code out to type_print_args function.
4679
cd46ffad 4680Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 4681
cd46ffad
FF
4682 * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
4683 at_import, at_frame_base.
4684 * dwarfread.c (completedieinfo): Remove cases for obsolete
4685 AT_visibility, AT_import, and AT_frame_base attributes.
4686 * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
4687 i860, which can keep up to 4 shadow breakpoints.
4688 * tm-stratus.h (USG): Define.
4689 * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
4690 * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
4691 * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
4692 * xm-stratus.h (NO_JOB_CONTROL): Remove define.
4693 * config/stratus.mt (TDEPFILES): Include files available from
4694 stratus that are not yet in release pending receipt of paperwork
4695 at FSF.
4696 * buildsym.c (finish_block): Minor code format change.
4697 * gdbtypes.h (struct field): Add to comments.
4698 * gdbtypes.h (virtual_field_bits): Add to comments.
4699 * objfiles.c (allocate_objfile): Change obstack interface to
4700 match FSF merging efforts.
ddce75e0 4701
cd46ffad 4702Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 4703
cd46ffad
FF
4704 * Makefile.in (VERSION): Bump to 4.6.2.
4705 * Makefile.in (SFILES_MAINDIR): Add stabsread.c
4706 * Makefile.in (OBS): Add stabsread.o
4707 * Makefile.in (stabsread.o): Add build rule.
4708 * stabsread.c, stabsread.h: New files.
4709 * buildsym.c: Split out stabs specific support to stabsread.c.
4710 * buildsym.h: Split out stabs specific support to stabsread.h.
4711 * dbxread.c (stabsread.h): Include
4712 * dbxread.c (dbx_new_init): Call stabsread_new_init.
4713 * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
4714 * dbxread.c (read_ofile_symtab): Call end_stabs.
4715 * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
4716 * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
4717 * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
4718 really_free_pendings to cleanups.
4719 * elfread.c (elf_new_init): Call stabsread_new_init.
4720 * gdbtypes.c: Small changes to maintenance commands.
4721 * mipsread.c (stabsread.h): Include.
4722 * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
4723 * xcoffread.c (stabsread.h): Include.
4724 * xcoffread.c (global_stabs): Remove redundant def.
4725 * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
ddce75e0 4726
d7808603
FF
4727Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
4728
4729 * lmode_inferior_valid, lmode_ours_valid: New static vars.
4730 * inflow.c (terminal_init_inferior, terminal_inferior,
4731 terminal_ours_1, initialize_inflow): Record and use state
4732 of lmode_inferior_valid and lmode_ours_valid.
4733
cd46ffad
FF
4734Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4735
4736 * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
4737 include <sgtty.h> on USG. (from sef).
4738
4739 * depend: es1800 dependency needed here.
4740
c0f1085b
FF
4741Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
4742
4743 * buildsym.c (read_struct_type): Initialize structs allocated
4744 with alloca, to avoid using random values from stack later on.
4745 * defs.h (fprintf_filtered): Add prototype.
4746 * gdbtypes.c (check_stub_method): Fix misleading comments.
4747 * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
4748 support functions.
4749 * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
4750 small changes to maint support functions.
4751 * gdbtypes.h (cplus_struct_type): Reorganize member ordering
4752 for some fields and expand comments.
4753 * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
4754 macro and track change to obstack_full_begin macro.
4755 * utils.c (fprintfi_filtered): New function.
4756 * valprint.c (type_print_base): Fixup field printing to not
4757 print extraneous lines and not print bogus "no data fields"
4758 messages for C++ classes with no data members. Also use new
4759 fprintfi_filtered function.
4760
cd46ffad
FF
4761Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4762
4763 * configure.in: es1800 ok for 68000 too.
4764
c0f1085b
FF
4765Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4766
4767 * configure.in: echo error messages to stderr, not stdout
4768
4769Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4770
4771 * configure.in: recognize hppa* instead of hppa
4772
f8e32b6e
SG
4773Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
4774
e7ae70e9
SG
4775 * energize.c: Second cut at DynamicLoad message handling.
4776
4777 * energize.c: Relativize pathnames in #include statements.
4778 * (kernel_dispatch): Better error messages for unknown protocol
4779 messages.
4780 * (kernel_dispatch): First cut at DynamicLoad message handling.
4781
f8e32b6e
SG
4782 * Makefile.in: Remove -I../readline from all compilations,
4783 include a special case for main.o instead.
4784
d4902ab0
FF
4785Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
4786
51a9d78c
FF
4787 * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
4788 error if it fails to find a member type, rather than return NULL
4789 and trigger a coredump.
4790 * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
4791 lookup_demangled_partial_symbol,): Ask demangle_and_match to
4792 match on complete demanglings, including argument lists for member
4793 functions, rather than just accepting the first demangling that
4794 matches the class and function name.
d4902ab0
FF
4795 * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
4796 to start_symtab as the directory name.
4797 * dwarfread.c (completedieinfo): Strip off any leading hostname
4798 portion of the AT_comp_dir attribute string. Gdb doesn't know
4799 what to do with them (FIXME).
4800
cdaa27e9
SG
4801Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
4802
cb48d806
SG
4803 * breakpoint.c (commands_command): Simplify code a bit, remove
4804 unnecessary fflush().
4805
cdaa27e9
SG
4806 * Makefile.in (OTHERS): Add gcc.patch.
4807 * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
4808
345e9ab8
FF
4809Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
4810
4811 * dwarfread.c (LCC_PRODUCER): Change to match current NCR
4812 lcc producer string.
4813
3ddcdc59
SG
4814Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
4815
4816 * WHATS.NEW renamed to NEWS.
4817
d23639b2
FF
4818Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
4819
4820 * dbxread.c, dwarfread.c: Re-enable experimental code to
4821 automatically select demangling style.
4822 * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
4823 DEMANGLING_STYLE, to make more descriptive. Revert back to
4824 "auto" as default. Comment use.
4825 * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
4826 * Makefile.in (${DEMANGLER}.o) Remove target and special
4827 compilation rule.
4828
5e85287e
FF
4829Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
4830
4831 * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
4832
d1fbc20d
SG
4833Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
4834
4835 * Makefile.in, demangle.c: Change default demangling style to
4836 gnu.
4837 * Makefile.in: Update version to 4.6 !!!
4838 * README, WHATS.NEW: Update for 4.6.
4839
7e94a17b
KR
4840Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
4841
7b8ca0a0
KR
4842 * i960-tdep.c (frame_args_address): If arg pointer can't be found,
4843 use frame address.
4844
7e94a17b
KR
4845 * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
4846 nodes as base classes.
4847
efcc6e06
SG
4848Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
4849
d1fbc20d
SG
4850 * alldeps.mak, depend: Update.
4851
930acbe5
SG
4852 * xcoffread.c: Add decl for section_offset to keep prototype happy.
4853
67ba524f
SG
4854 * Makefile.in (VERSION): 4.5.9.
4855
efcc6e06
SG
4856 * xm-hp300bsd.h: Add decl for strdup().
4857 * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
4858 PDR. Cleanup a few things, fix compilation warnings.
4859
2dbde378
FF
4860Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
4861
4862 * Makefile.in (DEMANGLING_STYLE): New define to set default
4863 demangling style for C++. Defaults to "auto".
4864 * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
4865 * Makefile.in (SFILES_MAINDIR): Add demangle.c
4866 * Makefile.in (OBS): Add demangle.o
4867 * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
4868 Remove compile time decisions about demangling style and replace
4869 with runtime decisions using current_demangling_style.
4870 * cplus-dem.c (main): Expand code included during building of
4871 standalone demangler to recognize demangling style options.
4872 * dbxread.c (demangle.h): Include.
4873 * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
4874 demangling style if processing g++ code and current demangling style
4875 is auto (Note: this feature currently disabled.)
4876 * demangle.c: New file, generic demangling control.
4877 * demangle.h (demangling_styles): New enumeration to select one
4878 of several demangling styles. Also define string names for each
4879 style.
4880 * demangle.h (set_demangling_style): Add prototype.
4881 * dwarfread.c (demangle.h): Include.
4882 * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
4883 New producer string prefixes to recognize.
4884 * dwarfread.c (handle_producer): Consolidate actions for specific
4885 producers. Set demangling style based on producer string if
4886 current style is auto. (Note: this feature currently disabled.)
4887 * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
4888
49f3be18
JG
4889Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
4890
4891 * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
4892
a252e715
PB
4893Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
4894
4895 * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
4896 * c-exp.y: Call lookup_signed_typename() after seeing
4897 "signed". This handles "signed char" correctly.
4898 * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
4899 keywords before a type specifier.
4900
311592ff
FF
4901Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
4902
4903 * command.c (lookup_cmd_1): Clarify descriptive comments.
4904 * gdbcmd.h (maintenanceprintlist): Add declaration.
4905 * main.c (maintenanceprintlist): Add definition.
4906 * main.c (gdb_completer_command_word_break_characters): Add.
4907 * main.c (symbol_completion_function): Switch completer word
4908 break character sets dynamically, based on whether completion is
4909 being done on commands or on something else.
4910 * main.c (initialize_cmd_lists): Init maintenanceprintlist.
4911 * maint.c: Include demangle.h.
4912 * maint.c (maintenance_demangle): New function.
4913 * maint.c (maintenance_print_command): New function.
4914 * maint.c (_initialize_maint_cmds): Reorganize some commands
4915 under new maintenance print subcommand.
4916
5c5b5d4b
PB
4917Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
4918
4919 * gdbtypes.c (lookup_struct_elt_type): If the input type is
4920 TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
4921 target type. Otherwise, 'whatis this.field' wouldn't work,
4922 which would be inconsistent, since 'print this.field' works.
4923 * buildsym.c (read_struct_type, read_enum_type): Clear
4924 TYPE_FLAG_STUB flag.
4925 * buildsym.c (cleanup_undefined_types): Don't rely on a
4926 flawed "Reasonable test to see if" a type has been defined
4927 since it was referred to; now we can just see if the
4928 TYPE_FLAG_STUB flag has been cleared.
4929 * valprint.c (print_type_base): Emit public/protected/private
4930 labels for methods as well as fields. Also, indent these labels
4931 2 spaces instead of 4, for a more conventional "look".
4932 * symtab.c (gdb_mangle_name): Undo Fred's change, unless
4933 GCC_MANGLE_BUG is defined. Also, handle destructors specially.
4934 * gcc.patch: New file. Contains patch for gcc (so people
4935 with gdb-2.2.x won't have to wait for a new gcc release).
4936
c5f5b482
KR
4937Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
4938
7eec00ed
KR
4939 * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
4940 (print_addr): Call print_address to show symbolic version as well.
4941
c5f5b482
KR
4942 * remote-vx.c (vx_kill): Don't look for arguments; they aren't
4943 being passed.
4944 (vx_read_register): Declare inferior_fp_regs. Delete code for
4945 copying "inferior_registers" around; the values are already in var
4946 "registers". Use correct size for register set.
4947
4948 * remote-vx.c (vx_write_register): Don't try writing FP regs; the
4949 target doesn't support it.
4950 (vx_read_register): Don't try reading them either.
4951
4952 * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
4953 VxWorks back end reads them in one contiguous set except for this
4954 one.
4955 (register_names): Change "pc" to "pcw" to avoid confusion printing
4956 "$pc".
4957 * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
4958 find the PC under VxWorks.
4959
8050a57b
FF
4960Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
4961
4962 * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
4963 to create new blank types, instead of handcrafting them.
4964 * defs.h (printfi_filtered): Add prototype.
4965 * utils.c (printfi_filtered): New function.
4966 * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
4967 to simplify the code. Other cleanups.
4968 * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
4969 * gdbtypes.h (struct cplus_struct_type): Add comments describing
4970 use of various fields.
4971 * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
4972 * c-exp.y (%token): Add CLASS as a token for C++, add grammar
4973 production that currently treats it exactly the same as STRUCT.
4974 * c-exp.y (yylex): Recognize "class" as token CLASS.
4975 * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
4976 * symtab.c (decode_line_1): Fix to pass quoted args on down to
4977 general symbol handling code. Call cplus_mangle_opname with
4978 DMGL_ANSI.
4979 * symtab.c (decode_line_2): Print demangled function names in
4980 breakpoint menus, instead of just file and line number.
4981 * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
4982 * valprint.c (type_print_base): Print "class" for C++ classes,
4983 rather than "struct". Print section labels for public, protected
4984 and private members of C++ classes.
4985 * values.c: Include demangle.h.
4986 * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
4987
e17e8e0e
SG
4988Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
4989
4990 * Makefile.in (VERSION): Update to 4.5.8.
4991
4992 Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
784fd92b
SG
4993
4994 * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
4995 prevent crashes when examining cross-targets.
4996 * dbxread.c (process_one_symbol): Include directory name when
4997 calling start_subfile for SOL & BINCL symbols. This allows gdb to
4998 find include files, and yacc/lex sources when the cwd doesn't match
4999 that in which the object was compiled.
5000 * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
5001 msymbols.
5002 * symtab.c (lookup_symtab_1): Rewrite. It now handles include
5003 files.
5004
2e9309df
FF
5005Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
5006
5007 * maint.c (maintenance_command, maintenance_info_command):
5008 Install with allow_unknown as 0 and call help_list to show
5009 list of possibilities when no subcommand is specified.
5010
498f1df0
FF
5011Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
5012
5013 * configure.in: Add m68k-ericsson-*.
5014 * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
5015
0239d9b3
FF
5016Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
5017
5018 * maint.c: New file.
5019 * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
5020 * Makefile.in (OBS): Add new file maint.o.
5021 * defs.h (command_class): Add class_maintenance.
5022 * defs.h (MAINTENANCE_CMDS): Default to including maintenance
5023 commands. Allow for them (and other nonessential parts of gdb)
5024 to be selectively left out under special circumstances.
5025 * gdbtypes.c (recursive_dump_type): New function; supports
5026 maintenance print-type command.
5027 * gdbtypes.h (recursive_dump_type, maintenance_print_type):
5028 Add prototypes.
5029 * main.c (maintenancelist, maintenanceinfolist): Add maintenance
5030 command lists.
5031 * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
5032 initializers. Add initializations for setprintlist, showprintlist,
5033 setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
5034 * printcmd.c (maintenance_print_type): New maintenance cmd.
5035 * valprint.c (setprintlist, showprintlist): Move to main.c, as
5036 implied by comment that all cmd lists are owned by main.c.
5037 * infcmd.c (unsetlist): Move to main.c, as implied by comment
5038 that all cmd lists are owned by main.c.
5039 * language.c (setchecklist, showchecklist): Move to main.c, as
5040 implied by comment that all cmd lists are owned by main.c
5041 * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
5042 deletelist): Remove redundant declarations (also in gdbcmd.h).
5043 * symmisc.c (printsyms_command): Now maintenance_print_symbols.
5044 * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
5045 * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
5046 * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
5047 * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
5048 maintenance_print_msymbols, maintenance_print_objfiles):
5049 Add prototypes.
5050 * symmisc.c (printsyms_command, printpsyms_command,
5051 printmsyms_command, printobjfiles_command): Removed from
5052 _initialize_symmisc.
5053 * main.c (dump_me_command): Moved to maint.c and renamed to
5054 maintenance_dump_me.
5055 * breakpoint.c (all_breakpoints_info): Rename to
5056 maintenance_info_breakpoints.
5057 * breakpoint.c (_initialize_breakpoint): Convert add_info of
5058 all_breakpoints_info to add maintenance_info_breakpoints to the
5059 maintenanceinfolist instead.
5060 main.c (initialize_main): Set up maintenance class commands.
5061
e7ae70e9
SG
5062Sun Jul 5 11:03:53 1992 Stu Grossman (grossman at cygnus.com)
5063
5064 * energize-patches: Fix minor problems with building energize lib.
5065
5066 * energize-patches: Change names of all cadillac procedure calls
5067 to be energize procedure calls. Simplify many hooks by moving
5068 tests energize.c. Configure energize, and build it automatically now.
5069
91fef76b
FF
5070Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
5071
5072 * Makefile.in (VERSION): Bump to 4.5.7.
5073 * cplus-dem.c (demangle_args): Validate index for previously
5074 seen type to guard against bogus values from malformed manglings.
5075 * valops.c (value_struct_elt_for_reference): Guard against
5076 blindly using NULL return value from lookup_symbol.
5077
e7ae70e9
SG
5078Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com)
5079
5080 * cadillac.c, cadillac-patches: Rename to energize.c and
5081 energize-patches. Change all routines and variables named
5082 'cadillac*' to 'energize*'. Create new file called energize.h to
5083 hold all interface declarations.
5084
5085 * deblib/connection/*: Move all of this stuff into energize/, but
5086 delete unneeded files.
5087
ec8ceca3
JG
5088Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
5089
23053b80
JG
5090 * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
5091
ec8ceca3
JG
5092 * buildsym.c (finish_block): Fix thinko `inner block' complaints.
5093 * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
5094 * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
5095 child processes, to avoid dead ones "hanging around" after GDB exits.
5096 (attach): Always stop the process if it needs it. Set RLC flag
5097 when attaching running processes, so it will continue if we detach
5098 it, quit, or are killed.
5099 (detach): Clear faults and set RLC flag to make process run
5100 when we close it.
5101 (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
5102 Callers changed.
5103 (info_proc): Open process O_RDONLY, so we can see any process,
5104 even those controlled by debuggers.
5105 * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
5106
2670f34d
JG
5107Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
5108
5109 Relocate symbols using an array of section_offsets, rather than a
5110 single `addr' or `offset'. This makes Solaris-2 support work, and
5111 permits better VxWorks (and maybe xcoff) support later.
5112
5113 * symtab.h (struct section_offsets): New structure for keeping
5114 a set of offsets, rather than a single one.
5115 (struct objfile): Replace addr with section_offsets member.
5116 * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
5117 * gdb-stabs.h: New include file with `symbol type specific'
5118 parameters for psymtabs and objfiles.
5119 * Makefile.in (HFILES): Add gdb-stabs.h.
5120 * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
5121 * coffread.c: Conforming changes. Fake offset array always 0.
5122 * dbxread.c: Conforming changes.
5123 (struct dbx_symfile_info): Move to gdb-stabs.h.
5124 (start_psymtab): Call elfstab_offset_sections to calculate good
5125 offsets for this source file, based on the ELF symbol table info.
5126 (read_ofile_symtab): Yank N_CATCH, which is dead.
5127 (process_one_symbol, N_CATCH): Yank.
5128 (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
5129 Relocate with SECT_OFF_TEXT.
5130 (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
5131 to distinguish relocatable from absolute symbols. Then, if not
5132 absolute, do:
5133 (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
5134 (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
5135 (", N_ROSYM): SECT_OFF_RODATA.
5136 (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
5137 (dbx_symfile_offsets): Add to translate addr to offset.
5138 * dwarfread.c: Conforming changes. Single offset currently used.
5139 * elfread.c: Add various complaints about elf/stab stuff.
5140 #include gdb-stabs.h. Conforming changes, using a single offset.
5141 (elf_symtab_read): Record info from BSF_FILE symbols, and local
5142 variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
5143 for later use in building psymtabs.
5144 (elf_symfile_read): Allocate dbx_symfile_info here, to keep
5145 the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
5146 (free_elfinfo): New fn, frees all chained stab_section_infos
5147 in an objfile, and zaps the start-of-chain pointer.
5148 (elfstab_offset_sections): New fn, looks in stab_section_info
5149 chain to determine section bases to relocate a psymtab's worth
5150 of symbols, as they are being read.
5151 * mipsread.c: Conforming changes. Stabs-reading will relocate
5152 using one offset. MIPS-reading will not relocate at all.
5153 * partial-stab.h: Relocate different symbol types using different
5154 offsets from section_offsets.
5155 * symfile.c: Conforming changes.
5156 (find_lowest_section): Unused function to use later
5157 to free us from the Tyranny of the Text Section.
5158 (syms_from_objfile): Translate absolute arg ADDR to offsets used
5159 in all lower layers of symbol reading. Call format-specific
5160 sym_offsets function to initialize offsets for high speed symbol
5161 reading.
5162 (symbol_file_add): Call reinit_frame_cache so callers don't have to.
5163 (symbol_file_command, add_symbol_file_command): Callers changed.
5164 * symmisc.c (dump_psymtab): Print new relocation parameters.
5165 * xcoffread.c: Corresponding changes.
5166
5167 * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
5168 * main.c (main): Read the $HOME/.gdbinit file before processing
5169 the argv arguments (e.g. reading symbol files or core
5170 files). This allows global parameters to be set, which will apply
5171 during the symbol reading. The ./.gdbinit is still read after
5172 argv processing.
5173 * symtab.c (list_symbols): `i variables' shouldn't show enum values.
5174 * xcoffexec.c: Clean up quote inside comment.
5175
4ed3a9ea
FF
5176Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
5177
5178 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
5179 core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
5180 eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
5181 i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
5182 infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
5183 putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
5184 sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
5185 tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
5186 values.c, xcoffread.c:
5187 Remove "(void)" casts from function calls where the return value
5188 is ignored, in accordance with GNU coding standards.
5189
4c7c6bab
JG
5190Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
5191
5192 * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
5193 * partial-stab.h: Ignore N_ENDM.
5194 * elfread.c (elf_symtab_read): Ignore symbols that don't have a
5195 CODE or DATA section attachment. This eliminates a lot of random
5196 values from shared libraries, which screw up the ordinary symbols
5197 in the address ranges they happen to overlap.
5198 * buildsym.c (define_symbol): Eliminate special tests
5199 for function types; move into "function" cases in switch statement.
5200 (define_symbol: 'f', 'F', 'P'): Process all parameter types
5201 in case they define new type numbers. But ignore them (FIXME).
5202 ('k', 'B'): Ignore const and volatile if we see them (FIXME).
5203 (read_sun_builtin_type): Add commentary.
5204
37e2f5cb
DZ
5205Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5206
5207 * xm-rs6000.h: define MEM_FNS_DECLARED
5208
43a16f26
JG
5209Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
5210
5211 * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
5212 (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
5213 * mips-xdep.c: Remove most include files (unused, caused errs).
5214 (fetch_core_registers): Use right parameters in dummy fn.
5215
c47793da
JG
5216Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
5217
0f552c5f
JG
5218 * buildsym.c (scan_file_globals): Beware the null file.
5219 Fix from Jim Williams.
5220
5221 * stack.c (return_command): Evaluate expression *before* popping
5222 off the stack frames! Fix inspired by Jim Williams.
5223 (up_silently_command, down_silently_command): No sel frame is error.
5224
5225 * defs.h (memcpy, memset): Conditionalize decls on
5226 #ifndef MEM_FNS_DECLARED, since DECstation differs.
5227 (alloca): Break out the STDC and non-STDC alloca cases, to make
5228 it work on old preprocessors as well as "picky ANSI" ones.
5229 * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
5230
5231 * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
5232 * utils.c (fputs_demangled): Rename SLOP since DECstation system
5233 header files define it!
5234
c47793da
JG
5235 * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
5236
51b57ded
FF
5237Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
5238
5239 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
5240 symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
5241 * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
5242 findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
5243 putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
5244 utils.c, valarith.c, valops.c, valprint.c, values.c:
5245 Replace bcopy() use with memcpy(), which is more standard and can
5246 take advantage of gcc's builtin functions for increased performance.
5247 * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
5248 ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
5249 target.c, values.c:
5250 Replace bzero() use with memset(), which is more standard and can
5251 take advantage of gcc's builtin functions for increased performance.
5252 * i386-tdep.c, main.c, valprint.c:
5253 Replace bcmp() use with memcmp(), which is more standard and can
5254 take advantage of gcc's builtin functions for increased performance.
5255
22fd4704
FF
5256Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
5257
5258 * remote.c (remote_wait): Fix cast on signal() call.
5259 * defs.h (alloca): More diddling with alloca. Have to ensure
5260 that it has a prototype, so that if alloca is defined as a macro
5261 that takes an arg, the definition is seen as a use of a macro
5262 that takes an arg, to satisfy picky ANSI preprocessors.
5263
74fb91be
FF
5264Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
5265
5266 * sparc-pinsn.c: Use <string.h> rather than "string.h", for
5267 consistency with all other gdb files.
e7ae70e9
SG
5268 * cadillac.c: Use <string.h> rather than <strings.h>.
5269 * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr.
74fb91be
FF
5270 * Makefile.in (MAKE): Remove definition for consistency with
5271 other Makefile.in files and to fix problem with recursive makes.
5272
3a1e7a62
JG
5273Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
5274
5275 * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
5276 crashes H-PUX.
5277
b951b38d
SC
5278Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5279
5280 * source.c (print_source_lines): for DOS interoperability; don't
5281 print CR (013) as ^M.
5282
99fd9e3e
SG
5283Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
5284
bf18ac80
SG
5285 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
5286 conditional.
5287 * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
5288 instead.
5289 * remote.c (remote_wait): Cast signal to void * to avoid warning
5290 from busted HP compiler.
5291
cf79373a
SG
5292 * partial-stab.h (N_SO): Rearrange code a little so that all SO
5293 stabs cause end_psymtab to be called.
5294
50a11e49
SG
5295 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
5296 compiler feature of putting 'c' into basic type descriptors for
5297 all forms of char.
5298
99fd9e3e
SG
5299 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
5300 where there is no place for nPC in prrun struct.
5301
50e0dc41
FF
5302Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
5303
5304 * mipsread.c: Pass NULL name pointer to init_type, not 0.
5305 * gdbtypes.c (init_type): Use copy of typename on type_obstack.
5306 * dwarfread.c (enum_type): Save enum names on type_obstack.
5307 * dwarfread.c (struct_type): Save member name on type_obstack.
5308 * symtab.c (_initialize_symtab): Fix misspelling.
5309 * regex.c (store_jump, insert_jump): Return void.
5310
5140562f
JG
5311Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
5312
debd3443
JG
5313 * defs.h (PARAMS): Move to ../include/ansidecl.h.
5314 (alloca): Declare return type on SPARC, since Sun doesn't.
5315 (*_BYTE_ORDER): Improve comment: *must* be defined.
5316
5140562f
JG
5317 * tm-hppa.h: New file, architectural definition of HP PA.
5318 * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
5319
5320 * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
5321 hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
e7ae70e9 5322 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
5140562f
JG
5323 ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
5324 "defs.h".
5325
5326 * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
5327 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
5328 xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
5329
fef9f55c
JG
5330Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
5331
4d38b5a8
JG
5332 * printcmd.c (output_command): Thinko.
5333 (x_command): Only set remembered size/format if cmd succeeds.
5334
fef9f55c
JG
5335 * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
5336 since it is no longer used and burns time for every symbol read.
5337 (process_one_symbol): Treat N_CATCH like default (complain).
5338
369172bb
SG
5339Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
5340
5341 * partial-stab.h (case N_TEXT): Fix fencepost error when
5342 detecting start of new symbol info after reading symtab for a
5343 module with a zero length TEXT segment.
5344
e676a15f
FF
5345Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
5346
5347 * Makefile.in (VERSION): Bump to 4.5.6.
5348 * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
5349 correct type.
5350 * defs.h (NORETURN): Define away for Lucid compiler.
5351 * remote.c (remote_timer, remote_interrupt): Signal handlers
5352 take one int arg.
5353 * ser-termios.c (serial_write, serial_close): Return whatever
5354 value the write/close call returns, rather than falling off end.
5355 * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
5356 more systems than it is "char *". Define PTRACE_ARG3_TYPE to
5357 default to int.
5358 * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
5359 inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
5360 of third arg.
5361 * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
5362 m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
5363 pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
5364 symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
5365 argument 3.
5366 * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
5367 store_inferior_registers): Supply missing fourth argument to
5368 ptrace().
e7ae70e9
SG
5369 * cadillac.c (kernel_dispatch): Make return type void.
5370 * cadillac.c (iosig): Signal handlers take one int arg.
b4cc55b5
FF
5371 * valprint.c (val_print_fields): Call fprint_symbol to get
5372 automatic C++ demangling for mangled field names.
e676a15f 5373
0efe20a6
FF
5374Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
5375
5376 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
5377 * dwarfread.c (enum_type): Fix misspelling in comment.
5378 * valprint.c (val_print_fields, cplus_val_print): Minor
5379 adjustment to printing of C++ class structures to more closely
5380 match format for printing C structures, with and without setting
5381 pretty print.
5382
e37a6e9c
PB
5383Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
5384
5385 * infrun.c (wait_for_inferior): Don't test for SIGEMT
5386 (which is not a Posix signal) if it isn't defined.
5387 * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
5388 New port to Linux (a free Unix clone for 386 machines).
5389
f70be3e4
JG
5390Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
5391
5392 COFF changes for dealing better with EPI 29K C compiler output.
5393
5394 * coffread.c (record_minimal_symbol): Pass the minsym type to it.
5395 Callers changed.
5396 (coff_end_symtab): Sort blocks if needed. Complain if misordered.
5397 (read_coff_symtab): Move patch_opaque_types call from
5398 coff_symfile_read. Restrict it to symtabs from this objfile.
5399 (process_coff_symbol: C_TPDEF): Don't put ordinary foward
5400 references on opaque type chain; just let coff_lookup_type handle 'em.
5401 (decode_type): Complain about tagndx values on
5402 non-struct/union/enum types, which the EPI compiler tends to produce.
5403
5404 * symtab.c (list_symbols): Make minimal symbol variable-finding work.
5405
5406 * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
5407 dependency.
5408
5409 * elfread.c (elf_symfile_read): Update bfd_elf_find_section
5410 usage to match new prototype. Include libbfd.h to get prototype.
5411
28df0c3e
JG
5412 * source.c (find_source_lines): Handle large st_size fields.
5413
b4fde6fa
FF
5414Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
5415
5416 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
5417 * stack.c (return_command): Use cleanups to avoid memory leaks.
5418
e95bfbf1
JG
5419Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
5420
5421 * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
5422 INT_REGNUM to INTE_REGNUM.
5423
5424 * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
5425
9aa44833
SG
5426Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
5427
7da1e27d
SG
5428 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
5429 hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
5430 hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
5431 tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
5432
9aa44833
SG
5433 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
5434 declarations of malloc/realloc/free that are inserted by some
5435 versions of yacc.
5436 * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
5437 #undeffing them.
5438 * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
5439 another decl of strdup (this really ought to come from libiberty.h!).
5440
8f86a4e4
JG
5441Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
5442
5443 * remote.c (getpkt): Error if input exceeds buffer size.
5444 (_initialize_remote): `set remotedebug' enables packet trace.
5445
5446 * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
5447 N_SLINE's, etc, just like Sun cc on Solaris2.
5448
5449 * am29k-tdep.c (read_register_stack, write_register_stack):
5450 Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
5451 variable. Add `set' and `show' commands for it.
5452 * doc/gdb.texinfo: Document it.
5453
4341615d
FF
5454Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
5455
5456 * valprint.c (type_print_1): Plug memory leak. Print all
5457 C++ syms as demangled, not just functions.
5458 * buildsym.c (read_range_type): When we find a signed char
5459 type, do a lookup of signed char, not plain char. Plain char's
5460 still get looked up as plain char's elsewhere.
5461
8f86a4e4
JG
5462Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
5463
5464 * eval.c: Avoid residue-by-zero when evaluating without side effects.
5465 (Bug and fix found by Pierre Willard.)
5466
427d778c
SG
5467Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
5468
7634ebc8
SG
5469 * xm-rs6000.h: Fix decls for malloc, realloc, and free.
5470
826f73d0
SG
5471 * xm-rs6000.h: Add decl for strdup().
5472
5473 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
65c36045
SG
5474 compilation errors.
5475
423e9664
SG
5476 * breakpoint.c (enable_command, disable_command): Without args,
5477 should only affect normal breakpoints and watchpoints.
427d778c 5478
423e9664
SG
5479 * m68k-pinsn.c (print_insn_arg): Make register be const.
5480 * xcoffexec.c: Remove ' from comment.
427d778c
SG
5481 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
5482 with decls of malloc in c-exp.tab.c (as produced by yacc).
5483 There's got to be a better way to do this...
5484
323227fe
FF
5485Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
5486
5487 * partial-stab.h: Convert single rindex use to strrchr.
5488 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
5489 standard <strings.h> file, now that the only single use of
5490 rindex in the gdb source files is gone.
5491
fa0bcaa3
FF
5492Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
5493
5494 * mipsread.c: Undo ill effects from including <strings.h>,
5495 which #defines index to be strchr. Unfortunately, index is
5496 a member of a symbol table structure that can't be changed.
5497 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
5498 remove redundant #include's.
5499
b303297a
SG
5500Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
5501
5502 * mipsread.c: #include <strings.h> for rindex().
5503
d1140eb5
FF
5504Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
5505
5506 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
5507
c72af089
SG
5508Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
5509
5510 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
5511 extraneous SO stabs from busted C++ compilers.
5512
4c07f28d
FF
5513Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
5514
5515 * Makefile.in (VERSION): Bump to 4.5.5.
5516 * symtab.c (decode_line_1): Until C++ support stabilizes, when
5517 C++ lookups fail, print possibly helpful hint about completion.
5518 * cplus-dem.c (demangle_signature): Fix ARM style demangling
5519 for static data members.
5520 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
5521 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
5522 it's broken on ncr3000's.
5523
1c92ca6f
FF
5524Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
5525
5526 * dwarfread.c (decode_modified_type): Change type of first arg.
5527 Change 'modifier' to char from unsigned char. Cast single use
5528 that needs to be unsigned char.
5529 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
5530 * utils.c (strdup_demangled): Add function.
5531 * defs.h (strdup_demangled): Add prototype.
5532 * stack.c (return_command): Demangle C++ function names for query.
5533 * infcmd.c (jump_command): Demangle C++ function names for query.
5534 * cplus-dem.c (consume_count): New function and prototype.
5535 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
5536 do_type): Replace conversion code with consume_count().
5537 * cplus-dem.c (gnu_special): Fix demangled of static members.
5538 * source.c (list_command): Print demangled function names
5539 when appropriate. Fix supplied by Peter Schauer.
5540
5541Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
5542
8f86a4e4
JG
5543 * sparc-tdep.c: Clean up slightly for Solaris2.
5544
1c92ca6f
FF
5545 * buildsym.c (define_symbol): Nameless types are now on several
5546 platforms; generalize them and un-ifdef them to make Solaris 2
5547 work.
5548
bcbf9559
JG
5549Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
5550
d69bba12
JG
5551 * infcmd.c: Fix typo (reported by Rob Savoye).
5552 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
5553 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
5554 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
5555 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
5556 rather than the one for the first file in the dependency chain.
5557
bcbf9559
JG
5558 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
5559 set. Don't reset our own texthigh, or dependency-only pst's, in
5560 scanning all the rest of the psymtabs.
5561 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
5562
5563 * buildsym.h (N_UNDF): Improve comments.
5564 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
5565
252f6c65
FF
5566Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
5567
5568 * symtab.h (struct symbol): Add aux_value union for preserving
5569 an additional per-symbol value.
5570 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
5571 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
5572 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
5573 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
5574 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
5575
a6b46ad4
MT
5576Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5577
5578 * symfile.c (clear_symtab_users_once): Now non-static (for
5579 objfiles.c).
5580
bf2e5f6b
JG
5581Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
5582
346168a2
JG
5583 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
5584 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
5585 vax-pinsn.c: Remove reg_names decl (now in defs.h).
5586
5587 Solaris-2 support on SPARC:
5588
5589 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
5590 Add symbol_size and file offsets to struct symloc.
5591 Add static symbol_table_offset, string_table_offset,
5592 file_string_table_offset, next_file_string_table_offset,
5593 last_function_name.
5594 (add_old_header_file): Convert error() to complain()t.
5595 (dbx_symfile_read): Get symbol size via the objfile.
5596 Also get symbol_table_offset.
5597 (dbx_symfile_init): Record symbol size and count via the objfile.
5598 (dbx_next_symbol_text): Always add file_string_table_offset when
5599 accessing string table.
5600 (read_dbx_symtab): Initialize file_string_table_offset to 0.
5601 (SET_NAMESTRING): Use the offset.
5602 (end_psymtab): Large kludge to determine addresses where source
5603 files start and end (for the psymtab header).
5604 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
5605 Get this, symbol size, and symbol offset, from psymtab.
5606 (read_ofile_symtab): Don't back up one symbol for Solaris2.
5607 Patch up last_source_start_addr if zero in N_SO.
5608 (process_one_symbol): Add variable function_start_offset.
5609 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
5610 BLOCK_ADDRESS_FUNCTION_RELATIVE.
5611 ( "", N_OBJ, N_OPT): Ignore.
5612 (elfstab_build_psymtabs): New function to read stabs out of
5613 an ELF file.
5614
5615 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
5616 (gdb): use GLOBAL_CFLAGS when linking, too.
5617 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
5618 (N_OBJ, N_OPT): Ignore.
5619 ('f', 'F'): Save last function name.
5620
5621 * elfread.c (record_minimal_symbol_and_info): Kludged to put
5622 extra info in the minimal symbol.
5623 (elf_symtab_read): The extra info is the size of an ELF object,
5624 which was kludged to us in the `udata' field of the BFD symbol.
5625 Gag me with a crowbar...
5626 (elf_symfile_read): Keep track of both the absolute load address,
5627 and the offset between load addr and symbols. Handle STABS as
5628 well as DWARF sections, passing the absolute load address to
5629 elfstab_build_psymtabs.
5630
5631 * symfile.h: Prototype elfstab_build_psymtabs.
5632 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
5633
5634 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
5635
93297ea0
JG
5636 * buildsym.h: Add processing_acc_compilation flag.
5637 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
5638 (define_symbol): Skip arg types in function entries. Resolve
5639 overloaded 'P' which acc uses for prototypes of functions called
5640 by this file.
5641 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
5642
5643 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
5644 save size of ELF symbols. FIXME.
5645 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
5646 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
5647
bf2e5f6b 5648 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 5649 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 5650
346168a2
JG
5651 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
5652 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
5653 * symfile.c (symfile_bfd_open): Comment where name is freed.
5654 * symmisc.c (extend_psymbol_list): Comment where list is freed.
5655
252f6c65 5656Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
5657
5658 * expprint.c (print_subexp): Add missing ']'.
5659 * defs.h (reg_names): Fix declaration to match that in infcmd.c
5660 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
5661 * WHATS.NEW: Point out improved C++ function name handling.
5662 * gdbtypes.c (lookup_fundamental_type): For now, use the same
5663 type names for both implicitly and explicitly signed integral
5664 types. See comment in the source code.
5665
28de880c
JG
5666Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
5667
5668 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
5669 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
5670 * expprint.c (print_subexp): Fix printing of register names.
5671
1304f099
JG
5672Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
5673
5674 * inferior.h (register_valid): Declare.
e7ae70e9 5675 * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
1304f099
JG
5676 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
5677 macros for traversing the data structures in a single objfile.
5678 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
5679 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
5680 * infcmd.c: Lint.
5681
252f6c65 5682Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
5683
5684 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
5685 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
5686 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
5687 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
5688
55488e9e
SG
5689Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
5690
5691 * depend: rebuild to account for remote-st2000.c.
5692 * remote-st2000.c: Almost works now.
5693 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
5694
d630b615
FF
5695Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
5696
5697 * c-exp.y (yylex): Recognize single-quoted strings that specify
5698 tokens with embedded whitespace, such as C++ demangled names.
5699 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
5700 * main.c (gdb_completer_quote_characters): Add global variable.
5701 * main.c (symbol_completion_function): Total rewrite for C++
5702 demangled name handling.
5703 * main.c (skip_quoted): New function.
5704 * main.c (main): Set rl_completer_quote_characters.
5705 * symmisc.c (dump_symtab): Print source language for symtab.
5706 * symtab.c (expensive_mangler): Add prototype and function.
5707 * symtab.c (completion_list_add_symbol): Total rewrite for new
5708 C++ demangled name handling.
5709 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
5710 other changes for demangled C++ symbol handling.
5711 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
5712 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
5713 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
5714 * symtab.c (completion_list_add_symbol): Total rewrite for new
5715 C++ demangled name handling.
5716 * symtab.c (expensive_mangler): New function.
5717 * utils.c (strcmp_iw, demangle_and_match): New functions.
5718 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
5719
d9915ebc
JG
5720Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
5721
5722 * Makefile.in: Roll VERSION to 4.5.4.
5723 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
5724 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
5725 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
5726
88cc9a36
SG
5727Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
5728
55488e9e
SG
5729 * alldeps.mak: Rebuild to account for new files.
5730 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
5731 * tm-st2000.h: New file.
88cc9a36
SG
5732 * configure.in: Tandem debug monitor (st2000) support.
5733 * remote-st2000.c, config/st2000.mt: ditto.
5734
6f8db23a
JG
5735Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
5736
5737 * blockframe.c (inside_entry_file, inside_main_func,
5738 inside_entry_func): Return 0 if no symbols; avoid crashing.
5739
5740Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
5741
5742 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
5743 without masking, since it is signed and will later be compared
5744 against signed quantities. The right fix is probably to make
5745 it all unsigned, but this is a small, safe fix for this release.
5746 FIXME -- make the real change sometime soon.
5747
a748555b
MT
5748Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
5749
fb44a8f5
MT
5750 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
5751 parameter in call to `symbol_file_add' to 0.
5752
a748555b
MT
5753 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
5754
5755Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
5756
5757 * configure.in: Handle -m680[01234]0-wrs.
5758
48079d66
MT
5759Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5760
5761 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
5762 `ieee_extended_to_double'.
5763
cb614788
JG
5764Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
5765
5766 * valops.c (value_assign): Lint, by Pierre Willard.
5767
6ad6ef42
JG
5768Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
5769
cb614788
JG
5770 * coredep.c (fetch_core_registers): Remove premature warning,
5771 which triggers on DECstation even though all regs are accessible.
5772
5773 * m68k-pinsn.c (print_insn_arg): Use new macros to get
5774 sign-extension of instruction fields even on unsigned-char hosts.
5775 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 5776
cb614788 5777 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
5778 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
5779 since they define the target, not the host.
5780 * m88k-pinsn.c: Fix typo.
5781
5782Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
5783
5784 * valarith.c (value_zerop): -0.0 is still zero.
5785 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
5786 Patches by Paul Eggert <eggert@twinsun.com>.
5787
5788Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
5789
5790 * alldeps.mak, depend: re-make to account for ser-*.c.
5791
6c316cfd
FF
5792Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
5793
5794 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
5795 disconnecting from controlling terminal, to avoid gdb hanging
5796 on SVR4. Fixes bug reported by Oliver Okrongli.
5797 * procfs.c (PROC_NAME_FMT): Change format to match default used
5798 by system, as suggested by Oliver Okrongli.
5799 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
5800 bug fix from Brent Townshend (bst%tt@cam.ORG).
5801 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
5802 by turlais@rechser.total.fr.
5803 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
5804 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
5805 * objfiles.h (unlink_objfile): Add prototype.
5806 * objfiles.c (unlink_objfile): Add function.
5807 * objfiles.c (free_objfile): Call unlink_objfile.
5808 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
5809 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
5810 Also, discard old possibly bogus sf struct.
5811 * symfile.c (symbol_file_add): Call init_entry_point_info() and
5812 find_sym_fns() for remapped symbol files, in case of any changes
5813 since the last mapping.
5814
5815Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5816
5817 * findvar.c (read_relative_register_raw_bytes): use the raw size
5818 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
5819
ae0ea72e 5820Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 5821
ae0ea72e
SC
5822 Changes to support GDB running on DOS using GO32 and H8 support
5823
5824 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
5825 allowing hosts with different text and binary file formats to
5826 work.
5827 * coffread.c (read_coff_symtab): changed calling convention and
5828 operation - now it opens its own file with FOPEN_RB rather than
5829 duping and fdopening the provided handle.
5830 * dbxread.c, cplus-dem.c: #include mangling.
5831 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
5832 binary files oring in the right bit.
5833 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
5834 * remote-hms.c: cleanup to use the new remote serial stuff
5835 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
5836 independent remote terminal I/O.
5837 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
5838 * source.c (openp): fix off by one problem removing / - can now
5839 open a source file in the root directory with DOS.
5840 * values.c (value_as_pointer): remove bogus address bits from
5841 long. (unpack_long): unpack into unsigned long/short if pointer.
5842
0defac02
SG
5843Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
5844
84c8f62d
SG
5845 * infrun.c (child_attach): Don't allow gdb to attach to itself.
5846 It gets permanently stuck in many OSes.
bcf2e6ab
SG
5847 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
5848 to printf_filtered.
70d47e66 5849 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
5850
5851Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
5852
5853 * README: Add pointer to internals doc, and describe reading
5854 info files.
5855 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
5856 * symtab.c (output_source_filename): Remove old glop for wrapping
5857 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
5858
5859Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
5860
5861 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
5862 * munch: Add sort -u to avoid duplications.
5863 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
5864 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
5865
7fd31a84
FF
5866Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
5867
5868 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
5869 avoid infinite loops while demangling bogus mangled names.
5870 * valprint.c (type_print_base): Minor fix for GNU style guide
5871 conformance.
5872
f9b5584c
FF
5873Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
5874
5875 * Makefile.in (VERSION): Bump to 4.5.3
5876 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
5877 * Makefile.in (demangle): New target to create standalone
5878 demangler with same code and options as internal demangler.
5879 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
5880 to support ARM style and Lucid style demangling, improve
5881 maintainability, fix several demangling bugs. More changes
5882 to follow.
5883 * defs.h (strstr): Add ANSI compatible prototype.
5884 * valprint.c (type_print_1): Demangle using ansi option.
5885 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
5886
1e939db1
SG
5887Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
5888
5889 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
5890 first two sections.
5891
d5e88583
PB
5892Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
5893
5894 * mipsread.c (parse_procedure): Return rather than using
5895 uninitialized variable 'b'.
5896
e7ae70e9
SG
5897Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
5898
5899 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
5900 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
5901 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
5902 relative to each source file.
5903
0defac02
SG
5904Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
5905
9b98dea2 5906 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 5907 recursions.
9b98dea2
RP
5908
5909Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
5910
5911 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
5912 * am29k-tdep.c: Update to latest code from AMD.
5913 (get_saved_register) don't crap out if no frame.
e7ae70e9
SG
5914 * remote-udi.c: Set/clear inferior_pid as appropriate.
5915 (udi_open) call target_preopen, don't close fd 0!!!, clean up
5916 error handling. Fixup end-of-debugging messages.
5917 (udi_fetch_registers) clean up big time, mainly don't multiply
5918 register_valid indices by 4, and use proper Offset when reading
5919 gr96-gr127. (udi_store_registers) general cleanup.
5920 (fetch_register) cleanup, simplify. (regnum_to_srnum)
5921 INT_REGNUM->INTE_REGNUM.
9b98dea2 5922 * tm-29k.h: Upgrade to latest code from AMD.
e7ae70e9
SG
5923 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
5924 (UDIConnect) Clean up error processing (like, don't do exit() if
5925 execlp fails), make code restartable, make more attractive.
5926 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
5927 otherwise.
9b98dea2 5928
ba2c9027
PB
5929Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
5930
5931 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
5932 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
5933 from former to latter.
5934
55b3ef9a
FF
5935Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
5936
5937 * cplus-dem.c (do_args): Handle void args the same as others.
5938 * objfiles.c (free_objfile): Only try to unmap files when
5939 reusable objfiles are supported.
5940 * valprint.c (type_print_varspec_suffix): Add parameter that
5941 specifies if C++ demangling included function arguments. Use
5942 it to suppress printing extra pair of ()'s.
5943 * valprint.c (type_print_1): Fix problem with printing demangled
5944 C++ function types where demangled type includes the function
5945 args.
5946
8f793aa5
FF
5947Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
5948
5949 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
5950 Allows selection of C++ demangler to be a configuration option
5951 until multiple demanglers are supported.
5952 * demangle.h: New include file for extended demangler support.
5953 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
5954 utils.c, valprint.c: Include "demangle.h" and change all calls
5955 to cplus_demangle() or fputs_demangled() to use individual
5956 demangling options.
5957 * valprint.c (type_print_1): Change options to cplus_demangle
5958 to print demangled function args. Still broken, but now less so.
5959 * cplus-dem.c: Include demangle.h, reorganize and update some
5960 comments to reflect reality.
5961 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
5962 second arg from fixed integer to bit based multiple options.
5963 * cplus-dem.c (optable): Reformat and replace ansi members with
5964 bit based options.
5965 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
5966
6fab5bef
JG
5967Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
5968
5969 * values.c (set_internalvar): Force evaluation of lazy values.
5970 Bug reported by RMS.
5971
4db8e515
FF
5972Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
5973
5974 * Makefile.in (VERSION): Bump to 4.5.2.
5975 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
5976 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
5977 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
5978 proper handling of bit fields.
5979 * gdbtypes.h (struct type): Clarify use of field.bitpos.
5980 * symtab.h: Fix couple of misspellings in comments.
5981 * value.h (struct value): Clarify use of bitpos.
5982 * value.h (unpack_field_as_long): Change prototype, returns
5983 LONGEST.
5984 * values.c (unpack_field_as_long): Change return type to LONGEST,
5985 sign extend unpacked fields that are signed, other rewriting.
5986 * config/ncr3000.mt: New target config file.
5987
ea1549b3
JG
5988Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
5989
fcdb113e
JG
5990 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
5991 even when printing 8-bit characters.
5992
ea1549b3
JG
5993 * gdbtypes.c (make_{reference,pointer,function}_type): New
5994 functions which handle overwriting of forward-referenced types
5995 for stabs file reading.
5996 (lookup_{reference,pointer,function}_type): These just call
5997 the make_*_type functions with a null storage alloc parameter.
5998 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
5999 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
6000
6001 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
6002 (dbx_alloc_type): Make it easier to understand. No funct change.
6003 (define_symbol: 't'): Don't put the typedef name into the name of
6004 the struct, union, or enum. Bugfix.
6005 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
6006 routines to properly handle overwriting preallocated types so that
6007 forward references will work.
6008 (read_enum_type): Force enum values to file scope, due to bug in
6009 Sun compiler output. FIXME, fix later.
6010
6011 Remove unused header_file_prev_index mechanism. It was already
6012 obsolete in gdb-3.5. These comments appeared in 3.5:
6013 /* This code was used before I knew about the instance codes.
6014 My first hypothesis is that it is not necessary now
6015 that instance codes are handled. */
6016 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
6017 * buildsym.h: Remove it and prev_index that saves it.
6018 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
6019
6020 * solib.c (special_symbol_handling): When called from core files,
6021 must set up debug_addr. Don't print error messages, just return.
6022 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
6023
f536aa39
PB
6024Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
6025
6026 * cplus-dem.c: Allow nested class names (as in
6027 Foo::Bar::method()).
6028 Allow the cleaner cfront style of nested class names
6029 (Q2_3Foo3Bar as well as Q23Foo3Bar).
6030 Make cplus_demangle re-entrant by removing use of global
6031 variables. Instead, place all shared variables in a
6032 stack-allocated structure, and pass around its address.
6033
72b1aa30
SG
6034Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
6035
9e91f617
SG
6036 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
6037 29k-share/* subdirs...
6038
e7ae70e9
SG
6039 * remote-udi.c (udi_insert/remove_breakpoint): Completely
6040 rewrite, only leave out the bugs.
6041
6042 * Makefile.in: Add 29k/UDI support. Improve depend.
6043 * alldeps.mak, configure.in, depend: Add 29k/UDI support.
6044
07df4831
SG
6045 * am29k-tdep.c: Update to use new calling conventions, and misc
6046 symbol elements.
6047
72b1aa30
SG
6048 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
6049
c8094777
FF
6050Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
6051
66a8a9b4
SG
6052 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
6053 breakpoint instructions that leave PC pointing at the right place.
6054
c8094777
FF
6055 * core.c (core_open): Call warning() to print warnings.
6056
35a25840
SG
6057Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
6058
6059 * symtab.c (lookup_symbol): Need to check if msymbol->name is
6060 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
6061 This prevents a crash when trying to lookup the value of a
6062 non-existent symbol.
6063
4ace50a5
FF
6064Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
6065
6066 * signame.c, signame.h: Remove, replaced by strsignal.c in
6067 libiberty.
6068 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
6069 sun386-xdep.c: Remove include of signame.h
6070 * Makefile.in (SFILES_MAINDIR): Remove signame.c
6071 * Makefile.in (HFILES): Remove signame.h
6072 * Makefile.in (OBS): Remove signame.o
6073 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
6074 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
6075 psignal, perror): Add prototypes.
6076 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
6077 Remove define.
6078 * depend: Manually remove signame.[cho] references.
6079 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
6080 strsignal.
6081 * convex-xdep.c (core_file_command): Replace use of sys_siglist
6082 with safe_strsignal.
6083 * core.c (core_open): Replace use of sys_siglist with
6084 safe_strsignal.
6085 * core.c (memory_error): Replace use of sys_errlist with
6086 safe_strerror.
6087 * i960-tdep.c (print_fault): Replace use of sys_siglist with
6088 safe_strsignal.
6089 * infcmd.c (program_info): Replace use of sys_siglist with
6090 safe_strsignal.
6091 * infrun.c (signal_stop, signal_print, signal_program):
6092 Allocate dynamically based on dynamic determination of number
6093 of signals to support.
6094 * infrun.c (child_create_inferior): Replace use of sys_errlist
6095 with safe_strerror.
6096 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
6097 safe_strsignal.
6098 * infrun.c (sig_print_info): Replace use of sig_abbrev with
6099 strsigno and sys_siglist with safe_strsignal.
6100 * infrun.c (handle_command): Call signo_max to find number of
6101 signals. Replace sig_number with strtosigno and sig_abbrev with
6102 strsigno.
6103 * infrun.c (signals_info): Replace sig_number with strtosigno.
6104 * infrun.c (_initialize_infrun): Call signo_max to find number of
6105 signals. Dynamically allocate signal_{stop,print,program}.
6106 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
6107 * procfs.c (errnoname): Add function and prototype.
6108 * procfs.c (info_proc_siginfo): Call errnoname, replace use
6109 of sys_siglist with safe_strsignal.
6110 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
6111 sys_siglist with safe_strsignal.
6112 * procfs.c (info_proc_stop): Call errnoname.
6113 * procfs.c (signalname): Replace sig_abbrev with strsigno.
6114 * stuff.c (main, get_offset): Replace use of sys_errlist with
6115 strerror.
6116 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
6117 with safe_strsignal.
6118 * umax-xdep.c (core_file_command): Replace use of sys_siglist
6119 with safe_strsignal.
6120 * utils.c (safe_strerror, safe_strsignal): Add functions that
6121 call strerror and strsignal respectively, and deal with NULL
6122 returns.
6123 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
6124 sys_errlist with safe_strerror.
6125 * valprint.c (val_print): Replace use of sys_errlist with
6126 safe_strerror.
6127
6e6bf7f2
RP
6128Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
6129
6130 * Makefile.in: rework CFLAGS so that they can be set from the
6131 command line to make. CFLAGS -> INTERNAL_CFLAGS.
6132 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
6133 Pass CFLAGS on recusions.
6134
6135Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
6136
6137 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
6138 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
6139 overkill for the problem it solved.
6140 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
6141 and default to simply printing type names as appropriate.
6142 * main.c (main): Remove one of the leading newlines from
6143 warning_pre_print initialization.
6144 * objfiles.c (open_existing_mapped_file): Add function and
6145 prototype.
6146 * objfiles.c (open_mapped_file): Rewrite to use new function
6147 open_existing_mapped_file.
6148
b0c8c726
JG
6149Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
6150
6151 * sun3-xdep.c (fetch_core_registers): Lint.
6152 * tm-sun3.h: Prototype lint.
6153 * value.h: Typo.
6154
2d6d969c
FF
6155Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
6156
6157 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
6158 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
6159 * objfiles.c: Cast calls to close() with unused returns to void.
6160 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
6161 old objfile's name before updating it.
6162 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
6163 * objfiles.h (objfile struct): Add mmfd member.
6164 * symfile.c (syms_from_objfile): Move some code to
6165 new_symfile_objfile.
6166 * symfile.c (new_symfile_objfile): Add new function, common code
6167 from syms_from_objfile.
6168 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
6169 mapped and unmapped symbol files.
6170 * symfile.c (symbol_file_command): Print "No symbol file now"
6171 message, ala exec_file_command for the exec file.
6172 * symfile.h (new_symfile_objfile): Add prototype.
6173 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
6174 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
6175
d453b386
PB
6176Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
6177
6178 * rs6000-pinsn.c: New version from IBM (Metin).
6179 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
6180 to avoid warnings from some compilers.
6181
4a11eef2
FF
6182Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
6183
6184 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
6185 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
6186 type's flag word that marks it as a fundamental type.
6187 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
6188 flags argument for all calls to init_type().
6189 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
6190 flags argument for all calls to init_type(). Also remove
6191 dependency on host sizes for ints, floats, etc.
6192 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
6193 flags argument for all calls to init_type(). Also remove
6194 dependency on host sizes for ints, floats, etc.
6195 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
6196 bit to flags argument for all calls to init_type(). Add types
6197 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
6198 * valprint.c (unsigned_type_table, signed_type_table,
6199 float_type_table): Remove.
6200 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
6201 bit when printing fundamental types, and print the actual name
6202 for such types, rather than inventing one. Remove code that
6203 invented fundamental type names.
6204 * valprint.c (_initialize_valprint): Remove initializations
6205 for now removed unsigned_type_table, signed_type_table, and
6206 float_type_table.
6207
35a25840
SG
6208Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
6209
6210 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
6211 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
6212 5.0.2.
6213
13b5a7ff
FF
6214Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
6215
6216 * dwarfread.c (target_to_host): New function similar to previous
6217 swapin function.
6218 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
6219 Extensive changes to convert all previous usages to use new
6220 target_to_host() function.
6221 * dwarfread.c (struct dieinfo): Change types of most integral
6222 members to be unsigned.
6223
3bc82410
JG
6224Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
6225
6226 * WHATS.NEW: Revise -mapped doc.
6227
817bc7b8
JG
6228Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
6229
6230 * mipsread.c (parse_partial_symbols): Complain when sh->index is
6231 too high or when skipping `forwards' moves us backwards.
6232 (parse_type): Print mis-guessed tag name in complaint.
6233 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
6234 (parse_procedure): Do not attempt to create symbols; just fill in
6235 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
6236 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
6237 for clarity. Set top_stack before calling parse_external. In
6238 stabs, sort symbols before calling parse_procedure.
6239 * mipsread.c: Lint.
6240 * symmisc.c (std_in, std_out, std_err): Add vars to access std
6241 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
6242 * Makefile.in: Remove stage* targets. Avoid echo on recursive
6243 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
6244 exists.
6245
554d1be4
JG
6246Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
6247
44d835be 6248 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
6249 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
6250 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
6251 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
6252 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
6253 Remove new symbol types and such to ../include/coff/symconst.h.
6254 (parse_symbol): Simplify code for parsing struct/enum/unions.
6255 (parse_type): Handle `long long' types.
6256 (upgrade_type): Handle `const' qualifier.
6257 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 6258
6e706950
FF
6259Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
6260
95967e73
FF
6261 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
6262 copy in data from raw read buffers, calling bfd byteswapping
6263 routines as appropriate. Use to replace most existing memcpy
6264 calls.
6265 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
6266 * configure.in: Recognize new ncr3000 config.
6267 * config/ncr3000.mh: New config file.
6268
601836ef
SG
6269Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
6270
6e706950
FF
6271 GDB-4.5 release!
6272
6273 * README: Update for release.
b69ce5ab
SG
6274 * Makefile.in: Update version to 4.5.
6275 * WHATS.NEW: The obvious.
6276
ece32565
SG
6277 * depend: Generate new depend file for this release.
6278
601836ef
SG
6279 * Makefile.in (depend): Fix dependancy generation so that it does
6280 not include gcc 'fixincluded' files, which are usually in a system
6281 specific location.
6282
9b6f92db
PB
6283Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
6284
6285 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
6286 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
6287 symbols for nameless types. And, handle `R' (register parameter
6288 type) for AIX. (an extension to existing stabstring grammar).
6289 * rs6000-xdep.c: Fix typo (= should have been ==).
6290
7fe388ad
SG
6291Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
6292
6293 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
6294
9e53d9dc
JG
6295Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
6296
6297 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
6298 * signame.c (SIGWAITING, SIGLWP): Add.
6299
6fba3d7c
PB
6300Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
6301
56619803 6302 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 6303
6fba3d7c
PB
6304 * breakpoint.c (breakpoint_1): Add (int) casts for enums
6305 used in array index context (otherwise, some compilers barf).
6306
628c6d3b
SG
6307Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
6308
e05ba37d
SG
6309 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
6310 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
6311 in a system call, and provide better backtrace if so.
6312
1f415ae7 6313 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 6314 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 6315 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 6316
96c19d0f
SG
6317 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
6318 mipscoff_symfile_read): Convert to BFD to do file I/O.
6319
c1bde665
SG
6320 * symfile.c: #include <ctype.h> to get proper def if isspace().
6321
628c6d3b
SG
6322 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
6323
ad142b8e
PB
6324Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
6325
6326 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
6327 function also when parsing embedded stabs.
6328
ce9260ae
SG
6329Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
6330
391ca579
SG
6331 * mipsread.c: Fix more declarations.
6332
e5578a31
SG
6333 * mipsread.c: Fix many invocations of complain. Use enum
6334 type_code where appropriate.
41bd448e 6335
995e7f86
SG
6336 * xm-vaxult.h: Add decl for strdup().
6337
ce9260ae
SG
6338 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
6339 for xm-vax.h.
6340
b2de19e3
SG
6341Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
6342
6343 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
6344 process_one_symbol.
6345
556f3d90
PB
6346Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
6347
6348 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
6349 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
6350 Merge in more patches for rs6000 from Metin Ozisik.
6351 * utils.c: Fix typo in comment.
6352
d65eee73
FF
6353Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
6354
6355 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
6356 * procfs.c (attach): Set nopass_next_sigstop if attached
6357 process is forcibly stopped.
6358 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
6359 resending SIGSTOP to attached process on first resume.
6360
239e7ee9
SG
6361Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
6362
6363 * Makefile.in (SFILES_MAINDIR): add mipsread.c
6364
e10a3052
JG
6365Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
6366
6367 * Makefile.in (OBS): Compile mipsread.c for all targets now.
6368 (VERSION): Bump to 4.4.85.
6369 * mipsread.c: Update for new include files. Lint.
6370 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
6371 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
6372 Don't need to bring in mipsread.o specially any more.
6373
4ad1963e
SG
6374Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
6375
6376 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
6377 routine (for Irix-4.x). Make many funcs static and void.
6378 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
6379 * (init_extra_frame_info): Don't trash cached value of frame
6380 pointer register. This fixes backtracing through routines that use
6381 alloca(). Generally clean up declarations of functions, and use
6382 typedefs and macros to reference data structures as appropriate.
6383 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
6384 proc_desc element.
6385
5c1c5e67
FF
6386Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
6387
6388 * values.c (unpack_long): Fix unpacking error for signed chars
6389 on hosts where the default character type is unsigned.
6390 * procfs.c (pr_flag_table, pr_why_table): Add some entries
6391 for newer SVR4 variants.
6392 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
6393 turn off trace inherit-on-fork flag to favor latest SVR4 method.
6394 * procfs.c (mappingflags): Add support for MA_PHYS
6395
ac88ca20
JG
6396Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
6397
03c93c66
JG
6398 * buildsym.c (read_struct_type): Avoid coredump when C++
6399 abbreviated type name is messed up. Reported by Joe Buck.
6400 FIXME, we need to determine whether GDB or GCC needs to be
6401 smarter to correctly locate this type name.
6402
ac88ca20
JG
6403 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
6404 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
6405 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
6406 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
6407 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
6408
cc221e76
FF
6409Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
6410
6411 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
6412 * symtab.h (current_source_symtab): Make extern
6413 * symtab.h (current_source_line): Make extern
6414 * inferior.h: Move all procfs.c prototypes to one place, add
6415 prototype for proc_signal_handling_change. Add prototypes for
6416 signal_stop_state, signal_print_state, and signal_pass_state.
6417 * inferior.h (stop_soon_quietly): Make extern
6418 * inferior.h (attach_flag): Make extern
6419 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
6420 * infrun.c (signal_stop_state, signal_print_state,
6421 signal_pass_state): New functions to query specific signal
6422 handling flags.
6423 * infrun.c (handle_command): Minor error message change, add
6424 NOTICE_SIGNAL_HANDLING_CHANGE.
6425 * procfs.c (open_proc_file): Remove iris specific reset of
6426 inherit-on-fork flag, moved to proc_set_exec_trap().
6427 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
6428 to reset inherit-on-fork flag, bash comment to GNU form.
6429 * procfs.c (proc_base_address, set_proc_siginfo,
6430 fetch_core_registers): Conform to code style.
6431 * procfs.c (signame.h): Include.
6432 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
6433 syscallname(), info_proc_syscalls()): New macros, tables, and
6434 functions to organize and report system call information.
6435 * procfs.c (saved_fltset, saved_trace, saved_sighold,
6436 saved_exitset, saved_entryset): Add to procinfo struct.
6437 * procfs.c (struct trans): Add.
6438 * procfs.c (pr_flag_table, pr_why_table, faults_table,
6439 siginfo_table, errno_table): Tables to translate numeric values
6440 to symbolic names and short descriptions.
6441 * procfs.c (signalname, info_proc_signals): Add function and
6442 prototype.
6443 * procfs.c (proc_info): Now info_proc.
6444 * procfs.c (proc_info_address_map): Now info_proc_mappings.
6445 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
6446 info_proc_faults, lookupname, lookupdesc, sigcodename,
6447 sigcodedesc): New functions.
6448 * procfs.c (proc_signal_handling_change): New function to set
6449 the trace flags based on the state of gdb's signal handling flags.
6450 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
6451 and remove code to do PIOCSTRACE ioctl.
6452 * procfs.c (attach, detach): Preserve and restore process flags
6453 using saved_* fields in procinfo struct.
6454 * procfs.c (attach): Call proc_signal_handling_change.
6455 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
6456 * procfs.c (proc_desc): Update for latest changes.
6457 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
6458 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
6459 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
6460
6461Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
6462
6463 * procfs.c (set_proc_siginfo): Add prototype and new function.
6464 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
6465 up inferior siginfo struct.
6466 * elfread.c (elf_symfile_read): Compute the relocation amount
6467 by subtracting off the address of the ".text" section.
6468 * solib.c: Add pointer to ".text" section to so_list struct.
6469 * solib.c (solib_map_sections): Initialize pointer to ".text"
6470 section in so_list struct.
6471 * solib.c (symbol_add_stub): Pass base address of ".text"
6472 section to symbol_file_add, rather than the load address of
6473 the shared library. On SunOS they are the same. On SVR4 they
6474 are not.
6475
3bec9cdd
SG
6476Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
6477
6478 * mipsread.c (parse_procedure): PDR.isym should get pointer to
6479 function name, not .gdbinfo. symbol.
6480
e360572c
JG
6481Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
6482
6483 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
6484
fad3fc94
SG
6485Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
6486
e360572c 6487 * Makefile.in (VERSION): 4.4.8
5e8fdb82 6488
fad3fc94
SG
6489 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
6490 commands in .cshrc/.profile won't get traced.
6491
3b0b9220
JG
6492Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
6493
6494 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
6495 * exec.c (build_section_table): Don't abort if no sections.
6496 * sparc-tdep.c (single_step): Lint.
6497 * utils.c (mrealloc): Handle realloc (0, size) case here.
6498
d1bb1d41
SG
6499Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
6500
f8b4aa8e
SG
6501 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
6502 opposed to m[ht]-*!
6503
9d4c62df
SG
6504 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
6505
d1bb1d41
SG
6506 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
6507 .gdbinfo. symbols are created. Move creation from parse_procedure
6508 to parse_symbol, where it is fairly easy to grow the symtab. This
6509 also fixes a symtab trashing bug on all mips-based systems.
6510 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
6511 needed anymore.
6512 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
6513 mips_extra_func_info, and all the PROC_xxx macros that look at it.
6514
d26b50b7
PB
6515Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
6516
6517 * c-exp.y: Add missing return type to yyparse() prototype.
6518
be772100
JG
6519Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
6520
6521 Create and use macros for iterating on symtabs, psymtabs, msymbols.
6522
6523 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
6524 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
6525 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
6526 (patch_opaque_types): Avoid dummy args and result.
6527 * objfiles.c (have_partial_symbols, have_full_symbols,
6528 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
6529 (iterate_over_objfiles, iterate_over_symtabs,
6530 iterate_over_psymtabs): Remove, clunky and slow.
6531 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
6532 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
6533 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
6534 dump_objfile): Remove dummy args and results. Move filename
6535 comparisons to callers.
6536 (printsyms_command, printpsyms_command, printmsyms_command,
6537 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
6538 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
6539 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
6540 list_symbols, make_symbol_completion_list): Replace explicit
6541 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
6542 Eliminate Dijkstra flag crap, break out of loops with gotos.
6543 (lookup_symtab_1): Protect '/' tests from short filenames.
6544 (cplus_mangled_symbol): Move inline into lookup_symbol.
6545 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
6546 (relocate_minimal_symbol): Move inline to vmap_symtab.
6547 (vmap_symtab): Replace iteration with ALL_OBJFILES,
6548 iterate_over_msymbols with ALL_MSYMBOLS.
6549
6550 Misc cleanup prior to release.
6551
6552 * Makefile.in (VERSION): Roll to 4.4.7.
6553 (HFILES): Add call-cmds.h.
6554 * call-cmds.h: New header for command fns called by other files.
6555 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
6556 (breakpoint_1): Remove unused type arg. Change callers.
6557
6558 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
6559 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
6560 * mipsread.c: Add prototypes for all static functions.
6561
6562 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
6563 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
6564 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
6565 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
6566 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
6567 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
6568 unused copy!
6569
6570 * buildsym.c (define_symbol): Handle global register variables
6571 (from Pierre Willard). Complain if register numbers are too large.
6572 * target.c (nomemory): Now that higher levels examine errno, give EIO.
6573 * tm-sparc.h: Don't #include <sun4/reg.h>.
6574 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
6575 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
6576
6577 * language.h: Avoid forward enum declaration.
6578 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
6579 config/sun4os5.mt: New host and target.
6580 * defs.h (errno): #include <errno.h> rather than assuming int.
6581 From Pierre Willard.
6582
6583 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
6584 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
6585 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
6586 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
6587 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
6588 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
6589 sparc-xdep.c, utils.c, value.h, values.c: Lint.
6590
6591Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
6592
6593 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
6594 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
6595 * language.h (enum exp_opcode): Avoid forward enum def.
6596 * main.c (define_command, user_defined_command): Lint.
6597 * mem-break.c, xcoffread.c: Lint.
6598 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
6599
1eeba686
PB
6600Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
6601
6602 * Merged in latest RS6000 diffs from Metin G. Ozisik.
6603 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
6604 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
6605 or IBM6000_TARGET as (approximately) appropriate.
6606
bf349b77
FF
6607Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
6608
6609 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
6610 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
6611 or not to try reading symbols from a mapped objfile. Plugs memory
6612 leak due to shared libraries generating no psymtabs or symtabs.
6613
c2e4669f
JG
6614Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
6615
6616 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
6617 * copying.awk: Lint. Make stronger warning at top of copying.c.
6618 * elfread.c (elf_symtab_read): Eliminate check of mainline.
6619 * gdbtypes.c (smash_to_*): Remove FIXME comments.
6620 (lookup_pointer_type): Add FIXME comment.
6621 * main.c (set_history_size_command): Disallow negative size.
6622 * partial-stab.h: Update copyright.
6623 * rs6000-tdep.c (skip_trampoline_code): Better comments.
6624
6625Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
6626
6627 * main.c (set_history_size_command): Negative size is error.
6628 (Reported by Peggy Fieland.)
6629
3624c875
FF
6630Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
6631
6632 * coffread.c (coff_symfile_init): Update comment.
6633 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
6634 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
6635 macros to access the dbx specific objfile information.
6636 * dbxread.c (symfile_string_table, symfile_string_table_size):
6637 Remove these local variables.
6638 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
6639 read_dbx_symtab): Remove the stringtab and stringtab_size params
6640 from the function prototypes, the function definition, and the
6641 function calls. These are now available via DBX_STRINGTAB and
6642 DBX_STRINGTAB_SIZE using the objfile pointer.
6643 * dbxread.c (dbx_symfile_read): Relocate addr before using as
6644 an arg to read_dbx_symtab.
6645 * dbxread.c (dbx_symfile_read): Remove code that free'd the
6646 stringtab and the dbx specific per-objfile private info.
6647 * dbxread.c (init_psymbol_list): Remove symbol count from passed
6648 args in prototype, function definition, and function calls. It is
6649 now available via the DBX_SYMCOUNT macro using the objfile
6650 pointer.
6651 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
6652 local instance of struct dbx_symfile_info and replace with DBX_*
6653 macros.
6654 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
6655 symfile_string_table and symfile_string_table_size.
6656 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
6657 symfile_string_table.
6658 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
6659 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
6660 stringtab size variables. Remove all code that used to reread
6661 the stringtab.
6662 * objfiles.c (allocate_objfile): Move calls to init_malloc()
6663 to prior to any calls to mmalloc for the objfile specific heap.
6664 * utils.c (init_malloc): Document the requirement that for each
6665 heap for which corruption checking is desired, that init_mmalloc
6666 must be called prior to any mmalloc calls on the heap.
6667
6668Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
6669
6670 * rs6000-pinsn.c: Make dis-assembly output more like
6671 other targets: Don't print instruction in hex before
6672 the assembly; use print_address to print out jump
6673 destinations.
6674
04f27ddc
PB
6675Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
6676
6677 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
6678 * cplus-dem.c: Support "Sc" meaning "signed char".
6679
88f36033
SG
6680Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
6681
6682 * configure.in: fix iris/iris3.
6683
5c71cf23
PB
6684Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
6685
6686 * command.c, main.c (various places): Use ctype.h macros
6687 (such as isupper(x)), instead of hard-wiring in ASCII-isms
6688 (such as (x >= 'A' && x <= 'Z')).
6689 (There are still more of these in other files.)
6690 * main.c (defined_command): Lower-case the user's
6691 new command before entering it. Needed because
6692 command lookup is case-insensitive (and also lower-cases).
6693 (Based on Metin's earlier patch.)
6694
fd2329d7
RP
6695Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
6696
6697 * config/irix4.mh: new file.
6698
4f301966
SG
6699Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
6700
0a22f63e
SG
6701 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
6702 time.
6703
6704 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 6705
4f301966
SG
6706 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
6707 when calling new_symbol.
6708 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
6709 current_objfile.
6710
5c8d3927
PB
6711Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
6712
6713 * config/rs6000.mh: Update (for Fred's new mmalloc)
6714 flags to disable use of GNU malloc/mmalloc.
6715 * munch: Change SYSV rule to allow .text before the label,
6716 as well as after, to work for AIX.
6717 * gdbtypes.h: Minor clarifiction.
6718
be1384b0
MT
6719Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
6720
6721 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
6722 continuation in yet another place (between method declarations).
6723
62a469e1
SG
6724Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
6725
6726 * mips-tdep.c: include symfile.h and objfiles.h to fix
6727 compilation errors.
6728
b3024b21
PB
6729Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
6730
6731 * valops.c (value_struct_elt_for_reference): Added 'offset'
6732 parameter to handle multiple inheritance.
6733 * eval.c, value.h: Update accordingly.
6734
5e2e79f8
FF
6735Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
6736
6737 * objfiles.h: New file
6738 * Makefile.in (HFILES): Add objfiles.h
6739 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
6740 main_scope_lowpc, main_scope_highpc.
6741 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
6742 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
6743 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
6744 xcoffread.c, : Include objfiles.h.
6745 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
6746 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
6747 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
6748 inside_entry_file() and logic changed appropriately.
6749 * blockframe.c (outside_startup_file): Renamed to
6750 inside_entry_file() and logic changed appropriately.
6751 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
6752 and logic changed to use per-objfile specific fields.
6753 * blockframe.c (inside_entry_scope): Renamed to
6754 inside_entry_func() and logic changed to use per-objfile specific
6755 fields.
6756 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
6757 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
6758 Remove extern decls.
6759 * symfile.c, symfile.h (entry_point): Remove extern decl.
6760 * coffread.c (coff_symfile_init): Common entry point init code
6761 moved to symfiles.c, call init_entry_point_info().
6762 * coffread.c (complete_symtab): Use new per-objfile entry info.
6763 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
6764 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
6765 info.
6766 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
6767 * defs.h (inside_entry_scope, outside_startup_file,
6768 inside_main_scope): Prototypes changed for renames to
6769 inside_entry_func, inside_entry_file, inside_main_func,
6770 respectively.
6771 * symfile.c (syms_from_objfile): Common entry point init code
6772 moved to init_entry_point_info() and call init_entry_point_info().
6773 * symfile.h (init_entry_point_info): Include prototype.
6774 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
6775 moved to symfiles.c and call init_entry_point_info().
6776 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
6777 main_scope_lowpc, main_scope_highpc): Remove extern decls.
6778 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
6779 objfile entry info.
6780 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
6781 works for the majority of targets.
6782 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
6783 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
6784 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
6785 Use default definition in frame.h.
6786 * frame.h (selected_frame_level): Make decl extern.
6787 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
6788 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
6789 * partial-stab.h: Use new per-objfile entry info.
6790 * symfile.h (struct objfile): Removed, moved to objfiles.h.
6791 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
6792 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
6793 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
6794 have_minimal_symbols): Prototypes moved to objfiles.h.
6795 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
6796 Macros moved to objfiles.h.
6797 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
6798
01be6913
PB
6799Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
6800
6801 More C++ improvements (pointers to members, qualified names).
6802 * c-exp.y: Support exp.type::name and exp->type::name
6803 syntaxes. (Unfortunately, doesn't work for static members.)
6804 * c-exp.y, eval.c: Make type::~type work better.
6805 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
6806 value_static_field by value_struct_elt_for_reference.
6807 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
6808 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
6809 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
6810 for OP_SCOPE operand; no point in it now that we use lazy
6811 reading of values, and use "reference to member" objects.
6812 * gdbtypes.h: Clarify comment.
6813 * valops.c: Change value_struct_elt_for_address to return
6814 a reference (or variable), rather than a pointer. Change
6815 the name to value_struct_elt_for_reference to reflect this.
6816 Returning a reference instead of a address provides a
6817 generalization, since we can use the routine for both
6818 class::name as well as &class::name.
6819 Also, recurse to handle multiple inheritance properly.
6820 * valprint.c: Moved code to print pointer-to-members
6821 to new function point_class_member. This allows a
6822 "reference-to-member" to be printed using the same code.
6823 * valprint.c (type_print_varspec_prefix): Avoid printing
6824 "struct " for domains of class-member types.
6825 * valops.c (search_struct_field): Inline code for simplified
6826 version of value_static_field (which can then be deleted).
6827 * value.h: Rename value_struct_elt_for_address to
6828 value_struct_elt_for_reference. Delete value_static_field.
6829 * values.c: Remove no longer used function value_static_field.
6830
80d68b1d
FF
6831Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
6832
6833 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
6834 elfread.c (coff_symfile_finish): Add function, prototype, and
6835 add to the xxxx_sym_fns struct for each file type. Also reformat
6836 the xxxx_sym_fns vector to a standard format and add comments.
6837 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
6838 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
6839 Pass pointer to struct objfile rather than pointer to sym_fns.
6840 Change references inside each function accordingly. Allocate any
6841 symbol file specific info in the per-objfile memory region.
6842 * dbxread.c (free_and_init_header_files): Break function into
6843 free_header_files(), called from dbx_symfile_finish(), and
6844 init_header_files(), called from dbx_new_init().
6845 * dbxread.c (dbx_new_init): Move deallocation things to new
6846 dbx_symfile_finish function.
6847 * elfread.c (elf_new_init): Call buildsym_new_init().
6848 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
6849 routine for the objfile before deallocating other stuff.
6850 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
6851 * symfile.h: Move struct sym_fns to before struct objfile def.
6852 Add sym_finish function pointer and change prototypes of other
6853 function pointers to reflect passing struct objfile pointer rather
6854 than struct sym_fns pointer.
6855 * symfile.c: Remove now obsolete symtab_fns pointer.
6856 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
6857 locates the correct sym_fns struct for the given objfile.
6858 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
6859 for better support of mapped symbol tables.
6860 * symfile.c (symbol_file_command): Remove obsolete code using
6861 symfile_fns.
6862 * symfile.h: Remove duplicate declarations for symfile_objfile,
6863 entry_point, and object_files.
6864 * target.c (target_info): Compare symfile_objfile to NULL.
6865 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
6866 aixcoff_symfile_finish().
6867
dc52fc71
FF
6868Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
6869
6870 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
6871 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
6872 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
6873
2cd99985
PB
6874Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
6875
6876 Some improvements to g++ debugging.
6877 * symtab.c (list_symbols): demangle before pattern matching.
6878 * symtab.c: Other fixes to improve handing of operators.
6879 * valprint.c (type_print_base): Fix test for constructor.
6880 * values.c (value_static_field): Allow evaluation of
6881 CLASS::METHOD, returning a function pointer.
6882
b0246b3b
FF
6883Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
6884
6885 * Makefile.in (VERSION): Roll 4.4.6.
6886 * exec.c (exec_file_command): Add code to ignore optional args
6887 passed in by file_command() for use in symbol_file_command().
6888 * main.c (main): Document -mapped and -readnow in help summary.
6889 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
6890 * objfiles.c (allocate_objfile): Filename arg removed. Changes
6891 to get filename from bfd with bfd_get_filename(). Test mapto
6892 against 0, not NULL. Use mstrsave() to make copy of filename.
6893 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
6894 arg.
6895 * remote-vx.c (vx_load_command, add_symbol_stub):
6896 Symbol_file_add() takes an additional arg.
6897 * solib.c (symbol_add_stub): Symbol_file_add() takes an
6898 additional arg.
6899 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
6900 changed to return a bfd not an objfile pointer.
6901 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
6902 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
6903 Change to eliminate local bfd and use symfile_bfd_open() plus
6904 allocate_objfile(). Add code to implement readnow option.
6905 * symfile.c (symbol_file_command): Changes to option handling,
6906 readnow functionality moved to symbol_file_add().
6907 * symfile.c (symfile_init): Eliminate local copy of bfd.
6908 * symfile.c (add_symbol_file_command): Changes to parse mapped
6909 and readnow options.
6910 * symfile.h (allocate_objfile): Arg removed from prototype.
6911 * symtab.h (symbol_file_add): Arg added to prototype.
6912 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
6913 arg.
6914
318bf84f
FF
6915Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
6916
6917 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 6918 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
6919 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
6920 directories searched for source files.
6921 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
6922 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
6923 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
6924 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
6925 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
6926 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
6927 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
6928 sbrk.c
6929 * Makefile.in (HFILES): Remove state.h
6930 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
6931 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
6932 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
6933 * Makefile.in (clean): Remove all object files.
6934 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
6935 * cplus-dem.c: Remove prototypes definitions that are now done in
6936 def.h.
6937 * dbxread.c (throughout): Change from using per-objfile
6938 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6939 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
6940 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
6941 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
6942 * depend: Remove dependencies for state.o, state.h.
6943 * dwarfread.c: Add declaration for warning_pre_print.
6944 * dwarfread.c (dwarfwarn): Use warning_pre_print.
6945 * dwarfread.c (throughout): Change from using per-objfile
6946 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6947 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
6948 use supplied objfile.
6949 * i386-xdep.c (print_387_status): Change to use warning() rather
6950 than printfs.
6951 * i387-tdep.c (print_387_control_word): Change to use warning()
6952 rather than printfs.
6953 * infrun.c (wait_for_inferior): Remove unreachable abort() call
6954 that some compilers grumble about.
6955 * language.c (throughout): Add declaration for warning_pre_print
6956 and using warning() instead of printfs.
6957 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
6958 * main.c (main): Add declaration for warning_pre_print and set it
6959 similarly to error_pre_print. Add declarations for
6960 mapped_symbol_files and readnow_symbol_files. Add appropriate
6961 definitions to long_options[].
6962 * minsyms.c: Trivial fix to comment.
6963 * objfiles.c (allocate_objfile): Substantially rewritten for
6964 using mapped symbol files.
6965 * objfiles.c (throughout): Change from using per-objfile
6966 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6967 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
6968 * source.c (throughout): Change from using per-objfile
6969 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6970 * source.c (open_source_file): Use mstrsave to save file name in
6971 mapped symbol region for objfile.
6972 * symfile.c: Remove include for state.h.
6973 include to local form.
6974 * symfile.c (symbol_file_add_digested): Remove.
6975 * symfile.c (symbol_file_add): Substantially rewritten for mapped
6976 symbol files.
6977 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
6978 from objfile structure. Add malloc descriptor pointer (md).
6979 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
6980 * symm-xdep.c (print_fpu_status): Use warning() rather than
6981 printfs.
6982 * symmisc.c (free_symtab_block): Now takes and uses current
6983 objfile pointer.
6984 * symmisc.c (throughout): Change from using per-objfile
6985 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6986 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
6987 Sun compiler grumblings when PTR is char *.
6988 * symtab.c (lookup_symbol): Cast return value of iterate_over_
6989 msymbols() to correct pointer type.
6990 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
6991 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
6992 error always starts on a line of it's own.
6993 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
6994 Rewrite for new mapped malloc package use.
6995 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
6996 that don't want to use the mapped malloc package; pass arguments
6997 on to traditional malloc package functions.
6998 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
6999 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
7000 mrealloc, malloc, and realloc but get fatal error if runs out
7001 of memory.
7002 * utils.c (msavestring, mstrsave): Save a string in a specific
7003 mapped malloc region.
7004 * utils.c (print_spaces): Use xmalloc to get the buffer.
7005 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
7006 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
7007 * config/i386v4.mh: Insignificant reorganization.
7008
0750528a
FF
7009Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
7010
7011 * xcoffread.c: Only enable compilation of debugging functions
7012 if IBM6000 is defined. Fails to compile otherwise.
7013
4db3902a
RP
7014Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
7015
7016 * Makefile.in: pass MAKEINFO down on info.
7017
bec9fad9
JG
7018Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
7019
7020 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
7021 useless code, including an lseek to an uninitialized variable.
7022 Reported by Jim Williams <jimbo@wrs.com>.
7023
6730b139
PB
7024Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
7025
4db3902a
RP
7026 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
7027 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
7028 * minsyms.c, symfile.c: Changes that may be generally
7029 applicable, but are #ifdef IBM6000 for now.
7030 * rs6000-xdep.c: Fixed typo in comment.
7031 * rs6000-tdep.c: Non-substatial changes.
7032 * xoffread.c: The main change here is addition of some
7033 debugging functions.
7034 * xoffexec.c: More changes.
7035
7036 * xcoffread.c: Fixed two too-few-parameters bugs.
7037
6730b139
PB
7038 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
7039 to SOLIB_CREATE_INFERIOR_HOOK macro.
7040
a846ac55
FF
7041Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
7042
7043 * symfile.h: Add prototype for iterate_over_msymbols().
7044 * symtab.c (cplus_mangled_symbol): Add function.
7045 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
7046 iterate_over_msymbols to find demangled C++ symbol.
7047 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
7048 value to iterate_over_msymbols().
7049 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
7050 msymbols().
7051
7052Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
7053
7054 * Makefile.in: added check target.
7055
a1106a1e
JG
7056Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
7057
7058 * ecoff.c: Move to ../bfd/coff-msym.c.
7059 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
7060 * remote.c (): Add newline to initial +.
7061 (remote_resume): Mention how to cope with signals.
7062 (remote_interrupt): Add debug msg.
7063 (remote-wait): Implement new 'T' reply, which includes
7064 status, PC, and FP all in a single short message.
7065 (putpkt): Add further debugging of packet acks.
7066 * mipsread.c (fixup_symtab): Also swap RFD's.
7067 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 7068 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
7069 * mips-tdep.c (heuristic_proc_start): Avoid long delays
7070 for remote MIPS by limiting heuristic to 200 byte search.
7071 (heuristic_proc_desc): Byte-swapping.
7072 (mips_print_register): Cope with failure of
7073 read_relative_register_raw_bytes. Byte-swap integers for
7074 printing.
7075 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 7076
1170a046
SG
7077Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
7078
89f1a7df
SG
7079 * config.sub configure.in config/mh-irix4
7080 gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1170a046 7081 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
89f1a7df 7082 gdb/xm-irix4.h gdb/config/mt-irix3
1170a046
SG
7083 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
7084
d7eddc51
FF
7085Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
7086
7087 * defs.h, utils.c: xrealloc takes PTR as first arg.
7088 * defs.h: Reword confusing comment about ANSI prototypes.
7089 * defs.h: Some minor whitespace changes.
7090 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
7091 not NULL, which can be (void *).
7092 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
7093 * tm-i386v.h (SP_ARG0): Define
7094 * xm-sysv4.h: Back out of change for missing prototypes.
7095 * i386-tdep.c (get_longjmp_target): Add function.
7096
a846ac55
FF
7097Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7098
7099 * Makefile.in: install man page too.
7100
d747e0af
MT
7101Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
7102
7103 * All GDB files that #include defs.h: Removed stdio.h.
7104 (defs.h): #include stdio.h.
7105
96743d3c
SC
7106Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
7107
7108 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
7109 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
7110 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
7111 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
7112 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
7113 it before printing out the hex shape of an address.
7114
6c6afbb9
PB
7115Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
7116
bff1c97a
FF
7117 * rs6000-xdep.c (frame_initial_stack_address): Move
7118 code to set frame->cache_fsr into new separate function
7119 frame_get_cacahe_fsr. This allows fixing a fatal error.
7120 * xcoffexec.c: Turn previously suppressed error
7121 message back on, after cleaning up BFD.
7122
6c6afbb9
PB
7123 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
7124 printing of blank line, since it cases printing of an
7125 extra blank line. Is this intended? It does mess up
7126 gdb test suite.
7127 * defs.h: Put back declarations of malloc and realloc,
7128 but protected by #ifndef MALLOC_INCOMPATIBLE.
7129 * objfiles.c: Undo previous change: Use malloc/realloc
7130 for objfile malloc/realloc fields (but add a cast).
7131 * xcoffexec.c: Suppress an error message (for now).
7132
7133Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
7134
7135 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7136 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
7137 * buildsym.c: Use smash_to_pointer_type() to handle forward type
7138 references.
7139 * xcoffread.c: Modifications to C_DECL storage class handling, and
7140 introduction of an old smash_to_pointer_type() routine.
7141
7142 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7143 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
7144 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
7145 parameters have been modified.
7146
7147 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7148 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
7149 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
7150 and fetch_inferior_registers() always fetched all the registers
7151 resulting valid register values at hand all the time. Pushing a dummy
7152 frame did not require validating all register values first. After
7153 putting the above mechanism into action, we didn't have valid registers
7154 values always ready. Thus, all registers need to be fetched before
7155 pushing a dummy frame now.
7156
7157 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7158 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
7159 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
7160 the starting address (actual frame address) of a frame.
7161 * rs6000-tdep.c: modifications to function_frame_info() to see if
7162 function reserves a frame pointer register (alloca register)
7163 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
7164 FRAME_LOCALS_ADDRESS has been updated to support debugging of
7165 functions with alloca() calls.
7166
4b8333de
FF
7167Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
7168
7169 * xm-sysv4.h: Provide definitions/prototypes for host environment
7170 functions for which no definitions or prototypes are provided in
7171 any currently included gdb or host environment header files.
7172 For SVR4, this currently includes malloc and realloc, which cannot
7173 be portably prototyped in any gdb include file.
7174
7175Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
7176
7177 * buildsym.h: Remove obsolete variable file_stabs.
7178
7179 * Makefile.in: Move place where configure merges in host-
7180 and target-dependent fragments later, so the latter
7181 can override (say) GNU_MALLOC.
7182 * config/mh-rs6000: Use system malloc. Otherwise, I
7183 ended up with *two* incompatible versions of malloc
7184 (functions in libc would call the malloc in libc).
7185 I assume this is a shared library problem.
7186
7187 * remote.c: Fix (presumed) typo.
7188 * objfiles.c: Use xmalloc/xrealloc instead of
7189 malloc/realloc (since the latter are no longer declared).
7190
7191 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7192 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
7193 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
7194 handle individual registers.
7195 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
7196 correctly in case it wasn't cached yet. (A problem showed up
7197 after fetching individual registers.)
7198 * buildsym.c: Disable type_synonym_name's type name overwriting
7199 in cases it is unnecesary. rs6000 portation doesn't use
7200 type_synonym_name, and it used to nullify type names
7201 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
7202 type's name as soon as space for that type is allocated.
7203 * xcoffread.c: ignore a section's lineno information if it is
7204 not `.text'. (In rs6000 bfd portation integration, skipping over
7205 `.pad' sections are ignored since it was in machine independent
7206 part of the code. Thus, a problem of fake sections with invalid
7207 lineno information arised.)
7208
7209 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
7210 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
7211 * rs6000-tdep.c: make function_frame_info() work whether or not
7212 reading from a core file.
7213 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
7214
7215 * infrun.c. main.c, printcmd.c. symtab.c:
7216 More changes from IBM for rs6000.
7217
7218
818de002
PB
7219Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
7220
7221 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
7222 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
7223 Merge in changes (mostly from IBM) for RS6000.
7224 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
7225 More changes from IBM for RS6000. These are in machine-
7226 independent code, and probably could do with some cleaning
7227 up. The most questionable of these are #ifdef IBM6000.
7228 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
7229 to single_step() (for consistency with rs6000 and i860).
7230 * utils.c: Allow the 1st arg to xrealloc to be NULL
7231 (in which case do malloc). This removes the need for
7232 some tests in xcoff code (and perhaps other places?).
7233 * coffread.c: Removed variables last_source_file,
7234 type_vector, and type_vector_length as these are now
7235 defined by buildsym.[ch].
7236 * defs.h: Remove prototypes for malloc and realloc, since
7237 these should only be used to implement xmalloc and xrealloc,
7238 and they conflict with <stdlib.h> in AIX - where they
7239 return void* even when __STDC__ isn't defined. Sigh.
7240 * munch: Recognize *initialize* in data as well as text
7241 (AIX uses data). Also, incorporate a patch from Garrett
7242 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
7243 much more sensible, by only trying to match the name of
7244 the initialize_foo function, and not the junk before it.
7245
8537ba60
SG
7246Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
7247
7248 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
7249 unless symbol table indicates that something has changed.
7250
069bc454
JG
7251Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
7252
b543979c
JG
7253 * remote.c: Make it work for embedded MIPS. Increase buffer
7254 size, and use throughout. Round buffer size up if too many regs.
7255 Support baud rate setting and try for an 8-bit path. If
7256 interrupted while waiting for target, send a ^C down the wire.
7257 Avoid single-byte reads.
7258 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
7259 and NUM_REGS.
7260 * mips-xdep.h: Avoid the embedded regs when on Unix.
7261
d141f3e3
JG
7262 * mipsread.c: Byte-swap the symbol table structures, using
7263 routines from ecoff.c, to read a symbol table written in any
7264 of the four possible byte orders.
069bc454
JG
7265 * configure.in (mips-big-* target): Same as Sony News.
7266 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
7267 * ecoff.c: New file for symbol swapping routines.
7268
80ba48f5
SG
7269Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
7270
7271 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
7272 all-breakpoints' command.
7273 * (get_number): Allow users to enter negative breakpoint numbers.
7274 * (breakpoint_1): Reformat display of 'info break' to show new
7275 fields.
7276 * (create_longjmp_breakpoint, breakpoint_re_set,
7277 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
7278 symfile.c (syms_from_objfile): Re-do
7279 insertion of longjmp breakpoints. Move all code into
7280 breakpoint_re_set, and call that instead of
7281 create_longjmp_breakpoint in symfile.c.
7282
cba0d141
JG
7283Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
7284
7285 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
7286 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
7287 * symtab.c (find_pc_symtab): Handle having no objfiles.
7288 * infcmd.c: Fix comment.
7289 * objfiles.c (free_all_objfiles): Add.
7290 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
7291 * symfile.c (symbol_file_command): free all objfiles when
7292 specifying a new symbol file.
7293 (reread_symbols): Stat the file name, don't fstat the descriptor.
7294
a846ac55
FF
7295Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
7296
7297 * Makefile.in, configure.in: removed traces of namesubdir,
7298 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
7299 copyrights to '92, changed some from Cygnus to FSF.
7300
cba0d141
JG
7301Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
7302
7303 * dbxread.c (end_psymtab): Delete empty psymtabs.
7304 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
7305 * symfile.h (struct objfile): Add free_psymtabs.
7306
35318110
JG
7307Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
7308
47890ed7
JG
7309 * Makefile.in (VERSION): Roll to gdb-4.4.4.
7310
35318110
JG
7311 * symfile.c (symbol_file_command): strcmp => !strcmp.
7312 * breakpoint.h: Move prototypes to follow enum definition they need.
7313 * breakpoint.c, infrun.c: Lint.
7314 * printcmd.c: Use `enum enable' rather than `enum
7315 display_status'.
7316 * mipsread.c: First pass at making it compile with the new
7317 objfile changes. Probably seriously broken still, but it
7318 compiles. FIXME.
7319
30875e1c
SG
7320Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
7321
7322 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
7323 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
7324 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
7325 stepping (and nexting) through longjmp(). Also, cleanup
7326 breakpoint handling quite a bit by creating explicit breakpoint
7327 types instead of using magic breakpoint numbers.
7328 Makefile.in: Update version to 4.4.3
7329
021959e2
JG
7330Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
7331
93fe4e33
JG
7332 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
7333 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
7334 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
7335
021959e2
JG
7336 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
7337
7338 * minsyms.c (install_minimal_symbols): Add bunches to any
7339 existing minsyms in the objfile. Avoid extra mallocation
7340 by working directly in the obstack. Remove ignored `mainline' parm.
7341 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
7342 xcoffread.c: Change all callers.
7343 * FIXME: We should be able to eliminate MAINLINE from all the
7344 symbol readers now, with a small bit of work.
7345
7346 * valops.c, value.h: Lint.
7347 * remote-vx.c: Add missing break; statement. Bugfix by
7348 Michael Sclafani, <sclafani@src.dec.com>.
7349
bff1c97a
FF
7350Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
7351
7352 * Makefile.in (VERSION): Update version to 4.4.2
7353 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
7354 minsyms.c, mmap-alloc.c, mmap-sbrk.c
7355 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
7356 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
7357 mmap-alloc.o, mmap-sbrk.o
7358
7359 * altos-xdep.c: Minor whitespace change.
7360 * am29k-tdep.c (examine_prologue): Convert from misc function vector
7361 use to new minimal symbol table use.
7362 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
7363 * arm-xdep.c (store_inferior_registers): Returns void.
7364 * blockframe.c (get_pc_function_start, find_pc_partial_function):
7365 Convert from misc function vector use to new minimal symbol table use.
7366 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
7367 * breakpoint.c: Add prototypes for local functions.
7368 * breakpoint.c (catch_command_1): Change to static and remove unused
7369 local "pc".
7370 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
7371 * breakpoint.h: Change function decls to prototype form.
7372 * buildsym.c: Add prototypes for local functions.
7373 * buildsym.c: Moved hashname() function here from dbxread.c.
7374 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
7375 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
7376 * buildsym.c (dbx_alloc_type): Change to static.
7377 * buildsym.c (finish_block): Add objfile parameter.
7378 * buildsym.c (misc): Change symbol_obstack to objfile version.
7379 * buildsym.c (make_blockvector): Change to static.
7380 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
7381 * buildsym.c (compare_line_numbers): Change to static, args are const,
7382 cast args when used.
7383 * buildsym.c (start_symtab): Inline new_object_header_files() call.
7384 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
7385 and made static. Add objfile parameter.
7386 * buildsym.c (end_symtab): Simplify code using line table size.
7387 Realloc the linetable on the objfile symbol_obstack and copy there.
7388 * buildsym.c (scan_file_globals): Convert from misc function vector
7389 use to new minimal symbol use.
7390 * buildsym.c (define_symbol): Add objfile parameter. Make sure
7391 strings get allocated in objfile's symbol_obstack. Convert references
7392 to builtin types to lookup_fundamental_type().
7393 * buildsym.c (read_type): Make static, add objfile parameter, convert
7394 references to buildin types to lookup_fundamental_type().
7395 * buildsym.c (read_struct_type): Add objfile parameter.
7396 * buildsym.c (read_array_type): Make static, add objfile parameter.
7397 * buildsym.c (read_enum_type): Make static, add objfile parameter.
7398 * buildsym.c (read_huge_number): Make static.
7399 * buildsym.c (read_range_type): Make static, add objfile parameter,
7400 convert references to buildin types to lookup_fundamental_type ().
7401 * buildsym.c (read_args): Make static, add objfile parameter.
7402 * buildsym.h: Convert function decl's to prototype form.
7403 * c-exp.y: Add prototypes for local functions, convert uses of misc
7404 function vector to minimal symbol table. Reformat all builtin type
7405 initializations and pass a NULL objfile to init_type() for them.
7406 * coffread.c: Change context_stack ref's to coff_context_stack,
7407 add local function prototypes. Cast uses of xrealloc arg 1.
7408 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
7409 crafting a new type.
7410 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
7411 * coffread.c (finish_block): Change name to coff_finish_block.
7412 * coffread.c (make_blockvector): Add and use objfile parameter.
7413 * coffread.c (record_line): Change name to coff_record_line.
7414 * coffread.c (start_symtab): Change name to coff_start_symtab.
7415 * coffread.c (end_symtab): Change name to coff_end_symtab.
7416 * coffread.c (record_misc_function): Change name to record_minimal_
7417 symbol and change to minimal symbol table use from misc func tbl.
7418 * coffread.c (coff_symfile_read): Convert from misc function vector
7419 use to minimal symbol table use.
7420 * coffread.c (hashname): Remove; use common version in buildsym.c.
7421 * coffread.c (decode_base_type): Change references to builtin types
7422 to calls to lookup_fundamental_type().
7423 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
7424 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
7425 * command.c: Add prototypes for local functions.
7426 * command.c (add_cmd): Prototype the 'fun' parameter and use the
7427 appropriate member of the function union for that type.
7428 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
7429 ifdef out the function since it isn't currently used.
7430 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
7431 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
7432 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
7433 * command.c (help_cmd): Compare function pointer to NULL.
7434 * command.c (help_cmd_list): Compare function pointer to NULL.
7435 * command.c (lookup_cmd_1): Use correct member of function union.
7436 * command.c (undef_cmd_error): Make static.
7437 * command.c (complete_on_cmdlist): Use correct member of func union.
7438 * command.c (do_setshow_command): Use correct member of func union.
7439 * command.c (shell_escape): Convert rindex use to strrchr.
7440 * command.h (COMMAND_H): Define if already included.
7441 * command.h (cmd_list_element struct): Change 'function' to a union
7442 and prototype args. Prototype completer function.
7443 * command.h: Convert decl's to prototype form.
7444 * convex-xdep.c (store_inferior_registers): Returns void.
7445 * copying.c: Prototype local functions.
7446 * coredep.c: Minor whitespace change.
7447 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
7448 * cplus-dem.c: Prototype local functions.
7449 * dbxread.c (hashname): Remove; moved to buildsym.c.
7450 * dbxread.c (free_and_init_header_files): Make static.
7451 * dbxread.c: Add prototypes for local functions.
7452 * dbxread.c (new_object_header_files): Remove; inlined usages.
7453 * dbxread.c (xrealloc usages): Cast args.
7454 * dbxread.c (record_misc_function): Change to record_minimal_symbol
7455 and change usages accordingly.
7456 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
7457 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
7458 * dbxread.c (dbx_next_symbol_text): Make static.
7459 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
7460 * dbxread.c (init_bincl_list): Add and use objfile parameter.
7461 * dbxread.c (free_bincl_list): Add and use objfile parameter.
7462 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
7463 * dbxread.c (end_psymtab): Convert to use per-objfile data.
7464 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
7465 prototypes.
7466 * dwarfread.c (record_misc_function): Change name to record_minimal_
7467 symbol and use minimal symbol table throughout.
7468 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
7469 * dwarfread.c: Convert all references to builtin types to use the new
7470 lookup_fundamental_type function.
7471 * dwarfread.c (read_enumeration): Add and use objfile parameter.
7472 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
7473 types.
7474 * elfread.c (record_misc_function): Convert to use record_minimal_
7475 symbol.
7476 * elfread.c (elf_symtab_read): Add objfile parameter.
7477 * eval.c: Add prototypes for local functions and move some decls
7478 around to accomodate prototypes.
7479 * expprint.c: Add prototypes for local functions. Change references
7480 to misc function vector to minimal symbol table.
7481 * findvar.c (read_memory usages): Cast args.
7482 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
7483 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
7484 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
7485 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
7486 * gould-xdep.c: Minor whitespace change.
7487 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
7488 * hp300ux-xdep.c (store_inferior_registers): Returns void.
7489 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
7490 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
7491 * i386-tdep.c: Add prototypes for local functions.
7492 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
7493 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
7494 that defaulted to int.
7495 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
7496 i386_push_dummy_frame): Returns void.
7497 * i386-xdep.c (i386_register_u_addr): Declare params that default to
7498 int and explicitly declare return type as int.
7499 * i387-tdep.c: Minor formatting changes.
7500 * i960-tdep.c (leafproc_return): Convert from misc function vector
7501 use to minimal symbol table use.
7502 * infcmd.c: Add prototypes for local functions.
7503 * infcmd.c (continue_command, until_next_command, until_command,
7504 path_info, path_command): Make static.
7505 * infcmd.c (step_1, until_next_command): Convert from misc func
7506 vector to minimal symbol table use.
7507 * inflow.c: Add prototypes for local functions.
7508 * infptrace.c (store_inferior_registers): Returns void, not int.
7509 * language.c (_initialize_language): Use proper member of function
7510 union.
7511 * m2-exp.y: Add prototypes for local functions, convert misc function
7512 vector uses to minimal symbol table uses.
7513 * m2-exp.y (make_qualname, yyerror): Make static.
7514 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
7515 * m68k-pinsn.c: Add prototypes for local functions.
7516 * m68k-pinsn.c (print_insn): Cast args to read_memory.
7517 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
7518 * m68k-stub.c: Add prototypes.
7519 * m88k-pinsn.c (sprint_address): Convert from misc function vector
7520 use to minimal symbol table use.
7521 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
7522 * m88k-xdep.c (store_inferior_registers): Returns void.
7523 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
7524 * mach386-xdep.c (store_inferior_registers): Returns void.
7525 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
7526 * main.c: Add prototypes for local functions.
7527 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
7528 longjmp() result to (NORETURN void).
7529 * main.c (catch_errors): Prototype the 'func' parameter.
7530 * main.c (disconnect, stop_sig, do_nothin, float_handler):
7531 Takes an unused arg.
7532 * main.c (execute_command): Call the right member of the func union.
7533 * main.c (command_loop_marker, symbol_completion_function,
7534 command_loop): Make static.
7535 * main.c (command_line_input): Make linelength unsigned, cast arg
7536 to command_line_input().
7537 * main.c (add_info, add_com): Prototype the 'fun' parameter.
7538 * main.c (initialize_main): Call right member of function union.
7539 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
7540 * mem-break.c: Include symtab.h
7541 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
7542 * mips-xdep.c (store_inferior_registers): Returns void.
7543 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
7544 use to minimal symbol table use.
7545 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
7546 version.
7547 * mipsread.c (make_type): Remove, convert usages to init_type.
7548 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
7549 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
7550 vector use to minimal symbol table use.
7551 * parse.c: Add prototypes for local functions.
7552 * parse.c (xrealloc usages): Cast args.
7553 * parse.c (prefixify_expression, length_of_subexp): Make static.
7554 * parser-defs.h (PARSER_DEFS_H): Define when first included.
7555 * parser-defs.h: Convert function decls to prototype form.
7556 * partial-stab.h: Convert from misc function vector use to new minimal
7557 symbol table use.
7558 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
7559 the per-objfile copies.
7560 * printcmd.c: Add prototypes for local functions. Move some struct
7561 definitions around to accomodate prototypes.
7562 * printcmd.c (decode_format): Make static, change args oformat and
7563 osize to int from char.
7564 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
7565 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
7566 * printcmd.c (print_address_symbolic): Convert from misc function
7567 vector use to minimal symbol table use.
7568 * printcmd.c (address_info): Convert from misc function vector use
7569 to minimal symbol table use.
7570 * printcmd.c (delete_display, enable_display, disable_display_command):
7571 Make static.
b52373a2 7572 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
7573 * procfs.c (fetch_core_registers): Add unused param reg_addr.
7574 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
7575 * pyr-xdep.c (store_inferior_registers): Returns void.
7576 * remote-mm.c (mm_load): symbol_file_add return value unused.
7577 * remote-nindy.c: Minor format change.
7578 * remote-vx.c (vx_load_command): symbol_file_add result unused.
7579 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
7580 * rs6000-xdep.c (store_inferior_registers): Returns void.
7581 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
7582 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
7583 vector use to minimal symbol table use.
7584 * solib.c: Add prototypes for local functions.
7585 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
7586 function vector use to minimal symbol table use.
b52373a2 7587 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
7588 * solib.c (find_solib, shared_library_command): Make static
7589 * solib.c (read_memory, write_memory usages): Cast args.
7590 * solib.c (special_symbol_handling): Add function
7591 * source.c: Add prototypes for local functions.
7592 * source.c (select_source_symtab): Convert to scan objfiles.
7593 * source.c (open_source_file): Make static.
7594 * source.c (xrealloc usages): Cast args.
7595 * source.c (source_line_charpos): ifdef out, unused.
7596 * source.c (get_filename_and_charpos): Make static.
7597 * stack.c: Add prototypes for local functions.
7598 * stack.c (print_frame_info, frame_info): Convert from misc function
7599 vector use to minimal symbol table use.
7600 * symfile.c: Add prototypes for local functions.
7601 * symfile.c (compare_symbols): Make args const PTR's.
7602 * symfile.c (compare_psymbols, sort_pst_symbols) add.
7603 * symfile.c (sort_all_symtab_syms): Scan objfile list.
7604 * symfile.c (obsavestring): Add objfile parameter.
7605 * symfile.c (init_misc_bunches, prim_record_misc_function,
7606 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
7607 sort_misc_function_vector, compact_misc_function_vector): Remove
7608 * symfile.c (symbol_file_add_digested): Add function.
7609 * symfile.c (symbol_file_add): Returns struct objfile *.
7610 * symfile.c (symbol_file_command): Modify for state file use.
7611 * symfile.c (symfile_open): Add parameter "dumpable".
7612 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
7613 * symfile.c (load_command, add_symbol_file_command): Make static.
7614 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
7615 * symfile.c (rindex usages): Converted to strrchr.
7616 * symfile.c (allocate_psymtab): New
7617 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
7618 converted to minimal symbol table usage, but no obvious conversion.
7619 * symfile.c (free_all_symtabs): Remove.
7620 * symfile.c (_initialize_symfile): Use per-objfile info.
7621 * symfile.h: Rework the objfile structure to add per-objfile data
7622 objects (psymbol_obstack, symbol_obstack, type_obstack,
7623 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
7624 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
7625 Add prototypes to function declarations.
7626 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
7627 function vector usage to minimal symbol table usage.
7628 * symmisc.c (DEV_TTY): Define if not defined.
7629 * symmisc.c: Add local function prototypes.
7630 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
7631 printpsyms_command, print_objfiles, print_objfiles_command):
7632 Rework to use iterate_over_*
7633 * symtab.c: Add prototypes for local functions.
7634 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
7635 * symtab.c (lookup_partial_symtab): Scan through objfiles.
7636 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
7637 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
7638 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
7639 lookup_reference_type, lookup_member_type, allocate_stub_method,
7640 check_stub_method, create_array_type, smash_to_member_type,):
7641 Moved to gdbtypes.c
7642 * symtab.c (lookup_symbol): Some args are const.
7643 * symtab.h: All type related defs and structs moved to gdbtypes.h
7644 * symtab.h: Convert decls to prototypes.
7645 * target.c (noprocess): Make static.
7646 * target.h: Change decl's to prototypes.
7647 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
7648 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
7649 * utils.c (_initialize_utils): Use correct member of function union.
7650 * valarith.c: include gdbtypes.h
7651 * valops.c: include gdbtypes.h, add prototypes for local functions.
7652 * valops.c (value_push, value_arg_push, find_function_addr):
7653 Make static.
7654 * valops.c (value_string): Convert from misc function vector use
7655 to minimal symbol table use.
7656 * valops.c (check_field_in): Make arg const.
7657 * valprint.c: Add prototypes for local functions.
7658 * valprint.c (print_string): Make static
7659 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
7660 * values.c: Add prototypes for local functions.
7661 * values.c (value_headof): Convert from misc function vector to
7662 minimal symbol table.
7663 * xcoffexec.c: Add prototypes for local functions.
7664 * xcoffexec.c (exec_close, file_command, add_to_section_table):
7665 Make static.
7666 * xcoffexec.c (relocate_minimal_symbol): Add.
7667 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
7668 * xcoffread.c: Add prototypes for local functions.
7669 * xcoffread.c (sort_syms): Convert to scan objfiles.
7670 * xcoffread.c (read_xcoff_symtab): Make static.
7671 * xcoffread.c (various): Replace references to builtin types with
7672 calls to lookup_fundamental_type. Replace references to symbol_obstack
7673 and psymbol_obstack with pointers to the per-objfile copies.
7674 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
7675 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
7676 Make static.
7677 * xcoffread.c (init_stringtab): Add objfile parameter.
7678 * gdbtypes.c: New file
7679 * minsyms.c: New file
7680 * mmap-alloc.c: New file
7681 * mmap-sbrk.c: New file
7682 * objfiles.c: New file
7683 * state.c: New file
7684 * state.h: New file
7685
021959e2
JG
7686Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
7687
7688 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
7689 will make ChangeLog entries for all of them. Update VERSION
7690 to 4.4.2.
021959e2 7691
7919c3ed
JG
7692Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
7693
7694 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
7695 into solib.h.
7696 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
7697 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
7698 value.h: Prototypes for static functions; lint.
7699 * gdbtypes.h: Empty file to ease transition.
7700
75af490b
JG
7701Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
7702
7703 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
7704 inferior.h, language.h, signame.h, target.h, terminal.h,
7705 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
7706 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
7707 Lint.
7708 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
7709 signame.c, sparc-xdep.c: Prototypes for all static functions.
7710 Lint.
7711 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
7712 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
7713 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
7714 Remove to_call_function and target_call_function, since it
7715 always calls the same thing (call_function_by_hand).
7716 * core.c, exec.c, solib.c: Rename target_ops sections =>
7717 to_sections, etc.
7718 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
7719 target.h: target_kill takes no args.
7720 * language.c (language_info): Scaffolding to allow briefer
7721 messages when the current language changes. FIXME.
7722 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
7723 complaints about volatile functions.
7724 * xm-sysv4.h (HAVE_MMAP): Define.
7725
7726Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
7727
7728 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
7729 to make prototypes for all functions declared here.
7730 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
7731 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
7732 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
7733 * ieee-float.h: Use PARAMS for prototypes; make some params const.
7734 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
7735 * m2-exp.y: Remove unused CONST; Rename OR and AND.
7736 * utils.c: Avoid declaring malloc and realloc. Lint.
7737 (request_quit): Accept signal-number parameter.
7738
af213624
FF
7739Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
7740
9e4c1921
FF
7741 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
7742 DIE's. Add new function read_tag_pointer_type() to read them.
7743
af213624
FF
7744 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
7745 When creating a new user defined type, check to see if a partial
7746 type already exists, and if so, bash it to fit.
7747
be8303da
JG
7748Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
7749
7750 * coffread.c (decode_base_type): Pass long, not union.
7751 Fix by Eric Valette, ev@chorus.fr.
7752
d35bf52d
FF
7753Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
7754
7755 * elfread.c (elf_symtab_read): Fix code to correctly track
7756 changes in bfd for absolute symbols.
7757
5b620e75
SG
7758Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
7759
7760 * xm-vaxbsd.h: Close off comment.
7761
0a663e9e
FF
7762Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
7763
7764 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
7765
7766Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
7767
7768 * mips-tdep.c (mips_print_registers): Print correct register
7769 number for double pseudo-registers.
7770
ef9b1bc9
JG
7771Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
7772
256269fc
JG
7773 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
7774 in the op$::OPERATOR. case. From Steven McCanne,
7775 <mccanne@horse.ee.lbl.gov>.
7776
ef9b1bc9
JG
7777 * exec.c (set_section_name): Pass arg to exec_files_info;
7778 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
7779
195853fc
JG
7780Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
7781
7782 * main.c (print_gdb_version): Copyright msg: only this year.
7783 (cd_command): Avoid changing current_directory on error.
7784
ee17fd34
PB
7785Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
7786
7787 * mipsread.c (parse_partial_symbols): Handle dependencies
7788 between partial symbol tables (when not doing stabs-in-ecoff).
7789 (This used to be handled by parse_fdr, but parse_fdr was
7790 incompatible with handling stabs-in-ecoff, so the code
7791 was re-written to not use parse_fdr. Unfortunately,
7792 the logic to handle dependencies was overlooked.)
7793
1f46923f
SC
7794Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7795
7796 * coffread.c (read_enum_type): Use the size of a target int when
7797 describing enum.
7798 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
7799 of target int.
7800 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
7801 * symtab.c (lookup_reference_type, lookup_ptr_type): use
7802 TARGET_PTR_BIT to determine size of a pointer
7803 * values.c (unpack_long): when unpacking a REF or a PTR don't
7804 assume the size of the type.
7805
778c358d
JG
7806Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
7807
7808 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
7809 looking at its members. Improve guess between struct and union,
7810 only assuming union if multiple members have offsets of zero.
7811
bd49ef36
PB
7812Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
7813
7814 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
7815 (This is just for clarity - and one day permitting us to
7816 change FP0_REGNUM from 38 to 32, which would make more sense.)
7817 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
7818 register numbers in stabs-in-ecoff get handled correctly.
7819
7820Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
7821
7822 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
7823 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
7824 into BSD and Ultrix.
7825
96499e96
JG
7826Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
7827
7828 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
7829
98f03b91
SG
7830Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
7831
dafe57bc 7832 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
7833 * main.c (print_gdb_version): Update copyright notice.
7834
7835Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
7836
7837 * mipsread.c: Prepend "struct " to the names of structure
7838 types, and similarly for enums and unions. (This used
7839 to be done, but got lost in the re-write to "guess" the
7840 difference between enum/struct/union.)
7841 Also, guess that a tag is an enum if the first member
7842 has type btNil.
7843
3671f1fd
SG
7844Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
7845
7846 * xm-vax.h: #ifndef ultrix around #include of endian.h and
7847 limits.h (sigh).
7848
0c6efbcc
JG
7849Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
7850
ee7270cd
JG
7851 * Projects: Patching executables is done.
7852 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 7853 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 7854
4a1dcb7f
JG
7855 * symfile.c (reread_symbols): Whenever we reread one object
7856 file's symbols, we must restart the scan, because the object_files
7857 chain has been permuted.
7858
0c6efbcc
JG
7859 * exec.c (exec_files_info): Split out into print_section_info.
7860 Print BFD filename of each section if it's not the default one.
7861 * core.c (core_files_info): Call print_section_info.
7862
7863 * xm-vax.h: Include a few system header files whose definitions
7864 must precede defs.h.
7865 * language.c, language.h: Make some things const.
7866 * expression.h, main.c: const spreads like ooze.
7867
7868 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
7869 since BREAKPOINT values can be >0x80.
7870
d58ea996
SG
7871Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
7872
7873 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
7874
0c6efbcc
JG
7875Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
7876
7877 * sparc-pinsn.c: Remove kludge for preferring architectures.
7878 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
7879 and forever. Add `add' instruction to the set that get checked
7880 for a preceding `sethi' in order to print an absolute address.
7881 Corresponding changes in ../include/opcode/sparc.h needed
7882 to eliminate garbage instructions.
7883
d4ea2aba
PB
7884Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
7885
7886 * mipsread.c (parse_partial_symbols): Make sure partial
7887 symbols are created for external symbols (as used to be
7888 the case). This is a bit of a pain with the mips-coff.
7889 It uses a table which points to all of the external
7890 symbols belonging to a particular FDR or psymtab.
7891 Once we've generated this table, we might as well save
7892 it, and then use it in psymtab_to_symtab_1 to find
7893 the symbols to pass to parse_external().
7894 * symfile.c, symfile.c: New function start_psymtab_common
7895 to share the common parts of allocating a new psymtab
7896 for dbxread, mipsread (and later dwarfread). Its code
7897 was pulled out from start_psymtab in dbxread.c.
7898 * dbxread.c (start_psymtab): Use start_psymtab_common().
7899
7900 * valprint.c (val_print): If there is an error when trying
7901 to print a string, check to see if there really is a problem
7902 by reading just one character. If that works, assume
7903 things are ok.
7904
05151637
SG
7905Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
7906
7907 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
7908 cypress, v8 mnemonics in that order.
7909
4a074bea
PB
7910Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
7911
7912 * sparc-pinsn.c: Put the qsort() back in.
7913
c55e6167 7914Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 7915
eae1a261
JG
7916 * findvar.c (read_register, write_register): Handle machines
7917 where REGISTER_TYPE is not the same size as "int".
7918
c55e6167 7919 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 7920
c55e6167
JG
7921 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
7922 offset to process_one_symbol.
7923 (process_one_symbol): Take new offset parameter. Add it into
7924 appropriate symbol types to relocate symbols to loaded addresses.
7925 Handle all possible symbol types, and complain() about types that
7926 we don't expect to see.
7927 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
7928 process_one_symbol (FIXME, should pass real offset).
1aa560b2 7929
c55e6167
JG
7930 Misc bugfixes:
7931
7932 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
7933 sal's PC value.
7934 (set_breakpoint, break_command_1, until_break_command,
7935 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
7936 * symtab.h (resolve_sal_pc): Declare.
7937 * infcmd.c (jump_command): Use resolve_sal_pc.
7938
4cc9f7e2 7939 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
7940
7941 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 7942
5a4e7215
JG
7943 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
7944
3818ed33
JG
7945 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
7946 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
7947 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
7948
c55e6167
JG
7949Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
7950
7951 * dbxread.c (process_one_symbol): Make a first cut at handling
7952 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
7953
7954 * symtab.c (find_pc_line): Fix stepping into and out of #included
7955 files.
7956
71f49876
SG
7957Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
7958
7959 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
7960 no longer any need to copy ../include/opcode/* into gdb.
7961
fd8db897
JG
7962Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
7963
7964 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
7965
24b2fbdc
PB
7966Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
7967
7968 * valprint.c (type_print_base, type_print_method_args):
7969 Print C++ constructor methods without bogus "return type."
7970
cdb90e99
FF
7971Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
7972
7973 * infptrace.c (child_xfer_memory): Parameter "target" should
7974 be a pointer to a structure, not the entire structure.
7975
1b07e406
FF
7976Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
7977
7978 * depend: Convert the couple of references to ansidecl.h that
7979 used the local gdb version to use the ../include version.
7980
9a1ae235
FF
7981Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
7982
f66f459f
FF
7983 * procfs.c
7984 (child_xfer_memory): Takes pointer to a struct, not entire struct.
7985 (inferior_proc_init): Fix non-ANSI version of args.
7986 (attach): Call print_sys_errmsg with correct number of args.
7987 (mappingflags): Make static, does not need to be global.
7988
fc1f8646
FF
7989 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
7990 not the entire struct itself.
7991
1b7a420e
FF
7992 * valops.c (value_assign): Cast some args to modify_field() and
7993 {read,write}_register_bytes() correctly.
7994
9a1ae235
FF
7995 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
7996
99140c31
FF
7997 * Makefile.in (MALLOCSRC): Removed reference to removed local
7998 copy of ansidecl.h.
7999
8000 * dwarfread.c (list_in_scope): Needs an initial value, use file
8001 scope.
8002
9a1ae235
FF
8003Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
8004
8005 * main.c (main): Make option_index local to keep new getopt happy.
8006 main.c, solib.c, Makefile.in: Update copyright notices.
8007
0eb0a820
MT
8008Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
8009
8010 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
8011
313085cb
SG
8012Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
8013
8014 * Makefile.in (HFILES): Add partial-stab.h.
8015
be9a2362
FF
8016Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
8017
24e7d5ba
JG
8018 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
8019 New files for stratus. Not complete enough to actually build
8020 on the Stratus machine; that awaits copyright assignment for
8021 i860 changes.
be9a2362
FF
8022
8023 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
8024 for getting custom flags into CFLAGS when doing makes.
8025
8026 * configure.in: Add config information for stratus.
8027
cdce29ee
FF
8028Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
8029
8030 * dbxread.c (process_one_symbol): Pass address of structure
8031 to complain(), rather than the whole structure.
8032
7f435241
FF
8033Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
8034
8035 * solib.c (solib_add_common_symbols): Only compile in when not
8036 using SVR4 style shared libraries.
8037
a5bd5ba6
FF
8038Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
8039
8040 * dwarfread.c (locval): Add offreg flag to indicate location
8041 values that are computed off a base register.
8042
8043 * dwarfread.c (new_symbol): Rework TAG_global_variable and
8044 TAG_local_variable cases to account for static variables
8045 within function scopes.
8046
7e97eb28
SG
8047Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
8048
8c3d2a53
SG
8049 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
8050 doesn't exist on some systems.
8051
5e746644
SG
8052 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
8053 nexting over recursive function calls.
8054
d261ece7
SG
8055 * target.c (target_read_string): Create this routine to read null
8056 terminated strings from the target. It deals with running off the
8057 end of memory elegantly as well. solib.c (find_solib): Use
8058 target_read_string() to avoid problems with running off the end of
8059 memory.
8060
7e97eb28
SG
8061 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
8062 that reference pgrp_inferior.
8063
0cf9329b
PB
8064Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
8065
8066 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
8067 mips-tfile has been hacked to act more "traditionally."
8068 * dbxread.c: Fixed typo in comment.
8069
488d2691
PB
8070Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
8071
8072 * mips-tdep.c (mips_skip_prologue): Add some number of
8073 'sw' instructions before 'addiu' adjusts the stack.
8074
4d315a07
FF
8075Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
8076
8077 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
8078 freescope, buildblock closescope, record_line, add_symbol_to_list,
8079 gatherblocks, make_blockvector): Extensive changes to switch
8080 to generic symbol table building code in buildsym.c. Remove
8081 scope tree structures and functions, symbol table building
8082 functions, and lots of other small changes.
8083
8084 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
8085 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
8086
8087Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
8088
8089 * buildsym.c (cleanup_undefined_types): Add support for enums.
8090 This fixes the 'GDB internal error. cleanup_undefined_types with
8091 bad type' problem.
8092
8093Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
8094
8095 * dbxread.c: detect gcc2 compilations.
8096
1a4d253c
JG
8097Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
8098
8099 * sparc-pinsn.c: Rename bitfields that overlap with macro names
8100 in ../include/opcode/sparc.h.
8101
1d4c28c5
FF
8102Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
8103
8104 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
8105 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
8106 to reflect actual locations of opcode files, so TAGS target will
8107 be buildable.
8108
8109 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
8110
8111 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
8112 code.
8113
8114 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
8115 dereferencing to access the correct elements.
8116
8117 * valops.c (value_addr): Declare return type of external func
8118 value_copy().
8119
8120 * xcoffread.c: Undefine next_symbol_text before redefining it.
8121
fd8db897 8122For older changes see ChangeLog-9091
bd5635a1
RP
8123\f
8124Local Variables:
8125mode: indented-text
8126left-margin: 8
8127fill-column: 74
8128version-control: never
8129End:
This page took 0.719637 seconds and 4 git commands to generate.