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