* config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
451df680
SG
1Fri Oct 23 04:47:17 1992 Stu Grossman (grossman at cygnus.com)
2
3 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
4
c50c5197
JG
5Fri Oct 23 00:48:08 1992 John Gilmore (gnu@cygnus.com)
6
7 * Makefile.in (VERSION): gdb-4.7 release.
8 * README: Update for gdb-4.7.
9
db5b1f90
SG
10Thu Oct 22 11:24:18 1992 Stu Grossman (grossman at cygnus.com)
11
ee22c7f0
SG
12 * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
13 when necessary.
14
db5b1f90
SG
15 * alldeps.mak, depend: Update.
16
fef84cc4
JG
17Thu Oct 22 03:14:36 1992 John Gilmore (gnu@cygnus.com)
18
19 * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
20 is null.
21 * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP): Remove -- it
22 causes problems in setting breakpoint in the right place in
23 functions with `float' args which are passed as doubles.
24 * xm-vaxbsd.h (MEM_FNS_DECLARED): Avoid erroneous redecl's.
25 * config/rs6000.mh (NATDEPFILES): Add corelow.o.
26
603900c7
SG
27Thu Oct 22 01:01:24 1992 Stu Grossman (grossman at cygnus.com)
28
29 * Makefile.in (HFILES): Add nm-i386sco.h.
30 * dwarfread.c: include <sys/types.h> for SCO.
31 * infptrace.c: Don't include ptrace.h under SCO.
32 * config/i386sco.mh: Use -D_POSIX_SOURCE instead of -posix for
33 gcc.
34 * config/i386v.mt: Add exec.o to TDEPFILES.
35
3496b745
SG
36Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com)
37
38 * i386v-nat.c: Remove space from front of #endif.
39 * irix4-nat.c: Remove externs of registers[], include inferior.h
40 instead.
41 * mips-nat.c: Explicitly initialize zerobuf to 0!
42 * mips-tdep.c (init_extra_frame_info): Undo John's last change.
43 Always setup fci->frame, even if it's non-zero. Too many places
44 depend upon this behavior (and I have to get a release out the
45 door)!
46 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set
47 processing_gcc_compilation if we find the embedded stabs marker.
48 This fixes several bugs with finding the location of short or char
49 function parameters passed on the stack.
50
99ef5653
RP
51Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com)
52
53 Native support for sun4sol2.
54
55 * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
56 * nm-sysv4.h: new file.
57 * Makefile.in (HFILES): added nm-sysv4.h.
58 * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
59 (NAT_FILE, NATDEPFILES): new macros.
60 * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
61
e4db3f3e
JG
62Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com)
63
0a2a48a2
JG
64 * coredep.c: Include "nm.h" to get REGISTER_U_ADDR.
65 * doc/gdbint.texinfo: Improve REGISTER_U_ADDR and USE_PROC_FS doc.
66
e4db3f3e
JG
67 * Makefile.in (VERSION): Tick to 4.6.9.
68
69Tue Oct 20 23:27:56 1992 John Gilmore (gnu@cygnus.com)
70
71 * mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
72 definition, replace with portable one.
73 * remote-nindy.c: Lint.
74 (nindy_wait): Return type is int, result is inferior_pid.
75 * symmisc.c (dump_psymtab): Only print section_offsets if set.
76 (initialize_symmisc): Remove empty function.
77 * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
78 Remove obsolete, misspelled macro.
79 * doc/gdbint.texinfo: Document obsolete STACK_END_ADDR.
80 (all @node commands): Use new form to avoid nitpicking errors.
81 * doc/gdbint.texinfo: Document host/native/target split.
82
ce5489d2
SG
83Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com)
84
e0e91077
SG
85 * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings.
86
ce5489d2
SG
87 * xm-mips.h (offsetof): Don't define this if __STDC__.
88
ca048722
RP
89Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com)
90
3fcb9021
RP
91 umax native support (untested).
92
93 * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
94 fork-child.o.
95 (NAT_FILE, NATDEPFILES): new macros.
96 * config/umax.mt (TDEPFILES): removed exec.o.
97 * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
98 removed to nm-umax.h.
99 * nm-umax.h: new file.
100 * Makefile.in (HFILES): added nm-umax.h.
101
ca048722
RP
102 hppa native support (untested).
103
104 * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
105 (NAT_FILE, NATDEPFILES): new macros.
106 * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
107 * config/hppahpux.mt (TDEPFILES): removed exec.o.
108 * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
109 * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
110 * hppa[bh]-xdep.c: removed.
111 * hppa[bh]h-tdep.c: do not include ptrace.h.
112 * Makefile.in (HFILES): added nm-hppa[bh].h.
113
114 * doc/gdbint.texinfo: add PUSH_DUMMY_FRAME, POP_FRAME.
115
2675499b
SG
116Tue Oct 20 00:01:46 1992 Stu Grossman (grossman at cygnus.com)
117
118 * mips-nat.c: Straighten out include files. Work around
119 conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
120 for Ultrix-4.2.
121
d95eb930
SG
122Mon Oct 19 15:09:57 1992 Stu Grossman (grossman at cygnus.com)
123
56fc16c7
SG
124 * mips-nat.c (fetch_core_registers, register_addr): Copy from
125 coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
126 backtraces from core files work.
127 * config/decstation.mh, config/irix3.mh: Remove coredep.o.
128 Functions are now defined in mips-nat.c.
129
130 * tm-irix3.h: Put MIPS_EFI_SYMBOL_NAME in here too.
131
3ec5a74b
SG
132 * remote-hms.c: Disable all uses of serial_nextbaudrate and
133 serial_default_name().
134
5a6242dd
SG
135 * remote-hms.c, ser-go32.c, serial.h: Change from
136 serial_timedreadchar() to new serial_readchar().
137
d95eb930
SG
138 * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones.
139
10a297b7
PB
140Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
141
142 * c-exp.y: Moved handling of 'const' and 'volatile' from
143 <type> to <typebase>. This removes 2 conflicts.
144
e6efef9f
FF
145Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
146
147 * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
148 from breakpoint table when reseting breakpoints.
149
4d0eabff
FF
150Sat Oct 17 00:59:23 1992 Fred Fish (fnf@cygnus.com)
151
152 Native support cleanup and corefile fixes for i386 SVR4 systems.
153
154 * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
155 fill_fpregset): Moved to i386v4-nat.c
156 * i386v4-nat.c, nm-i386v4.h, : New files.
157 * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE): Use nm-i386v4.h.
158 * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES): Add corelow.o,
159 change i386v-nat.o to i386v4-nat.o.
160
173a4f1b
RP
161Fri Oct 16 13:06:08 1992 K. Richard Pixley (rich@sendai.cygnus.com)
162
c36989aa
RP
163 Miscellaneous 386 configs updated.
164
165 * config/i386aout.mt (TDEPFILES): removed exec.o.
166 * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
167 (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
168 (NAT_FILE, NATDEPFILES): new macros.
169 * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
170 config/i386v4.mt (TDEPFILES): removed exec.o.
171 * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
172 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
173 (NAT_FILE, NATDEPFILES): new macros.
174 * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
175 fork-child.o coredep.o corelow.o i386-xdep.o.
176 (NAT_FILE, NATDEPFILES): new macros.
177
f1a353db
RP
178 Native support cleanup for i386bsd (untested).
179
180 * config/i386bsd.mt (NATDEPFILES): exec.o removed.
181 * config/i386bsd.mh (NATDEPFILES): added exec.o
182 * tm-i386bsd.h (FLOAT_INFO): removed.
183 * nm-i386bsd.h (FLOAT_INFO): added.
184
c7c94073
RP
185 Native support for i386v (untested).
186
187 * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
188 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
189 (NAT_FILE, NATDEPFILES): new macros.
190 * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
191 * i386-xdep.c: removed.
192 * Makefile.in (HFILES): added nm-i386v.h
193 * i386v-nat.c, nm-i386v.h: new file.
194 * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
195 nm-i386v.h.
196 * tm-i386v.h (FLOAT_INFO): removed.
197
e24cb83d
RP
198 Native support for linux (untested).
199
200 * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
c7c94073 201 fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
e24cb83d
RP
202 (NAT_FILE, NATDEPFILES): new macros.
203 * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
204 * Makefile.in (HFILES): added nm-linux.h.
205 * nm-linux.h: new file.
206 * xm-linux.h: updated copyright. cleaned up formatting.
207 (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
208
61bbb1c2
RP
209 Native support for sun386 (untested).
210
211 * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
212 fork-child.o sun386-xdep.o.
213 (NAT_FILE, NATDEPFILES): new macros.
214 * config/sun386.mt (TDEPFILES): removed exec.o.
215 * Makefile.in (HFILES): added nm-sun386.h.
216 * sun386-nat.c, nm-sun386.h: new file.
217 * sun386-xdep.c: removed.
218 * xm-sun386.h: updated comment and copyright.
219 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
220 nm-sun386.h.
221
a113beac
RP
222 Native support for i386mach (untested).
223
224 * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
225 fork-child.o mach386-xdep.o.
226 (NAT_FILE, NATDEPFILES): new macros.
227 * Makefile.in (HFILES): added nm-i386mach.h.
228 * nm-i386mach.h, i386mach-nat.c: new files.
229 * mach386-xdep.c: removed.
230 * xm-i386mach.h: updated copyright.
231 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
232 nm-i386mach.h.
233
d9548d44
RP
234 Native separation for go32 (untested).
235
236 * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
237 * go32-nat.c: new file.
238 * go32-xdep.c (call_ptrace, child_resume,
239 fetch_inferior_registers, store_inferior_registers,
240 child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
241
173a4f1b
RP
242 Native support for m88k (untested).
243
e367cb3b 244 * Makefile.in (HFILES): added nm-m88k.h
173a4f1b
RP
245 * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
246 FETCH_INFERIOR_REGISTERS): removed.
247 * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
248 inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
249 (NAT_FILE, NATDEPFILES): new macros.
250 * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
251 * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
252 * m88k-xdep.c: removed.
253
f4cc0e9b
JG
254Fri Oct 16 04:16:30 1992 John Gilmore (gnu@cygnus.com)
255
256 * i386b-nat.c: Comment changes.
257 * nm-i386bsd.h, xm-i386bsd.h: Split native dependent pieces out
258 into new nm-file.
259 * config/i386bsd.mh (NAT_FILE): Point to new nm-file.
260
2268d619
JG
261Fri Oct 16 03:34:01 1992 John Gilmore (gnu@cygnus.com)
262
263 Avoid longjmp()-catching compilation errors in cross-ports.
264
265 * doc/gdbint.texinfo: Update GET_LONGJMP_TARGET, L_SET doc.
266 * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
267 Move from mips-tdep.c and tm-{irix3,mips}.h.
268 * mips-nat.c: Remove a bunch of code that was ifdef'd out of
269 native MIPS ports.
270 * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
271 and tm-mips.h.
272
273 * ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
274 (fetch_core_registers): Fix bfd_seek arguments.
275
62aa17e3
JG
276Fri Oct 16 03:02:28 1992 John Gilmore (gnu@cygnus.com)
277
d5a66a8d
JG
278 Make core files work again (add back the `core' target).
279
280 * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
281 (NATDEPFILES): Add corelow.o.
62aa17e3
JG
282 * config/delta88.mt, m88k.mt (TDEPFILES): Remove coredep.o, it's
283 native dependent.
284
d5a66a8d
JG
285 * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
286 i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
287 littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
288 vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
289 appears. FIXME, these should be moved to NATDEPFILES for native
290 use only.
291
b396595a
RP
292Thu Oct 15 21:53:53 1992 K. Richard Pixley (rich@sendai.cygnus.com)
293
6bf98ac0
RP
294 Ultra3 host/target/native split. (untested).
295
296 * ultra3-xdep.c: updated copyright. Do not include sys/ptrace.h.
297 (fetch_register, fetch_inferior_registers,
298 store_inferior_registers, fetch_core_registers): removed to
299 ultra3-nat.c.
300 * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
301 to nm-ultra3.h.
302 * Makefile.in (HFILES): added nm-ultra3.h.
303 * nm-ultra3.h, ultra3-nat.c: new files for native support.
304 * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
305 fork-child.o.
306 (NAT_FILE, NATDEPFILES): new macros for native support.
307 * config/ultra3.mt (TDEPFILES): exec.o removed.
308
b396595a
RP
309 * xm-vaxult.h: add MEM_FNS_DECLARED.
310
d5931d79
JG
311Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com)
312
313 * Makefile.in (VERSION): Roll to 4.6.8.
314 (OBS): Put version.o first, so Makefile rebuild happens early.
315
316 * command.h: Publicize prototype for not_just_help_class_command.
317 * command.c: Remove proto.
327f7197
JG
318 * maint.c: Mark "mt" as an abbrev, to avoid duplicated help
319 output. Move "maint info" from class info to class maintenance,
320 and improve text.
321 * infrun.c: Move "stop" to class_obscure, and give it a
d5931d79
JG
322 function so it will not be seen as a global help topic. FIXME,
323 it should be possible to set these attributes independently.
324
325 * core.c (core_command): Make nicer error message for no core support.
d5931d79
JG
326
327 Lint around file_ptr's (bfd's off_t's) and bfd_seek.
328
329 * dbxread.c (read_dbx_symtab): Use L_SET as bfd_seek arg.
330 (elfstab_build_psymtabs): staboffset and stabstroffset args are
331 file_ptr's.
332 * dwarfread.c (struct dwfinfo): Convert dbfoff, lnfoff to file_ptr.
333 (scan_compilation_units): Punt unused filename arg. dbfoff,
334 lnoffset, and curlnoffset are file_ptr's now.
335 (dwarf_build_psymtabs): Drop desc and filename args; use
336 objfile. dbfoff and lnoffset are file_ptr's now.
337 (read_ofile_symtab): foffset is now file_ptr. Use L_SET in bfd_seek.
338 * elfread.c (struct elfinfo): dboffset and lnoffset are file_ptr's.
339 (elf_symfile_read): Skip desc and filename args to
340 dwarf_build_psymtabs. Pass file_ptr's to elfstab_build_psymtabs.
341 * gdb-stabs.h: Use file_ptr rather than off_t.
342 * mipsread.c (fixup_symtab): f_ptr is a file_ptr. Re-enable
343 compile-time debug check that someone turned off as "unused".
344 (read_the_mips_symtab): st_filptr is a file_ptr. Fix bfd_seek call.
345 * symfile.h: Update dwarf_build_psymtabs and
346 elfstab_build_psymtabs prototypes.
347 * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
348 Use file_ptr offsets. bfd_seeks use L_SET.
349
dac4929a
SG
350Thu Oct 15 01:27:32 1992 Stu Grossman (grossman at cygnus.com)
351
352 * mips-tdep.c, mipsread.c, tm-mips.h: Get rid of ".gdbinfo."
353 symbol. #define MIPS_EFI_SYMBOL_NAME instead. Use different
354 value so that demangler won't be invoked. This greatly speeds up
355 stepping.
356 * mips-tdep.c (mips_pop_frame): Rewrite handling of
357 linked_proc_info so that it properly deallocates the appropriate
358 item after it is done with it instead of before.
359 * Don't pass bogus frame pointer to create_new_frame(). Just
360 leave it as zero so that lower level code will figure out the
361 correct value.
362
a6b98cb9
RP
363Wed Oct 14 18:56:28 1992 K. Richard Pixley (rich@sendai.cygnus.com)
364
75365589
RP
365 Sony News native support.
366
367 * Makefile.in (HFILES): added nm-news.h.
368 * nm-news.h: new file.
369 * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
370 fork-child.o coredep.o to NATDEPFILES.
371 (NAT_FILE, NATDEPFILES): new macros for native support.
372 * config/news.mt (TDEPFILES): removed exec.o.
373
170d4f55
RP
374 * remote-vx.c: remove redundant include of sys/time.h.
375
a6b98cb9
RP
376 * infrun.c: include ctype.h. Otherwise some machines result in
377 undefined for isdigit.
378
358ca35e
JG
379Tue Oct 13 01:27:14 1992 John Gilmore (gnu@cygnus.com)
380
381 * configure.in: Convert m68k entries to m68* entries to handle
382 all the various m68xxx hosts and targets.
849d81e5 383 * config/news1000.mt: No longer needed, same as news.mt.
358ca35e 384
601f1570
RP
385Fri Oct 9 18:54:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
386
387 * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
388
89f1a7df
SG
389Fri Oct 9 14:20:08 1992 Stu Grossman (grossman at cygnus.com)
390
47b7176b
SG
391 * Makefile.in (HFILES): Add all nm-irix3.h, nm-irix4.h,
392 nm-sun2.h, nm-mips.h.
393
30328636
SG
394 * config/irix3.mh (NATDEPFILES): nat-mips.o => mips-nat.o.
395
a1096574
SG
396 * Makefile.in (alldeps.mak): Add = sign after NATDEPFILES.
397
89f1a7df
SG
398 * config/bigmips.mh config/littlemips.mh: Remove mips-xdep.o.
399
b5ddc101
ILT
400Fri Oct 9 08:41:11 1992 Ian Lance Taylor (ian@cygnus.com)
401
402 * xm-hppah.h: if __STDC__ is not defined, define
403 HPPA_COMPILER_BUG.
404 symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
405 compiler; see the comment in the file.
406
0e35d2f3
JG
407Fri Oct 9 04:43:43 1992 John Gilmore (gnu@cygnus.com)
408
409 First cut at support for all BSD variants on 386.
410
411 * tm-i386bsd.h, xm-i386bsd.h: New config files.
412 * i386b-nat.c: New native support file.
413 * configure.in: Add host and target for i[34]86-*-bsd*.
414 * config/i386bsd.mh, config/i386bsd.mt: New config files.
415
a70dc898
RP
416Fri Oct 9 00:31:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
417
56e89422
RP
418 Sun2 native support (untested).
419
420 * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
421 REGISTER_U_ADDR): removed to nm-sun2.h.
422 * nm-sun2.h: new file.
423 * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
424 fork-child.o sun3-xdep.o removed.
425 (NAT_FILE, NATDEPFILES): new macros.
426
a70dc898
RP
427 Mips native support. Decstation and iris4 have been tested.
428 Iris3 has not.
429
430 * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
431 fill_fpregset): removed to irix4-nat.c
432 * mips-xdep.c: removed.
433 * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
434 files.
435 * procfs.c: include nm.h.
436 * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
437 * xm-irix4.h: bump copyright.
438 (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
439 PROC_NAME_FMT): removed.
440 * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
441 * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
442 (NAT_FILE, NATDEPFILES): new macros for native support.
443 (CC): supply default compiler switches.
d5931d79
JG
444 * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
445 fork-child.o coredep.o.
a70dc898
RP
446 (NAT_FILE, NATDEPFILES): new macros for native support. Note that
447 irix3 is untested.
448 * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
449 fork-child.o mips-xdep.o coredep.o.
450 (NAT_FILE, NATDEPFILES): new macros for native support.
451
55ec69fb
RP
452Thu Oct 8 23:50:51 1992 K. Richard Pixley (rich@sendai.cygnus.com)
453
454 * config/rs6000.mh (XDEPFILES): removed fork-child.o.
455 (NATDEPFILES): added fork-child.o
456 * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
457 (NATDEPFILES): added fork-child.o
458 * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
459 (NATDEPFILES): added fork-child.o
460
01ae50eb
JG
461Thu Oct 8 23:19:25 1992 John Gilmore (gnu@cygnus.com)
462
463 * infcmd.c (path_info): Avoid 250-char limit on printf_filtered,
464 by using puts_filtered instead.
465
0256270d
KR
466Fri Oct 9 00:28:25 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
467
468 * remote-nindy.c (nindy_load): Replacement version from Steve
469 Chamberlain, doesn't require forking to run "strip" or "sx".
470
e6c61372
SG
471Thu Oct 8 18:27:35 1992 Stu Grossman (grossman at cygnus.com)
472
473 * Makefile.in (HFILES): Add nm-*.h files.
474
968720bf
RP
475Thu Oct 8 16:27:45 1992 K. Richard Pixley (rich@sendai.cygnus.com)
476
dd6f8695
RP
477 * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
478 (NATDEPFILES): added fork-child.o.
479
968720bf
RP
480 * doc/gdbint.texinfo: document a few more macros, create new
481 section for native macros.
482
0da70124
SG
483Wed Oct 7 20:08:53 1992 Stu Grossman (grossman at cygnus.com)
484
485 * Makefile.in (setup-to-dist): Remove -norecursion so that doc
486 subdir gets configured.
487
6a1f93f6
KR
488Wed Oct 7 12:24:01 1992 Ken Raeburn (raeburn@cygnus.com)
489
490 * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
491 program.
492 * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
493 searching for a "bfd_strip" program. Also, fixed up arguments
494 passed to that program.
495
496 * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
497 which is now used for something else. Rewrite description of
498 associated parameters to match how gdb does it now.
499 (ADDITIONAL_OPTION_HELP): Fix message accordingly.
500
501 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
502
3950a34e
RP
503Tue Oct 6 14:47:11 1992 K. Richard Pixley (rich@sendai.cygnus.com)
504
505 NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
506 to_notice_signals.
507
508 * inferior.h (proc_signal_handling_change): prototype removed.
509 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
510 (handle_command): now calls target_notice_signals.
511 * procfs.c (proc_signal_handling_change): renamed to
512 procfs_notice_signals. Now static. Add prototype. All callers
513 changed.
514 * target.h (struct target_ops): new field, to_notice_signals.
515 (target_notice_signals): new macro to cover new field.
516 * target.c (cleanup_target): default to_notice_signals to ignore.
517 * corelow.c (core_ops),
518 exec.c (exec_ops),
519 inftarg.c (child_ops),
520 procfs.c (procfs_ops),
521 remote-adapt.c (adapt-ops),
522 remote-eb.c (eb_ops),
523 remote-es1800.c (es1800_ops, es1800_child_ops),
524 remote-hms.c (hms_ops),
525 remote-mm.c (mm_ops),
526 remote-nindy.c (nindy_ops),
527 remote-st2000.c (st2000_ops),
3950a34e
RP
528 remote-vx.c (vx_ops, vx_run_ops),
529 remote.c (remote_ops),
530 target.c (dummy_target),
531 xcoffexec.c (exec_ops): added static initializer for
532 to_notice_signals.
533 * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
534
06e4d12d
JG
535Tue Oct 6 12:13:08 1992 John Gilmore (gnu@cygnus.com)
536
537 * main.c (define_command): Add forgotten initializer.
538
48ab6c0e
JG
539Tue Oct 6 02:23:17 1992 John Gilmore (gnu@cygnus.com)
540
b5af69c3
JG
541 * language.c, language.h: Move saved_language out to global
542 expected_language. Set expected_language when user expectation
543 changes.
544 * language.c (language_info): Don't print type/range checking gub.
545 * main.c (main): Set expected language.
546 (execute_command): Check against expected language.
547 * symfile.c (set_initial_language): Set expected language.
548
48ab6c0e
JG
549 * configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.
550
94603999
JG
551Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
552
553 A bunch of changes mostly to improve debugging of C++ programs.
554 Specifically, the calling of inferiors methods is improved.
555
556 * value.h: New macros METHOD_PTR_IS_VIRTUAL,
557 METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
558 hide the implementation details of pointer-to-method objects.
559 How to tell if the pointer points to a virtual method is
560 still very dependent on the particular compiler, but this
561 should make it easier to find the places to change.
562 * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
563 (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_*
564 macros, instead of a hard-wired-in code that incorrectly
565 assumed a no-longerused representation of pointer-to-method
566 values. And otherwise fix the relevant bit-rotted code.
567
568 * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
569 If there are both fields and methods, put a space between.
570
571 * stabsread.c (read_struct_type): Fix bug in handling of
572 GNU C++ anonymous type (indicated by CPLUS_MARKER followed
573 by '_'). (It used to prematurely exit the loop reading in
574 the fields, so it would think it should start reading
575 methods while still in the fields. This could crash gdb
576 given a gcc that can emit nested type information.)
577
578 * valops.c (search_struct_method): Pass 'this' value by
579 reference instead of by value. This provides a more
580 consistent interface through a recursive search where the
581 "bottom" functions may need to adjust offsets (due to multiple
582 inheritance).
583 * valops.c, value.h, values.c: Pass extra parameters to
584 value_fn_field and value_virtual_fn_field so we can
585 correctly adjust offset for multiple inheritance.
586 * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify
587 virtual function calls by using value_virtual_fn_field().
588 * values.c: New function baseclass_offset, derived from
589 baseclass_addr (which perhaps can be made obsolete?).
590 It returns an offset rather than an address. This is a
591 cleaner interface since it doesn't mess around allocating
592 new values.
593 * valops.c (search_struct_method): Use baseclass_offset
594 rather than baseclass_addr.
595
aa1dea48
SG
596Mon Oct 5 16:02:04 1992 Stu Grossman (grossman at cygnus.com)
597
aa1dea48
SG
598 * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
599
e661aaae
ILT
600Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
601
5d5a9c3c 602 * munch: HP9000/300 nm puts an extra space between T and symbol
91912864
ILT
603 name.
604
e661aaae
ILT
605 * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
606 needed for vxworks targets.
607
34517ebc
JG
608Fri Oct 2 22:04:42 1992 John Gilmore (gnu@cygnus.com)
609
610 * am29k-tdep.c (_initialize_29k): Make it possible for the
611 user to set and query the address where function calls into the
612 inferior write a small scratch routine. `set call_scratch_address'
613 * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error.
614 * remote.c (remote_prepare_to_store): Only fetch regs if they are
615 not already cached validly.
616
93282e61
RP
617Thu Oct 1 14:36:42 1992 K. Richard Pixley (rich@sendai.cygnus.com)
618
ef6f3a8b
RP
619 Rs6000 native support.
620
621 * infptrace.c: remove #ifdef USG from around include ptrace.h.
622 machines without this header should not be compiling this file.
623 * nm-rs6000.h, rs6000-nat.c: new files for native support.
624 * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
625 * rs6000-xdep.c: removed. all code now in rs6000-nat.c.
626 * xm-rs6000.h: do not include ptrace.h.
627 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
628 * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
629 infptrace.o and inftarg.o move to NATDEPFIES.
630 (NAT_FILE, NATDEPFILES): new macro for native support.
631
93282e61
RP
632 Sun3 native support.
633
634 * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
635 new macros for native support.
636 (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
637 removed sun3-xdep.o.
638 * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
639 nm-sun3.h.
640 * sun3-xdep.c: removed. All code is now in sun3-nat.c.
641 * sun3-nat.c, nm-sun3.h: new files for native support.
642
643Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com)
644
645 * dwarfread.c (dbsize): New variable to hold size of dwarf info.
646 * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to
647 dbfsize and use it to initialize new local file scope dbsize.
648 * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it.
649 * dwarfread.c (basicdieinfo): Use dbsize to check for oversize
650 DIEs as well as the current check for undersize DIEs. This helps
651 to gracefully detect and reject corrupted DIE information.
652
a65841d7
JG
653Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com)
654
655 Add `command hooks' and a hook for inferior program stopping.
656
657 * command.h (struct cmd_list_element): Remove unused `aux'
658 field. Add new `hook', `hookee', and `cmd_pointer' fields.
659 * command.c (add_cmd): Initialize new fields, elim old.
660 (add_alias_cmd): Clone new fields.
661 (delete_cmd): Un-hook hookee if we're deleting hook.
662 (help_cmd): Tell user the command is hooked, if it is.
663 (lookup_cmd_1): Abbreviations return the original command
664 instead of themselves, so that hooks on the original cmd will be
665 run.
666 * defs.h (enum command_class): Add class_pseudo and comments.
667 * gdbcmd.h (execute_user_command): Add prototype.
668 * infrun.c (normal_stop): If the stop command is hooked,
669 run the hook whenever we stop.
670 (hook_stop_stub): Stub for catch_errors.
671 (_initialize_infrun): Set up pseudo "stop" command.
672 * main.c (execute_user_command): Code extracted from execute_command.
673 (execute_command): If hooked, run the hook before the command.
674 (define_command): If defining a new hook, check the command it
675 is hooking, and warn if none. Install the hook.
676 * source.c (_initialize_source): "l" is an abbrev for "list".
677 * doc/gdb.texinfo: Document command hooks.
678
679 * Makefile.in (VERSION): Roll to 4.6.7.
680 * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES.
681 * infrun.c (breakpoints_inserted): Make it static again.
682 * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.
683
dfc82617
RP
684Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
685
686 Native file renaming.
687
688 * nat-sparc.c -> sparc-nat.c
689 * nat-sun4os4.h -> nm-sun4os4.h
690 * nat-trash.h -> nm-trash.h
9c14e78d 691 * config/sun4os4.mh: track file renaming.
dfc82617
RP
692 * configure.in: link to nm.h rather than nat.h.
693 * infptrace.c: include nm.h rather than nat.h.
694
df9b3bfc
RP
695Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com)
696
c9c23412
RP
697 Host/target/native split for sun4.
698
699 * Makefile.in (TSOBS): removed corelow.o.
700 * infptrace.c: included nat.h.
701 * nat-trash.h: temporary header file. This should be removed once
702 all hosts have the native/host/target split.
703 * configure.in: add a symlink from nat-trash.h to nat.h if no
704 other nat file exists for this configuration.
705 * sparc-tdep.c: no longer include sys/ptrace.h.
706 * sparc-xdep.c: removed. contents have been moved to nat-sparc.c.
707 * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
708 nat-sun4os4.h.
709 * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
710 * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
711 to NATDEPFILES. removed sparc-xdep.o.
712 (NATDEPFILES, NAT_FILE): new macros for native support.
713
df9b3bfc
RP
714 Break the direct connection from core_file_command to any
715 particular type of core file support.
716
717 * target.h (find_core_target): new prototype.
718 * target.c (find_core_target): new function. Walks the target
719 list looking for the core target.
720 * core.c (core_file_command): replace calls to core_detach and
721 core_open with find_core_target and direct calls.
722
be891e75
ILT
723Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
724
725 * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
726 for infptrace.c.
727 config/hp300hpux.mh: ALLOCA1 was not defined.
728
597dc86b
SG
729Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com)
730
731 * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
732 target.c, valprint.c: Use unfiltered forms of f/printf, et. al.
733 until we can figure out a better way to do paging.
734
e0ba1d14
JG
735Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com)
736
737 * findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
738 * tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
739 * hppa-coredep.c: Remove, now that we use the hook.
740 * config/hppab.mh, config/hppah.mh: Use standard coredep.o.
741 * hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
742
743 * dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
744 GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
745 be ripped out and reimplemented right (see elfread.c).
746 * tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
747
748 Rename all HPPA files to fit into unique DOS filenames:
749 * *hppabsd* => *hppab*
750 * *hppahpux* => *hppah*
751
b3d4dd73
JG
752Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com)
753
3fbdd536
JG
754 Make the /proc support a target-struct in its own right.
755
b3d4dd73
JG
756 * Makefile.in: Remove inftarg.[co], since it is now included via
757 config/*.mh files.
758 * config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
759 reference infptrace.o. Add fork-child.o to all *.mh that
760 reference procfs.o.
761
3fbdd536
JG
762 * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
763 No longer global functions.
764 (fork_inferior): New global function from fork-child.c.
765 * inftarg.c (child_wait): Remove USE_PROC_FS conditional.
766 (ptrace_me, ptrace_him): New stub functions for fork_inferior().
767 (child_create_inferior): Moved to fork-child.c as fork_inferior.
768 (child_create_inferior): New tiny function that calls fork_inferior.
769 * fork-child.c: New file, containing fork_inferior, which is
770 built from slight mods to inftarg.c's child_create_inferior.
771
772 * procfs.c (procfs_ops): Add target vector.
773 (attach): Rename as static do_attach.
774 (procfs_create_inferior): New tiny function that calls fork_inferior.
775 (child_xfer_memory): Rename to static procfs_xfer_memory.
776 (store_inferior_registers): Rename to static procfs_store_registers.
777 (inferior_proc_init): Rename to static procfs_init_inferior.
778 (procfs_attach, procfs_detach, procfs_prepare_to_store,
779 procfs_files_info, procfs_open, procfs_mourn_inferior,
780 procfs_can_run): Slightly mangled copies of the corresponding
781 child_XXX routines from inftarg.c.
782 (proc_wait): Renamed to static procfs_wait.
783 (child_resume): Rename to static procfs_resume.
784 (fetch_inferior_registers): Rename to static procfs_fetch_registers.
785 (initialize_proc_fs): Rename to initialize_procfs. Set up
786 procfs_ops, too.
787
788 * putenv.c: index -> strchr.
789 * regex.c: Always rename bcopy to memcpy, etc.
790 FIXME: Eventually do the renames rather than use #define's.
791 * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
792 Fix bcopy->memcpy.
793 * sparc-xdep.c: Move deferred_stores to target dependent.
794 * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
795
836e343b
JG
796Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com)
797
798 Split non-target-dependent code out of target_attach routines.
799
800 * target.h: Comments on target_attach args and results.
801 * infcmd.c (attach_command): Check for existing execution, call
802 target_attach, set up terminal status and wait_for_inferior, wait
803 for the attach status, and do normal_stop.
804 * inftarg.c (child_attach): Remove target independent stuff.
805 * remote-adapt.c (adapt_attach): Ditto.
806 * remote-mm.c (mm_attach): Ditto.
836e343b
JG
807 * remote-vx.c (vx_attach): Ditto.
808
809 Cleanup.
810
811 * remote-hms.c (hms_attach): Remove completely, it was useless.
451df680 812 * remote-mm.c, remote-hms.c, remote-adapt.c: Remove
836e343b 813 commented-out start_remote calls.
451df680 814 * remote-hms.c, remote-adapt.c, remote-mm.c: Remove
836e343b
JG
815 DENTER and DEXIT macros and their calls. Use a real debugger --
816 like gdb -- to see what functions are being called when.
a5a7c719 817 * utils.c (strcmp_iw): Make nonstatic, for lint.
836e343b 818
3aa6856a
JG
819Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
820
821 * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
822
b869d3f4
SG
823Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
824
1aed6766
SG
825 * tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
826 fix to differentiate between gcc1 & gcc2 compiled files so that we
827 can debug calls that pass structs as args correctly.
828 * symmisc.c (dump_symtab): If block was compiled with gcc, say
829 so, and what version.
830
b869d3f4
SG
831 * remote.c (remote_wait): Make regs be char to avoid picayune
832 ANSI compiler warnings.
833
050d45c5
RP
834Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
835
310cc570
RP
836 * inftarg.c (child_create_inferior, child_attach,
837 child_mourn_inferior): collect unix child process stratum
838 functions which live below the target vector into this file to
839 facilitate host/target/native split. Also, make them static.
840 * inflow.c (child_mourn_inferior): removed.
841 * infrun.c (child_create_inferior, child_attach): removed.
842 (resume): becomes global so that functions below the
843 target vector can find it.
844 * inferior.h (resume): add prototype.
845 (child_mourn_inferior, child_create_inferior, child_attach):
846 remove prototypes.
847
050d45c5
RP
848 * xcoffexec.c (exec_ops): child_attach and child_create_inferior
849 replaced with find_default_attach and
850 find_default_create_inferior.
851
852Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
853
854 * i960-pinsn.c: Use _filtered routines for printing, so symbolic
855 addresses don't get displayed in the wrong positions.
856
8afd6ca5
RP
857Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com)
858
859 Separate core functions along target vector in preparation for
860 native support. Functions above vector now live in core.c. Those
861 below in corelow.c.
862
863 * core.c (solib_add_stub, core_close, core_open, core_detach,
864 get_core_registers, core_files_info, core_ops): moved to corelow.c
865 (_initialize_core): removed addition of core_ops target.
866 * corelow.c: new file.
867 (solib_add_stub, core_close, core_open, core_detach,
868 get_core_registers, core_files_info, core_ops): moved from core.c
869 (_initialize_corelow): new function.
870 * gdbcore.h (core_open, core_detach): added prototypes.
871 (core_ops): add forward declaration.
872 * Makefile.in (SFILES_MAINDIR): add core.c
873 (OBS): add core.o
874 (TSOBS): change core.o to corelow.o
875
cdfab267
SG
876Wed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com)
877
878 * m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
879 instead of 'sun' predefined symbol so that trap analysis code is
880 enabled only when the TARGET is a sun3.
881
5e9a7f00
KR
882Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
883
884 * tm-i960.h (ext_format_i960): Add top-level declaration.
885 (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
886 blocks, else Sun4 compiler complains.
887
ebeccdf0
JG
888Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com)
889
890 * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
891 instruction's argument. Patch from jonathan@cs.stanford.edu
892 (Jonathan Stone).
893
5ee4e16c
JG
894Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com)
895
896 Break the thread of control that implies that a unix child
897 process will be the default target.
898
899 * target.c (find_default_run_target, find_default_attach,
900 find_default_create_inferior, return_zero): new functions.
901 (cleanup_target): Make return_zero the default for to_can_run.
902
903 * exec.c (exec_ops), core.c (core_ops): Replace child_attach and
904 child_create_inferior references with find_default_XXX instead.
905
906 * target.h (struct target_ops): new field, to_can_run.
907 (find_default_attach, find_default_create_inferior): new prototypes.
908 (target_can_run): new macro.
909
910 * Also added a zero (default) to_can_run element to all static
911 struct target_ops initializations throughout GDB, except:
912 * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
913
914 * infrun.c (child_create_inferior): Clean up error handling when
915 no exec file is specified.
916 (child_attach): Don't require exec file.
917
b28d3617
JG
918Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com)
919
920 Remove kill_inferior_fast, in favor of target_kill, which goes
921 through the target vector.
922
923 * inferior.h (kill_inferior_fast): remove declaration.
924
925 * main.c (disconnect): call quit_cover using catch_errors rather
926 than calling kill_inferior_fast directly. New way goes through
927 the target vector, handles attached processes, and writes
928 command history if appropriate.
929 (quit_cover): new function, wrapper for quit_command.
930
931 * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
932 infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
933 inlining them into the local kill_inferior when needed.
934
6b50c5c2
JG
935Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com)
936
937 * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
938 * stabsread.c (read_struct_type): Simplify complicated expression
939 for dumb DECstation compiler.
940
8f61b5e4
ILT
941Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
942
943 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
944 operands to memory management instructions, from WRS.
945
538280d8
FF
946Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com)
947
948 * main.c (main): Back out previous language setting changes.
949 Replace with simple default to C before processing any init
950 files. There MUST be a language set, even in the absence of
951 init files or executables, or expression parsing fails.
952
d75710b0
FF
953Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com)
954
955 * main.c (main): Move code that sets initial language to
956 symfile.c. Fixup places where command files are processed to
957 be consistent in setting a default language if none has been
958 previously set.
959 * symfile.c (set_initial_language): Add code moved from
960 main() that sets an initial default language when a new
961 symbol file is read.
962 * symfile.c (symbol_file_command): Call set_initial_language.
963 * symtab.c (find_main_psymtab): Add FIXME comment.
964
45413b27
JG
965Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com)
966
967 * breakpoint.c, sparc-tdep.c: comment changes.
f7fe7196
JG
968 * configure.in: removed target_dependent line.
969
970 * remote-mm.c (mm_attach): change printf to error to prevent
971 fallthrough bug.
45413b27 972
5f1c39ef
JG
973 * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
974 calls to {fetch|store}_inferior_registers with calls to
975 target_{fetch|store}_registers, for remote-target independence.
976
dd9da95a
JG
977Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com)
978
979 * Makefile.in: Fix bug I introduced in merging Rich's change.
980 * infrun.c (child_create_inferior): Use proceed() rather than
981 doing all the same stuff by hand.
982
d40309c7
JG
983Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
984
985 * Makefile.in, configure.in: add support for files used only when
986 configured native, that is, when host = target.
987
a4afec9a
JG
988Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
989
990 * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
d40309c7 991 stores are target dependent and were moved from xm to tm.
a4afec9a 992
2e384b3b
JG
993Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com)
994
8c095066
JG
995 * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
996
2e384b3b
JG
997 * config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
998 overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
999
dcc8abce
JG
1000Wed Sep 16 20:04:54 1992 K. Richard Pixley (rich@sendai.cygnus.com)
1001
1002 * target.h (struct target_ops): removed to_convert_to_virtual and
1003 to_convert_from_virtual elements. Initializations removed from
1004 all static initializations.
1005 (target_convert_to_virtual, target_convert_from_virtual):
1006 removed.
1007 (host_convert_to_virtual, host_convert_from_virtual): Removed
1008 forward declarations.
1009 * target.c (cleanup_target): removed default assignments for
1010 to_convert_to_virtual and to_convert_from_virtual.
1011 * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
1012 removed.
1013 * findvar.c (value_of_register, value_from_register):
1014 target_convert_to_virtual inlined.
1015 * infcmd.c (do_registers_info): target_convert_to_virtual inlined.
1016 * valops.c (value_assign): target_convert_from_virtual inlined.
1017
2886f8b2
JG
1018Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com)
1019
c35475f9
JG
1020 * main.c (gdb_readline): Avoid printf_filtered, which sets char
1021 position wrong if used for the prompt.
1022 * utils.c (puts_filtered): Comment: NOT a puts() replacement!
1023
2886f8b2
JG
1024 Support for accessing arbitrary MIPS stack frames in memory.
1025
1026 * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
1027 set, run it before INIT_EXTRA_FRAME_INFO.
1028 * stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
1029
1030 * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
1031 (FP) value in the frame_info struct if it is zero (as from top of
1032 execution stack).
1033 (setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
1034
1035 * mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
1036 comes back as zero. So does FP_REGNUM, as a trigger for
1037 init_extra_frame_info.
1038
1039 * tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
1040 the program counter set before INIT_EXTRA_FRAME_INFO is run.
1041 (INIT_FRAME_PC): Defined to null.
1042 (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
1043 (FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
1044 Briefly explain MIPS stacks in GDB.
1045
d974236f
JG
1046Thu Sep 17 03:49:59 1992 John Gilmore (gnu@cygnus.com)
1047
cb1d36fc
JG
1048 * copying.awk, copying.c (show_copying_command,
1049 show_warranty_command): Rename from copying_info, warranty_info,
1050 to match command function conventions.
1051
d974236f
JG
1052 * utils.c (prompt_for_continue): Reinitialize more-counts
1053 before printing anything, and again afterward. Fix comments.
1054 (vfprintf_filtered): Eliminate static buffer; use auto buffer,
1055 or alloca() if needed.
1056
1057 * rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
1058 detect native versus cross-host.
1059
f4992534
SG
1060Wed Sep 16 21:57:14 1992 Stu Grossman (grossman at cygnus.com)
1061
1062 * m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
1063 Suns. Rename to m68k_saved_pc_after_call.
1064 * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
1065 m68k_saved... instead of sun3_saved...
1066
22473f72
JG
1067Wed Sep 16 17:00:07 1992 John Gilmore (gnu@cygnus.com)
1068
1069 * Makefile.in (update-depend, update-alldeps): Split out of
1070 setup-to-dist, for convenience in rebuilding the depend and
1071 alldeps.mak files.
1072 (assorted): Update to catch straggler files when building gdb.tar.Z.
1073
997cc2c0
JG
1074Tue Sep 15 01:18:50 1992 John Gilmore (gnu@cygnus.com)
1075
1076 Preliminary cleanup for splitting host/native/target.
1077
1078 * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
1079 here; it is dealt with at a gdb-target-independent level.
1080 * rs6000-tdep.c (single_step): Don't call ptrace, we are a
1081 high toned routine. Fix return type to void.
6bb40269
JG
1082 * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
1083 Rich and I believe the "real problem" was that both single_step
1084 and target_resume were issuing PT_CONTINUE calls. This would
1085 cause the second PT_CONTINUE to sometimes fail because the process
1086 was already running.
1087 * infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
997cc2c0 1088
5ca812d4
SG
1089Mon Sep 14 19:20:43 1992 Stu Grossman (grossman at cygnus.com)
1090
34da3608
SG
1091 * procfs.c (proc_wait): Call print_sys_errmsg() if we get an
1092 error from PIOCSWSTOP.
1093
a8e033f2
SG
1094 * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
1095 symfile.c, target.c, valprint.c: Use _filtered form of *printf.
1096 defs.h, utils.c: Make vfprintf_filtered global.
1097
549ff100
RP
1098Fri Sep 11 18:28:28 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
1099
d1d1ab12 1100 * doc/gdb.texinfo, doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: first
451df680 1101 pass at doc for new remote target--- Tandem
d1d1ab12
RP
1102 ST2000 using STDBUG.
1103
1104 * doc/all.m4, doc/none.m4: new m4 switch, _ST2000__
1105
1106 * doc/all.m4: turn on H8/300 stuff for generic manual
1107
549ff100
RP
1108 * doc/gdbinv-s.m4.in: remove text on special procedures to continue
1109 after explicit call to breakpoint() in serial stubs.
1110
3de61d8c
JG
1111Fri Sep 11 01:34:25 1992 John Gilmore (gnu@sphagnum.cygnus.com)
1112
57a9bb5f
JG
1113 * mipsread.c: Clean up some white space.
1114 (parse_symbol): Handle stEnd of stFile.
1115 (parse_partial_symbols): Remove old #if 0'd code. Handle stLocal.
1116
3de61d8c
JG
1117 * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
1118 store_inferior_registers): Replace unexplained numbers
1119 with manifest constants from a DECstation header file.
1120 * xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.
1121 (REGISTER_U_ADDR): Fix up for Ultrix 4.2.
1122
1123 * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h.
1124
1125 * stack.c (_initialize_stack): "dow" should be a valid abbreviation
1126 for "down". Suggested by Richard Stallman.
1127
73386fff
KR
1128Thu Sep 10 15:26:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
1129
1130 * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
1131 redeclaration bug on SunOS 4.
1132
4ddd278f
JG
1133Wed Sep 9 17:36:53 1992 John Gilmore (gnu@cygnus.com)
1134
1135 * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
1136 * m68k-stub.c: Remove a few extraneous ANSI-isms.
1137 * remote-nindy.c (nindy_prepare_to_store): Only fetch regs if
1138 they aren't already there.
1139 * remote-vx.c (vx_prepare_to_store): Ditto.
1140 * xcoffread.c: Surround forward struct defns with #ifdef __STDC__.
1141
2640f7e1
JG
1142Wed Sep 9 16:50:22 1992 John Gilmore (gnu@cygnus.com)
1143
1144 Removed a large number of changes inserted by Per Bothner
1145 for C++ support. These will go back in when they've been
1146 examined.
1147
ed3f6049
SG
1148Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
1149
1150 * serial.h: Fix prototye for serial_raw().
1151 * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
1152 serial_write() to match prototypes.
1153 * remote-st2000.c (get_reg_name): Make *p be const.
1154
120f867e
KR
1155Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
1156
1157 * remote-nindy.c (nindy_fetch_registers): Make return type void,
1158 to agree with target structure field type.
1159 (nindy_store_registers): Ditto.
1160
1161 * Makefile (OPCODES): New var, pointing to opcodes library.
1162 (CLIBS, CDEPS): Include it.
1163 (saber_gdb): Load opcodes library.
1164
a090e706
SG
1165Tue Sep 8 15:22:06 1992 Stu Grossman (grossman at cygnus.com)
1166
1167 * a68v-xdep.c (store_inferior_registers): declare as void.
1168 * infptrace.c: HP/Apollos have ptrace.h in the wrong place.
1169 * remote-st2000.c: Massive changes to use new serial package.
1170 Also added 'connect' command to transparantly connect to serial
1171 port.
1172 * ser-termios.c: Big cleanup, use nicer coding conventions.
1173 * ser-bsd.c: New module, serial stuff for BSD systems.
1174 * serial.h: Define struct ttystate properly using HAVE_TERMIO.
1175 * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
1176
4468ccfb
RP
1177Fri Sep 4 18:53:57 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
1178
1179 * doc/gdb.texinfo: fix shameful error of agreement reported by
1180 jimb@occs.cs.oberlin.edu (Jim Blandy)
1181 * doc/gdb.texinfo: remove old partial discussion of remote serial
1182 protocol (via serial debug stubs)
1183 * doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: new section discussing
1184 use of serial debug stubs
1185
35fcebce
PB
1186Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
1187
35fcebce
PB
1188 * symfile.h: Declaration of set_demangling_style() moved
1189 here from demangle.h (which is now in ../include).
1190 * i386-xdep.c: Update comment.
35fcebce 1191
8005788c
RP
1192Thu Sep 3 13:44:46 1992 K. Richard Pixley (rich@sendai.cygnus.com)
1193
1194 * symtab.c (completion_list_add_symbol): restructured to optimize
2640f7e1
JG
1195 for time. First clip names that cannot match. Then clip any
1196 names we've already considered. Drop a redundant strncpy. Drop
1197 a redundant malloc and associated free for demangled names.
8005788c 1198
6c7e40b4
SG
1199Thu Sep 3 09:17:05 1992 Stu Grossman (grossman at cygnus.com)
1200
1201 * a68v-xdep.c (store_inferior_registers): Define as type void.
1202 * configure.in: Add host m68k-apollo*-bsd*.
1203 * demangle.c (struct demanglers): Use enum instead of constant
1204 value to keep braindamaged HP/Apollo compiler happy.
1205
546014f7
PB
1206Wed Sep 2 20:45:31 1992 Per Bothner (bothner@rtl.cygnus.com)
1207
1208 * utils.c (strcmp_iw): Add a hack to allow "FOO(ARGS)" to
1209 match "FOO". This allows 'break Foo' to work when Foo is
1210 a mangled C++ function. (See comment before function.)
1211
6131a42a
JG
1212Wed Sep 2 13:45:27 1992 John Gilmore (gnu@cygnus.com)
1213
82eabd43
JG
1214 * config/rs6000.mh (MH_CFLAGS): Circumvent IBM <rpc/rpc.h> bug,
1215 for files in vx-share/*.c.
1216 * xm-rs6000.h (fd_set): Circumvent the rs6000.mh circumvention,
1217 for normal GDB source files.
1218
6d7bfa9a
JG
1219 * Makefile.in (VERSION): Roll to 4.6.6.
1220
6131a42a
JG
1221 * tm-vx68.h, tm-es1800.h: Use tm-68k.h rather than tm-sun3.h.
1222 * tm-sun3.h: Remove STACK_END_ADDR, no longer used.
1223 * tm-sun3os4.h: Update comments.
1224 * xm-delta88.h: Remove STACK_END_ADDR.
1225
b52373a2
JG
1226Wed Sep 2 01:18:31 1992 John Gilmore (gnu@cygnus.com)
1227
6aef3bde
JG
1228 * Makefile.in (VERSION): Roll to 4.6.5.
1229
6131a42a
JG
1230 * infrun.c: Lint for recent `handle' changes.
1231
b52373a2
JG
1232 * ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
1233 * serial.h (EXFUN): Remove all uses, convert to PARAMS.
1234 * config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
1235 should include a ser-XXX.o module.
1236
1237 * dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
1238 * defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
1239
1240 * configure.in: Map unrecognized sun 68k's, sun sparcs, into
1241 known suns in configure.in, rather than mapping them to unique
1242 config files that happen to duplicate other config files.
1243 * config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
1244 * config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
1245
ebb3a1e5
JG
1246Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
1247
1248 * configure.in (*-*-sunos*): Use trailing * to match all
1249 sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
1250 (sparc-*-sunos3): Remove host & target. Sunos3 never shipped
1251 in production on Sun-4.
1252 ({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
1253 (m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
1254 (sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
1255
1256 * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
1257 config/sparc-noun.mt: New target configs for embedded.
1258 * config/sun4os3.{mh,mt}: Remove, never existed in production.
1259
1260 * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
1261 target definitions for embedded with and without underlines on
1262 identifiers. FIXME -- this ought to be known by BFD instead.
1263
1264 * tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
1265 not a parameter of the CPU, but of the development environment.
1266 * tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
1267
ea678717
JG
1268Tue Sep 1 17:31:45 1992 John Gilmore (gnu@cygnus.com)
1269
1270 * breakpoint.c (breakpoint_re_set): Avoid setting source symtab
1271 (which involves reading in main's symtab) if we have no breakpoints.
1272
95ff889e
FF
1273Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
1274
1275 * dwarfread.c (cu_language): New local variable to record
1276 language for current compilation unit being processed.
1277 * dwarfread.c (set_cu_language): New local function to decode
1278 and record language for current compilation unit being processed.
1279 * dwarfread.c (synthesize_typedef): Add local function to
1280 synthesize a typedef for C++ classes, structs, unions, and
1281 enumerations.
1282 * dwarfread.c (read_structure_scope): Synthesize typedefs
1283 for C++ classes, structs and unions.
1284 * dwarfread.c (read_enumeration): Synthesize typedefs for
1285 C++ enumerations.
1286 * dwarfread.c (read_file_scope): Call set_cu_language to
1287 record language for current compilation unit. After symtab
1288 is built, save this recorded language.
1289 * dwarfread.c (process_dies, add_partial_symbol, struct_type,
1290 scan_partial_symbols, new_symbol): Recognize TAG_class_type.
1291 * dwarfread.c (add_partial_symbol): Synthesize partial symbol
1292 typedefs for C++ classes, structs, unions, and enumerations.
1293 * dwarfread.c (scan_compilation_units): Call set_cu_language
1294 to record language for current compilation unit.
1295 * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here
1296 for TAG_enumeration_types, rather than in add_partial_symbol.
1297 * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type
1298 case with class, struct, and union type cases, now that they are
1299 the same. Remove tests for non-NULL name attributes, now done
1300 by callers.
1301 * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
1302 treat as alias for TYPE_CODE_STRUCT for now.
1303
b68b44fa
ILT
1304Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
1305
1306 * Makefile.in: map "gdb" through program_transform_name when
1307 installing.
1308
3877a219
FF
1309Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
1310
1311 * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
1312 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1313 Use "regi" for local indexing through register numbers, reserving
1314 "regno" for the name of a specific register passed as an input
1315 parameter. Fix bug propagated through all versions that sometimes
1316 used regno as an index when it should have been regi, thus using
1317 -1 as an index in some cases.
1318
3402b1cf
PB
1319Sun Aug 30 18:15:17 1992 Per Bothner (bothner@rtl.cygnus.com)
1320
1321 * cplus-dem.c, demangle.h: Moved to ../libiberty and ../include,
1322 respectively, so same demangler can be used by other programs.
1323 * Makefile.in: Remove demangler stuff.
1324 * Makefile.in (depend): Pass -I../readline (needed for main.c).
1325 * demangle.c (_initialize_demangler): Tell demangler which
1326 CPLUS_MARKER to assume.
1327
d6776adb
JG
1328Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
1329
9b280a7f
JG
1330 RS/6000 portability changes (for hosting cross-debuggers).
1331
1332 * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
1333 * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
1334 xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
1335 * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
1336 * stabsread.c (define_symbol): Remove RS/6000 dependencies.
1337 * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
1338 (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
1339 (NO_SINGLE_STEP): Add, target-dependent.
1340 (loadinfotextindex): Lowercase, remove "aix_".
1341 * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
1342 (NO_SINGLE_STEP): Remove, target-dependent.
1343 * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
1344 * xcoffread.c: Only build file if RS/6000 native GDB.
1345 (build_function_symbol): Remove #if 0'd code.
1346 * rs6000-tdep.c: Cleanup. Add static fn protos.
1347 Use CORE_ADDR for addresses throughout. Make void fns void.
1348 (pop_dummy_frame): Add FIXME about bogosity of design here.
1349 (rs6000_struct_return_address): Ditto.
1350 (frameless_function_invocation, frame_get_cache_fsr,
1351 frame_initial_stack_address, xcoff_relocate_symtab,
1352 xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
1353 add_text_to_loadinfo, find_toc_address): Move from xdep file.
1354 Use CORE_ADDRs. Change identifiers to lowercase.
1355
1356 * rs6000-xdep.c: Make whole file conditional on native RS/6000,
1357 supplying dummy routines if non-native. Add prototype for
1358 static exec_one_dummy_insn. Move a mess of functions to
1359 rs6000-tdep.c (as above). Remove #if 0'd code.
1360
1361 * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
1362 (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
1363 * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
1364
1365 * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
1366 for callers.
1367
d6776adb
JG
1368 * vx-share/README, nindy-share/README: New files describing
1369 how these directories' code is shared, and with whom.
1370
ef131e13
JG
1371Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
1372
1373 * configure.in (target configurations): Reformat into table.
1374 Remove unsupp. Amigados host and target. Ditto Mach 386 target.
1375
1376 * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
1377 * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
1378 * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
1379 * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
1380 * config/nindy960.mt: Remove useless MT_CFLAGS setting.
1381 * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
1382
1383 * Makefile.in (config-check): Add command to check whether
1384 configure.in is consistent with config/*.
1385
19758e9e
JG
1386Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
1387
1388 * configure.in (host configurations): Reformat nested cases into
1389 easy-to-maintain table.
b1aa08e2
JG
1390 (m68k-altos-*, i386v*): We don't care whether coff encap is used.
1391 config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
19758e9e 1392
38e9ed49
FF
1393Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
1394
1395 * cplus-dem.c: Reorder args to most local functions to make them
1396 follow the consistent pattern of struct work_stuff pointer first,
1397 followed by pointer into string being demangled, followed by
1398 pointer to the string where the result is being stored, followed
1399 by other args. Also generally replace most variables of name
1400 "type" with "mangled" for consistency. They all pointed to the
1401 same string but half were one name and half the other.
1402 * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
1403 * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
1404 use whenever a qualified name is being demangled.
1405 * cplus-dem.c (do_type): Qualified names are treated similarly
1406 to fundamental types, not as modifiers of fundamental types.
1407
ee97d673
SG
1408Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
1409
38e9ed49
FF
1410 * configure.in: Add sparclite as a target.
1411
ee97d673
SG
1412 * sparc-stub.c (handle_exception): Flush instruction cache just
1413 before returning to the user. (hexToInt): Fix overzealous cleanup.
1414
93220abe
FF
1415Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
1416
1417 * infrun.c (handle_command): Rewrite to allow multiple signal
1418 numbers, signal number ranges, and to recognize "all" to mean all
1419 signals except those used by the debugger.
1420 * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
1421 to set or reset actions for specific signals.
1422
dac9734e
FF
1423Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
1424
1425 * coffread.c (decode_type): Call alloc_type to alloc new
1426 types.
1427 * stabsread.c (read_array_type, read_range_type, define_symbol):
1428 Call alloc_type to alloc new types.
1429 * stabsread.c (define_symbol): Move dbl_valu symbol field data
1430 from type_obstack to symbol_obstack.
1431 * stabsread.c (define_symbol): Move typedef_sym from type_obstack
1432 to symbol_obstack.
1433 * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
1434 associated with a type, using the same mechanism as was used to
1435 allocate space for the type structure itself.
1436 * coffread.c (patch_type, coff_read_struct_type,
1437 coff_read_enum_type): Use TYPE_ALLOC.
1438 * dwarfread.c (struct_type): Use TYPE_ALLOC.
1439 * gdbtypes.c (create_array_type, check_stub_method,
1440 allocate_cplus_struct_type): Use TYPE_ALLOC.
1441 * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
1442 * stabsread.c (read_struct_type, read_array_type, read_enum_type,
1443 read_range_type): Use TYPE_ALLOC.
1444
ca8820f9
FF
1445Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
1446
1447 * breakpoint.c (breakpoint_re_set): Select a default source
1448 symtab if one is not currently selected.
1449 * utils.c (query): Call wrap_here before building the output
1450 query string, to turn off wrapping and flush any buffered output.
1451 Otherwise our query may end up in the wrap buffer and never be
1452 seen by the user.
1453 * eval.c (evaluate_subexp): Report error when attempting to
1454 evaluate subscript for types without a target type, rather
1455 than dumping core by using the NULL pointer.
1456 * symfile.c (symbol_file_command): Forget current_source_symtab
1457 and current_source_line when discarding symbol table.
1458
42e8b658
JG
1459Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
1460
1461 Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
1462
1463 * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
1464 * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
1465
39a13178
SG
1466Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
1467
1468 * remote.c (remote_open): Fix baud rate setting to make -b flag
1469 work. (remote_wait): Change 'T' message parser to deal with new
1470 improved format which allows stub to send an arbitrary bunch of
1471 registers.
1472 * sparc-stub.c: General cleanups. (trap_low, handle_exception):
1473 make all this re-entrant by storing all state on the stack. Clean
1474 up memory error trapping. (computeSignal, set_debug_traps):
1475 make it all table driven. Make a start at a baud rate setting command.
1476
0d6d92c7
ILT
1477Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
1478
664cf438
ILT
1479 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
1480
0d6d92c7
ILT
1481 * remote-vx.c: redefine malloc to avoid buggy declaration on
1482 RS/6000 <rpc/types.h>.
1483 xm-rs6000.h: include <sys/select.h> to define fd_set for
1484 <rpc/svc.h> on RS/6000.
1485
4bbefa86
ILT
1486Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
1487
1488 * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
1489 recursive invocations of make. Always create installation
1490 directories.
1491
d6b38bfb
PB
1492Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
1493
1494 * m68k-pinsn.c: Minor fix in style of output (don't use
1495 range to indicate floating point control registers).
1496
e893a126
JG
1497Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
1498
67c9f54c
JG
1499 * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
1500
e893a126
JG
1501 * infcmd.c (registers_info): Handle multiple register names.
1502 Changes inspired by Roland McGrath.
1503
4ecee2f9
SG
1504Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
1505
1506 * sparc-stub.c: New file. Mix it with your SPARClite
1507 application, and it will speak GDB remote protocol!
1508 * remote.c (remote_wait): Change 'T' (expedited reply) message to
e893a126 1509 deal with arbitrary registers. Needed for sparc-stub.
4ecee2f9 1510
3dc755fb
FF
1511Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
1512
1513 * cplus-dem.c (cplus_markers): Add table for gnu style and
1514 use throughout, in place of compile time constant CPLUS_MARKER.
1515 * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
1516 * cplus-dem.c (cfront_special): New function, as suggested
1517 by pfieland@stratus.com.
1518 * cplus-dem.c (forget_types): New function.
1519 * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
1520 demangle_prefix().
1521 * cplus-dem.c (mop_up): Call forget_types().
1522 * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
1523 Use throughout, instead of checking current_demangling_style.
1524 * cplus-dem.c (demangle_signature): When finding an explicit
1525 start of function args, forget all remembered types for
1526 lucid/cfront style demangling.
1527 * cplus-dem.c (demangle_prefix): In a sequence of two or more
1528 underbar characters, use last pair as the delimiter. Hoist
1529 gnu_special() call up to cplus_demangle(). Call cfront_special()
1530 when appropriate.
1531 * cplus-dem.c (cplus_special): Fix virtual table name demangling
1532 for inherited classes.
1533 * cplus-dem.c (demangle_args): Document quirks of numbered
1534 references to previously seen types.
1535 * dbxread.c (read_ofile_symtab, process_one_symbol):
1536 Use AUTO_DEMANGLING rather than explicitly checking
1537 current_demangling_style.
1538 * demangle.h: Add some comments.
1539 * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
1540 CFRONT_DEMANGLING): New macros.
1541 * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
1542 not found in the actual producer string produced by lcc.
1543 * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
1544 than explicitly checking current_demangling_style.
1545
4e8ea7a6
JG
1546Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
1547
1548 * breakpoint.c (enable_longjmp_breakpoint,
1549 disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
1550 Check for duplicate breakpoints at the same address. Bug report
1551 and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
1552
7b5d9650
FF
1553Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
1554
1555 * buildsym.c (end_symtab): Document that end_symtab can return
1556 NULL under non-error conditions.
1557 * dwarfread.c (read_file_scope): Guard against dereferencing NULL
1558 returned from end_symtab for empty compilation units.
1559
6872cfda
JG
1560Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
1561
1562 * am29k-tdep.c: Lint from DECstation compiler.
1563 * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
1564 As the man page says, "Sometimes you just can't get lint to shut
1565 up". That doesn't mean you should blow away the code it won't
1566 shut up about.
1567 * mips-xdep.c: Revise stubbing-out of code until Rich cleans
1568 it up over the next few weeks. Make mips x 29k build.
1569 * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
1570 (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
1571 but leave it as a comment because the breakpoint instruction
1572 is not easily accessible at this moment (it's static, and if
1573 we define one here, it goes into every file compiled).
1574
a679650f
FF
1575Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
1576
1577 * Makefile.in (VERSION): Bump to 4.6.3.
1578 * dwarfread.c (scan_partial_symbols): Skip over DIE's within
1579 function scopes when building partial symbol tables.
1580 * objfiles.c (open_existing_mapped_file): Make it clear in
1581 warning message that out of date mapped files are ignored.
1582 * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
1583 unit source file name in error message.
1584
50055e94
FF
1585Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
1586
1587 * dwarfread.c (struct dieinfo): Add has_at_byte_size.
1588 * dwarfread.c (struct_type): In absence of AT_byte_size for
1589 bitfield, use size of object of member's type for the size of
1590 the anonymous object containing the bit field.
1591 * dwarfread.c (completedieinfo): Set has_at_byte_size when
1592 an AT_byte_size attribute is seen.
1593 * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
1594 union aux_ext (was aux_ent).
1595 * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
1596 unsigned char* to char*, for Lucid compiler.
1597 * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
1598 to be correct type (from unsigned char* to char*).
1599 * valprint.c (type_print_derivation_info): Minor tweak to placement
1600 of commas in derived class printing.
1601 * xcoffread.c (builtin_type): Fix misspelling in fatal message.
1602
f6492282
SC
1603Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1604
1605 * xm-go32.h: Define LSEEK_NOT_LINEAR
a65841d7 1606 * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
f6492282
SC
1607 then work out the lseek positions of newlines by running through
1608 the file and `tell'ing. This makes source file listing work on
1609 OS's where the relationship between physical position in file and
1610 canonical position is indeterminate, eg VMS and DOS.
1611
8275e802
FF
1612Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
1613
c02a37ea
FF
1614 * stabsread.c: Ensure that all members of all allocated structures
1615 are initialized to known state to avoid hard to find bugs with gdb
1616 using fields containing random data.
3416d90b
FF
1617 * buildsym.c (start_subfile): Compact dirname initialization.
1618 * buildsym.c (patch_subfile_names): New function.
8275e802 1619 * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
3416d90b
FF
1620 * buildsym.c (end_symtab): Free all malloc'd subfile fields.
1621 * buildsym.h (patch_subfile_names): Add prototype.
1622 * dbxread.c (process_one_symbol): Call patch_subfile_names.
8275e802 1623
38094c60
JG
1624Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
1625
1626 * remote.c (getpkt): Only force retransmission ten times;
1627 after that, assume bug in target code, and handle pkt anyway.
1628
d0d0f75e
SG
1629Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
1630
1631 * configure.in: Add support for apollo 68k under BSD environment.
1632 * xm-apollo68b.h: New file to support above.
1633
9e4667f6
FF
1634Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
1635
1636 * configure.in: Recognize i486 host cpu.
1637 * valprint.c (type_print_derivation_info): Print derivation info
1638 in same form as class declarations in source.
1639 * valprint.c (type_print_varspec_suffix): Split arg printing
1640 code out to type_print_args function.
1641
cd46ffad 1642Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 1643
cd46ffad
FF
1644 * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
1645 at_import, at_frame_base.
1646 * dwarfread.c (completedieinfo): Remove cases for obsolete
1647 AT_visibility, AT_import, and AT_frame_base attributes.
1648 * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
1649 i860, which can keep up to 4 shadow breakpoints.
1650 * tm-stratus.h (USG): Define.
1651 * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
1652 * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
1653 * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
1654 * xm-stratus.h (NO_JOB_CONTROL): Remove define.
1655 * config/stratus.mt (TDEPFILES): Include files available from
1656 stratus that are not yet in release pending receipt of paperwork
1657 at FSF.
1658 * buildsym.c (finish_block): Minor code format change.
1659 * gdbtypes.h (struct field): Add to comments.
1660 * gdbtypes.h (virtual_field_bits): Add to comments.
1661 * objfiles.c (allocate_objfile): Change obstack interface to
1662 match FSF merging efforts.
ddce75e0 1663
cd46ffad 1664Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 1665
cd46ffad
FF
1666 * Makefile.in (VERSION): Bump to 4.6.2.
1667 * Makefile.in (SFILES_MAINDIR): Add stabsread.c
1668 * Makefile.in (OBS): Add stabsread.o
1669 * Makefile.in (stabsread.o): Add build rule.
1670 * stabsread.c, stabsread.h: New files.
1671 * buildsym.c: Split out stabs specific support to stabsread.c.
1672 * buildsym.h: Split out stabs specific support to stabsread.h.
1673 * dbxread.c (stabsread.h): Include
1674 * dbxread.c (dbx_new_init): Call stabsread_new_init.
1675 * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
1676 * dbxread.c (read_ofile_symtab): Call end_stabs.
1677 * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
1678 * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
1679 * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
1680 really_free_pendings to cleanups.
1681 * elfread.c (elf_new_init): Call stabsread_new_init.
1682 * gdbtypes.c: Small changes to maintenance commands.
1683 * mipsread.c (stabsread.h): Include.
1684 * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
1685 * xcoffread.c (stabsread.h): Include.
1686 * xcoffread.c (global_stabs): Remove redundant def.
1687 * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
ddce75e0 1688
d7808603
FF
1689Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
1690
1691 * lmode_inferior_valid, lmode_ours_valid: New static vars.
1692 * inflow.c (terminal_init_inferior, terminal_inferior,
1693 terminal_ours_1, initialize_inflow): Record and use state
1694 of lmode_inferior_valid and lmode_ours_valid.
1695
cd46ffad
FF
1696Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
1697
1698 * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
1699 include <sgtty.h> on USG. (from sef).
1700
1701 * depend: es1800 dependency needed here.
1702
c0f1085b
FF
1703Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
1704
1705 * buildsym.c (read_struct_type): Initialize structs allocated
1706 with alloca, to avoid using random values from stack later on.
1707 * defs.h (fprintf_filtered): Add prototype.
1708 * gdbtypes.c (check_stub_method): Fix misleading comments.
1709 * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
1710 support functions.
1711 * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
1712 small changes to maint support functions.
1713 * gdbtypes.h (cplus_struct_type): Reorganize member ordering
1714 for some fields and expand comments.
1715 * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
1716 macro and track change to obstack_full_begin macro.
1717 * utils.c (fprintfi_filtered): New function.
1718 * valprint.c (type_print_base): Fixup field printing to not
1719 print extraneous lines and not print bogus "no data fields"
1720 messages for C++ classes with no data members. Also use new
1721 fprintfi_filtered function.
1722
cd46ffad
FF
1723Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
1724
1725 * configure.in: es1800 ok for 68000 too.
1726
c0f1085b
FF
1727Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1728
1729 * configure.in: echo error messages to stderr, not stdout
1730
1731Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1732
1733 * configure.in: recognize hppa* instead of hppa
1734
f8e32b6e
SG
1735Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
1736
1737 * Makefile.in: Remove -I../readline from all compilations,
1738 include a special case for main.o instead.
1739
d4902ab0
FF
1740Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
1741
51a9d78c
FF
1742 * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
1743 error if it fails to find a member type, rather than return NULL
1744 and trigger a coredump.
1745 * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
1746 lookup_demangled_partial_symbol,): Ask demangle_and_match to
1747 match on complete demanglings, including argument lists for member
1748 functions, rather than just accepting the first demangling that
1749 matches the class and function name.
d4902ab0
FF
1750 * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
1751 to start_symtab as the directory name.
1752 * dwarfread.c (completedieinfo): Strip off any leading hostname
1753 portion of the AT_comp_dir attribute string. Gdb doesn't know
1754 what to do with them (FIXME).
1755
cdaa27e9
SG
1756Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
1757
cb48d806
SG
1758 * breakpoint.c (commands_command): Simplify code a bit, remove
1759 unnecessary fflush().
1760
cdaa27e9
SG
1761 * Makefile.in (OTHERS): Add gcc.patch.
1762 * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
1763
345e9ab8
FF
1764Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
1765
1766 * dwarfread.c (LCC_PRODUCER): Change to match current NCR
1767 lcc producer string.
1768
3ddcdc59
SG
1769Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
1770
1771 * WHATS.NEW renamed to NEWS.
1772
d23639b2
FF
1773Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
1774
1775 * dbxread.c, dwarfread.c: Re-enable experimental code to
1776 automatically select demangling style.
1777 * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
1778 DEMANGLING_STYLE, to make more descriptive. Revert back to
1779 "auto" as default. Comment use.
1780 * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
1781 * Makefile.in (${DEMANGLER}.o) Remove target and special
1782 compilation rule.
1783
5e85287e
FF
1784Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
1785
1786 * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
1787
d1fbc20d
SG
1788Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
1789
1790 * Makefile.in, demangle.c: Change default demangling style to
1791 gnu.
1792 * Makefile.in: Update version to 4.6 !!!
1793 * README, WHATS.NEW: Update for 4.6.
1794
7e94a17b
KR
1795Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
1796
7b8ca0a0
KR
1797 * i960-tdep.c (frame_args_address): If arg pointer can't be found,
1798 use frame address.
1799
7e94a17b
KR
1800 * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
1801 nodes as base classes.
1802
efcc6e06
SG
1803Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
1804
d1fbc20d
SG
1805 * alldeps.mak, depend: Update.
1806
930acbe5
SG
1807 * xcoffread.c: Add decl for section_offset to keep prototype happy.
1808
67ba524f
SG
1809 * Makefile.in (VERSION): 4.5.9.
1810
efcc6e06
SG
1811 * xm-hp300bsd.h: Add decl for strdup().
1812 * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
1813 PDR. Cleanup a few things, fix compilation warnings.
1814
2dbde378
FF
1815Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
1816
1817 * Makefile.in (DEMANGLING_STYLE): New define to set default
1818 demangling style for C++. Defaults to "auto".
1819 * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
1820 * Makefile.in (SFILES_MAINDIR): Add demangle.c
1821 * Makefile.in (OBS): Add demangle.o
1822 * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
1823 Remove compile time decisions about demangling style and replace
1824 with runtime decisions using current_demangling_style.
1825 * cplus-dem.c (main): Expand code included during building of
1826 standalone demangler to recognize demangling style options.
1827 * dbxread.c (demangle.h): Include.
1828 * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
1829 demangling style if processing g++ code and current demangling style
1830 is auto (Note: this feature currently disabled.)
1831 * demangle.c: New file, generic demangling control.
1832 * demangle.h (demangling_styles): New enumeration to select one
1833 of several demangling styles. Also define string names for each
1834 style.
1835 * demangle.h (set_demangling_style): Add prototype.
1836 * dwarfread.c (demangle.h): Include.
1837 * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
1838 New producer string prefixes to recognize.
1839 * dwarfread.c (handle_producer): Consolidate actions for specific
1840 producers. Set demangling style based on producer string if
1841 current style is auto. (Note: this feature currently disabled.)
1842 * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
1843
49f3be18
JG
1844Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
1845
1846 * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
1847
a252e715
PB
1848Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
1849
1850 * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
1851 * c-exp.y: Call lookup_signed_typename() after seeing
1852 "signed". This handles "signed char" correctly.
1853 * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
1854 keywords before a type specifier.
1855
311592ff
FF
1856Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
1857
1858 * command.c (lookup_cmd_1): Clarify descriptive comments.
1859 * gdbcmd.h (maintenanceprintlist): Add declaration.
1860 * main.c (maintenanceprintlist): Add definition.
1861 * main.c (gdb_completer_command_word_break_characters): Add.
1862 * main.c (symbol_completion_function): Switch completer word
1863 break character sets dynamically, based on whether completion is
1864 being done on commands or on something else.
1865 * main.c (initialize_cmd_lists): Init maintenanceprintlist.
1866 * maint.c: Include demangle.h.
1867 * maint.c (maintenance_demangle): New function.
1868 * maint.c (maintenance_print_command): New function.
1869 * maint.c (_initialize_maint_cmds): Reorganize some commands
1870 under new maintenance print subcommand.
1871
5c5b5d4b
PB
1872Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
1873
1874 * gdbtypes.c (lookup_struct_elt_type): If the input type is
1875 TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
1876 target type. Otherwise, 'whatis this.field' wouldn't work,
1877 which would be inconsistent, since 'print this.field' works.
1878 * buildsym.c (read_struct_type, read_enum_type): Clear
1879 TYPE_FLAG_STUB flag.
1880 * buildsym.c (cleanup_undefined_types): Don't rely on a
1881 flawed "Reasonable test to see if" a type has been defined
1882 since it was referred to; now we can just see if the
1883 TYPE_FLAG_STUB flag has been cleared.
1884 * valprint.c (print_type_base): Emit public/protected/private
1885 labels for methods as well as fields. Also, indent these labels
1886 2 spaces instead of 4, for a more conventional "look".
1887 * symtab.c (gdb_mangle_name): Undo Fred's change, unless
1888 GCC_MANGLE_BUG is defined. Also, handle destructors specially.
1889 * gcc.patch: New file. Contains patch for gcc (so people
1890 with gdb-2.2.x won't have to wait for a new gcc release).
1891
c5f5b482
KR
1892Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
1893
7eec00ed
KR
1894 * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
1895 (print_addr): Call print_address to show symbolic version as well.
1896
c5f5b482
KR
1897 * remote-vx.c (vx_kill): Don't look for arguments; they aren't
1898 being passed.
1899 (vx_read_register): Declare inferior_fp_regs. Delete code for
1900 copying "inferior_registers" around; the values are already in var
1901 "registers". Use correct size for register set.
1902
1903 * remote-vx.c (vx_write_register): Don't try writing FP regs; the
1904 target doesn't support it.
1905 (vx_read_register): Don't try reading them either.
1906
1907 * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
1908 VxWorks back end reads them in one contiguous set except for this
1909 one.
1910 (register_names): Change "pc" to "pcw" to avoid confusion printing
1911 "$pc".
1912 * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
1913 find the PC under VxWorks.
1914
8050a57b
FF
1915Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
1916
1917 * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
1918 to create new blank types, instead of handcrafting them.
1919 * defs.h (printfi_filtered): Add prototype.
1920 * utils.c (printfi_filtered): New function.
1921 * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
1922 to simplify the code. Other cleanups.
1923 * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
1924 * gdbtypes.h (struct cplus_struct_type): Add comments describing
1925 use of various fields.
1926 * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
1927 * c-exp.y (%token): Add CLASS as a token for C++, add grammar
1928 production that currently treats it exactly the same as STRUCT.
1929 * c-exp.y (yylex): Recognize "class" as token CLASS.
1930 * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
1931 * symtab.c (decode_line_1): Fix to pass quoted args on down to
1932 general symbol handling code. Call cplus_mangle_opname with
1933 DMGL_ANSI.
1934 * symtab.c (decode_line_2): Print demangled function names in
1935 breakpoint menus, instead of just file and line number.
1936 * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
1937 * valprint.c (type_print_base): Print "class" for C++ classes,
1938 rather than "struct". Print section labels for public, protected
1939 and private members of C++ classes.
1940 * values.c: Include demangle.h.
1941 * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
1942
e17e8e0e
SG
1943Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
1944
1945 * Makefile.in (VERSION): Update to 4.5.8.
1946
1947 Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
784fd92b
SG
1948
1949 * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
1950 prevent crashes when examining cross-targets.
1951 * dbxread.c (process_one_symbol): Include directory name when
1952 calling start_subfile for SOL & BINCL symbols. This allows gdb to
1953 find include files, and yacc/lex sources when the cwd doesn't match
1954 that in which the object was compiled.
1955 * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
1956 msymbols.
1957 * symtab.c (lookup_symtab_1): Rewrite. It now handles include
1958 files.
1959
2e9309df
FF
1960Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
1961
1962 * maint.c (maintenance_command, maintenance_info_command):
1963 Install with allow_unknown as 0 and call help_list to show
1964 list of possibilities when no subcommand is specified.
1965
498f1df0
FF
1966Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
1967
1968 * configure.in: Add m68k-ericsson-*.
1969 * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
1970
0239d9b3
FF
1971Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
1972
1973 * maint.c: New file.
1974 * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
1975 * Makefile.in (OBS): Add new file maint.o.
1976 * defs.h (command_class): Add class_maintenance.
1977 * defs.h (MAINTENANCE_CMDS): Default to including maintenance
1978 commands. Allow for them (and other nonessential parts of gdb)
1979 to be selectively left out under special circumstances.
1980 * gdbtypes.c (recursive_dump_type): New function; supports
1981 maintenance print-type command.
1982 * gdbtypes.h (recursive_dump_type, maintenance_print_type):
1983 Add prototypes.
1984 * main.c (maintenancelist, maintenanceinfolist): Add maintenance
1985 command lists.
1986 * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
1987 initializers. Add initializations for setprintlist, showprintlist,
1988 setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
1989 * printcmd.c (maintenance_print_type): New maintenance cmd.
1990 * valprint.c (setprintlist, showprintlist): Move to main.c, as
1991 implied by comment that all cmd lists are owned by main.c.
1992 * infcmd.c (unsetlist): Move to main.c, as implied by comment
1993 that all cmd lists are owned by main.c.
1994 * language.c (setchecklist, showchecklist): Move to main.c, as
1995 implied by comment that all cmd lists are owned by main.c
1996 * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
1997 deletelist): Remove redundant declarations (also in gdbcmd.h).
1998 * symmisc.c (printsyms_command): Now maintenance_print_symbols.
1999 * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
2000 * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
2001 * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
2002 * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
2003 maintenance_print_msymbols, maintenance_print_objfiles):
2004 Add prototypes.
2005 * symmisc.c (printsyms_command, printpsyms_command,
2006 printmsyms_command, printobjfiles_command): Removed from
2007 _initialize_symmisc.
2008 * main.c (dump_me_command): Moved to maint.c and renamed to
2009 maintenance_dump_me.
2010 * breakpoint.c (all_breakpoints_info): Rename to
2011 maintenance_info_breakpoints.
2012 * breakpoint.c (_initialize_breakpoint): Convert add_info of
2013 all_breakpoints_info to add maintenance_info_breakpoints to the
2014 maintenanceinfolist instead.
2015 main.c (initialize_main): Set up maintenance class commands.
2016
91fef76b
FF
2017Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
2018
2019 * Makefile.in (VERSION): Bump to 4.5.7.
2020 * cplus-dem.c (demangle_args): Validate index for previously
2021 seen type to guard against bogus values from malformed manglings.
2022 * valops.c (value_struct_elt_for_reference): Guard against
2023 blindly using NULL return value from lookup_symbol.
2024
ec8ceca3
JG
2025Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
2026
23053b80
JG
2027 * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
2028
ec8ceca3
JG
2029 * buildsym.c (finish_block): Fix thinko `inner block' complaints.
2030 * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
2031 * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
2032 child processes, to avoid dead ones "hanging around" after GDB exits.
2033 (attach): Always stop the process if it needs it. Set RLC flag
2034 when attaching running processes, so it will continue if we detach
2035 it, quit, or are killed.
2036 (detach): Clear faults and set RLC flag to make process run
2037 when we close it.
2038 (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
2039 Callers changed.
2040 (info_proc): Open process O_RDONLY, so we can see any process,
2041 even those controlled by debuggers.
2042 * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
2043
2670f34d
JG
2044Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
2045
2046 Relocate symbols using an array of section_offsets, rather than a
2047 single `addr' or `offset'. This makes Solaris-2 support work, and
2048 permits better VxWorks (and maybe xcoff) support later.
2049
2050 * symtab.h (struct section_offsets): New structure for keeping
2051 a set of offsets, rather than a single one.
2052 (struct objfile): Replace addr with section_offsets member.
2053 * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
2054 * gdb-stabs.h: New include file with `symbol type specific'
2055 parameters for psymtabs and objfiles.
2056 * Makefile.in (HFILES): Add gdb-stabs.h.
2057 * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
2058 * coffread.c: Conforming changes. Fake offset array always 0.
2059 * dbxread.c: Conforming changes.
2060 (struct dbx_symfile_info): Move to gdb-stabs.h.
2061 (start_psymtab): Call elfstab_offset_sections to calculate good
2062 offsets for this source file, based on the ELF symbol table info.
2063 (read_ofile_symtab): Yank N_CATCH, which is dead.
2064 (process_one_symbol, N_CATCH): Yank.
2065 (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
2066 Relocate with SECT_OFF_TEXT.
2067 (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
2068 to distinguish relocatable from absolute symbols. Then, if not
2069 absolute, do:
2070 (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
2071 (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
2072 (", N_ROSYM): SECT_OFF_RODATA.
2073 (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
2074 (dbx_symfile_offsets): Add to translate addr to offset.
2075 * dwarfread.c: Conforming changes. Single offset currently used.
2076 * elfread.c: Add various complaints about elf/stab stuff.
2077 #include gdb-stabs.h. Conforming changes, using a single offset.
2078 (elf_symtab_read): Record info from BSF_FILE symbols, and local
2079 variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
2080 for later use in building psymtabs.
2081 (elf_symfile_read): Allocate dbx_symfile_info here, to keep
2082 the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
2083 (free_elfinfo): New fn, frees all chained stab_section_infos
2084 in an objfile, and zaps the start-of-chain pointer.
2085 (elfstab_offset_sections): New fn, looks in stab_section_info
2086 chain to determine section bases to relocate a psymtab's worth
2087 of symbols, as they are being read.
2088 * mipsread.c: Conforming changes. Stabs-reading will relocate
2089 using one offset. MIPS-reading will not relocate at all.
2090 * partial-stab.h: Relocate different symbol types using different
2091 offsets from section_offsets.
2092 * symfile.c: Conforming changes.
2093 (find_lowest_section): Unused function to use later
2094 to free us from the Tyranny of the Text Section.
2095 (syms_from_objfile): Translate absolute arg ADDR to offsets used
2096 in all lower layers of symbol reading. Call format-specific
2097 sym_offsets function to initialize offsets for high speed symbol
2098 reading.
2099 (symbol_file_add): Call reinit_frame_cache so callers don't have to.
2100 (symbol_file_command, add_symbol_file_command): Callers changed.
2101 * symmisc.c (dump_psymtab): Print new relocation parameters.
2102 * xcoffread.c: Corresponding changes.
2103
2104 * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
2105 * main.c (main): Read the $HOME/.gdbinit file before processing
2106 the argv arguments (e.g. reading symbol files or core
2107 files). This allows global parameters to be set, which will apply
2108 during the symbol reading. The ./.gdbinit is still read after
2109 argv processing.
2110 * symtab.c (list_symbols): `i variables' shouldn't show enum values.
2111 * xcoffexec.c: Clean up quote inside comment.
2112
4ed3a9ea
FF
2113Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
2114
2115 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
2116 core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
2117 eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
2118 i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
2119 infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
2120 putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
2121 sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
2122 tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
2123 values.c, xcoffread.c:
2124 Remove "(void)" casts from function calls where the return value
2125 is ignored, in accordance with GNU coding standards.
2126
4c7c6bab
JG
2127Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
2128
2129 * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
2130 * partial-stab.h: Ignore N_ENDM.
2131 * elfread.c (elf_symtab_read): Ignore symbols that don't have a
2132 CODE or DATA section attachment. This eliminates a lot of random
2133 values from shared libraries, which screw up the ordinary symbols
2134 in the address ranges they happen to overlap.
2135 * buildsym.c (define_symbol): Eliminate special tests
2136 for function types; move into "function" cases in switch statement.
2137 (define_symbol: 'f', 'F', 'P'): Process all parameter types
2138 in case they define new type numbers. But ignore them (FIXME).
2139 ('k', 'B'): Ignore const and volatile if we see them (FIXME).
2140 (read_sun_builtin_type): Add commentary.
2141
37e2f5cb
DZ
2142Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2143
2144 * xm-rs6000.h: define MEM_FNS_DECLARED
2145
43a16f26
JG
2146Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
2147
2148 * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
2149 (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
2150 * mips-xdep.c: Remove most include files (unused, caused errs).
2151 (fetch_core_registers): Use right parameters in dummy fn.
2152
c47793da
JG
2153Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
2154
0f552c5f
JG
2155 * buildsym.c (scan_file_globals): Beware the null file.
2156 Fix from Jim Williams.
2157
2158 * stack.c (return_command): Evaluate expression *before* popping
2159 off the stack frames! Fix inspired by Jim Williams.
2160 (up_silently_command, down_silently_command): No sel frame is error.
2161
2162 * defs.h (memcpy, memset): Conditionalize decls on
2163 #ifndef MEM_FNS_DECLARED, since DECstation differs.
2164 (alloca): Break out the STDC and non-STDC alloca cases, to make
2165 it work on old preprocessors as well as "picky ANSI" ones.
2166 * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
2167
2168 * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
2169 * utils.c (fputs_demangled): Rename SLOP since DECstation system
2170 header files define it!
2171
c47793da
JG
2172 * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
2173
51b57ded
FF
2174Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
2175
2176 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
2177 symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
2178 * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
2179 findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
2180 putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
2181 utils.c, valarith.c, valops.c, valprint.c, values.c:
2182 Replace bcopy() use with memcpy(), which is more standard and can
2183 take advantage of gcc's builtin functions for increased performance.
2184 * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
2185 ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
2186 target.c, values.c:
2187 Replace bzero() use with memset(), which is more standard and can
2188 take advantage of gcc's builtin functions for increased performance.
2189 * i386-tdep.c, main.c, valprint.c:
2190 Replace bcmp() use with memcmp(), which is more standard and can
2191 take advantage of gcc's builtin functions for increased performance.
2192
22fd4704
FF
2193Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
2194
2195 * remote.c (remote_wait): Fix cast on signal() call.
2196 * defs.h (alloca): More diddling with alloca. Have to ensure
2197 that it has a prototype, so that if alloca is defined as a macro
2198 that takes an arg, the definition is seen as a use of a macro
2199 that takes an arg, to satisfy picky ANSI preprocessors.
2200
74fb91be
FF
2201Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
2202
2203 * sparc-pinsn.c: Use <string.h> rather than "string.h", for
2204 consistency with all other gdb files.
74fb91be
FF
2205 * Makefile.in (MAKE): Remove definition for consistency with
2206 other Makefile.in files and to fix problem with recursive makes.
2207
3a1e7a62
JG
2208Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
2209
2210 * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
2211 crashes H-PUX.
2212
b951b38d
SC
2213Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2214
2215 * source.c (print_source_lines): for DOS interoperability; don't
2216 print CR (013) as ^M.
2217
99fd9e3e
SG
2218Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
2219
bf18ac80
SG
2220 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
2221 conditional.
2222 * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
2223 instead.
2224 * remote.c (remote_wait): Cast signal to void * to avoid warning
2225 from busted HP compiler.
2226
cf79373a
SG
2227 * partial-stab.h (N_SO): Rearrange code a little so that all SO
2228 stabs cause end_psymtab to be called.
2229
50a11e49
SG
2230 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
2231 compiler feature of putting 'c' into basic type descriptors for
2232 all forms of char.
2233
99fd9e3e
SG
2234 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
2235 where there is no place for nPC in prrun struct.
2236
50e0dc41
FF
2237Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
2238
2239 * mipsread.c: Pass NULL name pointer to init_type, not 0.
2240 * gdbtypes.c (init_type): Use copy of typename on type_obstack.
2241 * dwarfread.c (enum_type): Save enum names on type_obstack.
2242 * dwarfread.c (struct_type): Save member name on type_obstack.
2243 * symtab.c (_initialize_symtab): Fix misspelling.
2244 * regex.c (store_jump, insert_jump): Return void.
2245
5140562f
JG
2246Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
2247
debd3443
JG
2248 * defs.h (PARAMS): Move to ../include/ansidecl.h.
2249 (alloca): Declare return type on SPARC, since Sun doesn't.
2250 (*_BYTE_ORDER): Improve comment: *must* be defined.
2251
5140562f
JG
2252 * tm-hppa.h: New file, architectural definition of HP PA.
2253 * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
2254
2255 * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
2256 hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
451df680 2257 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c,
5140562f
JG
2258 ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
2259 "defs.h".
2260
2261 * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
2262 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
2263 xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
2264
fef9f55c
JG
2265Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
2266
4d38b5a8
JG
2267 * printcmd.c (output_command): Thinko.
2268 (x_command): Only set remembered size/format if cmd succeeds.
2269
fef9f55c
JG
2270 * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
2271 since it is no longer used and burns time for every symbol read.
2272 (process_one_symbol): Treat N_CATCH like default (complain).
2273
369172bb
SG
2274Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
2275
2276 * partial-stab.h (case N_TEXT): Fix fencepost error when
2277 detecting start of new symbol info after reading symtab for a
2278 module with a zero length TEXT segment.
2279
e676a15f
FF
2280Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
2281
2282 * Makefile.in (VERSION): Bump to 4.5.6.
2283 * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
2284 correct type.
2285 * defs.h (NORETURN): Define away for Lucid compiler.
2286 * remote.c (remote_timer, remote_interrupt): Signal handlers
2287 take one int arg.
2288 * ser-termios.c (serial_write, serial_close): Return whatever
2289 value the write/close call returns, rather than falling off end.
2290 * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
2291 more systems than it is "char *". Define PTRACE_ARG3_TYPE to
2292 default to int.
2293 * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
2294 inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
2295 of third arg.
2296 * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
2297 m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
2298 pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
2299 symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
2300 argument 3.
2301 * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
2302 store_inferior_registers): Supply missing fourth argument to
2303 ptrace().
b4cc55b5
FF
2304 * valprint.c (val_print_fields): Call fprint_symbol to get
2305 automatic C++ demangling for mangled field names.
e676a15f 2306
0efe20a6
FF
2307Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
2308
2309 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
2310 * dwarfread.c (enum_type): Fix misspelling in comment.
2311 * valprint.c (val_print_fields, cplus_val_print): Minor
2312 adjustment to printing of C++ class structures to more closely
2313 match format for printing C structures, with and without setting
2314 pretty print.
2315
e37a6e9c
PB
2316Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
2317
2318 * infrun.c (wait_for_inferior): Don't test for SIGEMT
2319 (which is not a Posix signal) if it isn't defined.
2320 * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
2321 New port to Linux (a free Unix clone for 386 machines).
2322
f70be3e4
JG
2323Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
2324
2325 COFF changes for dealing better with EPI 29K C compiler output.
2326
2327 * coffread.c (record_minimal_symbol): Pass the minsym type to it.
2328 Callers changed.
2329 (coff_end_symtab): Sort blocks if needed. Complain if misordered.
2330 (read_coff_symtab): Move patch_opaque_types call from
2331 coff_symfile_read. Restrict it to symtabs from this objfile.
2332 (process_coff_symbol: C_TPDEF): Don't put ordinary foward
2333 references on opaque type chain; just let coff_lookup_type handle 'em.
2334 (decode_type): Complain about tagndx values on
2335 non-struct/union/enum types, which the EPI compiler tends to produce.
2336
2337 * symtab.c (list_symbols): Make minimal symbol variable-finding work.
2338
2339 * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
2340 dependency.
2341
2342 * elfread.c (elf_symfile_read): Update bfd_elf_find_section
2343 usage to match new prototype. Include libbfd.h to get prototype.
2344
28df0c3e
JG
2345 * source.c (find_source_lines): Handle large st_size fields.
2346
b4fde6fa
FF
2347Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
2348
2349 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
2350 * stack.c (return_command): Use cleanups to avoid memory leaks.
2351
e95bfbf1
JG
2352Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
2353
2354 * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
2355 INT_REGNUM to INTE_REGNUM.
2356
2357 * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
2358
9aa44833
SG
2359Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
2360
7da1e27d
SG
2361 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
2362 hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
2363 hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
2364 tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
2365
9aa44833
SG
2366 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
2367 declarations of malloc/realloc/free that are inserted by some
2368 versions of yacc.
2369 * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
2370 #undeffing them.
2371 * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
2372 another decl of strdup (this really ought to come from libiberty.h!).
2373
8f86a4e4
JG
2374Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
2375
2376 * remote.c (getpkt): Error if input exceeds buffer size.
2377 (_initialize_remote): `set remotedebug' enables packet trace.
2378
2379 * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
2380 N_SLINE's, etc, just like Sun cc on Solaris2.
2381
2382 * am29k-tdep.c (read_register_stack, write_register_stack):
2383 Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
2384 variable. Add `set' and `show' commands for it.
2385 * doc/gdb.texinfo: Document it.
2386
4341615d
FF
2387Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
2388
2389 * valprint.c (type_print_1): Plug memory leak. Print all
2390 C++ syms as demangled, not just functions.
2391 * buildsym.c (read_range_type): When we find a signed char
2392 type, do a lookup of signed char, not plain char. Plain char's
2393 still get looked up as plain char's elsewhere.
2394
8f86a4e4
JG
2395Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
2396
2397 * eval.c: Avoid residue-by-zero when evaluating without side effects.
2398 (Bug and fix found by Pierre Willard.)
2399
427d778c
SG
2400Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
2401
7634ebc8
SG
2402 * xm-rs6000.h: Fix decls for malloc, realloc, and free.
2403
826f73d0
SG
2404 * xm-rs6000.h: Add decl for strdup().
2405
2406 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
65c36045
SG
2407 compilation errors.
2408
423e9664
SG
2409 * breakpoint.c (enable_command, disable_command): Without args,
2410 should only affect normal breakpoints and watchpoints.
427d778c 2411
423e9664
SG
2412 * m68k-pinsn.c (print_insn_arg): Make register be const.
2413 * xcoffexec.c: Remove ' from comment.
427d778c
SG
2414 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
2415 with decls of malloc in c-exp.tab.c (as produced by yacc).
2416 There's got to be a better way to do this...
2417
323227fe
FF
2418Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
2419
2420 * partial-stab.h: Convert single rindex use to strrchr.
2421 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
2422 standard <strings.h> file, now that the only single use of
2423 rindex in the gdb source files is gone.
2424
fa0bcaa3
FF
2425Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
2426
2427 * mipsread.c: Undo ill effects from including <strings.h>,
2428 which #defines index to be strchr. Unfortunately, index is
2429 a member of a symbol table structure that can't be changed.
2430 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
2431 remove redundant #include's.
2432
b303297a
SG
2433Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
2434
2435 * mipsread.c: #include <strings.h> for rindex().
2436
d1140eb5
FF
2437Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
2438
2439 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
2440
c72af089
SG
2441Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
2442
2443 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
2444 extraneous SO stabs from busted C++ compilers.
2445
4c07f28d
FF
2446Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
2447
2448 * Makefile.in (VERSION): Bump to 4.5.5.
2449 * symtab.c (decode_line_1): Until C++ support stabilizes, when
2450 C++ lookups fail, print possibly helpful hint about completion.
2451 * cplus-dem.c (demangle_signature): Fix ARM style demangling
2452 for static data members.
2453 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
2454 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
2455 it's broken on ncr3000's.
2456
1c92ca6f
FF
2457Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
2458
2459 * dwarfread.c (decode_modified_type): Change type of first arg.
2460 Change 'modifier' to char from unsigned char. Cast single use
2461 that needs to be unsigned char.
2462 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
2463 * utils.c (strdup_demangled): Add function.
2464 * defs.h (strdup_demangled): Add prototype.
2465 * stack.c (return_command): Demangle C++ function names for query.
2466 * infcmd.c (jump_command): Demangle C++ function names for query.
2467 * cplus-dem.c (consume_count): New function and prototype.
2468 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
2469 do_type): Replace conversion code with consume_count().
2470 * cplus-dem.c (gnu_special): Fix demangled of static members.
2471 * source.c (list_command): Print demangled function names
2472 when appropriate. Fix supplied by Peter Schauer.
2473
2474Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
2475
8f86a4e4
JG
2476 * sparc-tdep.c: Clean up slightly for Solaris2.
2477
1c92ca6f
FF
2478 * buildsym.c (define_symbol): Nameless types are now on several
2479 platforms; generalize them and un-ifdef them to make Solaris 2
2480 work.
2481
bcbf9559
JG
2482Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
2483
d69bba12
JG
2484 * infcmd.c: Fix typo (reported by Rob Savoye).
2485 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
2486 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
2487 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
2488 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
2489 rather than the one for the first file in the dependency chain.
2490
bcbf9559
JG
2491 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
2492 set. Don't reset our own texthigh, or dependency-only pst's, in
2493 scanning all the rest of the psymtabs.
2494 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
2495
2496 * buildsym.h (N_UNDF): Improve comments.
2497 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
2498
252f6c65
FF
2499Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
2500
2501 * symtab.h (struct symbol): Add aux_value union for preserving
2502 an additional per-symbol value.
2503 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
2504 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
2505 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
2506 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
2507 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
2508
a6b46ad4
MT
2509Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2510
2511 * symfile.c (clear_symtab_users_once): Now non-static (for
2512 objfiles.c).
2513
bf2e5f6b
JG
2514Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
2515
346168a2
JG
2516 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
2517 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
2518 vax-pinsn.c: Remove reg_names decl (now in defs.h).
2519
2520 Solaris-2 support on SPARC:
2521
2522 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
2523 Add symbol_size and file offsets to struct symloc.
2524 Add static symbol_table_offset, string_table_offset,
2525 file_string_table_offset, next_file_string_table_offset,
2526 last_function_name.
2527 (add_old_header_file): Convert error() to complain()t.
2528 (dbx_symfile_read): Get symbol size via the objfile.
2529 Also get symbol_table_offset.
2530 (dbx_symfile_init): Record symbol size and count via the objfile.
2531 (dbx_next_symbol_text): Always add file_string_table_offset when
2532 accessing string table.
2533 (read_dbx_symtab): Initialize file_string_table_offset to 0.
2534 (SET_NAMESTRING): Use the offset.
2535 (end_psymtab): Large kludge to determine addresses where source
2536 files start and end (for the psymtab header).
2537 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
2538 Get this, symbol size, and symbol offset, from psymtab.
2539 (read_ofile_symtab): Don't back up one symbol for Solaris2.
2540 Patch up last_source_start_addr if zero in N_SO.
2541 (process_one_symbol): Add variable function_start_offset.
2542 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
2543 BLOCK_ADDRESS_FUNCTION_RELATIVE.
2544 ( "", N_OBJ, N_OPT): Ignore.
2545 (elfstab_build_psymtabs): New function to read stabs out of
2546 an ELF file.
2547
2548 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
2549 (gdb): use GLOBAL_CFLAGS when linking, too.
2550 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
2551 (N_OBJ, N_OPT): Ignore.
2552 ('f', 'F'): Save last function name.
2553
2554 * elfread.c (record_minimal_symbol_and_info): Kludged to put
2555 extra info in the minimal symbol.
2556 (elf_symtab_read): The extra info is the size of an ELF object,
2557 which was kludged to us in the `udata' field of the BFD symbol.
2558 Gag me with a crowbar...
2559 (elf_symfile_read): Keep track of both the absolute load address,
2560 and the offset between load addr and symbols. Handle STABS as
2561 well as DWARF sections, passing the absolute load address to
2562 elfstab_build_psymtabs.
2563
2564 * symfile.h: Prototype elfstab_build_psymtabs.
2565 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
2566
2567 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
2568
93297ea0
JG
2569 * buildsym.h: Add processing_acc_compilation flag.
2570 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
2571 (define_symbol): Skip arg types in function entries. Resolve
2572 overloaded 'P' which acc uses for prototypes of functions called
2573 by this file.
2574 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
2575
2576 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
2577 save size of ELF symbols. FIXME.
2578 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
2579 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
2580
bf2e5f6b 2581 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 2582 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 2583
346168a2
JG
2584 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
2585 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
2586 * symfile.c (symfile_bfd_open): Comment where name is freed.
2587 * symmisc.c (extend_psymbol_list): Comment where list is freed.
2588
252f6c65 2589Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
2590
2591 * expprint.c (print_subexp): Add missing ']'.
2592 * defs.h (reg_names): Fix declaration to match that in infcmd.c
2593 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
2594 * WHATS.NEW: Point out improved C++ function name handling.
2595 * gdbtypes.c (lookup_fundamental_type): For now, use the same
2596 type names for both implicitly and explicitly signed integral
2597 types. See comment in the source code.
2598
28de880c
JG
2599Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
2600
2601 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
2602 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
2603 * expprint.c (print_subexp): Fix printing of register names.
2604
1304f099
JG
2605Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
2606
2607 * inferior.h (register_valid): Declare.
451df680 2608 * rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
1304f099
JG
2609 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
2610 macros for traversing the data structures in a single objfile.
2611 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
2612 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
2613 * infcmd.c: Lint.
2614
252f6c65 2615Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
2616
2617 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
2618 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
2619 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
2620 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
2621
55488e9e
SG
2622Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
2623
2624 * depend: rebuild to account for remote-st2000.c.
2625 * remote-st2000.c: Almost works now.
2626 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
2627
d630b615
FF
2628Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
2629
2630 * c-exp.y (yylex): Recognize single-quoted strings that specify
2631 tokens with embedded whitespace, such as C++ demangled names.
2632 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
2633 * main.c (gdb_completer_quote_characters): Add global variable.
2634 * main.c (symbol_completion_function): Total rewrite for C++
2635 demangled name handling.
2636 * main.c (skip_quoted): New function.
2637 * main.c (main): Set rl_completer_quote_characters.
2638 * symmisc.c (dump_symtab): Print source language for symtab.
2639 * symtab.c (expensive_mangler): Add prototype and function.
2640 * symtab.c (completion_list_add_symbol): Total rewrite for new
2641 C++ demangled name handling.
2642 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
2643 other changes for demangled C++ symbol handling.
2644 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
2645 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
2646 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
2647 * symtab.c (completion_list_add_symbol): Total rewrite for new
2648 C++ demangled name handling.
2649 * symtab.c (expensive_mangler): New function.
2650 * utils.c (strcmp_iw, demangle_and_match): New functions.
2651 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
2652
d9915ebc
JG
2653Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
2654
2655 * Makefile.in: Roll VERSION to 4.5.4.
2656 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
2657 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
2658 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
2659
88cc9a36
SG
2660Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
2661
55488e9e
SG
2662 * alldeps.mak: Rebuild to account for new files.
2663 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
2664 * tm-st2000.h: New file.
88cc9a36
SG
2665 * configure.in: Tandem debug monitor (st2000) support.
2666 * remote-st2000.c, config/st2000.mt: ditto.
2667
6f8db23a
JG
2668Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
2669
2670 * blockframe.c (inside_entry_file, inside_main_func,
2671 inside_entry_func): Return 0 if no symbols; avoid crashing.
2672
2673Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
2674
2675 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
2676 without masking, since it is signed and will later be compared
2677 against signed quantities. The right fix is probably to make
2678 it all unsigned, but this is a small, safe fix for this release.
2679 FIXME -- make the real change sometime soon.
2680
a748555b
MT
2681Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
2682
fb44a8f5
MT
2683 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
2684 parameter in call to `symbol_file_add' to 0.
2685
a748555b
MT
2686 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
2687
2688Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
2689
2690 * configure.in: Handle -m680[01234]0-wrs.
2691
48079d66
MT
2692Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
2693
2694 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
2695 `ieee_extended_to_double'.
2696
cb614788
JG
2697Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
2698
2699 * valops.c (value_assign): Lint, by Pierre Willard.
2700
6ad6ef42
JG
2701Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
2702
cb614788
JG
2703 * coredep.c (fetch_core_registers): Remove premature warning,
2704 which triggers on DECstation even though all regs are accessible.
2705
2706 * m68k-pinsn.c (print_insn_arg): Use new macros to get
2707 sign-extension of instruction fields even on unsigned-char hosts.
2708 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 2709
cb614788 2710 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
2711 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
2712 since they define the target, not the host.
2713 * m88k-pinsn.c: Fix typo.
2714
2715Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
2716
2717 * valarith.c (value_zerop): -0.0 is still zero.
2718 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
2719 Patches by Paul Eggert <eggert@twinsun.com>.
2720
2721Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
2722
2723 * alldeps.mak, depend: re-make to account for ser-*.c.
2724
6c316cfd
FF
2725Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
2726
2727 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
2728 disconnecting from controlling terminal, to avoid gdb hanging
2729 on SVR4. Fixes bug reported by Oliver Okrongli.
2730 * procfs.c (PROC_NAME_FMT): Change format to match default used
2731 by system, as suggested by Oliver Okrongli.
2732 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
2733 bug fix from Brent Townshend (bst%tt@cam.ORG).
2734 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
2735 by turlais@rechser.total.fr.
2736 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
2737 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
2738 * objfiles.h (unlink_objfile): Add prototype.
2739 * objfiles.c (unlink_objfile): Add function.
2740 * objfiles.c (free_objfile): Call unlink_objfile.
2741 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
2742 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
2743 Also, discard old possibly bogus sf struct.
2744 * symfile.c (symbol_file_add): Call init_entry_point_info() and
2745 find_sym_fns() for remapped symbol files, in case of any changes
2746 since the last mapping.
2747
2748Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2749
2750 * findvar.c (read_relative_register_raw_bytes): use the raw size
2751 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
2752
ae0ea72e 2753Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 2754
ae0ea72e
SC
2755 Changes to support GDB running on DOS using GO32 and H8 support
2756
2757 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
2758 allowing hosts with different text and binary file formats to
2759 work.
2760 * coffread.c (read_coff_symtab): changed calling convention and
2761 operation - now it opens its own file with FOPEN_RB rather than
2762 duping and fdopening the provided handle.
2763 * dbxread.c, cplus-dem.c: #include mangling.
2764 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
2765 binary files oring in the right bit.
2766 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
2767 * remote-hms.c: cleanup to use the new remote serial stuff
2768 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
2769 independent remote terminal I/O.
2770 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
2771 * source.c (openp): fix off by one problem removing / - can now
2772 open a source file in the root directory with DOS.
2773 * values.c (value_as_pointer): remove bogus address bits from
2774 long. (unpack_long): unpack into unsigned long/short if pointer.
2775
0defac02
SG
2776Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
2777
84c8f62d
SG
2778 * infrun.c (child_attach): Don't allow gdb to attach to itself.
2779 It gets permanently stuck in many OSes.
bcf2e6ab
SG
2780 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
2781 to printf_filtered.
70d47e66 2782 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
2783
2784Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
2785
2786 * README: Add pointer to internals doc, and describe reading
2787 info files.
2788 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
2789 * symtab.c (output_source_filename): Remove old glop for wrapping
2790 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
2791
2792Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
2793
2794 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
2795 * munch: Add sort -u to avoid duplications.
2796 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
2797 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
2798
7fd31a84
FF
2799Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
2800
2801 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
2802 avoid infinite loops while demangling bogus mangled names.
2803 * valprint.c (type_print_base): Minor fix for GNU style guide
2804 conformance.
2805
f9b5584c
FF
2806Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
2807
2808 * Makefile.in (VERSION): Bump to 4.5.3
2809 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
2810 * Makefile.in (demangle): New target to create standalone
2811 demangler with same code and options as internal demangler.
2812 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
2813 to support ARM style and Lucid style demangling, improve
2814 maintainability, fix several demangling bugs. More changes
2815 to follow.
2816 * defs.h (strstr): Add ANSI compatible prototype.
2817 * valprint.c (type_print_1): Demangle using ansi option.
2818 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
2819
1e939db1
SG
2820Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
2821
2822 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
2823 first two sections.
2824
d5e88583
PB
2825Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
2826
2827 * mipsread.c (parse_procedure): Return rather than using
2828 uninitialized variable 'b'.
2829
0defac02
SG
2830Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
2831
9b98dea2 2832 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 2833 recursions.
9b98dea2
RP
2834
2835Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
2836
2837 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
2838 * am29k-tdep.c: Update to latest code from AMD.
2839 (get_saved_register) don't crap out if no frame.
9b98dea2 2840 * tm-29k.h: Upgrade to latest code from AMD.
9b98dea2 2841
ba2c9027
PB
2842Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
2843
2844 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
2845 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
2846 from former to latter.
2847
55b3ef9a
FF
2848Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
2849
2850 * cplus-dem.c (do_args): Handle void args the same as others.
2851 * objfiles.c (free_objfile): Only try to unmap files when
2852 reusable objfiles are supported.
2853 * valprint.c (type_print_varspec_suffix): Add parameter that
2854 specifies if C++ demangling included function arguments. Use
2855 it to suppress printing extra pair of ()'s.
2856 * valprint.c (type_print_1): Fix problem with printing demangled
2857 C++ function types where demangled type includes the function
2858 args.
2859
8f793aa5
FF
2860Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
2861
2862 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
2863 Allows selection of C++ demangler to be a configuration option
2864 until multiple demanglers are supported.
2865 * demangle.h: New include file for extended demangler support.
2866 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
2867 utils.c, valprint.c: Include "demangle.h" and change all calls
2868 to cplus_demangle() or fputs_demangled() to use individual
2869 demangling options.
2870 * valprint.c (type_print_1): Change options to cplus_demangle
2871 to print demangled function args. Still broken, but now less so.
2872 * cplus-dem.c: Include demangle.h, reorganize and update some
2873 comments to reflect reality.
2874 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
2875 second arg from fixed integer to bit based multiple options.
2876 * cplus-dem.c (optable): Reformat and replace ansi members with
2877 bit based options.
2878 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
2879
6fab5bef
JG
2880Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
2881
2882 * values.c (set_internalvar): Force evaluation of lazy values.
2883 Bug reported by RMS.
2884
4db8e515
FF
2885Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
2886
2887 * Makefile.in (VERSION): Bump to 4.5.2.
2888 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
2889 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
2890 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
2891 proper handling of bit fields.
2892 * gdbtypes.h (struct type): Clarify use of field.bitpos.
2893 * symtab.h: Fix couple of misspellings in comments.
2894 * value.h (struct value): Clarify use of bitpos.
2895 * value.h (unpack_field_as_long): Change prototype, returns
2896 LONGEST.
2897 * values.c (unpack_field_as_long): Change return type to LONGEST,
2898 sign extend unpacked fields that are signed, other rewriting.
2899 * config/ncr3000.mt: New target config file.
2900
ea1549b3
JG
2901Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
2902
fcdb113e
JG
2903 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
2904 even when printing 8-bit characters.
2905
ea1549b3
JG
2906 * gdbtypes.c (make_{reference,pointer,function}_type): New
2907 functions which handle overwriting of forward-referenced types
2908 for stabs file reading.
2909 (lookup_{reference,pointer,function}_type): These just call
2910 the make_*_type functions with a null storage alloc parameter.
2911 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
2912 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
2913
2914 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
2915 (dbx_alloc_type): Make it easier to understand. No funct change.
2916 (define_symbol: 't'): Don't put the typedef name into the name of
2917 the struct, union, or enum. Bugfix.
2918 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
2919 routines to properly handle overwriting preallocated types so that
2920 forward references will work.
2921 (read_enum_type): Force enum values to file scope, due to bug in
2922 Sun compiler output. FIXME, fix later.
2923
2924 Remove unused header_file_prev_index mechanism. It was already
2925 obsolete in gdb-3.5. These comments appeared in 3.5:
2926 /* This code was used before I knew about the instance codes.
2927 My first hypothesis is that it is not necessary now
2928 that instance codes are handled. */
2929 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
2930 * buildsym.h: Remove it and prev_index that saves it.
2931 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
2932
2933 * solib.c (special_symbol_handling): When called from core files,
2934 must set up debug_addr. Don't print error messages, just return.
2935 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
2936
f536aa39
PB
2937Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
2938
2939 * cplus-dem.c: Allow nested class names (as in
2940 Foo::Bar::method()).
2941 Allow the cleaner cfront style of nested class names
2942 (Q2_3Foo3Bar as well as Q23Foo3Bar).
2943 Make cplus_demangle re-entrant by removing use of global
2944 variables. Instead, place all shared variables in a
2945 stack-allocated structure, and pass around its address.
2946
72b1aa30
SG
2947Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
2948
9e91f617
SG
2949 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
2950 29k-share/* subdirs...
2951
07df4831
SG
2952 * am29k-tdep.c: Update to use new calling conventions, and misc
2953 symbol elements.
2954
72b1aa30
SG
2955 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
2956
c8094777
FF
2957Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
2958
66a8a9b4
SG
2959 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
2960 breakpoint instructions that leave PC pointing at the right place.
2961
c8094777
FF
2962 * core.c (core_open): Call warning() to print warnings.
2963
35a25840
SG
2964Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
2965
2966 * symtab.c (lookup_symbol): Need to check if msymbol->name is
2967 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
2968 This prevents a crash when trying to lookup the value of a
2969 non-existent symbol.
2970
4ace50a5
FF
2971Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
2972
2973 * signame.c, signame.h: Remove, replaced by strsignal.c in
2974 libiberty.
2975 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
2976 sun386-xdep.c: Remove include of signame.h
2977 * Makefile.in (SFILES_MAINDIR): Remove signame.c
2978 * Makefile.in (HFILES): Remove signame.h
2979 * Makefile.in (OBS): Remove signame.o
2980 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
2981 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
2982 psignal, perror): Add prototypes.
2983 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
2984 Remove define.
2985 * depend: Manually remove signame.[cho] references.
2986 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
2987 strsignal.
2988 * convex-xdep.c (core_file_command): Replace use of sys_siglist
2989 with safe_strsignal.
2990 * core.c (core_open): Replace use of sys_siglist with
2991 safe_strsignal.
2992 * core.c (memory_error): Replace use of sys_errlist with
2993 safe_strerror.
2994 * i960-tdep.c (print_fault): Replace use of sys_siglist with
2995 safe_strsignal.
2996 * infcmd.c (program_info): Replace use of sys_siglist with
2997 safe_strsignal.
2998 * infrun.c (signal_stop, signal_print, signal_program):
2999 Allocate dynamically based on dynamic determination of number
3000 of signals to support.
3001 * infrun.c (child_create_inferior): Replace use of sys_errlist
3002 with safe_strerror.
3003 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
3004 safe_strsignal.
3005 * infrun.c (sig_print_info): Replace use of sig_abbrev with
3006 strsigno and sys_siglist with safe_strsignal.
3007 * infrun.c (handle_command): Call signo_max to find number of
3008 signals. Replace sig_number with strtosigno and sig_abbrev with
3009 strsigno.
3010 * infrun.c (signals_info): Replace sig_number with strtosigno.
3011 * infrun.c (_initialize_infrun): Call signo_max to find number of
3012 signals. Dynamically allocate signal_{stop,print,program}.
3013 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
3014 * procfs.c (errnoname): Add function and prototype.
3015 * procfs.c (info_proc_siginfo): Call errnoname, replace use
3016 of sys_siglist with safe_strsignal.
3017 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
3018 sys_siglist with safe_strsignal.
3019 * procfs.c (info_proc_stop): Call errnoname.
3020 * procfs.c (signalname): Replace sig_abbrev with strsigno.
3021 * stuff.c (main, get_offset): Replace use of sys_errlist with
3022 strerror.
3023 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
3024 with safe_strsignal.
3025 * umax-xdep.c (core_file_command): Replace use of sys_siglist
3026 with safe_strsignal.
3027 * utils.c (safe_strerror, safe_strsignal): Add functions that
3028 call strerror and strsignal respectively, and deal with NULL
3029 returns.
3030 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
3031 sys_errlist with safe_strerror.
3032 * valprint.c (val_print): Replace use of sys_errlist with
3033 safe_strerror.
3034
6e6bf7f2
RP
3035Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
3036
3037 * Makefile.in: rework CFLAGS so that they can be set from the
3038 command line to make. CFLAGS -> INTERNAL_CFLAGS.
3039 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
3040 Pass CFLAGS on recusions.
3041
3042Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
3043
3044 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
3045 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
3046 overkill for the problem it solved.
3047 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
3048 and default to simply printing type names as appropriate.
3049 * main.c (main): Remove one of the leading newlines from
3050 warning_pre_print initialization.
3051 * objfiles.c (open_existing_mapped_file): Add function and
3052 prototype.
3053 * objfiles.c (open_mapped_file): Rewrite to use new function
3054 open_existing_mapped_file.
3055
b0c8c726
JG
3056Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
3057
3058 * sun3-xdep.c (fetch_core_registers): Lint.
3059 * tm-sun3.h: Prototype lint.
3060 * value.h: Typo.
3061
2d6d969c
FF
3062Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
3063
3064 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
3065 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
3066 * objfiles.c: Cast calls to close() with unused returns to void.
3067 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
3068 old objfile's name before updating it.
3069 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
3070 * objfiles.h (objfile struct): Add mmfd member.
3071 * symfile.c (syms_from_objfile): Move some code to
3072 new_symfile_objfile.
3073 * symfile.c (new_symfile_objfile): Add new function, common code
3074 from syms_from_objfile.
3075 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
3076 mapped and unmapped symbol files.
3077 * symfile.c (symbol_file_command): Print "No symbol file now"
3078 message, ala exec_file_command for the exec file.
3079 * symfile.h (new_symfile_objfile): Add prototype.
3080 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
3081 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
3082
d453b386
PB
3083Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
3084
3085 * rs6000-pinsn.c: New version from IBM (Metin).
3086 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
3087 to avoid warnings from some compilers.
3088
4a11eef2
FF
3089Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
3090
3091 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
3092 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
3093 type's flag word that marks it as a fundamental type.
3094 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
3095 flags argument for all calls to init_type().
3096 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
3097 flags argument for all calls to init_type(). Also remove
3098 dependency on host sizes for ints, floats, etc.
3099 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
3100 flags argument for all calls to init_type(). Also remove
3101 dependency on host sizes for ints, floats, etc.
3102 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
3103 bit to flags argument for all calls to init_type(). Add types
3104 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
3105 * valprint.c (unsigned_type_table, signed_type_table,
3106 float_type_table): Remove.
3107 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
3108 bit when printing fundamental types, and print the actual name
3109 for such types, rather than inventing one. Remove code that
3110 invented fundamental type names.
3111 * valprint.c (_initialize_valprint): Remove initializations
3112 for now removed unsigned_type_table, signed_type_table, and
3113 float_type_table.
3114
35a25840
SG
3115Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
3116
3117 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
3118 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
3119 5.0.2.
3120
13b5a7ff
FF
3121Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
3122
3123 * dwarfread.c (target_to_host): New function similar to previous
3124 swapin function.
3125 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
3126 Extensive changes to convert all previous usages to use new
3127 target_to_host() function.
3128 * dwarfread.c (struct dieinfo): Change types of most integral
3129 members to be unsigned.
3130
3bc82410
JG
3131Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
3132
3133 * WHATS.NEW: Revise -mapped doc.
3134
817bc7b8
JG
3135Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
3136
3137 * mipsread.c (parse_partial_symbols): Complain when sh->index is
3138 too high or when skipping `forwards' moves us backwards.
3139 (parse_type): Print mis-guessed tag name in complaint.
3140 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
3141 (parse_procedure): Do not attempt to create symbols; just fill in
3142 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
3143 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
3144 for clarity. Set top_stack before calling parse_external. In
3145 stabs, sort symbols before calling parse_procedure.
3146 * mipsread.c: Lint.
3147 * symmisc.c (std_in, std_out, std_err): Add vars to access std
3148 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
3149 * Makefile.in: Remove stage* targets. Avoid echo on recursive
3150 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
3151 exists.
3152
554d1be4
JG
3153Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
3154
44d835be 3155 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
3156 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
3157 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3158 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
3159 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
3160 Remove new symbol types and such to ../include/coff/symconst.h.
3161 (parse_symbol): Simplify code for parsing struct/enum/unions.
3162 (parse_type): Handle `long long' types.
3163 (upgrade_type): Handle `const' qualifier.
3164 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 3165
6e706950
FF
3166Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
3167
95967e73
FF
3168 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
3169 copy in data from raw read buffers, calling bfd byteswapping
3170 routines as appropriate. Use to replace most existing memcpy
3171 calls.
3172 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
3173 * configure.in: Recognize new ncr3000 config.
3174 * config/ncr3000.mh: New config file.
3175
601836ef
SG
3176Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
3177
6e706950
FF
3178 GDB-4.5 release!
3179
3180 * README: Update for release.
b69ce5ab
SG
3181 * Makefile.in: Update version to 4.5.
3182 * WHATS.NEW: The obvious.
3183
ece32565
SG
3184 * depend: Generate new depend file for this release.
3185
601836ef
SG
3186 * Makefile.in (depend): Fix dependancy generation so that it does
3187 not include gcc 'fixincluded' files, which are usually in a system
3188 specific location.
3189
9b6f92db
PB
3190Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
3191
3192 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
3193 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
3194 symbols for nameless types. And, handle `R' (register parameter
3195 type) for AIX. (an extension to existing stabstring grammar).
3196 * rs6000-xdep.c: Fix typo (= should have been ==).
3197
7fe388ad
SG
3198Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
3199
3200 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
3201
9e53d9dc
JG
3202Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
3203
3204 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
3205 * signame.c (SIGWAITING, SIGLWP): Add.
3206
6fba3d7c
PB
3207Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
3208
56619803 3209 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 3210
6fba3d7c
PB
3211 * breakpoint.c (breakpoint_1): Add (int) casts for enums
3212 used in array index context (otherwise, some compilers barf).
3213
628c6d3b
SG
3214Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
3215
e05ba37d
SG
3216 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
3217 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
3218 in a system call, and provide better backtrace if so.
3219
1f415ae7 3220 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 3221 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 3222 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 3223
96c19d0f
SG
3224 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
3225 mipscoff_symfile_read): Convert to BFD to do file I/O.
3226
c1bde665
SG
3227 * symfile.c: #include <ctype.h> to get proper def if isspace().
3228
628c6d3b
SG
3229 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
3230
ad142b8e
PB
3231Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
3232
3233 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
3234 function also when parsing embedded stabs.
3235
ce9260ae
SG
3236Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
3237
391ca579
SG
3238 * mipsread.c: Fix more declarations.
3239
e5578a31
SG
3240 * mipsread.c: Fix many invocations of complain. Use enum
3241 type_code where appropriate.
41bd448e 3242
995e7f86
SG
3243 * xm-vaxult.h: Add decl for strdup().
3244
ce9260ae
SG
3245 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
3246 for xm-vax.h.
3247
b2de19e3
SG
3248Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
3249
3250 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
3251 process_one_symbol.
3252
556f3d90
PB
3253Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
3254
3255 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
3256 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
3257 Merge in more patches for rs6000 from Metin Ozisik.
3258 * utils.c: Fix typo in comment.
3259
d65eee73
FF
3260Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
3261
3262 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
3263 * procfs.c (attach): Set nopass_next_sigstop if attached
3264 process is forcibly stopped.
3265 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
3266 resending SIGSTOP to attached process on first resume.
3267
239e7ee9
SG
3268Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
3269
3270 * Makefile.in (SFILES_MAINDIR): add mipsread.c
3271
e10a3052
JG
3272Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
3273
3274 * Makefile.in (OBS): Compile mipsread.c for all targets now.
3275 (VERSION): Bump to 4.4.85.
3276 * mipsread.c: Update for new include files. Lint.
3277 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
3278 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
3279 Don't need to bring in mipsread.o specially any more.
3280
4ad1963e
SG
3281Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
3282
3283 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
3284 routine (for Irix-4.x). Make many funcs static and void.
3285 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
3286 * (init_extra_frame_info): Don't trash cached value of frame
3287 pointer register. This fixes backtracing through routines that use
3288 alloca(). Generally clean up declarations of functions, and use
3289 typedefs and macros to reference data structures as appropriate.
3290 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
3291 proc_desc element.
3292
5c1c5e67
FF
3293Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
3294
3295 * values.c (unpack_long): Fix unpacking error for signed chars
3296 on hosts where the default character type is unsigned.
3297 * procfs.c (pr_flag_table, pr_why_table): Add some entries
3298 for newer SVR4 variants.
3299 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
3300 turn off trace inherit-on-fork flag to favor latest SVR4 method.
3301 * procfs.c (mappingflags): Add support for MA_PHYS
3302
ac88ca20
JG
3303Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
3304
03c93c66
JG
3305 * buildsym.c (read_struct_type): Avoid coredump when C++
3306 abbreviated type name is messed up. Reported by Joe Buck.
3307 FIXME, we need to determine whether GDB or GCC needs to be
3308 smarter to correctly locate this type name.
3309
ac88ca20
JG
3310 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
3311 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
3312 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
3313 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
3314 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
3315
cc221e76
FF
3316Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
3317
3318 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
3319 * symtab.h (current_source_symtab): Make extern
3320 * symtab.h (current_source_line): Make extern
3321 * inferior.h: Move all procfs.c prototypes to one place, add
3322 prototype for proc_signal_handling_change. Add prototypes for
3323 signal_stop_state, signal_print_state, and signal_pass_state.
3324 * inferior.h (stop_soon_quietly): Make extern
3325 * inferior.h (attach_flag): Make extern
3326 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
3327 * infrun.c (signal_stop_state, signal_print_state,
3328 signal_pass_state): New functions to query specific signal
3329 handling flags.
3330 * infrun.c (handle_command): Minor error message change, add
3331 NOTICE_SIGNAL_HANDLING_CHANGE.
3332 * procfs.c (open_proc_file): Remove iris specific reset of
3333 inherit-on-fork flag, moved to proc_set_exec_trap().
3334 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
3335 to reset inherit-on-fork flag, bash comment to GNU form.
3336 * procfs.c (proc_base_address, set_proc_siginfo,
3337 fetch_core_registers): Conform to code style.
3338 * procfs.c (signame.h): Include.
3339 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
3340 syscallname(), info_proc_syscalls()): New macros, tables, and
3341 functions to organize and report system call information.
3342 * procfs.c (saved_fltset, saved_trace, saved_sighold,
3343 saved_exitset, saved_entryset): Add to procinfo struct.
3344 * procfs.c (struct trans): Add.
3345 * procfs.c (pr_flag_table, pr_why_table, faults_table,
3346 siginfo_table, errno_table): Tables to translate numeric values
3347 to symbolic names and short descriptions.
3348 * procfs.c (signalname, info_proc_signals): Add function and
3349 prototype.
3350 * procfs.c (proc_info): Now info_proc.
3351 * procfs.c (proc_info_address_map): Now info_proc_mappings.
3352 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
3353 info_proc_faults, lookupname, lookupdesc, sigcodename,
3354 sigcodedesc): New functions.
3355 * procfs.c (proc_signal_handling_change): New function to set
3356 the trace flags based on the state of gdb's signal handling flags.
3357 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
3358 and remove code to do PIOCSTRACE ioctl.
3359 * procfs.c (attach, detach): Preserve and restore process flags
3360 using saved_* fields in procinfo struct.
3361 * procfs.c (attach): Call proc_signal_handling_change.
3362 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
3363 * procfs.c (proc_desc): Update for latest changes.
3364 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
3365 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
3366 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
3367
3368Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
3369
3370 * procfs.c (set_proc_siginfo): Add prototype and new function.
3371 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
3372 up inferior siginfo struct.
3373 * elfread.c (elf_symfile_read): Compute the relocation amount
3374 by subtracting off the address of the ".text" section.
3375 * solib.c: Add pointer to ".text" section to so_list struct.
3376 * solib.c (solib_map_sections): Initialize pointer to ".text"
3377 section in so_list struct.
3378 * solib.c (symbol_add_stub): Pass base address of ".text"
3379 section to symbol_file_add, rather than the load address of
3380 the shared library. On SunOS they are the same. On SVR4 they
3381 are not.
3382
3bec9cdd
SG
3383Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
3384
3385 * mipsread.c (parse_procedure): PDR.isym should get pointer to
3386 function name, not .gdbinfo. symbol.
3387
e360572c
JG
3388Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
3389
3390 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
3391
fad3fc94
SG
3392Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
3393
e360572c 3394 * Makefile.in (VERSION): 4.4.8
5e8fdb82 3395
fad3fc94
SG
3396 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
3397 commands in .cshrc/.profile won't get traced.
3398
3b0b9220
JG
3399Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
3400
3401 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
3402 * exec.c (build_section_table): Don't abort if no sections.
3403 * sparc-tdep.c (single_step): Lint.
3404 * utils.c (mrealloc): Handle realloc (0, size) case here.
3405
d1bb1d41
SG
3406Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
3407
f8b4aa8e
SG
3408 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
3409 opposed to m[ht]-*!
3410
9d4c62df
SG
3411 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
3412
d1bb1d41
SG
3413 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
3414 .gdbinfo. symbols are created. Move creation from parse_procedure
3415 to parse_symbol, where it is fairly easy to grow the symtab. This
3416 also fixes a symtab trashing bug on all mips-based systems.
3417 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
3418 needed anymore.
3419 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
3420 mips_extra_func_info, and all the PROC_xxx macros that look at it.
3421
d26b50b7
PB
3422Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
3423
3424 * c-exp.y: Add missing return type to yyparse() prototype.
3425
be772100
JG
3426Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
3427
3428 Create and use macros for iterating on symtabs, psymtabs, msymbols.
3429
3430 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
3431 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
3432 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
3433 (patch_opaque_types): Avoid dummy args and result.
3434 * objfiles.c (have_partial_symbols, have_full_symbols,
3435 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
3436 (iterate_over_objfiles, iterate_over_symtabs,
3437 iterate_over_psymtabs): Remove, clunky and slow.
3438 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
3439 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
3440 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
3441 dump_objfile): Remove dummy args and results. Move filename
3442 comparisons to callers.
3443 (printsyms_command, printpsyms_command, printmsyms_command,
3444 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
3445 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
3446 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
3447 list_symbols, make_symbol_completion_list): Replace explicit
3448 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
3449 Eliminate Dijkstra flag crap, break out of loops with gotos.
3450 (lookup_symtab_1): Protect '/' tests from short filenames.
3451 (cplus_mangled_symbol): Move inline into lookup_symbol.
3452 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
3453 (relocate_minimal_symbol): Move inline to vmap_symtab.
3454 (vmap_symtab): Replace iteration with ALL_OBJFILES,
3455 iterate_over_msymbols with ALL_MSYMBOLS.
3456
3457 Misc cleanup prior to release.
3458
3459 * Makefile.in (VERSION): Roll to 4.4.7.
3460 (HFILES): Add call-cmds.h.
3461 * call-cmds.h: New header for command fns called by other files.
3462 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
3463 (breakpoint_1): Remove unused type arg. Change callers.
3464
3465 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
3466 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
3467 * mipsread.c: Add prototypes for all static functions.
3468
3469 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
3470 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
3471 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
3472 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
3473 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
3474 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
3475 unused copy!
3476
3477 * buildsym.c (define_symbol): Handle global register variables
3478 (from Pierre Willard). Complain if register numbers are too large.
3479 * target.c (nomemory): Now that higher levels examine errno, give EIO.
3480 * tm-sparc.h: Don't #include <sun4/reg.h>.
3481 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
3482 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
3483
3484 * language.h: Avoid forward enum declaration.
3485 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
3486 config/sun4os5.mt: New host and target.
3487 * defs.h (errno): #include <errno.h> rather than assuming int.
3488 From Pierre Willard.
3489
3490 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
3491 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
3492 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
3493 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
3494 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
3495 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
3496 sparc-xdep.c, utils.c, value.h, values.c: Lint.
3497
3498Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
3499
3500 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
3501 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
3502 * language.h (enum exp_opcode): Avoid forward enum def.
3503 * main.c (define_command, user_defined_command): Lint.
3504 * mem-break.c, xcoffread.c: Lint.
3505 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
3506
1eeba686
PB
3507Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
3508
3509 * Merged in latest RS6000 diffs from Metin G. Ozisik.
3510 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
3511 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
3512 or IBM6000_TARGET as (approximately) appropriate.
3513
bf349b77
FF
3514Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
3515
3516 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
3517 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
3518 or not to try reading symbols from a mapped objfile. Plugs memory
3519 leak due to shared libraries generating no psymtabs or symtabs.
3520
c2e4669f
JG
3521Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
3522
3523 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
3524 * copying.awk: Lint. Make stronger warning at top of copying.c.
3525 * elfread.c (elf_symtab_read): Eliminate check of mainline.
3526 * gdbtypes.c (smash_to_*): Remove FIXME comments.
3527 (lookup_pointer_type): Add FIXME comment.
3528 * main.c (set_history_size_command): Disallow negative size.
3529 * partial-stab.h: Update copyright.
3530 * rs6000-tdep.c (skip_trampoline_code): Better comments.
3531
3532Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
3533
3534 * main.c (set_history_size_command): Negative size is error.
3535 (Reported by Peggy Fieland.)
3536
3624c875
FF
3537Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
3538
3539 * coffread.c (coff_symfile_init): Update comment.
3540 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
3541 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
3542 macros to access the dbx specific objfile information.
3543 * dbxread.c (symfile_string_table, symfile_string_table_size):
3544 Remove these local variables.
3545 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
3546 read_dbx_symtab): Remove the stringtab and stringtab_size params
3547 from the function prototypes, the function definition, and the
3548 function calls. These are now available via DBX_STRINGTAB and
3549 DBX_STRINGTAB_SIZE using the objfile pointer.
3550 * dbxread.c (dbx_symfile_read): Relocate addr before using as
3551 an arg to read_dbx_symtab.
3552 * dbxread.c (dbx_symfile_read): Remove code that free'd the
3553 stringtab and the dbx specific per-objfile private info.
3554 * dbxread.c (init_psymbol_list): Remove symbol count from passed
3555 args in prototype, function definition, and function calls. It is
3556 now available via the DBX_SYMCOUNT macro using the objfile
3557 pointer.
3558 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
3559 local instance of struct dbx_symfile_info and replace with DBX_*
3560 macros.
3561 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
3562 symfile_string_table and symfile_string_table_size.
3563 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
3564 symfile_string_table.
3565 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
3566 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
3567 stringtab size variables. Remove all code that used to reread
3568 the stringtab.
3569 * objfiles.c (allocate_objfile): Move calls to init_malloc()
3570 to prior to any calls to mmalloc for the objfile specific heap.
3571 * utils.c (init_malloc): Document the requirement that for each
3572 heap for which corruption checking is desired, that init_mmalloc
3573 must be called prior to any mmalloc calls on the heap.
3574
3575Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
3576
3577 * rs6000-pinsn.c: Make dis-assembly output more like
3578 other targets: Don't print instruction in hex before
3579 the assembly; use print_address to print out jump
3580 destinations.
3581
04f27ddc
PB
3582Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
3583
3584 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
3585 * cplus-dem.c: Support "Sc" meaning "signed char".
3586
88f36033
SG
3587Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
3588
3589 * configure.in: fix iris/iris3.
3590
5c71cf23
PB
3591Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
3592
3593 * command.c, main.c (various places): Use ctype.h macros
3594 (such as isupper(x)), instead of hard-wiring in ASCII-isms
3595 (such as (x >= 'A' && x <= 'Z')).
3596 (There are still more of these in other files.)
3597 * main.c (defined_command): Lower-case the user's
3598 new command before entering it. Needed because
3599 command lookup is case-insensitive (and also lower-cases).
3600 (Based on Metin's earlier patch.)
3601
fd2329d7
RP
3602Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
3603
3604 * config/irix4.mh: new file.
3605
4f301966
SG
3606Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
3607
0a22f63e
SG
3608 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
3609 time.
3610
3611 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 3612
4f301966
SG
3613 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
3614 when calling new_symbol.
3615 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
3616 current_objfile.
3617
5c8d3927
PB
3618Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
3619
3620 * config/rs6000.mh: Update (for Fred's new mmalloc)
3621 flags to disable use of GNU malloc/mmalloc.
3622 * munch: Change SYSV rule to allow .text before the label,
3623 as well as after, to work for AIX.
3624 * gdbtypes.h: Minor clarifiction.
3625
be1384b0
MT
3626Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
3627
3628 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
3629 continuation in yet another place (between method declarations).
3630
62a469e1
SG
3631Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
3632
3633 * mips-tdep.c: include symfile.h and objfiles.h to fix
3634 compilation errors.
3635
b3024b21
PB
3636Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
3637
3638 * valops.c (value_struct_elt_for_reference): Added 'offset'
3639 parameter to handle multiple inheritance.
3640 * eval.c, value.h: Update accordingly.
3641
5e2e79f8
FF
3642Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
3643
3644 * objfiles.h: New file
3645 * Makefile.in (HFILES): Add objfiles.h
3646 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
3647 main_scope_lowpc, main_scope_highpc.
3648 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
3649 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
3650 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
3651 xcoffread.c, : Include objfiles.h.
3652 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
3653 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
3654 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
3655 inside_entry_file() and logic changed appropriately.
3656 * blockframe.c (outside_startup_file): Renamed to
3657 inside_entry_file() and logic changed appropriately.
3658 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
3659 and logic changed to use per-objfile specific fields.
3660 * blockframe.c (inside_entry_scope): Renamed to
3661 inside_entry_func() and logic changed to use per-objfile specific
3662 fields.
3663 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
3664 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
3665 Remove extern decls.
3666 * symfile.c, symfile.h (entry_point): Remove extern decl.
3667 * coffread.c (coff_symfile_init): Common entry point init code
3668 moved to symfiles.c, call init_entry_point_info().
3669 * coffread.c (complete_symtab): Use new per-objfile entry info.
3670 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
3671 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
3672 info.
3673 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
3674 * defs.h (inside_entry_scope, outside_startup_file,
3675 inside_main_scope): Prototypes changed for renames to
3676 inside_entry_func, inside_entry_file, inside_main_func,
3677 respectively.
3678 * symfile.c (syms_from_objfile): Common entry point init code
3679 moved to init_entry_point_info() and call init_entry_point_info().
3680 * symfile.h (init_entry_point_info): Include prototype.
3681 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
3682 moved to symfiles.c and call init_entry_point_info().
3683 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
3684 main_scope_lowpc, main_scope_highpc): Remove extern decls.
3685 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
3686 objfile entry info.
3687 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
3688 works for the majority of targets.
3689 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
3690 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
3691 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
3692 Use default definition in frame.h.
3693 * frame.h (selected_frame_level): Make decl extern.
3694 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
3695 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
3696 * partial-stab.h: Use new per-objfile entry info.
3697 * symfile.h (struct objfile): Removed, moved to objfiles.h.
3698 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
3699 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
3700 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
3701 have_minimal_symbols): Prototypes moved to objfiles.h.
3702 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
3703 Macros moved to objfiles.h.
3704 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
3705
01be6913
PB
3706Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
3707
3708 More C++ improvements (pointers to members, qualified names).
3709 * c-exp.y: Support exp.type::name and exp->type::name
3710 syntaxes. (Unfortunately, doesn't work for static members.)
3711 * c-exp.y, eval.c: Make type::~type work better.
3712 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
3713 value_static_field by value_struct_elt_for_reference.
3714 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
3715 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
3716 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
3717 for OP_SCOPE operand; no point in it now that we use lazy
3718 reading of values, and use "reference to member" objects.
3719 * gdbtypes.h: Clarify comment.
3720 * valops.c: Change value_struct_elt_for_address to return
3721 a reference (or variable), rather than a pointer. Change
3722 the name to value_struct_elt_for_reference to reflect this.
3723 Returning a reference instead of a address provides a
3724 generalization, since we can use the routine for both
3725 class::name as well as &class::name.
3726 Also, recurse to handle multiple inheritance properly.
3727 * valprint.c: Moved code to print pointer-to-members
3728 to new function point_class_member. This allows a
3729 "reference-to-member" to be printed using the same code.
3730 * valprint.c (type_print_varspec_prefix): Avoid printing
3731 "struct " for domains of class-member types.
3732 * valops.c (search_struct_field): Inline code for simplified
3733 version of value_static_field (which can then be deleted).
3734 * value.h: Rename value_struct_elt_for_address to
3735 value_struct_elt_for_reference. Delete value_static_field.
3736 * values.c: Remove no longer used function value_static_field.
3737
80d68b1d
FF
3738Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
3739
3740 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
3741 elfread.c (coff_symfile_finish): Add function, prototype, and
3742 add to the xxxx_sym_fns struct for each file type. Also reformat
3743 the xxxx_sym_fns vector to a standard format and add comments.
3744 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
3745 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
3746 Pass pointer to struct objfile rather than pointer to sym_fns.
3747 Change references inside each function accordingly. Allocate any
3748 symbol file specific info in the per-objfile memory region.
3749 * dbxread.c (free_and_init_header_files): Break function into
3750 free_header_files(), called from dbx_symfile_finish(), and
3751 init_header_files(), called from dbx_new_init().
3752 * dbxread.c (dbx_new_init): Move deallocation things to new
3753 dbx_symfile_finish function.
3754 * elfread.c (elf_new_init): Call buildsym_new_init().
3755 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
3756 routine for the objfile before deallocating other stuff.
3757 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
3758 * symfile.h: Move struct sym_fns to before struct objfile def.
3759 Add sym_finish function pointer and change prototypes of other
3760 function pointers to reflect passing struct objfile pointer rather
3761 than struct sym_fns pointer.
3762 * symfile.c: Remove now obsolete symtab_fns pointer.
3763 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
3764 locates the correct sym_fns struct for the given objfile.
3765 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
3766 for better support of mapped symbol tables.
3767 * symfile.c (symbol_file_command): Remove obsolete code using
3768 symfile_fns.
3769 * symfile.h: Remove duplicate declarations for symfile_objfile,
3770 entry_point, and object_files.
3771 * target.c (target_info): Compare symfile_objfile to NULL.
3772 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
3773 aixcoff_symfile_finish().
3774
dc52fc71
FF
3775Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
3776
3777 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
3778 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
3779 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
3780
2cd99985
PB
3781Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
3782
3783 Some improvements to g++ debugging.
3784 * symtab.c (list_symbols): demangle before pattern matching.
3785 * symtab.c: Other fixes to improve handing of operators.
3786 * valprint.c (type_print_base): Fix test for constructor.
3787 * values.c (value_static_field): Allow evaluation of
3788 CLASS::METHOD, returning a function pointer.
3789
b0246b3b
FF
3790Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
3791
3792 * Makefile.in (VERSION): Roll 4.4.6.
3793 * exec.c (exec_file_command): Add code to ignore optional args
3794 passed in by file_command() for use in symbol_file_command().
3795 * main.c (main): Document -mapped and -readnow in help summary.
3796 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
3797 * objfiles.c (allocate_objfile): Filename arg removed. Changes
3798 to get filename from bfd with bfd_get_filename(). Test mapto
3799 against 0, not NULL. Use mstrsave() to make copy of filename.
3800 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
3801 arg.
3802 * remote-vx.c (vx_load_command, add_symbol_stub):
3803 Symbol_file_add() takes an additional arg.
3804 * solib.c (symbol_add_stub): Symbol_file_add() takes an
3805 additional arg.
3806 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
3807 changed to return a bfd not an objfile pointer.
3808 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
3809 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
3810 Change to eliminate local bfd and use symfile_bfd_open() plus
3811 allocate_objfile(). Add code to implement readnow option.
3812 * symfile.c (symbol_file_command): Changes to option handling,
3813 readnow functionality moved to symbol_file_add().
3814 * symfile.c (symfile_init): Eliminate local copy of bfd.
3815 * symfile.c (add_symbol_file_command): Changes to parse mapped
3816 and readnow options.
3817 * symfile.h (allocate_objfile): Arg removed from prototype.
3818 * symtab.h (symbol_file_add): Arg added to prototype.
3819 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
3820 arg.
3821
318bf84f
FF
3822Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
3823
3824 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 3825 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
3826 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
3827 directories searched for source files.
3828 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
3829 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
3830 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
3831 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
3832 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
3833 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
3834 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
3835 sbrk.c
3836 * Makefile.in (HFILES): Remove state.h
3837 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
3838 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
3839 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
3840 * Makefile.in (clean): Remove all object files.
3841 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
3842 * cplus-dem.c: Remove prototypes definitions that are now done in
3843 def.h.
3844 * dbxread.c (throughout): Change from using per-objfile
3845 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
3846 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
3847 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
3848 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
3849 * depend: Remove dependencies for state.o, state.h.
3850 * dwarfread.c: Add declaration for warning_pre_print.
3851 * dwarfread.c (dwarfwarn): Use warning_pre_print.
3852 * dwarfread.c (throughout): Change from using per-objfile
3853 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
3854 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
3855 use supplied objfile.
3856 * i386-xdep.c (print_387_status): Change to use warning() rather
3857 than printfs.
3858 * i387-tdep.c (print_387_control_word): Change to use warning()
3859 rather than printfs.
3860 * infrun.c (wait_for_inferior): Remove unreachable abort() call
3861 that some compilers grumble about.
3862 * language.c (throughout): Add declaration for warning_pre_print
3863 and using warning() instead of printfs.
3864 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
3865 * main.c (main): Add declaration for warning_pre_print and set it
3866 similarly to error_pre_print. Add declarations for
3867 mapped_symbol_files and readnow_symbol_files. Add appropriate
3868 definitions to long_options[].
3869 * minsyms.c: Trivial fix to comment.
3870 * objfiles.c (allocate_objfile): Substantially rewritten for
3871 using mapped symbol files.
3872 * objfiles.c (throughout): Change from using per-objfile
3873 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
3874 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
3875 * source.c (throughout): Change from using per-objfile
3876 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
3877 * source.c (open_source_file): Use mstrsave to save file name in
3878 mapped symbol region for objfile.
3879 * symfile.c: Remove include for state.h.
3880 include to local form.
3881 * symfile.c (symbol_file_add_digested): Remove.
3882 * symfile.c (symbol_file_add): Substantially rewritten for mapped
3883 symbol files.
3884 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
3885 from objfile structure. Add malloc descriptor pointer (md).
3886 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
3887 * symm-xdep.c (print_fpu_status): Use warning() rather than
3888 printfs.
3889 * symmisc.c (free_symtab_block): Now takes and uses current
3890 objfile pointer.
3891 * symmisc.c (throughout): Change from using per-objfile
3892 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
3893 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
3894 Sun compiler grumblings when PTR is char *.
3895 * symtab.c (lookup_symbol): Cast return value of iterate_over_
3896 msymbols() to correct pointer type.
3897 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
3898 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
3899 error always starts on a line of it's own.
3900 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
3901 Rewrite for new mapped malloc package use.
3902 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
3903 that don't want to use the mapped malloc package; pass arguments
3904 on to traditional malloc package functions.
3905 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
3906 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
3907 mrealloc, malloc, and realloc but get fatal error if runs out
3908 of memory.
3909 * utils.c (msavestring, mstrsave): Save a string in a specific
3910 mapped malloc region.
3911 * utils.c (print_spaces): Use xmalloc to get the buffer.
3912 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
3913 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
3914 * config/i386v4.mh: Insignificant reorganization.
3915
0750528a
FF
3916Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
3917
3918 * xcoffread.c: Only enable compilation of debugging functions
3919 if IBM6000 is defined. Fails to compile otherwise.
3920
4db3902a
RP
3921Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
3922
3923 * Makefile.in: pass MAKEINFO down on info.
3924
bec9fad9
JG
3925Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
3926
3927 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
3928 useless code, including an lseek to an uninitialized variable.
3929 Reported by Jim Williams <jimbo@wrs.com>.
3930
6730b139
PB
3931Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
3932
4db3902a
RP
3933 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
3934 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
3935 * minsyms.c, symfile.c: Changes that may be generally
3936 applicable, but are #ifdef IBM6000 for now.
3937 * rs6000-xdep.c: Fixed typo in comment.
3938 * rs6000-tdep.c: Non-substatial changes.
3939 * xoffread.c: The main change here is addition of some
3940 debugging functions.
3941 * xoffexec.c: More changes.
3942
3943 * xcoffread.c: Fixed two too-few-parameters bugs.
3944
6730b139
PB
3945 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
3946 to SOLIB_CREATE_INFERIOR_HOOK macro.
3947
a846ac55
FF
3948Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
3949
3950 * symfile.h: Add prototype for iterate_over_msymbols().
3951 * symtab.c (cplus_mangled_symbol): Add function.
3952 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
3953 iterate_over_msymbols to find demangled C++ symbol.
3954 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
3955 value to iterate_over_msymbols().
3956 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
3957 msymbols().
3958
3959Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
3960
3961 * Makefile.in: added check target.
3962
a1106a1e
JG
3963Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
3964
3965 * ecoff.c: Move to ../bfd/coff-msym.c.
3966 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
3967 * remote.c (): Add newline to initial +.
3968 (remote_resume): Mention how to cope with signals.
3969 (remote_interrupt): Add debug msg.
3970 (remote-wait): Implement new 'T' reply, which includes
3971 status, PC, and FP all in a single short message.
3972 (putpkt): Add further debugging of packet acks.
3973 * mipsread.c (fixup_symtab): Also swap RFD's.
3974 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 3975 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
3976 * mips-tdep.c (heuristic_proc_start): Avoid long delays
3977 for remote MIPS by limiting heuristic to 200 byte search.
3978 (heuristic_proc_desc): Byte-swapping.
3979 (mips_print_register): Cope with failure of
3980 read_relative_register_raw_bytes. Byte-swap integers for
3981 printing.
3982 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 3983
1170a046
SG
3984Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
3985
89f1a7df
SG
3986 * config.sub configure.in config/mh-irix4
3987 gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1170a046 3988 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
89f1a7df 3989 gdb/xm-irix4.h gdb/config/mt-irix3
1170a046
SG
3990 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
3991
d7eddc51
FF
3992Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
3993
3994 * defs.h, utils.c: xrealloc takes PTR as first arg.
3995 * defs.h: Reword confusing comment about ANSI prototypes.
3996 * defs.h: Some minor whitespace changes.
3997 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
3998 not NULL, which can be (void *).
3999 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
4000 * tm-i386v.h (SP_ARG0): Define
4001 * xm-sysv4.h: Back out of change for missing prototypes.
4002 * i386-tdep.c (get_longjmp_target): Add function.
4003
a846ac55
FF
4004Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
4005
4006 * Makefile.in: install man page too.
4007
d747e0af
MT
4008Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
4009
4010 * All GDB files that #include defs.h: Removed stdio.h.
4011 (defs.h): #include stdio.h.
4012
96743d3c
SC
4013Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4014
4015 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
4016 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
4017 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
4018 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
4019 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
4020 it before printing out the hex shape of an address.
4021
6c6afbb9
PB
4022Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
4023
bff1c97a
FF
4024 * rs6000-xdep.c (frame_initial_stack_address): Move
4025 code to set frame->cache_fsr into new separate function
4026 frame_get_cacahe_fsr. This allows fixing a fatal error.
4027 * xcoffexec.c: Turn previously suppressed error
4028 message back on, after cleaning up BFD.
4029
6c6afbb9
PB
4030 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
4031 printing of blank line, since it cases printing of an
4032 extra blank line. Is this intended? It does mess up
4033 gdb test suite.
4034 * defs.h: Put back declarations of malloc and realloc,
4035 but protected by #ifndef MALLOC_INCOMPATIBLE.
4036 * objfiles.c: Undo previous change: Use malloc/realloc
4037 for objfile malloc/realloc fields (but add a cast).
4038 * xcoffexec.c: Suppress an error message (for now).
4039
4040Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
4041
4042 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4043 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
4044 * buildsym.c: Use smash_to_pointer_type() to handle forward type
4045 references.
4046 * xcoffread.c: Modifications to C_DECL storage class handling, and
4047 introduction of an old smash_to_pointer_type() routine.
4048
4049 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4050 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
4051 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
4052 parameters have been modified.
4053
4054 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4055 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
4056 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
4057 and fetch_inferior_registers() always fetched all the registers
4058 resulting valid register values at hand all the time. Pushing a dummy
4059 frame did not require validating all register values first. After
4060 putting the above mechanism into action, we didn't have valid registers
4061 values always ready. Thus, all registers need to be fetched before
4062 pushing a dummy frame now.
4063
4064 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4065 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
4066 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
4067 the starting address (actual frame address) of a frame.
4068 * rs6000-tdep.c: modifications to function_frame_info() to see if
4069 function reserves a frame pointer register (alloca register)
4070 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
4071 FRAME_LOCALS_ADDRESS has been updated to support debugging of
4072 functions with alloca() calls.
4073
4b8333de
FF
4074Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
4075
4076 * xm-sysv4.h: Provide definitions/prototypes for host environment
4077 functions for which no definitions or prototypes are provided in
4078 any currently included gdb or host environment header files.
4079 For SVR4, this currently includes malloc and realloc, which cannot
4080 be portably prototyped in any gdb include file.
4081
4082Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
4083
4084 * buildsym.h: Remove obsolete variable file_stabs.
4085
4086 * Makefile.in: Move place where configure merges in host-
4087 and target-dependent fragments later, so the latter
4088 can override (say) GNU_MALLOC.
4089 * config/mh-rs6000: Use system malloc. Otherwise, I
4090 ended up with *two* incompatible versions of malloc
4091 (functions in libc would call the malloc in libc).
4092 I assume this is a shared library problem.
4093
4094 * remote.c: Fix (presumed) typo.
4095 * objfiles.c: Use xmalloc/xrealloc instead of
4096 malloc/realloc (since the latter are no longer declared).
4097
4098 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4099 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
4100 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
4101 handle individual registers.
4102 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
4103 correctly in case it wasn't cached yet. (A problem showed up
4104 after fetching individual registers.)
4105 * buildsym.c: Disable type_synonym_name's type name overwriting
4106 in cases it is unnecesary. rs6000 portation doesn't use
4107 type_synonym_name, and it used to nullify type names
4108 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
4109 type's name as soon as space for that type is allocated.
4110 * xcoffread.c: ignore a section's lineno information if it is
4111 not `.text'. (In rs6000 bfd portation integration, skipping over
4112 `.pad' sections are ignored since it was in machine independent
4113 part of the code. Thus, a problem of fake sections with invalid
4114 lineno information arised.)
4115
4116 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
4117 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
4118 * rs6000-tdep.c: make function_frame_info() work whether or not
4119 reading from a core file.
4120 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
4121
4122 * infrun.c. main.c, printcmd.c. symtab.c:
4123 More changes from IBM for rs6000.
4124
4125
818de002
PB
4126Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
4127
4128 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
4129 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
4130 Merge in changes (mostly from IBM) for RS6000.
4131 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
4132 More changes from IBM for RS6000. These are in machine-
4133 independent code, and probably could do with some cleaning
4134 up. The most questionable of these are #ifdef IBM6000.
4135 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
4136 to single_step() (for consistency with rs6000 and i860).
4137 * utils.c: Allow the 1st arg to xrealloc to be NULL
4138 (in which case do malloc). This removes the need for
4139 some tests in xcoff code (and perhaps other places?).
4140 * coffread.c: Removed variables last_source_file,
4141 type_vector, and type_vector_length as these are now
4142 defined by buildsym.[ch].
4143 * defs.h: Remove prototypes for malloc and realloc, since
4144 these should only be used to implement xmalloc and xrealloc,
4145 and they conflict with <stdlib.h> in AIX - where they
4146 return void* even when __STDC__ isn't defined. Sigh.
4147 * munch: Recognize *initialize* in data as well as text
4148 (AIX uses data). Also, incorporate a patch from Garrett
4149 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
4150 much more sensible, by only trying to match the name of
4151 the initialize_foo function, and not the junk before it.
4152
8537ba60
SG
4153Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
4154
4155 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
4156 unless symbol table indicates that something has changed.
4157
069bc454
JG
4158Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
4159
b543979c
JG
4160 * remote.c: Make it work for embedded MIPS. Increase buffer
4161 size, and use throughout. Round buffer size up if too many regs.
4162 Support baud rate setting and try for an 8-bit path. If
4163 interrupted while waiting for target, send a ^C down the wire.
4164 Avoid single-byte reads.
4165 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
4166 and NUM_REGS.
4167 * mips-xdep.h: Avoid the embedded regs when on Unix.
4168
d141f3e3
JG
4169 * mipsread.c: Byte-swap the symbol table structures, using
4170 routines from ecoff.c, to read a symbol table written in any
4171 of the four possible byte orders.
069bc454
JG
4172 * configure.in (mips-big-* target): Same as Sony News.
4173 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
4174 * ecoff.c: New file for symbol swapping routines.
4175
80ba48f5
SG
4176Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
4177
4178 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
4179 all-breakpoints' command.
4180 * (get_number): Allow users to enter negative breakpoint numbers.
4181 * (breakpoint_1): Reformat display of 'info break' to show new
4182 fields.
4183 * (create_longjmp_breakpoint, breakpoint_re_set,
4184 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
4185 symfile.c (syms_from_objfile): Re-do
4186 insertion of longjmp breakpoints. Move all code into
4187 breakpoint_re_set, and call that instead of
4188 create_longjmp_breakpoint in symfile.c.
4189
cba0d141
JG
4190Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
4191
4192 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
4193 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
4194 * symtab.c (find_pc_symtab): Handle having no objfiles.
4195 * infcmd.c: Fix comment.
4196 * objfiles.c (free_all_objfiles): Add.
4197 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
4198 * symfile.c (symbol_file_command): free all objfiles when
4199 specifying a new symbol file.
4200 (reread_symbols): Stat the file name, don't fstat the descriptor.
4201
a846ac55
FF
4202Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
4203
4204 * Makefile.in, configure.in: removed traces of namesubdir,
4205 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
4206 copyrights to '92, changed some from Cygnus to FSF.
4207
cba0d141
JG
4208Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
4209
4210 * dbxread.c (end_psymtab): Delete empty psymtabs.
4211 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
4212 * symfile.h (struct objfile): Add free_psymtabs.
4213
35318110
JG
4214Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
4215
47890ed7
JG
4216 * Makefile.in (VERSION): Roll to gdb-4.4.4.
4217
35318110
JG
4218 * symfile.c (symbol_file_command): strcmp => !strcmp.
4219 * breakpoint.h: Move prototypes to follow enum definition they need.
4220 * breakpoint.c, infrun.c: Lint.
4221 * printcmd.c: Use `enum enable' rather than `enum
4222 display_status'.
4223 * mipsread.c: First pass at making it compile with the new
4224 objfile changes. Probably seriously broken still, but it
4225 compiles. FIXME.
4226
30875e1c
SG
4227Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
4228
4229 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
4230 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
4231 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
4232 stepping (and nexting) through longjmp(). Also, cleanup
4233 breakpoint handling quite a bit by creating explicit breakpoint
4234 types instead of using magic breakpoint numbers.
4235 Makefile.in: Update version to 4.4.3
4236
021959e2
JG
4237Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
4238
93fe4e33
JG
4239 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
4240 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
4241 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
4242
021959e2
JG
4243 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
4244
4245 * minsyms.c (install_minimal_symbols): Add bunches to any
4246 existing minsyms in the objfile. Avoid extra mallocation
4247 by working directly in the obstack. Remove ignored `mainline' parm.
4248 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
4249 xcoffread.c: Change all callers.
4250 * FIXME: We should be able to eliminate MAINLINE from all the
4251 symbol readers now, with a small bit of work.
4252
4253 * valops.c, value.h: Lint.
4254 * remote-vx.c: Add missing break; statement. Bugfix by
4255 Michael Sclafani, <sclafani@src.dec.com>.
4256
bff1c97a
FF
4257Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
4258
4259 * Makefile.in (VERSION): Update version to 4.4.2
4260 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
4261 minsyms.c, mmap-alloc.c, mmap-sbrk.c
4262 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
4263 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
4264 mmap-alloc.o, mmap-sbrk.o
4265
4266 * altos-xdep.c: Minor whitespace change.
4267 * am29k-tdep.c (examine_prologue): Convert from misc function vector
4268 use to new minimal symbol table use.
4269 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
4270 * arm-xdep.c (store_inferior_registers): Returns void.
4271 * blockframe.c (get_pc_function_start, find_pc_partial_function):
4272 Convert from misc function vector use to new minimal symbol table use.
4273 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
4274 * breakpoint.c: Add prototypes for local functions.
4275 * breakpoint.c (catch_command_1): Change to static and remove unused
4276 local "pc".
4277 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
4278 * breakpoint.h: Change function decls to prototype form.
4279 * buildsym.c: Add prototypes for local functions.
4280 * buildsym.c: Moved hashname() function here from dbxread.c.
4281 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
4282 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
4283 * buildsym.c (dbx_alloc_type): Change to static.
4284 * buildsym.c (finish_block): Add objfile parameter.
4285 * buildsym.c (misc): Change symbol_obstack to objfile version.
4286 * buildsym.c (make_blockvector): Change to static.
4287 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
4288 * buildsym.c (compare_line_numbers): Change to static, args are const,
4289 cast args when used.
4290 * buildsym.c (start_symtab): Inline new_object_header_files() call.
4291 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
4292 and made static. Add objfile parameter.
4293 * buildsym.c (end_symtab): Simplify code using line table size.
4294 Realloc the linetable on the objfile symbol_obstack and copy there.
4295 * buildsym.c (scan_file_globals): Convert from misc function vector
4296 use to new minimal symbol use.
4297 * buildsym.c (define_symbol): Add objfile parameter. Make sure
4298 strings get allocated in objfile's symbol_obstack. Convert references
4299 to builtin types to lookup_fundamental_type().
4300 * buildsym.c (read_type): Make static, add objfile parameter, convert
4301 references to buildin types to lookup_fundamental_type().
4302 * buildsym.c (read_struct_type): Add objfile parameter.
4303 * buildsym.c (read_array_type): Make static, add objfile parameter.
4304 * buildsym.c (read_enum_type): Make static, add objfile parameter.
4305 * buildsym.c (read_huge_number): Make static.
4306 * buildsym.c (read_range_type): Make static, add objfile parameter,
4307 convert references to buildin types to lookup_fundamental_type ().
4308 * buildsym.c (read_args): Make static, add objfile parameter.
4309 * buildsym.h: Convert function decl's to prototype form.
4310 * c-exp.y: Add prototypes for local functions, convert uses of misc
4311 function vector to minimal symbol table. Reformat all builtin type
4312 initializations and pass a NULL objfile to init_type() for them.
4313 * coffread.c: Change context_stack ref's to coff_context_stack,
4314 add local function prototypes. Cast uses of xrealloc arg 1.
4315 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
4316 crafting a new type.
4317 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
4318 * coffread.c (finish_block): Change name to coff_finish_block.
4319 * coffread.c (make_blockvector): Add and use objfile parameter.
4320 * coffread.c (record_line): Change name to coff_record_line.
4321 * coffread.c (start_symtab): Change name to coff_start_symtab.
4322 * coffread.c (end_symtab): Change name to coff_end_symtab.
4323 * coffread.c (record_misc_function): Change name to record_minimal_
4324 symbol and change to minimal symbol table use from misc func tbl.
4325 * coffread.c (coff_symfile_read): Convert from misc function vector
4326 use to minimal symbol table use.
4327 * coffread.c (hashname): Remove; use common version in buildsym.c.
4328 * coffread.c (decode_base_type): Change references to builtin types
4329 to calls to lookup_fundamental_type().
4330 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
4331 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
4332 * command.c: Add prototypes for local functions.
4333 * command.c (add_cmd): Prototype the 'fun' parameter and use the
4334 appropriate member of the function union for that type.
4335 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
4336 ifdef out the function since it isn't currently used.
4337 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
4338 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
4339 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
4340 * command.c (help_cmd): Compare function pointer to NULL.
4341 * command.c (help_cmd_list): Compare function pointer to NULL.
4342 * command.c (lookup_cmd_1): Use correct member of function union.
4343 * command.c (undef_cmd_error): Make static.
4344 * command.c (complete_on_cmdlist): Use correct member of func union.
4345 * command.c (do_setshow_command): Use correct member of func union.
4346 * command.c (shell_escape): Convert rindex use to strrchr.
4347 * command.h (COMMAND_H): Define if already included.
4348 * command.h (cmd_list_element struct): Change 'function' to a union
4349 and prototype args. Prototype completer function.
4350 * command.h: Convert decl's to prototype form.
4351 * convex-xdep.c (store_inferior_registers): Returns void.
4352 * copying.c: Prototype local functions.
4353 * coredep.c: Minor whitespace change.
4354 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
4355 * cplus-dem.c: Prototype local functions.
4356 * dbxread.c (hashname): Remove; moved to buildsym.c.
4357 * dbxread.c (free_and_init_header_files): Make static.
4358 * dbxread.c: Add prototypes for local functions.
4359 * dbxread.c (new_object_header_files): Remove; inlined usages.
4360 * dbxread.c (xrealloc usages): Cast args.
4361 * dbxread.c (record_misc_function): Change to record_minimal_symbol
4362 and change usages accordingly.
4363 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
4364 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
4365 * dbxread.c (dbx_next_symbol_text): Make static.
4366 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
4367 * dbxread.c (init_bincl_list): Add and use objfile parameter.
4368 * dbxread.c (free_bincl_list): Add and use objfile parameter.
4369 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
4370 * dbxread.c (end_psymtab): Convert to use per-objfile data.
4371 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
4372 prototypes.
4373 * dwarfread.c (record_misc_function): Change name to record_minimal_
4374 symbol and use minimal symbol table throughout.
4375 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
4376 * dwarfread.c: Convert all references to builtin types to use the new
4377 lookup_fundamental_type function.
4378 * dwarfread.c (read_enumeration): Add and use objfile parameter.
4379 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
4380 types.
4381 * elfread.c (record_misc_function): Convert to use record_minimal_
4382 symbol.
4383 * elfread.c (elf_symtab_read): Add objfile parameter.
4384 * eval.c: Add prototypes for local functions and move some decls
4385 around to accomodate prototypes.
4386 * expprint.c: Add prototypes for local functions. Change references
4387 to misc function vector to minimal symbol table.
4388 * findvar.c (read_memory usages): Cast args.
4389 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
4390 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
4391 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
4392 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
4393 * gould-xdep.c: Minor whitespace change.
4394 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
4395 * hp300ux-xdep.c (store_inferior_registers): Returns void.
4396 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
4397 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
4398 * i386-tdep.c: Add prototypes for local functions.
4399 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
4400 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
4401 that defaulted to int.
4402 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
4403 i386_push_dummy_frame): Returns void.
4404 * i386-xdep.c (i386_register_u_addr): Declare params that default to
4405 int and explicitly declare return type as int.
4406 * i387-tdep.c: Minor formatting changes.
4407 * i960-tdep.c (leafproc_return): Convert from misc function vector
4408 use to minimal symbol table use.
4409 * infcmd.c: Add prototypes for local functions.
4410 * infcmd.c (continue_command, until_next_command, until_command,
4411 path_info, path_command): Make static.
4412 * infcmd.c (step_1, until_next_command): Convert from misc func
4413 vector to minimal symbol table use.
4414 * inflow.c: Add prototypes for local functions.
4415 * infptrace.c (store_inferior_registers): Returns void, not int.
4416 * language.c (_initialize_language): Use proper member of function
4417 union.
4418 * m2-exp.y: Add prototypes for local functions, convert misc function
4419 vector uses to minimal symbol table uses.
4420 * m2-exp.y (make_qualname, yyerror): Make static.
4421 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
4422 * m68k-pinsn.c: Add prototypes for local functions.
4423 * m68k-pinsn.c (print_insn): Cast args to read_memory.
4424 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
4425 * m68k-stub.c: Add prototypes.
4426 * m88k-pinsn.c (sprint_address): Convert from misc function vector
4427 use to minimal symbol table use.
4428 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
4429 * m88k-xdep.c (store_inferior_registers): Returns void.
4430 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
4431 * mach386-xdep.c (store_inferior_registers): Returns void.
4432 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
4433 * main.c: Add prototypes for local functions.
4434 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
4435 longjmp() result to (NORETURN void).
4436 * main.c (catch_errors): Prototype the 'func' parameter.
4437 * main.c (disconnect, stop_sig, do_nothin, float_handler):
4438 Takes an unused arg.
4439 * main.c (execute_command): Call the right member of the func union.
4440 * main.c (command_loop_marker, symbol_completion_function,
4441 command_loop): Make static.
4442 * main.c (command_line_input): Make linelength unsigned, cast arg
4443 to command_line_input().
4444 * main.c (add_info, add_com): Prototype the 'fun' parameter.
4445 * main.c (initialize_main): Call right member of function union.
4446 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
4447 * mem-break.c: Include symtab.h
4448 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
4449 * mips-xdep.c (store_inferior_registers): Returns void.
4450 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
4451 use to minimal symbol table use.
4452 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
4453 version.
4454 * mipsread.c (make_type): Remove, convert usages to init_type.
4455 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
4456 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
4457 vector use to minimal symbol table use.
4458 * parse.c: Add prototypes for local functions.
4459 * parse.c (xrealloc usages): Cast args.
4460 * parse.c (prefixify_expression, length_of_subexp): Make static.
4461 * parser-defs.h (PARSER_DEFS_H): Define when first included.
4462 * parser-defs.h: Convert function decls to prototype form.
4463 * partial-stab.h: Convert from misc function vector use to new minimal
4464 symbol table use.
4465 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
4466 the per-objfile copies.
4467 * printcmd.c: Add prototypes for local functions. Move some struct
4468 definitions around to accomodate prototypes.
4469 * printcmd.c (decode_format): Make static, change args oformat and
4470 osize to int from char.
4471 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
4472 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
4473 * printcmd.c (print_address_symbolic): Convert from misc function
4474 vector use to minimal symbol table use.
4475 * printcmd.c (address_info): Convert from misc function vector use
4476 to minimal symbol table use.
4477 * printcmd.c (delete_display, enable_display, disable_display_command):
4478 Make static.
b52373a2 4479 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
4480 * procfs.c (fetch_core_registers): Add unused param reg_addr.
4481 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
4482 * pyr-xdep.c (store_inferior_registers): Returns void.
4483 * remote-mm.c (mm_load): symbol_file_add return value unused.
4484 * remote-nindy.c: Minor format change.
4485 * remote-vx.c (vx_load_command): symbol_file_add result unused.
4486 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
4487 * rs6000-xdep.c (store_inferior_registers): Returns void.
4488 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
4489 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
4490 vector use to minimal symbol table use.
4491 * solib.c: Add prototypes for local functions.
4492 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
4493 function vector use to minimal symbol table use.
b52373a2 4494 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
4495 * solib.c (find_solib, shared_library_command): Make static
4496 * solib.c (read_memory, write_memory usages): Cast args.
4497 * solib.c (special_symbol_handling): Add function
4498 * source.c: Add prototypes for local functions.
4499 * source.c (select_source_symtab): Convert to scan objfiles.
4500 * source.c (open_source_file): Make static.
4501 * source.c (xrealloc usages): Cast args.
4502 * source.c (source_line_charpos): ifdef out, unused.
4503 * source.c (get_filename_and_charpos): Make static.
4504 * stack.c: Add prototypes for local functions.
4505 * stack.c (print_frame_info, frame_info): Convert from misc function
4506 vector use to minimal symbol table use.
4507 * symfile.c: Add prototypes for local functions.
4508 * symfile.c (compare_symbols): Make args const PTR's.
4509 * symfile.c (compare_psymbols, sort_pst_symbols) add.
4510 * symfile.c (sort_all_symtab_syms): Scan objfile list.
4511 * symfile.c (obsavestring): Add objfile parameter.
4512 * symfile.c (init_misc_bunches, prim_record_misc_function,
4513 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
4514 sort_misc_function_vector, compact_misc_function_vector): Remove
4515 * symfile.c (symbol_file_add_digested): Add function.
4516 * symfile.c (symbol_file_add): Returns struct objfile *.
4517 * symfile.c (symbol_file_command): Modify for state file use.
4518 * symfile.c (symfile_open): Add parameter "dumpable".
4519 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
4520 * symfile.c (load_command, add_symbol_file_command): Make static.
4521 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
4522 * symfile.c (rindex usages): Converted to strrchr.
4523 * symfile.c (allocate_psymtab): New
4524 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
4525 converted to minimal symbol table usage, but no obvious conversion.
4526 * symfile.c (free_all_symtabs): Remove.
4527 * symfile.c (_initialize_symfile): Use per-objfile info.
4528 * symfile.h: Rework the objfile structure to add per-objfile data
4529 objects (psymbol_obstack, symbol_obstack, type_obstack,
4530 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
4531 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
4532 Add prototypes to function declarations.
4533 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
4534 function vector usage to minimal symbol table usage.
4535 * symmisc.c (DEV_TTY): Define if not defined.
4536 * symmisc.c: Add local function prototypes.
4537 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
4538 printpsyms_command, print_objfiles, print_objfiles_command):
4539 Rework to use iterate_over_*
4540 * symtab.c: Add prototypes for local functions.
4541 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
4542 * symtab.c (lookup_partial_symtab): Scan through objfiles.
4543 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
4544 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
4545 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
4546 lookup_reference_type, lookup_member_type, allocate_stub_method,
4547 check_stub_method, create_array_type, smash_to_member_type,):
4548 Moved to gdbtypes.c
4549 * symtab.c (lookup_symbol): Some args are const.
4550 * symtab.h: All type related defs and structs moved to gdbtypes.h
4551 * symtab.h: Convert decls to prototypes.
4552 * target.c (noprocess): Make static.
4553 * target.h: Change decl's to prototypes.
4554 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
4555 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
4556 * utils.c (_initialize_utils): Use correct member of function union.
4557 * valarith.c: include gdbtypes.h
4558 * valops.c: include gdbtypes.h, add prototypes for local functions.
4559 * valops.c (value_push, value_arg_push, find_function_addr):
4560 Make static.
4561 * valops.c (value_string): Convert from misc function vector use
4562 to minimal symbol table use.
4563 * valops.c (check_field_in): Make arg const.
4564 * valprint.c: Add prototypes for local functions.
4565 * valprint.c (print_string): Make static
4566 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
4567 * values.c: Add prototypes for local functions.
4568 * values.c (value_headof): Convert from misc function vector to
4569 minimal symbol table.
4570 * xcoffexec.c: Add prototypes for local functions.
4571 * xcoffexec.c (exec_close, file_command, add_to_section_table):
4572 Make static.
4573 * xcoffexec.c (relocate_minimal_symbol): Add.
4574 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
4575 * xcoffread.c: Add prototypes for local functions.
4576 * xcoffread.c (sort_syms): Convert to scan objfiles.
4577 * xcoffread.c (read_xcoff_symtab): Make static.
4578 * xcoffread.c (various): Replace references to builtin types with
4579 calls to lookup_fundamental_type. Replace references to symbol_obstack
4580 and psymbol_obstack with pointers to the per-objfile copies.
4581 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
4582 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
4583 Make static.
4584 * xcoffread.c (init_stringtab): Add objfile parameter.
4585 * gdbtypes.c: New file
4586 * minsyms.c: New file
4587 * mmap-alloc.c: New file
4588 * mmap-sbrk.c: New file
4589 * objfiles.c: New file
4590 * state.c: New file
4591 * state.h: New file
4592
021959e2
JG
4593Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
4594
4595 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
4596 will make ChangeLog entries for all of them. Update VERSION
4597 to 4.4.2.
021959e2 4598
7919c3ed
JG
4599Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
4600
4601 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
4602 into solib.h.
4603 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
4604 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
4605 value.h: Prototypes for static functions; lint.
4606 * gdbtypes.h: Empty file to ease transition.
4607
75af490b
JG
4608Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
4609
4610 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
4611 inferior.h, language.h, signame.h, target.h, terminal.h,
4612 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
4613 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
4614 Lint.
4615 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
4616 signame.c, sparc-xdep.c: Prototypes for all static functions.
4617 Lint.
4618 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
4619 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
4620 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
4621 Remove to_call_function and target_call_function, since it
4622 always calls the same thing (call_function_by_hand).
4623 * core.c, exec.c, solib.c: Rename target_ops sections =>
4624 to_sections, etc.
4625 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
4626 target.h: target_kill takes no args.
4627 * language.c (language_info): Scaffolding to allow briefer
4628 messages when the current language changes. FIXME.
4629 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
4630 complaints about volatile functions.
4631 * xm-sysv4.h (HAVE_MMAP): Define.
4632
4633Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
4634
4635 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
4636 to make prototypes for all functions declared here.
4637 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
4638 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
4639 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
4640 * ieee-float.h: Use PARAMS for prototypes; make some params const.
4641 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
4642 * m2-exp.y: Remove unused CONST; Rename OR and AND.
4643 * utils.c: Avoid declaring malloc and realloc. Lint.
4644 (request_quit): Accept signal-number parameter.
4645
af213624
FF
4646Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
4647
9e4c1921
FF
4648 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
4649 DIE's. Add new function read_tag_pointer_type() to read them.
4650
af213624
FF
4651 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
4652 When creating a new user defined type, check to see if a partial
4653 type already exists, and if so, bash it to fit.
4654
be8303da
JG
4655Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
4656
4657 * coffread.c (decode_base_type): Pass long, not union.
4658 Fix by Eric Valette, ev@chorus.fr.
4659
d35bf52d
FF
4660Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
4661
4662 * elfread.c (elf_symtab_read): Fix code to correctly track
4663 changes in bfd for absolute symbols.
4664
5b620e75
SG
4665Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
4666
4667 * xm-vaxbsd.h: Close off comment.
4668
0a663e9e
FF
4669Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
4670
4671 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
4672
4673Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
4674
4675 * mips-tdep.c (mips_print_registers): Print correct register
4676 number for double pseudo-registers.
4677
ef9b1bc9
JG
4678Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
4679
256269fc
JG
4680 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
4681 in the op$::OPERATOR. case. From Steven McCanne,
4682 <mccanne@horse.ee.lbl.gov>.
4683
ef9b1bc9
JG
4684 * exec.c (set_section_name): Pass arg to exec_files_info;
4685 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
4686
195853fc
JG
4687Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
4688
4689 * main.c (print_gdb_version): Copyright msg: only this year.
4690 (cd_command): Avoid changing current_directory on error.
4691
ee17fd34
PB
4692Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
4693
4694 * mipsread.c (parse_partial_symbols): Handle dependencies
4695 between partial symbol tables (when not doing stabs-in-ecoff).
4696 (This used to be handled by parse_fdr, but parse_fdr was
4697 incompatible with handling stabs-in-ecoff, so the code
4698 was re-written to not use parse_fdr. Unfortunately,
4699 the logic to handle dependencies was overlooked.)
4700
1f46923f
SC
4701Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
4702
4703 * coffread.c (read_enum_type): Use the size of a target int when
4704 describing enum.
4705 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
4706 of target int.
4707 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
4708 * symtab.c (lookup_reference_type, lookup_ptr_type): use
4709 TARGET_PTR_BIT to determine size of a pointer
4710 * values.c (unpack_long): when unpacking a REF or a PTR don't
4711 assume the size of the type.
4712
778c358d
JG
4713Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
4714
4715 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
4716 looking at its members. Improve guess between struct and union,
4717 only assuming union if multiple members have offsets of zero.
4718
bd49ef36
PB
4719Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
4720
4721 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
4722 (This is just for clarity - and one day permitting us to
4723 change FP0_REGNUM from 38 to 32, which would make more sense.)
4724 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
4725 register numbers in stabs-in-ecoff get handled correctly.
4726
4727Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
4728
4729 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
4730 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
4731 into BSD and Ultrix.
4732
96499e96
JG
4733Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
4734
4735 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
4736
98f03b91
SG
4737Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
4738
dafe57bc 4739 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
4740 * main.c (print_gdb_version): Update copyright notice.
4741
4742Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
4743
4744 * mipsread.c: Prepend "struct " to the names of structure
4745 types, and similarly for enums and unions. (This used
4746 to be done, but got lost in the re-write to "guess" the
4747 difference between enum/struct/union.)
4748 Also, guess that a tag is an enum if the first member
4749 has type btNil.
4750
3671f1fd
SG
4751Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
4752
4753 * xm-vax.h: #ifndef ultrix around #include of endian.h and
4754 limits.h (sigh).
4755
0c6efbcc
JG
4756Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
4757
ee7270cd
JG
4758 * Projects: Patching executables is done.
4759 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 4760 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 4761
4a1dcb7f
JG
4762 * symfile.c (reread_symbols): Whenever we reread one object
4763 file's symbols, we must restart the scan, because the object_files
4764 chain has been permuted.
4765
0c6efbcc
JG
4766 * exec.c (exec_files_info): Split out into print_section_info.
4767 Print BFD filename of each section if it's not the default one.
4768 * core.c (core_files_info): Call print_section_info.
4769
4770 * xm-vax.h: Include a few system header files whose definitions
4771 must precede defs.h.
4772 * language.c, language.h: Make some things const.
4773 * expression.h, main.c: const spreads like ooze.
4774
4775 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
4776 since BREAKPOINT values can be >0x80.
4777
d58ea996
SG
4778Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
4779
4780 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
4781
0c6efbcc
JG
4782Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
4783
4784 * sparc-pinsn.c: Remove kludge for preferring architectures.
4785 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
4786 and forever. Add `add' instruction to the set that get checked
4787 for a preceding `sethi' in order to print an absolute address.
4788 Corresponding changes in ../include/opcode/sparc.h needed
4789 to eliminate garbage instructions.
4790
d4ea2aba
PB
4791Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
4792
4793 * mipsread.c (parse_partial_symbols): Make sure partial
4794 symbols are created for external symbols (as used to be
4795 the case). This is a bit of a pain with the mips-coff.
4796 It uses a table which points to all of the external
4797 symbols belonging to a particular FDR or psymtab.
4798 Once we've generated this table, we might as well save
4799 it, and then use it in psymtab_to_symtab_1 to find
4800 the symbols to pass to parse_external().
4801 * symfile.c, symfile.c: New function start_psymtab_common
4802 to share the common parts of allocating a new psymtab
4803 for dbxread, mipsread (and later dwarfread). Its code
4804 was pulled out from start_psymtab in dbxread.c.
4805 * dbxread.c (start_psymtab): Use start_psymtab_common().
4806
4807 * valprint.c (val_print): If there is an error when trying
4808 to print a string, check to see if there really is a problem
4809 by reading just one character. If that works, assume
4810 things are ok.
4811
05151637
SG
4812Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
4813
4814 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
4815 cypress, v8 mnemonics in that order.
4816
4a074bea
PB
4817Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
4818
4819 * sparc-pinsn.c: Put the qsort() back in.
4820
c55e6167 4821Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 4822
eae1a261
JG
4823 * findvar.c (read_register, write_register): Handle machines
4824 where REGISTER_TYPE is not the same size as "int".
4825
c55e6167 4826 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 4827
c55e6167
JG
4828 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
4829 offset to process_one_symbol.
4830 (process_one_symbol): Take new offset parameter. Add it into
4831 appropriate symbol types to relocate symbols to loaded addresses.
4832 Handle all possible symbol types, and complain() about types that
4833 we don't expect to see.
4834 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
4835 process_one_symbol (FIXME, should pass real offset).
1aa560b2 4836
c55e6167
JG
4837 Misc bugfixes:
4838
4839 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
4840 sal's PC value.
4841 (set_breakpoint, break_command_1, until_break_command,
4842 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
4843 * symtab.h (resolve_sal_pc): Declare.
4844 * infcmd.c (jump_command): Use resolve_sal_pc.
4845
4cc9f7e2 4846 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
4847
4848 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 4849
5a4e7215
JG
4850 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
4851
3818ed33
JG
4852 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
4853 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
4854 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
4855
c55e6167
JG
4856Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
4857
4858 * dbxread.c (process_one_symbol): Make a first cut at handling
4859 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
4860
4861 * symtab.c (find_pc_line): Fix stepping into and out of #included
4862 files.
4863
71f49876
SG
4864Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
4865
4866 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
4867 no longer any need to copy ../include/opcode/* into gdb.
4868
fd8db897
JG
4869Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
4870
4871 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
4872
24b2fbdc
PB
4873Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
4874
4875 * valprint.c (type_print_base, type_print_method_args):
4876 Print C++ constructor methods without bogus "return type."
4877
cdb90e99
FF
4878Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
4879
4880 * infptrace.c (child_xfer_memory): Parameter "target" should
4881 be a pointer to a structure, not the entire structure.
4882
1b07e406
FF
4883Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
4884
4885 * depend: Convert the couple of references to ansidecl.h that
4886 used the local gdb version to use the ../include version.
4887
9a1ae235
FF
4888Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
4889
f66f459f
FF
4890 * procfs.c
4891 (child_xfer_memory): Takes pointer to a struct, not entire struct.
4892 (inferior_proc_init): Fix non-ANSI version of args.
4893 (attach): Call print_sys_errmsg with correct number of args.
4894 (mappingflags): Make static, does not need to be global.
4895
fc1f8646
FF
4896 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
4897 not the entire struct itself.
4898
1b7a420e
FF
4899 * valops.c (value_assign): Cast some args to modify_field() and
4900 {read,write}_register_bytes() correctly.
4901
9a1ae235
FF
4902 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
4903
99140c31
FF
4904 * Makefile.in (MALLOCSRC): Removed reference to removed local
4905 copy of ansidecl.h.
4906
4907 * dwarfread.c (list_in_scope): Needs an initial value, use file
4908 scope.
4909
9a1ae235
FF
4910Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
4911
4912 * main.c (main): Make option_index local to keep new getopt happy.
4913 main.c, solib.c, Makefile.in: Update copyright notices.
4914
0eb0a820
MT
4915Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
4916
4917 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
4918
313085cb
SG
4919Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
4920
4921 * Makefile.in (HFILES): Add partial-stab.h.
4922
be9a2362
FF
4923Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
4924
24e7d5ba
JG
4925 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
4926 New files for stratus. Not complete enough to actually build
4927 on the Stratus machine; that awaits copyright assignment for
4928 i860 changes.
be9a2362
FF
4929
4930 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
4931 for getting custom flags into CFLAGS when doing makes.
4932
4933 * configure.in: Add config information for stratus.
4934
cdce29ee
FF
4935Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
4936
4937 * dbxread.c (process_one_symbol): Pass address of structure
4938 to complain(), rather than the whole structure.
4939
7f435241
FF
4940Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
4941
4942 * solib.c (solib_add_common_symbols): Only compile in when not
4943 using SVR4 style shared libraries.
4944
a5bd5ba6
FF
4945Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
4946
4947 * dwarfread.c (locval): Add offreg flag to indicate location
4948 values that are computed off a base register.
4949
4950 * dwarfread.c (new_symbol): Rework TAG_global_variable and
4951 TAG_local_variable cases to account for static variables
4952 within function scopes.
4953
7e97eb28
SG
4954Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
4955
8c3d2a53
SG
4956 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
4957 doesn't exist on some systems.
4958
5e746644
SG
4959 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
4960 nexting over recursive function calls.
4961
d261ece7
SG
4962 * target.c (target_read_string): Create this routine to read null
4963 terminated strings from the target. It deals with running off the
4964 end of memory elegantly as well. solib.c (find_solib): Use
4965 target_read_string() to avoid problems with running off the end of
4966 memory.
4967
7e97eb28
SG
4968 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
4969 that reference pgrp_inferior.
4970
0cf9329b
PB
4971Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
4972
4973 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
4974 mips-tfile has been hacked to act more "traditionally."
4975 * dbxread.c: Fixed typo in comment.
4976
488d2691
PB
4977Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
4978
4979 * mips-tdep.c (mips_skip_prologue): Add some number of
4980 'sw' instructions before 'addiu' adjusts the stack.
4981
4d315a07
FF
4982Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
4983
4984 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
4985 freescope, buildblock closescope, record_line, add_symbol_to_list,
4986 gatherblocks, make_blockvector): Extensive changes to switch
4987 to generic symbol table building code in buildsym.c. Remove
4988 scope tree structures and functions, symbol table building
4989 functions, and lots of other small changes.
4990
4991 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
4992 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
4993
4994Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
4995
4996 * buildsym.c (cleanup_undefined_types): Add support for enums.
4997 This fixes the 'GDB internal error. cleanup_undefined_types with
4998 bad type' problem.
4999
5000Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
5001
5002 * dbxread.c: detect gcc2 compilations.
5003
1a4d253c
JG
5004Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
5005
5006 * sparc-pinsn.c: Rename bitfields that overlap with macro names
5007 in ../include/opcode/sparc.h.
5008
1d4c28c5
FF
5009Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
5010
5011 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
5012 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
5013 to reflect actual locations of opcode files, so TAGS target will
5014 be buildable.
5015
5016 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
5017
5018 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
5019 code.
5020
5021 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
5022 dereferencing to access the correct elements.
5023
5024 * valops.c (value_addr): Declare return type of external func
5025 value_copy().
5026
5027 * xcoffread.c: Undefine next_symbol_text before redefining it.
5028
fd8db897 5029For older changes see ChangeLog-9091
bd5635a1
RP
5030\f
5031Local Variables:
5032mode: indented-text
5033left-margin: 8
5034fill-column: 74
5035version-control: never
5036End:
This page took 0.441033 seconds and 4 git commands to generate.