1 2002-08-19 David Carlton <carlton@math.stanford.edu>
3 * valops.c (search_struct_field): Change error message to treat
4 return value of 0 from value_static_field as meaning that field is
6 (value_struct_elt_for_reference): Ditto.
7 * values.c (value_static_field): Treat an unresolved location the
8 same as a nonexistent symbol. Fix PR gdb/635.
9 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
10 enclosed. Fix PR gdb/574.
11 * MAINTAINERS: Add self to Write After Approval list.
13 2002-08-19 Andrew Cagney <ac131313@redhat.com>
15 * mips-tdep.c (mips_xfer_register): New function.
16 (mips_n32n64_extract_return_value): Rewrite.
17 (mips_gdbarch_init): For N32 and N64, set extract_return_value
18 instead of deprecated_extract_return_value.
20 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
22 * rs6000-tdep.c (TDEP): Delete macro.
23 (branch_dest): Replace use of TDEP macro with its body.
24 (rs6000_pop_frame): Ditto.
25 (rs6000_push_arguments): Ditto.
26 (rs6000_skip_trampoline_code): Ditto.
27 (rs6000_frame_saved_pc): Ditto.
28 (rs6000_frame_chain): Ditto.
29 (rs6000_register_name): Ditto.
30 (rs6000_register_byte): Ditto.
31 (rs6000_register_raw_size): Ditto.
32 (rs6000_register_virtual_type): Ditto.
33 (rs6000_register_convertible): Ditto.
34 (rs6000_convert_from_func_ptr_addr): Ditto.
36 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
38 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
40 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
41 MIPS_LINUX_JB_ELEMENT_SIZE.
42 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
43 for MAX_REGISTER_RAW_SIZE arrays.
44 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
45 MIPS_LINUX_JB_ELEMENT_SIZE.
47 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
49 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
51 2002-08-19 Aidan Skinner <aidan@velvet.net>
53 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
54 ada-valprint.c ada-tasks.c.
55 (YYFILES): Add ada-exp.y.
56 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
57 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
58 (ada-exp.tab.o): New target.
60 2002-08-18 Andrew Cagney <ac131313@redhat.com>
62 * regcache.c (regcache_xfer_part): New function.
63 (regcache_raw_read_part): New function.
64 (regcache_raw_write_part): New function.
65 (regcache_cooked_read_part): New function.
66 (regcache_cooked_write_part): New function.
67 * regcache.h (regcache_raw_read_part): Declare.
68 (regcache_raw_write_part): Declare.
69 (regcache_cooked_read_part): Declare.
70 (regcache_cooked_write_part): Declare.
72 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
74 * remote.c (remote_open_1): Add async_p.
75 (remote_async_open_1): Delete.
76 (open_remote_target): Delete.
77 (remote_open, extended_remote_open): Update calls to remote_open_1.
78 (remote_async_open, extended_remote_async_open): Call
79 remote_open_1 instead of remote_async_open_1.
81 2002-08-19 Mark Kettenis <kettenis@gnu.org>
83 * blockframe.c: Fix a few coding standard violations.
85 2002-08-19 Mark Kettenis <kettenis@gnu.org>
87 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
89 * config/i386/tm-i386sco5.h: ... here. File removed.
90 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
92 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
93 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
94 (TM_FILE): Set to tm-i386.h.
95 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
96 * config/i386/tm-i386v.h: Remove file.
97 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
98 instead of "i386/tm-i386v.h".
99 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
100 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
102 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
103 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
106 2002-08-18 Mark Kettenis <kettenis@gnu.org>
108 * config/i386/nm-i386v.h: Add protection against
110 (i386_register_u_addr): Remove prototype.
111 (register_u_addr): New prototype.
112 (REGISTER_U_ADDR): Redefine accordingly.
113 * i386v-nat.c: Improve several comments.
114 (i386_register_u_addr): Change signature and rename to
115 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
118 2002-08-18 Andrew Cagney <ac131313@redhat.com>
120 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
121 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
122 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
123 deprecated_extract_return_value.
124 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
125 rename mips_o32o64_push_arguments.
126 (mips_gdbarch_init): Update.
127 (mips_extract_return_value): Delete.
128 (mips_o32_extract_return_value): Clone mips_extract_return_value.
129 (mips_o64_extract_return_value): Clone mips_extract_return_value.
130 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
131 (mips_n32n64_extract_return_value): Clone
132 mips_extract_return_value.
133 (mips_store_return_value): Delete.
134 (mips_o32_store_return_value): Clone mips_store_return_value.
135 (mips_o64_store_return_value): Clone mips_store_return_value.
136 (mips_eabi_store_return_value): Clone mips_store_return_value.
137 (mips_n32n64_store_return_value): Clone mips_store_return_value.
139 2002-08-18 Aidan Skinner <aidan@velvet.net>
141 * ada-lang.c: Use gdb_string.h instead of <string.h>.
142 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
144 2002-08-18 Aidan Skinner <aidan@velvet.net>
146 * ada-lang.c: Run through gdb_indent.sh.
147 * ada-lang.h: Run through gdb_indent.sh.
148 * ada-tasks.c: Run through gdb_indent.sh.
149 * ada-typeprint.c: Run through gdb_indent.sh.
150 * ada-valprint.c: Run through gdb_indent.sh.
152 2002-08-18 Andrew Cagney <ac131313@redhat.com>
154 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
157 2002-08-18 Mark Kettenis <kettenis@gnu.org>
159 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
161 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
162 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
164 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
165 write_register_gen instead of write_register_bytes.
167 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
168 i[3456]-*-osf1mk* configurations have been made obsolete.
169 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
170 i[3456]86-*-osf1mk* hosts obsolete.
171 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
173 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
174 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
175 config/i386/i386m3.mt, config/i386/nm-m3.h,
176 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
177 config/i386/i386mk.mh, config/i386/i386mk.mt,
178 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
180 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
181 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
182 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
184 2002-08-18 Andrew Cagney <ac131313@redhat.com>
186 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
187 (hppa_value_returned_from_stack): Declare.
188 (hppa_extract_return_value): Declare.
189 * config/pa/hppa.mt: New file.
190 * configure.tgt: Recognize hppa*-*-*.
191 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
193 2002-08-18 Mark Kettenis <kettenis@gnu.org>
195 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
198 2002-08-17 Mark Kettenis <kettenis@gnu.org>
200 * top.c (gdb_rl_operate_and_get_next): Make sure
201 operate-and-get-next functions correctly even when the history
202 list is completely filled.
204 2002-08-18 Andrew Cagney <ac131313@redhat.com>
206 * MAINTAINERS (Target Instruction Set Architectures): Rename
207 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
208 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
209 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
210 already listed under Host/Native.
212 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
213 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
216 2002-08-17 Andrew Cagney <ac131313@redhat.com>
218 * config/ia64/ia64.mt: New file.
219 * config/alpha/alpha.mt: New file.
220 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
221 ia64-linux-gnu. Mention that ia64-elf is broken.
222 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
224 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
226 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
227 generic_func_frame_valid instead of func_frame_valid.
229 2002-08-16 Joel Brobecker <brobecker@gnat.com>
231 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
232 procfs appears to be broken when debugging on multi-processor
233 machines. So enable software single stepping in order to avoid
234 using the procfs interface to do next/step operations, using
235 internal breakpoints instead.
237 * infrun.c (handle_inferior_event): Readjust the stop_pc by
238 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
239 make this pc address equal to the value it would have if the
240 system stepping capability was used. Also set a new flag used
241 to ensure that we don't readjust the PC one more time later.
243 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
244 address by DECR_PC_AFTER_BREAK when software single step is
245 in use for this architecture, as this has already been taken
246 care of in handle_inferior_event().
248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
250 * infrun.c (handle_inferior_event): Minor reformatting, to make
251 a rather long condition expression easier to read.
253 2002-08-16 Andrew Cagney <ac131313@redhat.com>
255 * Makefile.in (gdbtk.o): Move to end of file.
256 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
257 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
258 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
259 (gdbtk-wrapper.o, gdbres.o): Ditto.
261 2002-08-16 Andrew Cagney <ac131313@redhat.com>
263 * Makefile.in (copying.o): Separate out compile rule.
264 (hpux-thread.o, procfs.o, signals.o): Ditto.
265 (v850ice.o, z8k-tdep.o): Ditto.
266 (tui-file.o): Move to TUI section.
267 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
268 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
270 2002-08-16 Joel Brobecker <brobecker@gnat.com>
272 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
273 skip_trampoline_code, for better namespace-proofing.
275 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
277 2002-08-16 Joel Brobecker <brobecker@gnat.com>
279 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
281 2002-08-16 Joel Brobecker <brobecker@gnat.com>
283 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
284 signal, check whether we hit a breakpoint before checking for a
285 single step breakpoint. Otherwise, GDB fails to notice that a
286 breakpoint has been hit when stepping onto a breakpoint.
288 2002-08-16 Keith Seitz <keiths@redhat.com>
290 * gdb-events.sh (clear_gdb_event_hooks): New function.
291 * gdb-events.c: Regenerate.
292 * gdb-events.h: Regenerate.
294 2002-08-16 Andrew Cagney <ac131313@redhat.com>
296 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
298 * breakpoint.h (bpstat_stop_status): Add parameter names.
300 2002-08-16 Grace Sainsbury <graces@redhat.com>
302 * remote.c (remote_insert_hw_breakpoint)
303 (remote_remove_hw_breakpoint): Fix calculation of length field
306 2002-08-15 Michael Snyder <msnyder@redhat.com>
308 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
309 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
310 (supply_fpregset): Ditto.
312 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
313 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
314 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
315 (TARGET_READ_SP): Delete.
316 (DO_REGISTERS_INFO): Delete.
317 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
319 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
320 from macros to functions.
322 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
323 (mips_register_convertible, mips_register_convert_to_virtual,
324 mips_register_convert_to_raw): Make static.
325 (mips_read_sp): New function.
326 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
327 (mips_do_registers_info): Make static.
328 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
329 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
330 (mips_register_convert_from_type, mips_register_convert_to_type):
332 (mips_gdbarch_init): Set up function_start_offset,
333 register_virtual_size, pc_in_sigtramp.
335 2002-08-15 Andrew Cagney <ac131313@redhat.com>
337 * infcmd.c (vector_info): New function.
338 (_initialize_infcmd): Add command "info vector".
339 (print_vector_info): New function.
341 * gdbarch.sh (PRINT_VECTOR_INFO): New method
342 * gdbarch.h, gdbarch.c: Regenerate.
344 2002-08-15 Andrew Cagney <ac131313@redhat.com>
346 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
347 ``print_all''. Only print vector registers when ``print_all''.
349 2002-08-15 Andrew Cagney <ac131313@redhat.com>
351 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
352 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
354 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
355 Add `args' parameter.
356 * gdbarch.h, gdbarch.c: Regenerate.
358 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
360 * infcmd.c (float_info): Call print_float_info.
361 (print_float_info): New function. By default, print the
362 floating-point registers.
364 * arch-utils.h (default_print_float_info): Delete declaration.
365 * arch-utils.c (default_print_float_info): Delete function.
367 2002-08-16 Mark Kettenis <kettenis@gnu.org>
369 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
372 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
375 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
376 * configure.host: Make i[3456]86-*-aix host obsolete.
377 * configure.tgt: Make i[3456]86-*-aix target obsolete.
378 * config/i386/i386aix.mh, config/i386/i386aix.mt,
379 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
380 config/i386/xm-i386aix.h: Make files obsolete.
381 * i386aix-nat.c: Make file obsolete.
382 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
383 (i386aix-nat.o): Make target obsolete.
385 * config/i386/nm-gnu.h: Removed.
386 * config/i386/nm-i386gnu.h: New file.
387 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
388 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
390 * config/i386/tm-i386gnu.h: ... here. Removed.
391 * config/i386/xm-i386gnu.h: Removed.
392 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
393 (NAT_FILE): Set to nm-i386gnu.h.
394 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
395 * i386-tdep.c: New file.
396 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
397 (i386gnu-tdep.o): Specify dependencies.
399 2002-08-15 Mark Kettenis <kettenis@gnu.org>
401 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
402 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
403 Adjust a few comments to reflect reality a bit closer.
404 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
405 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
406 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
407 target_insert_watchpoint, target_remove_watchpoint):
409 * config/i386/nm-i386sco5.h: ... here.
410 (kernel_u_size): Add prototype. Improve a few comments and add
411 protection against multiple inclusion.
413 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
416 * uw-thread.c (SP_ARG0): Define if not already defined.
417 * config/i386/tm-i386.h (SO_ARG0): Remove define.
419 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
421 * config/i386/tm-i386.h: Don't include "regcache.h".
423 * i387-tdep.h (i387_print_float_info): New prototype.
424 * i387-tdep.c (print_i387_value, print_i387_ext,
425 print_i387_status_word, print_i387_control_word): Add `struct
426 ui_file *' argument and use it for output.
427 (i387_print_float_info): Renamed from i387_float_info. Add
428 `struct gdbarch *' and `struct ui_file *' arguments and use the
430 * i386-tdep.c: Include "i387-tdep.h".
431 (i386_gdbarch_init): Set print_float_info.
432 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
433 (FLOAT_INFO): Remove define.
435 2002-08-13 Michael Snyder <msnyder@redhat.com>
437 * mips-tdep.c (mips_push_arguments): Rename to
438 mips_eabi_push_arguments, and tune for EABI.
439 (MIPS_REGS_HAVE_HOME_P): Delete.
440 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
441 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
442 Delete references to mips_regs_have_home_p.
444 2002-08-14 Keith Seitz <keiths@redhat.com>
446 * Makefile.in (install-gdbtk): Create insight plugin directory.
447 Install plugins.tcl file.
449 2002-08-14 Keith Seitz <keiths@redhat.com>
451 * configure.in: Move SUBDIRS to near top of the file so that
452 --enable options may add things to it.
453 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
454 * configure: Regenerate.
456 2002-08-13 Michael Snyder <msnyder@redhat.com>
458 * mips-tdep.c (mips_o32o64_push_arguments): New function,
459 cloned from mips_push_arguments, tuned for o32/o64 ABI.
460 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
462 2002-08-13 Andrew Cagney <ac131313@redhat.com>
464 * vax-tdep.c (vax_get_saved_register): Delete function.
465 (vax_gdbarch_init): Update.
466 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
467 (ns32k_gdbarch_init): Update.
468 * alpha-tdep.c (alpha_get_saved_register): Delete function.
469 (alpha_gdbarch_init): Update.
471 2002-08-13 Andrew Cagney <cagney@redhat.com>
473 * regcache.c (init_regcache_descr): Overallocate the
474 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
475 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
477 (set_register_cached): Add range checking assertions. Use
480 2002-08-13 Mark Kettenis <kettenis@gnu.org>
482 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
483 numbers for MMX registers.
485 2002-08-13 Andrew Cagney <cagney@redhat.com>
487 * i386-tdep.c (i386_gdbarch_init): Use
488 generic_unwind_get_saved_register.
490 2002-08-13 Kevin Buettner <kevinb@redhat.com>
492 * procfs.c (procfs_can_use_hw_breakpoint): New function.
493 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
495 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
496 Delete. Add comment regarding this now-deleted target method.
498 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
500 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
501 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
502 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
503 real PC and the page number (if it's within the memory bank window).
504 (m68hc11_pseudo_register_write): Likewise when saving.
505 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
506 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
507 (m68hc11_register_raw_size): And use 32-bit for it.
508 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
509 16K memory bank is used by the prog; also use the virtual pc.
511 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
513 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
514 (m68hc11_gdbarch_init): Install it in gdbarch.
515 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
516 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
517 (MSYMBOL_SIZE): New for documentation.
518 (insn_return_kind): Enum to specify how a function returns.
519 (frame_extra_info): Cleanup and record the return mode.
520 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
521 register in address computation.
522 (m68hc11_get_return_insn): New to obtain the return instruction used
524 (m68hc11_frame_init_saved_regs): Take into account the return
525 instruction used by the function for far and interrupt functions.
526 (m68hc11_init_extra_frame_info): Take into account page register.
527 (m68hc11_frame_args_address): Adjust according to the return mode.
528 (show_regs): Print page register only when it's used.
530 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
532 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
533 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
534 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
536 (m68hc11_register_raw_size): Likewise.
538 2002-08-13 Andrew Cagney <cagney@redhat.com>
540 * i386-tdep.c (i386_register_name): Handle mmx registers.
541 (mmx_regnum_p): New function.
542 (i386_mmx_names): New array.
543 (mmx_num_regs): New variable.
544 (i386_pseudo_register_read): New function.
545 (i386_pseudo_register_write): New function.
546 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
548 * regcache.c (regcache_raw_read_unsigned): New function.
549 (regcache_raw_read_signed): New function.
550 * regcache.h (regcache_raw_read_unsigned): Declare.
551 (regcache_raw_read_signed): Declare.
553 2002-08-13 Andrew Cagney <cagney@redhat.com>
555 * regcache.c (regcache_raw_read_as_address): Delete function.
556 (regcache_cooked_read_signed): New function.
557 (regcache_cooked_read_unsigned): New function.
558 * regcache.h (regcache_cooked_read_signed): Declare.
559 (regcache_cooked_read_unsigned): Declare.
560 (regcache_raw_read_as_address): Delete declaration.
562 * blockframe.c (generic_read_register_dummy): Use
563 regcache_cooked_read_unsigned.
564 * i386-tdep.c (i386_extract_struct_value_address): Use
565 regcache_cooked_read_unsigned.
567 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
570 double sizes according to ELF ABI flags.
571 (gdbarch_tdep): Record elf_flags.
573 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
575 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
576 (m6812_prolog): They can appear in 68HC12 function prologue.
577 (m68hc11_frame_chain): Cleanup.
579 2002-08-12 Andrew Cagney <cagney@redhat.com>
581 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
583 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
584 (i386_linux_register_raw_size): Delete function.
585 (i386_linux_init_abi): Update.
586 * i386-tdep.c (i386_register_raw_size): Delete function.
587 (i386_register_byte): Delete function.
588 (i386_gdbarch_init): Update.
589 (i386_register_size): Delete array.
590 (i386_register_offset): Delete array.
592 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
593 (REGISTER_RAW_SIZE): Delete macro.
594 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
595 (REGISTER_BYTE): Delete macro.
597 2002-08-11 Aidan Skinner <aidan@velvet.net>
599 * ada-lang.c (ada_lookup_partial_symbol)
600 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
601 prototype names so that grep ^func works properly.
603 * ada-lang.c (ada_array_element_type)
604 (ada_lookup_partial_symbol): Fix typos in parameter list.
606 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
607 Fix prototype names so that grep ^func works properly.
609 2002-08-10 Andrew Cagney <cagney@redhat.com>
610 Elena Zannoni <ezannoni@redhat.com>
611 Martin M. Hunt <hunt@redhat.com>
613 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
614 (build_builtin_type_vec128i): Set the vector bit.
615 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
616 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
617 (build_builtin_type_vec64): New function.
618 (build_builtin_type_vec64i): New function.
619 (build_gdbtypes): Initialize builtin_type_vec64 and
622 2002-08-09 Andrew Cagney <cagney@redhat.com>
624 * regcache.c (regcache_dump): Compare the register offset
626 * arch-utils.c (generic_register_byte): New function.
627 * arch-utils.h (generic_register_byte): Declare.
628 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
629 * gdbarch.h, gdbarch.c: Regenerate.
631 2002-08-09 Andrew Cagney <cagney@redhat.com>
633 * regcache.c: Include "gdbcmd.h"
634 (_initialize_regcache): Add commands "maintenance print
635 registers", "maintenance print raw-registers" and "maintenance
636 print cooked-registers".
637 (enum regcache_dump_what): Define.
638 (dump_endian_bytes): New function.
639 (regcache_dump): New function.
640 (regcache_print): New function.
641 (maintenance_print_registers): New function.
642 (maintenance_print_raw_registers): New function.
643 (maintenance_print_cooked_registers): New function.
644 * Makefile.in (regcache.o): Update dependencies.
646 2002-08-09 Michael Snyder <msnyder@redhat.com>
648 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
649 (mips_push_arguments): Correct some comments. Use paddr_nz
650 for printing addresses in debug output. Replace static
651 allocation using MAX_REGISTER_RAW_SIZE with alloca.
652 (mips_n32n64_push_arguments): New function, cloned from
653 mips_push_arguments and tuned for the n32/n64 ABI.
654 (mips_push_register): Buffer needs dynamic allocation.
655 (mips_print_register): Ditto.
656 (do_gp_register_row): Ditto.
657 (mips_store_return_value): Ditto.
658 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
660 2002-08-09 Don Howard <dhoward@redhat.com>
662 * memattr.c (mem_info_command): Print special case of upper bound
663 as max CORE_ADDR + 1.
665 2002-08-08 Michael Snyder <msnyder@redhat.com>
667 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
668 returns structs by ref if they're too big to fit in two registers.
670 2002-08-09 Kevin Buettner <kevinb@redhat.com>
672 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
674 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
675 mips_find_saved_regs().
676 (mips_pop_frame): Likewise.
678 2002-08-09 Kevin Buettner <kevinb@redhat.com>
680 * blockframe.c (frame_saved_regs_register_unwind): Revise
681 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
684 2002-08-09 Grace Sainsbury <graces@redhat.com>
686 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
687 T-packets; the 'a' is not taken as a register number.
688 (remote_check_watch_resources, remote_stopped_by_watchpoint)
689 (remote_stopped_data_address): New functions; add to target
691 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
692 prototypes to match other implementations of this
693 function. replace integer argument with pointer -- the length
694 field in the Z-packet is the length of what is pointed to or 1 if
695 pointer is null. Add to target vector.
696 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
700 * remote.c (remote_wait): Add support to extract optional
701 watchpoint information from T-packet. Ignore unrecognized
702 optional info in T-packet.
703 (remote_async_wait): Ditto.
705 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
707 * cli/cli-dump.c: Change fopen modes to use binary open modes
708 as defined in include/fopen-bin.h throughout.
710 2002-08-08 Michael Snyder <msnyder@redhat.com>
712 * mips-tdep.c: Minor whitespace and indentation clean-ups.
714 2002-08-08 Kevin Buettner <kevinb@redhat.com>
716 * doublest.c (store_floating): Avoid floatformat_from_doublest()
717 assertion failure by returning early after a warning.
719 2002-08-08 Kevin Buettner <kevinb@redhat.com>
721 * mips-tdep.c (mips_find_saved_regs): Make static.
722 (mips_frame_init_saved_regs): New function.
723 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
724 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
725 (mips_find_saved_regs): Delete declaration.
727 2002-08-08 Grace Sainsbury <graces@redhat.com>
729 * remote.c (remote_wait, remote_async_wait): Change
730 thread_num from int to ULONGEST.
731 (unpack_varlen_hex): Change result parameter from
734 2002-08-08 Andrew Cagney <ac131313@redhat.com>
736 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
737 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
739 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
741 2002-08-08 Andrew Cagney <cagney@redhat.com>
743 * gcore.c (override_derive_stack_segment): Delete variable.
744 (preempt_derive_stack_segment): Delete function.
745 (derive_stack_segment): Delete function.
746 (default_derive_stack_segment): Renamed to derive_stack_segment.
747 (override_derive_heap_segment): Delete variable.
748 (preempt_derive_heap_segment): Delete function.
749 (derive_heap_segment): Delete function.
750 (default_derive_heap_segment): Rename to derive_heap_segment.
752 2002-08-06 Michael Snyder <msnyder@redhat.com>
754 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
755 * mips-tdep.c (mips_EABI_use_struct_convention,
756 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
757 New functions. (mips_use_struct_convention): Delete.
758 (mips_gdbarch_init): set use_gdbarch_convention.
760 2002-08-06 Michael Snyder <msnyder@redhat.com>
762 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
763 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
764 mips_o32_reg_struct_has_addr): New functions.
765 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
767 2002-08-07 Andrew Cagney <ac131313@redhat.com>
769 * regcache.c (pseudo_register): Delete function.
770 (fetch_register): Delete function.
771 (store_register): Delete function.
772 (regcache_raw_read, legacy_read_register_gen): Use
773 target_fetch_registers instead of fetch_register.
774 (legacy_write_register_gen, regcache_raw_write): Use
775 target_store_register instead of store_register.
776 (write_register_bytes): Ditto.
778 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
779 (STORE_PSEUDO_REGISTER): Delete.
780 * gdbarch.h, gdbarch.c: Regenerate.
782 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
784 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
785 write dump file binary.
787 2002-08-05 Michael Snyder <msnyder@redhat.com>
789 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
790 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
791 (mips_gdbarch_init): Set N32 target to be mips64.
793 2002-08-06 Kevin Buettner <kevinb@redhat.com>
795 * frame.c (find_saved_register): Break out of loop once saved
796 register address is found. Don't mention sparc in loop comment
799 2002-08-06 Kevin Buettner <kevinb@redhat.com>
801 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
802 mips_default_saved_regsize to 8.
804 2002-08-06 Andrew Cagney <ac131313@redhat.com>
806 * gcore.c: Do not include <sys/procfs.h>.
807 * Makefile.in (gcore.o): Update dependencies.
809 2002-08-06 Andrew Cagney <cagney@redhat.com>
811 * configure.tgt: Make arc-*-* obsolete.
812 * NEWS: Mention that arc-*-* has been identifed as obsolete.
813 * MAINTAINERS: Make arc-elf obsolete.
814 * arc-tdep.c: Make file obsolete.
815 * config/arc/arc.mt: Ditto.
816 * config/arc/tm-arc.h: Ditto.
818 2002-08-05 Theodore A. Roth <troth@verinet.com>
820 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
822 2002-08-05 Andrew Cagney <ac131313@redhat.com>
824 * mcore-tdep.c (mcore_gdbarch_init): Use
825 generic_unwind_get_saved_register instead of
826 generic_get_saved_register.
827 * v850-tdep.c (v850_gdbarch_init): Ditto.
828 * frv-tdep.c (frv_gdbarch_init): Ditto.
829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
830 * s390-tdep.c (s390_gdbarch_init): Ditto.
831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
832 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
833 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
835 2002-08-05 Joel Brobecker <brobecker@gnat.com>
837 * objfiles.h: Add missing #include "symfile.h"
839 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
841 2002-08-04 Andrew Cagney <ac131313@redhat.com>
843 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
844 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
847 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
849 * NEWS: Cleanup and nitpick.
851 2002-08-03 Andrew Cagney <ac131313@redhat.com>
853 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
855 2002-08-03 Andrew Cagney <ac131313@redhat.com>
857 * Makefile.in (gdbtk-bp.o): Update dependencies.
858 (gdbtk-register.o): Ditto.
859 (gdbtk-varobj.o): Ditto.
861 2002-08-03 Andrew Cagney <cagney@redhat.com>
863 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
864 m68hc11_fetch_pseudo_register.
865 (m68hc11_pseudo_register_write): Replace
866 m68hc11_store_pseudo_register.
867 (m68hc11_gdbarch_init): Update.
869 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
871 * gdbarch.sh: Include "gdb_string.h".
872 * gdbarch.c: Regenerate.
874 * regcache.c: Include "gdb_string.h".
875 * ax-general.c: Ditto.
878 * fbsd-proc.c: Ditto.
881 * Makefile.in (regcache.o): Update dependencies.
882 (thread.o, gdbarch.o): Ditto.
883 (ax-general.o, gdbarch.o): Ditto.
884 (varobj.o, std-regs.o): Ditto.
885 (fbsd-proc.o): Specify dependencies.
887 2002-08-02 Andrew Cagney <cagney@redhat.com>
889 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
891 (regcache_cooked_write): Ditto.
893 2002-08-02 Andrew Cagney <ac131313@redhat.com>
895 * regcache.c (regcache_cooked_read): New function.
896 (regcache_cooked_write): New function.
897 (read_register_gen): Rewrite using regcache_cooked_read.
898 (write_register_gen): Rewrite using regcache_cooked_write.
900 * regcache.h (regcache_cooked_read, regcache_cooked_write):
903 2002-08-02 Andrew Cagney <cagney@redhat.com>
905 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
906 Replace the architecture methods register_read and register_write.
907 * gdbarch.h, gdbarch.c: Regenerate.
908 * regcache.c (init_regcache_descr): Update.
909 (read_register_gen): Update.
910 (write_register_gen): Update.
911 (supply_register): Update comment.
913 * sh-tdep.c (sh_gdbarch_init): Update.
914 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
915 `regcache' and `gdbarch' parameters. Make `buffer' a void
916 pointer. Update code.
917 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
918 `regcache' and `gdbarch' parameters. Make `buffer' a constant
919 void pointer. Update code.
920 (sh64_register_write): Delete.
921 (sh4_register_read): Delete.
922 (sh64_register_read): Delete.
923 (sh4_register_write): Delete.
924 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
925 void pointer, `to' parameter a void pointer.
926 (sh_sh64_register_convert_to_raw): Ditto.
928 2002-08-01 Kevin Buettner <kevinb@redhat.com>
930 * mips-tdep.c (mips_register_virtual_type): Use architecture
931 invariant return values.
933 2002-08-01 Andrew Cagney <cagney@redhat.com>
935 * linux-proc.c: Include "gdb_string.h".
936 * Makefile.in (linux-proc.o): Update dependency list.
938 2002-08-01 Kevin Buettner <kevinb@redhat.com>
940 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
943 2002-08-01 Grace Sainsbury <graces@redhat.com>
945 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
946 to_insert_watchpoint, to_remove_watchpoint,
947 to_stopped_by_watchpoint, to_stopped_data_address,
948 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
949 target vecctor. Define their corresponding macros so they call
952 * target.c: Add default and debug versions of for
953 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
954 to_insert_watchpoint, to_remove_watchpoint,
955 to_stopped_by_watchpoint, to_stopped_data_address,
956 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
958 2002-08-01 Kevin Buettner <kevinb@redhat.com>
960 * mips-tdep.c (mips_register_virtual_type): New function.
961 (mips_gdbarch_init): Register mips_register_virtual_type()
962 with gdbarch machinery.
963 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
964 this file instead of tm-bigmips.h.
965 (MIPS_REGSIZE): Delete this macro.
966 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
967 multiarch version in mips-tdep.c will be found.
969 2002-08-01 Andrew Cagney <cagney@redhat.com>
971 * NEWS: Menion that CHILL has been made obsolete.
973 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
974 * gdbserver/Makefile.in: Ditto.
975 * stabsread.c (read_range_type): Ditto.
977 * language.c (binop_type_check): Ditto.
978 (binop_result_type): Ditto.
979 (integral_type): Ditto.
980 (character_type): Ditto.
981 (string_type): Ditto.
982 (boolean_type): Ditto.
983 (structured_type): Ditto.
984 (lang_bool_type): Ditto.
985 (binop_type_check): Ditto.
986 * language.h (_LANG_chill): Ditto.
987 * dwarfread.c (set_cu_language): Ditto.
988 * dwarfread.c (CHILL_PRODUCER): Ditto.
989 * dwarfread.c (handle_producer): Ditto.
990 * expression.h (enum exp_opcode): Ditto.
991 * eval.c: Ditto for comments.
992 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
993 * expprint.c (print_subexp): Ditto.
994 (print_subexp): Ditto.
995 * valops.c (value_cast): Ditto.
996 (search_struct_field): Ditto.
997 * value.h (COERCE_VARYING_ARRAY): Ditto.
998 * symfile.c (init_filename_language_table): Ditto.
999 (add_psymbol_with_dem_name_to_list): Ditto.
1000 * valarith.c (value_binop): Ditto.
1002 * valops.c (value_slice): Ditto.
1003 * symtab.h (union language_specific): Ditto.
1004 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1005 (SYMBOL_DEMANGLED_NAME): Ditto.
1006 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1007 * defs.h (enum language): Ditto.
1008 * symtab.c (got_symtab): Ditto.
1009 * utils.c (fprintf_symbol_filtered): Ditto.
1011 * ch-typeprint.c: Make file obsolete.
1012 * ch-valprint.c: Make file obsolete.
1013 * ch-lang.h: Make file obsolete.
1014 * ch-exp.c: Make file obsolete.
1015 * ch-lang.c: Make file obsolete.
1017 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1019 (TARGET_FLAGS_TO_PASS): Ditto.
1020 (CHILLFLAGS): Obsolete.
1022 (CHILL_FOR_TARGET): Obsolete.
1023 (CHILL_LIB): Obsolete.
1024 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1026 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1027 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1029 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1032 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1034 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1035 This does not change anything at the moment, but will be helpful
1036 later when full Ada support is integrated.
1038 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1040 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1043 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1045 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1046 and save it in a local variable. Use variable in later test.
1048 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1050 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1051 test. (Thanks to Daniel Jacobowitz.)
1053 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1055 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1056 (mips_abi_strings): Add "n64".
1057 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1059 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1061 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1062 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1064 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1066 * utils.c (host_pointer_to_address, address_to_host_pointer):
1067 Use gdb_assert() instead of explicit call to internal_error().
1069 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1071 * Makefile.in (rs6000-nat.o): Update dependencies.
1073 From Nicholas Duffek:
1074 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1075 (aix-thread.o): New rule.
1076 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1077 * config/powerpc/aix432.mh: New file.
1079 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1081 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1082 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1083 (fetch_core_registers, ppc_linux_supply_gregset)
1084 (ppc_linux_supply_fpregset): New functions.
1085 (ppc_linux_regset_core_fns): New.
1086 (_initialize_ppc_linux_tdep): Call add_core_fns.
1087 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1088 and ppc_linux_supply_gregset.
1089 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1090 (supply_fpregset): Call ppc_linux_supply_fpregset.
1091 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1093 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1095 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1097 * symtab.c (lookup_symbol): Demangle before lowercasing.
1099 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1101 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1103 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1104 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1105 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1106 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1108 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1109 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1110 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1111 (avr-tdep.o, mon960-rom.o): Ditto.
1112 (aout_stabs_gnu_h): Define.
1113 (symtab_h): Remove $(gdb_obstack_h).
1115 2002-07-30 Jim Blandy <jimb@redhat.com>
1117 Patch from David Carlton <carlton@math.stanford.edu>:
1118 * gdbinit.in: Move the `dir' commands that add GDB's own source
1119 directory to the search path to the end, so that the `gdb' source
1120 directory will be searched first.
1122 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1124 * gdb_obstack.h: New file.
1125 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1126 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1127 * objfiles.h: Include "gdb_obstack.h".
1128 * Makefile.in (gdb_obstack_h): Define.
1129 (symtab_h): Add $(gdb_obstack_h).
1130 (objfiles_h): Add $(gdb_obstack_h).
1132 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1133 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1134 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1135 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1136 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1137 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1138 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1139 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1141 * Makefile.in (bcache.o): Update dependencies.
1142 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1143 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1144 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1145 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1146 (stabsread.o, symfile.o, symmisc.o): Ditto.
1147 (symtab.o, typeprint.o, macroexp.o): Ditto.
1148 (macrotab.o, mdebugread.o): Ditto.
1149 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1150 (coff_ecoff_h, aout_aout64_h): Define.
1151 (aout_stabs_gnu_h, libaout_h): Define.
1153 2002-07-29 Andrew Cagney <cagney@redhat.com>
1155 * regcache.c (struct regcache_descr): Rename nr_registers to
1156 nr_cooked_registers. Revise comments describing the structure
1158 (init_regcache_descr): Update.
1159 (init_legacy_regcache_descr): Update.
1160 (read_register_gen, write_register_gen): When a cooked register in
1161 the raw register range, directly access the value from the raw
1164 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1166 * z8k-tdep.c: Do not include "obstack.h".
1167 * h8300-tdep.c, h8500-tdep.c: Ditto.
1168 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1169 * valprint.c, v850-tdep.c: Ditto.
1170 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1171 * mn10200-tdep.c: Ditto.
1173 * Makefile.in (z8k-tdep.o): Update dependencies.
1174 (m68hc11-tdep.o, valprint.o): Ditto.
1175 (v850-tdep.o, d10v-tdep.o): Ditto.
1176 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1177 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1178 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1179 (sh_opc_h, gdb_sim_sh_h): Define.
1180 (elf_sh_h, elf_bfd_h): Define.
1181 (opcode_m68hc11_h): Define.
1182 (OPCODES_SRC, OPCODES_DIR): define.
1183 (OPCODES): Use $(OPCODES_DIR).
1184 (gdb_sim_d10v_h): Rename sim_d10v_h.
1185 (gdb_sim_arm_h): Rename sim_arm_h.
1187 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1189 * utils.c (host_pointer_to_address, address_to_host_pointer):
1190 Change internal_error() message to indicate function responsible
1193 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1195 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1196 calls to local_hex_string_custom().
1198 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1200 * irix5-nat.c: Move IRIX shared library support from here...
1201 * solib-irix.c: ...to here. Revised substantially to work with
1202 generic solib framework.
1204 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1205 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1206 * mips-irix-tdep.c: New file.
1208 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1209 (mips-irix-tdep.o, solib-irix.o): New rules.
1210 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1212 * config/mips/irix6.mt (TDEPFILES): Likewise.
1213 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1215 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1217 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1218 disabled (via ``#if 0'') includes.
1220 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1222 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1223 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1224 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1225 Add support for the fpscr register.
1226 * rs6000-nat.c (regmap, fetch_inferior_registers)
1227 (store_inferior_registers, fetch_core_registers): Likewise.
1229 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1231 * rs6000-nat.c (language.h): Include.
1232 (special_regs): Delete this array.
1233 (regmap): New function.
1234 (fetch_register, store_register): Use regmap() to map gdb
1235 register numbers to ptrace register numbers. Also, use
1236 outputs from regmap() to make decisions regarding type of
1237 ptrace() call to make. In particular, don't compare against
1238 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1239 (fetch_inferior_registers, store_inferior_registers): Where
1240 possible, obtain register numbers from tdep struct. Don't
1241 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1242 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1243 (LAST_UISA_SP_REGNUM): Delete.
1245 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1247 * rs6000-nat.c (ppc-tdep.h): Include.
1248 (fetch_registers, store_register, fetch_core_registers): Don't
1249 access registers[] directly. Instead, use supply_register() or
1250 regcache_collect() as appropriate.
1251 (find_toc_address): Format hex address with local_hex_string().
1253 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1255 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1258 2002-07-24 Tom Tromey <tromey@redhat.com>
1260 * jv-exp.y: Marked all strings with _().
1261 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1263 (MethodInvocation, CastExpression, parse_number, yyerror,
1264 java_type_from_name, push_expression_name, yylex): Typo fixes.
1266 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1268 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1269 (tee_file_flush, tee_file_write, tee_file_fputs)
1270 (tee_file_isatty): New.
1271 * ui-file.h (tee_file_new): Add prototype.
1273 2002-07-24 Aidan Skinner <aidan@velvet.net>
1275 * ada-lang.c: Change k&r style function definitions to prototyped
1277 * ada-typeprint.c: Change k&r style function definitions to prototyped
1279 * ada-valprint.c: Change k&r style function definitions to prototyped
1282 2002-07-24 Andrew Cagney <cagney@redhat.com>
1284 * README: Remove reference to remote-bug.
1285 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1287 (m88k-nat.o): Delete rule.
1288 (m88k-tdep.o): Delete rule.
1289 (remote-bug.o): Delete rule.
1290 * MAINTAINERS: Mark as obsolete.
1291 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1292 * m88k-tdep.c: Make file obsolete.
1293 * config/m88k/m88k.mh: Ditto.
1294 * config/m88k/delta88v4.mh: Ditto.
1295 * config/m88k/delta88v4.mt: Ditto.
1296 * config/m88k/delta88.mt: Ditto.
1297 * config/m88k/delta88.mh: Ditto.
1298 * remote-bug.c: Ditto.
1299 * config/m88k/tm-delta88.h: Ditto.
1300 * config/m88k/nm-delta88v4.h: Ditto.
1301 * config/m88k/xm-delta88.h: Ditto.
1302 * config/m88k/xm-dgux.h: Ditto.
1303 * config/m88k/tm-m88k.h: Ditto.
1304 * config/m88k/nm-m88k.h: Ditto.
1305 * config/m88k/tm-delta88v4.h: Ditto.
1306 * m88k-nat.c: Ditto.
1307 * cxux-nat.c: Ditto.
1308 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1309 and m88*-*-* obsolete.
1310 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1313 2002-07-24 Andrew Cagney <cagney@redhat.com>
1315 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1316 constant. Same for local pointer variables.
1317 (extract_signed_integer): Ditto.
1318 * defs.h (extract_unsigned_integer): Update.
1319 (extract_signed_integer): Update.
1321 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1323 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1324 * gdbserver/configure: Regenerate.
1325 * gdbserver/config.in: Regenerate.
1327 2002-07-24 Andrew Cagney <cagney@redhat.com>
1329 * regcache.c (regcache_raw_write): Change buf parameter to a
1330 constant void pointer.
1331 (regcache_raw_read): Change buf parameter to a void pointer.
1332 (legacy_write_register_gen): Change myaddr parameter a constant
1334 (supply_register): Change val parameter to a const void pointer.
1335 * regcache.h (regcache_raw_write): Update declaration.
1336 (regcache_raw_read): Update declaration.
1337 (supply_register): Update declaration.
1339 2002-07-24 Tom Tromey <tromey@redhat.com>
1341 * defs.h (gdb_readline_wrapper): Declare.
1342 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1343 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1344 * top.c (gdb_readline_wrapper): New function.
1345 (command_line_input): Use it.
1347 2002-07-24 Andrew Cagney <cagney@redhat.com>
1349 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1350 regcache_read and regcache_write.
1351 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1352 * regcache.c: Update.
1353 * sh-tdep.c (sh64_push_arguments): Update comment.
1354 (sh_pseudo_register_read): Update.
1355 (sh_pseudo_register_write): Update.
1356 (sh4_register_read): Update.
1357 (sh4_register_write): Update.
1358 (sh64_pseudo_register_read): Update.
1359 (sh64_pseudo_register_write): Update.
1360 (sh64_register_read): Update.
1361 (sh64_register_write): Update.
1362 * i386-tdep.c (i386_extract_return_value): Update.
1363 (i386_extract_struct_value_address): Update.
1364 (i386_extract_return_value): Update.
1365 * blockframe.c (generic_read_register_dummy): Update.
1366 (generic_call_dummy_register_unwind): Update
1367 * infrun.c (write_inferior_status_register): Update.
1369 2002-07-23 Jim Blandy <jimb@redhat.com>
1371 * parser-defs.h (expression_context_pc): Make this extern.
1372 (Thanks to Michael Snyder.)
1374 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1376 GDB 5.2.1 released from 5.2 branch.
1377 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1378 * README: Update to mention 5.2.1.
1380 2002-07-23 Mark Salter <msalter@redhat.com>
1382 * remote.c (remote_read_bytes): Fix check for error.
1384 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1386 * aix-thread.c (language.h): Include.
1387 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1388 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1389 Print newlines at end of debug messages.
1390 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1391 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1393 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1395 * aix-thread.c (ppc-tdep.h): Include.
1396 (special_register_p): New function.
1397 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1398 (store_regs_user_thread): Use register number information from
1399 gdbarch_tdep struct instead of hardcoded offsets relative to
1400 FIRST_UISA_SP_REGNUM.
1401 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1402 special_register_p() instead of using FPLAST_REGNUM and
1403 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1404 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1405 will be MQ's register number.
1407 2002-07-22 Michael Snyder <msnyder@redhat.com>
1409 * aix-thread.c (ops): Rename to aix_thread_ops.
1410 (base_ops): Rename to base_target.
1411 (ops_attach): Rename to aix_thread_attach.
1412 (ops_detach): Rename to aix_thread_detach.
1413 (ops_resume): Rename to aix_thread_detach.
1414 (ops_wait): Rename to aix_thread_wait.
1415 (ops_kill): Rename to aix_thread_kill.
1416 (init_ops): Rename to init_aix_thread_ops.
1417 (ops_fetch_register): Rename to aix_thread_fetch_register.
1418 (ops_store_register): Rename to aix_thread_store_register.
1419 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1420 (ops_thread_alive): Rename to aix_thread_thread_alive.
1421 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1422 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1423 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1424 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1425 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1426 (store_regs_lib): Rename to store_regs_user_thread.
1427 (store_regs_kern): Rename to store_regs_kernel_thread.
1429 2002-07-22 Michael Snyder <msnyder@redhat.com>
1431 * aix-thread.c (ops_prepare_to_store): Eliminate.
1432 (init_ops): Don't initialize ops.prepare_to_store.
1433 (store_regs_kern): Pre-fetch register buffers from child,
1434 because some registers may not be in the cache. Copy
1435 regs from register cache only if they are cached.
1436 (store_regs_lib): Copy regs from register cache only
1438 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1439 fill_gprs64): Ditto.
1441 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1443 * aix-thread.c (gdb_assert.h): Include.
1444 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1445 register sizes (from register cache) match size of buffer holding
1447 (fill_sprs32): Change parameter types to match those in the ptrace()
1449 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1450 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1452 2002-07-22 Michael Snyder <msnyder@redhat.com>
1454 * aix-thread.c (supply_sprs64): Cosmetic change.
1455 (supply_sprs32): Cosmetic change.
1456 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1457 (fill_sprs64): Use regcache_collect instead of read_register.
1458 (store_regs_lib): Use regcache_collect instead of
1459 read_register. Use fill_sprs32 instead of fill_sprs64,
1460 if debugging a 32-bit architecture.
1461 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1462 out of the register cache, instead of passing a pointer into
1463 the register cache directly to ptrace. Use regcache_collect
1464 insteaad of read_register.
1465 (ops_prepare_to_store): Use target_read_registers instead
1466 of read_register_bytes.
1468 2002-07-20 Aidan Skinner <aidan@velvet.net>
1470 * MAINTAINERS: Add self under write after approval.
1472 2002-07-20 Aidan Skinner <aidan@velvet.net>
1474 * ada-tasks.c: Change k&r style function definitions to prototyped
1477 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1479 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1480 * x86-64-tdep.c: Include "objfiles.h".
1481 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1482 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1484 2002-07-17 Michal Ludvig <michal@suse.cz>
1486 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1487 (update_context): Initialise cfa variable.
1489 2002-07-17 Michael Snyder <msnyder@redhat.com>
1491 * aix-thread.c: Shorten some long lines.
1492 Bring comments into line with code spec.
1494 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1496 * infrun.c: Re-indent using gdb_indent.sh.
1498 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1500 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1501 Leave the indentation temporarily untouched, to minimize the diffs.
1503 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1505 * stabsread.c: Make os9k sections of the code obsolete,
1507 * stabsread.h: Make os9k sections of the code obsolete.
1509 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1511 * linux-low.c (regsets_store_inferior_registers): Add free()
1512 at the end of a loop to prevent memory leak.
1513 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1514 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1515 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1517 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1519 2002-07-17 Jim Blandy <jimb@redhat.com>
1521 * macrocmd.c (info_macro_command): Remove newline from error
1524 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1526 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1527 (sh_gdbarch_init): Use it for sh-dsp.
1529 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1531 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1532 64-bit DWARF2 format.
1534 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1536 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1537 <sys/proc.h> when not available.
1539 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1541 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1542 * stabsread.c: Make os9k sections of the code obsolete.
1543 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1544 * config/i386/i386os9k.mt: Make file obsolete.
1545 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1546 (COMMON_OBS): Remove os9kread.o
1547 (SFILES): Remove os9kread.c.
1548 (os9kread.o, remote-os9k.o): Make target obsolete.
1549 * remote-os9k.c: Make file obsolete.
1550 * os9kread.c: Make file obsolete.
1553 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1555 * NEWS: Mention that the FR30 has been made obsolete.
1556 * fr30-tdep.c: Make file obsolete.
1557 * config/fr30/tm-fr30.h: Ditto.
1558 * config/fr30/fr30.mt: Ditto.
1559 * configure.tgt: Make fr30-*-elf obsolete.
1560 * MAINTAINERS: Make fr30-elf obsolete.
1562 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1564 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1565 found is not inside a section.
1567 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1569 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1571 (pdc_realloc): Use xrealloc() instead of realloc().
1573 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1575 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1576 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1577 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1580 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1582 * aix-thread.c (ptrace_check): Eliminate goto.
1583 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1586 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1588 * aix-thread.c (gdbcmd.h): Include.
1589 (DEBUG, DBG, DBG2, dbg): Eliminate.
1590 (debug_aix_thread): New static global.
1591 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1592 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1593 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1594 invocations to DBG and DBG2 macros to test against
1595 ``debug_aix_thread'' and call fprintf_unfiltered().
1596 (_initialize_aix_thread): Add new command "set debug aix-thread".
1598 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1600 From Gerhard Tonn <TON@de.ibm.com>:
1601 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1602 instead of supply_register.
1604 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1606 * dwarf2cfi.c: Include "gdb_assert.h".
1607 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1609 (update_context): Do not use __func__. Add missing ``break''.
1610 (update_context): Do not use __func__.
1612 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1614 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1615 and its setting. Set gdbarch instruction printing functions
1616 directly. For non-rs6000 case use new function
1617 gdb_print_insn_powerpc.
1618 (gdb_print_insn_powerpc): New function.
1620 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1622 * NEWS: Mention that the d30v has been marked obsolete.
1623 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1624 * configure.tgt: Mark d30v-*-* as obsolete.
1625 * d30v-tdep.c: Mark file as obsolete.
1626 * config/d30v/d30v.mt: Ditto.
1627 * config/d30v/tm-d30v.h: Ditto.
1629 2002-07-13 Aidan Skinner <aidan@velvet.net>
1631 * ada-tasks.c (add_task_entry): replace calls to
1632 malloc() with xmalloc
1633 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1635 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1636 ada_finish_decode_line_1, all_sals_for_line
1637 ada_breakpoint_rewrite): replace calls to free() with xfree()
1639 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1641 From Nicholas Duffek (with minor changes by Martin Hunt,
1642 Louis Hamilton, and Kevin Buettner):
1643 * aix-thread.c: New file.
1645 2002-07-12 Petr Sorfa <petrs@caldera.com>
1647 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1648 complaint for invalid attribute class or form.
1649 (read_func_scope): DW_AT_frame_base
1650 better handling of DW_AT_block*.
1651 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1652 better handling of DW_AT_block*.
1653 (read_common_block): DW_AT_location
1654 better handling of DW_AT_block*.
1655 (read_partial_die): DW_AT_location better handling
1657 (new_symbol): DW_AT_external better handling of
1658 DW_AT_block*. Proper initialization of variable
1660 (attr_form_is_block): New function that returns true
1661 if the attribute's form is of DW_FORM_block*.
1663 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1665 * valops.c (find_method_list): Remove comment about
1666 removed STATIC_MEMFUNCP argument.
1667 (value_find_oload_method_list): Likewise.
1669 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1671 From Nicholas Duffek:
1672 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1673 target_new_objfile_hook.
1675 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1677 From Nicholas Duffek:
1678 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1681 2002-07-12 Andrew Cagney <cagney@redhat.com>
1683 * MAINTAINERS: Mention --enable-sim-build-warnings.
1684 (m68hc11-elf): Disable sim build warnings.
1685 (m32r-elf): Mark as broken obsolete candidate.
1686 (x86_64-linux-gnu): Mark as buildable with -Werror.
1687 (arm-elf): Change -w to ``,'' which enables warnings but not
1690 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1692 * bcache.h: Update copyright.
1693 (struct bstring, struct bcache): Move definition to "bcache.c".
1694 Replaced by opaque declaration.
1695 (bcache_xfree): Replace free_bcache.
1696 (bcache_xmalloc, bcache_memory_used): Declare.
1698 * bcache.c: Update copyright.
1699 (struct bstring, struct bcache): Moved to here from "bcache.h".
1701 (bcache_xmalloc, bcache_memory_used): New functions.
1702 (bcache_xfree): Replace function free_bcache.
1704 * Makefile.in (objfiles.o): Add $(bcache_h).
1705 (objfiles_h): Remove $(bcache_h).
1706 (symfile.o): Add $(bcache_h).
1708 * symmisc.c: Update copyright.
1709 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1710 (print_objfile_statistics): Use bcache_memory_used.
1712 * symfile.c: Include "bcache.h".
1713 (reread_symbols): Use bcache_xfree.
1714 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1715 (add_psymbol_to_list): Pass psymbol_cache by value.
1716 (add_psymbol_with_dem_name_to_list): Ditto.
1718 * objfiles.h: Update copyright.
1719 (struct bcache): Declare opaque. Do not include "bcache.h".
1720 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1722 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1724 * objfiles.c: Include "bcache.h". Update copyright.
1725 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1727 (free_objfile): Use bcache_xfree.
1729 2002-07-11 Grace Sainsbury <graces@redhat.com>
1731 * monitor.c (monitor_fetch_register): Make name a constant.
1732 (monitor_store_register): Same.
1734 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1736 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1737 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1738 (finish_block) For non-function blocks, hash the symbol table. For
1739 function blocks, mark the symbol table as unhashed.
1740 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1741 (msymbol_hash_iw): Likewise.
1742 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1744 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1745 (lookup_minimal_symbol): Likewise for both.
1746 * symtab.h (struct block): Add `hashtable' flag. Comment the
1748 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1749 (ALL_BLOCK_SYMBOLS): Update.
1750 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1751 (struct symbol): Add `hash_next' pointer.
1752 * symtab.c (lookup_block_symbol): Search using the hash table when
1754 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1755 (search_symbols, find_addr_symbol): Likewise.
1757 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1758 (read_dst_symtab): Likewise.
1759 * jv-lang.c (get_java_class_symtab): Likewise.
1760 * mdebugread.c: Include "gdb_assert.h".
1761 (shrink_block): Assert that the block being modified is not hashed.
1762 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1763 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1765 (dump_symtab): Recognize hashed blocks.
1766 * printcmd.c (print_frame_args): Assert that function blocks do not
1767 have hashed symbol tables.
1768 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1769 (fill_in_ada_prototype, debug_print_block): Likewise.
1770 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1772 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1774 * stack.c (print_frame): Use result of frame_address_in_block()
1775 instead of fi->pc when evaluating symbols.
1776 (backtrace_command_1): Ditto.
1778 2002-07-11 Andrew Cagney <cagney@redhat.com>
1780 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1783 * arm-tdep.c (arm_register_name): Make return type constant.
1785 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1787 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1789 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1790 * s390-tdep.c (s390_fp_regnum): Ditto.
1791 (s390_read_fp): Ditto.
1792 (s390_pop_frame): Ditto.
1793 (_initialize_s390_tdep): Ditto.
1794 * remote.c (get_remote_state): Ditto.
1795 * procfs.c (mappingflags): Ditto.
1796 * memattr.c (_initialize_mem): Ditto.
1797 * mcore-tdep.c (mcore_pop_frame): Ditto.
1798 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1799 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1800 * language.c (set_case_str): Ditto.
1801 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1802 * frv-tdep.c (new_variant): Ditto.
1803 (frv_stopped_data_address): Ditto.
1804 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1805 (context_alloc): Ditto.
1806 (frame_state_alloc): Ditto.
1807 (unwind_tmp_obstack_init): Ditto.
1808 (unwind_tmp_obstack_free): Ditto.
1809 (cfi_read_fp): Ditto.
1810 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1811 (cris_pop_frame): Ditto.
1812 * c-lang.c (scanning_macro_expansion): Ditto.
1813 (finished_macro_expansion): Ditto.
1814 (c_preprocess_and_parse): Ditto.
1815 * gdbarch.sh: Ditto.
1816 * gdbarch.h, gdbarch.c: Regenerate.
1817 * config/mn10200/tm-mn10200.h: Adjust indentation.
1818 * target.c: Adjust indentation.
1819 * symtab.h: Adjust indentation.
1820 * stabsread.h: Adjust indentation.
1821 * remote-es.c: Adjust indentation.
1822 * os9kread.c: Adjust indentation.
1824 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1826 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1827 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1829 2002-07-10 Grace Sainsbury <graces@redhat.com>
1831 * NEWS: Mention m68k, mcore multi-arching.
1832 * MAINTAINERS: Change status of m68k, mcore to reflect
1835 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1837 * valops.c (find_overload_match): Free oload_syms.
1839 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1841 Define HAVE_SYS_PROC_H if sys/proc.h exists
1842 * configure.in: Add check for sys/proc.h
1843 * config.in: Regenerate.
1844 * configure: Regenerate.
1846 2002-07-09 Grace Sainsbury <graces@redhat.com>
1848 * config/m68k/tm-m68k.h: Remove macros wrapped in
1849 #if !GDB_MULTI_ARCH.
1851 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1853 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1854 (perror_with_name, remote_close, remote_open, expect, play): Static.
1856 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1858 * config.in, configure: Regenerate.
1860 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1862 * dwarf2cfi.c: Include "gcore.h".
1863 (execute_stack_op): Fix implementation of the
1864 DW_OP_deref and DW_OP_deref_size operators by letting do their
1865 lookup in the target.
1867 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1869 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1870 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1873 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1875 Fix PR gdb/595, gdb/602
1876 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1877 Don't call value_cast, just read the vtable pointer; update comments
1880 2002-07-05 Grace Sainsbury <graces@redhat.com>
1882 * config/mcore/tm-mcore.h: Remove file.
1883 * config/mcore/mcore.mt: Remove definition of TM_FILE
1884 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1886 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1888 * i386bsd-tdep.c: Include "gdb_string.h".
1890 2002-07-04 Grace Sainsbury <graces@redhat.com>
1892 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1893 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1895 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1896 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1897 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1898 (RETVAL_REGNUM): Move macros from tm-mcore.h
1899 (mcore_reg_struct_has_addr): New function.
1900 (mcore_gdbarch_init): Added initializations for the macros removed
1903 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1905 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1906 traditonal string branding within the ELF header.
1908 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1910 * symtab.c (remove_params): New function.
1911 (make_symbol_overload_list): Use it instead of cplus_demangle.
1912 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1914 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1916 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1918 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1920 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1921 and tdep->sigtramp_end.
1922 * i386obsd-nat.c: New file.
1923 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1925 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1926 Don't call get_current_frame().
1928 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1930 * i386-nat.c (child_post_startup_inferior): New function
1931 calling i386_cleanup_dregs if
1932 I386_USE_GENERIC_WATCHPOINTS is defined.
1933 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1934 conditional to acknowledge that i386-nat.c has its
1935 own child_post_startup_inferior function.
1937 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1939 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1940 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1941 instead of MAX_REGISTER_RAW_SIZE.
1942 (i386_extract_return_value, i386_extract_struct_value_address):
1943 Convert to use regcache.
1944 (i386_gdbarch_init): Set max_register_raw_size and
1945 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1946 Set extract_return_value and extract_struct_value_address instead
1947 of their deprecated variants.
1949 Convert i386 target to generic dummy frames.
1950 * i386-tdep.c: Include "symfile.h".
1951 (i386_frameless_signal_p): Consider a function to be frameless if
1952 the pc points at the first instruction of the function.
1953 (i386_frame_chain): Handle (generic) call dummies.
1954 (i386_frame_saved_pc): Likewise.
1955 (i386_frame_init_saved_regs): Remove code dealing with call
1956 dummies on the stack.
1957 (i386_push_dummy_frame): Removed.
1958 (i386_call_dummy_words): Removed.
1959 (i386_fix_call_dummy): Removed.
1960 (i386_push_return_address): New function.
1961 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1962 parameter, and don't call get_current_frame.
1963 (i386_pop_frame): New function.
1964 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1965 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1966 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1967 call_dummy_length to 0, set call_dummy_words to NULL, set
1968 sizeof_call_dummy_words to 0, set fix_call_dummy to
1969 generic_fix_call_dummy, set pc_in_call_dummy to
1970 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1971 generic_push_dummy_frame, set push_return_address to
1972 i386_push_return_address and set frame_chain_valid to
1973 generic_file_frame_chain_valid.
1975 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1977 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1978 byte offsets instead of an array of indexes.
1979 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1981 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1983 * gdbarch.sh (struct regcache): Add opaque declaration.
1984 (EXTRACT_RETURN_VALUE): New architecture method.
1985 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1986 * gdbarch.h, gdbarch.c: Regenerate.
1987 * arch-utils.c (legacy_extract_return_value): New function.
1988 * arch-utils.h (legacy_extract_return_value): Declare.
1989 * values.c (value_being_returned): Re-enable code handling
1990 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1991 deprecated_grub_regcache_for_registers call to block handling
1992 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1993 (EXTRACT_RETURN_VALUE): Do not define.
1995 2002-07-03 Grace Sainsbury <graces@redhat.com>
1997 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1998 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1999 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2000 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2001 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2002 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2003 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2004 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2005 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2006 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2007 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2008 argument so the function fits the prototype in the architecture
2010 (mcore_pop_frame): Remove argument so the function fits the
2011 prototype. Use get_current_frame instead of the argument.
2012 (mcore_push_arguments): Change type of struct_return so the
2013 function can be used in the architecture vector.
2014 (mcore_store_struct_return): Add.
2015 (mcore_frame_init_saved_regs): Add.
2016 (mcore_gdbarch_init): Add function calls to replace the macros
2017 removed from tm-mcore.h
2019 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2021 * infcmd.c (print_return_value): Remove compatibility code calling
2022 deprecated_grub_regcache_for_registers.
2024 * values.c: Include "regcache.h".
2025 (value_being_returned): Update. Use
2026 deprecated_grub_regcache_for_registers to extract the register
2028 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2029 ``struct regcache''.
2030 * Makefile.in (values.o): Add dependency on $(regcache_h).
2032 * inferior.h (run_stack_dummy): Change type of second parameter to
2033 a ``struct regcache''.
2034 * valops.c (hand_function_call): Change type of retbuf to ``struct
2035 regcache''. Allocate using regcache_xmalloc, clean using
2036 make_cleanup_regcache_xfree.
2037 * infcmd.c (run_stack_dummy): Update. Use
2038 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2040 * regcache.c (do_regcache_xfree): New function.
2041 (make_cleanup_regcache_xfree): New function.
2042 * regcache.h (make_cleanup_regcache_xfree): Declare.
2044 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2046 * event-top.c (command_line_handler): Don't read past
2047 beginning of buffer.
2049 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2051 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2053 (varobj_create): Store frame_id for root.
2054 (varobj_gen_name): Use xasprintf.
2055 (varobj_update): Save and restore frame using get_frame_id() and
2057 (create_child): Use xasprintf.
2058 (new_root_variable): Initialize frame_id.
2059 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2060 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2061 to prevent memory leak.
2063 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2065 * valops.c (hand_function_call): Move declaration of retbuf to
2066 start of function, allocate using malloc, add a cleanup but before
2067 the inf_status cleanup, cleanup the buffer. Rename local variable
2068 old_chain to inf_status_cleanup.
2070 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2072 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2074 * cli/cli-decode.c (cmd_func_p): New function.
2075 (cmd_func): New function.
2077 * command.h: Add cmd_func() and cmd_func_p().
2079 2002-07-03 Grace Sainsbury <graces@redhat.com>
2081 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2082 (REGISTER_SIZE): Remove.
2083 (MAX_REGISTER_RAW_SIZE): Remove.
2084 (REGISTER_VIRTUAL_TYPE): Remove.
2085 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2086 (REGISTER_NAME): Remove.
2087 (USE_GENERIC_DUMMY_FRAMES): Remove.
2088 (CALL_DUMMY): Remove.
2089 (CALL_DUMMY_START_OFFSET): Remove.
2090 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2091 (CALL_DUMMY_LOCATION): Remove.
2092 (FIX_CALL_DUMMY): Remove.
2093 (CALL_DUMMY_ADDRESS): Remove.
2094 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2095 (SAVE_DUMMY_FRAME_TOS): Remove.
2096 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2097 (mcore_register_virtual_type): New function.
2098 (mcore_register_byte): New function.
2099 (mcore_register_size): New function.
2100 (mcore_register_name): New function.
2101 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2102 macros removed from tm-mcore.h.
2103 (mcore_dump_tdep): Add.
2104 (_initialize_mcore_tdep): Add gdbarch_register call.
2106 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2108 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2109 frameless_look_for_prologue, such that we actually call this
2112 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2114 * frame.h (frame_address_in_block): New function.
2116 * blockframe.c (frame_address_in_block): New function extracted
2117 from get_frame_block().
2118 (get_frame_block): Use frame_address_in_block().
2119 (block_innermost_frame): Use frame_address_in_block() to match
2120 the frame pc address against the block boundaries rather than
2121 the frame pc directly. This prevents a failure when a frame pc
2122 is actually a return-address pointing immediately after the end
2125 2002-07-02 Grace Sainsbury <graces@redhat.com>
2127 * MAINTAINERS: Add self under write after approval.
2129 2002-07-02 Grace Sainsbury <graces@redhat.com>
2131 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2132 used in architecture vector. The default is
2133 m68k_local_breakpoint_from_pc.
2134 (m68k_local_breakpoint_from_pc): Add.
2135 (enum): Add register numbers from tm-m68k.h.
2136 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2138 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2139 GDB_MULTI_ARCH_PARTIAL.
2140 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2141 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2143 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2144 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2145 to enum in m68k-tdep.c
2147 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2149 * solib-osf.c (open_map): Compute the list of shared libraries
2150 loaded by the inferior, rather than the list of libraries loaded
2151 by GDB itself. Otherwise, GDB ends up reading the symbols from
2152 the wrong shared libraries...
2154 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2156 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2157 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2159 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2161 (FRAMELESS_SIGNAL): Remove function.
2162 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2163 i386_linux_saved_pc_after_call): Removed.
2164 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2165 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2166 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2168 * i386-tdep.c (i386_frameless_signal_p): New function.
2169 (i386_frame_chain): Deal with frameless signals.
2170 (i386_sigtramp_saved_sp): New function.
2171 (i386_frame_saved_pc): Deal with frameless signals.
2172 (i386_saved_pc_after_call): Make sure the correct value is
2173 returned just after entry into a sigtramp.
2174 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2175 i386fbsd4_sc_sp_offset): New variables.
2176 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2177 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2178 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2179 similiar to what we already did for sc_pc_offset.
2180 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2183 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2185 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2187 * config/i386/tm-x86-64linux.h: New.
2188 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2190 * config/i386/nm-x86-64.h: Rename to ...
2191 * config/i386/nm-x86-64linux.h: ... this one.
2192 * config/i386/x86-64linux.mh: Reflect the above change.
2194 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2196 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2197 with sigcontext_addr. Add sc_sp_offset.
2198 (i386bsd_sigtramp_saved_pc): Remove prototype.
2199 (i386bsd_sicontext_addr): Add prototype.
2200 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2201 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2202 (i386_svr4_sigtramp_saved_pc): Removed.
2203 (i386_svr4_sigcontext_addr): New function.
2204 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2205 Initialize tdep->sigcontext_addr instead. Initialize
2206 tdep->sc_pc_offset and tdep->sc_sp_offset.
2207 (i386_gdbarch_init): Likewise.
2208 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2210 (i386bsd_sigtramp_saved_pc): Remove function.
2211 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2212 Initialize tdep->sigcontext_addr instead. Initialize
2214 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2215 of tdep->sigtramp_saved_pc.
2216 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2217 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2220 * i386-tdep.c (i386_frameless_function_invocation,
2221 i386_frame_num_args, i386_frame_init_saved_regs,
2222 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2223 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2224 i386_extract_return_value, i386_store_return_value,
2225 i386_extract_struct_value_address, i386_register_virtual_type,
2226 i386_register_convertible, i386_register_convert_to_virtual,
2227 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2228 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2231 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2233 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2235 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2236 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2237 this macro. Include "value.h".
2239 2002-06-30 Aidan Skinner <aidan@velvet.net>
2241 * ada-exp.tab.c: remove as it's a generated file
2242 * ada-lex.c: remove as it's a generated file
2244 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2246 * config/i386/tm-i386.h (struct frame_info, struct
2247 frame_saved_regs, struct value, struct type): Remove forward
2250 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2251 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2252 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2253 (FILL_FPXREGSET): Define.
2255 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2257 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2258 i[3456]86-*-netbsd* case.
2259 * config/i386/tm-obsd.h: Removed.
2260 * config/i386/obsd.mt: Removed.
2261 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2263 (MH_CFLAGS): Add -DYYDEBUG=0.
2265 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2266 i386nbsd_sc_pc_offset on OpenBSD too.
2268 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2269 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2270 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2272 * i386bsd-tdep.c: Include "arch-utils.h".
2273 (i386bsd_aout_in_solib_call_trampoline): New function.
2274 (i386bsd_init_abi): Set in_solib_call_trampoline to
2275 i386bsd_aout_in_solib_call_trampoline.
2276 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2277 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2279 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2281 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2282 (struct obstack, struct bcache): Add opaque declarations.
2283 * Makefile.in (macrotab_h): Update
2285 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2287 * blockframe.c (generic_find_dummy_frame): Change return type to
2288 ``struct regcache''.
2289 (struct dummy_frame): Replace field ``registers'' with regcache, a
2290 struct regcache object.
2291 (generic_find_dummy_frame): Update.
2292 (generic_push_dummy_frame): Update. Use regcache_xfree,
2293 regcache_xmalloc and regcache_cpy.
2294 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2296 (deprecated_generic_find_dummy_frame): Update.
2297 (generic_read_register_dummy): Update. Use
2298 regcache_read_as_address.
2299 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2300 (generic_get_saved_register): Update. Use regcache_read.
2302 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2304 * Makefile.in (objfiles_h): Add $(bcache_h).
2305 * objfiles.h: Include "bcache.h".
2307 * Makefile.in (symtab_h): Remove $(bcache_h).
2308 * symtab.h: Do not include "bcache.h".
2310 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2312 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2313 generic_func_frame_chain_valid.
2315 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2317 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2318 * config/i386/tm-fbsd.h: Likewise.
2320 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2322 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2323 generic_unwind_get_saved_register.
2325 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2327 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2328 * regcache.c (supply_register): Add missing argument to
2329 register_buffer call.
2331 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2333 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2334 Solaris /bin/grep does not not like it. From Peter Schauer.
2336 2002-06-26 Tom Tromey <tromey@redhat.com>
2338 * command.h (add_setshow_cmd): Declare.
2339 (add_setshow_cmd_full): Declare.
2340 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2341 returns void. Use add_setshow_cmd_full.
2342 (add_setshow_cmd_full): New function.
2343 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2344 (add_setshow_boolean_cmd): Likewise.
2346 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2348 * config/vax/tm-vax.h: Protect from multiple inclusion.
2349 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2350 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2351 * config/vax/tm-vaxbsd.h: ...here. New file.
2352 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2354 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2356 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2357 (BELIEVE_PCC_PROMOTION): Remove.
2358 (AP_REGNUM): Move to...
2359 * config/vax/nm-vax.h: ...here.
2360 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2361 (vax_breakpoint_from_pc): New function.
2362 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2363 and gdbarch_believe_pcc_promotion.
2365 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2367 * Makefile.in (vax_tdep_h): Define.
2368 (vax-tdep.o): Use $(vax_tdep_h).
2369 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2370 (vax_dump_tdep): New function.
2371 (_initialize_vax_tdep): Register vax_dump_tdep.
2372 * vax-tdep.h: Include osabi.h.
2373 (struct gdbarch_tdep): New.
2375 2002-06-26 Andrew Cagney <cagney@redhat.com>
2377 * frame.h (deprecated_generic_find_dummy_frame): Rename
2378 generic_find_dummy_frame.
2379 * blockframe.c (generic_find_dummy_frame): Make static.
2380 (deprecated_generic_find_dummy_frame): New function.
2381 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2382 generic_find_dummy_frame with deprecated_find_dummy_frame.
2383 (sh64_nofp_frame_init_saved_regs): Ditto.
2384 (sh_fp_frame_init_saved_regs): Ditto.
2385 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2386 (s390_frame_chain): Ditto.
2387 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2389 2002-06-26 Grace Sainsbury <graces@redhat.com>
2391 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2392 gdbarch vector are at the top.
2394 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2395 (FRAME_ARGS_ADDRESS): Remove.
2396 (FRAME_LOCALS_ADDRESS): Remove.
2397 (FRAME_NUM_ARGS): Remove.
2398 (FRAME_ARGS_SKIP): Remove.
2399 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2400 (m68k_gdbarch_init): Add gdbarch initializations for macros
2401 undefined in tm-m68k.h
2403 2002-06-26 Grace Sainsbury <graces@redhat.com>
2405 * monitor.h: Add the function regname to monitor_ops
2406 structure. This way NUM_REGS does not have to be a constant.
2407 * monitor.c (monitor_fetch_register): Added support for regname
2408 function. The function is called if the array regnames is NULL.
2409 (monitor_store_register): Same.
2410 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2412 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2413 cpu32bug_cmds.regname to point to new function.
2414 * abug-rom.c (abug_regname): Same as above.
2415 (init_abug_cmds): Same.
2416 * dbug-rom.c (dbug_regname): Same as above.
2417 (init_dbug_cmds): Same.
2418 * remote-est.c (est_regname): Same.
2419 (init_est_cmds): Same.
2420 * rom68k-rom.c (rom68k_regname): Same.
2421 (init_rom68k_cmds): Same.
2423 2002-06-25 Tom Tromey <tromey@redhat.com>
2425 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2427 2002-06-25 Andrew Cagney <cagney@redhat.com>
2429 * infrun.c (stop_registers): Change variable's type to ``struct
2431 (xmalloc_inferior_status): Delete function.
2432 (free_inferior_status): Delete function.
2433 (normal_stop): Use regcache_cpy.
2434 (struct inferior_status): Change type of fields ``stop_registers''
2435 and ``registers'' to ``struct regcache''.
2436 (write_inferior_status_register): Use regcache_write.
2437 (save_inferior_status): Instead of calling
2438 xmalloc_inferior_status, allocate the inf_status buffer directly.
2439 Use regcache_dup_no_passthrough and regcache_dup to save the
2441 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2442 Replace the stop_registers regcache instead of overriding it. Use
2443 regcache_xfree. Instead of calling free_inferior_status, xfree
2444 the buffer directly.
2445 (discard_inferior_status): Use regcache_xfree. Instead of calling
2446 free_inferior_status, xfree the buffer directly.
2447 (build_infrun): Use regcache_xmalloc.
2448 (_initialize_infrun): Delete redundant call to build_infrun.
2450 * Makefile.in (infcmd.o): Add $(regcache_h).
2452 * infcmd.c: Include "regcache.h".
2453 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2454 obtain the address of `stop_registers' register buffer.
2455 (print_return_value): Ditto.
2457 * inferior.h (struct regcache): Add opaque declaration.
2458 (stop_registers): Change variable's declared type to ``struct
2461 2002-06-24 Tom Tromey <tromey@redhat.com>
2463 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2464 * target.c (initialize_targets): Fixed typo in
2465 trust-readonly-sections `show' documentation.
2467 * main.c: Marked all strings with _().
2469 2002-06-24 Don Howard <dhoward@redhat.com>
2471 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2472 that means max CORE_ADDR+1.
2473 (lookup_mem_region): Ditto.
2474 (mem_info_command): Ditto.
2476 2002-06-24 Grace Sainsbury <graces@redhat.com>
2478 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2479 (REGISTER_BYTES_OK): Remove.
2480 (REGISTER_BYTES): Remove.
2481 (STORE_STRUCT_RETURN): Remove.
2482 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2483 (STORE_RETURN_VALUE): Remove.
2484 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2485 (FRAME_CHAIN): Remove.
2486 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2487 (FRAME_SAVED_PC): Remove.
2488 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2489 (m68k_store_struct_return): Add.
2490 (m68k_deprecated_extract_return_value): Add.
2491 (m68k_deprecated_extract_struct_value_address): Add.
2492 (m68k_store_return_value): Add.
2493 (m68k_frame_chain): Add.
2494 (m68k_frameless_function_invocation): Add.
2495 (m68k_frame_saved_pc): Add.
2496 (m68k_gdbarch_init): added set_gdbarch calls for new
2497 functions and deleted macros.
2499 2002-06-23 Tom Tromey <tromey@redhat.com>
2501 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2502 (ALLDEPFILES): Likewise.
2503 (udiheaders): Removed.
2504 (udip2soc.o): Likewise.
2505 (udi2go32.o): Likewise.
2507 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2509 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2511 * infrun.c (_initialize_infrun): Delete unnecessary call to
2514 * regcache.h: Update comments describing the regcache_cpy family
2516 (regcache_save, regcache_restore): Delete declaration.
2517 (regcache_save_no_passthrough): Delete declaration.
2518 (regcache_restore_no_passthrough): Delete declaration.
2519 * regcache.c (regcache_save): Delete function.
2520 (regcache_save_no_passthrough): Delete function.
2521 (regcache_restore): Delete function.
2522 (regcache_restore_no_passthrough): Delete function.
2524 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2526 * config/m68k/tm-m68k.h: Fix typo.
2527 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2528 (m68k_frame_init_saved_regs): Declare.
2530 2002-06-21 Jim Blandy <jimb@redhat.com>
2532 Remove some vestiges of Harris 88k support.
2533 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2534 register numbering quirk.
2535 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2536 odd symbols occurring in Harris 88k ELF targets.
2538 2002-06-21 Tom Tromey <tromey@redhat.com>
2540 * gdb_locale.h: New file.
2541 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2542 (defs_h): Added gdb_locale.h.
2543 * configure, config.in: Rebuilt.
2544 * configure.in (PACKAGE): Define.
2545 * defs.h: Include gdb_locale.h.
2546 * main.c (captured_main): Call setlocale, bindtextdomain,
2549 2002-06-21 Dave Brolley <brolley@redhat.com>
2551 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2552 * config/frv/frv.mt: New file.
2553 * config/frv/tm-frv.h: New file.
2554 * configure.tgt: Support frv-*-*.
2555 * Makefile.in (frv-tdep.o): New target.
2556 * frv-tdep.c: New file.
2557 * NEWS: Mention frv.
2559 2002-06-21 Dave Brolley <brolley@redhat.com>
2561 * MAINTAINERS: Add self to "Write After Approval" list.
2563 2002-06-21 Grace Sainsbury <graces@redhat.com>
2565 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2566 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2567 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2568 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2569 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2571 * m68k-tdep.c: Include arch-utils.h
2572 (m68k_register_raw_size): Add.
2573 (m68k_register_virtual_size): Add.
2574 (m68k_register_virtual_type): Add.
2575 (m68k_register_name): Add.
2576 (m68k_stack_align): Add.
2577 (m68k_register_byte): Add.
2578 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2581 2002-06-21 Grace Sainsbury <graces@redhat.com>
2583 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2584 m68k_find_saved_regs.
2585 (m68k_pop_frame): Removed saved_regs structure, and replaced
2586 references to it with frame->saved_regs.
2587 (m68k_gdbarch_init): Added function calls to initialize the
2589 (m68k_fix_call_dummy): Add.
2590 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2591 (CALL_DUMMY): Remove.
2592 (CALL_DUMMY_LENGTH): Remove.
2593 (CALL_DUMMY_START_OFFSET): Remove.
2594 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2595 (FIX_CALL_DUMMY): Remove.
2596 (PUSH_DUMMY_FRAME): Remove.
2597 (POP_FRAME): Remove.
2599 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2601 * parse.c (parse_fprintf): New function used to avoid calls to
2602 fprintf in bison parser generated debug code.
2603 * parser-defs.h: Declaration of new parse_fprintf function.
2604 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2605 Set YYDEBUG to 1 by default.
2606 Set YYFPRINTF as parse_fprintf.
2608 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2610 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2612 (pointer_encoding, enum ptr_encoding): New.
2613 (execute_cfa_program): Take care about pointer encoding.
2614 (dwarf2_build_frame_info): Only call parse_frame_info for
2615 .debug_frame and .eh_frame.
2616 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2617 fixed augmentation handling, added relative addressing,
2618 ignore duplicate FDEs. Added comments.
2619 * dwarf2cfi.c: Reindented.
2621 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2623 * event-top.c (command_handler): Don't use space_at_cmd_start
2624 unless there is sbrk() on the host. Assign time and space data
2625 to union fields of the appropriate length.
2627 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2629 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2630 x86_64_register_name. Return type changed to 'const char *'.
2631 (x86_64_register_name2nr): Rename to x86_64_register_number.
2632 (x86_64_gdbarch_init): Update to reflect the change.
2633 * x86-64-tdep.h: Ditto.
2634 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2635 (supply_fpregset): Ditto.
2637 2002-06-19 Andrew Cagney <cagney@redhat.com>
2639 * regcache.h: Update copyright.
2640 (struct regcache, struct gdbarch): Add opaque declarations.
2641 (current_regcache): Declare global variable.
2642 (regcache_read, regcache_write): Add gdbarch parameter.
2643 (regcache_save, regcache_save_no_passthrough)
2644 (regcache_restore, regcache_restore_no_passthrough)
2645 (regcache_dup, regcache_dup_no_passthrough)
2646 (regcache_cpy, regcache_cpy_no_passthrough)
2647 (deprecated_grub_regcache_for_registers)
2648 (deprecated_grub_regcache_for_register_valid)
2649 (regcache_valid_p): Add function declarations.
2651 * regcache.c: Update copyright.
2652 (regcache_descr_handle): New global variable.
2653 (struct regcache_descr): Define.
2654 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2655 (regcache_descr, xfree_regcache_descr): New functions.
2656 (struct regcache): Define.
2657 (regcache_xmalloc, regcache_xfree): New functions.
2658 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2659 (regcache_dup, regcache_dup_no_passthrough): New functions.
2660 (regcache_valid_p, regcache_read_as_address): New functions.
2661 (deprecated_grub_regcache_for_registers): New function.
2662 (deprecated_grub_regcache_for_register_valid): New function.
2663 (current_regcache): New global variable.
2664 (register_buffer): Add regcache parameter. Update calls.
2665 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2666 (read_register_gen, write_register_gen): Update register_buffer
2667 call. Test for legacy_p instead of gdbarch_register_read_p or
2668 gdbarch_register_write_p.
2669 (regcache_collect): Update register_buffer call.
2670 (build_regcache): Rewrite. Use deprecated grub functions.
2671 (regcache_save, regcache_save_no_passthrough): New functions.
2672 (regcache_restore, regcache_restore_no_passthrough): New
2674 (_initialize_regcache): Create the regcache_data_handle. Swap
2675 current_regcache global variable.
2677 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2678 parameter to regcache_read and regcache_write calls.
2679 (sh4_register_read): Ditto.
2680 (sh64_pseudo_register_read): Ditto.
2681 (sh64_register_read): Ditto.
2682 (sh_pseudo_register_write): Ditto.
2683 (sh4_register_write): Ditto.
2684 (sh64_pseudo_register_write): Ditto.
2685 (sh64_register_write): Ditto.
2687 * defs.h (XCALLOC): Define.
2689 2002-06-19 Grace Sainsbury <graces@redhat.com>
2691 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2692 * m68k-tdep.c (m68k_gdbarch_init): Added.
2693 (m68k_dump_tdep): Added.
2695 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2697 * ada-lang.c (fill_in_ada_prototype): Update comment.
2699 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2701 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2703 (mips_abi_string, mips_abi_strings): New.
2704 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2705 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2706 tdep->mips_abi_string. Honor mips_abi_string. Default to
2707 O32 if no ABI is found.
2708 (mips_dump_tdep): Use mips_abi_strings.
2709 (mips_abi_update): New function.
2710 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2711 ``set mips abi'' and ``show mips abi''. Check the size of
2714 2002-06-19 Andrew Cagney <cagney@redhat.com>
2716 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2719 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2721 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2722 current frame using only the first stack size adjustment. All
2723 subsequent size adjustments are not considered to be part of
2724 the "static" part of the current frame.
2725 Compute the address of the saved registers relative to the
2726 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2727 in use in this frame.
2729 2002-06-18 Don Howard <dhoward@redhat.com>
2731 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2732 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2733 suggesting this solution.
2735 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2737 * config/romp/xm-rtbsd.h: Delete file.
2738 * config/romp/rtbsd.mh: Delete file.
2740 2002-06-18 Keith Seitz <keiths@redhat.com>
2742 * breakpoint.c (condition_command): Post breakpoint_modify
2743 when a condition is added to an existing breakpoint.
2744 (commands_command): Likewise for commands.
2745 (set_ignore_count): Likewise for ignore counts.
2746 If no tty, do not simply return, still need to send event
2748 (ignore_command): Only print a newline if the command came
2750 Don't call breakpoints_changed, since this is now properly
2751 handled by set_ignore_count.
2753 2002-06-18 Andrew Cagney <cagney@redhat.com>
2755 * MAINTAINERS: Note that cris-elf target can be compiled with
2757 * cris-tdep.c (cris_register_name): Make return type constant.
2758 (cris_breakpoint_from_pc): Ditto.
2760 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2762 * frame.h (struct frame_info): Change type of context to
2765 2002-06-17 Andrew Cagney <cagney@redhat.com>
2767 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2769 * gdbarch.h, gdbarch.c: Regenerate.
2770 * config/mips/tm-mips.h (mips_register_name): Update.
2771 * i386-tdep.h (i386_register_name): Update.
2772 * mips-tdep.c (mips_register_name): Update
2773 * alpha-tdep.c (alpha_register_name): Update.
2774 * arch-utils.c (legacy_register_name): Update.
2775 * arch-utils.h (legacy_register_name): Update.
2776 * avr-tdep.c (avr_register_name): Update.
2777 * ia64-tdep.c (ia64_register_name): Update.
2778 * i386-tdep.c (i386_register_name): Update.
2779 * sparc-tdep.c (sparc32_register_name): Update.
2780 (sparc64_register_name): Update.
2781 (sparclite_register_name): Update.
2782 (sparclet_register_name): Update.
2783 * sh-tdep.c (sh_generic_register_name): Update.
2784 (sh_sh_register_name): Update.
2785 (sh_sh3_register_name): Update.
2786 (sh_sh3e_register_name): Update.
2787 (sh_sh_dsp_register_name): Update.
2788 (sh_sh3_dsp_register_name): Update.
2789 (sh_sh4_register_name): Update.
2790 (sh_sh64_register_name): Update.
2791 * s390-tdep.c (s390_register_name): Update.
2792 * rs6000-tdep.c (rs6000_register_name): Update.
2793 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2794 (ns32k_register_name_32382): Update.
2795 * d10v-tdep.c (d10v_ts2_register_name): Update.
2796 (d10v_ts3_register_name): Update.
2797 * xstormy16-tdep.c (xstormy16_register_name): Update.
2798 * vax-tdep.c (vax_register_name): Update.
2799 * v850-tdep.c (v850_register_name): Update.
2800 * m68hc11-tdep.c (m68hc11_register_name): Update.
2801 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2802 (am33_register_name): Update.
2804 2002-06-17 Grace Sainsbury <graces@redhat.com>
2806 * m68k-tdep.c: Reindented.
2808 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2810 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2811 list of predefined types.
2813 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2815 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2816 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2817 REGISTER_CONVERT_TO_RAW): Remove defines.
2818 (i386_register_virtual_type, i386_register_convertible,
2819 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2821 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2822 macros mentioned above.
2824 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2825 (i386lynx_saved_pc_after_call): Remove prototype.
2826 * i386ly-tdep.c: Include "i386-tdep.h".
2827 (i386lynx_saved_pc_after_call): Make static. Use
2828 read_memory_nobpt instead of read_memory. Use
2829 read_memory_unsigned_integer instead of read_memory_integer.
2830 (i386lynx_init_abi): New function.
2831 (i386lynx_coff_osabi_sniffer): New function.
2832 (_initialize_i386bsd_tdep): New function.
2834 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2835 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2836 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2837 (i386_fix_call_dummy): Remove prototype.
2838 * i386-tdep.c (i386_call_dummy_words): New variable.
2839 (i386_gdbarch_init): Adjust for removal of the
2840 macros mentioned above.
2842 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2844 * command.h (add_setshow_auto_boolean_cmd): Replace
2845 add_set_auto_boolean_cmd.
2846 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2847 add_set_auto_boolean_cmd.
2848 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2849 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2850 mask-address'' command.
2851 (show_mask_address): Add cmd parameter.
2852 * remote.c (add_packet_config_cmd): Update. Change type of
2853 set_func and show_func to cmd_sfunc_ftype.
2854 (_initialize_remote): Update `set remote Z-packet'
2855 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2856 (show_remote_protocol_e_packet_cmd): Ditto.
2857 (show_remote_protocol_E_packet_cmd): Ditto.
2858 (show_remote_protocol_P_packet_cmd): Ditto.
2859 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2860 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2861 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2862 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2863 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2864 (show_remote_protocol_Z_packet_cmd): Ditto.
2865 (show_remote_protocol_binary_download_cmd): Ditto.
2866 (show_remote_cmd): Pass NULL to all of above.
2868 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2870 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2871 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2872 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2873 POP_FRAME): Remove defines.
2874 (i386_push_arguments, i386_store_struct_return,
2875 i386_extract_return_value, i386_store_return_value,
2876 i386_extract_struct_value_address, i386_push_dummy_frame,
2877 i386_pop_frame): Renove prototypes.
2878 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2879 macros mentioned above.
2881 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2883 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2884 add_set_boolean_cmd.
2885 (add_setshow_cmd): New function.
2886 * command.h (add_setshow_boolean_cmd): Replace
2887 add_set_boolean_cmd.
2888 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2889 and ``set rdiromatzero''.
2890 * maint.c (_initialize_maint_cmds): Update commented out code.
2891 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2892 * target.c (initialize_targets): Update `set
2893 trust-readonly-sections'.
2894 * remote.c (_initialize_remote): Update `set remotebreak'.
2896 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2898 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2899 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2900 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2901 fit into multi-arch framework.
2902 (i386_breakpoint_from_pc): New function.
2903 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2906 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2907 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2908 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2909 (i386_frameless_function_invocation, i386_frame_num_args,
2910 i386_frame_init_saved_regs): Remove prototypes.
2911 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2912 macros mentioned above.
2914 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2916 * cli/cli-decode.c (set_cmd_cfunc): Update.
2917 (set_cmd_sfunc): Update.
2918 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2919 (set_cmd_sfunc, set_cmd_cfunc): Update.
2920 * cli/cli-decode.h: Update.
2922 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2924 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2925 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2927 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2929 * defs.h (auto_boolean): Declare enum.
2930 * command.h (cmd_auto_boolean): Delete enum.
2931 * mips-tdep.c (mask_address_var): Update.
2932 (mips_mask_address_p): Update.
2933 (show_mask_address): Update.
2934 * remote.c (struct packet_config): Update.
2935 (update_packet_config): Update.
2936 (show_packet_config_cmd): Update.
2937 (packet_ok): Update.
2938 (add_packet_config_cmd): Update.
2939 (_initialize_remote):
2940 * command.h: Update.
2941 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2942 (do_setshow_command): Update.
2943 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2944 * cli/cli-decode.h: Update.
2946 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2948 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2949 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2950 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2951 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2952 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2953 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2955 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2956 list of DJGPP COFF targets.
2958 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2959 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2960 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2961 (FP0_REGNUM): Remove define.
2962 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2963 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2964 (i386_register_virtual_size): Remove protoype.
2965 * i386-tdep.c (i386_register_virtual_size): Removed.
2966 (i386_extract_return_value, i386_store_return_value): Use
2967 FP0_REGNUM instead of NUM_FREGS to determine whether the
2968 floating-point registers are available.
2969 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2970 Adjust for removal of macros mentioned above.
2972 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2974 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2976 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2978 (supply_gregset, fill_gregset): Remove use of register keyword and
2979 remove declaration for regmap. Use I386_NUM_GREGS instead of
2980 NUM_REGS and NUM_FREGS.
2981 (FPREGSET_FSAVE_OFFSET): Remove.
2982 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2983 NUM_FREGS to determine whether the floating-point registers are
2986 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2987 gnu_store_registers): Replace usage of NUM_GREGS with
2990 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2991 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2992 usage of NUM_GREGS with I386_NUM_GREGS.
2994 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2996 * i386bsd-nat.c: Include "i386-tdep.h".
2997 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3000 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3001 and associated comment. They no longer make any sense, since we
3002 don't use this file anymore on Linux.
3004 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3005 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3006 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3007 elements in these arrays.
3008 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3011 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3013 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3014 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3016 2002-06-14 Andrew Cagney <cagney@redhat.com>
3018 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3019 EXTRACT_RETURN_VALUE.
3020 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3021 EXTRACT_STRUCT_VALUE_ADDRESS.
3022 * gdbarch.h, gdbarch.c: Regenerate.
3024 * values.c (value_being_returned): Handle
3025 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3026 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3028 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3029 * arm-tdep.c (arm_gdbarch_init): Update.
3030 * avr-tdep.c (avr_gdbarch_init): Update.
3031 * cris-tdep.c (cris_gdbarch_init): Update.
3032 * d10v-tdep.c (d10v_gdbarch_init): Update.
3033 * ia64-tdep.c (ia64_gdbarch_init): Update.
3034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3035 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3036 * s390-tdep.c (s390_gdbarch_init): Update.
3037 * sh-tdep.c (sh_gdbarch_init): Update.
3038 * s390-tdep.c (s390_gdbarch_init): Update.
3039 * sparc-tdep.c (sparc_gdbarch_init): Update.
3040 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3041 * v850-tdep.c (v850_gdbarch_init): Update.
3042 * vax-tdep.c (vax_gdbarch_init): Update.
3043 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3046 * config/arc/tm-arc.h: Update.
3047 * config/d30v/tm-d30v.h: Update.
3048 * config/fr30/tm-fr30.h: Update.
3049 * config/h8300/tm-h8300.h: Update.
3050 * config/h8500/tm-h8500.h: Update.
3051 * config/i386/tm-i386.h: Update.
3052 * config/i386/tm-ptx.h: Update.
3053 * config/i386/tm-symmetry.h: Update.
3054 * config/i960/tm-i960.h: Update.
3055 * config/m32r/tm-m32r.h: Update.
3056 * config/m68k/tm-delta68.h: Update.
3057 * config/m68k/tm-linux.h: Update.
3058 * config/m68k/tm-m68k.h: Update.
3059 * config/m88k/tm-m88k.h: Update.
3060 * config/mcore/tm-mcore.h: Update.
3061 * config/mips/tm-mips.h: Update.
3062 * config/mn10200/tm-mn10200.h: Update.
3063 * config/pa/tm-hppa.h: Update.
3064 * config/pa/tm-hppa64.h: Update.
3065 * config/sparc/tm-sp64.h: Update.
3066 * config/sparc/tm-sparc.h: Update.
3067 * config/sparc/tm-sparclet.h: Update.
3068 * config/z8k/tm-z8k.h: Update.
3070 2002-06-14 Andrew Cagney <cagney@redhat.com>
3072 * Makefile.in (i386_linux_tdep_h): Define.
3073 (i386_tdep_h, i387_tdep_h): Define.
3074 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3075 $(i386_tdep_h) and $(i387_tdep_h).
3076 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3078 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3080 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3081 Already covered by the default.
3083 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3084 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3085 (i386_gdbarch_init): Initialize long_double_format and long_double
3088 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3089 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3091 * config/i386/i386sol2.mh: ... here.
3092 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3093 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3094 (SIGCONTEXT_PC_OFFSET): Remove define.
3095 (IN_SIGTRAMP): Remove define.
3096 * i386-sol2-tdep.c: New file.
3098 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3099 * config/i386/tm-i386nw.h: Removed.
3101 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3102 USE_STRUCT_CONVENTION): Remove defines.
3103 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3104 (get_longjmp_target): Remove prototype.
3105 (IN_SIGTRAMP): Remove define.
3106 (i386bsd_in_sigtramp): Remove prototype.
3107 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3108 function. Update comment accordingly
3109 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3110 (FRAME_SAVED_PC): Remove define.
3111 (i386bsd_frame_saved_pc): Remove prototype.
3112 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3113 GET_LONGJMP_TARGET): Remove defines.
3114 (get_longjmp_target): Remove prototype.
3115 (IN_SIGTRAMP): Remove define.
3116 (i386bsd_in_sigtramp): Remove prototype.
3117 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3118 function. Update comment accordingly
3119 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3120 (FRAME_SAVED_PC): Remove define.
3121 (i386bsd_frame_saved_pc): Remove prototype.
3122 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3124 (USE_STRUCT_CONVENTION): Remove prototype.
3125 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3127 (_initialize_i386bsd_nat): Revise logic to determine some
3128 constants at compile time when compiling a native GDB. Warn if
3129 things don't match up with what we expect.
3130 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3132 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3133 to use date stored in `struct gdbarch_tdep'.
3134 (i386bsd_sigcontext_offset): Remove varaible.
3135 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3136 stored in `struct gdbarch_tdep'.
3137 (i386bsd_frame_saved_pc): Make static.
3138 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3139 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3140 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3141 i386fbsd4_sc_pc_offset): New variables.
3142 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3143 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3145 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3147 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3148 Modify the value of i386fbsd_sigtramp_start and
3149 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3150 i386fbsd_sigtramp_end.
3151 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3154 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3155 define to i386-linux-tdep.h.
3156 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3157 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3159 (i386_linux_register_name, i386_linux_register_byte,
3160 i386_linux_register_raw_size): Remove prototypes.
3161 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3162 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3163 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3164 TARGET_WRITE_PC): Remove defines.
3165 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3166 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3167 i386_linux_write_pc): Remove prototypes.
3168 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3169 (get_longjmp_target): Remove prototype.
3170 * i386-linux-tdep.h: New file.
3171 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3172 * i386-linux-tdep.c: Include "i386-tdep.h" and
3173 "i386-linux-tdep.h".
3174 (i386_linux_register_name, i386_linux_register_byte,
3175 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3176 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3178 (i386_linux_init_abi): New function.
3179 (_initialize_i386_linux_tdep): New function.
3181 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3182 (i386_saved_pc_after_call): Remove prototype.
3183 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3184 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3185 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3186 (i386_register_name, i386_stab_reg_to_regnum,
3187 i386_dwarf_reg_to_regnum): Remove prototypes.
3188 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3189 SIZEOF_SSE_REGS): Remove defines.
3190 (REGISTER_BYTES): Remove define.
3191 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3192 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3193 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3194 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3195 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3196 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3197 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3198 (get_longjmp_target): Remove prototype.
3199 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3200 (sigtramp_saved_pc): Remove define.
3201 (i386v4_sigtramp_saved_pc): Remove prototype.
3202 * config/i386/tm-go32.h (FRAME_CHAIN,
3203 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3204 (i386go32_frame_saved_pc): Remove prototype.
3205 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3206 (get_longjmp_target): Remove prototype.
3207 * i386-tdep.h: Include "osabi.h".
3208 (enum i386_abi): Removed.
3209 (enum struct_return): New enum.
3210 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3211 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3212 sc_pc_offset members.
3213 (i386_gdbarch_register_os_abi): Remove prototype.
3214 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3215 I386_SSE_NUM_REGS): New defines.
3216 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3217 I386_SSE_SIZEOF_REGS): New defines.
3218 (i386_register_name, i386_register_byte, i386_register_raw_size):
3220 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3221 (i386bsd_sigtramp_saved_pc): New prototype.
3222 * i386-tdep.c: Don't include "elf-bfd.h".
3223 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3224 i386_frame_chain, i386_saved_pc_after_call): Make static.
3225 (i386_frame_saved_pc): Rewrite to call architecture dependent
3226 function to deal with signal handlers. Make static.
3227 (i386go32_frame_saved_pc): Removed.
3228 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3230 (i386_get_longjmp_target): New function.
3231 (default_struct_convention, pcc_struct_convention,
3232 reg_struct_convention, valid_conventions, struct_convention): New
3234 (i386_use_struct_convention): New function.
3235 (i386v4_sigtramp_saved_pc): Renamed to
3236 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3237 (i386_pc_in_sigtramp): New function.
3238 (i386_abi_names): Removed.
3239 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3240 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3242 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3243 i386_gdbarch_register_os_abi): Removed.
3244 (struct i386_abi_handler): Removed.
3245 (i386_abi_handler_list): Removed.
3246 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3248 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3249 i386_nw_init_abi): New functions.
3250 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3251 Use set_gdbarch_xxx() calls instead of relying on macros for a
3253 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3254 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3255 Register the various architecture variants defined in this file.
3257 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3259 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3260 (struct main_type): Remove arg_types member. Update comments for
3262 (TYPE_ARG_TYPES): Remove.
3263 (TYPE_FN_FIELD_ARGS): Update.
3264 (smash_to_method_type): Update prototype.
3266 * c-typeprint.c (cp_type_print_method_args): Take method type
3267 instead of argument list. Use new argument layout. Simplify.
3268 (c_type_print_args): Use new argument layout. Simplify.
3269 (c_type_print_base): Update call to cp_type_print_method_args.
3270 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3271 argument; use die->type instead. Update call to
3272 smash_to_method_type.
3273 (read_structure_scope): Update call to dwarf2_add_member_fn.
3274 * gdbtypes.c (allocate_stub_method): Update comment.
3275 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3276 Use new argument layout.
3277 (check_stub_method): Use new argument layout. Don't count
3278 void as an argument.
3279 (print_arg_types): Update comments. Use new argument layout.
3280 (recursive_dump_type): Don't print arg_types member.
3281 * hpread.c (hpread_read_struct_type): Use new argument layout.
3282 (fixup_class_method_type): Likewise.
3283 (hpread_type_lookup): Likewise.
3284 * stabsread.c (read_type): Update calls to read_args and
3285 smash_to_method_type.
3286 (read_args): Use new argument layout. Simplify.
3287 * valops.c (typecmp): Use new argument layout. Update parameters
3288 and comments. Simplify.
3289 (hand_function_call): Use new argument layout.
3290 (search_struct_method): Update call to typecmp.
3291 (find_overload_match): Use new argument layout.
3293 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3295 * NEWS: Mention multithreaded debug support for gdbserver.
3297 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3299 * MAINTAINERS: Mention NEWS.
3301 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3303 * gdbserver/regcache.c: Add comment.
3305 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3307 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3308 (struct mips_objfile_private, compare_pdr_entries): New.
3309 (non_heuristic_proc_desc): Read the ".pdr" section if it
3312 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3314 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3315 (arm_debug): New static variable.
3316 (_initialize_arm_tdep): Add ``set debug arm'' command.
3318 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3320 * Makefile.in (sim_arm_h): Define.
3321 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3322 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3323 (arm_register_sim_regno): New function, map an internal REGNUM
3324 onto a simulator register number.
3325 (arm_gdbarch_init): Set register_sim_regno.
3327 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3329 * MAINTAINERS: Add self.
3331 2002-06-11 Jim Blandy <jimb@redhat.com>
3333 * source.c (source_info): Mention whether the symtab has
3334 information about preprocessor macros.
3336 Call the command `info macro', not `show macro'.
3337 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3339 (_initialize_macrocmd): Register `info_macro_command' in
3340 `infolist', not `showlist'.
3342 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3344 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3345 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3346 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3347 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3348 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3350 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3351 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3352 (_initialize_mips_tdep): Remove dead code.
3353 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3354 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3355 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3356 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3357 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3358 MIPS_LAST_FP_ARG_REGNUM): Remove.
3360 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3362 * gdbserver/thread-db.c: New file.
3363 * gdbserver/proc-service.c: New file.
3364 * gdbserver/acinclude.m4: New file.
3365 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3366 proc-service.o, and thread-db.o.
3367 (linux-low.o): Add USE_THREAD_DB.
3368 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3369 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3370 * gdbserver/aclocal.m4: Regenerated.
3371 * gdbserver/config.in: Regenerated.
3372 * gdbserver/configure: Regenerated.
3373 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3374 thread_db.h, and linux/elf.h headrs.
3375 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3376 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3377 Check for -lthread_db and thread support.
3378 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3379 PowerPC, and SuperH.
3380 * gdbserver/i387-fp.c: Constify arguments.
3381 * gdbserver/i387-fp.h: Likewise.
3382 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3383 `struct inferior_info'. Remove PID member. Use generic inferior
3384 list header. All uses updated.
3385 (inferiors, signal_pid): Removed.
3386 (all_threads): New variable.
3387 (get_thread): Define.
3388 (add_inferior_to_list): New function.
3389 (for_each_inferior): New function.
3390 (change_inferior_id): New function.
3391 (add_inferior): Removed.
3392 (remove_inferior): New function.
3393 (add_thread): New function.
3394 (free_one_thread): New function.
3395 (remove_thread): New function.
3396 (clear_inferiors): Use for_each_inferior and free_one_thread.
3397 (find_inferior): New function.
3398 (find_inferior_id): New function.
3399 (inferior_target_data): Update argument type.
3400 (set_inferior_target_data): Likewise.
3401 (inferior_regcache_data): Likewise.
3402 (set_inferior_regcache_data): Likewise.
3403 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3404 (all_processes, stopping_threads, using_thrads)
3405 (struct pending_signals, debug_threads, pid_of): New.
3406 (inferior_pid): Replace with macro.
3407 (struct inferior_linux_data): Remove.
3408 (get_stop_pc, add_process): New functions.
3409 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3410 Use add_process and add_thread.
3411 (linux_attach_lwp): New function, based on old linux_attach. Use
3412 add_process and add_thread. Set stop_expected for new threads.
3413 (linux_attach): New function.
3414 (linux_kill_one_process): New function.
3415 (linux_kill): Kill all LWPs.
3416 (linux_thread_alive): Use find_inferior_id.
3417 (check_removed_breakpoints, status_pending_p): New functions.
3418 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3419 Update. Use WNOHANG. Wait for cloned processes also. Update process
3420 struct for the found process.
3421 (linux_wait_for_event): New function.
3422 (linux_wait): Use it. Support LWPs.
3423 (send_sigstop, wait_for_sigstop, stop_all_processes)
3424 (linux_resume_one_process, linux_continue_one_process): New functions.
3425 (linux_resume): Support LWPs.
3426 (REGISTER_RAW_SIZE): Remove.
3427 (fetch_register): Use register_size instead. Call supply_register.
3428 (usr_store_inferior_registers): Likewise. Call collect_register.
3430 (regsets_fetch_inferior_registers): Improve error message.
3431 (regsets_store_inferior_registers): Add debugging.
3432 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3433 (unstopped_p, linux_signal_pid): New functions.
3434 (linux_target_ops): Add linux_signal_pid.
3435 (linux_init_signals): New function.
3436 (initialize_low): Call it. Initialize using_threads.
3437 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3439 (get_regcache): Fetch registers lazily. Add fetch argument
3440 and update all callers.
3441 (regcache_invalidate_one, regcache_invalidate): New
3443 (new_register_cache): Renamed from create_register_cache.
3444 Return the new regcache.
3445 (free_register_cache): Change argument to a void *.
3446 (registers_to_string, registers_from_string): Call get_regcache
3447 with fetch flag set.
3448 (register_data): Make static. Pass fetch flag to get_regcache.
3449 (supply_register): Call get_regcache with fetch flag clear.
3450 (collect_register): Call get_regcache with fetch flag set.
3451 (collect_register_as_string): New function.
3452 * gdbserver/regcache.h: Update.
3453 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3455 Handle input interrupts while waiting for an ACK.
3456 (input_interrupt): Use signal_pid method.
3457 (getpkt): Flush after debug output and use stderr.
3458 (outreg): Use collect_register_as_string.
3459 (new_thread_notify, dead_thread_notify): New functions.
3460 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3462 (look_up_one_symbol): Flush after debug output.
3463 * gdbserver/server.c (step_thread, server_waiting): New variables.
3464 (start_inferior): Don't use signal_pid. Update call to mywait.
3465 (attach_inferior): Update call to mywait.
3466 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3467 (main): Don't fetch/store registers explicitly. Use
3468 set_desired_inferior. Support proposed ``Hs'' packet. Update
3470 * gdbserver/server.h: Update.
3471 (struct inferior_list, struct_inferior_list_entry): New.
3472 * gdbserver/target.c (set_desired_inferior): New.
3473 (write_inferior_memory): Constify.
3474 (mywait): New function.
3475 * gdbserver/target.h: Update.
3476 (struct target_ops): New signal_pid method.
3477 (mywait): Removed macro, added prototype.
3479 * gdbserver/linux-low.h (regset_func): Removed.
3480 (regset_fill_func, regset_store_func): New.
3481 (enum regset_type): New.
3482 (struct regset_info): Add type field. Use new operation types.
3483 (struct linux_target_ops): stop_pc renamed to get_pc.
3484 Add decr_pc_after_break and breakpoint_at.
3485 (get_process, get_thread_proess, get_process_thread)
3486 (strut process_info, all_processes, linux_attach_lwp)
3487 (thread_db_init): New.
3489 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3490 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3491 (the_low_target): Add new members.
3492 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3493 (i386_store_fpxregset): Constify.
3494 (target_regsets): Add new kind identifier.
3495 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3496 (i386_set_pc): Add debugging.
3497 (i386_breakpoint_at): New function.
3498 (the_low_target): Add new members.
3499 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3500 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3501 (mips_breakpoint_at): New.
3502 (the_low_target): Add new members.
3503 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3504 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3505 (the_low_target): Add new members.
3506 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3507 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3508 (the_low_target): Add new members.
3509 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3512 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3514 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3515 (unwind_tmp_obstack_free, parse_frame_info)
3516 (update_context, cfi_read_fp, cfi_write_fp)
3517 (cfi_frame_chain, cfi_init_extra_frame_info)
3518 (cfi_virtual_frame_pointer): Use the above function.
3519 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3521 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3523 * v850-tdep.c (v850_type_is_scalar): New function.
3524 (v850_use_struct_convention): Match current gcc implementation
3525 as close as possible.
3526 (v850_push_arguments): Fix stack_offset handling. Don't write
3527 struct_addr into register. This is done by v850_store_struct_return.
3528 (v850_extract_return_value): Care for structs.
3529 (v850_store_return_value): Ditto.
3530 (v850_store_struct_return): Actually write address.
3532 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3534 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3535 without debug information too.
3537 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3539 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3540 Make multi-arch pure.
3541 * gdbarch.h, gdbarch.c: Re-generate.
3542 * arm-tdep.c (arm_print_float_info): Update.
3543 * arch-utils.h (default_print_float_info): Update.
3544 * arch-utils.c (default_print_float_info): Update.
3545 * infcmd.c (float_info): Update call.
3547 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3549 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3550 the front of the initialize list.
3552 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3554 * infrun.c (struct inferior_status): Replace fields
3555 selected_frame_address and selected_level with field
3557 (save_inferior_status): Update. Use get_frame_id.
3558 (struct restore_selected_frame_args): Delete.
3559 (restore_selected_frame): Update. Use frame_find_by_id.
3560 (restore_inferior_status): Update.
3562 * breakpoint.h (struct breakpoint): Change type of
3563 watchpoint_frame to frame_id.
3564 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3565 call to get_current_frame.
3566 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3568 (watchpoint_check): Use frame_find_by_id.
3570 * frame.h (record_selected_frame): Delete declaration.
3571 * stack.c (record_selected_frame): Delete function.
3573 * frame.h (struct frame_id): Define.
3574 (get_frame_id): Declare.
3575 (frame_find_by_id): Declare.
3576 * frame.c (frame_find_by_id): New function.
3577 (get_frame_id): New function.
3579 2002-06-10 Andrey Volkov <avolkov@transas.com>
3581 * ser-e7kpc.c: Fix duplicated define and call of
3582 _initialize_ser_e7000pc
3584 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3586 * signals/signals.c (target_signal_from_host): Fix #ifdef
3588 (do_target_signal_to_host): Likewise.
3590 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3592 * mips-tdep.c (mips_find_abi_section): New function.
3593 (mips_gdbarch_init): Call it.
3595 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3597 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3598 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3599 after Andrew's 2002-06-08 gdbarch change.
3601 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3603 * i386-linux-nat.c (suppy_gregset): Don't supply
3604 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3606 (fill_gregset): Don't fetch it under the same circumstances.
3608 2002-06-09 Andrew Cagney <cagney@redhat.com>
3610 * Makefile.in (callback_h): Define.
3611 (remote_sim_h): Update path to remote-sim.h.
3612 (remote-rdp.o): Add $(callback_h).
3613 (remote-sim.o): Use $(callback_h).
3614 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3615 * remote-rdp.c: Include "gdb/callback.h".
3617 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3619 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3620 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3622 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3624 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3625 * rdi-share/serpardr.c: Ditto.
3626 * rdi-share/unixcomm.c: Ditto.
3627 * rdi-share/serdrv.c: Ditto.
3628 * rdi-share/hostchan.h: Ditto.
3629 * rdi-share/hostchan.c: Ditto.
3630 * rdi-share/host.h: Ditto.
3631 * rdi-share/devsw.c: Ditto.
3633 * objfiles.h: Change type of obj_private to void pointer.
3634 * pa64solib.c: Update copyright. Don't include "assert.h", use
3635 strcmp instead of STREQ, use LONGEST, do not use PTR
3636 * somsolib.c: Ditto.
3638 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3639 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3640 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3642 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3644 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3645 (default_get_saved_register): Delete function.
3646 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3647 generic_unwind_get_saved_register.
3648 * gdbarch.h, gdbarch.c: Re-generate.
3650 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3652 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3653 generic_func_frame_chain_valid.
3654 * gdbarch.h, gdbarch.c: Re-generate.
3655 * blockframe.c (generic_func_frame_chain_valid): Only check
3656 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3657 passing FP to PC_IN_CALL_DUMMY.
3660 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3662 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3663 (register_gdbarch_data): Initialize init_p.
3664 (gdbarch_data): Initialize data pointer using the init function.
3665 (init_gdbarch_data): Delete function.
3666 (gdbarch_update_p): Update.
3667 (initialize_non_multiarch): Update.
3668 (struct gdbarch): Add field initialized_p.
3669 * gdbarch.h, gdbarch.c: Re-generate.
3671 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3673 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3674 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3675 better do the things actually here.
3676 * x86-64-tdep.c (x86_64_register_name2nr): New.
3677 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3678 (x86_64_gdbarch_init): Respect the above change.
3679 * x86-64-tdep.h (x86_64_register_name2nr)
3680 (x86_64_register_nr2name): Add prototypes.
3681 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3683 2002-06-06 Michael Snyder <msnyder@redhat.com>
3685 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3686 Delete extra braces and re-indent.
3687 (d10v_store_return_value): Char return values
3688 must be shifted over by one byte in R0.
3689 (d10v_extract_return_value): Delete extra braces, re-indent.
3691 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3693 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3694 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3695 (d10v_integer_to_address): Rewrite.
3696 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3697 the d10v specific functions which take care of converting to the
3700 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3702 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3703 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3705 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3707 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3709 * config/tm-linux.h: Ditto.
3710 * config/alpha/tm-alphalinux.h: Ditto.
3711 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3712 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3713 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3714 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3715 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3716 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3717 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3718 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3719 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3720 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3721 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3722 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3723 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3724 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3725 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3726 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3727 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3728 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3729 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3730 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3731 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3732 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3733 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3734 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3735 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3736 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3737 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3738 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3739 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3740 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3741 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3742 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3743 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3744 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3745 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3746 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3747 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3749 2002-05-04 Aidan Skinner <aidan@velvet.net>
3751 * ada-exp.tab.c: New file
3752 * ada-exp.y: New file
3753 * ada-lang.c: New file
3754 * ada-lang.h: New file
3755 * ada-lex.c: New file
3756 * ada-lex.l: New file
3757 * ada-tasks.c: New file
3758 * ada-typeprint.c: New file
3759 * ada-valprint.c: New file
3761 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3763 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3764 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3766 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3768 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3769 insetead of ppc-linux-tdep.o.
3770 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3771 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3773 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3775 2002-05-07 Christian Groessler <chris@groessler.org>
3776 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3777 bit register contents for little endian hosts.
3779 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3781 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3784 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3786 * gdbarch.h: Regenerate.
3788 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3790 * MAINTAINERS: Add everyone to write-after-approval list.
3792 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3794 * stack.c (frame_info): Use frame_register_unwind instead of
3795 saved_regs. Mention when the SP is on the stack or in a register.
3797 * frame.h (frame_register_unwind_ftype): Define. Document.
3798 (struct frame_info): Add field register_unwind and
3799 register_unwind_cache.
3800 (frame_register_unwind): Declare.
3801 (generic_unwind_get_saved_register): Declare.
3803 * frame.c (frame_register_unwind): New function.
3804 (generic_unwind_get_saved_register): New function.
3806 * blockframe.c (generic_call_dummy_register_unwind): New function.
3807 (frame_saved_regs_register_unwind): New function.
3808 (set_unwind_by_pc): New function.
3809 (create_new_frame): New function.
3810 (get_prev_frame): New function.
3812 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3814 * a29k-share/: Delete directory.
3815 * remote-vx29k.c: Delete file.
3817 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3819 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3820 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3822 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3824 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3825 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3828 (sparcnbsd-tdep.o): New dependency lists.
3829 * NEWS: Note new UltraSPARC NetBSD native configuration.
3830 * configure.host (sparc64-*-netbsd*): New host.
3831 * configure.tgt (sparc-*-netbsdelf*)
3832 (sparc-*-netbsd*): Set gdb_target to nbsd.
3833 (sparc64-*-netbsd*): New target.
3834 * sparc64nbsd-nat.c: New file.
3835 * sparcnbsd-nat.c: New file.
3836 * sparcnbsd-tdep.c: New file.
3837 * sparcnbsd-tdep.h: New file.
3838 * config/sparc/nbsd.mt: New file.
3839 * config/sparc/nbsd64.mh: New file.
3840 * config/sparc/nbsd64.mt: New file.
3841 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3842 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3844 * config/sparc/nbsdaout.mt: Remove.
3845 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3846 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3848 * config/sparc/nbsdelf.mt: Remove.
3849 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3850 sparc-nat.c compatiblity defines.
3851 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3852 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3853 * config/sparc/tm-nbsd64.h: New file.
3854 * config/sparc/tm-nbsdaout.h: Remove.
3855 * config/sparc/xm-nbsd.h: Remove.
3857 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3859 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3860 * sparc-tdep.c: Include osabi.h.
3861 (gdbarch_tdep): Add osabi member.
3862 (_initialize_sparc_tdep): Use gdbarch_register.
3863 (sparc_gdbarch_init): Use generic OS ABI framework.
3864 (sparc_dump_tdep): New function.
3866 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3868 * corefile.c (do_captured_read_memory_integer): Return non-zero
3870 (safe_read_memory_integer): Copy result of memory read when
3871 status is non-zero. Also, add comments.
3873 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3875 * Makefile.in (ppc_tdep_h): Define.
3878 (rs6000-tdep.o): Use $(ppc_tdep_h).
3881 (ppcnbsd-tdep.o): New dependency lists.
3882 * ppc-tdep.h: Use generic OS ABI framework.
3883 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3884 (ppc_linux_init_abi): New functions.
3885 (ppc_sysv_abi_broken_use_struct_convention)
3886 (ppc_sysv_abi_use_struct_convention)
3887 (ppc_sysv_abi_push_arguments): Move to...
3888 * ppc-sysv-tdep.c: ...here.
3889 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3890 * rs6000-tdep.c (process_note_abi_tag_sections)
3891 (get_elfosabi): Remove.
3892 (rs6000_gdbarch_init): Use generic OS ABI framework.
3893 (rs6000_dump_tdep): New function.
3894 (_initialize_rs6000_tdep): Use gdbarch_register.
3895 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3896 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3897 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3898 of ppc-linux-tdep.o.
3899 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3900 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3901 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3902 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3903 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3904 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3906 2002-05-29 Jim Blandy <jimb@redhat.com>
3908 * macroscope.c (default_macro_scope): Put `void' in empty argument
3911 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3913 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3914 * arch-utils.c: Include "sim-regno.h".
3915 * gdbarch.sh: Don't include "sim-regno.h".
3916 * gdbarch.h, gdbarch.c: Regenerate.
3917 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3919 * arch-utils.h (legacy_register_sim_regno): To here.
3920 * remote-sim.c (legacy_register_sim_regno): Move function from
3922 * arch-utils.c (legacy_register_sim_regno): To here.
3924 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3926 * sim-regno.h: New file.
3927 * Makefile.in (sim_regno_h): Define.
3928 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3929 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3930 (legacy_register_sim_regno): New function.
3931 (one2one_register_sim_regno): New function.
3932 (gdbsim_fetch_register): Rewrite.
3933 (gdbsim_store_register): Only store a register when
3934 REGISTER_SIM_REGNO is valid.
3935 * d10v-tdep.c: Include "sim-regno.h".
3936 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3937 (d10v_ts3_register_sim_regno): Ditto.
3938 * gdbarch.sh: Include "sim-regno.h".
3939 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3940 * gdbarch.h, gdbarch.c: Regenerate.
3941 * arch-utils.h (default_register_sim_regno): Delete declaration.
3942 * arch-utils.c (default_register_sim_regno): Delete function.
3944 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3946 * ppcnbsd-nat.c: Rewrite.
3947 * ppcnbsd-tdep.c: New file.
3948 * ppcnbsd-tdep.h: New file.
3949 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3950 solib.o, and solib-svr4.o.
3951 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3952 nbsd-tdep.o, and corelow.o.
3954 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3956 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3957 `tr' and `sed'. Mention that `broken' targets are not expected to
3960 2002-05-27 Michal Ludvig <mludvig@suse.cz>
3962 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3963 Let PC point right after the prologue before looking up symbols.
3965 2002-05-27 Martin M. Hunt <hunt@redhat.com>
3967 * i386-tdep.c (i386_register_virtual_type): Return
3968 builtin_type_vec128i for SSE registers.
3970 * gdbtypes.h (builtin_type_vec128i): Declare.
3972 * gdbtypes.c (build_builtin_type_vec128i): New function.
3973 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3974 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3975 (build_gdbtypes): Initialize new builtin vector types.
3976 (_initialize_gdbtypes): Register new vector types with gdbarch.
3978 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3980 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3981 since it has been multi-arch'd.
3982 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3983 Move Alpha and VAX multi-arch news entries to same section
3984 as other multi-arch news.
3986 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3988 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3989 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3990 static. Rename some register numbers to put them in ns32k-tdep
3992 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3993 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3995 (_initialize_ns32k_tdep): Use gdbarch_register.
3996 * ns32k-tdep.h: New file.
3997 * ns32knbsd-tdep.c: New file.
3998 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3999 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4000 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4001 REGISTER_BYTES, REGISTER_BYTE): Remove.
4002 * config/ns32k/tm-ns32k.h: New file.
4003 * config/ns32k/tm-umax.h: Remove.
4005 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4007 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4008 ns32k_store_struct_return, ns32k_extract_return_value,
4009 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4011 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4012 ns32k_saved_pc_after_call.
4013 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4014 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4015 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4016 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4017 ns32k_extract_struct_value_address.
4019 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4021 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4022 ns32k_fix_call_dummy): New.
4023 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4024 ns32k_call_dummy_words.
4025 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4026 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4027 CALL_DUMMY_NARGS): Remove.
4028 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4030 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4032 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4033 ns32k_frame_saved_pc, ns32k_frame_args_address,
4034 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4035 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4036 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4037 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4038 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4039 (BREAKPOINT): Remove..
4040 (FRAME_CHAIN): Define as ns32k_frame_chain.
4041 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4042 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4043 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4044 (FRAME_FIND_SAVED_REGS): Remove.
4045 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4046 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4047 (POP_FRAME): Define as ns32k_pop_frame.
4049 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4051 * ns32k-tdep.c (ns32k_register_byte_32082,
4052 ns32k_register_byte_32382, ns32k_register_raw_size,
4053 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4055 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4056 ns32k_register_byte_32382.
4057 * config/ns32k/tm-umax.h: Update copyright years.
4058 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4059 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4060 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4061 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4062 (ns32k_get_enter_addr): Fix prototype.
4064 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4066 * ns32k-tdep.c: Update copyright years.
4067 (ns32k_register_name_32082): New function.
4068 (ns32k_register_name_32382): Ditto.
4069 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4070 (REGISTER_NAME): Define as ns32k_register_name_32382.
4071 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4072 (REGISTER_NAME): Define as ns32k_register_name_32082.
4074 2002-05-24 Jim Blandy <jimb@redhat.com>
4076 * dwarf2read.c (free_line_header): Use xfree, not free.
4078 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4080 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4081 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4083 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4085 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4087 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4089 From Ross Alexander at NEC Europe:
4090 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4092 2002-05-23 Michael Snyder <msnyder@redhat.com>
4094 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4095 for input, rather than parse_and_eval_address.
4097 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4099 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4100 * Makefile.in (sim_d10v_h): Update definition.
4102 2002-05-24 Andrew Cagney <cagney@redhat.com>
4104 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4105 change `2002-05-22 Michael Snyder' below.
4106 (d10v_push_arguments): Ditto.
4107 (d10v_extract_return_value): Ditto.
4109 2002-05-23 Jim Blandy <jimb@redhat.com>
4111 * macrotab.c (check_for_redefinition): Don't complain if the new
4112 definition is the same as the previous one. Take more arguments
4113 to allow the comparison.
4114 (macro_define_object, macro_define_function): Pass more arguments
4115 to check_for_redefinition.
4117 2002-05-22 Michael Snyder <msnyder@redhat.com>
4119 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4120 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4121 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4122 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4123 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4124 Add a temp variable to save a call (and a memory read).
4125 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4126 if possible (so that PC_IN_CALL_DUMMY will work).
4128 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4130 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4132 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4134 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4136 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4137 (dwarf2_build_frame_info): Add offset to fde->initial_location
4138 so that frames of shared libraries are mapped correctly.
4139 (execute_stack_op): Change type of 'result' from ULONGEST to
4142 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4144 * config/alpha/tm-nbsd.h: Include solib.h.
4146 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4148 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4149 assumptions about the host's byte order.
4151 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4153 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4155 * alphanbsd-tdep.c: Include solib-svr4.h.
4156 * shnbsd-tdep.c: Ditto.
4158 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4160 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4161 nbsd-tdep.h to dependency list.
4162 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4163 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4164 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4165 nbsdaout.mh and nbsdelf.mh consistently.
4166 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4167 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4168 nbsdaout.mt and nbsdelf.mh consistently.
4169 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4170 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4171 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4172 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4173 a.out shared library stuff from here...
4174 * config/nm-nbsdaout.h: ...to here.
4175 * config/tm-nbsd.h: Remove.
4176 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4177 * config/arm/nbsd.mh: Remove.
4178 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4180 * config/arm/nbsdaout.mh: New file.
4181 * config/arm/nbsdelf.mh: New file.
4182 * config/arm/nm-nbsdaout.h: New file.
4183 * config/i386/nbsd.mh: Remove.
4184 * config/i386/nbsd.mt: Remove.
4185 * config/i386/nbsdaout.mh: New file.
4186 * config/i386/nbsdaout.mt: New file.
4187 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4188 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4189 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4190 i386_register_u_addr): Remove.
4191 * config/i386/nm-nbsdaout.h: New file.
4192 * config/i386/nm-nbsdelf.h: Remove.
4193 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4194 (USE_STRUCT_CONVENTION): Remove.
4195 * config/i386/tm-nbsdaout.h: New file.
4196 * config/i386/tm-nbsdelf.h: Remove.
4197 * config/m68k/nbsd.mh: Remove.
4198 * config/m68k/nbsd.mt: Remove.
4199 * config/m68k/nbsdaout.mh: New file.
4200 * config/m68k/nbsdaout.mt: New file.
4201 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4202 * config/m68k/nm-nbsdaout.h: New file.
4203 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4204 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4205 * config/ns32k/nbsd.mh: Remove.
4206 * config/ns32k/nbsd.mt: Remove.
4207 * config/ns32k/nbsdaout.mh: New file.
4208 * config/ns32k/nbsdaout.mt: New file.
4209 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4210 * config/ns32k/nm-nbsdaout.h: New file.
4211 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4212 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4213 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4214 (SVR4_SHARED_LIBS): Remove.
4215 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4216 * config/sparc/nbsd.mh: Remove.
4217 * config/sparc/nbsd.mt: Remove.
4218 * config/sparc/nbsdaout.mh: New file.
4219 * config/sparc/nbsdaout.mt: New file.
4220 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4221 * config/sparc/nbsdelf.mt: New file.
4222 * config/sparc/nm-nbsdaout.h: New file.
4223 * config/sparc/nm-nbsdelf.h: Remove.
4224 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4225 * config/sparc/tm-nbsdaout.h: New file.
4227 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4229 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4231 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4233 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4235 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4237 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4239 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4241 * NEWS: Note new MIPS NetBSD native configuration.
4242 * configure.host (mips*-*-netbsd*): New host.
4243 * configure.tgt (mips*-*-netbsd*): New target.
4244 * mipsnbsd-nat.c: New file.
4245 * mipsnbsd-tdep.c: New file.
4246 * mipsnbsd-tdep.h: New file.
4247 * config/mips/nbsd.mh: New file.
4248 * config/mips/nbsd.mt: New file.
4249 * config/mips/nm-nbsd.h: New file.
4250 * config/mips/tm-nbsd.h: New file.
4252 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4254 * Makefile.in (SFILES): Add osabi.c.
4255 (COMMON_OBS): Add osabi.o.
4256 (osabi.o): New dependency list.
4257 * osabi.c: New file.
4258 * osabi.h: New file.
4259 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4261 * Makefile.in (alpha_tdep_h): Define and use instead of
4263 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4264 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4266 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4267 * alpha-tdep.h: Include osabi.h.
4268 (alpha_abi): Remove.
4269 (gdbarch_tdep): Use generic OS ABI framework.
4270 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4271 gdbarch_register_osabi.
4272 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4273 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4274 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4276 * Makefile.in (sh_tdep_h): Add osabi.h.
4277 * sh-tdep.h (sh_osabi): Remove.
4278 (gdbarch_tdep): Use generic OS ABI framework.
4279 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4280 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4281 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4282 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4284 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4285 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4286 gdbarch_register_osabi.
4287 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4288 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4289 (get_elfosabi): Rename to...
4290 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4291 ABI framework support routines.
4292 (arm_gdbarch_init): Use generic OS ABI framework.
4293 (arm_dump_tdep): Likewise.
4294 (_initialize_arm_tdep): Likewise.
4295 * arm-tdep.h: Include osabi.h.
4297 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4299 (arm_gdbarch_register_os_abi): Remove prototype.
4300 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4301 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4303 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4304 * mips-tdep.c: Include osabi.h.
4305 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4308 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4310 * h8300-tdep.c: Fix formatting.
4312 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4314 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4315 printing vector registers.
4317 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4319 From Fernando Nasser:
4320 * remote.c (remote_async_open_1): Re-throw the exception when the
4322 (remote_cisco_open): Ditto.
4323 (remote_open_1): Ditto.
4325 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4327 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4328 (remote_start_remote): Add uiout parameter. Pass through to
4329 remote_start_remote_dummy.
4330 (remote_open_1): Use catch_exception instead of catch_errors.
4331 (remote_async_open_1): Ditto.
4332 (remote_cisco_open): Ditto.
4334 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4336 * remote.c (remote_start_remote): Replace PTR with void pointer.
4337 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4340 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4342 * gdb_indent.sh: Allow the script to be run in the sim directory.
4344 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4346 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4347 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4349 * corelow.c (core_open): Only call set_gdbarch_from_file if
4352 2002-05-17 Andrey Volkov <avolkov@transas.com>
4354 * h8300-tdep.c: Add support of EXR register
4355 * config/h8300/tm-h8300.h: Ditto.
4357 2002-05-17 Andrey Volkov <avolkov@transas.com>
4359 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4361 2002-05-17 Andrey Volkov <avolkov@transas.com>
4363 * h8300-tdep.c: Change literal regnums to REGNO.
4365 2002-05-17 Jim Blandy <jimb@redhat.com>
4367 * NEWS: Note addition of macro support.
4369 Expand preprocessor macros in C expressions.
4370 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4371 (scan_macro_expansion, scanning_macro_expansion,
4372 finished_macro_expansion): New function declarations.
4373 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4374 variable declarations.
4375 * parser-defs.h (expression_context_pc): New declaration.
4376 * parse.c (expression_context_pc): New variable.
4377 (parse_exp_1): Set expression_context_pc, as well as
4378 expression_context_block.
4379 * c-exp.y (yylex): If we're not already reading the result of a
4380 macro expansion, try to macro-expand the next token. When we're
4381 done scanning a macro expansion, switch back to the mainline text.
4382 Commas and `if's in a macro's expansion don't terminate the input.
4383 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4384 (macro_original_text, macro_expanded_text,
4385 expression_macro_lookup_func, expression_macro_lookup_baton): New
4387 (scan_macro_expansion, scanning_macro_expansion,
4388 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4389 c_preprocess_and_parse): New functions.
4390 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4391 c_preprocess_and_parse, instead of c_parse.
4392 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4393 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4395 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4397 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4398 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4399 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4401 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4403 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4405 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4407 * Makefile.in (sh_tdep_h): Define and use.
4408 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4409 register enum): Move to...
4410 * * sh-tdep.h: ...here.
4411 * sh-tdep.c: Include sh-tdep.h.
4412 * sh3-rom.c: Likewise.
4413 * shnbsd-tdep.c: Likewise.
4415 2002-05-16 Michael Snyder <msnyder@redhat.com>
4417 * arm-tdep.c: Spelling fix in comment.
4419 2002-05-16 Jim Blandy <jimb@redhat.com>
4421 Add commands for manually expanding macros and showing their
4423 * macrocmd.c, macroscope.c, macroscope.h: New files.
4424 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4425 (macroscope_h): New variable.
4426 (HFILES_NO_SRCDIR): Add macroscope.h.
4427 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4428 (macroscope.o, macrocmd.o): New rules.
4430 Teach the Dwarf 2 reader to read macro information.
4431 * dwarf2read.c: #include "macrotab.h".
4432 (dwarf_macinfo_buffer): New variable.
4433 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4435 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4436 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4437 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4438 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4439 dwarf2_macro_spaces_in_definition): New complaints.
4440 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4441 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4442 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4443 the partial symbol table.
4444 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4445 from what's recorded in the partial symbol table.
4446 (read_file_scope): If the compilation unit has a
4447 `DW_AT_macro_info' attribute, read its macro information.
4448 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4450 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4453 * ser-tcp.c: Don't include <netinet/udp.h>.
4455 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4457 * MAINTAINERS: Update my email address.
4459 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4461 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4462 include file of the same name.
4464 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4466 * configure.tgt: Mark v850 as multi-arched.
4467 * config/v850/tm-v850.h: Remove file.
4468 * config/v850/v850.mt: Eliminate TM_FILE.
4470 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4472 * v850-tdep.c: Full multi-arch.
4473 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4474 Define GDB_MULTI_ARCH to 2.
4476 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4478 * p-exp.y (current_type): New static variable.
4479 Carries the type of the expression at the position that is parsed.
4480 (push_current_type, pop_current_type): Two new functions. Used
4481 to store/restore current_type in expression on specific tokens.
4482 (search_field): New static variable. Set to one after parsing a point
4483 as at that point only a FIELDNAME token should be searched.
4484 (FIELDNAME): New token. After a point only a token belonging to
4485 current_type type definition is allowed.
4486 (all over token rules): reset and change current_type according
4488 (exp '[' rule): insert implicit array index field if
4489 exp is a pascal string type.
4491 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4493 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4494 frame info. Use frame_info's saved_regs instead of matching member
4495 in extra_frame_info throughout.
4496 (v850_frame_init_saved_regs): New function.
4497 (v850_init_extra_frame_info): Move most functionality into
4498 v850_frame_init_saved_regs().
4499 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4500 (v850_frame_find_saved_regs): Remove declaration.
4501 (FRAME_FIND_SAVED_REGS): Remove definition.
4502 (v850_frame_init_saved_regs): Add declaration.
4503 (FRAME_INIT_SAVED_REGS): Add definition.
4505 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4507 * v850-tdep.c: Begin multi-arch'ing v850.
4508 (v850_target_architecture_hook): Remove function.
4509 (v850_gdbarch_init): New function. Add code previously in
4510 v850_target_architecture_hook().
4511 (_initialize_v850_tdep): Don't set target_architecture_hook.
4512 Call register_gdbarch_init() instead.
4514 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4516 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4517 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4518 (fixup_class_method_type): Likewise.
4520 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4522 From Martin Pool <mbp@samba.org>:
4523 * gdbserver/server.c (gdbserver_usage): New function.
4526 2002-05-15 Jim Blandy <jimb@redhat.com>
4528 Add macro structures to GDB's symbol tables. Nobody puts anything
4530 * symtab.h (struct symtab): New member: `macro_table'.
4531 * buildsym.h (pending_macros): New global variable.
4532 * buildsym.c: #include "macrotab.h".
4533 (buildsym_init): Initialize `pending_macros'.
4534 (end_symtab): If we found macro information while reading a CU's
4535 debugging info, do build a symtab structure for it. Make the
4536 symtab point to the macro information, and clear the
4537 `pending_macros' pointer which held it while we were reading the
4539 (really_free_pendings): Free any pending macro table.
4540 * objfiles.h (struct objfile): New member: `macro_cache'.
4541 * objfiles.c (allocate_objfile): Set allocate and free functions
4542 for the macro cache's objstack.
4543 (free_objfile): Empty the macro cache's obstack.
4544 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4545 set new allocate and free functions for it.
4546 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4547 free functions for the macro cache's objstack. (Why is this
4548 function building its own objfile?)
4549 * symmisc.c (print_objfile_statistics): Print statistics on the
4551 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4553 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4555 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4556 (REGISTER_U_ADDR): Delete definition.
4557 (arm_register_u_addr): Delete declaration.
4559 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4561 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4562 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4564 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4566 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4569 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4571 * regcache.c (register_valid): Revise comments refering to "Not
4572 available" and "unavailable".
4573 * frame.c (frame_register_read): Ditto.
4574 * findvar.c (value_of_register): Ditto.
4576 2002-05-15 Andrew Cagney <cagney@redhat.com>
4578 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4579 (remote-sim.o): Update dependencies.
4580 (d10v-tdep.o): Specify dependencies.
4581 (sim_d10v_h): Define.
4583 2002-05-14 Jim Blandy <jimb@redhat.com>
4585 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4586 * macrotab.c (macro_lookup_inclusion, find_definition,
4587 new_macro_table): Same.
4589 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4590 not `! strcmp ()'. This is a dubious improvement.
4591 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4593 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4594 although it's not necessary, to avoid a warning.
4596 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4598 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4599 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4600 TYPE_INSTANCE_FLAGS.
4601 (struct main_type): New.
4602 (struct type): Move most members to struct main_type. Change
4603 cv_type and as_type to new type_chain member. Add instance_flags.
4604 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4605 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4606 (finish_cv_type): Remove prototype.
4607 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4609 (alloc_type_instance): New function.
4610 (smash_type): New function.
4611 (make_pointer_type, make_reference_type, make_function_type)
4612 (smash_to_member_type, smash_to_method_type): Call smash_type.
4613 (make_qualified_type): New function.
4614 (make_type_with_address_space): Call make_qualified_type.
4615 (make_cv_type): Likewise.
4616 (finish_cv_type): Remove unnecessary function.
4617 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4618 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4619 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4620 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4621 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4622 * hpread.c (hpread_read_struct_type): Likewise.
4623 * stabsread.c (read_struct_type): Likewise.
4625 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4627 * configure.tgt: Add a catch all sh* target, for cases like
4628 sh[2,3,4]-elf and sh-hms.
4630 2002-05-14 Keith Seitz <keiths@redhat.com>
4632 * event-loop.c (create_file_handler): Don't do anything but
4633 update data when we are given a fd which we are already
4636 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4638 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4639 (update_context): Use __func__ in warnings.
4641 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4643 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4644 and tcp_close to net_open and net_close.
4645 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4646 using UDP if requested. Don't try to disable Nagle on UDP
4648 * remote.c (remote_serial_open): New function. Warn about UDP.
4649 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4651 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4653 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4655 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4657 * configure.tgt: Remove sh-hms target.
4658 * MAINTAINERS: Don't list sh-hms as a separate target.
4660 2002-05-13 Jim Blandy <jimb@redhat.com>
4662 Add first preprocessor macro-expansion files.
4663 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4664 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4665 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4666 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4667 (COMMON_OBS): Add macrotab.o, macroexp.o.
4668 (macroexp.o, macrotab.o): New rules.
4670 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4672 * config/m88k/tm-m88k.h: Update copyright.
4673 (m88k_target_write_pc): Declare
4674 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4675 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4676 (SHIFT_INST_REGS): Update definition.
4677 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4678 using old definition of TARGET_WRITE_PC.
4679 * regcache.c (generic_target_write_pc): Delete code handling
4681 * gdbarch.sh (NNPC_REGNUM): Delete.
4682 * gdbarch.h, gdbarch.c: Regenerate.
4684 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4686 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4689 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4691 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4692 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4693 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4695 * c-typeprint.c (cp_type_print_method_args): Likewise.
4696 (c_type_print_args): Likewise.
4697 * d10v-tdep.c (d10v_push_arguments): Likewise.
4698 (d10v_extract_return_value): Likewise.
4699 * expprint.c (print_subexp): Likewise.
4700 * gdbtypes.c (lookup_primitive_typename): Likewise.
4701 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4702 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4703 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4704 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4705 (TYPE_VECTOR): Likewise.
4706 * hpread.c (hpread_read_struct_type)
4707 (fix_static_member_physnames, fixup_class_method_type)
4708 (hpread_type_lookup): Likewise.
4709 * mdebugread.c (parse_symbol, parse_type): Likewise.
4710 * p-lang.c (is_pascal_string_type): Likewise.
4711 * valops.c (hand_function_call): Likewise.
4712 * x86-64-tdep.c (classify_argument): Likewise.
4714 * hpread.c (hpread_read_function_type)
4715 (hpread_read_doc_function_type): Call replace_type.
4716 * dstread.c (create_new_type): Delete.
4717 (decode_dst_structure, process_dst_function): Call alloc_type.
4718 Use type access macros.
4720 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4722 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4723 the're not supported by the current architecture.
4724 (i387_fill_fxsave): Likewise.
4726 2002-05-12 Fred Fish <fnf@redhat.com>
4728 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4729 sect_index_xxx members to index the first slot in section_offsets
4730 if all of the section_offsets are zero.
4732 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4734 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4735 checked in with last change.
4737 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4739 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4740 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4743 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4745 * Makefile.in: Update dependencies.
4747 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4749 * language.c (local_hex_string_custom): Simplify. Do not depend
4750 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4752 * memattr.c (mem_info_command): Replace calls to
4753 longest_local_hex_string and longest_local_hex_string_custom.
4754 * buildsym.c (make_blockvector): Ditto.
4755 * solib.c (info_sharedlibrary_command): Ditto.
4756 * tracepoint.c (tracepoints_info): Ditto.
4757 * symtab.c (print_msymbol_info): Ditto.
4759 * language.c (local_hex_string): Delete.
4760 (local_hex_string_custom): Delete.
4761 (longest_local_hex_string): Rename to local_hex_string.
4762 (longest_local_hex_string_custom): Rename to
4763 local_hex_string_custom.
4764 * language.h (local_hex_string): Change parameter type to LONGEST.
4765 (local_hex_string_custom): Ditto.
4766 (longest_local_hex_string): Delete declaration.
4767 (longest_local_hex_string_custom): Ditto.
4769 * solib.c: Update copyright.
4770 * memattr.c: Update copyright.
4772 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4774 * arch-utils.h (legacy_register_to_value): Declare.
4775 (legacy_value_to_register): Declare.
4776 (legacy_convert_register_p): Declare.
4777 * arch-utils.c (legacy_register_to_value): New function.
4778 (legacy_value_to_register): New function.
4779 (legacy_convert_register_p): New function.
4781 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4782 (VALUE_TO_REGISTER): Define.
4783 (CONVERT_REGISTER_P): Define.
4784 * gdbarch.h, gdbarch.c: Regenerate.
4786 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4788 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4791 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4792 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4794 * Makefile.in: Update dependencies for valops.c.
4795 * valops.c: Include "gdb_assert.h".
4796 (typecmp): Skip THIS parameter to methods.
4797 (find_method_list): Remove static_memfuncp argument,
4798 update callers. Check for stub methods.
4799 (find_value_oload_method_list): Don't set *static_memfuncp.
4800 (find_overload_match): Don't check for stub methods. Assert
4801 that methods are not stubbed. Handle static methods.
4802 (value_find_oload_method_list): Remove static_memfuncp argument.
4803 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4804 to the argument list for static stub methods.
4805 * value.h (value_find_oload_method_list): Update prototype.
4807 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4809 * arch-utils.h (generic_register_size): Declare.
4810 (generic_register_raw_size, generic_register_virtual_size): Delete
4812 * arch-utils.c (generic_register_raw_size): Delete.
4813 (generic_register_size): New function.
4814 (generic_register_virtual_size): Delete.
4816 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4817 default generic_register_size.
4818 * gdbarch.h, gdbarch.c: Re-generate.
4820 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4821 register_virtual_size.
4822 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4825 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4827 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4828 * gdbarch.h, gdbarch.c: Regenerate.
4829 * gnu-v3-abi.c: Update copyright.
4830 (vtable_address_point_offset): Update.
4831 (gnuv3_rtti_type): Update.
4832 (gnuv3_baseclass_offset): Update.
4833 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4834 (init_fetch_link_map_offsets): Update.
4835 * remote.c (get_remote_state): Update.
4837 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4839 * TODO: Remove value_headof/value_from_vtable_info comment.
4840 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4841 * values.c (value_headof, value_from_vtable_info): Delete.
4842 * value.h (value_from_vtable_info): Delete prototype.
4844 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4846 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4847 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4849 (gdb_assert_h): Define.
4850 (gdb_wait_h): Define.
4851 (gdb_regex_h): Define.
4853 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4855 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4856 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4858 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4860 * nbsd-tdep.c: Fix comment.
4862 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4864 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4865 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4866 (nbsd-tdep.o): New dependency list.
4867 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4869 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4870 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4871 * nbsd-tdep.c: New file.
4872 * nbsd-tdep.h: New file.
4873 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4875 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4876 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4877 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4878 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4880 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4882 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4883 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4884 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4885 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4886 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4887 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4889 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4891 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4892 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4893 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4894 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4895 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4896 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4897 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4899 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4901 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4902 fetch_elfcore_registers to...
4903 * i386nbsd-tdep.c: ...here.
4904 (i386nbsd_use_struct_convention): Rename to...
4905 (i386nbsd_aout_use_struct_convention): ...this.
4906 (i386nbsd_supply_reg): New function.
4907 (i386nbsd_fill_reg): New function.
4908 (fetch_core_registers): Use i386nbsd_supply_reg.
4909 (fetch_elfcore_registers): Likewise.
4910 (_initialize_i386nbsd_tdep): New function.
4911 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4912 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4913 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4914 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4915 (i386nbsd_aout_use_struct_convention): ...this.
4917 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4919 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4920 (store_inferior_registers): Use shnbsd_fill_reg.
4921 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4922 sh_nbsd_supply_register): Collapse into...
4923 (shnbsd_supply_reg): ...this.
4924 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4925 (shnbsd_fill_reg): ...this.
4926 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4927 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4928 (fetch_core_registers): Use shnbsd_supply_reg.
4929 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4930 (sh_nbsd_core_fns): Rename to...
4931 (shnbsd_core_fns): ...this.
4932 (sh_nbsd_elfcore_fns): Rename to...
4933 (shnbsd_elfcore_fns): ...this.
4934 (sh_nbsd_init_abi): Rename to...
4935 (shnbsd_init_abi): ...this.
4936 (_initialize_sh_nbsd_tdep): Rename to...
4937 (_initialize_shnbsd_tdep): ...this.
4938 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4939 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4940 sh_nbsd_fill_register): Remove prototypes.
4941 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4943 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4945 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4946 (i387-nat.o): Delete dependency list.
4947 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4948 (x86-64-linux-nat.o): Likewise.
4949 * i387-nat.c: Delete file, moving contents to...
4950 * i387-tdep.c: ...here.
4951 * i387-nat.h: Rename...
4952 * i387-tdep.h: ...to this.
4953 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4954 * i386-linux-nat.c: Likewise.
4955 * i386bsd-nat.c: Likewise.
4956 * i386gnu-nat.c: Likewise.
4957 * i386nbsd-nat.c: Likewise.
4958 * i386v4-nat.c: Likewise.
4959 * x86-64-linux-nat.c: Likewise.
4960 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4961 * config/i386/go32.mh (NATDEPFILES): Likewise.
4962 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4963 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4964 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4965 * config/i386/linux.mh (NATDEPFILES): Likewise.
4966 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4967 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4968 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4969 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4971 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4973 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4974 (alphanbsd-nat.o): Remove dependency list.
4975 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4976 * alphanbsd-nat.c: Delete. Contents moved to...
4977 * alphanbsd-tdep.c: ...here.
4978 (_initialize_alphanbsd_tdep): Register core functions.
4979 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4981 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4983 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4984 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4985 (alphanbsd-nat.o): Likewise.
4986 (alphabsd-tdep.o): New dependency list.
4987 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4988 (fill_gregset): Use alphabsd_fill_reg.
4989 (supply_fpregset): Use alphabsd_supply_fpreg.
4990 (fill_fpregset): Use alphabsd_fill_fpreg.
4991 (fetch_inferior_registers): Use struct reg and struct fpreg
4992 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4993 and alphabsd_supply_fpreg.
4994 (store_inferior_registers): Use struct reg and struct fpreg
4995 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4996 and alphabsd_fill_fpreg.
4997 * alphabsd-tdep.c: New file.
4998 * alphabsd-tdep.h: New file.
4999 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5000 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5001 alphabsd_supply_fpreg.
5002 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5003 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5005 2002-05-11 Eric Christopher <echristo@redhat.com>
5007 * mips-tdep.c (mips_double_register_type): Fix thinko.
5008 (mips_single_register_type): Ditto.
5009 * MAINTAINERS: Add self.
5011 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5013 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5014 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5015 right thing on architectures with different endianness and/or
5018 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5020 From Christian Limpach <chris@Pin.LU>
5021 * configure.in: Change sed expression which comments out
5022 NATDEPFILES to also comment out continuation lines.
5023 * configure: Regenerate.
5025 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5027 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5030 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5032 * sh-tdep.c: Include correct file.
5034 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5036 New support for sh64-elf (sh5) target.
5038 * configure.tgt: For sh64-elf target, default to sh-elf.
5040 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5041 (struct gdbarch_tdep): Add new fields for new registers and ABI
5044 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5045 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5046 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5047 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5048 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5049 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5050 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5051 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5052 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5053 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5054 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5055 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5056 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5057 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5058 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5059 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5060 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5061 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5062 sign_extend, sh64_nofp_frame_init_saved_regs,
5063 sh64_init_extra_frame_info, sh64_get_saved_register,
5064 sh64_extract_struct_value_address, sh64_pop_frame,
5065 sh64_push_arguments, sh64_extract_return_value,
5066 sh64_store_return_value, sh64_show_media_regs,
5067 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5068 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5069 sh_sh64_register_virtual_type,
5070 sh_sh64_register_convert_to_virtual,
5071 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5072 sh64_register_read, sh64_pseudo_register_write,
5073 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5074 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5075 sh64_do_pseudo_register, sh_compact_do_registers_info,
5076 sh64_do_registers_info, sh_gdbarch_init): New functions.
5078 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5080 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5082 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5084 * linespec.c (decode_line_1): Check for a double quote after
5085 a filename correctly.
5087 2002-05-10 Jim Blandy <jimb@redhat.com>
5089 Properly track the size of the current objfile's .debug_line section.
5090 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5091 (DWARF_LINE_SIZE): New macro.
5092 (dwarf2_build_psymtabs_hard): Record the line section's size in
5093 the partial symbol table.
5094 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5097 2002-05-10 Petr Sorfa <petrs@caldera.com>
5099 * ia64-tdep.c: Handle breakpoints on L instruction type
5100 in MLX instruction bundle by moving the breakpoint to
5101 the third slot (X instruction type) as L holds only data.
5103 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5105 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5106 (process_one_symbol): Complain about discarding local symbols
5107 due to a misplaced N_LBRAC entry.
5109 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5111 From Daniel Berlin <dan@cgsoftware.com>
5112 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5113 decrease the depth we are at, in the case of templates.
5115 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5117 * mips-tdep.c (mips_float_register_type): New function.
5118 (mips_double_register_type): New function.
5119 (mips_print_register): Use them.
5120 (do_fp_register_row): Likewise.
5122 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5124 * signals/signals.c (signals): Remove conditional compilation around
5125 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5126 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5128 2002-05-09 Michael Snyder <msnyder@redhat.com>
5130 * remote-rdp.c (remote_rdp_can_run): Remove.
5132 2002-05-09 Tom Tromey <tromey@redhat.com>
5134 * jv-valprint.c (java_val_print): Handle `char' as a special case
5137 2002-05-09 Michael Snyder <msnyder@redhat.com>
5139 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5140 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5141 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5142 str r(0123),[sp,#nn].
5143 (arm_skip_prologue): Ditto. Also make disassembly
5144 order-independent by placing it in a loop.
5146 2002-05-06 Michael Snyder <msnyder@redhat.com>
5148 * stabsread.c (read_type): Add recognition for new attribute:
5149 "@V;" means that an array type is actually a vector.
5150 This is analogous to the vector flag that's been added to dwarf2.
5152 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5154 * i386-tdep.h (i386_abi): New enum.
5155 (struct gdbarch_tdep): Replace os_ident member with abi.
5156 (i386_gdbarch_register_os_abi): New prototype.
5157 * i386-tdep.c (i386_abi_names): New array.
5158 (process_note_abi_tag_sections): Removed.
5159 (process_note_sections): New function.
5160 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5161 (struct i386_abi_handler): New struct.
5162 (i386_abi_handler_list): New variable.
5163 (i386_gdbarch_register_os_abi): New function.
5164 (i386_gdbarch_init): Adapt for the changes given above.
5166 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5168 * gregset.h: Say "GNU/Linux".
5170 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5172 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5173 (build_gdbtypes): Build builtin_type_v2_float.
5174 (_initialize_gdbtypes): Register new builtin type.
5176 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5178 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5179 (clear_gdbarch_swap): New function.
5180 (initialize_non_multiarch): Call.
5181 (gdbarch_update_p): Before calling init(), swap out and clear the
5182 existing architecture.
5183 * gdbarch.c: Regenerate.
5185 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5187 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5190 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5192 * sh-nbsd-nat.c: Rename to...
5193 * shnbsd-nat.c: ...this.
5194 * sh-nbsd-tdep.c: Rename to...
5195 * shnbsd-tdep.c: ...this.
5196 * sh-nbsd-tdep.h: Rename to...
5197 * shnbsd-tdep.h: ...this.
5198 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5199 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5201 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5203 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5204 concatenation for command help messages.
5206 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5208 * NEWS: Note new sh*-*-netbsdelf* configuration.
5209 * configure.host: Set gdb_host_cpu to sh for all sh*.
5210 (sh*-*-netbsdelf*): New host.
5211 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5212 (sh*-*-netbsdelf*): New target.
5213 * sh-nbsd-nat.c: New file.
5214 * sh-nbsd-tdep.c: New file.
5215 * sh-nbsd-tdep.h: New file.
5216 * config/sh/nbsd.mh: New file.
5217 * config/sh/nbsd.mt: New file.
5218 * config/sh/nm-nbsd.h: New file.
5219 * config/sh/tm-nbsd.h: New file.
5221 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5223 * sh-tdep.c (sh_osabi_names): Declare.
5224 (process_note_abi_tag_sections): New function.
5225 (get_elfosabi): Ditto.
5226 (sh_gdbarch_register_os_abi): Ditto.
5227 (sh_dump_tdep): Ditto.
5228 _initialize_sh_tdep): Use gdbarch_register to register
5229 sh_gdbarch_init and sh_dump_tdep.
5230 * config/sh/tm-sh.h (sh_osabi): Declare.
5231 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5233 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5235 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5236 (thumb_scan_prologue): Ditto.
5237 (arm_find_callers_reg): Ditto.
5238 (arm_frame_chain): Ditto.
5239 (arm_init_extra_frame_info): Ditto.
5240 (arm_frame_saved_pc): Ditto.
5241 (arm_pop_frame): Ditto.
5242 (arm_push_return_address): New function.
5243 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5244 call_dummy_location, call_dummy_breakpoint_offset_p,
5245 call_dummy_breakpoint_offset, call_dummy_p,
5246 call_dummy_stack_adjust_p, call_dummy_words,
5247 sizeof_call_dummy_words, call_dummy_start_offset,
5248 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5249 call_dummy_address, push_return_address and push_dummy_frame for
5250 generic dummy frames.
5252 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5254 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5255 size computation for alloca.
5256 (sh_fp_frame_init_saved_regs): Likewise.
5258 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5260 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5261 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5262 * arm-tdep.c (arm_store_return_value): Use them.
5263 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5264 * remote-rdp.c (remote_rdp_fetch_register): Use
5265 ARM_MAX_REGISTER_RAW_SIZE.
5266 (remote_rdp_store_register): Likewise.
5268 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5270 * dwarf2cfi.c: Code cleanup, removed unused variables,
5271 added default labels to switch {} statements.
5272 * x86-64-tdep.c: Ditto.
5273 * x86-64-linux-nat.c: Ditto.
5275 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5277 * solib.h: Protect against multiple inclusion.
5279 2002-05-06 Jim Blandy <jimb@redhat.com>
5281 Add first preprocessor macro-expansion files.
5282 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5283 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5284 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5285 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5286 (COMMON_OBS): Add macrotab.o, macroexp.o.
5287 (macroexp.o, macrotab.o): New rules.
5289 Separate the job of reading the line number info statement program
5290 header (...expialidocious) out into its own function.
5291 * dwarf2read.c (struct line_head, struct filenames, struct
5292 directories): Replace with...
5293 (struct line_header): New structure, containing the full
5294 contents of the statement program header, including the
5295 include directory and file name tables.
5296 (read_file_scope): If we have line number info, instead of just
5297 calling dwarf_decode_lines to do all the work, call
5298 dwarf_decode_line_header first to get a `struct line_header'
5299 containing the data in the statement program header, and then
5300 pass that to dwarf_decode_lines, which will pick up where that
5301 left off. Be sure to clean up the `struct line_header' object.
5302 (dwarf_decode_line_header, free_line_header, add_include_dir,
5303 add_file_name): New functions.
5304 (dwarf_decode_lines): Move all the code to read the statement
5305 program header into dwarf_decode_line_header. Take the line
5306 header it built as the first argument, instead of the offset to
5307 the compilation unit's line number info. Use the new `struct
5308 line_header' type instead of the old structures. No need to do
5309 cleanups here now, since we don't allocate anything.
5310 (dwarf2_statement_list_fits_in_line_number_section,
5311 dwarf2_line_header_too_long): New complaints.
5313 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5315 * gdbtypes.c (init_vector_type): New function.
5316 (build_builtin_type_vec128): Simplify the representation of SIMD
5318 (build_gdbtypes): Initialize new builtin vector types.
5319 (_initialize_gdbtypes): Register new vector types with gdbarch.
5320 (builtin_type_v4_float, builtin_type_v4_int32,
5321 builtin_type_v8_int16, builtin_type_v16_int8,
5322 builtin_type_v2_int32, builtin_type_v4_int16,
5323 builtin_type_v8_int8): New (renamed) SIMD types.
5325 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5327 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5328 (i387_fill_fxsave): Likewise.
5330 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5332 * alpha-tdep.c (alpha_extract_return_value): Don't use
5333 non-constant array size in prototype.
5335 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5337 From Brian Taylor <briant at model dot com>:
5338 * ui-out.c (ui_out_field_core_addr): Use the function
5339 longest_local_hex_string_custom'to format addresses > 32 bits
5342 * ui-out.c (ui_out_field_core_addr): Update comment.
5344 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5346 * stack.c (select_and_print_frame): Make static. Delete the
5348 (func_command): Update call.
5349 (select_frame_command): Delete code computing the frame level.
5350 * frame.h (select_and_print_frame): Delete declaration.
5352 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5354 * sparc-tdep.c (sparc_get_saved_register): Comment why
5355 get_prev_frame call is safe.
5357 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5359 * frame.h (select_frame): Delete level parameter.
5360 * stack.c (select_frame): Update. Use frame_relative_level to
5361 obtain the frame's level.
5362 (select_and_print_frame): Update call.
5363 (select_frame_command): Ditto.
5364 (up_silently_base): Ditto.
5365 (down_silently_base): Ditto.
5366 * ocd.c (ocd_start_remote): Ditto.
5367 * remote-rdp.c (remote_rdp_open): Ditto.
5368 * remote-mips.c (mips_initialize): Ditto.
5369 (common_open): Ditto.
5370 * remote-e7000.c (e7000_start_remote): Ditto.
5371 * m3-nat.c (select_thread): Ditto.
5372 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5373 (child_get_current_exception_event): Ditto.
5374 * varobj.c (varobj_create): Ditto.
5375 (varobj_update): Ditto.
5376 (c_value_of_root): Ditto.
5377 * tracepoint.c (finish_tfind_command): Ditto.
5378 * corelow.c (core_open): Ditto.
5379 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5380 * thread.c (info_threads_command): Ditto.
5381 (switch_to_thread): Ditto.
5382 * infrun.c (normal_stop): Ditto.
5383 (restore_selected_frame): Ditto.
5384 (restore_inferior_status): Ditto.
5385 * breakpoint.c (insert_breakpoints): Ditto.
5386 (watchpoint_check): Ditto.
5387 (bpstat_stop_status): Ditto.
5388 (do_enable_breakpoint): Ditto.
5389 * blockframe.c (flush_cached_frames): Ditto.
5390 (reinit_frame_cache): Ditto.
5392 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5394 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5397 2002-05-04 Jim Blandy <jimb@redhat.com>
5399 * gdbtypes.c (replace_type): Doc fix.
5401 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5403 * valprint.c (strcat_longest): Delete commented out function.
5406 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5408 * MAINTAINERS: Mark a29k as deleted.
5409 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5410 Move new configurations to the top.
5411 * configure.tgt: Remove a29k.
5412 * config/a29k/tm-vx29k.h: Delete.
5413 * config/a29k/vx29k.mt: Delete.
5414 * config/a29k/tm-a29k.h: Delete.
5415 * config/a29k/a29k-udi.mt: Delete.
5416 * config/a29k/a29k.mt: Delete.
5417 * a29k-tdep.c: Delete.
5418 * remote-udi.c: Delete.
5419 * remote-mm.c: Delete.
5420 * remote-eb.c: Delete.
5421 * remote-adapt.c: Delete.
5422 * Makefile.in: Remove obsolete code.
5423 * gdbserver/Makefile.in: Ditto.
5424 * config/s390/s390x.mt: Ditto.
5425 * config/s390/s390.mt: Ditto.
5426 * config/sparc/sparclynx.mh: Ditto.
5427 * config/sparc/linux.mh: Ditto.
5428 * config/pa/hppaosf.mh: Ditto.
5429 * config/pa/hppabsd.mh: Ditto.
5430 * config/ns32k/nbsd.mt: Ditto.
5431 * config/mips/vr5000.mt: Ditto.
5432 * config/m68k/sun3os4.mh: Ditto.
5433 * config/m68k/nbsd.mt: Ditto.
5434 * config/m68k/m68klynx.mh: Ditto.
5435 * config/m32r/m32r.mt: Ditto.
5436 * config/i386/x86-64linux.mt: Ditto.
5437 * config/i386/nbsdelf.mt: Ditto.
5438 * config/i386/nbsd.mt: Ditto.
5439 * config/i386/i386lynx.mh: Ditto.
5441 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5443 * target.c (debug_print_register): New function. Handle oversize
5445 (debug_to_fetch_registers): Call.
5446 (debug_to_store_registers): Call.
5448 2002-05-03 Jim Blandy <jimb@redhat.com>
5450 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5451 (read_type): Doc fix.
5452 * gdbtypes.c (replace_type): Doc fix.
5454 * stabsread.c (multiply_defined_struct): New complaint.
5455 (read_struct_type): If the type we were passed isn't empty, or
5456 incomplete, don't read the new struct type into it; complain,
5457 and return the original type unchanged. Take a new `type_code'
5458 argument, which is the type code for the new type.
5459 (read_type): Rather than storing the type's type code here, pass
5460 it as an argument to read_struct_type, and let that take care of
5461 storing it. That way, we don't overwrite the original type code,
5462 so read_struct_type can use it to decide whether we're overwriting
5463 something we shouldn't.
5464 (complain_about_struct_wipeout): New function.
5466 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5468 * gdbarch.sh: Assert that gdbarch is non-NULL.
5469 * gdbarch.c: Regenerate.
5471 2002-05-03 Jason Merrill <jason@redhat.com>
5473 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5476 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5478 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5479 (x86_64_dwarf2gdb_regno_map_length),
5480 (x86_64_dwarf2_reg_to_regnum): Added.
5481 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5482 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5483 (_initialize_x86_64_tdep): Synced with the change above.
5484 (x86_64_skip_prologue): Reformulated message.
5486 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5488 * f-exp.y: Also use new prev_lexptr variable
5489 to improve error reporting. Based on Michael Snyder
5490 2002-04-24 dated patch to c-exp.y.
5491 * jv-exp.y: Likewise.
5492 * m2-exp.y: Likewise.
5494 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5496 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5497 we are dealing with vectors.
5499 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5501 * config/m68k/tm-nbsd.h: Obvious fix,
5502 correct machine name.
5504 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5506 * p-typeprint.c (pascal_type_print_base): Add support
5507 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5509 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5511 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5512 for fondamental pascal 'char' type.
5514 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5516 * p-lang.h (is_pascal_string_type): Declaration changed,
5517 new sixth argument of type char ** added.
5518 * p-lang.c (is_pascal_string_type): Implementation
5519 changed. Args length_pos, length_size, string_pos, char_size
5520 can now be NULL. New argument arrayname set to the field
5521 name of the char array. Return value set to char array
5522 field index plus one.
5523 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5524 is_pascal_string_type function.
5526 2002-05-02 Andrew Cagney <cagney@redhat.com>
5528 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5529 <cagney@redhat.com> change.
5530 * gdbarch.c: Regenerate.
5532 2002-05-02 Andrew Cagney <cagney@redhat.com>
5534 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5535 before probing for a new one. Detect errorenous gdbarch_init
5537 * gdbarch.c: Regenerate.
5539 2002-05-01 Andrew Cagney <cagney@redhat.com>
5541 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5542 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5543 * config/v850/tm-v850.h: Ditto. Update copyright.
5545 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5547 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5550 2002-04-30 Michael Snyder <msnyder@redhat.com>
5552 * arm-tdep.c: Whitespace clean-ups.
5553 (arm_skip_prologue): Fix thinko; two lines
5554 should have been removed as part of 4/24 change.
5556 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5558 * rs6000-tdep.c: Added comment describing how fpscr register
5559 numbers were chosen.
5561 2002-04-30 Michael Snyder <msnyder@redhat.com>
5563 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5565 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5567 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5568 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5569 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5571 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5573 From Louis Hamilton <hamilton@redhat.com>:
5574 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5575 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5576 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5577 not bfd-private xcoff data, to determine wordsize.
5578 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5580 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5582 GDB 5.2 released from 5.2 branch.
5584 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5586 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5587 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5588 (x86_64_register_info_table): Added comments with register numbers.
5590 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5592 * rs6000-tdep.c (rs6000_extract_return_value,
5593 rs6000_store_return_value): Handle returning vectors.
5594 (rs6000_gdbarch_init): Use
5595 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5596 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5598 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5600 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5601 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5603 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5605 * hpread.c (hpread_psymtab_to_symtab_1,
5606 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5607 with fprintf_unfiltered (gdb_stderr,...).
5609 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5611 * remote-array.c (printf_monitor, write_monitor,
5612 array_insert_breakpoint, array_remove_breakpoint ):
5613 Replace fprintf (stderr,...
5614 with fprintf_unfiltered (gdb_stderr,....
5615 * remote-es.c: Likewise.
5616 * remote-os9k.c: Likewise.
5617 * remote-st.c: Likewise.
5619 2002-04-28 Andreas Schwab <schwab@suse.de>
5621 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5622 linux-proc.o and gcore.o.
5624 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5626 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5627 code without frame pointers.
5629 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5631 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5634 2002-04-26 Ben Elliston <bje@redhat.com>
5636 * target.c (do_xfer_memory): Correct reference to the new option
5637 "trust-readonly-sections".
5639 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5641 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5642 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5643 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5645 (read_array_type): Record the fact that this array type is really a
5646 vector (i.e. are passed in by value).
5648 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5650 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5651 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5652 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5653 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5654 * alpha-linux-tdep.c: Include frame.h.
5655 (alpha_linux_sigcontext_addr): New function.
5656 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5657 alpha_linux_sigcontext_addr.
5658 * alpha-osf1-tdep.c: Include gdbcore.h.
5659 (alpha_osf1_sigcontext_addr): New function.
5660 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5661 alpha_osf1_sigcontext_addr.
5662 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5663 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5665 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5667 * stack.c (selected_frame_level):
5668 (select_frame): Do not set selected_frame_level.
5669 * frame.h (selected_frame_level): Delete declaration.
5671 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5673 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5674 convert_from_func_ptr-addr when AIX / PowerOpen.
5676 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5678 * valops.c (hand_function_call): Call
5679 generic_save_call_dummy_addr.
5680 * frame.h (generic_save_call_dummy_addr): Declare.
5681 * blockframe.c (struct dummy_frame): Add fields call_lo and
5683 (generic_find_dummy_frame): Check for PC in range call_lo to
5684 call_hi instead of entry_point_address.
5685 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5686 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5687 (generic_save_call_dummy_addr): New function.
5689 2002-04-24 David S. Miller <davem@redhat.com>
5691 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5692 sparc_skip_prologue.
5693 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5694 information to find prologue when possible.
5695 (sparc_prologue_frameless_p): Call examine_prologue directly.
5696 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5697 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5699 (SKIP_PROLOGUE): Likewise.
5701 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5703 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5704 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5705 indicate that the condition it was testing is always true.
5706 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5707 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5708 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5710 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5712 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5713 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5714 tdep->jb_pc and tdep->jb_elt_size.
5715 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5716 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5717 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5718 * alpha-nat.c (get_longjmp_target): Remove.
5719 (JB_ELEMENT_SIZE): Ditto.
5721 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5722 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5723 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5724 to alpha_get_longjmp_target.
5725 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5726 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5727 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5729 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5731 * README: Update to GDB 5.2.
5733 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5735 * gdbarch.sh (LC_ALL): Set to `c'.
5737 2002-04-25 Theodore A. Roth <troth@verinet.com>
5739 * avr-tdep.c: Ran through gdb_indent.sh.
5741 2002-04-25 Theodore A. Roth <troth@verinet.com>
5743 * MAINTAINERS: Add myself as AVR maintainer.
5744 * NEWS: Note new target avr.
5746 2002-04-25 Theodore A. Roth <troth@verinet.com>
5748 * Makefile.in: Add support for AVR target.
5749 * configure.tgt: Add support for AVR target.
5750 * avr-tdep.c: New file
5751 * config/avr/avr.mt: New file.
5753 2002-04-25 Theodore A. Roth <troth@verinet.com>
5755 * MAINTAINERS: Add myself to write-after-approval.
5757 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5759 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5760 with fprintf_unfiltered (gdb_stderr,....
5762 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5765 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5767 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5769 * p-exp.y: Also use new prev_lexptr variable
5770 to improve error reporting. Based on Michael Snyder
5771 2002-04-24 dated patch to c-exp.y.
5773 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5775 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5776 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5777 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5779 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5781 (FUNCTION_START_OFFSET): Remove.
5782 (BREAKPOINT): Ditto.
5784 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5786 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5789 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5791 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5792 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5793 alpha_linux_pc_in_sigtramp.
5794 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5795 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5796 alpha_osf1_pc_in_sigtramp.
5797 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5798 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5799 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5800 alphafbsd_pc_in_sigtramp.
5801 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5802 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5803 alphanbsd_pc_in_sigtramp.
5804 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5805 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5807 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5809 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5811 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5813 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5815 (alphanbsd-nat.o): New dependency list.
5816 (alphanbsd-tdep.o): Ditto.
5817 * NEWS: Note new native NetBSD/alpha configuration.
5818 * alphanbsd-nat.c: New file.
5819 * alphanbsd-tdep.c: Ditto.
5820 * configure.host (alpha*-*-netbsd*): New host.
5821 * configure.tgt (alpha*-*-netbsd*): New target.
5822 * config/alpha/nbsd.mh: New file.
5823 * config/alpha/nbsd.mt: Ditto.
5824 * config/alpha/nm-nbsd.h: Ditto.
5825 * config/alpha/tm-nbsd.h: Ditto.
5827 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5829 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5830 (alpha-osf1-tdep.o): New dependency list.
5831 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5832 and skip_sigtramp_frame members.
5833 * alpha-linux-tdep.c: Include gdbcore.h.
5834 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5835 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5836 * alpha-osf1-tdep.c: New file.
5837 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5839 (alpha_frame_past_sigtramp_frame): New function.
5840 (alpha_dynamic_sigtramp_offset): Ditto.
5841 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5842 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5843 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5844 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5845 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5846 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5847 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5848 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5849 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5850 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5851 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5852 to find_solib_trampoline_target.
5853 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5854 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5855 (SKIP_TRAMPOLINE_CODE): Remove.
5856 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5857 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5858 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5859 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5860 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5861 (PROC_SIGTRAMP_MAGIC): Ditto.
5862 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5863 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5864 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5865 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5866 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5868 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5870 * NEWS: Note that Alpha targets are now multi-arch.
5872 2002-04-24 Michael Snyder <msnyder@redhat.com>
5874 * parser-defs.h (prev_lexptr): New external variable.
5875 * parse.c (parse_exp_1): Set prev_lexptr to null before
5876 calling the language-specific parser.
5877 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5878 (yyerror): Use prev_lexptr in error reporting.
5880 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5882 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5883 * gregset.h: If FILL_FPXREGSET is defined, provide
5884 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5885 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5886 is defined, call fill_fpxregset.
5888 2002-04-24 Roland McGrath <roland@frob.com>
5890 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5891 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5892 (supply_gregset, supply_fpregset): New functions.
5894 * gnu-nat.c (gnu_find_memory_regions): New function.
5895 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5896 (gnu_xfer_memory): Add a cast.
5898 2002-04-24 Michael Snyder <msnyder@redhat.com>
5900 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5901 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5902 of argument regs ("str r(0123), [r11, #-nn"]).
5903 (arm_skip_prologue): Better handling for frameless functions.
5904 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5905 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5907 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5909 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5910 NUM_PSEUDO_REGS can be used.
5912 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5914 * arch-utils.h: Update copyright.
5916 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5917 * gdbarch.h, gdbarch.c: Re-generate.
5919 * inferior.h (IN_SIGTRAMP): Delete definition.
5920 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5921 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5923 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5924 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5925 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5926 (find_proc_framesize): Ditto.
5927 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5928 (alpha_init_extra_frame_info): Ditto.
5929 * infrun.c (handle_inferior_event): Ditto.
5930 (handle_inferior_event): Ditto.
5931 (check_sigtramp2): Ditto.
5932 * blockframe.c (create_new_frame): Ditto.
5933 (get_prev_frame): Ditto.
5934 * ppc-linux-tdep.c: Update comments.
5935 * i386-linux-tdep.c: Update comments.
5936 * breakpoint.c (bpstat_what): Update comment.
5938 2002-04-24 Michal Ludvig <mludvig@suse.cz>
5940 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5941 (regsets_store_inferior_registers): Removed cast to int from
5943 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5945 2002-04-24 David S. Miller <davem@redhat.com>
5947 * i960-tdep.c (register_in_window_p): New function.
5948 (i960_find_saved_register): Use it instead of
5949 REGISTER_IN_WINDOW_P.
5950 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5952 * symtab.h (find_stab_function_addr): Kill extern.
5953 * minsyms.c (find_stab_function_addr): Remove from here...
5954 * dbxread.c: ... to here, and mark it static.
5956 2002-04-20 David S. Miller <davem@redhat.com>
5958 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5959 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5961 2002-04-21 David S. Miller <davem@redhat.com>
5963 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5964 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5965 (vx_write_register): Likewise.
5967 2002-04-23 J. Brobecker <brobecker@gnat.com>
5969 * source.c (is_regular_file): New function.
5970 (openp): Check wether file to open is a regular file
5971 to avoid opening directories.
5973 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5975 * findvar.c (extract_signed_integer): Cast printf argument
5976 to suppress format warning.
5977 (extract_unsigned_integer): Likewise.
5978 * infcmd.c (registers_info): Likewise.
5979 * top.c (get_prompt_1): Likewise.
5980 * valops.c (value_assign): Likewise.
5981 * valprint.c (print_decimal): Likewise.
5983 2002-04-22 H.J. Lu (hjl@gnu.org)
5985 * c-exp.y (typebase): Support
5987 [long|long long|short] [signed|unsigned] [int|]
5991 signed [long|long long|short] int
5993 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5995 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5997 * vax-tdep.h: New file.
5998 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5999 Make several routines static.
6000 (vax_get_saved_register): New function.
6001 (vax_gdbarch_init): New function.
6002 (_initialize_vax_tdep): Register vax_gdbarch_init.
6003 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6004 Remove macros now under the control of gdbarch.
6006 2002-04-22 Michael Snyder <msnyder@redhat.com>
6008 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6009 Some whitespace and coding standards tweaks.
6011 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6013 * vax-tdep.c: Include regcache.h.
6014 (vax_call_dummy_words): New.
6015 (sizeof_vax_call_dummy_words): New.
6016 (vax_fix_call_dummy): New function.
6017 (vax_saved_pc_after_call): Ditto.
6018 * config/vax/tm-vax.h: Don't include regcache.h.
6019 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6020 (CALL_DUMMY): Remove.
6021 (CALL_DUMMY_WORDS): Define.
6022 (SIZEOF_CALL_DUMMY_WORDS): Define.
6023 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6025 2002-04-18 Michael Snyder <msnyder@redhat.com>
6027 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6029 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6031 * vax-tdep.c (vax_frame_chain): New function.
6032 (vax_push_dummy_frame): Ditto.
6033 (vax_pop_frame): Ditto.
6034 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6035 (FRAMELESS_FUNCTION_INVOCATION): Use
6036 generic_frameless_function_invocation_not.
6037 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6038 (POP_FRAME): Use vax_pop_frame.
6040 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6042 * vax-tdep.c (vax_store_struct_return): New function.
6043 (vax_extract_return_value): Ditto.
6044 (vax_store_return_value): Ditto.
6045 (vax_extract_struct_value_address): Ditto.
6046 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6047 vax_store_struct_return.
6048 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6049 (STORE_RETURN_VALUE): Use vax_store_return_value.
6050 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6052 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6054 * vax-tdep.c (vax_frame_saved_pc): New function.
6055 (vax_frame_args_address_correct): Ditto.
6056 (vax_frame_args_address): Ditto.
6057 (vax_frame_locals_address): Ditto.
6058 (vax_frame_num_args): Move code to be in proximity to
6059 other frame-related functions.
6060 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6061 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6062 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6063 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6064 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6066 2002-04-22 H.J. Lu (hjl@gnu.org)
6068 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6071 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6073 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6074 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6075 (FRAME_INIT_SAVED_REGS): New macro.
6077 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6079 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6081 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6083 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6085 (fetch_osf_core_registers): Likewise.
6086 (supply_gregset): Likewise.
6088 2002-04-22 J. Brobecker <brobecker@gnat.com>
6090 * symfile.h (get_section_index): Define.
6091 * symfile.c (get_section_index): New function.
6092 * mdebugread.c (SC_IS_SBSS): New macro.
6093 (SC_IS_BSS): Return true for the scBss storage class only, as
6094 the scSBss storage class refers to the .sbss section.
6095 (parse_partial_symbols): Discard the symbols which associated
6096 section does not exist.
6097 Make sure to use the .sbss section index for symbols which
6098 storage class is scBss, rather than using the .bss section index.
6100 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6102 * vax-tdep.c: Update copyright years.
6103 (vax_register_name): New function.
6104 (vax_register_byte): Ditto.
6105 (vax_register_raw_size): Ditto.
6106 (vax_register_virtual_size): Ditto.
6107 (vax_register_virtual_type): Ditto.
6108 * config/vax/tm-vax.h: Update copyright years.
6109 (REGISTER_NAMES): Remove.
6110 (REGISTER_NAME): Define.
6111 (REGISTER_BYTE): Use vax_register_byte.
6112 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6113 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6114 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6116 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6118 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6120 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6122 2002-04-21 David S. Miller <davem@redhat.com>
6124 * arch-utils.c (generic_prologue_frameless_p): Kill
6125 SKIP_PROLOGUE_FRAMELESS_P code.
6126 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6128 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6129 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6130 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6132 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6133 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6134 (sparc_gdbarch_init): Pass it to
6135 set_gdbarch_prologue_frameless_p.
6137 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6139 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6140 (alphabsd-nat.o): New dependency list.
6142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6144 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6146 (alpha-linux-tdep.o): New dependency list.
6147 (alphafbsd-tdep.o): Likewise.
6149 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6151 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6153 * alpha-tdep.c: ...from here.
6154 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6156 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6158 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6159 prototype from here...
6160 * alpha-tdep.h: ...to here.
6162 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6164 * frame.h (selected_frame_level): Document as deprecated.
6165 (frame_relative_level): Declare.
6166 * stack.c (frame_relative_level): New function.
6167 (selected_frame_level): Document as deprecated.
6168 (select_frame): Do not set the selected_frame_level.
6170 * stack.c (frame_info, record_selected_frame): Update.
6171 (frame_command, current_frame_command): Update.
6172 (up_silently_base, up_command, down_silently_base): Update.
6173 (down_command): Update.
6174 * inflow.c (kill_command): Update.
6175 * tracepoint.c (finish_tfind_command): Update.
6176 * corelow.c (core_open): Update.
6177 * thread.c (info_threads_command): Update.
6178 (do_captured_thread_select): Update.
6179 * infcmd.c (finish_command): Update.
6180 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6182 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6184 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6186 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6188 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6191 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6193 * alphafbsd-tdep.c: Update copyright years. Include
6195 (alphafbsd_use_struct_convention): Make static.
6196 (alphafbsd_init_abi): New function.
6197 (_initialize_alphafbsd_tdep): New function.
6198 * config/alpha/tm-fbsd.h: Update copyright years.
6199 (USE_STRUCT_CONVENTION): Remove.
6201 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6203 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6204 an Alpha ABI variant.
6205 (alpha_abi_handler_list): Declare.
6206 (alpha_gdbarch_register_os_abi): New function.
6207 (alpha_gdbarch_init): Give registered ABI variant handlers a
6208 chance to tweak the gdbarch once we have set up defaults.
6209 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6211 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6213 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6214 to standard_coerce_float_to_double.
6215 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6217 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6219 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6220 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6221 from gdbarch_tdep rather than a constant.
6222 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6223 the default text address for all Alpha Unix ABIs.
6224 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6225 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6227 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6229 * alpha-tdep.h: New file. Includes several Alpha target constants
6231 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6232 let gdbarch deal with.
6233 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6234 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6236 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6237 Alpha target register names.
6238 * alphabsd-nat.c: Likewise.
6239 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6240 Alpha target register names. Make serveral routines static.
6241 (alpha_get_saved_register): New function.
6242 (alpha_abi_names): New.
6243 (process_note_abi_tag_sections): New function.
6244 (get_elfosabi): New function.
6245 (alpha_gdbarch_init): New function.
6246 (alpha_dump_tdep): New function.
6247 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6249 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6251 * frame.c (find_saved_register): Delete #ifdef
6252 HAVE_REGISTER_WINDOWS code.
6253 * config/sparc/tm-sparc.h: Update comments.
6254 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6256 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6258 * i960-tdep.c (i960_find_saved_register): New function.
6259 (i960_get_saved_register): New function.
6260 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6261 (i960_get_saved_register): Declare.
6262 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6264 2002-04-20 David S. Miller <davem@redhat.com>
6266 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6268 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6270 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6271 instead of NUM_PSEUDO_REGS.
6273 2002-04-20 David S. Miller <davem@redhat.com>
6275 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6276 GDB_MULTI_ARCH_PARTIAL
6277 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6278 define, let tm-sp64.h do it.
6280 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6282 * frame.c (find_saved_register): Avoid a NULL pointer
6283 dereference and actually walk the frame list.
6285 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6287 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6288 sorted in most most-recent-used order. Document.
6289 * gdbarch.h, gdbarch.c: Regenerate.
6291 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6293 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6294 (add_inferior): Call create_register_cache.
6295 (clear_inferiors): Call free_register_cache.
6296 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6297 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6298 (registers): Remove.
6299 (get_regcache): New function.
6300 (create_register_cache, free_register_cache): New functions.
6301 (set_register_cache): Don't initialize the register cache here.
6302 (registers_to_string, registers_from_string, register_data): Call
6304 * gdbserver/regcache.h: Add prototypes.
6305 * gdbserver/server.h: Likewise.
6307 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6309 * gdbserver/mem-break.c: New file.
6310 * gdbserver/mem-break.h: New file.
6311 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6313 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6315 (clear_inferiors): Free target_data member if set.
6316 (inferior_target_data, set_inferior_target_data): New functions.
6317 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6318 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6319 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6320 (struct inferior_linux_data): New.
6321 (linux_create_inferior): Use set_inferior_target_data.
6322 (linux_attach): Likewise. Call add_inferior.
6323 (linux_wait_for_one_inferior): New function.
6324 (linux_wait): Call it.
6325 (linux_write_memory): Add const.
6326 (initialize_low): Call set_breakpoint_data.
6327 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6329 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6331 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6333 * gdbserver/target.c (read_inferior_memory)
6334 (write_inferior_memory): New functions.
6335 * gdbserver/target.h (read_inferior_memory)
6336 (write_inferior_memory): Change macros to prototypes.
6337 (struct target_ops): Update comments. Add const to write_memory
6340 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6342 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6344 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6345 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6346 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6349 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6352 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6353 (build_builtin_type_vec128): Ditto.
6354 (append_composite_type_field): Fix calculation of type length in
6357 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6359 * config/djgpp/README: Update.
6361 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6364 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6366 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6367 (alpha_setup_arbitrary_frame): ...to this.
6368 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6369 for alpha_setup_arbitrary_frame.
6371 2002-04-18 Andrew Cagney <cagney@redhat.com>
6373 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6374 * gdbarch.h, gdbarch.c: Regenerate.
6376 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6377 * target.h (memory_breakpoint_from_pc): Update declaration.
6378 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6380 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6381 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6382 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6383 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6384 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6385 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6386 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6387 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6388 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6389 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6390 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6391 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6393 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6395 * monitor.c (monitor_insert_breakpoint): Ditto.
6396 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6398 * config/mcore/tm-mcore.h: Update copyright.
6399 * mem-break.c: Ditto.
6400 * xstormy16-tdep.c: Ditto.
6402 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6404 * p-exp.y: Add precedence rule for '^' token.
6405 This removes the shift/reduce conflicts.
6406 Remove the comment concerning these shift/reduce conflicts.
6408 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6410 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6411 (registers_powerpc_nofp): New register set for processors
6412 without floating point unit.
6414 2002-04-18 David S. Miller <davem@redhat.com>
6416 * MAINTAINERS: Add myself to write-after-approval.
6418 2002-04-17 Michael Snyder <msnyder@redhat.com>
6420 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6422 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6424 * rs6000-tdep.c (frame_initial_stack_address): Use
6425 frame_register_read to read the alloca_reg.
6427 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6429 * frame.c (find_saved_register): Find saved registers in the next
6433 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6435 * gdbarch.sh (LANG): Set to ``c''.
6437 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6439 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6441 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6443 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6446 * hpread.c (hpread_get_lntt): Add declaration.
6447 Also fix PR gdb/391.
6449 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6451 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6452 * aclocal.m4, configure: Re-generate.
6455 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6457 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6458 instead of tm_print_insn.
6460 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6462 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6464 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6466 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6467 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6468 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6470 2002-04-12 Don Howard <dhoward@redhat.com>
6472 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6473 max_user_call_depth.
6474 (init_cmd_lists): Initialize the new value;
6475 * cli/cli-script.c (execute_user_command): Limit the call depth of
6476 user defined commands. This avoids a core-dump when user commands
6477 are infinitly recursive.
6479 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6481 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6482 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6483 from tdep struct instead of DEFAULT_LR_SAVE.
6484 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6485 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6486 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6488 2002-04-12 Michael Snyder <msnyder@redhat.com>
6490 * Remote.c: Spelling fix.
6491 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6492 If no symbol found for "sbrk", try "_sbrk".
6493 (make_output_phdrs): Use bfd_section_name.
6494 (gcore_copy_callback): Use bfd_section_name.
6495 * eval.c: Indentation fix-ups.
6496 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6497 in case it gets applied to an address that is already
6498 in the instruction space.
6499 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6500 * symfile.c: Fix indentation, long lines.
6501 * source.c: White space fix-up.
6503 2002-04-12 Andrew Cagney <cagney@redhat.com>
6505 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6506 * frame.c (frame_register_read): New function. Return non-zero on
6508 (read_relative_register_raw_bytes_for_frame): Delete.
6509 (read_relative_register_raw_bytes): Delete.
6510 * frame.h (frame_register_read): Declare.
6511 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6513 * infcmd.c (do_registers_info): Ditto.
6514 * hppa-tdep.c: Ditto.
6515 * rs6000-tdep.c: Ditto.
6516 * h8500-tdep.c: Ditto.
6517 * mips-tdep.c: Ditto.
6518 * h8300-tdep.c: Ditto.
6519 * z8k-tdep.c: Ditto.
6521 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6523 From Jimi X <jimix@watson.ibm.com>:
6524 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6527 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6529 From Jimi X <jimix@watson.ibm.com>:
6530 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6533 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6535 From Jimi X <jimix@watson.ibm.com>:
6536 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6537 register sets for these processor variants.
6539 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6541 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6542 registers which are allowed to fail to store.
6543 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6544 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6545 (ppc_cannot_store_register): FPSCR may not be storable.
6546 * regformats/reg-ppc.dat: Support FPSCR.
6548 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6550 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6551 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6552 Add fpscr as an invalid/unfetchable register.
6553 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6554 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6555 (fill_fpregset): Add support for register fpscr.
6556 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6557 (fill_gregset): Account for the fact that register ``mq'' might
6559 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6560 (registers_power): Add fpscr to register set at slot 71.
6561 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6562 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6564 2002-04-11 Michael Snyder <msnyder@redhat.com>
6566 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6567 * configure: Regenerate.
6568 * config.in: Regenerate.
6569 * acconfig.h: Add define for _SYSCALL32.
6570 * core-sol2.c: Remove #define _SYSCALL32.
6571 * solib-legacy.c: Remove #define _SYSCALL32.
6573 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6575 * stack.c (select_frame): Cleanup internal error message, do not
6578 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6580 * stack.c (select_frame): Check that selected_frame and the
6581 specified level are as expected.
6582 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6584 * frame.h (struct frame_info): Add field `level'. Update
6586 Work-in-progress PR gdb/464.
6588 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6590 * maint.c (maint_print_section_info): Rename print_section_info.
6591 (print_bfd_section_info, print_objfile_section_info): Update.
6592 * inferior.h (struct gdbarch): Add opaque declaration.
6593 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6594 * gdbarch.h: Regenerate.
6596 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6598 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6599 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6600 (kernel_u_size): Added.
6601 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6602 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6604 2002-04-04 Jim Ingham <jingham@apple.com>
6606 * valarith.c (find_size_for_pointer_math): New function, either returns
6607 the size for a pointer's target, returns 1 for void *, or errors for
6609 (value_add, value_sub): use find_size_for_pointer_math.
6611 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6613 * linux-low.c (linux_look_up_symbols): New hook.
6614 (linux_target_ops): Add linux_look_up_symbols.
6615 * remote-utils.c (decode_address): New function.
6616 (look_up_one_symbol): New function.
6617 * server.c (handle_query): Call target look_up_symbols hook.
6618 * server.h (look_up_one_symbol): Add prototype.
6619 * target.h (struct target_ops): Add look_up_symbols hook.
6621 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6623 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6624 * ChangeLog: Correct paths in last ChangeLog entry.
6626 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6628 * gdbserver/linux-low.h: Remove obsolete prototypes.
6629 (struct linux_target_ops): New.
6630 (extern the_low_target): New.
6631 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6632 (register_addr): Use the_low_target explicitly.
6633 (fetch_register): Likewise.
6634 (usr_fetch_inferior_registers): Likewise.
6635 (usr_store_inferior_registers): Likewise.
6636 * gdbserver/linux-arm-low.c (num_regs): Remove.
6637 (arm_num_regs): Define.
6638 (arm_regmap): Renamed from regmap, made static.
6639 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6641 (arm_cannot_store_register): Renamed from cannot_store_register,
6643 (the_low_target): New.
6644 * gdbserver/linux-i386-low.c (num_regs): Remove.
6645 (i386_num_regs): Define.
6646 (i386_regmap): Renamed from regmap, made static.
6647 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6649 (i386_cannot_store_register): Renamed from cannot_store_register,
6651 (the_low_target): New.
6652 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6653 (ia64_num_regs): Define.
6654 (ia64_regmap): Renamed from regmap, made static.
6655 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6657 (ia64_cannot_store_register): Renamed from cannot_store_register,
6659 (the_low_target): New.
6660 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6661 (m68k_num_regs): Define.
6662 (m68k_regmap): Renamed from regmap, made static.
6663 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6665 (m68k_cannot_store_register): Renamed from cannot_store_register,
6667 (the_low_target): New.
6668 * gdbserver/linux-mips-low.c (num_regs): Remove.
6669 (mips_num_regs): Define.
6670 (mips_regmap): Renamed from regmap, made static.
6671 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6673 (mips_cannot_store_register): Renamed from cannot_store_register,
6675 (the_low_target): New.
6676 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6677 (ppc_num_regs): Define.
6678 (ppc_regmap): Renamed from regmap, made static.
6679 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6681 (ppc_cannot_store_register): Renamed from cannot_store_register,
6683 (the_low_target): New.
6684 * gdbserver/linux-s390-low.c (num_regs): Remove.
6685 (s390_num_regs): Define.
6686 (s390_regmap): Renamed from regmap, made static.
6687 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6689 (s390_cannot_store_register): Renamed from cannot_store_register,
6691 (the_low_target): New.
6692 * gdbserver/linux-sh-low.c (num_regs): Remove.
6693 (sh_num_regs): Define.
6694 (sh_regmap): Renamed from regmap, made static.
6695 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6697 (sh_cannot_store_register): Renamed from cannot_store_register,
6699 (the_low_target): New.
6700 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6701 (the_low_target): New.
6703 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6705 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6706 override FP_REGNUM with frame->fp. Update copyright.
6707 * parse.c (num_std_regs, std_regs): Delete.
6708 (target_map_name_to_register): Do not search std_regs. Update
6709 function description.
6710 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6711 declarations. Update copyright.
6714 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6716 * gdbserver/Makefile.in: Add stamp-h target.
6717 * gdbserver/configure.in: Create stamp-h.
6718 * gdbserver/configure: Regenerated.
6720 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6722 * gdbserver/inferiors.c: New file.
6723 * gdbserver/target.c: New file.
6724 * gdbserver/target.h: New file.
6725 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6727 * gdbserver/linux-low.c (inferior_pid): New static variable,
6728 moved from server.c.
6729 (linux_create_inferior): Renamed from create_inferior.
6730 Call add_inferior. Return 0 on success instead of a PID.
6731 (linux_attach): Renamed from myattach.
6732 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6733 (linux_thread_alive): Renamed from mythread_alive.
6734 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6736 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6737 (regsets_store_inferior_registers): Correct error message.
6738 Add missing ``return 0''.
6739 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6740 (linux_store_registers): Renamed from store_inferior_registers.
6741 (linux_read_memory): Renamed from read_inferior_memory.
6742 (linux_write_memory): Renamed from write_inferior_memory.
6743 (linux_target_ops): New structure.
6744 (initialize_low): Call set_target_ops ().
6745 * gdbserver/remote-utils.c (unhexify): New function.
6746 (hexify): New function.
6747 (input_interrupt): Send signals to ``signal_pid''.
6748 * gdbserver/server.c (inferior_pid): Remove.
6749 (start_inferior): Update create_inferior call.
6750 (attach_inferior): Call add_inferior.
6751 (handle_query): New function.
6752 (main): Call handle_query for `q' packets.
6753 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6754 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6756 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6758 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6760 * gdbserver/configure.in: Check for <string.h>
6761 * gdbserver/configure: Regenerate.
6762 * gdbserver/config.in: Regenerate.
6763 * gdbserver/gdbreplay.c: Include needed system headers.
6764 (remote_open): Remove strchr prototype.
6765 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6766 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6767 (supply_register_by_name): Likewise.
6768 (collect_register): Change buf argument to void *.
6769 (collect_register_by_name): Likewise.
6770 * gdbserver/regcache.h: Add missing prototypes.
6771 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6772 * gdbserver/server.c (handle_query): New function.
6773 (attached): New static variable, moved out of main.
6774 (main): Quiet longjmp clobber warnings.
6775 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6776 * gdbserver/utils.c (error): Remove NORETURN.
6779 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6781 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6782 after the last symbol in a block.
6784 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6786 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6787 is non zero as a found symbol.
6789 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6791 * findvar.c: Include "builtin-regs.h".
6792 (value_of_register): Call value_of_builtin_reg when applicable.
6793 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6794 (target_map_name_to_register): Call
6795 builtin_reg_map_name_to_regnum.
6796 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6797 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6798 (builtin_regs_h): Define.
6799 (builtin-regs.o): New target.
6800 (findvar.o): Add $(builtin_regs_h).
6801 * builtin-regs.c, builtin-regs.h: New files.
6802 * std-regs.c: New file.
6803 Partial fix for PR gdb/251.
6805 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6807 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6808 it's no longer required.
6810 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6812 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6814 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6816 From Jimi X <jimix@watson.ibm.com>:
6817 * rs6000-tdep.c (rs6000_software_single_step): Use
6818 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6819 and size. Use target_insert_breakpoint() and
6820 target_remove_breakpoint() to insert and remove breakpoints
6821 instead of explicit memory reads and writes.
6823 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6825 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6826 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6827 ELF_OBJECT_FORMAT ifdef.
6829 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6831 From Jimi X <jimix@watson.ibm.com>:
6832 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6834 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6836 From Jimi X <jimix@watson.ibm.com>:
6837 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6838 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6840 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6842 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6843 s/asprintf/xasprintf/.
6844 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6846 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6848 I believe Jeff Law denies responsability for this one:
6849 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6850 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6851 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6852 Work-around for PR gdb/366.
6854 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6856 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6857 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6858 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6860 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6862 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6863 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6866 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6868 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6871 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6873 * README (Reporting Bugs in GDB): Document the bug web page as the
6874 prefered way of submitting bugs.
6877 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6879 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6881 * gdbarch.h, gdbarch.c: Re-generate.
6883 2002-04-07 Andreas Schwab <schwab@suse.de>
6885 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6886 buffer to regcache_collect.
6888 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6890 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6891 * gdbarch.c, gdbarch.h: Re-generate.
6893 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6895 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6896 declaration. Fix -Werror.
6898 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6900 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6901 * gdbarch.c: Regenerate.
6903 2002-04-05 Michael Snyder <msnyder@redhat.com>
6905 * breakpoint.c (clear_command): Rewrite middle section to
6906 combine two loops with identical control conditions.
6907 Add a cleanup to eliminate a memory leak.
6908 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6910 2002-04-05 H.J. Lu (hjl@gnu.org)
6912 * solib-svr4.c (bkpt_names): Add "__start".
6914 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6916 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6917 as test for 64 bit target.
6919 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6921 * h8500-tdep.c (h8500_write_fp): Delete function.
6922 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6923 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6924 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6926 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6927 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6929 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6930 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6931 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6932 (d10v_write_fp): Delete function.
6933 * inferior.h (write_fp, generic_target_write_fp): Delete
6935 * regcache.c (generic_target_write_fp): Delete function.
6936 (write_fp): Delete function.
6937 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6938 * gdbarch.h, gdbarch.c: Regenerate.
6939 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6940 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6941 (sparc64_write_fp): Delete declaration.
6942 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6943 (h8500_write_fp): Delete declaration.
6945 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6947 * sparc-tdep.c (sparc64_write_fp): Delete.
6948 (sparc_push_dummy_frame): Replace write_fp call with code to store
6950 (sparc_gdbarch_init): Do not initialize write_fp.
6952 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6954 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6957 2002-03-29 Jim Blandy <jimb@redhat.com>
6959 * stack.c (get_selected_block): Add new argument `addr_in_block',
6960 used to return the exact code address we used to select the block,
6962 * blockframe.c (get_frame_block, get_current_block): Same.
6963 * frame.h (get_frame_block, get_current_block,
6964 get_selected_block): Update declarations.
6965 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6966 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6968 2002-04-05 Michael Snyder <msnyder@redhat.com>
6970 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6973 2002-04-05 J. Brobecker <brobecker@gnat.com>
6975 * utils.c (xfullpath): New function.
6976 * defs.h (xfullpath): Add declaration.
6977 * source.c (openp): Use xfullpath in place of gdb_realpath to
6978 avoid resolving the basename part of filenames when the
6979 associated file is a symbolic link. This fixes a potential
6980 inconsistency between the filenames known to GDB and the
6981 filenames it prints in the annotations.
6982 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6983 to be able to match a filename with either the real filename, or
6984 the name of any symbolic link to this file.
6985 (lookup_partial_symtab): Ditto.
6987 2002-04-04 Michael Snyder <msnyder@redhat.com>
6989 * breakpoint.c: Add support for hardware breakpoints in overlays.
6990 (overlay_events_enabled): New state variable.
6991 (insert_breakpoints): Use overlay_events_enabled to decide
6992 whether to attempt to set a breakpoint at the overlay load addr.
6993 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6994 (remove_breakpoint): Use overlay_events_enabled to decide
6995 whether breakpoints need to be removed from overlay load addr.
6996 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6997 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6998 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6999 disable_overlay_breakpoints): Update overlay_events_enabled.
7001 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7003 * dwarf2read.c (struct function_range): New.
7004 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7005 (check_cu_functions): New.
7006 (read_file_scope): Initialize global function lists.
7007 Call dwarf_decode_line after processing children.
7008 (read_func_scope): Add to global function list.
7009 (dwarf_decode_lines): Call check_cu_functions everywhere
7010 record_line is called. Call record_line with a linenumber
7011 of 0 to mark sequence ends.
7013 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7015 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7016 change sync with glibc.
7018 2002-04-03 Jim Blandy <jimb@redhat.com>
7020 * configure.in: Call AC_C_INLINE.
7021 * configure: Regenerated.
7023 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7025 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7026 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7028 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7030 * NEWS: Mention gcore support on FreeBSD/i386.
7032 * fbsd-proc.c: New file.
7033 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7034 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7036 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7039 2002-03-29 Jim Blandy <jimb@redhat.com>
7041 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7042 unescaped newlines in string literals, but newer ones don't. So
7045 2002-03-26 Michael Snyder <msnyder@redhat.com>
7046 Andrew Cagney <cagney@redhat.com>
7048 * cli/cli-dump.c: New file. Dump memory to file,
7049 restore file to memory.
7050 * cli/cli-dump.h: New file.
7051 * Makefile.in: Add rules, dependencies for cli-dump.o.
7052 * NEWS: Mention new commands.
7054 2002-03-28 Michael Snyder <msnyder@redhat.com>
7056 * symfile.c (symbol_file_add): Move test for null symbols to later.
7058 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7060 From veksler at il.ibm.com:
7061 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7062 the xstrduped original path.
7065 2002-03-27 Michael Snyder <msnyder@redhat.com>
7067 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7068 * infcmd.c (_initialize_infcmd): Ditto.
7069 * language.c (_initialize_language): Ditto.
7070 * symfile.c (_initialize_symfile): Ditto.
7071 * top.c (_init_main): Ditto.
7072 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7074 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7076 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7077 vector registers handling.
7078 (skip_prologue): Handle new AltiVec instructions. Fill in new
7079 fields of frame data.
7080 (frame_get_saved_regs): Fill in information for AltiVec registers.
7082 2002-03-27 Jim Blandy <jimb@redhat.com>
7084 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7085 a function; leave this macro here to invoke that function.
7086 (symbol_init_mangled_name): Declaration for that function.
7087 * symtab.c (symbol_init_mangled_name): New function.
7089 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7091 * valarith.c: Replace strerror with safe_strerror.
7092 * tracepoint.c: Ditto.
7094 * go32-nat.c: Ditto.
7098 2002-03-27 Andreas Schwab <schwab@suse.de>
7100 * event-top.c (command_line_handler): Remove useless if.
7102 2002-03-27 Andreas Jaeger <aj@suse.de>
7104 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7107 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7109 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7110 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7111 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7112 (x86_64_linux_dr_get_status, supply_gregset),
7113 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7114 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7115 (x86_64_register_info_table): Add.
7116 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7117 (x86_64_register_raw_size, x86_64_register_virtual_type),
7118 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7119 general x86_64_register_info_table.
7120 (i386_gdbarch_init): gdbarch_register_bytes is now set
7121 dynamicaly during initialization.
7122 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7123 * gdbserver/linux-x86-64-low.c: Ditto.
7125 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7127 * gdbserver/server.c (main): Call target_signal_to_host_p
7128 and target_signal_to_host on signals received from the remote.
7129 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7130 target_signal_from_host on signals sent to the remote.
7131 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7132 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7134 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7136 * signals/signals.c: Include "server.h" in gdbserver build.
7137 (target_signal_from_name): Don't use STREQ.
7138 (_initialize_signals): Likewise. Don't include function in
7141 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7143 * signals.c: Moved to...
7144 * signals/signals.c: Here.
7145 * Makefile (signals.o): Update.
7147 2002-03-26 Jeff Law (law@redhat.com)
7149 * somread.c (som_symtab_read): Remove some commented out code and
7150 updated related comments. Do not set the minimal symbol table to
7151 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7152 in a dynamic executable.
7153 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7154 where we are unable to find the minimal symbol for the given
7157 2002-03-25 Jeff Law (law@redhat.com)
7159 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7161 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7163 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7165 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7167 * command.h: Update copyright.
7168 (struct cmd_list_element): Replace definition with opaque
7170 (enum cmd_types): Document that it will eventually be moved to
7172 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7173 (MALLOCED_REPLACEMENT): Delete macro.
7174 * Makefile.in (cli_decode_h): Add $(command_h).
7175 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7176 * top.c: Include "cli/cli-decode.h".
7177 * completer.c: Include "cli/cli-decode.h".
7178 * maint.c: Include "cli/cli-decode.h".
7179 * cli/cli-decode.h: Include "command.h".
7180 (enum command_class): Delete.
7181 (enum cmd_types): Comment out.
7182 (enum cmd_auto_boolean): Delete.
7183 (enum var_types): Delete.
7185 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7187 * cli/cli-decode.c: Include "gdb_assert.h".
7188 (add_set_or_show_cmd): New static function.
7189 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7190 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7191 all fields, such as func, from the set command.
7193 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7195 * MAINTAINERS (sh-elf): Change warning flag to -w.
7197 2002-03-23 Andrew Cagney <cagney@redhat.com>
7199 * defs.h (error): Add printf format attribute.
7200 * thread-db.c (thread_from_lwp): Fix error format string.
7201 * stack.c (parse_frame_specification): Ditto.
7202 * cli/cli-decode.c (undef_cmd_error): Ditto.
7203 * scm-lang.c (scm_lookup_name): Ditto.
7204 * tracepoint.c (trace_error): Ditto.
7205 * remote-utils.c (usage): Ditto.
7206 * remote.c (compare_sections_command): Ditto.
7209 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7211 * gdbtypes.c (append_composite_type_field): New function.
7212 (init_composite_type): New function.
7213 * gdbtypes.h (append_composite_type_field): Declare.
7214 (init_composite_type): Ditto.
7216 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7218 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7220 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7221 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7222 structure returning convention for SYSV ABI case, but not
7223 for GNU/Linux, FreeBSD, or NetBSD.
7225 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7227 * symtab.h (lookup_block_symbol): Add mangled_name argument
7230 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7231 with new mangled_name argument.
7232 * linespec.c (decode_line_1): Likewise.
7233 * valops (value_of_this): Likewise.
7234 * symtab.c (lookup_transparent_type): Likewise.
7235 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7236 (lookup_symbol): If we are given a mangled name, pass it down
7237 to lookup_symbol_aux.
7238 (lookup_block_symbol): If we are given a mangled name to check
7239 against, only return symbols which match it.
7241 2002-03-22 Christopher Faylor <cgf@redhat.com>
7243 * win32-nat.c (child_create_inferior): Check for proper shell to use
7244 here, in case the user changes it on the fly.
7245 (_initialize_inftarg): Remove shell path considerations.
7247 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7249 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7250 for gdbarch_max_register_raw_size and max_register_virtual_size.
7251 Adjust copyright year.
7253 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7255 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7256 in a function to cover the entire beginning of the function
7257 as well if it does not already.
7259 2002-03-21 Tom Rix <trix@redhat.com>
7261 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7262 (rs6000_ptrace64): Renamed from ptrace64.
7264 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7266 * gdbserver/remote-utils.c (remote_open): Don't call
7267 getprotobyname, we're all using TCP here so just use
7269 * gdbserver/gdbreplay.c (remote_open): Ditto.
7271 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7273 * regcache.c (_initialize_regcache): No need to call
7274 build_regcache() at this time; it gets called whenever
7275 the gdbarch changes.
7277 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7279 * sparc-nat.c: Include sys/param.h where possible.
7281 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7284 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7285 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7286 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7288 * stabsread.c (rs6000_builtin_type): Likewise.
7289 (read_sun_floating_type): Likewise.
7291 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7293 * stabsread.c (read_member_functions): Remove skip code for duplicate
7294 constructor/destructor methods. Use standard parsing for these
7295 methods and just do not chain them to the list of methods after
7298 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7300 * coffread.c: Remove redundant static declarations. Replace
7301 occurrences of `PTR' with `void *'.
7302 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7303 * top.h (quit_cover): Likewise.
7304 * defs.h (catch_errors): Likewise.
7306 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7308 * defs.h (XMALLOC): Define.
7309 * gdb-events.sh (XMALLOC): Delete macro.
7310 * gdb-events.c, gdb-events.h: Regenerate.
7311 * gdbarch.sh (XMALLOC): Delete macro.
7312 * gdbarch.c: Regenerate.
7313 * serial.c (XMALLOC): Delete macro.
7314 * ui-file.c (XMALLOC): Ditto.
7315 * ser-unix.h (XMALLOC): Ditto.
7316 * sh-tdep.c (XMALLOC): Ditto.
7317 * ui-out.c (XMALLOC): Ditto.
7318 * utils.c (XMALLOC): Ditto.
7319 * i386-tdep.c (XMALLOC): Ditto.
7320 * gdb-events.c (XMALLOC): Ditto.
7321 * d10v-tdep.c (XMALLOC): Ditto.
7322 * cli-out.c (XMALLOC): Ditto.
7324 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7325 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7326 * ui-file.c, ui-out.c: Ditto.
7328 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7330 * command.h (struct cmd_list_element): Add field context.
7331 (set_cmd_context, get_cmd_context): Declare.
7332 * cli/cli-decode.h: Ditto.
7333 * cli/cli-decode.c (get_cmd_context): New function.
7334 (set_cmd_context): New function.
7335 (add_cmd): Initialize context.
7336 Part of fixing PR gdb/145 and PR gdb/146.
7338 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7340 * cli/cli-decode.c (cmd_type): New function.
7341 * command.h (cmd_type): Declare.
7342 * infrun.c (set_schedlock_func): Call function cmd_type.
7343 * kod.c (kod_set_os): Call cmd_type.
7344 * cris-tdep.c (cris_version_update): Use function cmd_type.
7345 (cris_mode_update, cris_abi_update): Ditto.
7347 * command.h: (execute_cmd_post_hook): Declare.
7348 (execute_cmd_pre_hook): Declare.
7349 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7350 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7351 functions. Execute pre/post hook while ensuring that afterwords
7353 * top.c (execute_command): Use execute_cmd_post_hook, and
7354 execute_cmd_pre_hook to execute pre/post commands.
7355 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7357 (hook_stop_stub): Call execute_cmd_pre_hook.
7359 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7361 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7362 set'' and this leads to a core dump. Move xstrdup of
7363 operating_system to after check that it is not NULL.
7365 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7367 * kod.c (kod_set_os): Remove unnecessary check that
7368 ``command->type'' is set_cmd.
7370 * valprint.c (set_input_radix): Use input_radix.
7371 (set_output_radix): Use output_radix.
7372 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7375 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7377 * value.h (struct value): Delete field ``substring_addr''. Change
7378 aligner fields to force_doublest_align, force_longest_align,
7379 force_core_addr_align and force_pointer_aligh.
7381 * value.h (struct value): Fix typo in above change.
7383 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7385 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7386 to fix internal_error from ``maintenance print architecture''.
7388 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7390 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7391 for gcc versions after gcc-2.8.1.
7393 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7395 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7396 for method resolution. Restore adjustment of ``this'' pointer after
7397 calling value_struct_elt, which was accidentally removed during the
7400 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7402 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7404 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7406 * value.h (value_of_register): Update.
7408 2002-03-14 Richard Henderson <rth@redhat.com>
7410 * configure.in: Detect declaration for canonicalize_file_name.
7411 * utils.c (canonicalize_file_name): Declare, if needed.
7412 (gdb_realpath): Prefer realpath if available and usable.
7413 * config.in, configure: Rebuild.
7415 2002-03-14 Richard Henderson <rth@redhat.com>
7417 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7418 a constant array bound.
7420 * MAINTAINERS: Add myself to write-after-approval.
7422 2002-03-14 Michael Snyder <msnyder@redhat.com>
7424 * symfile.c (syms_from_objfile): Return immediately if no syms.
7425 (symbol_file_add): Return immediately if no syms.
7426 (find_sym_fns): Return immediately if no syms.
7428 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7430 * gdbserver/remote-util.c (remote_open): Print remote-side's
7431 IP address when remote debugging over the network.
7433 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7435 * config/sparc/fbsd.mh: Fix copyright.
7436 * config/sparc/fbsd.mt: Likewise.
7438 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7440 * MAINTAINERS: Fix typo in name of gdb warnings option.
7441 (x86-64): Fix formating so that this can be parsed by awk.
7443 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7445 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7446 * defs.h: Include "gdb/signals.h".
7447 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7449 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7451 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7452 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7455 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7456 Don Howard <dhoward@redhat.com>
7458 * mips-tdep.c (ST0_FR): Define.
7459 (mips2_fp_compat): New function, temporarily disabled.
7460 (mips_read_fp_register_single): New function.
7461 (mips_read_fp_register_double): New function.
7462 (mips_print_register): Use them.
7463 (do_fp_register_row): Likewise.
7465 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7467 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7470 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7472 * stabsread.c (read_member_functions): Fix is_stub test for
7473 static member functions, improve comment.
7475 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7477 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7478 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7479 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7480 commands that set boolean values.
7481 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7482 (arm_rdi_resume): Always initialize PC.
7483 (arm_rdi_open): Don't use rslt as a boolean.
7484 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7485 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7486 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7487 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7489 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7491 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7492 * configure: Rebuilt.
7494 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7496 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7497 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7499 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7501 * cli/cli-decode.c (set_cmd_completer): New function.
7502 * command.h (set_cmd_completer): Declare.
7503 * cli/cli-decode.h (set_cmd_completer): Ditto.
7505 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7506 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7507 * win32-nat.c (_initialize_inftarg): Ditto.
7508 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7509 * proc-api.c (_initialize_proc_api): Ditto.
7510 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7511 * source.c (_initialize_source): Ditto.
7512 * exec.c (_initialize_exec): Ditto.
7513 * solib.c (_initialize_solib): Ditto.
7514 * top.c (init_main): Ditto.
7515 * tracepoint.c (_initialize_tracepoint): Ditto.
7516 * symfile.c (_initialize_symfile): Ditto.
7517 * printcmd.c (_initialize_printcmd): Ditto.
7518 * infcmd.c (_initialize_infcmd): Ditto.
7519 * corefile.c (_initialize_core): Ditto.
7521 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7523 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7525 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7527 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7529 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7531 * NEWS: Update headings, 5.2 has branched.
7533 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7535 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7536 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7537 (register_addr, REGISTER_RAW_SIZE): Likewise.
7538 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7539 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7541 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7543 * MAINTAINERS (x86-64): Add myself.
7544 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7545 changed value_ptr -> struct value *
7547 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7549 * configure.host (sparc64-*-freebsd): Add.
7550 * configure.tgt: Likewise.
7551 * config/sparc/fbsd.mh: New file.
7552 * config/sparc/fbsd.mt: Likewise.
7553 * config/sparc/nm-fbsd.h: Likewise.
7554 * config/sparc/tm-fbsd.h: Likewise.
7556 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7558 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7559 regformats/reg-s390x.dat.
7561 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7563 * utils.c: Add FIXME explaining true/false problem.
7565 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7567 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7569 2002-02-28 Michael Chastain <mec@shout.net>
7571 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7573 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7575 * gdbserver/linux-s390-low.c: New file.
7576 * regformats/reg-s390.dat: New file.
7577 * regformats/reg-s390x.dat: New file.
7578 * gdbserver/configure.srv: Add S/390.
7579 * gdbserver/Makefile.in: Add S/390.
7580 * configure.tgt: Enable gdbserver for S/390.
7582 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7584 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7585 first line of the doc string for "info dos", except at the end of
7586 the sentence, since the short help stops at the first period.
7588 2002-02-28 Jason Merrill <jason@redhat.com>
7590 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7592 2002-02-27 Fred Fish <fnf@redhat.com>
7594 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7595 comment (dumy -> dummy).
7597 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7599 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7601 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7603 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7605 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7607 * gdbserver/acconfig.h: New file.
7608 * gdbserver/i387-fp.c: New file.
7609 * gdbserver/i387-fp.h: New file.
7610 * gdbserver/linux-x86-64.c: New file.
7611 * regformats/reg-x86-64.dat: New file.
7612 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7613 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7614 * gdbserver/configure.in: Add support for regsets.
7615 * gdbserver/config.in: Regenerate.
7616 * gdbserver/configure: Regenerate.
7617 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7618 * gdbserver/linux-low.h: New file.
7619 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7621 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7622 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7623 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7624 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7625 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7626 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7627 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7628 "i387-fp.h". Add PTRACE_GETREGS and friends.
7629 * gdbserver/regcache.c (supply_register): New function.
7630 (supply_register_by_name): New function.
7631 (collect_register): New function.
7632 (collect_register_by_name): New function.
7634 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7636 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7637 (config.status): Add configure.srv dependency.
7638 (server_h): Add config.h dependency.
7640 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7642 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7643 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7644 * gdbserver/configure.srv: Change i386-*-linux* to use
7647 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7649 * x86-64-tdep.c: Re-indent. Update copyright date.
7651 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7653 From Michal Ludvig <mludvig@suse.cz>:
7654 * x86-64-tdep.c (value.h): Delete.
7655 (gdb_assert.h): Include.
7656 (x86_64_register_convert_to_virtual,
7657 x86_64_register_convert_to_raw ): Add check which lets only
7658 floating-point values to be converted.
7659 (value_push): Delete.
7660 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7661 (i386_gdbarch_init): Number of register_bytes fixed.
7663 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7665 * MAINTAINERS: Add x86-64 target.
7667 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7669 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7670 * osfsolib.c (solib_map_sections): Ditto.
7671 * irix5-nat.c (solib_map_sections): Ditto.
7672 * corelow.c (gdb_check_format): Ditto.
7673 * symfile.c (symfile_bfd_open): Ditto.
7674 * solib.c (solib_map_sections): Ditto.
7677 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7679 * remote.c (_initialize_remote): By default, disable ``e'' and
7680 ``E'' step out-of-range packets.
7682 2002-02-26 Andreas Schwab <schwab@suse.de>
7684 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7685 m68k_linux_frame_saved_pc.
7686 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7688 (SIGCONTEXT_PC_OFFSET): Remove.
7689 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7690 m68k_linux_sigtramp_saved_pc): New functions.
7691 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7692 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7693 (UCONTEXT_PC_OFFSET): Define.
7694 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7695 non-RT and RT signal trampolines.
7697 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7699 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7700 (TARGET_NBPG, STACK_END_ADDR): Delete
7701 (VARIABLES_INSIDE_BLOCK): Delete.
7703 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7705 * utils.c (perror_with_name): Make string parameter constant.
7706 (print_sys_errmsg): Ditto.
7708 * defs.h (perror_with_name): Update.
7709 (print_sys_errmsg): Update.
7712 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7714 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7715 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7717 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7719 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7720 if it already matches the current architecture from the exec file.
7721 Include arch-utils.h for gdbarch_info_init prototype.
7722 * Makefile.in (rs6000-nat.o): Update dependencies.
7724 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7726 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7727 list of exported variables.
7729 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7731 * gdbserver/configure.srv: New file.
7732 * gdbserver/configure.in: Use configure.srv instead
7733 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7735 * gdbserver/configure: Regenerated.
7736 * gdbserver/terminal.h: New file.
7737 * gdbserver/Makefile.in: Update for configure changes. Remove
7738 more unneeded include paths.
7740 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7742 From wiz at danbala:
7743 * config/sparc/tm-sp64.h: Fix grammar and typos.
7746 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7748 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7749 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7750 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7751 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7752 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7753 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7754 * s390-tdep.c: Ditto.
7755 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7756 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7757 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7758 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7759 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7760 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7761 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7762 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7763 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7764 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7767 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7769 * lin-thread.c: Delete file.
7770 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7771 to gdb_proc_service.h.
7772 * configure: Re-generate.
7774 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7775 * serial.c (serial_open): Delete check for "ocd".
7778 * Makefile.in (linux-thread.o): Delete target.
7779 * linux-thread.c: Delete file.
7781 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7782 renamed SH files to be consistent.
7784 * symtab.c (sort_search_symbols): Use xfree.
7786 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7788 * arm-linux-tdep.c (arm_linux_init_abi): Register
7789 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7790 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7791 definition with undef, since we don't want the sysvr4 definition.
7792 (SKIP_TRAMPOLINE_CODE): Likewise.
7794 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7796 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7798 * configure.in: (AC_CHECK_FUNCS) Added test for
7799 canonicalize_file_name Regenerated.
7800 * config.in, configure: Regenerated.
7801 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7802 defined use canonicalize_file_name.
7804 2002-02-23 Michael Chastain <mec@shout.net>
7806 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7808 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7810 * README: Remove references to cygnus.com.
7811 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7812 dot com'' form. Remove references to cygnus.com and sourceware.
7814 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7816 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7817 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7818 1003.1-2001 no longer allows "head -1".
7819 * gdb/Makefile.in (version.c): Likewise.
7820 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7821 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7822 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7824 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7826 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7827 * command.h (cmd_cfunc_eq): Declare.
7828 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7830 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7831 ``struct cmd_list_element *''.
7832 * cli/cli-cmds.c (is_complete_command): Update. Use
7834 * top.c (execute_command): Pass the command to
7835 is_complete_command.
7836 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7838 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7840 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7841 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7842 architecture defines.
7843 * s390-tdep.c (s390_gdbarch_init): Likewise.
7845 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7847 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7848 (arm_linux_push_arguments): Likewise.
7849 (arm_linux_init_abi): Register them. Also register linux-specific
7851 (find_minsym_and_objfile): Use strcmp, not STREQ.
7852 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7853 (arm_linux_call_dummy_words): Delete declaration.
7854 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7855 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7857 (LOWEST_PC): Delete.
7859 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7861 * maint.c (print_section_info): Do not prepend `0x' to filepos
7862 output, it will be handled by local_hex_string_custom.
7864 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7866 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7867 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7868 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7870 2002-02-22 Jim Blandy <jimb@redhat.com>
7872 Indicate that the bcache functions don't change the strings
7874 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7875 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7877 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7879 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7881 2002-02-21 Christopher Faylor <cgf@redhat.com>
7883 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7884 find the complete path to a loaded DLL.
7886 2002-02-21 Fred Fish <fnf@redhat.com>
7888 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7889 that marks the end of the range of a function, enter a line number
7890 entry that has a line number of zero and a PC offset that matches
7891 the end of the function. This starts a range of PC's for which no
7892 line number information is known.
7893 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7894 PC's for which no line number info is found (line number is zero)
7895 then we didn't find any valid line information.
7896 * symtab.h: Document use of zero line number entry.
7898 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7900 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7901 (have_ptrace_getvrregs): Define for run time checks.
7902 (gdb_vrregset_t): New type for Altivec register handling.
7903 (fetch_register, store_register): Fetch/store altivec register
7905 (fetch_altivec_register, store_altivec_register): New functions.
7906 (supply_vrregset, fill_vrregset): New functions.
7907 (fetch_altivec_registers, store_altivec_registers): New functions.
7908 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7911 2002-02-21 Jiri Smid <smid@suse.cz>
7913 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7915 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7917 * Makefile.in (armnbsd-nat.o): Update dependencies.
7918 * armnbsd-nat.c (supply_gregset): New function. Common code to
7919 supply the integer register set.
7920 (supply_fparegset): New function. Similar for FPA registers.
7921 (fetch_regs, fetch_fp_regs): Use them.
7922 (fetch_core_registers): Likewise.
7923 (fetch_elfcore_registers): New function.
7924 (arm_netbsd_elfcore_fns): New core-file type specification.
7925 (_initialize_arm_netbsd_nat): Register it.
7927 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7929 * armnbsd-nat.c: Include gdbcore.h.
7930 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7931 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7932 'void' to declaration, to shut up ARI.
7933 (fetch_core_registers): Make static. Rewrite using supply_register.
7934 (arm_netbsd_core_fns): New core-file type specification.
7935 (_initialize_arm_netbsd_nat): New function.
7937 2002-02-21 Christopher Faylor <cgf@redhat.com>
7939 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7942 2002-02-20 Christopher Faylor <cgf@redhat.com>
7944 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7947 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7949 * jv-exp.y (parse_number): Change type of implicit longs
7950 to builtin_type_uint64.
7952 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7954 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7955 to be an integer instead of a `union wait'.
7957 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7959 * mips-linux-nat.c: Call the operating system GNU/Linux.
7960 * mips-linux-tdep.c: Likewise.
7961 * mips-tdep.c: Likewise.
7963 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7966 * jv-exp.y (parse_number): Handle 64-bit integers.
7968 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7970 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7971 AC_STDC_HEADERS to AC_HEADER_STDC.
7972 * gdbserver/configure: Regenerated.
7974 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7976 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7978 * sparc-tdep.c (get_longjmp_target): Likewise.
7980 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7982 * News: Add news about ARM and Multi-arch. Mention the new target
7985 2002-02-19 Jim Blandy <jimb@redhat.com>
7987 * stabsread.c (error_type_complaint): Improve error message.
7989 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7991 * gdbserver/README: Update documentation.
7992 * gdbserver/configure.in: Update configury to match documentation.
7993 * gdbserver/Makefile.in: Likewise.
7994 * gdbserver/configure: Regenerated.
7995 * gdbserver/aclocal.m4: New file, generated by aclocal.
7996 * gdbserver/config.in: New file, generated by autoheader.
7998 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8000 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8003 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8005 * arm-tdep.h (enum arm_float_model): New enum.
8006 (struct gdbarch_tdep): Add fp_model.
8007 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8008 up floating-point conversions until we know the floating-point model
8009 in use by the inferior. Don't complain about being unable to
8010 determine the ABI of the inferior when we don't have one.
8011 (arm_extract_return_value): Support different floating-point models.
8012 (arm_store_return_value): Likewise.
8013 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8015 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8017 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8019 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8020 of ``current_gdbarch''.
8022 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8024 * armnbsd-nat.c : ANSIfy all function declarations.
8025 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8026 (fetch_inferior_registers): Re-implement in terms of above.
8027 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8028 (store_inferior_registers): Re-implement in terms of above.
8030 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8032 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8034 * arm-linux-tdep.c: Likewise.
8035 * config/arm/tm-linux.h: Likewise.
8037 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8039 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8040 * config/arm/nbsd.mt (TM_FILE): Delete.
8041 * config/arm/tm-nbsd.h: Delete.
8043 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8045 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8046 Initialize CALL_DUMMY_LENGTH.
8048 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8050 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8052 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8053 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8054 defines one thing and that is incorrect for this port.
8055 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8057 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8059 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8061 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8063 * win32-nat.c (display_selector): New function. Displays information
8064 about the information returned by GetThreadSelectorEntry API function.
8065 (display_selectors): New function. Displays the infomation of
8066 the selector given as argument, or of CS, DS ans FS selectors
8067 if no argument is given.
8068 ( _initialize_inftarg): Add "w32" as info prefix command.
8069 Add "info w32 selector" as command calling display_selectors.
8071 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8073 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8074 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8077 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8079 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8081 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8083 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8084 (arm_fix_call_dummy): Call it.
8085 (arm_call_dummy_breakpoint_offset): Delete.
8086 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8087 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8089 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8091 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8092 Default to func_frame_chain_valid.
8093 * gdbarch.h, gdbarch.c: Re-generate.
8094 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8096 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8098 * ppc-linux-nat.c: Update copyright.
8099 (fetch_register, store_register): Add tid parameter, don't compute
8101 (fetch_ppc_registers, store_ppc_registers): Add tid
8102 parameter. Pass it along to callees.
8103 (fetch_inferior_registers, store_inferior_registers): Compute tid
8104 here, and pass it to calleed functions.
8105 (fill_gregset, supply_fpregset): Clean up formatting.
8107 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8109 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8110 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8112 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8114 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8115 * gdbarch.c gdbarch.h: Regenerate.
8116 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8118 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8119 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8120 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8122 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8123 * arm-tdep.c (arm_get_longjmp_target): New function.
8124 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8125 this to a positive value register arm_get_longjmp_target as the
8127 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8128 (arm_linux_init_abi): Set up longjmp description in tdep.
8129 * armnbsd-nat.c (get_longjmp_target): Delete.
8130 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8131 description in tdep.
8132 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8133 (get_longjmp_target): Delete declaration.
8134 (GET_LONGJMP_TARGET): Delete.
8135 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8136 (GET_LONGJMP_TARGET): Delete.
8138 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8140 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8141 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8142 of ``current_gdbarch''.
8144 2002-02-17 Tom Tromey <tromey@redhat.com>
8146 * cli/cli-cmds.c (compare_strings): New function.
8147 (complete_command): Only print each unique item once.
8148 * completer.h (complete_line): Declare.
8149 * completer.c (complete_line): New function.
8150 (line_completion_function): Use it.
8152 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8154 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8155 * gdbarch.h, gdbarch.c: Re-generate.
8157 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8159 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8161 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8163 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8164 * valops.c (value_arg_coerce): Don't take the address of a reference
8165 to convert an argument to a reference.
8167 2002-02-15 Christopher Faylor <cgf@redhat.com>
8169 * win32-nat.c (get_image_name): New function.
8170 (handle_load_dll): Use get_image_name function.
8171 (get_child_debug_event): Avoid registering debug events until possibly
8172 execed process is started.
8173 (child_create_inferior): Allow invocation via shell so that command
8174 line redirection, etc. works ok.
8175 (_initialize_inftarg): Add new command: "set shell" to control whether
8176 a shell is used to start a process.
8178 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8180 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8181 instead of find_register_by_number.
8182 (cannot_store_register): Likewise.
8184 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8186 * dwarf2read.c: Replace fprintf (stderr, ...) by
8187 fprintf_unfiltered (gdb_stderr, ...).
8189 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8191 * gdbserver/gdbserver.1: Document --attach.
8193 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8195 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8197 * arm-tdep.c (arm_default_arm_le_breakpoint)
8198 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8199 (arm_default_thumb_be_breakpoint): New. Initialize them from
8200 traditional breakpoint defines.
8201 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8202 (arm_gdbarch_init): Initialize new breakpoint variables.
8203 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8204 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8205 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8206 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8208 (arm_netbsd_init_abi_common): ... here; new function.
8209 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8210 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8211 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8212 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8214 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8216 * arm-tdep.h (enum arm_abi): New enum.
8217 (struct gdbarch_tdep): New structure.
8218 (LOWEST_PC): Provide a default.
8219 (arm_gdbarch_register_os_abi): Declare new function.
8220 * arm-tdep.c (arm_abi_names): New array.
8221 (process_note_abi_tag_sections): New function.
8222 (get_elfosabi): New function.
8223 (arm_gdbarch_register_os_abi): New function.
8224 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8225 support for that ABI has been built in, then call the appropriate
8226 configuration routine. Use gdbarch_num_regs() to get the number
8228 (arm_dump_tdep): New function.
8229 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8230 place-holder functions.
8231 (_initialize_arm_tdep): Register them.
8232 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8234 * armnbsd-tdep.c: New file.
8235 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8236 * config/arm/nbsd.mt (TDEPFILES): Add it.
8237 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8239 * armnbsd-nat.c: Include regcache.h.
8240 * Makefile.in (armnbsd-nat.o): Update dependency list.
8242 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8244 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8246 * gdbserver/Makefile.in: Fix typos in target rules.
8248 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8250 Fix part of PR gdb/267.
8251 * linespec.c (find_methods): Handle constructors specially for now.
8253 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8255 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8257 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8258 standard_coerce_float_to_double().
8260 2002-02-14 Christopher Faylor <cgf@redhat.com>
8262 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8265 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8267 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8268 find_variant_by_name, because it confuses the multiarch
8269 framework. Return NULL if there isn't an architecture with the
8270 user supplied name, instead of forcing a different one without
8271 recording the change with the multiarch machinery.
8272 (find_variant_by_name): Delete.
8274 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8276 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8277 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8279 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8281 * stack.c (print_frame_info_base): When calling
8282 print_frame_info_listing_hook, set current_source_symtab.
8284 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8286 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8287 and remove unused $(INCLUDE_DIR).
8288 Add regcache.c to OBS.
8289 Add generated register protocol files to clean target.
8290 Update dependencies for new objects, obsolete old target code.
8292 * gdbserver/linux-low.c: Remove all platform-specific code to
8293 new files. Remove various dead code. Update to use regcache
8295 * gdbserver/remote-utils.c (fromhex): Add return statement
8297 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8299 (input_interrupt): Add integer parameter to match prototype
8300 of a signal handler.
8301 (outreg): Use register_data ().
8302 (prepare_resume_reply): Use gdbserver_expedite_regs.
8303 * gdbserver/server.c (main): Dynamically allocate own_buf because
8304 PBUFSIZ is no longer constant. Use registers_to_string () and
8305 registers_from_string ().
8306 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8307 for error (), fatal (), and warning (). Update definition of
8308 PBUFSIZ to use regcache functionality. Add include guard.
8309 * gdbserver/utils.c (fatal): Add missing ``const''.
8310 (warning): New function.
8312 * regformats/regdat.sh: Include "regcache.h" in generated files.
8313 Provide init_registers () function.
8314 * regformats/regdef.h: Add prototype for set_register_cache ().
8317 * gdbserver/linux-arm-low.c: New file.
8318 * gdbserver/linux-i386-low.c: New file.
8319 * gdbserver/linux-ia64-low.c: New file.
8320 * gdbserver/linux-m68k-low.c: New file.
8321 * gdbserver/linux-mips-low.c: New file.
8322 * gdbserver/linux-ppc-low.c: New file.
8323 * gdbserver/linux-sh-low.c: New file.
8325 * gdbserver/regcache.c: New file.
8326 * gdbserver/regcache.h: New file.
8328 * gdbserver/low-linux.c: Removed obsolete file.
8330 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8332 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8333 * config/i386/linux.mt: Likewise.
8334 * config/ia64/linux.mt: Likewise.
8335 * config/m68k/linux.mh: Likewise.
8336 * config/powerpc/linux.mh: Likewise.
8337 * config/mips/linux.mt: Likewise.
8339 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8341 * config/i386/i386lynx.mh: Mark gdbserver variables
8342 as (currently) obsolete for this target.
8343 * config/i386/nbsd.mt: Likewise.
8344 * config/i386/nbsdelf.mt: Likewise.
8345 * config/m32r/m32r.mt: Likewise.
8346 * config/m68k/m68klynx.mh: Likewise.
8347 * config/m68k/nbsd.mt: Likewise.
8348 * config/m68k/sun3os4.mh: Likewise.
8349 * config/mips/vr5000.mt: Likewise.
8350 * config/ns32k/nbsd.mt: Likewise.
8351 * config/pa/hppabsd.mh: Likewise.
8352 * config/pa/hppaosf.mh: Likewise.
8353 * config/powerpc/nbsd.mt: Likewise.
8354 * config/rs6000/rs6000lynx.mh: Likewise.
8355 * config/s390/s390.mt: Likewise.
8356 * config/s390/s390x.mt: Likewise.
8357 * config/sparc/sparclynx.mh: Likewise.
8358 * config/sparc/sun4os4.mh: Likewise.
8359 * config/i386/x86-64linux.mt: Likewise.
8360 * config/sparc/linux.mh: Likewise.
8362 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8364 * configure.tgt: Configure gdbserver only for known working
8365 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8366 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8367 SUBDIRS if it is configured. Update comment for ${nativefile}.
8368 * configure: Regenerated.
8370 2002-02-13 Michael Snyder <msnyder@redhat.com>
8372 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8374 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8375 (default_gcore_mach): Just return 0, work around a problem in bfd.
8376 (default_gcore_target): OK to return NULL if exec_bfd is null.
8377 (make_mem_sec): Use a cast, avoid a warning.
8379 * procfs.c (find_memory_regions_callback): Use a cast instead of
8380 calling host_pointer_to_address (which complains if
8381 sizeof (host pointer) != sizeof (target pointer)).
8382 (procfs_make_note_section): Avoid overflow in psargs string.
8384 * procfs.c (procfs_make_note_section): Make the default
8385 implementation return an error.
8387 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8389 * procfs.c (procfs_make_note_section): Provide a default definition
8390 (for alpha-dec-osf4.0f). Fix typos.
8392 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8394 * linux-proc.c: Add include of regcache.h.
8395 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8397 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8399 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8400 * memattr.c (create_mem_region): Disallow useless empty region.
8401 Regions are half-open intervals, so allow [A..B) [B..C) as
8404 2002-02-13 Michael Chastain <mec@shout.net>
8406 * defs.h: Kill CONST_PTR.
8407 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8408 * c-lang.c (c_builtin_types): Likewise.
8409 * ch-lang.c (ch_builtin_types): Likewise.
8410 * f-lang.c (f_builtin_types): Likewise.
8411 * language.c (unknown_builtin_types): Likewise.
8412 * m2-lang.c (m2_builtin_types): Likewise.
8413 * p-lang.c (pascal_builtin_types): Likewise.
8414 * scm-lang.c (c_builtin_types): Likewise.
8416 2002-02-13 Keith Seitz <keiths@redhat.com>
8418 * arm-tdep.h (arm_get_next_pc): Add declaration.
8420 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8422 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8423 with other related struct-returning functions.
8424 (arm_extract_struct_value_address): New function.
8425 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8426 initialize float_format, double_format and long_double_format as
8427 appropriate to the endianness of the target.
8428 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8429 (arm_use_struct_convention): Delete declaration.
8430 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8432 2002-02-13 Keith Seitz <keiths@redhat.com>
8434 * defs.h (core_addr_to_string_nz): New function.
8436 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8438 Apply missing bits of 2002-01-15 patch.
8439 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8440 (fill_fpregset): Use i387_fill_fsave.
8442 2002-02-12 Keith Seitz <keiths@redhat.com>
8444 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8445 (core_addr_to_string_nz): New function.
8447 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8449 * arm-linux-nat.c: Really include arm-tdep.h.
8450 * config/arm/tm-linux.h (struct type, struct value): Declare.
8452 2002-02-11 Michael Snyder <msnyder@redhat.com>
8454 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8455 (gcore section): Ifdef for Solaris and Unixware only.
8456 (procfs_do_thread_registers): Unixware needs one lwpstatus
8457 per thread (not one prstatus or pstatus).
8458 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8459 not over all gdb threads. For unixware, call elfcore_write_pstatus
8460 once before iterating over threads.
8462 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8464 * arm-tdep.h: New file.
8465 * arm-tdep.c: Include arm-tdep.h.
8466 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8467 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8468 (arm_print_float_info, arm_register_type, convert_to_extended)
8469 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8470 (arm_extract_return_value, arm_register_name): Make static.
8471 (arm_software_single_step): Similarly. Fix types in declaration.
8472 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8473 (arm_store_return_value, arm_store_struct_return): New functions.
8474 (arm_gdbarch_init): Register the above functions. Also register
8475 call_dummy_start_offset, sizeof_call_dummy_words,
8476 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8477 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8478 max_register_virtual_size, register_size. Set up
8479 prologue_cache.saved_regs here, rather than ...
8480 (_initialize_arm_tdep): ... here.
8481 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8483 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8484 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8485 (arm_print_float_info, arm_register_type, convert_to_extended)
8486 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8487 (arm_extract_return_value, arm_register_name): Delete declarations.
8488 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8489 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8490 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8491 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8492 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8493 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8494 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8495 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8496 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8497 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8498 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8499 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8501 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8502 * remote-rdi.c remote-rdp.c: Likewise.
8503 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8504 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8505 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8508 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8509 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8510 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8511 from non-ARM_ prefixed definitions.
8512 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8514 * remote-rdi.c remote-rdp.c: Likewise.
8515 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8517 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8519 * arm-tdep.c (arm_frameless_function_invocation)
8520 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8521 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8522 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8523 (arm_pop_frame, arm_get_next_pc): Make static.
8524 (arm_gdbarch_init): Register above in gdbarch structure.
8525 (arm_read_fp): Renamed from arm_target_read_fp.
8526 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8527 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8528 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8529 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8530 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8531 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8532 (arm_pc_is_thumb_dummy): Delete declarations.
8533 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8534 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8535 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8536 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8538 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8540 * symtab.c (compare_search_syms): New function.
8541 (sort_search_symbols): New function.
8542 (search_symbols): Sort symbols after searching rather than
8545 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8547 * NEWS: Linux -> GNU/Linux.
8549 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8551 * gdbarch.sh: For for level one methods, disallow a definition
8552 when partially multi-arched. Add comments explaining rationale.
8553 * gdbarch.h: Re-generate.
8555 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8557 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8560 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8562 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8564 * gdbarch.c: Re-generate.
8566 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8568 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8569 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8572 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8574 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8576 (PUSH_ARGUMENTS): Switch to using predefault.
8577 * gdbarch.c: Regenerate.
8579 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8581 * valops.c (PUSH_ARGUMENTS): Delete definition.
8582 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8583 partial. Default to default_push_arguments.
8584 * gdbarch.h, gdbarch.c: Regenerate.
8586 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8588 * defs.h (throw_exception): Rename return_to_top_level. Update
8590 * utils.c (error_stream, internal_verror, quit): Ditto.
8591 * top.c (throw_exception, catcher): Ditto.
8592 * sparclet-rom.c (sparclet_load): Ditto.
8593 * remote.c (interrupt_query, minitelnet): Ditto.
8594 * remote-sds.c (interrupt_query): Ditto.
8595 * remote-mips.c (mips_error, mips_kill): Ditto.
8596 * ocd.c (interrupt_query): Ditto.
8597 * monitor.c (monitor_interrupt_query): Ditto.
8598 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8599 * target.h: Update comment.
8601 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8603 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8605 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8606 default_double_format.
8607 * gdbarch.h, gdbarch.c: Re-generate.
8608 * findvar.c (floatformat_unknown): Delete variable definition.
8609 * doublest.h (floatformat_unknown): Delete variable declaration.
8611 2002-02-09 Jim Blandy <jimb@redhat.com>
8613 * stabsread.c (read_type): Add code to parse Sun's syntax for
8614 prototyped function types.
8616 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8618 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8619 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8621 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8623 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8624 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8625 now _initialize_xcoffsolib gets called again and overrides the
8626 commands from solib.c in a native configuration.
8628 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8630 * doublest.c (store_typed_floating): Don't try to return a value.
8633 2002-02-08 Jim Blandy <jimb@redhat.com>
8635 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8636 is prototyped and has no arguments, print its argument list as
8639 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8641 * MAINTAINERS (write-after-approval): Add myself.
8642 (paper-trail): I've escaped!
8644 2002-02-08 Christopher Faylor <cgf@redhat.com>
8646 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8648 (_initialize_check_for_gdb_ini): Ditto.
8650 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8652 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8653 xaprintf -> xasprintf.
8655 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8657 * win32-nat.c: Remove use of printf and sprintf functions.
8659 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8661 * arm-tdep.c (arm_frame_chain_valid): Make static.
8662 (arm_push_arguments): Likewise.
8663 (arm_gdbarch_init): New function.
8664 (_initialize_arm_tdep): Call it.
8665 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8666 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8667 (FRAME_CHAIN_VALID): Delete.
8668 (arm_frame_chain_valid): Delete declaration.
8669 (PUSH_ARGUMENTS): Delete.
8670 (arm_push_arguments): Delete declaration.
8671 (CALL_DUMMY_P): Delete.
8673 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8674 Corinna Vinschen <vinschen@redhat.com>
8676 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8677 on builtin float types.
8679 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8681 * utils.c: Include <curses.h> before "bfd.h".
8682 * tui/tui-hooks.c: Likewise.
8683 * tui/tui.c: Likewise.
8684 * tui/tuiCommand.c: Likewise.
8685 * tui/tuiData.c: Likewise.
8686 * tui/tuiDataWin.c: Likewise.
8687 * tui/tuiDisassem.c: Likewise.
8688 * tui/tuiGeneralWin.c: Likewise.
8689 * tui/tuiIO.c: Likewise.
8690 * tui/tuiLayout.c: Likewise.
8691 * tui/tuiRegs.c: Likewise.
8692 * tui/tuiSource.c: Likewise.
8693 * tui/tuiSourceWin.c: Likewise.
8694 * tui/tuiStack.c: Likewise.
8695 * tui/tuiWin.c: Likewise.
8697 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8699 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8700 to include space for pseudoregs as well. Update loops accordingly.
8701 (sh_fp_frame_init_saved_regs): Ditto.
8702 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8704 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8706 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8707 Add Richard Earnshaw to Arm maintainers.
8709 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8711 * defs.h (warning_begin): Delete declaration.
8713 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8716 2002-02-07 Michael Snyder <msnyder@redhat.com>
8718 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8719 Logic bug, remove misplaced else.
8721 2002-02-07 Klee Dienes <klee@apple.com>
8723 * fork-inferior.c (fork_inferior): Add '!' to the list of
8724 characters that need to be quoted when building a string for the
8725 shell. Quote '!' specifically with a backslash, since CSH chokes
8726 when trying to evaluate "str!str".
8728 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8730 * rdi-share/host.h: Only provide a typedef for bool if it is not
8733 2002-02-04 Michael Snyder <msnyder@redhat.com>
8735 * breakpoint.h (enum bptype): Add new overlay event bp type.
8736 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8738 * breakpoint.c (create_internal_breakpoint): New function.
8739 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8740 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8741 (create_thread_event_breakpoint): Ditto.
8742 (create_solib_event_breakpoint): Ditto.
8743 (create_overlay_event_breakpoint): New function.
8744 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8745 (update_breakpoints_after_exec): Delete and re-initialize
8746 overlay event breakpoints after an exec. Add FIXME comment
8747 about longjmp breakpoint.
8748 (print_it_typical): Ignore overlay event breakpoints.
8749 (print_one_breakpoint): Ditto.
8751 (bpstat_what): Do not stop for overlay event breakpoints.
8752 (delete_breakpoint): Don't delete overlay event breakpoints.
8753 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8754 (breakpoint_re_set): Re-create overlay event breakpoint.
8756 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8757 (overlay_manual_command): Disable overlay breakpoints.
8758 (overlay_off_command): Disable overlay breakpoints.
8760 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8762 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8763 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8764 to here from config/tm-arm.h.
8765 (coff_sym_is_thumb): Make static.
8766 (arm_elf_make_msymbol_special): New function.
8767 (arm_coff_make_msymbol_special): New function.
8768 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8769 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8770 (coff_sym_is_thumb): Delete declaration.
8771 (arm_elf_make_msymbol_special): Declare.
8772 (arm_coff_make_msymbol_special): Declare.
8773 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8774 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8776 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8778 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8780 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8782 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8783 * gdbarch.c gdbarch.h: Regenerate.
8784 * arch-utils.c (default_print_float_info): New function.
8785 * arch-utils.h (default_print_float_info): Prototype it.
8786 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8787 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8788 (PRINT_FLOAT_INFO): Document it.
8790 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8791 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8792 (PRINT_FLOAT_INFO): Define.
8794 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8796 * win32-nat.c (_initialize_check_for_gdb_ini):
8797 Add typecast to sprintf argument to suppress a warning.
8799 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8801 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8802 to allow easier handling of pass state.
8803 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8804 that gives exception name and address.
8805 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8806 and set last_sig value to ourstatus->value.sig. Some missing
8808 (child_continue): Correctly report continue_status.
8809 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8810 TARGET_SIGNAL_0 (new default value).
8811 (child_resume): consider sig argument passed to decide if
8812 the exception should be passed to debuggee or not.
8814 2002-02-05 Michael Snyder <msnyder@redhat.com>
8816 * regcache.c (fetch_register): Call target_fetch_register
8817 only if we don't call FETCH_PSEUDO_REGISTER.
8818 (store_register): Call target_store_register only if we
8819 don't call STORE_PSEUDO_REGISTER.
8821 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8823 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8824 ELF_MAKE_MSYMBOL_SPECIAL.
8825 * gdbarch.c, gdbarch.h: Regenerate.
8826 * arch-utils.c (default_make_msymbol_special): New function.
8827 * arch-utils.h (default_make_msymbol_special): Export.
8828 * elfread.c (elf_symtab_read): Compile use of
8829 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8831 * coffread.c (coff_symtab_read): Ditto, for
8832 COFF_MAKE_MSYMBOL_SPECIAL.
8834 2002-02-05 Jim Blandy <jimb@redhat.com>
8836 * solib-svr4.c (svr4_truncate_ptr): New function.
8837 (svr4_relocate_section_addresses): Do the address arithmetic with
8838 the appropriate truncation for target addresses, even when
8839 CORE_ADDR is larger than a target address.
8841 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8843 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8846 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8848 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8851 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8853 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8855 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8857 * gdbserver/linux-low.c: Remove unused include files.
8859 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8861 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8862 (read_inferior_memory): Use it.
8863 (write_inferior_memory): Likewise.
8865 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8867 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8868 grubbing through sys_errlist.
8870 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8872 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8874 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8875 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8877 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8879 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8880 (do_sfunc, set_cmd_sfunc): New functions.
8882 * command.h (struct cmd_list_element): Add field func.
8883 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8884 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8885 * cli/cli-decode.h: Ditto.
8887 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8888 (help_all, help_cmd_list): Ditto.
8889 (find_cmd, complete_on_cmdlist): Ditto.
8890 * top.c (execute_command): Ditto.
8892 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8895 * infcmd.c (notice_args_read): Fix function signature.
8897 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8898 * cli/cli-decode.c (add_set_cmd): Ditto.
8899 * utils.c (initialize_utils): Ditto.
8900 * maint.c (_initialize_maint_cmds): Ditto.
8901 * infrun.c (_initialize_infrun): Ditto.
8902 * demangle.c (_initialize_demangler): Ditto.
8903 * remote.c (add_packet_config_cmd): Ditto.
8904 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8905 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8906 * proc-api.c (_initialize_proc_api): Ditto.
8907 * kod.c (_initialize_kod): Ditto.
8908 * valprint.c (_initialize_valprint): Ditto.
8909 * top.c (init_main): Ditto.
8910 * infcmd.c (_initialize_infcmd): Ditto.
8911 * corefile.c (_initialize_core): Ditto.
8912 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8913 * arch-utils.c (initialize_current_architecture): Ditto.
8914 (_initialize_gdbarch_utils): Ditto.
8915 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8917 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8918 * wince.c (_initialize_inftarg): Ditto.
8919 * symfile.c (_initialize_symfile): Ditto.
8920 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8921 * language.c (_initialize_language): Ditto.
8922 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8924 2002-02-04 Michael Snyder <msnyder@redhat.com>
8926 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8928 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8930 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8931 Add rules for building the register data files.
8933 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8935 * regformats/regdat.sh: Add braces to the definition of
8936 expedite_regs_${arch}.
8938 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8940 * regformats/regdef.h (struct reg): Add comment describing the
8941 requirements for offset and size fields.
8943 2002-02-04 Andreas Schwab <schwab@suse.de>
8945 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8946 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8948 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8950 * gdbarch.sh (copyright): Update years in generated header.
8951 (SMASH_TEXT_ADDRESS): Add rule.
8952 * gdbarch.h, gdbarch.c: Re-generate.
8953 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8954 * dbxread.c: Likewise.
8955 * dwarfread.c: Likewise.
8956 * elfread.c: Likewise.
8957 * somread.c: Likewise.
8959 * arm-tdep.c (arm_smash_text_address): New function.
8960 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8962 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8964 Add support for hardware watchpoints on win32 native.
8965 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8966 CONTEXT_DEBUG_REGISTERS.
8967 (dr variable): New variable. Static array containing a local copy
8969 (debug_registers_changed): New variable. Reflects when debug registers
8970 are changed and need to be written to inferior.
8971 (debug_registers_used): New variable. Reflects when any debug register
8972 was set, used when new threads are created.
8973 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8975 (thread_rec): Set dr array if id is the thread of current_event .
8976 (child_continue, child_resume): Change the debug registers for all
8977 threads if debug_registers_changed.
8978 (child_add_thread): Change the debug registers if debug_registers_used.
8979 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8980 Link nm.h to new nm-cygwin.h file.
8981 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8982 of hardware registers.
8984 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8986 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8987 Restore behavour broken by 2002-01-20 Andrew Cagney
8988 <ac131313@redhat.com> IEEE_FLOAT removal.
8990 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8992 * c-valprint.c (c_val_print): Pass a proper valaddr to
8993 cp_print_class_method.
8994 * valops.c (search_struct_method): If there is only one method
8995 and args is NULL, return that method.
8997 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8999 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9000 accessing tag_name directly.
9002 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9004 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9005 of accessing tag_name directly.
9007 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9010 * gdbtypes.c (replace_type): New function.
9011 * gdbtypes.h (replace_type): Add prototype.
9012 * stabsread.c (read_type): Use replace_type.
9014 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9016 * Makefile.in (memattr.o): Add missing dependencies rule.
9018 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9020 * breakpoint.c (break_at_finish_command): Really export.
9021 (break_at_finish_at_depth_command): Ditto.
9022 (tbreak_at_finish_command): Ditto.
9023 * hppa-tdep.c: Include completer.h.
9024 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9025 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9027 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9029 * utils.c (do_write): New function.
9030 (error_stream): Rewrite combining the code from error_begin and
9032 (verror): Rewrite using error_stream.
9033 (error_begin): Delete function.
9035 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9037 * utils.c (error_begin): Make static.
9038 * defs.h (error_begin): Delete declaration.
9040 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9041 (decode_line_1): Use cplusplus_error instead of error_begin,
9042 cplusplus_hint and return_to_top_level.
9043 * coffread.c (coff_symfile_read): Use error instead of error_begin
9044 and return_to_top_level.
9045 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9047 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9049 * language.h (type_error, range_error): Make string parameter
9051 * language.c (warning_pre_print): Delete extern declaration.
9052 * dwarfread.c (warning_pre_print): Ditto.
9053 * language.c (type_error, range_error): Rewrite to use verror and
9054 vwarning instead of warning_begin.
9056 2002-02-01 Michael Snyder <msnyder@redhat.com>
9058 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9059 (set_ignore_count): Move misplaced comment back where it belongs.
9061 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9063 * command.h (NO_FUNCTION): Delete macro.
9064 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9065 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9066 * tracepoint.c (_initialize_tracepoint): Ditto.
9067 * cli/cli-decode.c (add_set_cmd): Ditto.
9068 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9070 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9072 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9073 Update ``this'' pointer when calling virtual functions.
9075 2002-02-01 Michael Snyder <msnyder@redhat.com>
9077 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9078 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9080 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9082 * regformats/reg-arm.dat: New file.
9083 * regformats/reg-i386.dat: New file.
9084 * regformats/reg-ia64.dat: New file.
9085 * regformats/reg-m68k.dat: New file.
9086 * regformats/reg-mips.dat: New file.
9087 * regformats/reg-ppc.dat: New file.
9088 * regformats/reg-sh.dat: New file.
9089 * regformats/regdef.h: New file.
9090 * regformats/regdat.sh: New file.
9092 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9094 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9095 (arm_frame_args_address, arm_frame_locals_address): New functions.
9096 (arm_frame_num_args): New function.
9097 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9098 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9099 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9101 2002-01-31 Michael Snyder <msnyder@redhat.com>
9103 * breakpoint.c (break_at_finish_command): Export.
9104 (break_at_finish_at_depth_command): Export.
9105 (tbreak_at_finish_command): Export.
9106 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9107 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9108 "tbreak" commands, which are HPPA specific.
9110 * printcmd.c (disassemble_command): Remove an ancient
9111 artifact of an old merge.
9113 * symfile.h (enum overlay_debugging_state):
9114 Define enum constant values for overlay mode.
9115 * symfile.c (overlay_debugging): Use enums instead of literals.
9116 (overlay_is_mapped, overlay_auto_command,
9117 overlay_manual_command): Ditto.
9119 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9120 breakpoint_here_p, breakpoint_inserted_here_p,
9121 breakpoint_thread_match, bpstat_stop_status,
9122 describe_other_breakpoints, check_duplicates, clear_command):
9123 Coding standard fixes.
9125 * target.c (target_xfer_memory): Add spaces, coding standard.
9126 (do_xfer_memory): Add missing line to trust-readonly
9127 code: check bfd SEC_READONLY flag for section.
9129 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9131 * PROBLEMS: Fix typo, 5.1->5.1.1.
9133 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9135 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9136 data symbols, since we search based on textlow and texthigh.
9137 (find_pc_sect_symtab): Likewise.
9139 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9141 * defs.h (vwarning): Declare.
9142 * utils.c (vwarning): New function.
9143 (warning): Call vwarning.
9144 (warning_begin): Delete function.
9146 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9147 the warning message.
9148 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9151 2002-01-30 Michael Snyder <msnyder@redhat.com>
9153 * NEWS: Mention "set trust-readonly-sections" command.
9154 Mention generate-core-file command.
9156 2002-01-15 Michael Snyder <msnyder@redhat.com>
9158 * target.c: New command, "set trust-readonly-sections on".
9159 (do_xfer_memory): Honor the suggestion to trust readonly sections
9160 by reading them from the object file instead of from the target.
9161 (initialize_targets): Register command "set trust-readonly-sections".
9163 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9165 * parse.c (target_map_name_to_register): Simplify, search regs and
9166 pseudo-regs using a single loop.
9168 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9170 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9172 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9174 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9175 * config/i386/i386v42mp.mh: Add i387-nat.o .
9176 * i386v4-nat.c: Include i387-nat.h.
9177 (supply_fpregset): Use i387_supply_fsave.
9178 (fill_fpregset): Use i387_fill_fsave.
9180 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9182 * arm-tdep.c (arm_call_dummy_words): Define.
9183 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9184 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9185 (CALL_DUMMY_WORDS): Define.
9186 (arm_call_dummy_words): Declare.
9187 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9188 (arm_linux_call_dummy_words): Declare.
9190 2002-01-30 Andreas Schwab <schwab@suse.de>
9192 * m68klinux-nat.c: Fix last change to use regcache_collect
9193 instead of referencing registers[] directly.
9195 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9197 * parse.c (target_map_name_to_register): Delete code wrapped in
9198 #ifdef REGISTER_NAME_ALIAS_HOOK.
9200 2002-01-28 Michael Snyder <msnyder@redhat.com>
9202 * regcache.c (legacy_read_register_gen): Need to be able to
9203 read pseudo-register as well as real register.
9204 (legacy_write_register_gen): Ditto.
9206 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9208 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9209 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9210 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9211 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9212 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9213 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9214 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9215 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9216 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9217 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9218 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9219 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9220 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9221 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9222 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9223 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9224 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9225 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9226 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9227 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9229 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9231 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9232 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9233 (initialize_current_architecture): Update target_byte_order using
9234 information from BFD.
9235 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9236 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9238 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9240 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9241 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9243 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9244 #ifdef INVALID_FLOAT.
9245 * infcmd.c (do_registers_info): Ditto.
9246 * values.c (unpack_double): Ditto. Add comment.
9248 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9249 already commented out.
9251 2002-01-26 Andreas Schwab <schwab@suse.de>
9253 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9254 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9255 registers and add support for PTRACE_GETREGS.
9257 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9259 GDB 5.1.1 released from 5.1 branch.
9260 * NEWS: Add 5.1.1 news.
9261 * README: Sync with 5.1 branch.
9263 2002-01-23 Fred Fish <fnf@redhat.com>
9265 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9266 stabstring on initial malloc. Reallocing will copy it for us,
9269 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9271 * Makefile.in (hpread_h): Delete.
9272 (HFILES_NO_SRCDIR): Remove hpread.h.
9273 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9274 (hpread.o): Update dependencies.
9275 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9277 * hp-psymtab-read.c: Remove file.
9278 * hp-symtab-read.c: Remove file.
9279 * hpread.h: Remove file.
9281 * hpread.c: Merge all contents of hp-psymtab-read.c,
9282 hp-symtab-read.c and hpread.h into this file, as it was prior to
9285 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9286 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9287 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9288 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9290 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9292 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9293 fill_gregset): Call gdbarch_tdep() just once, assign result to
9294 variable and use that, instead of calling the function several
9297 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9299 * configure.host: Accept sparcv9 as alias for sparc64.
9300 * configure.tgt: Likewise.
9302 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9304 * solib-aix5.c (build_so_list_from_mapfile)
9305 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9306 arguments is not reversed.
9307 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9308 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9310 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9312 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9313 modified version of obsolete sh_fetch_pseudo_register.
9314 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9315 (sh4_register_read): New function.
9316 (sh_pseudo_register_write): New function. Renamed and modified
9317 version of obsolete sh_store_pseudo_register.
9318 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9319 (sh4_register_write): New function.
9320 (sh_gdbarch_init): Remove setting of gdbarch function
9321 fetch_pseudo_register and store_pseudo_register. Remove setting of
9322 register_convert_to_raw, register_convert_to_virtual,
9323 register_convertible.
9324 (sh_sh4_register_convertible): Delete. No longer needed. All is
9325 taken care by architecture specific functions
9326 register_read/register_write.
9327 (sh_sh4_register_convert_to_virtual): Make static.
9328 (sh_sh4_register_convert_to_raw): Ditto.
9330 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9332 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9333 (floatformat_is_nan, floatformat_mantissa): Ditto.
9335 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9336 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9337 builtin_type_ieee_double_little,
9338 builtin_type_ieee_double_littlebyte_bigword,
9339 builtin_type_m68881_ext, builtin_type_i960_ext,
9340 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9341 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9342 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9343 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9345 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9347 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9348 parameter. Set frameless flag if it exists and depended of
9349 whether the scanned function is frameless or not.
9350 (xstormy16_skip_prologue): If function is frameless, return
9351 result of xstormy16_scan_prologue().
9352 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9355 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9357 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9358 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9359 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9360 sh_sh4_register_byte, sh_sh4_register_raw_size,
9361 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9362 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9363 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9364 sh_store_pseudo_register, sh_do_pseudo_register): Call
9365 gdbarch_tdep() just once, assign result to variable and use that,
9366 instead of calling the function several times.
9368 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9370 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9371 macros instead of LAST_FPU_CTRL_REGNUM.
9372 (store_register): Likewise.
9374 2002-01-21 Jim Blandy <jimb@redhat.com>
9376 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9377 is up-to-date before running the program, not just when a program
9380 2002-01-21 Fred Fish <fnf@redhat.com>
9382 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9383 when we have found all instructions we are looking for.
9385 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9387 * arm-tdep.c (arm_register_name): New function.
9388 (arm_registers_names): Make static.
9389 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9390 (arm_register_name): Declare.
9391 (REGISTER_NAME): Use it.
9393 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9394 Kevin Buettner <kevinb@redhat.com>
9396 Convert arm targets to new FRAME interface.
9397 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9398 (arm_frame_find_save_regs): Delete.
9399 (arm_frame_init_saved_regs): New.
9400 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9401 Allocate extra_info as required. Convert all uses of fsr.regs
9402 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9404 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9405 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9406 (check_prologue_cache, save_prologue_cache): Likewise.
9407 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9408 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9409 (FRAME_FIND_SAVED_REGS): Delete.
9410 (arm_frame_find_saved_regs): Delete prototype.
9411 (arm_frame_init_saved_regs): New prototype.
9412 (FRAME_INIT_SAVED_REGS): Define.
9414 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9416 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9418 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9420 From Jeff Law <law@redhat.com>:
9421 * infttrace.c: Include <sys/pstat.h>.
9422 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9423 exec file if the ttrace equivalent fails.
9425 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9427 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9428 (closeLogFile): Ditto.
9430 2002-01-20 Michael Chastain <mec@shout.net>
9432 * top.c (print_gdb_version): Bump copyright year to 2002.
9434 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9436 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9437 Zannoni and Eli Zaretskii.
9439 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9441 * buildsym.c: Update copyright years.
9442 * c-typeprint.c: Likewise.
9443 * dwarf2read.c: Likewise.
9444 * f-typeprint.c: Likewise.
9445 * gdbtypes.c: Likewise.
9446 * gdbtypes.h: Likewise.
9447 * hp-symtab-read.c: Likewise.
9448 * hpread.c: Likewise.
9449 * mdebugread.c: Likewise.
9450 * p-typeprint.c: Likewise.
9452 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9454 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9455 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9456 byte-order selectable.
9457 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9458 * arch-utils.c: Ditto.
9459 (set_endian): Ditto.
9460 (set_endian_from_file): Ditto.
9461 * gdbserver/low-sim.c (create_inferior): Ditto.
9462 * gdbarch.sh: Ditto.
9463 * gdbarch.h: Re-generate.
9464 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9465 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9466 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9467 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9468 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9469 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9470 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9471 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9473 * config/mips/tm-wince.h: Remove #undef of macro
9474 TARGET_BYTE_ORDER_SELECTABLE.
9475 * config/sh/tm-wince.h: Ditto.
9477 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9479 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9480 member function fields. Add accessor macro
9481 TYPE_FN_FIELD_ARTIFICIAL.
9482 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9483 * c-typeprint.c (c_type_print_base): Skip artificial member
9486 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9488 * f-typeprint.c: Delete unused function f_type_print_args.
9489 * p-typeprint.c: Delete unused function pascal_type_print_args.
9491 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9493 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9494 comment. Add ``artificial'' to ``union field_location''.
9496 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9498 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9499 * mdebugread.c (parse_symbol): Likewise.
9500 * stabsread.c (define_symbol): Likewise.
9501 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9502 initializing TYPE_FIELD_BITPOS to n (obsolete).
9503 (hpread_doc_function_type): Likewise.
9504 * hpread.c (hpread_function_type): Likewise.
9506 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9508 * configure.in (host_makefile_frag): Only require a host makefile
9509 fragment when a native build.
9510 * configure: Re-generate.
9512 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9514 * doublest.h (floatformat_from_type): Declare.
9515 * doublest.c (floatformat_from_type): New function.
9516 (convert_typed_floating): Use.
9518 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9519 call to function floatformat_from_type.
9521 * gdbarch.sh (IEEE_FLOAT): Delete.
9522 * gdbarch.h, gdbarch.c: Re-generate.
9523 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9524 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9525 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9526 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9527 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9528 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9529 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9530 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9531 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9532 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9533 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9534 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9536 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9537 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9538 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9539 * sh-tdep.c (sh_gdbarch_init): Ditto.
9540 * mips-tdep.c (mips_gdbarch_init): Ditto.
9541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9542 * cris-tdep.c (cris_gdbarch_init): Ditto.
9544 2002-01-20 Jiri Smid <smid@suse.cz>
9546 * configure.host, configure.tgt: Support x86-64.
9547 * NEWS: Note new target x86-64.
9549 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9550 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9551 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9552 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9553 x86-64-linux-nat.o): Fix dependencies.
9555 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9557 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9558 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9559 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9560 * config/sparc/xm-sun4os4.h: Delete file.
9561 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9563 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9565 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9566 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9567 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9568 * config/i386/i386lynx.mh (XM_FILE): Delete.
9569 * config/rs6000/xm-rs6000ly.h: Delete file.
9570 * config/sparc/xm-sparclynx.h: Delete file.
9571 * config/m68k/xm-m68klynx.h: Delete file.
9572 * config/i386/xm-i386lynx.h: Delete file.
9573 * config/xm-lynx.h: Delete file.
9574 * config/djgpp/fnchange.lst: Update.
9576 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9578 * alpha-tdep.c (alpha_register_byte): New function.
9579 (alpha_register_raw_size): Ditto.
9580 (alpha_register_virtual_size): Ditto.
9581 (alpha_skip_prologue_internal): Renamed from
9582 alpha_skip_prologue.
9583 (alpha_skip_prologue): New version that calls
9584 alpha_skip_prologue_internal.
9585 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9586 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9587 second argument from alpha_skip_prologue.
9588 (REGISTER_BYTE): Use alpha_register_byte.
9589 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9590 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9591 (FRAMELESS_FUNCTION_INVOCATION): Use
9592 generic_frameless_function_invocation_not.
9593 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9594 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9596 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9598 * config/mips/xm-news-mips.h: Delete file.
9599 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9601 * config/m88k/xm-m88k.h: Delete file.
9602 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9603 * config/m88k/xm-delta88v4.h: Ditto.
9604 * config/m88k/xm-delta88.h: Ditto.
9606 * config/alpha/xm-fbsd.h: Delete file.
9607 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9609 * config/sparc/xm-sparc.h: Delete file.
9610 * Makefile.in (xm-sun4os4.h): Delete dependency.
9611 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9612 * config/sparc/xm-sun4os4.h: Ditto.
9613 * config/sparc/xm-linux.h: Ditto.
9615 * config/i386/xm-windows.h: Delete file.
9617 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9619 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9620 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9622 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9624 * alpha-tdep.c (alpha_call_dummy_words): New.
9625 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9626 (CALL_DUMMY_P): Define.
9627 (CALL_DUMMY_WORDS): Define.
9628 (SIZEOF_CALL_DUMMY_WORDS): Define.
9630 2002-01-19 Per Bothner <per@bothner.com>
9632 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9633 isn't NULL, which can happen with some gcj-3.x-produced code.
9635 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9637 * alpha-tdep.c (alpha_register_virtual_type): New function.
9638 (alpha_init_frame_pc_first): Ditto.
9639 (alpha_fix_call_dummy): Ditto.
9640 (alpha_store_struct_return): Ditto.
9641 (alpha_extract_struct_value_address): Ditto.
9642 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9643 alpha_register_virtual_type.
9644 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9645 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9646 alpha_extract_struct_value_address.
9647 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9648 (INIT_FRAME_PC): Use init_frame_pc_noop.
9649 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9651 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9653 * i386gnu-nat.c: Include "i386-tdep.h".
9654 (fetch_fpregs): Simplify code dealing with uninitialized floating
9655 point states such that it doesn't require FP7_REGNUM.
9657 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9659 * alpha-tdep.c (frame_extra_info): New.
9660 (alpha_find_saved_regs): Make static. Use
9662 (alpha_frame_init_saved_regs): New function.
9663 (alpha_frame_saved_pc): Use frame->extra_info.
9664 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9665 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9666 (init_extra_frame_info): Rename to...
9667 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9668 (alpha_print_extra_frame_info): New function.
9669 (alpha_frame_locals_address): Ditto.
9670 (alpha_frame_args_address): Ditto.
9671 (alpha_pop_frame): Use frame->extra_info.
9672 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9673 alpha_frame_args_address.
9674 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9675 (alpha_find_saved_regs): Remove prototype.
9676 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9677 (EXTRA_FRAME_INFO): Remove.
9678 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9679 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9681 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9683 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9684 (alpha_cannot_fetch_register): Ditto.
9685 (alpha_cannot_store_register): Ditto.
9686 (alpha_register_convertible): Ditto.
9687 (alpha_use_struct_convention): Ditto.
9688 * config/alpha/tm-alpha.h: Update copyright years.
9689 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9690 (INNER_THAN): Use core_addr_lessthan.
9691 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9692 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9693 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9694 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9695 (FRAME_CHAIN): Remove unnecessary cast.
9697 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9699 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9702 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9704 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9705 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9706 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9707 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9708 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9709 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9710 * x86-64-linux-nat.c: Ditto.
9712 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9714 * alpha-tdep.c (alpha_register_name): New function.
9715 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9716 (REGISTER_NAME): Define.
9718 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9720 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9722 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9724 * alpha-tdep.c: Update copyright years.
9725 (alpha_next_pc): New function.
9726 (alpha_software_single_step): Ditto.
9727 * config/alpha/tm-alpha.h: Add prototype for
9728 alpha_software_single_step.
9730 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9732 * alphabsd-nat.c: Update copyright years.
9733 (fill_gregset): Use regcache_collect.
9734 (fill_fpregset): Likewise.
9735 (fetch_inferior_registers): Only fetch integer registers
9736 if requested to do so.
9737 (store_inferior_registers): Only store integer registers
9738 if requested to do so.
9740 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9742 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9743 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9744 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9745 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9746 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9747 * config/arm/linux.mh (XDEPFILES): Delete.
9748 * config/arm/nbsd.mh (XDEPFILES): Delete.
9749 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9750 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9751 * config/i386/i386m3.mh (XDEPFILES): Delete.
9752 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9753 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9754 * config/i386/fbsd.mh (XDEPFILES): Delete.
9755 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9756 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9757 * config/i386/i386v4.mh (XDEPFILES): Delete.
9758 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9759 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9760 * config/i386/i386aix.mh (XDEPFILES): Delete.
9761 * config/i386/go32.mh (XDEPFILES): Delete.
9762 * config/i386/cygwin.mh (XDEPFILES): Delete.
9763 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9764 * config/i386/i386mach.mh (XDEPFILES): Delete.
9765 * config/i386/i386v32.mh (XDEPFILES): Delete.
9766 * config/i386/linux.mh (XDEPFILES): Delete.
9767 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9768 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9769 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9770 * config/i386/i386sco.mh (XDEPFILES): Delete.
9771 * config/i386/i386v.mh (XDEPFILES): Delete.
9772 * config/i386/nbsd.mh (XDEPFILES): Delete.
9773 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9774 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9775 * config/i386/symmetry.mh (XDEPFILES): Delete.
9776 * config/i386/obsd.mh (XDEPFILES): Delete.
9777 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9778 * config/ia64/linux.mh (XDEPFILES): Delete.
9779 * config/ia64/aix.mh (XDEPFILES): Delete.
9780 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9781 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9782 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9783 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9784 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9785 * config/m68k/linux.mh (XDEPFILES): Delete.
9786 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9787 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9788 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9789 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9790 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9791 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9792 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9793 * config/m88k/delta88.mh (XDEPFILES): Delete.
9794 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9795 * config/m88k/m88k.mh (XDEPFILES): Delete.
9796 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9797 * config/mips/linux.mh (XDEPFILES): Delete.
9798 * config/mips/irix6.mh (XDEPFILES): Delete.
9799 * config/mips/irix5.mh (XDEPFILES): Delete.
9800 * config/mips/irix4.mh (XDEPFILES): Delete.
9801 * config/mips/irix3.mh (XDEPFILES): Delete.
9802 * config/mips/decstation.mh (XDEPFILES): Delete.
9803 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9804 (NATDEPFILES): Move core-aout.o to here.
9805 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9806 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9807 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9808 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9809 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9810 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9811 * config/pa/hpux11.mh (XDEPFILES): Delete.
9812 * config/powerpc/aix.mh (XDEPFILES): Delete.
9813 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9814 * config/powerpc/linux.mh (XDEPFILES): Delete.
9815 * config/romp/rtbsd.mh: Rename XDEPFILES.
9816 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9817 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9818 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9819 * config/s390/s390.mh (XDEPFILES): Delete.
9820 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9821 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9822 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9823 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9824 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9825 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9826 * config/sparc/linux.mh (XDEPFILES): Delete.
9827 * config/vax/vaxult.mh (XDEPFILES): Delete.
9828 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9829 * Makefile.in (DEPFILES): Remove XDEPFILES.
9831 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9833 * utils.c (internal_verror): Fix comments, default is yes not no.
9834 Update queries to match. Default to quit and dump core.
9836 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9838 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9840 * defs.h, event-top.c, gdbcmd.h: Ditto.
9841 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9842 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9843 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9844 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9845 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9846 * mi/mi-main.c:Ditto.
9848 * stack.c, symfile.c: Update copyright.
9850 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9852 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9853 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9854 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9855 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9857 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9859 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9860 * gdbserver/low-lynx.c (myattach): Likewise.
9861 * gdbserver/low-nbsd.c (myattach): Likewise.
9862 * gdbserver/low-sim.c (myattach): Likewise.
9863 * gdbserver/low-sparc.c (myattach): Likewise.
9864 * gdbserver/low-sun3.c (myattach): Likewise.
9866 * gdbserver/low-linux.c (myattach): New function.
9868 * gdbserver/server.c (attach_inferior): New function.
9869 (main): Handle "--attach".
9871 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9873 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9876 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9878 * c-typeprint.c (is_type_conversion_operator): Add additional
9879 check for non-conversion operators.
9881 2002-01-15 Michael Snyder <msnyder@redhat.com>
9883 * linux-proc.c: Add "info proc" command, a la procfs.c.
9884 (read_mapping): New function, abstract and re-use code.
9885 (linux_find_memory_regions): Use new func read_mapping.
9886 (linux_info_proc_cmd): New function, implement "info proc".
9887 (_initialize_linux_proc): Add new command "info proc".
9889 2002-01-15 Michael Snyder <msnyder@redhat.com>
9891 * symfile.c (generic_load): Use bfd_map_over_sections method
9892 instead of manipulating bfd structure members directly.
9893 (add_section_size_callback): New function, bfd sections callback
9894 used by generic_load.
9895 (load_sections_callback): New function, bfd sections callback
9896 used by generic_load.
9898 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9900 [Based on work by Jim Blandy]
9901 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9902 (builtin_type_vec128): Export.
9903 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9905 (builtin_type_vec128): New builtin type for 128 bit vector
9907 (build_gdbtypes): Initialize builtin_type_v16qi and
9908 builtin_type_v8hi. Create the vec128 register builtin type
9910 (build_builtin_type_vec128): New function.
9911 (_initialize_gdbtypes): Register builtin_type_v16qi and
9912 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9913 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9914 AltiVec register to new builtin type.
9916 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9918 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9921 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9923 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9924 CLEAN_UP_REGISTER_VALUE.
9925 * regcache.c (supply_register): Update only call.
9927 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9929 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9930 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9931 a29k-*-vxworks* targets as obsolete.
9933 2002-01-14 Michael Snyder <msnyder@redhat.com>
9935 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9936 until we can resolve portability issues.
9937 * gregset.h: Remove references to fpxregs.
9938 * gcore.c (gcore_command): Initialize note_sec to NULL.
9940 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9942 * signals.c (target_signal_to_name): Rewrite. Only use
9943 signals[].name when in bounds and non-NULL.
9945 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9947 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9948 * signals.c (target_signal_to_name): Verify that SIG is within the
9949 bounds of the signals array.
9951 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9953 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9955 2002-01-13 Keith Seitz <keiths@redhat.com>
9957 * stack.c (print_frame_info_base): Print the frame's pc
9958 only if when print_frame_info_listing_hook is not defined.
9960 2002-01-13 Keith Seitz <keiths@redhat.com>
9962 * varobj.c (varobj_set_value): Make sure that there were no
9963 errors evaluating the object before attempting to set its
9965 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9966 so this offset adjustment is no longer necessary.
9967 (create_child): Don't set the error flag if the child is
9969 (value_of_child): If value_fetch_lazy fails, return NULL
9970 so that callers will be notified that an error occurred.
9971 (c_value_of_variable): Delay check of variable's validity
9972 until later. We actually want all structs and unions to have
9974 Do not return "???" for variables which could not be evaluated.
9975 This error condition must be returned to the caller so that it
9976 can get the error condition from gdb.
9977 (cplus_name_of_child): Adjust index for vptr before figuring
9978 out the name of the child.
9979 (cplus_value_of_child): If a child's (real) parent is not valid,
9980 don't even bother trying to give a value for it. Just return
9981 an error. Change all instances in this function.
9982 (cplus_type_of_child): If our parent is one of the "fake"
9983 parents, we need to get at the type of the real parent, and
9984 derive the child's true type using this information.
9986 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9988 From 2002-01-09 John Marshall <johnm@falch.net>:
9989 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9990 sources.redhat.com, and tweak some related URLs which had
9991 suffered from linkrot.
9993 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9996 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9997 structures passed in registers.
9999 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10001 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10002 white space which prevented compilation. Reported by DSK
10003 <dsk@student.unsw.edu.au>.
10005 2002-01-11 Michael Snyder <msnyder@redhat.com>
10007 * symfile.c (build_section_addr_info_from_section_tab):
10008 Use bfd access method instead of manipulating bfd directly.
10009 (syms_from_objfile): Ditto.
10010 (simple_overlay_update_1): Ditto.
10011 (simple_overlay_update): Ditto.
10012 (generic_load): Ditto.
10013 (overlay_unmapped_address): FIXME comment, bfd access methods.
10014 (sections_overlap): FIXME comment, bfd access methods.
10015 (pc_in_mapped_range): FIXME comment, bfd access methods.
10016 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10017 (section_is_mapped): FIXME comment, bfd access methods.
10018 (section_is_overlay): FIXME comment, bfd access methods.
10020 * symfile.c (generic_load): Whitespace and long line cleanups.
10021 Remove duplicate variable, change several local variables to
10022 more appropriate data types.
10023 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10025 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10027 From Peter Schauer:
10028 * language.c (longest_local_hex_string_custom): Use phex_nz to
10029 convert NUM to a hex string.
10031 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10033 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10035 Update Copyright year.
10037 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10039 * language.c (longest_raw_hex_string): Delete unused function.
10041 2002-01-11 Petr Sorfa <petrs@caldera.com>
10043 * MAINTAINERS (write-after-approval): Add myself.
10044 * dwarf2read.c (read_tag_string_type): Handling of
10046 (read_tag_string_type): FORTRAN fix to prevent propagation of
10048 (set_cu_language): Handling of DW_LANG_Fortran95
10050 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10052 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10053 GETPID(inferior_ptid).
10054 (store_inferior_registers): Likewise.
10056 2002-01-10 Jason Merrill <jason@redhat.com>
10058 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10061 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10063 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10064 and bfd/elf32-sh-nbsd.c.
10066 2002-01-10 Michael Snyder <msnyder@redhat.com>
10068 * NEWS: Mention --pid and corefile/proc-id behavior change.
10070 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10071 * gcore.c: Include cli/cli-decode.h instead of command.h.
10073 * main.c (captured_main): Add new command line option "--pid".
10074 If the second command line argument (following the symbol-file)
10075 begins with a digit, try to attach to it before trying to open
10077 (print_gdb_help): Document the "--pid" argument.
10079 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10081 * completer.c (command_completer): New function.
10083 * completer.h <command_completer>: Add prototype.
10085 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10086 completer for the "help" command.
10088 2002-01-09 Jason Merrill <jason@redhat.com>
10090 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10092 2002-01-09 Michael Snyder <msnyder@redhat.com>
10094 * i386-linux-nat.c (fill_fpxregset): Make global.
10095 (store_fpxregset): Ditto.
10097 * gregset.h (gdb_fpxregset_t): Define.
10098 (supply_fpxregset): Prototype.
10099 (fill_fpxregset): Prototype.
10101 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10103 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10105 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10106 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10107 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10109 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10111 * MAINTAINERS: Update target maintainer rules so that any
10112 Maintainer can approve a tested patch for a maintenance-only
10115 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10117 * MAINTAINERS (write-after-approval): Add myself.
10119 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10122 2002-01-08 Michael Snyder <msnyder@redhat.com>
10124 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10125 real name of the executable, rather than the /proc name.
10127 2002-01-03 Michael Snyder <msnyder@redhat.com>
10129 Implement a "generate-core-file" command in gdb, save target state.
10130 * gcore.c: New file. Implement new command 'generate-core-file'.
10131 Save a corefile image of the current state of the inferior.
10132 * linux-proc.c: Add linux-specific code for saving corefiles.
10133 * target.h (struct target_ops): Add new target vectors for saving
10134 corefiles; to_find_memory_regions and to_make_corefile_notes.
10135 (target_find_memory_regions): New macro.
10136 (target_make_corefile_notes): New macro.
10137 * target.c (update_current_target): Inherit new target methods.
10138 (dummy_find_memory_regions): New place-holder method.
10139 (dummy_make_corefile_notes): New place-holder method.
10140 (init_dummy_target): Initialize new dummy target vectors.
10141 * exec.c (exec_set_find_memory_regions): New function.
10142 Allow the exec_ops vector for memory regions to be taken over.
10143 (exec_make_note_section): New function, target vector method.
10144 * defs.h (exec_set_find_memory_regions): Export prototype.
10145 * procfs.c (proc_find_memory_regions): New function, corefile method.
10146 (procfs_make_note_section): New function, corefile method.
10147 (init_procfs_ops): Set new target vector pointers.
10148 (find_memory_regions_callback): New function.
10149 (procfs_do_thread_registers): New function.
10150 (procfs_corefile_thread_callback): New function.
10151 * sol-thread.c (sol_find_memory_regions): New function.
10152 (sol_make_note_section): New function.
10153 (init_sol_thread_ops): Initialize new target vectors.
10154 * inftarg.c (inftarg_set_find_memory_regions): New function.
10155 Allow to_find_memory_regions vector to be taken over.
10156 (inftarg_set_make_corefile_notes): New function.
10157 Allow to_make_corefile_notes vector to be taken over.
10158 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10159 interface layer if not target_has_execution (may be a corefile).
10160 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10161 * config/sparc/sun4sol2.mh: Ditto.
10162 * config/alpha/alpha-linux.mh: Ditto.
10163 * config/arm/linux.mh: Ditto.
10164 * config/i386/x86-64linux.mh: Ditto.
10165 * config/ia64/linux.mh: Ditto.
10166 * config/m68k/linux.mh: Ditto.
10167 * config/mips/linux.mh: Ditto.
10168 * config/powerpc/linux.mh: Ditto.
10169 * config/sparc/linux.mh: Ditto.
10171 2002-01-07 Michael Snyder <msnyder@redhat.com>
10173 * arm-linux-nat.c: Remove references to regcache.c internal data
10174 (registers[] and register_valid[]).
10176 2002-01-07 Michael Snyder <msnyder@redhat.com>
10178 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10179 so that attaching to a pid will automatically read the process's
10180 symbol file and shlibs.
10181 * Makefile.in: Add rule for linux-proc.o.
10182 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10183 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10184 * config/arm/linux.mh: Ditto.
10185 * config/i386/linux.mh: Ditto.
10186 * config/i386/x86-64linux.mh: Ditto.
10187 * config/ia64/linux.mh: Ditto.
10188 * config/m68k/linux.mh: Ditto.
10189 * config/mips/linux.mh: Ditto.
10190 * config/powerpc/linux.mh: Ditto.
10191 * config/sparc/linux.mh: Ditto.
10193 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10195 * win32-nat.c: Add i386-tdep.h dependency.
10197 2002-01-07 Michael Snyder <msnyder@redhat.com>
10199 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10200 instead of bfd_get_arch_size. Don't bail out just because
10201 there's no exec_bfd.
10203 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10204 * p-valprint.c (pascal_object_print_value): Ditto.
10205 * somread.c (som_symtab_read): Ditto.
10206 * symfile.c (simple_free_overlay_region_table): Ditto.
10207 * valops.c (value_assign): Ditto.
10209 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10210 use tilde_expand and strerror for opening save-tracepoints file.
10212 * thread-db.c (thread_db_new_objfile): Indendation fix.
10214 * infptrace.c (GDB_MAX_ALLOCA): New define.
10215 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10216 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10217 can be overridden with whatever value is appropriate to the host).
10218 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10219 alloca to allocate potentially large buffer.
10220 * rs6000-nat.c (child_xfer_memory): Ditto.
10221 * symm-nat.c (child_xfer_memory): Ditto.
10222 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10224 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10226 From Nick Clifton <nickc@redhat.com>
10227 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10229 2002-01-07 Michael Snyder <msnyder@redhat.com>
10231 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10232 Don't use exec_bfd if it's NULL.
10234 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10236 * valops.c (value_arg_coerce): Fix formatting.
10238 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10240 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10241 * gnu-nat.c: Ditto.
10243 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10245 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10246 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10247 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10248 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10249 z8k-coff have not been multi-arched. Update z8k-coff build
10252 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10254 * MAINTAINERS: Mark a29k target as obsolete.
10255 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10256 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10258 * NEWS: Note that a29k targets are obsolete.
10259 * a29k-tdep.c: Mark as obsolete.
10260 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10261 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10262 a29k-*-vxworks* targets as obsolete.
10263 * remote-adapt.c: Obsolete.
10264 * remote-eb.c: Obsolete.
10265 * remote-mm.c: Obsolete.
10266 * remote-udi.c: Obsolete.
10267 * config/a29k/a29k-udi.mt: Obsolete.
10268 * config/a29k/a29k.mt: Obsolete.
10269 * config/a29k/tm-a29k.h: Obsolete.
10270 * config/a29k/tm-vx29k.h: Obsolete.
10271 * config/a29k/vx29k.mt: Obsolete.
10273 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10275 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10276 with BFD_ENDIAN_BIG.
10278 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10280 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10281 * configure, config.in: Re-generate.
10282 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10283 * defs.h: Do not include <endian.h>.
10285 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10287 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10288 * config.in: Regenerate.
10289 * configure.in: Update copyright years.
10290 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10291 * configure: Regenerate.
10292 * i386bsd-nat.c: Update copyright years.
10293 (fill_gregset): Use regcache_collect.
10294 (fetch_inferior_registers): Only fetch integer registers
10295 if requested to do so. Add support for XMM registers
10296 using PT_GETXMMREGS.
10297 (store_inferior_registers): Only store integer registers
10298 if requested to do so. Add support for XMM registers
10299 using PT_SETXMMREGS.
10300 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10301 (store_inferior_registers): Remove.
10302 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10303 (fetch_elfcore_registers): New function.
10304 (i386nbsd_elfcore_fns): New.
10305 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10306 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10308 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10309 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10310 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10311 * config/i386/tm-nbsd.h: Update copyright years.
10312 (HAVE_SSE_REGS): Define.
10313 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10314 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10315 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10316 (SIGCONTEXT_PC_OFFSET): Remove.
10317 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10319 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10321 * configure.tgt: Remove powerpc-*-macos* target.
10322 * config/m68k/xm-mpw.h: Delete file.
10323 * config/xm-mpw.h: Delete file.
10324 * ser-mac.c: Delete file.
10325 * mpw-make.sed: Delete file.
10326 * mpw-config.in: Delete file.
10327 * mac-xdep.c: Delete file.
10328 * mac-gdb.r: Delete file.
10329 * mac-defs.h: Delete file.
10330 * mac-nat.c: Delete file.
10331 * config/powerpc/macos.mh: Delete file.
10332 * config/powerpc/macos.mt: Delete file.
10333 * config/powerpc/nm-macos.h: Delete file.
10334 * config/powerpc/tm-macos.h: Delete file.
10335 * source.c (openp, open_source_file): Remove obsolete code.
10336 * top.c (gdb_readline): Ditto.
10337 * utils.c (query): Ditto.
10338 * event-top.c (display_gdb_prompt): Ditto.
10339 * Makefile.in (ser-mac.o): Delete obsolete target.
10342 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10344 * defs.h (BIG_ENDIAN): Delete macro definition.
10345 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10346 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10347 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10348 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10349 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10350 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10351 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10352 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10353 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10354 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10355 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10356 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10357 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10358 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10359 * gdbarch.c: Re-generate.
10361 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10363 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10366 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10368 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10370 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10372 * value.h (value_ptr): Delete typedef.
10374 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10376 * i386nbsd-nat.c: Update copyright years.
10377 Include i386-tdep.h.
10379 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10381 * stabsread.c: Update copyright years.
10383 From Debashis Mahata <debashis.mahata@wipro.com>:
10384 (read_struct_fields): Deal with Sun C compiler erroneous stab
10385 output for structs and unions.
10388 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10390 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10393 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10395 * cp-abi.c: Fix whitespace.
10396 (baseclass_offset): New wrapper function.
10397 * cp-abi.h (baseclass_offset): Add prototype.
10398 (struct cp_abi_ops): Add baseclass_offset pointer.
10400 * valops.c (vb_match): Move to...
10401 * gnu-v2-abi.c (vb_match): here.
10402 * valops.c (baseclass_offset): Move to...
10403 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10405 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10407 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10408 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10409 * hpacc-abi.c (init_hpacc_ops): Likewise.
10411 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10413 * valops.c (find_overload_match): Accept obj as a
10414 reference parameter. Update it before returning.
10415 * value.h (find_overload_match): Update prototype.
10416 * eval.c (evaluate_subexp_standard): Pass object to
10417 find_overload_match by reference.
10419 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10421 * valarith.c: Replace value_ptr with struct value pointer. Remove
10422 register attribute from value declarations.
10425 * scm-lang.c (scm_lookup_name): Ditto.
10427 2002-01-03 Michael Snyder <msnyder@redhat.com>
10429 Abstract the functionality of iterating over mapped memory
10430 regions into a general purpose iterator function.
10431 * procfs.c (iterate_over_mappings): New function, general purpose
10432 iterator for memory sections.
10433 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10434 (solib_mappings_callback): New function, callback for above.
10435 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10436 (info_mappings_callback): New function, callback for above.
10438 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10440 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10442 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10443 * i386-tdep.c: Include "elf-bfd.h".
10444 (process_note_abi_tag_sections): New function.
10445 (i386_gdbarch_init): Add code to recognize various OS/ABI
10448 * maint.c (_initialize_maint_cmds): Add missing \ in
10451 For older changes see ChangeLog-2001
10457 version-control: never