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