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