* config/tc-hppa.c (pa_ip): Fix thinkos in recent cleanup
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cff3e48b
JM
1Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * gdbarch.sh: Describe each of the fields.
4
5Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6
7 From 1999-09-12 Jim Blandy <jimb@cris.red-bean.com>:
8 * gdbarch.sh (generating setters): Use sed to generate the proper
9 indentation, not tr; tr's behavior is notoriously unportable.
10
111999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
12
13 * i387-tdep.c (print_387_control_bits): Don't print newline; the
14 callers take care of that. (Thanks to H.J. Lu.)
15
161999-09-09 Stan Shebs <shebs@andros.cygnus.com>
17
18 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
19 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
20 itracesource): Add 'i' prefix to commands, so as not to conflict
21 with generic trace commands.
22
231999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
24
25 * remote.c (_initialize_remote): Fix the specification of the
26 "remote" prefix to set and show commands.
27
281999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
29
30 * event-loop.c (create_file_event): New function. Creates a gdb
31 event for a given fd.
32 (gdb_wait_for_event): Use create_file_event().
33 * event-loop.h: export create_file_event().
34
35 * event-loop.c (delete_file_handler): Move the clearing of the
36 mask to later on in the function, because we need it in order to
37 deactivate the correct fd when using select().
38
39 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
40 with 0xf are branch instructions.
41 (m32r_scan_prologue): Initialize framesize to 0.
42
d4f3574e
SS
431999-09-07 J.T. Conklin <jtc@redback.com>
44
45 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
46 (handle_exception): Removed #if'd out exception hook code.
47
48 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
49
50 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
51 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
52 Make static.
53
54Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
55
56 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
57 Define.
58
59Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
60
61 From Jim Blandy <jimb@cygnus.com>:
62
63 Step into calls to functions in shared libraries properly. See
64 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
65 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
66
671999-09-05 Fred Fish <fnf@cygnus.com>
68
69 * elfread.c (elf_symtab_read): Remove separately passed bfd
70 pointer and offset. Pick up bfd pointer from objfile, and
71 get offset from objfile's section_offsets.
72
73Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
74
75 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
76 named "foo" to "fopo" which more accurately describes the FPU
77 Operand Pointer Offset. The real reason for this change, of
78 course, is that many programmers use $foo as a convenience
79 variable and are likely to be unpleasantly surprised to find
80 that they're unwittingly changing the state of their ia32 FPU.
81
821999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
83
84 * monitor.c (monitor_supply_register): Stop scanning val string
85 if a newline is encountered.
86
871999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
88
89 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
90 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
91 monitor_dump_reg_block): Dump hard-coded constants in favor
92 of TARGET_BUF_SIZE.
93
94 (readchar): Re-enable output of characters read from monitor when
95 remotedebug is set.
96
97 (monitor_supply_register): Use ULONGEST to hold value.
98 Replace strtoul() call with hand-coded loop to handle values
99 larger than 'long'.
100
101 (monitor_store_register): Use ULONGEST to hold value.
102
103Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
104
105 [Merged linux/x86 floating point code from Bill Metzenthen,
cff3e48b 106 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
d4f3574e
SS
107 following remarks are Jim Blandy's.]
108
109 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
110 #defined.
111 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
112
113 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
114 functions.
115 (i386_extract_return_value): GNU/Linux returns floating point
116 values in a floating point register too.
117 (set_disassembly_flavor): Add prototype.
118 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
119 which wasn't the first FP data register).
120 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
121 the limits of the FPU-related registers.
122 (i386_extract_return_value): Tell GDB how to find return values
123 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
124 report.)
125
126 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
127 (print_387_control_bits): New function.
128 (print_387_status_word): Break out bit-splitting into...
129 (print_387_status_bits): New function.
130 (i387_print_register, i387_float_info, i387_hex_float_input): New
131 functions.
132 (i387_extract_floating, i387_store_floating): New functions.
133
134 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
135 if it's #defined. Tolerate values of `nonnegative' other than
136 zero and one.
137
138 * i386-linux-nat.c: New file.
139 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
140 (i386-linux-nat.o): New rule, listing dependencies.
141 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
142 the plain i386v4-nat.o.
143 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
144 * config/i386/xm-linux.h: Define HOST_I386.
145
146 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
147 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
148 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
149 (REGISTER_BYTES): Changed accordingly.
150 (SKIP_SOLIB_RESOLVER): #define this.
151 (i386_linux_skip_solib_resolver): New declaration.
152 (i387_float_info): Added extern decl for this function.
153 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
154 TARGET_ANALYZE_FLOATING): Define.
155 (i387_extract_floating, i387_store_floating): New extern decls.
156 (I386_GNULINUX_TARGET): Define.
157 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
158 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
159 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
160 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
161 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
162 definitions, perhaps overriding those inherited from
163 config/i386/tm-i386.h.
164 (i386_do_registers_info, i387_print_register, double_to_i387,
165 i387_to_double): New declarations.
166 (LD_I387): Define iff both the host and target are using i387
167 FPU's.
168 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
169 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
170 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
171
172 * source.c (list_command): List the right number of source lines,
173 even if we're at the top of the file.
174
1751999-09-02 Stan Shebs <shebs@andros.cygnus.com>
176
177 * infrun.c (step_over_function): New function, broken out from the
178 step_over_function label in handle_inferior_event.
179 (handle_inferior_event): Change a goto into a function call.
180
181Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
182
183 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
184 (INTERNAL_CFLAGS): Update
185 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
186 ../sim/common/aclocal.m4.
187 * configure: Re-generate.
188
189Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
190
191 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
192 -Werror. See Makefile.in.
193 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
194
195 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
196 z8k_saved_pc_after_call, z8k_frame_saved_pc,
197 z8k_set_pointer_size): Declare.
198 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
199 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
200 SAVED_PC_AFTER_CALL): Update.
201 * z8k-tdep.c (z8k_print_register_hook): Rename
202 z8k_print_register_hook.
203 (z8k_frame_chain): Rename frame_chain.
204 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
205 (z8k_frame_saved_pc): Rename frame_saved_pc.
206 (z8k_print_register_hook): Fix printf.
207 (read_memory_pointer): Add declaration.
208 ("value.h"): Include.
209 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
210
211 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
212 printf. calls
213 * Makefile.in (remote-e7000.o): For moment, don't try to compile
214 with -Werror. See Makefile.in.
215 * sh-tdep.c (sh_show_regs): Fix printf calls.
216 * xcoffsolib.c (solib_info): Fix Printf calls.
217 * dink32-rom.c: #include "symfile.h" for generic_load and
218 "inferior.h" for write_pc.
219 * Makefile.in (dink32-rom.o): Update.
220
221 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
222 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
223 declarations.
224
225Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
226
227 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
228
229 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
230 Pass REGISTER_SIM_REGNO converted register number to the
231 simulator.
232
2331999-09-01 Tom Tromey <tromey@cygnus.com>
234
235 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
236
2371999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
238
239 * values.c (value_virtual_fn_field): Remove unused var(s).
240 * thread.c (prune_threads): Ditto.
241 * symtab.c (lookup_transparent_type): Ditto.
242 (decode_line_1): Ditto.
243 (make_symbol_overload_list): Ditto.
244 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
245 (set_processor): Ditto.
246 * remote.c (remote_remove_breakpoint): Ditto.
247 (remote_query): Ditto.
248 (readtty): Ditto.
249 * remote-sds.c (sds_fetch_registers): Ditto.
250 (putmessage): Ditto.
251 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
252 (ppcbug_open): Remove unused prototype.
253 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
254 * ocd.c (ocd_open): Ditto.
255 (ocd_get_packet): Ditto.
256 * monitor.c (monitor_error): Ditto.
257 (monitor_wait_srec_ack): Ditto.
258 * main.c (main): Ditto.
259 * gdbtypes.c (count_virtual_fns): Ditto.
260 * exec.c (exec_file_command): Ditto.
261
262 * event-top.c: Include handle_sigwinch() function prototype within
263 appropriate #ifdef.
264
265 * eval.c (evaluate_subexp_standard): Remove unused variable.
266 (evaluate_subexp_standard): Remove unused variables.
267 * dink32-rom.c (dink32_supply_register): Remove unused variable.
268 * dbxread.c (elfstab_build_psymtabs): Ditto.
269 * command.c (do_setshow_command): Ditto.
270 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
271 and 'sal'.
272 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
273 (create_exception_catchpoint): Remove unused variable 'i'.
274 * ax-gdb.c (gen_sub): Remove unused variable.
275 (_initialize_ax_gdb): Ditto.
276
277 * ser-pipe.c (pipe_readchar): If timeout is expired return
278 SERIAL_TIMEOUT.
279 * ser-tcp.c (tcp_readchar): If timeout is expired return
280 SERIAL_TIMEOUT.
281
282Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
283
284 * version.h: New file.
285 * Makefile.in (version_h): Define.
286 (version.o): Add target.
287
288 * remote-array.c: #include "version.h".
289 (version): Delete extern declarations.
290 * Makefile.in (remote-array.o): Add dependency on version.h.
291
292 * top.c: #include "version.h".
293 (version, host_name, target_name): Delete extern declarations.
294 * Makefile.in (top.o): Add dependency on version.h.
295
296 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
297 remote-array.c (array_open), remote-mips.c (send_srec),
298 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
299
300 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
301 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
302 dsrec.c (load_srec): Fix printf problems.
303
304Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
305
306 * Makefile.in (monitor.o): For moment, don't try to compile with
307 -Werror. monitor.c has -Wformat problems. See Makefile.in for
308 more info.
309
310Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
311
312 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
313 for doubleword store instructions.
314 (hppa_frame_find_saved_regs): Similarly.
315
316Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
317
318 * d30v-tdep.c (d30v_print_register):
319 (tdisassemble_command):
320
321 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
322 printf problems.
323
324 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
325 Fix printf arguments.
326
327 * remote-mips.c, mips-tdep.c: Move declaration of
328 ``mips_set_processor_type_command'' from here.
329 * config/mips/tm-mips.h: To here.
330 * remote-array.c: #include "inferior.h".
331 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
332 declaration.
333 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
334 ISO-C prototype.
335 (monitor_supports_breakpoints): Integer variable.
336
337 * m32r-rom.c: #include "inferior.h" and <ctype.h>
338 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
339
340 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
341 declaration.
342 (POP_FRAME): Call i960_pop_frame.
343 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
344 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
345
3461999-08-15 Fred Fish <fnf@cygnus.com>
347
348 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
349 allocating section_offsets array.
350 * remote-os9k.c (rombug_wait): Ditto.
351 * remote-vx.c (vx_add_symbols): Ditto.
352 * remote.c (get_offsets): Ditto.
353 (remote_cisco_objfile_relocate): Ditto.
354 * rs6000-nat.c (vmap_symtab): Ditto.
355
356 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
357 of returning a pointer to section offsets.
358 * somread.c (som_symfile_offsets): Ditto.
359 * xcoffread.c (xcoff_symfile_offsets): Ditto.
360 * symfile.c (default_symfile_offsets): Ditto.
361 (syms_from_objfile): The sym_offsets function has already set section
362 offsets and no longer returns a value.
363
364 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
365 separate from objfile.
366 (xcoff_start_psymtab): Ditto.
367 (START_PSYMTAB): Ditto.
368 * os9kread.c (read_minimal_symbols): Ditto.
369 (read_os9k_psymtab): Ditto.
370 (os9k_start_psymtab): Ditto.
371 (record_minimal_symbol): Ditto.
372 * dbxread.c (START_PSYMTAB): Ditto.
373 (start_psymtab): Ditto.
374 * mdebugread.c (START_PSYMTAB): Ditto.
375 (elfmdebug_build_psymtabs): Ditto.
376 (mdebug_build_psymtabs): Ditto.
377 (parse_partial_symbols): Ditto.
378 (new_psymtab): Ditto.
379 * dwarfread.c (dwarf_build_psymtabs): Ditto.
380 * partial-stab.h (START_PSYMTAB): Ditto.
381 * stabsread.h (start_psymtab): Ditto.
382 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
383 (dwarf2_build_psymtabs_easy): Ditto.
384 (dwarf2_build_psymtabs_hard): Ditto.
385 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
386 (hpread_quick_traverse): Ditto.
387 (hpread_start_psymtab): Ditto.
388 (scan_procs): Ditto.
389 * hpread.c (hpread_build_psymtabs): Ditto.
390 * symfile.h (dwarf2_build_psymtabs): Ditto.
391
392 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
393 offsets.
394 * core-cisco.c (get_seg_info): Make static.
395 * coffread.c (enter_linenos): Pass objfile instead of section
396 offsets.
397 * jv-vm.c (jv_vm_internal_lookup_symbol): Call allocate_objfile
398 with the right number of arguments.
399
400 * dbxread.c (dbx_symfile_read): No need to explicitly pass
401 text addr and size. Let read_dbx_symtab find them.
402 (read_dbx_symtab): Get text addr and size from objfile.
403 (dbx_symfile_read): Remove dead code (call to strlen);
404
4051999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
406
407 * Makefile.in: add rule for sol-thread.o.
408 Add rule for linux-thread.o.
409
4101999-08-13 Jim Kingdon <kingdon@redhat.com>
411
412 Threads code from gdb 4.18-codefusion-990706
cff3e48b 413 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
d4f3574e
SS
414 * infrun.c (signal_stop_update, signal_print_update,
415 signal_pass_update): new functions.
416 * inferior.h: new prototypes for above functions.
417 * target.h (enum strata): add thread stratum.
418 * linux-thread.c: new file. Support for debugging linux threads.
419 * config/i386/nm-linux.h: several new prototypes for above.
420 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
421
422 More threads code from the same place:
423 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
424 definitions.
425 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
426 * target.c (signals, target_signal_from_host,
427 target_signal_to_host): Add clauses for
428 TARGET_SIGNAL_REALTIME_32.
429
4301999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
431
432 * sol-thread.c (sol_thread_detach): strip thread-id out of
433 inferior_pid, so that procfs_detach can't choke on it.
434
4351999-08-31 J.T. Conklin <jtc@redback.com>
436
437 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
438 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
439 define it as a pointer to &remcomInBuffer[0].
440 (handle_exception): Update.
441
442 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
443 Removed #ifdef'd out code which implements the non-standard 'b'
444 (set baud rate) command.
445
4461999-08-31 Stan Shebs <shebs@andros.cygnus.com>
447
448 * infrun.c (keep_going): New function, broken out from the
449 keep_going label in handle_inferior_event.
450 (handle_inferior_event): Change more gotos into function calls.
451
452Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
453
454 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
455
456Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
457
458 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
459 format argument.
460 * alpha-tdep.c (heuristic_proc_start): Ditto.
461
462 From Stan Shebs <shebs@andros.cygnus.com>:
463 * defs.h (strlen_paddr): Fix prototype - add void argument list.
464
465Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
466
467 * defs.h (gdb_print_host_address), utils.c
468 (gdb_print_host_address): Rename gdb_print_address.
469
470 * expprint.c, gdbtypes.c, symmisc.c: Update.
471
472 *expprint.c: Use gdb_print_host_address when displaying native
473 pointers.
474
475Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
476
477 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
478 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
479 remote.c (putpkt_binary, compare_sections_command,
480 remote_cisco_section_offsets), dcache.c (dcache_info),
481 breakpoint.c (break_at_finish_at_depth_command_1,
482 break_at_finish_command_1), symfile.c (generic_load),
483 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
484 (f_val_print), maint.c (maintenance_translate_address): Fix printf
485 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
486 paddr_d to print addresses. Change ``d'' to ``ld''.
487
488 * utils.c (strlen_paddr): New function.
489
490Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
491
492 * config/d30v/tm-d30v.h (d30v_frame_chain,
493 d30v_init_frame_pc): Add declaration.
494
495 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
496 (arc_push_dummy_frame): Rename push_dummy_frame.
497 (arc_set_cpu_type_command): Add declaration.
498
499 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
500 declaration.
501
104c1213
JM
5021999-08-30 Stan Shebs <shebs@andros.cygnus.com>
503
504 * infrun.c (prepare_to_wait): New function, broken out from the
505 wfi_continue label in handle_inferior_event.
506 (handle_inferior_event): Change more gotos into function calls.
507
5081999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
509
510 * tracepoint.c: -Wall warning cleanup.
511 (parse_and_eval_memrange): remove (unused).
512 (output_command, args_info, locals_info, registers_info): add decls.
513 (getpkt, putpkt, remote_console_output): add decls.
514 (isalnum, isspace): cast arg to avoid warning.
515 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
516
517Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
518
519 * d10v-tdep.c: #include "language.h".
520
521Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
522
523 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
524 * configure, acconfig.in: Re-generate.
525
526 * remote-rdp.c: #include <time.h>
527
528 * config/arm/tm-arm.h (arm_float_info): Add declaration.
529
530 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
531 double ptr arg to void ptr arg.
532
533 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
534 declaration.
535 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
536 (convert_from_extended, convert_to_extended): Add declaration.
537
538Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
539
540 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
541 * configure: Re-generate.
542
543 * Makefile.in (INTERNAL_CFLAGS): Re-define using
544 INTERNAL_WARN_CFLAGS.
545 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
546 (tracepoint.o): Add explicit rule.
547 (WERR_CFLAGS): Add definition.
548
549Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
550
551 * utils.c: #include "event-loop.h" for declaration of
552 async_request_quit.
553 * Makefile.in (utils.o): Add dependency on event-loop.h.
554
555 * event-top.c (mark_async_signal_handler_wrapper,
556 async_request_quit): Move declaration from here.
557 * event-loop.h: To here.
558
559 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
560
561 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
562 hence expose declaration of function dont_repeat.
563
564 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
565 event-top.c (ISATTY): Move definitions from here.
566 * defs.h (ISATTY): To here. #include <unistd.h>.
567
568 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
569 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
570 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
571 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
572 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
573 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
574
575Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
576
577 * defs.h (struct tui_stream, enum streamtype): Move from here.
578 * utils.c: To here.
579
580 * main.c (tui_file_fputs): Move from here.
581 * utils.c: To here.
582
583Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
584
585 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
586
5871999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
588
589 * solib.c (open_symbol_file_object): new function.
590 Called when attaching to a new process, if there is no loaded
591 symbol file. Attempts to locate the executable file for the
592 attached process and load symbols from it.
593 (solib_add): Call open_symbol_file_object if attaching to a
594 new process and no open symbol file.
595
5961999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
597
598 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
599 removed--no longer checked anywhere in gdb.
600
6011999-08-27 Stan Shebs <shebs@andros.cygnus.com>
602
603 * infrun.c (stop_stepping): New function, broken out from
604 stop_stepping label in handle_inferior_event.
605 (handle_inferior_event): Change gotos into function calls.
606
607Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
608
609 * defs.h (LONGEST): Move definition to earlier in file - to just
610 after BFD.
611 (paddr_u, paddr_d): Declare.
612 * utils.c (decimal2str): New function.
613 (paddr_u, paddr_d): Define.
614
615 * remote.c (remote_cisco_section_offsets,
616 compare_sections_command): Fix XprintfX arguments. Use paddr...
617 (putpkt_binary): Fix XprintfX arguments.
618
619Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
620
621 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
622 by gcc -Wparentheses.
623
6241999-08-26 Stan Shebs <shebs@andros.cygnus.com>
625
626 * infrun.c (check_sigtramp2): New function, broken out from
627 check_sigtramp2 label in handle_inferior_event.
628 (handle_inferior_event): Change gotos into function calls.
629
630 Declare Tahoe configuration obsolete.
631 * configure.host, configure.tgt: Comment out Tahoe configs.
632 * Makefile.in: Comment out Tahoe-related action.
633 * tahoe-tdep.c, config/tahoe/*: Comment out.
634 * NEWS: Mention obsolete status.
635
6361999-08-26 J.T. Conklin <jtc@redback.com>
637
638 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
639 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
640 the packet start character is received in the 'middle' of a
641 packet, assume that packet end character has been lost and
642 start a new packet.
643
644 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
645 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
646 to first character of input buffer. Removed & 0x7f masks.
647 (handle_exception): Don't access remcomInBuffer directly.
648
6491999-08-25 Stan Shebs <shebs@andros.cygnus.com>
650
651 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
652 enabled breakpoints.
653
654Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
655
656 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
657 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
658 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
659 struct declarations.
660
661 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
662 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
663 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
664 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
665 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
666 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
667 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
668 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
669 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
670 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
671 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
672 config/a29k/tm-a29k.h: Ditto.
673
674Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
675
676 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
677
678 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
679 (TDEPFILES): From here.
680
6811999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
682
683 * top.c (init_main): Add new set/show command exec-done-display,
684 default value is off.
685 * event-loop.h: Export exec_done_display_p.
686 * event-top.c: New variable exec_done_display_p.
687 * infrun.c (complete_execution): Print completion message if
688 corresponding flag is set.
689
690 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
691
692 From: J.T. Conklin <jtc@redback.com>
693 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
694 (init_main): Always use DEFAULT_PROMPT.
695
696Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
697
698 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
699 (hppa_use_struct_convention): Update for PA64.
700 (hppa_frame_saved_pc): Properly extract the saved PC in a call
701 dummy frame.
702 (in_solib_call_trampoline): Return nonzero if we are in a function
703 called ".stub".
704 (prologue_inst_adjust_sp): Handle std,ma.
705 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
706 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
707 %r3 into the stack.
708
709 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
710 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
711
712Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
713
714 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
715 lost when libgdb.a was added.
716
717Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
718
719 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
720
721 * gdbarch.sh: New file.
722 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
723
724Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
725
726 * Makefile.in (libgdb.a): New target.
727 (gdb$(EXEEXT)): Add dependency on libgdb.a.
728 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
729
53a5351d
JM
730Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
731
104c1213
JM
732 * infttrate.c (child_pid_to_exec_file): Find the correct base
733 of the stack for PA64.
734
53a5351d
JM
735 * pa64solib.c: Fix some minor whitespace problems.
736 (bfd_lookup_symbol): New function.
737 (pa64_solib_create_inferior_hook): Find the address __dld_break
738 in the dynamic linker. Try to set a shlib event breakpoint in
739 that function.
740 (add_to_solist): Do not add the same shared library to the shlib
741 list more than once.
742
743Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
744
745 * value.h (enum lval_type): Move declaration from here.
746 * defs.h (enum lval_type): To here.
747 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
748 lval_type''.
749
7501999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
751
752 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
753 that refer to registers or register variables.
754
755Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
756
757 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
758
759 * pa64solib.c pa64solib.h: New files.
760
761 * config/pa/hppa64.mt: Delete commented out code that is and
762 never will be appropriate for this target.
763 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
764 remove pa64solib.o.
765 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
766
767 * configure.host; Use "hpux11w" and "hpux11" instead of
768 "hpux1100w" and "hpux1100" respectively
769 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
770 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
771 * config/pa/hpux11.mt: Likewise.
772
7731999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
774
775 * breakpoint.h (target_hw_bp_type): new enum.
776 * breakpoint.c (insert_breakpoints): use enum instead of consts.
777 (remove_breakpoint): use enum instead of consts.
104c1213 778 (throughout): use "warning" instead of "fprintf(stderr, ..."
53a5351d
JM
779 [Also clean up a bunch of excessively long lines.]
780
7811999-08-19 J.T. Conklin <jtc@redback.com>
782
783 * i386-stub.c (waitabit): Removed.
784 (breakpoint): Update.
785
786 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
787 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
788
789 * m68k-stub.c (putpacket): Restore code so that packets are sent
790 until an ACK is received.
791
7921999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
793
794 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
795 anywhere inside the region occupied by a watched variable as a
796 sign that the watchpoint fired. Don't stop if some watchpoint
797 was triggered, but its address doesn't match the address of this
798 watchpoint.
799 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
800 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
801 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
802 if it returns zero, return zero immediately.
803 (insert_breakpoints): Try to insert watchpoints for all the values
804 on the value chain, even if some of them fail to insert. Remove
805 the breakpoint if parts of its value chain couldn't be inserted.
806
8071999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
808
809 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
810
8111999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
812
813 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
814
8151999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
816
817 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
818 next instruction is INT nn or INTO, use a temporary breakpoint to
819 simulate single-step mode, and reset the trace flag.
820
8211999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
822
823 * go32-nat.c (wp_op): New typedef.
824 (SHOW_DR): Print the length of watched region as well.
825 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
826 callers and the prototype changed.
827 (go32_handle_nonaligned_watchpoint): Renamed from
828 go32_insert_nonaligned_watchpoint. Now handles all operations on
829 non-aligned watchpoints: insertion, deletion, and counting. If
830 called with wp_count as the first argument, return the count of
831 debug registers needed to watch the region. Don't break out of
832 the loop before all the addresses in the region are processed.
833 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
834 do the actual work.
835 (go32_remove_aligned_watchpoint): New function, modeled after
836 go32_insert_aligned_watchpoint. Removes watchpoints that watch
837 regions of arbitrary length by calling
838 go32_handle_nonaligned_watchpoint as needed.
839 (go32_region_ok_for_watchpoint): New function, called from
840 can_use_hardware_watchpoint via the new macro
841 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
842
843 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
844 Define to call go32_region_ok_for_watchpoint.
845 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
846 to 1 was due to a bug in go32-nat.c).
847
8481999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
849
850 * go32-nat.c (cleanup_dregs): New function.
851 (go32_mourn_inferior): Call it.
852 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
853 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
854 parentheses.
855 (SET_BREAK): Increment the debug register's reference count.
856 (DR_DEF): New macro, returns the access and length bits of the
857 breakpoint.
858 (SHOW_DR): Print the reference count of each register. Disable or
859 enable print-out depending on an environment variable GDB_SHOW_DR.
860 (go32_insert_aligned_watchpoint): Look for an occupied debug
861 register with the same address and access/length bits, and reuse
862 it by incrementing reference the count, before occupying another
863 register. Return zero upon success.
864 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
865 go32_remove_watchpoint.
866 (go32_remove_watchpoint): Accept an additional parameter: the
867 read/write bits of the watchpoint to remove, and only remove a
868 watchpoint if it's occupied and its address and read/write bits
869 match. Only disable the register if its reference count is zero;
870 otherwise just decrease the reference count.
871 (go32_remove_hw_breakpoint): Only decrease reference count and
872 disable the debug register if it is occupied and its access bits
873 match those of an instruction breakpoint.
874 (go32_insert_hw_breakpoint): Before occupying another debug
875 register, look for an already occupied register that defines an
876 instruction breakpoint with the same address. If found, increment
877 its reference count. Call SHOW_DR even if failed to insert a
878 breakpoint.
879
880 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
881 TYPE argument as well.
882
883Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
884
885 * mips-tdep.c: Add more comments.
886
8871999-08-17 Stan Shebs <shebs@andros.cygnus.com>
888
889 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
890 about frameless functions.
891
8921999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
893
894 * thread.c (delete_thread): delete any step_resume breakpoint
895 held by the thread. (prune_threads): call delete_thread.
896 * breakpoint.c (breakpoint_init_inferior): if startup, then
897 delete any remaining step_resume breakpoints.
898 * infrun.c (handle_inferior_event): add cautionary comment.
899
9001999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
901
902 * remote.c (remote_async_mourn): New function. Async version of
903 remote_mourn().
904
9051999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
906
907 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
908 termios.
909
9101999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
911
912 * command.c (CANT_FORK) [__MSDOS__]: Define.
913 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
914 to `system'.
915 [__DJGPP__]: Return to the original directory after the shell
916 exits.
917
9181999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
919
920 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
921 is a null character.
922
923 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
924
9251999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
926
927 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
928 redir_to_child, redir_to_debugger, redir_debug_init)
929 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
930 standard handles.
931 (print_387_status): Print "last FP instruction", not "last
932 exception". Restore the upper 5 bits of the opcode that aren't
933 stored in the FPU state. Print the FPU stack in its physical
934 order, not relative to ST(0). Print "special", not "trap" for
935 unnormals and infinities. Print all 10 bytes of each FP register,
936 and print them with 19 significant digits.
937 (regno_mapping): Make the mapping consistent with tm-go32.h.
938 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
939 SIGBUS.
940 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
941 (go32_attach): Signal an error: we cannot attach to other
942 processes.
943 (go32_resume): Record the signal with which the inferior should be
944 resumed, mapped to the DJGPP exception number.
945 (go32_wait): Pass the signal recorded in go32_resume to the
946 debuggee. Save and restore debugger's and debuggee's current
947 working directory.
948 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
949 (store_register): FPU regsiters have numbers less than 31.
950 (go32_kill_inferior): Delete the parsed command-line storage.
951 (go32_create_inferior): Initialize the parsed command-line
952 storage. Parse the command line and create the redirections for
953 inferior's standard handles.
954 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
955 (ignore2): Function deleted.
956 (device_mode): New function, switches a character device between
957 raw and cooked mode.
958 (go32_terminal_init): Invalidate the raw/cooked mode information.
959 (go32_terminal_info): Print whether the inferior's terminal is in
960 raw or cooked mode.
961 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
962 closed by the inferior.
963 (go32_terminal_inferior): Switch standard handles to the
964 inferior's files/devices. Put the inferior's input device to
965 raw/cooked mode, exactly like we found it last time.
966 (go32_terminal_ours): Restore debugger's standard handles and put
967 the terminal into cooked mode. Save the mode of inferior's input
968 device.
969 (init_go32_ops): Assign go32_ops.to_attach,
970 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
971 Initialize inferior's cwd and the command-line storage.
972
973Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
974
975 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
976 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
977 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
978 both directions depending ARGS_GROW_DOWNWARD.
979 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
980 and PA64 ABI.
981
982 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
983 registers and pointers.
984 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
985 (restore_pc_queue): Update tests for width of memory loads.
986 (hppa_push_arguments): Delete version that was #if 0'd out.
987
988 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
989 (find_dummy_frame_regs): Corresponding changes.
990
991 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
992 (internalize_unwinds): Improve test for when to use segment
993 relative code for unwinder bounds.
994 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
995 (hppa_frame_saved_pc): Various updates to handle 64bit registers
996 and pointers.
997 (frame_chain, restore_pc_queue): Likewise.
998
999 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
1000 pointers are 64bits wide.
1001
1002 * hppa-tdep.c (record_text_segment_lowaddr): New function.
1003 (internalize_unwinds): Use it if addressess are 8 bytes wide.
1004
1005 * symfile.c (syms_from_objfile): No longer warn if the lowest
1006 section does not have SEC_CODE set.
1007
1008 * Makefile.in (pa64solib.o): Add dependencies.
1009
1010 * hppah-nat.c (store_inferior_registers): Do not try to write a
1011 nonzero value to the high part of IPSW. Fix typo in unable to store
1012 warning.
1013
1014 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
1015 needed.
1016 (struct obj_private_struct): Add new entry for the objfile's DP
1017 value.
1018 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
1019 number of instructions. Pack the dummy into word sized hunks.
1020 (CALL_DUMMY_LENGTH): Update appropriately.
1021 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
1022
7be570e7
JM
1023Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1024
1025 * configure.in: Try -lsocket when looking for socketpair.
1026 * configure, config.h: Re-generate.
1027
10281999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1029
1030 From Christopher Faylor <cgf@cygnus.com>:
1031
1032 * event-loop.c (gdb_wait_for_event): Before going to wait for
1033 another event with select or poll, flush the error and the output
1034 streams.
1035
1036 * event-top.c (gdb_readline2): Do not buffer the input, because
1037 doing so can interfere with select/poll in bad ways.
1038
1039Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
1040
1041 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
1042 with SIGABRT.
1043 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
1044 gonna happen.
1045 (notice_quit): No need to define this function for the DJGPP port.
1046
10471999-08-13 James Ingham <jingham@leda.cygnus.com>
1048
1049 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
1050 macro no longer modifies its argument. Update uses to accord.
1051
1052 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
1053 TDEPFILES.
1054 * configure.tgt: Add rdi-share to configdir for the Arm targets.
1055
1056Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
1057
1058 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
1059 aware.
1060
1061 * infttrace.c (ttrace_write_reg_64): New function.
1062
1063 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
1064 * somread.c (is_in_import_list): Delete function.
1065 * objfiles.c (is_in_import_list): New function.
1066 * objfiles.h (is_in_import_list): Declare.
1067
1068 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
1069 including tm-hppah.h.
1070 (PC_IN_CALL_DUMMY): Define.
1071 (HPUX_1100): Similarly.
1072 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
1073 includes on GDB_TARGET_IS_HPPA20W.
1074
1075 * configure.host: Distinguish between wide and narrow modes
1076 for hpux11.
1077 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
1078
1079 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
1080 (REG_PARM_STACK_SPACE): Likewise.
1081
1082 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
1083 PA target correctly.
1084 (REG_PARM_STACK_SPACE): Define.
1085 (struct unwind_table_entry): region_start and region_end are
1086 CORE_ADDRs.
1087 (typedef opd_data): New.
1088 (obj_private_data_t): Include pointer to opd_data structure.
1089
10901999-08-13 Keith Seitz <keiths@cygnus.com>
1091
1092 * stabsread.c (stabsread_clear_cache): New funciton which clears
1093 an optimization cache of the reader.
1094
1095 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
1096 clean up.
1097
1098 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
1099 from a DLL if an objfile for it already exists. (Not that this should
1100 happen anymore anyway...)
1101
11021999-08-13 Keith Seitz <keiths@cygnus.com>
1103
1104 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
1105 which also requires that the stack pointer be saved for call
1106 dummies BEFORE arguments get pushed onto it.
1107
11081999-08-12 Stan Shebs <shebs@andros.cygnus.com>
1109
1110 From Eli Zaretskii <eliz@is.elta.co.il>:
1111 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
1112 slash from "d:/". Don't overstep the beginning of name.
1113 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
1114 a slash changes its meaning.
1115 (openp): Use SLASH_P, not equality with SLASH_CHAR.
1116 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
1117 a \n.
1118 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
1119 of all lines.
1120 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
1121
1122 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
1123 unless HAVE_BTOWC is defined.
1124
1125Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1126
1127 From J.T. Conklin <jtc@redback.com>:
1128 * gdbinit.in: Change the template .gdbinit to match the recent
1129 fatal error handling change.
1130
11311999-08-11 Keith Seitz <keiths@cygnus.com>
1132
1133 * maint.c (maintenance_internal_error): Fix typo in prototype.
1134
1135Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
1136
1137 * remote.c (remote_rcmd): Pass an empty command across to the
1138 target. Check for and handle an ``Enn'' return status.
1139
1140Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1141
1142 * maint.c (_initialize_maint_cmds): Add ``maintenance
1143 internal-error'' command.
1144 (maintenance_internal_error): New function.
1145
11461999-08-10 James Ingham <jingham@leda.cygnus.com>
1147
1148 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
1149 instead.
1150 * defs.h: Ditto.
1151 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
1152
11531999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
1154
1155 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
1156 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
1157
11581999-08-10 J.T. Conklin <jtc@redback.com>
1159
1160 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
1161 i[3456]86-*-elf*): Use embed.mt.
1162 * config/i386/embed.mt: New file.
1163
11641999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1165
1166 * remote.c (remote_async_open_1): Remove casting in call to
1167 add_file_handler.
1168 (extended_remote_async_create_inferior): Ditto.
1169
1170 * event-top.c (change_line_handler): Ditto.
1171 (_initialize_event_loop): Ditto.
1172
1173 * infrun.c (complete_execution): Ditto.
1174
1175 * event-loop.c (add_file_handler): Change proc parameter to be ptr
1176 to func with void parameter, rather than void*. Coerce second
1177 paramter in calls to create_file_handler. Replace
1178 async_handler_func and file_handler_func with handler_func.
1179
1180 * event-loop.h: Get rid of typedefs for file_handler_func and
1181 async_handler_func, just have one, and call it handler_func.
1182 Replace async_handler_func and file_handler_func occurrences with
1183 handler_func.
1184
1185Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
1186
1187 * hppa-tdep.c: Delete random #if 0 code.
1188 (is_branch): Handle new branching opcodes from PA2.0
1189 (inst_saves_gr, inst_saves_fr): Handle additional instructions
1190 used to save general and floating point registers in the stack.
1191 (skip_prologue_hard_way): Handle additional instructions to
1192 save the return pointer in the stack.
1193 (after_prologue): Fix mis-guided and incorrect code to find
1194 the end of the prologue using debug symbols.
1195 (hppa_skip_prologue): Generally clean up comments, lose code
1196 which does not apply to the PA, etc.
1197
1198Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
1199
1200 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
1201 Transfer responsibility for the PowerPC from Andrew Cagney to
1202 Elena Zannoni.
1203
1204Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1205
1206 Based on code from J.T. Conklin <jtc@redback.com>:
1207 * utils.c (internal_error): Make quit? and coredump? separate
1208 questions so that the user can dump-core and not quit.
1209 (internal_error): Cleanup error message.
1210
12111999-08-09 Tom Tromey <tromey@cygnus.com>
1212
1213 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
1214
96baa820
JM
1215Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
1216
1217 * coffread.c (process_coff_symbol): Remove section_offsets from
1218 prototype and function definition. Get section_offsets from the
1219 passed objfile and pass it on to callees the same way.
1220 (coff_symtab_read): Ditto.
1221 (coff_symfile_read): Ditto.
1222 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1223 (read_dbx_symtab): Ditto.
1224 (dbx_symfile_read): Ditto.
1225 (coffstab_build_psymtabs): Ditto.
1226 (elfstab_build_psymtabs): Ditto.
1227 (stabsect_build_psymtabs): Ditto.
1228 * dstread.c (dst_symfile_read): Ditto.
1229 * elfread.c (elf_symfile_read): Ditto.
1230 * jv-class.c (jv_class_symfile_read): Ditto.
1231 * mipsread.c (mipscoff_symfile_read): Ditto.
1232 * nlmread.c (nlm_symfile_read): Ditto.
1233 * os9kread.c (os9k_symfile_read): Ditto.
1234 * somread.c (som_symfile_read): Ditto.
1235 * stabsread.h (elfstab_build_psymtabs): Ditto.
1236 * xcoffread.c (xcoff_initial_scan): Ditto.
1237
1238 * symfile.h (sym_read): Remove section_offsets from prototype.
1239 * symfile.c (syms_from_objfile): Call sym_read without
1240 section_offsets.
1241 (reread_symbols): Ditto.
1242
1243 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
1244 to allocate sections offsets array.
1245 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1246
1247 * partial-stab.h (section_offsets): Get from objfile.
1248 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
1249 to a CORE_ADDR look like an subtraction expression.
1250 * objfiles.h: Add some comments.
1251 * symfile.c: Add some comments.
1252 * objfiles.c: Add some comments.
1253 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
1254 sections.
1255 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
1256 sections in all objfiles.
1257 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
1258
1259 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
1260 address of lowest_sect with '&' look like a bitwise and op.
1261 * osfsolib.c (symbol_add_stub): Ditto.
1262 * solib.c (symbol_add_stub): Ditto.
1263 * symfile.c (syms_from_objfile): Ditto.
1264
1265 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
1266 * symfile.c (syms_from_objfile): Ditto, and fix typo.
1267 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
1268 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
1269
12701999-08-08 James Ingham <jingham@leda.cygnus.com>
1271
1272 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
104c1213
JM
1273 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
1274 since this is not set for all targets that support the Z packet.
96baa820
JM
1275
1276Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1277
1278 * defs.h (fatal): Delete declaration.
1279 (internal_error): Declare.
1280 * utils.c (nomem): Call internal_error instead of fatal.
1281 (fatal_dump_core): Delete.
1282 (malloc_botch): Print message direct to stderr.
1283 (fatal): Delete definition.
1284 * utils.c (internal_error): Define.
1285
1286 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
1287 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
1288 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
1289 findvar.c, remote.c: Replace fatal with call to internal_error.
1290
1291Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1292
1293 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
1294 definition from here.
1295 * defs.h: To here.
1296
1297Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
1298
1299 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
1300
1301Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1302
1303 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
1304
1305Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1306
1307 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
1308 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
1309 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
1310 debuglogs), complaints.c (complain), monitor.c:
1311 (monitor_printf_noecho, monitor_printf), language.c (type_error,
1312 range_error), remote-st.c: (printf_stdebug), remote-sim.c
1313 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1314 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
1315 utils.c (warning, error, fatal, fatal_dump_core, (query,
1316 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
1317 printf_filtered, printf_unfiltered, printfi_filtered): Delete
1318 legacy #ifndef ANSI_PROTOTYPES varargs code.
1319
1320 * defs.h: Don't #include <varargs.h>.
1321 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
1322 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
1323
13241999-08-06 James Ingham <jingham@leda.cygnus.com>
1325
1326 * configure.in, configure: add the --enable-multi-ice to determine
1327 whether to configure and build the multi-ice-gdb-server. Note,
1328 for now this only builds on cygwin, so don't enable it for other
1329 platforms...
1330
13311999-08-06 Tom Tromey <tromey@cygnus.com>
1332
1333 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
1334 (COMMON_OBS): Added kod.o and kod-cisco.o.
1335 (kod-cisco.o): New target.
1336 (kod.o): New target.
1337 * kod-cisco.c: New file.
1338 * kod.c: New file.
1339
13401999-08-06 James Ingham <jingham@leda.cygnus.com>
1341
1342 These are some fixups for the Arm, and support for the
1343 disassembly-flavor for the ARM.
1344
1345 * defs.h: Declare the disassembly_flavor_hook
1346 * top.c: Define the disassembly_flavor_hook
1347 * i386-tdep.c: Remove unnecessary declaration of the
1348 disassembly_flavor_hook.
1349
1350 * config/arm/tm-arm.h: Change definition of
1351 arm_init_extra_frame_info.
1352 Add a few more comments.
1353 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
1354 fromleaf parameter passed into init_extra_frame_info.
1355 (set_disassembly_flavor_sfunc): New Function.
1356 (set_disassembly_flavor): New Function.
1357 (arm_othernames): Use the set_disassembly_flavor.
1358 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
1359 initialize the flavor.
104c1213 1360 (arm_frameless_function_invocation): Adjust for
96baa820
JM
1361 frameless functions that have 1 or 2 instructions that mimic the
1362 standard APCS form.
1363 (arm_scan_prologue): Be more careful about scanning the function
1364 prologue. Don't match things that just have a few of the prologue
1365 instructions out of order, and don't get thrown by the scheduler
1366 migrating instructions into the prologue.
1367
1368 Add support for the "Z" and "z" packets to request the stub
1369 to set a breakpoint.
1370
1371 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
1372 (show_remote_protocol_Z_packet_cmd): New Function.
1373 (remote_open_1): Init the Z packet config.
1374 (remote_async_open_1): Init the Z packet config.
1375 (remote_insert_breakpoint): Use the "Z" packet if supported.
1376 (remote_remove_breakpoint): Use the "z" packet if supported.
1377 (remote_insert_watchpoint): New Function - currently wired to
1378 nothing.
1379 (remote_remove_watchpoint): Ditto.
1380 (remote_insert_hw_breakpoint): Ditto.
1381 (remote_remove_hw_breakpoint): Ditto.
1382
13831999-08-06 Stan Shebs <shebs@andros.cygnus.com>
1384
1385 * infcmd.c: Include parser-defs.h.
1386 (interrupt_target_command): Declare.
1387 (stack_dummy_testing): Remove old funky flag.
1388 (run_stack_dummy): Remove unused reference to old funky flag.
1389
13901999-08-06 Tom Tromey <tromey@cygnus.com>
1391
1392 * command.c (do_setshow_command): Call set_hook if not NULL.
1393 * top.c (set_hook): New hook definition.
1394 * defs.h (set_hook): Declare.
1395
13961999-08-05 Stan Shebs <shebs@andros.cygnus.com>
1397
1398 * infrun.c: Convert code to pure standard C, elim some warnings.
1399 (stopped_for_shlib_catchpoint): Remove, never used.
1400
14011999-08-05 Keith Seitz <keiths@cygnus.com>
1402
1403 * NEWS: Mention new Motorola MCore target.
1404
1405 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
1406 architecture.
1407
1408Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1409
1410 * configure.in (configdirs): Add check for socketpair.
1411 * configure, config.in: Re-generate.
1412
1413 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
1414 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
1415 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
1416
1417Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1418
1419 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
1420 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
1421 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
1422 debug_to_store_registers, debug_to_prepare_to_store,
1423 debug_to_xfer_memory, debug_to_files_info,
1424 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
1425 debug_to_terminal_init, debug_to_terminal_inferior,
1426 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
1427 debug_to_terminal_info, debug_to_kill, debug_to_load,
1428 debug_to_lookup_symbol, debug_to_create_inferior,
1429 debug_to_post_startup_inferior,
1430 debug_to_acknowledge_created_inferior,
1431 debug_to_clone_and_follow_inferior,
1432 debug_to_post_follow_inferior_by_clone,
1433 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
1434 debug_to_insert_vfork_catchpoint,
1435 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
1436 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
1437 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
1438 debug_to_remove_exec_catchpoint, debug_to_has_execd,
1439 debug_to_reported_exec_events_per_exec_call,
1440 debug_to_has_syscall_event, debug_to_has_exited,
1441 debug_to_mourn_inferior, debug_to_can_run,
1442 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
1443 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
1444 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
1445 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
1446 to ``gdb_stdlog'' instead of ``gdb_stderr''.
1447
1448Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1449
1450 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
1451 (init_remote_async_ops): Initialize remote_async_ops.to_query.
1452 (remote_rcmd): New function.
1453
1454 * monitor.c (monitor_rcmd): Rename monitor_command.
1455 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
1456 (_initialize_remote_monitors): Move "monitor" command from here.
1457 * target.c (initialize_targets): To here.
1458 (monitor_command): New function. Implement "monitor" command.
1459
1460 * target.c (cleanup_target): de_fault to_rcmd.
1461 (update_current_target): INHERIT to_rcmd.
1462 (debug_to_rcmd): New function.
1463 (setup_target_debug): Initialize current_target.to_rcmd.
1464
1465 * target.h (struct target_ops): Add field to_rcmd.
1466 (target_rcmd): Define.
1467
1468Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1469
1470 * remote.c: Replace comment describing remote protocol with
1471 pointer to official document.
1472
1473Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1474
1475 * remote.c (remote_protocol_binary_download): New variable.
1476 Replace ``remote_binary_download'' and ``remote_binary_checked''.
1477 (set_remote_protocol_binary_download_cmd,
1478 show_remote_protocol_binary_download_cmd): New functions.
1479 (remote_open_1, remote_async_open_1, remote_cisco_open):
1480 Initialize ``remote_protocol_binary_download'' instead of
1481 ``remote_binary_download''.
1482 (check_binary_download): Re-write.
1483 (remote_write_bytes): Ditto.
1484 (_initialize_remote): Add ``set remote X-packet'' and ``show
1485 remote X-packet'' commands. Disable old ``set
1486 remotebinarydownload'' command.
1487
14881999-08-04 Keith Seitz <keiths@cygnus.com>
1489
1490 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
1491
1492Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
1493
1494 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
1495 an array of 5 internal_auxent to leave room for bfd to
1496 write n_numaux entries. Change code to use the first one.
1497
14981999-08-02 Stan Shebs <shebs@andros.cygnus.com>
1499
1500 * c-valprint.c (c_val_print): When printing decimal equivalent
1501 of a char, cast appropriately.
1502
15031999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1504
1505 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
1506 * main.c (print_gdb_help): Use gdbinit variable to determine file
1507 name used for --nx help
1508
a0b3c4fd
JM
15091999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
1510
1511 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
1512
15131999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
1514
1515 * stabsread.c (read_range_type): Handle an unsigned range type
1516 whose length in bytes is any power of two, not just a few
1517 common ones.
1518
1519 * monitor.c (monitor_expect): When we receive a character that
1520 isn't part of the string we were expecting, don't just start
1521 matching again at the beginning of the string --- some shorter
1522 suffix of the input might be a prefix of the string too.
1523
15241999-07-31 Fred Fish <fnf@cygnus.com>
1525
1526 * symfile.c (symbol_file_command): Fix typo that made -1 casted
1527 to a CORE_ADDR look like an subtraction expression.
1528 (add_symbol_file_command): Ditto.
1529
15301999-07-30 Jim Blandy <jimb@cris.red-bean.com>
1531
1532 * hppa-tdep.c (pa_print_registers): Frob register output some more.
1533
15341999-07-29 Jim Blandy <jimb@cris.red-bean.com>
1535
1536 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
1537 consideration, make this a CORE_ADDR, like WDB did.
1538
1539 Rather than casting every single use of really_free_pendings to
1540 make_cleanup_func, why not actually make it have that type? Golly!
1541 * buildsym.c (really_free_pendings): Change argument type to PTR.
1542 buildsym.h (really_free_pendings): Fix declaration.
1543 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
1544 dwarf2read.c (psymtab_to_symtab_1), dwarfread
1545 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
1546 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
1547 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
1548 Remove casts.
1549
1550 Pass a CORE_ADDR safely through catch_errors.
1551 * hppa-tdep.c (args_for_find_stub): New member, return_val.
1552 (cover_find_stub_with_shl_get): Change argument and return type to
1553 match catch_errors. Save return value of find_stub_with_shl_get
1554 in *args.
1555 (initialize_hp_cxx_exception_support): Collect value of
1556 eh_notify_callback_addr from args.
1557
1558 Get rid of some noise. It would be nice to get helpful warnings
1559 from the compiler about lossy conversions.
1560 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
1561 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
1562 break_callback_sal): Initialize these to zero, not NULL, to shush
1563 warnings.
1564 * infttrace.c (thread_fake_step): Compare signal to
1565 TARGET_SIGNAL_0, not NULL, to avoid warnings.
1566 (_initialize_infttrace): Add sanity check.
1567
1568 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
1569 long, so we can pass arguments properly to ptrace.
1570
1571 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
1572 address to an int boundary.
1573
15741999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
1575
1576 Change from Ian Lance Taylor <ian@zembu.com>. The
1577 i386_linux_sigtramp* functions should be moved to
1578 i386-linux-tdep.c, when that file is introduced.
1579
1580 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
1581 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
1582 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
1583 (SIGCONTEXT_PC_OFFSET): Don't define.
1584 (I386_LINUX_SIGTRAMP): Define.
1585 (IN_SIGTRAMP): Define.
1586 (i386_linux_sigtramp): Declare.
1587 (sigtramp_saved_pc): Define.
1588 (i386_linux_sigtramp_saved_pc): Declare.
1589 (FRAMELESS_SIGNAL): Define.
1590 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
1591 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
1592 I386_LINUX_SIGTRAMP.
1593 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
1594 (i386_linux_sigtramp_saved_pc): Likewise.
1595 (i386_linux_sigtramp_saved_sp): Likewise.
1596
15971999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1598
1599 * infrun.c (handle_inferior_event): Don't try to use the code for
1600 stepping over a function call to also handle stepping out of a
1601 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
1602 This change reverts some of David Taylor's change of 31 Dec 1998.
1603 The HP-UX maintainer needs to submit a new change for whatever
1604 problem the original change was trying to fix.
1605
16061999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1607
1608 * event-top.c (command_line_handler): Don't treat an empty line
1609 from readline the same way as a multiline command. This avoids
1610 missing detecting when the user presses just 'enter'.
1611
16121999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1613
1614 Provide more sanity checking:
1615 * infrun.c (handle_inferior_event): Before assigning a new
1616 breakpoint to step_resume_breakpoint, make sure it's not already
1617 pointing at one; if it is, that's a bug.
1618 (check_for_old_step_resume_breakpoint): New function.
1619
16201999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1621
104c1213 1622 From Eli Zaretskii <eliz@is.elta.co.il>:
a0b3c4fd
JM
1623 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
1624 original directory before exiting.
1625 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
1626 name explicitly. Handle "d:/" names correctly.
1627 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
1628 history file name.
1629
5a2468f5
JM
1630Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1631
1632 * remote.c (enum packet_support, enum packet_detect, struct
1633 packet_config): Define.
1634 (set_packet_config_cmd, show_packet_config_cmd,
1635 add_packet_config_cmd, init_packet_config): New functions.
1636 Generic support for optional packets.
1637 (remote_protocol_P): Replace stub_supports_P.
1638 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
1639 New functions.
1640 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
1641 (remote_open_1, remote_async_open_1, remote_cisco_open):
1642 Initialize ``remote_protocol_P''.
1643 (remote_store_registers): Re-write ``P'' probe logic.
1644 (store_register_using_P): New function.
1645
1646 From Ian Lance Taylor <ian@airs.com>:
1647 (remote_prepare_to_store): Only read registers when ``P'' packet
1648 is in state unsupported or support-unknown.
1649
16501999-07-24 Fred Fish <fnf@cygnus.com>
1651
104c1213
JM
1652 * symfile.c (default_symfile_offsets): Clear section_offsets
1653 before filling it in.
5a2468f5 1654
adf40b2e
JM
16551999-07-16 Keith Seitz <keiths@cygnus.com>
1656
1657 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
1658
16591999-07-15 Jim Blandy <jimb@cris.red-bean.com>
1660
1661 Make the output from "info registers" fit withinin 80 columns.
a0b3c4fd
JM
1662 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
1663 column counts. Switch to three columns, instead of four, and
1664 adjust spacing.
adf40b2e
JM
1665
1666 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
1667 * configure.tgt: Add hppa2.0w target.
1668 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
1669 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
1670 call dummy, if target is PA2.0w. This is temporary, until I get
1671 function calls working.
1672 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
1673 and wide register requests.
1674 (HPPAH_OFFSETOF): New macro.
1675
1676 * gdbtypes.c (is_integral_type): New function.
1677 * gdbtypes.h: Prototype for above.
1678
16791999-07-15 J.T. Conklin <jtc@redback.com>
1680
1681 * configure.tgt (i[3456]86-*-vxworks*): New target.
1682 * config/i386/vxworks.mt: New file, x86 VxWorks target
1683 * config/i386/tm-vxworks.h: New file.
1684
1685 * configure.tgt (powerpc-*-vxworks*): New target.
1686 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
1687 * config/powerpc/tm-vxworks.h: New file.
1688
1689 * NEWS: Mention the new configs.
1690
16911999-07-15 Fernando Nasser <fnasser@cygnus.com>
1692
1693 * target.c (target_preopen): Prevent query when not from_tty.
1694 * infcmd.c (run_command): Prevent query when not from_tty.
1695
16961999-07-15 Fernando Nasser <fnasser@cygnus.com>
1697
1698 * event-loop.c: Fix typo in comment.
1699
1700Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1701
1702 * ser-pipe.c (struct pipe_state): Define.
1703 (pipe_close): Retain the PID of the sub-process using ``struct
1704 pipe_state''. Delete #ifdef code that used popen().
1705 (pipe_close): Kill of the sub-process as part of the cleanup.
1706
1707 * serial.h (struct _serial_t): Add field ``state''.
1708
17091999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1710
1711 * event-top.c (display_gdb_prompt): Don't display the prompt if we
1712 are in the middle of an execution command. Also trick readline so
1713 it doesn't try to display the prompt.
1714 (command_line_handler): Get rid of change_prompt, unused variable.
1715 Use {push, pop}_prompt mechanism in case of multiline commands.
1716
1717 * infrun.c (complete_execution): Set target_executing to 0 as
1718 first thing, so that display_gdb_prompt does the right thing.
1719
1720Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1721
1722 * parse.c (build_parse): Fix conditional increment of num_std_regs
1723 for SP_REGNUM. Was conditional on FP_REGNUM.
1724
1725Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1726
1727 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
1728 <shebs@andros.cygnus.com> indentation change. Don't let indent
1729 mess with these files.
1730
43e526b9
JM
1731Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1732
1733 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
1734 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
1735 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
1736 * mips-tdep.c (mips_register_convert_to_raw,
1737 mips_register_convert_to_virtual, ): New functions.
1738 (mips_register_raw_size, mips_register_convertible): New
1739 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
1740 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
1741 transfers SR as 64 bits yet GDB expected only 32 bits.
1742 (mips64_transfers_32bit_regs): New static variable.
1743 (_initialize_mips_tdep): Add obscure command ``set
1744 remote-mips64-transfers-32bit-regs'' that provides backward
1745 compatibility.
1746 (do_gp_register_row): Extract register values from raw buffer.
1747
1748 * NEWS: Document protocol change.
1749
adf40b2e
JM
17501999-07-12 Keith Seitz <keiths@cygnus.com>
1751
104c1213 1752 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
adf40b2e 1753 conditional. It's no longer needed.
104c1213
JM
1754 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
1755 "/dev/cuaX" (X=0,1,2,3,...).
adf40b2e 1756
43e526b9
JM
1757Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
1758
1759 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
1760 fputstrnn_unfiltered): New functions.
1761 (gdb_printchar): Delete.
1762
1763 * remote.c (print_packet): Replace gdb_printchar with
1764 fputstrn_filtered.
1765 (getpkt): Use fputstrn_unfiltered to dump packet received.
1766 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
1767
17681999-07-09 Keith Seitz <keiths@cygnus.com>
1769
1770 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
1771 we want the one whose end is greater than our PC, not greater or equal.
1772
17731999-07-08 Stan Shebs <shebs@andros.cygnus.com>
1774
1775 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
1776 useless inits.
1777 (sparclite_ops): Remove redundant decl.
1778
1779Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1780
1781 * ser-pipe.c (pipe_open): Bi-directional popen found on both
1782 NetBSD and OpenBSD.
1783 * ser-pipe.c: New file. Implement popen() style serial interface.
1784 * NEWS: Mention.
1785 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
1786 (ser-pipe.o): Add new target. Specify dependencies.
1787 (SER_HARDWIRE): Add ser-pipe.o.
1788 * serial.c (serial_open): Recognize a serial pipe ``|''.
1789
9846de1b
JM
17901999-07-07 Stan Shebs <shebs@andros.cygnus.com>
1791
c5aa993b
JM
1792 * All C files except *-stub.c and *-share/*: Indent to GNU
1793 standard, using indent 1.9.1.
1794 * defs.h: Make indent ignore this file, macros confuse it.
1795
9846de1b
JM
1796 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
1797
1798Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1799
1800 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
1801 gdb_file argument.
1802 (fputc_readable): Rename putc_readable, add struct gdb_file
1803 argument.
1804
1805 * remote-mips.c (mips_expect_timeout, mips_receive_header,
1806 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
1807 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
1808 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
1809 getmessage), remote-udi.c (udi_store_registers, fetch_register):
1810 (store_register), xmodem.c (readchar), utils.c (puts_debug),
1811 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
1812 messages to gdb_stdlog.
1813
18141999-07-06 Stan Shebs <shebs@andros.cygnus.com>
1815
1816 * exec.c: Remove long-#ifed-out section of code that confuses
1817 indent.
1818 * gdbtypes.c (add_mangled_type): Add some braces to indicate
1819 grouping better.
1820 * gnu-nat.c: Remove literal newlines embedded in strings,
1821 causes indent to weird out.
1822 * language.c (binop_result_type): Remove extra paren.
1823 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
1824 * nec4102rom.c (vr4102_insert_step): Fix typos.
1825 (_initialize_vr4102_rom): Remove literal newline in string.
1826 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
1827 * config/m68k/xm-3b1.h: Remove excess #endif.
1828
1829 Declare Pyramid configuration obsolete.
1830 * configure.host, configure.tgt: Comment out Pyramid configs.
1831 * Makefile.in: Comment out Pyramid-related actions.
1832 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
1833 * NEWS: Mention obsolete status.
1834
18351999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
1836
1837 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
1838 some old Linux distributions.
1839 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
1840 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
1841 It isn't necessary after all.
1842
18431999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1844
1845 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
1846
43ff13b4
JM
18471999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
1848
1849 * remote.c: Include <sys/select.h> if it exists in order to pick up
1850 FD_SET et al defns.
1851 * remote-os9k.c: Same.
1852 * remote-st.c: Same.
1853 * ser-tcp.c: Same.
1854 * ser-unix.c: Same.
1855 * sparcl-tdep.c: Same.
1856
1857Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1858
1859 * top.c (target_output_hook): Delete definition.
1860 * defs.h (target_output_hook): Delete declaration.
1861
1862 * remote.c (remote_console_output): Delete call to
1863 target_output_hook(). Send target output to gdb_stdtarg using an
1864 unfiltered write. Make more robust.
1865
1866 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
1867 Ditto. For moment, do not try to separate target stdout and stderr
1868 streams.
1869
1870 * defs.h (gdb_stdtarg): New global. Output from target and
1871 simulators.
1872
18731999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1874
1875 * top.c (return_to_top_level): Do all the exec_cleanups too.
1876
1877 * event-top.c (command_handler): Set up for a continuation, if we
1878 are in the middle of running an execution command which will
1879 finish later on. Do cleanups, an display of time/space only if not
1880 running with an async target or not running an execution command.
1881 (command_line_handler_continuation): New function. Continuation
1882 for command_line_handler.
1883
1884 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
1885 async mode for the execution commands.
1886 (make_exec_cleanup): New function. Add a cleanup to the
1887 exec_cleanup_chain.
1888 (do_exec_cleanups): New Function. Do cleanups on the
1889 exec_cleanup_chain.
1890 (add_continuation): New function. Add a new continuation to the
1891 cmd_continuation list.
1892 (do_all_continuations): New function. Do all the continuations on
1893 the cmd_continuation list.
1894
1895 * top.h (ALL_CLEANUPS): Move from here to defs.h.
1896
1897 * defs.h (struct continuation_arg): New structure. Arg to pass to
1898 the call to a command continuation.
1899 (struct continuation): New structure. Continuation for an
1900 execution command.
1901 (ALL_CLEANUPS): Move here from top.h.
1902
1903 * remote.c (remote_async_open_1): Set things up for telling the
1904 target we are running the extended protocol, only after the target
1905 has stopped.
1906 (set_extended_protocol): New function. Tell the target we are
1907 using the extended protocol.
1908 (remote_async_resume): Set things up for sync execution only if
1909 this is the first time we are called.
1910
1911 * breakpoint.c (until_break_command_continuation): New function.
1912 Stuff to be done after the target stops during the 'until'
1913 command.
1914 (until_break_command): Set things up for completing the 'until'
1915 command later on. Do the final cleanups only if not running
1916 asynchronously or async execution is not supported by the target.
1917
1918 * infcmd.c (until_command): Recognize '&' at end of command and
1919 handle it properly.
1920 (finish_command_continuation): New function. Do whatever is needed
1921 after the target has stopped.
1922 (finish_command): Recognize '&' at end of command and handle it
1923 properly. Don't do stuff needed after target has stopped if
1924 running asynchronously and target has async. Use exec_cleanup_chain
1925 if running asynchronously and target is asynchronous.
1926
1927 * infrun.c (cmd_continuation): New gloabl variable. Used to
1928 coplete execution commands in async mode, after the target has
1929 stoped.
1930 (fetch_inferior_event): Use exec_cleanup_chain, instead of
1931 cleanup_chain. Do all the exec cleanups at the end. Do all the
1932 continuations at the end. Call complete_execution from here,
1933 instead of normal_stop.
1934 (complete_execution): Cleanup the signals handlers for SIGINT
1935 before displaying the prompt.
1936 (start_remote): Set target_executing to 1.
1937 (normal_stop): Don't call complete_execution from here.
1938
1939Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
1940
1941 * blockframe.c (struct dummy_frame): Add member ``top''.
1942 (generic_push_dummy_frame): Initialize top to sp.
1943 (generic_save_dummy_frame_tos): New function. Initialize top.
1944 (generic_find_dummy_frame): Check for the top of the frame.
1945
1946 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
1947 registers.
1948
1949 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
1950 (TARGET_READ_FP): Return the SP as a best guess.
1951
1952Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
1953
1954 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
1955 instead of hpux11.0*.
1956
19571999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1958
1959 * source.c (directory_command): Add missing test for from_tty.
1960
19611999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1962
1963 * remote.c: Include event-loop.h.
1964 (remote_async_ops, extended_async_remote_ops): Define new target
1965 vector structures for asynchronous debugging.
1966 (remote_async_open): New function. Asynchronous version of
1967 remote_open.
1968 (extended_remote_async_open): New function. Asynchronous version
1969 of extended_remote_open.
1970 (remote_async_open_1): New function. Async version of
1971 remote_open_1.
1972 (remote_async_detach): New function. Async version of
1973 remote_detach.
1974 (remote_async_resume): New function. Async version of
1975 remote_resume.
1976 (initialize_sigint_signal_handler, handle_remote_sigint,
1977 handle_remote_sigint_twice, async_remote_interrupt,
1978 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
1979 functions. Used for handling ^C while target is running.
1980 (remote_async_wait): New function. Async version of remote_wait.
1981 (remote_async_kill): New function. Async version of remote_kill.
1982 (extended_remote_async_create_inferior): New function. Async
1983 version of extended_remote_create_inferior.
1984 (init_remote_async_ops): New function. Initialize target vector
1985 for target async.
1986 (init_extended_async_remote_ops): New function. Initialize target
1987 vector for target extended-async.
1988 (_initialize_remote): Initialize remote_async_ops and
1989 extended_async_remote_ops.
1990
1991 * infrun.c: Include "event-loop.h".
1992 (sync_execution): new global variable.
1993 (proceed): Invoke wait_for_inferior and normal_stop only if not
1994 running in async mode or if target doesn't support async
1995 execution.
1996 (start_remote): Don't call wait_for_inferior and normal_stop if
1997 not running in async mode or if target not async. If running async
1998 and target is async, start the target in simulated synchronous
1999 mode.
2000 (async_ecss, async_ecs): New global vars, for inferior state.
2001 (fetch_inferior_event): New function. Async version of
2002 wait_for_inferior.
2003 (complete_execution): New function. Reset of gdb prompt and stdin,
2004 after inferior execution has completed.
2005 (normal_stop): Call complete_execution at end of asynchronous
2006 execution.
2007
2008 * infcmd.c (strip_bg_char): New function to detect the background
2009 execution char '&'.
2010 (run_command): Modify to support background and foreground
2011 execution in async mode.
2012 (continue_command): Ditto.
2013 (step_1): Ditto.
2014 (jump_command): Ditto.
2015 (interrupt_target_command): New function. Interrupt the
2016 target execution.
2017 (_initialize_infcmd): Add new command 'interrupt'.
2018
2019 * top.c (target_executing): New global variable.
2020 (execute_command): Reject commands that cannot be executed while
2021 the target is running asynchronously.
2022
2023 * event-top.c (push_prompt): Make non static.
2024 (pop_prompt): Make non static. If the current prompt is empty,
2025 don't try to copy it over the previous one.
2026 (handle_sigint): Make non static.
2027 (command_handler): Do the cleanups only when not executing with an
2028 asynchronous target.
2029
2030 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
2031 pointer to a signal handler, so that is can be freed at the end.
2032
2033 * target.c (update_current_target): Inherit to_has_async_exec.
2034
2035 * inferior.h: Add global variables target_executing, and
2036 sync_execution. Export function fetch_inferior_event.
2037
2038 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
2039 exported functions. Update prototype for delete_signal_handler.
2040
2041 * target.h (struct target_ops): New target op: to_has_async_exec.
2042 (target_has_async): New macro.
2043
2044 * Makefile.in (infrun.o): Add dependency on event-loop.h.
2045 (remote.o): Ditto.
2046
085dd6e6
JM
20471999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
2048
2049 * solib.c (clear_solib): Don't disable breakpoints if we're
2050 running an a.out executable (Solaris's SunOS emulation).
2051
20521999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2053
2054 * main.c (main): Remove intialization of command_loop_hook, it
2055 is now done in _initialize_event_loop().
2056 * event-loop.c (gdb_do_one_event): Make static.
2057 (start_event_loop): New function. Just start the event loop.
2058 * event-top.c (cli_command_loop): New name for start_event_loop().
2059 (gdb_readline2): Make non static.
2060 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
2061 * event-loop.h: Adjust exported functions accordingly.
2062
2063 * top.c (init_main): Move setting of async_command_editing_p from
2064 here.
2065 * event-top.c (_initialize_event_loop): To here.
2066 (change_line_handler): Revert previous change. Add comment.
2067 (_initialize_event_loop): Revert previous change.
2068 (cli_command_loop): New name for start_event_loop().
2069 (start_event_loop): New function. This just starts up the event loop.
2070 (gdb_readline2): Make non static.
2071 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
2072
20731999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2074
2075 * event-top.c (change_line_handler): Get rid of the global
2076 variable input_fd, use `fileno (instream)' instead.
2077 (_initialize_event_loop): Ditto
2078
2079 * event-loop.c (add_file_handler): New function. Wrapper for
2080 create_file_handler.
2081 (create_file_handler): Make static.
2082 * event-top.c (_initialize_event_loop): Call add_file_handler,
2083 instead of create_file_handler.
2084 (change_line_handler): Ditto.
2085 Remove poll.h include.
2086 * event-loop.h: Export add_file_handler instead of
2087 create_file_handler.
2088
20891999-06-24 Stan Shebs <shebs@andros.cygnus.com>
2090
2091 Declare Altos configuration obsolete.
2092 * configure.host, configure.tgt: Comment out Altos config.
2093 * Makefile.in: Comment out Altos-related actions.
2094 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
2095 xm-altos.h: Comment out.
2096 * NEWS: Mention obsolete status.
2097
20981999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
2099
2100 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
2101 recognize html and install-html targets.
2102 * gdbserver/Makefile.in: Add empty html and install-html targets.
2103 * nlm/Makefile.in: Ditto.
2104 * rdi-share/Makefile.in: Ditto.
2105
21061999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
2107
2108 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
2109
21101999-06-24 James Ingham <jingham@leda.cygnus.com>
2111
2112 * arm-tdep.c (arm_othernames): Change both gdb's register display
2113 AND the opcode disassembly register naming if the othernames
2114 command. Fixes the gdb part of CR 101177.
2115
21161999-06-23 Stan Shebs <shebs@andros.cygnus.com>
2117
2118 Declare Convex configuration obsolete.
2119 * configure.host, configure.tgt: Comment out Convex configs.
2120 * Makefile.in: Comment out Convex-related actions.
2121 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
2122 * NEWS: Mention obsolete status.
2123
21241999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2125
2126 * main.c: Turn on async by default by setting async_p to 1.
2127
2128Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
2129
2130 From Jimmy Guo <guo@cup.hp.com>:
2131 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
2132 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
2133 change.
2134 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
2135 does not return a result.
2136
2137Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
2138
2139 * remote.c (set_thread, remote_get_threadinfo,
2140 remote_threads_info, remote_current_thread, remote_get_threadlist,
2141 extended_remote_restart, get_offsets, remote_open_1,
2142 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
2143 remote_store_registers, check_binary_download, remote_write_bytes,
2144 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
2145 read_frame, compare_sections_command, remote_query,
2146 packet_command, remote_info_process): Use alloca to create space
2147 for arrays of size PBUFSIZ.
2148
21491999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
2150
2151 * top.c: Update copyright years to include 1999.
2152
9e0b60a8
JM
21531999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2154
2155 * top.c: Move include of event-loop.h, to avoid redefinition of
2156 NFDBITS.
2157
2158 * event-loop.c (create_file_handler): Do not do a realloc of the
2159 pollfd structure of the notifier, unless there is already one.
2160 Include <sys/types.h> for platforms that have no poll.
2161
2162 * event-top.c: Fix prototype for _initialize_event_loop.
2163 (_initialize_event_loop): Do something only if running in async
2164 mode.
2165
21661999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
2167
2168 Make the '/c' print format use a true character type. This is
2169 more appropriate than builtin_type_char for languages other than
2170 C, and C tolerates it.
2171 * gdbtypes.c (builtin_type_true_char): New variable.
2172 (build_gdbtypes): Initialize it.
2173 * gdbtypes.h (builtin_type_true_char): New declaration.
2174 * printcmd.c (print_scalar_formatted): When the format is 'c',
2175 extract the value as a builtin_type_true_char.
2176
2177 * jv-exp.y (yylex): Say character literals are java_char_type, not
2178 builtin_type_char. Java treats the latter like `byte'.
2179
21801999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2181
2182 * Makefile.in (top_h): Define.
2183 (event-loop.o): Add dependencies on top.h and defs.h.
2184 (event-top.o): Add dependency on terminal.h.
43ff13b4 2185
9e0b60a8
JM
2186 * event-loop.c: Get rid of #include <readline.h>.
2187
2188 * event-loop.h: Get rid of nested #include's.
2189 * event-loop.c: Rearrange includes to accomodate change in
2190 event-loop.h. Include poll.h, not sys/poll.h.
2191 * event-top.c: Ditto.
2192 * main.c: Ditto.
2193
21941999-06-16 David Taylor <taylor@louisiana.cygnus.com>
2195
2196 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
2197 is NULL, call find_proc_desc so we know how to restore
2198 the registers.
2199
22001999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
2201
2202 * event-top.c (start_event_loop): call get_prompt.
2203 (display_gdb_prompt): call get_prompt.
2204 (async_stop_sig): call get_prompt.
2205
22061999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2207
2208 * event-loop.c (delete_file_handler): When positioning prev_ptr,
2209 keep looping while the one after is not equal to file_ptr, instead
2210 of equal.
2211
0f71a2f6
JM
22121999-06-14 Stan Shebs <shebs@andros.cygnus.com>
2213
2214 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
2215 SVR4 solib maintainers, respectively.
2216
22171999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
2218
2219 Add parameters to the gdb prompt.
2220 * top.c (prompt): Rename to gdb_prompt_string for clarity.
2221 (command_line_input): rename "prrompt" to prompt_arg for clarity.
2222 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
2223 (read_command_lines): rename "prompt" to prompt_arg for clarity.
2224 (stop_sig): call get_prompt instead of reading prompt string directly.
2225 (command_loop): ditto.
0f71a2f6
JM
2226 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
2227 (get_prompt_1): New function, workhorse for get_prompt.
2228 (get_prompt): Completely rewrite. Add functionality for a
2229 parameterized prompt, ie. the displayed prompt can change according
2230 to the value of one or more expressions given as parameters in the
2231 prompt string.
2232 (init_main): use renamed variable gdb_prompt_string. Add new
2233 command "set prompt-escape-char" to set gdb_prompt_escape.
2234
2235Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2236
2237 * defs.h (gdb_stdlog), main.c: Declare.
2238 * main.c (main): Initialize.
2239 * gdbarch.c: Write trace messages to the log file.
2240 * remote.c: Update any debug/log prints.
2241
22421999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
2243
2244 * remote.c (remote_wait): Clean up new thread handling.
2245 (record_currthread): Announce new threads.
2246
22471999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
2248
2249 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
2250 partial symbol table entries for nameless enums, even if the type
2251 name is " ". (We still pick up the enum elements, though.)
2252
2253 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
2254 which set a variable which exists nowhere else in the source.
2255 Please examine your test suite output carefully, and report any
2256 problems to me.
2257
22581999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2259
2260 * event-top.c (setup_event_loop): Change name to start_event_loop.
2261 Move the intialization of event-loop variables to
2262 _initialize_event_loop.
2263 (_initialize_event_loop): New function. Called at init time, to
2264 set up important event-loop variables.
2265
2266 * event-loop.h: setup_event_loop is now start_event_loop.
2267 * main.c (main): Ditto.
2268
2269Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2270
2271 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
2272 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
2273 set_gdb_file_put): Declare.
2274
2275 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
2276 (struct gdb_file): Add to_rewind and to_put.
2277 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
2278 set_gdb_file_put, set_gdb_file_rewind): New functions.
2279 (tui_file_rewind, tui_file_put): New functions.
2280 (tui_file_new): Add rewind and put.
2281
2282Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2283
2284 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
2285 to store_address.
2286
2287Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2288
2289 * remote.c (tty_input): Change array to pointer.
2290 (_initialize_remote): Call build_remote_gdbarch_data.
2291 (build_remote_gdbarch_data): New function. Allocate space for
2292 tty_input.
2293 (readsocket, readtty): Delete extern declaration of tty_input.
2294
22951999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2296
2297 * event-top.c (gdb_readline2): Call the command handling function
2298 via the input_handler pointer.
2299 (change_line_handler): When turning off editing, set input_handler
2300 as well.
2301
2302 * utils.c (prompt_for_continue): If running asynchronously, call
2303 async_request_quit, instead of request_quit.
2304
2305 * tracepoint.c (read_actions): If running asynchronously, set the
2306 signal handler for STOP_SIGNAL to handle_stop_sig.
2307
2308 * top.h: (source_line_number, source_file_name, source_error,
2309 source_pre_error, history_expansion_p, server_command): export for
2310 use of event-top.c.
2311
2312 * event-top.c: Include top.h and terminal.h.
2313 (instream): Remove extern declaration.
2314 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
2315 handle_sigwinch, async_do_nothing, async_disconnect,
2316 async_float_handler, async_stop_sig): Make static.
2317 (async_request_quit, async_do_nothing, async_disconnect,
2318 async_float_handler, async_stop_sig): Add gdb_glient_data
2319 argument.
2320 (handle_stop_sig): New function.
2321 (sigtstp_token): New variable.
2322 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
2323 Change their type tp PTR.
2324 (mark_async_signal_handler_wrapper): New function.
2325 (setup_event_loop): Initialize all the variables used by readline
2326 only if not already done while reading the .gdbinit file. Display
2327 the initial gdb prompt, if .gdbinit took care of setting things up
2328 for readline.
2329 (change_line_handler): When turning on the use of readline,
2330 initialize input_handler as well.
2331 (command_line_handler): Set up the signal handler for STOP_SIGNAL
2332 to be handle_stop_sig.
2333 (async_init_signals): Remove coercion of signal handlers in calls
2334 to create_async_signal_handler. Initialize token for stop signal.
2335 (handle_sigint): Call async_request_quit using one argument.
2336 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
2337 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
2338 of mark_async_signal_handler.
2339
2340 * event-loop.h: Add extern declarations for handle_stop_sig,
2341 async_command_editing_p, async_annotation_suffix,
2342 new_async_prompt, the_prompts.
2343
2344 * top.c (command_line_input): Set the signal handler to be
2345 handle_stop_sig, in case gdb is running asynchronously.
2346 (get_prompt): Return the top of the prompt stack if running
2347 asynchronously.
2348 (set_prompt): Set the top of the prompt stack if running
2349 asynchronously.
2350 (init_main): Move ``extern'' vars from here to event-loop.h.
2351
23521999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
2353
2354 * values.c (value_from_string): new function. Make a value_ptr
2355 from a string, with storage in local GDB memory (not in inferior).
2356 * value.h (value_from_string): add prototype.
2357 * remote.c (remote_cisco_ops): New remote target, "target cisco".
2358 (init_remote_cisco_ops): New function, initialize new target.
2359 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
2360 remote_cisco_close): New functions, implement new target cisco.
2361 (minitelnet, readtty, readsocket) New functions, implement the
2362 I/O pass-through mode for target cisco.
2363 (remote_wait): Detect special enhanced version of the 'S' packet
2364 for target cisco.
2365 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
2366
23671999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2368
2369 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
2370
2371 * top.c (print_prompt): Delete this function.
2372
2373 From: Andrew Cagney <cagney@b1.cygnus.com>
2374
2375 * event-top.c (async_hook): Delete extern declaration.
2376
2377 * defs.h: Replace ``async_hook'' with ``async_p''.
2378 * top.c (gdb_init, init_main, init_main, init_main, init_main):
2379 Replace ``async_hook'' with ``async_p''.
2380
2381 * main.c: Rename ``async'' to ``async_p''.
2382 (main): Add --noasync option.
2383 (main): Hook in the asynchronous event-loop based CLI using
2384 command_loop_hook instead of async_hook. Delete call to
2385 async_hook().
2386
2387Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
2388
2389 * mn10300-tdep.c (mn10300_store_return_value,
2390 mn10300_extract_struct_value_address,
2391 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
2392 functions.
2393 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
2394 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
2395 (TARGET_MN10300): Delete macro. Not used.
2396
2397Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2398
2399 * mn10300-tdep.c (mn10300_register_names): Make static.
2400 (STORE_STRUCT_RETURN): Do not modify SP.
2401
2402 * config/mn10300/tm-mn10300.h(mn10300_register_name),
2403 mn10300-tdep.c : New function.
2404 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
2405 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
2406 mn10300-tdep.c: New function.
2407 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
2408
96baa820
JM
24091999-06-10 Keith Seitz <keiths@cygnus.com>
2410
2411 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
2412 doesn't matter.
2413 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
2414 if the start of the function is the entry point.
2415 (mcore_analyze_prologue): rotli takes an immediate, not an
2416 offset immediate.
2417 (mcore_push_arguments): Fix compiler warning.
2418
0f71a2f6 24191999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
104c1213 2420
0f71a2f6
JM
2421 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
2422 subroutine call.
2423
24241999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
2425
2426 * remote.c (remote_wait): Add 'N' response packet, which is a
2427 stop with signal number plus section offsets for .text, .data and
2428 .bss. This is used by Cisco to indicate relocation offsets.
2429 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
2430 new files to support 'N' packet.
2431 (remote_info_process): New function. Implements the
2432 "info remote-process" command, by means of which the remote target
2433 can report anything it wants to about the remote process/app being
2434 debugged.
2435 (_initialize_remote): add info remote-proc command.
2436 (remote_threads_info): New function for "info threads" command.
2437 Attempts to use new query "qfThreadInfo" instead of the old
2438 undocumented query.
2439 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
2440
2441Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
2442
2443 * inferior.h (generic_target_read_pc, generic_target_write_pc,
2444 generic_target_read_fp, generic_target_write_fp,
2445 generic_target_read_sp, generic_target_write_sp): Declare new
2446 functions.
2447 * findvar.c (generic_target_read_pc, generic_target_write_pc,
2448 generic_target_read_fp, generic_target_write_fp,
2449 generic_target_read_sp, generic_target_write_sp): New functions.
2450 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
2451 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
2452 function.
2453 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
2454 write_fp): Simplify.
2455
2456 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
2457 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
2458 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
2459 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
2460 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
2461 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
2462 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
2463 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
2464 FRAME_CHAIN_VALID.
2465 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
2466 directly.
2467 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
2468 the function / macro with a problem. Always verify a architecture
2469 attribute before returning it.
2470 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
2471 function.
2472
2473 * mips-tdep.c (mips_push_return_address): New function.
2474 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
2475
2476 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
2477 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
2478 read_sp, write_sp, frame_chain_valid, get_saved_register,
2479 push_arguments, push_return_address, register_convertible,
2480 call_dummy_p, use_generic_dummy_frames,
2481 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
2482 call_dummy_words and sizeof_call_dummy_words.
2483 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
2484
cce74817
JM
24851999-06-07 Keith Seitz <keiths@cygnus.com>
2486
2487 * v850ice.c (init_hidden_window): Do not rely on the existence of
2488 a gui for window creation. Return boolean status.
2489 (v850ice_open): Use boolean status of init_hidden_window.
2490 Allow any ICE execution command to run under CLI. Maybe one
2491 day gdb will use a real event loop and allow this code to run.
2492 * configure.tgt: Configure the v850 ice for all cygwin-hosted
2493 toolchains.
2494
2495Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
2496
2497 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
2498 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
2499 (temp_saved_regs): Replace struct with a simple pointer.
2500 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
2501 mips_init_extra_frame_info): Update.
2502
2503Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
2504
2505 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
2506 * mips-tdep.c (struct frame_extra_info): To here.
2507
2508 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
2509 mips_init_extra_frame_info, mips_pop_frame): Update
2510 (mips_init_extra_frame_info): Allocate space for the extra info.
2511
2512Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
2513
2514 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
2515 Rename init_extra_frame_info. Add argument ``fromleaf''.
2516
2517 * config/mips/tm-mips.h (mips_print_extra_frame_info),
2518 mips-tdep.c: New function.
2519 (PRINT_EXTRA_FRAME_INFO): Update definition.
2520
2521Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
2522
2523 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
2524 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
2525 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
2526 REGISTER_NAMES to MIPS_REGISTER_NAMES.
2527
2528 * config/mips/tm-mips.h (REGISTER_NAME): Define.
2529 * mips-tdep.c (mips_processor_reg_names): New static variable.
2530 (mips_register_name): New function.
2531 (mips_set_processor_type): Update mips_processor_reg_names.
2532 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
2533
2534Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2535
2536 * remote.c (PBUFSIZ): Re-define so that value is computed at
2537 run-time.
2538 (MAXBUFBYTES): Re-define as a macro function.
0f71a2f6
JM
2539 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
2540 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2541
25421999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
2543
2544 * symtab.c (decode_line_1): Accept filenames with spaces in
2545 'linespecs' when enclosed in double quotation marks and handle
2546 drive specification is DOS format (D:).
2547
25481999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
2549
2550 * parse.c: Don't include <ctype.h> twice.
2551
25521999-06-04 David Taylor <taylor@louisiana.cygnus.com>
2553
2554 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
2555
2556 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
2557 (Of course C has "expected types", at least if you allow
2558 brace-initializer expressions - as in Gcc.)
2559 Remove NULLing out expect_type. Do pass NULL_TYPE in place
2560 the incoming expect_type where appropriate.
2561
2562Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
2563
2564 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
2565 executables without end.o. Clean up lots of mis-guided comments.
2566
2567Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2568
2569 * parser-defs.h (std_regs): Replace array with pointer.
2570 * parse.c (build_parse): Build the std_regs table according to the
2571 standard registers available.
0f71a2f6
JM
2572 (_initialize_parse): Register std_regs and num_std_regs as
2573 architecture specific.
2574 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
2575 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
2576 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2577
25781999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
2579
2580 * thread.c: eliminate the target_thread_vector (functionality
2581 moved into the standard target vector).
2582 * gdbthread.h: eliminate target_thread_vector. Move all related
2583 defines into remote.c, since they are no longer shared with thread.c.
2584 * remote.c: eliminate the target_thread_vector.
2585 (remote_find_new_threads): change return type to void, consistent
2586 with the target vector table. (cont_thread): rename continue_thread.
2587 (record_currthread): remove dead code. (remote_thread_alive):
2588 clean up and simplify. (threadref etc.): move definitions to here
2589 from gdbthread.h.
2590
25911999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
2592
2593 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
2594 which tries to find csh.
2595 * fork-child.c: Remove DEBUGGING predefine and conditionalized
2596 printfs.
2597 (fork_inferior): Remove dead HPUX specific code which assumes shell
2598 is csh.
2599
2600 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
2601 * parse.c: Ditto.
2602 * somread.c: Ditto.
2603
0f71a2f6
JM
2604 * gdbarch.h: Forward decl of struct value.
2605
cce74817
JM
2606Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2607
2608 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
2609 static.
2610 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
2611 function. Call generic_pop_current_frame.
2612 * config/d10v/tm-d10v.h (POP_FRAME): Update.
2613 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
0f71a2f6
JM
2614 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
2615 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
2616 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
2617 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
2618 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
2619 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
2620 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
2621 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2622 REGISTER_SIZE.
2623 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2624 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
2625 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
2626 here.
2627 * d10v-tdep.c: To here.
2628 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
2629 * gdbarch.h: To here.
2630 * config/d10v/tm-d10v.h (struct frame_info, struct
2631 frame_saved_regs, struct type): Delete declarations.
2632
26331999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
2634
2635 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
2636 go32_terminal_ours are new functions to save/restore the inferior`s
2637 stdin/stdout filemodes
2638
26391999-06-02 Stan Shebs <shebs@andros.cygnus.com>
2640
2641 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
2642 as maintainers for Hurd, HP/UX, and COFF, respectively.
2643
26441999-06-02 Mark Kettenis <kettenis@gnu.org>
2645
2646 * gnu-nat.c (inf_continue): New function.
2647 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
2648 Add new bit-field named `nomsg'.
2649 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
2650 callers changed. Also update the `nomsg' and `traced' fields of
2651 INF.
2652 (make_inf): Initialize INF->nomsg.
2653 (inf_cleanup): Reset INF->nomsg.
2654 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
2655 instead of `inf_signal' if the inferior does not have a message
2656 port.
2657 (gnu_resume): Likewise.
2658 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
2659 Call `inf_validate_procinfo' after returning from `fork_inferior'.
2660 (gnu_attach): Update signal thread and tracing state.
2661
2662 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
2663 "i386/tm-i386v.h".
2664 (STACK_END_ADDR): Remove.
2665 (SIGCONTEXT_PC_OFFSET): New define.
2666 Include "tm-sysv4.h".
2667
26681999-06-02 J.T. Conklin <jtc@redback.com>
2669
2670 * config/tm-vxworks.h: New file, header for definitions common to
2671 all vxWorks targets.
2672 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
2673 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
2674 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
2675
2676Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
2677
2678 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
2679
26801999-06-02 Christopher Faylor <cgf@cygnus.com>
2681
2682 * configure.tgt: Alphabetically reorder some targets.
2683
26841999-06-02 Keith Seitz <keiths@cygnus.com>
2685
2686 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
2687
26881999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
2689
2690 * rs6000-tdep.c (variants): Fix description of 750 register set.
2691 (Thanks to J. T. Conklin.)
2692
2693Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2694
0f71a2f6
JM
2695 * gdbarch.h, gdbarch.c: Add multi-arch support for
2696 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
2697 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
2698 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
2699 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2700
cce74817
JM
2701 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
2702 FRAME_FIND_SAVED_REGS.
2703 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
2704 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
2705 d10v_frame_init_saved_regs): Update.
0f71a2f6
JM
2706 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
2707
2708 * gdbarch.h, gdbarch.c: Add multi-arch support for
2709 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
2710 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
2711 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2712
2713 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
2714 * d10v-tdep.c (struct frame_extra_info): Define.
2715 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
2716 d10v_frame_find_saved_regs): Update.
0f71a2f6 2717 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
cce74817
JM
2718
2719Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
2720
2721 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
2722 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
2723 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
2724 removed; new macro prototype fixed.
2725
2726Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2727
0f71a2f6
JM
2728 * gdbarch.h, gdbarch.c: Add multi-arch support for
2729 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
2730 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
2731 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2732
2733 * gdbarch.h, gdbarch.c: Add multi-arch support for
2734 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2735 REGISTER_CONVERT_TO_RAW.
2736 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2737
cce74817
JM
2738 * defs.h (REGISTER_NAME): Move compatibility definition from here.
2739 * gdbarch.h: To here.
2740
2741 * frame.h, blockframe.c (generic_fix_call_dummy): New
2742 stub function.
0f71a2f6
JM
2743 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
2744 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2745
2746Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2747
2748 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
2749 * config/d10v/tm-d10v.h: Update.
2750
2751Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2752
2753 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
2754 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
2755 and TARGET_WRITE_SP.
2756 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2757
2758Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2759
2760 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
2761 generic_get_saved_register.
2762 * gdbarch.c: Change update dispatch functions so that they check
2763 for a NULL function pointer.
2764
2765Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
cce74817 2766
0f71a2f6
JM
2767 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
2768 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
2769 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
2770 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2771
ac9a91a7
JM
2772Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2773
2774 * parse.c (build_parse): New function. Initialize
2775 msym_text_symbol_type, msym_data_symbol_type and
2776 msym_unknown_symbol_type.
2777 (_initialize_parse): Call build_parse.
0f71a2f6
JM
2778 (_initialize_parse): Register variables msym_text_symbol_type,
2779 msym_data_symbol_type as msym_unknown_symbol_type as
2780 per-architecture.
2781
2782Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2783
2784 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
2785 architecture.
2786 (d10v_gdbarch_init): New function.
2787 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
ac9a91a7
JM
2788
2789Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2790
2791 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
2792 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
2793 macros into functions.
2794 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
2795 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
2796 The new functions.
2797
27981999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2799
2800 * stack.c (print_args_stub): Add missing stream parameter.
2801
2802Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2803
2804 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
2805 * valops.c, value.h (default_push_arguments): Fix order of
2806 parameters to match PUSH_ARGUMENTS arguments.
2807
2808Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2809
2810 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
2811
2812 * valops.c (value_assign): Delete redundant test of
2813 REGISTER_CONVERTIBLE.
2814
2815Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
2816
2817 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
2818 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
2819 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
2820 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
2821 macro NAMES_HAVE_UNDERSCORE.
2822
2823Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2824
2825 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
2826 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
2827 * values.c (value_being_returned): Use
2828 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
2829
2830Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2831
2832 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
2833 functions.
2834 (tui_file_isatty): Rename gdb_file_isatty.
2835 (gdb_file_init_astring): Use tui_file_new to create stream.
2836 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
2837 to access the tui_stream.
2838 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
2839 the tui_stream. Pass FILE and not STREAM down.
2840
2841 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
2842 stdio_file_isatty, stdio_file_delete, stdio_file_new,
2843 stdio_fileopen): Define type and functions. Implement a simple
2844 STDIO based gdb_file.
2845 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
2846 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
2847 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
2848 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
2849 Define type and functions. Implement virtual functions for
2850 gdb_file.
2851
2852 * defs.h (struct gdb_file): Declare.
2853 (GDB_FILE): Change type to struct gdb_file. Deprecate.
2854 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
2855 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
2856 declarations.
2857
2858 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
2859 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
2860 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
2861 function declarations.
2862 (gdb_fopen): Re-implement. Call stdio_file_new.
2863 (gdb_fclose): Re-implement. Call gdb_file_delete.
2864
2865 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
2866 gdb_file_data to gain access to the tui_stream data. Use FILE
2867 instead of STREAM where applicable.
2868 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
2869
2870 * defs.h (struct tui_stream): Add field ts_magic.
2871 * utils.c (tui_file_magic): Local variable.
2872 (tui_file_new): Set field ts_magic.
2873 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
2874 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
2875 Verify ts_magic.
2876
28771999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
2878
2879 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2880 breakpoint_1): Add a 'default' case, which prints a warning
2881 message, to remove EGCS warnings.
2882
392a587b
JM
28831999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2884
2885 * utils.c (gdb_file_adjust_strbuf): Take into account the
2886 possibility that the buffer has not been allocated yet.
2887
2888Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2889
2890 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2891 REGISTER_CONVERT_TO_RAW): Provide default definition.
2892
2893 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
2894 (value_from_register, value_of_register): Remove #ifdef
2895 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
2896
96baa820
JM
28971999-05-25 Keith Seitz <keiths@cygnus.com>
2898
2899 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
2900 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
2901 setting a variable as a side effect.
2902
392a587b
JM
2903Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
2904
2905 * remote-d10v.c (d10v_eva_prepare_to_trace,
2906 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
2907 Add declaraton. Make static.
2908
2909 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
2910 (_initialize_d10v_tdep): Add declaration.
2911 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
2912
2913Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2914
2915 * main.c (init_proc, proc_remove_foreign): Delete function.
2916 * inftarg.c (child_mourn_inferior): Update. Delete call to
2917 proc_remove_foreign().
2918 * top.c (gdb_init): Update. Delete call to init_proc().
2919
2920 * utils.c (pollquit, fmthex, hexlate): Delete function.
2921
2922Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
2923
2924 * main.c (gdb_init): Move declaration from here.
2925 * top.h: To here.
2926
2927 * defs.h (init_page_info): Add declaration.
2928
2929 * top.c (initialize_utils): Move declaration from here.
2930 * defs.h: To here.
2931
2932 * infcmd.c (target_map_name_to_register): Move declaration from
2933 here.
2934 * parser-defs.h: To here.
2935
2936 * c-typeprint.c (cp_type_print_method_args), target.c
2937 (nosupport_runtime, normal_target_post_startup_inferior): Add
2938 declaration. Make static.
2939
2940Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
2941
2942 * main.c: Include "event-loop.h".
2943 * Makefile.in (main.o): Add dependency.
2944
2945 * top.h (setup_event_loop, async_init_signals), top.c
2946 (set_async_editing_command, set_async_annotation_level,
2947 set_async_prompt), event-loop.c (display_gdb_prompt): Move
2948 declarations from here.
2949 * event-loop.h: To here.
2950
2951 * event-loop.h (delete_async_signal_handler): Add function
2952 declaration.
2953
2954 * event-top.c (change_annotation_level, command_handler): Add
2955 declaration. Make static.
2956
2957Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2958
2959 * tracepoint.c (free_actions_list, add_register): Add declaration.
2960 Make static.
2961 (free_actions_list_cleanup_wrapper): New function. Wraps
2962 free_actions_list for make_cleanup.
2963 (trace_start_command): Pass free_actions_list_cleanup_wrapper
2964 instead of free_actions_list to make_cleanup.
2965 (_initialize_tracepoint): Add extern declaration.
2966
2967Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
2968
2969 * jv-typeprint.c (java_type_print_base, jv-valprint.c
2970 (java_print_value_fields): Add static declaration.
2971
2972 * jv-lang.c (java_lookup_type, get_java_utf8_name,
2973 java_lookup_type): Add static declaration.
2974 (get_java_class_symtab, java_class_is_primitive,
2975 java_value_string): Add declaration. Make static.
2976 (java_rerun_cleanup): Add extern declaration for this stub
2977 function.
2978
0f71a2f6
JM
2979Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2980
2981 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
2982 defined.
2983
392a587b
JM
2984Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
2985
2986 * inflow.c (_initialize_inflow), annotate.c
2987 (_initialize_annotate), os9kread.c (_initialize_os9kread),
2988 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
2989 f-valprint.c (_initialize_f_valprint), cp-valprint.c
2990 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
2991 complaints.c (_initialize_complaints), scm-lang.c
2992 (_initialize_scheme_language), m2-lang.c
2993 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
2994 f-lang.c (_initialize_f_language), ch-lang.c
2995 (_initialize_chill_language), c-lang.c (_initialize_c_language),
2996 corefile.c (_initialize_core), stabsread.c
2997 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
2998 elfread.c (_initialize_elfread), coffread.c
2999 (_initialize_coffread), maint.c (_initialize_maint_cmds),
3000 demangle.c (_initialize_demangler), maint.c
3001 (_initialize_maint_cmds), language.c (_initialize_language): Add
3002 external declaration.
3003
3004Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
3005
3006 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
3007 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
3008 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
3009 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
3010 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
3011 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
3012 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
3013 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
3014 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3015 config/i960/tm-i960.h, config/i386/tm-i386v.h,
3016 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
3017 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3018 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
3019 config/convex/tm-convex.h, config/arc/tm-arc.h,
3020 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
3021 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
3022 that it returns NUM_ARGS as a result instead of setting a variable
3023 as a side effect.
3024
3025 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
3026 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
3027 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
3028 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
3029 functions.
3030
3031 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
3032
3033Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3034
3035 * remote.c (remote_xfer_memory): Re-write with assumption that
3036 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
3037 targ_len by reference.
3038 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
3039
3040 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
3041 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
3042
3043Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
3044
3045 * value.h (default_push_arguments): Add function declaration.
3046
3047 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
3048 arch_ok, set_arch), command.c (find_cmd), infrun.c
3049 (follow_inferior_fork, follow_fork, follow_vfork,
3050 set_schedlock_func, is_internal_shlib_eventpoint,
3051 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
3052 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
3053 symfile.c (add_filename_language, set_ext_lang_command,
3054 info_ext_lang_command, init_filename_language_table), symtab.c
3055 (overload_list_add_symbol), defs.h (default_get_saved_register),
3056 ax-general.c (grow_expr, append_const, read_const, generic_ext):
3057 Ditto.
3058
3059 * infrun.c (currently_stepping): Ditto. Make static.
3060
3061 * valops.c (hand_function_call): Explictly type static variable
3062 ``checked''.
3063
3064Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
3065
3066 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
3067 d10v_register_byte, d10v_register_raw_size,
3068 d10v_register_virtual_size, d10v_register_virtual_type,
3069 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3070 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3071 d10v_store_struct_return, d10v_store_return_value,
3072 d10v_extract_struct_value_address, d10v_frame_saved_pc,
3073 d10v_frame_args_address, d10v_frame_locals_address,
3074 d10v_saved_pc_after_call): New functions.
3075
3076 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
3077 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
3078 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
3079 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
3080 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
3081 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
3082 FRAME_ARGS_ADDRESS): Re-define using new functions.
3083
3084 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
3085 (REGISTER_NAME): Replace REGISTER_NAMES.
3086
3087 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
3088 functions.
3089 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
3090
3091Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
3092
3093 * utils.c (n_spaces): Handle case where first call has N equal to
3094 zero.
3095 (print_spaces): Use n_spaces.
3096
3097Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
3098
3099 * valops.c (value_push): Remove conditional definition based on
3100 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
3101 reference.
3102 (default_push_arguments): New function.
3103
3104 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3105 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
3106 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3107 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3108 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
3109 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3110 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
3111 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
3112 Return updated SP.
3113
3114 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
3115
3116Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3117
3118 * blockframe.c (get_prev_frame): Remove #ifdef around test for
3119 FRAMELESS_FUNCTION_INVOCATION.
3120 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
3121 function invocation.
3122 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
3123 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3124 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
3125 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3126 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3127 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
3128 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
3129 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
3130 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3131 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
3132 config/convex/tm-convex.h, config/arm/tm-arm.h,
3133 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
3134 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
3135 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
3136 (convex_frameless_function_invocation), arm-tdep.c
3137 (arm_frameless_function_invocation): New functions.
3138
31391999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3140
3141 * top.c: Change dates in comments to ISO format.
3142
3143 * event-top.c: Ditto.
3144 * event-loop.c: Ditto.
3145 * main.c: Ditto.
3146
9e086581
JM
31471999-05-19 Keith Seitz <keiths@cygnus.com>
3148
96baa820
JM
3149 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
3150 really do want to believe what gcc tells us about types...
3151
31521999-05-19 Keith Seitz <keiths@cygnus.com>
3153
3154 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
3155 (FRAME_LOCALS_ADDRESS): Ditto.
3156 * mcore-tdep.c (mcore_frame_args_addcress): New function.
3157 (mcore_frame_locals_address): New function.
3158
9e086581
JM
3159 * monitor.c (monitor_open): Only assume we have eight
3160 breakpoints if the monitor implementation does not tell
3161 us how many there really are. Alloc memory for these
3162 dynamically.
3163 (monitor_close): Free memory associated with breakpoint
3164 storage.
3165 (monitor_insert_breakpoint): Don't rely on a hardcoded
3166 number of breakpoints.
3167 (monitor_remove_breakpoint): Ditto.
3168 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
3169 specification.
3170 * monitor.h (struct monitor_ops): Add new member so that the
3171 individual monitor implementations can tell us how many
3172 breakpoints the monitor supports.
3173
96baa820
JM
3174 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
3175 by picobug monitor.
3176
9e086581
JM
31771999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3178
3179 From Philippe De Muyter <phdm@macqel.be>:
3180 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
3181
96baa820
JM
31821999-05-17 Keith Seitz <keiths@cygnus.com>
3183
3184 * configure.tgt: Add MCore target.
3185 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
3186 * config/mcore/tm-mcore.h: New file.
3187 * config/mcore/mcore.mt: New file.
3188 * mcore-rom.c: New file.
3189 * mcore-tdep.c: New file.
3190
9e086581
JM
31911999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3192
392a587b
JM
3193 * top.c (print_command_line): Added the missing stream argument.
3194 * gdbcmd.h: Added argument to prototype.
3195 * command.c: Fixed call to include extra argument.
3196 * breakpoint.c: Same.
9e086581
JM
3197
31981999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
3199
3200 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
3201 of arguments. Since the Mach 3 target needs an argument, we'll
3202 make things consistent by adding an argument everywhere.
3203 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
3204 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
3205 to definition.
3206
32071999-05-11 Stan Shebs <shebs@andros.cygnus.com>
3208
3209 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
3210 * sh-stub.c: Mostly localize processor dependencies.
3211
cd0fc7c3
SS
32121999-05-10 Martin Hunt <hunt@cygnus.com>
3213
3214 * debugify.c, debugify.h: Removed because they are no
3215 longer used.
3216
32171999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
3218
3219 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
3220 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
3221 SIGIO --- pass them through to the inferior silently.
3222 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
3223 Solaris's SIGCANCEL.
3224 * target.c (target_signal_from_host, target_signal_to_host): Add
3225 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
3226 (signals): Add entry for SIGCANCEL.
3227
32281999-05-07 Stan Shebs <shebs@andros.cygnus.com>
3229
3230 After years of talking about it, finally break up the
3231 wait_for_inferior loop.
3232 * infrun.c (struct execution_control_state): New struct,
3233 holds what used to be local vars governing wfi behavior.
3234 (init_execution_control_state): New function, was code in
3235 wfi that set up execution control state.
3236 (handle_inferior_event): New function, was body of main
3237 wfi loop. Rewrite all local var references to go through
3238 the ecs structure passed into this function.
3239 (wait_for_inferior): Rewrite to set up and use execution control
3240 state, and to call the new functions.
3241 (currently_stepping): New function, was the macro
3242 CURRENTLY_STEPPING.
3243 (enum infwait_states): Rename from wfi_states.
3244 (infwait_normal_state, etc): Similarly.
3245
3246Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
3247
3248 * coffread.c (coff_symtab_read): Call `record_line' with the line
3249 number of the ".bf" symbol only for one-line functions.
3250
32511999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
3252
3253 * Makefile.in: thread.o depends on target.h.
3254
32551999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3256
3257 * event-top.c (change_line_handler): Use POLLIN instead of
3258 POLLRDNORM, for compatibility with Linux.
3259 (setup_event_loop): Ditto.
3260
32611999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
3262
3263 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
3264 message about hitting the "heuristic fence post" with something
3265 that actually gives the user a fighting chance of figuring out
3266 why GDB is unhappy.
3267
32681999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3269
3270 * top.c: Include event-loop.h.
3271 (init_main): Add async version of 'set prompt' command.
3272 If in async mode define the editing and annotate set
3273 commands in a different way.
3274 Initialize new variable asyn_command_editing_p to 1.
3275 Initialize the gdb prompt for async mode.
3276 (quit_cover): Make not static, for use by the event loop.
3277 (gdb_init): Call async_init_signals for the asynchronous case.
3278 (source_line_number, source_file_name, source_error,
3279 source_pre_error, history_expansion_p): Make non-static, so
3280 event-top.c can use them.
3281 (command_loop_marker): Make non-static, for use in event-top.c.
3282 Include event-loop.h.
3283
3284 * top.h: Add prototype for async_init_signals.
3285 (SET_TOP_LEVEL): Move here from main.c.
3286 Add setup_event_loop to exported functions.
3287
3288 * defs.h: Add async_hook to exported variables.
3289
3290 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
3291 event-loop.c. Add new global variable async to determine whether
3292 we are running in async mode or not.
3293 (main): Add support for --async switch. Use async_hook to call
3294 setup_event_loop, when running in async mode.
3295
3296 * event-top.c: New file. Gdb input line handler and command line
3297 handler for the event loop. Initialization of signal handlers.
3298 All the handled signals have handlers called handle_<signalname>.
3299 Set up all the appropriate tokens for asynchronous signal
3300 handling.
3301
3302 * event-loop.h: New file. Data structures and definitions for the
3303 event loop.
3304
3305 * event-loop.c: New file. Functions for the event loop
3306 implementation.
3307
3308 * config.in: Regenerate with autoheader.
3309
3310 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
3311 to be checked for.
3312
3313 * configure: Regenerate.
3314
3315 * Makefile.in (SFILES): Add new source files.
3316 (eventloop_h): Define.
3317 (COMMON_OBS): Add new object files.
3318 (event-loop.o): Add rule for target object.
3319 (event-top.o): Ditto.
3320
33211999-05-05 Stan Shebs <shebs@andros.cygnus.com>
3322
3323 * infrun.c (wait_for_inferior): Transform breaks and continues
3324 into gotos, move the target_wait to the very top of the loop.
3325
33261999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
3327
3328 * configure.in: Ensure that GDB links with libuser32.a under
3329 cygwin because libreadline requires it.
3330 * Makefile.in (WIN32LIBS): Substitute in result from configure
3331 * configure: regenerate
3332
33331999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
3334
3335 Fix from John Rigby. Richard Henderson says it seems okay.
3336 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
3337 of (proc)->pdr, we ought to at least abuse one large enough to
3338 hold the value we're trying to store in it. iopt is only 32 bits
3339 wide; cbLineOffset is a bfd_vma.
3340
b83266a0
SS
33411999-05-04 DJ Delorie <dj@cygnus.com>
3342
3343 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
3344
3345 * ser-go32.c: correct includes
3346 * source.c (openp): use ROOTED_P instead of SLASH_P
3347 * go32-nat.c: enhance exception and NPX handling
3348 (go32_kill_inferior): fix small bug killing inferior
3349 * configure.in: don't look for termcap with djgpp
3350 * configure: rebuild
3351
33521999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3353
3354 * main.c (main): Comment out unused and undocumented command line
3355 option '-'.
3356
33571999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
3358
3359 Cleanup from Philippe De Muyter:
3360 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
3361 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
3362 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
3363 removed; they are now generated automatically.
3364 * gdb_string.h (strstr): Provide function prototype if
3365 NEED_DECLARATION_STRSTR.
3366 * configure, config.in: Regenerated.
3367
3368Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3369
3370 * target.h (to_find_new_threads): new target ops vector.
3371 (target_find_new_threads): define.
3372 * target.c (update_current_target): inherit new target ops vector.
3373 * remote.c: Setup to_find_new_threads vector.
3374 * sol-thread.c: ditto.
3375 * thread.c (target_find_new_threads): rename: local_find_new_threads.
3376 (info_threads_command): call target_find_new_threads by new method,
3377 as a target ops vector, rather than previous macro definition method.
3378 * infcmd.c (go_command): define only if in xdb mode.
3379 * procfs.c: fix typo in comment.
3380
3381Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
3382
3383 * hppah-nat.c: Fix various coding convention violations introduced
3384 by HP.
3385 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
3386 is not defined.
3387
33881999-04-28 Stan Shebs <shebs@andros.cygnus.com>
3389
3390 * TODO: Add some items inspired by review of the manual.
3391
3392Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3393
3394 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
3395 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
3396 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
3397 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3398 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3399 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3400 config/i960/tm-i960.h, config/i386/tm-i386.h,
3401 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3402 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
3403 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
3404 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
3405 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
3406 they return the new address.
3407
3408 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
3409 (hppa_skip_prologue), m88k-tdep.c
3410 (m88k_skip_prologue), i960-tdep.c
3411 (i960_skip_prologue), arc-tdep.c
3412 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
3413 skip_prologue function.
3414
3415 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
3416 function.
3417 * m68k-tdep.c (isi_skip_prologue): That new function.
3418 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
3419 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
3420 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
3421 Ditto.
3422 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
3423 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
3424 Ditto.
3425 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
3426 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
3427 Ditto.
3428
3429 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
3430 infrun.c (wait_for_inferior), blockframe.c
3431 (frameless_look_for_prologue): Update.
3432 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
3433
34341999-04-27 Stan Shebs <shebs@andros.cygnus.com>
3435
3436 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
3437
3438 * infrun.c (enum wfi_state): New enum.
3439 (wait_for_inferior): Merge all but one of the target_wait calls
3440 into a single call, add a wfi_state variable to encode which of
3441 the calls is being made.
3442
34431999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
3444
3445 Fix from Dave Holcomb.
3446 * hpux-thread.c (init_hpux_thread_ops): Use the right function
3447 name when initializing hpux_thread_ops.to_thread_alive.
3448
3449 * coffread.c (coff_symfile_read): If we have a `.stab' section,
3450 but no `.stabstr' section, then print an error message; don't
3451 crash.
3452
34531999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
3454
3455 1999-04-25 Mark Kettenis <kettenis@gnu.org>
3456
3457 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
3458 inf_set_traced, since that function calls code that might try to
3459 restore the terminal settings.
3460
3461Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3462
3463 * gdbarch.h, gdbarch.c: More format cleanups.
3464
0f71a2f6
JM
3465Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
3466
3467 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
3468 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
3469 (CALL_DUMMY_STACK_ADJUST): Replace
3470 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
3471 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
3472 set_gdbarch_call_dummy_stack_adjust): Define.
3473
b83266a0
SS
3474Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3475
3476 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
3477 architecture.
3478 (set_arch): Use.
3479
7a292a7a
SS
34801999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
3481
3482 * README: Note that readline is not installed as a part of
3483 make install.
3484
3485Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3486
0f71a2f6
JM
3487 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
3488 Add.
3489 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3490 default_gdbarch): Update.
3491
7a292a7a
SS
3492 * value.h (get_saved_register): Cleanup prototype.
3493 * findvar.c (default_get_saved_register): Rename function
3494 get_saved_register.
3495 (GET_SAVED_REGISTER): Define as default_get_saved_register when
3496 undefined.
3497 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
3498
3499 * sparc-tdep.c (sparc_get_saved_register): Rename function
3500 get_saved_register.
3501 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
3502 * a29k-tdep.c (a29k_get_saved_register): Rename function
3503 get_saved_register.
3504 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
3505
3506 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
3507 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
3508 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
3509 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
3510 Update macro GET_SAVED_REGISTER so that it calls
3511 generic_get_saved_register.
3512 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
3513 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
3514 function get_saved_register.
3515
0f71a2f6
JM
3516Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3517
3518 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
3519 gdbarch'' initialization functions so that maintenance is more
3520 straightforward.
3521
7a292a7a
SS
3522Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
3523
0f71a2f6
JM
3524 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
3525 USE_GENERIC_DUMMY_FRAMES): Add.
3526 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3527 default_gdbarch): Update.
3528
7a292a7a
SS
3529 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3530 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
3531 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3532 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
3533 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
3534 USE_GENERIC_DUMMY_FRAMES macro the value one.
3535 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
3536 zero.
3537
3538 * blockframe.c (generic_find_dummy_frame,
3539 generic_pc_in_call_dummy, generic_read_register_dummy,
3540 generic_push_dummy_frame, generic_pop_current_frame,
3541 generic_pop_dummy_frame, generic_frame_chain_valid,
3542 generic_get_saved_register): Always define.
3543
3544 * breakpoint.c (frame_in_dummy): Convert #ifdef
3545 USE_GENERIC_DUMMY_FRAMES to runtime test.
3546
3547 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
3548 push_arguments, frame_saved_pc, rs6000_frame_chain,
3549 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
3550 runtime test.
3551 (get_saved_register): Always define.
3552
0f71a2f6
JM
3553Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
3554
3555 * gdbarch.c (gdbarch_dump): Fix robustness check on
3556 BELIEVE_PCC_PROMOTION_TYPE.
3557
3558Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3559
3560 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
3561 force selectable byte order.
3562 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
3563 incompatible.
3564 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
3565
7a292a7a
SS
3566Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3567
0f71a2f6
JM
3568 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
3569 (gdbarch_dump): To here. Make more robust.
3570 * gdbarch.h (gdbarch_dump): Add prototype.
3571
7a292a7a
SS
3572 * gdbarch.c (enum set_arch): Declare.
3573 (set_arch): Add type parameter. Only disable
3574 ``target_architecture_auto'' when set_arch_manual.
3575 (set_architecture, set_architecture_from_arch_mach,
3576 set_architecture_from_file): Update.
0f71a2f6
JM
3577 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
3578 architecture.
7a292a7a
SS
3579
3580Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3581
3582 * frame.h (generic_pc_in_call_dummy): Make signature consistent
3583 with other pc_in_call_dummy functions by adding SP parameter.
3584 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
3585 not FP to generic_find_dummy_frame().
3586 * breakpoint.c (frame_in_dummy): Update.
3587 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3588 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
3589 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
3590 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3591 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
3592
3593Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3594
3595 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
3596 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
3597 TARGET_ARCHITECTURE.
3598 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
3599 definitions.
3600
3601 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
3602 runtime test.
3603 (value_fetch_lazy): Ditto.
3604 * values.c (unpack_long): Ditto.
3605 * printcmd.c (print_frame_args): Ditto.
3606
0f71a2f6
JM
3607Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3608
3609 * gdbarch.h: Cleanup multi-arch comments.
3610
3611Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
3612
3613 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
3614 GDB_MULTI_ARCH > 0 and no previous definition.
3615 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
3616 target.
3617
7a292a7a
SS
36181999-04-15 Stan Shebs <shebs@andros.cygnus.com>
3619
3620 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
3621 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
3622 at runtime instead of compile time.
3623
36241999-04-14 Philippe De Muyter <phdm@macqel.be>
3625
3626 * breakpoint.c (maintenance_info_breakpoints): Function made
3627 static to match previous prototype.
3628
3629 * coffread.c (coff_record_line): Static function removed.
3630 (enter_linenos): Call `record_line' instead of `coff_record_line'.
3631 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
3632 -related stuff removed.
3633 (coff_symfile_read): Redundant statement removed.
3634 (coff_symtab_read): `record_line' is now called with the first line
3635 number of each function, given by the ".bf" symbol. This solves
3636 the line-number bug for one-line functions.
3637
3638Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3639
0f71a2f6
JM
3640 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
3641 Add multi-arch definitions.
3642 * gdbarch.c (gdbarch_believe_pcc_promotion,
3643 gdbarch_believe_pcc_promotion_type): New functions.
3644 (gdbarch_update): Update
3645 (struct gdbarch default_gdbarch): Update.
3646
7a292a7a
SS
3647 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
3648 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
3649 BELIEVE_PCC_PROMOTION to if().
3650
36511999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3652
3653 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
3654 on a Solaris host (of any architecture).
3655 * configure: Regenerated.
3656
0f71a2f6
JM
3657Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3658
3659 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
3660 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
3661 gdbarch_ptr_bit, gdbarch_call_dummy_location,
3662 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
3663 gdbarch_call_dummy_breakpoint_offset,
3664 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
3665 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
3666 dbarch_call_dummy_p, dbarch_call_dummy_words,
3667 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
3668 dbarch_call_dummy_stack_adjust_p): Define using new macros.
3669
7a292a7a
SS
36701999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3671
3672 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
3673 in monitor command strings, fix some formatting mistakes.
3674
36751999-04-13 Stan Shebs <shebs@andros.cygnus.com>
3676
3677 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
3678
36791999-04-12 James Ingham <jingham@cygnus.com>
3680
3681 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
3682 stack pointer (stored in frame->framereg's register) BEFORE
3683 reading it. This was causing "return" to behave very oddly.
3684
36851999-04-12 Stan Shebs <shebs@andros.cygnus.com>
3686
3687 * NEWS: Mention tic80.
3688
36891999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3690
3691 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
3692 * altos-xdep.c: Ditto.
3693 * arm-xdep.c: Ditto.
3694 * convex-xdep.c: Ditto.
3695 * cxux-nat.c: Ditto.
3696 * hp300ux-nat.c: Ditto.
3697 * hppab-nat.c: Ditto.
3698 * i386aix-nat.c: Ditto.
3699 * i386mach-nat.c: Ditto.
3700 * m88k-nat.c: Ditto.
3701 * ptx4-nat.c: Ditto.
3702 * pyr-xdep.c: Ditto.
3703 * rs6000-nat.c: Ditto.
3704 * sun3-nat.c: Ditto.
3705 * sun386-nat.c: Ditto.
3706 * symm-nat.c: Ditto.
3707 * umax-xdep.c: Ditto.
3708 * i386v4-nat.c: Ditto. Also include inferior.h.
3709 * m68k-tdep.c: Ditto. Also include inferior.h.
3710
3711Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
3712
3713 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
3714 Provide default definitions.
3715 * valops.c (hand_function_call): Replace #ifdef
3716 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
3717
0f71a2f6
JM
3718 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
3719 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
3720 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
3721 call_dummy_stack_adjust_p.
3722 (gdbarch_call_dummy_stack_adjust,
3723 set_gdbarch_call_dummy_stack_adjust,
3724 gdbarch_call_dummy_stack_adjust_p,
3725 set_gdbarch_call_dummy_stack_adjust_p): New functions.
3726 (default_gdbarch): Update.
3727
7a292a7a
SS
37281999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
3729
3730 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
3731 They're a pain.
c906108c
SS
3732
3733 * GDB 4.18 released.
7a292a7a 3734 * Makefile.in (VERSION): Bump to 4.18.1.
c906108c 3735
7a292a7a
SS
3736Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
3737
3738 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3739 SIZEOF_CALL_DUMMY_WORDS): Define macros.
3740 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
3741 fatal default.
3742
3743 * inferior.h, gdbarch.c (call_dummy_words,
3744 sizeof_call_dummy_words): Declare/Define variables.
3745 * valops.c (value_arg_coerce, find_function_addr,
3746 call_function_by_hand): Always define.
3747 (hand_function_call): Rename CALL_DUMMY version of
3748 call_function_by_hand. Make static. Add prototype.
3749 (hand_function_call): Update. Allocate space for *dummy and
3750 *dummy1 using alloca.
3751 * breakpoint.c (frame_in_dummy): Update.
c906108c 3752
0f71a2f6
JM
3753 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3754 SIZEOF_CALL_DUMMY_WORDS): Define.
3755 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
3756 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
3757 gdbarch_sizeof_call_dummy_words,
3758 set_gdbarch_sizeof_call_dummy_words): New functions.
3759 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
3760 default_gdbarch): Update.
3761
7a292a7a
SS
37621999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3763
3764 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
3765 monitor, increase the end address by one byte.
3766
37671999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3768
3769 * dbug-rom.c (init_dbug_cmds): Fix strings in
3770 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
3771 commands to the monitor.
3772
37731999-04-08 Keith Seitz <keiths@cygnus.com>
3774
3775 * m32r-stub.c (branchDestination): Undo overly ambitious
3776 sed script's conversion of cast from "char" to "unsigned char".
3777 Return offset should now be properly computed.
3778
3779Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3780
3781 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3782 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
3783
3784 * infcmd.c (breakpoint_auto_delete_contents): Always define.
3785 (run_stack_dummy): Update.
3786 * infrun.c (wait_for_inferior): Update
3787
0f71a2f6
JM
3788 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3789 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
3790 gdbarch_call_dummy_breakpoint_offset_p): New functions.
3791 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
3792 Update.
3793
7a292a7a
SS
37941999-04-07 Stan Shebs <shebs@andros.cygnus.com>
3795
3796 * MAINTAINERS: Mark Alexander can no longer maintain
3797 h8300 and other embedded targets, sniff.
c906108c
SS
3798
37991999-04-06 Stan Shebs <shebs@andros.cygnus.com>
3800
7a292a7a
SS
3801 * inftarg.c (child_wait): Initialize execd_pathname.
3802 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
3803
c906108c
SS
3804 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
3805 this breaks rerunning on sun4 native.
3806
7a292a7a 38071999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
c906108c 3808
7a292a7a
SS
3809 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
3810 deprecated PTRACE_SUNATTACH compatibility commands. The
3811 definitions from <sys/ptrace.h> are fine.
3812
38131999-04-06 Martin Hunt <hunt@cygnus.com>
3814
3815 * annotate.h: Declare annotate_signal_hook.
3816
3817 * annotate.c (annotate_signal): Add a call to
3818 annotate_signal_hook().
3819
38201999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
3821
3822 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
3823 we hit a DW_LNE_end_sequence instruction.
c906108c
SS
3824
3825 * README: Note that GDB requires an ANSI C compiler, and explain
3826 how to get GCC.
3827
3828 * README: Update.
c906108c 3829
7a292a7a 38301999-04-05 Stan Shebs <shebs@andros.cygnus.com>
c906108c
SS
3831
3832 * NEWS: Add more notes about user-visible changes.
3833
7a292a7a
SS
3834Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3835
3836 * target.c (target_signal_to_string): check for signal
3837 number in range; otherwise if the target board returns
3838 a bogus signal number we might core dump (per David Taylor).
3839
38401999-04-05 David Taylor <taylor@ryobi.cygnus.com>
3841
3842 * utils.c (fputs_maybe_filtered): test value of
3843 pagination_enabled before paginating.
3844
38451999-04-02 James Ingham <jingham@cygnus.com>
3846
3847 * blockframe.c (get_prev_frame): Remove the redundant
3848 get_prev_frame_info. It is now exactly the same as
3849 get_prev_frame, so there is no reason to have both functions.
3850
3851 * rs6000-tdep.c (rs6000_init_extra_frame_info):
3852 frame.h:
3853 a29k-tdep.c (init_extra_frame_info):
3854 config/a29k/tm-a29k.h:
3855 i386-tdep.c:
3856 Change all references to get_prev_frame_info to get_prev_frame.
3857
38581999-04-02 Stan Shebs <shebs@andros.cygnus.com>
3859
3860 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
3861 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
3862 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
3863 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
3864 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
3865 the unused MAINTENANCE_CMDS conditional.
3866
38671999-04-02 James Ingham <jingham@cygnus.com>
3868
3869 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
3870 to call extract_address, not just cast the first 4 bytes, since
3871 the result will be passed to value_at which expects host-byte
3872 order.
3873
3874 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
3875 directly &'ed with 0x03fffffc, rather than using
3876 ADDR_BITS_REMOVE. This would cause inferior function calls to
3877 report the stack incorrectly on return.
3878
3879
38801999-04-02 Keith Seitz <keiths@cygnus.com>
3881
3882 * top.c (ui_loop_hook): Change declaration. Now returns an int.
3883 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
3884 the ui_loop_hook if there was no debug event.
3885 * top.c (ui_loop_hook): Change to return an int and include
3886 on all non-Cygwin builds.
3887 * v850ice.c: Change prototype of ui_loop_hook.
3888 (v850ice_wait): Update call to ui_loop_hook.
3889 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
3890 for non-Cygwin builds. Check return status of ui_loop_hook and
3891 return a timeout if told to detach. Add more documentation.
3892 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
3893 intervals and call ui_loop_hook so that other UIs can
3894 keep up to date. If ui_loop_hook returns non-zero, then
3895 return SERIAL_TIMEOUT to facilitate detaching from the
3896 target.
3897 * remote.c (remote_interrupted_already): Remove.
3898 (remote_interrupt_twice): Revive.
3899 (remote_interrupt): Call remote_stop to interrupt the target
3900 and install remote_interrupt_twice to take more severe
3901 actions if this fails.
3902 (remote_stop): Only attempt to stop the target. This separates
3903 the command line from other UIs.
3904 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
3905 if it is defined.
3906
c906108c
SS
39071999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3908
3909 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
3910 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7a292a7a 3911 * ax.h (enum agent_op): Same.
c906108c
SS
3912 * tracepoint.h (enum actionline_type): Same.
3913 * config/xm-aix4.h: Add declaration for termdef.
3914
39151999-03-31 Stan Shebs <shebs@andros.cygnus.com>
3916
3917 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
3918 decl in jv-lang.c.
3919
7a292a7a
SS
3920 * infrun.c (follow_inferior_fork): Add ifdefs around
3921 SOLIB_REMOVE_INFERIOR_HOOK.
c906108c 3922
7a292a7a 3923Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
c906108c
SS
3924
3925 * valops.c (search_struct_field): revert HP merge change
3926 to this function -- it causes messages to be printed about
3927 member class ambiguity when the compiler is happy.
3928 (search_struct_field_aux): delete -- added as part of HP merge
3929 change; with aforementioned change it is no longer called.
3930
7a292a7a 39311999-03-30 Stan Shebs <shebs@andros.cygnus.com>
c906108c 3932
7a292a7a
SS
3933 Make more HPUX-specific code generic.
3934 * infrun.c: Include top.h.
3935 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
3936 USE_THREAD_STEP_NEEDED): New native macros.
3937 (may_switch_from_inferior_pid, may_follow_exec,
3938 use_thread_step_needed): New globals.
3939 (follow_inferior_fork): Remove HPUXHPPA ifdef.
3940 (follow_exec): Ditto, also save run target and re-push instead of
3941 always pushing child_ops, add ifdefs around SOLIB_RESTART and
3942 SOLIB_CREATE_INFERIOR_HOOK.
3943 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
3944 always use printf_filtered to report new threads.
3945 (normal_stop): Ditto.
3946 * target.h, target.c (find_run_target): New function.
3947 * config/pa/nm-hppah.h: Define new macros.
c906108c 3948
7a292a7a 39491999-03-29 Stan Shebs <shebs@andros.cygnus.com>
c906108c 3950
7a292a7a
SS
3951 * top.h: Include setjmp.h here.
3952 * main.c, top.c: Don't include it here.
c906108c 3953
7a292a7a 39541999-03-29 Keith Seitz <keiths@cygnus.com>
c906108c 3955
7a292a7a
SS
3956 * symtab.c (decode_line_1): Take out change which breaks symbols
3957 which include class names and methods, e.g., "Foo::bar".
3958
39591999-03-26 Stan Shebs <shebs@andros.cygnus.com>
3960
3961 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
3962 Recognize both, as i[3456]86-*-sysv4.2*.
3963 (i[3456]86-*-sysv5*): Recognize.
3964
3965 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
3966
3967Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3968
3969 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
3970 from at_entry_point.
3971
3972Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
3973
3974 * gdbarch.c: Include all headers.
0f71a2f6
JM
3975 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
3976 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
3977 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
3978 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
3979 ``call_dummy_length'', ``pc_in_call_dummy'',
3980 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
3981 multi-arch framework.
7a292a7a
SS
3982
3983 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
3984 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
3985 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
3986 into functions.
3987
3988Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
3989
3990 * remote.c, parse.c: Include ctype.h.
c906108c
SS
3991
39921999-03-24 Stan Shebs <shebs@andros.cygnus.com>
3993
7a292a7a 3994 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
c906108c
SS
3995
3996 Attempt to sort out SCO-related configs.
3997 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
3998 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
3999 (i[3456]86-*-sysv5*): Recognize.
4000 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
4001 Recognize.
4002
7a292a7a
SS
4003Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
4004
4005 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
4006 maintainer.
4007
4008Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
4009
4010 * target.h (enum target_signal): Do not hardwire values of MACH
4011 signals.
4012
40131999-03-14 Ken Raeburn <raeburn@raeburn.org>
4014
4015 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
4016 * target.c (signals): Add SIGINFO description.
4017 (target_signal_from_host, target_signal_to_host): Translate
4018 SIGINFO to/from TARGET_SIGNAL_INFO.
4019
c906108c
SS
4020Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
4021
4022 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
4023 unsigned int.
4024
7a292a7a 4025 From Rodney Brown <rodneybrown@pmsc.com>
c906108c
SS
4026 * target.h (enum thread_control_capabilities), breakpoint.h (enum
4027 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
4028 doesn't allow trailing comma in enum definition.
4029
7a292a7a 4030Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 4031
7a292a7a
SS
4032 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
4033 CALL_DUMMY_LOCATION to if.
4034 * valops.c (call_function_by_hand): Ditto.
4035 * infcmd.c (run_stack_dummy): Ditto.
4036 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
4037 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
c906108c 4038
7a292a7a 40391999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c 4040
7a292a7a
SS
4041 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
4042 check, test for presence of struct save_state_t and the ss_wide
4043 member directly.
4044 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
4045 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
4046 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
4047 * configure, config.in: Regenerated.
c906108c
SS
4048
4049Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4050
4051 * infttrace.c (proc_wait): rename to ptrace_wait.
4052
7a292a7a
SS
40531999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
4054
4055 * dwarf2read.c: Correctly recognize location expressions that
4056 designate LOC_REF_ARG arguments. Doc fixes.
4057 (isderef): New global. (Yuck.)
4058 (dwarf2_complex_location_expr): New complaint.
4059 (read_func_scope): Reject frame_base attributes that use the
4060 `deref' opcode as too complex.
4061 (new_symbol): If both regoff and isderef are set, and the base
4062 register is the frame pointer, then it's a LOC_REF_ARG argument.
4063 (decode_locdesc): Recognize the `deref' opcode in location
4064 expressions. Complain if it's not the last op in the expression.
4065
4066 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
4067 be true, or else value_arg_coere won't respect the (accurate)
4068 information we have about whether a function is prototyped.
4069
40701999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
4071
4072 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
4073 calling functions by hand with odd-sized arguments doesn't munge
4074 the stack.
4075
c906108c
SS
40761999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
4077
4078 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
4079 hosts--gdb doesn't support this yet.
4080 * configure: Regenerated.
4081
7a292a7a
SS
40821999-03-16 Keith Seitz <keiths@cygnus.com>
4083
4084 * remote.c (remote_binary_checked): New file global.
4085 (check_binary_download): New function to check if
4086 stub supports binary downloading that works with
4087 stubs that are not eight bit clean.
4088 (remote_write_bytes): Check for binary download capability
4089 and use it if available.
4090 Remove references to global remote_binary_length. What a hack.
4091 (putpkt_binary): New function.
4092 (putpkt): Call putpkt_binary.
4093 Use xor to escape trouble characters.
4094 * m32r-stub.c (bin2mem): Follow escape char convention change.
4095
c906108c
SS
4096Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
4097
4098 * target.h (struct target_ops), target.c (debug_to_query),
4099 remote.c (pack_hex_byte, remote_query): Promote char parameters to
4100 int. Stops compile problems with pedantic ISO-C compilers.
7a292a7a 4101
c906108c
SS
4102Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
4103
7a292a7a
SS
4104 * go32-xdep.c: Remove, no longer used by anything.
4105 * Makefile.in: Remove references.
4106
c906108c
SS
4107 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
4108 as int instead of char.
4109
7a292a7a 4110Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 4111
7a292a7a
SS
4112 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
4113 (d10v_push_arguments): Use.
c906108c 4114
7a292a7a
SS
4115 From Martin M. Hunt <hunt@cygnus.com>:
4116 * d10v-tdep.c (d10v_push_arguments): When arguments
4117 must be pushed onto the stack, they go on in
4118 reverse order.
c906108c 4119
7a292a7a
SS
41201999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
4121
4122 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
4123 or partial symbols into the overload list; we don't know their
4124 types. (Thanks to Rajiv Mirani.)
4125
41261999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
4127
4128 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
4129 Fix whitespace so --help messages line up.
4130 * configure.in (--with-cpu): Fix capitalization for --help messages.
4131 * configure, aclocal.m4: Regenerated.
4132
4133Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
4134
4135 Support building gdb w/o simulator:
4136 * configure.in: Support --disable-sim. Check for sim directory.
4137 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
4138 * acconfig.h (WITH_SIM): Define.
4139 * configure, config.in: Regenerate.
4140
4141Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
4142
4143 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4144
4145 * top.c (read_command_lines): Reset control_level to 0.
4146 (define_command): Don't do it here.
4147
4148Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
4149
4150 * hppah-nat.c (store_inferior_registers): Delete extern
4151 registers[] declaration.
4152
4153Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
4154
4155 * infrun.c (write_inferior_status_register): New function. Provide
4156 update access to an inf_status register buffer. Only used by HP.
4157 * inferior.h (write_inferior_status_register): Add prototype.
4158
4159 * hppa-tdep.c (push_dummy_frame): Use
4160 write_inferior_status_register when hacking around a sleeping
4161 inferior. Accidently fix byte-order problem.
4162
4163Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4164
4165 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
4166 not needed.
4167
4168Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4169
4170 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
4171 can't overwrite the end of its buffer with escaped characters.
c906108c
SS
4172
41731999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
4174
7a292a7a 4175 Alpha patches from Richard Henderson:
c906108c 4176
7a292a7a 4177 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
c906108c 4178
7a292a7a
SS
4179 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
4180 (FPCR_REGNUM): New.
4181 (REGISTER_CONVERTIBLE): Don't convert fpcr.
4182 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
c906108c 4183
7a292a7a
SS
4184 * stabsread.c (define_symbol): Only consider live range extension
4185 if we have an open parenthesis.
c906108c 4186
7a292a7a
SS
41871999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
4188
4189 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
4190 when the register name is null.
4191
4192Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
4193
4194 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
4195 uses to expressions, remove redundant extern decls.
4196
4197Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
c906108c
SS
4198
4199 * infptrace.c (proc_wait): Rename to ptrace_wait.
4200 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
4201 * inferior.h: Declare ptrace_wait instead of proc_wait.
4202
7a292a7a
SS
4203Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
4204
4205 * breakpoint.c (create_solib_load_unload_event_breakpoint,
4206 create_fork_vfork_event_catchpoint, tcatch_command,
4207 create_exception_catchpoint, break_at_finish_at_depth_command_1,
4208 catch_fork_command_1, ep_skip_leading_whitespace,
4209 break_at_finish_command_1, catch_exec_command_1,
4210 catch_exception_command_1, stop_command, stopin_command,
4211 stopat_command, ep_parse_optional_filename,
4212 ep_find_event_name_end, ep_parse_optional_if_clause,
4213 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
4214 print_stack_frame_stub, print_only_stack_frame_stub,
4215 backtrace_command_1, backtrace_full_command, func_command),
4216 valprint.c (print_decimal), source.c (print_source_lines_base):
4217 Add prototype.
4218
4219 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
4220 print_only_stack_frame_stub): Make param void*.
4221
4222Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
4223
4224 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
4225 define some gdb-specific defines that shouldn't have been in the
4226 global headers.
4227
4228Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4229
4230 * findvar.c (registers, register_valid): Replace array with pointer.
4231 (build_findvar): New function. Allocate space for REGISTERS and
4232 REGISTER_VALID.
4233 (_initialize_findvar): Call build_findvar.
0f71a2f6
JM
4234 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
4235 arch dependant.
7a292a7a
SS
4236
4237 * inferior.h (registers, register_valid): Replace array with
4238 pointer.
4239
4240 * inferior.h (struct inferior_status): Move definition from here.
4241
4242 * infrun.c (struct inferior_status): To here.
4243 (struct inferior_status): Change ``stop_registers'' and
4244 ``registers'' to pointers.
4245 (xmalloc_inferior_status, free_inferior_status): New functions.
4246 (restore_inferior_status): Call free_inferior_status.
4247 (save_inferior_status): Call xmalloc_inferior_status.
4248 (discard_inferior_status): New function, discard inf_status
4249 buffer. Call free_inferior_status.
4250
4251 * inferior.h (stop_registers): Replace array with pointer.
4252 * infrun.c (stop_registers): Update.
4253 (build_infrun): Initialize stop_registers.
4254 (_initialize_infrun): Call build_infrun.
0f71a2f6 4255 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7a292a7a
SS
4256
4257Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
4258
4259 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
4260 LINUXALPHA target. Hack.
4261
4262 * infrun.c (set_follow_fork_mode_command): Make static. Add
4263 prototype.
4264 * tracepoint.c (add_register): Ditto.
4265 * valprint.c (strcat_longest): Comment out. Does not appear to be
4266 used.
4267 * valops.c (find_method_list): Make static. Add prototype.
4268 * thread.c (target_find_new_threads): Make static. Add prototype.
4269 * stack.c (stack_publish_stopped_with_no_frame,
4270 select_and_maybe_print_frame): Comment out. Does not appear to be
4271 used.
4272 (current_frame_command): Add prototype.
4273 * breakpoint.c (break_at_finish_command,
4274 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
4275 static. Add prototype.
4276 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
4277
4278Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
4279
4280 * corefile.c (registers): Delete redundant variable declaration.
4281 * inferior.h (run_stack_dummy): Change array argument to pointer.
4282 * infcmd.c (run_stack_dummy): Update.
4283 * value.h (value_being_returned): Change RETBUF to a pointer.
4284 * values.c (value_being_returned): Update.
4285
4286Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4287
4288 * source.c (list_command): GCC suggested explicit braces to avoid
4289 ambiguous `else'.
4290
4291 * jv-typeprint.c: Include "c-lang.h".
4292 * Makefile.in (jv-typeprint.o): Add dependency.
4293 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
4294 * Makefile.in (jv-valprint.o): Add dependencies.
4295 * objfiles.c: Include "breakpoint.h".
4296 * Makefile.in (objfiles.o): Add dependency.
4297 * main.c: Include <unistd.h>.
4298 * parse.c: Include <ctype.h>.
4299 * remote.c: Include <ctype.h>.
4300 * ser-tcp.c: Include <unistd.h>.
4301 * ax-general.c: Include "value.h".
4302 * Makefile.in (ax-general.o): Add dependency.
4303
4304 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
4305 of a register.
4306 * frame.h (show_and_print_stack_frame): Add function prototype.
4307 * language.h (language_enum): Add function prototype.
4308 * value.h (find_overload_match): Add function prototype.
4309
4310 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
4311 prototype.
4312 * stack.c (backtrace_command): Update.
4313
4314Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
4315
4316 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
4317 * configure, config.in: Re-generate.
4318 * inflow.c: Conditionally include <sys/select.h>.
4319
4320Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
4321
4322 * frame.h (struct dummy_frame): Move from here.
4323 * blockframe.c (struct dummy_frame): To here.
4324
4325 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
4326 ``registers''.
4327 (generic_pop_dummy_frame): Free it.
4328 (generic_push_dummy_frame): Allocate dummy frame register buffer.
4329
4330Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4331
4332 * thread.c (_initialize_thread): Delete redundant ``extern struct
4333 cmd_list_element *cmdlist''.
4334 * printcmd.c (print_command_1): Ditto for ``objectprint'';
4335
43361999-03-09 Stan Shebs <shebs@andros.cygnus.com>
4337
4338 * MAINTAINERS: New file, list of maintainers and areas they
4339 maintain.
c906108c
SS
4340
43411999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
4342
4343 Get working on UnixWare 2.1.1.
4344 * acconfig.h: Update for defines for procfs.c.
4345 * configure.in: Identify defines for procfs.c.
4346 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
4347 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
4348 * configure, config.in: Regenerate.
4349 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
4350 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
4351 legibility.
4352 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
4353 HAVE_NO_PRRUN_T; now set by configure.
4354
7a292a7a
SS
4355Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4356
4357 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
4358 undefined..
4359
4360 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
4361 coding style.
4362
4363 * target.c (debug_to_enable_exception_callback,
4364 debug_to_get_current_exception_event): Return result of call to
4365 debug_target().
4366
43671999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
4368
4369 Another HURD fix from Mark Kettenis:
4370 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
4371 Include <bits/waitflags.h> instead of <waitflags.h> and define
4372 _SYS_WAIT_H to prevent the warning that we should not include it.
4373 (gnu_create_inferior): Change return type of attach_to_child to
4374 void. Do not return INFERIOR_PID.
4375 (gnu_pid_to_exec_file): Change return type to char *.
4376 Return NULL.
4377
4378 Fix for the HURD from Mark Kettenis:
4379 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
4380 makefile fragments for the Hurd.
4381 * Makefile.in (AWK): Add. Set by configure.
4382 * configure: Regenerated.
4383
43841999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
4385
4386 * infttrace.c (hppa_get_process_events): Removed. Function only
4387 usable on HPUX 10 and above. It is not called by any other part
4388 of GDB.
4389 * hppah-nat.c (hppa_get_process_events): Ditto.
4390 (child_pid_to_exec_file): Only call ptrace with
4391 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
4392 * config/pa/nm-hppah.h: Don't set up prototypes et al for
4393 hppa_get_process_events.
4394
4395 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
4396 determine best library automatically.
4397 * config/pa/hpux1020.mh: Ditto.
4398 * config/pa/hpux1100.mh: Ditto.
4399 * configure.in (TERM_LIB): Also check for libHcurses.
4400 * configure: Regenerated.
4401
4402Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4403
4404 * m32r-stub.c: add support for crc "Compare" command.
4405
c906108c
SS
44061999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
4407
7a292a7a
SS
4408 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
4409 dynamically, to save BSS space, and to remove assumptions about
4410 the size of the largest value we'll return.
4411
4412 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
4413 prototype.
4414
4415Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
4416
4417 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
4418 mips-tdep.c (mips_push_arguments), m32r-rom.c
4419 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
4420 (longlong_hexchars), tracepoint.c (validate_actionline,
4421 read_actions), mdebugread.c
4422 (parse_symbol), jv-typeprint.c
4423 (java_type_print_base, java_type_print_base), mdebugread.c
4424 (parse_symbol), top.c (source_command), utils.c
4425 (floatformat_to_doublest): GCC suggest explicit braces to avoid
4426 ambiguous `else'.
c906108c 4427
7a292a7a
SS
4428 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
4429 m32r-rom.c (m32r_supply_register), win32-nat.c
4430 (handle_output_debug_string, child_continue), i960-tdep.c
4431 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
4432 parentheses around assignment used as truth value.
4433
4434 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
4435 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
4436 GCC suggested parentheses around operands.
4437
4438 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
4439 "while" expression in paren.
4440
4441Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
4442
4443 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
4444 (restore_inferior_pid): Takes void* as required by make_cleanup.
4445 Casts pid back to an int.
4446
4447 * procfs.c (make_cleanup_close_proc_file,
4448 close_proc_file_cleanup): Create a proc_file cleanup.
4449 (info_proc): Use.
4450
4451 * defs.h (make_cleanup_freeargv): Helper function. Establish
4452 cleanup using freeargv. Can not just typecast/pass freeargv as it
4453 violates ISO-C.
4454 * utils.c (do_freeargv): Helper.
4455 (make_cleanup_freeargv): New function.
4456
4457 * symmisc.c (maintenance_print_symbols,
4458 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
4459 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
4460 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
4461 (common_open), procfs.c (info_proc), infrun.c (handle_command,
4462 xdb_handle_command), exec.c (exec_file_attach): Call
4463 make_cleanup_freeargv.
4464
44651999-03-03 James Ingham <jingham@cygnus.com>
4466
4467 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
4468 disassembly flavor at startup, rather than hardcoding it.
4469
44701999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
4471
4472 Put return values in the right place.
4473 * fr30-tdep.c (fr30_store_return_value): New function.
4474 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
4475 fr30_store_return_value.
4476
4477Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
4478
4479 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
4480
4481 * breakpoint.c (map_catch_names): Comment out unused function.
4482
44831999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
4484
4485 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
4486 structure on PA 2.0 systems.
4487
44881999-03-02 Stan Shebs <shebs@andros.cygnus.com>
4489
4490 From Gary Thomas <gthomas@cygnus.co.uk>:
4491 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
4492 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
4493 instead of SWI 24.
4494 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
4495 (IN_SIGTRAMP): Define.
4496
44971999-03-02 Nick Clifton <nickc@cygnus.com>
4498
4499 * findvar.c (store_address): Delete incorrect big endian
4500 code.
4501
4502Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
4503
4504 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
4505 __CYGWIN32__.
4506
45071999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
4508
4509 * configure.in: Move setting of gdb_cv_os_cygwin to before
4510 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
4511 * configure: Regenerated.
4512
45131999-03-01 DJ Delorie <dj@cygnus.com>
4514
4515 * configure.in: Change -cygwin32* to -cygwin*.
4516 * configure: Ditto.
4517
45181999-02-25 Stan Shebs <shebs@andros.cygnus.com>
4519
4520 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
4521 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
4522 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
4523 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
4524
45251999-02-25 Keith Seitz <keiths@cygnus.com>
4526
4527 * corelow.c (core_close): Clear out solib state before
4528 closing the bfd associated with the core file.
4529 * solib.c (clear_solib): Mention that clear_solib requires
4530 an open BFD in order for disable_breakpoints_in_shlibs to
4531 determine whether breakpoints live in shared libraries.
4532
45331999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c
SS
4534
4535 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
4536 processor.
4537 * acconfig.h: Add CPU_HPPA_RISC_20
4538 * config.in, configure: Regenerated.
4539 * hppa-tdep.c (pa_register_look_aside): Only refer to new
4540 structure elements if we are on a PA2.0 system.
4541 * defs.h: Include limits.h.
4542
7a292a7a
SS
4543Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4544
4545 * infrun.c (wait_for_inferior): Check scheduler_locking state
4546 before resuming after a thread-specific breakpoint.
4547
45481999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
4549
4550 * aclocal.m4, config.in, configure: Regenerated with latest
4551 autotools.
4552
4553Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
4554
4555 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
4556
4557 * jv-valprint.c (java_print_value_fields): Check for NULL type.
4558
45591999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
4560
4561 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
4562 dead; it seems that they only appeared due to some CVS weirdness.
4563 If they appear again, we may need to distribute garlic and holy
4564 water.
4565
45661999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
4567
4568 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
4569 * configure: Regenerated.
4570
45711999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
4572
4573 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
4574 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
4575 * go32-nat.c: New file, native DJGPP support.
4576 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
4577 * config/i386/go32.mt: New file, DJGPP (go32) target.
4578 * config/i386/nm-go32.h: New file.
4579 * config/i386/tm-go32.h: New file.
4580 * config/i386/xm-go32.h: Rewritten for current DJGPP.
4581
45821999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4583
4584 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
4585 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
4586 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
4587 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
4588 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
4589 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
4590 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
4591 Update FSF address in copyright notices.
4592
45931999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4594
4595 * configure.in: Quote "$GCC" correctly.
4596 * configure: Regenerated.
4597
45981999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
4599
4600 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
4601 section named ".text", which has all the code in it. Instead, look
4602 at all the sections in the file with the `code' flag set.
4603 (find_text_range): New function, that does all the work.
4604
4605Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4606
4607 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
4608
4609Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
4610
4611 * mips-tdep.c (return_value_location): New function. Merge/rewrite
4612 of return-value code in mips_extract_return_value,
4613 mips_store_return_value. Stop buffer overflow when 64 bit value
4614 in 32 bit registers. Extract 64bit float from 32 bit register
4615 pair of correct order.
4616 (mips_extract_return_value, mips_store_return_value): Call
4617 return_value_location. For store, ensure that remainder of
4618 register is zero.
c906108c 4619
7a292a7a 4620Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4621
4622 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
4623
4624 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
4625
7a292a7a 4626Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
c906108c
SS
4627
4628 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
4629 (java_primitive_type_from_name, get_java_object_header_size): Declare.
4630 * jv-lang.c (java_class_from_object): Use get_java_object_type.
4631 * jv-lang.c: Update Class field names: dtable->vtable,
4632 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
4633 nmethods->method_count.
4634 (type_from_class): Demangle array type names.
4635 (java_link_class_type): Array type names are now demangled.
4636 (get_java_object_type): If not defined yet, try looking it up.
4637 (get_java_object_header_size): New function.
4638 (java_primitive_type_from_name): New function.
4639 (java_demangled_signature_length, java_demangled_signature_copy): New.
4640 (java_demangle_type_signature): Re-implement using above functions.
4641 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
4642 to evaluate subexp (not evaluate_subexp_standard).
4643 For BINOP_SUBSCRIPT update for new array type naming scheme.
4644 * jv-valprint.c (java_value_print): Use java_class_from_object.
4645 Update array printing to new array type naming convention.
4646 (java_val_print): Doing check_typedef when printing a pointer is
4647 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
4648 Java bytes as not printed as C chars.
4649
7a292a7a 4650Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4651
4652 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
4653 a last ditch effort (after the partial & minimal symtabs).
4654 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
4655 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
4656 ints to match their standard equivalents.
4657 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
4658 control the prologue skipping process.
4659 * jv-typeprint.c (java_type_print_base): Remove extern for
4660 jv_class_demangle, add new arg for objfile (NULL).
4661 * symtab.h: Remove struct sourcevector and struct source. Definately
4662 not needed.
4663 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
4664 debug info format. Patch from marka.
4665
7a292a7a 4666Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
c906108c
SS
4667
4668 * jv-lang.c (java_class_from_object java_class_is_primitive
4669 is_object_type): Change dtable to vtable.
4670 * (java_primitive_type): Change arg to type char.
4671 * (_initialize_java_language): Make java_char_type be unsigned.
4672 * jv-lang.h: Fixup prototypes.
4673
7a292a7a 4674Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4675
4676 * jv-valprint.c (java_value_print): Fix printing of values where
4677 run time type != compile time type.
4678
7a292a7a
SS
4679Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
4680
c906108c
SS
4681 * Makefile.in: Whack out m2-typeprint.c.
4682 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
4683 global. It's needed by Java.
4684 * (c_type_print_base): Whack prefix off of qualified method names
4685 (names with name spaces).
4686 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
4687 Shrink voffset
4688 to 16 bits to compensate for added bits above (hopefully this is still
4689 enough).
4690 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
4691 attribute bits.
4692 * jv-typeprint.c (java_type_print_base): Fix printing of method
4693 attributes. Handle JVM style manglings.
4694 * (java_print_type): Enable code type print varspec_suffix to allow
4695 array indices to print out.
4696 * jv-valprint.c (java_val_print): Minor formatting.
4697 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
4698 * stabsread.c (read_member_functions): Save public and static attributes.
7a292a7a
SS
4699
4700Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
c906108c 4701
c906108c
SS
4702 * breakpoint.c (watch_command_1): Reformat comment.
4703
c906108c
SS
4704 * c-typeprint.c (c_type_print_base): Reformat comments.
4705
7a292a7a
SS
47061999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
4707
4708 * Makefile.in (VERSION): Bump version to 4.17.2.
4709
4710Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4711
c906108c
SS
4712 * config/pa/nm-hppah.h: Added prototype declarations for
4713 hppa_enable_page_protection_events and
4714 hppa_disable_page_protection_events.
7a292a7a 4715
c906108c
SS
4716 * inftarg.c (child_wait): Fixed code that checks whether
4717 or not the target program has done a fork/vfork.
4718 related_pid does not have a value unless the target
4719 program has forked/vforked.
7a292a7a
SS
4720
4721 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
4722 function always returns a value.
4723 (hppa_remove_hw_watchpoint): Make sure that function always
4724 returns a value.
c906108c 4725
7a292a7a 4726Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
c906108c 4727
7a292a7a
SS
4728 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
4729 let the generic call dummy infrastructure do it.
c906108c
SS
4730
4731Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
4732
4733 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
4734 coffread.c will correctly handle char or short function parameters.
4735
47361999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
4737
4738 * configure, aclocal.m4: Regenerate with correct version of aclocal.
4739
47401999-02-10 Syd Polk <spolk@cygnus.com>
4741
4742 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
4743 * aclocal.m4: Regnerate.
4744 * configure: Regenerate.
4745
47461999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
4747
4748 * demangle.c: Fix comments to mention "set demangle-style"
4749 instead of "set demangle".
4750 Run through indent to fix minor indenting problems.
4751
4752Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
4753
4754 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
4755
4756Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
4757
4758 Declare Gould configuration obsolete:
4759 * configure.host, configure.tgt: Comment out Gould configs.
4760 * Makefile.in: Comment out Gould-related actions.
4761 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
4762 * NEWS: Mention obsolete status.
4763
47641999-02-09 DJ Delorie <dj@cygnus.com>
4765
4766 * sparcl-tdep.c: UDP download works in cygwin
4767
47681999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
4769
4770 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
4771 * configure.in: Don't check for libintl.h.
4772 * configure, config.in: Regenerated.
4773
4774Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
4775
4776 * NEWS: Mention new X packet and PowerPC variant support.
4777
47781999-02-08 Nick Clifton <nickc@cygnus.com>
4779
4780 * configure.host: Add support for StrongARM host.
4781 * configure.tgt: Add support for StrongARM target.
4782
4783Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
4784
4785 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
4786 otherwise on big endian machine with a bfd_vma of 64 bits,
4787 *everything* gets loaded at location 0.
4788
4789Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
4790
4791 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
4792 to target program.
4793
4794Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
4795
4796 * NEWS: Add mentions of various new things.
4797
4798Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
4799
4800 * configure.in: Move termcap determination later in the
4801 file to catch setting of cygwin flag.
4802 * configure: Regenerate.
4803
4804Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
4805
4806 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
4807 * configure.in: Treat libtermcap.a detection as a special case
4808 when hosting on cygwin.
4809 * configure: Regenerate.
4810
48111999-02-03 Keith Seitz <keiths@cygnus.com>
4812
4813 * remote.c (remote_binary_download, remote_binary_length): New
4814 static globals for dealing with binary transmissions.
4815 (remote_write_bytes): Add support for binary downloads
4816 by shadowing the "M" packet with a new "X" packet. This
4817 defaults to ON; if the stub does not understand this, it
4818 will fall back to using "M".
4819 (putpkt): Add support for binary downloading.
4820 * monitor.c (monitor_expect): The mon2000 monitor
4821 on the MSA2000 will also emit random DC1/DC3 chars.
4822 * m32r-stub.c: Change all char's to unsigned char's
4823 to support binary downloading.
4824 (handle_exception): Add support for binary downloading
4825 via a new "X" packet.
4826 (getpacket): Do NOT strip eighth bit of incoming chars.
4827 Watch out for escaped characters in the incoming stream.
4828 (putpacket): Do NOT strip eighth bit of incoming chars.
4829 (bin2mem): New function to write binary data directly to
4830 memory.
4831 * m32r-rom.c: Add new "mon2000" target.
4832
4833Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4834
4835 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
4836 passed to make_cleanup to the correct type.
4837 (hpread_quick_traverse): Change fifth arg to call to
4838 hpread_end_psymtab to be 0.
4839 Compare CURR_MODULE_END to 0 rather than NULL.
4840 Get rid of ifdef'ed out code.
4841 (scan_procs): Get rid of ifdef'ed out code.
4842
4843 * somread.c (som_symfile_read): Coerce first argument passed to
4844 make_cleanup to the correct type.
4845
4846Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4847
4848 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
4849 file needs to be processed by pxdb (an HP debug info massaging
4850 tool), if so call it.
4851 (hpread_build_psymtabs): Initialize scan_start to 0 and
4852 simplify flow of control.
4853
4854 * somread.c (som_symfile_read): Add call to do_pxdb (),
4855 in hp-psymtab-read.c.
4856
4857 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
4858 code.
4859 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
4860 in hp-psymtab-read.c.
4861
48621999-02-02 Martin Hunt <hunt@cygnus.com>
4863
4864 * printcmd.c (print_scalar_formatted): Use strcat to concat all
4865 the output together before calling fprintf_filtered().
4866
48671999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
4868
4869 * configure.in: Require autoconf 2.13.
4870 (AM_EXEEXT): Replace with new AC_EXEEXT.
4871 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
4872 * aclocal.m4: Regenerated.
4873 * configure: Regenerated.
4874
48751999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
4876
4877 Allow PPC users to select which PPC/RS6000 variant they're
4878 debugging at run-time. At the moment, the only thing this affects
4879 is the set of registers visible.
4880 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
4881 to the function rs6000_register_name.
4882 (rs6000_register_name): Include extern decl.
4883 (NUM_REGS): Bump to 183. What's the right way to do this?
4884 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
4885 FIRST_SP_REGNUM, LAST_SP_REGNUM.
4886 (REGISTER_BYTES): Recompute this.
4887 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
4888 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4889 some concomitant formatting changes.
4890 #include "gdbcmd.h", so we can define commands here.
4891 (struct variant): New structure.
4892 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
4893 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
4894 (register_names_rs6000, register_names_uisa, register_names_403,
4895 register_names_403GC, register_names_505, register_names_860,
4896 register_names_601, register_names_602, register_names_603,
4897 register_names_604, register_names_750, variants): New variables.
4898 (rs6000_register_name, install_variant, find_variant_by_name,
4899 install_variant_by_name, list_variants, show_current_variant,
4900 set_processor, show_processor): New functions.
4901 (_initialize_rs6000_tdep): Define new commands `set processor' and
4902 `show processor', and call install_variant_by_name to set the
4903 default variant.
4904 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
4905 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4906 some concomitant formatting changes.
4907 * configure.in: Accept the `--with-cpu' flag, to specify a default
4908 processor variant.
4909 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
4910 by configure's `--with-cpu' flag.
4911 * config.in, configure: Regenerated.
4912
4913Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
4914
4915 * buildsym.h, buildsym.c: Convert to ANSI-only.
4916
4917 * buildsym.h, buildsym.c: Reformat to standard.
4918
4919 * buildsym.c (merge_symbol_lists): Remove unused variable.
4920 (_initialize_buildsym): Remove, does nothing.
4921
49221999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
4923
4924 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4925 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
4926 to include explicit void return type as per documentation. Fix up
4927 occasions where stubs erroneously checked return type.
4928
4929Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
4930
4931 From J.T. Conklin <jtc@redbacknetworks.com>:
4932 * remote.c (remote_query): Fix tipo.
4933
4934Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
4935
4936 * configure.tgt (v850): Add wildcard to match.
4937
4938Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4939
4940 * inferior.h: Ran indent.
4941
4942 * fork-child.c: Ran indent.
4943
4944 * infrun.c : Ran indent.
4945
4946Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4947
4948 * infrun.c (_initialize_infrun): Do not stop or print anything
4949 when a SIGWINCH is received.
4950
4951 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
4952 (f-exp.tab.c): Ditto.
4953 (jv-exp.tab.c): Ditto.
4954 (c-exp.tab.c): Ditto.
4955 (YACC): Define as @YACC@.
4956
49571999-01-29 Martin Hunt <hunt@cygnus.com>
4958
4959 Changes from Keith Seitz <keiths@cygnus.com>
4960 * valops.c (value_assign): Add calls to register_changed_hook and
4961 memory_changed_hook to inform UIs that the user has changed
4962 the target's registers/memory.
4963 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
4964 * defs.h: Remove declaration for pc_changed_hook and
4965 add declarations for register_changed_hook and
4966 memory_changed_hook.
4967 * top.c: Ditto.
4968
49691999-01-29 Mark Alexander <marka@cygnus.com>
4970
4971 * procfs.c (wait_fd): Handle deleted threads correctly.
4972
49731999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
4974
4975 * utils.c (init_page_info): Force window size if running under emacs.
4976
49771999-01-27 James Ingham <jingham@cygnus.com>
4978
4979 * typeprint.c (whatis_exp): Remove static declaration.
4980
4981Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4982
4983 * hp-psymtab-read.c: Reformat using indent.
4984
4985Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4986
4987 * hp-psymtab-read.c: Reformat comments, update copyright.
4988
4989Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
4990
4991 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
4992 v850_register_names, v850_processor_type_table): Declare tables
4993 and structures for handling differences in register names for
4994 v850 and v850e.
4995 (struct reg_list): Define new structure for creating tables
4996 of register bit masks in v850e instrutions.
4997 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
4998 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
4999 and pushm.
5000 (v850_target_architecture_hook): New function to set register
5001 names based on current machine.
5002 (_initialize_v850_tdep): Set up target_architecture_hook.
5003 * config/v850/tm-v850.h (v850_register_names): Declare.
5004 (REGISTER_NAME): Define to refer to v850_register_names.
5005 (SR0_REGNUM, CTBP_REGNUM): Define.
5006 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
5007
5008Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5009
5010 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
5011 the correct value from configure output.
5012 (jv-exp.tab.c): Ditto.
5013 (f-exp.tab.c): Ditto.
5014 (m2-exp.tab.c): Ditto.
5015
50161999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
5017
5018 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
5019 * frame.h (select_and_print_frame): Add prototype.
5020 * stack.c (func_command): Call select_and_print_frame with correct
5021 number of arguments. Reformat whitespace.
5022
5023Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
5024
5025 * remote.c (remote_query): fix maximum packet size to account for
5026 remote_debug use.
5027 (putpkt): add comment to alert about extra byte need.
5028
5029Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
5030
5031 * sh-tdep.c (sh_target_architecture_hook): Return immediately
5032 when a matching machine is found.
5033
5034Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
5035
5036 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
5037 (common_breakpoint): Restore support for instruction breakpoints
5038 on non-LSI targets.
5039
5040Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5041
5042 * stack.c: Close open comment.
5043 * symtab.c (find_pc_sect_line): Ditto.
5044
5045Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
5046
5047 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
5048 init only nonzero fields, leave to_require_attach and
5049 to_require_detach empty, not needed for /proc systems yet.
5050 (_initialize_procfs): Call init_procfs_ops.
5051
5052 From J.T. Conklin <jtc@redbacknetworks.com>:
5053 * top.c (init_main): Fix tipo in description of the remotetimeout
5054 variable.
5055 * breakpoint.c (bpstat_stop_status): Handle systems where
5056 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
5057
5058Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
5059
5060 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
5061 to fill in mon960_cmds structure properly.
5062
5063Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
5064
5065 * remote-sds.c (sds_ops): Define only once.
5066 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
5067 (init_sds_ops): Init only non-zero fields.
5068
5069Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
5070
5071 * h8300-tdep.c (original_register_names, h8300h_register_names,
5072 h8300_register_names): Define new variables.
5073 (set_register_names): New function to set register names based on
5074 current CPU type.
5075 (h8300_command, h8300h_command, h8300s_command): Call
5076 set_register_names.
5077 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
5078 (REGISTER_NAME): Define to refer to h8300_register_names.
5079
50801999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
5081
5082 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
5083 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
5084 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
5085 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
5086 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
5087 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
5088 v850ice.c win32-nat.c: cosmetic changes to conform to coding
5089 standards.
5090
50911999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
5092
5093 Use aclocal to generate GDB's aclocal.m4 script.
5094 * acinclude.m4: New file, containing the hand-written local macro
5095 definitions that used to be in aclocal.m4. Don't sinclude
5096 ../bfd/aclocal.m4 any more; running aclocal in this directory will
5097 get us the definitions we need. HOWEVER: Do sinclude
5098 ../bfd/acinclude.m4, because we need the definition of
5099 BFD_NEED_DECLARATION.
5100 * aclocal.m4: Regenerated by aclocal.
5101 * configure: Regenerated by autoconf.
5102
5103Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
5104
5105 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
5106 silent, controls whether to print message about removal of shared
5107 library breakpoints.
5108 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
5109 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
5110 * osfsolib.c (clear_solib): ditto.
5111 * solib.c (clear_solib): ditto.
5112 * somsolib.c (som_solib_restart): update call to
5113 disable_breakpoints_in_shlibs.
5114
5115 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
5116 is define.
5117
5118Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5119
5120 * corelow.c (solib_add_stub): Ditto.
5121 (core_file_to_sym_file): Cast make_cleanup parameter.
5122
5123 * solib.c (symbol_add_stub, solib_map_sections): Change argument
5124 to PTR insted of a char*. Matches catch_errors interface.
5125
5126Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5127
5128 * remote-array.c (array_open): Don't use fprintf_filtered to send
5129 data to the log file.
5130
5131 * remote-array.c (handle_load_dll): Change argument type to PTR so
5132 that it is compatible with catch_errors.
5133 * ocd.c (ocd_start_remote): Ditto.
5134 * remote-sds.c (sds_start_remote): Ditto.
5135
5136 * win32-nat.c (win32_child_thread_alive): Namespace proof
5137 child_thread_alive.
5138 (init_child_ops): Update.
5139
5140Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
5141
5142 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
5143 gdb_hostif.dbgarg to NULL instead of stdout.
5144 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
5145
5146Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
5147
5148 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
5149
5150 * target.c (dummy_target): Don't initialize statically.
5151 (init_dummy_target): New function, fills in dummy_target.
5152 (initialize_targets): Use it.
5153 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
5154 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
5155 (_initialize_hpux_thread): Use it.
5156 * m3-nat.c (m3_ops): Don't initialize statically.
5157 (init_m3_ops): New function, fills in m3_ops.
5158 (_initialize_m3): Use it.
5159
51601999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
5161
5162 * sol-thread.c: delete compile time initialization of target_ops
5163 (_initialize_sol_thread): initialize target_ops at run time.
5164 * hpux-thread.c: added target_ops entry.
5165 * m3-nat.c: ditto.
5166
5167Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
5168
5169 * procfs.c (procfs_ops): delete compile time initialization.
5170 (_initialize_procfs): initialize procfs_ops at run time.
5171
5172Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
5173
5174 * configure.in: Ensure that -luser32 is always linked in
5175 for cygwin build.
5176 * configure: Regenerated.
5177
5178Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
5179
5180 * values.c (value_virtual_fn_field): Clear the pointed-to
5181 offset when casting to the base class.
5182
5183Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
5184
5185 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
5186 udi_ops; delete NULL initializers.
5187
5188Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
5189
5190 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
5191 gdb_file*.
5192
5193 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
5194
5195Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
5196
5197 * stack.c (print_frame_info_base): Don't cast call to
5198 catch_errors.
5199 (print_args_stub): Change char* arg to PTR.
5200 * symmisc.c (print_symbol): Ditto.
5201 * top.c (quit_cover): Ditto.
5202 * remote.c (remote_open_1, remote_start_remote): Ditto.
5203 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
5204 Ditto.
5205
5206 * stack.c (backtrace_command): Cast first arg of make_cleanup to
5207 make_cleanup_func.
5208 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
5209
5210Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5211
5212 * defs.h (catch_errors_ftype): Define.
5213 (catch_errors): Replace char* arg with PTR arg.
5214 * top.c (catch_errors): Update
5215
5216 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
5217 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
5218 catch_errors.
5219 (breakpoint_cond_eval, watchpoint_check,
5220 cover_target_enable_exception_callback, breakpoint_re_set_one):
5221 Arg is PTR not char*.
5222
5223 * breakpoint.c (cover_target_enable_exception_callback): Change
5224 type to int. Check for cast values of 0 and -1. Return a result!
5225 (insert_breakpoints): Move declaration of SAL and ARGS to where
5226 they are used.
5227
52281999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
5229
5230 * remote.c (remote_query): new function - creates proper interface
5231 to the remote protocol "q" command.
5232
5233Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5234
5235 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
5236 (always use pointer for structs passed by value).
5237
52381999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
5239
5240 * target.h: added entry for target queries (to_query)
5241 target.c: ditto.
5242
5243Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
5244
5245 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
5246 * remote-udi.c (udi_wait): fix stream arg to fwrite.
5247 * symmisc.c (maintenance_check_symtabs): fix stream argument to
5248 print_address_numeric.
5249
5250Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
5251
5252 * breakpoint.c (insert_breakpoints): insert cast to eliminate
5253 warning.
5254
5255Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5256
5257 * infrun.c (set/show scheduler-locking) New command. Set a
5258 mode bit that will control how GDB attempts to control thread
5259 scheduling for step, continue, etc. (resume): make use of
5260 the schedule-locking mode.
5261 * target.h (struct target_ops): new field to_has_thread_control.
5262 * sol-thread.c: initialize target_ops to_has_thread_control.
5263 * procfs.c: ditto.
5264 * target.c: ditto.
5265 * m3-nat.c: ditto.
5266 * remote.c: ditto.
5267 * hpux-thread.c: ditto.
5268 * thread.c: cull duplicate prototypes. Move prototypes to top.
5269 * serial.c: indentation cleanup.
5270 * breakpoint.c: add casts to eliminate compiler warnings.
5271
5272Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
5273
5274 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
5275 call to fork_inferior. The shell param is now NULL.
5276
52771999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5278
5279 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
5280 (_initialize_remote_monitors): Same.
5281
52821999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5283
5284 * monitor.c (init_monitor_ops): Initialize the monitor_ops
5285 structure if it hasn't already been done.
5286
5287Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
5288
5289 * inftarg.c (child_ops): Don't initialize statically.
5290 (init_child_ops): New function, fills in child_ops.
5291 (_initialize_inftarg): Use it.
5292 (child_post_attach): Declare extern.
5293 (child_wait): Fix ambiguous parens.
5294 (child_attach_to_process): Remove unused local wstatus.
5295 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5296 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5297 child_has_forked, child_insert_exec_catchpoint,
5298 child_remove_exec_catchpoint): Return a value.
5299
5300Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5301
5302 * remote.c (remote_wait): Add inferior_pid to thread list only
5303 if it is not already there.
5304
53051999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
5306
5307 * scm-tags.h: Update FSF's address on copyright notice.
5308 * ser-e7kpc.c: Same.
5309 * gnu-nat.h: Same.
5310
5311Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
5312
5313 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
5314 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
5315 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
5316 * stack.c (struct function_bounds): Remove superfluous `typedef'.
5317 * symfile.c (list_overlays_command): stdout => gdb_stdout.
5318 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
5319 * utils.c (print_spaces): Make more efficient.
5320
5321Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
5322
5323 * utils (print_spaces): fix arg to strcat; fix formatting.
5324
5325Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
5326
5327 * exec.c (exec_ops): Don't initialize statically.
5328 (init_exec_ops): New function, fills in exec_ops.
5329 (_initialize_exec): Use it.
5330
5331Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5332
5333 Beta FR30 port.
5334 * fr30-tdep.c
5335 * config/fr30/tm-fr30.h
5336
5337Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
5338
5339 * configure.in: Add an --enable-tui argument. Construct
5340 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
5341 have the GUI, then we need this to process libgui.h.
5342 (ENABLE_CFLAGS): define and export BUILD_TUI.
5343 (AC_CHECK_HEADERS): Add check for term.h.
5344
5345 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
5346
5347 * config.in, configure : regenerated.
5348
5349 * Makefile.in: Allow the TUI code to be conditionally enabled.
5350 (TUI_LIBRARY): New variable, value are set by the configuration
5351 script. Set to the empty string when the TUI isn't enabled.
5352 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
5353 tui/libtui.a directly.
5354 (BUILD_TUI): build the tui -- only when configured with
5355 --enable-tui.
5356 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
5357 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
5358 (all-tui): remove dependency from phony target.
5359 (c-exp.tab.c): use ylwrap instead of bison.
5360 (jv-exp.tab.c): ditto.
5361 (f-exp.tab.c): ditto.
5362 (m2-exp.tab.c): ditto.
5363 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
5364 (SFILES): remove the above files
5365 (COMMON_OBS): remove somread.o
5366 (SFILES): Add the tui files to this, so they get included in etags
5367 tables.
5368 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
5369 tui/libtui.a to the link list.
5370 (all-tui): New rule, which does a recursive make in the tui
5371 subdir.
5372 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
5373 don't echo the make command. This is closer to what the other
5374 recursions do.
5375 (HFILES_NO_SRCDIR): add hpread.h
5376 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
5377 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
5378 the new files. Remove hpread.c, hpread.o
5379 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
5380 fictitious target. Since the fictitious target never existed,
5381 make would always relink.
5382 (tui/libtui.a): Always recurse to make sure the library is up to
5383 date.
5384
5385Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
5386
5387 * remote.c: Pacify --enable-build-warnings, reformat code
5388 to conform to standards, fix spelling errors.
5389 (ishex, stubhex, record_currthread, etc): Declare.
5390 (ishex, stubhex): Declare char arg as int.
5391 (pack_string): Comment out, never used but possibly useful.
5392 (threadref_to_int, remote_get_threadinfo, etc): Make static.
5393
5394Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
5395
5396 The following changes were made by Elena Zannoni
5397 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
5398 part of a project to merge in changes made by HP.
5399
5400 * c-exp.y: use external flag hp_som_som_object_present to decide
5401 whether code was compiled by HP's compilers. Add two new C++
5402 tokens for true and false.
5403 (yylex): check for template name is done differently for the
5404 HP/aCC compiler case. Change some of the template processing code
5405 for handling HP aCC templates. Handle true and false tokens.
5406
5407Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5408
5409 * remote.c (record_curthread): Must not modify inferior_pid when
5410 called from wait_for_inferior. Instead, if a new thread-id is
5411 detected, call add_thread.
5412 (MAGIC_NULL_PID): new macro, use instead of the magic number
5413 "42000".
5414 (remote_find_new_threads): if inferior_pid is unknown, get and use
5415 the current thread id.
5416 (remote_start_remote): on connecting, attempt to get the current
5417 thread id for inferior_pid.
5418 (remote_resume): If pid == -1, then resume any-thread (not the
5419 current thread specifically). Also some cosmetic fixups.
5420
5421 * thread.c (info_threads_command): don't initialize current_pid
5422 until after call to FIND_NEW_THREADS (which may change inferior_pid).
5423 Also some cosmetic fixups.
5424 * infrun.c: cosmetic fixups and casts to avoid warnings.
5425 * infcmd.c: cosmetic fixups, mainly long lines.
5426
5427Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
5428
5429 * target.c (noprocess): terminate sentence with a period.
5430 * breakpoint.c (catch_command_1): ditto.
5431
5432 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
5433 testsuite losses with no real gain.
5434
5435 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
5436 if tm-*.h hasn't overridden default value.
5437
54381999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5439
5440 * configure.in: Fix whitespace indentation for --help.
5441 * configure: Regenerated.
5442
54431999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
5444
5445 * main.c: Add --write command line option, document -w.
5446 * gdb.1: Document --write.
5447
54481999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5449
5450 * configure.in: Require autoconf 2.12.1 or higher.
5451 * doc/configure.in: Ditto.
5452 * nlm/configure.in: Ditto.
5453 * rdi-share/configure.in: Ditto.
5454 * testsuite/configure.in: Ditto.
5455 * doc/Makefile.in: Don't hardcode $(SHELL).
5456 * nlm/Makefile.in: Ditto.
5457 * rdi-share/Makefile.in: Ditto.
5458 * testsuite/Makefile.in: Ditto.
5459
5460Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
5461
5462 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
5463 inits of new fields, including ref to bogus field.
5464 (vx_ops, vx_run_ops): Make static.
5465
5466Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
5467
5468 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
5469 already defined in tm.h.
5470
5471 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
5472 conditionalize its inclusion.
5473 * infttrace.c: ditto.
5474
5475For older changes see ChangeLog-98
5476\f
5477Local Variables:
5478mode: change-log
5479left-margin: 8
5480fill-column: 74
5481version-control: never
5482End:
This page took 0.25204 seconds and 4 git commands to generate.