1 Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
3 * gdbarch.sh: Describe each of the fields.
5 Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
11 1999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
13 * i387-tdep.c (print_387_control_bits): Don't print newline; the
14 callers take care of that. (Thanks to H.J. Lu.)
16 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
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.
23 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
25 * remote.c (_initialize_remote): Fix the specification of the
26 "remote" prefix to set and show commands.
28 1999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
30 * event-loop.c (create_file_event): New function. Creates a gdb
32 (gdb_wait_for_event): Use create_file_event().
33 * event-loop.h: export create_file_event().
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().
39 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
40 with 0xf are branch instructions.
41 (m32r_scan_prologue): Initialize framesize to 0.
43 1999-09-07 J.T. Conklin <jtc@redback.com>
45 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
46 (handle_exception): Removed #if'd out exception hook code.
48 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
50 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
51 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
54 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
56 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
59 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
61 From Jim Blandy <jimb@cygnus.com>:
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.
67 1999-09-05 Fred Fish <fnf@cygnus.com>
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.
73 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
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.
82 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
84 * monitor.c (monitor_supply_register): Stop scanning val string
85 if a newline is encountered.
87 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
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
94 (readchar): Re-enable output of characters read from monitor when
97 (monitor_supply_register): Use ULONGEST to hold value.
98 Replace strtoul() call with hand-coded loop to handle values
101 (monitor_store_register): Use ULONGEST to hold value.
103 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
105 [Merged linux/x86 floating point code from Bill Metzenthen,
106 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
107 following remarks are Jim Blandy's.]
109 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
111 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
113 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
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
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
132 (i387_extract_floating, i387_store_floating): New functions.
134 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
135 if it's #defined. Tolerate values of `nonnegative' other than
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.
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
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.
172 * source.c (list_command): List the right number of source lines,
173 even if we're at the top of the file.
175 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
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.
181 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
189 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
211 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
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.
221 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
222 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
225 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
227 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
229 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
230 Pass REGISTER_SIM_REGNO converted register number to the
233 1999-09-01 Tom Tromey <tromey@cygnus.com>
235 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
237 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
249 * remote-sds.c (sds_fetch_registers): 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.
262 * event-top.c: Include handle_sigwinch() function prototype within
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'
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.
277 * ser-pipe.c (pipe_readchar): If timeout is expired return
279 * ser-tcp.c (tcp_readchar): If timeout is expired return
282 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
284 * version.h: New file.
285 * Makefile.in (version_h): Define.
286 (version.o): Add target.
288 * remote-array.c: #include "version.h".
289 (version): Delete extern declarations.
290 * Makefile.in (remote-array.o): Add dependency on version.h.
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.
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.
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.
304 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
306 * Makefile.in (monitor.o): For moment, don't try to compile with
307 -Werror. monitor.c has -Wformat problems. See Makefile.in for
310 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
312 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
313 for doubleword store instructions.
314 (hppa_frame_find_saved_regs): Similarly.
316 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
318 * d30v-tdep.c (d30v_print_register):
319 (tdisassemble_command):
321 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
324 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
325 Fix printf arguments.
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
333 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
335 (monitor_supports_breakpoints): Integer variable.
337 * m32r-rom.c: #include "inferior.h" and <ctype.h>
338 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
340 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
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.
346 1999-08-15 Fred Fish <fnf@cygnus.com>
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.
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.
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.
389 * hpread.c (hpread_build_psymtabs): Ditto.
390 * symfile.h (dwarf2_build_psymtabs): Ditto.
392 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
394 * core-cisco.c (get_seg_info): Make static.
395 * coffread.c (enter_linenos): Pass objfile instead of section
397 * jv-vm.c (jv_vm_internal_lookup_symbol): Call allocate_objfile
398 with the right number of arguments.
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);
405 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
407 * Makefile.in: add rule for sol-thread.o.
408 Add rule for linux-thread.o.
410 1999-08-13 Jim Kingdon <kingdon@redhat.com>
412 Threads code from gdb 4.18-codefusion-990706
413 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
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.
422 More threads code from the same place:
423 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
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.
430 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
432 * sol-thread.c (sol_thread_detach): strip thread-id out of
433 inferior_pid, so that procfs_detach can't choke on it.
435 1999-08-31 J.T. Conklin <jtc@redback.com>
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.
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.
446 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
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.
452 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
454 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
456 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
458 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
460 * alpha-tdep.c (heuristic_proc_start): Ditto.
462 From Stan Shebs <shebs@andros.cygnus.com>:
463 * defs.h (strlen_paddr): Fix prototype - add void argument list.
465 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
467 * defs.h (gdb_print_host_address), utils.c
468 (gdb_print_host_address): Rename gdb_print_address.
470 * expprint.c, gdbtypes.c, symmisc.c: Update.
472 *expprint.c: Use gdb_print_host_address when displaying native
475 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
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''.
488 * utils.c (strlen_paddr): New function.
490 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
492 * config/d30v/tm-d30v.h (d30v_frame_chain,
493 d30v_init_frame_pc): Add declaration.
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.
499 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
502 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
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.
508 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
517 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
519 * d10v-tdep.c: #include "language.h".
521 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
523 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
524 * configure, acconfig.in: Re-generate.
526 * remote-rdp.c: #include <time.h>
528 * config/arm/tm-arm.h (arm_float_info): Add declaration.
530 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
531 double ptr arg to void ptr arg.
533 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
535 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
536 (convert_from_extended, convert_to_extended): Add declaration.
538 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
540 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
541 * configure: Re-generate.
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.
549 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
551 * utils.c: #include "event-loop.h" for declaration of
553 * Makefile.in (utils.o): Add dependency on event-loop.h.
555 * event-top.c (mark_async_signal_handler_wrapper,
556 async_request_quit): Move declaration from here.
557 * event-loop.h: To here.
559 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
561 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
562 hence expose declaration of function dont_repeat.
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>.
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.
575 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
577 * defs.h (struct tui_stream, enum streamtype): Move from here.
580 * main.c (tui_file_fputs): Move from here.
583 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
585 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
587 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
596 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
598 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
599 removed--no longer checked anywhere in gdb.
601 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
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.
607 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
609 * defs.h (LONGEST): Move definition to earlier in file - to just
611 (paddr_u, paddr_d): Declare.
612 * utils.c (decimal2str): New function.
613 (paddr_u, paddr_d): Define.
615 * remote.c (remote_cisco_section_offsets,
616 compare_sections_command): Fix XprintfX arguments. Use paddr...
617 (putpkt_binary): Fix XprintfX arguments.
619 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
621 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
622 by gcc -Wparentheses.
624 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
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.
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.
636 1999-08-26 J.T. Conklin <jtc@redback.com>
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
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.
649 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
651 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
654 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
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.
674 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
676 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
678 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
679 (TDEPFILES): From here.
681 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
690 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
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.
696 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
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
702 (in_solib_call_trampoline): Return nonzero if we are in a function
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
709 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
710 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
712 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
714 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
715 lost when libgdb.a was added.
717 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
719 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
721 * gdbarch.sh: New file.
722 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
724 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
726 * Makefile.in (libgdb.a): New target.
727 (gdb$(EXEEXT)): Add dependency on libgdb.a.
728 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
730 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
732 * infttrate.c (child_pid_to_exec_file): Find the correct base
733 of the stack for PA64.
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
740 (add_to_solist): Do not add the same shared library to the shlib
743 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
750 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
752 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
753 that refer to registers or register variables.
755 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
757 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
759 * pa64solib.c pa64solib.h: New files.
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
765 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
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.
773 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
778 (throughout): use "warning" instead of "fprintf(stderr, ..."
779 [Also clean up a bunch of excessively long lines.]
781 1999-08-19 J.T. Conklin <jtc@redback.com>
783 * i386-stub.c (waitabit): Removed.
784 (breakpoint): Update.
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.
789 * m68k-stub.c (putpacket): Restore code so that packets are sent
790 until an ACK is received.
792 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
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
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.
807 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
809 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
811 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
813 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
815 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
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.
821 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
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
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.
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).
848 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
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
855 (SET_BREAK): Increment the debug register's reference count.
856 (DR_DEF): New macro, returns the access and length bits of the
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
880 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
881 TYPE argument as well.
883 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
885 * mips-tdep.c: Add more comments.
887 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
889 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
890 about frameless functions.
892 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
900 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
902 * remote.c (remote_async_mourn): New function. Async version of
905 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
907 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
910 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
912 * command.c (CANT_FORK) [__MSDOS__]: Define.
913 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
915 [__DJGPP__]: Return to the original directory after the shell
918 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
920 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
923 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
925 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
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
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
940 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
941 (go32_attach): Signal an error: we cannot attach to other
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
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
958 (go32_terminal_init): Invalidate the raw/cooked mode information.
959 (go32_terminal_info): Print whether the inferior's terminal is in
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
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.
973 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
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
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.
988 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
989 (find_dummy_frame_regs): Corresponding changes.
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
997 (frame_chain, restore_pc_queue): Likewise.
999 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
1000 pointers are 64bits wide.
1002 * hppa-tdep.c (record_text_segment_lowaddr): New function.
1003 (internalize_unwinds): Use it if addressess are 8 bytes wide.
1005 * symfile.c (syms_from_objfile): No longer warn if the lowest
1006 section does not have SEC_CODE set.
1008 * Makefile.in (pa64solib.o): Add dependencies.
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
1014 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
1016 (struct obj_private_struct): Add new entry for the objfile's DP
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.
1023 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1025 * configure.in: Try -lsocket when looking for socketpair.
1026 * configure, config.h: Re-generate.
1028 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1030 From Christopher Faylor <cgf@cygnus.com>:
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
1036 * event-top.c (gdb_readline2): Do not buffer the input, because
1037 doing so can interfere with select/poll in bad ways.
1039 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
1041 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
1043 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
1045 (notice_quit): No need to define this function for the DJGPP port.
1047 1999-08-13 James Ingham <jingham@leda.cygnus.com>
1049 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
1050 macro no longer modifies its argument. Update uses to accord.
1052 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
1054 * configure.tgt: Add rdi-share to configdir for the Arm targets.
1056 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
1058 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
1061 * infttrace.c (ttrace_write_reg_64): New function.
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.
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.
1075 * configure.host: Distinguish between wide and narrow modes
1077 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
1079 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
1080 (REG_PARM_STACK_SPACE): Likewise.
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
1087 (typedef opd_data): New.
1088 (obj_private_data_t): Include pointer to opd_data structure.
1090 1999-08-13 Keith Seitz <keiths@cygnus.com>
1092 * stabsread.c (stabsread_clear_cache): New funciton which clears
1093 an optimization cache of the reader.
1095 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
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...)
1102 1999-08-13 Keith Seitz <keiths@cygnus.com>
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.
1108 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
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
1118 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
1120 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
1122 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
1123 unless HAVE_BTOWC is defined.
1125 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1127 From J.T. Conklin <jtc@redback.com>:
1128 * gdbinit.in: Change the template .gdbinit to match the recent
1129 fatal error handling change.
1131 1999-08-11 Keith Seitz <keiths@cygnus.com>
1133 * maint.c (maintenance_internal_error): Fix typo in prototype.
1135 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
1137 * remote.c (remote_rcmd): Pass an empty command across to the
1138 target. Check for and handle an ``Enn'' return status.
1140 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1142 * maint.c (_initialize_maint_cmds): Add ``maintenance
1143 internal-error'' command.
1144 (maintenance_internal_error): New function.
1146 1999-08-10 James Ingham <jingham@leda.cygnus.com>
1148 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
1151 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
1153 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
1155 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
1156 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
1158 1999-08-10 J.T. Conklin <jtc@redback.com>
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.
1164 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1166 * remote.c (remote_async_open_1): Remove casting in call to
1168 (extended_remote_async_create_inferior): Ditto.
1170 * event-top.c (change_line_handler): Ditto.
1171 (_initialize_event_loop): Ditto.
1173 * infrun.c (complete_execution): Ditto.
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.
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
1185 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
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.
1198 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
1200 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
1201 Transfer responsibility for the PowerPC from Andrew Cagney to
1204 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
1211 1999-08-09 Tom Tromey <tromey@cygnus.com>
1213 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
1215 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
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.
1238 * symfile.h (sym_read): Remove section_offsets from prototype.
1239 * symfile.c (syms_from_objfile): Call sym_read without
1241 (reread_symbols): Ditto.
1243 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
1244 to allocate sections offsets array.
1245 * xcoffread.c (xcoff_symfile_offsets): Ditto.
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
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.
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.
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.
1270 1999-08-08 James Ingham <jingham@leda.cygnus.com>
1272 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
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.
1276 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
1291 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1293 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
1294 definition from here.
1297 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
1299 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
1301 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1303 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
1305 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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>.
1324 1999-08-06 James Ingham <jingham@leda.cygnus.com>
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
1331 1999-08-06 Tom Tromey <tromey@cygnus.com>
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.
1340 1999-08-06 James Ingham <jingham@leda.cygnus.com>
1342 These are some fixups for the Arm, and support for the
1343 disassembly-flavor for the ARM.
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.
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.
1360 (arm_frameless_function_invocation): Adjust for
1361 frameless functions that have 1 or 2 instructions that mimic the
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.
1368 Add support for the "Z" and "z" packets to request the stub
1369 to set a breakpoint.
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
1379 (remote_remove_watchpoint): Ditto.
1380 (remote_insert_hw_breakpoint): Ditto.
1381 (remote_remove_hw_breakpoint): Ditto.
1383 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
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.
1390 1999-08-06 Tom Tromey <tromey@cygnus.com>
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.
1396 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
1398 * infrun.c: Convert code to pure standard C, elim some warnings.
1399 (stopped_for_shlib_catchpoint): Remove, never used.
1401 1999-08-05 Keith Seitz <keiths@cygnus.com>
1403 * NEWS: Mention new Motorola MCore target.
1405 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
1408 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1410 * configure.in (configdirs): Add check for socketpair.
1411 * configure, config.in: Re-generate.
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.
1417 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
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''.
1448 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
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.
1465 * target.h (struct target_ops): Add field to_rcmd.
1466 (target_rcmd): Define.
1468 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1470 * remote.c: Replace comment describing remote protocol with
1471 pointer to official document.
1473 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
1488 1999-08-04 Keith Seitz <keiths@cygnus.com>
1490 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
1492 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
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.
1498 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
1500 * c-valprint.c (c_val_print): When printing decimal equivalent
1501 of a char, cast appropriately.
1503 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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
1509 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
1511 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
1513 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
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
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.
1524 1999-07-31 Fred Fish <fnf@cygnus.com>
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.
1530 1999-07-30 Jim Blandy <jimb@cris.red-bean.com>
1532 * hppa-tdep.c (pa_print_registers): Frob register output some more.
1534 1999-07-29 Jim Blandy <jimb@cris.red-bean.com>
1536 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
1537 consideration, make this a CORE_ADDR, like WDB did.
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):
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
1555 (initialize_hp_cxx_exception_support): Collect value of
1556 eh_notify_callback_addr from args.
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
1564 * infttrace.c (thread_fake_step): Compare signal to
1565 TARGET_SIGNAL_0, not NULL, to avoid warnings.
1566 (_initialize_infttrace): Add sanity check.
1568 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
1569 long, so we can pass arguments properly to ptrace.
1571 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
1572 address to an int boundary.
1574 1999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
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.
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.
1597 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
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.
1606 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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'.
1612 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
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.
1620 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1622 From Eli Zaretskii <eliz@is.elta.co.il>:
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
1630 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
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):
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.
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.
1650 1999-07-24 Fred Fish <fnf@cygnus.com>
1652 * symfile.c (default_symfile_offsets): Clear section_offsets
1653 before filling it in.
1655 1999-07-16 Keith Seitz <keiths@cygnus.com>
1657 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
1659 1999-07-15 Jim Blandy <jimb@cris.red-bean.com>
1661 Make the output from "info registers" fit withinin 80 columns.
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
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.
1676 * gdbtypes.c (is_integral_type): New function.
1677 * gdbtypes.h: Prototype for above.
1679 1999-07-15 J.T. Conklin <jtc@redback.com>
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.
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.
1689 * NEWS: Mention the new configs.
1691 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
1693 * target.c (target_preopen): Prevent query when not from_tty.
1694 * infcmd.c (run_command): Prevent query when not from_tty.
1696 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
1698 * event-loop.c: Fix typo in comment.
1700 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
1707 * serial.h (struct _serial_t): Add field ``state''.
1709 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
1717 * infrun.c (complete_execution): Set target_executing to 0 as
1718 first thing, so that display_gdb_prompt does the right thing.
1720 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1722 * parse.c (build_parse): Fix conditional increment of num_std_regs
1723 for SP_REGNUM. Was conditional on FP_REGNUM.
1725 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
1731 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
1746 (do_gp_register_row): Extract register values from raw buffer.
1748 * NEWS: Document protocol change.
1750 1999-07-12 Keith Seitz <keiths@cygnus.com>
1752 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
1753 conditional. It's no longer needed.
1754 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
1755 "/dev/cuaX" (X=0,1,2,3,...).
1757 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
1759 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
1760 fputstrnn_unfiltered): New functions.
1761 (gdb_printchar): Delete.
1763 * remote.c (print_packet): Replace gdb_printchar with
1765 (getpkt): Use fputstrn_unfiltered to dump packet received.
1766 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
1768 1999-07-09 Keith Seitz <keiths@cygnus.com>
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.
1773 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
1775 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
1777 (sparclite_ops): Remove redundant decl.
1779 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1781 * ser-pipe.c (pipe_open): Bi-directional popen found on both
1783 * ser-pipe.c: New file. Implement popen() style serial interface.
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 ``|''.
1790 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
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.
1796 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
1798 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1800 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
1802 (fputc_readable): Rename putc_readable, add struct gdb_file
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.
1814 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
1816 * exec.c: Remove long-#ifed-out section of code that confuses
1818 * gdbtypes.c (add_mangled_type): Add some braces to indicate
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.
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.
1835 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
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.
1843 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1845 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
1847 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
1849 * remote.c: Include <sys/select.h> if it exists in order to pick up
1851 * remote-os9k.c: Same.
1852 * remote-st.c: Same.
1855 * sparcl-tdep.c: Same.
1857 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1859 * top.c (target_output_hook): Delete definition.
1860 * defs.h (target_output_hook): Delete declaration.
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.
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
1870 * defs.h (gdb_stdtarg): New global. Output from target and
1873 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1875 * top.c (return_to_top_level): Do all the exec_cleanups too.
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.
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
1888 (do_exec_cleanups): New Function. Do cleanups on the
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.
1895 * top.h (ALL_CLEANUPS): Move from here to defs.h.
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
1901 (ALL_CLEANUPS): Move here from top.h.
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
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.
1911 * breakpoint.c (until_break_command_continuation): New function.
1912 Stuff to be done after the target stops during the 'until'
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.
1918 * infcmd.c (until_command): Recognize '&' at end of command and
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.
1927 * infrun.c (cmd_continuation): New gloabl variable. Used to
1928 coplete execution commands in async mode, after the target has
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.
1939 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
1946 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
1949 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
1950 (TARGET_READ_FP): Return the SP as a best guess.
1952 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
1954 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
1955 instead of hpux11.0*.
1957 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1959 * source.c (directory_command): Add missing test for from_tty.
1961 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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
1968 (extended_remote_async_open): New function. Asynchronous version
1969 of extended_remote_open.
1970 (remote_async_open_1): New function. Async version of
1972 (remote_async_detach): New function. Async version of
1974 (remote_async_resume): New function. Async version of
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
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.
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
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
2000 (async_ecss, async_ecs): New global vars, for inferior state.
2001 (fetch_inferior_event): New function. Async version of
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
2008 * infcmd.c (strip_bg_char): New function to detect the background
2010 (run_command): Modify to support background and foreground
2011 execution in async mode.
2012 (continue_command): Ditto.
2014 (jump_command): Ditto.
2015 (interrupt_target_command): New function. Interrupt the
2017 (_initialize_infcmd): Add new command 'interrupt'.
2019 * top.c (target_executing): New global variable.
2020 (execute_command): Reject commands that cannot be executed while
2021 the target is running asynchronously.
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.
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.
2033 * target.c (update_current_target): Inherit to_has_async_exec.
2035 * inferior.h: Add global variables target_executing, and
2036 sync_execution. Export function fetch_inferior_event.
2038 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
2039 exported functions. Update prototype for delete_signal_handler.
2041 * target.h (struct target_ops): New target op: to_has_async_exec.
2042 (target_has_async): New macro.
2044 * Makefile.in (infrun.o): Add dependency on event-loop.h.
2047 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
2049 * solib.c (clear_solib): Don't disable breakpoints if we're
2050 running an a.out executable (Solaris's SunOS emulation).
2052 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
2063 * top.c (init_main): Move setting of async_command_editing_p from
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.
2073 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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
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.
2089 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
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.
2098 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
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.
2106 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
2108 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
2110 1999-06-24 James Ingham <jingham@leda.cygnus.com>
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.
2116 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
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.
2124 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2126 * main.c: Turn on async by default by setting async_p to 1.
2128 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
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>
2134 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
2135 does not return a result.
2137 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2149 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
2151 * top.c: Update copyright years to include 1999.
2153 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2155 * top.c: Move include of event-loop.h, to avoid redefinition of
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.
2162 * event-top.c: Fix prototype for _initialize_event_loop.
2163 (_initialize_event_loop): Do something only if running in async
2166 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
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.
2177 * jv-exp.y (yylex): Say character literals are java_char_type, not
2178 builtin_type_char. Java treats the latter like `byte'.
2180 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
2186 * event-loop.c: Get rid of #include <readline.h>.
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.
2194 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
2196 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
2197 is NULL, call find_proc_desc so we know how to restore
2200 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
2202 * event-top.c (start_event_loop): call get_prompt.
2203 (display_gdb_prompt): call get_prompt.
2204 (async_stop_sig): call get_prompt.
2206 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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
2212 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
2214 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
2215 SVR4 solib maintainers, respectively.
2217 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
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
2232 (init_main): use renamed variable gdb_prompt_string. Add new
2233 command "set prompt-escape-char" to set gdb_prompt_escape.
2235 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2242 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
2244 * remote.c (remote_wait): Clean up new thread handling.
2245 (record_currthread): Announce new threads.
2247 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
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.)
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
2258 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
2266 * event-loop.h: setup_event_loop is now start_event_loop.
2267 * main.c (main): Ditto.
2269 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
2282 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2284 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
2287 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
2293 (readsocket, readtty): Delete extern declaration of tty_input.
2295 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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
2302 * utils.c (prompt_for_continue): If running asynchronously, call
2303 async_request_quit, instead of request_quit.
2305 * tracepoint.c (read_actions): If running asynchronously, set the
2306 signal handler for STOP_SIGNAL to handle_stop_sig.
2308 * top.h: (source_line_number, source_file_name, source_error,
2309 source_pre_error, history_expansion_p, server_command): export for
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
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
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.
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.
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
2348 (set_prompt): Set the top of the prompt stack if running
2350 (init_main): Move ``extern'' vars from here to event-loop.h.
2352 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
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
2365 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
2367 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2369 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
2371 * top.c (print_prompt): Delete this function.
2373 From: Andrew Cagney <cagney@b1.cygnus.com>
2375 * event-top.c (async_hook): Delete extern declaration.
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''.
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
2387 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
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.
2397 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2399 * mn10300-tdep.c (mn10300_register_names): Make static.
2400 (STORE_STRUCT_RETURN): Do not modify SP.
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.
2409 1999-06-10 Keith Seitz <keiths@cygnus.com>
2411 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
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
2417 (mcore_push_arguments): Fix compiler warning.
2419 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2421 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
2424 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
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
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
2439 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
2441 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
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
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
2453 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
2454 write_fp): Simplify.
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,
2465 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
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
2473 * mips-tdep.c (mips_push_return_address): New function.
2474 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
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.
2485 1999-06-07 Keith Seitz <keiths@cygnus.com>
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
2495 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
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.
2503 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
2505 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
2506 * mips-tdep.c (struct frame_extra_info): To here.
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.
2512 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
2514 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
2515 Rename init_extra_frame_info. Add argument ``fromleaf''.
2517 * config/mips/tm-mips.h (mips_print_extra_frame_info),
2518 mips-tdep.c: New function.
2519 (PRINT_EXTRA_FRAME_INFO): Update definition.
2521 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
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.
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.
2534 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2536 * remote.c (PBUFSIZ): Re-define so that value is computed at
2538 (MAXBUFBYTES): Re-define as a macro function.
2539 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
2540 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2542 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
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:).
2548 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
2550 * parse.c: Don't include <ctype.h> twice.
2552 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
2554 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
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.
2562 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
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.
2567 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
2578 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
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
2591 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
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
2597 (fork_inferior): Remove dead HPUX specific code which assumes shell
2600 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
2604 * gdbarch.h: Forward decl of struct value.
2606 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2608 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
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.
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,
2623 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2624 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
2625 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
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.
2633 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
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
2639 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
2641 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
2642 as maintainers for Hurd, HP/UX, and COFF, respectively.
2644 1999-06-02 Mark Kettenis <kettenis@gnu.org>
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
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
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.
2662 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
2664 (STACK_END_ADDR): Remove.
2665 (SIGCONTEXT_PC_OFFSET): New define.
2666 Include "tm-sysv4.h".
2668 1999-06-02 J.T. Conklin <jtc@redback.com>
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.
2676 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
2678 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
2680 1999-06-02 Christopher Faylor <cgf@cygnus.com>
2682 * configure.tgt: Alphabetically reorder some targets.
2684 1999-06-02 Keith Seitz <keiths@cygnus.com>
2686 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
2688 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
2690 * rs6000-tdep.c (variants): Fix description of 750 register set.
2691 (Thanks to J. T. Conklin.)
2693 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
2706 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
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.
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.
2717 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
2719 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
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.
2726 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
2738 * defs.h (REGISTER_NAME): Move compatibility definition from here.
2739 * gdbarch.h: To here.
2741 * frame.h, blockframe.c (generic_fix_call_dummy): New
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.
2746 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2748 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
2749 * config/d10v/tm-d10v.h: Update.
2751 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2758 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2765 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2772 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2778 (_initialize_parse): Register variables msym_text_symbol_type,
2779 msym_data_symbol_type as msym_unknown_symbol_type as
2782 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2784 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
2786 (d10v_gdbarch_init): New function.
2787 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
2789 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
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):
2798 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2800 * stack.c (print_args_stub): Add missing stream parameter.
2802 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2808 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2810 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
2812 * valops.c (value_assign): Delete redundant test of
2813 REGISTER_CONVERTIBLE.
2815 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2823 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
2830 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2832 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
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.
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
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
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.
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.
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):
2877 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
2879 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2880 breakpoint_1): Add a 'default' case, which prints a warning
2881 message, to remove EGCS warnings.
2883 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2885 * utils.c (gdb_file_adjust_strbuf): Take into account the
2886 possibility that the buffer has not been allocated yet.
2888 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2890 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2891 REGISTER_CONVERT_TO_RAW): Provide default definition.
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.
2897 1999-05-25 Keith Seitz <keiths@cygnus.com>
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.
2903 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
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.
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.
2913 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
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().
2920 * utils.c (pollquit, fmthex, hexlate): Delete function.
2922 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
2924 * main.c (gdb_init): Move declaration from here.
2927 * defs.h (init_page_info): Add declaration.
2929 * top.c (initialize_utils): Move declaration from here.
2932 * infcmd.c (target_map_name_to_register): Move declaration from
2934 * parser-defs.h: To here.
2936 * c-typeprint.c (cp_type_print_method_args), target.c
2937 (nosupport_runtime, normal_target_post_startup_inferior): Add
2938 declaration. Make static.
2940 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
2942 * main.c: Include "event-loop.h".
2943 * Makefile.in (main.o): Add dependency.
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.
2951 * event-loop.h (delete_async_signal_handler): Add function
2954 * event-top.c (change_annotation_level, command_handler): Add
2955 declaration. Make static.
2957 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2959 * tracepoint.c (free_actions_list, add_register): Add declaration.
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.
2967 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
2969 * jv-typeprint.c (java_type_print_base, jv-valprint.c
2970 (java_print_value_fields): Add static declaration.
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
2979 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2981 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
2984 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
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.
3004 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
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
3031 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
3033 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
3040 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
3041 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
3043 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
3045 * value.h (default_push_arguments): Add function declaration.
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):
3059 * infrun.c (currently_stepping): Ditto. Make static.
3061 * valops.c (hand_function_call): Explictly type static variable
3064 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
3084 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
3085 (REGISTER_NAME): Replace REGISTER_NAMES.
3087 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
3089 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
3091 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
3093 * utils.c (n_spaces): Handle case where first call has N equal to
3095 (print_spaces): Use n_spaces.
3097 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
3099 * valops.c (value_push): Remove conditional definition based on
3100 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
3102 (default_push_arguments): New function.
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.
3114 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
3116 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
3139 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3141 * top.c: Change dates in comments to ISO format.
3143 * event-top.c: Ditto.
3144 * event-loop.c: Ditto.
3147 1999-05-19 Keith Seitz <keiths@cygnus.com>
3149 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
3150 really do want to believe what gcc tells us about types...
3152 1999-05-19 Keith Seitz <keiths@cygnus.com>
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.
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
3163 (monitor_close): Free memory associated with breakpoint
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
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.
3174 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
3177 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3179 From Philippe De Muyter <phdm@macqel.be>:
3180 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
3182 1999-05-17 Keith Seitz <keiths@cygnus.com>
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.
3191 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
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.
3198 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
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
3207 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
3209 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
3210 * sh-stub.c: Mostly localize processor dependencies.
3212 1999-05-10 Martin Hunt <hunt@cygnus.com>
3214 * debugify.c, debugify.h: Removed because they are no
3217 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3228 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
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
3243 (enum infwait_states): Rename from wfi_states.
3244 (infwait_normal_state, etc): Similarly.
3246 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
3248 * coffread.c (coff_symtab_read): Call `record_line' with the line
3249 number of the ".bf" symbol only for one-line functions.
3251 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
3253 * Makefile.in: thread.o depends on target.h.
3255 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3257 * event-top.c (change_line_handler): Use POLLIN instead of
3258 POLLRDNORM, for compatibility with Linux.
3259 (setup_event_loop): Ditto.
3261 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
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
3268 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
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.
3288 * defs.h: Add async_hook to exported variables.
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.
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
3302 * event-loop.h: New file. Data structures and definitions for the
3305 * event-loop.c: New file. Functions for the event loop
3308 * config.in: Regenerate with autoheader.
3310 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
3313 * configure: Regenerate.
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.
3321 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
3323 * infrun.c (wait_for_inferior): Transform breaks and continues
3324 into gotos, move the target_wait to the very top of the loop.
3326 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
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
3333 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3341 1999-05-04 DJ Delorie <dj@cygnus.com>
3343 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
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
3352 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3354 * main.c (main): Comment out unused and undocumented command line
3357 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3368 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
3381 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
3383 * hppah-nat.c: Fix various coding convention violations introduced
3385 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
3388 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
3390 * TODO: Add some items inspired by review of the manual.
3392 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
3415 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
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:
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):
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):
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.
3434 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
3436 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
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.
3443 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3449 * coffread.c (coff_symfile_read): If we have a `.stab' section,
3450 but no `.stabstr' section, then print an error message; don't
3453 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
3455 1999-04-25 Mark Kettenis <kettenis@gnu.org>
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.
3461 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3463 * gdbarch.h, gdbarch.c: More format cleanups.
3465 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
3474 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3476 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
3480 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
3482 * README: Note that readline is not installed as a part of
3485 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3487 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
3489 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3490 default_gdbarch): Update.
3492 * value.h (get_saved_register): Cleanup prototype.
3493 * findvar.c (default_get_saved_register): Rename function
3495 (GET_SAVED_REGISTER): Define as default_get_saved_register when
3497 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
3499 * sparc-tdep.c (sparc_get_saved_register): Rename function
3501 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
3502 * a29k-tdep.c (a29k_get_saved_register): Rename function
3504 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
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.
3516 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3518 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
3519 gdbarch'' initialization functions so that maintenance is more
3522 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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
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.
3544 * breakpoint.c (frame_in_dummy): Convert #ifdef
3545 USE_GENERIC_DUMMY_FRAMES to runtime test.
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
3551 (get_saved_register): Always define.
3553 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
3555 * gdbarch.c (gdbarch_dump): Fix robustness check on
3556 BELIEVE_PCC_PROMOTION_TYPE.
3558 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
3564 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
3566 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
3577 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
3580 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
3593 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
3601 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
3603 (value_fetch_lazy): Ditto.
3604 * values.c (unpack_long): Ditto.
3605 * printcmd.c (print_frame_args): Ditto.
3607 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3609 * gdbarch.h: Cleanup multi-arch comments.
3611 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
3618 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
3620 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
3621 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
3622 at runtime instead of compile time.
3624 1999-04-14 Philippe De Muyter <phdm@macqel.be>
3626 * breakpoint.c (maintenance_info_breakpoints): Function made
3627 static to match previous prototype.
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.
3638 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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().
3651 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3653 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
3654 on a Solaris host (of any architecture).
3655 * configure: Regenerated.
3657 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
3670 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3672 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
3673 in monitor command strings, fix some formatting mistakes.
3675 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
3677 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
3679 1999-04-12 James Ingham <jingham@cygnus.com>
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.
3685 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
3687 * NEWS: Mention tic80.
3689 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
3711 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
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).
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.
3728 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
3730 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
3733 * GDB 4.18 released.
3734 * Makefile.in (VERSION): Bump to 4.18.1.
3736 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
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.
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.
3762 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3764 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
3765 monitor, increase the end address by one byte.
3767 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
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.
3773 1999-04-08 Keith Seitz <keiths@cygnus.com>
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.
3779 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3781 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3782 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
3784 * infcmd.c (breakpoint_auto_delete_contents): Always define.
3785 (run_stack_dummy): Update.
3786 * infrun.c (wait_for_inferior): Update
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):
3794 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
3796 * MAINTAINERS: Mark Alexander can no longer maintain
3797 h8300 and other embedded targets, sniff.
3799 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
3801 * inftarg.c (child_wait): Initialize execd_pathname.
3802 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
3804 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
3805 this breaks rerunning on sun4 native.
3807 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3813 1999-04-06 Martin Hunt <hunt@cygnus.com>
3815 * annotate.h: Declare annotate_signal_hook.
3817 * annotate.c (annotate_signal): Add a call to
3818 annotate_signal_hook().
3820 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
3822 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
3823 we hit a DW_LNE_end_sequence instruction.
3825 * README: Note that GDB requires an ANSI C compiler, and explain
3830 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
3832 * NEWS: Add more notes about user-visible changes.
3834 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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).
3840 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
3842 * utils.c (fputs_maybe_filtered): test value of
3843 pagination_enabled before paginating.
3845 1999-04-02 James Ingham <jingham@cygnus.com>
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.
3851 * rs6000-tdep.c (rs6000_init_extra_frame_info):
3853 a29k-tdep.c (init_extra_frame_info):
3854 config/a29k/tm-a29k.h:
3856 Change all references to get_prev_frame_info to get_prev_frame.
3858 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
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.
3867 1999-04-02 James Ingham <jingham@cygnus.com>
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
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.
3880 1999-04-02 Keith Seitz <keiths@cygnus.com>
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
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,
3907 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
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.
3911 * ax.h (enum agent_op): Same.
3912 * tracepoint.h (enum actionline_type): Same.
3913 * config/xm-aix4.h: Add declaration for termdef.
3915 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
3917 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
3920 * infrun.c (follow_inferior_fork): Add ifdefs around
3921 SOLIB_REMOVE_INFERIOR_HOOK.
3923 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
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.
3931 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
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.
3949 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
3951 * top.h: Include setjmp.h here.
3952 * main.c, top.c: Don't include it here.
3954 1999-03-29 Keith Seitz <keiths@cygnus.com>
3956 * symtab.c (decode_line_1): Take out change which breaks symbols
3957 which include class names and methods, e.g., "Foo::bar".
3959 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
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.
3965 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
3967 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3969 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
3970 from at_entry_point.
3972 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
3974 * gdbarch.c: Include all headers.
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.
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
3988 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
3990 * remote.c, parse.c: Include ctype.h.
3992 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
3994 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
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*):
4003 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
4005 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
4008 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
4010 * target.h (enum target_signal): Do not hardwire values of MACH
4013 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
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.
4020 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
4022 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
4025 From Rodney Brown <rodneybrown@pmsc.com>
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.
4030 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
4039 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
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
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.
4049 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4051 * infttrace.c (proc_wait): rename to ptrace_wait.
4053 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
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.
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.
4070 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
4072 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
4073 calling functions by hand with odd-sized arguments doesn't munge
4076 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
4078 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
4079 hosts--gdb doesn't support this yet.
4080 * configure: Regenerated.
4082 1999-03-16 Keith Seitz <keiths@cygnus.com>
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.
4096 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
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.
4102 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
4104 * go32-xdep.c: Remove, no longer used by anything.
4105 * Makefile.in: Remove references.
4107 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
4108 as int instead of char.
4110 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4112 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
4113 (d10v_push_arguments): Use.
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
4120 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
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.)
4126 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
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.
4133 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
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.
4141 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
4143 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4145 * top.c (read_command_lines): Reset control_level to 0.
4146 (define_command): Don't do it here.
4148 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
4150 * hppah-nat.c (store_inferior_registers): Delete extern
4151 registers[] declaration.
4153 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
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.
4163 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4165 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
4168 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
4173 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
4175 Alpha patches from Richard Henderson:
4177 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
4179 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
4181 (REGISTER_CONVERTIBLE): Don't convert fpcr.
4182 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
4184 * stabsread.c (define_symbol): Only consider live range extension
4185 if we have an open parenthesis.
4187 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
4189 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
4190 when the register name is null.
4192 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
4194 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
4195 uses to expressions, remove redundant extern decls.
4197 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
4203 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
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):
4219 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
4220 print_only_stack_frame_stub): Make param void*.
4222 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
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
4228 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4230 * findvar.c (registers, register_valid): Replace array with pointer.
4231 (build_findvar): New function. Allocate space for REGISTERS and
4233 (_initialize_findvar): Call build_findvar.
4234 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
4237 * inferior.h (registers, register_valid): Replace array with
4240 * inferior.h (struct inferior_status): Move definition from here.
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.
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.
4255 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
4257 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
4259 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
4260 LINUXALPHA target. Hack.
4262 * infrun.c (set_follow_fork_mode_command): Make static. Add
4264 * tracepoint.c (add_register): Ditto.
4265 * valprint.c (strcat_longest): Comment out. Does not appear to be
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
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.
4278 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
4286 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4288 * source.c (list_command): GCC suggested explicit braces to avoid
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.
4304 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
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.
4310 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
4312 * stack.c (backtrace_command): Update.
4314 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
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>.
4320 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
4322 * frame.h (struct dummy_frame): Move from here.
4323 * blockframe.c (struct dummy_frame): To here.
4325 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
4327 (generic_pop_dummy_frame): Free it.
4328 (generic_push_dummy_frame): Allocate dummy frame register buffer.
4330 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4332 * thread.c (_initialize_thread): Delete redundant ``extern struct
4333 cmd_list_element *cmdlist''.
4334 * printcmd.c (print_command_1): Ditto for ``objectprint'';
4336 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
4338 * MAINTAINERS: New file, list of maintainers and areas they
4341 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
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
4352 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
4353 HAVE_NO_PRRUN_T; now set by configure.
4355 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4357 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
4360 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
4363 * target.c (debug_to_enable_exception_callback,
4364 debug_to_get_current_exception_event): Return result of call to
4367 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
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 *.
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.
4384 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
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
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.
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.
4402 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4404 * m32r-stub.c: add support for crc "Compare" command.
4406 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
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.
4412 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
4415 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
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
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.
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.
4438 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
4439 "while" expression in paren.
4441 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
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.
4447 * procfs.c (make_cleanup_close_proc_file,
4448 close_proc_file_cleanup): Create a proc_file cleanup.
4451 * defs.h (make_cleanup_freeargv): Helper function. Establish
4452 cleanup using freeargv. Can not just typecast/pass freeargv as it
4454 * utils.c (do_freeargv): Helper.
4455 (make_cleanup_freeargv): New function.
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.
4465 1999-03-03 James Ingham <jingham@cygnus.com>
4467 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
4468 disassembly flavor at startup, rather than hardcoding it.
4470 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
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.
4477 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
4479 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
4481 * breakpoint.c (map_catch_names): Comment out unused function.
4483 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
4485 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
4486 structure on PA 2.0 systems.
4488 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
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
4494 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
4495 (IN_SIGTRAMP): Define.
4497 1999-03-02 Nick Clifton <nickc@cygnus.com>
4499 * findvar.c (store_address): Delete incorrect big endian
4502 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
4504 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
4507 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
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.
4513 1999-03-01 DJ Delorie <dj@cygnus.com>
4515 * configure.in: Change -cygwin32* to -cygwin*.
4518 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
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.
4525 1999-02-25 Keith Seitz <keiths@cygnus.com>
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.
4533 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
4535 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
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.
4543 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4545 * infrun.c (wait_for_inferior): Check scheduler_locking state
4546 before resuming after a thread-specific breakpoint.
4548 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
4550 * aclocal.m4, config.in, configure: Regenerated with latest
4553 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
4555 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
4557 * jv-valprint.c (java_print_value_fields): Check for NULL type.
4559 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
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
4566 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
4568 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
4569 * configure: Regenerated.
4571 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
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.
4582 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
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.
4593 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4595 * configure.in: Quote "$GCC" correctly.
4596 * configure: Regenerated.
4598 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
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.
4605 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4607 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
4609 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
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
4620 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4622 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
4624 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
4626 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
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.
4650 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
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
4663 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
4664 debug info format. Patch from marka.
4666 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
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.
4674 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
4676 * jv-valprint.c (java_value_print): Fix printing of values where
4677 run time type != compile time type.
4679 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
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.
4688 to 16 bits to compensate for added bits above (hopefully this is still
4690 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
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.
4700 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4702 * breakpoint.c (watch_command_1): Reformat comment.
4704 * c-typeprint.c (c_type_print_base): Reformat comments.
4706 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
4708 * Makefile.in (VERSION): Bump version to 4.17.2.
4710 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4712 * config/pa/nm-hppah.h: Added prototype declarations for
4713 hppa_enable_page_protection_events and
4714 hppa_disable_page_protection_events.
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.
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
4726 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
4728 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
4729 let the generic call dummy infrastructure do it.
4731 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
4733 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
4734 coffread.c will correctly handle char or short function parameters.
4736 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
4738 * configure, aclocal.m4: Regenerate with correct version of aclocal.
4740 1999-02-10 Syd Polk <spolk@cygnus.com>
4742 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
4743 * aclocal.m4: Regnerate.
4744 * configure: Regenerate.
4746 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
4748 * demangle.c: Fix comments to mention "set demangle-style"
4749 instead of "set demangle".
4750 Run through indent to fix minor indenting problems.
4752 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
4754 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
4756 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
4764 1999-02-09 DJ Delorie <dj@cygnus.com>
4766 * sparcl-tdep.c: UDP download works in cygwin
4768 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
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.
4774 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
4776 * NEWS: Mention new X packet and PowerPC variant support.
4778 1999-02-08 Nick Clifton <nickc@cygnus.com>
4780 * configure.host: Add support for StrongARM host.
4781 * configure.tgt: Add support for StrongARM target.
4783 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
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.
4789 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
4791 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
4794 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
4796 * NEWS: Add mentions of various new things.
4798 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
4800 * configure.in: Move termcap determination later in the
4801 file to catch setting of cygwin flag.
4802 * configure: Regenerate.
4804 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
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.
4811 1999-02-03 Keith Seitz <keiths@cygnus.com>
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
4831 * m32r-rom.c: Add new "mon2000" target.
4833 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
4843 * somread.c (som_symfile_read): Coerce first argument passed to
4844 make_cleanup to the correct type.
4846 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
4854 * somread.c (som_symfile_read): Add call to do_pxdb (),
4855 in hp-psymtab-read.c.
4857 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
4859 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
4860 in hp-psymtab-read.c.
4862 1999-02-02 Martin Hunt <hunt@cygnus.com>
4864 * printcmd.c (print_scalar_formatted): Use strcat to concat all
4865 the output together before calling fprintf_filtered().
4867 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
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.
4875 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
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
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
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.
4913 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
4915 * buildsym.h, buildsym.c: Convert to ANSI-only.
4917 * buildsym.h, buildsym.c: Reformat to standard.
4919 * buildsym.c (merge_symbol_lists): Remove unused variable.
4920 (_initialize_buildsym): Remove, does nothing.
4922 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
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.
4929 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
4931 From J.T. Conklin <jtc@redbacknetworks.com>:
4932 * remote.c (remote_query): Fix tipo.
4934 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
4936 * configure.tgt (v850): Add wildcard to match.
4938 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4940 * inferior.h: Ran indent.
4942 * fork-child.c: Ran indent.
4944 * infrun.c : Ran indent.
4946 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4948 * infrun.c (_initialize_infrun): Do not stop or print anything
4949 when a SIGWINCH is received.
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@.
4957 1999-01-29 Martin Hunt <hunt@cygnus.com>
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.
4969 1999-01-29 Mark Alexander <marka@cygnus.com>
4971 * procfs.c (wait_fd): Handle deleted threads correctly.
4973 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
4975 * utils.c (init_page_info): Force window size if running under emacs.
4977 1999-01-27 James Ingham <jingham@cygnus.com>
4979 * typeprint.c (whatis_exp): Remove static declaration.
4981 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4983 * hp-psymtab-read.c: Reformat using indent.
4985 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4987 * hp-psymtab-read.c: Reformat comments, update copyright.
4989 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
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
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,
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.
5008 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
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.
5016 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
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.
5023 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
5025 * remote.c (remote_query): fix maximum packet size to account for
5027 (putpkt): add comment to alert about extra byte need.
5029 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
5031 * sh-tdep.c (sh_target_architecture_hook): Return immediately
5032 when a matching machine is found.
5034 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
5036 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
5037 (common_breakpoint): Restore support for instruction breakpoints
5040 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5042 * stack.c: Close open comment.
5043 * symtab.c (find_pc_sect_line): Ditto.
5045 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
5052 From J.T. Conklin <jtc@redbacknetworks.com>:
5053 * top.c (init_main): Fix tipo in description of the remotetimeout
5055 * breakpoint.c (bpstat_stop_status): Handle systems where
5056 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
5058 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
5060 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
5061 to fill in mon960_cmds structure properly.
5063 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
5069 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
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
5075 (h8300_command, h8300h_command, h8300s_command): Call
5077 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
5078 (REGISTER_NAME): Define to refer to h8300_register_names.
5080 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
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
5091 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
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.
5103 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
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.
5115 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
5118 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5120 * corelow.c (solib_add_stub): Ditto.
5121 (core_file_to_sym_file): Cast make_cleanup parameter.
5123 * solib.c (symbol_add_stub, solib_map_sections): Change argument
5124 to PTR insted of a char*. Matches catch_errors interface.
5126 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5128 * remote-array.c (array_open): Don't use fprintf_filtered to send
5129 data to the log file.
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.
5136 * win32-nat.c (win32_child_thread_alive): Namespace proof
5138 (init_child_ops): Update.
5140 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
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.
5146 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
5148 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
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.
5160 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
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.
5167 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
5169 * procfs.c (procfs_ops): delete compile time initialization.
5170 (_initialize_procfs): initialize procfs_ops at run time.
5172 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
5174 * configure.in: Ensure that -luser32 is always linked in
5176 * configure: Regenerated.
5178 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
5180 * values.c (value_virtual_fn_field): Clear the pointed-to
5181 offset when casting to the base class.
5183 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
5185 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
5186 udi_ops; delete NULL initializers.
5188 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
5190 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
5193 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
5195 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
5197 * stack.c (print_frame_info_base): Don't cast call to
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):
5206 * stack.c (backtrace_command): Cast first arg of make_cleanup to
5208 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
5210 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5212 * defs.h (catch_errors_ftype): Define.
5213 (catch_errors): Replace char* arg with PTR arg.
5214 * top.c (catch_errors): Update
5216 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
5217 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
5219 (breakpoint_cond_eval, watchpoint_check,
5220 cover_target_enable_exception_callback, breakpoint_re_set_one):
5221 Arg is PTR not char*.
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
5228 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
5230 * remote.c (remote_query): new function - creates proper interface
5231 to the remote protocol "q" command.
5233 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5235 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
5236 (always use pointer for structs passed by value).
5238 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
5240 * target.h: added entry for target queries (to_query)
5243 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
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.
5250 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
5252 * breakpoint.c (insert_breakpoints): insert cast to eliminate
5255 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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.
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.
5272 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
5274 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
5275 call to fork_inferior. The shell param is now NULL.
5277 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5279 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
5280 (_initialize_remote_monitors): Same.
5282 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5284 * monitor.c (init_monitor_ops): Initialize the monitor_ops
5285 structure if it hasn't already been done.
5287 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
5300 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5302 * remote.c (remote_wait): Add inferior_pid to thread list only
5303 if it is not already there.
5305 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
5307 * scm-tags.h: Update FSF's address on copyright notice.
5308 * ser-e7kpc.c: Same.
5311 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
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.
5321 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
5323 * utils (print_spaces): fix arg to strcat; fix formatting.
5325 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
5327 * exec.c (exec_ops): Don't initialize statically.
5328 (init_exec_ops): New function, fills in exec_ops.
5329 (_initialize_exec): Use it.
5331 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5335 * config/fr30/tm-fr30.h
5337 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
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.
5345 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
5347 * config.in, configure : regenerated.
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
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
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
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
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
5385 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
5394 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
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.
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.
5407 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
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
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.
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.
5427 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
5429 * target.c (noprocess): terminate sentence with a period.
5430 * breakpoint.c (catch_command_1): ditto.
5432 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
5433 testsuite losses with no real gain.
5435 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
5436 if tm-*.h hasn't overridden default value.
5438 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5440 * configure.in: Fix whitespace indentation for --help.
5441 * configure: Regenerated.
5443 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
5445 * main.c: Add --write command line option, document -w.
5446 * gdb.1: Document --write.
5448 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
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.
5460 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
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.
5466 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
5468 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
5469 already defined in tm.h.
5471 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
5472 conditionalize its inclusion.
5473 * infttrace.c: ditto.
5475 For older changes see ChangeLog-98
5481 version-control: never