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