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