* top.c (execute_control_command): Use 0/1 instead of BFD's
[binutils-gdb.git] / gdb / ChangeLog
1 Fri Oct 6 17:08:49 1995 Stan Shebs <shebs@andros.cygnus.com>
2
3 * top.c (execute_control_command): Use 0/1 instead of BFD's
4 true/false.
5
6 Fri Oct 6 14:43:19 1995 Stu Grossman (grossman@cygnus.com)
7
8 * sparcl-stub.c: Include sparclite.h to get access to register
9 fondling macros.
10 * (trap_low): Save and restore FP regs if necessary. Also, clean
11 up save and restore of debug unit regs.
12 * (hard_trap_info): Add more architecturally defined traps.
13 * (set_debug_traps): Only set FP disabled trap if FP is disabled.
14 * (get_in_break_mode): Clean up. Get rid of calls to
15 set_hw_breakpoint_trap(). Also, use write_asi macro.
16 * (handle_exception): Clean up `g' and `G' commands. Add `P'
17 command.
18 * (hw_breakpoint): Why was this here!? It's gone now...
19
20 Fri Oct 6 11:56:49 1995 Jim Wilson <wilson@chestnut.cygnus.com>
21
22 * callback.c (fdbad): Fix typo in comment.
23 (os_close, os_isatty, os_lseek, os_read, os_write): Use if
24 statements rather than || to get correct return value.
25 (os_write_stdout): Pass missing first argument to os_write.
26 * remote-sim.c: Include callback.h.
27 (_initialize_remote_sim): Call sim_set_callbacks and then
28 initialize the callbacks.
29
30 Thu Oct 5 17:28:09 1995 Per Bothner <bothner@kalessin.cygnus.com>
31
32 * values.c allocate_repeat_value): Allocate an array type, and
33 a value of that type; use that instead of setting VALUE_REPEATED.
34 * value.h (struct value): Remove fields repetitions and repeated.
35 (VALUE_REPEATED, VALUE_REPETITIONS): Removed, no longer used.
36 * c-valprint.c, ch-valprint.c, eval.c, printcmd.c, valops.c,
37 value.h, values.c: Simplify, since now VALUE_REPEATED is never
38 used.
39 * valprint.c (value_print_array_elemen): Removed never-used
40 function.
41
42 Thu Oct 5 15:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
43
44 * parse.c (write_dollar_variable): New function.
45
46 * c-exp.y (yylex): Replace code for recognizing '$'
47 pseudo-variables with a call to write_dollar_variable.
48 Simplify grammar correspondingly.
49 * f-exp.y: Likewise.
50 * m2-exp.y: Likewise.
51 * ch-exp.y: Likewise. (Remove function match_dollar_tokens.)
52 * scm-exp.c (scm_lreadr): Call write_dollar_variable to handle '$'.
53
54 Thu Oct 5 13:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
55
56 * win32.c: New file; support for debugging on windows NT.
57 * configure.in: (i[345]86-*-win32): New target.
58 * configure: Regnerated.
59 * eval.c (evaluate_subexp_standard): Remove unused name.
60 * serial.c (gdb_string.h): Include.
61 * source.c (value.h): Include.
62 * config/i386/i386win32.mh (XDEPFILES): Add win32.o
63 * config/i386/i386win32.mt: New.
64 * config/i386/tm-i386win32.h: New.
65
66 Wed Oct 4 18:41:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
67
68 * expression.h (enum exp_code): Added OP_NAME.
69 * expprint.c (print_subexp): Add OP_NAME support.
70 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
71 * scm-lang.c (scm_unpack, in_eval_c, scm_lookup_name): new function.
72 * scm-lang.h: Declare builtin_type_scm; other minor tweaks.
73 * values.c (unpack_long): If type is SCM, call scm_unpack.
74 * scm-valprint.c (scm_val_print): Use extract_signed_integer,
75 instead unpack_long
76 * scm-lang.c: More Scheme expression parsing from here ...
77 * scm-exp.c: ... to here. New file.
78 Also, provide for gdb to evaluate simple constants and names..
79 * Makefile.in: Note new scm-exp.{c,o}.
80
81 Wed Oct 4 17:23:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
82
83 * gdbtypes.c (get_discrete_bounds): New function.
84 (force_to_range_type): Use get_discrete_bounds.
85 * gdbtypes.h (get_discrete_bounds): Add declaration.
86 * valarith.c (value_bit_index): Generalize to use get_discrete_bounds.
87 * ch-valprint.c (chill_val_print): Make (power)sets and bitstring
88 support use get_discrete_bounds and generally be more robust.
89
90 Tue Oct 3 16:54:56 1995 Stan Shebs <shebs@andros.cygnus.com>
91
92 * remote-nrom.c (nrom_ops): Add value for to_thread_alive,
93 add comments naming slots.
94
95 Mon Oct 2 21:45:44 1995 Jeff Law (law@hurl)
96
97 * top.c (build_command_line): Demand arguments for if/while
98 commands.
99
100 Mon Oct 2 13:08:01 1995 Jason Molenda (crash@phydeaux.cygnus.com)
101
102 * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@.
103
104 Sat Sep 30 16:13:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
105
106 * scm-lang.c: Moved Scheme value printing code to ...
107 * scm-valprint.c: ... this new file.
108 Also major improvements in support for printing SCM values.
109 * scm-lang.h: New file.
110 * scm-tags.h: New file.
111 * Makefile.in: Note new scm-valprint.{c,o}.
112
113 Sat Sep 30 09:35:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
114
115 * configure.in: X_INCDIR and X_LIBDIR added.
116 * Makefile.in: @X_INCDIR@ and @X_LIBDIR@ added.
117 * configure: Regnerated.
118
119 Fri Sep 29 02:10:05 1995 steve chamberlain <sac@slash.cygnus.com>
120
121 * config/arm/tm-arm.h (FRAME_CHAIN, FRAME_CHAIN_VALID):
122 Any pc > LOWESTPC is ok.
123
124 * remote-rdp.c (rdp_init): Take out variable baud rate stuff.
125 (remote_rdp_detatch): Delete.
126 * breakpoint.c (ctype.h): Don't include twice.
127
128 * Makefile.in (remote-rdp.o): Doesn't need remote-rdp.h
129 * callback.c (os_printf_filtered): fix protos.
130 * defs.h (puts_filtered, puts_unfiltered
131 [v|f|]printf_[un]filtered): Make format arg const.
132 * remote-rdp.c (rdp_init): Attept to sync at different
133 baudrates.
134 * utils.c (puts_filtered, puts_unfiltered
135 [v|f|]printf_[un]filtered): Define prototypes with
136 const in the right place.
137
138 Thu Sep 28 17:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
139
140 * defs.h (enum language): Add language_scm.
141 * expression.h (enum exp_code): Added OP_EXPRSTRING.
142 * scm-lang.c: Preliminary support for Guile /SCM dialect of Scheme.
143 * expprint.c (print_subexp): Add OP_EXPRSTRING support.
144 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
145 * valops.c (find_function_in_inferior): New function.
146 (value_allocate_space_in_inferior): New function.
147 (allocate_space_in_inferior): Redefine using previous function.
148 * Makefile.in (SFILES): Add scm-lang.c.
149 (COMMON_OBS): Add scm-lang.o
150
151 Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
152
153 * callback.[ch]: New files.
154 * remote-rdp.c: Support for the ARM RDP monitor.
155 * Makefile: Update.
156 * arm-tdep.c (arm_othernames): New.
157 (_initialize_arm_tdep): install 'othernames' command.
158 (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
159 * configure.in: Check for termios.h, termio.h and sgtty.h.
160 (i[345]86-*-win32*): New host.
161 * configure: Regenerated.
162 * inflow.c: Clean up inclusions.
163 * main.c (main): Check for WINGDB, not WIN32.
164 * printcmd.c (do_examine): Put QUIT test in loop.
165 * remote-hms.c (e7000_load): Delete.
166 (hms_ops): Point to generic_load instead.
167 * remote-hms.c (hms_ops): Point to generic_load.
168 * remote-sim.c (sim_callback_write_stdout): Becomes
169 gdbsim_write_stdout.
170 (gdbsim_load): Call generic_load.
171 * remote-utils.c (gr_load_image): Delete.
172 * ser-unix.c (terminal.h): Include instead of havig
173 own #if tree.
174 (hardwire_flush_input): Reset input buffer too.
175 * source.c (openp): If WIN32 then open file in binary mode.
176 * terminal.h: Configure IO mechanism using autoconf defines if
177 available and not overriden.
178 * utils.c (quit, pollquit, notice_quit): WIN32 check becomes
179 WINGDB check.
180
181 * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o.
182 * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes
183 TARGET_BYTE_ORDER_SELECTABLE.
184 (ADDR_BITS_REMOVE): New.
185 (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New.
186 (INST_xx): New.
187 (FRAME_FIND_SAVED_REGS): Pass the right argument.
188 (arm_get_next_pc): Declare.
189
190 Wed Sep 27 10:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
191
192 * valops.c (search_struct_field): Also allow "else" as a variant
193 name.
194 * eval.c (evaluate_struct_tuple): New function. Used to evaluate
195 structure tuples. Now also handles Chill variant records.
196 (get_label): New function, used by evaluate_struct_tuple.
197 (evaluate_subexp_standard case OP_ARRAY): Use evaluate_struct_tuple.
198 (evaluate_labeled_field_init): Removed.
199
200 * valops.c (search_struct_field): Generalize to work with Chill
201 variant records.
202
203 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
204
205 * mdebugread.c (parse_partial_symbols): Reset includes_used
206 and dependencies_used after finishing the partial symbol table.
207
208 * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
209 correctly.
210
211 * rs6000-nat.c (xcoff_relocate_core): Don't relocate data
212 addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE
213 is defined.
214 * xcoffread.c: gcc -Wall lint. Remove traceback table reading
215 code. The existing code tried to add parameter information for
216 functions compiled without -g, which cannot be done properly
217 for optimized code and produced misleading parameter displays.
218 (ef_complaint, eb_complaint): Make a local static copy to avoid
219 dependency on coffread.c.
220 (read_xcoff_symtab, process_xcoff_symbol, scan_xcoff_symtab):
221 Enter C_EXT/C_HIDEXT symbols into the minimal symbol table only.
222 (read_xcoff_symtab): Ignore C_STAT section auxiliary entry
223 symbols. Complain about unmatched .ef and .eb symbols instead of
224 segfaulting.
225 (process_xcoff_symbol): Determine value of C_GSYM symbols via
226 the global_sym_chain mechanism in stabsread.c.
227 (xcoff_new_init): Call stabsread_new_init and buildsym_new_init.
228 (init_string_tab): Initialize length field bytes in the strtbl.
229 (scan_xcoff_symtab): Skip symbols that start with `$' or `.$'.
230 Set first_fun_line_offset for symbols with two auxents only.
231
232 Wed Sep 20 21:06:35 1995 Jeff Law (law@snake.cs.utah.edu)
233
234 * op50-rom.c (op50n_cmds): Send ".\r" after the interrupt
235 character.
236
237 Wed Sep 20 13:12:56 1995 Ian Lance Taylor <ian@cygnus.com>
238
239 * Makefile.in (maintainer-clean): New target, synonym for
240 realclean. Add GNU standard maintainer-clean echos.
241 * gdbserver/Makefile.in (maintainer-clean): New target, synonym
242 for realclean.
243 * nlm/Makefile.in (maintainer-clean): Likewise.
244
245 Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
246
247 * defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
248 (GETENV_PROVIDED, FCLOSE_PROVIDED): New.
249 * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
250 * remote-sim.[ch] (sim_callback_write_stdout): New.
251
252 Tue Sep 19 15:28:58 1995 Per Bothner <bothner@kalessin.cygnus.com>
253
254 * gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.
255 * valops.c (value_bitstring): TYPE_LENGTH is bytes, not bits.
256
257 * gdbtypes.c (force_to_range_type): Calculate upper limit of
258 TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
259
260 Mon Sep 18 01:43:42 1995 Jeff Law (law@snake.cs.utah.edu)
261
262 * somsolib.c (auto_solib_add_at_startup): Delete definition. No
263 longer needed.
264
265 Sat Sep 16 13:23:36 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
266
267 * config/mips/tm-mips.h (UNUSED_REGNUM): Define.
268 * mipsv4-nat.c (supply_gregset): Fill UNUSED_REGNUM register
269 with zero.
270
271 Thu Sep 14 17:35:24 1995 Stu Grossman (grossman@cygnus.com)
272
273 * remote-sim.c (gdbsim_create_inferior): Back out change that
274 broke all simulator configurations except the rs6000.
275
276 Thu Sep 14 14:44:59 1995 Jeffrey A. Law <law@rtl.cygnus.com>
277
278 * monitor.c (monitor_expect): Discard NULL characters.
279
280 Thu Sep 14 14:12:30 1995 Kung Hsu <kung@mexican.cygnus.com>
281
282 * infcmd.c: Add extern declaration for auto_solib_add_at_startup.
283
284 Wed Sep 13 13:33:58 1995 Kung Hsu <kung@mexican.cygnus.com>
285
286 * symfile.c: Move global variable auto_solib_add_at_startup from
287 solib.c to symfile.c.
288 * solib.c: ditto.
289 * symfile.h: Add extern declaration of the above mentioned variable.
290 * infcmd.c: Take out extern declaration, since it's in symfile.h.
291
292 Thu Sep 14 12:39:35 1995 Stu Grossman (grossman@cygnus.com)
293
294 * coffread.c (coff_symtab_read): Complain about unmatched .ef and
295 .eb symbols instead of segfaulting.
296
297 Wed Sep 13 13:33:58 1995 Kung Hsu <kung@mexican.cygnus.com>
298
299 * stabsread.c (read_one_struct_field): Use subfile language instead of
300 global language. Improve efficiency.
301
302 Wed Sep 13 08:45:02 1995 Jeff Law (law@fast.cs.utah.edu)
303
304 * somsolib.c (auto_solib_add_at_startup): Define new global variable.
305 (som_solib_create_inferior_hook): Don't add libraries if
306 auto_solib_add_at_startup is zero.
307 (_initialize_som_solib): Add command to toggle
308 auto_solib_add_at_startup.
309
310 Tue Sep 12 19:37:24 1995 Jeff Law (law@snake.cs.utah.edu)
311
312 * monitor.c (monitor_make_srec): Fix thinkos in computation
313 of addr_size.
314
315 Tue Sep 12 15:46:18 1995 Kung Hsu <kung@mexican.cygnus.com>
316
317 * stabsread.c (read_one_struct_field): Add a patch to handle cfront
318 generated stabs that each field is in full mangled name.
319
320 * stabsread.c: To include language.h and expression.h for the reason
321 above.
322
323 * infcmd.c (attach_command): Add solibs only when
324 auto_solib_add_at_startup is set.
325
326 Mon Sep 11 17:22:35 1995 Fred Fish <fnf@cygnus.com>
327
328 * NEWS: Add information about remote target caching.
329
330 Sun Sep 10 15:36:21 1995 Fred Fish <fnf@cygnus.com>
331
332 * defs.h: Only include mmalloc.h if NO_MMALLOC is not
333 defined.
334
335 Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
336
337 * tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
338 simulator. FIXME.
339
340 * rs6000-tdep.c (push_dummy_frame): Calculate the correct link
341 register offset from the current frame (don't assume it is always 8).
342 (push_dummy_frame): Add comment about having only 4096 bytes of
343 stack space in the simulator (by default).
344
345 * remote-sim.c (gdbsim_create_inferior): Call
346 `add_text_to_loadinfo' so that gdb can find TOC entries when
347 calling functions in the inferior.
348
349 Sun Sep 10 09:00:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
350
351 * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
352 substitution.
353 (supply_fpregset): Use FP_MAX_REGNUM.
354
355 Sat Sep 9 08:21:52 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
356
357 * stabsread.c (read_enum_type): Exit loop for putting pending
358 enum symbols into the enum type correctly if we had no pending
359 symbols on entry to read_enum_type.
360
361 Fri Sep 8 12:57:41 1995 Kung Hsu <kung@mexican.cygnus.com>
362
363 * inferior.h: Add extern declaration of inferior_environ.
364 * solib.c (solib_map_sections): To get inferior's env instead of
365 gdb's for LD_LIBRARY_PATH, same for PATH.
366
367 * solib.c (solib_map_sections): Copy full path name into so_list
368 structure so that symbol_file_add can find it.
369
370 Tue Sep 5 17:47:53 1995 Doug Evans <dje@canuck.cygnus.com>
371
372 * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
373 have size 4.
374 (REGISTER_VIRTUAL_SIZE): Likewise.
375 (REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
376 Upper 32 fp regs have type double.
377 * sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
378 (FP_REGISTER_BYTES): this, and update all uses.
379 (FP_MAX_REGNUM): Define if not already.
380 (get_saved_register): Handle new sparc64 fp regs.
381 (sparc_frame_find_saved_regs): Likewise.
382 (sparc_print_register_hook): Only print fp regs < 32 as doubles.
383 Add code to handle long doubles when gdb does.
384 (_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
385
386 Sat Sep 2 06:41:26 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
387
388 * configure.in: Explicitly `exit 0' for broken shells.
389 * configure: Rebuilt.
390
391 * symtab.c (list_symbols): Add missing blank after
392 `<function, no debug info>' output.
393
394 * valops.c (value_assign): Handle truncation when assigning
395 to bitfields. Use value_copy to construct the return value
396 from toval.
397 * values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
398
399 Fri Sep 1 08:25:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
400
401 * configure (mips64*vr4300*-*-elf): Support added.
402 * remote-mips.c (mips_readchar): Change to allow build-time prompt
403 string.
404 * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
405 * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h,
406 tm-vr4300el.h}: Added.
407
408 Thu Aug 31 12:48:04 1995 Jim Wilson <wilson@chestnut.cygnus.com>
409
410 * config/sh/sh.mt (SIM): Add -lm.
411
412 Wed Aug 30 18:10:57 1995 Kung Hsu <kung@mexican.cygnus.com>
413
414 * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
415 conform to GNU coding standards.
416
417 * solib.c (match_main): Modify to follow GNU coding conventions.
418
419 Mon Aug 28 17:07:26 1995 Kung Hsu <kung@lisa.cygnus.com>
420
421 * remote.c (remote_wait): Revert 19 July my change which should be
422 customer specific.
423
424 Sat Aug 26 00:26:11 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
425
426 * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
427 Determine signedness of enum type from enumerators.
428 (parse_type): Handle btIndirect types, handle fBitfield for
429 some non-member types.
430 (upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with
431 unknown length.
432 (cross_ref): Handle stIndirect forward reference to btTypedef.
433
434 * stabsread.c (read_enum_type): Determine signedness of enum
435 type from enumerators.
436
437 * top.c (execute_command): Remove trailing whitespace from
438 command arguments, except for `set' and `complete' commands.
439 (validate_comname): Allow underscores in user defined command
440 names.
441
442 * values.c (modify_field): Change `Value does not fit in %d bits'
443 error to a warning. Exclude sign extension bits of negative field
444 values from fit check.
445
446 Fri Aug 25 11:31:29 1995 Michael Meissner <meissner@tiktok.cygnus.com>
447
448 * configure.in (powerpc*-*-eabisim*): Only link in the simulator
449 if the target is powerpc{,le}-*-eabisim*, since the simulator
450 needs GCC to build.
451 * config/powerpc/ppc{,le}-sim.mt: Cloned from ppc{,le}-eabi.mt.
452 * config/powerpc/ppc{,le}-eabi.mt: Remove simulator support.
453 * config/powerpc/tm-ppc{,le}-sim.mt: Include tm-ppc{,le}-sim.h.
454
455 Wed Aug 23 16:55:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
456
457 * config/powerpc/ppc{,le}-eabi.mt (SIM_OBJS, SIM): Link in the
458 PowerPC simulator.
459
460 Tue Aug 22 02:00:47 1995 Jeff Law (law@snake.cs.utah.edu)
461
462 * tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values.
463
464 * tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
465 calling conventions too. Use the TYPE of the return value, not
466 its length to determine if it should also be copied into the
467 floating point registers.
468
469 * tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
470 problems than it fixes.
471 * hppa-tdep.c (skip_prologue): If we exit the main loop without
472 finding all the register saves, retry again without looking for
473 the registers we could not find the first time.
474
475 Mon Aug 21 23:39:56 1995 Jeff Law (law@snake.cs.utah.edu)
476
477 * hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
478 calls "main" directly.
479 (skip_prologue): Always assume arguments were saved into the stack
480 since GCC will do so without setting the magic Args_Saved bit in
481 the unwind descriptor.
482
483 Mon Aug 21 11:49:17 1995 Kung Hsu <kung@mexican.cygnus.com>
484
485 * remote-udi.c (udi_wait): Mask off high bits of stop reason.
486 * remote-udi.c (fetch_register): For unfetchable regs, pretend it's
487 done. Fix a bug.
488
489 Mon Aug 21 00:45:17 1995 Jeff Law (law@snake.cs.utah.edu)
490
491 * Makefile.in (install): Remove "brokensed" hack, unnecessary now
492 that we're using autoconf.
493 (uninstall): Likewise.
494
495 Sat Aug 19 17:20:22 1995 Michael Tiemann <tiemann@axon.cygnus.com>
496
497 * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
498 "disable".
499 Also, wire up the breakpoint window so that it can be demo'd.
500
501 Sat Aug 19 01:19:34 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
502
503 * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
504 to inhibit infinite recursion when printing aggregate types.
505
506 Fri Aug 18 17:48:55 1995 steve chamberlain <sac@slash.cygnus.com>
507
508 * dcache.c (dcache_write_line): Write dirty lines right.
509
510 Fri Aug 18 06:26:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
511
512 * sparc-tdep.c (isbranch): Fix typo which caused wrong
513 target addresses for annulled branches.
514
515 Wed Aug 16 21:54:39 1995 Jeff Law (law@snake.cs.utah.edu)
516
517 * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.
518
519 Tue Aug 15 07:51:21 1995 steve chamberlain <sac@slash.cygnus.com>
520
521 * remote.c (remote_write_bytes): Chop up large transfers.
522
523 Mon Aug 14 17:56:36 1995 Stan Shebs <shebs@andros.cygnus.com>
524
525 * gcc.patch: Remove, relevant only to long-ago versions of GCC.
526
527 Mon Aug 14 13:43:01 1995 Kung Hsu <kung@mexican.cygnus.com>
528
529 * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.
530 * blockframe.c (inside_main_func): If main func addr range not set,
531 try to set it now.
532
533 Sat Aug 12 15:34:54 1995 Jeffrey A. Law <law@rtl.cygnus.com>
534
535 * config/powerpc/xm-aix.h (FIVE_ARG_PTRACE): Define.
536 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
537
538 * configure.in: Recognize aix4 specially as some aspects
539 of aix4 need different handling than aix3.
540 * configure: Updated.
541 * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: New files
542 specific to aix4 support on the power pc.
543 * config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do
544 not defined. The aix4 specific target files will do that.
545 * config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files
546 specific to aix4 support on the rs6000.
547
548 * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't
549 do the conversion if the pointer is not a magic aix function
550 pointer.
551 * rs6000-tdep.c: Include objfiles.h and symtab.h.
552 (is_magic_function_pointer): New function.
553
554 * rs6000-tdep.c (skip_prologue): Refine check for frameless
555 functions. Handle b .+4 emitted by aix4 compilers. Only
556 allow one load of a minimal toc pointer. Handle aix4 compiler's
557 code for alloca.
558
559 * rs6000-tdep.c (find_toc_address): Report an error if no toc was
560 found rather than possibly core dumping.
561
562 * partial-stab.h: Handle extra field generated by the aix4 compiler
563 for enumerations.
564 * stabsread.c (read_enum_type): Likewise.
565
566 Sat Aug 12 03:18:04 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
567
568 * rs6000-tdep.c (extract_return_value): Fix returning of values
569 whose length is less than the register size for big endian targets.
570
571 Fri Aug 11 13:04:32 1995 Kung Hsu <kung@mexican.cygnus.com>
572
573 * symtab.c (list_symbols): if break command set breakpoint on
574 matched symbol.
575
576 Wed Aug 9 18:59:05 1995 Fred Fish <fnf@cygnus.com>
577
578 * defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in
579 #ifndefs to protect against previous definitions as macros.
580
581 Wed Aug 9 14:51:36 1995 Kung Hsu <kung@mexican.cygnus.com>
582
583 * xcoffread.c (xcoff_symfile_offset): Revert an unwanted change
584 that got in accidentally with Aug 1 change.
585
586 Sat Aug 5 09:07:28 1995 steve chamberlain <sac@slash.cygnus.com>
587
588 * remote-hms.c (hms_cmds): Get reg term right.
589 * monitor.c (monitor_fetch_register): If we see
590 a non-hex digit, just stop reading.
591 * remote.c (remote_wait): Change way $O is handled.
592
593 Wed Aug 9 11:42:36 1995 Jeffrey A. Law <law@rtl.cygnus.com>
594
595 * configure.in (powerpc-*-aix*): Recognize as a new gdb host
596 and target.
597 (powerpc-*-eabi*): Don't set configdirs.
598 (powerpcle-*-eabi*): Likewise.
599 * configure: Updated.
600 * rs6000-nat.c (vmap_ldinfo): Don't relocate data addresses
601 for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is
602 defined.
603 * config/powerpc/{aix.mh,aix.mh}: Host and target makefile fragments
604 for powerpc running aix4.
605 * config/powerpc/{nm-aix.h, tm-ppc-aix.h, xm-aix.h}: Native, target
606 and host include files for powerpc running aix4.
607
608 Wed Aug 9 08:11:45 1995 Stan Shebs <shebs@cygnus.com>
609
610 * top.c (target_output_hook): Really make it match defs.h (char *
611 is not the same as unsigned char *).
612
613 Tue Aug 8 15:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
614
615 * Makefile.in (CXX_FOR_TARGET): Don't use ${rootme}/../gcc/xgcc
616 unless it is present.
617
618 Tue Aug 8 10:50:15 1995 Jeffrey A. Law <law@rtl.cygnus.com>
619
620 * top.c (target_output_hook): Make declaration match the one
621 in defs.h.
622
623 * symfile.c (add_psymbol_to_list): Initialize SYMBOL_SECTION.
624 (add_psymbol_addr_to_list): Likewise.
625 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Likewise.
626
627 Mon Aug 7 15:34:29 1995 steve chamberlain <sac@slash.cygnus.com>
628
629 * top.c (target_output_hook): New definition.
630 * stack.c (gdb_string.h): Include after defs.h
631 * defs.h (target_output_hook): New declaration.
632 * source.c (mod_path): Fix Win32 \ handling.
633
634 Sun Aug 6 22:14:25 1995 Jeff Law (law@snake.cs.utah.edu)
635
636 * hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
637 out of a long branch stub.
638
639 Fri Aug 4 13:37:31 1995 Jeffrey A. Law <law@rtl.cygnus.com>
640
641 * xcoffread.c (process_linenos): Fix typo in last change.
642
643 Thu Aug 3 22:01:26 1995 Fred Fish <fnf@rtl.cygnus.com>
644
645 * ch-exp.y (write_lower_upper_value): Add prototype so bison
646 generated parser will insert prototype before first func usage.
647 Bison and byacc order the output sections differently. Also
648 make function static.
649
650 Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
651
652 * Update all FSF addresses except those in COPYING* files.
653
654 Thu Aug 3 01:38:45 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
655
656 * config/alpha/tm-alpha.h (EXTRA_FRAME_INFO): Add pc_reg field.
657 (SKIP_TRAMPOLINE_CODE): Define.
658 * alpha-tdep.c (alpha_frame_saved_pc): Use pc_reg field from
659 frame to find the saved pc register.
660 (alpha_saved_pc_after_call): Skip over shared library trampoline
661 before trying to find the saved pc register.
662 (find_proc_desc): Copy PROC_PC_REG from found proc_desc
663 to heuristic proc_desc.
664 (init_extra_frame_info): Initialize pc_reg field in frame.
665
666 Wed Aug 2 18:00:36 1995 Stan Shebs <shebs@andros.cygnus.com>
667
668 * configure.in (m68*-est-*): Use monitor target config.
669 * configure: Update.
670 * config/m68k/est.mt, config/m68k/tm-est.h: Delete.
671 * config/m68k/monitor.mt, config/m68k/tm-monitor.h: Fix comments.
672
673 Tue Aug 1 22:52:53 1995 Fred Fish <fnf@cygnus.com>
674
675 * Makefile.in (VERSION): Bump to 4.14.2
676
677 Tue Aug 1 16:04:36 1995 Kung Hsu <kung@mexican.cygnus.com>
678
679 * xcoffread.c (process_linenos): The value in include file symbol
680 should point to line number table. Currently this value is not
681 set correctly by AIX ld. A fix to get around this bug.
682
683 Tue Aug 1 11:44:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
684
685 * configure.in: Check for working mmap, ansi headers, string.h,
686 strings.h, and memory.h.
687 * configure: Regenerated.
688
689 * gdb_stat.h: New file, "portable" <sys/stat.h>.
690 * gdb_string.h: New file, "portable" <string.h>.
691
692 * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
693 convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
694 gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
695 i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
696 mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
697 rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
698 symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
699 ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
700 instead of <sys/stat.h>.
701
702 * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
703 ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
704 core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
705 dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
706 exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
707 fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
708 inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
709 m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
710 monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
711 printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
712 remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
713 remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
714 remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
715 remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
716 remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
717 solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
718 symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
719 valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
720 "gdb_string.h" instead of <string.h>.
721 start-sanitize-gdbtk
722 * gdbtk.c: Likewise.
723 end-sanitize-gdbtk
724
725 * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
726 sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
727
728 * config/xm-lynx.h, config/i386/xm-ptx.h,
729 config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
730 config/mips/xm-irix3.h, config/mips/xm-mips.h,
731 config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
732 config/pa/hppah.h, config/rs6000/xm-rs6000.h,
733 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
734 config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
735 config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
736 * config/mips/xm-irix3.h, config/mips/xm-mips.h,
737 config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
738
739 Tue Aug 1 02:08:30 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
740
741 * mips-tdep.c (mips_extract_return_value): Fix returning of
742 values whose length is less than the register size for big endian
743 targets.
744 * alpha-tdep.c (alpha_extract_return_value,
745 alpha_store_return_value): Use alpha_convert_register_to_*
746 to handle functions returning "float" correctly.
747
748 Mon Jul 31 19:12:48 1995 Stan Shebs <shebs@andros.cygnus.com>
749
750 * h8500-tdep.c: General linting and cleanup.
751 (opcodes/h8500-opc.h): Don't include.
752 (code_size, data_size): Make static.
753 (frame_locals_address, frame_args_address): Remove.
754 (h8300_pop_frame): Rename to h8500_pop_frame.
755 (big_command, medium_command, compact_command, small_command):
756 Define as regular functions rather than with macro trickery.
757 (tm_print_insn): Set to correct disassembler function.
758 * config/h8500/tm-h8500.h: Minor cleanup, add prototypes.
759 (ABOUT_TO_RETURN): #if 0 out.
760 (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Use usual define.
761 (GDB_TARGET_IS_H8500): Remove duplicate definition.
762 (regoff): Remove, never used.
763 * config/h8500/h8500.mt (TDEPFILES): Add monitor.o.
764
765 Mon Jul 31 14:32:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
766
767 * configure.in: Check for unistd.h.
768 * configure: Regenerated.
769
770 * command.c, cp-valprint.c, fork-child.c, i386-tdep.c,
771 i386b-nat.c, inflow.c, main.c, maint.c, objfiles.c, solib.c,
772 source.c, stack.c, symfile.c, top.c, utils.c: Include strings.h
773 and/or unistd.h to bring prototypes into scope.
774
775 Sun Jul 30 01:40:11 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
776
777 * rs6000-tdep.c (frame_saved_pc): Check for signal handler caller
778 before trying to determine the start of the function.
779 (skip_prologue): Skip subroutine call which might save the
780 floating point registers only if it is within the first three
781 instructions.
782 Reinstate setting of alloca_reg if setup of a gcc frame pointer
783 is found.
784 (frame_get_cache_fsr): Use new fields in rs6000_framedata.
785
786 Sat Jul 29 14:43:35 1995 Stan Shebs <shebs@andros.cygnus.com>
787
788 * sparclite: Removed subdirectory. aload and eload are now in
789 utils/sparclite, low-level library is in libgloss.
790 * configure.in (sparclite*): Don't configure sparclite subdir.
791 * configure: Update.
792 * Makefile.in (TARDIRS): Remove, no longer used.
793
794 Sat Jul 29 01:45:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
795
796 * procfs.c (unconditionally_kill_inferior): Clear current signal
797 if PROCFS_NEED_CLEAR_CURSIG_FOR_KILL is defined.
798 * config/alpha/nm-osf3.h (PROCFS_NEED_CLEAR_CURSIG_FOR_KILL): Define.
799
800 * alpha-tdep.c: Move sigtramp handling of saved registers from
801 read_next_frame_reg to alpha_find_saved_regs, handle saved
802 floating point registers.
803 * mips-tdep.c: Move sigtramp handling of saved registers from
804 read_next_frame_reg to mips_find_saved_regs, handle saved
805 floating point registers.
806 * config/mips/tm-irix3.h, config/mips/tm-irix5.h,
807 config/mips/tm-mipsv4.h (SIGFRAME_FPREGSAVE_OFF): Define.
808
809 * sparc-tdep.c (sparc_pc_adjust): Fix check for `unimp'
810 instruction to handle functions returning structures with
811 large sizes properly.
812
813 Fri Jul 28 11:50:17 1995 steve chamberlain <sac@slash.cygnus.com>
814
815 * configure, configure.in (z8k-*-sim): deleted.
816
817 Thu Jul 27 12:49:28 1995 Jeffrey A. Law <law@rtl.cygnus.com>
818
819 * lynx-nat.c (child_wait): Handle threads exiting.
820
821 Thu Jul 27 07:47:50 1995 Michael Meissner <meissner@cygnus.com>
822
823 * rs6000-tdep.c (skip_prologue): Don't assume the update stack
824 instruction is the last in the prologue, since xlc stores the lr
825 after the stack update. Make sure offset is correct sign for
826 large frames.
827 (frame_saved_pc): Move test for signal before frameless.
828
829 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Define.
830 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Redefine.
831
832 Thu Jul 27 01:22:08 1995 Jeffrey A. Law <law@rtl.cygnus.com>
833
834 * hppa-tdep.c (hppa_fix_call_dummy): Rewrite code for calling
835 into shared libraries.
836
837 Wed Jul 26 23:33:34 1995 Michael Meissner <meissner@cygnus.com>
838
839 * config/rs6000/tm-rs6000.h (rs6000_framedata): Add offsets the
840 gprs, fprs, lr, and cr is stored at.
841 (FRAME_FIND_SAVED_REGS): Use new fields in rs6000_framedata.
842 (function_frame_info): Delete declaration.
843 (SKIP_PROLOGUE): Skip_prologue is now passed a rs6000_framedata
844 structure to fill in.
845 (FRAMELESS_FUNCTION_INVOCATION): Function now longer takes a
846 second argument.
847 (FRAME_SAVED_PC): Call frame_saved_pc.
848
849 * rs6000-tdep.c (skip_prologue): Recognize V.4 prologues as well
850 as AIX style. Fill in rs6000_framedata structure. Remember where
851 the gprs, fprs, cr, and lr are saved.
852 (pop_frame): Use skip_prologue, not function_frame_info, and use
853 new rs6000_framedata fields.
854 (function_frame_info): Function deleted.
855 (frameless_function_invocation): Separate frame_saved_pc support
856 to new function. Recognize V.4 frames.
857 (frame_saved_pc): New function.
858 (frame_get_cache_fsr): Use skip_prologue, not function_frame_info.
859 (frame_initial_stack_address): Ditto.
860
861 Wed Jul 26 01:00:37 1995 Jeff Law (law@snake.cs.utah.edu)
862
863 * remote.c: Add documentation for extended protocol operations
864 and for thread_alive change from a couple weeks ago.
865 (extended_remote_ops): Declare and define a new target vector
866 for the extended remote protocol.
867 (extended_remote_restart): New function to restart the remote
868 server & process.
869 (remote_open): Just a stub routine.
870 (extended_remote_open): New function to start a remote session
871 using the extended gdb remote protocol.
872 (remote_open_1): New function containing code common to both
873 remote_open and extended_remote_open.
874 (remote_mourn, extended_remote_mourn, remote_mourn_1): Similarly.
875 (extended_remote_create_inferior): New function for the extended
876 remote target.
877 (initialize_remote): Add the extended_remote_ops target vector.
878 * gdbserver/server.c (main, case '!'): Set extended_protocol.
879 (main, case 'k'): If the extended protocol is in use, kill the
880 inferior then start a new one.
881 (main, case 'R'): New command to restart the remote server and
882 inferior process. Only supported when using the extended
883 protocol.
884 (main, server loop): If the inferior terminates while using the
885 extended protocol then start a new one. If getpkt fails when
886 using the extended protocol then exit.
887
888 Tue Jul 25 11:43:44 1995 Stan Shebs <shebs@andros.cygnus.com>
889
890 * mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
891 line numbers using the psymtab's section offsets.
892
893 Tue Jul 25 10:43:27 1995 Michael Meissner <meissner@tiktok.cygnus.com>
894
895 * config/rs6000/tm-rs6000.h (rs6000_framedata): Rename from
896 aix_framedata. Change all uses.
897 * rs6000-tdep.c: Change all aix_framedata -> rs6000_framedata.
898
899 Sat Jul 22 23:44:18 1995 Jeff Law (law@snake.cs.utah.edu)
900
901 * defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined.
902
903 Fri Jul 21 16:50:28 1995 Jeffrey A. Law <law@rtl.cygnus.com>
904
905 * lynx-nat.c (child_thread_alive): New function. Somehow I
906 forgot to check this in with all the other thread_alive changes.
907
908 Thu Jul 20 22:22:34 1995 Jeff Law (law@snake.cs.utah.edu)
909
910 * somread.c (som_symtab_read): Add unsatisfied common symbols to
911 the minimal symbol table. All common symbols are "unsatisfied"
912 when -E is passed to the linker.
913
914 Thu Jul 20 15:04:57 1995 Fred Fish <fnf@cygnus.com>
915
916 * top.c (show_endian): Cast first arg of printf_unfiltered to
917 correct type of "char *".
918
919 Thu Jul 20 14:18:51 1995 Jeffrey A. Law <law@rtl.cygnus.com>
920
921 * lynx-nat.c (child_wait): A thread_id of zero from wait apparently
922 means the process is single threaded, so there's no need to add
923 it to the thread list. Handle case where multi-threaded process
924 reverts back to a single-threaded process.
925
926 * gdbserver/low-hppabsd.c: Remove error declaration.
927 * gdbserver/low-sparc.c: Likewise.
928 * gdbserver/low-sun3.c: Likewise.
929 * gdbserver/server.h: Remove error and fatal declaration.
930 * gdbserver/utils.c (error): Update to be compatable with recent
931 changes in defs.h.
932 (fatal): Likewise.
933
934 Wed Jul 19 22:42:43 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
935
936 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
937 correctly map floating point registers numbers.
938
939 * dwarfread.c (locval, new_symbol): Handle variables that are
940 optimized out.
941
942 * mdebugread.c: Replace all uses of builtin_type_* with
943 mdebug_type_*. Define and initialize mdebug_type_*.
944
945 * serial.h (serial_close): Add additional argument `really_close'.
946 (SERIAL_CLOSE): Update serial_close call accordingly.
947 (SERIAL_UN_FDOPEN): Use serial_close to handle refcnt properly.
948 * serial.c (serial_close): Handle `really_close'.
949 * serial.h (scb_base): Moved to serial.c, made static.
950
951 * valops.c (value_addr): Don't coerce arrays.
952 (typecmp): Coerce arrays instead of calling value_addr if necessary.
953
954 Wed Jul 19 18:19:28 1995 Stan Shebs <shebs@andros.cygnus.com>
955
956 From Richard Earnshaw (rearnsha@armltd.co.uk):
957 * infrun.c (wait_for_inferior): Set the convenience variable
958 $_exitcode to the termination code of the inferior.
959 * top.c (quit_command): Accept optional expression to use
960 as parameter to exit().
961
962 Wed Jul 19 13:15:32 1995 Kung Hsu <kung@mexican.cygnus.com>
963
964 * remote.c (remote_wait): When getting registers, check endianess and
965 do conversion if necessary.
966
967 Tue Jul 18 00:41:31 1995 Jeff Law (law@snake.cs.utah.edu)
968
969 * gdbserver/low-hppabsd.c: New file.
970 * gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
971 * config/pa/hppabsd.mh (XDEPFILES): Add ser-tcp.o.
972 (GDBSERVER_DEPFILES): Add low-hppabsd.o.
973 * config/pa/hppaosf.mh: Likewise.
974
975 Mon Jul 17 21:35:18 1995 Fred Fish <fnf@cygnus.com>
976
977 * dache.c (struct dcache_block): Change data member from unsigned
978 char to char, since everything passed in and out of dcache is char
979 or casted to appropriate type anyway.
980 (dcache_alloc): Move assignment of db out of test and combine
981 separate tests into if-else.
982 (dcache_peek_byte): Change ptr from unsigned char* to char*.
983 (dcache_peek_byte): Remove now unnecessary cast in read_memory call.
984 (dcache_peek): Change cast of incoming data arg.
985 (dcache_poke): Change cast of addr of incoming data arg.
986 (dcache_info): Mask data passed to printf_filtered to lsbyte only.
987 (dcache_info): Change printf_filtered arg from "% 2x" to " %2x".
988 * target.c (debug_to_thread_alive): Change return type to int and
989 return zero, for type compatibility with other *_thread_alive
990 funcs.
991 (cleanup_target): Change cast of ignore function to match type of the
992 to_thread_alive member.
993 * defs.h (error_hook): Add ATTR_NORETURN.
994 * defs.h (NORETURN, ATTR_NORETURN): Switch from volatile to
995 __attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug.
996 * remote.c (remote_wait): Cast first arg to strtol, strchr, and
997 strncmp to "const char *" from "unsigned char *".
998 (remote_wait): Cast arg to putpkt and strcpy from "unsigned char *"
999 to "char *".
1000 (remote_wait): Change printf format for long arg from "%d" to "%ld".
1001 (getpkt): Remove unused variable "bp".
1002 (remote_fetch_word, remote_store_word): Ifdef out apparently unused
1003 functions.
1004 * breakpoint.c (watchpoint_check): Removed unused variables
1005 "saved_level" and "saved_frame".
1006 * valops.c (value_arg_coerce): Add other enum TYPE_CODE_* and
1007 default cases to switch for completeness.
1008 * infrun.c (wait_for_inferior): Enclose "have_waited" label
1009 in #ifdef that matches the one in which it is referenced.
1010 * ser-unix.c (hardwire_noflush_set_tty_state): Enclose otherwise
1011 unused variable "state" in #ifdef that matches one in which it is
1012 referenced.
1013 * eval.c (evaluate_subexp_standard): Remove unused variable "var".
1014 * eval.c (evaluate_subexp_standard): Remove unused variable
1015 "tmp_symbol".
1016 * valarith.c (value_subscript): Remove unused variable
1017 "lowerbound", which is redeclared in a nested scope prior to use.
1018 * printcmd.c (print_frame_nameless_args): Use "%ld" to print long
1019 arg, not "%d".
1020 * {mem-break.c, remote-pa.c, remote.c, saber.suppress}:
1021 Remove unused static var "check_break_insn_size".
1022 * buildsym.c (finish_block): Add other enum LOC_* and default
1023 cases to switch for completeness.
1024 ch-lang.c (type_lower_upper): Removed unused label "retry".
1025 Add other enum TYPE_* and default cases to switch for completeness.
1026 * f-typeprint.c (f_type_print_args): Ifdef out unused function
1027 that may be used someday when Fortran support is complete.
1028 * ch-valprint.c (chill_print_type_scalar): Add other enum
1029 TYPE_* and default cases to switch for completeness.
1030 (chill_val_print): Remove unused local var "high_bound" that
1031 is redeclared in a nested scope prior to use.
1032 (chill_var_print): Use "%ld" to print long arg, not "%d".
1033 * regex.c (re_compile_fastmap, re_match_2): Add remaining enum
1034 types and default to switches for completeness.
1035 * minsyms.c (lookup_minimal_symbol_text): Delete unused variable
1036 "trampoline_symbol".
1037 (prim_record_minimal_symbol_and_info): Return NULL rather than
1038 trash.
1039 * elfread.c (elf_symtab_read): Don't dereference NULL returns from
1040 record_minimal_symbol_and_info.
1041 * f-lang.c (saved_function_list_end): Ifdef out unused variable
1042 that may be used someday.
1043 * f-valprint.c (f_val_print): Remove unused local "straddr".
1044
1045 Mon Jul 17 13:08:00 1995 Ian Lance Taylor <ian@cygnus.com>
1046
1047 * stabsread.h (struct stab_section_list): Define.
1048 (coffstab_build_psymtabs): Remove staboff and stabsize parameters.
1049 Add textaddr, textsize, and stabs parameters.
1050 * gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field.
1051 Add text_addr and text_size fields.
1052 (DBX_TEXT_SECT): Don't define.
1053 (DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define.
1054 * coffread.c: Include <ctype.h>.
1055 (struct coff_symfile_info): Remove stabsect and stabindexsect
1056 fields. Add textaddr, textsize, and stabsects fields.
1057 (coff_locate_sections): Record the address of the .text section,
1058 and total the sizes of all sections with names beginning with
1059 ".text". Don't bother to record a .stab.index section (COFF
1060 doesn't use them). Make a linked list of all sections with names
1061 beginning with ".stab".
1062 (coff_symfile_read): Adjust call to coffstab_build_psymtabs for
1063 new parameters.
1064 * dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and
1065 DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
1066 (dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
1067 DBX_TEXT_SECT.
1068 (elfstab_build_psymtabs): Likewise.
1069 (stabsect_build_psymtabs): Likewise.
1070 (symbuf_sections, symbuf_left, symbuf_read): New static variables.
1071 (fill_symbuf): If symbuf_sections is not NULL, read symbols from
1072 multiple sections.
1073 (coffstab_build_psymtabs): Remove staboffset and stabsize
1074 parameters. Add textaddr, textsize, and stabsects parameters.
1075 Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. Handle
1076 multiple stabs sections.
1077 * os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and
1078 DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
1079 (os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
1080 DBX_TEXT_SECT.
1081
1082 * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
1083 field.
1084
1085 Sat Jul 15 01:02:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1086
1087 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
1088 for OSF/1-3.x procfs support.
1089 * configure.in (alpha-dec-osf): Use them when configuring
1090 for OSF/1-3.x.
1091 * configure: Updated.
1092 * target.c: Include <string.h>.
1093
1094 Fri Jul 14 16:16:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1095
1096 * Makefile.in, configure.in: Use one variable, frags, to hold
1097 pathnames of makefile fragments.
1098 * configure: regenerated.
1099
1100 Fri Jul 14 09:49:47 1995 Jeff Law (law@snake.cs.utah.edu)
1101
1102 * procfs.c (procfs_ops): Fix typo in last change.
1103
1104 Thu Jul 13 13:42:38 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1105
1106 * inftarg.c (child_thread_alive): New function to see if a
1107 particular thread is still running.
1108 (child_ops): Add child_thread_alive entry.
1109 * remote.c (remote_thread_alive): New function to see if a
1110 particular thread is still alive.
1111 (remote_ops): Add remote_thread_alive.
1112 * target.c (dummy_target): Add dummy entry for thread_alive.
1113 (cleanup_target): de_fault thread_alive too.
1114 (update_current_target): INHERIT thread_alive too.
1115 (debug_to_thread_alive): New function.
1116 (setup_target_debug): Add debug_to_thread_alive.
1117 * target.h (struct target_ops): Add to_thread_alive.
1118 (target_thread_alive): Define.
1119 * thread.c (info_threads_command): Don't call kill; use
1120 target_thread_alive instead.
1121 * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
1122 * gdbserver/low-lynx.c (mythread_alive): New function.
1123 (mywait): Don't restart any threads after a new thread notification,
1124 let the generic code handle it.
1125 * gdbserver/low-sparc.c (mythread_alive): Dummy version.
1126 * gdbserver/low-sun3.c (mythread_alive): Likewise.
1127 * gdbserver/server.c (main): Handle thread_alive requests.
1128 * gdbserver/server.h (mythread_alive): Declare.
1129 * corelow.c (core_ops): Add dummy entry for thread_alive.
1130 * exec.c (exec_ops): Likewise.
1131 * m3-nat.c (m3_ops): Likewise.
1132 * monitor.c (monitor_ops): Likewise.
1133 * procfs.c (procfs_ops): Likewise.
1134 * remote-arc.c (arc_ops): Likewise.
1135 * remote-array.c (array_ops): Likewise.
1136 * remote-e7000.c (e7000_ops): Likewise.
1137 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
1138 * remote-mips.c (mips_ops): Likewise.
1139 * remote-pa.c (remote_hppro_ops): Likewise.
1140 * remote-sim.c (gdbsim_ops): Likewise.
1141 * sparcl-tdep.c (sparclite_ops): Likewise.
1142
1143 Tue Jul 11 11:15:55 1995 Kung Hsu <kung@rtl.cygnus.com>
1144
1145 * solib.c: Add _DYNAMIC__MGC base symbol for Mentor Graphics Inc.
1146 * solib.c (match_main): New function for checking name of main.
1147 * solib.c (solib_add): Not to add if solib match main.
1148
1149 Fri Jul 7 14:41:56 1995 Kung Hsu <kung@rtl.cygnus.com>
1150
1151 * elfread.c (elf_symtab_read): Fix a bug ignoring compiler
1152 generated internal labels ($LM...).
1153
1154 Wed Jul 5 11:38:36 1995 Kung Hsu <kung@rtl.cygnus.com>
1155
1156 * defs.h: if __GO32__ or WIN32 the directory separating symbol should
1157 be '\' not '/'.
1158
1159 * remote-nindy (nindy_wait): Use infinite timeout reading after
1160 esacpe character.
1161
1162 Tue Jul 4 10:30:22 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1163
1164 * infrun.c (wait_for_inferior): When switching from one thread to
1165 another, save infrun's state for the old thread and load infrun's
1166 previous state for the new thread.
1167 * thread.c (struct thread_info): Add new fields for thread specific
1168 state saved/restored in infrun.c.
1169 (add_thread): Initialize new fields.
1170 (load_infrun_state): New function.
1171 (save_infrun_state): New function.
1172 * thread.h (load_infrun_state): Provide external decl.
1173 (save_infrun_state): Likewise.
1174
1175 * infrun.c (wait_for_inferior): When we hit a breakpoint for the
1176 wrong thread, make sure to write the fixed PC value into the thread
1177 that stopped. Restart all threads after single stepping over a
1178 breakpoint for a different thread.
1179 * breakpoint.c (set_momentary_breakpoint): Make momentary
1180 breakpoints thread specific in a multi-threaded program.
1181 * lynx-nat.c (child_resume): Add some comments. Correctly
1182 choose between the single and multi-threaded step and continue
1183 ptrace calls.
1184
1185 Fri Jun 30 16:15:36 1995 Stan Shebs <shebs@andros.cygnus.com>
1186
1187 * config/h8300/h8300.mt: Renamed from h8300hms.mt.
1188 * config/h8500/h8500.mt: Renamed from h8500hms.mt.
1189 * config/z8k/z8k.mt: Renamed from z8ksim.mt.
1190 * configure, configure.in: Update to reflect renamings.
1191
1192 * remote-sim.c (sim): New command, passes commands to simulator.
1193 (simulator_command): New function.
1194 (gdbsim_ops): Clean up.
1195 * remote-sim.h (sim_do_command): Declare.
1196 * sh-tdep.c (memory_size): Remove command.
1197
1198 * Makefile.in (SIM, SIM_OBS): New variables.
1199 (CLIBS, CDEPS): Add value of SIM.
1200 (DEPFILES): Add value of SIM_OBS
1201
1202 * config/arm/arm.mt, config/h8300/h8300.mt, config/h8500/h8500.mt,
1203 config/sh/sh.mt, config/sparc/sp64sim.mt, config/w65/w65.mt,
1204 config/z8k/z8k.mt: Remove simulator files from TDEPFILES,
1205 define in SIM_OBS and SIM.
1206 config/sparc/sp64sim.mt (SIMFILES): Remove.
1207
1208 * remote-z8k.c: Remove, was superseded by remote-sim.c
1209 * Makefile.in, mpw-make.in: Remove references to remote-z8k.c.
1210
1211 Sun Jun 25 15:30:43 1995 Stan Shebs <shebs@cygnus.com>
1212
1213 * remote.c (remote_read_bytes, remote_write_bytes): Second arg
1214 should be char *, not unsigned char *.
1215 * dcache.h (memxferfunc): Ditto.
1216 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1217 Ditto.
1218 (monitor_make_srec): Let compiler figure size of hextab.
1219
1220 Sat Jun 24 19:27:37 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1221
1222 * lynx-nat.c (child_wait): Don't restart new threads and loop
1223 to the top of child_wait; let the machine independent code in
1224 wait_for_inferior deal with new thread notifications.
1225
1226 Fri Jun 23 11:51:58 1995 Kung Hsu <kung@mexican.cygnus.com>
1227
1228 * remote-nindy (nindy_load): Put in target specific load, it's
1229 20 times faster.
1230
1231 Thu Jun 22 20:21:59 1995 Stan Shebs <shebs@andros.cygnus.com>
1232
1233 * utils.c (error): Move local `args' outside conditional,
1234 move local `string1' inside, declare function as void if
1235 non-ANSI compiler, dereference error_hook when calling.
1236
1237 * mac-xdep.c (stdarg.h): Don't include.
1238
1239 Thu Jun 22 13:12:33 1995 Kung Hsu <kung@mexican.cygnus.com>
1240
1241 * remote-nindy.c (nindy_wait): Change timeout in SERIAL_READCHAR.
1242
1243 Wed Jun 21 13:24:41 1995 Jeff Law (law@snake.cs.utah.edu)
1244
1245 * hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and
1246 HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
1247
1248 Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com>
1249
1250 * monitor.c: Turn on caching.
1251 (monitor_printf): If a ^C was sent, don't expect to see its
1252 echo.
1253 (monitor_open): Enable caching.
1254 (monitor_resume, monitor_load): Flush cache.
1255 (monitor_xfer_memory): Call cache routine.
1256 (monitor_dump_regs): New.
1257 (monitor_fetch_registers): If monitor_dump_regs available
1258 then use it.
1259 (monitor_load): Don't ref exec_bfd if it's NULL.
1260 (monitor_load_srec): Use new monitor_make_srec calling convention.
1261 (monitor_make_srec): Rewrite to cope with two, three and four byte
1262 addresses.
1263 * remote-hms.c (hms_cmds): Initialze end-of-command delim.
1264 * dcache.h, dcache.h: Rewritten.
1265 * remote.c: Reenable caching.
1266 (getpkt): Reduce MAX_TRIES to 3.
1267 (remote_xfer_memory): Use dcache_xfer_memory.
1268 * defs.h (error_hook): New.
1269 * top.c (error_hook): New definition.
1270 * utils.c (error): Use error_hook if initialized.
1271 * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use
1272 HAVE_SOCKETS in place of #ifndef GO32.
1273
1274 Tue Jun 20 22:17:44 1995 Jeff Law (law@snake.cs.utah.edu)
1275
1276 * config/pa/tm-hppa.h (PSW_*): Define processor status word masks.
1277 (INSTRUCTION_NULLIFIED): Allow specific targets to override.
1278 * config/pa/tm-hppao.h (INSTRUCTION_NULLIFIED): Define to work
1279 around losing mach kernel behavior.
1280
1281 Tue Jun 20 12:03:36 1995 Stan Shebs <shebs@andros.cygnus.com>
1282
1283 * monitor.c (monitor_wait): Don't use the watchdog timeout
1284 if its value is 0.
1285 * w89k-rom.c (w89k_open): Define to be static.
1286
1287 start-sanitize-gdbtk
1288 Tue Jun 20 10:19:40 1995 Stu Grossman (grossman@cygnus.com)
1289
1290 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
1291
1292 * gdbtk.tcl (add_breakpoint_frame): Add more fields.
1293 * (create_file_win create_asm_win build_framework): Create null
1294 bindings for meta keys to keep window from dropping down to
1295 insertion point when meta is pressed by itself. New bindings:
1296 Up/Down - Scroll up/down one line at a time
1297 Next/Prior - Scroll up/down one page at a time
1298 Home/End - Warp to current pc/end of file
1299 * (build_framework): Turn on breakpoint menu.
1300 * (create_command_window): Implement tab completion. Add binding
1301 for ^C to stop target.
1302 end-sanitize-gdbtk
1303
1304 Sat Jun 17 10:17:16 1995 Jeff Law (law@snake.cs.utah.edu)
1305
1306 * somsolib.c (som_solib_add): Validate regexp argument.
1307 Don't assume the first entry on dld's library list is the main
1308 program. Don't load the same library more than once and don't
1309 consider the main program a shared library.
1310 (som_solib_sharedlibrary_command): New function
1311 (_initialize_som_solib): Add "sharedlibrary" command.
1312
1313 Thu Jun 15 14:54:58 1995 Stan Shebs <shebs@andros.cygnus.com>
1314
1315 * array-rom.c: Remove, no longer used.
1316
1317 * remote-hms.c (hms_open): Make static.
1318
1319 * mpw-config.in (MacSerial.h): Copy from version in {CIncludes},
1320 not {MPW}Interfaces:CIncludes.
1321 * ser-mac.c (mac_baud_rate_table): Fix value for 38400 baud.
1322
1323 Wed Jun 14 14:27:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
1324
1325 * ch-exp.y: Remove lots of unsupported productions and names.
1326 Add support for IF-expressions, ORIF, ANDIF, NUM, and ADDR.
1327
1328 Tue Jun 13 21:40:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1329
1330 * parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.
1331 * expression.h (enum exp_opcode): Added UNOP_LOWER, UNOP_UPPER,
1332 UNUP_LENGTH.
1333 * expprint.c (dump_expression): Handle the new exp_opcodes.
1334 (print_subexp): Handle PREC_BUILTIN_FUNCTION.
1335 (print_simple_m2_func): Removed.
1336 (print_subexp): Remove support for Modula2 builtin functions.
1337 * m2-lang.c (m2_op_print_tab): Add support for builtin functions.
1338 * ch-exp.y: Parse LOWER, UPPER, and LENGTH builtins.
1339 (write_lower_upper_value): Convenience function for LOWER and UPPER.
1340 (upper_lower_argument, length_argument): Removed non-terminals.
1341 * ch-lang.c (chill_op_print_tab): Entries for UPPER, LOWER, LENGTH.
1342 (type_lower_upper): New function. Calculate LOWER/UPPER of type.
1343 (value_chill_length): New function. Calcalate LENGTH of ARRAY/STRING.
1344 (evaluate_subexp_chill): Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1345
1346 Mon Jun 12 12:48:13 1995 Stan Shebs <shebs@andros.cygnus.com>
1347
1348 Windows support bits from Steve Chamberlain <sac@slash.cygnus.com>.
1349 * defs.h: Don't declare strchr and friends if WIN32.
1350 (DIRNAME_SEPARATOR): Move here from source.c.
1351 (SLASH_P, SLASH_CHAR, SLASH_STRING, ROOTED_P): New macros,
1352 symbolic definitions for filename bits.
1353 * top.c (cd_command): Use these.
1354 * source.c (mod_path, openp): Ditto.
1355 * terminal.h: Disable termio/sgtty definitions if WIN32.
1356 * findvar.c (registers_changed): Call registers_changed_hook
1357 if it is defined.
1358
1359 Mon Jun 12 12:22:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1360
1361 * Makefile.in (distclean, realclean): Remove config.cache and
1362 config.log.
1363
1364 Mon Jun 12 00:21:59 1995 Jeff Law (law@snake.cs.utah.edu)
1365
1366 * somsolib.c: Include gdb-stabs.h.
1367 (som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1,
1368 etc. Initialize offsets for RODATA & BSS too.
1369
1370 Sat Jun 10 17:59:11 1995 Jeff Law (law@snake.cs.utah.edu)
1371
1372 * hppa-tdep.c (frame_chain): Try to compensate for incomplete
1373 register information in core files when backtracing.
1374
1375 Fri Jun 9 14:51:38 1995 Stu Grossman (grossman@cygnus.com)
1376
1377 * remote-nrom.c: Remove everything but download code. More
1378 cleanups.
1379
1380 Thu Jun 8 15:06:00 1995 Stu Grossman (grossman@cygnus.com)
1381
1382 * defs.h maint.c monitor.c remote-mips.c remote.c: Add support
1383 for `watchdog' variable. This allows the user to put an upper
1384 limit on the amount of time that GDB will wait for the target to
1385 return from a step or continue operation. This will primarily be
1386 used for the testsuite, where it is difficult to come up with a
1387 reasonable timeout for things like function calls, which can take
1388 as long as three minutes under some circumstances. If the
1389 watchdog timer expires, GDB will generate an error that looks like
1390 `Watchdog has expired.', and will detach from the target.
1391
1392 * remote-mips.c (mips_open): Setup initial frame from target.
1393 Print it out so that user is told where the program is stopped
1394 when they attach.
1395
1396 * remote-nrom.c: Loads of cleanups. Use serial code to open
1397 network connections. Use expect() to wait for response to
1398 download command.
1399
1400 * ser-tcp.c (tcp_open): Retry connection if we get ECONNREFUSED.
1401
1402 * serial.c serial.h (serial_open serial_fdopen serial_close):
1403 Allow users to open the same device multiple times. They all get
1404 to share the same serial_t. This is about the only way to have
1405 multiple active targets use the same device (for download and
1406 debug).
1407
1408 * sparcl-tdep.c: Keep #include <unistd.h> away from GO32.
1409
1410 * target.c: Add `targetdebug' variable. If this is non-zero,
1411 then a special target is put at the top of the target stack which
1412 will cause all calls through the target vector to have their args
1413 and results printed out.
1414
1415 Wed Jun 7 17:40:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1416
1417 * ch-exp.y: Handle <primitive_value> "->" <modename>.
1418
1419 Wed Jun 7 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1420
1421 * mem-break.c (LITTLE_BREAKPOINT): If BREAKPOINT and
1422 {LITTLE,BIG}_BREAKPOINT are all defined, don't redefine.
1423 (BIG_BREAKPOINT): Ditto.
1424
1425 * config/rs6000/tm-rs6000.h (BREAKPOINT): Define as either
1426 BIG_BREAKPOINT or LITTLE_BREAKPOINT depending on the target byte
1427 order.
1428
1429 Wed Jun 7 12:41:42 1995 Jeff Law (law@snake.cs.utah.edu)
1430
1431 * somsolib.c (som_solib_section_offsets): Handle relative pathnames.
1432
1433 * hppa-tdep.c (frame_saved_pc): Handle backtracing through signal
1434 handler in dynamically linked executables.
1435
1436 Tue Jun 6 10:44:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1437
1438 From Andrew Cagney <cagney@highland.com.au>
1439 * rs6000-tdep.c (single_step): Handle both little and big endian
1440 breakpoints.
1441 (gdb_print_insn_powerpc): Deal with disassembling both little and
1442 big endian PowerPC systems.
1443 (_initialize_rs6000_tdep): Use gdb_print_insn_powerpc to handle
1444 disassembly, rather that assuming big endian order.
1445
1446 * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete.
1447 (BIG_BREAKPOINT): Define, big endian breakpoint instruction.
1448 (LITTLE_BREAKPOINT): Define, little endian breakpoint instruction.
1449
1450 Sat Jun 3 01:54:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1451
1452 * README: Add note about Unixware 2.x.
1453
1454 * dbxread.c (process_one_symbol): Check for exact symbol name
1455 match when fixing up N_GSYM and N_STSYM symbols from Sun acc.
1456
1457 * valprint.c (value_print_array_elements): Use
1458 fprintf_filtered to put out `<repeats %u times>',
1459 from schwab@issan.informatik.uni-dortmund.de (Andreas Schwab).
1460
1461 * value.h (struct value): Change `repetitions' field from
1462 `short' to `int' type.
1463
1464 start-sanitize-arc
1465 Fri Jun 2 11:17:23 1995 Doug Evans <dje@canuck.cygnus.com>
1466
1467 * arc-tdep.c (arc_bfd_mach_type): New static global.
1468 (codestream_fill): Handle byte order differences.
1469 (setup_prologue_scan): Don't read stdarg function's "sub sp,sp,N".
1470 (arc_get_frame_setup): Read it here.
1471 (arc_frame_saved_pc): And here.
1472 (arc_print_insn): New function.
1473 (arc_set_cpu_type): Set arc_bfd_mach_type. Don't set tm_print_insn.
1474 (_initialize_arc_tdep): Set tm_print_insn to arc_print_insn.
1475 end-sanitize-arc
1476
1477 Wed May 31 12:04:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1478
1479 * nlm/{configure.in, Makefile.in}: Converted to use autoconf.
1480 * nlm/configure: New file, generated with autoconf 2.3.
1481
1482 * nlm/configure.in: Use sed instead of awk to get the value of
1483 cpufile. Awk is not a utility required by the GNU coding
1484 standards. This change also fixes the rigid whitespace
1485 requirements that were required for awk.
1486
1487 * sparclite/aload.c: Use a file descriptor instead of a stdio
1488 stream for i/o with target board.
1489 Use #error if HAVE_TERMIOS is not defined.
1490
1491 * sparclite/{Makefile.in, configure.in}: Converted to use
1492 autoconf.
1493 * sparclite/configure: New file, generated with autoconf 2.3.
1494
1495 Sun May 28 23:10:07 1995 Jeff Law (law@snake.cs.utah.edu)
1496
1497 * defs.h: Include either varargs.h or stdarg.h (for va_list).
1498 Fix stupid thinko in last change ("..." -> "va_list").
1499
1500 * defs.h (vprintf_filtered declaration): Add PARAMS prototype;
1501 gcc-2.5 chokes on format attributes for unprototyped functions.
1502 (vfprintf_filtered declaration): Likewise.
1503 (vprintf_unfiltered declaration): Likewise.
1504 (vfprintf_unfiltered). Likewise.
1505
1506 Sat May 27 23:54:17 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1507
1508 * configure.in: Use sed instead of awk to get the values of
1509 hostfile, targetfile and nativefile. Awk is not a utility
1510 required by the GNU coding standards. This change also
1511 fixes the rigid whitespace requirements that were required
1512 for awk.
1513 * configure: regenerated.
1514
1515 Sat May 27 16:24:04 1995 Angela Marie Thomas <angela@cirdan.cygnus.com>
1516
1517 * sparclite/{Makefile,configure}.in: Add hooks for building with
1518 -lsocket & -lnsl for solaris2. Don't build aload/eload for DOS.
1519
1520 Thu May 25 12:46:37 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1521
1522 * gdbserver/remote-utils.c (prepare_resume_reply): Add FIXME
1523 comment regarding signal numbering.
1524
1525 Wed May 24 15:49:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
1526
1527 * arm-tdep.c (_initialize_arm_tdep): Use print_insn_little_arm
1528 now.
1529
1530 * arm-tdep.c (convert_from_extended, convert_to_extended):
1531 New.
1532 * coffread.c (enter_linenos): Return if linetab 0.
1533 * config/arm/arm.mt (TDEPFILES): Add simulator support.
1534 * config/arm/tm-arm.h (FRAME_FIND_SAVED_REGS): Fix prototypes.
1535
1536 Mon May 22 19:37:21 1995 Rob Savoye <rob@darkstar.cygnus.com>
1537
1538 * config/idt.mt: replace monitor and array-rom with the new
1539 remote-array.
1540
1541 Mon May 22 15:38:25 1995 Stu Grossman (grossman@cygnus.com)
1542
1543 * remote-nindy.c: Install Kung patch for PR 6820. I have no idea
1544 what this does...
1545
1546 * breakpoint.c: Move defaults of watchpoint related macros into
1547 target.h.
1548 * target.h: Macros from breakpoint.c. Conditionalize based on
1549 TARGET_HAS_HARDWARE_WATCHPOINTS.
1550 * i386v-nat.c procfs.c: Use TARGET_HAS_HARDWARE_WATCHPOINTS
1551 instead of TARGET_CAN_USE_HARDWARE_WATCHPOINT to enable watchpoint
1552 code.
1553 * config/i386/nm-linux.h, config/mips/nm-irix4.h,
1554 config/pa/nm-hppab.h, config/sparc/tm-sparclite.h: #define
1555 TARGET_HAS_HARDWARE_WATCHPOINTS to enable watchpoint code.
1556
1557 Mon May 22 06:47:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1558
1559 * breakpoint.c, target.h: Move defaults of watchpoint related
1560 macros back to breakpoint.c. Required to get GDB compiling
1561 on Solaris again.
1562
1563 Fri May 19 14:49:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1564
1565 * defs.h (ATTR_FORMAT): New macro, expands to gcc's format
1566 attribute when compiled by gcc.
1567 * defs.h, language.h, monitor.h: Changed many function
1568 declarations to use ATTR_FORMAT.
1569
1570 * breakpoint.c (delete_command); source.c (directory_command);
1571 top.c (define_command): Changed call to query() that had too
1572 many arguments.
1573 * printcmd.c (address_info): Changed call to printf_filtered()
1574 that had too many arguments.
1575
1576 Fri May 19 09:52:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1577
1578 * infrun.c (wait_for_inferior): Move assignments to stop_signal
1579 and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
1580 were--after the switch statement on w.kind. You can't read the
1581 registers of an inferior which has exited. Use a goto in the
1582 STOPPED_BY_WATCHPOINT code.
1583 * infrun.c (wait_for_inferior): Reinstate
1584 HAVE_STEPPABLE_WATCHPOINT and HAVE_CONTINUABLE_WATCHPOINT code.
1585
1586 Fri May 19 06:15:40 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1587
1588 * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
1589 remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
1590 stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
1591 must match the definition of PARAMS.
1592 start-sanitize-gdbtk
1593 * gdbtk.c: Likewise.
1594 end-sanitize-gdbtk
1595
1596 Thu May 18 15:58:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1597
1598 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
1599 printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
1600 error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
1601 with an ANSI compiler.
1602 * complaints.c (complain): Likewise.
1603 * language.c (type_error, range_error): Likewise.
1604 * monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
1605 * remote-array.c (printf_monitor, debuglogs): Likewise.
1606 * remote-mips.c (mips_error): Likewise.
1607 * remote-os9k.c (printf_monitor): Likewise.
1608 * remote-st.c (printf_stdebug): Likewise.
1609 start-sanitize-gdbtk
1610 * gdbtk.c (gdbtk_query): Likewise.
1611 end-sanitize-gdbtk
1612
1613 * defs.h, complaints.h, language.h, monitor.h: Add prototypes to
1614 match above changes.
1615
1616 * printcmd.c: Remove uneeded #include <varargs.h>.
1617 * remote-e7000.c: Likewise.
1618
1619 * f-typeprint.c (f_type_print_base): Fix typo found by above
1620 changes.
1621
1622 Wed May 17 11:21:32 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1623
1624 * Makefile.in (xcoffread.o): Depend on partial-stab.h.
1625
1626 * xcoffsolib.c (sharedlibrary_command): New command.
1627 * xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
1628 * xcoffsolib.c: Miscellaneous cleanups.
1629
1630 * partial-stab.h: Ignore symbol descriptor '-' (for local
1631 variables with negative type numbers) without complaint.
1632
1633 * rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
1634 local emulation thereof. Remove unused variable ostart.
1635
1636 Wed May 17 15:55:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1637
1638 * Makefile.in (config.status): changed target so that
1639 config.status --recheck is executed if configure script changes.
1640
1641 * monitor.c (monitor_printf): Changed format specification in
1642 error message to work with pre-ansi compilers.
1643 (monitor_load_srec): reduced length of s-records from 128 to 32
1644 bytes so download is more reliable with the rom68k monitor.
1645
1646 * rom68k-rom.c: Added trailing space to prompt string.
1647
1648 * config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
1649 * config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
1650 Removed.
1651 * defs.h, config/{xm-lynx.h, xm-nbsd.h},
1652 config/i386/{xm-i386bsd.h, xm-linux.h},
1653 config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
1654 config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
1655 (PSIGNAL_IN_SIGNAL_H): Removed.
1656
1657 Tue May 16 13:16:06 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1658
1659 * Makefile.in (Makefile): Added config.status to dependency list.
1660
1661 * configure.in: Added INIT-CMDS argument to AC_OUTPUT which sets
1662 gdb_host_cpu, gdb_target_cpu and nativefile.
1663 * configure: regenerated.
1664
1665 Mon May 15 23:50:51 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1666
1667 * mdebugread.c (parse_symbol): Do not relocate stBlock/scText
1668 symbols, their value is the displacement from the procedure address.
1669 * top.c (init_main): Add missing newlines to help strings for
1670 `if' and `while' commands, fix help string for `show commands'.
1671
1672 Mon May 15 18:37:56 1995 Stu Grossman (grossman@cygnus.com)
1673
1674 * breakpoint.c: Move defaults of watchpoint related macros into
1675 target.h. Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
1676 constants.
1677 * infrun.c (wait_for_inferior): Enhance comment near
1678 STOPPED_BY_WATCHPOINT.
1679 * target.h: Macros from breakpoint.c.
1680
1681 Mon May 15 17:11:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1682
1683 * config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
1684 config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
1685 mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
1686 out by autoconf.
1687 * config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
1688
1689 * Makefile.in, configure.in: Converted to use autoconf
1690 * aclocal.m4: New file, local autoconf macro definitions.
1691 * configure: New file, generated with autoconf 2.3.
1692
1693 Mon May 15 14:46:41 1995 Stan Shebs <shebs@andros.cygnus.com>
1694
1695 * remote.c (remote_kill): Add prototype.
1696 * cpu32bug-rom.c (cpu32bug_open): Properly define as static.
1697 * config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
1698
1699 Mon May 15 12:12:34 1995 Stu Grossman (grossman@cygnus.com)
1700
1701 * sparclite/salib.c (win_ovf win_unf): Make window size constant
1702 into a variable (__WINSIZE) so that it can be controlled via the
1703 .h file.
1704 * sparclite/sparclite.h: Add SL933 #ifdef to set __WINSIZE to 6
1705 for the 933 board.
1706
1707 * infrun.c: Add #ifdef HP_OS_BUG to all references to
1708 trap_expected_after_continue.
1709 * (wait_for_inferior): Fix for remote watchpoints. Don't try to
1710 insert breakpoints while target is running (this only works on
1711 *some* native targets). This may also speed up native watchpoints
1712 considerably.
1713
1714 Sat May 13 13:55:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1715
1716 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
1717 mdebugread.c (struct symloc), hpread.c (struct symloc),
1718 xcoffread.c (struct symloc): Fix inaccurate comment introduced
1719 20 Apr 1995.
1720
1721 Sat May 13 13:34:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1722
1723 * rs6000-tdep.c (find_toc_address): Revise comment.
1724 * symfile.c, symfile.h (init_psymbol_list): New function;
1725 consolidate duplicated copies from os9kread.c, dbxread.c
1726 and dwarfread.c.
1727 * defs.h: Declare info_verbose.
1728 * xcoffread.c: Extensive changes to support psymtabs.
1729
1730 Fri May 12 13:48:41 1995 Stu Grossman (grossman@andros.cygnus.com)
1731
1732 * cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element.
1733
1734 Fri May 12 06:39:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1735
1736 * partial-stab.h: Expand comments.
1737
1738 Thu May 11 19:01:37 1995 Jeff Law (law@snake.cs.utah.edu)
1739
1740 * Support debugging using native MACH primitives on hppa*-*-osf*.
1741 * configure.in: hppa*-*-osf* != hppa*-*-bsd* anymore.
1742 * config/pa/hppaosf.mh: New file.
1743 * config/pa/nm-hppao.h: Likewise.
1744 * hppam3-nat.c: Likewise.
1745 * config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
1746 (MACHINE_CPROC_*_OFFSET): Define.
1747 (TRACE_*): Define.
1748 (START_INFERIOR_TRAPS_EXPECTED): Delete definition.
1749
1750 Wed May 10 18:59:26 1995 Stu Grossman (grossman@andros.cygnus.com)
1751
1752 * hppa-tdep.c (read_unwind_info): Cosmetic cleanup.
1753 * (unwind_command): Clean it up and make it print things out
1754 nicer.
1755 * monitor.c: Add ^C handling capability (mostly ripped off from
1756 remote.c).
1757 * (monitor_printf): Make it check the command echo.
1758 * (monitor_printf_noecho): Similar to above, but doesn't check
1759 for echo.
1760 * (monitor_stop): No longer waits for prompt. That is the job of
1761 the caller. This makes things work much better for monitor_wait,
1762 which waits for the prompt itself.
1763 * (monitor_open): Deal with new monitor_stop semantics. Also,
1764 flush input after sending init strings to get rid of junk that may
1765 be output. Also, don't always send \r to remote. Use
1766 monitor_ops->line_term cuz proper character isn't always \r.
1767 * (monitor_fetch_register): Switch to completely different
1768 algorithm to deal with lame-ass monitors which put spaces in the
1769 middle of numbers, and prompt with a space!!!!!
1770 * (monitor_read_memory_single): New routine to be used with
1771 monitors that can only return one byte/short/long at a time. This
1772 is selected via MO_GETMEM_READ_SINGLE.
1773 * (monitor_load_srec): Use monitor_printf_noecho for sending S
1774 records. Most targets don't echo them.
1775 * (monitor.h): Get rid of cmd_delim. Add line_delim.
1776 * op50n-rom.c (op50n_cmds): Fill it up. Make it work.
1777 * w89k-rom.c: Change all eols from \r to \n. Change load_resp to
1778 ^Q to prevent error message.
1779 * config/pa/tm-hppa.h (CALL_DUMMY (for hppro)): Add special
1780 instruction sequence at end to make restore_pc_queue happy.
1781
1782 Wed May 10 15:59:00 1995 Torbjorn Granlund <tege@adder.cygnus.com>
1783
1784 * remote-est.c (est_open): Make static to match prototype.
1785
1786 Tue May 9 16:58:50 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1787
1788 * configure.in: Add little endian PowerPC support.
1789 * config/powerpc/ppcle-eabi.mt: New file for little endian PowerPC
1790 support.
1791 * config/powerpc/tm-ppcle-eabi.h: ditto.
1792
1793 Mon May 8 12:11:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1794
1795 * nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed.
1796 These variables not used.
1797
1798 * config/m68k/monitor.mt (TDEPFILES): Added cpu32bug-rom.o.
1799
1800 Wed May 3 17:54:47 1995 Stan Shebs <shebs@andros.cygnus.com>
1801
1802 * monitor.c (monitor_command): Don't use PROMPT until monitor
1803 target is known to be open.
1804 (monitor_make_srec): Don't define size of hextab.
1805
1806 Tue May 2 18:32:24 1995 Stan Shebs <shebs@andros.cygnus.com>
1807
1808 * configure.in (--enable-netrom): New configuration option.
1809 * Makefile.in (REMOTE_OBS): Rename from REMOTE_O, append
1810 value of NETROM_OBS.
1811 (NETROM_OBS): New variable.
1812 * remote-nrom.c: New file, NetROM target support.
1813 * config/a29k/a29k-udi.mt, config/i960/vxworks960.mt: Use
1814 REMOTE_OBS instead of REMOTE_O.
1815 start-sanitize-arc
1816 * config/arc/arc.mt: Ditto.
1817 end-sanitize-arc
1818
1819 Fri Apr 28 23:30:00 1995 Stu Grossman (grossman@cygnus.com)
1820
1821 * array-rom.c (_initialize_array array_open): Move baud_rate
1822 initialization from _initxxx to array_open to fix bug with
1823 overriding -b command line option.
1824
1825 Thu Apr 27 20:29:34 1995 Doug Evans <dje@canuck.cygnus.com>
1826
1827 * Makefile.in (RUNTEST): Fix reference of `srcdir'.
1828
1829 Wed Apr 26 19:01:08 1995 Steve Chamberlain <sac@slash.cygnus.com>
1830
1831 * remote-hms.c: Rewrite to use new monitor conventions.
1832
1833 Tue Apr 25 11:27:14 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1834
1835 * dbxread.c: Add comment explaining lowest_text_address.
1836 Add comment regarding stringtab_global and psymtabs.
1837
1838 Sat Apr 22 01:26:29 1995 Jeff Law (law@snake.cs.utah.edu)
1839
1840 * config/pa/tm-hppa.h (EXTRACT_STRUCT_VALUE_ADDRESS): Fix.
1841
1842 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Rewrite to correctly
1843 handle "short", "int" and small structures returned in registers.
1844
1845 Fri Apr 21 12:57:53 1995 Kung Hsu <kung@mexican.cygnus.com>
1846
1847 * minsyms.c: add new function lookup_minimal_symbol_text, to look
1848 for text symbol only.
1849 * breakpoint.c (create_longjmp_breakpoint): call
1850 lookup_minimal_symbol_text instead of lookup_minimal_symbol.
1851 * symtab.h: add lookup_minimal_symbol_text prototype.
1852
1853 Fri Apr 21 12:03:44 1995 Stan Shebs <shebs@andros.cygnus.com>
1854
1855 * sh-tdep.c (sh-opc.h): Don't include.
1856 (gdbcore.h): Include.
1857 (frame_find_saved_regs): Remove unused local.
1858
1859 Thu Apr 20 10:12:21 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1860
1861 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
1862 mdebugread.c (struct symloc), hpread.c (struct symloc): Clean
1863 up comments.
1864
1865 Wed Apr 19 16:58:11 1995 Stu Grossman (grossman@andros.cygnus.com)
1866
1867 * hppa-tdep.c (deposit_17): New routine to deposit 17 bit
1868 constants into PA instructions.
1869 * Put #ifdefs around all signal handling code. Not generally
1870 needed for embedded boards.
1871 * (hppa_fix_call_dummy): Parameterize offsets into call dummy to
1872 allow different dummys to be used by this code. Use
1873 INSTRUCTION_SIZE instead of REGISTER_SIZE for things.
1874 Conditionalize setup of _sr4export fixup. Improve comments.
1875 * config/pa/tm-hppa.h: Define INSTRUCTION_SIZE. Use a different
1876 call dummy if PA_LEVEL_0 is defined. Better comments for call
1877 dummys. Define offsets for LDIL/LDO instructions which load
1878 function addresses.
1879 * config/pa/tm-pro.h: Get rid of signal handling stuff. Define
1880 PA_LEVEL_0 to disable mucking with space regs and such.
1881
1882 Mon Apr 17 15:37:08 1995 Stu Grossman (grossman@andros.cygnus.com)
1883
1884 * cpu32bug-rom.c monitor.h op50-rom.c remote-est.c rom68k-rom.c
1885 w89k-rom.c: Remove loadtypes, loadprotos and baudrates.
1886 * op50-rom.c: Fix copyrights and add load routine to op50n_cmds.
1887 * rom68k-rom.c (_initialize_rom68k): Don't set baud rate.
1888 * w89k-rom.c: Fix copyrights.
1889
1890 Sun Apr 16 14:00:55 1995 Stu Grossman (grossman@andros.cygnus.com)
1891
1892 * monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
1893 unnecessary remoteloadprotocol and remoteloadtype support.
1894 * (expect expect_prompt): Change names to monitor_expect and
1895 monitor_expect_prompt. Make them global.
1896 * (printf_monitor): Change name to monitor_printf. Make global.
1897 * (monitor_read_memory): Flush command echo to avoid parsing
1898 ambiguity with CPU32Bug monitor.
1899 * (monitor_load): Remove remoteloadprotocol and remoteloadtype
1900 support. Call target_ops->load_routine, default to
1901 monitor_load_srec.
1902 * (monitor_load_srec): Remove everything but S-record support.
1903 * monitor.h (monitor_ops): Add load_routine to provide monitor
1904 specific download capability.
1905 * remote-est.c: Clean up copyrights and comments.
1906 * w89k-rom.c: Use new xmodem support.
1907 * xmodem.c xmodem.h: New files to support xmodem downloads.
1908 * rom68k-rom.c remote-est.c: Fix copyrights, add load_routine
1909 entry to monitor_ops.
1910 * cpu32bug-rom.c: New file to support Moto BCC debuggers.
1911 * config/m68k/est.mt (TDEPFILES): Add cpu32bug.o.
1912 * config/pa/hppapro.mt (TDEPFILES): Add xmodem.o.
1913
1914 Sat Apr 15 18:00:15 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1915
1916 * rem-multi.shar: Removed; superceded by gdbserver.
1917
1918 Fri Apr 14 12:10:24 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1919
1920 * xcoffread.c (xcoff_sym_fns): Revise comment about merging this
1921 with coffread.c.
1922
1923 * breakpoint.c (fixup_breakpoints): Removed.
1924 * rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
1925 (vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.
1926
1927 * coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
1928 sections, not just SECT_OFF_MAX-1.
1929
1930 * rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
1931 to be indexed by SECT_OFF_* instead of xcoff section numbers.
1932 * objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
1933 * symtab.h: Revise comment about block_line_section.
1934 * rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
1935
1936 Sat Apr 15 14:15:14 1995 Stan Shebs <shebs@andros.cygnus.com>
1937
1938 * mpw-make.in (init.c): Don't try to do symbolic {o} in sed
1939 command, not allowed by some version of MPW Make.
1940 * ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
1941
1942 Sat Apr 15 14:05:09 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1943
1944 * alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
1945 VALUE_TYPE). Do the cast for TYPE_CODE_BOOL, TYPE_CODE_CHAR,
1946 TYPE_CODE_ENUM, and TYPE_CODE_RANGE as well as TYPE_CODE_INT.
1947
1948 Sat Apr 15 14:04:32 1995 Per Bothner <bothner@cygnus.com>
1949
1950 * alpha-tdep.c (alpha_push_arguments): Only cast to long for
1951 TYPE_CODE_INT.
1952
1953 start-sanitize-gdbtk
1954 Sat Apr 15 13:52:24 1995 Stan Shebs <shebs@andros.cygnus.com>
1955
1956 * gdbtk.c (gdb_disassemble): Read from inferior if connected
1957 to a VxWorks target.
1958
1959 Fri Apr 14 10:18:20 1995 Stu Grossman (grossman@cygnus.com)
1960
1961 * README.GDBTK: New file. Contains the obvious.
1962 end-sanitize-gdbtk
1963
1964 Thu Apr 13 16:17:04 1995 Rob Savoye <rob@darkstar.cygnus.com>
1965
1966 * remote-array.c: New file for Array Tech LSI33k based controller
1967 board.
1968
1969 Thu Apr 13 12:23:31 1995 Kung Hsu <kung@rtl.cygnus.com>
1970
1971 * a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
1972 extract_address.
1973 * remote-vxsparc.c: New file, preliminary check in, this configuration
1974 not supported yet.
1975 * remote-vxmips.c: ditto.
1976
1977 Thu Apr 13 12:10:14 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1978
1979 * rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype
1980 to declare the function.
1981
1982 Wed Apr 12 16:40:20 1995 Stan Shebs <shebs@andros.cygnus.com>
1983
1984 * monitor.h (init_monitor_ops): Declare.
1985 * rom68k-rom.c: Clarify some comments.
1986 (rom68k_open): Define as static, to match decl.
1987
1988 Wed Apr 12 16:36:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1989
1990 * gdb.gdb: New file.
1991 * .gdbinit: Move list-objfiles to gdb.gdb.
1992
1993 * values.c (set_internalvar): Set modifiable flag of newval.
1994
1995 Wed Apr 12 14:34:31 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1996
1997 * xcoffread.c: Call complain() rather than error() or printing a
1998 warning.
1999
2000 start-sanitize-arc
2001 Wed Apr 12 08:15:27 1995 Doug Evans <dje@canuck.cygnus.com>
2002
2003 * arc-tdep.c: #include "gdbcmd.h".
2004 (codestream_seek): Pass CORE_ADDR.
2005 (arc_cpu_type, tmp_arc_cpu_type, arc_cpu_type_table): New globals.
2006 (debug_pipeline_p): Likewise.
2007 (X_...): Instruction field access macros.
2008 (BUILD_INSN): Define.
2009 (codestream_tell): Allow for stream elements > 1 byte.
2010 (codestream_fill): Likewise.
2011 (setup_prologue_scan): New function.
2012 (arc_get_frame_setup): Call it. Update to current spec
2013 regarding prologues. Use BUILD_INSN.
2014 (skip_prologue): New argument `frameless_p'. Use BUILD_INSN.
2015 (arc_frame_saved_pc): New function.
2016 (frame_find_saved_regs): Use BUILD_INSN.
2017 (get_insn_type, single_step): New functions.
2018 (one_stepped): New global.
2019 (arc_set_cpu_type_command, arc_show_cpu_type_command): New functions.
2020 (arc_set_cpu_type): New function.
2021 (_initialize_arc_tdep): Define new `set' commands `cpu',
2022 `displaypipeline', and `debugpipeline'.
2023 * remote-arc.c (break_insn): Add bi-endian support.
2024 (arc_insert_breakpoint): Likewise.
2025 (arc_remove_breakpoint): Likewise.
2026 (switch_command): Delete.
2027 * arc/tm-arc.h (TARGET_BYTE_ORDER): Delete.
2028 (TARGET_BYTE_ORDER_SELECTABLE): Define.
2029 (DEFAULT_ARC_CPU_TYPE): Define.
2030 (SKIP_PROLOGUE_FRAMELESS_P): Define.
2031 (BREAKPOINT): Delete.
2032 (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Define.
2033 (DECR_PC_AFTER_BREAK): Change to 8.
2034 (NO_SINGLE_STEP): Define.
2035 (ARC_PC_TO_REAL_ADDRESS): Define.
2036 (SAVED_PC_AFTER_CALL): Use it.
2037 (NUM_REGS, REGISTER_BYTES): Fix.
2038 (FRAME_SAVED_PC): Call arc_frame_saved_pc.
2039 (FRAME_LOCALS_ADDRESS): Fix.
2040 end-sanitize-arc
2041
2042 Tue Apr 11 16:42:37 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2043
2044 * top.c, utils.c, defs.h: Remove error_hook. It is currently
2045 unused and would need to hook into error_begin()/return_to_top_level(),
2046 instead of error(), if it were to be used.
2047
2048 Tue Apr 11 13:46:25 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2049
2050 * utils.c, defs.h (warning_begin): Renamed from warning_setup, for
2051 consistency with error_begin. Also print warning_pre_print.
2052 Document it better.
2053 * utils.c (warning): Use it.
2054 * utils.c (error_begin): Doc fix.
2055 * rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
2056 symfile_objfile, nuke it.
2057
2058 Tue Apr 11 09:35:20 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2059
2060 * printcmd.c (print_address_numeric): Pass use_local to
2061 print_longest, rather than always passing 1.
2062
2063 * nlm/Makefile.in: Remove comments discussing munch.
2064
2065 start-sanitize-gdbtk
2066 Tue Apr 11 11:07:12 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2067
2068 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
2069 F_SETOWN is, use that.
2070 end-sanitize-gdbtk
2071
2072 Mon Apr 10 18:31:57 1995 Stan Shebs <shebs@andros.cygnus.com>
2073
2074 Merge in support for Mac MPW as a host.
2075 (Old change descriptions retained for informational value.)
2076
2077 * mpw-config.in (i386-unknown-go32): Change from aout.
2078 (sh-hitachi-hms): New target.
2079 * mpw-make.in (BISON): Use byacc instead of bison.
2080 (VERSION): Bump to 4.14.1.
2081 (*-pinsn.*): Remove mentions everywhere.
2082 (all): Don't build MacGDB.
2083 (gdb, SiowGDB): Depend on Version.r.
2084 (Version.r): Generate from version info.
2085 * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
2086 (main) [MPW]: Remove debugging hook.
2087 * mac-xdep.c (debug_openp): New flag.
2088 (mac_init): Set flag if env variable defined.
2089 * ser-mac.c (mac_open): Clarify error message.
2090 (mac_readchar): Call PROGRESS while looping.
2091 (mac_write): Call sleep instead of sec_sleep.
2092 (sec_sleep): Remove.
2093 * source.c (openp) [MPW]: Only print debugging info if debugging.
2094 * utils.c (query) [MPW]: Clarify that behavior is a bug.
2095
2096 * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
2097
2098 * main.c, source.c: Remove hacks that replace long strings
2099 with shorter ones, now solved portably.
2100
2101 * config/m68k/xm-mpw.h (spin.h): Include.
2102 (ALMOST_STDC): Only define if MPW_C.
2103 * config/m68k/tm-mac.h: New file, Mac target definitions.
2104
2105 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
2106 i386-unknown-aout): New targets.
2107 (mk.tmp): Add *DEPFILES definitions.
2108 * mpw-make.in: Remove gC rules, clean up definitions for other
2109 include files, bump version, fix bogus \ that should be \Option-d.
2110 (init.c): Build correctly.
2111
2112 * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
2113 (ALLDEPFILES): Add somsolib.c.
2114 (somsolib.o): Add some dependencies.
2115
2116 * mpw-config.in: Use nm-empty.h if host is not target.
2117 (xdepfiles): Add mac-xdep.c.o.
2118 (xm_file): Remove.
2119 * mpw-make.in: Add Fortran files.
2120 (XDEPFILES): Remove.
2121
2122 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
2123 * ser-mac.c (MacSerial.h): Include instead of Serial.h.
2124
2125 * mpw-make.in: Use {s} instead of {srcdir} everywhere.
2126 (bindir, libdir): Remove extra colon.
2127 (source.c): Compile with C instead of gC.
2128 (c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
2129 (install-only): Don't install MacGDB.
2130 * source.c (openp) [MPW]: Add a debugging display.
2131 (open_source_file) [MPW]: Use MPW basename finders.
2132 [MPW_C]: Briefer versions of help for line and list commands.
2133
2134 * mpw-make.in: Change references from paread.c to somread.c
2135
2136 * mpw-make.in (VERSION): Update to 4.12.3.
2137 (SiowGDB): New target, GDB using SIOW library.
2138 (init-new.c): New target, attempt to generate init.c from sources.
2139 (main.c.o, top.c.o): Put each in its own segment.
2140 * main.c (main) [MPW]: Always call mac_init.
2141 * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
2142 an extra newline otherwise.
2143 * mac-xdep.c: More comments in various places, remove junk.
2144 (mac_init): Add tests for MPW and SIOW.
2145 (use_wne, has_color_qd): Renamed.
2146 (use_color_qd): New variable.
2147 (grow_window): Only do console resizing to console window,
2148 call resize_console_window.
2149 (zoom_window): Call resize_console_window.
2150 (resize_console_window, scroll_text): New functions.
2151 (adjust_console_sizes): Always align viewrect to even multiples of
2152 text lines.
2153 (adjust_console_text): Always scroll by whole lines.
2154 (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
2155 recalculation of scroll positions if a newline was output.
2156 (hacked_fflush): Similarly, for flushing.
2157 (hacked_fgetc): New function, aborts if called in MacGDB.
2158 * ser-mac.c (mac_readchar): Rename starttime to start_time,
2159 remove debugging printf.
2160 (mac_write): Sleep on first 4 writes.
2161 (sec_sleep): New function, works like standard sleep.
2162 * macgdb.r: Adjust positioning and contents of About box.
2163 Set minimum size to 2000K, preferred size to 5000K.
2164 * config/m68k/xm-mpw.h (fgetc): Define as a macro.
2165
2166 * mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
2167 (top.c.o, annotate.c.o): Add build rules.
2168 * macgdb.r (SysTypes.r): Include.
2169 ('vers'): New resource, version info.
2170 (mFile, mEdit, mDebug): Enable all menu items.
2171 (mDebug): Add key equivalents for continue, step, next.
2172 (wConsole): Add zoom and close boxes to window.
2173 * mac-xdep.c (new_console_window): New function, code taken from
2174 mac_init.
2175 (mac_command_loop): Use GetCaretTime for wait interval, call
2176 do_idle on null events.
2177 (do_idle): New function.
2178 (zoom_window): Implement zooming.
2179 (v_scroll_proc): New function, handles vertical scrolling.
2180 (activate_window): Do activation of console window.
2181 (do_menu_command): Implement items of file, edit, and debug menus.
2182 (do_keyboard_command): Fix command extraction.
2183 (adjust_console_sizes, adjust_console_text): New functions.
2184 (hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
2185 hacked_putc): Don't call draw_console.
2186 * ser-mac.c (mac_open): Add an error message for invalid ports.
2187 (first_mac_write): New global.
2188 (mac_write): Use first_mac_write to sleep on first several writes.
2189
2190 * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
2191 (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
2192 (TSOBS): Don't compile inflow.c.
2193 (all, install): Add MacGDB.
2194 * main.c (main): Do Mac-specific init and command loop if a
2195 standalone app, skip full option help message if compiling
2196 with MPW C.
2197 (gdb_readline): If MPW, add a newline after the (gdb) prompt.
2198 * utils.c (_initialize_utils): If MPW, don't try to use termcap to
2199 compute the window size.
2200 * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
2201 fflush): Define as macros that expand into hacked_... versions.
2202 (StandAlone, mac_app): Declare.
2203 * macgdb.r (SIZE): Set the default partition to 4000K.
2204 * mac-xdep.c (readline.h, history.h): Include.
2205 (terminal.h): Don't include.
2206 (mac_app): Define.
2207 (gdb_has_a_terminal): Define Mac-specific version.
2208 (do_keyboard_command): Simplify search for command string.
2209 (readline): Define as gdb_readline.
2210 Add other history/readline stubs to make main gdb link.
2211 (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
2212 hacked_fputc, hacked_fflush): New functions, intercept output to
2213 stdout and stderr, send to console window.
2214
2215 * mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
2216 (XDEPFILES): Define.
2217 (main.c.o): Compile with gC instead of C.
2218 * mac-defs.h: New file, menu etc definitions shared between
2219 C and Rez files.
2220 * macgdb.r: New file, Rez (resource compiler) resource
2221 definitions.
2222 * mac-xdep.c: New file, Mac host interface code.
2223 * config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
2224 DIRNAME_SEPARATOR.
2225 (PATHNAME_SEPARATOR_STRING): Remove.
2226 (SIGQUIT, SIGHUP): Define.
2227 (fileno, R_OK): Define.
2228
2229 * mpw-config.in: New file, MPW configuration fragment.
2230 * mpw-make.in: New file, MPW makefile fragment.
2231 * config/m68k/xm-mpw.h: New file, MPW host definitions.
2232 * ser-mac.c: New file, Mac serial interface.
2233
2234 Mon Apr 10 16:47:57 1995 Kung Hsu <kung@mexican.cygnus.com>
2235
2236 * valprint.c (print_longest): Fix a syntax error in #ifdef
2237 PRINTF_HAS_LONG_LONG.
2238
2239 * config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
2240 PRINTF_HAS_LONG_LONG.
2241 * config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
2242
2243 Sat Apr 8 02:47:45 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2244
2245 * mdebugread.c (parse_symbol): Use new variable
2246 nodebug_var_symbol_type as type of variables which don't have any
2247 ecoff debug info associated with them.
2248 (parse_symbol, parse_procedure): Use heuristics to determine if
2249 functions were compiled without debugging info and change their
2250 type to nodebug_function_symbol_type.
2251 (_initialize_mdebugread): Initialize nodebug_*_symbol_type.
2252
2253 * source.c (line_info): Clear sal.pc for `info line' without
2254 arguments.
2255
2256 Fri Apr 7 17:43:01 1995 Stu Grossman (grossman@andros.cygnus.com)
2257
2258 * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
2259 send_xmodem_packet shows up to do the obvious. Lots of fixes to
2260 xmodem downloads including resetting of block number at start of
2261 new transfers, fix for buffer overrun problem, addition of CRC
2262 generation code.
2263 * (monitor_open): loadtype_str and loadproto_str now default to
2264 first entry in monitor_ops->loadtypes.
2265 * (monitor_wait): Lengthen register dump buf, because of verbose
2266 Winbond monitor.
2267 * (monitor_fetch_register): Report unimplemented registers as 0.
2268 * (monitor_read_memory): Only do 16 byte aligned transfers
2269 because of formatting weirdness with the Winbond monitor. Also,
2270 ignore non-hex, non-whitespace formatting between bytes (same
2271 monitor).
2272 * (monitor_load): Clean up logic.
2273 * (monitor_load_srec): Re-do xmodem support. Move lots of it
2274 into send_xmodem_packet.
2275 * (getacknak): Get rid of polls and timeouts. Handle CRC
2276 requests from receiver.
2277 * (monitor_make_srec): Efficiency improvements. Don't call
2278 sprintf to output two digit hex numbers.
2279 * (crcinit, docrc): New, CRC-16 support routines.
2280 * (send_xmodem_packet): New routine to generate either CRC-16 or
2281 checksummed xmodem packets.
2282
2283 * remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
2284 Reduce tables down to only the load types supported by each
2285 monitor.
2286
2287 * w89k-rom.c (w89k_supply_register): Parses output of Winbond
2288 register dumps.
2289 * (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
2290 * (w89k_cmds): Add clear all breakpoints, memory fill, and dump
2291 registers commands.
2292
2293 * config/pa/tm-hppa.h: Define lots register offsets needed by
2294 w89k-rom.c.
2295
2296
2297 Thu Apr 6 17:00:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2298
2299 * Makefile.in (X11_INCLUDES): Define as empty.
2300 (X11_CFLAGS): Define as including $(X11_INCLUDES).
2301 (X11_LIB_SWITCHES): Define as empty.
2302 (X11_LIBS): Define as -lX11.
2303
2304 start-sanitize-gdbtk
2305 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
2306 and --x-libraries switches, setting the X11_INCLUDES and
2307 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
2308 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
2309
2310 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
2311 it. This means that the stop button doesn't work, but is better
2312 than nothing.
2313 end-sanitize-gdbtk
2314
2315 Wed Apr 5 19:57:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2316
2317 * mips-tdep.c (mips_print_register): Remove unused variable
2318 our_type and call to init_type. Fixes memory leak. Reindent function.
2319
2320 * mips-tdep.c (mips_print_register), findvar.c
2321 (write_register_bytes): Make buffer char[] instead of unsigned
2322 char[].
2323
2324 Mon Apr 3 19:28:14 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2325
2326 * top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
2327 variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
2328 (for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
2329 print sym") could output extraneous stuff.
2330 * objfiles.c: Don't declare error_pre_print; defs.h does it.
2331
2332 Mon Apr 3 13:48:28 1995 Stu Grossman (grossman@andros.cygnus.com)
2333
2334 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
2335 * monitor.c (monitor_read_memory): Use previously mentioned flag
2336 to send proper format memory examine commands to the w89k monitor.
2337 Also, try to handle bizarre format of memory dump...
2338
2339 * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
2340
2341 Sat Apr 1 03:22:20 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2342
2343 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
2344 Handle relocated symbol address.
2345 * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
2346 Do not relocate a zero address.
2347
2348 Thu Mar 30 19:46:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2349
2350 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
2351 is nowhere used.
2352
2353 * stabsread.c (read_range_type): Remove FIXME comment about
2354 type-id (I presume this meant a number followed by = followed by a
2355 type) versus type number; Per fixed it.
2356
2357 Wed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
2358
2359 * configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
2360
2361 Wed Mar 29 18:30:03 1995 Stan Shebs <shebs@andros.cygnus.com>
2362
2363 * remote-e7000.c (why_stop): Add new kinds of strings to expect
2364 from the emulator.
2365 (e7000_wait): Add interpretations for more stop reasons,
2366 including warnings for write protect and cycle address errors.
2367
2368 Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
2369
2370 start-sanitize-gdbtk
2371 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
2372 locations (per-host) for X11 include files.
2373 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
2374 the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs
2375 of the R5 include files.
2376 end-sanitize-gdbtk
2377 * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
2378 support for interrupting target.
2379 * monitor.c (monitor_open): Send stop command before doing
2380 anything else.
2381 * (monitor_load_srec): Fix record size calculation to prevent end
2382 of segment from getting trashed.
2383 * rom68k-rom.c: Update to latest version of struct monitor_ops.
2384 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
2385 problems. Makes DOS hosted function calling work.
2386 * sparclite/crt0.s: Define _start to make COFF happy.
2387
2388 Wed Mar 29 09:11:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2389
2390 * defs.h (atof): Don't provide an external declaration if atof is
2391 a macro.
2392
2393 Wed Mar 29 00:01:07 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2394
2395 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
2396 the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
2397 tests.
2398
2399 Tue Mar 28 17:04:04 1995 Per Bothner <bothner@kalessin.cygnus.com>
2400
2401 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
2402 set, set TYPE_FLAG_TARGET_STUB.
2403 (check_stub_type): Recalculate TYPE_LENGTH for range type.
2404 * stabsread.c (read_range_type): If index type number is followed
2405 by '=', back up, call read_type. and assume we have a true range.
2406 * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
2407
2408 Mon Mar 27 22:51:54 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2409
2410 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
2411 sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
2412 registers with zero to handle recent read_register_bytes change.
2413 * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
2414 fill_gregset): Fix handling of CAUSE_REGNUM.
2415 * mips-nat.c (store_inferior_registers): Handle unwritable
2416 registers when storing a single register.
2417 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
2418 Fix definitions.
2419
2420 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
2421 allocated mips_extra_func_info, if the debug info is corrupt,
2422 the PDR to fill it in might be missing.
2423
2424 Mon Mar 27 14:43:00 1995 Kung Hsu <kung@mexican.cygnus.com>
2425
2426 * vx-share/regPacket.h: a new file interfacing with vxworks.
2427
2428 Sun Mar 26 13:22:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2429
2430 * breakpoint.c (bpstat_do_actions): Once we've executed the
2431 commands, set bs->commands to NULL.
2432
2433 Sat Mar 25 01:16:10 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2434
2435 * buildsym.c (patch_subfile_name): Update last_source_file
2436 with the real source file name.
2437 * dbxread.c (end_psymtab): Handle static functions in the
2438 SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
2439 to lookup_minimal_symbol.
2440 (process_one_symbol): Ignore extra outermost context from
2441 SunPRO cc and acc.
2442 * stabsread.c (define_symbol): Do not complain for SunPRO
2443 static variable encoding if STATIC_TRANSFORM_NAME is defined.
2444 * sparc-tdep.c, config/sparc/tm-sun4sol2.h
2445 (sunpro_static_transform_name): Renamed from
2446 solaris_static_transform_name.
2447 * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
2448 Define to sunpro_static_transform_name for acc 3.0 compiled
2449 executables.
2450 * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
2451 Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
2452 if defined.
2453 * procfs.c (info_proc_siginfo): Cast sip->si_addr to
2454 `unsigned long' and use `lx' format for printing it.
2455
2456 Fri Mar 24 15:45:42 1995 Stu Grossman (grossman@cygnus.com)
2457
2458 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
2459 * findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
2460 the beginning of the code.
2461 * (write_register_gen): New routine. Analogous to
2462 read_register_gen.
2463 * (write_register_bytes): Another rewrite! Make it smarter about
2464 not updating regs with the same value.
2465 * monitor.c (printf_monitor readchar): Use stderr instead of
2466 stdout to output debug info. Also cleanup readchar a little.
2467 * (expect): Make sure that excessive responses are null
2468 terminated.
2469 * (monitor_open): Check for magic number in monitor_ops struct.
2470 Allow multiple commands as init strings. Also, clear all
2471 breakpoints.
2472 * (monitor_resume monitor_wait): Send a command to dump all the
2473 regs for those targets which don't do so when waking up after a
2474 continue command.
2475 * (monitor_wait): Handle excessive response output better.
2476 * (monitor_write_memory): Use block fill, word, and long word
2477 commands (if they exist) to write memory more efficiently.
2478 * General cleanups to use flag bits instead of individual flag
2479 words in monitor_ops struct.
2480 * (monitor_command): Return output from command.
2481 * (monitor_load_srec): Allocate buffer only once. Use alloca.
2482 Wait for load response string instead of using a timeout to start
2483 sending S-records. Fix bug where value of srec_frame shrinks. If
2484 hashmark is set, print `-' for retransmissions. General cleanups.
2485 * (monitor_make_srec): Get rid of S-record default type kludge.
2486 * monitor.h: Use seperate struct for memory and register
2487 read/write commands. Memory commands can come in byte, word,
2488 long, and longlong forms.
2489 * (monitor_ops): Change lots of fields. Generalize some stuff.
2490 Put all flags into flags word. Allow init to be a list of commands.
2491 Add command for clearing all breakpoints, block fill, dumping all
2492 registers.
2493 * remote-est.c: Rewrite to use new monitor conventions.
2494 * config/m68k/est.mt (TDEPFILES): Add monitor.o.
2495 * config/m68k/tm-est.h: Set NUM_REGS to 18.
2496 * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
2497 more thoroughly.
2498
2499 Thu Mar 23 23:20:00 1995 Jeff Law (law@snake.cs.utah.edu)
2500
2501 * somsolib.c (som_solib_add): Handle case where a shared library
2502 referenced by a core file has sections without the SEC_ALLOC bit
2503 set (eg stabs sections).
2504
2505 Thu Mar 23 15:07:08 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2506
2507 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
2508 chain, do all the commands regardless of whether they run the
2509 inferior.
2510
2511 Wed Mar 22 19:17:06 1995 Doug Evans <dje@cygnus.com>
2512
2513 * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
2514 BREAKPOINT if mono-endian.
2515 (break_insn): Deleted.
2516 (big_break_insn, little_break_insn): Define.
2517 (memory_insert_breakpoint): Handle bi-endian cpus.
2518 (BREAKPOINT_LEN): Define.
2519 (memory_remove_breakpoint): Use it.
2520 (memory_breakpoint_size): Likewise.
2521
2522 Tue Mar 21 17:03:17 1995 Kung Hsu <kung@mexican.cygnus.com>
2523
2524 * sparc-stub.c: add nop after 'bg good_wim'.
2525 * sparcl-stub.c: ditto.
2526
2527 Tue Mar 21 13:34:12 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2528
2529 * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
2530 TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
2531
2532 Mon Mar 20 10:09:59 1995 Jeff Law (law@snake.cs.utah.edu)
2533
2534 * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
2535
2536 Mon Mar 20 07:34:48 1995 Stu Grossman (grossman@cygnus.com)
2537
2538 * hppah-nat.c (store_inferior_registers): Move check for
2539 CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
2540 found by test suite during function calls, which attempts to write
2541 unwritable registers.
2542
2543 Sat Mar 18 02:02:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2544
2545 * mdebugread.c (parse_symbol): If finishing a function without
2546 known parameter type info, set that from parameter symbols.
2547 Remove commented-out add_param_to_type support.
2548
2549 Thu Mar 16 16:38:03 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2550
2551 * xcoffread.c (process_linenos): Make sure filename we pass to
2552 start_subfile will cause deduce_language_from_filename to return
2553 the correct thing. Reindent function to GNU standards.
2554
2555 Thu Mar 16 15:54:00 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2556
2557 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
2558 as it is not available on NetWare 3 or PIN.
2559 * nlm/ppc.c (StopBell): Removed.
2560
2561 Thu Mar 16 12:14:41 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2562
2563 * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
2564 inferred from the traceback tags, give its type the name
2565 "<non-float parameter>".
2566
2567 * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
2568
2569 Wed Mar 15 15:09:29 1995 Stu Grossman (grossman@cygnus.com)
2570
2571 * findvar.c (read_register_bytes write_register_bytes): Make
2572 these routines much smarter about updating registers from the
2573 target, only doing so when absolutely necessary. This really
2574 speeds up register modification on some remote targets.
2575
2576 * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
2577 BFD makes this unnecessary. Lots of debugging speedups.
2578 * (expect): NULL terminate return string.
2579 * (monitor_open monitor_supply_register parse_register_dump
2580 monitor_wait monitor_fetch_register): Switch to using GNU regexp
2581 library to parse multi-register displays.
2582 * (monitor_read_memory): Read multiple bytes (up to 16) at once.
2583 * (monitor_create_inferior): Call clear_proceed_status to make run
2584 command notice first breakpoint.
2585 * (monitor_load): Clean up. Reset inferior_pid, set pc to start
2586 address and reset symbol table stuff to make loads put things into
2587 a fresh state.
2588 * (monitor_load_srec): Lower sleep time to 1 second.
2589
2590 * monitor.h (struct monitor_ops): Add register_pattern and
2591 supply_register to monitor_ops.
2592
2593 * rom68k-rom.c: Add new support for handling register dumps.
2594 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
2595 dump handling.
2596
2597 Wed Mar 15 15:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2598
2599 * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
2600 argument be an int, not a char. Using a prototype followed by an
2601 old-style function definition in a case where an argument is
2602 widened is a GCC-ism not supported by the native AIX compiler.
2603
2604 Wed Mar 15 12:22:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2605
2606 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
2607 long ago.
2608
2609 * configure.in (alpha-*-netware*): Removed configuration.
2610 * config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
2611 * nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
2612 alpha.c, alpha.h, altdebug.h}: Removed.
2613
2614 * nlm/gdbserve.c (main): Add support for processing BOARD=
2615 argument, deprecate NODE=.
2616
2617 Wed Mar 15 10:58:26 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2618
2619 * c-exp.y (yylex): Make an empty character constant an error.
2620
2621 Tue Mar 14 15:00:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
2622
2623 * valops.c (value_arg_coerce): Do possible value_coerce_array
2624 before determining type argument to value_cast.
2625
2626 Tue Mar 14 10:41:41 1995 Kung Hsu <kung@mexican.cygnus.com>
2627
2628 * remote-es.c: Replace ignore with 0.
2629
2630 Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2631
2632 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
2633 If VALUE_REPEATED is already set, just error out.
2634
2635 * valops.c (value_cast, value_slice), parse.c (follow_types): Add
2636 FIXME-type-allocation comments.
2637
2638 * gdbtypes.h (struct type): Fix comment about what units the
2639 TYPE_LENGTH is in.
2640
2641 Mon Mar 13 18:27:25 1995 Stan Shebs <shebs@andros.cygnus.com>
2642
2643 * ch-valprint.c (annotate.h): Include.
2644 * eval.c (evaluate_subexp_standard): Remove unused variable.
2645 (calc_f77_array_dims): Add parens to expression.
2646 * f-exp.y (yylex): Add parens to expression, remove unused label.
2647 * f-lang.h (calc_f77_array_dims): Declare.
2648 * f-valprint.c (f_val_print): Remove unused variables.
2649
2650 Mon Mar 13 15:25:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2651
2652 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
2653 use the PDR, just examine prologues instead.
2654
2655 start-sanitize-arc
2656 Fri Mar 10 16:13:18 1995 Kung Hsu <kung@mexican.cygnus.com>
2657
2658 * config/tm-arc.h: Change arc register names.
2659 end-sanitize-arc
2660
2661 Fri Mar 10 02:49:40 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2662
2663 Fix problems with infinite recursion when printing a class
2664 that contains a static instance of the class.
2665 * cp-valprint.c (dont_print_vb_obstack): Renamed from
2666 dont_print_obstack, made static.
2667 (dont_print_statmem_obstack): New obstack, controls printing
2668 of static member classes.
2669 (_initialize_cp_valprint): Initialize it.
2670 (cp_print_static_field): New function, handles printing of
2671 static members.
2672 (cp_print_value_fields): New parameter dont_print_statmem to
2673 handle recursive printing of static member classes, use
2674 cp_print_static_field to handle printing of static members.
2675 * c-valprint.c (cp_print_value_fields): Update prototype and
2676 call to include additional dont_print_statmem parameter.
2677 * c-valprint.c, f-valprint.c (dont_print_obstack): Remove unused
2678 extern declaration.
2679
2680 * alpha-tdep.c, findvar.c, infptrace.c: Include <string.h>.
2681
2682 * config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS): Call
2683 alpha_find_saved_regs if fi->saved_regs is still NULL.
2684
2685 * elfread.c (elf_symtab_read): Ensure that the filename field
2686 of a minsym is nonempty. Ignore solib trampoline symbols from
2687 the main symbol table, they might have a bogus value.
2688
2689 * procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
2690 Fix typos in comments.
2691
2692 Thu Mar 9 17:19:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2693
2694 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
2695 pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way
2696 we know whether the PDR ever got set.
2697 * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
2698 use the PDR, just examine prologues instead.
2699
2700 Wed Mar 8 23:35:10 1995 Jeff Law (law@snake.cs.utah.edu)
2701
2702 * somsolib.c (som_solib_section_offsets): Get offset of text
2703 section right.
2704
2705 Wed Mar 8 16:12:21 1995 Stu Grossman (grossman@cygnus.com)
2706
2707 start-sanitize-gdbtk
2708 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
2709 type is not bp_breakpoint.
2710 end-sanitize-gdbtk
2711
2712 * source.c (forward_search_command reverse_search_command): Set
2713 convenience variable $_ to be the line # of the match.
2714 * symtab.c (decode_line_1): Allow convenience variables to be
2715 used in line specs (for breakpoints and such).
2716
2717 Wed Mar 8 12:51:00 1995 Stan Shebs <shebs@andros.cygnus.com>
2718
2719 * Makefile.in (VERSION): Bump to 4.14.1.
2720 * NEWS, README: Update for 4.14.
2721 * i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
2722 (i386_insert_nonaligned_watchpoint): Call aligned instead of
2723 generic watchpoint insertion.
2724
2725 Tue Mar 7 19:26:10 1995 Per Bothner <bothner@kalessin.cygnus.com>
2726
2727 * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
2728
2729 Tue Mar 7 00:23:47 1995 Stu Grossman (grossman@cygnus.com)
2730
2731 * monitor.c, array-rom.c, monitor.h, rom68k-rom.c: Move target_ops
2732 into monitor.c.
2733 * monitor.c (monitor_create_inferior): Allow run command to start
2734 program.
2735
2736 * monitor.c (monitor_load): Set PC to start address when done
2737 loading.
2738
2739 * array-rom.c, monitor.h, rom68k-rom.c: Clean up target_ops.
2740 Remove ref to monitor_create_inferior.
2741
2742 * monitor.c: More general cleanups. Add prototypes, remove
2743 unused routines. Fix bug with wrong number of args to error().
2744
2745 * main.c (main): Don't start up GUI when running under gdb mode
2746 in emacs.
2747
2748 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
2749 Sun make (with VPATH) work...
2750
2751 * monitor.c, monitor.h, rom68k-rom.c: Serious cleanup to make IDP
2752 (rom68k) target work right.
2753 * array-rom.c, op50-rom.c, w89k-rom.c: Partial updates to new
2754 monitor.c interface. More work needs to be done here.
2755 * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to
2756 match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no
2757 floating-point for this card.
2758
2759 * serial.h, ser-go32.c, ser-go32-para.c, ser-mac.c, ser-tcp.c,
2760 ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits
2761 (needed for IDP board?!?!?).
2762
2763 * defs.h, utils.c, remote-hms.c, remote-pa.c, remote.c: Fix defs
2764 and usage of fputc_unfiltered and putchar_unfiltered. Eliminate
2765 putc_unfiltered (it's superfluous).
2766
2767 * command.h, command.c, top.c: Add var_enum command type. It's
2768 like var_string but allows only only one of the specified strings.
2769
2770 Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2771
2772 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
2773 compilers (such as SunOS4 /bin/cc) don't generally support it
2774 except in some contexts.
2775
2776 Fri Mar 3 17:42:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
2777
2778 * valops.c (value_cast): Check for cast to array type *before*
2779 we coerce array to pointer (in case arg2 is already array).
2780
2781 * valops.c (call_function_by_hand): Set using_gcc to 2 if using
2782 gcc2. Needed for REG_STRUCT_HAS_ADDR to work on sparc.
2783 Also check REG_STRUCT_HAS_ADDR for union, array and string types.
2784
2785 * valops.c (call_function_by_hand): Re-arrange code for pushing
2786 paramaters on the stack so we can do better STACK_ALIGN.
2787
2788 * valops.c (call_function_by_hand): Call error if the number
2789 of arguments is fewer than parameter types in function type.
2790
2791 Fri Mar 3 17:13:05 1995 Doug Evans <dje@canuck.cygnus.com>
2792
2793 * sparc-tdep.c (sparc_extract_struct_value_address): Move
2794 sparc64 support to here.
2795 (sparc64_extract_struct_value_address): Deleted.
2796 (dump_ccreg): Add a prototype so long long arg -> int.
2797 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
2798 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2799
2800 Fri Mar 3 15:12:12 1995 Jeff Law (law@snake.cs.utah.edu)
2801
2802 * hpread.c (hpread_record_lines): New argument "offset". All
2803 callers changed. Use it to handle dynamic address relocation.
2804 (hpread_build_psymtabs): Adjust texthigh as we read each function
2805 debug symbol. Fix computation of texthigh.
2806 (hpread_read_subrange_type): Work around macro bugs in HP's
2807 compilers.
2808 (hpread_process_one_debug_symbol): Correctly map source lines.
2809
2810 * somread.c (check_strange_names): Filter names emitted by the HP
2811 compiler when generating PIC code.
2812
2813 * valops.c (value_struct_elt_for_reference): Work around macro
2814 bugs in HP's compilers.
2815 * c-exp.y (block): Likewise.
2816
2817 Fri Mar 3 12:27:28 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2818
2819 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
2820 store_address.
2821
2822 * utils.c [_AIX]: Include stddef.h instead of #defining size_t.
2823
2824 Fri Mar 3 12:33:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2825
2826 * rs6000-tdep.c (skip_prologue): Skip multiple stores of the saved
2827 registers that GCC emits on the PowerPC by default in addition to
2828 the store multiple instruction used on the Power series.
2829
2830 Fri Mar 3 00:54:58 1995 Doug Evans <dje@canuck.cygnus.com>
2831
2832 * sparc-tdep.c (decode_asi): New function.
2833 (sparc_print_register_hook): Pretty print more v9 registers.
2834 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos.
2835
2836 Thu Mar 2 22:20:22 1995 Doug Evans <dje@canuck.cygnus.com>
2837
2838 * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
2839 (target_to_host): Change result type to CORE_ADDR.
2840
2841 Thu Mar 2 15:13:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2842
2843 * rs6000-tdep.c: Fix byte-swapping sins.
2844
2845 Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com>
2846
2847 * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
2848 code between branch unconditional and branch conditional cases.
2849
2850 Wed Mar 1 09:41:26 1995 Doug Evans <dje@canuck.cygnus.com>
2851
2852 Various changes for sparc64.
2853 * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
2854 (SPARC_INTREG_SIZE): Define.
2855 (*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
2856 where appropriate.
2857 (enum branch_type): New value `done_retry'.
2858 (isbranch): Renamed from isannulled. All callers changed.
2859 Support new sparc64 branch insns.
2860 (single_step): Handle done_retry.
2861 (sparc_extract_struct_value_address): Don't assume 4 byte regs.
2862 (get_saved_register): Likewise.
2863 (sparc_push_dummy_frame): Likewise.
2864 (sparc_frame_find_saved_regs): Likewise.
2865 (sparc_pop_frame): Likewise. Don't refer to FPS_REGNUM, CPS_REGNUM,
2866 or PS_REGNUM if not sparc64. sparc64 has 64 fp regs.
2867 (sparc64_extract_struct_value_address): New function.
2868 (dump_ccreg, sparc_print_register_hook): Likewise.
2869 * sp64-tdep.c: Deleted.
2870 * sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
2871 (NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
2872 (CC_HAS_LONG_LONG): Define.
2873 (REGISTER_NAMES): Delete cle/tle and reorganize.
2874 (PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
2875 sparc-tdep.c now.
2876 (REGISTER_BYTES): Update.
2877 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
2878 (EXTRACT_RETURN_VALUE): Delete. Use definition in tm-sparc.h.
2879 (NO_SINGLE_STEP): Likewise.
2880 * sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
2881 * sparc/sp64.mt: Move simulator support ...
2882 * sparc/sp64sim.mt: ... to here.
2883
2884 Wed Mar 1 13:14:42 1995 Kung Hsu <kung@mexican.cygnus.com>
2885
2886 * remote-vx960.c: new file for target specific register packaging.
2887 * remote-vx68.c: ditto.
2888 * config/i960/vxworks960.mt: add remote-vx960.o.
2889 * config/m68k/vxworks68.mt: add remote-vx68.o.
2890
2891 Wed Mar 1 13:42:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2892
2893 * remote.c (remote_wait): Make calls to strtol be type correct by
2894 passing the address of a char * pointer instead of an unsigned
2895 char *.
2896
2897 * rs6000-tdep.c (push_dummy_frame): Cast sp to char * when calling
2898 write_memory to make things type correct.
2899
2900 Wed Mar 1 12:17:31 1995 Michael Meissner <meissner@cygnus.com>
2901
2902 * ch-exp.y, c-exp.y, f-exp.y, m2-exp.y (yy defines): Support the
2903 standard Linux yacc by adding more names to be redefined with a
2904 prefix.
2905
2906 Tue Feb 28 22:55:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2907
2908 * hppa-tdep.c (pa_print_registers), monitor.c: Use
2909 extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
2910 * defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
2911 Rename it to SWAP_FLOATING to make it clear it is no longer for
2912 integers.
2913
2914 Tue Feb 28 14:38:39 1995 Kung Hsu <kung@mexican.cygnus.com>
2915
2916 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
2917 compile time.
2918
2919 start-sanitize-arc
2920 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
2921 processor.
2922 * remote-arc.c (arc_wait): when a processor stops, stop other two
2923 processors too.
2924 * remote-arc.c (switch_command): switch tm_print_insn.
2925 end-sanitize-arc
2926
2927 * vx-share/ptrace.h: merge in WRS new ptrace requests.
2928
2929 * defs.h: fix a syntax error.
2930
2931 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
2932 * remote-vx.c: move read_register and write_register out to
2933 target specific files.
2934 * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
2935
2936 * defs.h: define SWAP_TARGET_AND_HOST macro.
2937 * findvar.c, monitor.c, hppa-tdep.c: remove definition of
2938 SWAP_TARGET_AND_HOST.
2939
2940 Tue Feb 28 08:31:40 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2941
2942 * alpha-tdep.c (find_proc_desc): Only attempt to set
2943 PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
2944
2945 Mon Feb 27 11:56:32 1995 Stan Shebs <shebs@andros.cygnus.com>
2946
2947 * monitor.c: General gcc -Wall lint cleanup and reformat.
2948 (monitor_command): If no args, send an empty command.
2949
2950 Thu Feb 23 21:07:25 1995 Stu Grossman (grossman@cygnus.com)
2951
2952 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
2953 after send LOAD_CMD to prevent loss of first S-record.
2954
2955 Tue Feb 21 20:48:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
2956
2957 * valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
2958 Call error if too few arguments.
2959 If REG_STRUCT_HAS_ADDR (structs passed by invisible reference),
2960 copy and convert to reference *before* we calculate alignment.
2961 Also, make sure structs allocated for return values and invisible
2962 reference don't violate STACK_ALIGN.
2963
2964 Tue Feb 21 23:29:59 1995 Per Bothner <bothner@rtl.cygnus.com>
2965
2966 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
2967 (same as C's '(TYPE[])EXPR')
2968
2969 Tue Feb 21 11:47:26 1995 Stan Shebs <shebs@andros.cygnus.com>
2970
2971 * top.c (print_gdb_version): Update the year.
2972
2973 Sun Feb 19 14:31:57 1995 Jim Kingdon <kingdon@rtl.cygnus.com>
2974
2975 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Look for newlib in
2976 `..' not in `../..'.
2977
2978 Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2979
2980 * procfs.c (unconditionally_kill_inferior): Don't issue a PIOCKILL
2981 in addition to a PIOCSSIG to kill the inferior.
2982
2983 Thu Feb 16 15:06:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2984
2985 * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
2986 create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
2987 * valops.c (value_cast): If a cast like (TYPE[])VALUE (i.e. array
2988 of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
2989 * c-typeprint.c (c_type_print_varspec_suffix): If array length
2990 is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
2991
2992 Thu Feb 16 16:06:50 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2993
2994 * dcache.c (insque, remque): Rewrite Linux support.
2995
2996 Wed Feb 15 12:33:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2997
2998 * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1.
2999
3000 * dcache.c (insque, remque): If compiling in standard C on Linux,
3001 protect insque and remque with macros to cast the pointer
3002 arguments to the proper type.
3003
3004 Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com)
3005
3006 * annotate.c, breakpoint.c, defs.h, top.c: Replace
3007 enable/disable_breakpoint_hook with modify_breakpoint_hook.
3008 start-sanitize-gdbtk
3009 * gdbtk.c: Ditto.
3010 * gdbtk.c: General cleanups, get rid of unused variables. Redo
3011 handling of stdout/stderr to just return output as the result of
3012 the tcl command that caused the output. Cleanup -Wall stuff.
3013 * (breakpoint_notify): Now returns just action and breakpoint
3014 number.
3015 * (gdb_get_breakpoint_list): New routine. Does the obvious.
3016 * (gdb_get_breakpoint_info): Mostly derived from the old
3017 breakpoint_notify, but returns lots more info.
3018 * (dsprintf_append_element): Helper routine, works like printf,
3019 but appends a tcl element onto the specified DString. Good for
3020 building up lists as return values.
3021 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
3022 gdbtk_modify_breakpoint.
3023 * (*many routines*): Use new result protocol.
3024 * (call_wrapper): Make sure that recursive calls don't trash results.
3025 * gdbtk.tcl: New windows, autocmd, and breakpoints.
3026 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
3027 anymore. It's not needed (in fact, this routine may not be needed
3028 anymore).
3029 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
3030 notification protocol.
3031 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
3032 catches.
3033 * (interactive_cmd): Use this wrapper around button invocations
3034 of many commands. This will catch errors and put the results into
3035 the command window. It also updates all the other windows.
3036 * Also, change reliefs of most things to sunken. This actually
3037 looks better.
3038 * (create_file_win): Fix margin binding to allow breakpoints to
3039 work again.
3040 * (create_asm_win): Use return value of gdb_disassemble instead
3041 of implicit I/O to the command window.
3042 * (create_command_window): Use new result protocol to get output
3043 from commands.
3044 end-sanitize-gdbtk
3045
3046 Tue Feb 14 16:58:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3047
3048 * expression.h: Move declaration of evaluate_subexp_with_coercion
3049 from here...
3050 * value.h: ...to here.
3051 * expression.h: Don't include value.h
3052
3053 Tue Feb 14 11:46:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3054
3055 * expression.h: Move include of value.h until after declaration of
3056 enum exp_opcode.
3057
3058 Sun Feb 12 13:47:30 1995 Stan Shebs <shebs@andros.cygnus.com>
3059
3060 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
3061 simplify code, declare things, format to standards.
3062 (inferior.h, value.h, command.h, remote-utils.h): Include.
3063 (e7000_login): Rename to e7000_login_command.
3064 (e7000_ftp): Rename to e7000_ftp_command.
3065 (e7000_drain): Rename to e7000_drain_command.
3066
3067 * irix5-nat.c (string.h): Include near beginning of file.
3068
3069 Sun Feb 12 12:36:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3070
3071 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
3072 arg, it is a value not a symbol.
3073
3074 gcc -Wall lint:
3075 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
3076 * expression.h: ..to here.
3077 * expression.h: Include value.h.
3078 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
3079
3080 Sun Feb 12 11:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
3081
3082 * language.h (struct language_defn): New field evaluate_exp.
3083 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
3084 f-lang.c (f_language_defn), language.c (unknown_language_defn,
3085 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
3086 Set evaluate_exp to evaluate_subexp_standard.
3087 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
3088 support for MULTI_SUBSCRIPT.
3089 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
3090 * eval.c (enum noside): Move from here ....
3091 * expression.h (enum noside): ... to here.
3092 (evaluate_subexp_standard): New prototype.
3093 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
3094 Removed lo-longer-needed test for chill_varying_type.
3095 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
3096
3097 * ch-exp.y (maybe_expression_list): New non-terminal.
3098 (primitive_value): Allow empty parameter list.
3099
3100 Sun Feb 12 10:02:16 1995 Per Bothner <bothner@cygnus.com>
3101
3102 * buildsym.c (finish_block): If finishing a function without known
3103 parameter type info, set that from parameter symbols.
3104 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
3105 print parameter types, if available.
3106 * ch-typeprint.c (chill_type_print_base): Likewise.
3107
3108 * gdbtypes.h (struct type): Remove function type field.
3109 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
3110 function types now that we're also storing parameter types.
3111 And the payoff is much less.
3112 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
3113 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
3114 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
3115
3116 * valops.c (value_arg_coerce): Now takes param_type argument.
3117 (call_function_by_hand): Convert arguments with value_arg_coerce
3118 early, and overwrite original args with converted args.
3119 No longer need multiple calls to value_arg_coerce.
3120 (value_arg_push): Removed.
3121 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
3122 * mips-tdep.c (mips_push_arguments): Likewise.
3123 * alpha-tdep.c (alpha_push_arguments): Likewise.
3124 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
3125 Likewise.
3126 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
3127
3128 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
3129
3130 * symtab.c (add_param_to_type): Remove (commented-out) function,
3131 since that functionality has been re-written.
3132 * coffread.c: Remove commented-out add_param_to_type support.
3133 * mdebugread.c (parse_symbol): Likewise.
3134 * stabsread.c (define_symbol): Likewise.
3135
3136 Sun Feb 12 09:03:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3137
3138 * buildsym.c (start_subfile): Set language for f2c like for cfront.
3139
3140 Thu Feb 9 20:20:11 1995 Rob Savoye <rob@darkstar.cygnus.com>
3141
3142 * op50n-rom.c: Add the control registers.
3143
3144 Thu Feb 9 15:46:39 1995 Stan Shebs <shebs@andros.cygnus.com>
3145
3146 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
3147 after, any host/target/native libraries.
3148 * dcache.c (insque, remque): Remove declarations.
3149 * gdbtypes.h (type_code): Remove trailing comma.
3150
3151 From Peter Schauer:
3152 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
3153 STATIC_NODEBUG_VARS inside case.
3154
3155 Thu Feb 9 07:43:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3156
3157 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
3158 * partial-stab.h: Call it.
3159 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
3160 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
3161 get the address.
3162 * sparc-tdep.c (solaris_static_transform_name): New function.
3163
3164 Thu Feb 9 12:09:09 1995 Jeff Law (law@snake.cs.utah.edu)
3165
3166 * somread.c (som_symtab_read): Handle dynamic relocation for both
3167 text and data symbols.
3168 (som_symfile_offsets): If objfile is a shared library, then get
3169 text and data offsets from the shared library structures.
3170 * somsolib.c (som_solib_add): Copy the bfd pointer from the
3171 objfile rather than reopening the file again.
3172 (som_solib_section_offsets): New function.
3173 * somsolib.h (som_solib_section_offsets): Declare.
3174
3175 Wed Feb 8 20:32:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3176
3177 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
3178 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
3179 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
3180 filename field.
3181 * elfread.c (record_minimal_symbol_and_info),
3182 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
3183 newly created symbol.
3184 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
3185 Set filename field of minimal symbol.
3186 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
3187 Print filename field.
3188 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
3189 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
3190 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
3191 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
3192 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
3193 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
3194 Find address of function from minimal symbols.
3195 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
3196 instead of getting pst->textlow from the stab.
3197 * minsyms.c (find_stab_function_addr): New function.
3198
3199 Wed Feb 8 19:19:56 1995 Rob Savoye <rob@darkstar.cygnus.com>
3200
3201 * monitor.c: Fix so all the output shows up in the GUI command
3202 window.
3203
3204 Mon Feb 6 18:50:59 1995 Stan Shebs <shebs@andros.cygnus.com>
3205
3206 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
3207 line, so init.c generation works correctly.
3208 start-sanitize-arc
3209 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3210 end-sanitize-arc
3211
3212 Mon Feb 6 14:44:36 1995 Rob Savoye <rob@darkstar.cygnus.com>
3213
3214 * config/mips/idt.mt: Add support for the lsi33k target.
3215 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
3216 * array-rom.c: Finish the rest of the support commands needed by
3217 GDB.
3218 * mips-tdep.c: Add LSI33k register names and processor type.
3219
3220 start-sanitize-gdbtk
3221 Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3222
3223 * gdbtk.c (gdb_disassemble): Deference pointer to function before
3224 calling it (pre-ANSI compilers generally require this).
3225
3226 end-sanitize-gdbtk
3227 Sat Feb 4 13:29:52 1995 Stan Shebs <shebs@andros.cygnus.com>
3228
3229 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
3230
3231 Fri Feb 3 16:47:31 1995 Kung Hsu <kung@mexican.cygnus.com>
3232
3233 * ser-go32-para.c (dos_read): fix syntax errors.
3234
3235 Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
3236
3237 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
3238 dis_asm_read_memory_hook. We can now call the disassemblers
3239 directly and have no need for this hook anymore.
3240 start-sanitize-gdbtk
3241 * gdbtk.c (gdb_disassemble): Ditto.
3242 end-sanitize-gdbtk
3243 * defs.h, printcmd.c: Make print_insn be static.
3244
3245 * ser-go32.c (dos_comisr): Make this 8 bit clean.
3246 * (dos_open dos_close): Allow multiple opens to the same device.
3247 Use a ref count to prevent unwanted deallocations.
3248 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
3249 happy.
3250 * (sparclite_ops): Switch to download_stratum.
3251 * target.h (enum strata): Move download_stratum before
3252 process_stratum so that executable targets get pushed on top of
3253 download targets.
3254
3255 Thu Feb 2 19:02:45 1995 Rob Savoye <rob@darkstar.cygnus.com>
3256
3257 * array-rom.c: Remove the non GDB remote protocol config stuff.
3258
3259 * monitor.c: All reading/writing functions for memory and
3260 registers work.
3261
3262 Thu Feb 2 16:11:04 1995 Kung Hsu <kung@mexican.cygnus.com>
3263
3264 start-sanitize-arc
3265 * config/arc/arc.mt: new target makefile for arc processor.
3266 * config/arc/tm-arc.h: new target header for arc processor.
3267 * config/arc/go32.mh: new go32 host makefile for arc processor.
3268 * config/arc/xm-go32.h: new go32 host header for arc processor.
3269 * arc-tdep.c: new target dependent codes for arc processor.
3270 * remote-arc.c: new file for arc-specific protocol through
3271 parallel line.
3272 end-sanitize-arc
3273 * ser-go32-para.c: new file for go32 parallel port communication.
3274
3275 Thu Feb 2 13:58:40 1995 Stan Shebs <shebs@andros.cygnus.com>
3276
3277 * Makefile.in (VERSION): Bump to 4.13.2.
3278
3279 Thu Feb 2 07:27:56 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3280
3281 Fix compiler warnings:
3282 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
3283 and have the caller do the sprintf. Saves us from varargs hell.
3284 (normal): Define before use.
3285 * remote-e7000.c: Reindent a few things.
3286
3287 Wed Feb 1 21:16:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
3288
3289 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
3290 ranges in reverse order.
3291 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
3292
3293 * eval.c (evaluate_subscript): Don't call value_subscript, since
3294 it adjusts for lower bound and enforces ranges.
3295
3296 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
3297 * eval.c, parse.c: Removed uses of removed opcodes.
3298 * eval.c (evaluate_subexp): Clean up handling of
3299 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
3300
3301 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
3302 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
3303
3304 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
3305 duplicate function made redundant by chill_varying_type.
3306
3307 Re-write of f77 string and complex number support:
3308
3309 * language.h (struct language_defn): New fields string_lower_bound
3310 and string_char_type.
3311 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
3312 language.c (unknown_language_defn, auto_language_defn,
3313 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
3314 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
3315 * gdbtypes.c (create_string_type): Use new string_char_type field.
3316 * valops.c (value_string): Use new string_lower_bound field.
3317
3318 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
3319 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
3320 m2-lang.c (m2_create_fundamental_type),
3321 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
3322 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
3323 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
3324 Removed. Use builtin_type_complex and builtin_type_double_complex.
3325
3326 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
3327 and TYPE_CODE_LITERAL_COMPLEX.
3328 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
3329 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
3330 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
3331 f77_create_literal_string_type): Removed.
3332 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
3333 VALUE_SUBSTRING_MYADDR): Removed.
3334
3335 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
3336 OP_COMPLEX.
3337 * parse.c: Update accordingly.
3338
3339 * f-valprint.c (f77_print_cmplx): Removed.
3340 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
3341
3342 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
3343 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
3344 f77_value_literal_string.
3345 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
3346 f77_assign_from_literal_string, f77_assign_from_literal_complex):
3347 Removed.
3348 (value_assign): No longer need to handle literal types.
3349 * valops.c (f77_value_literal_complex), value.h: Re-written and
3350 renamed to value_literal_complex. Last arg is now a (complex) type.
3351 * valops.c (f77_cast_into_complex): Re-written and renamed to
3352 cast_into_complex.
3353 * eval.c (evaluate_subexp): Update accordingly.
3354
3355 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
3356 print address for non-'s'-formats.
3357 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
3358 of chill_is_varying_struct.
3359
3360 Wed Feb 1 13:27:33 1995 Stan Shebs <shebs@andros.cygnus.com>
3361
3362 gcc -Wall lint.
3363 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
3364 (after_prologue): Remove unused local b.
3365 * procfs.c (thread.h): Include.
3366 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
3367 nested braces in initializer.
3368 * top.c (initialize_targets, initialize_utils): Declare.
3369 (locate_arg, insert_args): Add parens around tested assignments.
3370 * remote-utils.c (sr_scan_args): Remove decl of strtol.
3371 * remote.c (thread.h): Include.
3372 (remote_wait): Remove unused local p2.
3373 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
3374 registers array.
3375
3376 defs.h (stdlib.h): Include.
3377 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
3378 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
3379 strtok, strerror): Don't specify parameter types in declaration.
3380
3381 Wed Feb 1 12:23:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
3382
3383 * ch-exp.y (value_string_element, string_primitive_value,
3384 start_element, left_element, right_element, slice_size,
3385 lower_element, upper_element, first_element): Removed.
3386 (value_string_slice, value_array_slice): Replaced by ...
3387 (slice): New non-terminal, with working slice support.
3388 (primitive_value_lparen, rparen): New non-terminals.
3389 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
3390 (idtokentab): Added "up".
3391
3392 * value.h (COERCE_VARYING_ARRAY): New macro.
3393 * valarith.c (value_subscript): Use it.
3394 * valops.c (value_cast): Likewise. Also, do nothing if already
3395 correct type, and allow converting from/to range to/from scalar.
3396
3397 * valops.c, value.h (varying_to_slice, value_slice): New functions.
3398 * eval.c (OP_ARRAY): Add cast for array element.
3399 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
3400 * valops.c (chill_varying_type): Moved function frp, here ...
3401 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
3402 * parse.c (length_of_subexp, prefixify_subexp): Add support
3403 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
3404 * expprint.c (print_subexp, dump_expression): Likewise.
3405 * eval.c (evaluate_subexp): Likewise.
3406
3407 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
3408 value_x_binop on a Chill varying string.
3409
3410 Tue Jan 31 13:51:53 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3411
3412 * config/m68k/monitor.mt,
3413 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
3414 depfiles in TDEPFILES not REMOTE_O.
3415
3416 Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
3417
3418 From nigel@algor.co.uk.
3419 * ser-go32.c (dos_close): Don't crash if scb null.
3420 (dos_sendbreak): New function.
3421 (dos_ops): Point to dos_sendbreak.
3422 (dos_info): Calculate COM number correctly.
3423
3424 Tue Jan 31 09:40:11 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3425
3426 * xcoffread.c (process_xcoff_symbol): Use new variables
3427 func_symbol_type and var_symbol_type as type of functions and
3428 variables which don't have any stabs associated with them.
3429 Reindent most of function.
3430 (_initialize_xcoffread): Initialize *_symbol_type.
3431
3432 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
3433 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
3434 them (this part commented out as I didn't quite get it to work).
3435 (cs_to_section, find_targ_sec): New functions, to support above code.
3436 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
3437 actually present.
3438
3439 Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
3440 start-sanitize-gdbtk
3441 * gdbtk.tcl (create_file_win): Disable old popup menu for source
3442 window.
3443 end-sanitize-gdbtk
3444 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
3445 downloads to SPARClite demo boards.
3446
3447 Sun Jan 29 09:43:22 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3448
3449 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
3450 no hope of working as is for a long time (in particular, shebs' 27
3451 Jan 95 change confuses the issue further--target_read_memory and
3452 xfer_core_file do *not* do the same thing in this context).
3453 Revise comment.
3454
3455 Sat Jan 28 13:40:46 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3456
3457 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
3458 procedure linkage table symbols, it is no longer set due to the
3459 Jan 6 BFD change in bfd/elfcode.h.
3460
3461 Fri Jan 27 17:08:06 1995 Stan Shebs <shebs@andros.cygnus.com>
3462
3463 * top.c (use_windows): Clarify comments.
3464
3465 * convex-tdep.c (xfer_core_file): Comment out.
3466 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
3467 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
3468 references to target_read_memory.
3469 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
3470 declarations.
3471 * corelow.c (core_open, core_detach): Make static.
3472
3473 * arm-tdep.c: Make it compile.
3474 (exec_file_command, xfer_core_file): Comment out.
3475 (arm_print_insn): Remove, now in libopcodes.
3476 (skip_prologue): Comment out most of body.
3477 (arm_frame_find_saved_regs): Move here from tm-arm.h.
3478 (_initialize_arm_tdep): Set tm_print_insn.
3479 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
3480 (XFER_CORE_FILE): Remove.
3481 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
3482
3483 Fri Jan 27 08:48:28 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3484
3485 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
3486
3487 Thu Jan 26 18:24:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3488
3489 * symtab.c (find_pc_line): When subtracting one to get a line
3490 number, make sure not to end up with zero.
3491
3492 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
3493 problems with those changes were (a) the file didn't compile, (b)
3494 they changed memset to bzero--memset is correct, (c) they took out
3495 code to deal with boards lacking floating point, (d) who knows
3496 what I didn't discover in a quick read.
3497
3498 Thu Jan 26 17:32:54 1995 Stu Grossman (grossman@cygnus.com)
3499
3500 * sparcl-tdep.c: Clean up formatting and indentation.
3501
3502 Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
3503
3504 * remote-hms.c (hms_ops): Change ref of hr_load_image
3505 to gr_load_image.
3506 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
3507 dcache_poke, dcache_init): Deleted.
3508 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
3509 Use dcache routines provided by remote-util.h
3510
3511 Thu Jan 26 12:08:31 1995 Michael Meissner <meissner@cygnus.com>
3512
3513 * configure.in: Add support for powerpc-*-eabi.
3514
3515 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
3516 PowerPC support.
3517
3518 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
3519
3520 * language.h (struct language_defn): New field c_style_arrays.
3521 * language.c (unknown_language_defn, auto_language_defn,
3522 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
3523 asm_language_defn): Set c_style_arrays to true.
3524 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
3525 f-lang.c (f_language_defn): Set c_style_arrays to false.
3526 * valops.c (value_string): If c_style_array is not set,
3527 allocate string in gdb (not inferior) using allocate_value.
3528
3529 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
3530 Only call value_coerce_array if current_language->c_style_arrays.
3531 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
3532
3533 * valops.c (chill_varying_type): New predicate.
3534 * valops.c (value_cast): Support assigning a fixed string or array
3535 to a variable string/array structure.
3536
3537 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
3538 Check index>=lowerbound, and then add lowerbound to index here,
3539 instead of in caller. Generalize to arbitrary lval_types.
3540 (value_subscript): Use enhanced value_subscripted_rvalue if
3541 c_style_arrays is false (and index is in range).
3542
3543 start-sanitize-gdbtk
3544 Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
3545
3546 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
3547 found.
3548 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
3549 popping up expression window for the first time.
3550 end-sanitize-gdbtk
3551
3552 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
3553
3554 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
3555 TYPE_LENGTH is length in bytes, not bits.
3556
3557 Wed Jan 25 08:19:35 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3558
3559 * infrun.c (proceed): Flush stdout before resuming inferior.
3560 * infcmd.c (step_1), annotate.c (annotate_starting):
3561 Don't bother to flush here.
3562
3563 Wed Jan 25 01:11:21 1995 Jeff Law (law@snake.cs.utah.edu)
3564
3565 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
3566 by an ill-advised global search and replace.
3567
3568 Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
3569
3570 * gdbtk.tcl (create_registers_window): Work around a radiobutton
3571 widget bug to make Options|Natural button work.
3572
3573 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
3574 g++ caused by out-of-order pc's.
3575 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
3576 add scrollbar.
3577
3578 Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
3579
3580 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
3581 doc!
3582
3583 Mon Jan 23 13:11:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
3584
3585 Add support for Chill bitstring literals (e.h. H'FF00').
3586 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
3587 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
3588 just print B'<unimlemented>'.
3589 * gdbtypes.c (create_set_type): Fix bug in length calculation.
3590 * valops.c, value.h (value_bitstring): New function.
3591 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
3592
3593 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
3594 check that return type is non-void, and print in proper Chill syntax.
3595
3596 Mon Jan 23 12:20:34 1995 Rob Savoye <rob@darkstar.cygnus.com>
3597
3598 * Makefile.in: Remove references to remote-mon.c.
3599 * remote-mon.c: remove. Replaced by rom68k-rom.c.
3600 * rom68k-rom.c: Support for Rom68k monitor.
3601
3602 Mon Jan 23 10:50:57 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3603
3604 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
3605 gcc/ch/runtime not chillrt, since that is where the chill runtime
3606 lives now.
3607
3608 Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
3609
3610 * remote-hms.c (hms_load): Delete.
3611 (target_ops): Use hr_load_image.
3612
3613 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
3614 Define memory_insert/remove_breakpoint.
3615 * xm-go32.h: Remove redundant SIGs.
3616
3617 Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
3618
3619 * ser-go32.c: Rewritten by nigel@algor.co.uk.
3620
3621 Fri Jan 20 15:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
3622
3623 * expression.h (OP_LABELED): New operator, for Chill
3624 labeled structre tuples.
3625 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
3626 New non-terminals, to handle labeled structure tuples.
3627 (tuple): Re-define using tuple_elements.
3628 * eval.c (evaluate_labeled_field_init): New function, to handle
3629 initialization of structure fields, possibly using OP_LABELED.
3630 (evaluate_subexp): Use it.
3631 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
3632 for Chill. Handled OP_LABELED.
3633 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
3634
3635 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
3636 * valarith.c (value_bit_index): Just treat bitstring as represented
3637 by an array of bytes. Alignment is handled by compiler.
3638
3639 Wed Jan 18 19:00:29 1995 Stan Shebs <shebs@andros.cygnus.com>
3640
3641 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
3642 * sh-tdep.c (gdb_print_insn_sh): Ditto.
3643
3644 Wed Jan 18 11:25:43 1995 Kung Hsu <kung@mexican.cygnus.com>
3645
3646 * remote-os9k.c (rombug_open): Fix a bug in exception handling
3647 command.
3648 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
3649 write.
3650
3651 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
3652
3653 * parse.c (_initialize_parse): Improve wording of names of
3654 msym_*_symbol_type.
3655
3656 Tue Jan 17 14:00:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
3657
3658 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
3659 (mips_fpu): Change type to enum mips_fpu_type.
3660 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
3661 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
3662 Don't initialize.
3663 (mips_fpu_string): New static variable.
3664 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
3665 (mips_pop_frame): Likewise.
3666 (mips_extract_return_value): Likewise.
3667 (mips_store_return_value): Likewise.
3668 (mips_set_fpu_command): New static function.
3669 (mips_show_fpu_command): New static function.
3670 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
3671
3672 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
3673
3674 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
3675
3676 * parse.c (write_exp_msymbol): Use new variables
3677 msym_*_symbol_type as type of msymbol expression.
3678 (_initialize_parse): Initialize them.
3679
3680 Mon Jan 16 18:11:03 1995 Stan Shebs <shebs@andros.cygnus.com>
3681
3682 General cleanup and simplication of disassembler interface.
3683 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
3684 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
3685 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
3686 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
3687 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
3688 had been -pinsn.c files.
3689 * Makefile.in (ALLDEPFILES): Remove removed files.
3690 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
3691 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
3692 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
3693 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
3694 Remove compile actions.
3695 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
3696 vax-tdep.o: Add compile actions.
3697 * defs.h (tm_print_insn): New global.
3698 * a29k-tdep.c (gdb_print_insn_a29k): New function.
3699 (_initialize_a29k_tdep): Rename from _initialize_29k,
3700 set tm_print_insn.
3701 * alpha-tdep.c (print_insn): Remove.
3702 (_initialize_alpha_tdep): Set tm_print_insn.
3703 * arm-tdep.c (arm_print_insn): New function, was print_insn
3704 in arm-pinsn.c.
3705 * convex-tdep.c (convex_print_insn): New function, was print_insn
3706 in convex-pinsn.c.
3707 * h8300-tdep.c (print_insn): Remove.
3708 (gdb_print_insn_h8300): New function.
3709 (_initialize_h8300_tdep): New function.
3710 * h8500-tdep.c (print_insn): Remove.
3711 (_initialize_h8500_tdep): New function.
3712 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
3713 * i386-tdep.c (_initialize_i386_tdep): New function.
3714 * i960-tdep.c (mem, next_insn): New functions, were in
3715 i960-pinsn.c.
3716 (_initialize_i960_tdep): Set tm_print_insn.
3717 * m68k-tdep.c (_initialize_m68k_tdep): New function.
3718 * m88k-tdep.c (_initialize_m88k_tdep): New function.
3719 * mips-tdep.c (gdb_print_insn_mips): New function.
3720 (_initialize_mips_tdep): Set tm_print_insn.
3721 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
3722 in pyr-pinsn.c.
3723 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
3724 * sh-tdep.c (print_insn): Remove.
3725 (gdb_print_insn_sh): New function.
3726 (_initialize_sh_tdep): Set tm_print_insn.
3727 * sparc-tdep.c (_initialize_sparc_tdep): New function.
3728 * w65-tdep.c (print_insn): Remove.
3729 (_initialize_w65_tdep): New function.
3730 * z8k-tdep.c (print_insn): Remove.
3731 (gdb_print_insn_z8k): New function.
3732 (_initialize_z8k_tdep): Set tm_print_insn.
3733 * printcmd.c (print_insn): New function, generic disassembler.
3734 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
3735
3736 Mon Jan 16 15:43:29 1995 Kung Hsu <kung@mexican.cygnus.com>
3737
3738 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
3739 and config/a29k/vx29k.mt.
3740 * configure.in: add new configuration a29k-*-vxworks.
3741 * remote-vx29k.c: new file merged from WRS.
3742 * remote-vx.c: merge changes from WRS.
3743 * config/a29k/vx29k.mt: new file for new configuration.
3744 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
3745
3746 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
3747
3748 * breakpoint.h (disable_breakpoint, enable_breakpoint):
3749 New declarations.
3750 (enum bpdisp): Change name of 'delete' member to 'del'.
3751 (struct bpstat): Changed name to 'bpstats'.
3752 * breakpoint.c (disable_breakpoint, enable_breakpoint,
3753 breakpoint_chain): Made globally visible.
3754 (bpstat_stop_status): Use new name for bpstat.
3755 (break_command_1, watch_command_1, catch_command_1,
3756 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
3757 instead of 'delete'.
3758 (set_breakpoint_sal): New function.
3759 * defs.h (registers_changed_hook): New declaration.
3760 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
3761 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
3762 * main.c (main): Don't scan options when in WIN32 and exit
3763 without entering main loop.
3764 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
3765 * symtab.h (struct symbol, struct partial_symbol): Changed name of
3766 member 'class' to 'aclass'.
3767 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
3768 * top.c (registers_changed_hook): New definition.
3769 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
3770 in same way as __GO32__.
3771 * value.h (c_typedef_print): Rename 'new' argument.
3772
3773 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
3774 * configure.in: Suppprt for w65,
3775
3776
3777 Sat Jan 14 11:18:11 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
3778
3779 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
3780 not stop_pc, to proceed.
3781
3782 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
3783
3784 Fri Jan 13 17:52:57 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
3785
3786 * infcmd.c (signal_command): Accept "signal 0"; the change to not
3787 accept it was accidental. "handle 0" and "info signal 0" remain
3788 illegal, though.
3789
3790 Fri Jan 13 15:19:01 1995 Stan Shebs <shebs@andros.cygnus.com>
3791
3792 * Makefile.in (all): Don't make libgdb-files.
3793 (libgdb): New action, makes libgdb-files.
3794
3795 Thu Jan 12 21:23:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
3796
3797 * stabsread.c (read_enum_type): When pending enum symbols are
3798 put into the enum type, they must be inserted in "backwards
3799 order, in case we've overflowed a struct pending buffer.
3800
3801 start-sanitize-gdbtk
3802 Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
3803
3804 * gdbtk.c, gdbtk.tcl: Update/add copyright.
3805 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
3806 including dismiss button, and better error handling.
3807 * (create_command_win): Bind button 2 to retrieve selection.
3808 end-sanitize-gdbtk
3809
3810 Thu Jan 12 09:33:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3811
3812 * README: Add note about SPARCworks cc release 3.0 and higher.
3813
3814 Add procfs support for Alpha OSF/1-2.x.
3815 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
3816 OSF/1 native support.
3817 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
3818 (MUNCH_DEFINE): Removed.
3819 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
3820 for procfs support.
3821 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
3822 release 2.x and higher, else alpha-osf1.mh, as the procfs support
3823 in release 1.x is incomplete.
3824 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
3825 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
3826 fill_fpgregset): New routines for procfs support.
3827 * inftarg.c (_initialize_inftarg): Don't add ptrace support
3828 if we have an optional procfs and /proc is accessible.
3829 * procfs.c: Include sys/fault.h and sys/syscall.h before
3830 including sys/procfs.h.
3831 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
3832 is defined, additionally perform a PIOCSSIG to really terminate
3833 the inferior.
3834 (create_procinfo): Always return a result.
3835 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
3836 PROCFS_DONT_TRACE_IFAULT is defined.
3837 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
3838 argument to startup_inferior if it is defined.
3839 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
3840 of tracing exits from exec system calls. Needed for the user level
3841 loader under Alpha OSF/1.
3842 (do_detach): Clear any pending signal if we want to detach from
3843 a process without a signal.
3844 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
3845 don't issue a PIOCSSIG if pr_cursig already contains the signal we
3846 intend to set.
3847 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
3848 pending signals are numbered from 1 instead of 0.
3849 (info_proc_mappings): Increase size of output format for addresses
3850 if BFD_HOST_64_BIT is defined.
3851 (procfs_stop): Renamed from child_stop.
3852 (_initialize_procfs): Don't add procfs support if we have an
3853 optional procfs and /proc is not accessible.
3854
3855 start-sanitize-gdbtk
3856 Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
3857
3858 * gdbtk.tcl: Add button to control mixed source disassembly.
3859 Use text widgets in expr window. The give me more control over
3860 layout.
3861 Add auto-updating of exprs in expression window.
3862 Handle expressions out of scope a bit better.
3863 Make selected window pop up to the top when invoked via the
3864 menubar.
3865 Make copyright message have raised relief.
3866
3867 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
3868 during startup.
3869 end-sanitize-gdbtk
3870
3871 Wed Jan 11 17:53:26 1995 Rob Savoye <rob@darkstar.cygnus.com>
3872
3873 * array-rom.c: Add support for most commands.
3874
3875 * monitor.c: Add GDB remote protocol for the hybrid environment on
3876 the Array board.
3877
3878 Wed Jan 11 00:44:01 1995 Jeff Law (law@snake.cs.utah.edu)
3879
3880 * command.c (show_user_1): Use print_command_line to show a user
3881 defined command (including control structures).
3882
3883 * top.c (init_main): Change documentation for user defined
3884 commands to indicate they may accept up to ten arguments.
3885
3886 Tue Jan 10 16:22:41 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
3887
3888 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
3889 `move $s8, $sp' instruction.
3890
3891 Sun Jan 8 12:45:34 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3892
3893 * target.c, target.h (target_signal_from_command): New function.
3894 * infrun.c (handle_command, signals_info), infcmd.c
3895 (signal_command): Use it.
3896 * infrun.c, infcmd.c: Update docstrings for these commands.
3897
3898 * target.h (enum target_signal), target.c (signals), target.c
3899 (target_signal_from_host, target_signal_to_host): Add
3900 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
3901 * config/tm-lynx.h: Define signal numbers for realtime events.
3902
3903 Sat Jan 7 07:23:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3904
3905 * dbxread.c (process_one_symbol): Handle N_FUN symbols
3906 for Sun acc 3.0 under SunOS4.
3907
3908 Changes to improve handling of runtime common symbols
3909 under SunOS4.
3910 * minsyms.c (get_symbol_leading_char): New routine to determine
3911 the leading symbol character for an objfile.
3912 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
3913 Use it.
3914 * objfiles.h (rt_common_objfile): New global, points to objfile
3915 containing the runtime common minimal symbols.
3916 * objfiles.c (free_objfile): Mark rt_common_objfile as
3917 unallocated before freeing it.
3918 * solib.c (allocate_rt_common_objfile): New routine to allocate
3919 an objfile for the runtime common minimal symbols.
3920 (solib_add_common_symbols): Allocate an objfile for the runtime
3921 common symbols if necessary and put common symbols into it.
3922 Clean up code and comments.
3923 (solib_add, special_symbol_handling): Cleanup comments regarding
3924 runtime common symbols.
3925 * stabsread.c (scan_file_globals_1): New routine, contains
3926 old scan_file_globals code. Checks if there are any unresolved
3927 global symbols before starting the expensive minimal symbol table
3928 search.
3929 (scan_file_globals): Now calls scan_file_globals_1 for the passed
3930 objfile and eventually for the runtime common objfile. Complains
3931 about any unresolved global symbols and removes them from the
3932 global symbol chain to avoid dangling pointers into the symbol
3933 table if the symbol table is reread.
3934
3935 Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
3936
3937 * Makefile.in (install_only uninstall): Indent for clarity.
3938
3939 * core.c (dis_asm_read_memory): Add call to
3940 dis_asm_read_memory_hook to provide alternate way for disassembler
3941 to read memory.
3942
3943 * defs.h: Protect from multiple inclusion. Add decl for
3944 dis_asm_read_memory_hook.
3945
3946 * top.c: Make window startup be the default.
3947 * Add dis_asm_read_memory_hook.
3948
3949 start-sanitize-gdbtk
3950 * gdbtk.c (finish_saving_output): Don't do anything if not saving
3951 output.
3952 * (breakpoint_notify): Don't send null filename to tcl.
3953 * (gdb_eval): New tcl command to eval an expression.
3954 * (gdb_disassemble): New tcl command to do disassembly. This
3955 allows tcl code to choose between exec file and target memeory,
3956 and can also do mixed source and assembly.
3957 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
3958 that more of the environment is set up. Also, create link between
3959 gdb and tcl vars disassemble{-_}from{-_}exec.
3960
3961 * gdbtk.tcl: New expression window support.
3962 * Make assembly window be 80 columns wide.
3963 * Use new disassembly method. Add menu items to select
3964 disassembly from exec file or target.
3965 * Change View menubar item to Options.
3966
3967 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
3968 since they don't exist yet.
3969
3970 * Pop up a copyright window on startup.
3971 end-sanitize-gdbtk
3972
3973 Thu Jan 5 01:16:40 1995 Jeff Law (law@snake.cs.utah.edu)
3974
3975 * stabsread.c (define_symbol): Handle `a' symbol type used for
3976 reference parameter passed in a register.
3977
3978 start-sanitize-gdbtk
3979 Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
3980
3981 * gdbtk.tcl (build_framework): Add standard commands menu, more
3982 windows to standard windows menu.
3983 (not_implemented_yet): Clarify message.
3984 end-sanitize-gdbtk
3985
3986 Wed Jan 4 12:27:29 1995 Kung Hsu <kung@mexican.cygnus.com>
3987
3988 * defs.h: move include tm.h up, so that the type LONGEST can
3989 also based on the target requirement to determine. In this case
3990 target mips64.
3991
3992 * remote-os9k.c (rombug_open): catch exception e in rombug.
3993 * remote-os9k.c (rombug_wait): print message before register display
3994 from rombug.
3995
3996 Wed Jan 4 09:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3997
3998 * top.c (locate_arg): Call strchr not index.
3999
4000 Tue Jan 3 16:52:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
4001
4002 * ch-exp.y (literal): Recognize NULL.
4003 (tuple): Parse simple unlabelled tuples.
4004 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
4005 evaluate brace-initializer-expressions depending on context.
4006 (evaluate_subexp case UNOP_CAST): Pass the target type as
4007 expected type when evaluating the expression.
4008
4009 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
4010 BOOL from TYPE_NAME.
4011 * ch-valprint.c (chill_print_type_scalar): New function, to handle
4012 TYPE_CODE_RANGE better than print_type_scalar does.
4013 (chill_val_print_array_elements): Use above new function.
4014
4015 Mon Jan 2 15:02:51 1995 Stan Shebs <shebs@andros.cygnus.com>
4016
4017 * remote-udi.c (udi_load): Tell symbol_file_add that the
4018 program being loaded is the main program.
4019
4020 For older changes see ChangeLog-94
4021 \f
4022 Local Variables:
4023 mode: indented-text
4024 left-margin: 8
4025 fill-column: 74
4026 version-control: never
4027 End: