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