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