* valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Sun Feb 12 12:36:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2
3 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
4 arg, it is a value not a symbol.
5
6 gcc -Wall lint:
7 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
8 * expression.h: ..to here.
9 * expression.h: Include value.h.
10 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
11
12 Sun Feb 12 11:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
13
14 * language.h (struct language_defn): New field evaluate_exp.
15 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
16 f-lang.c (f_language_defn), language.c (unknown_language_defn,
17 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
18 Set evaluate_exp to evaluate_subexp_standard.
19 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
20 support for MULTI_SUBSCRIPT.
21 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
22 * eval.c (enum noside): Move from here ....
23 * expression.h (enum noside): ... to here.
24 (evaluate_subexp_standard): New prototype.
25 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
26 Removed lo-longer-needed test for chill_varying_type.
27 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
28
29 * ch-exp.y (maybe_expression_list): New non-terminal.
30 (primitive_value): Allow empty parameter list.
31
32 Sun Feb 12 10:02:16 1995 Per Bothner <bothner@cygnus.com>
33
34 * buildsym.c (finish_block): If finishing a function without known
35 parameter type info, set that from parameter symbols.
36 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
37 print parameter types, if available.
38 * ch-typeprint.c (chill_type_print_base): Likewise.
39
40 * gdbtypes.h (struct type): Remove function type field.
41 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
42 function types now that we're also storing parameter types.
43 And the payoff is much less.
44 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
45 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
46 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
47
48 * valops.c (value_arg_coerce): Now takes param_type argument.
49 (call_function_by_hand): Convert arguments with value_arg_coerce
50 early, and overwrite original args with converted args.
51 No longer need multiple calls to value_arg_coerce.
52 (value_arg_push): Removed.
53 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
54 * mips-tdep.c (mips_push_arguments): Likewise.
55 * alpha-tdep.c (alpha_push_arguments): Likewise.
56 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
57 Likewise.
58 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
59
60 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
61
62 * symtab.c (add_param_to_type): Remove (commented-out) function,
63 since that functionality has been re-written.
64 * coffread.c: Remove commented-out add_param_to_type support.
65 * mdebugread.c (parse_symbol): Likewise.
66 * stabsread.c (define_symbol): Likewise.
67
68 Sun Feb 12 09:03:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
69
70 * buildsym.c (start_subfile): Set language for f2c like for cfront.
71
72 Thu Feb 9 20:20:11 1995 Rob Savoye <rob@darkstar.cygnus.com>
73
74 * op50n-rom.c: Add the control registers.
75
76 Thu Feb 9 15:46:39 1995 Stan Shebs <shebs@andros.cygnus.com>
77
78 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
79 after, any host/target/native libraries.
80 * dcache.c (insque, remque): Remove declarations.
81 * gdbtypes.h (type_code): Remove trailing comma.
82
83 From Peter Schauer:
84 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
85 STATIC_NODEBUG_VARS inside case.
86
87 Thu Feb 9 07:43:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
88
89 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
90 * partial-stab.h: Call it.
91 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
92 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
93 get the address.
94 * sparc-tdep.c (solaris_static_transform_name): New function.
95
96 Thu Feb 9 12:09:09 1995 Jeff Law (law@snake.cs.utah.edu)
97
98 * somread.c (som_symtab_read): Handle dynamic relocation for both
99 text and data symbols.
100 (som_symfile_offsets): If objfile is a shared library, then get
101 text and data offsets from the shared library structures.
102 * somsolib.c (som_solib_add): Copy the bfd pointer from the
103 objfile rather than reopening the file again.
104 (som_solib_section_offsets): New function.
105 * somsolib.h (som_solib_section_offsets): Declare.
106
107 Wed Feb 8 20:32:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
108
109 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
110 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
111 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
112 filename field.
113 * elfread.c (record_minimal_symbol_and_info),
114 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
115 newly created symbol.
116 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
117 Set filename field of minimal symbol.
118 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
119 Print filename field.
120 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
121 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
122 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
123 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
124 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
125 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
126 Find address of function from minimal symbols.
127 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
128 instead of getting pst->textlow from the stab.
129 * minsyms.c (find_stab_function_addr): New function.
130
131 Wed Feb 8 19:19:56 1995 Rob Savoye <rob@darkstar.cygnus.com>
132
133 * monitor.c: Fix so all the output shows up in the GUI command
134 window.
135
136 Mon Feb 6 18:50:59 1995 Stan Shebs <shebs@andros.cygnus.com>
137
138 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
139 line, so init.c generation works correctly.
140 start-sanitize-arc
141 * arc-tdep.c (_initialize_arc_tdep): Ditto.
142 end-sanitize-arc
143
144 Mon Feb 6 14:44:36 1995 Rob Savoye <rob@darkstar.cygnus.com>
145
146 * config/mips/idt.mt: Add support for the lsi33k target.
147 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
148 * array-rom.c: Finish the rest of the support commands needed by
149 GDB.
150 * mips-tdep.c: Add LSI33k register names and processor type.
151
152 start-sanitize-gdbtk
153 Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
154
155 * gdbtk.c (gdb_disassemble): Deference pointer to function before
156 calling it (pre-ANSI compilers generally require this).
157
158 end-sanitize-gdbtk
159 Sat Feb 4 13:29:52 1995 Stan Shebs <shebs@andros.cygnus.com>
160
161 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
162
163 Fri Feb 3 16:47:31 1995 Kung Hsu <kung@mexican.cygnus.com>
164
165 * ser-go32-para.c (dos_read): fix syntax errors.
166
167 Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
168
169 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
170 dis_asm_read_memory_hook. We can now call the disassemblers
171 directly and have no need for this hook anymore.
172 start-sanitize-gdbtk
173 * gdbtk.c (gdb_disassemble): Ditto.
174 end-sanitize-gdbtk
175 * defs.h, printcmd.c: Make print_insn be static.
176
177 * ser-go32.c (dos_comisr): Make this 8 bit clean.
178 * (dos_open dos_close): Allow multiple opens to the same device.
179 Use a ref count to prevent unwanted deallocations.
180 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
181 happy.
182 * (sparclite_ops): Switch to download_stratum.
183 * target.h (enum strata): Move download_stratum before
184 process_stratum so that executable targets get pushed on top of
185 download targets.
186
187 Thu Feb 2 19:02:45 1995 Rob Savoye <rob@darkstar.cygnus.com>
188
189 * array-rom.c: Remove the non GDB remote protocol config stuff.
190
191 * monitor.c: All reading/writing functions for memory and
192 registers work.
193
194 Thu Feb 2 16:11:04 1995 Kung Hsu <kung@mexican.cygnus.com>
195
196 start-sanitize-arc
197 * config/arc/arc.mt: new target makefile for arc processor.
198 * config/arc/tm-arc.h: new target header for arc processor.
199 * config/arc/go32.mh: new go32 host makefile for arc processor.
200 * config/arc/xm-go32.h: new go32 host header for arc processor.
201 * arc-tdep.c: new target dependent codes for arc processor.
202 * remote-arc.c: new file for arc-specific protocol through
203 parallel line.
204 end-sanitize-arc
205 * ser-go32-para.c: new file for go32 parallel port communication.
206
207 Thu Feb 2 13:58:40 1995 Stan Shebs <shebs@andros.cygnus.com>
208
209 * Makefile.in (VERSION): Bump to 4.13.2.
210
211 Thu Feb 2 07:27:56 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
212
213 Fix compiler warnings:
214 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
215 and have the caller do the sprintf. Saves us from varargs hell.
216 (normal): Define before use.
217 * remote-e7000.c: Reindent a few things.
218
219 Wed Feb 1 21:16:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
220
221 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
222 ranges in reverse order.
223 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
224
225 * eval.c (evaluate_subscript): Don't call value_subscript, since
226 it adjusts for lower bound and enforces ranges.
227
228 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
229 * eval.c, parse.c: Removed uses of removed opcodes.
230 * eval.c (evaluate_subexp): Clean up handling of
231 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
232
233 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
234 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
235
236 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
237 duplicate function made redundant by chill_varying_type.
238
239 Re-write of f77 string and complex number support:
240
241 * language.h (struct language_defn): New fields string_lower_bound
242 and string_char_type.
243 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
244 language.c (unknown_language_defn, auto_language_defn,
245 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
246 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
247 * gdbtypes.c (create_string_type): Use new string_char_type field.
248 * valops.c (value_string): Use new string_lower_bound field.
249
250 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
251 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
252 m2-lang.c (m2_create_fundamental_type),
253 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
254 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
255 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
256 Removed. Use builtin_type_complex and builtin_type_double_complex.
257
258 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
259 and TYPE_CODE_LITERAL_COMPLEX.
260 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
261 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
262 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
263 f77_create_literal_string_type): Removed.
264 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
265 VALUE_SUBSTRING_MYADDR): Removed.
266
267 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
268 OP_COMPLEX.
269 * parse.c: Update accordingly.
270
271 * f-valprint.c (f77_print_cmplx): Removed.
272 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
273
274 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
275 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
276 f77_value_literal_string.
277 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
278 f77_assign_from_literal_string, f77_assign_from_literal_complex):
279 Removed.
280 (value_assign): No longer need to handle literal types.
281 * valops.c (f77_value_literal_complex), value.h: Re-written and
282 renamed to value_literal_complex. Last arg is now a (complex) type.
283 * valops.c (f77_cast_into_complex): Re-written and renamed to
284 cast_into_complex.
285 * eval.c (evaluate_subexp): Update accordingly.
286
287 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
288 print address for non-'s'-formats.
289 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
290 of chill_is_varying_struct.
291
292 Wed Feb 1 13:27:33 1995 Stan Shebs <shebs@andros.cygnus.com>
293
294 gcc -Wall lint.
295 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
296 (after_prologue): Remove unused local b.
297 * procfs.c (thread.h): Include.
298 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
299 nested braces in initializer.
300 * top.c (initialize_targets, initialize_utils): Declare.
301 (locate_arg, insert_args): Add parens around tested assignments.
302 * remote-utils.c (sr_scan_args): Remove decl of strtol.
303 * remote.c (thread.h): Include.
304 (remote_wait): Remove unused local p2.
305 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
306 registers array.
307
308 defs.h (stdlib.h): Include.
309 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
310 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
311 strtok, strerror): Don't specify parameter types in declaration.
312
313 Wed Feb 1 12:23:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
314
315 * ch-exp.y (value_string_element, string_primitive_value,
316 start_element, left_element, right_element, slice_size,
317 lower_element, upper_element, first_element): Removed.
318 (value_string_slice, value_array_slice): Replaced by ...
319 (slice): New non-terminal, with working slice support.
320 (primitive_value_lparen, rparen): New non-terminals.
321 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
322 (idtokentab): Added "up".
323
324 * value.h (COERCE_VARYING_ARRAY): New macro.
325 * valarith.c (value_subscript): Use it.
326 * valops.c (value_cast): Likewise. Also, do nothing if already
327 correct type, and allow converting from/to range to/from scalar.
328
329 * valops.c, value.h (varying_to_slice, value_slice): New functions.
330 * eval.c (OP_ARRAY): Add cast for array element.
331 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
332 * valops.c (chill_varying_type): Moved function frp, here ...
333 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
334 * parse.c (length_of_subexp, prefixify_subexp): Add support
335 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
336 * expprint.c (print_subexp, dump_expression): Likewise.
337 * eval.c (evaluate_subexp): Likewise.
338
339 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
340 value_x_binop on a Chill varying string.
341
342 Tue Jan 31 13:51:53 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
343
344 * config/m68k/monitor.mt,
345 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
346 depfiles in TDEPFILES not REMOTE_O.
347
348 Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
349
350 From nigel@algor.co.uk.
351 * ser-go32.c (dos_close): Don't crash if scb null.
352 (dos_sendbreak): New function.
353 (dos_ops): Point to dos_sendbreak.
354 (dos_info): Calculate COM number correctly.
355
356 Tue Jan 31 09:40:11 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
357
358 * xcoffread.c (process_xcoff_symbol): Use new variables
359 func_symbol_type and var_symbol_type as type of functions and
360 variables which don't have any stabs associated with them.
361 Reindent most of function.
362 (_initialize_xcoffread): Initialize *_symbol_type.
363
364 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
365 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
366 them (this part commented out as I didn't quite get it to work).
367 (cs_to_section, find_targ_sec): New functions, to support above code.
368 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
369 actually present.
370
371 Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
372 start-sanitize-gdbtk
373 * gdbtk.tcl (create_file_win): Disable old popup menu for source
374 window.
375 end-sanitize-gdbtk
376 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
377 downloads to SPARClite demo boards.
378
379 Sun Jan 29 09:43:22 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
380
381 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
382 no hope of working as is for a long time (in particular, shebs' 27
383 Jan 95 change confuses the issue further--target_read_memory and
384 xfer_core_file do *not* do the same thing in this context).
385 Revise comment.
386
387 Sat Jan 28 13:40:46 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
388
389 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
390 procedure linkage table symbols, it is no longer set due to the
391 Jan 6 BFD change in bfd/elfcode.h.
392
393 Fri Jan 27 17:08:06 1995 Stan Shebs <shebs@andros.cygnus.com>
394
395 * top.c (use_windows): Clarify comments.
396
397 * convex-tdep.c (xfer_core_file): Comment out.
398 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
399 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
400 references to target_read_memory.
401 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
402 declarations.
403 * corelow.c (core_open, core_detach): Make static.
404
405 * arm-tdep.c: Make it compile.
406 (exec_file_command, xfer_core_file): Comment out.
407 (arm_print_insn): Remove, now in libopcodes.
408 (skip_prologue): Comment out most of body.
409 (arm_frame_find_saved_regs): Move here from tm-arm.h.
410 (_initialize_arm_tdep): Set tm_print_insn.
411 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
412 (XFER_CORE_FILE): Remove.
413 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
414
415 Fri Jan 27 08:48:28 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
416
417 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
418
419 Thu Jan 26 18:24:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
420
421 * symtab.c (find_pc_line): When subtracting one to get a line
422 number, make sure not to end up with zero.
423
424 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
425 problems with those changes were (a) the file didn't compile, (b)
426 they changed memset to bzero--memset is correct, (c) they took out
427 code to deal with boards lacking floating point, (d) who knows
428 what I didn't discover in a quick read.
429
430 Thu Jan 26 17:32:54 1995 Stu Grossman (grossman@cygnus.com)
431
432 * sparcl-tdep.c: Clean up formatting and indentation.
433
434 Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
435
436 * remote-hms.c (hms_ops): Change ref of hr_load_image
437 to gr_load_image.
438 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
439 dcache_poke, dcache_init): Deleted.
440 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
441 Use dcache routines provided by remote-util.h
442
443 Thu Jan 26 12:08:31 1995 Michael Meissner <meissner@cygnus.com>
444
445 * configure.in: Add support for powerpc-*-eabi.
446
447 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
448 PowerPC support.
449
450 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
451
452 * language.h (struct language_defn): New field c_style_arrays.
453 * language.c (unknown_language_defn, auto_language_defn,
454 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
455 asm_language_defn): Set c_style_arrays to true.
456 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
457 f-lang.c (f_language_defn): Set c_style_arrays to false.
458 * valops.c (value_string): If c_style_array is not set,
459 allocate string in gdb (not inferior) using allocate_value.
460
461 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
462 Only call value_coerce_array if current_language->c_style_arrays.
463 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
464
465 * valops.c (chill_varying_type): New predicate.
466 * valops.c (value_cast): Support assigning a fixed string or array
467 to a variable string/array structure.
468
469 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
470 Check index>=lowerbound, and then add lowerbound to index here,
471 instead of in caller. Generalize to arbitrary lval_types.
472 (value_subscript): Use enhanced value_subscripted_rvalue if
473 c_style_arrays is false (and index is in range).
474
475 Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
476
477 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
478 found.
479 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
480 popping up expression window for the first time.
481
482 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
483
484 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
485 TYPE_LENGTH is length in bytes, not bits.
486
487 Wed Jan 25 08:19:35 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
488
489 * infrun.c (proceed): Flush stdout before resuming inferior.
490 * infcmd.c (step_1), annotate.c (annotate_starting):
491 Don't bother to flush here.
492
493 Wed Jan 25 01:11:21 1995 Jeff Law (law@snake.cs.utah.edu)
494
495 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
496 by an ill-advised global search and replace.
497
498 Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
499
500 * gdbtk.tcl (create_registers_window): Work around a radiobutton
501 widget bug to make Options|Natural button work.
502
503 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
504 g++ caused by out-of-order pc's.
505 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
506 add scrollbar.
507
508 Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
509
510 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
511 doc!
512
513 Mon Jan 23 13:11:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
514
515 Add support for Chill bitstring literals (e.h. H'FF00').
516 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
517 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
518 just print B'<unimlemented>'.
519 * gdbtypes.c (create_set_type): Fix bug in length calculation.
520 * valops.c, value.h (value_bitstring): New function.
521 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
522
523 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
524 check that return type is non-void, and print in proper Chill syntax.
525
526 Mon Jan 23 12:20:34 1995 Rob Savoye <rob@darkstar.cygnus.com>
527
528 * Makefile.in: Remove references to remote-mon.c.
529 * remote-mon.c: remove. Replaced by rom68k-rom.c.
530 * rom68k-rom.c: Support for Rom68k monitor.
531
532 Mon Jan 23 10:50:57 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
533
534 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
535 gcc/ch/runtime not chillrt, since that is where the chill runtime
536 lives now.
537
538 Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
539
540 * remote-hms.c (hms_load): Delete.
541 (target_ops): Use hr_load_image.
542
543 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
544 Define memory_insert/remove_breakpoint.
545 * xm-go32.h: Remove redundant SIGs.
546
547 Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
548
549 * ser-go32.c: Rewritten by nigel@algor.co.uk.
550
551 Fri Jan 20 15:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
552
553 * expression.h (OP_LABELED): New operator, for Chill
554 labeled structre tuples.
555 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
556 New non-terminals, to handle labeled structure tuples.
557 (tuple): Re-define using tuple_elements.
558 * eval.c (evaluate_labeled_field_init): New function, to handle
559 initialization of structure fields, possibly using OP_LABELED.
560 (evaluate_subexp): Use it.
561 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
562 for Chill. Handled OP_LABELED.
563 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
564
565 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
566 * valarith.c (value_bit_index): Just treat bitstring as represented
567 by an array of bytes. Alignment is handled by compiler.
568
569 Wed Jan 18 19:00:29 1995 Stan Shebs <shebs@andros.cygnus.com>
570
571 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
572 * sh-tdep.c (gdb_print_insn_sh): Ditto.
573
574 Wed Jan 18 11:25:43 1995 Kung Hsu <kung@mexican.cygnus.com>
575
576 * remote-os9k.c (rombug_open): Fix a bug in exception handling
577 command.
578 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
579 write.
580
581 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
582
583 * parse.c (_initialize_parse): Improve wording of names of
584 msym_*_symbol_type.
585
586 Tue Jan 17 14:00:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
587
588 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
589 (mips_fpu): Change type to enum mips_fpu_type.
590 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
591 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
592 Don't initialize.
593 (mips_fpu_string): New static variable.
594 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
595 (mips_pop_frame): Likewise.
596 (mips_extract_return_value): Likewise.
597 (mips_store_return_value): Likewise.
598 (mips_set_fpu_command): New static function.
599 (mips_show_fpu_command): New static function.
600 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
601
602 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
603
604 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
605
606 * parse.c (write_exp_msymbol): Use new variables
607 msym_*_symbol_type as type of msymbol expression.
608 (_initialize_parse): Initialize them.
609
610 Mon Jan 16 18:11:03 1995 Stan Shebs <shebs@andros.cygnus.com>
611
612 General cleanup and simplication of disassembler interface.
613 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
614 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
615 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
616 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
617 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
618 had been -pinsn.c files.
619 * Makefile.in (ALLDEPFILES): Remove removed files.
620 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
621 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
622 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
623 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
624 Remove compile actions.
625 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
626 vax-tdep.o: Add compile actions.
627 * defs.h (tm_print_insn): New global.
628 * a29k-tdep.c (gdb_print_insn_a29k): New function.
629 (_initialize_a29k_tdep): Rename from _initialize_29k,
630 set tm_print_insn.
631 * alpha-tdep.c (print_insn): Remove.
632 (_initialize_alpha_tdep): Set tm_print_insn.
633 * arm-tdep.c (arm_print_insn): New function, was print_insn
634 in arm-pinsn.c.
635 * convex-tdep.c (convex_print_insn): New function, was print_insn
636 in convex-pinsn.c.
637 * h8300-tdep.c (print_insn): Remove.
638 (gdb_print_insn_h8300): New function.
639 (_initialize_h8300_tdep): New function.
640 * h8500-tdep.c (print_insn): Remove.
641 (_initialize_h8500_tdep): New function.
642 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
643 * i386-tdep.c (_initialize_i386_tdep): New function.
644 * i960-tdep.c (mem, next_insn): New functions, were in
645 i960-pinsn.c.
646 (_initialize_i960_tdep): Set tm_print_insn.
647 * m68k-tdep.c (_initialize_m68k_tdep): New function.
648 * m88k-tdep.c (_initialize_m88k_tdep): New function.
649 * mips-tdep.c (gdb_print_insn_mips): New function.
650 (_initialize_mips_tdep): Set tm_print_insn.
651 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
652 in pyr-pinsn.c.
653 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
654 * sh-tdep.c (print_insn): Remove.
655 (gdb_print_insn_sh): New function.
656 (_initialize_sh_tdep): Set tm_print_insn.
657 * sparc-tdep.c (_initialize_sparc_tdep): New function.
658 * w65-tdep.c (print_insn): Remove.
659 (_initialize_w65_tdep): New function.
660 * z8k-tdep.c (print_insn): Remove.
661 (gdb_print_insn_z8k): New function.
662 (_initialize_z8k_tdep): Set tm_print_insn.
663 * printcmd.c (print_insn): New function, generic disassembler.
664 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
665
666 Mon Jan 16 15:43:29 1995 Kung Hsu <kung@mexican.cygnus.com>
667
668 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
669 and config/a29k/vx29k.mt.
670 * configure.in: add new configuration a29k-*-vxworks.
671 * remote-vx29k.c: new file merged from WRS.
672 * remote-vx.c: merge changes from WRS.
673 * config/a29k/vx29k.mt: new file for new configuration.
674 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
675
676 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
677
678 * breakpoint.h (disable_breakpoint, enable_breakpoint):
679 New declarations.
680 (enum bpdisp): Change name of 'delete' member to 'del'.
681 (struct bpstat): Changed name to 'bpstats'.
682 * breakpoint.c (disable_breakpoint, enable_breakpoint,
683 breakpoint_chain): Made globally visible.
684 (bpstat_stop_status): Use new name for bpstat.
685 (break_command_1, watch_command_1, catch_command_1,
686 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
687 instead of 'delete'.
688 (set_breakpoint_sal): New function.
689 * defs.h (registers_changed_hook): New declaration.
690 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
691 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
692 * main.c (main): Don't scan options when in WIN32 and exit
693 without entering main loop.
694 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
695 * symtab.h (struct symbol, struct partial_symbol): Changed name of
696 member 'class' to 'aclass'.
697 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
698 * top.c (registers_changed_hook): New definition.
699 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
700 in same way as __GO32__.
701 * value.h (c_typedef_print): Rename 'new' argument.
702
703 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
704 * configure.in: Suppprt for w65,
705
706
707 Sat Jan 14 11:18:11 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
708
709 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
710 not stop_pc, to proceed.
711
712 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
713
714 Fri Jan 13 17:52:57 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
715
716 * infcmd.c (signal_command): Accept "signal 0"; the change to not
717 accept it was accidental. "handle 0" and "info signal 0" remain
718 illegal, though.
719
720 Fri Jan 13 15:19:01 1995 Stan Shebs <shebs@andros.cygnus.com>
721
722 * Makefile.in (all): Don't make libgdb-files.
723 (libgdb): New action, makes libgdb-files.
724
725 Thu Jan 12 21:23:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
726
727 * stabsread.c (read_enum_type): When pending enum symbols are
728 put into the enum type, they must be inserted in "backwards
729 order, in case we've overflowed a struct pending buffer.
730
731 start-sanitize-gdbtk
732 Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
733
734 * gdbtk.c, gdbtk.tcl: Update/add copyright.
735 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
736 including dismiss button, and better error handling.
737 * (create_command_win): Bind button 2 to retrieve selection.
738 end-sanitize-gdbtk
739
740 Thu Jan 12 09:33:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
741
742 * README: Add note about SPARCworks cc release 3.0 and higher.
743
744 Add procfs support for Alpha OSF/1-2.x.
745 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
746 OSF/1 native support.
747 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
748 (MUNCH_DEFINE): Removed.
749 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
750 for procfs support.
751 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
752 release 2.x and higher, else alpha-osf1.mh, as the procfs support
753 in release 1.x is incomplete.
754 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
755 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
756 fill_fpgregset): New routines for procfs support.
757 * inftarg.c (_initialize_inftarg): Don't add ptrace support
758 if we have an optional procfs and /proc is accessible.
759 * procfs.c: Include sys/fault.h and sys/syscall.h before
760 including sys/procfs.h.
761 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
762 is defined, additionally perform a PIOCSSIG to really terminate
763 the inferior.
764 (create_procinfo): Always return a result.
765 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
766 PROCFS_DONT_TRACE_IFAULT is defined.
767 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
768 argument to startup_inferior if it is defined.
769 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
770 of tracing exits from exec system calls. Needed for the user level
771 loader under Alpha OSF/1.
772 (do_detach): Clear any pending signal if we want to detach from
773 a process without a signal.
774 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
775 don't issue a PIOCSSIG if pr_cursig already contains the signal we
776 intend to set.
777 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
778 pending signals are numbered from 1 instead of 0.
779 (info_proc_mappings): Increase size of output format for addresses
780 if BFD_HOST_64_BIT is defined.
781 (procfs_stop): Renamed from child_stop.
782 (_initialize_procfs): Don't add procfs support if we have an
783 optional procfs and /proc is not accessible.
784
785 start-sanitize-gdbtk
786 Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
787
788 * gdbtk.tcl: Add button to control mixed source disassembly.
789 Use text widgets in expr window. The give me more control over
790 layout.
791 Add auto-updating of exprs in expression window.
792 Handle expressions out of scope a bit better.
793 Make selected window pop up to the top when invoked via the
794 menubar.
795 Make copyright message have raised relief.
796
797 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
798 during startup.
799 end-sanitize-gdbtk
800
801 Wed Jan 11 17:53:26 1995 Rob Savoye <rob@darkstar.cygnus.com>
802
803 * array-rom.c: Add support for most commands.
804
805 * monitor.c: Add GDB remote protocol for the hybrid environment on
806 the Array board.
807
808 Wed Jan 11 00:44:01 1995 Jeff Law (law@snake.cs.utah.edu)
809
810 * command.c (show_user_1): Use print_command_line to show a user
811 defined command (including control structures).
812
813 * top.c (init_main): Change documentation for user defined
814 commands to indicate they may accept up to ten arguments.
815
816 Tue Jan 10 16:22:41 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
817
818 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
819 `move $s8, $sp' instruction.
820
821 Sun Jan 8 12:45:34 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
822
823 * target.c, target.h (target_signal_from_command): New function.
824 * infrun.c (handle_command, signals_info), infcmd.c
825 (signal_command): Use it.
826 * infrun.c, infcmd.c: Update docstrings for these commands.
827
828 * target.h (enum target_signal), target.c (signals), target.c
829 (target_signal_from_host, target_signal_to_host): Add
830 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
831 * config/tm-lynx.h: Define signal numbers for realtime events.
832
833 Sat Jan 7 07:23:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
834
835 * dbxread.c (process_one_symbol): Handle N_FUN symbols
836 for Sun acc 3.0 under SunOS4.
837
838 Changes to improve handling of runtime common symbols
839 under SunOS4.
840 * minsyms.c (get_symbol_leading_char): New routine to determine
841 the leading symbol character for an objfile.
842 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
843 Use it.
844 * objfiles.h (rt_common_objfile): New global, points to objfile
845 containing the runtime common minimal symbols.
846 * objfiles.c (free_objfile): Mark rt_common_objfile as
847 unallocated before freeing it.
848 * solib.c (allocate_rt_common_objfile): New routine to allocate
849 an objfile for the runtime common minimal symbols.
850 (solib_add_common_symbols): Allocate an objfile for the runtime
851 common symbols if necessary and put common symbols into it.
852 Clean up code and comments.
853 (solib_add, special_symbol_handling): Cleanup comments regarding
854 runtime common symbols.
855 * stabsread.c (scan_file_globals_1): New routine, contains
856 old scan_file_globals code. Checks if there are any unresolved
857 global symbols before starting the expensive minimal symbol table
858 search.
859 (scan_file_globals): Now calls scan_file_globals_1 for the passed
860 objfile and eventually for the runtime common objfile. Complains
861 about any unresolved global symbols and removes them from the
862 global symbol chain to avoid dangling pointers into the symbol
863 table if the symbol table is reread.
864
865 Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
866
867 * Makefile.in (install_only uninstall): Indent for clarity.
868
869 * core.c (dis_asm_read_memory): Add call to
870 dis_asm_read_memory_hook to provide alternate way for disassembler
871 to read memory.
872
873 * defs.h: Protect from multiple inclusion. Add decl for
874 dis_asm_read_memory_hook.
875
876 * top.c: Make window startup be the default.
877 * Add dis_asm_read_memory_hook.
878
879 start-sanitize-gdbtk
880 * gdbtk.c (finish_saving_output): Don't do anything if not saving
881 output.
882 * (breakpoint_notify): Don't send null filename to tcl.
883 * (gdb_eval): New tcl command to eval an expression.
884 * (gdb_disassemble): New tcl command to do disassembly. This
885 allows tcl code to choose between exec file and target memeory,
886 and can also do mixed source and assembly.
887 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
888 that more of the environment is set up. Also, create link between
889 gdb and tcl vars disassemble{-_}from{-_}exec.
890
891 * gdbtk.tcl: New expression window support.
892 * Make assembly window be 80 columns wide.
893 * Use new disassembly method. Add menu items to select
894 disassembly from exec file or target.
895 * Change View menubar item to Options.
896
897 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
898 since they don't exist yet.
899
900 * Pop up a copyright window on startup.
901 end-sanitize-gdbtk
902
903 Thu Jan 5 01:16:40 1995 Jeff Law (law@snake.cs.utah.edu)
904
905 * stabsread.c (define_symbol): Handle `a' symbol type used for
906 reference parameter passed in a register.
907
908 start-sanitize-gdbtk
909 Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
910
911 * gdbtk.tcl (build_framework): Add standard commands menu, more
912 windows to standard windows menu.
913 (not_implemented_yet): Clarify message.
914 end-sanitize-gdbtk
915
916 Wed Jan 4 12:27:29 1995 Kung Hsu <kung@mexican.cygnus.com>
917
918 * defs.h: move include tm.h up, so that the type LONGEST can
919 also based on the target requirement to determine. In this case
920 target mips64.
921
922 * remote-os9k.c (rombug_open): catch exception e in rombug.
923 * remote-os9k.c (rombug_wait): print message before register display
924 from rombug.
925
926 Wed Jan 4 09:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
927
928 * top.c (locate_arg): Call strchr not index.
929
930 Tue Jan 3 16:52:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
931
932 * ch-exp.y (literal): Recognize NULL.
933 (tuple): Parse simple unlabelled tuples.
934 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
935 evaluate brace-initializer-expressions depending on context.
936 (evaluate_subexp case UNOP_CAST): Pass the target type as
937 expected type when evaluating the expression.
938
939 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
940 BOOL from TYPE_NAME.
941 * ch-valprint.c (chill_print_type_scalar): New function, to handle
942 TYPE_CODE_RANGE better than print_type_scalar does.
943 (chill_val_print_array_elements): Use above new function.
944
945 Mon Jan 2 15:02:51 1995 Stan Shebs <shebs@andros.cygnus.com>
946
947 * remote-udi.c (udi_load): Tell symbol_file_add that the
948 program being loaded is the main program.
949
950 For older changes see ChangeLog-94
951 \f
952 Local Variables:
953 mode: indented-text
954 left-margin: 8
955 fill-column: 74
956 version-control: never
957 End:
This page took 0.065496 seconds and 5 git commands to generate.