* top.c (execute_control_command): Free values from while_control
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
2
3 * top.c (execute_control_command): Free values from while_control
4 and if_control conditions after evaluation to avoid storage leaks.
5 From Peter Schauer.
6
7 start-sanitize-v850
8 Fri Sep 27 17:43:06 1996 Stu Grossman (grossman@critters.cygnus.com)
9
10 * configure configure.in: Recognize v850 target.
11 * v850-tdep.c: New file, NEC V850 target support.
12 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
13
14 end-sanitize-v850
15 Fri Sep 27 14:48:15 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
16
17 * infrun.c (wait_for_inferior): Update current_line and
18 current_symtab when stepping continues in the middle of a new line.
19
20 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
21
22 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
23 standards for the --version option.
24 (print_gnu_advertisement): Remove, now part of print_gdb_version.
25 (show_version): Remove call to print_gnu_advertisement.
26 * top.h (print_gnu_advertisement): Remove prototype.
27 * main.c (print_gdb_help): Move help to static function and
28 add prototype.
29 (main): Call print_gdb_help rather than inlining it.
30 (main): Remove call to print_gnu_advertisement.
31 start-sanitize-gdbtk
32 * gdbtk.tcl (create_copyright_window): Increase timeout from
33 15 seconds to 30 seconds.
34 end-sanitize-gdbtk
35
36 start-sanitize-d10v
37 Fri Sep 27 13:32:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
38
39 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
40 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
41
42 end-sanitize-d10v
43 Thu Sep 26 23:10:26 1996 Mark Alexander <marka@cygnus.com>
44
45 * configure.in, config/i386/tm-linux.h: Fix configure
46 problem on older Linux systems that prevented core files
47 from being recognized.
48
49 Wed Sep 25 18:31:33 1996 Stan Shebs <shebs@andros.cygnus.com>
50
51 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
52 * config/m68k/monitor.mt (TDEPFILES): Add it.
53 * NEWS: Mention it.
54
55 start-sanitize-d10v
56 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
57
58 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
59 Now single-steps correctly.
60 * d10v-tdep.c (d10v_pop_frame): Fixed.
61
62 end-sanitize-d10v
63 Fri Sep 20 16:10:58 1996 Stan Shebs <shebs@andros.cygnus.com>
64
65 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
66 be consistent with GCC.
67 (FPUL_REGNUM, etc): Renumber to match list changes.
68 (ADDR_BITS_REMOVE): Delete.
69 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
70 Rearrange to match REGISTER_NAMES.
71 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
72
73 start-sanitize-d10v
74 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
75
76 * d10v-tdep.c: Stack chain should work now.
77
78 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
79
80 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
81
82 end-sanitize-d10v
83 Tue Sep 17 12:20:50 1996 Ian Lance Taylor <ian@cygnus.com>
84
85 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
86 * configure: Rebuild.
87
88 Tue Sep 17 12:09:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
89
90 * ser-e7kpc.c: Added wingdb support for target e7000pc.
91
92 Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
93
94 * remote-mips.c (pmon_wait): CAIRO PMON does not require forced
95 re-entry back into debug mode.
96
97 Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
98
99 * remote-mips.c (mips_load): Ensure that the PC is explicitly
100 loaded after a load to a CAIRO PMON system.
101
102 Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
103
104 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
105 (HLDENV): Set to @HLDENV@.
106 (gdb): Prefix link command line with $(HLDENV).
107 * configure.in: Add support to test for --enable-shared and
108 generate appropriate values for HLDFLAGS and HLDENV.
109 * configure: Regenerated with autoconf.
110
111 Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
112
113 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
114 change for core_read_registers in struct core_fns.
115 * core-regset.c (fetch_core_registers): Ditto & add prototype.
116 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
117 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
118 * i386b-nat.c (fetch_core_registers): Ditto.
119 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
120 * irix4-nat.c (fetch_core_registers): Ditto.
121 * irix5-nat.c (fetch_core_registers): Ditto.
122 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
123 * m68knbsd-nat.c (fetch_core_registers): Ditto.
124 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
125 * rs6000-nat.c (fetch_core_registers): Ditto.
126 * sparc-nat.c (fetch_core_registers): Ditto.
127 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
128 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
129
130 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
131 * delta68-nat.c (register_addr): Ditto.
132 * gdbserver/low-linux.c (register_addr): Ditto.
133 * gdbserver/low-hppabsd.c (register_addr): Ditto.
134 * i386m3-nat.c (register_addr): Ditto.
135 * mips-nat.c (register_addr): Ditto.
136 * ultra3-nat.c (register_addr): Ditto.
137
138 Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
139
140 * blockframe.c (inside_main_func): Cleanup slightly. Move
141 mainsym def into the block it's used in.
142 * configure.in configure: Allow NATDEPFILES to be recognized in
143 .mh files regardless of whitespace.
144
145 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
146 keep downloads from hanging.
147
148 * remote-wiggler.c: Add support for flash upgrades.
149 * (wiggler_error): Fix message format. Add new error code.
150 * (wiggler_write_byets): Error code is hex. Report errors with
151 proper routine name.
152 * (wiggler_read_byets): Report errors with proper routine name.
153 * (get_packet): Add support for new flash commands.
154 * (wiggler_load): Call clear_symtab_users() to reset things
155 properly after download.
156 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
157 support flash upgrades for Wiggler.
158 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
159
160 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
161
162 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
163
164 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
165
166 * config/i386/cygwin32.mh:
167 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
168
169 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
170
171 * value.h (COERCE_REF): Fix previous change.
172 (COERCE_ENUM): Add a check_typedef (this is the real fix).
173
174 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
175
176 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
177 better check of array boundaries.
178
179 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
180
181 * configure: Update aclocal.m4 and re-run autoconf to get correct
182 defs for BFD stuff.
183 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
184 fix default message generation.
185
186 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
187
188 * Makefile.in: Add mswin to SUBDIRS. Add rules for
189 mswin/libwingdb.a and remote-wiggler.o.
190 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
191 * (breakpoint_inserted_here_p): New func, just like
192 breakpoint_here_p, except it's honest. Honestly.
193 * breakpoint.h: Proto for above.
194 start-sanitize-gdbtk
195 * configure configure.in: Add host *windows* to list of hosts
196 that don't support GDBtk.
197 end-sanitize-gdbtk
198 * configure configure.in: Add mswin to configdirs if host is
199 i[3456]86-*-windows.
200 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
201 Change all vars that can contain addresses to type CORE_ADDR.
202 * findvar.c (supply_register): Allow val to be NULL. This means
203 that regno is unsupported.
204 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
205 just call pid forms with inferior_pid so that there's only once
206 place to hack PC's and such.
207 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
208 * remote-wiggler.c: New file. Support for BDM interface from
209 Macraigor Systems.
210 * serial.c: Enhance serial logging capability. Add hex and octal
211 output modes (set remotelogbase {hex|octal|ascii}. Also log
212 breaks, timeouts, errors, and eofs.
213 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
214 function so that we can log breaks. Don't export serial_logfile
215 or serial_logfp.
216 * top.c (execute_command): Don't test for serial_logfp here.
217 Just call serial_log_comand, and let serial.c sort it out.
218 * valops.c (value_of_variable): Don't attempt to establish frames
219 for static and global variables. This makes things work a bit
220 better if the stack or frame pointer is trashed.
221 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
222 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
223 misaligned stacks during function calls.
224
225 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
226
227 * terminal.h: Don't use #elif.
228
229 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
230
231 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
232 if we have a type.
233
234 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
235 check number of args against bounds of array to avoid
236 memory corruption.
237
238 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
239 a TYPE_CODE_TYPEDEF.
240
241 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
242
243 * remote-mips.c: Provide support for CAIRO target board.
244 (cairo_open, cairo_ops): Added.
245 (mips_monitor_type): MON_CAIRO Added.
246 (mips_enter_debug, mips_exit_debug, mips_initialize,
247 mips_fetch_registers, common_breakpoint, mips_load,
248 _initialize_remote_mips): Updated.
249
250 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
251
252 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
253 * nlm/configure: Regenerate.
254
255 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
256 pentium pro.
257
258 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
259
260 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
261 CY_AC_LOAD_TCLCONFIG.
262 * configure: Rebuild.
263
264 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
265
266 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
267 find_pc_partial_function.
268
269 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
270
271 * configure: Regenerate again.
272
273 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
274
275 * configure.in: work around host_alias configure bug.
276 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
277 and second by AC_CANONICAL_SYSTEM). The second clobbers the
278 previous setting. Circumventing by moving the second check
279 to before the first.
280 * configure: regenerated
281
282 start-sanitize-d10v
283 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
284
285 * config/d10v/d10v.mt: New file.
286 * config/d10v/tm-d10v.h: New file.
287 * configure.in: New target D10V.
288 * d10v-tdep.c: New file.
289
290 end-sanitize-d10v
291 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
292
293 * rs6000-tdep.c: Fix typo in comment.
294 * valops.c (call_function_by_hand): Set using_gcc to 2
295 for code compiled without -g, per comment in code.
296 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
297 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
298 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
299 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
300 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
301 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
302 (STACK_ALIGN): Add comment, move to be with other associated
303 macros, and document.
304 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
305 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
306 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
307 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
308 handled by PUSH_ARGUMENTS.
309 (PUSH_ARGUMENTS): Enclose args in ()'s.
310
311 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
312
313 * infrun.c (wait_for_inferior): Try to reenable shared library
314 breakpoints even if auto_solib_load is not set.
315
316 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
317
318 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
319 gracefully degrade to using command line interface if none is
320 found.
321
322 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
323
324 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
325 PRINTF_HAS_LONG_LONG.
326 * expprint.c (dump_expression): Ditto.
327 * configure.in: Fix check for long long support in compiler to
328 use a function body, not a nested function.
329 * configure: Rebuild with autoconf.
330
331 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
332
333 * aclocal.m4: Include ../bfd/aclocal.m4.
334 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
335 BFD_NEED_DECLARATION on malloc, realloc, and free.
336 * acconfig.h: Add NEED_DECLARATION_MALLOC,
337 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
338 * configure, config.in: Rebuild.
339 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
340 rather than __STDC__. Only declare malloc, realloc, and free if
341 NEED_DECLARATION_* is defined.
342
343 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
344
345 * solib.c (_initialize_solib): Add missing '\' chars at ends of
346 strings that continue on next line.
347 (enable_break): Replace "return 0" with setting success to zero
348 and letting normal return handle the return.
349
350 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
351
352 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
353 are properly aligned.
354
355 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
356
357 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
358 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
359 to function, declare function correctly.
360
361 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
362
363 * symtab.h: changed namespace to _namespace for compiling under
364 MFC v4.0.
365
366 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
367
368 * mpw-make.sed: Update for various recent changes, add some
369 comments.
370 start-sanitize-gm
371 * mpw-config.in: Fix name of Magic Cap-specific file.
372 end-sanitize-gm
373
374 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
375
376 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
377 integer for type correctness.
378
379 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
380
381 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
382 simulator is included.
383
384 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
385
386 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
387 is not defined.
388 (read_register_pid): Only needed when TARGET_READ_PC is not
389 defined.
390 * hppa-tdep.c (frame_saved_pc): Remove prototype.
391 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
392 not defined.
393 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
394 to prototype.
395 * xcoffsolib.c (command.h): Include for needed prototypes.
396
397 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
398
399 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
400 native work.
401
402 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
403
404 From Blair MacIntyre <bm@cs.columbia.edu>:
405 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
406 than SYMBOL_TYPE on msymbols.
407 * somsolib.c (som_solib_create_inferior_hook): Ditto.
408
409 * Makefile.in (init.c): Generate with prototypes.
410
411 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
412 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
413 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
414 (pc_load_segment_name): Ditto.
415 (pop_frame): Ditto.
416 (extract_return_value): Ditto.
417 (is_magic_function_pointer): Ditto.
418 (push_dummy_frame): Ditto.
419 (fix_call_dummy): Ditto.
420 (push_arguments): Ditto.
421 (skip_trampoline_code): Ditto.
422 (aix_process_linenos): Ditto.
423
424 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
425 * config/m68k/tm-es1800.h: Ditto.
426 * config/m68k/tm-vx68.h: Ditto.
427 * config/m68k/tm-sun3.h: Ditto.
428 * config/m68k/tm-m68kv4.h: Ditto.
429
430 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
431
432 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
433 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
434 * remote-mips.c (mips_read_processor_type): Remove prototype.
435 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
436 * irix5-nat.c (fetch_core_registers): Add prototype.
437
438 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
439
440 * remote-pa.c (boot_board): Add dummy params to make type compatible
441 for passing to add_com.
442 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
443 * buildsym.c (compare_line_numbers): Change function to match
444 prototype and also what qsort expects.
445
446 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
447
448 * remote.c: Make remote_write_size public.
449 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
450 to prevent packet errors with some versions of CMON.
451
452 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
453
454 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
455 C, else it's `const'.
456 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
457 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
458 macro instead.
459 * configure configure.in defs.h: Use AC_C_CONST to figure out if
460 the compiler supports const. Gets rid of some cruft in defs.h.
461 * dwarf2read.c: <string.h> -> "gdb_string.h"
462 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
463 * sparcl-tdep.c (download): Add prototypes to write_routine and
464 start_routine args.
465
466 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
467 rid of varargs.h Include string.h.
468 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
469 update): Fix prototypes, fix calls.
470 * (update): Return value for catch_errors.
471 * (run_execute_command togdb_command_from_tty togdb_command):
472 Cleanup catching of errors from calls to execute_command. Also,
473 dup command string to avoid modifying const strings.
474 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
475 of NULL when see if b->address isn't set.
476 * (bi_disable_bpt bi_enable_bpt bi_delete_all
477 bi_delete_breakpoint): Add arg to calls to update.
478 * (gui_command): Add prototype.
479 * (mswin_query): Fix prototype.
480 * (_initialize_gdbwin): Dup string to avoid modifying const.
481 * (info_path togdb_get_info_path): Remove const from decls cuz
482 this can't be const (it points at malloc'ed memory).
483 * (togdb_searchpath): Remove const from path. Dup string to
484 avoid modifying const strings.
485 * rindex -> strrchr.
486 * (gdbwin_list_symbols): Regexp param is const.
487 * Fix lots of refs to psymtabs to deref correct pointers.
488 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
489 not &sal.
490 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
491 toget_set_info_path): Fix prototypes to match reality.
492 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
493 with proper prototypes.
494 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
495 * mswin/ser-win32s.c: Fix defs of min and max.
496 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
497 USHORT.
498 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
499 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
500
501 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
502
503 * main.c (main): Make sure command loop is used with cygwin32.
504 * terminal.h: Allow cygwin32 to use termios.h.
505
506 start-sanitize-gdbtk
507 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
508
509 * Makefile.in (LIB_INSTALL_DIR): New macro.
510 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
511
512 end-sanitize-gdbtk
513 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
514
515 * somread.c (som_symtab_read): Handle secondary definition
516 symbols (aka weak symbols).
517
518 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
519 last change.
520
521 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
522
523 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
524 _WIN32.
525
526 * somread.c: Rearrange order of includes to fix warnings under
527 hpux-10.10. Also don't include sys/file.h.
528
529 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
530
531 * dbxread.c: Don't include param.h or sys/file.h.
532 * (dbx_symfile_read): Determine symfile_relocatable from bfd
533 flags instead of file extension. Also clean up a little bit.
534
535 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
536
537 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
538 mdebugread.c os9kread.c source.c top.c utils.c: Don't
539 include param.h or sys/file.h (or unistd.h in some cases).
540 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
541 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
542 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
543 * main.c: Remove #ifndef WINGDB around option processing. Fix
544 bug with passing argc==0 and argv==NULL to getopt.
545 * (main) Remove calls to access() before source_command. Let
546 soure_command handle access errors.
547 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
548 * symtab.c (operator_chars): Make this global for wingdb.
549 * top.c (disconnect): #ifdef out for _WIN32.
550 * (source_command): If got an error and from_tty, then call print
551 error, else just return quietly.
552 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
553 Just exit.
554 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
555 under windows.
556
557 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
558
559 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
560 structures > 4 bytes in size.
561
562 * valops.c (call_function_by_hand): Handle aligning stacks that
563 grow up correctly.
564 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
565 (STACK_ALIGN): Define.
566 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
567 alignment on structs/unions.
568
569 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
570
571 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
572 which is the documented type under at least AIX 3 and AIX 4.
573
574 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
575
576 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
577 xm-alphaosf.h.
578 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
579 checks.
580
581 start-sanitize-gdbtk
582 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
583
584 * gdbtk.c (mainWindow): Deleted.
585 (cleanup_init): Don't destroy main window.
586 (gdbtk_init): Main window now created by Tk_Init.
587
588 * configure.in: Most X checks now handled automatically by Tk.
589 Use new macros to find Tcl/Tk.
590 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
591 * config.in, configure: Regenerated.
592
593 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
594 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
595
596 end-sanitize-gdbtk
597 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
598
599 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
600 this, define when contents are included.
601 (mips_read_processor_type): Add prototype.
602 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
603 * mdebugread.c (ecoff_relocate_efi): Add prototype.
604 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
605
606 start-sanitize-gdbtk
607 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
608
609 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
610
611 end-sanitize-gdbtk
612 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
613
614 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
615 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
616 (fetch_core_registers): Add prototype.
617 (vmap_symtab): Ditto.
618 (objfile_symbol_add): Ditto.
619 (add_vmap): Ditto.
620 (vmap_ldinfo): Ditto.
621 (vmap_exec): Ditto.
622
623 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
624
625 * stabsread.c (get_substring): Declare second arg as int.
626
627 * remote-es.c: Include gdb_string.h after defs.h.
628
629 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
630
631 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
632 (branch_dest): Remove unused variable "offset".
633 (pop_dummy_frame): Add prototype and make static.
634 (push_arguments): Guard against using len uninitialized.
635 (push_arguments): Guard against using arg uninitialized.
636 (frame_saved_pc): Remove unused variable "frameless".
637 (free_loadinfo): Ifdef out unused function.
638
639 * xcoffread.c (compare_lte): Change prototype and function to
640 be correct type for passing to qsort.
641 (add_stab_to_list): Ifdef out unused function and prototype.
642 (compare_lte): Add prototype
643 (arrange_linetable): Ditto.
644 (record_include_begin): Ditto.
645 (record_include_end): Ditto.
646 (process_linenos): Ditto.
647 (xcoff_next_symbol_text): Ditto.
648 (scan_xcoff_symtab): Ditto.
649 (xcoff_initial_scan): Ditto.
650
651 * mips-tdep.c (mips_read_processor_type): Add parens around
652 bitwise-and operands in comparison; previous expression always
653 evaluated to 0 because of equality comparison of two constants.
654
655 * rs6000-tdep.c (skip_prologue): Add missing parens around
656 operands of logical-or so that first operand does not bind
657 to previous logical-and.
658
659 * configure.in: Expand "long long" test to include code that triggers
660 known problem on HPUX with native compiler.
661 (configure): Regenerated.
662
663 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
664
665 * somsolib.c (som_solib_create_inferior_hook): Don't
666 warn if __d_pid can't be found.
667
668 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
669
670 * config/mips/tm-mips.h (struct frame_info): Forward decl.
671 (struct type): Ditto.
672 (struct value): Ditto.
673
674 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
675 from mips-tdep.c to here.
676 (sigtramp_end): Ditto.
677 (fixup_sigtramp): Ditto.
678
679 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
680 (mips_frame_chain): Ditto.
681 (mips_step_skips_delay): Ditto.
682 (mips_frame_saved_pc): Ditto.
683 (mips_find_saved_regs): Ditto.
684 (mips_frame_num_args): Ditto.
685 (mips_pop_frame): Ditto.
686 (mips_extract_return_value): Ditto.
687 (mips_store_return_value): Ditto.
688 (mips_push_dummy_frame): Ditto.
689 (mips_push_arguments): Ditto.
690 (mips_do_registers_info): Ditto.
691 (ecoff_relocate_efi): Ditto.
692 (ecoff_relocate_efi): Ditto.
693 * irix4-nat.c (fetch_core_registers): Add prototype.
694 * mips-tdep.c (read_next_frame_reg): Add prototype
695 (heuristic_proc_start): Ditto.
696 (heuristic_proc_desc): Ditto.
697 (mips_print_register): Ditto.
698 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
699 (procfs_stopped_by_watchpoint): Ditto.
700 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
701 (procfs_stopped_by_watchpoint): Ditto.
702 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
703 (struct symbol): Add forward decl for prototype.
704
705 * breakpoint.c (internal_breakpoint_number): Only needed if
706 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
707
708 * objfiles.c (ecoff_relocate_efi): Remove prototype.
709
710 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
711
712 * configure.in: Add test for "long long" support.
713 * configure: Regenerate with autoconf.
714 * acconfig.h: Add CC_HAS_LONG_LONG
715 * config.in: Regenerate with autoheader.
716 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
717 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
718 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
719 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
720 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
721 (PRINTF_HAS_LONG_LONG): Remove.
722 (FORCE_LONG_LONG): Remove.
723 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
724 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
725 (PRINTF_HAS_LONG_LONG): Remove.
726 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
727 (PRINTF_HAS_LONG_LONG): Remove.
728 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
729 subtraction inside shift. Put parens around subtraction
730 in operand of bitwise and.
731 (struct frame_info): Forward declare
732 if __STDC__ defined.
733 (frame_saved_regs): Ditto.
734 (struct value): Ditto.
735 (struct type): Ditto.
736 (struct inferior_status): Ditto.
737 (init_extra_frame_info): Add prototype.
738 (skip_prologue): Ditto.
739 (frameless_function_invocation): Ditto.
740 (frame_chain): Ditto.
741 (frame_chain_valid): Ditto.
742 (saved_pc_after_call): Ditto.
743 (hppa_fix_call_dummy): Ditto.
744 (hppa_push_arguments): Ditto.
745 (pa_do_registers_info): Ditto.
746 (in_solib_call_trampoline): Ditto.
747 (in_solib_return_trampoline): Ditto.
748 (push_dummy_frame): Ditto.
749 * convex-tdep.c (decout): Use print_longest rather than
750 fprintf_filtered.
751 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
752 CC_HAS_LONG_LONG.
753 (INT_MIN): Fix so it works correctly when assigned to a long long.
754 * valprint.c (longest_to_int): Rewrite to remove dependence
755 on INT_MIN and INT_MAX.
756 (print_longest): Rewrite the code that falls back to synthesized
757 hex output when LONGEST value is not representable as in a long and
758 printf doesn't support printing long longs.
759 * ch-valprint.c (chill_val_print): Cast 2nd arg of
760 chill_print_type_scalar to LONGEST.
761 chill_print_type_scalar): Make static and add prototype.
762 * hppa-tdep.c (get_field): Ifdef out unused function.
763 (set_field): Ditto.
764 (extract_3): Ditto.
765 (extract_5_store): Ditto.
766 (extract_11): Ditto.
767 (extract_12): Ditto.
768 (deposit_17): Ditto.
769 (extract_14): Convert to static and add prototype.
770 (deposit_14): Ditto.
771 (extract_21): Ditto.
772 (deposit_21): Ditto.
773 (extract_17): Ditto.
774 (extract_5r_store): Ditto.
775 (extract_5R_store): Ditto.
776 (extract_5_load): Ditto.
777 (find_proc_framesize): Ditto.
778 (find_dummy_frame_regs): Ditto.
779 (sign_extend): Ditto.
780 (find_unwind_entry): Add prototype.
781 (find_return_regnum): Ditto.
782 (unwind_command): Ditto.
783 (find_dummy_frame_regs): Add parens around subtraction in operand
784 of bitwise-and.
785 (skip_prologue): Add parens around operands of logical-and inside
786 operand of logical-or.
787 (sign_extend): Add parens around operands of subtraction inside
788 operand of shift.
789 (low_sign_extend): Ditto.
790 * top.c (filename_completer): Convert old style decl of
791 filename_completion_function into prototype.
792 * f-lang.c (patch_common_entries): Ifdef out unused function.
793 * stabsread.c (read_cfront_baseclasses): Remove unused local
794 variable "msg_noterm".
795 (resolve_cfront_continuation): Remove unused local variable "fip".
796 (read_type): Remove unused variable xtypenums.
797 (read_cfront_static_fields): Remove unused variable "i".
798 (read_cfront_static_fields): Remove unused variable "nfields".
799 (read_cfront_member_functions): Add missing comment terminator.
800 (read_cfront_static_fields): Return 1 rather than random value.
801 (read_cfront_baseclasses): Ditto.
802 (read_cfront_baseclasses): Ditto.
803 (read_cfront_baseclasses): Ditto.
804 * somsolib.c (som_solib_create_inferior_hook): Remove unused
805 variable "u".
806 (som_solib_create_inferior_hook): Remove unused variable
807 shadow_contents.
808 (language.h): Add for needed prototypes.
809 (som_solib_sharedlibrary_command): Add prototype.
810 * hpread.c: (hpread_read_array_type): Add prototype.
811 * somread.c (hpread_build_pysmtabs): Add prototype.
812 (hpread_symfile_finish): Ditto.
813 (hpread_symfile_init): Ditto.
814 * hppah-nat.c (fetch_register): Convert old style decl
815 to prototype.
816 (gdbcore.h): Include for needed prototypes.
817 (fetch_register): Remove unused variable "mess".
818 * remote-pa.c (get_offsets): Ifdef out unused function.
819 (remote_start_remote): Remove unused variable "timeout".
820 (boot_board): Add prototype.
821 (reaad_frame): Add prototype.
822 (getpkt): Remove unused variable "bp".
823 (remote_kill): Add prototype.
824 (remote_mourn): Add prototype.
825 (remote_insert_breakpoint): Add prototype.
826 (remote_remove_breakpoint): Add prototype.
827 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
828 * infcmd.c (do_registers_info): Only need prototype if
829 DO_REGISTERS_INFO is not defined.
830 (breakpoint_auto_delete_contents): Only need if
831 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
832
833 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
834
835 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
836 (END_PSYMTAB): Ditto.
837 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
838
839 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
840
841 * printcmd.c (_initialize_printcmd): Initialize
842 tm_print_insn_info.flavour.
843 start-sanitize-gdbtk
844 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
845 end-sanitize-gdbtk
846
847 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
848
849 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
850 (arm-tdep.o): Ditto.
851 (dcache.o): Ditto.
852 (i386ly-tdep.o): Ditto.
853 (i960-tdep.o): Ditto.
854 (m68k-tdep.o): Ditto.
855 (nindy-tdep.o): Ditto.
856 (scm-lang.o): Ditto.
857 (w65-tdep.o): Ditto.
858 (z8k-tdep.o): Ditto.
859 (m68k-tdep.o): Depends upon value_h and gdb_string.h
860 (m2-valprint.o): Depends upon m2-lang.h.
861 (sparc-tdep.o): Depends upon gdb_string.h
862 (valprint.o): Depends upon valprint.h
863
864 * remote-e7000.c (notice_quit): Remove prototype.
865 * top.c (initialize_targets): Remove prototype, now in target.h.
866 * stabsread.c (resolve_cfront_continuation): Remove prototype.
867 * dbxread.c (resolve_cfront_continuation): Remove prototype.
868 * symfile.h (set_demangling_style): Remove prototype.
869 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
870 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
871 target.h.
872 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
873 now in target.h.
874 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
875 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
876 * scm-lang.c (find_function_in_inferior): Remove prototype.
877 (value_allocate_space_in_inferior): Ditto.
878 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
879 * defs.h (strchr): Remove declarations, they are declared in
880 gdb_string.h also.
881 (strrchr): Ditto.
882 (strstr): Ditto.
883 (strtok): Ditto.
884 (strerror): Ditto.
885 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
886 passed to f77_print_array_1.
887 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
888 * scm-exp.c (scm_istr2int): Remove unused variable "j".
889 (scm_parse): Remove unused variable "str".
890 * hp300ux-nat.c (store_inferior_register): Remove unused variable
891 "buf".
892 (store_inferior_registers): Remove unnecessary decl "registers".
893 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
894 * scm-lang.c (scm_get_field): Remove unused variable "val".
895 (scm_lookup_name): Remove unused variable "symval".
896 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
897 * procfs.c (do_attach, do_detach): Remove unused variable "result".
898 (last_resume_pid): Remove unused static variable.
899 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
900 "res".
901 * objfiles.c (map_to_address): Remove unused function.
902 * f-valprint.c (print_max): Remove extraneous extern decl,
903 in valprint.h.
904 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
905 * ch-exp.c (write_lower_upper_value): Remove prototype for
906 type_lower_upper.
907
908 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
909 * ch-exp.c (parse_mode_call): Ditto.
910 * f-valprint.c (there_is_a_visible_common_named): Ditto.
911 * f-lang.c (clear_function_list): Ditto.
912 (get_bf_for_fcn): Ditto.
913 (clear_bf_list): Ditto.
914 (add_common_block): Ditto.
915 (patch_all_commons_by_name): Ditto.
916 (find_first_common_named): Ditto.
917 (add_common_entry): Ditto.
918 (allocate_saved_function_node): Ditto.
919 (allocate_saved_bf_node): Ditto.
920 (allocate_common_entry_node): Ditto.
921 (allocate_saved_f77_common_node): Ditto.
922
923 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
924 * dcache.c (gdbcore.h): Ditto.
925 * i386ly-tdep.c (gdbcore.h): Ditto.
926 * i960-tdep.c (gdbcore.h): Ditto.
927 * m2-valprint.c (m2-lang.h): Ditto.
928 * m68k-tdep.c (gdbcore.h): Ditto.
929 (value.h): Ditto.
930 (gdb_string.h): Ditto.
931 * nindy-tdep.c (gdbcore.h): Ditto.
932 * scm-lang.c (gdbcore.h): Ditto.
933 * scm-valprint.c (gdbcore.h): Ditto.
934 * w65-tdep.c (gdbcore.h): Ditto.
935 * z8k-tdep.c (gdbcore.h): Ditto.
936 * sparc-tdep.c (gdb_string.h): Include.
937 * valprint.c (valprint.h): Include.
938
939 * config/xm-lynx.h: Remove part of comment about INT_MIN
940 redefined warnings from defs.h, since INT_MIN define in
941 defs.h is now protected by #ifndef INT_MIN.
942 * config/i386/xm-i386bsd.h: Ditto.
943 * config/m68k/xm-hp300bsd.h: Ditto.
944 * config/m68k/xm-news.h: Ditto.
945
946 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
947 definition as 0x80000000. The macro in defs.h is better.
948 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
949 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
950 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
951 * config/pa/xm-hppab.h: Ditto.
952
953 * core-aout.c (fetch_core_registers): Add prototype.
954 * hp300ux-nat.c (fetch_inferior_register): Ditto.
955 (store_inferior_register_1): Ditto.
956 (store_inferior_register): Ditto.
957 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
958 *scm-valprint.c (c_val_print): Ditto.
959 * procfs.c (add_fd): Ditto.
960 (remove_fd): Ditto.
961 (wait_fd): Ditto.
962 (sigcodename): Ditto.
963 (sigcodedesc): Ditto.
964 (procfs_kill_inferior): Ditto.
965 (procfs_xfer_memory): Ditto.
966 (procfs_store_registers): Ditto.
967 (create_procinfo): Ditto.
968 (procfs_init_inferior): Ditto.
969 (proc_set_exec_trap): Ditto.
970 (procfs_attach): Ditto.
971 (procfs_detach): Ditto.
972 (procfs_prepare_to_store): Ditto.
973 (procfs_files_info): Ditto.
974 (procfs_open): Ditto.
975 (procfs_wait): Ditto.
976 (procfs_fetch_registers): Ditto.
977 (procfs_mourn_inferior): Ditto.
978 (procfs_can_run): Ditto.
979 (procfs_thread_alive): Ditto.
980 (procfs_stop): Ditto.
981 * alpha-nat.c (fetch_core_registers): Ditto.
982 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
983 * objfiles.c (ecoff_relocate_efi): Ditto.
984 * inflow.c (pass_signal): Ditto.
985 (handle_sigio): Ditto.
986 * annotate.c (breakpoint_changed): Ditto.
987 * callback.c (wrap): Ditto.
988 (fdbad): Ditto.
989 (fdmap): Ditto.
990 * utils.c (malloc_botch): Ditto.
991 (fputs_maybe_filtered): Ditto.
992 (vfprintf_maybe_filtered): Ditto.
993 * defs.h (notice_quit): Ditto.
994 * defs.h (xmalloc, xrealloc): Ditto.
995 * top.c (stop_sig): Ditto.
996 (init_signals): Ditto.
997 (user_defined_command): Ditto.
998 (source_cleanup_lines): Ditto.
999 (dont_repeat_command): Ditto.
1000 (serial_log_command): Ditto.
1001 (disconnect): Ditto.
1002 * target.h (initialize_targets): Ditto.
1003 * os9kread.c (read_minimal_symbols): Ditto.
1004 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1005 (fdr_name): Ditto.
1006 (push_parse_stack): Ditto.
1007 (pop_parse_stack): Ditto.
1008 (is_pending_symbol): Ditto.
1009 (add_pending): Ditto.
1010 * serial.c (serial_logchar): Ditto.
1011 (serial_interface_lookup): Ditto.
1012 * serial.h (serial_log_command): Ditto.
1013 * f-valprint.c (info_common_command): Ditto.
1014 * gdbtypes.h (print_type_scalar): Ditto.
1015 * scm-valprint.c (scm_scmlist_print): Ditto.
1016 (scm_ipruk): Ditto.
1017 * scm-lang.c (scm_printstr): Ditto.
1018 (in_eval_c): Ditto.
1019 (evaluate_subexp_scm): Ditto.
1020 * scm-exp.c (scm_read_token): Ditto.
1021 (scm_skip_ws): Ditto.
1022 (scm_lreadparen): Ditto.
1023 * m2-lang.c (emit_char): Ditto.
1024 (m2_printchar): Ditto.
1025 (m2_printstr): Ditto.
1026 (m2_create_fundamental_type): Ditto.
1027 * f-lang.c (emit_char): Ditto.
1028 (f_printchar): Ditto.
1029 (f_printstr): Ditto.
1030 (f_create_fundamental_type): Ditto.
1031 * ch-lang.c (chill_printchar): Ditto.
1032 (chill_printstr): Ditto.
1033 (chill_create_fundamental_type): Ditto.
1034 (value_chill_length): Ditto.
1035 (value_chill_card): Ditto.
1036 (value_chill_max_min): Ditto.
1037 (evaluate_subexp_chill): Ditto.
1038 * ch-exp.c (PEEK_TOKEN): Ditto.
1039 (peek_token_): Ditto.
1040 (forward_token_): Ditto.
1041 (parse_case_label): Ditto.
1042 (parse_opt_untyped_expr): Ditto.
1043 (parse_unary_call): Ditto.
1044 (parse_call): Ditto.
1045 (parse_named_record_element): Ditto.
1046 (parse_tuple_element): Ditto.
1047 (parse_opt_element_list): Ditto.
1048 (parse_tuple): Ditto.
1049 (parse_primval): Ditto.
1050 (parse_operand6): Ditto.
1051 (parse_operand5): Ditto.
1052 (parse_operand4): Ditto.
1053 (parse_operand3): Ditto.
1054 (parse_operand2): Ditto.
1055 (parse_operand1): Ditto.
1056 (parse_operand0): Ditto.
1057 (parse_expr): Ditto.
1058 (parse_then_alternative): Ditto.
1059 (parse_else_alternative): Ditto.
1060 (parse_if_expression): Ditto.
1061 (parse_untyped_expr): Ditto.
1062 (growbuf_by_size): Ditto.
1063 (match_simple_name_string): Ditto.
1064 (decode_integer_value): Ditto.
1065 (decode_integer_literal): Ditto.
1066 (match_float_literal): Ditto.
1067 (match_float_literal): Ditto.
1068 (match_string_literal): Ditto.
1069 (match_character_literal): Ditto.
1070 (match_integer_literal): Ditto.
1071 (match_bitstring_literal): Ditto.
1072 (write_lower_upper_value): Ditto.
1073 * ch-lang.h (type_lower_upper): Ditto.
1074 * c-lang.c (emit_char): Ditto.
1075 * dwarfread.c (free_utypes): Ditto.
1076 * stabsread.h (resolve_cfront_continuation): Ditto.
1077 * stabsread.c (get_substring): Ditto.
1078 (read_one_struct_field): Ditto.
1079 * stabsread.h (process_later): Ditto.
1080 * demangle.c (set_demangling_command): Ditto.
1081 * defs.h (set_demangling_style): Ditto.
1082 * maint.c (maintenance_info_command): Ditto.
1083 (print_section_table): Ditto.
1084 (maintenance_info_sections): Ditto.
1085 (maintenance_print_command): Ditto.
1086 * symtab.h (maintenance_print_statistics): Ditto.
1087 * objfiles.h (in_plt_section): Ditto.
1088 * objfiles.c (add_to_objfile_sections): Ditto.
1089 * bcache.c (hash): Ditto.
1090 (lookup_cache): Ditto.
1091 * exec.c (bfdsec_to_vmap): Ditto.
1092 (ignore): Ditto.
1093 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
1094 * language.c (unk_lang_printchar): Ditto.
1095 (unk_lang_printstr): Ditto.
1096 (unk_lang_create_fundamental_type): Ditto.
1097 (unk_lang_print_type): Ditto.
1098 (unk_lang_val_print): Ditto.
1099 (unk_lang_value_print): Ditto.
1100 * target.c (update_current_target): Ditto.
1101 (debug_to_open): Ditto.
1102 (debug_to_close): Ditto.
1103 (debug_to_attach): Ditto.
1104 (debug_to_detach): Ditto.
1105 (debug_to_resume): Ditto.
1106 (debug_to_wait): Ditto.
1107 (debug_to_fetch_registers): Ditto.
1108 (debug_to_store_registers): Ditto.
1109 (debug_to_prepare_to_store): Ditto.
1110 (debug_to_xfer_memory): Ditto.
1111 (debug_to_files_info): Ditto.
1112 (debug_to_insert_breakpoint): Ditto.
1113 (debug_to_remove_breakpoint): Ditto.
1114 (debug_to_terminal_init): Ditto.
1115 (debug_to_terminal_inferior): Ditto.
1116 (debug_to_terminal_ours_for_output): Ditto.
1117 (debug_to_terminal_ours): Ditto.
1118 (debug_to_terminal_info): Ditto.
1119 (debug_to_kill): Ditto.
1120 (debug_to_load): Ditto.
1121 (debug_to_lookup_symbol): Ditto.
1122 (debug_to_create_inferior): Ditto.
1123 (debug_to_mourn_inferior): Ditto.
1124 (debug_to_can_run): Ditto.
1125 (debug_to_notice_signals): Ditto.
1126 (debug_to_thread_alive): Ditto.
1127 (debug_to_stop): Ditto.
1128 start-sanitize-gdbtk
1129 * gdbtk.c (null_routine): Ditto.
1130 (gdbtk_flush): Ditto.
1131 (gdbtk_fputs): Ditto.
1132 (gdbtk_query): Ditto.
1133 (gdbtk_readline): Ditto.
1134 (gdbtk_readline_end): Ditto.
1135 (gdb_get_breakpoint_list): Ditto.
1136 (gdb_get_breakpoint_info): Ditto.
1137 (breakpoint_notify): Ditto.
1138 (gdbtk_create_breakpoint): Ditto.
1139 (gdbtk_delete_breakpoint): Ditto.
1140 (gdbtk_modify_breakpoint): Ditto.
1141 (gdb_loc): Ditto.
1142 (gdb_eval): Ditto.
1143 (gdb_sourcelines): Ditto.
1144 (map_arg_registers): Ditto.
1145 (get_register_name): Ditto.
1146 (gdb_regnames): Ditto.
1147 (get_register): Ditto.
1148 (gdb_fetch_registers): Ditto.
1149 (register_changed_p): Ditto.
1150 (gdb_changed_register_list): Ditto.
1151 (gdb_cmd): Ditto.
1152 (call_wrapper): Ditto.
1153 (gdb_listfiles): Ditto.
1154 (gdb_stop): Ditto.
1155 (gdbtk_dis_asm_read_memory): Ditto.
1156 (compare_lines): Ditto.
1157 (gdb_disassemble): Ditto.
1158 (tk_command): Ditto.
1159 (cleanup_init): Ditto.
1160 (gdbtk_interactive): Ditto.
1161 (x_event): Ditto.
1162 (gdbtk_wait): Ditto.
1163 (gdbtk_call_command): Ditto.
1164 (tk_command_loop): Ditto.
1165 (gdbtk_init): Ditto.
1166 end-sanitize-gdbtk
1167 * breakpoint.h (set_breakpoint_sal): Ditto.
1168 * remote-utils.c (usage): Ditto.
1169 * remote.c (set_thread): Ditto.
1170 (remote_thread_alive): Ditto.
1171 (get_offsets): Ditto.
1172 (read_frame): Ditto.
1173 (remote_insert_breakpoint): Ditto.
1174 (remote_remove_breakpoint): Ditto.
1175 * sparc-nat.c (fetch_core_registers): Ditto.
1176 * corelow.c (add_to_thread_list): Ditto.
1177 (ignore): Ditto.
1178 * inftarg.c (proc_wait): Ditto.
1179 * infptrace.c (udot_info): Ditto.
1180 (fetch_register): Ditto.
1181 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
1182 (hardwire_print_tty_state): Ditto.
1183 (hardwire_flush_output): Ditto.
1184 (hardwire_flush_input): Ditto.
1185 (hardwire_send_break): Ditto.
1186 (hardwire_setstopbits): Ditto.
1187 * ser-tcp.c (tcp_return_0): Ditto.
1188 (tcp_noflush_set_tty_state): Ditto.
1189 (tcp_print_tty_state): Ditto.
1190 * solib.c (match_main): Ditto.
1191 * gdbtypes.c (print_bit_vector): Ditto.
1192 (print_arg_types): Ditto.
1193 (dump_fn_fieldlists): Ditto.
1194 (print_cplus_stuff): Ditto.
1195 * symfile.h (entry_point_address): Ditto.
1196 * symfile.c (decrement_reading_symtab): Ditto.
1197 * valops.c (value_arg_coerce): Ditto.
1198 * value.h (find_function_in_inferior): Ditto.
1199 (value_allocate_space_in_inferior): Ditto.
1200 * values.c (vb_match): Ditto.
1201 * thread.c (info_thread_command): Ditto.
1202 (restore_current_thread): Ditto.
1203 (thread_apply_all_command): Ditto.
1204 (thread_apply_command): Ditto.
1205 * inferior.h (write_pc_pid): Ditto.
1206 * infrun.c (delete_breakpoint_current_contents): Ditto.
1207 * breakpoint.c (print_it_normal): Ditto.
1208 (watchpoint_check): Ditto.
1209 (print_it_done): Ditto.
1210 (print_it_noop): Ditto.
1211 (maintenance_info_breakpoints): Ditto.
1212 (create_longjmp_breakpoint): Ditto.
1213 (hbreak_command): Ditto.
1214 (thbreak_command): Ditto.
1215 (watch_commnd_1): Ditto.
1216 (rwatch_command): Ditto.
1217 (awatch_command): Ditto.
1218 (do_enable_breakpoint): Ditto.
1219 * ch-valprint.c (chill_val_print_array_elements): Ditto.
1220 * eval.c (evaluate_subexp): Ditto.
1221 (get_label): Ditto.
1222 (evaluate_struct_tuple): Ditto.
1223 * eval.c (init_array_element): Ditto.
1224
1225 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
1226 * breakpoint.c (hw_breakpoint_used_count): Ditto.
1227 (hw_watchpoint_used_count): Ditto.
1228 * findvar.c (write_register_gen): Ditto.
1229 (read_register_pid): Ditto.
1230 * symtab.c (cplusplus_hint): Ditto.
1231 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
1232 * ch-valprint.c (chill_print_type_scalar): Ditto.
1233 * gdbtypes.c (add_name): Ditto.
1234 (add_mangled_type): Ditto.
1235 (cfront_mangle_name): Ditto.
1236 * sparc-tdep.c (isbranch): Ditto.
1237 * inftarg.c (child_stop): Ditto.
1238 * win32-nat.c (child_stop): Ditto.
1239 * mac-nat.c (child_stop): Ditto.
1240 * remote-utils.c (sr_com): Ditto.
1241 * dbxread.c (process_now): Ditto.
1242 * ch-exp.c (require): Ditto.
1243 (check_token): Ditto.
1244 (expect): Ditto.
1245 (parse_mode_call): Ditto.
1246 (parse_mode_or_normal_call): Ditto.
1247 * scm-lang.c (scm_lookup_name): Ditto
1248 * f-lang.c (allocate_saved_bf_node): Ditto.
1249 (allocate_saved_function_node): Ditto.
1250 (allocate_saved_f77_common_node): Ditto.
1251 (allocate_common_entry_node): Ditto.
1252 (add_common_block): Ditto.
1253 (add_common_entry): Ditto.
1254 (find_first_common_named): Ditto.
1255 (patch_common_entries): Ditto.
1256 (patch_all_commons_by_name): Ditto.
1257 (clear_bf_list): Ditto.
1258 (get_bf_for_fcn): Ditto.
1259 (clear_function_list): Ditto.
1260 * scm-exp.c (scm_istr2int): Ditto.
1261 (scm_istring2number): Ditto.
1262 * scm-valprint.c (scm_inferior_print): Ditto.
1263 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
1264 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
1265 (f77_create_arrayprint_offset_tbl): Ditto.
1266 (f77_print_array_1): Ditto.
1267 (f77_print_array): Ditto.
1268 (list_all_visible_commons): Ditto.
1269 (there_is_a_visible_common_named): Ditto.
1270 * mdebugread.c (ecoff_relocate_efi): Ditto.
1271 * callback.c (os_close): Ditto.
1272 (os_get_errno): Ditto.
1273 (os_isatty): Ditto.
1274 (os_lseek): Ditto.
1275 (os_open): Ditto.
1276 (os_read): Ditto.
1277 (os_read_stdin): Ditto.
1278 (os_write): Ditto.
1279 (os_write_stdout): Ditto.
1280 (os_rename): Ditto.
1281 (os_system): Ditto.
1282 (os_time): Ditto.
1283 (os_unlink): Ditto.
1284 (os_shutdown): Ditto.
1285 (os_init): Ditto.
1286 (os_printf_filtered): Ditto.
1287
1288 * scm-lang.h (scm_parse): Change old style decl to prototype.
1289 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
1290 * top.c (init_proc): Ditto.
1291 (query_hook): Ditto.
1292 (error_hook): Ditto.
1293 * f-lang.c (c_value_print): Ditto.
1294 * ch-exp.c (parse_expression): Ditto.
1295 (parse_primval): Ditto.
1296 (parse_untyped_expr): Ditto.
1297 (parse_opt_untyped_expr): Ditto.
1298 (ch_lex): Ditto.
1299 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
1300 (sparc_frame_saved_pc): Ditto.
1301 (sparc_push_dummy_frame): Ditto.
1302 (sparc_pop_frame): Ditto.
1303 * defs.h (fclose): Ditto.
1304 (atof): Ditto.
1305 (error_hook): Ditto.
1306
1307 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
1308 * rs6000-tdep.c (single_step): Ditto.
1309 * sparc-tdep.c (single_step): Ditto.
1310
1311 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
1312 to PTR which is what make_cleanup expects.
1313 * utils.c (null_cleanup): Change arg type to PTR.
1314 * defs.h (null_cleanup): Change prototype to match actual function.
1315 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
1316 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1317 chill_print_type_scalar to LONGEST.
1318 * infrun.c (wait_for_inferior): Have empty switch case for
1319 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
1320 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
1321 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
1322 is defined.
1323 * symfile.c (generic_load): Scan long int using a long int spec,
1324 not an int spec.
1325 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
1326 is defined.
1327 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
1328 not defined.
1329 * inflow.c (handle_sigio): Only need prototype when the actual
1330 function is compiled in.
1331 * valprint.c (longest_to_int): Expand error message to be
1332 separate messages for args larger than largest signed int
1333 and args smaller than smallest signed int.
1334 * valprint.c (print_longest): Fix problems with support for case
1335 where compiler supports type "long long" but the runtime doesn't
1336 support printing them with "%ll".
1337 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
1338 return types to void since we don't actually return anything
1339 meaningful and callees ignore the values anyway.
1340 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
1341 ifdef.
1342 (modify_run_on_last_close_flag): Ditto.
1343 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
1344 ifdef
1345 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
1346 random value.
1347 * infrun.c (wait_for_inferior): Ensure random_signal is not used
1348 uninitialized.
1349 * valops.c (call_function_by_hand): Ensure struct_addr is not used
1350 uninitialized.
1351 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
1352 uninitialized.
1353 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
1354 to "const char *".
1355 start-sanitize-gdbtk
1356 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
1357 to proper pointer type, from int.
1358 (gdbtk_query): Change first arg to "const char *" from "char *".
1359 end-sanitize-gdbtk
1360 * infptrace.c (udot_info): Add two dummy args so that the type is
1361 correct for passing to add_info.
1362 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
1363 in prototypes.
1364 (saved_bf_symnum): Ditto.
1365 (SAVED_FUNCTION): Ditto.
1366 (SAVED_FUNCTION_PTR): Ditto.
1367 (SAVED_BF): Ditto.
1368 (SAVED_BF_PTR): Ditto.
1369 * ch-exp.c (parse_named_record_element): Build error message in
1370 temporary buffer before passing it to expect, rather than passing
1371 wrong number of args to expect.
1372 * demangle.c (set_demangling_style): Call set_demangling_command with
1373 correct number of arguments.
1374 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
1375 int to match actual function.
1376 (os_isatty): Call fdmap with right number of arguments, was missing
1377 the host_callback* arg.
1378 * target.c (cleanup_target): Prototype all functions casts.
1379 * target.h (one_stepped, single_step): Declare here and convert
1380 single_step to prototype.
1381 * infrun.c (one_stepped, single_step): Don't declare externs
1382 here, they have moved to target.h.
1383 * eval.c (init_array_element): Declare previously undeclared
1384 last two args as LONGEST.
1385 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
1386 start-sanitize-gdbtk
1387 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
1388 end-sanitize-gdbtk
1389
1390 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
1391
1392 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
1393
1394 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
1395
1396 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
1397 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
1398 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
1399 text address. Use a seperate flag (textlow_not_set) instead.
1400 This makes stabs in ELF .o files work a lot better.
1401 * mdebugread.c xcoffread.c: Define textlow_not_set for
1402 partial-stab.h.
1403 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
1404
1405 start-sanitize-gdbtk
1406 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
1407
1408 * gdbtk.tcl (files_command): Reorder the binding tags for
1409 the listbox widget to avoid referencing the listbox after
1410 the containing widget has been destroyed by the action of
1411 a previous binding.
1412 end-sanitize-gdbtk
1413
1414 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
1415
1416 * dwarf2read.c (struct filenames): Change internal "struct file"
1417 to "struct fileinfo" to avoid conflict with "struct file" in
1418 <sys/file.h> on HPUX and Solaris.
1419
1420 start-sanitize-gdbtk
1421 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
1422
1423 * gdbtk.tcl (delete_expr): Unset corresponding element of
1424 expr_update_list when destroying an expression.
1425 (create_expr_window): Initialize expr_num, delete_expr_num,
1426 and expr_update_list here when each new expression window
1427 is created, rather than once at startup.
1428 end-sanitize-gdbtk
1429
1430 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1431
1432 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
1433 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
1434 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
1435 (SFILES): Add dwarf2read.c.
1436 (dwarf2read.o): Add build rule.
1437 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
1438 exported functions.
1439 * elfread.c (elf_symfile_read): Call them.
1440 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1441
1442 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
1443
1444 * symfile.c (symfile_bfd_open):
1445 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
1446 free the user from having to type the .exe extension.
1447
1448 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
1449
1450 * mon960-rom.c: Shorten the mon960_inits string to a single
1451 carriage return; this prevents a hang on connecting immediately
1452 after powerup, when MON960 is attempting autobaud detection.
1453
1454 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
1455
1456 * a29k-tdep.c (get_saved_register): Allow PC to be modified
1457 when innermost frame is selected, but not in outer frames.
1458
1459 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1460
1461 * command.c (do_setshow_command): Don't segfault when showing
1462 var_string and var_string_noescape vars that are NULL.
1463
1464 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
1465
1466 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
1467 cygwin32_conv_to_posix_path.
1468 (child_create_inferior): unix_path_to_dos_path renamed to
1469 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
1470
1471 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
1472
1473 * defs.h printcmd.c: Create global disassemble_info structure
1474 tm_print_insn_info.
1475 start-sanitize-gdbtk
1476 * gdbtk.c (gdb_disassemble): Setup di.mach from
1477 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
1478 end-sanitize-gdbtk
1479 * i386-tdep.c (set_assembly_language_command): set
1480 tm_print_insn_info.mach to the appropriate value for 386 or 8086
1481 disassembly.
1482 * printcmd.c (print_insn): Move init of disassembler_info to
1483 _initialize_printcmd. Set endian for disassembler here.
1484 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
1485 select sparc/sparclite.
1486 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
1487 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
1488 bfd_mach_sparc/bfd_mach_sparc_sparclite.
1489
1490 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
1491
1492 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
1493 than xmalloc/xrealloc.
1494
1495 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
1496
1497 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
1498 a NULL pointer, not a -1.
1499
1500 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
1501
1502 * i386-tdep.c (set_assembly_language_command): New routine to
1503 select between i386 and i8086 instruction sets for disassembly.
1504 New command `set assembly-language {i386 i8086}'.
1505
1506 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
1507
1508 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1509 Disable use of "long long" memory read/write commands; can't
1510 use them because we hold the values to read/write in an int
1511 variable, and because strtoul fails on values that exceed the
1512 size of a long. This fixes breakpoint problems on MON960.
1513
1514 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
1515
1516 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
1517 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1518
1519 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
1520
1521 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
1522 and MMALLOC_CHECK macros, and add comment indicating how host dependent
1523 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
1524 to use it but to not do heap corruption checking.
1525 * gdbserver/Makefile.in: Ditto.
1526 * utils.c (init_malloc): Replace warning() use with direct call of
1527 fprintf_unfiltered, since current_target has not yet been set and thus
1528 we cannot use warning(). If we try to use mmcheck and it fails,
1529 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
1530 defined. Other small mmalloc related cleanups.
1531 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
1532 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
1533
1534 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1535 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1536 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1537 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1538 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
1539 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1540 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1541 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
1542 Remove obsolete defines.
1543
1544 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
1545 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
1546 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
1547 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
1548 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
1549 * config/powerpc/aix.mh (MMALLOC_DISABLE):
1550 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
1551 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
1552 * config/mips/decstation.mh (MMALLOC_DISABLE):
1553 * config/m88k/cxux.mh (MMALLOC_DISABLE):
1554 * config/i386/i386mk.mh (MMALLOC_DISABLE):
1555 * config/i386/i386m3.mh (MMALLOC_DISABLE):
1556 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
1557 Use MMALLOC_CFLAGS instead.
1558
1559 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
1560
1561 * h8300-tdep.c: Remove some outdated comments.
1562 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
1563 Handle stm.l insns for the H8/S.
1564 (examine_prologue): Likewise.
1565
1566 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
1567
1568 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
1569
1570 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
1571
1572 * mon960-rom.c (mon960_open): Add floating point detection to
1573 prevent hang on non-FPU processors (PR 9775).
1574 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
1575 setting breakpoints and improve loading speed.
1576
1577 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
1578
1579 * coffread.c (record_minimal_symbol): Don't presave name string
1580 on symbol_obstack before passing to prim_record_minimal_symbol.
1581 It now handles saving the string itself.
1582 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1583 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
1584 * os9kread.c (record_minimal_symbol): Ditto.
1585 * solib.c (solib_add_common_symbols): Ditto.
1586
1587 * coffread.c (coff_symtab_read): Don't presave name string on
1588 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
1589 It now handles saving the string itself.
1590 * dbxread.c (record_minimal_symbol): Ditto.
1591 * elfread.c (record_minimal_symbol_and_info): Ditto.
1592
1593 * dstread.c (record_minimal_symbol): Remove static function that just
1594 called prim_record_minimal_symbol with the same args (after change to
1595 prim_record_minimal_symbol to do it's own name string saves).
1596 * nlmread.c (record_minimal_symbol): Ditto.
1597 * somread.c (record_minimal_symbol): Ditto.
1598
1599 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
1600 (hpread_read_function_type): Ditto.
1601 (hpread_process_one_debug_symbol): Ditto.
1602 * mdebugread.c (parse_symbol): Ditto.
1603 (new_symbol): Ditto.
1604 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
1605
1606 * coffread.c (process_coff_symbol): Use obsavestring to save
1607 SYMBOL_NAME, rather than obstack_copy0.
1608 * dstread.c (create_new_symbol): Ditto
1609 * symfile.c (obconcat): Ditto.
1610 * stabsread.c (patch_block_stabs): Ditto.
1611 * xcoffread.c (SYMNAME_ALLOC): Ditto.
1612
1613 * symfile.c (obsavestring): Update comments
1614 * solib.c (solib_add_common_symbols): Remove local var origname.
1615
1616 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1617
1618 * configure: Re-build with autoconf-2.10.
1619
1620 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
1621 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
1622 TM_PRINT_INSN, which comes from the tm file.
1623
1624 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
1625
1626 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
1627 os9kread.c: Replace identical sym_offsets functions with
1628 default_symfile_offsets.
1629 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
1630 macro to allocate section_offsets.
1631 * symfile.c (default_symfile_offsets): New function.
1632 * symfile.h: Declare default_symfile_offsets.
1633 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
1634 simplify allocation of section_offsets.
1635
1636 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1637
1638 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1639 * configure configure.in: Only make sol-thread.o for native.
1640 Also, switch to dlopened libthread_db.so.1.
1641 * sol-thread.c: Switch to using dlopen to get the thread_db
1642 library.
1643
1644 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
1645
1646 * configure, configure.in: Change test for libthread_db to only
1647 work for configs where build/host/target are the same.
1648
1649 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1650
1651 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
1652 PowerPC.
1653
1654 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
1655 support.
1656 * configure: Regenerate.
1657
1658 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
1659
1660 From Raymond Jou <rjou@mexican.cygnus.com>:
1661 * mpw-make.sed: Add lines to whack out autoconf hook
1662 @CONFIG_LDFLAGS@.
1663
1664 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
1665
1666 * remote-e7000.c (e7000_stop): New function.
1667
1668 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
1669
1670 * configure, configure.in: Add target sparclet.
1671 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
1672 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
1673 command to start process running on target is different from one
1674 to continue execution), MO_HEX_PREFIX (if addresses from monitor
1675 have a "0x" prefix).
1676 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1677 registers array. This is to allow NULLs to be place holders in
1678 the tm-*.h file so that only minor changes are needed when a new
1679 processor is introduced (eg, one without floating point).
1680 * sparc-tdep.c: Conditionally remove dependancies on floating
1681 point.
1682 * sparclet-rom.c, config/sparc/sparclet.mt,
1683 config/sparc/tm-sparclet.h: New files for target sparclet.
1684 * symfile.c (load_command): Add option for 2nd parameter; a load
1685 offset added to the vma of each section.
1686
1687 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1688
1689 * main.c (main): Add option "l" for setting remote_timeout.
1690
1691 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1692
1693 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1694 "remote_timeout" for setting remote_timeout. Add set option
1695 "use_hard_breakpoints" for setting hardware .vs. memory
1696 breakpoints.
1697
1698 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1699
1700 * remote-e7000.c (e7000_parse_device): New function.
1701 Add option "tcp_remote" to target command if using
1702 tcp to connect to a remote host which is then connected
1703 via serial port to the e7000 (for exampole, a port master).
1704 (e7000_open): Change to call e7000_parse_device.
1705
1706 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1707
1708 * monitor.c (monitor_debug): Fix remotedebug buffering.
1709
1710 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1711
1712 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1713 (NATDEPFILES): Add a space.
1714
1715 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1716
1717 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1718 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1719
1720 * ch-exp.c (calculate_array_length): Function removed.
1721
1722 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1723
1724 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1725 (e7000_xfer_inferior_memory): Call it.
1726
1727 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1728
1729 * gdb/gdbserver/Makefile.in (docdir): Removed.
1730
1731 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1732
1733 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1734 Use autoconf set values.
1735 (docdir): Removed.
1736 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1737 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1738 includedir): Use autoconf set values.
1739 (docdir): Removed.
1740 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1741 * nlm/configure: Rebuilt.
1742 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1743
1744 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1745
1746 * stabsread.c (read_cfront_member_functions): add type
1747
1748 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1749
1750 * win32-nat.c: #include <unistd.h>.
1751 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1752 (child_create_inferior): Convert only env var PATH to win32 style.
1753 (set_pathstyle_dos): Delete.
1754 (_initialize_inftarg): Delete dos-path-style command.
1755
1756 start-sanitize-gdbtk
1757 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1758
1759 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1760 Add global declarations for various reg_format_* variables.
1761 * gdbtk.tcl (populate_register_window): Make initial window one
1762 line taller to account for new column header line.
1763
1764 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1765
1766 * gdbtk.c (get_register): Support for printing raw formats.
1767 * gdbtk.tcl: Add hint for using debug_interface.
1768 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1769 Enclose arg in braces for consistency.
1770 (create_registers_window, populate_reg_window, update_registers):
1771 Major rewrite to support displaying multiple formats in the register
1772 window.
1773 (init_reg_info): New function.
1774 (recompute_reg_display_list): Reset reg_display_list, start
1775 register display lines at line 2.
1776
1777 end-sanitize-gdbtk
1778 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1779
1780 * configure.in: Revise sol-thread.o test.
1781 * configure: Regenerated.
1782
1783 * source.c (find_source_lines): Reassign size to result of read.
1784
1785 start-sanitize-gdbtk
1786 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1787
1788 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1789 avoid backing up over prompt. At every input, make sure insert
1790 point is at least after command start, handle control-u to delete
1791 current input line.
1792 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1793 control-u to delete current input line.
1794
1795 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1796
1797 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1798 * configure: regenerated with autoconf 2.8
1799
1800 end-sanitize-gdbtk
1801 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1802
1803 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1804 (h8300_command): Likewise.
1805 (set_machine): Likewise.
1806 (set_machine_hook): Likewise.
1807 (_initialize_h8300m): Likewise.
1808
1809 * config/h8300/tm-h8300.h (h8300smode): Declare.
1810
1811 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1812
1813 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1814 of shl_load calls for hpux10.
1815
1816 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1817
1818 * config.in: Regenerated.
1819 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1820
1821 * configure: Regenerated.
1822 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1823 avoid name clashes with SunOS headers.
1824
1825 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1826
1827 From Michael Snyder <Michael_Snyder@next.com>:
1828 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1829 exception if one or more objfile has no symbols, such as when
1830 a dynamic library has been stripped.
1831
1832 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1833
1834 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1835 * configure configure.in: Only make sol-thread.o for native.
1836 Also, switch to dlopened libthread_db.so.1.
1837 * sol-thread.c: Switch to using dlopen to get the thread_db
1838 library.
1839
1840 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1841
1842 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1843 Change from 0xE0000000 to 0xC0000000.
1844
1845 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1846
1847 * config/powerpc/xm-solaris.h: Initial version of support for
1848 Solaris on PowerPC.
1849
1850 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1851
1852 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1853 target.
1854 * configure: Rebuild.
1855
1856 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1857 little-endian builds.
1858
1859 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1860
1861 * inftarg.c (child_thread_alive): Protect declaration with
1862 #ifndef CHILD_THREAD_ALIVE.
1863
1864 * source.c (find_source_lines): Check the time on the symtab's bfd if
1865 it exists, else check the time on the exec_bfd.
1866
1867 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1868
1869 * dsrec.c (make_srec): Fix calculation of address size
1870 to allow addresses less than 0x100.
1871
1872 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1873
1874 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1875
1876 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1877
1878 * remote-mips.c: cannot use EINVAL for breakpoint test since
1879 its value varies for different hosts (e.g. go32's is 19, while
1880 sunos is 22). Changed to hardcoded 22 since that is what the
1881 mips boards return.
1882
1883 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1884
1885 * configure: Regenerated.
1886 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1887 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1888
1889 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1890
1891 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1892 (_initialize_solib): Add set/show commands for those variables.
1893 (solib_map_sections): Implement searching using them.
1894
1895 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1896
1897 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1898
1899 * NEWS: Add Alpha Linux as a new native configuration.
1900
1901 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1902 return type VOID, assume no debugging info is available for that
1903 object file and patch the return value into VOID *. Otherwise,
1904 operations requiring an implicit call to malloc() will fail.
1905
1906 * infrun.c (wait_for_inferior): The criterion to detect entering a
1907 sigtramp handler is now: (a) the current pc is inside a sigtramp
1908 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1909 the current stack pointer is "inner" than the old one. Condition
1910 (c) is new to avoid mistaking a return from a signal handler into
1911 sigtramp as a new sigtramp invocation.
1912
1913 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1914 int may not be big enough to hold an address.
1915 (dcache_hit): Ditto.
1916 (dcache_peek_byte): Fix indentation.
1917
1918 * configure.in (alpha-*-linux*): Add target.
1919 * configure: Rebuild
1920
1921 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1922 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1923 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1924 (SIGCONTEXT_ADDR): Ditto.
1925 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1926
1927 * config/alpha/alpha-linux.mh: New file.
1928 * config/alpha/alpha-linux.mt: Ditto.
1929 * config/alpha/nm-linux.h: Ditto.
1930 * config/alpha/tm-alphalinux.h: Ditto.
1931 * config/alpha/xm-alphalinux.h: Ditto.
1932 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1933 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1934 xm-alphaosf.h.
1935 * config/alpha/alpha-osf2.mh: Ditto.
1936
1937 * blockframe.c (find_pc_partial_function): Pass PC to
1938 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1939 that detect sigtramp code via designated code sequences (as is the
1940 case for Linux/Alpha, for example).
1941
1942 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1943 to ignore new PC argument.
1944 * config/m68k/tm-hp300bsd.h: Ditto.
1945 * config/vax/tm-vax.h: Ditto.
1946
1947 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1948 (alpha_osf_skip_sigtramp_frame): Ditto.
1949 (push_sigtramp_desc): Ditto.
1950 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1951 sigcontext address from frame.
1952 (alpha_saved_pc_after_call): When in sigtramp, use
1953 alpha_frame_saved_pc() instead of read-register().
1954 (after_prologue): When inside a dynamically generated sigtramp
1955 function, there is no prologue, so return address of first
1956 instruction.
1957 (alpha_in_prologue): Fix typo in comment.
1958 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1959 whether we're inside a dynamicaly generated sigtramp function. If
1960 so, create and push and appropriate procedure descriptor.
1961 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1962 the frame past a sigtramp frame (if the current frame is indeed a
1963 sigtramp function).
1964 (init_extra_frame_info): Don't read next frame register off of
1965 stack-pointer when inside a dynamiccaly generated sigtramp.
1966 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1967 created for dynamically generated sigtramp functions.
1968
1969 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1970 <alpha/ptrace.h> instead of <machine/reg.h>
1971
1972 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1973
1974 * gnu-nat.c (inf_validate_task_sc):
1975 Give terminal to gdb while asking question.
1976 (inf_resume): Don't validate the task suspend-count while execing.
1977
1978 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1979
1980 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1981 additional suspend count.
1982 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1983 (inf_resume): Call inf_validate_task_sc here.
1984 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1985
1986 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1987
1988 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1989
1990 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1991
1992 * h8300-tdep.c (IS_PUSH): Refine.
1993 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1994 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1995 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1996 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1997 when in H8/300H mode. Get the return pointer's address correctly
1998 for the H8/300H. Handle H8/300H prolouge code sequences.
1999
2000 * symfile.c (generic_load): Print the starting address
2001 of the file just loaded.
2002
2003 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
2004
2005 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2006
2007 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2008
2009 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2010 if a `source' command is contained in bs->commands.
2011
2012 * infrun.c (wait_for_inferior): Update step_frame_address when
2013 stepping into a new line.
2014
2015 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
2016 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
2017 bpenables array.
2018
2019 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
2020
2021 * dsrec.c (load_srec): Add WAITACK parameter, for machines
2022 like EST visionICE that send back an ACK after each S-record.
2023 * monitor.c (monitor_wait_srec_ack): New function.
2024 (monitor_load): Pass monitor_wait_srec_ack to load_srec
2025 if the monitor's MO_SREC_ACK flag is set.
2026 * monitor.h: Define MO_SREC_ACK flag.
2027 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
2028 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
2029 * srec.h: Add WAITACK parameter to load_srec prototype.
2030
2031 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
2032
2033 * config/sparc/sparclite.mt: Add the sparc simulator.
2034
2035 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
2036
2037 * defs.h (read_command_lines, query_hook): Update prototypes.
2038 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
2039 * breakpoint.c (commands_command): Build message in temporary buffer
2040 and pass that, as well as tty control flag, to read_command_lines.
2041 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
2042 Define here.
2043 (command_loop): Check for non-NULL instream before looping.
2044 (command_line_input): Use readline_hook when appropriate, to get
2045 user input from a GUI window.
2046 (read_next_line): Also build prompt if getting user input from a GUI.
2047 (recurse_read_control_structure): Fix typo in comment.
2048 (read_command_lines): Use passed in prompt and tty flag to decide how
2049 to build message. Use readline_begin_hook when appropriate, to set
2050 up a GUI interaction window. Just return head, whether NULL or not,
2051 after using readline_end_hook to complete GUI interaction.
2052 (define_command, document_command): Build message in a temporary
2053 buffer and pass it to read_command_lines, along with tty flag.
2054
2055 start-sanitize-gdbtk
2056 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
2057 New functions.
2058 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
2059 (gdbtk_init): Set readline_begin_hook, readline_hook,
2060 and readline_end_hook.
2061 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
2062 gdbtk_tcl_readline_end): New functions.
2063 (tclsh): Pack scroll bar on right side of window, not left.
2064 end-sanitize-gdbtk
2065
2066 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2067
2068 * blockframe.c (frameless_look_for_prologue):
2069 Add FUNCTION_START_OFFSET only if func_start is non-zero.
2070 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
2071 pc is not in a known section.
2072 * stack.c (print_frame_info): Remove check for fi->pc in known
2073 section, now handled by lookup_minimal_symbol_by_pc.
2074
2075 start-sanitize-gdbtk
2076 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
2077
2078 * gdbtk.tcl (create_command_window): Change a misspelled "get"
2079 to the intended "cget".
2080 (delete_line): Fix so it deletes the current line at the
2081 insertion cursor.
2082 end-sanitize-gdbtk
2083
2084 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2085
2086 * sh-stub.c: New file, was config/sh/stub.c.
2087
2088 start-sanitize-gdbtk
2089 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
2090
2091 * gdbtk.tcl (gdb_prompt): Set this early on.
2092 (create_command_window): Use gdb_prompt rather than "(gdb) ".
2093 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
2094 (tclsh): If an evaluation window already exists, just bring it
2095 to the front instead of trying to create another.
2096 * gdbtk.c (tk_command_loop): New function.
2097 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
2098
2099 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
2100
2101 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
2102 implement a tcl evaluation window for gdbtk maintainers to use.
2103
2104 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
2105
2106 * gdbtk.tcl (files_command): Correctly insert list of files into
2107 listbox widget.
2108
2109 * gdbtk.tcl (files_command): listbox command no longer accepts
2110 -geometry.
2111
2112 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
2113
2114 * gdbtk.tcl (create_command_window): If command window's buffer
2115 is disabled, don't execute any of the key bindings.
2116 end-sanitize-gdbtk
2117
2118 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
2119
2120 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
2121
2122 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
2123 C_STAT symbols.
2124 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
2125 Flush cached frames just before exiting.
2126 * remote-sim.c (gdbsim_resume): Complain if the program isn't
2127 being run.
2128 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
2129
2130 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2131
2132 * procfs.c (procfs_thread_alive procfs_stop): Make static.
2133 (procfs_pid_to_str): New routine to print out thread id's in an
2134 intelligible manner.
2135 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
2136 which supply_register is called to fix bug with writing
2137 individual regs.
2138 * config/sparc/tm-sun4sol2.h: Define default for
2139 target_pid_to_str in case host lacks libthread_db.
2140
2141 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
2142
2143 * Makefile.in config.in configure configure.in
2144 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
2145 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
2146 and pthread support, since pre-2.5 systems don't come with
2147 libthread_db.so.1.
2148
2149 * procfs.c (info_proc): Use int instead of id_t. Old versions of
2150 Irix don't seem to define this.
2151
2152 start-sanitize-gdbtk
2153 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
2154
2155 * gdbtk.c (tk_command): Catch case where no argument is given
2156 since this will cause the tcl interpreter to dump core.
2157 end-sanitize-gdbtk
2158
2159 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
2160
2161 * top.c (execute_control_command, case while_control): Allow
2162 a while command to be interrupted.
2163
2164 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
2165
2166 * sol-thread.c: More cleanup, add comments.
2167 (sol_thread_resume): Prevent people from trying to step
2168 inactive threads.
2169 (sol_thread_wait sol_thread_fetch_registers
2170 sol_thread_store_registers): Remove unnecessary check for
2171 sol_thread_active. These routines won't get called unless threads
2172 are active.
2173
2174 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
2175
2176 SH3-E support from Allan Tajii <atajii@hmsi.com>:
2177 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
2178 float registers.
2179 (sh3e_reg_names): New register name array.
2180 (sh_processor_type_table): Add sh3e processor type.
2181 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
2182 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
2183 full set of registers.
2184 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
2185 (e7000_fetch_registers, e7000_wait): Use them.
2186 * sh3-rom.c (sh3_regnames): Add float registers.
2187 (sh3e_cmds, sh3e_ops): New globals.
2188 (sh3e_open): New function.
2189 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
2190 sh3e target vector.
2191
2192 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
2193
2194 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
2195 Print out messages instead of codes for thread_db errors. Make
2196 access macros for thread and lwp manipulation. Make cleanups to
2197 fixup inferior_pid in case of errors.
2198
2199 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
2200
2201 * aclocal.m4: Remove unused definition of AC_C_CROSS.
2202 * configure.in: Add powerpcle-*-solaris* host and target config
2203 so April 30th change does not get lost next time configure is
2204 rebuilt.
2205
2206 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2207
2208 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
2209 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
2210 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
2211 avoid conflict with Solaris /usr/include/thread.h.
2212
2213 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
2214
2215 * abug-rom.c: Config file for the older style ABug monitor that
2216 runs on the mvme13x boards.
2217 * config/m68k/monitor.mt: Add abug support for m68k cross
2218 debugging.
2219
2220 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
2221
2222 * infcmd.c (do_registers_info): Always print the raw floating
2223 point value's bytes in big endian order, so the the leftmost bit
2224 is the most significant.
2225 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
2226 that is referenced nowhere else.
2227 (set_breakpoint): Ditto.
2228 (do_enable_breakpoint): Created from enable_once_breakpoint
2229 with a couple of changes.
2230 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
2231 bpdisp enum value to set disposition of breakpoint.
2232 (enable_once_breakpoint): Ditto.
2233 (enable_delete_breakpoint): Ditto.
2234 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
2235 * symtab.c (find_pc_line): Improve comments.
2236 start-sanitize-gdbtk
2237 * gdbtk.c: Fix a couple of misspellings.
2238 end-sanitize-gdbtk
2239 * xcoffread.c: Ditto.
2240
2241 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
2242
2243 * target.c (debug_to_xfer_memory): Insert line breaks when
2244 dumping the memory block.
2245
2246 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2247
2248 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
2249 returns a possibly modified pid.
2250 * inftarg.c (ptrace_him): Now returns pid;
2251 * m3-nat.c (m3_trace_him): Now returns pid;
2252 * infcmd.c (run_command): Minor cleanup.
2253 * infrun.c (wait_for_inferior): Add another check for one_stepped
2254 near where we read the pc to avoid erroneously setting
2255 random_signal for multi-threaded support.
2256 * procfs.c: Add support for Solaris LWPs. Remove def of
2257 LOSING_POLL. Many cleanups... Several workarounds for Solaris
2258 lossage. System call entry and exit are now handled by
2259 dynamically registered handlers.
2260 * (syscallname): Don't barf when handed an unknown syscall
2261 number.
2262 * (info_proc_syscalls): Ditto.
2263 * sol-thread.c: New file. Implements Solaris thread support.
2264 * symfile.c (symbol_file_add): Add call to target_new_objfile to
2265 notify target-dependent code about new symbol tables.
2266 * (clear_symtab_users): Call target_new_objfile to notify it of
2267 the removal of all symbol tables.
2268 * target.c (push_target): Make sure that to_close is non-zero
2269 before calling it.
2270 * target.h (target_new_objfile): Provide default.
2271 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
2272 of OSF can't hack using poll with /proc.
2273 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
2274 sol-thread-new-objfile.
2275 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
2276 add libthread_db.so.1 to NAT_CLIBS.
2277 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
2278 target_pid_to_str.
2279
2280 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
2281
2282 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
2283 removal of the requested fd.
2284
2285 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2286
2287 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
2288 hooks under ELF.
2289
2290 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
2291
2292 start-sanitize-gdbtk
2293 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
2294
2295 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
2296 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
2297 (file_popup_menu): Delete, never used.
2298 (listing_window_popup): Rename from listing_window_button_1,
2299 remove breakpoint toggling code.
2300 (toggle_breakpoint): New procedure.
2301 (create_file_win): Bind popup menu to button 2, toggle breakpoints
2302 with button 1 in breakpoint area, add display of tagged areas if
2303 debugging on.
2304 end-sanitize-gdbtk
2305
2306 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
2307
2308 From Peter Schauer:
2309 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
2310 * breakpoint.c (insert_breakpoints, watchpoint_check,
2311 bpstat_stop_status): Avoid bad references to memory freed via
2312 delete_breakpoint on watchpoints going out of scope.
2313 Do not delete these watchpoints, disable them and change their
2314 disposition to del_at_next_stop instead.
2315 (breakpoint_auto_delete): Delete all breakpoints whose disposition
2316 is del_at_next_stop.
2317 (breakpoint_init_inferior): Use switch to avoid reference to
2318 already deleted breakpoint.
2319
2320 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
2321
2322 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
2323 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
2324 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
2325 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
2326 (solib_info): Call xcoff_relocate_symtab via the hook.
2327 (sharedlibrary_command): Ditto.
2328 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
2329 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
2330 (xcoff_init_loadinfo_hook): Define and initialize here.
2331 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
2332 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
2333 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
2334 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
2335 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
2336 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
2337 of xcoff_relocate_symtab_hook.
2338
2339 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2340
2341 * configure (powerpcle-*-solaris*): Add Solaris support.
2342
2343 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
2344 Solaris support.
2345
2346 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
2347
2348 * c-valprint.c (c_val_print): Fix printing for arrays defined
2349 with 0 length.
2350
2351 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
2352
2353 Support for bi-endian remote breakpoints.
2354 * remote.c (big_break_insn, little_break_insn): New globals.
2355 (break_insn): Remove.
2356 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
2357 code if REMOTE_BREAKPOINT defined, otherwise call memory
2358 breakpoint functions.
2359 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
2360 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
2361
2362 * mon960-rom.c (mon960_cmds): Remove forward decl.
2363 (mon960_load): Use current_monitor instead of mon960_cmds.
2364 (mon960_regnames): Remove backslashes from line ends.
2365 (_initialize_mon960): Fix documentation string.
2366
2367 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
2368
2369 * symfile.h (psymbol_allocation_list): Expand comments which
2370 describe the psymbol allocation list and how each field is
2371 used.
2372
2373 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2374
2375 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
2376 storage leaks.
2377 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
2378
2379 * infcmd.c (run_command), solib.c (locate_base): Check for
2380 target_has_execution in addition to inferior_pid, a core file
2381 from a threaded program is yielding a non-zero inferior_pid.
2382
2383 * sparc-tdep.c (get_saved_register): Handle window registers
2384 in a dummy frame correctly.
2385
2386 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
2387
2388 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
2389 so that anything that wants an allocation function not yet pulled
2390 in, will get it from mmalloc rather than a system library.
2391 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
2392 to avoid surprising results when used.
2393
2394 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
2395
2396 * stabsread.c: Changes and bug fixes for cfront support.
2397 Fix bug for class data members.
2398 Fix parsing bug when no base classes exist.
2399 Fix memory bug - allocate space for cplusplus specific info.
2400 Add support for static data.
2401 Add prototypes for static functions.
2402 Enhance comments to show what each function expects to parse.
2403 Cleanup code.
2404 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
2405 function to resolve_cfront_continuation.
2406
2407 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
2408
2409 * infrun.c (wait_for_inferior): Call registers_changed when
2410 restarting the inferior to get over a nullified instruction.
2411
2412 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
2413
2414 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
2415 Add new support for parsing cfront stabs.
2416
2417 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
2418
2419 * infrun.c (wait_for_inferior): Move "have_waited" label
2420 outside of #ifdef conditionals. Don't trash the wait status
2421 if we get a signal and the current instruction is nullified.
2422
2423 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
2424
2425 * Makefile.in (VERSION): Bump version number to 4.16.1.
2426 * NEWS: Update for 4.16 release.
2427
2428 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
2429
2430 * monitor.h: Clean up comment formatting.
2431 (current_monitor): Remove decl.
2432 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
2433 (push_monitor, SREC_SIZE): Remove.
2434 * monitor.c: Expand old macro into current_monitor derefs
2435 everywhere.
2436 * remote-os9k.c (current_monitor): Remove definition.
2437
2438 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
2439
2440 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
2441 hooks.
2442 (call_extra_exec_file_hooks): New function.
2443 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
2444 remove unused variables.
2445 (set_machine_hook): New function.
2446 (_initialize_h8300m): Initialize it.
2447
2448 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
2449
2450 * remote-mips.c (encoding): Don't specify size, to avoid bug in
2451 SunOS native compiler.
2452
2453 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2454
2455 * monitor.c: Use int rather than LONGEST for values, since
2456 the formatting strings are not prepared to accept long longs.
2457
2458 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
2459
2460 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
2461
2462 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
2463
2464 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
2465 before de-referencing it. Prevents deref of NULL pointer if core
2466 file lacks .reg section.
2467 * defs.h: Rename floatformat_{to from}_long_double to
2468 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
2469 FROM}... macros.
2470 * findvar.c (extract_floating store_floating): Change all refs to
2471 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
2472 * utils.c: Change floatformat_{to from}_long_double to
2473 floatformat_{to from}_doublest cuz the new routines will use
2474 whatever size (double or long double) is appropriate.
2475 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2476 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
2477 floatformat... routine calls.
2478
2479 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
2480
2481 * stabsread.c (read_type): Move handling of '@' from type
2482 number handling to handling of types proper (as emitted by gcc!).
2483 For typedefs, allocate the typedef type before reading its
2484 definition, to properly handling recursive types.
2485
2486 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
2487
2488 * ch-exp.c (calculate_array_length): Fix prototype.
2489
2490 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
2491
2492 * remote-nindy.c (nindy_open): Acquire more target state so that
2493 user can attach to a previously running program.
2494 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
2495 conversion code. That's all handled in {extract store}_floating
2496 now.
2497 * utils.c (floatformat_to_double): Don't bias exponent when
2498 handling zero's, denorms or NaNs.
2499 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
2500 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
2501 FLOATFORMAT_TO/FROM_DOUBLEST macros.
2502 * config/i960/tm-nindy960.h: Undefine
2503 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
2504 REGISTER_CONVERTIBLE. These are no longer necessary now that all
2505 the magic happens in extract/store_floating.
2506
2507 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2508
2509 * eval.c (evaluate_subexp_standard): Report error when attempting to
2510 evaluate subscripts for types which cannot be subscripted.
2511
2512 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
2513 Return a zero value with the return type of the member function
2514 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
2515 function.
2516 * values.h (value_x_binop, value_x_unop): Update prototypes
2517 accordingly.
2518 * eval.c (evaluate_subexp_standard): Update all callers of
2519 value_x_binop, value_x_unop accordingly.
2520
2521 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
2522 integral promotion on operands.
2523
2524 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
2525
2526 * README: Update for 4.16 release.
2527 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
2528 * configure: Regenerate with autoconf.
2529 * config.in: Regenerate with autoheader.
2530 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
2531 * top.c (command_loop): Ditto.
2532
2533 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
2534
2535 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2536 defaults for bi-endian targets. Replace function pointers for
2537 floatformat routines with macros. No need for these to be runtime
2538 selectable.
2539 * findvar.c: Get rid of floatformat function pointers. Use
2540 macros in extract_floating and store_floating.
2541 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
2542 Use floatformat macros.
2543
2544 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
2545
2546 From: Miles Bader <miles@gnu.ai.mit.edu>
2547 * configure.in (AC_CHECK_HEADERS): check for endian.h.
2548 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
2549 Add host & target cases for i[345]86-*-gnu*.
2550 * config.in: Regenerate with autoheader.
2551 * configure: Regenerate with autoconf.
2552 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
2553 (init.c): Don't scan mig-generated files.
2554 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
2555 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
2556 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
2557 rather than "#ifndef MACH".
2558
2559 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
2560
2561 * remote.c (remotewritesize): New GDB variable, controls size
2562 of memory packets sent to the target.
2563
2564 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
2565
2566 * dcache.c: Add prototypes. Make many functions static.
2567 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
2568 dcache_poke call dcache_xfer_memory directly in order to fix
2569 problems with turning off dcache. dcache_peek is now unnecessary,
2570 so it goes away.
2571
2572 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
2573 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
2574 to a struct floatformat. This allows for better handling of
2575 targets whose floating point formats differ from the host by more
2576 than just byte order.
2577 * (floatformat_to_long_double floatformat_from_long_double):
2578 Prototypes for new functions in utils.c.
2579 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
2580 for pointers to floating point conversion functions. The actual
2581 function uses either double or long double if the host supports it.
2582 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
2583 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
2584 * (extract_floating store_floating): Rewrite. Now, if host fp
2585 format is the same as the target, we just do a copy. Otherwise,
2586 we call floatformat_{to from}_doublest.
2587 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
2588 `write' to `should_write'.
2589 * utils.c (floatformat_to_long_double
2590 floatformat_from_long_double): New routines that implement long
2591 double versions of functions in libiberty/floatformat.c.
2592 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
2593 i960 extended real (80 bit) numbers.
2594 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
2595 actually read or written.
2596
2597 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2598
2599 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
2600 (calculate_array_length): Move function from here ...
2601
2602 * ch-exp.c (calculate_array_length): ... to here.
2603 (parse_primval): If we have a symbol with an array type
2604 and the length is 0, call calculate_array_length.
2605
2606 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2607
2608 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
2609 Add some checks for powerset compatibility.
2610
2611 * valops.c (value_slice): Use lowbound instead of lowerbound for
2612 call to slice_range_type to get correct bounds.
2613
2614 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
2615
2616 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
2617 dependencies.
2618 * scm-lang.c (gdb_string.h): Include.
2619 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
2620 call to correct type (char *).
2621 * cp-valprint.c (cp_print_static_field): Ditto.
2622 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
2623 for external find_unwind_entry function (from hppa-tdep.c).
2624 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
2625 type of second arg to "char *" to be type compatible with
2626 dcache.
2627 (remote_wait): Cast second arg to strtol to correct type.
2628 * hppa-tdep.c (compare_unwind_entries): Change argument types to
2629 "const void *" to be type compatible with qsort, and then
2630 assign to local args prior to use.
2631
2632 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
2633
2634 * infptrace.c (kill_inferior): Remove call to "kill"; update
2635 comments.
2636
2637 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
2638
2639 * remote-e7000.c: don't append :23 to target port if __WIN32__
2640 is defined (it's WinGDB).
2641
2642 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
2643
2644 From: Miles Bader <miles@gnu.ai.mit.edu>
2645 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
2646 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
2647 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
2648 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
2649
2650 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
2651
2652 * configure.in (case host): Add i386sco5 host.
2653 * configure: Regenerate.
2654
2655 From: Robert Lipe <robertl@dgii.com>
2656 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
2657 target is an SVR3.2 with COFF, ELF, and shared libes, but
2658 no /proc.
2659 * config/i386/i386sco5.mh: New file.
2660 * config/i386/nm-i386sco5.h: New file.
2661
2662 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
2663
2664 * bcache.c (bcache): When size of chunk to cache is exactly equal to
2665 BCACHE_MAXLENGTH, stash chunk as unique copy.
2666
2667 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
2668
2669 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
2670 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
2671 use it, rather than calling add_psymbol_addr_to_list.
2672 (add_psymbol_addr_to_list): Delete.
2673 (add_psymbol_to_list): Make psymbol static to avoid random data in
2674 gaps due to alignment of structure members.
2675 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2676 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2677 performance improvements by inlining via complicated macros and
2678 they just make gdb larger and harder to maintain.
2679 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2680 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2681 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2682 (add_partial_symbol): Ditto.
2683 * partial-stab.h: Ditto.
2684 * os9kread.c (read_os9k_psymtab): Ditto
2685 * mdebugread.c (parse_partial_symbols): Ditto.
2686 (handle_psymbol_enumerators): Ditto.
2687 (demangle.h): Include.
2688 * hpread.c (hpread_build_psymtabs): Ditto.
2689 (hpread_build_psymtabs): Ditto.
2690 (demangle.h): Include
2691
2692 start-sanitize-gdbtk
2693 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2694
2695 * gdbtk.c (running_now): New global variable.
2696 (gdb_cmd): Test it before executing any command.
2697 (gdbtk_call_command): Set it when inferior is running.
2698 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2699 disable interaction with command window's text appropriately.
2700
2701 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2702
2703 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2704 some versions of the kernel don't support it.
2705 end-sanitize-gdbtk
2706
2707 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2708
2709 * configure.in: Check for setpgid function.
2710 * config.in: Regenerate with autoheader.
2711 * configure: Regenerate with autoconf.
2712 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2713 if it is actually defined.
2714 (gdb_setpgid): Use HAVE_SETPGID.
2715 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2716 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2717 * c-exp.y, serial.c: Include <ctype.h>.
2718 * config/m68k/nm-news.h: Add typedef for pid_t which is
2719 apparently missing from <sys/types.h>. Enclose entire
2720 file in NM_NEWS_H ifndef and define when included.
2721 * config/mips/nm-news-mips.h: Ditto.
2722 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2723 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2724
2725 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2726
2727 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2728 * arm-tdep.c (arm_apcs_32): New global.
2729 (arm_addr_bits_remove, arm_saved_pc_after_call,
2730 arm_push_dummy_frame, arm_pop_frame): New functions.
2731 (arm_skip_prologue): Updated version from Richard Earnshaw.
2732 (_initialize_arm_tdep): Add set/show "apcs32".
2733 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2734 arm_addr_bits_remove.
2735 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2736 (frame_find_saved_regs): Declare properly.
2737 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2738 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2739 explicit mask.
2740 * config/arm/nm-arm.h: New file.
2741 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2742 Move definitions to nm-arm.h.
2743 * config/arm/arm.mh (NAT_FILE): Define.
2744
2745 * symfile.c (generic_load): Initialize data_count properly.
2746
2747 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2748
2749 * symmisc.c (print_objfile_statistics): Print memory used by
2750 psymbol cache obstack.
2751
2752 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2753
2754 * symfile.c (report_transfer_performance): New function.
2755 (generic_load): Call it to report transfer rate.
2756 * remote-e7000.c (e7000_load): Ditto.
2757
2758 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2759
2760 * mpw-make.sed: Change references to config.h to be in objdir,
2761 edit out rules to rebuild config.h.
2762
2763 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2764
2765 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2766 proceeding.
2767
2768 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2769
2770 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2771 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2772 by infptrace.c rather than calling ptrace directly.
2773
2774 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2775
2776 * mon960-rom.c: Cleanups and elimination of unused code,
2777 clarify documentation string.
2778 (mon960_serial, mon960_ttyname): Remove.
2779 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2780 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2781
2782 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2783
2784 * configure.in: Check whether printf family supports printing
2785 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2786 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2787 * configure: Regenerate.
2788 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2789 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2790 * configure.in: Fix have_gregset and have_fpregset autoconf
2791 variable names so that they match the pattern required to
2792 cache them.
2793
2794 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2795
2796 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2797 before testing against reg_ptr.
2798 * eval.c (evaluate_subexp_standard): Cast type of
2799 TYPE_FN_FIELD_VOFFSET to int.
2800 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2801 extract_long_unsigned_integer): Cast type of sizeof to int.
2802 * values.c (unpack_field_as_long, modify_field): Ditto.
2803 * valops.c (value_assign, call_function_by_hand): Ditto.
2804 * infcmd.c (do_registers_info): Ditto.
2805 * ser-tcp.c (tcp_open): Ditto.
2806 * remote.c (putpkt): Ditto.
2807 * dcache.c (dcache_peek): Ditto.
2808 * dcache.c (dcache_poke): Ditto.
2809 * m2-exp.y (yylex): Ditto.
2810 * gnu-regex.c (re_match_2): Ditto.
2811 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2812 out unused macro definition and variables.
2813 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2814 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2815 * main.c (wait.h): Include.
2816 * top.c (command_line_input): Remove unused variable "c".
2817 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2818 value TYPE_CODE_TYPEDEF to switch statement.
2819 (f_type_print_varspec_suffix): Add missing enum value
2820 TYPE_CODE_TYPEDEF to switch statement.
2821 * ch-exp.c (parse_primval): Add remaining enumeration values to
2822 switch statement, with no specific action.
2823 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2824 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2825 * stabsread.c (cleanup_undefined_types): Remove unused label
2826 "badtype".
2827 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2828 * maint.c (objfiles.h): Include.
2829 (maintenance_print_statistics): Remove unused variable "temp".
2830 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2831 unused variable "found_file_symbol".
2832 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2833 * language.c (lang_bool_type): Use existing function local type
2834 variable rather than create block local variables.
2835 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2836 * infptrace.c (wait.h, command.h): Include.
2837 * ser-tcp.c (gdb_string.h): Include
2838 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2839 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2840 * command.c (complete_on_enum): Make assignment used as truth value
2841 explictly check against NULL.
2842 (wait.h): Include.
2843 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2844 that uses it is ifdef'd out.
2845 * parser-defs.h: Add prototype for write_dollar_variable.
2846 * infrun.c: Add prototype for write_pc_pid.
2847 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2848 * symmisc.c (bcache.h): Include.
2849 * bcache.h: Add prototype for print_bcache_statistics.
2850 * symfile.c: Include <time.h>.
2851 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2852 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2853 * valarith.c (value_binop): Change result_len, promoted_len1,
2854 and promoted_len2 to unsigned int.
2855 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2856 elt_size to unsigned int.
2857 * valops.c (value_array): Change typelength to unsigned int.
2858 (destructor_name_p): Change len to unsigned int.
2859 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2860 * symfile.c (decrement_reading_symtab): Change return type to void.
2861 * valarith.c (value_subscript): Remove unused variable "word".
2862 (value_subscript): Remove unused variable "tint".
2863 * valops.c (auto_abandon): Ifdef out, since code using it is also
2864 ifdef'd out.
2865 * eval.c (init_array_element): Remove unused variable "val".
2866 * Makefile.in (values.o): Depends on scm-lang.h.
2867 (command.o): Depends upon wait_h.
2868 (ser-tcp.o): Depends upon gdb_string.h.
2869 (infptrace.o): Depends upon wait_h and command_h.
2870 (maint.o): Depends on objfiles.h and symfile.h.
2871 * values.c (allocate_repeat_value): Remove unused variable
2872 "element_type".
2873 (scm-lang.h): Include.
2874 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2875 GET_LONGJMP_TARGET define, unused otherwise.
2876 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2877 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2878
2879 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2880
2881 * configure.in (sparc64-*-solaris2*): Delete.
2882 Stick with sparc-*-solaris2*.
2883 * configure: Regenerated.
2884
2885 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2886
2887 * valops.c (value_assign): Make copy of internal variable value
2888 before returning it as a new value, since it is owned by the
2889 internal variable and will be freed along with it.
2890
2891 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2892
2893 * From Peter Schauer.
2894 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2895 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2896 and bp_step_resume in case breakpoint_re_set_one is called due
2897 to a step over a dlopen call.
2898 * infrun.c (wait_for_inferior): Always remove breakpoints from
2899 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2900
2901 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2902
2903 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2904 non-prototyped case over prototyped case for C.
2905 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2906
2907 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2908
2909 * os9kread.c (os9k_process_one_symbol): Note nonportable
2910 assumption that an int can hold a char *.
2911
2912 * bcache.h (struct hashlink): Wrap data[] inside union with
2913 double to force longest alignment.
2914 (BCACHE_DATA): New macro to access data[].
2915 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2916 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2917 address of cached data. Use BCACHE_ALIGNMENT to compute
2918 amount of space to allocate for each hashlink struct.
2919
2920 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2921
2922 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2923
2924 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2925
2926 * Makefile.in (VERSION): Bump version to 4.15.3
2927
2928 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2929
2930 * config.in: Rename from config.h.in.
2931 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2932 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2933 * configure: Rebuild.
2934 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2935 Set CONFIG_HEADERS to config.h:config.in.
2936
2937 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2938
2939 * partial-stab.h (case N_ENDM): Finish current partial symbol
2940 table for Solaris 2 cc.
2941
2942 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2943
2944 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2945 PC in the registers array. From Peter Schauer.
2946
2947 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2948
2949 * symfile.c (reread_symbols): Reinitialize bcache struct
2950 members to zero using memset. Also use memset to reinit
2951 global_psymbols and static_psymbols, rather than explicitly
2952 resetting each structure member.
2953
2954 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2955
2956 * configure.in: Add fragment to create stamp-h.
2957
2958 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2959 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2960 * configure: Regenerate with autoconf.
2961 * config.h.in: Regenerate with autoheader.
2962 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2963 is defined.
2964 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2965 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2966 older a.out based systems.
2967
2968 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2969
2970 * config.h.in: New file.
2971 * acconfig.h: New file, for autoheader.
2972 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2973 * configure: Regenerate.
2974 * Makefile.in (defs_h): Add config.h
2975 (distclean): Remove config.h and stamp-h during distclean.
2976 (config.h, stamp-h): New targets to remake config.h when necessary.
2977 * defs.h (config.h): Include before any other includes or defines.
2978 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2979 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2980
2981 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2982
2983 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2984 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2985 result in an empty line, to work around a bug in native Ultrix 4.4
2986 and OSF/1-3.2C make.
2987
2988 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2989
2990 * configure.in: Add gdbserver to configdirs under linux.
2991 * configure: Regenerate.
2992
2993 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2994
2995 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2996 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2997
2998 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2999
3000 * solib.c (solib_break_names): Add _r_debug_state for
3001 vanilla SVR4 implementations. From Peter Schauer.
3002
3003 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
3004
3005 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3006 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3007 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3008 epecting prompt and echo during open.
3009 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3010 determine if break should be sent as stop command.
3011 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3012 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
3013 stack frame on mon960.
3014 * Makefile.in: Add mon960 files.
3015 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
3016 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
3017 * configure: Regenerated.
3018 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
3019 support mon960 rom monitor on i960.
3020
3021 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
3022
3023 With Michael Snyder:
3024 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
3025 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
3026 (handle_load_dll): Don't reload symbols.
3027 (handle_exception): Use the DEBUG_* names.
3028 (child_wait): Add DEBUG_* code.
3029 (_initialize_inftarg): Add new commands to set debug_ names.
3030
3031 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
3032
3033 * From Peter Schauer:
3034 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
3035 (bpstat_stop_status): Likewise.
3036 (remove_solib_event_breakpoints): Likewise.
3037 (clear_momentary_breakpoints): Likewise.
3038 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
3039 if we still can't read the memory for that breakpoint.
3040 (mention): Add bp_shlib_event case to keep gcc quiet.
3041
3042 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
3043
3044 * breakpoint.h (enum enable): New enum shlib_disabled for
3045 shared library breakpoints that have been temporarily disabled.
3046 * breakpoint.c: Handle temporarily disabled shared library
3047 breakpoints like disabled breakpoints in most places.
3048 (insert_breakpoints): Use shlib_disabled to indicate
3049 that an unsettable breakpoint is only temporarily disabled.
3050 (re_enable_breakpoints_in_shlibs): New function.
3051 * corelow.c (solib_add_stub): After adding shared libraries,
3052 try to reenable any temporarily disabled breakpoints.
3053 * infcmd.c (attach_command): Likewise.
3054 * infrun.c (wait_for_inferior): Likewise.
3055
3056 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
3057
3058 * defs.h (extract_long_unsigned_integer): Declare.
3059 * findvar.c (extract_long_unsigned_integer): New function.
3060 * printcmd.c (print_scalar_formatted): Use it.
3061 * valprint.c (val_print_type_code_int): Likewise.
3062
3063 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
3064
3065 * infcmd.c (do_registers_info): Ignore anonymous registers.
3066 * sh-tdep.c (set processor): New command to set specific
3067 processor type.
3068 (sh_reg_names, sh3_reg_names): Arrays of register names for
3069 SH and SH3 processors.
3070 (sh_set_processor_type): New function.
3071 * sh3-rom.c (sh3_open): Call it.
3072 (sh3_regname): Add names of all the bank registers.
3073 (sh3_supply_register): Clean up formatting.
3074 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
3075 bank registers.
3076 (REGISTER_NAMES): Add names of bank registers.
3077 (FP15_REGNUM): Define.
3078 (REGISTER_VIRTUAL_TYPE): Use it.
3079 * monitor.c: Clean up some comments.
3080
3081 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3082
3083 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
3084 s* and t* symbols too.
3085
3086 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
3087
3088 * symfile.c (generic_load): Avoid division by zero.
3089
3090 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
3091
3092 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
3093 not just those with HANDLE_SVR4_EXEC_EMULATORS.
3094
3095 From Peter Schauer:
3096 * breakpoint.c (internal_breakpoint_number): Move to file scope.
3097 (create_solib_event_breakpoint): Use an internal breakpoint number.
3098
3099 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3100
3101 * valarith.c (value_in): Change builtin_type_chill_bool to
3102 LA_BOOL_TYPE.
3103
3104 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3105
3106 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
3107 (match_string_literal): Handle control sequence.
3108 (match_character_literal): Deto.
3109
3110 * ch-lang.c (chill_printchar): Change formating of nonprintable
3111 characters from C'xx' to ^(num).
3112 (chill_printstr): Deto.
3113 (value_chill_card, value_chill_max_min): New functions to process
3114 Chill's CARD, MAX, MIN.
3115 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
3116
3117 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
3118 for Chill's CARD, MAX, MIN.
3119
3120 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
3121 and change return type from builtin_type_int to
3122 builtin_type_chill_bool.
3123
3124 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
3125
3126 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
3127 from config/nm-nbsd.h.
3128 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
3129 from config/sparc/tm-nbsd.h.
3130
3131 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
3132 instead of in config/m68k/xm-hp300hpux.h.
3133
3134 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3135
3136 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
3137 implementation for NetBSD systems.
3138
3139 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
3140
3141 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
3142 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
3143
3144 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
3145 if "function" is pointer to non-function.
3146
3147 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
3148
3149 * top.c (print_gdb_version): Update copyright year.
3150
3151 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
3152
3153 From Peter Schauer:
3154 * infrun.c (wait_for_inferior): Remove breakpoints and
3155 switch terminal settings before calling SOLIB_ADD.
3156 * solib.c (enable_break, SVR4 variant): Don't map in symbols
3157 for the dynamic linker, the namespace pollution causes real
3158 problems.
3159
3160 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
3161
3162 * remote-mips.c (common_breakpoint): Explicitly terminate the
3163 returned buffer.
3164
3165 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3166
3167 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3168 * remote.c (remote_detach): Send a command 'D' to the target
3169 when detaching, update the function's comments.
3170
3171 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
3172
3173 * gnu-nat.c (thread_cmd_list): New declaration.
3174 (parse_int_arg): New function.
3175
3176 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
3177
3178 * gnu-nat.h (struct proc): Add DETACH_SC field.
3179 * gnu-nat.c (make_proc): Set DETACH_SC.
3180 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3181 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
3182 (add_thread_commands): Add set/show for detach-suspend-count.
3183 Add takeover-suspend-count cmd.
3184 (inf_detach): Set suspend counts to the detach SC, not 0.
3185 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
3186 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
3187 set_thread_default_thread_detach_sc_cmd,
3188 show_thread_default_thread_detach_sc_cmd): New functions.
3189 (show_task_cmd): Also show detach-suspend-count values.
3190 (thread_takeover_sc_cmd): New function.
3191
3192 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
3193
3194 * gnu-nat.c (show_thread_run_cmd): Actually print state.
3195
3196 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
3197
3198 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
3199
3200 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
3201
3202 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
3203 pointer to the flags now, not the flags themselves.
3204
3205 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
3206
3207 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
3208 (gnu_create_inferior): Check return from ptrace.
3209
3210 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3211
3212 * gnu-nat.h (struct proc): Add DEAD field.
3213 * gnu-nat.c (make_proc): Initialize DEAD.
3214 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
3215 (gnu_wait): Only abort for 0 threads if the task isn't dead.
3216
3217 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
3218
3219 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
3220
3221 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
3222
3223 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
3224 (inf_set_traced): Only give no-signal-thread error message if
3225 turning *on* tracing.
3226
3227 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3228
3229 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
3230 set inf->threads_up_to_date to 0.
3231 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
3232 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
3233 (proc_update_sc): Cast thread state arg to thread_set_state.
3234 (proc_get_state): Cast thread state arg to thread_get_state.
3235 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
3236 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
3237 inf_update_procs before we lookup the thread.
3238 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
3239
3240 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
3241
3242 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
3243
3244 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
3245
3246 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
3247 INIT_TRACEMASK instead of setting the exec flags.
3248
3249 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
3250
3251 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
3252 the task's died, so others have a chance at it.
3253 (gnu_resume): When single-stepping a single thread, given an error
3254 if there is no such thread. When single-stepping one but running
3255 the others, just given a warning and still run all the threads.
3256 (gnu_wait): If there seem to be no threads, look harder, and
3257 signal an error if there really aren't any.
3258 (gnu_attach): Reset thread numbering to 0.
3259
3260 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
3261 thread name in warning messages.
3262
3263 * gnu-nat.c (active_inf): New function.
3264 (show_sig_thread_cmd, show_stopped_cmd): Use it.
3265 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
3266 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
3267 New functions.
3268 (add_task_commands): Add new port-right info commands.
3269
3270 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
3271
3272 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
3273 use mach_msg with MACH_RCV_INTERRUPT.
3274 (set_noninvasive_cmd): New function.
3275 (add_task_commands): Add command entry for `set noninvasive'.
3276
3277 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
3278
3279 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
3280 (safe_bcopy): Function removed.
3281
3282 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
3283
3284 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
3285 (make_proc): Initialize state_valid & state_changed fields.
3286
3287 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
3288
3289 * reply_mig_hack.awk: New file.
3290
3291 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
3292
3293 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
3294
3295 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
3296 threads.
3297
3298 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
3299
3300 * target.c (debug_to_check_threads): New function.
3301
3302 * inflow.c (terminal_init_inferior_with_pgrp): New function.
3303 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
3304 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
3305 but only if PROCESS_GROUP_TYPE is defined.
3306
3307 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
3308
3309 * target.c (debug_to_thread_alive): Pass through the return value.
3310
3311 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
3312
3313 * target.c (signals, target_signal_from_host, target_signal_to_host):
3314 Add mach exceptions.
3315 * target.h (enum target_signal): Add mach exceptions.
3316
3317 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
3318
3319 * gnu-nat.c: New file: gnu native backend.
3320 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
3321 * gnu-nat.h: New file.
3322 * config/nm-gnu.h: New file.
3323 * config/tm-i386gnu.h: New file.
3324 * config/xm-i386gnu.h: New file.
3325 * config/i386/i386gnu.mh: New file.
3326 * config/i386/i386gnu.mt: New file.
3327
3328 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
3329
3330 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
3331 baseline for gdb 4.16 rerelease testing.
3332
3333 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
3334
3335 * somsolib.c (som_solib_create_inferior_hook): Before returning
3336 call clear_symtab_users.
3337
3338 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
3339
3340 * remote-e7000.c (e7000_open): Delete all breakpoints when
3341 connecting to e7000. Change connect message to allow use of
3342 monitor.exp in test suite.
3343 * (e7000_load): Print transfer rate of download.
3344 * symfile.c (generic_load): Print transfer rate of download.
3345
3346 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
3347
3348 * configure.in (mips*-*-vxworks*): New config.
3349 * configure: Regenerated.
3350
3351 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
3352 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
3353 Remove, never used.
3354
3355 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3356
3357 * partial-stab.h (case N_FUN): Function symbols generated
3358 by SPARCworks cc have a meaningless zero value, do not update
3359 pst->textlow if the function symbol value is zero.
3360
3361 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
3362 for function prototype declaration symbols.
3363
3364 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
3365
3366 * remote-e7000.c (e7000_load): New routine to download via the
3367 network.
3368 * (e7000_wait): Don't backup PC when we hit a breakpoint.
3369 Apparantly new sh2 pods get this right...
3370 * (e7000_ops): Add call to e7000_load.
3371
3372 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3373
3374 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
3375 m68knbsd-nat.c: New files, support for NetBSD/m68k.
3376
3377 * configure.in (m68k-*-netbsd*): New config.
3378 * configure: Regenerated.
3379
3380 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
3381
3382 * standalone.c (open, _initialize_standalone): Fix obvious typos
3383 reported by Martin Pool <martin@citr.uq.oz.au>.
3384
3385 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
3386
3387 * solib.c (solib_create_inferior_hook): Fix thinko.
3388
3389 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
3390
3391 * solib.c (solib_break_names): Define for Solaris and Linux.
3392 (enable_break): For SVR4 systems, first try to use the debugger
3393 interfaces in the dynamic linker to track shared library events
3394 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
3395 BKPT_AT_SYMBOL code to use shared library event breakpoints.
3396 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
3397 it no longer needs to restart/wait on the inferior.
3398 * symfile.c (find_lowest_section): No longer static.
3399 * symfile.h (find_lowest_section): Corresponding changes.
3400
3401 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
3402
3403 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
3404 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
3405 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
3406 * config/mips/tm-mips.h: Ditto.
3407 * config/pa/tm-hppa.h: Ditto.
3408 * config/rs6000/tm-rs6000.h: Ditto.
3409 * config/sparc/tm-sparc.h: Ditto.
3410
3411 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3412
3413 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
3414
3415 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
3416 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3417 #ifdef'd out definitions --- Causes serious gdb failures on
3418 the i386. Need to investigate further before enabling.
3419
3420 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
3421 fetch_core_registers): New functions. These functions are defined
3422 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
3423 with ptrace PT_GETREGS/PT_SETREGS.
3424
3425 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
3426
3427 * findvar.c (extract_floating store_floating): Replace `long
3428 double' with `DOUBLEST'.
3429
3430 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3431
3432 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
3433 Define.
3434
3435 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
3436
3437 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
3438
3439 * breakpoint.h (remove_solib_event_breakpoints): Declare.
3440 * breakpoint.c (remove_solib_event_breakpoints): New function.
3441 * somsolib.c (solib_create_inferior_hook): Remove all solib event
3442 breakpoints before inserting any new ones. Use a solib event
3443 breakpoint for the breakpoint at "_start".
3444 Remove extraneous "\n" from calls to warning.
3445
3446 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
3447 name array.
3448
3449 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
3450
3451 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
3452 for CORE_ADDR values.
3453 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
3454 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
3455
3456 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3457
3458 * mipsread.c (mipscoff_symfile_read): Unconditionally add
3459 alpha coff dynamic symbols for all symbol files. Makes skipping
3460 over the trampoline code work when stepping from a function in a
3461 shared library into a function in a different shared library.
3462
3463 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
3464
3465 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
3466 RETURN_VALUE_ON_STACK to return long doubles on the stack.
3467
3468 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
3469
3470 * Makefile.in (ch-exp.o): Add dependencies.
3471 (various): Add gdb_string.h to dependencies that need it.
3472
3473 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
3474
3475 * symmisc.c (print_symbol_bcache_statistics): Update description for
3476 printing byte cache statistics.
3477
3478 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
3479
3480 * Add native support for long double data type.
3481 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
3482 to store actual data. Change types of INT and FLOAT tokens to
3483 typed_val_int and typed_val_float respectively. Create new token
3484 DOUBLE_KEYWORD to specify the string `double'. Make production
3485 for FLOAT use type determined by parse_number. Add production for
3486 "long double" data type.
3487 * (parse_number): Use sscanf to parse numbers as float, double or
3488 long double depending upon the type of typed_val_float.dval. Also
3489 allow user to specify `f' or `l' suffix to explicitly specify
3490 float or long double constants. Change typed_val to
3491 typed_val_int.
3492 * (yylex): Change typed_val to typed_val_int. Also, scan for
3493 "double" keyword.
3494 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
3495 type.
3496 * configure, configure.in: Add check for long double support in
3497 the host compiler.
3498 * defs.h: Define DOUBLEST appropriatly depending on whether
3499 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
3500 for functions that handle this type.
3501 * expression.h (union exp_element): doubleconst is now type
3502 DOUBLEST.
3503 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
3504 * findvar.c (extract_floating): Make return value be DOUBLEST.
3505 Also, add support for numbers with size of long double.
3506 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
3507 floating types.
3508 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
3509 DOUBLEST.
3510 * valarith.c (value_binop): Change temp variables v1, v2 and v to
3511 type DOUBLEST. Coerce type of result to long double if either op
3512 was of that type.
3513 * valops.c (value_arg_coerce): If argument type is bigger than
3514 double, coerce to long double.
3515 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
3516 arg type is float and > 8 bytes, then use pointer-to-object
3517 calling conventions.
3518 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
3519 Use appropriate format and precision to print out floating point
3520 values.
3521 * value.h: Fixup prototypes for value_as_double,
3522 value_from_double, and unpack_double to use DOUBLEST.
3523 * values.c (record_latest_value): Remove check for invalid
3524 floats. Allow history to store them so that people may examine
3525 them in hex if they want.
3526 * (value_as_double unpack_double): Change return value to DOUBLEST.
3527 * (value_from_double): Arg `num' is now DOUBLEST.
3528 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
3529 specific) to expect certain types to always be returned on the stack.
3530
3531 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
3532
3533 * bcache.c, bcache.h: New files to implement a byte cache.
3534 * Makefile.in (SFILES): Add bcache.c.
3535 (symtab_h): Add bcache.h.
3536 (HFILES_NO_SRCDIR): add bcache.h
3537 (COMMON_OBJS): Add bcache.o
3538 (bcache.o): New target.
3539 * dbxread.c (start_psymtab): Make global_syms & static_syms
3540 type "partial_symbol **".
3541 * hpread.c (hpread_start_symtab): Ditto.
3542 * os9kread.c (os9k_start_psymtab): Ditto.
3543 * stabsread.h (start_psymtab): Ditto.
3544 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
3545 * maint.c (maintenance_print_statistics): Call
3546 print_symbol_bcache_statistics.
3547 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
3548 and free pointers.
3549 * solib.c (allocate_rt_common_objfile): Ditto.
3550 * symfile.c (reread_symbols): Ditto.
3551 (free_objfile): Free psymbol bcache when objfile is freed.
3552 (objfile_relocate): Use new indirect psymbol pointers.
3553 * objfiles.h (struct objfile): Add psymbol cache.
3554 * symfile.c (compare_psymbols): Now passed pointers to pointers to
3555 psymbols.
3556 (reread_symbols): Free psymbol bcache when freeing other objfile
3557 resources.
3558 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
3559 psymbol using the psymbol bcache.
3560 (init_psymbol_list): Psymbol lists now contain pointers rather than
3561 the actual psymbols.
3562 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
3563 grown arrays of pointers.
3564 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
3565 bcache.
3566 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
3567 to partial symbol.
3568 (print_symbol_bcache_statistics): New function to print per objfile
3569 bcache statistics.
3570 (print_partial_symbol, print_partial_symbols,
3571 maintenance_check_symtabs, extend_psymbol_list):
3572 Account for change to pointer to pointer to partial symbol.
3573 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
3574 make_symbol_completion_list):
3575 Account for change to pointer to pointer to partial symbol.
3576 * symtab.h (bcache.h): Include.
3577 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
3578 type "partial_symbol **".
3579
3580 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
3581
3582 * dwarfread.c (free_utypes): New function.
3583 (read_file_scope): Call free_utypes as cleanup, rather than just
3584 freeing the utypes pointer.
3585
3586 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3587
3588 * demangle.c (is_cplus_marker): New function, checks if a
3589 character is one of the commonly used C++ marker characters.
3590 * defs.h (is_cplus_marker): Add prototype.
3591 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
3592 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
3593 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
3594 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
3595 values.c (vb_match): Use is_cplus_marker instead of comparison
3596 with CPLUS_MARKER.
3597
3598 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
3599
3600 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
3601 delete entirely someday.
3602
3603 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3604
3605 * mpw-make.sed: Edit out makefile rebuild rule.
3606 (host_alias, target_alias): Comment out instead of deleting.
3607 (@LIBS@): Edit out references.
3608
3609 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
3610
3611 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3612 Use n_psyms in OBJSTAT, not psyms.
3613
3614 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
3615
3616 * configure.in (sparclet-*-aout*): New config.
3617 * configure: Regenerated.
3618
3619 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
3620
3621 * somsolib.c (som_solib_add): Use xmalloc rather than bare
3622 unchecked call to malloc.
3623 * remote-mips.c (pmon_load_fast): ditto.
3624 * remote-mm.c (mm_open): ditto.
3625 * hpread.c (hpread_lookup_type): ditto.
3626 * remote-adapt.c (adapt_open): ditto.
3627
3628 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
3629
3630 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
3631 allocate_saved_f77_common_node, allocate_common_entry_node,
3632 add_common_block): Use xmalloc rather than malloc, some of which
3633 were unchecked.
3634 * gnu-regex.c: At same point as other gdb specific changes
3635 #undef malloc and then #define it to xmalloc.
3636 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
3637 bare unchecked calls to malloc/realloc.
3638 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
3639 unchecked call to malloc.
3640
3641 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
3642
3643 * symtab.c (gdb_mangle_name): Change opname var to be const to
3644 match return val of cplus_mangle_name.
3645 * i960-tdep.c: Change arg types of next_insn to match callers.
3646
3647 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
3648
3649 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
3650 apparently aren't needed in any reasonably recent version of
3651 linux.
3652
3653 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
3654
3655 * stabsread.c (read_range_type): If !self-subrange and language
3656 is Chill, assume a true range. If a true_range is a sub_subrange,
3657 use builtin_type_int for index_type.
3658
3659 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
3660
3661 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
3662 with an ANSI compiler.
3663
3664 start-sanitize-gdbtk
3665 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
3666
3667 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
3668 double-clicking will work again.
3669 (create_asm_win): Put "break" at end of all B1 bindings.
3670 (create_file_win): Lower "sel" tag, don't raise it.
3671 (ensure_line_visible): New proc.
3672 (update_listing, update_assembly): Use it.
3673 (create_copyright_window): Destroy window on Leave event.
3674 (create_command_window): Put "break" at end of all B2 bindings.
3675
3676 end-sanitize-gdbtk
3677 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3678
3679 From Michael_Snyder@NeXT.COM (Michael Snyder):
3680 * valops.c (value_arg_coerce): Coerce float to double, unless the
3681 function prototype specifies float.
3682
3683 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3684
3685 * language.c (set_language_command): Use languages table when
3686 printing available languages.
3687
3688 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3689
3690 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3691 * command.c (add_cmd): Add missing initialization for enums member.
3692 Reorder members to match structure declaration to make it easier to
3693 tell when one is missing.
3694 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3695 memory is referenced after being freed.
3696
3697 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3698
3699 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3700 AT_name tag is missing.
3701
3702 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3703 FLTWATCH and FLTKWATCH are defined.
3704
3705 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3706 return number of bytes transferred for partial reads.
3707
3708 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3709
3710 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3711
3712 * win32-nat.c (mappings): Add ppc registers.
3713 (child_resume): Turn off step for ppc.
3714
3715 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3716
3717 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3718 xm-cygwin32.h): New.
3719 * config/i386/(*win32*): Becomes *cygwin32*.
3720 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3721 (powerpcle-*-cygwin32): New.
3722 * configure: Regenerate.
3723 * win32-nat.c (child_create_inferior): Call CreateProcess
3724 with the right program arg.
3725
3726 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3727
3728 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3729
3730 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3731
3732 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3733
3734 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3735
3736 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3737
3738 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3739
3740 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3741 here from config/i386/xm-i386mach.h, fix name.
3742 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3743 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3744 here from config/i386/xm-ptx4.h.
3745 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3746 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3747 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3748 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3749 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3750
3751 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3752 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3753 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3754
3755 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3756
3757 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3758 floating point correctly.
3759 (STORE_RETURN_VALUE): Likewise.
3760 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3761
3762 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3763
3764 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3765 Define to what should be reasonable values. However, apparently
3766 a bug in linux mmap prevents mapped symbol tables from working.
3767
3768 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3769
3770 * defs.h (errno.h>: Move #include closer to head of file to solve
3771 obscure problem with systems that declare perror with const arg, in
3772 both errno.h and stdio.h, and const is defined away by intervening
3773 local include.
3774
3775 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3776
3777 From Jon Reeves <reeves@zk3.dec.com>:
3778 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3779 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3780
3781 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3782
3783 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3784 exist in doc/Makefile.in.
3785
3786 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3787
3788 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3789
3790 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3791
3792 * ch-valprint.c (calculate_array_length): New function to
3793 determine the length of an array type.
3794 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3795 array type is zero, call calculate_array_length.
3796
3797 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3798 values may not be sorted. Scan all entries and set the real lower
3799 and upper bound.
3800
3801 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3802
3803 * config/xm-linux.h: Move include of solib.h and #define of
3804 SVR4_SHARED_LIBS from here ...
3805 * config/nm-linux.h: ...to here.
3806
3807 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3808
3809 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3810 Also check for gregset_t and fpregset_t types.
3811 * configure: Regenerate.
3812 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3813 is defined.
3814 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3815 and HAVE_FPREGSET_T are defined. These changes allow systems
3816 like linux that are migrating to /proc support to use a single
3817 configuration for both new and old versions.
3818
3819 * config/i386/linux.mt: Note that this is now for both a.out and
3820 ELF systems.
3821 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3822 i386v4-nat.o
3823 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3824 * config/i386/xm-linux.h (solib.h): Include
3825 (SVR4_SHARED_LIBS): Define.
3826 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3827 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3828 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3829 defined.
3830
3831 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3832
3833 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3834 * config/i386/xm-sun386.h: Ditto.
3835 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3836
3837 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3838
3839 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3840
3841 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3842
3843 From Greg McGary <gkm@gnu.ai.mit.edu>:
3844 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3845 multi-byte I/O.
3846
3847 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3848
3849 * infrun.c (normal_stop): Fix test for shared library event.
3850
3851 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3852
3853 * configure.in (sparc64-*-*): Add default host configuration.
3854 start-sanitize-gdbtk
3855 (sparc64-*-solaris2* host): Link statically if GCC used.
3856 end-sanitize-gdbtk
3857 (sparc64-*-solaris2*): Add target configuration.
3858 * configure: Regenerated.
3859 * sparc/sp64sol2.mt: New file.
3860
3861 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3862
3863 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3864
3865 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3866
3867 * Makefile.in (lint): Close backquotes.
3868
3869 start-sanitize-gdbtk
3870 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3871
3872 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3873
3874 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3875 greater.
3876 * configure: Rebuilt.
3877
3878 end-sanitize-gdbtk
3879 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3880
3881 * NEWS: Make note of new record and replay feature for
3882 remote debug sessions.
3883 * serial.c (gdbcmd.h): Include.
3884 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3885 Define here, for remote debug session logging.
3886 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3887 New functions for remote debug session logging.
3888 (serial_open): Open remote debug session log file when needed.
3889 (serial_close): Close remote debug session log file when needed.
3890 (_initialize_serial): Add set/show commands for name of remote
3891 debug session log file.
3892 * serial.h (serial_readchar): Declare
3893 (SERIAL_READCHAR): Call serial_readchar().
3894 (SERIAL_WRITE): Call serial_write().
3895 (serial_close): Declare as extern.
3896 (serial_logfile, serial_logfp): Declare.
3897 * top.c (execute_command): Declare serial_logfp. Log user command
3898 in remote debug session log if log file is open.
3899 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3900 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3901 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3902 monitor.h.
3903 * remote-array.c (hexchars, hex2mem): Remove, unused.
3904 * gdbserver/low-linux.c (store_inferior_registers): Remove
3905 unnecessary extern declaration of registers[].
3906 * gdbserver/Makefile.in (all): Add gdbreplay.
3907 * gdbserver/gdbreplay.c: New file.
3908 * gdbserver/README: Give example of recording a remote
3909 debug session with gdb and then replaying it with gdbreplay.
3910
3911 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3912
3913 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3914 (read_one_struct_field): Support boolean bitfields.
3915 * c-valprint.c (c_val_print): Print booleans properly.
3916
3917 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3918
3919 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3920 Remove, never used.
3921 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3922
3923 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3924
3925 * ch-exp.c (parse_tuple): Error if invalid mode.
3926
3927 * value.h (COERCE_ARRAY): Don't coerce enums.
3928 (COERCE_ENUM): Don't COERCE_REF.
3929 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3930 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3931 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3932 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3933 Add COERCE_REF before COERCE_ENUM.
3934 * values.c (value_as_long): Simplify.
3935
3936 * valops.c (value_array): Create internalvar if !c_style_arrays.
3937
3938 * language.c (lang_bool_type): Add Fortran support.
3939 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3940
3941 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3942
3943 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3944 All references changed.
3945 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3946 Update state table. Reformat so that it's still readable.
3947 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3948 (breakpoint_1): Add "shlib events" as a breakpoint type.
3949 Print the shlib_event breakpoint like other breakpoints.
3950 (create_solib_event_breakpoint): New function.
3951 (breakpoint_re_set_one): Handle solib_event breakpoints.
3952 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3953 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3954 action.
3955 (create_solib_event_breakpoint): Declare.
3956 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3957 (normal_stop): Inform the user when the inferior stoped due
3958 to a shared library event.
3959 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3960 to control whether or not gdb continues the inferior or stops it when
3961 a shared library event occurs.
3962 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3963 * somsolib.c (TODO list): Update.
3964 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3965 when significant shared library events occur.
3966 * hppa-tdep.c (find_unwind_entry): No longer static.
3967
3968 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3969
3970 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3971 INIT_DISASSEMBLE_INFO.
3972 start-sanitize-gdbtk
3973 * gdbtk.c (gdb_disassemble): Likewise.
3974 end-sanitize-gdbtk
3975
3976 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3977
3978 * remote.c (remotebreak): New GDB variable.
3979 (remote_break): New global.
3980 (remote_interrupt): Send a break instead of ^C if remote_break.
3981 * NEWS: Describe the new variable.
3982
3983 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3984
3985 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3986
3987 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3988
3989 * hp300ux-nat.c (getpagesize): Remove unused function
3990 fetch_core_registers.
3991 (hp300ux_core_fns): Remove, is unused.
3992 (_initialize_core_hp300ux): Remove, is unused.
3993 (gdbcore.h): Remove #include, no longer needed.
3994
3995 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3996
3997 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3998 ptrace bug in aix4.1.3 on the rs6000.
3999
4000 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4001
4002 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4003 * remote-nindy.c (nindy_ops): Ditto.
4004 * remote-udi.c (udi_ops): Ditto.
4005
4006 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
4007
4008 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4009 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4010 pmon_load_fast): New functions. Support for the PMON monitor world.
4011 (common_open): New function to merge support for different monitors.
4012 (mips_open): Use common_open().
4013 (mips_send_command): New function.
4014 (mips_send_packet): Scan out-of-sequence packets.
4015 (mips_enter_debug, mips_exit_debug): New functions.
4016 (pmon_ops): New target definition structure.
4017
4018 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
4019
4020 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
4021 specified on the make command line (via make LIBS=xxx).
4022 start-sanitize-gm
4023 * configure.in (enable-gm): magic.o -> gmagic.o.
4024 end-sanitize-gm
4025
4026 start-sanitize-gdbtk
4027 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
4028
4029 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
4030 (add_expr): Changes from create_expr_window.
4031 (create_command_window): Set focus.
4032 (delete_expr): Rewrote.
4033 (expr_update_button): New proc.
4034 (add_expr): Put bindings on FocusIn, FocusOut.
4035 Don't allow .file_popup to be torn off.
4036 end-sanitize-gdbtk
4037
4038 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
4039
4040 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
4041 is set but there are no psymtabs.
4042
4043 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
4044
4045 * dsrec.c (load_srec): Remove unused variable.
4046 * monitor.c (monitor_expect): Don't expect a ^C to echo.
4047 * serial.c (serial_open): Add parallel interface.
4048 * sh3-rom.c (parallel, parallel_in_use): New.
4049 (sh3_load): If parallel_in_use, download though the
4050 parallel port.
4051 (sh3_open): Open parallel port if specified.
4052 (sh3_close): New function.
4053 (_inititalize_sh3): Add sh3_close hook and documentation.
4054 * monitor.c (monitor_close): Export.
4055 * monitor.h (monitor_close): Add prototype.
4056
4057 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
4058
4059 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4060 * remote.c (remotetimeout): New GDB variable, use to set the
4061 remote timeout for reading.
4062
4063 start-sanitize-gdbtk
4064 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
4065
4066 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
4067 (update_listing): Use lassign. Use "see" to scroll. Don't need
4068 screen_top, screen_bot, screen_height.
4069 (update_assembly): Use "see" to scroll.
4070 (textscrollproc): Removed.
4071 (create_file_win): Don't use textscrollproc.
4072 (asmscrollproc): Removed.
4073 (create_asm_window): Don't use asmscrollproc.
4074 (create_asm_win): Ditto.
4075 (screen_height, screen_top, screen_bot): Removed.
4076 (run_editor): New proc.
4077 (build_framework): Use it.
4078 (create_file_win, create_source_window): Don't use textscrollproc.
4079 (create_breakpoints_window): Set -xscrollcommand on canvas.
4080 (not_implemented_yet): Default button is 0.
4081 (delete_char): Don't use tk_textBackspace.
4082 (create_command_window): Allow Tk bindings to fire after deleting
4083 character.
4084 (create_command_window): Make Delete delete left, not right.
4085 end-sanitize-gdbtk
4086
4087 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
4088
4089 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
4090 to get "struct core_fns" defined.
4091 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
4092 Are dependent upon gdbcore_h.
4093
4094 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
4095
4096 * symfile.c (decrement_reading_symtab): New function.
4097 * symfile.c, symtab.h (currently_reading_symtab): New variable.
4098 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
4099 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
4100 currently_reading_symtab (since that could infinitely recurse).
4101
4102 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
4103
4104 * stabsread.c (read_struct_type): Trivial simplification.
4105
4106 * stabsread.c (define-symbol): Use invisible references
4107 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
4108 * valops.c (call_function_by_hand): Likewise.
4109 * eval.c (evaluate_subexp_standard): When known, use the formal
4110 parameter type as the expected type when evaluating arg expressions.
4111 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
4112
4113 start-sanitize-gdbtk
4114 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
4115
4116 * main.c (main): Disable window interface if --help or --version
4117 specified.
4118
4119 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
4120
4121 Changes in sync with expect:
4122 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
4123 CY_AC_PATH_TK.
4124 * aclocal.m4: Replaced with version from expect.
4125 * configure: Regenerated.
4126 end-sanitize-gdbtk
4127
4128 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
4129
4130 * configure.in, configure: Recognize rs6000-*-aix4*.
4131 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
4132 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
4133 * config/rs6000/xm-aix4.h: New file.
4134 * config/xm-aix4.h: New file.
4135
4136 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
4137
4138 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4139 * gdbserver/low-linux.c: New file.
4140 * remote.c (remote_read_bytes): Fix aborts on larger packets.
4141
4142 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
4143 Define.
4144 * stabsread.c (define_symbol): If register value is too large,
4145 tell what it is and what max is.
4146
4147 start-sanitize-gdbtk
4148 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
4149
4150 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
4151 gdbtk_tcl_flush): Use "see", not "yview".
4152 (gdbtk_tcl_query): Use questhead bitmap.
4153 various: Always wrap condition of 'if' in {...}.
4154 (add_breakpoint_frame): Set -value on radiobuttons.
4155 (lassign): New proc.
4156 (add_breakpoint_frame): Use lassign, not series of assignments.
4157 (decr): Made faster.
4158 (interactive_cmd): Use "see", not "yview".
4159 (not_implemented_yet): Use warning bitmap.
4160 (update_expr): Don't allow $expr to be evalled by Tcl.
4161 (create_expr_window): Don't use "focus".
4162 (delete_char, delete_line): Define globally.
4163 (delete_line, delete_char, create_command_window, update_autocmd,
4164 build_framework, create_asm_win, create_file_win): Use "see", not
4165 "yview".
4166 (create_copyright_window, center_window, bind_widget_after_class):
4167 New procs.
4168 (FSBox,create_command_window, create_autocmd_window): Binding
4169 changes for Tk4.
4170 (textscrollproc): Define globally.
4171 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
4172 Home, End, Up, and Down are all defined by Tk.
4173 (apply_filespec): Use error bitmap in dialog.
4174 (files_command): Don't use tk_listboxSingleSelect.
4175 (files_command): Don't use "uniq" to remove duplicates from a
4176 list.
4177 (update_assembly): Use lassign.
4178 (create_asm_win): Removed redundant bindings.
4179 (listing_window_button_1, file_popup_menu): Use tk_popup.
4180 (ButtonRelease-1 binding): Just remove tag from window; rest
4181 handled by Tk.
4182
4183 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
4184 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
4185 (gdbtk_call_command): Ditto.
4186 end-sanitize-gdbtk
4187
4188 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
4189
4190 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
4191 enum namespace -> enum_namespace change.
4192
4193 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4194
4195 * ch-exp.c (parse_primval): In case ARRAY, add missing
4196 FORWARD_TOKEN ().
4197
4198 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4199
4200 * remote-mips.c (mips_receive_header): Recognize \012 instead
4201 of \n, but write \n when program sends a \012.
4202 * ser-mac.c (mac_input_buffer): Increase size of buffer.
4203
4204 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
4205
4206 * infptrace.c (initialize_infptrace): Move function out of
4207 #ifdef conditional; put code within the function inside an
4208 #ifdef conditional.
4209
4210 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
4211 arguments. Sorting is now dependent on OBJF_REORDERED. All
4212 callers/references changed.
4213 * dbxread.c (read_ofile_symtab): Correctly determine value for
4214 last_source_start_addr for reordered executables.
4215 (process_one_symbol): Handle N_FUN with no name as an end of
4216 function marker.
4217 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
4218 is the high text address for a psymtab.
4219 (case N_SO): Likewise.
4220 (case N_FUN): Handle N_FUN with no name as an end of function
4221 marker.
4222 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
4223 at the same address rather than a random subset of them.
4224 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
4225 * elfread.c (elf_symfile_init): Similarly.
4226 * somread.c (som_symfile_init): Similarly.
4227 * xcoffread.c (xcoff_symfile_init): Similarly.
4228
4229 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
4230
4231 * stack.c (print_stack_frame print_frame_info) symmisc.c
4232 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
4233 that catch_errors doesn't get blindsided by QUIT and lose the
4234 cleanup chain. This fixes a problem where ^C while in a
4235 user-defined command sometimes leaves instream NULL and causes a
4236 segfault in command_loop.
4237
4238 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
4239
4240 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
4241
4242 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
4243
4244 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
4245 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
4246 srec.o renamed to dsrec.o.
4247
4248 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
4249
4250 * breakpoint.c (remove_breakpoint): Change error to warning so
4251 that hardware watchpoint removal problems won't leave breakpoint
4252 traps in the target.
4253 start-sanitize-gdbtk
4254 * configure configure.in: Make --enable-gdbtk be the default.
4255 end-sanitize-gdbtk
4256 * remote-e7000.c (e7000_insert_breakpoint,
4257 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
4258 breakpoints.
4259 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
4260 compensate for e7000 maladjustment.
4261 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
4262 which prevented hardware watchpoints from working.
4263
4264 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
4265
4266 * infptrace.c (udot_info): New function.
4267 (PT_*): Define each individually if that one is not defined.
4268 * rs6000-nat.c (kernel_u_size): New function
4269 Include <sys/user.h> for "struct user"
4270 * alpha-nat.c (kernel_u_size): New function.
4271 Include <sys/user.h> for "struct user"
4272 * sparc-nat.c (kernel_u_size): New function.
4273 Include <sys/user.h> for "struct user"
4274 * i386b-nat.c (kernel_u_size): New function.
4275 * i386v-nat.c (kernel_u_size): New function.
4276 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
4277 (kernel_u_size): Declare.
4278 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
4279 (kernel_u_size): Declare.
4280 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
4281 (kernel_u_size): Declare.
4282 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
4283 (kernel_u_size): Declare.
4284 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
4285 (kernel_u_size): Declare.
4286
4287 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
4288
4289 * mdebugread.c (mylookup_symbol): enum namespace becomes
4290 enum_namespace type.
4291 * symfile.c (add_psymbol_to_list)
4292 (add_psymbol_addr_to_list): Ditto.
4293 * symtab.c (lookup_partial_symbol): Ditto.
4294 (lookup_symbol): Ditto.
4295 (lookup_block_symbol): Ditto.
4296 * win32-nat.c (handle_load_dll): Use incoming dll base.
4297 (child_wait): Catch DLL load errors.
4298 (create_child_inferior): Translated between paths correctly.
4299
4300 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
4301
4302 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
4303 from NUM_REGS to get number of general registers that we care about.
4304 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
4305 of number of general regs and number of floating point regs.
4306
4307 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
4308
4309 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
4310 (SKIP_TRAMPOLINE_CODE): New.
4311 * config/i386/xm-win32.h (CANT_FORK): Deleted.
4312 (SLASH*) Changed to use unix style slash.
4313 * symtab.h (namespace enum): becomes typedef to avoid namespace
4314 collision in C++.
4315 * infcmd.c (path_command): Use empty string if PATH name not set.
4316 * i386-tdep.c (skip_trampoline_code): New function.
4317 * srec.c: Renamed dsrec.c to avoid filename collision.
4318 * Makefile.in: Cope with renaming.
4319
4320 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
4321
4322 * symmisc.c (print_objfile_statistics): Print memory use statistics
4323 for objfile psymbol, symbol, and type obstacks.
4324
4325 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4326
4327 * config/mips/nm-irix5.h: Restore.
4328 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
4329 from Lee Iverson <leei@ai.sri.com>.
4330 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
4331 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
4332
4333 For older changes see ChangeLog-95
4334 \f
4335 Local Variables:
4336 mode: indented-text
4337 left-margin: 8
4338 fill-column: 74
4339 version-control: never
4340 End:
This page took 0.117059 seconds and 5 git commands to generate.