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