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