* xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8112a711
JK
1Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
2
3 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
4
5 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
6 not just 50 symbols.
7 (symtbl_num_syms): New variable.
8 (read_xcoff_symtab): Set it.
9 (read_symbol_nvalue): Check for bad symno.
10 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
11 always symtbl.
12
e829d983
SG
13Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
14
15 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
16 This is defined in defs.h if necessary.
17 * vx-share/vxWorks.h: Remove #defs of min and max.
18 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
19 vx-share/xdr_rdb.c: include defs.h.
20
c8ade719
JK
21Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
22
23 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
24 of while condition.
25
26 * xcoffread.c (enter_line_range): complain() on bad endoffset.
27 xcoffread.c: Doc fixes.
28
29Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
30
31 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
32 xcoffexec.c (xcoff_relocate_core): New function.
33 (text_adjustment): Removed.
34 (add_vmap): Return the vmap.
35 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
36
37Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
38
39 * xcoffsolib.h: Add objfile member to struct vmap.
40 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
41 xcoffexec.c (add_vmap): Allocate objfiles here.
42
48a522d9
JG
43Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
44
01deac12
JG
45 Support 68000 series without floating point.
46
47 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
48 * tm-68k-nofp.h: New file, lacks 68881 support.
49 * config/m68k-nofp.mt: New file.
50
84a05e52
JG
51Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
52
53 Remove a few remaining underscore/no-underscore remnants from
54 config files.
55
56 * config/{m68k-un.mt, sparc-un.mt}: Remove.
57 * config/m68k-noun.mt: Rename to m68k-fp.mt.
58 * config/sparc-noun.mt: Rename to sparc-em.mt.
59 * tm-68k-noun.h, tm-spc-noun.h: Remove.
60 * tm-68k-un.h: Rename to tm-68k-fp.h.
61 * tm-spc-un.h: Rename to tm-spc-em.h.
62 * tm-sun4sol2.h: Cleanup.
63 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
64
961ee88e
JG
65Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
66
67 * symmisc.c (std_in, std_out, std_err): Move initializations
68 to runtime code, in case they aren't constant.
69
a8172eea
RP
70Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
71
aa8f3210
RP
72 * symtab.c (find_pc_symtab): some object file formats, notably
73 mips, have holes in the address ranges of symtabs. Change
74 this algorythm from first hit to tightest fit.
75
a8172eea
RP
76 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
77 fence post without finding the enclosing function, then print a
78 warning.
79
bd5d07d9
FF
80Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
81
5e81259d
FF
82 * utils.c (fputs_demangled, fprint_symbol): Remove.
83 * utils.c (fprintf_symbol_filtered): New function which combines
84 the functionality of fputs_demangled and fprint_symbol. Uses a
85 caller provided language parameter to select the appropriate
86 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
87 * defs.h (enum language): Move further up in file so enum can
88 be used in prototypes.
5e81259d
FF
89 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
90 * defs.h (fprintf_symbol_filtered): Add prototype.
91 * c-typeprint.c (cp_type_print_method_args): Replace calls to
92 fputs_demangled with call to fprintf_symbol_filtered.
93 * cp-valprint.c (demangle.h): Include
94 * cp-valprint.c (cp_print_value_fields): Replace calls to
95 fprint_symbol with calls to fprintf_symbol_filtered.
96 * printcmd.c (print_frame_args): Replace call to fprint_symbol
97 with call to fprintf_symbol_filtered.
bd5d07d9
FF
98 * stack.c (print_frame_info): Remove obsolete code so we don't
99 have to update fputs_demangled usage in it.
100 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
101 to pass to fprintf_symbol_demangled and initialize it from the
102 symbol's language. Replace calls to fputs_demangled with calls
103 to fprintf_symbol_filtered.
104 * symtab.c (find_methods): Replace call to fputs_demangled with
105 call to fprintf_symbol_filtered.
106 **** start-sanitize-chill ****
107 * ch-valprint.c (demangle.h): Include.
108 * ch-valprint.c (chill_print_value_fields): Replace call to
109 fprint_symbol with call to new fprintf_symbol_filtered.
110 **** end-sanitize-chill ****
bd5d07d9 111
f77ad505
FF
112Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
113
0b96ed06
FF
114 * Makefile.in (VERSION): Bump version to 4.8.2.
115
f77ad505
FF
116 * main.c (source_command): Require an explicit pathname of file
117 to source, since previous behavior of defaulting to gdb init file
118 was troublesome and undocumented.
119 * printcmd.c (disassemble_command): Add missing '{}' pair to
120 else with two statements. Bug reported by Stephane Tsacas
121 <slt@isoft.fr>.
122 * symtab.c (find_pc_line): Don't complain about zero length or
123 negative length line numbers for the moment, since we may not own
124 the terminal when called, such as when single stepping. (FIXME)
125 * language.h (CAST_IS_CONVERSION): True if current language is
126 C++ as well as C. Fix from Peter Schauer.
127 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
128 Use STREQN macro rather than bare '!strncmp()'.
129 * environ.c (unset_in_environ): Avoid use of memcpy on
130 overlapping memory regions, as suggested by Paul Eggert
131 <eggert@twinsun.com>.
132 * c-exp.y (%union struct): Remove unused ulval as suggested
133 by Paul Eggert <eggert@twinsun.com>.
134
135Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
136
137 * main.c (gdbinit): Make static.
138 * main.c (inhibit_gdbinit): Move to file scope.
139 * main.c (main): Remove local inhibit_gdbinit.
140 * main.c (source_command): Don't source '.gdbinit' file by
141 default if gdb has been told to ignore it.
142
aecc5459
ILT
143Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
144
145 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
146 3.63.
147
19327ea5
JG
148Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
149
aecc5459
ILT
150 * printcmd.c (print_address_symbolic): Only print if offset
151 is shorter than max_symbolic_offset.
152 (initialize_printcmd): `set print max-symbolic-offset'.
153
946f014b
JG
154 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
155 (examine_tag): Use it.
156 (read_register_stack): Only look in the local registers for a
157 memory address if it's between rfb and rsp; go to memory otherwise.
158 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
159 (reginv_com): Remove ancient kludge command.
160
81029114
RP
161Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
162
24365af9
RP
163 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
164 irix4 will again compile.
165
5870d848
RP
166 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
167
81029114
RP
168 * configure.in: accept mips-sgi-irix4* for irix4.
169
170Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
171
172 * z8k-tdep.c (print_register_hook): Lint.
173
4966c17c
JG
174Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
175
176 Lint fixes from Paul Eggert (eggert@twinsun.com):
177
178 * command.c (do_setshow_command): var_uintegers are unsigned.
179 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
180 unsigned, since they use hex values with the high bit set.
181
83386662
FF
182Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
183
2456bacb
FF
184 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
185 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
186 access symbol name.
e5bb7e61 187 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 188 macro definitions in parenthesis.
e5bb7e61 189
83386662
FF
190 * dbxread.c (dbx_symfile_init): Catch the case where there is
191 no string table, but the only way we find out is by reading zero
192 bytes from EOF.
193
69a272c4
FF
194Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
195
196 * dbxread.c (dbx_symfile_init): Make size of the string table
197 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
198 offset to the string table is nonzero and handle the nonexistant
199 string table case, should it occur. Ensure that the string table
200 size read from the file is reasonable, with a minimum lower bound
201 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
202
b010e283
ILT
203Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
204
205 * Makefile.in: Changes to build testsuite correctly.
206 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
207 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
208 (TARGET_FLAGS_TO_PASS): New variable.
209 (SUBDIRS): Added testsuite.
210 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
211 testsuite is compiled with CC_FOR_TARGET rather than CC.
212
45364c8a
FF
213Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
214
6985bc54
FF
215 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
216 reported by mycroft@gnu.ai.mit.edu.
217
218 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
219 * configure.in (vax-*-ultrix2*): New triplet.
220 * config/vaxult2.mh: New file.
221 * xm-vaxult2.h: New file.
222
45364c8a
FF
223 * c-exp.y (parse_number): Change high_bit to unsigned.
224 * demangle.c: Change all references to cfront to ARM, since the
225 actual algorithm is the one specified in the Annotated Reference
226 Manual. This was confusing users into thinking that full cfront
227 support was implemented.
228 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
229 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
230 directly to lookup_struct_elt_type, which will do the
231 dereferencing itself.
232 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
233 NULL dereferencing bug for unnamed structs, comment out
234 questionable code.
235
fefe2ed9
JG
236Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
237
1d9449ab
JG
238 * coffread.c (process_coff_symbol): Change PCC argument correction
239 so that it only happens on big-endian targets; so that it only
240 happens if the short or char argument is aligned on an int
241 boundary; and so that it changes the location, rather than the
242 type, of the argument. These changes tend to parallel similar
243 (old) changes in stabsread.c.
244
245 * coffread.c (coff_read_enum_type): Use the specified size for
246 enums, don't assume that they are int-sized.
247
248 * c-valprint.c (c_val_print): Don't assume enums are the same as
249 ints.
250
fefe2ed9
JG
251 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
252 Rendell, <michael@mercury.cs.mun.ca>.
253
58a66e24
FF
254Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
255
256 * language.h (local_decimal_format_custom): Add prototype.
257 * language.c (local_decimal_format_custom): Add function, bug
258 reported by Robert R. Henry (rrh@tera.com).
259
9116f7c7
JG
260Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
261
262 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
263 by Josef Leherbauer, joe@takeFive.co.at.
264
265Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
266
267 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
268 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
269 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
270 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
271 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
272 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
273 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
274 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
275
8fbdca53
FF
276Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
277
f31e2e7a
FF
278 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
279 of demangled name fields to NULL if no demangling exists for
280 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
281 symbols if their language is known at the time they are created,
282 but sometimes the language is not known until later.
283
8fbdca53
FF
284 **** start-sanitize-chill ****
285 * ch-typeprint.c (chill_print_type_base): Name changed to
286 chill_type_print_base to match pattern for C and C++ names.
287 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
288 to be consistent with other usages.
289 * ch-typeprint.c (chill_type_print_base): Add support for
290 printing Chill STRUCT types.
291 * ch-valprint.c: Include values.h.
292 * ch-valprint.c (chill_print_value_fields): New function and
293 prototype for printing Chill STRUCT values.
294 * ch-valprint.c (chill_val_print): Fix call to val_print_string
295 that was being called with two args instead of three.
296 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
297 to print Chill STRUCT values.
298 **** end-sanitize-chill ****
299
b12529c1
MW
300Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
301
302 * configure.in: added testsuite to configdirs.
303
c2dc518b
MS
304Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
305
306 * doc/stabs.texi: The `this' pointer is now known by the name
307 `this' instead of `$t'.
308
b6236d6e
FF
309Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
310
bb6e8fe6
FF
311 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
312 references of TAG_string_type DIEs in user defined types.
313 **** start-sanitize-chill ****
b6236d6e
FF
314 * ch-lang.c (chill_create_fundamental_type): Track compiler
315 change that now emits debugging info with the type long for Chill
316 longs.
bb6e8fe6 317 **** end-sanitize-chill ****
b6236d6e 318
c2a0f1cb
ILT
319Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
320
321 * remote-mips.c: New file; implements MIPS remote debugging
322 protocol.
323 * config/idt.mt: New file; uses remote-mips.c
324 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
325
326 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
327 floating point coprocessor.
328 (mips_push_dummy_frame): If not mips_fpu, don't save floating
329 point registers.
330 (mips_pop_frame): If not mips_fpu, don't restore floating point
331 registers.
332 (_initialize_mips_tdep): New function; let the user reset mips_fpu
333 variable.
334 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
335 mips_fpu, don't use fp0 as floating point return register.
336 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
337 registers.
338
bf3d2b75
MW
339Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
340
341 * gdb/testsuite: made modifications to testcases, etc., to allow
342 them to work properly given the reorganization of deja-gnu and the
343 relocation of the testcases from deja-gnu to a "tool" subdirectory.
344
19fa4a0a
MW
345Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
346
347 * gdb/testsuite: Initial creation of gdb/testsuite.
348 Migrated dejagnu testcases and support files for testing nm to
349 gdb/testsuite from deja-gnu. These files were moved "as is"
350 with no modifications. This migration is part of a major overhaul
351 of dejagnu. The modifications to these testcases, etc., which
352 will allow them to work with the new version of dejagnu will be
353 made in a future update.
354
cb46c402
JG
355Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
356
357 * NEWS: Add reminders for next release.
358
254dec35
ILT
359Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
360
361 * mipsread.c (parse_lines): Correct check for files compiled with
362 -g1.
363
dba02c60
JG
364Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
365
366 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
367
c7cb1025 368Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
369
370 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 371 * README, NEWS: Update for release.
ead97959 372
b9163d1a
SG
373Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
374
375 * am29k-pinsn.c (print_insn): Minor nits with const.
376 * am29k-tdep.c: More minor nits with arg types for
377 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
378
5e3d0ab0
JG
379Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
380
381 * gcc.patch: Update for a different GCC (G++) bug.
382 * main.c (print_gdb_version): Update copyright year to 1993.
383 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
384 conditionalize this file on it. FIXME, right way is to split
385 these into two config files.
386 (ATTACH_DETACH): Define for BSD 4.4
387 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
388 (U_REGS_OFFSET): Revise for 4.4.
389 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
390 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
391 LONG_MAX into this file to avoid cpp "redefinition" warnings.
392
add04f8b
RP
393Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
394
395 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
396 caddr_t.
397
c5c00171
JG
398Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
399
961ccde6
JG
400 * c-lang.c (c_printstr): Bugfix for length==0 case.
401
c5c00171
JG
402 * c-lang.c (c_printstr): If a C string ends in a null, don't
403 print the null.
404
eece984d
SG
405Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
406
407 * defs.h (STRCMP): Make it work for unsigned chars.
408
ec4bf6a0
JG
409Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
410
411 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
412 * config/hp300bsd.mh (REGEX, REGEX1): Define.
413 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
414 define to kludge the large opcode table into two smaller tables,
415 since GCC take exponential space to build the table. Lint.
416 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
417
0ae975ea
JG
418Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
419
be220da1
JG
420 * Makefile.in (VERSION): Roll to 4.7.9.
421 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
422 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
423 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
424 * remote.c (alarm): Move declaration to global level, before
425 first reference to it.
426 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
427 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
428
8631194d
RP
429Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
430
fce7f2d9
RP
431 * remote.c (readchar): forward declare alarm which otherwise looks
432 like an undeclared variable to gcc.
433
040b9597
RP
434 * dbxread.c (process_one_symbol): cast enum value N_SO into int
435 when comparing against an int. Avoids superfluous warning from
436 vax ultrix 4.2 cc.
437
9549404e
RP
438 * inflow.c (set_sigint_trap): add cast to assignment from signal.
439 Avoids superfluous warnings from some systems and/or compilers
440 (like vax ultrix 4.2.)
441
8631194d
RP
442 * language.c (struct op_print unk_op_print_tab): use the enum
443 values rather naked zeros as initializers. Avoids warnings from
444 ultrix type compilers.
445
f4ed8840
JG
446Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
447
448 * Makefile.in (VERSION): Roll to 4.7.6.
449 (SFILES_SUBDIR): Add 29k-share/udi_soc.
450 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
451 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
452 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
453 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
454 (depend): Fix bug where nm-files in config files weren't noticed.
455 (make-proto-gdb-1): Avoid changing directories while building new
456 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
457
7c622b41
JG
458Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
459
460 * remote.c: Improve error recovery. Allow user to break out
461 of initial connection attempt with INTERRUPT. Treat a timeout
462 while waiting for remote packet like a retry, unless the remote
463 side is actively running user code. Fix a few long printf_filtered's.
464
465 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
466 trampoline symbols.
467
468 * buildsym.c (start_subfile): Allow null file name.
469
e9916390
RP
470Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
471
472 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
473 expects a pointer to complaint rather than a complaint
474 structure.
6d4ea3a5
RP
475 (process_linenos): free the previously allocated subfile name,
476 then allocate the new one from the heap.
e9916390 477
256b4f37
SC
478Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
479
480 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
481
e5eeaaf8
JG
482Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
483
256b4f37
SC
484 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
485 Previously, would bogusly index off the bottom of type_vector.
486 (rs6000_builtin_type): Accept type number as argument.
487 (read_type, case '-'): Handle negatives like any other type number.
488
489 * symfile.c (deduce_language_from_filename): Handle null name.
490
015605c5
JG
491 * mips-tdep.c (isa_NAN): Fix byte order dependency.
492 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
493 fixed by sato@sm.sony.co.jp.
494
e5eeaaf8
JG
495 * xcoffread.c (parmsym): Don't use an initializer to set up
496 this struct symbol. Set it up in initialize_xcoffread.
497 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
498 works on real rs/6000 target with #ifndef FAKING_RS6000.
499
dd469789
JG
500Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
501
502 * stabsread.c (rs6000_builtin_type): Move function from
503 xcoffread.c:builtin_type.
504 * xcoffread.c (builtin_type): Move to stabsread. Remove
505 IBM6000_HOST dependency. Move misplaced comments.
506 (various): Change printf's to complaints.
507 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
508 objfile argument to read_type calls under #if 0.
509 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
510 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
511 * Makefile.in: xcoffread.o is not built by default.
364c1151 512 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
513 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
514 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
515 IBM6000_TARGET.
516
733a94e8
SG
517Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
518
519 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
520 VALUE_LVAL to be lval_memory so that we don't try to modify wild
521 register numbers when user tries to modify elements in structs
522 passed as arguments.
523 * inflow.c (child_terminal_info): Move banner outside of system
524 specific #ifdefs.
525 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
526 passes struct/union arguments by address.
527
528Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
529
14b1f0d9 530 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
531 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
532 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
533 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
534
79533adf
JG
535Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
536
537 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
538 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
539
2368ffb6
ILT
540Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
541
542 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
543 cc debugging output.
544
2a021f21
JG
545Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
546
547 * stabsread.c (define_symbol): Complain about unrecognized names
548 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
549 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
550 (read_cpp_abbrev): Don't use the class name as part of the
551 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
552 abbrevs. Inspired by Mike Tiemann.
553 (read_tilde_fields): Comment. Remove ancient dead code.
554 Remove erroneous but non-dead code. Simplify. Add complaints.
555 (in general): Remove extraneous (parentheses) in return
556 statements.
557
c653bc6d
JG
558Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
559
931bf12a
JG
560 * coffread.c (coff_lookup_type): Fix fencepost error reported
561 by Art Berggreen, <arg@opal.acc.com>.
562
c653bc6d 563 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 564 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
565
566 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
567 test, which is apparently left over from when we used native
568 include files and couldn't depend on the member names being there.
569 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
570
571Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
572
573 * mipsread.c: Major overhaul to use new BFD symbol table reading
574 routines. Now swaps information as it is needed, rather than
575 swapping everything when the file is read.
576
b076f024
JG
577Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
578
579 * Makefile.in (TARDIRS): Add sparclite demo dir.
580 (*.tab.c): Change dependency on Makefile to depend on
581 Makefile.in, otherwise it always rebuilds after configuring.
582 Force output *.tab.c file into current directory even in "make"
583 versions that rewrite dependent file names used in command lines.
584
585 * TODO: Remove some things we did.
586 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
587 * os68k-xdep.c: Remove; useless file (os68k is a target only).
588 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
589 * symtab.h: Eliminate unnamed unions and structs.
590
ad89bdfd
JG
591Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
592
593 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 594
ca5a72cd
JG
595Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
596
597 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
598 re-evaluating symbol pointers.
599
9da75ad3
FF
600Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
601
602 * c-exp.y (lcurly, rcurly): New nonterminals.
603 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
604 constructs.
605 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
606 made function static.
607 * parse.c (struct funcall): Moved struct def from parser-defs.h.
608 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
609 * parse.c (start_arglist):
610 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
611 * parser-defs.h (struct funcall): Moved struct def to parse.c.
612 * parser-defs.h (funcall_chain): Moved to parse.c.
613 * printcmd.c (print_frame_nameless_args): Fix prototype.
614 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
615 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
616 * valops.c (typecmp): Moved prototype from values.h.
617 * value.h (typecmp): Moved prototype to valops.c, made static.
618 **** start-sanitize-chill ****
619 * ch-exp.y (yylex): Change way control sequences are disabled.
620 **** end-sanitize-chill ****
621
58bcc08c
JG
622Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
623
624 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
625
fee754c9
ILT
626Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
627
628 * mipsread.c (upgrade_type): Build array types correctly, using
629 create_range_type and create_array_type.
630
7dc15bb7
JG
631Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
632
58bcc08c
JG
633 * remote-nindy.c: Cleanup.
634
1b6a2087
JG
635 * infrun.c (wait_for_inferior): When rolling back the PC after
636 a breakpoint, call write_pc so that NPC gets rolled back as well
637 (for the 29K).
638
d122f257
JG
639 * blockframe.c (inside_entry_file, inside_main_func,
640 inside_entry_func): PC of zero is always "bottom of stack".
641
7dc15bb7
JG
642 * printcmd.c (print_frame_args, print_frame_nameless_args):
643 Let print_frame_nameless_args decide whether there are any,
644 laying groundwork for possibly later printing 29K args for
645 functions where we have tag words but no symbols.
646
2b21d8aa
RP
647Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
648
649 * Makefile.in: fix GDB doc targets for new doc subdir structure
650
07c2fa3e
JG
651Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
652
653 * stack.c (parse_frame_specification): Parse as many arguments
654 as there are (up to MAXARGS). Pass all of them in argc, argv
655 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
656 many there were, onto SETUP_ARBITRARY_FRAME.
657 * tm-mips.h, tm-sparc.h: Corresponding changes.
658 * mips-tdep.c, sparc-tdep.c: Ditto.
659
6edd74ae
JG
660Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
661
662 * hp300ux-nat.c: Update copyrights.
663 * mipsread.c (parse_partial_symbols): Complain about block
664 indexes that go backwards. Fix from Peter Schauer.
665 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
666 symbol-file that has no linkage symbols to be read.
667 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
668 from tm- file to xm-file, since they're host dependent.
669 * valarith.c (value_binop): Typo.
797bc12b 670
6edd74ae 671Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
672
673 * sparclite/aload.c: Add copyleft.
674 * sparclite/crt0.s: Add comment at beginning.
675
2431d063
SC
676Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
677
678 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
679 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
680
d112a0c6
MT
681Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
682
7cb0f870
MT
683 * values.c (value_headof): Fix typo in which VTBL and ARG were
684 being confused for one another.
685
a163ddec
MT
686 * valops.c (typecmp): Now static.
687
edf67bd1
MT
688 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
689 baseclass--we don't always inherit its virtual function table
690 pointer.
691
271e5030
MT
692 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
693 pointer correctly in case value_struct_elt moves it around.
694
695 * valops.c (typecmp): Now static. Also, now groks references
696 better.
697
d112a0c6 698 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 699 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 700
3d9b9577
JG
701Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
702
ec68a93f
JG
703 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
704 to avoid "too much defining" error from native C compiler (!).
705
3d9b9577
JG
706 * Makefile.in (HFILES): Add typeprint.h.
707 * typeprint.[ch]: Update copyrights.
708
926d7800
JG
709Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
710
bdec39b3
JG
711 * Makefile.in: Update to match doc/ subdir changes.
712
92063c3e 713 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
714 * config/go32.mh: Remove nonexistent "native" support.
715
2a770cac
JG
716 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
717 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
718 * m88k-tdep.c (next_insn): Lint, cleanup.
719 (store_parm_word): Lint.
720
926d7800
JG
721 * README: Fix typo (reported by karl@hq.ileaf.com).
722
2fcc38b8
FF
723Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
724
725 * expression.h (BINOP_CONCAT): Document use for self concatenation
726 an integral number of times.
727 * language.c (binop_type_check): Extend BINOP_CONCAT for self
728 concatenation case.
729 * valarith.c (value_concat): Rewrite to support self
730 concatenation an integral number of times.
731 **** start-sanitize-chill ****
732 * Makefile.in (ch-exp.tab.c): Change "expect" message.
733 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
734 eliminate hundreds of spurious shift/reduce and reduce/reduce
735 conflicts that mask the 5 real ones.
736 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
737 * ch-exp.y (integer_literal_expression): Remove production,
738 no longer used.
739 **** end-sanitize-chill ****
740
741Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
742
743 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
744 implied that "no side effects" was nonfunctional.
745 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
746 character string and bitstring concatenation.
747 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
748 * expression.h (exp_opcode): Add BINOP_CONCAT.
749 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
750 * language.c (string_type): Add function to determine if a type
751 is a string type.
752 * language.c (binop_type_check): Add case for BINOP_CONCAT.
753 * valarith.c (value_concat): New function to concatenate two
754 values, such as character strings or bitstrings.
755 * valops.c (value_string): Remove error stub and implement
756 function body.
757 * value.h (value_concat): Add prototype.
758 **** start-sanitize-chill ****
759 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
760 * ch-exp.y (yylex): Recognize SLASH_SLASH.
761 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
762 BINOP_CONCAT.
763 **** end-sanitize-chill ****
764
765Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
766
767 * c-exp.y (exp): Add production to support direct creation
768 of array constants using the obvious syntax.
769 * c-valprint.c (c_val_print): Set printed string length.
770 * dwarfread.c (read_tag_string_type): New prototype and
771 function that handles TAG_string_type DIEs.
772 * dwarfread.c (process_dies): Add case for TAG_string_type
773 that calls new read_tag_string_type function.
774 * expprint.c (print_subexp): Add support for OP_ARRAY.
775 * gdbtypes.c (create_range_type, create_array_type): Inherit
776 objfile from the index type.
777 **** start-sanitize-chill ****
778 * ch-typeprint.c (chill_print_type): Add case for
779 TYPE_CODE_STRING.
780 * ch-valprint.c (chill_val_print): Fix case for
781 TYPE_CODE_STRING.
782 **** end-sanitize-chill ****
783
201c1243
ILT
784Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
785
786 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
787 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
788 include/coff/mips.h.
789
c4413e2c
FF
790Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
791
792 * c-exp.y (exp:STRING): Convert C strings into array-of-char
793 constants with an explicit null byte terminator. OP_STRING is
794 now used for real string types.
795 * c-lang.c (builtin_type_*): Move declarations to lang.c since
796 they are used by all languages.
797 * c-lang.c (_initialize_c_language): Move initializations of
798 builtin_type_* to lang.c.
799 * c-typeprint.c (c_type_print_varspec_prefix,
800 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
801 to TYPE_CODE_STRING.
802 * c-valprint.c (c_val_print): Change the way character arrays
803 are printed as strings to be consistent with the way strings
804 are printed when pointer-to-char types are dereferenced.
805 Remove test of print_max before calling val_print_string, which
806 now does it's own test.
807 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
808 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
809 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
810 * gdbtypes.c (builtin_type_*): Add declarations moved from
811 c-lang.c.
812 * gdbtypes.c (create_string_type): New function to create real
813 string types.
814 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
815 renamed to TYPE_CODE_STRING.
816 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
817 builtin_type_* types moved from c-lang.c.
818 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
819 to TYPE_CODE_STRING.
820 * gdbtypes.h (builtin_type_string): Add extern declaration.
821 * gdbtypes.h (create_string_type): Add prototype.
822 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
823 renamed to TYPE_CODE_STRING.
824 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
825 TYPE_CODE_STRING.
826 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
827 renamed to TYPE_CODE_STRING.
828 * parse.c (length_of_subexp, prefixify_subexp): Add case for
829 OP_ARRAY.
830 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
831 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
832 to TYPE_CODE_STRING.
833 * valops.c (allocate_space_in_inferior): New function and
834 prototype, using code ripped out of value_string.
835 * valops.c (value_string): Rewritten to use new function
836 allocate_space_in_inferior, but temporarily disabled until some
837 other support is in place.
838 * valops.c (value_array): New function to create array constants.
839 * valprint.c (val_print_string): Add comment to document use,
840 complete rewrite to fix several small buglets.
841 * value.h (value_array): Add prototype.
842 * value.h (val_print_string): Change prototype to match rewrite.
843 **** start-sanitize-chill ****
844 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
845 * ch-exp.y (match_character_literal): Disable recognition of
846 control sequence form of character literals and document why.
847 **** end-sanitize-chill ****
848
6d1e8f54
SG
849Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
850
851 * nindy-share/nindy.c: Add comments to #endif's to clarify
852 grouping.
853
854 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
855 read_memory to get byte order right.
856 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
857 anymore. This is done in paread.c now. We expect unwind info
858 to hang off of objfiles, and search all of the objfiles when until
859 we find a match.
860 * (skip_trampoline_code): Cast arg to target_read_memory.
861 * objfiles.h (struct objfile): Add new field obj_private to hold
862 per object file private data (unwind info in this case).
863 * paread.c (read_unwind_info): New routine to read unwind info
864 for the objfile. This data is hung off of obj_private.
865 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
866 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
867 make this easier to access.
868
c7da3ed3
FF
869Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
870
871 * c-valprint.c (cp_print_class_member): Add extern decl.
872 * c-valprint.c (c_val_print): Extract code for printing methods
873 and move it to cp_print_class_method in cp-valprint.c.
874 * c-valprint.c (c_val_print): Extract code to print strings and
875 move it to val_print_string in valprint.c.
876 * cp-valprint.c (cp_print_class_method): New function using
877 code extracted from c_val_print.
878 * valprint.c (val_print_string): New function using code
879 extracted from c_val_print.
880 * value.h (val_print_string): Add prototype.
881 **** start-sanitize-chill ****
882 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
883 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
884 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
885 CHECKBUF, growbuf_by_size): New variables, macros, and support
886 functions for implementing a dynamically expandable temp buffer.
887 * ch-exp.y (match_string_literal): New lexer function.
888 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
889 removed and replaced with new CHECKBUF macro.
890 * ch-exp.y (yylex): Call match_string_literal when appropriate.
891 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
892 **** end-sanitize-chill ****
893
0213d96f
SG
894Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
895
78205fb6
SG
896 * Makefile.in: Add info for paread.o.
897 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
898
0213d96f
SG
899 * blockframe.c (frameless_look_for_prologue): Correct the
900 comment.
901 * gdbtypes.h, gdbtypes.c: Use const in decl of
902 cplus_struct_default, now that pa-gas assembler has been fixed.
903 * hppah-nat.c: Formatting.
904 * hppah-tdep.c: Remove lots of useless externs for variables we
905 don't use.
906 * (find_unwind_entry): Speed up by using binary search, and a one
907 entry cache.
908 * (rp_saved): New routine to see what unwind info says about RP
909 being saved on the stack frame.
910 * (frame_saved_pc): Look for prologue to see if we need to
911 examine the stack for the saved RP or not.
912 * (init_extra_frame_info): Check for prologue, instead of
913 framesize to determine if we are frameless or not.
914 * (frame_chain_valid): Stop backtraces when we run into _start.
915 * (push_dummy_frame): Reformat to make more readable.
916 * (find_dummy_frame_regs): ditto.
917 * (hp_pop_frame): ditto.
918 * (hp_restore_pc_queue): small cleanup.
919 * (hp_push_arguments): ditto.
920 * (pa_do_registers_info): ditto.
921 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
922 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
923 * Define FRAME_CHAIN_VALID.
924 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
925 passed to functions.
926
927 * paread.c (pa_symtab_read): Use new bfd conventions for
928 accessing linker symbol table.
929 * (pa_symfile_init): Access embedded STAB info via BFD section
930 mechanism and related macros.
931
932
bfc55a5d
SG
933Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
934
935 * sparc-stub.c: Use a seperate stack for our traps.
936 * Handle recursive traps.
937 * Remove all trap init code. This needs to be done by the
938 environment.
939 * (set_mem_fault_trap): Call exceptionHandler() to setup this
940 trap.
941 * (handle_exception): See if we are at breakinst, if so, then
942 advance PC sp that users can just step out of breakpoint().
943 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
944 new place if SP has changed.
945 * (case 's'): Get rid of this, we can't do it yet.
946 * (case 't'): New command to test any old random feature.
947 * (case 'r'): New command to reset the system.
948 * (breakpoint): Add label to breakpoint trap instruction so that
949 handle_exception() can detect where we are and get past the
950 breakpoint trivially.
951
f92743ae
ILT
952Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
953
954 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
955
bfc55a5d
SG
956Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
957
958 * configure.in: recognise all sparclite variants
959
f92743ae
ILT
960Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
961
962 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
963 binary files oring in the right bit.
964
965 * main.c, source.c, state.c, symmisc.c: use macros defined in
966 fopen-{bin|both} when fopening files.
967
81028ab0
FF
968Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
969
970 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
971 from a configuration file (typically including <limits.h>), or to
972 TARGET_CHAR_BIT if CHAR_BIT is not defined.
973 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
974 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
975 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
976 * exppritn.c (print_subexp, dump_expression): Add case for
977 OP_BITSTRING.
978 * expression.h (OP_BITSTRING): New expression element type for
979 packed bitstrings.
980 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
981 macros to convert between number of expression elements and bytes
982 to store that many elements.
983 * i960-tdep.c (leafproc_return): Use new macros to access
984 minimal symbol name and address fields.
985 * m88k-pinsn.c (sprint_address): Use new macros to access
986 minimal symbol name and address fields.
987 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
988 minimal symbol address field.
989 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
990 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
991 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
992 Use new BYTES_TO_EXP_ELEM macro.
993 * parse.c (write_exp_bitstring): New function to write packed
994 bitstrings into the expression element vector.
995 * parse.c (length_of_subexp, prefixify_subexp): Add case for
996 OP_BITSTRING.
997 * parser-defs.h (struct stoken): Document that it is used for
998 OP_BITSTRING as well as OP_STRING.
999 * parser-defs.h (write_exp_bitstring): Add prototype.
1000 **** start-sanitize-chill ****
1001 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
1002 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
1003 LOWER, LENGTH): New tokens for keywords.
1004 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
1005 upper_lower_argument, length_argument, array_mode_name,
1006 string_mode_name, variant_structure_mode_name): New non-terminals
1007 and productions.
1008 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
1009 * ch-exp.y (match_bitstring_literal): New lexer support function
1010 to recognize bitstring literals.
1011 * ch-exp.y (tokentab6): New token table for 6 character keywords.
1012 * ch-exp.y (tokentab5): Add LOWER, UPPER.
1013 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
1014 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
1015 * ch-exp.y (yylex): Check tokentab6.
1016 * ch-exp.y (yylex): Call match_bitstring_literal.
1017 **** end-sanitize-chill ****
1018
76a0ffb4
FF
1019Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
1020
2eda1cdf
FF
1021 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
1022 symbol name and value fields.
1023
533d1dc7
FF
1024 * c-exp.y (yylex): Make static, to match prototype and other
1025 <lang>-exp.y files.
1026
76a0ffb4
FF
1027 * expression.h (exp_opcode): Add BINOP_MOD.
1028 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
1029 * expprint.c (dump_expression): Handle new BINOP_MOD.
1030 * language.c (binop_type_check): Handle new BINOP_MOD.
1031 * main.c (float_handler): Re-enable float handler when hit.
1032 * valarith.c (language.h): Include, need current_language.
1033 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
1034 for integer divide truncates towards zero for negative results.
1035 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
1036 * valarith.c (value_binop): Allow arithmetic operations on
1037 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
1038 **** start-sanitize-chill ****
1039 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
1040 * ch-exp.y (tokentab3): Add MOD and REM.
1041 * ch-exp.y (yylex): Set innermost_block for symbols found
1042 in local scopes. Return LOCATION_NAME for local symbols.
1043 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
1044 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
1045 **** end-sanitize-chill ****
1046
f92743ae
ILT
1047Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
1048
1049 * command.c (shell_escape, make_command, _initialize_command):
1050 don't create or use fork if CANT_FORK is defined.
1051 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
1052 code written for the IBM PC" remain.
1053 * xm-go32.h: define CANT_FORK
1054
ec25d19b
SC
1055Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1056
1057 * remote-sim.c: first attempt at general simulator interface
1058 * remote-hms.c: whitespace
1059 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
1060 understand new stack layout. (print_register_hook): print ccr
1061 register in a fancy way.
1062
fb6e675f
FF
1063Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
1064
1065 * eval.c (language.h): Include.
1066 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
1067 to pointer types when the current language is C. It loses for
1068 other languages when the lower index bound is nonzero.
1069 * valarith.c (value_subscript): Take array lower bounds into
1070 account when performing subscripting operations.
1071 * valops.c (value_coerce_array): Add comment describing why
1072 arrays with nonzero lower bounds are dealt with in value_subscript,
1073 rather than in value_coerce_array.
1074
54bbbfb4
FF
1075Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
1076
1188fbbf
FF
1077 **** start-sanitize-chill ****
1078 * ch-exp.y (FLOAT_LITERAL): Add token.
1079 * ch-exp.y (literal): Add FLOAT_LITERAL.
1080 * ch-exp.y (match_float_literal): New lexer routine.
1081 * ch-exp.y (convert_float): Remove.
1082 * ch-exp.y (yylex): Call match_float_literal.
1083 * ch-exp.y (yylex): Match single '.' after trying
1084 to match floating point literals.
1085 **** end-sanitize-chill ****
1086
54bbbfb4
FF
1087 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
1088 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
1089 MULTI_SUBSCRIPT.
1090 * expprint.c (dump_expression): New function for dumping
1091 expression vectors during gdb debugging.
1092 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
1093 MULTI_SUBSCRIPT and moved out of BINOP range.
1094 * expression.h (DUMP_EXPRESSION): New macro that calls
1095 dump_expression if DEBUG_EXPRESSIONS is defined.
1096 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
1097 * parse.c (length_of_subexp, prefixify_subexp): Change
1098 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
1099 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
1100 prefixify'ing the expression.
1101 * printcmd.c (print_command_1): Add comment.
1102 **** start-sanitize-chill ****
1103 * ch-exp.y (expression_list): Add useful actions.
1104 * ch-exp.y (value_array_element): Add useful actions.
1105 * ch-exp.y (array_primitive_value): Add production.
1106 * ch-exp.y (yylex): Recognize ',' as a token.
1107 **** end-sanitize-chill ****
1108
ea81b10d
DZ
1109Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1110
1111 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
1112 POSIXize the recursive makes (make [variable assignments] target{s})
1113
7532cf10
FF
1114Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
1115
1116 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
1117 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
1118 CPLUS_MARKER for all SVR4 systems, so follow suit.
1119 * defs.h (strdup_demangled): Remove prototype.
1120 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
1121 SYMBOL_INIT_LANGUAGE_SPECIFIC.
1122 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
1123 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
1124 prim_record_minimal_symbol_and_info): Use new macro
1125 SYMBOL_INIT_LANGUAGE_SPECIFIC.
1126 * minsyms.c (install_minimal_symbols): Use new macro
1127 SYMBOL_INIT_DEMANGLED_NAME.
1128 * stabsread.c (define_symbol): Use new macro
1129 SYMBOL_INIT_DEMANGLED_NAME.
1130 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1131 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
1132 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
1133 SYMBOL_INIT_DEMANGLED_NAME.
1134 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
1135 SYMBOL_DEMANGLED_NAME now tests language itself.
1136 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
1137 now tests language itself.
1138 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
1139 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
1140 mangled name member in the language dependent portion of a symbol.
1141 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
1142 mangled name member appropriate for a symbol's language.
1143 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
1144 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
1145 SYMBOL_DEMANGLED_NAME now tests language itself.
1146 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
1147 initializes language dependent portion of symbol.
1148 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
1149 demangles and caches the demangled form of symbol names.
1150 * utils.c (fputs_demangled, fprint_symbol): Use current language
1151 to select an appropriate demangling algorithm.
1152 * utils.c (strdup_demangled): Remove, no longer used.
1153 **** start-sanitize-chill ****
1154 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
1155 access the Chill mangled name member in the language dependent
1156 portion of a symbol.
1157 * ch-lang.c (chill_demangle): New function, simple demangler.
1158 * defs.h (chill_demangle): Add prototype.
1159 * symtab.h (language_dependent_info): Add struct for Chill.
1160 **** end-sanitize-chill ****
1161
19d0f3f4
FF
1162Thu Dec 31 11:06:38 1992 Fred Fish (fnf@cygnus.com)
1163
1164 * Makefile.in (BISON): Add comment that when bison is used, it
1165 must include the "-y" option.
1166 * c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
1167 Remove defines to remap non-yacc symbols, thus backing out of
1168 previous recent changes. Standard policy is that non-yacc parser
1169 generators get fixed, rather than adding bug workarounds in gdb
1170 for each new one that pops up. Expand comment to note this.
1171 * c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
1172
684a832f
SG
1173Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
1174
8a1c3e99
SG
1175 * partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
1176 case. Use code in N_SOL.
1177
684a832f
SG
1178 * paread.c: New file that contains all HPPA/HPUX symbol reading
1179 code.
1180 * dbxread.c: Remove almost all HPPA/HPUX symbol reading code.
1181 * (dbx_symfile_init): Use sizeof(long) instead of 4.
1182 * (dbx_symfile_offsets): Make static.
1183 * (pastab_build_psymtabs): New interface routine for paread to
1184 send stabs into dbxread.
1185 * gdb-stabs.h: Remove gobs of HPPA cruft.
1186
45fe3db4
FF
1187Wed Dec 30 19:47:13 1992 Fred Fish (fnf@cygnus.com)
1188
cbf5231b
FF
1189 * c-exp.y, m2-exp.y (yyrule, yyname): Remap like other yy* names
1190 for byacc.
1191 **** start-sanitize-chill ****
1192 * ch-exp.y (yyrule, yyname): Remap like other yy* names for byacc.
1193 **** end-sanitize-chill ****
1194
45fe3db4
FF
1195 * c-exp.y, m2-exp.y (yyreds, yytoks): Remap like other yy* names.
1196 * c-exp.y, m2-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
1197 and YYDEBUG is not already defined.
1198 * c-exp.y (strncmp): Replace throughout with STREQN, missed
1199 them during the previous replacements.
1200 * printcmd.c (_initialize_printcmd): Update internal documentation
1201 for "set" command to note that the assignment syntax is language
1202 dependent.
1203 **** start-sanitize-chill ****
1204 * ch-exp.y (yyreds, yytoks): Remap like other yy* names.
1205 * ch-exp.y (YYDEBUG): Define if MAINTENANCE_CMDS is defined
1206 and YYDEBUG is not already defined.
1207 * ch-exp.y (GDB_REGNAME, GDB_LAST, GDB_VARIABLE, GDB_ASSIGNMENT,
1208 single_assignment_action): New terminals and nonterminal for gdb
1209 extensions to chill expression grammer.
1210 * ch-exp.y (match_dollar_tokens): Lexer routine to match all
1211 tokens that start with '$' (register names, convenience vars, etc).
1212 * ch-exp.y (tokentab2): Add GDB_ASSIGNMENT.
1213 * ch-exp.y (yylex): Call match_dollar_tokens.
1214 **** end-sanitize-chill ****
1215
b5c10493
SG
1216Mon Dec 28 15:00:01 1992 Stu Grossman (grossman at cygnus.com)
1217
b8ef8163
SG
1218 * hppah-tdep.c (skip_trampoline_code): Use new macros for
1219 accessing minimal symbol data.
1220 * infcmd.c (read_pc): Use #ifdef, not #if.
1221 * symfile.c (syms_from_objfile): Add CONST to decl for targets.
1222 * tm-hppa.h (FIX_CALL_DUMMY): Use new macros for accessing
1223 minimal symbol data.
1224
b5c10493
SG
1225 * hppah-tdep.c (frame_saved_pc): Use better test for outermost
1226 frame. Use find_return_regnum to find the caller.
1227 * (find_unwind_entry): New routine to locate stack frame info
1228 associated with a procedure. This looks in the $UNWIND_START$
1229 section in the SOM file.
1230 * (find_return_regnum): New routine. Uses find_unwind_entry() to
1231 figure out where the caller's return address is stored.
1232 * (find_proc_framesize): New routine. Uses find_unwind_entry()
1233 to figure out the frame size for a procedure.
1234 * (saved_pc_after_call): New routine, moved from tm-hppa.h.
1235 * (init_extra_frame_info): New routine. Corrects PC and FP for
1236 outermost frame if necessary.
1237 * (frame_chain): New routine, moved from tm-hppa.h.
1238 * (skip_trampoline_code): Handle computed function calls (ie:
1239 calls from $$dyncall).
1240 * (unwind_command): Temporary support function to allow user
1241 to control/observe aspects of the unwind (stack frame) info.
1242 * infcmd.c (read_pc): (Temporary), put a hack in to see if the PC
1243 was in a system call, if so, then read the PC from r31.
1244 * tm-hppah.h (SKIP_TRAMPOLINE_CODE, IN_SOLIB_TRAMPOLINE): Deal
1245 with extra arg for skip_trampoline_code().
1246 * (INIT_EXTRA_FRAME_INFO): Define to point at subr (see above).
1247 * (FRAME_CHAIN, FRAME_CHAIN_VALID): Turn into real subroutines.
1248 * tm-hppa.h (SAVED_PC_AFTER_CALL): Turn into real subroutine.
1249
51db2323
FF
1250Sun Dec 27 17:34:15 1992 Fred Fish (fnf@cygnus.com)
1251
1252 * dbxread.c (dbx_symfile_init, elfstab_build_psymtabs):
1253 Call new bfd_get_size() and verify that string table is no larger
1254 than the file that is supposed to contain it.
1255 * symfile.c (syms_from_objfile): Only complain about configured
1256 NAMES_HAVE_UNDERSCORE differences between gdb and bfd if the
1257 current target is the default BFD target.
1258
1169c958
FF
1259Sat Dec 26 20:51:41 1992 Fred Fish (fnf@cygnus.com)
1260
1261 * solib.c (BKPT_AT_MAIN): Change to BKPT_AT_SYMBOL.
1262 * solib.c (bkpt_names): New array of symbol names to try to
1263 use for the "mapping complete" breakpoint. Configurable
1264 define SOLIB_BKPT_NAME is first one to try.
1265 * solib.c (find_solib): Test debug_base for nonzero rather
1266 than just greater than zero.
1267 * solib.c (enable_break): Use bkpt_names to look up address
1268 at which to set "mapping complete" breakpoint.
1269
2e4964ad
FF
1270Tue Dec 22 20:33:38 1992 Fred Fish (fnf@cygnus.com)
1271
1272 * defs.h (STRCMP, STREQ, STREQN): New macros.
1273 * defs.h (demangle_and_match): Remove prototype.
1274 * dwarfread.c (STREQ, STREQN): Remove macros, replaced with STREQ
1275 and STREQN defined in defs.h.
1276 * dwarfread.c (set_cu_language): For completely unknown languages,
1277 try to deduce the language from the filename. Retain behavior
1278 that for known languages we don't know how to handle, we use
1279 language_unknown.
1280 * dwarfread.c (enum_type, symthesize_typedef): Initialize language
1281 and demangled name fields in symbol.
1282 * dwarfread.c, mipsread.c, partial-stab.h: For all usages of
1283 ADD_PSYMBOL_TO_LIST, add language and objfile parameters.
1284 * dwarfread.c (new_symbol): Attempt to demangle C++ symbol names
1285 and cache the results in SYMBOL_DEMANGLED_NAME for the symbol.
1286 * elfread.c (STREQ): Remove macro, use STREQ defined in defs.h.
1287 Replace usages throughout.
1288 * elfread.c (demangle.h): Include.
1289 * elfread.c (record_minimal_symbol): Remove prototype and function.
1290 * gdbtypes.h, symtab.h (B_SET, B_CLR, B_TST, B_TYPE, B_BYTES,
1291 B_CLRALL): Moved from symtab.h to gdbtypes.h.
1292 * infcmd.c (jump_command): Remove code to demangle name and add
1293 it to a cleanup list. Now just use SYMBOL_DEMANGLED_NAME.
1294 * minsyms.c (demangle.h): Include.
1295 * minsyms.c (lookup_minimal_symbol): Indent comment to match code.
1296 * minsyms.c (install_minimal_symbols): Attempt to demangle symbol
1297 names as C++ names, and cache them in SYMBOL_DEMANGLED_NAME.
1298 * mipsread.c (psymtab_language): Add static variable.
1299 * stabsread.c (demangle.h): Include.
1300 * stabsread.c (define_symbol): Attempt to demangle C++ symbol
1301 names and cache them in the SYMBOL_DEMANGLED_NAME field.
1302 * stack.c (return_command): Remove explicit demangling of name
1303 and use of cleanups. Just use SYMBOL_DEMANGLED_NAME.
1304 * symfile.c (demangle.h): Include.
1305 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): Fix
1306 to match macros in symfile.h and allow them to be compiled
1307 if INLINE_ADD_PSYMBOL is not true.
1308 * symfile.h (INLINE_ADD_PSYMBOL): Default to true if not set.
1309 * symfile.h (ADD_PSYMBOL_*): Add language and objfile parameters.
1310 Add code to demangle and cache C++ symbol names. Use macro form
1311 if INLINE_ADD_PSYMBOL is true, otherwise use C function form.
1312 * symmisc.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1313 Remove, also defined in symfile.c, which we already fixed.
1314 * symtab.c (expensive_mangler): Remove prototype and function.
1315 * symtab.c (find_methods): Remove physnames parameter and fix
1316 prototype to match.
1317 * symtab.c (completion_list_add_symbol): Name changed to
1318 completion_list_add_name.
1319 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): New macro, adds both
1320 the normal symbol name and the cached C++ demangled name.
1321 * symtab.c (lookup_demangled_partial_symbol,
1322 lookup_demangled_block_symbol): Remove prototypes and functions.
1323 * symtab.c (lookup_symbol): Remove use of expensive_mangler,
1324 use lookup_block_symbol instead of lookup_demangled_block_symbol.
1325 Remove code to try demangling names and matching them.
1326 * symtab.c (lookup_partial_symbol, lookup_block_symbol):
1327 Fix to try matching the cached demangled name if no match is
1328 found using the regular symbol name.
1329 * symtab.c (find_methods): Remove unused physnames array.
1330 * symtab.c (name_match, NAME_MATCH): Remove function and macro,
1331 replaced with SYMBOL_MATCHES_REGEXP from symtab.h.
1332 * symtab.c (completion_list_add_symbol): Rewrite to use cached
1333 C++ demangled symbol names.
1334 * symtab.h: Much reformatting of structures and such to add
1335 whitespace to make them more readable, and make them more
1336 consistent with other gdb structure definitions.
1337 * symtab.h (general_symbol_info): New struct containing fields
1338 common to all symbols.
1339 * symtab.h (SYMBOL_LANGUAGE, SYMBOL_DEMANGLED_NAME,
1340 SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME, SYMBOL_MATCHES_NAME,
1341 SYMBOL_MATCHES_REGEXP, MSYMBOL_INFO, MSYMBOL_TYPE): New macros.
1342 * symtab. (struct minimal_symbol, struct partial_symbol, struct
1343 symbol): Use general_symbol_info struct.
1344 * utils.c (demangle_and_match): Remove, no longer used.
1345 * valops.c (demangle.h): Include.
1346 * xcoffexec.c (eq): Remove macro, replace usages with STREQ.
1347 * blockframe.c, breakpoint.c, c-exp.y, c-valprint.c, dbxread.c,
1348 infcmd.c, m2-exp.y, minsyms.c, objfiles.h, solib.c, stack.c,
1349 symmisc.c, symtab.c, valops.c: Replace references to minimal
1350 symbol fields with appropriate macros.
1351 * breakpoint.c, buildsym.c, c-exp.y, c-typeprint.c, c-valprint.c,
1352 coffread.c, command.c, convex-tdep.c, cp-valprint.c, dbxread.c,
1353 demangle.c, elfread.c, energize.c, environ.c, exec.c,
1354 gdbtypes.c, i960-tdep.c, infrun.c, infrun-hacked.c, language.c,
1355 main.c, minsyms.c, mipsread.c, partial-stab.h, remote-es1800.c,
1356 remote-nindy.c, remote-udi.c, rs6000-tdep.c, solib.c, source.c,
1357 sparc-pinsn.c, stabsread.c, standalone.c, state.c, stuff.c,
1358 symfile.c, symmisc.c, symtab.c, symtab.h, tm-sysv4.h,
1359 tm-ultra3.h, values.c, xcoffexec.c, xcoffread.c: Replace strcmp
1360 and strncmp usages with STREQ, STREQN, or STRCMP as appropriate.
1361 * breakpoint.c, buildsym.c, c-typeprint.c, expprint.c, findvar.c,
1362 mipsread.c, printcmd.c, source.c, stabsread.c, stack.c,
1363 symmisc.c, tm-29k.h, valops.c, values.c: Replace SYMBOL_NAME
1364 references with SYMBOL_SOURCE_NAME or SYMBOL_LINKAGE_NAME as
1365 appropriate.
1366 * buildsym.c (start_subfile, patch_subfile_names): Default the
1367 source language to what can be deduced from the filename.
1368 * buildsym.c (end_symtab): Update the source language in the
1369 allocated symtab to match what we have been using.
1370 * buildsym.h (struct subfile): Add a language field.
1371 * c-typeprint.c (c_print_type): Remove code to do explicit
1372 demangling.
1373 * dbxread.c (psymtab_language): Add static variable.
1374 * dbxread.c (start_psymtab): Initialize psymtab_language using
1375 deduce_language_from_filename.
1376
a9b37611
FF
1377Mon Dec 21 22:24:33 1992 Fred Fish (fnf@cygnus.com)
1378
1379 * valprint.c (val_print): Reorganize comment and add note
1380 about dependency on target byte ordering.
1381 **** start-sanitize-chill ****
1382 * ch-exp.y (value_array_slice): Fix typo.
1383 * ch-valprint.c (chill_val_print): Remove C'ism that arrays of
1384 byte sized ints are assumed to be char strings and printed with
1385 string syntax. In chill, arrays of chars and arrays of
1386 bytes/ubytes are distinquishable, and printed appropriately.
1387 **** end-sanitize-chill ****
1388
9f739abd
SG
1389Mon Dec 21 18:02:35 1992 Stu Grossman (grossman at cygnus.com)
1390
e5e6b6b1
SG
1391 * tm-hppah.h: #define NEED_TEXT_START_END for target memory
1392 read/write routines for HPUX.
1393
9f739abd
SG
1394 * hppa-pinsn.c (print_insn): Improve handling of be and ble
1395 branch targets to compute target address using const from previous
1396 instruction if necessary.
1397 * Add `Q' operator to print out bit position field various
1398 instructions.
1399 * hppah-nat.c: #include sys/param.h, and sys/user.h. General
1400 cleanups, use new code from Utah.
1401 * (store_inferior_registers): Update to new code from Utah.
1402 * (initialize_kernel_u_addr): Re-enable decl of struct user u.
1403 * (fetch_register): Clear out priv level when reading PCs.
1404 * hppah-tdep.c: Get rid of gobs of KERNELDEBUG stuff.
1405 * Remove decl of errno, #include wait.h and target.h.
1406 * (frame_saved_pc): Check `flags' pseudo-register to see if we
1407 were inside of a kernel call. If so, then PC is in a different
1408 register. Also, mask out bottom two bits of all PCs so as not to
1409 confuse higher level code.
1410 * (push_dummy_frame): Create from #define in tm-hppa.h.
1411 * (find_dummy_frame_regs): Update from Utah.
1412 * (hp_pop_frame): Create from #define in tm-hppa.h.
1413 * (hp_restore_pc_queue): New, from Utah.
1414 * (hp_push_arguments): Big fixes from Utah.
1415 * (pa_do_registers_info, pa_print_registers): Only print out fp
1416 regs upon request.
1417 * (skip_trampoline_code): New routine to deal with stubs that
1418 live in nowhereland between callers and callees.
1419 * i860-tdep.c: Remove decl of attach_flag.
1420 * infrun.c (wait_for_inferior): Add new macro
1421 INSTRUCTION_NULLIFIED, which can tell if the instruction pointed
1422 at by PC will be nullified. If so, then step the target once more
1423 so as to avoid confusing the user.
1424 * (just before step_over_function:): Use stop_func_start, not
1425 stop_pc when checking for the existance of line number info.
1426 stop_func_start will reflect the proper address of the target
1427 routine, not of the stub that we may be traversing to get there.
1428 * tm-hppa.h: define SKIP_TRAMPOLINE_CODE and IN_SOLIB_TRAMPOLINE
1429 to deal with the stubs that PA compilers sometimes stick between
1430 callers and callees. Also, define FLAGS_REGNUM for access to the
1431 `flags' pseudo-reg.
1432 * (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Use
1433 memcpy, not bcopy.
1434 * (CANNOT_STORE_REGISTER): New from Utah. Says that we can't
1435 write gr0, PC regs, and PSW!
1436 * (FRAME_FIND_SAVED_REGS): Bug fixes from Utah.
1437 * (PUSH_DUMMY_FRAME, POP_FRAME): Make into real routines in
1438 hppah-nat.c.
1439 * (CALL_DUMMY, FIX_CALL_DUMMY): Fixes from Utah.
1440 * Define struct unwind_table_entry.
1441 * valops.c (call_function_by_hand): Add another arg to
1442 FIX_CALL_DUMMY (under #ifdef GDB_TARGET_IS_HPPA). Why is this
1443 necessary?
1444
5998e362
DZ
1445Mon Dec 21 02:17:57 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1446
1447 * remote-vx.c: remove include of "symfile.h", replace it with "complaints.h"
1448
a8a69e63
FF
1449Fri Dec 18 10:32:25 1992 Fred Fish (fnf@cygnus.com)
1450
1451 * Makefile.in (VERSION): Bump to 4.7.4.
1452 * Makefile.in (SFILES_MAINDIR): Add typeprint.c, c-typeprint.c,
1453 m2-typeprint.c, c-valprint.c cp-valprint.c m2-valprint.c.
1454 * Makefile.in (HFILES): Add valprint.h.
1455 * Makefile.in (OBS): Add typeprint.o, c-typeprint.o,
1456 m2-typeprint.o, c-valprint.o, cp-valprint.o m2-valprint.o.
1457 * typeprint.c, typeprint.h: New files for language independent
1458 type printing functions.
1459 * c-typeprint.c, m2-typeprint.c: New files for language dependent
1460 type printing functions and definitions.
1461 * valprint.h: New include file for language independent value
1462 printing definitions.
1463 * c-valprint.c, cp-valprint.c, m2-valprint.c: New files for language
1464 dependent value printing functions.
1465 * c-exp.y (production ptype): Add range_type variable and use new
1466 create_range_type function.
1467 * c-exp.y (tokentab2, tokentab3), c-lang.c (c_op_print_tab),
1468 infcmd.c (path_var_name), language.c (unk_op_print_tab),
1469 m2-lang.c (m2_op_print_tab): Change from ANSI-obsolescent
1470 "const static" to ANSI-conformant "static const".
1471 * c-exp.y (c_create_fundamental_type): Remove unused nbytes.
1472 * c-exp.y (c_language_defn, cplus_language_defn): Add c_print_type,
1473 and c_val_print.
1474 * c-lang.h (c_print_type, c_val_print): Add prototypes.
1475 * coffread.c (decode_type): Add range_type variable and call to
1476 new create_range_type function.
1477 * complaints.c (complain): Remove unused val variable.
1478 * complaints.c (_initialize_complaints): Make it void.
1479 * convex-tdep.c (value_of_trapped_internalvar): Add range_type
1480 variable and call new create_range_type function.
1481 * defs.h (enum val_prettyprint): Move enum from value.h to here
1482 so we can avoid having to include value.h just for prototypes that
1483 need the enum (thanks ANSI).
1484 * dwarfread.c (struct_type): Local anonymous_size variable is
1485 only used if !BITS_BIG_ENDIAN.
1486 * dwarfread.c (decode_subscript_data_item): Add rangetype
1487 variable and call new create_range_type function.
1488 * elfread.c (elf_symfile_read): Remove unused dbx and text_sect
1489 variables.
1490 * eval.c (evaluate_subexp): Remove unused local variable name
1491 and the statement with no side effects that initializes it.
1492 * expprint.c (print_subexp): Change local_printstr to
1493 LA_PRINT_STRING.
1494 * gdbtypes.c (create_range_type): New function that creates
1495 a range type using code fragments from object file readers as
1496 an example of what has to be initialized.
1497 * gdbtypes.c (create_array_type): Removed index_type, low_bound,
1498 and high_bound parameters, replaced with a single range_type
1499 parameter. Change function body to use passed in range_type
1500 rather than handcrafting one.
1501 * gdbtypes.h (create_range_type): Add prototype.
1502 * gdbtypes.h (create_array_type): Change prototype parameters.
1503 * infrun.c (normal_stop): Remove unused local variables tem and c.
1504 * infrun.c (hook_stop_stub): Return 0 rather than random value.
1505 * language.c (unk_lang_print_type, unk_lang_val_print): Add
1506 stub functions that call error if called.
1507 * language.c (unknown_language_defn, auto_language_defn,
1508 local_language_defn): Add initializers unk_lang_print_type and
1509 unk_lang_val_print.
1510 * language.h (struct language_defn): Reformat for larger
1511 comments, add la_print_type and la_val_print members. Add
1512 LA_PRINT_TYPE and LA_VAL_PRINT macros. Change local_printchar
1513 to LA_PRINT_CHAR and local_printstr to LA_PRINT_STRING.
1514 * m2-lang.c (m2_create_fundamental_type): Remove unused local
1515 variable nbytes.
1516 * m2-lang.c (m2_language_defn): Add initializers m2_print_type
1517 and m2_val_print.
1518 * m2-lang.h (m2_print_type, m2_val_print): Add prototypes.
1519 * main.c (execute_command): Remove unused local variable cmdlines.
1520 * main.c (echo_command), stabsread.c (read_type), printcmd.c
1521 (clear_displays), symmisc.c (block_depth), values.c
1522 (clear_value_history):
1523 Make testing of truth value of assignment result explicit.
1524 * mipsread.c (upgrade_type): Update FIXME to include future use
1525 of create_range_type.
1526 * printcmd.c (ptype_command, ptype_eval, whatis_command,
1527 whatis_exp, maintenance_print_type): Move prototypes and functions
1528 to new typeprint.c.
1529 * printcmd.c (_initialize_printcmd): Move add_com calls for
1530 ptype_command and whatis_command to new typeprint.c.
1531 * ser-bsd.c (serial_open): Remove unused variable sgttyb.
1532 * source.c (find_source_lines): Local variable c only used
1533 when LSEEK_NOT_LINEAR is defined.
1534 * stabsread.c (read_array_type): Use new create_range_type
1535 function.
1536 * stabsread.c (read_range_type): Add new index_type variable and
1537 call new create_range_type function rather than handcrafting
1538 range types.
1539 * symmisc.c (type_print_1): Change usages to LA_PRINT_TYPE.
1540 * symtab.c (typedef_print usages): Use c_typedef_print, renamed.
1541 * symtab.c (type_print_base usages): Use c_type_print_base.
1542 * symtab.c (type_print_varspec_prefix usages): Use
1543 c_type_print_varspec_prefix.
1544 * symtab.c (type_print_method_args usages): Use
1545 cp_type_print_method_args.
1546 * valprint.c: Completely ripped apart and the fragments used
1547 to create c-valprint.c, cp-valprint.c, m2-valprint.c, and
1548 valprint.h. Remaining stuff is language independent.
1549 * value.h (struct fn_field): Forward declare for prototypes.
1550 * value.h (type_print_1): Remove prototype.
1551 * value.h (enum val_prettyprint): Moved to defs.h.
1552 * value.h (typedef_print): Prototype renamed to c_typedef_print.
1553 * value.h (baseclass_offset): Add prototype.
1554 **** start-sanitize-chill ****
1555 * Makefile.in (SFILES_MAINDIR): Add ch-typeprint.c, ch-valprint.c.
1556 * Makefile.in (OBS): Add ch-typeprint.o, ch-valprint.o.
1557 * ch-typeprint.c: New file for language dependent type printing.
1558 * ch-valprint.c: New file for language dependent value printing.
1559 * ch-exp.y (parse_number): Remove prototype and stub function.
1560 * ch-exp.y (decode_integer_literal): Removed unused digits and
1561 temp variables.
1562 * ch-exp.y (convert_float): Completely ifdef out for now.
1563 * ch-exp.y (tokentab2, tokentab3, tokentab4, tokentab5),
1564 ch-lang.c (chill_op_print_tab):
1565 Change from ANSI-obsolescent "const static" to ANSI-conformant
1566 "static const".
1567 * ch-exp.y (yylex): Add unhandled storage class enumeration
1568 literals to switch statement for completeness.
1569 * ch-lang.c (chill_create_fundamental_types): Remove unused
1570 nbytes variable. Change dummy type to 2 bytes to match int.
1571 Handle FT_VOID types gratuituously added to chill DWARF by
1572 compiler. Change FT_CHAR case to generate an TYPE_CODE_CHAR
1573 type rather than a one byte TYPE_CODE_INT type.
1574 * ch-lang.c (chill_language_defn): Add chill_print_type and
1575 chill_val_print.
1576 * ch-lang.h (chill_print_type, chill_val_print): Add prototypes.
1577 **** end-sanitize-chill ****
1578
de9bef49
JG
1579Thu Dec 17 00:44:57 1992 John Gilmore (gnu@cygnus.com)
1580
1581 Eliminate uses of NAMES_HAVE_UNDERSCORE, using
1582 bfd_get_symbol_leading_char instead.
1583
1584 * coffread.c (EXTERNAL_NAME): New macro for removing possible
1585 leading character from names.
1586 (read_coff_symtab): Use BFD's FILE *, don't open a second one.
de9bef49
JG
1587 (process_coff_symbol, coff_read_struct_type, coff_read_enum_type):
1588 Replace NAMES_HAVE_UNDERSCORE with EXTERNAL_NAME.
1589
1590 * kdb-start.c (main): Remove NAMES_HAVE_UNDERSCORE.
1591 * minsyms.c (install_minimal_symbols): Replace NAMES_HAVE_UNDERSCORE.
1592 Remove SOME_NAMES_HAVE_DOT support (apparently unused).
1593 * partial-stab.h: Replace NAMES_HAVE_UNDERSCORE.
1594 * solib.c: Replace NAMES_HAVE_UNDERSCORE.
1595 * stabsread.h: Remove NAMES_HAVE_UNDERSCORE and HASH_OFFSET.
1596 * symfile.c (syms_from_objfile): Insert debugging check to test
84a05e52 1597 NAMES_HAVE_UNDERSCORE setting against the BFD support.
de9bef49
JG
1598
1599 * doc/gdbint.texinfo (Host Conditionals): Remove
1600 NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
1601 MEM_FNS_DECLARED.
1602 (Target Conditionals): Remove all of the above.
1603
926d7800
JG
1604 * xm-rs6000.h (MEM_FNS_DECLARED): Update comments.
1605
ca5a72cd
JG
1606 * coffread.c (read_coff_symtab, C_BLOCK): Use complain() rather
1607 than error() for .bb/.eb. Bug found by Eddie Fung, <efung@cs.uq.oz.au>.
1608
117f631e
ILT
1609Tue Dec 15 10:05:56 1992 Ian Lance Taylor (ian@cygnus.com)
1610
1611 * coffread.c (decode_type): catch negative tagndx fields generated
1612 by SCO 3.2v4 cc.
1613 * exec.c: comment out string following #endif.
1614 * configure.in (i[34]86-*-sco3.2v4*): use host i386sco4.
1615 * xm-i386sco.h: include <sys/types.h> and <sys/dir.h>, required by
1616 <sys/user.h>.
1617 * config/i386sco4.mh: new file; like i386sco.mh, but don't require
1618 gcc, and define const to empty to avoid SCO 3.2v4 cc bug.
1619
51b80b00
FF
1620Tue Dec 15 04:14:24 1992 Fred Fish (fnf@cygnus.com)
1621
1622 * complaints.c: New file, code moved from utils.c.
1623 * complaints.c (complain): Made into a varargs function.
1624 * complaints.h: New file, code moved from symfile.h.
1625 * Makefile.in (SFILES_MAINDIR): Add complaints.c.
1626 * Makefile.in (HFILES): Add complaints.h.
1627 * Makefile.in (OBS): Add complaints.o.
1628 * symfile.c (complaint_root, stop_whining, complaint_series,
1629 complain, clear_complaints, add_show_from_set for stop_whining):
1630 Moved to complaints.c.
1631 * symfile.h (struct complaint, complaint_root decl, complain
1632 prototype, clear_complaints prototype): Moved to complaints.h.
1633 * buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c,
1634 gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include
1635 complaints.h. Remove casts from arguments to complain(),
1636 which is now a varargs function, and remove unnecessary
1637 placeholder zero args.
1638 * defs.h (begin_line): Add prototype.
1639 * defs.h (vprintf_filtered): Add prototype.
1640 * dwarfread.c (varargs.h): Remove, no longer needed.
1641 * dwarfread.c (dwarfwarn): Remove prototype and function.
1642 * dwarfread.c (complaints): Define a bunch of complaints.
1643 * dwarfread.c (SQUAWK): Remove macro defs, convert all
1644 usages to standard complain() calls.
1645 * utils.c (begin_line): New function that ensures that
1646 whatever gets filter-printed next starts on its own line.
1647 * utils.c (vprintf_filtered): New func, like vfprintf_filtered,
1648 but to stdout (calls vfprintf_filtered internally).
1649
031dd1a9
JG
1650Tue Dec 15 02:01:00 1992 John Gilmore (gnu@cygnus.com)
1651
fb29d681
JG
1652 * remote.c: Avoid printf_filtered line limit. Suggested by
1653 Robert R. Henry, <rrh@tera.com>.
ca5a72cd 1654 * infcmd.c (environment_info): Ditto, for Don Allen <allen@think.com>.
fb29d681
JG
1655
1656 * main.c (main): Accept --silent as well as --quiet. Change +help
1657 to --help. Suggested by Karl Berry, <karl@cs.umb.edu>.
1658
031dd1a9
JG
1659 * doc/gdbint.texinfo: SWAP_HOST_AND_TARGET => SWAP_TARGET_AND_HOST.
1660 Noticed by Andy Jackson, <arj@cam-orl.co.uk>.
1661
df86eb44
JG
1662Mon Dec 14 23:28:15 1992 John Gilmore (gnu@cygnus.com)
1663
1664 * tm-nindy960.h, remote-nindy.c: Lint.
1665
85f0a848
FF
1666Mon Dec 14 18:48:52 1992 Fred Fish (fnf@cygnus.com)
1667
1668 * gdbtypes.c (create_array_type): Complete rewrite. Now requires
1669 a optional type to decorate as an array type, the type of the
1670 index, and the bounds of the array. Records this additional info
1671 in the array type for use with languages with nonzero array
1672 bounds.
1673 * gdbtypes.h (enum type_code): Update comment for TYPE_CODE_ARRAY
1674 to note that arrays may have bounds.
1675 * gdbtypes.h (create_array_type): Update prototype.
1676 * c-exp.y (ptype production): Adjust for new create_array_type
1677 calling conventions.
1678 * coffread.c (decode_type): Call create_array_type rather than
1679 handcrafting array types.
1680 * convex-tdep.c (value_type): Remove, now use create_array_type.
1681 * convex-tdep.c (value_of_trapped_internalvar): Convert calls to
1682 vector_type into calls to create_array_type.
1683 * dwarfread.c (decode_subscr_data): Name changed to
1684 decode_subscript_data_item throughout.
1685 * dwarfread.c (decode_subscript_data_item): Rewrite to use
1686 create_array_type. Now records index type and range as well.
1687 * dwarfread.c (dwarf_read_array_type): Rewrite as part of
1688 change to use create_array_type.
1689 * dwarfread.c (read_subroutine_type): Test existing user defined
1690 types before decorating them, to ensure they are blank, and
1691 complain about it if they are not.
1692 * dwarfread.c (decode_fund_type): For unrecognized types, always
1693 return some valid type (type integer). If the unrecognized type
1694 cannot be an implementation defined type, complain as well.
1695 * m88k-tdep.c (pushed_size): Update comment for TYPE_CODE_ARRAY.
1696 * m88k-tdep.c (store_param): Update comment for TYPE_CODE_ARRAY.
1697 * mipsread.c (upgrade_type): Add FIXME comment that code to
1698 handcraft arrays should be replaced with call to create_array_type.
1699 * stabsread.c (read_array_type): Replace code to handcraft
1700 array types with call to create_array_type.
1701 * valprint.c (type_print_varspec_prefix): Minor formatting
1702 change, join lines that don't need to be split.
1703
01d1590b
SG
1704Mon Dec 14 17:18:42 1992 Stu Grossman (grossman at cygnus.com)
1705
fb29d681 1706 * convex-xdep.c, hppab-nat.c, infptrace.c: Remove
01d1590b
SG
1707 decl for attach_flag, it now lives in inferior.h.
1708 * hppa-pinsn.c: Reformat opcode tables. Add function prototypes.
1709 Make most functions static.
1710 * hppah-nat.c: General cleanups, remove BSD specific code (since
1711 that all lives in hppab-nat.c).
1712 * hppah-tdep.c (frame_chain_valid), tm-hppa.h (FRAME_CHAIN):
1713 Change sense of test against inside_entry_file(). This fix is
1714 from U. of Utah.
1715 * tm-hppa.h (PUSH_DUMMY_FRAME, POP_FRAME): Use char * for 2nd arg
1716 to read/write_register_bytes().
7f70a275
SG
1717 * gdbtypes.h: Remove const from decl for cplus_struct_default to
1718 work around PA-GAS assembler bug. Also, add trailing */ to some
1719 comments.
1720 * gdbtypes.c: Remove const from decl for cplus_struct_default.
1721 Same reason as above.
01d1590b 1722
b69d8432
JG
1723Wed Dec 9 19:53:25 1992 John Gilmore (gnu@cygnus.com)
1724
c8aac932
JG
1725 * mipsread.c (parse_symbol): When checking whether a structured
1726 type is an enum, check qualifiers of its first member, as well as
1727 the base type of the member. Bug found and fixed by John M.
01d1590b 1728 Farrell, <farrell@fjord.reo.dec.com>.
c8aac932 1729
b69d8432
JG
1730 * vx-share/{reg.h,xdr_regs.h,xdr_regs.c}: Remove, unused.
1731 * remote-vx.c: Don't include vx-share/reg.h.
1732 * vx-share/ptrace.h: Reproduce from scratch.
c8aac932 1733 * config/{vxworks68,vxworks960}: Don't include xdr_regs.o.
01d1590b
SG
1734 * Makefile.in: Remove references to removed files, and to removed
1735 29k-share directories.
b69d8432 1736
160be0de
FF
1737Tue Dec 8 13:30:58 1992 Fred Fish (fnf@cygnus.com)
1738
d62e7a20
FF
1739 * c-lang.c (_initialize_c_language): Name changed from
1740 _initialize_c_exp.
1741 * m2-lang.c (_initialize_m2_language): Name changed from
1742 _initialize_m2_exp.
1743 * m2-lang.c (_initialize_m2_language): Change malloc to xmalloc since
1744 it is no longer inside m2-exp.y, where it was remapped by Makefile.
22e39759
FF
1745 * c-exp.y, m2-exp.y: Migrate code that has nothing to do with
1746 expression parsing into c-lang.c and m2-lang.c respectively.
1747 * c-lang.c, m2-lang.c: New files, code migrated from c-exp.y and
1748 m2-exp.y respectively.
1749 * c-lang.h, m2-lang.h: New files, internal interfaces between c-*
1750 and m2-* files respectively.
1751 * Makefile.in (SFILES_MAINDIR): Add c-lang.c, m2-lang.c.
1752 * Makefile.in (HFILES): Add c-lang.h, m2-lang.h.
1753 * Makefile.in (OBS): Add c-lang.o, m2-lang.o.
1754 * expression.h (struct block): Forward declaration for prototypes.
1755 * language.h (struct objfile): Forward declaration for prototypes.
1756 **** start-sanitize-chill ****
1757 * Makefile.in (SFILES_MAINDIR): Add ch-lang.c.
1758 * Makefile.in (HFILES): Add ch-lang.h.
1759 * Makefile.in (OBS): Add ch-lang.o.
1760 * ch-exp.y: Migrate code that has nothing to do with expression
1761 parsing into ch-lang.c.
1762 * ch-lang.c: New file, code migrated from c-exp.y.
1763 * ch-lang.h: New file, internal interface between ch-* files.
d62e7a20
FF
1764 * ch-lang.c (_initialize_chill_language): Name changed from
1765 _initialize_chill_exp.
22e39759
FF
1766 **** end-sanitize-chill ****
1767
160be0de
FF
1768 Changes for Amiga Unix from rhealey@ub.d.umn.edu.
1769 * config/amix.mh (NAT_FILE): Add, set to nm-sysv4.h.
1770 * config/amix.mh (NATDEPFILES): Add.
1771 * config/amix.mh (XDEPFILES): Move procfs.o and fork-child.o
1772 to NATDEPFILES.
1773
1774 * dwarfread.c (decode_subscr_data): Remove spurious test that
1775 accepted only integer subscript types. We don't do anything
1776 with the type at the moment anyway.
1777
aed656ba
FF
1778 **** start-sanitize-chill ****
1779Fri Dec 4 06:56:56 1992 Fred Fish (fnf@cygnus.com)
1780
1781 * ch-exp.y (match_character_literal): Fix case where no
1782 match at all is found.
64e738a3
FF
1783 * ch-exp.y (chill_create_fundamental_type): Chill uses fixed
1784 width types. For example, "INT" is always 2 bytes regardless
1785 of the values of any TARGET_*_BIT macros. So use explicit
1786 numeric sizes for the types.
aed656ba
FF
1787 **** end-sanitize-chill ****
1788
bf229b4e
FF
1789Thu Dec 3 12:00:06 1992 Fred Fish (fnf@cygnus.com)
1790
1791 * c-exp.y (c_create_fundamental_type): New function to create
1792 language specific fundamental types for C.
1793 * m2-exp.y (m2_create_fundamental_type): New function to create
1794 language specific fundamental types for Modula 2.
1795 * c-exp.y (c_language_defn, cplus_language_defn): Add
1796 c_create_fundamental_type to language struct initializers.
1797 * m2-exp.y (m2_language_defn): Add m2_create_fundamental_type
1798 to language struct initializers.
1799 * dwarfread.c (expression.h, language.h): Include.
1800 * dwarfread.c (ftypes): New array to hold fundamental types
1801 for current compilation unit.
1802 * dwarfread.c (cu_language_defn): New pointer to language
1803 struct for language of current compilation unit.
1804 * dwarfread.c (dwarf_fundamental_type): New function to
1805 create/lookup fundamental types.
1806 * dwarfread.c (set_cu_language): Initialize cu_language_defn.
1807 * dwarfread.c (throughout): Replace lookup_fundamental_type
1808 with dwarf_fundamental_type.
1809 * dwarfread.c (read_file_scope): Zero out ftypes for each new
1810 compilation unit (may be different language or different objfile).
1811 * gdbtypes.c (lookup_fundamental_type): Move actual type
1812 creations into language specific fundamental type creation
1813 functions and call via create_fundamental_type. Add comment
1814 about this function being obsolescent.
1815 * gdbtypes.h (FT_BYTE, FT_UNSIGNED_BYTE): New types, true byte
1816 sized signed and unsigned integers.
1817 * gdbtypes.h (FT_NUM_MEMBERS): Increment, new types added.
1818 * language.c (language_def): New function to lookup a language
1819 struct given it's enumeration.
1820 * language.h (struct language_defn): Add la_fund_type, a pointer
1821 to a function that creates fundamental types for this language.
1822 * language.h (create_fundamental_type): New macro to create
1823 fundamental types based on the current language.
1824 * language.h (language_def): Add prototype.
1825 * language.c (unk_lang_create_fundamental_type): New function
1826 for initializing language structs, calls error if called.
1827 * language.c (unk_language_defn, auto_language_defn,
1828 local_language_defn): Use unk_lang_create_fundamental_type.
1829 **** start-sanitize-chill ****
1830 ch-exp.y (chill_create_fundamental_type): New function.
1831 ch-exp.y (chill_language_defn): Add chill_create_fundamental_type.
1832 ch-exp.y (_initialize_chill_exp): BOOL types are only one byte.
1833 **** end-sanitize-chill ****
1834
93bb6e65
FF
1835 **** start-sanitize-chill ****
1836Tue Dec 1 17:07:31 1992 Fred Fish (fnf@cygnus.com)
1837
1838 * dwarfread.c (CHILL_PRODUCER): Add producer string for
1839 GNU chill.
1840 * dwarfread.c (handle_producer): Test CHILL_PRODUCER as well
1841 as GCC_PRODUCER and GPLUS_PRODUCER.
1842 **** end-sanitize-chill ****
1843
7c86126f
SG
1844Mon Nov 30 18:46:58 1992 Stu Grossman (grossman at cygnus.com)
1845
1846 * remote-udi.c (udi_wait): Don't stop if TIP says that remote is
1847 still running.
1848
394171ac
FF
1849Mon Nov 30 12:00:25 1992 Fred Fish (fnf@cygnus.com)
1850
1851 * tm-sun4sol2.h: Add CPLUS_MARKER. Solaris 2.0 requires '.'
1852 rather than '$'. This particular piece of braindamage is
1853 spreading like ooze. It's now infected libiberty, deja-gnu,
1854 gdb, and gcc.
1855 * values.c (baseclass_addr): Use CPLUS_MARKER rather than
1856 hardwired '$' character.
1857
e7177cc2 1858Sun Nov 29 15:22:42 1992 Fred Fish (fnf@cygnus.com)
cbd1bdc3 1859
e7177cc2
FF
1860 (Changes to break incredibly ugly, unmaintainable 750 line
1861 read_struct_type function up into managable pieces.)
b076b3f8 1862 * Makefile.in (VERSION): Bump to 4.7.3.
e7177cc2
FF
1863 * stabsread.c (struct field_info): Local struct definition.
1864 * stabsread.c (read_member_functions, read_struct_fields,
1865 read_baseclasses, read_tilde_fields, attach_fn_fields_to_type,
1866 attach_fields_to_type, read_cpp_abbrev): Prototypes and new
1867 functions from fragmented read_struct_type.
1868 * stabsread.c (stabs_general_complaint): Catchall complaint.
1869 * stabsread.c (STABS_CONTINUE): Macro'ize cretinous stabs
1870 symbol name continuation code. Use macro throughout.
1871 * stabsread.c (various places): Replace add-one-to-pointer
1872 with pointer increment.
1873 * stabsread.c (read_type): Retain function local copy of type
1874 descriptor. Rearrange code calling read_struct_type() to match
1875 new conventions.
94daba7f
FF
1876 * stabsread.c (define_symbol): For the sake of dbx, gcc emits
1877 a single blank as the name of nameless enumerations. Recognize
1878 this special case and set nameless flag.
e7177cc2 1879 **** start-sanitize-chill ****
cbd1bdc3
FF
1880 * ch-exp.y (GENERAL_PROCEDURE_NAME, LOCATION_NAME): New
1881 terminal tokens.
1882 * ch-exp.y (access_name): New non-terminal token and
1883 production.
1884 * ch-exp.y (general_procedure_name): Now a terminal token.
1885 * ch-exp.y (location): Expand production.
1886 * ch-exp.y (match_simple_name_string): New function.
1887 * ch-exp.y (yylex): Call match_simple_name_string and return
1888 GENERAL_PROCEDURE_NAME or LOCATION_NAME as appropriate.
1889 **** end-sanitize-chill ****
1890
d1065385
FF
1891Wed Nov 25 07:17:13 1992 Fred Fish (fnf@cygnus.com)
1892
b9b6dbc2
FF
1893 * munch: Backslash escape vertical bar characters inside
1894 grep patterns since they have special meaning for some greps.
d1065385
FF
1895 * parse.c (write_exp_string): Complete rewrite to store string
1896 contants as a leading explicit length, followed by the string data,
1897 followed by a trailing explicit length.
1898 * eval.c (evaluate_subexp), expprint.c (print_subexp),
1899 parse.c (length_of_subexp), parse.c (prefixify_subexp):
1900 Use recorded explicit length of strings in expression elements,
1901 rather than strlen. Adjust code to skip over strings stored in
1902 expression elements, and code to access strings, to account for
1903 new leading explicit size expression element.
1904 * parse.c (length_of_subexp): Test for minimum endpos of 1, not
1905 0, to avoid negative expression element indices.
1906 * valops.c (search_struct_method): Minor whitespace change.
1907
5707ea9f
FF
1908Mon Nov 23 11:14:15 1992 Fred Fish (fnf@cygnus.com)
1909
bac89d6c
FF
1910 * c-exp.y (yylex): Add tempbuf, tempbufindex, and tempbufsize,
1911 which together maintain a dynamically expandable static buffer
1912 for the lexer to use when translating C strings to their internal
1913 form (other future uses possible). Fix parsing of C style strings
1914 to do the normal C style input conversions of escaped character
1915 sequences.
1916 * valops.c (value_string): Remove translation of escaped
1917 character sequences, now done in C expression parser.
5707ea9f
FF
1918 * language.h (PRINT_LITERAL_FORM): New macro that takes character
1919 and decides if it should be printed in literal form or some other
1920 form, based on it's ASCII value and setting of sevenbit_strings.
1921 * {c-exp.y, m2-exp.y} (emit_char): Use new PRINT_LITERAL_FORM
1922 macro, change indentation style.
1923 **** start-sanitize-chill ****
1924 * ch-exp.y (chill_printchar): Use new PRINT_LITERAL_FORM macro.
1925 * ch-exp.y (chill_printstr): First cut at real function instead
1926 of error stub.
1927 **** end-sanitize-chill ****
1928
36e0df23
DZ
1929Sun Nov 22 16:21:41 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1930
1931 * nindy-share/stop.h: fixed bogus comment-end in copyright message
1932
1933 * i960-pinsn.c: fixed two calls of fputs_filtered that had 3 arguments
1934
5d074aa9
FF
1935Fri Nov 20 21:35:57 1992 Fred Fish (fnf@cygnus.com)
1936
1937 * defs.h (sevenbit_strings): Add declaration.
1938 * defs.h (printchar): Replace with gdb_printchar.
1939 * language.h (language_defn): Add new function pointers
1940 la_printchar and la_printstr, to do language dependent
1941 printing of characters and strings.
1942 * language.h (local_printchar, local_printstr): New macros
1943 to call language dependent functions pointed to by la_printchar
1944 and la_printstr respectively.
1945 * c-exp.y (emit_char, c_printchar, c_printstr): New language
1946 dependent functions for printing characters and strings.
1947 * c-exp.y (c_language_defn, cplus_language_defn): Add
1948 c_printchar and c_printstr.
1949 * command.c (do_setshow_command): Rename printchar use to
1950 gdb_printchar.
1951 * expprint.c (print_subexp): Replace C style string output
1952 with call to local_printstr.
1953 * language.c (unk_lang_printchar, unk_lang_printstr):
1954 New stubs, currently errors.
1955 * language.c (unknown_language_defn, auto_language_defn,
1956 local_language_defn): Add unk_lang_printchar and
1957 unk_lang_printstr.
1958 * m2-exp.y (emit_char, m2_printchar, m2_printstr): New
1959 language dependent functions to print characters and strings.
1960 * m2-exp.y (m2_language_defn): Add m2_printchar and m2_printstr.
1961 * utils.c (printchar): Renamed to gdb_printchar.
1962 * valprint.c (print_string): Remove prototype, function moved
1963 to c-exp.y, where it becomes c_printstr.
1964 * valprint.c (print_max): Made global for reference from the
1965 language dependent printing routines in *-exp.y.
1966 * valprint.c (repeat_count_threshold): New variable with function
1967 of old REPEAT_COUNT_THREHOLD define, but now settable by user.
1968 Change all references to old macro to references to new variable.
1969 * valprint.c (value_print, val_print): Replace calls to
1970 print_string with calls to local_printstr.
1971 * valprint.c (val_print): Replace C style character printing
1972 with call to local_printchar.
1973 * valprint.c (val_print): Add case for TYPE_CODE_CHAR.
1974 * valprint.c (_initialize_valprint): Add add_show_from_set
1975 call for setting up repeat_count_threshold as print variable.
1976 **** start-sanitize-chill ****
1977 * ch-exp.y (decode_integer_value): New function.
1978 * ch-exp.y (decode_integer_literal): Use decode_integer_value.
1979 * ch-exp.y (chill_printchar, chill_printstr): New language
1980 dependent functions for printing characters and strings.
1981 * ch-exp.y (chill_language_defn): Add chill_printchar and
1982 chill_printstr.
1983 **** end-sanitize-chill ****
1984
b0944a33
JG
1985Thu Nov 19 21:22:21 1992 John Gilmore (gnu@cygnus.com)
1986
1987 * main.c (main): Print GDB version number in gdb -help; doc pid arg.
1988 Suggested by Marty Leisner, <leisner@eso.mc.xerox.com>.
1989 (print_gdb_version): New arg is stdout or stderr. Callers changed.
1990
195b44d9
ILT
1991Wed Nov 18 15:05:45 1992 Ian Lance Taylor (ian@cygnus.com)
1992
1993 * remote-vx.c (vx_kill): just warn if we can't contact the board,
1994 and assume the process has been killed.
1995
2104007f
SG
1996Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
1997
2104007f
SG
1998 * remote-udi.c (udi_open): Reset vars so that user can re-run
1999 programs without leaving GDB.
2000 * (many routines): Slightly improve error handling.
2001 * (download): Zero out BSS by longs instead of bytes to avoid
2002 timeouts in real hardware.
2003 * 29k-share/udi/udip2soc.c (UDIDisconnect, UDIKill): Indicate
2004 that connection is no longer in use after shutdown() of socket.
2005 This keeps GDB from dying of a SIGPIPE when you issue multiple
2006 `target udi' commands.
2007
2e66cf7d
FF
2008Wed Nov 18 14:27:47 1992 Fred Fish (fnf@cygnus.com)
2009
2010 * language.h (language_format_info): New structure to bundle
2011 local formatting information.
2012 * language.h (language_defn): Replace individual format info
2013 with language_format_info structs.
2014 * language.h (local_*_format, local_*_format_prefix,
2015 local_*_format_specifier, local_*_format_suffix): New macros
2016 for binary/octal/decimal/hex formats to access info elements.
2017 * c-exp.y (c_language_defn): Update for new format handling.
2018 * m2-exp.y (m2_language_defn): Update for new format handling.
2019 * dbxread.c (language.h): Include for partial-stab.h use.
5d074aa9
FF
2020 * mipsread.c (expression.h, language.h): Include for
2021 partial-stab.h use.
2e66cf7d
FF
2022 * defs.h (local_hex_format, local_hex_format_custom,
2023 local_hex_string, local_hex_string_custom): Move to language.h.
2024 * language.c (local_hex_format_custom, local_hex_string,
2025 local_hex_string_custom, local_octal_format_custom): Use new
2026 format handling.
2027 * language.c (unknown_language_defn, auto_language_defn,
2028 local_language_defn): Update for new format handling.
2029 * printcmd.c (print_scalar_formatted): Use new macros
2030 to access decimal and binary format info for printing.
2031 **** start-sanitize-chill ****
2032 * c-exp.y (chill_language_defn): Update for new format handling.
2033 * ch-exp.y (CHARACTER_LITERAL): Add support to yylex.
5d074aa9
FF
2034 * ch-exp.y (decode_integer_literal): Add function
2035 * ch-exp.y (match_integer_literal): Use decode_integer_literal.
2e66cf7d
FF
2036 * ch-exp.y (builtin_type_chill_char): Add definition.
2037 * gdbtypes.h (builtin_type_chill_char): Add declaration.
2038 **** end-sanitize-chill ****
2039
cdb1cc92
ILT
2040Tue Nov 17 11:17:06 1992 Ian Lance Taylor (ian@cygnus.com)
2041
2042 * tm-rs6000.h (BELIEVE_PCC_PROMOTION): Define, since AIX cc gets
2043 it right.
2044 (aix_framedata): added nosavedpc field.
2045 (SAVED_PC_AFTER_CALL): Don't try to optimize; just call
2046 read_register.
2047 (FRAMELESS_FUNCTION_INVOCATION): Pass second argument of 0.
2048 (FRAME_SAVED_PC): If PC not saved, use SAVED_PC_AFTER_CALL.
2049 * rs6000-tdep.c (skip_prologue): Handle gcc generated stfd
2050 instructions as function_frame_info does. Expand special case of
2051 st r31,-4(r1) to be st r31,NUM(r1), since gcc can generate offsets
2052 other than -4.
2053 (pop_frame): Add 4 rather than sizeof (int) to avoid host
2054 dependence.
2055 (function_frame_info): Set frameless if the function has no frame,
2056 and set nosavedpc if the PC was not saved. Handle gcc generated
2057 stfd 31,-4(31); st 31, -12(31) correctly.
2058 (frameless_function_invocation): New second argument pcsaved; if 0
2059 return whether the function has a frame, if 1 return whether the
2060 function saved PC.
2061 (frame_initial_stack_address): Correct typo: cache registers for
2062 callee_fi, not for fi, (avoids reading garbage memory locations).
2063
b638ca91
SG
2064Mon Nov 16 15:58:07 1992 Stu Grossman (grossman at cygnus.com)
2065
cdb1cc92
ILT
2066 * infrun.c (wait_for_inferior (just before step_over_function
2067 label)): Change test for stepping into subroutine to check for the
2068 presence of line number info. This makes stuff compiled with -g1
2069 cause GDB to not lose control when stepping.
2070
b638ca91
SG
2071 * symtab.c (find_pc_line): Improve code per gnu's suggestions.
2072 Improve comments as well.
2073
e58de8a2
FF
2074Sun Nov 15 09:22:09 1992 Fred Fish (fnf@cygnus.com)
2075
45a655b0
FF
2076 * Makefile.in (VERSION): Bump to 4.7.2
2077 * symtab.c (find_pc_symtab): Fix return of random value
2078 to caller.
e58de8a2
FF
2079 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add dependency on
2080 Makefile since it contains sed patterns used in generation.
2081 Add sed pattern to also delete #include of any malloc.h.
e58de8a2
FF
2082 * c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
2083 parser-defs.h, valarith.c, valops.c, value.h: Remap macros and
2084 function names to conform to K&R terminology with respect to
2085 logical and bitwise operators:
2086 UNOP_ZEROP => UNOP_LOGICAL_NOT
2087 UNOP_LOGNOT => UNOP_COMPLEMENT
2088 BINOP_LOGAND => BINOP_BITWISE_AND
2089 BINOP_LOGXOR => BINOP_BITWISE_XOR
2090 BINOP_LOGIOR => BINOP_BITWISE_IOR
2091 BINOP_AND => BINOP_LOGICAL_AND
2092 BINOP_OR => BINOP_LOGICAL_OR
2093 PREC_OR => PREC_LOGICAL_OR
2094 PREC_AND => PREC_LOGICAL_AND
2095 PREC_LOGIOR => PREC_BITWISE_IOR
2096 PREC_LOGXOR => PREC_BITWISE_XOR
2097 PREC_LOGAND => PREC_BITWISE_AND
2098 value_zerop() => value_logical_not()
2099 value_lognot() => value_complement()
2100 * c-exp.y (c_op_print_tab): Add explicit empty terminator.
2101 * m2-exp.y (m2_op_print_tab): Add explicit empty terminator.
19cfe25d
FF
2102 * i387-tdep.c (sys/dir.h): Remove, appears to be unnecessary
2103 and is nonexistant in some SVR4 based systems.
2104 * language.c (DEFAULT_ALLOCSIZE): Change from 3 => 4.
2105 * m2-exp.y (number_sign, modblock): Make static, #ifdef out
2106 unused modblock.
2107 * m2-exp.y (ANDAND): Rename to LOGICAL_AND.
2108 * source.c (source_info): Fix minor nits, print "1 line" rather
2109 than "1 lines", and "language is <lang>".
2110 * valarith.c (value_binop): Handle TYPE_CODE_BOOL as well
2111 as TYPE_CODE_INT and TYPE_CODE_FLOAT.
2112 * valprint.c (val_print): Print TYPE_CODE_BOOL type values as
2113 "TRUE" or "FALSE".
2114 * values.c (value_from_longest): Handle TYPE_CODE_BOOL.
2115 **** start-sanitize-chill ****
2116 * ch-exp.y: New expression parser, for GNU-Chill.
e58de8a2
FF
2117 * defs.h (enum language): Add language_chill.
2118 * dwarfread.c (set_cu_language): Add LANG_CHILL case and make
2119 LANG_MODULA2 a recognized language.
e58de8a2
FF
2120 * gdbtypes.h (enum_typecode): Note TYPE_CODE_BOOL used for
2121 Chill as well as Modula-2.
2122 * gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
2123 builtin_type_chill_ulong, builtin_type_chill_real): Add.
e58de8a2
FF
2124 * language.c (set_language_command): Add chill.
2125 * language.c (binop_result_type, integral_type, character_type,
2126 boolean_type, structured_type, value_true, binop_type_check):
2127 Add language_chill cases.
2128 * language.h (_LANG_chill): Define.
e58de8a2
FF
2129 * symfile.c (deduce_language_from_filename): Recognize the
2130 filename extensions ".chill", ".c186", and ".c286" for Chill.
e58de8a2 2131 * valprint.c (typedef_print): Add case for language_chill.
19cfe25d
FF
2132 * Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
2133 * Makefile.in (YYFILES): Add ch-exp.tab.c.
2134 * Makefile.in (YYOBJ): Add ch-exp.tab.o.
2135 * Makefile.in (saber_gdb): Add unload of ch-exp.y and load
2136 of ch-exp.tab.c.
2137 * Makefile.in (distclean): Add target ch-exp.tab.c.
2138 * Makefile.in (realclean): Add rm of ch-exp.tab.c.
2139 * Makefile.in (ch-exp.tab.o, ch-exp.tab.c): New targets.
2140 * eval.c (evaluate_subexp): Add OP_BOOL case.
2141 * expprint.c (print_subexp): Add OP_BOOL case.
2142 **** end-sanitize-chill ****
e58de8a2 2143
cbf15d9a
JG
2144Fri Nov 13 20:36:28 1992 John Gilmore (gnu@cygnus.com)
2145
2146 * infcmd.c (set_environment_command): Avoid skipping first
2147 char of env value if an '=' appears in it. Bug report and fix
2148 by Mark Jungerman, <maj@lucid.com>.
2149
c1878f87
SG
2150Fri Nov 13 20:24:10 1992 Stu Grossman (grossman at cygnus.com)
2151
2152 * infcmd.c (step_over_calls): Improve comments.
2153 * symtab.c (find_pc_psymtab): Clean up a bit.
2154 * (find_pc_symtab): Fix comments, clean up code.
2155 * (find_pc_line): General cleanups, efficiency improvements.
2156 Also, don't return garbage when some line info exists, but there
2157 was no good match.
2158
cbf15d9a
JG
2159Thu Nov 5 23:04:38 1992 Rob Ryan (rr2b@andrew.cmu.edu)
2160
2161 * xcoffexec.c (vmap_symtab): fixed a bug where if a object has no
2162 member, and the stat pointer passed to vmap_symtab was NULL, the
2163 wrong vmap entries would be modified. Fixes behavior where
2164 attempting to load symbols for a module with no member would mess
2165 up already read in symbols.
2166
b6113cc4
SG
2167Wed Nov 11 17:09:17 1992 Stu Grossman (grossman at cygnus.com)
2168
2169 * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
2170 29k-share/dfe/mini2udi.o.
2171 * config/a29k-udi.mt: Remove yank.o and mini2udi.o.
2172 * alldeps.mak, depend: Update to deal with removal of
2173 aforementioned files.
2174 * remote-udi.c: Major cleanups. Clean up udi_open and drop
2175 requirement for useless 'program' argument. Clean up
2176 udi_create_inferior, and udi_load to call common download()
2177 routine. Create download routine to load remote hosts directly
2178 (with the help of BFD) so that we don't need yank.c and
2179 mini2udi.c.
2180 Fix udi_detach to call UDIDisconnect with
2181 the right arguments. Clean up udi_resume, don't assign tip_error
2182 twice. Clean up udi_wait, straighten out status codes. Make
2183 udi_kill really work.
2184
2185Fri Nov 6 10:26:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
2186
2187 * c-exp.y: separated host/target idea of integer type size,
2188 removed redundant parse rules. (YYSTYPE): added typed_val, removed
2189 UINT and CHAR rules. (parse_number): work out the targetwise type
2190 of a number based upon it's size and qualifiers. (yylex): chars
2191 are now treated the same way as ints.
2192
2193 * source.c (indentify_source_line): don't core dump if wanted
2194 line is larger than number of lines in source. (can happen when
2195 coff gets confused about #included source).
2196
59c84bd8
JG
2197Fri Nov 6 03:00:39 1992 John Gilmore (gnu@cygnus.com)
2198
2199 Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
2200 when debugging a program with 100 shared libraries.
2201
2202 * solib.c (solib_map_sections): Always close the BFD we open.
2203 Free all malloc'd storage we allocate, too, including error cases.
2204 (struct so_list): Remove unused so_bfd member.
2205 (clear_solib): Don't bother closing so_bfd.
2206
2207 * symfile.c (symfile_bfd_open): Mark newly opened BFD as
2208 cacheable. `So many symbol files, so little file descriptors.'
2209
8a96d79b
JG
2210Fri Nov 6 00:14:38 1992 John Gilmore (gnu@cygnus.com)
2211
2212 * m68k-stub.c: Remove ansidecl.h and the few uses of it.
2213 Stubs should stand alone as much as possible.
2214
2215 * source.c (show_directories): Avoid printf_filtered length prob
2216 pointed out by Jonathan Stone.
2217
2218 * i960-pinsn.c (MEM_MAX, MEM_SIZ): Set upper limit properly to
2219 avoid accesses beyond end of table. Fix by Lee W. Cooprider,
2220 <Lee_Cooprider@vos.stratus.com>.
2221
402dca80
FF
2222Thu Nov 5 17:33:08 1992 Fred Fish (fnf@cygnus.com)
2223
2224 * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
2225 struct, not struct itself.
2226 * serial.h (serial_restore): Fix prototype, takes pointer not
2227 struct.
2228
2352d20b
SG
2229Thu Nov 5 17:12:42 1992 Stu Grossman (grossman at cygnus.com)
2230
2231 * Makefile.in (depend): Add nm.h to the list of things to fixup.
2232 * depend: Redo, to fixup nm.h problems with *-tab.c files.
2233
61f55ca3
JG
2234Thu Nov 5 00:19:51 1992 John Gilmore (gnu@cygnus.com)
2235
042bf84c
JG
2236 * i386-stub.c: Remove ansidecl.h and the few uses of it.
2237 Stubs should stand alone as much as possible.
2238
61f55ca3
JG
2239 * README: Add remote-es1800.c and remote-st2000.c to table.
2240 * go32-nat.c: Remove, there is no native go32 support.
2241 * go32-xdep.c: Remove unused fork, fvork, wait, execlp, kill_inferior.
2242
740b7efa
SG
2243Wed Nov 4 15:27:31 1992 Stu Grossman (grossman at cygnus.com)
2244
1549918a
SG
2245 * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
2246 new routines to deal with sending SIGINTs to attached processes
2247 when the user interrupts the controlling GDB.
2248 * inftarg.c (child_wait), procfs.c (procfs_wait): Add calls to
2249 the aforementioned routines when waiting for the attached process.
2250
740b7efa
SG
2251 * elfread.c, mipsread.c: Include <string.h>.
2252 * i386-stub.c: Include "ansidecl.h" to deal with prototypes.
2253 * serial.h: Add prototype for serial_restore().
2254
a521e93a
ILT
2255Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
2256
2257 * minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
2258 minimal_symbol_count, because the NULL symbol is not included in
2259 the count. This prevented this function from finding the last
2260 symbol in the table.
2261
b1fbbed4
ILT
2262Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
2263
2264 * dbxread.c (process_one_symbol): if not defined
2265 (BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
2266 the start of the function, not just after N_FUN.
2267
2268Fri Oct 30 16:33:02 1992 Fred Fish (fnf@cygnus.com)
e35843d4
FF
2269
2270 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
2271 remap all malloc's to xmalloc's and all realloc's to xrealloc's.
2272 * c-exp.y, m2-exp.y: Add comment about how malloc/realloc are
2273 remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
2274 file. Remove preprocessor defines that previously did remapping.
2275
61f55ca3
JG
2276Fri Oct 30 00:58:18 1992 John Gilmore (gnu@cygnus.com)
2277
2278 * infcmd.c (run_command): Avoid long calls to printf_filtered.
2279 Bug fix courtesy of Alexander Klaiber.
2280
851fffcf
RP
2281Tue Oct 27 17:08:45 1992 K. Richard Pixley (rich@cygnus.com)
2282
b1de302a
RP
2283 hp300 native support (hp300hpux untested).
2284
2285 * hp300ux-xdep.c: removed.
2286 * xm-hp300bsd.h (REGISTER_U_ADDR): removed.
2287 * xm-hp300hpux.h: updated copyright.
2288 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed.
2289 * nm-hp300bsd.h, nm-hp300hpux.h, hp300ux-nat.c: new files.
2290 * Makefile.in (HFILES): added nm-hp300bsd.h and nm-hp300hpux.h.
2291 * config/hp300bsd.mh (XDEPFILES): removed infptrace.o inftarg.o
2292 fork-child.o coredep.o corelow.o.
2293 (NAT_FILE, NATDEPFILES): new macros.
2294 * config/hp300bsd.mt (TDEPFILES): removed exec.o.
2295 * config/hp300hpux.mh (XDEPFILES): removed infptrace.o inftarg.o
2296 fork-child.o.
2297 (NAT_FILE, NATDEPFILES): new macros.
2298 * config/hp300hpux.mt (TDEPFILES): removed exec.o.
2299
7aae0974
RP
2300 Vax ultrix native support.
2301
2302 * nm-vax.h: new file.
2303 * Makefile.in (HFILES): added nm-vax.h.
2304 * config/vaxult.mh (XDEPFILES): infptrace.o inftarg.o fork-child.o
2305 coredep.o corelow.o removed.
2306 (NAT_FILE, NATDEPFILES): new macros.
2307 * xm-vax.h: updated copyright.
2308 (REGISTER_U_ADDR): removed.
2309
5c9bbfe6
RP
2310 Apollo native support (untested).
2311
124a6fc0 2312 * Makefile.in (HFILES): added nm-apollo68[bv].h.
5c9bbfe6
RP
2313 * a68v-nat.c, nm-apollo68[bv].h: new files.
2314 * xm-apollo68[bv].h (FETCH_INFERIOR_REGISTERS): removed.
2315 * xm-apollo68b.h (PTRACE_IN_WRONG_PLACE): removed.
2316 * a68v-xdep.c: removed.
2317 * config/apollo68[bv].mh (XDEPFILES): removed infptrace.o
2318 inftarg.o fork-child.o a68v-xdep.o.
2319 (NAT_FILE, NATDEPFILES): new macros.
2320
851fffcf
RP
2321 * defs.h: include nm.h.
2322 * coredep.c, infptrace.c, procfs.c, rs6000-nat.c, sparc-nat.c,
2323 sparc-tdep.c, : do not include nm.h.
2324 * doc/gdbint.texinfo: nm.h now included in defs.h.
2325
451df680
SG
2326Fri Oct 23 04:47:17 1992 Stu Grossman (grossman at cygnus.com)
2327
bccaecc6
SG
2328 * Makefile.in (VERSION): 4.7.1 post release!
2329
451df680
SG
2330 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o.
2331
c50c5197
JG
2332Fri Oct 23 00:48:08 1992 John Gilmore (gnu@cygnus.com)
2333
2334 * Makefile.in (VERSION): gdb-4.7 release.
2335 * README: Update for gdb-4.7.
2336
db5b1f90
SG
2337Thu Oct 22 11:24:18 1992 Stu Grossman (grossman at cygnus.com)
2338
ee22c7f0
SG
2339 * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
2340 when necessary.
2341
db5b1f90
SG
2342 * alldeps.mak, depend: Update.
2343
fef84cc4
JG
2344Thu Oct 22 03:14:36 1992 John Gilmore (gnu@cygnus.com)
2345
2346 * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
2347 is null.
2348 * tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP): Remove -- it
2349 causes problems in setting breakpoint in the right place in
2350 functions with `float' args which are passed as doubles.
2351 * xm-vaxbsd.h (MEM_FNS_DECLARED): Avoid erroneous redecl's.
2352 * config/rs6000.mh (NATDEPFILES): Add corelow.o.
2353
603900c7
SG
2354Thu Oct 22 01:01:24 1992 Stu Grossman (grossman at cygnus.com)
2355
2356 * Makefile.in (HFILES): Add nm-i386sco.h.
2357 * dwarfread.c: include <sys/types.h> for SCO.
2358 * infptrace.c: Don't include ptrace.h under SCO.
2359 * config/i386sco.mh: Use -D_POSIX_SOURCE instead of -posix for
2360 gcc.
2361 * config/i386v.mt: Add exec.o to TDEPFILES.
2362
3496b745
SG
2363Wed Oct 21 19:08:20 1992 Stu Grossman (grossman at cygnus.com)
2364
2365 * i386v-nat.c: Remove space from front of #endif.
2366 * irix4-nat.c: Remove externs of registers[], include inferior.h
2367 instead.
2368 * mips-nat.c: Explicitly initialize zerobuf to 0!
2369 * mips-tdep.c (init_extra_frame_info): Undo John's last change.
2370 Always setup fci->frame, even if it's non-zero. Too many places
2371 depend upon this behavior (and I have to get a release out the
2372 door)!
2373 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1): Set
2374 processing_gcc_compilation if we find the embedded stabs marker.
2375 This fixes several bugs with finding the location of short or char
2376 function parameters passed on the stack.
2377
99ef5653
RP
2378Wed Oct 21 17:46:07 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2379
2380 Native support for sun4sol2.
2381
2382 * xm-sysv4.h (USE_PROC_FS, ATTACH_DETACH): removed to nm-sysv4.h.
2383 * nm-sysv4.h: new file.
2384 * Makefile.in (HFILES): added nm-sysv4.h.
2385 * config/sun4sol2.mh (XDEPFILES): removed procfs.o fork-child.o.
2386 (NAT_FILE, NATDEPFILES): new macros.
2387 * config/sun4sol2.mt (TDEPFILES): removed exec.o and solib.o.
2388
e4db3f3e
JG
2389Wed Oct 21 03:51:01 1992 John Gilmore (gnu@cygnus.com)
2390
0a2a48a2
JG
2391 * coredep.c: Include "nm.h" to get REGISTER_U_ADDR.
2392 * doc/gdbint.texinfo: Improve REGISTER_U_ADDR and USE_PROC_FS doc.
2393
e4db3f3e
JG
2394 * Makefile.in (VERSION): Tick to 4.6.9.
2395
2396Tue Oct 20 23:27:56 1992 John Gilmore (gnu@cygnus.com)
2397
2398 * mipsread.c (UNSAFE_DATA_ADDR): Remove MIPS-host-specific
2399 definition, replace with portable one.
2400 * remote-nindy.c: Lint.
2401 (nindy_wait): Return type is int, result is inferior_pid.
2402 * symmisc.c (dump_psymtab): Only print section_offsets if set.
2403 (initialize_symmisc): Remove empty function.
2404 * tm-spc-noun.h, tm-sun4os4.h, tm-sun4sol2.h (STACK_END_ADDRESS):
2405 Remove obsolete, misspelled macro.
2406 * doc/gdbint.texinfo: Document obsolete STACK_END_ADDR.
2407 (all @node commands): Use new form to avoid nitpicking errors.
2408 * doc/gdbint.texinfo: Document host/native/target split.
2409
ce5489d2
SG
2410Wed Oct 21 00:14:34 1992 Stu Grossman (grossman at cygnus.com)
2411
e0e91077
SG
2412 * mips-nat.c (zerobuf): Get rid of const to avoid gcc warnings.
2413
ce5489d2
SG
2414 * xm-mips.h (offsetof): Don't define this if __STDC__.
2415
ca048722
RP
2416Tue Oct 20 21:32:18 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2417
3fcb9021
RP
2418 umax native support (untested).
2419
2420 * config/umax.mh (XDEPFILES): removed infptrace.o inftarg.o
2421 fork-child.o.
2422 (NAT_FILE, NATDEPFILES): new macros.
2423 * config/umax.mt (TDEPFILES): removed exec.o.
2424 * xm-umax.h (U_REGS_OFFSET, ATTACH_DETACH, REGISTER_U_ADDR):
2425 removed to nm-umax.h.
2426 * nm-umax.h: new file.
2427 * Makefile.in (HFILES): added nm-umax.h.
2428
ca048722
RP
2429 hppa native support (untested).
2430
2431 * config/hppahpux.mh, config/hppabsd.mh (XDEPFILES): now empty.
2432 (NAT_FILE, NATDEPFILES): new macros.
2433 * config/hppabsd.mt (TDEPFILES): removed exec.o and hppab-core.o.
2434 * config/hppahpux.mt (TDEPFILES): removed exec.o.
2435 * xm-hppa[bh].h (REGISTER_U_ADDR, U_REGS_OFFSET): removed.
2436 * nm-hppa[bh].h, hppa[bh]-nat.c: new files.
2437 * hppa[bh]-xdep.c: removed.
2438 * hppa[bh]h-tdep.c: do not include ptrace.h.
2439 * Makefile.in (HFILES): added nm-hppa[bh].h.
2440
2441 * doc/gdbint.texinfo: add PUSH_DUMMY_FRAME, POP_FRAME.
2442
2675499b
SG
2443Tue Oct 20 00:01:46 1992 Stu Grossman (grossman at cygnus.com)
2444
2445 * mips-nat.c: Straighten out include files. Work around
2446 conflicting defs of JB_xxx syms in <setjmp.h> and <machine/pcb.h>
2447 for Ultrix-4.2.
2448
d95eb930
SG
2449Mon Oct 19 15:09:57 1992 Stu Grossman (grossman at cygnus.com)
2450
56fc16c7
SG
2451 * mips-nat.c (fetch_core_registers, register_addr): Copy from
2452 coredep.c, but zero out FP_REGNUM & ZERO_REGNUM so that stack
2453 backtraces from core files work.
2454 * config/decstation.mh, config/irix3.mh: Remove coredep.o.
2455 Functions are now defined in mips-nat.c.
2456
2457 * tm-irix3.h: Put MIPS_EFI_SYMBOL_NAME in here too.
2458
3ec5a74b
SG
2459 * remote-hms.c: Disable all uses of serial_nextbaudrate and
2460 serial_default_name().
2461
5a6242dd
SG
2462 * remote-hms.c, ser-go32.c, serial.h: Change from
2463 serial_timedreadchar() to new serial_readchar().
2464
d95eb930
SG
2465 * Makefile.in (HFILES): Fixup list of nm-*.h files. Add missing ones.
2466
10a297b7
PB
2467Mon Oct 19 12:45:23 1992 Per Bothner (bothner@cygnus.com)
2468
2469 * c-exp.y: Moved handling of 'const' and 'volatile' from
2470 <type> to <typebase>. This removes 2 conflicts.
2471
e6efef9f
FF
2472Sun Oct 18 00:36:30 1992 Fred Fish (fnf@cygnus.com)
2473
2474 * breakpoint.c (breakpoint_re_set_one): Don't delete watchpoints
2475 from breakpoint table when reseting breakpoints.
2476
4d0eabff
FF
2477Sat Oct 17 00:59:23 1992 Fred Fish (fnf@cygnus.com)
2478
2479 Native support cleanup and corefile fixes for i386 SVR4 systems.
2480
2481 * i386-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2482 fill_fpregset): Moved to i386v4-nat.c
2483 * i386v4-nat.c, nm-i386v4.h, : New files.
2484 * i386sol2.mh, i386v4.mh, ncr3000.mh (NAT_FILE): Use nm-i386v4.h.
2485 * i386sol2.mh, i386v4.mh, ncr3000.mh (NATDEPFILES): Add corelow.o,
2486 change i386v-nat.o to i386v4-nat.o.
2487
173a4f1b
RP
2488Fri Oct 16 13:06:08 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2489
c36989aa
RP
2490 Miscellaneous 386 configs updated.
2491
2492 * config/i386aout.mt (TDEPFILES): removed exec.o.
2493 * config/i386sol2.mh, config/ncr3000.mh, config/i386v4.mh
2494 (XDEPFILES): removed procfs.o fork-child.o i386-xdep.o.
2495 (NAT_FILE, NATDEPFILES): new macros.
2496 * config/i386aout.mt, config/i386sol2.mt, config/ncr3000.mt,
2497 config/i386v4.mt (TDEPFILES): removed exec.o.
2498 * config/i386v32.mh (XDEPFILES): removed infptrace.o inftarg.o
2499 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
2500 (NAT_FILE, NATDEPFILES): new macros.
2501 * config/i386sco.mh (XDEPFILES): removed infptrace.o inftarg.o
2502 fork-child.o coredep.o corelow.o i386-xdep.o.
2503 (NAT_FILE, NATDEPFILES): new macros.
2504
f1a353db
RP
2505 Native support cleanup for i386bsd (untested).
2506
2507 * config/i386bsd.mt (NATDEPFILES): exec.o removed.
2508 * config/i386bsd.mh (NATDEPFILES): added exec.o
2509 * tm-i386bsd.h (FLOAT_INFO): removed.
2510 * nm-i386bsd.h (FLOAT_INFO): added.
2511
c7c94073
RP
2512 Native support for i386v (untested).
2513
2514 * config/i386v.mh (XDEPFILES): removed infptrace.o inftarg.o
2515 fork-child.o coredep.o corelow.o i386-xdep.o i387-tdep.o.
2516 (NAT_FILE, NATDEPFILES): new macros.
2517 * config/i386v.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
2518 * i386-xdep.c: removed.
2519 * Makefile.in (HFILES): added nm-i386v.h
2520 * i386v-nat.c, nm-i386v.h: new file.
2521 * xm-i386v.h: (REGISTER_U_ADDR, i386_register_u_addr): removed to
2522 nm-i386v.h.
2523 * tm-i386v.h (FLOAT_INFO): removed.
2524
e24cb83d
RP
2525 Native support for linux (untested).
2526
2527 * config/linux.mh (XDEPFILES): removed infptrace.o inftarg.o
c7c94073 2528 fork-child.o coredep.o corelow.o i387-tdep.o i386-xdep.o.
e24cb83d
RP
2529 (NAT_FILE, NATDEPFILES): new macros.
2530 * config/linux.mt (TDEPFILES): removed exec.o, added i387-tdep.o.
2531 * Makefile.in (HFILES): added nm-linux.h.
2532 * nm-linux.h: new file.
2533 * xm-linux.h: updated copyright. cleaned up formatting.
2534 (ATTACH_DETACH, U_REGS_OFFSET): removed to nm-linux.h.
2535
61bbb1c2
RP
2536 Native support for sun386 (untested).
2537
2538 * config/sun386.mh (XDEPFILES): removed infptrace.o inftarg.o
2539 fork-child.o sun386-xdep.o.
2540 (NAT_FILE, NATDEPFILES): new macros.
2541 * config/sun386.mt (TDEPFILES): removed exec.o.
2542 * Makefile.in (HFILES): added nm-sun386.h.
2543 * sun386-nat.c, nm-sun386.h: new file.
2544 * sun386-xdep.c: removed.
2545 * xm-sun386.h: updated comment and copyright.
2546 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
2547 nm-sun386.h.
2548
a113beac
RP
2549 Native support for i386mach (untested).
2550
2551 * config/i386mach.mh (XDEPFILES): removed infptrace.o inftarg.o
2552 fork-child.o mach386-xdep.o.
2553 (NAT_FILE, NATDEPFILES): new macros.
2554 * Makefile.in (HFILES): added nm-i386mach.h.
2555 * nm-i386mach.h, i386mach-nat.c: new files.
2556 * mach386-xdep.c: removed.
2557 * xm-i386mach.h: updated copyright.
2558 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): removed to
2559 nm-i386mach.h.
2560
d9548d44
RP
2561 Native separation for go32 (untested).
2562
2563 * config/go32.mh (NAT_FILE, NATDEPFILES): new macros.
2564 * go32-nat.c: new file.
2565 * go32-xdep.c (call_ptrace, child_resume,
2566 fetch_inferior_registers, store_inferior_registers,
2567 child_xfer_memory, fetch_core_registers): removed to go32-nat.c.
2568
173a4f1b
RP
2569 Native support for m88k (untested).
2570
e367cb3b 2571 * Makefile.in (HFILES): added nm-m88k.h
173a4f1b
RP
2572 * xm-delta88.h, xm-m88k.h (REGISTER_U_ADDR,
2573 FETCH_INFERIOR_REGISTERS): removed.
2574 * config/m88k.mh, config/delta88.mh (XDEPFILES): infptrace.o
2575 inftarg.o fork-child.o m88k-xdep.o removed to NATDEPFILES.
2576 (NAT_FILE, NATDEPFILES): new macros.
2577 * config/m88k.mt, config/delta88.mt (TDEPFILES): removed exec.o.
2578 * m88k-nat.c, nm-m88k.h, nm-delta88.h: new files.o.
2579 * m88k-xdep.c: removed.
2580
f4cc0e9b
JG
2581Fri Oct 16 04:16:30 1992 John Gilmore (gnu@cygnus.com)
2582
2583 * i386b-nat.c: Comment changes.
2584 * nm-i386bsd.h, xm-i386bsd.h: Split native dependent pieces out
2585 into new nm-file.
2586 * config/i386bsd.mh (NAT_FILE): Point to new nm-file.
2587
2268d619
JG
2588Fri Oct 16 03:34:01 1992 John Gilmore (gnu@cygnus.com)
2589
2590 Avoid longjmp()-catching compilation errors in cross-ports.
2591
2592 * doc/gdbint.texinfo: Update GET_LONGJMP_TARGET, L_SET doc.
2593 * irix4-nat.c, mips-nat.c (JB_ELEMENT_SIZE, get_longjmp_target):
2594 Move from mips-tdep.c and tm-{irix3,mips}.h.
2595 * mips-nat.c: Remove a bunch of code that was ifdef'd out of
2596 native MIPS ports.
2597 * nm-irix3.h, nm-mips.h (GET_LONGJMP_TARGET): Move from tm-irix3.h
2598 and tm-mips.h.
2599
2600 * ultra3-nat.c (register_addr): Move from ultra3-xdep.c.
2601 (fetch_core_registers): Fix bfd_seek arguments.
2602
62aa17e3
JG
2603Fri Oct 16 03:02:28 1992 John Gilmore (gnu@cygnus.com)
2604
d5a66a8d
JG
2605 Make core files work again (add back the `core' target).
2606
2607 * config/decstation.mh, news.mh, sun2os3.mh, sun2os4.mh
2608 (NATDEPFILES): Add corelow.o.
62aa17e3
JG
2609 * config/delta88.mt, m88k.mt (TDEPFILES): Remove coredep.o, it's
2610 native dependent.
2611
d5a66a8d
JG
2612 * config/3b1.mh, bigmips.mh, hp300bsd.mh, hppabsd.mh, hppahpux.mh,
2613 i386sco.mh, i386v.mh, i386v32.mh, irix3.mh, isi.mh, linux.mh,
2614 littlemips.mh, merlin.mh, news1000.mh, pn.mh, rtbsd.mh, tahoe.mh,
2615 vaxbsd.mh, vaxult.mh (XDEPFILES): Add corelow.o whenever coredep.o
2616 appears. FIXME, these should be moved to NATDEPFILES for native
2617 use only.
2618
b396595a
RP
2619Thu Oct 15 21:53:53 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2620
6bf98ac0
RP
2621 Ultra3 host/target/native split. (untested).
2622
2623 * ultra3-xdep.c: updated copyright. Do not include sys/ptrace.h.
2624 (fetch_register, fetch_inferior_registers,
2625 store_inferior_registers, fetch_core_registers): removed to
2626 ultra3-nat.c.
2627 * xm-ultra3.h (FETCH_INFERIOR_REGISTERS, U_REGS_OFFSET): removed
2628 to nm-ultra3.h.
2629 * Makefile.in (HFILES): added nm-ultra3.h.
2630 * nm-ultra3.h, ultra3-nat.c: new files for native support.
2631 * config/ultra3.mh (XDEPFILES): removed infptrace.o inftarg.o
2632 fork-child.o.
2633 (NAT_FILE, NATDEPFILES): new macros for native support.
2634 * config/ultra3.mt (TDEPFILES): exec.o removed.
2635
b396595a
RP
2636 * xm-vaxult.h: add MEM_FNS_DECLARED.
2637
d5931d79
JG
2638Thu Oct 15 02:59:30 1992 John Gilmore (gnu@cygnus.com)
2639
2640 * Makefile.in (VERSION): Roll to 4.6.8.
2641 (OBS): Put version.o first, so Makefile rebuild happens early.
2642
2643 * command.h: Publicize prototype for not_just_help_class_command.
2644 * command.c: Remove proto.
327f7197
JG
2645 * maint.c: Mark "mt" as an abbrev, to avoid duplicated help
2646 output. Move "maint info" from class info to class maintenance,
2647 and improve text.
2648 * infrun.c: Move "stop" to class_obscure, and give it a
d5931d79
JG
2649 function so it will not be seen as a global help topic. FIXME,
2650 it should be possible to set these attributes independently.
2651
2652 * core.c (core_command): Make nicer error message for no core support.
d5931d79
JG
2653
2654 Lint around file_ptr's (bfd's off_t's) and bfd_seek.
2655
2656 * dbxread.c (read_dbx_symtab): Use L_SET as bfd_seek arg.
2657 (elfstab_build_psymtabs): staboffset and stabstroffset args are
2658 file_ptr's.
2659 * dwarfread.c (struct dwfinfo): Convert dbfoff, lnfoff to file_ptr.
2660 (scan_compilation_units): Punt unused filename arg. dbfoff,
2661 lnoffset, and curlnoffset are file_ptr's now.
2662 (dwarf_build_psymtabs): Drop desc and filename args; use
2663 objfile. dbfoff and lnoffset are file_ptr's now.
2664 (read_ofile_symtab): foffset is now file_ptr. Use L_SET in bfd_seek.
2665 * elfread.c (struct elfinfo): dboffset and lnoffset are file_ptr's.
2666 (elf_symfile_read): Skip desc and filename args to
2667 dwarf_build_psymtabs. Pass file_ptr's to elfstab_build_psymtabs.
2668 * gdb-stabs.h: Use file_ptr rather than off_t.
2669 * mipsread.c (fixup_symtab): f_ptr is a file_ptr. Re-enable
2670 compile-time debug check that someone turned off as "unused".
2671 (read_the_mips_symtab): st_filptr is a file_ptr. Fix bfd_seek call.
2672 * symfile.h: Update dwarf_build_psymtabs and
2673 elfstab_build_psymtabs prototypes.
2674 * xcoffread.c (init_stringtab, init_lineno, xcoff_symfile_read):
2675 Use file_ptr offsets. bfd_seeks use L_SET.
2676
dac4929a
SG
2677Thu Oct 15 01:27:32 1992 Stu Grossman (grossman at cygnus.com)
2678
2679 * mips-tdep.c, mipsread.c, tm-mips.h: Get rid of ".gdbinfo."
2680 symbol. #define MIPS_EFI_SYMBOL_NAME instead. Use different
2681 value so that demangler won't be invoked. This greatly speeds up
2682 stepping.
2683 * mips-tdep.c (mips_pop_frame): Rewrite handling of
2684 linked_proc_info so that it properly deallocates the appropriate
2685 item after it is done with it instead of before.
2686 * Don't pass bogus frame pointer to create_new_frame(). Just
2687 leave it as zero so that lower level code will figure out the
2688 correct value.
2689
a6b98cb9
RP
2690Wed Oct 14 18:56:28 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2691
75365589
RP
2692 Sony News native support.
2693
2694 * Makefile.in (HFILES): added nm-news.h.
2695 * nm-news.h: new file.
2696 * config/news.mh (XDEPFILES): removed infptrace.o inftarg.o
2697 fork-child.o coredep.o to NATDEPFILES.
2698 (NAT_FILE, NATDEPFILES): new macros for native support.
2699 * config/news.mt (TDEPFILES): removed exec.o.
2700
170d4f55
RP
2701 * remote-vx.c: remove redundant include of sys/time.h.
2702
a6b98cb9
RP
2703 * infrun.c: include ctype.h. Otherwise some machines result in
2704 undefined for isdigit.
2705
358ca35e
JG
2706Tue Oct 13 01:27:14 1992 John Gilmore (gnu@cygnus.com)
2707
2708 * configure.in: Convert m68k entries to m68* entries to handle
2709 all the various m68xxx hosts and targets.
849d81e5 2710 * config/news1000.mt: No longer needed, same as news.mt.
358ca35e 2711
601f1570
RP
2712Fri Oct 9 18:54:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2713
2714 * config/sun3os[34].mh (NATDEPFILES): remove duplicate inftarg.o.
2715
89f1a7df
SG
2716Fri Oct 9 14:20:08 1992 Stu Grossman (grossman at cygnus.com)
2717
47b7176b
SG
2718 * Makefile.in (HFILES): Add all nm-irix3.h, nm-irix4.h,
2719 nm-sun2.h, nm-mips.h.
2720
30328636
SG
2721 * config/irix3.mh (NATDEPFILES): nat-mips.o => mips-nat.o.
2722
a1096574
SG
2723 * Makefile.in (alldeps.mak): Add = sign after NATDEPFILES.
2724
89f1a7df
SG
2725 * config/bigmips.mh config/littlemips.mh: Remove mips-xdep.o.
2726
b5ddc101
ILT
2727Fri Oct 9 08:41:11 1992 Ian Lance Taylor (ian@cygnus.com)
2728
2729 * xm-hppah.h: if __STDC__ is not defined, define
2730 HPPA_COMPILER_BUG.
2731 symtab.c (decode_line_1): avoid a bug in the HP9000/700 native
2732 compiler; see the comment in the file.
2733
0e35d2f3
JG
2734Fri Oct 9 04:43:43 1992 John Gilmore (gnu@cygnus.com)
2735
2736 First cut at support for all BSD variants on 386.
2737
2738 * tm-i386bsd.h, xm-i386bsd.h: New config files.
2739 * i386b-nat.c: New native support file.
2740 * configure.in: Add host and target for i[34]86-*-bsd*.
2741 * config/i386bsd.mh, config/i386bsd.mt: New config files.
2742
a70dc898
RP
2743Fri Oct 9 00:31:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2744
56e89422
RP
2745 Sun2 native support (untested).
2746
2747 * xm-sun2.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS,
2748 REGISTER_U_ADDR): removed to nm-sun2.h.
2749 * nm-sun2.h: new file.
2750 * config/sun2os[34].mh (XDEPFILES): infptrace.o inftarg.o
2751 fork-child.o sun3-xdep.o removed.
2752 (NAT_FILE, NATDEPFILES): new macros.
2753
a70dc898
RP
2754 Mips native support. Decstation and iris4 have been tested.
2755 Iris3 has not.
2756
2757 * mips-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
2758 fill_fpregset): removed to irix4-nat.c
2759 * mips-xdep.c: removed.
2760 * irix4-nat.c, mips-nat.c, nm-irix3.h, nm-irix4.h, nm-mips.h: new
2761 files.
2762 * procfs.c: include nm.h.
2763 * xm-irix3.h (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS): removed.
2764 * xm-irix4.h: bump copyright.
2765 (U_REGS_OFFSET, FETCH_INFERIOR_REGISTERS, USE_PROC_FS,
2766 PROC_NAME_FMT): removed.
2767 * xm-mips.h (FETCH_INFERIOR_REGISTERS): removed.
2768 * config/irix4.mh (XDEPFILES): removed procfs.o fork-child.o.
2769 (NAT_FILE, NATDEPFILES): new macros for native support.
2770 (CC): supply default compiler switches.
d5931d79
JG
2771 * config/irix3.mh (XDEPFILES): removed infptrace.o inftarg.o
2772 fork-child.o coredep.o.
a70dc898
RP
2773 (NAT_FILE, NATDEPFILES): new macros for native support. Note that
2774 irix3 is untested.
2775 * config/decstation.mh (XDEPFILES): removed infptrace.o inftarg.o
2776 fork-child.o mips-xdep.o coredep.o.
2777 (NAT_FILE, NATDEPFILES): new macros for native support.
2778
55ec69fb
RP
2779Thu Oct 8 23:50:51 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2780
2781 * config/rs6000.mh (XDEPFILES): removed fork-child.o.
2782 (NATDEPFILES): added fork-child.o
2783 * config/sun3os3.mh (XDEPFILES): removed fork-child.o.
2784 (NATDEPFILES): added fork-child.o
2785 * config/sun3os4.mh (XDEPFILES): removed fork-child.o.
2786 (NATDEPFILES): added fork-child.o
2787
01ae50eb
JG
2788Thu Oct 8 23:19:25 1992 John Gilmore (gnu@cygnus.com)
2789
2790 * infcmd.c (path_info): Avoid 250-char limit on printf_filtered,
2791 by using puts_filtered instead.
2792
0256270d
KR
2793Fri Oct 9 00:28:25 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
2794
2795 * remote-nindy.c (nindy_load): Replacement version from Steve
2796 Chamberlain, doesn't require forking to run "strip" or "sx".
2797
e6c61372
SG
2798Thu Oct 8 18:27:35 1992 Stu Grossman (grossman at cygnus.com)
2799
2800 * Makefile.in (HFILES): Add nm-*.h files.
2801
968720bf
RP
2802Thu Oct 8 16:27:45 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2803
dd6f8695
RP
2804 * config/sun4os4.mh (XDEPFILES): fork-child.o removed.
2805 (NATDEPFILES): added fork-child.o.
2806
968720bf
RP
2807 * doc/gdbint.texinfo: document a few more macros, create new
2808 section for native macros.
2809
e7ae70e9
SG
2810Thu Oct 8 13:52:46 1992 Stu Grossman (grossman at cygnus.com)
2811
2812 * Makefile.in alldeps.mak depend: Rip out 29k/udi pending
2813 resolution of copyright issues.
2814
0da70124
SG
2815Wed Oct 7 20:08:53 1992 Stu Grossman (grossman at cygnus.com)
2816
2817 * Makefile.in (setup-to-dist): Remove -norecursion so that doc
2818 subdir gets configured.
2819
6a1f93f6
KR
2820Wed Oct 7 12:24:01 1992 Ken Raeburn (raeburn@cygnus.com)
2821
2822 * Makefile.in (nindy.o): Define "STRIP" as pathname of strip
2823 program.
2824 * nindy-share/nindy.c (coffstrip): Use that pathname, instead of
2825 searching for a "bfd_strip" program. Also, fixed up arguments
2826 passed to that program.
2827
2828 * tm-nindy960.h (ADDITIONAL_OPTIONS): Use "-ser" rather than "-r",
2829 which is now used for something else. Rewrite description of
2830 associated parameters to match how gdb does it now.
2831 (ADDITIONAL_OPTION_HELP): Fix message accordingly.
2832
2833 * m68k-pinsn.c (print_insn_arg): Handle new "`" operand type.
2834
3950a34e
RP
2835Tue Oct 6 14:47:11 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2836
2837 NOTICE_SIGNAL_HANDLING_CHANGE macro added to the target vector as
2838 to_notice_signals.
2839
2840 * inferior.h (proc_signal_handling_change): prototype removed.
2841 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): default removed.
2842 (handle_command): now calls target_notice_signals.
2843 * procfs.c (proc_signal_handling_change): renamed to
2844 procfs_notice_signals. Now static. Add prototype. All callers
2845 changed.
2846 * target.h (struct target_ops): new field, to_notice_signals.
2847 (target_notice_signals): new macro to cover new field.
2848 * target.c (cleanup_target): default to_notice_signals to ignore.
2849 * corelow.c (core_ops),
2850 exec.c (exec_ops),
2851 inftarg.c (child_ops),
2852 procfs.c (procfs_ops),
2853 remote-adapt.c (adapt-ops),
2854 remote-eb.c (eb_ops),
2855 remote-es1800.c (es1800_ops, es1800_child_ops),
2856 remote-hms.c (hms_ops),
2857 remote-mm.c (mm_ops),
2858 remote-nindy.c (nindy_ops),
2859 remote-st2000.c (st2000_ops),
e7ae70e9 2860 remote-udi.c (udi_ops),
3950a34e
RP
2861 remote-vx.c (vx_ops, vx_run_ops),
2862 remote.c (remote_ops),
2863 target.c (dummy_target),
2864 xcoffexec.c (exec_ops): added static initializer for
2865 to_notice_signals.
2866 * xm-irix4.h, xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): removed.
2867
06e4d12d
JG
2868Tue Oct 6 12:13:08 1992 John Gilmore (gnu@cygnus.com)
2869
2870 * main.c (define_command): Add forgotten initializer.
2871
48ab6c0e
JG
2872Tue Oct 6 02:23:17 1992 John Gilmore (gnu@cygnus.com)
2873
b5af69c3
JG
2874 * language.c, language.h: Move saved_language out to global
2875 expected_language. Set expected_language when user expectation
2876 changes.
2877 * language.c (language_info): Don't print type/range checking gub.
2878 * main.c (main): Set expected language.
2879 (execute_command): Check against expected language.
2880 * symfile.c (set_initial_language): Set expected language.
2881
48ab6c0e
JG
2882 * configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.
2883
94603999
JG
2884Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
2885
2886 A bunch of changes mostly to improve debugging of C++ programs.
2887 Specifically, the calling of inferiors methods is improved.
2888
2889 * value.h: New macros METHOD_PTR_IS_VIRTUAL,
2890 METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially
2891 hide the implementation details of pointer-to-method objects.
2892 How to tell if the pointer points to a virtual method is
2893 still very dependent on the particular compiler, but this
2894 should make it easier to find the places to change.
2895 * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c
2896 (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_*
2897 macros, instead of a hard-wired-in code that incorrectly
2898 assumed a no-longerused representation of pointer-to-method
2899 values. And otherwise fix the relevant bit-rotted code.
2900
2901 * valprint.c (type_print_base [case TYPE_CODE_STRUCT]):
2902 If there are both fields and methods, put a space between.
2903
2904 * stabsread.c (read_struct_type): Fix bug in handling of
2905 GNU C++ anonymous type (indicated by CPLUS_MARKER followed
2906 by '_'). (It used to prematurely exit the loop reading in
2907 the fields, so it would think it should start reading
2908 methods while still in the fields. This could crash gdb
2909 given a gcc that can emit nested type information.)
2910
2911 * valops.c (search_struct_method): Pass 'this' value by
2912 reference instead of by value. This provides a more
2913 consistent interface through a recursive search where the
2914 "bottom" functions may need to adjust offsets (due to multiple
2915 inheritance).
2916 * valops.c, value.h, values.c: Pass extra parameters to
2917 value_fn_field and value_virtual_fn_field so we can
2918 correctly adjust offset for multiple inheritance.
2919 * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify
2920 virtual function calls by using value_virtual_fn_field().
2921 * values.c: New function baseclass_offset, derived from
2922 baseclass_addr (which perhaps can be made obsolete?).
2923 It returns an offset rather than an address. This is a
2924 cleaner interface since it doesn't mess around allocating
2925 new values.
2926 * valops.c (search_struct_method): Use baseclass_offset
2927 rather than baseclass_addr.
2928
aa1dea48
SG
2929Mon Oct 5 16:02:04 1992 Stu Grossman (grossman at cygnus.com)
2930
e7ae70e9
SG
2931 * Makefile.in: Re-install 29K/UDI stuff.
2932 * remote-udi.c (udi_resume): Clean up.
2933 * (udi_wait): Rewrite, leave out bugs.
2934 * Add debugging code to print out all register fetches and stores.
2935 * Straighten out target_ops.
aa1dea48
SG
2936 * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
2937
e661aaae
ILT
2938Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
2939
e7ae70e9
SG
2940 * remote-udi.c (udi_create_inferior): run with no arguments should
2941 not pass the program name as an argument, since the UDI code
2942 already handles that.
2943 (udi_load): get the symbols from prog_name, not arg_string (the
2944 load command should really use arg_string as the program name, not
2945 prog_name, but at least the run command works now).
2946
5d5a9c3c 2947 * munch: HP9000/300 nm puts an extra space between T and symbol
91912864
ILT
2948 name.
2949
e661aaae
ILT
2950 * config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
2951 needed for vxworks targets.
2952
34517ebc
JG
2953Fri Oct 2 22:04:42 1992 John Gilmore (gnu@cygnus.com)
2954
2955 * am29k-tdep.c (_initialize_29k): Make it possible for the
2956 user to set and query the address where function calls into the
2957 inferior write a small scratch routine. `set call_scratch_address'
2958 * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error.
2959 * remote.c (remote_prepare_to_store): Only fetch regs if they are
2960 not already cached validly.
2961
93282e61
RP
2962Thu Oct 1 14:36:42 1992 K. Richard Pixley (rich@sendai.cygnus.com)
2963
ef6f3a8b
RP
2964 Rs6000 native support.
2965
2966 * infptrace.c: remove #ifdef USG from around include ptrace.h.
2967 machines without this header should not be compiling this file.
2968 * nm-rs6000.h, rs6000-nat.c: new files for native support.
2969 * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h.
2970 * rs6000-xdep.c: removed. all code now in rs6000-nat.c.
2971 * xm-rs6000.h: do not include ptrace.h.
2972 (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h.
2973 * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o.
2974 infptrace.o and inftarg.o move to NATDEPFIES.
2975 (NAT_FILE, NATDEPFILES): new macro for native support.
2976
93282e61
RP
2977 Sun3 native support.
2978
2979 * config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES):
2980 new macros for native support.
2981 (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES,
2982 removed sun3-xdep.o.
2983 * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
2984 nm-sun3.h.
2985 * sun3-xdep.c: removed. All code is now in sun3-nat.c.
2986 * sun3-nat.c, nm-sun3.h: new files for native support.
2987
2988Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com)
2989
2990 * dwarfread.c (dbsize): New variable to hold size of dwarf info.
2991 * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to
2992 dbfsize and use it to initialize new local file scope dbsize.
2993 * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it.
2994 * dwarfread.c (basicdieinfo): Use dbsize to check for oversize
2995 DIEs as well as the current check for undersize DIEs. This helps
2996 to gracefully detect and reject corrupted DIE information.
2997
a65841d7
JG
2998Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com)
2999
3000 Add `command hooks' and a hook for inferior program stopping.
3001
3002 * command.h (struct cmd_list_element): Remove unused `aux'
3003 field. Add new `hook', `hookee', and `cmd_pointer' fields.
3004 * command.c (add_cmd): Initialize new fields, elim old.
3005 (add_alias_cmd): Clone new fields.
3006 (delete_cmd): Un-hook hookee if we're deleting hook.
3007 (help_cmd): Tell user the command is hooked, if it is.
3008 (lookup_cmd_1): Abbreviations return the original command
3009 instead of themselves, so that hooks on the original cmd will be
3010 run.
3011 * defs.h (enum command_class): Add class_pseudo and comments.
3012 * gdbcmd.h (execute_user_command): Add prototype.
3013 * infrun.c (normal_stop): If the stop command is hooked,
3014 run the hook whenever we stop.
3015 (hook_stop_stub): Stub for catch_errors.
3016 (_initialize_infrun): Set up pseudo "stop" command.
3017 * main.c (execute_user_command): Code extracted from execute_command.
3018 (execute_command): If hooked, run the hook before the command.
3019 (define_command): If defining a new hook, check the command it
3020 is hooking, and warn if none. Install the hook.
3021 * source.c (_initialize_source): "l" is an abbrev for "list".
3022 * doc/gdb.texinfo: Document command hooks.
3023
3024 * Makefile.in (VERSION): Roll to 4.6.7.
3025 * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES.
3026 * infrun.c (breakpoints_inserted): Make it static again.
3027 * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.
3028
dfc82617
RP
3029Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3030
3031 Native file renaming.
3032
3033 * nat-sparc.c -> sparc-nat.c
3034 * nat-sun4os4.h -> nm-sun4os4.h
3035 * nat-trash.h -> nm-trash.h
9c14e78d 3036 * config/sun4os4.mh: track file renaming.
dfc82617
RP
3037 * configure.in: link to nm.h rather than nat.h.
3038 * infptrace.c: include nm.h rather than nat.h.
3039
df9b3bfc
RP
3040Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3041
c9c23412
RP
3042 Host/target/native split for sun4.
3043
3044 * Makefile.in (TSOBS): removed corelow.o.
3045 * infptrace.c: included nat.h.
3046 * nat-trash.h: temporary header file. This should be removed once
3047 all hosts have the native/host/target split.
3048 * configure.in: add a symlink from nat-trash.h to nat.h if no
3049 other nat file exists for this configuration.
3050 * sparc-tdep.c: no longer include sys/ptrace.h.
3051 * sparc-xdep.c: removed. contents have been moved to nat-sparc.c.
3052 * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to
3053 nat-sun4os4.h.
3054 * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support.
3055 * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o
3056 to NATDEPFILES. removed sparc-xdep.o.
3057 (NATDEPFILES, NAT_FILE): new macros for native support.
3058
df9b3bfc
RP
3059 Break the direct connection from core_file_command to any
3060 particular type of core file support.
3061
3062 * target.h (find_core_target): new prototype.
3063 * target.c (find_core_target): new function. Walks the target
3064 list looking for the core target.
3065 * core.c (core_file_command): replace calls to core_detach and
3066 core_open with find_core_target and direct calls.
3067
be891e75
ILT
3068Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)
3069
3070 * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h>
3071 for infptrace.c.
3072 config/hp300hpux.mh: ALLOCA1 was not defined.
3073
597dc86b
SG
3074Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com)
3075
3076 * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,
3077 target.c, valprint.c: Use unfiltered forms of f/printf, et. al.
3078 until we can figure out a better way to do paging.
3079
e0ba1d14
JG
3080Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com)
3081
3082 * findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
3083 * tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
3084 * hppa-coredep.c: Remove, now that we use the hook.
3085 * config/hppab.mh, config/hppah.mh: Use standard coredep.o.
3086 * hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
3087
3088 * dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
3089 GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
3090 be ripped out and reimplemented right (see elfread.c).
3091 * tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
3092
3093 Rename all HPPA files to fit into unique DOS filenames:
3094 * *hppabsd* => *hppab*
3095 * *hppahpux* => *hppah*
3096
b3d4dd73
JG
3097Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com)
3098
3fbdd536
JG
3099 Make the /proc support a target-struct in its own right.
3100
b3d4dd73
JG
3101 * Makefile.in: Remove inftarg.[co], since it is now included via
3102 config/*.mh files.
3103 * config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
3104 reference infptrace.o. Add fork-child.o to all *.mh that
3105 reference procfs.o.
3106
3fbdd536
JG
3107 * inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
3108 No longer global functions.
3109 (fork_inferior): New global function from fork-child.c.
3110 * inftarg.c (child_wait): Remove USE_PROC_FS conditional.
3111 (ptrace_me, ptrace_him): New stub functions for fork_inferior().
3112 (child_create_inferior): Moved to fork-child.c as fork_inferior.
3113 (child_create_inferior): New tiny function that calls fork_inferior.
3114 * fork-child.c: New file, containing fork_inferior, which is
3115 built from slight mods to inftarg.c's child_create_inferior.
3116
3117 * procfs.c (procfs_ops): Add target vector.
3118 (attach): Rename as static do_attach.
3119 (procfs_create_inferior): New tiny function that calls fork_inferior.
3120 (child_xfer_memory): Rename to static procfs_xfer_memory.
3121 (store_inferior_registers): Rename to static procfs_store_registers.
3122 (inferior_proc_init): Rename to static procfs_init_inferior.
3123 (procfs_attach, procfs_detach, procfs_prepare_to_store,
3124 procfs_files_info, procfs_open, procfs_mourn_inferior,
3125 procfs_can_run): Slightly mangled copies of the corresponding
3126 child_XXX routines from inftarg.c.
3127 (proc_wait): Renamed to static procfs_wait.
3128 (child_resume): Rename to static procfs_resume.
3129 (fetch_inferior_registers): Rename to static procfs_fetch_registers.
3130 (initialize_proc_fs): Rename to initialize_procfs. Set up
3131 procfs_ops, too.
3132
3133 * putenv.c: index -> strchr.
3134 * regex.c: Always rename bcopy to memcpy, etc.
3135 FIXME: Eventually do the renames rather than use #define's.
3136 * sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
3137 Fix bcopy->memcpy.
3138 * sparc-xdep.c: Move deferred_stores to target dependent.
3139 * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
3140
836e343b
JG
3141Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com)
3142
3143 Split non-target-dependent code out of target_attach routines.
3144
3145 * target.h: Comments on target_attach args and results.
3146 * infcmd.c (attach_command): Check for existing execution, call
3147 target_attach, set up terminal status and wait_for_inferior, wait
3148 for the attach status, and do normal_stop.
3149 * inftarg.c (child_attach): Remove target independent stuff.
3150 * remote-adapt.c (adapt_attach): Ditto.
3151 * remote-mm.c (mm_attach): Ditto.
e7ae70e9 3152 * remote-udi.c (udi_attach): Ditto.
836e343b
JG
3153 * remote-vx.c (vx_attach): Ditto.
3154
3155 Cleanup.
3156
3157 * remote-hms.c (hms_attach): Remove completely, it was useless.
e7ae70e9 3158 * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove
836e343b 3159 commented-out start_remote calls.
e7ae70e9 3160 * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
836e343b
JG
3161 DENTER and DEXIT macros and their calls. Use a real debugger --
3162 like gdb -- to see what functions are being called when.
a5a7c719 3163 * utils.c (strcmp_iw): Make nonstatic, for lint.
836e343b 3164
3aa6856a
JG
3165Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com)
3166
3167 * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
3168
b869d3f4
SG
3169Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com)
3170
1aed6766
SG
3171 * tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
3172 fix to differentiate between gcc1 & gcc2 compiled files so that we
3173 can debug calls that pass structs as args correctly.
3174 * symmisc.c (dump_symtab): If block was compiled with gcc, say
3175 so, and what version.
3176
b869d3f4
SG
3177 * remote.c (remote_wait): Make regs be char to avoid picayune
3178 ANSI compiler warnings.
3179
e7ae70e9
SG
3180 * energize.h: Move all external struct decls to inside of
3181 __STDC__, add prototype for energize_shell_wait().
3182 * energize.c (getpty): Clean up, make us really get a controlling
3183 terminal.
3184 * (energize_initialize): Disable SIGIO prior to setting up for
3185 I/O interrupts. Move setsid(), et. al. to getpty().
3186 * (energize_shell_wait): New routine to wait for things started
3187 via the shell command, uses wait() instead of /dev/proc.
3188 * Also, add prototype for execute_command_1().
3189
050d45c5
RP
3190Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3191
310cc570
RP
3192 * inftarg.c (child_create_inferior, child_attach,
3193 child_mourn_inferior): collect unix child process stratum
3194 functions which live below the target vector into this file to
3195 facilitate host/target/native split. Also, make them static.
3196 * inflow.c (child_mourn_inferior): removed.
3197 * infrun.c (child_create_inferior, child_attach): removed.
3198 (resume): becomes global so that functions below the
3199 target vector can find it.
3200 * inferior.h (resume): add prototype.
3201 (child_mourn_inferior, child_create_inferior, child_attach):
3202 remove prototypes.
3203
050d45c5
RP
3204 * xcoffexec.c (exec_ops): child_attach and child_create_inferior
3205 replaced with find_default_attach and
3206 find_default_create_inferior.
3207
3208Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com)
3209
3210 * i960-pinsn.c: Use _filtered routines for printing, so symbolic
3211 addresses don't get displayed in the wrong positions.
3212
8afd6ca5
RP
3213Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3214
3215 Separate core functions along target vector in preparation for
3216 native support. Functions above vector now live in core.c. Those
3217 below in corelow.c.
3218
3219 * core.c (solib_add_stub, core_close, core_open, core_detach,
3220 get_core_registers, core_files_info, core_ops): moved to corelow.c
3221 (_initialize_core): removed addition of core_ops target.
3222 * corelow.c: new file.
3223 (solib_add_stub, core_close, core_open, core_detach,
3224 get_core_registers, core_files_info, core_ops): moved from core.c
3225 (_initialize_corelow): new function.
3226 * gdbcore.h (core_open, core_detach): added prototypes.
3227 (core_ops): add forward declaration.
3228 * Makefile.in (SFILES_MAINDIR): add core.c
3229 (OBS): add core.o
3230 (TSOBS): change core.o to corelow.o
3231
cdfab267
SG
3232Wed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com)
3233
3234 * m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
3235 instead of 'sun' predefined symbol so that trap analysis code is
3236 enabled only when the TARGET is a sun3.
3237
5e9a7f00
KR
3238Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3239
3240 * tm-i960.h (ext_format_i960): Add top-level declaration.
3241 (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested
3242 blocks, else Sun4 compiler complains.
3243
ebeccdf0
JG
3244Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com)
3245
3246 * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
3247 instruction's argument. Patch from jonathan@cs.stanford.edu
3248 (Jonathan Stone).
3249
5ee4e16c
JG
3250Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3251
3252 Break the thread of control that implies that a unix child
3253 process will be the default target.
3254
3255 * target.c (find_default_run_target, find_default_attach,
3256 find_default_create_inferior, return_zero): new functions.
3257 (cleanup_target): Make return_zero the default for to_can_run.
3258
3259 * exec.c (exec_ops), core.c (core_ops): Replace child_attach and
3260 child_create_inferior references with find_default_XXX instead.
3261
3262 * target.h (struct target_ops): new field, to_can_run.
3263 (find_default_attach, find_default_create_inferior): new prototypes.
3264 (target_can_run): new macro.
3265
3266 * Also added a zero (default) to_can_run element to all static
3267 struct target_ops initializations throughout GDB, except:
3268 * inftarg.c (child_ops): Use new child_can_run() to enable child runs.
3269
3270 * infrun.c (child_create_inferior): Clean up error handling when
3271 no exec file is specified.
3272 (child_attach): Don't require exec file.
3273
b28d3617
JG
3274Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com)
3275
3276 Remove kill_inferior_fast, in favor of target_kill, which goes
3277 through the target vector.
3278
3279 * inferior.h (kill_inferior_fast): remove declaration.
3280
3281 * main.c (disconnect): call quit_cover using catch_errors rather
3282 than calling kill_inferior_fast directly. New way goes through
3283 the target vector, handles attached processes, and writes
3284 command history if appropriate.
3285 (quit_cover): new function, wrapper for quit_command.
3286
3287 * convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
3288 infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
3289 inlining them into the local kill_inferior when needed.
3290
6b50c5c2
JG
3291Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com)
3292
3293 * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
3294 * stabsread.c (read_struct_type): Simplify complicated expression
3295 for dumb DECstation compiler.
3296
8f61b5e4
ILT
3297Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
3298
3299 * m68k-pinsn (print_insn_arg, fetch_arg): added support for
3300 operands to memory management instructions, from WRS.
3301
538280d8
FF
3302Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com)
3303
3304 * main.c (main): Back out previous language setting changes.
3305 Replace with simple default to C before processing any init
3306 files. There MUST be a language set, even in the absence of
3307 init files or executables, or expression parsing fails.
3308
d75710b0
FF
3309Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com)
3310
3311 * main.c (main): Move code that sets initial language to
3312 symfile.c. Fixup places where command files are processed to
3313 be consistent in setting a default language if none has been
3314 previously set.
3315 * symfile.c (set_initial_language): Add code moved from
3316 main() that sets an initial default language when a new
3317 symbol file is read.
3318 * symfile.c (symbol_file_command): Call set_initial_language.
3319 * symtab.c (find_main_psymtab): Add FIXME comment.
3320
45413b27
JG
3321Wed Sep 16 22:31:55 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3322
3323 * breakpoint.c, sparc-tdep.c: comment changes.
f7fe7196
JG
3324 * configure.in: removed target_dependent line.
3325
3326 * remote-mm.c (mm_attach): change printf to error to prevent
3327 fallthrough bug.
e7ae70e9
SG
3328 * remote-udi.c (udi_attach): change printf to error to prevent
3329 fallthrough bug.
45413b27 3330
5f1c39ef
JG
3331 * rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
3332 calls to {fetch|store}_inferior_registers with calls to
3333 target_{fetch|store}_registers, for remote-target independence.
3334
dd9da95a
JG
3335Sat Sep 19 04:23:54 1992 John Gilmore (gnu@cygnus.com)
3336
3337 * Makefile.in: Fix bug I introduced in merging Rich's change.
3338 * infrun.c (child_create_inferior): Use proceed() rather than
3339 doing all the same stuff by hand.
3340
d40309c7
JG
3341Thu Sep 17 17:35:37 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3342
3343 * Makefile.in, configure.in: add support for files used only when
3344 configured native, that is, when host = target.
3345
a4afec9a
JG
3346Wed Sep 16 23:03:23 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3347
3348 * tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
d40309c7 3349 stores are target dependent and were moved from xm to tm.
a4afec9a 3350
2e384b3b
JG
3351Sat Sep 19 03:14:37 1992 John Gilmore (gnu@cygnus.com)
3352
8c095066
JG
3353 * Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
3354
2e384b3b
JG
3355 * config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
3356 overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
3357
dcc8abce
JG
3358Wed Sep 16 20:04:54 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3359
3360 * target.h (struct target_ops): removed to_convert_to_virtual and
3361 to_convert_from_virtual elements. Initializations removed from
3362 all static initializations.
3363 (target_convert_to_virtual, target_convert_from_virtual):
3364 removed.
3365 (host_convert_to_virtual, host_convert_from_virtual): Removed
3366 forward declarations.
3367 * target.c (cleanup_target): removed default assignments for
3368 to_convert_to_virtual and to_convert_from_virtual.
3369 * inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
3370 removed.
3371 * findvar.c (value_of_register, value_from_register):
3372 target_convert_to_virtual inlined.
3373 * infcmd.c (do_registers_info): target_convert_to_virtual inlined.
3374 * valops.c (value_assign): target_convert_from_virtual inlined.
3375
2886f8b2
JG
3376Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com)
3377
c35475f9
JG
3378 * main.c (gdb_readline): Avoid printf_filtered, which sets char
3379 position wrong if used for the prompt.
3380 * utils.c (puts_filtered): Comment: NOT a puts() replacement!
3381
2886f8b2
JG
3382 Support for accessing arbitrary MIPS stack frames in memory.
3383
3384 * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
3385 set, run it before INIT_EXTRA_FRAME_INFO.
3386 * stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
3387
3388 * mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
3389 (FP) value in the frame_info struct if it is zero (as from top of
3390 execution stack).
3391 (setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
3392
3393 * mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
3394 comes back as zero. So does FP_REGNUM, as a trigger for
3395 init_extra_frame_info.
3396
3397 * tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
3398 the program counter set before INIT_EXTRA_FRAME_INFO is run.
3399 (INIT_FRAME_PC): Defined to null.
3400 (PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
3401 (FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
3402 Briefly explain MIPS stacks in GDB.
3403
d974236f
JG
3404Thu Sep 17 03:49:59 1992 John Gilmore (gnu@cygnus.com)
3405
cb1d36fc
JG
3406 * copying.awk, copying.c (show_copying_command,
3407 show_warranty_command): Rename from copying_info, warranty_info,
3408 to match command function conventions.
3409
d974236f
JG
3410 * utils.c (prompt_for_continue): Reinitialize more-counts
3411 before printing anything, and again afterward. Fix comments.
3412 (vfprintf_filtered): Eliminate static buffer; use auto buffer,
3413 or alloca() if needed.
3414
3415 * rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
3416 detect native versus cross-host.
3417
f4992534
SG
3418Wed Sep 16 21:57:14 1992 Stu Grossman (grossman at cygnus.com)
3419
3420 * m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
3421 Suns. Rename to m68k_saved_pc_after_call.
3422 * tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
3423 m68k_saved... instead of sun3_saved...
3424
22473f72
JG
3425Wed Sep 16 17:00:07 1992 John Gilmore (gnu@cygnus.com)
3426
3427 * Makefile.in (update-depend, update-alldeps): Split out of
3428 setup-to-dist, for convenience in rebuilding the depend and
3429 alldeps.mak files.
3430 (assorted): Update to catch straggler files when building gdb.tar.Z.
3431
997cc2c0
JG
3432Tue Sep 15 01:18:50 1992 John Gilmore (gnu@cygnus.com)
3433
3434 Preliminary cleanup for splitting host/native/target.
3435
3436 * infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
3437 here; it is dealt with at a gdb-target-independent level.
3438 * rs6000-tdep.c (single_step): Don't call ptrace, we are a
3439 high toned routine. Fix return type to void.
6bb40269
JG
3440 * tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
3441 Rich and I believe the "real problem" was that both single_step
3442 and target_resume were issuing PT_CONTINUE calls. This would
3443 cause the second PT_CONTINUE to sometimes fail because the process
3444 was already running.
3445 * infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
997cc2c0 3446
5ca812d4
SG
3447Mon Sep 14 19:20:43 1992 Stu Grossman (grossman at cygnus.com)
3448
e7ae70e9
SG
3449 * energize.c (pty_to_kernel): Must check for EAGAIN as
3450 termination condition.
3451 (full_filename): Don't prepend dirname if filename begins with /.
3452 (breakpoint_notify, kernel_dispatch): Deal with DynamicLoad
3453 messages properly!!
3454 (getpty (NCR)): Lotsa bug fixes...
3455 (kernel_dispatch (case StopRType)): Use kill() instead of
3456 killpg() so we can deal with losing systems...
3457 (wait_for_events): Work around NCR select() lossage. It doesn't
3458 zero out readfds when select() returns zero.
3459 (energize_initialize): Use I_SETSIG to get SIGIO interrupts. Use
3460 getcwd() instead of getwd() (NCR getwd() seg faults).
3461 (energize_wait): Use sigaction() for NCR. Their version of signal()
3462 is unreliable by default.
3463
34da3608
SG
3464 * procfs.c (proc_wait): Call print_sys_errmsg() if we get an
3465 error from PIOCSWSTOP.
3466
a8e033f2
SG
3467 * breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
3468 symfile.c, target.c, valprint.c: Use _filtered form of *printf.
3469 defs.h, utils.c: Make vfprintf_filtered global.
3470
e7ae70e9
SG
3471 * energize.c (send_location): New routine to consolidate all
3472 places where we must notify kernel of where the given pc is.
3473 (cplus_demangle): Put single-quotes around demangled names.
3474 (energize_call_command): Call send_location() after doing up,
3475 down, and frame commands.
3476
549ff100
RP
3477Fri Sep 11 18:28:28 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
3478
d1d1ab12 3479 * doc/gdb.texinfo, doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: first
e7ae70e9 3480 pass at doc for two new remote targets---29K using UDI, and Tandem
d1d1ab12
RP
3481 ST2000 using STDBUG.
3482
3483 * doc/all.m4, doc/none.m4: new m4 switch, _ST2000__
3484
3485 * doc/all.m4: turn on H8/300 stuff for generic manual
3486
549ff100
RP
3487 * doc/gdbinv-s.m4.in: remove text on special procedures to continue
3488 after explicit call to breakpoint() in serial stubs.
3489
3de61d8c
JG
3490Fri Sep 11 01:34:25 1992 John Gilmore (gnu@sphagnum.cygnus.com)
3491
57a9bb5f
JG
3492 * mipsread.c: Clean up some white space.
3493 (parse_symbol): Handle stEnd of stFile.
3494 (parse_partial_symbols): Remove old #if 0'd code. Handle stLocal.
3495
3de61d8c
JG
3496 * mips-xdep.c (REGISTER_PTRACE_ADDR, fetch_inferior_registers,
3497 store_inferior_registers): Replace unexplained numbers
3498 with manifest constants from a DECstation header file.
3499 * xm-mips.h (KERNEL_U_ADDR): Get from <machine/param.h>.
3500 (REGISTER_U_ADDR): Fix up for Ultrix 4.2.
3501
3502 * tm-tahoe.h, xm-tahoe.h (KERNEL_U_ADDR): Move macro to xm-tahoe.h.
3503
3504 * stack.c (_initialize_stack): "dow" should be a valid abbreviation
3505 for "down". Suggested by Richard Stallman.
3506
73386fff
KR
3507Thu Sep 10 15:26:07 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3508
3509 * remote-vx.c: Rename realloc for inclusion of rpc/rpc.h, to avoid
3510 redeclaration bug on SunOS 4.
3511
4ddd278f
JG
3512Wed Sep 9 17:36:53 1992 John Gilmore (gnu@cygnus.com)
3513
3514 * i386-stub.c, sparc-stub.c (getpacket): Actually check checksums.
3515 * m68k-stub.c: Remove a few extraneous ANSI-isms.
3516 * remote-nindy.c (nindy_prepare_to_store): Only fetch regs if
3517 they aren't already there.
3518 * remote-vx.c (vx_prepare_to_store): Ditto.
3519 * xcoffread.c: Surround forward struct defns with #ifdef __STDC__.
3520
2640f7e1
JG
3521Wed Sep 9 16:50:22 1992 John Gilmore (gnu@cygnus.com)
3522
3523 Removed a large number of changes inserted by Per Bothner
3524 for C++ support. These will go back in when they've been
3525 examined.
3526
ed3f6049
SG
3527Tue Sep 8 21:05:18 1992 Stu Grossman (grossman at cygnus.com)
3528
3529 * serial.h: Fix prototye for serial_raw().
3530 * ser-bsd.c, ser-termios.c: Fix args for serial_open() &
3531 serial_write() to match prototypes.
3532 * remote-st2000.c (get_reg_name): Make *p be const.
3533
120f867e
KR
3534Tue Sep 8 17:24:52 1992 Ken Raeburn (raeburn@cambridge.cygnus.com)
3535
3536 * remote-nindy.c (nindy_fetch_registers): Make return type void,
3537 to agree with target structure field type.
3538 (nindy_store_registers): Ditto.
3539
3540 * Makefile (OPCODES): New var, pointing to opcodes library.
3541 (CLIBS, CDEPS): Include it.
3542 (saber_gdb): Load opcodes library.
3543
a090e706
SG
3544Tue Sep 8 15:22:06 1992 Stu Grossman (grossman at cygnus.com)
3545
3546 * a68v-xdep.c (store_inferior_registers): declare as void.
3547 * infptrace.c: HP/Apollos have ptrace.h in the wrong place.
3548 * remote-st2000.c: Massive changes to use new serial package.
3549 Also added 'connect' command to transparantly connect to serial
3550 port.
3551 * ser-termios.c: Big cleanup, use nicer coding conventions.
3552 * ser-bsd.c: New module, serial stuff for BSD systems.
3553 * serial.h: Define struct ttystate properly using HAVE_TERMIO.
3554 * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
3555
4468ccfb
RP
3556Fri Sep 4 18:53:57 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
3557
3558 * doc/gdb.texinfo: fix shameful error of agreement reported by
3559 jimb@occs.cs.oberlin.edu (Jim Blandy)
3560 * doc/gdb.texinfo: remove old partial discussion of remote serial
3561 protocol (via serial debug stubs)
3562 * doc/gdbinv-m.m4.in, doc/gdbinv-s.m4.in: new section discussing
3563 use of serial debug stubs
3564
35fcebce
PB
3565Fri Sep 4 00:34:30 1992 Per Bothner (bothner@rtl.cygnus.com)
3566
35fcebce
PB
3567 * symfile.h: Declaration of set_demangling_style() moved
3568 here from demangle.h (which is now in ../include).
3569 * i386-xdep.c: Update comment.
35fcebce 3570
8005788c
RP
3571Thu Sep 3 13:44:46 1992 K. Richard Pixley (rich@sendai.cygnus.com)
3572
3573 * symtab.c (completion_list_add_symbol): restructured to optimize
2640f7e1
JG
3574 for time. First clip names that cannot match. Then clip any
3575 names we've already considered. Drop a redundant strncpy. Drop
3576 a redundant malloc and associated free for demangled names.
8005788c 3577
6c7e40b4
SG
3578Thu Sep 3 09:17:05 1992 Stu Grossman (grossman at cygnus.com)
3579
3580 * a68v-xdep.c (store_inferior_registers): Define as type void.
3581 * configure.in: Add host m68k-apollo*-bsd*.
3582 * demangle.c (struct demanglers): Use enum instead of constant
3583 value to keep braindamaged HP/Apollo compiler happy.
3584
546014f7
PB
3585Wed Sep 2 20:45:31 1992 Per Bothner (bothner@rtl.cygnus.com)
3586
3587 * utils.c (strcmp_iw): Add a hack to allow "FOO(ARGS)" to
3588 match "FOO". This allows 'break Foo' to work when Foo is
3589 a mangled C++ function. (See comment before function.)
3590
6131a42a
JG
3591Wed Sep 2 13:45:27 1992 John Gilmore (gnu@cygnus.com)
3592
82eabd43
JG
3593 * config/rs6000.mh (MH_CFLAGS): Circumvent IBM <rpc/rpc.h> bug,
3594 for files in vx-share/*.c.
3595 * xm-rs6000.h (fd_set): Circumvent the rs6000.mh circumvention,
3596 for normal GDB source files.
3597
6d7bfa9a
JG
3598 * Makefile.in (VERSION): Roll to 4.6.6.
3599
6131a42a
JG
3600 * tm-vx68.h, tm-es1800.h: Use tm-68k.h rather than tm-sun3.h.
3601 * tm-sun3.h: Remove STACK_END_ADDR, no longer used.
3602 * tm-sun3os4.h: Update comments.
3603 * xm-delta88.h: Remove STACK_END_ADDR.
3604
b52373a2
JG
3605Wed Sep 2 01:18:31 1992 John Gilmore (gnu@cygnus.com)
3606
6aef3bde
JG
3607 * Makefile.in (VERSION): Roll to 4.6.5.
3608
6131a42a
JG
3609 * infrun.c: Lint for recent `handle' changes.
3610
b52373a2
JG
3611 * ser-termios.c, ser-go32.c: Remove DEFUN crap, clean up.
3612 * serial.h (EXFUN): Remove all uses, convert to PARAMS.
3613 * config/sun4os4.mh: Include ser-termios.o. FIXME, all .mh files
3614 should include a ser-XXX.o module.
3615
3616 * dbxread.c (elfstab_build_psymtabs): Remove DEFUN crap.
3617 * defs.h, i960-pinsn.c, remote-hms.c: Replace CONST with simple const.
3618
3619 * configure.in: Map unrecognized sun 68k's, sun sparcs, into
3620 known suns in configure.in, rather than mapping them to unique
3621 config files that happen to duplicate other config files.
3622 * config/sun3.{mh,mt}: Remove (use identical sun3os4.*).
3623 * config/sun4.{mh,mt}: Remove (use identical sun4os4.*).
3624
ebb3a1e5
JG
3625Wed Sep 2 00:10:43 1992 John Gilmore (gnu@cygnus.com)
3626
3627 * configure.in (*-*-sunos*): Use trailing * to match all
3628 sub-variants of SunOS, e.g. sunos4* to match sunos4.1.1.
3629 (sparc-*-sunos3): Remove host & target. Sunos3 never shipped
3630 in production on Sun-4.
3631 ({a29k,i[34]86,i960}-*-elf): Add targets, equivalent to coff.
3632 (m68k-*-{aout,coff,elf}): Add targets, w/new config and tm files.
3633 (sparc-*-{aout,coff,elf}): Add targets, w/new config and tm files.
3634
3635 * config/m68k-un.mt, config/m68k-noun.mt, config/sparc-un.mt,
3636 config/sparc-noun.mt: New target configs for embedded.
3637 * config/sun4os3.{mh,mt}: Remove, never existed in production.
3638
3639 * tm-68k-un.h, tm-68k-noun.h, tm-spc-un.h, tm-spc-noun.h: New
3640 target definitions for embedded with and without underlines on
84a05e52 3641 identifiers.
ebb3a1e5
JG
3642
3643 * tm-sparc.h, tm-sun2.h, tm-sun3.h: Delete NAMES_HAVE_UNDERSCORE:
3644 not a parameter of the CPU, but of the development environment.
3645 * tm-es1800.h, tm-sunos.h, tm-vx68.h: Add NAMES_HAVE_UNDERSCORE.
3646
ea678717
JG
3647Tue Sep 1 17:31:45 1992 John Gilmore (gnu@cygnus.com)
3648
3649 * breakpoint.c (breakpoint_re_set): Avoid setting source symtab
3650 (which involves reading in main's symtab) if we have no breakpoints.
3651
95ff889e
FF
3652Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
3653
3654 * dwarfread.c (cu_language): New local variable to record
3655 language for current compilation unit being processed.
3656 * dwarfread.c (set_cu_language): New local function to decode
3657 and record language for current compilation unit being processed.
3658 * dwarfread.c (synthesize_typedef): Add local function to
3659 synthesize a typedef for C++ classes, structs, unions, and
3660 enumerations.
3661 * dwarfread.c (read_structure_scope): Synthesize typedefs
3662 for C++ classes, structs and unions.
3663 * dwarfread.c (read_enumeration): Synthesize typedefs for
3664 C++ enumerations.
3665 * dwarfread.c (read_file_scope): Call set_cu_language to
3666 record language for current compilation unit. After symtab
3667 is built, save this recorded language.
3668 * dwarfread.c (process_dies, add_partial_symbol, struct_type,
3669 scan_partial_symbols, new_symbol): Recognize TAG_class_type.
3670 * dwarfread.c (add_partial_symbol): Synthesize partial symbol
3671 typedefs for C++ classes, structs, unions, and enumerations.
3672 * dwarfread.c (scan_compilation_units): Call set_cu_language
3673 to record language for current compilation unit.
3674 * dwarfread.c (scan_partial_symbols): Call add_enum_psymbol here
3675 for TAG_enumeration_types, rather than in add_partial_symbol.
3676 * dwarfread.c (add_partial_symbol): Combine TAG_enumeration_type
3677 case with class, struct, and union type cases, now that they are
3678 the same. Remove tests for non-NULL name attributes, now done
3679 by callers.
3680 * gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
3681 treat as alias for TYPE_CODE_STRUCT for now.
3682
b68b44fa
ILT
3683Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
3684
3685 * Makefile.in: map "gdb" through program_transform_name when
3686 installing.
3687
3877a219
FF
3688Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
3689
3690 * {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
3691 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
3692 Use "regi" for local indexing through register numbers, reserving
3693 "regno" for the name of a specific register passed as an input
3694 parameter. Fix bug propagated through all versions that sometimes
3695 used regno as an index when it should have been regi, thus using
3696 -1 as an index in some cases.
3697
3402b1cf
PB
3698Sun Aug 30 18:15:17 1992 Per Bothner (bothner@rtl.cygnus.com)
3699
3700 * cplus-dem.c, demangle.h: Moved to ../libiberty and ../include,
3701 respectively, so same demangler can be used by other programs.
3702 * Makefile.in: Remove demangler stuff.
3703 * Makefile.in (depend): Pass -I../readline (needed for main.c).
3704 * demangle.c (_initialize_demangler): Tell demangler which
3705 CPLUS_MARKER to assume.
3706
d6776adb
JG
3707Fri Aug 28 13:13:33 1992 John Gilmore (gnu@cygnus.com)
3708
9b280a7f
JG
3709 RS/6000 portability changes (for hosting cross-debuggers).
3710
3711 * breakpoint.c (fixup_breakpoints): Re-kludge to IBM6000_TARGET.
3712 * buildsym.c, rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h,
3713 xcoffexec.c, xcoffread.c: Rename aixcoff to xcoff everywhere.
3714 * printcmd.c (print_frame_args): Remove an RS/6000 dependency.
3715 * stabsread.c (define_symbol): Remove RS/6000 dependencies.
3716 * tm-rs6000.h (ATTACH_DETACH): Remove: host-dependent.
3717 (PTRACE_ATTACH, PTRACE_DETACH): Remove: host-dep.
3718 (NO_SINGLE_STEP): Add, target-dependent.
3719 (loadinfotextindex): Lowercase, remove "aix_".
3720 * xm-rs6000.h: Add <sys/ptrace.h> for infptrace.c.
3721 (NO_SINGLE_STEP): Remove, target-dependent.
3722 * xcoffexec.c (vmap_symtab): Cleanup #if 0'd code.
3723 * xcoffread.c: Only build file if RS/6000 native GDB.
3724 (build_function_symbol): Remove #if 0'd code.
3725 * rs6000-tdep.c: Cleanup. Add static fn protos.
3726 Use CORE_ADDR for addresses throughout. Make void fns void.
3727 (pop_dummy_frame): Add FIXME about bogosity of design here.
3728 (rs6000_struct_return_address): Ditto.
3729 (frameless_function_invocation, frame_get_cache_fsr,
3730 frame_initial_stack_address, xcoff_relocate_symtab,
3731 xcoff_init_loadinfo, free_loadinfo, xcoff_add_toc_to_loadinfo,
3732 add_text_to_loadinfo, find_toc_address): Move from xdep file.
3733 Use CORE_ADDRs. Change identifiers to lowercase.
3734
3735 * rs6000-xdep.c: Make whole file conditional on native RS/6000,
3736 supplying dummy routines if non-native. Add prototype for
3737 static exec_one_dummy_insn. Move a mess of functions to
3738 rs6000-tdep.c (as above). Remove #if 0'd code.
3739
3740 * config/rs6000.mh (XDEPFILES): Move xcoffexec.o to target side.
3741 (XM_CLIBS): Add -lm to circumvent AIX 3.2 libc ldexp bug.
3742 * config/rs6000.mt (TDEPFILES): Adopt xcoffexec.o.
3743
3744 * gdbtypes.h (TYPE_ALLOC): Parenthesize result to avoid problems
3745 for callers.
3746
d6776adb
JG
3747 * vx-share/README, nindy-share/README: New files describing
3748 how these directories' code is shared, and with whom.
3749
ef131e13
JG
3750Thu Aug 27 20:04:56 1992 John Gilmore (gnu@cygnus.com)
3751
3752 * configure.in (target configurations): Reformat into table.
3753 Remove unsupp. Amigados host and target. Ditto Mach 386 target.
3754
3755 * tm-altosgas.h, tm-i386v-g.h: Remove ancient coff encap configs.
3756 * config/{altosgas.mt, i386v-g.mt, i386v32-g.mt}: Ditto.
3757 * config/{i386sco.mt,i386v32.mt}: Remove; identical to i386v.mt.
3758 * config/{go32.mt,i960.mt}: Remove; they only printed error msgs.
3759 * config/nindy960.mt: Remove useless MT_CFLAGS setting.
3760 * config/i386aout.mt: Use tm-i386v.h, not tm-i386v-g.h.
3761
3762 * Makefile.in (config-check): Add command to check whether
3763 configure.in is consistent with config/*.
3764
19758e9e
JG
3765Wed Aug 26 21:10:52 1992 John Gilmore (gnu@cygnus.com)
3766
3767 * configure.in (host configurations): Reformat nested cases into
3768 easy-to-maintain table.
b1aa08e2
JG
3769 (m68k-altos-*, i386v*): We don't care whether coff encap is used.
3770 config/{altosgas.mh, i386v-g.mh, i386v32-g.mh}: Remove.
19758e9e 3771
38e9ed49
FF
3772Wed Aug 26 16:02:01 1992 Fred Fish (fnf@cygnus.com)
3773
3774 * cplus-dem.c: Reorder args to most local functions to make them
3775 follow the consistent pattern of struct work_stuff pointer first,
3776 followed by pointer into string being demangled, followed by
3777 pointer to the string where the result is being stored, followed
3778 by other args. Also generally replace most variables of name
3779 "type" with "mangled" for consistency. They all pointed to the
3780 same string but half were one name and half the other.
3781 * cplus-dem.c (LONGERNAMES): Remove #ifndef's.
3782 * cplus-dem.c (demangle_qualified): Rewrite to clean up and allow
3783 use whenever a qualified name is being demangled.
3784 * cplus-dem.c (do_type): Qualified names are treated similarly
3785 to fundamental types, not as modifiers of fundamental types.
3786
ee97d673
SG
3787Mon Aug 24 20:44:38 1992 Stu Grossman (grossman at cygnus.com)
3788
38e9ed49
FF
3789 * configure.in: Add sparclite as a target.
3790
ee97d673
SG
3791 * sparc-stub.c (handle_exception): Flush instruction cache just
3792 before returning to the user. (hexToInt): Fix overzealous cleanup.
3793
93220abe
FF
3794Mon Aug 24 11:57:13 1992 Fred Fish (fnf@cygnus.com)
3795
3796 * infrun.c (handle_command): Rewrite to allow multiple signal
3797 numbers, signal number ranges, and to recognize "all" to mean all
3798 signals except those used by the debugger.
3799 * infrun.c (SET_SIGS, UNSET_SIGS): Macros used in handle_command
3800 to set or reset actions for specific signals.
3801
dac9734e
FF
3802Sun Aug 23 17:10:07 1992 Fred Fish (fnf@cygnus.com)
3803
3804 * coffread.c (decode_type): Call alloc_type to alloc new
3805 types.
3806 * stabsread.c (read_array_type, read_range_type, define_symbol):
3807 Call alloc_type to alloc new types.
3808 * stabsread.c (define_symbol): Move dbl_valu symbol field data
3809 from type_obstack to symbol_obstack.
3810 * stabsread.c (define_symbol): Move typedef_sym from type_obstack
3811 to symbol_obstack.
3812 * gdbtypes.h (TYPE_ALLOC): New macro to allocate space for data
3813 associated with a type, using the same mechanism as was used to
3814 allocate space for the type structure itself.
3815 * coffread.c (patch_type, coff_read_struct_type,
3816 coff_read_enum_type): Use TYPE_ALLOC.
3817 * dwarfread.c (struct_type): Use TYPE_ALLOC.
3818 * gdbtypes.c (create_array_type, check_stub_method,
3819 allocate_cplus_struct_type): Use TYPE_ALLOC.
3820 * mipsread.c (parse_symbol, parse_type): Use TYPE_ALLOC.
3821 * stabsread.c (read_struct_type, read_array_type, read_enum_type,
3822 read_range_type): Use TYPE_ALLOC.
3823
ca8820f9
FF
3824Sun Aug 23 11:04:08 1992 Fred Fish (fnf@cygnus.com)
3825
3826 * breakpoint.c (breakpoint_re_set): Select a default source
3827 symtab if one is not currently selected.
3828 * utils.c (query): Call wrap_here before building the output
3829 query string, to turn off wrapping and flush any buffered output.
3830 Otherwise our query may end up in the wrap buffer and never be
3831 seen by the user.
3832 * eval.c (evaluate_subexp): Report error when attempting to
3833 evaluate subscript for types without a target type, rather
3834 than dumping core by using the NULL pointer.
3835 * symfile.c (symbol_file_command): Forget current_source_symtab
3836 and current_source_line when discarding symbol table.
3837
42e8b658
JG
3838Sat Aug 22 22:33:20 1992 John Gilmore (gnu@cygnus.com)
3839
3840 Bug fixes from Andrew Heybey <ath@lcs.mit.edu>.
3841
3842 * tm-mips.h (REGISTER_VIRTUAL_TYPE): Float regs are float type.
3843 * mips-tdep.c (mips_print_register): Alloc enough space for two regs.
3844
39a13178
SG
3845Fri Aug 21 15:17:03 1992 Stu Grossman (grossman at cygnus.com)
3846
3847 * remote.c (remote_open): Fix baud rate setting to make -b flag
3848 work. (remote_wait): Change 'T' message parser to deal with new
3849 improved format which allows stub to send an arbitrary bunch of
3850 registers.
3851 * sparc-stub.c: General cleanups. (trap_low, handle_exception):
3852 make all this re-entrant by storing all state on the stack. Clean
3853 up memory error trapping. (computeSignal, set_debug_traps):
3854 make it all table driven. Make a start at a baud rate setting command.
3855
0d6d92c7
ILT
3856Wed Aug 19 10:23:27 1992 Ian Lance Taylor (ian@cygnus.com)
3857
664cf438
ILT
3858 * m68k-pinsn.c: handle new operand type 'r', introduced for cas2.
3859
0d6d92c7
ILT
3860 * remote-vx.c: redefine malloc to avoid buggy declaration on
3861 RS/6000 <rpc/types.h>.
3862 xm-rs6000.h: include <sys/select.h> to define fd_set for
3863 <rpc/svc.h> on RS/6000.
3864
4bbefa86
ILT
3865Tue Aug 18 14:48:24 1992 Ian Lance Taylor (ian@cygnus.com)
3866
3867 * Makefile.in: added FLAGS_TO_PASS variable, and passed it to
3868 recursive invocations of make. Always create installation
3869 directories.
3870
d6b38bfb
PB
3871Mon Aug 17 18:29:58 1992 Per Bothner (bothner@rtl.cygnus.com)
3872
3873 * m68k-pinsn.c: Minor fix in style of output (don't use
3874 range to indicate floating point control registers).
3875
e893a126
JG
3876Sat Aug 15 02:58:03 1992 John Gilmore (gnu@cygnus.com)
3877
67c9f54c
JG
3878 * m68k-pinsn.c: Surround extended support with #ifdef HAVE_68881.
3879
e893a126
JG
3880 * infcmd.c (registers_info): Handle multiple register names.
3881 Changes inspired by Roland McGrath.
3882
4ecee2f9
SG
3883Sat Aug 15 02:28:52 1992 Stu Grossman (grossman at cygnus.com)
3884
3885 * sparc-stub.c: New file. Mix it with your SPARClite
3886 application, and it will speak GDB remote protocol!
3887 * remote.c (remote_wait): Change 'T' (expedited reply) message to
e893a126 3888 deal with arbitrary registers. Needed for sparc-stub.
4ecee2f9 3889
3dc755fb
FF
3890Fri Aug 14 12:11:25 1992 Fred Fish (fnf@cygnus.com)
3891
3892 * cplus-dem.c (cplus_markers): Add table for gnu style and
3893 use throughout, in place of compile time constant CPLUS_MARKER.
3894 * cplus-dem.c (ARM_VTABLE_STRING, ARM_VTABLE_STRLEN): Add.
3895 * cplus-dem.c (cfront_special): New function, as suggested
3896 by pfieland@stratus.com.
3897 * cplus-dem.c (forget_types): New function.
3898 * cplus-dem.c (cplus_demangle): Call gnu_special, moved from
3899 demangle_prefix().
3900 * cplus-dem.c (mop_up): Call forget_types().
3901 * cplus-dem.c (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING):
3902 Use throughout, instead of checking current_demangling_style.
3903 * cplus-dem.c (demangle_signature): When finding an explicit
3904 start of function args, forget all remembered types for
3905 lucid/cfront style demangling.
3906 * cplus-dem.c (demangle_prefix): In a sequence of two or more
3907 underbar characters, use last pair as the delimiter. Hoist
3908 gnu_special() call up to cplus_demangle(). Call cfront_special()
3909 when appropriate.
3910 * cplus-dem.c (cplus_special): Fix virtual table name demangling
3911 for inherited classes.
3912 * cplus-dem.c (demangle_args): Document quirks of numbered
3913 references to previously seen types.
3914 * dbxread.c (read_ofile_symtab, process_one_symbol):
3915 Use AUTO_DEMANGLING rather than explicitly checking
3916 current_demangling_style.
3917 * demangle.h: Add some comments.
3918 * demangle.h (AUTO_DEMANGLING, GNU_DEMANGLING, LUCID_DEMANGLING,
3919 CFRONT_DEMANGLING): New macros.
3920 * dwarfread.c (LCC_PRODUCER): Remove trailing space, which is
3921 not found in the actual producer string produced by lcc.
3922 * dwarfread.c (handle_producer): Use AUTO_DEMANGLING rather
3923 than explicitly checking current_demangling_style.
3924
4e8ea7a6
JG
3925Thu Aug 13 11:54:46 1992 John Gilmore (gnu at cygnus.com)
3926
3927 * breakpoint.c (enable_longjmp_breakpoint,
3928 disable_longjmp_breakpoint, set_longjmp_resume_breakpoint):
3929 Check for duplicate breakpoints at the same address. Bug report
3930 and preliminary fix from Dave Morrison, <drmorris@us.oracle.com>.
3931
7b5d9650
FF
3932Wed Aug 12 11:14:58 1992 Fred Fish (fnf@cygnus.com)
3933
3934 * buildsym.c (end_symtab): Document that end_symtab can return
3935 NULL under non-error conditions.
3936 * dwarfread.c (read_file_scope): Guard against dereferencing NULL
3937 returned from end_symtab for empty compilation units.
3938
6872cfda
JG
3939Tue Aug 11 02:49:39 1992 John Gilmore (gnu at cygnus.com)
3940
3941 * am29k-tdep.c: Lint from DECstation compiler.
3942 * mem-break.c: Restore test of BREAKPOINT size that Fred removed.
3943 As the man page says, "Sometimes you just can't get lint to shut
3944 up". That doesn't mean you should blow away the code it won't
3945 shut up about.
3946 * mips-xdep.c: Revise stubbing-out of code until Rich cleans
3947 it up over the next few weeks. Make mips x 29k build.
3948 * tm-29k.h (CALL_DUMMY): Make it work on cross-endian hosts.
3949 (FIX_CALL_DUMMY): Comment in the patching of the breakpoint,
3950 but leave it as a comment because the breakpoint instruction
3951 is not easily accessible at this moment (it's static, and if
3952 we define one here, it goes into every file compiled).
3953
a679650f
FF
3954Mon Aug 10 22:27:19 1992 Fred Fish (fnf@cygnus.com)
3955
3956 * Makefile.in (VERSION): Bump to 4.6.3.
3957 * dwarfread.c (scan_partial_symbols): Skip over DIE's within
3958 function scopes when building partial symbol tables.
3959 * objfiles.c (open_existing_mapped_file): Make it clear in
3960 warning message that out of date mapped files are ignored.
3961 * symtab.c (lookup_symtab_1, lookup_symbol): Print compilation
3962 unit source file name in error message.
3963
50055e94
FF
3964Sat Aug 8 23:12:22 1992 Fred Fish (fnf@cygnus.com)
3965
3966 * dwarfread.c (struct dieinfo): Add has_at_byte_size.
3967 * dwarfread.c (struct_type): In absence of AT_byte_size for
3968 bitfield, use size of object of member's type for the size of
3969 the anonymous object containing the bit field.
3970 * dwarfread.c (completedieinfo): Set has_at_byte_size when
3971 an AT_byte_size attribute is seen.
3972 * mipsread.c (psymtab_to_symtab_1): Fix misspelled cast to
3973 union aux_ext (was aux_ent).
3974 * i386-pinsn.c (print_insn): Cast 2'nd arg to read_memory from
3975 unsigned char* to char*, for Lucid compiler.
3976 * i386-tdep.c (codestream_fill): Fix cast of 2'nd arg to read_memory
3977 to be correct type (from unsigned char* to char*).
3978 * valprint.c (type_print_derivation_info): Minor tweak to placement
3979 of commas in derived class printing.
3980 * xcoffread.c (builtin_type): Fix misspelling in fatal message.
3981
f6492282
SC
3982Fri Aug 7 11:18:23 1992 Steve Chamberlain (sac@thepub.cygnus.com)
3983
3984 * xm-go32.h: Define LSEEK_NOT_LINEAR
a65841d7 3985 * source.c (find_source_lines): if LSEEK_NOT_LINEAR is defined
f6492282
SC
3986 then work out the lseek positions of newlines by running through
3987 the file and `tell'ing. This makes source file listing work on
3988 OS's where the relationship between physical position in file and
3989 canonical position is indeterminate, eg VMS and DOS.
3990
8275e802
FF
3991Thu Aug 6 10:56:01 1992 Fred Fish (fnf@cygnus.com)
3992
c02a37ea
FF
3993 * stabsread.c: Ensure that all members of all allocated structures
3994 are initialized to known state to avoid hard to find bugs with gdb
3995 using fields containing random data.
3416d90b
FF
3996 * buildsym.c (start_subfile): Compact dirname initialization.
3997 * buildsym.c (patch_subfile_names): New function.
8275e802 3998 * buildsym.c (end_symtab): Make copy of dirname on symbol obstack.
3416d90b
FF
3999 * buildsym.c (end_symtab): Free all malloc'd subfile fields.
4000 * buildsym.h (patch_subfile_names): Add prototype.
4001 * dbxread.c (process_one_symbol): Call patch_subfile_names.
8275e802 4002
38094c60
JG
4003Wed Aug 5 01:42:40 1992 John Gilmore (gnu at cygnus.com)
4004
e7ae70e9
SG
4005 * remote-udi.c: Update comments.
4006
38094c60
JG
4007 * remote.c (getpkt): Only force retransmission ten times;
4008 after that, assume bug in target code, and handle pkt anyway.
4009
d0d0f75e
SG
4010Mon Aug 3 17:06:20 1992 Stu Grossman (grossman at cygnus.com)
4011
4012 * configure.in: Add support for apollo 68k under BSD environment.
4013 * xm-apollo68b.h: New file to support above.
4014
9e4667f6
FF
4015Mon Aug 3 00:25:56 1992 Fred Fish (fnf@cygnus.com)
4016
4017 * configure.in: Recognize i486 host cpu.
4018 * valprint.c (type_print_derivation_info): Print derivation info
4019 in same form as class declarations in source.
4020 * valprint.c (type_print_varspec_suffix): Split arg printing
4021 code out to type_print_args function.
4022
cd46ffad 4023Sat Aug 1 13:32:58 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 4024
cd46ffad
FF
4025 * dwarfread.c (struct dieinfo): Remove obsolete at_visibility,
4026 at_import, at_frame_base.
4027 * dwarfread.c (completedieinfo): Remove cases for obsolete
4028 AT_visibility, AT_import, and AT_frame_base attributes.
4029 * breakpoint.h (BREAKPOINT_MAX): Increase from 10 to 16 for
4030 i860, which can keep up to 4 shadow breakpoints.
4031 * tm-stratus.h (USG): Define.
4032 * tm-stratus.h (TARGET_BYTE_ORDER): Define to BIG_ENDIAN.
4033 * xm-stratus.h (HOST_BYTE_ORDER): Define to BIG_ENDIAN.
4034 * xm-stratus.h (xm-sysv4.h): Include, name changed from xm-svr4.h.
4035 * xm-stratus.h (NO_JOB_CONTROL): Remove define.
4036 * config/stratus.mt (TDEPFILES): Include files available from
4037 stratus that are not yet in release pending receipt of paperwork
4038 at FSF.
4039 * buildsym.c (finish_block): Minor code format change.
4040 * gdbtypes.h (struct field): Add to comments.
4041 * gdbtypes.h (virtual_field_bits): Add to comments.
4042 * objfiles.c (allocate_objfile): Change obstack interface to
4043 match FSF merging efforts.
ddce75e0 4044
cd46ffad 4045Mon Jul 27 21:14:44 1992 Fred Fish (fnf@cygnus.com)
ddce75e0 4046
cd46ffad
FF
4047 * Makefile.in (VERSION): Bump to 4.6.2.
4048 * Makefile.in (SFILES_MAINDIR): Add stabsread.c
4049 * Makefile.in (OBS): Add stabsread.o
4050 * Makefile.in (stabsread.o): Add build rule.
4051 * stabsread.c, stabsread.h: New files.
4052 * buildsym.c: Split out stabs specific support to stabsread.c.
4053 * buildsym.h: Split out stabs specific support to stabsread.h.
4054 * dbxread.c (stabsread.h): Include
4055 * dbxread.c (dbx_new_init): Call stabsread_new_init.
4056 * dbxread.c (dbx_psymtab_to_symtab_1): Call stabsread_init.
4057 * dbxread.c (read_ofile_symtab): Call end_stabs.
4058 * dbxread.c (process_one_symbol): Call end_stabs and start_stabs.
4059 * dbxread.c (elfstab_build_psymtabs): Call stabsread_new_init.
4060 * dwarfread.c (psymtab_to_symtab_1): Call buildsym_init, add
4061 really_free_pendings to cleanups.
4062 * elfread.c (elf_new_init): Call stabsread_new_init.
4063 * gdbtypes.c: Small changes to maintenance commands.
4064 * mipsread.c (stabsread.h): Include.
4065 * mipsread.c (psymtab_to_symtab_1): Call end_stabs.
4066 * xcoffread.c (stabsread.h): Include.
4067 * xcoffread.c (global_stabs): Remove redundant def.
4068 * xcoffread.c (read_xcoff_symtab): Call start_stabs and end_stabs.
ddce75e0 4069
d7808603
FF
4070Wed Jul 22 21:39:33 1992 Fred Fish (fnf@cygnus.com)
4071
4072 * lmode_inferior_valid, lmode_ours_valid: New static vars.
4073 * inflow.c (terminal_init_inferior, terminal_inferior,
4074 terminal_ours_1, initialize_inflow): Record and use state
4075 of lmode_inferior_valid and lmode_ours_valid.
4076
cd46ffad
FF
4077Wed Jul 22 04:23:03 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4078
4079 * es1800.c: use FREAD|FWRITE rather than _FREAD|_FWRITE.
4080 include <sgtty.h> on USG. (from sef).
4081
4082 * depend: es1800 dependency needed here.
4083
c0f1085b
FF
4084Mon Jul 20 21:09:53 1992 Fred Fish (fnf@cygnus.com)
4085
4086 * buildsym.c (read_struct_type): Initialize structs allocated
4087 with alloca, to avoid using random values from stack later on.
4088 * defs.h (fprintf_filtered): Add prototype.
4089 * gdbtypes.c (check_stub_method): Fix misleading comments.
4090 * gdbtypes.c (print_arg_types, dump_fn_fieldlists): New maint
4091 support functions.
4092 * gdbtypes.c (print_cplus_stuff, recursive_dump_type): Many
4093 small changes to maint support functions.
4094 * gdbtypes.h (cplus_struct_type): Reorganize member ordering
4095 for some fields and expand comments.
4096 * objfiles.c (allocate_objfile): Use new obstack_alloc_arg
4097 macro and track change to obstack_full_begin macro.
4098 * utils.c (fprintfi_filtered): New function.
4099 * valprint.c (type_print_base): Fixup field printing to not
4100 print extraneous lines and not print bogus "no data fields"
4101 messages for C++ classes with no data members. Also use new
4102 fprintfi_filtered function.
4103
cd46ffad
FF
4104Mon Jul 20 11:25:18 1992 D. V. Henkel-Wallace (gumby@cygnus.com)
4105
4106 * configure.in: es1800 ok for 68000 too.
4107
c0f1085b
FF
4108Sat Jul 18 15:48:58 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4109
4110 * configure.in: echo error messages to stderr, not stdout
4111
4112Fri Jul 17 17:07:24 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4113
4114 * configure.in: recognize hppa* instead of hppa
4115
f8e32b6e
SG
4116Fri Jul 17 16:52:04 1992 Stu Grossman (grossman at cygnus.com)
4117
e7ae70e9
SG
4118 * energize.c: Second cut at DynamicLoad message handling.
4119
4120 * energize.c: Relativize pathnames in #include statements.
4121 * (kernel_dispatch): Better error messages for unknown protocol
4122 messages.
4123 * (kernel_dispatch): First cut at DynamicLoad message handling.
4124
f8e32b6e
SG
4125 * Makefile.in: Remove -I../readline from all compilations,
4126 include a special case for main.o instead.
4127
d4902ab0
FF
4128Fri Jul 17 10:14:56 1992 Fred Fish (fnf@cygnus.com)
4129
51a9d78c
FF
4130 * eval.c (evaluate_subexp): Ask lookup_struct_elt_type to call
4131 error if it fails to find a member type, rather than return NULL
4132 and trigger a coredump.
4133 * symtab.c (lookup_symbol, lookup_demangled_block_symbol,
4134 lookup_demangled_partial_symbol,): Ask demangle_and_match to
4135 match on complete demanglings, including argument lists for member
4136 functions, rather than just accepting the first demangling that
4137 matches the class and function name.
d4902ab0
FF
4138 * dwarfread.c (read_file_scope): Pass contents of AT_comp_dir
4139 to start_symtab as the directory name.
4140 * dwarfread.c (completedieinfo): Strip off any leading hostname
4141 portion of the AT_comp_dir attribute string. Gdb doesn't know
4142 what to do with them (FIXME).
4143
cdaa27e9
SG
4144Thu Jul 16 13:37:09 1992 Stu Grossman (grossman at cygnus.com)
4145
cb48d806
SG
4146 * breakpoint.c (commands_command): Simplify code a bit, remove
4147 unnecessary fflush().
4148
cdaa27e9
SG
4149 * Makefile.in (OTHERS): Add gcc.patch.
4150 * partial-stab.h (N_SO): Fix handling of redundant SOs (again...)
4151
345e9ab8
FF
4152Thu Jul 16 12:07:40 1992 Fred Fish (fnf@cygnus.com)
4153
4154 * dwarfread.c (LCC_PRODUCER): Change to match current NCR
4155 lcc producer string.
4156
3ddcdc59
SG
4157Thu Jul 16 11:40:55 1992 Stu Grossman (grossman at cygnus.com)
4158
4159 * WHATS.NEW renamed to NEWS.
4160
d23639b2
FF
4161Wed Jul 15 11:37:31 1992 Fred Fish (fnf@cygnus.com)
4162
4163 * dbxread.c, dwarfread.c: Re-enable experimental code to
4164 automatically select demangling style.
4165 * demangle.c (DEFAULT_DEMANGLING_STYLE): Rename from simply
4166 DEMANGLING_STYLE, to make more descriptive. Revert back to
4167 "auto" as default. Comment use.
4168 * Makefile.in (DEMANGLING_STYLE, DEMANGLE_OPTS): Remove.
4169 * Makefile.in (${DEMANGLER}.o) Remove target and special
4170 compilation rule.
4171
5e85287e
FF
4172Tue Jul 14 23:05:14 1992 Fred Fish (fnf@cygnus.com)
4173
4174 * Makefile.in (VERSION): Bump to 4.6.1 (post-release versions).
4175
d1fbc20d
SG
4176Tue Jul 14 19:26:54 1992 Stu Grossman (grossman at cygnus.com)
4177
4178 * Makefile.in, demangle.c: Change default demangling style to
4179 gnu.
4180 * Makefile.in: Update version to 4.6 !!!
4181 * README, WHATS.NEW: Update for 4.6.
4182
7e94a17b
KR
4183Tue Jul 14 16:59:46 1992 Ken Raeburn (raeburn@cygnus.com)
4184
7b8ca0a0
KR
4185 * i960-tdep.c (frame_args_address): If arg pointer can't be found,
4186 use frame address.
4187
7e94a17b
KR
4188 * buildsym.c (read_struct_type): Don't die on TYPE_CODE_UNDEF
4189 nodes as base classes.
4190
efcc6e06
SG
4191Tue Jul 14 00:12:30 1992 Stu Grossman (grossman at cygnus.com)
4192
d1fbc20d
SG
4193 * alldeps.mak, depend: Update.
4194
930acbe5
SG
4195 * xcoffread.c: Add decl for section_offset to keep prototype happy.
4196
67ba524f
SG
4197 * Makefile.in (VERSION): 4.5.9.
4198
efcc6e06
SG
4199 * xm-hp300bsd.h: Add decl for strdup().
4200 * mips-tdep.c (heuristic_proc_desc): Fill in proc start addr in
4201 PDR. Cleanup a few things, fix compilation warnings.
4202
2dbde378
FF
4203Mon Jul 13 19:06:54 1992 Fred Fish (fnf@cygnus.com)
4204
4205 * Makefile.in (DEMANGLING_STYLE): New define to set default
4206 demangling style for C++. Defaults to "auto".
4207 * Makefile.in (DEMANGLE_OPTS): Use DEMANGLING_STYLE.
4208 * Makefile.in (SFILES_MAINDIR): Add demangle.c
4209 * Makefile.in (OBS): Add demangle.o
4210 * cplus-dem.c (GNU_DEMANGLING, ARM_DEMANGLING, LUCID_DEMANGLING):
4211 Remove compile time decisions about demangling style and replace
4212 with runtime decisions using current_demangling_style.
4213 * cplus-dem.c (main): Expand code included during building of
4214 standalone demangler to recognize demangling style options.
4215 * dbxread.c (demangle.h): Include.
4216 * dbxread.c (read_ofile_symtab, process_one_symbol): Set GNU C++
4217 demangling style if processing g++ code and current demangling style
4218 is auto (Note: this feature currently disabled.)
4219 * demangle.c: New file, generic demangling control.
4220 * demangle.h (demangling_styles): New enumeration to select one
4221 of several demangling styles. Also define string names for each
4222 style.
4223 * demangle.h (set_demangling_style): Add prototype.
4224 * dwarfread.c (demangle.h): Include.
4225 * dwarfread.c (GPLUS_PRODUCER, LCC_PRODUCER, CFRONT_PRODUCER):
4226 New producer string prefixes to recognize.
4227 * dwarfread.c (handle_producer): Consolidate actions for specific
4228 producers. Set demangling style based on producer string if
4229 current style is auto. (Note: this feature currently disabled.)
4230 * config/ncr3000.mt (DEMANGLE_OPTS): Remove.
4231
49f3be18
JG
4232Sat Jul 11 18:23:58 1992 John Gilmore (gnu at cygnus.com)
4233
4234 * config/sun4sol2.mh: Remove -xs flag, default INSTALL to cp.
4235
a252e715
PB
4236Fri Jul 10 13:58:34 1992 Per Bothner (bothner@rtl.cygnus.com)
4237
4238 * gdbtypes.c, gdbtypes.h: New function lookup_signed_typename.
4239 * c-exp.y: Call lookup_signed_typename() after seeing
4240 "signed". This handles "signed char" correctly.
4241 * c-exp.y: Recognize (but ignore) 'const' and 'volatile'
4242 keywords before a type specifier.
4243
311592ff
FF
4244Fri Jul 10 10:19:52 1992 Fred Fish (fnf@cygnus.com)
4245
4246 * command.c (lookup_cmd_1): Clarify descriptive comments.
4247 * gdbcmd.h (maintenanceprintlist): Add declaration.
4248 * main.c (maintenanceprintlist): Add definition.
4249 * main.c (gdb_completer_command_word_break_characters): Add.
4250 * main.c (symbol_completion_function): Switch completer word
4251 break character sets dynamically, based on whether completion is
4252 being done on commands or on something else.
4253 * main.c (initialize_cmd_lists): Init maintenanceprintlist.
4254 * maint.c: Include demangle.h.
4255 * maint.c (maintenance_demangle): New function.
4256 * maint.c (maintenance_print_command): New function.
4257 * maint.c (_initialize_maint_cmds): Reorganize some commands
4258 under new maintenance print subcommand.
4259
5c5b5d4b
PB
4260Thu Jul 9 19:05:27 1992 Per Bothner (bothner@rtl.cygnus.com)
4261
4262 * gdbtypes.c (lookup_struct_elt_type): If the input type is
4263 TYPE_CODE_PTR or TYPE_CODE_REF, dereference it to get the
4264 target type. Otherwise, 'whatis this.field' wouldn't work,
4265 which would be inconsistent, since 'print this.field' works.
4266 * buildsym.c (read_struct_type, read_enum_type): Clear
4267 TYPE_FLAG_STUB flag.
4268 * buildsym.c (cleanup_undefined_types): Don't rely on a
4269 flawed "Reasonable test to see if" a type has been defined
4270 since it was referred to; now we can just see if the
4271 TYPE_FLAG_STUB flag has been cleared.
4272 * valprint.c (print_type_base): Emit public/protected/private
4273 labels for methods as well as fields. Also, indent these labels
4274 2 spaces instead of 4, for a more conventional "look".
4275 * symtab.c (gdb_mangle_name): Undo Fred's change, unless
4276 GCC_MANGLE_BUG is defined. Also, handle destructors specially.
4277 * gcc.patch: New file. Contains patch for gcc (so people
4278 with gdb-2.2.x won't have to wait for a new gcc release).
4279
c5f5b482
KR
4280Thu Jul 9 18:44:26 1992 Ken Raeburn (raeburn@cygnus.com)
4281
7eec00ed
KR
4282 * i960-pinsn.c (mem): Variables reg[123] should point to CONST.
4283 (print_addr): Call print_address to show symbolic version as well.
4284
c5f5b482
KR
4285 * remote-vx.c (vx_kill): Don't look for arguments; they aren't
4286 being passed.
4287 (vx_read_register): Declare inferior_fp_regs. Delete code for
4288 copying "inferior_registers" around; the values are already in var
4289 "registers". Use correct size for register set.
4290
4291 * remote-vx.c (vx_write_register): Don't try writing FP regs; the
4292 target doesn't support it.
4293 (vx_read_register): Don't try reading them either.
4294
4295 * tm-i960.h (IP_REGNUM): Move to end of non-FP list, since the
4296 VxWorks back end reads them in one contiguous set except for this
4297 one.
4298 (register_names): Change "pc" to "pcw" to avoid confusion printing
4299 "$pc".
4300 * tm-vx960.h (PC_REGNUM): Use RIP_REGNUM, since that's where we
4301 find the PC under VxWorks.
4302
8050a57b
FF
4303Wed Jul 8 21:34:30 1992 Fred Fish (fnf@cygnus.com)
4304
4305 * dwarfread.c (alloc_utype, decode_subscr_data): Call alloc_type
4306 to create new blank types, instead of handcrafting them.
4307 * defs.h (printfi_filtered): Add prototype.
4308 * utils.c (printfi_filtered): New function.
4309 * gdbtypes.c (recursive_dump_type): Use printfi_filtered to
4310 to simplify the code. Other cleanups.
4311 * gdbtypes.c (check_stub_method): Demangle using DMGL_ANSI.
4312 * gdbtypes.h (struct cplus_struct_type): Add comments describing
4313 use of various fields.
4314 * gdbtypes.c (print_bit_vector, print_cplus_stuff): New functions.
4315 * c-exp.y (%token): Add CLASS as a token for C++, add grammar
4316 production that currently treats it exactly the same as STRUCT.
4317 * c-exp.y (yylex): Recognize "class" as token CLASS.
4318 * symtab.c (gdb_mangle_name): Rewrite to match current g++ stabs.
4319 * symtab.c (decode_line_1): Fix to pass quoted args on down to
4320 general symbol handling code. Call cplus_mangle_opname with
4321 DMGL_ANSI.
4322 * symtab.c (decode_line_2): Print demangled function names in
4323 breakpoint menus, instead of just file and line number.
4324 * symtab.c (name_match): Call cplus_demangle with DMGL_ANSI.
4325 * valprint.c (type_print_base): Print "class" for C++ classes,
4326 rather than "struct". Print section labels for public, protected
4327 and private members of C++ classes.
4328 * values.c: Include demangle.h.
4329 * values.c (value_headof): Call cplus_demangle with DMGL_ANSI.
4330
e17e8e0e
SG
4331Wed Jul 8 17:23:07 1992 Stu Grossman (grossman at cygnus.com)
4332
4333 * Makefile.in (VERSION): Update to 4.5.8.
4334
4335 Wed Jul 8 00:11:02 1992 Stu Grossman (grossman at cygnus.com)
784fd92b
SG
4336
4337 * dbxread.c (dbx_symfile_init): Init stab_section_info to NULL to
4338 prevent crashes when examining cross-targets.
4339 * dbxread.c (process_one_symbol): Include directory name when
4340 calling start_subfile for SOL & BINCL symbols. This allows gdb to
4341 find include files, and yacc/lex sources when the cwd doesn't match
4342 that in which the object was compiled.
4343 * objfiles.h (ALL_MSYMBOLS): Don't seg fault when there are no
4344 msymbols.
4345 * symtab.c (lookup_symtab_1): Rewrite. It now handles include
4346 files.
4347
2e9309df
FF
4348Tue Jul 7 09:00:42 1992 Fred Fish (fnf@cygnus.com)
4349
4350 * maint.c (maintenance_command, maintenance_info_command):
4351 Install with allow_unknown as 0 and call help_list to show
4352 list of possibilities when no subcommand is specified.
4353
498f1df0
FF
4354Tue Jul 7 00:20:29 1992 Fred Fish (fnf@cygnus.com)
4355
4356 * configure.in: Add m68k-ericsson-*.
4357 * remote-es1800.c, tm-es1800.h, config/es1800.mt: New files.
4358
0239d9b3
FF
4359Sun Jul 5 17:17:16 1992 Fred Fish (fnf@cygnus.com)
4360
4361 * maint.c: New file.
4362 * Makefile.in (SFILES_MAINDIR): Add new file maint.c.
4363 * Makefile.in (OBS): Add new file maint.o.
4364 * defs.h (command_class): Add class_maintenance.
4365 * defs.h (MAINTENANCE_CMDS): Default to including maintenance
4366 commands. Allow for them (and other nonessential parts of gdb)
4367 to be selectively left out under special circumstances.
4368 * gdbtypes.c (recursive_dump_type): New function; supports
4369 maintenance print-type command.
4370 * gdbtypes.h (recursive_dump_type, maintenance_print_type):
4371 Add prototypes.
4372 * main.c (maintenancelist, maintenanceinfolist): Add maintenance
4373 command lists.
4374 * main.c (initialize_cmd_lists): Eliminate unnecessary casts on
4375 initializers. Add initializations for setprintlist, showprintlist,
4376 setchecklist, showchecklist, maintenancelist, and maintenanceinfolist.
4377 * printcmd.c (maintenance_print_type): New maintenance cmd.
4378 * valprint.c (setprintlist, showprintlist): Move to main.c, as
4379 implied by comment that all cmd lists are owned by main.c.
4380 * infcmd.c (unsetlist): Move to main.c, as implied by comment
4381 that all cmd lists are owned by main.c.
4382 * language.c (setchecklist, showchecklist): Move to main.c, as
4383 implied by comment that all cmd lists are owned by main.c
4384 * breakpoint.c (enablelist, enablebreaklist, disablelist, cmdlist,
4385 deletelist): Remove redundant declarations (also in gdbcmd.h).
4386 * symmisc.c (printsyms_command): Now maintenance_print_symbols.
4387 * symmisc.c (printmsyms_command): Now maintenance_print_msymbols.
4388 * symmisc.c (printpsyms_command): Now maintenance_print_psymbols.
4389 * symmisc.c (printobjfiles_command): Now maintenance_print_objfiles.
4390 * symtab.h (maintenance_print_symbols, maintenance_print_psymbols,
4391 maintenance_print_msymbols, maintenance_print_objfiles):
4392 Add prototypes.
4393 * symmisc.c (printsyms_command, printpsyms_command,
4394 printmsyms_command, printobjfiles_command): Removed from
4395 _initialize_symmisc.
4396 * main.c (dump_me_command): Moved to maint.c and renamed to
4397 maintenance_dump_me.
4398 * breakpoint.c (all_breakpoints_info): Rename to
4399 maintenance_info_breakpoints.
4400 * breakpoint.c (_initialize_breakpoint): Convert add_info of
4401 all_breakpoints_info to add maintenance_info_breakpoints to the
4402 maintenanceinfolist instead.
4403 main.c (initialize_main): Set up maintenance class commands.
4404
e7ae70e9
SG
4405Sun Jul 5 11:03:53 1992 Stu Grossman (grossman at cygnus.com)
4406
4407 * energize-patches: Fix minor problems with building energize lib.
4408
4409 * energize-patches: Change names of all cadillac procedure calls
4410 to be energize procedure calls. Simplify many hooks by moving
4411 tests energize.c. Configure energize, and build it automatically now.
4412
91fef76b
FF
4413Sun Jul 5 09:43:28 1992 Fred Fish (fnf@cygnus.com)
4414
4415 * Makefile.in (VERSION): Bump to 4.5.7.
4416 * cplus-dem.c (demangle_args): Validate index for previously
4417 seen type to guard against bogus values from malformed manglings.
4418 * valops.c (value_struct_elt_for_reference): Guard against
4419 blindly using NULL return value from lookup_symbol.
4420
e7ae70e9
SG
4421Sun Jul 5 09:46:43 1992 Stu Grossman (grossman at cygnus.com)
4422
4423 * cadillac.c, cadillac-patches: Rename to energize.c and
4424 energize-patches. Change all routines and variables named
4425 'cadillac*' to 'energize*'. Create new file called energize.h to
4426 hold all interface declarations.
4427
4428 * deblib/connection/*: Move all of this stuff into energize/, but
4429 delete unneeded files.
4430
ec8ceca3
JG
4431Sun Jul 5 03:06:39 1992 John Gilmore (gnu at cygnus.com)
4432
23053b80
JG
4433 * tm-sysv4.h (NAMES_HAVE_UNDERSCORE): SVR4 systems don't.
4434
ec8ceca3
JG
4435 * buildsym.c (finish_block): Fix thinko `inner block' complaints.
4436 * dbxread.c (process_one_symbol): Parse N_OPT "gcc2_compiled.".
4437 * procfs.c (proc_set_exec_trap): Set run-on-last-close flag on
4438 child processes, to avoid dead ones "hanging around" after GDB exits.
4439 (attach): Always stop the process if it needs it. Set RLC flag
4440 when attaching running processes, so it will continue if we detach
4441 it, quit, or are killed.
4442 (detach): Clear faults and set RLC flag to make process run
4443 when we close it.
4444 (open_proc_file): New `mode' argument for O_RDONLY or O_RDWR.
4445 Callers changed.
4446 (info_proc): Open process O_RDONLY, so we can see any process,
4447 even those controlled by debuggers.
4448 * tm-sun4sol2.h (SUN_FIXED_LBRAC_BUG): They did (in Sol 2).
4449
2670f34d
JG
4450Sat Jul 4 03:43:38 1992 John Gilmore (gnu at cygnus.com)
4451
4452 Relocate symbols using an array of section_offsets, rather than a
4453 single `addr' or `offset'. This makes Solaris-2 support work, and
4454 permits better VxWorks (and maybe xcoff) support later.
4455
4456 * symtab.h (struct section_offsets): New structure for keeping
4457 a set of offsets, rather than a single one.
4458 (struct objfile): Replace addr with section_offsets member.
4459 * symfile.h: Add sym_offsets to struct sym_fns. Conforming changes.
4460 * gdb-stabs.h: New include file with `symbol type specific'
4461 parameters for psymtabs and objfiles.
4462 * Makefile.in (HFILES): Add gdb-stabs.h.
4463 * buildsym.h (start_psymtab, process_one_symbol): Fix prototypes.
4464 * coffread.c: Conforming changes. Fake offset array always 0.
4465 * dbxread.c: Conforming changes.
4466 (struct dbx_symfile_info): Move to gdb-stabs.h.
4467 (start_psymtab): Call elfstab_offset_sections to calculate good
4468 offsets for this source file, based on the ELF symbol table info.
4469 (read_ofile_symtab): Yank N_CATCH, which is dead.
4470 (process_one_symbol, N_CATCH): Yank.
4471 (", N_FUN, N_FNAME, N_FN, N_FN_SEQ, N_SO, N_SOL, N_ENTRY):
4472 Relocate with SECT_OFF_TEXT.
4473 (", N_STSYM, N_LCSYM, N_ROSYM): Grope around in the stab string
4474 to distinguish relocatable from absolute symbols. Then, if not
4475 absolute, do:
4476 (", N_STSYM, N_DSLINE): SECT_OFF_DATA.
4477 (", N_LCSYM, N_BSLINE): SECT_OFF_BSS.
4478 (", N_ROSYM): SECT_OFF_RODATA.
4479 (elfstab_build_psymtabs): Caller has allocated dbx_symfile_info.
4480 (dbx_symfile_offsets): Add to translate addr to offset.
4481 * dwarfread.c: Conforming changes. Single offset currently used.
4482 * elfread.c: Add various complaints about elf/stab stuff.
4483 #include gdb-stabs.h. Conforming changes, using a single offset.
4484 (elf_symtab_read): Record info from BSF_FILE symbols, and local
4485 variables called "Bbss.bss", "Ddata.data", and "Drodata.rodata",
4486 for later use in building psymtabs.
4487 (elf_symfile_read): Allocate dbx_symfile_info here, to keep
4488 the info collected in elf_symtab_read. Cleanup calls free_elfinfo.
4489 (free_elfinfo): New fn, frees all chained stab_section_infos
4490 in an objfile, and zaps the start-of-chain pointer.
4491 (elfstab_offset_sections): New fn, looks in stab_section_info
4492 chain to determine section bases to relocate a psymtab's worth
4493 of symbols, as they are being read.
4494 * mipsread.c: Conforming changes. Stabs-reading will relocate
4495 using one offset. MIPS-reading will not relocate at all.
4496 * partial-stab.h: Relocate different symbol types using different
4497 offsets from section_offsets.
4498 * symfile.c: Conforming changes.
4499 (find_lowest_section): Unused function to use later
4500 to free us from the Tyranny of the Text Section.
4501 (syms_from_objfile): Translate absolute arg ADDR to offsets used
4502 in all lower layers of symbol reading. Call format-specific
4503 sym_offsets function to initialize offsets for high speed symbol
4504 reading.
4505 (symbol_file_add): Call reinit_frame_cache so callers don't have to.
4506 (symbol_file_command, add_symbol_file_command): Callers changed.
4507 * symmisc.c (dump_psymtab): Print new relocation parameters.
4508 * xcoffread.c: Corresponding changes.
4509
4510 * buildsym.c: Tidy innerblock_complaint and blockvector_complaint.
4511 * main.c (main): Read the $HOME/.gdbinit file before processing
4512 the argv arguments (e.g. reading symbol files or core
4513 files). This allows global parameters to be set, which will apply
4514 during the symbol reading. The ./.gdbinit is still read after
4515 argv processing.
4516 * symtab.c (list_symbols): `i variables' shouldn't show enum values.
4517 * xcoffexec.c: Clean up quote inside comment.
4518
4ed3a9ea
FF
4519Fri Jul 3 20:18:26 1992 Fred Fish (fnf@cygnus.com)
4520
4521 * breakpoint.c, buildsym.c, c-exp.y, coffread.c, command.c,
4522 core.c, cplus-dem.c, dbxread.c, dwarfread.c, elfread.c, environ.c,
4523 eval.c, findvar.c, gdbtypes.c, hppabsd-tdep.c, hppahpux-tdep.c,
4524 i386-tdep.c, ieee-float.c, infcmd.c, inflow.c, infptrace.c,
4525 infrun.c, m2-exp.y, mipsread.c, objfiles.c, parse.c, procfs.c,
4526 putenv.c, remote-mm.c, remote-vx.c, solib.c, sparc-tdep.c,
4527 sparc-xdep.c, stack.c, symfile.c, symtab.c, symtab.h, target.c,
4528 tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c,
4529 values.c, xcoffread.c:
4530 Remove "(void)" casts from function calls where the return value
4531 is ignored, in accordance with GNU coding standards.
4532
4c7c6bab
JG
4533Fri Jul 3 00:00:49 1992 John Gilmore (gnu at cygnus.com)
4534
4535 * dbxread.c (process_one_symbol): Ignore N_MAIN, N_ENDM for Solaris.
4536 * partial-stab.h: Ignore N_ENDM.
4537 * elfread.c (elf_symtab_read): Ignore symbols that don't have a
4538 CODE or DATA section attachment. This eliminates a lot of random
4539 values from shared libraries, which screw up the ordinary symbols
4540 in the address ranges they happen to overlap.
4541 * buildsym.c (define_symbol): Eliminate special tests
4542 for function types; move into "function" cases in switch statement.
4543 (define_symbol: 'f', 'F', 'P'): Process all parameter types
4544 in case they define new type numbers. But ignore them (FIXME).
4545 ('k', 'B'): Ignore const and volatile if we see them (FIXME).
4546 (read_sun_builtin_type): Add commentary.
4547
37e2f5cb
DZ
4548Wed Jul 1 00:47:02 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4549
4550 * xm-rs6000.h: define MEM_FNS_DECLARED
4551
43a16f26
JG
4552Tue Jun 30 02:25:10 1992 John Gilmore (gnu at cygnus.com)
4553
4554 * tm-mips.h (GDB_TARGET_IS_MIPS): Define for mips-xdep.c.
4555 (READ_MIPS_FORMAT, COFF_FORMAT): Remove, unused now.
4556 * mips-xdep.c: Remove most include files (unused, caused errs).
4557 (fetch_core_registers): Use right parameters in dummy fn.
4558
c47793da
JG
4559Mon Jun 29 18:30:57 1992 John Gilmore (gnu at cygnus.com)
4560
0f552c5f
JG
4561 * buildsym.c (scan_file_globals): Beware the null file.
4562 Fix from Jim Williams.
4563
4564 * stack.c (return_command): Evaluate expression *before* popping
4565 off the stack frames! Fix inspired by Jim Williams.
4566 (up_silently_command, down_silently_command): No sel frame is error.
4567
4568 * defs.h (memcpy, memset): Conditionalize decls on
4569 #ifndef MEM_FNS_DECLARED, since DECstation differs.
4570 (alloca): Break out the STDC and non-STDC alloca cases, to make
4571 it work on old preprocessors as well as "picky ANSI" ones.
4572 * xm-mips.h (memcpy, memset): Declare, and set MEM_FNS_DECLARED.
4573
4574 * mips-tdep.c (heuristic_proc_start): Zero arg produces zero.
4575 * utils.c (fputs_demangled): Rename SLOP since DECstation system
4576 header files define it!
4577
c47793da
JG
4578 * tm-29k.h (BREAKPOINT): Allow it to be overridden with -D.
4579
51b57ded
FF
4580Mon Jun 29 16:30:25 1992 Fred Fish (fnf@cygnus.com)
4581
4582 * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,
4583 symtab.h, tm-i386v4.h, valprint.c, values.c: Lint.
4584 * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c,
4585 findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c,
4586 putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h,
4587 utils.c, valarith.c, valops.c, valprint.c, values.c:
4588 Replace bcopy() use with memcpy(), which is more standard and can
4589 take advantage of gcc's builtin functions for increased performance.
4590 * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c,
4591 ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h,
4592 target.c, values.c:
4593 Replace bzero() use with memset(), which is more standard and can
4594 take advantage of gcc's builtin functions for increased performance.
4595 * i386-tdep.c, main.c, valprint.c:
4596 Replace bcmp() use with memcmp(), which is more standard and can
4597 take advantage of gcc's builtin functions for increased performance.
4598
22fd4704
FF
4599Sun Jun 28 13:30:22 1992 Fred Fish (fnf@cygnus.com)
4600
4601 * remote.c (remote_wait): Fix cast on signal() call.
4602 * defs.h (alloca): More diddling with alloca. Have to ensure
4603 that it has a prototype, so that if alloca is defined as a macro
4604 that takes an arg, the definition is seen as a use of a macro
4605 that takes an arg, to satisfy picky ANSI preprocessors.
4606
74fb91be
FF
4607Sat Jun 27 12:12:20 1992 Fred Fish (fnf@cygnus.com)
4608
4609 * sparc-pinsn.c: Use <string.h> rather than "string.h", for
4610 consistency with all other gdb files.
e7ae70e9
SG
4611 * cadillac.c: Use <string.h> rather than <strings.h>.
4612 * cadillac.c (kernel_dispatch): Convert rindex usage to strrchr.
74fb91be
FF
4613 * Makefile.in (MAKE): Remove definition for consistency with
4614 other Makefile.in files and to fix problem with recursive makes.
4615
3a1e7a62
JG
4616Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
4617
4618 * hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
4619 crashes H-PUX.
4620
b951b38d
SC
4621Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
4622
4623 * source.c (print_source_lines): for DOS interoperability; don't
4624 print CR (013) as ^M.
4625
99fd9e3e
SG
4626Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com)
4627
bf18ac80
SG
4628 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
4629 conditional.
4630 * hppabsd-core.c: Don't include "param.h", include <sys/param.h>
4631 instead.
4632 * remote.c (remote_wait): Cast signal to void * to avoid warning
4633 from busted HP compiler.
4634
cf79373a
SG
4635 * partial-stab.h (N_SO): Rearrange code a little so that all SO
4636 stabs cause end_psymtab to be called.
4637
50a11e49
SG
4638 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
4639 compiler feature of putting 'c' into basic type descriptors for
4640 all forms of char.
4641
99fd9e3e
SG
4642 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
4643 where there is no place for nPC in prrun struct.
4644
50e0dc41
FF
4645Thu Jun 25 12:06:00 1992 Fred Fish (fnf@cygnus.com)
4646
4647 * mipsread.c: Pass NULL name pointer to init_type, not 0.
4648 * gdbtypes.c (init_type): Use copy of typename on type_obstack.
4649 * dwarfread.c (enum_type): Save enum names on type_obstack.
4650 * dwarfread.c (struct_type): Save member name on type_obstack.
4651 * symtab.c (_initialize_symtab): Fix misspelling.
4652 * regex.c (store_jump, insert_jump): Return void.
4653
5140562f
JG
4654Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
4655
debd3443
JG
4656 * defs.h (PARAMS): Move to ../include/ansidecl.h.
4657 (alloca): Declare return type on SPARC, since Sun doesn't.
4658 (*_BYTE_ORDER): Improve comment: *must* be defined.
4659
5140562f
JG
4660 * tm-hppa.h: New file, architectural definition of HP PA.
4661 * tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
4662
4663 * am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
4664 hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
e7ae70e9 4665 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
5140562f
JG
4666 ser-go32.c, xcoffsolib.c: Remove <stdio.h> which is already in
4667 "defs.h".
4668
4669 * hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
4670 hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
4671 xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h: Copyrights.
4672
fef9f55c
JG
4673Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
4674
4d38b5a8
JG
4675 * printcmd.c (output_command): Thinko.
4676 (x_command): Only set remembered size/format if cmd succeeds.
4677
fef9f55c
JG
4678 * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
4679 since it is no longer used and burns time for every symbol read.
4680 (process_one_symbol): Treat N_CATCH like default (complain).
4681
369172bb
SG
4682Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
4683
4684 * partial-stab.h (case N_TEXT): Fix fencepost error when
4685 detecting start of new symbol info after reading symtab for a
4686 module with a zero length TEXT segment.
4687
e676a15f
FF
4688Tue Jun 23 21:46:26 1992 Fred Fish (fnf@cygnus.com)
4689
4690 * Makefile.in (VERSION): Bump to 4.5.6.
4691 * coffread.c (coff_end_symtab): Cast 2nd arg of complain() to
4692 correct type.
4693 * defs.h (NORETURN): Define away for Lucid compiler.
4694 * remote.c (remote_timer, remote_interrupt): Signal handlers
4695 take one int arg.
4696 * ser-termios.c (serial_write, serial_close): Return whatever
4697 value the write/close call returns, rather than falling off end.
4698 * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on
4699 more systems than it is "char *". Define PTRACE_ARG3_TYPE to
4700 default to int.
4701 * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
4702 inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type
4703 of third arg.
4704 * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
4705 m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
4706 pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
4707 symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace
4708 argument 3.
4709 * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
4710 store_inferior_registers): Supply missing fourth argument to
4711 ptrace().
e7ae70e9
SG
4712 * cadillac.c (kernel_dispatch): Make return type void.
4713 * cadillac.c (iosig): Signal handlers take one int arg.
b4cc55b5
FF
4714 * valprint.c (val_print_fields): Call fprint_symbol to get
4715 automatic C++ demangling for mangled field names.
e676a15f 4716
0efe20a6
FF
4717Mon Jun 22 20:18:06 1992 Fred Fish (fnf@cygnus.com)
4718
4719 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
4720 * dwarfread.c (enum_type): Fix misspelling in comment.
4721 * valprint.c (val_print_fields, cplus_val_print): Minor
4722 adjustment to printing of C++ class structures to more closely
4723 match format for printing C structures, with and without setting
4724 pretty print.
4725
e37a6e9c
PB
4726Mon Jun 22 17:19:02 1992 Per Bothner (bothner@cygnus.com)
4727
4728 * infrun.c (wait_for_inferior): Don't test for SIGEMT
4729 (which is not a Posix signal) if it isn't defined.
4730 * tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
4731 New port to Linux (a free Unix clone for 386 machines).
4732
f70be3e4
JG
4733Sat Jun 20 19:19:52 1992 John Gilmore (gnu at cygnus.com)
4734
4735 COFF changes for dealing better with EPI 29K C compiler output.
4736
4737 * coffread.c (record_minimal_symbol): Pass the minsym type to it.
4738 Callers changed.
4739 (coff_end_symtab): Sort blocks if needed. Complain if misordered.
4740 (read_coff_symtab): Move patch_opaque_types call from
4741 coff_symfile_read. Restrict it to symtabs from this objfile.
4742 (process_coff_symbol: C_TPDEF): Don't put ordinary foward
4743 references on opaque type chain; just let coff_lookup_type handle 'em.
4744 (decode_type): Complain about tagndx values on
4745 non-struct/union/enum types, which the EPI compiler tends to produce.
4746
4747 * symtab.c (list_symbols): Make minimal symbol variable-finding work.
4748
4749 * tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
4750 dependency.
4751
4752 * elfread.c (elf_symfile_read): Update bfd_elf_find_section
4753 usage to match new prototype. Include libbfd.h to get prototype.
4754
28df0c3e
JG
4755 * source.c (find_source_lines): Handle large st_size fields.
4756
b4fde6fa
FF
4757Sat Jun 20 16:28:39 1992 Fred Fish (fnf@cygnus.com)
4758
4759 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
4760 * stack.c (return_command): Use cleanups to avoid memory leaks.
4761
e95bfbf1
JG
4762Fri Jun 19 19:06:41 1992 John Gilmore (gnu at cygnus.com)
4763
4764 * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
4765 INT_REGNUM to INTE_REGNUM.
4766
4767 * tm-29k.h (SDB_REG_TO_REGNUM): Add for EPI 29K C compiler.
4768
9aa44833
SG
4769Fri Jun 19 15:30:15 1992 Stu Grossman (grossman at cygnus.com)
4770
7da1e27d
SG
4771 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
4772 hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
4773 hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
4774 tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h: HPPA merge.
4775
9aa44833
SG
4776 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
4777 declarations of malloc/realloc/free that are inserted by some
4778 versions of yacc.
4779 * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by
4780 #undeffing them.
4781 * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet
4782 another decl of strdup (this really ought to come from libiberty.h!).
4783
8f86a4e4
JG
4784Fri Jun 19 10:28:05 1992 John Gilmore (gnu at cygnus.com)
4785
4786 * remote.c (getpkt): Error if input exceeds buffer size.
4787 (_initialize_remote): `set remotedebug' enables packet trace.
4788
4789 * dbxread.c (process_one_symbol:N_FUN): GCC now produces relative
4790 N_SLINE's, etc, just like Sun cc on Solaris2.
4791
4792 * am29k-tdep.c (read_register_stack, write_register_stack):
4793 Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
4794 variable. Add `set' and `show' commands for it.
4795 * doc/gdb.texinfo: Document it.
4796
4341615d
FF
4797Thu Jun 18 19:35:22 1992 Fred Fish (fnf@cygnus.com)
4798
4799 * valprint.c (type_print_1): Plug memory leak. Print all
4800 C++ syms as demangled, not just functions.
4801 * buildsym.c (read_range_type): When we find a signed char
4802 type, do a lookup of signed char, not plain char. Plain char's
4803 still get looked up as plain char's elsewhere.
4804
8f86a4e4
JG
4805Thu Jun 18 18:59:04 1992 John Gilmore (gnu at cygnus.com)
4806
4807 * eval.c: Avoid residue-by-zero when evaluating without side effects.
4808 (Bug and fix found by Pierre Willard.)
4809
427d778c
SG
4810Wed Jun 17 13:08:33 1992 Stu Grossman (grossman at cygnus.com)
4811
7634ebc8
SG
4812 * xm-rs6000.h: Fix decls for malloc, realloc, and free.
4813
826f73d0
SG
4814 * xm-rs6000.h: Add decl for strdup().
4815
4816 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
65c36045
SG
4817 compilation errors.
4818
423e9664
SG
4819 * breakpoint.c (enable_command, disable_command): Without args,
4820 should only affect normal breakpoints and watchpoints.
427d778c 4821
423e9664
SG
4822 * m68k-pinsn.c (print_insn_arg): Make register be const.
4823 * xcoffexec.c: Remove ' from comment.
427d778c
SG
4824 * xm-sun3os4.h: Define MALLOC_INCOMPATIBLE to avoid conflicts
4825 with decls of malloc in c-exp.tab.c (as produced by yacc).
4826 There's got to be a better way to do this...
4827
323227fe
FF
4828Wed Jun 17 11:10:40 1992 Fred Fish (fnf@cygnus.com)
4829
4830 * partial-stab.h: Convert single rindex use to strrchr.
4831 * mipsread.c, dbxread.c: Remove troublesome inclusion of non-
4832 standard <strings.h> file, now that the only single use of
4833 rindex in the gdb source files is gone.
4834
fa0bcaa3
FF
4835Tue Jun 16 22:17:49 1992 Fred Fish (fnf@cygnus.com)
4836
4837 * mipsread.c: Undo ill effects from including <strings.h>,
4838 which #defines index to be strchr. Unfortunately, index is
4839 a member of a symbol table structure that can't be changed.
4840 * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h,
4841 remove redundant #include's.
4842
b303297a
SG
4843Tue Jun 16 14:15:51 1992 Stu Grossman (grossman at cygnus.com)
4844
4845 * mipsread.c: #include <strings.h> for rindex().
4846
d1140eb5
FF
4847Tue Jun 16 09:01:49 1992 Fred Fish (fnf@cygnus.com)
4848
4849 * xcoffexec.c (map_vmap): Turn comment into a real C comment.
4850
c72af089
SG
4851Mon Jun 15 18:41:23 1992 Stu Grossman (grossman at cygnus.com)
4852
4853 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
4854 extraneous SO stabs from busted C++ compilers.
4855
4c07f28d
FF
4856Mon Jun 15 12:21:45 1992 Fred Fish (fnf@cygnus.com)
4857
4858 * Makefile.in (VERSION): Bump to 4.5.5.
4859 * symtab.c (decode_line_1): Until C++ support stabilizes, when
4860 C++ lookups fail, print possibly helpful hint about completion.
4861 * cplus-dem.c (demangle_signature): Fix ARM style demangling
4862 for static data members.
4863 * dbxread.c (dbx_psymtab_to_symtab_1): Fix prototype.
4864 * config/ncr3000.mh (INSTALL): Don't use /usr/ucb/install,
4865 it's broken on ncr3000's.
4866
1c92ca6f
FF
4867Mon Jun 15 07:21:00 1992 Fred Fish (fnf@cygnus.com)
4868
4869 * dwarfread.c (decode_modified_type): Change type of first arg.
4870 Change 'modifier' to char from unsigned char. Cast single use
4871 that needs to be unsigned char.
4872 * symtab.h (SYMBOL_BASEREG_VALID): Explain disabling.
4873 * utils.c (strdup_demangled): Add function.
4874 * defs.h (strdup_demangled): Add prototype.
4875 * stack.c (return_command): Demangle C++ function names for query.
4876 * infcmd.c (jump_command): Demangle C++ function names for query.
4877 * cplus-dem.c (consume_count): New function and prototype.
4878 * cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
4879 do_type): Replace conversion code with consume_count().
4880 * cplus-dem.c (gnu_special): Fix demangled of static members.
4881 * source.c (list_command): Print demangled function names
4882 when appropriate. Fix supplied by Peter Schauer.
4883
4884Mon Jun 15 01:45:48 1992 John Gilmore (gnu at cygnus.com)
4885
8f86a4e4
JG
4886 * sparc-tdep.c: Clean up slightly for Solaris2.
4887
1c92ca6f
FF
4888 * buildsym.c (define_symbol): Nameless types are now on several
4889 platforms; generalize them and un-ifdef them to make Solaris 2
4890 work.
4891
bcbf9559
JG
4892Sun Jun 14 10:55:51 1992 John Gilmore (gnu at cygnus.com)
4893
d69bba12
JG
4894 * infcmd.c: Fix typo (reported by Rob Savoye).
4895 * xm-sun4sol2.h (gregset_t): Thinko in register set definition.
4896 * symtab.h: Disable SYMBOL_BASEREG_VALID until it works.
4897 * dbxread.c (dbx_psymtab_to_symtab_1): Renamed from
4898 psymtab_to_symtab_1. Use current psymtab's sym_offset and symbol_size,
4899 rather than the one for the first file in the dependency chain.
4900
bcbf9559
JG
4901 * dbxread.c (end_psymtab): Only reset texthigh if it's not already
4902 set. Don't reset our own texthigh, or dependency-only pst's, in
4903 scanning all the rest of the psymtabs.
4904 (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF.
4905
4906 * buildsym.h (N_UNDF): Improve comments.
4907 (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
4908
252f6c65
FF
4909Sat Jun 13 11:16:45 1992 Fred Fish (fnf at cygnus.com)
4910
4911 * symtab.h (struct symbol): Add aux_value union for preserving
4912 an additional per-symbol value.
4913 * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines.
4914 * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition.
4915 * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid.
4916 * printcmd.c (address_info): Use SYMBOL_BASEREG if valid.
4917 * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
4918
a6b46ad4
MT
4919Sat Jun 13 09:18:46 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
4920
4921 * symfile.c (clear_symtab_users_once): Now non-static (for
4922 objfiles.c).
4923
bf2e5f6b
JG
4924Fri Jun 12 18:54:40 1992 John Gilmore (gnu at cygnus.com)
4925
346168a2
JG
4926 * arm-pinsn.c, i960-pinsn.c, m68k-pinsn.c, mips-pinsn.c,
4927 ns32k-pinsn.c, pyr-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c,
4928 vax-pinsn.c: Remove reg_names decl (now in defs.h).
4929
4930 Solaris-2 support on SPARC:
4931
4932 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
4933 Add symbol_size and file offsets to struct symloc.
4934 Add static symbol_table_offset, string_table_offset,
4935 file_string_table_offset, next_file_string_table_offset,
4936 last_function_name.
4937 (add_old_header_file): Convert error() to complain()t.
4938 (dbx_symfile_read): Get symbol size via the objfile.
4939 Also get symbol_table_offset.
4940 (dbx_symfile_init): Record symbol size and count via the objfile.
4941 (dbx_next_symbol_text): Always add file_string_table_offset when
4942 accessing string table.
4943 (read_dbx_symtab): Initialize file_string_table_offset to 0.
4944 (SET_NAMESTRING): Use the offset.
4945 (end_psymtab): Large kludge to determine addresses where source
4946 files start and end (for the psymtab header).
4947 (psymtab_to_symtab_1): Set file_string_table_offset before reading.
4948 Get this, symbol size, and symbol offset, from psymtab.
4949 (read_ofile_symtab): Don't back up one symbol for Solaris2.
4950 Patch up last_source_start_addr if zero in N_SO.
4951 (process_one_symbol): Add variable function_start_offset.
4952 ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
4953 BLOCK_ADDRESS_FUNCTION_RELATIVE.
4954 ( "", N_OBJ, N_OPT): Ignore.
4955 (elfstab_build_psymtabs): New function to read stabs out of
4956 an ELF file.
4957
4958 * Makefile.in: Accept $(BISON) even though we really want $(YACC).
4959 (gdb): use GLOBAL_CFLAGS when linking, too.
4960 * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
4961 (N_OBJ, N_OPT): Ignore.
4962 ('f', 'F'): Save last function name.
4963
4964 * elfread.c (record_minimal_symbol_and_info): Kludged to put
4965 extra info in the minimal symbol.
4966 (elf_symtab_read): The extra info is the size of an ELF object,
4967 which was kludged to us in the `udata' field of the BFD symbol.
4968 Gag me with a crowbar...
4969 (elf_symfile_read): Keep track of both the absolute load address,
4970 and the offset between load addr and symbols. Handle STABS as
4971 well as DWARF sections, passing the absolute load address to
4972 elfstab_build_psymtabs.
4973
4974 * symfile.h: Prototype elfstab_build_psymtabs.
4975 * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
4976
4977 * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
4978
93297ea0
JG
4979 * buildsym.h: Add processing_acc_compilation flag.
4980 * buildsym.c (read_sun_builtin_type, read_sun_floating_type): New.
4981 (define_symbol): Skip arg types in function entries. Resolve
4982 overloaded 'P' which acc uses for prototypes of functions called
4983 by this file.
4984 (read_type: 'b', 'r'): Handle Solaris2 builtin types.
4985
4986 * minsyms.c (prim_record_minimal_symbol_and_info): Hack to
4987 save size of ELF symbols. FIXME.
4988 * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2.
4989 * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines.
4990
bf2e5f6b 4991 * configure.in: Solaris config is sparc-sun-solaris2.
93297ea0 4992 * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
bf2e5f6b 4993
346168a2
JG
4994 * objfiles.c (free_objfile): Eliminate storage leaks. Contributed
4995 by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
4996 * symfile.c (symfile_bfd_open): Comment where name is freed.
4997 * symmisc.c (extend_psymbol_list): Comment where list is freed.
4998
252f6c65 4999Fri Jun 12 08:24:36 1992 Fred Fish (fnf at cygnus.com)
6b53bf34
FF
5000
5001 * expprint.c (print_subexp): Add missing ']'.
5002 * defs.h (reg_names): Fix declaration to match that in infcmd.c
5003 * stack.c (reg_names): Delete redundant (and inconsistent) decl.
5004 * WHATS.NEW: Point out improved C++ function name handling.
5005 * gdbtypes.c (lookup_fundamental_type): For now, use the same
5006 type names for both implicitly and explicitly signed integral
5007 types. See comment in the source code.
5008
28de880c
JG
5009Thu Jun 11 12:31:50 1992 John Gilmore (gnu at cygnus.com)
5010
5011 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
5012 * defs.h (longest_to_int): Avoid void arm of ?: in error case.
5013 * expprint.c (print_subexp): Fix printing of register names.
5014
1304f099
JG
5015Thu Jun 11 01:33:40 1992 John Gilmore (gnu at cygnus.com)
5016
5017 * inferior.h (register_valid): Declare.
e7ae70e9 5018 * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl.
1304f099
JG
5019 * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add
5020 macros for traversing the data structures in a single objfile.
5021 * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon.
5022 * tm-i960.h (REGISTER_NAMES): Cosmetic change.
5023 * infcmd.c: Lint.
5024
252f6c65 5025Tue Jun 9 17:19:45 1992 Fred Fish (fnf at cygnus.com)
36ce1b64
FF
5026
5027 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
5028 realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
5029 * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
5030 sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
5031
55488e9e
SG
5032Tue Jun 9 16:29:19 1992 Stu Grossman (grossman at cygnus.com)
5033
5034 * depend: rebuild to account for remote-st2000.c.
5035 * remote-st2000.c: Almost works now.
5036 * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
5037
d630b615
FF
5038Mon Jun 8 23:05:51 1992 Fred Fish (fnf@cygnus.com)
5039
5040 * c-exp.y (yylex): Recognize single-quoted strings that specify
5041 tokens with embedded whitespace, such as C++ demangled names.
5042 * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes.
5043 * main.c (gdb_completer_quote_characters): Add global variable.
5044 * main.c (symbol_completion_function): Total rewrite for C++
5045 demangled name handling.
5046 * main.c (skip_quoted): New function.
5047 * main.c (main): Set rl_completer_quote_characters.
5048 * symmisc.c (dump_symtab): Print source language for symtab.
5049 * symtab.c (expensive_mangler): Add prototype and function.
5050 * symtab.c (completion_list_add_symbol): Total rewrite for new
5051 C++ demangled name handling.
5052 * symtab.c (lookup_symbol): Check for demangled C++ symbol first,
5053 other changes for demangled C++ symbol handling.
5054 * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match.
5055 * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match.
5056 * symtab.c (decode_line_1): Recognize C++ demangled names on input.
5057 * symtab.c (completion_list_add_symbol): Total rewrite for new
5058 C++ demangled name handling.
5059 * symtab.c (expensive_mangler): New function.
5060 * utils.c (strcmp_iw, demangle_and_match): New functions.
5061 * xcoffread.c (aixcoff_symfile_read): Fix prototype.
5062
d9915ebc
JG
5063Mon Jun 8 21:59:08 1992 John Gilmore (gnu at cygnus.com)
5064
5065 * Makefile.in: Roll VERSION to 4.5.4.
5066 * Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS
5067 to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
5068 * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
5069
88cc9a36
SG
5070Mon Jun 8 14:17:42 1992 Stu Grossman (grossman at cygnus.com)
5071
55488e9e
SG
5072 * alldeps.mak: Rebuild to account for new files.
5073 * config/st2000.mt: Use tm-st2000.h, not tm-68k.h.
5074 * tm-st2000.h: New file.
88cc9a36
SG
5075 * configure.in: Tandem debug monitor (st2000) support.
5076 * remote-st2000.c, config/st2000.mt: ditto.
5077
6f8db23a
JG
5078Fri Jun 5 11:51:01 1992 John Gilmore (gnu at cygnus.com)
5079
5080 * blockframe.c (inside_entry_file, inside_main_func,
5081 inside_entry_func): Return 0 if no symbols; avoid crashing.
5082
5083Wed Jun 3 17:48:04 1992 John Gilmore (gnu@cygnus.com)
2795260c
JG
5084
5085 * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
5086 without masking, since it is signed and will later be compared
5087 against signed quantities. The right fix is probably to make
5088 it all unsigned, but this is a small, safe fix for this release.
5089 FIXME -- make the real change sometime soon.
5090
a748555b
MT
5091Mon Jun 1 16:16:12 1992 Michael Tiemann (tiemann@cygnus.com)
5092
fb44a8f5
MT
5093 * remote-vx.c (vx_load_command,add_symbol_stub): Default READNOW
5094 parameter in call to `symbol_file_add' to 0.
5095
a748555b
MT
5096 * xm-sun4os4.h (MALLOC_INCOMPATIBLE): Define it.
5097
5098Sun May 31 06:38:27 1992 Michael Tiemann (tiemann@cygnus.com)
5099
5100 * configure.in: Handle -m680[01234]0-wrs.
5101
48079d66
MT
5102Fri May 29 22:16:02 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
5103
5104 * m68k-pinsn.c (print_insn_arg): Pass &EXT_FORMAT_68881 to
5105 `ieee_extended_to_double'.
5106
cb614788
JG
5107Wed May 27 09:27:57 1992 John Gilmore (gnu at cygnus.com)
5108
5109 * valops.c (value_assign): Lint, by Pierre Willard.
5110
6ad6ef42
JG
5111Tue May 19 19:38:10 1992 John Gilmore (gnu at cygnus.com)
5112
cb614788
JG
5113 * coredep.c (fetch_core_registers): Remove premature warning,
5114 which triggers on DECstation even though all regs are accessible.
5115
5116 * m68k-pinsn.c (print_insn_arg): Use new macros to get
5117 sign-extension of instruction fields even on unsigned-char hosts.
5118 Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
6ad6ef42 5119
cb614788 5120 88K changes inspired by Ted Lemon (uunet!lupine!mellon):
6ad6ef42
JG
5121 * tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros,
5122 since they define the target, not the host.
5123 * m88k-pinsn.c: Fix typo.
5124
5125Thu May 14 01:16:48 1992 John Gilmore (gnu at cygnus.com)
5126
5127 * valarith.c (value_zerop): -0.0 is still zero.
5128 * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
5129 Patches by Paul Eggert <eggert@twinsun.com>.
5130
5131Mon May 18 13:53:51 1992 Stu Grossman (grossman at cygnus.com)
5132
5133 * alldeps.mak, depend: re-make to account for ser-*.c.
5134
6c316cfd
FF
5135Sun May 17 16:51:20 1992 Fred Fish (fnf@cygnus.com)
5136
5137 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
5138 disconnecting from controlling terminal, to avoid gdb hanging
5139 on SVR4. Fixes bug reported by Oliver Okrongli.
5140 * procfs.c (PROC_NAME_FMT): Change format to match default used
5141 by system, as suggested by Oliver Okrongli.
5142 * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses
5143 bug fix from Brent Townshend (bst%tt@cam.ORG).
5144 * c-exp.y (nonempty_typelist): Fix memory overrun bug reported
5145 by turlais@rechser.total.fr.
5146 * dwarfread.c (decode_subscr_data): Fix bug in calculation of
5147 length of non-zero lowerbound arrays. Bug fix from Peggy Fieland.
5148 * objfiles.h (unlink_objfile): Add prototype.
5149 * objfiles.c (unlink_objfile): Add function.
5150 * objfiles.c (free_objfile): Call unlink_objfile.
5151 * objfiles.c (allocate_objfile): Call unlink_objfile on newly
5152 remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com.
5153 Also, discard old possibly bogus sf struct.
5154 * symfile.c (symbol_file_add): Call init_entry_point_info() and
5155 find_sym_fns() for remapped symbol files, in case of any changes
5156 since the last mapping.
5157
5158Wed May 13 18:28:20 1992 Steve Chamberlain (sac@thepub.cygnus.com)
5159
5160 * findvar.c (read_relative_register_raw_bytes): use the raw size
5161 of a register to bcopy, rather than the host's sizeof(CORE_ADDR).
5162
ae0ea72e 5163Tue May 12 17:44:39 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6ad6ef42 5164
ae0ea72e
SC
5165 Changes to support GDB running on DOS using GO32 and H8 support
5166
5167 * defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
5168 allowing hosts with different text and binary file formats to
5169 work.
5170 * coffread.c (read_coff_symtab): changed calling convention and
5171 operation - now it opens its own file with FOPEN_RB rather than
5172 duping and fdopening the provided handle.
5173 * dbxread.c, cplus-dem.c: #include mangling.
5174 * exec.c: If O_BINARY isn't defined, set it to 0, call openp for
5175 binary files oring in the right bit.
5176 * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
5177 * remote-hms.c: cleanup to use the new remote serial stuff
5178 * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
5179 independent remote terminal I/O.
5180 * remote.c: if DONT_USE_REMOTE not defined, then don't use it.
5181 * source.c (openp): fix off by one problem removing / - can now
5182 open a source file in the root directory with DOS.
5183 * values.c (value_as_pointer): remove bogus address bits from
5184 long. (unpack_long): unpack into unsigned long/short if pointer.
5185
0defac02
SG
5186Tue May 12 14:15:48 1992 Stu Grossman (grossman at cygnus.com)
5187
84c8f62d
SG
5188 * infrun.c (child_attach): Don't allow gdb to attach to itself.
5189 It gets permanently stuck in many OSes.
bcf2e6ab
SG
5190 * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs
5191 to printf_filtered.
70d47e66 5192 * breakpoint.c: Improve help text for info breakpoints.
0defac02
SG
5193
5194Mon May 11 14:17:18 1992 John Gilmore (gnu at cygnus.com)
5195
5196 * README: Add pointer to internals doc, and describe reading
5197 info files.
5198 * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard.
5199 * symtab.c (output_source_filename): Remove old glop for wrapping
5200 lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com).
5201
5202Thu May 7 11:45:03 1992 John Gilmore (gnu at cygnus.com)
5203
5204 * Makefile.in: version.c should depend on Makefile, not Makefile.in.
5205 * munch: Add sort -u to avoid duplications.
5206 * symtab.c (lookup_symbol): Improve Stu's fix of 22 April.
5207 Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
5208
7fd31a84
FF
5209Mon May 11 13:27:46 1992 Fred Fish (fnf@cygnus.com)
5210
5211 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
5212 avoid infinite loops while demangling bogus mangled names.
5213 * valprint.c (type_print_base): Minor fix for GNU style guide
5214 conformance.
5215
f9b5584c
FF
5216Sat May 9 18:02:17 1992 Fred Fish (fnf at fishpond)
5217
5218 * Makefile.in (VERSION): Bump to 4.5.3
5219 * Makefile.in (DEMANGLE_OPTS): Remove obsolete -Dnounderscore
5220 * Makefile.in (demangle): New target to create standalone
5221 demangler with same code and options as internal demangler.
5222 * cplus-dem.c: Massive restructuring, rewriting, cleanups, etc
5223 to support ARM style and Lucid style demangling, improve
5224 maintainability, fix several demangling bugs. More changes
5225 to follow.
5226 * defs.h (strstr): Add ANSI compatible prototype.
5227 * valprint.c (type_print_1): Demangle using ansi option.
5228 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore.
5229
1e939db1
SG
5230Sat May 9 14:47:28 1992 Stu Grossman (grossman at cygnus.com)
5231
5232 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
5233 first two sections.
5234
d5e88583
PB
5235Fri May 8 11:42:15 1992 Per Bothner (bothner@rtl.cygnus.com)
5236
5237 * mipsread.c (parse_procedure): Return rather than using
5238 uninitialized variable 'b'.
5239
e7ae70e9
SG
5240Fri May 8 07:48:27 1992 Stu Grossman (grossman at cygnus.com)
5241
5242 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
5243 29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
5244 Remove -I29k-share, -Ivx-share from Makefile.in. Make #includes
5245 relative to each source file.
5246
0defac02
SG
5247Fri May 8 07:48:27 1992 K. Richard Pixley (rich@cygnus.com)
5248
9b98dea2 5249 * Makefile.in: propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on
0defac02 5250 recursions.
9b98dea2
RP
5251
5252Thu May 7 10:00:52 1992 Stu Grossman (grossman at cygnus.com)
5253
5254 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
5255 * am29k-tdep.c: Update to latest code from AMD.
5256 (get_saved_register) don't crap out if no frame.
e7ae70e9
SG
5257 * remote-udi.c: Set/clear inferior_pid as appropriate.
5258 (udi_open) call target_preopen, don't close fd 0!!!, clean up
5259 error handling. Fixup end-of-debugging messages.
5260 (udi_fetch_registers) clean up big time, mainly don't multiply
5261 register_valid indices by 4, and use proper Offset when reading
5262 gr96-gr127. (udi_store_registers) general cleanup.
5263 (fetch_register) cleanup, simplify. (regnum_to_srnum)
5264 INT_REGNUM->INTE_REGNUM.
9b98dea2 5265 * tm-29k.h: Upgrade to latest code from AMD.
e7ae70e9
SG
5266 * 29k-share/udi/udip2soc.c: Get rid of useless errmsg_m macro.
5267 (UDIConnect) Clean up error processing (like, don't do exit() if
5268 execlp fails), make code restartable, make more attractive.
5269 (UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
5270 otherwise.
9b98dea2 5271
ba2c9027
PB
5272Wed May 6 14:34:18 1992 Per Bothner (bothner@rtl.cygnus.com)
5273
5274 * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
5275 * xm-rs6000.h, tm-rs6000.h: Move re-definition of CPLUS_MARKER
5276 from former to latter.
5277
55b3ef9a
FF
5278Wed May 6 14:12:35 1992 Fred Fish (fnf@cygnus.com)
5279
5280 * cplus-dem.c (do_args): Handle void args the same as others.
5281 * objfiles.c (free_objfile): Only try to unmap files when
5282 reusable objfiles are supported.
5283 * valprint.c (type_print_varspec_suffix): Add parameter that
5284 specifies if C++ demangling included function arguments. Use
5285 it to suppress printing extra pair of ()'s.
5286 * valprint.c (type_print_1): Fix problem with printing demangled
5287 C++ function types where demangled type includes the function
5288 args.
5289
8f793aa5
FF
5290Tue May 5 11:10:27 1992 Fred Fish (fnf@cygnus.com)
5291
5292 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
5293 Allows selection of C++ demangler to be a configuration option
5294 until multiple demanglers are supported.
5295 * demangle.h: New include file for extended demangler support.
5296 * breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
5297 utils.c, valprint.c: Include "demangle.h" and change all calls
5298 to cplus_demangle() or fputs_demangled() to use individual
5299 demangling options.
5300 * valprint.c (type_print_1): Change options to cplus_demangle
5301 to print demangled function args. Still broken, but now less so.
5302 * cplus-dem.c: Include demangle.h, reorganize and update some
5303 comments to reflect reality.
5304 * cplus-dem.c (cplus_demangle, cplus_mangle_opname): Change
5305 second arg from fixed integer to bit based multiple options.
5306 * cplus-dem.c (optable): Reformat and replace ansi members with
5307 bit based options.
5308 * cplus-dem.c (do_type): Fix bug with parsing missing return type.
5309
6fab5bef
JG
5310Mon May 4 22:26:59 1992 John Gilmore (gnu at cygnus.com)
5311
5312 * values.c (set_internalvar): Force evaluation of lazy values.
5313 Bug reported by RMS.
5314
4db8e515
FF
5315Sun May 3 15:47:45 1992 Fred Fish (fnf@cygnus.com)
5316
5317 * Makefile.in (VERSION): Bump to 4.5.2.
5318 * Makefile.in (DEMANGLE_OPTS): Add, default to -Dnounderscore.
5319 * configure.in: Simplify ncr3000 gdb_host logic, add gdb_target.
5320 * dwarfread.c (struct_type): Apply fix from Peggy Fieland for
5321 proper handling of bit fields.
5322 * gdbtypes.h (struct type): Clarify use of field.bitpos.
5323 * symtab.h: Fix couple of misspellings in comments.
5324 * value.h (struct value): Clarify use of bitpos.
5325 * value.h (unpack_field_as_long): Change prototype, returns
5326 LONGEST.
5327 * values.c (unpack_field_as_long): Change return type to LONGEST,
5328 sign extend unpacked fields that are signed, other rewriting.
5329 * config/ncr3000.mt: New target config file.
5330
ea1549b3
JG
5331Fri May 1 01:53:26 1992 John Gilmore (gnu at cygnus.com)
5332
fcdb113e
JG
5333 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
5334 even when printing 8-bit characters.
5335
ea1549b3
JG
5336 * gdbtypes.c (make_{reference,pointer,function}_type): New
5337 functions which handle overwriting of forward-referenced types
5338 for stabs file reading.
5339 (lookup_{reference,pointer,function}_type): These just call
5340 the make_*_type functions with a null storage alloc parameter.
5341 * gdbtypes.h (make_{reference,pointer,function}_type): Declare.
5342 * xcoffread.c (smash_to_pointer_type): Remove, no longer used.
5343
5344 * buildsym.c (dbx_lookup_type): Zero result for (-1,-1) arg.
5345 (dbx_alloc_type): Make it easier to understand. No funct change.
5346 (define_symbol: 't'): Don't put the typedef name into the name of
5347 the struct, union, or enum. Bugfix.
5348 (read_type: '*', '&', 'f'): Add comments. Use make_XXX_type
5349 routines to properly handle overwriting preallocated types so that
5350 forward references will work.
5351 (read_enum_type): Force enum values to file scope, due to bug in
5352 Sun compiler output. FIXME, fix later.
5353
5354 Remove unused header_file_prev_index mechanism. It was already
5355 obsolete in gdb-3.5. These comments appeared in 3.5:
5356 /* This code was used before I knew about the instance codes.
5357 My first hypothesis is that it is not necessary now
5358 that instance codes are handled. */
5359 * dbxread.c (add_new_header_file): Remove header_file_prev_index.
5360 * buildsym.h: Remove it and prev_index that saves it.
5361 * buildsym.c (push_subfile, pop_subfile, start_symtab): Remove it.
5362
5363 * solib.c (special_symbol_handling): When called from core files,
5364 must set up debug_addr. Don't print error messages, just return.
5365 * symmisc.c (print_symbol): Less ascii diarrhea for enums, please.
5366
f536aa39
PB
5367Wed Apr 29 15:26:51 1992 Per Bothner (bothner@rtl.cygnus.com)
5368
5369 * cplus-dem.c: Allow nested class names (as in
5370 Foo::Bar::method()).
5371 Allow the cleaner cfront style of nested class names
5372 (Q2_3Foo3Bar as well as Q23Foo3Bar).
5373 Make cplus_demangle re-entrant by removing use of global
5374 variables. Instead, place all shared variables in a
5375 stack-allocated structure, and pass around its address.
5376
72b1aa30
SG
5377Fri Apr 24 07:41:19 1992 Stu Grossman (grossman at cygnus.com)
5378
9e91f617
SG
5379 * Makefile.in (make-proto-gdb-1): 1st cut at packaging
5380 29k-share/* subdirs...
5381
e7ae70e9
SG
5382 * remote-udi.c (udi_insert/remove_breakpoint): Completely
5383 rewrite, only leave out the bugs.
5384
5385 * Makefile.in: Add 29k/UDI support. Improve depend.
5386 * alldeps.mak, configure.in, depend: Add 29k/UDI support.
5387
07df4831
SG
5388 * am29k-tdep.c: Update to use new calling conventions, and misc
5389 symbol elements.
5390
72b1aa30
SG
5391 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed.
5392
c8094777
FF
5393Thu Apr 23 18:43:17 1992 Fred Fish (fnf@cygnus.com)
5394
66a8a9b4
SG
5395 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
5396 breakpoint instructions that leave PC pointing at the right place.
5397
c8094777
FF
5398 * core.c (core_open): Call warning() to print warnings.
5399
35a25840
SG
5400Wed Apr 22 09:55:42 1992 Stu Grossman (grossman at cygnus.com)
5401
5402 * symtab.c (lookup_symbol): Need to check if msymbol->name is
5403 NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
5404 This prevents a crash when trying to lookup the value of a
5405 non-existent symbol.
5406
4ace50a5
FF
5407Wed Apr 22 09:42:15 1992 Fred Fish (fnf@cygnus.com)
5408
5409 * signame.c, signame.h: Remove, replaced by strsignal.c in
5410 libiberty.
5411 * i960-tdep.c, infrun.c, mach386-xdep.c, procfs.c, sparc-tdep.c,
5412 sun386-xdep.c: Remove include of signame.h
5413 * Makefile.in (SFILES_MAINDIR): Remove signame.c
5414 * Makefile.in (HFILES): Remove signame.h
5415 * Makefile.in (OBS): Remove signame.o
5416 * defs.h (safe_strerror, safe_strsignal, strerrno, strsigno,
5417 errno_max, signo_max, strtoerrno, strtosigno, strsignal,
5418 psignal, perror): Add prototypes.
5419 * defs.h, xm-apollo68v.h, xm-ultra3.h (SYS_SIGLIST_MISSING):
5420 Remove define.
5421 * depend: Manually remove signame.[cho] references.
5422 * convex-tdep.c (subsig_name): Replace use of sys_siglist with
5423 strsignal.
5424 * convex-xdep.c (core_file_command): Replace use of sys_siglist
5425 with safe_strsignal.
5426 * core.c (core_open): Replace use of sys_siglist with
5427 safe_strsignal.
5428 * core.c (memory_error): Replace use of sys_errlist with
5429 safe_strerror.
5430 * i960-tdep.c (print_fault): Replace use of sys_siglist with
5431 safe_strsignal.
5432 * infcmd.c (program_info): Replace use of sys_siglist with
5433 safe_strsignal.
5434 * infrun.c (signal_stop, signal_print, signal_program):
5435 Allocate dynamically based on dynamic determination of number
5436 of signals to support.
5437 * infrun.c (child_create_inferior): Replace use of sys_errlist
5438 with safe_strerror.
5439 * infrun.c (wait_for_inferior): Replace use of sys_siglist with
5440 safe_strsignal.
5441 * infrun.c (sig_print_info): Replace use of sig_abbrev with
5442 strsigno and sys_siglist with safe_strsignal.
5443 * infrun.c (handle_command): Call signo_max to find number of
5444 signals. Replace sig_number with strtosigno and sig_abbrev with
5445 strsigno.
5446 * infrun.c (signals_info): Replace sig_number with strtosigno.
5447 * infrun.c (_initialize_infrun): Call signo_max to find number of
5448 signals. Dynamically allocate signal_{stop,print,program}.
5449 * procfs.c (errno_table): Remove, now in libiberty/strerror.c.
5450 * procfs.c (errnoname): Add function and prototype.
5451 * procfs.c (info_proc_siginfo): Call errnoname, replace use
5452 of sys_siglist with safe_strsignal.
5453 * procfs.c (info_proc_stop, info_proc_signals): Replace use of
5454 sys_siglist with safe_strsignal.
5455 * procfs.c (info_proc_stop): Call errnoname.
5456 * procfs.c (signalname): Replace sig_abbrev with strsigno.
5457 * stuff.c (main, get_offset): Replace use of sys_errlist with
5458 strerror.
5459 * sun386-xdep.c (core_file_command): Replace use of sys_siglist
5460 with safe_strsignal.
5461 * umax-xdep.c (core_file_command): Replace use of sys_siglist
5462 with safe_strsignal.
5463 * utils.c (safe_strerror, safe_strsignal): Add functions that
5464 call strerror and strsignal respectively, and deal with NULL
5465 returns.
5466 * utils.c (perror_with_name, print_sys_errmsg): Replace use of
5467 sys_errlist with safe_strerror.
5468 * valprint.c (val_print): Replace use of sys_errlist with
5469 safe_strerror.
5470
6e6bf7f2
RP
5471Tue Apr 21 12:00:47 1992 K. Richard Pixley (rich@cygnus.com)
5472
5473 * Makefile.in: rework CFLAGS so that they can be set from the
5474 command line to make. CFLAGS -> INTERNAL_CFLAGS.
5475 USER_CFLAGS -> CFLAGS. Remove MINUS_G. Default CFLAGS to -g.
5476 Pass CFLAGS on recusions.
5477
5478Fri Apr 17 19:25:57 1992 Fred Fish (fnf@cygnus.com)
5479
5480 * gdbtypes.h, c-exp.y, m2-exp.y, mipsread.c, gdbtypes.c: Back
5481 out of change on 4/14/92 and remove TYPE_FLAG_FUND_TYPE. It was
5482 overkill for the problem it solved.
5483 * valprint.c (type_print_base): Remove TYPE_FLAG_FUND_TYPE test
5484 and default to simply printing type names as appropriate.
5485 * main.c (main): Remove one of the leading newlines from
5486 warning_pre_print initialization.
5487 * objfiles.c (open_existing_mapped_file): Add function and
5488 prototype.
5489 * objfiles.c (open_mapped_file): Rewrite to use new function
5490 open_existing_mapped_file.
5491
b0c8c726
JG
5492Thu Apr 16 23:50:12 1992 John Gilmore (gnu at cygnus.com)
5493
5494 * sun3-xdep.c (fetch_core_registers): Lint.
5495 * tm-sun3.h: Prototype lint.
5496 * value.h: Typo.
5497
2d6d969c
FF
5498Thu Apr 16 19:56:50 1992 Fred Fish (fnf@cygnus.com)
5499
5500 * dwarfread.c (TARGET_FT_POINTER_SIZE, TARGET_FT_LONG_SIZE):
5501 Define using TARGET_PTR_BIT and TARGET_LONG_BIT for now.
5502 * objfiles.c: Cast calls to close() with unused returns to void.
5503 * objfiles.c (allocate_objfile): Initialize objfile's mmfd, free
5504 old objfile's name before updating it.
5505 * objfiles.c (free_objfile): Major rewrite for mapped objfiles.
5506 * objfiles.h (objfile struct): Add mmfd member.
5507 * symfile.c (syms_from_objfile): Move some code to
5508 new_symfile_objfile.
5509 * symfile.c (new_symfile_objfile): Add new function, common code
5510 from syms_from_objfile.
5511 * symfile.c (symbol_file_add): Call new_symfile_objfile for both
5512 mapped and unmapped symbol files.
5513 * symfile.c (symbol_file_command): Print "No symbol file now"
5514 message, ala exec_file_command for the exec file.
5515 * symfile.h (new_symfile_objfile): Add prototype.
5516 * xcoffexec.c (map_vmap): Add call to new_symfile_objfile.
5517 * xcoffsolib.c (solib_add): Add call to new_symfile_objfile.
5518
d453b386
PB
5519Thu Apr 16 18:26:34 1992 Per Bothner (bothner@cygnus.com)
5520
5521 * rs6000-pinsn.c: New version from IBM (Metin).
5522 * m2-exp.y: Re-write string initializers ("<>" => {'<', '>'})
5523 to avoid warnings from some compilers.
5524
4a11eef2
FF
5525Tue Apr 14 22:33:55 1992 Fred Fish (fnf@cygnus.com)
5526
5527 * gdbtypes.h (FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL): Add defines.
5528 * gdbtypes.h (TYPE_FLAG_FUND_TYPE): Add define for bit in a
5529 type's flag word that marks it as a fundamental type.
5530 * c-exp.y (_initialize_c_exp): Add TYPE_FLAG_FUND_TYPE bit to
5531 flags argument for all calls to init_type().
5532 * m2-exp.y (_initialize_m2_exp): Add TYPE_FLAG_FUND_TYPE bit to
5533 flags argument for all calls to init_type(). Also remove
5534 dependency on host sizes for ints, floats, etc.
5535 * mipsread.c (_initialize_mipsread): Add TYPE_FLAG_FUND_TYPE bit to
5536 flags argument for all calls to init_type(). Also remove
5537 dependency on host sizes for ints, floats, etc.
5538 * gdbtypes.c (lookup_fundamental_type): Add TYPE_FLAG_FUND_TYPE
5539 bit to flags argument for all calls to init_type(). Add types
5540 FT_FIXED_DECIMAL and FT_FLOAT_DECIMAL.
5541 * valprint.c (unsigned_type_table, signed_type_table,
5542 float_type_table): Remove.
5543 * valprint.c (type_print_base): Test new TYPE_FLAG_FUND_TYPE
5544 bit when printing fundamental types, and print the actual name
5545 for such types, rather than inventing one. Remove code that
5546 invented fundamental type names.
5547 * valprint.c (_initialize_valprint): Remove initializations
5548 for now removed unsigned_type_table, signed_type_table, and
5549 float_type_table.
5550
35a25840
SG
5551Tue Apr 14 14:30:46 1992 Stu Grossman (grossman at cygnus.com)
5552
5553 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5554 vx-share/xdr_rdb.h: Update for new remote protocol under VxWorks
5555 5.0.2.
5556
13b5a7ff
FF
5557Mon Apr 13 20:59:21 1992 Fred Fish (fnf@cygnus.com)
5558
5559 * dwarfread.c (target_to_host): New function similar to previous
5560 swapin function.
5561 * dwarfread.c (SWAPIN, swapin): Remove macro and support function.
5562 Extensive changes to convert all previous usages to use new
5563 target_to_host() function.
5564 * dwarfread.c (struct dieinfo): Change types of most integral
5565 members to be unsigned.
5566
3bc82410
JG
5567Mon Apr 13 15:59:10 1992 John Gilmore (gnu at cygnus.com)
5568
5569 * WHATS.NEW: Revise -mapped doc.
5570
817bc7b8
JG
5571Sat Apr 11 23:14:36 1992 John Gilmore (gnu at cygnus.com)
5572
5573 * mipsread.c (parse_partial_symbols): Complain when sh->index is
5574 too high or when skipping `forwards' moves us backwards.
5575 (parse_type): Print mis-guessed tag name in complaint.
5576 (parse_external): Eliminate cur_stab and obscure top_stack clobbers.
5577 (parse_procedure): Do not attempt to create symbols; just fill in
5578 the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
5579 (psymtab_to_symtab_1): Split up `stabs' from `native ecoff' code
5580 for clarity. Set top_stack before calling parse_external. In
5581 stabs, sort symbols before calling parse_procedure.
5582 * mipsread.c: Lint.
5583 * symmisc.c (std_in, std_out, std_err): Add vars to access std
5584 FILE *'s when debugging GDB (e.g. as args to dump_symtab).
5585 * Makefile.in: Remove stage* targets. Avoid echo on recursive
5586 makes. Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
5587 exists.
5588
554d1be4
JG
5589Fri Apr 10 23:47:37 1992 John Gilmore (gnu at cygnus.com)
5590
44d835be 5591 * Makefile.in (VERSION): Set to 4.5.1.
554d1be4
JG
5592 * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
5593 * sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5594 fill_gregset): New functions for SVR4 /proc support.
44d835be
JG
5595 * mipsread.c: Cleanup. Add more complaints for unhandled cases.
5596 Remove new symbol types and such to ../include/coff/symconst.h.
5597 (parse_symbol): Simplify code for parsing struct/enum/unions.
5598 (parse_type): Handle `long long' types.
5599 (upgrade_type): Handle `const' qualifier.
5600 (parse_partial_symbols): fix indentation, clean a bit.
554d1be4 5601
6e706950
FF
5602Fri Apr 10 22:41:03 1992 Fred Fish (fnf@cygnus.com)
5603
95967e73
FF
5604 * dwarfread.c (SWAPIN,swapin): New macro and function to call to
5605 copy in data from raw read buffers, calling bfd byteswapping
5606 routines as appropriate. Use to replace most existing memcpy
5607 calls.
5608 * dwarfread.c (basicdieinfo, completedieinfo): Add objfile arg.
6e706950
FF
5609 * configure.in: Recognize new ncr3000 config.
5610 * config/ncr3000.mh: New config file.
5611
601836ef
SG
5612Fri Apr 10 08:30:58 1992 Stu Grossman (grossman at cygnus.com)
5613
6e706950
FF
5614 GDB-4.5 release!
5615
5616 * README: Update for release.
b69ce5ab
SG
5617 * Makefile.in: Update version to 4.5.
5618 * WHATS.NEW: The obvious.
5619
ece32565
SG
5620 * depend: Generate new depend file for this release.
5621
601836ef
SG
5622 * Makefile.in (depend): Fix dependancy generation so that it does
5623 not include gcc 'fixincluded' files, which are usually in a system
5624 specific location.
5625
9b6f92db
PB
5626Thu Apr 9 13:35:00 1992 Per Bothner (bothner@rtl.cygnus.com)
5627
5628 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
5629 * buildsym.c (#ifdef RS6000_TARGET): Don't create unnecessary
5630 symbols for nameless types. And, handle `R' (register parameter
5631 type) for AIX. (an extension to existing stabstring grammar).
5632 * rs6000-xdep.c: Fix typo (= should have been ==).
5633
7fe388ad
SG
5634Thu Apr 9 12:10:06 1992 Stu Grossman (grossman at cygnus.com)
5635
5636 * Makefile.in: version=4.4.88, add xm-vax.h to HFILES.
5637
9e53d9dc
JG
5638Thu Apr 9 02:29:03 1992 John Gilmore (gnu at cygnus.com)
5639
5640 * xm-sun4os5.h (DO_DEFERRED_STORES, CLEAR_DEFERRED_STORES): Zap.
5641 * signame.c (SIGWAITING, SIGLWP): Add.
5642
6fba3d7c
PB
5643Tue Apr 7 16:34:07 1992 Per Bothner (bothner@cygnus.com)
5644
56619803 5645 * xm-i386mach.h: add decls for errno and strdup().
ff1e35cb 5646
6fba3d7c
PB
5647 * breakpoint.c (breakpoint_1): Add (int) casts for enums
5648 used in array index context (otherwise, some compilers barf).
5649
628c6d3b
SG
5650Tue Apr 7 08:45:46 1992 Stu Grossman (grossman at cygnus.com)
5651
e05ba37d
SG
5652 * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
5653 Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
5654 in a system call, and provide better backtrace if so.
5655
1f415ae7 5656 * Makefile.in (HFILES): Add xcoffsolib.h.
c994feb6 5657 * rs6k-opcode.h: Move to ../include/opcode/rs6k.h.
2741887b 5658 * rs6000-pinsn.c: #include "opcode/rs6k.h"
c994feb6 5659
96c19d0f
SG
5660 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
5661 mipscoff_symfile_read): Convert to BFD to do file I/O.
5662
c1bde665
SG
5663 * symfile.c: #include <ctype.h> to get proper def if isspace().
5664
628c6d3b
SG
5665 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET.
5666
ad142b8e
PB
5667Mon Apr 6 17:25:45 1992 Per Bothner (bothner@cygnus.com)
5668
5669 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
5670 function also when parsing embedded stabs.
5671
ce9260ae
SG
5672Mon Apr 6 15:25:03 1992 Stu Grossman (grossman at cygnus.com)
5673
391ca579
SG
5674 * mipsread.c: Fix more declarations.
5675
e5578a31
SG
5676 * mipsread.c: Fix many invocations of complain. Use enum
5677 type_code where appropriate.
41bd448e 5678
995e7f86
SG
5679 * xm-vaxult.h: Add decl for strdup().
5680
ce9260ae
SG
5681 * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
5682 for xm-vax.h.
5683
b2de19e3
SG
5684Fri Apr 3 17:41:29 1992 Stu Grossman (grossman at cygnus.com)
5685
5686 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
5687 process_one_symbol.
5688
556f3d90
PB
5689Fri Apr 3 12:17:14 1992 Per Bothner (bothner@cygnus.com)
5690
5691 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
5692 * tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
5693 Merge in more patches for rs6000 from Metin Ozisik.
5694 * utils.c: Fix typo in comment.
5695
d65eee73
FF
5696Fri Apr 3 11:23:03 1992 Fred Fish (fnf@cygnus.com)
5697
5698 * procfs.c (procinfo struct): Add nopass_next_sigstop member.
5699 * procfs.c (attach): Set nopass_next_sigstop if attached
5700 process is forcibly stopped.
5701 * procfs.c (child_resume): Use nopass_next_sigstop to suppress
5702 resending SIGSTOP to attached process on first resume.
5703
239e7ee9
SG
5704Fri Apr 3 01:37:26 1992 Stu Grossman (grossman at cygnus.com)
5705
5706 * Makefile.in (SFILES_MAINDIR): add mipsread.c
5707
e10a3052
JG
5708Thu Apr 2 20:20:54 1992 John Gilmore (gnu at cygnus.com)
5709
5710 * Makefile.in (OBS): Compile mipsread.c for all targets now.
5711 (VERSION): Bump to 4.4.85.
5712 * mipsread.c: Update for new include files. Lint.
5713 * tm-irix3.h, tm-mips.h: Use new include files for ECOFF symtab.
5714 * config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
5715 Don't need to bring in mipsread.o specially any more.
5716
4ad1963e
SG
5717Thu Apr 2 19:38:31 1992 Stu Grossman (grossman at cygnus.com)
5718
5719 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
5720 routine (for Irix-4.x). Make many funcs static and void.
5721 * mips-tdep.c (mips-frame-chain): Clean up, simplify.
5722 * (init_extra_frame_info): Don't trash cached value of frame
5723 pointer register. This fixes backtracing through routines that use
5724 alloca(). Generally clean up declarations of functions, and use
5725 typedefs and macros to reference data structures as appropriate.
5726 * tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO): use proper type for
5727 proc_desc element.
5728
5c1c5e67
FF
5729Thu Apr 2 09:47:11 1992 Fred Fish (fnf@cygnus.com)
5730
5731 * values.c (unpack_long): Fix unpacking error for signed chars
5732 on hosts where the default character type is unsigned.
5733 * procfs.c (pr_flag_table, pr_why_table): Add some entries
5734 for newer SVR4 variants.
5735 * procfs.c (proc_set_exec_trap): Reorder tests for ioctl's that
5736 turn off trace inherit-on-fork flag to favor latest SVR4 method.
5737 * procfs.c (mappingflags): Add support for MA_PHYS
5738
ac88ca20
JG
5739Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
5740
03c93c66
JG
5741 * buildsym.c (read_struct_type): Avoid coredump when C++
5742 abbreviated type name is messed up. Reported by Joe Buck.
5743 FIXME, we need to determine whether GDB or GCC needs to be
5744 smarter to correctly locate this type name.
5745
ac88ca20
JG
5746 * c-exp.y, coffread.c, command.c, command.h, copying.awk,
5747 dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
5748 m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
5749 symtab.c, tm-sun4os4.h, tm-sun4os5.h, values.c: Lint.
5750 * symfile.c (add_symbol_file_command): Initialize mapped/readnow.
5751
cc221e76
FF
5752Wed Apr 1 11:39:52 1992 Fred Fish (fnf@cygnus.com)
5753
5754 * breakpoint.h (bpdisp, bptype): Remove trailing comma.
5755 * symtab.h (current_source_symtab): Make extern
5756 * symtab.h (current_source_line): Make extern
5757 * inferior.h: Move all procfs.c prototypes to one place, add
5758 prototype for proc_signal_handling_change. Add prototypes for
5759 signal_stop_state, signal_print_state, and signal_pass_state.
5760 * inferior.h (stop_soon_quietly): Make extern
5761 * inferior.h (attach_flag): Make extern
5762 * infrun.c (NOTICE_SIGNAL_HANDLING_CHANGE): Default is null.
5763 * infrun.c (signal_stop_state, signal_print_state,
5764 signal_pass_state): New functions to query specific signal
5765 handling flags.
5766 * infrun.c (handle_command): Minor error message change, add
5767 NOTICE_SIGNAL_HANDLING_CHANGE.
5768 * procfs.c (open_proc_file): Remove iris specific reset of
5769 inherit-on-fork flag, moved to proc_set_exec_trap().
5770 * procfs.c (proc_set_exec_trap): Add SVR4 and iris code
5771 to reset inherit-on-fork flag, bash comment to GNU form.
5772 * procfs.c (proc_base_address, set_proc_siginfo,
5773 fetch_core_registers): Conform to code style.
5774 * procfs.c (signame.h): Include.
5775 * procfs.c (MAX_SYSCALLS, syscall_table[], init_syscalltable(),
5776 syscallname(), info_proc_syscalls()): New macros, tables, and
5777 functions to organize and report system call information.
5778 * procfs.c (saved_fltset, saved_trace, saved_sighold,
5779 saved_exitset, saved_entryset): Add to procinfo struct.
5780 * procfs.c (struct trans): Add.
5781 * procfs.c (pr_flag_table, pr_why_table, faults_table,
5782 siginfo_table, errno_table): Tables to translate numeric values
5783 to symbolic names and short descriptions.
5784 * procfs.c (signalname, info_proc_signals): Add function and
5785 prototype.
5786 * procfs.c (proc_info): Now info_proc.
5787 * procfs.c (proc_info_address_map): Now info_proc_mappings.
5788 * procfs.c (info_proc_flags, info_proc_stop, info_proc_siginfo,
5789 info_proc_faults, lookupname, lookupdesc, sigcodename,
5790 sigcodedesc): New functions.
5791 * procfs.c (proc_signal_handling_change): New function to set
5792 the trace flags based on the state of gdb's signal handling flags.
5793 * procfs.c (inferior_proc_init): Call proc_signal_handling_change
5794 and remove code to do PIOCSTRACE ioctl.
5795 * procfs.c (attach, detach): Preserve and restore process flags
5796 using saved_* fields in procinfo struct.
5797 * procfs.c (attach): Call proc_signal_handling_change.
5798 * procfs.c (info_proc): Major rework to expand "info proc" cmd.
5799 * procfs.c (proc_desc): Update for latest changes.
5800 * xm-irix4.h (CREATE_INFERIOR_HOOK): Protect by USE_PROC_FS.
5801 * xm-irix4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
5802 * xm-sysv4.h (NOTICE_SIGNAL_HANDLING_CHANGE): Add definition.
5803
5804Tue Mar 31 18:38:28 1992 Fred Fish (fnf@cygnus.com)
5805
5806 * procfs.c (set_proc_siginfo): Add prototype and new function.
5807 * procfs.c (detach, child_resume): Call set_proc_siginfo to set
5808 up inferior siginfo struct.
5809 * elfread.c (elf_symfile_read): Compute the relocation amount
5810 by subtracting off the address of the ".text" section.
5811 * solib.c: Add pointer to ".text" section to so_list struct.
5812 * solib.c (solib_map_sections): Initialize pointer to ".text"
5813 section in so_list struct.
5814 * solib.c (symbol_add_stub): Pass base address of ".text"
5815 section to symbol_file_add, rather than the load address of
5816 the shared library. On SunOS they are the same. On SVR4 they
5817 are not.
5818
3bec9cdd
SG
5819Tue Mar 31 17:48:15 1992 Stu Grossman (grossman at cygnus.com)
5820
5821 * mipsread.c (parse_procedure): PDR.isym should get pointer to
5822 function name, not .gdbinfo. symbol.
5823
e360572c
JG
5824Tue Mar 31 17:05:04 1992 John Gilmore (gnu at cygnus.com)
5825
5826 * breakpoint.c (breakpoint_1): Fix prototype, this time for sure!
5827
fad3fc94
SG
5828Tue Mar 31 11:01:06 1992 Stu Grossman (grossman at cygnus.com)
5829
e360572c 5830 * Makefile.in (VERSION): 4.4.8
5e8fdb82 5831
fad3fc94
SG
5832 * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
5833 commands in .cshrc/.profile won't get traced.
5834
3b0b9220
JG
5835Tue Mar 31 08:11:58 1992 John Gilmore (gnu at cygnus.com)
5836
5837 * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
5838 * exec.c (build_section_table): Don't abort if no sections.
5839 * sparc-tdep.c (single_step): Lint.
5840 * utils.c (mrealloc): Handle realloc (0, size) case here.
5841
d1bb1d41
SG
5842Mon Mar 30 16:50:43 1992 Stu Grossman (grossman at cygnus.com)
5843
f8b4aa8e
SG
5844 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
5845 opposed to m[ht]-*!
5846
9d4c62df
SG
5847 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs.
5848
d1bb1d41
SG
5849 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
5850 .gdbinfo. symbols are created. Move creation from parse_procedure
5851 to parse_symbol, where it is fairly easy to grow the symtab. This
5852 also fixes a symtab trashing bug on all mips-based systems.
5853 * (got_numargs, lookup_numargs, free_numargs): Delete. Not
5854 needed anymore.
5855 * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct
5856 mips_extra_func_info, and all the PROC_xxx macros that look at it.
5857
d26b50b7
PB
5858Mon Mar 30 14:17:53 1992 Per Bothner (bothner@cygnus.com)
5859
5860 * c-exp.y: Add missing return type to yyparse() prototype.
5861
be772100
JG
5862Sat Mar 28 22:22:06 1992 John Gilmore (gnu at cygnus.com)
5863
5864 Create and use macros for iterating on symtabs, psymtabs, msymbols.
5865
5866 * minsyms.c (iterate_over_msymbols): Remove; clunky and slow.
5867 * symfile.h, symtab.h (iterate_over_msymbols): Remove prototype
5868 * coffread.c (coff_symfile_read): iterate_over_symtabs => ALL_SYMTABS.
5869 (patch_opaque_types): Avoid dummy args and result.
5870 * objfiles.c (have_partial_symbols, have_full_symbols,
5871 have_minimal_symbols): explicit iteration => ALL_OBJFILES; simplify.
5872 (iterate_over_objfiles, iterate_over_symtabs,
5873 iterate_over_psymtabs): Remove, clunky and slow.
5874 * objfiles.h: Replace iterate_over_* prototypes with ALL_SYMTABS,
5875 ALL_PSYMTABS, and ALL_MSYMBOLS macros.
5876 * symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
5877 dump_objfile): Remove dummy args and results. Move filename
5878 comparisons to callers.
5879 (printsyms_command, printpsyms_command, printmsyms_command,
5880 printobjfiles_command): iterate_over_* => ALL_*. Compare filenames.
5881 * symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
5882 lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
5883 list_symbols, make_symbol_completion_list): Replace explicit
5884 iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
5885 Eliminate Dijkstra flag crap, break out of loops with gotos.
5886 (lookup_symtab_1): Protect '/' tests from short filenames.
5887 (cplus_mangled_symbol): Move inline into lookup_symbol.
5888 * xcoffexec.c (relocate_objfile_msymbols): Remove poor hack.
5889 (relocate_minimal_symbol): Move inline to vmap_symtab.
5890 (vmap_symtab): Replace iteration with ALL_OBJFILES,
5891 iterate_over_msymbols with ALL_MSYMBOLS.
5892
5893 Misc cleanup prior to release.
5894
5895 * Makefile.in (VERSION): Roll to 4.4.7.
5896 (HFILES): Add call-cmds.h.
5897 * call-cmds.h: New header for command fns called by other files.
5898 * breakpoint.c (watchpoints_info): Remove, same as breakpoints_info.
5899 (breakpoint_1): Remove unused type arg. Change callers.
5900
5901 * dwarfread.c (dwarf_build_psymtabs): Remove mainline test.
5902 * mipsread.c (compare_symtabs, compare_psymtabs): Remove, unused.
5903 * mipsread.c: Add prototypes for all static functions.
5904
5905 * symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
5906 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
5907 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove, unused.
5908 * xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
5909 dump_blockvector, dump_block, dump_addrchass, dump_namespace,
5910 dump_symbol, dump_type, dump_linetable, dump_strtbl): Remove 2nd
5911 unused copy!
5912
5913 * buildsym.c (define_symbol): Handle global register variables
5914 (from Pierre Willard). Complain if register numbers are too large.
5915 * target.c (nomemory): Now that higher levels examine errno, give EIO.
5916 * tm-sparc.h: Don't #include <sun4/reg.h>.
5917 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc): Remove
5918 dependency on <sun4/reg.h>. Start to handle cross-byte-order.
5919
5920 * language.h: Avoid forward enum declaration.
5921 * configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
5922 config/sun4os5.mt: New host and target.
5923 * defs.h (errno): #include <errno.h> rather than assuming int.
5924 From Pierre Willard.
5925
5926 * breakpoint.c, breakpoint.h, buildsym.c, coffread.c, cplus-dem.c,
5927 dbxread.c, dwarfread.c, elfread.c, infcmd.c, infrun.c, inftarg.c,
5928 language.c, main.c, mem-break.c, mips-tdep.c, mipsread.c,
5929 partial-stab.h, remote.c, saber.suppress, symfile.c, symtab.c,
5930 valops.c, valprint.c, xcoffread.c, c-exp.y, m2-exp.y, blockframe.c,
5931 command.c, core.c, exec.c, gdbtypes.h, parse.c, printcmd.c, solib.c,
5932 sparc-xdep.c, utils.c, value.h, values.c: Lint.
5933
5934Sat Mar 28 02:43:26 1992 John Gilmore (gnu at cygnus.com)
5935
5936 * buildsym.c (read_range_type): Avoid int overflow by using unsigned.
5937 * dbxread.c (dbx_symfile_init): Remove bogus `lvalue cast'.
5938 * language.h (enum exp_opcode): Avoid forward enum def.
5939 * main.c (define_command, user_defined_command): Lint.
5940 * mem-break.c, xcoffread.c: Lint.
5941 * solib.c: Only #include <a.out.h> on SunOS, not SVR4.
5942
1eeba686
PB
5943Sun Mar 29 14:16:22 1992 Per Bothner (bothner@cygnus.com)
5944
5945 * Merged in latest RS6000 diffs from Metin G. Ozisik.
5946 * xcoffsolib.c, xcoffsolib.h: New files, from Metin.
5947 * Various files: Changed #ifdef IBM6000 to IBM6000_HOST
5948 or IBM6000_TARGET as (approximately) appropriate.
5949
bf349b77
FF
5950Sat Mar 28 13:00:10 1992 Fred Fish (fnf@cygnus.com)
5951
5952 * objfiles.h (OBJF_SYMS): Define flag bit for objfile flags.
5953 * symfile.c (symbol_file_add): Use OBJF_SYMS to decide whether
5954 or not to try reading symbols from a mapped objfile. Plugs memory
5955 leak due to shared libraries generating no psymtabs or symtabs.
5956
c2e4669f
JG
5957Fri Mar 27 15:44:55 1992 John Gilmore (gnu at cygnus.com)
5958
5959 * buildsym.c (MAX_OF_C_TYPE, MIN_OF_C_TYPE): Unused, remove.
5960 * copying.awk: Lint. Make stronger warning at top of copying.c.
5961 * elfread.c (elf_symtab_read): Eliminate check of mainline.
5962 * gdbtypes.c (smash_to_*): Remove FIXME comments.
5963 (lookup_pointer_type): Add FIXME comment.
5964 * main.c (set_history_size_command): Disallow negative size.
5965 * partial-stab.h: Update copyright.
5966 * rs6000-tdep.c (skip_trampoline_code): Better comments.
5967
5968Wed Mar 25 10:45:38 1992 John Gilmore (gnu at cygnus.com)
5969
5970 * main.c (set_history_size_command): Negative size is error.
5971 (Reported by Peggy Fieland.)
5972
3624c875
FF
5973Thu Mar 26 17:01:18 1992 Fred Fish (fnf@cygnus.com)
5974
5975 * coffread.c (coff_symfile_init): Update comment.
5976 * dbxread.c (DBX_SYMFILE_INFO, DBX_TEXT_SECT, DBX_SYMCOUNT,
5977 DBX_STRINGTAB, DBX_STRINGTAB_SIZE, DBX_SYMTAB_OFFSET): Define
5978 macros to access the dbx specific objfile information.
5979 * dbxread.c (symfile_string_table, symfile_string_table_size):
5980 Remove these local variables.
5981 * dbxread.c (read_ofile_symtab, psymtab_to_symtab_1,
5982 read_dbx_symtab): Remove the stringtab and stringtab_size params
5983 from the function prototypes, the function definition, and the
5984 function calls. These are now available via DBX_STRINGTAB and
5985 DBX_STRINGTAB_SIZE using the objfile pointer.
5986 * dbxread.c (dbx_symfile_read): Relocate addr before using as
5987 an arg to read_dbx_symtab.
5988 * dbxread.c (dbx_symfile_read): Remove code that free'd the
5989 stringtab and the dbx specific per-objfile private info.
5990 * dbxread.c (init_psymbol_list): Remove symbol count from passed
5991 args in prototype, function definition, and function calls. It is
5992 now available via the DBX_SYMCOUNT macro using the objfile
5993 pointer.
5994 * dbxread.c (dbx_symfile_read, dbx_symfile_init): Remove the
5995 local instance of struct dbx_symfile_info and replace with DBX_*
5996 macros.
5997 * dbxread.c (dbx_symfile_read): Remove init's of now deleted
5998 symfile_string_table and symfile_string_table_size.
5999 * dbxread.c (dbx_symfile_finish): Remove now obsolete free of
6000 symfile_string_table.
6001 * dbxread.c (init_psymbol_list): Use DBX_SYMCOUNT.
6002 * dbxread.c (dbx_psymtab_to_symtab): Remove local stringtab and
6003 stringtab size variables. Remove all code that used to reread
6004 the stringtab.
6005 * objfiles.c (allocate_objfile): Move calls to init_malloc()
6006 to prior to any calls to mmalloc for the objfile specific heap.
6007 * utils.c (init_malloc): Document the requirement that for each
6008 heap for which corruption checking is desired, that init_mmalloc
6009 must be called prior to any mmalloc calls on the heap.
6010
6011Thu Mar 26 13:20:06 1992 Per Bothner (bothner@cygnus.com)
6012
6013 * rs6000-pinsn.c: Make dis-assembly output more like
6014 other targets: Don't print instruction in hex before
6015 the assembly; use print_address to print out jump
6016 destinations.
6017
04f27ddc
PB
6018Wed Mar 25 16:52:35 1992 Per Bothner (bothner@cygnus.com)
6019
6020 * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
6021 * cplus-dem.c: Support "Sc" meaning "signed char".
6022
88f36033
SG
6023Wed Mar 25 15:21:44 1992 Stu Grossman (grossman at cygnus.com)
6024
6025 * configure.in: fix iris/iris3.
6026
5c71cf23
PB
6027Wed Mar 25 14:55:48 1992 Per Bothner (bothner@cygnus.com)
6028
6029 * command.c, main.c (various places): Use ctype.h macros
6030 (such as isupper(x)), instead of hard-wiring in ASCII-isms
6031 (such as (x >= 'A' && x <= 'Z')).
6032 (There are still more of these in other files.)
6033 * main.c (defined_command): Lower-case the user's
6034 new command before entering it. Needed because
6035 command lookup is case-insensitive (and also lower-cases).
6036 (Based on Metin's earlier patch.)
6037
fd2329d7
RP
6038Tue Mar 24 23:27:01 1992 K. Richard Pixley (rich@cygnus.com)
6039
6040 * config/irix4.mh: new file.
6041
4f301966
SG
6042Tue Mar 24 14:17:48 1992 Stu Grossman (grossman@cygnus.com)
6043
0a22f63e
SG
6044 * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
6045 time.
6046
6047 * xm-mips.h: Declare strdup for ultrix.
9d53db1a 6048
4f301966
SG
6049 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
6050 when calling new_symbol.
6051 * mips-tdep.c (mips_frame_chain): Use symfile_objfile instead of
6052 current_objfile.
6053
5c8d3927
PB
6054Tue Mar 24 13:26:25 1992 Per Bothner (bothner@rtl.cygnus.com)
6055
6056 * config/rs6000.mh: Update (for Fred's new mmalloc)
6057 flags to disable use of GNU malloc/mmalloc.
6058 * munch: Change SYSV rule to allow .text before the label,
6059 as well as after, to work for AIX.
6060 * gdbtypes.h: Minor clarifiction.
6061
be1384b0
MT
6062Tue Mar 24 07:26:19 1992 Michael Tiemann (tiemann@cygnus.com)
6063
6064 * buildsym.c (read_struct_type): Handle cretinous dbx symbol name
6065 continuation in yet another place (between method declarations).
6066
62a469e1
SG
6067Mon Mar 23 23:01:41 1992 Stu Grossman (grossman at cygnus.com)
6068
6069 * mips-tdep.c: include symfile.h and objfiles.h to fix
6070 compilation errors.
6071
b3024b21
PB
6072Mon Mar 23 15:49:14 1992 Per Bothner (bothner@cygnus.com)
6073
6074 * valops.c (value_struct_elt_for_reference): Added 'offset'
6075 parameter to handle multiple inheritance.
6076 * eval.c, value.h: Update accordingly.
6077
5e2e79f8
FF
6078Fri Mar 20 17:43:27 1992 Fred Fish (fnf@cygnus.com)
6079
6080 * objfiles.h: New file
6081 * Makefile.in (HFILES): Add objfiles.h
6082 * blockframe.c: Remove entry_scope_lowpc, entry_scope_highpc,
6083 main_scope_lowpc, main_scope_highpc.
6084 * blockframe.c, buildsym.c, coffread.c, dbxread.c, dwarfread.c,
6085 elfread.c, gdbtypes.h, minsyms.c, mipsread.c, objfiles.c, solib.c,
6086 source.c, symfile.c, symmisc.c, symtab.c, target.c, xcoffexec.c,
6087 xcoffread.c, : Include objfiles.h.
6088 * tm-29k.h, tm-i386v.h, tm-merlin.h, tm-rs6000.h, tm-sun386.h,
6089 tm-symmetry.h, tm-tahoe.h, tm-umax.h, tm-vax.h, m88k-tdep.c,
6090 mips-tdep.c (FRAME_CHAIN): Renamed outside_startup_file to
6091 inside_entry_file() and logic changed appropriately.
6092 * blockframe.c (outside_startup_file): Renamed to
6093 inside_entry_file() and logic changed appropriately.
6094 * blockframe.c (inside_main_scope): Renamed to inside_main_func()
6095 and logic changed to use per-objfile specific fields.
6096 * blockframe.c (inside_entry_scope): Renamed to
6097 inside_entry_func() and logic changed to use per-objfile specific
6098 fields.
6099 * blockframe.c, buildsym.h, coffread.c, dwarfread.c, mipsread.c,
6100 symfile.c, mips-tdep.c (startup_file_start, startup_file_end):
6101 Remove extern decls.
6102 * symfile.c, symfile.h (entry_point): Remove extern decl.
6103 * coffread.c (coff_symfile_init): Common entry point init code
6104 moved to symfiles.c, call init_entry_point_info().
6105 * coffread.c (complete_symtab): Use new per-objfile entry info.
6106 * mip-tdep.c (mips_frame_chain): Use new per-objfile entry info.
6107 * mipsread.c (parse_partial_symbols): Use new per-objfile entry
6108 info.
6109 * dbxread.c (read_dbx_symtab): Use new per-objfile entry info.
6110 * defs.h (inside_entry_scope, outside_startup_file,
6111 inside_main_scope): Prototypes changed for renames to
6112 inside_entry_func, inside_entry_file, inside_main_func,
6113 respectively.
6114 * symfile.c (syms_from_objfile): Common entry point init code
6115 moved to init_entry_point_info() and call init_entry_point_info().
6116 * symfile.h (init_entry_point_info): Include prototype.
6117 * xcoffread.c (aixcoff_symfile_init): Common entry point init code
6118 moved to symfiles.c and call init_entry_point_info().
6119 * dwarfread.c (entry_scope_lowpc, entry_scope_highpc,
6120 main_scope_lowpc, main_scope_highpc): Remove extern decls.
6121 * dwarfread.c (read_func_scope, read_file_scope): Use new per-
6122 objfile entry info.
6123 * frame.h (FRAME_CHAIN_VALID): Provide default definition that
6124 works for the majority of targets.
6125 * tm-68k.h, tm-convex.h, tm-h8300.h, tm-i386v.h, tm-irix3.h,
6126 tm-merlin.h, tm-mips.h, tm-pyr.h, tm-rs6000.h, tm-sparc.h,
6127 tm-sun386.h, tm-tahoe.h, tm-umax.h, tm-vax.h (FRAME_CHAIN_VALID):
6128 Use default definition in frame.h.
6129 * frame.h (selected_frame_level): Make decl extern.
6130 * objfiles.c, symfile.c (current_objfile): Moved to objfiles.c
6131 * objfiles.c, symfile.c (symfile_objfile): Moved to objfiles.c
6132 * partial-stab.h: Use new per-objfile entry info.
6133 * symfile.h (struct objfile): Removed, moved to objfiles.h.
6134 * symfile.h, objfiles.h (allocate_objfile, free_objfile,
6135 free_all_objfiles, iterate_over_objfiles, iterate_over_symtabs,
6136 iterate_over_psymtabs, have_partial_symbols, have_full_symbols,
6137 have_minimal_symbols): Prototypes moved to objfiles.h.
6138 * symfile.h, objfiles.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):
6139 Macros moved to objfiles.h.
6140 * tm-h8300.h, tm-i386v4.h (FRAME_CHAIN_VALID_ALTERNATE): Define.
6141
01be6913
PB
6142Thu Mar 19 18:49:45 1992 Per Bothner (bothner@cygnus.com)
6143
6144 More C++ improvements (pointers to members, qualified names).
6145 * c-exp.y: Support exp.type::name and exp->type::name
6146 syntaxes. (Unfortunately, doesn't work for static members.)
6147 * c-exp.y, eval.c: Make type::~type work better.
6148 * eval.c (evaluate_subexp: OP_SCOPE): Replace use of
6149 value_static_field by value_struct_elt_for_reference.
6150 * eval.c (evaluate_subexp): Merge code for STRUCTOP_MEMBER
6151 and STRUCTOP_MPTR; cast arg1 to domain-type of arg2.
6152 * eval.c (evaluate_subexp): Remove special case for UNOP_ADDR
6153 for OP_SCOPE operand; no point in it now that we use lazy
6154 reading of values, and use "reference to member" objects.
6155 * gdbtypes.h: Clarify comment.
6156 * valops.c: Change value_struct_elt_for_address to return
6157 a reference (or variable), rather than a pointer. Change
6158 the name to value_struct_elt_for_reference to reflect this.
6159 Returning a reference instead of a address provides a
6160 generalization, since we can use the routine for both
6161 class::name as well as &class::name.
6162 Also, recurse to handle multiple inheritance properly.
6163 * valprint.c: Moved code to print pointer-to-members
6164 to new function point_class_member. This allows a
6165 "reference-to-member" to be printed using the same code.
6166 * valprint.c (type_print_varspec_prefix): Avoid printing
6167 "struct " for domains of class-member types.
6168 * valops.c (search_struct_field): Inline code for simplified
6169 version of value_static_field (which can then be deleted).
6170 * value.h: Rename value_struct_elt_for_address to
6171 value_struct_elt_for_reference. Delete value_static_field.
6172 * values.c: Remove no longer used function value_static_field.
6173
80d68b1d
FF
6174Thu Mar 19 13:54:11 1992 Fred Fish (fnf@cygnus.com)
6175
6176 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
6177 elfread.c (coff_symfile_finish): Add function, prototype, and
6178 add to the xxxx_sym_fns struct for each file type. Also reformat
6179 the xxxx_sym_fns vector to a standard format and add comments.
6180 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
6181 elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
6182 Pass pointer to struct objfile rather than pointer to sym_fns.
6183 Change references inside each function accordingly. Allocate any
6184 symbol file specific info in the per-objfile memory region.
6185 * dbxread.c (free_and_init_header_files): Break function into
6186 free_header_files(), called from dbx_symfile_finish(), and
6187 init_header_files(), called from dbx_new_init().
6188 * dbxread.c (dbx_new_init): Move deallocation things to new
6189 dbx_symfile_finish function.
6190 * elfread.c (elf_new_init): Call buildsym_new_init().
6191 * objfiles.c (free_objfile): Call the appropriate symfile_finish()
6192 routine for the objfile before deallocating other stuff.
6193 * sparc-tdep.c (get_longjmp_target): Cast target_read_memory arg.
6194 * symfile.h: Move struct sym_fns to before struct objfile def.
6195 Add sym_finish function pointer and change prototypes of other
6196 function pointers to reflect passing struct objfile pointer rather
6197 than struct sym_fns pointer.
6198 * symfile.c: Remove now obsolete symtab_fns pointer.
6199 * symfile.c (symfile_init): Renamed to find_sym_fns, and now only
6200 locates the correct sym_fns struct for the given objfile.
6201 * symfile.c (syms_from_objfile, symbol_file_add): Restructured
6202 for better support of mapped symbol tables.
6203 * symfile.c (symbol_file_command): Remove obsolete code using
6204 symfile_fns.
6205 * symfile.h: Remove duplicate declarations for symfile_objfile,
6206 entry_point, and object_files.
6207 * target.c (target_info): Compare symfile_objfile to NULL.
6208 * xcoffread.c (aixcoff_new_init): Move deallocation stuff to
6209 aixcoff_symfile_finish().
6210
dc52fc71
FF
6211Wed Mar 18 18:22:46 1992 Fred Fish (fnf@cygnus.com)
6212
6213 * infrun.c (IN_SOLIB_TRAMPOLINE): Add default definition.
6214 * infrun.c (wait_for_inferior): Use IN_SOLIB_TRAMPOLINE.
6215 * tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Add SVR4 definition.
6216
2cd99985
PB
6217Wed Mar 18 15:51:15 1992 Per Bothner (bothner@cygnus.com)
6218
6219 Some improvements to g++ debugging.
6220 * symtab.c (list_symbols): demangle before pattern matching.
6221 * symtab.c: Other fixes to improve handing of operators.
6222 * valprint.c (type_print_base): Fix test for constructor.
6223 * values.c (value_static_field): Allow evaluation of
6224 CLASS::METHOD, returning a function pointer.
6225
b0246b3b
FF
6226Wed Mar 18 08:39:52 1992 Fred Fish (fnf@cygnus.com)
6227
6228 * Makefile.in (VERSION): Roll 4.4.6.
6229 * exec.c (exec_file_command): Add code to ignore optional args
6230 passed in by file_command() for use in symbol_file_command().
6231 * main.c (main): Document -mapped and -readnow in help summary.
6232 * objfiles.c (open_mapped_file): Cosmetic change, arg renamed.
6233 * objfiles.c (allocate_objfile): Filename arg removed. Changes
6234 to get filename from bfd with bfd_get_filename(). Test mapto
6235 against 0, not NULL. Use mstrsave() to make copy of filename.
6236 * remote-mm.c (mm_load): Symbol_file_add() takes an additional
6237 arg.
6238 * remote-vx.c (vx_load_command, add_symbol_stub):
6239 Symbol_file_add() takes an additional arg.
6240 * solib.c (symbol_add_stub): Symbol_file_add() takes an
6241 additional arg.
6242 * symfile.c (symfile_open): Renamed to symfile_bfd_open and
6243 changed to return a bfd not an objfile pointer.
6244 * symfile.c (syms_from_objfile): Eliminate local copy of bfd.
6245 * symfile.c (symbol_file_add): Takes an additional arg (readnow).
6246 Change to eliminate local bfd and use symfile_bfd_open() plus
6247 allocate_objfile(). Add code to implement readnow option.
6248 * symfile.c (symbol_file_command): Changes to option handling,
6249 readnow functionality moved to symbol_file_add().
6250 * symfile.c (symfile_init): Eliminate local copy of bfd.
6251 * symfile.c (add_symbol_file_command): Changes to parse mapped
6252 and readnow options.
6253 * symfile.h (allocate_objfile): Arg removed from prototype.
6254 * symtab.h (symbol_file_add): Arg added to prototype.
6255 * xcoffexec.c (map_vmap): Allocate_objfile() takes an additional
6256 arg.
6257
318bf84f
FF
6258Sat Mar 14 16:38:47 1992 Fred Fish (fnf@cygnus.com)
6259
6260 * gmalloc.c, gmalloc.h mcheck.c mmap-alloc.c mmap-sbrk.c mtrace.c,
5a4470de 6261 mtrace.awk, state.c, state.h: Removed.
318bf84f
FF
6262 * .gdbinit: Add ../malloc, ../libiberty, and ../bfd to list of
6263 directories searched for source files.
6264 * Makefile.in (GNU_MALLOC, MALLOC_CFLAGS, MALLOCSRC): Removed
6265 * Makefile.in (MMALLOC_DIR, MMALLOC_DEP, MMALLOC_LIB,
6266 MMALLOC_DISABLE, MMALLOC_CHECK, MMALLOC_CFLAGS): Add
6267 * Makefile.in (CFLAGS): Replace MALLOC_CFLAGS with MMALLOC_CFLAGS.
6268 * Makefile.in (CLIBS, CDEPS): Add MMALLOC_LIB
6269 * Makefile.in (ADD_FILES, ADD_DEPS): Remove GNU_MALLOC.
6270 * Makefile.in (SFILES_MAINDIR): Remove stat.c mmap-alloc.c, mmap-
6271 sbrk.c
6272 * Makefile.in (HFILES): Remove state.h
6273 * Makefile.in (POSSLIBS_MAINDIR): Remove MALLOCSRC.
6274 * Makefile.in (OBS): Remove state.o mmap-alloc.o mmap-sbrk.o
6275 * Makefile.in (saber_gdb): Remove mcheck, mtrace. Add MMALLOC_DIR.
6276 * Makefile.in (clean): Remove all object files.
6277 * c-exp.y: Define malloc to xmalloc and realloc to xrealloc.
6278 * cplus-dem.c: Remove prototypes definitions that are now done in
6279 def.h.
6280 * dbxread.c (throughout): Change from using per-objfile
6281 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6282 * defs.h: Remove prototypes for mmap_* functions. Add prototypes
6283 for xmmalloc, xmrealloc, mfree, mmcheck, mmtrace, mmalloc_attach,
6284 mmalloc_detach, mmalloc_setkey, msavestring, and mstrsave, nomem.
6285 * depend: Remove dependencies for state.o, state.h.
6286 * dwarfread.c: Add declaration for warning_pre_print.
6287 * dwarfread.c (dwarfwarn): Use warning_pre_print.
6288 * dwarfread.c (throughout): Change from using per-objfile
6289 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6290 * gdbtypes.c (lookup_fundamental_type): Fix init_type calls to
6291 use supplied objfile.
6292 * i386-xdep.c (print_387_status): Change to use warning() rather
6293 than printfs.
6294 * i387-tdep.c (print_387_control_word): Change to use warning()
6295 rather than printfs.
6296 * infrun.c (wait_for_inferior): Remove unreachable abort() call
6297 that some compilers grumble about.
6298 * language.c (throughout): Add declaration for warning_pre_print
6299 and using warning() instead of printfs.
6300 * m2-exp.y: Define malloc to xmalloc and realloc to xrealloc.
6301 * main.c (main): Add declaration for warning_pre_print and set it
6302 similarly to error_pre_print. Add declarations for
6303 mapped_symbol_files and readnow_symbol_files. Add appropriate
6304 definitions to long_options[].
6305 * minsyms.c: Trivial fix to comment.
6306 * objfiles.c (allocate_objfile): Substantially rewritten for
6307 using mapped symbol files.
6308 * objfiles.c (throughout): Change from using per-objfile
6309 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6310 * objfiles.c (open_mapped_file, mapped_to_address): Add functions.
6311 * source.c (throughout): Change from using per-objfile
6312 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6313 * source.c (open_source_file): Use mstrsave to save file name in
6314 mapped symbol region for objfile.
6315 * symfile.c: Remove include for state.h.
6316 include to local form.
6317 * symfile.c (symbol_file_add_digested): Remove.
6318 * symfile.c (symbol_file_add): Substantially rewritten for mapped
6319 symbol files.
6320 * symfile.h: Remove malloc/xrealloc/xmalloc/xrealloc/free members
6321 from objfile structure. Add malloc descriptor pointer (md).
6322 * symfile.h (OBJF_DUMPABLE): Changed name to OBJF_MAPPED.
6323 * symm-xdep.c (print_fpu_status): Use warning() rather than
6324 printfs.
6325 * symmisc.c (free_symtab_block): Now takes and uses current
6326 objfile pointer.
6327 * symmisc.c (throughout): Change from using per-objfile
6328 xmalloc/xrealloc/free functions to xmmalloc/xmrealloc/mfree.
6329 * symtab.c (cplus_mangled_symbol): Cast return value to avoid
6330 Sun compiler grumblings when PTR is char *.
6331 * symtab.c (lookup_symbol): Cast return value of iterate_over_
6332 msymbols() to correct pointer type.
6333 * utils.c (warning_pre_print): Initialize to "\nwarning: ".
6334 * utils.c (fatal, fatal_dump_core): Ensure that the fatal
6335 error always starts on a line of it's own.
6336 * utils.c (init_malloc, malloc_botch, xmalloc, xrealloc):
6337 Rewrite for new mapped malloc package use.
6338 * utils.c (mmalloc, mrealloc, mfree): Stubs for configurations
6339 that don't want to use the mapped malloc package; pass arguments
6340 on to traditional malloc package functions.
6341 * utils.c (nomem): Add for fatal virtual memory exhausted aborts.
6342 * utils.c (xmmalloc, xmrealloc, xmalloc, xrealloc): Like mmalloc,
6343 mrealloc, malloc, and realloc but get fatal error if runs out
6344 of memory.
6345 * utils.c (msavestring, mstrsave): Save a string in a specific
6346 mapped malloc region.
6347 * utils.c (print_spaces): Use xmalloc to get the buffer.
6348 * xm-amix.h, xm-i386v4.h, xm-sun3os4.h, xm-sun4os4.h: Add defines
6349 for MMAP_BASE_ADDRESS and MMAP_INCREMENT.
6350 * config/i386v4.mh: Insignificant reorganization.
6351
0750528a
FF
6352Sat Mar 14 11:44:47 1992 Fred Fish (fnf@cygnus.com)
6353
6354 * xcoffread.c: Only enable compilation of debugging functions
6355 if IBM6000 is defined. Fails to compile otherwise.
6356
4db3902a
RP
6357Fri Mar 13 15:51:11 1992 K. Richard Pixley (rich@cygnus.com)
6358
6359 * Makefile.in: pass MAKEINFO down on info.
6360
bec9fad9
JG
6361Fri Mar 13 12:56:36 1992 John Gilmore (gnu at cygnus.com)
6362
6363 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
6364 useless code, including an lseek to an uninitialized variable.
6365 Reported by Jim Williams <jimbo@wrs.com>.
6366
6730b139
PB
6367Thu Mar 12 11:56:46 1992 Per Bothner (bothner@cygnus.com)
6368
4db3902a
RP
6369 Merged in patches from metin@ibmpa.awdpa.ibm.com (Metin G.
6370 Ozisik) (dated Fri, 6 Mar 92 17:51) for the rs6000.
6371 * minsyms.c, symfile.c: Changes that may be generally
6372 applicable, but are #ifdef IBM6000 for now.
6373 * rs6000-xdep.c: Fixed typo in comment.
6374 * rs6000-tdep.c: Non-substatial changes.
6375 * xoffread.c: The main change here is addition of some
6376 debugging functions.
6377 * xoffexec.c: More changes.
6378
6379 * xcoffread.c: Fixed two too-few-parameters bugs.
6380
6730b139
PB
6381 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
6382 to SOLIB_CREATE_INFERIOR_HOOK macro.
6383
a846ac55
FF
6384Sun Mar 8 21:17:48 1992 Fred Fish (fnf@cygnus.com)
6385
6386 * symfile.h: Add prototype for iterate_over_msymbols().
6387 * symtab.c (cplus_mangled_symbol): Add function.
6388 * symtab.c (lookup_symbol): Call cplus_mangled_symbol via
6389 iterate_over_msymbols to find demangled C++ symbol.
6390 * xcoffexec.c (relocate_minimal_symbol): Return meaningful
6391 value to iterate_over_msymbols().
6392 * xcoffexec.c (vmap_symtab): Ignore return from iterate_over_
6393 msymbols().
6394
6395Fri Mar 6 21:59:34 1992 K. Richard Pixley (rich@cygnus.com)
6396
6397 * Makefile.in: added check target.
6398
a1106a1e
JG
6399Thu Mar 5 23:56:01 1992 John Gilmore (gnu at cygnus.com)
6400
6401 * ecoff.c: Move to ../bfd/coff-msym.c.
6402 * config/mt-*mips: Remove ecoff.o from the configuration.
53ccaf5f
JG
6403 * remote.c (): Add newline to initial +.
6404 (remote_resume): Mention how to cope with signals.
6405 (remote_interrupt): Add debug msg.
6406 (remote-wait): Implement new 'T' reply, which includes
6407 status, PC, and FP all in a single short message.
6408 (putpkt): Add further debugging of packet acks.
6409 * mipsread.c (fixup_symtab): Also swap RFD's.
6410 (parse_partial_symbols): Avoid bug on unknown symbol types.
b67cb9d5 6411 * Makefile.in (VERSION): Roll to 4.4.5.
a846ac55
FF
6412 * mips-tdep.c (heuristic_proc_start): Avoid long delays
6413 for remote MIPS by limiting heuristic to 200 byte search.
6414 (heuristic_proc_desc): Byte-swapping.
6415 (mips_print_register): Cope with failure of
6416 read_relative_register_raw_bytes. Byte-swap integers for
6417 printing.
6418 * mips-pinsn.c (print_insn): Byte-swap instruction.
a1106a1e 6419
1170a046
SG
6420Thu Mar 5 12:32:09 1992 Stu Grossman (grossman at cygnus.com)
6421
89f1a7df
SG
6422 * config.sub configure.in config/mh-irix4
6423 gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
1170a046 6424 gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
89f1a7df 6425 gdb/xm-irix4.h gdb/config/mt-irix3
1170a046
SG
6426 gdb/config/mh-irix4 texinfo/configure.in: Port to SGI Irix-4.x.
6427
d7eddc51
FF
6428Wed Mar 4 11:56:42 1992 Fred Fish (fnf@cygnus.com)
6429
6430 * defs.h, utils.c: xrealloc takes PTR as first arg.
6431 * defs.h: Reword confusing comment about ANSI prototypes.
6432 * defs.h: Some minor whitespace changes.
6433 * infrun.c (wait_for_inferior): Compare int tmp to int 0,
6434 not NULL, which can be (void *).
6435 * tm-amix.h, tm-i386v4.h: Add defines for setjmp/longjmp handling.
6436 * tm-i386v.h (SP_ARG0): Define
6437 * xm-sysv4.h: Back out of change for missing prototypes.
6438 * i386-tdep.c (get_longjmp_target): Add function.
6439
a846ac55
FF
6440Wed Mar 4 05:46:11 1992 K. Richard Pixley (rich@rtl.cygnus.com)
6441
6442 * Makefile.in: install man page too.
6443
d747e0af
MT
6444Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
6445
6446 * All GDB files that #include defs.h: Removed stdio.h.
6447 (defs.h): #include stdio.h.
6448
96743d3c
SC
6449Mon Mar 2 23:00:12 1992 Steve Chamberlain (sac@thepub.cygnus.com)
6450
6451 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
6452 a ptype to reflect the setting of TARGET_PTR_BIT. Set the
6453 TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
6454 * tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
6455 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
6456 it before printing out the hex shape of an address.
6457
6c6afbb9
PB
6458Sun Mar 1 17:41:09 1992 Per Bothner (bothner@cygnus.com)
6459
bff1c97a
FF
6460 * rs6000-xdep.c (frame_initial_stack_address): Move
6461 code to set frame->cache_fsr into new separate function
6462 frame_get_cacahe_fsr. This allows fixing a fatal error.
6463 * xcoffexec.c: Turn previously suppressed error
6464 message back on, after cleaning up BFD.
6465
6c6afbb9
PB
6466 * breakpoint.c (breakpoint_re_set): Removed (at least for now)
6467 printing of blank line, since it cases printing of an
6468 extra blank line. Is this intended? It does mess up
6469 gdb test suite.
6470 * defs.h: Put back declarations of malloc and realloc,
6471 but protected by #ifndef MALLOC_INCOMPATIBLE.
6472 * objfiles.c: Undo previous change: Use malloc/realloc
6473 for objfile malloc/realloc fields (but add a cast).
6474 * xcoffexec.c: Suppress an error message (for now).
6475
6476Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
6477
6478 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6479 [Mail dated Fri, 21 Feb 92 13:14:54 -0800]
6480 * buildsym.c: Use smash_to_pointer_type() to handle forward type
6481 references.
6482 * xcoffread.c: Modifications to C_DECL storage class handling, and
6483 introduction of an old smash_to_pointer_type() routine.
6484
6485 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6486 [Mail dated Thu, 20 Feb 92 13:57:16 -0800]
6487 * rs6000-xdep.c, rs6000-tdep.c, tm-rs6000.h: function_frame_info()
6488 parameters have been modified.
6489
6490 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6491 [Mail dated Thu, 20 Feb 92 10:10:05 -0800]
6492 * rs6000-tdep.c: Before Feb 5 92, register_valid[] array was not used,
6493 and fetch_inferior_registers() always fetched all the registers
6494 resulting valid register values at hand all the time. Pushing a dummy
6495 frame did not require validating all register values first. After
6496 putting the above mechanism into action, we didn't have valid registers
6497 values always ready. Thus, all registers need to be fetched before
6498 pushing a dummy frame now.
6499
6500 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6501 [Mail dated Thu, 13 Feb 92 16:22:44 -0800]
6502 * rs6000-xdep.c: frame_initial_stack_address() function to calculate
6503 the starting address (actual frame address) of a frame.
6504 * rs6000-tdep.c: modifications to function_frame_info() to see if
6505 function reserves a frame pointer register (alloca register)
6506 * tm-rs6000.h: EXTRA_FRAME_INFO, FRAME_ARGS_ADDRESS and
6507 FRAME_LOCALS_ADDRESS has been updated to support debugging of
6508 functions with alloca() calls.
6509
4b8333de
FF
6510Sun Mar 1 13:13:39 1992 Fred Fish (fnf@cygnus.com)
6511
6512 * xm-sysv4.h: Provide definitions/prototypes for host environment
6513 functions for which no definitions or prototypes are provided in
6514 any currently included gdb or host environment header files.
6515 For SVR4, this currently includes malloc and realloc, which cannot
6516 be portably prototyped in any gdb include file.
6517
6518Sat Feb 29 14:43:02 1992 Per Bothner (bothner@cygnus.com)
6519
6520 * buildsym.h: Remove obsolete variable file_stabs.
6521
6522 * Makefile.in: Move place where configure merges in host-
6523 and target-dependent fragments later, so the latter
6524 can override (say) GNU_MALLOC.
6525 * config/mh-rs6000: Use system malloc. Otherwise, I
6526 ended up with *two* incompatible versions of malloc
6527 (functions in libc would call the malloc in libc).
6528 I assume this is a shared library problem.
6529
6530 * remote.c: Fix (presumed) typo.
6531 * objfiles.c: Use xmalloc/xrealloc instead of
6532 malloc/realloc (since the latter are no longer declared).
6533
6534 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6535 [Mail dated Thu, 6 Feb 1992 10:22:02 -0800]
6536 * rs6000-xdep.c: Improvements to fetch_inferior_registers() to
6537 handle individual registers.
6538 * tm-rs6000.h: Fix SAVED_PC_AFTER_CALL macro to handle pc value
6539 correctly in case it wasn't cached yet. (A problem showed up
6540 after fetching individual registers.)
6541 * buildsym.c: Disable type_synonym_name's type name overwriting
6542 in cases it is unnecesary. rs6000 portation doesn't use
6543 type_synonym_name, and it used to nullify type names
6544 * xcoffread.c: to handle g++'s typename abbreviation, fill in a
6545 type's name as soon as space for that type is allocated.
6546 * xcoffread.c: ignore a section's lineno information if it is
6547 not `.text'. (In rs6000 bfd portation integration, skipping over
6548 `.pad' sections are ignored since it was in machine independent
6549 part of the code. Thus, a problem of fake sections with invalid
6550 lineno information arised.)
6551
6552 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik)
6553 [Mail dated Thu, 6 Feb 1992 13:26:22 -0800]
6554 * rs6000-tdep.c: make function_frame_info() work whether or not
6555 reading from a core file.
6556 * tm-rs6000.h: Implementation of FRAME_FIND_SAVED_REGS macro.
6557
6558 * infrun.c. main.c, printcmd.c. symtab.c:
6559 More changes from IBM for rs6000.
6560
6561
818de002
PB
6562Thu Feb 27 22:57:19 1992 Per Bothner (bothner@cygnus.com)
6563
6564 * rs6k-opcode.h, tm-rs6000.h, xm-rs6000.h, rs6000-tdep.c,
6565 rs6000-xdep.c, xcoffexec.c, xcoffread.c:
6566 Merge in changes (mostly from IBM) for RS6000.
6567 * breakpoint.c, buildsym.c, infptrace.c, stack.c, symtab.c:
6568 More changes from IBM for RS6000. These are in machine-
6569 independent code, and probably could do with some cleaning
6570 up. The most questionable of these are #ifdef IBM6000.
6571 * infrun.c, sparc-tdep.c: Pass a parameter (signal number)
6572 to single_step() (for consistency with rs6000 and i860).
6573 * utils.c: Allow the 1st arg to xrealloc to be NULL
6574 (in which case do malloc). This removes the need for
6575 some tests in xcoff code (and perhaps other places?).
6576 * coffread.c: Removed variables last_source_file,
6577 type_vector, and type_vector_length as these are now
6578 defined by buildsym.[ch].
6579 * defs.h: Remove prototypes for malloc and realloc, since
6580 these should only be used to implement xmalloc and xrealloc,
6581 and they conflict with <stdlib.h> in AIX - where they
6582 return void* even when __STDC__ isn't defined. Sigh.
6583 * munch: Recognize *initialize* in data as well as text
6584 (AIX uses data). Also, incorporate a patch from Garrett
6585 Wollman <wollman@uvm-gen.uvm.edu> to make the sed script
6586 much more sensible, by only trying to match the name of
6587 the initialize_foo function, and not the junk before it.
6588
8537ba60
SG
6589Thu Feb 27 20:07:43 1992 Stu Grossman (grossman at cygnus.com)
6590
6591 * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
6592 unless symbol table indicates that something has changed.
6593
069bc454
JG
6594Thu Feb 27 11:48:47 1992 John Gilmore (gnu at cygnus.com)
6595
b543979c
JG
6596 * remote.c: Make it work for embedded MIPS. Increase buffer
6597 size, and use throughout. Round buffer size up if too many regs.
6598 Support baud rate setting and try for an 8-bit path. If
6599 interrupted while waiting for target, send a ^C down the wire.
6600 Avoid single-byte reads.
6601 * tm-mips.h: Add more embedded-system registers to REGISTER_NAMES
6602 and NUM_REGS.
6603 * mips-xdep.h: Avoid the embedded regs when on Unix.
6604
d141f3e3
JG
6605 * mipsread.c: Byte-swap the symbol table structures, using
6606 routines from ecoff.c, to read a symbol table written in any
6607 of the four possible byte orders.
069bc454
JG
6608 * configure.in (mips-big-* target): Same as Sony News.
6609 * config/mt-bigmips, config/mt-littlemips: Add ecoff.o.
6610 * ecoff.c: New file for symbol swapping routines.
6611
80ba48f5
SG
6612Thu Feb 27 09:26:38 1992 Stu Grossman (grossman at cygnus.com)
6613
6614 * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
6615 all-breakpoints' command.
6616 * (get_number): Allow users to enter negative breakpoint numbers.
6617 * (breakpoint_1): Reformat display of 'info break' to show new
6618 fields.
6619 * (create_longjmp_breakpoint, breakpoint_re_set,
6620 breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
6621 symfile.c (syms_from_objfile): Re-do
6622 insertion of longjmp breakpoints. Move all code into
6623 breakpoint_re_set, and call that instead of
6624 create_longjmp_breakpoint in symfile.c.
6625
cba0d141
JG
6626Thu Feb 27 06:11:05 1992 John Gilmore (gnu at cygnus.com)
6627
6628 * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
6629 * breakpoint.c (breakpoint_re_set): Use ALL_BREAKPOINTS_SAFE.
6630 * symtab.c (find_pc_symtab): Handle having no objfiles.
6631 * infcmd.c: Fix comment.
6632 * objfiles.c (free_all_objfiles): Add.
6633 * symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE): Add.
6634 * symfile.c (symbol_file_command): free all objfiles when
6635 specifying a new symbol file.
6636 (reread_symbols): Stat the file name, don't fstat the descriptor.
6637
a846ac55
FF
6638Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
6639
6640 * Makefile.in, configure.in: removed traces of namesubdir,
6641 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
6642 copyrights to '92, changed some from Cygnus to FSF.
6643
cba0d141
JG
6644Tue Feb 25 19:31:19 1992 Stu Grossman (grossman at cygnus.com)
6645
6646 * dbxread.c (end_psymtab): Delete empty psymtabs.
6647 * symfile.c (allocate_psymtab): Recycle empty psymtabs.
6648 * symfile.h (struct objfile): Add free_psymtabs.
6649
35318110
JG
6650Sat Feb 22 02:00:32 1992 John Gilmore (gnu at cygnus.com)
6651
47890ed7
JG
6652 * Makefile.in (VERSION): Roll to gdb-4.4.4.
6653
35318110
JG
6654 * symfile.c (symbol_file_command): strcmp => !strcmp.
6655 * breakpoint.h: Move prototypes to follow enum definition they need.
6656 * breakpoint.c, infrun.c: Lint.
6657 * printcmd.c: Use `enum enable' rather than `enum
6658 display_status'.
6659 * mipsread.c: First pass at making it compile with the new
6660 objfile changes. Probably seriously broken still, but it
6661 compiles. FIXME.
6662
30875e1c
SG
6663Sat Feb 22 00:56:39 1992 Stu Grossman (grossman at cygnus.com)
6664
6665 * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
6666 breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
6667 mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h: Add support for
6668 stepping (and nexting) through longjmp(). Also, cleanup
6669 breakpoint handling quite a bit by creating explicit breakpoint
6670 types instead of using magic breakpoint numbers.
6671 Makefile.in: Update version to 4.4.3
6672
021959e2
JG
6673Sat Feb 22 00:08:50 1992 John Gilmore (gnu at cygnus.com)
6674
93fe4e33
JG
6675 * buildsym.c, dwarfread.c, gdbtypes.c, inflow.c, main.c,
6676 minsyms.c, printcmd.c, remote.c, saber.suppress: Saberlint.
6677 * symmisc.c, xcoffread.c: Move debug functions to symmisc.c.
6678
021959e2
JG
6679 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
6680
6681 * minsyms.c (install_minimal_symbols): Add bunches to any
6682 existing minsyms in the objfile. Avoid extra mallocation
6683 by working directly in the obstack. Remove ignored `mainline' parm.
6684 * coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
6685 xcoffread.c: Change all callers.
6686 * FIXME: We should be able to eliminate MAINLINE from all the
6687 symbol readers now, with a small bit of work.
6688
6689 * valops.c, value.h: Lint.
6690 * remote-vx.c: Add missing break; statement. Bugfix by
6691 Michael Sclafani, <sclafani@src.dec.com>.
6692
bff1c97a
FF
6693Fri Feb 21 17:29:54 1992 Fred Fish (fnf at cygnus.com)
6694
6695 * Makefile.in (VERSION): Update version to 4.4.2
6696 * Makefile.in (SFILES_MAINDIR): Add gdbtypes.c, state.c, objfiles.c,
6697 minsyms.c, mmap-alloc.c, mmap-sbrk.c
6698 * Makefile.in (HFILES): Add gdbtypes.h, state.h, solib.h
6699 * Makefile.in (OBS): Add gdbtypes.o, state.o, objfiles.o, minsyms.o,
6700 mmap-alloc.o, mmap-sbrk.o
6701
6702 * altos-xdep.c: Minor whitespace change.
6703 * am29k-tdep.c (examine_prologue): Convert from misc function vector
6704 use to new minimal symbol table use.
6705 * arm-xdep.c (fetch_inferior_registers): Document unused argument.
6706 * arm-xdep.c (store_inferior_registers): Returns void.
6707 * blockframe.c (get_pc_function_start, find_pc_partial_function):
6708 Convert from misc function vector use to new minimal symbol table use.
6709 Remove find_pc_misc_function(). Ifdef out block_innermost_frame().
6710 * breakpoint.c: Add prototypes for local functions.
6711 * breakpoint.c (catch_command_1): Change to static and remove unused
6712 local "pc".
6713 * breakpoint.c (map_breakpoint_numbers): Prototype arg "function".
6714 * breakpoint.h: Change function decls to prototype form.
6715 * buildsym.c: Add prototypes for local functions.
6716 * buildsym.c: Moved hashname() function here from dbxread.c.
6717 * buildsym.c (dbx_lookup_type): Cast args to xrealloc().
6718 * buildsym.c: Remove dbx_create_type(), uses changed to alloc_type().
6719 * buildsym.c (dbx_alloc_type): Change to static.
6720 * buildsym.c (finish_block): Add objfile parameter.
6721 * buildsym.c (misc): Change symbol_obstack to objfile version.
6722 * buildsym.c (make_blockvector): Change to static.
6723 * buildsym.c (start_subfile): Use strdup instead of obsavestring.
6724 * buildsym.c (compare_line_numbers): Change to static, args are const,
6725 cast args when used.
6726 * buildsym.c (start_symtab): Inline new_object_header_files() call.
6727 * buildsym.c (patch_block_stabs): Moved to this file from xcoffread
6728 and made static. Add objfile parameter.
6729 * buildsym.c (end_symtab): Simplify code using line table size.
6730 Realloc the linetable on the objfile symbol_obstack and copy there.
6731 * buildsym.c (scan_file_globals): Convert from misc function vector
6732 use to new minimal symbol use.
6733 * buildsym.c (define_symbol): Add objfile parameter. Make sure
6734 strings get allocated in objfile's symbol_obstack. Convert references
6735 to builtin types to lookup_fundamental_type().
6736 * buildsym.c (read_type): Make static, add objfile parameter, convert
6737 references to buildin types to lookup_fundamental_type().
6738 * buildsym.c (read_struct_type): Add objfile parameter.
6739 * buildsym.c (read_array_type): Make static, add objfile parameter.
6740 * buildsym.c (read_enum_type): Make static, add objfile parameter.
6741 * buildsym.c (read_huge_number): Make static.
6742 * buildsym.c (read_range_type): Make static, add objfile parameter,
6743 convert references to buildin types to lookup_fundamental_type ().
6744 * buildsym.c (read_args): Make static, add objfile parameter.
6745 * buildsym.h: Convert function decl's to prototype form.
6746 * c-exp.y: Add prototypes for local functions, convert uses of misc
6747 function vector to minimal symbol table. Reformat all builtin type
6748 initializations and pass a NULL objfile to init_type() for them.
6749 * coffread.c: Change context_stack ref's to coff_context_stack,
6750 add local function prototypes. Cast uses of xrealloc arg 1.
6751 * coffread.c (coff_alloc_type): Call alloc_type instead of hand-
6752 crafting a new type.
6753 * coffread.c (add_symbol_to_list): Change to coff_add_symbol_to_list.
6754 * coffread.c (finish_block): Change name to coff_finish_block.
6755 * coffread.c (make_blockvector): Add and use objfile parameter.
6756 * coffread.c (record_line): Change name to coff_record_line.
6757 * coffread.c (start_symtab): Change name to coff_start_symtab.
6758 * coffread.c (end_symtab): Change name to coff_end_symtab.
6759 * coffread.c (record_misc_function): Change name to record_minimal_
6760 symbol and change to minimal symbol table use from misc func tbl.
6761 * coffread.c (coff_symfile_read): Convert from misc function vector
6762 use to minimal symbol table use.
6763 * coffread.c (hashname): Remove; use common version in buildsym.c.
6764 * coffread.c (decode_base_type): Change references to builtin types
6765 to calls to lookup_fundamental_type().
6766 * coffread.c (read_struct_type): Change name to coff_read_struct_type.
6767 * coffread.c (read_enum_type): Change name to coff_read_enum_type.
6768 * command.c: Add prototypes for local functions.
6769 * command.c (add_cmd): Prototype the 'fun' parameter and use the
6770 appropriate member of the function union for that type.
6771 * command.c (add_abbrev_cmd): Prototype the 'fun' parameter and
6772 ifdef out the function since it isn't currently used.
6773 * command.c (add_alias_cmd): Pass correct function type to add_cmd.
6774 * command.c (add_prefix_cmd): Prototype the 'fun' parameter.
6775 * command.c (add_abbrev_prefix_cmd): Prototype the 'fun' parameter.
6776 * command.c (help_cmd): Compare function pointer to NULL.
6777 * command.c (help_cmd_list): Compare function pointer to NULL.
6778 * command.c (lookup_cmd_1): Use correct member of function union.
6779 * command.c (undef_cmd_error): Make static.
6780 * command.c (complete_on_cmdlist): Use correct member of func union.
6781 * command.c (do_setshow_command): Use correct member of func union.
6782 * command.c (shell_escape): Convert rindex use to strrchr.
6783 * command.h (COMMAND_H): Define if already included.
6784 * command.h (cmd_list_element struct): Change 'function' to a union
6785 and prototype args. Prototype completer function.
6786 * command.h: Convert decl's to prototype form.
6787 * convex-xdep.c (store_inferior_registers): Returns void.
6788 * copying.c: Prototype local functions.
6789 * coredep.c: Minor whitespace change.
6790 * cplus-dem.c: Remove hack to use BSD equivalents of mem* and str*.
6791 * cplus-dem.c: Prototype local functions.
6792 * dbxread.c (hashname): Remove; moved to buildsym.c.
6793 * dbxread.c (free_and_init_header_files): Make static.
6794 * dbxread.c: Add prototypes for local functions.
6795 * dbxread.c (new_object_header_files): Remove; inlined usages.
6796 * dbxread.c (xrealloc usages): Cast args.
6797 * dbxread.c (record_misc_function): Change to record_minimal_symbol
6798 and change usages accordingly.
6799 * dbxread.c (static_psymbols usages): Change to use per-objfile copy.
6800 * dbxread.c (xmalloc usages): Use per-objfile copy when appropriate.
6801 * dbxread.c (dbx_next_symbol_text): Make static.
6802 * dbxread.c (init_psymbol_list): Convert to use per-objfile data.
6803 * dbxread.c (init_bincl_list): Add and use objfile parameter.
6804 * dbxread.c (free_bincl_list): Add and use objfile parameter.
6805 * dbxread.c (compare_psymbols): Remove; use common symfile.c version.
6806 * dbxread.c (end_psymtab): Convert to use per-objfile data.
6807 * dwarfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for
6808 prototypes.
6809 * dwarfread.c (record_misc_function): Change name to record_minimal_
6810 symbol and use minimal symbol table throughout.
6811 * dwarfread.c (compare_psymbols): Remove; use common symtab.c version.
6812 * dwarfread.c: Convert all references to builtin types to use the new
6813 lookup_fundamental_type function.
6814 * dwarfread.c (read_enumeration): Add and use objfile parameter.
6815 * elfread.c (DEFUN/EXFUN): Remove all usages. Use PARAMS for proto-
6816 types.
6817 * elfread.c (record_misc_function): Convert to use record_minimal_
6818 symbol.
6819 * elfread.c (elf_symtab_read): Add objfile parameter.
6820 * eval.c: Add prototypes for local functions and move some decls
6821 around to accomodate prototypes.
6822 * expprint.c: Add prototypes for local functions. Change references
6823 to misc function vector to minimal symbol table.
6824 * findvar.c (read_memory usages): Cast args.
6825 * gdbtypes.h: New file, type info from symfile.h and symtab.h.
6826 * gmalloc.c: Use NOARGS where prototypes used hardwired void.
6827 * gmalloc.c (BLOCKSIZE): Constant to be shifted is unsigned.
6828 * gmalloc.h: Use NOARGS where prototypes used hardwired void.
6829 * gould-xdep.c: Minor whitespace change.
6830 * hp300ux-xdep.c (fetch_inferior_registers): Remove unused regno var.
6831 * hp300ux-xdep.c (store_inferior_registers): Returns void.
6832 * hp300ux-xdep.c (fetch_core_registers): Takes unused arg reg_addr.
6833 * i386-stub.c: Add prototypes, change "volatile" to NORETURN.
6834 * i386-tdep.c: Add prototypes for local functions.
6835 * i386-tdep.c (codestream_fill, codestream_seek, codestream_read,
6836 i386_get_frame_setup, i386_skip_prologue): Explicitly declare params
6837 that defaulted to int.
6838 * i386-tdep.c (i386_follow_jump, i386_frame_find_saved_regs,
6839 i386_push_dummy_frame): Returns void.
6840 * i386-xdep.c (i386_register_u_addr): Declare params that default to
6841 int and explicitly declare return type as int.
6842 * i387-tdep.c: Minor formatting changes.
6843 * i960-tdep.c (leafproc_return): Convert from misc function vector
6844 use to minimal symbol table use.
6845 * infcmd.c: Add prototypes for local functions.
6846 * infcmd.c (continue_command, until_next_command, until_command,
6847 path_info, path_command): Make static.
6848 * infcmd.c (step_1, until_next_command): Convert from misc func
6849 vector to minimal symbol table use.
6850 * inflow.c: Add prototypes for local functions.
6851 * infptrace.c (store_inferior_registers): Returns void, not int.
6852 * language.c (_initialize_language): Use proper member of function
6853 union.
6854 * m2-exp.y: Add prototypes for local functions, convert misc function
6855 vector uses to minimal symbol table uses.
6856 * m2-exp.y (make_qualname, yyerror): Make static.
6857 * m2-exp.y (_initialize_m2_exp): Call init_types with NULL objfile.
6858 * m68k-pinsn.c: Add prototypes for local functions.
6859 * m68k-pinsn.c (print_insn): Cast args to read_memory.
6860 * m68k-pinsn.c (fetch_arg): Make parameter 'code' and int.
6861 * m68k-stub.c: Add prototypes.
6862 * m88k-pinsn.c (sprint_address): Convert from misc function vector
6863 use to minimal symbol table use.
6864 * m88k-xdep.c (fetch_inferior_registers): Takes an unused parameter.
6865 * m88k-xdep.c (store_inferior_registers): Returns void.
6866 * mach386-xdep.c (fetch_inferior_registers): Takes an unused param.
6867 * mach386-xdep.c (store_inferior_registers): Returns void.
6868 * mach386-xdep.c (fetch_core_registers): Takes an unused parameter.
6869 * main.c: Add prototypes for local functions.
6870 * main.c (return_to_top_level): Is type NORETURN (volatile). Cast
6871 longjmp() result to (NORETURN void).
6872 * main.c (catch_errors): Prototype the 'func' parameter.
6873 * main.c (disconnect, stop_sig, do_nothin, float_handler):
6874 Takes an unused arg.
6875 * main.c (execute_command): Call the right member of the func union.
6876 * main.c (command_loop_marker, symbol_completion_function,
6877 command_loop): Make static.
6878 * main.c (command_line_input): Make linelength unsigned, cast arg
6879 to command_line_input().
6880 * main.c (add_info, add_com): Prototype the 'fun' parameter.
6881 * main.c (initialize_main): Call right member of function union.
6882 * mcheck.c (NOARGS): Change hardwired void in prototypes to NOARGS.
6883 * mem-break.c: Include symtab.h
6884 * mips-xdep.c (fetch_inferior_registers): Takes unused param.
6885 * mips-xdep.c (store_inferior_registers): Returns void.
6886 * mipsread.c (mipscoff_symfile_read): Change from misc function vector
6887 use to minimal symbol table use.
6888 * mipsread.c (symbol_obstack usages): Convert all to use per-objfile
6889 version.
6890 * mipsread.c (make_type): Remove, convert usages to init_type.
6891 * mipsread.c (_initialize_mipsread): Call init_type with NULL objfile.
6892 * nindy-tdep.c (nindy_frame_chain_valid): Convert from misc function
6893 vector use to minimal symbol table use.
6894 * parse.c: Add prototypes for local functions.
6895 * parse.c (xrealloc usages): Cast args.
6896 * parse.c (prefixify_expression, length_of_subexp): Make static.
6897 * parser-defs.h (PARSER_DEFS_H): Define when first included.
6898 * parser-defs.h: Convert function decls to prototype form.
6899 * partial-stab.h: Convert from misc function vector use to new minimal
6900 symbol table use.
6901 * partial-stab.h (global_psymbols, static_psymbols usages): Reference
6902 the per-objfile copies.
6903 * printcmd.c: Add prototypes for local functions. Move some struct
6904 definitions around to accomodate prototypes.
6905 * printcmd.c (decode_format): Make static, change args oformat and
6906 osize to int from char.
6907 * printcmd.c (print_formatted): Change 'format' and 'size' to int.
6908 * printcmd.c (print_scalar_formatted): Change arg 'format' to int.
6909 * printcmd.c (print_address_symbolic): Convert from misc function
6910 vector use to minimal symbol table use.
6911 * printcmd.c (address_info): Convert from misc function vector use
6912 to minimal symbol table use.
6913 * printcmd.c (delete_display, enable_display, disable_display_command):
6914 Make static.
b52373a2 6915 * procfs.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
6916 * procfs.c (fetch_core_registers): Add unused param reg_addr.
6917 * pyr-xdep.c (fetch_inferior_registers): Add unused param regno.
6918 * pyr-xdep.c (store_inferior_registers): Returns void.
6919 * remote-mm.c (mm_load): symbol_file_add return value unused.
6920 * remote-nindy.c: Minor format change.
6921 * remote-vx.c (vx_load_command): symbol_file_add result unused.
6922 * rs6000-xdep.c (fetch_inferior_registers): Add unused param regno.
6923 * rs6000-xdep.c (store_inferior_registers): Returns void.
6924 * rs6000-xdep.c (fetch_core_registers): add unused param reg_addr
6925 * rs6000-xdep.c (aixcoff_relocate_symtab): Convert from misc function
6926 vector use to minimal symbol table use.
6927 * solib.c: Add prototypes for local functions.
6928 * solib.c (solib_add_common_symbols, locate_base): Convert from misc
6929 function vector use to minimal symbol table use.
b52373a2 6930 * solib.c (EXFUN/DEFUN): Remove all usages, convert to PARAMS.
bff1c97a
FF
6931 * solib.c (find_solib, shared_library_command): Make static
6932 * solib.c (read_memory, write_memory usages): Cast args.
6933 * solib.c (special_symbol_handling): Add function
6934 * source.c: Add prototypes for local functions.
6935 * source.c (select_source_symtab): Convert to scan objfiles.
6936 * source.c (open_source_file): Make static.
6937 * source.c (xrealloc usages): Cast args.
6938 * source.c (source_line_charpos): ifdef out, unused.
6939 * source.c (get_filename_and_charpos): Make static.
6940 * stack.c: Add prototypes for local functions.
6941 * stack.c (print_frame_info, frame_info): Convert from misc function
6942 vector use to minimal symbol table use.
6943 * symfile.c: Add prototypes for local functions.
6944 * symfile.c (compare_symbols): Make args const PTR's.
6945 * symfile.c (compare_psymbols, sort_pst_symbols) add.
6946 * symfile.c (sort_all_symtab_syms): Scan objfile list.
6947 * symfile.c (obsavestring): Add objfile parameter.
6948 * symfile.c (init_misc_bunches, prim_record_misc_function,
6949 compare_misc_functions, discard_misc_bunches, condense_misc_bunches,
6950 sort_misc_function_vector, compact_misc_function_vector): Remove
6951 * symfile.c (symbol_file_add_digested): Add function.
6952 * symfile.c (symbol_file_add): Returns struct objfile *.
6953 * symfile.c (symbol_file_command): Modify for state file use.
6954 * symfile.c (symfile_open): Add parameter "dumpable".
6955 * symfile.c (allocate_objfile, free_objfile): Moved to objfiles.c
6956 * symfile.c (load_command, add_symbol_file_command): Make static.
6957 * symfile.c (fill_in_vptr_fieldno): Moved to gdbtypes.c
6958 * symfile.c (rindex usages): Converted to strrchr.
6959 * symfile.c (allocate_psymtab): New
6960 * symfile.c (free_named_symtabs): Ifdef out code that needs to be
6961 converted to minimal symbol table usage, but no obvious conversion.
6962 * symfile.c (free_all_symtabs): Remove.
6963 * symfile.c (_initialize_symfile): Use per-objfile info.
6964 * symfile.h: Rework the objfile structure to add per-objfile data
6965 objects (psymbol_obstack, symbol_obstack, type_obstack,
6966 global_psymbols, static_psymbols, msymbols, minimal_symbol_count,
6967 fundamental_types, malloc, realloc, free, xmalloc, xrealloc, etc).
6968 Add prototypes to function declarations.
6969 * symm-tdep.c (symmetry_extract_return_value): Convert from misc
6970 function vector usage to minimal symbol table usage.
6971 * symmisc.c (DEV_TTY): Define if not defined.
6972 * symmisc.c: Add local function prototypes.
6973 * symmisc.c (dump_objfile, dump_msymbols, dump-symtab, print_syms,
6974 printpsyms_command, print_objfiles, print_objfiles_command):
6975 Rework to use iterate_over_*
6976 * symtab.c: Add prototypes for local functions.
6977 * symtab.c (lookup_symtab_1): Convert to look through objfiles.
6978 * symtab.c (lookup_partial_symtab): Scan through objfiles.
6979 * symtab.c (lookup_primitive_typename, lookup_typename, lookup_
6980 unsigned_typename, lookup_struct, lookup_union, lookup_enum,
6981 lookup_template_type, lookup_struct_elt_type, lookup_pointer_type,
6982 lookup_reference_type, lookup_member_type, allocate_stub_method,
6983 check_stub_method, create_array_type, smash_to_member_type,):
6984 Moved to gdbtypes.c
6985 * symtab.c (lookup_symbol): Some args are const.
6986 * symtab.h: All type related defs and structs moved to gdbtypes.h
6987 * symtab.h: Convert decls to prototypes.
6988 * target.c (noprocess): Make static.
6989 * target.h: Change decl's to prototypes.
6990 * tm-sunos.h: (CLEAR_SOLIB, SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK,
6991 DISABLE_UNSETTABLE_BREAK) Moved to solib.h.
6992 * utils.c (_initialize_utils): Use correct member of function union.
6993 * valarith.c: include gdbtypes.h
6994 * valops.c: include gdbtypes.h, add prototypes for local functions.
6995 * valops.c (value_push, value_arg_push, find_function_addr):
6996 Make static.
6997 * valops.c (value_string): Convert from misc function vector use
6998 to minimal symbol table use.
6999 * valops.c (check_field_in): Make arg const.
7000 * valprint.c: Add prototypes for local functions.
7001 * valprint.c (print_string): Make static
7002 * valprint.c (value_print, val_print_fields, val_print): Make arg int.
7003 * values.c: Add prototypes for local functions.
7004 * values.c (value_headof): Convert from misc function vector to
7005 minimal symbol table.
7006 * xcoffexec.c: Add prototypes for local functions.
7007 * xcoffexec.c (exec_close, file_command, add_to_section_table):
7008 Make static.
7009 * xcoffexec.c (relocate_minimal_symbol): Add.
7010 * xcoffread.c (patch_block_stabs): Moved to buildsyms.c.
7011 * xcoffread.c: Add prototypes for local functions.
7012 * xcoffread.c (sort_syms): Convert to scan objfiles.
7013 * xcoffread.c (read_xcoff_symtab): Make static.
7014 * xcoffread.c (various): Replace references to builtin types with
7015 calls to lookup_fundamental_type. Replace references to symbol_obstack
7016 and psymbol_obstack with pointers to the per-objfile copies.
7017 * xcoffread.c (dump_linetable, dump_type, dump_symbol, dump_namespace,
7018 dump_block, dump_blockvector, dump_last_symtab, dump_symtabs):
7019 Make static.
7020 * xcoffread.c (init_stringtab): Add objfile parameter.
7021 * gdbtypes.c: New file
7022 * minsyms.c: New file
7023 * mmap-alloc.c: New file
7024 * mmap-sbrk.c: New file
7025 * objfiles.c: New file
7026 * state.c: New file
7027 * state.h: New file
7028
021959e2
JG
7029Fri Feb 21 17:29:54 1992 John Gilmore (gnu at cygnus.com)
7030
7031 * Check in Fred Fish's changes in these modules. Fred
93fe4e33
JG
7032 will make ChangeLog entries for all of them. Update VERSION
7033 to 4.4.2.
021959e2 7034
7919c3ed
JG
7035Thu Feb 20 18:10:17 1992 Fred Fish (fnf at cygnus.com)
7036
7037 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
7038 into solib.h.
7039 * sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
7040 sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
7041 value.h: Prototypes for static functions; lint.
7042 * gdbtypes.h: Empty file to ease transition.
7043
75af490b
JG
7044Thu Feb 20 16:43:13 1992 Fred Fish (fnf at cygnus.com)
7045
7046 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
7047 inferior.h, language.h, signame.h, target.h, terminal.h,
7048 tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
7049 xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
7050 Lint.
7051 * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
7052 signame.c, sparc-xdep.c: Prototypes for all static functions.
7053 Lint.
7054 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
7055 remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
7056 target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
7057 Remove to_call_function and target_call_function, since it
7058 always calls the same thing (call_function_by_hand).
7059 * core.c, exec.c, solib.c: Rename target_ops sections =>
7060 to_sections, etc.
7061 * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
7062 target.h: target_kill takes no args.
7063 * language.c (language_info): Scaffolding to allow briefer
7064 messages when the current language changes. FIXME.
7065 * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
7066 complaints about volatile functions.
7067 * xm-sysv4.h (HAVE_MMAP): Define.
7068
7069Thu Feb 20 09:04:18 1992 Fred Fish (fnf at cygnus.com)
088c3a0b
JG
7070
7071 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
7072 to make prototypes for all functions declared here.
7073 * cplus-dem.c: Avoid declaring xmalloc and xrealloc.
7074 * c-exp.y: Rename SIGNED, OR, and AND to avoid conflict.
7075 * environ.c: Include <stdio.h> before defs.h. Minor cleanup.
7076 * ieee-float.h: Use PARAMS for prototypes; make some params const.
7077 * ieee-float.c, valarith.c: Include <stdio.h>. Lint. b*=>mem*.
7078 * m2-exp.y: Remove unused CONST; Rename OR and AND.
7079 * utils.c: Avoid declaring malloc and realloc. Lint.
7080 (request_quit): Accept signal-number parameter.
7081
af213624
FF
7082Mon Feb 17 07:13:27 1992 Fred Fish (fnf at cygnus.com)
7083
9e4c1921
FF
7084 * dwarfread.c (process_dies): Add case to handle TAG_pointer_type
7085 DIE's. Add new function read_tag_pointer_type() to read them.
7086
af213624
FF
7087 * dwarfread.c (dwarf_read_array_type, read_subroutine_type):
7088 When creating a new user defined type, check to see if a partial
7089 type already exists, and if so, bash it to fit.
7090
be8303da
JG
7091Fri Feb 14 19:00:17 1992 John Gilmore (gnu at cygnus.com)
7092
7093 * coffread.c (decode_base_type): Pass long, not union.
7094 Fix by Eric Valette, ev@chorus.fr.
7095
d35bf52d
FF
7096Thu Feb 13 17:14:28 1992 Fred Fish (fnf at cygnus.com)
7097
7098 * elfread.c (elf_symtab_read): Fix code to correctly track
7099 changes in bfd for absolute symbols.
7100
5b620e75
SG
7101Thu Feb 13 12:43:29 1992 Stu Grossman (grossman at cygnus.com)
7102
7103 * xm-vaxbsd.h: Close off comment.
7104
0a663e9e
FF
7105Thu Feb 13 07:45:19 1992 Fred Fish (fnf at cygnus.com)
7106
7107 * xm-sysv4.h: Define NEED_POSIX_SETPGID.
7108
7109Fri Feb 7 11:51:12 1992 Per Bothner (bothner at cygnus.com)
7110
7111 * mips-tdep.c (mips_print_registers): Print correct register
7112 number for double pseudo-registers.
7113
ef9b1bc9
JG
7114Fri Feb 7 07:56:05 1992 John Gilmore (gnu at cygnus.com)
7115
256269fc
JG
7116 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
7117 in the op$::OPERATOR. case. From Steven McCanne,
7118 <mccanne@horse.ee.lbl.gov>.
7119
ef9b1bc9
JG
7120 * exec.c (set_section_name): Pass arg to exec_files_info;
7121 only call it if interactive. From Francis Kauth <fk@tv.tv.tek.com>.
7122
195853fc
JG
7123Thu Feb 6 17:41:32 1992 John Gilmore (gnu at cygnus.com)
7124
7125 * main.c (print_gdb_version): Copyright msg: only this year.
7126 (cd_command): Avoid changing current_directory on error.
7127
ee17fd34
PB
7128Thu Feb 6 15:14:01 1992 Per Bothner (bothner at cygnus.com)
7129
7130 * mipsread.c (parse_partial_symbols): Handle dependencies
7131 between partial symbol tables (when not doing stabs-in-ecoff).
7132 (This used to be handled by parse_fdr, but parse_fdr was
7133 incompatible with handling stabs-in-ecoff, so the code
7134 was re-written to not use parse_fdr. Unfortunately,
7135 the logic to handle dependencies was overlooked.)
7136
1f46923f
SC
7137Thu Feb 6 11:51:39 1992 Steve Chamberlain (sac at rtl.cygnus.com)
7138
7139 * coffread.c (read_enum_type): Use the size of a target int when
7140 describing enum.
7141 * defs.h: added new #define for TARGET_PTR_BIT, defaults to size
7142 of target int.
7143 * h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
7144 * symtab.c (lookup_reference_type, lookup_ptr_type): use
7145 TARGET_PTR_BIT to determine size of a pointer
7146 * values.c (unpack_long): when unpacking a REF or a PTR don't
7147 assume the size of the type.
7148
778c358d
JG
7149Wed Feb 5 22:29:59 1992 John Gilmore (gnu at cygnus.com)
7150
7151 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
7152 looking at its members. Improve guess between struct and union,
7153 only assuming union if multiple members have offsets of zero.
7154
bd49ef36
PB
7155Tue Feb 4 18:05:44 1992 Per Bothner (bothner at cygnus.com)
7156
7157 * mipsread.c: Use (FP0_REGNUM-32) instead of magic number 6.
7158 (This is just for clarity - and one day permitting us to
7159 change FP0_REGNUM from 38 to 32, which would make more sense.)
7160 * tm-mips.h: Added STAB_REG_TO_REGNUM macro, so that
7161 register numbers in stabs-in-ecoff get handled correctly.
7162
7163Sat Feb 1 04:45:10 1992 Stu Grossman (grossman at cygnus.com)
7164
7165 * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
7166 config/mh-vaxbsd, configure.in: Split up config stuff for Vaxen
7167 into BSD and Ultrix.
7168
96499e96
JG
7169Sat Feb 1 04:39:41 1992 John Gilmore (gnu at cygnus.com)
7170
7171 * dbxread.c (dbx_symfile_init): Call malloc, not xmalloc.
7172
98f03b91
SG
7173Sat Feb 1 04:15:41 1992 Stu Grossman (grossman at cygnus.com)
7174
dafe57bc 7175 * Makefile.in: Increment version to 4.4.1.
98f03b91
SG
7176 * main.c (print_gdb_version): Update copyright notice.
7177
7178Sat Feb 1 01:43:11 1992 Per Bothner (bothner at cygnus.com)
7179
7180 * mipsread.c: Prepend "struct " to the names of structure
7181 types, and similarly for enums and unions. (This used
7182 to be done, but got lost in the re-write to "guess" the
7183 difference between enum/struct/union.)
7184 Also, guess that a tag is an enum if the first member
7185 has type btNil.
7186
3671f1fd
SG
7187Fri Jan 31 21:45:51 1992 Stu Grossman (grossman at cygnus.com)
7188
7189 * xm-vax.h: #ifndef ultrix around #include of endian.h and
7190 limits.h (sigh).
7191
0c6efbcc
JG
7192Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
7193
ee7270cd
JG
7194 * Projects: Patching executables is done.
7195 * Makefile.in (VERSION): Roll to gdb-4.4.
75c86b57 7196 * README, WHATS.NEW: Update for gdb-4.4.
ee7270cd 7197
4a1dcb7f
JG
7198 * symfile.c (reread_symbols): Whenever we reread one object
7199 file's symbols, we must restart the scan, because the object_files
7200 chain has been permuted.
7201
0c6efbcc
JG
7202 * exec.c (exec_files_info): Split out into print_section_info.
7203 Print BFD filename of each section if it's not the default one.
7204 * core.c (core_files_info): Call print_section_info.
7205
7206 * xm-vax.h: Include a few system header files whose definitions
7207 must precede defs.h.
7208 * language.c, language.h: Make some things const.
7209 * expression.h, main.c: const spreads like ooze.
7210
7211 * mem-break.c (break_insn, break_insn_size): Use unsigned chars,
7212 since BREAKPOINT values can be >0x80.
7213
d58ea996
SG
7214Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
7215
7216 * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
7217
0c6efbcc
JG
7218Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
7219
7220 * sparc-pinsn.c: Remove kludge for preferring architectures.
7221 Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
7222 and forever. Add `add' instruction to the set that get checked
7223 for a preceding `sethi' in order to print an absolute address.
7224 Corresponding changes in ../include/opcode/sparc.h needed
7225 to eliminate garbage instructions.
7226
d4ea2aba
PB
7227Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
7228
7229 * mipsread.c (parse_partial_symbols): Make sure partial
7230 symbols are created for external symbols (as used to be
7231 the case). This is a bit of a pain with the mips-coff.
7232 It uses a table which points to all of the external
7233 symbols belonging to a particular FDR or psymtab.
7234 Once we've generated this table, we might as well save
7235 it, and then use it in psymtab_to_symtab_1 to find
7236 the symbols to pass to parse_external().
7237 * symfile.c, symfile.c: New function start_psymtab_common
7238 to share the common parts of allocating a new psymtab
7239 for dbxread, mipsread (and later dwarfread). Its code
7240 was pulled out from start_psymtab in dbxread.c.
7241 * dbxread.c (start_psymtab): Use start_psymtab_common().
7242
7243 * valprint.c (val_print): If there is an error when trying
7244 to print a string, check to see if there really is a problem
7245 by reading just one character. If that works, assume
7246 things are ok.
7247
05151637
SG
7248Wed Jan 29 18:58:43 1992 Stu Grossman (grossman at cygnus.com)
7249
7250 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
7251 cypress, v8 mnemonics in that order.
7252
4a074bea
PB
7253Tue Jan 28 17:32:13 1992 Per Bothner (bothner at cygnus.com)
7254
7255 * sparc-pinsn.c: Put the qsort() back in.
7256
c55e6167 7257Mon Jan 27 18:51:03 1992 John Gilmore (gnu at cygnus.com)
1aa560b2 7258
eae1a261
JG
7259 * findvar.c (read_register, write_register): Handle machines
7260 where REGISTER_TYPE is not the same size as "int".
7261
c55e6167 7262 Handle debug symbols in dynamically loaded (relocated) code:
3c03b5de 7263
c55e6167
JG
7264 * dbxread.c (read_ofile_symtab): Fix up N_CATCH better. Pass
7265 offset to process_one_symbol.
7266 (process_one_symbol): Take new offset parameter. Add it into
7267 appropriate symbol types to relocate symbols to loaded addresses.
7268 Handle all possible symbol types, and complain() about types that
7269 we don't expect to see.
7270 * mipsread.c (psymtab_to_symtab_1): Pass offset of zero to
7271 process_one_symbol (FIXME, should pass real offset).
1aa560b2 7272
c55e6167
JG
7273 Misc bugfixes:
7274
7275 * breakpoint.c (resolve_sal_pc): Split out code to resolve a
7276 sal's PC value.
7277 (set_breakpoint, break_command_1, until_break_command,
7278 catch_command_1, breakpoint_re_set_one): Use it.
c55e6167
JG
7279 * symtab.h (resolve_sal_pc): Declare.
7280 * infcmd.c (jump_command): Use resolve_sal_pc.
7281
4cc9f7e2 7282 * source.c (list_command): Shorten "FILE, line N" to "FILE:N".
c55e6167
JG
7283
7284 * putenv.c (putenv): Avoid unportably casting pointers to unsigneds.
3818ed33 7285
5a4e7215
JG
7286 * c-exp.y (yylex): `this' and `template' are only tokens in C++.
7287
3818ed33
JG
7288 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
7289 xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
7290 Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
7291
c55e6167
JG
7292Mon Jan 27 15:46:21 1992 Stu Grossman (grossman at cygnus.com)
7293
7294 * dbxread.c (process_one_symbol): Make a first cut at handling
7295 symbol tables generated by Sun's acc. (#ifdef'd out, FIXME.)
7296
7297 * symtab.c (find_pc_line): Fix stepping into and out of #included
7298 files.
7299
71f49876
SG
7300Mon Jan 27 13:00:55 1992 Stu Grossman (grossman at cygnus.com)
7301
7302 * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
7303 no longer any need to copy ../include/opcode/* into gdb.
7304
fd8db897
JG
7305Mon Jan 27 12:30:38 1992 John Gilmore (gnu at cygnus.com)
7306
7307 * ChangeLog, ChangeLog-9091: Split ChangeLog at 1992.
7308
24b2fbdc
PB
7309Sun Jan 26 19:05:40 1992 Per Bothner (bothner at cygnus.com)
7310
7311 * valprint.c (type_print_base, type_print_method_args):
7312 Print C++ constructor methods without bogus "return type."
7313
cdb90e99
FF
7314Sat Jan 25 15:57:59 1992 Fred Fish (fnf at cygnus.com)
7315
7316 * infptrace.c (child_xfer_memory): Parameter "target" should
7317 be a pointer to a structure, not the entire structure.
7318
1b07e406
FF
7319Fri Jan 24 01:30:27 1992 Fred Fish (fnf at cygnus.com)
7320
7321 * depend: Convert the couple of references to ansidecl.h that
7322 used the local gdb version to use the ../include version.
7323
9a1ae235
FF
7324Thu Jan 23 22:24:43 1992 Fred Fish (fnf at cygnus.com)
7325
f66f459f
FF
7326 * procfs.c
7327 (child_xfer_memory): Takes pointer to a struct, not entire struct.
7328 (inferior_proc_init): Fix non-ANSI version of args.
7329 (attach): Call print_sys_errmsg with correct number of args.
7330 (mappingflags): Make static, does not need to be global.
7331
fc1f8646
FF
7332 * i386-tdep.c (i386_frame_num_args): Takes a pointer to a struct
7333 not the entire struct itself.
7334
1b7a420e
FF
7335 * valops.c (value_assign): Cast some args to modify_field() and
7336 {read,write}_register_bytes() correctly.
7337
9a1ae235
FF
7338 * ansidecl.h: Removed, is duplicate of ../include/ansidecl.h
7339
99140c31
FF
7340 * Makefile.in (MALLOCSRC): Removed reference to removed local
7341 copy of ansidecl.h.
7342
7343 * dwarfread.c (list_in_scope): Needs an initial value, use file
7344 scope.
7345
9a1ae235
FF
7346Mon Jan 20 19:06:28 1992 Stu Grossman (grossman at cygnus.com)
7347
7348 * main.c (main): Make option_index local to keep new getopt happy.
7349 main.c, solib.c, Makefile.in: Update copyright notices.
7350
0eb0a820
MT
7351Mon Jan 20 08:54:00 1992 Michael Tiemann (tiemann at cygnus.com)
7352
7353 * cplus-dem.c (cplus_demangle): Correctly demangle destructors.
7354
313085cb
SG
7355Sat Jan 18 17:17:45 1992 Stu Grossman (grossman at cygnus.com)
7356
7357 * Makefile.in (HFILES): Add partial-stab.h.
7358
be9a2362
FF
7359Sat Jan 18 16:45:01 1992 Fred Fish (fnf at cygnus.com)
7360
24e7d5ba
JG
7361 * config/mh-stratus, config/mt-stratus, tm-stratus.h, xm-stratus.h:
7362 New files for stratus. Not complete enough to actually build
7363 on the Stratus machine; that awaits copyright assignment for
7364 i860 changes.
be9a2362
FF
7365
7366 * Makefile.in (USER_CFLAGS): Add macro specifically reserved
7367 for getting custom flags into CFLAGS when doing makes.
7368
7369 * configure.in: Add config information for stratus.
7370
cdce29ee
FF
7371Thu Jan 16 00:51:46 1992 Fred Fish (fnf at cygnus.com)
7372
7373 * dbxread.c (process_one_symbol): Pass address of structure
7374 to complain(), rather than the whole structure.
7375
7f435241
FF
7376Wed Jan 15 09:56:16 1992 Fred Fish (fnf at cygnus.com)
7377
7378 * solib.c (solib_add_common_symbols): Only compile in when not
7379 using SVR4 style shared libraries.
7380
a5bd5ba6
FF
7381Tue Jan 14 22:34:00 1992 Fred Fish (fnf at cygnus.com)
7382
7383 * dwarfread.c (locval): Add offreg flag to indicate location
7384 values that are computed off a base register.
7385
7386 * dwarfread.c (new_symbol): Rework TAG_global_variable and
7387 TAG_local_variable cases to account for static variables
7388 within function scopes.
7389
7e97eb28
SG
7390Tue Jan 14 12:28:52 1992 Stu Grossman (grossman at cygnus.com)
7391
8c3d2a53
SG
7392 * inflow.c: remove #include <sys/dir.h>. Not necessary, and
7393 doesn't exist on some systems.
7394
5e746644
SG
7395 * infrun.c (wait_for_inferior!!!!): Prevent gdb from hanging when
7396 nexting over recursive function calls.
7397
d261ece7
SG
7398 * target.c (target_read_string): Create this routine to read null
7399 terminated strings from the target. It deals with running off the
7400 end of memory elegantly as well. solib.c (find_solib): Use
7401 target_read_string() to avoid problems with running off the end of
7402 memory.
7403
7e97eb28
SG
7404 * inflow.c (child_terminal_info): #ifdef TIOCPGRP around lines
7405 that reference pgrp_inferior.
7406
0cf9329b
PB
7407Mon Jan 13 14:57:11 1992 Per Bothner (bothner at cygnus.com)
7408
7409 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
7410 mips-tfile has been hacked to act more "traditionally."
7411 * dbxread.c: Fixed typo in comment.
7412
488d2691
PB
7413Sun Jan 12 13:08:36 1992 Per Bothner (bothner at cygnus.com)
7414
7415 * mips-tdep.c (mips_skip_prologue): Add some number of
7416 'sw' instructions before 'addiu' adjusts the stack.
7417
4d315a07
FF
7418Fri Jan 10 13:47:06 1992 Fred Fish (fnf at cygnus.com)
7419
7420 * dwarfread.c (start_symtab, end_symtab, scopecount, openscope,
7421 freescope, buildblock closescope, record_line, add_symbol_to_list,
7422 gatherblocks, make_blockvector): Extensive changes to switch
7423 to generic symbol table building code in buildsym.c. Remove
7424 scope tree structures and functions, symbol table building
7425 functions, and lots of other small changes.
7426
7427 * dwarfread.c: Add new macros GCC_PRODUCER and STREQN. Remove
7428 GCC_COMPILED_FLAG_SYMBOL and GCC2_COMPILED_FLAG_SYMBOL.
7429
7430Tue Jan 7 13:09:57 1992 Stu Grossman (grossman at cygnus.com)
7431
7432 * buildsym.c (cleanup_undefined_types): Add support for enums.
7433 This fixes the 'GDB internal error. cleanup_undefined_types with
7434 bad type' problem.
7435
7436Sun Jan 5 09:47:50 1992 Stu Grossman (grossman at cygnus.com)
7437
7438 * dbxread.c: detect gcc2 compilations.
7439
1a4d253c
JG
7440Thu Jan 2 15:07:41 1992 John Gilmore (gnu at cygnus.com)
7441
7442 * sparc-pinsn.c: Rename bitfields that overlap with macro names
7443 in ../include/opcode/sparc.h.
7444
1d4c28c5
FF
7445Wed Jan 1 04:29:00 1992 Fred Fish (fnf at cygnus.com)
7446
7447 * Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
7448 to xm-sysv4.h. Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
7449 to reflect actual locations of opcode files, so TAGS target will
7450 be buildable.
7451
7452 * i386-tdep.c: Change an erroneous 'm68k' reference to 'i386'.
7453
7454 * i386-tdep.c (supply_fpregset, fill_fpregset): Remove m68k
7455 code.
7456
7457 * m68k-tdep.c (supply_fpregset, fill_fpregset): Fix array
7458 dereferencing to access the correct elements.
7459
7460 * valops.c (value_addr): Declare return type of external func
7461 value_copy().
7462
7463 * xcoffread.c: Undefine next_symbol_text before redefining it.
7464
fd8db897 7465For older changes see ChangeLog-9091
bd5635a1
RP
7466\f
7467Local Variables:
7468mode: indented-text
7469left-margin: 8
7470fill-column: 74
7471version-control: never
7472End:
This page took 0.540482 seconds and 4 git commands to generate.