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