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