* configure.in: Move code that provides the --enable-gdbcli,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-02 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Move code that provides the --enable-gdbcli,
4 --enable-gdbmi options right before the code that handles the
5 --enable-tui option. Polish a bit.
6 * configure: Regenerated.
7
8 * configure.in: Rewrite check for GNU regex and the
9 --without-included regex option, and move it into the "Checks for
10 library functions" section. This makes us use the system regex
11 again by default on systems with version 2 of the GNU C library.
12 This was apparently broken.
13 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14 * acconfig.h (USE_INCLUDED_REGEX): Remove.
15 * config.in, configure: Regenerated.
16
17 * configure.in: Move code that provides the --enable-tui option
18 before the "Checks for libraries" section. Polish the code
19 somewhat and set need_curses to yes if we build the TUI. Rewrite
20 code that looks for a library providing termcap functionality to
21 match more closely what's done in the Readline library, and move
22 it into to the "Checks for libraries" section.
23 * configure: Regenerated.
24 * Makefile.in (TERMCAP): Remove variable.
25 * config/i386/go32.mh (TERMCAP): Remove variable.
26
27 2003-01-02 Andrew Cagney <ac131313@redhat.com>
28
29 * MAINTAINERS: Mention gdb_mbuild.sh.
30 * gdb_mbuild.sh: Rewrite.
31
32 2003-01-02 Mark Kettenis <kettenis@gnu.org>
33
34 * configure.in: Fix typo in last change.
35 * config.in, configure: Regenerated.
36
37 2003-01-02 Andrew Cagney <ac131313@redhat.com>
38
39 * valarith.c (value_binop): Delete obsolete code and comments.
40 * configure.host: Ditto.
41 * buildsym.h (make_blockvector): Ditto.
42 * buildsym.c (make_blockvector): Ditto.
43 * defs.h (enum language): Ditto.
44 (chill_demangle): Ditto.
45 * elfread.c (elf_symtab_read): Ditto.
46 * dwarfread.c (CHILL_PRODUCER): Ditto.
47 (set_cu_language): Ditto.
48 (handle_producer): Ditto.
49 * expprint.c (print_subexp): Ditto.
50 * gdbtypes.c (chill_varying_type): Ditto.
51 * gdbtypes.h (builtin_type_chill_bool): Ditto.
52 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
53 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
54 (chill_varying_type): Ditto.
55 * language.h (_LANG_chill): Ditto.
56 * language.c (binop_result_type, integral_type): Ditto.
57 (character_type, string_type, structured_type): Ditto.
58 (lang_bool_type, binop_type_check): Ditto.
59 * stabsread.h (os9k_stabs): Ditto.
60 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
61 (define_symbol, read_type, read_struct_fields): Ditto.
62 (read_array_type, read_enum_type, read_huge_number): Ditto.
63 (read_range_type, start_stabs): Ditto.
64 * symfile.c (init_filename_language_table): Ditto.
65 (add_psymbol_with_dem_name_to_list): Ditto.
66 * symtab.c (symbol_init_language_specific): Ditto.
67 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
68 * symtab.h (struct general_symbol_info): Ditto.
69 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
70 * typeprint.c (typedef_print): Ditto.
71 * utils.c (fprintf_symbol_filtered): Ditto.
72 * valops.c (value_cast, search_struct_field, value_slice): Delete
73 obsolete code.
74 (varying_to_slice): Delete function.
75 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
76 (varying_to_slice): Delete declaration.
77 * MAINTAINERS: Update.
78
79 2003-01-02 Mark Kettenis <kettenis@gnu.org>
80
81 * configure.in: Reorganize "Checks for library functions section"
82 a bit. Remove check for `btowc' and `isascii' functions.
83 * configure: Regenerated.
84
85 * acconfig.h (_MSE_INT_H): Remove.
86 * configure.in: Create "Checks for header files" section, and move
87 appropriate tests there. Don't check for objlist.h, wchar.h,
88 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
89 misdetection fix. Also add "Checks for types", "Checks for
90 compiler characteristics" and "Checks for library functions"
91 sections.
92 * config.in, configure: Regenerated.
93
94 * configure.in: Create "Checks for programs" section, and move
95 appropriate tests there.
96
97 2003-01-01 Mark Kettenis <kettenis@gnu.org>
98
99 * configure.in: Create "Checks for libraries" section, and move
100 appropriate tests there. Cleanup check for wctype in libw. Use
101 AC_SEARCH_LIBS to see whether we need libsocket.
102 * configure: Regenerated.
103
104 2002-12-31 Mark Kettenis <kettenis@gnu.org>
105
106 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
107 * config.in, configure: Regenerated.
108
109 2002-12-31 Mark Kettenis <kettenis@gnu.org>
110
111 * gdb_dirent.h: Cleanup and update code to match the example in
112 the Autoconf manual.
113 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
114 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
115 * configure: Regenerated.
116
117 2002-12-30 Adam Fedor <fedor@gnu.org>
118
119 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
120 (yylex): Initialize c to avoid uninitialized warning.
121
122 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
123
124 * doc/fdl.texi: Revert the last change.
125
126 2002-12-29 Mark Kettenis <kettenis@gnu.org>
127
128 * tracepoint.c (ISATTY): Removed.
129
130 2002-12-26 J. Brobecker <brobecker@gnat.com>
131
132 Continuing work to convert the hppa targets to multiarch partil.
133
134 * hppa-tdep.c: Add some missing forward declarations.
135 (frameless_function_invocation): Prefix the function name
136 by "hppa_" to avoid polluting the namespace. Update all calls
137 to use the new function name.
138 (saved_pc_after_call): Ditto.
139 (init_extra_frame_info): Ditto.
140 (frame_chain): Ditto.
141 (push_dummy_frame): Ditto.
142 (target_read_pc): Ditto.
143 (target_write_pc): Ditto.
144 (in_solib_call_trampoline): Ditto.
145 (in_solib_return_trampoline): Ditto.
146 (skip_trampoline_code): Ditto.
147 (hppa_read_fp): New function, renamed from target_read_fp.
148 (hppa_target_read_fp): New function, using hppa_read_fp.
149 This function conforms to the function profile for the
150 READ_FP gdbarch method.
151 (hppa_extract_struct_value_address): New function, extracted
152 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
153 macro.
154 (hppa_frame_num_args): New function.
155 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
156
157 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
158 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
159 for the switch to multiarch partial.
160 Update some of the macros definitions to match some changes
161 described above in the name of the function they are calling.
162 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
163 not be straightforward to convert. Do now wrap it inside
164 "#if !... #endif" to remember that this macro has still not
165 been taken care of.
166 (FIX_CALL_DUMMY): Likewise.
167
168 2002-12-26 J. Brobecker <brobecker@gnat.com>
169
170 Continuing work to convert the hppa targets to multiarch partial.
171
172 * hppa-tdep.c (hppa_register_raw_size): New function replacing
173 the body of macro REGISTER_RAW_SIZE.
174 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
175 config/pa/tm-hppah.h. These functions will be used to initialize
176 the gdbarch structure.
177 (hppa_hpux_pc_in_sigtramp): New function.
178 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
179 (hppa_hpux_frame_base_before_sigtramp): New function.
180 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
181 Add gdbcore.h #include.
182 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
183 of this gdbarch-eligible macro to a call to the new associated
184 function.
185 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
186 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
187 into a call to the new associated function.
188 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
189 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
190 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
191
192 2002-12-24 David Carlton <carlton@math.stanford.edu>
193
194 * config/sparc/tm-sparc.h: Delete duplicate definition of
195 DEPRECATED_PC_IN_CALL_DUMMY.
196
197 2002-12-24 Kevin Buettner <kevinb@redhat.com>
198
199 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
200 $(gdb_assert_h).
201 * configure.tgt: Recognize mips64*-*-linux*.
202 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
203 (supply_32_bit_reg): New function.
204 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
205 (fill_gregset): Use regcache_collect() instead of
206 deprecated_registers[].
207 (register_addr): Change name to mips_linux_register_addr().
208 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
209 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
210 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
211 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
212 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
213 (MIPS64_LINUX_JB_PC): New defines.
214 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
215 (mips64_elf_fpregset_t): New typedefs.
216 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
217 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
218 (mips64_linux_register_addr, set_mips_linux_register_addr)
219 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
220 (init_register_addr_data)
221 New functions.
222 (fetch_core_registers): Add support for core file formats with 64-bit
223 registers.
224 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
225 (register_addr_data): New static global variable.
226 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
227 gdbarch_register_osabi() for each MIPS machine.
228 * config/mips/linux64.mt: New file.
229 * config/mips/tm-linux64.h: New file.
230
231 2002-12-23 Adam Fedor <fedor@gnu.org>
232
233 * maint.c (maintenance_demangle): Add switch to demangle
234 ObjC language symbols as well.
235
236 2002-12-23 Adam Fedor <fedor@gnu.org>
237
238 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
239 last argument from complaint function call.
240
241 2002-12-23 Kevin Buettner <kevinb@redhat.com>
242
243 * exec.c (print_section_info): Add FIXME comments regarding format
244 string choices.
245
246 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
247
248 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
249 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
250
251 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
252
253 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
254
255 2002-12-23 David Carlton <carlton@math.stanford.edu>
256
257 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
258 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
259 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
260 information associated to a minsym, not lookup_symbol.
261
262 2002-12-21 Mark Kettenis <kettenis@gnu.org>
263
264 * x86-64-tdep.h (x86_64_init_abi): New prototype.
265 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
266 (x86_64_init_abi): Make non-static. Set number of pseudo
267 registers to 0.
268 (x86_64_gdbarch_init): Remove function.
269 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
270 Remove code dealing with dissambly.
271 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
272 (_initialize_x86_64_linux_tdep): New function.
273 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
274 i386-tdep.o.
275
276 2002-12-14 Mark Kettenis <kettenis@gnu.org>
277
278 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
279 (struct gdb_osabi_handler): Remove member `arch'. Add member
280 `arch_info'.
281 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
282 construct a `struct bfd_arch_info' and store it in the `struct
283 gdb_osabi_handler' that is created.
284 (gdbarch_init_osabi): Check for compatibility based on machine
285 type and architecture.
286 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
287 comment.
288 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
289 second argument in call to gdbarch_register_osabi.
290 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
291 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
292 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
293 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
294 * arm-tdep.c (_initialize_arm_tdep): Likewise.
295 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
296 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
297 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
298 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
299 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
300 * i386-tdep.c (_initialize_i386_tdep): Likewise.
301 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
302 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
303 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
304 _initialize_i386bsd_tdep and updated likewise.
305 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
306 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
307 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
308 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
309 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
310 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
311 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
312 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
313 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
314 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
315
316 2002-12-20 Kevin Buettner <kevinb@redhat.com>
317
318 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
319 DT_MIPS_RLD_MAP case for 64-bit targets.
320
321 2002-12-20 Kevin Buettner <kevinb@redhat.com>
322
323 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
324 ``temp_saved_regs'', not the pointer or other storage contiguous
325 to this pointer.
326
327 2002-12-20 Kevin Buettner <kevinb@redhat.com>
328
329 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
330 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
331 (mips_linux_get_longjmp_target): Delete declarations.
332 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
333 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
334 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
335 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
336 (mips_linux_get_longjmp_target)
337 (mips_linux_svr4_fetch_link_map_offsets): Make static.
338 (mips_linux_init_abi): New function.
339 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
340
341 2002-12-19 Keith Seitz <keiths@redhat.com>
342
343 patch committed by Elena Zannoni <ezannoni@redhat.com>
344 * thread.c (do_captured_list_thread_ids): Call prune_threads and
345 target_find_new_threads. Fix for PR mi/669.
346
347 2002-12-19 David Carlton <carlton@math.stanford.edu>
348
349 * linespec.c (decode_line_1): Move code into decode_all_digits.
350 (decode_all_digits): New function.
351
352 2002-12-19 Kevin Buettner <kevinb@redhat.com>
353
354 * exec.c (print_section_info): Select a format string to use with
355 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
356
357 2002-12-18 Andrew Cagney <ac131313@redhat.com>
358
359 * frame.c (deprecated_update_current_frame_pc_hack): Replace
360 deprecated_update_current_frame_pc_hack.
361 (deprecated_update_frame_base_hack): New function.
362 * frame.h (deprecated_update_frame_pc_hack): Replace
363 (deprecated_update_frame_base_hack): Declare.
364 * infrun.c (normal_stop): Update.
365
366 2002-12-18 Andrew Cagney <ac131313@redhat.com>
367
368 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
369 frame_extra_info_zalloc.
370 (rs6000_frame_args_address): Use get_frame_extra_info.
371 (frame_get_saved_regs): Use get_frame_saved_regs.
372 (frame_initial_stack_address): Use get_frame_saved_regs and
373 get_frame_extra_info.
374 (frame_initial_stack_address): Use get_frame_extra_info.
375
376 2002-12-17 Kevin Buettner <kevinb@redhat.com>
377
378 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
379 array size.
380 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
381 checks for r3900_regnames[].
382
383 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
384
385 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
386 All uses changed
387 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
388
389 2002-12-17 David Carlton <carlton@math.stanford.edu>
390
391 * symtab.c (lookup_partial_symbol): Don't search past the end of
392 the partial symbols.
393
394 2002-12-17 Andrew Cagney <ac131313@redhat.com>
395
396 * stack.c (frame_info): Use get_frame_saved_regs.
397 * breakpoint.c (until_break_command): Use get_frame_pc.
398
399 2002-12-16 Kevin Buettner <kevinb@redhat.com>
400
401 * buildsym.c (block_end_complaint, anon_block_end_complaint)
402 (innerblock_complaint, innerblock_anon_complaint)
403 (blockvector_complaint): Delete deprecated complaint structs.
404 (finish_block, make_blockvector, end_symtab): Replace calls
405 to complain() with calls to complaint().
406 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
407 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
408 (unexpected_type_complaint, bad_sclass_complaint)
409 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
410 Delete deprecated complaint structs.
411 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
412 Replace calls to complain() with calls to complaint().
413 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
414 (unknown_symtype_complaint, unknown_symchar_complaint)
415 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
416 (lbrac_mismatch_complaint, repeated_header_complaint)
417 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
418 Delete deprecated complaint structs.
419 (unknown_symtype_complaint, lbrac_mismatch_complaint)
420 (repeated_header_complaint)
421 (function_outside_compiliation_unit_complaint): New functions.
422 (add_old_header_file, find_corresponding_bincl_psymtab)
423 (set_namestring, find_stab_function_addr, read_dbx_symtab)
424 (process_one_symbol): Replace calls to complain() with, possibly
425 indirect, calls to complaint().
426 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
427 (unknown_attribute_form, unknown_attribute_length)
428 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
429 (const_ignored, botched_modified_type, op_deref2, op_deref4)
430 (basereg_not_handled, dup_user_type_allocation)
431 (dup_user_type_definition, missing_tag, bad_array_element_type)
432 (subscript_data_items, unhandled_array_subscript_format)
433 (unknown_array_subscript_format, not_row_major)
434 (missing_at_name): Delete deprecated complaint structs.
435 (bad_die_ref_complaint, unknown_attribute_form_complaint)
436 (dup_user_type_definition_complaint)
437 (bad_array_element_type_complaint): New functions.
438 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
439 (decode_subscript_data_item, dwarf_read_array_type)
440 (read_tag_string_type, read_subroutine_type, read_func_scope)
441 (locval, scan_partial_symbols, decode_modified_type)
442 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
443 (attribute_size): Replace calls to complain() with, possibly
444 indirect, calls to complaint().
445 * elfread.c (section_info_complaint, section_info_dup_complaint)
446 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
447 Delete deprecated complaint structs.
448 (elf_symtab_read, elfstab_offset_sections): Replace calls to
449 complain() with calls to complaint().
450 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
451 struct.
452 (stub_noname_complaint): New function.
453 (check_typedef, add_mangled_type): Replace calls to complain()
454 with calls to complaint().
455 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
456 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
457 (hpread_unhandled_type_complaint, hpread_struct_complaint)
458 (hpread_array_complaint, hpread_type_lookup_complaint)
459 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
460 (hpread_unhandled_common_complaint)
461 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
462 struct definitions and declarations.
463 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
464 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
465 Replace calls to complain() with, possibly indirect, calls to
466 complaint().
467 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
468 Likewise.
469 * mdebugread.c (bad_file_number_complaint, index_complaint)
470 (aux_index_complaint, block_index_complaint)
471 (unknown_ext_complaint, unknown_sym_complaint)
472 (unknown_st_complaint, block_overflow_complaint)
473 (basic_type_complaint, unknown_type_qual_complaint)
474 (array_index_type_complaint, bad_tag_guess_complaint)
475 (block_member_complaint, stEnd_complaint)
476 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
477 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
478 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
479 (bad_continued_complaint, bad_rfd_entry_complaint)
480 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
481 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
482 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
483 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
484 complaint structs.
485 (index_complaint, unknown_ext_complaint, basic_type_complaint)
486 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
487 (unexpected_type_code_complaint)
488 (function_outside_compilation_unit_complaint): New functions.
489 (parse_symbol, parse_type, upgrade_type, parse_procedure)
490 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
491 Replace calls to complain() with, possibly indirect calls to
492 complaint().
493 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
494 Delete deprecated complaint structs.
495 (lookup__objc_class, lookup_child_selector): Replace complain()
496 with complaint().
497 * remote-vx.c (cant_contact_target): Delete deprecated complaint
498 struct.
499 (vx_lookup_symbol): Replace complain() with complaint().
500 * stabsread.c (invalid_cpp_abbrev_complaint)
501 (invalid_cpp_type_complaint, member_fn_complaint)
502 (const_vol_complaint, error_type_complaint)
503 (invalid_member_complaint, range_type_base_complaint)
504 (reg_value_complaint, vtbl_notfound_complaint)
505 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
506 (unresolved_sym_chain_complaint, stabs_general_complaint)
507 (lrs_general_complaint, multiply_defined_struct): Delete
508 deprecated complaint structs.
509 (invalid_cpp_abbrev_complaint, ref_value_complaint)
510 (stabs_general_complaint, lrs_general_complaint)
511 (msg_unknown_complaint): New functions.
512 (dbx_lookup_type, read_cfront_baseclasses)
513 (read_cfront_member_functions, resolve_symbol_reference)
514 (define_symbol, resolve_live_range, add_live_range, read_type)
515 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
516 (read_one_struct_field, read_baseclasses, read_tilde_fields)
517 (read_cfront_static_fields, attach_fields_to_type)
518 (complain_about_struct_wipeout, read_range_type)
519 (common_block_start, common_block_end, cleanup_undefined_types)
520 (scan_file_globals): Replace complain() with complaint().
521 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
522 Delete deprecated complaint struct declarations.
523 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
524 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
525 (bf_not_found_complaint, ef_complaint, eb_complaint)
526 (function_outside_compilation_unit_complaint): New functions.
527 (record_include_begin, record_include_end, enter_line_range)
528 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
529 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
530 complain() with complaint().
531
532 2002-12-16 Andrew Cagney <ac131313@redhat.com>
533
534 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
535 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
536 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
537 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
538 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
539 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
540 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
541 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
542 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
543 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
544 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
545 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
546 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
547 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
548 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
549 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
550 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
551 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
552 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
553 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
554 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
555 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
556 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
557 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
558 * config/m88k/xm-dgux.h: Delete.
559 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
560 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
561 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
562 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
563 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
564 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
565 * ch-valprint.c: Delete.
566
567 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
568
569 * infrun.c (handle_inferior_event): Rearrange code to resume if
570 no catchpoint triggers for an event.
571
572 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
573
574 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
575 and TARGET_WAITKIND_VFORKED cases.
576
577 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
578
579 * infrun.c (handle_inferior_event): Assume that catchpoints
580 are not affected by DECR_PC_AFTER_BREAK.
581
582 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
583
584 * target.c (update_current_target): Don't inherit DONT_USE.
585 * target.h (struct target_ops): Remove DONT_USE.
586 (target_next): Remove macro.
587
588 2002-12-15 Mark Kettenis <kettenis@gnu.org>
589
590 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
591
592 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
593
594 * arm-tdep.c (convert_from_extended): New argument to hold the
595 type of floating point result we want to convert to. Make input
596 argument const. Fix all callers.
597 (convert_to_extended): Similarly.
598 (arm_extract_return_value): Now takes a regcache argument. Change
599 code to use regcache accessor functions. Correctly extract
600 smaller-than-word results on big-endian machines.
601 (arm_store_return_value): Now takes a regcache argument. Change
602 code to use regcache accessor functions. Correctly zero/sign extend
603 smaller than word results before storing into r0.
604 (arm_gdbarch_init): Register new-style extract_return_value and
605 store_return_value functions.
606
607 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
608
609 * thread-db.c (thread_from_lwp): Uniquify error msg.
610 (lwp_from_thread): Ditto.
611 (check_event): Ditto.
612 (find_new_threads_callback): Ditto.
613 (thread_db_pid_to_str): Ditto.
614
615 2002-12-13 Andrew Cagney <ac131313@redhat.com>
616
617 * frame.h (get_frame_saved_regs): Declare.
618 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
619 pointer.
620 * frame.c (get_frame_saved_regs): New function.
621 (frame_saved_regs_zalloc): Return the allocated saved_regs.
622
623 2002-12-13 Andrew Cagney <ac131313@redhat.com>
624
625 * frame.c (deprecated_update_current_frame_pc_hack): New
626 function.
627 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
628 * infrun.c (normal_stop): Use said function instead of directly
629 modifying the frame's PC.
630
631 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
632
633 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
634
635 2002-12-13 Kevin Buettner <kevinb@redhat.com>
636
637 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
638 config/mips/tm-irix6.h (NUM_REGS): Delete.
639 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
640 (temp_saved_regs): Declare as a pointer rather than an array.
641 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
642 that ``temp_saved_regs'' has storage allocated to it and that
643 it's the correct size.
644
645 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
646
647 * defs.h (init_last_source_visited): New prototype.
648 (add_path): Ditto.
649 * source.c (add_path): New function that adds to a specified path.
650 (mod_path): Change to call add_path.
651 (init_last_source_visited): New function to allow interfaces to
652 initialize static variable: last_source_visited. Part of fix
653 for PR gdb/741.
654 * Makefile.in: Add support for mi/mi-cmd-env.c.
655
656 2002-12-13 Andrew Cagney <ac131313@redhat.com>
657
658 * frame.h (frame_id_unwind): Declare.
659 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
660 id_unwind_cache.
661 (frame_id_unwind_ftype): Declare.
662 * frame.c (frame_id_unwind): New function.
663 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
664 (create_new_frame, get_prev_frame): Pass id_unwind to
665 set_unwind_by_pc.
666 (frame_saved_regs_id_unwind): New function.
667 (frame_saved_regs_id_unwind): New function.
668 * dummy-frame.c (dummy_frame_id_unwind): New function.
669 (struct dummy_frame): Add field id.
670 (generic_push_dummy_frame): Initialize `id'.
671 * dummy-frame.h (dummy_frame_id_unwind): Declare.
672
673 2002-12-13 Andrew Cagney <ac131313@redhat.com>
674
675 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
676 pass that to set_momentary_breakpoint. Move comments to where they
677 belong.
678 * frame.h (set_current_frame): Delete declaration.
679 * frame.c (set_current_frame): Delete function.
680
681 2002-12-13 Andrew Cagney <ac131313@redhat.com>
682
683 * frame.c (frame_extra_info_zalloc): New function.
684 * frame.h (frame_extra_info_zalloc): Declare.
685
686 2002-12-13 Joel Brobecker <brobecker@gnat.com>
687
688 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
689 in the previous prototype change to set_momentary_breakpoint.
690
691 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
692
693 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
694 and saw_child_exec.
695 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
696 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
697 (stop_stepping): Remove outdated check for child vfork events.
698
699 2002-12-12 Andrew Cagney <ac131313@redhat.com>
700
701 * GDB 5.3 released from gdb_5_3-branch.
702
703 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
704
705 * corelow.c (init_core_ops): Delete references to to_require_attach
706 and to_require_detach.
707 * exec.c (init_exec_ops): Likewise.
708 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
709 hppa_require_detach directly.
710 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
711 * inftarg.c (child_detach): Remove.
712 (child_detach_from_process): Rename to child_detach, remove
713 after_fork argument.
714 (child_attach): Remove.
715 (child_attach_to_process): Rename to child_attach, remove after_fork
716 argument.
717 (init_child_ops): Delete references to to_require_attach
718 and to_require_detach.
719 * infttrace.c (hppa_require_attach): Update comment.
720 * target.c (cleanup_target, update_current_target)
721 (init_dummy_target, setup_target_debug): Delete references to
722 to_require_attach and to_require_detach.
723 (find_default_require_detach, find_default_require_attach)
724 (debug_to_require_attach, debug_to_require_detach): Remove
725 functions.
726 * target.h (struct target_ops): Remove to_require_attach
727 and to_require_detach.
728 (target_require_attach, target_require_detach): Delete macros.
729 (find_default_require_detach, find_default_require_attach): Delete
730 prototypes.
731 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
732
733 2002-12-11 Andrew Cagney <ac131313@redhat.com>
734
735 * frame.c (get_frame_extra_info): New function.
736 * frame.h (get_frame_extra_info): Declare.
737
738 2002-12-11 Andrew Cagney <ac131313@redhat.com>
739
740 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
741 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
742 with `struct frame_id'.
743 (set_longjmp_resume_breakpoint): Ditto.
744 * infrun.c (handle_inferior_event): Update.
745 * breakpoint.c (watch_command_1, until_break_command): Update.
746 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
747 (handle_inferior_event, step_over_function): Update.
748 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
749 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
750 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
751 * infcmd.c (finish_command, run_stack_dummy): Update.
752
753 2002-12-11 Kevin Buettner <kevinb@redhat.com>
754
755 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
756 (dwarf2_non_const_array_bound_ignored)
757 (dwarf2_missing_line_number_section)
758 (dwarf2_statement_list_fits_in_line_number_section)
759 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
760 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
761 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
762 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
763 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
764 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
765 (dwarf2_missing_member_fn_type_complaint)
766 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
767 (dwarf2_const_value_length_mismatch)
768 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
769 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
770 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
771 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
772 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
773 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
774 complaints using deprecated struct..
775 (dwarf2_non_const_array_bound_ignored_complaint)
776 (dwarf2_complex_location_expr_complaint)
777 (dwarf2_unsupported_at_frame_base_complaint)
778 (dwarf2_const_value_length_mismatch_complaint)
779 (dwarf2_macros_too_long_complaint)
780 (dwarf2_macro_malformed_definition_complaint)
781 (dwarf2_invalid_attrib_class_complaint): New functions.
782 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
783 (read_structure_scope, read_array_type, read_common_block)
784 (read_tag_pointer_type, read_base_type, read_partial_die)
785 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
786 (new_symbol, dwarf2_const_value, read_type_die)
787 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
788 (parse_macro_definition, dwarf_decode_macros): Replace calls to
789 complain() with, possibly indirect, calls to complaint().
790
791 2002-12-11 Andrew Cagney <cagney@redhat.com>
792
793 * frame.c (deprecated_get_frame_saved_regs): Rename
794 get_frame_saved_regs.
795 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
796 * sparc-tdep.c: Update.
797 * hppa-tdep.c: Update.
798 * h8500-tdep.c: Update.
799
800 2002-12-11 Kevin Buettner <kevinb@redhat.com>
801
802 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
803 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
804 ``char *'' for return and parameter types.
805 * gdbarch.h, gdbarch.c: Regenerate.
806 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
807 return type from ``char *'' to ``const char *''.
808 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
809 const.
810
811 2002-12-11 Mark Kettenis <kettenis@gnu.org>
812
813 * i386-tdep.c: Include "dummy-frame.h".
814 (i386_frame_chain, i386_frame_saved_pc): Replace
815 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
816 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
817
818 2002-12-10 Andrew Cagney <cagney@redhat.com>
819
820 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
821 Change to a function with predicate.
822 * gdbarch.h, gdbarch.c: Re-generate.
823 * frame.c (get_prev_frame): Update. Test
824 DEPRECATED_INIT_FRAME_PC_P.
825 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
826 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
827 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
828 * alpha-tdep.c (alpha_gdbarch_init): Update.
829 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
830 * mips-tdep.c (mips_gdbarch_init): Update.
831 * i386-interix-tdep.c (i386_interix_init_abi): Update.
832 * arm-tdep.c: Update comments.
833 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
834 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
835 * frv-tdep.c (frv_gdbarch_init): Ditto.
836 * x86-64-tdep.c (x86_64_init_abi): Ditto.
837 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
838 * s390-tdep.c (s390_gdbarch_init): Ditto.
839 * v850-tdep.c (v850_gdbarch_init): Ditto.
840 * vax-tdep.c (vax_gdbarch_init): Ditto.
841 * sh-tdep.c (sh_gdbarch_init): Ditto.
842 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
844 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
846 * i386-tdep.c (i386_gdbarch_init): Ditto.
847 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
848 * cris-tdep.c (cris_gdbarch_init): Ditto.
849 * avr-tdep.c (avr_gdbarch_init): Ditto.
850 * arm-tdep.c (arm_gdbarch_init): Ditto.
851 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
852 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
853
854 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
855
856 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
857 CHILD_FOLLOW_FORK.
858 * hppah-nat.c (saved_vfork_pid): Add.
859 (child_post_follow_vfork): Remove.
860 (child_follow_fork): New function.
861 (child_wait): Call detach_breakpoints after receiving the child vfork.
862 Call child_resume directly instead of going through resume ().
863 Make sure we have the exec before reporting the vfork.
864 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
865 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
866 (follow_fork): New function. Call target_follow_fork.
867 (follow_inferior_reset_breakpoints): New function broken out from
868 old follow_inferior_fork.
869 (resume): Remove hack to follow exec after vfork.
870 * inftarg.c (child_post_follow_vfork): Remove.
871 (child_follow_fork): New function.
872 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
873 * target.c (cleanup_target): Replace to_post_follow_vfork with
874 to_follow_fork.
875 (update_current_target): Likewise.
876 (setup_target_debug): Likewise.
877 (debug_to_post_follow_vfork): Remove.
878 (debug_to_follow_fork): New function.
879 * target.h (struct target_ops): Replace to_post_folow_vfork with
880 to_follow_fork.
881 (child_post_follow_vfork): Remove prototype.
882 (child_follow_fork): Add prototype.
883 (target_post_follow_vfork): Remove macro.
884 (target_follow_fork): Add macro.
885
886 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
887
888 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
889 (child_post_follow_vfork): Cancel pending exec event if we follow
890 the parent.
891 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
892 events have been processed. Return a fake TARGET_WAITKIND_EXECD
893 event at the following wait call if necessary.
894 * infrun.c (follow_vfork): Don't follow_exec here.
895 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
896 case about HP/UX 10.20. Remove code pushed down to
897 hppah-nat.c:child_wait.
898 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
899 vfork_in_flight is set.
900
901 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
902
903 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
904 for the parent's fork event.
905 * infrun.c (handle_inferior_event): Only expect one fork event.
906 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
907 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
908
909 2002-12-10 Andrew Cagney <ac131313@redhat.com>
910
911 * PROBLEMS: Delete reference to PR gdb/725.
912
913 * MAINTAINERS (gdb.c++): Add David Carlton.
914
915 2002-12-09 David Carlton <carlton@math.stanford.edu>
916
917 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
918 * cli/cli-cmds.c: Ditto.
919
920 2002-12-09 Andrew Cagney <cagney@redhat.com>
921
922 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
923 function address in <>.
924 * gdbarch.c: Re-generate.
925
926 2002-12-09 David Carlton <carlton@math.stanford.edu>
927
928 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
929
930 2002-12-09 David Carlton <carlton@math.stanford.edu>
931
932 * linespec.c (symtab_from_filename): New function.
933 (decode_line_1): Move code into symtab_from_filename.
934
935 2002-12-09 Kevin Buettner <kevinb@redhat.com>
936
937 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
938
939 2002-12-07 Andrew Cagney <ac131313@redhat.com>
940
941 * f-valprint.c (info_common_command): Use get_frame_pc.
942 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
943 * ax-gdb.c (agent_command): Ditto.
944 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
945 (rs6000_pop_frame): Ditto.
946 (rs6000_frameless_function_invocation): Ditto.
947 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
948 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
949 * macroscope.c (default_macro_scope): Ditto.
950 * stack.c (print_frame_info_base): Ditto.
951 (print_frame, frame_info, print_frame_label_vars): Ditto.
952 (return_command, func_command, get_frame_language): Ditto.
953 * infcmd.c (finish_command): Ditto.
954 * dummy-frame.c (cached_find_dummy_frame): Ditto.
955 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
956 (break_at_finish_at_depth_command_1): Ditto.
957 (break_at_finish_command_1): Ditto.
958 (until_break_command, get_catch_sals): Ditto.
959 * blockframe.c (func_frame_chain_valid): Ditto.
960 (frameless_look_for_prologue): Ditto.
961 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
962
963 2002-12-08 Andrew Cagney <ac131313@redhat.com>
964
965 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
966 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
967
968 2002-12-08 Andrew Cagney <ac131313@redhat.com>
969
970 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
971 to pure functions.
972 * gdbarch.h, gdbarch.c: Re-generate.
973 * frame.c (get_prev_frame): Explictly assign prev's pc with value
974 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
975
976 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
977 declaration to a function returning a CORE_ADDR.
978 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
979 * arch-utils.c (init_frame_pc_noop): Return the PC value.
980 (init_frame_pc_default): Ditto.
981 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
982 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
983 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
984 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
985 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
986 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
987
988 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
989 to init_frame_pc_noop.
990 (i386_interix_init_frame_pc): Delete function.
991 * z8k-tdep.c (init_frame_pc): Delete function.
992 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
993 (INIT_FRAME_PC_FIRST): Ditto.
994 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
995 (INIT_FRAME_PC_FIRST): Ditto.
996 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
997 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
998 init_frame_pc_noop.
999 (INIT_FRAME_PC_FIRST): Convert to an expression.
1000 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1001
1002 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1003
1004 * blockframe.c: Use get_frame_base instead of directly accessing
1005 the `struct frame_info' member frame.
1006 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1007 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1008
1009 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1010
1011 * Makefile.in (readline_h): Define.
1012 (completer.o): Depend on readline_h.
1013 (corelow.o): Ditto.
1014 (event-top.o): Ditto.
1015 (exec.o): Ditto.
1016 (solib.o): Ditto.
1017 (source.o): Ditto.
1018 (symfile.o): Ditto.
1019 (symmisc.o): Ditto.
1020 (top.o): Ditto.
1021 (tracepoint.o): Ditto.
1022 (utils.o): Ditto.
1023 (cli-dump.o): Ditto.
1024 (tui-hooks.o): Ditto.
1025 (tuiWin.o): Ditto.
1026
1027 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1028
1029 More cleanup from import of readline 4.3.
1030 * completer.h (complete_line, readline_line_completion_function):
1031 Update prototypes.
1032 (line_completion_function): Removed, not used outside of completer.c.
1033 * completer.c (readline_line_completion_function,
1034 complete_function, line_completion_function): Use const for first
1035 parameter.
1036 (line_completion_function): Make static.
1037 (filename_completer): filename_completion_function is now called
1038 rl_filename_completion_function
1039 * corelow.c: Include <readline/readline.h>.
1040 * exec.c: Ditto.
1041 * solib.c: Ditto.
1042 * source.c: Ditto.
1043 * symfile.c: Ditto.
1044 * symmisc.c: Ditto.
1045 * top.c (init_main): No need to coerce
1046 readline_line_completion_function anymore.
1047 * cli/cli-dump.c: Include <readline/readline.h>.
1048
1049 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1050
1051 * stack.c (frame_info): Use get_prev_frame.
1052 * blockframe.c (frame_address_in_block): Ditto.
1053 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1054 (rs6000_frameless_function_invocation): Ditto.
1055 (rs6000_frame_saved_pc): Ditto.
1056 (rs6000_frame_chain): Ditto.
1057 * arch-utils.c (init_frame_pc_default): Ditto.
1058
1059 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1060
1061 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1062 Delete redundant definition.
1063
1064 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1065
1066 Import of readline 4.3:
1067 * cli/cli-cmds.c: Include readline/tilde.h.
1068 * cli/cli-setshow.c: Ditto.
1069 * defs.h: Don't declare tilde_expand anymore, since readline
1070 exports it.
1071
1072 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1073
1074 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1075 -Werror on this file.
1076
1077 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1078
1079 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1080 the format name.
1081 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1082 * gdbarch.c: Regenerate.
1083
1084 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1085
1086 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1087 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1088 provide a default value.
1089 * gdbarch.h, gdbarch.c: Regenerate.
1090 * frame.c (get_prev_frame): Update. Check
1091 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1092 * s390-tdep.c (s390_gdbarch_init): Update.
1093 * mips-tdep.c (mips_gdbarch_init): Update.
1094 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1095 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1096 * alpha-tdep.c (alpha_gdbarch_init): Update.
1097
1098 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1099
1100 * ia64-linux-nat.c: Include gdb_string.h.
1101 * alpha-nat.c: Ditto.
1102 * ppc-linux-nat.c: Ditto.
1103 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1104 Update dependencies.
1105
1106 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1107
1108 * gdbthread.h: Include "frame.h".
1109 (struct thread_info): Replace step_frame_address with
1110 step_frame_id.
1111 * inferior.h: Include "frame.h".
1112 (step_frame_id): Replace external variable step_frame_address.
1113 * gdbthread.h (save_infrun_state): Replace step_frame_address
1114 parameter with step_frame_id parameter.
1115 (load_infrun_state): Ditto.
1116 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1117 * infcmd.c (step_frame_id, step_1, step_once): Update.
1118 * thread.c (load_infrun_state, save_infrun_state): Update.
1119 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1120 (handle_inferior_event, step_over_function): Update.
1121 (normal_stop, context_switch, restore_inferior_status): Update.
1122 (struct inferior_status): Replace step_frame_address with
1123 step_frame_id.
1124
1125 2002-12-05 David Carlton <carlton@math.stanford.edu>
1126
1127 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1128 DW_TAG_member as well as a declaration as being a C++ static data
1129 member.
1130 (read_structure_scope): Combine tests for DW_TAG_member and
1131 DW_TAG_variable.
1132
1133 2002-12-05 David Carlton <carlton@math.stanford.edu>
1134
1135 * linespec.c (decode_compound): New function.
1136 (decode_line_1): Move code into decode_compound.
1137
1138 2002-12-05 David Carlton <carlton@math.stanford.edu>
1139
1140 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1141 argument.
1142 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1143 the static block. See PR gdb/804.
1144
1145 2002-12-05 David Carlton <carlton@math.stanford.edu>
1146
1147 * symtab.c (lookup_symbol_aux_block): New function.
1148 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1149
1150 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1151
1152 * gdbarch.sh: Dump the predicate function and macro values.
1153 (read): Print error on standard error.
1154 * gdbarch.c: Regenerate.
1155
1156 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1157
1158 * Makefile.in (mips_tdep_h): Define.
1159 (mips-tdep.o): Add mips_tdep_h to dependency list.
1160 * mips-tdep.h: New file.
1161 * mips-tdep.c (mips-tdep.h): Include.
1162 (enum mips_abi): Move to mips-tdep.h.
1163 (mips_abi): New function.
1164
1165 2002-12-04 David Carlton <carlton@math.stanford.edu>
1166
1167 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1168
1169 2002-12-04 David Carlton <carlton@math.stanford.edu>
1170
1171 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1172 function.
1173 (lookup_symbol_aux_minsyms): New function.
1174
1175 2002-12-04 J. Brobecker <brobecker@gnat.com>
1176
1177 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1178
1179 2002-12-04 J. Brobecker <brobecker@gnat.com>
1180
1181 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1182 which is an obsolete macro name.
1183
1184 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1187 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1188
1189 2002-12-03 H.J. Lu (hjl@gnu.org)
1190
1191 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1192 (create_breakpoints): Make sure the addr_string field is not
1193 NULL.
1194
1195 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1196
1197 * sparc-nat.c (fetch_inferior_registers)
1198 (store_inferior_registers): Add comment on problem of LWP vs
1199 threads.
1200
1201 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1202 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1203 (lin_lwp_store_registers): Remove.
1204 (init_lin_lwp_ops): Use fetch_inferior_registers
1205 and store_inferior_registers directly.
1206 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1207 (store_inferior_registers): Likewise.
1208 Fix PR gdb/725.
1209
1210 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1211
1212 * frame.h (get_frame_id): Convert to a function.
1213 (null_frame_id, frame_id_p): Declare.
1214 (frame_id_eq, frame_id_inner): Declare.
1215 (frame_id_build): New function.
1216 * frame.c (get_frame_id): Update. Use null_frame_id.
1217 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1218 frame_id_inner.
1219 (null_frame_id, frame_id_p): Define.
1220 (frame_id_eq, frame_id_inner): Define.
1221 (frame_id_build): New function.
1222 * varobj.c (varobj_create): Update.
1223 (varobj_update): Update.
1224 * valops.c (value_assign): Update.
1225 (new_root_variable): Update.
1226 * infrun.c (save_inferior_status): Update.
1227 * breakpoint.c (watch_command_1): Update.
1228
1229 2002-12-03 J. Brobecker <brobecker@gnat.com>
1230
1231 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1232 (SNAP2): Likewise.
1233
1234 2002-12-03 Andrew Cagney <cagney@redhat.com>
1235
1236 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1237 patch.
1238
1239 * PROBLEMS: Mention PR gdb/725.
1240
1241 2002-12-03 Andreas Schwab <schwab@suse.de>
1242
1243 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1244
1245 2002-12-02 Adam Fedor <fedor@gnu.org>
1246 Klee Dienes <kdienes@apple.com>
1247
1248 * objc-lang.c (objc_printstr): Add width arg to match
1249 printstr prototype.
1250 (compare_selectors): Add 'const' to arg types.
1251 (compare_classes): Likewise.
1252 (find_imps): Cast msym pointer to avoid compiler warning.
1253 (print_object_command): Validate the address before
1254 passing it to the print routine.
1255 (find_objc_msgcall_submethod): Change function argument to
1256 return an int.
1257 * objc-lang.h: Add 'extern' to all function declarations.
1258 (value_nsstring): Add declaration.
1259
1260 2002-12-02 J. Brobecker <brobecker@gnat.com>
1261
1262 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1263 Fixes a build failure on HP/UX.
1264
1265 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1266 failure on HP/UX.
1267 (hpread_has_name): Advance declaration to avoid a compilation warning.
1268 (pst_syms_count): Add missing variable type. By change, the compiler
1269 was defaulting to int, which seems a good choice. Fixes a compilation
1270 warning.
1271 (pst_syms_size): Likewise.
1272
1273 2002-12-02 J. Brobecker <brobecker@gnat.com>
1274
1275 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1276 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1277 later to set the proper gdbarch methods depending on the osabi.
1278 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1279
1280 2002-12-02 J. Brobecker <brobecker@gnat.com>
1281
1282 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1283 * osabi.c (gdb_osabi_name): Add strings images for the two new
1284 enum values.
1285 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1286
1287 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1288
1289 * MAINTAINERS (Java): Global maintainers are responible for Java.
1290 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1291 part Java maintainers.
1292
1293 2002-12-02 J. Brobecker <brobecker@gnat.com>
1294
1295 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1296 Fixes a compilation failure on AiX.
1297
1298 2002-12-02 J. Brobecker <brobecker@gnat.com>
1299
1300 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1301 why aix-thread.o is not listed.
1302
1303 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1304
1305 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1306 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1307 * gdbarch.h, gdbarch.c: Re-generate.
1308 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1309 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1310 * config/pa/tm-hppa.h, frame.h: Update.
1311 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1312 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1313 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1314 * cris-tdep.c, alpha-tdep.c: Update.
1315 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1316 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1317 (get_prev_frame): Ditto.
1318
1319 2002-11-30 Andrew Cagney <cagney@redhat.com>
1320
1321 * exec.c (xfer_memory): Replace boolean with int.
1322 * p-exp.y: Use 0 instead of false.
1323 * corelow.c (gdb_check_format): Change return type to int from
1324 boolean.
1325 * utils.c: Don't include <curses.h> or <term.h> first.
1326
1327 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1328
1329 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1330 (m68hc11_register_byte): Remove.
1331 (m68hc11_gdbarch_init): Don't set the above.
1332
1333 2002-11-29 Andrew Cagney <cagney@redhat.com>
1334
1335 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1336 by calling get_selected_frame.
1337 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1338 set_current_frame, create_new_frame, select_frame and
1339 get_current_frame.
1340 * remote-e7000.c (e7000_start_remote): Ditto.
1341 * remote-mips.c (common_open): Ditto
1342 * remote-rdp.c (remote_rdp_open): Ditto.
1343
1344 2002-11-29 Andreas Schwab <schwab@suse.de>
1345
1346 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1347 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1348 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1349 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1350 read_memory_unsigned_integer instead of read_memory_integer when
1351 dealing with addresses and instruction opcodes.
1352 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1353 (m68k_linux_frame_saved_pc): Likewise.
1354
1355 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1356
1357 * stack.c (selected_frame, select_frame): Move from here ...
1358 * frame.c (selected_frame, select_frame): ... to here. Include
1359 "language.h".
1360 * Makefile.in (frame.o): Update dependencies.
1361 * frame.c (get_selected_frame): New function.
1362 * frame.h (get_selected_frame): Declare.
1363 (deprecated_selected_frame): Rename selected_frame.
1364 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1365 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1366 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1367 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1368 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1369 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1370 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1371 * z8k-tdep.c, cli/cli-cmds.c: Update.
1372
1373 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1374
1375 * frame.h (get_selected_block): Add comments.
1376
1377 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1378
1379 * frame.c (pc_notcurrent): New function.
1380 (find_frame_sal): New function.
1381 * frame.h (find_frame_sal): Declare.
1382 (struct symtab_and_line): Add opaque declaration.
1383 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1384 find_pc_line.
1385 (frame_info): Ditto.
1386 * ada-lang.c (find_printable_frame): Ditto.
1387
1388 2002-11-28 J. Brobecker <brobecker@gnat.com>
1389
1390 * configure.in: Check that the pthdebug library is recent enough
1391 before enabling thread support on native AiX.
1392 * configure: Regenerate.
1393
1394 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1395 from the list of object files as it is now appended by configure
1396 if thread support is enabled.
1397 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1398 if thread support is enabled.
1399
1400 2002-11-28 Andrew Cagney <cagney@redhat.com>
1401
1402 * stack.c (get_selected_block): In-line get_current_block.
1403 * frame.h (get_current_block): Delete declaration.
1404 * blockframe.c (get_current_block): Delete function.
1405
1406 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1407
1408 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1409 USE_GENERIC_DUMMY_FRAMES.
1410 * gdbarch.h, gdbarch.c: Regenerate.
1411 * valops.c, frame.c: Update.
1412 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1413 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1414 * config/pa/tm-hppa.h, blockframe.c: Update.
1415 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1416 * m68k-tdep.c, alpha-tdep.c: Ditto.
1417
1418 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1419 * mips-tdep.c: Ditto.
1420
1421 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1422
1423 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1424 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1425 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1426 * gdbarch.c, gdbarch.h: Re-generate.
1427 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1428 (CALL_DUMMY_LOCATION): Delete macro definition.
1429 (PC_IN_CALL_DUMMY): Delete macro definitions.
1430
1431 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1432 default is already generic_pc_in_call_dummy.
1433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1434 * v850-tdep.c (v850_gdbarch_init): Ditto.
1435 * sh-tdep.c (sh_gdbarch_init): Ditto.
1436 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1437 * mips-tdep.c (mips_gdbarch_init): Ditto.
1438 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1440 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1442 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1443 * avr-tdep.c (avr_gdbarch_init): Ditto.
1444
1445 * arm-tdep.c (arm_gdbarch_init): Do not set
1446 use_generic_dummy_frames, default is already 1.
1447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1448 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1449 * v850-tdep.c (v850_gdbarch_init): Ditto.
1450 * sh-tdep.c (sh_gdbarch_init): Ditto.
1451 * s390-tdep.c (s390_gdbarch_init): Ditto.
1452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1453 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1454 * mips-tdep.c (mips_gdbarch_init): Ditto.
1455 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1456 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1457 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1458 * i386-tdep.c (i386_gdbarch_init): Ditto.
1459 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1460 * frv-tdep.c (frv_gdbarch_init): Ditto.
1461 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1462 * cris-tdep.c (cris_gdbarch_init): Ditto.
1463 * avr-tdep.c (avr_gdbarch_init): Ditto.
1464
1465 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1466 call_dummy_location, default is already AT_ENTRY_POINT.
1467 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1468 * v850-tdep.c (v850_gdbarch_init): Ditto.
1469 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1470 * sh-tdep.c (sh_gdbarch_init): Ditto.
1471 * s390-tdep.c (s390_gdbarch_init): Ditto.
1472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1473 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1474 * mips-tdep.c (mips_gdbarch_init): Ditto.
1475 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1477 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1478 * i386-tdep.c (i386_gdbarch_init): Ditto.
1479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1480 * frv-tdep.c (frv_gdbarch_init): Ditto.
1481 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1482 * cris-tdep.c (cris_gdbarch_init): Ditto.
1483 * avr-tdep.c (avr_gdbarch_init): Ditto.
1484 * arm-tdep.c (arm_gdbarch_init): Ditto.
1485 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1486
1487 2002-11-28 Andrew Cagney <cagney@redhat.com>
1488
1489 * frame.h: Update comments on set_current_frame, create_new_frame,
1490 flush_cached_frames, reinit_frame_cache, select_frame and
1491 selected_frame.
1492
1493 2002-11-27 Andrew Cagney <cagney@redhat.com>
1494
1495 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1496 deprecated pc_in_call_dummy function.
1497 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1498 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1499 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1500 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1501 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1502
1503 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1504
1505 * Makefile.in: Remove Tix dependencies.
1506 * acinclude.m4: Ditto.
1507 * aclocal.m4: Ditto.
1508 * configure.in: Ditto.
1509 * configure: Regenerated.
1510
1511 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1512
1513 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1514 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1515 * gdbarch.c: Re-generate.
1516
1517 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1518
1519 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1520 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1521 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1522 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1523 pc_in_call_dummy_at_entry_point.
1524 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1525 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1526 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1527 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1528 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1529 pc_in_call_dummy_on_stack.
1530 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1531 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1532 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1533 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1534 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1535
1536 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1537
1538 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1539 pc_in_call_dummy_before_text_end
1540 (deprecated_pc_in_call_dummy_after_text_end): Rename
1541 pc_in_call_dummy_after_text_end.
1542 (deprecated_pc_in_call_dummy_on_stack): Rename
1543 pc_in_call_dummy_on_stack.
1544 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1545 pc_in_call_dummy_at_entry_point.
1546 * m68k-tdep.c (m68k_gdbarch_init): Update.
1547 * s390-tdep.c (s390_gdbarch_init): Update.
1548 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1549 * vax-tdep.c (vax_gdbarch_init): Update.
1550 * sparc-tdep.c (sparc_gdbarch_init): Update.
1551 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1552 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1553 * i386-tdep.c (i386_gdbarch_init): Update.
1554 * frv-tdep.c (frv_gdbarch_init): Update.
1555 * cris-tdep.c (cris_gdbarch_init): Update.
1556 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1557 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1558 (deprecated_pc_in_call_dummy_after_text_end)
1559 (deprecated_pc_in_call_dummy_on_stack)
1560 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1561 * alpha-tdep.c (alpha_gdbarch_init): Update.
1562
1563 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1564
1565 * acconfig.h (HAVE_PREAD64): Add.
1566 * configure.in: Check for pread64.
1567 * config.in: Regenerated.
1568 * configure: Regenerated.
1569 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1570 * linux-proc.c (linux_proc_xfer_memory): New function.
1571 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1572
1573 2002-11-25 David Carlton <carlton@math.stanford.edu>
1574
1575 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1576 pdi's with no name.
1577
1578 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1579
1580 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1581 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1582
1583 2002-11-25 Jim Blandy <jimb@redhat.com>
1584
1585 * symfile.c (init_objfile_sect_indices): New function.
1586 (default_symfile_offsets): Move the section-index-initializing
1587 stuff into init_objfile_sect_indices, and call that.
1588
1589 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1590 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1591
1592 * symfile.c (syms_from_objfile): Adjust indentation.
1593
1594 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1595 || info_verbose isn't true.
1596
1597 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1598
1599 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1600 default to get_frame_base.
1601 * gdbarch.h, gdbarch.c: Regenerate.
1602 * arch-utils.c (default_frame_address): Delete function.
1603 * arch-utils.h (default_frame_address): Delete declaration
1604
1605 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1606
1607 * varobj.c (find_frame_addr_in_frame_chain):
1608 Use get_frame_base instead of FRAME_FP,
1609 obvious fix.
1610
1611 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1612
1613 * frame.h (FRAME_FP): Delete macro.
1614 (get_frame_base): New function declaration.
1615 * frame.c (get_frame_base): New function.
1616 (get_frame_id): Use ->frame.
1617 (frame_find_by_id): Rewrite to use get_frame_id.
1618 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1619 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1620 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1621 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1622 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1623 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1624 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1625
1626 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1627
1628 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1629
1630 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1631
1632 * frame.c (set_unwind_by_pc): Revert change below, use
1633 PC_IN_CALL_DUMMY.
1634 (get_prev_frame): Ditto.
1635
1636 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1637
1638 * dummy-frame.c (pc_in_dummy_frame): New function.
1639 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1640 (find_dummy_frame): Update comment.
1641 (generic_pop_current_frame): Use get_frame_type.
1642 * dummy-frame.h (pc_in_dummy_frame): Declare.
1643 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1644 (create_new_frame): Use pc_in_dummy_frame.
1645 (get_prev_frame): Use pc_in_dummy_frame.
1646 (frame_saved_regs_register_unwind): Use get_prev_frame.
1647 (deprecated_generic_get_saved_register): Use get_prev_frame.
1648
1649 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1650
1651 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1652 from here ...
1653 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1654 (varobj_create): Note that frame ID should be used.
1655 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1656
1657 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1658
1659 * breakpoint.c: Include "gdb_assert.h".
1660 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1661 not being used.
1662 * Makefile.in (breakpoint.o): Update dependencies.
1663 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1664 deprecated_frame_in_dummy.
1665 * stack.c (print_frame_info_base): Ditto.
1666 (frame_info): Ditto.
1667 (print_frame_info_base): Ditto. Delete dead code.
1668
1669 2002-11-23 Andreas Schwab <schwab@suse.de>
1670
1671 * Makefile.in (m68k_tdep_h): Define.
1672 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1673 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1674 * m68k-tdep.c: Move register number enum ...
1675 * m68k-tdep.h: ... to this new file and rename the constants from
1676 E_* to M68K_*. All uses changed.
1677 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1678 * abug-rom.c: Include "m68k-tdep.h". Use
1679 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1680 * cpu32bug-rom.c: Likewise.
1681 * dbug-rom.c: Likewise.
1682 * m68k-tdep.c: Likewise.
1683 * m68klinux-nat.c: Likewise.
1684 * remote-est.c: Likewise.
1685 * rom68k-rom.c: Likewise.
1686 * config/m68k/tm-linux.h: Likewise.
1687
1688 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1689
1690 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1691 dummy frame initialization code.
1692 * mips-tdep.c (mips_gdbarch_init): Ditto.
1693
1694 2002-11-22 Christopher Faylor <cgf@redhat.com>
1695
1696 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1697 attach will hang.
1698
1699 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1700
1701 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1702 to default_frame_address.
1703 * gdbarch.h, gdbarch.c: Re-generate.
1704
1705 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1706 or frame_locals_address to default_frame_address.
1707 * m68k-tdep.c (m68k_gdbarch_init): Update.
1708 * i386-tdep.c (i386_gdbarch_init): Update.
1709 * frv-tdep.c (frv_gdbarch_init): Update.
1710 * sh-tdep.c (sh_gdbarch_init): Update.
1711 * v850-tdep.c (v850_gdbarch_init): Update.
1712 * sparc-tdep.c (sparc_gdbarch_init): Update.
1713 * mips-tdep.c (mips_gdbarch_init): Update.
1714 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1715 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1717
1718 * cris-tdep.c (cris_frame_args_address): Delete function.
1719 (cris_frame_locals_address): Delete function.
1720 (cris_gdbarch_init): Do not set frame_args_address or
1721 frame_locals_address.
1722
1723 2002-11-22 Michael Snyder <msnyder@redhat.com>
1724
1725 * thread-db.c (thread_db_load): Tell the user what's going on
1726 if dlopen fails on libthread_db.
1727
1728 2002-11-23 Andreas Schwab <schwab@suse.de>
1729
1730 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1731 invariant return values.
1732
1733 2002-11-22 Andreas Schwab <schwab@suse.de>
1734
1735 * valops.c (value_slice): Move declaration of `offset' to avoid
1736 warning.
1737
1738 2002-11-22 Christopher Faylor <cgf@redhat.com>
1739
1740 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1741 (struct so_stuff): Add end_addr field.
1742 (register_loaded_dll): Calculate and store end address of loaded dll.
1743 (solib_address): New function.
1744 (child_solib_loaded_library_pathname): Pass carefully constructed
1745 section info to safe_symbol_file_add rather than ignoring it.
1746 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1747 DLL is loaded.
1748 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1749 (child_create_inferior): Fix a compiler warning.
1750 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1751 (solib_address): Declare new function.
1752
1753 2002-11-22 Andreas Schwab <schwab@suse.de>
1754
1755 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1756 and FPS registers.
1757
1758 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * maint.c (_initialize_maint_cmds): Fix typo. From
1761 Francesco Potorti` <pot@gnu.org>.
1762
1763 2002-11-21 Andrew Cagney <cagney@redhat.com>
1764
1765 * mips-tdep.c (mips_dump_tdep): Delete references to
1766 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1767 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1768 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1769 * printcmd.c (build_address_symbolic): Delete calls to
1770 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1771 (address_info): Ditto.
1772 Fix PR gdb/773.
1773
1774 2002-11-19 Klee Dienes <kdienes@apple.com>
1775 Adam Fedor <fedor@gnu.org>
1776
1777 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1778 the ability to explicitly specify the quote characters and word
1779 break characters; if NULL is specified for either, use the old
1780 behavior of using the characters used by the completer.
1781 (skip_chars): New function. Convenience wrapper around
1782 skip_quoted_chars to provide the original skip_chars behavior.
1783 * completer.h (skip_quoted_chars): Add prototype.
1784
1785 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1786
1787 Problems reported by Paul Eggert.
1788 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1789
1790 2002-11-19 Andreas Schwab <schwab@suse.de>
1791
1792 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1793 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1794 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1795 (m68k_linux_frame_saved_pc): Move to ...
1796 * m68klinux-tdep.c: ... here. New file.
1797 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1798 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1799
1800 2002-11-19 Adam Fedor <fedor@gnu.org>
1801
1802 * objc-exp.y: Revert to old skip_quoted usage.
1803
1804 2002-11-19 Adam Fedor <fedor@gnu.org>
1805
1806 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1807 (objc_lang_h): Define.
1808 (YYFILES): Add objc-exp.tab.c.
1809 (local-maintainer-clean): Remove objc-exp.tab.c.
1810 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1811
1812 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1813
1814 * p-exp.y (typecast rule): Add automatic dereference of
1815 pascal classes if needed.
1816 (THIS): Set current_type.
1817 Automatically dereference pascal classes.
1818 (typebase rule): Add ^typebase recognition.
1819
1820 2002-11-18 Adam Fedor <fedor@gnu.org>
1821
1822 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1823 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1824 (op_name): Handle OP_OBJC_SELF.
1825 * Makefile.in (expprint.o): Add additional depends.
1826
1827 2002-11-18 Adam Fedor <fedor@gnu.org>
1828
1829 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1830 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1831 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1832 * objc-exp.y: Likewise.
1833
1834 2002-11-18 Adam Fedor <fedor@gnu.org>
1835
1836 * gdb/parser-defs.h: (struct objc_class_str): New structure
1837 for parsing ObjC classes.
1838
1839 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1840
1841 * stack.c (frame_relative_level): Copy function from here ...
1842 * frame.c (frame_relative_level): ...to here.
1843
1844 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1845
1846 * frame.h (enum frame_type): Define.
1847 (get_frame_type): Declare.
1848 (struct frame_info): Add field `type'. Delete field
1849 signal_handler_caller.
1850 (deprecated_set_frame_signal_handler_caller): Declare.
1851 * frame.c (get_frame_type): New function.
1852 (deprecated_set_frame_type): New function.
1853 (create_new_frame): Set the frame's type.
1854 (get_prev_frame): Similar.
1855 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1856 * s390-tdep.c: Ditto.
1857 * m68klinux-nat.c: Ditto.
1858 * ns32k-tdep.c: Ditto.
1859 * x86-64-linux-tdep.c: Ditto.
1860 * vax-tdep.c: Ditto.
1861 * rs6000-tdep.c: Ditto.
1862 * ppc-linux-tdep.c: Ditto.
1863 * i386-interix-tdep.c: Ditto.
1864 * mips-tdep.c: Ditto.
1865 * m68k-tdep.c: Ditto.
1866 * hppa-tdep.c: Ditto.
1867 * ia64-tdep.c: Ditto.
1868 * cris-tdep.c: Ditto.
1869 * arm-tdep.c: Ditto.
1870 * alpha-tdep.c: Ditto.
1871 * i386-tdep.c: Ditto.
1872 * stack.c: Ditto.
1873 * ada-lang.c: Ditto.
1874 * blockframe.c: Update.
1875 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1876 deprecated_set_frame_type instead of signal_handler_caller.
1877 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1878 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1879 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1880
1881 2002-11-18 Klee Dienes <kdienes@apple.com>
1882
1883 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1884
1885 2002-11-18 Klee Dienes <kdienes@apple.com>
1886
1887 * buildsym.c (pop_context): Add comment.
1888
1889 2002-11-18 Klee Dienes <kdienes@apple.com>
1890
1891 * buildsym.h (pop_context): Convert to function, defined in
1892 buildsym.c.
1893 * buildsym.c: Include gdb_assert.h.
1894 (pop_context): Implement as C function. Add check for stack
1895 underflow.
1896 * dbxread.c (process_one_symbol): Complain and stop processing
1897 that symbol if we are already at the top of the context stack for
1898 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1899 when processing N_RBRAC.
1900
1901 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1904 define.
1905 (struct target_waitstatus): Add opaque definition.
1906 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1907 * exec.c (init_exec_ops): Likewise.
1908 * fork-child.c (clone_and_follow_inferior): Remove.
1909 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1910 * inferior.h (clone_and_follow_inferior): Remove prototype.
1911 * infrun.c (follow_fork_mode_both): Remove.
1912 (follow_fork_mode_kind_names): Remove commented out "both".
1913 (follow_inferior_fork): Remove follow_fork_mode_both support.
1914 * inftarg.c (child_clone_and_follow_inferior): Remove.
1915 (child_post_follow_inferior_by_clone): Remove.
1916 (init_child_ops): Don't set to_clone_and_follow_inferior
1917 or to_post_follow_inferior_by_clone.
1918 * target.c (default_clone_and_follow_inferior): Remove.
1919 (cleanup_target): Don't set to_clone_and_follow_inferior
1920 or to_post_follow_inferior_by_clone.
1921 (find_default_clone_and_follow_inferior): Remove.
1922 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1923 (debug_to_clone_and_follow_inferior): Remove.
1924 (debug_to_post_follow_inferior_by_clone): Remove.
1925 (setup_target_debug): Don't set to_clone_and_follow_inferior
1926 or to_post_follow_inferior_by_clone.
1927 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1928 and to_post_follow_inferior_by_clone.
1929 (child_clone_and_follow_inferior): Remove prototype.
1930 (child_post_follow_inferior_by_clone): Remove prototype.
1931 (target_clone_and_follow_inferior): Remove macro.
1932 (target_post_follow_inferior_by_clone): Remove macro.
1933 (find_default_clone_and_follow_inferior): Remove prototype.
1934
1935 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1936
1937 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1938 inferior_has_vforked, and inferior_has_execd instead of
1939 target_has_forked, target_has_vforked, and target_has_execd.
1940 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1941 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1942 (CHILD_WAIT): Define.
1943 (child_wait): Add prototype.
1944 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1945 Add prototype.
1946 (hpux_has_vforked): Likewise, from child_has_vforked.
1947 (hpux_has_execd): Likewise, from child_has_execd.
1948 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1949 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1950 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1951 and hpux_has_syscall_event instead of the target hooks.
1952 * infrun.c (inferior_has_forked, inferior_has_vforked)
1953 (inferior_has_execd): New functions.
1954 * inftarg.c (not_same_real_pid): Remove.
1955 (child_wait): Remove references to not_same_real_pid,
1956 target_has_forked, target_has_vforked, target_has_execd,
1957 and target_has_syscall_event.
1958 (child_has_forked, child_has_vforked, child_has_execd)
1959 (child_has_syscall_event): Remove.
1960 (init_child_ops): Remove references to child_has_forked,
1961 child_has_vforked, child_has_execd, and child_has_syscall_event.
1962 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1963 (hpux_has_vforked): Likewise, from child_has_vforked.
1964 (hpux_has_execd): Likewise, from child_has_execd.
1965 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1966 * target.c (cleanup_target): Remove references to
1967 to_has_forked, to_has_vforked, to_has_execd, and
1968 to_has_syscall_event.
1969 (update_current_target): Likewise.
1970 (setup_target_debug): Likewise.
1971 (debug_to_has_forked): Remove.
1972 (debug_to_has_vforked): Remove.
1973 (debug_to_has_execd): Remove.
1974 (debug_to_has_syscall_event): Remove.
1975 * target.h (struct target_ops): Remove to_has_forked.
1976 to_has_vforked, to_has_execd, and to_has_syscall_event.
1977 (child_has_forked, child_has_vforked, child_has_execd)
1978 (child_has_syscall_event): Remove prototypes.
1979 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1980 prototypes.
1981 (target_has_forked, target_has_vforked, target_has_execd)
1982 (target_has_syscall_event): Remove macros.
1983
1984 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1987 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1988 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1989 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1990 * target.c (cleanup_target): Remove reference to
1991 to_can_follow_vfork_prior_to_exec.
1992 (update_current_target): Likewise.
1993 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1994 (setup_target_debug): Remove reference to
1995 to_can_follow_vfork_prior_to_exec.
1996 * target.h (struct target_ops): Remove
1997 to_can_follow_vfork_prior_to_exec.
1998 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1999 (target_can_follow_vfork_prior_to_exec): Remove definition.
2000 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2001 define.
2002 * infrun.c (follow_vfork_when_exec): Remove.
2003 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2004 (follow_exec): Likewise.
2005 (handle_inferior_event): Likewise.
2006 (keep_going): Likewise.
2007
2008 2002-11-15 Andrew Cagney <cagney@redhat.com>
2009
2010 * frame.c (generic_unwind_get_saved_register): Make static.
2011 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2012 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2013 defaults to generic_unwind_get_saved_register.
2014 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2015 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2016 * frv-tdep.c (frv_gdbarch_init): Ditto.
2017 * i386-tdep.c (i386_gdbarch_init): Ditto.
2018 * s390-tdep.c (s390_gdbarch_init): Ditto.
2019 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2020 * v850-tdep.c (v850_gdbarch_init): Ditto.
2021 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2022 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2023 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2024
2025 2002-11-15 Andrew Cagney <cagney@redhat.com>
2026
2027 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2028 i386-tdep.c.
2029
2030 2002-11-15 Andrew Cagney <cagney@redhat.com>
2031
2032 * frame.h (sigtramp_saved_pc): Delete declaration.
2033 * blockframe.c (sigtramp_saved_pc): Delete function.
2034 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2035 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2036 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2037 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2038
2039 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2040
2041 * frame.c (frame_pc_unwind): New function.
2042 (frame_saved_regs_pc_unwind): New function.
2043 (frame_register_unwind): Pass unwind_cache instead of
2044 register_unwind_cache.
2045 (set_unwind_by_pc): Add unwind_pc parameter, set.
2046 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2047 (get_prev_frame): Ditto.
2048 * frame.h (frame_pc_unwind_ftype): Declare.
2049 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2050 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2051 (frame_pc_unwind): Declare.
2052 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2053 (struct dummy_frame): Add comment mentioning that values are for
2054 previous frame.
2055 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2056 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2057 (generic_file_frame_chain_valid): Ditto.
2058 * stack.c (frame_info): Ditto.
2059
2060 2002-11-15 David Carlton <carlton@math.stanford.edu>
2061
2062 * linespec.c (locate_first_half): New function.
2063 (decode_line_1): Move code into locate_first_half.
2064
2065 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2066
2067 * complaints.h: Add comment explaining how to eliminate a
2068 deprecated_complain call.
2069 * complaints.h: Fix spelling errors.
2070
2071 2002-11-15 David Carlton <carlton@math.stanford.edu>
2072
2073 * printcmd.c: Remove #include "disasm.h".
2074
2075 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2076
2077 * frame.h: Move the most relevant interface functions to the start
2078 of the file.
2079
2080 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2081
2082 * regcache.h (deprecated_registers): Rename registers.
2083 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2084 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2085 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2086 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2087 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2088 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2089 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2090 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2091 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2092 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2093 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2094 * v850ice.c: Update.
2095
2096 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2097
2098 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2099 NULL buffer.
2100
2101 2002-11-13 Andrew Cagney <cagney@redhat.com>
2102
2103 * regcache.h (deprecated_read_register_bytes): Rename
2104 read_register_bytes.
2105 (deprecated_write_register_bytes): Rename write_register_bytes.
2106 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2107 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2108 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2109 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2110 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2111 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2112 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2113 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2114 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2115 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2116 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2117 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2118 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2119 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2120
2121 2002-11-13 Jim Blandy <jimb@redhat.com>
2122
2123 * findvar.c (read_var_value): Doc fix.
2124
2125 2002-11-13 Andrew Cagney <cagney@redhat.com>
2126
2127 * regcache.c (struct regcache): Replace passthough_p with
2128 readonly_p.
2129 (regcache_xmalloc): Initialize readonly_p.
2130 (build_regcache): Initialize readonly_p.
2131 (regcache_save): New function.
2132 (regcache_restore): New function.
2133 (regcache_cpy): Re-implement using regcache_save and
2134 regcache_restore.
2135 (regcache_raw_read): Update.
2136 (regcache_cooked_read): When a read-only cache, checked for cached
2137 pseudo register values.
2138 (regcache_raw_write): Assert that the cache is not read-only.
2139 Remove code handling a non-passthrough cache.
2140 * regcache.h (regcache_save): Declare.
2141 (regcache_restore): Declare.
2142
2143 2002-11-13 Andrew Cagney <cagney@redhat.com>
2144
2145 * regcache.c (struct regcache_descr): Add fields
2146 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2147 (init_legacy_regcache_descr): Compute the size of a cooked
2148 register cache and then assign that to sizeof_raw_registers. Set
2149 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2150 (init_legacy_regcache_descr): Ditto.
2151
2152 2002-11-13 Andrew Cagney <cagney@redhat.com>
2153
2154 * regcache.c (register_buffer): Move to near start of file, update
2155 description.
2156 (regcache_raw_read): Use.
2157 (regcache_raw_write): Use.
2158 (struct regcache): Rename raw_registers to registers and
2159 raw_register_valid_p to register_valid_p.
2160 (regcache_xmalloc): Update.
2161 (regcache_xfree): Update.
2162 (register_buffer): Update.
2163 (regcache_cpy): Update.
2164 (regcache_cpy_no_passthrough): Update.
2165 (regcache_valid_p): Update.
2166 (deprecated_grub_regcache_for_registers): Update.
2167 (deprecated_grub_regcache_for_register_valid): Update.
2168 (set_register_cached): Update.
2169 (regcache_raw_write): Update.
2170
2171 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2172
2173 * p-exp.y (name_not_typename): Use copy_name to
2174 set current_type variable for fields of THIS.
2175
2176 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2177
2178 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2179 * monitor.c (init_base_monitor_ops): Likewise.
2180 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2181 * remote-array.c (init_array_ops): Likewise.
2182 * remote-e7000.c (init_e7000_ops): Likewise.
2183 * remote-es.c (init_es1800_ops): Likewise.
2184 (init_es1800_child_ops): Likewise.
2185 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2186 * remote-sim.c (init_gdbsim_ops): Likewise.
2187 * remote-st.c (init_st2000_ops): Likewise.
2188 * sol-thread.c (init_sol_core_ops): Likewise.
2189 (init_sol_thread_ops): Likewise.
2190 * v850ice.c (init_850ice_ops): Likewise.
2191 * win32-nat.c (init_child_ops): Likewise.
2192 * wince.c (init_child_ops): Likewise.
2193
2194 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2195
2196 * utils.c (gdb_realpath): Make rp a constant pointer.
2197
2198 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2199
2200 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2201 a constant buffer; cannonicalize_file_name(); realpath() with a
2202 pathconf() defined buffer, xstrdup().
2203
2204 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2205
2206 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2207 to hang2.C; hang3.c to hang3.C.
2208
2209 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2210
2211 * findvar.c (read_var_value): Reenable TLS code.
2212
2213 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2214 Jim Blandy <jimb@redhat.com>
2215
2216 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2217 * target.c (update_current_target): Add
2218 to_get_thread_local_address.
2219 * target.h (to_get_thread_local_address): Export.
2220 (target_get_thread_local_address): Define.
2221 (target_get_thread_local_address_p): Define.
2222 * thread-db.c: Include solib-svr4.h.
2223 (td_thr_tls_get_addr_p): Define.
2224 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2225 (thread_db_get_thread_local_address): New function.
2226 (init_thread_db_ops): Initialize to_get_thread_local_address.
2227 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2228 * configure: Regenerate.
2229 * config.in: Regenerate.
2230
2231 2002-11-11 David Carlton <carlton@math.stanford.edu>
2232
2233 * linespec.c (set_flags): New function.
2234 (decode_line_1): Move code into set_flags.
2235
2236 2002-11-11 David Carlton <carlton@math.stanford.edu>
2237
2238 * linespec.c (decode_line_1): Move chunks of code to separate
2239 functions.
2240 (initialize_defaults): New function.
2241 (decode_indirect): New function.
2242
2243 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2244
2245 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2246 instead of void_code_ptr.
2247 (sigtramp_saved_pc): Ditto.
2248
2249 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2250 i386_fp_regnum_p.
2251
2252 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2253
2254 * gdbtypes.h (struct main_type): Move artificial flag out of
2255 loc. New member of ``struct field'' named static_kind. Reduce
2256 overloaded meaning of bitsize.
2257 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2258 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2259 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2260
2261 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2262 new fields.
2263 (template_to_fixed_record_type, template_to_static_fixed_type)
2264 (to_record_with_fixed_variant_part): Likewise.
2265 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2266 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2267 * dwarfread.c (struct_type, enum_type): Likewise.
2268 * hpread.c (hpread_read_enum_type)
2269 (hpread_read_function_type, hpread_read_doc_function_type)
2270 (hpread_read_struct_type): Likewise.
2271 * mdebugread.c (parse_symbol): Likewise.
2272
2273 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2274
2275 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2276 * stack.c (print_frame_info_base): Update.
2277 (print_frame_info_base, frame_info): Update.
2278 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2279 (sparc_frame_saved_pc): Update.
2280 * ada-lang.c (find_printable_frame): Update.
2281 * breakpoint.c (deprecated_frame_in_dummy): Update.
2282
2283 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2284
2285 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2286 defined.
2287 (regmap): Extend to cover all registers.
2288 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2289 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2290 definitions.
2291 (fetch_register, sore_register): Simplify.
2292 (old_fetch_inferior_registers, old_store_inferior_registers):
2293 Remove functions.
2294 (cannot_fetch_register, cannot_store_register): Change
2295 implementation to use regmap array to decide which registers
2296 cannot be fetched/stored. This removes $orig_eax from the
2297 registers that cannot be fetched/stored.
2298 (fetch_inferior_registers): Call fetch_register directly instead
2299 of calling old_fetch_inferior_registers.
2300 (store_inferior_registers): Call store_register directly instead
2301 of calling old_store_inferior_registers.
2302 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2303 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2304 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2305
2306 2002-11-09 Klee Dienes <kdienes@apple.com>
2307
2308 * i387-tdep.c (i387_supply_register): When called with NULL as a
2309 buffer, mark the register as not provided (to mirror the behavior
2310 of supply_register).
2311 (i387_supply_fxsave): Ditto.
2312 (i387_supply_fsave): Ditto (inherits the behavior from
2313 i387_supply_register).
2314
2315 2002-11-09 Klee Dienes <kdienes@apple.com>
2316
2317 * blockframe.c (sigtramp_saved_pc): Use
2318 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2319 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2320 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2321
2322 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2323
2324 * frame.c (get_prev_frame): Test prev_p to identify a previously
2325 unwound frame. Initialize prev_p.
2326 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2327 comment.
2328
2329 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2330
2331 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2332 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2333 more comments. Zap dead code.
2334
2335 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2336
2337 * infcmd.c (print_vector_info, print_float_info): Move code that
2338 checks whether the target has any registers and whether there is a
2339 selected frame up, such that it is also used if a target provides
2340 multi-arch definitions of these functions.
2341
2342 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2343
2344 * Makefile.in (DESTDIR): Define.
2345 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2346 prefix.
2347
2348 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2349 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2350
2351 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2352
2353 * i386-linux-tdep.c: Include "reggroups.h".
2354 (i386_linux_register_reggroup_p): New function.
2355 (i386_linux_init_abi): Set register_reggroup_p to
2356 i386_linux_register_reggroup_p.
2357 * i386-tdep.h (i386_register_reggroup_p): Declare.
2358 * i386-tdep.c: Include "reggroups.h".
2359 (i386_init_reggroups): New function.
2360 (i386_add_reggroups): New function.
2361 (i386_register_reggroup_p): New function.
2362 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2363 (_initialize_i386_tdep): Call i386_init_reggroups.
2364 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2365 specific reggroups.
2366
2367 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2368
2369 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2370 request that's available in *BSD.
2371
2372 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2373
2374 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2375 FDOFF_REGNUM.
2376
2377 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2378
2379 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2380 * dummy-frame.c (find_dummy_frame): Rename
2381 generic_find_dummy_frame, make static. Return the dummy frame
2382 instead of the regcache.
2383 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2384 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2385 (dummy_frame_register_unwind): Rename
2386 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2387 * dummy-frame.h (dummy_frame_register_unwind): Rename
2388 generic_call_dummy_register_unwind.
2389
2390 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2391
2392 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2393 except the inclusion of "i386/tm-i386.h", to...
2394 * config/i386/nm-i386v42mp.h: ...here.
2395 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2396
2397 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2398
2399 * Makefile.in (frame.o): Update dependencies.
2400 * blockframe.c (current_frame, frame_obstack_alloc)
2401 (frame_saved_regs_zalloc, get_current_frame)
2402 (set_current_frame, create_new_frame)
2403 (set_unwind_by_pc, get_next_frame)
2404 (flush_cached_frames, reinit_frame_cache)
2405 (frame_saved_regs_register_unwind)
2406 (deprecated_generic_get_saved_register)
2407 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2408 (_initialize_blockframe): Move frame code from here...
2409 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2410 "annotate.h" and "dummy-frame.h".
2411 (_initialize_frame): New function.
2412
2413 2002-11-08 Jim Blandy <jimb@redhat.com>
2414
2415 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2416 when we finish a function a context.
2417 * buildsym.h (outermost_context_p): New macro.
2418 (Bug analyzed by David Edelsohn.)
2419
2420 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2421
2422 * blockframe.c: Include "dummy-frame.h".
2423 (struct dummy_frame, dummy_frame_stack)
2424 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2425 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2426 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2427 (generic_save_call_dummy_addr, generic_pop_current_frame)
2428 (generic_pop_dummy_frame, generic_fix_call_dummy)
2429 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2430 dummy frame code from here...
2431 * dummy-frame.c: ...to here. New file.
2432 * dummy-frame.h: New file.
2433 (generic_call_dummy_register_unwind): Declare.
2434 (generic_find_dummy_frame): Declare.
2435 * Makefile.in (SFILES): Add dummy-frame.c.
2436 (dummy-frame.o): Specify dependencies.
2437 (dummy_frame_h): Define.
2438 (COMMON_OBS): Add dummy-frame.o.
2439 (blockframe.o): Update dependencies.
2440
2441 2002-11-08 Jim Blandy <jimb@redhat.com>
2442
2443 * dwarf2read.c (read_func_scope): Restore local_symbols and
2444 param_symbols after we finish the function context. (Based on a
2445 patch from David Edelsohn.)
2446
2447 2002-11-08 David Carlton <carlton@math.stanford.edu>
2448
2449 * linespec.c (symbol_found): New function.
2450 (minsym_found): New function.
2451 (decode_line_1): Separate out some code into separate functions.
2452
2453 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2454
2455 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2456 the benefit of the interix target.
2457 * i386-tdep.h (i386_frameless_signal_p): Declare.
2458
2459 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2460
2461 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2462 declaration that snuck in from change below.
2463
2464 2002-11-06 Andrew Cagney <cagney@redhat.com>
2465
2466 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2467 all callers.
2468 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2469 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2470 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2471 (i386_mxcsr_regnum_p): new function. Use instead of
2472 MXCSR_REGNUM_P.
2473 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2474 (i386_sse_regnum_p): Declare.
2475 (i386_mxcsr_regnum_p): Declare.
2476 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2477 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2478 (IS_FP_REGNUM): Update definition.
2479 (IS_FPU_CTRL_REGNUM): Update definition..
2480 (IS_SSE_REGNUM): Update definition..
2481 * i386v-nat.c (register_u_addr): Update.
2482 * go32-nat.c (fetch_register): Update.
2483 (store_register): Update.
2484
2485 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2486
2487 Preparation work to convert the hppa targets to multiarch partial.
2488
2489 * hppa-tdep.c: Add new functions replacing macro bodies from
2490 config/pa/tm-hppa.h. These function will be used to initialize
2491 the gdbarch structure. Import some comments from tm-hppa.h,
2492 and place them where appropriate, to avoid loosing them when
2493 we cleanup this file.
2494 (hppa_reg_struct_has_addr): New function.
2495 (hppa_inner_than): New function.
2496 (hppa_stack_align): New function.
2497 (hppa_pc_requires_run_before_use): New function.
2498 (hppa_instruction_nullified): New function.
2499 (hppa_register_byte): New function.
2500 (hppa_register_virtual_type): New function.
2501 (hppa_store_struct_return): New function.
2502 (hppa_cannot_store_register): New function.
2503 (hppa_frame_args_address): New function.
2504 (hppa_frame_locals_address): New function.
2505 (hppa_smash_text_address): New function.
2506 (hppa_coerce_float_to_double): New function. Requires the inclusion
2507 of "language.h".
2508
2509 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2510
2511 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2512 gdbarch-eligible macro to a call to the new associated function
2513 created in hppa-tdep.c.
2514 (INNER_THAN): Likewise.
2515 (STACK_ALIGN): Likewise.
2516 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2517 (INSTRUCTION_NULLIFIED): Likewise.
2518 (REGISTER_BYTE): Likewise.
2519 (REGISTER_VIRTUAL_TYPE): Likewise.
2520 (STORE_STRUCT_RETURN): Likewise.
2521 (CANNOT_STORE_REGISTER): Likewise.
2522 (FRAME_ARGS_ADDRESS): Likewise.
2523 (FRAME_LOCALS_ADDRESS): Likewise.
2524 (SMASH_TEXT_ADDRESS): Likewise.
2525 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2526 (ABOUT_TO_RETURN): Delete, as no longer used.
2527
2528 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2529
2530 * printcmd.c (disassemble_command): Remove obsolete function.
2531 (_initialize_printcmd): Do not create disassemble command here.
2532 * cli/cli-cmds.c (disassemble_command): New function. Implements
2533 disassemble command.
2534 (init_cli_cmds): Create disassemble command here instead.
2535
2536 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2537
2538 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2539
2540 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2541
2542 * regcache.h (regcache_cooked_read_using_offset_hack)
2543 (regcache_cooked_write_using_offset_hack): Delete declarations.
2544 (register_changed): Delete declaration.
2545 * regcache.c (regcache_cooked_read_using_offset_hack)
2546 (regcache_cooked_write_using_offset_hack): Delete functions.
2547 (cooked_xfer_using_offset_hack): Delete function.
2548 (register_changed): Delete function.
2549
2550 2002-11-07 Jim Blandy <jimb@redhat.com>
2551
2552 * macroscope.c: #include "complaints.h".
2553 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2554 but not in the macro table.
2555 * Makefile.in (macroscope.o): Record dependency.
2556
2557 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2558
2559 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2560
2561 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2562
2563 * regcache.c (deprecated_registers_fetched): Update.
2564 * regcache.h (deprecated_registers_fetched): Rename
2565 registers_fetched.
2566 * remote-vxsparc.c (vx_read_register): Update.
2567 * remote-vxmips.c (vx_read_register): Update.
2568 * remote-vx68.c (vx_read_register): Update.
2569 * irix5-nat.c (fetch_core_registers): Update.
2570 * mipsm3-nat.c (fetch_inferior_registers): Update.
2571 * sun3-nat.c (fetch_inferior_registers): Update.
2572 * symm-nat.c (fetch_inferior_registers): Update.
2573 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2574 (fetch_core_registers): Update.
2575 (fetch_kcore_registers): Update.
2576 * mips-nat.c (fetch_inferior_registers): Update.
2577 * corelow.c (get_core_registers): Update.
2578 * a68v-nat.c (fetch_inferior_registers): Update.
2579
2580 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2581
2582 Put in place the framework necessary for multiarching the hppa targets.
2583 * hppa-tdep.c (hppa_gdbarch_init): New function.
2584 (hppa_dump_tdep): New function.
2585 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2586 tdep structure dumper.
2587 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2588 until the multi-arching conversion has partially been completed.
2589
2590 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2591
2592 * valops.c (value_assign): Merge lval_register case into
2593 lval_reg_frame_relative. Use frame_register and
2594 regcache_cooked_write instead of get_saved_register and
2595 write_register_bytes. After flushing the register cache, try to
2596 re-select the selected frame.
2597
2598 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2599
2600 * regcache.h (deprecated_register_valid): Rename register_valid.
2601 * regcache.c: Update.
2602 * ia64-aix-nat.c: Update.
2603 * i386gnu-nat.c: Update.
2604 * alpha-nat.c: Update.
2605 * sparc-nat.c: Update.
2606 * lynx-nat.c: Update.
2607 * remote-mips.c: Update.
2608
2609 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2610
2611 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2612 to end of file, to be more consistent with the pratice followed
2613 by other targets.
2614
2615 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2616
2617 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2618 (print_float_info): Print registers in float_reggroup.
2619 (print_vector_info): Print registers in vector_reggroup.
2620 (default_print_registers_info): When all, print registers in
2621 all_reggroup. Otherwize, print registers in general_reggroup.
2622 (registers_info): Rewrite. Add support for register groups.
2623 Eliminate a goto.
2624
2625 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2626
2627 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2628 ages.
2629 (symtab_symbol_info): Remove eons old ifdeffed out code.
2630 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2631 command.
2632
2633 2002-11-06 Theodore A. Roth <troth@openavr.org>
2634
2635 * c-exp.y: Add missing semi-colons.
2636 * f-exp.y: Add missing semi-colons.
2637 * m2-exp.y: Add missing semi-colons.
2638 * p-exp.y: Add missing semi-colons.
2639 Add empty action to start rule to avoid a type clash error when
2640 building with bison >= 1.50.
2641
2642 2002-11-06 Jim Blandy <jimb@redhat.com>
2643
2644 * macrotab.h (struct macro_source_file): Doc fix.
2645
2646 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2647
2648 * varobj.c (child_exists, cplus_number_of_children): Change
2649 STREQ macro references to strcmp.
2650 (cplus_name_of_child): Change code to handle the fact that
2651 fields are not necessarily contiguous with regards to their
2652 access control. This is a fix for PR gdb/792.
2653
2654 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2655
2656 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2657 * gdbarch.h, gdbarch.c: Regnerate.
2658 * frame.h (frame_register): Declare.
2659 * frame.c (frame_register): New function.
2660 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2661 GET_SAVED_REGISTER, otherwize call
2662 generic_unwind_get_saved_register.
2663 (frame_register_read): Use frame_register instead of
2664 get_saved_register.
2665
2666 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2667
2668 From Jim Ingham <jingham@apple.com>:
2669 * event-top.c (gdb_disable_readline): New function.
2670 (_initialize_event_loop): Move comment.
2671
2672 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2673
2674 * event-loop.c (start_event_loop): Add comment.
2675 Update copyright.
2676
2677 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2678
2679 * infcmd.c (default_print_registers_info): Do not call
2680 PRINT_REGISTER_HOOK.
2681
2682 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2683
2684 * sparc-tdep.c (sparc_print_register_hook): Make static.
2685 (sparc_print_registers_info): New function.
2686 (sparc_do_registers_info): New function.
2687 (sparclet_print_registers_info): New function.
2688 (sparclet_do_registers_info): New function.
2689 (do_sparc_print_registers_info): New function.
2690 (sparc_print_registers): New static function, clone of infcmd.c's
2691 default_print_registers_info.
2692 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2693 (sparclet_do_registers_info): Declare.
2694 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2695 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2696 Re-define.
2697 (sparc_do_registers_info): Declare.
2698 (PRINT_REGISTER_HOOK): Delete macro.
2699 (sparc_print_register_hook): Delete declaration.
2700
2701 2002-11-05 David Carlton <carlton@math.stanford.edu>
2702
2703 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2704 functions.
2705 (lookup_symbol_aux_local): New function.
2706 (lookup_symbol_aux_symtabs): New function.
2707 (lookup_symbol_aux_psymtabs): New function.
2708
2709 2002-11-05 David Carlton <carlton@math.stanford.edu>
2710
2711 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2712 previous values of 'objfile' and 'block'.
2713
2714 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2715
2716 * values.c (value_change_enclosing_type): Set
2717 enclosing_type field correctly also for the case where
2718 more memory needs to be allocated.
2719
2720 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2721
2722 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2723 of puts_filtered.
2724
2725 * i387-tdep.c (i387_print_float_info): Replace calls to
2726 register_read and deprecated_read_register_gen with calls to
2727 frame_register_read, and make the necessary adjustments to the
2728 surrounding code.
2729
2730 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2731
2732 * gdbarch.sh (register_reggroup_p): Allow default value.
2733 * gdbarch.h, gdbarch.c: Regenerate.
2734
2735 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2736
2737 * regcache.h: Add coment indicating replacements for deprecated
2738 functions.
2739
2740 2002-11-02 Andrew Cagney <cagney@redhat.com>
2741
2742 * reggroups.h, reggroups.c: New files.
2743 * regcache.c: Include "reggroups.h".
2744 (enum regcache_dump_what): Add `regcache_dump_groups'.
2745 (regcache_dump): Contract size of the "Type" column. When
2746 specified, dump the register's groups.
2747 (maintenance_print_register_groups): New function.
2748 (_initialize_regcache): Add command `maint print register-groups'.
2749 * Makefile.in (COMMON_OBS): Add reggroups.o
2750 (SFILES): Add reggroups.c.
2751 (reggroups_h): Define.
2752 (regcache.o, gdbarch.o): Update dependencies.
2753 (reggroups.o): Specify dependencies.
2754 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2755 Add opaque declaration for `struct reggroup' in generated .h file.
2756 Include "reggroups.h" in generated .c file.
2757 gdbarch.h, gdbarch.c: Re-generate.
2758
2759 2002-11-02 Andrew Cagney <cagney@redhat.com>
2760
2761 * regcache.h (deprecated_read_register_gen): Rename
2762 read_register_gen.
2763 (deprecated_write_register_gen): Rename write_register_gen.
2764 * i387-tdep.c: Update.
2765 * x86-64-linux-nat.c: Update
2766 * wince.c: Update.
2767 * thread-db.c: Update.
2768 * win32-nat.c: Update.
2769 * mips-tdep.c: Update.
2770 * d10v-tdep.c: Update.
2771 * cris-tdep.c: Update.
2772 * remote-sim.c: Update.
2773 * remote-rdi.c: Update.
2774 * remote-rdp.c: Update.
2775 * frame.c: Update.
2776 * target.c: Update.
2777 * blockframe.c: Update.
2778 * x86-64-tdep.c: Update.
2779 * xstormy16-tdep.c: Update.
2780 * sh-tdep.c: Update.
2781 * s390-tdep.c: Update.
2782 * rs6000-tdep.c: Update.
2783 * sparc-tdep.c: Update.
2784 * i386-tdep.c: Update.
2785 * dwarf2cfi.c: Update.
2786 * regcache.c: Update.
2787
2788 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2789
2790 New interix-specific files:
2791 * config/i386/nm-interix.h: New file.
2792 * config/i386/interix.mh: New file.
2793 * config/i386/interix.mt: New file.
2794 * i386-interix-nat.c: New file.
2795 * i386-interix-tdep.c: New file.
2796
2797 2002-11-01 Andrew Cagney <cagney@redhat.com>
2798
2799 * frame.h (deprecated_generic_get_saved_register): Rename
2800 generic_get_saved_register.
2801 * blockframe.c (deprecated_generic_get_saved_register): Update.
2802 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2803 (xstormy16_frame_saved_register): Update.
2804 * sh-tdep.c (sh_gdbarch_init): Update.
2805 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2806 * ia64-tdep.c (ia64_get_saved_register): Update.
2807 * cris-tdep.c (cris_gdbarch_init): Update.
2808 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2809 * arm-tdep.c (arm_gdbarch_init): Update.
2810
2811 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2812
2813 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2814
2815 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2816
2817 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2818 trampolines in sigaction.
2819
2820 2002-10-31 Andrew Cagney <cagney@redhat.com>
2821
2822 * h8300-tdep.c: Include "gdb_assert.h".
2823 (h8300_print_register): Add gdbarch, file and frame parameters.
2824 Use frame_read_unsigned_register to read the register's value.
2825 Use fprintf_filtered to display output.
2826 (h8300_print_registers_info): Replace h8300_do_registers_info.
2827 (h8300_gdbarch_init): Set print_registers_info.
2828
2829 2002-10-31 Andrew Cagney <cagney@redhat.com>
2830
2831 * frame.c (frame_read_unsigned_register): New function.
2832 (frame_read_signed_register): New function.
2833 * frame.h (frame_read_unsigned_register): Declare.
2834 (frame_read_signed_register): Declare.
2835
2836 2002-10-31 Andrew Cagney <cagney@redhat.com>
2837
2838 * h8500-tdep.c (h8500_print_registers_info): New static function,
2839 clone of infcmd.c's default_print_registers_info.
2840 (h8500_do_registers_info): New funtion.
2841 (h8500_print_register_hook): Rename print_register_hook, make
2842 static.
2843
2844 * config/h8500/tm-h8500.h: Update copyright.
2845 (DEPRECATED_DO_REGISTERS_INFO): Define.
2846 (h8500_do_registers_info: Declare.
2847 (PRINT_REGISTER_HOOK): Delete macro.
2848 (print_register_hook): Delete function.
2849
2850 2002-10-31 Andrew Cagney <cagney@redhat.com>
2851
2852 * z8k-tdep.c (z8k_print_register_hook): Make static.
2853 (z8k_print_registers_info): New static function, clone of
2854 infcmd.c's default_print_registers_info.
2855 (z8k_do_registers_info): New function. Wrap
2856 z8k_print_registers_info.
2857 * config/z8k/tm-z8k.h: Update copyright.
2858 (PRINT_REGISTER_HOOK): Delete macro.
2859 (z8k_print_register_hook): Delete declaration.
2860 (DEPRECATED_DO_REGISTERS_INFO): Define.
2861 (z8k_do_registers_info): Declare.
2862
2863 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2864
2865 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2866 as this is already provided by value.h, and was actually causing
2867 a compilation error because of a conflict in parameter type
2868 declaration due to a missing const keyword.
2869 (low_text_segment_addres): Fix a compilation warning.
2870
2871 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2872
2873 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2874 registers without a name.
2875 (mips_linux_cannot_store_register): Don't store registers without
2876 a name.
2877
2878 2002-10-28 David Carlton <carlton@math.stanford.edu>
2879
2880 * symtab.c (find_addr_symbol): Delete. (It was already commented
2881 out.)
2882 * symtab.h: Delete prototype for find_addr_symbol.
2883
2884 2002-10-26 Andrew Cagney <cagney@redhat.com>
2885
2886 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2887 DO_REGISTERS_INFO.
2888 gdbarch.h, gdbarch.c: Re-generate.
2889 * infcmd.c (default_print_registers_info): Update reference.
2890 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2891 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2892 * sh-tdep.c (sh_gdbarch_init): Ditto.
2893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2894 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2895
2896 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2897
2898 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2899 cfi_init_extra_frame_info.
2900 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2901 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2902
2903 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2904 target where necessary. Add more comments and remove the ones
2905 that don't provide any useful information.
2906
2907 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2908 deprecated_read_register_dummy with
2909 frame_unwind_unsigned_register.
2910
2911 * i386-tdep.c (i386_extract_struct_value_address): Use
2912 regcache_raw_read_unsigned instead of
2913 regcache_cooked_read_unsigned since we know that the register
2914 we're reading isn't a pseudo register. Rename variable 'val' into
2915 the more descriptive 'addr'.
2916
2917 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2918 (x86_64_push_return_address): Add comment.
2919 (x86_64_pop_frame): Make static.
2920 (examine_argument): Clarify comment.
2921 (x86_64_skip_prologue): Make prolog_expact variable static.
2922
2923 * dwarf2cfi.c: Fix some formatting problems.
2924 (context_cpy, read_encoded_pointer): Clarify comments.
2925
2926 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2927 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2928 i386 target back into x86_64_gdbarch_init. Add some comments and
2929 remove meaningless ones.
2930
2931 2002-10-25 Andrew Cagney <cagney@redhat.com>
2932
2933 * complaints.h (struct deprecated_complaint): Rename `struct
2934 complaint'.
2935 * complaints.c (complain): Update.
2936 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2937 incorrect comment indicating that "symfile.h" was being included
2938 for the `struct complaint' definition.
2939 * remote-vx.c: Update.
2940 * objc-lang.c: Update.
2941 * xcoffread.c: Update.
2942 * hpread.c: Update.
2943 * mdebugread.c: Update.
2944 * stabsread.c: Update.
2945 * dwarf2read.c: Update.
2946 * dwarfread.c: Update.
2947 * elfread.c: Update.
2948 * coffread.c: Update.
2949 * stabsread.h: Update.
2950 * dbxread.c: Update.
2951 * buildsym.c: Update.
2952 * gdbtypes.c: Update.
2953 * macrotab.c: Update.
2954
2955 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2956
2957 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2958 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2959 (x86_64_init_abi): ...new function.
2960
2961 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2962 * i386v-nat.c: Include "i386-tdep.h".
2963
2964 2002-10-25 Andrew Cagney <cagney@redhat.com>
2965
2966 * gdbtypes.c (address_space_name_to_int): Update.
2967 (address_space_int_to_name): Update.
2968 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2969 multi-arch predicate.
2970 (address_class_name_to_type_flags): Ditto.
2971 * gdbarch.h, gdbarch.c: Re-generate.
2972
2973 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2974
2975 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2976
2977 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2978
2979 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2980
2981 * symtab.h (INIT_SAL): Delete macro.
2982 (init_sal): Export.
2983 * symtab.c (init_sal): New function.
2984
2985 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2986 to init_sal function call.
2987 (find_sal_from_funcs_and_line): Ditto.
2988 (all_sals_for_line): Ditto.
2989 * breakpoint.c (create_internal_breakpoint): Ditto.
2990 (create_fork_vfork_event_catchpoint): Ditto.
2991 (create_exec_event_catchpoint): Ditto.
2992 (parse_breakpoint_sals): Ditto.
2993 (watch_command_1): Ditto.
2994 (handle_gnu_4_16_catch_command): Ditto.
2995 (clear_command): Ditto.
2996 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2997 * infcmd.c (run_stack_dummy): Ditto.
2998 * infrun.c (process_event_stop_test): Ditto.
2999 (check_sigtramp2): Ditto.
3000 (step_over_function): Ditto.
3001 * linespec.c (decode_line_2): Ditto.
3002 (decode_line_1): Ditto.
3003 * source.c (line_info): Ditto.
3004 * symtab.c (find_pc_sect_line): Ditto.
3005
3006 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3007
3008 * dwarf2cfi.c (struct context)
3009 (struct context_reg): Moved to dwarf2cfi.h
3010 (context_alloc, frame_state_alloc, context_cpy):
3011 Made extern instead of static, removed prototypes.
3012 * dwarf2cfi.h (struct context)
3013 (struct context_reg): New, moved from dwarf2cfi.c
3014 (context_alloc, frame_state_alloc, context_cpy):
3015 New prototypes.
3016 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3017 Changed from static to extern.
3018 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3019 (LINUX_SIGCONTEXT_FP_OFFSET)
3020 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3021 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3022 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3023 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3024 set_gdbarch_*() calls now use x86-64 specific functions
3025 instead of DWARF2 CFI ones.
3026 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3027 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3028 (x86_64_init_extra_frame_info): New prototypes.
3029
3030 2002-10-23 David Carlton <carlton@math.stanford.edu>
3031
3032 * linespec.c: #include "parser-defs.h".
3033 Delete prototype for find_template_name_end.
3034 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3035
3036 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3037
3038 * NEWS: add recent mi fixes.
3039 * varobj.c (struct varobj): Add new "updated" flag.
3040 (new_variable): Default "updated" flag to 0.
3041 (varobj_set_value): Set "updated" flag to 1 if value
3042 changes.
3043 (varobj_update): Check varobj "updated" flag before
3044 comparing old and refreshed values. Fix for
3045 PR gdb/702.
3046
3047 2002-10-23 David Carlton <carlton@math.stanford.edu>
3048
3049 * parse.c (parse_exp_1): Use BLOCK_START.
3050 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3051 SYMBOL_BLOCK_VALUE.
3052 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3053
3054 2002-10-23 David Carlton <carlton@math.stanford.edu>
3055
3056 * symtab.c: Delete cplusplus_hint.
3057 Delete prototype for find_template_name_end.
3058
3059 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3060
3061 * symtab.h: Update comment.
3062
3063 2002-10-23 Michael Snyder <msnyder@redhat.com>
3064
3065 * printcmd.c (address_info): Restore quotes in output.
3066 * valops.c (value_of_local): Restore quotes in error message.
3067
3068 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3069
3070 * symtab.c (symbol_demangled_name): New function.
3071 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3072 turning most of it into a function.
3073 (symbol_demangled_name): Export.
3074
3075 2002-10-23 Michael Snyder <msnyder@redhat.com>
3076
3077 * valops.c (value_of_local): Restore quotes in error message.
3078
3079 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3080
3081 * symtab.c (symbol_init_language_specific): New function.
3082 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3083 turning most of it into a function.
3084 (symbol_init_language_specific): Export.
3085
3086 2002-10-23 David Carlton <carlton@math.stanford.edu>
3087
3088 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3089 (dwarf_attr_name): Ditto.
3090 (dwarf_type_encoding_name): Ditto.
3091 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3092 (process_die): Handle DW_TAG_namespace,
3093 DW_TAG_imported_declaration, DW_TAG_imported_module.
3094 (read_namespace): New function.
3095
3096 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3097
3098 * configure.in: Define NEW_PROC_API on Interix too.
3099 * configure: Regenerate.
3100
3101 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3102
3103 * configure: Regenerate using the proper version of autoconf.
3104
3105 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3106
3107 * findvar.c (read_var_value): Temporarily disable TLS code, until
3108 complete TLS support is added.
3109
3110 2002-10-21 Jim Blandy <jimb@redhat.com>
3111 Elena Zannoni <ezannoni@redhat.com>
3112
3113 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3114 for thread local storage locations.
3115 (struct symbol): Add objfile field.
3116 (SYMBOL_OBJFILE): Define.
3117 * dwarf2read.c (is_thread_local): New static variable.
3118 (new_symbol): If variable is in thread local fill in address class
3119 and objfile appropriately.
3120 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3121 stack operation.
3122 * printcmd.c (address_info): Print the information for thread
3123 local storage variable.
3124 * findvar.c (read_var_value): In case of thread local variable,
3125 defer to the target vector code to compute address.
3126
3127 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3128
3129 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3130 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3131
3132 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3133
3134 * symtab.h (address_class): Rename
3135 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3136 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3137 * printcmd.c (address_info): Ditto.
3138 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3139
3140 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3141
3142 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3143 DBREG_DRX macro to acces debug registers.
3144
3145 * Makefile.in (i386obsd-tdep.o): New target.
3146
3147 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3148 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3149
3150 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3151 * config/i386/obsd.mt: New file.
3152 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3153 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3154 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3155 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3156 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3157 * i386obsd-tdep.c: New file.
3158
3159 2002-10-19 Adam Fedor <fedor@gnu.org>
3160
3161 * objc-exp.y (name_not_typename): Fix invalid comment.
3162
3163 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3164
3165 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3166 to allocate partial syms and macro byte caches.
3167
3168 2002-10-18 David Carlton <carlton@math.stanford.edu>
3169
3170 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3171
3172 2002-10-18 Adam Fedor <fedor@gnu.org>
3173
3174 * stabsread.c (find_name_end): New function.
3175 (define_symbol): Use it.
3176
3177 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3178
3179 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3180 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3181 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3182 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3183
3184 2002-10-17 David Carlton <carlton@math.stanford.edu>
3185
3186 * symfile.h: Add opaque declaration for struct obstack.
3187 Declare obsavestring to take a const char *.
3188 * symfile.c (obsavestring): Make first argument a const char *.
3189
3190 2002-10-16 Adam Fedor <fedor@gnu.org>
3191
3192 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3193 names when matching breakpoints in current file.
3194
3195 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3196
3197 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3198 (read_tag_pointer_type): Add address class support.
3199 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3200 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3201 New methods.
3202 * gdbarch.h, gdbarch.c: Regenerate.
3203 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3204 (make_type_with_address_space, recursive_type_dump): Add address
3205 class support.
3206 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3207 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3208 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3209
3210 2002-10-16 Klee Dienes <kdienes@apple.com>
3211
3212 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3213 to get the last character of a char[] buffer, not
3214 name[sizeof(vptr_name)-1].
3215
3216 2002-10-14 Adam Fedor <fedor@gnu.org>
3217
3218 * symtab.h: New objc_specific struct.
3219 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3220 (SYMBOL_DEMANGLED_NAME): Likewise.
3221
3222 2002-10-14 Adam Fedor <fedor@gnu.org>
3223
3224 * symfile.c (init_filename_language_table): Add ObjC file extension.
3225
3226 2002-10-14 Adam Fedor <fedor@gnu.org>
3227
3228 * utils.c (puts_filtered_tabular): New function.
3229 (fprintf_symbol_filtered): Get ObjC demangled name.
3230 * defs.h (puts_filtered_tabular): Declared.
3231
3232 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3233
3234 * c-lang.h (c_type_print_varspec_prefix): Delete.
3235 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3236 ``need_post_space'' parameter. Adjust all callers.
3237
3238 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3239
3240 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3241 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3242 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3243 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3244
3245 2002-10-13 Adam Fedor <fedor@gnu.org>
3246
3247 * source.c (print_source_lines): Update comments.
3248
3249 2002-10-13 Adam Fedor <fedor@gnu.org>
3250
3251 * valops.c (value_of_local): New function.
3252 (value_of_this): Use it.
3253 * value.h (value_of_local): Declared.
3254
3255 2002-10-13 Adam Fedor <fedor@gnu.org>
3256
3257 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3258 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3259
3260 2002-10-12 Adam Fedor <fedor@gnu.org>
3261
3262 * language.c (binop_result_type): Add language_objc to case.
3263 (integral_type): Likewise.
3264 (character_type): Likewise.
3265 (string_type): Likewise.
3266 (boolean_type): Likewise.
3267 (structured_type): Likewise.
3268 (binop_type_check): Likewise.
3269
3270 2002-10-11 Adam Fedor <fedor@gnu.org>
3271
3272 * printcmd.c (address_info): Print 'self' for ObjC.
3273
3274 2002-10-11 Adam Fedor <fedor@gnu.org>
3275
3276 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3277 OP_SELF.
3278
3279 2002-10-11 Adam Fedor <fedor@gnu.org>
3280
3281 * language.h (CAST_IS_CONVERSION): Add language_objc.
3282
3283 2002-10-11 Adam Fedor <fedor@gnu.org>
3284
3285 * defs.h (enum language): Add language_objc.
3286
3287 2002-10-11 Klee Dienes <kdienes@apple.com>
3288
3289 * corefile.c (read_memory_typed_address): New function.
3290 * gdbcore.h (read_memory_typed_address): Add prototype.
3291 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3292 to read a value destined for a CORE_ADDR, not read_memory_integer.
3293 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3294 (f77_get_dynamic_lowerbound): Ditto.
3295
3296 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3297
3298 * utils.c (string_to_core_addr): After turning string into
3299 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3300 which will do necessary sign-extension, etc.
3301
3302 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * c-exp.y (THIS): Delete token and grammar rule.
3305 (yylex): Don't return THIS.
3306 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3307 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3308 * demangle.c (cplus_markers): Update comment. Put '$'
3309 first. Remove CPLUS_MARKER.
3310 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3311 * jv-exp.y (THIS): Delete token and grammar rule.
3312 (yylex): Don't return THIS.
3313 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3314 * objc-exp.y (THIS): Delete token and grammar rule.
3315 (yylex): Don't return THIS.
3316 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3317 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3318 (read_member_functions): Likewise for opname.
3319 (read_tilde_fields): Use is_cplus_marker.
3320
3321 * defs.h (CPLUS_MARKER): Don't define.
3322 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3323 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3324 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3325 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3326 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3327
3328 * config/i386/tm-i386v4.h: Delete file.
3329 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3330 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3331 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3332 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3333 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3334 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3335 * config/i386/i386v4.mt (TM_FILE): Likewise.
3336 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3337
3338 2002-10-10 Marko Mlinar <markom@opencores.org>
3339
3340 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3341 accidentially not commited 2002-10-09
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343
3344 2002-10-09 Marko Mlinar <markom@opencores.org>
3345
3346 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3347 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3348 * gdbarch.h, gdbarch.c: Re-generate.
3349
3350 2002-10-08 Petr Sorfa <petrs@caldera.com>
3351
3352 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3353
3354 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3355 so we can work on more than one compilation unit at a time. This
3356 helps prepare GDB to handle inter-CU die references.
3357 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3358 the code to be defined before struct comp_unit_head.
3359 (comp_unit_head): Added new members - offset, cu_head,
3360 begin_die, next and dwarf2_abbrevs.
3361 (dwarf2_abbrevs): Removed single static var; now member of
3362 struct comp_unit_head.
3363 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3364 members.
3365 (psymtab_to_symtab_1): Changed to work with the new
3366 struct comp_unit_head.
3367 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3368 constructs the dwarf2_abbrevs[] inside the cu_header.
3369 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3370 dwarf2_abbrev table to clean up.
3371 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3372 handling of dwarf2_abbrevs inside the cu_header.
3373 (read_partial_die): Now supports the call to the new
3374 dwarf2_lookup_abbrev.
3375 (read_full_die): Now supports the call to the new
3376 dwarf2_lookup_abbrev.
3377
3378 2002-10-06 Christopher Faylor <cgf@redhat.com>
3379
3380 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3381 insure that shell variables, such as "transformed_name" are propagated
3382 to later shell statements in rule.
3383
3384 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3385
3386 * config/i386/nm-i386sco.h: Add protection against
3387 multiple-inclusion. Include "i386/nm-i386v.h".
3388 (REGISTER_U_ADDR): Remove define.
3389 (i386_register_u_addr): Remove prototype.
3390
3391 2002-10-04 Michael Snyder <msnyder@redhat.com>
3392
3393 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3394 before treating it as a single-step event.
3395
3396 2002-10-03 Adam Fedor <fedor@gnu.org>
3397
3398 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3399 (objc_demangle): Remove assignment in if statements, Replace
3400 free with xfree.
3401 (add_msglist): Likewise.
3402 (end_msglist): Likewise.
3403 (complare_selectors): Likewise.
3404 (selectors_info): Likewise.
3405 (compare_classes): Likewise.
3406 (classes_info): Likewise.
3407 (print_object_command): Likewise.
3408 (find_objc_msgcall_submethod): Replace PTR with void *.
3409 * objc-lang.h: Remove check for __STDC__.
3410
3411 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3412
3413 * ui-out.h (ui_out_field_fmt_int): New prototype.
3414 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3415 of field width and alignment.
3416 * stack.c (print_frame_info_base): When printing frame level, use
3417 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3418 PR gdb/192
3419
3420 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3421
3422 * MAINTAINERS: Add self to Write After Approval list.
3423
3424 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3425
3426 * infcmd.c (interrupt_target_command_wrapper): Delete.
3427 (interrupt_target_command): Make non static.
3428 (nofp_registers_info): Make static.
3429 * stack.c (return_command_wrapper): Delete.
3430 (return_command): Make non static.
3431
3432 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3433
3434 * event-top.c (gdb_setup_readline): New function. Code moved from
3435 _initialize_event_loop().
3436 (_initialize_event_loop): Call gdb_setup_readline().
3437
3438 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3439
3440 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3441 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3442 * gdbarch.h, gdbarch.c: Re-generate.
3443
3444 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3445
3446 Fix PR gdb/778
3447 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3448 before recursing.
3449 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3450 of fill_in_vptr_fieldno.
3451
3452 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3453
3454 * inferior.h (registers_info, stepi_command, nexti_command,
3455 continue_command, interrupt_target_command): Export from infcmd.c.
3456 * frame.h (args_info, selected_frame_level_changed_hook,
3457 return_command): Export from stack.c.
3458 * v850ice.c (stepi_command, nexti_command, continue_command): use
3459 prototypes from inferior.h.
3460 * tracepoint.c (registers_info, args_info, locals_info): Use
3461 prototypes from frame.h and inferior.h.
3462 * Makefile.in (mi-main.o): Add dependency on frame.h.
3463
3464 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3465
3466 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3467 value in register 3 adjusted by ppc_gp0_regnum.
3468
3469 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3470
3471 2002-10-02 Marko Mlinar <markom@opencores.org>
3472
3473 * MAINTAINERS: Add myself to the Write After Approval list.
3474
3475 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3476
3477 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3478 of the section for the N64 ABI, fixed.
3479
3480 * config/mips/tm-irix6.h: Include solib.h.
3481
3482 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3483
3484 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3485 GNU operators.
3486
3487 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3488
3489 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3490 and that "mi0" syntax has been removed.
3491
3492 2002-09-30 David Carlton <carlton@math.stanford.edu>
3493
3494 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3495 * ppc-sysv-tdep.c: #include "gdb_string.h".
3496 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3497 pacify GCC.
3498
3499 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3500
3501 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3502 "vrsave"'s register number.
3503
3504 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3505
3506 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3507 use frame_unwind_signed_register to obtain the PC.
3508 (mips_frame_chain): Handle a generic dummy frame.
3509 (mips_init_extra_frame_info): When a generic dummy frame, don't
3510 re-compute the frame base.
3511 (mips_pop_frame): Handle generic dummy frames.
3512 (mips_gdbarch_init): When generic dummy frames, set
3513 use_generic_dummy_frames, push_dummy_frame to
3514 generic_push_dummy_frame, pc_in_call_dummy to
3515 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3516 generic_save_dummy_frame_tos.
3517
3518 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3519
3520 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3521 against TOP when TOP was explictly set.
3522 (generic_push_dummy_frame): Set TOP to zero.
3523
3524 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3525
3526 * event-loop.c (start_event_loop): Rename variable 'result' to
3527 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3528
3529 2002-09-30 Keith Seitz <keiths@redhat.com>
3530
3531 * gdb-events.sh (selected_thread_changed): New event.
3532 * gdb-events.c: Regenerated.
3533 * gdb-events.h: Regenerated.
3534
3535 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3536
3537 * MAINTAINERS: Add self to Write After Approval list.
3538
3539 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3540
3541 * disasm.c: New file.
3542 * disasm.h: New file.
3543 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3544 (compare_lines): Ditto.
3545 (dump_insns): Ditto.
3546 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3547 argument.
3548 (do_assembly_only): Ditto.
3549 (do_disassembly): Renamed to gdb_disassembly and moved to
3550 disasm.c. Sdded uiout argument.
3551 * Makefile.in: Add new files. Reorder SFILES list. Update
3552 dependencies. Include libgdb.a later in the insight executable.
3553
3554 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3555
3556 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3557 bfd/elf64-alpha-fbsd.c.
3558
3559 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3560
3561 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3562 i386gnu-tdep.c.
3563
3564 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3565
3566 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3567 __FUNCTION__.
3568 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3569 function name.
3570 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3571 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3572 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3573 (S_msg_sig_post_reply): Ditto.
3574
3575 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3576
3577 * sh-tdep.c (sh_use_struct_convention): Use definition according
3578 to ABI.
3579 (sh_push_arguments): Store in register with correct endianess.
3580 (sh_default_store_return_value): Ditto.
3581 (sh_gdbarch_init): Set sizeof long double to 8.
3582
3583 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3584
3585 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3586 Fix some whitespace problems.
3587
3588 2002-09-27 David Carlton <carlton@math.stanford.edu>
3589
3590 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3591 (mcore-tdep.o): Ditto.
3592 (ns32k-tdep.o): Ditto.
3593 (ns32knbsd-tdep.o): Ditto.
3594 (sh3-rom.o): Ditto.
3595 (vax-tdep.o): Ditto.
3596 * cris-tdep.c: #include "gdb_string.h"
3597 * mcore-tdep.c: Ditto.
3598 * ns32k-tdep.c: Ditto.
3599 * ns32knbsd-tdep.c: Ditto.
3600 * sh3-rom.c: Ditto.
3601 * vax-tdep.c: Ditto.
3602
3603 2002-09-27 David Carlton <carlton@math.stanford.edu>
3604
3605 * config/djgpp/fnchange.lst: Add entries for
3606 gdb/testsuite/gdb.c++/m-static files.
3607
3608 2002-09-27 Jim Wilson <wilson@redhat.com>
3609
3610 * MAINTAINERS: Add myself to the Write After Approval list.
3611
3612 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3613
3614 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3615
3616
3617 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3618
3619 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3620 frame.
3621
3622 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3623
3624 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3625 (rs6000_struct_return_address): Delete variable.
3626 (rs6000_store_struct_return): Update.
3627 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3628 deprecated_extract_struct_value_address.
3629 (rs6000_frame_align): New function.
3630 (rs6000_gdbarch_init): Set frame_align.
3631
3632 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3633
3634 From Grace Sainsbury <graces@redhat.com>:
3635 * Makefile.in (gdbtk-main.o): New target.
3636 (gdb.o): New target.
3637 (main_h): Define.
3638 (main.o): Update dependencies.
3639 (gdb$(EXEEXT)): Add gdb.o.
3640 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3641 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3642 (SUBDIR_GDBTK_CLEAN): Set.
3643 (install-gdbtk): Install the insight binary.
3644 (uninstall-gdbtk): New target.
3645 (all-gdbtk, clean-gdbtk): New rule.
3646 * top.c (use_windows): Default to zero.
3647 * main.c: Include "main.h".
3648 (main): Delete.
3649 (struct captured_main_args): Delete.
3650 (gdb_main): New function.
3651 * main.h: New file.
3652 * gdb.c: New File.
3653
3654 2002-09-25 Andrew Cagney <cagney@redhat.com>
3655
3656 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3657 (frame_map_regnum_to_name): New function.
3658 (frame_map_name_to_regnum): New function.
3659 * frame.h (frame_map_name_to_regnum): Declare.
3660 (frame_map_regnum_to_name): Declare.
3661 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3662 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3663 * parse.c: Do not include "builtin-regs.h".
3664 (target_map_name_to_register): Delete function.
3665 (write_dollar_variable): Use frame_map_name_to_regnum.
3666 * parser-defs.h (target_map_name_to_register): Delete declaration.
3667 * expprint.c: Include "frame.h".
3668 (print_subexp): Use frame_map_regnum_to_name.
3669 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3670 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3671
3672 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3673
3674 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3675 wasn't saved, and the next innermost frame is a dummy, return the
3676 dummy frame's link register.
3677
3678 2002-09-24 Jim Blandy <jimb@redhat.com>
3679
3680 Fix from Paul Breed:
3681 * main.c (captured_main): Add a `break' after the case for 'b'.
3682
3683 2002-09-24 Keith Seitz <keiths@redhat.com>
3684
3685 * varobj.c (c_type_of_child): Use get_target_type instead
3686 of TYPE_TARGET_TYPE.
3687
3688 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3689
3690 * source.c (get_current_or_default_source_symtab_and_line): Remove
3691 function.
3692 (set_default_source_symtab_and_line): New function. Attempts to
3693 determine a source file to list lines from if one is not currently
3694 defined.
3695 (get_current_source_symtab_and_line): Initialize sal.pc and
3696 sal.end fields.
3697 (set_current_source_symtab_and_line): Mark argument as const.
3698 * source.h: Update declarations and comments.
3699 * linespec.c (decode_line_1): Replace call to removed routine above.
3700 * stack.c (print_frame_info_base): Ditto.
3701 * cli/cli-cmds.c (edit_command): Ditto.
3702 (list_command): Ditto.
3703
3704 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3705
3706 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3707 sal.pc and sal.end fields.
3708 (get_current_or_default_source_symtab_and_line): Ditto.
3709 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3710 so we do not cause a new source symtab to be searched for (reverting an
3711 unintentional change from the 2002-09-20 patch).
3712 * scm-lang.c (scm_unpac): Ditto.
3713
3714 2002-09-21 Andrew Cagney <cagney@redhat.com>
3715
3716 * complaints.c (symfile_explanations): Remove new-line from
3717 ``isolated_message''.
3718 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3719 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3720
3721 2002-09-20 Nick Clifton <nickc@redhat.com>
3722
3723 * NEWS: Announce that V850EA ISA is no longer supported.
3724 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3725
3726 2002-09-20 David Carlton <carlton@math.stanford.edu>
3727
3728 * Makefile.in (c-lang.o): Correct dependencies.
3729 (utils.o): Gather dependencies.
3730 (charset.o): Move.
3731 * c-lang.c: #include "gdb_string.h"
3732
3733 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3734
3735 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3736 * cli/cli-cmds.c (list_command): New function. Implements the new
3737 cli edit command.
3738 (_init_cli_cmds): Add new command definition.
3739 * gdb.1: Document edit command.
3740 * doc/gdb.texinfo: Document edit command.
3741
3742 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3743
3744 * source.c: Make global variables current_source_symtab and
3745 current_source_line static.
3746 (list_command): Moved to cli/cli-cmds.c.
3747 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3748 (get_first_line_listed): New accessor function.
3749 (get_lines_to_list): New accessor function.
3750 (get_current_source_symtab_and_line): New function. Retrieves the
3751 position in the source code that we consider current.
3752 (get_current_or_default_source_symtab_and_line): New function.
3753 Like the above but attempts to determine a default position if one
3754 is not currently defined.
3755 (set_current_source_symtab_and_line): New function. Sets the source
3756 code position considered current and returns the previously set one.
3757 (clear_current_source_symtab_and_line): Reset stored information about
3758 a current source line.
3759 (_initialize_source): Remove registration for the "list" command and
3760 its alias.
3761 * source.h: Add declarations for the new functions above.
3762 * symtab.h: Remove declarations for the global variables mentioned
3763 above.
3764 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3765 obtain current source line.
3766 * linespec.c (decode_line_1): Ditto.
3767 * macroscope.c (default_macro_scope): Ditto.
3768 * scm-lang.c (scm_unpac): Ditto.
3769 * stack.c (print_frame_info_base): Ditto.
3770 * symfile.c (clear_symtab_users): Ditto.
3771 * symtab.c (decode_line_spec): Ditto.
3772 * cli/cli-cmds.c (list_command): Moved here from source.c.
3773 (ambiguous_line_spec): Moved here from source.c.
3774 (_init_cli_cmds): Add definition for "list" and its alias.
3775 * Makefile.in: Update dependencies.
3776
3777 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3778
3779 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3780 with what gcc thinks is correct.
3781
3782 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3783
3784 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3785 multiple register push instruction.
3786
3787 2002-09-19 Jim Blandy <jimb@redhat.com>
3788
3789 Add support for distinct host and target character sets.
3790 * charset.c, charset.h: New files.
3791 * c-exp.y: #include "charset.h".
3792 (yylex): Convert character and string literals to the target
3793 character set, before returning them as the semantic value of the
3794 token.
3795 * c-lang.c: #include "charset.h".
3796 (c_emit_char): Use charset-specific methods to recognize
3797 characters with backslash escape forms, to decide which characters
3798 to print literally and which to print using numeric escape
3799 sequences, and to convert target characters to host characters
3800 before printing.
3801 * utils.c: #include "charset.h".
3802 (no_control_char_error): New function.
3803 (parse_escape): Use charset-specific methods to recognize
3804 backslash escapes, parse `control character' notation, and convert
3805 characters from the host character set to the target character set.
3806 * configure.in: Set the default host character set.
3807 Check where to find iconv, and what its argument types might be.
3808 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3809 * Makefile.in (SFILES): List charset.c.
3810 (COMMON_OBS): List charset.o.
3811 (charset.o): New rule.
3812 (charset_h): New header dependency variable.
3813 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3814 (LIBICONV): New variable, set by configure.
3815 (CLIBS): Include $(LIBICONV) here.
3816 * aclocal.m4, config.in, configure: Regenerated.
3817
3818 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3819
3820 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3821 bison 1.35 warning.
3822
3823 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3824
3825 * gdb_mbuild.sh: New file.
3826
3827 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3828
3829 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3830
3831 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3832
3833 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3834 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3835 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3836 valops.c, value.h: Revert previous change.
3837
3838 2002-09-18 Michael Snyder <msnyder@redhat.com>
3839
3840 Preliminary support for Objective-C:
3841 * defs.h (language_objc): New enum value.
3842 (puts_filtered_tabular): Declaration only, exported from utils.c.
3843 (skip_quoted): Delete, declared in completer.h.
3844 * c-exp.y: Include completer.h.
3845 * p-exp.y: Ditto.
3846 * jv-exp.y: Ditto.
3847 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3848 New operator enum values.
3849 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3850 * language.c (binop_result_type): Handle language_objc case.
3851 (integral_type, character_type, string_type, boolean_type,
3852 structured_type, binop_type_check): Ditto.
3853 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3854 (struct objc_specific): Add to general_symbol_info.
3855 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3856 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3857 * parser-defs.h (struct objc_class_str): New struct type.
3858 (start_msglist, end_msglist, add_msglist): Declaration only,
3859 exported from objc-lang.c.
3860 * value.h (value_of_local, value_nsstring,
3861 call_function_by_hand_expecting_type): Exported from valops.c.
3862 * valops.c (find_function_addr): Export.
3863 (call_function_by_hand_expecting_type): New function.
3864 (value_of_local): New function.
3865 * symfile.c (init_filename_language_table): Add ".m" extension
3866 for Objective-C.
3867 * utils.c (puts_filtered_tabular): New function.
3868 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3869 (set/show demangle): Extend help-string to refer to ObjC.
3870 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3871 * stabsread.c (symbol_reference_defined): Objective-C symbols
3872 may contain colons: make allowances when scanning stabs strings
3873 for colons.
3874 (objc_find_colon): New function.
3875 * printcmd.c (address_info): If language == objc then print
3876 "self" instead of "this".
3877 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3878 OP_NSSTRING, and OP_SELF.
3879 (prefixify_subexp): Ditto.
3880 * source.c (print_source_lines): Mention objc in comment.
3881 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3882 method names.
3883
3884 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3885
3886 * complaints.h: Update copyright.
3887 (struct complaints): Declare.
3888 (struct complaint): Make `message' constant.
3889 (internal_complaint): Declare.
3890 (complaint): Declare.
3891 (complaint_root): Delete declaration.
3892 (symfile_complaints): Delete declaration.
3893 (struct complaints): Add opaque declaration.
3894 (clear_complaints): Add a complaints parameter.
3895 * complaints.c: Update copyright.
3896 (enum complaint_series): Define.
3897 (complaint_root): Delete.
3898 (struct complaints): Define.
3899 (complaint_sentinel, symfile_complaint_book): New variables.
3900 (symfile_explanations, symfile_complaints): New variables.
3901 New variables.
3902 (get_complaints): New function.
3903 (vcomplaint): New function.
3904 (complaint): New function.
3905 (internal_complaint): New function.
3906 (complain): Call vcomplain with symfile_complaint.
3907 (clear_complaints): Rewrite.
3908 (_initialize_complaints): Use add_setshow_command.
3909 * Makefile.in (complaints.o): Update dependencies.
3910 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3911 to call to clear_complaints.
3912 (new_symfile_objfile, reread_symbols): Ditto.
3913 (oldsyms_complaint): Delete.
3914 (empty_symtab_complaint, unknown_option_complaint): Delete.
3915 (free_named_symtabs): Use complaint instead of complain.
3916
3917 2002-09-18 Michael Snyder <msnyder@redhat.com>
3918
3919 Contributed by Apple Computer, Inc. Merged with current sources
3920 by Adam Fedor <fedor@doc.com> [cagney].
3921
3922 * objc-lang.c: First clean-up round: comments, indentation.
3923 * objc-lang.h: Ditto.
3924 * objc-lang.y: Ditto.
3925
3926 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3927
3928 * maint.c (maintenance_internal_error): Print the parameter as the
3929 error message.
3930 (maintenance_internal_warning): New function.
3931 (_initialize_maint_cmds): Add command `maint internal-warning'.
3932
3933 * defs.h (internal_warning, internal_vwarning): Declare.
3934 * utils.c (struct internal_problem): Define.
3935 (internal_vproblem): New function.
3936 (internal_warning): New function.
3937 (internal_vwarning): New function.
3938 (internal_warning_problem, internal_error_problem): New variables.
3939 (internal_verror): Just call internal_vproblem.
3940
3941 2002-09-18 Michael Snyder <msnyder@redhat.com>
3942
3943 * objc-lang.c: New file, support for Objective-C.
3944 Preliminary check-in, not yet integrated into gdb.
3945 * objc-lang.h: New file.
3946 * objc-exp.y: New file.
3947
3948 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3949
3950 * infrun.c (signal_stop_update): Convert definition to ISO C.
3951 (signal_print_update): Ditto.
3952 (signal_pass_update): Ditto.
3953 * inflow.c (terminal_save_ours): Ditto.
3954
3955 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3956 comments.
3957
3958 * config/djgpp/fnchange.lst: Handle name clashes between
3959 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3960 bfd/coff-tic80.c.
3961
3962 * i386-linux-tdep.h: Fix tipo.
3963
3964 2002-09-18 Adam Fedor <fedor@gnu.org>
3965
3966 * MAINTAINERS: Add myself to the Write After Approval list.
3967
3968 2002-09-18 Jim Blandy <jimb@redhat.com>
3969
3970 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3971 texthigh and textlow to reader-specific structs caused
3972 objfile_relocate to miss them. This is fixable, but the work that
3973 the change was supposed to prepare GDB for never got done anyway.
3974
3975 2002-09-18 David Carlton <carlton@math.stanford.edu>
3976
3977 * MAINTAINERS: Alphabetize Write After Approval list.
3978
3979 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3980
3981 Fix PR gdb/709
3982 * values.c (value_static_field): Call read_var_value.
3983
3984 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3985
3986 * valops.c (hand_function_call): Align the initial stack pointer
3987 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3988 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3989 return value.
3990 * mips-tdep.c (mips_frame_align): New function.
3991 (mips_gdbarch_init): Set frame_align.
3992 * gdbarch.sh (FRAME_ALIGN): New method.
3993 * gdbarch.h, gdbarch.c: Re-generate.
3994
3995 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3996
3997 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3998 registers.
3999
4000 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4001
4002 * NEWS: Mention that MIPS $fp behavior changed.
4003 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4004 reference to FP_REGNUM.
4005 (mipsnbsd_cannot_store_register): Ditto.
4006 * mips-linux-nat.c: Update copyright.
4007 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4008 (mips_linux_cannot_store_register): Ditto.
4009 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4010 * config/mips/tm-mips.h: Update copyright.
4011 (FP_REGNUM): Delete macro.
4012 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4013 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4014 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4015 (mips_r3041_reg_names, mips_r3051_reg_names)
4016 (mips_r3081_reg_names): Replace "fp" with "".
4017 Fix PR gdb/480.
4018
4019 2002-09-17 Theodore A. Roth <troth@verinet.com>
4020
4021 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4022 generic_read_register_dummy() (PR gdb/703).
4023 (avr_push_return_address): #if 0 out unused vars.
4024 (avr_gdbarch_init): Enable use of avr_push_return_address().
4025
4026 2002-09-17 Michael Snyder <msnyder@redhat.com>
4027
4028 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4029 RTE will take care of it.
4030
4031 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4032
4033 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4034 invalid, return SP_REGNUM.
4035
4036 2002-09-17 Michael Snyder <msnyder@redhat.com>
4037
4038 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4039 point registers without sign extension.
4040
4041 2002-09-17 Andrew Cagney <cagney@redhat.com>
4042
4043 * blockframe.c (deprecated_read_register_dummy): Rename
4044 generic_read_register_dummy.
4045 * frame.c (frame_unwind_signed_register): New function.
4046 (frame_unwind_unsigned_register): New function.
4047 * frame.h (frame_unwind_signed_register): Declare.
4048 (frame_unwind_unsigned_register): Declare.
4049 (deprecated_read_register_dummy): Rename
4050 generic_read_register_dummy.
4051
4052 * h8300-tdep.c (h8300_frame_chain): Update.
4053 (h8300_frame_saved_pc): Update.
4054 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4055 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4056 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4057 (s390_frame_chain): Update.
4058 * v850-tdep.c (v850_find_callers_reg): Update.
4059 (v850_frame_saved_pc): Update.
4060 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4061 (m32r_find_callers_reg): Update.
4062 (m32r_frame_saved_pc): Update.
4063 * sh-tdep.c (sh_find_callers_reg): Update.
4064 (sh64_get_saved_pr): Update.
4065 (sh_init_extra_frame_info): Update.
4066 (sh_init_extra_frame_info): Update.
4067 (sh64_init_extra_frame_info): Update.
4068 (sh64_init_extra_frame_info): Update.
4069 * mcore-tdep.c (mcore_find_callers_reg): Update.
4070 (mcore_frame_saved_pc): Update.
4071 (mcore_init_extra_frame_info): Update.
4072 * i386-tdep.c (i386_frame_saved_pc): Update.
4073 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4074 (ia64_init_extra_frame_info): Update.
4075 (ia64_init_extra_frame_info): Update.
4076 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4077 * cris-tdep.c (cris_init_extra_frame_info): Update.
4078 * avr-tdep.c (avr_frame_chain): Update.
4079 (avr_init_extra_frame_info): Update.
4080 (avr_frame_saved_pc): Update.
4081 * arm-tdep.c (arm_find_callers_reg): Update.
4082 (arm_init_extra_frame_info): Update.
4083 (arm_frame_saved_pc): Update.
4084
4085 2002-09-17 Tom Tromey <tromey@redhat.com>
4086
4087 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4088 is "'".
4089
4090 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4091
4092 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4093 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4094 NEXT_PROLOGUE_INSN.
4095 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4096 NEXT_PROLOGUE_INSN.
4097
4098 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4099
4100 * osfsolib.c: Remove file, replaced by solib-osf.c.
4101 * Makefile.in: Remove compilation rules for osfsolib.c.
4102
4103 2002-09-16 David Carlton <carlton@math.stanford.edu>
4104
4105 * cp-valprint.c (cp_print_class_method): Correct args to
4106 check_stub_method_group.
4107
4108 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4109
4110 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4111 `set architecture'. Unify naming convention of functions.
4112 (h8300_skip_prologue): Improve prologue analysis.
4113 (h8300_push_arguments): Rewritten to more closely match GCC's
4114 bizarre argument-passing behavior, along with the comment describing
4115 said behavior.
4116 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4117 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4118 sim, remote-e7000.c, remote-hms.c and remote.c
4119
4120 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4121
4122 * i386-tdep.c (gdb_print_insn_i386): Removed.
4123 (i386_print_insn): New function.
4124 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4125 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4126 tm_print_insn_info.
4127
4128 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4129
4130 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4131 zero.
4132
4133 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4134
4135 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4136 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4137 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4138
4139 2002-09-13 Christopher Faylor <cgf@redhat.com>
4140
4141 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4142
4143 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4144
4145 * gdbtypes.c (check_stub_method): Make static.
4146 (check_stub_method_group): New function.
4147 * gdbtypes.h: Update prototypes.
4148 * cp-support.c: New file.
4149 * cp-support.h: New file.
4150
4151 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4152 (update_method_name_from_physname): New function.
4153 (read_member_functions): Correct method names for operators
4154 and v3 constructors/destructors. Separate v2 constructors and
4155 destructors.
4156 * Makefile.in (stabsread.o): Update dependencies.
4157 (SFILES): Add cp-support.c.
4158 (COMMON_OBS): Add cp-support.o.
4159 (cp_support_h, cp-support.o): Add.
4160
4161 * cp-valprint.c (cp_print_class_method): Call
4162 check_stub_method_group instead of check_stub_method. Remove
4163 extraneous QUITs.
4164 * p-valprint.c (pascal_object_print_class_method): Likewise.
4165 * valops.c (search_struct_method): Likewise.
4166 (find_method_list, value_struct_elt_for_reference): Likewise.
4167
4168 2002-09-13 Andrew Cagney <cagney@redhat.com>
4169
4170 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4171 * gdbarch.h, gdbarch.c: Regenerate.
4172
4173 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4174
4175 * frame.c (find_saved_register): Delete function.
4176 * frame.h (find_saved_register): Delete declaration.
4177 Fix PR gdb/631.
4178
4179 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4180
4181 * mips-tdep.c (read_next_frame_reg): Re-hack using
4182 frame_register_unwind.
4183
4184 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4185
4186 * mips-tdep.c (mips_get_saved_register): Re-hack using
4187 frame_register_unwind.
4188
4189 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4190
4191 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4192 vector. Will be useful for Interix.
4193 * gdbarch.h, gdbarch.c: Regenerate.
4194
4195 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4196 name of the malloc function by NAME_OF_MALLOC.
4197
4198 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4199
4200 * value.h (find_function_in_inferior): Add const keyword to
4201 one of the parameters. Allows us to invoke this function with
4202 a const char *.
4203 * valops.c (find_function_in_inferior): Likewise.
4204
4205 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4206
4207 * exec.c (xfer_memory): Fix compilation warning with old versions
4208 of GCC.
4209 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4210
4211 2002-09-12 David Carlton <carlton@math.stanford.edu>
4212
4213 * symtab.h: Run through gdb_indent.h.
4214 Add 2002 to Copyright year list.
4215
4216 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4217
4218 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4219 mach constants.
4220 * MAINTAINERS: Add myself to write after approval list.
4221
4222 2002-09-11 J. Brobecker <brobecker@gnat.com>
4223
4224 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4225
4226 2002-09-11 J. Brobecker <brobecker@gnat.com>
4227
4228 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4229 Interix.
4230
4231 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4232
4233 * procfs.c (do_detach): Clear current signal, not just fault.
4234 Corrects problem with breakpoint trap signal leaking to detached
4235 process on Tru64.
4236
4237 2002-09-10 Michael Snyder <msnyder@redhat.com>
4238
4239 * buildsym.c (finish_block): Protect against null pointer.
4240
4241 2002-09-10 Andrew Cagney <cagney@redhat.com>
4242
4243 * infcmd.c (default_print_registers_info): Send all output to
4244 ``file'' instead of ``gdb_stdout''.
4245
4246 2002-09-10 Michael Snyder <msnyder@redhat.com>
4247
4248 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4249 LONGEST, and use signed register read (addresses are sign-
4250 extended for mips).
4251
4252 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4253
4254 * event-loop.c (gdb_do_one_event): Make public.
4255 * event-loop.h (gdb_do_one_event): Declare.
4256
4257 2002-09-10 Jeff Law <law@redhat.com>
4258
4259 * infttrace.c (child_resume): Simplify and rework to avoid
4260 TT_PROC_CONTINUE.
4261
4262 2002-09-09 Fred Fish <fnf@intrinsity.com>
4263
4264 * printcmd.c (print_scalar_formatted): "len" is the number of
4265 target bytes, NOT the number of target bits.
4266
4267 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4268
4269 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4270 * top.c (init_main): Set rl_terminal_name.
4271
4272 2002-09-08 Aidan Skinner <aidan@velvet.net>
4273
4274 * ada-lang.c (ada_array_bound, ada_type_match,
4275 _initialize_ada_language): Fix K&R definitions.
4276 * ada-tasks.c (get_current_task): Fix K&R definitions.
4277 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4278
4279 2002-09-07 Christopher Faylor <cgf@redhat.com>
4280
4281 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4282 Add XP.
4283
4284 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4285
4286 * i386-tdep.c (i386_register_virtual_type,
4287 i386_register_convertible, i386_register_convert_to_virtual,
4288 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4289 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4290 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4291 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4292 Don't set push_arguments twice.
4293
4294 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4295 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4296 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4297 sigtramp_end to NULL.
4298 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4299 defines.
4300 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4301
4302 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4303 whitespace.
4304
4305 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4306 * gdbarch.h, gdbarch.c: Re-generate.
4307 * blockframe.c (find_pc_sect_partial_function): Convert to use
4308 SIGTRAMP_START_P predicate.
4309
4310 2002-09-05 Michael Snyder <msnyder@redhat.com>
4311
4312 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4313 generic_dummy_frame method and old method. Also distinguish
4314 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4315 (arm_extract_return_value): Use new regcache method.
4316
4317 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4318 adjustment that doesn't conform to the ABI.
4319 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4320 saved regcache, not from current regcache.
4321
4322 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4323
4324 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4325 * README: Update.
4326
4327 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4328
4329 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4330 if arm_apcs_32 is false.
4331
4332 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4333
4334 GDB 5.3 branch created.
4335
4336 2002-09-03 Theodore A. Roth <troth@verinet.com>
4337
4338 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4339 generic_unwind_get_saved_register.
4340
4341 2002-09-03 David Carlton <carlton@math.stanford.edu>
4342
4343 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4344 argument (PR gdb/653). Update call to smash_to_method_type.
4345 (read_structure_scope): Update call to dwarf2_add_member_fn.
4346
4347 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4348
4349 * x86-64-linux-tdep.c: Include gdb_string.h
4350 * x86-64-linux-nat.c: Ditto.
4351
4352 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4353
4354 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4355 when YYDEBUG is set to 1.
4356 * c-exp.y: Likewise.
4357 * f-exp.y: Likewise.
4358 * jv-exp.y: Likewise.
4359 * m2-exp.y: Likewise.
4360 * p-exp.y: Likewise.
4361
4362 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4363
4364 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4365 dependency list.
4366 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4367 solib_svr4_fetch_link_map_offsets to
4368 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4369 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4370 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4371 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4372 solib-svr4.o, and solib-legacy.o.
4373 * config/i386/tm-nbsd.h: Include solib.h.
4374
4375 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4376
4377 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4378 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4379 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4380 comment noting that this needs its own target configuration.
4381 * config/i386/nbsd.mt: New file.
4382 * config/i386/nbsdaout.mt: Remove.
4383 * config/i386/nbsdelf.mt: Ditto.
4384 * config/i386/tm-nbsdaout.h: Ditto.
4385
4386 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4387
4388 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4389 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4390 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4391 tdep->sigtramp_end.
4392 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4393 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4394 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4395
4396 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4397
4398 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4399 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4400 * i386-tdep.h (i386bsd_init_abi): New prototype.
4401 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4402 function declaration.
4403 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4404 for NetBSD-a.out or NetBSD-ELF.
4405 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4406 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4407 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4408 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4409 and nbsd-tdep.h.
4410 (i386nbsd_pc_in_sigtramp): New function.
4411 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4412 i386nbsd_pc_in_sigtramp.
4413 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4414 and i386nbsdelf_init_abi OS ABI handlers.
4415 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4416 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4417
4418 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4419
4420 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4421 registers if the target really has them.
4422
4423 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4426 than nbsd-tdep.h.
4427
4428 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4429
4430 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4431 list.
4432 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4433 (alphanbsd_skip_sigtramp_frame): New functions.
4434 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4435 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4436 to alphanbsd_sigcontext_addr.
4437
4438 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4439
4440 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4441 list.
4442 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4443 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4444 nbsd_pc_in_sigtramp.
4445 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4446 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4447 * nbsd-tdep.c: Include gdb_string.h.
4448 (nbsd_pc_in_sigtramp): New function.
4449 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4450 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4451 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4452 ppcnbsd_pc_in_sigtramp.
4453 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4454 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4455 shnbsd_pc_in_sigtramp.
4456 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4457 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4458 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4459
4460 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4461
4462 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4463 watchpoints to NULL.
4464 (insert_breakpoints): set val field of watchpoints if NULL.
4465
4466
4467 2002-08-29 Jim Blandy <jimb@redhat.com>
4468
4469 * symtab.c (lookup_symbol_aux): In the cases where we find a
4470 minimal symbol of an appropriate name and use its address to
4471 select a symtab to read and search, use `name' (as passed to us)
4472 as the demangled name when searching the symtab's global and
4473 static blocks, not the minsym's name.
4474
4475 2002-08-29 Keith Seitz <keiths@redhat.com>
4476
4477 * stack.c (print_frame_info_base): Always set current_source_symtab
4478 and current_source_line.
4479
4480 2002-08-29 Donn Terry <donnte@microsoft.com>
4481
4482 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4483
4484 2002-08-28 Keith Seitz <keiths@redhat.com>
4485
4486 * stack.c (select_frame): Add FIXME concerning selected-frame
4487 events.
4488 (select_frame_command): Send selected-frame-level-changed
4489 event notification, but only if the level actually changed.
4490 (up_silently_base): Add selected-frame-level-changed event
4491 notification.
4492 (down_silently_base): Likewise.
4493
4494 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4495
4496 * Makefile.in: Update dependencies for all gdb/*.c files.
4497
4498 2002-08-27 Tom Tromey <tromey@redhat.com>
4499
4500 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4501 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4502 Update dependencies.
4503 * i387-tdep.c: Include gdb_string.h.
4504 * osabi.c: Likewise.
4505 * i386-linux-nat.c: Likewise.
4506 * lin-lwp.c: Likewise.
4507 * ax-gdb.c: Likewise.
4508 * signals/signals.c: Likewise.
4509 * jv-valprint.c: Likewise.
4510 * p-lang.c: Likewise.
4511 * c-valprint.c: Likewise.
4512 * cp-abi.c: Likewise.
4513
4514 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4515
4516 * cli/cli-script.h (copy_command_lines): Export.
4517 * breakpoint.c: Include cli/cli-script.h.
4518 * Makefile.in (breakpoint.o): Update dependencies.
4519
4520 2002-08-26 Michael Snyder <msnyder@redhat.com>
4521
4522 * breakpoint.c (insert_breakpoints): Protect all references
4523 to 'process_warning'. Shorten long lines.
4524
4525 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4526
4527 * cli/cli-script.c (copy_command_lines): New function.
4528 * defs.h (copy_command_lines): Export.
4529 * testsuite/gdb.base/commands.exp: New tests for commands
4530 attached to a temporary breakpoint, and for commands that
4531 delete the breakpoint they are attached to.
4532
4533 2002-08-26 Michael Snyder <msnyder@redhat.com>
4534
4535 * breakpoint.c (bpstat_stop_status): Instead of copying the
4536 pointer to the breakpoint commands struct, make a new copy
4537 of the struct and point to that.
4538 (bpstat_clear): Free the commands struct.
4539 (bpstat_clear_actions): Free the commands struct.
4540 (bpstat_do_actions): Free the command actions. Also execute
4541 the local cleanups, instead of deleting them.
4542 (delete_breakpoint): Leave the commands field of the bpstat
4543 chain alone -- it will be freed later.
4544
4545 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4546
4547 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4548 deleted in 2002-08-20 commit. This function is still used by
4549 ppc-linux-nat.c.
4550
4551 2002-08-26 Keith Seitz <keiths@redhat.com>
4552
4553 * gdb-events.sh: Add selected-frame-level-changed event.
4554 * gdb-events.c: Regenerated.
4555 * gdb-events.h: Regenerated.
4556
4557 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4558
4559 Fix PR gdb/393:
4560 * inflow.c (terminal_save_ours): New function to save terminal
4561 settings.
4562 * inferior.h (terminal_save_ours): Declare.
4563 * target.c (debug_to_terminal_save_ours): New function.
4564 (cleanup_target): Defaults to_terminal_save_ours.
4565 (update_current_target): Inherit to_terminal_save_ours.
4566 (setup_target_debug): Set to_terminal_save_ours.
4567 * target.h (target_terminal_save_ours): New to save terminal settings.
4568 (target_ops): New member to_terminal_save_ours.
4569 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4570 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4571 * inftarg.c (init_child_ops): Likewise.
4572 * m3-nat.c (init_m3_ops): Likewise.
4573 * procfs.c (init_procfs_ops): Likewise.
4574 * wince.c (init_child_ops): Likewise.
4575 * win32-nat.c (init_child_ops): Likewise.
4576 * sol-thread.c (init_sol_thread_ops): Likewise.
4577
4578 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4579
4580 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4581 use regcache_* functions.
4582 (i386_gdbarch_init): Set store_return_value instead of
4583 deprecated_store_return_value.
4584
4585 * regcache.c (regcache_raw_write_signed,
4586 regcache_raw_write_unsigned): New functions.
4587 * regcache.h (regcache_raw_write_signed,
4588 regcache_raw_write_unsigned): New prototypes.
4589
4590 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4591
4592 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4593 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4594 source file dependencies. Cleanup corresponding generator rules.
4595
4596 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4597
4598 * regcache.h (register_offset_hack): Declare.
4599 (regcache_cooked_read_using_offset_hack): Declare.
4600 (regcache_cooked_write_using_offset_hack): Declare.
4601
4602 * regcache.c (register_offset_hack): New function.
4603 (regcache_cooked_read_using_offset_hack): New function.
4604 (regcache_cooked_write_using_offset_hack): New function.
4605 (regcache_dump): Check that the registers, according to their
4606 offset, are packed hard against each other.
4607 (cooked_xfer_using_offset_hack): New function.
4608
4609 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4610
4611 * regcache.c (struct regcache_descr): Add field register_type.
4612 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4613 in as a parameter
4614 (init_regcache_descr): Initialize register_type. Pass the descr
4615 to init_legacy_regcache_descr. Use register_type instead of
4616 REGISTER_VIRTUAL_TYPE.
4617 (register_type): New function.
4618 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4619 * regcache.h (register_type): Declare.
4620
4621 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4622
4623 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4624 instead of deprecated_store_return_value. Fix fallout from
4625 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4626
4627 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4628
4629 * regcache.c (max_register_size): New function.
4630 (init_legacy_regcache_descr): Ensure that max_register_size is
4631 large enough for REGISTER_VIRTUAL_SIZE.
4632 * regcache.h (max_register_size): Declare.
4633
4634 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4635
4636 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4637 store_return_value.
4638 (e500_extract_return_value): Change type of valbuf pointer to
4639 void.
4640
4641 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4642
4643 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4644 workaround.
4645
4646 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4647 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4648 long long) to prevent compiler warning on 64-bit systems.
4649
4650 2002-08-23 Andrew Cagney <cagney@redhat.com>
4651
4652 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4653 (DEPRECATED_STORE_RETURN_VALUE): New method.
4654 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4655 * gdbarch.h, gdbarch.c: Re-generate.
4656
4657 * values.c (set_return_value): Pass current_regcache to
4658 STORE_RETURN_VALUE.
4659 * arch-utils.h (legacy_store_return_value): Declare.
4660 * arch-utils.c (legacy_store_return_value): New function.
4661 (legacy_extract_return_value): Update parameters.
4662
4663 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4664 STORE_RETURN_VALUE.
4665 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4666 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4667 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4668 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4669 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4670 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4671 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4672 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4673 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4674 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4675
4676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4677 * i386-tdep.c (i386_extract_return_value): Update.
4678 * arch-utils.c (legacy_extract_return_value): Update.
4679 * frv-tdep.c (frv_gdbarch_init): Update.
4680 * cris-tdep.c (cris_gdbarch_init): Update.
4681 * d10v-tdep.c (d10v_gdbarch_init): Update.
4682 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4683 * m68k-tdep.c (m68k_gdbarch_init): Update.
4684 * mcore-tdep.c (mcore_gdbarch_init): Update.
4685 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4686 * s390-tdep.c (s390_gdbarch_init): Update.
4687 * sparc-tdep.c (sparc_gdbarch_init): Update.
4688 * sh-tdep.c (sh_gdbarch_init): Update.
4689 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4690 * v850-tdep.c (v850_gdbarch_init): Update.
4691 * avr-tdep.c (avr_gdbarch_init): Update.
4692 * ia64-tdep.c (ia64_gdbarch_init): Update.
4693 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4694 * vax-tdep.c (vax_gdbarch_init): Update.
4695 * alpha-tdep.c (alpha_gdbarch_init): Update.
4696 * arm-tdep.c (arm_gdbarch_init): Update.
4697 * mips-tdep.c (mips_gdbarch_init): Update.
4698 * i386-tdep.c (i386_gdbarch_init): Update.
4699
4700 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4701
4702 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4703 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4704
4705 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4706
4707 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4708 problems.
4709
4710 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4711
4712 * infrun.c (handle_inferior_event): Move a comment outside of a
4713 function call, in order to avoid indent reformatting this part
4714 of the code in an unreadable way.
4715
4716 2002-08-23 Grace Sainsbury <graces@redhat.com>
4717
4718 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4719 when breakpoints fail. Move general breakpoint error messages to
4720 insert_breakpoints.
4721 * breakpoint.c (insert_breakpoints): Change warnings when
4722 breakpoints are nto inserted to specify the type. Remove call to
4723 memory_error when hardware breakpoints can't be inserted. Remove
4724 multiple calls to warning so all messages are sent to the user at
4725 once.
4726 (delete_breakpoints): Make insert error messsages more explicit.
4727
4728 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4729
4730 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4731 gdbserver/ChangeLog.
4732
4733 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4734
4735 * i386-tdep.c: Include "objfiles.h".
4736 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4737 skip_trampoline_code.
4738 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4739 (CPLUS_MARKER): Define to '.'.
4740
4741 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4742 member.
4743 (linux_corefile_thread_callback): Increase args->num_notes.
4744 (linux_make_note_section): Initialize thread_args.num_notes, and
4745 use it to determine whether notes for any threads were created.
4746
4747 2002-08-23 Donn Terry <donnte@microsoft.com>
4748
4749 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4750 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4751 and PCUNKILL.
4752 (write_with_trace): Conditionalize out the switch branch handling
4753 PCSHOLD if the corresponding macro is not defined. Likewise for
4754 PRSABORT and PRSTOP.
4755 This change will be needed by the Interix port.
4756
4757 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4758
4759 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4760 write_register wherever possible instead of manipulating the
4761 register bytes directly.
4762 Assign VALUE_CONTENTS to a variable and use that.
4763 The GPR numbers are now dependent on the architecture.
4764
4765 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4766
4767 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4768 ev_offset fields.
4769 (skip_prologue): Add support for BookE/e500 instructions.
4770 (e500_extract_return_value): New function.
4771 (frame_get_saved_regs): Add support for saving ev registers and
4772 pseudo gpr's.
4773 (e500_store_return_value): New function.
4774 (rs6000_gdbarch_init): Move up default intializations of
4775 deprecated_extract_return_value and store_return_value. Overwrite
4776 init of store_return_value with e500 specific version.
4777 Set extract_return_value for e500.
4778
4779 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4780
4781 * blockframe.c (generic_call_dummy_register_unwind): Use
4782 regcache_cooked_read to catch cases in which the variable is
4783 stored in a pseudo register.
4784
4785 2002-08-22 Andrew Cagney <cagney@redhat.com>
4786
4787 * NEWS: Mention that the i960 has been made obsolete.
4788 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4789 i960-tdep.c
4790 (remote-nrom.o): Obsolete target.
4791 (remote-nindy.o, i960-tdep.o): Ditto.
4792 * remote-nrom.c: Make file obsolete.
4793 * remote-nindy.c, remote-vx960.c: Ditto.
4794 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4795 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4796 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4797 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4798 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4799 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4800 i960-*-vxworks* obsolete.
4801 * MAINTAINERS: Note that the i960 is obsolete.
4802
4803 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4804
4805 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4806 detach to allow reinitialization.
4807
4808 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4809
4810 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4811 attempt).
4812
4813 2002-08-22 Jim Blandy <jimb@redhat.com>
4814
4815 * coffread.c (coff_symfile_read): Don't try to read the line
4816 number table from disk if the image file doesn't have a symbol
4817 table; we'll never actually look at the info anyway, and Windows
4818 ships DLL's with bogus file offsets for the line number data.
4819
4820 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4821
4822 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4823 an e500 executable.
4824
4825 2002-08-21 Michael Snyder <msnyder@redhat.com>
4826
4827 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4828 (MSYMBOL_SIZE): Replace macro with function.
4829 (DEFAULT_MIPS_TYPE): Delete unused macro.
4830 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4831 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4832
4833 2002-08-21 Jim Blandy <jimb@redhat.com>
4834
4835 * valops.c (value_cast): Simplify and correct logic for doing a
4836 static cast from a pointer to a base class to a pointer to a
4837 derived class.
4838
4839 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4840
4841 * infcmd.c (default_print_registers_info): Replace
4842 do_registers_info.
4843 (registers_info): Use gdbarch_print_registers_info instead of
4844 DO_REGISTERS_INFO.
4845 * inferior.h (default_print_registers_info): Replace
4846 do_registers_info.
4847 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4848 (DO_REGISTERS_INFO): Change to a predicate function.
4849 * gdbarch.h, gdbarch.c: Regenerate.
4850
4851 2002-08-21 Keith Seitz <keiths@redhat.com>
4852
4853 * gdb-events.sh: Add target-changed event.
4854 * gdb-events.c: Regenerated.
4855 * gdb-events.c: Regenerated.
4856 * valops.c (value_assign): Add target-changed event notification
4857 to inlval_register, lval_memory, and lval_reg_frame_relative.
4858
4859 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4860
4861 * NEWS: Add an entry regarding the improvement of the next/step
4862 operation on Alpha Tru64 multi-processor machines.
4863
4864 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4865
4866 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4867 directores.
4868 * Makefile.in: Update all _h macro definitions.
4869 * Makefile.in (install-gdbtk): Move to install section.
4870 (rdi-share/libangsd.a): Move to end of file.
4871
4872 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4873
4874 * frame.c (frame_register_unwind): When a register, set addrp to
4875 the register's byte.
4876
4877 2002-08-20 Michael Snyder <msnyder@redhat.com>
4878
4879 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4880 used locally, so move them from the target machine header to here.
4881 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4882 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4883 Make static.
4884 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4885
4886 2002-08-20 Andrew Cagney <cagney@redhat.com>
4887
4888 * NEWS: Mention that the Apollo line was made obsolete.
4889 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4890 m68*-hp-hpux* obsolete.
4891 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4892 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4893 * buildsym.c (make_blockvector): Make static.
4894 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4895 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4896 (ALLDEPFILES): Remove dstread.c.
4897 (dstread.o): Obsolete make rule.
4898 * dstread.c: Makefile obsolete.
4899 * dst.h: Ditto.
4900 * config/m68k/hp300hpux.mt: Ditto.
4901 * config/m68k/hp300hpux.mh: Ditto.
4902 * config/m68k/hp300bsd.mt: Ditto.
4903 * config/m68k/hp300bsd.mh: Ditto.
4904 * config/m68k/apollo68b.mt: Ditto.
4905 * config/m68k/apollo68v.mh: Ditto.
4906 * config/m68k/apollo68b.mh: Ditto.
4907
4908 2002-08-20 Michael Snyder <msnyder@redhat.com>
4909
4910 * mips-tdep.c (mips_in_return_stub): Make static.
4911 (mips_gdbarch_init): Set in_solib_return_trampoline.
4912 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4913
4914 2002-08-20 Michael Snyder <msnyder@redhat.com>
4915
4916 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4917 * gdbarch.c, gdbarch.h: Regenerate.
4918 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4919 Add.
4920 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4921
4922 2002-08-20 Michael Snyder <msnyder@redhat.com>
4923
4924 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4925 (mips_gdbarch_init): Set skip_trampoline_code,
4926 in_solib_call_trampoline.
4927 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4928 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4929
4930 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4931
4932 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4933
4934 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4935 vector type for ev registers.
4936 (e500_pseudo_register_read): New function.
4937 (e500_pseudo_register_write): New function.
4938 (e500_dwarf2_reg_to_regnum): New function.
4939 (PPC_UISA_NOFP_SPRS): New macro.
4940 (PPC_EV_REGS): New macro.
4941 (PPC_GPRS_PSEUDO_REGS): New macro.
4942 (registers_e500): New register set for e500.
4943 (variants): Add e500 variant.
4944 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4945 before setting architectural dependent variations. Initialize ev
4946 registers numbers. Add case for e500 architecture. Set the
4947 number of pseudo registers.
4948
4949 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4950
4951 * rs6000-tdep.c: Clean up comments.
4952
4953 2002-08-20 Andrew Cagney <cagney@redhat.com>
4954
4955 * h8300-tdep.c: Re-indent file.
4956
4957 2002-08-20 Jim Blandy <jimb@redhat.com>
4958
4959 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4960 default for this.
4961
4962 2002-08-20 Keith Seitz <keiths@redhat.com>
4963
4964 * breakpoints.c (watch_command_1): Use internal breakpoint
4965 when setting a watchpoint_scope breakpoint.
4966
4967 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4968
4969 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4970 (build_builtin_type_vec64i): Ditto.
4971 (build_builtin_type_vec128): Ditto.
4972 (build_builtin_type_vec128i): Ditto.
4973
4974 2002-08-19 Michael Snyder <msnyder@redhat.com>
4975
4976 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4977 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4978 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4979 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4980 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4981 CALL_DUMMY_ADDRESS): Delete.
4982 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4983 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4984 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4985 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4986 push_return_address.
4987 (mips_register_raw_size, mips_eabi_use_struct_convention,
4988 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4989 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4990 mips_init_extra_frame_info, mips_eabi_push_arguments,
4991 mips_n32n64_push_arguments, mips_push_return_address,
4992 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4993 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4994
4995 2002-08-19 Michael Snyder <msnyder@redhat.com>
4996
4997 * mips-tdep.c (mips_frame_num_args): New function.
4998 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4999 frame_saved_pc, frame_args_address, frame_locals_address,
5000 frame_num_args, and frame_args_skip.
5001 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5002 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5003 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5004 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5005
5006 2002-08-20 Michael Snyder <msnyder@redhat.com>
5007
5008 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5009 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5010 * mips-tdep.c (mips_store_struct_return): New function.
5011 (mips_extract_struct_value_address): New function.
5012 (mips_gdbarch_init): Set store_struct_return and
5013 extract_struct_value_address.
5014
5015 2002-08-20 David Carlton <carlton@math.stanford.edu>
5016
5017 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5018 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5019 (read_file_scope): Check that line_header is nonzero before
5020 decoding macro information.
5021
5022 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5023
5024 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5025 flag the general-purpose registers as floating-point on targets
5026 that don't support the floating-point registers.
5027
5028 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5029
5030 * rs6000-tdep.c (altivec_register_p): Delete.
5031 (rs6000_do_altivec_registers): Delete.
5032 (rs6000_altivec_registers_info): Delete.
5033 (rs6000_do_registers_info): Delete.
5034 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5035 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5036
5037 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5038
5039 * infcmd.c (do_registers_info): Print vector registers in hex
5040 format only.
5041 (print_vector_info): Check that printing registers
5042 makes sense.
5043 (print_float_info): Ditto.
5044
5045 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5046
5047 * mips-tdep.c (mips_gdbarch_init): Update.
5048 (mips_o32_extract_return_value): Rewrite.
5049 (mips_o32_store_return_value): Rewrite.
5050 (mips_o32_xfer_return_value): New function.
5051 (mips_xfer_register): Tweak debug print message. Allow for
5052 buf_offset when dumping the value transfered.
5053
5054 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5055
5056 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5057 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5058 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5059 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5060 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5061
5062 2002-08-14 Michael Snyder <msnyder@redhat.com>
5063
5064 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5065
5066 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5067
5068 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5069 register.
5070 (P): New macro to define a register as a pseudo register.
5071 (R, R4, R8, R16, FR32, R64, R0): Updated.
5072 (struct variant): Add new fields for number of pseudo registers
5073 and number of total registers.
5074 (tot_num_registers): New macro replacing....
5075 (num_registers): ...deleted macro.
5076 (num_registers): New function.
5077 (num_pseudo_registers): New function.
5078 (variants): Update all variants to intialize new fields correctly.
5079 Postpone initialization of number of pseudo regs and real regs.
5080 (init_variants): New function.
5081 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5082 registers offsets.
5083
5084 2002-08-19 David Carlton <carlton@math.stanford.edu>
5085
5086 * valops.c (search_struct_field): Change error message to treat
5087 return value of 0 from value_static_field as meaning that field is
5088 optimized out.
5089 (value_struct_elt_for_reference): Ditto.
5090 * values.c (value_static_field): Treat an unresolved location the
5091 same as a nonexistent symbol. Fix PR gdb/635.
5092 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5093 enclosed. Fix PR gdb/574.
5094 * MAINTAINERS: Add self to Write After Approval list.
5095
5096 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5097
5098 * mips-tdep.c (mips_xfer_register): New function.
5099 (mips_n32n64_extract_return_value): Rewrite.
5100 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5101 instead of deprecated_extract_return_value.
5102
5103 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5104
5105 * rs6000-tdep.c (TDEP): Delete macro.
5106 (branch_dest): Replace use of TDEP macro with its body.
5107 (rs6000_pop_frame): Ditto.
5108 (rs6000_push_arguments): Ditto.
5109 (rs6000_skip_trampoline_code): Ditto.
5110 (rs6000_frame_saved_pc): Ditto.
5111 (rs6000_frame_chain): Ditto.
5112 (rs6000_register_name): Ditto.
5113 (rs6000_register_byte): Ditto.
5114 (rs6000_register_raw_size): Ditto.
5115 (rs6000_register_virtual_type): Ditto.
5116 (rs6000_register_convertible): Ditto.
5117 (rs6000_convert_from_func_ptr_addr): Ditto.
5118
5119 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5120
5121 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5122 conditionally.
5123 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5124 MIPS_LINUX_JB_ELEMENT_SIZE.
5125 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5126 for MAX_REGISTER_RAW_SIZE arrays.
5127 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5128 MIPS_LINUX_JB_ELEMENT_SIZE.
5129
5130 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5131
5132 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5133
5134 2002-08-19 Aidan Skinner <aidan@velvet.net>
5135
5136 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5137 ada-valprint.c ada-tasks.c.
5138 (YYFILES): Add ada-exp.y.
5139 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5140 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5141 (ada-exp.tab.o): New target.
5142
5143 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5144
5145 * regcache.c (regcache_xfer_part): New function.
5146 (regcache_raw_read_part): New function.
5147 (regcache_raw_write_part): New function.
5148 (regcache_cooked_read_part): New function.
5149 (regcache_cooked_write_part): New function.
5150 * regcache.h (regcache_raw_read_part): Declare.
5151 (regcache_raw_write_part): Declare.
5152 (regcache_cooked_read_part): Declare.
5153 (regcache_cooked_write_part): Declare.
5154
5155 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5156
5157 * remote.c (remote_open_1): Add async_p.
5158 (remote_async_open_1): Delete.
5159 (open_remote_target): Delete.
5160 (remote_open, extended_remote_open): Update calls to remote_open_1.
5161 (remote_async_open, extended_remote_async_open): Call
5162 remote_open_1 instead of remote_async_open_1.
5163
5164 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5165
5166 * blockframe.c: Fix a few coding standard violations.
5167
5168 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5169
5170 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5171 here from ...
5172 * config/i386/tm-i386sco5.h: ... here. File removed.
5173 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5174
5175 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5176 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5177 (TM_FILE): Set to tm-i386.h.
5178 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5179 * config/i386/tm-i386v.h: Remove file.
5180 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5181 instead of "i386/tm-i386v.h".
5182 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5183 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5184 "i386/tm-i386v.h".
5185 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5186 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5187 "i386/tm-i386.h".
5188
5189 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5190
5191 * config/i386/nm-i386v.h: Add protection against
5192 multiple-inclusion.
5193 (i386_register_u_addr): Remove prototype.
5194 (register_u_addr): New prototype.
5195 (REGISTER_U_ADDR): Redefine accordingly.
5196 * i386v-nat.c: Improve several comments.
5197 (i386_register_u_addr): Change signature and rename to
5198 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5199 ubase variable.
5200
5201 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5202
5203 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5204 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5205 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5206 deprecated_extract_return_value.
5207 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5208 rename mips_o32o64_push_arguments.
5209 (mips_gdbarch_init): Update.
5210 (mips_extract_return_value): Delete.
5211 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5212 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5213 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5214 (mips_n32n64_extract_return_value): Clone
5215 mips_extract_return_value.
5216 (mips_store_return_value): Delete.
5217 (mips_o32_store_return_value): Clone mips_store_return_value.
5218 (mips_o64_store_return_value): Clone mips_store_return_value.
5219 (mips_eabi_store_return_value): Clone mips_store_return_value.
5220 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5221
5222 2002-08-18 Aidan Skinner <aidan@velvet.net>
5223
5224 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5225 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5226
5227 2002-08-18 Aidan Skinner <aidan@velvet.net>
5228
5229 * ada-lang.c: Run through gdb_indent.sh.
5230 * ada-lang.h: Run through gdb_indent.sh.
5231 * ada-tasks.c: Run through gdb_indent.sh.
5232 * ada-typeprint.c: Run through gdb_indent.sh.
5233 * ada-valprint.c: Run through gdb_indent.sh.
5234
5235 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5236
5237 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5238 ABI.
5239
5240 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5241
5242 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5243
5244 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5245 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5246
5247 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5248 write_register_gen instead of write_register_bytes.
5249
5250 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5251 i[3456]-*-osf1mk* configurations have been made obsolete.
5252 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5253 i[3456]86-*-osf1mk* hosts obsolete.
5254 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5255 targets obsolete.
5256 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5257 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5258 config/i386/i386m3.mt, config/i386/nm-m3.h,
5259 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5260 config/i386/i386mk.mh, config/i386/i386mk.mt,
5261 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5262 obsolete.
5263 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5264 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5265 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5266
5267 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5268
5269 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5270 (hppa_value_returned_from_stack): Declare.
5271 (hppa_extract_return_value): Declare.
5272 * config/pa/hppa.mt: New file.
5273 * configure.tgt: Recognize hppa*-*-*.
5274 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5275
5276 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5277
5278 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5279 comment.
5280
5281 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5282
5283 * top.c (gdb_rl_operate_and_get_next): Make sure
5284 operate-and-get-next functions correctly even when the history
5285 list is completely filled.
5286
5287 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5288
5289 * MAINTAINERS (Target Instruction Set Architectures): Rename
5290 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5291 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5292 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5293 already listed under Host/Native.
5294
5295 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5296 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5297 mips*-*-*.
5298
5299 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5300
5301 * config/ia64/ia64.mt: New file.
5302 * config/alpha/alpha.mt: New file.
5303 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5304 ia64-linux-gnu. Mention that ia64-elf is broken.
5305 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5306
5307 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5308
5309 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5310 generic_func_frame_valid instead of func_frame_valid.
5311
5312 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5313
5314 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5315 procfs appears to be broken when debugging on multi-processor
5316 machines. So enable software single stepping in order to avoid
5317 using the procfs interface to do next/step operations, using
5318 internal breakpoints instead.
5319
5320 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5321 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5322 make this pc address equal to the value it would have if the
5323 system stepping capability was used. Also set a new flag used
5324 to ensure that we don't readjust the PC one more time later.
5325
5326 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5327 address by DECR_PC_AFTER_BREAK when software single step is
5328 in use for this architecture, as this has already been taken
5329 care of in handle_inferior_event().
5330
5331 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5332
5333 * infrun.c (handle_inferior_event): Minor reformatting, to make
5334 a rather long condition expression easier to read.
5335
5336 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5337
5338 * Makefile.in (gdbtk.o): Move to end of file.
5339 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5340 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5341 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5342 (gdbtk-wrapper.o, gdbres.o): Ditto.
5343
5344 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5345
5346 * Makefile.in (copying.o): Separate out compile rule.
5347 (hpux-thread.o, procfs.o, signals.o): Ditto.
5348 (v850ice.o, z8k-tdep.o): Ditto.
5349 (tui-file.o): Move to TUI section.
5350 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5351 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5352
5353 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5354
5355 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5356 skip_trampoline_code, for better namespace-proofing.
5357
5358 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5359
5360 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5361
5362 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5363
5364 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5365
5366 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5367 signal, check whether we hit a breakpoint before checking for a
5368 single step breakpoint. Otherwise, GDB fails to notice that a
5369 breakpoint has been hit when stepping onto a breakpoint.
5370
5371 2002-08-16 Keith Seitz <keiths@redhat.com>
5372
5373 * gdb-events.sh (clear_gdb_event_hooks): New function.
5374 * gdb-events.c: Regenerate.
5375 * gdb-events.h: Regenerate.
5376
5377 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5378
5379 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5380 not_a_sw_breakpoint.
5381 * breakpoint.h (bpstat_stop_status): Add parameter names.
5382
5383 2002-08-16 Grace Sainsbury <graces@redhat.com>
5384
5385 * remote.c (remote_insert_hw_breakpoint)
5386 (remote_remove_hw_breakpoint): Fix calculation of length field
5387 for Z-packet.
5388
5389 2002-08-15 Michael Snyder <msnyder@redhat.com>
5390
5391 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5392 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5393 (supply_fpregset): Ditto.
5394
5395 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5396 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5397 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5398 (TARGET_READ_SP): Delete.
5399 (DO_REGISTERS_INFO): Delete.
5400 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5401 Delete.
5402 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5403 from macros to functions.
5404
5405 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5406 (mips_register_convertible, mips_register_convert_to_virtual,
5407 mips_register_convert_to_raw): Make static.
5408 (mips_read_sp): New function.
5409 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5410 (mips_do_registers_info): Make static.
5411 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5412 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5413 (mips_register_convert_from_type, mips_register_convert_to_type):
5414 New functions.
5415 (mips_gdbarch_init): Set up function_start_offset,
5416 register_virtual_size, pc_in_sigtramp.
5417
5418 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5419
5420 * infcmd.c (vector_info): New function.
5421 (_initialize_infcmd): Add command "info vector".
5422 (print_vector_info): New function.
5423
5424 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5425 * gdbarch.h, gdbarch.c: Regenerate.
5426
5427 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5428
5429 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5430 ``print_all''. Only print vector registers when ``print_all''.
5431
5432 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5433
5434 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5435 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5436
5437 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5438 Add `args' parameter.
5439 * gdbarch.h, gdbarch.c: Regenerate.
5440
5441 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5442
5443 * infcmd.c (float_info): Call print_float_info.
5444 (print_float_info): New function. By default, print the
5445 floating-point registers.
5446
5447 * arch-utils.h (default_print_float_info): Delete declaration.
5448 * arch-utils.c (default_print_float_info): Delete function.
5449
5450 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5451
5452 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5453 out define.
5454
5455 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5456 FRAME.
5457
5458 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5459 * configure.host: Make i[3456]86-*-aix host obsolete.
5460 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5461 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5462 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5463 config/i386/xm-i386aix.h: Make files obsolete.
5464 * i386aix-nat.c: Make file obsolete.
5465 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5466 (i386aix-nat.o): Make target obsolete.
5467
5468 * config/i386/nm-gnu.h: Removed.
5469 * config/i386/nm-i386gnu.h: New file.
5470 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5471 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5472 Moved here from ...
5473 * config/i386/tm-i386gnu.h: ... here. Removed.
5474 * config/i386/xm-i386gnu.h: Removed.
5475 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5476 (NAT_FILE): Set to nm-i386gnu.h.
5477 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5478 * i386-tdep.c: New file.
5479 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5480 (i386gnu-tdep.o): Specify dependencies.
5481
5482 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5483
5484 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5485 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5486 Adjust a few comments to reflect reality a bit closer.
5487 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5488 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5489 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5490 target_insert_watchpoint, target_remove_watchpoint):
5491 Move defines to ...
5492 * config/i386/nm-i386sco5.h: ... here.
5493 (kernel_u_size): Add prototype. Improve a few comments and add
5494 protection against multiple inclusion.
5495
5496 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5497 out define.
5498
5499 * uw-thread.c (SP_ARG0): Define if not already defined.
5500 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5501
5502 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5503
5504 * config/i386/tm-i386.h: Don't include "regcache.h".
5505
5506 * i387-tdep.h (i387_print_float_info): New prototype.
5507 * i387-tdep.c (print_i387_value, print_i387_ext,
5508 print_i387_status_word, print_i387_control_word): Add `struct
5509 ui_file *' argument and use it for output.
5510 (i387_print_float_info): Renamed from i387_float_info. Add
5511 `struct gdbarch *' and `struct ui_file *' arguments and use the
5512 latter for output.
5513 * i386-tdep.c: Include "i387-tdep.h".
5514 (i386_gdbarch_init): Set print_float_info.
5515 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5516 (FLOAT_INFO): Remove define.
5517
5518 2002-08-13 Michael Snyder <msnyder@redhat.com>
5519
5520 * mips-tdep.c (mips_push_arguments): Rename to
5521 mips_eabi_push_arguments, and tune for EABI.
5522 (MIPS_REGS_HAVE_HOME_P): Delete.
5523 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5524 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5525 Delete references to mips_regs_have_home_p.
5526
5527 2002-08-14 Keith Seitz <keiths@redhat.com>
5528
5529 * Makefile.in (install-gdbtk): Create insight plugin directory.
5530 Install plugins.tcl file.
5531
5532 2002-08-14 Keith Seitz <keiths@redhat.com>
5533
5534 * configure.in: Move SUBDIRS to near top of the file so that
5535 --enable options may add things to it.
5536 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5537 * configure: Regenerate.
5538
5539 2002-08-13 Michael Snyder <msnyder@redhat.com>
5540
5541 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5542 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5543 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5544
5545 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5546
5547 * vax-tdep.c (vax_get_saved_register): Delete function.
5548 (vax_gdbarch_init): Update.
5549 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5550 (ns32k_gdbarch_init): Update.
5551 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5552 (alpha_gdbarch_init): Update.
5553
5554 2002-08-13 Andrew Cagney <cagney@redhat.com>
5555
5556 * regcache.c (init_regcache_descr): Overallocate the
5557 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5558 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5559 nr_raw_registers.
5560 (set_register_cached): Add range checking assertions. Use
5561 current_regcache.
5562
5563 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5564
5565 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5566 numbers for MMX registers.
5567
5568 2002-08-13 Andrew Cagney <cagney@redhat.com>
5569
5570 * i386-tdep.c (i386_gdbarch_init): Use
5571 generic_unwind_get_saved_register.
5572
5573 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5574
5575 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5576 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5577 target vector.
5578 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5579 Delete. Add comment regarding this now-deleted target method.
5580
5581 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5582
5583 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5584 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5585 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5586 real PC and the page number (if it's within the memory bank window).
5587 (m68hc11_pseudo_register_write): Likewise when saving.
5588 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5589 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5590 (m68hc11_register_raw_size): And use 32-bit for it.
5591 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5592 16K memory bank is used by the prog; also use the virtual pc.
5593
5594 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5595
5596 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5597 (m68hc11_gdbarch_init): Install it in gdbarch.
5598 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5599 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5600 (MSYMBOL_SIZE): New for documentation.
5601 (insn_return_kind): Enum to specify how a function returns.
5602 (frame_extra_info): Cleanup and record the return mode.
5603 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5604 register in address computation.
5605 (m68hc11_get_return_insn): New to obtain the return instruction used
5606 by the function.
5607 (m68hc11_frame_init_saved_regs): Take into account the return
5608 instruction used by the function for far and interrupt functions.
5609 (m68hc11_init_extra_frame_info): Take into account page register.
5610 (m68hc11_frame_args_address): Adjust according to the return mode.
5611 (show_regs): Print page register only when it's used.
5612
5613 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5614
5615 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5616 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5617 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5618 registers.
5619 (m68hc11_register_raw_size): Likewise.
5620
5621 2002-08-13 Andrew Cagney <cagney@redhat.com>
5622
5623 * i386-tdep.c (i386_register_name): Handle mmx registers.
5624 (mmx_regnum_p): New function.
5625 (i386_mmx_names): New array.
5626 (mmx_num_regs): New variable.
5627 (i386_pseudo_register_read): New function.
5628 (i386_pseudo_register_write): New function.
5629 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5630
5631 * regcache.c (regcache_raw_read_unsigned): New function.
5632 (regcache_raw_read_signed): New function.
5633 * regcache.h (regcache_raw_read_unsigned): Declare.
5634 (regcache_raw_read_signed): Declare.
5635
5636 2002-08-13 Andrew Cagney <cagney@redhat.com>
5637
5638 * regcache.c (regcache_raw_read_as_address): Delete function.
5639 (regcache_cooked_read_signed): New function.
5640 (regcache_cooked_read_unsigned): New function.
5641 * regcache.h (regcache_cooked_read_signed): Declare.
5642 (regcache_cooked_read_unsigned): Declare.
5643 (regcache_raw_read_as_address): Delete declaration.
5644
5645 * blockframe.c (generic_read_register_dummy): Use
5646 regcache_cooked_read_unsigned.
5647 * i386-tdep.c (i386_extract_struct_value_address): Use
5648 regcache_cooked_read_unsigned.
5649
5650 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5651
5652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5653 double sizes according to ELF ABI flags.
5654 (gdbarch_tdep): Record elf_flags.
5655
5656 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5657
5658 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5659 (m6812_prolog): They can appear in 68HC12 function prologue.
5660 (m68hc11_frame_chain): Cleanup.
5661
5662 2002-08-12 Andrew Cagney <cagney@redhat.com>
5663
5664 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5665 declarations.
5666 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5667 (i386_linux_register_raw_size): Delete function.
5668 (i386_linux_init_abi): Update.
5669 * i386-tdep.c (i386_register_raw_size): Delete function.
5670 (i386_register_byte): Delete function.
5671 (i386_gdbarch_init): Update.
5672 (i386_register_size): Delete array.
5673 (i386_register_offset): Delete array.
5674
5675 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5676 (REGISTER_RAW_SIZE): Delete macro.
5677 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5678 (REGISTER_BYTE): Delete macro.
5679
5680 2002-08-11 Aidan Skinner <aidan@velvet.net>
5681
5682 * ada-lang.c (ada_lookup_partial_symbol)
5683 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5684 prototype names so that grep ^func works properly.
5685
5686 * ada-lang.c (ada_array_element_type)
5687 (ada_lookup_partial_symbol): Fix typos in parameter list.
5688
5689 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5690 Fix prototype names so that grep ^func works properly.
5691
5692 2002-08-10 Andrew Cagney <cagney@redhat.com>
5693 Elena Zannoni <ezannoni@redhat.com>
5694 Martin M. Hunt <hunt@redhat.com>
5695
5696 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5697 (build_builtin_type_vec128i): Set the vector bit.
5698 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5699 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5700 (build_builtin_type_vec64): New function.
5701 (build_builtin_type_vec64i): New function.
5702 (build_gdbtypes): Initialize builtin_type_vec64 and
5703 builtin_type_vec64i.
5704
5705 2002-08-09 Andrew Cagney <cagney@redhat.com>
5706
5707 * regcache.c (regcache_dump): Compare the register offset
5708 with REGISTER_BYTE.
5709 * arch-utils.c (generic_register_byte): New function.
5710 * arch-utils.h (generic_register_byte): Declare.
5711 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5712 * gdbarch.h, gdbarch.c: Regenerate.
5713
5714 2002-08-09 Andrew Cagney <cagney@redhat.com>
5715
5716 * regcache.c: Include "gdbcmd.h"
5717 (_initialize_regcache): Add commands "maintenance print
5718 registers", "maintenance print raw-registers" and "maintenance
5719 print cooked-registers".
5720 (enum regcache_dump_what): Define.
5721 (dump_endian_bytes): New function.
5722 (regcache_dump): New function.
5723 (regcache_print): New function.
5724 (maintenance_print_registers): New function.
5725 (maintenance_print_raw_registers): New function.
5726 (maintenance_print_cooked_registers): New function.
5727 * Makefile.in (regcache.o): Update dependencies.
5728
5729 2002-08-09 Michael Snyder <msnyder@redhat.com>
5730
5731 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5732 (mips_push_arguments): Correct some comments. Use paddr_nz
5733 for printing addresses in debug output. Replace static
5734 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5735 (mips_n32n64_push_arguments): New function, cloned from
5736 mips_push_arguments and tuned for the n32/n64 ABI.
5737 (mips_push_register): Buffer needs dynamic allocation.
5738 (mips_print_register): Ditto.
5739 (do_gp_register_row): Ditto.
5740 (mips_store_return_value): Ditto.
5741 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5742
5743 2002-08-09 Don Howard <dhoward@redhat.com>
5744
5745 * memattr.c (mem_info_command): Print special case of upper bound
5746 as max CORE_ADDR + 1.
5747
5748 2002-08-08 Michael Snyder <msnyder@redhat.com>
5749
5750 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5751 returns structs by ref if they're too big to fit in two registers.
5752
5753 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5754
5755 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5756 saved regs value.
5757 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5758 mips_find_saved_regs().
5759 (mips_pop_frame): Likewise.
5760
5761 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5762
5763 * blockframe.c (frame_saved_regs_register_unwind): Revise
5764 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5765 frames are in use.
5766
5767 2002-08-09 Grace Sainsbury <graces@redhat.com>
5768
5769 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5770 T-packets; the 'a' is not taken as a register number.
5771 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5772 (remote_stopped_data_address): New functions; add to target
5773 vector.
5774 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5775 prototypes to match other implementations of this
5776 function. replace integer argument with pointer -- the length
5777 field in the Z-packet is the length of what is pointed to or 1 if
5778 pointer is null. Add to target vector.
5779 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5780 target vector.
5781
5782 From Mark Salter:
5783 * remote.c (remote_wait): Add support to extract optional
5784 watchpoint information from T-packet. Ignore unrecognized
5785 optional info in T-packet.
5786 (remote_async_wait): Ditto.
5787
5788 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5789
5790 * cli/cli-dump.c: Change fopen modes to use binary open modes
5791 as defined in include/fopen-bin.h throughout.
5792
5793 2002-08-08 Michael Snyder <msnyder@redhat.com>
5794
5795 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5796
5797 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5798
5799 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5800 assertion failure by returning early after a warning.
5801
5802 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5803
5804 * mips-tdep.c (mips_find_saved_regs): Make static.
5805 (mips_frame_init_saved_regs): New function.
5806 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5807 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5808 (mips_find_saved_regs): Delete declaration.
5809
5810 2002-08-08 Grace Sainsbury <graces@redhat.com>
5811
5812 * remote.c (remote_wait, remote_async_wait): Change
5813 thread_num from int to ULONGEST.
5814 (unpack_varlen_hex): Change result parameter from
5815 int * to ULONGEST *.
5816
5817 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5818
5819 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5820 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5821 powerpc*-*-*.
5822 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5823
5824 2002-08-08 Andrew Cagney <cagney@redhat.com>
5825
5826 * gcore.c (override_derive_stack_segment): Delete variable.
5827 (preempt_derive_stack_segment): Delete function.
5828 (derive_stack_segment): Delete function.
5829 (default_derive_stack_segment): Renamed to derive_stack_segment.
5830 (override_derive_heap_segment): Delete variable.
5831 (preempt_derive_heap_segment): Delete function.
5832 (derive_heap_segment): Delete function.
5833 (default_derive_heap_segment): Rename to derive_heap_segment.
5834
5835 2002-08-06 Michael Snyder <msnyder@redhat.com>
5836
5837 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5838 * mips-tdep.c (mips_EABI_use_struct_convention,
5839 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5840 New functions. (mips_use_struct_convention): Delete.
5841 (mips_gdbarch_init): set use_gdbarch_convention.
5842
5843 2002-08-06 Michael Snyder <msnyder@redhat.com>
5844
5845 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5846 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5847 mips_o32_reg_struct_has_addr): New functions.
5848 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5849
5850 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5851
5852 * regcache.c (pseudo_register): Delete function.
5853 (fetch_register): Delete function.
5854 (store_register): Delete function.
5855 (regcache_raw_read, legacy_read_register_gen): Use
5856 target_fetch_registers instead of fetch_register.
5857 (legacy_write_register_gen, regcache_raw_write): Use
5858 target_store_register instead of store_register.
5859 (write_register_bytes): Ditto.
5860
5861 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5862 (STORE_PSEUDO_REGISTER): Delete.
5863 * gdbarch.h, gdbarch.c: Regenerate.
5864
5865 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5866
5867 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5868 write dump file binary.
5869
5870 2002-08-05 Michael Snyder <msnyder@redhat.com>
5871
5872 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5873 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5874 (mips_gdbarch_init): Set N32 target to be mips64.
5875
5876 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5877
5878 * frame.c (find_saved_register): Break out of loop once saved
5879 register address is found. Don't mention sparc in loop comment
5880 anymore.
5881
5882 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5883
5884 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5885 mips_default_saved_regsize to 8.
5886
5887 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5888
5889 * gcore.c: Do not include <sys/procfs.h>.
5890 * Makefile.in (gcore.o): Update dependencies.
5891
5892 2002-08-06 Andrew Cagney <cagney@redhat.com>
5893
5894 * configure.tgt: Make arc-*-* obsolete.
5895 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5896 * MAINTAINERS: Make arc-elf obsolete.
5897 * arc-tdep.c: Make file obsolete.
5898 * config/arc/arc.mt: Ditto.
5899 * config/arc/tm-arc.h: Ditto.
5900
5901 2002-08-05 Theodore A. Roth <troth@verinet.com>
5902
5903 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5904
5905 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5906
5907 * mcore-tdep.c (mcore_gdbarch_init): Use
5908 generic_unwind_get_saved_register instead of
5909 generic_get_saved_register.
5910 * v850-tdep.c (v850_gdbarch_init): Ditto.
5911 * frv-tdep.c (frv_gdbarch_init): Ditto.
5912 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5913 * s390-tdep.c (s390_gdbarch_init): Ditto.
5914 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5915 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5916 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5917
5918 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5919
5920 * objfiles.h: Add missing #include "symfile.h"
5921
5922 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5923
5924 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5925
5926 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5927 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5928 of FIELD_BITSIZE.
5929
5930 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5931
5932 * NEWS: Cleanup and nitpick.
5933
5934 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5935
5936 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5937
5938 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5939
5940 * Makefile.in (gdbtk-bp.o): Update dependencies.
5941 (gdbtk-register.o): Ditto.
5942 (gdbtk-varobj.o): Ditto.
5943
5944 2002-08-03 Andrew Cagney <cagney@redhat.com>
5945
5946 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5947 m68hc11_fetch_pseudo_register.
5948 (m68hc11_pseudo_register_write): Replace
5949 m68hc11_store_pseudo_register.
5950 (m68hc11_gdbarch_init): Update.
5951
5952 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5953
5954 * gdbarch.sh: Include "gdb_string.h".
5955 * gdbarch.c: Regenerate.
5956
5957 * regcache.c: Include "gdb_string.h".
5958 * ax-general.c: Ditto.
5959 * varobj.c: Ditto.
5960 * std-regs.c: Ditto.
5961 * fbsd-proc.c: Ditto.
5962 * thread.c: Ditto.
5963
5964 * Makefile.in (regcache.o): Update dependencies.
5965 (thread.o, gdbarch.o): Ditto.
5966 (ax-general.o, gdbarch.o): Ditto.
5967 (varobj.o, std-regs.o): Ditto.
5968 (fbsd-proc.o): Specify dependencies.
5969
5970 2002-08-02 Andrew Cagney <cagney@redhat.com>
5971
5972 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5973 regnum.
5974 (regcache_cooked_write): Ditto.
5975
5976 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5977
5978 * regcache.c (regcache_cooked_read): New function.
5979 (regcache_cooked_write): New function.
5980 (read_register_gen): Rewrite using regcache_cooked_read.
5981 (write_register_gen): Rewrite using regcache_cooked_write.
5982
5983 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5984 Declare.
5985
5986 2002-08-02 Andrew Cagney <cagney@redhat.com>
5987
5988 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5989 Replace the architecture methods register_read and register_write.
5990 * gdbarch.h, gdbarch.c: Regenerate.
5991 * regcache.c (init_regcache_descr): Update.
5992 (read_register_gen): Update.
5993 (write_register_gen): Update.
5994 (supply_register): Update comment.
5995
5996 * sh-tdep.c (sh_gdbarch_init): Update.
5997 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5998 `regcache' and `gdbarch' parameters. Make `buffer' a void
5999 pointer. Update code.
6000 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6001 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6002 void pointer. Update code.
6003 (sh64_register_write): Delete.
6004 (sh4_register_read): Delete.
6005 (sh64_register_read): Delete.
6006 (sh4_register_write): Delete.
6007 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6008 void pointer, `to' parameter a void pointer.
6009 (sh_sh64_register_convert_to_raw): Ditto.
6010
6011 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6012
6013 * mips-tdep.c (mips_register_virtual_type): Use architecture
6014 invariant return values.
6015
6016 2002-08-01 Andrew Cagney <cagney@redhat.com>
6017
6018 * linux-proc.c: Include "gdb_string.h".
6019 * Makefile.in (linux-proc.o): Update dependency list.
6020
6021 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6022
6023 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6024 comment.
6025
6026 2002-08-01 Grace Sainsbury <graces@redhat.com>
6027
6028 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6029 to_insert_watchpoint, to_remove_watchpoint,
6030 to_stopped_by_watchpoint, to_stopped_data_address,
6031 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6032 target vecctor. Define their corresponding macros so they call
6033 them.
6034
6035 * target.c: Add default and debug versions of for
6036 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6037 to_insert_watchpoint, to_remove_watchpoint,
6038 to_stopped_by_watchpoint, to_stopped_data_address,
6039 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6040
6041 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6042
6043 * mips-tdep.c (mips_register_virtual_type): New function.
6044 (mips_gdbarch_init): Register mips_register_virtual_type()
6045 with gdbarch machinery.
6046 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6047 this file instead of tm-bigmips.h.
6048 (MIPS_REGSIZE): Delete this macro.
6049 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6050 multiarch version in mips-tdep.c will be found.
6051
6052 2002-08-01 Andrew Cagney <cagney@redhat.com>
6053
6054 * NEWS: Menion that CHILL has been made obsolete.
6055
6056 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6057 * stabsread.c (read_range_type): Ditto.
6058 * gdbtypes.h: Ditto.
6059 * language.c (binop_type_check): Ditto.
6060 (binop_result_type): Ditto.
6061 (integral_type): Ditto.
6062 (character_type): Ditto.
6063 (string_type): Ditto.
6064 (boolean_type): Ditto.
6065 (structured_type): Ditto.
6066 (lang_bool_type): Ditto.
6067 (binop_type_check): Ditto.
6068 * language.h (_LANG_chill): Ditto.
6069 * dwarfread.c (set_cu_language): Ditto.
6070 * dwarfread.c (CHILL_PRODUCER): Ditto.
6071 * dwarfread.c (handle_producer): Ditto.
6072 * expression.h (enum exp_opcode): Ditto.
6073 * eval.c: Ditto for comments.
6074 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6075 * expprint.c (print_subexp): Ditto.
6076 (print_subexp): Ditto.
6077 * valops.c (value_cast): Ditto.
6078 (search_struct_field): Ditto.
6079 * value.h (COERCE_VARYING_ARRAY): Ditto.
6080 * symfile.c (init_filename_language_table): Ditto.
6081 (add_psymbol_with_dem_name_to_list): Ditto.
6082 * valarith.c (value_binop): Ditto.
6083 (value_neg): Ditto.
6084 * valops.c (value_slice): Ditto.
6085 * symtab.h (union language_specific): Ditto.
6086 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6087 (SYMBOL_DEMANGLED_NAME): Ditto.
6088 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6089 * defs.h (enum language): Ditto.
6090 * symtab.c (got_symtab): Ditto.
6091 * utils.c (fprintf_symbol_filtered): Ditto.
6092
6093 * ch-typeprint.c: Make file obsolete.
6094 * ch-valprint.c: Make file obsolete.
6095 * ch-lang.h: Make file obsolete.
6096 * ch-exp.c: Make file obsolete.
6097 * ch-lang.c: Make file obsolete.
6098
6099 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6100 CHILL_LIB.
6101 (TARGET_FLAGS_TO_PASS): Ditto.
6102 (CHILLFLAGS): Obsolete.
6103 (CHILL): Obsolete.
6104 (CHILL_FOR_TARGET): Obsolete.
6105 (CHILL_LIB): Obsolete.
6106 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6107 ch-valprint.c.
6108 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6109 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6110 ch-lang.o.
6111 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6112 targets.
6113
6114 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6115
6116 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6117 This does not change anything at the moment, but will be helpful
6118 later when full Ada support is integrated.
6119
6120 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6121
6122 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6123 help message.
6124
6125 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6126
6127 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6128 and save it in a local variable. Use variable in later test.
6129
6130 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6131
6132 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6133 test. (Thanks to Daniel Jacobowitz.)
6134
6135 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6136
6137 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6138 (mips_abi_strings): Add "n64".
6139 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6140
6141 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6142
6143 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6144 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6145
6146 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6147
6148 * utils.c (host_pointer_to_address, address_to_host_pointer):
6149 Use gdb_assert() instead of explicit call to internal_error().
6150
6151 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6152
6153 * Makefile.in (rs6000-nat.o): Update dependencies.
6154
6155 From Nicholas Duffek:
6156 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6157 (aix-thread.o): New rule.
6158 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6159 * config/powerpc/aix432.mh: New file.
6160
6161 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6162
6163 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6164 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6165 (fetch_core_registers, ppc_linux_supply_gregset)
6166 (ppc_linux_supply_fpregset): New functions.
6167 (ppc_linux_regset_core_fns): New.
6168 (_initialize_ppc_linux_tdep): Call add_core_fns.
6169 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6170 and ppc_linux_supply_gregset.
6171 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6172 (supply_fpregset): Call ppc_linux_supply_fpregset.
6173 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6174 corelow.o.
6175 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6176
6177 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6178
6179 * symtab.c (lookup_symbol): Demangle before lowercasing.
6180
6181 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6182
6183 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6184 declaration.
6185 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6186 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6187 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6188 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6189 "gdb_string.h".
6190 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6191 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6192 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6193 (avr-tdep.o, mon960-rom.o): Ditto.
6194 (aout_stabs_gnu_h): Define.
6195 (symtab_h): Remove $(gdb_obstack_h).
6196
6197 2002-07-30 Jim Blandy <jimb@redhat.com>
6198
6199 Patch from David Carlton <carlton@math.stanford.edu>:
6200 * gdbinit.in: Move the `dir' commands that add GDB's own source
6201 directory to the search path to the end, so that the `gdb' source
6202 directory will be searched first.
6203
6204 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6205
6206 * gdb_obstack.h: New file.
6207 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6208 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6209 * objfiles.h: Include "gdb_obstack.h".
6210 * Makefile.in (gdb_obstack_h): Define.
6211 (symtab_h): Add $(gdb_obstack_h).
6212 (objfiles_h): Add $(gdb_obstack_h).
6213
6214 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6215 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6216 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6217 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6218 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6219 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6220 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6221 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6222
6223 * Makefile.in (bcache.o): Update dependencies.
6224 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6225 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6226 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6227 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6228 (stabsread.o, symfile.o, symmisc.o): Ditto.
6229 (symtab.o, typeprint.o, macroexp.o): Ditto.
6230 (macrotab.o, mdebugread.o): Ditto.
6231 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6232 (coff_ecoff_h, aout_aout64_h): Define.
6233 (aout_stabs_gnu_h, libaout_h): Define.
6234
6235 2002-07-29 Andrew Cagney <cagney@redhat.com>
6236
6237 * regcache.c (struct regcache_descr): Rename nr_registers to
6238 nr_cooked_registers. Revise comments describing the structure
6239 member fields.
6240 (init_regcache_descr): Update.
6241 (init_legacy_regcache_descr): Update.
6242 (read_register_gen, write_register_gen): When a cooked register in
6243 the raw register range, directly access the value from the raw
6244 register cache.
6245
6246 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6247
6248 * z8k-tdep.c: Do not include "obstack.h".
6249 * h8300-tdep.c, h8500-tdep.c: Ditto.
6250 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6251 * valprint.c, v850-tdep.c: Ditto.
6252 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6253 * mn10200-tdep.c: Ditto.
6254
6255 * Makefile.in (z8k-tdep.o): Update dependencies.
6256 (m68hc11-tdep.o, valprint.o): Ditto.
6257 (v850-tdep.o, d10v-tdep.o): Ditto.
6258 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6259 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6260 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6261 (sh_opc_h, gdb_sim_sh_h): Define.
6262 (elf_sh_h, elf_bfd_h): Define.
6263 (opcode_m68hc11_h): Define.
6264 (OPCODES_SRC, OPCODES_DIR): define.
6265 (OPCODES): Use $(OPCODES_DIR).
6266 (gdb_sim_d10v_h): Rename sim_d10v_h.
6267 (gdb_sim_arm_h): Rename sim_arm_h.
6268
6269 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6270
6271 * utils.c (host_pointer_to_address, address_to_host_pointer):
6272 Change internal_error() message to indicate function responsible
6273 for the error.
6274
6275 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6276
6277 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6278 calls to local_hex_string_custom().
6279
6280 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6281
6282 * irix5-nat.c: Move IRIX shared library support from here...
6283 * solib-irix.c: ...to here. Revised substantially to work with
6284 generic solib framework.
6285
6286 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6287 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6288 * mips-irix-tdep.c: New file.
6289
6290 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6291 (mips-irix-tdep.o, solib-irix.o): New rules.
6292 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6293 solib-irix.o.
6294 * config/mips/irix6.mt (TDEPFILES): Likewise.
6295 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6296
6297 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6298
6299 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6300 disabled (via ``#if 0'') includes.
6301
6302 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6303
6304 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6305 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6306 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6307 Add support for the fpscr register.
6308 * rs6000-nat.c (regmap, fetch_inferior_registers)
6309 (store_inferior_registers, fetch_core_registers): Likewise.
6310
6311 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6312
6313 * rs6000-nat.c (language.h): Include.
6314 (special_regs): Delete this array.
6315 (regmap): New function.
6316 (fetch_register, store_register): Use regmap() to map gdb
6317 register numbers to ptrace register numbers. Also, use
6318 outputs from regmap() to make decisions regarding type of
6319 ptrace() call to make. In particular, don't compare against
6320 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6321 (fetch_inferior_registers, store_inferior_registers): Where
6322 possible, obtain register numbers from tdep struct. Don't
6323 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6324 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6325 (LAST_UISA_SP_REGNUM): Delete.
6326
6327 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6328
6329 * rs6000-nat.c (ppc-tdep.h): Include.
6330 (fetch_registers, store_register, fetch_core_registers): Don't
6331 access registers[] directly. Instead, use supply_register() or
6332 regcache_collect() as appropriate.
6333 (find_toc_address): Format hex address with local_hex_string().
6334
6335 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6336
6337 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6338 bfd/elf32-frv.c.
6339
6340 2002-07-24 Tom Tromey <tromey@redhat.com>
6341
6342 * jv-exp.y: Marked all strings with _().
6343 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6344 internal_error.
6345 (MethodInvocation, CastExpression, parse_number, yyerror,
6346 java_type_from_name, push_expression_name, yylex): Typo fixes.
6347
6348 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6349
6350 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6351 (tee_file_flush, tee_file_write, tee_file_fputs)
6352 (tee_file_isatty): New.
6353 * ui-file.h (tee_file_new): Add prototype.
6354
6355 2002-07-24 Aidan Skinner <aidan@velvet.net>
6356
6357 * ada-lang.c: Change k&r style function definitions to prototyped
6358 form.
6359 * ada-typeprint.c: Change k&r style function definitions to prototyped
6360 form.
6361 * ada-valprint.c: Change k&r style function definitions to prototyped
6362 form.
6363
6364 2002-07-24 Andrew Cagney <cagney@redhat.com>
6365
6366 * README: Remove reference to remote-bug.
6367 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6368 remote-bug.c.
6369 (m88k-nat.o): Delete rule.
6370 (m88k-tdep.o): Delete rule.
6371 (remote-bug.o): Delete rule.
6372 * MAINTAINERS: Mark as obsolete.
6373 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6374 * m88k-tdep.c: Make file obsolete.
6375 * config/m88k/m88k.mh: Ditto.
6376 * config/m88k/delta88v4.mh: Ditto.
6377 * config/m88k/delta88v4.mt: Ditto.
6378 * config/m88k/delta88.mt: Ditto.
6379 * config/m88k/delta88.mh: Ditto.
6380 * remote-bug.c: Ditto.
6381 * config/m88k/tm-delta88.h: Ditto.
6382 * config/m88k/nm-delta88v4.h: Ditto.
6383 * config/m88k/xm-delta88.h: Ditto.
6384 * config/m88k/xm-dgux.h: Ditto.
6385 * config/m88k/tm-m88k.h: Ditto.
6386 * config/m88k/nm-m88k.h: Ditto.
6387 * config/m88k/tm-delta88v4.h: Ditto.
6388 * m88k-nat.c: Ditto.
6389 * cxux-nat.c: Ditto.
6390 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6391 and m88*-*-* obsolete.
6392 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6393 m88*-*-* obsolete.
6394
6395 2002-07-24 Andrew Cagney <cagney@redhat.com>
6396
6397 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6398 constant. Same for local pointer variables.
6399 (extract_signed_integer): Ditto.
6400 * defs.h (extract_unsigned_integer): Update.
6401 (extract_signed_integer): Update.
6402
6403 2002-07-24 Andrew Cagney <cagney@redhat.com>
6404
6405 * regcache.c (regcache_raw_write): Change buf parameter to a
6406 constant void pointer.
6407 (regcache_raw_read): Change buf parameter to a void pointer.
6408 (legacy_write_register_gen): Change myaddr parameter a constant
6409 void pointer.
6410 (supply_register): Change val parameter to a const void pointer.
6411 * regcache.h (regcache_raw_write): Update declaration.
6412 (regcache_raw_read): Update declaration.
6413 (supply_register): Update declaration.
6414
6415 2002-07-24 Tom Tromey <tromey@redhat.com>
6416
6417 * defs.h (gdb_readline_wrapper): Declare.
6418 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6419 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6420 * top.c (gdb_readline_wrapper): New function.
6421 (command_line_input): Use it.
6422
6423 2002-07-24 Andrew Cagney <cagney@redhat.com>
6424
6425 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6426 regcache_read and regcache_write.
6427 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6428 * regcache.c: Update.
6429 * sh-tdep.c (sh64_push_arguments): Update comment.
6430 (sh_pseudo_register_read): Update.
6431 (sh_pseudo_register_write): Update.
6432 (sh4_register_read): Update.
6433 (sh4_register_write): Update.
6434 (sh64_pseudo_register_read): Update.
6435 (sh64_pseudo_register_write): Update.
6436 (sh64_register_read): Update.
6437 (sh64_register_write): Update.
6438 * i386-tdep.c (i386_extract_return_value): Update.
6439 (i386_extract_struct_value_address): Update.
6440 (i386_extract_return_value): Update.
6441 * blockframe.c (generic_read_register_dummy): Update.
6442 (generic_call_dummy_register_unwind): Update
6443 * infrun.c (write_inferior_status_register): Update.
6444
6445 2002-07-23 Jim Blandy <jimb@redhat.com>
6446
6447 * parser-defs.h (expression_context_pc): Make this extern.
6448 (Thanks to Michael Snyder.)
6449
6450 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6451
6452 GDB 5.2.1 released from 5.2 branch.
6453 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6454 * README: Update to mention 5.2.1.
6455
6456 2002-07-23 Mark Salter <msalter@redhat.com>
6457
6458 * remote.c (remote_read_bytes): Fix check for error.
6459
6460 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6461
6462 * aix-thread.c (language.h): Include.
6463 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6464 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6465 Print newlines at end of debug messages.
6466 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6467 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6468
6469 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6470
6471 * aix-thread.c (ppc-tdep.h): Include.
6472 (special_register_p): New function.
6473 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6474 (store_regs_user_thread): Use register number information from
6475 gdbarch_tdep struct instead of hardcoded offsets relative to
6476 FIRST_UISA_SP_REGNUM.
6477 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6478 special_register_p() instead of using FPLAST_REGNUM and
6479 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6480 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6481 will be MQ's register number.
6482
6483 2002-07-22 Michael Snyder <msnyder@redhat.com>
6484
6485 * aix-thread.c (ops): Rename to aix_thread_ops.
6486 (base_ops): Rename to base_target.
6487 (ops_attach): Rename to aix_thread_attach.
6488 (ops_detach): Rename to aix_thread_detach.
6489 (ops_resume): Rename to aix_thread_detach.
6490 (ops_wait): Rename to aix_thread_wait.
6491 (ops_kill): Rename to aix_thread_kill.
6492 (init_ops): Rename to init_aix_thread_ops.
6493 (ops_fetch_register): Rename to aix_thread_fetch_register.
6494 (ops_store_register): Rename to aix_thread_store_register.
6495 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6496 (ops_thread_alive): Rename to aix_thread_thread_alive.
6497 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6498 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6499 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6500 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6501 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6502 (store_regs_lib): Rename to store_regs_user_thread.
6503 (store_regs_kern): Rename to store_regs_kernel_thread.
6504
6505 2002-07-22 Michael Snyder <msnyder@redhat.com>
6506
6507 * aix-thread.c (ops_prepare_to_store): Eliminate.
6508 (init_ops): Don't initialize ops.prepare_to_store.
6509 (store_regs_kern): Pre-fetch register buffers from child,
6510 because some registers may not be in the cache. Copy
6511 regs from register cache only if they are cached.
6512 (store_regs_lib): Copy regs from register cache only
6513 if they are cached.
6514 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6515 fill_gprs64): Ditto.
6516
6517 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6518
6519 * aix-thread.c (gdb_assert.h): Include.
6520 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6521 register sizes (from register cache) match size of buffer holding
6522 register data.
6523 (fill_sprs32): Change parameter types to match those in the ptrace()
6524 buffer.
6525 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6526 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6527
6528 2002-07-22 Michael Snyder <msnyder@redhat.com>
6529
6530 * aix-thread.c (supply_sprs64): Cosmetic change.
6531 (supply_sprs32): Cosmetic change.
6532 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6533 (fill_sprs64): Use regcache_collect instead of read_register.
6534 (store_regs_lib): Use regcache_collect instead of
6535 read_register. Use fill_sprs32 instead of fill_sprs64,
6536 if debugging a 32-bit architecture.
6537 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6538 out of the register cache, instead of passing a pointer into
6539 the register cache directly to ptrace. Use regcache_collect
6540 insteaad of read_register.
6541 (ops_prepare_to_store): Use target_read_registers instead
6542 of read_register_bytes.
6543
6544 2002-07-20 Aidan Skinner <aidan@velvet.net>
6545
6546 * MAINTAINERS: Add self under write after approval.
6547
6548 2002-07-20 Aidan Skinner <aidan@velvet.net>
6549
6550 * ada-tasks.c: Change k&r style function definitions to prototyped
6551 form.
6552
6553 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6554
6555 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6556 * x86-64-tdep.c: Include "objfiles.h".
6557 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6558 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6559
6560 2002-07-17 Michal Ludvig <michal@suse.cz>
6561
6562 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6563 (update_context): Initialise cfa variable.
6564
6565 2002-07-17 Michael Snyder <msnyder@redhat.com>
6566
6567 * aix-thread.c: Shorten some long lines.
6568 Bring comments into line with code spec.
6569
6570 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6571
6572 * infrun.c: Re-indent using gdb_indent.sh.
6573
6574 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6575
6576 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6577 Leave the indentation temporarily untouched, to minimize the diffs.
6578
6579 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6580
6581 * stabsread.c: Make os9k sections of the code obsolete,
6582 for real this time.
6583 * stabsread.h: Make os9k sections of the code obsolete.
6584
6585 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6586
6587 * linux-low.c (regsets_store_inferior_registers): Add free()
6588 at the end of a loop to prevent memory leak.
6589 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6590 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6591 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6592 line a comment.
6593 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6594
6595 2002-07-17 Jim Blandy <jimb@redhat.com>
6596
6597 * macrocmd.c (info_macro_command): Remove newline from error
6598 message.
6599
6600 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6601
6602 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6603 (sh_gdbarch_init): Use it for sh-dsp.
6604
6605 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6606
6607 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6608 64-bit DWARF2 format.
6609
6610 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6611
6612 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6613 <sys/proc.h> when not available.
6614
6615 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6616
6617 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6618 * stabsread.c: Make os9k sections of the code obsolete.
6619 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6620 * config/i386/i386os9k.mt: Make file obsolete.
6621 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6622 (COMMON_OBS): Remove os9kread.o
6623 (SFILES): Remove os9kread.c.
6624 (os9kread.o, remote-os9k.o): Make target obsolete.
6625 * remote-os9k.c: Make file obsolete.
6626 * os9kread.c: Make file obsolete.
6627 * Makefile.in
6628
6629 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6630
6631 * NEWS: Mention that the FR30 has been made obsolete.
6632 * fr30-tdep.c: Make file obsolete.
6633 * config/fr30/tm-fr30.h: Ditto.
6634 * config/fr30/fr30.mt: Ditto.
6635 * configure.tgt: Make fr30-*-elf obsolete.
6636 * MAINTAINERS: Make fr30-elf obsolete.
6637
6638 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6639
6640 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6641 found is not inside a section.
6642
6643 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6644
6645 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6646 strerror().
6647 (pdc_realloc): Use xrealloc() instead of realloc().
6648
6649 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6650
6651 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6652 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6653 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6654 macros.
6655
6656 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6657
6658 * aix-thread.c (ptrace_check): Eliminate goto.
6659 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6660 problem.
6661
6662 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6663
6664 * aix-thread.c (gdbcmd.h): Include.
6665 (DEBUG, DBG, DBG2, dbg): Eliminate.
6666 (debug_aix_thread): New static global.
6667 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6668 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6669 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6670 invocations to DBG and DBG2 macros to test against
6671 ``debug_aix_thread'' and call fprintf_unfiltered().
6672 (_initialize_aix_thread): Add new command "set debug aix-thread".
6673
6674 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6675
6676 From Gerhard Tonn <TON@de.ibm.com>:
6677 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6678 instead of supply_register.
6679
6680 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6681
6682 * dwarf2cfi.c: Include "gdb_assert.h".
6683 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6684 non-NULL.
6685 (update_context): Do not use __func__. Add missing ``break''.
6686 (update_context): Do not use __func__.
6687
6688 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6689
6690 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6691 and its setting. Set gdbarch instruction printing functions
6692 directly. For non-rs6000 case use new function
6693 gdb_print_insn_powerpc.
6694 (gdb_print_insn_powerpc): New function.
6695
6696 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6697
6698 * NEWS: Mention that the d30v has been marked obsolete.
6699 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6700 * configure.tgt: Mark d30v-*-* as obsolete.
6701 * d30v-tdep.c: Mark file as obsolete.
6702 * config/d30v/d30v.mt: Ditto.
6703 * config/d30v/tm-d30v.h: Ditto.
6704
6705 2002-07-13 Aidan Skinner <aidan@velvet.net>
6706
6707 * ada-tasks.c (add_task_entry): replace calls to
6708 malloc() with xmalloc
6709 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6710
6711 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6712 ada_finish_decode_line_1, all_sals_for_line
6713 ada_breakpoint_rewrite): replace calls to free() with xfree()
6714
6715 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6716
6717 From Nicholas Duffek (with minor changes by Martin Hunt,
6718 Louis Hamilton, and Kevin Buettner):
6719 * aix-thread.c: New file.
6720
6721 2002-07-12 Petr Sorfa <petrs@caldera.com>
6722
6723 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6724 complaint for invalid attribute class or form.
6725 (read_func_scope): DW_AT_frame_base
6726 better handling of DW_AT_block*.
6727 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6728 better handling of DW_AT_block*.
6729 (read_common_block): DW_AT_location
6730 better handling of DW_AT_block*.
6731 (read_partial_die): DW_AT_location better handling
6732 of DW_AT_block*.
6733 (new_symbol): DW_AT_external better handling of
6734 DW_AT_block*. Proper initialization of variable
6735 "addr".
6736 (attr_form_is_block): New function that returns true
6737 if the attribute's form is of DW_FORM_block*.
6738
6739 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6740
6741 * valops.c (find_method_list): Remove comment about
6742 removed STATIC_MEMFUNCP argument.
6743 (value_find_oload_method_list): Likewise.
6744
6745 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6746
6747 From Nicholas Duffek:
6748 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6749 target_new_objfile_hook.
6750
6751 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6752
6753 From Nicholas Duffek:
6754 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6755 csect.
6756
6757 2002-07-12 Andrew Cagney <cagney@redhat.com>
6758
6759 * MAINTAINERS: Mention --enable-sim-build-warnings.
6760 (m68hc11-elf): Disable sim build warnings.
6761 (m32r-elf): Mark as broken obsolete candidate.
6762 (x86_64-linux-gnu): Mark as buildable with -Werror.
6763 (arm-elf): Change -w to ``,'' which enables warnings but not
6764 -Werror.
6765
6766 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6767
6768 * bcache.h: Update copyright.
6769 (struct bstring, struct bcache): Move definition to "bcache.c".
6770 Replaced by opaque declaration.
6771 (bcache_xfree): Replace free_bcache.
6772 (bcache_xmalloc, bcache_memory_used): Declare.
6773
6774 * bcache.c: Update copyright.
6775 (struct bstring, struct bcache): Moved to here from "bcache.h".
6776 Update comments.
6777 (bcache_xmalloc, bcache_memory_used): New functions.
6778 (bcache_xfree): Replace function free_bcache.
6779
6780 * Makefile.in (objfiles.o): Add $(bcache_h).
6781 (objfiles_h): Remove $(bcache_h).
6782 (symfile.o): Add $(bcache_h).
6783
6784 * symmisc.c: Update copyright.
6785 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6786 (print_objfile_statistics): Use bcache_memory_used.
6787
6788 * symfile.c: Include "bcache.h".
6789 (reread_symbols): Use bcache_xfree.
6790 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6791 (add_psymbol_to_list): Pass psymbol_cache by value.
6792 (add_psymbol_with_dem_name_to_list): Ditto.
6793
6794 * objfiles.h: Update copyright.
6795 (struct bcache): Declare opaque. Do not include "bcache.h".
6796 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6797 bcache'' pointers.
6798 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6799
6800 * objfiles.c: Include "bcache.h". Update copyright.
6801 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6802 macro_cache.
6803 (free_objfile): Use bcache_xfree.
6804
6805 2002-07-11 Grace Sainsbury <graces@redhat.com>
6806
6807 * monitor.c (monitor_fetch_register): Make name a constant.
6808 (monitor_store_register): Same.
6809
6810 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6811
6812 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6813 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6814 (finish_block) For non-function blocks, hash the symbol table. For
6815 function blocks, mark the symbol table as unhashed.
6816 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6817 (msymbol_hash_iw): Likewise.
6818 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6819 value.
6820 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6821 (lookup_minimal_symbol): Likewise for both.
6822 * symtab.h (struct block): Add `hashtable' flag. Comment the
6823 hashtable.
6824 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6825 (ALL_BLOCK_SYMBOLS): Update.
6826 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6827 (struct symbol): Add `hash_next' pointer.
6828 * symtab.c (lookup_block_symbol): Search using the hash table when
6829 possible.
6830 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6831 (search_symbols, find_addr_symbol): Likewise.
6832
6833 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6834 (read_dst_symtab): Likewise.
6835 * jv-lang.c (get_java_class_symtab): Likewise.
6836 * mdebugread.c: Include "gdb_assert.h".
6837 (shrink_block): Assert that the block being modified is not hashed.
6838 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6839 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6840 symbols.
6841 (dump_symtab): Recognize hashed blocks.
6842 * printcmd.c (print_frame_args): Assert that function blocks do not
6843 have hashed symbol tables.
6844 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6845 (fill_in_ada_prototype, debug_print_block): Likewise.
6846 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6847
6848 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6849
6850 * stack.c (print_frame): Use result of frame_address_in_block()
6851 instead of fi->pc when evaluating symbols.
6852 (backtrace_command_1): Ditto.
6853
6854 2002-07-11 Andrew Cagney <cagney@redhat.com>
6855
6856 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6857 Make static.
6858
6859 * arm-tdep.c (arm_register_name): Make return type constant.
6860
6861 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6862
6863 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6864 prototype.
6865 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6866 * s390-tdep.c (s390_fp_regnum): Ditto.
6867 (s390_read_fp): Ditto.
6868 (s390_pop_frame): Ditto.
6869 (_initialize_s390_tdep): Ditto.
6870 * remote.c (get_remote_state): Ditto.
6871 * procfs.c (mappingflags): Ditto.
6872 * memattr.c (_initialize_mem): Ditto.
6873 * mcore-tdep.c (mcore_pop_frame): Ditto.
6874 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6875 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6876 * language.c (set_case_str): Ditto.
6877 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6878 * frv-tdep.c (new_variant): Ditto.
6879 (frv_stopped_data_address): Ditto.
6880 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6881 (context_alloc): Ditto.
6882 (frame_state_alloc): Ditto.
6883 (unwind_tmp_obstack_init): Ditto.
6884 (unwind_tmp_obstack_free): Ditto.
6885 (cfi_read_fp): Ditto.
6886 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6887 (cris_pop_frame): Ditto.
6888 * c-lang.c (scanning_macro_expansion): Ditto.
6889 (finished_macro_expansion): Ditto.
6890 (c_preprocess_and_parse): Ditto.
6891 * gdbarch.sh: Ditto.
6892 * gdbarch.h, gdbarch.c: Regenerate.
6893 * config/mn10200/tm-mn10200.h: Adjust indentation.
6894 * target.c: Adjust indentation.
6895 * symtab.h: Adjust indentation.
6896 * stabsread.h: Adjust indentation.
6897 * remote-es.c: Adjust indentation.
6898 * os9kread.c: Adjust indentation.
6899
6900 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6901
6902 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6903 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6904
6905 2002-07-10 Grace Sainsbury <graces@redhat.com>
6906
6907 * NEWS: Mention m68k, mcore multi-arching.
6908 * MAINTAINERS: Change status of m68k, mcore to reflect
6909 multi-arching.
6910
6911 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6912
6913 * valops.c (find_overload_match): Free oload_syms.
6914
6915 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6916
6917 Define HAVE_SYS_PROC_H if sys/proc.h exists
6918 * configure.in: Add check for sys/proc.h
6919 * config.in: Regenerate.
6920 * configure: Regenerate.
6921
6922 2002-07-09 Grace Sainsbury <graces@redhat.com>
6923
6924 * config/m68k/tm-m68k.h: Remove macros wrapped in
6925 #if !GDB_MULTI_ARCH.
6926
6927 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6928
6929 * config.in, configure: Regenerate.
6930
6931 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6932
6933 * dwarf2cfi.c: Include "gcore.h".
6934 (execute_stack_op): Fix implementation of the
6935 DW_OP_deref and DW_OP_deref_size operators by letting do their
6936 lookup in the target.
6937
6938 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6939
6940 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6941 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6942 tdep->sc_sp_offset.
6943
6944 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6945
6946 Fix PR gdb/595, gdb/602
6947 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6948 Don't call value_cast, just read the vtable pointer; update comments
6949 to match.
6950
6951 2002-07-05 Grace Sainsbury <graces@redhat.com>
6952
6953 * config/mcore/tm-mcore.h: Remove file.
6954 * config/mcore/mcore.mt: Remove definition of TM_FILE
6955 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6956
6957 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6958
6959 * i386bsd-tdep.c: Include "gdb_string.h".
6960
6961 2002-07-04 Grace Sainsbury <graces@redhat.com>
6962
6963 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6964 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6965 mcore-tdep.
6966 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6967 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6968 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6969 (RETVAL_REGNUM): Move macros from tm-mcore.h
6970 (mcore_reg_struct_has_addr): New function.
6971 (mcore_gdbarch_init): Added initializations for the macros removed
6972 from tm-mcore.h.
6973
6974 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6975
6976 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6977 traditonal string branding within the ELF header.
6978
6979 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6980
6981 * symtab.c (remove_params): New function.
6982 (make_symbol_overload_list): Use it instead of cplus_demangle.
6983 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6984
6985 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6986
6987 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6988
6989 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6990 New variables.
6991 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6992 and tdep->sigtramp_end.
6993 * i386obsd-nat.c: New file.
6994 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6995
6996 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6997 Don't call get_current_frame().
6998
6999 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7000
7001 * i386-nat.c (child_post_startup_inferior): New function
7002 calling i386_cleanup_dregs if
7003 I386_USE_GENERIC_WATCHPOINTS is defined.
7004 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7005 conditional to acknowledge that i386-nat.c has its
7006 own child_post_startup_inferior function.
7007
7008 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7009
7010 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7011 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7012 instead of MAX_REGISTER_RAW_SIZE.
7013 (i386_extract_return_value, i386_extract_struct_value_address):
7014 Convert to use regcache.
7015 (i386_gdbarch_init): Set max_register_raw_size and
7016 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7017 Set extract_return_value and extract_struct_value_address instead
7018 of their deprecated variants.
7019
7020 Convert i386 target to generic dummy frames.
7021 * i386-tdep.c: Include "symfile.h".
7022 (i386_frameless_signal_p): Consider a function to be frameless if
7023 the pc points at the first instruction of the function.
7024 (i386_frame_chain): Handle (generic) call dummies.
7025 (i386_frame_saved_pc): Likewise.
7026 (i386_frame_init_saved_regs): Remove code dealing with call
7027 dummies on the stack.
7028 (i386_push_dummy_frame): Removed.
7029 (i386_call_dummy_words): Removed.
7030 (i386_fix_call_dummy): Removed.
7031 (i386_push_return_address): New function.
7032 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7033 parameter, and don't call get_current_frame.
7034 (i386_pop_frame): New function.
7035 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7036 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7037 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7038 call_dummy_length to 0, set call_dummy_words to NULL, set
7039 sizeof_call_dummy_words to 0, set fix_call_dummy to
7040 generic_fix_call_dummy, set pc_in_call_dummy to
7041 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7042 generic_push_dummy_frame, set push_return_address to
7043 i386_push_return_address and set frame_chain_valid to
7044 generic_file_frame_chain_valid.
7045
7046 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7047
7048 * gdbarch.sh (struct regcache): Add opaque declaration.
7049 (EXTRACT_RETURN_VALUE): New architecture method.
7050 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7051 * gdbarch.h, gdbarch.c: Regenerate.
7052 * arch-utils.c (legacy_extract_return_value): New function.
7053 * arch-utils.h (legacy_extract_return_value): Declare.
7054 * values.c (value_being_returned): Re-enable code handling
7055 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7056 deprecated_grub_regcache_for_registers call to block handling
7057 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7058 (EXTRACT_RETURN_VALUE): Do not define.
7059
7060 2002-07-03 Grace Sainsbury <graces@redhat.com>
7061
7062 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7063 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7064 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7065 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7066 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7067 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7068 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7069 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7070 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7071 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7072 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7073 argument so the function fits the prototype in the architecture
7074 vector.
7075 (mcore_pop_frame): Remove argument so the function fits the
7076 prototype. Use get_current_frame instead of the argument.
7077 (mcore_push_arguments): Change type of struct_return so the
7078 function can be used in the architecture vector.
7079 (mcore_store_struct_return): Add.
7080 (mcore_frame_init_saved_regs): Add.
7081 (mcore_gdbarch_init): Add function calls to replace the macros
7082 removed from tm-mcore.h
7083
7084 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7085
7086 * infcmd.c (print_return_value): Remove compatibility code calling
7087 deprecated_grub_regcache_for_registers.
7088
7089 * values.c: Include "regcache.h".
7090 (value_being_returned): Update. Use
7091 deprecated_grub_regcache_for_registers to extract the register
7092 buffer address.
7093 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7094 ``struct regcache''.
7095 * Makefile.in (values.o): Add dependency on $(regcache_h).
7096
7097 * inferior.h (run_stack_dummy): Change type of second parameter to
7098 a ``struct regcache''.
7099 * valops.c (hand_function_call): Change type of retbuf to ``struct
7100 regcache''. Allocate using regcache_xmalloc, clean using
7101 make_cleanup_regcache_xfree.
7102 * infcmd.c (run_stack_dummy): Update. Use
7103 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7104
7105 * regcache.c (do_regcache_xfree): New function.
7106 (make_cleanup_regcache_xfree): New function.
7107 * regcache.h (make_cleanup_regcache_xfree): Declare.
7108
7109 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7110
7111 * event-top.c (command_line_handler): Don't read past
7112 beginning of buffer.
7113
7114 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7115
7116 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7117 struct frame_id.
7118 (varobj_create): Store frame_id for root.
7119 (varobj_gen_name): Use xasprintf.
7120 (varobj_update): Save and restore frame using get_frame_id() and
7121 frame_find_by_id().
7122 (create_child): Use xasprintf.
7123 (new_root_variable): Initialize frame_id.
7124 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7125 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7126 to prevent memory leak.
7127
7128 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7129
7130 * valops.c (hand_function_call): Move declaration of retbuf to
7131 start of function, allocate using malloc, add a cleanup but before
7132 the inf_status cleanup, cleanup the buffer. Rename local variable
7133 old_chain to inf_status_cleanup.
7134
7135 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7136
7137 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7138
7139 * cli/cli-decode.c (cmd_func_p): New function.
7140 (cmd_func): New function.
7141
7142 * command.h: Add cmd_func() and cmd_func_p().
7143
7144 2002-07-03 Grace Sainsbury <graces@redhat.com>
7145
7146 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7147 (REGISTER_SIZE): Remove.
7148 (MAX_REGISTER_RAW_SIZE): Remove.
7149 (REGISTER_VIRTUAL_TYPE): Remove.
7150 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7151 (REGISTER_NAME): Remove.
7152 (USE_GENERIC_DUMMY_FRAMES): Remove.
7153 (CALL_DUMMY): Remove.
7154 (CALL_DUMMY_START_OFFSET): Remove.
7155 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7156 (CALL_DUMMY_LOCATION): Remove.
7157 (FIX_CALL_DUMMY): Remove.
7158 (CALL_DUMMY_ADDRESS): Remove.
7159 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7160 (SAVE_DUMMY_FRAME_TOS): Remove.
7161 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7162 (mcore_register_virtual_type): New function.
7163 (mcore_register_byte): New function.
7164 (mcore_register_size): New function.
7165 (mcore_register_name): New function.
7166 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7167 macros removed from tm-mcore.h.
7168 (mcore_dump_tdep): Add.
7169 (_initialize_mcore_tdep): Add gdbarch_register call.
7170
7171 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7172
7173 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7174 frameless_look_for_prologue, such that we actually call this
7175 function.
7176
7177 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7178
7179 * frame.h (frame_address_in_block): New function.
7180
7181 * blockframe.c (frame_address_in_block): New function extracted
7182 from get_frame_block().
7183 (get_frame_block): Use frame_address_in_block().
7184 (block_innermost_frame): Use frame_address_in_block() to match
7185 the frame pc address against the block boundaries rather than
7186 the frame pc directly. This prevents a failure when a frame pc
7187 is actually a return-address pointing immediately after the end
7188 of the given block.
7189
7190 2002-07-02 Grace Sainsbury <graces@redhat.com>
7191
7192 * MAINTAINERS: Add self under write after approval.
7193
7194 2002-07-02 Grace Sainsbury <graces@redhat.com>
7195
7196 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7197 used in architecture vector. The default is
7198 m68k_local_breakpoint_from_pc.
7199 (m68k_local_breakpoint_from_pc): Add.
7200 (enum): Add register numbers from tm-m68k.h.
7201 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7202 vector.
7203 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7204 GDB_MULTI_ARCH_PARTIAL.
7205 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7206 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7207 m68k-tdep.c.
7208 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7209 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7210 to enum in m68k-tdep.c
7211
7212 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7213
7214 * solib-osf.c (open_map): Compute the list of shared libraries
7215 loaded by the inferior, rather than the list of libraries loaded
7216 by GDB itself. Otherwise, GDB ends up reading the symbols from
7217 the wrong shared libraries...
7218
7219 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7220
7221 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7222 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7223 macros.
7224 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7225 Remove functions.
7226 (FRAMELESS_SIGNAL): Remove function.
7227 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7228 i386_linux_saved_pc_after_call): Removed.
7229 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7230 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7231 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7232
7233 * i386-tdep.c (i386_frameless_signal_p): New function.
7234 (i386_frame_chain): Deal with frameless signals.
7235 (i386_sigtramp_saved_sp): New function.
7236 (i386_frame_saved_pc): Deal with frameless signals.
7237 (i386_saved_pc_after_call): Make sure the correct value is
7238 returned just after entry into a sigtramp.
7239 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7240 i386fbsd4_sc_sp_offset): New variables.
7241 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7242 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7243 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7244 similiar to what we already did for sc_pc_offset.
7245 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7246 tdep->sc_sp_offset.
7247
7248 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7249
7250 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7251
7252 * config/i386/tm-x86-64linux.h: New.
7253 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7254 definitions.
7255 * config/i386/nm-x86-64.h: Rename to ...
7256 * config/i386/nm-x86-64linux.h: ... this one.
7257 * config/i386/x86-64linux.mh: Reflect the above change.
7258
7259 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7260
7261 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7262 with sigcontext_addr. Add sc_sp_offset.
7263 (i386bsd_sigtramp_saved_pc): Remove prototype.
7264 (i386bsd_sicontext_addr): Add prototype.
7265 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7266 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7267 (i386_svr4_sigtramp_saved_pc): Removed.
7268 (i386_svr4_sigcontext_addr): New function.
7269 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7270 Initialize tdep->sigcontext_addr instead. Initialize
7271 tdep->sc_pc_offset and tdep->sc_sp_offset.
7272 (i386_gdbarch_init): Likewise.
7273 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7274 any more.
7275 (i386bsd_sigtramp_saved_pc): Remove function.
7276 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7277 Initialize tdep->sigcontext_addr instead. Initialize
7278 tdep->sc_pc_offset.
7279 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7280 of tdep->sigtramp_saved_pc.
7281 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7282 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7283 instead.
7284
7285 * i386-tdep.c (i386_frameless_function_invocation,
7286 i386_frame_num_args, i386_frame_init_saved_regs,
7287 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7288 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7289 i386_extract_return_value, i386_store_return_value,
7290 i386_extract_struct_value_address, i386_register_virtual_type,
7291 i386_register_convertible, i386_register_convert_to_virtual,
7292 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7293 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7294 static.
7295
7296 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7297
7298 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7299
7300 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7301 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7302 this macro. Include "value.h".
7303
7304 2002-06-30 Aidan Skinner <aidan@velvet.net>
7305
7306 * ada-exp.tab.c: remove as it's a generated file
7307 * ada-lex.c: remove as it's a generated file
7308
7309 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7310
7311 * config/i386/tm-i386.h (struct frame_info, struct
7312 frame_saved_regs, struct value, struct type): Remove forward
7313 declarations.
7314
7315 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7316 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7317 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7318 (FILL_FPXREGSET): Define.
7319
7320 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7321
7322 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7323 i[3456]86-*-netbsd* case.
7324 * config/i386/tm-obsd.h: Removed.
7325 * config/i386/obsd.mt: Removed.
7326 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7327 core-aout.o.
7328 (MH_CFLAGS): Add -DYYDEBUG=0.
7329
7330 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7331 i386nbsd_sc_pc_offset on OpenBSD too.
7332
7333 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7334 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7335 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7336 define.
7337 * i386bsd-tdep.c: Include "arch-utils.h".
7338 (i386bsd_aout_in_solib_call_trampoline): New function.
7339 (i386bsd_init_abi): Set in_solib_call_trampoline to
7340 i386bsd_aout_in_solib_call_trampoline.
7341 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7342 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7343
7344 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7345
7346 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7347 (struct obstack, struct bcache): Add opaque declarations.
7348 * Makefile.in (macrotab_h): Update
7349
7350 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7351
7352 * blockframe.c (generic_find_dummy_frame): Change return type to
7353 ``struct regcache''.
7354 (struct dummy_frame): Replace field ``registers'' with regcache, a
7355 struct regcache object.
7356 (generic_find_dummy_frame): Update.
7357 (generic_push_dummy_frame): Update. Use regcache_xfree,
7358 regcache_xmalloc and regcache_cpy.
7359 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7360 regcache_xfree.
7361 (deprecated_generic_find_dummy_frame): Update.
7362 (generic_read_register_dummy): Update. Use
7363 regcache_read_as_address.
7364 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7365 (generic_get_saved_register): Update. Use regcache_read.
7366
7367 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7368
7369 * Makefile.in (objfiles_h): Add $(bcache_h).
7370 * objfiles.h: Include "bcache.h".
7371
7372 * Makefile.in (symtab_h): Remove $(bcache_h).
7373 * symtab.h: Do not include "bcache.h".
7374
7375 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7376
7377 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7378 generic_func_frame_chain_valid.
7379
7380 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7381
7382 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7383 * config/i386/tm-fbsd.h: Likewise.
7384
7385 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7386
7387 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7388 generic_unwind_get_saved_register.
7389
7390 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7391
7392 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7393 * regcache.c (supply_register): Add missing argument to
7394 register_buffer call.
7395
7396 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7397
7398 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7399 Solaris /bin/grep does not not like it. From Peter Schauer.
7400
7401 2002-06-26 Tom Tromey <tromey@redhat.com>
7402
7403 * command.h (add_setshow_cmd): Declare.
7404 (add_setshow_cmd_full): Declare.
7405 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7406 returns void. Use add_setshow_cmd_full.
7407 (add_setshow_cmd_full): New function.
7408 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7409 (add_setshow_boolean_cmd): Likewise.
7410
7411 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * config/vax/tm-vax.h: Protect from multiple inclusion.
7414 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7415 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7416 * config/vax/tm-vaxbsd.h: ...here. New file.
7417 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7418
7419 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7420
7421 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7422 (BELIEVE_PCC_PROMOTION): Remove.
7423 (AP_REGNUM): Move to...
7424 * config/vax/nm-vax.h: ...here.
7425 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7426 (vax_breakpoint_from_pc): New function.
7427 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7428 and gdbarch_believe_pcc_promotion.
7429
7430 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * Makefile.in (vax_tdep_h): Define.
7433 (vax-tdep.o): Use $(vax_tdep_h).
7434 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7435 (vax_dump_tdep): New function.
7436 (_initialize_vax_tdep): Register vax_dump_tdep.
7437 * vax-tdep.h: Include osabi.h.
7438 (struct gdbarch_tdep): New.
7439
7440 2002-06-26 Andrew Cagney <cagney@redhat.com>
7441
7442 * frame.h (deprecated_generic_find_dummy_frame): Rename
7443 generic_find_dummy_frame.
7444 * blockframe.c (generic_find_dummy_frame): Make static.
7445 (deprecated_generic_find_dummy_frame): New function.
7446 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7447 generic_find_dummy_frame with deprecated_find_dummy_frame.
7448 (sh64_nofp_frame_init_saved_regs): Ditto.
7449 (sh_fp_frame_init_saved_regs): Ditto.
7450 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7451 (s390_frame_chain): Ditto.
7452 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7453
7454 2002-06-26 Grace Sainsbury <graces@redhat.com>
7455
7456 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7457 gdbarch vector are at the top.
7458 (NUM_REGS): Remove.
7459 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7460 (FRAME_ARGS_ADDRESS): Remove.
7461 (FRAME_LOCALS_ADDRESS): Remove.
7462 (FRAME_NUM_ARGS): Remove.
7463 (FRAME_ARGS_SKIP): Remove.
7464 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7465 (m68k_gdbarch_init): Add gdbarch initializations for macros
7466 undefined in tm-m68k.h
7467
7468 2002-06-26 Grace Sainsbury <graces@redhat.com>
7469
7470 * monitor.h: Add the function regname to monitor_ops
7471 structure. This way NUM_REGS does not have to be a constant.
7472 * monitor.c (monitor_fetch_register): Added support for regname
7473 function. The function is called if the array regnames is NULL.
7474 (monitor_store_register): Same.
7475 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7476 regnames array.
7477 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7478 cpu32bug_cmds.regname to point to new function.
7479 * abug-rom.c (abug_regname): Same as above.
7480 (init_abug_cmds): Same.
7481 * dbug-rom.c (dbug_regname): Same as above.
7482 (init_dbug_cmds): Same.
7483 * remote-est.c (est_regname): Same.
7484 (init_est_cmds): Same.
7485 * rom68k-rom.c (rom68k_regname): Same.
7486 (init_rom68k_cmds): Same.
7487
7488 2002-06-25 Tom Tromey <tromey@redhat.com>
7489
7490 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7491
7492 2002-06-25 Andrew Cagney <cagney@redhat.com>
7493
7494 * infrun.c (stop_registers): Change variable's type to ``struct
7495 regcache'''.
7496 (xmalloc_inferior_status): Delete function.
7497 (free_inferior_status): Delete function.
7498 (normal_stop): Use regcache_cpy.
7499 (struct inferior_status): Change type of fields ``stop_registers''
7500 and ``registers'' to ``struct regcache''.
7501 (write_inferior_status_register): Use regcache_write.
7502 (save_inferior_status): Instead of calling
7503 xmalloc_inferior_status, allocate the inf_status buffer directly.
7504 Use regcache_dup_no_passthrough and regcache_dup to save the
7505 buffers.
7506 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7507 Replace the stop_registers regcache instead of overriding it. Use
7508 regcache_xfree. Instead of calling free_inferior_status, xfree
7509 the buffer directly.
7510 (discard_inferior_status): Use regcache_xfree. Instead of calling
7511 free_inferior_status, xfree the buffer directly.
7512 (build_infrun): Use regcache_xmalloc.
7513 (_initialize_infrun): Delete redundant call to build_infrun.
7514
7515 * Makefile.in (infcmd.o): Add $(regcache_h).
7516
7517 * infcmd.c: Include "regcache.h".
7518 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7519 obtain the address of `stop_registers' register buffer.
7520 (print_return_value): Ditto.
7521
7522 * inferior.h (struct regcache): Add opaque declaration.
7523 (stop_registers): Change variable's declared type to ``struct
7524 regcache''.
7525
7526 2002-06-24 Tom Tromey <tromey@redhat.com>
7527
7528 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7529 * target.c (initialize_targets): Fixed typo in
7530 trust-readonly-sections `show' documentation.
7531
7532 * main.c: Marked all strings with _().
7533
7534 2002-06-24 Don Howard <dhoward@redhat.com>
7535
7536 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7537 that means max CORE_ADDR+1.
7538 (lookup_mem_region): Ditto.
7539 (mem_info_command): Ditto.
7540
7541 2002-06-24 Grace Sainsbury <graces@redhat.com>
7542
7543 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7544 (REGISTER_BYTES_OK): Remove.
7545 (REGISTER_BYTES): Remove.
7546 (STORE_STRUCT_RETURN): Remove.
7547 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7548 (STORE_RETURN_VALUE): Remove.
7549 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7550 (FRAME_CHAIN): Remove.
7551 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7552 (FRAME_SAVED_PC): Remove.
7553 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7554 (m68k_store_struct_return): Add.
7555 (m68k_deprecated_extract_return_value): Add.
7556 (m68k_deprecated_extract_struct_value_address): Add.
7557 (m68k_store_return_value): Add.
7558 (m68k_frame_chain): Add.
7559 (m68k_frameless_function_invocation): Add.
7560 (m68k_frame_saved_pc): Add.
7561 (m68k_gdbarch_init): added set_gdbarch calls for new
7562 functions and deleted macros.
7563
7564 2002-06-23 Tom Tromey <tromey@redhat.com>
7565
7566 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7567 (ALLDEPFILES): Likewise.
7568 (udiheaders): Removed.
7569 (udip2soc.o): Likewise.
7570 (udi2go32.o): Likewise.
7571 (udr.o): Likewise.
7572 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7573
7574 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7575
7576 * infrun.c (_initialize_infrun): Delete unnecessary call to
7577 build_infrun.
7578
7579 * regcache.h: Update comments describing the regcache_cpy family
7580 of functions.
7581 (regcache_save, regcache_restore): Delete declaration.
7582 (regcache_save_no_passthrough): Delete declaration.
7583 (regcache_restore_no_passthrough): Delete declaration.
7584 * regcache.c (regcache_save): Delete function.
7585 (regcache_save_no_passthrough): Delete function.
7586 (regcache_restore): Delete function.
7587 (regcache_restore_no_passthrough): Delete function.
7588
7589 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7590
7591 * config/m68k/tm-m68k.h: Fix typo.
7592 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7593 (m68k_frame_init_saved_regs): Declare.
7594
7595 2002-06-21 Jim Blandy <jimb@redhat.com>
7596
7597 Remove some vestiges of Harris 88k support.
7598 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7599 register numbering quirk.
7600 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7601 odd symbols occurring in Harris 88k ELF targets.
7602
7603 2002-06-21 Tom Tromey <tromey@redhat.com>
7604
7605 * gdb_locale.h: New file.
7606 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7607 (defs_h): Added gdb_locale.h.
7608 * configure, config.in: Rebuilt.
7609 * configure.in (PACKAGE): Define.
7610 * defs.h: Include gdb_locale.h.
7611 * main.c (captured_main): Call setlocale, bindtextdomain,
7612 textdomain.
7613
7614 2002-06-21 Dave Brolley <brolley@redhat.com>
7615
7616 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7617 * config/frv/frv.mt: New file.
7618 * config/frv/tm-frv.h: New file.
7619 * configure.tgt: Support frv-*-*.
7620 * Makefile.in (frv-tdep.o): New target.
7621 * frv-tdep.c: New file.
7622 * NEWS: Mention frv.
7623
7624 2002-06-21 Dave Brolley <brolley@redhat.com>
7625
7626 * MAINTAINERS: Add self to "Write After Approval" list.
7627
7628 2002-06-21 Grace Sainsbury <graces@redhat.com>
7629
7630 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7631 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7632 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7633 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7634 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7635
7636 * m68k-tdep.c: Include arch-utils.h
7637 (m68k_register_raw_size): Add.
7638 (m68k_register_virtual_size): Add.
7639 (m68k_register_virtual_type): Add.
7640 (m68k_register_name): Add.
7641 (m68k_stack_align): Add.
7642 (m68k_register_byte): Add.
7643 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7644 tm-m68k.h.
7645
7646 2002-06-21 Grace Sainsbury <graces@redhat.com>
7647
7648 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7649 m68k_find_saved_regs.
7650 (m68k_pop_frame): Removed saved_regs structure, and replaced
7651 references to it with frame->saved_regs.
7652 (m68k_gdbarch_init): Added function calls to initialize the
7653 gdbarch structure.
7654 (m68k_fix_call_dummy): Add.
7655 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7656 (CALL_DUMMY): Remove.
7657 (CALL_DUMMY_LENGTH): Remove.
7658 (CALL_DUMMY_START_OFFSET): Remove.
7659 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7660 (FIX_CALL_DUMMY): Remove.
7661 (PUSH_DUMMY_FRAME): Remove.
7662 (POP_FRAME): Remove.
7663
7664 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7665
7666 * parse.c (parse_fprintf): New function used to avoid calls to
7667 fprintf in bison parser generated debug code.
7668 * parser-defs.h: Declaration of new parse_fprintf function.
7669 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7670 Set YYDEBUG to 1 by default.
7671 Set YYFPRINTF as parse_fprintf.
7672
7673 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7674
7675 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7676 encoding anymore.
7677 (pointer_encoding, enum ptr_encoding): New.
7678 (execute_cfa_program): Take care about pointer encoding.
7679 (dwarf2_build_frame_info): Only call parse_frame_info for
7680 .debug_frame and .eh_frame.
7681 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7682 fixed augmentation handling, added relative addressing,
7683 ignore duplicate FDEs. Added comments.
7684 * dwarf2cfi.c: Reindented.
7685
7686 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7687
7688 * event-top.c (command_handler): Don't use space_at_cmd_start
7689 unless there is sbrk() on the host. Assign time and space data
7690 to union fields of the appropriate length.
7691
7692 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7693
7694 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7695 x86_64_register_name. Return type changed to 'const char *'.
7696 (x86_64_register_name2nr): Rename to x86_64_register_number.
7697 (x86_64_gdbarch_init): Update to reflect the change.
7698 * x86-64-tdep.h: Ditto.
7699 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7700 (supply_fpregset): Ditto.
7701
7702 2002-06-19 Andrew Cagney <cagney@redhat.com>
7703
7704 * regcache.h: Update copyright.
7705 (struct regcache, struct gdbarch): Add opaque declarations.
7706 (current_regcache): Declare global variable.
7707 (regcache_read, regcache_write): Add gdbarch parameter.
7708 (regcache_save, regcache_save_no_passthrough)
7709 (regcache_restore, regcache_restore_no_passthrough)
7710 (regcache_dup, regcache_dup_no_passthrough)
7711 (regcache_cpy, regcache_cpy_no_passthrough)
7712 (deprecated_grub_regcache_for_registers)
7713 (deprecated_grub_regcache_for_register_valid)
7714 (regcache_valid_p): Add function declarations.
7715
7716 * regcache.c: Update copyright.
7717 (regcache_descr_handle): New global variable.
7718 (struct regcache_descr): Define.
7719 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7720 (regcache_descr, xfree_regcache_descr): New functions.
7721 (struct regcache): Define.
7722 (regcache_xmalloc, regcache_xfree): New functions.
7723 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7724 (regcache_dup, regcache_dup_no_passthrough): New functions.
7725 (regcache_valid_p, regcache_read_as_address): New functions.
7726 (deprecated_grub_regcache_for_registers): New function.
7727 (deprecated_grub_regcache_for_register_valid): New function.
7728 (current_regcache): New global variable.
7729 (register_buffer): Add regcache parameter. Update calls.
7730 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7731 (read_register_gen, write_register_gen): Update register_buffer
7732 call. Test for legacy_p instead of gdbarch_register_read_p or
7733 gdbarch_register_write_p.
7734 (regcache_collect): Update register_buffer call.
7735 (build_regcache): Rewrite. Use deprecated grub functions.
7736 (regcache_save, regcache_save_no_passthrough): New functions.
7737 (regcache_restore, regcache_restore_no_passthrough): New
7738 functions.
7739 (_initialize_regcache): Create the regcache_data_handle. Swap
7740 current_regcache global variable.
7741
7742 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7743 parameter to regcache_read and regcache_write calls.
7744 (sh4_register_read): Ditto.
7745 (sh64_pseudo_register_read): Ditto.
7746 (sh64_register_read): Ditto.
7747 (sh_pseudo_register_write): Ditto.
7748 (sh4_register_write): Ditto.
7749 (sh64_pseudo_register_write): Ditto.
7750 (sh64_register_write): Ditto.
7751
7752 * defs.h (XCALLOC): Define.
7753
7754 2002-06-19 Grace Sainsbury <graces@redhat.com>
7755
7756 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7757 * m68k-tdep.c (m68k_gdbarch_init): Added.
7758 (m68k_dump_tdep): Added.
7759
7760 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7761
7762 * ada-lang.c (fill_in_ada_prototype): Update comment.
7763
7764 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7765
7766 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7767 MIPS_ABI_LAST.
7768 (mips_abi_string, mips_abi_strings): New.
7769 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7770 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7771 tdep->mips_abi_string. Honor mips_abi_string. Default to
7772 O32 if no ABI is found.
7773 (mips_dump_tdep): Use mips_abi_strings.
7774 (mips_abi_update): New function.
7775 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7776 ``set mips abi'' and ``show mips abi''. Check the size of
7777 mips_abi_strings.
7778
7779 2002-06-19 Andrew Cagney <cagney@redhat.com>
7780
7781 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7782 constant.
7783
7784 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7785
7786 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7787 current frame using only the first stack size adjustment. All
7788 subsequent size adjustments are not considered to be part of
7789 the "static" part of the current frame.
7790 Compute the address of the saved registers relative to the
7791 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7792 in use in this frame.
7793
7794 2002-06-18 Don Howard <dhoward@redhat.com>
7795
7796 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7797 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7798 suggesting this solution.
7799
7800 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7801
7802 * config/romp/xm-rtbsd.h: Delete file.
7803 * config/romp/rtbsd.mh: Delete file.
7804
7805 2002-06-18 Keith Seitz <keiths@redhat.com>
7806
7807 * breakpoint.c (condition_command): Post breakpoint_modify
7808 when a condition is added to an existing breakpoint.
7809 (commands_command): Likewise for commands.
7810 (set_ignore_count): Likewise for ignore counts.
7811 If no tty, do not simply return, still need to send event
7812 notification.
7813 (ignore_command): Only print a newline if the command came
7814 from a tty.
7815 Don't call breakpoints_changed, since this is now properly
7816 handled by set_ignore_count.
7817
7818 2002-06-18 Andrew Cagney <cagney@redhat.com>
7819
7820 * MAINTAINERS: Note that cris-elf target can be compiled with
7821 -Werror.
7822 * cris-tdep.c (cris_register_name): Make return type constant.
7823 (cris_breakpoint_from_pc): Ditto.
7824
7825 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7826
7827 * frame.h (struct frame_info): Change type of context to
7828 'struct context'.
7829
7830 2002-06-17 Andrew Cagney <cagney@redhat.com>
7831
7832 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7833 pointer.
7834 * gdbarch.h, gdbarch.c: Regenerate.
7835 * config/mips/tm-mips.h (mips_register_name): Update.
7836 * i386-tdep.h (i386_register_name): Update.
7837 * mips-tdep.c (mips_register_name): Update
7838 * alpha-tdep.c (alpha_register_name): Update.
7839 * arch-utils.c (legacy_register_name): Update.
7840 * arch-utils.h (legacy_register_name): Update.
7841 * avr-tdep.c (avr_register_name): Update.
7842 * ia64-tdep.c (ia64_register_name): Update.
7843 * i386-tdep.c (i386_register_name): Update.
7844 * sparc-tdep.c (sparc32_register_name): Update.
7845 (sparc64_register_name): Update.
7846 (sparclite_register_name): Update.
7847 (sparclet_register_name): Update.
7848 * sh-tdep.c (sh_generic_register_name): Update.
7849 (sh_sh_register_name): Update.
7850 (sh_sh3_register_name): Update.
7851 (sh_sh3e_register_name): Update.
7852 (sh_sh_dsp_register_name): Update.
7853 (sh_sh3_dsp_register_name): Update.
7854 (sh_sh4_register_name): Update.
7855 (sh_sh64_register_name): Update.
7856 * s390-tdep.c (s390_register_name): Update.
7857 * rs6000-tdep.c (rs6000_register_name): Update.
7858 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7859 (ns32k_register_name_32382): Update.
7860 * d10v-tdep.c (d10v_ts2_register_name): Update.
7861 (d10v_ts3_register_name): Update.
7862 * xstormy16-tdep.c (xstormy16_register_name): Update.
7863 * vax-tdep.c (vax_register_name): Update.
7864 * v850-tdep.c (v850_register_name): Update.
7865 * m68hc11-tdep.c (m68hc11_register_name): Update.
7866 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7867 (am33_register_name): Update.
7868
7869 2002-06-17 Grace Sainsbury <graces@redhat.com>
7870
7871 * m68k-tdep.c: Reindented.
7872
7873 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7874
7875 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7876 list of predefined types.
7877
7878 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7879
7880 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7881 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7882 REGISTER_CONVERT_TO_RAW): Remove defines.
7883 (i386_register_virtual_type, i386_register_convertible,
7884 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7885 Remove prototypes.
7886 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7887 macros mentioned above.
7888
7889 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7890 (i386lynx_saved_pc_after_call): Remove prototype.
7891 * i386ly-tdep.c: Include "i386-tdep.h".
7892 (i386lynx_saved_pc_after_call): Make static. Use
7893 read_memory_nobpt instead of read_memory. Use
7894 read_memory_unsigned_integer instead of read_memory_integer.
7895 (i386lynx_init_abi): New function.
7896 (i386lynx_coff_osabi_sniffer): New function.
7897 (_initialize_i386bsd_tdep): New function.
7898
7899 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7900 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7901 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7902 (i386_fix_call_dummy): Remove prototype.
7903 * i386-tdep.c (i386_call_dummy_words): New variable.
7904 (i386_gdbarch_init): Adjust for removal of the
7905 macros mentioned above.
7906
7907 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7908
7909 * command.h (add_setshow_auto_boolean_cmd): Replace
7910 add_set_auto_boolean_cmd.
7911 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7912 add_set_auto_boolean_cmd.
7913 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7914 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7915 mask-address'' command.
7916 (show_mask_address): Add cmd parameter.
7917 * remote.c (add_packet_config_cmd): Update. Change type of
7918 set_func and show_func to cmd_sfunc_ftype.
7919 (_initialize_remote): Update `set remote Z-packet'
7920 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7921 (show_remote_protocol_e_packet_cmd): Ditto.
7922 (show_remote_protocol_E_packet_cmd): Ditto.
7923 (show_remote_protocol_P_packet_cmd): Ditto.
7924 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7925 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7926 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7927 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7928 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7929 (show_remote_protocol_Z_packet_cmd): Ditto.
7930 (show_remote_protocol_binary_download_cmd): Ditto.
7931 (show_remote_cmd): Pass NULL to all of above.
7932
7933 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7934
7935 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7936 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7937 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7938 POP_FRAME): Remove defines.
7939 (i386_push_arguments, i386_store_struct_return,
7940 i386_extract_return_value, i386_store_return_value,
7941 i386_extract_struct_value_address, i386_push_dummy_frame,
7942 i386_pop_frame): Renove prototypes.
7943 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7944 macros mentioned above.
7945
7946 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7947
7948 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7949 add_set_boolean_cmd.
7950 (add_setshow_cmd): New function.
7951 * command.h (add_setshow_boolean_cmd): Replace
7952 add_set_boolean_cmd.
7953 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7954 and ``set rdiromatzero''.
7955 * maint.c (_initialize_maint_cmds): Update commented out code.
7956 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7957 * target.c (initialize_targets): Update `set
7958 trust-readonly-sections'.
7959 * remote.c (_initialize_remote): Update `set remotebreak'.
7960
7961 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7962
7963 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7964 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7965 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7966 fit into multi-arch framework.
7967 (i386_breakpoint_from_pc): New function.
7968 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7969 above.
7970
7971 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7972 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7973 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7974 (i386_frameless_function_invocation, i386_frame_num_args,
7975 i386_frame_init_saved_regs): Remove prototypes.
7976 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7977 macros mentioned above.
7978
7979 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7980
7981 * cli/cli-decode.c (set_cmd_cfunc): Update.
7982 (set_cmd_sfunc): Update.
7983 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7984 (set_cmd_sfunc, set_cmd_cfunc): Update.
7985 * cli/cli-decode.h: Update.
7986
7987 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7988
7989 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7990 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7991
7992 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7993
7994 * defs.h (auto_boolean): Declare enum.
7995 * command.h (cmd_auto_boolean): Delete enum.
7996 * mips-tdep.c (mask_address_var): Update.
7997 (mips_mask_address_p): Update.
7998 (show_mask_address): Update.
7999 * remote.c (struct packet_config): Update.
8000 (update_packet_config): Update.
8001 (show_packet_config_cmd): Update.
8002 (packet_ok): Update.
8003 (add_packet_config_cmd): Update.
8004 (_initialize_remote):
8005 * command.h: Update.
8006 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8007 (do_setshow_command): Update.
8008 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8009 * cli/cli-decode.h: Update.
8010
8011 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8012
8013 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8014 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8015 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8016 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8017 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8018 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8019
8020 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8021 list of DJGPP COFF targets.
8022
8023 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8024 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8025 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8026 (FP0_REGNUM): Remove define.
8027 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8028 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8029 (i386_register_virtual_size): Remove protoype.
8030 * i386-tdep.c (i386_register_virtual_size): Removed.
8031 (i386_extract_return_value, i386_store_return_value): Use
8032 FP0_REGNUM instead of NUM_FREGS to determine whether the
8033 floating-point registers are available.
8034 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8035 Adjust for removal of macros mentioned above.
8036
8037 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8038
8039 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8040 comments.
8041 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8042 Remove prototypes.
8043 (supply_gregset, fill_gregset): Remove use of register keyword and
8044 remove declaration for regmap. Use I386_NUM_GREGS instead of
8045 NUM_REGS and NUM_FREGS.
8046 (FPREGSET_FSAVE_OFFSET): Remove.
8047 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8048 NUM_FREGS to determine whether the floating-point registers are
8049 available.
8050
8051 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8052 gnu_store_registers): Replace usage of NUM_GREGS with
8053 I386_NUM_GREGS.
8054
8055 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8056 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8057 usage of NUM_GREGS with I386_NUM_GREGS.
8058
8059 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8060
8061 * i386bsd-nat.c: Include "i386-tdep.h".
8062 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8063 I386_NUM_GREGS.
8064
8065 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8066 and associated comment. They no longer make any sense, since we
8067 don't use this file anymore on Linux.
8068
8069 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8070 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8071 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8072 elements in these arrays.
8073 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8074 MAX_NUM_REGS.
8075
8076 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8077
8078 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8079 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8080
8081 2002-06-14 Andrew Cagney <cagney@redhat.com>
8082
8083 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8084 EXTRACT_RETURN_VALUE.
8085 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8086 EXTRACT_STRUCT_VALUE_ADDRESS.
8087 * gdbarch.h, gdbarch.c: Regenerate.
8088
8089 * values.c (value_being_returned): Handle
8090 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8091 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8092
8093 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8094 * arm-tdep.c (arm_gdbarch_init): Update.
8095 * avr-tdep.c (avr_gdbarch_init): Update.
8096 * cris-tdep.c (cris_gdbarch_init): Update.
8097 * d10v-tdep.c (d10v_gdbarch_init): Update.
8098 * ia64-tdep.c (ia64_gdbarch_init): Update.
8099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8100 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8101 * s390-tdep.c (s390_gdbarch_init): Update.
8102 * sh-tdep.c (sh_gdbarch_init): Update.
8103 * s390-tdep.c (s390_gdbarch_init): Update.
8104 * sparc-tdep.c (sparc_gdbarch_init): Update.
8105 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8106 * v850-tdep.c (v850_gdbarch_init): Update.
8107 * vax-tdep.c (vax_gdbarch_init): Update.
8108 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8110
8111 * config/arc/tm-arc.h: Update.
8112 * config/d30v/tm-d30v.h: Update.
8113 * config/fr30/tm-fr30.h: Update.
8114 * config/h8300/tm-h8300.h: Update.
8115 * config/h8500/tm-h8500.h: Update.
8116 * config/i386/tm-i386.h: Update.
8117 * config/i386/tm-ptx.h: Update.
8118 * config/i386/tm-symmetry.h: Update.
8119 * config/i960/tm-i960.h: Update.
8120 * config/m32r/tm-m32r.h: Update.
8121 * config/m68k/tm-delta68.h: Update.
8122 * config/m68k/tm-linux.h: Update.
8123 * config/m68k/tm-m68k.h: Update.
8124 * config/m88k/tm-m88k.h: Update.
8125 * config/mcore/tm-mcore.h: Update.
8126 * config/mips/tm-mips.h: Update.
8127 * config/mn10200/tm-mn10200.h: Update.
8128 * config/pa/tm-hppa.h: Update.
8129 * config/pa/tm-hppa64.h: Update.
8130 * config/sparc/tm-sp64.h: Update.
8131 * config/sparc/tm-sparc.h: Update.
8132 * config/sparc/tm-sparclet.h: Update.
8133 * config/z8k/tm-z8k.h: Update.
8134
8135 2002-06-14 Andrew Cagney <cagney@redhat.com>
8136
8137 * Makefile.in (i386_linux_tdep_h): Define.
8138 (i386_tdep_h, i387_tdep_h): Define.
8139 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8140 $(i386_tdep_h) and $(i387_tdep_h).
8141 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8142
8143 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8144
8145 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8146 Already covered by the default.
8147
8148 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8149 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8150 (i386_gdbarch_init): Initialize long_double_format and long_double
8151 bit.
8152
8153 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8154 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8155 Move these to ...
8156 * config/i386/i386sol2.mh: ... here.
8157 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8158 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8159 (SIGCONTEXT_PC_OFFSET): Remove define.
8160 (IN_SIGTRAMP): Remove define.
8161 * i386-sol2-tdep.c: New file.
8162
8163 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8164 * config/i386/tm-i386nw.h: Removed.
8165
8166 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8167 USE_STRUCT_CONVENTION): Remove defines.
8168 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8169 (get_longjmp_target): Remove prototype.
8170 (IN_SIGTRAMP): Remove define.
8171 (i386bsd_in_sigtramp): Remove prototype.
8172 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8173 function. Update comment accordingly
8174 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8175 (FRAME_SAVED_PC): Remove define.
8176 (i386bsd_frame_saved_pc): Remove prototype.
8177 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8178 GET_LONGJMP_TARGET): Remove defines.
8179 (get_longjmp_target): Remove prototype.
8180 (IN_SIGTRAMP): Remove define.
8181 (i386bsd_in_sigtramp): Remove prototype.
8182 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8183 function. Update comment accordingly
8184 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8185 (FRAME_SAVED_PC): Remove define.
8186 (i386bsd_frame_saved_pc): Remove prototype.
8187 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8188 Remove prototype.
8189 (USE_STRUCT_CONVENTION): Remove prototype.
8190 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8191 declaration.
8192 (_initialize_i386bsd_nat): Revise logic to determine some
8193 constants at compile time when compiling a native GDB. Warn if
8194 things don't match up with what we expect.
8195 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8196 Remove variables.
8197 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8198 to use date stored in `struct gdbarch_tdep'.
8199 (i386bsd_sigcontext_offset): Remove varaible.
8200 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8201 stored in `struct gdbarch_tdep'.
8202 (i386bsd_frame_saved_pc): Make static.
8203 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8204 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8205 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8206 i386fbsd4_sc_pc_offset): New variables.
8207 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8208 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8209 functions.
8210 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8211 functions.
8212 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8213 Modify the value of i386fbsd_sigtramp_start and
8214 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8215 i386fbsd_sigtramp_end.
8216 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8217 function.
8218
8219 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8220 define to i386-linux-tdep.h.
8221 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8222 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8223 defines.
8224 (i386_linux_register_name, i386_linux_register_byte,
8225 i386_linux_register_raw_size): Remove prototypes.
8226 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8227 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8228 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8229 TARGET_WRITE_PC): Remove defines.
8230 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8231 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8232 i386_linux_write_pc): Remove prototypes.
8233 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8234 (get_longjmp_target): Remove prototype.
8235 * i386-linux-tdep.h: New file.
8236 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8237 * i386-linux-tdep.c: Include "i386-tdep.h" and
8238 "i386-linux-tdep.h".
8239 (i386_linux_register_name, i386_linux_register_byte,
8240 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8241 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8242 Make static.
8243 (i386_linux_init_abi): New function.
8244 (_initialize_i386_linux_tdep): New function.
8245
8246 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8247 (i386_saved_pc_after_call): Remove prototype.
8248 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8249 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8250 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8251 (i386_register_name, i386_stab_reg_to_regnum,
8252 i386_dwarf_reg_to_regnum): Remove prototypes.
8253 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8254 SIZEOF_SSE_REGS): Remove defines.
8255 (REGISTER_BYTES): Remove define.
8256 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8257 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8258 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8259 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8260 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8261 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8262 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8263 (get_longjmp_target): Remove prototype.
8264 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8265 (sigtramp_saved_pc): Remove define.
8266 (i386v4_sigtramp_saved_pc): Remove prototype.
8267 * config/i386/tm-go32.h (FRAME_CHAIN,
8268 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8269 (i386go32_frame_saved_pc): Remove prototype.
8270 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8271 (get_longjmp_target): Remove prototype.
8272 * i386-tdep.h: Include "osabi.h".
8273 (enum i386_abi): Removed.
8274 (enum struct_return): New enum.
8275 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8276 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8277 sc_pc_offset members.
8278 (i386_gdbarch_register_os_abi): Remove prototype.
8279 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8280 I386_SSE_NUM_REGS): New defines.
8281 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8282 I386_SSE_SIZEOF_REGS): New defines.
8283 (i386_register_name, i386_register_byte, i386_register_raw_size):
8284 New prototypes.
8285 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8286 (i386bsd_sigtramp_saved_pc): New prototype.
8287 * i386-tdep.c: Don't include "elf-bfd.h".
8288 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8289 i386_frame_chain, i386_saved_pc_after_call): Make static.
8290 (i386_frame_saved_pc): Rewrite to call architecture dependent
8291 function to deal with signal handlers. Make static.
8292 (i386go32_frame_saved_pc): Removed.
8293 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8294 Removed.
8295 (i386_get_longjmp_target): New function.
8296 (default_struct_convention, pcc_struct_convention,
8297 reg_struct_convention, valid_conventions, struct_convention): New
8298 variables.
8299 (i386_use_struct_convention): New function.
8300 (i386v4_sigtramp_saved_pc): Renamed to
8301 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8302 (i386_pc_in_sigtramp): New function.
8303 (i386_abi_names): Removed.
8304 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8305 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8306 Removed.
8307 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8308 i386_gdbarch_register_os_abi): Removed.
8309 (struct i386_abi_handler): Removed.
8310 (i386_abi_handler_list): Removed.
8311 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8312 functions.
8313 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8314 i386_nw_init_abi): New functions.
8315 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8316 Use set_gdbarch_xxx() calls instead of relying on macros for a
8317 number of calls.
8318 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8319 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8320 Register the various architecture variants defined in this file.
8321
8322 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8325 (struct main_type): Remove arg_types member. Update comments for
8326 struct field.
8327 (TYPE_ARG_TYPES): Remove.
8328 (TYPE_FN_FIELD_ARGS): Update.
8329 (smash_to_method_type): Update prototype.
8330
8331 * c-typeprint.c (cp_type_print_method_args): Take method type
8332 instead of argument list. Use new argument layout. Simplify.
8333 (c_type_print_args): Use new argument layout. Simplify.
8334 (c_type_print_base): Update call to cp_type_print_method_args.
8335 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8336 argument; use die->type instead. Update call to
8337 smash_to_method_type.
8338 (read_structure_scope): Update call to dwarf2_add_member_fn.
8339 * gdbtypes.c (allocate_stub_method): Update comment.
8340 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8341 Use new argument layout.
8342 (check_stub_method): Use new argument layout. Don't count
8343 void as an argument.
8344 (print_arg_types): Update comments. Use new argument layout.
8345 (recursive_dump_type): Don't print arg_types member.
8346 * hpread.c (hpread_read_struct_type): Use new argument layout.
8347 (fixup_class_method_type): Likewise.
8348 (hpread_type_lookup): Likewise.
8349 * stabsread.c (read_type): Update calls to read_args and
8350 smash_to_method_type.
8351 (read_args): Use new argument layout. Simplify.
8352 * valops.c (typecmp): Use new argument layout. Update parameters
8353 and comments. Simplify.
8354 (hand_function_call): Use new argument layout.
8355 (search_struct_method): Update call to typecmp.
8356 (find_overload_match): Use new argument layout.
8357
8358 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8359
8360 * NEWS: Mention multithreaded debug support for gdbserver.
8361
8362 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * MAINTAINERS: Mention NEWS.
8365
8366 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8367
8368 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8369 (struct mips_objfile_private, compare_pdr_entries): New.
8370 (non_heuristic_proc_desc): Read the ".pdr" section if it
8371 is present.
8372
8373 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8374
8375 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8376 (arm_debug): New static variable.
8377 (_initialize_arm_tdep): Add ``set debug arm'' command.
8378
8379 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8380
8381 * Makefile.in (sim_arm_h): Define.
8382 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8383 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8384 (arm_register_sim_regno): New function, map an internal REGNUM
8385 onto a simulator register number.
8386 (arm_gdbarch_init): Set register_sim_regno.
8387
8388 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8389
8390 * MAINTAINERS: Add self.
8391
8392 2002-06-11 Jim Blandy <jimb@redhat.com>
8393
8394 * source.c (source_info): Mention whether the symtab has
8395 information about preprocessor macros.
8396
8397 Call the command `info macro', not `show macro'.
8398 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8399 Fix error message.
8400 (_initialize_macrocmd): Register `info_macro_command' in
8401 `infolist', not `showlist'.
8402
8403 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8404
8405 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8406 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8407 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8408 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8409 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8410 unconditionally.
8411 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8412 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8413 (_initialize_mips_tdep): Remove dead code.
8414 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8415 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8416 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8417 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8418 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8419 MIPS_LAST_FP_ARG_REGNUM): Remove.
8420
8421 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8422
8423 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8424 (unwind_tmp_obstack_free, parse_frame_info)
8425 (update_context, cfi_read_fp, cfi_write_fp)
8426 (cfi_frame_chain, cfi_init_extra_frame_info)
8427 (cfi_virtual_frame_pointer): Use the above function.
8428 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8429
8430 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8431
8432 * v850-tdep.c (v850_type_is_scalar): New function.
8433 (v850_use_struct_convention): Match current gcc implementation
8434 as close as possible.
8435 (v850_push_arguments): Fix stack_offset handling. Don't write
8436 struct_addr into register. This is done by v850_store_struct_return.
8437 (v850_extract_return_value): Care for structs.
8438 (v850_store_return_value): Ditto.
8439 (v850_store_struct_return): Actually write address.
8440
8441 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8442
8443 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8444 without debug information too.
8445
8446 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8447
8448 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8449 Make multi-arch pure.
8450 * gdbarch.h, gdbarch.c: Re-generate.
8451 * arm-tdep.c (arm_print_float_info): Update.
8452 * arch-utils.h (default_print_float_info): Update.
8453 * arch-utils.c (default_print_float_info): Update.
8454 * infcmd.c (float_info): Update call.
8455
8456 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8457
8458 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8459 the front of the initialize list.
8460
8461 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8462
8463 * infrun.c (struct inferior_status): Replace fields
8464 selected_frame_address and selected_level with field
8465 selected_frame_id.
8466 (save_inferior_status): Update. Use get_frame_id.
8467 (struct restore_selected_frame_args): Delete.
8468 (restore_selected_frame): Update. Use frame_find_by_id.
8469 (restore_inferior_status): Update.
8470
8471 * breakpoint.h (struct breakpoint): Change type of
8472 watchpoint_frame to frame_id.
8473 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8474 call to get_current_frame.
8475 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8476 get_current_frame.
8477 (watchpoint_check): Use frame_find_by_id.
8478
8479 * frame.h (record_selected_frame): Delete declaration.
8480 * stack.c (record_selected_frame): Delete function.
8481
8482 * frame.h (struct frame_id): Define.
8483 (get_frame_id): Declare.
8484 (frame_find_by_id): Declare.
8485 * frame.c (frame_find_by_id): New function.
8486 (get_frame_id): New function.
8487
8488 2002-06-10 Andrey Volkov <avolkov@transas.com>
8489
8490 * ser-e7kpc.c: Fix duplicated define and call of
8491 _initialize_ser_e7000pc
8492
8493 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8494
8495 * signals/signals.c (target_signal_from_host): Fix #ifdef
8496 SIGRTMIN case.
8497 (do_target_signal_to_host): Likewise.
8498
8499 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * mips-tdep.c (mips_find_abi_section): New function.
8502 (mips_gdbarch_init): Call it.
8503
8504 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8505
8506 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8507 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8508 after Andrew's 2002-06-08 gdbarch change.
8509
8510 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8511
8512 * i386-linux-nat.c (suppy_gregset): Don't supply
8513 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8514 register cache.
8515 (fill_gregset): Don't fetch it under the same circumstances.
8516
8517 2002-06-09 Andrew Cagney <cagney@redhat.com>
8518
8519 * Makefile.in (callback_h): Define.
8520 (remote_sim_h): Update path to remote-sim.h.
8521 (remote-rdp.o): Add $(callback_h).
8522 (remote-sim.o): Use $(callback_h).
8523 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8524 * remote-rdp.c: Include "gdb/callback.h".
8525
8526 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8527
8528 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8529 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8530
8531 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8532
8533 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8534 * rdi-share/serpardr.c: Ditto.
8535 * rdi-share/unixcomm.c: Ditto.
8536 * rdi-share/serdrv.c: Ditto.
8537 * rdi-share/hostchan.h: Ditto.
8538 * rdi-share/hostchan.c: Ditto.
8539 * rdi-share/host.h: Ditto.
8540 * rdi-share/devsw.c: Ditto.
8541
8542 * objfiles.h: Change type of obj_private to void pointer.
8543 * pa64solib.c: Update copyright. Don't include "assert.h", use
8544 strcmp instead of STREQ, use LONGEST, do not use PTR
8545 * somsolib.c: Ditto.
8546
8547 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8548 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8549 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8550
8551 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8552
8553 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8554 (default_get_saved_register): Delete function.
8555 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8556 generic_unwind_get_saved_register.
8557 * gdbarch.h, gdbarch.c: Re-generate.
8558
8559 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8560
8561 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8562 generic_func_frame_chain_valid.
8563 * gdbarch.h, gdbarch.c: Re-generate.
8564 * blockframe.c (generic_func_frame_chain_valid): Only check
8565 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8566 passing FP to PC_IN_CALL_DUMMY.
8567 Fix PR gdb/360.
8568
8569 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8570
8571 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8572 (register_gdbarch_data): Initialize init_p.
8573 (gdbarch_data): Initialize data pointer using the init function.
8574 (init_gdbarch_data): Delete function.
8575 (gdbarch_update_p): Update.
8576 (initialize_non_multiarch): Update.
8577 (struct gdbarch): Add field initialized_p.
8578 * gdbarch.h, gdbarch.c: Re-generate.
8579
8580 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8581
8582 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8583 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8584 better do the things actually here.
8585 * x86-64-tdep.c (x86_64_register_name2nr): New.
8586 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8587 (x86_64_gdbarch_init): Respect the above change.
8588 * x86-64-tdep.h (x86_64_register_name2nr)
8589 (x86_64_register_nr2name): Add prototypes.
8590 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8591
8592 2002-06-06 Michael Snyder <msnyder@redhat.com>
8593
8594 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8595 Delete extra braces and re-indent.
8596 (d10v_store_return_value): Char return values
8597 must be shifted over by one byte in R0.
8598 (d10v_extract_return_value): Delete extra braces, re-indent.
8599
8600 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8601
8602 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8603 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8604 (d10v_integer_to_address): Rewrite.
8605 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8606 the d10v specific functions which take care of converting to the
8607 correct space.
8608
8609 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8610
8611 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8612 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8613
8614 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8615
8616 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8617 includes.
8618 * config/tm-linux.h: Ditto.
8619 * config/alpha/tm-alphalinux.h: Ditto.
8620 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8621 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8622 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8623 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8624 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8625 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8626 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8627 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8628 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8629 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8630 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8631 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8632 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8633 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8634 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8635 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8636 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8637 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8638 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8639 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8640 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8641 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8642 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8643 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8644 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8645 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8646 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8647 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8648 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8649 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8650 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8651 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8652 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8653 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8654 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8655 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8656 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8657
8658 2002-05-04 Aidan Skinner <aidan@velvet.net>
8659
8660 * ada-exp.tab.c: New file
8661 * ada-exp.y: New file
8662 * ada-lang.c: New file
8663 * ada-lang.h: New file
8664 * ada-lex.c: New file
8665 * ada-lex.l: New file
8666 * ada-tasks.c: New file
8667 * ada-typeprint.c: New file
8668 * ada-valprint.c: New file
8669
8670 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8671
8672 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8673 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8674
8675 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8676
8677 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8678 insetead of ppc-linux-tdep.o.
8679 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8680 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8681
8682 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8683
8684 2002-05-07 Christian Groessler <chris@groessler.org>
8685 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8686 bit register contents for little endian hosts.
8687
8688 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8689
8690 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8691 any maintainer.
8692
8693 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8694
8695 * gdbarch.h: Regenerate.
8696
8697 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8698
8699 * MAINTAINERS: Add everyone to write-after-approval list.
8700
8701 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8702
8703 * stack.c (frame_info): Use frame_register_unwind instead of
8704 saved_regs. Mention when the SP is on the stack or in a register.
8705
8706 * frame.h (frame_register_unwind_ftype): Define. Document.
8707 (struct frame_info): Add field register_unwind and
8708 register_unwind_cache.
8709 (frame_register_unwind): Declare.
8710 (generic_unwind_get_saved_register): Declare.
8711
8712 * frame.c (frame_register_unwind): New function.
8713 (generic_unwind_get_saved_register): New function.
8714
8715 * blockframe.c (generic_call_dummy_register_unwind): New function.
8716 (frame_saved_regs_register_unwind): New function.
8717 (set_unwind_by_pc): New function.
8718 (create_new_frame): New function.
8719 (get_prev_frame): New function.
8720
8721 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8722
8723 * a29k-share/: Delete directory.
8724 * remote-vx29k.c: Delete file.
8725
8726 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8727
8728 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8729 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8730
8731 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8732
8733 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8734 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8735 (sparc64nbsd-nat.o)
8736 (sparcnbsd-nat.o)
8737 (sparcnbsd-tdep.o): New dependency lists.
8738 * NEWS: Note new UltraSPARC NetBSD native configuration.
8739 * configure.host (sparc64-*-netbsd*): New host.
8740 * configure.tgt (sparc-*-netbsdelf*)
8741 (sparc-*-netbsd*): Set gdb_target to nbsd.
8742 (sparc64-*-netbsd*): New target.
8743 * sparc64nbsd-nat.c: New file.
8744 * sparcnbsd-nat.c: New file.
8745 * sparcnbsd-tdep.c: New file.
8746 * sparcnbsd-tdep.h: New file.
8747 * config/sparc/nbsd.mt: New file.
8748 * config/sparc/nbsd64.mh: New file.
8749 * config/sparc/nbsd64.mt: New file.
8750 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8751 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8752 (HOST_IPC): Remove.
8753 * config/sparc/nbsdaout.mt: Remove.
8754 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8755 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8756 (HOST_IPC): Remove.
8757 * config/sparc/nbsdelf.mt: Remove.
8758 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8759 sparc-nat.c compatiblity defines.
8760 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8761 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8762 * config/sparc/tm-nbsd64.h: New file.
8763 * config/sparc/tm-nbsdaout.h: Remove.
8764 * config/sparc/xm-nbsd.h: Remove.
8765
8766 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8767
8768 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8769 * sparc-tdep.c: Include osabi.h.
8770 (gdbarch_tdep): Add osabi member.
8771 (_initialize_sparc_tdep): Use gdbarch_register.
8772 (sparc_gdbarch_init): Use generic OS ABI framework.
8773 (sparc_dump_tdep): New function.
8774
8775 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8776
8777 * corefile.c (do_captured_read_memory_integer): Return non-zero
8778 result.
8779 (safe_read_memory_integer): Copy result of memory read when
8780 status is non-zero. Also, add comments.
8781
8782 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8783
8784 * Makefile.in (ppc_tdep_h): Define.
8785 (ppc-linux-nat.o)
8786 (ppc-linux-tdep.o)
8787 (rs6000-tdep.o): Use $(ppc_tdep_h).
8788 (ppc-sysv-tdep.o)
8789 (ppcnbsd-nat.o)
8790 (ppcnbsd-tdep.o): New dependency lists.
8791 * ppc-tdep.h: Use generic OS ABI framework.
8792 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8793 (ppc_linux_init_abi): New functions.
8794 (ppc_sysv_abi_broken_use_struct_convention)
8795 (ppc_sysv_abi_use_struct_convention)
8796 (ppc_sysv_abi_push_arguments): Move to...
8797 * ppc-sysv-tdep.c: ...here.
8798 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8799 * rs6000-tdep.c (process_note_abi_tag_sections)
8800 (get_elfosabi): Remove.
8801 (rs6000_gdbarch_init): Use generic OS ABI framework.
8802 (rs6000_dump_tdep): New function.
8803 (_initialize_rs6000_tdep): Use gdbarch_register.
8804 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8805 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8806 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8807 of ppc-linux-tdep.o.
8808 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8809 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8810 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8811 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8812 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8813 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8814
8815 2002-05-29 Jim Blandy <jimb@redhat.com>
8816
8817 * macroscope.c (default_macro_scope): Put `void' in empty argument
8818 list.
8819
8820 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8821
8822 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8823 * arch-utils.c: Include "sim-regno.h".
8824 * gdbarch.sh: Don't include "sim-regno.h".
8825 * gdbarch.h, gdbarch.c: Regenerate.
8826 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8827 here.
8828 * arch-utils.h (legacy_register_sim_regno): To here.
8829 * remote-sim.c (legacy_register_sim_regno): Move function from
8830 here.
8831 * arch-utils.c (legacy_register_sim_regno): To here.
8832
8833 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8834
8835 * sim-regno.h: New file.
8836 * Makefile.in (sim_regno_h): Define.
8837 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8838 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8839 (legacy_register_sim_regno): New function.
8840 (one2one_register_sim_regno): New function.
8841 (gdbsim_fetch_register): Rewrite.
8842 (gdbsim_store_register): Only store a register when
8843 REGISTER_SIM_REGNO is valid.
8844 * d10v-tdep.c: Include "sim-regno.h".
8845 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8846 (d10v_ts3_register_sim_regno): Ditto.
8847 * gdbarch.sh: Include "sim-regno.h".
8848 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8849 * gdbarch.h, gdbarch.c: Regenerate.
8850 * arch-utils.h (default_register_sim_regno): Delete declaration.
8851 * arch-utils.c (default_register_sim_regno): Delete function.
8852
8853 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8854
8855 * ppcnbsd-nat.c: Rewrite.
8856 * ppcnbsd-tdep.c: New file.
8857 * ppcnbsd-tdep.h: New file.
8858 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8859 solib.o, and solib-svr4.o.
8860 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8861 nbsd-tdep.o, and corelow.o.
8862
8863 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8864
8865 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8866 `tr' and `sed'. Mention that `broken' targets are not expected to
8867 build.
8868
8869 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8870
8871 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8872 Let PC point right after the prologue before looking up symbols.
8873
8874 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8875
8876 * i386-tdep.c (i386_register_virtual_type): Return
8877 builtin_type_vec128i for SSE registers.
8878
8879 * gdbtypes.h (builtin_type_vec128i): Declare.
8880
8881 * gdbtypes.c (build_builtin_type_vec128i): New function.
8882 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8883 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8884 (build_gdbtypes): Initialize new builtin vector types.
8885 (_initialize_gdbtypes): Register new vector types with gdbarch.
8886
8887 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8888
8889 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8890 since it has been multi-arch'd.
8891 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8892 Move Alpha and VAX multi-arch news entries to same section
8893 as other multi-arch news.
8894
8895 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8896
8897 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8898 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8899 static. Rename some register numbers to put them in ns32k-tdep
8900 private namespace.
8901 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8902 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8903 functions.
8904 (_initialize_ns32k_tdep): Use gdbarch_register.
8905 * ns32k-tdep.h: New file.
8906 * ns32knbsd-tdep.c: New file.
8907 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8908 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8909 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8910 REGISTER_BYTES, REGISTER_BYTE): Remove.
8911 * config/ns32k/tm-ns32k.h: New file.
8912 * config/ns32k/tm-umax.h: Remove.
8913
8914 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8915
8916 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8917 ns32k_store_struct_return, ns32k_extract_return_value,
8918 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8919 functions.
8920 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8921 ns32k_saved_pc_after_call.
8922 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8923 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8924 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8925 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8926 ns32k_extract_struct_value_address.
8927
8928 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8929
8930 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8931 ns32k_fix_call_dummy): New.
8932 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8933 ns32k_call_dummy_words.
8934 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8935 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8936 CALL_DUMMY_NARGS): Remove.
8937 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8938
8939 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8940
8941 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8942 ns32k_frame_saved_pc, ns32k_frame_args_address,
8943 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8944 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8945 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8946 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8947 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8948 (BREAKPOINT): Remove..
8949 (FRAME_CHAIN): Define as ns32k_frame_chain.
8950 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8951 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8952 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8953 (FRAME_FIND_SAVED_REGS): Remove.
8954 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8955 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8956 (POP_FRAME): Define as ns32k_pop_frame.
8957
8958 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8959
8960 * ns32k-tdep.c (ns32k_register_byte_32082,
8961 ns32k_register_byte_32382, ns32k_register_raw_size,
8962 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8963 functions.
8964 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8965 ns32k_register_byte_32382.
8966 * config/ns32k/tm-umax.h: Update copyright years.
8967 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8968 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8969 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8970 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8971 (ns32k_get_enter_addr): Fix prototype.
8972
8973 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8974
8975 * ns32k-tdep.c: Update copyright years.
8976 (ns32k_register_name_32082): New function.
8977 (ns32k_register_name_32382): Ditto.
8978 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8979 (REGISTER_NAME): Define as ns32k_register_name_32382.
8980 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8981 (REGISTER_NAME): Define as ns32k_register_name_32082.
8982
8983 2002-05-24 Jim Blandy <jimb@redhat.com>
8984
8985 * dwarf2read.c (free_line_header): Use xfree, not free.
8986
8987 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8988
8989 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8990 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8991
8992 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8993
8994 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8995
8996 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8997
8998 From Ross Alexander at NEC Europe:
8999 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9000
9001 2002-05-23 Michael Snyder <msnyder@redhat.com>
9002
9003 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9004 for input, rather than parse_and_eval_address.
9005
9006 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9007
9008 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9009 * Makefile.in (sim_d10v_h): Update definition.
9010
9011 2002-05-24 Andrew Cagney <cagney@redhat.com>
9012
9013 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9014 change `2002-05-22 Michael Snyder' below.
9015 (d10v_push_arguments): Ditto.
9016 (d10v_extract_return_value): Ditto.
9017
9018 2002-05-23 Jim Blandy <jimb@redhat.com>
9019
9020 * macrotab.c (check_for_redefinition): Don't complain if the new
9021 definition is the same as the previous one. Take more arguments
9022 to allow the comparison.
9023 (macro_define_object, macro_define_function): Pass more arguments
9024 to check_for_redefinition.
9025
9026 2002-05-22 Michael Snyder <msnyder@redhat.com>
9027
9028 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9029 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9030 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9031 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9032 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9033 Add a temp variable to save a call (and a memory read).
9034 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9035 if possible (so that PC_IN_CALL_DUMMY will work).
9036
9037 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9038
9039 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9040
9041 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9042
9043 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9044 fde->cie_ptr.
9045 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9046 (dwarf2_build_frame_info): Add offset to fde->initial_location
9047 so that frames of shared libraries are mapped correctly.
9048 (execute_stack_op): Change type of 'result' from ULONGEST to
9049 CORE_ADDR.
9050
9051 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * config/alpha/tm-nbsd.h: Include solib.h.
9054
9055 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9056
9057 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9058 assumptions about the host's byte order.
9059
9060 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9061
9062 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9063 to dependency list.
9064 * alphanbsd-tdep.c: Include solib-svr4.h.
9065 * shnbsd-tdep.c: Ditto.
9066
9067 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9068
9069 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9070 nbsd-tdep.h to dependency list.
9071 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9072 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9073 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9074 nbsdaout.mh and nbsdelf.mh consistently.
9075 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9076 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9077 nbsdaout.mt and nbsdelf.mh consistently.
9078 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9079 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9080 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9081 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9082 a.out shared library stuff from here...
9083 * config/nm-nbsdaout.h: ...to here.
9084 * config/tm-nbsd.h: Remove.
9085 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9086 * config/arm/nbsd.mh: Remove.
9087 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9088 nbsd-tdep.o.
9089 * config/arm/nbsdaout.mh: New file.
9090 * config/arm/nbsdelf.mh: New file.
9091 * config/arm/nm-nbsdaout.h: New file.
9092 * config/i386/nbsd.mh: Remove.
9093 * config/i386/nbsd.mt: Remove.
9094 * config/i386/nbsdaout.mh: New file.
9095 * config/i386/nbsdaout.mt: New file.
9096 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9097 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9098 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9099 i386_register_u_addr): Remove.
9100 * config/i386/nm-nbsdaout.h: New file.
9101 * config/i386/nm-nbsdelf.h: Remove.
9102 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9103 (USE_STRUCT_CONVENTION): Remove.
9104 * config/i386/tm-nbsdaout.h: New file.
9105 * config/i386/tm-nbsdelf.h: Remove.
9106 * config/m68k/nbsd.mh: Remove.
9107 * config/m68k/nbsd.mt: Remove.
9108 * config/m68k/nbsdaout.mh: New file.
9109 * config/m68k/nbsdaout.mt: New file.
9110 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9111 * config/m68k/nm-nbsdaout.h: New file.
9112 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9113 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9114 * config/ns32k/nbsd.mh: Remove.
9115 * config/ns32k/nbsd.mt: Remove.
9116 * config/ns32k/nbsdaout.mh: New file.
9117 * config/ns32k/nbsdaout.mt: New file.
9118 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9119 * config/ns32k/nm-nbsdaout.h: New file.
9120 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9121 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9122 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9123 (SVR4_SHARED_LIBS): Remove.
9124 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9125 * config/sparc/nbsd.mh: Remove.
9126 * config/sparc/nbsd.mt: Remove.
9127 * config/sparc/nbsdaout.mh: New file.
9128 * config/sparc/nbsdaout.mt: New file.
9129 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9130 * config/sparc/nbsdelf.mt: New file.
9131 * config/sparc/nm-nbsdaout.h: New file.
9132 * config/sparc/nm-nbsdelf.h: Remove.
9133 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9134 * config/sparc/tm-nbsdaout.h: New file.
9135
9136 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9137
9138 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9139 mipsnbsd-tdep.c
9140 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9141
9142 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9143
9144 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9145 shnbsd-nat.c.
9146 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9147
9148 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9149
9150 * NEWS: Note new MIPS NetBSD native configuration.
9151 * configure.host (mips*-*-netbsd*): New host.
9152 * configure.tgt (mips*-*-netbsd*): New target.
9153 * mipsnbsd-nat.c: New file.
9154 * mipsnbsd-tdep.c: New file.
9155 * mipsnbsd-tdep.h: New file.
9156 * config/mips/nbsd.mh: New file.
9157 * config/mips/nbsd.mt: New file.
9158 * config/mips/nm-nbsd.h: New file.
9159 * config/mips/tm-nbsd.h: New file.
9160
9161 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9162
9163 * Makefile.in (SFILES): Add osabi.c.
9164 (COMMON_OBS): Add osabi.o.
9165 (osabi.o): New dependency list.
9166 * osabi.c: New file.
9167 * osabi.h: New file.
9168 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9169
9170 * Makefile.in (alpha_tdep_h): Define and use instead of
9171 alpha-tdep.h.
9172 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9173 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9174 Remove.
9175 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9176 * alpha-tdep.h: Include osabi.h.
9177 (alpha_abi): Remove.
9178 (gdbarch_tdep): Use generic OS ABI framework.
9179 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9180 gdbarch_register_osabi.
9181 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9182 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9183 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9184
9185 * Makefile.in (sh_tdep_h): Add osabi.h.
9186 * sh-tdep.h (sh_osabi): Remove.
9187 (gdbarch_tdep): Use generic OS ABI framework.
9188 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9189 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9190 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9191 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9192
9193 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9194 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9195 gdbarch_register_osabi.
9196 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9197 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9198 (get_elfosabi): Rename to...
9199 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9200 ABI framework support routines.
9201 (arm_gdbarch_init): Use generic OS ABI framework.
9202 (arm_dump_tdep): Likewise.
9203 (_initialize_arm_tdep): Likewise.
9204 * arm-tdep.h: Include osabi.h.
9205 (arm_abi): Remove.
9206 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9207 osabi member.
9208 (arm_gdbarch_register_os_abi): Remove prototype.
9209 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9210 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9211
9212 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9213 * mips-tdep.c: Include osabi.h.
9214 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9215 OS ABI framework.
9216
9217 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9218
9219 * h8300-tdep.c: Fix formatting.
9220
9221 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9222
9223 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9224 printing vector registers.
9225
9226 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9227
9228 From Fernando Nasser:
9229 * remote.c (remote_async_open_1): Re-throw the exception when the
9230 connection fails.
9231 (remote_cisco_open): Ditto.
9232 (remote_open_1): Ditto.
9233
9234 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9235
9236 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9237 (remote_start_remote): Add uiout parameter. Pass through to
9238 remote_start_remote_dummy.
9239 (remote_open_1): Use catch_exception instead of catch_errors.
9240 (remote_async_open_1): Ditto.
9241 (remote_cisco_open): Ditto.
9242
9243 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9244
9245 * remote.c (remote_start_remote): Replace PTR with void pointer.
9246 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9247 static.
9248
9249 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9250
9251 * gdb_indent.sh: Allow the script to be run in the sim directory.
9252
9253 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9254
9255 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9256 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9257
9258 * corelow.c (core_open): Only call set_gdbarch_from_file if
9259 exec_bfd is NULL.
9260
9261 2002-05-17 Andrey Volkov <avolkov@transas.com>
9262
9263 * h8300-tdep.c: Add support of EXR register
9264 * config/h8300/tm-h8300.h: Ditto.
9265
9266 2002-05-17 Andrey Volkov <avolkov@transas.com>
9267
9268 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9269
9270 2002-05-17 Andrey Volkov <avolkov@transas.com>
9271
9272 * h8300-tdep.c: Change literal regnums to REGNO.
9273
9274 2002-05-17 Jim Blandy <jimb@redhat.com>
9275
9276 * NEWS: Note addition of macro support.
9277
9278 Expand preprocessor macros in C expressions.
9279 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9280 (scan_macro_expansion, scanning_macro_expansion,
9281 finished_macro_expansion): New function declarations.
9282 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9283 variable declarations.
9284 * parser-defs.h (expression_context_pc): New declaration.
9285 * parse.c (expression_context_pc): New variable.
9286 (parse_exp_1): Set expression_context_pc, as well as
9287 expression_context_block.
9288 * c-exp.y (yylex): If we're not already reading the result of a
9289 macro expansion, try to macro-expand the next token. When we're
9290 done scanning a macro expansion, switch back to the mainline text.
9291 Commas and `if's in a macro's expansion don't terminate the input.
9292 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9293 (macro_original_text, macro_expanded_text,
9294 expression_macro_lookup_func, expression_macro_lookup_baton): New
9295 variables.
9296 (scan_macro_expansion, scanning_macro_expansion,
9297 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9298 c_preprocess_and_parse): New functions.
9299 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9300 c_preprocess_and_parse, instead of c_parse.
9301 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9302 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9303
9304 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9305
9306 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9307 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9308 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9309
9310 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9311
9312 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9313
9314 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9315
9316 * Makefile.in (sh_tdep_h): Define and use.
9317 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9318 register enum): Move to...
9319 * * sh-tdep.h: ...here.
9320 * sh-tdep.c: Include sh-tdep.h.
9321 * sh3-rom.c: Likewise.
9322 * shnbsd-tdep.c: Likewise.
9323
9324 2002-05-16 Michael Snyder <msnyder@redhat.com>
9325
9326 * arm-tdep.c: Spelling fix in comment.
9327
9328 2002-05-16 Jim Blandy <jimb@redhat.com>
9329
9330 Add commands for manually expanding macros and showing their
9331 definitions.
9332 * macrocmd.c, macroscope.c, macroscope.h: New files.
9333 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9334 (macroscope_h): New variable.
9335 (HFILES_NO_SRCDIR): Add macroscope.h.
9336 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9337 (macroscope.o, macrocmd.o): New rules.
9338
9339 Teach the Dwarf 2 reader to read macro information.
9340 * dwarf2read.c: #include "macrotab.h".
9341 (dwarf_macinfo_buffer): New variable.
9342 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9343 dwarf_macinfo_size.
9344 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9345 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9346 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9347 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9348 dwarf2_macro_spaces_in_definition): New complaints.
9349 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9350 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9351 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9352 the partial symbol table.
9353 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9354 from what's recorded in the partial symbol table.
9355 (read_file_scope): If the compilation unit has a
9356 `DW_AT_macro_info' attribute, read its macro information.
9357 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9358
9359 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9360
9361 Fix PR gdb/546
9362 * ser-tcp.c: Don't include <netinet/udp.h>.
9363
9364 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9365
9366 * MAINTAINERS: Update my email address.
9367
9368 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9369
9370 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9371 include file of the same name.
9372
9373 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9374
9375 * configure.tgt: Mark v850 as multi-arched.
9376 * config/v850/tm-v850.h: Remove file.
9377 * config/v850/v850.mt: Eliminate TM_FILE.
9378
9379 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9380
9381 * v850-tdep.c: Full multi-arch.
9382 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9383 Define GDB_MULTI_ARCH to 2.
9384
9385 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9386
9387 * p-exp.y (current_type): New static variable.
9388 Carries the type of the expression at the position that is parsed.
9389 (push_current_type, pop_current_type): Two new functions. Used
9390 to store/restore current_type in expression on specific tokens.
9391 (search_field): New static variable. Set to one after parsing a point
9392 as at that point only a FIELDNAME token should be searched.
9393 (FIELDNAME): New token. After a point only a token belonging to
9394 current_type type definition is allowed.
9395 (all over token rules): reset and change current_type according
9396 to rules.
9397 (exp '[' rule): insert implicit array index field if
9398 exp is a pascal string type.
9399
9400 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9401
9402 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9403 frame info. Use frame_info's saved_regs instead of matching member
9404 in extra_frame_info throughout.
9405 (v850_frame_init_saved_regs): New function.
9406 (v850_init_extra_frame_info): Move most functionality into
9407 v850_frame_init_saved_regs().
9408 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9409 (v850_frame_find_saved_regs): Remove declaration.
9410 (FRAME_FIND_SAVED_REGS): Remove definition.
9411 (v850_frame_init_saved_regs): Add declaration.
9412 (FRAME_INIT_SAVED_REGS): Add definition.
9413
9414 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9415
9416 * v850-tdep.c: Begin multi-arch'ing v850.
9417 (v850_target_architecture_hook): Remove function.
9418 (v850_gdbarch_init): New function. Add code previously in
9419 v850_target_architecture_hook().
9420 (_initialize_v850_tdep): Don't set target_architecture_hook.
9421 Call register_gdbarch_init() instead.
9422
9423 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9426 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9427 (fixup_class_method_type): Likewise.
9428
9429 2002-05-15 Jim Blandy <jimb@redhat.com>
9430
9431 Add macro structures to GDB's symbol tables. Nobody puts anything
9432 in them yet.
9433 * symtab.h (struct symtab): New member: `macro_table'.
9434 * buildsym.h (pending_macros): New global variable.
9435 * buildsym.c: #include "macrotab.h".
9436 (buildsym_init): Initialize `pending_macros'.
9437 (end_symtab): If we found macro information while reading a CU's
9438 debugging info, do build a symtab structure for it. Make the
9439 symtab point to the macro information, and clear the
9440 `pending_macros' pointer which held it while we were reading the
9441 debug info.
9442 (really_free_pendings): Free any pending macro table.
9443 * objfiles.h (struct objfile): New member: `macro_cache'.
9444 * objfiles.c (allocate_objfile): Set allocate and free functions
9445 for the macro cache's objstack.
9446 (free_objfile): Empty the macro cache's obstack.
9447 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9448 set new allocate and free functions for it.
9449 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9450 free functions for the macro cache's objstack. (Why is this
9451 function building its own objfile?)
9452 * symmisc.c (print_objfile_statistics): Print statistics on the
9453 macro bcache.
9454 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9455
9456 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9457
9458 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9459 (REGISTER_U_ADDR): Delete definition.
9460 (arm_register_u_addr): Delete declaration.
9461
9462 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9463
9464 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9465 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9466
9467 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9468
9469 * regcache.c (register_valid): Revise comments refering to "Not
9470 available" and "unavailable".
9471 * frame.c (frame_register_read): Ditto.
9472 * findvar.c (value_of_register): Ditto.
9473
9474 2002-05-15 Andrew Cagney <cagney@redhat.com>
9475
9476 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9477 (remote-sim.o): Update dependencies.
9478 (d10v-tdep.o): Specify dependencies.
9479 (sim_d10v_h): Define.
9480
9481 2002-05-14 Jim Blandy <jimb@redhat.com>
9482
9483 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9484 * macrotab.c (macro_lookup_inclusion, find_definition,
9485 new_macro_table): Same.
9486
9487 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9488 not `! strcmp ()'. This is a dubious improvement.
9489 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9490
9491 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9492 although it's not necessary, to avoid a warning.
9493
9494 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9495
9496 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9497 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9498 TYPE_INSTANCE_FLAGS.
9499 (struct main_type): New.
9500 (struct type): Move most members to struct main_type. Change
9501 cv_type and as_type to new type_chain member. Add instance_flags.
9502 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9503 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9504 (finish_cv_type): Remove prototype.
9505 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9506 Set TYPE_CHAIN.
9507 (alloc_type_instance): New function.
9508 (smash_type): New function.
9509 (make_pointer_type, make_reference_type, make_function_type)
9510 (smash_to_member_type, smash_to_method_type): Call smash_type.
9511 (make_qualified_type): New function.
9512 (make_type_with_address_space): Call make_qualified_type.
9513 (make_cv_type): Likewise.
9514 (finish_cv_type): Remove unnecessary function.
9515 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9516 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9517 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9518 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9519 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9520 * hpread.c (hpread_read_struct_type): Likewise.
9521 * stabsread.c (read_struct_type): Likewise.
9522
9523 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9524
9525 * configure.tgt: Add a catch all sh* target, for cases like
9526 sh[2,3,4]-elf and sh-hms.
9527
9528 2002-05-14 Keith Seitz <keiths@redhat.com>
9529
9530 * event-loop.c (create_file_handler): Don't do anything but
9531 update data when we are given a fd which we are already
9532 monitoring.
9533
9534 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9535
9536 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9537 (update_context): Use __func__ in warnings.
9538
9539 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9540
9541 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9542 and tcp_close to net_open and net_close.
9543 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9544 using UDP if requested. Don't try to disable Nagle on UDP
9545 sockets.
9546 * remote.c (remote_serial_open): New function. Warn about UDP.
9547 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9548
9549 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9550
9551 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9552
9553 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9554
9555 * configure.tgt: Remove sh-hms target.
9556 * MAINTAINERS: Don't list sh-hms as a separate target.
9557
9558 2002-05-13 Jim Blandy <jimb@redhat.com>
9559
9560 Add first preprocessor macro-expansion files.
9561 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9562 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9563 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9564 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9565 (COMMON_OBS): Add macrotab.o, macroexp.o.
9566 (macroexp.o, macrotab.o): New rules.
9567
9568 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9569
9570 * config/m88k/tm-m88k.h: Update copyright.
9571 (m88k_target_write_pc): Declare
9572 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9573 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9574 (SHIFT_INST_REGS): Update definition.
9575 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9576 using old definition of TARGET_WRITE_PC.
9577 * regcache.c (generic_target_write_pc): Delete code handling
9578 NNPC_REGNUM.
9579 * gdbarch.sh (NNPC_REGNUM): Delete.
9580 * gdbarch.h, gdbarch.c: Regenerate.
9581
9582 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9583
9584 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9585 builtin reg number.
9586
9587 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9590 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9591 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9592 access macros.
9593 * c-typeprint.c (cp_type_print_method_args): Likewise.
9594 (c_type_print_args): Likewise.
9595 * d10v-tdep.c (d10v_push_arguments): Likewise.
9596 (d10v_extract_return_value): Likewise.
9597 * expprint.c (print_subexp): Likewise.
9598 * gdbtypes.c (lookup_primitive_typename): Likewise.
9599 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9600 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9601 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9602 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9603 (TYPE_VECTOR): Likewise.
9604 * hpread.c (hpread_read_struct_type)
9605 (fix_static_member_physnames, fixup_class_method_type)
9606 (hpread_type_lookup): Likewise.
9607 * mdebugread.c (parse_symbol, parse_type): Likewise.
9608 * p-lang.c (is_pascal_string_type): Likewise.
9609 * valops.c (hand_function_call): Likewise.
9610 * x86-64-tdep.c (classify_argument): Likewise.
9611
9612 * hpread.c (hpread_read_function_type)
9613 (hpread_read_doc_function_type): Call replace_type.
9614 * dstread.c (create_new_type): Delete.
9615 (decode_dst_structure, process_dst_function): Call alloc_type.
9616 Use type access macros.
9617
9618 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9619
9620 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9621 the're not supported by the current architecture.
9622 (i387_fill_fxsave): Likewise.
9623
9624 2002-05-12 Fred Fish <fnf@redhat.com>
9625
9626 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9627 sect_index_xxx members to index the first slot in section_offsets
9628 if all of the section_offsets are zero.
9629
9630 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9631
9632 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9633 checked in with last change.
9634
9635 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9636
9637 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9638 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9639 config.sub.
9640
9641 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9642
9643 * Makefile.in: Update dependencies.
9644
9645 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9646
9647 * language.c (local_hex_string_custom): Simplify. Do not depend
9648 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9649
9650 * memattr.c (mem_info_command): Replace calls to
9651 longest_local_hex_string and longest_local_hex_string_custom.
9652 * buildsym.c (make_blockvector): Ditto.
9653 * solib.c (info_sharedlibrary_command): Ditto.
9654 * tracepoint.c (tracepoints_info): Ditto.
9655 * symtab.c (print_msymbol_info): Ditto.
9656
9657 * language.c (local_hex_string): Delete.
9658 (local_hex_string_custom): Delete.
9659 (longest_local_hex_string): Rename to local_hex_string.
9660 (longest_local_hex_string_custom): Rename to
9661 local_hex_string_custom.
9662 * language.h (local_hex_string): Change parameter type to LONGEST.
9663 (local_hex_string_custom): Ditto.
9664 (longest_local_hex_string): Delete declaration.
9665 (longest_local_hex_string_custom): Ditto.
9666
9667 * solib.c: Update copyright.
9668 * memattr.c: Update copyright.
9669
9670 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9671
9672 * arch-utils.h (legacy_register_to_value): Declare.
9673 (legacy_value_to_register): Declare.
9674 (legacy_convert_register_p): Declare.
9675 * arch-utils.c (legacy_register_to_value): New function.
9676 (legacy_value_to_register): New function.
9677 (legacy_convert_register_p): New function.
9678
9679 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9680 (VALUE_TO_REGISTER): Define.
9681 (CONVERT_REGISTER_P): Define.
9682 * gdbarch.h, gdbarch.c: Regenerate.
9683
9684 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9685 VALUE_TO_REGISTER.
9686 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9687 CONVERT_REGISTER_P.
9688
9689 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9690 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9691
9692 * Makefile.in: Update dependencies for valops.c.
9693 * valops.c: Include "gdb_assert.h".
9694 (typecmp): Skip THIS parameter to methods.
9695 (find_method_list): Remove static_memfuncp argument,
9696 update callers. Check for stub methods.
9697 (find_value_oload_method_list): Don't set *static_memfuncp.
9698 (find_overload_match): Don't check for stub methods. Assert
9699 that methods are not stubbed. Handle static methods.
9700 (value_find_oload_method_list): Remove static_memfuncp argument.
9701 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9702 to the argument list for static stub methods.
9703 * value.h (value_find_oload_method_list): Update prototype.
9704
9705 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9706
9707 * arch-utils.h (generic_register_size): Declare.
9708 (generic_register_raw_size, generic_register_virtual_size): Delete
9709 declarations.
9710 * arch-utils.c (generic_register_raw_size): Delete.
9711 (generic_register_size): New function.
9712 (generic_register_virtual_size): Delete.
9713
9714 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9715 default generic_register_size.
9716 * gdbarch.h, gdbarch.c: Re-generate.
9717
9718 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9719 register_virtual_size.
9720 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9721 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9722
9723 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9724
9725 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9726 * gdbarch.h, gdbarch.c: Regenerate.
9727 * gnu-v3-abi.c: Update copyright.
9728 (vtable_address_point_offset): Update.
9729 (gnuv3_rtti_type): Update.
9730 (gnuv3_baseclass_offset): Update.
9731 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9732 (init_fetch_link_map_offsets): Update.
9733 * remote.c (get_remote_state): Update.
9734
9735 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9736
9737 * TODO: Remove value_headof/value_from_vtable_info comment.
9738 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9739 * values.c (value_headof, value_from_vtable_info): Delete.
9740 * value.h (value_from_vtable_info): Delete prototype.
9741
9742 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9743
9744 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9745 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9746 $(gdb_regex_h).
9747 (gdb_assert_h): Define.
9748 (gdb_wait_h): Define.
9749 (gdb_regex_h): Define.
9750
9751 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9752
9753 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9754 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9755
9756 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9757
9758 * nbsd-tdep.c: Fix comment.
9759
9760 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9763 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9764 (nbsd-tdep.o): New dependency list.
9765 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9766 nbsd-tdep.h.
9767 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9768 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9769 * nbsd-tdep.c: New file.
9770 * nbsd-tdep.h: New file.
9771 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9772 nbsd-tdep.h.
9773 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9774 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9775 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9776 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9777
9778 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9779
9780 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9781 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9782 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9783 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9784 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9785 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9786
9787 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9788
9789 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9790 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9791 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9792 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9793 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9794 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9795 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9796
9797 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9798
9799 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9800 fetch_elfcore_registers to...
9801 * i386nbsd-tdep.c: ...here.
9802 (i386nbsd_use_struct_convention): Rename to...
9803 (i386nbsd_aout_use_struct_convention): ...this.
9804 (i386nbsd_supply_reg): New function.
9805 (i386nbsd_fill_reg): New function.
9806 (fetch_core_registers): Use i386nbsd_supply_reg.
9807 (fetch_elfcore_registers): Likewise.
9808 (_initialize_i386nbsd_tdep): New function.
9809 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9810 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9811 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9812 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9813 (i386nbsd_aout_use_struct_convention): ...this.
9814
9815 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9816
9817 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9818 (store_inferior_registers): Use shnbsd_fill_reg.
9819 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9820 sh_nbsd_supply_register): Collapse into...
9821 (shnbsd_supply_reg): ...this.
9822 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9823 (shnbsd_fill_reg): ...this.
9824 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9825 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9826 (fetch_core_registers): Use shnbsd_supply_reg.
9827 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9828 (sh_nbsd_core_fns): Rename to...
9829 (shnbsd_core_fns): ...this.
9830 (sh_nbsd_elfcore_fns): Rename to...
9831 (shnbsd_elfcore_fns): ...this.
9832 (sh_nbsd_init_abi): Rename to...
9833 (shnbsd_init_abi): ...this.
9834 (_initialize_sh_nbsd_tdep): Rename to...
9835 (_initialize_shnbsd_tdep): ...this.
9836 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9837 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9838 sh_nbsd_fill_register): Remove prototypes.
9839 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9840
9841 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9842
9843 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9844 (i387-nat.o): Delete dependency list.
9845 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9846 (x86-64-linux-nat.o): Likewise.
9847 * i387-nat.c: Delete file, moving contents to...
9848 * i387-tdep.c: ...here.
9849 * i387-nat.h: Rename...
9850 * i387-tdep.h: ...to this.
9851 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9852 * i386-linux-nat.c: Likewise.
9853 * i386bsd-nat.c: Likewise.
9854 * i386gnu-nat.c: Likewise.
9855 * i386nbsd-nat.c: Likewise.
9856 * i386v4-nat.c: Likewise.
9857 * x86-64-linux-nat.c: Likewise.
9858 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9859 * config/i386/go32.mh (NATDEPFILES): Likewise.
9860 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9861 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9862 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9863 * config/i386/linux.mh (NATDEPFILES): Likewise.
9864 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9865 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9866 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9867 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9868
9869 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9870
9871 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9872 (alphanbsd-nat.o): Remove dependency list.
9873 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9874 * alphanbsd-nat.c: Delete. Contents moved to...
9875 * alphanbsd-tdep.c: ...here.
9876 (_initialize_alphanbsd_tdep): Register core functions.
9877 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9878
9879 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9880
9881 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9882 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9883 (alphanbsd-nat.o): Likewise.
9884 (alphabsd-tdep.o): New dependency list.
9885 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9886 (fill_gregset): Use alphabsd_fill_reg.
9887 (supply_fpregset): Use alphabsd_supply_fpreg.
9888 (fill_fpregset): Use alphabsd_fill_fpreg.
9889 (fetch_inferior_registers): Use struct reg and struct fpreg
9890 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9891 and alphabsd_supply_fpreg.
9892 (store_inferior_registers): Use struct reg and struct fpreg
9893 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9894 and alphabsd_fill_fpreg.
9895 * alphabsd-tdep.c: New file.
9896 * alphabsd-tdep.h: New file.
9897 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9898 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9899 alphabsd_supply_fpreg.
9900 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9901 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9902
9903 2002-05-11 Eric Christopher <echristo@redhat.com>
9904
9905 * mips-tdep.c (mips_double_register_type): Fix thinko.
9906 (mips_single_register_type): Ditto.
9907 * MAINTAINERS: Add self.
9908
9909 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9910
9911 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9912 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9913 right thing on architectures with different endianness and/or
9914 integer sizes.
9915
9916 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9917
9918 From Christian Limpach <chris@Pin.LU>
9919 * configure.in: Change sed expression which comments out
9920 NATDEPFILES to also comment out continuation lines.
9921 * configure: Regenerate.
9922
9923 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9926 big patch.
9927
9928 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9929
9930 * sh-tdep.c: Include correct file.
9931
9932 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9933
9934 New support for sh64-elf (sh5) target.
9935
9936 * configure.tgt: For sh64-elf target, default to sh-elf.
9937
9938 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9939 (struct gdbarch_tdep): Add new fields for new registers and ABI
9940 info.
9941
9942 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9943 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9944 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9945 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9946 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9947 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9948 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9949 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9950 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9951 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9952 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9953 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9954 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9955 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9956 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9957 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9958 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9959 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9960 sign_extend, sh64_nofp_frame_init_saved_regs,
9961 sh64_init_extra_frame_info, sh64_get_saved_register,
9962 sh64_extract_struct_value_address, sh64_pop_frame,
9963 sh64_push_arguments, sh64_extract_return_value,
9964 sh64_store_return_value, sh64_show_media_regs,
9965 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9966 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9967 sh_sh64_register_virtual_type,
9968 sh_sh64_register_convert_to_virtual,
9969 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9970 sh64_register_read, sh64_pseudo_register_write,
9971 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9972 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9973 sh64_do_pseudo_register, sh_compact_do_registers_info,
9974 sh64_do_registers_info, sh_gdbarch_init): New functions.
9975
9976 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9977
9978 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9979
9980 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9981
9982 * linespec.c (decode_line_1): Check for a double quote after
9983 a filename correctly.
9984
9985 2002-05-10 Jim Blandy <jimb@redhat.com>
9986
9987 Properly track the size of the current objfile's .debug_line section.
9988 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9989 (DWARF_LINE_SIZE): New macro.
9990 (dwarf2_build_psymtabs_hard): Record the line section's size in
9991 the partial symbol table.
9992 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9993 symbol table.
9994
9995 2002-05-10 Petr Sorfa <petrs@caldera.com>
9996
9997 * ia64-tdep.c: Handle breakpoints on L instruction type
9998 in MLX instruction bundle by moving the breakpoint to
9999 the third slot (X instruction type) as L holds only data.
10000
10001 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10002
10003 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10004 (process_one_symbol): Complain about discarding local symbols
10005 due to a misplaced N_LBRAC entry.
10006
10007 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10008
10009 From Daniel Berlin <dan@cgsoftware.com>
10010 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10011 decrease the depth we are at, in the case of templates.
10012
10013 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * mips-tdep.c (mips_float_register_type): New function.
10016 (mips_double_register_type): New function.
10017 (mips_print_register): Use them.
10018 (do_fp_register_row): Likewise.
10019
10020 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * signals/signals.c (signals): Remove conditional compilation around
10023 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10024 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10025
10026 2002-05-09 Michael Snyder <msnyder@redhat.com>
10027
10028 * remote-rdp.c (remote_rdp_can_run): Remove.
10029
10030 2002-05-09 Tom Tromey <tromey@redhat.com>
10031
10032 * jv-valprint.c (java_val_print): Handle `char' as a special case
10033 of TYPE_CODE_INT.
10034
10035 2002-05-09 Michael Snyder <msnyder@redhat.com>
10036
10037 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10038 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10039 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10040 str r(0123),[sp,#nn].
10041 (arm_skip_prologue): Ditto. Also make disassembly
10042 order-independent by placing it in a loop.
10043
10044 2002-05-06 Michael Snyder <msnyder@redhat.com>
10045
10046 * stabsread.c (read_type): Add recognition for new attribute:
10047 "@V;" means that an array type is actually a vector.
10048 This is analogous to the vector flag that's been added to dwarf2.
10049
10050 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10051
10052 * i386-tdep.h (i386_abi): New enum.
10053 (struct gdbarch_tdep): Replace os_ident member with abi.
10054 (i386_gdbarch_register_os_abi): New prototype.
10055 * i386-tdep.c (i386_abi_names): New array.
10056 (process_note_abi_tag_sections): Removed.
10057 (process_note_sections): New function.
10058 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10059 (struct i386_abi_handler): New struct.
10060 (i386_abi_handler_list): New variable.
10061 (i386_gdbarch_register_os_abi): New function.
10062 (i386_gdbarch_init): Adapt for the changes given above.
10063
10064 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10065
10066 * gregset.h: Say "GNU/Linux".
10067
10068 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10069
10070 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10071 (build_gdbtypes): Build builtin_type_v2_float.
10072 (_initialize_gdbtypes): Register new builtin type.
10073
10074 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10075
10076 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10077 (clear_gdbarch_swap): New function.
10078 (initialize_non_multiarch): Call.
10079 (gdbarch_update_p): Before calling init(), swap out and clear the
10080 existing architecture.
10081 * gdbarch.c: Regenerate.
10082
10083 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10084
10085 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10086 alphanbsd-tdep.c.
10087
10088 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10089
10090 * sh-nbsd-nat.c: Rename to...
10091 * shnbsd-nat.c: ...this.
10092 * sh-nbsd-tdep.c: Rename to...
10093 * shnbsd-tdep.c: ...this.
10094 * sh-nbsd-tdep.h: Rename to...
10095 * shnbsd-tdep.h: ...this.
10096 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10097 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10098
10099 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10100
10101 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10102 concatenation for command help messages.
10103
10104 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10105
10106 * NEWS: Note new sh*-*-netbsdelf* configuration.
10107 * configure.host: Set gdb_host_cpu to sh for all sh*.
10108 (sh*-*-netbsdelf*): New host.
10109 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10110 (sh*-*-netbsdelf*): New target.
10111 * sh-nbsd-nat.c: New file.
10112 * sh-nbsd-tdep.c: New file.
10113 * sh-nbsd-tdep.h: New file.
10114 * config/sh/nbsd.mh: New file.
10115 * config/sh/nbsd.mt: New file.
10116 * config/sh/nm-nbsd.h: New file.
10117 * config/sh/tm-nbsd.h: New file.
10118
10119 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10120
10121 * sh-tdep.c (sh_osabi_names): Declare.
10122 (process_note_abi_tag_sections): New function.
10123 (get_elfosabi): Ditto.
10124 (sh_gdbarch_register_os_abi): Ditto.
10125 (sh_dump_tdep): Ditto.
10126 _initialize_sh_tdep): Use gdbarch_register to register
10127 sh_gdbarch_init and sh_dump_tdep.
10128 * config/sh/tm-sh.h (sh_osabi): Declare.
10129 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10130
10131 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10132
10133 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10134 (thumb_scan_prologue): Ditto.
10135 (arm_find_callers_reg): Ditto.
10136 (arm_frame_chain): Ditto.
10137 (arm_init_extra_frame_info): Ditto.
10138 (arm_frame_saved_pc): Ditto.
10139 (arm_pop_frame): Ditto.
10140 (arm_push_return_address): New function.
10141 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10142 call_dummy_location, call_dummy_breakpoint_offset_p,
10143 call_dummy_breakpoint_offset, call_dummy_p,
10144 call_dummy_stack_adjust_p, call_dummy_words,
10145 sizeof_call_dummy_words, call_dummy_start_offset,
10146 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10147 call_dummy_address, push_return_address and push_dummy_frame for
10148 generic dummy frames.
10149
10150 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10151
10152 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10153 size computation for alloca.
10154 (sh_fp_frame_init_saved_regs): Likewise.
10155
10156 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10157
10158 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10159 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10160 * arm-tdep.c (arm_store_return_value): Use them.
10161 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10162 * remote-rdp.c (remote_rdp_fetch_register): Use
10163 ARM_MAX_REGISTER_RAW_SIZE.
10164 (remote_rdp_store_register): Likewise.
10165
10166 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10167
10168 * dwarf2cfi.c: Code cleanup, removed unused variables,
10169 added default labels to switch {} statements.
10170 * x86-64-tdep.c: Ditto.
10171 * x86-64-linux-nat.c: Ditto.
10172
10173 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10174
10175 * solib.h: Protect against multiple inclusion.
10176
10177 2002-05-06 Jim Blandy <jimb@redhat.com>
10178
10179 Add first preprocessor macro-expansion files.
10180 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10181 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10182 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10183 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10184 (COMMON_OBS): Add macrotab.o, macroexp.o.
10185 (macroexp.o, macrotab.o): New rules.
10186
10187 Separate the job of reading the line number info statement program
10188 header (...expialidocious) out into its own function.
10189 * dwarf2read.c (struct line_head, struct filenames, struct
10190 directories): Replace with...
10191 (struct line_header): New structure, containing the full
10192 contents of the statement program header, including the
10193 include directory and file name tables.
10194 (read_file_scope): If we have line number info, instead of just
10195 calling dwarf_decode_lines to do all the work, call
10196 dwarf_decode_line_header first to get a `struct line_header'
10197 containing the data in the statement program header, and then
10198 pass that to dwarf_decode_lines, which will pick up where that
10199 left off. Be sure to clean up the `struct line_header' object.
10200 (dwarf_decode_line_header, free_line_header, add_include_dir,
10201 add_file_name): New functions.
10202 (dwarf_decode_lines): Move all the code to read the statement
10203 program header into dwarf_decode_line_header. Take the line
10204 header it built as the first argument, instead of the offset to
10205 the compilation unit's line number info. Use the new `struct
10206 line_header' type instead of the old structures. No need to do
10207 cleanups here now, since we don't allocate anything.
10208 (dwarf2_statement_list_fits_in_line_number_section,
10209 dwarf2_line_header_too_long): New complaints.
10210
10211 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10212
10213 * gdbtypes.c (init_vector_type): New function.
10214 (build_builtin_type_vec128): Simplify the representation of SIMD
10215 registers.
10216 (build_gdbtypes): Initialize new builtin vector types.
10217 (_initialize_gdbtypes): Register new vector types with gdbarch.
10218 (builtin_type_v4_float, builtin_type_v4_int32,
10219 builtin_type_v8_int16, builtin_type_v16_int8,
10220 builtin_type_v2_int32, builtin_type_v4_int16,
10221 builtin_type_v8_int8): New (renamed) SIMD types.
10222
10223 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10224
10225 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10226 (i387_fill_fxsave): Likewise.
10227
10228 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10229
10230 * alpha-tdep.c (alpha_extract_return_value): Don't use
10231 non-constant array size in prototype.
10232
10233 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10234
10235 From Brian Taylor <briant at model dot com>:
10236 * ui-out.c (ui_out_field_core_addr): Use the function
10237 longest_local_hex_string_custom'to format addresses > 32 bits
10238 wide.
10239
10240 * ui-out.c (ui_out_field_core_addr): Update comment.
10241
10242 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10243
10244 * stack.c (select_and_print_frame): Make static. Delete the
10245 parameter `level'.
10246 (func_command): Update call.
10247 (select_frame_command): Delete code computing the frame level.
10248 * frame.h (select_and_print_frame): Delete declaration.
10249
10250 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10251
10252 * sparc-tdep.c (sparc_get_saved_register): Comment why
10253 get_prev_frame call is safe.
10254
10255 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10256
10257 * frame.h (select_frame): Delete level parameter.
10258 * stack.c (select_frame): Update. Use frame_relative_level to
10259 obtain the frame's level.
10260 (select_and_print_frame): Update call.
10261 (select_frame_command): Ditto.
10262 (up_silently_base): Ditto.
10263 (down_silently_base): Ditto.
10264 * ocd.c (ocd_start_remote): Ditto.
10265 * remote-rdp.c (remote_rdp_open): Ditto.
10266 * remote-mips.c (mips_initialize): Ditto.
10267 (common_open): Ditto.
10268 * remote-e7000.c (e7000_start_remote): Ditto.
10269 * m3-nat.c (select_thread): Ditto.
10270 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10271 (child_get_current_exception_event): Ditto.
10272 * varobj.c (varobj_create): Ditto.
10273 (varobj_update): Ditto.
10274 (c_value_of_root): Ditto.
10275 * tracepoint.c (finish_tfind_command): Ditto.
10276 * corelow.c (core_open): Ditto.
10277 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10278 * thread.c (info_threads_command): Ditto.
10279 (switch_to_thread): Ditto.
10280 * infrun.c (normal_stop): Ditto.
10281 (restore_selected_frame): Ditto.
10282 (restore_inferior_status): Ditto.
10283 * breakpoint.c (insert_breakpoints): Ditto.
10284 (watchpoint_check): Ditto.
10285 (bpstat_stop_status): Ditto.
10286 (do_enable_breakpoint): Ditto.
10287 * blockframe.c (flush_cached_frames): Ditto.
10288 (reinit_frame_cache): Ditto.
10289
10290 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10291
10292 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10293 maintainer.
10294
10295 2002-05-04 Jim Blandy <jimb@redhat.com>
10296
10297 * gdbtypes.c (replace_type): Doc fix.
10298
10299 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10300
10301 * valprint.c (strcat_longest): Delete commented out function.
10302 Update copyright.
10303
10304 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10305
10306 * MAINTAINERS: Mark a29k as deleted.
10307 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10308 Move new configurations to the top.
10309 * configure.tgt: Remove a29k.
10310 * config/a29k/tm-vx29k.h: Delete.
10311 * config/a29k/vx29k.mt: Delete.
10312 * config/a29k/tm-a29k.h: Delete.
10313 * config/a29k/a29k-udi.mt: Delete.
10314 * config/a29k/a29k.mt: Delete.
10315 * a29k-tdep.c: Delete.
10316 * remote-udi.c: Delete.
10317 * remote-mm.c: Delete.
10318 * remote-eb.c: Delete.
10319 * remote-adapt.c: Delete.
10320 * Makefile.in: Remove obsolete code.
10321 * config/s390/s390x.mt: Ditto.
10322 * config/s390/s390.mt: Ditto.
10323 * config/sparc/sparclynx.mh: Ditto.
10324 * config/sparc/linux.mh: Ditto.
10325 * config/pa/hppaosf.mh: Ditto.
10326 * config/pa/hppabsd.mh: Ditto.
10327 * config/ns32k/nbsd.mt: Ditto.
10328 * config/mips/vr5000.mt: Ditto.
10329 * config/m68k/sun3os4.mh: Ditto.
10330 * config/m68k/nbsd.mt: Ditto.
10331 * config/m68k/m68klynx.mh: Ditto.
10332 * config/m32r/m32r.mt: Ditto.
10333 * config/i386/x86-64linux.mt: Ditto.
10334 * config/i386/nbsdelf.mt: Ditto.
10335 * config/i386/nbsd.mt: Ditto.
10336 * config/i386/i386lynx.mh: Ditto.
10337
10338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10339
10340 * target.c (debug_print_register): New function. Handle oversize
10341 registers.
10342 (debug_to_fetch_registers): Call.
10343 (debug_to_store_registers): Call.
10344
10345 2002-05-03 Jim Blandy <jimb@redhat.com>
10346
10347 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10348 (read_type): Doc fix.
10349 * gdbtypes.c (replace_type): Doc fix.
10350
10351 * stabsread.c (multiply_defined_struct): New complaint.
10352 (read_struct_type): If the type we were passed isn't empty, or
10353 incomplete, don't read the new struct type into it; complain,
10354 and return the original type unchanged. Take a new `type_code'
10355 argument, which is the type code for the new type.
10356 (read_type): Rather than storing the type's type code here, pass
10357 it as an argument to read_struct_type, and let that take care of
10358 storing it. That way, we don't overwrite the original type code,
10359 so read_struct_type can use it to decide whether we're overwriting
10360 something we shouldn't.
10361 (complain_about_struct_wipeout): New function.
10362
10363 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10364
10365 * gdbarch.sh: Assert that gdbarch is non-NULL.
10366 * gdbarch.c: Regenerate.
10367
10368 2002-05-03 Jason Merrill <jason@redhat.com>
10369
10370 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10371 and return NULL.
10372
10373 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10374
10375 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10376 (x86_64_dwarf2gdb_regno_map_length),
10377 (x86_64_dwarf2_reg_to_regnum): Added.
10378 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10379 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10380 (_initialize_x86_64_tdep): Synced with the change above.
10381 (x86_64_skip_prologue): Reformulated message.
10382
10383 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10384
10385 * f-exp.y: Also use new prev_lexptr variable
10386 to improve error reporting. Based on Michael Snyder
10387 2002-04-24 dated patch to c-exp.y.
10388 * jv-exp.y: Likewise.
10389 * m2-exp.y: Likewise.
10390
10391 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10392
10393 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10394 we are dealing with vectors.
10395
10396 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10397
10398 * config/m68k/tm-nbsd.h: Obvious fix,
10399 correct machine name.
10400
10401 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10402
10403 * p-typeprint.c (pascal_type_print_base): Add support
10404 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10405
10406 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10407
10408 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10409 for fondamental pascal 'char' type.
10410
10411 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10412
10413 * p-lang.h (is_pascal_string_type): Declaration changed,
10414 new sixth argument of type char ** added.
10415 * p-lang.c (is_pascal_string_type): Implementation
10416 changed. Args length_pos, length_size, string_pos, char_size
10417 can now be NULL. New argument arrayname set to the field
10418 name of the char array. Return value set to char array
10419 field index plus one.
10420 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10421 is_pascal_string_type function.
10422
10423 2002-05-02 Andrew Cagney <cagney@redhat.com>
10424
10425 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10426 <cagney@redhat.com> change.
10427 * gdbarch.c: Regenerate.
10428
10429 2002-05-02 Andrew Cagney <cagney@redhat.com>
10430
10431 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10432 before probing for a new one. Detect errorenous gdbarch_init
10433 functions.
10434 * gdbarch.c: Regenerate.
10435
10436 2002-05-01 Andrew Cagney <cagney@redhat.com>
10437
10438 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10439 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10440 * config/v850/tm-v850.h: Ditto. Update copyright.
10441
10442 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10443
10444 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10445 current_gdbarch.
10446
10447 2002-04-30 Michael Snyder <msnyder@redhat.com>
10448
10449 * arm-tdep.c: Whitespace clean-ups.
10450 (arm_skip_prologue): Fix thinko; two lines
10451 should have been removed as part of 4/24 change.
10452
10453 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10454
10455 * rs6000-tdep.c: Added comment describing how fpscr register
10456 numbers were chosen.
10457
10458 2002-04-30 Michael Snyder <msnyder@redhat.com>
10459
10460 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10461
10462 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10463
10464 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10465 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10466 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10467
10468 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10469
10470 From Louis Hamilton <hamilton@redhat.com>:
10471 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10472 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10473 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10474 not bfd-private xcoff data, to determine wordsize.
10475 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10476
10477 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10478
10479 GDB 5.2 released from 5.2 branch.
10480
10481 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10482
10483 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10484 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10485 (x86_64_register_info_table): Added comments with register numbers.
10486
10487 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10488
10489 * rs6000-tdep.c (rs6000_extract_return_value,
10490 rs6000_store_return_value): Handle returning vectors.
10491 (rs6000_gdbarch_init): Use
10492 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10493 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10494 New function.
10495 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10496 vectors.
10497 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10498 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10499
10500 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10501
10502 * hpread.c (hpread_psymtab_to_symtab_1,
10503 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10504 with fprintf_unfiltered (gdb_stderr,...).
10505
10506 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10507
10508 * remote-array.c (printf_monitor, write_monitor,
10509 array_insert_breakpoint, array_remove_breakpoint ):
10510 Replace fprintf (stderr,...
10511 with fprintf_unfiltered (gdb_stderr,....
10512 * remote-es.c: Likewise.
10513 * remote-os9k.c: Likewise.
10514 * remote-st.c: Likewise.
10515
10516 2002-04-28 Andreas Schwab <schwab@suse.de>
10517
10518 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10519 linux-proc.o and gcore.o.
10520
10521 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10522
10523 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10524 code without frame pointers.
10525
10526 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10527
10528 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10529 ON_STACK is needed.
10530
10531 2002-04-26 Ben Elliston <bje@redhat.com>
10532
10533 * target.c (do_xfer_memory): Correct reference to the new option
10534 "trust-readonly-sections".
10535
10536 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10537
10538 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10539 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10540 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10541 vectors.
10542 (read_array_type): Record the fact that this array type is really a
10543 vector (i.e. are passed in by value).
10544
10545 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10546
10547 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10548 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10549 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10550 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10551 * alpha-linux-tdep.c: Include frame.h.
10552 (alpha_linux_sigcontext_addr): New function.
10553 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10554 alpha_linux_sigcontext_addr.
10555 * alpha-osf1-tdep.c: Include gdbcore.h.
10556 (alpha_osf1_sigcontext_addr): New function.
10557 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10558 alpha_osf1_sigcontext_addr.
10559 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10560 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10561
10562 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10563
10564 * stack.c (selected_frame_level):
10565 (select_frame): Do not set selected_frame_level.
10566 * frame.h (selected_frame_level): Delete declaration.
10567
10568 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10569
10570 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10571 convert_from_func_ptr-addr when AIX / PowerOpen.
10572
10573 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10574
10575 * valops.c (hand_function_call): Call
10576 generic_save_call_dummy_addr.
10577 * frame.h (generic_save_call_dummy_addr): Declare.
10578 * blockframe.c (struct dummy_frame): Add fields call_lo and
10579 call_hi.
10580 (generic_find_dummy_frame): Check for PC in range call_lo to
10581 call_hi instead of entry_point_address.
10582 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10583 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10584 (generic_save_call_dummy_addr): New function.
10585
10586 2002-04-24 David S. Miller <davem@redhat.com>
10587
10588 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10589 sparc_skip_prologue.
10590 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10591 information to find prologue when possible.
10592 (sparc_prologue_frameless_p): Call examine_prologue directly.
10593 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10594 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10595 second argument.
10596 (SKIP_PROLOGUE): Likewise.
10597
10598 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10599
10600 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10601 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10602 indicate that the condition it was testing is always true.
10603 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10604 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10605 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10606
10607 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10608
10609 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10610 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10611 tdep->jb_pc and tdep->jb_elt_size.
10612 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10613 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10614 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10615 * alpha-nat.c (get_longjmp_target): Remove.
10616 (JB_ELEMENT_SIZE): Ditto.
10617 (JB_PC): Ditto.
10618 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10619 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10620 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10621 to alpha_get_longjmp_target.
10622 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10623 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10624 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10625
10626 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10627
10628 * README: Update to GDB 5.2.
10629
10630 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10631
10632 * gdbarch.sh (LC_ALL): Set to `c'.
10633
10634 2002-04-25 Theodore A. Roth <troth@verinet.com>
10635
10636 * avr-tdep.c: Ran through gdb_indent.sh.
10637
10638 2002-04-25 Theodore A. Roth <troth@verinet.com>
10639
10640 * MAINTAINERS: Add myself as AVR maintainer.
10641 * NEWS: Note new target avr.
10642
10643 2002-04-25 Theodore A. Roth <troth@verinet.com>
10644
10645 * Makefile.in: Add support for AVR target.
10646 * configure.tgt: Add support for AVR target.
10647 * avr-tdep.c: New file
10648 * config/avr/avr.mt: New file.
10649
10650 2002-04-25 Theodore A. Roth <troth@verinet.com>
10651
10652 * MAINTAINERS: Add myself to write-after-approval.
10653
10654 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10655
10656 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10657 with fprintf_unfiltered (gdb_stderr,....
10658
10659 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10660
10661 Fix PR gdb/508.
10662 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10663
10664 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10665
10666 * p-exp.y: Also use new prev_lexptr variable
10667 to improve error reporting. Based on Michael Snyder
10668 2002-04-24 dated patch to c-exp.y.
10669
10670 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10671
10672 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10673 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10674 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10675 to 0.
10676 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10677 and struct value.
10678 (FUNCTION_START_OFFSET): Remove.
10679 (BREAKPOINT): Ditto.
10680
10681 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10682
10683 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10684 * NEWS: Ditto.
10685
10686 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10687
10688 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10689 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10690 alpha_linux_pc_in_sigtramp.
10691 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10692 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10693 alpha_osf1_pc_in_sigtramp.
10694 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10695 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10696 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10697 alphafbsd_pc_in_sigtramp.
10698 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10699 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10700 alphanbsd_pc_in_sigtramp.
10701 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10702 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10703
10704 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10705
10706 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10707
10708 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10709
10710 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10711 alphanbsd-tdep.c.
10712 (alphanbsd-nat.o): New dependency list.
10713 (alphanbsd-tdep.o): Ditto.
10714 * NEWS: Note new native NetBSD/alpha configuration.
10715 * alphanbsd-nat.c: New file.
10716 * alphanbsd-tdep.c: Ditto.
10717 * configure.host (alpha*-*-netbsd*): New host.
10718 * configure.tgt (alpha*-*-netbsd*): New target.
10719 * config/alpha/nbsd.mh: New file.
10720 * config/alpha/nbsd.mt: Ditto.
10721 * config/alpha/nm-nbsd.h: Ditto.
10722 * config/alpha/tm-nbsd.h: Ditto.
10723
10724 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10725
10726 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10727 (alpha-osf1-tdep.o): New dependency list.
10728 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10729 and skip_sigtramp_frame members.
10730 * alpha-linux-tdep.c: Include gdbcore.h.
10731 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10732 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10733 * alpha-osf1-tdep.c: New file.
10734 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10735 alpha-osf1-dep.c.
10736 (alpha_frame_past_sigtramp_frame): New function.
10737 (alpha_dynamic_sigtramp_offset): Ditto.
10738 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10739 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10740 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10741 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10742 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10743 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10744 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10745 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10746 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10747 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10748 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10749 to find_solib_trampoline_target.
10750 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10751 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10752 (SKIP_TRAMPOLINE_CODE): Remove.
10753 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10754 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10755 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10756 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10757 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10758 (PROC_SIGTRAMP_MAGIC): Ditto.
10759 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10760 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10761 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10762 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10763 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10764
10765 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10766
10767 * NEWS: Note that Alpha targets are now multi-arch.
10768
10769 2002-04-24 Michael Snyder <msnyder@redhat.com>
10770
10771 * parser-defs.h (prev_lexptr): New external variable.
10772 * parse.c (parse_exp_1): Set prev_lexptr to null before
10773 calling the language-specific parser.
10774 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10775 (yyerror): Use prev_lexptr in error reporting.
10776
10777 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10778
10779 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10780 * gregset.h: If FILL_FPXREGSET is defined, provide
10781 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10782 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10783 is defined, call fill_fpxregset.
10784
10785 2002-04-24 Roland McGrath <roland@frob.com>
10786
10787 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10788 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10789 (supply_gregset, supply_fpregset): New functions.
10790
10791 * gnu-nat.c (gnu_find_memory_regions): New function.
10792 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10793 (gnu_xfer_memory): Add a cast.
10794
10795 2002-04-24 Michael Snyder <msnyder@redhat.com>
10796
10797 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10798 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10799 of argument regs ("str r(0123), [r11, #-nn"]).
10800 (arm_skip_prologue): Better handling for frameless functions.
10801 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10802 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10803
10804 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10805
10806 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10807 NUM_PSEUDO_REGS can be used.
10808
10809 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10810
10811 * arch-utils.h: Update copyright.
10812
10813 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10814 * gdbarch.h, gdbarch.c: Re-generate.
10815
10816 * inferior.h (IN_SIGTRAMP): Delete definition.
10817 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10818 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10819
10820 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10821 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10822 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10823 (find_proc_framesize): Ditto.
10824 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10825 (alpha_init_extra_frame_info): Ditto.
10826 * infrun.c (handle_inferior_event): Ditto.
10827 (handle_inferior_event): Ditto.
10828 (check_sigtramp2): Ditto.
10829 * blockframe.c (create_new_frame): Ditto.
10830 (get_prev_frame): Ditto.
10831 * ppc-linux-tdep.c: Update comments.
10832 * i386-linux-tdep.c: Update comments.
10833 * breakpoint.c (bpstat_what): Update comment.
10834
10835 2002-04-24 David S. Miller <davem@redhat.com>
10836
10837 * i960-tdep.c (register_in_window_p): New function.
10838 (i960_find_saved_register): Use it instead of
10839 REGISTER_IN_WINDOW_P.
10840 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10841
10842 * symtab.h (find_stab_function_addr): Kill extern.
10843 * minsyms.c (find_stab_function_addr): Remove from here...
10844 * dbxread.c: ... to here, and mark it static.
10845
10846 2002-04-20 David S. Miller <davem@redhat.com>
10847
10848 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10849 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10850
10851 2002-04-21 David S. Miller <davem@redhat.com>
10852
10853 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10854 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10855 (vx_write_register): Likewise.
10856
10857 2002-04-23 J. Brobecker <brobecker@gnat.com>
10858
10859 * source.c (is_regular_file): New function.
10860 (openp): Check wether file to open is a regular file
10861 to avoid opening directories.
10862
10863 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10864
10865 * findvar.c (extract_signed_integer): Cast printf argument
10866 to suppress format warning.
10867 (extract_unsigned_integer): Likewise.
10868 * infcmd.c (registers_info): Likewise.
10869 * top.c (get_prompt_1): Likewise.
10870 * valops.c (value_assign): Likewise.
10871 * valprint.c (print_decimal): Likewise.
10872
10873 2002-04-22 H.J. Lu (hjl@gnu.org)
10874
10875 * c-exp.y (typebase): Support
10876
10877 [long|long long|short] [signed|unsigned] [int|]
10878
10879 and
10880
10881 signed [long|long long|short] int
10882
10883 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10884
10885 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10886 and vax-tdep.h.
10887 * vax-tdep.h: New file.
10888 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10889 Make several routines static.
10890 (vax_get_saved_register): New function.
10891 (vax_gdbarch_init): New function.
10892 (_initialize_vax_tdep): Register vax_gdbarch_init.
10893 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10894 Remove macros now under the control of gdbarch.
10895
10896 2002-04-22 Michael Snyder <msnyder@redhat.com>
10897
10898 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10899 Some whitespace and coding standards tweaks.
10900
10901 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10902
10903 * vax-tdep.c: Include regcache.h.
10904 (vax_call_dummy_words): New.
10905 (sizeof_vax_call_dummy_words): New.
10906 (vax_fix_call_dummy): New function.
10907 (vax_saved_pc_after_call): Ditto.
10908 * config/vax/tm-vax.h: Don't include regcache.h.
10909 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10910 (CALL_DUMMY): Remove.
10911 (CALL_DUMMY_WORDS): Define.
10912 (SIZEOF_CALL_DUMMY_WORDS): Define.
10913 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10914
10915 2002-04-18 Michael Snyder <msnyder@redhat.com>
10916
10917 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10918
10919 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10920
10921 * vax-tdep.c (vax_frame_chain): New function.
10922 (vax_push_dummy_frame): Ditto.
10923 (vax_pop_frame): Ditto.
10924 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10925 (FRAMELESS_FUNCTION_INVOCATION): Use
10926 generic_frameless_function_invocation_not.
10927 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10928 (POP_FRAME): Use vax_pop_frame.
10929
10930 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10931
10932 * vax-tdep.c (vax_store_struct_return): New function.
10933 (vax_extract_return_value): Ditto.
10934 (vax_store_return_value): Ditto.
10935 (vax_extract_struct_value_address): Ditto.
10936 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10937 vax_store_struct_return.
10938 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10939 (STORE_RETURN_VALUE): Use vax_store_return_value.
10940 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10941
10942 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10943
10944 * vax-tdep.c (vax_frame_saved_pc): New function.
10945 (vax_frame_args_address_correct): Ditto.
10946 (vax_frame_args_address): Ditto.
10947 (vax_frame_locals_address): Ditto.
10948 (vax_frame_num_args): Move code to be in proximity to
10949 other frame-related functions.
10950 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10951 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10952 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10953 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10954 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10955
10956 2002-04-22 H.J. Lu (hjl@gnu.org)
10957
10958 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10959 includedir.
10960
10961 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10962
10963 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10964 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10965 (FRAME_INIT_SAVED_REGS): New macro.
10966
10967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10968
10969 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10970
10971 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10972
10973 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10974 where needed.
10975 (fetch_osf_core_registers): Likewise.
10976 (supply_gregset): Likewise.
10977
10978 2002-04-22 J. Brobecker <brobecker@gnat.com>
10979
10980 * symfile.h (get_section_index): Define.
10981 * symfile.c (get_section_index): New function.
10982 * mdebugread.c (SC_IS_SBSS): New macro.
10983 (SC_IS_BSS): Return true for the scBss storage class only, as
10984 the scSBss storage class refers to the .sbss section.
10985 (parse_partial_symbols): Discard the symbols which associated
10986 section does not exist.
10987 Make sure to use the .sbss section index for symbols which
10988 storage class is scBss, rather than using the .bss section index.
10989
10990 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10991
10992 * vax-tdep.c: Update copyright years.
10993 (vax_register_name): New function.
10994 (vax_register_byte): Ditto.
10995 (vax_register_raw_size): Ditto.
10996 (vax_register_virtual_size): Ditto.
10997 (vax_register_virtual_type): Ditto.
10998 * config/vax/tm-vax.h: Update copyright years.
10999 (REGISTER_NAMES): Remove.
11000 (REGISTER_NAME): Define.
11001 (REGISTER_BYTE): Use vax_register_byte.
11002 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11003 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11004 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11005
11006 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11007
11008 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11009 declaration
11010 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11011
11012 2002-04-21 David S. Miller <davem@redhat.com>
11013
11014 * arch-utils.c (generic_prologue_frameless_p): Kill
11015 SKIP_PROLOGUE_FRAMELESS_P code.
11016 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11017 references.
11018 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11019 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11020 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11021 references.
11022 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11023 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11024 (sparc_gdbarch_init): Pass it to
11025 set_gdbarch_prologue_frameless_p.
11026
11027 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11028
11029 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11030 (alphabsd-nat.o): New dependency list.
11031
11032 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11033
11034 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11035 alphafbsd-tdep.c.
11036 (alpha-linux-tdep.o): New dependency list.
11037 (alphafbsd-tdep.o): Likewise.
11038
11039 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11040
11041 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11042 to here...
11043 * alpha-tdep.c: ...from here.
11044 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11045
11046 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11047
11048 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11049 prototype from here...
11050 * alpha-tdep.h: ...to here.
11051
11052 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11053
11054 * frame.h (selected_frame_level): Document as deprecated.
11055 (frame_relative_level): Declare.
11056 * stack.c (frame_relative_level): New function.
11057 (selected_frame_level): Document as deprecated.
11058 (select_frame): Do not set the selected_frame_level.
11059
11060 * stack.c (frame_info, record_selected_frame): Update.
11061 (frame_command, current_frame_command): Update.
11062 (up_silently_base, up_command, down_silently_base): Update.
11063 (down_command): Update.
11064 * inflow.c (kill_command): Update.
11065 * tracepoint.c (finish_tfind_command): Update.
11066 * corelow.c (core_open): Update.
11067 * thread.c (info_threads_command): Update.
11068 (do_captured_thread_select): Update.
11069 * infcmd.c (finish_command): Update.
11070 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11071
11072 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11073
11074 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11075
11076 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11077
11078 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11079 type const.
11080
11081 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11082
11083 * alphafbsd-tdep.c: Update copyright years. Include
11084 alpha-tdep.h.
11085 (alphafbsd_use_struct_convention): Make static.
11086 (alphafbsd_init_abi): New function.
11087 (_initialize_alphafbsd_tdep): New function.
11088 * config/alpha/tm-fbsd.h: Update copyright years.
11089 (USE_STRUCT_CONVENTION): Remove.
11090
11091 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11092
11093 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11094 an Alpha ABI variant.
11095 (alpha_abi_handler_list): Declare.
11096 (alpha_gdbarch_register_os_abi): New function.
11097 (alpha_gdbarch_init): Give registered ABI variant handlers a
11098 chance to tweak the gdbarch once we have set up defaults.
11099 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11100
11101 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11102
11103 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11104 to standard_coerce_float_to_double.
11105 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11106
11107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11108
11109 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11110 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11111 from gdbarch_tdep rather than a constant.
11112 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11113 the default text address for all Alpha Unix ABIs.
11114 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11115 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11116
11117 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11118
11119 * alpha-tdep.h: New file. Includes several Alpha target constants
11120 taken from...
11121 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11122 let gdbarch deal with.
11123 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11124 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11125 to dependency list.
11126 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11127 Alpha target register names.
11128 * alphabsd-nat.c: Likewise.
11129 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11130 Alpha target register names. Make serveral routines static.
11131 (alpha_get_saved_register): New function.
11132 (alpha_abi_names): New.
11133 (process_note_abi_tag_sections): New function.
11134 (get_elfosabi): New function.
11135 (alpha_gdbarch_init): New function.
11136 (alpha_dump_tdep): New function.
11137 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11138
11139 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11140
11141 * frame.c (find_saved_register): Delete #ifdef
11142 HAVE_REGISTER_WINDOWS code.
11143 * config/sparc/tm-sparc.h: Update comments.
11144 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11145
11146 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11147
11148 * i960-tdep.c (i960_find_saved_register): New function.
11149 (i960_get_saved_register): New function.
11150 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11151 (i960_get_saved_register): Declare.
11152 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11153
11154 2002-04-20 David S. Miller <davem@redhat.com>
11155
11156 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11157
11158 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11159
11160 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11161 instead of NUM_PSEUDO_REGS.
11162
11163 2002-04-20 David S. Miller <davem@redhat.com>
11164
11165 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11166 GDB_MULTI_ARCH_PARTIAL
11167 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11168 define, let tm-sp64.h do it.
11169
11170 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * frame.c (find_saved_register): Avoid a NULL pointer
11173 dereference and actually walk the frame list.
11174
11175 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11176
11177 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11178 sorted in most most-recent-used order. Document.
11179 * gdbarch.h, gdbarch.c: Regenerate.
11180
11181 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11182
11183 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11184 instead of ->prev.
11185 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11186 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11187 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11188 instead of ->prev.
11189
11190 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11191
11192 Fix PR gdb/471.
11193 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11194 (build_builtin_type_vec128): Ditto.
11195 (append_composite_type_field): Fix calculation of type length in
11196 union case.
11197
11198 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11199
11200 * config/djgpp/README: Update.
11201
11202 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11203 compiler warnings.
11204
11205 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11206
11207 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11208 (alpha_setup_arbitrary_frame): ...to this.
11209 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11210 for alpha_setup_arbitrary_frame.
11211
11212 2002-04-18 Andrew Cagney <cagney@redhat.com>
11213
11214 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11215 * gdbarch.h, gdbarch.c: Regenerate.
11216
11217 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11218 * target.h (memory_breakpoint_from_pc): Update declaration.
11219 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11220
11221 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11222 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11223 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11224 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11225 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11226 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11227 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11228 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11229 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11230 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11231 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11232 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11233
11234 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11235 const pointer.
11236 * monitor.c (monitor_insert_breakpoint): Ditto.
11237 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11238
11239 * config/mcore/tm-mcore.h: Update copyright.
11240 * mem-break.c: Ditto.
11241 * xstormy16-tdep.c: Ditto.
11242
11243 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11244
11245 * p-exp.y: Add precedence rule for '^' token.
11246 This removes the shift/reduce conflicts.
11247 Remove the comment concerning these shift/reduce conflicts.
11248
11249 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11250
11251 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11252 (registers_powerpc_nofp): New register set for processors
11253 without floating point unit.
11254
11255 2002-04-18 David S. Miller <davem@redhat.com>
11256
11257 * MAINTAINERS: Add myself to write-after-approval.
11258
11259 2002-04-17 Michael Snyder <msnyder@redhat.com>
11260
11261 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11262
11263 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11264
11265 * rs6000-tdep.c (frame_initial_stack_address): Use
11266 frame_register_read to read the alloca_reg.
11267
11268 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11269
11270 * frame.c (find_saved_register): Find saved registers in the next
11271 not prev frame.
11272 Fix PR gdb/365.
11273
11274 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11275
11276 * gdbarch.sh (LANG): Set to ``c''.
11277
11278 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11279
11280 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11281
11282 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11283
11284 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11285 Update copyright.
11286
11287 * hpread.c (hpread_get_lntt): Add declaration.
11288 Also fix PR gdb/391.
11289
11290 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11291
11292 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11293 * aclocal.m4, configure: Re-generate.
11294 Fix PR gdb/391.
11295
11296 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11297
11298 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11299 instead of tm_print_insn.
11300
11301 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11302
11303 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11304
11305 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11306
11307 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11308 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11309 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11310
11311 2002-04-12 Don Howard <dhoward@redhat.com>
11312
11313 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11314 max_user_call_depth.
11315 (init_cmd_lists): Initialize the new value;
11316 * cli/cli-script.c (execute_user_command): Limit the call depth of
11317 user defined commands. This avoids a core-dump when user commands
11318 are infinitly recursive.
11319
11320 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11321
11322 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11323 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11324 from tdep struct instead of DEFAULT_LR_SAVE.
11325 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11326 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11327 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11328
11329 2002-04-12 Michael Snyder <msnyder@redhat.com>
11330
11331 * Remote.c: Spelling fix.
11332 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11333 If no symbol found for "sbrk", try "_sbrk".
11334 (make_output_phdrs): Use bfd_section_name.
11335 (gcore_copy_callback): Use bfd_section_name.
11336 * eval.c: Indentation fix-ups.
11337 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11338 in case it gets applied to an address that is already
11339 in the instruction space.
11340 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11341 * symfile.c: Fix indentation, long lines.
11342 * source.c: White space fix-up.
11343
11344 2002-04-12 Andrew Cagney <cagney@redhat.com>
11345
11346 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11347 * frame.c (frame_register_read): New function. Return non-zero on
11348 success.
11349 (read_relative_register_raw_bytes_for_frame): Delete.
11350 (read_relative_register_raw_bytes): Delete.
11351 * frame.h (frame_register_read): Declare.
11352 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11353 * sh-tdep.c: Ditto.
11354 * infcmd.c (do_registers_info): Ditto.
11355 * hppa-tdep.c: Ditto.
11356 * rs6000-tdep.c: Ditto.
11357 * h8500-tdep.c: Ditto.
11358 * mips-tdep.c: Ditto.
11359 * h8300-tdep.c: Ditto.
11360 * z8k-tdep.c: Ditto.
11361
11362 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11363
11364 From Jimi X <jimix@watson.ibm.com>:
11365 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11366 64-bit SysV ABI.
11367
11368 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11369
11370 From Jimi X <jimix@watson.ibm.com>:
11371 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11372 bfd info.
11373
11374 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11375
11376 From Jimi X <jimix@watson.ibm.com>:
11377 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11378 register sets for these processor variants.
11379
11380 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11381
11382 * regformats/reg-ppc.dat: Support FPSCR.
11383
11384 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11385
11386 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11387 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11388 Add fpscr as an invalid/unfetchable register.
11389 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11390 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11391 (fill_fpregset): Add support for register fpscr.
11392 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11393 (fill_gregset): Account for the fact that register ``mq'' might
11394 not exist.
11395 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11396 (registers_power): Add fpscr to register set at slot 71.
11397 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11398 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11399
11400 2002-04-11 Michael Snyder <msnyder@redhat.com>
11401
11402 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11403 * configure: Regenerate.
11404 * config.in: Regenerate.
11405 * acconfig.h: Add define for _SYSCALL32.
11406 * core-sol2.c: Remove #define _SYSCALL32.
11407 * solib-legacy.c: Remove #define _SYSCALL32.
11408
11409 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11410
11411 * stack.c (select_frame): Cleanup internal error message, do not
11412 use %p.
11413
11414 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11415
11416 * stack.c (select_frame): Check that selected_frame and the
11417 specified level are as expected.
11418 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11419 Update copyright.
11420 * frame.h (struct frame_info): Add field `level'. Update
11421 copyright.
11422 Work-in-progress PR gdb/464.
11423
11424 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11425
11426 * maint.c (maint_print_section_info): Rename print_section_info.
11427 (print_bfd_section_info, print_objfile_section_info): Update.
11428 * inferior.h (struct gdbarch): Add opaque declaration.
11429 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11430 * gdbarch.h: Regenerate.
11431
11432 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11433
11434 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11435 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11436 (kernel_u_size): Added.
11437 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11438 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11439
11440 2002-04-04 Jim Ingham <jingham@apple.com>
11441
11442 * valarith.c (find_size_for_pointer_math): New function, either returns
11443 the size for a pointer's target, returns 1 for void *, or errors for
11444 incomplete types.
11445 (value_add, value_sub): use find_size_for_pointer_math.
11446
11447 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11448
11449 * linux-low.c (linux_look_up_symbols): New hook.
11450 (linux_target_ops): Add linux_look_up_symbols.
11451 * remote-utils.c (decode_address): New function.
11452 (look_up_one_symbol): New function.
11453 * server.c (handle_query): Call target look_up_symbols hook.
11454 * server.h (look_up_one_symbol): Add prototype.
11455 * target.h (struct target_ops): Add look_up_symbols hook.
11456
11457 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11458
11459 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11460 override FP_REGNUM with frame->fp. Update copyright.
11461 * parse.c (num_std_regs, std_regs): Delete.
11462 (target_map_name_to_register): Do not search std_regs. Update
11463 function description.
11464 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11465 declarations. Update copyright.
11466 Fix PR gdb/251.
11467
11468 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11469
11470 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11471 after the last symbol in a block.
11472
11473 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11474
11475 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11476 is non zero as a found symbol.
11477
11478 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11479
11480 * findvar.c: Include "builtin-regs.h".
11481 (value_of_register): Call value_of_builtin_reg when applicable.
11482 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11483 (target_map_name_to_register): Call
11484 builtin_reg_map_name_to_regnum.
11485 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11486 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11487 (builtin_regs_h): Define.
11488 (builtin-regs.o): New target.
11489 (findvar.o): Add $(builtin_regs_h).
11490 * builtin-regs.c, builtin-regs.h: New files.
11491 * std-regs.c: New file.
11492 Partial fix for PR gdb/251.
11493
11494 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11495
11496 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11497 it's no longer required.
11498
11499 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11500
11501 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11502
11503 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11504
11505 From Jimi X <jimix@watson.ibm.com>:
11506 * rs6000-tdep.c (rs6000_software_single_step): Use
11507 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11508 and size. Use target_insert_breakpoint() and
11509 target_remove_breakpoint() to insert and remove breakpoints
11510 instead of explicit memory reads and writes.
11511
11512 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11513
11514 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11515 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11516 ELF_OBJECT_FORMAT ifdef.
11517
11518 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11519
11520 From Jimi X <jimix@watson.ibm.com>:
11521 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11522
11523 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11524
11525 From Jimi X <jimix@watson.ibm.com>:
11526 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11527 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11528
11529 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11530
11531 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11532 s/asprintf/xasprintf/.
11533 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11534
11535 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11536
11537 I believe Jeff Law denies responsability for this one:
11538 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11539 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11540 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11541 Work-around for PR gdb/366.
11542
11543 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11544
11545 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11546 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11547 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11548
11549 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11550
11551 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11552 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11553 information.
11554
11555 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11556
11557 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11558 maintainer.
11559
11560 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11561
11562 * README (Reporting Bugs in GDB): Document the bug web page as the
11563 prefered way of submitting bugs.
11564 Fix PR gdb/402.
11565
11566 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11567
11568 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11569 -1. Update comment.
11570 * gdbarch.h, gdbarch.c: Re-generate.
11571
11572 2002-04-07 Andreas Schwab <schwab@suse.de>
11573
11574 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11575 buffer to regcache_collect.
11576
11577 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11578
11579 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11580 * gdbarch.c, gdbarch.h: Re-generate.
11581
11582 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11583
11584 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11585 declaration. Fix -Werror.
11586
11587 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11590 * gdbarch.c: Regenerate.
11591
11592 2002-04-05 Michael Snyder <msnyder@redhat.com>
11593
11594 * breakpoint.c (clear_command): Rewrite middle section to
11595 combine two loops with identical control conditions.
11596 Add a cleanup to eliminate a memory leak.
11597 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11598
11599 2002-04-05 H.J. Lu (hjl@gnu.org)
11600
11601 * solib-svr4.c (bkpt_names): Add "__start".
11602
11603 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11604
11605 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11606 as test for 64 bit target.
11607
11608 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11609
11610 * h8500-tdep.c (h8500_write_fp): Delete function.
11611 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11612 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11613 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11615 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11616 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11617 (s390_write_fp):
11618 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11619 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11620 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11621 (d10v_write_fp): Delete function.
11622 * inferior.h (write_fp, generic_target_write_fp): Delete
11623 declarations.
11624 * regcache.c (generic_target_write_fp): Delete function.
11625 (write_fp): Delete function.
11626 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11627 * gdbarch.h, gdbarch.c: Regenerate.
11628 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11629 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11630 (sparc64_write_fp): Delete declaration.
11631 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11632 (h8500_write_fp): Delete declaration.
11633
11634 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11635
11636 * sparc-tdep.c (sparc64_write_fp): Delete.
11637 (sparc_push_dummy_frame): Replace write_fp call with code to store
11638 the FP directly.
11639 (sparc_gdbarch_init): Do not initialize write_fp.
11640
11641 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11642
11643 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11644 clause.
11645
11646 2002-03-29 Jim Blandy <jimb@redhat.com>
11647
11648 * stack.c (get_selected_block): Add new argument `addr_in_block',
11649 used to return the exact code address we used to select the block,
11650 not just the block.
11651 * blockframe.c (get_frame_block, get_current_block): Same.
11652 * frame.h (get_frame_block, get_current_block,
11653 get_selected_block): Update declarations.
11654 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11655 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11656
11657 2002-04-05 Michael Snyder <msnyder@redhat.com>
11658
11659 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11660 warning message.
11661
11662 2002-04-05 J. Brobecker <brobecker@gnat.com>
11663
11664 * utils.c (xfullpath): New function.
11665 * defs.h (xfullpath): Add declaration.
11666 * source.c (openp): Use xfullpath in place of gdb_realpath to
11667 avoid resolving the basename part of filenames when the
11668 associated file is a symbolic link. This fixes a potential
11669 inconsistency between the filenames known to GDB and the
11670 filenames it prints in the annotations.
11671 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11672 to be able to match a filename with either the real filename, or
11673 the name of any symbolic link to this file.
11674 (lookup_partial_symtab): Ditto.
11675
11676 2002-04-04 Michael Snyder <msnyder@redhat.com>
11677
11678 * breakpoint.c: Add support for hardware breakpoints in overlays.
11679 (overlay_events_enabled): New state variable.
11680 (insert_breakpoints): Use overlay_events_enabled to decide
11681 whether to attempt to set a breakpoint at the overlay load addr.
11682 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11683 (remove_breakpoint): Use overlay_events_enabled to decide
11684 whether breakpoints need to be removed from overlay load addr.
11685 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11686 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11687 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11688 disable_overlay_breakpoints): Update overlay_events_enabled.
11689
11690 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11691
11692 * dwarf2read.c (struct function_range): New.
11693 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11694 (check_cu_functions): New.
11695 (read_file_scope): Initialize global function lists.
11696 Call dwarf_decode_line after processing children.
11697 (read_func_scope): Add to global function list.
11698 (dwarf_decode_lines): Call check_cu_functions everywhere
11699 record_line is called. Call record_line with a linenumber
11700 of 0 to mark sequence ends.
11701
11702 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11703
11704 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11705 change sync with glibc.
11706
11707 2002-04-03 Jim Blandy <jimb@redhat.com>
11708
11709 * configure.in: Call AC_C_INLINE.
11710 * configure: Regenerated.
11711
11712 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11713
11714 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11715 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11716
11717 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11718
11719 * NEWS: Mention gcore support on FreeBSD/i386.
11720
11721 * fbsd-proc.c: New file.
11722 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11723 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11724
11725 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11726 while statement.
11727
11728 2002-03-29 Jim Blandy <jimb@redhat.com>
11729
11730 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11731 unescaped newlines in string literals, but newer ones don't. So
11732 escape them.
11733
11734 2002-03-26 Michael Snyder <msnyder@redhat.com>
11735 Andrew Cagney <cagney@redhat.com>
11736
11737 * cli/cli-dump.c: New file. Dump memory to file,
11738 restore file to memory.
11739 * cli/cli-dump.h: New file.
11740 * Makefile.in: Add rules, dependencies for cli-dump.o.
11741 * NEWS: Mention new commands.
11742
11743 2002-03-28 Michael Snyder <msnyder@redhat.com>
11744
11745 * symfile.c (symbol_file_add): Move test for null symbols to later.
11746
11747 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11748
11749 From veksler at il.ibm.com:
11750 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11751 the xstrduped original path.
11752 Fix PR gdb/417.
11753
11754 2002-03-27 Michael Snyder <msnyder@redhat.com>
11755
11756 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11757 * infcmd.c (_initialize_infcmd): Ditto.
11758 * language.c (_initialize_language): Ditto.
11759 * symfile.c (_initialize_symfile): Ditto.
11760 * top.c (_init_main): Ditto.
11761 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11762
11763 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11764
11765 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11766 vector registers handling.
11767 (skip_prologue): Handle new AltiVec instructions. Fill in new
11768 fields of frame data.
11769 (frame_get_saved_regs): Fill in information for AltiVec registers.
11770
11771 2002-03-27 Jim Blandy <jimb@redhat.com>
11772
11773 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11774 a function; leave this macro here to invoke that function.
11775 (symbol_init_mangled_name): Declaration for that function.
11776 * symtab.c (symbol_init_mangled_name): New function.
11777
11778 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11779
11780 * valarith.c: Replace strerror with safe_strerror.
11781 * tracepoint.c: Ditto.
11782 * lin-lwp.c: Ditto.
11783 * go32-nat.c: Ditto.
11784 * inflow.c: Ditto.
11785 * gnu-nat.c: Ditto.
11786
11787 2002-03-27 Andreas Schwab <schwab@suse.de>
11788
11789 * event-top.c (command_line_handler): Remove useless if.
11790
11791 2002-03-27 Andreas Jaeger <aj@suse.de>
11792
11793 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11794 comment.
11795
11796 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11797
11798 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11799 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11800 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11801 (x86_64_linux_dr_get_status, supply_gregset),
11802 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11803 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11804 (x86_64_register_info_table): Add.
11805 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11806 (x86_64_register_raw_size, x86_64_register_virtual_type),
11807 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11808 general x86_64_register_info_table.
11809 (i386_gdbarch_init): gdbarch_register_bytes is now set
11810 dynamicaly during initialization.
11811 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11812 * gdbserver/linux-x86-64-low.c: Ditto.
11813
11814 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11815
11816 * gdbserver/server.c (main): Call target_signal_to_host_p
11817 and target_signal_to_host on signals received from the remote.
11818 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11819 target_signal_from_host on signals sent to the remote.
11820 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11821 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11822
11823 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11824
11825 * signals/signals.c: Include "server.h" in gdbserver build.
11826 (target_signal_from_name): Don't use STREQ.
11827 (_initialize_signals): Likewise. Don't include function in
11828 gdbserver build.
11829
11830 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11831
11832 * signals.c: Moved to...
11833 * signals/signals.c: Here.
11834 * Makefile (signals.o): Update.
11835
11836 2002-03-26 Jeff Law (law@redhat.com)
11837
11838 * somread.c (som_symtab_read): Remove some commented out code and
11839 updated related comments. Do not set the minimal symbol table to
11840 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11841 in a dynamic executable.
11842 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11843 where we are unable to find the minimal symbol for the given
11844 PC value.
11845
11846 2002-03-25 Jeff Law (law@redhat.com)
11847
11848 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11849
11850 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11851
11852 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11853
11854 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11855
11856 * command.h: Update copyright.
11857 (struct cmd_list_element): Replace definition with opaque
11858 declaration.
11859 (enum cmd_types): Document that it will eventually be moved to
11860 cli/cli-decode.h
11861 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11862 (MALLOCED_REPLACEMENT): Delete macro.
11863 * Makefile.in (cli_decode_h): Add $(command_h).
11864 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11865 * top.c: Include "cli/cli-decode.h".
11866 * completer.c: Include "cli/cli-decode.h".
11867 * maint.c: Include "cli/cli-decode.h".
11868 * cli/cli-decode.h: Include "command.h".
11869 (enum command_class): Delete.
11870 (enum cmd_types): Comment out.
11871 (enum cmd_auto_boolean): Delete.
11872 (enum var_types): Delete.
11873
11874 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11875
11876 * cli/cli-decode.c: Include "gdb_assert.h".
11877 (add_set_or_show_cmd): New static function.
11878 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11879 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11880 all fields, such as func, from the set command.
11881
11882 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11883
11884 * MAINTAINERS (sh-elf): Change warning flag to -w.
11885
11886 2002-03-23 Andrew Cagney <cagney@redhat.com>
11887
11888 * defs.h (error): Add printf format attribute.
11889 * thread-db.c (thread_from_lwp): Fix error format string.
11890 * stack.c (parse_frame_specification): Ditto.
11891 * cli/cli-decode.c (undef_cmd_error): Ditto.
11892 * scm-lang.c (scm_lookup_name): Ditto.
11893 * tracepoint.c (trace_error): Ditto.
11894 * remote-utils.c (usage): Ditto.
11895 * remote.c (compare_sections_command): Ditto.
11896 Fix PR gdb/328.
11897
11898 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11899
11900 * gdbtypes.c (append_composite_type_field): New function.
11901 (init_composite_type): New function.
11902 * gdbtypes.h (append_composite_type_field): Declare.
11903 (init_composite_type): Ditto.
11904
11905 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11906
11907 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11908 function.
11909 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11910 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11911 structure returning convention for SYSV ABI case, but not
11912 for GNU/Linux, FreeBSD, or NetBSD.
11913
11914 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11915
11916 * symtab.h (lookup_block_symbol): Add mangled_name argument
11917 to prototype.
11918
11919 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11920 with new mangled_name argument.
11921 * linespec.c (decode_line_1): Likewise.
11922 * valops (value_of_this): Likewise.
11923 * symtab.c (lookup_transparent_type): Likewise.
11924 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11925 (lookup_symbol): If we are given a mangled name, pass it down
11926 to lookup_symbol_aux.
11927 (lookup_block_symbol): If we are given a mangled name to check
11928 against, only return symbols which match it.
11929
11930 2002-03-22 Christopher Faylor <cgf@redhat.com>
11931
11932 * win32-nat.c (child_create_inferior): Check for proper shell to use
11933 here, in case the user changes it on the fly.
11934 (_initialize_inftarg): Remove shell path considerations.
11935
11936 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11937
11938 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11939 for gdbarch_max_register_raw_size and max_register_virtual_size.
11940 Adjust copyright year.
11941
11942 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11943
11944 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11945 in a function to cover the entire beginning of the function
11946 as well if it does not already.
11947
11948 2002-03-21 Tom Rix <trix@redhat.com>
11949
11950 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11951 (rs6000_ptrace64): Renamed from ptrace64.
11952
11953 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11954
11955 * gdbserver/remote-utils.c (remote_open): Don't call
11956 getprotobyname, we're all using TCP here so just use
11957 IPPROTO_TCP.
11958 * gdbserver/gdbreplay.c (remote_open): Ditto.
11959
11960 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11961
11962 * regcache.c (_initialize_regcache): No need to call
11963 build_regcache() at this time; it gets called whenever
11964 the gdbarch changes.
11965
11966 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11967
11968 * sparc-nat.c: Include sys/param.h where possible.
11969
11970 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11971
11972 Fix PR gdb/422.
11973 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11974 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11975 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11976 complex types.
11977 * stabsread.c (rs6000_builtin_type): Likewise.
11978 (read_sun_floating_type): Likewise.
11979
11980 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11981
11982 * stabsread.c (read_member_functions): Remove skip code for duplicate
11983 constructor/destructor methods. Use standard parsing for these
11984 methods and just do not chain them to the list of methods after
11985 parsing.
11986
11987 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11988
11989 * coffread.c: Remove redundant static declarations. Replace
11990 occurrences of `PTR' with `void *'.
11991 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11992 * top.h (quit_cover): Likewise.
11993 * defs.h (catch_errors): Likewise.
11994
11995 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11996
11997 * defs.h (XMALLOC): Define.
11998 * gdb-events.sh (XMALLOC): Delete macro.
11999 * gdb-events.c, gdb-events.h: Regenerate.
12000 * gdbarch.sh (XMALLOC): Delete macro.
12001 * gdbarch.c: Regenerate.
12002 * serial.c (XMALLOC): Delete macro.
12003 * ui-file.c (XMALLOC): Ditto.
12004 * ser-unix.h (XMALLOC): Ditto.
12005 * sh-tdep.c (XMALLOC): Ditto.
12006 * ui-out.c (XMALLOC): Ditto.
12007 * utils.c (XMALLOC): Ditto.
12008 * i386-tdep.c (XMALLOC): Ditto.
12009 * gdb-events.c (XMALLOC): Ditto.
12010 * d10v-tdep.c (XMALLOC): Ditto.
12011 * cli-out.c (XMALLOC): Ditto.
12012
12013 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12014 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12015 * ui-file.c, ui-out.c: Ditto.
12016
12017 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12018
12019 * command.h (struct cmd_list_element): Add field context.
12020 (set_cmd_context, get_cmd_context): Declare.
12021 * cli/cli-decode.h: Ditto.
12022 * cli/cli-decode.c (get_cmd_context): New function.
12023 (set_cmd_context): New function.
12024 (add_cmd): Initialize context.
12025 Part of fixing PR gdb/145 and PR gdb/146.
12026
12027 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12028
12029 * cli/cli-decode.c (cmd_type): New function.
12030 * command.h (cmd_type): Declare.
12031 * infrun.c (set_schedlock_func): Call function cmd_type.
12032 * kod.c (kod_set_os): Call cmd_type.
12033 * cris-tdep.c (cris_version_update): Use function cmd_type.
12034 (cris_mode_update, cris_abi_update): Ditto.
12035
12036 * command.h: (execute_cmd_post_hook): Declare.
12037 (execute_cmd_pre_hook): Declare.
12038 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12039 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12040 functions. Execute pre/post hook while ensuring that afterwords
12041 hook_in is cleared.
12042 * top.c (execute_command): Use execute_cmd_post_hook, and
12043 execute_cmd_pre_hook to execute pre/post commands.
12044 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12045 hook_stop_stub.
12046 (hook_stop_stub): Call execute_cmd_pre_hook.
12047
12048 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12049
12050 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12051 set'' and this leads to a core dump. Move xstrdup of
12052 operating_system to after check that it is not NULL.
12053
12054 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12055
12056 * kod.c (kod_set_os): Remove unnecessary check that
12057 ``command->type'' is set_cmd.
12058
12059 * valprint.c (set_input_radix): Use input_radix.
12060 (set_output_radix): Use output_radix.
12061 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12062 isn't reverted.
12063
12064 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12065
12066 * value.h (struct value): Delete field ``substring_addr''. Change
12067 aligner fields to force_doublest_align, force_longest_align,
12068 force_core_addr_align and force_pointer_aligh.
12069
12070 * value.h (struct value): Fix typo in above change.
12071
12072 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12073
12074 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12075 to fix internal_error from ``maintenance print architecture''.
12076
12077 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12078
12079 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12080 for gcc versions after gcc-2.8.1.
12081
12082 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12083
12084 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12085 for method resolution. Restore adjustment of ``this'' pointer after
12086 calling value_struct_elt, which was accidentally removed during the
12087 HP merge.
12088
12089 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12090
12091 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12092 value_of_register.
12093 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12094 get_saved_register.
12095 * value.h (value_of_register): Update.
12096
12097 2002-03-14 Richard Henderson <rth@redhat.com>
12098
12099 * configure.in: Detect declaration for canonicalize_file_name.
12100 * utils.c (canonicalize_file_name): Declare, if needed.
12101 (gdb_realpath): Prefer realpath if available and usable.
12102 * config.in, configure: Rebuild.
12103
12104 2002-03-14 Richard Henderson <rth@redhat.com>
12105
12106 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12107 a constant array bound.
12108
12109 * MAINTAINERS: Add myself to write-after-approval.
12110
12111 2002-03-14 Michael Snyder <msnyder@redhat.com>
12112
12113 * symfile.c (syms_from_objfile): Return immediately if no syms.
12114 (symbol_file_add): Return immediately if no syms.
12115 (find_sym_fns): Return immediately if no syms.
12116
12117 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12118
12119 * gdbserver/remote-util.c (remote_open): Print remote-side's
12120 IP address when remote debugging over the network.
12121
12122 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12123
12124 * config/sparc/fbsd.mh: Fix copyright.
12125 * config/sparc/fbsd.mt: Likewise.
12126
12127 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12128
12129 * MAINTAINERS: Fix typo in name of gdb warnings option.
12130 (x86-64): Fix formating so that this can be parsed by awk.
12131
12132 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12133
12134 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12135 * defs.h: Include "gdb/signals.h".
12136 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12137
12138 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12139
12140 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12141 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12142 from x86-64-tdep.h
12143
12144 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12145 Don Howard <dhoward@redhat.com>
12146
12147 * mips-tdep.c (ST0_FR): Define.
12148 (mips2_fp_compat): New function, temporarily disabled.
12149 (mips_read_fp_register_single): New function.
12150 (mips_read_fp_register_double): New function.
12151 (mips_print_register): Use them.
12152 (do_fp_register_row): Likewise.
12153
12154 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12155
12156 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12157 approval''.
12158
12159 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12160
12161 * stabsread.c (read_member_functions): Fix is_stub test for
12162 static member functions, improve comment.
12163
12164 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12165
12166 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12167 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12168 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12169 commands that set boolean values.
12170 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12171 (arm_rdi_resume): Always initialize PC.
12172 (arm_rdi_open): Don't use rslt as a boolean.
12173 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12174 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12175 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12176 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12177
12178 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12179
12180 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12181 * configure: Rebuilt.
12182
12183 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12184
12185 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12186 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12187
12188 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12189
12190 * cli/cli-decode.c (set_cmd_completer): New function.
12191 * command.h (set_cmd_completer): Declare.
12192 * cli/cli-decode.h (set_cmd_completer): Ditto.
12193
12194 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12195 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12196 * win32-nat.c (_initialize_inftarg): Ditto.
12197 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12198 * proc-api.c (_initialize_proc_api): Ditto.
12199 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12200 * source.c (_initialize_source): Ditto.
12201 * exec.c (_initialize_exec): Ditto.
12202 * solib.c (_initialize_solib): Ditto.
12203 * top.c (init_main): Ditto.
12204 * tracepoint.c (_initialize_tracepoint): Ditto.
12205 * symfile.c (_initialize_symfile): Ditto.
12206 * printcmd.c (_initialize_printcmd): Ditto.
12207 * infcmd.c (_initialize_infcmd): Ditto.
12208 * corefile.c (_initialize_core): Ditto.
12209
12210 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12211
12212 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12213
12214 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12215
12216 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12217
12218 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12219
12220 * NEWS: Update headings, 5.2 has branched.
12221
12222 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12225 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12226 (register_addr, REGISTER_RAW_SIZE): Likewise.
12227 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12228 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12229
12230 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12231
12232 * MAINTAINERS (x86-64): Add myself.
12233 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12234 changed value_ptr -> struct value *
12235
12236 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12237
12238 * configure.host (sparc64-*-freebsd): Add.
12239 * configure.tgt: Likewise.
12240 * config/sparc/fbsd.mh: New file.
12241 * config/sparc/fbsd.mt: Likewise.
12242 * config/sparc/nm-fbsd.h: Likewise.
12243 * config/sparc/tm-fbsd.h: Likewise.
12244
12245 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12246
12247 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12248 regformats/reg-s390x.dat.
12249
12250 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12251
12252 * utils.c: Add FIXME explaining true/false problem.
12253
12254 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12255
12256 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12257
12258 2002-02-28 Michael Chastain <mec@shout.net>
12259
12260 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12261
12262 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12263
12264 * gdbserver/linux-s390-low.c: New file.
12265 * regformats/reg-s390.dat: New file.
12266 * regformats/reg-s390x.dat: New file.
12267 * gdbserver/configure.srv: Add S/390.
12268 * gdbserver/Makefile.in: Add S/390.
12269 * configure.tgt: Enable gdbserver for S/390.
12270
12271 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12272
12273 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12274 first line of the doc string for "info dos", except at the end of
12275 the sentence, since the short help stops at the first period.
12276
12277 2002-02-28 Jason Merrill <jason@redhat.com>
12278
12279 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12280
12281 2002-02-27 Fred Fish <fnf@redhat.com>
12282
12283 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12284 comment (dumy -> dummy).
12285
12286 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12287
12288 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12289
12290 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12291
12292 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12293
12294 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12295
12296 * gdbserver/acconfig.h: New file.
12297 * gdbserver/i387-fp.c: New file.
12298 * gdbserver/i387-fp.h: New file.
12299 * gdbserver/linux-x86-64.c: New file.
12300 * regformats/reg-x86-64.dat: New file.
12301 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12302 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12303 * gdbserver/configure.in: Add support for regsets.
12304 * gdbserver/config.in: Regenerate.
12305 * gdbserver/configure: Regenerate.
12306 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12307 * gdbserver/linux-low.h: New file.
12308 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12309 for regsets.
12310 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12311 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12312 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12313 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12314 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12315 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12316 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12317 "i387-fp.h". Add PTRACE_GETREGS and friends.
12318 * gdbserver/regcache.c (supply_register): New function.
12319 (supply_register_by_name): New function.
12320 (collect_register): New function.
12321 (collect_register_by_name): New function.
12322
12323 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12324
12325 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12326 (config.status): Add configure.srv dependency.
12327 (server_h): Add config.h dependency.
12328
12329 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12330
12331 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12332 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12333 * gdbserver/configure.srv: Change i386-*-linux* to use
12334 reg-i386-linux.o.
12335
12336 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12337
12338 * x86-64-tdep.c: Re-indent. Update copyright date.
12339
12340 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12341
12342 From Michal Ludvig <mludvig@suse.cz>:
12343 * x86-64-tdep.c (value.h): Delete.
12344 (gdb_assert.h): Include.
12345 (x86_64_register_convert_to_virtual,
12346 x86_64_register_convert_to_raw ): Add check which lets only
12347 floating-point values to be converted.
12348 (value_push): Delete.
12349 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12350 (i386_gdbarch_init): Number of register_bytes fixed.
12351
12352 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12353
12354 * MAINTAINERS: Add x86-64 target.
12355
12356 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12357
12358 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12359 * osfsolib.c (solib_map_sections): Ditto.
12360 * irix5-nat.c (solib_map_sections): Ditto.
12361 * corelow.c (gdb_check_format): Ditto.
12362 * symfile.c (symfile_bfd_open): Ditto.
12363 * solib.c (solib_map_sections): Ditto.
12364 Fix PR gdb/354.
12365
12366 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12367
12368 * remote.c (_initialize_remote): By default, disable ``e'' and
12369 ``E'' step out-of-range packets.
12370
12371 2002-02-26 Andreas Schwab <schwab@suse.de>
12372
12373 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12374 m68k_linux_frame_saved_pc.
12375 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12376 in_sigtramp.
12377 (SIGCONTEXT_PC_OFFSET): Remove.
12378 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12379 m68k_linux_sigtramp_saved_pc): New functions.
12380 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12381 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12382 (UCONTEXT_PC_OFFSET): Define.
12383 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12384 non-RT and RT signal trampolines.
12385
12386 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12387
12388 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12389 (TARGET_NBPG, STACK_END_ADDR): Delete
12390 (VARIABLES_INSIDE_BLOCK): Delete.
12391
12392 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12393
12394 * utils.c (perror_with_name): Make string parameter constant.
12395 (print_sys_errmsg): Ditto.
12396 (query): Ditto.
12397 * defs.h (perror_with_name): Update.
12398 (print_sys_errmsg): Update.
12399 (query): Update.
12400
12401 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12402
12403 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12404 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12405
12406 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12407
12408 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12409 if it already matches the current architecture from the exec file.
12410 Include arch-utils.h for gdbarch_info_init prototype.
12411 * Makefile.in (rs6000-nat.o): Update dependencies.
12412
12413 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12414
12415 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12416 list of exported variables.
12417
12418 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12419
12420 * gdbserver/configure.srv: New file.
12421 * gdbserver/configure.in: Use configure.srv instead
12422 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12423 from it.
12424 * gdbserver/configure: Regenerated.
12425 * gdbserver/terminal.h: New file.
12426 * gdbserver/Makefile.in: Update for configure changes. Remove
12427 more unneeded include paths.
12428
12429 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12430
12431 From wiz at danbala:
12432 * config/sparc/tm-sp64.h: Fix grammar and typos.
12433 Fix PR gdb/287.
12434
12435 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12436
12437 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12438 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12439 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12440 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12441 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12442 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12443 * s390-tdep.c: Ditto.
12444 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12445 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12446 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12447 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12448 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12449 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12450 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12451 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12452 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12453 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12454 Fix PR gdb/378.
12455
12456 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12457
12458 * lin-thread.c: Delete file.
12459 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12460 to gdb_proc_service.h.
12461 * configure: Re-generate.
12462
12463 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12464 * serial.c (serial_open): Delete check for "ocd".
12465 Fix PR gdb/349.
12466
12467 * Makefile.in (linux-thread.o): Delete target.
12468 * linux-thread.c: Delete file.
12469
12470 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12471 renamed SH files to be consistent.
12472
12473 * symtab.c (sort_search_symbols): Use xfree.
12474
12475 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12476
12477 * arm-linux-tdep.c (arm_linux_init_abi): Register
12478 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12479 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12480 definition with undef, since we don't want the sysvr4 definition.
12481 (SKIP_TRAMPOLINE_CODE): Likewise.
12482
12483 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12484
12485 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12486
12487 * configure.in: (AC_CHECK_FUNCS) Added test for
12488 canonicalize_file_name Regenerated.
12489 * config.in, configure: Regenerated.
12490 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12491 defined use canonicalize_file_name.
12492
12493 2002-02-23 Michael Chastain <mec@shout.net>
12494
12495 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12496
12497 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12498
12499 * README: Remove references to cygnus.com.
12500 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12501 dot com'' form. Remove references to cygnus.com and sourceware.
12502
12503 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12504
12505 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12506 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12507 1003.1-2001 no longer allows "head -1".
12508 * gdb/Makefile.in (version.c): Likewise.
12509 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12510 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12511 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12512
12513 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12514
12515 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12516 * command.h (cmd_cfunc_eq): Declare.
12517 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12518
12519 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12520 ``struct cmd_list_element *''.
12521 * cli/cli-cmds.c (is_complete_command): Update. Use
12522 cmd_cfunc_eq.
12523 * top.c (execute_command): Pass the command to
12524 is_complete_command.
12525 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12526
12527 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12528
12529 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12530 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12531 architecture defines.
12532 * s390-tdep.c (s390_gdbarch_init): Likewise.
12533
12534 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12535
12536 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12537 (arm_linux_push_arguments): Likewise.
12538 (arm_linux_init_abi): Register them. Also register linux-specific
12539 call_dummy_words.
12540 (find_minsym_and_objfile): Use strcmp, not STREQ.
12541 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12542 (arm_linux_call_dummy_words): Delete declaration.
12543 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12544 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12545 declarations.
12546 (LOWEST_PC): Delete.
12547
12548 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12549
12550 * maint.c (print_section_info): Do not prepend `0x' to filepos
12551 output, it will be handled by local_hex_string_custom.
12552
12553 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12554
12555 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12556 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12557 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12558
12559 2002-02-22 Jim Blandy <jimb@redhat.com>
12560
12561 Indicate that the bcache functions don't change the strings
12562 they're passed.
12563 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12564 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12565
12566 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12567
12568 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12569
12570 2002-02-21 Christopher Faylor <cgf@redhat.com>
12571
12572 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12573 find the complete path to a loaded DLL.
12574
12575 2002-02-21 Fred Fish <fnf@redhat.com>
12576
12577 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12578 that marks the end of the range of a function, enter a line number
12579 entry that has a line number of zero and a PC offset that matches
12580 the end of the function. This starts a range of PC's for which no
12581 line number information is known.
12582 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12583 PC's for which no line number info is found (line number is zero)
12584 then we didn't find any valid line information.
12585 * symtab.h: Document use of zero line number entry.
12586
12587 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12588
12589 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12590 (have_ptrace_getvrregs): Define for run time checks.
12591 (gdb_vrregset_t): New type for Altivec register handling.
12592 (fetch_register, store_register): Fetch/store altivec register
12593 when needed.
12594 (fetch_altivec_register, store_altivec_register): New functions.
12595 (supply_vrregset, fill_vrregset): New functions.
12596 (fetch_altivec_registers, store_altivec_registers): New functions.
12597 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12598 registers as well.
12599
12600 2002-02-21 Jiri Smid <smid@suse.cz>
12601
12602 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12603
12604 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12605
12606 * Makefile.in (armnbsd-nat.o): Update dependencies.
12607 * armnbsd-nat.c (supply_gregset): New function. Common code to
12608 supply the integer register set.
12609 (supply_fparegset): New function. Similar for FPA registers.
12610 (fetch_regs, fetch_fp_regs): Use them.
12611 (fetch_core_registers): Likewise.
12612 (fetch_elfcore_registers): New function.
12613 (arm_netbsd_elfcore_fns): New core-file type specification.
12614 (_initialize_arm_netbsd_nat): Register it.
12615
12616 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12617
12618 * armnbsd-nat.c: Include gdbcore.h.
12619 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12620 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12621 'void' to declaration, to shut up ARI.
12622 (fetch_core_registers): Make static. Rewrite using supply_register.
12623 (arm_netbsd_core_fns): New core-file type specification.
12624 (_initialize_arm_netbsd_nat): New function.
12625
12626 2002-02-21 Christopher Faylor <cgf@redhat.com>
12627
12628 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12629 value.
12630
12631 2002-02-20 Christopher Faylor <cgf@redhat.com>
12632
12633 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12634 fails.
12635
12636 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12637
12638 * jv-exp.y (parse_number): Change type of implicit longs
12639 to builtin_type_uint64.
12640
12641 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12642
12643 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12644 to be an integer instead of a `union wait'.
12645
12646 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12647
12648 * mips-linux-nat.c: Call the operating system GNU/Linux.
12649 * mips-linux-tdep.c: Likewise.
12650 * mips-tdep.c: Likewise.
12651
12652 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12653
12654 Fix PR gdb/265.
12655 * jv-exp.y (parse_number): Handle 64-bit integers.
12656
12657 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12658
12659 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12660 AC_STDC_HEADERS to AC_HEADER_STDC.
12661 * gdbserver/configure: Regenerated.
12662
12663 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12664
12665 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12666 is defined.
12667 * sparc-tdep.c (get_longjmp_target): Likewise.
12668
12669 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12670
12671 * News: Add news about ARM and Multi-arch. Mention the new target
12672 arm*-*-netbsd*.
12673
12674 2002-02-19 Jim Blandy <jimb@redhat.com>
12675
12676 * stabsread.c (error_type_complaint): Improve error message.
12677
12678 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12679
12680 * gdbserver/README: Update documentation.
12681 * gdbserver/configure.in: Update configury to match documentation.
12682 * gdbserver/Makefile.in: Likewise.
12683 * gdbserver/configure: Regenerated.
12684 * gdbserver/aclocal.m4: New file, generated by aclocal.
12685 * gdbserver/config.in: New file, generated by autoheader.
12686
12687 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12688
12689 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12690 armnbsd-nat.c.
12691
12692 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12693
12694 * arm-tdep.h (enum arm_float_model): New enum.
12695 (struct gdbarch_tdep): Add fp_model.
12696 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12697 up floating-point conversions until we know the floating-point model
12698 in use by the inferior. Don't complain about being unable to
12699 determine the ABI of the inferior when we don't have one.
12700 (arm_extract_return_value): Support different floating-point models.
12701 (arm_store_return_value): Likewise.
12702 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12703 ARM_FLOAT_SOFT.
12704 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12705
12706 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12707
12708 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12709 of ``current_gdbarch''.
12710
12711 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12712
12713 * armnbsd-nat.c : ANSIfy all function declarations.
12714 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12715 (fetch_inferior_registers): Re-implement in terms of above.
12716 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12717 (store_inferior_registers): Re-implement in terms of above.
12718
12719 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12720
12721 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12722 kernel.
12723 * arm-linux-tdep.c: Likewise.
12724 * config/arm/tm-linux.h: Likewise.
12725
12726 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12727
12728 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12729 * config/arm/nbsd.mt (TM_FILE): Delete.
12730 * config/arm/tm-nbsd.h: Delete.
12731
12732 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12733
12734 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12735 Initialize CALL_DUMMY_LENGTH.
12736
12737 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12738
12739 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12740 function.
12741 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12742 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12743 defines one thing and that is incorrect for this port.
12744 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12745
12746 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12747
12748 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12749
12750 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12751
12752 * win32-nat.c (display_selector): New function. Displays information
12753 about the information returned by GetThreadSelectorEntry API function.
12754 (display_selectors): New function. Displays the infomation of
12755 the selector given as argument, or of CS, DS ans FS selectors
12756 if no argument is given.
12757 ( _initialize_inftarg): Add "w32" as info prefix command.
12758 Add "info w32 selector" as command calling display_selectors.
12759
12760 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12761
12762 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12763 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12764 if not defined.
12765
12766 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12767
12768 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12769
12770 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12771
12772 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12773 (arm_fix_call_dummy): Call it.
12774 (arm_call_dummy_breakpoint_offset): Delete.
12775 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12776 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12777
12778 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12779
12780 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12781 Default to func_frame_chain_valid.
12782 * gdbarch.h, gdbarch.c: Re-generate.
12783 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12784
12785 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12786
12787 * ppc-linux-nat.c: Update copyright.
12788 (fetch_register, store_register): Add tid parameter, don't compute
12789 tid here.
12790 (fetch_ppc_registers, store_ppc_registers): Add tid
12791 parameter. Pass it along to callees.
12792 (fetch_inferior_registers, store_inferior_registers): Compute tid
12793 here, and pass it to calleed functions.
12794 (fill_gregset, supply_fpregset): Clean up formatting.
12795
12796 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12797
12798 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12799 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12800
12801 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12802
12803 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12804 * gdbarch.c gdbarch.h: Regenerate.
12805 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12806 function.
12807 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12808 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12809 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12810
12811 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12812 * arm-tdep.c (arm_get_longjmp_target): New function.
12813 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12814 this to a positive value register arm_get_longjmp_target as the
12815 longjmp handler.
12816 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12817 (arm_linux_init_abi): Set up longjmp description in tdep.
12818 * armnbsd-nat.c (get_longjmp_target): Delete.
12819 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12820 description in tdep.
12821 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12822 (get_longjmp_target): Delete declaration.
12823 (GET_LONGJMP_TARGET): Delete.
12824 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12825 (GET_LONGJMP_TARGET): Delete.
12826
12827 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12828
12829 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12830 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12831 of ``current_gdbarch''.
12832
12833 2002-02-17 Tom Tromey <tromey@redhat.com>
12834
12835 * cli/cli-cmds.c (compare_strings): New function.
12836 (complete_command): Only print each unique item once.
12837 * completer.h (complete_line): Declare.
12838 * completer.c (complete_line): New function.
12839 (line_completion_function): Use it.
12840
12841 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12842
12843 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12844 * gdbarch.h, gdbarch.c: Re-generate.
12845
12846 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12847
12848 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12849
12850 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12851
12852 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12853 * valops.c (value_arg_coerce): Don't take the address of a reference
12854 to convert an argument to a reference.
12855
12856 2002-02-15 Christopher Faylor <cgf@redhat.com>
12857
12858 * win32-nat.c (get_image_name): New function.
12859 (handle_load_dll): Use get_image_name function.
12860 (get_child_debug_event): Avoid registering debug events until possibly
12861 execed process is started.
12862 (child_create_inferior): Allow invocation via shell so that command
12863 line redirection, etc. works ok.
12864 (_initialize_inftarg): Add new command: "set shell" to control whether
12865 a shell is used to start a process.
12866
12867 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12868
12869 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12870 instead of find_register_by_number.
12871 (cannot_store_register): Likewise.
12872
12873 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12874
12875 * dwarf2read.c: Replace fprintf (stderr, ...) by
12876 fprintf_unfiltered (gdb_stderr, ...).
12877
12878 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12879
12880 * gdbserver/gdbserver.1: Document --attach.
12881
12882 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12883
12884 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12885 descriptions.
12886 * arm-tdep.c (arm_default_arm_le_breakpoint)
12887 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12888 (arm_default_thumb_be_breakpoint): New. Initialize them from
12889 traditional breakpoint defines.
12890 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12891 (arm_gdbarch_init): Initialize new breakpoint variables.
12892 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12893 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12894 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12895 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12896 code out to ...
12897 (arm_netbsd_init_abi_common): ... here; new function.
12898 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12899 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12900 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12901 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12902
12903 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12904
12905 * arm-tdep.h (enum arm_abi): New enum.
12906 (struct gdbarch_tdep): New structure.
12907 (LOWEST_PC): Provide a default.
12908 (arm_gdbarch_register_os_abi): Declare new function.
12909 * arm-tdep.c (arm_abi_names): New array.
12910 (process_note_abi_tag_sections): New function.
12911 (get_elfosabi): New function.
12912 (arm_gdbarch_register_os_abi): New function.
12913 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12914 support for that ABI has been built in, then call the appropriate
12915 configuration routine. Use gdbarch_num_regs() to get the number
12916 of registers.
12917 (arm_dump_tdep): New function.
12918 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12919 place-holder functions.
12920 (_initialize_arm_tdep): Register them.
12921 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12922
12923 * armnbsd-tdep.c: New file.
12924 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12925 * config/arm/nbsd.mt (TDEPFILES): Add it.
12926 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12927
12928 * armnbsd-nat.c: Include regcache.h.
12929 * Makefile.in (armnbsd-nat.o): Update dependency list.
12930
12931 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12932
12933 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12934
12935 * gdbserver/Makefile.in: Fix typos in target rules.
12936
12937 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12938
12939 Fix part of PR gdb/267.
12940 * linespec.c (find_methods): Handle constructors specially for now.
12941
12942 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12943
12944 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12945 handling.
12946 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12947 standard_coerce_float_to_double().
12948
12949 2002-02-14 Christopher Faylor <cgf@redhat.com>
12950
12951 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12952 GDBINIT_FILENAME.
12953
12954 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12955
12956 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12957 find_variant_by_name, because it confuses the multiarch
12958 framework. Return NULL if there isn't an architecture with the
12959 user supplied name, instead of forcing a different one without
12960 recording the change with the multiarch machinery.
12961 (find_variant_by_name): Delete.
12962
12963 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12964
12965 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12966 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12967
12968 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12969
12970 * stack.c (print_frame_info_base): When calling
12971 print_frame_info_listing_hook, set current_source_symtab.
12972
12973 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12974
12975 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12976 and remove unused $(INCLUDE_DIR).
12977 Add regcache.c to OBS.
12978 Add generated register protocol files to clean target.
12979 Update dependencies for new objects, obsolete old target code.
12980
12981 * gdbserver/linux-low.c: Remove all platform-specific code to
12982 new files. Remove various dead code. Update to use regcache
12983 functionality.
12984 * gdbserver/remote-utils.c (fromhex): Add return statement
12985 to quiet warning.
12986 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12987 constant.
12988 (input_interrupt): Add integer parameter to match prototype
12989 of a signal handler.
12990 (outreg): Use register_data ().
12991 (prepare_resume_reply): Use gdbserver_expedite_regs.
12992 * gdbserver/server.c (main): Dynamically allocate own_buf because
12993 PBUFSIZ is no longer constant. Use registers_to_string () and
12994 registers_from_string ().
12995 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12996 for error (), fatal (), and warning (). Update definition of
12997 PBUFSIZ to use regcache functionality. Add include guard.
12998 * gdbserver/utils.c (fatal): Add missing ``const''.
12999 (warning): New function.
13000
13001 * regformats/regdat.sh: Include "regcache.h" in generated files.
13002 Provide init_registers () function.
13003 * regformats/regdef.h: Add prototype for set_register_cache ().
13004 Add include guard.
13005
13006 * gdbserver/linux-arm-low.c: New file.
13007 * gdbserver/linux-i386-low.c: New file.
13008 * gdbserver/linux-ia64-low.c: New file.
13009 * gdbserver/linux-m68k-low.c: New file.
13010 * gdbserver/linux-mips-low.c: New file.
13011 * gdbserver/linux-ppc-low.c: New file.
13012 * gdbserver/linux-sh-low.c: New file.
13013
13014 * gdbserver/regcache.c: New file.
13015 * gdbserver/regcache.h: New file.
13016
13017 * gdbserver/low-linux.c: Removed obsolete file.
13018
13019 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13020
13021 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13022 * config/i386/linux.mt: Likewise.
13023 * config/ia64/linux.mt: Likewise.
13024 * config/m68k/linux.mh: Likewise.
13025 * config/powerpc/linux.mh: Likewise.
13026 * config/mips/linux.mt: Likewise.
13027
13028 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13029
13030 * config/i386/i386lynx.mh: Mark gdbserver variables
13031 as (currently) obsolete for this target.
13032 * config/i386/nbsd.mt: Likewise.
13033 * config/i386/nbsdelf.mt: Likewise.
13034 * config/m32r/m32r.mt: Likewise.
13035 * config/m68k/m68klynx.mh: Likewise.
13036 * config/m68k/nbsd.mt: Likewise.
13037 * config/m68k/sun3os4.mh: Likewise.
13038 * config/mips/vr5000.mt: Likewise.
13039 * config/ns32k/nbsd.mt: Likewise.
13040 * config/pa/hppabsd.mh: Likewise.
13041 * config/pa/hppaosf.mh: Likewise.
13042 * config/powerpc/nbsd.mt: Likewise.
13043 * config/rs6000/rs6000lynx.mh: Likewise.
13044 * config/s390/s390.mt: Likewise.
13045 * config/s390/s390x.mt: Likewise.
13046 * config/sparc/sparclynx.mh: Likewise.
13047 * config/sparc/sun4os4.mh: Likewise.
13048 * config/i386/x86-64linux.mt: Likewise.
13049 * config/sparc/linux.mh: Likewise.
13050
13051 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13052
13053 * configure.tgt: Configure gdbserver only for known working
13054 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13055 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13056 SUBDIRS if it is configured. Update comment for ${nativefile}.
13057 * configure: Regenerated.
13058
13059 2002-02-13 Michael Snyder <msnyder@redhat.com>
13060
13061 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13062
13063 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13064 (default_gcore_mach): Just return 0, work around a problem in bfd.
13065 (default_gcore_target): OK to return NULL if exec_bfd is null.
13066 (make_mem_sec): Use a cast, avoid a warning.
13067
13068 * procfs.c (find_memory_regions_callback): Use a cast instead of
13069 calling host_pointer_to_address (which complains if
13070 sizeof (host pointer) != sizeof (target pointer)).
13071 (procfs_make_note_section): Avoid overflow in psargs string.
13072
13073 * procfs.c (procfs_make_note_section): Make the default
13074 implementation return an error.
13075
13076 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13077
13078 * procfs.c (procfs_make_note_section): Provide a default definition
13079 (for alpha-dec-osf4.0f). Fix typos.
13080
13081 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13082
13083 * linux-proc.c: Add include of regcache.h.
13084 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13085
13086 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13087
13088 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13089 * memattr.c (create_mem_region): Disallow useless empty region.
13090 Regions are half-open intervals, so allow [A..B) [B..C) as
13091 non-overlapping.
13092
13093 2002-02-13 Michael Chastain <mec@shout.net>
13094
13095 * defs.h: Kill CONST_PTR.
13096 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13097 * c-lang.c (c_builtin_types): Likewise.
13098 * ch-lang.c (ch_builtin_types): Likewise.
13099 * f-lang.c (f_builtin_types): Likewise.
13100 * language.c (unknown_builtin_types): Likewise.
13101 * m2-lang.c (m2_builtin_types): Likewise.
13102 * p-lang.c (pascal_builtin_types): Likewise.
13103 * scm-lang.c (c_builtin_types): Likewise.
13104
13105 2002-02-13 Keith Seitz <keiths@redhat.com>
13106
13107 * arm-tdep.h (arm_get_next_pc): Add declaration.
13108
13109 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13110
13111 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13112 with other related struct-returning functions.
13113 (arm_extract_struct_value_address): New function.
13114 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13115 initialize float_format, double_format and long_double_format as
13116 appropriate to the endianness of the target.
13117 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13118 (arm_use_struct_convention): Delete declaration.
13119 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13120
13121 2002-02-13 Keith Seitz <keiths@redhat.com>
13122
13123 * defs.h (core_addr_to_string_nz): New function.
13124
13125 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13126
13127 Apply missing bits of 2002-01-15 patch.
13128 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13129 (fill_fpregset): Use i387_fill_fsave.
13130
13131 2002-02-12 Keith Seitz <keiths@redhat.com>
13132
13133 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13134 (core_addr_to_string_nz): New function.
13135
13136 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13137
13138 * arm-linux-nat.c: Really include arm-tdep.h.
13139 * config/arm/tm-linux.h (struct type, struct value): Declare.
13140
13141 2002-02-11 Michael Snyder <msnyder@redhat.com>
13142
13143 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13144 (gcore section): Ifdef for Solaris and Unixware only.
13145 (procfs_do_thread_registers): Unixware needs one lwpstatus
13146 per thread (not one prstatus or pstatus).
13147 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13148 not over all gdb threads. For unixware, call elfcore_write_pstatus
13149 once before iterating over threads.
13150
13151 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13152
13153 * arm-tdep.h: New file.
13154 * arm-tdep.c: Include arm-tdep.h.
13155 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13156 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13157 (arm_print_float_info, arm_register_type, convert_to_extended)
13158 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13159 (arm_extract_return_value, arm_register_name): Make static.
13160 (arm_software_single_step): Similarly. Fix types in declaration.
13161 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13162 (arm_store_return_value, arm_store_struct_return): New functions.
13163 (arm_gdbarch_init): Register the above functions. Also register
13164 call_dummy_start_offset, sizeof_call_dummy_words,
13165 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13166 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13167 max_register_virtual_size, register_size. Set up
13168 prologue_cache.saved_regs here, rather than ...
13169 (_initialize_arm_tdep): ... here.
13170 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13171 declarations.
13172 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13173 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13174 (arm_print_float_info, arm_register_type, convert_to_extended)
13175 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13176 (arm_extract_return_value, arm_register_name): Delete declarations.
13177 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13178 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13179 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13180 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13181 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13182 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13183 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13184 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13185 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13186 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13187 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13188 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13189 interface.
13190 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13191 * remote-rdi.c remote-rdp.c: Likewise.
13192 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13193 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13194 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13195 definition.
13196
13197 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13198 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13199 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13200 from non-ARM_ prefixed definitions.
13201 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13202 all uses of above.
13203 * remote-rdi.c remote-rdp.c: Likewise.
13204 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13205
13206 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13207
13208 * arm-tdep.c (arm_frameless_function_invocation)
13209 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13210 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13211 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13212 (arm_pop_frame, arm_get_next_pc): Make static.
13213 (arm_gdbarch_init): Register above in gdbarch structure.
13214 (arm_read_fp): Renamed from arm_target_read_fp.
13215 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13216 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13217 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13218 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13219 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13220 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13221 (arm_pc_is_thumb_dummy): Delete declarations.
13222 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13223 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13224 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13225 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13226
13227 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13228
13229 * symtab.c (compare_search_syms): New function.
13230 (sort_search_symbols): New function.
13231 (search_symbols): Sort symbols after searching rather than
13232 before.
13233
13234 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13235
13236 * NEWS: Linux -> GNU/Linux.
13237
13238 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13239
13240 * gdbarch.sh: For for level one methods, disallow a definition
13241 when partially multi-arched. Add comments explaining rationale.
13242 * gdbarch.h: Re-generate.
13243
13244 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13245
13246 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13247 multi-arch partial.
13248
13249 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13250
13251 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13252 field. Use diff -u.
13253 * gdbarch.c: Re-generate.
13254
13255 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13256
13257 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13258 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13259 partial.
13260
13261 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13262
13263 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13264 multi-arch partial.
13265 (PUSH_ARGUMENTS): Switch to using predefault.
13266 * gdbarch.c: Regenerate.
13267
13268 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13269
13270 * valops.c (PUSH_ARGUMENTS): Delete definition.
13271 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13272 partial. Default to default_push_arguments.
13273 * gdbarch.h, gdbarch.c: Regenerate.
13274
13275 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13276
13277 * defs.h (throw_exception): Rename return_to_top_level. Update
13278 comments.
13279 * utils.c (error_stream, internal_verror, quit): Ditto.
13280 * top.c (throw_exception, catcher): Ditto.
13281 * sparclet-rom.c (sparclet_load): Ditto.
13282 * remote.c (interrupt_query, minitelnet): Ditto.
13283 * remote-sds.c (interrupt_query): Ditto.
13284 * remote-mips.c (mips_error, mips_kill): Ditto.
13285 * ocd.c (interrupt_query): Ditto.
13286 * monitor.c (monitor_interrupt_query): Ditto.
13287 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13288 * target.h: Update comment.
13289
13290 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13291
13292 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13293
13294 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13295 default_double_format.
13296 * gdbarch.h, gdbarch.c: Re-generate.
13297 * findvar.c (floatformat_unknown): Delete variable definition.
13298 * doublest.h (floatformat_unknown): Delete variable declaration.
13299
13300 2002-02-09 Jim Blandy <jimb@redhat.com>
13301
13302 * stabsread.c (read_type): Add code to parse Sun's syntax for
13303 prototyped function types.
13304
13305 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13306
13307 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13308 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13309
13310 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13311
13312 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13313 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13314 now _initialize_xcoffsolib gets called again and overrides the
13315 commands from solib.c in a native configuration.
13316
13317 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13318
13319 * doublest.c (store_typed_floating): Don't try to return a value.
13320 Fixes PR gdb/290.
13321
13322 2002-02-08 Jim Blandy <jimb@redhat.com>
13323
13324 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13325 is prototyped and has no arguments, print its argument list as
13326 `(void)'.
13327
13328 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13329
13330 * MAINTAINERS (write-after-approval): Add myself.
13331 (paper-trail): I've escaped!
13332
13333 2002-02-08 Christopher Faylor <cgf@redhat.com>
13334
13335 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13336 changes.
13337 (_initialize_check_for_gdb_ini): Ditto.
13338
13339 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13340
13341 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13342 xaprintf -> xasprintf.
13343
13344 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13345
13346 * win32-nat.c: Remove use of printf and sprintf functions.
13347
13348 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13349
13350 * arm-tdep.c (arm_frame_chain_valid): Make static.
13351 (arm_push_arguments): Likewise.
13352 (arm_gdbarch_init): New function.
13353 (_initialize_arm_tdep): Call it.
13354 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13355 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13356 (FRAME_CHAIN_VALID): Delete.
13357 (arm_frame_chain_valid): Delete declaration.
13358 (PUSH_ARGUMENTS): Delete.
13359 (arm_push_arguments): Delete declaration.
13360 (CALL_DUMMY_P): Delete.
13361
13362 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13363 Corinna Vinschen <vinschen@redhat.com>
13364
13365 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13366 on builtin float types.
13367
13368 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13369
13370 * utils.c: Include <curses.h> before "bfd.h".
13371 * tui/tui-hooks.c: Likewise.
13372 * tui/tui.c: Likewise.
13373 * tui/tuiCommand.c: Likewise.
13374 * tui/tuiData.c: Likewise.
13375 * tui/tuiDataWin.c: Likewise.
13376 * tui/tuiDisassem.c: Likewise.
13377 * tui/tuiGeneralWin.c: Likewise.
13378 * tui/tuiIO.c: Likewise.
13379 * tui/tuiLayout.c: Likewise.
13380 * tui/tuiRegs.c: Likewise.
13381 * tui/tuiSource.c: Likewise.
13382 * tui/tuiSourceWin.c: Likewise.
13383 * tui/tuiStack.c: Likewise.
13384 * tui/tuiWin.c: Likewise.
13385
13386 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13387
13388 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13389 to include space for pseudoregs as well. Update loops accordingly.
13390 (sh_fp_frame_init_saved_regs): Ditto.
13391 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13392
13393 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13394
13395 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13396 Add Richard Earnshaw to Arm maintainers.
13397
13398 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13399
13400 * defs.h (warning_begin): Delete declaration.
13401
13402 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13403 Delete macro.
13404
13405 2002-02-07 Michael Snyder <msnyder@redhat.com>
13406
13407 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13408 Logic bug, remove misplaced else.
13409
13410 2002-02-07 Klee Dienes <klee@apple.com>
13411
13412 * fork-inferior.c (fork_inferior): Add '!' to the list of
13413 characters that need to be quoted when building a string for the
13414 shell. Quote '!' specifically with a backslash, since CSH chokes
13415 when trying to evaluate "str!str".
13416
13417 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13418
13419 * rdi-share/host.h: Only provide a typedef for bool if it is not
13420 defined.
13421
13422 2002-02-04 Michael Snyder <msnyder@redhat.com>
13423
13424 * breakpoint.h (enum bptype): Add new overlay event bp type.
13425 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13426
13427 * breakpoint.c (create_internal_breakpoint): New function.
13428 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13429 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13430 (create_thread_event_breakpoint): Ditto.
13431 (create_solib_event_breakpoint): Ditto.
13432 (create_overlay_event_breakpoint): New function.
13433 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13434 (update_breakpoints_after_exec): Delete and re-initialize
13435 overlay event breakpoints after an exec. Add FIXME comment
13436 about longjmp breakpoint.
13437 (print_it_typical): Ignore overlay event breakpoints.
13438 (print_one_breakpoint): Ditto.
13439 (mention): Ditto.
13440 (bpstat_what): Do not stop for overlay event breakpoints.
13441 (delete_breakpoint): Don't delete overlay event breakpoints.
13442 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13443 (breakpoint_re_set): Re-create overlay event breakpoint.
13444
13445 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13446 (overlay_manual_command): Disable overlay breakpoints.
13447 (overlay_off_command): Disable overlay breakpoints.
13448
13449 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13450
13451 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13452 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13453 to here from config/tm-arm.h.
13454 (coff_sym_is_thumb): Make static.
13455 (arm_elf_make_msymbol_special): New function.
13456 (arm_coff_make_msymbol_special): New function.
13457 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13458 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13459 (coff_sym_is_thumb): Delete declaration.
13460 (arm_elf_make_msymbol_special): Declare.
13461 (arm_coff_make_msymbol_special): Declare.
13462 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13463 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13464
13465 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13466
13467 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13468
13469 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13470
13471 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13472 * gdbarch.c gdbarch.h: Regenerate.
13473 * arch-utils.c (default_print_float_info): New function.
13474 * arch-utils.h (default_print_float_info): Prototype it.
13475 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13476 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13477 (PRINT_FLOAT_INFO): Document it.
13478
13479 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13480 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13481 (PRINT_FLOAT_INFO): Define.
13482
13483 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13484
13485 * win32-nat.c (_initialize_check_for_gdb_ini):
13486 Add typecast to sprintf argument to suppress a warning.
13487
13488 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13489
13490 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13491 to allow easier handling of pass state.
13492 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13493 that gives exception name and address.
13494 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13495 and set last_sig value to ourstatus->value.sig. Some missing
13496 exceptions added.
13497 (child_continue): Correctly report continue_status.
13498 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13499 TARGET_SIGNAL_0 (new default value).
13500 (child_resume): consider sig argument passed to decide if
13501 the exception should be passed to debuggee or not.
13502
13503 2002-02-05 Michael Snyder <msnyder@redhat.com>
13504
13505 * regcache.c (fetch_register): Call target_fetch_register
13506 only if we don't call FETCH_PSEUDO_REGISTER.
13507 (store_register): Call target_store_register only if we
13508 don't call STORE_PSEUDO_REGISTER.
13509
13510 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13511
13512 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13513 ELF_MAKE_MSYMBOL_SPECIAL.
13514 * gdbarch.c, gdbarch.h: Regenerate.
13515 * arch-utils.c (default_make_msymbol_special): New function.
13516 * arch-utils.h (default_make_msymbol_special): Export.
13517 * elfread.c (elf_symtab_read): Compile use of
13518 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13519 multiarched.
13520 * coffread.c (coff_symtab_read): Ditto, for
13521 COFF_MAKE_MSYMBOL_SPECIAL.
13522
13523 2002-02-05 Jim Blandy <jimb@redhat.com>
13524
13525 * solib-svr4.c (svr4_truncate_ptr): New function.
13526 (svr4_relocate_section_addresses): Do the address arithmetic with
13527 the appropriate truncation for target addresses, even when
13528 CORE_ADDR is larger than a target address.
13529
13530 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13531
13532 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13533 to (int *).
13534
13535 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13536
13537 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13538 code.
13539
13540 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13541
13542 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13543
13544 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13545
13546 * gdbserver/linux-low.c: Remove unused include files.
13547
13548 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13549
13550 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13551 (read_inferior_memory): Use it.
13552 (write_inferior_memory): Likewise.
13553
13554 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13555
13556 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13557 grubbing through sys_errlist.
13558
13559 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13560
13561 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13562
13563 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13564 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13565
13566 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13567
13568 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13569 (do_sfunc, set_cmd_sfunc): New functions.
13570
13571 * command.h (struct cmd_list_element): Add field func.
13572 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13573 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13574 * cli/cli-decode.h: Ditto.
13575
13576 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13577 (help_all, help_cmd_list): Ditto.
13578 (find_cmd, complete_on_cmdlist): Ditto.
13579 * top.c (execute_command): Ditto.
13580
13581 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13582 function.sfunc.
13583
13584 * infcmd.c (notice_args_read): Fix function signature.
13585
13586 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13587 * cli/cli-decode.c (add_set_cmd): Ditto.
13588 * utils.c (initialize_utils): Ditto.
13589 * maint.c (_initialize_maint_cmds): Ditto.
13590 * infrun.c (_initialize_infrun): Ditto.
13591 * demangle.c (_initialize_demangler): Ditto.
13592 * remote.c (add_packet_config_cmd): Ditto.
13593 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13594 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13595 * proc-api.c (_initialize_proc_api): Ditto.
13596 * kod.c (_initialize_kod): Ditto.
13597 * valprint.c (_initialize_valprint): Ditto.
13598 * top.c (init_main): Ditto.
13599 * infcmd.c (_initialize_infcmd): Ditto.
13600 * corefile.c (_initialize_core): Ditto.
13601 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13602 * arch-utils.c (initialize_current_architecture): Ditto.
13603 (_initialize_gdbarch_utils): Ditto.
13604 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13605
13606 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13607 * wince.c (_initialize_inftarg): Ditto.
13608 * symfile.c (_initialize_symfile): Ditto.
13609 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13610 * language.c (_initialize_language): Ditto.
13611 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13612
13613 2002-02-04 Michael Snyder <msnyder@redhat.com>
13614
13615 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13616
13617 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13618
13619 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13620 Add rules for building the register data files.
13621
13622 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13623
13624 * regformats/regdat.sh: Add braces to the definition of
13625 expedite_regs_${arch}.
13626
13627 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13628
13629 * regformats/regdef.h (struct reg): Add comment describing the
13630 requirements for offset and size fields.
13631
13632 2002-02-04 Andreas Schwab <schwab@suse.de>
13633
13634 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13635 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13636
13637 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13638
13639 * gdbarch.sh (copyright): Update years in generated header.
13640 (SMASH_TEXT_ADDRESS): Add rule.
13641 * gdbarch.h, gdbarch.c: Re-generate.
13642 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13643 * dbxread.c: Likewise.
13644 * dwarfread.c: Likewise.
13645 * elfread.c: Likewise.
13646 * somread.c: Likewise.
13647
13648 * arm-tdep.c (arm_smash_text_address): New function.
13649 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13650
13651 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13652
13653 Add support for hardware watchpoints on win32 native.
13654 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13655 CONTEXT_DEBUG_REGISTERS.
13656 (dr variable): New variable. Static array containing a local copy
13657 of debug registers.
13658 (debug_registers_changed): New variable. Reflects when debug registers
13659 are changed and need to be written to inferior.
13660 (debug_registers_used): New variable. Reflects when any debug register
13661 was set, used when new threads are created.
13662 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13663 i386-nat code.
13664 (thread_rec): Set dr array if id is the thread of current_event .
13665 (child_continue, child_resume): Change the debug registers for all
13666 threads if debug_registers_changed.
13667 (child_add_thread): Change the debug registers if debug_registers_used.
13668 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13669 Link nm.h to new nm-cygwin.h file.
13670 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13671 of hardware registers.
13672
13673 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13674
13675 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13676 Restore behavour broken by 2002-01-20 Andrew Cagney
13677 <ac131313@redhat.com> IEEE_FLOAT removal.
13678
13679 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13680
13681 * c-valprint.c (c_val_print): Pass a proper valaddr to
13682 cp_print_class_method.
13683 * valops.c (search_struct_method): If there is only one method
13684 and args is NULL, return that method.
13685
13686 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13689 accessing tag_name directly.
13690
13691 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13692
13693 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13694 of accessing tag_name directly.
13695
13696 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13697
13698 PR gdb/280
13699 * gdbtypes.c (replace_type): New function.
13700 * gdbtypes.h (replace_type): Add prototype.
13701 * stabsread.c (read_type): Use replace_type.
13702
13703 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13704
13705 * Makefile.in (memattr.o): Add missing dependencies rule.
13706
13707 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13708
13709 * breakpoint.c (break_at_finish_command): Really export.
13710 (break_at_finish_at_depth_command): Ditto.
13711 (tbreak_at_finish_command): Ditto.
13712 * hppa-tdep.c: Include completer.h.
13713 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13714 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13715
13716 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13717
13718 * utils.c (do_write): New function.
13719 (error_stream): Rewrite combining the code from error_begin and
13720 verror.
13721 (verror): Rewrite using error_stream.
13722 (error_begin): Delete function.
13723
13724 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13725
13726 * utils.c (error_begin): Make static.
13727 * defs.h (error_begin): Delete declaration.
13728
13729 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13730 (decode_line_1): Use cplusplus_error instead of error_begin,
13731 cplusplus_hint and return_to_top_level.
13732 * coffread.c (coff_symfile_read): Use error instead of error_begin
13733 and return_to_top_level.
13734 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13735
13736 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13737
13738 * language.h (type_error, range_error): Make string parameter
13739 constant.
13740 * language.c (warning_pre_print): Delete extern declaration.
13741 * dwarfread.c (warning_pre_print): Ditto.
13742 * language.c (type_error, range_error): Rewrite to use verror and
13743 vwarning instead of warning_begin.
13744
13745 2002-02-01 Michael Snyder <msnyder@redhat.com>
13746
13747 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13748 (set_ignore_count): Move misplaced comment back where it belongs.
13749
13750 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13751
13752 * command.h (NO_FUNCTION): Delete macro.
13753 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13754 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13755 * tracepoint.c (_initialize_tracepoint): Ditto.
13756 * cli/cli-decode.c (add_set_cmd): Ditto.
13757 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13758
13759 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13760
13761 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13762 Update ``this'' pointer when calling virtual functions.
13763
13764 2002-02-01 Michael Snyder <msnyder@redhat.com>
13765
13766 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13767 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13768
13769 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13770
13771 * regformats/reg-arm.dat: New file.
13772 * regformats/reg-i386.dat: New file.
13773 * regformats/reg-ia64.dat: New file.
13774 * regformats/reg-m68k.dat: New file.
13775 * regformats/reg-mips.dat: New file.
13776 * regformats/reg-ppc.dat: New file.
13777 * regformats/reg-sh.dat: New file.
13778 * regformats/regdef.h: New file.
13779 * regformats/regdat.sh: New file.
13780
13781 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13782
13783 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13784 (arm_frame_args_address, arm_frame_locals_address): New functions.
13785 (arm_frame_num_args): New function.
13786 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13787 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13788 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13789
13790 2002-01-31 Michael Snyder <msnyder@redhat.com>
13791
13792 * breakpoint.c (break_at_finish_command): Export.
13793 (break_at_finish_at_depth_command): Export.
13794 (tbreak_at_finish_command): Export.
13795 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13796 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13797 "txbreak" commands, which are HPPA specific.
13798
13799 * printcmd.c (disassemble_command): Remove an ancient
13800 artifact of an old merge.
13801
13802 * symfile.h (enum overlay_debugging_state):
13803 Define enum constant values for overlay mode.
13804 * symfile.c (overlay_debugging): Use enums instead of literals.
13805 (overlay_is_mapped, overlay_auto_command,
13806 overlay_manual_command): Ditto.
13807
13808 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13809 breakpoint_here_p, breakpoint_inserted_here_p,
13810 breakpoint_thread_match, bpstat_stop_status,
13811 describe_other_breakpoints, check_duplicates, clear_command):
13812 Coding standard fixes.
13813
13814 * target.c (target_xfer_memory): Add spaces, coding standard.
13815 (do_xfer_memory): Add missing line to trust-readonly
13816 code: check bfd SEC_READONLY flag for section.
13817
13818 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13819
13820 * PROBLEMS: Fix typo, 5.1->5.1.1.
13821
13822 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13823
13824 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13825 data symbols, since we search based on textlow and texthigh.
13826 (find_pc_sect_symtab): Likewise.
13827
13828 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13829
13830 * defs.h (vwarning): Declare.
13831 * utils.c (vwarning): New function.
13832 (warning): Call vwarning.
13833 (warning_begin): Delete function.
13834
13835 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13836 the warning message.
13837 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13838 warning_begin.
13839
13840 2002-01-30 Michael Snyder <msnyder@redhat.com>
13841
13842 * NEWS: Mention "set trust-readonly-sections" command.
13843 Mention generate-core-file command.
13844
13845 2002-01-15 Michael Snyder <msnyder@redhat.com>
13846
13847 * target.c: New command, "set trust-readonly-sections on".
13848 (do_xfer_memory): Honor the suggestion to trust readonly sections
13849 by reading them from the object file instead of from the target.
13850 (initialize_targets): Register command "set trust-readonly-sections".
13851
13852 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13853
13854 * parse.c (target_map_name_to_register): Simplify, search regs and
13855 pseudo-regs using a single loop.
13856
13857 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13858
13859 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13860
13861 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13862
13863 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13864 * config/i386/i386v42mp.mh: Add i387-nat.o .
13865 * i386v4-nat.c: Include i387-nat.h.
13866 (supply_fpregset): Use i387_supply_fsave.
13867 (fill_fpregset): Use i387_fill_fsave.
13868
13869 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13870
13871 * arm-tdep.c (arm_call_dummy_words): Define.
13872 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13873 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13874 (CALL_DUMMY_WORDS): Define.
13875 (arm_call_dummy_words): Declare.
13876 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13877 (arm_linux_call_dummy_words): Declare.
13878
13879 2002-01-30 Andreas Schwab <schwab@suse.de>
13880
13881 * m68klinux-nat.c: Fix last change to use regcache_collect
13882 instead of referencing registers[] directly.
13883
13884 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13885
13886 * parse.c (target_map_name_to_register): Delete code wrapped in
13887 #ifdef REGISTER_NAME_ALIAS_HOOK.
13888
13889 2002-01-28 Michael Snyder <msnyder@redhat.com>
13890
13891 * regcache.c (legacy_read_register_gen): Need to be able to
13892 read pseudo-register as well as real register.
13893 (legacy_write_register_gen): Ditto.
13894
13895 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13896
13897 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13898 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13899 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13900 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13901 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13902 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13903 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13904 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13905 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13906 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13907 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13908 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13909 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13910 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13911 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13912 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13913 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13914 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13915 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13916 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13917
13918 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13919
13920 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13921 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13922 (initialize_current_architecture): Update target_byte_order using
13923 information from BFD.
13924 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13925 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13926
13927 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13928
13929 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13930 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13931
13932 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13933 #ifdef INVALID_FLOAT.
13934 * infcmd.c (do_registers_info): Ditto.
13935 * values.c (unpack_double): Ditto. Add comment.
13936
13937 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13938 already commented out.
13939
13940 2002-01-26 Andreas Schwab <schwab@suse.de>
13941
13942 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13943 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13944 registers and add support for PTRACE_GETREGS.
13945
13946 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13947
13948 GDB 5.1.1 released from 5.1 branch.
13949 * NEWS: Add 5.1.1 news.
13950 * README: Sync with 5.1 branch.
13951
13952 2002-01-23 Fred Fish <fnf@redhat.com>
13953
13954 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13955 stabstring on initial malloc. Reallocing will copy it for us,
13956 if necessary.
13957
13958 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13959
13960 * Makefile.in (hpread_h): Delete.
13961 (HFILES_NO_SRCDIR): Remove hpread.h.
13962 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13963 (hpread.o): Update dependencies.
13964 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13965
13966 * hp-psymtab-read.c: Remove file.
13967 * hp-symtab-read.c: Remove file.
13968 * hpread.h: Remove file.
13969
13970 * hpread.c: Merge all contents of hp-psymtab-read.c,
13971 hp-symtab-read.c and hpread.h into this file, as it was prior to
13972 January 1999.
13973
13974 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13975 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13976 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13977 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13978
13979 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13980
13981 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13982 fill_gregset): Call gdbarch_tdep() just once, assign result to
13983 variable and use that, instead of calling the function several
13984 times.
13985
13986 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13987
13988 * configure.host: Accept sparcv9 as alias for sparc64.
13989 * configure.tgt: Likewise.
13990
13991 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13992
13993 * solib-aix5.c (build_so_list_from_mapfile)
13994 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13995 arguments is not reversed.
13996 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13997 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13998
13999 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14000
14001 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14002 modified version of obsolete sh_fetch_pseudo_register.
14003 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14004 (sh4_register_read): New function.
14005 (sh_pseudo_register_write): New function. Renamed and modified
14006 version of obsolete sh_store_pseudo_register.
14007 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14008 (sh4_register_write): New function.
14009 (sh_gdbarch_init): Remove setting of gdbarch function
14010 fetch_pseudo_register and store_pseudo_register. Remove setting of
14011 register_convert_to_raw, register_convert_to_virtual,
14012 register_convertible.
14013 (sh_sh4_register_convertible): Delete. No longer needed. All is
14014 taken care by architecture specific functions
14015 register_read/register_write.
14016 (sh_sh4_register_convert_to_virtual): Make static.
14017 (sh_sh4_register_convert_to_raw): Ditto.
14018
14019 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14020
14021 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14022 (floatformat_is_nan, floatformat_mantissa): Ditto.
14023
14024 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14025 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14026 builtin_type_ieee_double_little,
14027 builtin_type_ieee_double_littlebyte_bigword,
14028 builtin_type_m68881_ext, builtin_type_i960_ext,
14029 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14030 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14031 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14032 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14033
14034 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14035
14036 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14037 parameter. Set frameless flag if it exists and depended of
14038 whether the scanned function is frameless or not.
14039 (xstormy16_skip_prologue): If function is frameless, return
14040 result of xstormy16_scan_prologue().
14041 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14042 call.
14043
14044 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14045
14046 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14047 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14048 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14049 sh_sh4_register_byte, sh_sh4_register_raw_size,
14050 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14051 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14052 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14053 sh_store_pseudo_register, sh_do_pseudo_register): Call
14054 gdbarch_tdep() just once, assign result to variable and use that,
14055 instead of calling the function several times.
14056
14057 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14058
14059 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14060 macros instead of LAST_FPU_CTRL_REGNUM.
14061 (store_register): Likewise.
14062
14063 2002-01-21 Jim Blandy <jimb@redhat.com>
14064
14065 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14066 is up-to-date before running the program, not just when a program
14067 exits.
14068
14069 2002-01-21 Fred Fish <fnf@redhat.com>
14070
14071 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14072 when we have found all instructions we are looking for.
14073
14074 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14075
14076 * arm-tdep.c (arm_register_name): New function.
14077 (arm_registers_names): Make static.
14078 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14079 (arm_register_name): Declare.
14080 (REGISTER_NAME): Use it.
14081
14082 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14083 Kevin Buettner <kevinb@redhat.com>
14084
14085 Convert arm targets to new FRAME interface.
14086 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14087 (arm_frame_find_save_regs): Delete.
14088 (arm_frame_init_saved_regs): New.
14089 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14090 Allocate extra_info as required. Convert all uses of fsr.regs
14091 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14092 to use extra_info.
14093 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14094 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14095 (check_prologue_cache, save_prologue_cache): Likewise.
14096 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14097 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14098 (FRAME_FIND_SAVED_REGS): Delete.
14099 (arm_frame_find_saved_regs): Delete prototype.
14100 (arm_frame_init_saved_regs): New prototype.
14101 (FRAME_INIT_SAVED_REGS): Define.
14102
14103 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14104
14105 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14106
14107 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14108
14109 From Jeff Law <law@redhat.com>:
14110 * infttrace.c: Include <sys/pstat.h>.
14111 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14112 exec file if the ttrace equivalent fails.
14113
14114 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14115
14116 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14117 (closeLogFile): Ditto.
14118
14119 2002-01-20 Michael Chastain <mec@shout.net>
14120
14121 * top.c (print_gdb_version): Bump copyright year to 2002.
14122
14123 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14124
14125 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14126 Zannoni and Eli Zaretskii.
14127
14128 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14129
14130 * buildsym.c: Update copyright years.
14131 * c-typeprint.c: Likewise.
14132 * dwarf2read.c: Likewise.
14133 * f-typeprint.c: Likewise.
14134 * gdbtypes.c: Likewise.
14135 * gdbtypes.h: Likewise.
14136 * hp-symtab-read.c: Likewise.
14137 * hpread.c: Likewise.
14138 * mdebugread.c: Likewise.
14139 * p-typeprint.c: Likewise.
14140
14141 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14142
14143 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14144 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14145 byte-order selectable.
14146 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14147 * arch-utils.c: Ditto.
14148 (set_endian): Ditto.
14149 (set_endian_from_file): Ditto.
14150 * gdbserver/low-sim.c (create_inferior): Ditto.
14151 * gdbarch.sh: Ditto.
14152 * gdbarch.h: Re-generate.
14153 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14154 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14155 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14156 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14157 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14158 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14159 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14160 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14161 macro definition.
14162 * config/mips/tm-wince.h: Remove #undef of macro
14163 TARGET_BYTE_ORDER_SELECTABLE.
14164 * config/sh/tm-wince.h: Ditto.
14165
14166 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14167
14168 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14169 member function fields. Add accessor macro
14170 TYPE_FN_FIELD_ARTIFICIAL.
14171 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14172 * c-typeprint.c (c_type_print_base): Skip artificial member
14173 functions.
14174
14175 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14176
14177 * f-typeprint.c: Delete unused function f_type_print_args.
14178 * p-typeprint.c: Delete unused function pascal_type_print_args.
14179
14180 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14181
14182 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14183 comment. Add ``artificial'' to ``union field_location''.
14184
14185 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14186
14187 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14188 * mdebugread.c (parse_symbol): Likewise.
14189 * stabsread.c (define_symbol): Likewise.
14190 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14191 initializing TYPE_FIELD_BITPOS to n (obsolete).
14192 (hpread_doc_function_type): Likewise.
14193 * hpread.c (hpread_function_type): Likewise.
14194
14195 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14196
14197 * configure.in (host_makefile_frag): Only require a host makefile
14198 fragment when a native build.
14199 * configure: Re-generate.
14200
14201 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14202
14203 * doublest.h (floatformat_from_type): Declare.
14204 * doublest.c (floatformat_from_type): New function.
14205 (convert_typed_floating): Use.
14206
14207 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14208 call to function floatformat_from_type.
14209
14210 * gdbarch.sh (IEEE_FLOAT): Delete.
14211 * gdbarch.h, gdbarch.c: Re-generate.
14212 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14213 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14214 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14215 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14216 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14217 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14218 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14219 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14220 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14221 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14222 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14223 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14224
14225 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14226 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14227 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14228 * sh-tdep.c (sh_gdbarch_init): Ditto.
14229 * mips-tdep.c (mips_gdbarch_init): Ditto.
14230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14231 * cris-tdep.c (cris_gdbarch_init): Ditto.
14232
14233 2002-01-20 Jiri Smid <smid@suse.cz>
14234
14235 * configure.host, configure.tgt: Support x86-64.
14236 * NEWS: Note new target x86-64.
14237
14238 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14239 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14240 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14241 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14242 x86-64-linux-nat.o): Fix dependencies.
14243
14244 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14245
14246 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14247 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14248 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14249 * config/sparc/xm-sun4os4.h: Delete file.
14250 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14251
14252 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14253
14254 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14255 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14256 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14257 * config/i386/i386lynx.mh (XM_FILE): Delete.
14258 * config/rs6000/xm-rs6000ly.h: Delete file.
14259 * config/sparc/xm-sparclynx.h: Delete file.
14260 * config/m68k/xm-m68klynx.h: Delete file.
14261 * config/i386/xm-i386lynx.h: Delete file.
14262 * config/xm-lynx.h: Delete file.
14263 * config/djgpp/fnchange.lst: Update.
14264
14265 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14266
14267 * alpha-tdep.c (alpha_register_byte): New function.
14268 (alpha_register_raw_size): Ditto.
14269 (alpha_register_virtual_size): Ditto.
14270 (alpha_skip_prologue_internal): Renamed from
14271 alpha_skip_prologue.
14272 (alpha_skip_prologue): New version that calls
14273 alpha_skip_prologue_internal.
14274 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14275 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14276 second argument from alpha_skip_prologue.
14277 (REGISTER_BYTE): Use alpha_register_byte.
14278 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14279 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14280 (FRAMELESS_FUNCTION_INVOCATION): Use
14281 generic_frameless_function_invocation_not.
14282 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14283 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14284
14285 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14286
14287 * config/mips/xm-news-mips.h: Delete file.
14288 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14289
14290 * config/m88k/xm-m88k.h: Delete file.
14291 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14292 * config/m88k/xm-delta88v4.h: Ditto.
14293 * config/m88k/xm-delta88.h: Ditto.
14294
14295 * config/alpha/xm-fbsd.h: Delete file.
14296 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14297
14298 * config/sparc/xm-sparc.h: Delete file.
14299 * Makefile.in (xm-sun4os4.h): Delete dependency.
14300 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14301 * config/sparc/xm-sun4os4.h: Ditto.
14302 * config/sparc/xm-linux.h: Ditto.
14303
14304 * config/i386/xm-windows.h: Delete file.
14305
14306 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14307
14308 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14309 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14310
14311 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14312
14313 * alpha-tdep.c (alpha_call_dummy_words): New.
14314 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14315 (CALL_DUMMY_P): Define.
14316 (CALL_DUMMY_WORDS): Define.
14317 (SIZEOF_CALL_DUMMY_WORDS): Define.
14318
14319 2002-01-19 Per Bothner <per@bothner.com>
14320
14321 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14322 isn't NULL, which can happen with some gcj-3.x-produced code.
14323
14324 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14325
14326 * alpha-tdep.c (alpha_register_virtual_type): New function.
14327 (alpha_init_frame_pc_first): Ditto.
14328 (alpha_fix_call_dummy): Ditto.
14329 (alpha_store_struct_return): Ditto.
14330 (alpha_extract_struct_value_address): Ditto.
14331 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14332 alpha_register_virtual_type.
14333 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14334 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14335 alpha_extract_struct_value_address.
14336 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14337 (INIT_FRAME_PC): Use init_frame_pc_noop.
14338 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14339
14340 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14341
14342 * i386gnu-nat.c: Include "i386-tdep.h".
14343 (fetch_fpregs): Simplify code dealing with uninitialized floating
14344 point states such that it doesn't require FP7_REGNUM.
14345
14346 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14347
14348 * alpha-tdep.c (frame_extra_info): New.
14349 (alpha_find_saved_regs): Make static. Use
14350 frame->extra_info.
14351 (alpha_frame_init_saved_regs): New function.
14352 (alpha_frame_saved_pc): Use frame->extra_info.
14353 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14354 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14355 (init_extra_frame_info): Rename to...
14356 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14357 (alpha_print_extra_frame_info): New function.
14358 (alpha_frame_locals_address): Ditto.
14359 (alpha_frame_args_address): Ditto.
14360 (alpha_pop_frame): Use frame->extra_info.
14361 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14362 alpha_frame_args_address.
14363 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14364 (alpha_find_saved_regs): Remove prototype.
14365 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14366 (EXTRA_FRAME_INFO): Remove.
14367 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14368 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14369
14370 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14371
14372 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14373 (alpha_cannot_fetch_register): Ditto.
14374 (alpha_cannot_store_register): Ditto.
14375 (alpha_register_convertible): Ditto.
14376 (alpha_use_struct_convention): Ditto.
14377 * config/alpha/tm-alpha.h: Update copyright years.
14378 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14379 (INNER_THAN): Use core_addr_lessthan.
14380 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14381 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14382 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14383 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14384 (FRAME_CHAIN): Remove unnecessary cast.
14385
14386 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14387
14388 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14389 obsolete.
14390
14391 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14392
14393 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14394 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14395 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14396 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14397 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14398 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14399 * x86-64-linux-nat.c: Ditto.
14400
14401 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14402
14403 * alpha-tdep.c (alpha_register_name): New function.
14404 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14405 (REGISTER_NAME): Define.
14406
14407 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14408
14409 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14410
14411 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14412
14413 * alpha-tdep.c: Update copyright years.
14414 (alpha_next_pc): New function.
14415 (alpha_software_single_step): Ditto.
14416 * config/alpha/tm-alpha.h: Add prototype for
14417 alpha_software_single_step.
14418
14419 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14420
14421 * alphabsd-nat.c: Update copyright years.
14422 (fill_gregset): Use regcache_collect.
14423 (fill_fpregset): Likewise.
14424 (fetch_inferior_registers): Only fetch integer registers
14425 if requested to do so.
14426 (store_inferior_registers): Only store integer registers
14427 if requested to do so.
14428
14429 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14430
14431 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14432 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14433 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14434 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14435 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14436 * config/arm/linux.mh (XDEPFILES): Delete.
14437 * config/arm/nbsd.mh (XDEPFILES): Delete.
14438 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14439 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14440 * config/i386/i386m3.mh (XDEPFILES): Delete.
14441 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14442 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14443 * config/i386/fbsd.mh (XDEPFILES): Delete.
14444 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14445 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14446 * config/i386/i386v4.mh (XDEPFILES): Delete.
14447 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14448 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14449 * config/i386/i386aix.mh (XDEPFILES): Delete.
14450 * config/i386/go32.mh (XDEPFILES): Delete.
14451 * config/i386/cygwin.mh (XDEPFILES): Delete.
14452 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14453 * config/i386/i386mach.mh (XDEPFILES): Delete.
14454 * config/i386/i386v32.mh (XDEPFILES): Delete.
14455 * config/i386/linux.mh (XDEPFILES): Delete.
14456 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14457 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14458 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14459 * config/i386/i386sco.mh (XDEPFILES): Delete.
14460 * config/i386/i386v.mh (XDEPFILES): Delete.
14461 * config/i386/nbsd.mh (XDEPFILES): Delete.
14462 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14463 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14464 * config/i386/symmetry.mh (XDEPFILES): Delete.
14465 * config/i386/obsd.mh (XDEPFILES): Delete.
14466 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14467 * config/ia64/linux.mh (XDEPFILES): Delete.
14468 * config/ia64/aix.mh (XDEPFILES): Delete.
14469 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14470 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14471 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14472 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14473 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14474 * config/m68k/linux.mh (XDEPFILES): Delete.
14475 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14476 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14477 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14478 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14479 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14480 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14481 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14482 * config/m88k/delta88.mh (XDEPFILES): Delete.
14483 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14484 * config/m88k/m88k.mh (XDEPFILES): Delete.
14485 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14486 * config/mips/linux.mh (XDEPFILES): Delete.
14487 * config/mips/irix6.mh (XDEPFILES): Delete.
14488 * config/mips/irix5.mh (XDEPFILES): Delete.
14489 * config/mips/irix4.mh (XDEPFILES): Delete.
14490 * config/mips/irix3.mh (XDEPFILES): Delete.
14491 * config/mips/decstation.mh (XDEPFILES): Delete.
14492 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14493 (NATDEPFILES): Move core-aout.o to here.
14494 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14495 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14496 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14497 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14498 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14499 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14500 * config/pa/hpux11.mh (XDEPFILES): Delete.
14501 * config/powerpc/aix.mh (XDEPFILES): Delete.
14502 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14503 * config/powerpc/linux.mh (XDEPFILES): Delete.
14504 * config/romp/rtbsd.mh: Rename XDEPFILES.
14505 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14506 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14507 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14508 * config/s390/s390.mh (XDEPFILES): Delete.
14509 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14510 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14511 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14512 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14513 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14514 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14515 * config/sparc/linux.mh (XDEPFILES): Delete.
14516 * config/vax/vaxult.mh (XDEPFILES): Delete.
14517 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14518 * Makefile.in (DEPFILES): Remove XDEPFILES.
14519
14520 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14521
14522 * utils.c (internal_verror): Fix comments, default is yes not no.
14523 Update queries to match. Default to quit and dump core.
14524
14525 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14526
14527 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14528 copyright.
14529 * defs.h, event-top.c, gdbcmd.h: Ditto.
14530 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14531 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14532 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14533 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14534 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14535 * mi/mi-main.c:Ditto.
14536
14537 * stack.c, symfile.c: Update copyright.
14538
14539 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14540
14541 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14542 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14543 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14544 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14545
14546 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14547
14548 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14549 * gdbserver/low-lynx.c (myattach): Likewise.
14550 * gdbserver/low-nbsd.c (myattach): Likewise.
14551 * gdbserver/low-sim.c (myattach): Likewise.
14552 * gdbserver/low-sparc.c (myattach): Likewise.
14553 * gdbserver/low-sun3.c (myattach): Likewise.
14554
14555 * gdbserver/low-linux.c (myattach): New function.
14556
14557 * gdbserver/server.c (attach_inferior): New function.
14558 (main): Handle "--attach".
14559
14560 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14561
14562 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14563 maintainer.
14564
14565 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14566
14567 * c-typeprint.c (is_type_conversion_operator): Add additional
14568 check for non-conversion operators.
14569
14570 2002-01-15 Michael Snyder <msnyder@redhat.com>
14571
14572 * linux-proc.c: Add "info proc" command, a la procfs.c.
14573 (read_mapping): New function, abstract and re-use code.
14574 (linux_find_memory_regions): Use new func read_mapping.
14575 (linux_info_proc_cmd): New function, implement "info proc".
14576 (_initialize_linux_proc): Add new command "info proc".
14577
14578 2002-01-15 Michael Snyder <msnyder@redhat.com>
14579
14580 * symfile.c (generic_load): Use bfd_map_over_sections method
14581 instead of manipulating bfd structure members directly.
14582 (add_section_size_callback): New function, bfd sections callback
14583 used by generic_load.
14584 (load_sections_callback): New function, bfd sections callback
14585 used by generic_load.
14586
14587 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14588
14589 [Based on work by Jim Blandy]
14590 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14591 (builtin_type_vec128): Export.
14592 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14593 types.
14594 (builtin_type_vec128): New builtin type for 128 bit vector
14595 registers.
14596 (build_gdbtypes): Initialize builtin_type_v16qi and
14597 builtin_type_v8hi. Create the vec128 register builtin type
14598 structure.
14599 (build_builtin_type_vec128): New function.
14600 (_initialize_gdbtypes): Register builtin_type_v16qi and
14601 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14602 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14603 AltiVec register to new builtin type.
14604
14605 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14606
14607 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14608 to make_cv_type.
14609
14610 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14611
14612 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14613 CLEAN_UP_REGISTER_VALUE.
14614 * regcache.c (supply_register): Update only call.
14615
14616 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14617
14618 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14619 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14620 a29k-*-vxworks* targets as obsolete.
14621
14622 2002-01-14 Michael Snyder <msnyder@redhat.com>
14623
14624 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14625 until we can resolve portability issues.
14626 * gregset.h: Remove references to fpxregs.
14627 * gcore.c (gcore_command): Initialize note_sec to NULL.
14628
14629 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14630
14631 * signals.c (target_signal_to_name): Rewrite. Only use
14632 signals[].name when in bounds and non-NULL.
14633
14634 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14635
14636 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14637 * signals.c (target_signal_to_name): Verify that SIG is within the
14638 bounds of the signals array.
14639
14640 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14641
14642 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14643
14644 2002-01-13 Keith Seitz <keiths@redhat.com>
14645
14646 * stack.c (print_frame_info_base): Print the frame's pc
14647 only if when print_frame_info_listing_hook is not defined.
14648
14649 2002-01-13 Keith Seitz <keiths@redhat.com>
14650
14651 * varobj.c (varobj_set_value): Make sure that there were no
14652 errors evaluating the object before attempting to set its
14653 value.
14654 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14655 so this offset adjustment is no longer necessary.
14656 (create_child): Don't set the error flag if the child is
14657 a CPLUS_FAKE_CHILD.
14658 (value_of_child): If value_fetch_lazy fails, return NULL
14659 so that callers will be notified that an error occurred.
14660 (c_value_of_variable): Delay check of variable's validity
14661 until later. We actually want all structs and unions to have
14662 the value "{...}".
14663 Do not return "???" for variables which could not be evaluated.
14664 This error condition must be returned to the caller so that it
14665 can get the error condition from gdb.
14666 (cplus_name_of_child): Adjust index for vptr before figuring
14667 out the name of the child.
14668 (cplus_value_of_child): If a child's (real) parent is not valid,
14669 don't even bother trying to give a value for it. Just return
14670 an error. Change all instances in this function.
14671 (cplus_type_of_child): If our parent is one of the "fake"
14672 parents, we need to get at the type of the real parent, and
14673 derive the child's true type using this information.
14674
14675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14676
14677 From 2002-01-09 John Marshall <johnm@falch.net>:
14678 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14679 sources.redhat.com, and tweak some related URLs which had
14680 suffered from linkrot.
14681
14682 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14683
14684 From Jeff law:
14685 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14686 structures passed in registers.
14687
14688 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14689
14690 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14691 white space which prevented compilation. Reported by DSK
14692 <dsk@student.unsw.edu.au>.
14693
14694 2002-01-11 Michael Snyder <msnyder@redhat.com>
14695
14696 * symfile.c (build_section_addr_info_from_section_tab):
14697 Use bfd access method instead of manipulating bfd directly.
14698 (syms_from_objfile): Ditto.
14699 (simple_overlay_update_1): Ditto.
14700 (simple_overlay_update): Ditto.
14701 (generic_load): Ditto.
14702 (overlay_unmapped_address): FIXME comment, bfd access methods.
14703 (sections_overlap): FIXME comment, bfd access methods.
14704 (pc_in_mapped_range): FIXME comment, bfd access methods.
14705 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14706 (section_is_mapped): FIXME comment, bfd access methods.
14707 (section_is_overlay): FIXME comment, bfd access methods.
14708
14709 * symfile.c (generic_load): Whitespace and long line cleanups.
14710 Remove duplicate variable, change several local variables to
14711 more appropriate data types.
14712 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14713
14714 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14715
14716 From Peter Schauer:
14717 * language.c (longest_local_hex_string_custom): Use phex_nz to
14718 convert NUM to a hex string.
14719
14720 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14721
14722 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14723 the function.
14724 Update Copyright year.
14725
14726 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14727
14728 * language.c (longest_raw_hex_string): Delete unused function.
14729
14730 2002-01-11 Petr Sorfa <petrs@caldera.com>
14731
14732 * MAINTAINERS (write-after-approval): Add myself.
14733 * dwarf2read.c (read_tag_string_type): Handling of
14734 DW_AT_byte_size.
14735 (read_tag_string_type): FORTRAN fix to prevent propagation of
14736 first string size.
14737 (set_cu_language): Handling of DW_LANG_Fortran95
14738
14739 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14740
14741 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14742 GETPID(inferior_ptid).
14743 (store_inferior_registers): Likewise.
14744
14745 2002-01-10 Jason Merrill <jason@redhat.com>
14746
14747 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14748 Fix DW_OP_minus.
14749
14750 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14751
14752 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14753 and bfd/elf32-sh-nbsd.c.
14754
14755 2002-01-10 Michael Snyder <msnyder@redhat.com>
14756
14757 * NEWS: Mention --pid and corefile/proc-id behavior change.
14758
14759 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14760 * gcore.c: Include cli/cli-decode.h instead of command.h.
14761
14762 * main.c (captured_main): Add new command line option "--pid".
14763 If the second command line argument (following the symbol-file)
14764 begins with a digit, try to attach to it before trying to open
14765 it as a corefile.
14766 (print_gdb_help): Document the "--pid" argument.
14767
14768 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14769
14770 * completer.c (command_completer): New function.
14771
14772 * completer.h <command_completer>: Add prototype.
14773
14774 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14775 completer for the "help" command.
14776
14777 2002-01-09 Jason Merrill <jason@redhat.com>
14778
14779 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14780
14781 2002-01-09 Michael Snyder <msnyder@redhat.com>
14782
14783 * i386-linux-nat.c (fill_fpxregset): Make global.
14784 (store_fpxregset): Ditto.
14785
14786 * gregset.h (gdb_fpxregset_t): Define.
14787 (supply_fpxregset): Prototype.
14788 (fill_fpxregset): Prototype.
14789
14790 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14791
14792 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14793
14794 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14795 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14796 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14797
14798 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14799
14800 * MAINTAINERS: Update target maintainer rules so that any
14801 Maintainer can approve a tested patch for a maintenance-only
14802 target.
14803
14804 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14805
14806 * MAINTAINERS (write-after-approval): Add myself.
14807
14808 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14809 IN_SIGTRAMP.
14810
14811 2002-01-08 Michael Snyder <msnyder@redhat.com>
14812
14813 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14814 real name of the executable, rather than the /proc name.
14815
14816 2002-01-03 Michael Snyder <msnyder@redhat.com>
14817
14818 Implement a "generate-core-file" command in gdb, save target state.
14819 * gcore.c: New file. Implement new command 'generate-core-file'.
14820 Save a corefile image of the current state of the inferior.
14821 * linux-proc.c: Add linux-specific code for saving corefiles.
14822 * target.h (struct target_ops): Add new target vectors for saving
14823 corefiles; to_find_memory_regions and to_make_corefile_notes.
14824 (target_find_memory_regions): New macro.
14825 (target_make_corefile_notes): New macro.
14826 * target.c (update_current_target): Inherit new target methods.
14827 (dummy_find_memory_regions): New place-holder method.
14828 (dummy_make_corefile_notes): New place-holder method.
14829 (init_dummy_target): Initialize new dummy target vectors.
14830 * exec.c (exec_set_find_memory_regions): New function.
14831 Allow the exec_ops vector for memory regions to be taken over.
14832 (exec_make_note_section): New function, target vector method.
14833 * defs.h (exec_set_find_memory_regions): Export prototype.
14834 * procfs.c (proc_find_memory_regions): New function, corefile method.
14835 (procfs_make_note_section): New function, corefile method.
14836 (init_procfs_ops): Set new target vector pointers.
14837 (find_memory_regions_callback): New function.
14838 (procfs_do_thread_registers): New function.
14839 (procfs_corefile_thread_callback): New function.
14840 * sol-thread.c (sol_find_memory_regions): New function.
14841 (sol_make_note_section): New function.
14842 (init_sol_thread_ops): Initialize new target vectors.
14843 * inftarg.c (inftarg_set_find_memory_regions): New function.
14844 Allow to_find_memory_regions vector to be taken over.
14845 (inftarg_set_make_corefile_notes): New function.
14846 Allow to_make_corefile_notes vector to be taken over.
14847 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14848 interface layer if not target_has_execution (may be a corefile).
14849 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14850 * config/sparc/sun4sol2.mh: Ditto.
14851 * config/alpha/alpha-linux.mh: Ditto.
14852 * config/arm/linux.mh: Ditto.
14853 * config/i386/x86-64linux.mh: Ditto.
14854 * config/ia64/linux.mh: Ditto.
14855 * config/m68k/linux.mh: Ditto.
14856 * config/mips/linux.mh: Ditto.
14857 * config/powerpc/linux.mh: Ditto.
14858 * config/sparc/linux.mh: Ditto.
14859
14860 2002-01-07 Michael Snyder <msnyder@redhat.com>
14861
14862 * arm-linux-nat.c: Remove references to regcache.c internal data
14863 (registers[] and register_valid[]).
14864
14865 2002-01-07 Michael Snyder <msnyder@redhat.com>
14866
14867 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14868 so that attaching to a pid will automatically read the process's
14869 symbol file and shlibs.
14870 * Makefile.in: Add rule for linux-proc.o.
14871 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14872 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14873 * config/arm/linux.mh: Ditto.
14874 * config/i386/linux.mh: Ditto.
14875 * config/i386/x86-64linux.mh: Ditto.
14876 * config/ia64/linux.mh: Ditto.
14877 * config/m68k/linux.mh: Ditto.
14878 * config/mips/linux.mh: Ditto.
14879 * config/powerpc/linux.mh: Ditto.
14880 * config/sparc/linux.mh: Ditto.
14881
14882 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14883
14884 * win32-nat.c: Add i386-tdep.h dependency.
14885
14886 2002-01-07 Michael Snyder <msnyder@redhat.com>
14887
14888 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14889 instead of bfd_get_arch_size. Don't bail out just because
14890 there's no exec_bfd.
14891
14892 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14893 * p-valprint.c (pascal_object_print_value): Ditto.
14894 * somread.c (som_symtab_read): Ditto.
14895 * symfile.c (simple_free_overlay_region_table): Ditto.
14896 * valops.c (value_assign): Ditto.
14897
14898 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14899 use tilde_expand and strerror for opening save-tracepoints file.
14900
14901 * thread-db.c (thread_db_new_objfile): Indendation fix.
14902
14903 * infptrace.c (GDB_MAX_ALLOCA): New define.
14904 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14905 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14906 can be overridden with whatever value is appropriate to the host).
14907 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14908 alloca to allocate potentially large buffer.
14909 * rs6000-nat.c (child_xfer_memory): Ditto.
14910 * symm-nat.c (child_xfer_memory): Ditto.
14911 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14912
14913 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14914
14915 From Nick Clifton <nickc@redhat.com>
14916 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14917
14918 2002-01-07 Michael Snyder <msnyder@redhat.com>
14919
14920 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14921 Don't use exec_bfd if it's NULL.
14922
14923 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14924
14925 * valops.c (value_arg_coerce): Fix formatting.
14926
14927 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14928
14929 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14930 * gnu-nat.c: Ditto.
14931
14932 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14933
14934 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14935 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14936 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14937 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14938 z8k-coff have not been multi-arched. Update z8k-coff build
14939 status.
14940
14941 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14942
14943 * MAINTAINERS: Mark a29k target as obsolete.
14944 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14945 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14946 comments.
14947 * NEWS: Note that a29k targets are obsolete.
14948 * a29k-tdep.c: Mark as obsolete.
14949 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14950 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14951 a29k-*-vxworks* targets as obsolete.
14952 * remote-adapt.c: Obsolete.
14953 * remote-eb.c: Obsolete.
14954 * remote-mm.c: Obsolete.
14955 * remote-udi.c: Obsolete.
14956 * config/a29k/a29k-udi.mt: Obsolete.
14957 * config/a29k/a29k.mt: Obsolete.
14958 * config/a29k/tm-a29k.h: Obsolete.
14959 * config/a29k/tm-vx29k.h: Obsolete.
14960 * config/a29k/vx29k.mt: Obsolete.
14961
14962 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14963
14964 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14965 with BFD_ENDIAN_BIG.
14966
14967 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14968
14969 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14970 * configure, config.in: Re-generate.
14971 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14972 * defs.h: Do not include <endian.h>.
14973
14974 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14975
14976 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14977 * config.in: Regenerate.
14978 * configure.in: Update copyright years.
14979 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14980 * configure: Regenerate.
14981 * i386bsd-nat.c: Update copyright years.
14982 (fill_gregset): Use regcache_collect.
14983 (fetch_inferior_registers): Only fetch integer registers
14984 if requested to do so. Add support for XMM registers
14985 using PT_GETXMMREGS.
14986 (store_inferior_registers): Only store integer registers
14987 if requested to do so. Add support for XMM registers
14988 using PT_SETXMMREGS.
14989 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14990 (store_inferior_registers): Remove.
14991 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14992 (fetch_elfcore_registers): New function.
14993 (i386nbsd_elfcore_fns): New.
14994 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14995 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14996 i386bsd-nat.o.
14997 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14998 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14999 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15000 * config/i386/tm-nbsd.h: Update copyright years.
15001 (HAVE_SSE_REGS): Define.
15002 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15003 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15004 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15005 (SIGCONTEXT_PC_OFFSET): Remove.
15006 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15007
15008 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15009
15010 * configure.tgt: Remove powerpc-*-macos* target.
15011 * config/m68k/xm-mpw.h: Delete file.
15012 * config/xm-mpw.h: Delete file.
15013 * ser-mac.c: Delete file.
15014 * mpw-make.sed: Delete file.
15015 * mpw-config.in: Delete file.
15016 * mac-xdep.c: Delete file.
15017 * mac-gdb.r: Delete file.
15018 * mac-defs.h: Delete file.
15019 * mac-nat.c: Delete file.
15020 * config/powerpc/macos.mh: Delete file.
15021 * config/powerpc/macos.mt: Delete file.
15022 * config/powerpc/nm-macos.h: Delete file.
15023 * config/powerpc/tm-macos.h: Delete file.
15024 * source.c (openp, open_source_file): Remove obsolete code.
15025 * top.c (gdb_readline): Ditto.
15026 * utils.c (query): Ditto.
15027 * event-top.c (display_gdb_prompt): Ditto.
15028 * Makefile.in (ser-mac.o): Delete obsolete target.
15029 * NEWS: Update.
15030
15031 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15032
15033 * defs.h (BIG_ENDIAN): Delete macro definition.
15034 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15035 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15036 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15037 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15038 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15039 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15040 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15041 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15042 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15043 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15044 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15045 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15046 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15047 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15048 * gdbarch.c: Re-generate.
15049
15050 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15051
15052 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15053 for core files.
15054
15055 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15056
15057 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15058
15059 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15060
15061 * value.h (value_ptr): Delete typedef.
15062
15063 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15064
15065 * i386nbsd-nat.c: Update copyright years.
15066 Include i386-tdep.h.
15067
15068 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15069
15070 * stabsread.c: Update copyright years.
15071
15072 From Debashis Mahata <debashis.mahata@wipro.com>:
15073 (read_struct_fields): Deal with Sun C compiler erroneous stab
15074 output for structs and unions.
15075 Fix PR gdb/269.
15076
15077 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15078
15079 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15080 prototype.
15081
15082 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15083
15084 * cp-abi.c: Fix whitespace.
15085 (baseclass_offset): New wrapper function.
15086 * cp-abi.h (baseclass_offset): Add prototype.
15087 (struct cp_abi_ops): Add baseclass_offset pointer.
15088
15089 * valops.c (vb_match): Move to...
15090 * gnu-v2-abi.c (vb_match): here.
15091 * valops.c (baseclass_offset): Move to...
15092 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15093
15094 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15095
15096 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15097 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15098 * hpacc-abi.c (init_hpacc_ops): Likewise.
15099
15100 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15101
15102 * valops.c (find_overload_match): Accept obj as a
15103 reference parameter. Update it before returning.
15104 * value.h (find_overload_match): Update prototype.
15105 * eval.c (evaluate_subexp_standard): Pass object to
15106 find_overload_match by reference.
15107
15108 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15109
15110 * valarith.c: Replace value_ptr with struct value pointer. Remove
15111 register attribute from value declarations.
15112 * valops.c: Ditto.
15113 * value.h: Ditto.
15114 * scm-lang.c (scm_lookup_name): Ditto.
15115
15116 2002-01-03 Michael Snyder <msnyder@redhat.com>
15117
15118 Abstract the functionality of iterating over mapped memory
15119 regions into a general purpose iterator function.
15120 * procfs.c (iterate_over_mappings): New function, general purpose
15121 iterator for memory sections.
15122 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15123 (solib_mappings_callback): New function, callback for above.
15124 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15125 (info_mappings_callback): New function, callback for above.
15126
15127 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15128
15129 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15130
15131 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15132 * i386-tdep.c: Include "elf-bfd.h".
15133 (process_note_abi_tag_sections): New function.
15134 (i386_gdbarch_init): Add code to recognize various OS/ABI
15135 combinations.
15136
15137 * maint.c (_initialize_maint_cmds): Add missing \ in
15138 string-literal.
15139
15140 For older changes see ChangeLog-2001
15141 \f
15142 Local Variables:
15143 mode: change-log
15144 left-margin: 8
15145 fill-column: 74
15146 version-control: never
15147 End:
This page took 0.314588 seconds and 5 git commands to generate.