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