1 start-sanitize-carp start-sanitize-vr4xxx
4 * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
7 end-sanitize-carp end-sanitize-vr4xxx
10 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
11 v850_register_names, v850_processor_type_table): Declare tables
12 and structures for handling differences in register names for
14 (struct reg_list): Define new structure for creating tables
15 of register bit masks in v850e instrutions.
16 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
17 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
19 (v850_target_architecture_hook): New function to set register
20 names based on current machine.
21 (_initialize_v850_tdep): Set up target_architecture_hook.
22 * config/v850/tm-v850.h (v850_register_names): Declare.
23 (REGISTER_NAME): Define to refer to v850_register_names.
24 (SR0_REGNUM, CTBP_REGNUM): Define.
25 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
29 * Makefile.in (c-exp.tab.c): use BISON instead of YACC, to pick
30 the correct value from configure output.
31 (jv-exp.tab.c): ditto.
33 (m2-exp.tab.c): ditto.
37 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
38 * frame.h (select_and_print_frame): Add prototype.
39 * stack.c (func_command): Call select_and_print_frame with correct
40 number of arguments. Reformat whitespace.
44 * remote.c (remote_query): fix maximum packet size to account for
46 (putpkt): add comment to alert about extra byte need.
50 * sh-tdep.c (sh_target_architecture_hook): Return immediately
51 when a matching machine is found.
55 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
56 (common_breakpoint): Restore support for instruction breakpoints
61 * stack.c: Close open comment.
62 * symtab.c (find_pc_sect_line): Ditto.
66 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
67 init only nonzero fields, leave to_require_attach and
68 to_require_detach empty, not needed for /proc systems yet.
69 (_initialize_procfs): Call init_procfs_ops.
72 * top.c (init_main): Fix tipo in description of the remotetimeout
74 * breakpoint.c (bpstat_stop_status): Handle systems where
75 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
79 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
80 to fill in mon960_cmds structure properly.
84 * remote-sds.c (sds_ops): Define only once.
85 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
86 (init_sds_ops): Init only non-zero fields.
90 * h8300-tdep.c (original_register_names, h8300h_register_names,
91 h8300_register_names): Define new variables.
92 (set_register_names): New function to set register names based on
94 (h8300_command, h8300h_command, h8300s_command): Call
96 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
97 (REGISTER_NAME): Define to refer to h8300_register_names.
101 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
102 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
103 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
104 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
105 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
106 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
107 v850ice.c win32-nat.c: cosmetic changes to conform to coding
112 Use aclocal to generate GDB's aclocal.m4 script.
113 * acinclude.m4: New file, containing the hand-written local macro
114 definitions that used to be in aclocal.m4. Don't sinclude
115 ../bfd/aclocal.m4 any more; running aclocal in this directory will
116 get us the definitions we need. HOWEVER: Do sinclude
117 ../bfd/acinclude.m4, because we need the definition of
118 BFD_NEED_DECLARATION.
119 * aclocal.m4: Regenerated by aclocal.
120 * configure: Regenerated by autoconf.
124 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
125 silent, controls whether to print message about removal of shared
127 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
128 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
129 * osfsolib.c (clear_solib): ditto.
130 * solib.c (clear_solib): ditto.
131 * somsolib.c (som_solib_restart): update call to
132 disable_breakpoints_in_shlibs.
134 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
139 * corelow.c (solib_add_stub): Ditto.
140 (core_file_to_sym_file): Cast make_cleanup parameter.
142 * solib.c (symbol_add_stub, solib_map_sections): Change argument
143 to PTR insted of a char*. Matches catch_errors interface.
147 * remote-array.c (array_open): Don't use fprintf_filtered to send
148 data to the log file.
150 * remote-array.c (handle_load_dll): Change argument type to PTR so
151 that it is compatible with catch_errors.
152 * ocd.c (ocd_start_remote): Ditto.
153 * remote-sds.c (sds_start_remote): Ditto.
155 * win32-nat.c (win32_child_thread_alive): Namespace proof
157 (init_child_ops): Update.
161 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
162 gdb_hostif.dbgarg to NULL instead of stdout.
163 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
167 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
169 * target.c (dummy_target): Don't initialize statically.
170 (init_dummy_target): New function, fills in dummy_target.
171 (initialize_targets): Use it.
172 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
173 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
174 (_initialize_hpux_thread): Use it.
175 * m3-nat.c (m3_ops): Don't initialize statically.
176 (init_m3_ops): New function, fills in m3_ops.
177 (_initialize_m3): Use it.
181 * sol-thread.c: delete compile time initialization of target_ops
182 (_initialize_sol_thread): initialize target_ops at run time.
183 * hpux-thread.c: added target_ops entry.
188 * procfs.c (procfs_ops): delete compile time initialization.
189 (_initialize_procfs): initialize procfs_ops at run time.
193 * configure.in: Ensure that -luser32 is always linked in
195 * configure: Regenerated.
199 * values.c (value_virtual_fn_field): Clear the pointed-to
200 offset when casting to the base class.
204 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
205 udi_ops; delete NULL initializers.
209 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
212 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
216 * stack.c (print_frame_info_base): Don't cast call to
218 (print_args_stub): Change char* arg to PTR.
219 * symmisc.c (print_symbol): Ditto.
220 * top.c (quit_cover): Ditto.
221 * remote.c (remote_open_1, remote_start_remote): Ditto.
222 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
225 * stack.c (backtrace_command): Cast first arg of make_cleanup to
227 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
231 * defs.h (catch_errors_ftype): Define.
232 (catch_errors): Replace char* arg with PTR arg.
233 * top.c (catch_errors): Update
235 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
236 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
238 (breakpoint_cond_eval, watchpoint_check,
239 cover_target_enable_exception_callback, breakpoint_re_set_one):
240 Arg is PTR not char*.
242 * breakpoint.c (cover_target_enable_exception_callback): Change
243 type to int. Check for cast values of 0 and -1. Return a result!
244 (insert_breakpoints): Move declaration of SAL and ARGS to where
249 * remote.c (remote_query): new function - creates proper interface
250 to the remote protocol "q" command.
254 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
255 (always use pointer for structs passed by value).
259 * target.h: added entry for target queries (to_query)
264 start-sanitize-carp start-sanitize-vr4xxx
265 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
266 fprintf_unfiltered calls.
267 end-sanitize-carp end-sanitize-vr4xxx
268 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
269 * remote-udi.c (udi_wait): fix stream arg to fwrite.
270 * symmisc.c (maintenance_check_symtabs): fix stream argument to
271 print_address_numeric.
275 * breakpoint.c (insert_breakpoints): insert cast to eliminate
280 * infrun.c (set/show scheduler-locking) New command. Set a
281 mode bit that will control how GDB attempts to control thread
282 scheduling for step, continue, etc. (resume): make use of
283 the schedule-locking mode.
284 * target.h (struct target_ops): new field to_has_thread_control.
285 * sol-thread.c: initialize target_ops to_has_thread_control.
290 * hpux-thread.c: ditto.
291 * thread.c: cull duplicate prototypes. Move prototypes to top.
292 * serial.c: indentation cleanup.
293 * breakpoint.c: add casts to eliminate compiler warnings.
297 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
298 call to fork_inferior. The shell param is now NULL.
302 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
303 (_initialize_remote_monitors): Same.
307 * monitor.c (init_monitor_ops): Initialize the monitor_ops
308 structure if it hasn't already been done.
312 * inftarg.c (child_ops): Don't initialize statically.
313 (init_child_ops): New function, fills in child_ops.
314 (_initialize_inftarg): Use it.
315 (child_post_attach): Declare extern.
316 (child_wait): Fix ambiguous parens.
317 (child_attach_to_process): Remove unused local wstatus.
318 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
319 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
320 child_has_forked, child_insert_exec_catchpoint,
321 child_remove_exec_catchpoint): Return a value.
325 * remote.c (remote_wait): Add inferior_pid to thread list only
326 if it is not already there.
330 * scm-tags.h: Update FSF's address on copyright notice.
336 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
337 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
338 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
339 * stack.c (struct function_bounds): Remove superfluous `typedef'.
340 * symfile.c (list_overlays_command): stdout => gdb_stdout.
341 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
342 * utils.c (print_spaces): Make more efficient.
346 * utils (print_spaces): fix arg to strcat; fix formatting.
350 * exec.c (exec_ops): Don't initialize statically.
351 (init_exec_ops): New function, fills in exec_ops.
352 (_initialize_exec): Use it.
358 * config/fr30/tm-fr30.h
362 * configure.in: Add an --enable-tui argument. Construct
363 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
364 have the GUI, then we need this to process libgui.h.
365 (ENABLE_CFLAGS): define and export BUILD_TUI.
366 (AC_CHECK_HEADERS): Add check for term.h.
368 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
370 * config.in, configure : regenerated.
372 * Makefile.in: Allow the TUI code to be conditionally enabled.
373 (TUI_LIBRARY): New variable, value are set by the configuration
374 script. Set to the empty string when the TUI isn't enabled.
375 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
376 tui/libtui.a directly.
377 (BUILD_TUI): build the tui -- only when configured with
379 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
380 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
381 (all-tui): remove dependency from phony target.
382 (c-exp.tab.c): use ylwrap instead of bison.
383 (jv-exp.tab.c): ditto.
384 (f-exp.tab.c): ditto.
385 (m2-exp.tab.c): ditto.
386 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
387 (SFILES): remove the above files
388 (COMMON_OBS): remove somread.o
389 (SFILES): Add the tui files to this, so they get included in etags
391 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
392 tui/libtui.a to the link list.
393 (all-tui): New rule, which does a recursive make in the tui
395 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
396 don't echo the make command. This is closer to what the other
398 (HFILES_NO_SRCDIR): add hpread.h
399 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
400 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
401 the new files. Remove hpread.c, hpread.o
402 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
403 fictitious target. Since the fictitious target never existed,
404 make would always relink.
405 (tui/libtui.a): Always recurse to make sure the library is up to
410 * remote.c: Pacify --enable-build-warnings, reformat code
411 to conform to standards, fix spelling errors.
412 (ishex, stubhex, record_currthread, etc): Declare.
413 (ishex, stubhex): Declare char arg as int.
414 (pack_string): Comment out, never used but possibly useful.
415 (threadref_to_int, remote_get_threadinfo, etc): Make static.
419 The following changes were made by Elena Zannoni
421 part of a project to merge in changes made by HP.
423 * c-exp.y: use external flag hp_som_som_object_present to decide
424 whether code was compiled by HP's compilers. Add two new C++
425 tokens for true and false.
426 (yylex): check for template name is done differently for the
427 HP/aCC compiler case. Change some of the template processing code
428 for handling HP aCC templates. Handle true and false tokens.
432 * remote.c (record_curthread): Must not modify inferior_pid when
433 called from wait_for_inferior. Instead, if a new thread-id is
434 detected, call add_thread.
435 (MAGIC_NULL_PID): new macro, use instead of the magic number
437 (remote_find_new_threads): if inferior_pid is unknown, get and use
438 the current thread id.
439 (remote_start_remote): on connecting, attempt to get the current
440 thread id for inferior_pid.
441 (remote_resume): If pid == -1, then resume any-thread (not the
442 current thread specifically). Also some cosmetic fixups.
444 * thread.c (info_threads_command): don't initialize current_pid
445 until after call to FIND_NEW_THREADS (which may change inferior_pid).
446 Also some cosmetic fixups.
447 * infrun.c: cosmetic fixups and casts to avoid warnings.
448 * infcmd.c: cosmetic fixups, mainly long lines.
452 * target.c (noprocess): terminate sentence with a period.
453 * breakpoint.c (catch_command_1): ditto.
455 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
456 testsuite losses with no real gain.
458 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
459 if tm-*.h hasn't overridden default value.
463 * configure.in: Fix whitespace indentation for --help.
464 * configure: Regenerated.
468 * main.c: Add --write command line option, document -w.
469 * gdb.1: Document --write.
473 * configure.in: Require autoconf 2.12.1 or higher.
474 * doc/configure.in: Ditto.
475 * nlm/configure.in: Ditto.
476 * rdi-share/configure.in: Ditto.
477 * testsuite/configure.in: Ditto.
478 * doc/Makefile.in: Don't hardcode $(SHELL).
479 * nlm/Makefile.in: Ditto.
480 * rdi-share/Makefile.in: Ditto.
481 * testsuite/Makefile.in: Ditto.
485 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
486 inits of new fields, including ref to bogus field.
487 (vx_ops, vx_run_ops): Make static.
491 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
492 already defined in tm.h.
494 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
495 conditionalize its inclusion.
496 * infttrace.c: ditto.
498 For older changes see ChangeLog-98
504 version-control: never