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