1 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
7 * configure.host: Make i[3456]86-*-aix host obsolete.
8 * configure.tgt: Make i[3456]86-*-aix target obsolete.
9 * config/i386/i386aix.mh, config/i386/i386aix.mt,
10 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
11 config/i386/xm-i386aix.h: Make files obsolete.
12 * i386aix-nat.c: Make file obsolete.
13 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
14 (i386aix-nat.o): Make target obsolete.
16 * config/i386/nm-gnu.h: Removed.
17 * config/i386/nm-i386gnu.h: New file.
18 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
19 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
21 * config/i386/tm-i386gnu.h: ... here. Removed.
22 * config/i386/xm-i386gnu.h: Removed.
23 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
24 (NAT_FILE): Set to nm-i386gnu.h.
25 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
26 * i386-tdep.c: New file.
27 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
28 (i386gnu-tdep.o): Specify dependencies.
30 2002-08-15 Mark Kettenis <kettenis@gnu.org>
32 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
33 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
34 Adjust a few comments to reflect reality a bit closer.
35 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
36 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
37 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
38 target_insert_watchpoint, target_remove_watchpoint):
40 * config/i386/nm-i386sco5.h: ... here.
41 (kernel_u_size): Add prototype. Improve a few comments and add
42 protection against multiple inclusion.
44 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
47 * uw-thread.c (SP_ARG0): Define if not already defined.
48 * config/i386/tm-i386.h (SO_ARG0): Remove define.
50 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
52 * config/i386/tm-i386.h: Don't include "regcache.h".
54 * i387-tdep.h (i387_print_float_info): New prototype.
55 * i387-tdep.c (print_i387_value, print_i387_ext,
56 print_i387_status_word, print_i387_control_word): Add `struct
57 ui_file *' argument and use it for output.
58 (i387_print_float_info): Renamed from i387_float_info. Add
59 `struct gdbarch *' and `struct ui_file *' arguments and use the
61 * i386-tdep.c: Include "i387-tdep.h".
62 (i386_gdbarch_init): Set print_float_info.
63 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
64 (FLOAT_INFO): Remove define.
66 2002-08-13 Michael Snyder <msnyder@redhat.com>
68 * mips-tdep.c (mips_push_arguments): Rename to
69 mips_eabi_push_arguments, and tune for EABI.
70 (MIPS_REGS_HAVE_HOME_P): Delete.
71 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
72 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
73 Delete references to mips_regs_have_home_p.
75 2002-08-14 Keith Seitz <keiths@redhat.com>
77 * Makefile.in (install-gdbtk): Create insight plugin directory.
78 Install plugins.tcl file.
80 2002-08-14 Keith Seitz <keiths@redhat.com>
82 * configure.in: Move SUBDIRS to near top of the file so that
83 --enable options may add things to it.
84 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
85 * configure: Regenerate.
87 2002-08-13 Michael Snyder <msnyder@redhat.com>
89 * mips-tdep.c (mips_o32o64_push_arguments): New function,
90 cloned from mips_push_arguments, tuned for o32/o64 ABI.
91 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
93 2002-08-13 Andrew Cagney <ac131313@redhat.com>
95 * vax-tdep.c (vax_get_saved_register): Delete function.
96 (vax_gdbarch_init): Update.
97 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
98 (ns32k_gdbarch_init): Update.
99 * alpha-tdep.c (alpha_get_saved_register): Delete function.
100 (alpha_gdbarch_init): Update.
102 2002-08-13 Andrew Cagney <cagney@redhat.com>
104 * regcache.c (init_regcache_descr): Overallocate the
105 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
106 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
108 (set_register_cached): Add range checking assertions. Use
111 2002-08-13 Mark Kettenis <kettenis@gnu.org>
113 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
114 numbers for MMX registers.
116 2002-08-13 Andrew Cagney <cagney@redhat.com>
118 * i386-tdep.c (i386_gdbarch_init): Use
119 generic_unwind_get_saved_register.
121 2002-08-13 Kevin Buettner <kevinb@redhat.com>
123 * procfs.c (procfs_can_use_hw_breakpoint): New function.
124 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
126 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
127 Delete. Add comment regarding this now-deleted target method.
129 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
131 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
132 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
133 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
134 real PC and the page number (if it's within the memory bank window).
135 (m68hc11_pseudo_register_write): Likewise when saving.
136 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
137 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
138 (m68hc11_register_raw_size): And use 32-bit for it.
139 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
140 16K memory bank is used by the prog; also use the virtual pc.
142 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
144 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
145 (m68hc11_gdbarch_init): Install it in gdbarch.
146 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
147 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
148 (MSYMBOL_SIZE): New for documentation.
149 (insn_return_kind): Enum to specify how a function returns.
150 (frame_extra_info): Cleanup and record the return mode.
151 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
152 register in address computation.
153 (m68hc11_get_return_insn): New to obtain the return instruction used
155 (m68hc11_frame_init_saved_regs): Take into account the return
156 instruction used by the function for far and interrupt functions.
157 (m68hc11_init_extra_frame_info): Take into account page register.
158 (m68hc11_frame_args_address): Adjust according to the return mode.
159 (show_regs): Print page register only when it's used.
161 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
163 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
164 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
165 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
167 (m68hc11_register_raw_size): Likewise.
169 2002-08-13 Andrew Cagney <cagney@redhat.com>
171 * i386-tdep.c (i386_register_name): Handle mmx registers.
172 (mmx_regnum_p): New function.
173 (i386_mmx_names): New array.
174 (mmx_num_regs): New variable.
175 (i386_pseudo_register_read): New function.
176 (i386_pseudo_register_write): New function.
177 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
179 * regcache.c (regcache_raw_read_unsigned): New function.
180 (regcache_raw_read_signed): New function.
181 * regcache.h (regcache_raw_read_unsigned): Declare.
182 (regcache_raw_read_signed): Declare.
184 2002-08-13 Andrew Cagney <cagney@redhat.com>
186 * regcache.c (regcache_raw_read_as_address): Delete function.
187 (regcache_cooked_read_signed): New function.
188 (regcache_cooked_read_unsigned): New function.
189 * regcache.h (regcache_cooked_read_signed): Declare.
190 (regcache_cooked_read_unsigned): Declare.
191 (regcache_raw_read_as_address): Delete declaration.
193 * blockframe.c (generic_read_register_dummy): Use
194 regcache_cooked_read_unsigned.
195 * i386-tdep.c (i386_extract_struct_value_address): Use
196 regcache_cooked_read_unsigned.
198 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
201 double sizes according to ELF ABI flags.
202 (gdbarch_tdep): Record elf_flags.
204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
206 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
207 (m6812_prolog): They can appear in 68HC12 function prologue.
208 (m68hc11_frame_chain): Cleanup.
210 2002-08-12 Andrew Cagney <cagney@redhat.com>
212 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
214 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
215 (i386_linux_register_raw_size): Delete function.
216 (i386_linux_init_abi): Update.
217 * i386-tdep.c (i386_register_raw_size): Delete function.
218 (i386_register_byte): Delete function.
219 (i386_gdbarch_init): Update.
220 (i386_register_size): Delete array.
221 (i386_register_offset): Delete array.
223 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
224 (REGISTER_RAW_SIZE): Delete macro.
225 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
226 (REGISTER_BYTE): Delete macro.
228 2002-08-11 Aidan Skinner <aidan@velvet.net>
230 * ada-lang.c (ada_lookup_partial_symbol)
231 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
232 prototype names so that grep ^func works properly.
234 * ada-lang.c (ada_array_element_type)
235 (ada_lookup_partial_symbol): Fix typos in parameter list.
237 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
238 Fix prototype names so that grep ^func works properly.
240 2002-08-10 Andrew Cagney <cagney@redhat.com>
241 Elena Zannoni <ezannoni@redhat.com>
242 Martin M. Hunt <hunt@redhat.com>
244 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
245 (build_builtin_type_vec128i): Set the vector bit.
246 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
247 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
248 (build_builtin_type_vec64): New function.
249 (build_builtin_type_vec64i): New function.
250 (build_gdbtypes): Initialize builtin_type_vec64 and
253 2002-08-09 Andrew Cagney <cagney@redhat.com>
255 * regcache.c (regcache_dump): Compare the register offset
257 * arch-utils.c (generic_register_byte): New function.
258 * arch-utils.h (generic_register_byte): Declare.
259 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
260 * gdbarch.h, gdbarch.c: Regenerate.
262 2002-08-09 Andrew Cagney <cagney@redhat.com>
264 * regcache.c: Include "gdbcmd.h"
265 (_initialize_regcache): Add commands "maintenance print
266 registers", "maintenance print raw-registers" and "maintenance
267 print cooked-registers".
268 (enum regcache_dump_what): Define.
269 (dump_endian_bytes): New function.
270 (regcache_dump): New function.
271 (regcache_print): New function.
272 (maintenance_print_registers): New function.
273 (maintenance_print_raw_registers): New function.
274 (maintenance_print_cooked_registers): New function.
275 * Makefile.in (regcache.o): Update dependencies.
277 2002-08-09 Michael Snyder <msnyder@redhat.com>
279 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
280 (mips_push_arguments): Correct some comments. Use paddr_nz
281 for printing addresses in debug output. Replace static
282 allocation using MAX_REGISTER_RAW_SIZE with alloca.
283 (mips_n32n64_push_arguments): New function, cloned from
284 mips_push_arguments and tuned for the n32/n64 ABI.
285 (mips_push_register): Buffer needs dynamic allocation.
286 (mips_print_register): Ditto.
287 (do_gp_register_row): Ditto.
288 (mips_store_return_value): Ditto.
289 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
291 2002-08-09 Don Howard <dhoward@redhat.com>
293 * memattr.c (mem_info_command): Print special case of upper bound
294 as max CORE_ADDR + 1.
296 2002-08-08 Michael Snyder <msnyder@redhat.com>
298 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
299 returns structs by ref if they're too big to fit in two registers.
301 2002-08-09 Kevin Buettner <kevinb@redhat.com>
303 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
305 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
306 mips_find_saved_regs().
307 (mips_pop_frame): Likewise.
309 2002-08-09 Kevin Buettner <kevinb@redhat.com>
311 * blockframe.c (frame_saved_regs_register_unwind): Revise
312 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
315 2002-08-09 Grace Sainsbury <graces@redhat.com>
317 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
318 T-packets; the 'a' is not taken as a register number.
319 (remote_check_watch_resources, remote_stopped_by_watchpoint)
320 (remote_stopped_data_address): New functions; add to target
322 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
323 prototypes to match other implementations of this
324 function. replace integer argument with pointer -- the length
325 field in the Z-packet is the length of what is pointed to or 1 if
326 pointer is null. Add to target vector.
327 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
331 * remote.c (remote_wait): Add support to extract optional
332 watchpoint information from T-packet. Ignore unrecognized
333 optional info in T-packet.
334 (remote_async_wait): Ditto.
336 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
338 * cli/cli-dump.c: Change fopen modes to use binary open modes
339 as defined in include/fopen-bin.h throughout.
341 2002-08-08 Michael Snyder <msnyder@redhat.com>
343 * mips-tdep.c: Minor whitespace and indentation clean-ups.
345 2002-08-08 Kevin Buettner <kevinb@redhat.com>
347 * doublest.c (store_floating): Avoid floatformat_from_doublest()
348 assertion failure by returning early after a warning.
350 2002-08-08 Kevin Buettner <kevinb@redhat.com>
352 * mips-tdep.c (mips_find_saved_regs): Make static.
353 (mips_frame_init_saved_regs): New function.
354 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
355 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
356 (mips_find_saved_regs): Delete declaration.
358 2002-08-08 Grace Sainsbury <graces@redhat.com>
360 * remote.c (remote_wait, remote_async_wait): Change
361 thread_num from int to ULONGEST.
362 (unpack_varlen_hex): Change result parameter from
365 2002-08-08 Andrew Cagney <ac131313@redhat.com>
367 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
368 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
370 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
372 2002-08-08 Andrew Cagney <cagney@redhat.com>
374 * gcore.c (override_derive_stack_segment): Delete variable.
375 (preempt_derive_stack_segment): Delete function.
376 (derive_stack_segment): Delete function.
377 (default_derive_stack_segment): Renamed to derive_stack_segment.
378 (override_derive_heap_segment): Delete variable.
379 (preempt_derive_heap_segment): Delete function.
380 (derive_heap_segment): Delete function.
381 (default_derive_heap_segment): Rename to derive_heap_segment.
383 2002-08-06 Michael Snyder <msnyder@redhat.com>
385 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
386 * mips-tdep.c (mips_EABI_use_struct_convention,
387 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
388 New functions. (mips_use_struct_convention): Delete.
389 (mips_gdbarch_init): set use_gdbarch_convention.
391 2002-08-06 Michael Snyder <msnyder@redhat.com>
393 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
394 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
395 mips_o32_reg_struct_has_addr): New functions.
396 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
398 2002-08-07 Andrew Cagney <ac131313@redhat.com>
400 * regcache.c (pseudo_register): Delete function.
401 (fetch_register): Delete function.
402 (store_register): Delete function.
403 (regcache_raw_read, legacy_read_register_gen): Use
404 target_fetch_registers instead of fetch_register.
405 (legacy_write_register_gen, regcache_raw_write): Use
406 target_store_register instead of store_register.
407 (write_register_bytes): Ditto.
409 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
410 (STORE_PSEUDO_REGISTER): Delete.
411 * gdbarch.h, gdbarch.c: Regenerate.
413 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
415 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
416 write dump file binary.
418 2002-08-05 Michael Snyder <msnyder@redhat.com>
420 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
421 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
422 (mips_gdbarch_init): Set N32 target to be mips64.
424 2002-08-06 Kevin Buettner <kevinb@redhat.com>
426 * frame.c (find_saved_register): Break out of loop once saved
427 register address is found. Don't mention sparc in loop comment
430 2002-08-06 Kevin Buettner <kevinb@redhat.com>
432 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
433 mips_default_saved_regsize to 8.
435 2002-08-06 Andrew Cagney <ac131313@redhat.com>
437 * gcore.c: Do not include <sys/procfs.h>.
438 * Makefile.in (gcore.o): Update dependencies.
440 2002-08-06 Andrew Cagney <cagney@redhat.com>
442 * configure.tgt: Make arc-*-* obsolete.
443 * NEWS: Mention that arc-*-* has been identifed as obsolete.
444 * MAINTAINERS: Make arc-elf obsolete.
445 * arc-tdep.c: Make file obsolete.
446 * config/arc/arc.mt: Ditto.
447 * config/arc/tm-arc.h: Ditto.
449 2002-08-05 Theodore A. Roth <troth@verinet.com>
451 * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.
453 2002-08-05 Andrew Cagney <ac131313@redhat.com>
455 * mcore-tdep.c (mcore_gdbarch_init): Use
456 generic_unwind_get_saved_register instead of
457 generic_get_saved_register.
458 * v850-tdep.c (v850_gdbarch_init): Ditto.
459 * frv-tdep.c (frv_gdbarch_init): Ditto.
460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
461 * s390-tdep.c (s390_gdbarch_init): Ditto.
462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
463 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
464 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
466 2002-08-05 Joel Brobecker <brobecker@gnat.com>
468 * objfiles.h: Add missing #include "symfile.h"
470 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
472 2002-08-04 Andrew Cagney <ac131313@redhat.com>
474 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
475 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
478 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
480 * NEWS: Cleanup and nitpick.
482 2002-08-03 Andrew Cagney <ac131313@redhat.com>
484 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
486 2002-08-03 Andrew Cagney <ac131313@redhat.com>
488 * Makefile.in (gdbtk-bp.o): Update dependencies.
489 (gdbtk-register.o): Ditto.
490 (gdbtk-varobj.o): Ditto.
492 2002-08-03 Andrew Cagney <cagney@redhat.com>
494 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
495 m68hc11_fetch_pseudo_register.
496 (m68hc11_pseudo_register_write): Replace
497 m68hc11_store_pseudo_register.
498 (m68hc11_gdbarch_init): Update.
500 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
502 * gdbarch.sh: Include "gdb_string.h".
503 * gdbarch.c: Regenerate.
505 * regcache.c: Include "gdb_string.h".
506 * ax-general.c: Ditto.
509 * fbsd-proc.c: Ditto.
512 * Makefile.in (regcache.o): Update dependencies.
513 (thread.o, gdbarch.o): Ditto.
514 (ax-general.o, gdbarch.o): Ditto.
515 (varobj.o, std-regs.o): Ditto.
516 (fbsd-proc.o): Specify dependencies.
518 2002-08-02 Andrew Cagney <cagney@redhat.com>
520 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
522 (regcache_cooked_write): Ditto.
524 2002-08-02 Andrew Cagney <ac131313@redhat.com>
526 * regcache.c (regcache_cooked_read): New function.
527 (regcache_cooked_write): New function.
528 (read_register_gen): Rewrite using regcache_cooked_read.
529 (write_register_gen): Rewrite using regcache_cooked_write.
531 * regcache.h (regcache_cooked_read, regcache_cooked_write):
534 2002-08-02 Andrew Cagney <cagney@redhat.com>
536 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
537 Replace the architecture methods register_read and register_write.
538 * gdbarch.h, gdbarch.c: Regenerate.
539 * regcache.c (init_regcache_descr): Update.
540 (read_register_gen): Update.
541 (write_register_gen): Update.
542 (supply_register): Update comment.
544 * sh-tdep.c (sh_gdbarch_init): Update.
545 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
546 `regcache' and `gdbarch' parameters. Make `buffer' a void
547 pointer. Update code.
548 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
549 `regcache' and `gdbarch' parameters. Make `buffer' a constant
550 void pointer. Update code.
551 (sh64_register_write): Delete.
552 (sh4_register_read): Delete.
553 (sh64_register_read): Delete.
554 (sh4_register_write): Delete.
555 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
556 void pointer, `to' parameter a void pointer.
557 (sh_sh64_register_convert_to_raw): Ditto.
559 2002-08-01 Kevin Buettner <kevinb@redhat.com>
561 * mips-tdep.c (mips_register_virtual_type): Use architecture
562 invariant return values.
564 2002-08-01 Andrew Cagney <cagney@redhat.com>
566 * linux-proc.c: Include "gdb_string.h".
567 * Makefile.in (linux-proc.o): Update dependency list.
569 2002-08-01 Kevin Buettner <kevinb@redhat.com>
571 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
574 2002-08-01 Grace Sainsbury <graces@redhat.com>
576 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
577 to_insert_watchpoint, to_remove_watchpoint,
578 to_stopped_by_watchpoint, to_stopped_data_address,
579 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
580 target vecctor. Define their corresponding macros so they call
583 * target.c: Add default and debug versions of for
584 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
585 to_insert_watchpoint, to_remove_watchpoint,
586 to_stopped_by_watchpoint, to_stopped_data_address,
587 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
589 2002-08-01 Kevin Buettner <kevinb@redhat.com>
591 * mips-tdep.c (mips_register_virtual_type): New function.
592 (mips_gdbarch_init): Register mips_register_virtual_type()
593 with gdbarch machinery.
594 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
595 this file instead of tm-bigmips.h.
596 (MIPS_REGSIZE): Delete this macro.
597 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
598 multiarch version in mips-tdep.c will be found.
600 2002-08-01 Andrew Cagney <cagney@redhat.com>
602 * NEWS: Menion that CHILL has been made obsolete.
604 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
605 * gdbserver/Makefile.in: Ditto.
606 * stabsread.c (read_range_type): Ditto.
608 * language.c (binop_type_check): Ditto.
609 (binop_result_type): Ditto.
610 (integral_type): Ditto.
611 (character_type): Ditto.
612 (string_type): Ditto.
613 (boolean_type): Ditto.
614 (structured_type): Ditto.
615 (lang_bool_type): Ditto.
616 (binop_type_check): Ditto.
617 * language.h (_LANG_chill): Ditto.
618 * dwarfread.c (set_cu_language): Ditto.
619 * dwarfread.c (CHILL_PRODUCER): Ditto.
620 * dwarfread.c (handle_producer): Ditto.
621 * expression.h (enum exp_opcode): Ditto.
622 * eval.c: Ditto for comments.
623 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
624 * expprint.c (print_subexp): Ditto.
625 (print_subexp): Ditto.
626 * valops.c (value_cast): Ditto.
627 (search_struct_field): Ditto.
628 * value.h (COERCE_VARYING_ARRAY): Ditto.
629 * symfile.c (init_filename_language_table): Ditto.
630 (add_psymbol_with_dem_name_to_list): Ditto.
631 * valarith.c (value_binop): Ditto.
633 * valops.c (value_slice): Ditto.
634 * symtab.h (union language_specific): Ditto.
635 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
636 (SYMBOL_DEMANGLED_NAME): Ditto.
637 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
638 * defs.h (enum language): Ditto.
639 * symtab.c (got_symtab): Ditto.
640 * utils.c (fprintf_symbol_filtered): Ditto.
642 * ch-typeprint.c: Make file obsolete.
643 * ch-valprint.c: Make file obsolete.
644 * ch-lang.h: Make file obsolete.
645 * ch-exp.c: Make file obsolete.
646 * ch-lang.c: Make file obsolete.
648 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
650 (TARGET_FLAGS_TO_PASS): Ditto.
651 (CHILLFLAGS): Obsolete.
653 (CHILL_FOR_TARGET): Obsolete.
654 (CHILL_LIB): Obsolete.
655 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
657 (HFILES_NO_SRCDIR): Remove ch-lang.h.
658 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
660 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
663 2002-07-31 Joel Brobecker <brobecker@gnat.com>
665 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
666 This does not change anything at the moment, but will be helpful
667 later when full Ada support is integrated.
669 2002-07-31 Kevin Buettner <kevinb@redhat.com>
671 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
674 2002-07-31 Kevin Buettner <kevinb@redhat.com>
676 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
677 and save it in a local variable. Use variable in later test.
679 2002-07-31 Kevin Buettner <kevinb@redhat.com>
681 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
682 test. (Thanks to Daniel Jacobowitz.)
684 2002-07-31 Kevin Buettner <kevinb@redhat.com>
686 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
687 (mips_abi_strings): Add "n64".
688 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
690 2002-07-31 Kevin Buettner <kevinb@redhat.com>
692 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
693 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
695 2002-07-31 Kevin Buettner <kevinb@redhat.com>
697 * utils.c (host_pointer_to_address, address_to_host_pointer):
698 Use gdb_assert() instead of explicit call to internal_error().
700 2002-07-30 Kevin Buettner <kevinb@redhat.com>
702 * Makefile.in (rs6000-nat.o): Update dependencies.
704 From Nicholas Duffek:
705 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
706 (aix-thread.o): New rule.
707 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
708 * config/powerpc/aix432.mh: New file.
710 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
712 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
713 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
714 (fetch_core_registers, ppc_linux_supply_gregset)
715 (ppc_linux_supply_fpregset): New functions.
716 (ppc_linux_regset_core_fns): New.
717 (_initialize_ppc_linux_tdep): Call add_core_fns.
718 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
719 and ppc_linux_supply_gregset.
720 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
721 (supply_fpregset): Call ppc_linux_supply_fpregset.
722 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
724 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
726 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
728 * symtab.c (lookup_symbol): Demangle before lowercasing.
730 2002-07-30 Andrew Cagney <ac131313@redhat.com>
732 * symtab.h: Replace #include "gdb_obstack.h" with opaque
734 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
735 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
736 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
737 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
739 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
740 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
741 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
742 (avr-tdep.o, mon960-rom.o): Ditto.
743 (aout_stabs_gnu_h): Define.
744 (symtab_h): Remove $(gdb_obstack_h).
746 2002-07-30 Jim Blandy <jimb@redhat.com>
748 Patch from David Carlton <carlton@math.stanford.edu>:
749 * gdbinit.in: Move the `dir' commands that add GDB's own source
750 directory to the search path to the end, so that the `gdb' source
751 directory will be searched first.
753 2002-07-29 Andrew Cagney <ac131313@redhat.com>
755 * gdb_obstack.h: New file.
756 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
757 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
758 * objfiles.h: Include "gdb_obstack.h".
759 * Makefile.in (gdb_obstack_h): Define.
760 (symtab_h): Add $(gdb_obstack_h).
761 (objfiles_h): Add $(gdb_obstack_h).
763 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
764 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
765 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
766 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
767 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
768 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
769 * symfile.c, coffread.c, c-typeprint.c: Ditto.
770 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
772 * Makefile.in (bcache.o): Update dependencies.
773 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
774 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
775 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
776 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
777 (stabsread.o, symfile.o, symmisc.o): Ditto.
778 (symtab.o, typeprint.o, macroexp.o): Ditto.
779 (macrotab.o, mdebugread.o): Ditto.
780 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
781 (coff_ecoff_h, aout_aout64_h): Define.
782 (aout_stabs_gnu_h, libaout_h): Define.
784 2002-07-29 Andrew Cagney <cagney@redhat.com>
786 * regcache.c (struct regcache_descr): Rename nr_registers to
787 nr_cooked_registers. Revise comments describing the structure
789 (init_regcache_descr): Update.
790 (init_legacy_regcache_descr): Update.
791 (read_register_gen, write_register_gen): When a cooked register in
792 the raw register range, directly access the value from the raw
795 2002-07-29 Andrew Cagney <ac131313@redhat.com>
797 * z8k-tdep.c: Do not include "obstack.h".
798 * h8300-tdep.c, h8500-tdep.c: Ditto.
799 * m68hc11-tdep.c, sh-tdep.c: Ditto.
800 * valprint.c, v850-tdep.c: Ditto.
801 * d10v-tdep.c, mn10300-tdep.c: Ditto.
802 * mn10200-tdep.c: Ditto.
804 * Makefile.in (z8k-tdep.o): Update dependencies.
805 (m68hc11-tdep.o, valprint.o): Ditto.
806 (v850-tdep.o, d10v-tdep.o): Ditto.
807 (mn10300-tdep.o, sparc-tdep.o): Ditto.
808 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
809 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
810 (sh_opc_h, gdb_sim_sh_h): Define.
811 (elf_sh_h, elf_bfd_h): Define.
812 (opcode_m68hc11_h): Define.
813 (OPCODES_SRC, OPCODES_DIR): define.
814 (OPCODES): Use $(OPCODES_DIR).
815 (gdb_sim_d10v_h): Rename sim_d10v_h.
816 (gdb_sim_arm_h): Rename sim_arm_h.
818 2002-07-26 Kevin Buettner <kevinb@redhat.com>
820 * utils.c (host_pointer_to_address, address_to_host_pointer):
821 Change internal_error() message to indicate function responsible
824 2002-07-26 Kevin Buettner <kevinb@redhat.com>
826 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
827 calls to local_hex_string_custom().
829 2002-07-26 Kevin Buettner <kevinb@redhat.com>
831 * irix5-nat.c: Move IRIX shared library support from here...
832 * solib-irix.c: ...to here. Revised substantially to work with
833 generic solib framework.
835 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
836 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
837 * mips-irix-tdep.c: New file.
839 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
840 (mips-irix-tdep.o, solib-irix.o): New rules.
841 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
843 * config/mips/irix6.mt (TDEPFILES): Likewise.
844 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
846 2002-07-26 Kevin Buettner <kevinb@redhat.com>
848 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
849 disabled (via ``#if 0'') includes.
851 2002-07-26 Kevin Buettner <kevinb@redhat.com>
853 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
854 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
855 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
856 Add support for the fpscr register.
857 * rs6000-nat.c (regmap, fetch_inferior_registers)
858 (store_inferior_registers, fetch_core_registers): Likewise.
860 2002-07-26 Kevin Buettner <kevinb@redhat.com>
862 * rs6000-nat.c (language.h): Include.
863 (special_regs): Delete this array.
864 (regmap): New function.
865 (fetch_register, store_register): Use regmap() to map gdb
866 register numbers to ptrace register numbers. Also, use
867 outputs from regmap() to make decisions regarding type of
868 ptrace() call to make. In particular, don't compare against
869 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
870 (fetch_inferior_registers, store_inferior_registers): Where
871 possible, obtain register numbers from tdep struct. Don't
872 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
873 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
874 (LAST_UISA_SP_REGNUM): Delete.
876 2002-07-25 Kevin Buettner <kevinb@redhat.com>
878 * rs6000-nat.c (ppc-tdep.h): Include.
879 (fetch_registers, store_register, fetch_core_registers): Don't
880 access registers[] directly. Instead, use supply_register() or
881 regcache_collect() as appropriate.
882 (find_toc_address): Format hex address with local_hex_string().
884 2002-07-25 Andrew Cagney <ac131313@redhat.com>
886 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
889 2002-07-24 Tom Tromey <tromey@redhat.com>
891 * jv-exp.y: Marked all strings with _().
892 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
894 (MethodInvocation, CastExpression, parse_number, yyerror,
895 java_type_from_name, push_expression_name, yylex): Typo fixes.
897 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
899 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
900 (tee_file_flush, tee_file_write, tee_file_fputs)
901 (tee_file_isatty): New.
902 * ui-file.h (tee_file_new): Add prototype.
904 2002-07-24 Aidan Skinner <aidan@velvet.net>
906 * ada-lang.c: Change k&r style function definitions to prototyped
908 * ada-typeprint.c: Change k&r style function definitions to prototyped
910 * ada-valprint.c: Change k&r style function definitions to prototyped
913 2002-07-24 Andrew Cagney <cagney@redhat.com>
915 * README: Remove reference to remote-bug.
916 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
918 (m88k-nat.o): Delete rule.
919 (m88k-tdep.o): Delete rule.
920 (remote-bug.o): Delete rule.
921 * MAINTAINERS: Mark as obsolete.
922 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
923 * m88k-tdep.c: Make file obsolete.
924 * config/m88k/m88k.mh: Ditto.
925 * config/m88k/delta88v4.mh: Ditto.
926 * config/m88k/delta88v4.mt: Ditto.
927 * config/m88k/delta88.mt: Ditto.
928 * config/m88k/delta88.mh: Ditto.
929 * remote-bug.c: Ditto.
930 * config/m88k/tm-delta88.h: Ditto.
931 * config/m88k/nm-delta88v4.h: Ditto.
932 * config/m88k/xm-delta88.h: Ditto.
933 * config/m88k/xm-dgux.h: Ditto.
934 * config/m88k/tm-m88k.h: Ditto.
935 * config/m88k/nm-m88k.h: Ditto.
936 * config/m88k/tm-delta88v4.h: Ditto.
939 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
940 and m88*-*-* obsolete.
941 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
944 2002-07-24 Andrew Cagney <cagney@redhat.com>
946 * findvar.c (extract_unsigned_integer): Make `addr' parameter
947 constant. Same for local pointer variables.
948 (extract_signed_integer): Ditto.
949 * defs.h (extract_unsigned_integer): Update.
950 (extract_signed_integer): Update.
952 2002-07-24 Kevin Buettner <kevinb@redhat.com>
954 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
955 * gdbserver/configure: Regenerate.
956 * gdbserver/config.in: Regenerate.
958 2002-07-24 Andrew Cagney <cagney@redhat.com>
960 * regcache.c (regcache_raw_write): Change buf parameter to a
961 constant void pointer.
962 (regcache_raw_read): Change buf parameter to a void pointer.
963 (legacy_write_register_gen): Change myaddr parameter a constant
965 (supply_register): Change val parameter to a const void pointer.
966 * regcache.h (regcache_raw_write): Update declaration.
967 (regcache_raw_read): Update declaration.
968 (supply_register): Update declaration.
970 2002-07-24 Tom Tromey <tromey@redhat.com>
972 * defs.h (gdb_readline_wrapper): Declare.
973 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
974 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
975 * top.c (gdb_readline_wrapper): New function.
976 (command_line_input): Use it.
978 2002-07-24 Andrew Cagney <cagney@redhat.com>
980 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
981 regcache_read and regcache_write.
982 (regcache_raw_read_as_address): Replace regcache_read_as_address.
983 * regcache.c: Update.
984 * sh-tdep.c (sh64_push_arguments): Update comment.
985 (sh_pseudo_register_read): Update.
986 (sh_pseudo_register_write): Update.
987 (sh4_register_read): Update.
988 (sh4_register_write): Update.
989 (sh64_pseudo_register_read): Update.
990 (sh64_pseudo_register_write): Update.
991 (sh64_register_read): Update.
992 (sh64_register_write): Update.
993 * i386-tdep.c (i386_extract_return_value): Update.
994 (i386_extract_struct_value_address): Update.
995 (i386_extract_return_value): Update.
996 * blockframe.c (generic_read_register_dummy): Update.
997 (generic_call_dummy_register_unwind): Update
998 * infrun.c (write_inferior_status_register): Update.
1000 2002-07-23 Jim Blandy <jimb@redhat.com>
1002 * parser-defs.h (expression_context_pc): Make this extern.
1003 (Thanks to Michael Snyder.)
1005 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1007 GDB 5.2.1 released from 5.2 branch.
1008 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1009 * README: Update to mention 5.2.1.
1011 2002-07-23 Mark Salter <msalter@redhat.com>
1013 * remote.c (remote_read_bytes): Fix check for error.
1015 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1017 * aix-thread.c (language.h): Include.
1018 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1019 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1020 Print newlines at end of debug messages.
1021 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1022 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1024 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1026 * aix-thread.c (ppc-tdep.h): Include.
1027 (special_register_p): New function.
1028 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1029 (store_regs_user_thread): Use register number information from
1030 gdbarch_tdep struct instead of hardcoded offsets relative to
1031 FIRST_UISA_SP_REGNUM.
1032 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1033 special_register_p() instead of using FPLAST_REGNUM and
1034 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1035 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1036 will be MQ's register number.
1038 2002-07-22 Michael Snyder <msnyder@redhat.com>
1040 * aix-thread.c (ops): Rename to aix_thread_ops.
1041 (base_ops): Rename to base_target.
1042 (ops_attach): Rename to aix_thread_attach.
1043 (ops_detach): Rename to aix_thread_detach.
1044 (ops_resume): Rename to aix_thread_detach.
1045 (ops_wait): Rename to aix_thread_wait.
1046 (ops_kill): Rename to aix_thread_kill.
1047 (init_ops): Rename to init_aix_thread_ops.
1048 (ops_fetch_register): Rename to aix_thread_fetch_register.
1049 (ops_store_register): Rename to aix_thread_store_register.
1050 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1051 (ops_thread_alive): Rename to aix_thread_thread_alive.
1052 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1053 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1054 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1055 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1056 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1057 (store_regs_lib): Rename to store_regs_user_thread.
1058 (store_regs_kern): Rename to store_regs_kernel_thread.
1060 2002-07-22 Michael Snyder <msnyder@redhat.com>
1062 * aix-thread.c (ops_prepare_to_store): Eliminate.
1063 (init_ops): Don't initialize ops.prepare_to_store.
1064 (store_regs_kern): Pre-fetch register buffers from child,
1065 because some registers may not be in the cache. Copy
1066 regs from register cache only if they are cached.
1067 (store_regs_lib): Copy regs from register cache only
1069 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1070 fill_gprs64): Ditto.
1072 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1074 * aix-thread.c (gdb_assert.h): Include.
1075 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1076 register sizes (from register cache) match size of buffer holding
1078 (fill_sprs32): Change parameter types to match those in the ptrace()
1080 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1081 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1083 2002-07-22 Michael Snyder <msnyder@redhat.com>
1085 * aix-thread.c (supply_sprs64): Cosmetic change.
1086 (supply_sprs32): Cosmetic change.
1087 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1088 (fill_sprs64): Use regcache_collect instead of read_register.
1089 (store_regs_lib): Use regcache_collect instead of
1090 read_register. Use fill_sprs32 instead of fill_sprs64,
1091 if debugging a 32-bit architecture.
1092 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1093 out of the register cache, instead of passing a pointer into
1094 the register cache directly to ptrace. Use regcache_collect
1095 insteaad of read_register.
1096 (ops_prepare_to_store): Use target_read_registers instead
1097 of read_register_bytes.
1099 2002-07-20 Aidan Skinner <aidan@velvet.net>
1101 * MAINTAINERS: Add self under write after approval.
1103 2002-07-20 Aidan Skinner <aidan@velvet.net>
1105 * ada-tasks.c: Change k&r style function definitions to prototyped
1108 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1110 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1111 * x86-64-tdep.c: Include "objfiles.h".
1112 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1113 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1115 2002-07-17 Michal Ludvig <michal@suse.cz>
1117 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1118 (update_context): Initialise cfa variable.
1120 2002-07-17 Michael Snyder <msnyder@redhat.com>
1122 * aix-thread.c: Shorten some long lines.
1123 Bring comments into line with code spec.
1125 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1127 * infrun.c: Re-indent using gdb_indent.sh.
1129 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1131 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1132 Leave the indentation temporarily untouched, to minimize the diffs.
1134 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1136 * stabsread.c: Make os9k sections of the code obsolete,
1138 * stabsread.h: Make os9k sections of the code obsolete.
1140 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1142 * linux-low.c (regsets_store_inferior_registers): Add free()
1143 at the end of a loop to prevent memory leak.
1144 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1145 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1146 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1148 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1150 2002-07-17 Jim Blandy <jimb@redhat.com>
1152 * macrocmd.c (info_macro_command): Remove newline from error
1155 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1157 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1158 (sh_gdbarch_init): Use it for sh-dsp.
1160 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1162 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1163 64-bit DWARF2 format.
1165 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1167 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1168 <sys/proc.h> when not available.
1170 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1172 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1173 * stabsread.c: Make os9k sections of the code obsolete.
1174 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1175 * config/i386/i386os9k.mt: Make file obsolete.
1176 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1177 (COMMON_OBS): Remove os9kread.o
1178 (SFILES): Remove os9kread.c.
1179 (os9kread.o, remote-os9k.o): Make target obsolete.
1180 * remote-os9k.c: Make file obsolete.
1181 * os9kread.c: Make file obsolete.
1184 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1186 * NEWS: Mention that the FR30 has been made obsolete.
1187 * fr30-tdep.c: Make file obsolete.
1188 * config/fr30/tm-fr30.h: Ditto.
1189 * config/fr30/fr30.mt: Ditto.
1190 * configure.tgt: Make fr30-*-elf obsolete.
1191 * MAINTAINERS: Make fr30-elf obsolete.
1193 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1195 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1196 found is not inside a section.
1198 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1200 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1202 (pdc_realloc): Use xrealloc() instead of realloc().
1204 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1206 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1207 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1208 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1211 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1213 * aix-thread.c (ptrace_check): Eliminate goto.
1214 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1217 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1219 * aix-thread.c (gdbcmd.h): Include.
1220 (DEBUG, DBG, DBG2, dbg): Eliminate.
1221 (debug_aix_thread): New static global.
1222 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1223 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1224 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1225 invocations to DBG and DBG2 macros to test against
1226 ``debug_aix_thread'' and call fprintf_unfiltered().
1227 (_initialize_aix_thread): Add new command "set debug aix-thread".
1229 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1231 From Gerhard Tonn <TON@de.ibm.com>:
1232 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1233 instead of supply_register.
1235 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1237 * dwarf2cfi.c: Include "gdb_assert.h".
1238 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1240 (update_context): Do not use __func__. Add missing ``break''.
1241 (update_context): Do not use __func__.
1243 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1245 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1246 and its setting. Set gdbarch instruction printing functions
1247 directly. For non-rs6000 case use new function
1248 gdb_print_insn_powerpc.
1249 (gdb_print_insn_powerpc): New function.
1251 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1253 * NEWS: Mention that the d30v has been marked obsolete.
1254 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1255 * configure.tgt: Mark d30v-*-* as obsolete.
1256 * d30v-tdep.c: Mark file as obsolete.
1257 * config/d30v/d30v.mt: Ditto.
1258 * config/d30v/tm-d30v.h: Ditto.
1260 2002-07-13 Aidan Skinner <aidan@velvet.net>
1262 * ada-tasks.c (add_task_entry): replace calls to
1263 malloc() with xmalloc
1264 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1266 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1267 ada_finish_decode_line_1, all_sals_for_line
1268 ada_breakpoint_rewrite): replace calls to free() with xfree()
1270 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1272 From Nicholas Duffek (with minor changes by Martin Hunt,
1273 Louis Hamilton, and Kevin Buettner):
1274 * aix-thread.c: New file.
1276 2002-07-12 Petr Sorfa <petrs@caldera.com>
1278 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1279 complaint for invalid attribute class or form.
1280 (read_func_scope): DW_AT_frame_base
1281 better handling of DW_AT_block*.
1282 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1283 better handling of DW_AT_block*.
1284 (read_common_block): DW_AT_location
1285 better handling of DW_AT_block*.
1286 (read_partial_die): DW_AT_location better handling
1288 (new_symbol): DW_AT_external better handling of
1289 DW_AT_block*. Proper initialization of variable
1291 (attr_form_is_block): New function that returns true
1292 if the attribute's form is of DW_FORM_block*.
1294 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1296 * valops.c (find_method_list): Remove comment about
1297 removed STATIC_MEMFUNCP argument.
1298 (value_find_oload_method_list): Likewise.
1300 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1302 From Nicholas Duffek:
1303 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1304 target_new_objfile_hook.
1306 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1308 From Nicholas Duffek:
1309 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1312 2002-07-12 Andrew Cagney <cagney@redhat.com>
1314 * MAINTAINERS: Mention --enable-sim-build-warnings.
1315 (m68hc11-elf): Disable sim build warnings.
1316 (m32r-elf): Mark as broken obsolete candidate.
1317 (x86_64-linux-gnu): Mark as buildable with -Werror.
1318 (arm-elf): Change -w to ``,'' which enables warnings but not
1321 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1323 * bcache.h: Update copyright.
1324 (struct bstring, struct bcache): Move definition to "bcache.c".
1325 Replaced by opaque declaration.
1326 (bcache_xfree): Replace free_bcache.
1327 (bcache_xmalloc, bcache_memory_used): Declare.
1329 * bcache.c: Update copyright.
1330 (struct bstring, struct bcache): Moved to here from "bcache.h".
1332 (bcache_xmalloc, bcache_memory_used): New functions.
1333 (bcache_xfree): Replace function free_bcache.
1335 * Makefile.in (objfiles.o): Add $(bcache_h).
1336 (objfiles_h): Remove $(bcache_h).
1337 (symfile.o): Add $(bcache_h).
1339 * symmisc.c: Update copyright.
1340 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1341 (print_objfile_statistics): Use bcache_memory_used.
1343 * symfile.c: Include "bcache.h".
1344 (reread_symbols): Use bcache_xfree.
1345 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1346 (add_psymbol_to_list): Pass psymbol_cache by value.
1347 (add_psymbol_with_dem_name_to_list): Ditto.
1349 * objfiles.h: Update copyright.
1350 (struct bcache): Declare opaque. Do not include "bcache.h".
1351 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1353 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1355 * objfiles.c: Include "bcache.h". Update copyright.
1356 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1358 (free_objfile): Use bcache_xfree.
1360 2002-07-11 Grace Sainsbury <graces@redhat.com>
1362 * monitor.c (monitor_fetch_register): Make name a constant.
1363 (monitor_store_register): Same.
1365 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1367 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1368 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1369 (finish_block) For non-function blocks, hash the symbol table. For
1370 function blocks, mark the symbol table as unhashed.
1371 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1372 (msymbol_hash_iw): Likewise.
1373 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1375 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1376 (lookup_minimal_symbol): Likewise for both.
1377 * symtab.h (struct block): Add `hashtable' flag. Comment the
1379 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1380 (ALL_BLOCK_SYMBOLS): Update.
1381 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1382 (struct symbol): Add `hash_next' pointer.
1383 * symtab.c (lookup_block_symbol): Search using the hash table when
1385 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1386 (search_symbols, find_addr_symbol): Likewise.
1388 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1389 (read_dst_symtab): Likewise.
1390 * jv-lang.c (get_java_class_symtab): Likewise.
1391 * mdebugread.c: Include "gdb_assert.h".
1392 (shrink_block): Assert that the block being modified is not hashed.
1393 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1394 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1396 (dump_symtab): Recognize hashed blocks.
1397 * printcmd.c (print_frame_args): Assert that function blocks do not
1398 have hashed symbol tables.
1399 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1400 (fill_in_ada_prototype, debug_print_block): Likewise.
1401 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1403 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1405 * stack.c (print_frame): Use result of frame_address_in_block()
1406 instead of fi->pc when evaluating symbols.
1407 (backtrace_command_1): Ditto.
1409 2002-07-11 Andrew Cagney <cagney@redhat.com>
1411 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1414 * arm-tdep.c (arm_register_name): Make return type constant.
1416 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1418 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1420 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1421 * s390-tdep.c (s390_fp_regnum): Ditto.
1422 (s390_read_fp): Ditto.
1423 (s390_pop_frame): Ditto.
1424 (_initialize_s390_tdep): Ditto.
1425 * remote.c (get_remote_state): Ditto.
1426 * procfs.c (mappingflags): Ditto.
1427 * memattr.c (_initialize_mem): Ditto.
1428 * mcore-tdep.c (mcore_pop_frame): Ditto.
1429 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1430 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1431 * language.c (set_case_str): Ditto.
1432 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1433 * frv-tdep.c (new_variant): Ditto.
1434 (frv_stopped_data_address): Ditto.
1435 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1436 (context_alloc): Ditto.
1437 (frame_state_alloc): Ditto.
1438 (unwind_tmp_obstack_init): Ditto.
1439 (unwind_tmp_obstack_free): Ditto.
1440 (cfi_read_fp): Ditto.
1441 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1442 (cris_pop_frame): Ditto.
1443 * c-lang.c (scanning_macro_expansion): Ditto.
1444 (finished_macro_expansion): Ditto.
1445 (c_preprocess_and_parse): Ditto.
1446 * gdbarch.sh: Ditto.
1447 * gdbarch.h, gdbarch.c: Regenerate.
1448 * config/mn10200/tm-mn10200.h: Adjust indentation.
1449 * target.c: Adjust indentation.
1450 * symtab.h: Adjust indentation.
1451 * stabsread.h: Adjust indentation.
1452 * remote-es.c: Adjust indentation.
1453 * os9kread.c: Adjust indentation.
1455 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1457 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1458 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1460 2002-07-10 Grace Sainsbury <graces@redhat.com>
1462 * NEWS: Mention m68k, mcore multi-arching.
1463 * MAINTAINERS: Change status of m68k, mcore to reflect
1466 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1468 * valops.c (find_overload_match): Free oload_syms.
1470 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1472 Define HAVE_SYS_PROC_H if sys/proc.h exists
1473 * configure.in: Add check for sys/proc.h
1474 * config.in: Regenerate.
1475 * configure: Regenerate.
1477 2002-07-09 Grace Sainsbury <graces@redhat.com>
1479 * config/m68k/tm-m68k.h: Remove macros wrapped in
1480 #if !GDB_MULTI_ARCH.
1482 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1484 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1485 (perror_with_name, remote_close, remote_open, expect, play): Static.
1487 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1489 * config.in, configure: Regenerate.
1491 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1493 * dwarf2cfi.c: Include "gcore.h".
1494 (execute_stack_op): Fix implementation of the
1495 DW_OP_deref and DW_OP_deref_size operators by letting do their
1496 lookup in the target.
1498 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1500 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1501 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1504 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1506 Fix PR gdb/595, gdb/602
1507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1508 Don't call value_cast, just read the vtable pointer; update comments
1511 2002-07-05 Grace Sainsbury <graces@redhat.com>
1513 * config/mcore/tm-mcore.h: Remove file.
1514 * config/mcore/mcore.mt: Remove definition of TM_FILE
1515 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1517 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1519 * i386bsd-tdep.c: Include "gdb_string.h".
1521 2002-07-04 Grace Sainsbury <graces@redhat.com>
1523 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1524 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1526 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1527 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1528 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1529 (RETVAL_REGNUM): Move macros from tm-mcore.h
1530 (mcore_reg_struct_has_addr): New function.
1531 (mcore_gdbarch_init): Added initializations for the macros removed
1534 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1536 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
1537 traditonal string branding within the ELF header.
1539 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
1541 * symtab.c (remove_params): New function.
1542 (make_symbol_overload_list): Use it instead of cplus_demangle.
1543 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
1545 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1547 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
1549 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
1551 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
1552 and tdep->sigtramp_end.
1553 * i386obsd-nat.c: New file.
1554 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
1556 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
1557 Don't call get_current_frame().
1559 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
1561 * i386-nat.c (child_post_startup_inferior): New function
1562 calling i386_cleanup_dregs if
1563 I386_USE_GENERIC_WATCHPOINTS is defined.
1564 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
1565 conditional to acknowledge that i386-nat.c has its
1566 own child_post_startup_inferior function.
1568 2002-07-04 Mark Kettenis <kettenis@gnu.org>
1570 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
1571 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
1572 instead of MAX_REGISTER_RAW_SIZE.
1573 (i386_extract_return_value, i386_extract_struct_value_address):
1574 Convert to use regcache.
1575 (i386_gdbarch_init): Set max_register_raw_size and
1576 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
1577 Set extract_return_value and extract_struct_value_address instead
1578 of their deprecated variants.
1580 Convert i386 target to generic dummy frames.
1581 * i386-tdep.c: Include "symfile.h".
1582 (i386_frameless_signal_p): Consider a function to be frameless if
1583 the pc points at the first instruction of the function.
1584 (i386_frame_chain): Handle (generic) call dummies.
1585 (i386_frame_saved_pc): Likewise.
1586 (i386_frame_init_saved_regs): Remove code dealing with call
1587 dummies on the stack.
1588 (i386_push_dummy_frame): Removed.
1589 (i386_call_dummy_words): Removed.
1590 (i386_fix_call_dummy): Removed.
1591 (i386_push_return_address): New function.
1592 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
1593 parameter, and don't call get_current_frame.
1594 (i386_pop_frame): New function.
1595 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
1596 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
1597 entry_point_address, set call_dummy_breakpoint_offset to 0, set
1598 call_dummy_length to 0, set call_dummy_words to NULL, set
1599 sizeof_call_dummy_words to 0, set fix_call_dummy to
1600 generic_fix_call_dummy, set pc_in_call_dummy to
1601 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
1602 generic_push_dummy_frame, set push_return_address to
1603 i386_push_return_address and set frame_chain_valid to
1604 generic_file_frame_chain_valid.
1606 2002-07-04 Michal Ludvig <mludvig@suse.cz>
1608 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
1609 byte offsets instead of an array of indexes.
1610 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
1612 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1614 * gdbarch.sh (struct regcache): Add opaque declaration.
1615 (EXTRACT_RETURN_VALUE): New architecture method.
1616 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
1617 * gdbarch.h, gdbarch.c: Regenerate.
1618 * arch-utils.c (legacy_extract_return_value): New function.
1619 * arch-utils.h (legacy_extract_return_value): Declare.
1620 * values.c (value_being_returned): Re-enable code handling
1621 EXTRACT_STRUCT_VALUE_ADDRESS. Move
1622 deprecated_grub_regcache_for_registers call to block handling
1623 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
1624 (EXTRACT_RETURN_VALUE): Do not define.
1626 2002-07-03 Grace Sainsbury <graces@redhat.com>
1628 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
1629 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
1630 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
1631 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
1632 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
1633 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
1634 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
1635 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
1636 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
1637 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
1638 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
1639 argument so the function fits the prototype in the architecture
1641 (mcore_pop_frame): Remove argument so the function fits the
1642 prototype. Use get_current_frame instead of the argument.
1643 (mcore_push_arguments): Change type of struct_return so the
1644 function can be used in the architecture vector.
1645 (mcore_store_struct_return): Add.
1646 (mcore_frame_init_saved_regs): Add.
1647 (mcore_gdbarch_init): Add function calls to replace the macros
1648 removed from tm-mcore.h
1650 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1652 * infcmd.c (print_return_value): Remove compatibility code calling
1653 deprecated_grub_regcache_for_registers.
1655 * values.c: Include "regcache.h".
1656 (value_being_returned): Update. Use
1657 deprecated_grub_regcache_for_registers to extract the register
1659 * value.h (value_being_returned): Change ``retbuf'' parameter to a
1660 ``struct regcache''.
1661 * Makefile.in (values.o): Add dependency on $(regcache_h).
1663 * inferior.h (run_stack_dummy): Change type of second parameter to
1664 a ``struct regcache''.
1665 * valops.c (hand_function_call): Change type of retbuf to ``struct
1666 regcache''. Allocate using regcache_xmalloc, clean using
1667 make_cleanup_regcache_xfree.
1668 * infcmd.c (run_stack_dummy): Update. Use
1669 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
1671 * regcache.c (do_regcache_xfree): New function.
1672 (make_cleanup_regcache_xfree): New function.
1673 * regcache.h (make_cleanup_regcache_xfree): Declare.
1675 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1677 * event-top.c (command_line_handler): Don't read past
1678 beginning of buffer.
1680 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1682 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
1684 (varobj_create): Store frame_id for root.
1685 (varobj_gen_name): Use xasprintf.
1686 (varobj_update): Save and restore frame using get_frame_id() and
1688 (create_child): Use xasprintf.
1689 (new_root_variable): Initialize frame_id.
1690 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
1691 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
1692 to prevent memory leak.
1694 2002-07-03 Andrew Cagney <ac131313@redhat.com>
1696 * valops.c (hand_function_call): Move declaration of retbuf to
1697 start of function, allocate using malloc, add a cleanup but before
1698 the inf_status cleanup, cleanup the buffer. Rename local variable
1699 old_chain to inf_status_cleanup.
1701 2002-07-03 Martin M. Hunt <hunt@redhat.com>
1703 * top.c (execute_command): Use cmd_func() and cmd_func_p().
1705 * cli/cli-decode.c (cmd_func_p): New function.
1706 (cmd_func): New function.
1708 * command.h: Add cmd_func() and cmd_func_p().
1710 2002-07-03 Grace Sainsbury <graces@redhat.com>
1712 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
1713 (REGISTER_SIZE): Remove.
1714 (MAX_REGISTER_RAW_SIZE): Remove.
1715 (REGISTER_VIRTUAL_TYPE): Remove.
1716 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
1717 (REGISTER_NAME): Remove.
1718 (USE_GENERIC_DUMMY_FRAMES): Remove.
1719 (CALL_DUMMY): Remove.
1720 (CALL_DUMMY_START_OFFSET): Remove.
1721 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
1722 (CALL_DUMMY_LOCATION): Remove.
1723 (FIX_CALL_DUMMY): Remove.
1724 (CALL_DUMMY_ADDRESS): Remove.
1725 (SIZEOF_CALL_DUMMY_WORDS): Remove.
1726 (SAVE_DUMMY_FRAME_TOS): Remove.
1727 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
1728 (mcore_register_virtual_type): New function.
1729 (mcore_register_byte): New function.
1730 (mcore_register_size): New function.
1731 (mcore_register_name): New function.
1732 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
1733 macros removed from tm-mcore.h.
1734 (mcore_dump_tdep): Add.
1735 (_initialize_mcore_tdep): Add gdbarch_register call.
1737 2002-07-03 Mark Kettenis <kettenis@gnu.org>
1739 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
1740 frameless_look_for_prologue, such that we actually call this
1743 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1745 * frame.h (frame_address_in_block): New function.
1747 * blockframe.c (frame_address_in_block): New function extracted
1748 from get_frame_block().
1749 (get_frame_block): Use frame_address_in_block().
1750 (block_innermost_frame): Use frame_address_in_block() to match
1751 the frame pc address against the block boundaries rather than
1752 the frame pc directly. This prevents a failure when a frame pc
1753 is actually a return-address pointing immediately after the end
1756 2002-07-02 Grace Sainsbury <graces@redhat.com>
1758 * MAINTAINERS: Add self under write after approval.
1760 2002-07-02 Grace Sainsbury <graces@redhat.com>
1762 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
1763 used in architecture vector. The default is
1764 m68k_local_breakpoint_from_pc.
1765 (m68k_local_breakpoint_from_pc): Add.
1766 (enum): Add register numbers from tm-m68k.h.
1767 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
1769 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
1770 GDB_MULTI_ARCH_PARTIAL.
1771 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
1772 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
1774 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
1775 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
1776 to enum in m68k-tdep.c
1778 2002-07-02 Joel Brobecker <brobecker@gnat.com>
1780 * solib-osf.c (open_map): Compute the list of shared libraries
1781 loaded by the inferior, rather than the list of libraries loaded
1782 by GDB itself. Otherwise, GDB ends up reading the symbols from
1783 the wrong shared libraries...
1785 2002-07-02 Mark Kettenis <kettenis@gnu.org>
1787 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
1788 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
1790 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
1792 (FRAMELESS_SIGNAL): Remove function.
1793 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
1794 i386_linux_saved_pc_after_call): Removed.
1795 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
1796 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
1797 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
1799 * i386-tdep.c (i386_frameless_signal_p): New function.
1800 (i386_frame_chain): Deal with frameless signals.
1801 (i386_sigtramp_saved_sp): New function.
1802 (i386_frame_saved_pc): Deal with frameless signals.
1803 (i386_saved_pc_after_call): Make sure the correct value is
1804 returned just after entry into a sigtramp.
1805 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
1806 i386fbsd4_sc_sp_offset): New variables.
1807 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
1808 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
1809 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
1810 similiar to what we already did for sc_pc_offset.
1811 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
1814 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
1816 2002-07-02 Michal Ludvig <mludvig@suse.cz>
1818 * config/i386/tm-x86-64linux.h: New.
1819 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
1821 * config/i386/nm-x86-64.h: Rename to ...
1822 * config/i386/nm-x86-64linux.h: ... this one.
1823 * config/i386/x86-64linux.mh: Reflect the above change.
1825 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1827 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
1828 with sigcontext_addr. Add sc_sp_offset.
1829 (i386bsd_sigtramp_saved_pc): Remove prototype.
1830 (i386bsd_sicontext_addr): Add prototype.
1831 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
1832 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
1833 (i386_svr4_sigtramp_saved_pc): Removed.
1834 (i386_svr4_sigcontext_addr): New function.
1835 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1836 Initialize tdep->sigcontext_addr instead. Initialize
1837 tdep->sc_pc_offset and tdep->sc_sp_offset.
1838 (i386_gdbarch_init): Likewise.
1839 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
1841 (i386bsd_sigtramp_saved_pc): Remove function.
1842 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
1843 Initialize tdep->sigcontext_addr instead. Initialize
1845 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
1846 of tdep->sigtramp_saved_pc.
1847 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
1848 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
1851 * i386-tdep.c (i386_frameless_function_invocation,
1852 i386_frame_num_args, i386_frame_init_saved_regs,
1853 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
1854 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
1855 i386_extract_return_value, i386_store_return_value,
1856 i386_extract_struct_value_address, i386_register_virtual_type,
1857 i386_register_convertible, i386_register_convert_to_virtual,
1858 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
1859 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
1862 2002-07-01 Mark Kettenis <kettenis@gnu.org>
1864 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
1866 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
1867 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
1868 this macro. Include "value.h".
1870 2002-06-30 Aidan Skinner <aidan@velvet.net>
1872 * ada-exp.tab.c: remove as it's a generated file
1873 * ada-lex.c: remove as it's a generated file
1875 2002-06-30 Mark Kettenis <kettenis@gnu.org>
1877 * config/i386/tm-i386.h (struct frame_info, struct
1878 frame_saved_regs, struct value, struct type): Remove forward
1881 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
1882 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
1883 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
1884 (FILL_FPXREGSET): Define.
1886 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
1888 * configure.tgt (i[3456]86-*-openbsd*): Fold into
1889 i[3456]86-*-netbsd* case.
1890 * config/i386/tm-obsd.h: Removed.
1891 * config/i386/obsd.mt: Removed.
1892 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
1894 (MH_CFLAGS): Add -DYYDEBUG=0.
1896 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
1897 i386nbsd_sc_pc_offset on OpenBSD too.
1899 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
1900 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
1901 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
1903 * i386bsd-tdep.c: Include "arch-utils.h".
1904 (i386bsd_aout_in_solib_call_trampoline): New function.
1905 (i386bsd_init_abi): Set in_solib_call_trampoline to
1906 i386bsd_aout_in_solib_call_trampoline.
1907 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
1908 in_solib_call_trampoline to generic_in_solib_call_trampoline.
1910 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1912 * macrotab.h: Do not include "obstack.h" or "bcache.h".
1913 (struct obstack, struct bcache): Add opaque declarations.
1914 * Makefile.in (macrotab_h): Update
1916 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1918 * blockframe.c (generic_find_dummy_frame): Change return type to
1919 ``struct regcache''.
1920 (struct dummy_frame): Replace field ``registers'' with regcache, a
1921 struct regcache object.
1922 (generic_find_dummy_frame): Update.
1923 (generic_push_dummy_frame): Update. Use regcache_xfree,
1924 regcache_xmalloc and regcache_cpy.
1925 (generic_pop_dummy_frame): Update. Use regcache_cpy and
1927 (deprecated_generic_find_dummy_frame): Update.
1928 (generic_read_register_dummy): Update. Use
1929 regcache_read_as_address.
1930 (generic_call_dummy_register_unwind): Update. Use regcache_read.
1931 (generic_get_saved_register): Update. Use regcache_read.
1933 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1935 * Makefile.in (objfiles_h): Add $(bcache_h).
1936 * objfiles.h: Include "bcache.h".
1938 * Makefile.in (symtab_h): Remove $(bcache_h).
1939 * symtab.h: Do not include "bcache.h".
1941 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1943 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
1944 generic_func_frame_chain_valid.
1946 2002-06-28 David O'Brien <obrien@FreeBSD.org>
1948 * config/i386/nm-fbsd.h: Include <sys/param.h>.
1949 * config/i386/tm-fbsd.h: Likewise.
1951 2002-06-28 Andrew Cagney <ac131313@redhat.com>
1953 * rs6000-tdep.c (rs6000_gdbarch_init): Use
1954 generic_unwind_get_saved_register.
1956 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1958 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
1959 * regcache.c (supply_register): Add missing argument to
1960 register_buffer call.
1962 2002-06-27 Andrew Cagney <ac131313@redhat.com>
1964 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
1965 Solaris /bin/grep does not not like it. From Peter Schauer.
1967 2002-06-26 Tom Tromey <tromey@redhat.com>
1969 * command.h (add_setshow_cmd): Declare.
1970 (add_setshow_cmd_full): Declare.
1971 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
1972 returns void. Use add_setshow_cmd_full.
1973 (add_setshow_cmd_full): New function.
1974 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
1975 (add_setshow_boolean_cmd): Likewise.
1977 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1979 * config/vax/tm-vax.h: Protect from multiple inclusion.
1980 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
1981 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
1982 * config/vax/tm-vaxbsd.h: ...here. New file.
1983 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
1985 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1987 * config/vax/tm-vax.h (BREAKPOINT): Remove.
1988 (BELIEVE_PCC_PROMOTION): Remove.
1989 (AP_REGNUM): Move to...
1990 * config/vax/nm-vax.h: ...here.
1991 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
1992 (vax_breakpoint_from_pc): New function.
1993 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
1994 and gdbarch_believe_pcc_promotion.
1996 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
1998 * Makefile.in (vax_tdep_h): Define.
1999 (vax-tdep.o): Use $(vax_tdep_h).
2000 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2001 (vax_dump_tdep): New function.
2002 (_initialize_vax_tdep): Register vax_dump_tdep.
2003 * vax-tdep.h: Include osabi.h.
2004 (struct gdbarch_tdep): New.
2006 2002-06-26 Andrew Cagney <cagney@redhat.com>
2008 * frame.h (deprecated_generic_find_dummy_frame): Rename
2009 generic_find_dummy_frame.
2010 * blockframe.c (generic_find_dummy_frame): Make static.
2011 (deprecated_generic_find_dummy_frame): New function.
2012 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2013 generic_find_dummy_frame with deprecated_find_dummy_frame.
2014 (sh64_nofp_frame_init_saved_regs): Ditto.
2015 (sh_fp_frame_init_saved_regs): Ditto.
2016 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2017 (s390_frame_chain): Ditto.
2018 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2020 2002-06-26 Grace Sainsbury <graces@redhat.com>
2022 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2023 gdbarch vector are at the top.
2025 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2026 (FRAME_ARGS_ADDRESS): Remove.
2027 (FRAME_LOCALS_ADDRESS): Remove.
2028 (FRAME_NUM_ARGS): Remove.
2029 (FRAME_ARGS_SKIP): Remove.
2030 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2031 (m68k_gdbarch_init): Add gdbarch initializations for macros
2032 undefined in tm-m68k.h
2034 2002-06-26 Grace Sainsbury <graces@redhat.com>
2036 * monitor.h: Add the function regname to monitor_ops
2037 structure. This way NUM_REGS does not have to be a constant.
2038 * monitor.c (monitor_fetch_register): Added support for regname
2039 function. The function is called if the array regnames is NULL.
2040 (monitor_store_register): Same.
2041 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2043 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2044 cpu32bug_cmds.regname to point to new function.
2045 * abug-rom.c (abug_regname): Same as above.
2046 (init_abug_cmds): Same.
2047 * dbug-rom.c (dbug_regname): Same as above.
2048 (init_dbug_cmds): Same.
2049 * remote-est.c (est_regname): Same.
2050 (init_est_cmds): Same.
2051 * rom68k-rom.c (rom68k_regname): Same.
2052 (init_rom68k_cmds): Same.
2054 2002-06-25 Tom Tromey <tromey@redhat.com>
2056 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2058 2002-06-25 Andrew Cagney <cagney@redhat.com>
2060 * infrun.c (stop_registers): Change variable's type to ``struct
2062 (xmalloc_inferior_status): Delete function.
2063 (free_inferior_status): Delete function.
2064 (normal_stop): Use regcache_cpy.
2065 (struct inferior_status): Change type of fields ``stop_registers''
2066 and ``registers'' to ``struct regcache''.
2067 (write_inferior_status_register): Use regcache_write.
2068 (save_inferior_status): Instead of calling
2069 xmalloc_inferior_status, allocate the inf_status buffer directly.
2070 Use regcache_dup_no_passthrough and regcache_dup to save the
2072 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2073 Replace the stop_registers regcache instead of overriding it. Use
2074 regcache_xfree. Instead of calling free_inferior_status, xfree
2075 the buffer directly.
2076 (discard_inferior_status): Use regcache_xfree. Instead of calling
2077 free_inferior_status, xfree the buffer directly.
2078 (build_infrun): Use regcache_xmalloc.
2079 (_initialize_infrun): Delete redundant call to build_infrun.
2081 * Makefile.in (infcmd.o): Add $(regcache_h).
2083 * infcmd.c: Include "regcache.h".
2084 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2085 obtain the address of `stop_registers' register buffer.
2086 (print_return_value): Ditto.
2088 * inferior.h (struct regcache): Add opaque declaration.
2089 (stop_registers): Change variable's declared type to ``struct
2092 2002-06-24 Tom Tromey <tromey@redhat.com>
2094 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2095 * target.c (initialize_targets): Fixed typo in
2096 trust-readonly-sections `show' documentation.
2098 * main.c: Marked all strings with _().
2100 2002-06-24 Don Howard <dhoward@redhat.com>
2102 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2103 that means max CORE_ADDR+1.
2104 (lookup_mem_region): Ditto.
2105 (mem_info_command): Ditto.
2107 2002-06-24 Grace Sainsbury <graces@redhat.com>
2109 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2110 (REGISTER_BYTES_OK): Remove.
2111 (REGISTER_BYTES): Remove.
2112 (STORE_STRUCT_RETURN): Remove.
2113 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2114 (STORE_RETURN_VALUE): Remove.
2115 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2116 (FRAME_CHAIN): Remove.
2117 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2118 (FRAME_SAVED_PC): Remove.
2119 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2120 (m68k_store_struct_return): Add.
2121 (m68k_deprecated_extract_return_value): Add.
2122 (m68k_deprecated_extract_struct_value_address): Add.
2123 (m68k_store_return_value): Add.
2124 (m68k_frame_chain): Add.
2125 (m68k_frameless_function_invocation): Add.
2126 (m68k_frame_saved_pc): Add.
2127 (m68k_gdbarch_init): added set_gdbarch calls for new
2128 functions and deleted macros.
2130 2002-06-23 Tom Tromey <tromey@redhat.com>
2132 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2133 (ALLDEPFILES): Likewise.
2134 (udiheaders): Removed.
2135 (udip2soc.o): Likewise.
2136 (udi2go32.o): Likewise.
2138 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2140 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2142 * infrun.c (_initialize_infrun): Delete unnecessary call to
2145 * regcache.h: Update comments describing the regcache_cpy family
2147 (regcache_save, regcache_restore): Delete declaration.
2148 (regcache_save_no_passthrough): Delete declaration.
2149 (regcache_restore_no_passthrough): Delete declaration.
2150 * regcache.c (regcache_save): Delete function.
2151 (regcache_save_no_passthrough): Delete function.
2152 (regcache_restore): Delete function.
2153 (regcache_restore_no_passthrough): Delete function.
2155 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2157 * config/m68k/tm-m68k.h: Fix typo.
2158 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2159 (m68k_frame_init_saved_regs): Declare.
2161 2002-06-21 Jim Blandy <jimb@redhat.com>
2163 Remove some vestiges of Harris 88k support.
2164 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2165 register numbering quirk.
2166 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2167 odd symbols occurring in Harris 88k ELF targets.
2169 2002-06-21 Tom Tromey <tromey@redhat.com>
2171 * gdb_locale.h: New file.
2172 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2173 (defs_h): Added gdb_locale.h.
2174 * configure, config.in: Rebuilt.
2175 * configure.in (PACKAGE): Define.
2176 * defs.h: Include gdb_locale.h.
2177 * main.c (captured_main): Call setlocale, bindtextdomain,
2180 2002-06-21 Dave Brolley <brolley@redhat.com>
2182 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2183 * config/frv/frv.mt: New file.
2184 * config/frv/tm-frv.h: New file.
2185 * configure.tgt: Support frv-*-*.
2186 * Makefile.in (frv-tdep.o): New target.
2187 * frv-tdep.c: New file.
2188 * NEWS: Mention frv.
2190 2002-06-21 Dave Brolley <brolley@redhat.com>
2192 * MAINTAINERS: Add self to "Write After Approval" list.
2194 2002-06-21 Grace Sainsbury <graces@redhat.com>
2196 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2197 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2198 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2199 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2200 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2202 * m68k-tdep.c: Include arch-utils.h
2203 (m68k_register_raw_size): Add.
2204 (m68k_register_virtual_size): Add.
2205 (m68k_register_virtual_type): Add.
2206 (m68k_register_name): Add.
2207 (m68k_stack_align): Add.
2208 (m68k_register_byte): Add.
2209 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2212 2002-06-21 Grace Sainsbury <graces@redhat.com>
2214 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2215 m68k_find_saved_regs.
2216 (m68k_pop_frame): Removed saved_regs structure, and replaced
2217 references to it with frame->saved_regs.
2218 (m68k_gdbarch_init): Added function calls to initialize the
2220 (m68k_fix_call_dummy): Add.
2221 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2222 (CALL_DUMMY): Remove.
2223 (CALL_DUMMY_LENGTH): Remove.
2224 (CALL_DUMMY_START_OFFSET): Remove.
2225 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2226 (FIX_CALL_DUMMY): Remove.
2227 (PUSH_DUMMY_FRAME): Remove.
2228 (POP_FRAME): Remove.
2230 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2232 * parse.c (parse_fprintf): New function used to avoid calls to
2233 fprintf in bison parser generated debug code.
2234 * parser-defs.h: Declaration of new parse_fprintf function.
2235 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2236 Set YYDEBUG to 1 by default.
2237 Set YYFPRINTF as parse_fprintf.
2239 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2241 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2243 (pointer_encoding, enum ptr_encoding): New.
2244 (execute_cfa_program): Take care about pointer encoding.
2245 (dwarf2_build_frame_info): Only call parse_frame_info for
2246 .debug_frame and .eh_frame.
2247 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2248 fixed augmentation handling, added relative addressing,
2249 ignore duplicate FDEs. Added comments.
2250 * dwarf2cfi.c: Reindented.
2252 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2254 * event-top.c (command_handler): Don't use space_at_cmd_start
2255 unless there is sbrk() on the host. Assign time and space data
2256 to union fields of the appropriate length.
2258 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2260 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2261 x86_64_register_name. Return type changed to 'const char *'.
2262 (x86_64_register_name2nr): Rename to x86_64_register_number.
2263 (x86_64_gdbarch_init): Update to reflect the change.
2264 * x86-64-tdep.h: Ditto.
2265 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2266 (supply_fpregset): Ditto.
2268 2002-06-19 Andrew Cagney <cagney@redhat.com>
2270 * regcache.h: Update copyright.
2271 (struct regcache, struct gdbarch): Add opaque declarations.
2272 (current_regcache): Declare global variable.
2273 (regcache_read, regcache_write): Add gdbarch parameter.
2274 (regcache_save, regcache_save_no_passthrough)
2275 (regcache_restore, regcache_restore_no_passthrough)
2276 (regcache_dup, regcache_dup_no_passthrough)
2277 (regcache_cpy, regcache_cpy_no_passthrough)
2278 (deprecated_grub_regcache_for_registers)
2279 (deprecated_grub_regcache_for_register_valid)
2280 (regcache_valid_p): Add function declarations.
2282 * regcache.c: Update copyright.
2283 (regcache_descr_handle): New global variable.
2284 (struct regcache_descr): Define.
2285 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2286 (regcache_descr, xfree_regcache_descr): New functions.
2287 (struct regcache): Define.
2288 (regcache_xmalloc, regcache_xfree): New functions.
2289 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2290 (regcache_dup, regcache_dup_no_passthrough): New functions.
2291 (regcache_valid_p, regcache_read_as_address): New functions.
2292 (deprecated_grub_regcache_for_registers): New function.
2293 (deprecated_grub_regcache_for_register_valid): New function.
2294 (current_regcache): New global variable.
2295 (register_buffer): Add regcache parameter. Update calls.
2296 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2297 (read_register_gen, write_register_gen): Update register_buffer
2298 call. Test for legacy_p instead of gdbarch_register_read_p or
2299 gdbarch_register_write_p.
2300 (regcache_collect): Update register_buffer call.
2301 (build_regcache): Rewrite. Use deprecated grub functions.
2302 (regcache_save, regcache_save_no_passthrough): New functions.
2303 (regcache_restore, regcache_restore_no_passthrough): New
2305 (_initialize_regcache): Create the regcache_data_handle. Swap
2306 current_regcache global variable.
2308 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2309 parameter to regcache_read and regcache_write calls.
2310 (sh4_register_read): Ditto.
2311 (sh64_pseudo_register_read): Ditto.
2312 (sh64_register_read): Ditto.
2313 (sh_pseudo_register_write): Ditto.
2314 (sh4_register_write): Ditto.
2315 (sh64_pseudo_register_write): Ditto.
2316 (sh64_register_write): Ditto.
2318 * defs.h (XCALLOC): Define.
2320 2002-06-19 Grace Sainsbury <graces@redhat.com>
2322 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2323 * m68k-tdep.c (m68k_gdbarch_init): Added.
2324 (m68k_dump_tdep): Added.
2326 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2328 * ada-lang.c (fill_in_ada_prototype): Update comment.
2330 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2332 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2334 (mips_abi_string, mips_abi_strings): New.
2335 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2336 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2337 tdep->mips_abi_string. Honor mips_abi_string. Default to
2338 O32 if no ABI is found.
2339 (mips_dump_tdep): Use mips_abi_strings.
2340 (mips_abi_update): New function.
2341 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2342 ``set mips abi'' and ``show mips abi''. Check the size of
2345 2002-06-19 Andrew Cagney <cagney@redhat.com>
2347 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2350 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2352 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2353 current frame using only the first stack size adjustment. All
2354 subsequent size adjustments are not considered to be part of
2355 the "static" part of the current frame.
2356 Compute the address of the saved registers relative to the
2357 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2358 in use in this frame.
2360 2002-06-18 Don Howard <dhoward@redhat.com>
2362 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2363 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2364 suggesting this solution.
2366 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2368 * config/romp/xm-rtbsd.h: Delete file.
2369 * config/romp/rtbsd.mh: Delete file.
2371 2002-06-18 Keith Seitz <keiths@redhat.com>
2373 * breakpoint.c (condition_command): Post breakpoint_modify
2374 when a condition is added to an existing breakpoint.
2375 (commands_command): Likewise for commands.
2376 (set_ignore_count): Likewise for ignore counts.
2377 If no tty, do not simply return, still need to send event
2379 (ignore_command): Only print a newline if the command came
2381 Don't call breakpoints_changed, since this is now properly
2382 handled by set_ignore_count.
2384 2002-06-18 Andrew Cagney <cagney@redhat.com>
2386 * MAINTAINERS: Note that cris-elf target can be compiled with
2388 * cris-tdep.c (cris_register_name): Make return type constant.
2389 (cris_breakpoint_from_pc): Ditto.
2391 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2393 * frame.h (struct frame_info): Change type of context to
2396 2002-06-17 Andrew Cagney <cagney@redhat.com>
2398 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2400 * gdbarch.h, gdbarch.c: Regenerate.
2401 * config/mips/tm-mips.h (mips_register_name): Update.
2402 * i386-tdep.h (i386_register_name): Update.
2403 * mips-tdep.c (mips_register_name): Update
2404 * alpha-tdep.c (alpha_register_name): Update.
2405 * arch-utils.c (legacy_register_name): Update.
2406 * arch-utils.h (legacy_register_name): Update.
2407 * avr-tdep.c (avr_register_name): Update.
2408 * ia64-tdep.c (ia64_register_name): Update.
2409 * i386-tdep.c (i386_register_name): Update.
2410 * sparc-tdep.c (sparc32_register_name): Update.
2411 (sparc64_register_name): Update.
2412 (sparclite_register_name): Update.
2413 (sparclet_register_name): Update.
2414 * sh-tdep.c (sh_generic_register_name): Update.
2415 (sh_sh_register_name): Update.
2416 (sh_sh3_register_name): Update.
2417 (sh_sh3e_register_name): Update.
2418 (sh_sh_dsp_register_name): Update.
2419 (sh_sh3_dsp_register_name): Update.
2420 (sh_sh4_register_name): Update.
2421 (sh_sh64_register_name): Update.
2422 * s390-tdep.c (s390_register_name): Update.
2423 * rs6000-tdep.c (rs6000_register_name): Update.
2424 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2425 (ns32k_register_name_32382): Update.
2426 * d10v-tdep.c (d10v_ts2_register_name): Update.
2427 (d10v_ts3_register_name): Update.
2428 * xstormy16-tdep.c (xstormy16_register_name): Update.
2429 * vax-tdep.c (vax_register_name): Update.
2430 * v850-tdep.c (v850_register_name): Update.
2431 * m68hc11-tdep.c (m68hc11_register_name): Update.
2432 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2433 (am33_register_name): Update.
2435 2002-06-17 Grace Sainsbury <graces@redhat.com>
2437 * m68k-tdep.c: Reindented.
2439 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2441 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2442 list of predefined types.
2444 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2446 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2447 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2448 REGISTER_CONVERT_TO_RAW): Remove defines.
2449 (i386_register_virtual_type, i386_register_convertible,
2450 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2452 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2453 macros mentioned above.
2455 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2456 (i386lynx_saved_pc_after_call): Remove prototype.
2457 * i386ly-tdep.c: Include "i386-tdep.h".
2458 (i386lynx_saved_pc_after_call): Make static. Use
2459 read_memory_nobpt instead of read_memory. Use
2460 read_memory_unsigned_integer instead of read_memory_integer.
2461 (i386lynx_init_abi): New function.
2462 (i386lynx_coff_osabi_sniffer): New function.
2463 (_initialize_i386bsd_tdep): New function.
2465 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2466 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2467 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2468 (i386_fix_call_dummy): Remove prototype.
2469 * i386-tdep.c (i386_call_dummy_words): New variable.
2470 (i386_gdbarch_init): Adjust for removal of the
2471 macros mentioned above.
2473 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2475 * command.h (add_setshow_auto_boolean_cmd): Replace
2476 add_set_auto_boolean_cmd.
2477 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2478 add_set_auto_boolean_cmd.
2479 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2480 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2481 mask-address'' command.
2482 (show_mask_address): Add cmd parameter.
2483 * remote.c (add_packet_config_cmd): Update. Change type of
2484 set_func and show_func to cmd_sfunc_ftype.
2485 (_initialize_remote): Update `set remote Z-packet'
2486 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2487 (show_remote_protocol_e_packet_cmd): Ditto.
2488 (show_remote_protocol_E_packet_cmd): Ditto.
2489 (show_remote_protocol_P_packet_cmd): Ditto.
2490 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2491 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2492 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2493 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2494 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2495 (show_remote_protocol_Z_packet_cmd): Ditto.
2496 (show_remote_protocol_binary_download_cmd): Ditto.
2497 (show_remote_cmd): Pass NULL to all of above.
2499 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2501 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2502 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2503 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2504 POP_FRAME): Remove defines.
2505 (i386_push_arguments, i386_store_struct_return,
2506 i386_extract_return_value, i386_store_return_value,
2507 i386_extract_struct_value_address, i386_push_dummy_frame,
2508 i386_pop_frame): Renove prototypes.
2509 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2510 macros mentioned above.
2512 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2514 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2515 add_set_boolean_cmd.
2516 (add_setshow_cmd): New function.
2517 * command.h (add_setshow_boolean_cmd): Replace
2518 add_set_boolean_cmd.
2519 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2520 and ``set rdiromatzero''.
2521 * maint.c (_initialize_maint_cmds): Update commented out code.
2522 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2523 * target.c (initialize_targets): Update `set
2524 trust-readonly-sections'.
2525 * remote.c (_initialize_remote): Update `set remotebreak'.
2527 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2529 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2530 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2531 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2532 fit into multi-arch framework.
2533 (i386_breakpoint_from_pc): New function.
2534 (i386_gdbarch_init): Adjust for removal of the macros mentioned
2537 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
2538 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
2539 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
2540 (i386_frameless_function_invocation, i386_frame_num_args,
2541 i386_frame_init_saved_regs): Remove prototypes.
2542 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2543 macros mentioned above.
2545 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2547 * cli/cli-decode.c (set_cmd_cfunc): Update.
2548 (set_cmd_sfunc): Update.
2549 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
2550 (set_cmd_sfunc, set_cmd_cfunc): Update.
2551 * cli/cli-decode.h: Update.
2553 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2555 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
2556 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
2558 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2560 * defs.h (auto_boolean): Declare enum.
2561 * command.h (cmd_auto_boolean): Delete enum.
2562 * mips-tdep.c (mask_address_var): Update.
2563 (mips_mask_address_p): Update.
2564 (show_mask_address): Update.
2565 * remote.c (struct packet_config): Update.
2566 (update_packet_config): Update.
2567 (show_packet_config_cmd): Update.
2568 (packet_ok): Update.
2569 (add_packet_config_cmd): Update.
2570 (_initialize_remote):
2571 * command.h: Update.
2572 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
2573 (do_setshow_command): Update.
2574 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
2575 * cli/cli-decode.h: Update.
2577 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2579 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
2580 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
2581 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
2582 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
2583 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
2584 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
2586 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
2587 list of DJGPP COFF targets.
2589 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
2590 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
2591 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
2592 (FP0_REGNUM): Remove define.
2593 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2594 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
2595 (i386_register_virtual_size): Remove protoype.
2596 * i386-tdep.c (i386_register_virtual_size): Removed.
2597 (i386_extract_return_value, i386_store_return_value): Use
2598 FP0_REGNUM instead of NUM_FREGS to determine whether the
2599 floating-point registers are available.
2600 (i386_gdbarch_init): Tweak FIXME about FPU registers.
2601 Adjust for removal of macros mentioned above.
2603 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2605 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
2607 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
2609 (supply_gregset, fill_gregset): Remove use of register keyword and
2610 remove declaration for regmap. Use I386_NUM_GREGS instead of
2611 NUM_REGS and NUM_FREGS.
2612 (FPREGSET_FSAVE_OFFSET): Remove.
2613 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
2614 NUM_FREGS to determine whether the floating-point registers are
2617 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
2618 gnu_store_registers): Replace usage of NUM_GREGS with
2621 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
2622 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
2623 usage of NUM_GREGS with I386_NUM_GREGS.
2625 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
2627 * i386bsd-nat.c: Include "i386-tdep.h".
2628 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
2631 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
2632 and associated comment. They no longer make any sense, since we
2633 don't use this file anymore on Linux.
2635 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
2636 * i386-tdep.c (i386_register_offset, i386_register_size): Use
2637 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
2638 elements in these arrays.
2639 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
2642 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2644 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
2645 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
2647 2002-06-14 Andrew Cagney <cagney@redhat.com>
2649 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
2650 EXTRACT_RETURN_VALUE.
2651 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
2652 EXTRACT_STRUCT_VALUE_ADDRESS.
2653 * gdbarch.h, gdbarch.c: Regenerate.
2655 * values.c (value_being_returned): Handle
2656 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2657 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
2659 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2660 * arm-tdep.c (arm_gdbarch_init): Update.
2661 * avr-tdep.c (avr_gdbarch_init): Update.
2662 * cris-tdep.c (cris_gdbarch_init): Update.
2663 * d10v-tdep.c (d10v_gdbarch_init): Update.
2664 * ia64-tdep.c (ia64_gdbarch_init): Update.
2665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2666 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2667 * s390-tdep.c (s390_gdbarch_init): Update.
2668 * sh-tdep.c (sh_gdbarch_init): Update.
2669 * s390-tdep.c (s390_gdbarch_init): Update.
2670 * sparc-tdep.c (sparc_gdbarch_init): Update.
2671 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2672 * v850-tdep.c (v850_gdbarch_init): Update.
2673 * vax-tdep.c (vax_gdbarch_init): Update.
2674 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2677 * config/arc/tm-arc.h: Update.
2678 * config/d30v/tm-d30v.h: Update.
2679 * config/fr30/tm-fr30.h: Update.
2680 * config/h8300/tm-h8300.h: Update.
2681 * config/h8500/tm-h8500.h: Update.
2682 * config/i386/tm-i386.h: Update.
2683 * config/i386/tm-ptx.h: Update.
2684 * config/i386/tm-symmetry.h: Update.
2685 * config/i960/tm-i960.h: Update.
2686 * config/m32r/tm-m32r.h: Update.
2687 * config/m68k/tm-delta68.h: Update.
2688 * config/m68k/tm-linux.h: Update.
2689 * config/m68k/tm-m68k.h: Update.
2690 * config/m88k/tm-m88k.h: Update.
2691 * config/mcore/tm-mcore.h: Update.
2692 * config/mips/tm-mips.h: Update.
2693 * config/mn10200/tm-mn10200.h: Update.
2694 * config/pa/tm-hppa.h: Update.
2695 * config/pa/tm-hppa64.h: Update.
2696 * config/sparc/tm-sp64.h: Update.
2697 * config/sparc/tm-sparc.h: Update.
2698 * config/sparc/tm-sparclet.h: Update.
2699 * config/z8k/tm-z8k.h: Update.
2701 2002-06-14 Andrew Cagney <cagney@redhat.com>
2703 * Makefile.in (i386_linux_tdep_h): Define.
2704 (i386_tdep_h, i387_tdep_h): Define.
2705 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
2706 $(i386_tdep_h) and $(i387_tdep_h).
2707 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2709 2002-06-14 Mark Kettenis <kettenis@gnu.org>
2711 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
2712 Already covered by the default.
2714 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
2715 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
2716 (i386_gdbarch_init): Initialize long_double_format and long_double
2719 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
2720 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
2722 * config/i386/i386sol2.mh: ... here.
2723 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
2724 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
2725 (SIGCONTEXT_PC_OFFSET): Remove define.
2726 (IN_SIGTRAMP): Remove define.
2727 * i386-sol2-tdep.c: New file.
2729 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
2730 * config/i386/tm-i386nw.h: Removed.
2732 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
2733 USE_STRUCT_CONVENTION): Remove defines.
2734 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2735 (get_longjmp_target): Remove prototype.
2736 (IN_SIGTRAMP): Remove define.
2737 (i386bsd_in_sigtramp): Remove prototype.
2738 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2739 function. Update comment accordingly
2740 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2741 (FRAME_SAVED_PC): Remove define.
2742 (i386bsd_frame_saved_pc): Remove prototype.
2743 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
2744 GET_LONGJMP_TARGET): Remove defines.
2745 (get_longjmp_target): Remove prototype.
2746 (IN_SIGTRAMP): Remove define.
2747 (i386bsd_in_sigtramp): Remove prototype.
2748 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
2749 function. Update comment accordingly
2750 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
2751 (FRAME_SAVED_PC): Remove define.
2752 (i386bsd_frame_saved_pc): Remove prototype.
2753 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
2755 (USE_STRUCT_CONVENTION): Remove prototype.
2756 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
2758 (_initialize_i386bsd_nat): Revise logic to determine some
2759 constants at compile time when compiling a native GDB. Warn if
2760 things don't match up with what we expect.
2761 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
2763 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
2764 to use date stored in `struct gdbarch_tdep'.
2765 (i386bsd_sigcontext_offset): Remove varaible.
2766 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
2767 stored in `struct gdbarch_tdep'.
2768 (i386bsd_frame_saved_pc): Make static.
2769 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
2770 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
2771 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2772 i386fbsd4_sc_pc_offset): New variables.
2773 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
2774 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
2776 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
2778 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
2779 Modify the value of i386fbsd_sigtramp_start and
2780 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
2781 i386fbsd_sigtramp_end.
2782 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
2785 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
2786 define to i386-linux-tdep.h.
2787 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
2788 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
2790 (i386_linux_register_name, i386_linux_register_byte,
2791 i386_linux_register_raw_size): Remove prototypes.
2792 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
2793 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
2794 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
2795 TARGET_WRITE_PC): Remove defines.
2796 (i386_linux_in_sigtramp, i386_linux_frame_chain,
2797 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
2798 i386_linux_write_pc): Remove prototypes.
2799 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2800 (get_longjmp_target): Remove prototype.
2801 * i386-linux-tdep.h: New file.
2802 * i386-linux-nat.c: Include "i386-linux-tdep.h".
2803 * i386-linux-tdep.c: Include "i386-tdep.h" and
2804 "i386-linux-tdep.h".
2805 (i386_linux_register_name, i386_linux_register_byte,
2806 i386_linux_register_raw_size, i386_linux_in_sigtramp,
2807 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
2809 (i386_linux_init_abi): New function.
2810 (_initialize_i386_linux_tdep): New function.
2812 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
2813 (i386_saved_pc_after_call): Remove prototype.
2814 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
2815 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
2816 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
2817 (i386_register_name, i386_stab_reg_to_regnum,
2818 i386_dwarf_reg_to_regnum): Remove prototypes.
2819 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
2820 SIZEOF_SSE_REGS): Remove defines.
2821 (REGISTER_BYTES): Remove define.
2822 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
2823 (i386_register_byte, i386_register_raw_size): Remove prototypes.
2824 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
2825 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
2826 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
2827 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
2828 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
2829 (get_longjmp_target): Remove prototype.
2830 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
2831 (sigtramp_saved_pc): Remove define.
2832 (i386v4_sigtramp_saved_pc): Remove prototype.
2833 * config/i386/tm-go32.h (FRAME_CHAIN,
2834 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
2835 (i386go32_frame_saved_pc): Remove prototype.
2836 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
2837 (get_longjmp_target): Remove prototype.
2838 * i386-tdep.h: Include "osabi.h".
2839 (enum i386_abi): Removed.
2840 (enum struct_return): New enum.
2841 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
2842 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
2843 sc_pc_offset members.
2844 (i386_gdbarch_register_os_abi): Remove prototype.
2845 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
2846 I386_SSE_NUM_REGS): New defines.
2847 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
2848 I386_SSE_SIZEOF_REGS): New defines.
2849 (i386_register_name, i386_register_byte, i386_register_raw_size):
2851 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
2852 (i386bsd_sigtramp_saved_pc): New prototype.
2853 * i386-tdep.c: Don't include "elf-bfd.h".
2854 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
2855 i386_frame_chain, i386_saved_pc_after_call): Make static.
2856 (i386_frame_saved_pc): Rewrite to call architecture dependent
2857 function to deal with signal handlers. Make static.
2858 (i386go32_frame_saved_pc): Removed.
2859 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
2861 (i386_get_longjmp_target): New function.
2862 (default_struct_convention, pcc_struct_convention,
2863 reg_struct_convention, valid_conventions, struct_convention): New
2865 (i386_use_struct_convention): New function.
2866 (i386v4_sigtramp_saved_pc): Renamed to
2867 i386_svr4_sigtramp_saved_pc. Made static. Moved.
2868 (i386_pc_in_sigtramp): New function.
2869 (i386_abi_names): Removed.
2870 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
2871 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
2873 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
2874 i386_gdbarch_register_os_abi): Removed.
2875 (struct i386_abi_handler): Removed.
2876 (i386_abi_handler_list): Removed.
2877 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
2879 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
2880 i386_nw_init_abi): New functions.
2881 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
2882 Use set_gdbarch_xxx() calls instead of relying on macros for a
2884 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
2885 (_initialize_i386_tdep): Add new 'struct-convcention' command.
2886 Register the various architecture variants defined in this file.
2888 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
2890 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
2891 (struct main_type): Remove arg_types member. Update comments for
2893 (TYPE_ARG_TYPES): Remove.
2894 (TYPE_FN_FIELD_ARGS): Update.
2895 (smash_to_method_type): Update prototype.
2897 * c-typeprint.c (cp_type_print_method_args): Take method type
2898 instead of argument list. Use new argument layout. Simplify.
2899 (c_type_print_args): Use new argument layout. Simplify.
2900 (c_type_print_base): Update call to cp_type_print_method_args.
2901 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
2902 argument; use die->type instead. Update call to
2903 smash_to_method_type.
2904 (read_structure_scope): Update call to dwarf2_add_member_fn.
2905 * gdbtypes.c (allocate_stub_method): Update comment.
2906 (smash_to_method_type): Take new NARGS and VARARGS arguments.
2907 Use new argument layout.
2908 (check_stub_method): Use new argument layout. Don't count
2909 void as an argument.
2910 (print_arg_types): Update comments. Use new argument layout.
2911 (recursive_dump_type): Don't print arg_types member.
2912 * hpread.c (hpread_read_struct_type): Use new argument layout.
2913 (fixup_class_method_type): Likewise.
2914 (hpread_type_lookup): Likewise.
2915 * stabsread.c (read_type): Update calls to read_args and
2916 smash_to_method_type.
2917 (read_args): Use new argument layout. Simplify.
2918 * valops.c (typecmp): Use new argument layout. Update parameters
2919 and comments. Simplify.
2920 (hand_function_call): Use new argument layout.
2921 (search_struct_method): Update call to typecmp.
2922 (find_overload_match): Use new argument layout.
2924 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2926 * NEWS: Mention multithreaded debug support for gdbserver.
2928 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2930 * MAINTAINERS: Mention NEWS.
2932 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2934 * gdbserver/regcache.c: Add comment.
2936 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
2938 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
2939 (struct mips_objfile_private, compare_pdr_entries): New.
2940 (non_heuristic_proc_desc): Read the ".pdr" section if it
2943 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2945 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
2946 (arm_debug): New static variable.
2947 (_initialize_arm_tdep): Add ``set debug arm'' command.
2949 2002-06-12 Andrew Cagney <ac131313@redhat.com>
2951 * Makefile.in (sim_arm_h): Define.
2952 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
2953 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
2954 (arm_register_sim_regno): New function, map an internal REGNUM
2955 onto a simulator register number.
2956 (arm_gdbarch_init): Set register_sim_regno.
2958 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
2960 * MAINTAINERS: Add self.
2962 2002-06-11 Jim Blandy <jimb@redhat.com>
2964 * source.c (source_info): Mention whether the symtab has
2965 information about preprocessor macros.
2967 Call the command `info macro', not `show macro'.
2968 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
2970 (_initialize_macrocmd): Register `info_macro_command' in
2971 `infolist', not `showlist'.
2973 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2975 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
2976 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
2977 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
2978 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
2979 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
2981 (set_mipsfpu_single_command, set_mipsfpu_double_command)
2982 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
2983 (_initialize_mips_tdep): Remove dead code.
2984 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
2985 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2986 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
2987 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
2988 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
2989 MIPS_LAST_FP_ARG_REGNUM): Remove.
2991 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
2993 * gdbserver/thread-db.c: New file.
2994 * gdbserver/proc-service.c: New file.
2995 * gdbserver/acinclude.m4: New file.
2996 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
2997 proc-service.o, and thread-db.o.
2998 (linux-low.o): Add USE_THREAD_DB.
2999 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3000 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3001 * gdbserver/aclocal.m4: Regenerated.
3002 * gdbserver/config.in: Regenerated.
3003 * gdbserver/configure: Regenerated.
3004 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3005 thread_db.h, and linux/elf.h headrs.
3006 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3007 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3008 Check for -lthread_db and thread support.
3009 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3010 PowerPC, and SuperH.
3011 * gdbserver/i387-fp.c: Constify arguments.
3012 * gdbserver/i387-fp.h: Likewise.
3013 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3014 `struct inferior_info'. Remove PID member. Use generic inferior
3015 list header. All uses updated.
3016 (inferiors, signal_pid): Removed.
3017 (all_threads): New variable.
3018 (get_thread): Define.
3019 (add_inferior_to_list): New function.
3020 (for_each_inferior): New function.
3021 (change_inferior_id): New function.
3022 (add_inferior): Removed.
3023 (remove_inferior): New function.
3024 (add_thread): New function.
3025 (free_one_thread): New function.
3026 (remove_thread): New function.
3027 (clear_inferiors): Use for_each_inferior and free_one_thread.
3028 (find_inferior): New function.
3029 (find_inferior_id): New function.
3030 (inferior_target_data): Update argument type.
3031 (set_inferior_target_data): Likewise.
3032 (inferior_regcache_data): Likewise.
3033 (set_inferior_regcache_data): Likewise.
3034 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3035 (all_processes, stopping_threads, using_thrads)
3036 (struct pending_signals, debug_threads, pid_of): New.
3037 (inferior_pid): Replace with macro.
3038 (struct inferior_linux_data): Remove.
3039 (get_stop_pc, add_process): New functions.
3040 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3041 Use add_process and add_thread.
3042 (linux_attach_lwp): New function, based on old linux_attach. Use
3043 add_process and add_thread. Set stop_expected for new threads.
3044 (linux_attach): New function.
3045 (linux_kill_one_process): New function.
3046 (linux_kill): Kill all LWPs.
3047 (linux_thread_alive): Use find_inferior_id.
3048 (check_removed_breakpoints, status_pending_p): New functions.
3049 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3050 Update. Use WNOHANG. Wait for cloned processes also. Update process
3051 struct for the found process.
3052 (linux_wait_for_event): New function.
3053 (linux_wait): Use it. Support LWPs.
3054 (send_sigstop, wait_for_sigstop, stop_all_processes)
3055 (linux_resume_one_process, linux_continue_one_process): New functions.
3056 (linux_resume): Support LWPs.
3057 (REGISTER_RAW_SIZE): Remove.
3058 (fetch_register): Use register_size instead. Call supply_register.
3059 (usr_store_inferior_registers): Likewise. Call collect_register.
3061 (regsets_fetch_inferior_registers): Improve error message.
3062 (regsets_store_inferior_registers): Add debugging.
3063 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3064 (unstopped_p, linux_signal_pid): New functions.
3065 (linux_target_ops): Add linux_signal_pid.
3066 (linux_init_signals): New function.
3067 (initialize_low): Call it. Initialize using_threads.
3068 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3070 (get_regcache): Fetch registers lazily. Add fetch argument
3071 and update all callers.
3072 (regcache_invalidate_one, regcache_invalidate): New
3074 (new_register_cache): Renamed from create_register_cache.
3075 Return the new regcache.
3076 (free_register_cache): Change argument to a void *.
3077 (registers_to_string, registers_from_string): Call get_regcache
3078 with fetch flag set.
3079 (register_data): Make static. Pass fetch flag to get_regcache.
3080 (supply_register): Call get_regcache with fetch flag clear.
3081 (collect_register): Call get_regcache with fetch flag set.
3082 (collect_register_as_string): New function.
3083 * gdbserver/regcache.h: Update.
3084 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3086 Handle input interrupts while waiting for an ACK.
3087 (input_interrupt): Use signal_pid method.
3088 (getpkt): Flush after debug output and use stderr.
3089 (outreg): Use collect_register_as_string.
3090 (new_thread_notify, dead_thread_notify): New functions.
3091 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3093 (look_up_one_symbol): Flush after debug output.
3094 * gdbserver/server.c (step_thread, server_waiting): New variables.
3095 (start_inferior): Don't use signal_pid. Update call to mywait.
3096 (attach_inferior): Update call to mywait.
3097 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3098 (main): Don't fetch/store registers explicitly. Use
3099 set_desired_inferior. Support proposed ``Hs'' packet. Update
3101 * gdbserver/server.h: Update.
3102 (struct inferior_list, struct_inferior_list_entry): New.
3103 * gdbserver/target.c (set_desired_inferior): New.
3104 (write_inferior_memory): Constify.
3105 (mywait): New function.
3106 * gdbserver/target.h: Update.
3107 (struct target_ops): New signal_pid method.
3108 (mywait): Removed macro, added prototype.
3110 * gdbserver/linux-low.h (regset_func): Removed.
3111 (regset_fill_func, regset_store_func): New.
3112 (enum regset_type): New.
3113 (struct regset_info): Add type field. Use new operation types.
3114 (struct linux_target_ops): stop_pc renamed to get_pc.
3115 Add decr_pc_after_break and breakpoint_at.
3116 (get_process, get_thread_proess, get_process_thread)
3117 (strut process_info, all_processes, linux_attach_lwp)
3118 (thread_db_init): New.
3120 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3121 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3122 (the_low_target): Add new members.
3123 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3124 (i386_store_fpxregset): Constify.
3125 (target_regsets): Add new kind identifier.
3126 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3127 (i386_set_pc): Add debugging.
3128 (i386_breakpoint_at): New function.
3129 (the_low_target): Add new members.
3130 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3131 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3132 (mips_breakpoint_at): New.
3133 (the_low_target): Add new members.
3134 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3135 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3136 (the_low_target): Add new members.
3137 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3138 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3139 (the_low_target): Add new members.
3140 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3143 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3145 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3146 (unwind_tmp_obstack_free, parse_frame_info)
3147 (update_context, cfi_read_fp, cfi_write_fp)
3148 (cfi_frame_chain, cfi_init_extra_frame_info)
3149 (cfi_virtual_frame_pointer): Use the above function.
3150 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3152 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3154 * v850-tdep.c (v850_type_is_scalar): New function.
3155 (v850_use_struct_convention): Match current gcc implementation
3156 as close as possible.
3157 (v850_push_arguments): Fix stack_offset handling. Don't write
3158 struct_addr into register. This is done by v850_store_struct_return.
3159 (v850_extract_return_value): Care for structs.
3160 (v850_store_return_value): Ditto.
3161 (v850_store_struct_return): Actually write address.
3163 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3165 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3166 without debug information too.
3168 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3170 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3171 Make multi-arch pure.
3172 * gdbarch.h, gdbarch.c: Re-generate.
3173 * arm-tdep.c (arm_print_float_info): Update.
3174 * arch-utils.h (default_print_float_info): Update.
3175 * arch-utils.c (default_print_float_info): Update.
3176 * infcmd.c (float_info): Update call.
3178 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3180 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3181 the front of the initialize list.
3183 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3185 * infrun.c (struct inferior_status): Replace fields
3186 selected_frame_address and selected_level with field
3188 (save_inferior_status): Update. Use get_frame_id.
3189 (struct restore_selected_frame_args): Delete.
3190 (restore_selected_frame): Update. Use frame_find_by_id.
3191 (restore_inferior_status): Update.
3193 * breakpoint.h (struct breakpoint): Change type of
3194 watchpoint_frame to frame_id.
3195 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3196 call to get_current_frame.
3197 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3199 (watchpoint_check): Use frame_find_by_id.
3201 * frame.h (record_selected_frame): Delete declaration.
3202 * stack.c (record_selected_frame): Delete function.
3204 * frame.h (struct frame_id): Define.
3205 (get_frame_id): Declare.
3206 (frame_find_by_id): Declare.
3207 * frame.c (frame_find_by_id): New function.
3208 (get_frame_id): New function.
3210 2002-06-10 Andrey Volkov <avolkov@transas.com>
3212 * ser-e7kpc.c: Fix duplicated define and call of
3213 _initialize_ser_e7000pc
3215 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3217 * signals/signals.c (target_signal_from_host): Fix #ifdef
3219 (do_target_signal_to_host): Likewise.
3221 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3223 * mips-tdep.c (mips_find_abi_section): New function.
3224 (mips_gdbarch_init): Call it.
3226 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3228 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3229 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3230 after Andrew's 2002-06-08 gdbarch change.
3232 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3234 * i386-linux-nat.c (suppy_gregset): Don't supply
3235 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3237 (fill_gregset): Don't fetch it under the same circumstances.
3239 2002-06-09 Andrew Cagney <cagney@redhat.com>
3241 * Makefile.in (callback_h): Define.
3242 (remote_sim_h): Update path to remote-sim.h.
3243 (remote-rdp.o): Add $(callback_h).
3244 (remote-sim.o): Use $(callback_h).
3245 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3246 * remote-rdp.c: Include "gdb/callback.h".
3248 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3250 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3251 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3253 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3255 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3256 * rdi-share/serpardr.c: Ditto.
3257 * rdi-share/unixcomm.c: Ditto.
3258 * rdi-share/serdrv.c: Ditto.
3259 * rdi-share/hostchan.h: Ditto.
3260 * rdi-share/hostchan.c: Ditto.
3261 * rdi-share/host.h: Ditto.
3262 * rdi-share/devsw.c: Ditto.
3264 * objfiles.h: Change type of obj_private to void pointer.
3265 * pa64solib.c: Update copyright. Don't include "assert.h", use
3266 strcmp instead of STREQ, use LONGEST, do not use PTR
3267 * somsolib.c: Ditto.
3269 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3270 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3271 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3273 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3275 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3276 (default_get_saved_register): Delete function.
3277 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3278 generic_unwind_get_saved_register.
3279 * gdbarch.h, gdbarch.c: Re-generate.
3281 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3283 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3284 generic_func_frame_chain_valid.
3285 * gdbarch.h, gdbarch.c: Re-generate.
3286 * blockframe.c (generic_func_frame_chain_valid): Only check
3287 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3288 passing FP to PC_IN_CALL_DUMMY.
3291 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3293 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3294 (register_gdbarch_data): Initialize init_p.
3295 (gdbarch_data): Initialize data pointer using the init function.
3296 (init_gdbarch_data): Delete function.
3297 (gdbarch_update_p): Update.
3298 (initialize_non_multiarch): Update.
3299 (struct gdbarch): Add field initialized_p.
3300 * gdbarch.h, gdbarch.c: Re-generate.
3302 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3304 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3305 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3306 better do the things actually here.
3307 * x86-64-tdep.c (x86_64_register_name2nr): New.
3308 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3309 (x86_64_gdbarch_init): Respect the above change.
3310 * x86-64-tdep.h (x86_64_register_name2nr)
3311 (x86_64_register_nr2name): Add prototypes.
3312 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3314 2002-06-06 Michael Snyder <msnyder@redhat.com>
3316 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3317 Delete extra braces and re-indent.
3318 (d10v_store_return_value): Char return values
3319 must be shifted over by one byte in R0.
3320 (d10v_extract_return_value): Delete extra braces, re-indent.
3322 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3324 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3325 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3326 (d10v_integer_to_address): Rewrite.
3327 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3328 the d10v specific functions which take care of converting to the
3331 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3333 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3334 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3336 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3338 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3340 * config/tm-linux.h: Ditto.
3341 * config/alpha/tm-alphalinux.h: Ditto.
3342 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3343 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3344 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3345 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3346 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3347 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3348 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3349 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3350 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3351 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3352 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3353 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3354 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3355 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3356 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3357 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3358 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3359 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3360 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3361 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3362 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3363 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3364 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3365 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3366 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3367 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3368 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3369 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3370 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3371 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3372 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3373 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3374 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3375 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3376 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3377 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3378 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3380 2002-05-04 Aidan Skinner <aidan@velvet.net>
3382 * ada-exp.tab.c: New file
3383 * ada-exp.y: New file
3384 * ada-lang.c: New file
3385 * ada-lang.h: New file
3386 * ada-lex.c: New file
3387 * ada-lex.l: New file
3388 * ada-tasks.c: New file
3389 * ada-typeprint.c: New file
3390 * ada-valprint.c: New file
3392 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3394 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3395 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3397 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3399 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3400 insetead of ppc-linux-tdep.o.
3401 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3402 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3404 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3406 2002-05-07 Christian Groessler <chris@groessler.org>
3407 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3408 bit register contents for little endian hosts.
3410 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3412 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3415 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3417 * gdbarch.h: Regenerate.
3419 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3421 * MAINTAINERS: Add everyone to write-after-approval list.
3423 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3425 * stack.c (frame_info): Use frame_register_unwind instead of
3426 saved_regs. Mention when the SP is on the stack or in a register.
3428 * frame.h (frame_register_unwind_ftype): Define. Document.
3429 (struct frame_info): Add field register_unwind and
3430 register_unwind_cache.
3431 (frame_register_unwind): Declare.
3432 (generic_unwind_get_saved_register): Declare.
3434 * frame.c (frame_register_unwind): New function.
3435 (generic_unwind_get_saved_register): New function.
3437 * blockframe.c (generic_call_dummy_register_unwind): New function.
3438 (frame_saved_regs_register_unwind): New function.
3439 (set_unwind_by_pc): New function.
3440 (create_new_frame): New function.
3441 (get_prev_frame): New function.
3443 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3445 * a29k-share/: Delete directory.
3446 * remote-vx29k.c: Delete file.
3448 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3450 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3451 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3453 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3455 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3456 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3459 (sparcnbsd-tdep.o): New dependency lists.
3460 * NEWS: Note new UltraSPARC NetBSD native configuration.
3461 * configure.host (sparc64-*-netbsd*): New host.
3462 * configure.tgt (sparc-*-netbsdelf*)
3463 (sparc-*-netbsd*): Set gdb_target to nbsd.
3464 (sparc64-*-netbsd*): New target.
3465 * sparc64nbsd-nat.c: New file.
3466 * sparcnbsd-nat.c: New file.
3467 * sparcnbsd-tdep.c: New file.
3468 * sparcnbsd-tdep.h: New file.
3469 * config/sparc/nbsd.mt: New file.
3470 * config/sparc/nbsd64.mh: New file.
3471 * config/sparc/nbsd64.mt: New file.
3472 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3473 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3475 * config/sparc/nbsdaout.mt: Remove.
3476 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3477 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3479 * config/sparc/nbsdelf.mt: Remove.
3480 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3481 sparc-nat.c compatiblity defines.
3482 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3483 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3484 * config/sparc/tm-nbsd64.h: New file.
3485 * config/sparc/tm-nbsdaout.h: Remove.
3486 * config/sparc/xm-nbsd.h: Remove.
3488 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3490 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3491 * sparc-tdep.c: Include osabi.h.
3492 (gdbarch_tdep): Add osabi member.
3493 (_initialize_sparc_tdep): Use gdbarch_register.
3494 (sparc_gdbarch_init): Use generic OS ABI framework.
3495 (sparc_dump_tdep): New function.
3497 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3499 * corefile.c (do_captured_read_memory_integer): Return non-zero
3501 (safe_read_memory_integer): Copy result of memory read when
3502 status is non-zero. Also, add comments.
3504 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3506 * Makefile.in (ppc_tdep_h): Define.
3509 (rs6000-tdep.o): Use $(ppc_tdep_h).
3512 (ppcnbsd-tdep.o): New dependency lists.
3513 * ppc-tdep.h: Use generic OS ABI framework.
3514 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3515 (ppc_linux_init_abi): New functions.
3516 (ppc_sysv_abi_broken_use_struct_convention)
3517 (ppc_sysv_abi_use_struct_convention)
3518 (ppc_sysv_abi_push_arguments): Move to...
3519 * ppc-sysv-tdep.c: ...here.
3520 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3521 * rs6000-tdep.c (process_note_abi_tag_sections)
3522 (get_elfosabi): Remove.
3523 (rs6000_gdbarch_init): Use generic OS ABI framework.
3524 (rs6000_dump_tdep): New function.
3525 (_initialize_rs6000_tdep): Use gdbarch_register.
3526 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3527 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3528 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3529 of ppc-linux-tdep.o.
3530 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3531 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3532 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3533 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3534 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
3535 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
3537 2002-05-29 Jim Blandy <jimb@redhat.com>
3539 * macroscope.c (default_macro_scope): Put `void' in empty argument
3542 2002-05-29 Andrew Cagney <ac131313@redhat.com>
3544 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
3545 * arch-utils.c: Include "sim-regno.h".
3546 * gdbarch.sh: Don't include "sim-regno.h".
3547 * gdbarch.h, gdbarch.c: Regenerate.
3548 * sim-regno.h (legacy_register_sim_regno): Move declaration from
3550 * arch-utils.h (legacy_register_sim_regno): To here.
3551 * remote-sim.c (legacy_register_sim_regno): Move function from
3553 * arch-utils.c (legacy_register_sim_regno): To here.
3555 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3557 * sim-regno.h: New file.
3558 * Makefile.in (sim_regno_h): Define.
3559 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
3560 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
3561 (legacy_register_sim_regno): New function.
3562 (one2one_register_sim_regno): New function.
3563 (gdbsim_fetch_register): Rewrite.
3564 (gdbsim_store_register): Only store a register when
3565 REGISTER_SIM_REGNO is valid.
3566 * d10v-tdep.c: Include "sim-regno.h".
3567 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
3568 (d10v_ts3_register_sim_regno): Ditto.
3569 * gdbarch.sh: Include "sim-regno.h".
3570 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
3571 * gdbarch.h, gdbarch.c: Regenerate.
3572 * arch-utils.h (default_register_sim_regno): Delete declaration.
3573 * arch-utils.c (default_register_sim_regno): Delete function.
3575 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
3577 * ppcnbsd-nat.c: Rewrite.
3578 * ppcnbsd-tdep.c: New file.
3579 * ppcnbsd-tdep.h: New file.
3580 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
3581 solib.o, and solib-svr4.o.
3582 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
3583 nbsd-tdep.o, and corelow.o.
3585 2002-05-28 Andrew Cagney <ac131313@redhat.com>
3587 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
3588 `tr' and `sed'. Mention that `broken' targets are not expected to
3591 2002-05-27 Michal Ludvig <mludvig@suse.cz>
3593 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
3594 Let PC point right after the prologue before looking up symbols.
3596 2002-05-27 Martin M. Hunt <hunt@redhat.com>
3598 * i386-tdep.c (i386_register_virtual_type): Return
3599 builtin_type_vec128i for SSE registers.
3601 * gdbtypes.h (builtin_type_vec128i): Declare.
3603 * gdbtypes.c (build_builtin_type_vec128i): New function.
3604 (builtin_type_v2_double, builtin_type_v4_int64): New types.
3605 (builtin_type_vec128i): New type for SSE2 128-bit registers.
3606 (build_gdbtypes): Initialize new builtin vector types.
3607 (_initialize_gdbtypes): Register new vector types with gdbarch.
3609 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3611 * MAINTAINERS: ns32k is not longer an obsolete candidate,
3612 since it has been multi-arch'd.
3613 * NEWS: Note that ns32k-*-* is now partial multi-arch.
3614 Move Alpha and VAX multi-arch news entries to same section
3615 as other multi-arch news.
3617 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3619 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
3620 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
3621 static. Rename some register numbers to put them in ns32k-tdep
3623 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
3624 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
3626 (_initialize_ns32k_tdep): Use gdbarch_register.
3627 * ns32k-tdep.h: New file.
3628 * ns32knbsd-tdep.c: New file.
3629 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
3630 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
3631 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
3632 REGISTER_BYTES, REGISTER_BYTE): Remove.
3633 * config/ns32k/tm-ns32k.h: New file.
3634 * config/ns32k/tm-umax.h: Remove.
3636 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3638 * ns32k-tdep.c (ns32k_saved_pc_after_call,
3639 ns32k_store_struct_return, ns32k_extract_return_value,
3640 ns32k_store_return_value, ns32k_extract_struct_value_address): New
3642 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
3643 ns32k_saved_pc_after_call.
3644 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
3645 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
3646 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
3647 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
3648 ns32k_extract_struct_value_address.
3650 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3652 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
3653 ns32k_fix_call_dummy): New.
3654 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
3655 ns32k_call_dummy_words.
3656 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
3657 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
3658 CALL_DUMMY_NARGS): Remove.
3659 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
3661 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3663 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
3664 ns32k_frame_saved_pc, ns32k_frame_args_address,
3665 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
3666 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
3667 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
3668 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
3669 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
3670 (BREAKPOINT): Remove..
3671 (FRAME_CHAIN): Define as ns32k_frame_chain.
3672 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
3673 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
3674 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
3675 (FRAME_FIND_SAVED_REGS): Remove.
3676 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
3677 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
3678 (POP_FRAME): Define as ns32k_pop_frame.
3680 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3682 * ns32k-tdep.c (ns32k_register_byte_32082,
3683 ns32k_register_byte_32382, ns32k_register_raw_size,
3684 ns32k_register_virtual_size, ns32k_register_virtual_type): New
3686 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
3687 ns32k_register_byte_32382.
3688 * config/ns32k/tm-umax.h: Update copyright years.
3689 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
3690 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
3691 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
3692 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
3693 (ns32k_get_enter_addr): Fix prototype.
3695 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3697 * ns32k-tdep.c: Update copyright years.
3698 (ns32k_register_name_32082): New function.
3699 (ns32k_register_name_32382): Ditto.
3700 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
3701 (REGISTER_NAME): Define as ns32k_register_name_32382.
3702 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
3703 (REGISTER_NAME): Define as ns32k_register_name_32082.
3705 2002-05-24 Jim Blandy <jimb@redhat.com>
3707 * dwarf2read.c (free_line_header): Use xfree, not free.
3709 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
3711 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
3712 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
3714 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3716 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
3718 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3720 From Ross Alexander at NEC Europe:
3721 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
3723 2002-05-23 Michael Snyder <msnyder@redhat.com>
3725 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
3726 for input, rather than parse_and_eval_address.
3728 2002-05-23 Andrew Cagney <ac131313@redhat.com>
3730 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
3731 * Makefile.in (sim_d10v_h): Update definition.
3733 2002-05-24 Andrew Cagney <cagney@redhat.com>
3735 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
3736 change `2002-05-22 Michael Snyder' below.
3737 (d10v_push_arguments): Ditto.
3738 (d10v_extract_return_value): Ditto.
3740 2002-05-23 Jim Blandy <jimb@redhat.com>
3742 * macrotab.c (check_for_redefinition): Don't complain if the new
3743 definition is the same as the previous one. Take more arguments
3744 to allow the comparison.
3745 (macro_define_object, macro_define_function): Pass more arguments
3746 to check_for_redefinition.
3748 2002-05-22 Michael Snyder <msnyder@redhat.com>
3750 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
3751 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
3752 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
3753 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
3754 Don't bail if return_pc is PC_IN_CALL_DUMMY.
3755 Add a temp variable to save a call (and a memory read).
3756 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
3757 if possible (so that PC_IN_CALL_DUMMY will work).
3759 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
3761 * MAINTAINERS: Remove status `OBSOLETE' from v850.
3763 2002-05-22 Michal Ludvig <mludvig@suse.cz>
3765 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
3767 (dwarf2_build_frame_info): Corrected handling of eh_frame.
3768 (dwarf2_build_frame_info): Add offset to fde->initial_location
3769 so that frames of shared libraries are mapped correctly.
3770 (execute_stack_op): Change type of 'result' from ULONGEST to
3773 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3775 * config/alpha/tm-nbsd.h: Include solib.h.
3777 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3779 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
3780 assumptions about the host's byte order.
3782 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3784 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
3786 * alphanbsd-tdep.c: Include solib-svr4.h.
3787 * shnbsd-tdep.c: Ditto.
3789 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
3791 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
3792 nbsd-tdep.h to dependency list.
3793 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
3794 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
3795 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
3796 nbsdaout.mh and nbsdelf.mh consistently.
3797 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
3798 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
3799 nbsdaout.mt and nbsdelf.mh consistently.
3800 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
3801 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
3802 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3803 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
3804 a.out shared library stuff from here...
3805 * config/nm-nbsdaout.h: ...to here.
3806 * config/tm-nbsd.h: Remove.
3807 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
3808 * config/arm/nbsd.mh: Remove.
3809 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
3811 * config/arm/nbsdaout.mh: New file.
3812 * config/arm/nbsdelf.mh: New file.
3813 * config/arm/nm-nbsdaout.h: New file.
3814 * config/i386/nbsd.mh: Remove.
3815 * config/i386/nbsd.mt: Remove.
3816 * config/i386/nbsdaout.mh: New file.
3817 * config/i386/nbsdaout.mt: New file.
3818 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3819 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
3820 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
3821 i386_register_u_addr): Remove.
3822 * config/i386/nm-nbsdaout.h: New file.
3823 * config/i386/nm-nbsdelf.h: Remove.
3824 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
3825 (USE_STRUCT_CONVENTION): Remove.
3826 * config/i386/tm-nbsdaout.h: New file.
3827 * config/i386/tm-nbsdelf.h: Remove.
3828 * config/m68k/nbsd.mh: Remove.
3829 * config/m68k/nbsd.mt: Remove.
3830 * config/m68k/nbsdaout.mh: New file.
3831 * config/m68k/nbsdaout.mt: New file.
3832 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
3833 * config/m68k/nm-nbsdaout.h: New file.
3834 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3835 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3836 * config/ns32k/nbsd.mh: Remove.
3837 * config/ns32k/nbsd.mt: Remove.
3838 * config/ns32k/nbsdaout.mh: New file.
3839 * config/ns32k/nbsdaout.mt: New file.
3840 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
3841 * config/ns32k/nm-nbsdaout.h: New file.
3842 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
3843 (IN_SOLIB_CALL_TRAMPOLINE): Define.
3844 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
3845 (SVR4_SHARED_LIBS): Remove.
3846 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
3847 * config/sparc/nbsd.mh: Remove.
3848 * config/sparc/nbsd.mt: Remove.
3849 * config/sparc/nbsdaout.mh: New file.
3850 * config/sparc/nbsdaout.mt: New file.
3851 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
3852 * config/sparc/nbsdelf.mt: New file.
3853 * config/sparc/nm-nbsdaout.h: New file.
3854 * config/sparc/nm-nbsdelf.h: Remove.
3855 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
3856 * config/sparc/tm-nbsdaout.h: New file.
3858 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3860 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
3862 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
3864 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3866 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
3868 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
3870 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3872 * NEWS: Note new MIPS NetBSD native configuration.
3873 * configure.host (mips*-*-netbsd*): New host.
3874 * configure.tgt (mips*-*-netbsd*): New target.
3875 * mipsnbsd-nat.c: New file.
3876 * mipsnbsd-tdep.c: New file.
3877 * mipsnbsd-tdep.h: New file.
3878 * config/mips/nbsd.mh: New file.
3879 * config/mips/nbsd.mt: New file.
3880 * config/mips/nm-nbsd.h: New file.
3881 * config/mips/tm-nbsd.h: New file.
3883 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
3885 * Makefile.in (SFILES): Add osabi.c.
3886 (COMMON_OBS): Add osabi.o.
3887 (osabi.o): New dependency list.
3888 * osabi.c: New file.
3889 * osabi.h: New file.
3890 * doc/gdbint.texinfo: Document new generic OS ABI framework.
3892 * Makefile.in (alpha_tdep_h): Define and use instead of
3894 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
3895 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
3897 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
3898 * alpha-tdep.h: Include osabi.h.
3899 (alpha_abi): Remove.
3900 (gdbarch_tdep): Use generic OS ABI framework.
3901 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
3902 gdbarch_register_osabi.
3903 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
3904 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
3905 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
3907 * Makefile.in (sh_tdep_h): Add osabi.h.
3908 * sh-tdep.h (sh_osabi): Remove.
3909 (gdbarch_tdep): Use generic OS ABI framework.
3910 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
3911 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
3912 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
3913 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
3915 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
3916 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
3917 gdbarch_register_osabi.
3918 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
3919 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
3920 (get_elfosabi): Rename to...
3921 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
3922 ABI framework support routines.
3923 (arm_gdbarch_init): Use generic OS ABI framework.
3924 (arm_dump_tdep): Likewise.
3925 (_initialize_arm_tdep): Likewise.
3926 * arm-tdep.h: Include osabi.h.
3928 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
3930 (arm_gdbarch_register_os_abi): Remove prototype.
3931 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
3932 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
3934 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
3935 * mips-tdep.c: Include osabi.h.
3936 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
3939 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
3941 * h8300-tdep.c: Fix formatting.
3943 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
3945 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
3946 printing vector registers.
3948 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3950 From Fernando Nasser:
3951 * remote.c (remote_async_open_1): Re-throw the exception when the
3953 (remote_cisco_open): Ditto.
3954 (remote_open_1): Ditto.
3956 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3958 * remote.c (remote_start_remote_dummy): Add uiout parameter.
3959 (remote_start_remote): Add uiout parameter. Pass through to
3960 remote_start_remote_dummy.
3961 (remote_open_1): Use catch_exception instead of catch_errors.
3962 (remote_async_open_1): Ditto.
3963 (remote_cisco_open): Ditto.
3965 2002-05-19 Andrew Cagney <ac131313@redhat.com>
3967 * remote.c (remote_start_remote): Replace PTR with void pointer.
3968 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
3971 2002-05-18 Andrew Cagney <ac131313@redhat.com>
3973 * gdb_indent.sh: Allow the script to be run in the sim directory.
3975 2002-05-18 Mark Kettenis <kettenis@gnu.org>
3977 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
3978 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
3980 * corelow.c (core_open): Only call set_gdbarch_from_file if
3983 2002-05-17 Andrey Volkov <avolkov@transas.com>
3985 * h8300-tdep.c: Add support of EXR register
3986 * config/h8300/tm-h8300.h: Ditto.
3988 2002-05-17 Andrey Volkov <avolkov@transas.com>
3990 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
3992 2002-05-17 Andrey Volkov <avolkov@transas.com>
3994 * h8300-tdep.c: Change literal regnums to REGNO.
3996 2002-05-17 Jim Blandy <jimb@redhat.com>
3998 * NEWS: Note addition of macro support.
4000 Expand preprocessor macros in C expressions.
4001 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4002 (scan_macro_expansion, scanning_macro_expansion,
4003 finished_macro_expansion): New function declarations.
4004 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4005 variable declarations.
4006 * parser-defs.h (expression_context_pc): New declaration.
4007 * parse.c (expression_context_pc): New variable.
4008 (parse_exp_1): Set expression_context_pc, as well as
4009 expression_context_block.
4010 * c-exp.y (yylex): If we're not already reading the result of a
4011 macro expansion, try to macro-expand the next token. When we're
4012 done scanning a macro expansion, switch back to the mainline text.
4013 Commas and `if's in a macro's expansion don't terminate the input.
4014 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4015 (macro_original_text, macro_expanded_text,
4016 expression_macro_lookup_func, expression_macro_lookup_baton): New
4018 (scan_macro_expansion, scanning_macro_expansion,
4019 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4020 c_preprocess_and_parse): New functions.
4021 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4022 c_preprocess_and_parse, instead of c_parse.
4023 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4024 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4026 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4028 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4029 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4030 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4032 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4034 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4036 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4038 * Makefile.in (sh_tdep_h): Define and use.
4039 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4040 register enum): Move to...
4041 * * sh-tdep.h: ...here.
4042 * sh-tdep.c: Include sh-tdep.h.
4043 * sh3-rom.c: Likewise.
4044 * shnbsd-tdep.c: Likewise.
4046 2002-05-16 Michael Snyder <msnyder@redhat.com>
4048 * arm-tdep.c: Spelling fix in comment.
4050 2002-05-16 Jim Blandy <jimb@redhat.com>
4052 Add commands for manually expanding macros and showing their
4054 * macrocmd.c, macroscope.c, macroscope.h: New files.
4055 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4056 (macroscope_h): New variable.
4057 (HFILES_NO_SRCDIR): Add macroscope.h.
4058 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4059 (macroscope.o, macrocmd.o): New rules.
4061 Teach the Dwarf 2 reader to read macro information.
4062 * dwarf2read.c: #include "macrotab.h".
4063 (dwarf_macinfo_buffer): New variable.
4064 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4066 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4067 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4068 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4069 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4070 dwarf2_macro_spaces_in_definition): New complaints.
4071 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4072 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4073 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4074 the partial symbol table.
4075 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4076 from what's recorded in the partial symbol table.
4077 (read_file_scope): If the compilation unit has a
4078 `DW_AT_macro_info' attribute, read its macro information.
4079 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4081 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4084 * ser-tcp.c: Don't include <netinet/udp.h>.
4086 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4088 * MAINTAINERS: Update my email address.
4090 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4092 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4093 include file of the same name.
4095 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4097 * configure.tgt: Mark v850 as multi-arched.
4098 * config/v850/tm-v850.h: Remove file.
4099 * config/v850/v850.mt: Eliminate TM_FILE.
4101 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4103 * v850-tdep.c: Full multi-arch.
4104 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4105 Define GDB_MULTI_ARCH to 2.
4107 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4109 * p-exp.y (current_type): New static variable.
4110 Carries the type of the expression at the position that is parsed.
4111 (push_current_type, pop_current_type): Two new functions. Used
4112 to store/restore current_type in expression on specific tokens.
4113 (search_field): New static variable. Set to one after parsing a point
4114 as at that point only a FIELDNAME token should be searched.
4115 (FIELDNAME): New token. After a point only a token belonging to
4116 current_type type definition is allowed.
4117 (all over token rules): reset and change current_type according
4119 (exp '[' rule): insert implicit array index field if
4120 exp is a pascal string type.
4122 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4124 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4125 frame info. Use frame_info's saved_regs instead of matching member
4126 in extra_frame_info throughout.
4127 (v850_frame_init_saved_regs): New function.
4128 (v850_init_extra_frame_info): Move most functionality into
4129 v850_frame_init_saved_regs().
4130 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4131 (v850_frame_find_saved_regs): Remove declaration.
4132 (FRAME_FIND_SAVED_REGS): Remove definition.
4133 (v850_frame_init_saved_regs): Add declaration.
4134 (FRAME_INIT_SAVED_REGS): Add definition.
4136 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4138 * v850-tdep.c: Begin multi-arch'ing v850.
4139 (v850_target_architecture_hook): Remove function.
4140 (v850_gdbarch_init): New function. Add code previously in
4141 v850_target_architecture_hook().
4142 (_initialize_v850_tdep): Don't set target_architecture_hook.
4143 Call register_gdbarch_init() instead.
4145 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4147 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4148 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4149 (fixup_class_method_type): Likewise.
4151 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4153 From Martin Pool <mbp@samba.org>:
4154 * gdbserver/server.c (gdbserver_usage): New function.
4157 2002-05-15 Jim Blandy <jimb@redhat.com>
4159 Add macro structures to GDB's symbol tables. Nobody puts anything
4161 * symtab.h (struct symtab): New member: `macro_table'.
4162 * buildsym.h (pending_macros): New global variable.
4163 * buildsym.c: #include "macrotab.h".
4164 (buildsym_init): Initialize `pending_macros'.
4165 (end_symtab): If we found macro information while reading a CU's
4166 debugging info, do build a symtab structure for it. Make the
4167 symtab point to the macro information, and clear the
4168 `pending_macros' pointer which held it while we were reading the
4170 (really_free_pendings): Free any pending macro table.
4171 * objfiles.h (struct objfile): New member: `macro_cache'.
4172 * objfiles.c (allocate_objfile): Set allocate and free functions
4173 for the macro cache's objstack.
4174 (free_objfile): Empty the macro cache's obstack.
4175 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4176 set new allocate and free functions for it.
4177 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4178 free functions for the macro cache's objstack. (Why is this
4179 function building its own objfile?)
4180 * symmisc.c (print_objfile_statistics): Print statistics on the
4182 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4184 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4186 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4187 (REGISTER_U_ADDR): Delete definition.
4188 (arm_register_u_addr): Delete declaration.
4190 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4192 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4193 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4195 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4197 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4200 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4202 * regcache.c (register_valid): Revise comments refering to "Not
4203 available" and "unavailable".
4204 * frame.c (frame_register_read): Ditto.
4205 * findvar.c (value_of_register): Ditto.
4207 2002-05-15 Andrew Cagney <cagney@redhat.com>
4209 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4210 (remote-sim.o): Update dependencies.
4211 (d10v-tdep.o): Specify dependencies.
4212 (sim_d10v_h): Define.
4214 2002-05-14 Jim Blandy <jimb@redhat.com>
4216 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4217 * macrotab.c (macro_lookup_inclusion, find_definition,
4218 new_macro_table): Same.
4220 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4221 not `! strcmp ()'. This is a dubious improvement.
4222 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4224 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4225 although it's not necessary, to avoid a warning.
4227 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4229 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4230 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4231 TYPE_INSTANCE_FLAGS.
4232 (struct main_type): New.
4233 (struct type): Move most members to struct main_type. Change
4234 cv_type and as_type to new type_chain member. Add instance_flags.
4235 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4236 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4237 (finish_cv_type): Remove prototype.
4238 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4240 (alloc_type_instance): New function.
4241 (smash_type): New function.
4242 (make_pointer_type, make_reference_type, make_function_type)
4243 (smash_to_member_type, smash_to_method_type): Call smash_type.
4244 (make_qualified_type): New function.
4245 (make_type_with_address_space): Call make_qualified_type.
4246 (make_cv_type): Likewise.
4247 (finish_cv_type): Remove unnecessary function.
4248 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4249 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4250 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4251 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4252 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4253 * hpread.c (hpread_read_struct_type): Likewise.
4254 * stabsread.c (read_struct_type): Likewise.
4256 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4258 * configure.tgt: Add a catch all sh* target, for cases like
4259 sh[2,3,4]-elf and sh-hms.
4261 2002-05-14 Keith Seitz <keiths@redhat.com>
4263 * event-loop.c (create_file_handler): Don't do anything but
4264 update data when we are given a fd which we are already
4267 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4269 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4270 (update_context): Use __func__ in warnings.
4272 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4274 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4275 and tcp_close to net_open and net_close.
4276 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4277 using UDP if requested. Don't try to disable Nagle on UDP
4279 * remote.c (remote_serial_open): New function. Warn about UDP.
4280 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4282 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4284 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4286 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4288 * configure.tgt: Remove sh-hms target.
4289 * MAINTAINERS: Don't list sh-hms as a separate target.
4291 2002-05-13 Jim Blandy <jimb@redhat.com>
4293 Add first preprocessor macro-expansion files.
4294 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4295 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4296 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4297 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4298 (COMMON_OBS): Add macrotab.o, macroexp.o.
4299 (macroexp.o, macrotab.o): New rules.
4301 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4303 * config/m88k/tm-m88k.h: Update copyright.
4304 (m88k_target_write_pc): Declare
4305 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4306 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4307 (SHIFT_INST_REGS): Update definition.
4308 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4309 using old definition of TARGET_WRITE_PC.
4310 * regcache.c (generic_target_write_pc): Delete code handling
4312 * gdbarch.sh (NNPC_REGNUM): Delete.
4313 * gdbarch.h, gdbarch.c: Regenerate.
4315 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4317 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4320 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4322 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4323 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4324 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4326 * c-typeprint.c (cp_type_print_method_args): Likewise.
4327 (c_type_print_args): Likewise.
4328 * d10v-tdep.c (d10v_push_arguments): Likewise.
4329 (d10v_extract_return_value): Likewise.
4330 * expprint.c (print_subexp): Likewise.
4331 * gdbtypes.c (lookup_primitive_typename): Likewise.
4332 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4333 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4334 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4335 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4336 (TYPE_VECTOR): Likewise.
4337 * hpread.c (hpread_read_struct_type)
4338 (fix_static_member_physnames, fixup_class_method_type)
4339 (hpread_type_lookup): Likewise.
4340 * mdebugread.c (parse_symbol, parse_type): Likewise.
4341 * p-lang.c (is_pascal_string_type): Likewise.
4342 * valops.c (hand_function_call): Likewise.
4343 * x86-64-tdep.c (classify_argument): Likewise.
4345 * hpread.c (hpread_read_function_type)
4346 (hpread_read_doc_function_type): Call replace_type.
4347 * dstread.c (create_new_type): Delete.
4348 (decode_dst_structure, process_dst_function): Call alloc_type.
4349 Use type access macros.
4351 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4353 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4354 the're not supported by the current architecture.
4355 (i387_fill_fxsave): Likewise.
4357 2002-05-12 Fred Fish <fnf@redhat.com>
4359 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4360 sect_index_xxx members to index the first slot in section_offsets
4361 if all of the section_offsets are zero.
4363 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4365 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4366 checked in with last change.
4368 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4370 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4371 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4374 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4376 * Makefile.in: Update dependencies.
4378 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4380 * language.c (local_hex_string_custom): Simplify. Do not depend
4381 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4383 * memattr.c (mem_info_command): Replace calls to
4384 longest_local_hex_string and longest_local_hex_string_custom.
4385 * buildsym.c (make_blockvector): Ditto.
4386 * solib.c (info_sharedlibrary_command): Ditto.
4387 * tracepoint.c (tracepoints_info): Ditto.
4388 * symtab.c (print_msymbol_info): Ditto.
4390 * language.c (local_hex_string): Delete.
4391 (local_hex_string_custom): Delete.
4392 (longest_local_hex_string): Rename to local_hex_string.
4393 (longest_local_hex_string_custom): Rename to
4394 local_hex_string_custom.
4395 * language.h (local_hex_string): Change parameter type to LONGEST.
4396 (local_hex_string_custom): Ditto.
4397 (longest_local_hex_string): Delete declaration.
4398 (longest_local_hex_string_custom): Ditto.
4400 * solib.c: Update copyright.
4401 * memattr.c: Update copyright.
4403 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4405 * arch-utils.h (legacy_register_to_value): Declare.
4406 (legacy_value_to_register): Declare.
4407 (legacy_convert_register_p): Declare.
4408 * arch-utils.c (legacy_register_to_value): New function.
4409 (legacy_value_to_register): New function.
4410 (legacy_convert_register_p): New function.
4412 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4413 (VALUE_TO_REGISTER): Define.
4414 (CONVERT_REGISTER_P): Define.
4415 * gdbarch.h, gdbarch.c: Regenerate.
4417 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4419 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4422 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4423 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4425 * Makefile.in: Update dependencies for valops.c.
4426 * valops.c: Include "gdb_assert.h".
4427 (typecmp): Skip THIS parameter to methods.
4428 (find_method_list): Remove static_memfuncp argument,
4429 update callers. Check for stub methods.
4430 (find_value_oload_method_list): Don't set *static_memfuncp.
4431 (find_overload_match): Don't check for stub methods. Assert
4432 that methods are not stubbed. Handle static methods.
4433 (value_find_oload_method_list): Remove static_memfuncp argument.
4434 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4435 to the argument list for static stub methods.
4436 * value.h (value_find_oload_method_list): Update prototype.
4438 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4440 * arch-utils.h (generic_register_size): Declare.
4441 (generic_register_raw_size, generic_register_virtual_size): Delete
4443 * arch-utils.c (generic_register_raw_size): Delete.
4444 (generic_register_size): New function.
4445 (generic_register_virtual_size): Delete.
4447 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4448 default generic_register_size.
4449 * gdbarch.h, gdbarch.c: Re-generate.
4451 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4452 register_virtual_size.
4453 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4454 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4456 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4458 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4459 * gdbarch.h, gdbarch.c: Regenerate.
4460 * gnu-v3-abi.c: Update copyright.
4461 (vtable_address_point_offset): Update.
4462 (gnuv3_rtti_type): Update.
4463 (gnuv3_baseclass_offset): Update.
4464 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4465 (init_fetch_link_map_offsets): Update.
4466 * remote.c (get_remote_state): Update.
4468 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4470 * TODO: Remove value_headof/value_from_vtable_info comment.
4471 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4472 * values.c (value_headof, value_from_vtable_info): Delete.
4473 * value.h (value_from_vtable_info): Delete prototype.
4475 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4477 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4478 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4480 (gdb_assert_h): Define.
4481 (gdb_wait_h): Define.
4482 (gdb_regex_h): Define.
4484 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4486 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4487 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4489 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4491 * nbsd-tdep.c: Fix comment.
4493 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4495 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4496 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4497 (nbsd-tdep.o): New dependency list.
4498 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4500 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4501 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4502 * nbsd-tdep.c: New file.
4503 * nbsd-tdep.h: New file.
4504 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4506 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4507 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4508 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4509 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4511 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4513 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4514 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4515 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4516 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4517 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4518 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4520 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4522 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4523 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4524 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4525 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4526 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4527 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4528 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4530 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4532 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4533 fetch_elfcore_registers to...
4534 * i386nbsd-tdep.c: ...here.
4535 (i386nbsd_use_struct_convention): Rename to...
4536 (i386nbsd_aout_use_struct_convention): ...this.
4537 (i386nbsd_supply_reg): New function.
4538 (i386nbsd_fill_reg): New function.
4539 (fetch_core_registers): Use i386nbsd_supply_reg.
4540 (fetch_elfcore_registers): Likewise.
4541 (_initialize_i386nbsd_tdep): New function.
4542 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
4543 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4544 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
4545 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
4546 (i386nbsd_aout_use_struct_convention): ...this.
4548 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4550 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
4551 (store_inferior_registers): Use shnbsd_fill_reg.
4552 * shnbsd-tdep.c (sh_nbsd_supply_registers,
4553 sh_nbsd_supply_register): Collapse into...
4554 (shnbsd_supply_reg): ...this.
4555 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
4556 (shnbsd_fill_reg): ...this.
4557 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
4558 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
4559 (fetch_core_registers): Use shnbsd_supply_reg.
4560 (fetch_elfcore_registers): Use shnbsd_supply_reg.
4561 (sh_nbsd_core_fns): Rename to...
4562 (shnbsd_core_fns): ...this.
4563 (sh_nbsd_elfcore_fns): Rename to...
4564 (shnbsd_elfcore_fns): ...this.
4565 (sh_nbsd_init_abi): Rename to...
4566 (shnbsd_init_abi): ...this.
4567 (_initialize_sh_nbsd_tdep): Rename to...
4568 (_initialize_shnbsd_tdep): ...this.
4569 * shnbsd-tdep.h (sh_nbsd_supply_registers,
4570 sh_nbsd_supply_register, sh_nbsd_fill_registers,
4571 sh_nbsd_fill_register): Remove prototypes.
4572 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
4574 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4576 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4577 (i387-nat.o): Delete dependency list.
4578 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
4579 (x86-64-linux-nat.o): Likewise.
4580 * i387-nat.c: Delete file, moving contents to...
4581 * i387-tdep.c: ...here.
4582 * i387-nat.h: Rename...
4583 * i387-tdep.h: ...to this.
4584 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
4585 * i386-linux-nat.c: Likewise.
4586 * i386bsd-nat.c: Likewise.
4587 * i386gnu-nat.c: Likewise.
4588 * i386nbsd-nat.c: Likewise.
4589 * i386v4-nat.c: Likewise.
4590 * x86-64-linux-nat.c: Likewise.
4591 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
4592 * config/i386/go32.mh (NATDEPFILES): Likewise.
4593 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4594 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
4595 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4596 * config/i386/linux.mh (NATDEPFILES): Likewise.
4597 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4598 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4599 * config/i386/obsd.mh (NATDEPFILES): Likewise.
4600 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4602 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4604 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
4605 (alphanbsd-nat.o): Remove dependency list.
4606 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
4607 * alphanbsd-nat.c: Delete. Contents moved to...
4608 * alphanbsd-tdep.c: ...here.
4609 (_initialize_alphanbsd_tdep): Register core functions.
4610 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
4612 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4614 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
4615 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
4616 (alphanbsd-nat.o): Likewise.
4617 (alphabsd-tdep.o): New dependency list.
4618 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
4619 (fill_gregset): Use alphabsd_fill_reg.
4620 (supply_fpregset): Use alphabsd_supply_fpreg.
4621 (fill_fpregset): Use alphabsd_fill_fpreg.
4622 (fetch_inferior_registers): Use struct reg and struct fpreg
4623 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
4624 and alphabsd_supply_fpreg.
4625 (store_inferior_registers): Use struct reg and struct fpreg
4626 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
4627 and alphabsd_fill_fpreg.
4628 * alphabsd-tdep.c: New file.
4629 * alphabsd-tdep.h: New file.
4630 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
4631 (fetch_elfcore_registers): Use alphabsd_supply_reg and
4632 alphabsd_supply_fpreg.
4633 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
4634 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4636 2002-05-11 Eric Christopher <echristo@redhat.com>
4638 * mips-tdep.c (mips_double_register_type): Fix thinko.
4639 (mips_single_register_type): Ditto.
4640 * MAINTAINERS: Add self.
4642 2002-05-11 Mark Kettenis <kettenis@gnu.org>
4644 * i387-nat.c (i387_supply_register, i387_fill_fsave,
4645 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
4646 right thing on architectures with different endianness and/or
4649 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
4651 From Christian Limpach <chris@Pin.LU>
4652 * configure.in: Change sed expression which comments out
4653 NATDEPFILES to also comment out continuation lines.
4654 * configure: Regenerate.
4656 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4658 * sh-tdep.c: Clean up code erroneously reintroduced by previous
4661 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4663 * sh-tdep.c: Include correct file.
4665 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4667 New support for sh64-elf (sh5) target.
4669 * configure.tgt: For sh64-elf target, default to sh-elf.
4671 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
4672 (struct gdbarch_tdep): Add new fields for new registers and ABI
4675 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
4676 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
4677 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
4678 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
4679 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
4680 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
4681 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
4682 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
4683 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
4684 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
4685 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
4686 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
4687 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
4688 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
4689 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
4690 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
4691 sh64_get_gdb_regnum, sh64_media_reg_base_num,
4692 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
4693 sign_extend, sh64_nofp_frame_init_saved_regs,
4694 sh64_init_extra_frame_info, sh64_get_saved_register,
4695 sh64_extract_struct_value_address, sh64_pop_frame,
4696 sh64_push_arguments, sh64_extract_return_value,
4697 sh64_store_return_value, sh64_show_media_regs,
4698 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
4699 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
4700 sh_sh64_register_virtual_type,
4701 sh_sh64_register_convert_to_virtual,
4702 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
4703 sh64_register_read, sh64_pseudo_register_write,
4704 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
4705 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
4706 sh64_do_pseudo_register, sh_compact_do_registers_info,
4707 sh64_do_registers_info, sh_gdbarch_init): New functions.
4709 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
4711 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
4713 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
4715 * linespec.c (decode_line_1): Check for a double quote after
4716 a filename correctly.
4718 2002-05-10 Jim Blandy <jimb@redhat.com>
4720 Properly track the size of the current objfile's .debug_line section.
4721 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
4722 (DWARF_LINE_SIZE): New macro.
4723 (dwarf2_build_psymtabs_hard): Record the line section's size in
4724 the partial symbol table.
4725 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
4728 2002-05-10 Petr Sorfa <petrs@caldera.com>
4730 * ia64-tdep.c: Handle breakpoints on L instruction type
4731 in MLX instruction bundle by moving the breakpoint to
4732 the third slot (X instruction type) as L holds only data.
4734 2002-05-10 Kevin Buettner <kevinb@redhat.com>
4736 * dbxread.c (discarding_local_symbols_complaint): New complaint.
4737 (process_one_symbol): Complain about discarding local symbols
4738 due to a misplaced N_LBRAC entry.
4740 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
4742 From Daniel Berlin <dan@cgsoftware.com>
4743 * linespec.c (find_toplevel_char): '<' and '>' also increase and
4744 decrease the depth we are at, in the case of templates.
4746 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4748 * mips-tdep.c (mips_float_register_type): New function.
4749 (mips_double_register_type): New function.
4750 (mips_print_register): Use them.
4751 (do_fp_register_row): Likewise.
4753 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
4755 * signals/signals.c (signals): Remove conditional compilation around
4756 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
4757 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
4759 2002-05-09 Michael Snyder <msnyder@redhat.com>
4761 * remote-rdp.c (remote_rdp_can_run): Remove.
4763 2002-05-09 Tom Tromey <tromey@redhat.com>
4765 * jv-valprint.c (java_val_print): Handle `char' as a special case
4768 2002-05-09 Michael Snyder <msnyder@redhat.com>
4770 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
4771 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
4772 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
4773 str r(0123),[sp,#nn].
4774 (arm_skip_prologue): Ditto. Also make disassembly
4775 order-independent by placing it in a loop.
4777 2002-05-06 Michael Snyder <msnyder@redhat.com>
4779 * stabsread.c (read_type): Add recognition for new attribute:
4780 "@V;" means that an array type is actually a vector.
4781 This is analogous to the vector flag that's been added to dwarf2.
4783 2002-05-09 Mark Kettenis <kettenis@gnu.org>
4785 * i386-tdep.h (i386_abi): New enum.
4786 (struct gdbarch_tdep): Replace os_ident member with abi.
4787 (i386_gdbarch_register_os_abi): New prototype.
4788 * i386-tdep.c (i386_abi_names): New array.
4789 (process_note_abi_tag_sections): Removed.
4790 (process_note_sections): New function.
4791 (i386_elf_abi_from_note, i386_elf_abi): New functions.
4792 (struct i386_abi_handler): New struct.
4793 (i386_abi_handler_list): New variable.
4794 (i386_gdbarch_register_os_abi): New function.
4795 (i386_gdbarch_init): Adapt for the changes given above.
4797 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
4799 * gregset.h: Say "GNU/Linux".
4801 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
4803 * gdbtypes.c : Add new builtin type for 64 bit vectors.
4804 (build_gdbtypes): Build builtin_type_v2_float.
4805 (_initialize_gdbtypes): Register new builtin type.
4807 2002-05-08 Andrew Cagney <ac131313@redhat.com>
4809 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
4810 (clear_gdbarch_swap): New function.
4811 (initialize_non_multiarch): Call.
4812 (gdbarch_update_p): Before calling init(), swap out and clear the
4813 existing architecture.
4814 * gdbarch.c: Regenerate.
4816 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4818 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
4821 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4823 * sh-nbsd-nat.c: Rename to...
4824 * shnbsd-nat.c: ...this.
4825 * sh-nbsd-tdep.c: Rename to...
4826 * shnbsd-tdep.c: ...this.
4827 * sh-nbsd-tdep.h: Rename to...
4828 * shnbsd-tdep.h: ...this.
4829 * config/sh/nbsd.mh: Use shnbsd-nat.o.
4830 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
4832 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
4834 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
4835 concatenation for command help messages.
4837 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4839 * NEWS: Note new sh*-*-netbsdelf* configuration.
4840 * configure.host: Set gdb_host_cpu to sh for all sh*.
4841 (sh*-*-netbsdelf*): New host.
4842 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
4843 (sh*-*-netbsdelf*): New target.
4844 * sh-nbsd-nat.c: New file.
4845 * sh-nbsd-tdep.c: New file.
4846 * sh-nbsd-tdep.h: New file.
4847 * config/sh/nbsd.mh: New file.
4848 * config/sh/nbsd.mt: New file.
4849 * config/sh/nm-nbsd.h: New file.
4850 * config/sh/tm-nbsd.h: New file.
4852 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
4854 * sh-tdep.c (sh_osabi_names): Declare.
4855 (process_note_abi_tag_sections): New function.
4856 (get_elfosabi): Ditto.
4857 (sh_gdbarch_register_os_abi): Ditto.
4858 (sh_dump_tdep): Ditto.
4859 _initialize_sh_tdep): Use gdbarch_register to register
4860 sh_gdbarch_init and sh_dump_tdep.
4861 * config/sh/tm-sh.h (sh_osabi): Declare.
4862 (gdbarch_tdep): Add sh_osabi and osabi_name members.
4864 2002-05-07 Andrew Cagney <ac131313@redhat.com>
4866 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
4867 (thumb_scan_prologue): Ditto.
4868 (arm_find_callers_reg): Ditto.
4869 (arm_frame_chain): Ditto.
4870 (arm_init_extra_frame_info): Ditto.
4871 (arm_frame_saved_pc): Ditto.
4872 (arm_pop_frame): Ditto.
4873 (arm_push_return_address): New function.
4874 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
4875 call_dummy_location, call_dummy_breakpoint_offset_p,
4876 call_dummy_breakpoint_offset, call_dummy_p,
4877 call_dummy_stack_adjust_p, call_dummy_words,
4878 sizeof_call_dummy_words, call_dummy_start_offset,
4879 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
4880 call_dummy_address, push_return_address and push_dummy_frame for
4881 generic dummy frames.
4883 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4885 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
4886 size computation for alloca.
4887 (sh_fp_frame_init_saved_regs): Likewise.
4889 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
4891 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
4892 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
4893 * arm-tdep.c (arm_store_return_value): Use them.
4894 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
4895 * remote-rdp.c (remote_rdp_fetch_register): Use
4896 ARM_MAX_REGISTER_RAW_SIZE.
4897 (remote_rdp_store_register): Likewise.
4899 2002-05-07 Michal Ludvig <mludvig@suse.cz>
4901 * dwarf2cfi.c: Code cleanup, removed unused variables,
4902 added default labels to switch {} statements.
4903 * x86-64-tdep.c: Ditto.
4904 * x86-64-linux-nat.c: Ditto.
4906 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
4908 * solib.h: Protect against multiple inclusion.
4910 2002-05-06 Jim Blandy <jimb@redhat.com>
4912 Add first preprocessor macro-expansion files.
4913 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4914 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4915 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4916 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4917 (COMMON_OBS): Add macrotab.o, macroexp.o.
4918 (macroexp.o, macrotab.o): New rules.
4920 Separate the job of reading the line number info statement program
4921 header (...expialidocious) out into its own function.
4922 * dwarf2read.c (struct line_head, struct filenames, struct
4923 directories): Replace with...
4924 (struct line_header): New structure, containing the full
4925 contents of the statement program header, including the
4926 include directory and file name tables.
4927 (read_file_scope): If we have line number info, instead of just
4928 calling dwarf_decode_lines to do all the work, call
4929 dwarf_decode_line_header first to get a `struct line_header'
4930 containing the data in the statement program header, and then
4931 pass that to dwarf_decode_lines, which will pick up where that
4932 left off. Be sure to clean up the `struct line_header' object.
4933 (dwarf_decode_line_header, free_line_header, add_include_dir,
4934 add_file_name): New functions.
4935 (dwarf_decode_lines): Move all the code to read the statement
4936 program header into dwarf_decode_line_header. Take the line
4937 header it built as the first argument, instead of the offset to
4938 the compilation unit's line number info. Use the new `struct
4939 line_header' type instead of the old structures. No need to do
4940 cleanups here now, since we don't allocate anything.
4941 (dwarf2_statement_list_fits_in_line_number_section,
4942 dwarf2_line_header_too_long): New complaints.
4944 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
4946 * gdbtypes.c (init_vector_type): New function.
4947 (build_builtin_type_vec128): Simplify the representation of SIMD
4949 (build_gdbtypes): Initialize new builtin vector types.
4950 (_initialize_gdbtypes): Register new vector types with gdbarch.
4951 (builtin_type_v4_float, builtin_type_v4_int32,
4952 builtin_type_v8_int16, builtin_type_v16_int8,
4953 builtin_type_v2_int32, builtin_type_v4_int16,
4954 builtin_type_v8_int8): New (renamed) SIMD types.
4956 2002-05-06 Mark Kettenis <kettenis@gnu.org>
4958 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
4959 (i387_fill_fxsave): Likewise.
4961 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
4963 * alpha-tdep.c (alpha_extract_return_value): Don't use
4964 non-constant array size in prototype.
4966 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4968 From Brian Taylor <briant at model dot com>:
4969 * ui-out.c (ui_out_field_core_addr): Use the function
4970 longest_local_hex_string_custom'to format addresses > 32 bits
4973 * ui-out.c (ui_out_field_core_addr): Update comment.
4975 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4977 * stack.c (select_and_print_frame): Make static. Delete the
4979 (func_command): Update call.
4980 (select_frame_command): Delete code computing the frame level.
4981 * frame.h (select_and_print_frame): Delete declaration.
4983 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4985 * sparc-tdep.c (sparc_get_saved_register): Comment why
4986 get_prev_frame call is safe.
4988 2002-05-04 Andrew Cagney <ac131313@redhat.com>
4990 * frame.h (select_frame): Delete level parameter.
4991 * stack.c (select_frame): Update. Use frame_relative_level to
4992 obtain the frame's level.
4993 (select_and_print_frame): Update call.
4994 (select_frame_command): Ditto.
4995 (up_silently_base): Ditto.
4996 (down_silently_base): Ditto.
4997 * ocd.c (ocd_start_remote): Ditto.
4998 * remote-rdp.c (remote_rdp_open): Ditto.
4999 * remote-mips.c (mips_initialize): Ditto.
5000 (common_open): Ditto.
5001 * remote-e7000.c (e7000_start_remote): Ditto.
5002 * m3-nat.c (select_thread): Ditto.
5003 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5004 (child_get_current_exception_event): Ditto.
5005 * varobj.c (varobj_create): Ditto.
5006 (varobj_update): Ditto.
5007 (c_value_of_root): Ditto.
5008 * tracepoint.c (finish_tfind_command): Ditto.
5009 * corelow.c (core_open): Ditto.
5010 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5011 * thread.c (info_threads_command): Ditto.
5012 (switch_to_thread): Ditto.
5013 * infrun.c (normal_stop): Ditto.
5014 (restore_selected_frame): Ditto.
5015 (restore_inferior_status): Ditto.
5016 * breakpoint.c (insert_breakpoints): Ditto.
5017 (watchpoint_check): Ditto.
5018 (bpstat_stop_status): Ditto.
5019 (do_enable_breakpoint): Ditto.
5020 * blockframe.c (flush_cached_frames): Ditto.
5021 (reinit_frame_cache): Ditto.
5023 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5025 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5028 2002-05-04 Jim Blandy <jimb@redhat.com>
5030 * gdbtypes.c (replace_type): Doc fix.
5032 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5034 * valprint.c (strcat_longest): Delete commented out function.
5037 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5039 * MAINTAINERS: Mark a29k as deleted.
5040 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5041 Move new configurations to the top.
5042 * configure.tgt: Remove a29k.
5043 * config/a29k/tm-vx29k.h: Delete.
5044 * config/a29k/vx29k.mt: Delete.
5045 * config/a29k/tm-a29k.h: Delete.
5046 * config/a29k/a29k-udi.mt: Delete.
5047 * config/a29k/a29k.mt: Delete.
5048 * a29k-tdep.c: Delete.
5049 * remote-udi.c: Delete.
5050 * remote-mm.c: Delete.
5051 * remote-eb.c: Delete.
5052 * remote-adapt.c: Delete.
5053 * Makefile.in: Remove obsolete code.
5054 * gdbserver/Makefile.in: Ditto.
5055 * config/s390/s390x.mt: Ditto.
5056 * config/s390/s390.mt: Ditto.
5057 * config/sparc/sparclynx.mh: Ditto.
5058 * config/sparc/linux.mh: Ditto.
5059 * config/pa/hppaosf.mh: Ditto.
5060 * config/pa/hppabsd.mh: Ditto.
5061 * config/ns32k/nbsd.mt: Ditto.
5062 * config/mips/vr5000.mt: Ditto.
5063 * config/m68k/sun3os4.mh: Ditto.
5064 * config/m68k/nbsd.mt: Ditto.
5065 * config/m68k/m68klynx.mh: Ditto.
5066 * config/m32r/m32r.mt: Ditto.
5067 * config/i386/x86-64linux.mt: Ditto.
5068 * config/i386/nbsdelf.mt: Ditto.
5069 * config/i386/nbsd.mt: Ditto.
5070 * config/i386/i386lynx.mh: Ditto.
5072 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5074 * target.c (debug_print_register): New function. Handle oversize
5076 (debug_to_fetch_registers): Call.
5077 (debug_to_store_registers): Call.
5079 2002-05-03 Jim Blandy <jimb@redhat.com>
5081 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5082 (read_type): Doc fix.
5083 * gdbtypes.c (replace_type): Doc fix.
5085 * stabsread.c (multiply_defined_struct): New complaint.
5086 (read_struct_type): If the type we were passed isn't empty, or
5087 incomplete, don't read the new struct type into it; complain,
5088 and return the original type unchanged. Take a new `type_code'
5089 argument, which is the type code for the new type.
5090 (read_type): Rather than storing the type's type code here, pass
5091 it as an argument to read_struct_type, and let that take care of
5092 storing it. That way, we don't overwrite the original type code,
5093 so read_struct_type can use it to decide whether we're overwriting
5094 something we shouldn't.
5095 (complain_about_struct_wipeout): New function.
5097 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5099 * gdbarch.sh: Assert that gdbarch is non-NULL.
5100 * gdbarch.c: Regenerate.
5102 2002-05-03 Jason Merrill <jason@redhat.com>
5104 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5107 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5109 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5110 (x86_64_dwarf2gdb_regno_map_length),
5111 (x86_64_dwarf2_reg_to_regnum): Added.
5112 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5113 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5114 (_initialize_x86_64_tdep): Synced with the change above.
5115 (x86_64_skip_prologue): Reformulated message.
5117 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5119 * f-exp.y: Also use new prev_lexptr variable
5120 to improve error reporting. Based on Michael Snyder
5121 2002-04-24 dated patch to c-exp.y.
5122 * jv-exp.y: Likewise.
5123 * m2-exp.y: Likewise.
5125 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5127 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5128 we are dealing with vectors.
5130 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5132 * config/m68k/tm-nbsd.h: Obvious fix,
5133 correct machine name.
5135 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5137 * p-typeprint.c (pascal_type_print_base): Add support
5138 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5140 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5142 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5143 for fondamental pascal 'char' type.
5145 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5147 * p-lang.h (is_pascal_string_type): Declaration changed,
5148 new sixth argument of type char ** added.
5149 * p-lang.c (is_pascal_string_type): Implementation
5150 changed. Args length_pos, length_size, string_pos, char_size
5151 can now be NULL. New argument arrayname set to the field
5152 name of the char array. Return value set to char array
5153 field index plus one.
5154 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5155 is_pascal_string_type function.
5157 2002-05-02 Andrew Cagney <cagney@redhat.com>
5159 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5160 <cagney@redhat.com> change.
5161 * gdbarch.c: Regenerate.
5163 2002-05-02 Andrew Cagney <cagney@redhat.com>
5165 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5166 before probing for a new one. Detect errorenous gdbarch_init
5168 * gdbarch.c: Regenerate.
5170 2002-05-01 Andrew Cagney <cagney@redhat.com>
5172 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5173 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5174 * config/v850/tm-v850.h: Ditto. Update copyright.
5176 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5178 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5181 2002-04-30 Michael Snyder <msnyder@redhat.com>
5183 * arm-tdep.c: Whitespace clean-ups.
5184 (arm_skip_prologue): Fix thinko; two lines
5185 should have been removed as part of 4/24 change.
5187 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5189 * rs6000-tdep.c: Added comment describing how fpscr register
5190 numbers were chosen.
5192 2002-04-30 Michael Snyder <msnyder@redhat.com>
5194 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5196 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5198 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5199 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5200 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5202 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5204 From Louis Hamilton <hamilton@redhat.com>:
5205 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5206 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5207 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5208 not bfd-private xcoff data, to determine wordsize.
5209 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5211 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5213 GDB 5.2 released from 5.2 branch.
5215 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5217 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5218 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5219 (x86_64_register_info_table): Added comments with register numbers.
5221 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5223 * rs6000-tdep.c (rs6000_extract_return_value,
5224 rs6000_store_return_value): Handle returning vectors.
5225 (rs6000_gdbarch_init): Use
5226 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5227 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5229 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5231 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5232 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5234 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5236 * hpread.c (hpread_psymtab_to_symtab_1,
5237 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5238 with fprintf_unfiltered (gdb_stderr,...).
5240 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5242 * remote-array.c (printf_monitor, write_monitor,
5243 array_insert_breakpoint, array_remove_breakpoint ):
5244 Replace fprintf (stderr,...
5245 with fprintf_unfiltered (gdb_stderr,....
5246 * remote-es.c: Likewise.
5247 * remote-os9k.c: Likewise.
5248 * remote-st.c: Likewise.
5250 2002-04-28 Andreas Schwab <schwab@suse.de>
5252 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5253 linux-proc.o and gcore.o.
5255 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5257 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5258 code without frame pointers.
5260 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5262 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5265 2002-04-26 Ben Elliston <bje@redhat.com>
5267 * target.c (do_xfer_memory): Correct reference to the new option
5268 "trust-readonly-sections".
5270 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5272 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5273 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5274 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5276 (read_array_type): Record the fact that this array type is really a
5277 vector (i.e. are passed in by value).
5279 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5281 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5282 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5283 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5284 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5285 * alpha-linux-tdep.c: Include frame.h.
5286 (alpha_linux_sigcontext_addr): New function.
5287 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5288 alpha_linux_sigcontext_addr.
5289 * alpha-osf1-tdep.c: Include gdbcore.h.
5290 (alpha_osf1_sigcontext_addr): New function.
5291 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5292 alpha_osf1_sigcontext_addr.
5293 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5294 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5296 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5298 * stack.c (selected_frame_level):
5299 (select_frame): Do not set selected_frame_level.
5300 * frame.h (selected_frame_level): Delete declaration.
5302 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5304 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5305 convert_from_func_ptr-addr when AIX / PowerOpen.
5307 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5309 * valops.c (hand_function_call): Call
5310 generic_save_call_dummy_addr.
5311 * frame.h (generic_save_call_dummy_addr): Declare.
5312 * blockframe.c (struct dummy_frame): Add fields call_lo and
5314 (generic_find_dummy_frame): Check for PC in range call_lo to
5315 call_hi instead of entry_point_address.
5316 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5317 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5318 (generic_save_call_dummy_addr): New function.
5320 2002-04-24 David S. Miller <davem@redhat.com>
5322 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5323 sparc_skip_prologue.
5324 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5325 information to find prologue when possible.
5326 (sparc_prologue_frameless_p): Call examine_prologue directly.
5327 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5328 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5330 (SKIP_PROLOGUE): Likewise.
5332 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5334 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5335 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5336 indicate that the condition it was testing is always true.
5337 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5338 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5339 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5341 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5343 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5344 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5345 tdep->jb_pc and tdep->jb_elt_size.
5346 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5347 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5348 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5349 * alpha-nat.c (get_longjmp_target): Remove.
5350 (JB_ELEMENT_SIZE): Ditto.
5352 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5353 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5354 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5355 to alpha_get_longjmp_target.
5356 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5357 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5358 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5360 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5362 * README: Update to GDB 5.2.
5364 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5366 * gdbarch.sh (LC_ALL): Set to `c'.
5368 2002-04-25 Theodore A. Roth <troth@verinet.com>
5370 * avr-tdep.c: Ran through gdb_indent.sh.
5372 2002-04-25 Theodore A. Roth <troth@verinet.com>
5374 * MAINTAINERS: Add myself as AVR maintainer.
5375 * NEWS: Note new target avr.
5377 2002-04-25 Theodore A. Roth <troth@verinet.com>
5379 * Makefile.in: Add support for AVR target.
5380 * configure.tgt: Add support for AVR target.
5381 * avr-tdep.c: New file
5382 * config/avr/avr.mt: New file.
5384 2002-04-25 Theodore A. Roth <troth@verinet.com>
5386 * MAINTAINERS: Add myself to write-after-approval.
5388 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5390 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5391 with fprintf_unfiltered (gdb_stderr,....
5393 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5396 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5398 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5400 * p-exp.y: Also use new prev_lexptr variable
5401 to improve error reporting. Based on Michael Snyder
5402 2002-04-24 dated patch to c-exp.y.
5404 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5406 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5407 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5408 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5410 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5412 (FUNCTION_START_OFFSET): Remove.
5413 (BREAKPOINT): Ditto.
5415 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5417 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5420 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5422 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5423 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5424 alpha_linux_pc_in_sigtramp.
5425 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5426 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5427 alpha_osf1_pc_in_sigtramp.
5428 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5429 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5430 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5431 alphafbsd_pc_in_sigtramp.
5432 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5433 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5434 alphanbsd_pc_in_sigtramp.
5435 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5436 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5438 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5440 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5442 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5444 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5446 (alphanbsd-nat.o): New dependency list.
5447 (alphanbsd-tdep.o): Ditto.
5448 * NEWS: Note new native NetBSD/alpha configuration.
5449 * alphanbsd-nat.c: New file.
5450 * alphanbsd-tdep.c: Ditto.
5451 * configure.host (alpha*-*-netbsd*): New host.
5452 * configure.tgt (alpha*-*-netbsd*): New target.
5453 * config/alpha/nbsd.mh: New file.
5454 * config/alpha/nbsd.mt: Ditto.
5455 * config/alpha/nm-nbsd.h: Ditto.
5456 * config/alpha/tm-nbsd.h: Ditto.
5458 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5460 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5461 (alpha-osf1-tdep.o): New dependency list.
5462 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5463 and skip_sigtramp_frame members.
5464 * alpha-linux-tdep.c: Include gdbcore.h.
5465 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5466 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5467 * alpha-osf1-tdep.c: New file.
5468 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5470 (alpha_frame_past_sigtramp_frame): New function.
5471 (alpha_dynamic_sigtramp_offset): Ditto.
5472 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5473 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5474 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5475 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5476 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5477 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5478 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5479 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5480 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5481 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5482 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5483 to find_solib_trampoline_target.
5484 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5485 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5486 (SKIP_TRAMPOLINE_CODE): Remove.
5487 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5488 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5489 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5490 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5491 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5492 (PROC_SIGTRAMP_MAGIC): Ditto.
5493 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5494 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5495 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5496 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5497 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5499 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5501 * NEWS: Note that Alpha targets are now multi-arch.
5503 2002-04-24 Michael Snyder <msnyder@redhat.com>
5505 * parser-defs.h (prev_lexptr): New external variable.
5506 * parse.c (parse_exp_1): Set prev_lexptr to null before
5507 calling the language-specific parser.
5508 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5509 (yyerror): Use prev_lexptr in error reporting.
5511 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5513 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5514 * gregset.h: If FILL_FPXREGSET is defined, provide
5515 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5516 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5517 is defined, call fill_fpxregset.
5519 2002-04-24 Roland McGrath <roland@frob.com>
5521 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5522 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5523 (supply_gregset, supply_fpregset): New functions.
5525 * gnu-nat.c (gnu_find_memory_regions): New function.
5526 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5527 (gnu_xfer_memory): Add a cast.
5529 2002-04-24 Michael Snyder <msnyder@redhat.com>
5531 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5532 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5533 of argument regs ("str r(0123), [r11, #-nn"]).
5534 (arm_skip_prologue): Better handling for frameless functions.
5535 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
5536 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
5538 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
5540 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
5541 NUM_PSEUDO_REGS can be used.
5543 2002-04-24 Andrew Cagney <ac131313@redhat.com>
5545 * arch-utils.h: Update copyright.
5547 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
5548 * gdbarch.h, gdbarch.c: Re-generate.
5550 * inferior.h (IN_SIGTRAMP): Delete definition.
5551 * arch-utils.c (legacy_pc_in_sigtramp): New function.
5552 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
5554 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
5555 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
5556 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
5557 (find_proc_framesize): Ditto.
5558 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
5559 (alpha_init_extra_frame_info): Ditto.
5560 * infrun.c (handle_inferior_event): Ditto.
5561 (handle_inferior_event): Ditto.
5562 (check_sigtramp2): Ditto.
5563 * blockframe.c (create_new_frame): Ditto.
5564 (get_prev_frame): Ditto.
5565 * ppc-linux-tdep.c: Update comments.
5566 * i386-linux-tdep.c: Update comments.
5567 * breakpoint.c (bpstat_what): Update comment.
5569 2002-04-24 Michal Ludvig <mludvig@suse.cz>
5571 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
5572 (regsets_store_inferior_registers): Removed cast to int from
5574 * gdbserver/regcache.h: Added declaration of struct inferior_info.
5576 2002-04-24 David S. Miller <davem@redhat.com>
5578 * i960-tdep.c (register_in_window_p): New function.
5579 (i960_find_saved_register): Use it instead of
5580 REGISTER_IN_WINDOW_P.
5581 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
5583 * symtab.h (find_stab_function_addr): Kill extern.
5584 * minsyms.c (find_stab_function_addr): Remove from here...
5585 * dbxread.c: ... to here, and mark it static.
5587 2002-04-20 David S. Miller <davem@redhat.com>
5589 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
5590 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
5592 2002-04-21 David S. Miller <davem@redhat.com>
5594 * remote-vxsparc.c (vx_read_register): Fix typo, we want
5595 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
5596 (vx_write_register): Likewise.
5598 2002-04-23 J. Brobecker <brobecker@gnat.com>
5600 * source.c (is_regular_file): New function.
5601 (openp): Check wether file to open is a regular file
5602 to avoid opening directories.
5604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5606 * findvar.c (extract_signed_integer): Cast printf argument
5607 to suppress format warning.
5608 (extract_unsigned_integer): Likewise.
5609 * infcmd.c (registers_info): Likewise.
5610 * top.c (get_prompt_1): Likewise.
5611 * valops.c (value_assign): Likewise.
5612 * valprint.c (print_decimal): Likewise.
5614 2002-04-22 H.J. Lu (hjl@gnu.org)
5616 * c-exp.y (typebase): Support
5618 [long|long long|short] [signed|unsigned] [int|]
5622 signed [long|long long|short] int
5624 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5626 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
5628 * vax-tdep.h: New file.
5629 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
5630 Make several routines static.
5631 (vax_get_saved_register): New function.
5632 (vax_gdbarch_init): New function.
5633 (_initialize_vax_tdep): Register vax_gdbarch_init.
5634 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
5635 Remove macros now under the control of gdbarch.
5637 2002-04-22 Michael Snyder <msnyder@redhat.com>
5639 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
5640 Some whitespace and coding standards tweaks.
5642 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5644 * vax-tdep.c: Include regcache.h.
5645 (vax_call_dummy_words): New.
5646 (sizeof_vax_call_dummy_words): New.
5647 (vax_fix_call_dummy): New function.
5648 (vax_saved_pc_after_call): Ditto.
5649 * config/vax/tm-vax.h: Don't include regcache.h.
5650 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
5651 (CALL_DUMMY): Remove.
5652 (CALL_DUMMY_WORDS): Define.
5653 (SIZEOF_CALL_DUMMY_WORDS): Define.
5654 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
5656 2002-04-18 Michael Snyder <msnyder@redhat.com>
5658 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
5660 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5662 * vax-tdep.c (vax_frame_chain): New function.
5663 (vax_push_dummy_frame): Ditto.
5664 (vax_pop_frame): Ditto.
5665 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
5666 (FRAMELESS_FUNCTION_INVOCATION): Use
5667 generic_frameless_function_invocation_not.
5668 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
5669 (POP_FRAME): Use vax_pop_frame.
5671 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5673 * vax-tdep.c (vax_store_struct_return): New function.
5674 (vax_extract_return_value): Ditto.
5675 (vax_store_return_value): Ditto.
5676 (vax_extract_struct_value_address): Ditto.
5677 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
5678 vax_store_struct_return.
5679 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
5680 (STORE_RETURN_VALUE): Use vax_store_return_value.
5681 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
5683 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5685 * vax-tdep.c (vax_frame_saved_pc): New function.
5686 (vax_frame_args_address_correct): Ditto.
5687 (vax_frame_args_address): Ditto.
5688 (vax_frame_locals_address): Ditto.
5689 (vax_frame_num_args): Move code to be in proximity to
5690 other frame-related functions.
5691 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
5692 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
5693 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
5694 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
5695 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
5697 2002-04-22 H.J. Lu (hjl@gnu.org)
5699 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
5702 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5704 * vax-tdep.c (vax_frame_init_saved_regs): New function.
5705 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
5706 (FRAME_INIT_SAVED_REGS): New macro.
5708 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5710 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
5712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5714 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
5716 (fetch_osf_core_registers): Likewise.
5717 (supply_gregset): Likewise.
5719 2002-04-22 J. Brobecker <brobecker@gnat.com>
5721 * symfile.h (get_section_index): Define.
5722 * symfile.c (get_section_index): New function.
5723 * mdebugread.c (SC_IS_SBSS): New macro.
5724 (SC_IS_BSS): Return true for the scBss storage class only, as
5725 the scSBss storage class refers to the .sbss section.
5726 (parse_partial_symbols): Discard the symbols which associated
5727 section does not exist.
5728 Make sure to use the .sbss section index for symbols which
5729 storage class is scBss, rather than using the .bss section index.
5731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
5733 * vax-tdep.c: Update copyright years.
5734 (vax_register_name): New function.
5735 (vax_register_byte): Ditto.
5736 (vax_register_raw_size): Ditto.
5737 (vax_register_virtual_size): Ditto.
5738 (vax_register_virtual_type): Ditto.
5739 * config/vax/tm-vax.h: Update copyright years.
5740 (REGISTER_NAMES): Remove.
5741 (REGISTER_NAME): Define.
5742 (REGISTER_BYTE): Use vax_register_byte.
5743 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
5744 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
5745 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
5747 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5749 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
5751 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
5753 2002-04-21 David S. Miller <davem@redhat.com>
5755 * arch-utils.c (generic_prologue_frameless_p): Kill
5756 SKIP_PROLOGUE_FRAMELESS_P code.
5757 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5759 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
5760 * arc-tdep.c (arc_prologue_frameless_p): Implement.
5761 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
5763 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
5764 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
5765 (sparc_gdbarch_init): Pass it to
5766 set_gdbarch_prologue_frameless_p.
5768 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5770 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
5771 (alphabsd-nat.o): New dependency list.
5773 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5775 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
5777 (alpha-linux-tdep.o): New dependency list.
5778 (alphafbsd-tdep.o): Likewise.
5780 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5782 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
5784 * alpha-tdep.c: ...from here.
5785 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
5787 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5789 * config/alpha/tm-alpha.h: Move alpha_software_single_step
5790 prototype from here...
5791 * alpha-tdep.h: ...to here.
5793 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5795 * frame.h (selected_frame_level): Document as deprecated.
5796 (frame_relative_level): Declare.
5797 * stack.c (frame_relative_level): New function.
5798 (selected_frame_level): Document as deprecated.
5799 (select_frame): Do not set the selected_frame_level.
5801 * stack.c (frame_info, record_selected_frame): Update.
5802 (frame_command, current_frame_command): Update.
5803 (up_silently_base, up_command, down_silently_base): Update.
5804 (down_command): Update.
5805 * inflow.c (kill_command): Update.
5806 * tracepoint.c (finish_tfind_command): Update.
5807 * corelow.c (core_open): Update.
5808 * thread.c (info_threads_command): Update.
5809 (do_captured_thread_select): Update.
5810 * infcmd.c (finish_command): Update.
5811 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
5813 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5815 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
5817 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5819 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
5822 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5824 * alphafbsd-tdep.c: Update copyright years. Include
5826 (alphafbsd_use_struct_convention): Make static.
5827 (alphafbsd_init_abi): New function.
5828 (_initialize_alphafbsd_tdep): New function.
5829 * config/alpha/tm-fbsd.h: Update copyright years.
5830 (USE_STRUCT_CONVENTION): Remove.
5832 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5834 * alpha-tdep.c (alpha_abi_handler): New structure to describe
5835 an Alpha ABI variant.
5836 (alpha_abi_handler_list): Declare.
5837 (alpha_gdbarch_register_os_abi): New function.
5838 (alpha_gdbarch_init): Give registered ABI variant handlers a
5839 chance to tweak the gdbarch once we have set up defaults.
5840 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
5842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5844 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
5845 to standard_coerce_float_to_double.
5846 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
5848 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5850 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
5851 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
5852 from gdbarch_tdep rather than a constant.
5853 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
5854 the default text address for all Alpha Unix ABIs.
5855 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
5856 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
5858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
5860 * alpha-tdep.h: New file. Includes several Alpha target constants
5862 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
5863 let gdbarch deal with.
5864 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
5865 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
5867 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
5868 Alpha target register names.
5869 * alphabsd-nat.c: Likewise.
5870 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
5871 Alpha target register names. Make serveral routines static.
5872 (alpha_get_saved_register): New function.
5873 (alpha_abi_names): New.
5874 (process_note_abi_tag_sections): New function.
5875 (get_elfosabi): New function.
5876 (alpha_gdbarch_init): New function.
5877 (alpha_dump_tdep): New function.
5878 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
5880 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5882 * frame.c (find_saved_register): Delete #ifdef
5883 HAVE_REGISTER_WINDOWS code.
5884 * config/sparc/tm-sparc.h: Update comments.
5885 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
5887 2002-04-21 Andrew Cagney <ac131313@redhat.com>
5889 * i960-tdep.c (i960_find_saved_register): New function.
5890 (i960_get_saved_register): New function.
5891 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
5892 (i960_get_saved_register): Declare.
5893 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
5895 2002-04-20 David S. Miller <davem@redhat.com>
5897 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
5899 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5901 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
5902 instead of NUM_PSEUDO_REGS.
5904 2002-04-20 David S. Miller <davem@redhat.com>
5906 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
5907 GDB_MULTI_ARCH_PARTIAL
5908 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
5909 define, let tm-sp64.h do it.
5911 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
5913 * frame.c (find_saved_register): Avoid a NULL pointer
5914 dereference and actually walk the frame list.
5916 2002-04-20 Andrew Cagney <ac131313@redhat.com>
5918 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
5919 sorted in most most-recent-used order. Document.
5920 * gdbarch.h, gdbarch.c: Regenerate.
5922 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5924 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
5925 (add_inferior): Call create_register_cache.
5926 (clear_inferiors): Call free_register_cache.
5927 (inferior_regcache_data, set_inferior_regcache_data): New functions.
5928 * gdbserver/regcache.c (struct inferior_regcache_data): New.
5929 (registers): Remove.
5930 (get_regcache): New function.
5931 (create_register_cache, free_register_cache): New functions.
5932 (set_register_cache): Don't initialize the register cache here.
5933 (registers_to_string, registers_from_string, register_data): Call
5935 * gdbserver/regcache.h: Add prototypes.
5936 * gdbserver/server.h: Likewise.
5938 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
5940 * gdbserver/mem-break.c: New file.
5941 * gdbserver/mem-break.h: New file.
5942 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
5944 * gdbserver/inferiors.c (struct inferior_info): Add target_data
5946 (clear_inferiors): Free target_data member if set.
5947 (inferior_target_data, set_inferior_target_data): New functions.
5948 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
5949 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
5950 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
5951 (struct inferior_linux_data): New.
5952 (linux_create_inferior): Use set_inferior_target_data.
5953 (linux_attach): Likewise. Call add_inferior.
5954 (linux_wait_for_one_inferior): New function.
5955 (linux_wait): Call it.
5956 (linux_write_memory): Add const.
5957 (initialize_low): Call set_breakpoint_data.
5958 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
5960 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
5962 * gdbserver/server.h: Include mem-break.h. Update inferior.c
5964 * gdbserver/target.c (read_inferior_memory)
5965 (write_inferior_memory): New functions.
5966 * gdbserver/target.h (read_inferior_memory)
5967 (write_inferior_memory): Change macros to prototypes.
5968 (struct target_ops): Update comments. Add const to write_memory
5971 2002-04-19 Andrew Cagney <ac131313@redhat.com>
5973 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
5975 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
5976 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
5977 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
5980 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
5983 * gdbtypes.c (init_simd_type): Rewrite using new functions.
5984 (build_builtin_type_vec128): Ditto.
5985 (append_composite_type_field): Fix calculation of type length in
5988 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5990 * config/djgpp/README: Update.
5992 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
5995 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
5997 * alpha-tdep.c (setup_arbitrary_frame): Rename...
5998 (alpha_setup_arbitrary_frame): ...to this.
5999 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6000 for alpha_setup_arbitrary_frame.
6002 2002-04-18 Andrew Cagney <cagney@redhat.com>
6004 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6005 * gdbarch.h, gdbarch.c: Regenerate.
6007 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6008 * target.h (memory_breakpoint_from_pc): Update declaration.
6009 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6011 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6012 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6013 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6014 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6015 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6016 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6017 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6018 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6019 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6020 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6021 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6022 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6024 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6026 * monitor.c (monitor_insert_breakpoint): Ditto.
6027 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6029 * config/mcore/tm-mcore.h: Update copyright.
6030 * mem-break.c: Ditto.
6031 * xstormy16-tdep.c: Ditto.
6033 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6035 * p-exp.y: Add precedence rule for '^' token.
6036 This removes the shift/reduce conflicts.
6037 Remove the comment concerning these shift/reduce conflicts.
6039 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6041 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6042 (registers_powerpc_nofp): New register set for processors
6043 without floating point unit.
6045 2002-04-18 David S. Miller <davem@redhat.com>
6047 * MAINTAINERS: Add myself to write-after-approval.
6049 2002-04-17 Michael Snyder <msnyder@redhat.com>
6051 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6053 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6055 * rs6000-tdep.c (frame_initial_stack_address): Use
6056 frame_register_read to read the alloca_reg.
6058 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6060 * frame.c (find_saved_register): Find saved registers in the next
6064 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6066 * gdbarch.sh (LANG): Set to ``c''.
6068 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6070 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6072 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6074 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6077 * hpread.c (hpread_get_lntt): Add declaration.
6078 Also fix PR gdb/391.
6080 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6082 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6083 * aclocal.m4, configure: Re-generate.
6086 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6088 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6089 instead of tm_print_insn.
6091 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6093 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6095 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6097 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6098 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6099 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6101 2002-04-12 Don Howard <dhoward@redhat.com>
6103 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6104 max_user_call_depth.
6105 (init_cmd_lists): Initialize the new value;
6106 * cli/cli-script.c (execute_user_command): Limit the call depth of
6107 user defined commands. This avoids a core-dump when user commands
6108 are infinitly recursive.
6110 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6112 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6113 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6114 from tdep struct instead of DEFAULT_LR_SAVE.
6115 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6116 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6117 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6119 2002-04-12 Michael Snyder <msnyder@redhat.com>
6121 * Remote.c: Spelling fix.
6122 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6123 If no symbol found for "sbrk", try "_sbrk".
6124 (make_output_phdrs): Use bfd_section_name.
6125 (gcore_copy_callback): Use bfd_section_name.
6126 * eval.c: Indentation fix-ups.
6127 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6128 in case it gets applied to an address that is already
6129 in the instruction space.
6130 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6131 * symfile.c: Fix indentation, long lines.
6132 * source.c: White space fix-up.
6134 2002-04-12 Andrew Cagney <cagney@redhat.com>
6136 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6137 * frame.c (frame_register_read): New function. Return non-zero on
6139 (read_relative_register_raw_bytes_for_frame): Delete.
6140 (read_relative_register_raw_bytes): Delete.
6141 * frame.h (frame_register_read): Declare.
6142 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6144 * infcmd.c (do_registers_info): Ditto.
6145 * hppa-tdep.c: Ditto.
6146 * rs6000-tdep.c: Ditto.
6147 * h8500-tdep.c: Ditto.
6148 * mips-tdep.c: Ditto.
6149 * h8300-tdep.c: Ditto.
6150 * z8k-tdep.c: Ditto.
6152 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6154 From Jimi X <jimix@watson.ibm.com>:
6155 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6158 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6160 From Jimi X <jimix@watson.ibm.com>:
6161 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6164 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6166 From Jimi X <jimix@watson.ibm.com>:
6167 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6168 register sets for these processor variants.
6170 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6172 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6173 registers which are allowed to fail to store.
6174 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6175 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6176 (ppc_cannot_store_register): FPSCR may not be storable.
6177 * regformats/reg-ppc.dat: Support FPSCR.
6179 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6181 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6182 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6183 Add fpscr as an invalid/unfetchable register.
6184 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6185 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6186 (fill_fpregset): Add support for register fpscr.
6187 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6188 (fill_gregset): Account for the fact that register ``mq'' might
6190 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6191 (registers_power): Add fpscr to register set at slot 71.
6192 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6193 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6195 2002-04-11 Michael Snyder <msnyder@redhat.com>
6197 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6198 * configure: Regenerate.
6199 * config.in: Regenerate.
6200 * acconfig.h: Add define for _SYSCALL32.
6201 * core-sol2.c: Remove #define _SYSCALL32.
6202 * solib-legacy.c: Remove #define _SYSCALL32.
6204 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6206 * stack.c (select_frame): Cleanup internal error message, do not
6209 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6211 * stack.c (select_frame): Check that selected_frame and the
6212 specified level are as expected.
6213 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6215 * frame.h (struct frame_info): Add field `level'. Update
6217 Work-in-progress PR gdb/464.
6219 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6221 * maint.c (maint_print_section_info): Rename print_section_info.
6222 (print_bfd_section_info, print_objfile_section_info): Update.
6223 * inferior.h (struct gdbarch): Add opaque declaration.
6224 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6225 * gdbarch.h: Regenerate.
6227 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6229 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6230 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6231 (kernel_u_size): Added.
6232 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6233 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6235 2002-04-04 Jim Ingham <jingham@apple.com>
6237 * valarith.c (find_size_for_pointer_math): New function, either returns
6238 the size for a pointer's target, returns 1 for void *, or errors for
6240 (value_add, value_sub): use find_size_for_pointer_math.
6242 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6244 * linux-low.c (linux_look_up_symbols): New hook.
6245 (linux_target_ops): Add linux_look_up_symbols.
6246 * remote-utils.c (decode_address): New function.
6247 (look_up_one_symbol): New function.
6248 * server.c (handle_query): Call target look_up_symbols hook.
6249 * server.h (look_up_one_symbol): Add prototype.
6250 * target.h (struct target_ops): Add look_up_symbols hook.
6252 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6254 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6255 * ChangeLog: Correct paths in last ChangeLog entry.
6257 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6259 * gdbserver/linux-low.h: Remove obsolete prototypes.
6260 (struct linux_target_ops): New.
6261 (extern the_low_target): New.
6262 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6263 (register_addr): Use the_low_target explicitly.
6264 (fetch_register): Likewise.
6265 (usr_fetch_inferior_registers): Likewise.
6266 (usr_store_inferior_registers): Likewise.
6267 * gdbserver/linux-arm-low.c (num_regs): Remove.
6268 (arm_num_regs): Define.
6269 (arm_regmap): Renamed from regmap, made static.
6270 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6272 (arm_cannot_store_register): Renamed from cannot_store_register,
6274 (the_low_target): New.
6275 * gdbserver/linux-i386-low.c (num_regs): Remove.
6276 (i386_num_regs): Define.
6277 (i386_regmap): Renamed from regmap, made static.
6278 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6280 (i386_cannot_store_register): Renamed from cannot_store_register,
6282 (the_low_target): New.
6283 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6284 (ia64_num_regs): Define.
6285 (ia64_regmap): Renamed from regmap, made static.
6286 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6288 (ia64_cannot_store_register): Renamed from cannot_store_register,
6290 (the_low_target): New.
6291 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6292 (m68k_num_regs): Define.
6293 (m68k_regmap): Renamed from regmap, made static.
6294 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6296 (m68k_cannot_store_register): Renamed from cannot_store_register,
6298 (the_low_target): New.
6299 * gdbserver/linux-mips-low.c (num_regs): Remove.
6300 (mips_num_regs): Define.
6301 (mips_regmap): Renamed from regmap, made static.
6302 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6304 (mips_cannot_store_register): Renamed from cannot_store_register,
6306 (the_low_target): New.
6307 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6308 (ppc_num_regs): Define.
6309 (ppc_regmap): Renamed from regmap, made static.
6310 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6312 (ppc_cannot_store_register): Renamed from cannot_store_register,
6314 (the_low_target): New.
6315 * gdbserver/linux-s390-low.c (num_regs): Remove.
6316 (s390_num_regs): Define.
6317 (s390_regmap): Renamed from regmap, made static.
6318 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6320 (s390_cannot_store_register): Renamed from cannot_store_register,
6322 (the_low_target): New.
6323 * gdbserver/linux-sh-low.c (num_regs): Remove.
6324 (sh_num_regs): Define.
6325 (sh_regmap): Renamed from regmap, made static.
6326 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6328 (sh_cannot_store_register): Renamed from cannot_store_register,
6330 (the_low_target): New.
6331 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6332 (the_low_target): New.
6334 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6336 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6337 override FP_REGNUM with frame->fp. Update copyright.
6338 * parse.c (num_std_regs, std_regs): Delete.
6339 (target_map_name_to_register): Do not search std_regs. Update
6340 function description.
6341 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6342 declarations. Update copyright.
6345 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6347 * gdbserver/Makefile.in: Add stamp-h target.
6348 * gdbserver/configure.in: Create stamp-h.
6349 * gdbserver/configure: Regenerated.
6351 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6353 * gdbserver/inferiors.c: New file.
6354 * gdbserver/target.c: New file.
6355 * gdbserver/target.h: New file.
6356 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6358 * gdbserver/linux-low.c (inferior_pid): New static variable,
6359 moved from server.c.
6360 (linux_create_inferior): Renamed from create_inferior.
6361 Call add_inferior. Return 0 on success instead of a PID.
6362 (linux_attach): Renamed from myattach.
6363 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6364 (linux_thread_alive): Renamed from mythread_alive.
6365 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6367 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6368 (regsets_store_inferior_registers): Correct error message.
6369 Add missing ``return 0''.
6370 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6371 (linux_store_registers): Renamed from store_inferior_registers.
6372 (linux_read_memory): Renamed from read_inferior_memory.
6373 (linux_write_memory): Renamed from write_inferior_memory.
6374 (linux_target_ops): New structure.
6375 (initialize_low): Call set_target_ops ().
6376 * gdbserver/remote-utils.c (unhexify): New function.
6377 (hexify): New function.
6378 (input_interrupt): Send signals to ``signal_pid''.
6379 * gdbserver/server.c (inferior_pid): Remove.
6380 (start_inferior): Update create_inferior call.
6381 (attach_inferior): Call add_inferior.
6382 (handle_query): New function.
6383 (main): Call handle_query for `q' packets.
6384 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6385 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6387 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6389 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6391 * gdbserver/configure.in: Check for <string.h>
6392 * gdbserver/configure: Regenerate.
6393 * gdbserver/config.in: Regenerate.
6394 * gdbserver/gdbreplay.c: Include needed system headers.
6395 (remote_open): Remove strchr prototype.
6396 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6397 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6398 (supply_register_by_name): Likewise.
6399 (collect_register): Change buf argument to void *.
6400 (collect_register_by_name): Likewise.
6401 * gdbserver/regcache.h: Add missing prototypes.
6402 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6403 * gdbserver/server.c (handle_query): New function.
6404 (attached): New static variable, moved out of main.
6405 (main): Quiet longjmp clobber warnings.
6406 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6407 * gdbserver/utils.c (error): Remove NORETURN.
6410 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6412 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6413 after the last symbol in a block.
6415 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6417 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6418 is non zero as a found symbol.
6420 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6422 * findvar.c: Include "builtin-regs.h".
6423 (value_of_register): Call value_of_builtin_reg when applicable.
6424 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6425 (target_map_name_to_register): Call
6426 builtin_reg_map_name_to_regnum.
6427 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6428 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6429 (builtin_regs_h): Define.
6430 (builtin-regs.o): New target.
6431 (findvar.o): Add $(builtin_regs_h).
6432 * builtin-regs.c, builtin-regs.h: New files.
6433 * std-regs.c: New file.
6434 Partial fix for PR gdb/251.
6436 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6438 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6439 it's no longer required.
6441 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6443 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6445 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6447 From Jimi X <jimix@watson.ibm.com>:
6448 * rs6000-tdep.c (rs6000_software_single_step): Use
6449 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6450 and size. Use target_insert_breakpoint() and
6451 target_remove_breakpoint() to insert and remove breakpoints
6452 instead of explicit memory reads and writes.
6454 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6456 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6457 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6458 ELF_OBJECT_FORMAT ifdef.
6460 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6462 From Jimi X <jimix@watson.ibm.com>:
6463 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6465 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6467 From Jimi X <jimix@watson.ibm.com>:
6468 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6469 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6471 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6473 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6474 s/asprintf/xasprintf/.
6475 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6477 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6479 I believe Jeff Law denies responsability for this one:
6480 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6481 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6482 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6483 Work-around for PR gdb/366.
6485 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6487 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6488 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6489 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6491 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6493 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6494 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6497 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6499 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6502 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6504 * README (Reporting Bugs in GDB): Document the bug web page as the
6505 prefered way of submitting bugs.
6508 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6510 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6512 * gdbarch.h, gdbarch.c: Re-generate.
6514 2002-04-07 Andreas Schwab <schwab@suse.de>
6516 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6517 buffer to regcache_collect.
6519 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6521 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6522 * gdbarch.c, gdbarch.h: Re-generate.
6524 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6526 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6527 declaration. Fix -Werror.
6529 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6531 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6532 * gdbarch.c: Regenerate.
6534 2002-04-05 Michael Snyder <msnyder@redhat.com>
6536 * breakpoint.c (clear_command): Rewrite middle section to
6537 combine two loops with identical control conditions.
6538 Add a cleanup to eliminate a memory leak.
6539 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
6541 2002-04-05 H.J. Lu (hjl@gnu.org)
6543 * solib-svr4.c (bkpt_names): Add "__start".
6545 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6547 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
6548 as test for 64 bit target.
6550 2002-04-05 Andrew Cagney <ac131313@redhat.com>
6552 * h8500-tdep.c (h8500_write_fp): Delete function.
6553 * dwarf2cfi.c (cfi_write_fp): Document as not used.
6554 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
6555 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
6556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
6557 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
6558 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
6560 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
6561 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
6562 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
6563 (d10v_write_fp): Delete function.
6564 * inferior.h (write_fp, generic_target_write_fp): Delete
6566 * regcache.c (generic_target_write_fp): Delete function.
6567 (write_fp): Delete function.
6568 * gdbarch.sh (TARGET_WRITE_FP): Delete.
6569 * gdbarch.h, gdbarch.c: Regenerate.
6570 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
6571 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
6572 (sparc64_write_fp): Delete declaration.
6573 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
6574 (h8500_write_fp): Delete declaration.
6576 2002-04-04 Andrew Cagney <ac131313@redhat.com>
6578 * sparc-tdep.c (sparc64_write_fp): Delete.
6579 (sparc_push_dummy_frame): Replace write_fp call with code to store
6581 (sparc_gdbarch_init): Do not initialize write_fp.
6583 2002-04-05 Kevin Buettner <kevinb@redhat.com>
6585 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
6588 2002-03-29 Jim Blandy <jimb@redhat.com>
6590 * stack.c (get_selected_block): Add new argument `addr_in_block',
6591 used to return the exact code address we used to select the block,
6593 * blockframe.c (get_frame_block, get_current_block): Same.
6594 * frame.h (get_frame_block, get_current_block,
6595 get_selected_block): Update declarations.
6596 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
6597 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
6599 2002-04-05 Michael Snyder <msnyder@redhat.com>
6601 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
6604 2002-04-05 J. Brobecker <brobecker@gnat.com>
6606 * utils.c (xfullpath): New function.
6607 * defs.h (xfullpath): Add declaration.
6608 * source.c (openp): Use xfullpath in place of gdb_realpath to
6609 avoid resolving the basename part of filenames when the
6610 associated file is a symbolic link. This fixes a potential
6611 inconsistency between the filenames known to GDB and the
6612 filenames it prints in the annotations.
6613 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
6614 to be able to match a filename with either the real filename, or
6615 the name of any symbolic link to this file.
6616 (lookup_partial_symtab): Ditto.
6618 2002-04-04 Michael Snyder <msnyder@redhat.com>
6620 * breakpoint.c: Add support for hardware breakpoints in overlays.
6621 (overlay_events_enabled): New state variable.
6622 (insert_breakpoints): Use overlay_events_enabled to decide
6623 whether to attempt to set a breakpoint at the overlay load addr.
6624 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6625 (remove_breakpoint): Use overlay_events_enabled to decide
6626 whether breakpoints need to be removed from overlay load addr.
6627 Handle bp_hardware_breakpoint as well as bp_breakpoint.
6628 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
6629 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
6630 disable_overlay_breakpoints): Update overlay_events_enabled.
6632 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
6634 * dwarf2read.c (struct function_range): New.
6635 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
6636 (check_cu_functions): New.
6637 (read_file_scope): Initialize global function lists.
6638 Call dwarf_decode_line after processing children.
6639 (read_func_scope): Add to global function list.
6640 (dwarf_decode_lines): Call check_cu_functions everywhere
6641 record_line is called. Call record_line with a linenumber
6642 of 0 to mark sequence ends.
6644 2002-04-04 Michal Ludvig <mludvig@suse.cz>
6646 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
6647 change sync with glibc.
6649 2002-04-03 Jim Blandy <jimb@redhat.com>
6651 * configure.in: Call AC_C_INLINE.
6652 * configure: Regenerated.
6654 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
6656 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
6657 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
6659 2002-03-31 Mark Kettenis <kettenis@gnu.org>
6661 * NEWS: Mention gcore support on FreeBSD/i386.
6663 * fbsd-proc.c: New file.
6664 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
6665 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
6667 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
6670 2002-03-29 Jim Blandy <jimb@redhat.com>
6672 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
6673 unescaped newlines in string literals, but newer ones don't. So
6676 2002-03-26 Michael Snyder <msnyder@redhat.com>
6677 Andrew Cagney <cagney@redhat.com>
6679 * cli/cli-dump.c: New file. Dump memory to file,
6680 restore file to memory.
6681 * cli/cli-dump.h: New file.
6682 * Makefile.in: Add rules, dependencies for cli-dump.o.
6683 * NEWS: Mention new commands.
6685 2002-03-28 Michael Snyder <msnyder@redhat.com>
6687 * symfile.c (symbol_file_add): Move test for null symbols to later.
6689 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6691 From veksler at il.ibm.com:
6692 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
6693 the xstrduped original path.
6696 2002-03-27 Michael Snyder <msnyder@redhat.com>
6698 * breakpoint.c (_initialize_breakpoint): Clean up help string.
6699 * infcmd.c (_initialize_infcmd): Ditto.
6700 * language.c (_initialize_language): Ditto.
6701 * symfile.c (_initialize_symfile): Ditto.
6702 * top.c (_init_main): Ditto.
6703 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6705 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
6707 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
6708 vector registers handling.
6709 (skip_prologue): Handle new AltiVec instructions. Fill in new
6710 fields of frame data.
6711 (frame_get_saved_regs): Fill in information for AltiVec registers.
6713 2002-03-27 Jim Blandy <jimb@redhat.com>
6715 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
6716 a function; leave this macro here to invoke that function.
6717 (symbol_init_mangled_name): Declaration for that function.
6718 * symtab.c (symbol_init_mangled_name): New function.
6720 2002-03-27 Andrew Cagney <ac131313@redhat.com>
6722 * valarith.c: Replace strerror with safe_strerror.
6723 * tracepoint.c: Ditto.
6725 * go32-nat.c: Ditto.
6729 2002-03-27 Andreas Schwab <schwab@suse.de>
6731 * event-top.c (command_line_handler): Remove useless if.
6733 2002-03-27 Andreas Jaeger <aj@suse.de>
6735 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
6738 2002-03-27 Michal Ludvig <mludvig@suse.cz>
6740 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
6741 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
6742 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6743 (x86_64_linux_dr_get_status, supply_gregset),
6744 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
6745 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
6746 (x86_64_register_info_table): Add.
6747 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
6748 (x86_64_register_raw_size, x86_64_register_virtual_type),
6749 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
6750 general x86_64_register_info_table.
6751 (i386_gdbarch_init): gdbarch_register_bytes is now set
6752 dynamicaly during initialization.
6753 * regformats/reg-x86-64.dat: Synced with changes to registers above.
6754 * gdbserver/linux-x86-64-low.c: Ditto.
6756 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6758 * gdbserver/server.c (main): Call target_signal_to_host_p
6759 and target_signal_to_host on signals received from the remote.
6760 * gdbserver/remote-utils.c (prepare_resume_reply): Call
6761 target_signal_from_host on signals sent to the remote.
6762 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
6763 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
6765 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6767 * signals/signals.c: Include "server.h" in gdbserver build.
6768 (target_signal_from_name): Don't use STREQ.
6769 (_initialize_signals): Likewise. Don't include function in
6772 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
6774 * signals.c: Moved to...
6775 * signals/signals.c: Here.
6776 * Makefile (signals.o): Update.
6778 2002-03-26 Jeff Law (law@redhat.com)
6780 * somread.c (som_symtab_read): Remove some commented out code and
6781 updated related comments. Do not set the minimal symbol table to
6782 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
6783 in a dynamic executable.
6784 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
6785 where we are unable to find the minimal symbol for the given
6788 2002-03-25 Jeff Law (law@redhat.com)
6790 * linux-proc.c (read_mapping): Scan up to end of line for filename.
6792 2002-03-25 Michal Ludvig <mludvig@suse.cz>
6794 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
6796 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6798 * command.h: Update copyright.
6799 (struct cmd_list_element): Replace definition with opaque
6801 (enum cmd_types): Document that it will eventually be moved to
6803 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
6804 (MALLOCED_REPLACEMENT): Delete macro.
6805 * Makefile.in (cli_decode_h): Add $(command_h).
6806 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
6807 * top.c: Include "cli/cli-decode.h".
6808 * completer.c: Include "cli/cli-decode.h".
6809 * maint.c: Include "cli/cli-decode.h".
6810 * cli/cli-decode.h: Include "command.h".
6811 (enum command_class): Delete.
6812 (enum cmd_types): Comment out.
6813 (enum cmd_auto_boolean): Delete.
6814 (enum var_types): Delete.
6816 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6818 * cli/cli-decode.c: Include "gdb_assert.h".
6819 (add_set_or_show_cmd): New static function.
6820 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
6821 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
6822 all fields, such as func, from the set command.
6824 2002-03-23 Andrew Cagney <ac131313@redhat.com>
6826 * MAINTAINERS (sh-elf): Change warning flag to -w.
6828 2002-03-23 Andrew Cagney <cagney@redhat.com>
6830 * defs.h (error): Add printf format attribute.
6831 * thread-db.c (thread_from_lwp): Fix error format string.
6832 * stack.c (parse_frame_specification): Ditto.
6833 * cli/cli-decode.c (undef_cmd_error): Ditto.
6834 * scm-lang.c (scm_lookup_name): Ditto.
6835 * tracepoint.c (trace_error): Ditto.
6836 * remote-utils.c (usage): Ditto.
6837 * remote.c (compare_sections_command): Ditto.
6840 2002-03-22 Andrew Cagney <ac131313@redhat.com>
6842 * gdbtypes.c (append_composite_type_field): New function.
6843 (init_composite_type): New function.
6844 * gdbtypes.h (append_composite_type_field): Declare.
6845 (init_composite_type): Ditto.
6847 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
6849 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
6851 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
6852 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
6853 structure returning convention for SYSV ABI case, but not
6854 for GNU/Linux, FreeBSD, or NetBSD.
6856 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
6858 * symtab.h (lookup_block_symbol): Add mangled_name argument
6861 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
6862 with new mangled_name argument.
6863 * linespec.c (decode_line_1): Likewise.
6864 * valops (value_of_this): Likewise.
6865 * symtab.c (lookup_transparent_type): Likewise.
6866 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
6867 (lookup_symbol): If we are given a mangled name, pass it down
6868 to lookup_symbol_aux.
6869 (lookup_block_symbol): If we are given a mangled name to check
6870 against, only return symbols which match it.
6872 2002-03-22 Christopher Faylor <cgf@redhat.com>
6874 * win32-nat.c (child_create_inferior): Check for proper shell to use
6875 here, in case the user changes it on the fly.
6876 (_initialize_inftarg): Remove shell path considerations.
6878 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
6880 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
6881 for gdbarch_max_register_raw_size and max_register_virtual_size.
6882 Adjust copyright year.
6884 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
6886 * dbxread.c (process_one_symbol): Extend the first N_SLINE
6887 in a function to cover the entire beginning of the function
6888 as well if it does not already.
6890 2002-03-21 Tom Rix <trix@redhat.com>
6892 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
6893 (rs6000_ptrace64): Renamed from ptrace64.
6895 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6897 * gdbserver/remote-utils.c (remote_open): Don't call
6898 getprotobyname, we're all using TCP here so just use
6900 * gdbserver/gdbreplay.c (remote_open): Ditto.
6902 2002-03-20 Martin M. Hunt <hunt@redhat.com>
6904 * regcache.c (_initialize_regcache): No need to call
6905 build_regcache() at this time; it gets called whenever
6906 the gdbarch changes.
6908 2002-03-20 David O'Brien <obrien@FreeBSD.org>
6910 * sparc-nat.c: Include sys/param.h where possible.
6912 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
6915 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
6916 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
6917 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
6919 * stabsread.c (rs6000_builtin_type): Likewise.
6920 (read_sun_floating_type): Likewise.
6922 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6924 * stabsread.c (read_member_functions): Remove skip code for duplicate
6925 constructor/destructor methods. Use standard parsing for these
6926 methods and just do not chain them to the list of methods after
6929 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
6931 * coffread.c: Remove redundant static declarations. Replace
6932 occurrences of `PTR' with `void *'.
6933 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
6934 * top.h (quit_cover): Likewise.
6935 * defs.h (catch_errors): Likewise.
6937 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6939 * defs.h (XMALLOC): Define.
6940 * gdb-events.sh (XMALLOC): Delete macro.
6941 * gdb-events.c, gdb-events.h: Regenerate.
6942 * gdbarch.sh (XMALLOC): Delete macro.
6943 * gdbarch.c: Regenerate.
6944 * serial.c (XMALLOC): Delete macro.
6945 * ui-file.c (XMALLOC): Ditto.
6946 * ser-unix.h (XMALLOC): Ditto.
6947 * sh-tdep.c (XMALLOC): Ditto.
6948 * ui-out.c (XMALLOC): Ditto.
6949 * utils.c (XMALLOC): Ditto.
6950 * i386-tdep.c (XMALLOC): Ditto.
6951 * gdb-events.c (XMALLOC): Ditto.
6952 * d10v-tdep.c (XMALLOC): Ditto.
6953 * cli-out.c (XMALLOC): Ditto.
6955 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
6956 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
6957 * ui-file.c, ui-out.c: Ditto.
6959 2002-03-18 Andrew Cagney <ac131313@redhat.com>
6961 * command.h (struct cmd_list_element): Add field context.
6962 (set_cmd_context, get_cmd_context): Declare.
6963 * cli/cli-decode.h: Ditto.
6964 * cli/cli-decode.c (get_cmd_context): New function.
6965 (set_cmd_context): New function.
6966 (add_cmd): Initialize context.
6967 Part of fixing PR gdb/145 and PR gdb/146.
6969 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6971 * cli/cli-decode.c (cmd_type): New function.
6972 * command.h (cmd_type): Declare.
6973 * infrun.c (set_schedlock_func): Call function cmd_type.
6974 * kod.c (kod_set_os): Call cmd_type.
6975 * cris-tdep.c (cris_version_update): Use function cmd_type.
6976 (cris_mode_update, cris_abi_update): Ditto.
6978 * command.h: (execute_cmd_post_hook): Declare.
6979 (execute_cmd_pre_hook): Declare.
6980 * cli/cli-script.c (clear_hook_in_cleanup): New function.
6981 (execute_cmd_post_hook, execute_cmd_pre_hook): New
6982 functions. Execute pre/post hook while ensuring that afterwords
6984 * top.c (execute_command): Use execute_cmd_post_hook, and
6985 execute_cmd_pre_hook to execute pre/post commands.
6986 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
6988 (hook_stop_stub): Call execute_cmd_pre_hook.
6990 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6992 * kod.c (kod_set_os): Revert previous change. Is called by ``info
6993 set'' and this leads to a core dump. Move xstrdup of
6994 operating_system to after check that it is not NULL.
6996 2002-03-17 Andrew Cagney <ac131313@redhat.com>
6998 * kod.c (kod_set_os): Remove unnecessary check that
6999 ``command->type'' is set_cmd.
7001 * valprint.c (set_input_radix): Use input_radix.
7002 (set_output_radix): Use output_radix.
7003 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7006 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7008 * value.h (struct value): Delete field ``substring_addr''. Change
7009 aligner fields to force_doublest_align, force_longest_align,
7010 force_core_addr_align and force_pointer_aligh.
7012 * value.h (struct value): Fix typo in above change.
7014 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7016 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7017 to fix internal_error from ``maintenance print architecture''.
7019 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7021 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7022 for gcc versions after gcc-2.8.1.
7024 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7026 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7027 for method resolution. Restore adjustment of ``this'' pointer after
7028 calling value_struct_elt, which was accidentally removed during the
7031 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7033 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7035 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7037 * value.h (value_of_register): Update.
7039 2002-03-14 Richard Henderson <rth@redhat.com>
7041 * configure.in: Detect declaration for canonicalize_file_name.
7042 * utils.c (canonicalize_file_name): Declare, if needed.
7043 (gdb_realpath): Prefer realpath if available and usable.
7044 * config.in, configure: Rebuild.
7046 2002-03-14 Richard Henderson <rth@redhat.com>
7048 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7049 a constant array bound.
7051 * MAINTAINERS: Add myself to write-after-approval.
7053 2002-03-14 Michael Snyder <msnyder@redhat.com>
7055 * symfile.c (syms_from_objfile): Return immediately if no syms.
7056 (symbol_file_add): Return immediately if no syms.
7057 (find_sym_fns): Return immediately if no syms.
7059 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7061 * gdbserver/remote-util.c (remote_open): Print remote-side's
7062 IP address when remote debugging over the network.
7064 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7066 * config/sparc/fbsd.mh: Fix copyright.
7067 * config/sparc/fbsd.mt: Likewise.
7069 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7071 * MAINTAINERS: Fix typo in name of gdb warnings option.
7072 (x86-64): Fix formating so that this can be parsed by awk.
7074 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7076 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7077 * defs.h: Include "gdb/signals.h".
7078 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7080 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7082 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7083 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7086 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7087 Don Howard <dhoward@redhat.com>
7089 * mips-tdep.c (ST0_FR): Define.
7090 (mips2_fp_compat): New function, temporarily disabled.
7091 (mips_read_fp_register_single): New function.
7092 (mips_read_fp_register_double): New function.
7093 (mips_print_register): Use them.
7094 (do_fp_register_row): Likewise.
7096 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7098 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7101 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7103 * stabsread.c (read_member_functions): Fix is_stub test for
7104 static member functions, improve comment.
7106 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7108 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7109 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7110 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7111 commands that set boolean values.
7112 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7113 (arm_rdi_resume): Always initialize PC.
7114 (arm_rdi_open): Don't use rslt as a boolean.
7115 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7116 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7117 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7118 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7120 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7122 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7123 * configure: Rebuilt.
7125 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7127 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7128 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7130 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7132 * cli/cli-decode.c (set_cmd_completer): New function.
7133 * command.h (set_cmd_completer): Declare.
7134 * cli/cli-decode.h (set_cmd_completer): Ditto.
7136 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7137 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7138 * win32-nat.c (_initialize_inftarg): Ditto.
7139 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7140 * proc-api.c (_initialize_proc_api): Ditto.
7141 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7142 * source.c (_initialize_source): Ditto.
7143 * exec.c (_initialize_exec): Ditto.
7144 * solib.c (_initialize_solib): Ditto.
7145 * top.c (init_main): Ditto.
7146 * tracepoint.c (_initialize_tracepoint): Ditto.
7147 * symfile.c (_initialize_symfile): Ditto.
7148 * printcmd.c (_initialize_printcmd): Ditto.
7149 * infcmd.c (_initialize_infcmd): Ditto.
7150 * corefile.c (_initialize_core): Ditto.
7152 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7154 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7156 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7158 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7160 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7162 * NEWS: Update headings, 5.2 has branched.
7164 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7166 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7167 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7168 (register_addr, REGISTER_RAW_SIZE): Likewise.
7169 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7170 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7172 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7174 * MAINTAINERS (x86-64): Add myself.
7175 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7176 changed value_ptr -> struct value *
7178 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7180 * configure.host (sparc64-*-freebsd): Add.
7181 * configure.tgt: Likewise.
7182 * config/sparc/fbsd.mh: New file.
7183 * config/sparc/fbsd.mt: Likewise.
7184 * config/sparc/nm-fbsd.h: Likewise.
7185 * config/sparc/tm-fbsd.h: Likewise.
7187 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7189 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7190 regformats/reg-s390x.dat.
7192 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7194 * utils.c: Add FIXME explaining true/false problem.
7196 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7198 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7200 2002-02-28 Michael Chastain <mec@shout.net>
7202 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7204 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7206 * gdbserver/linux-s390-low.c: New file.
7207 * regformats/reg-s390.dat: New file.
7208 * regformats/reg-s390x.dat: New file.
7209 * gdbserver/configure.srv: Add S/390.
7210 * gdbserver/Makefile.in: Add S/390.
7211 * configure.tgt: Enable gdbserver for S/390.
7213 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7215 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7216 first line of the doc string for "info dos", except at the end of
7217 the sentence, since the short help stops at the first period.
7219 2002-02-28 Jason Merrill <jason@redhat.com>
7221 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7223 2002-02-27 Fred Fish <fnf@redhat.com>
7225 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7226 comment (dumy -> dummy).
7228 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7230 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7232 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7234 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7236 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7238 * gdbserver/acconfig.h: New file.
7239 * gdbserver/i387-fp.c: New file.
7240 * gdbserver/i387-fp.h: New file.
7241 * gdbserver/linux-x86-64.c: New file.
7242 * regformats/reg-x86-64.dat: New file.
7243 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7244 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7245 * gdbserver/configure.in: Add support for regsets.
7246 * gdbserver/config.in: Regenerate.
7247 * gdbserver/configure: Regenerate.
7248 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7249 * gdbserver/linux-low.h: New file.
7250 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7252 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7253 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7254 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7255 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7256 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7257 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7258 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7259 "i387-fp.h". Add PTRACE_GETREGS and friends.
7260 * gdbserver/regcache.c (supply_register): New function.
7261 (supply_register_by_name): New function.
7262 (collect_register): New function.
7263 (collect_register_by_name): New function.
7265 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7267 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7268 (config.status): Add configure.srv dependency.
7269 (server_h): Add config.h dependency.
7271 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7273 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7274 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7275 * gdbserver/configure.srv: Change i386-*-linux* to use
7278 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7280 * x86-64-tdep.c: Re-indent. Update copyright date.
7282 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7284 From Michal Ludvig <mludvig@suse.cz>:
7285 * x86-64-tdep.c (value.h): Delete.
7286 (gdb_assert.h): Include.
7287 (x86_64_register_convert_to_virtual,
7288 x86_64_register_convert_to_raw ): Add check which lets only
7289 floating-point values to be converted.
7290 (value_push): Delete.
7291 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7292 (i386_gdbarch_init): Number of register_bytes fixed.
7294 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7296 * MAINTAINERS: Add x86-64 target.
7298 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7300 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7301 * osfsolib.c (solib_map_sections): Ditto.
7302 * irix5-nat.c (solib_map_sections): Ditto.
7303 * corelow.c (gdb_check_format): Ditto.
7304 * symfile.c (symfile_bfd_open): Ditto.
7305 * solib.c (solib_map_sections): Ditto.
7308 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7310 * remote.c (_initialize_remote): By default, disable ``e'' and
7311 ``E'' step out-of-range packets.
7313 2002-02-26 Andreas Schwab <schwab@suse.de>
7315 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7316 m68k_linux_frame_saved_pc.
7317 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7319 (SIGCONTEXT_PC_OFFSET): Remove.
7320 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7321 m68k_linux_sigtramp_saved_pc): New functions.
7322 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7323 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7324 (UCONTEXT_PC_OFFSET): Define.
7325 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7326 non-RT and RT signal trampolines.
7328 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7330 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7331 (TARGET_NBPG, STACK_END_ADDR): Delete
7332 (VARIABLES_INSIDE_BLOCK): Delete.
7334 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7336 * utils.c (perror_with_name): Make string parameter constant.
7337 (print_sys_errmsg): Ditto.
7339 * defs.h (perror_with_name): Update.
7340 (print_sys_errmsg): Update.
7343 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7345 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7346 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7348 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7350 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7351 if it already matches the current architecture from the exec file.
7352 Include arch-utils.h for gdbarch_info_init prototype.
7353 * Makefile.in (rs6000-nat.o): Update dependencies.
7355 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7357 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7358 list of exported variables.
7360 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7362 * gdbserver/configure.srv: New file.
7363 * gdbserver/configure.in: Use configure.srv instead
7364 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7366 * gdbserver/configure: Regenerated.
7367 * gdbserver/terminal.h: New file.
7368 * gdbserver/Makefile.in: Update for configure changes. Remove
7369 more unneeded include paths.
7371 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7373 From wiz at danbala:
7374 * config/sparc/tm-sp64.h: Fix grammar and typos.
7377 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7379 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7380 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7381 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7382 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7383 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7384 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7385 * s390-tdep.c: Ditto.
7386 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7387 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7388 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7389 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7390 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7391 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7392 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7393 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7394 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7395 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7398 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7400 * lin-thread.c: Delete file.
7401 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7402 to gdb_proc_service.h.
7403 * configure: Re-generate.
7405 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7406 * serial.c (serial_open): Delete check for "ocd".
7409 * Makefile.in (linux-thread.o): Delete target.
7410 * linux-thread.c: Delete file.
7412 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7413 renamed SH files to be consistent.
7415 * symtab.c (sort_search_symbols): Use xfree.
7417 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7419 * arm-linux-tdep.c (arm_linux_init_abi): Register
7420 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7421 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7422 definition with undef, since we don't want the sysvr4 definition.
7423 (SKIP_TRAMPOLINE_CODE): Likewise.
7425 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7427 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7429 * configure.in: (AC_CHECK_FUNCS) Added test for
7430 canonicalize_file_name Regenerated.
7431 * config.in, configure: Regenerated.
7432 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7433 defined use canonicalize_file_name.
7435 2002-02-23 Michael Chastain <mec@shout.net>
7437 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7439 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7441 * README: Remove references to cygnus.com.
7442 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7443 dot com'' form. Remove references to cygnus.com and sourceware.
7445 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7447 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7448 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7449 1003.1-2001 no longer allows "head -1".
7450 * gdb/Makefile.in (version.c): Likewise.
7451 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7452 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7453 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7455 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7457 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7458 * command.h (cmd_cfunc_eq): Declare.
7459 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7461 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7462 ``struct cmd_list_element *''.
7463 * cli/cli-cmds.c (is_complete_command): Update. Use
7465 * top.c (execute_command): Pass the command to
7466 is_complete_command.
7467 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7469 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7471 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7472 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7473 architecture defines.
7474 * s390-tdep.c (s390_gdbarch_init): Likewise.
7476 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7478 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7479 (arm_linux_push_arguments): Likewise.
7480 (arm_linux_init_abi): Register them. Also register linux-specific
7482 (find_minsym_and_objfile): Use strcmp, not STREQ.
7483 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7484 (arm_linux_call_dummy_words): Delete declaration.
7485 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7486 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7488 (LOWEST_PC): Delete.
7490 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7492 * maint.c (print_section_info): Do not prepend `0x' to filepos
7493 output, it will be handled by local_hex_string_custom.
7495 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7497 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7498 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7499 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7501 2002-02-22 Jim Blandy <jimb@redhat.com>
7503 Indicate that the bcache functions don't change the strings
7505 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7506 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7508 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7510 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7512 2002-02-21 Christopher Faylor <cgf@redhat.com>
7514 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7515 find the complete path to a loaded DLL.
7517 2002-02-21 Fred Fish <fnf@redhat.com>
7519 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7520 that marks the end of the range of a function, enter a line number
7521 entry that has a line number of zero and a PC offset that matches
7522 the end of the function. This starts a range of PC's for which no
7523 line number information is known.
7524 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7525 PC's for which no line number info is found (line number is zero)
7526 then we didn't find any valid line information.
7527 * symtab.h: Document use of zero line number entry.
7529 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7531 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7532 (have_ptrace_getvrregs): Define for run time checks.
7533 (gdb_vrregset_t): New type for Altivec register handling.
7534 (fetch_register, store_register): Fetch/store altivec register
7536 (fetch_altivec_register, store_altivec_register): New functions.
7537 (supply_vrregset, fill_vrregset): New functions.
7538 (fetch_altivec_registers, store_altivec_registers): New functions.
7539 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
7542 2002-02-21 Jiri Smid <smid@suse.cz>
7544 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
7546 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7548 * Makefile.in (armnbsd-nat.o): Update dependencies.
7549 * armnbsd-nat.c (supply_gregset): New function. Common code to
7550 supply the integer register set.
7551 (supply_fparegset): New function. Similar for FPA registers.
7552 (fetch_regs, fetch_fp_regs): Use them.
7553 (fetch_core_registers): Likewise.
7554 (fetch_elfcore_registers): New function.
7555 (arm_netbsd_elfcore_fns): New core-file type specification.
7556 (_initialize_arm_netbsd_nat): Register it.
7558 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
7560 * armnbsd-nat.c: Include gdbcore.h.
7561 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
7562 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
7563 'void' to declaration, to shut up ARI.
7564 (fetch_core_registers): Make static. Rewrite using supply_register.
7565 (arm_netbsd_core_fns): New core-file type specification.
7566 (_initialize_arm_netbsd_nat): New function.
7568 2002-02-21 Christopher Faylor <cgf@redhat.com>
7570 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
7573 2002-02-20 Christopher Faylor <cgf@redhat.com>
7575 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
7578 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7580 * jv-exp.y (parse_number): Change type of implicit longs
7581 to builtin_type_uint64.
7583 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7585 * gdbserver/linux-low.c (mywait): Change argument to waitpid
7586 to be an integer instead of a `union wait'.
7588 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7590 * mips-linux-nat.c: Call the operating system GNU/Linux.
7591 * mips-linux-tdep.c: Likewise.
7592 * mips-tdep.c: Likewise.
7594 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7597 * jv-exp.y (parse_number): Handle 64-bit integers.
7599 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
7601 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
7602 AC_STDC_HEADERS to AC_HEADER_STDC.
7603 * gdbserver/configure: Regenerated.
7605 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7607 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
7609 * sparc-tdep.c (get_longjmp_target): Likewise.
7611 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
7613 * News: Add news about ARM and Multi-arch. Mention the new target
7616 2002-02-19 Jim Blandy <jimb@redhat.com>
7618 * stabsread.c (error_type_complaint): Improve error message.
7620 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
7622 * gdbserver/README: Update documentation.
7623 * gdbserver/configure.in: Update configury to match documentation.
7624 * gdbserver/Makefile.in: Likewise.
7625 * gdbserver/configure: Regenerated.
7626 * gdbserver/aclocal.m4: New file, generated by aclocal.
7627 * gdbserver/config.in: New file, generated by autoheader.
7629 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7631 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
7634 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7636 * arm-tdep.h (enum arm_float_model): New enum.
7637 (struct gdbarch_tdep): Add fp_model.
7638 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
7639 up floating-point conversions until we know the floating-point model
7640 in use by the inferior. Don't complain about being unable to
7641 determine the ABI of the inferior when we don't have one.
7642 (arm_extract_return_value): Support different floating-point models.
7643 (arm_store_return_value): Likewise.
7644 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
7646 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
7648 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7650 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
7651 of ``current_gdbarch''.
7653 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7655 * armnbsd-nat.c : ANSIfy all function declarations.
7656 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
7657 (fetch_inferior_registers): Re-implement in terms of above.
7658 (store_register, store_regs, store_fp_register, store_fp_regs): New.
7659 (store_inferior_registers): Re-implement in terms of above.
7661 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7663 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
7665 * arm-linux-tdep.c: Likewise.
7666 * config/arm/tm-linux.h: Likewise.
7668 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7670 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
7671 * config/arm/nbsd.mt (TM_FILE): Delete.
7672 * config/arm/tm-nbsd.h: Delete.
7674 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7676 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
7677 Initialize CALL_DUMMY_LENGTH.
7679 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
7681 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
7683 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
7684 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
7685 defines one thing and that is incorrect for this port.
7686 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
7688 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7690 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
7692 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
7694 * win32-nat.c (display_selector): New function. Displays information
7695 about the information returned by GetThreadSelectorEntry API function.
7696 (display_selectors): New function. Displays the infomation of
7697 the selector given as argument, or of CS, DS ans FS selectors
7698 if no argument is given.
7699 ( _initialize_inftarg): Add "w32" as info prefix command.
7700 Add "info w32 selector" as command calling display_selectors.
7702 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
7704 * i386-tdep.c (get_longjmp_target): Fix compilation failure
7705 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
7708 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7710 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
7712 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7714 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
7715 (arm_fix_call_dummy): Call it.
7716 (arm_call_dummy_breakpoint_offset): Delete.
7717 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
7718 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7720 2002-02-18 Andrew Cagney <ac131313@redhat.com>
7722 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
7723 Default to func_frame_chain_valid.
7724 * gdbarch.h, gdbarch.c: Re-generate.
7725 * frame.h (FRAME_CHAIN_VALID): Delete definition.
7727 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
7729 * ppc-linux-nat.c: Update copyright.
7730 (fetch_register, store_register): Add tid parameter, don't compute
7732 (fetch_ppc_registers, store_ppc_registers): Add tid
7733 parameter. Pass it along to callees.
7734 (fetch_inferior_registers, store_inferior_registers): Compute tid
7735 here, and pass it to calleed functions.
7736 (fill_gregset, supply_fpregset): Clean up formatting.
7738 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7740 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
7741 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
7743 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
7745 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
7746 * gdbarch.c gdbarch.h: Regenerate.
7747 * breakpoint.c (create_longjmp_breakpoint): Always compile this
7749 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
7750 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
7751 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
7753 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
7754 * arm-tdep.c (arm_get_longjmp_target): New function.
7755 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
7756 this to a positive value register arm_get_longjmp_target as the
7758 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
7759 (arm_linux_init_abi): Set up longjmp description in tdep.
7760 * armnbsd-nat.c (get_longjmp_target): Delete.
7761 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
7762 description in tdep.
7763 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
7764 (get_longjmp_target): Delete declaration.
7765 (GET_LONGJMP_TARGET): Delete.
7766 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
7767 (GET_LONGJMP_TARGET): Delete.
7769 2002-02-17 Kevin Buettner <kevinb@redhat.com>
7771 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
7772 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
7773 of ``current_gdbarch''.
7775 2002-02-17 Tom Tromey <tromey@redhat.com>
7777 * cli/cli-cmds.c (compare_strings): New function.
7778 (complete_command): Only print each unique item once.
7779 * completer.h (complete_line): Declare.
7780 * completer.c (complete_line): New function.
7781 (line_completion_function): Use it.
7783 2002-02-16 Andrew Cagney <ac131313@redhat.com>
7785 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
7786 * gdbarch.h, gdbarch.c: Re-generate.
7788 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7790 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
7792 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
7794 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7795 * valops.c (value_arg_coerce): Don't take the address of a reference
7796 to convert an argument to a reference.
7798 2002-02-15 Christopher Faylor <cgf@redhat.com>
7800 * win32-nat.c (get_image_name): New function.
7801 (handle_load_dll): Use get_image_name function.
7802 (get_child_debug_event): Avoid registering debug events until possibly
7803 execed process is started.
7804 (child_create_inferior): Allow invocation via shell so that command
7805 line redirection, etc. works ok.
7806 (_initialize_inftarg): Add new command: "set shell" to control whether
7807 a shell is used to start a process.
7809 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7811 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
7812 instead of find_register_by_number.
7813 (cannot_store_register): Likewise.
7815 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
7817 * dwarf2read.c: Replace fprintf (stderr, ...) by
7818 fprintf_unfiltered (gdb_stderr, ...).
7820 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
7822 * gdbserver/gdbserver.1: Document --attach.
7824 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7826 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
7828 * arm-tdep.c (arm_default_arm_le_breakpoint)
7829 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
7830 (arm_default_thumb_be_breakpoint): New. Initialize them from
7831 traditional breakpoint defines.
7832 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
7833 (arm_gdbarch_init): Initialize new breakpoint variables.
7834 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
7835 (arm_linux_init_abi): Initialize linux-specific breakpoint.
7836 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
7837 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
7839 (arm_netbsd_init_abi_common): ... here; new function.
7840 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
7841 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
7842 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
7843 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
7845 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
7847 * arm-tdep.h (enum arm_abi): New enum.
7848 (struct gdbarch_tdep): New structure.
7849 (LOWEST_PC): Provide a default.
7850 (arm_gdbarch_register_os_abi): Declare new function.
7851 * arm-tdep.c (arm_abi_names): New array.
7852 (process_note_abi_tag_sections): New function.
7853 (get_elfosabi): New function.
7854 (arm_gdbarch_register_os_abi): New function.
7855 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
7856 support for that ABI has been built in, then call the appropriate
7857 configuration routine. Use gdbarch_num_regs() to get the number
7859 (arm_dump_tdep): New function.
7860 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
7861 place-holder functions.
7862 (_initialize_arm_tdep): Register them.
7863 * config/arm/tm-arm.h (LOWEST_PC): Delete.
7865 * armnbsd-tdep.c: New file.
7866 * Makefile.in (armnbsd-tdep.o): Add dependencies.
7867 * config/arm/nbsd.mt (TDEPFILES): Add it.
7868 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
7870 * armnbsd-nat.c: Include regcache.h.
7871 * Makefile.in (armnbsd-nat.o): Update dependency list.
7873 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
7875 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7877 * gdbserver/Makefile.in: Fix typos in target rules.
7879 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7881 Fix part of PR gdb/267.
7882 * linespec.c (find_methods): Handle constructors specially for now.
7884 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
7886 * arm-tdep.c (arm_push_arguments): Eliminate special float type
7888 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
7889 standard_coerce_float_to_double().
7891 2002-02-14 Christopher Faylor <cgf@redhat.com>
7893 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
7896 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
7898 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
7899 find_variant_by_name, because it confuses the multiarch
7900 framework. Return NULL if there isn't an architecture with the
7901 user supplied name, instead of forcing a different one without
7902 recording the change with the multiarch machinery.
7903 (find_variant_by_name): Delete.
7905 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7907 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
7908 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
7910 2002-02-13 Martin M. Hunt <hunt@redhat.com>
7912 * stack.c (print_frame_info_base): When calling
7913 print_frame_info_listing_hook, set current_source_symtab.
7915 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7917 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
7918 and remove unused $(INCLUDE_DIR).
7919 Add regcache.c to OBS.
7920 Add generated register protocol files to clean target.
7921 Update dependencies for new objects, obsolete old target code.
7923 * gdbserver/linux-low.c: Remove all platform-specific code to
7924 new files. Remove various dead code. Update to use regcache
7926 * gdbserver/remote-utils.c (fromhex): Add return statement
7928 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
7930 (input_interrupt): Add integer parameter to match prototype
7931 of a signal handler.
7932 (outreg): Use register_data ().
7933 (prepare_resume_reply): Use gdbserver_expedite_regs.
7934 * gdbserver/server.c (main): Dynamically allocate own_buf because
7935 PBUFSIZ is no longer constant. Use registers_to_string () and
7936 registers_from_string ().
7937 * gdbserver/server.h: No longer include "defs.h". Add prototypes
7938 for error (), fatal (), and warning (). Update definition of
7939 PBUFSIZ to use regcache functionality. Add include guard.
7940 * gdbserver/utils.c (fatal): Add missing ``const''.
7941 (warning): New function.
7943 * regformats/regdat.sh: Include "regcache.h" in generated files.
7944 Provide init_registers () function.
7945 * regformats/regdef.h: Add prototype for set_register_cache ().
7948 * gdbserver/linux-arm-low.c: New file.
7949 * gdbserver/linux-i386-low.c: New file.
7950 * gdbserver/linux-ia64-low.c: New file.
7951 * gdbserver/linux-m68k-low.c: New file.
7952 * gdbserver/linux-mips-low.c: New file.
7953 * gdbserver/linux-ppc-low.c: New file.
7954 * gdbserver/linux-sh-low.c: New file.
7956 * gdbserver/regcache.c: New file.
7957 * gdbserver/regcache.h: New file.
7959 * gdbserver/low-linux.c: Removed obsolete file.
7961 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7963 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
7964 * config/i386/linux.mt: Likewise.
7965 * config/ia64/linux.mt: Likewise.
7966 * config/m68k/linux.mh: Likewise.
7967 * config/powerpc/linux.mh: Likewise.
7968 * config/mips/linux.mt: Likewise.
7970 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
7972 * config/i386/i386lynx.mh: Mark gdbserver variables
7973 as (currently) obsolete for this target.
7974 * config/i386/nbsd.mt: Likewise.
7975 * config/i386/nbsdelf.mt: Likewise.
7976 * config/m32r/m32r.mt: Likewise.
7977 * config/m68k/m68klynx.mh: Likewise.
7978 * config/m68k/nbsd.mt: Likewise.
7979 * config/m68k/sun3os4.mh: Likewise.
7980 * config/mips/vr5000.mt: Likewise.
7981 * config/ns32k/nbsd.mt: Likewise.
7982 * config/pa/hppabsd.mh: Likewise.
7983 * config/pa/hppaosf.mh: Likewise.
7984 * config/powerpc/nbsd.mt: Likewise.
7985 * config/rs6000/rs6000lynx.mh: Likewise.
7986 * config/s390/s390.mt: Likewise.
7987 * config/s390/s390x.mt: Likewise.
7988 * config/sparc/sparclynx.mh: Likewise.
7989 * config/sparc/sun4os4.mh: Likewise.
7990 * config/i386/x86-64linux.mt: Likewise.
7991 * config/sparc/linux.mh: Likewise.
7993 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
7995 * configure.tgt: Configure gdbserver only for known working
7996 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
7997 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
7998 SUBDIRS if it is configured. Update comment for ${nativefile}.
7999 * configure: Regenerated.
8001 2002-02-13 Michael Snyder <msnyder@redhat.com>
8003 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8005 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8006 (default_gcore_mach): Just return 0, work around a problem in bfd.
8007 (default_gcore_target): OK to return NULL if exec_bfd is null.
8008 (make_mem_sec): Use a cast, avoid a warning.
8010 * procfs.c (find_memory_regions_callback): Use a cast instead of
8011 calling host_pointer_to_address (which complains if
8012 sizeof (host pointer) != sizeof (target pointer)).
8013 (procfs_make_note_section): Avoid overflow in psargs string.
8015 * procfs.c (procfs_make_note_section): Make the default
8016 implementation return an error.
8018 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8020 * procfs.c (procfs_make_note_section): Provide a default definition
8021 (for alpha-dec-osf4.0f). Fix typos.
8023 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8025 * linux-proc.c: Add include of regcache.h.
8026 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8028 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8030 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8031 * memattr.c (create_mem_region): Disallow useless empty region.
8032 Regions are half-open intervals, so allow [A..B) [B..C) as
8035 2002-02-13 Michael Chastain <mec@shout.net>
8037 * defs.h: Kill CONST_PTR.
8038 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8039 * c-lang.c (c_builtin_types): Likewise.
8040 * ch-lang.c (ch_builtin_types): Likewise.
8041 * f-lang.c (f_builtin_types): Likewise.
8042 * language.c (unknown_builtin_types): Likewise.
8043 * m2-lang.c (m2_builtin_types): Likewise.
8044 * p-lang.c (pascal_builtin_types): Likewise.
8045 * scm-lang.c (c_builtin_types): Likewise.
8047 2002-02-13 Keith Seitz <keiths@redhat.com>
8049 * arm-tdep.h (arm_get_next_pc): Add declaration.
8051 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8053 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8054 with other related struct-returning functions.
8055 (arm_extract_struct_value_address): New function.
8056 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8057 initialize float_format, double_format and long_double_format as
8058 appropriate to the endianness of the target.
8059 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8060 (arm_use_struct_convention): Delete declaration.
8061 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8063 2002-02-13 Keith Seitz <keiths@redhat.com>
8065 * defs.h (core_addr_to_string_nz): New function.
8067 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8069 Apply missing bits of 2002-01-15 patch.
8070 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8071 (fill_fpregset): Use i387_fill_fsave.
8073 2002-02-12 Keith Seitz <keiths@redhat.com>
8075 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8076 (core_addr_to_string_nz): New function.
8078 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8080 * arm-linux-nat.c: Really include arm-tdep.h.
8081 * config/arm/tm-linux.h (struct type, struct value): Declare.
8083 2002-02-11 Michael Snyder <msnyder@redhat.com>
8085 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8086 (gcore section): Ifdef for Solaris and Unixware only.
8087 (procfs_do_thread_registers): Unixware needs one lwpstatus
8088 per thread (not one prstatus or pstatus).
8089 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8090 not over all gdb threads. For unixware, call elfcore_write_pstatus
8091 once before iterating over threads.
8093 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8095 * arm-tdep.h: New file.
8096 * arm-tdep.c: Include arm-tdep.h.
8097 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8098 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8099 (arm_print_float_info, arm_register_type, convert_to_extended)
8100 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8101 (arm_extract_return_value, arm_register_name): Make static.
8102 (arm_software_single_step): Similarly. Fix types in declaration.
8103 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8104 (arm_store_return_value, arm_store_struct_return): New functions.
8105 (arm_gdbarch_init): Register the above functions. Also register
8106 call_dummy_start_offset, sizeof_call_dummy_words,
8107 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8108 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8109 max_register_virtual_size, register_size. Set up
8110 prologue_cache.saved_regs here, rather than ...
8111 (_initialize_arm_tdep): ... here.
8112 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8114 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8115 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8116 (arm_print_float_info, arm_register_type, convert_to_extended)
8117 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8118 (arm_extract_return_value, arm_register_name): Delete declarations.
8119 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8120 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8121 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8122 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8123 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8124 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8125 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8126 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8127 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8128 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8129 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8130 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8132 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8133 * remote-rdi.c remote-rdp.c: Likewise.
8134 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8135 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8136 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8139 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8140 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8141 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8142 from non-ARM_ prefixed definitions.
8143 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8145 * remote-rdi.c remote-rdp.c: Likewise.
8146 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8148 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8150 * arm-tdep.c (arm_frameless_function_invocation)
8151 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8152 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8153 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8154 (arm_pop_frame, arm_get_next_pc): Make static.
8155 (arm_gdbarch_init): Register above in gdbarch structure.
8156 (arm_read_fp): Renamed from arm_target_read_fp.
8157 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8158 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8159 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8160 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8161 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8162 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8163 (arm_pc_is_thumb_dummy): Delete declarations.
8164 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8165 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8166 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8167 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8169 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8171 * symtab.c (compare_search_syms): New function.
8172 (sort_search_symbols): New function.
8173 (search_symbols): Sort symbols after searching rather than
8176 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8178 * NEWS: Linux -> GNU/Linux.
8180 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8182 * gdbarch.sh: For for level one methods, disallow a definition
8183 when partially multi-arched. Add comments explaining rationale.
8184 * gdbarch.h: Re-generate.
8186 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8188 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8191 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8193 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8195 * gdbarch.c: Re-generate.
8197 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8199 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8200 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8203 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8205 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8207 (PUSH_ARGUMENTS): Switch to using predefault.
8208 * gdbarch.c: Regenerate.
8210 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8212 * valops.c (PUSH_ARGUMENTS): Delete definition.
8213 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8214 partial. Default to default_push_arguments.
8215 * gdbarch.h, gdbarch.c: Regenerate.
8217 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8219 * defs.h (throw_exception): Rename return_to_top_level. Update
8221 * utils.c (error_stream, internal_verror, quit): Ditto.
8222 * top.c (throw_exception, catcher): Ditto.
8223 * sparclet-rom.c (sparclet_load): Ditto.
8224 * remote.c (interrupt_query, minitelnet): Ditto.
8225 * remote-sds.c (interrupt_query): Ditto.
8226 * remote-mips.c (mips_error, mips_kill): Ditto.
8227 * ocd.c (interrupt_query): Ditto.
8228 * monitor.c (monitor_interrupt_query): Ditto.
8229 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8230 * target.h: Update comment.
8232 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8234 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8236 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8237 default_double_format.
8238 * gdbarch.h, gdbarch.c: Re-generate.
8239 * findvar.c (floatformat_unknown): Delete variable definition.
8240 * doublest.h (floatformat_unknown): Delete variable declaration.
8242 2002-02-09 Jim Blandy <jimb@redhat.com>
8244 * stabsread.c (read_type): Add code to parse Sun's syntax for
8245 prototyped function types.
8247 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8249 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8250 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8252 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8254 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8255 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8256 now _initialize_xcoffsolib gets called again and overrides the
8257 commands from solib.c in a native configuration.
8259 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8261 * doublest.c (store_typed_floating): Don't try to return a value.
8264 2002-02-08 Jim Blandy <jimb@redhat.com>
8266 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8267 is prototyped and has no arguments, print its argument list as
8270 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8272 * MAINTAINERS (write-after-approval): Add myself.
8273 (paper-trail): I've escaped!
8275 2002-02-08 Christopher Faylor <cgf@redhat.com>
8277 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8279 (_initialize_check_for_gdb_ini): Ditto.
8281 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8283 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8284 xaprintf -> xasprintf.
8286 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8288 * win32-nat.c: Remove use of printf and sprintf functions.
8290 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8292 * arm-tdep.c (arm_frame_chain_valid): Make static.
8293 (arm_push_arguments): Likewise.
8294 (arm_gdbarch_init): New function.
8295 (_initialize_arm_tdep): Call it.
8296 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8297 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8298 (FRAME_CHAIN_VALID): Delete.
8299 (arm_frame_chain_valid): Delete declaration.
8300 (PUSH_ARGUMENTS): Delete.
8301 (arm_push_arguments): Delete declaration.
8302 (CALL_DUMMY_P): Delete.
8304 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8305 Corinna Vinschen <vinschen@redhat.com>
8307 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8308 on builtin float types.
8310 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8312 * utils.c: Include <curses.h> before "bfd.h".
8313 * tui/tui-hooks.c: Likewise.
8314 * tui/tui.c: Likewise.
8315 * tui/tuiCommand.c: Likewise.
8316 * tui/tuiData.c: Likewise.
8317 * tui/tuiDataWin.c: Likewise.
8318 * tui/tuiDisassem.c: Likewise.
8319 * tui/tuiGeneralWin.c: Likewise.
8320 * tui/tuiIO.c: Likewise.
8321 * tui/tuiLayout.c: Likewise.
8322 * tui/tuiRegs.c: Likewise.
8323 * tui/tuiSource.c: Likewise.
8324 * tui/tuiSourceWin.c: Likewise.
8325 * tui/tuiStack.c: Likewise.
8326 * tui/tuiWin.c: Likewise.
8328 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8330 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8331 to include space for pseudoregs as well. Update loops accordingly.
8332 (sh_fp_frame_init_saved_regs): Ditto.
8333 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8335 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8337 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8338 Add Richard Earnshaw to Arm maintainers.
8340 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8342 * defs.h (warning_begin): Delete declaration.
8344 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8347 2002-02-07 Michael Snyder <msnyder@redhat.com>
8349 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8350 Logic bug, remove misplaced else.
8352 2002-02-07 Klee Dienes <klee@apple.com>
8354 * fork-inferior.c (fork_inferior): Add '!' to the list of
8355 characters that need to be quoted when building a string for the
8356 shell. Quote '!' specifically with a backslash, since CSH chokes
8357 when trying to evaluate "str!str".
8359 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8361 * rdi-share/host.h: Only provide a typedef for bool if it is not
8364 2002-02-04 Michael Snyder <msnyder@redhat.com>
8366 * breakpoint.h (enum bptype): Add new overlay event bp type.
8367 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8369 * breakpoint.c (create_internal_breakpoint): New function.
8370 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8371 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8372 (create_thread_event_breakpoint): Ditto.
8373 (create_solib_event_breakpoint): Ditto.
8374 (create_overlay_event_breakpoint): New function.
8375 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8376 (update_breakpoints_after_exec): Delete and re-initialize
8377 overlay event breakpoints after an exec. Add FIXME comment
8378 about longjmp breakpoint.
8379 (print_it_typical): Ignore overlay event breakpoints.
8380 (print_one_breakpoint): Ditto.
8382 (bpstat_what): Do not stop for overlay event breakpoints.
8383 (delete_breakpoint): Don't delete overlay event breakpoints.
8384 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8385 (breakpoint_re_set): Re-create overlay event breakpoint.
8387 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8388 (overlay_manual_command): Disable overlay breakpoints.
8389 (overlay_off_command): Disable overlay breakpoints.
8391 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8393 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8394 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8395 to here from config/tm-arm.h.
8396 (coff_sym_is_thumb): Make static.
8397 (arm_elf_make_msymbol_special): New function.
8398 (arm_coff_make_msymbol_special): New function.
8399 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8400 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8401 (coff_sym_is_thumb): Delete declaration.
8402 (arm_elf_make_msymbol_special): Declare.
8403 (arm_coff_make_msymbol_special): Declare.
8404 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8405 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8407 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8409 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8411 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8413 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8414 * gdbarch.c gdbarch.h: Regenerate.
8415 * arch-utils.c (default_print_float_info): New function.
8416 * arch-utils.h (default_print_float_info): Prototype it.
8417 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8418 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8419 (PRINT_FLOAT_INFO): Document it.
8421 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8422 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8423 (PRINT_FLOAT_INFO): Define.
8425 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8427 * win32-nat.c (_initialize_check_for_gdb_ini):
8428 Add typecast to sprintf argument to suppress a warning.
8430 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8432 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8433 to allow easier handling of pass state.
8434 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8435 that gives exception name and address.
8436 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8437 and set last_sig value to ourstatus->value.sig. Some missing
8439 (child_continue): Correctly report continue_status.
8440 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8441 TARGET_SIGNAL_0 (new default value).
8442 (child_resume): consider sig argument passed to decide if
8443 the exception should be passed to debuggee or not.
8445 2002-02-05 Michael Snyder <msnyder@redhat.com>
8447 * regcache.c (fetch_register): Call target_fetch_register
8448 only if we don't call FETCH_PSEUDO_REGISTER.
8449 (store_register): Call target_store_register only if we
8450 don't call STORE_PSEUDO_REGISTER.
8452 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8454 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8455 ELF_MAKE_MSYMBOL_SPECIAL.
8456 * gdbarch.c, gdbarch.h: Regenerate.
8457 * arch-utils.c (default_make_msymbol_special): New function.
8458 * arch-utils.h (default_make_msymbol_special): Export.
8459 * elfread.c (elf_symtab_read): Compile use of
8460 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8462 * coffread.c (coff_symtab_read): Ditto, for
8463 COFF_MAKE_MSYMBOL_SPECIAL.
8465 2002-02-05 Jim Blandy <jimb@redhat.com>
8467 * solib-svr4.c (svr4_truncate_ptr): New function.
8468 (svr4_relocate_section_addresses): Do the address arithmetic with
8469 the appropriate truncation for target addresses, even when
8470 CORE_ADDR is larger than a target address.
8472 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8474 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8477 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8479 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8482 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8484 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8486 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8488 * gdbserver/linux-low.c: Remove unused include files.
8490 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8492 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8493 (read_inferior_memory): Use it.
8494 (write_inferior_memory): Likewise.
8496 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8498 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8499 grubbing through sys_errlist.
8501 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8503 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8505 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8506 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8508 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8510 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8511 (do_sfunc, set_cmd_sfunc): New functions.
8513 * command.h (struct cmd_list_element): Add field func.
8514 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8515 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8516 * cli/cli-decode.h: Ditto.
8518 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8519 (help_all, help_cmd_list): Ditto.
8520 (find_cmd, complete_on_cmdlist): Ditto.
8521 * top.c (execute_command): Ditto.
8523 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8526 * infcmd.c (notice_args_read): Fix function signature.
8528 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8529 * cli/cli-decode.c (add_set_cmd): Ditto.
8530 * utils.c (initialize_utils): Ditto.
8531 * maint.c (_initialize_maint_cmds): Ditto.
8532 * infrun.c (_initialize_infrun): Ditto.
8533 * demangle.c (_initialize_demangler): Ditto.
8534 * remote.c (add_packet_config_cmd): Ditto.
8535 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8536 * cris-tdep.c (_initialize_cris_tdep): Ditto.
8537 * proc-api.c (_initialize_proc_api): Ditto.
8538 * kod.c (_initialize_kod): Ditto.
8539 * valprint.c (_initialize_valprint): Ditto.
8540 * top.c (init_main): Ditto.
8541 * infcmd.c (_initialize_infcmd): Ditto.
8542 * corefile.c (_initialize_core): Ditto.
8543 * arm-tdep.c (_initialize_arm_tdep): Ditto.
8544 * arch-utils.c (initialize_current_architecture): Ditto.
8545 (_initialize_gdbarch_utils): Ditto.
8546 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
8548 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
8549 * wince.c (_initialize_inftarg): Ditto.
8550 * symfile.c (_initialize_symfile): Ditto.
8551 * mips-tdep.c (_initialize_mips_tdep): Ditto.
8552 * language.c (_initialize_language): Ditto.
8553 * arc-tdep.c (_initialize_arc_tdep): Ditto.
8555 2002-02-04 Michael Snyder <msnyder@redhat.com>
8557 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
8559 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8561 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
8562 Add rules for building the register data files.
8564 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8566 * regformats/regdat.sh: Add braces to the definition of
8567 expedite_regs_${arch}.
8569 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
8571 * regformats/regdef.h (struct reg): Add comment describing the
8572 requirements for offset and size fields.
8574 2002-02-04 Andreas Schwab <schwab@suse.de>
8576 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
8577 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
8579 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
8581 * gdbarch.sh (copyright): Update years in generated header.
8582 (SMASH_TEXT_ADDRESS): Add rule.
8583 * gdbarch.h, gdbarch.c: Re-generate.
8584 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
8585 * dbxread.c: Likewise.
8586 * dwarfread.c: Likewise.
8587 * elfread.c: Likewise.
8588 * somread.c: Likewise.
8590 * arm-tdep.c (arm_smash_text_address): New function.
8591 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
8593 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8595 Add support for hardware watchpoints on win32 native.
8596 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
8597 CONTEXT_DEBUG_REGISTERS.
8598 (dr variable): New variable. Static array containing a local copy
8600 (debug_registers_changed): New variable. Reflects when debug registers
8601 are changed and need to be written to inferior.
8602 (debug_registers_used): New variable. Reflects when any debug register
8603 was set, used when new threads are created.
8604 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
8606 (thread_rec): Set dr array if id is the thread of current_event .
8607 (child_continue, child_resume): Change the debug registers for all
8608 threads if debug_registers_changed.
8609 (child_add_thread): Change the debug registers if debug_registers_used.
8610 * config/i386/cygwin.mh: Add use of i386-nat.o file.
8611 Link nm.h to new nm-cygwin.h file.
8612 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
8613 of hardware registers.
8615 2002-02-03 Andrew Cagney <ac131313@redhat.com>
8617 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
8618 Restore behavour broken by 2002-01-20 Andrew Cagney
8619 <ac131313@redhat.com> IEEE_FLOAT removal.
8621 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8623 * c-valprint.c (c_val_print): Pass a proper valaddr to
8624 cp_print_class_method.
8625 * valops.c (search_struct_method): If there is only one method
8626 and args is NULL, return that method.
8628 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8630 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
8631 accessing tag_name directly.
8633 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8635 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
8636 of accessing tag_name directly.
8638 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
8641 * gdbtypes.c (replace_type): New function.
8642 * gdbtypes.h (replace_type): Add prototype.
8643 * stabsread.c (read_type): Use replace_type.
8645 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
8647 * Makefile.in (memattr.o): Add missing dependencies rule.
8649 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8651 * breakpoint.c (break_at_finish_command): Really export.
8652 (break_at_finish_at_depth_command): Ditto.
8653 (tbreak_at_finish_command): Ditto.
8654 * hppa-tdep.c: Include completer.h.
8655 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
8656 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
8658 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8660 * utils.c (do_write): New function.
8661 (error_stream): Rewrite combining the code from error_begin and
8663 (verror): Rewrite using error_stream.
8664 (error_begin): Delete function.
8666 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8668 * utils.c (error_begin): Make static.
8669 * defs.h (error_begin): Delete declaration.
8671 * linespec.c (cplusplus_error): Replace cplusplus_hint.
8672 (decode_line_1): Use cplusplus_error instead of error_begin,
8673 cplusplus_hint and return_to_top_level.
8674 * coffread.c (coff_symfile_read): Use error instead of error_begin
8675 and return_to_top_level.
8676 * infrun.c (default_skip_permanent_breakpoint): Ditto.
8678 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8680 * language.h (type_error, range_error): Make string parameter
8682 * language.c (warning_pre_print): Delete extern declaration.
8683 * dwarfread.c (warning_pre_print): Ditto.
8684 * language.c (type_error, range_error): Rewrite to use verror and
8685 vwarning instead of warning_begin.
8687 2002-02-01 Michael Snyder <msnyder@redhat.com>
8689 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
8690 (set_ignore_count): Move misplaced comment back where it belongs.
8692 2002-02-01 Andrew Cagney <ac131313@redhat.com>
8694 * command.h (NO_FUNCTION): Delete macro.
8695 * cli/cli-decode.h (NO_FUNCTION): Ditto.
8696 * top.c (execute_command): Replace NO_FUNCTION with NULL.
8697 * tracepoint.c (_initialize_tracepoint): Ditto.
8698 * cli/cli-decode.c (add_set_cmd): Ditto.
8699 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8701 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8703 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
8704 Update ``this'' pointer when calling virtual functions.
8706 2002-02-01 Michael Snyder <msnyder@redhat.com>
8708 * breakpoint.c (create_temp_exception_breakpoint): Delete.
8709 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
8711 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
8713 * regformats/reg-arm.dat: New file.
8714 * regformats/reg-i386.dat: New file.
8715 * regformats/reg-ia64.dat: New file.
8716 * regformats/reg-m68k.dat: New file.
8717 * regformats/reg-mips.dat: New file.
8718 * regformats/reg-ppc.dat: New file.
8719 * regformats/reg-sh.dat: New file.
8720 * regformats/regdef.h: New file.
8721 * regformats/regdat.sh: New file.
8723 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
8725 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
8726 (arm_frame_args_address, arm_frame_locals_address): New functions.
8727 (arm_frame_num_args): New function.
8728 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
8729 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
8730 (FRMA_NUM_ARGS): Call arm_frame_num_args.
8732 2002-01-31 Michael Snyder <msnyder@redhat.com>
8734 * breakpoint.c (break_at_finish_command): Export.
8735 (break_at_finish_at_depth_command): Export.
8736 (tbreak_at_finish_command): Export.
8737 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
8738 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
8739 "tbreak" commands, which are HPPA specific.
8741 * printcmd.c (disassemble_command): Remove an ancient
8742 artifact of an old merge.
8744 * symfile.h (enum overlay_debugging_state):
8745 Define enum constant values for overlay mode.
8746 * symfile.c (overlay_debugging): Use enums instead of literals.
8747 (overlay_is_mapped, overlay_auto_command,
8748 overlay_manual_command): Ditto.
8750 * breakpoint.c (insert_breakpoints, remove_breakpoint,
8751 breakpoint_here_p, breakpoint_inserted_here_p,
8752 breakpoint_thread_match, bpstat_stop_status,
8753 describe_other_breakpoints, check_duplicates, clear_command):
8754 Coding standard fixes.
8756 * target.c (target_xfer_memory): Add spaces, coding standard.
8757 (do_xfer_memory): Add missing line to trust-readonly
8758 code: check bfd SEC_READONLY flag for section.
8760 2002-01-31 Andrew Cagney <ac131313@redhat.com>
8762 * PROBLEMS: Fix typo, 5.1->5.1.1.
8764 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
8766 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
8767 data symbols, since we search based on textlow and texthigh.
8768 (find_pc_sect_symtab): Likewise.
8770 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8772 * defs.h (vwarning): Declare.
8773 * utils.c (vwarning): New function.
8774 (warning): Call vwarning.
8775 (warning_begin): Delete function.
8777 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
8778 the warning message.
8779 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
8782 2002-01-30 Michael Snyder <msnyder@redhat.com>
8784 * NEWS: Mention "set trust-readonly-sections" command.
8785 Mention generate-core-file command.
8787 2002-01-15 Michael Snyder <msnyder@redhat.com>
8789 * target.c: New command, "set trust-readonly-sections on".
8790 (do_xfer_memory): Honor the suggestion to trust readonly sections
8791 by reading them from the object file instead of from the target.
8792 (initialize_targets): Register command "set trust-readonly-sections".
8794 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8796 * parse.c (target_map_name_to_register): Simplify, search regs and
8797 pseudo-regs using a single loop.
8799 2002-01-30 Andrew Cagney <ac131313@redhat.com>
8801 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
8803 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
8805 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
8806 * config/i386/i386v42mp.mh: Add i387-nat.o .
8807 * i386v4-nat.c: Include i387-nat.h.
8808 (supply_fpregset): Use i387_supply_fsave.
8809 (fill_fpregset): Use i387_fill_fsave.
8811 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
8813 * arm-tdep.c (arm_call_dummy_words): Define.
8814 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
8815 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
8816 (CALL_DUMMY_WORDS): Define.
8817 (arm_call_dummy_words): Declare.
8818 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
8819 (arm_linux_call_dummy_words): Declare.
8821 2002-01-30 Andreas Schwab <schwab@suse.de>
8823 * m68klinux-nat.c: Fix last change to use regcache_collect
8824 instead of referencing registers[] directly.
8826 2002-01-29 Andrew Cagney <ac131313@redhat.com>
8828 * parse.c (target_map_name_to_register): Delete code wrapped in
8829 #ifdef REGISTER_NAME_ALIAS_HOOK.
8831 2002-01-28 Michael Snyder <msnyder@redhat.com>
8833 * regcache.c (legacy_read_register_gen): Need to be able to
8834 read pseudo-register as well as real register.
8835 (legacy_write_register_gen): Ditto.
8837 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8839 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8840 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
8841 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
8842 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
8843 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
8844 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
8845 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
8846 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
8847 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
8848 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
8849 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
8850 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
8851 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
8852 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
8853 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
8854 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
8855 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
8856 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
8857 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
8858 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
8860 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8862 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
8863 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
8864 (initialize_current_architecture): Update target_byte_order using
8865 information from BFD.
8866 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
8867 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
8869 2002-01-28 Andrew Cagney <ac131313@redhat.com>
8871 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
8872 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
8874 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
8875 #ifdef INVALID_FLOAT.
8876 * infcmd.c (do_registers_info): Ditto.
8877 * values.c (unpack_double): Ditto. Add comment.
8879 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
8880 already commented out.
8882 2002-01-26 Andreas Schwab <schwab@suse.de>
8884 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
8885 * m68klinux-nat.c: Update ptrace interface for fetching/storing
8886 registers and add support for PTRACE_GETREGS.
8888 2002-01-24 Andrew Cagney <ac131313@redhat.com>
8890 GDB 5.1.1 released from 5.1 branch.
8891 * NEWS: Add 5.1.1 news.
8892 * README: Sync with 5.1 branch.
8894 2002-01-23 Fred Fish <fnf@redhat.com>
8896 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
8897 stabstring on initial malloc. Reallocing will copy it for us,
8900 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8902 * Makefile.in (hpread_h): Delete.
8903 (HFILES_NO_SRCDIR): Remove hpread.h.
8904 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
8905 (hpread.o): Update dependencies.
8906 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
8908 * hp-psymtab-read.c: Remove file.
8909 * hp-symtab-read.c: Remove file.
8910 * hpread.h: Remove file.
8912 * hpread.c: Merge all contents of hp-psymtab-read.c,
8913 hp-symtab-read.c and hpread.h into this file, as it was prior to
8916 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
8917 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8918 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
8919 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
8921 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
8923 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
8924 fill_gregset): Call gdbarch_tdep() just once, assign result to
8925 variable and use that, instead of calling the function several
8928 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
8930 * configure.host: Accept sparcv9 as alias for sparc64.
8931 * configure.tgt: Likewise.
8933 2002-01-22 Kevin Buettner <kevinb@redhat.com>
8935 * solib-aix5.c (build_so_list_from_mapfile)
8936 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
8937 arguments is not reversed.
8938 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
8939 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
8941 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
8943 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
8944 modified version of obsolete sh_fetch_pseudo_register.
8945 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
8946 (sh4_register_read): New function.
8947 (sh_pseudo_register_write): New function. Renamed and modified
8948 version of obsolete sh_store_pseudo_register.
8949 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
8950 (sh4_register_write): New function.
8951 (sh_gdbarch_init): Remove setting of gdbarch function
8952 fetch_pseudo_register and store_pseudo_register. Remove setting of
8953 register_convert_to_raw, register_convert_to_virtual,
8954 register_convertible.
8955 (sh_sh4_register_convertible): Delete. No longer needed. All is
8956 taken care by architecture specific functions
8957 register_read/register_write.
8958 (sh_sh4_register_convert_to_virtual): Make static.
8959 (sh_sh4_register_convert_to_raw): Ditto.
8961 2002-01-22 Andrew Cagney <ac131313@redhat.com>
8963 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
8964 (floatformat_is_nan, floatformat_mantissa): Ditto.
8966 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
8967 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
8968 builtin_type_ieee_double_little,
8969 builtin_type_ieee_double_littlebyte_bigword,
8970 builtin_type_m68881_ext, builtin_type_i960_ext,
8971 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
8972 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
8973 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
8974 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
8976 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
8978 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
8979 parameter. Set frameless flag if it exists and depended of
8980 whether the scanned function is frameless or not.
8981 (xstormy16_skip_prologue): If function is frameless, return
8982 result of xstormy16_scan_prologue().
8983 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
8986 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
8988 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
8989 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
8990 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
8991 sh_sh4_register_byte, sh_sh4_register_raw_size,
8992 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
8993 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
8994 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
8995 sh_store_pseudo_register, sh_do_pseudo_register): Call
8996 gdbarch_tdep() just once, assign result to variable and use that,
8997 instead of calling the function several times.
8999 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9001 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9002 macros instead of LAST_FPU_CTRL_REGNUM.
9003 (store_register): Likewise.
9005 2002-01-21 Jim Blandy <jimb@redhat.com>
9007 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9008 is up-to-date before running the program, not just when a program
9011 2002-01-21 Fred Fish <fnf@redhat.com>
9013 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9014 when we have found all instructions we are looking for.
9016 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9018 * arm-tdep.c (arm_register_name): New function.
9019 (arm_registers_names): Make static.
9020 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9021 (arm_register_name): Declare.
9022 (REGISTER_NAME): Use it.
9024 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9025 Kevin Buettner <kevinb@redhat.com>
9027 Convert arm targets to new FRAME interface.
9028 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9029 (arm_frame_find_save_regs): Delete.
9030 (arm_frame_init_saved_regs): New.
9031 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9032 Allocate extra_info as required. Convert all uses of fsr.regs
9033 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9035 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9036 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9037 (check_prologue_cache, save_prologue_cache): Likewise.
9038 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9039 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9040 (FRAME_FIND_SAVED_REGS): Delete.
9041 (arm_frame_find_saved_regs): Delete prototype.
9042 (arm_frame_init_saved_regs): New prototype.
9043 (FRAME_INIT_SAVED_REGS): Define.
9045 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9047 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9049 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9051 From Jeff Law <law@redhat.com>:
9052 * infttrace.c: Include <sys/pstat.h>.
9053 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9054 exec file if the ttrace equivalent fails.
9056 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9058 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9059 (closeLogFile): Ditto.
9061 2002-01-20 Michael Chastain <mec@shout.net>
9063 * top.c (print_gdb_version): Bump copyright year to 2002.
9065 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9067 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9068 Zannoni and Eli Zaretskii.
9070 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9072 * buildsym.c: Update copyright years.
9073 * c-typeprint.c: Likewise.
9074 * dwarf2read.c: Likewise.
9075 * f-typeprint.c: Likewise.
9076 * gdbtypes.c: Likewise.
9077 * gdbtypes.h: Likewise.
9078 * hp-symtab-read.c: Likewise.
9079 * hpread.c: Likewise.
9080 * mdebugread.c: Likewise.
9081 * p-typeprint.c: Likewise.
9083 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9085 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9086 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9087 byte-order selectable.
9088 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9089 * arch-utils.c: Ditto.
9090 (set_endian): Ditto.
9091 (set_endian_from_file): Ditto.
9092 * gdbserver/low-sim.c (create_inferior): Ditto.
9093 * gdbarch.sh: Ditto.
9094 * gdbarch.h: Re-generate.
9095 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9096 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9097 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9098 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9099 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9100 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9101 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9102 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9104 * config/mips/tm-wince.h: Remove #undef of macro
9105 TARGET_BYTE_ORDER_SELECTABLE.
9106 * config/sh/tm-wince.h: Ditto.
9108 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9110 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9111 member function fields. Add accessor macro
9112 TYPE_FN_FIELD_ARTIFICIAL.
9113 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9114 * c-typeprint.c (c_type_print_base): Skip artificial member
9117 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9119 * f-typeprint.c: Delete unused function f_type_print_args.
9120 * p-typeprint.c: Delete unused function pascal_type_print_args.
9122 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9124 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9125 comment. Add ``artificial'' to ``union field_location''.
9127 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9129 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9130 * mdebugread.c (parse_symbol): Likewise.
9131 * stabsread.c (define_symbol): Likewise.
9132 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9133 initializing TYPE_FIELD_BITPOS to n (obsolete).
9134 (hpread_doc_function_type): Likewise.
9135 * hpread.c (hpread_function_type): Likewise.
9137 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9139 * configure.in (host_makefile_frag): Only require a host makefile
9140 fragment when a native build.
9141 * configure: Re-generate.
9143 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9145 * doublest.h (floatformat_from_type): Declare.
9146 * doublest.c (floatformat_from_type): New function.
9147 (convert_typed_floating): Use.
9149 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9150 call to function floatformat_from_type.
9152 * gdbarch.sh (IEEE_FLOAT): Delete.
9153 * gdbarch.h, gdbarch.c: Re-generate.
9154 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9155 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9156 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9157 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9158 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9159 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9160 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9161 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9162 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9163 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9164 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9165 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9167 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9168 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9169 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9170 * sh-tdep.c (sh_gdbarch_init): Ditto.
9171 * mips-tdep.c (mips_gdbarch_init): Ditto.
9172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9173 * cris-tdep.c (cris_gdbarch_init): Ditto.
9175 2002-01-20 Jiri Smid <smid@suse.cz>
9177 * configure.host, configure.tgt: Support x86-64.
9178 * NEWS: Note new target x86-64.
9180 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9181 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9182 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9183 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9184 x86-64-linux-nat.o): Fix dependencies.
9186 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9188 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9189 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9190 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9191 * config/sparc/xm-sun4os4.h: Delete file.
9192 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9194 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9196 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9197 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9198 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9199 * config/i386/i386lynx.mh (XM_FILE): Delete.
9200 * config/rs6000/xm-rs6000ly.h: Delete file.
9201 * config/sparc/xm-sparclynx.h: Delete file.
9202 * config/m68k/xm-m68klynx.h: Delete file.
9203 * config/i386/xm-i386lynx.h: Delete file.
9204 * config/xm-lynx.h: Delete file.
9205 * config/djgpp/fnchange.lst: Update.
9207 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9209 * alpha-tdep.c (alpha_register_byte): New function.
9210 (alpha_register_raw_size): Ditto.
9211 (alpha_register_virtual_size): Ditto.
9212 (alpha_skip_prologue_internal): Renamed from
9213 alpha_skip_prologue.
9214 (alpha_skip_prologue): New version that calls
9215 alpha_skip_prologue_internal.
9216 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9217 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9218 second argument from alpha_skip_prologue.
9219 (REGISTER_BYTE): Use alpha_register_byte.
9220 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9221 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9222 (FRAMELESS_FUNCTION_INVOCATION): Use
9223 generic_frameless_function_invocation_not.
9224 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9225 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9227 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9229 * config/mips/xm-news-mips.h: Delete file.
9230 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9232 * config/m88k/xm-m88k.h: Delete file.
9233 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9234 * config/m88k/xm-delta88v4.h: Ditto.
9235 * config/m88k/xm-delta88.h: Ditto.
9237 * config/alpha/xm-fbsd.h: Delete file.
9238 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9240 * config/sparc/xm-sparc.h: Delete file.
9241 * Makefile.in (xm-sun4os4.h): Delete dependency.
9242 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9243 * config/sparc/xm-sun4os4.h: Ditto.
9244 * config/sparc/xm-linux.h: Ditto.
9246 * config/i386/xm-windows.h: Delete file.
9248 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9250 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9251 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9253 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9255 * alpha-tdep.c (alpha_call_dummy_words): New.
9256 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9257 (CALL_DUMMY_P): Define.
9258 (CALL_DUMMY_WORDS): Define.
9259 (SIZEOF_CALL_DUMMY_WORDS): Define.
9261 2002-01-19 Per Bothner <per@bothner.com>
9263 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9264 isn't NULL, which can happen with some gcj-3.x-produced code.
9266 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9268 * alpha-tdep.c (alpha_register_virtual_type): New function.
9269 (alpha_init_frame_pc_first): Ditto.
9270 (alpha_fix_call_dummy): Ditto.
9271 (alpha_store_struct_return): Ditto.
9272 (alpha_extract_struct_value_address): Ditto.
9273 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9274 alpha_register_virtual_type.
9275 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9276 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9277 alpha_extract_struct_value_address.
9278 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9279 (INIT_FRAME_PC): Use init_frame_pc_noop.
9280 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9282 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9284 * i386gnu-nat.c: Include "i386-tdep.h".
9285 (fetch_fpregs): Simplify code dealing with uninitialized floating
9286 point states such that it doesn't require FP7_REGNUM.
9288 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9290 * alpha-tdep.c (frame_extra_info): New.
9291 (alpha_find_saved_regs): Make static. Use
9293 (alpha_frame_init_saved_regs): New function.
9294 (alpha_frame_saved_pc): Use frame->extra_info.
9295 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9296 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9297 (init_extra_frame_info): Rename to...
9298 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9299 (alpha_print_extra_frame_info): New function.
9300 (alpha_frame_locals_address): Ditto.
9301 (alpha_frame_args_address): Ditto.
9302 (alpha_pop_frame): Use frame->extra_info.
9303 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9304 alpha_frame_args_address.
9305 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9306 (alpha_find_saved_regs): Remove prototype.
9307 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9308 (EXTRA_FRAME_INFO): Remove.
9309 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9310 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9312 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9314 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9315 (alpha_cannot_fetch_register): Ditto.
9316 (alpha_cannot_store_register): Ditto.
9317 (alpha_register_convertible): Ditto.
9318 (alpha_use_struct_convention): Ditto.
9319 * config/alpha/tm-alpha.h: Update copyright years.
9320 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9321 (INNER_THAN): Use core_addr_lessthan.
9322 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9323 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9324 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9325 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9326 (FRAME_CHAIN): Remove unnecessary cast.
9328 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9330 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9333 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9335 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9336 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9337 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9338 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9339 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9340 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9341 * x86-64-linux-nat.c: Ditto.
9343 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9345 * alpha-tdep.c (alpha_register_name): New function.
9346 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9347 (REGISTER_NAME): Define.
9349 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9351 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9353 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9355 * alpha-tdep.c: Update copyright years.
9356 (alpha_next_pc): New function.
9357 (alpha_software_single_step): Ditto.
9358 * config/alpha/tm-alpha.h: Add prototype for
9359 alpha_software_single_step.
9361 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9363 * alphabsd-nat.c: Update copyright years.
9364 (fill_gregset): Use regcache_collect.
9365 (fill_fpregset): Likewise.
9366 (fetch_inferior_registers): Only fetch integer registers
9367 if requested to do so.
9368 (store_inferior_registers): Only store integer registers
9369 if requested to do so.
9371 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9373 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9374 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9375 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9376 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9377 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9378 * config/arm/linux.mh (XDEPFILES): Delete.
9379 * config/arm/nbsd.mh (XDEPFILES): Delete.
9380 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9381 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9382 * config/i386/i386m3.mh (XDEPFILES): Delete.
9383 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9384 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9385 * config/i386/fbsd.mh (XDEPFILES): Delete.
9386 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9387 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9388 * config/i386/i386v4.mh (XDEPFILES): Delete.
9389 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9390 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9391 * config/i386/i386aix.mh (XDEPFILES): Delete.
9392 * config/i386/go32.mh (XDEPFILES): Delete.
9393 * config/i386/cygwin.mh (XDEPFILES): Delete.
9394 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9395 * config/i386/i386mach.mh (XDEPFILES): Delete.
9396 * config/i386/i386v32.mh (XDEPFILES): Delete.
9397 * config/i386/linux.mh (XDEPFILES): Delete.
9398 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9399 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9400 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9401 * config/i386/i386sco.mh (XDEPFILES): Delete.
9402 * config/i386/i386v.mh (XDEPFILES): Delete.
9403 * config/i386/nbsd.mh (XDEPFILES): Delete.
9404 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9405 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9406 * config/i386/symmetry.mh (XDEPFILES): Delete.
9407 * config/i386/obsd.mh (XDEPFILES): Delete.
9408 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9409 * config/ia64/linux.mh (XDEPFILES): Delete.
9410 * config/ia64/aix.mh (XDEPFILES): Delete.
9411 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9412 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9413 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9414 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9415 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9416 * config/m68k/linux.mh (XDEPFILES): Delete.
9417 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9418 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9419 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9420 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9421 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9422 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9423 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9424 * config/m88k/delta88.mh (XDEPFILES): Delete.
9425 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9426 * config/m88k/m88k.mh (XDEPFILES): Delete.
9427 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9428 * config/mips/linux.mh (XDEPFILES): Delete.
9429 * config/mips/irix6.mh (XDEPFILES): Delete.
9430 * config/mips/irix5.mh (XDEPFILES): Delete.
9431 * config/mips/irix4.mh (XDEPFILES): Delete.
9432 * config/mips/irix3.mh (XDEPFILES): Delete.
9433 * config/mips/decstation.mh (XDEPFILES): Delete.
9434 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9435 (NATDEPFILES): Move core-aout.o to here.
9436 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9437 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9438 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9439 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9440 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9441 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9442 * config/pa/hpux11.mh (XDEPFILES): Delete.
9443 * config/powerpc/aix.mh (XDEPFILES): Delete.
9444 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9445 * config/powerpc/linux.mh (XDEPFILES): Delete.
9446 * config/romp/rtbsd.mh: Rename XDEPFILES.
9447 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9448 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9449 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9450 * config/s390/s390.mh (XDEPFILES): Delete.
9451 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9452 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9453 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9454 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9455 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9456 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9457 * config/sparc/linux.mh (XDEPFILES): Delete.
9458 * config/vax/vaxult.mh (XDEPFILES): Delete.
9459 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9460 * Makefile.in (DEPFILES): Remove XDEPFILES.
9462 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9464 * utils.c (internal_verror): Fix comments, default is yes not no.
9465 Update queries to match. Default to quit and dump core.
9467 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9469 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9471 * defs.h, event-top.c, gdbcmd.h: Ditto.
9472 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9473 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9474 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9475 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9476 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9477 * mi/mi-main.c:Ditto.
9479 * stack.c, symfile.c: Update copyright.
9481 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9483 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9484 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9485 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9486 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9488 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9490 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9491 * gdbserver/low-lynx.c (myattach): Likewise.
9492 * gdbserver/low-nbsd.c (myattach): Likewise.
9493 * gdbserver/low-sim.c (myattach): Likewise.
9494 * gdbserver/low-sparc.c (myattach): Likewise.
9495 * gdbserver/low-sun3.c (myattach): Likewise.
9497 * gdbserver/low-linux.c (myattach): New function.
9499 * gdbserver/server.c (attach_inferior): New function.
9500 (main): Handle "--attach".
9502 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9504 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9507 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9509 * c-typeprint.c (is_type_conversion_operator): Add additional
9510 check for non-conversion operators.
9512 2002-01-15 Michael Snyder <msnyder@redhat.com>
9514 * linux-proc.c: Add "info proc" command, a la procfs.c.
9515 (read_mapping): New function, abstract and re-use code.
9516 (linux_find_memory_regions): Use new func read_mapping.
9517 (linux_info_proc_cmd): New function, implement "info proc".
9518 (_initialize_linux_proc): Add new command "info proc".
9520 2002-01-15 Michael Snyder <msnyder@redhat.com>
9522 * symfile.c (generic_load): Use bfd_map_over_sections method
9523 instead of manipulating bfd structure members directly.
9524 (add_section_size_callback): New function, bfd sections callback
9525 used by generic_load.
9526 (load_sections_callback): New function, bfd sections callback
9527 used by generic_load.
9529 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9531 [Based on work by Jim Blandy]
9532 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9533 (builtin_type_vec128): Export.
9534 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
9536 (builtin_type_vec128): New builtin type for 128 bit vector
9538 (build_gdbtypes): Initialize builtin_type_v16qi and
9539 builtin_type_v8hi. Create the vec128 register builtin type
9541 (build_builtin_type_vec128): New function.
9542 (_initialize_gdbtypes): Register builtin_type_v16qi and
9543 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
9544 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
9545 AltiVec register to new builtin type.
9547 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
9549 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
9552 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9554 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9555 CLEAN_UP_REGISTER_VALUE.
9556 * regcache.c (supply_register): Update only call.
9558 2002-01-14 Andrew Cagney <ac131313@redhat.com>
9560 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9561 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9562 a29k-*-vxworks* targets as obsolete.
9564 2002-01-14 Michael Snyder <msnyder@redhat.com>
9566 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
9567 until we can resolve portability issues.
9568 * gregset.h: Remove references to fpxregs.
9569 * gcore.c (gcore_command): Initialize note_sec to NULL.
9571 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9573 * signals.c (target_signal_to_name): Rewrite. Only use
9574 signals[].name when in bounds and non-NULL.
9576 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9578 From Petr Ledvina <ledvinap@kae.zcu.cz>:
9579 * signals.c (target_signal_to_name): Verify that SIG is within the
9580 bounds of the signals array.
9582 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9584 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
9586 2002-01-13 Keith Seitz <keiths@redhat.com>
9588 * stack.c (print_frame_info_base): Print the frame's pc
9589 only if when print_frame_info_listing_hook is not defined.
9591 2002-01-13 Keith Seitz <keiths@redhat.com>
9593 * varobj.c (varobj_set_value): Make sure that there were no
9594 errors evaluating the object before attempting to set its
9596 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
9597 so this offset adjustment is no longer necessary.
9598 (create_child): Don't set the error flag if the child is
9600 (value_of_child): If value_fetch_lazy fails, return NULL
9601 so that callers will be notified that an error occurred.
9602 (c_value_of_variable): Delay check of variable's validity
9603 until later. We actually want all structs and unions to have
9605 Do not return "???" for variables which could not be evaluated.
9606 This error condition must be returned to the caller so that it
9607 can get the error condition from gdb.
9608 (cplus_name_of_child): Adjust index for vptr before figuring
9609 out the name of the child.
9610 (cplus_value_of_child): If a child's (real) parent is not valid,
9611 don't even bother trying to give a value for it. Just return
9612 an error. Change all instances in this function.
9613 (cplus_type_of_child): If our parent is one of the "fake"
9614 parents, we need to get at the type of the real parent, and
9615 derive the child's true type using this information.
9617 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9619 From 2002-01-09 John Marshall <johnm@falch.net>:
9620 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
9621 sources.redhat.com, and tweak some related URLs which had
9622 suffered from linkrot.
9624 2002-01-13 Andrew Cagney <ac131313@redhat.com>
9627 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
9628 structures passed in registers.
9630 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
9632 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
9633 white space which prevented compilation. Reported by DSK
9634 <dsk@student.unsw.edu.au>.
9636 2002-01-11 Michael Snyder <msnyder@redhat.com>
9638 * symfile.c (build_section_addr_info_from_section_tab):
9639 Use bfd access method instead of manipulating bfd directly.
9640 (syms_from_objfile): Ditto.
9641 (simple_overlay_update_1): Ditto.
9642 (simple_overlay_update): Ditto.
9643 (generic_load): Ditto.
9644 (overlay_unmapped_address): FIXME comment, bfd access methods.
9645 (sections_overlap): FIXME comment, bfd access methods.
9646 (pc_in_mapped_range): FIXME comment, bfd access methods.
9647 (pc_in_unmapped_range): FIXME comment, bfd access methods.
9648 (section_is_mapped): FIXME comment, bfd access methods.
9649 (section_is_overlay): FIXME comment, bfd access methods.
9651 * symfile.c (generic_load): Whitespace and long line cleanups.
9652 Remove duplicate variable, change several local variables to
9653 more appropriate data types.
9654 (print_transfer_performance): Use %lu instead of %ld for ulongs.
9656 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9659 * language.c (longest_local_hex_string_custom): Use phex_nz to
9660 convert NUM to a hex string.
9662 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
9664 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
9666 Update Copyright year.
9668 2002-01-12 Andrew Cagney <ac131313@redhat.com>
9670 * language.c (longest_raw_hex_string): Delete unused function.
9672 2002-01-11 Petr Sorfa <petrs@caldera.com>
9674 * MAINTAINERS (write-after-approval): Add myself.
9675 * dwarf2read.c (read_tag_string_type): Handling of
9677 (read_tag_string_type): FORTRAN fix to prevent propagation of
9679 (set_cu_language): Handling of DW_LANG_Fortran95
9681 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
9683 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
9684 GETPID(inferior_ptid).
9685 (store_inferior_registers): Likewise.
9687 2002-01-10 Jason Merrill <jason@redhat.com>
9689 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
9692 2002-01-10 Andrew Cagney <ac131313@redhat.com>
9694 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
9695 and bfd/elf32-sh-nbsd.c.
9697 2002-01-10 Michael Snyder <msnyder@redhat.com>
9699 * NEWS: Mention --pid and corefile/proc-id behavior change.
9701 * Makefile.in: Add rules for gcore.o and linux-proc.o.
9702 * gcore.c: Include cli/cli-decode.h instead of command.h.
9704 * main.c (captured_main): Add new command line option "--pid".
9705 If the second command line argument (following the symbol-file)
9706 begins with a digit, try to attach to it before trying to open
9708 (print_gdb_help): Document the "--pid" argument.
9710 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
9712 * completer.c (command_completer): New function.
9714 * completer.h <command_completer>: Add prototype.
9716 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
9717 completer for the "help" command.
9719 2002-01-09 Jason Merrill <jason@redhat.com>
9721 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
9723 2002-01-09 Michael Snyder <msnyder@redhat.com>
9725 * i386-linux-nat.c (fill_fpxregset): Make global.
9726 (store_fpxregset): Ditto.
9728 * gregset.h (gdb_fpxregset_t): Define.
9729 (supply_fpxregset): Prototype.
9730 (fill_fpxregset): Prototype.
9732 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
9734 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9736 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
9737 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
9738 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
9740 2002-01-09 Andrew Cagney <ac131313@redhat.com>
9742 * MAINTAINERS: Update target maintainer rules so that any
9743 Maintainer can approve a tested patch for a maintenance-only
9746 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
9748 * MAINTAINERS (write-after-approval): Add myself.
9750 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
9753 2002-01-08 Michael Snyder <msnyder@redhat.com>
9755 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
9756 real name of the executable, rather than the /proc name.
9758 2002-01-03 Michael Snyder <msnyder@redhat.com>
9760 Implement a "generate-core-file" command in gdb, save target state.
9761 * gcore.c: New file. Implement new command 'generate-core-file'.
9762 Save a corefile image of the current state of the inferior.
9763 * linux-proc.c: Add linux-specific code for saving corefiles.
9764 * target.h (struct target_ops): Add new target vectors for saving
9765 corefiles; to_find_memory_regions and to_make_corefile_notes.
9766 (target_find_memory_regions): New macro.
9767 (target_make_corefile_notes): New macro.
9768 * target.c (update_current_target): Inherit new target methods.
9769 (dummy_find_memory_regions): New place-holder method.
9770 (dummy_make_corefile_notes): New place-holder method.
9771 (init_dummy_target): Initialize new dummy target vectors.
9772 * exec.c (exec_set_find_memory_regions): New function.
9773 Allow the exec_ops vector for memory regions to be taken over.
9774 (exec_make_note_section): New function, target vector method.
9775 * defs.h (exec_set_find_memory_regions): Export prototype.
9776 * procfs.c (proc_find_memory_regions): New function, corefile method.
9777 (procfs_make_note_section): New function, corefile method.
9778 (init_procfs_ops): Set new target vector pointers.
9779 (find_memory_regions_callback): New function.
9780 (procfs_do_thread_registers): New function.
9781 (procfs_corefile_thread_callback): New function.
9782 * sol-thread.c (sol_find_memory_regions): New function.
9783 (sol_make_note_section): New function.
9784 (init_sol_thread_ops): Initialize new target vectors.
9785 * inftarg.c (inftarg_set_find_memory_regions): New function.
9786 Allow to_find_memory_regions vector to be taken over.
9787 (inftarg_set_make_corefile_notes): New function.
9788 Allow to_make_corefile_notes vector to be taken over.
9789 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
9790 interface layer if not target_has_execution (may be a corefile).
9791 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
9792 * config/sparc/sun4sol2.mh: Ditto.
9793 * config/alpha/alpha-linux.mh: Ditto.
9794 * config/arm/linux.mh: Ditto.
9795 * config/i386/x86-64linux.mh: Ditto.
9796 * config/ia64/linux.mh: Ditto.
9797 * config/m68k/linux.mh: Ditto.
9798 * config/mips/linux.mh: Ditto.
9799 * config/powerpc/linux.mh: Ditto.
9800 * config/sparc/linux.mh: Ditto.
9802 2002-01-07 Michael Snyder <msnyder@redhat.com>
9804 * arm-linux-nat.c: Remove references to regcache.c internal data
9805 (registers[] and register_valid[]).
9807 2002-01-07 Michael Snyder <msnyder@redhat.com>
9809 * linux-proc.c: New file. Implement child_pid_to_exec_file,
9810 so that attaching to a pid will automatically read the process's
9811 symbol file and shlibs.
9812 * Makefile.in: Add rule for linux-proc.o.
9813 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
9814 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
9815 * config/arm/linux.mh: Ditto.
9816 * config/i386/linux.mh: Ditto.
9817 * config/i386/x86-64linux.mh: Ditto.
9818 * config/ia64/linux.mh: Ditto.
9819 * config/m68k/linux.mh: Ditto.
9820 * config/mips/linux.mh: Ditto.
9821 * config/powerpc/linux.mh: Ditto.
9822 * config/sparc/linux.mh: Ditto.
9824 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
9826 * win32-nat.c: Add i386-tdep.h dependency.
9828 2002-01-07 Michael Snyder <msnyder@redhat.com>
9830 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
9831 instead of bfd_get_arch_size. Don't bail out just because
9832 there's no exec_bfd.
9834 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
9835 * p-valprint.c (pascal_object_print_value): Ditto.
9836 * somread.c (som_symtab_read): Ditto.
9837 * symfile.c (simple_free_overlay_region_table): Ditto.
9838 * valops.c (value_assign): Ditto.
9840 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
9841 use tilde_expand and strerror for opening save-tracepoints file.
9843 * thread-db.c (thread_db_new_objfile): Indendation fix.
9845 * infptrace.c (GDB_MAX_ALLOCA): New define.
9846 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
9847 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
9848 can be overridden with whatever value is appropriate to the host).
9849 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
9850 alloca to allocate potentially large buffer.
9851 * rs6000-nat.c (child_xfer_memory): Ditto.
9852 * symm-nat.c (child_xfer_memory): Ditto.
9853 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
9855 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
9857 From Nick Clifton <nickc@redhat.com>
9858 * d10v-tdep.c: Set STACK_START to 0x200bffe.
9860 2002-01-07 Michael Snyder <msnyder@redhat.com>
9862 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9863 Don't use exec_bfd if it's NULL.
9865 2002-01-06 Mark Kettenis <kettenis@gnu.org>
9867 * valops.c (value_arg_coerce): Fix formatting.
9869 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9871 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
9874 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9876 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
9877 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
9878 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
9879 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
9880 z8k-coff have not been multi-arched. Update z8k-coff build
9883 2002-01-06 Andrew Cagney <ac131313@redhat.com>
9885 * MAINTAINERS: Mark a29k target as obsolete.
9886 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
9887 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
9889 * NEWS: Note that a29k targets are obsolete.
9890 * a29k-tdep.c: Mark as obsolete.
9891 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
9892 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
9893 a29k-*-vxworks* targets as obsolete.
9894 * remote-adapt.c: Obsolete.
9895 * remote-eb.c: Obsolete.
9896 * remote-mm.c: Obsolete.
9897 * remote-udi.c: Obsolete.
9898 * config/a29k/a29k-udi.mt: Obsolete.
9899 * config/a29k/a29k.mt: Obsolete.
9900 * config/a29k/tm-a29k.h: Obsolete.
9901 * config/a29k/tm-vx29k.h: Obsolete.
9902 * config/a29k/vx29k.mt: Obsolete.
9904 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9906 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
9907 with BFD_ENDIAN_BIG.
9909 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9911 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
9912 * configure, config.in: Re-generate.
9913 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
9914 * defs.h: Do not include <endian.h>.
9916 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
9918 * acconfig.h (HAVE_PT_GETXMMREGS): New.
9919 * config.in: Regenerate.
9920 * configure.in: Update copyright years.
9921 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
9922 * configure: Regenerate.
9923 * i386bsd-nat.c: Update copyright years.
9924 (fill_gregset): Use regcache_collect.
9925 (fetch_inferior_registers): Only fetch integer registers
9926 if requested to do so. Add support for XMM registers
9927 using PT_GETXMMREGS.
9928 (store_inferior_registers): Only store integer registers
9929 if requested to do so. Add support for XMM registers
9930 using PT_SETXMMREGS.
9931 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
9932 (store_inferior_registers): Remove.
9933 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
9934 (fetch_elfcore_registers): New function.
9935 (i386nbsd_elfcore_fns): New.
9936 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
9937 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
9939 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9940 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
9941 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
9942 * config/i386/tm-nbsd.h: Update copyright years.
9943 (HAVE_SSE_REGS): Define.
9944 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
9945 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
9946 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
9947 (SIGCONTEXT_PC_OFFSET): Remove.
9948 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
9950 2002-01-05 Andrew Cagney <ac131313@redhat.com>
9952 * configure.tgt: Remove powerpc-*-macos* target.
9953 * config/m68k/xm-mpw.h: Delete file.
9954 * config/xm-mpw.h: Delete file.
9955 * ser-mac.c: Delete file.
9956 * mpw-make.sed: Delete file.
9957 * mpw-config.in: Delete file.
9958 * mac-xdep.c: Delete file.
9959 * mac-gdb.r: Delete file.
9960 * mac-defs.h: Delete file.
9961 * mac-nat.c: Delete file.
9962 * config/powerpc/macos.mh: Delete file.
9963 * config/powerpc/macos.mt: Delete file.
9964 * config/powerpc/nm-macos.h: Delete file.
9965 * config/powerpc/tm-macos.h: Delete file.
9966 * source.c (openp, open_source_file): Remove obsolete code.
9967 * top.c (gdb_readline): Ditto.
9968 * utils.c (query): Ditto.
9969 * event-top.c (display_gdb_prompt): Ditto.
9970 * Makefile.in (ser-mac.o): Delete obsolete target.
9973 2002-01-04 Andrew Cagney <ac131313@redhat.com>
9975 * defs.h (BIG_ENDIAN): Delete macro definition.
9976 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
9977 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
9978 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
9979 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
9980 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
9981 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
9982 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
9983 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
9984 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
9985 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
9986 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
9987 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
9988 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9989 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
9990 * gdbarch.c: Re-generate.
9992 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
9994 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
9997 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
9999 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10001 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10003 * value.h (value_ptr): Delete typedef.
10005 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10007 * i386nbsd-nat.c: Update copyright years.
10008 Include i386-tdep.h.
10010 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10012 * stabsread.c: Update copyright years.
10014 From Debashis Mahata <debashis.mahata@wipro.com>:
10015 (read_struct_fields): Deal with Sun C compiler erroneous stab
10016 output for structs and unions.
10019 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10021 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10024 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10026 * cp-abi.c: Fix whitespace.
10027 (baseclass_offset): New wrapper function.
10028 * cp-abi.h (baseclass_offset): Add prototype.
10029 (struct cp_abi_ops): Add baseclass_offset pointer.
10031 * valops.c (vb_match): Move to...
10032 * gnu-v2-abi.c (vb_match): here.
10033 * valops.c (baseclass_offset): Move to...
10034 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10036 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10038 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10039 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10040 * hpacc-abi.c (init_hpacc_ops): Likewise.
10042 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10044 * valops.c (find_overload_match): Accept obj as a
10045 reference parameter. Update it before returning.
10046 * value.h (find_overload_match): Update prototype.
10047 * eval.c (evaluate_subexp_standard): Pass object to
10048 find_overload_match by reference.
10050 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10052 * valarith.c: Replace value_ptr with struct value pointer. Remove
10053 register attribute from value declarations.
10056 * scm-lang.c (scm_lookup_name): Ditto.
10058 2002-01-03 Michael Snyder <msnyder@redhat.com>
10060 Abstract the functionality of iterating over mapped memory
10061 regions into a general purpose iterator function.
10062 * procfs.c (iterate_over_mappings): New function, general purpose
10063 iterator for memory sections.
10064 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10065 (solib_mappings_callback): New function, callback for above.
10066 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10067 (info_mappings_callback): New function, callback for above.
10069 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10071 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10073 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10074 * i386-tdep.c: Include "elf-bfd.h".
10075 (process_note_abi_tag_sections): New function.
10076 (i386_gdbarch_init): Add code to recognize various OS/ABI
10079 * maint.c (_initialize_maint_cmds): Add missing \ in
10082 For older changes see ChangeLog-2001
10088 version-control: never