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