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