Lint
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
2
3 * valops.c (value_assign): Lint, by Pierre Willard.
4
5 Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
6
7 * coredep.c (fetch_core_registers): Remove premature warning,
8 which triggers on DECstation even though all regs are accessible.
9
10 * m68k-pinsn.c (print_insn_arg): Use new macros to get
11 sign-extension of instruction fields even on unsigned-char hosts.
12 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
13
14 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
15 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
16 since they define the target, not the host.
17 * m88k-pinsn.c: Fix typo.
18
19 Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
20
21 * valarith.c (value_zerop): -0.0 is still zero.
22 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
23 Patches by Paul Eggert <eggert@twinsun.com>.
24
25 Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
26
27 * alldeps.mak, depend: re-make to account for ser-*.c.
28
29 Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
30
31 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
32 disconnecting from controlling terminal, to avoid gdb hanging
33 on SVR4. Fixes bug reported by Oliver Okrongli.
34 * procfs.c (PROC_NAME_FMT): Change format to match default used
35 by system, as suggested by Oliver Okrongli.
36 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
37 bug fix from Brent Townshend (bst%tt@cam.ORG).
38 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
39 by turlais@rechser.total.fr.
40 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
41 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
42 * objfiles.h (unlink_objfile): Add prototype.
43 * objfiles.c (unlink_objfile): Add function.
44 * objfiles.c (free_objfile): Call unlink_objfile.
45 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
46 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
47 Also, discard old possibly bogus sf struct.
48 * symfile.c (symbol_file_add): Call init_entry_point_info() and
49 find_sym_fns() for remapped symbol files, in case of any changes
50 since the last mapping.
51
52 Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
53
54 * findvar.c (read_relative_register_raw_bytes): use the raw size
55 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
56
57 Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
58
59 Changes to support GDB running on DOS using GO32 and H8 support
60
61 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
62 allowing hosts with different text and binary file formats to
63 work.
64 * coffread.c (read_coff_symtab): changed calling convention and
65 operation - now it opens its own file with FOPEN_RB rather than
66 duping and fdopening the provided handle.
67 * dbxread.c, cplus-dem.c: #include mangling.
68 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
69 binary files oring in the right bit.
70 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
71 * remote-hms.c: cleanup to use the new remote serial stuff
72 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
73 independent remote terminal I/O.
74 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
75 * source.c (openp): fix off by one problem removing / - can now
76 open a source file in the root directory with DOS.
77 * values.c (value_as_pointer): remove bogus address bits from
78 long. (unpack_long): unpack into unsigned long/short if pointer.
79
80 Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
81
82 * infrun.c (child_attach): Don't allow gdb to attach to itself.
83 It gets permanently stuck in many OSes.
84 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
85 to printf_filtered.
86 * breakpoint.c: Improve help text for info breakpoints.
87
88 Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
89
90 * README: Add pointer to internals doc, and describe reading
91 info files.
92 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
93 * symtab.c (output_source_filename): Remove old glop for wrapping
94 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
95
96 Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
97
98 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
99 * munch: Add sort -u to avoid duplications.
100 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
101 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
102
103 Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
104
105 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
106 avoid infinite loops while demangling bogus mangled names.
107 * valprint.c (type_print_base): Minor fix for GNU style guide
108 conformance.
109
110 Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
111
112 * Makefile.in (VERSION): Bump to 4.5.3
113 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
114 * Makefile.in (demangle): New target to create standalone
115 demangler with same code and options as internal demangler.
116 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
117 to support ARM style and Lucid style demangling, improve
118 maintainability, fix several demangling bugs. More changes
119 to follow.
120 * defs.h (strstr): Add ANSI compatible prototype.
121 * valprint.c (type_print_1): Demangle using ansi option.
122 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
123
124 Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
125
126 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
127 first two sections.
128
129 Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
130
131 * mipsread.c (parse_procedure): Return rather than using
132 uninitialized variable 'b'.
133
134 Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
135
136 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
137 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
138 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
139 relative to each source file.
140
141 Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
142
143 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
144 recursions.
145
146 Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
147
148 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
149 * am29k-tdep.c: Update to latest code from AMD.
150 (get_saved_register) don't crap out if no frame.
151 * remote-udi.c: Set/clear inferior_pid as appropriate.
152 (udi_open) call target_preopen, don't close fd 0!!!, clean up
153 error handling. Fixup end-of-debugging messages.
154 (udi_fetch_registers) clean up big time, mainly don't multiply
155 register_valid indices by 4, and use proper Offset when reading
156 gr96-gr127. (udi_store_registers) general cleanup.
157 (fetch_register) cleanup, simplify. (regnum_to_srnum)
158 INT_REGNUM->INTE_REGNUM.
159 * tm-29k.h: Upgrade to latest code from AMD.
160 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
161 (UDIConnect) Clean up error processing (like, don't do exit() if
162 execlp fails), make code restartable, make more attractive.
163 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
164 otherwise.
165
166 Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
167
168 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
169 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
170 from former to latter.
171
172 Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
173
174 * cplus-dem.c (do_args): Handle void args the same as others.
175 * objfiles.c (free_objfile): Only try to unmap files when
176 reusable objfiles are supported.
177 * valprint.c (type_print_varspec_suffix): Add parameter that
178 specifies if C++ demangling included function arguments. Use
179 it to suppress printing extra pair of ()'s.
180 * valprint.c (type_print_1): Fix problem with printing demangled
181 C++ function types where demangled type includes the function
182 args.
183
184 Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
185
186 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
187 Allows selection of C++ demangler to be a configuration option
188 until multiple demanglers are supported.
189 * demangle.h: New include file for extended demangler support.
190 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
191 utils.c, valprint.c: Include "demangle.h" and change all calls
192 to cplus_demangle() or fputs_demangled() to use individual
193 demangling options.
194 * valprint.c (type_print_1): Change options to cplus_demangle
195 to print demangled function args. Still broken, but now less so.
196 * cplus-dem.c: Include demangle.h, reorganize and update some
197 comments to reflect reality.
198 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
199 second arg from fixed integer to bit based multiple options.
200 * cplus-dem.c (optable): Reformat and replace ansi members with
201 bit based options.
202 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
203
204 Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
205
206 * values.c (set_internalvar): Force evaluation of lazy values.
207 Bug reported by RMS.
208
209 Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
210
211 * Makefile.in (VERSION): Bump to 4.5.2.
212 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
213 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
214 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
215 proper handling of bit fields.
216 * gdbtypes.h (struct type): Clarify use of field.bitpos.
217 * symtab.h: Fix couple of misspellings in comments.
218 * value.h (struct value): Clarify use of bitpos.
219 * value.h (unpack_field_as_long): Change prototype, returns
220 LONGEST.
221 * values.c (unpack_field_as_long): Change return type to LONGEST,
222 sign extend unpacked fields that are signed, other rewriting.
223 * config/ncr3000.mt: New target config file.
224
225 Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
226
227 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
228 even when printing 8-bit characters.
229
230 * gdbtypes.c (make_{reference,pointer,function}_type): New
231 functions which handle overwriting of forward-referenced types
232 for stabs file reading.
233 (lookup_{reference,pointer,function}_type): These just call
234 the make_*_type functions with a null storage alloc parameter.
235 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
236 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
237
238 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
239 (dbx_alloc_type): Make it easier to understand. No funct change.
240 (define_symbol: 't'): Don't put the typedef name into the name of
241 the struct, union, or enum. Bugfix.
242 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
243 routines to properly handle overwriting preallocated types so that
244 forward references will work.
245 (read_enum_type): Force enum values to file scope, due to bug in
246 Sun compiler output. FIXME, fix later.
247
248 Remove unused header_file_prev_index mechanism. It was already
249 obsolete in gdb-3.5. These comments appeared in 3.5:
250 /* This code was used before I knew about the instance codes.
251 My first hypothesis is that it is not necessary now
252 that instance codes are handled. */
253 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
254 * buildsym.h: Remove it and prev_index that saves it.
255 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
256
257 * solib.c (special_symbol_handling): When called from core files,
258 must set up debug_addr. Don't print error messages, just return.
259 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
260
261 Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
262
263 * cplus-dem.c: Allow nested class names (as in
264 Foo::Bar::method()).
265 Allow the cleaner cfront style of nested class names
266 (Q2_3Foo3Bar as well as Q23Foo3Bar).
267 Make cplus_demangle re-entrant by removing use of global
268 variables. Instead, place all shared variables in a
269 stack-allocated structure, and pass around its address.
270
271 Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
272
273 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
274 29k-share/* subdirs...
275
276 * remote-udi.c (udi_insert/remove_breakpoint): Completely
277 rewrite, only leave out the bugs.
278
279 * Makefile.in: Add 29k/UDI support. Improve depend.
280 * .Sanitize, alldeps.mak, configure.in, depend: Add 29k/UDI support.
281
282 * am29k-tdep.c: Update to use new calling conventions, and misc
283 symbol elements.
284
285 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
286
287 Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
288
289 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
290 breakpoint instructions that leave PC pointing at the right place.
291
292 * core.c (core_open): Call warning() to print warnings.
293
294 Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
295
296 * symtab.c (lookup_symbol): Need to check if msymbol->name is
297 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
298 This prevents a crash when trying to lookup the value of a
299 non-existent symbol.
300
301 Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
302
303 * signame.c, signame.h: Remove, replaced by strsignal.c in
304 libiberty.
305 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
306 sun386-xdep.c: Remove include of signame.h
307 * Makefile.in (SFILES_MAINDIR): Remove signame.c
308 * Makefile.in (HFILES): Remove signame.h
309 * Makefile.in (OBS): Remove signame.o
310 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
311 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
312 psignal, perror): Add prototypes.
313 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
314 Remove define.
315 * depend: Manually remove signame.[cho] references.
316 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
317 strsignal.
318 * convex-xdep.c (core_file_command): Replace use of sys_siglist
319 with safe_strsignal.
320 * core.c (core_open): Replace use of sys_siglist with
321 safe_strsignal.
322 * core.c (memory_error): Replace use of sys_errlist with
323 safe_strerror.
324 * i960-tdep.c (print_fault): Replace use of sys_siglist with
325 safe_strsignal.
326 * infcmd.c (program_info): Replace use of sys_siglist with
327 safe_strsignal.
328 * infrun.c (signal_stop, signal_print, signal_program):
329 Allocate dynamically based on dynamic determination of number
330 of signals to support.
331 * infrun.c (child_create_inferior): Replace use of sys_errlist
332 with safe_strerror.
333 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
334 safe_strsignal.
335 * infrun.c (sig_print_info): Replace use of sig_abbrev with
336 strsigno and sys_siglist with safe_strsignal.
337 * infrun.c (handle_command): Call signo_max to find number of
338 signals. Replace sig_number with strtosigno and sig_abbrev with
339 strsigno.
340 * infrun.c (signals_info): Replace sig_number with strtosigno.
341 * infrun.c (_initialize_infrun): Call signo_max to find number of
342 signals. Dynamically allocate signal_{stop,print,program}.
343 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
344 * procfs.c (errnoname): Add function and prototype.
345 * procfs.c (info_proc_siginfo): Call errnoname, replace use
346 of sys_siglist with safe_strsignal.
347 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
348 sys_siglist with safe_strsignal.
349 * procfs.c (info_proc_stop): Call errnoname.
350 * procfs.c (signalname): Replace sig_abbrev with strsigno.
351 * stuff.c (main, get_offset): Replace use of sys_errlist with
352 strerror.
353 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
354 with safe_strsignal.
355 * umax-xdep.c (core_file_command): Replace use of sys_siglist
356 with safe_strsignal.
357 * utils.c (safe_strerror, safe_strsignal): Add functions that
358 call strerror and strsignal respectively, and deal with NULL
359 returns.
360 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
361 sys_errlist with safe_strerror.
362 * valprint.c (val_print): Replace use of sys_errlist with
363 safe_strerror.
364
365 Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
366
367 * Makefile.in: rework CFLAGS so that they can be set from the
368 command line to make. CFLAGS -> INTERNAL_CFLAGS.
369 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
370 Pass CFLAGS on recusions.
371
372 Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
373
374 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
375 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
376 overkill for the problem it solved.
377 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
378 and default to simply printing type names as appropriate.
379 * main.c (main): Remove one of the leading newlines from
380 warning_pre_print initialization.
381 * objfiles.c (open_existing_mapped_file): Add function and
382 prototype.
383 * objfiles.c (open_mapped_file): Rewrite to use new function
384 open_existing_mapped_file.
385
386 Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
387
388 * sun3-xdep.c (fetch_core_registers): Lint.
389 * tm-sun3.h: Prototype lint.
390 * value.h: Typo.
391
392 Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
393
394 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
395 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
396 * objfiles.c: Cast calls to close() with unused returns to void.
397 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
398 old objfile's name before updating it.
399 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
400 * objfiles.h (objfile struct): Add mmfd member.
401 * symfile.c (syms_from_objfile): Move some code to
402 new_symfile_objfile.
403 * symfile.c (new_symfile_objfile): Add new function, common code
404 from syms_from_objfile.
405 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
406 mapped and unmapped symbol files.
407 * symfile.c (symbol_file_command): Print "No symbol file now"
408 message, ala exec_file_command for the exec file.
409 * symfile.h (new_symfile_objfile): Add prototype.
410 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
411 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
412
413 Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
414
415 * rs6000-pinsn.c: New version from IBM (Metin).
416 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
417 to avoid warnings from some compilers.
418
419 Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
420
421 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
422 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
423 type's flag word that marks it as a fundamental type.
424 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
425 flags argument for all calls to init_type().
426 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
427 flags argument for all calls to init_type(). Also remove
428 dependency on host sizes for ints, floats, etc.
429 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
430 flags argument for all calls to init_type(). Also remove
431 dependency on host sizes for ints, floats, etc.
432 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
433 bit to flags argument for all calls to init_type(). Add types
434 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
435 * valprint.c (unsigned_type_table, signed_type_table,
436 float_type_table): Remove.
437 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
438 bit when printing fundamental types, and print the actual name
439 for such types, rather than inventing one. Remove code that
440 invented fundamental type names.
441 * valprint.c (_initialize_valprint): Remove initializations
442 for now removed unsigned_type_table, signed_type_table, and
443 float_type_table.
444
445 Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
446
447 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
448 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
449 5.0.2.
450
451 Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
452
453 * dwarfread.c (target_to_host): New function similar to previous
454 swapin function.
455 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
456 Extensive changes to convert all previous usages to use new
457 target_to_host() function.
458 * dwarfread.c (struct dieinfo): Change types of most integral
459 members to be unsigned.
460
461 Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
462
463 * WHATS.NEW: Revise -mapped doc.
464
465 Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
466
467 * mipsread.c (parse_partial_symbols): Complain when sh->index is
468 too high or when skipping `forwards' moves us backwards.
469 (parse_type): Print mis-guessed tag name in complaint.
470 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
471 (parse_procedure): Do not attempt to create symbols; just fill in
472 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
473 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
474 for clarity. Set top_stack before calling parse_external. In
475 stabs, sort symbols before calling parse_procedure.
476 * mipsread.c: Lint.
477 * symmisc.c (std_in, std_out, std_err): Add vars to access std
478 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
479 * Makefile.in: Remove stage* targets. Avoid echo on recursive
480 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
481 exists.
482
483 Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
484
485 * Makefile.in (VERSION): Set to 4.5.1.
486 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
487 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
488 fill_gregset): New functions for SVR4 /proc support.
489 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
490 Remove new symbol types and such to ../include/coff/symconst.h.
491 (parse_symbol): Simplify code for parsing struct/enum/unions.
492 (parse_type): Handle `long long' types.
493 (upgrade_type): Handle `const' qualifier.
494 (parse_partial_symbols): fix indentation, clean a bit.
495
496 Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
497
498 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
499 copy in data from raw read buffers, calling bfd byteswapping
500 routines as appropriate. Use to replace most existing memcpy
501 calls.
502 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
503 * configure.in: Recognize new ncr3000 config.
504 * config/ncr3000.mh: New config file.
505
506 Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
507
508 GDB-4.5 release!
509
510 * README: Update for release.
511 * Makefile.in: Update version to 4.5.
512 * WHATS.NEW: The obvious.
513
514 * depend: Generate new depend file for this release.
515
516 * Makefile.in (depend): Fix dependancy generation so that it does
517 not include gcc 'fixincluded' files, which are usually in a system
518 specific location.
519
520 Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
521
522 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
523 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
524 symbols for nameless types. And, handle `R' (register parameter
525 type) for AIX. (an extension to existing stabstring grammar).
526 * rs6000-xdep.c: Fix typo (= should have been ==).
527
528 Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
529
530 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
531
532 Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
533
534 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
535 * signame.c (SIGWAITING, SIGLWP): Add.
536
537 Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
538
539 * xm-i386mach.h: add decls for errno and strdup().
540
541 * breakpoint.c (breakpoint_1): Add (int) casts for enums
542 used in array index context (otherwise, some compilers barf).
543
544 Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
545
546 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
547 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
548 in a system call, and provide better backtrace if so.
549
550 * Makefile.in (HFILES): Add xcoffsolib.h.
551 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
552 * rs6000-pinsn.c: #include "opcode/rs6k.h"
553
554 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
555 mipscoff_symfile_read): Convert to BFD to do file I/O.
556
557 * symfile.c: #include <ctype.h> to get proper def if isspace().
558
559 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
560
561 Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
562
563 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
564 function also when parsing embedded stabs.
565
566 Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
567
568 * mipsread.c: Fix more declarations.
569
570 * mipsread.c: Fix many invocations of complain. Use enum
571 type_code where appropriate.
572
573 * xm-vaxult.h: Add decl for strdup().
574
575 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
576 for xm-vax.h.
577
578 Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
579
580 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
581 process_one_symbol.
582
583 Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
584
585 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
586 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
587 Merge in more patches for rs6000 from Metin Ozisik.
588 * utils.c: Fix typo in comment.
589
590 Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
591
592 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
593 * procfs.c (attach): Set nopass_next_sigstop if attached
594 process is forcibly stopped.
595 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
596 resending SIGSTOP to attached process on first resume.
597
598 Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
599
600 * Makefile.in (SFILES_MAINDIR): add mipsread.c
601
602 Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
603
604 * Makefile.in (OBS): Compile mipsread.c for all targets now.
605 (VERSION): Bump to 4.4.85.
606 * mipsread.c: Update for new include files. Lint.
607 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
608 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
609 Don't need to bring in mipsread.o specially any more.
610
611 Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
612
613 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
614 routine (for Irix-4.x). Make many funcs static and void.
615 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
616 * (init_extra_frame_info): Don't trash cached value of frame
617 pointer register. This fixes backtracing through routines that use
618 alloca(). Generally clean up declarations of functions, and use
619 typedefs and macros to reference data structures as appropriate.
620 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
621 proc_desc element.
622
623 Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
624
625 * values.c (unpack_long): Fix unpacking error for signed chars
626 on hosts where the default character type is unsigned.
627 * procfs.c (pr_flag_table, pr_why_table): Add some entries
628 for newer SVR4 variants.
629 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
630 turn off trace inherit-on-fork flag to favor latest SVR4 method.
631 * procfs.c (mappingflags): Add support for MA_PHYS
632
633 Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
634
635 * buildsym.c (read_struct_type): Avoid coredump when C++
636 abbreviated type name is messed up. Reported by Joe Buck.
637 FIXME, we need to determine whether GDB or GCC needs to be
638 smarter to correctly locate this type name.
639
640 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
641 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
642 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
643 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
644 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
645
646 Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
647
648 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
649 * symtab.h (current_source_symtab): Make extern
650 * symtab.h (current_source_line): Make extern
651 * inferior.h: Move all procfs.c prototypes to one place, add
652 prototype for proc_signal_handling_change. Add prototypes for
653 signal_stop_state, signal_print_state, and signal_pass_state.
654 * inferior.h (stop_soon_quietly): Make extern
655 * inferior.h (attach_flag): Make extern
656 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
657 * infrun.c (signal_stop_state, signal_print_state,
658 signal_pass_state): New functions to query specific signal
659 handling flags.
660 * infrun.c (handle_command): Minor error message change, add
661 NOTICE_SIGNAL_HANDLING_CHANGE.
662 * procfs.c (open_proc_file): Remove iris specific reset of
663 inherit-on-fork flag, moved to proc_set_exec_trap().
664 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
665 to reset inherit-on-fork flag, bash comment to GNU form.
666 * procfs.c (proc_base_address, set_proc_siginfo,
667 fetch_core_registers): Conform to code style.
668 * procfs.c (signame.h): Include.
669 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
670 syscallname(), info_proc_syscalls()): New macros, tables, and
671 functions to organize and report system call information.
672 * procfs.c (saved_fltset, saved_trace, saved_sighold,
673 saved_exitset, saved_entryset): Add to procinfo struct.
674 * procfs.c (struct trans): Add.
675 * procfs.c (pr_flag_table, pr_why_table, faults_table,
676 siginfo_table, errno_table): Tables to translate numeric values
677 to symbolic names and short descriptions.
678 * procfs.c (signalname, info_proc_signals): Add function and
679 prototype.
680 * procfs.c (proc_info): Now info_proc.
681 * procfs.c (proc_info_address_map): Now info_proc_mappings.
682 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
683 info_proc_faults, lookupname, lookupdesc, sigcodename,
684 sigcodedesc): New functions.
685 * procfs.c (proc_signal_handling_change): New function to set
686 the trace flags based on the state of gdb's signal handling flags.
687 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
688 and remove code to do PIOCSTRACE ioctl.
689 * procfs.c (attach, detach): Preserve and restore process flags
690 using saved_* fields in procinfo struct.
691 * procfs.c (attach): Call proc_signal_handling_change.
692 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
693 * procfs.c (proc_desc): Update for latest changes.
694 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
695 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
696 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
697
698 Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
699
700 * procfs.c (set_proc_siginfo): Add prototype and new function.
701 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
702 up inferior siginfo struct.
703 * elfread.c (elf_symfile_read): Compute the relocation amount
704 by subtracting off the address of the ".text" section.
705 * solib.c: Add pointer to ".text" section to so_list struct.
706 * solib.c (solib_map_sections): Initialize pointer to ".text"
707 section in so_list struct.
708 * solib.c (symbol_add_stub): Pass base address of ".text"
709 section to symbol_file_add, rather than the load address of
710 the shared library. On SunOS they are the same. On SVR4 they
711 are not.
712
713 Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
714
715 * mipsread.c (parse_procedure): PDR.isym should get pointer to
716 function name, not .gdbinfo. symbol.
717
718 Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
719
720 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
721
722 Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
723
724 * Makefile.in (VERSION): 4.4.8
725
726 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
727 commands in .cshrc/.profile won't get traced.
728
729 Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
730
731 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
732 * exec.c (build_section_table): Don't abort if no sections.
733 * sparc-tdep.c (single_step): Lint.
734 * utils.c (mrealloc): Handle realloc (0, size) case here.
735
736 Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
737
738 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
739 opposed to m[ht]-*!
740
741 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
742
743 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
744 .gdbinfo. symbols are created. Move creation from parse_procedure
745 to parse_symbol, where it is fairly easy to grow the symtab. This
746 also fixes a symtab trashing bug on all mips-based systems.
747 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
748 needed anymore.
749 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
750 mips_extra_func_info, and all the PROC_xxx macros that look at it.
751
752 Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
753
754 * c-exp.y: Add missing return type to yyparse() prototype.
755
756 Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
757
758 Create and use macros for iterating on symtabs, psymtabs, msymbols.
759
760 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
761 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
762 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
763 (patch_opaque_types): Avoid dummy args and result.
764 * objfiles.c (have_partial_symbols, have_full_symbols,
765 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
766 (iterate_over_objfiles, iterate_over_symtabs,
767 iterate_over_psymtabs): Remove, clunky and slow.
768 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
769 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
770 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
771 dump_objfile): Remove dummy args and results. Move filename
772 comparisons to callers.
773 (printsyms_command, printpsyms_command, printmsyms_command,
774 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
775 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
776 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
777 list_symbols, make_symbol_completion_list): Replace explicit
778 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
779 Eliminate Dijkstra flag crap, break out of loops with gotos.
780 (lookup_symtab_1): Protect '/' tests from short filenames.
781 (cplus_mangled_symbol): Move inline into lookup_symbol.
782 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
783 (relocate_minimal_symbol): Move inline to vmap_symtab.
784 (vmap_symtab): Replace iteration with ALL_OBJFILES,
785 iterate_over_msymbols with ALL_MSYMBOLS.
786
787 Misc cleanup prior to release.
788
789 * Makefile.in (VERSION): Roll to 4.4.7.
790 (HFILES): Add call-cmds.h.
791 * call-cmds.h: New header for command fns called by other files.
792 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
793 (breakpoint_1): Remove unused type arg. Change callers.
794
795 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
796 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
797 * mipsread.c: Add prototypes for all static functions.
798
799 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
800 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
801 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
802 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
803 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
804 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
805 unused copy!
806
807 * buildsym.c (define_symbol): Handle global register variables
808 (from Pierre Willard). Complain if register numbers are too large.
809 * target.c (nomemory): Now that higher levels examine errno, give EIO.
810 * tm-sparc.h: Don't #include <sun4/reg.h>.
811 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
812 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
813
814 * language.h: Avoid forward enum declaration.
815 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
816 config/sun4os5.mt: New host and target.
817 * defs.h (errno): #include <errno.h> rather than assuming int.
818 From Pierre Willard.
819
820 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
821 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
822 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
823 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
824 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
825 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
826 sparc-xdep.c, utils.c, value.h, values.c: Lint.
827
828 Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
829
830 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
831 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
832 * language.h (enum exp_opcode): Avoid forward enum def.
833 * main.c (define_command, user_defined_command): Lint.
834 * mem-break.c, xcoffread.c: Lint.
835 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
836
837 Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
838
839 * Merged in latest RS6000 diffs from Metin G. Ozisik.
840 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
841 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
842 or IBM6000_TARGET as (approximately) appropriate.
843
844 Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
845
846 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
847 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
848 or not to try reading symbols from a mapped objfile. Plugs memory
849 leak due to shared libraries generating no psymtabs or symtabs.
850
851 Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
852
853 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
854 * copying.awk: Lint. Make stronger warning at top of copying.c.
855 * elfread.c (elf_symtab_read): Eliminate check of mainline.
856 * gdbtypes.c (smash_to_*): Remove FIXME comments.
857 (lookup_pointer_type): Add FIXME comment.
858 * main.c (set_history_size_command): Disallow negative size.
859 * partial-stab.h: Update copyright.
860 * rs6000-tdep.c (skip_trampoline_code): Better comments.
861
862 Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
863
864 * main.c (set_history_size_command): Negative size is error.
865 (Reported by Peggy Fieland.)
866
867 Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
868
869 * coffread.c (coff_symfile_init): Update comment.
870 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
871 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
872 macros to access the dbx specific objfile information.
873 * dbxread.c (symfile_string_table, symfile_string_table_size):
874 Remove these local variables.
875 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
876 read_dbx_symtab): Remove the stringtab and stringtab_size params
877 from the function prototypes, the function definition, and the
878 function calls. These are now available via DBX_STRINGTAB and
879 DBX_STRINGTAB_SIZE using the objfile pointer.
880 * dbxread.c (dbx_symfile_read): Relocate addr before using as
881 an arg to read_dbx_symtab.
882 * dbxread.c (dbx_symfile_read): Remove code that free'd the
883 stringtab and the dbx specific per-objfile private info.
884 * dbxread.c (init_psymbol_list): Remove symbol count from passed
885 args in prototype, function definition, and function calls. It is
886 now available via the DBX_SYMCOUNT macro using the objfile
887 pointer.
888 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
889 local instance of struct dbx_symfile_info and replace with DBX_*
890 macros.
891 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
892 symfile_string_table and symfile_string_table_size.
893 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
894 symfile_string_table.
895 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
896 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
897 stringtab size variables. Remove all code that used to reread
898 the stringtab.
899 * objfiles.c (allocate_objfile): Move calls to init_malloc()
900 to prior to any calls to mmalloc for the objfile specific heap.
901 * utils.c (init_malloc): Document the requirement that for each
902 heap for which corruption checking is desired, that init_mmalloc
903 must be called prior to any mmalloc calls on the heap.
904
905 Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
906
907 * rs6000-pinsn.c: Make dis-assembly output more like
908 other targets: Don't print instruction in hex before
909 the assembly; use print_address to print out jump
910 destinations.
911
912 Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
913
914 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
915 * cplus-dem.c: Support "Sc" meaning "signed char".
916
917 Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
918
919 * configure.in: fix iris/iris3.
920
921 Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
922
923 * command.c, main.c (various places): Use ctype.h macros
924 (such as isupper(x)), instead of hard-wiring in ASCII-isms
925 (such as (x >= 'A' && x <= 'Z')).
926 (There are still more of these in other files.)
927 * main.c (defined_command): Lower-case the user's
928 new command before entering it. Needed because
929 command lookup is case-insensitive (and also lower-cases).
930 (Based on Metin's earlier patch.)
931
932 Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
933
934 * config/irix4.mh: new file.
935
936 Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
937
938 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
939 time.
940
941 * xm-mips.h: Declare strdup for ultrix.
942
943 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
944 when calling new_symbol.
945 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
946 current_objfile.
947
948 Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
949
950 * config/rs6000.mh: Update (for Fred's new mmalloc)
951 flags to disable use of GNU malloc/mmalloc.
952 * munch: Change SYSV rule to allow .text before the label,
953 as well as after, to work for AIX.
954 * gdbtypes.h: Minor clarifiction.
955
956 Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
957
958 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
959 continuation in yet another place (between method declarations).
960
961 Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
962
963 * mips-tdep.c: include symfile.h and objfiles.h to fix
964 compilation errors.
965
966 Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
967
968 * valops.c (value_struct_elt_for_reference): Added 'offset'
969 parameter to handle multiple inheritance.
970 * eval.c, value.h: Update accordingly.
971
972 Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
973
974 * objfiles.h: New file
975 * Makefile.in (HFILES): Add objfiles.h
976 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
977 main_scope_lowpc, main_scope_highpc.
978 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
979 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
980 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
981 xcoffread.c, : Include objfiles.h.
982 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
983 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
984 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
985 inside_entry_file() and logic changed appropriately.
986 * blockframe.c (outside_startup_file): Renamed to
987 inside_entry_file() and logic changed appropriately.
988 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
989 and logic changed to use per-objfile specific fields.
990 * blockframe.c (inside_entry_scope): Renamed to
991 inside_entry_func() and logic changed to use per-objfile specific
992 fields.
993 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
994 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
995 Remove extern decls.
996 * symfile.c, symfile.h (entry_point): Remove extern decl.
997 * coffread.c (coff_symfile_init): Common entry point init code
998 moved to symfiles.c, call init_entry_point_info().
999 * coffread.c (complete_symtab): Use new per-objfile entry info.
1000 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
1001 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
1002 info.
1003 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
1004 * defs.h (inside_entry_scope, outside_startup_file,
1005 inside_main_scope): Prototypes changed for renames to
1006 inside_entry_func, inside_entry_file, inside_main_func,
1007 respectively.
1008 * symfile.c (syms_from_objfile): Common entry point init code
1009 moved to init_entry_point_info() and call init_entry_point_info().
1010 * symfile.h (init_entry_point_info): Include prototype.
1011 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
1012 moved to symfiles.c and call init_entry_point_info().
1013 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
1014 main_scope_lowpc, main_scope_highpc): Remove extern decls.
1015 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
1016 objfile entry info.
1017 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
1018 works for the majority of targets.
1019 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
1020 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
1021 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
1022 Use default definition in frame.h.
1023 * frame.h (selected_frame_level): Make decl extern.
1024 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
1025 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
1026 * partial-stab.h: Use new per-objfile entry info.
1027 * symfile.h (struct objfile): Removed, moved to objfiles.h.
1028 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
1029 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
1030 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
1031 have_minimal_symbols): Prototypes moved to objfiles.h.
1032 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
1033 Macros moved to objfiles.h.
1034 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
1035
1036 Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
1037
1038 More C++ improvements (pointers to members, qualified names).
1039 * c-exp.y: Support exp.type::name and exp->type::name
1040 syntaxes. (Unfortunately, doesn't work for static members.)
1041 * c-exp.y, eval.c: Make type::~type work better.
1042 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
1043 value_static_field by value_struct_elt_for_reference.
1044 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
1045 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
1046 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
1047 for OP_SCOPE operand; no point in it now that we use lazy
1048 reading of values, and use "reference to member" objects.
1049 * gdbtypes.h: Clarify comment.
1050 * valops.c: Change value_struct_elt_for_address to return
1051 a reference (or variable), rather than a pointer. Change
1052 the name to value_struct_elt_for_reference to reflect this.
1053 Returning a reference instead of a address provides a
1054 generalization, since we can use the routine for both
1055 class::name as well as &class::name.
1056 Also, recurse to handle multiple inheritance properly.
1057 * valprint.c: Moved code to print pointer-to-members
1058 to new function point_class_member. This allows a
1059 "reference-to-member" to be printed using the same code.
1060 * valprint.c (type_print_varspec_prefix): Avoid printing
1061 "struct " for domains of class-member types.
1062 * valops.c (search_struct_field): Inline code for simplified
1063 version of value_static_field (which can then be deleted).
1064 * value.h: Rename value_struct_elt_for_address to
1065 value_struct_elt_for_reference. Delete value_static_field.
1066 * values.c: Remove no longer used function value_static_field.
1067
1068 Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
1069
1070 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
1071 elfread.c (coff_symfile_finish): Add function, prototype, and
1072 add to the xxxx_sym_fns struct for each file type. Also reformat
1073 the xxxx_sym_fns vector to a standard format and add comments.
1074 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
1075 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
1076 Pass pointer to struct objfile rather than pointer to sym_fns.
1077 Change references inside each function accordingly. Allocate any
1078 symbol file specific info in the per-objfile memory region.
1079 * dbxread.c (free_and_init_header_files): Break function into
1080 free_header_files(), called from dbx_symfile_finish(), and
1081 init_header_files(), called from dbx_new_init().
1082 * dbxread.c (dbx_new_init): Move deallocation things to new
1083 dbx_symfile_finish function.
1084 * elfread.c (elf_new_init): Call buildsym_new_init().
1085 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
1086 routine for the objfile before deallocating other stuff.
1087 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
1088 * symfile.h: Move struct sym_fns to before struct objfile def.
1089 Add sym_finish function pointer and change prototypes of other
1090 function pointers to reflect passing struct objfile pointer rather
1091 than struct sym_fns pointer.
1092 * symfile.c: Remove now obsolete symtab_fns pointer.
1093 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
1094 locates the correct sym_fns struct for the given objfile.
1095 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
1096 for better support of mapped symbol tables.
1097 * symfile.c (symbol_file_command): Remove obsolete code using
1098 symfile_fns.
1099 * symfile.h: Remove duplicate declarations for symfile_objfile,
1100 entry_point, and object_files.
1101 * target.c (target_info): Compare symfile_objfile to NULL.
1102 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
1103 aixcoff_symfile_finish().
1104
1105 Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
1106
1107 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
1108 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
1109 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
1110
1111 Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
1112
1113 Some improvements to g++ debugging.
1114 * symtab.c (list_symbols): demangle before pattern matching.
1115 * symtab.c: Other fixes to improve handing of operators.
1116 * valprint.c (type_print_base): Fix test for constructor.
1117 * values.c (value_static_field): Allow evaluation of
1118 CLASS::METHOD, returning a function pointer.
1119
1120 Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
1121
1122 * Makefile.in (VERSION): Roll 4.4.6.
1123 * exec.c (exec_file_command): Add code to ignore optional args
1124 passed in by file_command() for use in symbol_file_command().
1125 * main.c (main): Document -mapped and -readnow in help summary.
1126 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
1127 * objfiles.c (allocate_objfile): Filename arg removed. Changes
1128 to get filename from bfd with bfd_get_filename(). Test mapto
1129 against 0, not NULL. Use mstrsave() to make copy of filename.
1130 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
1131 arg.
1132 * remote-vx.c (vx_load_command, add_symbol_stub):
1133 Symbol_file_add() takes an additional arg.
1134 * solib.c (symbol_add_stub): Symbol_file_add() takes an
1135 additional arg.
1136 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
1137 changed to return a bfd not an objfile pointer.
1138 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
1139 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
1140 Change to eliminate local bfd and use symfile_bfd_open() plus
1141 allocate_objfile(). Add code to implement readnow option.
1142 * symfile.c (symbol_file_command): Changes to option handling,
1143 readnow functionality moved to symbol_file_add().
1144 * symfile.c (symfile_init): Eliminate local copy of bfd.
1145 * symfile.c (add_symbol_file_command): Changes to parse mapped
1146 and readnow options.
1147 * symfile.h (allocate_objfile): Arg removed from prototype.
1148 * symtab.h (symbol_file_add): Arg added to prototype.
1149 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
1150 arg.
1151
1152 Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
1153
1154 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
1155 mtrace.awk, state.c, state.h: Removed.
1156 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
1157 directories searched for source files.
1158 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
1159 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
1160 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
1161 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
1162 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
1163 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
1164 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
1165 sbrk.c
1166 * Makefile.in (HFILES): Remove state.h
1167 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
1168 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
1169 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
1170 * Makefile.in (clean): Remove all object files.
1171 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
1172 * cplus-dem.c: Remove prototypes definitions that are now done in
1173 def.h.
1174 * dbxread.c (throughout): Change from using per-objfile
1175 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1176 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
1177 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
1178 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
1179 * depend: Remove dependencies for state.o, state.h.
1180 * dwarfread.c: Add declaration for warning_pre_print.
1181 * dwarfread.c (dwarfwarn): Use warning_pre_print.
1182 * dwarfread.c (throughout): Change from using per-objfile
1183 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1184 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
1185 use supplied objfile.
1186 * i386-xdep.c (print_387_status): Change to use warning() rather
1187 than printfs.
1188 * i387-tdep.c (print_387_control_word): Change to use warning()
1189 rather than printfs.
1190 * infrun.c (wait_for_inferior): Remove unreachable abort() call
1191 that some compilers grumble about.
1192 * language.c (throughout): Add declaration for warning_pre_print
1193 and using warning() instead of printfs.
1194 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
1195 * main.c (main): Add declaration for warning_pre_print and set it
1196 similarly to error_pre_print. Add declarations for
1197 mapped_symbol_files and readnow_symbol_files. Add appropriate
1198 definitions to long_options[].
1199 * minsyms.c: Trivial fix to comment.
1200 * objfiles.c (allocate_objfile): Substantially rewritten for
1201 using mapped symbol files.
1202 * objfiles.c (throughout): Change from using per-objfile
1203 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1204 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
1205 * source.c (throughout): Change from using per-objfile
1206 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1207 * source.c (open_source_file): Use mstrsave to save file name in
1208 mapped symbol region for objfile.
1209 * symfile.c: Remove include for state.h.
1210 include to local form.
1211 * symfile.c (symbol_file_add_digested): Remove.
1212 * symfile.c (symbol_file_add): Substantially rewritten for mapped
1213 symbol files.
1214 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
1215 from objfile structure. Add malloc descriptor pointer (md).
1216 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
1217 * symm-xdep.c (print_fpu_status): Use warning() rather than
1218 printfs.
1219 * symmisc.c (free_symtab_block): Now takes and uses current
1220 objfile pointer.
1221 * symmisc.c (throughout): Change from using per-objfile
1222 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
1223 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
1224 Sun compiler grumblings when PTR is char *.
1225 * symtab.c (lookup_symbol): Cast return value of iterate_over_
1226 msymbols() to correct pointer type.
1227 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
1228 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
1229 error always starts on a line of it's own.
1230 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
1231 Rewrite for new mapped malloc package use.
1232 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
1233 that don't want to use the mapped malloc package; pass arguments
1234 on to traditional malloc package functions.
1235 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
1236 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
1237 mrealloc, malloc, and realloc but get fatal error if runs out
1238 of memory.
1239 * utils.c (msavestring, mstrsave): Save a string in a specific
1240 mapped malloc region.
1241 * utils.c (print_spaces): Use xmalloc to get the buffer.
1242 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
1243 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
1244 * config/i386v4.mh: Insignificant reorganization.
1245
1246 Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
1247
1248 * xcoffread.c: Only enable compilation of debugging functions
1249 if IBM6000 is defined. Fails to compile otherwise.
1250
1251 Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
1252
1253 * Makefile.in: pass MAKEINFO down on info.
1254
1255 Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
1256
1257 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
1258 useless code, including an lseek to an uninitialized variable.
1259 Reported by Jim Williams <jimbo@wrs.com>.
1260
1261 Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
1262
1263 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
1264 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
1265 * minsyms.c, symfile.c: Changes that may be generally
1266 applicable, but are #ifdef IBM6000 for now.
1267 * rs6000-xdep.c: Fixed typo in comment.
1268 * rs6000-tdep.c: Non-substatial changes.
1269 * xoffread.c: The main change here is addition of some
1270 debugging functions.
1271 * xoffexec.c: More changes.
1272
1273 * xcoffread.c: Fixed two too-few-parameters bugs.
1274
1275 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
1276 to SOLIB_CREATE_INFERIOR_HOOK macro.
1277
1278 Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
1279
1280 * symfile.h: Add prototype for iterate_over_msymbols().
1281 * symtab.c (cplus_mangled_symbol): Add function.
1282 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
1283 iterate_over_msymbols to find demangled C++ symbol.
1284 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
1285 value to iterate_over_msymbols().
1286 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
1287 msymbols().
1288
1289 Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
1290
1291 * Makefile.in: added check target.
1292
1293 Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
1294
1295 * ecoff.c: Move to ../bfd/coff-msym.c.
1296 * config/mt-*mips: Remove ecoff.o from the configuration.
1297 * remote.c (): Add newline to initial +.
1298 (remote_resume): Mention how to cope with signals.
1299 (remote_interrupt): Add debug msg.
1300 (remote-wait): Implement new 'T' reply, which includes
1301 status, PC, and FP all in a single short message.
1302 (putpkt): Add further debugging of packet acks.
1303 * mipsread.c (fixup_symtab): Also swap RFD's.
1304 (parse_partial_symbols): Avoid bug on unknown symbol types.
1305 * Makefile.in (VERSION): Roll to 4.4.5.
1306 * mips-tdep.c (heuristic_proc_start): Avoid long delays
1307 for remote MIPS by limiting heuristic to 200 byte search.
1308 (heuristic_proc_desc): Byte-swapping.
1309 (mips_print_register): Cope with failure of
1310 read_relative_register_raw_bytes. Byte-swap integers for
1311 printing.
1312 * mips-pinsn.c (print_insn): Byte-swap instruction.
1313
1314 Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
1315
1316 * config.sub configure.in config/.Sanitize config/mh-irix4
1317 gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1318 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
1319 gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
1320 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
1321
1322 Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
1323
1324 * defs.h, utils.c: xrealloc takes PTR as first arg.
1325 * defs.h: Reword confusing comment about ANSI prototypes.
1326 * defs.h: Some minor whitespace changes.
1327 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
1328 not NULL, which can be (void *).
1329 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
1330 * tm-i386v.h (SP_ARG0): Define
1331 * xm-sysv4.h: Back out of change for missing prototypes.
1332 * i386-tdep.c (get_longjmp_target): Add function.
1333
1334 Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
1335
1336 * Makefile.in: install man page too.
1337
1338 Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
1339
1340 * All GDB files that #include defs.h: Removed stdio.h.
1341 (defs.h): #include stdio.h.
1342
1343 Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
1344
1345 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
1346 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
1347 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
1348 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
1349 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
1350 it before printing out the hex shape of an address.
1351
1352 Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
1353
1354 * rs6000-xdep.c (frame_initial_stack_address): Move
1355 code to set frame->cache_fsr into new separate function
1356 frame_get_cacahe_fsr. This allows fixing a fatal error.
1357 * xcoffexec.c: Turn previously suppressed error
1358 message back on, after cleaning up BFD.
1359
1360 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
1361 printing of blank line, since it cases printing of an
1362 extra blank line. Is this intended? It does mess up
1363 gdb test suite.
1364 * defs.h: Put back declarations of malloc and realloc,
1365 but protected by #ifndef MALLOC_INCOMPATIBLE.
1366 * objfiles.c: Undo previous change: Use malloc/realloc
1367 for objfile malloc/realloc fields (but add a cast).
1368 * xcoffexec.c: Suppress an error message (for now).
1369
1370 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1371
1372 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1373 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
1374 * buildsym.c: Use smash_to_pointer_type() to handle forward type
1375 references.
1376 * xcoffread.c: Modifications to C_DECL storage class handling, and
1377 introduction of an old smash_to_pointer_type() routine.
1378
1379 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1380 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
1381 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
1382 parameters have been modified.
1383
1384 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1385 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
1386 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
1387 and fetch_inferior_registers() always fetched all the registers
1388 resulting valid register values at hand all the time. Pushing a dummy
1389 frame did not require validating all register values first. After
1390 putting the above mechanism into action, we didn't have valid registers
1391 values always ready. Thus, all registers need to be fetched before
1392 pushing a dummy frame now.
1393
1394 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1395 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
1396 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
1397 the starting address (actual frame address) of a frame.
1398 * rs6000-tdep.c: modifications to function_frame_info() to see if
1399 function reserves a frame pointer register (alloca register)
1400 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
1401 FRAME_LOCALS_ADDRESS has been updated to support debugging of
1402 functions with alloca() calls.
1403
1404 Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
1405
1406 * xm-sysv4.h: Provide definitions/prototypes for host environment
1407 functions for which no definitions or prototypes are provided in
1408 any currently included gdb or host environment header files.
1409 For SVR4, this currently includes malloc and realloc, which cannot
1410 be portably prototyped in any gdb include file.
1411
1412 Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
1413
1414 * buildsym.h: Remove obsolete variable file_stabs.
1415
1416 * Makefile.in: Move place where configure merges in host-
1417 and target-dependent fragments later, so the latter
1418 can override (say) GNU_MALLOC.
1419 * config/mh-rs6000: Use system malloc. Otherwise, I
1420 ended up with *two* incompatible versions of malloc
1421 (functions in libc would call the malloc in libc).
1422 I assume this is a shared library problem.
1423
1424 * remote.c: Fix (presumed) typo.
1425 * objfiles.c: Use xmalloc/xrealloc instead of
1426 malloc/realloc (since the latter are no longer declared).
1427
1428 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1429 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
1430 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
1431 handle individual registers.
1432 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
1433 correctly in case it wasn't cached yet. (A problem showed up
1434 after fetching individual registers.)
1435 * buildsym.c: Disable type_synonym_name's type name overwriting
1436 in cases it is unnecesary. rs6000 portation doesn't use
1437 type_synonym_name, and it used to nullify type names
1438 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
1439 type's name as soon as space for that type is allocated.
1440 * xcoffread.c: ignore a section's lineno information if it is
1441 not `.text'. (In rs6000 bfd portation integration, skipping over
1442 `.pad' sections are ignored since it was in machine independent
1443 part of the code. Thus, a problem of fake sections with invalid
1444 lineno information arised.)
1445
1446 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
1447 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
1448 * rs6000-tdep.c: make function_frame_info() work whether or not
1449 reading from a core file.
1450 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
1451
1452 * infrun.c. main.c, printcmd.c. symtab.c:
1453 More changes from IBM for rs6000.
1454
1455
1456 Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
1457
1458 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
1459 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
1460 Merge in changes (mostly from IBM) for RS6000.
1461 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
1462 More changes from IBM for RS6000. These are in machine-
1463 independent code, and probably could do with some cleaning
1464 up. The most questionable of these are #ifdef IBM6000.
1465 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
1466 to single_step() (for consistency with rs6000 and i860).
1467 * utils.c: Allow the 1st arg to xrealloc to be NULL
1468 (in which case do malloc). This removes the need for
1469 some tests in xcoff code (and perhaps other places?).
1470 * coffread.c: Removed variables last_source_file,
1471 type_vector, and type_vector_length as these are now
1472 defined by buildsym.[ch].
1473 * defs.h: Remove prototypes for malloc and realloc, since
1474 these should only be used to implement xmalloc and xrealloc,
1475 and they conflict with <stdlib.h> in AIX - where they
1476 return void* even when __STDC__ isn't defined. Sigh.
1477 * munch: Recognize *initialize* in data as well as text
1478 (AIX uses data). Also, incorporate a patch from Garrett
1479 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
1480 much more sensible, by only trying to match the name of
1481 the initialize_foo function, and not the junk before it.
1482
1483 Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
1484
1485 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
1486 unless symbol table indicates that something has changed.
1487
1488 Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
1489
1490 * remote.c: Make it work for embedded MIPS. Increase buffer
1491 size, and use throughout. Round buffer size up if too many regs.
1492 Support baud rate setting and try for an 8-bit path. If
1493 interrupted while waiting for target, send a ^C down the wire.
1494 Avoid single-byte reads.
1495 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
1496 and NUM_REGS.
1497 * mips-xdep.h: Avoid the embedded regs when on Unix.
1498
1499 * mipsread.c: Byte-swap the symbol table structures, using
1500 routines from ecoff.c, to read a symbol table written in any
1501 of the four possible byte orders.
1502 * configure.in (mips-big-* target): Same as Sony News.
1503 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
1504 * ecoff.c: New file for symbol swapping routines.
1505
1506 Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
1507
1508 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
1509 all-breakpoints' command.
1510 * (get_number): Allow users to enter negative breakpoint numbers.
1511 * (breakpoint_1): Reformat display of 'info break' to show new
1512 fields.
1513 * (create_longjmp_breakpoint, breakpoint_re_set,
1514 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
1515 symfile.c (syms_from_objfile): Re-do
1516 insertion of longjmp breakpoints. Move all code into
1517 breakpoint_re_set, and call that instead of
1518 create_longjmp_breakpoint in symfile.c.
1519
1520 Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
1521
1522 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
1523 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
1524 * symtab.c (find_pc_symtab): Handle having no objfiles.
1525 * infcmd.c: Fix comment.
1526 * objfiles.c (free_all_objfiles): Add.
1527 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
1528 * symfile.c (symbol_file_command): free all objfiles when
1529 specifying a new symbol file.
1530 (reread_symbols): Stat the file name, don't fstat the descriptor.
1531
1532 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
1533
1534 * Makefile.in, configure.in: removed traces of namesubdir,
1535 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
1536 copyrights to '92, changed some from Cygnus to FSF.
1537
1538 Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
1539
1540 * dbxread.c (end_psymtab): Delete empty psymtabs.
1541 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
1542 * symfile.h (struct objfile): Add free_psymtabs.
1543
1544 Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
1545
1546 * Makefile.in (VERSION): Roll to gdb-4.4.4.
1547
1548 * symfile.c (symbol_file_command): strcmp => !strcmp.
1549 * breakpoint.h: Move prototypes to follow enum definition they need.
1550 * breakpoint.c, infrun.c: Lint.
1551 * printcmd.c: Use `enum enable' rather than `enum
1552 display_status'.
1553 * mipsread.c: First pass at making it compile with the new
1554 objfile changes. Probably seriously broken still, but it
1555 compiles. FIXME.
1556
1557 Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
1558
1559 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
1560 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
1561 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
1562 stepping (and nexting) through longjmp(). Also, cleanup
1563 breakpoint handling quite a bit by creating explicit breakpoint
1564 types instead of using magic breakpoint numbers.
1565 Makefile.in: Update version to 4.4.3
1566
1567 Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
1568
1569 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
1570 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
1571 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
1572
1573 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
1574
1575 * minsyms.c (install_minimal_symbols): Add bunches to any
1576 existing minsyms in the objfile. Avoid extra mallocation
1577 by working directly in the obstack. Remove ignored `mainline' parm.
1578 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
1579 xcoffread.c: Change all callers.
1580 * FIXME: We should be able to eliminate MAINLINE from all the
1581 symbol readers now, with a small bit of work.
1582
1583 * valops.c, value.h: Lint.
1584 * remote-vx.c: Add missing break; statement. Bugfix by
1585 Michael Sclafani, <sclafani@src.dec.com>.
1586
1587 Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
1588
1589 * Makefile.in (VERSION): Update version to 4.4.2
1590 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
1591 minsyms.c, mmap-alloc.c, mmap-sbrk.c
1592 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
1593 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
1594 mmap-alloc.o, mmap-sbrk.o
1595
1596 * altos-xdep.c: Minor whitespace change.
1597 * am29k-tdep.c (examine_prologue): Convert from misc function vector
1598 use to new minimal symbol table use.
1599 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
1600 * arm-xdep.c (store_inferior_registers): Returns void.
1601 * blockframe.c (get_pc_function_start, find_pc_partial_function):
1602 Convert from misc function vector use to new minimal symbol table use.
1603 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
1604 * breakpoint.c: Add prototypes for local functions.
1605 * breakpoint.c (catch_command_1): Change to static and remove unused
1606 local "pc".
1607 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
1608 * breakpoint.h: Change function decls to prototype form.
1609 * buildsym.c: Add prototypes for local functions.
1610 * buildsym.c: Moved hashname() function here from dbxread.c.
1611 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
1612 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
1613 * buildsym.c (dbx_alloc_type): Change to static.
1614 * buildsym.c (finish_block): Add objfile parameter.
1615 * buildsym.c (misc): Change symbol_obstack to objfile version.
1616 * buildsym.c (make_blockvector): Change to static.
1617 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
1618 * buildsym.c (compare_line_numbers): Change to static, args are const,
1619 cast args when used.
1620 * buildsym.c (start_symtab): Inline new_object_header_files() call.
1621 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
1622 and made static. Add objfile parameter.
1623 * buildsym.c (end_symtab): Simplify code using line table size.
1624 Realloc the linetable on the objfile symbol_obstack and copy there.
1625 * buildsym.c (scan_file_globals): Convert from misc function vector
1626 use to new minimal symbol use.
1627 * buildsym.c (define_symbol): Add objfile parameter. Make sure
1628 strings get allocated in objfile's symbol_obstack. Convert references
1629 to builtin types to lookup_fundamental_type().
1630 * buildsym.c (read_type): Make static, add objfile parameter, convert
1631 references to buildin types to lookup_fundamental_type().
1632 * buildsym.c (read_struct_type): Add objfile parameter.
1633 * buildsym.c (read_array_type): Make static, add objfile parameter.
1634 * buildsym.c (read_enum_type): Make static, add objfile parameter.
1635 * buildsym.c (read_huge_number): Make static.
1636 * buildsym.c (read_range_type): Make static, add objfile parameter,
1637 convert references to buildin types to lookup_fundamental_type ().
1638 * buildsym.c (read_args): Make static, add objfile parameter.
1639 * buildsym.h: Convert function decl's to prototype form.
1640 * c-exp.y: Add prototypes for local functions, convert uses of misc
1641 function vector to minimal symbol table. Reformat all builtin type
1642 initializations and pass a NULL objfile to init_type() for them.
1643 * coffread.c: Change context_stack ref's to coff_context_stack,
1644 add local function prototypes. Cast uses of xrealloc arg 1.
1645 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
1646 crafting a new type.
1647 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
1648 * coffread.c (finish_block): Change name to coff_finish_block.
1649 * coffread.c (make_blockvector): Add and use objfile parameter.
1650 * coffread.c (record_line): Change name to coff_record_line.
1651 * coffread.c (start_symtab): Change name to coff_start_symtab.
1652 * coffread.c (end_symtab): Change name to coff_end_symtab.
1653 * coffread.c (record_misc_function): Change name to record_minimal_
1654 symbol and change to minimal symbol table use from misc func tbl.
1655 * coffread.c (coff_symfile_read): Convert from misc function vector
1656 use to minimal symbol table use.
1657 * coffread.c (hashname): Remove; use common version in buildsym.c.
1658 * coffread.c (decode_base_type): Change references to builtin types
1659 to calls to lookup_fundamental_type().
1660 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
1661 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
1662 * command.c: Add prototypes for local functions.
1663 * command.c (add_cmd): Prototype the 'fun' parameter and use the
1664 appropriate member of the function union for that type.
1665 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
1666 ifdef out the function since it isn't currently used.
1667 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
1668 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
1669 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
1670 * command.c (help_cmd): Compare function pointer to NULL.
1671 * command.c (help_cmd_list): Compare function pointer to NULL.
1672 * command.c (lookup_cmd_1): Use correct member of function union.
1673 * command.c (undef_cmd_error): Make static.
1674 * command.c (complete_on_cmdlist): Use correct member of func union.
1675 * command.c (do_setshow_command): Use correct member of func union.
1676 * command.c (shell_escape): Convert rindex use to strrchr.
1677 * command.h (COMMAND_H): Define if already included.
1678 * command.h (cmd_list_element struct): Change 'function' to a union
1679 and prototype args. Prototype completer function.
1680 * command.h: Convert decl's to prototype form.
1681 * convex-xdep.c (store_inferior_registers): Returns void.
1682 * copying.c: Prototype local functions.
1683 * coredep.c: Minor whitespace change.
1684 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
1685 * cplus-dem.c: Prototype local functions.
1686 * dbxread.c (hashname): Remove; moved to buildsym.c.
1687 * dbxread.c (free_and_init_header_files): Make static.
1688 * dbxread.c: Add prototypes for local functions.
1689 * dbxread.c (new_object_header_files): Remove; inlined usages.
1690 * dbxread.c (xrealloc usages): Cast args.
1691 * dbxread.c (record_misc_function): Change to record_minimal_symbol
1692 and change usages accordingly.
1693 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
1694 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
1695 * dbxread.c (dbx_next_symbol_text): Make static.
1696 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
1697 * dbxread.c (init_bincl_list): Add and use objfile parameter.
1698 * dbxread.c (free_bincl_list): Add and use objfile parameter.
1699 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
1700 * dbxread.c (end_psymtab): Convert to use per-objfile data.
1701 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
1702 prototypes.
1703 * dwarfread.c (record_misc_function): Change name to record_minimal_
1704 symbol and use minimal symbol table throughout.
1705 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
1706 * dwarfread.c: Convert all references to builtin types to use the new
1707 lookup_fundamental_type function.
1708 * dwarfread.c (read_enumeration): Add and use objfile parameter.
1709 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
1710 types.
1711 * elfread.c (record_misc_function): Convert to use record_minimal_
1712 symbol.
1713 * elfread.c (elf_symtab_read): Add objfile parameter.
1714 * eval.c: Add prototypes for local functions and move some decls
1715 around to accomodate prototypes.
1716 * expprint.c: Add prototypes for local functions. Change references
1717 to misc function vector to minimal symbol table.
1718 * findvar.c (read_memory usages): Cast args.
1719 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
1720 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
1721 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
1722 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
1723 * gould-xdep.c: Minor whitespace change.
1724 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
1725 * hp300ux-xdep.c (store_inferior_registers): Returns void.
1726 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
1727 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
1728 * i386-tdep.c: Add prototypes for local functions.
1729 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
1730 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
1731 that defaulted to int.
1732 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
1733 i386_push_dummy_frame): Returns void.
1734 * i386-xdep.c (i386_register_u_addr): Declare params that default to
1735 int and explicitly declare return type as int.
1736 * i387-tdep.c: Minor formatting changes.
1737 * i960-tdep.c (leafproc_return): Convert from misc function vector
1738 use to minimal symbol table use.
1739 * infcmd.c: Add prototypes for local functions.
1740 * infcmd.c (continue_command, until_next_command, until_command,
1741 path_info, path_command): Make static.
1742 * infcmd.c (step_1, until_next_command): Convert from misc func
1743 vector to minimal symbol table use.
1744 * inflow.c: Add prototypes for local functions.
1745 * infptrace.c (store_inferior_registers): Returns void, not int.
1746 * language.c (_initialize_language): Use proper member of function
1747 union.
1748 * m2-exp.y: Add prototypes for local functions, convert misc function
1749 vector uses to minimal symbol table uses.
1750 * m2-exp.y (make_qualname, yyerror): Make static.
1751 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
1752 * m68k-pinsn.c: Add prototypes for local functions.
1753 * m68k-pinsn.c (print_insn): Cast args to read_memory.
1754 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
1755 * m68k-stub.c: Add prototypes.
1756 * m88k-pinsn.c (sprint_address): Convert from misc function vector
1757 use to minimal symbol table use.
1758 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
1759 * m88k-xdep.c (store_inferior_registers): Returns void.
1760 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
1761 * mach386-xdep.c (store_inferior_registers): Returns void.
1762 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
1763 * main.c: Add prototypes for local functions.
1764 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
1765 longjmp() result to (NORETURN void).
1766 * main.c (catch_errors): Prototype the 'func' parameter.
1767 * main.c (disconnect, stop_sig, do_nothin, float_handler):
1768 Takes an unused arg.
1769 * main.c (execute_command): Call the right member of the func union.
1770 * main.c (command_loop_marker, symbol_completion_function,
1771 command_loop): Make static.
1772 * main.c (command_line_input): Make linelength unsigned, cast arg
1773 to command_line_input().
1774 * main.c (add_info, add_com): Prototype the 'fun' parameter.
1775 * main.c (initialize_main): Call right member of function union.
1776 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
1777 * mem-break.c: Include symtab.h
1778 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
1779 * mips-xdep.c (store_inferior_registers): Returns void.
1780 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
1781 use to minimal symbol table use.
1782 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
1783 version.
1784 * mipsread.c (make_type): Remove, convert usages to init_type.
1785 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
1786 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
1787 vector use to minimal symbol table use.
1788 * parse.c: Add prototypes for local functions.
1789 * parse.c (xrealloc usages): Cast args.
1790 * parse.c (prefixify_expression, length_of_subexp): Make static.
1791 * parser-defs.h (PARSER_DEFS_H): Define when first included.
1792 * parser-defs.h: Convert function decls to prototype form.
1793 * partial-stab.h: Convert from misc function vector use to new minimal
1794 symbol table use.
1795 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
1796 the per-objfile copies.
1797 * printcmd.c: Add prototypes for local functions. Move some struct
1798 definitions around to accomodate prototypes.
1799 * printcmd.c (decode_format): Make static, change args oformat and
1800 osize to int from char.
1801 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
1802 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
1803 * printcmd.c (print_address_symbolic): Convert from misc function
1804 vector use to minimal symbol table use.
1805 * printcmd.c (address_info): Convert from misc function vector use
1806 to minimal symbol table use.
1807 * printcmd.c (delete_display, enable_display, disable_display_command):
1808 Make static.
1809 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1810 * procfs.c (fetch_core_registers): Add unused param reg_addr.
1811 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
1812 * pyr-xdep.c (store_inferior_registers): Returns void.
1813 * remote-mm.c (mm_load): symbol_file_add return value unused.
1814 * remote-nindy.c: Minor format change.
1815 * remote-vx.c (vx_load_command): symbol_file_add result unused.
1816 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
1817 * rs6000-xdep.c (store_inferior_registers): Returns void.
1818 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
1819 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
1820 vector use to minimal symbol table use.
1821 * solib.c: Add prototypes for local functions.
1822 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
1823 function vector use to minimal symbol table use.
1824 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAM.
1825 * solib.c (find_solib, shared_library_command): Make static
1826 * solib.c (read_memory, write_memory usages): Cast args.
1827 * solib.c (special_symbol_handling): Add function
1828 * source.c: Add prototypes for local functions.
1829 * source.c (select_source_symtab): Convert to scan objfiles.
1830 * source.c (open_source_file): Make static.
1831 * source.c (xrealloc usages): Cast args.
1832 * source.c (source_line_charpos): ifdef out, unused.
1833 * source.c (get_filename_and_charpos): Make static.
1834 * stack.c: Add prototypes for local functions.
1835 * stack.c (print_frame_info, frame_info): Convert from misc function
1836 vector use to minimal symbol table use.
1837 * symfile.c: Add prototypes for local functions.
1838 * symfile.c (compare_symbols): Make args const PTR's.
1839 * symfile.c (compare_psymbols, sort_pst_symbols) add.
1840 * symfile.c (sort_all_symtab_syms): Scan objfile list.
1841 * symfile.c (obsavestring): Add objfile parameter.
1842 * symfile.c (init_misc_bunches, prim_record_misc_function,
1843 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
1844 sort_misc_function_vector, compact_misc_function_vector): Remove
1845 * symfile.c (symbol_file_add_digested): Add function.
1846 * symfile.c (symbol_file_add): Returns struct objfile *.
1847 * symfile.c (symbol_file_command): Modify for state file use.
1848 * symfile.c (symfile_open): Add parameter "dumpable".
1849 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
1850 * symfile.c (load_command, add_symbol_file_command): Make static.
1851 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
1852 * symfile.c (rindex usages): Converted to strrchr.
1853 * symfile.c (allocate_psymtab): New
1854 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
1855 converted to minimal symbol table usage, but no obvious conversion.
1856 * symfile.c (free_all_symtabs): Remove.
1857 * symfile.c (_initialize_symfile): Use per-objfile info.
1858 * symfile.h: Rework the objfile structure to add per-objfile data
1859 objects (psymbol_obstack, symbol_obstack, type_obstack,
1860 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
1861 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
1862 Add prototypes to function declarations.
1863 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
1864 function vector usage to minimal symbol table usage.
1865 * symmisc.c (DEV_TTY): Define if not defined.
1866 * symmisc.c: Add local function prototypes.
1867 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
1868 printpsyms_command, print_objfiles, print_objfiles_command):
1869 Rework to use iterate_over_*
1870 * symtab.c: Add prototypes for local functions.
1871 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
1872 * symtab.c (lookup_partial_symtab): Scan through objfiles.
1873 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
1874 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
1875 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
1876 lookup_reference_type, lookup_member_type, allocate_stub_method,
1877 check_stub_method, create_array_type, smash_to_member_type,):
1878 Moved to gdbtypes.c
1879 * symtab.c (lookup_symbol): Some args are const.
1880 * symtab.h: All type related defs and structs moved to gdbtypes.h
1881 * symtab.h: Convert decls to prototypes.
1882 * target.c (noprocess): Make static.
1883 * target.h: Change decl's to prototypes.
1884 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
1885 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
1886 * utils.c (_initialize_utils): Use correct member of function union.
1887 * valarith.c: include gdbtypes.h
1888 * valops.c: include gdbtypes.h, add prototypes for local functions.
1889 * valops.c (value_push, value_arg_push, find_function_addr):
1890 Make static.
1891 * valops.c (value_string): Convert from misc function vector use
1892 to minimal symbol table use.
1893 * valops.c (check_field_in): Make arg const.
1894 * valprint.c: Add prototypes for local functions.
1895 * valprint.c (print_string): Make static
1896 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
1897 * values.c: Add prototypes for local functions.
1898 * values.c (value_headof): Convert from misc function vector to
1899 minimal symbol table.
1900 * xcoffexec.c: Add prototypes for local functions.
1901 * xcoffexec.c (exec_close, file_command, add_to_section_table):
1902 Make static.
1903 * xcoffexec.c (relocate_minimal_symbol): Add.
1904 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
1905 * xcoffread.c: Add prototypes for local functions.
1906 * xcoffread.c (sort_syms): Convert to scan objfiles.
1907 * xcoffread.c (read_xcoff_symtab): Make static.
1908 * xcoffread.c (various): Replace references to builtin types with
1909 calls to lookup_fundamental_type. Replace references to symbol_obstack
1910 and psymbol_obstack with pointers to the per-objfile copies.
1911 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
1912 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
1913 Make static.
1914 * xcoffread.c (init_stringtab): Add objfile parameter.
1915 * gdbtypes.c: New file
1916 * minsyms.c: New file
1917 * mmap-alloc.c: New file
1918 * mmap-sbrk.c: New file
1919 * objfiles.c: New file
1920 * state.c: New file
1921 * state.h: New file
1922
1923 Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
1924
1925 * Check in Fred Fish's changes in these modules. Fred
1926 will make ChangeLog entries for all of them. Update VERSION
1927 to 4.4.2.
1928
1929 Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
1930
1931 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
1932 into solib.h.
1933 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
1934 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
1935 value.h: Prototypes for static functions; lint.
1936 * gdbtypes.h: Empty file to ease transition.
1937
1938 Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
1939
1940 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
1941 inferior.h, language.h, signame.h, target.h, terminal.h,
1942 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
1943 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
1944 Lint.
1945 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
1946 signame.c, sparc-xdep.c: Prototypes for all static functions.
1947 Lint.
1948 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
1949 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
1950 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
1951 Remove to_call_function and target_call_function, since it
1952 always calls the same thing (call_function_by_hand).
1953 * core.c, exec.c, solib.c: Rename target_ops sections =>
1954 to_sections, etc.
1955 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
1956 target.h: target_kill takes no args.
1957 * language.c (language_info): Scaffolding to allow briefer
1958 messages when the current language changes. FIXME.
1959 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
1960 complaints about volatile functions.
1961 * xm-sysv4.h (HAVE_MMAP): Define.
1962
1963 Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
1964
1965 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
1966 to make prototypes for all functions declared here.
1967 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
1968 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
1969 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
1970 * ieee-float.h: Use PARAMS for prototypes; make some params const.
1971 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
1972 * m2-exp.y: Remove unused CONST; Rename OR and AND.
1973 * utils.c: Avoid declaring malloc and realloc. Lint.
1974 (request_quit): Accept signal-number parameter.
1975
1976 Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
1977
1978 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
1979 DIE's. Add new function read_tag_pointer_type() to read them.
1980
1981 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
1982 When creating a new user defined type, check to see if a partial
1983 type already exists, and if so, bash it to fit.
1984
1985 Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
1986
1987 * coffread.c (decode_base_type): Pass long, not union.
1988 Fix by Eric Valette, ev@chorus.fr.
1989
1990 Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
1991
1992 * elfread.c (elf_symtab_read): Fix code to correctly track
1993 changes in bfd for absolute symbols.
1994
1995 Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
1996
1997 * xm-vaxbsd.h: Close off comment.
1998
1999 Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
2000
2001 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
2002
2003 Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
2004
2005 * mips-tdep.c (mips_print_registers): Print correct register
2006 number for double pseudo-registers.
2007
2008 Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
2009
2010 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
2011 in the op$::OPERATOR. case. From Steven McCanne,
2012 <mccanne@horse.ee.lbl.gov>.
2013
2014 * exec.c (set_section_name): Pass arg to exec_files_info;
2015 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
2016
2017 Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
2018
2019 * main.c (print_gdb_version): Copyright msg: only this year.
2020 (cd_command): Avoid changing current_directory on error.
2021
2022 Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
2023
2024 * mipsread.c (parse_partial_symbols): Handle dependencies
2025 between partial symbol tables (when not doing stabs-in-ecoff).
2026 (This used to be handled by parse_fdr, but parse_fdr was
2027 incompatible with handling stabs-in-ecoff, so the code
2028 was re-written to not use parse_fdr. Unfortunately,
2029 the logic to handle dependencies was overlooked.)
2030
2031 Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2032
2033 * coffread.c (read_enum_type): Use the size of a target int when
2034 describing enum.
2035 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
2036 of target int.
2037 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
2038 * symtab.c (lookup_reference_type, lookup_ptr_type): use
2039 TARGET_PTR_BIT to determine size of a pointer
2040 * values.c (unpack_long): when unpacking a REF or a PTR don't
2041 assume the size of the type.
2042
2043 Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
2044
2045 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
2046 looking at its members. Improve guess between struct and union,
2047 only assuming union if multiple members have offsets of zero.
2048
2049 Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
2050
2051 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
2052 (This is just for clarity - and one day permitting us to
2053 change FP0_REGNUM from 38 to 32, which would make more sense.)
2054 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
2055 register numbers in stabs-in-ecoff get handled correctly.
2056
2057 Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
2058
2059 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
2060 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
2061 into BSD and Ultrix.
2062
2063 Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
2064
2065 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
2066
2067 Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
2068
2069 * Makefile.in: Increment version to 4.4.1.
2070 * main.c (print_gdb_version): Update copyright notice.
2071
2072 Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
2073
2074 * mipsread.c: Prepend "struct " to the names of structure
2075 types, and similarly for enums and unions. (This used
2076 to be done, but got lost in the re-write to "guess" the
2077 difference between enum/struct/union.)
2078 Also, guess that a tag is an enum if the first member
2079 has type btNil.
2080
2081 Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
2082
2083 * xm-vax.h: #ifndef ultrix around #include of endian.h and
2084 limits.h (sigh).
2085
2086 Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
2087
2088 * Projects: Patching executables is done.
2089 * Makefile.in (VERSION): Roll to gdb-4.4.
2090 * README, WHATS.NEW: Update for gdb-4.4.
2091
2092 * symfile.c (reread_symbols): Whenever we reread one object
2093 file's symbols, we must restart the scan, because the object_files
2094 chain has been permuted.
2095
2096 * exec.c (exec_files_info): Split out into print_section_info.
2097 Print BFD filename of each section if it's not the default one.
2098 * core.c (core_files_info): Call print_section_info.
2099
2100 * xm-vax.h: Include a few system header files whose definitions
2101 must precede defs.h.
2102 * language.c, language.h: Make some things const.
2103 * expression.h, main.c: const spreads like ooze.
2104
2105 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
2106 since BREAKPOINT values can be >0x80.
2107
2108 Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
2109
2110 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
2111
2112 Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
2113
2114 * sparc-pinsn.c: Remove kludge for preferring architectures.
2115 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
2116 and forever. Add `add' instruction to the set that get checked
2117 for a preceding `sethi' in order to print an absolute address.
2118 Corresponding changes in ../include/opcode/sparc.h needed
2119 to eliminate garbage instructions.
2120
2121 Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
2122
2123 * mipsread.c (parse_partial_symbols): Make sure partial
2124 symbols are created for external symbols (as used to be
2125 the case). This is a bit of a pain with the mips-coff.
2126 It uses a table which points to all of the external
2127 symbols belonging to a particular FDR or psymtab.
2128 Once we've generated this table, we might as well save
2129 it, and then use it in psymtab_to_symtab_1 to find
2130 the symbols to pass to parse_external().
2131 * symfile.c, symfile.c: New function start_psymtab_common
2132 to share the common parts of allocating a new psymtab
2133 for dbxread, mipsread (and later dwarfread). Its code
2134 was pulled out from start_psymtab in dbxread.c.
2135 * dbxread.c (start_psymtab): Use start_psymtab_common().
2136
2137 * valprint.c (val_print): If there is an error when trying
2138 to print a string, check to see if there really is a problem
2139 by reading just one character. If that works, assume
2140 things are ok.
2141
2142 Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
2143
2144 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
2145 cypress, v8 mnemonics in that order.
2146
2147 Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
2148
2149 * sparc-pinsn.c: Put the qsort() back in.
2150
2151 Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
2152
2153 * findvar.c (read_register, write_register): Handle machines
2154 where REGISTER_TYPE is not the same size as "int".
2155
2156 Handle debug symbols in dynamically loaded (relocated) code:
2157
2158 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
2159 offset to process_one_symbol.
2160 (process_one_symbol): Take new offset parameter. Add it into
2161 appropriate symbol types to relocate symbols to loaded addresses.
2162 Handle all possible symbol types, and complain() about types that
2163 we don't expect to see.
2164 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
2165 process_one_symbol (FIXME, should pass real offset).
2166
2167 Misc bugfixes:
2168
2169 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
2170 sal's PC value.
2171 (set_breakpoint, break_command_1, until_break_command,
2172 catch_command_1, breakpoint_re_set_one): Use it.
2173 * symtab.h (resolve_sal_pc): Declare.
2174 * infcmd.c (jump_command): Use resolve_sal_pc.
2175
2176 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
2177
2178 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
2179
2180 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
2181
2182 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
2183 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
2184 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
2185
2186 Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
2187
2188 * dbxread.c (process_one_symbol): Make a first cut at handling
2189 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
2190
2191 * symtab.c (find_pc_line): Fix stepping into and out of #included
2192 files.
2193
2194 Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
2195
2196 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
2197 no longer any need to copy ../include/opcode/* into gdb.
2198
2199 Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
2200
2201 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
2202
2203 Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
2204
2205 * valprint.c (type_print_base, type_print_method_args):
2206 Print C++ constructor methods without bogus "return type."
2207
2208 Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
2209
2210 * infptrace.c (child_xfer_memory): Parameter "target" should
2211 be a pointer to a structure, not the entire structure.
2212
2213 Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
2214
2215 * depend: Convert the couple of references to ansidecl.h that
2216 used the local gdb version to use the ../include version.
2217
2218 Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
2219
2220 * procfs.c
2221 (child_xfer_memory): Takes pointer to a struct, not entire struct.
2222 (inferior_proc_init): Fix non-ANSI version of args.
2223 (attach): Call print_sys_errmsg with correct number of args.
2224 (mappingflags): Make static, does not need to be global.
2225
2226 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
2227 not the entire struct itself.
2228
2229 * valops.c (value_assign): Cast some args to modify_field() and
2230 {read,write}_register_bytes() correctly.
2231
2232 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
2233
2234 * Makefile.in (MALLOCSRC): Removed reference to removed local
2235 copy of ansidecl.h.
2236
2237 * dwarfread.c (list_in_scope): Needs an initial value, use file
2238 scope.
2239
2240 Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
2241
2242 * main.c (main): Make option_index local to keep new getopt happy.
2243 main.c, solib.c, Makefile.in: Update copyright notices.
2244
2245 Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
2246
2247 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
2248
2249 Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
2250
2251 * Makefile.in (HFILES): Add partial-stab.h.
2252
2253 Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
2254
2255 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
2256 New files for stratus. Not complete enough to actually build
2257 on the Stratus machine; that awaits copyright assignment for
2258 i860 changes.
2259
2260 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
2261 for getting custom flags into CFLAGS when doing makes.
2262
2263 * configure.in: Add config information for stratus.
2264
2265 Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
2266
2267 * dbxread.c (process_one_symbol): Pass address of structure
2268 to complain(), rather than the whole structure.
2269
2270 Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
2271
2272 * solib.c (solib_add_common_symbols): Only compile in when not
2273 using SVR4 style shared libraries.
2274
2275 Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
2276
2277 * dwarfread.c (locval): Add offreg flag to indicate location
2278 values that are computed off a base register.
2279
2280 * dwarfread.c (new_symbol): Rework TAG_global_variable and
2281 TAG_local_variable cases to account for static variables
2282 within function scopes.
2283
2284 Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
2285
2286 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
2287 doesn't exist on some systems.
2288
2289 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
2290 nexting over recursive function calls.
2291
2292 * target.c (target_read_string): Create this routine to read null
2293 terminated strings from the target. It deals with running off the
2294 end of memory elegantly as well. solib.c (find_solib): Use
2295 target_read_string() to avoid problems with running off the end of
2296 memory.
2297
2298 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
2299 that reference pgrp_inferior.
2300
2301 Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
2302
2303 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
2304 mips-tfile has been hacked to act more "traditionally."
2305 * dbxread.c: Fixed typo in comment.
2306
2307 Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
2308
2309 * mips-tdep.c (mips_skip_prologue): Add some number of
2310 'sw' instructions before 'addiu' adjusts the stack.
2311
2312 Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
2313
2314 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
2315 freescope, buildblock closescope, record_line, add_symbol_to_list,
2316 gatherblocks, make_blockvector): Extensive changes to switch
2317 to generic symbol table building code in buildsym.c. Remove
2318 scope tree structures and functions, symbol table building
2319 functions, and lots of other small changes.
2320
2321 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
2322 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
2323
2324 Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
2325
2326 * buildsym.c (cleanup_undefined_types): Add support for enums.
2327 This fixes the 'GDB internal error. cleanup_undefined_types with
2328 bad type' problem.
2329
2330 Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
2331
2332 * dbxread.c: detect gcc2 compilations.
2333
2334 Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
2335
2336 * sparc-pinsn.c: Rename bitfields that overlap with macro names
2337 in ../include/opcode/sparc.h.
2338
2339 Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
2340
2341 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
2342 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
2343 to reflect actual locations of opcode files, so TAGS target will
2344 be buildable.
2345
2346 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
2347
2348 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
2349 code.
2350
2351 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
2352 dereferencing to access the correct elements.
2353
2354 * valops.c (value_addr): Declare return type of external func
2355 value_copy().
2356
2357 * xcoffread.c: Undefine next_symbol_text before redefining it.
2358
2359 For older changes see ChangeLog-9091
2360 \f
2361 Local Variables:
2362 mode: indented-text
2363 left-margin: 8
2364 fill-column: 74
2365 version-control: never
2366 End:
This page took 0.078921 seconds and 4 git commands to generate.