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