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