[ gas/ChangeLog ]
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
287c1a40
MK
12003-01-02 Mark Kettenis <kettenis@gnu.org>
2
06825bd1
MK
3 * configure.in: Rewrite check for GNU regex and the
4 --without-included regex option, and move it into the "Checks for
5 library functions" section. This makes us use the system regex
6 again by default on systems with version 2 of the GNU C library.
7 This was apparently broken.
8 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
9 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10 * config.in, configure: Regenerated.
11
287c1a40
MK
12 * configure.in: Move code that provides the --enable-tui option
13 before the "Checks for libraries" section. Polish the code
14 somewhat and set need_curses to yes if we build the TUI. Rewrite
15 code that looks for a library providing termcap functionality to
16 match more closely what's done in the Readline library, and move
17 it into to the "Checks for libraries" section.
18 * configure: Regenerated.
19 * Makefile.in (TERMCAP): Remove variable.
20 * config/i386/go32.mh (TERMCAP): Remove variable.
21
684e56bf
AC
222003-01-02 Andrew Cagney <ac131313@redhat.com>
23
24 * MAINTAINERS: Mention gdb_mbuild.sh.
25 * gdb_mbuild.sh: Rewrite.
26
e1ea1d75
MK
272003-01-02 Mark Kettenis <kettenis@gnu.org>
28
29 * configure.in: Fix typo in last change.
30 * config.in, configure: Regenerated.
31
1b831c93
AC
322003-01-02 Andrew Cagney <ac131313@redhat.com>
33
34 * valarith.c (value_binop): Delete obsolete code and comments.
35 * configure.host: Ditto.
36 * buildsym.h (make_blockvector): Ditto.
37 * buildsym.c (make_blockvector): Ditto.
38 * defs.h (enum language): Ditto.
39 (chill_demangle): Ditto.
40 * elfread.c (elf_symtab_read): Ditto.
41 * dwarfread.c (CHILL_PRODUCER): Ditto.
42 (set_cu_language): Ditto.
43 (handle_producer): Ditto.
44 * expprint.c (print_subexp): Ditto.
45 * gdbtypes.c (chill_varying_type): Ditto.
46 * gdbtypes.h (builtin_type_chill_bool): Ditto.
47 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
48 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
49 (chill_varying_type): Ditto.
50 * language.h (_LANG_chill): Ditto.
51 * language.c (binop_result_type, integral_type): Ditto.
52 (character_type, string_type, structured_type): Ditto.
53 (lang_bool_type, binop_type_check): Ditto.
54 * stabsread.h (os9k_stabs): Ditto.
55 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
56 (define_symbol, read_type, read_struct_fields): Ditto.
57 (read_array_type, read_enum_type, read_huge_number): Ditto.
58 (read_range_type, start_stabs): Ditto.
59 * symfile.c (init_filename_language_table): Ditto.
60 (add_psymbol_with_dem_name_to_list): Ditto.
61 * symtab.c (symbol_init_language_specific): Ditto.
62 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
63 * symtab.h (struct general_symbol_info): Ditto.
64 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
65 * typeprint.c (typedef_print): Ditto.
66 * utils.c (fprintf_symbol_filtered): Ditto.
67 * valops.c (value_cast, search_struct_field, value_slice): Delete
68 obsolete code.
69 (varying_to_slice): Delete function.
70 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
71 (varying_to_slice): Delete declaration.
72 * MAINTAINERS: Update.
73
8bb2c122
MK
742003-01-02 Mark Kettenis <kettenis@gnu.org>
75
97bf5e38
MK
76 * configure.in: Reorganize "Checks for library functions section"
77 a bit. Remove check for `btowc' and `isascii' functions.
78 * configure: Regenerated.
79
5ee754fc
MK
80 * acconfig.h (_MSE_INT_H): Remove.
81 * configure.in: Create "Checks for header files" section, and move
82 appropriate tests there. Don't check for objlist.h, wchar.h,
83 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
84 misdetection fix. Also add "Checks for types", "Checks for
85 compiler characteristics" and "Checks for library functions"
86 sections.
87 * config.in, configure: Regenerated.
88
8bb2c122
MK
89 * configure.in: Create "Checks for programs" section, and move
90 appropriate tests there.
91
9a156167
MK
922003-01-01 Mark Kettenis <kettenis@gnu.org>
93
94 * configure.in: Create "Checks for libraries" section, and move
95 appropriate tests there. Cleanup check for wctype in libw. Use
96 AC_SEARCH_LIBS to see whether we need libsocket.
97 * configure: Regenerated.
98
3250596b
MK
992002-12-31 Mark Kettenis <kettenis@gnu.org>
100
101 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
102 * config.in, configure: Regenerated.
103
9608ab8b
MK
1042002-12-31 Mark Kettenis <kettenis@gnu.org>
105
106 * gdb_dirent.h: Cleanup and update code to match the example in
107 the Autoconf manual.
108 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
109 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
110 * configure: Regenerated.
111
7ee21aad
AF
1122002-12-30 Adam Fedor <fedor@gnu.org>
113
114 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
115 (yylex): Initialize c to avoid uninitialized warning.
116
4c8eeedd
KH
1172002-12-29 Kazu Hirata <kazu@cs.umass.edu>
118
119 * doc/fdl.texi: Revert the last change.
120
6f2ecac5
MK
1212002-12-29 Mark Kettenis <kettenis@gnu.org>
122
123 * tracepoint.c (ISATTY): Removed.
124
60383d10
JB
1252002-12-26 J. Brobecker <brobecker@gnat.com>
126
127 Continuing work to convert the hppa targets to multiarch partil.
128
129 * hppa-tdep.c: Add some missing forward declarations.
130 (frameless_function_invocation): Prefix the function name
131 by "hppa_" to avoid polluting the namespace. Update all calls
132 to use the new function name.
133 (saved_pc_after_call): Ditto.
134 (init_extra_frame_info): Ditto.
135 (frame_chain): Ditto.
136 (push_dummy_frame): Ditto.
137 (target_read_pc): Ditto.
138 (target_write_pc): Ditto.
139 (in_solib_call_trampoline): Ditto.
140 (in_solib_return_trampoline): Ditto.
141 (skip_trampoline_code): Ditto.
142 (hppa_read_fp): New function, renamed from target_read_fp.
143 (hppa_target_read_fp): New function, using hppa_read_fp.
144 This function conforms to the function profile for the
145 READ_FP gdbarch method.
146 (hppa_extract_struct_value_address): New function, extracted
147 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
148 macro.
149 (hppa_frame_num_args): New function.
150 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
151
152 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
153 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
154 for the switch to multiarch partial.
155 Update some of the macros definitions to match some changes
156 described above in the name of the function they are calling.
157 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
158 not be straightforward to convert. Do now wrap it inside
159 "#if !... #endif" to remember that this macro has still not
160 been taken care of.
161 (FIX_CALL_DUMMY): Likewise.
162
60e1ff27
JB
1632002-12-26 J. Brobecker <brobecker@gnat.com>
164
165 Continuing work to convert the hppa targets to multiarch partial.
166
60383d10 167 * hppa-tdep.c (hppa_register_raw_size): New function replacing
60e1ff27
JB
168 the body of macro REGISTER_RAW_SIZE.
169 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
170 config/pa/tm-hppah.h. These functions will be used to initialize
171 the gdbarch structure.
172 (hppa_hpux_pc_in_sigtramp): New function.
173 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
174 (hppa_hpux_frame_base_before_sigtramp): New function.
175 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
176 Add gdbcore.h #include.
177 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
178 of this gdbarch-eligible macro to a call to the new associated
179 function.
180 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
181 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
182 into a call to the new associated function.
183 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
184 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
185 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
186
6c756a30
DC
1872002-12-24 David Carlton <carlton@math.stanford.edu>
188
189 * config/sparc/tm-sparc.h: Delete duplicate definition of
190 DEPRECATED_PC_IN_CALL_DUMMY.
191
96f026fc
KB
1922002-12-24 Kevin Buettner <kevinb@redhat.com>
193
194 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
195 $(gdb_assert_h).
196 * configure.tgt: Recognize mips64*-*-linux*.
197 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
198 (supply_32_bit_reg): New function.
199 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
200 (fill_gregset): Use regcache_collect() instead of
201 deprecated_registers[].
202 (register_addr): Change name to mips_linux_register_addr().
203 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
204 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
205 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
206 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
207 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
208 (MIPS64_LINUX_JB_PC): New defines.
209 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
210 (mips64_elf_fpregset_t): New typedefs.
211 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
212 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
213 (mips64_linux_register_addr, set_mips_linux_register_addr)
214 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
215 (init_register_addr_data)
216 New functions.
217 (fetch_core_registers): Add support for core file formats with 64-bit
218 registers.
219 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
220 (register_addr_data): New static global variable.
221 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
222 gdbarch_register_osabi() for each MIPS machine.
223 * config/mips/linux64.mt: New file.
224 * config/mips/tm-linux64.h: New file.
225
5a24b7e3
AF
2262002-12-23 Adam Fedor <fedor@gnu.org>
227
228 * maint.c (maintenance_demangle): Add switch to demangle
229 ObjC language symbols as well.
230
9d1127c5
AF
2312002-12-23 Adam Fedor <fedor@gnu.org>
232
233 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
234 last argument from complaint function call.
235
96f026fc 2362002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
237
238 * exec.c (print_section_info): Add FIXME comments regarding format
239 string choices.
240
710686b3
DJ
2412002-12-23 Daniel Jacobowitz <drow@mvista.com>
242
243 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
244 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
245
2462002-12-23 Rodney Brown <rbrown64@csc.com.au>
247
248 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
249
e45febe2
DC
2502002-12-23 David Carlton <carlton@math.stanford.edu>
251
252 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
253 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
254 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
255 information associated to a minsym, not lookup_symbol.
256
2213a65d
MK
2572002-12-21 Mark Kettenis <kettenis@gnu.org>
258
259 * x86-64-tdep.h (x86_64_init_abi): New prototype.
260 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
261 (x86_64_init_abi): Make non-static. Set number of pseudo
262 registers to 0.
263 (x86_64_gdbarch_init): Remove function.
264 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
265 Remove code dealing with dissambly.
266 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
267 (_initialize_x86_64_linux_tdep): New function.
268 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
269 i386-tdep.o.
270
05816f70
MK
2712002-12-14 Mark Kettenis <kettenis@gnu.org>
272
273 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
274 (struct gdb_osabi_handler): Remove member `arch'. Add member
275 `arch_info'.
276 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
277 construct a `struct bfd_arch_info' and store it in the `struct
278 gdb_osabi_handler' that is created.
279 (gdbarch_init_osabi): Check for compatibility based on machine
280 type and architecture.
281 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
282 comment.
283 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
284 second argument in call to gdbarch_register_osabi.
285 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
286 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
287 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
288 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
289 * arm-tdep.c (_initialize_arm_tdep): Likewise.
290 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
291 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
292 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
293 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
294 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
295 * i386-tdep.c (_initialize_i386_tdep): Likewise.
296 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
297 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
298 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
299 _initialize_i386bsd_tdep and updated likewise.
300 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
301 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
302 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
303 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
304 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
305 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
306 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
307 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
308 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
309 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
310
743b930b
KB
3112002-12-20 Kevin Buettner <kevinb@redhat.com>
312
313 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
314 DT_MIPS_RLD_MAP case for 64-bit targets.
315
3758ac48
KB
3162002-12-20 Kevin Buettner <kevinb@redhat.com>
317
318 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
319 ``temp_saved_regs'', not the pointer or other storage contiguous
320 to this pointer.
321
19ed69dd
KB
3222002-12-20 Kevin Buettner <kevinb@redhat.com>
323
324 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
325 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
326 (mips_linux_get_longjmp_target): Delete declarations.
327 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
328 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
329 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
330 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
331 (mips_linux_get_longjmp_target)
332 (mips_linux_svr4_fetch_link_map_offsets): Make static.
333 (mips_linux_init_abi): New function.
334 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
335
7990a578
EZ
3362002-12-19 Keith Seitz <keiths@redhat.com>
337
338 patch committed by Elena Zannoni <ezannoni@redhat.com>
339 * thread.c (do_captured_list_thread_ids): Call prune_threads and
340 target_find_new_threads. Fix for PR mi/669.
341
84fba31b
DC
3422002-12-19 David Carlton <carlton@math.stanford.edu>
343
344 * linespec.c (decode_line_1): Move code into decode_all_digits.
345 (decode_all_digits): New function.
346
2fc70c99
KB
3472002-12-19 Kevin Buettner <kevinb@redhat.com>
348
349 * exec.c (print_section_info): Select a format string to use with
350 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
351
2f107107
AC
3522002-12-18 Andrew Cagney <ac131313@redhat.com>
353
354 * frame.c (deprecated_update_current_frame_pc_hack): Replace
355 deprecated_update_current_frame_pc_hack.
356 (deprecated_update_frame_base_hack): New function.
357 * frame.h (deprecated_update_frame_pc_hack): Replace
358 (deprecated_update_frame_base_hack): Declare.
359 * infrun.c (normal_stop): Update.
360
c9012c71
AC
3612002-12-18 Andrew Cagney <ac131313@redhat.com>
362
363 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
364 frame_extra_info_zalloc.
365 (rs6000_frame_args_address): Use get_frame_extra_info.
366 (frame_get_saved_regs): Use get_frame_saved_regs.
367 (frame_initial_stack_address): Use get_frame_saved_regs and
368 get_frame_extra_info.
369 (frame_initial_stack_address): Use get_frame_extra_info.
370
6819ae38
KB
3712002-12-17 Kevin Buettner <kevinb@redhat.com>
372
373 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
374 array size.
375 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
376 checks for r3900_regnames[].
377
625602f2
RE
3782002-12-17 Richard Earnshaw <rearnsha@arm.com>
379
380 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
381 All uses changed
382 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
383
38d49aff
DC
3842002-12-17 David Carlton <carlton@math.stanford.edu>
385
386 * symtab.c (lookup_partial_symbol): Don't search past the end of
387 the partial symbols.
388
30f7db39
AC
3892002-12-17 Andrew Cagney <ac131313@redhat.com>
390
391 * stack.c (frame_info): Use get_frame_saved_regs.
392 * breakpoint.c (until_break_command): Use get_frame_pc.
393
23136709
KB
3942002-12-16 Kevin Buettner <kevinb@redhat.com>
395
396 * buildsym.c (block_end_complaint, anon_block_end_complaint)
397 (innerblock_complaint, innerblock_anon_complaint)
398 (blockvector_complaint): Delete deprecated complaint structs.
399 (finish_block, make_blockvector, end_symtab): Replace calls
400 to complain() with calls to complaint().
401 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
402 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
403 (unexpected_type_complaint, bad_sclass_complaint)
404 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
405 Delete deprecated complaint structs.
406 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
407 Replace calls to complain() with calls to complaint().
408 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
409 (unknown_symtype_complaint, unknown_symchar_complaint)
410 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
411 (lbrac_mismatch_complaint, repeated_header_complaint)
412 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
413 Delete deprecated complaint structs.
414 (unknown_symtype_complaint, lbrac_mismatch_complaint)
415 (repeated_header_complaint)
416 (function_outside_compiliation_unit_complaint): New functions.
417 (add_old_header_file, find_corresponding_bincl_psymtab)
418 (set_namestring, find_stab_function_addr, read_dbx_symtab)
419 (process_one_symbol): Replace calls to complain() with, possibly
420 indirect, calls to complaint().
421 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
422 (unknown_attribute_form, unknown_attribute_length)
423 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
424 (const_ignored, botched_modified_type, op_deref2, op_deref4)
425 (basereg_not_handled, dup_user_type_allocation)
426 (dup_user_type_definition, missing_tag, bad_array_element_type)
427 (subscript_data_items, unhandled_array_subscript_format)
428 (unknown_array_subscript_format, not_row_major)
429 (missing_at_name): Delete deprecated complaint structs.
430 (bad_die_ref_complaint, unknown_attribute_form_complaint)
431 (dup_user_type_definition_complaint)
432 (bad_array_element_type_complaint): New functions.
433 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
434 (decode_subscript_data_item, dwarf_read_array_type)
435 (read_tag_string_type, read_subroutine_type, read_func_scope)
436 (locval, scan_partial_symbols, decode_modified_type)
437 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
438 (attribute_size): Replace calls to complain() with, possibly
439 indirect, calls to complaint().
440 * elfread.c (section_info_complaint, section_info_dup_complaint)
441 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
442 Delete deprecated complaint structs.
443 (elf_symtab_read, elfstab_offset_sections): Replace calls to
444 complain() with calls to complaint().
445 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
446 struct.
447 (stub_noname_complaint): New function.
448 (check_typedef, add_mangled_type): Replace calls to complain()
449 with calls to complaint().
450 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
451 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
452 (hpread_unhandled_type_complaint, hpread_struct_complaint)
453 (hpread_array_complaint, hpread_type_lookup_complaint)
454 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
455 (hpread_unhandled_common_complaint)
456 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
457 struct definitions and declarations.
458 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
459 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
460 Replace calls to complain() with, possibly indirect, calls to
461 complaint().
462 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
463 Likewise.
464 * mdebugread.c (bad_file_number_complaint, index_complaint)
465 (aux_index_complaint, block_index_complaint)
466 (unknown_ext_complaint, unknown_sym_complaint)
467 (unknown_st_complaint, block_overflow_complaint)
468 (basic_type_complaint, unknown_type_qual_complaint)
469 (array_index_type_complaint, bad_tag_guess_complaint)
470 (block_member_complaint, stEnd_complaint)
471 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
472 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
473 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
474 (bad_continued_complaint, bad_rfd_entry_complaint)
475 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
476 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
477 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
478 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
479 complaint structs.
480 (index_complaint, unknown_ext_complaint, basic_type_complaint)
481 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
482 (unexpected_type_code_complaint)
483 (function_outside_compilation_unit_complaint): New functions.
484 (parse_symbol, parse_type, upgrade_type, parse_procedure)
485 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
486 Replace calls to complain() with, possibly indirect calls to
487 complaint().
488 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
489 Delete deprecated complaint structs.
490 (lookup__objc_class, lookup_child_selector): Replace complain()
491 with complaint().
492 * remote-vx.c (cant_contact_target): Delete deprecated complaint
493 struct.
494 (vx_lookup_symbol): Replace complain() with complaint().
495 * stabsread.c (invalid_cpp_abbrev_complaint)
496 (invalid_cpp_type_complaint, member_fn_complaint)
497 (const_vol_complaint, error_type_complaint)
498 (invalid_member_complaint, range_type_base_complaint)
499 (reg_value_complaint, vtbl_notfound_complaint)
500 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
501 (unresolved_sym_chain_complaint, stabs_general_complaint)
502 (lrs_general_complaint, multiply_defined_struct): Delete
503 deprecated complaint structs.
504 (invalid_cpp_abbrev_complaint, ref_value_complaint)
505 (stabs_general_complaint, lrs_general_complaint)
506 (msg_unknown_complaint): New functions.
507 (dbx_lookup_type, read_cfront_baseclasses)
508 (read_cfront_member_functions, resolve_symbol_reference)
509 (define_symbol, resolve_live_range, add_live_range, read_type)
510 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
511 (read_one_struct_field, read_baseclasses, read_tilde_fields)
512 (read_cfront_static_fields, attach_fields_to_type)
513 (complain_about_struct_wipeout, read_range_type)
514 (common_block_start, common_block_end, cleanup_undefined_types)
515 (scan_file_globals): Replace complain() with complaint().
516 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
517 Delete deprecated complaint struct declarations.
518 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
519 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
520 (bf_not_found_complaint, ef_complaint, eb_complaint)
521 (function_outside_compilation_unit_complaint): New functions.
522 (record_include_begin, record_include_end, enter_line_range)
523 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
524 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
525 complain() with complaint().
526
1a14e234
AC
5272002-12-16 Andrew Cagney <ac131313@redhat.com>
528
529 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
530 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
531 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
532 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
533 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
534 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
535 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
536 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
537 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
538 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
539 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
540 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
541 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
542 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
543 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
544 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
545 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
546 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
547 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
548 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
549 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
550 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
551 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
552 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
553 * config/m88k/xm-dgux.h: Delete.
554 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
555 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
556 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
557 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
558 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
559 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
560 * ch-valprint.c: Delete.
561
04e68871
DJ
5622002-12-15 Daniel Jacobowitz <drow@mvista.com>
563
564 * infrun.c (handle_inferior_event): Rearrange code to resume if
565 no catchpoint triggers for an event.
566
deb3b17b
DJ
5672002-12-15 Daniel Jacobowitz <drow@mvista.com>
568
569 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
570 and TARGET_WAITKIND_VFORKED cases.
571
675bf4cb
DJ
5722002-12-15 Daniel Jacobowitz <drow@mvista.com>
573
574 * infrun.c (handle_inferior_event): Assume that catchpoints
575 are not affected by DECR_PC_AFTER_BREAK.
576
81e56179
DJ
5772002-12-15 Daniel Jacobowitz <drow@mvista.com>
578
579 * target.c (update_current_target): Don't inherit DONT_USE.
580 * target.h (struct target_ops): Remove DONT_USE.
581 (target_next): Remove macro.
582
a3edc55b
MK
5832002-12-15 Mark Kettenis <kettenis@gnu.org>
584
585 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
586
b508a996
RE
5872002-12-14 Richard Earnshaw <rearnsha@arm.com>
588
589 * arm-tdep.c (convert_from_extended): New argument to hold the
590 type of floating point result we want to convert to. Make input
591 argument const. Fix all callers.
592 (convert_to_extended): Similarly.
593 (arm_extract_return_value): Now takes a regcache argument. Change
594 code to use regcache accessor functions. Correctly extract
595 smaller-than-word results on big-endian machines.
596 (arm_store_return_value): Now takes a regcache argument. Change
597 code to use regcache accessor functions. Correctly zero/sign extend
598 smaller than word results before storing into r0.
599 (arm_gdbarch_init): Register new-style extract_return_value and
600 store_return_value functions.
601
3197744f
MS
6022002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
603
604 * thread-db.c (thread_from_lwp): Uniquify error msg.
605 (lwp_from_thread): Ditto.
606 (check_event): Ditto.
607 (find_new_threads_callback): Ditto.
608 (thread_db_pid_to_str): Ditto.
609
6baff1d2
AC
6102002-12-13 Andrew Cagney <ac131313@redhat.com>
611
612 * frame.h (get_frame_saved_regs): Declare.
613 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
614 pointer.
615 * frame.c (get_frame_saved_regs): New function.
616 (frame_saved_regs_zalloc): Return the allocated saved_regs.
617
b87efeee
AC
6182002-12-13 Andrew Cagney <ac131313@redhat.com>
619
620 * frame.c (deprecated_update_current_frame_pc_hack): New
621 function.
622 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
623 * infrun.c (normal_stop): Use said function instead of directly
624 modifying the frame's PC.
625
3de2dc4f
AO
6262002-12-13 Alexandre Oliva <aoliva@redhat.com>
627
628 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
629
fe29b929
KB
6302002-12-13 Kevin Buettner <kevinb@redhat.com>
631
632 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
633 config/mips/tm-irix6.h (NUM_REGS): Delete.
634 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
635 (temp_saved_regs): Declare as a pointer rather than an array.
636 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
637 that ``temp_saved_regs'' has storage allocated to it and that
638 it's the correct size.
639
c04e0a08
JJ
6402002-12-13 Jeff Johnston <jjohnstn@redhat.com>
641
642 * defs.h (init_last_source_visited): New prototype.
643 (add_path): Ditto.
644 * source.c (add_path): New function that adds to a specified path.
645 (mod_path): Change to call add_path.
646 (init_last_source_visited): New function to allow interfaces to
647 initialize static variable: last_source_visited. Part of fix
648 for PR gdb/741.
649 * Makefile.in: Add support for mi/mi-cmd-env.c.
650
c689142b
AC
6512002-12-13 Andrew Cagney <ac131313@redhat.com>
652
653 * frame.h (frame_id_unwind): Declare.
654 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
655 id_unwind_cache.
656 (frame_id_unwind_ftype): Declare.
657 * frame.c (frame_id_unwind): New function.
658 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
659 (create_new_frame, get_prev_frame): Pass id_unwind to
660 set_unwind_by_pc.
661 (frame_saved_regs_id_unwind): New function.
662 (frame_saved_regs_id_unwind): New function.
663 * dummy-frame.c (dummy_frame_id_unwind): New function.
664 (struct dummy_frame): Add field id.
665 (generic_push_dummy_frame): Initialize `id'.
666 * dummy-frame.h (dummy_frame_id_unwind): Declare.
667
18ea5ba4
AC
6682002-12-13 Andrew Cagney <ac131313@redhat.com>
669
670 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
671 pass that to set_momentary_breakpoint. Move comments to where they
672 belong.
673 * frame.h (set_current_frame): Delete declaration.
674 * frame.c (set_current_frame): Delete function.
675
2c517d0e
AC
6762002-12-13 Andrew Cagney <ac131313@redhat.com>
677
678 * frame.c (frame_extra_info_zalloc): New function.
679 * frame.h (frame_extra_info_zalloc): Declare.
680
516b1f28
JB
6812002-12-13 Joel Brobecker <brobecker@gnat.com>
682
683 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
684 in the previous prototype change to set_momentary_breakpoint.
685
fbb265fc
DJ
6862002-12-12 Daniel Jacobowitz <drow@mvista.com>
687
688 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
689 and saw_child_exec.
690 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
691 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
692 (stop_stepping): Remove outdated check for child vfork events.
693
4fd7f624
AC
6942002-12-12 Andrew Cagney <ac131313@redhat.com>
695
696 * GDB 5.3 released from gdb_5_3-branch.
697
4c9ba7e0
DJ
6982002-12-11 Daniel Jacobowitz <drow@mvista.com>
699
700 * corelow.c (init_core_ops): Delete references to to_require_attach
701 and to_require_detach.
702 * exec.c (init_exec_ops): Likewise.
703 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
704 hppa_require_detach directly.
705 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
706 * inftarg.c (child_detach): Remove.
707 (child_detach_from_process): Rename to child_detach, remove
708 after_fork argument.
709 (child_attach): Remove.
710 (child_attach_to_process): Rename to child_attach, remove after_fork
711 argument.
712 (init_child_ops): Delete references to to_require_attach
713 and to_require_detach.
714 * infttrace.c (hppa_require_attach): Update comment.
715 * target.c (cleanup_target, update_current_target)
716 (init_dummy_target, setup_target_debug): Delete references to
717 to_require_attach and to_require_detach.
718 (find_default_require_detach, find_default_require_attach)
719 (debug_to_require_attach, debug_to_require_detach): Remove
720 functions.
721 * target.h (struct target_ops): Remove to_require_attach
722 and to_require_detach.
723 (target_require_attach, target_require_detach): Delete macros.
724 (find_default_require_detach, find_default_require_attach): Delete
725 prototypes.
726 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
727
0394eb2a
AC
7282002-12-11 Andrew Cagney <ac131313@redhat.com>
729
730 * frame.c (get_frame_extra_info): New function.
731 * frame.h (get_frame_extra_info): Declare.
732
818dd999
AC
7332002-12-11 Andrew Cagney <ac131313@redhat.com>
734
735 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
736 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
737 with `struct frame_id'.
738 (set_longjmp_resume_breakpoint): Ditto.
739 * infrun.c (handle_inferior_event): Update.
740 * breakpoint.c (watch_command_1, until_break_command): Update.
741 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
742 (handle_inferior_event, step_over_function): Update.
743 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
744 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
745 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
746 * infcmd.c (finish_command, run_stack_dummy): Update.
747
4d3c2250
KB
7482002-12-11 Kevin Buettner <kevinb@redhat.com>
749
750 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
751 (dwarf2_non_const_array_bound_ignored)
752 (dwarf2_missing_line_number_section)
753 (dwarf2_statement_list_fits_in_line_number_section)
754 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
755 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
756 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
757 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
758 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
759 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
760 (dwarf2_missing_member_fn_type_complaint)
761 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
762 (dwarf2_const_value_length_mismatch)
763 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
764 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
765 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
766 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
767 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
768 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
769 complaints using deprecated struct..
770 (dwarf2_non_const_array_bound_ignored_complaint)
771 (dwarf2_complex_location_expr_complaint)
772 (dwarf2_unsupported_at_frame_base_complaint)
773 (dwarf2_const_value_length_mismatch_complaint)
774 (dwarf2_macros_too_long_complaint)
775 (dwarf2_macro_malformed_definition_complaint)
776 (dwarf2_invalid_attrib_class_complaint): New functions.
777 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
778 (read_structure_scope, read_array_type, read_common_block)
779 (read_tag_pointer_type, read_base_type, read_partial_die)
780 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
781 (new_symbol, dwarf2_const_value, read_type_die)
782 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
783 (parse_macro_definition, dwarf_decode_macros): Replace calls to
784 complain() with, possibly indirect, calls to complaint().
785
95486978
AC
7862002-12-11 Andrew Cagney <cagney@redhat.com>
787
788 * frame.c (deprecated_get_frame_saved_regs): Rename
789 get_frame_saved_regs.
790 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
791 * sparc-tdep.c: Update.
792 * hppa-tdep.c: Update.
793 * h8500-tdep.c: Update.
794
321432c0
KB
7952002-12-11 Kevin Buettner <kevinb@redhat.com>
796
797 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
798 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
799 ``char *'' for return and parameter types.
800 * gdbarch.h, gdbarch.c: Regenerate.
801 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
802 return type from ``char *'' to ``const char *''.
803 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
804 const.
805
5a4d6ff4
MK
8062002-12-11 Mark Kettenis <kettenis@gnu.org>
807
808 * i386-tdep.c: Include "dummy-frame.h".
809 (i386_frame_chain, i386_frame_saved_pc): Replace
810 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
811 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
812
a5afb99f
AC
8132002-12-10 Andrew Cagney <cagney@redhat.com>
814
815 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
816 Change to a function with predicate.
817 * gdbarch.h, gdbarch.c: Re-generate.
818 * frame.c (get_prev_frame): Update. Test
819 DEPRECATED_INIT_FRAME_PC_P.
820 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
821 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
822 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
823 * alpha-tdep.c (alpha_gdbarch_init): Update.
824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
825 * mips-tdep.c (mips_gdbarch_init): Update.
826 * i386-interix-tdep.c (i386_interix_init_abi): Update.
827 * arm-tdep.c: Update comments.
828 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
829 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
830 * frv-tdep.c (frv_gdbarch_init): Ditto.
831 * x86-64-tdep.c (x86_64_init_abi): Ditto.
832 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
833 * s390-tdep.c (s390_gdbarch_init): Ditto.
834 * v850-tdep.c (v850_gdbarch_init): Ditto.
835 * vax-tdep.c (vax_gdbarch_init): Ditto.
836 * sh-tdep.c (sh_gdbarch_init): Ditto.
837 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
838 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
839 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
840 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
841 * i386-tdep.c (i386_gdbarch_init): Ditto.
842 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
843 * cris-tdep.c (cris_gdbarch_init): Ditto.
844 * avr-tdep.c (avr_gdbarch_init): Ditto.
845 * arm-tdep.c (arm_gdbarch_init): Ditto.
846 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
847 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
848
6604731b
DJ
8492002-12-10 Daniel Jacobowitz <drow@mvista.com>
850
851 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
852 CHILD_FOLLOW_FORK.
853 * hppah-nat.c (saved_vfork_pid): Add.
854 (child_post_follow_vfork): Remove.
855 (child_follow_fork): New function.
856 (child_wait): Call detach_breakpoints after receiving the child vfork.
857 Call child_resume directly instead of going through resume ().
858 Make sure we have the exec before reporting the vfork.
859 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
860 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
861 (follow_fork): New function. Call target_follow_fork.
862 (follow_inferior_reset_breakpoints): New function broken out from
863 old follow_inferior_fork.
864 (resume): Remove hack to follow exec after vfork.
865 * inftarg.c (child_post_follow_vfork): Remove.
866 (child_follow_fork): New function.
867 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
868 * target.c (cleanup_target): Replace to_post_follow_vfork with
869 to_follow_fork.
870 (update_current_target): Likewise.
871 (setup_target_debug): Likewise.
872 (debug_to_post_follow_vfork): Remove.
873 (debug_to_follow_fork): New function.
874 * target.h (struct target_ops): Replace to_post_folow_vfork with
875 to_follow_fork.
876 (child_post_follow_vfork): Remove prototype.
877 (child_follow_fork): Add prototype.
878 (target_post_follow_vfork): Remove macro.
879 (target_follow_fork): Add macro.
880
7d2830a3
DJ
8812002-12-10 Daniel Jacobowitz <drow@mvista.com>
882
883 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
884 (child_post_follow_vfork): Cancel pending exec event if we follow
885 the parent.
886 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
887 events have been processed. Return a fake TARGET_WAITKIND_EXECD
888 event at the following wait call if necessary.
889 * infrun.c (follow_vfork): Don't follow_exec here.
890 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
891 case about HP/UX 10.20. Remove code pushed down to
892 hppah-nat.c:child_wait.
893 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
894 vfork_in_flight is set.
895
8962002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
897
898 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
899 for the parent's fork event.
900 * infrun.c (handle_inferior_event): Only expect one fork event.
901 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
902 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
903
50631d4f
AC
9042002-12-10 Andrew Cagney <ac131313@redhat.com>
905
bc124bd3
AC
906 * PROBLEMS: Delete reference to PR gdb/725.
907
50631d4f
AC
908 * MAINTAINERS (gdb.c++): Add David Carlton.
909
808013d1
DC
9102002-12-09 David Carlton <carlton@math.stanford.edu>
911
912 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
913 * cli/cli-cmds.c: Ditto.
914
31deffe5
AC
9152002-12-09 Andrew Cagney <cagney@redhat.com>
916
6cbda714
AC
917 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
918 function address in <>.
31deffe5
AC
919 * gdbarch.c: Re-generate.
920
2692ddb3
DC
9212002-12-09 David Carlton <carlton@math.stanford.edu>
922
923 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
924
f3c39e76
DC
9252002-12-09 David Carlton <carlton@math.stanford.edu>
926
927 * linespec.c (symtab_from_filename): New function.
928 (decode_line_1): Move code into symtab_from_filename.
929
1b84163e
KB
9302002-12-09 Kevin Buettner <kevinb@redhat.com>
931
932 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
933
bdd78e62
AC
9342002-12-07 Andrew Cagney <ac131313@redhat.com>
935
936 * f-valprint.c (info_common_command): Use get_frame_pc.
937 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
938 * ax-gdb.c (agent_command): Ditto.
939 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
940 (rs6000_pop_frame): Ditto.
941 (rs6000_frameless_function_invocation): Ditto.
942 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
943 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
944 * macroscope.c (default_macro_scope): Ditto.
945 * stack.c (print_frame_info_base): Ditto.
946 (print_frame, frame_info, print_frame_label_vars): Ditto.
947 (return_command, func_command, get_frame_language): Ditto.
948 * infcmd.c (finish_command): Ditto.
949 * dummy-frame.c (cached_find_dummy_frame): Ditto.
950 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
951 (break_at_finish_at_depth_command_1): Ditto.
952 (break_at_finish_command_1): Ditto.
953 (until_break_command, get_catch_sals): Ditto.
954 * blockframe.c (func_frame_chain_valid): Ditto.
955 (frameless_look_for_prologue): Ditto.
956 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
957
408400e7
AC
9582002-12-08 Andrew Cagney <ac131313@redhat.com>
959
960 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
961 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
962
97f46953
AC
9632002-12-08 Andrew Cagney <ac131313@redhat.com>
964
965 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
966 to pure functions.
967 * gdbarch.h, gdbarch.c: Re-generate.
968 * frame.c (get_prev_frame): Explictly assign prev's pc with value
969 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
970
971 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
972 declaration to a function returning a CORE_ADDR.
973 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
974 * arch-utils.c (init_frame_pc_noop): Return the PC value.
975 (init_frame_pc_default): Ditto.
976 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
977 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
978 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
979 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
980 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
981 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
982
983 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
984 to init_frame_pc_noop.
985 (i386_interix_init_frame_pc): Delete function.
986 * z8k-tdep.c (init_frame_pc): Delete function.
987 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
988 (INIT_FRAME_PC_FIRST): Ditto.
989 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
990 (INIT_FRAME_PC_FIRST): Ditto.
991 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
992 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
993 init_frame_pc_noop.
994 (INIT_FRAME_PC_FIRST): Convert to an expression.
995 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
996
8b36eed8
AC
9972002-12-08 Andrew Cagney <ac131313@redhat.com>
998
999 * blockframe.c: Use get_frame_base instead of directly accessing
1000 the `struct frame_info' member frame.
1001 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1002 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1003
aeeccc89
EZ
10042002-12-08 Elena Zannoni <ezannoni@redhat.com>
1005
1006 * Makefile.in (readline_h): Define.
1007 (completer.o): Depend on readline_h.
1008 (corelow.o): Ditto.
1009 (event-top.o): Ditto.
1010 (exec.o): Ditto.
1011 (solib.o): Ditto.
1012 (source.o): Ditto.
1013 (symfile.o): Ditto.
1014 (symmisc.o): Ditto.
1015 (top.o): Ditto.
1016 (tracepoint.o): Ditto.
1017 (utils.o): Ditto.
1018 (cli-dump.o): Ditto.
1019 (tui-hooks.o): Ditto.
1020 (tuiWin.o): Ditto.
1021
38017ce8
EZ
10222002-12-08 Elena Zannoni <ezannoni@redhat.com>
1023
1024 More cleanup from import of readline 4.3.
1025 * completer.h (complete_line, readline_line_completion_function):
1026 Update prototypes.
1027 (line_completion_function): Removed, not used outside of completer.c.
1028 * completer.c (readline_line_completion_function,
1029 complete_function, line_completion_function): Use const for first
1030 parameter.
1031 (line_completion_function): Make static.
1032 (filename_completer): filename_completion_function is now called
1033 rl_filename_completion_function
1034 * corelow.c: Include <readline/readline.h>.
1035 * exec.c: Ditto.
1036 * solib.c: Ditto.
1037 * source.c: Ditto.
1038 * symfile.c: Ditto.
1039 * symmisc.c: Ditto.
1040 * top.c (init_main): No need to coerce
1041 readline_line_completion_function anymore.
1042 * cli/cli-dump.c: Include <readline/readline.h>.
1043
75e3c1f9
AC
10442002-12-08 Andrew Cagney <ac131313@redhat.com>
1045
1046 * stack.c (frame_info): Use get_prev_frame.
1047 * blockframe.c (frame_address_in_block): Ditto.
1048 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1049 (rs6000_frameless_function_invocation): Ditto.
1050 (rs6000_frame_saved_pc): Ditto.
1051 (rs6000_frame_chain): Ditto.
1052 * arch-utils.c (init_frame_pc_default): Ditto.
1053
0d2b8049
AC
10542002-12-08 Andrew Cagney <ac131313@redhat.com>
1055
1056 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1057 Delete redundant definition.
1058
9255ee31
EZ
10592002-12-08 Elena Zannoni <ezannoni@redhat.com>
1060
1061 Import of readline 4.3:
1062 * cli/cli-cmds.c: Include readline/tilde.h.
1063 * cli/cli-setshow.c: Ditto.
1064 * defs.h: Don't declare tilde_expand anymore, since readline
1065 exports it.
1066
3442dad6 10672002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
1068
1069 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1070 -Werror on this file.
1071
52f87c51
AC
10722002-12-07 Andrew Cagney <ac131313@redhat.com>
1073
1074 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1075 the format name.
1076 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1077 * gdbarch.c: Regenerate.
1078
2ca6c561
AC
10792002-12-06 Andrew Cagney <ac131313@redhat.com>
1080
1081 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1082 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1083 provide a default value.
1084 * gdbarch.h, gdbarch.c: Regenerate.
1085 * frame.c (get_prev_frame): Update. Check
1086 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1087 * s390-tdep.c (s390_gdbarch_init): Update.
1088 * mips-tdep.c (mips_gdbarch_init): Update.
1089 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1090 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1091 * alpha-tdep.c (alpha_gdbarch_init): Update.
1092
e162d11b
EZ
10932002-12-06 Elena Zannoni <ezannoni@redhat.com>
1094
1095 * ia64-linux-nat.c: Include gdb_string.h.
1096 * alpha-nat.c: Ditto.
2b298b5d
EZ
1097 * ppc-linux-nat.c: Ditto.
1098 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1099 Update dependencies.
e162d11b 1100
aa0cd9c1
AC
11012002-12-05 Andrew Cagney <ac131313@redhat.com>
1102
1103 * gdbthread.h: Include "frame.h".
1104 (struct thread_info): Replace step_frame_address with
1105 step_frame_id.
1106 * inferior.h: Include "frame.h".
1107 (step_frame_id): Replace external variable step_frame_address.
1108 * gdbthread.h (save_infrun_state): Replace step_frame_address
1109 parameter with step_frame_id parameter.
1110 (load_infrun_state): Ditto.
1111 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1112 * infcmd.c (step_frame_id, step_1, step_once): Update.
1113 * thread.c (load_infrun_state, save_infrun_state): Update.
1114 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1115 (handle_inferior_event, step_over_function): Update.
1116 (normal_stop, context_switch, restore_inferior_status): Update.
1117 (struct inferior_status): Replace step_frame_address with
1118 step_frame_id.
1119
a9a9bd0f
DC
11202002-12-05 David Carlton <carlton@math.stanford.edu>
1121
1122 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1123 DW_TAG_member as well as a declaration as being a C++ static data
1124 member.
1125 (read_structure_scope): Combine tests for DW_TAG_member and
1126 DW_TAG_variable.
1127
614b3b14
DC
11282002-12-05 David Carlton <carlton@math.stanford.edu>
1129
1130 * linespec.c (decode_compound): New function.
1131 (decode_line_1): Move code into decode_compound.
1132
e4051eeb
DC
11332002-12-05 David Carlton <carlton@math.stanford.edu>
1134
1135 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1136 argument.
1137 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1138 the static block. See PR gdb/804.
1139
f61e8913
DC
11402002-12-05 David Carlton <carlton@math.stanford.edu>
1141
1142 * symtab.c (lookup_symbol_aux_block): New function.
1143 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1144
1e9f55d0
AC
11452002-12-05 Andrew Cagney <ac131313@redhat.com>
1146
1147 * gdbarch.sh: Dump the predicate function and macro values.
1148 (read): Print error on standard error.
1149 * gdbarch.c: Regenerate.
1150
d1973055
KB
11512002-12-04 Kevin Buettner <kevinb@redhat.com>
1152
1153 * Makefile.in (mips_tdep_h): Define.
1154 (mips-tdep.o): Add mips_tdep_h to dependency list.
1155 * mips-tdep.h: New file.
1156 * mips-tdep.c (mips-tdep.h): Include.
1157 (enum mips_abi): Move to mips-tdep.h.
1158 (mips_abi): New function.
1159
f1253c7b
DC
11602002-12-04 David Carlton <carlton@math.stanford.edu>
1161
1162 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1163
406bc4de
DC
11642002-12-04 David Carlton <carlton@math.stanford.edu>
1165
1166 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1167 function.
1168 (lookup_symbol_aux_minsyms): New function.
1169
2a3750c5
JB
11702002-12-04 J. Brobecker <brobecker@gnat.com>
1171
1172 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1173
961d8652
JB
11742002-12-04 J. Brobecker <brobecker@gnat.com>
1175
1176 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1177 which is an obsolete macro name.
1178
38c52d5a
DJ
11792002-12-04 Daniel Jacobowitz <drow@mvista.com>
1180
1181 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1182 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1183
d8ef46f5
DJ
11842002-12-03 H.J. Lu (hjl@gnu.org)
1185
1186 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1187 (create_breakpoints): Make sure the addr_string field is not
1188 NULL.
1189
02ae7771
AC
11902002-12-03 Andrew Cagney <ac131313@redhat.com>
1191
1192 * sparc-nat.c (fetch_inferior_registers)
1193 (store_inferior_registers): Add comment on problem of LWP vs
1194 threads.
1195
1196 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1197 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1198 (lin_lwp_store_registers): Remove.
1199 (init_lin_lwp_ops): Use fetch_inferior_registers
1200 and store_inferior_registers directly.
1201 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1202 (store_inferior_registers): Likewise.
1203 Fix PR gdb/725.
1204
7a424e99
AC
12052002-12-03 Andrew Cagney <ac131313@redhat.com>
1206
1207 * frame.h (get_frame_id): Convert to a function.
1208 (null_frame_id, frame_id_p): Declare.
1209 (frame_id_eq, frame_id_inner): Declare.
1210 (frame_id_build): New function.
1211 * frame.c (get_frame_id): Update. Use null_frame_id.
1212 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1213 frame_id_inner.
1214 (null_frame_id, frame_id_p): Define.
1215 (frame_id_eq, frame_id_inner): Define.
1216 (frame_id_build): New function.
1217 * varobj.c (varobj_create): Update.
1218 (varobj_update): Update.
1219 * valops.c (value_assign): Update.
1220 (new_root_variable): Update.
1221 * infrun.c (save_inferior_status): Update.
1222 * breakpoint.c (watch_command_1): Update.
1223
891c7f5f
JB
12242002-12-03 J. Brobecker <brobecker@gnat.com>
1225
1226 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1227 (SNAP2): Likewise.
1228
144da3c1
AC
12292002-12-03 Andrew Cagney <cagney@redhat.com>
1230
46248966
AC
1231 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1232 patch.
1233
144da3c1
AC
1234 * PROBLEMS: Mention PR gdb/725.
1235
03c6228e
AS
12362002-12-03 Andreas Schwab <schwab@suse.de>
1237
1238 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1239
36e53c63
AF
12402002-12-02 Adam Fedor <fedor@gnu.org>
1241 Klee Dienes <kdienes@apple.com>
1242
1243 * objc-lang.c (objc_printstr): Add width arg to match
1244 printstr prototype.
1245 (compare_selectors): Add 'const' to arg types.
1246 (compare_classes): Likewise.
1247 (find_imps): Cast msym pointer to avoid compiler warning.
1248 (print_object_command): Validate the address before
1249 passing it to the print routine.
1250 (find_objc_msgcall_submethod): Change function argument to
1251 return an int.
1252 * objc-lang.h: Add 'extern' to all function declarations.
1253 (value_nsstring): Add declaration.
1254
504d5c7e
JB
12552002-12-02 J. Brobecker <brobecker@gnat.com>
1256
1257 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1258 Fixes a build failure on HP/UX.
1259
1260 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1261 failure on HP/UX.
1262 (hpread_has_name): Advance declaration to avoid a compilation warning.
1263 (pst_syms_count): Add missing variable type. By change, the compiler
1264 was defaulting to int, which seems a good choice. Fixes a compilation
1265 warning.
1266 (pst_syms_size): Likewise.
1267
59623e27
JB
12682002-12-02 J. Brobecker <brobecker@gnat.com>
1269
1270 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1271 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1272 later to set the proper gdbarch methods depending on the osabi.
1273 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1274
a09a320d
JB
12752002-12-02 J. Brobecker <brobecker@gnat.com>
1276
1277 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1278 * osabi.c (gdb_osabi_name): Add strings images for the two new
1279 enum values.
1280 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1281
8a81a99e
AC
12822002-12-02 Andrew Cagney <ac131313@redhat.com>
1283
1284 * MAINTAINERS (Java): Global maintainers are responible for Java.
1285 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1286 part Java maintainers.
1287
7af35dad
JB
12882002-12-02 J. Brobecker <brobecker@gnat.com>
1289
1290 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1291 Fixes a compilation failure on AiX.
1292
f4ede9bc
JB
12932002-12-02 J. Brobecker <brobecker@gnat.com>
1294
1295 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1296 why aix-thread.o is not listed.
1297
ae45cd16
AC
12982002-12-01 Andrew Cagney <ac131313@redhat.com>
1299
1300 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1301 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1302 * gdbarch.h, gdbarch.c: Re-generate.
1303 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1304 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1305 * config/pa/tm-hppa.h, frame.h: Update.
1306 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1307 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1308 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1309 * cris-tdep.c, alpha-tdep.c: Update.
1310 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1311 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1312 (get_prev_frame): Ditto.
1313
020cc13c
AC
13142002-11-30 Andrew Cagney <cagney@redhat.com>
1315
1316 * exec.c (xfer_memory): Replace boolean with int.
1317 * p-exp.y: Use 0 instead of false.
1318 * corelow.c (gdb_check_format): Change return type to int from
1319 boolean.
1320 * utils.c: Don't include <curses.h> or <term.h> first.
1321
1d9b2aa8
SC
13222002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1323
1324 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1325 (m68hc11_register_byte): Remove.
1326 (m68hc11_gdbarch_init): Don't set the above.
1327
a193e397
AC
13282002-11-29 Andrew Cagney <cagney@redhat.com>
1329
1330 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1331 by calling get_selected_frame.
1332 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1333 set_current_frame, create_new_frame, select_frame and
1334 get_current_frame.
1335 * remote-e7000.c (e7000_start_remote): Ditto.
1336 * remote-mips.c (common_open): Ditto
1337 * remote-rdp.c (remote_rdp_open): Ditto.
1338
b5fc49aa
AS
13392002-11-29 Andreas Schwab <schwab@suse.de>
1340
1341 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1342 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1343 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1344 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1345 read_memory_unsigned_integer instead of read_memory_integer when
1346 dealing with addresses and instruction opcodes.
1347 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1348 (m68k_linux_frame_saved_pc): Likewise.
1349
6e7f8b9c
AC
13502002-11-29 Andrew Cagney <ac131313@redhat.com>
1351
1352 * stack.c (selected_frame, select_frame): Move from here ...
1353 * frame.c (selected_frame, select_frame): ... to here. Include
1354 "language.h".
1355 * Makefile.in (frame.o): Update dependencies.
1356 * frame.c (get_selected_frame): New function.
1357 * frame.h (get_selected_frame): Declare.
1358 (deprecated_selected_frame): Rename selected_frame.
1359 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1360 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1361 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1362 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1363 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1364 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1365 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1366 * z8k-tdep.c, cli/cli-cmds.c: Update.
1367
805e2818
AC
13682002-11-29 Andrew Cagney <ac131313@redhat.com>
1369
1370 * frame.h (get_selected_block): Add comments.
1371
1058bca7
AC
13722002-11-28 Andrew Cagney <ac131313@redhat.com>
1373
1374 * frame.c (pc_notcurrent): New function.
1375 (find_frame_sal): New function.
1376 * frame.h (find_frame_sal): Declare.
1377 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1378 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1379 find_pc_line.
1058bca7
AC
1380 (frame_info): Ditto.
1381 * ada-lang.c (find_printable_frame): Ditto.
1382
d92419e5
JB
13832002-11-28 J. Brobecker <brobecker@gnat.com>
1384
1385 * configure.in: Check that the pthdebug library is recent enough
1386 before enabling thread support on native AiX.
1387 * configure: Regenerate.
1388
1389 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1390 from the list of object files as it is now appended by configure
1391 if thread support is enabled.
1392 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1393 if thread support is enabled.
1394
8c69fc49
AC
13952002-11-28 Andrew Cagney <cagney@redhat.com>
1396
1397 * stack.c (get_selected_block): In-line get_current_block.
1398 * frame.h (get_current_block): Delete declaration.
1399 * blockframe.c (get_current_block): Delete function.
1400
07555a72
AC
14012002-11-28 Andrew Cagney <ac131313@redhat.com>
1402
1403 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1404 USE_GENERIC_DUMMY_FRAMES.
1405 * gdbarch.h, gdbarch.c: Regenerate.
1406 * valops.c, frame.c: Update.
1407 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1408 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1409 * config/pa/tm-hppa.h, blockframe.c: Update.
1410 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1411 * m68k-tdep.c, alpha-tdep.c: Ditto.
1412
1413 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1414 * mips-tdep.c: Ditto.
1415
b99fa2d2
AC
14162002-11-27 Andrew Cagney <ac131313@redhat.com>
1417
1418 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1419 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1420 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1421 * gdbarch.c, gdbarch.h: Re-generate.
1422 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1423 (CALL_DUMMY_LOCATION): Delete macro definition.
1424 (PC_IN_CALL_DUMMY): Delete macro definitions.
1425
1426 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1427 default is already generic_pc_in_call_dummy.
1428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1429 * v850-tdep.c (v850_gdbarch_init): Ditto.
1430 * sh-tdep.c (sh_gdbarch_init): Ditto.
1431 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1432 * mips-tdep.c (mips_gdbarch_init): Ditto.
1433 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1434 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1435 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1436 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1437 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1438 * avr-tdep.c (avr_gdbarch_init): Ditto.
1439
1440 * arm-tdep.c (arm_gdbarch_init): Do not set
1441 use_generic_dummy_frames, default is already 1.
1442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1443 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1444 * v850-tdep.c (v850_gdbarch_init): Ditto.
1445 * sh-tdep.c (sh_gdbarch_init): Ditto.
1446 * s390-tdep.c (s390_gdbarch_init): Ditto.
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1449 * mips-tdep.c (mips_gdbarch_init): Ditto.
1450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1453 * i386-tdep.c (i386_gdbarch_init): Ditto.
1454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1455 * frv-tdep.c (frv_gdbarch_init): Ditto.
1456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1457 * cris-tdep.c (cris_gdbarch_init): Ditto.
1458 * avr-tdep.c (avr_gdbarch_init): Ditto.
1459
1460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1461 call_dummy_location, default is already AT_ENTRY_POINT.
1462 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1463 * v850-tdep.c (v850_gdbarch_init): Ditto.
1464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1465 * sh-tdep.c (sh_gdbarch_init): Ditto.
1466 * s390-tdep.c (s390_gdbarch_init): Ditto.
1467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1468 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1469 * mips-tdep.c (mips_gdbarch_init): Ditto.
1470 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1473 * i386-tdep.c (i386_gdbarch_init): Ditto.
1474 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1475 * frv-tdep.c (frv_gdbarch_init): Ditto.
1476 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1477 * cris-tdep.c (cris_gdbarch_init): Ditto.
1478 * avr-tdep.c (avr_gdbarch_init): Ditto.
1479 * arm-tdep.c (arm_gdbarch_init): Ditto.
1480 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1481
abc0af47
AC
14822002-11-28 Andrew Cagney <cagney@redhat.com>
1483
1484 * frame.h: Update comments on set_current_frame, create_new_frame,
1485 flush_cached_frames, reinit_frame_cache, select_frame and
1486 selected_frame.
1487
ed5cedc5
AC
14882002-11-27 Andrew Cagney <cagney@redhat.com>
1489
1490 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1491 deprecated pc_in_call_dummy function.
1492 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1493 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1494 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1495 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1496 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1497
b2a1bd4f
MH
14982002-11-26 Martin M. Hunt <hunt@redhat.com>
1499
1500 * Makefile.in: Remove Tix dependencies.
1501 * acinclude.m4: Ditto.
1502 * aclocal.m4: Ditto.
1503 * configure.in: Ditto.
1504 * configure: Regenerated.
1505
f09cffaa
AC
15062002-11-26 Andrew Cagney <ac131313@redhat.com>
1507
1508 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1509 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1510 * gdbarch.c: Re-generate.
1511
e92b0cc9
AC
15122002-11-26 Andrew Cagney <ac131313@redhat.com>
1513
1514 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1515 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1516 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1517 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1518 pc_in_call_dummy_at_entry_point.
1519 * config/pa/tm-hppa.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/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1523 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1524 pc_in_call_dummy_on_stack.
1525 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1526 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1527 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1528 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1529 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1530
b4b88177
AC
15312002-11-26 Andrew Cagney <ac131313@redhat.com>
1532
1533 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1534 pc_in_call_dummy_before_text_end
1535 (deprecated_pc_in_call_dummy_after_text_end): Rename
1536 pc_in_call_dummy_after_text_end.
1537 (deprecated_pc_in_call_dummy_on_stack): Rename
1538 pc_in_call_dummy_on_stack.
1539 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1540 pc_in_call_dummy_at_entry_point.
1541 * m68k-tdep.c (m68k_gdbarch_init): Update.
1542 * s390-tdep.c (s390_gdbarch_init): Update.
1543 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1544 * vax-tdep.c (vax_gdbarch_init): Update.
1545 * sparc-tdep.c (sparc_gdbarch_init): Update.
1546 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1547 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1548 * i386-tdep.c (i386_gdbarch_init): Update.
1549 * frv-tdep.c (frv_gdbarch_init): Update.
1550 * cris-tdep.c (cris_gdbarch_init): Update.
1551 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1552 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1553 (deprecated_pc_in_call_dummy_after_text_end)
1554 (deprecated_pc_in_call_dummy_on_stack)
1555 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1556 * alpha-tdep.c (alpha_gdbarch_init): Update.
1557
eb784848
DJ
15582002-11-25 Daniel Jacobowitz <drow@mvista.com>
1559
1560 * acconfig.h (HAVE_PREAD64): Add.
1561 * configure.in: Check for pread64.
1562 * config.in: Regenerated.
1563 * configure: Regenerated.
1564 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1565 * linux-proc.c (linux_proc_xfer_memory): New function.
1566 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1567
933c6fe4
DC
15682002-11-25 David Carlton <carlton@math.stanford.edu>
1569
1570 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1571 pdi's with no name.
1572
158a8022
AC
15732002-11-25 Andrew Cagney <ac131313@redhat.com>
1574
1575 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1576 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1577
481d0f41
JB
15782002-11-25 Jim Blandy <jimb@redhat.com>
1579
e8289572
JB
1580 * symfile.c (init_objfile_sect_indices): New function.
1581 (default_symfile_offsets): Move the section-index-initializing
1582 stuff into init_objfile_sect_indices, and call that.
1583
b29c9944
JB
1584 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1585 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1586
13de58df
JB
1587 * symfile.c (syms_from_objfile): Adjust indentation.
1588
481d0f41
JB
1589 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1590 || info_verbose isn't true.
1591
7d6a26a7
AC
15922002-11-24 Andrew Cagney <ac131313@redhat.com>
1593
1594 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1595 default to get_frame_base.
1596 * gdbarch.h, gdbarch.c: Regenerate.
1597 * arch-utils.c (default_frame_address): Delete function.
1598 * arch-utils.h (default_frame_address): Delete declaration
1599
6abe1021
PM
16002002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1601
1602 * varobj.c (find_frame_addr_in_frame_chain):
1603 Use get_frame_base instead of FRAME_FP,
1604 obvious fix.
1605
c193f6ac
AC
16062002-11-19 Andrew Cagney <ac131313@redhat.com>
1607
1608 * frame.h (FRAME_FP): Delete macro.
1609 (get_frame_base): New function declaration.
1610 * frame.c (get_frame_base): New function.
1611 (get_frame_id): Use ->frame.
1612 (frame_find_by_id): Rewrite to use get_frame_id.
1613 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1614 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1615 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1616 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1617 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1618 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1619 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1620
e5d2af14
AC
16212002-11-24 Andrew Cagney <ac131313@redhat.com>
1622
1623 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1624
931d12c6
AC
16252002-11-24 Andrew Cagney <ac131313@redhat.com>
1626
1627 * frame.c (set_unwind_by_pc): Revert change below, use
1628 PC_IN_CALL_DUMMY.
1629 (get_prev_frame): Ditto.
1630
5e0f933e
AC
16312002-11-24 Andrew Cagney <ac131313@redhat.com>
1632
1633 * dummy-frame.c (pc_in_dummy_frame): New function.
1634 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1635 (find_dummy_frame): Update comment.
1636 (generic_pop_current_frame): Use get_frame_type.
1637 * dummy-frame.h (pc_in_dummy_frame): Declare.
1638 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1639 (create_new_frame): Use pc_in_dummy_frame.
1640 (get_prev_frame): Use pc_in_dummy_frame.
1641 (frame_saved_regs_register_unwind): Use get_prev_frame.
1642 (deprecated_generic_get_saved_register): Use get_prev_frame.
1643
7d8547c9
AC
16442002-11-23 Andrew Cagney <ac131313@redhat.com>
1645
1646 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1647 from here ...
1648 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1649 (varobj_create): Note that frame ID should be used.
1650 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1651
0225421b
AC
16522002-11-23 Andrew Cagney <ac131313@redhat.com>
1653
1654 * breakpoint.c: Include "gdb_assert.h".
1655 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1656 not being used.
1657 * Makefile.in (breakpoint.o): Update dependencies.
1658 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1659 deprecated_frame_in_dummy.
1660 * stack.c (print_frame_info_base): Ditto.
1661 (frame_info): Ditto.
1662 (print_frame_info_base): Ditto. Delete dead code.
1663
32eeb91a
AS
16642002-11-23 Andreas Schwab <schwab@suse.de>
1665
1666 * Makefile.in (m68k_tdep_h): Define.
1667 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1668 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1669 * m68k-tdep.c: Move register number enum ...
1670 * m68k-tdep.h: ... to this new file and rename the constants from
1671 E_* to M68K_*. All uses changed.
1672 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1673 * abug-rom.c: Include "m68k-tdep.h". Use
1674 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1675 * cpu32bug-rom.c: Likewise.
1676 * dbug-rom.c: Likewise.
1677 * m68k-tdep.c: Likewise.
1678 * m68klinux-nat.c: Likewise.
1679 * remote-est.c: Likewise.
1680 * rom68k-rom.c: Likewise.
1681 * config/m68k/tm-linux.h: Likewise.
1682
9648bac8
AC
16832002-11-23 Andrew Cagney <ac131313@redhat.com>
1684
1685 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1686 dummy frame initialization code.
1687 * mips-tdep.c (mips_gdbarch_init): Ditto.
1688
91a175b3
CF
16892002-11-22 Christopher Faylor <cgf@redhat.com>
1690
1691 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1692 attach will hang.
1693
f4ded5b1
AC
16942002-11-22 Andrew Cagney <ac131313@redhat.com>
1695
1696 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1697 to default_frame_address.
1698 * gdbarch.h, gdbarch.c: Re-generate.
1699
1700 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1701 or frame_locals_address to default_frame_address.
1702 * m68k-tdep.c (m68k_gdbarch_init): Update.
1703 * i386-tdep.c (i386_gdbarch_init): Update.
1704 * frv-tdep.c (frv_gdbarch_init): Update.
1705 * sh-tdep.c (sh_gdbarch_init): Update.
1706 * v850-tdep.c (v850_gdbarch_init): Update.
1707 * sparc-tdep.c (sparc_gdbarch_init): Update.
1708 * mips-tdep.c (mips_gdbarch_init): Update.
1709 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1710 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1712
1713 * cris-tdep.c (cris_frame_args_address): Delete function.
1714 (cris_frame_locals_address): Delete function.
1715 (cris_gdbarch_init): Do not set frame_args_address or
1716 frame_locals_address.
1717
f7c1e0f3
MS
17182002-11-22 Michael Snyder <msnyder@redhat.com>
1719
1720 * thread-db.c (thread_db_load): Tell the user what's going on
1721 if dlopen fails on libthread_db.
1722
03dac896
AS
17232002-11-23 Andreas Schwab <schwab@suse.de>
1724
1725 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1726 invariant return values.
1727
7a67d0fe
AS
17282002-11-22 Andreas Schwab <schwab@suse.de>
1729
1730 * valops.c (value_slice): Move declaration of `offset' to avoid
1731 warning.
1732
5633f842
CF
17332002-11-22 Christopher Faylor <cgf@redhat.com>
1734
1735 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1736 (struct so_stuff): Add end_addr field.
1737 (register_loaded_dll): Calculate and store end address of loaded dll.
1738 (solib_address): New function.
1739 (child_solib_loaded_library_pathname): Pass carefully constructed
1740 section info to safe_symbol_file_add rather than ignoring it.
1741 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1742 DLL is loaded.
1743 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1744 (child_create_inferior): Fix a compiler warning.
1745 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1746 (solib_address): Declare new function.
1747
d85fe7f7
AS
17482002-11-22 Andreas Schwab <schwab@suse.de>
1749
1750 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1751 and FPS registers.
1752
8308e54c
DJ
17532002-11-21 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * maint.c (_initialize_maint_cmds): Fix typo. From
1756 Francesco Potorti` <pot@gnu.org>.
1757
8997bd5e
AC
17582002-11-21 Andrew Cagney <cagney@redhat.com>
1759
1760 * mips-tdep.c (mips_dump_tdep): Delete references to
1761 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1762 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1763 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1764 * printcmd.c (build_address_symbolic): Delete calls to
1765 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1766 (address_info): Ditto.
1767 Fix PR gdb/773.
1768
4e87b832
KD
17692002-11-19 Klee Dienes <kdienes@apple.com>
1770 Adam Fedor <fedor@gnu.org>
1771
1772 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1773 the ability to explicitly specify the quote characters and word
1774 break characters; if NULL is specified for either, use the old
1775 behavior of using the characters used by the completer.
1776 (skip_chars): New function. Convenience wrapper around
1777 skip_quoted_chars to provide the original skip_chars behavior.
1778 * completer.h (skip_quoted_chars): Add prototype.
1779
9ba8d803
AC
17802002-11-19 Andrew Cagney <ac131313@redhat.com>
1781
1782 Problems reported by Paul Eggert.
1783 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1784
0a595803
AS
17852002-11-19 Andreas Schwab <schwab@suse.de>
1786
1787 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1788 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1789 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1790 (m68k_linux_frame_saved_pc): Move to ...
1791 * m68klinux-tdep.c: ... here. New file.
1792 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1793 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1794
e8afa4d7
AF
17952002-11-19 Adam Fedor <fedor@gnu.org>
1796
1797 * objc-exp.y: Revert to old skip_quoted usage.
1798
a76c9d72
AF
17992002-11-19 Adam Fedor <fedor@gnu.org>
1800
1801 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1802 (objc_lang_h): Define.
1803 (YYFILES): Add objc-exp.tab.c.
1804 (local-maintainer-clean): Remove objc-exp.tab.c.
1805 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1806
fd0e9d45
PM
18072002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1808
1809 * p-exp.y (typecast rule): Add automatic dereference of
1810 pascal classes if needed.
1811 (THIS): Set current_type.
1812 Automatically dereference pascal classes.
1813 (typebase rule): Add ^typebase recognition.
1814
82eeeb94
AF
18152002-11-18 Adam Fedor <fedor@gnu.org>
1816
1817 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1818 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1819 (op_name): Handle OP_OBJC_SELF.
1820 * Makefile.in (expprint.o): Add additional depends.
1821
646df18d
AF
18222002-11-18 Adam Fedor <fedor@gnu.org>
1823
1824 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1825 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1826 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1827 * objc-exp.y: Likewise.
1828
379b85df
AF
18292002-11-18 Adam Fedor <fedor@gnu.org>
1830
1831 * gdb/parser-defs.h: (struct objc_class_str): New structure
1832 for parsing ObjC classes.
1833
85cf597a
AC
18342002-11-18 Andrew Cagney <ac131313@redhat.com>
1835
1836 * stack.c (frame_relative_level): Copy function from here ...
1837 * frame.c (frame_relative_level): ...to here.
1838
5a203e44
AC
18392002-11-18 Andrew Cagney <ac131313@redhat.com>
1840
1841 * frame.h (enum frame_type): Define.
1842 (get_frame_type): Declare.
1843 (struct frame_info): Add field `type'. Delete field
1844 signal_handler_caller.
1845 (deprecated_set_frame_signal_handler_caller): Declare.
1846 * frame.c (get_frame_type): New function.
1847 (deprecated_set_frame_type): New function.
1848 (create_new_frame): Set the frame's type.
1849 (get_prev_frame): Similar.
1850 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1851 * s390-tdep.c: Ditto.
1852 * m68klinux-nat.c: Ditto.
1853 * ns32k-tdep.c: Ditto.
1854 * x86-64-linux-tdep.c: Ditto.
1855 * vax-tdep.c: Ditto.
1856 * rs6000-tdep.c: Ditto.
1857 * ppc-linux-tdep.c: Ditto.
1858 * i386-interix-tdep.c: Ditto.
1859 * mips-tdep.c: Ditto.
1860 * m68k-tdep.c: Ditto.
1861 * hppa-tdep.c: Ditto.
1862 * ia64-tdep.c: Ditto.
1863 * cris-tdep.c: Ditto.
1864 * arm-tdep.c: Ditto.
1865 * alpha-tdep.c: Ditto.
1866 * i386-tdep.c: Ditto.
1867 * stack.c: Ditto.
1868 * ada-lang.c: Ditto.
1869 * blockframe.c: Update.
1870 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1871 deprecated_set_frame_type instead of signal_handler_caller.
1872 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1873 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1874 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1875
bf4ae8b2
KD
18762002-11-18 Klee Dienes <kdienes@apple.com>
1877
1878 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1879
a672ef13
KD
18802002-11-18 Klee Dienes <kdienes@apple.com>
1881
1882 * buildsym.c (pop_context): Add comment.
1883
0c5e171a
KD
18842002-11-18 Klee Dienes <kdienes@apple.com>
1885
1886 * buildsym.h (pop_context): Convert to function, defined in
1887 buildsym.c.
1888 * buildsym.c: Include gdb_assert.h.
1889 (pop_context): Implement as C function. Add check for stack
1890 underflow.
1891 * dbxread.c (process_one_symbol): Complain and stop processing
1892 that symbol if we are already at the top of the context stack for
1893 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1894 when processing N_RBRAC.
1895
8a1f4c4c
DJ
18962002-11-16 Daniel Jacobowitz <drow@mvista.com>
1897
1898 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1899 define.
1900 (struct target_waitstatus): Add opaque definition.
1901 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1902 * exec.c (init_exec_ops): Likewise.
1903 * fork-child.c (clone_and_follow_inferior): Remove.
1904 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1905 * inferior.h (clone_and_follow_inferior): Remove prototype.
1906 * infrun.c (follow_fork_mode_both): Remove.
1907 (follow_fork_mode_kind_names): Remove commented out "both".
1908 (follow_inferior_fork): Remove follow_fork_mode_both support.
1909 * inftarg.c (child_clone_and_follow_inferior): Remove.
1910 (child_post_follow_inferior_by_clone): Remove.
1911 (init_child_ops): Don't set to_clone_and_follow_inferior
1912 or to_post_follow_inferior_by_clone.
1913 * target.c (default_clone_and_follow_inferior): Remove.
1914 (cleanup_target): Don't set to_clone_and_follow_inferior
1915 or to_post_follow_inferior_by_clone.
1916 (find_default_clone_and_follow_inferior): Remove.
1917 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1918 (debug_to_clone_and_follow_inferior): Remove.
1919 (debug_to_post_follow_inferior_by_clone): Remove.
1920 (setup_target_debug): Don't set to_clone_and_follow_inferior
1921 or to_post_follow_inferior_by_clone.
1922 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1923 and to_post_follow_inferior_by_clone.
1924 (child_clone_and_follow_inferior): Remove prototype.
1925 (child_post_follow_inferior_by_clone): Remove prototype.
1926 (target_clone_and_follow_inferior): Remove macro.
1927 (target_post_follow_inferior_by_clone): Remove macro.
1928 (find_default_clone_and_follow_inferior): Remove prototype.
1929
47932f85
DJ
19302002-11-16 Daniel Jacobowitz <drow@mvista.com>
1931
1932 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1933 inferior_has_vforked, and inferior_has_execd instead of
1934 target_has_forked, target_has_vforked, and target_has_execd.
1935 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1936 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1937 (CHILD_WAIT): Define.
1938 (child_wait): Add prototype.
1939 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1940 Add prototype.
1941 (hpux_has_vforked): Likewise, from child_has_vforked.
1942 (hpux_has_execd): Likewise, from child_has_execd.
1943 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1944 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1945 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1946 and hpux_has_syscall_event instead of the target hooks.
1947 * infrun.c (inferior_has_forked, inferior_has_vforked)
1948 (inferior_has_execd): New functions.
1949 * inftarg.c (not_same_real_pid): Remove.
1950 (child_wait): Remove references to not_same_real_pid,
1951 target_has_forked, target_has_vforked, target_has_execd,
1952 and target_has_syscall_event.
1953 (child_has_forked, child_has_vforked, child_has_execd)
1954 (child_has_syscall_event): Remove.
1955 (init_child_ops): Remove references to child_has_forked,
1956 child_has_vforked, child_has_execd, and child_has_syscall_event.
1957 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1958 (hpux_has_vforked): Likewise, from child_has_vforked.
1959 (hpux_has_execd): Likewise, from child_has_execd.
1960 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1961 * target.c (cleanup_target): Remove references to
1962 to_has_forked, to_has_vforked, to_has_execd, and
1963 to_has_syscall_event.
1964 (update_current_target): Likewise.
1965 (setup_target_debug): Likewise.
1966 (debug_to_has_forked): Remove.
1967 (debug_to_has_vforked): Remove.
1968 (debug_to_has_execd): Remove.
1969 (debug_to_has_syscall_event): Remove.
1970 * target.h (struct target_ops): Remove to_has_forked.
1971 to_has_vforked, to_has_execd, and to_has_syscall_event.
1972 (child_has_forked, child_has_vforked, child_has_execd)
1973 (child_has_syscall_event): Remove prototypes.
1974 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1975 prototypes.
1976 (target_has_forked, target_has_vforked, target_has_execd)
1977 (target_has_syscall_event): Remove macros.
1978
4088142a
DJ
19792002-11-16 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1982 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1983 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1984 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1985 * target.c (cleanup_target): Remove reference to
1986 to_can_follow_vfork_prior_to_exec.
1987 (update_current_target): Likewise.
1988 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1989 (setup_target_debug): Remove reference to
1990 to_can_follow_vfork_prior_to_exec.
1991 * target.h (struct target_ops): Remove
1992 to_can_follow_vfork_prior_to_exec.
1993 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1994 (target_can_follow_vfork_prior_to_exec): Remove definition.
1995 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1996 define.
1997 * infrun.c (follow_vfork_when_exec): Remove.
1998 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1999 (follow_exec): Likewise.
2000 (handle_inferior_event): Likewise.
2001 (keep_going): Likewise.
2002
18cde8d5
AC
20032002-11-15 Andrew Cagney <cagney@redhat.com>
2004
2005 * frame.c (generic_unwind_get_saved_register): Make static.
2006 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2007 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2008 defaults to generic_unwind_get_saved_register.
2009 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2010 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2011 * frv-tdep.c (frv_gdbarch_init): Ditto.
2012 * i386-tdep.c (i386_gdbarch_init): Ditto.
2013 * s390-tdep.c (s390_gdbarch_init): Ditto.
2014 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2015 * v850-tdep.c (v850_gdbarch_init): Ditto.
2016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2017 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2018 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2019
a6b063af
AC
20202002-11-15 Andrew Cagney <cagney@redhat.com>
2021
2022 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2023 i386-tdep.c.
2024
f407986f
AC
20252002-11-15 Andrew Cagney <cagney@redhat.com>
2026
2027 * frame.h (sigtramp_saved_pc): Delete declaration.
2028 * blockframe.c (sigtramp_saved_pc): Delete function.
2029 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2030 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2031 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2032 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2033
f18c5a73
AC
20342002-11-15 Andrew Cagney <ac131313@redhat.com>
2035
2036 * frame.c (frame_pc_unwind): New function.
2037 (frame_saved_regs_pc_unwind): New function.
2038 (frame_register_unwind): Pass unwind_cache instead of
2039 register_unwind_cache.
2040 (set_unwind_by_pc): Add unwind_pc parameter, set.
2041 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2042 (get_prev_frame): Ditto.
2043 * frame.h (frame_pc_unwind_ftype): Declare.
2044 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2045 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2046 (frame_pc_unwind): Declare.
2047 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2048 (struct dummy_frame): Add comment mentioning that values are for
2049 previous frame.
2050 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2051 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2052 (generic_file_frame_chain_valid): Ditto.
2053 * stack.c (frame_info): Ditto.
2054
d9285969 20552002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
2056
2057 * linespec.c (locate_first_half): New function.
2058 (decode_line_1): Move code into locate_first_half.
2059
d741b867
AC
20602002-11-15 Andrew Cagney <ac131313@redhat.com>
2061
2062 * complaints.h: Add comment explaining how to eliminate a
2063 deprecated_complain call.
24382c5c 2064 * complaints.h: Fix spelling errors.
d741b867 2065
82d03c99
DC
20662002-11-15 David Carlton <carlton@math.stanford.edu>
2067
2068 * printcmd.c: Remove #include "disasm.h".
2069
c97eb5d9
AC
20702002-11-14 Andrew Cagney <ac131313@redhat.com>
2071
2072 * frame.h: Move the most relevant interface functions to the start
2073 of the file.
2074
524d7c18
AC
20752002-11-14 Andrew Cagney <ac131313@redhat.com>
2076
2077 * regcache.h (deprecated_registers): Rename registers.
2078 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2079 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2080 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2081 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2082 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2083 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2084 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2085 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2086 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2087 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2088 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2089 * v850ice.c: Update.
2090
6411e720
AC
2091Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2092
2093 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2094 NULL buffer.
2095
73937e03
AC
20962002-11-13 Andrew Cagney <cagney@redhat.com>
2097
2098 * regcache.h (deprecated_read_register_bytes): Rename
2099 read_register_bytes.
2100 (deprecated_write_register_bytes): Rename write_register_bytes.
2101 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2102 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2103 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2104 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2105 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2106 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2107 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2108 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2109 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2110 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2111 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2112 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2113 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2114 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2115
fb0cd46e
JB
21162002-11-13 Jim Blandy <jimb@redhat.com>
2117
2118 * findvar.c (read_var_value): Doc fix.
2119
2d28509a
AC
21202002-11-13 Andrew Cagney <cagney@redhat.com>
2121
2122 * regcache.c (struct regcache): Replace passthough_p with
2123 readonly_p.
2124 (regcache_xmalloc): Initialize readonly_p.
2125 (build_regcache): Initialize readonly_p.
2126 (regcache_save): New function.
2127 (regcache_restore): New function.
2128 (regcache_cpy): Re-implement using regcache_save and
2129 regcache_restore.
2130 (regcache_raw_read): Update.
2131 (regcache_cooked_read): When a read-only cache, checked for cached
2132 pseudo register values.
2133 (regcache_raw_write): Assert that the cache is not read-only.
2134 Remove code handling a non-passthrough cache.
2135 * regcache.h (regcache_save): Declare.
2136 (regcache_restore): Declare.
2137
067df2e5
AC
21382002-11-13 Andrew Cagney <cagney@redhat.com>
2139
2140 * regcache.c (struct regcache_descr): Add fields
2141 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2142 (init_legacy_regcache_descr): Compute the size of a cooked
2143 register cache and then assign that to sizeof_raw_registers. Set
2144 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2145 (init_legacy_regcache_descr): Ditto.
2146
51b1fe4e
AC
21472002-11-13 Andrew Cagney <cagney@redhat.com>
2148
2149 * regcache.c (register_buffer): Move to near start of file, update
2150 description.
2151 (regcache_raw_read): Use.
2152 (regcache_raw_write): Use.
2153 (struct regcache): Rename raw_registers to registers and
2154 raw_register_valid_p to register_valid_p.
2155 (regcache_xmalloc): Update.
2156 (regcache_xfree): Update.
2157 (register_buffer): Update.
2158 (regcache_cpy): Update.
2159 (regcache_cpy_no_passthrough): Update.
2160 (regcache_valid_p): Update.
2161 (deprecated_grub_regcache_for_registers): Update.
2162 (deprecated_grub_regcache_for_register_valid): Update.
2163 (set_register_cached): Update.
2164 (regcache_raw_write): Update.
2165
80b4c677
PM
21662002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2167
2168 * p-exp.y (name_not_typename): Use copy_name to
2169 set current_type variable for fields of THIS.
2170
0f3fafde
DJ
21712002-11-12 Daniel Jacobowitz <drow@mvista.com>
2172
2173 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2174 * monitor.c (init_base_monitor_ops): Likewise.
2175 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2176 * remote-array.c (init_array_ops): Likewise.
2177 * remote-e7000.c (init_e7000_ops): Likewise.
2178 * remote-es.c (init_es1800_ops): Likewise.
2179 (init_es1800_child_ops): Likewise.
2180 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2181 * remote-sim.c (init_gdbsim_ops): Likewise.
2182 * remote-st.c (init_st2000_ops): Likewise.
2183 * sol-thread.c (init_sol_core_ops): Likewise.
2184 (init_sol_thread_ops): Likewise.
2185 * v850ice.c (init_850ice_ops): Likewise.
2186 * win32-nat.c (init_child_ops): Likewise.
2187 * wince.c (init_child_ops): Likewise.
2188
82c0260e
AC
21892002-11-12 Andrew Cagney <ac131313@redhat.com>
2190
2191 * utils.c (gdb_realpath): Make rp a constant pointer.
2192
70d35819
AC
21932002-11-12 Andrew Cagney <ac131313@redhat.com>
2194
2195 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2196 a constant buffer; cannonicalize_file_name(); realpath() with a
2197 pathconf() defined buffer, xstrdup().
2198
9835a8b0
AC
21992002-11-12 Andrew Cagney <ac131313@redhat.com>
2200
2201 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2202 to hang2.C; hang3.c to hang3.C.
2203
3f47be5c
EZ
22042002-11-11 Elena Zannoni <ezannoni@redhat.com>
2205
2206 * findvar.c (read_var_value): Reenable TLS code.
2207
22082002-11-11 Elena Zannoni <ezannoni@redhat.com>
2209 Jim Blandy <jimb@redhat.com>
2210
2211 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2212 * target.c (update_current_target): Add
2213 to_get_thread_local_address.
2214 * target.h (to_get_thread_local_address): Export.
2215 (target_get_thread_local_address): Define.
2216 (target_get_thread_local_address_p): Define.
2217 * thread-db.c: Include solib-svr4.h.
2218 (td_thr_tls_get_addr_p): Define.
2219 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2220 (thread_db_get_thread_local_address): New function.
2221 (init_thread_db_ops): Initialize to_get_thread_local_address.
2222 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2223 * configure: Regenerate.
2224 * config.in: Regenerate.
2225
636b1a6d
DC
22262002-11-11 David Carlton <carlton@math.stanford.edu>
2227
2228 * linespec.c (set_flags): New function.
2229 (decode_line_1): Move code into set_flags.
2230
44fe14ab
DC
22312002-11-11 David Carlton <carlton@math.stanford.edu>
2232
2233 * linespec.c (decode_line_1): Move chunks of code to separate
2234 functions.
2235 (initialize_defaults): New function.
2236 (decode_indirect): New function.
2237
e6f181f5
AC
22382002-11-11 Andrew Cagney <ac131313@redhat.com>
2239
8971b011
AC
2240 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2241 instead of void_code_ptr.
2242 (sigtramp_saved_pc): Ditto.
2243
e6f181f5
AC
2244 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2245 i386_fp_regnum_p.
2246
01ad7f36
DJ
22472002-11-10 Daniel Jacobowitz <drow@mvista.com>
2248
2249 * gdbtypes.h (struct main_type): Move artificial flag out of
2250 loc. New member of ``struct field'' named static_kind. Reduce
2251 overloaded meaning of bitsize.
2252 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2253 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2254 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2255
2256 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2257 new fields.
2258 (template_to_fixed_record_type, template_to_static_fixed_type)
2259 (to_record_with_fixed_variant_part): Likewise.
2260 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2261 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2262 * dwarfread.c (struct_type, enum_type): Likewise.
2263 * hpread.c (hpread_read_enum_type)
2264 (hpread_read_function_type, hpread_read_doc_function_type)
2265 (hpread_read_struct_type): Likewise.
2266 * mdebugread.c (parse_symbol): Likewise.
2267
bf1e52be
AC
22682002-11-10 Andrew Cagney <ac131313@redhat.com>
2269
2270 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2271 * stack.c (print_frame_info_base): Update.
2272 (print_frame_info_base, frame_info): Update.
2273 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2274 (sparc_frame_saved_pc): Update.
2275 * ada-lang.c (find_printable_frame): Update.
2276 * breakpoint.c (deprecated_frame_in_dummy): Update.
2277
ce556f85
MK
22782002-11-09 Mark Kettenis <kettenis@gnu.org>
2279
2280 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2281 defined.
2282 (regmap): Extend to cover all registers.
2283 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2284 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2285 definitions.
2286 (fetch_register, sore_register): Simplify.
2287 (old_fetch_inferior_registers, old_store_inferior_registers):
2288 Remove functions.
2289 (cannot_fetch_register, cannot_store_register): Change
2290 implementation to use regmap array to decide which registers
2291 cannot be fetched/stored. This removes $orig_eax from the
2292 registers that cannot be fetched/stored.
2293 (fetch_inferior_registers): Call fetch_register directly instead
2294 of calling old_fetch_inferior_registers.
2295 (store_inferior_registers): Call store_register directly instead
2296 of calling old_store_inferior_registers.
2297 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2298 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2299 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2300
932bb524
KD
23012002-11-09 Klee Dienes <kdienes@apple.com>
2302
2303 * i387-tdep.c (i387_supply_register): When called with NULL as a
2304 buffer, mark the register as not provided (to mirror the behavior
2305 of supply_register).
2306 (i387_supply_fxsave): Ditto.
2307 (i387_supply_fsave): Ditto (inherits the behavior from
2308 i387_supply_register).
2309
ebe68b27
KD
23102002-11-09 Klee Dienes <kdienes@apple.com>
2311
2312 * blockframe.c (sigtramp_saved_pc): Use
2313 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2314 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2315 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2316
15220c65
AC
23172002-11-09 Andrew Cagney <ac131313@redhat.com>
2318
2319 * frame.c (get_prev_frame): Test prev_p to identify a previously
2320 unwound frame. Initialize prev_p.
2321 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2322 comment.
2323
95adb866
AC
23242002-11-09 Andrew Cagney <ac131313@redhat.com>
2325
2326 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2327 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2328 more comments. Zap dead code.
2329
e71ecd70
MK
23302002-11-09 Mark Kettenis <kettenis@gnu.org>
2331
2332 * infcmd.c (print_vector_info, print_float_info): Move code that
2333 checks whether the target has any registers and whether there is a
2334 selected frame up, such that it is also used if a target provides
2335 multi-arch definitions of these functions.
2336
c525330d
AC
23372002-11-08 Andrew Cagney <ac131313@redhat.com>
2338
72bdd927
AC
2339 * Makefile.in (DESTDIR): Define.
2340 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2341 prefix.
2342
c525330d
AC
2343 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2344 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2345
38c968cf
AC
23462002-11-08 Andrew Cagney <ac131313@redhat.com>
2347
2348 * i386-linux-tdep.c: Include "reggroups.h".
2349 (i386_linux_register_reggroup_p): New function.
2350 (i386_linux_init_abi): Set register_reggroup_p to
2351 i386_linux_register_reggroup_p.
2352 * i386-tdep.h (i386_register_reggroup_p): Declare.
2353 * i386-tdep.c: Include "reggroups.h".
2354 (i386_init_reggroups): New function.
2355 (i386_add_reggroups): New function.
2356 (i386_register_reggroup_p): New function.
2357 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2358 (_initialize_i386_tdep): Call i386_init_reggroups.
2359 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2360 specific reggroups.
2361
19e33363
MK
23622002-11-09 Mark Kettenis <kettenis@gnu.org>
2363
371a6e84
MK
2364 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2365 request that's available in *BSD.
2366
94ba925a
MK
2367 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2368
19e33363
MK
2369 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2370 FDOFF_REGNUM.
2371
8779790c
AC
23722002-11-08 Andrew Cagney <ac131313@redhat.com>
2373
2374 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2375 * dummy-frame.c (find_dummy_frame): Rename
2376 generic_find_dummy_frame, make static. Return the dummy frame
2377 instead of the regcache.
2378 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2379 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2380 (dummy_frame_register_unwind): Rename
2381 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2382 * dummy-frame.h (dummy_frame_register_unwind): Rename
2383 generic_call_dummy_register_unwind.
2384
8674b74f
MK
23852002-11-08 Mark Kettenis <kettenis@gnu.org>
2386
2387 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2388 except the inclusion of "i386/tm-i386.h", to...
2389 * config/i386/nm-i386v42mp.h: ...here.
2390 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2391
4c1e7e9d
AC
23922002-11-08 Andrew Cagney <ac131313@redhat.com>
2393
2394 * Makefile.in (frame.o): Update dependencies.
2395 * blockframe.c (current_frame, frame_obstack_alloc)
2396 (frame_saved_regs_zalloc, get_current_frame)
2397 (set_current_frame, create_new_frame)
2398 (set_unwind_by_pc, get_next_frame)
2399 (flush_cached_frames, reinit_frame_cache)
2400 (frame_saved_regs_register_unwind)
2401 (deprecated_generic_get_saved_register)
2402 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2403 (_initialize_blockframe): Move frame code from here...
2404 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2405 "annotate.h" and "dummy-frame.h".
2406 (_initialize_frame): New function.
2407
921e78cf
JB
24082002-11-08 Jim Blandy <jimb@redhat.com>
2409
2410 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2411 when we finish a function a context.
2412 * buildsym.h (outermost_context_p): New macro.
2413 (Bug analyzed by David Edelsohn.)
2414
9c1412c1
AC
24152002-11-08 Andrew Cagney <ac131313@redhat.com>
2416
2417 * blockframe.c: Include "dummy-frame.h".
2418 (struct dummy_frame, dummy_frame_stack)
2419 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2420 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2421 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2422 (generic_save_call_dummy_addr, generic_pop_current_frame)
2423 (generic_pop_dummy_frame, generic_fix_call_dummy)
2424 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2425 dummy frame code from here...
2426 * dummy-frame.c: ...to here. New file.
2427 * dummy-frame.h: New file.
2428 (generic_call_dummy_register_unwind): Declare.
2429 (generic_find_dummy_frame): Declare.
2430 * Makefile.in (SFILES): Add dummy-frame.c.
2431 (dummy-frame.o): Specify dependencies.
2432 (dummy_frame_h): Define.
2433 (COMMON_OBS): Add dummy-frame.o.
2434 (blockframe.o): Update dependencies.
2435
208d8187
JB
24362002-11-08 Jim Blandy <jimb@redhat.com>
2437
2438 * dwarf2read.c (read_func_scope): Restore local_symbols and
2439 param_symbols after we finish the function context. (Based on a
2440 patch from David Edelsohn.)
2441
413dad4d
DC
24422002-11-08 David Carlton <carlton@math.stanford.edu>
2443
2444 * linespec.c (symbol_found): New function.
2445 (minsym_found): New function.
2446 (decode_line_1): Separate out some code into separate functions.
2447
5512c44a
JB
24482002-11-08 Joel Brobecker <brobecker@gnat.com>
2449
2450 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2451 the benefit of the interix target.
2452 * i386-tdep.h (i386_frameless_signal_p): Declare.
2453
1b33ef47
AC
24542002-11-08 Andrew Cagney <ac131313@redhat.com>
2455
2456 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2457 declaration that snuck in from change below.
2458
23a34459
AC
24592002-11-06 Andrew Cagney <cagney@redhat.com>
2460
2461 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2462 all callers.
2463 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2464 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2465 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2466 (i386_mxcsr_regnum_p): new function. Use instead of
2467 MXCSR_REGNUM_P.
2468 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2469 (i386_sse_regnum_p): Declare.
2470 (i386_mxcsr_regnum_p): Declare.
2471 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2472 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2473 (IS_FP_REGNUM): Update definition.
2474 (IS_FPU_CTRL_REGNUM): Update definition..
2475 (IS_SSE_REGNUM): Update definition..
2476 * i386v-nat.c (register_u_addr): Update.
2477 * go32-nat.c (fetch_register): Update.
2478 (store_register): Update.
2479
d709c020
JB
24802002-11-07 Joel Brobecker <brobecker@gnat.com>
2481
2482 Preparation work to convert the hppa targets to multiarch partial.
2483
2484 * hppa-tdep.c: Add new functions replacing macro bodies from
2485 config/pa/tm-hppa.h. These function will be used to initialize
2486 the gdbarch structure. Import some comments from tm-hppa.h,
2487 and place them where appropriate, to avoid loosing them when
2488 we cleanup this file.
2489 (hppa_reg_struct_has_addr): New function.
2490 (hppa_inner_than): New function.
2491 (hppa_stack_align): New function.
2492 (hppa_pc_requires_run_before_use): New function.
2493 (hppa_instruction_nullified): New function.
2494 (hppa_register_byte): New function.
2495 (hppa_register_virtual_type): New function.
2496 (hppa_store_struct_return): New function.
2497 (hppa_cannot_store_register): New function.
2498 (hppa_frame_args_address): New function.
2499 (hppa_frame_locals_address): New function.
2500 (hppa_smash_text_address): New function.
2501 (hppa_coerce_float_to_double): New function. Requires the inclusion
2502 of "language.h".
2503
2504 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2505
2506 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2507 gdbarch-eligible macro to a call to the new associated function
2508 created in hppa-tdep.c.
2509 (INNER_THAN): Likewise.
2510 (STACK_ALIGN): Likewise.
2511 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2512 (INSTRUCTION_NULLIFIED): Likewise.
2513 (REGISTER_BYTE): Likewise.
2514 (REGISTER_VIRTUAL_TYPE): Likewise.
2515 (STORE_STRUCT_RETURN): Likewise.
2516 (CANNOT_STORE_REGISTER): Likewise.
2517 (FRAME_ARGS_ADDRESS): Likewise.
2518 (FRAME_LOCALS_ADDRESS): Likewise.
2519 (SMASH_TEXT_ADDRESS): Likewise.
2520 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2521 (ABOUT_TO_RETURN): Delete, as no longer used.
2522
83c31e7d
FN
25232002-11-07 Fernando Nasser <fnasser@redhat.com>
2524
2525 * printcmd.c (disassemble_command): Remove obsolete function.
2526 (_initialize_printcmd): Do not create disassemble command here.
2527 * cli/cli-cmds.c (disassemble_command): New function. Implements
2528 disassemble command.
2529 (init_cli_cmds): Create disassemble command here instead.
2530
0ec30a36
AC
25312002-11-07 Andrew Cagney <ac131313@redhat.com>
2532
2533 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2534
e600bd34
AC
25352002-11-07 Andrew Cagney <ac131313@redhat.com>
2536
2537 * regcache.h (regcache_cooked_read_using_offset_hack)
2538 (regcache_cooked_write_using_offset_hack): Delete declarations.
2539 (register_changed): Delete declaration.
2540 * regcache.c (regcache_cooked_read_using_offset_hack)
2541 (regcache_cooked_write_using_offset_hack): Delete functions.
2542 (cooked_xfer_using_offset_hack): Delete function.
2543 (register_changed): Delete function.
2544
568f8739
JB
25452002-11-07 Jim Blandy <jimb@redhat.com>
2546
2547 * macroscope.c: #include "complaints.h".
2548 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2549 but not in the macro table.
2550 * Makefile.in (macroscope.o): Record dependency.
2551
b0718b7b
JB
25522002-11-07 Joel Brobecker <brobecker@gnat.com>
2553
2554 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2555
2b9e5f3f
AC
25562002-11-07 Andrew Cagney <ac131313@redhat.com>
2557
2558 * regcache.c (deprecated_registers_fetched): Update.
2559 * regcache.h (deprecated_registers_fetched): Rename
2560 registers_fetched.
2561 * remote-vxsparc.c (vx_read_register): Update.
2562 * remote-vxmips.c (vx_read_register): Update.
2563 * remote-vx68.c (vx_read_register): Update.
2564 * irix5-nat.c (fetch_core_registers): Update.
2565 * mipsm3-nat.c (fetch_inferior_registers): Update.
2566 * sun3-nat.c (fetch_inferior_registers): Update.
2567 * symm-nat.c (fetch_inferior_registers): Update.
2568 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2569 (fetch_core_registers): Update.
2570 (fetch_kcore_registers): Update.
2571 * mips-nat.c (fetch_inferior_registers): Update.
2572 * corelow.c (get_core_registers): Update.
2573 * a68v-nat.c (fetch_inferior_registers): Update.
2574
e6e68f1f
JB
25752002-11-06 Joel Brobecker <brobecker@gnat.com>
2576
2577 Put in place the framework necessary for multiarching the hppa targets.
2578 * hppa-tdep.c (hppa_gdbarch_init): New function.
2579 (hppa_dump_tdep): New function.
2580 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2581 tdep structure dumper.
2582 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2583 until the multi-arching conversion has partially been completed.
2584
492254e9
AC
25852002-11-06 Andrew Cagney <ac131313@redhat.com>
2586
2587 * valops.c (value_assign): Merge lval_register case into
2588 lval_reg_frame_relative. Use frame_register and
2589 regcache_cooked_write instead of get_saved_register and
2590 write_register_bytes. After flushing the register cache, try to
2591 re-select the selected frame.
2592
8262ee23
AC
25932002-11-06 Andrew Cagney <ac131313@redhat.com>
2594
2595 * regcache.h (deprecated_register_valid): Rename register_valid.
2596 * regcache.c: Update.
2597 * ia64-aix-nat.c: Update.
2598 * i386gnu-nat.c: Update.
2599 * alpha-nat.c: Update.
2600 * sparc-nat.c: Update.
2601 * lynx-nat.c: Update.
2602 * remote-mips.c: Update.
2603
4facf7e8
JB
26042002-11-06 Joel Brobecker <brobecker@gnat.com>
2605
2606 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2607 to end of file, to be more consistent with the pratice followed
2608 by other targets.
2609
f9418c0f
AC
26102002-11-06 Andrew Cagney <ac131313@redhat.com>
2611
2612 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2613 (print_float_info): Print registers in float_reggroup.
2614 (print_vector_info): Print registers in vector_reggroup.
2615 (default_print_registers_info): When all, print registers in
2616 all_reggroup. Otherwize, print registers in general_reggroup.
2617 (registers_info): Rewrite. Add support for register groups.
2618 Eliminate a goto.
2619
3fe235a7
EZ
26202002-11-06 Elena Zannoni <ezannoni@redhat.com>
2621
2622 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2623 ages.
2624 (symtab_symbol_info): Remove eons old ifdeffed out code.
2625 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2626 command.
2627
ef944135
TR
26282002-11-06 Theodore A. Roth <troth@openavr.org>
2629
2630 * c-exp.y: Add missing semi-colons.
2631 * f-exp.y: Add missing semi-colons.
2632 * m2-exp.y: Add missing semi-colons.
2633 * p-exp.y: Add missing semi-colons.
2634 Add empty action to start rule to avoid a type clash error when
2635 building with bison >= 1.50.
2636
f8302a57
JB
26372002-11-06 Jim Blandy <jimb@redhat.com>
2638
2639 * macrotab.h (struct macro_source_file): Doc fix.
2640
6e382aa3
JJ
26412002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2642
2643 * varobj.c (child_exists, cplus_number_of_children): Change
2644 STREQ macro references to strcmp.
2645 (cplus_name_of_child): Change code to handle the fact that
2646 fields are not necessarily contiguous with regards to their
2647 access control. This is a fix for PR gdb/792.
2648
a216a322
AC
26492002-11-05 Andrew Cagney <ac131313@redhat.com>
2650
2651 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2652 * gdbarch.h, gdbarch.c: Regnerate.
2653 * frame.h (frame_register): Declare.
2654 * frame.c (frame_register): New function.
2655 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2656 GET_SAVED_REGISTER, otherwize call
2657 generic_unwind_get_saved_register.
2658 (frame_register_read): Use frame_register instead of
2659 get_saved_register.
2660
7d5b6fdd
EZ
26612002-11-05 Elena Zannoni <ezannoni@redhat.com>
2662
2663 From Jim Ingham <jingham@apple.com>:
2664 * event-top.c (gdb_disable_readline): New function.
2665 (_initialize_event_loop): Move comment.
2666
b7c64260
EZ
26672002-11-05 Elena Zannoni <ezannoni@redhat.com>
2668
2669 * event-loop.c (start_event_loop): Add comment.
2670 Update copyright.
2671
c2e1b8f2
AC
26722002-11-05 Andrew Cagney <ac131313@redhat.com>
2673
2674 * infcmd.c (default_print_registers_info): Do not call
2675 PRINT_REGISTER_HOOK.
2676
87647bb0
AC
26772002-11-05 Andrew Cagney <ac131313@redhat.com>
2678
2679 * sparc-tdep.c (sparc_print_register_hook): Make static.
2680 (sparc_print_registers_info): New function.
2681 (sparc_do_registers_info): New function.
2682 (sparclet_print_registers_info): New function.
2683 (sparclet_do_registers_info): New function.
2684 (do_sparc_print_registers_info): New function.
2685 (sparc_print_registers): New static function, clone of infcmd.c's
2686 default_print_registers_info.
2687 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2688 (sparclet_do_registers_info): Declare.
2689 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2690 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2691 Re-define.
2692 (sparc_do_registers_info): Declare.
2693 (PRINT_REGISTER_HOOK): Delete macro.
2694 (sparc_print_register_hook): Delete declaration.
2695
8155455b
DC
26962002-11-05 David Carlton <carlton@math.stanford.edu>
2697
2698 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2699 functions.
2700 (lookup_symbol_aux_local): New function.
2701 (lookup_symbol_aux_symtabs): New function.
2702 (lookup_symbol_aux_psymtabs): New function.
2703
29924310
DC
27042002-11-05 David Carlton <carlton@math.stanford.edu>
2705
2706 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2707 previous values of 'objfile' and 'block'.
2708
cc303028
PM
27092002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2710
2711 * values.c (value_change_enclosing_type): Set
2712 enclosing_type field correctly also for the case where
2713 more memory needs to be allocated.
2714
1d70089a
MK
27152002-11-03 Mark Kettenis <kettenis@gnu.org>
2716
f16a25ae
MK
2717 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2718 of puts_filtered.
2719
1d70089a
MK
2720 * i387-tdep.c (i387_print_float_info): Replace calls to
2721 register_read and deprecated_read_register_gen with calls to
2722 frame_register_read, and make the necessary adjustments to the
2723 surrounding code.
2724
7e20f3fb
AC
27252002-11-02 Andrew Cagney <ac131313@redhat.com>
2726
2727 * gdbarch.sh (register_reggroup_p): Allow default value.
2728 * gdbarch.h, gdbarch.c: Regenerate.
2729
192dbe33
AC
27302002-11-02 Andrew Cagney <ac131313@redhat.com>
2731
2732 * regcache.h: Add coment indicating replacements for deprecated
2733 functions.
2734
b59ff9d5
AC
27352002-11-02 Andrew Cagney <cagney@redhat.com>
2736
2737 * reggroups.h, reggroups.c: New files.
2738 * regcache.c: Include "reggroups.h".
2739 (enum regcache_dump_what): Add `regcache_dump_groups'.
2740 (regcache_dump): Contract size of the "Type" column. When
2741 specified, dump the register's groups.
2742 (maintenance_print_register_groups): New function.
2743 (_initialize_regcache): Add command `maint print register-groups'.
2744 * Makefile.in (COMMON_OBS): Add reggroups.o
2745 (SFILES): Add reggroups.c.
2746 (reggroups_h): Define.
2747 (regcache.o, gdbarch.o): Update dependencies.
2748 (reggroups.o): Specify dependencies.
2749 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2750 Add opaque declaration for `struct reggroup' in generated .h file.
2751 Include "reggroups.h" in generated .c file.
2752 gdbarch.h, gdbarch.c: Re-generate.
2753
4caf0990
AC
27542002-11-02 Andrew Cagney <cagney@redhat.com>
2755
2756 * regcache.h (deprecated_read_register_gen): Rename
2757 read_register_gen.
2758 (deprecated_write_register_gen): Rename write_register_gen.
2759 * i387-tdep.c: Update.
2760 * x86-64-linux-nat.c: Update
2761 * wince.c: Update.
2762 * thread-db.c: Update.
2763 * win32-nat.c: Update.
2764 * mips-tdep.c: Update.
2765 * d10v-tdep.c: Update.
2766 * cris-tdep.c: Update.
2767 * remote-sim.c: Update.
2768 * remote-rdi.c: Update.
2769 * remote-rdp.c: Update.
2770 * frame.c: Update.
2771 * target.c: Update.
2772 * blockframe.c: Update.
2773 * x86-64-tdep.c: Update.
2774 * xstormy16-tdep.c: Update.
2775 * sh-tdep.c: Update.
2776 * s390-tdep.c: Update.
2777 * rs6000-tdep.c: Update.
2778 * sparc-tdep.c: Update.
2779 * i386-tdep.c: Update.
2780 * dwarf2cfi.c: Update.
2781 * regcache.c: Update.
2782
7a7adcdf
JB
27832002-11-01 Joel Brobecker <brobecker@gnat.com>
2784
2785 New interix-specific files:
2786 * config/i386/nm-interix.h: New file.
2787 * config/i386/interix.mh: New file.
2788 * config/i386/interix.mt: New file.
2789 * i386-interix-nat.c: New file.
2790 * i386-interix-tdep.c: New file.
2791
bdcdd535
AC
27922002-11-01 Andrew Cagney <cagney@redhat.com>
2793
2794 * frame.h (deprecated_generic_get_saved_register): Rename
2795 generic_get_saved_register.
2796 * blockframe.c (deprecated_generic_get_saved_register): Update.
2797 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2798 (xstormy16_frame_saved_register): Update.
2799 * sh-tdep.c (sh_gdbarch_init): Update.
2800 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2801 * ia64-tdep.c (ia64_get_saved_register): Update.
2802 * cris-tdep.c (cris_gdbarch_init): Update.
2803 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2804 * arm-tdep.c (arm_gdbarch_init): Update.
2805
2a4b7c45
DJ
28062002-10-31 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2809
ef17e74b
DJ
28102002-10-31 Daniel Jacobowitz <drow@mvista.com>
2811
2812 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2813 trampolines in sigaction.
2814
4904ba5b
AC
28152002-10-31 Andrew Cagney <cagney@redhat.com>
2816
2817 * h8300-tdep.c: Include "gdb_assert.h".
2818 (h8300_print_register): Add gdbarch, file and frame parameters.
2819 Use frame_read_unsigned_register to read the register's value.
2820 Use fprintf_filtered to display output.
2821 (h8300_print_registers_info): Replace h8300_do_registers_info.
2822 (h8300_gdbarch_init): Set print_registers_info.
2823
f908a0eb
AC
28242002-10-31 Andrew Cagney <cagney@redhat.com>
2825
2826 * frame.c (frame_read_unsigned_register): New function.
2827 (frame_read_signed_register): New function.
2828 * frame.h (frame_read_unsigned_register): Declare.
2829 (frame_read_signed_register): Declare.
2830
c5646e11
AC
28312002-10-31 Andrew Cagney <cagney@redhat.com>
2832
2833 * h8500-tdep.c (h8500_print_registers_info): New static function,
2834 clone of infcmd.c's default_print_registers_info.
2835 (h8500_do_registers_info): New funtion.
2836 (h8500_print_register_hook): Rename print_register_hook, make
2837 static.
2838
2839 * config/h8500/tm-h8500.h: Update copyright.
2840 (DEPRECATED_DO_REGISTERS_INFO): Define.
2841 (h8500_do_registers_info: Declare.
2842 (PRINT_REGISTER_HOOK): Delete macro.
2843 (print_register_hook): Delete function.
2844
0bdd672b
AC
28452002-10-31 Andrew Cagney <cagney@redhat.com>
2846
2847 * z8k-tdep.c (z8k_print_register_hook): Make static.
2848 (z8k_print_registers_info): New static function, clone of
2849 infcmd.c's default_print_registers_info.
2850 (z8k_do_registers_info): New function. Wrap
2851 z8k_print_registers_info.
2852 * config/z8k/tm-z8k.h: Update copyright.
2853 (PRINT_REGISTER_HOOK): Delete macro.
2854 (z8k_print_register_hook): Delete declaration.
2855 (DEPRECATED_DO_REGISTERS_INFO): Define.
2856 (z8k_do_registers_info): Declare.
2857
bf9c25dc
JB
28582002-10-30 Joel Brobecker <brobecker@gnat.com>
2859
2860 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2861 as this is already provided by value.h, and was actually causing
2862 a compilation error because of a conflict in parameter type
2863 declaration due to a missing const keyword.
2864 (low_text_segment_addres): Fix a compilation warning.
2865
2c665b51
DJ
28662002-10-29 Daniel Jacobowitz <drow@mvista.com>
2867
2868 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2869 registers without a name.
2870 (mips_linux_cannot_store_register): Don't store registers without
2871 a name.
2872
e70ea697
DC
28732002-10-28 David Carlton <carlton@math.stanford.edu>
2874
2875 * symtab.c (find_addr_symbol): Delete. (It was already commented
2876 out.)
2877 * symtab.h: Delete prototype for find_addr_symbol.
2878
903ad3a6
AC
28792002-10-26 Andrew Cagney <cagney@redhat.com>
2880
2881 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2882 DO_REGISTERS_INFO.
2883 gdbarch.h, gdbarch.c: Re-generate.
2884 * infcmd.c (default_print_registers_info): Update reference.
2885 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2886 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2887 * sh-tdep.c (sh_gdbarch_init): Ditto.
2888 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2889 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2890
ab91194c
MK
28912002-10-26 Mark Kettenis <kettenis@gnu.org>
2892
e3033f15
MK
2893 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2894 cfi_init_extra_frame_info.
2895 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2896 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2897
b83b026c
MK
2898 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2899 target where necessary. Add more comments and remove the ones
2900 that don't provide any useful information.
2901
267bf4bb
MK
2902 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2903 deprecated_read_register_dummy with
2904 frame_unwind_unsigned_register.
2905
751f1375
MK
2906 * i386-tdep.c (i386_extract_struct_value_address): Use
2907 regcache_raw_read_unsigned instead of
2908 regcache_cooked_read_unsigned since we know that the register
2909 we're reading isn't a pseudo register. Rename variable 'val' into
2910 the more descriptive 'addr'.
2911
26abbdc4
MK
2912 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2913 (x86_64_push_return_address): Add comment.
2914 (x86_64_pop_frame): Make static.
2915 (examine_argument): Clarify comment.
2916 (x86_64_skip_prologue): Make prolog_expact variable static.
2917
9f1549cc
MK
2918 * dwarf2cfi.c: Fix some formatting problems.
2919 (context_cpy, read_encoded_pointer): Clarify comments.
2920
ab91194c
MK
2921 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2922 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2923 i386 target back into x86_64_gdbarch_init. Add some comments and
2924 remove meaningless ones.
2925
72367fb4
AC
29262002-10-25 Andrew Cagney <cagney@redhat.com>
2927
2928 * complaints.h (struct deprecated_complaint): Rename `struct
2929 complaint'.
2930 * complaints.c (complain): Update.
2931 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2932 incorrect comment indicating that "symfile.h" was being included
2933 for the `struct complaint' definition.
2934 * remote-vx.c: Update.
2935 * objc-lang.c: Update.
2936 * xcoffread.c: Update.
2937 * hpread.c: Update.
2938 * mdebugread.c: Update.
2939 * stabsread.c: Update.
2940 * dwarf2read.c: Update.
2941 * dwarfread.c: Update.
2942 * elfread.c: Update.
2943 * coffread.c: Update.
2944 * stabsread.h: Update.
2945 * dbxread.c: Update.
2946 * buildsym.c: Update.
2947 * gdbtypes.c: Update.
2948 * macrotab.c: Update.
2949
1f2baacc
MK
29502002-10-25 Mark Kettenis <kettenis@gnu.org>
2951
0c1a73d6
MK
2952 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2953 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2954 (x86_64_init_abi): ...new function.
2955
6aee4d54 2956 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2957 * i386v-nat.c: Include "i386-tdep.h".
2958
8f9cbe01
AC
29592002-10-25 Andrew Cagney <cagney@redhat.com>
2960
5f11f355
AC
2961 * gdbtypes.c (address_space_name_to_int): Update.
2962 (address_space_int_to_name): Update.
2963 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2964 multi-arch predicate.
2965 (address_class_name_to_type_flags): Ditto.
2966 * gdbarch.h, gdbarch.c: Re-generate.
2967
8f9cbe01
AC
2968 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2969
e8d96a5d
MH
29702002-10-24 Martin M. Hunt <hunt@redhat.com>
2971
2972 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2973
fe39c653
EZ
29742002-10-24 Elena Zannoni <ezannoni@redhat.com>
2975
2976 * symtab.h (INIT_SAL): Delete macro.
2977 (init_sal): Export.
2978 * symtab.c (init_sal): New function.
2979
2980 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2981 to init_sal function call.
2982 (find_sal_from_funcs_and_line): Ditto.
2983 (all_sals_for_line): Ditto.
2984 * breakpoint.c (create_internal_breakpoint): Ditto.
2985 (create_fork_vfork_event_catchpoint): Ditto.
2986 (create_exec_event_catchpoint): Ditto.
2987 (parse_breakpoint_sals): Ditto.
2988 (watch_command_1): Ditto.
2989 (handle_gnu_4_16_catch_command): Ditto.
2990 (clear_command): Ditto.
2991 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2992 * infcmd.c (run_stack_dummy): Ditto.
2993 * infrun.c (process_event_stop_test): Ditto.
2994 (check_sigtramp2): Ditto.
2995 (step_over_function): Ditto.
2996 * linespec.c (decode_line_2): Ditto.
2997 (decode_line_1): Ditto.
2998 * source.c (line_info): Ditto.
2999 * symtab.c (find_pc_sect_line): Ditto.
3000
baed091b
ML
30012002-10-24 Michal Ludvig <mludvig@suse.cz>
3002
3003 * dwarf2cfi.c (struct context)
3004 (struct context_reg): Moved to dwarf2cfi.h
3005 (context_alloc, frame_state_alloc, context_cpy):
3006 Made extern instead of static, removed prototypes.
3007 * dwarf2cfi.h (struct context)
3008 (struct context_reg): New, moved from dwarf2cfi.c
3009 (context_alloc, frame_state_alloc, context_cpy):
3010 New prototypes.
3011 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3012 Changed from static to extern.
3013 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3014 (LINUX_SIGCONTEXT_FP_OFFSET)
3015 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3016 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3017 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3018 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3019 set_gdbarch_*() calls now use x86-64 specific functions
3020 instead of DWARF2 CFI ones.
3021 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3022 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3023 (x86_64_init_extra_frame_info): New prototypes.
3024
c38da1af
DC
30252002-10-23 David Carlton <carlton@math.stanford.edu>
3026
3027 * linespec.c: #include "parser-defs.h".
3028 Delete prototype for find_template_name_end.
3029 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3030
fb9b6b35
JJ
30312002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3032
3033 * NEWS: add recent mi fixes.
3034 * varobj.c (struct varobj): Add new "updated" flag.
3035 (new_variable): Default "updated" flag to 0.
3036 (varobj_set_value): Set "updated" flag to 1 if value
3037 changes.
3038 (varobj_update): Check varobj "updated" flag before
3039 comparing old and refreshed values. Fix for
3040 PR gdb/702.
3041
8da065d5
DC
30422002-10-23 David Carlton <carlton@math.stanford.edu>
3043
3044 * parse.c (parse_exp_1): Use BLOCK_START.
3045 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3046 SYMBOL_BLOCK_VALUE.
3047 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3048
87f2f08c
DC
30492002-10-23 David Carlton <carlton@math.stanford.edu>
3050
3051 * symtab.c: Delete cplusplus_hint.
3052 Delete prototype for find_template_name_end.
3053
88cda038
EZ
30542002-10-23 Elena Zannoni <ezannoni@redhat.com>
3055
3056 * symtab.h: Update comment.
3057
2625d86c
MS
30582002-10-23 Michael Snyder <msnyder@redhat.com>
3059
3060 * printcmd.c (address_info): Restore quotes in output.
3061 * valops.c (value_of_local): Restore quotes in error message.
3062
9cc0d196
EZ
30632002-10-23 Elena Zannoni <ezannoni@redhat.com>
3064
3065 * symtab.c (symbol_demangled_name): New function.
3066 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3067 turning most of it into a function.
3068 (symbol_demangled_name): Export.
3069
19de93d0
MS
30702002-10-23 Michael Snyder <msnyder@redhat.com>
3071
3072 * valops.c (value_of_local): Restore quotes in error message.
3073
89aad1f9
EZ
30742002-10-23 Elena Zannoni <ezannoni@redhat.com>
3075
3076 * symtab.c (symbol_init_language_specific): New function.
3077 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3078 turning most of it into a function.
3079 (symbol_init_language_specific): Export.
3080
d9fa45fe
DC
30812002-10-23 David Carlton <carlton@math.stanford.edu>
3082
3083 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3084 (dwarf_attr_name): Ditto.
3085 (dwarf_type_encoding_name): Ditto.
3086 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3087 (process_die): Handle DW_TAG_namespace,
3088 DW_TAG_imported_declaration, DW_TAG_imported_module.
3089 (read_namespace): New function.
3090
1045b512
JB
30912002-10-22 Joel Brobecker <brobecker@gnat.com>
3092
3093 * configure.in: Define NEW_PROC_API on Interix too.
3094 * configure: Regenerate.
3095
30962002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
3097
3098 * configure: Regenerate using the proper version of autoconf.
3099
3987b9d4
EZ
31002002-10-21 Elena Zannoni <ezannoni@redhat.com>
3101
3102 * findvar.c (read_var_value): Temporarily disable TLS code, until
3103 complete TLS support is added.
3104
9d774e44
EZ
31052002-10-21 Jim Blandy <jimb@redhat.com>
3106 Elena Zannoni <ezannoni@redhat.com>
3107
3108 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3109 for thread local storage locations.
3110 (struct symbol): Add objfile field.
3111 (SYMBOL_OBJFILE): Define.
3112 * dwarf2read.c (is_thread_local): New static variable.
3113 (new_symbol): If variable is in thread local fill in address class
3114 and objfile appropriately.
3115 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3116 stack operation.
3117 * printcmd.c (address_info): Print the information for thread
3118 local storage variable.
3119 * findvar.c (read_var_value): In case of thread local variable,
3120 defer to the target vector code to compute address.
3121
bc4a16ae
EZ
31222002-10-21 Elena Zannoni <ezannoni@redhat.com>
3123
3124 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3125 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3126
407caf07
EZ
31272002-10-21 Elena Zannoni <ezannoni@redhat.com>
3128
3129 * symtab.h (address_class): Rename
3130 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3131 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3132 * printcmd.c (address_info): Ditto.
3133 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3134
005328e3
MK
31352002-10-20 Mark Kettenis <kettenis@gnu.org>
3136
afdb036a
MK
3137 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3138 DBREG_DRX macro to acces debug registers.
3139
ca02e098
MK
3140 * Makefile.in (i386obsd-tdep.o): New target.
3141
03cc47f7
MK
3142 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3143 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3144
005328e3
MK
3145 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3146 * config/i386/obsd.mt: New file.
3147 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3148 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3149 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3150 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3151 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3152 * i386obsd-tdep.c: New file.
3153
9c96f9f2
AF
31542002-10-19 Adam Fedor <fedor@gnu.org>
3155
3156 * objc-exp.y (name_not_typename): Fix invalid comment.
3157
ce1ed485
MK
31582002-10-20 Mark Kettenis <kettenis@gnu.org>
3159
3160 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3161 to allocate partial syms and macro byte caches.
3162
1efc7aaa
DC
31632002-10-18 David Carlton <carlton@math.stanford.edu>
3164
3165 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3166
7e1d63ec
AF
31672002-10-18 Adam Fedor <fedor@gnu.org>
3168
3169 * stabsread.c (find_name_end): New function.
3170 (define_symbol): Use it.
3171
6e8d29a9
DJ
31722002-10-18 Daniel Jacobowitz <drow@mvista.com>
3173
3174 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3175 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3176 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3177 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3178
1efc7aaa 31792002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
3180
3181 * symfile.h: Add opaque declaration for struct obstack.
3182 Declare obsavestring to take a const char *.
3183 * symfile.c (obsavestring): Make first argument a const char *.
3184
1aeae86e
AF
31852002-10-16 Adam Fedor <fedor@gnu.org>
3186
3187 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3188 names when matching breakpoints in current file.
3189
8b2dbe47
KB
31902002-10-16 Kevin Buettner <kevinb@redhat.com>
3191
3192 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3193 (read_tag_pointer_type): Add address class support.
3194 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3195 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3196 New methods.
3197 * gdbarch.h, gdbarch.c: Regenerate.
3198 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3199 (make_type_with_address_space, recursive_type_dump): Add address
3200 class support.
3201 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3202 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3203 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3204
74451869
KD
32052002-10-16 Klee Dienes <kdienes@apple.com>
3206
3207 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3208 to get the last character of a char[] buffer, not
3209 name[sizeof(vptr_name)-1].
3210
ff4cb3e8
AF
32112002-10-14 Adam Fedor <fedor@gnu.org>
3212
3213 * symtab.h: New objc_specific struct.
3214 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3215 (SYMBOL_DEMANGLED_NAME): Likewise.
3216
da2cf7e0
AF
32172002-10-14 Adam Fedor <fedor@gnu.org>
3218
3219 * symfile.c (init_filename_language_table): Add ObjC file extension.
3220
4a351cef
AF
32212002-10-14 Adam Fedor <fedor@gnu.org>
3222
3223 * utils.c (puts_filtered_tabular): New function.
3224 (fprintf_symbol_filtered): Get ObjC demangled name.
3225 * defs.h (puts_filtered_tabular): Declared.
3226
9750e763
KB
32272002-10-14 Kevin Buettner <kevinb@redhat.com>
3228
3229 * c-lang.h (c_type_print_varspec_prefix): Delete.
3230 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3231 ``need_post_space'' parameter. Adjust all callers.
3232
eee771c1
DJ
32332002-10-14 Daniel Jacobowitz <drow@mvista.com>
3234
3235 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3236 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3237 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3238 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3239
46c82446
AF
32402002-10-13 Adam Fedor <fedor@gnu.org>
3241
3242 * source.c (print_source_lines): Update comments.
3243
d069f99d
AF
32442002-10-13 Adam Fedor <fedor@gnu.org>
3245
3246 * valops.c (value_of_local): New function.
3247 (value_of_this): Use it.
3248 * value.h (value_of_local): Declared.
3249
53c551b7
AF
32502002-10-13 Adam Fedor <fedor@gnu.org>
3251
3252 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3253 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3254
eb392fbf
AF
32552002-10-12 Adam Fedor <fedor@gnu.org>
3256
3257 * language.c (binop_result_type): Add language_objc to case.
3258 (integral_type): Likewise.
3259 (character_type): Likewise.
3260 (string_type): Likewise.
3261 (boolean_type): Likewise.
3262 (structured_type): Likewise.
3263 (binop_type_check): Likewise.
3264
e2b23ee9
AF
32652002-10-11 Adam Fedor <fedor@gnu.org>
3266
3267 * printcmd.c (address_info): Print 'self' for ObjC.
3268
b01ab485
AF
32692002-10-11 Adam Fedor <fedor@gnu.org>
3270
3271 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3272 OP_SELF.
3273
806e6073
AF
32742002-10-11 Adam Fedor <fedor@gnu.org>
3275
3276 * language.h (CAST_IS_CONVERSION): Add language_objc.
3277
50f85cdf
AF
32782002-10-11 Adam Fedor <fedor@gnu.org>
3279
3280 * defs.h (enum language): Add language_objc.
3281
0d540cdf
KD
32822002-10-11 Klee Dienes <kdienes@apple.com>
3283
69266111 3284 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3285 * gdbcore.h (read_memory_typed_address): Add prototype.
3286 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3287 to read a value destined for a CORE_ADDR, not read_memory_integer.
3288 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3289 (f77_get_dynamic_lowerbound): Ditto.
3290
d5dc7960
MH
32912002-10-11 Martin M. Hunt <hunt@redhat.com>
3292
3293 * utils.c (string_to_core_addr): After turning string into
3294 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3295 which will do necessary sign-extension, etc.
3296
8343f86c
DJ
32972002-10-11 Daniel Jacobowitz <drow@mvista.com>
3298
3299 * c-exp.y (THIS): Delete token and grammar rule.
3300 (yylex): Don't return THIS.
3301 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3302 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3303 * demangle.c (cplus_markers): Update comment. Put '$'
3304 first. Remove CPLUS_MARKER.
3305 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3306 * jv-exp.y (THIS): Delete token and grammar rule.
3307 (yylex): Don't return THIS.
3308 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3309 * objc-exp.y (THIS): Delete token and grammar rule.
3310 (yylex): Don't return THIS.
3311 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3312 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3313 (read_member_functions): Likewise for opname.
3314 (read_tilde_fields): Use is_cplus_marker.
3315
3316 * defs.h (CPLUS_MARKER): Don't define.
3317 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3318 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3319 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3320 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3321 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3322
3323 * config/i386/tm-i386v4.h: Delete file.
3324 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3325 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3326 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3327 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3328 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3329 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3330 * config/i386/i386v4.mt (TM_FILE): Likewise.
3331 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3332
967c0d83
MM
33332002-10-10 Marko Mlinar <markom@opencores.org>
3334
3335 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3336 accidentially not commited 2002-10-09
3337 * gdbarch.h, gdbarch.c: Re-generate.
3338
f74fa174
MM
33392002-10-09 Marko Mlinar <markom@opencores.org>
3340
3341 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3342 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3343 * gdbarch.h, gdbarch.c: Re-generate.
3344
57349743
JB
33452002-10-08 Petr Sorfa <petrs@caldera.com>
3346
3347 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3348
3349 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3350 so we can work on more than one compilation unit at a time. This
3351 helps prepare GDB to handle inter-CU die references.
3352 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3353 the code to be defined before struct comp_unit_head.
3354 (comp_unit_head): Added new members - offset, cu_head,
3355 begin_die, next and dwarf2_abbrevs.
3356 (dwarf2_abbrevs): Removed single static var; now member of
3357 struct comp_unit_head.
3358 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3359 members.
3360 (psymtab_to_symtab_1): Changed to work with the new
3361 struct comp_unit_head.
3362 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3363 constructs the dwarf2_abbrevs[] inside the cu_header.
3364 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3365 dwarf2_abbrev table to clean up.
3366 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3367 handling of dwarf2_abbrevs inside the cu_header.
3368 (read_partial_die): Now supports the call to the new
3369 dwarf2_lookup_abbrev.
3370 (read_full_die): Now supports the call to the new
3371 dwarf2_lookup_abbrev.
3372
4092aadb
CF
33732002-10-06 Christopher Faylor <cgf@redhat.com>
3374
3375 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3376 insure that shell variables, such as "transformed_name" are propagated
3377 to later shell statements in rule.
3378
af0b2512
MK
33792002-10-06 Mark Kettenis <kettenis@gnu.org>
3380
3381 * config/i386/nm-i386sco.h: Add protection against
3382 multiple-inclusion. Include "i386/nm-i386v.h".
3383 (REGISTER_U_ADDR): Remove define.
3384 (i386_register_u_addr): Remove prototype.
3385
d6020d45
MS
33862002-10-04 Michael Snyder <msnyder@redhat.com>
3387
3388 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3389 before treating it as a single-step event.
3390
7248f48e
AF
33912002-10-03 Adam Fedor <fedor@gnu.org>
3392
3393 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3394 (objc_demangle): Remove assignment in if statements, Replace
3395 free with xfree.
3396 (add_msglist): Likewise.
3397 (end_msglist): Likewise.
3398 (complare_selectors): Likewise.
3399 (selectors_info): Likewise.
3400 (compare_classes): Likewise.
3401 (classes_info): Likewise.
3402 (print_object_command): Likewise.
3403 (find_objc_msgcall_submethod): Replace PTR with void *.
3404 * objc-lang.h: Remove check for __STDC__.
3405
52c6a6ac
JJ
34062002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3407
3408 * ui-out.h (ui_out_field_fmt_int): New prototype.
3409 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3410 of field width and alignment.
3411 * stack.c (print_frame_info_base): When printing frame level, use
3412 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3413 PR gdb/192
3414
7e3cec17
JJ
34152002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3416
3417 * MAINTAINERS: Add self to Write After Approval list.
3418
a58dd373
EZ
34192002-10-02 Elena Zannoni <ezannoni@redhat.com>
3420
3421 * infcmd.c (interrupt_target_command_wrapper): Delete.
3422 (interrupt_target_command): Make non static.
3423 (nofp_registers_info): Make static.
3424 * stack.c (return_command_wrapper): Delete.
3425 (return_command): Make non static.
3426
cee6ddeb
EZ
34272002-10-02 Elena Zannoni <ezannoni@redhat.com>
3428
3429 * event-top.c (gdb_setup_readline): New function. Code moved from
3430 _initialize_event_loop().
3431 (_initialize_event_loop): Call gdb_setup_readline().
3432
c4ed33b9
AC
34332002-10-02 Andrew Cagney <ac131313@redhat.com>
3434
3435 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3436 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3437 * gdbarch.h, gdbarch.c: Re-generate.
3438
cef4f5dd
DJ
34392002-10-02 Daniel Jacobowitz <drow@mvista.com>
3440
3441 Fix PR gdb/778
3442 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3443 before recursing.
3444 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3445 of fill_in_vptr_fieldno.
3446
36dc181b 34472002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3448
36dc181b
EZ
3449 * inferior.h (registers_info, stepi_command, nexti_command,
3450 continue_command, interrupt_target_command): Export from infcmd.c.
3451 * frame.h (args_info, selected_frame_level_changed_hook,
3452 return_command): Export from stack.c.
3453 * v850ice.c (stepi_command, nexti_command, continue_command): use
3454 prototypes from inferior.h.
3455 * tracepoint.c (registers_info, args_info, locals_info): Use
3456 prototypes from frame.h and inferior.h.
3457 * Makefile.in (mi-main.o): Add dependency on frame.h.
3458
6f99cb26
AC
34592002-10-02 Andrew Cagney <ac131313@redhat.com>
3460
da3eff49
AC
3461 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3462 value in register 3 adjusted by ppc_gp0_regnum.
3463
6f99cb26
AC
3464 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3465
da615bee
MM
34662002-10-02 Marko Mlinar <markom@opencores.org>
3467
3468 * MAINTAINERS: Add myself to the Write After Approval list.
3469
d154bee2
AO
34702002-10-01 Alexandre Oliva <aoliva@redhat.com>
3471
62a49b2c
AO
3472 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3473 of the section for the N64 ABI, fixed.
3474
d154bee2
AO
3475 * config/mips/tm-irix6.h: Include solib.h.
3476
ed348acc
EZ
34772002-10-01 Elena Zannoni <ezannoni@redhat.com>
3478
3479 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3480 GNU operators.
3481
da0f9dcd
AC
34822002-10-01 Andrew Cagney <ac131313@redhat.com>
3483
3484 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3485 and that "mi0" syntax has been removed.
3486
bdf64bac
DC
34872002-09-30 David Carlton <carlton@math.stanford.edu>
3488
3489 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3490 * ppc-sysv-tdep.c: #include "gdb_string.h".
3491 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3492 pacify GCC.
3493
54c2a1e6
AC
34942002-10-01 Andrew Cagney <ac131313@redhat.com>
3495
3496 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3497 "vrsave"'s register number.
3498
cedea778
AC
34992002-09-30 Andrew Cagney <ac131313@redhat.com>
3500
3501 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3502 use frame_unwind_signed_register to obtain the PC.
3503 (mips_frame_chain): Handle a generic dummy frame.
3504 (mips_init_extra_frame_info): When a generic dummy frame, don't
3505 re-compute the frame base.
3506 (mips_pop_frame): Handle generic dummy frames.
3507 (mips_gdbarch_init): When generic dummy frames, set
3508 use_generic_dummy_frames, push_dummy_frame to
3509 generic_push_dummy_frame, pc_in_call_dummy to
3510 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3511 generic_save_dummy_frame_tos.
3512
68315eb8
AC
35132002-09-30 Andrew Cagney <ac131313@redhat.com>
3514
3515 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3516 against TOP when TOP was explictly set.
3517 (generic_push_dummy_frame): Set TOP to zero.
3518
3b8630c3
EZ
35192002-09-30 Elena Zannoni <ezannoni@redhat.com>
3520
3521 * event-loop.c (start_event_loop): Rename variable 'result' to
3522 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3523
28ee05e9
KS
35242002-09-30 Keith Seitz <keiths@redhat.com>
3525
3526 * gdb-events.sh (selected_thread_changed): New event.
3527 * gdb-events.c: Regenerated.
3528 * gdb-events.h: Regenerated.
3529
6eecb1c8
HPN
35302002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3531
3532 * MAINTAINERS: Add self to Write After Approval list.
3533
92df71f0
FN
35342002-09-30 Fernando Nasser <fnasser@redhat.com>
3535
3b8630c3
EZ
3536 * disasm.c: New file.
3537 * disasm.h: New file.
92df71f0
FN
3538 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3539 (compare_lines): Ditto.
3540 (dump_insns): Ditto.
3b8630c3
EZ
3541 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3542 argument.
92df71f0 3543 (do_assembly_only): Ditto.
3b8630c3
EZ
3544 (do_disassembly): Renamed to gdb_disassembly and moved to
3545 disasm.c. Sdded uiout argument.
3546 * Makefile.in: Add new files. Reorder SFILES list. Update
3547 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3548
0c22854d
AC
35492002-09-29 Andrew Cagney <ac131313@redhat.com>
3550
3551 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3552 bfd/elf64-alpha-fbsd.c.
3553
e67f2023
AC
35542002-09-29 Andrew Cagney <ac131313@redhat.com>
3555
3556 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3557 i386gnu-tdep.c.
3558
89396210
AC
35592002-09-29 Andrew Cagney <ac131313@redhat.com>
3560
3561 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3562 __FUNCTION__.
3563 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3564 function name.
3565 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3566 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3567 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3568 (S_msg_sig_post_reply): Ditto.
3569
7079c36c
CV
35702002-09-28 Corinna Vinschen <vinschen@redhat.com>
3571
89396210
AC
3572 * sh-tdep.c (sh_use_struct_convention): Use definition according
3573 to ABI.
7079c36c
CV
3574 (sh_push_arguments): Store in register with correct endianess.
3575 (sh_default_store_return_value): Ditto.
3576 (sh_gdbarch_init): Set sizeof long double to 8.
3577
975ac915
MK
35782002-09-27 Mark Kettenis <kettenis@gnu.org>
3579
3580 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3581 Fix some whitespace problems.
3582
9bbe19fb
DC
35832002-09-27 David Carlton <carlton@math.stanford.edu>
3584
3585 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3586 (mcore-tdep.o): Ditto.
3587 (ns32k-tdep.o): Ditto.
3588 (ns32knbsd-tdep.o): Ditto.
3589 (sh3-rom.o): Ditto.
3590 (vax-tdep.o): Ditto.
3591 * cris-tdep.c: #include "gdb_string.h"
3592 * mcore-tdep.c: Ditto.
3593 * ns32k-tdep.c: Ditto.
3594 * ns32knbsd-tdep.c: Ditto.
3595 * sh3-rom.c: Ditto.
3596 * vax-tdep.c: Ditto.
3597
43b2fdc7
DC
35982002-09-27 David Carlton <carlton@math.stanford.edu>
3599
3600 * config/djgpp/fnchange.lst: Add entries for
3601 gdb/testsuite/gdb.c++/m-static files.
3602
e8cfbbd9
JW
36032002-09-27 Jim Wilson <wilson@redhat.com>
3604
3605 * MAINTAINERS: Add myself to the Write After Approval list.
3606
43b2fdc7 36072002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3608
3609 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3610
3611
9f3b7f07
AC
36122002-09-26 Andrew Cagney <ac131313@redhat.com>
3613
3614 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3615 frame.
3616
11269d7e
AC
36172002-09-26 Andrew Cagney <ac131313@redhat.com>
3618
3619 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3620 (rs6000_struct_return_address): Delete variable.
3621 (rs6000_store_struct_return): Update.
3622 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3623 deprecated_extract_struct_value_address.
3624 (rs6000_frame_align): New function.
3625 (rs6000_gdbarch_init): Set frame_align.
3626
f15ab4a7
AC
36272002-09-26 Andrew Cagney <ac131313@redhat.com>
3628
3629 From Grace Sainsbury <graces@redhat.com>:
3630 * Makefile.in (gdbtk-main.o): New target.
3631 (gdb.o): New target.
3632 (main_h): Define.
3633 (main.o): Update dependencies.
3634 (gdb$(EXEEXT)): Add gdb.o.
3635 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3636 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3637 (SUBDIR_GDBTK_CLEAN): Set.
3638 (install-gdbtk): Install the insight binary.
3639 (uninstall-gdbtk): New target.
3640 (all-gdbtk, clean-gdbtk): New rule.
3641 * top.c (use_windows): Default to zero.
3642 * main.c: Include "main.h".
3643 (main): Delete.
3644 (struct captured_main_args): Delete.
3645 (gdb_main): New function.
3646 * main.h: New file.
3647 * gdb.c: New File.
3648
e36180d7
AC
36492002-09-25 Andrew Cagney <cagney@redhat.com>
3650
3651 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3652 (frame_map_regnum_to_name): New function.
3653 (frame_map_name_to_regnum): New function.
3654 * frame.h (frame_map_name_to_regnum): Declare.
3655 (frame_map_regnum_to_name): Declare.
3656 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3657 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3658 * parse.c: Do not include "builtin-regs.h".
3659 (target_map_name_to_register): Delete function.
3660 (write_dollar_variable): Use frame_map_name_to_regnum.
3661 * parser-defs.h (target_map_name_to_register): Delete declaration.
3662 * expprint.c: Include "frame.h".
3663 (print_subexp): Use frame_map_regnum_to_name.
3664 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3665 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3666
8b69000d
AC
36672002-09-25 Andrew Cagney <ac131313@redhat.com>
3668
3669 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3670 wasn't saved, and the next innermost frame is a dummy, return the
3671 dummy frame's link register.
3672
046ca86a
JB
36732002-09-24 Jim Blandy <jimb@redhat.com>
3674
3675 Fix from Paul Breed:
3676 * main.c (captured_main): Add a `break' after the case for 'b'.
3677
94b66fa7
KS
36782002-09-24 Keith Seitz <keiths@redhat.com>
3679
3680 * varobj.c (c_type_of_child): Use get_target_type instead
3681 of TYPE_TARGET_TYPE.
3682
c214a6fd
FN
36832002-09-22 Fernando Nasser <fnasser@redhat.com>
3684
53cb0458
FN
3685 * source.c (get_current_or_default_source_symtab_and_line): Remove
3686 function.
3687 (set_default_source_symtab_and_line): New function. Attempts to
3688 determine a source file to list lines from if one is not currently
3689 defined.
3690 (get_current_source_symtab_and_line): Initialize sal.pc and
3691 sal.end fields.
3692 (set_current_source_symtab_and_line): Mark argument as const.
3693 * source.h: Update declarations and comments.
3694 * linespec.c (decode_line_1): Replace call to removed routine above.
3695 * stack.c (print_frame_info_base): Ditto.
3696 * cli/cli-cmds.c (edit_command): Ditto.
3697 (list_command): Ditto.
3698
36992002-09-22 Fernando Nasser <fnasser@redhat.com>
3700
d6020d45 3701 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3702 sal.pc and sal.end fields.
c214a6fd
FN
3703 (get_current_or_default_source_symtab_and_line): Ditto.
3704 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3705 so we do not cause a new source symtab to be searched for (reverting an
3706 unintentional change from the 2002-09-20 patch).
3707 * scm-lang.c (scm_unpac): Ditto.
3708
cc3b68a5
AC
37092002-09-21 Andrew Cagney <cagney@redhat.com>
3710
3711 * complaints.c (symfile_explanations): Remove new-line from
3712 ``isolated_message''.
3713 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3714 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3715
5835abe7
NC
37162002-09-20 Nick Clifton <nickc@redhat.com>
3717
3718 * NEWS: Announce that V850EA ISA is no longer supported.
3719 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3720
a15ef5f5
DC
37212002-09-20 David Carlton <carlton@math.stanford.edu>
3722
06ba1b39
DC
3723 * Makefile.in (c-lang.o): Correct dependencies.
3724 (utils.o): Gather dependencies.
3725 (charset.o): Move.
a15ef5f5
DC
3726 * c-lang.c: #include "gdb_string.h"
3727
87885426
FN
37282002-09-20 Fernando Nasser <fnasser@redhat.com>
3729
3730 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3731 * cli/cli-cmds.c (list_command): New function. Implements the new
3732 cli edit command.
3733 (_init_cli_cmds): Add new command definition.
3734 * gdb.1: Document edit command.
3735 * doc/gdb.texinfo: Document edit command.
3736
37372002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3738
3739 * source.c: Make global variables current_source_symtab and
3740 current_source_line static.
3741 (list_command): Moved to cli/cli-cmds.c.
3742 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3743 (get_first_line_listed): New accessor function.
3744 (get_lines_to_list): New accessor function.
3745 (get_current_source_symtab_and_line): New function. Retrieves the
3746 position in the source code that we consider current.
3747 (get_current_or_default_source_symtab_and_line): New function.
3748 Like the above but attempts to determine a default position if one
3749 is not currently defined.
3750 (set_current_source_symtab_and_line): New function. Sets the source
3751 code position considered current and returns the previously set one.
3752 (clear_current_source_symtab_and_line): Reset stored information about
3753 a current source line.
3754 (_initialize_source): Remove registration for the "list" command and
3755 its alias.
3756 * source.h: Add declarations for the new functions above.
3757 * symtab.h: Remove declarations for the global variables mentioned
3758 above.
3759 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3760 obtain current source line.
3761 * linespec.c (decode_line_1): Ditto.
3762 * macroscope.c (default_macro_scope): Ditto.
3763 * scm-lang.c (scm_unpac): Ditto.
3764 * stack.c (print_frame_info_base): Ditto.
3765 * symfile.c (clear_symtab_users): Ditto.
3766 * symtab.c (decode_line_spec): Ditto.
3767 * cli/cli-cmds.c (list_command): Moved here from source.c.
3768 (ambiguous_line_spec): Moved here from source.c.
3769 (_init_cli_cmds): Add definition for "list" and its alias.
3770 * Makefile.in: Update dependencies.
3771
ddd216ea
CV
37722002-09-20 Corinna Vinschen <vinschen@redhat.com>
3773
3774 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3775 with what gcc thinks is correct.
3776
6d305052
CV
37772002-09-20 Corinna Vinschen <vinschen@redhat.com>
3778
3779 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3780 multiple register push instruction.
3781
234b45d4
KB
37822002-09-19 Jim Blandy <jimb@redhat.com>
3783
3784 Add support for distinct host and target character sets.
3785 * charset.c, charset.h: New files.
3786 * c-exp.y: #include "charset.h".
3787 (yylex): Convert character and string literals to the target
3788 character set, before returning them as the semantic value of the
3789 token.
3790 * c-lang.c: #include "charset.h".
3791 (c_emit_char): Use charset-specific methods to recognize
3792 characters with backslash escape forms, to decide which characters
3793 to print literally and which to print using numeric escape
3794 sequences, and to convert target characters to host characters
3795 before printing.
3796 * utils.c: #include "charset.h".
3797 (no_control_char_error): New function.
3798 (parse_escape): Use charset-specific methods to recognize
3799 backslash escapes, parse `control character' notation, and convert
3800 characters from the host character set to the target character set.
3801 * configure.in: Set the default host character set.
3802 Check where to find iconv, and what its argument types might be.
3803 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3804 * Makefile.in (SFILES): List charset.c.
3805 (COMMON_OBS): List charset.o.
3806 (charset.o): New rule.
3807 (charset_h): New header dependency variable.
3808 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3809 (LIBICONV): New variable, set by configure.
3810 (CLIBS): Include $(LIBICONV) here.
3811 * aclocal.m4, config.in, configure: Regenerated.
3812
525d6a61
JB
38132002-09-19 Joel Brobecker <brobecker@gnat.com>
3814
3815 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3816 bison 1.35 warning.
3817
3ed93867
RE
38182002-09-19 Richard Earnshaw <rearnsha@arm.com>
3819
3820 * gdb_mbuild.sh: New file.
3821
437666f8
AC
38222002-09-19 Andrew Cagney <ac131313@redhat.com>
3823
3824 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3825
389e51db
AC
38262002-09-18 Andrew Cagney <ac131313@redhat.com>
3827
3828 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3829 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3830 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3831 valops.c, value.h: Revert previous change.
3832
3b4efeaa
MS
38332002-09-18 Michael Snyder <msnyder@redhat.com>
3834
3835 Preliminary support for Objective-C:
3836 * defs.h (language_objc): New enum value.
3837 (puts_filtered_tabular): Declaration only, exported from utils.c.
3838 (skip_quoted): Delete, declared in completer.h.
3839 * c-exp.y: Include completer.h.
3840 * p-exp.y: Ditto.
3841 * jv-exp.y: Ditto.
3842 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3843 New operator enum values.
3844 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3845 * language.c (binop_result_type): Handle language_objc case.
3846 (integral_type, character_type, string_type, boolean_type,
3847 structured_type, binop_type_check): Ditto.
3848 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3849 (struct objc_specific): Add to general_symbol_info.
3850 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3851 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3852 * parser-defs.h (struct objc_class_str): New struct type.
3853 (start_msglist, end_msglist, add_msglist): Declaration only,
3854 exported from objc-lang.c.
3855 * value.h (value_of_local, value_nsstring,
3856 call_function_by_hand_expecting_type): Exported from valops.c.
3857 * valops.c (find_function_addr): Export.
3858 (call_function_by_hand_expecting_type): New function.
3859 (value_of_local): New function.
3860 * symfile.c (init_filename_language_table): Add ".m" extension
3861 for Objective-C.
3862 * utils.c (puts_filtered_tabular): New function.
3863 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3864 (set/show demangle): Extend help-string to refer to ObjC.
3865 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3866 * stabsread.c (symbol_reference_defined): Objective-C symbols
3867 may contain colons: make allowances when scanning stabs strings
3868 for colons.
3869 (objc_find_colon): New function.
3870 * printcmd.c (address_info): If language == objc then print
3871 "self" instead of "this".
3872 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3873 OP_NSSTRING, and OP_SELF.
3874 (prefixify_subexp): Ditto.
3875 * source.c (print_source_lines): Mention objc in comment.
3876 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3877 method names.
3878
b9caf505
AC
38792002-09-18 Andrew Cagney <ac131313@redhat.com>
3880
3881 * complaints.h: Update copyright.
3882 (struct complaints): Declare.
3883 (struct complaint): Make `message' constant.
3884 (internal_complaint): Declare.
3885 (complaint): Declare.
3886 (complaint_root): Delete declaration.
3887 (symfile_complaints): Delete declaration.
3888 (struct complaints): Add opaque declaration.
3889 (clear_complaints): Add a complaints parameter.
3890 * complaints.c: Update copyright.
3891 (enum complaint_series): Define.
3892 (complaint_root): Delete.
3893 (struct complaints): Define.
3894 (complaint_sentinel, symfile_complaint_book): New variables.
3895 (symfile_explanations, symfile_complaints): New variables.
3896 New variables.
3897 (get_complaints): New function.
3898 (vcomplaint): New function.
3899 (complaint): New function.
3900 (internal_complaint): New function.
3901 (complain): Call vcomplain with symfile_complaint.
3902 (clear_complaints): Rewrite.
3903 (_initialize_complaints): Use add_setshow_command.
3904 * Makefile.in (complaints.o): Update dependencies.
3905 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3906 to call to clear_complaints.
3907 (new_symfile_objfile, reread_symbols): Ditto.
3908 (oldsyms_complaint): Delete.
3909 (empty_symtab_complaint, unknown_option_complaint): Delete.
3910 (free_named_symtabs): Use complaint instead of complain.
3911
d2e6263c
MS
39122002-09-18 Michael Snyder <msnyder@redhat.com>
3913
5fb2031a
AC
3914 Contributed by Apple Computer, Inc. Merged with current sources
3915 by Adam Fedor <fedor@doc.com> [cagney].
3916
d2e6263c
MS
3917 * objc-lang.c: First clean-up round: comments, indentation.
3918 * objc-lang.h: Ditto.
3919 * objc-lang.y: Ditto.
3920
dec43320
AC
39212002-09-18 Andrew Cagney <ac131313@redhat.com>
3922
3923 * maint.c (maintenance_internal_error): Print the parameter as the
3924 error message.
3925 (maintenance_internal_warning): New function.
3926 (_initialize_maint_cmds): Add command `maint internal-warning'.
3927
3928 * defs.h (internal_warning, internal_vwarning): Declare.
3929 * utils.c (struct internal_problem): Define.
3930 (internal_vproblem): New function.
3931 (internal_warning): New function.
3932 (internal_vwarning): New function.
3933 (internal_warning_problem, internal_error_problem): New variables.
3934 (internal_verror): Just call internal_vproblem.
3935
b81654f1
MS
39362002-09-18 Michael Snyder <msnyder@redhat.com>
3937
3938 * objc-lang.c: New file, support for Objective-C.
3939 Preliminary check-in, not yet integrated into gdb.
3940 * objc-lang.h: New file.
3941 * objc-exp.y: New file.
3942
0542c381
AC
39432002-09-18 Andrew Cagney <ac131313@redhat.com>
3944
7bda5e4a
AC
3945 * infrun.c (signal_stop_update): Convert definition to ISO C.
3946 (signal_print_update): Ditto.
3947 (signal_pass_update): Ditto.
3948 * inflow.c (terminal_save_ours): Ditto.
3949
5247b418
AC
3950 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3951 comments.
3952
fc60962c
AC
3953 * config/djgpp/fnchange.lst: Handle name clashes between
3954 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3955 bfd/coff-tic80.c.
3956
0542c381
AC
3957 * i386-linux-tdep.h: Fix tipo.
3958
5b924b9b
AF
39592002-09-18 Adam Fedor <fedor@gnu.org>
3960
3961 * MAINTAINERS: Add myself to the Write After Approval list.
3962
5afc051b
JB
39632002-09-18 Jim Blandy <jimb@redhat.com>
3964
3965 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3966 texthigh and textlow to reader-specific structs caused
3967 objfile_relocate to miss them. This is fixable, but the work that
3968 the change was supposed to prepare GDB for never got done anyway.
3969
eb944380
DC
39702002-09-18 David Carlton <carlton@math.stanford.edu>
3971
3972 * MAINTAINERS: Alphabetize Write After Approval list.
3973
948e66d9
DJ
39742002-09-18 Daniel Jacobowitz <drow@mvista.com>
3975
3976 Fix PR gdb/709
3977 * values.c (value_static_field): Call read_var_value.
3978
dc604539
AC
39792002-09-18 Andrew Cagney <ac131313@redhat.com>
3980
3981 * valops.c (hand_function_call): Align the initial stack pointer
3982 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3983 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3984 return value.
3985 * mips-tdep.c (mips_frame_align): New function.
3986 (mips_gdbarch_init): Set frame_align.
3987 * gdbarch.sh (FRAME_ALIGN): New method.
3988 * gdbarch.h, gdbarch.c: Re-generate.
3989
cb7e422f
ML
39902002-09-18 Michal Ludvig <mludvig@suse.cz>
3991
3992 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3993 registers.
3994
a094c6fb
AC
39952002-09-17 Andrew Cagney <ac131313@redhat.com>
3996
3997 * NEWS: Mention that MIPS $fp behavior changed.
3998 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3999 reference to FP_REGNUM.
4000 (mipsnbsd_cannot_store_register): Ditto.
4001 * mips-linux-nat.c: Update copyright.
4002 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4003 (mips_linux_cannot_store_register): Ditto.
4004 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4005 * config/mips/tm-mips.h: Update copyright.
4006 (FP_REGNUM): Delete macro.
4007 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4008 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4009 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4010 (mips_r3041_reg_names, mips_r3051_reg_names)
4011 (mips_r3081_reg_names): Replace "fp" with "".
4012 Fix PR gdb/480.
4013
45cf40d1
TR
40142002-09-17 Theodore A. Roth <troth@verinet.com>
4015
4016 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4017 generic_read_register_dummy() (PR gdb/703).
4018 (avr_push_return_address): #if 0 out unused vars.
4019 (avr_gdbarch_init): Enable use of avr_push_return_address().
4020
c7e701b5
MS
40212002-09-17 Michael Snyder <msnyder@redhat.com>
4022
d76ba2a5 4023 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
4024 RTE will take care of it.
4025
20bcf01c
AC
40262002-09-17 Andrew Cagney <ac131313@redhat.com>
4027
4028 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4029 invalid, return SP_REGNUM.
4030
009a9971 40312002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
4032
4033 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4034 point registers without sign extension.
4035
135c175f
AC
40362002-09-17 Andrew Cagney <cagney@redhat.com>
4037
4038 * blockframe.c (deprecated_read_register_dummy): Rename
4039 generic_read_register_dummy.
4040 * frame.c (frame_unwind_signed_register): New function.
4041 (frame_unwind_unsigned_register): New function.
4042 * frame.h (frame_unwind_signed_register): Declare.
4043 (frame_unwind_unsigned_register): Declare.
4044 (deprecated_read_register_dummy): Rename
4045 generic_read_register_dummy.
4046
4047 * h8300-tdep.c (h8300_frame_chain): Update.
4048 (h8300_frame_saved_pc): Update.
4049 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4050 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4051 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4052 (s390_frame_chain): Update.
4053 * v850-tdep.c (v850_find_callers_reg): Update.
4054 (v850_frame_saved_pc): Update.
4055 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4056 (m32r_find_callers_reg): Update.
4057 (m32r_frame_saved_pc): Update.
4058 * sh-tdep.c (sh_find_callers_reg): Update.
4059 (sh64_get_saved_pr): Update.
4060 (sh_init_extra_frame_info): Update.
4061 (sh_init_extra_frame_info): Update.
4062 (sh64_init_extra_frame_info): Update.
4063 (sh64_init_extra_frame_info): Update.
4064 * mcore-tdep.c (mcore_find_callers_reg): Update.
4065 (mcore_frame_saved_pc): Update.
4066 (mcore_init_extra_frame_info): Update.
4067 * i386-tdep.c (i386_frame_saved_pc): Update.
4068 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4069 (ia64_init_extra_frame_info): Update.
4070 (ia64_init_extra_frame_info): Update.
4071 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4072 * cris-tdep.c (cris_init_extra_frame_info): Update.
4073 * avr-tdep.c (avr_frame_chain): Update.
4074 (avr_init_extra_frame_info): Update.
4075 (avr_frame_saved_pc): Update.
4076 * arm-tdep.c (arm_find_callers_reg): Update.
4077 (arm_init_extra_frame_info): Update.
4078 (arm_frame_saved_pc): Update.
4079
a741e514
TT
40802002-09-17 Tom Tromey <tromey@redhat.com>
4081
4082 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4083 is "'".
4084
d1a8e808
CV
40852002-09-17 Corinna Vinschen <vinschen@redhat.com>
4086
4087 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4088 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4089 NEXT_PROLOGUE_INSN.
4090 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4091 NEXT_PROLOGUE_INSN.
4092
d9025a18
JB
40932002-09-16 Joel Brobecker <brobecker@gnat.com>
4094
4095 * osfsolib.c: Remove file, replaced by solib-osf.c.
4096 * Makefile.in: Remove compilation rules for osfsolib.c.
4097
1b2ef1b6
DC
40982002-09-16 David Carlton <carlton@math.stanford.edu>
4099
4100 * cp-valprint.c (cp_print_class_method): Correct args to
4101 check_stub_method_group.
4102
928e48af
CV
41032002-09-16 Corinna Vinschen <vinschen@redhat.com>
4104
4105 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4106 `set architecture'. Unify naming convention of functions.
4107 (h8300_skip_prologue): Improve prologue analysis.
4108 (h8300_push_arguments): Rewritten to more closely match GCC's
4109 bizarre argument-passing behavior, along with the comment describing
4110 said behavior.
4111 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4112 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4113 sim, remote-e7000.c, remote-hms.c and remote.c
4114
5e3397bb
MK
41152002-09-15 Mark Kettenis <kettenis@gnu.org>
4116
4117 * i386-tdep.c (gdb_print_insn_i386): Removed.
4118 (i386_print_insn): New function.
4119 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4120 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4121 tm_print_insn_info.
4122
f710f4fc
MK
41232002-09-14 Mark Kettenis <kettenis@gnu.org>
4124
4125 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4126 zero.
4127
db54fef4
CV
41282002-09-14 Corinna Vinschen <vinschen@redhat.com>
4129
4130 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4131 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4132 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4133
2becadee
CF
41342002-09-13 Christopher Faylor <cgf@redhat.com>
4135
4136 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4137
de17c821
DJ
41382002-09-13 Daniel Jacobowitz <drow@mvista.com>
4139
4140 * gdbtypes.c (check_stub_method): Make static.
4141 (check_stub_method_group): New function.
4142 * gdbtypes.h: Update prototypes.
4143 * cp-support.c: New file.
4144 * cp-support.h: New file.
4145
4146 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4147 (update_method_name_from_physname): New function.
4148 (read_member_functions): Correct method names for operators
4149 and v3 constructors/destructors. Separate v2 constructors and
4150 destructors.
4151 * Makefile.in (stabsread.o): Update dependencies.
4152 (SFILES): Add cp-support.c.
4153 (COMMON_OBS): Add cp-support.o.
4154 (cp_support_h, cp-support.o): Add.
4155
4156 * cp-valprint.c (cp_print_class_method): Call
4157 check_stub_method_group instead of check_stub_method. Remove
4158 extraneous QUITs.
4159 * p-valprint.c (pascal_object_print_class_method): Likewise.
4160 * valops.c (search_struct_method): Likewise.
4161 (find_method_list, value_struct_elt_for_reference): Likewise.
4162
e76cff22
AC
41632002-09-13 Andrew Cagney <cagney@redhat.com>
4164
4165 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4166 * gdbarch.h, gdbarch.c: Regenerate.
4167
905abb3f
AC
41682002-09-13 Andrew Cagney <ac131313@redhat.com>
4169
4170 * frame.c (find_saved_register): Delete function.
4171 * frame.h (find_saved_register): Delete declaration.
4172 Fix PR gdb/631.
4173
64159455
AC
4174Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4175
4176 * mips-tdep.c (read_next_frame_reg): Re-hack using
4177 frame_register_unwind.
4178
795e1e11
AC
4179Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4180
4181 * mips-tdep.c (mips_get_saved_register): Re-hack using
4182 frame_register_unwind.
4183
5720643c
JB
41842002-09-12 Joel Brobecker <brobecker@gnat.com>
4185
4186 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4187 vector. Will be useful for Interix.
4188 * gdbarch.h, gdbarch.c: Regenerate.
4189
4190 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4191 name of the malloc function by NAME_OF_MALLOC.
4192
3bada2a2
JB
41932002-09-12 Joel Brobecker <brobecker@gnat.com>
4194
4195 * value.h (find_function_in_inferior): Add const keyword to
4196 one of the parameters. Allows us to invoke this function with
4197 a const char *.
4198 * valops.c (find_function_in_inferior): Likewise.
4199
3db26b01
JB
42002002-09-12 Joel Brobecker <brobecker@gnat.com>
4201
4202 * exec.c (xfer_memory): Fix compilation warning with old versions
4203 of GCC.
4204 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4205
17c5ed2c
DC
42062002-09-12 David Carlton <carlton@math.stanford.edu>
4207
4208 * symtab.h: Run through gdb_indent.h.
4209 Add 2002 to Copyright year list.
4210
ecd1107e
AM
42112002-09-12 Alan Modra <amodra@bigpond.net.au>
4212
4213 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4214 mach constants.
4215 * MAINTAINERS: Add myself to write after approval list.
4216
e64f66d1
JB
42172002-09-11 J. Brobecker <brobecker@gnat.com>
4218
4219 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4220
f9395794
JB
42212002-09-11 J. Brobecker <brobecker@gnat.com>
4222
4223 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4224 Interix.
4225
1a303dec
MS
42262002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4227
4228 * procfs.c (do_detach): Clear current signal, not just fault.
4229 Corrects problem with breakpoint trap signal leaking to detached
4230 process on Tru64.
4231
c0219d42
MS
42322002-09-10 Michael Snyder <msnyder@redhat.com>
4233
4234 * buildsym.c (finish_block): Protect against null pointer.
4235
9d84ac84
AC
42362002-09-10 Andrew Cagney <cagney@redhat.com>
4237
4238 * infcmd.c (default_print_registers_info): Send all output to
4239 ``file'' instead of ``gdb_stdout''.
4240
77d8f2b4
MS
42412002-09-10 Michael Snyder <msnyder@redhat.com>
4242
4243 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4244 LONGEST, and use signed register read (addresses are sign-
4245 extended for mips).
4246
99656a61
SC
42472002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4248
4249 * event-loop.c (gdb_do_one_event): Make public.
4250 * event-loop.h (gdb_do_one_event): Declare.
4251
da12f4d8
JL
42522002-09-10 Jeff Law <law@redhat.com>
4253
4254 * infttrace.c (child_resume): Simplify and rework to avoid
4255 TT_PROC_CONTINUE.
4256
d0aee0c4
FF
42572002-09-09 Fred Fish <fnf@intrinsity.com>
4258
4259 * printcmd.c (print_scalar_formatted): "len" is the number of
4260 target bytes, NOT the number of target bits.
4261
7cb3ec5e
EZ
42622002-09-09 Elena Zannoni <ezannoni@redhat.com>
4263
4264 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4265 * top.c (init_main): Set rl_terminal_name.
4266
4dc81987
AS
42672002-09-08 Aidan Skinner <aidan@velvet.net>
4268
4269 * ada-lang.c (ada_array_bound, ada_type_match,
4270 _initialize_ada_language): Fix K&R definitions.
4271 * ada-tasks.c (get_current_task): Fix K&R definitions.
4272 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4273
842330b4
CF
42742002-09-07 Christopher Faylor <cgf@redhat.com>
4275
4276 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4277 Add XP.
4278
43156d82
MK
42792002-09-06 Mark Kettenis <kettenis@gnu.org>
4280
66da5fd8
MK
4281 * i386-tdep.c (i386_register_virtual_type,
4282 i386_register_convertible, i386_register_convert_to_virtual,
4283 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4284 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4285 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4286 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4287 Don't set push_arguments twice.
4288
4b218c18
MK
4289 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4290 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4291 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4292 sigtramp_end to NULL.
4293 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4294 defines.
4295 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4296
4cc314d5
MK
4297 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4298 whitespace.
4299
43156d82
MK
4300 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4301 * gdbarch.h, gdbarch.c: Re-generate.
4302 * blockframe.c (find_pc_sect_partial_function): Convert to use
4303 SIGTRAMP_START_P predicate.
4304
6672060b
MS
43052002-09-05 Michael Snyder <msnyder@redhat.com>
4306
a90c3637
MS
4307 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4308 generic_dummy_frame method and old method. Also distinguish
4309 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4310 (arm_extract_return_value): Use new regcache method.
a90c3637 4311
6672060b
MS
4312 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4313 adjustment that doesn't conform to the ABI.
4314 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4315 saved regcache, not from current regcache.
4316
299ffc64
AC
43172002-09-05 Andrew Cagney <ac131313@redhat.com>
4318
4319 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4320 * README: Update.
4321
a3a2ee65
JT
43222002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4323
4324 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4325 if arm_apcs_32 is false.
4326
2bc7eea9
AC
43272002-09-04 Andrew Cagney <ac131313@redhat.com>
4328
4329 GDB 5.3 branch created.
4330
8a55a7c5
TR
43312002-09-03 Theodore A. Roth <troth@verinet.com>
4332
4333 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4334 generic_unwind_get_saved_register.
4335
e26fb1d7
DC
43362002-09-03 David Carlton <carlton@math.stanford.edu>
4337
4338 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4339 argument (PR gdb/653). Update call to smash_to_method_type.
4340 (read_structure_scope): Update call to dwarf2_add_member_fn.
4341
30d52491
ML
43422002-09-03 Michal Ludvig <mludvig@suse.cz>
4343
4344 * x86-64-linux-tdep.c: Include gdb_string.h
4345 * x86-64-linux-nat.c: Ditto.
4346
06891d83
JT
43472002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4348
4349 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4350 when YYDEBUG is set to 1.
4351 * c-exp.y: Likewise.
4352 * f-exp.y: Likewise.
4353 * jv-exp.y: Likewise.
4354 * m2-exp.y: Likewise.
4355 * p-exp.y: Likewise.
4356
7d400e77
JT
43572002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4358
4359 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4360 dependency list.
4361 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4362 solib_svr4_fetch_link_map_offsets to
4363 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4364 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4365 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4366 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4367 solib-svr4.o, and solib-legacy.o.
4368 * config/i386/tm-nbsd.h: Include solib.h.
4369
704a27c4
JT
43702002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4371
4372 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4373 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4374 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4375 comment noting that this needs its own target configuration.
4376 * config/i386/nbsd.mt: New file.
4377 * config/i386/nbsdaout.mt: Remove.
4378 * config/i386/nbsdelf.mt: Ditto.
4379 * config/i386/tm-nbsdaout.h: Ditto.
4380
d66198e1
JT
43812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4382
4383 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4384 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4385 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4386 tdep->sigtramp_end.
4387 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4388 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4389 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4390
3cac699e
JT
43912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4392
4393 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4394 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4395 * i386-tdep.h (i386bsd_init_abi): New prototype.
4396 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4397 function declaration.
4398 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4399 for NetBSD-a.out or NetBSD-ELF.
4400 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4401 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4402 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4403 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4404 and nbsd-tdep.h.
4405 (i386nbsd_pc_in_sigtramp): New function.
4406 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4407 i386nbsd_pc_in_sigtramp.
4408 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4409 and i386nbsdelf_init_abi OS ABI handlers.
4410 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4411 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4412
7010ca0a
MK
44132002-09-02 Mark Kettenis <kettenis@gnu.org>
4414
4415 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4416 registers if the target really has them.
4417
6dd93b72
JT
44182002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4419
4420 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4421 than nbsd-tdep.h.
4422
2ca8ae21
JT
44232002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4426 list.
4427 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4428 (alphanbsd_skip_sigtramp_frame): New functions.
4429 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4430 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4431 to alphanbsd_sigcontext_addr.
4432
3d9b49b0
JT
44332002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4434
4435 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4436 list.
4437 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4438 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4439 nbsd_pc_in_sigtramp.
4440 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4441 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4442 * nbsd-tdep.c: Include gdb_string.h.
4443 (nbsd_pc_in_sigtramp): New function.
4444 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4445 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4446 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4447 ppcnbsd_pc_in_sigtramp.
4448 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4449 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4450 shnbsd_pc_in_sigtramp.
4451 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4452 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4453 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4454
c860120c
PM
44552002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4456
4457 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4458 watchpoints to NULL.
4459 (insert_breakpoints): set val field of watchpoints if NULL.
4460
4461
c7612d53
JB
44622002-08-29 Jim Blandy <jimb@redhat.com>
4463
4464 * symtab.c (lookup_symbol_aux): In the cases where we find a
4465 minimal symbol of an appropriate name and use its address to
4466 select a symtab to read and search, use `name' (as passed to us)
4467 as the demangled name when searching the symtab's global and
4468 static blocks, not the minsym's name.
4469
66609862
KS
44702002-08-29 Keith Seitz <keiths@redhat.com>
4471
4472 * stack.c (print_frame_info_base): Always set current_source_symtab
4473 and current_source_line.
4474
151fefe2
JB
44752002-08-29 Donn Terry <donnte@microsoft.com>
4476
4477 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4478
bfb3754e
KS
44792002-08-28 Keith Seitz <keiths@redhat.com>
4480
4481 * stack.c (select_frame): Add FIXME concerning selected-frame
4482 events.
4483 (select_frame_command): Send selected-frame-level-changed
4484 event notification, but only if the level actually changed.
4485 (up_silently_base): Add selected-frame-level-changed event
4486 notification.
4487 (down_silently_base): Likewise.
4488
e822a2a0
AC
44892002-08-28 Andrew Cagney <ac131313@redhat.com>
4490
4491 * Makefile.in: Update dependencies for all gdb/*.c files.
4492
309367d4
TT
44932002-08-27 Tom Tromey <tromey@redhat.com>
4494
4495 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4496 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4497 Update dependencies.
4498 * i387-tdep.c: Include gdb_string.h.
4499 * osabi.c: Likewise.
4500 * i386-linux-nat.c: Likewise.
4501 * lin-lwp.c: Likewise.
4502 * ax-gdb.c: Likewise.
4503 * signals/signals.c: Likewise.
4504 * jv-valprint.c: Likewise.
4505 * p-lang.c: Likewise.
4506 * c-valprint.c: Likewise.
4507 * cp-abi.c: Likewise.
4508
e1507482
EZ
45092002-08-27 Elena Zannoni <ezannoni@redhat.com>
4510
4511 * cli/cli-script.h (copy_command_lines): Export.
4512 * breakpoint.c: Include cli/cli-script.h.
4513 * Makefile.in (breakpoint.o): Update dependencies.
4514
c6510018
MS
45152002-08-26 Michael Snyder <msnyder@redhat.com>
4516
4517 * breakpoint.c (insert_breakpoints): Protect all references
4518 to 'process_warning'. Shorten long lines.
4519
c2b8ed2c
MS
45202002-08-26 Joel Brobecker <brobecker@gnat.com>
4521
4522 * cli/cli-script.c (copy_command_lines): New function.
4523 * defs.h (copy_command_lines): Export.
4524 * testsuite/gdb.base/commands.exp: New tests for commands
4525 attached to a temporary breakpoint, and for commands that
4526 delete the breakpoint they are attached to.
4527
45282002-08-26 Michael Snyder <msnyder@redhat.com>
4529
4530 * breakpoint.c (bpstat_stop_status): Instead of copying the
4531 pointer to the breakpoint commands struct, make a new copy
4532 of the struct and point to that.
4533 (bpstat_clear): Free the commands struct.
4534 (bpstat_clear_actions): Free the commands struct.
4535 (bpstat_do_actions): Free the command actions. Also execute
4536 the local cleanups, instead of deleting them.
4537 (delete_breakpoint): Leave the commands field of the bpstat
4538 chain alone -- it will be freed later.
4539
64b84175
KB
45402002-08-26 Kevin Buettner <kevinb@redhat.com>
4541
4542 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4543 deleted in 2002-08-20 commit. This function is still used by
4544 ppc-linux-nat.c.
4545
55970da6
KS
45462002-08-26 Keith Seitz <keiths@redhat.com>
4547
4548 * gdb-events.sh: Add selected-frame-level-changed event.
4549 * gdb-events.c: Regenerated.
4550 * gdb-events.h: Regenerated.
4551
a790ad35
SC
45522002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4553
4554 Fix PR gdb/393:
4555 * inflow.c (terminal_save_ours): New function to save terminal
4556 settings.
4557 * inferior.h (terminal_save_ours): Declare.
4558 * target.c (debug_to_terminal_save_ours): New function.
4559 (cleanup_target): Defaults to_terminal_save_ours.
4560 (update_current_target): Inherit to_terminal_save_ours.
4561 (setup_target_debug): Set to_terminal_save_ours.
4562 * target.h (target_terminal_save_ours): New to save terminal settings.
4563 (target_ops): New member to_terminal_save_ours.
4564 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4565 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4566 * inftarg.c (init_child_ops): Likewise.
4567 * m3-nat.c (init_m3_ops): Likewise.
4568 * procfs.c (init_procfs_ops): Likewise.
4569 * wince.c (init_child_ops): Likewise.
4570 * win32-nat.c (init_child_ops): Likewise.
4571 * sol-thread.c (init_sol_thread_ops): Likewise.
4572
c00dcbe9
MK
45732002-08-26 Mark Kettenis <kettenis@gnu.org>
4574
3d7f4f49
MK
4575 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4576 use regcache_* functions.
4577 (i386_gdbarch_init): Set store_return_value instead of
4578 deprecated_store_return_value.
4579
c00dcbe9
MK
4580 * regcache.c (regcache_raw_write_signed,
4581 regcache_raw_write_unsigned): New functions.
4582 * regcache.h (regcache_raw_write_signed,
4583 regcache_raw_write_unsigned): New prototypes.
4584
0e0d15ca
AC
45852002-08-25 Andrew Cagney <ac131313@redhat.com>
4586
4587 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4588 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4589 source file dependencies. Cleanup corresponding generator rules.
4590
d3b22ed5
AC
45912002-08-25 Andrew Cagney <ac131313@redhat.com>
4592
4593 * regcache.h (register_offset_hack): Declare.
4594 (regcache_cooked_read_using_offset_hack): Declare.
4595 (regcache_cooked_write_using_offset_hack): Declare.
4596
4597 * regcache.c (register_offset_hack): New function.
4598 (regcache_cooked_read_using_offset_hack): New function.
4599 (regcache_cooked_write_using_offset_hack): New function.
4600 (regcache_dump): Check that the registers, according to their
4601 offset, are packed hard against each other.
4602 (cooked_xfer_using_offset_hack): New function.
4603
bb425013
AC
46042002-08-25 Andrew Cagney <ac131313@redhat.com>
4605
4606 * regcache.c (struct regcache_descr): Add field register_type.
4607 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4608 in as a parameter
4609 (init_regcache_descr): Initialize register_type. Pass the descr
4610 to init_legacy_regcache_descr. Use register_type instead of
4611 REGISTER_VIRTUAL_TYPE.
4612 (register_type): New function.
4613 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4614 * regcache.h (register_type): Declare.
4615
d0403e00
AC
46162002-08-25 Andrew Cagney <ac131313@redhat.com>
4617
4618 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4619 instead of deprecated_store_return_value. Fix fallout from
4620 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4621
0ed04cce
AC
46222002-08-25 Andrew Cagney <ac131313@redhat.com>
4623
4624 * regcache.c (max_register_size): New function.
4625 (init_legacy_regcache_descr): Ensure that max_register_size is
4626 large enough for REGISTER_VIRTUAL_SIZE.
4627 * regcache.h (max_register_size): Declare.
4628
46d79c04
AC
46292002-08-24 Andrew Cagney <ac131313@redhat.com>
4630
4631 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4632 store_return_value.
4633 (e500_extract_return_value): Change type of valbuf pointer to
4634 void.
4635
853c7bd0
MK
46362002-08-24 Mark Kettenis <kettenis@gnu.org>
4637
cd87e769
MK
4638 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4639 workaround.
4640
853c7bd0
MK
4641 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4642 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4643 long long) to prevent compiler warning on 64-bit systems.
4644
ebba8386
AC
46452002-08-23 Andrew Cagney <cagney@redhat.com>
4646
4647 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4648 (DEPRECATED_STORE_RETURN_VALUE): New method.
4649 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4650 * gdbarch.h, gdbarch.c: Re-generate.
4651
4652 * values.c (set_return_value): Pass current_regcache to
4653 STORE_RETURN_VALUE.
4654 * arch-utils.h (legacy_store_return_value): Declare.
4655 * arch-utils.c (legacy_store_return_value): New function.
4656 (legacy_extract_return_value): Update parameters.
4657
4658 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4659 STORE_RETURN_VALUE.
4660 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4661 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4662 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4663 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4664 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4665 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4666 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4667 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4668 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4669 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4670
4671 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4672 * i386-tdep.c (i386_extract_return_value): Update.
4673 * arch-utils.c (legacy_extract_return_value): Update.
4674 * frv-tdep.c (frv_gdbarch_init): Update.
4675 * cris-tdep.c (cris_gdbarch_init): Update.
4676 * d10v-tdep.c (d10v_gdbarch_init): Update.
4677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4678 * m68k-tdep.c (m68k_gdbarch_init): Update.
4679 * mcore-tdep.c (mcore_gdbarch_init): Update.
4680 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4681 * s390-tdep.c (s390_gdbarch_init): Update.
4682 * sparc-tdep.c (sparc_gdbarch_init): Update.
4683 * sh-tdep.c (sh_gdbarch_init): Update.
4684 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4685 * v850-tdep.c (v850_gdbarch_init): Update.
4686 * avr-tdep.c (avr_gdbarch_init): Update.
4687 * ia64-tdep.c (ia64_gdbarch_init): Update.
4688 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4689 * vax-tdep.c (vax_gdbarch_init): Update.
4690 * alpha-tdep.c (alpha_gdbarch_init): Update.
4691 * arm-tdep.c (arm_gdbarch_init): Update.
4692 * mips-tdep.c (mips_gdbarch_init): Update.
4693 * i386-tdep.c (i386_gdbarch_init): Update.
4694
5bd8c6d0
AC
46952002-08-23 Andrew Cagney <ac131313@redhat.com>
4696
4697 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4698 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4699
e73e1724
MK
47002002-08-24 Mark Kettenis <kettenis@gnu.org>
4701
4702 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4703 problems.
4704
3e6564e1
JB
47052002-08-23 Joel Brobecker <brobecker@gnat.com>
4706
4707 * infrun.c (handle_inferior_event): Move a comment outside of a
4708 function call, in order to avoid indent reformatting this part
4709 of the code in an unreadable way.
4710
81d0cc19
GS
47112002-08-23 Grace Sainsbury <graces@redhat.com>
4712
4713 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4714 when breakpoints fail. Move general breakpoint error messages to
4715 insert_breakpoints.
4716 * breakpoint.c (insert_breakpoints): Change warnings when
4717 breakpoints are nto inserted to specify the type. Remove call to
4718 memory_error when hardware breakpoints can't be inserted. Remove
4719 multiple calls to warning so all messages are sent to the user at
4720 once.
4721 (delete_breakpoints): Make insert error messsages more explicit.
4722
17574093
DJ
47232002-08-23 Daniel Jacobowitz <drow@mvista.com>
4724
4725 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4726 gdbserver/ChangeLog.
4727
8acc2935
MK
47282002-08-23 Mark Kettenis <kettenis@gnu.org>
4729
dfe01d39
MK
4730 * i386-tdep.c: Include "objfiles.h".
4731 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4732 skip_trampoline_code.
4733 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4734 (CPLUS_MARKER): Define to '.'.
4735
8acc2935
MK
4736 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4737 member.
4738 (linux_corefile_thread_callback): Increase args->num_notes.
4739 (linux_make_note_section): Initialize thread_args.num_notes, and
4740 use it to determine whether notes for any threads were created.
4741
151fefe2 47422002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4743
4744 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4745 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4746 and PCUNKILL.
4747 (write_with_trace): Conditionalize out the switch branch handling
4748 PCSHOLD if the corresponding macro is not defined. Likewise for
4749 PRSABORT and PRSTOP.
4750 This change will be needed by the Interix port.
4751
e1507482
EZ
47522002-08-22 Elena Zannoni <ezannoni@redhat.com>
4753
4754 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4755 write_register wherever possible instead of manipulating the
4756 register bytes directly.
4757 Assign VALUE_CONTENTS to a variable and use that.
4758 The GPR numbers are now dependent on the architecture.
4759
96ff0de4
EZ
47602002-08-22 Elena Zannoni <ezannoni@redhat.com>
4761
4762 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4763 ev_offset fields.
4764 (skip_prologue): Add support for BookE/e500 instructions.
4765 (e500_extract_return_value): New function.
4766 (frame_get_saved_regs): Add support for saving ev registers and
4767 pseudo gpr's.
4768 (e500_store_return_value): New function.
4769 (rs6000_gdbarch_init): Move up default intializations of
4770 deprecated_extract_return_value and store_return_value. Overwrite
4771 init of store_return_value with e500 specific version.
4772 Set extract_return_value for e500.
4773
fbefca5b
EZ
47742002-08-22 Elena Zannoni <ezannoni@redhat.com>
4775
4776 * blockframe.c (generic_call_dummy_register_unwind): Use
4777 regcache_cooked_read to catch cases in which the variable is
4778 stored in a pseudo register.
4779
4d210288
AC
47802002-08-22 Andrew Cagney <cagney@redhat.com>
4781
4782 * NEWS: Mention that the i960 has been made obsolete.
4783 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4784 i960-tdep.c
4785 (remote-nrom.o): Obsolete target.
4786 (remote-nindy.o, i960-tdep.o): Ditto.
4787 * remote-nrom.c: Make file obsolete.
4788 * remote-nindy.c, remote-vx960.c: Ditto.
4789 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4790 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4791 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4792 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4793 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4794 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4795 i960-*-vxworks* obsolete.
4796 * MAINTAINERS: Note that the i960 is obsolete.
4797
6c0c456d
CV
47982002-08-21 Corinna Vinschen <vinschen@redhat.com
4799
4800 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4801 detach to allow reinitialization.
4802
9f9d12b3
AC
48032002-08-22 Andrew Cagney <ac131313@redhat.com>
4804
4805 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4806 attempt).
4807
ebeb39fe
JB
48082002-08-22 Jim Blandy <jimb@redhat.com>
4809
4810 * coffread.c (coff_symfile_read): Don't try to read the line
4811 number table from disk if the image file doesn't have a symbol
4812 table; we'll never actually look at the info anyway, and Windows
4813 ships DLL's with bogus file offsets for the line number data.
4814
5bf1c677
EZ
48152002-08-21 Elena Zannoni <ezannoni@redhat.com>
4816
4817 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4818 an e500 executable.
4819
71b8ef93
MS
48202002-08-21 Michael Snyder <msnyder@redhat.com>
4821
4822 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4823 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4824 (DEFAULT_MIPS_TYPE): Delete unused macro.
4825 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4826 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4827
d174216d
JB
48282002-08-21 Jim Blandy <jimb@redhat.com>
4829
4830 * valops.c (value_cast): Simplify and correct logic for doing a
4831 static cast from a pointer to a base class to a pointer to a
4832 derived class.
4833
0ab7a791
AC
48342002-08-21 Andrew Cagney <ac131313@redhat.com>
4835
4836 * infcmd.c (default_print_registers_info): Replace
4837 do_registers_info.
4838 (registers_info): Use gdbarch_print_registers_info instead of
4839 DO_REGISTERS_INFO.
4840 * inferior.h (default_print_registers_info): Replace
4841 do_registers_info.
4842 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4843 (DO_REGISTERS_INFO): Change to a predicate function.
4844 * gdbarch.h, gdbarch.c: Regenerate.
4845
e23792cc
KS
48462002-08-21 Keith Seitz <keiths@redhat.com>
4847
4848 * gdb-events.sh: Add target-changed event.
4849 * gdb-events.c: Regenerated.
4850 * gdb-events.c: Regenerated.
4851 * valops.c (value_assign): Add target-changed event notification
4852 to inlval_register, lval_memory, and lval_reg_frame_relative.
4853
9fb14e79
JB
48542002-08-21 Joel Brobecker <brobecker@gnat.com>
4855
4856 * NEWS: Add an entry regarding the improvement of the next/step
4857 operation on Alpha Tru64 multi-processor machines.
4858
6d39a69f
AC
48592002-08-21 Andrew Cagney <ac131313@redhat.com>
4860
72acd513
AC
4861 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4862 directores.
342af04b 4863 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4864 * Makefile.in (install-gdbtk): Move to install section.
4865 (rdi-share/libangsd.a): Move to end of file.
4866
fa5f27c7
AC
48672002-08-19 Andrew Cagney <ac131313@redhat.com>
4868
4869 * frame.c (frame_register_unwind): When a register, set addrp to
4870 the register's byte.
4871
5a89d8aa
MS
48722002-08-20 Michael Snyder <msnyder@redhat.com>
4873
4874 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4875 used locally, so move them from the target machine header to here.
4876 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4877 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4878 Make static.
4879 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4880
822e978b
AC
48812002-08-20 Andrew Cagney <cagney@redhat.com>
4882
4883 * NEWS: Mention that the Apollo line was made obsolete.
4884 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4885 m68*-hp-hpux* obsolete.
4886 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4887 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4888 * buildsym.c (make_blockvector): Make static.
4889 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4890 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4891 (ALLDEPFILES): Remove dstread.c.
4892 (dstread.o): Obsolete make rule.
4893 * dstread.c: Makefile obsolete.
4894 * dst.h: Ditto.
4895 * config/m68k/hp300hpux.mt: Ditto.
4896 * config/m68k/hp300hpux.mh: Ditto.
4897 * config/m68k/hp300bsd.mt: Ditto.
4898 * config/m68k/hp300bsd.mh: Ditto.
4899 * config/m68k/apollo68b.mt: Ditto.
4900 * config/m68k/apollo68v.mh: Ditto.
4901 * config/m68k/apollo68b.mh: Ditto.
4902
e41b17f0
MS
49032002-08-20 Michael Snyder <msnyder@redhat.com>
4904
4905 * mips-tdep.c (mips_in_return_stub): Make static.
4906 (mips_gdbarch_init): Set in_solib_return_trampoline.
4907 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4908
d50355b6
MS
49092002-08-20 Michael Snyder <msnyder@redhat.com>
4910
4911 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4912 * gdbarch.c, gdbarch.h: Regenerate.
4913 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4914 Add.
4915 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4916
757a7cc6
MS
49172002-08-20 Michael Snyder <msnyder@redhat.com>
4918
4919 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4920 (mips_gdbarch_init): Set skip_trampoline_code,
4921 in_solib_call_trampoline.
4922 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4923 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4924
c8001721
EZ
49252002-08-20 Elena Zannoni <ezannoni@redhat.com>
4926
4927 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4928
4929 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4930 vector type for ev registers.
4931 (e500_pseudo_register_read): New function.
4932 (e500_pseudo_register_write): New function.
4933 (e500_dwarf2_reg_to_regnum): New function.
4934 (PPC_UISA_NOFP_SPRS): New macro.
4935 (PPC_EV_REGS): New macro.
4936 (PPC_GPRS_PSEUDO_REGS): New macro.
4937 (registers_e500): New register set for e500.
4938 (variants): Add e500 variant.
4939 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4940 before setting architectural dependent variations. Initialize ev
4941 registers numbers. Add case for e500 architecture. Set the
4942 number of pseudo registers.
4943
64366f1c
EZ
49442002-08-20 Elena Zannoni <ezannoni@redhat.com>
4945
4946 * rs6000-tdep.c: Clean up comments.
4947
7e78f0ca
AC
49482002-08-20 Andrew Cagney <cagney@redhat.com>
4949
4950 * h8300-tdep.c: Re-indent file.
4951
697f7479
JB
49522002-08-20 Jim Blandy <jimb@redhat.com>
4953
4954 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4955 default for this.
697f7479 4956
e86ae29f
KS
49572002-08-20 Keith Seitz <keiths@redhat.com>
4958
4959 * breakpoints.c (watch_command_1): Use internal breakpoint
4960 when setting a watchpoint_scope breakpoint.
4961
216b504f
EZ
49622002-08-20 Elena Zannoni <ezannoni@redhat.com>
4963
4964 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4965 (build_builtin_type_vec64i): Ditto.
4966 (build_builtin_type_vec128): Ditto.
4967 (build_builtin_type_vec128i): Ditto.
4968
f7ab6ec6
MS
49692002-08-19 Michael Snyder <msnyder@redhat.com>
4970
4971 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4972 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4973 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4974 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4975 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4976 CALL_DUMMY_ADDRESS): Delete.
4977 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4978 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4979 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4980 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4981 push_return_address.
4982 (mips_register_raw_size, mips_eabi_use_struct_convention,
4983 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4984 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4985 mips_init_extra_frame_info, mips_eabi_push_arguments,
4986 mips_n32n64_push_arguments, mips_push_return_address,
4987 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4988 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4989
b5d1566e
MS
49902002-08-19 Michael Snyder <msnyder@redhat.com>
4991
4992 * mips-tdep.c (mips_frame_num_args): New function.
4993 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4994 frame_saved_pc, frame_args_address, frame_locals_address,
4995 frame_num_args, and frame_args_skip.
4996 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4997 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4998 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4999 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5000
2f1488ce
MS
50012002-08-20 Michael Snyder <msnyder@redhat.com>
5002
5003 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5004 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5005 * mips-tdep.c (mips_store_struct_return): New function.
5006 (mips_extract_struct_value_address): New function.
5007 (mips_gdbarch_init): Set store_struct_return and
5008 extract_struct_value_address.
5009
41ff2da1
DC
50102002-08-20 David Carlton <carlton@math.stanford.edu>
5011
5012 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5013 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5014 (read_file_scope): Check that line_header is nonzero before
5015 decoding macro information.
5016
e5451d58
MK
50172002-08-20 Mark Kettenis <kettenis@gnu.org>
5018
5019 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5020 flag the general-purpose registers as floating-point on targets
5021 that don't support the floating-point registers.
5022
4a6daafa
EZ
50232002-08-20 Elena Zannoni <ezannoni@redhat.com>
5024
5025 * rs6000-tdep.c (altivec_register_p): Delete.
5026 (rs6000_do_altivec_registers): Delete.
5027 (rs6000_altivec_registers_info): Delete.
5028 (rs6000_do_registers_info): Delete.
5029 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5030 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5031
ab4327e0
EZ
50322002-08-20 Elena Zannoni <ezannoni@redhat.com>
5033
5034 * infcmd.c (do_registers_info): Print vector registers in hex
5035 format only.
5036 (print_vector_info): Check that printing registers
5037 makes sense.
5038 (print_float_info): Ditto.
5039
cb1d2653
AC
50402002-08-20 Andrew Cagney <ac131313@redhat.com>
5041
5042 * mips-tdep.c (mips_gdbarch_init): Update.
5043 (mips_o32_extract_return_value): Rewrite.
5044 (mips_o32_store_return_value): Rewrite.
5045 (mips_o32_xfer_return_value): New function.
5046 (mips_xfer_register): Tweak debug print message. Allow for
5047 buf_offset when dumping the value transfered.
5048
dfc3d9b2
AC
50492002-08-20 Andrew Cagney <ac131313@redhat.com>
5050
5051 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5052 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5053 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5054 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5055 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5056
7807aa61
MS
50572002-08-14 Michael Snyder <msnyder@redhat.com>
5058
5059 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5060
489461e2
EZ
50612002-08-19 Elena Zannoni <ezannoni@redhat.com>
5062
5063 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5064 register.
5065 (P): New macro to define a register as a pseudo register.
5066 (R, R4, R8, R16, FR32, R64, R0): Updated.
5067 (struct variant): Add new fields for number of pseudo registers
5068 and number of total registers.
5069 (tot_num_registers): New macro replacing....
5070 (num_registers): ...deleted macro.
5071 (num_registers): New function.
5072 (num_pseudo_registers): New function.
5073 (variants): Update all variants to intialize new fields correctly.
5074 Postpone initialization of number of pseudo regs and real regs.
5075 (init_variants): New function.
5076 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5077 registers offsets.
5078
fcaffe4c
DC
50792002-08-19 David Carlton <carlton@math.stanford.edu>
5080
2c2738a0
DC
5081 * valops.c (search_struct_field): Change error message to treat
5082 return value of 0 from value_static_field as meaning that field is
5083 optimized out.
5084 (value_struct_elt_for_reference): Ditto.
5085 * values.c (value_static_field): Treat an unresolved location the
5086 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
5087 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5088 enclosed. Fix PR gdb/574.
fcaffe4c
DC
5089 * MAINTAINERS: Add self to Write After Approval list.
5090
88658117
AC
50912002-08-19 Andrew Cagney <ac131313@redhat.com>
5092
5093 * mips-tdep.c (mips_xfer_register): New function.
5094 (mips_n32n64_extract_return_value): Rewrite.
5095 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5096 instead of deprecated_extract_return_value.
5097
21283beb
EZ
50982002-08-19 Elena Zannoni <ezannoni@redhat.com>
5099
5100 * rs6000-tdep.c (TDEP): Delete macro.
5101 (branch_dest): Replace use of TDEP macro with its body.
5102 (rs6000_pop_frame): Ditto.
5103 (rs6000_push_arguments): Ditto.
5104 (rs6000_skip_trampoline_code): Ditto.
5105 (rs6000_frame_saved_pc): Ditto.
5106 (rs6000_frame_chain): Ditto.
5107 (rs6000_register_name): Ditto.
5108 (rs6000_register_byte): Ditto.
5109 (rs6000_register_raw_size): Ditto.
5110 (rs6000_register_virtual_type): Ditto.
5111 (rs6000_register_convertible): Ditto.
5112 (rs6000_convert_from_func_ptr_addr): Ditto.
5113
bf072999
DJ
51142002-08-19 Daniel Jacobowitz <drow@mvista.com>
5115
5116 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5117 conditionally.
5118 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5119 MIPS_LINUX_JB_ELEMENT_SIZE.
5120 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5121 for MAX_REGISTER_RAW_SIZE arrays.
5122 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5123 MIPS_LINUX_JB_ELEMENT_SIZE.
5124
9b949a49
PM
51252002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5126
5127 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5128
6d3e79c6
AS
51292002-08-19 Aidan Skinner <aidan@velvet.net>
5130
5131 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5132 ada-valprint.c ada-tasks.c.
5133 (YYFILES): Add ada-exp.y.
5134 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5135 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5136 (ada-exp.tab.o): New target.
5137
06c0b04e
AC
51382002-08-18 Andrew Cagney <ac131313@redhat.com>
5139
5140 * regcache.c (regcache_xfer_part): New function.
5141 (regcache_raw_read_part): New function.
5142 (regcache_raw_write_part): New function.
5143 (regcache_cooked_read_part): New function.
5144 (regcache_cooked_write_part): New function.
5145 * regcache.h (regcache_raw_read_part): Declare.
5146 (regcache_raw_write_part): Declare.
5147 (regcache_cooked_read_part): Declare.
5148 (regcache_cooked_write_part): Declare.
5149
92d1e331
DJ
51502002-08-18 Daniel Jacobowitz <drow@mvista.com>
5151
5152 * remote.c (remote_open_1): Add async_p.
5153 (remote_async_open_1): Delete.
5154 (open_remote_target): Delete.
5155 (remote_open, extended_remote_open): Update calls to remote_open_1.
5156 (remote_async_open, extended_remote_async_open): Call
5157 remote_open_1 instead of remote_async_open_1.
5158
247055de
MK
51592002-08-19 Mark Kettenis <kettenis@gnu.org>
5160
5161 * blockframe.c: Fix a few coding standard violations.
5162
641eda39
MK
51632002-08-19 Mark Kettenis <kettenis@gnu.org>
5164
0b717710
MK
5165 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5166 here from ...
5167 * config/i386/tm-i386sco5.h: ... here. File removed.
5168 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5169
26d28e12 5170 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
5171 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5172 (TM_FILE): Set to tm-i386.h.
5173 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5174 * config/i386/tm-i386v.h: Remove file.
5175 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5176 instead of "i386/tm-i386v.h".
5177 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5178 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5179 "i386/tm-i386v.h".
5180 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5181 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5182 "i386/tm-i386.h".
5183
d4e0bab4
MK
51842002-08-18 Mark Kettenis <kettenis@gnu.org>
5185
5186 * config/i386/nm-i386v.h: Add protection against
5187 multiple-inclusion.
5188 (i386_register_u_addr): Remove prototype.
5189 (register_u_addr): New prototype.
5190 (REGISTER_U_ADDR): Redefine accordingly.
5191 * i386v-nat.c: Improve several comments.
5192 (i386_register_u_addr): Change signature and rename to
5193 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5194 ubase variable.
5195
46cac009
AC
51962002-08-18 Andrew Cagney <ac131313@redhat.com>
5197
5198 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5199 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5200 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5201 deprecated_extract_return_value.
5202 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5203 rename mips_o32o64_push_arguments.
5204 (mips_gdbarch_init): Update.
5205 (mips_extract_return_value): Delete.
5206 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5207 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5208 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5209 (mips_n32n64_extract_return_value): Clone
5210 mips_extract_return_value.
5211 (mips_store_return_value): Delete.
5212 (mips_o32_store_return_value): Clone mips_store_return_value.
5213 (mips_o64_store_return_value): Clone mips_store_return_value.
5214 (mips_eabi_store_return_value): Clone mips_store_return_value.
5215 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5216
d2e4a39e
AS
52172002-08-18 Aidan Skinner <aidan@velvet.net>
5218
0c30c098
AS
5219 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5220 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5221
52222002-08-18 Aidan Skinner <aidan@velvet.net>
5223
5224 * ada-lang.c: Run through gdb_indent.sh.
5225 * ada-lang.h: Run through gdb_indent.sh.
5226 * ada-tasks.c: Run through gdb_indent.sh.
5227 * ada-typeprint.c: Run through gdb_indent.sh.
5228 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5229
01fc4e33
AC
52302002-08-18 Andrew Cagney <ac131313@redhat.com>
5231
5232 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5233 ABI.
5234
d8ee244c
MK
52352002-08-18 Mark Kettenis <kettenis@gnu.org>
5236
c38d8261
MK
5237 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5238
222db64c
MK
5239 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5240 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5241
c2848c82
MK
5242 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5243 write_register_gen instead of write_register_bytes.
5244
d8ee244c
MK
5245 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5246 i[3456]-*-osf1mk* configurations have been made obsolete.
5247 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5248 i[3456]86-*-osf1mk* hosts obsolete.
5249 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5250 targets obsolete.
5251 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5252 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5253 config/i386/i386m3.mt, config/i386/nm-m3.h,
5254 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5255 config/i386/i386mk.mh, config/i386/i386mk.mt,
5256 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5257 obsolete.
5258 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5259 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5260 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5261
61d8d407
AC
52622002-08-18 Andrew Cagney <ac131313@redhat.com>
5263
5264 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5265 (hppa_value_returned_from_stack): Declare.
5266 (hppa_extract_return_value): Declare.
5267 * config/pa/hppa.mt: New file.
5268 * configure.tgt: Recognize hppa*-*-*.
5269 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5270
0c52bd59
MK
52712002-08-18 Mark Kettenis <kettenis@gnu.org>
5272
5273 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5274 comment.
5275
b5686e99
MK
52762002-08-17 Mark Kettenis <kettenis@gnu.org>
5277
5278 * top.c (gdb_rl_operate_and_get_next): Make sure
5279 operate-and-get-next functions correctly even when the history
5280 list is completely filled.
5281
c1bab85b
AC
52822002-08-18 Andrew Cagney <ac131313@redhat.com>
5283
5284 * MAINTAINERS (Target Instruction Set Architectures): Rename
5285 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5286 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5287 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5288 already listed under Host/Native.
5289
5290 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5291 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5292 mips*-*-*.
5293
32089c7c
AC
52942002-08-17 Andrew Cagney <ac131313@redhat.com>
5295
5296 * config/ia64/ia64.mt: New file.
5297 * config/alpha/alpha.mt: New file.
5298 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5299 ia64-linux-gnu. Mention that ia64-elf is broken.
5300 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5301
b4671f85
MK
53022002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5303
5304 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5305 generic_func_frame_valid instead of func_frame_valid.
5306
c8edd8b4
JB
53072002-08-16 Joel Brobecker <brobecker@gnat.com>
5308
5309 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5310 procfs appears to be broken when debugging on multi-processor
5311 machines. So enable software single stepping in order to avoid
5312 using the procfs interface to do next/step operations, using
5313 internal breakpoints instead.
5314
5315 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5316 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5317 make this pc address equal to the value it would have if the
5318 system stepping capability was used. Also set a new flag used
5319 to ensure that we don't readjust the PC one more time later.
5320
5321 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5322 address by DECR_PC_AFTER_BREAK when software single step is
5323 in use for this architecture, as this has already been taken
5324 care of in handle_inferior_event().
5325
238617f6
JB
53262002-08-16 Joel Brobecker <brobecker@gnat.com>
5327
5328 * infrun.c (handle_inferior_event): Minor reformatting, to make
5329 a rather long condition expression easier to read.
5330
541a7aac
AC
53312002-08-16 Andrew Cagney <ac131313@redhat.com>
5332
5333 * Makefile.in (gdbtk.o): Move to end of file.
5334 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5335 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5336 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5337 (gdbtk-wrapper.o, gdbres.o): Ditto.
5338
f92d4a7b
AC
53392002-08-16 Andrew Cagney <ac131313@redhat.com>
5340
5341 * Makefile.in (copying.o): Separate out compile rule.
5342 (hpux-thread.o, procfs.o, signals.o): Ditto.
5343 (v850ice.o, z8k-tdep.o): Ditto.
5344 (tui-file.o): Move to TUI section.
5345 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5346 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5347
1cce71eb
JB
53482002-08-16 Joel Brobecker <brobecker@gnat.com>
5349
5350 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5351 skip_trampoline_code, for better namespace-proofing.
5352
5353 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5354
0851f23d
JB
53552002-08-16 Joel Brobecker <brobecker@gnat.com>
5356
5357 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5358
f8d40ec8
JB
53592002-08-16 Joel Brobecker <brobecker@gnat.com>
5360
5361 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5362 signal, check whether we hit a breakpoint before checking for a
5363 single step breakpoint. Otherwise, GDB fails to notice that a
5364 breakpoint has been hit when stepping onto a breakpoint.
5365
63d022e0
KS
53662002-08-16 Keith Seitz <keiths@redhat.com>
5367
5368 * gdb-events.sh (clear_gdb_event_hooks): New function.
5369 * gdb-events.c: Regenerate.
5370 * gdb-events.h: Regenerate.
5371
6e31adb3
AC
53722002-08-16 Andrew Cagney <ac131313@redhat.com>
5373
5374 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5375 not_a_sw_breakpoint.
5376 * breakpoint.h (bpstat_stop_status): Add parameter names.
5377
c8189ed1
GS
53782002-08-16 Grace Sainsbury <graces@redhat.com>
5379
5380 * remote.c (remote_insert_hw_breakpoint)
5381 (remote_remove_hw_breakpoint): Fix calculation of length field
5382 for Z-packet.
5383
d05285fa
MS
53842002-08-15 Michael Snyder <msnyder@redhat.com>
5385
466d7106
MS
5386 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5387 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5388 (supply_fpregset): Ditto.
5389
d05285fa
MS
5390 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5391 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5392 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5393 (TARGET_READ_SP): Delete.
bf1f5b4c 5394 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5395 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5396 Delete.
5397 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5398 from macros to functions.
bf1f5b4c 5399
d05285fa
MS
5400 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5401 (mips_register_convertible, mips_register_convert_to_virtual,
5402 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5403 (mips_read_sp): New function.
5404 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5405 (mips_do_registers_info): Make static.
5406 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5407 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5408 (mips_register_convert_from_type, mips_register_convert_to_type):
5409 New functions.
5410 (mips_gdbarch_init): Set up function_start_offset,
5411 register_virtual_size, pc_in_sigtramp.
d05285fa 5412
e76f1f2e
AC
54132002-08-15 Andrew Cagney <ac131313@redhat.com>
5414
5415 * infcmd.c (vector_info): New function.
5416 (_initialize_infcmd): Add command "info vector".
5417 (print_vector_info): New function.
5418
5419 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5420 * gdbarch.h, gdbarch.c: Regenerate.
5421
4782dc19
AC
54222002-08-15 Andrew Cagney <ac131313@redhat.com>
5423
5424 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5425 ``print_all''. Only print vector registers when ``print_all''.
5426
23e3a7ac
AC
54272002-08-15 Andrew Cagney <ac131313@redhat.com>
5428
8e186fd6
AC
5429 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5430 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5431
23e3a7ac
AC
5432 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5433 Add `args' parameter.
5434 * gdbarch.h, gdbarch.c: Regenerate.
5435
5436 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5437
5438 * infcmd.c (float_info): Call print_float_info.
5439 (print_float_info): New function. By default, print the
5440 floating-point registers.
5441
5442 * arch-utils.h (default_print_float_info): Delete declaration.
5443 * arch-utils.c (default_print_float_info): Delete function.
5444
e0ca2bb9
MK
54452002-08-16 Mark Kettenis <kettenis@gnu.org>
5446
3f733acc
MK
5447 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5448 out define.
5449
7d8d2918
MK
5450 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5451 FRAME.
5452
1c7cc583
MK
5453 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5454 * configure.host: Make i[3456]86-*-aix host obsolete.
5455 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5456 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5457 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5458 config/i386/xm-i386aix.h: Make files obsolete.
5459 * i386aix-nat.c: Make file obsolete.
5460 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5461 (i386aix-nat.o): Make target obsolete.
5462
e0ca2bb9
MK
5463 * config/i386/nm-gnu.h: Removed.
5464 * config/i386/nm-i386gnu.h: New file.
5465 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5466 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5467 Moved here from ...
5468 * config/i386/tm-i386gnu.h: ... here. Removed.
5469 * config/i386/xm-i386gnu.h: Removed.
5470 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5471 (NAT_FILE): Set to nm-i386gnu.h.
5472 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5473 * i386-tdep.c: New file.
5474 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5475 (i386gnu-tdep.o): Specify dependencies.
5476
16057ec7 54772002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5478
6b99ee2e
MK
5479 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5480 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5481 Adjust a few comments to reflect reality a bit closer.
5482 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5483 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5484 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5485 target_insert_watchpoint, target_remove_watchpoint):
5486 Move defines to ...
5487 * config/i386/nm-i386sco5.h: ... here.
5488 (kernel_u_size): Add prototype. Improve a few comments and add
5489 protection against multiple inclusion.
5490
d9a6f65c
MK
5491 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5492 out define.
5493
047eff6a
MK
5494 * uw-thread.c (SP_ARG0): Define if not already defined.
5495 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5496
dcdb1290
MK
5497 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5498
5d2d0b2a
MK
5499 * config/i386/tm-i386.h: Don't include "regcache.h".
5500
61113f8b
MK
5501 * i387-tdep.h (i387_print_float_info): New prototype.
5502 * i387-tdep.c (print_i387_value, print_i387_ext,
5503 print_i387_status_word, print_i387_control_word): Add `struct
5504 ui_file *' argument and use it for output.
5505 (i387_print_float_info): Renamed from i387_float_info. Add
5506 `struct gdbarch *' and `struct ui_file *' arguments and use the
5507 latter for output.
5508 * i386-tdep.c: Include "i387-tdep.h".
5509 (i386_gdbarch_init): Set print_float_info.
5510 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5511 (FLOAT_INFO): Remove define.
5512
46e0f506
MS
55132002-08-13 Michael Snyder <msnyder@redhat.com>
5514
5515 * mips-tdep.c (mips_push_arguments): Rename to
5516 mips_eabi_push_arguments, and tune for EABI.
5517 (MIPS_REGS_HAVE_HOME_P): Delete.
5518 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5519 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5520 Delete references to mips_regs_have_home_p.
5521
409268de
KS
55222002-08-14 Keith Seitz <keiths@redhat.com>
5523
5524 * Makefile.in (install-gdbtk): Create insight plugin directory.
5525 Install plugins.tcl file.
5526
ffc6a242
KS
55272002-08-14 Keith Seitz <keiths@redhat.com>
5528
5529 * configure.in: Move SUBDIRS to near top of the file so that
5530 --enable options may add things to it.
5531 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5532 * configure: Regenerate.
5533
ebafbe83
MS
55342002-08-13 Michael Snyder <msnyder@redhat.com>
5535
5536 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5537 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5538 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5539
32f6f25d
AC
55402002-08-13 Andrew Cagney <ac131313@redhat.com>
5541
5542 * vax-tdep.c (vax_get_saved_register): Delete function.
5543 (vax_gdbarch_init): Update.
5544 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5545 (ns32k_gdbarch_init): Update.
5546 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5547 (alpha_gdbarch_init): Update.
5548
53826de9
AC
55492002-08-13 Andrew Cagney <cagney@redhat.com>
5550
5551 * regcache.c (init_regcache_descr): Overallocate the
5552 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5553 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5554 nr_raw_registers.
5555 (set_register_cached): Add range checking assertions. Use
5556 current_regcache.
5557
16057ec7 55582002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5559
5560 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5561 numbers for MMX registers.
5562
7b4c2dce
AC
55632002-08-13 Andrew Cagney <cagney@redhat.com>
5564
5565 * i386-tdep.c (i386_gdbarch_init): Use
5566 generic_unwind_get_saved_register.
5567
1e03ad20
KB
55682002-08-13 Kevin Buettner <kevinb@redhat.com>
5569
5570 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5571 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5572 target vector.
5573 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5574 Delete. Add comment regarding this now-deleted target method.
5575
548bcbec
SC
55762002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5577
5578 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5579 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5580 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5581 real PC and the page number (if it's within the memory bank window).
5582 (m68hc11_pseudo_register_write): Likewise when saving.
5583 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5584 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5585 (m68hc11_register_raw_size): And use 32-bit for it.
5586 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5587 16K memory bank is used by the prog; also use the virtual pc.
5588
7df11f59
SC
55892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5590
5591 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5592 (m68hc11_gdbarch_init): Install it in gdbarch.
5593 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5594 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5595 (MSYMBOL_SIZE): New for documentation.
5596 (insn_return_kind): Enum to specify how a function returns.
5597 (frame_extra_info): Cleanup and record the return mode.
5598 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5599 register in address computation.
5600 (m68hc11_get_return_insn): New to obtain the return instruction used
5601 by the function.
5602 (m68hc11_frame_init_saved_regs): Take into account the return
5603 instruction used by the function for far and interrupt functions.
5604 (m68hc11_init_extra_frame_info): Take into account page register.
5605 (m68hc11_frame_args_address): Adjust according to the return mode.
5606 (show_regs): Print page register only when it's used.
5607
5706502a
SC
56082002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5609
5610 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5611 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5612 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5613 registers.
5614 (m68hc11_register_raw_size): Likewise.
5615
28fc6740
AC
56162002-08-13 Andrew Cagney <cagney@redhat.com>
5617
5618 * i386-tdep.c (i386_register_name): Handle mmx registers.
5619 (mmx_regnum_p): New function.
5620 (i386_mmx_names): New array.
5621 (mmx_num_regs): New variable.
5622 (i386_pseudo_register_read): New function.
5623 (i386_pseudo_register_write): New function.
5624 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5625
5626 * regcache.c (regcache_raw_read_unsigned): New function.
5627 (regcache_raw_read_signed): New function.
5628 * regcache.h (regcache_raw_read_unsigned): Declare.
5629 (regcache_raw_read_signed): Declare.
5630
a378f419
AC
56312002-08-13 Andrew Cagney <cagney@redhat.com>
5632
5633 * regcache.c (regcache_raw_read_as_address): Delete function.
5634 (regcache_cooked_read_signed): New function.
5635 (regcache_cooked_read_unsigned): New function.
5636 * regcache.h (regcache_cooked_read_signed): Declare.
5637 (regcache_cooked_read_unsigned): Declare.
5638 (regcache_raw_read_as_address): Delete declaration.
5639
5640 * blockframe.c (generic_read_register_dummy): Use
5641 regcache_cooked_read_unsigned.
5642 * i386-tdep.c (i386_extract_struct_value_address): Use
5643 regcache_cooked_read_unsigned.
5644
81967506
SC
56452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5646
5647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5648 double sizes according to ELF ABI flags.
5649 (gdbarch_tdep): Record elf_flags.
5650
ffe1f3ee
SC
56512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5652
5653 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5654 (m6812_prolog): They can appear in 68HC12 function prologue.
5655 (m68hc11_frame_chain): Cleanup.
5656
98216c5d
AC
56572002-08-12 Andrew Cagney <cagney@redhat.com>
5658
5659 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5660 declarations.
5661 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5662 (i386_linux_register_raw_size): Delete function.
5663 (i386_linux_init_abi): Update.
5664 * i386-tdep.c (i386_register_raw_size): Delete function.
5665 (i386_register_byte): Delete function.
5666 (i386_gdbarch_init): Update.
5667 (i386_register_size): Delete array.
5668 (i386_register_offset): Delete array.
5669
5670 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5671 (REGISTER_RAW_SIZE): Delete macro.
5672 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5673 (REGISTER_BYTE): Delete macro.
5674
3b19021e
AS
56752002-08-11 Aidan Skinner <aidan@velvet.net>
5676
5677 * ada-lang.c (ada_lookup_partial_symbol)
5678 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5679 prototype names so that grep ^func works properly.
5680
5681 * ada-lang.c (ada_array_element_type)
5682 (ada_lookup_partial_symbol): Fix typos in parameter list.
5683
5684 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5685 Fix prototype names so that grep ^func works properly.
5686
b063e7a2
AC
56872002-08-10 Andrew Cagney <cagney@redhat.com>
5688 Elena Zannoni <ezannoni@redhat.com>
5689 Martin M. Hunt <hunt@redhat.com>
5690
5691 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5692 (build_builtin_type_vec128i): Set the vector bit.
5693 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5694 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5695 (build_builtin_type_vec64): New function.
5696 (build_builtin_type_vec64i): New function.
5697 (build_gdbtypes): Initialize builtin_type_vec64 and
5698 builtin_type_vec64i.
5699
a7e3c2ad
AC
57002002-08-09 Andrew Cagney <cagney@redhat.com>
5701
5702 * regcache.c (regcache_dump): Compare the register offset
5703 with REGISTER_BYTE.
5704 * arch-utils.c (generic_register_byte): New function.
5705 * arch-utils.h (generic_register_byte): Declare.
5706 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5707 * gdbarch.h, gdbarch.c: Regenerate.
5708
af030b9a
AC
57092002-08-09 Andrew Cagney <cagney@redhat.com>
5710
5711 * regcache.c: Include "gdbcmd.h"
5712 (_initialize_regcache): Add commands "maintenance print
5713 registers", "maintenance print raw-registers" and "maintenance
5714 print cooked-registers".
5715 (enum regcache_dump_what): Define.
5716 (dump_endian_bytes): New function.
5717 (regcache_dump): New function.
5718 (regcache_print): New function.
5719 (maintenance_print_registers): New function.
5720 (maintenance_print_raw_registers): New function.
5721 (maintenance_print_cooked_registers): New function.
5722 * Makefile.in (regcache.o): Update dependencies.
5723
cb3d25d1
MS
57242002-08-09 Michael Snyder <msnyder@redhat.com>
5725
5726 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5727 (mips_push_arguments): Correct some comments. Use paddr_nz
5728 for printing addresses in debug output. Replace static
5729 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5730 (mips_n32n64_push_arguments): New function, cloned from
5731 mips_push_arguments and tuned for the n32/n64 ABI.
5732 (mips_push_register): Buffer needs dynamic allocation.
5733 (mips_print_register): Ditto.
5734 (do_gp_register_row): Ditto.
5735 (mips_store_return_value): Ditto.
5736 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5737
2163ab9d
DH
57382002-08-09 Don Howard <dhoward@redhat.com>
5739
5740 * memattr.c (mem_info_command): Print special case of upper bound
5741 as max CORE_ADDR + 1.
5742
b78bcb18
MS
57432002-08-08 Michael Snyder <msnyder@redhat.com>
5744
5745 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5746 returns structs by ref if they're too big to fit in two registers.
5747
ffabd70d
KB
57482002-08-09 Kevin Buettner <kevinb@redhat.com>
5749
5750 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5751 saved regs value.
5752 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5753 mips_find_saved_regs().
5754 (mips_pop_frame): Likewise.
5755
fbcdb4a3
KB
57562002-08-09 Kevin Buettner <kevinb@redhat.com>
5757
5758 * blockframe.c (frame_saved_regs_register_unwind): Revise
5759 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5760 frames are in use.
5761
3c3bea1c
GS
57622002-08-09 Grace Sainsbury <graces@redhat.com>
5763
5764 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5765 T-packets; the 'a' is not taken as a register number.
5766 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5767 (remote_stopped_data_address): New functions; add to target
5768 vector.
5769 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5770 prototypes to match other implementations of this
5771 function. replace integer argument with pointer -- the length
5772 field in the Z-packet is the length of what is pointed to or 1 if
5773 pointer is null. Add to target vector.
5774 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5775 target vector.
5776
5777 From Mark Salter:
5778 * remote.c (remote_wait): Add support to extract optional
5779 watchpoint information from T-packet. Ignore unrecognized
5780 optional info in T-packet.
5781 (remote_async_wait): Ditto.
5782
5d1d95de
CV
57832002-08-09 Corinna Vinschen <vinschen@redhat.com>
5784
5785 * cli/cli-dump.c: Change fopen modes to use binary open modes
5786 as defined in include/fopen-bin.h throughout.
5787
c86b5b38
MS
57882002-08-08 Michael Snyder <msnyder@redhat.com>
5789
5790 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5791
b30590dc
KB
57922002-08-08 Kevin Buettner <kevinb@redhat.com>
5793
5794 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5795 assertion failure by returning early after a warning.
5796
498868ed
KB
57972002-08-08 Kevin Buettner <kevinb@redhat.com>
5798
5799 * mips-tdep.c (mips_find_saved_regs): Make static.
5800 (mips_frame_init_saved_regs): New function.
5801 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5802 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5803 (mips_find_saved_regs): Delete declaration.
5804
b2dd6311
GS
58052002-08-08 Grace Sainsbury <graces@redhat.com>
5806
3c3bea1c
GS
5807 * remote.c (remote_wait, remote_async_wait): Change
5808 thread_num from int to ULONGEST.
5809 (unpack_varlen_hex): Change result parameter from
5810 int * to ULONGEST *.
b2dd6311 5811
ea47855f
AC
58122002-08-08 Andrew Cagney <ac131313@redhat.com>
5813
5814 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5815 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5816 powerpc*-*-*.
5817 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5818
69db8bae
AC
58192002-08-08 Andrew Cagney <cagney@redhat.com>
5820
5821 * gcore.c (override_derive_stack_segment): Delete variable.
5822 (preempt_derive_stack_segment): Delete function.
5823 (derive_stack_segment): Delete function.
5824 (default_derive_stack_segment): Renamed to derive_stack_segment.
5825 (override_derive_heap_segment): Delete variable.
5826 (preempt_derive_heap_segment): Delete function.
5827 (derive_heap_segment): Delete function.
5828 (default_derive_heap_segment): Rename to derive_heap_segment.
5829
cb811fe7
MS
58302002-08-06 Michael Snyder <msnyder@redhat.com>
5831
5832 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5833 * mips-tdep.c (mips_EABI_use_struct_convention,
5834 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5835 New functions. (mips_use_struct_convention): Delete.
5836 (mips_gdbarch_init): set use_gdbarch_convention.
5837
8b389c40
MS
58382002-08-06 Michael Snyder <msnyder@redhat.com>
5839
5840 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5841 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5842 mips_o32_reg_struct_has_addr): New functions.
5843 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5844
5c27f28a
AC
58452002-08-07 Andrew Cagney <ac131313@redhat.com>
5846
5847 * regcache.c (pseudo_register): Delete function.
5848 (fetch_register): Delete function.
5849 (store_register): Delete function.
5850 (regcache_raw_read, legacy_read_register_gen): Use
5851 target_fetch_registers instead of fetch_register.
5852 (legacy_write_register_gen, regcache_raw_write): Use
5853 target_store_register instead of store_register.
5854 (write_register_bytes): Ditto.
5855
5856 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5857 (STORE_PSEUDO_REGISTER): Delete.
5858 * gdbarch.h, gdbarch.c: Regenerate.
5859
5b331675
CV
58602002-08-06 Corinna Vinschen <vinschen@redhat.com>
5861
5862 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5863 write dump file binary.
5864
6acdf5c7
MS
58652002-08-05 Michael Snyder <msnyder@redhat.com>
5866
5867 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5868 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5869 (mips_gdbarch_init): Set N32 target to be mips64.
5870
b2f01c35
KB
58712002-08-06 Kevin Buettner <kevinb@redhat.com>
5872
5873 * frame.c (find_saved_register): Break out of loop once saved
5874 register address is found. Don't mention sparc in loop comment
5875 anymore.
5876
63db5580
KB
58772002-08-06 Kevin Buettner <kevinb@redhat.com>
5878
5879 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5880 mips_default_saved_regsize to 8.
5881
5e34e75e
AC
58822002-08-06 Andrew Cagney <ac131313@redhat.com>
5883
5884 * gcore.c: Do not include <sys/procfs.h>.
5885 * Makefile.in (gcore.o): Update dependencies.
5886
eb4c54a2
AC
58872002-08-06 Andrew Cagney <cagney@redhat.com>
5888
5889 * configure.tgt: Make arc-*-* obsolete.
5890 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5891 * MAINTAINERS: Make arc-elf obsolete.
5892 * arc-tdep.c: Make file obsolete.
5893 * config/arc/arc.mt: Ditto.
5894 * config/arc/tm-arc.h: Ditto.
5895
ced15480
TR
58962002-08-05 Theodore A. Roth <troth@verinet.com>
5897
c1bab85b 5898 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5899
b4743822
AC
59002002-08-05 Andrew Cagney <ac131313@redhat.com>
5901
5902 * mcore-tdep.c (mcore_gdbarch_init): Use
5903 generic_unwind_get_saved_register instead of
5904 generic_get_saved_register.
5905 * v850-tdep.c (v850_gdbarch_init): Ditto.
5906 * frv-tdep.c (frv_gdbarch_init): Ditto.
5907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5908 * s390-tdep.c (s390_gdbarch_init): Ditto.
5909 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5910 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5911 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5912
3956d554
JB
59132002-08-05 Joel Brobecker <brobecker@gnat.com>
5914
5915 * objfiles.h: Add missing #include "symfile.h"
5916
5917 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5918
8249c0d6
AC
59192002-08-04 Andrew Cagney <ac131313@redhat.com>
5920
5921 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5922 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5923 of FIELD_BITSIZE.
5924
b9d14705
DJ
59252002-08-04 Daniel Jacobowitz <drow@mvista.com>
5926
5927 * NEWS: Cleanup and nitpick.
5928
dd73b9bb
AC
59292002-08-03 Andrew Cagney <ac131313@redhat.com>
5930
5931 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5932
043a27f8
AC
59332002-08-03 Andrew Cagney <ac131313@redhat.com>
5934
5935 * Makefile.in (gdbtk-bp.o): Update dependencies.
5936 (gdbtk-register.o): Ditto.
5937 (gdbtk-varobj.o): Ditto.
5938
46ce284d
AC
59392002-08-03 Andrew Cagney <cagney@redhat.com>
5940
5941 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5942 m68hc11_fetch_pseudo_register.
5943 (m68hc11_pseudo_register_write): Replace
5944 m68hc11_store_pseudo_register.
5945 (m68hc11_gdbarch_init): Update.
5946
b66d6d2e
AC
5947Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5948
5949 * gdbarch.sh: Include "gdb_string.h".
5950 * gdbarch.c: Regenerate.
5951
5952 * regcache.c: Include "gdb_string.h".
5953 * ax-general.c: Ditto.
5954 * varobj.c: Ditto.
5955 * std-regs.c: Ditto.
5956 * fbsd-proc.c: Ditto.
5957 * thread.c: Ditto.
5958
5959 * Makefile.in (regcache.o): Update dependencies.
5960 (thread.o, gdbarch.o): Ditto.
5961 (ax-general.o, gdbarch.o): Ditto.
5962 (varobj.o, std-regs.o): Ditto.
5963 (fbsd-proc.o): Specify dependencies.
5964
29e1842b
AC
59652002-08-02 Andrew Cagney <cagney@redhat.com>
5966
5967 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5968 regnum.
5969 (regcache_cooked_write): Ditto.
5970
68365089
AC
59712002-08-02 Andrew Cagney <ac131313@redhat.com>
5972
5973 * regcache.c (regcache_cooked_read): New function.
5974 (regcache_cooked_write): New function.
5975 (read_register_gen): Rewrite using regcache_cooked_read.
5976 (write_register_gen): Rewrite using regcache_cooked_write.
5977
5978 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5979 Declare.
5980
d8124050
AC
59812002-08-02 Andrew Cagney <cagney@redhat.com>
5982
5983 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5984 Replace the architecture methods register_read and register_write.
5985 * gdbarch.h, gdbarch.c: Regenerate.
5986 * regcache.c (init_regcache_descr): Update.
5987 (read_register_gen): Update.
5988 (write_register_gen): Update.
5989 (supply_register): Update comment.
5990
5991 * sh-tdep.c (sh_gdbarch_init): Update.
5992 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5993 `regcache' and `gdbarch' parameters. Make `buffer' a void
5994 pointer. Update code.
5995 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5996 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5997 void pointer. Update code.
5998 (sh64_register_write): Delete.
5999 (sh4_register_read): Delete.
6000 (sh64_register_read): Delete.
6001 (sh4_register_write): Delete.
6002 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6003 void pointer, `to' parameter a void pointer.
6004 (sh_sh64_register_convert_to_raw): Ditto.
6005
a6425924
KB
60062002-08-01 Kevin Buettner <kevinb@redhat.com>
6007
6008 * mips-tdep.c (mips_register_virtual_type): Use architecture
6009 invariant return values.
6010
ff5922b5
AC
60112002-08-01 Andrew Cagney <cagney@redhat.com>
6012
6013 * linux-proc.c: Include "gdb_string.h".
6014 * Makefile.in (linux-proc.o): Update dependency list.
6015
32a6503c
KB
60162002-08-01 Kevin Buettner <kevinb@redhat.com>
6017
6018 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6019 comment.
6020
ccaa32c7
GS
60212002-08-01 Grace Sainsbury <graces@redhat.com>
6022
6023 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6024 to_insert_watchpoint, to_remove_watchpoint,
6025 to_stopped_by_watchpoint, to_stopped_data_address,
6026 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6027 target vecctor. Define their corresponding macros so they call
6028 them.
6029
6030 * target.c: Add default and debug versions of for
6031 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6032 to_insert_watchpoint, to_remove_watchpoint,
6033 to_stopped_by_watchpoint, to_stopped_data_address,
6034 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6035
78fde5f8
KB
60362002-08-01 Kevin Buettner <kevinb@redhat.com>
6037
6038 * mips-tdep.c (mips_register_virtual_type): New function.
6039 (mips_gdbarch_init): Register mips_register_virtual_type()
6040 with gdbarch machinery.
6041 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6042 this file instead of tm-bigmips.h.
6043 (MIPS_REGSIZE): Delete this macro.
6044 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6045 multiarch version in mips-tdep.c will be found.
6046
db034ac5
AC
60472002-08-01 Andrew Cagney <cagney@redhat.com>
6048
6049 * NEWS: Menion that CHILL has been made obsolete.
6050
6051 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
6052 * stabsread.c (read_range_type): Ditto.
6053 * gdbtypes.h: Ditto.
6054 * language.c (binop_type_check): Ditto.
6055 (binop_result_type): Ditto.
6056 (integral_type): Ditto.
6057 (character_type): Ditto.
6058 (string_type): Ditto.
6059 (boolean_type): Ditto.
6060 (structured_type): Ditto.
6061 (lang_bool_type): Ditto.
6062 (binop_type_check): Ditto.
6063 * language.h (_LANG_chill): Ditto.
6064 * dwarfread.c (set_cu_language): Ditto.
6065 * dwarfread.c (CHILL_PRODUCER): Ditto.
6066 * dwarfread.c (handle_producer): Ditto.
6067 * expression.h (enum exp_opcode): Ditto.
6068 * eval.c: Ditto for comments.
6069 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6070 * expprint.c (print_subexp): Ditto.
6071 (print_subexp): Ditto.
6072 * valops.c (value_cast): Ditto.
6073 (search_struct_field): Ditto.
6074 * value.h (COERCE_VARYING_ARRAY): Ditto.
6075 * symfile.c (init_filename_language_table): Ditto.
6076 (add_psymbol_with_dem_name_to_list): Ditto.
6077 * valarith.c (value_binop): Ditto.
6078 (value_neg): Ditto.
6079 * valops.c (value_slice): Ditto.
6080 * symtab.h (union language_specific): Ditto.
6081 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6082 (SYMBOL_DEMANGLED_NAME): Ditto.
6083 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6084 * defs.h (enum language): Ditto.
6085 * symtab.c (got_symtab): Ditto.
6086 * utils.c (fprintf_symbol_filtered): Ditto.
6087
6088 * ch-typeprint.c: Make file obsolete.
6089 * ch-valprint.c: Make file obsolete.
6090 * ch-lang.h: Make file obsolete.
6091 * ch-exp.c: Make file obsolete.
6092 * ch-lang.c: Make file obsolete.
6093
6094 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6095 CHILL_LIB.
6096 (TARGET_FLAGS_TO_PASS): Ditto.
6097 (CHILLFLAGS): Obsolete.
6098 (CHILL): Obsolete.
6099 (CHILL_FOR_TARGET): Obsolete.
6100 (CHILL_LIB): Obsolete.
6101 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6102 ch-valprint.c.
6103 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6104 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6105 ch-lang.o.
6106 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6107 targets.
6108
8aaf0b47
JB
61092002-07-31 Joel Brobecker <brobecker@gnat.com>
6110
6111 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6112 This does not change anything at the moment, but will be helpful
6113 later when full Ada support is integrated.
6114
f3a7b3a5
KB
61152002-07-31 Kevin Buettner <kevinb@redhat.com>
6116
6117 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6118 help message.
6119
fb850278
KB
61202002-07-31 Kevin Buettner <kevinb@redhat.com>
6121
6122 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6123 and save it in a local variable. Use variable in later test.
6124
e3bddbfa
KB
61252002-07-31 Kevin Buettner <kevinb@redhat.com>
6126
6127 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6128 test. (Thanks to Daniel Jacobowitz.)
6129
28d169de
KB
61302002-07-31 Kevin Buettner <kevinb@redhat.com>
6131
6132 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6133 (mips_abi_strings): Add "n64".
6134 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6135
7fe7e44e
KB
61362002-07-31 Kevin Buettner <kevinb@redhat.com>
6137
6138 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6139 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6140
c6caf090
KB
61412002-07-31 Kevin Buettner <kevinb@redhat.com>
6142
6143 * utils.c (host_pointer_to_address, address_to_host_pointer):
6144 Use gdb_assert() instead of explicit call to internal_error().
6145
c41669e0
KB
61462002-07-30 Kevin Buettner <kevinb@redhat.com>
6147
6148 * Makefile.in (rs6000-nat.o): Update dependencies.
6149
6150 From Nicholas Duffek:
6151 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6152 (aix-thread.o): New rule.
6153 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6154 * config/powerpc/aix432.mh: New file.
6155
2fda4977
DJ
61562002-07-30 Daniel Jacobowitz <drow@mvista.com>
6157
6158 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6159 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6160 (fetch_core_registers, ppc_linux_supply_gregset)
6161 (ppc_linux_supply_fpregset): New functions.
6162 (ppc_linux_regset_core_fns): New.
6163 (_initialize_ppc_linux_tdep): Call add_core_fns.
6164 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6165 and ppc_linux_supply_gregset.
6166 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6167 (supply_fpregset): Call ppc_linux_supply_fpregset.
6168 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6169 corelow.o.
6170 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6171
729051e6
DJ
61722002-07-30 Daniel Jacobowitz <drow@mvista.com>
6173
6174 * symtab.c (lookup_symbol): Demangle before lowercasing.
6175
5f8a3188
AC
61762002-07-30 Andrew Cagney <ac131313@redhat.com>
6177
6178 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6179 declaration.
6180 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6181 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6182 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6183 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6184 "gdb_string.h".
6185 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6186 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6187 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6188 (avr-tdep.o, mon960-rom.o): Ditto.
6189 (aout_stabs_gnu_h): Define.
6190 (symtab_h): Remove $(gdb_obstack_h).
6191
67f07146
JB
61922002-07-30 Jim Blandy <jimb@redhat.com>
6193
6194 Patch from David Carlton <carlton@math.stanford.edu>:
6195 * gdbinit.in: Move the `dir' commands that add GDB's own source
6196 directory to the search path to the end, so that the `gdb' source
6197 directory will be searched first.
6198
04ea0df1
AC
61992002-07-29 Andrew Cagney <ac131313@redhat.com>
6200
6201 * gdb_obstack.h: New file.
6202 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6203 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6204 * objfiles.h: Include "gdb_obstack.h".
6205 * Makefile.in (gdb_obstack_h): Define.
6206 (symtab_h): Add $(gdb_obstack_h).
6207 (objfiles_h): Add $(gdb_obstack_h).
6208
6209 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6210 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6211 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6212 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6213 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6214 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6215 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6216 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6217
6218 * Makefile.in (bcache.o): Update dependencies.
6219 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6220 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6221 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6222 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6223 (stabsread.o, symfile.o, symmisc.o): Ditto.
6224 (symtab.o, typeprint.o, macroexp.o): Ditto.
6225 (macrotab.o, mdebugread.o): Ditto.
6226 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6227 (coff_ecoff_h, aout_aout64_h): Define.
6228 (aout_stabs_gnu_h, libaout_h): Define.
6229
d138e37a
AC
62302002-07-29 Andrew Cagney <cagney@redhat.com>
6231
6232 * regcache.c (struct regcache_descr): Rename nr_registers to
6233 nr_cooked_registers. Revise comments describing the structure
6234 member fields.
6235 (init_regcache_descr): Update.
6236 (init_legacy_regcache_descr): Update.
6237 (read_register_gen, write_register_gen): When a cooked register in
6238 the raw register range, directly access the value from the raw
6239 register cache.
6240
460e6ec3
AC
62412002-07-29 Andrew Cagney <ac131313@redhat.com>
6242
6243 * z8k-tdep.c: Do not include "obstack.h".
6244 * h8300-tdep.c, h8500-tdep.c: Ditto.
6245 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6246 * valprint.c, v850-tdep.c: Ditto.
6247 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6248 * mn10200-tdep.c: Ditto.
6249
6250 * Makefile.in (z8k-tdep.o): Update dependencies.
6251 (m68hc11-tdep.o, valprint.o): Ditto.
6252 (v850-tdep.o, d10v-tdep.o): Ditto.
6253 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6254 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6255 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6256 (sh_opc_h, gdb_sim_sh_h): Define.
6257 (elf_sh_h, elf_bfd_h): Define.
6258 (opcode_m68hc11_h): Define.
6259 (OPCODES_SRC, OPCODES_DIR): define.
6260 (OPCODES): Use $(OPCODES_DIR).
6261 (gdb_sim_d10v_h): Rename sim_d10v_h.
6262 (gdb_sim_arm_h): Rename sim_arm_h.
6263
790c9cf0
KB
62642002-07-26 Kevin Buettner <kevinb@redhat.com>
6265
6266 * utils.c (host_pointer_to_address, address_to_host_pointer):
6267 Change internal_error() message to indicate function responsible
6268 for the error.
6269
9647fa49
KB
62702002-07-26 Kevin Buettner <kevinb@redhat.com>
6271
6272 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6273 calls to local_hex_string_custom().
6274
dabbe2c0
KB
62752002-07-26 Kevin Buettner <kevinb@redhat.com>
6276
6277 * irix5-nat.c: Move IRIX shared library support from here...
6278 * solib-irix.c: ...to here. Revised substantially to work with
6279 generic solib framework.
6280
b96d0a4e
KB
6281 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6282 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6283 * mips-irix-tdep.c: New file.
6284
313fb2f6
KB
6285 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6286 (mips-irix-tdep.o, solib-irix.o): New rules.
6287 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6288 solib-irix.o.
6289 * config/mips/irix6.mt (TDEPFILES): Likewise.
6290 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6291
ab2eaf26
KB
62922002-07-26 Kevin Buettner <kevinb@redhat.com>
6293
177e4768 6294 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6295 disabled (via ``#if 0'') includes.
6296
7244546a
KB
62972002-07-26 Kevin Buettner <kevinb@redhat.com>
6298
6299 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6300 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6301 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6302 Add support for the fpscr register.
6303 * rs6000-nat.c (regmap, fetch_inferior_registers)
6304 (store_inferior_registers, fetch_core_registers): Likewise.
6305
dd7be90a
KB
63062002-07-26 Kevin Buettner <kevinb@redhat.com>
6307
6308 * rs6000-nat.c (language.h): Include.
6309 (special_regs): Delete this array.
6310 (regmap): New function.
6311 (fetch_register, store_register): Use regmap() to map gdb
6312 register numbers to ptrace register numbers. Also, use
6313 outputs from regmap() to make decisions regarding type of
6314 ptrace() call to make. In particular, don't compare against
6315 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6316 (fetch_inferior_registers, store_inferior_registers): Where
6317 possible, obtain register numbers from tdep struct. Don't
6318 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6319 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6320 (LAST_UISA_SP_REGNUM): Delete.
6321
11bf77db
KB
63222002-07-25 Kevin Buettner <kevinb@redhat.com>
6323
6324 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6325 (fetch_registers, store_register, fetch_core_registers): Don't
6326 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6327 regcache_collect() as appropriate.
6328 (find_toc_address): Format hex address with local_hex_string().
6329
06afebeb
AC
63302002-07-25 Andrew Cagney <ac131313@redhat.com>
6331
6332 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6333 bfd/elf32-frv.c.
6334
8c554d79
TT
63352002-07-24 Tom Tromey <tromey@redhat.com>
6336
6337 * jv-exp.y: Marked all strings with _().
6338 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6339 internal_error.
6340 (MethodInvocation, CastExpression, parse_number, yyerror,
6341 java_type_from_name, push_expression_name, yylex): Typo fixes.
6342
e4c242d9
DJ
63432002-07-24 Daniel Jacobowitz <drow@mvista.com>
6344
6345 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6346 (tee_file_flush, tee_file_write, tee_file_fputs)
6347 (tee_file_isatty): New.
6348 * ui-file.h (tee_file_new): Add prototype.
6349
ebf56fd3
AS
63502002-07-24 Aidan Skinner <aidan@velvet.net>
6351
6352 * ada-lang.c: Change k&r style function definitions to prototyped
6353 form.
6354 * ada-typeprint.c: Change k&r style function definitions to prototyped
6355 form.
6356 * ada-valprint.c: Change k&r style function definitions to prototyped
6357 form.
6358
7fb623f7
AC
63592002-07-24 Andrew Cagney <cagney@redhat.com>
6360
6361 * README: Remove reference to remote-bug.
6362 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6363 remote-bug.c.
6364 (m88k-nat.o): Delete rule.
6365 (m88k-tdep.o): Delete rule.
6366 (remote-bug.o): Delete rule.
6367 * MAINTAINERS: Mark as obsolete.
6368 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6369 * m88k-tdep.c: Make file obsolete.
6370 * config/m88k/m88k.mh: Ditto.
6371 * config/m88k/delta88v4.mh: Ditto.
6372 * config/m88k/delta88v4.mt: Ditto.
6373 * config/m88k/delta88.mt: Ditto.
6374 * config/m88k/delta88.mh: Ditto.
6375 * remote-bug.c: Ditto.
6376 * config/m88k/tm-delta88.h: Ditto.
6377 * config/m88k/nm-delta88v4.h: Ditto.
6378 * config/m88k/xm-delta88.h: Ditto.
6379 * config/m88k/xm-dgux.h: Ditto.
6380 * config/m88k/tm-m88k.h: Ditto.
6381 * config/m88k/nm-m88k.h: Ditto.
6382 * config/m88k/tm-delta88v4.h: Ditto.
6383 * m88k-nat.c: Ditto.
6384 * cxux-nat.c: Ditto.
6385 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6386 and m88*-*-* obsolete.
6387 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6388 m88*-*-* obsolete.
6389
37611a2b
AC
63902002-07-24 Andrew Cagney <cagney@redhat.com>
6391
6392 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6393 constant. Same for local pointer variables.
6394 (extract_signed_integer): Ditto.
6395 * defs.h (extract_unsigned_integer): Update.
6396 (extract_signed_integer): Update.
6397
1aaa5f99
AC
63982002-07-24 Andrew Cagney <cagney@redhat.com>
6399
6400 * regcache.c (regcache_raw_write): Change buf parameter to a
6401 constant void pointer.
6402 (regcache_raw_read): Change buf parameter to a void pointer.
6403 (legacy_write_register_gen): Change myaddr parameter a constant
6404 void pointer.
6405 (supply_register): Change val parameter to a const void pointer.
6406 * regcache.h (regcache_raw_write): Update declaration.
6407 (regcache_raw_read): Update declaration.
6408 (supply_register): Update declaration.
6409
b4f5539f
TT
64102002-07-24 Tom Tromey <tromey@redhat.com>
6411
6412 * defs.h (gdb_readline_wrapper): Declare.
6413 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6414 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6415 * top.c (gdb_readline_wrapper): New function.
6416 (command_line_input): Use it.
6417
0818c12a
AC
64182002-07-24 Andrew Cagney <cagney@redhat.com>
6419
6420 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6421 regcache_read and regcache_write.
6422 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6423 * regcache.c: Update.
6424 * sh-tdep.c (sh64_push_arguments): Update comment.
6425 (sh_pseudo_register_read): Update.
6426 (sh_pseudo_register_write): Update.
6427 (sh4_register_read): Update.
6428 (sh4_register_write): Update.
6429 (sh64_pseudo_register_read): Update.
6430 (sh64_pseudo_register_write): Update.
6431 (sh64_register_read): Update.
6432 (sh64_register_write): Update.
6433 * i386-tdep.c (i386_extract_return_value): Update.
6434 (i386_extract_struct_value_address): Update.
6435 (i386_extract_return_value): Update.
6436 * blockframe.c (generic_read_register_dummy): Update.
6437 (generic_call_dummy_register_unwind): Update
6438 * infrun.c (write_inferior_status_register): Update.
6439
f7321c06
JB
64402002-07-23 Jim Blandy <jimb@redhat.com>
6441
6442 * parser-defs.h (expression_context_pc): Make this extern.
6443 (Thanks to Michael Snyder.)
6444
2037aebb
AC
64452002-07-23 Andrew Cagney <ac131313@redhat.com>
6446
6447 GDB 5.2.1 released from 5.2 branch.
6448 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6449 * README: Update to mention 5.2.1.
6450
66504d44
MS
64512002-07-23 Mark Salter <msalter@redhat.com>
6452
6453 * remote.c (remote_read_bytes): Fix check for error.
6454
27bae383
KB
64552002-07-22 Kevin Buettner <kevinb@redhat.com>
6456
6457 * aix-thread.c (language.h): Include.
6458 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6459 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6460 Print newlines at end of debug messages.
6461 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6462 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6463
64642002-07-22 Kevin Buettner <kevinb@redhat.com>
6465
6466 * aix-thread.c (ppc-tdep.h): Include.
6467 (special_register_p): New function.
6468 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6469 (store_regs_user_thread): Use register number information from
6470 gdbarch_tdep struct instead of hardcoded offsets relative to
6471 FIRST_UISA_SP_REGNUM.
6472 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6473 special_register_p() instead of using FPLAST_REGNUM and
6474 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6475 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6476 will be MQ's register number.
6477
64782002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6479
6480 * aix-thread.c (ops): Rename to aix_thread_ops.
6481 (base_ops): Rename to base_target.
6482 (ops_attach): Rename to aix_thread_attach.
6483 (ops_detach): Rename to aix_thread_detach.
6484 (ops_resume): Rename to aix_thread_detach.
6485 (ops_wait): Rename to aix_thread_wait.
6486 (ops_kill): Rename to aix_thread_kill.
6487 (init_ops): Rename to init_aix_thread_ops.
6488 (ops_fetch_register): Rename to aix_thread_fetch_register.
6489 (ops_store_register): Rename to aix_thread_store_register.
6490 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6491 (ops_thread_alive): Rename to aix_thread_thread_alive.
6492 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6493 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6494 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6495 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6496 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6497 (store_regs_lib): Rename to store_regs_user_thread.
6498 (store_regs_kern): Rename to store_regs_kernel_thread.
6499
27bae383 65002002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6501
6502 * aix-thread.c (ops_prepare_to_store): Eliminate.
6503 (init_ops): Don't initialize ops.prepare_to_store.
6504 (store_regs_kern): Pre-fetch register buffers from child,
6505 because some registers may not be in the cache. Copy
6506 regs from register cache only if they are cached.
6507 (store_regs_lib): Copy regs from register cache only
6508 if they are cached.
6509 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6510 fill_gprs64): Ditto.
6511
61c5da0b
KB
65122002-07-22 Kevin Buettner <kevinb@redhat.com>
6513
6514 * aix-thread.c (gdb_assert.h): Include.
6515 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6516 register sizes (from register cache) match size of buffer holding
6517 register data.
6518 (fill_sprs32): Change parameter types to match those in the ptrace()
6519 buffer.
6520 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6521 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6522
65232002-07-22 Michael Snyder <msnyder@redhat.com>
6524
6525 * aix-thread.c (supply_sprs64): Cosmetic change.
6526 (supply_sprs32): Cosmetic change.
6527 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6528 (fill_sprs64): Use regcache_collect instead of read_register.
6529 (store_regs_lib): Use regcache_collect instead of
6530 read_register. Use fill_sprs32 instead of fill_sprs64,
6531 if debugging a 32-bit architecture.
6532 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6533 out of the register cache, instead of passing a pointer into
6534 the register cache directly to ptrace. Use regcache_collect
6535 insteaad of read_register.
6536 (ops_prepare_to_store): Use target_read_registers instead
6537 of read_register_bytes.
6538
36479eb1
AS
65392002-07-20 Aidan Skinner <aidan@velvet.net>
6540
6541 * MAINTAINERS: Add self under write after approval.
6542
80ae6ee2
AS
65432002-07-20 Aidan Skinner <aidan@velvet.net>
6544
6545 * ada-tasks.c: Change k&r style function definitions to prototyped
6546 form.
6547
8a8ab2b9
AC
65482002-07-19 Andrew Cagney <ac131313@redhat.com>
6549
6550 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6551 * x86-64-tdep.c: Include "objfiles.h".
6552 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6553 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6554
fb16b900
ML
65552002-07-17 Michal Ludvig <michal@suse.cz>
6556
6557 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6558 (update_context): Initialise cfa variable.
6559
0fe7bf7b
MS
65602002-07-17 Michael Snyder <msnyder@redhat.com>
6561
6562 * aix-thread.c: Shorten some long lines.
6563 Bring comments into line with code spec.
6564
488f131b
JB
65652002-07-18 Joel Brobecker <brobecker@gnat.com>
6566
6567 * infrun.c: Re-indent using gdb_indent.sh.
6568
46c415d2
JB
65692002-07-18 Joel Brobecker <brobecker@gnat.com>
6570
6571 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6572 Leave the indentation temporarily untouched, to minimize the diffs.
6573
cdecafbe
EZ
65742002-07-18 Elena Zannoni <ezannoni@redhat.com>
6575
6576 * stabsread.c: Make os9k sections of the code obsolete,
6577 for real this time.
6578 * stabsread.h: Make os9k sections of the code obsolete.
6579
7b6aa020
ML
65802002-07-18 Michal Ludvig <mludvig@suse.cz>
6581
09ec9b38
ML
6582 * linux-low.c (regsets_store_inferior_registers): Add free()
6583 at the end of a loop to prevent memory leak.
6584 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6585 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6586 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6587 line a comment.
4894ac5d 6588 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6589
233282cd
JB
65902002-07-17 Jim Blandy <jimb@redhat.com>
6591
6592 * macrocmd.c (info_macro_command): Remove newline from error
6593 message.
6594
7b6aa020 65952002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6596
6597 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6598 (sh_gdbarch_init): Use it for sh-dsp.
6599
f7ef9339
KB
66002002-07-16 Kevin Buettner <kevinb@redhat.com>
6601
6602 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6603 64-bit DWARF2 format.
6604
8dd72958
JB
66052002-07-16 Joel Brobecker <brobecker@gnat.com>
6606
6607 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6608 <sys/proc.h> when not available.
6609
a99a9e1b
AC
66102002-07-16 Andrew Cagney <ac131313@redhat.com>
6611
6612 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6613 * stabsread.c: Make os9k sections of the code obsolete.
6614 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6615 * config/i386/i386os9k.mt: Make file obsolete.
6616 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6617 (COMMON_OBS): Remove os9kread.o
6618 (SFILES): Remove os9kread.c.
6619 (os9kread.o, remote-os9k.o): Make target obsolete.
6620 * remote-os9k.c: Make file obsolete.
6621 * os9kread.c: Make file obsolete.
6622 * Makefile.in
6623
7a3085c1
AC
66242002-07-16 Andrew Cagney <ac131313@redhat.com>
6625
6626 * NEWS: Mention that the FR30 has been made obsolete.
6627 * fr30-tdep.c: Make file obsolete.
6628 * config/fr30/tm-fr30.h: Ditto.
6629 * config/fr30/fr30.mt: Ditto.
6630 * configure.tgt: Make fr30-*-elf obsolete.
6631 * MAINTAINERS: Make fr30-elf obsolete.
6632
28a93f5a
PM
66332002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6634
6635 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6636 found is not inside a section.
6637
be006b8b
KB
66382002-07-15 Kevin Buettner <kevinb@redhat.com>
6639
6640 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6641 strerror().
6642 (pdc_realloc): Use xrealloc() instead of realloc().
6643
14fa3751
KB
66442002-07-15 Kevin Buettner <kevinb@redhat.com>
6645
6646 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6647 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6648 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6649 macros.
6650
42cc437f
KB
66512002-07-15 Kevin Buettner <kevinb@redhat.com>
6652
6653 * aix-thread.c (ptrace_check): Eliminate goto.
6654 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6655 problem.
6656
8e2c28d4
KB
66572002-07-15 Kevin Buettner <kevinb@redhat.com>
6658
6659 * aix-thread.c (gdbcmd.h): Include.
6660 (DEBUG, DBG, DBG2, dbg): Eliminate.
6661 (debug_aix_thread): New static global.
6662 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6663 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6664 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6665 invocations to DBG and DBG2 macros to test against
6666 ``debug_aix_thread'' and call fprintf_unfiltered().
6667 (_initialize_aix_thread): Add new command "set debug aix-thread".
6668
30413464
AC
66692002-07-15 Andrew Cagney <ac131313@redhat.com>
6670
6671 From Gerhard Tonn <TON@de.ibm.com>:
6672 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6673 instead of supply_register.
6674
7c43edc1
AC
66752002-07-15 Andrew Cagney <ac131313@redhat.com>
6676
6677 * dwarf2cfi.c: Include "gdb_assert.h".
6678 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6679 non-NULL.
6680 (update_context): Do not use __func__. Add missing ``break''.
6681 (update_context): Do not use __func__.
6682
9364a0ef
EZ
66832002-07-15 Elena Zannoni <ezannoni@redhat.com>
6684
6685 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6686 and its setting. Set gdbarch instruction printing functions
6687 directly. For non-rs6000 case use new function
6688 gdb_print_insn_powerpc.
6689 (gdb_print_insn_powerpc): New function.
6690
3fbeef0b
AC
66912002-07-13 Andrew Cagney <ac131313@redhat.com>
6692
92eb23c5 6693 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6694 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6695 * configure.tgt: Mark d30v-*-* as obsolete.
6696 * d30v-tdep.c: Mark file as obsolete.
6697 * config/d30v/d30v.mt: Ditto.
6698 * config/d30v/tm-d30v.h: Ditto.
6699
aacb1f0a
AS
67002002-07-13 Aidan Skinner <aidan@velvet.net>
6701
6702 * ada-tasks.c (add_task_entry): replace calls to
6703 malloc() with xmalloc
6704 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6705
6706 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6707 ada_finish_decode_line_1, all_sals_for_line
6708 ada_breakpoint_rewrite): replace calls to free() with xfree()
6709
c11d79f2
KB
67102002-07-12 Kevin Buettner <kevinb@redhat.com>
6711
6712 From Nicholas Duffek (with minor changes by Martin Hunt,
6713 Louis Hamilton, and Kevin Buettner):
6714 * aix-thread.c: New file.
6715
8e19ed76
PS
67162002-07-12 Petr Sorfa <petrs@caldera.com>
6717
6718 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6719 complaint for invalid attribute class or form.
6720 (read_func_scope): DW_AT_frame_base
6721 better handling of DW_AT_block*.
6722 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6723 better handling of DW_AT_block*.
6724 (read_common_block): DW_AT_location
6725 better handling of DW_AT_block*.
6726 (read_partial_die): DW_AT_location better handling
6727 of DW_AT_block*.
6728 (new_symbol): DW_AT_external better handling of
6729 DW_AT_block*. Proper initialization of variable
6730 "addr".
6731 (attr_form_is_block): New function that returns true
6732 if the attribute's form is of DW_FORM_block*.
6733
295401f7
DJ
67342002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6735
6736 * valops.c (find_method_list): Remove comment about
6737 removed STATIC_MEMFUNCP argument.
6738 (value_find_oload_method_list): Likewise.
6739
e42dc924
KB
67402002-07-12 Kevin Buettner <kevinb@redhat.com>
6741
6742 From Nicholas Duffek:
6743 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6744 target_new_objfile_hook.
6745
6904b546
KB
67462002-07-12 Kevin Buettner <kevinb@redhat.com>
6747
6748 From Nicholas Duffek:
6749 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6750 csect.
6751
53fe9346
AC
67522002-07-12 Andrew Cagney <cagney@redhat.com>
6753
6754 * MAINTAINERS: Mention --enable-sim-build-warnings.
6755 (m68hc11-elf): Disable sim build warnings.
6756 (m32r-elf): Mark as broken obsolete candidate.
6757 (x86_64-linux-gnu): Mark as buildable with -Werror.
6758 (arm-elf): Change -w to ``,'' which enables warnings but not
6759 -Werror.
6760
af5f3db6
AC
67612002-07-12 Andrew Cagney <ac131313@redhat.com>
6762
6763 * bcache.h: Update copyright.
6764 (struct bstring, struct bcache): Move definition to "bcache.c".
6765 Replaced by opaque declaration.
6766 (bcache_xfree): Replace free_bcache.
6767 (bcache_xmalloc, bcache_memory_used): Declare.
6768
6769 * bcache.c: Update copyright.
6770 (struct bstring, struct bcache): Moved to here from "bcache.h".
6771 Update comments.
6772 (bcache_xmalloc, bcache_memory_used): New functions.
6773 (bcache_xfree): Replace function free_bcache.
6774
6775 * Makefile.in (objfiles.o): Add $(bcache_h).
6776 (objfiles_h): Remove $(bcache_h).
6777 (symfile.o): Add $(bcache_h).
6778
6779 * symmisc.c: Update copyright.
6780 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6781 (print_objfile_statistics): Use bcache_memory_used.
6782
6783 * symfile.c: Include "bcache.h".
6784 (reread_symbols): Use bcache_xfree.
6785 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6786 (add_psymbol_to_list): Pass psymbol_cache by value.
6787 (add_psymbol_with_dem_name_to_list): Ditto.
6788
6789 * objfiles.h: Update copyright.
6790 (struct bcache): Declare opaque. Do not include "bcache.h".
6791 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6792 bcache'' pointers.
6793 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6794
6795 * objfiles.c: Include "bcache.h". Update copyright.
6796 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6797 macro_cache.
6798 (free_objfile): Use bcache_xfree.
6799
444199e7
GS
68002002-07-11 Grace Sainsbury <graces@redhat.com>
6801
6802 * monitor.c (monitor_fetch_register): Make name a constant.
6803 (monitor_store_register): Same.
6804
261397f8
DJ
68052002-07-11 Daniel Jacobowitz <drow@mvista.com>
6806
6807 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6808 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6809 (finish_block) For non-function blocks, hash the symbol table. For
6810 function blocks, mark the symbol table as unhashed.
6811 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6812 (msymbol_hash_iw): Likewise.
6813 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6814 value.
6815 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6816 (lookup_minimal_symbol): Likewise for both.
6817 * symtab.h (struct block): Add `hashtable' flag. Comment the
6818 hashtable.
6819 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6820 (ALL_BLOCK_SYMBOLS): Update.
6821 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6822 (struct symbol): Add `hash_next' pointer.
6823 * symtab.c (lookup_block_symbol): Search using the hash table when
6824 possible.
6825 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6826 (search_symbols, find_addr_symbol): Likewise.
6827
6828 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6829 (read_dst_symtab): Likewise.
6830 * jv-lang.c (get_java_class_symtab): Likewise.
6831 * mdebugread.c: Include "gdb_assert.h".
6832 (shrink_block): Assert that the block being modified is not hashed.
6833 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6834 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6835 symbols.
6836 (dump_symtab): Recognize hashed blocks.
6837 * printcmd.c (print_frame_args): Assert that function blocks do not
6838 have hashed symbol tables.
6839 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6840 (fill_in_ada_prototype, debug_print_block): Likewise.
6841 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6842
6f0eaa01
CV
68432002-07-11 Corinna Vinschen <vinschen@redhat.com>
6844
6845 * stack.c (print_frame): Use result of frame_address_in_block()
6846 instead of fi->pc when evaluating symbols.
6847 (backtrace_command_1): Ditto.
6848
a208b0cb
AC
68492002-07-11 Andrew Cagney <cagney@redhat.com>
6850
6851 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6852 Make static.
6853
6854 * arm-tdep.c (arm_register_name): Make return type constant.
6855
a6b6b089
AC
68562002-07-10 Andrew Cagney <ac131313@redhat.com>
6857
5ae5f592
AC
6858 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6859 prototype.
6860 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6861 * s390-tdep.c (s390_fp_regnum): Ditto.
6862 (s390_read_fp): Ditto.
6863 (s390_pop_frame): Ditto.
6864 (_initialize_s390_tdep): Ditto.
6865 * remote.c (get_remote_state): Ditto.
6866 * procfs.c (mappingflags): Ditto.
6867 * memattr.c (_initialize_mem): Ditto.
6868 * mcore-tdep.c (mcore_pop_frame): Ditto.
6869 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6870 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6871 * language.c (set_case_str): Ditto.
6872 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6873 * frv-tdep.c (new_variant): Ditto.
6874 (frv_stopped_data_address): Ditto.
6875 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6876 (context_alloc): Ditto.
6877 (frame_state_alloc): Ditto.
6878 (unwind_tmp_obstack_init): Ditto.
6879 (unwind_tmp_obstack_free): Ditto.
6880 (cfi_read_fp): Ditto.
6881 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6882 (cris_pop_frame): Ditto.
6883 * c-lang.c (scanning_macro_expansion): Ditto.
6884 (finished_macro_expansion): Ditto.
6885 (c_preprocess_and_parse): Ditto.
6886 * gdbarch.sh: Ditto.
6887 * gdbarch.h, gdbarch.c: Regenerate.
6888 * config/mn10200/tm-mn10200.h: Adjust indentation.
6889 * target.c: Adjust indentation.
6890 * symtab.h: Adjust indentation.
6891 * stabsread.h: Adjust indentation.
6892 * remote-es.c: Adjust indentation.
6893 * os9kread.c: Adjust indentation.
6894
68952002-07-10 Andrew Cagney <ac131313@redhat.com>
6896
a6b6b089
AC
6897 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6898 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6899
a1789893
GS
69002002-07-10 Grace Sainsbury <graces@redhat.com>
6901
6902 * NEWS: Mention m68k, mcore multi-arching.
6903 * MAINTAINERS: Change status of m68k, mcore to reflect
6904 multi-arching.
6905
02f0d45d
DJ
69062002-07-10 Daniel Jacobowitz <drow@mvista.com>
6907
6908 * valops.c (find_overload_match): Free oload_syms.
6909
f15f768e
JB
69102002-07-09 Joel Brobecker <brobecker@gnat.com>
6911
6912 Define HAVE_SYS_PROC_H if sys/proc.h exists
6913 * configure.in: Add check for sys/proc.h
6914 * config.in: Regenerate.
6915 * configure: Regenerate.
6916
902a7139
GS
69172002-07-09 Grace Sainsbury <graces@redhat.com>
6918
6919 * config/m68k/tm-m68k.h: Remove macros wrapped in
6920 #if !GDB_MULTI_ARCH.
6921
a534e424
AC
69222002-07-08 Andrew Cagney <ac131313@redhat.com>
6923
6924 * config.in, configure: Regenerate.
6925
9b94f7bf
MK
69262002-07-08 Mark Kettenis <kettenis@gnu.org>
6927
6928 * dwarf2cfi.c: Include "gcore.h".
6929 (execute_stack_op): Fix implementation of the
6930 DW_OP_deref and DW_OP_deref_size operators by letting do their
6931 lookup in the target.
6932
1d34db41
MK
69332002-07-07 Mark Kettenis <kettenis@gnu.org>
6934
6935 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6936 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6937 tdep->sc_sp_offset.
6938
79d5b63a
DJ
69392002-07-05 Daniel Jacobowitz <drow@mvista.com>
6940
6941 Fix PR gdb/595, gdb/602
6942 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6943 Don't call value_cast, just read the vtable pointer; update comments
6944 to match.
6945
3bb912e8
GS
69462002-07-05 Grace Sainsbury <graces@redhat.com>
6947
6948 * config/mcore/tm-mcore.h: Remove file.
6949 * config/mcore/mcore.mt: Remove definition of TM_FILE
6950 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6951
ca39387d
MK
69522002-07-05 Mark Kettenis <kettenis@gnu.org>
6953
6954 * i386bsd-tdep.c: Include "gdb_string.h".
6955
efdc1108
GS
69562002-07-04 Grace Sainsbury <graces@redhat.com>
6957
6958 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6959 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6960 mcore-tdep.
6961 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6962 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6963 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6964 (RETVAL_REGNUM): Move macros from tm-mcore.h
6965 (mcore_reg_struct_has_addr): New function.
6966 (mcore_gdbarch_init): Added initializations for the macros removed
6967 from tm-mcore.h.
6968
bb21884d
MK
69692002-07-04 Mark Kettenis <kettenis@gnu.org>
6970
6971 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6972 traditonal string branding within the ELF header.
6973
228c6d41
DJ
69742002-07-04 Daniel Jacobowitz <drow@mvista.com>
6975
6976 * symtab.c (remove_params): New function.
6977 (make_symbol_overload_list): Use it instead of cplus_demangle.
6978 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6979
2404952e
MK
69802002-07-04 Mark Kettenis <kettenis@gnu.org>
6981
e5e4acad
MK
6982 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6983
baadce09
MK
6984 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6985 New variables.
6986 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6987 and tdep->sigtramp_end.
6988 * i386obsd-nat.c: New file.
6989 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6990
2404952e
MK
6991 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6992 Don't call get_current_frame().
6993
9b4f1ba7
PM
69942002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6995
6996 * i386-nat.c (child_post_startup_inferior): New function
6997 calling i386_cleanup_dregs if
6998 I386_USE_GENERIC_WATCHPOINTS is defined.
6999 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7000 conditional to acknowledge that i386-nat.c has its
7001 own child_post_startup_inferior function.
7002
c0d1d883
MK
70032002-07-04 Mark Kettenis <kettenis@gnu.org>
7004
00f8375e
MK
7005 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7006 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7007 instead of MAX_REGISTER_RAW_SIZE.
7008 (i386_extract_return_value, i386_extract_struct_value_address):
7009 Convert to use regcache.
7010 (i386_gdbarch_init): Set max_register_raw_size and
7011 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7012 Set extract_return_value and extract_struct_value_address instead
7013 of their deprecated variants.
7014
c0d1d883
MK
7015 Convert i386 target to generic dummy frames.
7016 * i386-tdep.c: Include "symfile.h".
7017 (i386_frameless_signal_p): Consider a function to be frameless if
7018 the pc points at the first instruction of the function.
7019 (i386_frame_chain): Handle (generic) call dummies.
7020 (i386_frame_saved_pc): Likewise.
7021 (i386_frame_init_saved_regs): Remove code dealing with call
7022 dummies on the stack.
7023 (i386_push_dummy_frame): Removed.
7024 (i386_call_dummy_words): Removed.
7025 (i386_fix_call_dummy): Removed.
7026 (i386_push_return_address): New function.
7027 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7028 parameter, and don't call get_current_frame.
7029 (i386_pop_frame): New function.
7030 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7031 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7032 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7033 call_dummy_length to 0, set call_dummy_words to NULL, set
7034 sizeof_call_dummy_words to 0, set fix_call_dummy to
7035 generic_fix_call_dummy, set pc_in_call_dummy to
7036 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7037 generic_push_dummy_frame, set push_return_address to
7038 i386_push_return_address and set frame_chain_valid to
7039 generic_file_frame_chain_valid.
7040
049ee0e4
AC
70412002-07-03 Andrew Cagney <ac131313@redhat.com>
7042
7043 * gdbarch.sh (struct regcache): Add opaque declaration.
7044 (EXTRACT_RETURN_VALUE): New architecture method.
7045 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7046 * gdbarch.h, gdbarch.c: Regenerate.
7047 * arch-utils.c (legacy_extract_return_value): New function.
7048 * arch-utils.h (legacy_extract_return_value): Declare.
7049 * values.c (value_being_returned): Re-enable code handling
7050 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7051 deprecated_grub_regcache_for_registers call to block handling
7052 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7053 (EXTRACT_RETURN_VALUE): Do not define.
7054
4e0d9804
GS
70552002-07-03 Grace Sainsbury <graces@redhat.com>
7056
7057 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7058 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7059 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7060 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7061 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7062 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7063 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7064 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7065 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7066 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7067 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7068 argument so the function fits the prototype in the architecture
7069 vector.
7070 (mcore_pop_frame): Remove argument so the function fits the
7071 prototype. Use get_current_frame instead of the argument.
7072 (mcore_push_arguments): Change type of struct_return so the
7073 function can be used in the architecture vector.
7074 (mcore_store_struct_return): Add.
7075 (mcore_frame_init_saved_regs): Add.
7076 (mcore_gdbarch_init): Add function calls to replace the macros
7077 removed from tm-mcore.h
7078
36160dc4
AC
70792002-07-03 Andrew Cagney <ac131313@redhat.com>
7080
7081 * infcmd.c (print_return_value): Remove compatibility code calling
7082 deprecated_grub_regcache_for_registers.
7083
7084 * values.c: Include "regcache.h".
7085 (value_being_returned): Update. Use
7086 deprecated_grub_regcache_for_registers to extract the register
7087 buffer address.
7088 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7089 ``struct regcache''.
7090 * Makefile.in (values.o): Add dependency on $(regcache_h).
7091
7092 * inferior.h (run_stack_dummy): Change type of second parameter to
7093 a ``struct regcache''.
7094 * valops.c (hand_function_call): Change type of retbuf to ``struct
7095 regcache''. Allocate using regcache_xmalloc, clean using
7096 make_cleanup_regcache_xfree.
7097 * infcmd.c (run_stack_dummy): Update. Use
7098 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7099
7100 * regcache.c (do_regcache_xfree): New function.
7101 (make_cleanup_regcache_xfree): New function.
7102 * regcache.h (make_cleanup_regcache_xfree): Declare.
7103
e64d9b3d
MH
71042002-07-03 Martin M. Hunt <hunt@redhat.com>
7105
4dd79c29
MH
7106 * event-top.c (command_line_handler): Don't read past
7107 beginning of buffer.
e64d9b3d 7108
4dd79c29
MH
71092002-07-03 Martin M. Hunt <hunt@redhat.com>
7110
e64d9b3d
MH
7111 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7112 struct frame_id.
7113 (varobj_create): Store frame_id for root.
7114 (varobj_gen_name): Use xasprintf.
7115 (varobj_update): Save and restore frame using get_frame_id() and
7116 frame_find_by_id().
7117 (create_child): Use xasprintf.
7118 (new_root_variable): Initialize frame_id.
7119 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7120 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7121 to prevent memory leak.
7122
26e6c56a
AC
71232002-07-03 Andrew Cagney <ac131313@redhat.com>
7124
7125 * valops.c (hand_function_call): Move declaration of retbuf to
7126 start of function, allocate using malloc, add a cleanup but before
7127 the inf_status cleanup, cleanup the buffer. Rename local variable
7128 old_chain to inf_status_cleanup.
7129
f436dd25
MH
71302002-07-03 Martin M. Hunt <hunt@redhat.com>
7131
7132 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7133
7134 * cli/cli-decode.c (cmd_func_p): New function.
7135 (cmd_func): New function.
7136
7137 * command.h: Add cmd_func() and cmd_func_p().
7138
4cfe2084
GS
71392002-07-03 Grace Sainsbury <graces@redhat.com>
7140
7141 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7142 (REGISTER_SIZE): Remove.
7143 (MAX_REGISTER_RAW_SIZE): Remove.
7144 (REGISTER_VIRTUAL_TYPE): Remove.
7145 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7146 (REGISTER_NAME): Remove.
7147 (USE_GENERIC_DUMMY_FRAMES): Remove.
7148 (CALL_DUMMY): Remove.
7149 (CALL_DUMMY_START_OFFSET): Remove.
7150 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7151 (CALL_DUMMY_LOCATION): Remove.
7152 (FIX_CALL_DUMMY): Remove.
7153 (CALL_DUMMY_ADDRESS): Remove.
7154 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7155 (SAVE_DUMMY_FRAME_TOS): Remove.
7156 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7157 (mcore_register_virtual_type): New function.
7158 (mcore_register_byte): New function.
7159 (mcore_register_size): New function.
7160 (mcore_register_name): New function.
7161 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7162 macros removed from tm-mcore.h.
7163 (mcore_dump_tdep): Add.
7164 (_initialize_mcore_tdep): Add gdbarch_register call.
7165
4fd667e9
MK
71662002-07-03 Mark Kettenis <kettenis@gnu.org>
7167
7168 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7169 frameless_look_for_prologue, such that we actually call this
7170 function.
7171
42f99ac2
JB
71722002-07-02 Joel Brobecker <brobecker@gnat.com>
7173
7174 * frame.h (frame_address_in_block): New function.
7175
7176 * blockframe.c (frame_address_in_block): New function extracted
7177 from get_frame_block().
7178 (get_frame_block): Use frame_address_in_block().
7179 (block_innermost_frame): Use frame_address_in_block() to match
7180 the frame pc address against the block boundaries rather than
7181 the frame pc directly. This prevents a failure when a frame pc
7182 is actually a return-address pointing immediately after the end
7183 of the given block.
7184
103a1597 71852002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7186
7187 * MAINTAINERS: Add self under write after approval.
7188
71892002-07-02 Grace Sainsbury <graces@redhat.com>
7190
103a1597
GS
7191 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7192 used in architecture vector. The default is
7193 m68k_local_breakpoint_from_pc.
7194 (m68k_local_breakpoint_from_pc): Add.
7195 (enum): Add register numbers from tm-m68k.h.
7196 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7197 vector.
7198 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7199 GDB_MULTI_ARCH_PARTIAL.
7200 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7201 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7202 m68k-tdep.c.
7203 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7204 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7205 to enum in m68k-tdep.c
7206
7a5a0534
JB
72072002-07-02 Joel Brobecker <brobecker@gnat.com>
7208
7209 * solib-osf.c (open_map): Compute the list of shared libraries
7210 loaded by the inferior, rather than the list of libraries loaded
7211 by GDB itself. Otherwise, GDB ends up reading the symbols from
7212 the wrong shared libraries...
7213
6f558d74
MK
72142002-07-02 Mark Kettenis <kettenis@gnu.org>
7215
b7d15bf7
MK
7216 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7217 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7218 macros.
7219 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7220 Remove functions.
7221 (FRAMELESS_SIGNAL): Remove function.
7222 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7223 i386_linux_saved_pc_after_call): Removed.
7224 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7225 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7226 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7227
6bff26de
MK
7228 * i386-tdep.c (i386_frameless_signal_p): New function.
7229 (i386_frame_chain): Deal with frameless signals.
7230 (i386_sigtramp_saved_sp): New function.
7231 (i386_frame_saved_pc): Deal with frameless signals.
7232 (i386_saved_pc_after_call): Make sure the correct value is
7233 returned just after entry into a sigtramp.
7234 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7235 i386fbsd4_sc_sp_offset): New variables.
7236 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7237 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7238 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7239 similiar to what we already did for sc_pc_offset.
7240 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7241 tdep->sc_sp_offset.
7242
6f558d74
MK
7243 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7244
145564b7
ML
72452002-07-02 Michal Ludvig <mludvig@suse.cz>
7246
7247 * config/i386/tm-x86-64linux.h: New.
7248 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7249 definitions.
7250 * config/i386/nm-x86-64.h: Rename to ...
7251 * config/i386/nm-x86-64linux.h: ... this one.
7252 * config/i386/x86-64linux.mh: Reflect the above change.
7253
3a1e71e3
MK
72542002-07-01 Mark Kettenis <kettenis@gnu.org>
7255
21d0e8a4
MK
7256 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7257 with sigcontext_addr. Add sc_sp_offset.
7258 (i386bsd_sigtramp_saved_pc): Remove prototype.
7259 (i386bsd_sicontext_addr): Add prototype.
7260 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7261 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7262 (i386_svr4_sigtramp_saved_pc): Removed.
7263 (i386_svr4_sigcontext_addr): New function.
7264 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7265 Initialize tdep->sigcontext_addr instead. Initialize
7266 tdep->sc_pc_offset and tdep->sc_sp_offset.
7267 (i386_gdbarch_init): Likewise.
7268 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7269 any more.
7270 (i386bsd_sigtramp_saved_pc): Remove function.
7271 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7272 Initialize tdep->sigcontext_addr instead. Initialize
7273 tdep->sc_pc_offset.
7274 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7275 of tdep->sigtramp_saved_pc.
7276 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7277 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7278 instead.
7279
3a1e71e3
MK
7280 * i386-tdep.c (i386_frameless_function_invocation,
7281 i386_frame_num_args, i386_frame_init_saved_regs,
7282 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7283 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7284 i386_extract_return_value, i386_store_return_value,
7285 i386_extract_struct_value_address, i386_register_virtual_type,
7286 i386_register_convertible, i386_register_convert_to_virtual,
7287 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7288 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7289 static.
7290
52e9098c
MK
72912002-07-01 Mark Kettenis <kettenis@gnu.org>
7292
77b13a25
MK
7293 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7294
52e9098c
MK
7295 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7296 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7297 this macro. Include "value.h".
7298
1b372fff
AS
72992002-06-30 Aidan Skinner <aidan@velvet.net>
7300
7301 * ada-exp.tab.c: remove as it's a generated file
7302 * ada-lex.c: remove as it's a generated file
7303
9c5045b5
MK
73042002-06-30 Mark Kettenis <kettenis@gnu.org>
7305
4a93c5bb
MK
7306 * config/i386/tm-i386.h (struct frame_info, struct
7307 frame_saved_regs, struct value, struct type): Remove forward
7308 declarations.
7309
322d4fe0
MK
7310 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7311 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7312 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7313 (FILL_FPXREGSET): Define.
7314
fdd8263d
MK
7315 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7316
482e577b
MK
7317 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7318 i[3456]86-*-netbsd* case.
7319 * config/i386/tm-obsd.h: Removed.
7320 * config/i386/obsd.mt: Removed.
7321 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7322 core-aout.o.
7323 (MH_CFLAGS): Add -DYYDEBUG=0.
7324
6916549a
MK
7325 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7326 i386nbsd_sc_pc_offset on OpenBSD too.
7327
9c5045b5
MK
7328 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7329 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7330 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7331 define.
7332 * i386bsd-tdep.c: Include "arch-utils.h".
7333 (i386bsd_aout_in_solib_call_trampoline): New function.
7334 (i386bsd_init_abi): Set in_solib_call_trampoline to
7335 i386bsd_aout_in_solib_call_trampoline.
7336 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7337 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7338
aa84d1bb
AC
73392002-06-28 Andrew Cagney <ac131313@redhat.com>
7340
7341 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7342 (struct obstack, struct bcache): Add opaque declarations.
7343 * Makefile.in (macrotab_h): Update
7344
b4d83933
AC
73452002-06-28 Andrew Cagney <ac131313@redhat.com>
7346
7347 * blockframe.c (generic_find_dummy_frame): Change return type to
7348 ``struct regcache''.
7349 (struct dummy_frame): Replace field ``registers'' with regcache, a
7350 struct regcache object.
7351 (generic_find_dummy_frame): Update.
7352 (generic_push_dummy_frame): Update. Use regcache_xfree,
7353 regcache_xmalloc and regcache_cpy.
7354 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7355 regcache_xfree.
7356 (deprecated_generic_find_dummy_frame): Update.
7357 (generic_read_register_dummy): Update. Use
7358 regcache_read_as_address.
7359 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7360 (generic_get_saved_register): Update. Use regcache_read.
7361
08c0b5bc
AC
73622002-06-28 Andrew Cagney <ac131313@redhat.com>
7363
7364 * Makefile.in (objfiles_h): Add $(bcache_h).
7365 * objfiles.h: Include "bcache.h".
7366
7367 * Makefile.in (symtab_h): Remove $(bcache_h).
7368 * symtab.h: Do not include "bcache.h".
7369
1f89801a
AC
73702002-06-28 Andrew Cagney <ac131313@redhat.com>
7371
7372 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7373 generic_func_frame_chain_valid.
7374
b9644b58
DB
73752002-06-28 David O'Brien <obrien@FreeBSD.org>
7376
7377 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7378 * config/i386/tm-fbsd.h: Likewise.
7379
dd486634
AC
73802002-06-28 Andrew Cagney <ac131313@redhat.com>
7381
7382 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7383 generic_unwind_get_saved_register.
7384
0b434a00
AC
73852002-06-27 Andrew Cagney <ac131313@redhat.com>
7386
7387 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7388 * regcache.c (supply_register): Add missing argument to
7389 register_buffer call.
7390
f30e5a77
AC
73912002-06-27 Andrew Cagney <ac131313@redhat.com>
7392
7393 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7394 Solaris /bin/grep does not not like it. From Peter Schauer.
7395
9f064c95
TT
73962002-06-26 Tom Tromey <tromey@redhat.com>
7397
7398 * command.h (add_setshow_cmd): Declare.
7399 (add_setshow_cmd_full): Declare.
7400 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7401 returns void. Use add_setshow_cmd_full.
7402 (add_setshow_cmd_full): New function.
7403 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7404 (add_setshow_boolean_cmd): Likewise.
7405
099c7589
JT
74062002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7407
7408 * config/vax/tm-vax.h: Protect from multiple inclusion.
7409 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7410 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7411 * config/vax/tm-vaxbsd.h: ...here. New file.
7412 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7413
1d049c5e
JT
74142002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7415
7416 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7417 (BELIEVE_PCC_PROMOTION): Remove.
7418 (AP_REGNUM): Move to...
7419 * config/vax/nm-vax.h: ...here.
7420 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7421 (vax_breakpoint_from_pc): New function.
7422 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7423 and gdbarch_believe_pcc_promotion.
7424
4791e091
JT
74252002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7426
7427 * Makefile.in (vax_tdep_h): Define.
7428 (vax-tdep.o): Use $(vax_tdep_h).
7429 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7430 (vax_dump_tdep): New function.
7431 (_initialize_vax_tdep): Register vax_dump_tdep.
7432 * vax-tdep.h: Include osabi.h.
7433 (struct gdbarch_tdep): New.
7434
da130f98
AC
74352002-06-26 Andrew Cagney <cagney@redhat.com>
7436
7437 * frame.h (deprecated_generic_find_dummy_frame): Rename
7438 generic_find_dummy_frame.
7439 * blockframe.c (generic_find_dummy_frame): Make static.
7440 (deprecated_generic_find_dummy_frame): New function.
7441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7442 generic_find_dummy_frame with deprecated_find_dummy_frame.
7443 (sh64_nofp_frame_init_saved_regs): Ditto.
7444 (sh_fp_frame_init_saved_regs): Ditto.
7445 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7446 (s390_frame_chain): Ditto.
7447 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7448
6300c360
GS
74492002-06-26 Grace Sainsbury <graces@redhat.com>
7450
7451 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7452 gdbarch vector are at the top.
7453 (NUM_REGS): Remove.
7454 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7455 (FRAME_ARGS_ADDRESS): Remove.
7456 (FRAME_LOCALS_ADDRESS): Remove.
7457 (FRAME_NUM_ARGS): Remove.
7458 (FRAME_ARGS_SKIP): Remove.
7459 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7460 (m68k_gdbarch_init): Add gdbarch initializations for macros
7461 undefined in tm-m68k.h
7462
1c617db8
GS
74632002-06-26 Grace Sainsbury <graces@redhat.com>
7464
7465 * monitor.h: Add the function regname to monitor_ops
7466 structure. This way NUM_REGS does not have to be a constant.
7467 * monitor.c (monitor_fetch_register): Added support for regname
7468 function. The function is called if the array regnames is NULL.
7469 (monitor_store_register): Same.
da130f98
AC
7470 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7471 regnames array.
1c617db8
GS
7472 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7473 cpu32bug_cmds.regname to point to new function.
7474 * abug-rom.c (abug_regname): Same as above.
7475 (init_abug_cmds): Same.
7476 * dbug-rom.c (dbug_regname): Same as above.
7477 (init_dbug_cmds): Same.
7478 * remote-est.c (est_regname): Same.
7479 (init_est_cmds): Same.
7480 * rom68k-rom.c (rom68k_regname): Same.
7481 (init_rom68k_cmds): Same.
7482
ea9365bb
TT
74832002-06-25 Tom Tromey <tromey@redhat.com>
7484
7485 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7486
72cec141
AC
74872002-06-25 Andrew Cagney <cagney@redhat.com>
7488
7489 * infrun.c (stop_registers): Change variable's type to ``struct
7490 regcache'''.
7491 (xmalloc_inferior_status): Delete function.
7492 (free_inferior_status): Delete function.
7493 (normal_stop): Use regcache_cpy.
7494 (struct inferior_status): Change type of fields ``stop_registers''
7495 and ``registers'' to ``struct regcache''.
7496 (write_inferior_status_register): Use regcache_write.
7497 (save_inferior_status): Instead of calling
7498 xmalloc_inferior_status, allocate the inf_status buffer directly.
7499 Use regcache_dup_no_passthrough and regcache_dup to save the
7500 buffers.
7501 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7502 Replace the stop_registers regcache instead of overriding it. Use
7503 regcache_xfree. Instead of calling free_inferior_status, xfree
7504 the buffer directly.
7505 (discard_inferior_status): Use regcache_xfree. Instead of calling
7506 free_inferior_status, xfree the buffer directly.
7507 (build_infrun): Use regcache_xmalloc.
7508 (_initialize_infrun): Delete redundant call to build_infrun.
7509
7510 * Makefile.in (infcmd.o): Add $(regcache_h).
7511
7512 * infcmd.c: Include "regcache.h".
7513 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7514 obtain the address of `stop_registers' register buffer.
7515 (print_return_value): Ditto.
7516
7517 * inferior.h (struct regcache): Add opaque declaration.
7518 (stop_registers): Change variable's declared type to ``struct
7519 regcache''.
7520
defc6f8c
TT
75212002-06-24 Tom Tromey <tromey@redhat.com>
7522
c0e624e7
TT
7523 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7524 * target.c (initialize_targets): Fixed typo in
7525 trust-readonly-sections `show' documentation.
7526
defc6f8c
TT
7527 * main.c: Marked all strings with _().
7528
2b236d82
DH
75292002-06-24 Don Howard <dhoward@redhat.com>
7530
7531 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7532 that means max CORE_ADDR+1.
7533 (lookup_mem_region): Ditto.
7534 (mem_info_command): Ditto.
7535
942dc0e9
GS
75362002-06-24 Grace Sainsbury <graces@redhat.com>
7537
7538 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7539 (REGISTER_BYTES_OK): Remove.
7540 (REGISTER_BYTES): Remove.
7541 (STORE_STRUCT_RETURN): Remove.
7542 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7543 (STORE_RETURN_VALUE): Remove.
7544 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7545 (FRAME_CHAIN): Remove.
7546 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7547 (FRAME_SAVED_PC): Remove.
7548 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7549 (m68k_store_struct_return): Add.
7550 (m68k_deprecated_extract_return_value): Add.
7551 (m68k_deprecated_extract_struct_value_address): Add.
7552 (m68k_store_return_value): Add.
7553 (m68k_frame_chain): Add.
7554 (m68k_frameless_function_invocation): Add.
7555 (m68k_frame_saved_pc): Add.
7556 (m68k_gdbarch_init): added set_gdbarch calls for new
7557 functions and deleted macros.
7558
03c30d4d
TT
75592002-06-23 Tom Tromey <tromey@redhat.com>
7560
7561 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7562 (ALLDEPFILES): Likewise.
7563 (udiheaders): Removed.
7564 (udip2soc.o): Likewise.
7565 (udi2go32.o): Likewise.
7566 (udr.o): Likewise.
7567 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7568
37e71372
AC
75692002-06-22 Andrew Cagney <ac131313@redhat.com>
7570
06a6ac57
AC
7571 * infrun.c (_initialize_infrun): Delete unnecessary call to
7572 build_infrun.
7573
37e71372
AC
7574 * regcache.h: Update comments describing the regcache_cpy family
7575 of functions.
7576 (regcache_save, regcache_restore): Delete declaration.
7577 (regcache_save_no_passthrough): Delete declaration.
7578 (regcache_restore_no_passthrough): Delete declaration.
7579 * regcache.c (regcache_save): Delete function.
7580 (regcache_save_no_passthrough): Delete function.
7581 (regcache_restore): Delete function.
7582 (regcache_restore_no_passthrough): Delete function.
7583
78f6d055
AC
75842002-06-21 Andrew Cagney <ac131313@redhat.com>
7585
7586 * config/m68k/tm-m68k.h: Fix typo.
7587 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7588 (m68k_frame_init_saved_regs): Declare.
7589
78b119cb
JB
75902002-06-21 Jim Blandy <jimb@redhat.com>
7591
7592 Remove some vestiges of Harris 88k support.
7593 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7594 register numbering quirk.
7595 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7596 odd symbols occurring in Harris 88k ELF targets.
7597
0fbb3da7
TT
75982002-06-21 Tom Tromey <tromey@redhat.com>
7599
7600 * gdb_locale.h: New file.
7601 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7602 (defs_h): Added gdb_locale.h.
7603 * configure, config.in: Rebuilt.
7604 * configure.in (PACKAGE): Define.
7605 * defs.h: Include gdb_locale.h.
7606 * main.c (captured_main): Call setlocale, bindtextdomain,
7607 textdomain.
7608
456f8b9d
DB
76092002-06-21 Dave Brolley <brolley@redhat.com>
7610
7611 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7612 * config/frv/frv.mt: New file.
7613 * config/frv/tm-frv.h: New file.
7614 * configure.tgt: Support frv-*-*.
7615 * Makefile.in (frv-tdep.o): New target.
7616 * frv-tdep.c: New file.
7617 * NEWS: Mention frv.
7618
cdd463f9
DB
76192002-06-21 Dave Brolley <brolley@redhat.com>
7620
7621 * MAINTAINERS: Add self to "Write After Approval" list.
7622
5d3ed2e3
GS
76232002-06-21 Grace Sainsbury <graces@redhat.com>
7624
7625 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7626 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7627 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7628 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7629 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7630
7631 * m68k-tdep.c: Include arch-utils.h
7632 (m68k_register_raw_size): Add.
7633 (m68k_register_virtual_size): Add.
7634 (m68k_register_virtual_type): Add.
7635 (m68k_register_name): Add.
7636 (m68k_stack_align): Add.
7637 (m68k_register_byte): Add.
7638 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7639 tm-m68k.h.
7640
7f8e7424
GS
76412002-06-21 Grace Sainsbury <graces@redhat.com>
7642
a2c6a6d5 7643 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7644 m68k_find_saved_regs.
7645 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7646 references to it with frame->saved_regs.
7f8e7424
GS
7647 (m68k_gdbarch_init): Added function calls to initialize the
7648 gdbarch structure.
a2c6a6d5
GS
7649 (m68k_fix_call_dummy): Add.
7650 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7651 (CALL_DUMMY): Remove.
7652 (CALL_DUMMY_LENGTH): Remove.
7653 (CALL_DUMMY_START_OFFSET): Remove.
7654 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7655 (FIX_CALL_DUMMY): Remove.
7656 (PUSH_DUMMY_FRAME): Remove.
7657 (POP_FRAME): Remove.
7f8e7424 7658
f461f5cf
PM
76592002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7660
7661 * parse.c (parse_fprintf): New function used to avoid calls to
7662 fprintf in bison parser generated debug code.
7663 * parser-defs.h: Declaration of new parse_fprintf function.
7664 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7665 Set YYDEBUG to 1 by default.
7666 Set YYFPRINTF as parse_fprintf.
7667
7f0c12ed
ML
76682002-06-21 Michal Ludvig <mludvig@suse.cz>
7669
7670 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7671 encoding anymore.
7672 (pointer_encoding, enum ptr_encoding): New.
7673 (execute_cfa_program): Take care about pointer encoding.
7674 (dwarf2_build_frame_info): Only call parse_frame_info for
7675 .debug_frame and .eh_frame.
7676 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7677 fixed augmentation handling, added relative addressing,
7678 ignore duplicate FDEs. Added comments.
19d833a2 7679 * dwarf2cfi.c: Reindented.
7f0c12ed 7680
87c4a039
EZ
76812002-06-20 Elena Zannoni <ezannoni@redhat.com>
7682
7683 * event-top.c (command_handler): Don't use space_at_cmd_start
7684 unless there is sbrk() on the host. Assign time and space data
7685 to union fields of the appropriate length.
7686
1cf877ad
ML
76872002-06-20 Michal Ludvig <mludvig@suse.cz>
7688
7689 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7690 x86_64_register_name. Return type changed to 'const char *'.
7691 (x86_64_register_name2nr): Rename to x86_64_register_number.
7692 (x86_64_gdbarch_init): Update to reflect the change.
7693 * x86-64-tdep.h: Ditto.
7694 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7695 (supply_fpregset): Ditto.
7696
3fadccb3
AC
76972002-06-19 Andrew Cagney <cagney@redhat.com>
7698
7699 * regcache.h: Update copyright.
7700 (struct regcache, struct gdbarch): Add opaque declarations.
7701 (current_regcache): Declare global variable.
7702 (regcache_read, regcache_write): Add gdbarch parameter.
7703 (regcache_save, regcache_save_no_passthrough)
7704 (regcache_restore, regcache_restore_no_passthrough)
7705 (regcache_dup, regcache_dup_no_passthrough)
7706 (regcache_cpy, regcache_cpy_no_passthrough)
7707 (deprecated_grub_regcache_for_registers)
7708 (deprecated_grub_regcache_for_register_valid)
7709 (regcache_valid_p): Add function declarations.
7710
7711 * regcache.c: Update copyright.
7712 (regcache_descr_handle): New global variable.
7713 (struct regcache_descr): Define.
7714 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7715 (regcache_descr, xfree_regcache_descr): New functions.
7716 (struct regcache): Define.
7717 (regcache_xmalloc, regcache_xfree): New functions.
7718 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7719 (regcache_dup, regcache_dup_no_passthrough): New functions.
7720 (regcache_valid_p, regcache_read_as_address): New functions.
7721 (deprecated_grub_regcache_for_registers): New function.
7722 (deprecated_grub_regcache_for_register_valid): New function.
7723 (current_regcache): New global variable.
7724 (register_buffer): Add regcache parameter. Update calls.
7725 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7726 (read_register_gen, write_register_gen): Update register_buffer
7727 call. Test for legacy_p instead of gdbarch_register_read_p or
7728 gdbarch_register_write_p.
7729 (regcache_collect): Update register_buffer call.
7730 (build_regcache): Rewrite. Use deprecated grub functions.
7731 (regcache_save, regcache_save_no_passthrough): New functions.
7732 (regcache_restore, regcache_restore_no_passthrough): New
7733 functions.
7734 (_initialize_regcache): Create the regcache_data_handle. Swap
7735 current_regcache global variable.
7736
7737 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7738 parameter to regcache_read and regcache_write calls.
7739 (sh4_register_read): Ditto.
7740 (sh64_pseudo_register_read): Ditto.
7741 (sh64_register_read): Ditto.
7742 (sh_pseudo_register_write): Ditto.
7743 (sh4_register_write): Ditto.
7744 (sh64_pseudo_register_write): Ditto.
7745 (sh64_register_write): Ditto.
7746
7747 * defs.h (XCALLOC): Define.
7748
152d9db6
GS
77492002-06-19 Grace Sainsbury <graces@redhat.com>
7750
7751 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7752 * m68k-tdep.c (m68k_gdbarch_init): Added.
7753 (m68k_dump_tdep): Added.
7754
170911c7
DJ
77552002-06-19 Daniel Jacobowitz <drow@mvista.com>
7756
7757 * ada-lang.c (fill_in_ada_prototype): Update comment.
7758
2e4ebe70
DJ
77592002-06-19 Daniel Jacobowitz <drow@mvista.com>
7760
7761 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7762 MIPS_ABI_LAST.
7763 (mips_abi_string, mips_abi_strings): New.
7764 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7765 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7766 tdep->mips_abi_string. Honor mips_abi_string. Default to
7767 O32 if no ABI is found.
7768 (mips_dump_tdep): Use mips_abi_strings.
7769 (mips_abi_update): New function.
7770 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7771 ``set mips abi'' and ``show mips abi''. Check the size of
7772 mips_abi_strings.
7773
16775908
AC
77742002-06-19 Andrew Cagney <cagney@redhat.com>
7775
7776 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7777 constant.
7778
5051bfa4 77792002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7780
5051bfa4
JB
7781 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7782 current frame using only the first stack size adjustment. All
7783 subsequent size adjustments are not considered to be part of
7784 the "static" part of the current frame.
7785 Compute the address of the saved registers relative to the
7786 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7787 in use in this frame.
7788
56468235
DH
77892002-06-18 Don Howard <dhoward@redhat.com>
7790
7791 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7792 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7793 suggesting this solution.
7794
0b624158
AC
77952002-06-18 Andrew Cagney <ac131313@redhat.com>
7796
7797 * config/romp/xm-rtbsd.h: Delete file.
7798 * config/romp/rtbsd.mh: Delete file.
7799
221ea385
KS
78002002-06-18 Keith Seitz <keiths@redhat.com>
7801
7802 * breakpoint.c (condition_command): Post breakpoint_modify
7803 when a condition is added to an existing breakpoint.
7804 (commands_command): Likewise for commands.
7805 (set_ignore_count): Likewise for ignore counts.
7806 If no tty, do not simply return, still need to send event
7807 notification.
7808 (ignore_command): Only print a newline if the command came
7809 from a tty.
7810 Don't call breakpoints_changed, since this is now properly
7811 handled by set_ignore_count.
7812
5402eed1
AC
78132002-06-18 Andrew Cagney <cagney@redhat.com>
7814
7815 * MAINTAINERS: Note that cris-elf target can be compiled with
7816 -Werror.
7817 * cris-tdep.c (cris_register_name): Make return type constant.
7818 (cris_breakpoint_from_pc): Ditto.
7819
cc22880b
ML
78202002-06-18 Michal Ludvig <mludvig@suse.cz>
7821
7822 * frame.h (struct frame_info): Change type of context to
7823 'struct context'.
7824
fa88f677
AC
78252002-06-17 Andrew Cagney <cagney@redhat.com>
7826
7827 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7828 pointer.
7829 * gdbarch.h, gdbarch.c: Regenerate.
7830 * config/mips/tm-mips.h (mips_register_name): Update.
7831 * i386-tdep.h (i386_register_name): Update.
7832 * mips-tdep.c (mips_register_name): Update
7833 * alpha-tdep.c (alpha_register_name): Update.
7834 * arch-utils.c (legacy_register_name): Update.
7835 * arch-utils.h (legacy_register_name): Update.
7836 * avr-tdep.c (avr_register_name): Update.
7837 * ia64-tdep.c (ia64_register_name): Update.
7838 * i386-tdep.c (i386_register_name): Update.
7839 * sparc-tdep.c (sparc32_register_name): Update.
7840 (sparc64_register_name): Update.
7841 (sparclite_register_name): Update.
7842 (sparclet_register_name): Update.
7843 * sh-tdep.c (sh_generic_register_name): Update.
7844 (sh_sh_register_name): Update.
7845 (sh_sh3_register_name): Update.
7846 (sh_sh3e_register_name): Update.
7847 (sh_sh_dsp_register_name): Update.
7848 (sh_sh3_dsp_register_name): Update.
7849 (sh_sh4_register_name): Update.
7850 (sh_sh64_register_name): Update.
7851 * s390-tdep.c (s390_register_name): Update.
7852 * rs6000-tdep.c (rs6000_register_name): Update.
7853 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7854 (ns32k_register_name_32382): Update.
7855 * d10v-tdep.c (d10v_ts2_register_name): Update.
7856 (d10v_ts3_register_name): Update.
7857 * xstormy16-tdep.c (xstormy16_register_name): Update.
7858 * vax-tdep.c (vax_register_name): Update.
7859 * v850-tdep.c (v850_register_name): Update.
7860 * m68hc11-tdep.c (m68hc11_register_name): Update.
7861 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7862 (am33_register_name): Update.
7863
ea1e7ef6
GS
78642002-06-17 Grace Sainsbury <graces@redhat.com>
7865
7866 * m68k-tdep.c: Reindented.
7867
9b02dd1b
AC
78682002-06-17 Andrew Cagney <ac131313@redhat.com>
7869
7870 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7871 list of predefined types.
7872
8758dec1
MK
78732002-06-16 Mark Kettenis <kettenis@gnu.org>
7874
b6197528
MK
7875 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7876 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7877 REGISTER_CONVERT_TO_RAW): Remove defines.
7878 (i386_register_virtual_type, i386_register_convertible,
7879 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7880 Remove prototypes.
7881 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7882 macros mentioned above.
7883
82b47e62
MK
7884 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7885 (i386lynx_saved_pc_after_call): Remove prototype.
7886 * i386ly-tdep.c: Include "i386-tdep.h".
7887 (i386lynx_saved_pc_after_call): Make static. Use
7888 read_memory_nobpt instead of read_memory. Use
7889 read_memory_unsigned_integer instead of read_memory_integer.
7890 (i386lynx_init_abi): New function.
7891 (i386lynx_coff_osabi_sniffer): New function.
7892 (_initialize_i386bsd_tdep): New function.
7893
8758dec1
MK
7894 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7895 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7896 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7897 (i386_fix_call_dummy): Remove prototype.
7898 * i386-tdep.c (i386_call_dummy_words): New variable.
7899 (i386_gdbarch_init): Adjust for removal of the
7900 macros mentioned above.
7901
e9e68a56
AC
79022002-06-15 Andrew Cagney <ac131313@redhat.com>
7903
7904 * command.h (add_setshow_auto_boolean_cmd): Replace
7905 add_set_auto_boolean_cmd.
7906 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7907 add_set_auto_boolean_cmd.
7908 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7909 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7910 mask-address'' command.
7911 (show_mask_address): Add cmd parameter.
7912 * remote.c (add_packet_config_cmd): Update. Change type of
7913 set_func and show_func to cmd_sfunc_ftype.
7914 (_initialize_remote): Update `set remote Z-packet'
7915 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7916 (show_remote_protocol_e_packet_cmd): Ditto.
7917 (show_remote_protocol_E_packet_cmd): Ditto.
7918 (show_remote_protocol_P_packet_cmd): Ditto.
7919 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7920 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7921 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7922 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7923 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7924 (show_remote_protocol_Z_packet_cmd): Ditto.
7925 (show_remote_protocol_binary_download_cmd): Ditto.
7926 (show_remote_cmd): Pass NULL to all of above.
7927
fc08ec52
MK
79282002-06-15 Mark Kettenis <kettenis@gnu.org>
7929
7930 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7931 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7932 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7933 POP_FRAME): Remove defines.
7934 (i386_push_arguments, i386_store_struct_return,
7935 i386_extract_return_value, i386_store_return_value,
7936 i386_extract_struct_value_address, i386_push_dummy_frame,
7937 i386_pop_frame): Renove prototypes.
7938 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7939 macros mentioned above.
7940
e707bbc2
AC
79412002-06-15 Andrew Cagney <ac131313@redhat.com>
7942
7943 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7944 add_set_boolean_cmd.
7945 (add_setshow_cmd): New function.
7946 * command.h (add_setshow_boolean_cmd): Replace
7947 add_set_boolean_cmd.
7948 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7949 and ``set rdiromatzero''.
7950 * maint.c (_initialize_maint_cmds): Update commented out code.
7951 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7952 * target.c (initialize_targets): Update `set
7953 trust-readonly-sections'.
7954 * remote.c (_initialize_remote): Update `set remotebreak'.
7955
42fdc8df
MK
79562002-06-15 Mark Kettenis <kettenis@gnu.org>
7957
93924b6b
MK
7958 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7959 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7960 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7961 fit into multi-arch framework.
7962 (i386_breakpoint_from_pc): New function.
7963 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7964 above.
7965
42fdc8df
MK
7966 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7967 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7968 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7969 (i386_frameless_function_invocation, i386_frame_num_args,
7970 i386_frame_init_saved_regs): Remove prototypes.
7971 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7972 macros mentioned above.
7973
9773a94b
AC
79742002-06-15 Andrew Cagney <ac131313@redhat.com>
7975
7976 * cli/cli-decode.c (set_cmd_cfunc): Update.
7977 (set_cmd_sfunc): Update.
7978 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7979 (set_cmd_sfunc, set_cmd_cfunc): Update.
7980 * cli/cli-decode.h: Update.
7981
6e157172
MK
79822002-06-15 Mark Kettenis <kettenis@gnu.org>
7983
7984 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7985 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7986
7f19b9a2
AC
79872002-06-15 Andrew Cagney <ac131313@redhat.com>
7988
7989 * defs.h (auto_boolean): Declare enum.
7990 * command.h (cmd_auto_boolean): Delete enum.
7991 * mips-tdep.c (mask_address_var): Update.
7992 (mips_mask_address_p): Update.
7993 (show_mask_address): Update.
7994 * remote.c (struct packet_config): Update.
7995 (update_packet_config): Update.
7996 (show_packet_config_cmd): Update.
7997 (packet_ok): Update.
7998 (add_packet_config_cmd): Update.
7999 (_initialize_remote):
8000 * command.h: Update.
8001 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8002 (do_setshow_command): Update.
8003 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8004 * cli/cli-decode.h: Update.
8005
1cf88de5
MK
80062002-06-15 Mark Kettenis <kettenis@gnu.org>
8007
22ba8cf2
MK
8008 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8009 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8010 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8011 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8012 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8013 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8014
762c5349
MK
8015 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8016 list of DJGPP COFF targets.
8017
091198bb
MK
8018 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8019 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8020 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8021 (FP0_REGNUM): Remove define.
8022 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8023 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8024 (i386_register_virtual_size): Remove protoype.
8025 * i386-tdep.c (i386_register_virtual_size): Removed.
8026 (i386_extract_return_value, i386_store_return_value): Use
8027 FP0_REGNUM instead of NUM_FREGS to determine whether the
8028 floating-point registers are available.
8029 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8030 Adjust for removal of macros mentioned above.
8031
80322002-06-15 Mark Kettenis <kettenis@gnu.org>
8033
fcc9bf01
MK
8034 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8035 comments.
8036 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8037 Remove prototypes.
8038 (supply_gregset, fill_gregset): Remove use of register keyword and
8039 remove declaration for regmap. Use I386_NUM_GREGS instead of
8040 NUM_REGS and NUM_FREGS.
8041 (FPREGSET_FSAVE_OFFSET): Remove.
8042 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8043 NUM_FREGS to determine whether the floating-point registers are
8044 available.
8045
65e78234
MK
8046 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8047 gnu_store_registers): Replace usage of NUM_GREGS with
8048 I386_NUM_GREGS.
8049
98df6387
MK
8050 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8051 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8052 usage of NUM_GREGS with I386_NUM_GREGS.
8053
099a9414
MK
8054 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8055
57976e88
MK
8056 * i386bsd-nat.c: Include "i386-tdep.h".
8057 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8058 I386_NUM_GREGS.
8059
b335f4a6
MK
8060 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8061 and associated comment. They no longer make any sense, since we
8062 don't use this file anymore on Linux.
8063
1cf88de5
MK
8064 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8065 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8066 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8067 elements in these arrays.
8068 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8069 MAX_NUM_REGS.
8070
daa66587
MK
80712002-06-15 Mark Kettenis <kettenis@gnu.org>
8072
8073 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8074 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8075
26e9b323
AC
80762002-06-14 Andrew Cagney <cagney@redhat.com>
8077
8078 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8079 EXTRACT_RETURN_VALUE.
8080 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8081 EXTRACT_STRUCT_VALUE_ADDRESS.
8082 * gdbarch.h, gdbarch.c: Regenerate.
8083
8084 * values.c (value_being_returned): Handle
8085 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8086 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8087
8088 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8089 * arm-tdep.c (arm_gdbarch_init): Update.
8090 * avr-tdep.c (avr_gdbarch_init): Update.
8091 * cris-tdep.c (cris_gdbarch_init): Update.
8092 * d10v-tdep.c (d10v_gdbarch_init): Update.
8093 * ia64-tdep.c (ia64_gdbarch_init): Update.
8094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8096 * s390-tdep.c (s390_gdbarch_init): Update.
8097 * sh-tdep.c (sh_gdbarch_init): Update.
8098 * s390-tdep.c (s390_gdbarch_init): Update.
8099 * sparc-tdep.c (sparc_gdbarch_init): Update.
8100 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8101 * v850-tdep.c (v850_gdbarch_init): Update.
8102 * vax-tdep.c (vax_gdbarch_init): Update.
8103 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8105
8106 * config/arc/tm-arc.h: Update.
8107 * config/d30v/tm-d30v.h: Update.
8108 * config/fr30/tm-fr30.h: Update.
8109 * config/h8300/tm-h8300.h: Update.
8110 * config/h8500/tm-h8500.h: Update.
8111 * config/i386/tm-i386.h: Update.
8112 * config/i386/tm-ptx.h: Update.
8113 * config/i386/tm-symmetry.h: Update.
8114 * config/i960/tm-i960.h: Update.
8115 * config/m32r/tm-m32r.h: Update.
8116 * config/m68k/tm-delta68.h: Update.
8117 * config/m68k/tm-linux.h: Update.
8118 * config/m68k/tm-m68k.h: Update.
8119 * config/m88k/tm-m88k.h: Update.
8120 * config/mcore/tm-mcore.h: Update.
8121 * config/mips/tm-mips.h: Update.
8122 * config/mn10200/tm-mn10200.h: Update.
8123 * config/pa/tm-hppa.h: Update.
8124 * config/pa/tm-hppa64.h: Update.
8125 * config/sparc/tm-sp64.h: Update.
8126 * config/sparc/tm-sparc.h: Update.
8127 * config/sparc/tm-sparclet.h: Update.
8128 * config/z8k/tm-z8k.h: Update.
8129
5179e78f
AC
81302002-06-14 Andrew Cagney <cagney@redhat.com>
8131
8132 * Makefile.in (i386_linux_tdep_h): Define.
8133 (i386_tdep_h, i387_tdep_h): Define.
8134 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8135 $(i386_tdep_h) and $(i387_tdep_h).
8136 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8137
8201327c
MK
81382002-06-14 Mark Kettenis <kettenis@gnu.org>
8139
edf393ac
MK
8140 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8141 Already covered by the default.
8142
896fb97d
MK
8143 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8144 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8145 (i386_gdbarch_init): Initialize long_double_format and long_double
8146 bit.
8147
8201327c
MK
8148 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8149 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8150 Move these to ...
8151 * config/i386/i386sol2.mh: ... here.
8152 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8153 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8154 (SIGCONTEXT_PC_OFFSET): Remove define.
8155 (IN_SIGTRAMP): Remove define.
8156 * i386-sol2-tdep.c: New file.
8157
8158 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8159 * config/i386/tm-i386nw.h: Removed.
8160
8161 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8162 USE_STRUCT_CONVENTION): Remove defines.
8163 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8164 (get_longjmp_target): Remove prototype.
8165 (IN_SIGTRAMP): Remove define.
8166 (i386bsd_in_sigtramp): Remove prototype.
8167 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8168 function. Update comment accordingly
8169 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8170 (FRAME_SAVED_PC): Remove define.
8171 (i386bsd_frame_saved_pc): Remove prototype.
8172 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8173 GET_LONGJMP_TARGET): Remove defines.
8174 (get_longjmp_target): Remove prototype.
8175 (IN_SIGTRAMP): Remove define.
8176 (i386bsd_in_sigtramp): Remove prototype.
8177 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8178 function. Update comment accordingly
8179 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8180 (FRAME_SAVED_PC): Remove define.
8181 (i386bsd_frame_saved_pc): Remove prototype.
8182 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8183 Remove prototype.
8184 (USE_STRUCT_CONVENTION): Remove prototype.
8185 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8186 declaration.
8187 (_initialize_i386bsd_nat): Revise logic to determine some
8188 constants at compile time when compiling a native GDB. Warn if
8189 things don't match up with what we expect.
8190 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8191 Remove variables.
8192 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8193 to use date stored in `struct gdbarch_tdep'.
8194 (i386bsd_sigcontext_offset): Remove varaible.
8195 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8196 stored in `struct gdbarch_tdep'.
8197 (i386bsd_frame_saved_pc): Make static.
8198 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8199 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8200 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8201 i386fbsd4_sc_pc_offset): New variables.
8202 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8203 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8204 functions.
8205 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8206 functions.
8207 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8208 Modify the value of i386fbsd_sigtramp_start and
8209 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8210 i386fbsd_sigtramp_end.
8211 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8212 function.
8213
8214 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8215 define to i386-linux-tdep.h.
8216 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8217 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8218 defines.
8219 (i386_linux_register_name, i386_linux_register_byte,
8220 i386_linux_register_raw_size): Remove prototypes.
8221 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8222 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8223 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8224 TARGET_WRITE_PC): Remove defines.
8225 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8226 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8227 i386_linux_write_pc): Remove prototypes.
8228 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8229 (get_longjmp_target): Remove prototype.
8230 * i386-linux-tdep.h: New file.
8231 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8232 * i386-linux-tdep.c: Include "i386-tdep.h" and
8233 "i386-linux-tdep.h".
8234 (i386_linux_register_name, i386_linux_register_byte,
8235 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8236 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8237 Make static.
8238 (i386_linux_init_abi): New function.
8239 (_initialize_i386_linux_tdep): New function.
8240
8241 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8242 (i386_saved_pc_after_call): Remove prototype.
8243 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8244 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8245 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8246 (i386_register_name, i386_stab_reg_to_regnum,
8247 i386_dwarf_reg_to_regnum): Remove prototypes.
8248 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8249 SIZEOF_SSE_REGS): Remove defines.
8250 (REGISTER_BYTES): Remove define.
8251 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8252 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8253 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8254 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8255 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8256 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8257 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8258 (get_longjmp_target): Remove prototype.
8259 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8260 (sigtramp_saved_pc): Remove define.
8261 (i386v4_sigtramp_saved_pc): Remove prototype.
8262 * config/i386/tm-go32.h (FRAME_CHAIN,
8263 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8264 (i386go32_frame_saved_pc): Remove prototype.
8265 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8266 (get_longjmp_target): Remove prototype.
8267 * i386-tdep.h: Include "osabi.h".
8268 (enum i386_abi): Removed.
8269 (enum struct_return): New enum.
8270 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8271 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8272 sc_pc_offset members.
8273 (i386_gdbarch_register_os_abi): Remove prototype.
8274 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8275 I386_SSE_NUM_REGS): New defines.
8276 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8277 I386_SSE_SIZEOF_REGS): New defines.
8278 (i386_register_name, i386_register_byte, i386_register_raw_size):
8279 New prototypes.
8280 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8281 (i386bsd_sigtramp_saved_pc): New prototype.
8282 * i386-tdep.c: Don't include "elf-bfd.h".
8283 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8284 i386_frame_chain, i386_saved_pc_after_call): Make static.
8285 (i386_frame_saved_pc): Rewrite to call architecture dependent
8286 function to deal with signal handlers. Make static.
8287 (i386go32_frame_saved_pc): Removed.
8288 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8289 Removed.
8290 (i386_get_longjmp_target): New function.
8291 (default_struct_convention, pcc_struct_convention,
8292 reg_struct_convention, valid_conventions, struct_convention): New
8293 variables.
8294 (i386_use_struct_convention): New function.
8295 (i386v4_sigtramp_saved_pc): Renamed to
8296 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8297 (i386_pc_in_sigtramp): New function.
8298 (i386_abi_names): Removed.
8299 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8300 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8301 Removed.
8302 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8303 i386_gdbarch_register_os_abi): Removed.
8304 (struct i386_abi_handler): Removed.
8305 (i386_abi_handler_list): Removed.
8306 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8307 functions.
8308 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8309 i386_nw_init_abi): New functions.
8310 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8311 Use set_gdbarch_xxx() calls instead of relying on macros for a
8312 number of calls.
8313 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8314 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8315 Register the various architecture variants defined in this file.
8316
ad2f7632
DJ
83172002-06-14 Daniel Jacobowitz <drow@mvista.com>
8318
8319 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8320 (struct main_type): Remove arg_types member. Update comments for
8321 struct field.
8322 (TYPE_ARG_TYPES): Remove.
8323 (TYPE_FN_FIELD_ARGS): Update.
8324 (smash_to_method_type): Update prototype.
8325
8326 * c-typeprint.c (cp_type_print_method_args): Take method type
8327 instead of argument list. Use new argument layout. Simplify.
8328 (c_type_print_args): Use new argument layout. Simplify.
8329 (c_type_print_base): Update call to cp_type_print_method_args.
8330 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8331 argument; use die->type instead. Update call to
8332 smash_to_method_type.
8333 (read_structure_scope): Update call to dwarf2_add_member_fn.
8334 * gdbtypes.c (allocate_stub_method): Update comment.
8335 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8336 Use new argument layout.
8337 (check_stub_method): Use new argument layout. Don't count
8338 void as an argument.
8339 (print_arg_types): Update comments. Use new argument layout.
8340 (recursive_dump_type): Don't print arg_types member.
8341 * hpread.c (hpread_read_struct_type): Use new argument layout.
8342 (fixup_class_method_type): Likewise.
8343 (hpread_type_lookup): Likewise.
8344 * stabsread.c (read_type): Update calls to read_args and
8345 smash_to_method_type.
8346 (read_args): Use new argument layout. Simplify.
8347 * valops.c (typecmp): Use new argument layout. Update parameters
8348 and comments. Simplify.
8349 (hand_function_call): Use new argument layout.
8350 (search_struct_method): Update call to typecmp.
8351 (find_overload_match): Use new argument layout.
8352
6da02953
DJ
83532002-06-13 Daniel Jacobowitz <drow@mvista.com>
8354
8355 * NEWS: Mention multithreaded debug support for gdbserver.
8356
519b2366
DJ
83572002-06-13 Daniel Jacobowitz <drow@mvista.com>
8358
8359 * MAINTAINERS: Mention NEWS.
8360
6c0d6680
DJ
83612002-06-13 Daniel Jacobowitz <drow@mvista.com>
8362
8363 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8364 (struct mips_objfile_private, compare_pdr_entries): New.
8365 (non_heuristic_proc_desc): Read the ".pdr" section if it
8366 is present.
8367
6529d2dd
AC
83682002-06-12 Andrew Cagney <ac131313@redhat.com>
8369
8370 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8371 (arm_debug): New static variable.
8372 (_initialize_arm_tdep): Add ``set debug arm'' command.
8373
26216b98
AC
83742002-06-12 Andrew Cagney <ac131313@redhat.com>
8375
8376 * Makefile.in (sim_arm_h): Define.
8377 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8378 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8379 (arm_register_sim_regno): New function, map an internal REGNUM
8380 onto a simulator register number.
8381 (arm_gdbarch_init): Set register_sim_regno.
8382
814b3ba0
AH
83832002-06-09 Aldy Hernandez <aldyh@redhat.com>
8384
8385 * MAINTAINERS: Add self.
8386
475b0867
JB
83872002-06-11 Jim Blandy <jimb@redhat.com>
8388
919d772c
JB
8389 * source.c (source_info): Mention whether the symtab has
8390 information about preprocessor macros.
8391
475b0867
JB
8392 Call the command `info macro', not `show macro'.
8393 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8394 Fix error message.
8395 (_initialize_macrocmd): Register `info_macro_command' in
8396 `infolist', not `showlist'.
8397
9e364162
DJ
83982002-06-11 Daniel Jacobowitz <drow@mvista.com>
8399
8400 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8401 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8402 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8403 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8404 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8405 unconditionally.
8406 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8407 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8408 (_initialize_mips_tdep): Remove dead code.
8409 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8410 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8411 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8412 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8413 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8414 MIPS_LAST_FP_ARG_REGNUM): Remove.
8415
23aa4c72
ML
84162002-06-11 Michal Ludvig <mludvig@suse.cz>
8417
8418 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8419 (unwind_tmp_obstack_free, parse_frame_info)
8420 (update_context, cfi_read_fp, cfi_write_fp)
8421 (cfi_frame_chain, cfi_init_extra_frame_info)
8422 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8423 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8424
70eb15a4
CV
84252002-06-11 Corinna Vinschen <vinschen@redhat.com>
8426
8427 * v850-tdep.c (v850_type_is_scalar): New function.
8428 (v850_use_struct_convention): Match current gcc implementation
8429 as close as possible.
8430 (v850_push_arguments): Fix stack_offset handling. Don't write
8431 struct_addr into register. This is done by v850_store_struct_return.
8432 (v850_extract_return_value): Care for structs.
8433 (v850_store_return_value): Ditto.
8434 (v850_store_struct_return): Actually write address.
8435
482a4d06
ML
84362002-06-11 Michal Ludvig <mludvig@suse.cz>
8437
8438 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8439 without debug information too.
8440
d855c300
AC
84412002-06-10 Andrew Cagney <ac131313@redhat.com>
8442
8443 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8444 Make multi-arch pure.
8445 * gdbarch.h, gdbarch.c: Re-generate.
8446 * arm-tdep.c (arm_print_float_info): Update.
8447 * arch-utils.h (default_print_float_info): Update.
8448 * arch-utils.c (default_print_float_info): Update.
8449 * infcmd.c (float_info): Update call.
8450
dd12a101
AC
84512002-06-10 Andrew Cagney <ac131313@redhat.com>
8452
8453 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8454 the front of the initialize list.
8455
101dcfbe
AC
84562002-06-10 Andrew Cagney <ac131313@redhat.com>
8457
8458 * infrun.c (struct inferior_status): Replace fields
8459 selected_frame_address and selected_level with field
8460 selected_frame_id.
8461 (save_inferior_status): Update. Use get_frame_id.
8462 (struct restore_selected_frame_args): Delete.
8463 (restore_selected_frame): Update. Use frame_find_by_id.
8464 (restore_inferior_status): Update.
8465
8466 * breakpoint.h (struct breakpoint): Change type of
8467 watchpoint_frame to frame_id.
8468 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8469 call to get_current_frame.
8470 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8471 get_current_frame.
8472 (watchpoint_check): Use frame_find_by_id.
8473
8474 * frame.h (record_selected_frame): Delete declaration.
8475 * stack.c (record_selected_frame): Delete function.
8476
8477 * frame.h (struct frame_id): Define.
8478 (get_frame_id): Declare.
8479 (frame_find_by_id): Declare.
8480 * frame.c (frame_find_by_id): New function.
8481 (get_frame_id): New function.
8482
304270b6
AV
84832002-06-10 Andrey Volkov <avolkov@transas.com>
8484
8485 * ser-e7kpc.c: Fix duplicated define and call of
8486 _initialize_ser_e7000pc
8487
2f2cf184
DJ
84882002-06-09 Daniel Jacobowitz <drow@mvista.com>
8489
8490 * signals/signals.c (target_signal_from_host): Fix #ifdef
8491 SIGRTMIN case.
8492 (do_target_signal_to_host): Likewise.
8493
caaa3122
DJ
84942002-06-09 Daniel Jacobowitz <drow@mvista.com>
8495
8496 * mips-tdep.c (mips_find_abi_section): New function.
8497 (mips_gdbarch_init): Call it.
8498
6ac5df3a
MK
84992002-06-09 Mark Kettenis <kettenis@gnu.org>
8500
8501 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8502 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8503 after Andrew's 2002-06-08 gdbarch change.
8504
82ea117a
MK
85052002-06-09 Mark Kettenis <kettenis@gnu.org>
8506
8507 * i386-linux-nat.c (suppy_gregset): Don't supply
8508 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8509 register cache.
8510 (fill_gregset): Don't fetch it under the same circumstances.
8511
3c25f8c7
AC
85122002-06-09 Andrew Cagney <cagney@redhat.com>
8513
8514 * Makefile.in (callback_h): Define.
8515 (remote_sim_h): Update path to remote-sim.h.
8516 (remote-rdp.o): Add $(callback_h).
8517 (remote-sim.o): Use $(callback_h).
8518 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8519 * remote-rdp.c: Include "gdb/callback.h".
8520
1029b7fa
MK
85212002-06-09 Mark Kettenis <kettenis@gnu.org>
8522
8523 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8524 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8525
616675d3
AC
85262002-06-08 Andrew Cagney <ac131313@redhat.com>
8527
a3efda28
AC
8528 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8529 * rdi-share/serpardr.c: Ditto.
8530 * rdi-share/unixcomm.c: Ditto.
8531 * rdi-share/serdrv.c: Ditto.
8532 * rdi-share/hostchan.h: Ditto.
8533 * rdi-share/hostchan.c: Ditto.
8534 * rdi-share/host.h: Ditto.
8535 * rdi-share/devsw.c: Ditto.
8536
c5f10366
AC
8537 * objfiles.h: Change type of obj_private to void pointer.
8538 * pa64solib.c: Update copyright. Don't include "assert.h", use
8539 strcmp instead of STREQ, use LONGEST, do not use PTR
8540 * somsolib.c: Ditto.
8541
616675d3
AC
8542 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8543 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8544 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8545
e4b415d9
AC
85462002-06-08 Andrew Cagney <ac131313@redhat.com>
8547
8548 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8549 (default_get_saved_register): Delete function.
8550 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8551 generic_unwind_get_saved_register.
8552 * gdbarch.h, gdbarch.c: Re-generate.
8553
ca0d0b52
AC
85542002-06-08 Andrew Cagney <ac131313@redhat.com>
8555
8556 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8557 generic_func_frame_chain_valid.
8558 * gdbarch.h, gdbarch.c: Re-generate.
8559 * blockframe.c (generic_func_frame_chain_valid): Only check
8560 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8561 passing FP to PC_IN_CALL_DUMMY.
8562 Fix PR gdb/360.
8563
76860b5f
AC
85642002-06-08 Andrew Cagney <ac131313@redhat.com>
8565
8566 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8567 (register_gdbarch_data): Initialize init_p.
8568 (gdbarch_data): Initialize data pointer using the init function.
8569 (init_gdbarch_data): Delete function.
8570 (gdbarch_update_p): Update.
8571 (initialize_non_multiarch): Update.
8572 (struct gdbarch): Add field initialized_p.
8573 * gdbarch.h, gdbarch.c: Re-generate.
8574
8dda9770
ML
85752002-06-07 Michal Ludvig <mludvig@suse.cz>
8576
8577 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8578 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8579 better do the things actually here.
8580 * x86-64-tdep.c (x86_64_register_name2nr): New.
8581 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8582 (x86_64_gdbarch_init): Respect the above change.
8583 * x86-64-tdep.h (x86_64_register_name2nr)
8584 (x86_64_register_nr2name): Add prototypes.
8585 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8586
3d79a47c
MS
85872002-06-06 Michael Snyder <msnyder@redhat.com>
8588
7bd91a28
MS
8589 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8590 Delete extra braces and re-indent.
8591 (d10v_store_return_value): Char return values
3d79a47c
MS
8592 must be shifted over by one byte in R0.
8593 (d10v_extract_return_value): Delete extra braces, re-indent.
8594
095a4c96
EZ
85952002-06-06 Elena Zannoni <ezannoni@redhat.com>
8596
8597 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8598 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8599 (d10v_integer_to_address): Rewrite.
8600 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8601 the d10v specific functions which take care of converting to the
8602 correct space.
8603
e8a77ca4
EZ
86042002-06-06 Elena Zannoni <ezannoni@redhat.com>
8605
8606 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8607 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8608
4f2e4a4f
AC
86092002-06-02 Andrew Cagney <ac131313@redhat.com>
8610
8611 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8612 includes.
8613 * config/tm-linux.h: Ditto.
8614 * config/alpha/tm-alphalinux.h: Ditto.
8615 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8616 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8617 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8618 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8619 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8620 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8621 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8622 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8623 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8624 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8625 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8626 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8627 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8628 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8629 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8630 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8631 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8632 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8633 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8634 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8635 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8636 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8637 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8638 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8639 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8640 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8641 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8642 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8643 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8644 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8645 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8646 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8647 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8648 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8649 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8650 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8651 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8652
ae2ab2ce
AS
86532002-05-04 Aidan Skinner <aidan@velvet.net>
8654
8655 * ada-exp.tab.c: New file
8656 * ada-exp.y: New file
8657 * ada-lang.c: New file
8658 * ada-lang.h: New file
8659 * ada-lex.c: New file
8660 * ada-lex.l: New file
8661 * ada-tasks.c: New file
8662 * ada-typeprint.c: New file
8663 * ada-valprint.c: New file
8664
0ddd0135
JT
86652002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8666
8667 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8668 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8669
750fbacc
JT
86702002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8671
8672 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8673 insetead of ppc-linux-tdep.o.
8674 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8675 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8676
df94e18a
AC
86772002-06-02 Andrew Cagney <ac131313@redhat.com>
8678
8679 2002-05-07 Christian Groessler <chris@groessler.org>
8680 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8681 bit register contents for little endian hosts.
8682
1a38ab75
AC
86832002-06-01 Andrew Cagney <ac131313@redhat.com>
8684
8685 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8686 any maintainer.
8687
8b1632ac
AC
86882002-06-01 Andrew Cagney <ac131313@redhat.com>
8689
8690 * gdbarch.h: Regenerate.
8691
627054c8
AC
86922002-06-01 Andrew Cagney <ac131313@redhat.com>
8693
8694 * MAINTAINERS: Add everyone to write-after-approval list.
8695
4f460812
AC
86962002-06-01 Andrew Cagney <ac131313@redhat.com>
8697
8698 * stack.c (frame_info): Use frame_register_unwind instead of
8699 saved_regs. Mention when the SP is on the stack or in a register.
8700
8701 * frame.h (frame_register_unwind_ftype): Define. Document.
8702 (struct frame_info): Add field register_unwind and
8703 register_unwind_cache.
8704 (frame_register_unwind): Declare.
8705 (generic_unwind_get_saved_register): Declare.
8706
8707 * frame.c (frame_register_unwind): New function.
8708 (generic_unwind_get_saved_register): New function.
8709
8710 * blockframe.c (generic_call_dummy_register_unwind): New function.
8711 (frame_saved_regs_register_unwind): New function.
8712 (set_unwind_by_pc): New function.
8713 (create_new_frame): New function.
8714 (get_prev_frame): New function.
8715
de888f76
AC
87162002-05-30 Andrew Cagney <ac131313@redhat.com>
8717
8718 * a29k-share/: Delete directory.
8719 * remote-vx29k.c: Delete file.
8720
2f2c3626
JT
87212002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8724 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8725
9ce5c36a
JT
87262002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8727
8728 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8729 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8730 (sparc64nbsd-nat.o)
8731 (sparcnbsd-nat.o)
8732 (sparcnbsd-tdep.o): New dependency lists.
8733 * NEWS: Note new UltraSPARC NetBSD native configuration.
8734 * configure.host (sparc64-*-netbsd*): New host.
8735 * configure.tgt (sparc-*-netbsdelf*)
8736 (sparc-*-netbsd*): Set gdb_target to nbsd.
8737 (sparc64-*-netbsd*): New target.
8738 * sparc64nbsd-nat.c: New file.
8739 * sparcnbsd-nat.c: New file.
8740 * sparcnbsd-tdep.c: New file.
8741 * sparcnbsd-tdep.h: New file.
8742 * config/sparc/nbsd.mt: New file.
8743 * config/sparc/nbsd64.mh: New file.
8744 * config/sparc/nbsd64.mt: New file.
8745 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8746 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8747 (HOST_IPC): Remove.
8748 * config/sparc/nbsdaout.mt: Remove.
8749 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8750 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8751 (HOST_IPC): Remove.
8752 * config/sparc/nbsdelf.mt: Remove.
8753 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8754 sparc-nat.c compatiblity defines.
8755 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8756 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8757 * config/sparc/tm-nbsd64.h: New file.
8758 * config/sparc/tm-nbsdaout.h: Remove.
8759 * config/sparc/xm-nbsd.h: Remove.
8760
ef3cf062
JT
87612002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8762
8763 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8764 * sparc-tdep.c: Include osabi.h.
8765 (gdbarch_tdep): Add osabi member.
8766 (_initialize_sparc_tdep): Use gdbarch_register.
8767 (sparc_gdbarch_init): Use generic OS ABI framework.
8768 (sparc_dump_tdep): New function.
8769
ee8ff470
KB
87702002-05-30 Kevin Buettner <kevinb@redhat.com>
8771
8772 * corefile.c (do_captured_read_memory_integer): Return non-zero
8773 result.
8774 (safe_read_memory_integer): Copy result of memory read when
8775 status is non-zero. Also, add comments.
8776
7b112f9c
JT
87772002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8778
8779 * Makefile.in (ppc_tdep_h): Define.
8780 (ppc-linux-nat.o)
8781 (ppc-linux-tdep.o)
8782 (rs6000-tdep.o): Use $(ppc_tdep_h).
8783 (ppc-sysv-tdep.o)
8784 (ppcnbsd-nat.o)
8785 (ppcnbsd-tdep.o): New dependency lists.
8786 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8787 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8788 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8789 (ppc_sysv_abi_broken_use_struct_convention)
8790 (ppc_sysv_abi_use_struct_convention)
8791 (ppc_sysv_abi_push_arguments): Move to...
8792 * ppc-sysv-tdep.c: ...here.
8793 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8794 * rs6000-tdep.c (process_note_abi_tag_sections)
8795 (get_elfosabi): Remove.
8796 (rs6000_gdbarch_init): Use generic OS ABI framework.
8797 (rs6000_dump_tdep): New function.
8798 (_initialize_rs6000_tdep): Use gdbarch_register.
8799 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8800 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8801 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8802 of ppc-linux-tdep.o.
8803 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8804 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8805 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8806 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8807 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8808 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8809
480dd42a
JB
88102002-05-29 Jim Blandy <jimb@redhat.com>
8811
8812 * macroscope.c (default_macro_scope): Put `void' in empty argument
8813 list.
8814
4182591f
AC
88152002-05-29 Andrew Cagney <ac131313@redhat.com>
8816
8817 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8818 * arch-utils.c: Include "sim-regno.h".
8819 * gdbarch.sh: Don't include "sim-regno.h".
8820 * gdbarch.h, gdbarch.c: Regenerate.
8821 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8822 here.
8823 * arch-utils.h (legacy_register_sim_regno): To here.
8824 * remote-sim.c (legacy_register_sim_regno): Move function from
8825 here.
8826 * arch-utils.c (legacy_register_sim_regno): To here.
8827
8238d0bf
AC
88282002-05-28 Andrew Cagney <ac131313@redhat.com>
8829
8830 * sim-regno.h: New file.
8831 * Makefile.in (sim_regno_h): Define.
8832 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8833 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8834 (legacy_register_sim_regno): New function.
8835 (one2one_register_sim_regno): New function.
8836 (gdbsim_fetch_register): Rewrite.
8837 (gdbsim_store_register): Only store a register when
8838 REGISTER_SIM_REGNO is valid.
8839 * d10v-tdep.c: Include "sim-regno.h".
8840 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8841 (d10v_ts3_register_sim_regno): Ditto.
8842 * gdbarch.sh: Include "sim-regno.h".
8843 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8844 * gdbarch.h, gdbarch.c: Regenerate.
8845 * arch-utils.h (default_register_sim_regno): Delete declaration.
8846 * arch-utils.c (default_register_sim_regno): Delete function.
8847
485721b1
JT
88482002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8849
8850 * ppcnbsd-nat.c: Rewrite.
8851 * ppcnbsd-tdep.c: New file.
8852 * ppcnbsd-tdep.h: New file.
8853 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8854 solib.o, and solib-svr4.o.
8855 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8856 nbsd-tdep.o, and corelow.o.
8857
697f244d
AC
88582002-05-28 Andrew Cagney <ac131313@redhat.com>
8859
8860 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8861 `tr' and `sed'. Mention that `broken' targets are not expected to
8862 build.
8863
f08caad1 88642002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8865
8866 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8867 Let PC point right after the prologue before looking up symbols.
8868
3139facc
MH
88692002-05-27 Martin M. Hunt <hunt@redhat.com>
8870
8871 * i386-tdep.c (i386_register_virtual_type): Return
8872 builtin_type_vec128i for SSE registers.
8873
8874 * gdbtypes.h (builtin_type_vec128i): Declare.
8875
8876 * gdbtypes.c (build_builtin_type_vec128i): New function.
8877 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8878 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8879 (build_gdbtypes): Initialize new builtin vector types.
8880 (_initialize_gdbtypes): Register new vector types with gdbarch.
8881
6e3ba3b8
JT
88822002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8883
8884 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8885 since it has been multi-arch'd.
8886 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8887 Move Alpha and VAX multi-arch news entries to same section
8888 as other multi-arch news.
8889
93d5585d
JT
88902002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8891
8892 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8893 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8894 static. Rename some register numbers to put them in ns32k-tdep
8895 private namespace.
8896 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8897 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8898 functions.
8899 (_initialize_ns32k_tdep): Use gdbarch_register.
8900 * ns32k-tdep.h: New file.
8901 * ns32knbsd-tdep.c: New file.
8902 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8903 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8904 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8905 REGISTER_BYTES, REGISTER_BYTE): Remove.
8906 * config/ns32k/tm-ns32k.h: New file.
8907 * config/ns32k/tm-umax.h: Remove.
8908
efb2c70e
JT
89092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8910
8911 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8912 ns32k_store_struct_return, ns32k_extract_return_value,
8913 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8914 functions.
8915 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8916 ns32k_saved_pc_after_call.
8917 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8918 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8919 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8920 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8921 ns32k_extract_struct_value_address.
8922
7bcc927b
JT
89232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8924
8925 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8926 ns32k_fix_call_dummy): New.
8927 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8928 ns32k_call_dummy_words.
8929 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8930 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8931 CALL_DUMMY_NARGS): Remove.
8932 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8933
78f9d765
JT
89342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8935
8936 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8937 ns32k_frame_saved_pc, ns32k_frame_args_address,
8938 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8939 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8940 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8941 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8942 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8943 (BREAKPOINT): Remove..
8944 (FRAME_CHAIN): Define as ns32k_frame_chain.
8945 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8946 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8947 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8948 (FRAME_FIND_SAVED_REGS): Remove.
8949 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8950 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8951 (POP_FRAME): Define as ns32k_pop_frame.
8952
f2c762e0
JT
89532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8954
8955 * ns32k-tdep.c (ns32k_register_byte_32082,
8956 ns32k_register_byte_32382, ns32k_register_raw_size,
8957 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8958 functions.
8959 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8960 ns32k_register_byte_32382.
8961 * config/ns32k/tm-umax.h: Update copyright years.
8962 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8963 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8964 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8965 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8966 (ns32k_get_enter_addr): Fix prototype.
8967
af137673
JT
89682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8969
8970 * ns32k-tdep.c: Update copyright years.
8971 (ns32k_register_name_32082): New function.
8972 (ns32k_register_name_32382): Ditto.
8973 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8974 (REGISTER_NAME): Define as ns32k_register_name_32382.
8975 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8976 (REGISTER_NAME): Define as ns32k_register_name_32082.
8977
a8bc7b56
JB
89782002-05-24 Jim Blandy <jimb@redhat.com>
8979
8980 * dwarf2read.c (free_line_header): Use xfree, not free.
8981
83a45910
JT
89822002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8983
8984 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8985 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8986
0db71247
AC
89872002-05-23 Andrew Cagney <ac131313@redhat.com>
8988
8989 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8990
b9e5e4dd
AC
89912002-05-23 Andrew Cagney <ac131313@redhat.com>
8992
8993 From Ross Alexander at NEC Europe:
8994 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8995
de530e84
MS
89962002-05-23 Michael Snyder <msnyder@redhat.com>
8997
8998 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8999 for input, rather than parse_and_eval_address.
9000
b91b96f4
AC
90012002-05-23 Andrew Cagney <ac131313@redhat.com>
9002
9003 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9004 * Makefile.in (sim_d10v_h): Update definition.
9005
8b279e7a
AC
90062002-05-24 Andrew Cagney <cagney@redhat.com>
9007
9008 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9009 change `2002-05-22 Michael Snyder' below.
9010 (d10v_push_arguments): Ditto.
9011 (d10v_extract_return_value): Ditto.
9012
0a3d0425
JB
90132002-05-23 Jim Blandy <jimb@redhat.com>
9014
9015 * macrotab.c (check_for_redefinition): Don't complain if the new
9016 definition is the same as the previous one. Take more arguments
9017 to allow the comparison.
9018 (macro_define_object, macro_define_function): Pass more arguments
9019 to check_for_redefinition.
9020
78eac43e
MS
90212002-05-22 Michael Snyder <msnyder@redhat.com>
9022
9023 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9024 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9025 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9026 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9027 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9028 Add a temp variable to save a call (and a memory read).
9029 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9030 if possible (so that PC_IN_CALL_DUMMY will work).
9031
9bc1edb8
CV
90322002-05-22 Corinna Vinschen <vinschen@redhat.com>
9033
9034 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9035
005ef3d2
ML
90362002-05-22 Michal Ludvig <mludvig@suse.cz>
9037
9038 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9039 fde->cie_ptr.
9040 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9041 (dwarf2_build_frame_info): Add offset to fde->initial_location
9042 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
9043 (execute_stack_op): Change type of 'result' from ULONGEST to
9044 CORE_ADDR.
005ef3d2 9045
fcf4f891
JT
90462002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9047
9048 * config/alpha/tm-nbsd.h: Include solib.h.
9049
cfef91e4
JT
90502002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9051
9052 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9053 assumptions about the host's byte order.
9054
9964235a
JT
90552002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9056
9057 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9058 to dependency list.
9059 * alphanbsd-tdep.c: Include solib-svr4.h.
9060 * shnbsd-tdep.c: Ditto.
9061
9eeef8ef
JT
90622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9063
9064 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9065 nbsd-tdep.h to dependency list.
9066 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9067 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9068 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9069 nbsdaout.mh and nbsdelf.mh consistently.
9070 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9071 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9072 nbsdaout.mt and nbsdelf.mh consistently.
9073 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9074 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9075 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9076 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9077 a.out shared library stuff from here...
9078 * config/nm-nbsdaout.h: ...to here.
9079 * config/tm-nbsd.h: Remove.
9080 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9081 * config/arm/nbsd.mh: Remove.
9082 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9083 nbsd-tdep.o.
9084 * config/arm/nbsdaout.mh: New file.
9085 * config/arm/nbsdelf.mh: New file.
9086 * config/arm/nm-nbsdaout.h: New file.
9087 * config/i386/nbsd.mh: Remove.
9088 * config/i386/nbsd.mt: Remove.
9089 * config/i386/nbsdaout.mh: New file.
9090 * config/i386/nbsdaout.mt: New file.
9091 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9092 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9093 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9094 i386_register_u_addr): Remove.
9095 * config/i386/nm-nbsdaout.h: New file.
9096 * config/i386/nm-nbsdelf.h: Remove.
9097 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9098 (USE_STRUCT_CONVENTION): Remove.
9099 * config/i386/tm-nbsdaout.h: New file.
9100 * config/i386/tm-nbsdelf.h: Remove.
9101 * config/m68k/nbsd.mh: Remove.
9102 * config/m68k/nbsd.mt: Remove.
9103 * config/m68k/nbsdaout.mh: New file.
9104 * config/m68k/nbsdaout.mt: New file.
9105 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9106 * config/m68k/nm-nbsdaout.h: New file.
9107 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9108 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9109 * config/ns32k/nbsd.mh: Remove.
9110 * config/ns32k/nbsd.mt: Remove.
9111 * config/ns32k/nbsdaout.mh: New file.
9112 * config/ns32k/nbsdaout.mt: New file.
9113 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9114 * config/ns32k/nm-nbsdaout.h: New file.
9115 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9116 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9117 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9118 (SVR4_SHARED_LIBS): Remove.
9119 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9120 * config/sparc/nbsd.mh: Remove.
9121 * config/sparc/nbsd.mt: Remove.
9122 * config/sparc/nbsdaout.mh: New file.
9123 * config/sparc/nbsdaout.mt: New file.
9124 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9125 * config/sparc/nbsdelf.mt: New file.
9126 * config/sparc/nm-nbsdaout.h: New file.
9127 * config/sparc/nm-nbsdelf.h: Remove.
9128 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9129 * config/sparc/tm-nbsdaout.h: New file.
9130
257ce470
JT
91312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9132
9133 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9134 mipsnbsd-tdep.c
9135 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9136
76a6d5fe
JT
91372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9138
9139 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9140 shnbsd-nat.c.
9141 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9142
45888261
JT
91432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9144
9145 * NEWS: Note new MIPS NetBSD native configuration.
9146 * configure.host (mips*-*-netbsd*): New host.
9147 * configure.tgt (mips*-*-netbsd*): New target.
9148 * mipsnbsd-nat.c: New file.
9149 * mipsnbsd-tdep.c: New file.
9150 * mipsnbsd-tdep.h: New file.
9151 * config/mips/nbsd.mh: New file.
9152 * config/mips/nbsd.mt: New file.
9153 * config/mips/nm-nbsd.h: New file.
9154 * config/mips/tm-nbsd.h: New file.
9155
70f80edf
JT
91562002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * Makefile.in (SFILES): Add osabi.c.
9159 (COMMON_OBS): Add osabi.o.
9160 (osabi.o): New dependency list.
9161 * osabi.c: New file.
9162 * osabi.h: New file.
9163 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9164
9165 * Makefile.in (alpha_tdep_h): Define and use instead of
9166 alpha-tdep.h.
9167 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9168 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9169 Remove.
9170 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9171 * alpha-tdep.h: Include osabi.h.
9172 (alpha_abi): Remove.
9173 (gdbarch_tdep): Use generic OS ABI framework.
9174 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9175 gdbarch_register_osabi.
9176 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9177 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9178 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9179
9180 * Makefile.in (sh_tdep_h): Add osabi.h.
9181 * sh-tdep.h (sh_osabi): Remove.
9182 (gdbarch_tdep): Use generic OS ABI framework.
9183 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9184 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9185 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9186 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9187
9188 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9189 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9190 gdbarch_register_osabi.
9191 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9192 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9193 (get_elfosabi): Rename to...
9194 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9195 ABI framework support routines.
9196 (arm_gdbarch_init): Use generic OS ABI framework.
9197 (arm_dump_tdep): Likewise.
9198 (_initialize_arm_tdep): Likewise.
9199 * arm-tdep.h: Include osabi.h.
9200 (arm_abi): Remove.
9201 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9202 osabi member.
9203 (arm_gdbarch_register_os_abi): Remove prototype.
9204 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9205 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9206
9207 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9208 * mips-tdep.c: Include osabi.h.
9209 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9210 OS ABI framework.
9211
d194345b
KH
92122002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9213
9214 * h8300-tdep.c: Fix formatting.
9215
70c6b0d1
EZ
92162002-05-20 Elena Zannoni <ezannoni@redhat.com>
9217
9218 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9219 printing vector registers.
9220
165b8e33
AC
92212002-05-19 Andrew Cagney <ac131313@redhat.com>
9222
9223 From Fernando Nasser:
9224 * remote.c (remote_async_open_1): Re-throw the exception when the
9225 connection fails.
9226 (remote_cisco_open): Ditto.
9227 (remote_open_1): Ditto.
9228
36918e70
AC
92292002-05-19 Andrew Cagney <ac131313@redhat.com>
9230
9231 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9232 (remote_start_remote): Add uiout parameter. Pass through to
9233 remote_start_remote_dummy.
9234 (remote_open_1): Use catch_exception instead of catch_errors.
9235 (remote_async_open_1): Ditto.
9236 (remote_cisco_open): Ditto.
9237
ae44c0c4
AC
92382002-05-19 Andrew Cagney <ac131313@redhat.com>
9239
9240 * remote.c (remote_start_remote): Replace PTR with void pointer.
9241 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9242 static.
9243
8efe637d
AC
92442002-05-18 Andrew Cagney <ac131313@redhat.com>
9245
9246 * gdb_indent.sh: Allow the script to be run in the sim directory.
9247
2f1b5984
MK
92482002-05-18 Mark Kettenis <kettenis@gnu.org>
9249
f0f625e2
MK
9250 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9251 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9252
2f1b5984
MK
9253 * corelow.c (core_open): Only call set_gdbarch_from_file if
9254 exec_bfd is NULL.
9255
fc974602
AV
92562002-05-17 Andrey Volkov <avolkov@transas.com>
9257
9258 * h8300-tdep.c: Add support of EXR register
9259 * config/h8300/tm-h8300.h: Ditto.
9260
906709f4
AV
92612002-05-17 Andrey Volkov <avolkov@transas.com>
9262
9263 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9264
6e591d68
AV
92652002-05-17 Andrey Volkov <avolkov@transas.com>
9266
9267 * h8300-tdep.c: Change literal regnums to REGNO.
9268
84f0252a
JB
92692002-05-17 Jim Blandy <jimb@redhat.com>
9270
e0e9281e
JB
9271 * NEWS: Note addition of macro support.
9272
84f0252a
JB
9273 Expand preprocessor macros in C expressions.
9274 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9275 (scan_macro_expansion, scanning_macro_expansion,
9276 finished_macro_expansion): New function declarations.
9277 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9278 variable declarations.
9279 * parser-defs.h (expression_context_pc): New declaration.
9280 * parse.c (expression_context_pc): New variable.
9281 (parse_exp_1): Set expression_context_pc, as well as
9282 expression_context_block.
9283 * c-exp.y (yylex): If we're not already reading the result of a
9284 macro expansion, try to macro-expand the next token. When we're
9285 done scanning a macro expansion, switch back to the mainline text.
9286 Commas and `if's in a macro's expansion don't terminate the input.
9287 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9288 (macro_original_text, macro_expanded_text,
9289 expression_macro_lookup_func, expression_macro_lookup_baton): New
9290 variables.
9291 (scan_macro_expansion, scanning_macro_expansion,
9292 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9293 c_preprocess_and_parse): New functions.
9294 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9295 c_preprocess_and_parse, instead of c_parse.
9296 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9297 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9298
1c509ca8
JR
9299Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9300
9301 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9302 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9303 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9304
2250ee0c
CV
93052002-05-17 Corinna Vinschen <vinschen@redhat.com>
9306
9307 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9308
ab3b8126
JT
93092002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * Makefile.in (sh_tdep_h): Define and use.
9312 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9313 register enum): Move to...
9314 * * sh-tdep.h: ...here.
9315 * sh-tdep.c: Include sh-tdep.h.
9316 * sh3-rom.c: Likewise.
9317 * shnbsd-tdep.c: Likewise.
9318
ed9d4749
MS
93192002-05-16 Michael Snyder <msnyder@redhat.com>
9320
9321 * arm-tdep.c: Spelling fix in comment.
9322
2e276125
JB
93232002-05-16 Jim Blandy <jimb@redhat.com>
9324
6821892e
JB
9325 Add commands for manually expanding macros and showing their
9326 definitions.
9327 * macrocmd.c, macroscope.c, macroscope.h: New files.
9328 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9329 (macroscope_h): New variable.
9330 (HFILES_NO_SRCDIR): Add macroscope.h.
9331 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9332 (macroscope.o, macrocmd.o): New rules.
9333
2e276125
JB
9334 Teach the Dwarf 2 reader to read macro information.
9335 * dwarf2read.c: #include "macrotab.h".
9336 (dwarf_macinfo_buffer): New variable.
9337 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9338 dwarf_macinfo_size.
9339 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9340 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9341 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9342 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9343 dwarf2_macro_spaces_in_definition): New complaints.
9344 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9345 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9346 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9347 the partial symbol table.
9348 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9349 from what's recorded in the partial symbol table.
9350 (read_file_scope): If the compilation unit has a
9351 `DW_AT_macro_info' attribute, read its macro information.
9352 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9353
2f53fe6c
DJ
93542002-05-16 Daniel Jacobowitz <drow@mvista.com>
9355
9356 Fix PR gdb/546
9357 * ser-tcp.c: Don't include <netinet/udp.h>.
9358
2be99286
SC
93592002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9360
9361 * MAINTAINERS: Update my email address.
9362
c9af212b 93632002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9364
9365 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9366 include file of the same name.
9367
bf5f1a52
CV
93682002-05-16 Corinna Vinschen <vinschen@redhat.com>
9369
9370 * configure.tgt: Mark v850 as multi-arched.
9371 * config/v850/tm-v850.h: Remove file.
9372 * config/v850/v850.mt: Eliminate TM_FILE.
9373
435e042a
CV
93742002-05-16 Corinna Vinschen <vinschen@redhat.com>
9375
9376 * v850-tdep.c: Full multi-arch.
9377 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9378 Define GDB_MULTI_ARCH to 2.
9379
9819c6c8
PM
93802002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9381
9382 * p-exp.y (current_type): New static variable.
9383 Carries the type of the expression at the position that is parsed.
9384 (push_current_type, pop_current_type): Two new functions. Used
9385 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9386 (search_field): New static variable. Set to one after parsing a point
9387 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9388 (FIELDNAME): New token. After a point only a token belonging to
9389 current_type type definition is allowed.
9390 (all over token rules): reset and change current_type according
9391 to rules.
9392 (exp '[' rule): insert implicit array index field if
9393 exp is a pascal string type.
9394
3a06899a
CV
93952002-05-16 Corinna Vinschen <vinschen@redhat.com>
9396
9397 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9398 frame info. Use frame_info's saved_regs instead of matching member
9399 in extra_frame_info throughout.
9400 (v850_frame_init_saved_regs): New function.
9401 (v850_init_extra_frame_info): Move most functionality into
9402 v850_frame_init_saved_regs().
9403 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9404 (v850_frame_find_saved_regs): Remove declaration.
9405 (FRAME_FIND_SAVED_REGS): Remove definition.
9406 (v850_frame_init_saved_regs): Add declaration.
9407 (FRAME_INIT_SAVED_REGS): Add definition.
9408
6ed14b0e
CV
94092002-05-16 Corinna Vinschen <vinschen@redhat.com>
9410
9411 * v850-tdep.c: Begin multi-arch'ing v850.
9412 (v850_target_architecture_hook): Remove function.
9413 (v850_gdbarch_init): New function. Add code previously in
9414 v850_target_architecture_hook().
9415 (_initialize_v850_tdep): Don't set target_architecture_hook.
9416 Call register_gdbarch_init() instead.
9417
42725910
DJ
94182002-05-16 Daniel Jacobowitz <drow@mvista.com>
9419
9420 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9421 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9422 (fixup_class_method_type): Likewise.
9423
99d9066e
JB
94242002-05-15 Jim Blandy <jimb@redhat.com>
9425
9426 Add macro structures to GDB's symbol tables. Nobody puts anything
9427 in them yet.
9428 * symtab.h (struct symtab): New member: `macro_table'.
9429 * buildsym.h (pending_macros): New global variable.
9430 * buildsym.c: #include "macrotab.h".
9431 (buildsym_init): Initialize `pending_macros'.
9432 (end_symtab): If we found macro information while reading a CU's
9433 debugging info, do build a symtab structure for it. Make the
9434 symtab point to the macro information, and clear the
9435 `pending_macros' pointer which held it while we were reading the
9436 debug info.
9437 (really_free_pendings): Free any pending macro table.
9438 * objfiles.h (struct objfile): New member: `macro_cache'.
9439 * objfiles.c (allocate_objfile): Set allocate and free functions
9440 for the macro cache's objstack.
9441 (free_objfile): Empty the macro cache's obstack.
9442 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9443 set new allocate and free functions for it.
9444 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9445 free functions for the macro cache's objstack. (Why is this
9446 function building its own objfile?)
9447 * symmisc.c (print_objfile_statistics): Print statistics on the
9448 macro bcache.
9449 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9450
c899585b
RE
94512002-05-15 Richard Earnshaw <rearnsha@arm.com>
9452
9453 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9454 (REGISTER_U_ADDR): Delete definition.
9455 (arm_register_u_addr): Delete declaration.
9456
a6cdd8c5
RE
94572002-05-15 Richard Earnshaw <rearnsha@arm.com>
9458
9459 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9460 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9461
c97dcfc7
AC
94622002-05-14 Andrew Cagney <ac131313@redhat.com>
9463
9464 * regcache.c (register_valid): Revise comments refering to "Not
9465 available" and "unavailable".
9466 * frame.c (frame_register_read): Ditto.
9467 * findvar.c (value_of_register): Ditto.
9468
93021b7d
AC
94692002-05-15 Andrew Cagney <cagney@redhat.com>
9470
9471 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9472 (remote-sim.o): Update dependencies.
9473 (d10v-tdep.o): Specify dependencies.
9474 (sim_d10v_h): Define.
9475
a86bc61c
JB
94762002-05-14 Jim Blandy <jimb@redhat.com>
9477
9478 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9479 * macrotab.c (macro_lookup_inclusion, find_definition,
9480 new_macro_table): Same.
9481
9482 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9483 not `! strcmp ()'. This is a dubious improvement.
9484 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9485
9486 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9487 although it's not necessary, to avoid a warning.
9488
2fdde8f8
DJ
94892002-05-14 Daniel Jacobowitz <drow@mvista.com>
9490
9491 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9492 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9493 TYPE_INSTANCE_FLAGS.
9494 (struct main_type): New.
9495 (struct type): Move most members to struct main_type. Change
9496 cv_type and as_type to new type_chain member. Add instance_flags.
9497 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9498 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9499 (finish_cv_type): Remove prototype.
9500 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9501 Set TYPE_CHAIN.
9502 (alloc_type_instance): New function.
9503 (smash_type): New function.
9504 (make_pointer_type, make_reference_type, make_function_type)
9505 (smash_to_member_type, smash_to_method_type): Call smash_type.
9506 (make_qualified_type): New function.
9507 (make_type_with_address_space): Call make_qualified_type.
9508 (make_cv_type): Likewise.
9509 (finish_cv_type): Remove unnecessary function.
9510 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9511 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9512 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9513 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9514 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9515 * hpread.c (hpread_read_struct_type): Likewise.
9516 * stabsread.c (read_struct_type): Likewise.
9517
843fedf4
EZ
95182002-05-14 Elena Zannoni <ezannoni@redhat.com>
9519
9520 * configure.tgt: Add a catch all sh* target, for cases like
9521 sh[2,3,4]-elf and sh-hms.
9522
05a6c72c
KS
95232002-05-14 Keith Seitz <keiths@redhat.com>
9524
9525 * event-loop.c (create_file_handler): Don't do anything but
9526 update data when we are given a fd which we are already
9527 monitoring.
9528
5d085aaf
ML
95292002-05-14 Michal Ludvig <mludvig@suse.cz>
9530
9531 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9532 (update_context): Use __func__ in warnings.
9533
9db8d71f
DJ
95342002-05-14 Daniel Jacobowitz <drow@mvista.com>
9535
9536 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9537 and tcp_close to net_open and net_close.
9538 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9539 using UDP if requested. Don't try to disable Nagle on UDP
9540 sockets.
9541 * remote.c (remote_serial_open): New function. Warn about UDP.
9542 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9543
5dbc6baa
EZ
95442002-05-13 Elena Zannoni <ezannoni@redhat.com>
9545
9546 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9547
cc3023f7
EZ
95482002-05-13 Elena Zannoni <ezannoni@redhat.com>
9549
9550 * configure.tgt: Remove sh-hms target.
9551 * MAINTAINERS: Don't list sh-hms as a separate target.
9552
ec2bcbe7
JB
95532002-05-13 Jim Blandy <jimb@redhat.com>
9554
9555 Add first preprocessor macro-expansion files.
9556 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9557 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9558 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9559 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9560 (COMMON_OBS): Add macrotab.o, macroexp.o.
9561 (macroexp.o, macrotab.o): New rules.
9562
6d531722
AC
95632002-05-13 Andrew Cagney <ac131313@redhat.com>
9564
9565 * config/m88k/tm-m88k.h: Update copyright.
9566 (m88k_target_write_pc): Declare
9567 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9568 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9569 (SHIFT_INST_REGS): Update definition.
9570 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9571 using old definition of TARGET_WRITE_PC.
9572 * regcache.c (generic_target_write_pc): Delete code handling
9573 NNPC_REGNUM.
9574 * gdbarch.sh (NNPC_REGNUM): Delete.
9575 * gdbarch.h, gdbarch.c: Regenerate.
9576
3e3f2739
RE
95772002-05-13 Richard Earnshaw <rearnsha@arm.com>
9578
9579 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9580 builtin reg number.
9581
0004e5a2
DJ
95822002-05-13 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9585 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9586 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9587 access macros.
9588 * c-typeprint.c (cp_type_print_method_args): Likewise.
9589 (c_type_print_args): Likewise.
9590 * d10v-tdep.c (d10v_push_arguments): Likewise.
9591 (d10v_extract_return_value): Likewise.
9592 * expprint.c (print_subexp): Likewise.
9593 * gdbtypes.c (lookup_primitive_typename): Likewise.
9594 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9595 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9596 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9597 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9598 (TYPE_VECTOR): Likewise.
9599 * hpread.c (hpread_read_struct_type)
9600 (fix_static_member_physnames, fixup_class_method_type)
9601 (hpread_type_lookup): Likewise.
9602 * mdebugread.c (parse_symbol, parse_type): Likewise.
9603 * p-lang.c (is_pascal_string_type): Likewise.
9604 * valops.c (hand_function_call): Likewise.
9605 * x86-64-tdep.c (classify_argument): Likewise.
9606
9607 * hpread.c (hpread_read_function_type)
9608 (hpread_read_doc_function_type): Call replace_type.
9609 * dstread.c (create_new_type): Delete.
9610 (decode_dst_structure, process_dst_function): Call alloc_type.
9611 Use type access macros.
9612
dff95cc7
MK
96132002-05-12 Mark Kettenis <kettenis@gnu.org>
9614
9615 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9616 the're not supported by the current architecture.
9617 (i387_fill_fxsave): Likewise.
9618
bbcd32ad
FF
96192002-05-12 Fred Fish <fnf@redhat.com>
9620
9621 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9622 sect_index_xxx members to index the first slot in section_offsets
9623 if all of the section_offsets are zero.
9624
89cf4787
MK
96252002-05-12 Mark Kettenis <kettenis@gnu.org>
9626
9627 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9628 checked in with last change.
9629
1f77ffc5
MK
96302002-05-12 Mark Kettenis <kettenis@gnu.org>
9631
9632 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9633 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9634 config.sub.
9635
89b8b4a9
DJ
96362002-05-12 Daniel Jacobowitz <drow@mvista.com>
9637
9638 * Makefile.in: Update dependencies.
9639
14a5e767
AC
96402002-05-11 Andrew Cagney <ac131313@redhat.com>
9641
9642 * language.c (local_hex_string_custom): Simplify. Do not depend
9643 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9644
9645 * memattr.c (mem_info_command): Replace calls to
9646 longest_local_hex_string and longest_local_hex_string_custom.
9647 * buildsym.c (make_blockvector): Ditto.
9648 * solib.c (info_sharedlibrary_command): Ditto.
9649 * tracepoint.c (tracepoints_info): Ditto.
9650 * symtab.c (print_msymbol_info): Ditto.
9651
9652 * language.c (local_hex_string): Delete.
9653 (local_hex_string_custom): Delete.
9654 (longest_local_hex_string): Rename to local_hex_string.
9655 (longest_local_hex_string_custom): Rename to
9656 local_hex_string_custom.
9657 * language.h (local_hex_string): Change parameter type to LONGEST.
9658 (local_hex_string_custom): Ditto.
9659 (longest_local_hex_string): Delete declaration.
9660 (longest_local_hex_string_custom): Ditto.
9661
9662 * solib.c: Update copyright.
9663 * memattr.c: Update copyright.
9664
13d01224
AC
96652002-05-11 Andrew Cagney <ac131313@redhat.com>
9666
9667 * arch-utils.h (legacy_register_to_value): Declare.
9668 (legacy_value_to_register): Declare.
9669 (legacy_convert_register_p): Declare.
9670 * arch-utils.c (legacy_register_to_value): New function.
9671 (legacy_value_to_register): New function.
9672 (legacy_convert_register_p): New function.
9673
9674 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9675 (VALUE_TO_REGISTER): Define.
9676 (CONVERT_REGISTER_P): Define.
9677 * gdbarch.h, gdbarch.c: Regenerate.
9678
9679 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9680 VALUE_TO_REGISTER.
9681 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9682 CONVERT_REGISTER_P.
9683
4a1970e4
DJ
96842005-05-11 Daniel Jacobowitz <drow@mvista.com>
9685 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9686
9687 * Makefile.in: Update dependencies for valops.c.
9688 * valops.c: Include "gdb_assert.h".
9689 (typecmp): Skip THIS parameter to methods.
9690 (find_method_list): Remove static_memfuncp argument,
9691 update callers. Check for stub methods.
9692 (find_value_oload_method_list): Don't set *static_memfuncp.
9693 (find_overload_match): Don't check for stub methods. Assert
9694 that methods are not stubbed. Handle static methods.
9695 (value_find_oload_method_list): Remove static_memfuncp argument.
9696 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9697 to the argument list for static stub methods.
9698 * value.h (value_find_oload_method_list): Update prototype.
9699
b2e75d78
AC
97002002-05-11 Andrew Cagney <ac131313@redhat.com>
9701
9702 * arch-utils.h (generic_register_size): Declare.
9703 (generic_register_raw_size, generic_register_virtual_size): Delete
9704 declarations.
9705 * arch-utils.c (generic_register_raw_size): Delete.
9706 (generic_register_size): New function.
9707 (generic_register_virtual_size): Delete.
9708
9709 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9710 default generic_register_size.
9711 * gdbarch.h, gdbarch.c: Re-generate.
9712
9713 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9714 register_virtual_size.
9715 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9717
451fbdda
AC
97182002-05-11 Andrew Cagney <ac131313@redhat.com>
9719
9720 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9721 * gdbarch.h, gdbarch.c: Regenerate.
9722 * gnu-v3-abi.c: Update copyright.
9723 (vtable_address_point_offset): Update.
9724 (gnuv3_rtti_type): Update.
9725 (gnuv3_baseclass_offset): Update.
9726 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9727 (init_fetch_link_map_offsets): Update.
9728 * remote.c (get_remote_state): Update.
9729
6d2f5cea
DJ
97302002-05-11 Daniel Jacobowitz <drow@mvista.com>
9731
9732 * TODO: Remove value_headof/value_from_vtable_info comment.
9733 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9734 * values.c (value_headof, value_from_vtable_info): Delete.
9735 * value.h (value_from_vtable_info): Delete prototype.
9736
d2324da4
AC
97372002-05-11 Andrew Cagney <ac131313@redhat.com>
9738
9739 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9740 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9741 $(gdb_regex_h).
9742 (gdb_assert_h): Define.
9743 (gdb_wait_h): Define.
9744 (gdb_regex_h): Define.
9745
5c717440
DJ
97462002-05-11 Daniel Jacobowitz <drow@mvista.com>
9747
9748 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9749 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9750
6c7861b3
JT
97512002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9752
9753 * nbsd-tdep.c: Fix comment.
9754
ea5bc2a6
JT
97552002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9756
9757 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9758 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9759 (nbsd-tdep.o): New dependency list.
9760 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9761 nbsd-tdep.h.
9762 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9763 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9764 * nbsd-tdep.c: New file.
9765 * nbsd-tdep.h: New file.
9766 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9767 nbsd-tdep.h.
9768 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9769 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9770 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9771 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9772
b28da865
JT
97732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9776 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9777 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9778 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9779 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9780 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9781
4b8ff1fa
JT
97822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9783
9784 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9785 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9786 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9787 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9788 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9789 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9790 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9791
dfe6eb1f
JT
97922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9793
9794 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9795 fetch_elfcore_registers to...
9796 * i386nbsd-tdep.c: ...here.
9797 (i386nbsd_use_struct_convention): Rename to...
9798 (i386nbsd_aout_use_struct_convention): ...this.
9799 (i386nbsd_supply_reg): New function.
9800 (i386nbsd_fill_reg): New function.
9801 (fetch_core_registers): Use i386nbsd_supply_reg.
9802 (fetch_elfcore_registers): Likewise.
9803 (_initialize_i386nbsd_tdep): New function.
9804 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9805 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9806 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9807 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9808 (i386nbsd_aout_use_struct_convention): ...this.
9809
20cb8cda
JT
98102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9811
9812 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9813 (store_inferior_registers): Use shnbsd_fill_reg.
9814 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9815 sh_nbsd_supply_register): Collapse into...
9816 (shnbsd_supply_reg): ...this.
9817 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9818 (shnbsd_fill_reg): ...this.
9819 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9820 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9821 (fetch_core_registers): Use shnbsd_supply_reg.
9822 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9823 (sh_nbsd_core_fns): Rename to...
9824 (shnbsd_core_fns): ...this.
9825 (sh_nbsd_elfcore_fns): Rename to...
9826 (shnbsd_elfcore_fns): ...this.
9827 (sh_nbsd_init_abi): Rename to...
9828 (shnbsd_init_abi): ...this.
9829 (_initialize_sh_nbsd_tdep): Rename to...
9830 (_initialize_shnbsd_tdep): ...this.
9831 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9832 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9833 sh_nbsd_fill_register): Remove prototypes.
9834 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9835
e750d25e
JT
98362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9837
9838 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9839 (i387-nat.o): Delete dependency list.
9840 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9841 (x86-64-linux-nat.o): Likewise.
9842 * i387-nat.c: Delete file, moving contents to...
9843 * i387-tdep.c: ...here.
9844 * i387-nat.h: Rename...
9845 * i387-tdep.h: ...to this.
9846 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9847 * i386-linux-nat.c: Likewise.
9848 * i386bsd-nat.c: Likewise.
9849 * i386gnu-nat.c: Likewise.
9850 * i386nbsd-nat.c: Likewise.
9851 * i386v4-nat.c: Likewise.
9852 * x86-64-linux-nat.c: Likewise.
9853 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9854 * config/i386/go32.mh (NATDEPFILES): Likewise.
9855 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9856 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9857 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9858 * config/i386/linux.mh (NATDEPFILES): Likewise.
9859 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9860 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9861 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9862 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9863
1aee598a
JT
98642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9865
9866 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9867 (alphanbsd-nat.o): Remove dependency list.
9868 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9869 * alphanbsd-nat.c: Delete. Contents moved to...
9870 * alphanbsd-tdep.c: ...here.
9871 (_initialize_alphanbsd_tdep): Register core functions.
9872 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9873
12bcb0fe
JT
98742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9875
9876 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9877 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9878 (alphanbsd-nat.o): Likewise.
9879 (alphabsd-tdep.o): New dependency list.
9880 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9881 (fill_gregset): Use alphabsd_fill_reg.
9882 (supply_fpregset): Use alphabsd_supply_fpreg.
9883 (fill_fpregset): Use alphabsd_fill_fpreg.
9884 (fetch_inferior_registers): Use struct reg and struct fpreg
9885 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9886 and alphabsd_supply_fpreg.
9887 (store_inferior_registers): Use struct reg and struct fpreg
9888 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9889 and alphabsd_fill_fpreg.
9890 * alphabsd-tdep.c: New file.
9891 * alphabsd-tdep.h: New file.
9892 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9893 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9894 alphabsd_supply_fpreg.
9895 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9896 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9897
361d1df0
EC
98982002-05-11 Eric Christopher <echristo@redhat.com>
9899
9900 * mips-tdep.c (mips_double_register_type): Fix thinko.
9901 (mips_single_register_type): Ditto.
9902 * MAINTAINERS: Add self.
9903
92dd7cee
MK
99042002-05-11 Mark Kettenis <kettenis@gnu.org>
9905
9906 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9907 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9908 right thing on architectures with different endianness and/or
9909 integer sizes.
9910
e27da16d
JT
99112002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9912
9913 From Christian Limpach <chris@Pin.LU>
9914 * configure.in: Change sed expression which comments out
9915 NATDEPFILES to also comment out continuation lines.
9916 * configure: Regenerate.
9917
ddde02bd
EZ
99182002-05-10 Elena Zannoni <ezannoni@redhat.com>
9919
9920 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9921 big patch.
9922
1c922164
EZ
99232002-05-10 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * sh-tdep.c: Include correct file.
9926
283150cd
EZ
99272002-05-10 Elena Zannoni <ezannoni@redhat.com>
9928
9929 New support for sh64-elf (sh5) target.
9930
9931 * configure.tgt: For sh64-elf target, default to sh-elf.
9932
9933 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9934 (struct gdbarch_tdep): Add new fields for new registers and ABI
9935 info.
361d1df0 9936
283150cd
EZ
9937 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9938 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9939 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9940 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9941 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9942 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9943 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9944 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9945 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9946 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9947 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9948 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9949 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9950 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9951 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9952 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9953 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9954 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9955 sign_extend, sh64_nofp_frame_init_saved_regs,
9956 sh64_init_extra_frame_info, sh64_get_saved_register,
9957 sh64_extract_struct_value_address, sh64_pop_frame,
9958 sh64_push_arguments, sh64_extract_return_value,
9959 sh64_store_return_value, sh64_show_media_regs,
9960 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9961 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9962 sh_sh64_register_virtual_type,
9963 sh_sh64_register_convert_to_virtual,
9964 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9965 sh64_register_read, sh64_pseudo_register_write,
9966 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9967 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9968 sh64_do_pseudo_register, sh_compact_do_registers_info,
9969 sh64_do_registers_info, sh_gdbarch_init): New functions.
9970
3117ed25
EZ
99712002-05-10 Elena Zannoni <ezannoni@redhat.com>
9972
9973 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9974
2654e6d4
DJ
99752002-05-10 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * linespec.c (decode_line_1): Check for a double quote after
9978 a filename correctly.
9979
9ab3e532
JB
99802002-05-10 Jim Blandy <jimb@redhat.com>
9981
9982 Properly track the size of the current objfile's .debug_line section.
9983 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9984 (DWARF_LINE_SIZE): New macro.
9985 (dwarf2_build_psymtabs_hard): Record the line section's size in
9986 the partial symbol table.
9987 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9988 symbol table.
9989
126fa72d
PS
99902002-05-10 Petr Sorfa <petrs@caldera.com>
9991
9992 * ia64-tdep.c: Handle breakpoints on L instruction type
9993 in MLX instruction bundle by moving the breakpoint to
9994 the third slot (X instruction type) as L holds only data.
9995
1f077a3e
KB
99962002-05-10 Kevin Buettner <kevinb@redhat.com>
9997
9998 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9999 (process_one_symbol): Complain about discarding local symbols
10000 due to a misplaced N_LBRAC entry.
10001
8120c9d5 100022002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
10003
10004 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
10005 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10006 decrease the depth we are at, in the case of templates.
361d1df0 10007
67b2c998
DJ
100082002-05-09 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * mips-tdep.c (mips_float_register_type): New function.
10011 (mips_double_register_type): New function.
10012 (mips_print_register): Use them.
10013 (do_fp_register_row): Likewise.
10014
fd326606
DJ
100152002-05-09 Daniel Jacobowitz <drow@mvista.com>
10016
6609d9af 10017 * signals/signals.c (signals): Remove conditional compilation around
fd326606 10018 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 10019 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 10020
bef35864
MS
100212002-05-09 Michael Snyder <msnyder@redhat.com>
10022
10023 * remote-rdp.c (remote_rdp_can_run): Remove.
10024
c55a3f73
TT
100252002-05-09 Tom Tromey <tromey@redhat.com>
10026
10027 * jv-valprint.c (java_val_print): Handle `char' as a special case
10028 of TYPE_CODE_INT.
10029
b8d5e71d
MS
100302002-05-09 Michael Snyder <msnyder@redhat.com>
10031
10032 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10033 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 10034 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 10035 str r(0123),[sp,#nn].
361d1df0 10036 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
10037 order-independent by placing it in a loop.
10038
e2cd42dd
MS
100392002-05-06 Michael Snyder <msnyder@redhat.com>
10040
10041 * stabsread.c (read_type): Add recognition for new attribute:
10042 "@V;" means that an array type is actually a vector.
10043 This is analogous to the vector flag that's been added to dwarf2.
10044
3ce1502b
MK
100452002-05-09 Mark Kettenis <kettenis@gnu.org>
10046
10047 * i386-tdep.h (i386_abi): New enum.
10048 (struct gdbarch_tdep): Replace os_ident member with abi.
10049 (i386_gdbarch_register_os_abi): New prototype.
10050 * i386-tdep.c (i386_abi_names): New array.
10051 (process_note_abi_tag_sections): Removed.
10052 (process_note_sections): New function.
10053 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10054 (struct i386_abi_handler): New struct.
10055 (i386_abi_handler_list): New variable.
10056 (i386_gdbarch_register_os_abi): New function.
10057 (i386_gdbarch_init): Adapt for the changes given above.
10058
084c156a
DJ
100592002-05-08 Daniel Jacobowitz <drow@mvista.com>
10060
10061 * gregset.h: Say "GNU/Linux".
10062
6599f021
EZ
100632002-05-08 Elena Zannoni <ezannoni@redhat.com>
10064
10065 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10066 (build_gdbtypes): Build builtin_type_v2_float.
10067 (_initialize_gdbtypes): Register new builtin type.
10068
40af4b0c
AC
100692002-05-08 Andrew Cagney <ac131313@redhat.com>
10070
10071 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10072 (clear_gdbarch_swap): New function.
10073 (initialize_non_multiarch): Call.
10074 (gdbarch_update_p): Before calling init(), swap out and clear the
10075 existing architecture.
10076 * gdbarch.c: Regenerate.
10077
4fe84f46
JT
100782002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10079
10080 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10081 alphanbsd-tdep.c.
10082
4015edd1
JT
100832002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10084
10085 * sh-nbsd-nat.c: Rename to...
10086 * shnbsd-nat.c: ...this.
10087 * sh-nbsd-tdep.c: Rename to...
10088 * shnbsd-tdep.c: ...this.
10089 * sh-nbsd-tdep.h: Rename to...
10090 * shnbsd-tdep.h: ...this.
10091 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10092 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10093
0e2bd219
RE
100942002-05-08 Richard Earnshaw <rearnsha@arm.com>
10095
10096 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10097 concatenation for command help messages.
10098
13a38d45
JT
100992002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10100
10101 * NEWS: Note new sh*-*-netbsdelf* configuration.
10102 * configure.host: Set gdb_host_cpu to sh for all sh*.
10103 (sh*-*-netbsdelf*): New host.
10104 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10105 (sh*-*-netbsdelf*): New target.
10106 * sh-nbsd-nat.c: New file.
10107 * sh-nbsd-tdep.c: New file.
10108 * sh-nbsd-tdep.h: New file.
10109 * config/sh/nbsd.mh: New file.
10110 * config/sh/nbsd.mt: New file.
10111 * config/sh/nm-nbsd.h: New file.
10112 * config/sh/tm-nbsd.h: New file.
10113
d658f924
JT
101142002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10115
10116 * sh-tdep.c (sh_osabi_names): Declare.
10117 (process_note_abi_tag_sections): New function.
10118 (get_elfosabi): Ditto.
10119 (sh_gdbarch_register_os_abi): Ditto.
10120 (sh_dump_tdep): Ditto.
10121 _initialize_sh_tdep): Use gdbarch_register to register
10122 sh_gdbarch_init and sh_dump_tdep.
10123 * config/sh/tm-sh.h (sh_osabi): Declare.
10124 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10125
848cfffb
AC
101262002-05-07 Andrew Cagney <ac131313@redhat.com>
10127
10128 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10129 (thumb_scan_prologue): Ditto.
10130 (arm_find_callers_reg): Ditto.
10131 (arm_frame_chain): Ditto.
10132 (arm_init_extra_frame_info): Ditto.
10133 (arm_frame_saved_pc): Ditto.
10134 (arm_pop_frame): Ditto.
10135 (arm_push_return_address): New function.
10136 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10137 call_dummy_location, call_dummy_breakpoint_offset_p,
10138 call_dummy_breakpoint_offset, call_dummy_p,
10139 call_dummy_stack_adjust_p, call_dummy_words,
10140 sizeof_call_dummy_words, call_dummy_start_offset,
10141 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10142 call_dummy_address, push_return_address and push_dummy_frame for
10143 generic dummy frames.
10144
e7d717c0
JT
101452002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10146
10147 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10148 size computation for alloca.
10149 (sh_fp_frame_init_saved_regs): Likewise.
10150
7bbcf283
RE
101512002-05-07 Richard Earnshaw <rearnsha@arm.com>
10152
10153 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10154 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 10155 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
10156 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10157 * remote-rdp.c (remote_rdp_fetch_register): Use
10158 ARM_MAX_REGISTER_RAW_SIZE.
10159 (remote_rdp_store_register): Likewise.
10160
4657573b
ML
101612002-05-07 Michal Ludvig <mludvig@suse.cz>
10162
361d1df0 10163 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
10164 added default labels to switch {} statements.
10165 * x86-64-tdep.c: Ditto.
10166 * x86-64-linux-nat.c: Ditto.
10167
010f3b2f
JT
101682002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10169
10170 * solib.h: Protect against multiple inclusion.
10171
debd256d
JB
101722002-05-06 Jim Blandy <jimb@redhat.com>
10173
9ab3e532
JB
10174 Add first preprocessor macro-expansion files.
10175 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10176 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10177 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10178 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10179 (COMMON_OBS): Add macrotab.o, macroexp.o.
10180 (macroexp.o, macrotab.o): New rules.
10181
debd256d
JB
10182 Separate the job of reading the line number info statement program
10183 header (...expialidocious) out into its own function.
10184 * dwarf2read.c (struct line_head, struct filenames, struct
10185 directories): Replace with...
10186 (struct line_header): New structure, containing the full
10187 contents of the statement program header, including the
10188 include directory and file name tables.
10189 (read_file_scope): If we have line number info, instead of just
10190 calling dwarf_decode_lines to do all the work, call
10191 dwarf_decode_line_header first to get a `struct line_header'
10192 containing the data in the statement program header, and then
10193 pass that to dwarf_decode_lines, which will pick up where that
10194 left off. Be sure to clean up the `struct line_header' object.
10195 (dwarf_decode_line_header, free_line_header, add_include_dir,
10196 add_file_name): New functions.
10197 (dwarf_decode_lines): Move all the code to read the statement
10198 program header into dwarf_decode_line_header. Take the line
10199 header it built as the first argument, instead of the offset to
10200 the compilation unit's line number info. Use the new `struct
10201 line_header' type instead of the old structures. No need to do
10202 cleanups here now, since we don't allocate anything.
10203 (dwarf2_statement_list_fits_in_line_number_section,
10204 dwarf2_line_header_too_long): New complaints.
10205
ac3aafc7
EZ
102062002-05-06 Elena Zannoni <ezannoni@redhat.com>
10207
10208 * gdbtypes.c (init_vector_type): New function.
10209 (build_builtin_type_vec128): Simplify the representation of SIMD
10210 registers.
10211 (build_gdbtypes): Initialize new builtin vector types.
10212 (_initialize_gdbtypes): Register new vector types with gdbarch.
10213 (builtin_type_v4_float, builtin_type_v4_int32,
10214 builtin_type_v8_int16, builtin_type_v16_int8,
10215 builtin_type_v2_int32, builtin_type_v4_int16,
10216 builtin_type_v8_int8): New (renamed) SIMD types.
10217
13e49980
MK
102182002-05-06 Mark Kettenis <kettenis@gnu.org>
10219
10220 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10221 (i387_fill_fxsave): Likewise.
10222
997b20b8
AO
102232002-05-05 Alexandre Oliva <aoliva@redhat.com>
10224
10225 * alpha-tdep.c (alpha_extract_return_value): Don't use
10226 non-constant array size in prototype.
10227
535c96ce
AC
102282002-05-04 Andrew Cagney <ac131313@redhat.com>
10229
10230 From Brian Taylor <briant at model dot com>:
10231 * ui-out.c (ui_out_field_core_addr): Use the function
10232 longest_local_hex_string_custom'to format addresses > 32 bits
10233 wide.
10234
10235 * ui-out.c (ui_out_field_core_addr): Update comment.
10236
bedfa57b
AC
102372002-05-04 Andrew Cagney <ac131313@redhat.com>
10238
10239 * stack.c (select_and_print_frame): Make static. Delete the
10240 parameter `level'.
10241 (func_command): Update call.
10242 (select_frame_command): Delete code computing the frame level.
10243 * frame.h (select_and_print_frame): Delete declaration.
10244
f621c63e
AC
102452002-05-04 Andrew Cagney <ac131313@redhat.com>
10246
10247 * sparc-tdep.c (sparc_get_saved_register): Comment why
10248 get_prev_frame call is safe.
10249
0f7d239c
AC
102502002-05-04 Andrew Cagney <ac131313@redhat.com>
10251
10252 * frame.h (select_frame): Delete level parameter.
10253 * stack.c (select_frame): Update. Use frame_relative_level to
10254 obtain the frame's level.
10255 (select_and_print_frame): Update call.
10256 (select_frame_command): Ditto.
10257 (up_silently_base): Ditto.
10258 (down_silently_base): Ditto.
10259 * ocd.c (ocd_start_remote): Ditto.
10260 * remote-rdp.c (remote_rdp_open): Ditto.
10261 * remote-mips.c (mips_initialize): Ditto.
10262 (common_open): Ditto.
10263 * remote-e7000.c (e7000_start_remote): Ditto.
10264 * m3-nat.c (select_thread): Ditto.
10265 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10266 (child_get_current_exception_event): Ditto.
10267 * varobj.c (varobj_create): Ditto.
10268 (varobj_update): Ditto.
10269 (c_value_of_root): Ditto.
10270 * tracepoint.c (finish_tfind_command): Ditto.
10271 * corelow.c (core_open): Ditto.
10272 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10273 * thread.c (info_threads_command): Ditto.
10274 (switch_to_thread): Ditto.
10275 * infrun.c (normal_stop): Ditto.
10276 (restore_selected_frame): Ditto.
10277 (restore_inferior_status): Ditto.
10278 * breakpoint.c (insert_breakpoints): Ditto.
10279 (watchpoint_check): Ditto.
10280 (bpstat_stop_status): Ditto.
10281 (do_enable_breakpoint): Ditto.
10282 * blockframe.c (flush_cached_frames): Ditto.
10283 (reinit_frame_cache): Ditto.
10284
71d6c7b1
AC
102852002-05-04 Andrew Cagney <ac131313@redhat.com>
10286
10287 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10288 maintainer.
10289
cda6c68a
JB
102902002-05-04 Jim Blandy <jimb@redhat.com>
10291
10292 * gdbtypes.c (replace_type): Doc fix.
10293
5c1c87f0
AC
102942002-05-04 Andrew Cagney <ac131313@redhat.com>
10295
10296 * valprint.c (strcat_longest): Delete commented out function.
10297 Update copyright.
10298
cd9bfe15
AC
102992002-05-04 Andrew Cagney <ac131313@redhat.com>
10300
10301 * MAINTAINERS: Mark a29k as deleted.
10302 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10303 Move new configurations to the top.
10304 * configure.tgt: Remove a29k.
10305 * config/a29k/tm-vx29k.h: Delete.
10306 * config/a29k/vx29k.mt: Delete.
10307 * config/a29k/tm-a29k.h: Delete.
10308 * config/a29k/a29k-udi.mt: Delete.
10309 * config/a29k/a29k.mt: Delete.
10310 * a29k-tdep.c: Delete.
10311 * remote-udi.c: Delete.
10312 * remote-mm.c: Delete.
10313 * remote-eb.c: Delete.
10314 * remote-adapt.c: Delete.
10315 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10316 * config/s390/s390x.mt: Ditto.
10317 * config/s390/s390.mt: Ditto.
10318 * config/sparc/sparclynx.mh: Ditto.
10319 * config/sparc/linux.mh: Ditto.
10320 * config/pa/hppaosf.mh: Ditto.
10321 * config/pa/hppabsd.mh: Ditto.
10322 * config/ns32k/nbsd.mt: Ditto.
10323 * config/mips/vr5000.mt: Ditto.
10324 * config/m68k/sun3os4.mh: Ditto.
10325 * config/m68k/nbsd.mt: Ditto.
10326 * config/m68k/m68klynx.mh: Ditto.
10327 * config/m32r/m32r.mt: Ditto.
10328 * config/i386/x86-64linux.mt: Ditto.
10329 * config/i386/nbsdelf.mt: Ditto.
10330 * config/i386/nbsd.mt: Ditto.
10331 * config/i386/i386lynx.mh: Ditto.
10332
bf0c5130
AC
103332002-05-04 Andrew Cagney <ac131313@redhat.com>
10334
10335 * target.c (debug_print_register): New function. Handle oversize
10336 registers.
10337 (debug_to_fetch_registers): Call.
10338 (debug_to_store_registers): Call.
10339
2ae1c2d2
JB
103402002-05-03 Jim Blandy <jimb@redhat.com>
10341
13a393b0
JB
10342 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10343 (read_type): Doc fix.
10344 * gdbtypes.c (replace_type): Doc fix.
10345
2ae1c2d2
JB
10346 * stabsread.c (multiply_defined_struct): New complaint.
10347 (read_struct_type): If the type we were passed isn't empty, or
10348 incomplete, don't read the new struct type into it; complain,
10349 and return the original type unchanged. Take a new `type_code'
10350 argument, which is the type code for the new type.
10351 (read_type): Rather than storing the type's type code here, pass
10352 it as an argument to read_struct_type, and let that take care of
10353 storing it. That way, we don't overwrite the original type code,
10354 so read_struct_type can use it to decide whether we're overwriting
10355 something we shouldn't.
10356 (complain_about_struct_wipeout): New function.
10357
8de9bdc4
AC
103582002-05-03 Andrew Cagney <ac131313@redhat.com>
10359
10360 * gdbarch.sh: Assert that gdbarch is non-NULL.
10361 * gdbarch.c: Regenerate.
10362
f773fdbb
JM
103632002-05-03 Jason Merrill <jason@redhat.com>
10364
10365 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10366 and return NULL.
10367
0e04a514
ML
103682002-05-03 Michal Ludvig <mludvig@suse.cz>
10369
10370 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10371 (x86_64_dwarf2gdb_regno_map_length),
10372 (x86_64_dwarf2_reg_to_regnum): Added.
10373 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10374 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10375 (_initialize_x86_64_tdep): Synced with the change above.
10376 (x86_64_skip_prologue): Reformulated message.
10377
065432a8
PM
103782002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10379
10380 * f-exp.y: Also use new prev_lexptr variable
10381 to improve error reporting. Based on Michael Snyder
10382 2002-04-24 dated patch to c-exp.y.
10383 * jv-exp.y: Likewise.
10384 * m2-exp.y: Likewise.
10385
a3162708
EZ
103862002-05-02 Elena Zannoni <ezannoni@redhat.com>
10387
10388 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10389 we are dealing with vectors.
10390
03620c38
PM
103912002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10392
10393 * config/m68k/tm-nbsd.h: Obvious fix,
10394 correct machine name.
10395
6604db2e
PM
103962002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10397
10398 * p-typeprint.c (pascal_type_print_base): Add support
10399 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10400
0906b739
PM
104012002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10402
10403 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10404 for fondamental pascal 'char' type.
10405
e2625b33
PM
104062002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10407
10408 * p-lang.h (is_pascal_string_type): Declaration changed,
10409 new sixth argument of type char ** added.
361d1df0 10410 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10411 changed. Args length_pos, length_size, string_pos, char_size
10412 can now be NULL. New argument arrayname set to the field
10413 name of the char array. Return value set to char array
10414 field index plus one.
361d1df0 10415 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10416 is_pascal_string_type function.
10417
cf17c188
AC
104182002-05-02 Andrew Cagney <cagney@redhat.com>
10419
10420 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10421 <cagney@redhat.com> change.
10422 * gdbarch.c: Regenerate.
10423
52bca491
AC
104242002-05-02 Andrew Cagney <cagney@redhat.com>
10425
10426 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10427 before probing for a new one. Detect errorenous gdbarch_init
10428 functions.
10429 * gdbarch.c: Regenerate.
10430
d5e72505
AC
104312002-05-01 Andrew Cagney <cagney@redhat.com>
10432
10433 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10434 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10435 * config/v850/tm-v850.h: Ditto. Update copyright.
10436
af566d9f
AC
104372002-04-30 Andrew Cagney <ac131313@redhat.com>
10438
10439 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10440 current_gdbarch.
10441
880d85fa
MS
104422002-04-30 Michael Snyder <msnyder@redhat.com>
10443
94c30b78
MS
10444 * arm-tdep.c: Whitespace clean-ups.
10445 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10446 should have been removed as part of 4/24 change.
10447
6f5987a6
KB
104482002-04-30 Kevin Buettner <kevinb@redhat.com>
10449
10450 * rs6000-tdep.c: Added comment describing how fpscr register
10451 numbers were chosen.
10452
1a113c93
MS
104532002-04-30 Michael Snyder <msnyder@redhat.com>
10454
10455 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10456
9a6f53fe
EZ
104572002-04-29 Elena Zannoni <ezannoni@redhat.com>
10458
10459 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10460 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10461 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10462
11ed25ac
KB
104632002-04-29 Kevin Buettner <kevinb@redhat.com>
10464
10465 From Louis Hamilton <hamilton@redhat.com>:
10466 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10467 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10468 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10469 not bfd-private xcoff data, to determine wordsize.
10470 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10471
ae232405
AC
104722002-04-29 Andrew Cagney <ac131313@redhat.com>
10473
10474 GDB 5.2 released from 5.2 branch.
10475
91fd20f7
ML
104762002-04-29 Michal Ludvig <mludvig@suse.cz>
10477
10478 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10479 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10480 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10481
2dc5091b
EZ
104822002-04-29 Elena Zannoni <ezannoni@redhat.com>
10483
10484 * rs6000-tdep.c (rs6000_extract_return_value,
10485 rs6000_store_return_value): Handle returning vectors.
10486 (rs6000_gdbarch_init): Use
10487 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10488 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10489 New function.
10490 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10491 vectors.
10492 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10493 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10494
2b9848d8
PM
104952002-04-24 Pierre Muller <ics.u-strasbg.fr>
10496
10497 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10498 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10499 with fprintf_unfiltered (gdb_stderr,...).
10500
f8d17dc5
PM
105012002-04-24 Pierre Muller <ics.u-strasbg.fr>
10502
10503 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10504 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10505 Replace fprintf (stderr,...
10506 with fprintf_unfiltered (gdb_stderr,....
10507 * remote-es.c: Likewise.
10508 * remote-os9k.c: Likewise.
10509 * remote-st.c: Likewise.
10510
2f2f1ad1
AS
105112002-04-28 Andreas Schwab <schwab@suse.de>
10512
10513 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10514 linux-proc.o and gcore.o.
10515
b6779aa2
AC
105162002-04-26 Michal Ludvig <mludvig@suse.cz>
10517
10518 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10519 code without frame pointers.
10520
7e57f5f4
AC
105212002-04-26 Andrew Cagney <ac131313@redhat.com>
10522
10523 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10524 ON_STACK is needed.
10525
2ceb85d0
BE
105262002-04-26 Ben Elliston <bje@redhat.com>
10527
10528 * target.c (do_xfer_memory): Correct reference to the new option
10529 "trust-readonly-sections".
10530
f5f8a009
EZ
105312002-04-26 Elena Zannoni <ezannoni@redhat.com>
10532
10533 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10534 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10535 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10536 vectors.
10537 (read_array_type): Record the fact that this array type is really a
10538 vector (i.e. are passed in by value).
10539
5868c862
JT
105402002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10541
10542 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10543 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10544 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10545 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10546 * alpha-linux-tdep.c: Include frame.h.
10547 (alpha_linux_sigcontext_addr): New function.
10548 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10549 alpha_linux_sigcontext_addr.
10550 * alpha-osf1-tdep.c: Include gdbcore.h.
10551 (alpha_osf1_sigcontext_addr): New function.
10552 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10553 alpha_osf1_sigcontext_addr.
10554 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10555 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10556
bfb01f37
AC
105572002-04-26 Andrew Cagney <ac131313@redhat.com>
10558
361d1df0 10559 * stack.c (selected_frame_level):
bfb01f37
AC
10560 (select_frame): Do not set selected_frame_level.
10561 * frame.h (selected_frame_level): Delete declaration.
10562
15813d3f
AC
105632002-04-26 Andrew Cagney <ac131313@redhat.com>
10564
10565 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10566 convert_from_func_ptr-addr when AIX / PowerOpen.
10567
6096c27a
AC
105682002-04-25 Andrew Cagney <ac131313@redhat.com>
10569
10570 * valops.c (hand_function_call): Call
10571 generic_save_call_dummy_addr.
10572 * frame.h (generic_save_call_dummy_addr): Declare.
10573 * blockframe.c (struct dummy_frame): Add fields call_lo and
10574 call_hi.
10575 (generic_find_dummy_frame): Check for PC in range call_lo to
10576 call_hi instead of entry_point_address.
10577 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10578 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10579 (generic_save_call_dummy_addr): New function.
10580
f510d44e
DM
105812002-04-24 David S. Miller <davem@redhat.com>
10582
10583 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10584 sparc_skip_prologue.
10585 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10586 information to find prologue when possible.
10587 (sparc_prologue_frameless_p): Call examine_prologue directly.
10588 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10589 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10590 second argument.
10591 (SKIP_PROLOGUE): Likewise.
10592
15d72a92
JT
105932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10594
10595 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10596 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10597 indicate that the condition it was testing is always true.
10598 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10599 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10600 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10601
accc6d1f
JT
106022002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10603
10604 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10605 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10606 tdep->jb_pc and tdep->jb_elt_size.
10607 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10608 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10609 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10610 * alpha-nat.c (get_longjmp_target): Remove.
10611 (JB_ELEMENT_SIZE): Ditto.
10612 (JB_PC): Ditto.
10613 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10614 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10615 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10616 to alpha_get_longjmp_target.
10617 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10618 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10619 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10620
1bfdc549
AC
106212002-04-25 Andrew Cagney <ac131313@redhat.com>
10622
10623 * README: Update to GDB 5.2.
10624
1bd316f0
AC
106252002-04-25 Andrew Cagney <ac131313@redhat.com>
10626
10627 * gdbarch.sh (LC_ALL): Set to `c'.
10628
2e5ff58c
TR
106292002-04-25 Theodore A. Roth <troth@verinet.com>
10630
10631 * avr-tdep.c: Ran through gdb_indent.sh.
10632
e33ce519
TR
106332002-04-25 Theodore A. Roth <troth@verinet.com>
10634
10635 * MAINTAINERS: Add myself as AVR maintainer.
10636 * NEWS: Note new target avr.
10637
8818c391
TR
106382002-04-25 Theodore A. Roth <troth@verinet.com>
10639
10640 * Makefile.in: Add support for AVR target.
10641 * configure.tgt: Add support for AVR target.
10642 * avr-tdep.c: New file
10643 * config/avr/avr.mt: New file.
10644
79509c2d
TR
106452002-04-25 Theodore A. Roth <troth@verinet.com>
10646
10647 * MAINTAINERS: Add myself to write-after-approval.
10648
dac8068e
PM
106492002-04-24 Pierre Muller <ics.u-strasbg.fr>
10650
10651 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10652 with fprintf_unfiltered (gdb_stderr,....
10653
25bf3106
PM
106542002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10655
10656 Fix PR gdb/508.
10657 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10658
24467a86
PM
106592002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10660
10661 * p-exp.y: Also use new prev_lexptr variable
10662 to improve error reporting. Based on Michael Snyder
10663 2002-04-24 dated patch to c-exp.y.
10664
95b80706
JT
106652002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10666
10667 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10668 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10669 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10670 to 0.
10671 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10672 and struct value.
10673 (FUNCTION_START_OFFSET): Remove.
10674 (BREAKPOINT): Ditto.
10675
e90cc612
JT
106762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10677
10678 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10679 * NEWS: Ditto.
10680
6c72f9f9
JT
106812002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10682
10683 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10684 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10685 alpha_linux_pc_in_sigtramp.
10686 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10687 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10688 alpha_osf1_pc_in_sigtramp.
10689 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10690 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10691 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10692 alphafbsd_pc_in_sigtramp.
10693 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10694 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10695 alphanbsd_pc_in_sigtramp.
10696 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10697 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10698
5e4f3379
JT
106992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10700
10701 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10702
da8ca43d
JT
107032002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10704
10705 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10706 alphanbsd-tdep.c.
10707 (alphanbsd-nat.o): New dependency list.
10708 (alphanbsd-tdep.o): Ditto.
10709 * NEWS: Note new native NetBSD/alpha configuration.
10710 * alphanbsd-nat.c: New file.
10711 * alphanbsd-tdep.c: Ditto.
10712 * configure.host (alpha*-*-netbsd*): New host.
10713 * configure.tgt (alpha*-*-netbsd*): New target.
10714 * config/alpha/nbsd.mh: New file.
10715 * config/alpha/nbsd.mt: Ditto.
10716 * config/alpha/nm-nbsd.h: Ditto.
10717 * config/alpha/tm-nbsd.h: Ditto.
10718
36a6271d
JT
107192002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10720
10721 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10722 (alpha-osf1-tdep.o): New dependency list.
10723 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10724 and skip_sigtramp_frame members.
10725 * alpha-linux-tdep.c: Include gdbcore.h.
10726 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10727 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10728 * alpha-osf1-tdep.c: New file.
10729 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10730 alpha-osf1-dep.c.
10731 (alpha_frame_past_sigtramp_frame): New function.
10732 (alpha_dynamic_sigtramp_offset): Ditto.
10733 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10734 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10735 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10736 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10737 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10738 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10739 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10740 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10741 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10742 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10743 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10744 to find_solib_trampoline_target.
10745 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10746 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10747 (SKIP_TRAMPOLINE_CODE): Remove.
10748 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10749 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10750 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10751 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10752 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10753 (PROC_SIGTRAMP_MAGIC): Ditto.
10754 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10755 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10756 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10757 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10758 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10759
2f4bc57b
JT
107602002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10761
10762 * NEWS: Note that Alpha targets are now multi-arch.
10763
665132f9
MS
107642002-04-24 Michael Snyder <msnyder@redhat.com>
10765
10766 * parser-defs.h (prev_lexptr): New external variable.
10767 * parse.c (parse_exp_1): Set prev_lexptr to null before
10768 calling the language-specific parser.
10769 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10770 (yyerror): Use prev_lexptr in error reporting.
10771
32872fa7
DJ
107722002-04-24 Daniel Jacobowitz <drow@mvista.com>
10773
10774 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10775 * gregset.h: If FILL_FPXREGSET is defined, provide
10776 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10777 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10778 is defined, call fill_fpxregset.
10779
57e76fac
MS
107802002-04-24 Roland McGrath <roland@frob.com>
10781
10782 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10783 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10784 (supply_gregset, supply_fpregset): New functions.
10785
10786 * gnu-nat.c (gnu_find_memory_regions): New function.
10787 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10788 (gnu_xfer_memory): Add a cast.
10789
f43845b3
MS
107902002-04-24 Michael Snyder <msnyder@redhat.com>
10791
361d1df0 10792 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10793 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10794 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10795 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10796 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10797 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10798
a0abec03
AC
10799Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10800
10801 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10802 NUM_PSEUDO_REGS can be used.
10803
d7bd68ca
AC
108042002-04-24 Andrew Cagney <ac131313@redhat.com>
10805
10806 * arch-utils.h: Update copyright.
10807
10808 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10809 * gdbarch.h, gdbarch.c: Re-generate.
10810
10811 * inferior.h (IN_SIGTRAMP): Delete definition.
10812 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10813 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10814
10815 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10816 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10817 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10818 (find_proc_framesize): Ditto.
10819 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10820 (alpha_init_extra_frame_info): Ditto.
10821 * infrun.c (handle_inferior_event): Ditto.
10822 (handle_inferior_event): Ditto.
10823 (check_sigtramp2): Ditto.
10824 * blockframe.c (create_new_frame): Ditto.
10825 (get_prev_frame): Ditto.
10826 * ppc-linux-tdep.c: Update comments.
10827 * i386-linux-tdep.c: Update comments.
10828 * breakpoint.c (bpstat_what): Update comment.
10829
4867e41e
DM
108302002-04-24 David S. Miller <davem@redhat.com>
10831
21d83aa5
DM
10832 * i960-tdep.c (register_in_window_p): New function.
10833 (i960_find_saved_register): Use it instead of
10834 REGISTER_IN_WINDOW_P.
10835 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10836
4867e41e
DM
10837 * symtab.h (find_stab_function_addr): Kill extern.
10838 * minsyms.c (find_stab_function_addr): Remove from here...
10839 * dbxread.c: ... to here, and mark it static.
10840
69cdf6a2
DM
108412002-04-20 David S. Miller <davem@redhat.com>
10842
10843 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10844 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10845
5a595886
DM
108462002-04-21 David S. Miller <davem@redhat.com>
10847
10848 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10849 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10850 (vx_write_register): Likewise.
10851
1da1a192
JB
108522002-04-23 J. Brobecker <brobecker@gnat.com>
10853
10854 * source.c (is_regular_file): New function.
10855 (openp): Check wether file to open is a regular file
10856 to avoid opening directories.
10857
baa6f10b
JT
108582002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10859
10860 * findvar.c (extract_signed_integer): Cast printf argument
10861 to suppress format warning.
10862 (extract_unsigned_integer): Likewise.
10863 * infcmd.c (registers_info): Likewise.
10864 * top.c (get_prompt_1): Likewise.
10865 * valops.c (value_assign): Likewise.
10866 * valprint.c (print_decimal): Likewise.
10867
b2c4da81
L
108682002-04-22 H.J. Lu (hjl@gnu.org)
10869
10870 * c-exp.y (typebase): Support
361d1df0 10871
b2c4da81
L
10872 [long|long long|short] [signed|unsigned] [int|]
10873
10874 and
10875
10876 signed [long|long long|short] int
10877
f267bd6a
JT
108782002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10879
10880 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10881 and vax-tdep.h.
10882 * vax-tdep.h: New file.
10883 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10884 Make several routines static.
10885 (vax_get_saved_register): New function.
10886 (vax_gdbarch_init): New function.
10887 (_initialize_vax_tdep): Register vax_gdbarch_init.
10888 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10889 Remove macros now under the control of gdbarch.
10890
da3c6d4a
MS
108912002-04-22 Michael Snyder <msnyder@redhat.com>
10892
11d3b27d
MS
10893 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10894 Some whitespace and coding standards tweaks.
da3c6d4a 10895
a33f7558
JT
108962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10897
10898 * vax-tdep.c: Include regcache.h.
10899 (vax_call_dummy_words): New.
10900 (sizeof_vax_call_dummy_words): New.
10901 (vax_fix_call_dummy): New function.
10902 (vax_saved_pc_after_call): Ditto.
10903 * config/vax/tm-vax.h: Don't include regcache.h.
10904 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10905 (CALL_DUMMY): Remove.
10906 (CALL_DUMMY_WORDS): Define.
10907 (SIZEOF_CALL_DUMMY_WORDS): Define.
10908 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10909
47a73475
MS
109102002-04-18 Michael Snyder <msnyder@redhat.com>
10911
10912 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10913
52efde73
JT
109142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10915
10916 * vax-tdep.c (vax_frame_chain): New function.
10917 (vax_push_dummy_frame): Ditto.
10918 (vax_pop_frame): Ditto.
10919 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10920 (FRAMELESS_FUNCTION_INVOCATION): Use
10921 generic_frameless_function_invocation_not.
10922 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10923 (POP_FRAME): Use vax_pop_frame.
10924
ea74468c
JT
109252002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10926
10927 * vax-tdep.c (vax_store_struct_return): New function.
10928 (vax_extract_return_value): Ditto.
10929 (vax_store_return_value): Ditto.
10930 (vax_extract_struct_value_address): Ditto.
10931 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10932 vax_store_struct_return.
10933 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10934 (STORE_RETURN_VALUE): Use vax_store_return_value.
10935 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10936
5516aa92
JT
109372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10938
10939 * vax-tdep.c (vax_frame_saved_pc): New function.
10940 (vax_frame_args_address_correct): Ditto.
10941 (vax_frame_args_address): Ditto.
10942 (vax_frame_locals_address): Ditto.
10943 (vax_frame_num_args): Move code to be in proximity to
10944 other frame-related functions.
10945 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10946 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10947 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10948 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10949 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10950
36af0b35
L
109512002-04-22 H.J. Lu (hjl@gnu.org)
10952
10953 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10954 includedir.
10955
ab62c900
JT
109562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10957
10958 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10959 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10960 (FRAME_INIT_SAVED_REGS): New macro.
10961
7232b100
JT
109622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10963
10964 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10965
b70d2aee
JT
109662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10967
10968 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10969 where needed.
10970 (fetch_osf_core_registers): Likewise.
10971 (supply_gregset): Likewise.
10972
a0e8a2d1 109732002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10974
a0e8a2d1
JB
10975 * symfile.h (get_section_index): Define.
10976 * symfile.c (get_section_index): New function.
10977 * mdebugread.c (SC_IS_SBSS): New macro.
10978 (SC_IS_BSS): Return true for the scBss storage class only, as
10979 the scSBss storage class refers to the .sbss section.
10980 (parse_partial_symbols): Discard the symbols which associated
10981 section does not exist.
10982 Make sure to use the .sbss section index for symbols which
10983 storage class is scBss, rather than using the .bss section index.
10984
51eb8b08
JT
109852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10986
10987 * vax-tdep.c: Update copyright years.
10988 (vax_register_name): New function.
10989 (vax_register_byte): Ditto.
10990 (vax_register_raw_size): Ditto.
10991 (vax_register_virtual_size): Ditto.
10992 (vax_register_virtual_type): Ditto.
10993 * config/vax/tm-vax.h: Update copyright years.
10994 (REGISTER_NAMES): Remove.
10995 (REGISTER_NAME): Define.
10996 (REGISTER_BYTE): Use vax_register_byte.
10997 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10998 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10999 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11000
6cc1c0a8
AC
110012002-04-21 Andrew Cagney <ac131313@redhat.com>
11002
11003 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11004 declaration
11005 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11006
9319a2fe
DM
110072002-04-21 David S. Miller <davem@redhat.com>
11008
11009 * arch-utils.c (generic_prologue_frameless_p): Kill
11010 SKIP_PROLOGUE_FRAMELESS_P code.
11011 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11012 references.
11013 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11014 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11015 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11016 references.
11017 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11018 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11019 (sparc_gdbarch_init): Pass it to
11020 set_gdbarch_prologue_frameless_p.
a0e8a2d1 11021
e9ed6d01
JT
110222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11023
11024 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11025 (alphabsd-nat.o): New dependency list.
11026
36012033
JT
110272002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11028
11029 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11030 alphafbsd-tdep.c.
11031 (alpha-linux-tdep.o): New dependency list.
11032 (alphafbsd-tdep.o): Likewise.
11033
3379287a
JT
110342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11035
11036 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11037 to here...
11038 * alpha-tdep.c: ...from here.
11039 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11040
4bcbd6cb
JT
110412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11042
11043 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11044 prototype from here...
11045 * alpha-tdep.h: ...to here.
11046
b31da25e
AC
110472002-04-21 Andrew Cagney <ac131313@redhat.com>
11048
11049 * frame.h (selected_frame_level): Document as deprecated.
11050 (frame_relative_level): Declare.
11051 * stack.c (frame_relative_level): New function.
11052 (selected_frame_level): Document as deprecated.
11053 (select_frame): Do not set the selected_frame_level.
11054
11055 * stack.c (frame_info, record_selected_frame): Update.
11056 (frame_command, current_frame_command): Update.
11057 (up_silently_base, up_command, down_silently_base): Update.
11058 (down_command): Update.
11059 * inflow.c (kill_command): Update.
11060 * tracepoint.c (finish_tfind_command): Update.
11061 * corelow.c (core_open): Update.
11062 * thread.c (info_threads_command): Update.
11063 (do_captured_thread_select): Update.
11064 * infcmd.c (finish_command): Update.
11065 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11066
9c1d6fe5
JT
110672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11068
11069 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11070
ab89facf
AC
110712002-04-21 Andrew Cagney <ac131313@redhat.com>
11072
11073 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11074 type const.
11075
82a4efa1
JT
110762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11077
11078 * alphafbsd-tdep.c: Update copyright years. Include
11079 alpha-tdep.h.
11080 (alphafbsd_use_struct_convention): Make static.
11081 (alphafbsd_init_abi): New function.
11082 (_initialize_alphafbsd_tdep): New function.
11083 * config/alpha/tm-fbsd.h: Update copyright years.
11084 (USE_STRUCT_CONVENTION): Remove.
11085
44dffaac
JT
110862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11087
11088 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11089 an Alpha ABI variant.
11090 (alpha_abi_handler_list): Declare.
11091 (alpha_gdbarch_register_os_abi): New function.
11092 (alpha_gdbarch_init): Give registered ABI variant handlers a
11093 chance to tweak the gdbarch once we have set up defaults.
11094 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11095
65585be4
JT
110962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11097
11098 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11099 to standard_coerce_float_to_double.
11100 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11101
d9b023cc
JT
111022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11103
11104 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11105 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11106 from gdbarch_tdep rather than a constant.
11107 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11108 the default text address for all Alpha Unix ABIs.
11109 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11110 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11111
dc129d82
JT
111122002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11113
11114 * alpha-tdep.h: New file. Includes several Alpha target constants
11115 taken from...
11116 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11117 let gdbarch deal with.
11118 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11119 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11120 to dependency list.
11121 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11122 Alpha target register names.
11123 * alphabsd-nat.c: Likewise.
11124 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11125 Alpha target register names. Make serveral routines static.
11126 (alpha_get_saved_register): New function.
11127 (alpha_abi_names): New.
11128 (process_note_abi_tag_sections): New function.
11129 (get_elfosabi): New function.
11130 (alpha_gdbarch_init): New function.
11131 (alpha_dump_tdep): New function.
11132 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11133
d49d1e0a
AC
111342002-04-21 Andrew Cagney <ac131313@redhat.com>
11135
11136 * frame.c (find_saved_register): Delete #ifdef
11137 HAVE_REGISTER_WINDOWS code.
11138 * config/sparc/tm-sparc.h: Update comments.
11139 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11140
92e8c9ed
AC
111412002-04-21 Andrew Cagney <ac131313@redhat.com>
11142
11143 * i960-tdep.c (i960_find_saved_register): New function.
11144 (i960_get_saved_register): New function.
11145 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11146 (i960_get_saved_register): Declare.
11147 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11148
e1925118
DM
111492002-04-20 David S. Miller <davem@redhat.com>
11150
11151 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11152
29673b29
AC
111532002-04-20 Andrew Cagney <ac131313@redhat.com>
11154
11155 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11156 instead of NUM_PSEUDO_REGS.
11157
6c86dcd5
DM
111582002-04-20 David S. Miller <davem@redhat.com>
11159
11160 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11161 GDB_MULTI_ARCH_PARTIAL
11162 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11163 define, let tm-sp64.h do it.
11164
aa40ec90
JT
111652002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11166
11167 * frame.c (find_saved_register): Avoid a NULL pointer
11168 dereference and actually walk the frame list.
11169
0f79675b
AC
111702002-04-20 Andrew Cagney <ac131313@redhat.com>
11171
11172 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11173 sorted in most most-recent-used order. Document.
11174 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11175
f91305dd 111762002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
11177
11178 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11179 instead of ->prev.
11180 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11181 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11182 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11183 instead of ->prev.
11184
73d322b1
EZ
111852002-04-19 Elena Zannoni <ezannoni@redhat.com>
11186
11187 Fix PR gdb/471.
11188 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11189 (build_builtin_type_vec128): Ditto.
11190 (append_composite_type_field): Fix calculation of type length in
11191 union case.
11192
ccd9a834
EZ
111932002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11194
11195 * config/djgpp/README: Update.
11196
11197 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11198 compiler warnings.
11199
a57f9e49
JT
112002002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11201
11202 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11203 (alpha_setup_arbitrary_frame): ...to this.
11204 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11205 for alpha_setup_arbitrary_frame.
11206
f4f9705a
AC
112072002-04-18 Andrew Cagney <cagney@redhat.com>
11208
11209 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11210 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11211
f4f9705a
AC
11212 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11213 * target.h (memory_breakpoint_from_pc): Update declaration.
11214 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11215
11216 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11217 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11218 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11219 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11220 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11221 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11222 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11223 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11224 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11225 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11226 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11227 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11228
11229 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11230 const pointer.
11231 * monitor.c (monitor_insert_breakpoint): Ditto.
11232 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11233
11234 * config/mcore/tm-mcore.h: Update copyright.
11235 * mem-break.c: Ditto.
11236 * xstormy16-tdep.c: Ditto.
11237
29f319b8
PM
112382002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11239
11240 * p-exp.y: Add precedence rule for '^' token.
11241 This removes the shift/reduce conflicts.
11242 Remove the comment concerning these shift/reduce conflicts.
11243
ebeac11a
EZ
112442002-04-18 Elena Zannoni <ezannoni@redhat.com>
11245
11246 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11247 (registers_powerpc_nofp): New register set for processors
11248 without floating point unit.
11249
27c31547
DM
112502002-04-18 David S. Miller <davem@redhat.com>
11251
11252 * MAINTAINERS: Add myself to write-after-approval.
11253
47a73475
MS
112542002-04-17 Michael Snyder <msnyder@redhat.com>
11255
11256 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11257
953836b2
AC
112582002-04-17 Andrew Cagney <ac131313@redhat.com>
11259
11260 * rs6000-tdep.c (frame_initial_stack_address): Use
11261 frame_register_read to read the alloca_reg.
11262
8b0d4340
AC
112632002-04-17 Andrew Cagney <ac131313@redhat.com>
11264
11265 * frame.c (find_saved_register): Find saved registers in the next
11266 not prev frame.
11267 Fix PR gdb/365.
11268
d8864532
AC
112692002-04-17 Andrew Cagney <ac131313@redhat.com>
11270
11271 * gdbarch.sh (LANG): Set to ``c''.
11272
36cc83a3 112732002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11274
36cc83a3 11275 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11276
2f4150cc 112772002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11278
11279 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11280 Update copyright.
11281
628703c6 11282 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11283 Also fix PR gdb/391.
361d1df0 11284
56157b4a
AC
112852002-04-14 Andrew Cagney <ac131313@redhat.com>
11286
11287 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11288 * aclocal.m4, configure: Re-generate.
11289 Fix PR gdb/391.
361d1df0 11290
6d1e3329
EZ
112912002-04-14 Elena Zannoni <ezannoni@redhat.com>
11292
11293 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11294 instead of tm_print_insn.
11295
cb06fa07
EZ
112962002-04-14 Elena Zannoni <ezannoni@redhat.com>
11297
11298 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11299
f208ba17
AC
113002002-04-14 Andrew Cagney <ac131313@redhat.com>
11301
11302 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11303 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11304 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11305
20f01a46
DH
113062002-04-12 Don Howard <dhoward@redhat.com>
11307
11308 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11309 max_user_call_depth.
11310 (init_cmd_lists): Initialize the new value;
11311 * cli/cli-script.c (execute_user_command): Limit the call depth of
11312 user defined commands. This avoids a core-dump when user commands
11313 are infinitly recursive.
11314
a88376a3
KB
113152002-04-12 Kevin Buettner <kevinb@redhat.com>
11316
11317 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11318 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11319 from tdep struct instead of DEFAULT_LR_SAVE.
11320 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11321 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11322 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11323
f2172603
MS
113242002-04-12 Michael Snyder <msnyder@redhat.com>
11325
694f61fb 11326 * Remote.c: Spelling fix.
20fe79c8
MS
11327 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11328 If no symbol found for "sbrk", try "_sbrk".
11329 (make_output_phdrs): Use bfd_section_name.
11330 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11331 * eval.c: Indentation fix-ups.
169a7369
MS
11332 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11333 in case it gets applied to an address that is already
11334 in the instruction space.
de74f71f
MS
11335 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11336 * symfile.c: Fix indentation, long lines.
f2172603
MS
11337 * source.c: White space fix-up.
11338
cda5a58a
AC
113392002-04-12 Andrew Cagney <cagney@redhat.com>
11340
11341 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11342 * frame.c (frame_register_read): New function. Return non-zero on
11343 success.
11344 (read_relative_register_raw_bytes_for_frame): Delete.
11345 (read_relative_register_raw_bytes): Delete.
11346 * frame.h (frame_register_read): Declare.
11347 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11348 * sh-tdep.c: Ditto.
11349 * infcmd.c (do_registers_info): Ditto.
11350 * hppa-tdep.c: Ditto.
11351 * rs6000-tdep.c: Ditto.
11352 * h8500-tdep.c: Ditto.
11353 * mips-tdep.c: Ditto.
11354 * h8300-tdep.c: Ditto.
11355 * z8k-tdep.c: Ditto.
11356
2ea5f656
KB
113572002-04-12 Kevin Buettner <kevinb@redhat.com>
11358
11359 From Jimi X <jimix@watson.ibm.com>:
11360 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11361 64-bit SysV ABI.
11362
27b15785
KB
113632002-04-12 Kevin Buettner <kevinb@redhat.com>
11364
11365 From Jimi X <jimix@watson.ibm.com>:
11366 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11367 bfd info.
11368
5d57ee30
KB
113692002-04-12 Kevin Buettner <kevinb@redhat.com>
11370
11371 From Jimi X <jimix@watson.ibm.com>:
11372 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11373 register sets for these processor variants.
11374
bc1e36ca
DJ
113752002-04-11 Daniel Jacobowitz <drow@mvista.com>
11376
bc1e36ca
DJ
11377 * regformats/reg-ppc.dat: Support FPSCR.
11378
e3f36dbd
KB
113792002-04-11 Kevin Buettner <kevinb@redhat.com>
11380
11381 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11382 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11383 Add fpscr as an invalid/unfetchable register.
11384 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11385 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11386 (fill_fpregset): Add support for register fpscr.
11387 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11388 (fill_gregset): Account for the fact that register ``mq'' might
11389 not exist.
11390 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11391 (registers_power): Add fpscr to register set at slot 71.
11392 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11393 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11394
943c9c25
MS
113952002-04-11 Michael Snyder <msnyder@redhat.com>
11396
11397 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11398 * configure: Regenerate.
11399 * config.in: Regenerate.
11400 * acconfig.h: Add define for _SYSCALL32.
11401 * core-sol2.c: Remove #define _SYSCALL32.
11402 * solib-legacy.c: Remove #define _SYSCALL32.
11403
d8c0a2e7
AC
114042002-04-10 Andrew Cagney <ac131313@redhat.com>
11405
11406 * stack.c (select_frame): Cleanup internal error message, do not
11407 use %p.
11408
7cc19214
AC
114092002-04-10 Andrew Cagney <ac131313@redhat.com>
11410
11411 * stack.c (select_frame): Check that selected_frame and the
11412 specified level are as expected.
11413 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11414 Update copyright.
11415 * frame.h (struct frame_info): Add field `level'. Update
11416 copyright.
11417 Work-in-progress PR gdb/464.
11418
67a2b77e
AC
114192002-04-10 Andrew Cagney <ac131313@redhat.com>
11420
11421 * maint.c (maint_print_section_info): Rename print_section_info.
11422 (print_bfd_section_info, print_objfile_section_info): Update.
11423 * inferior.h (struct gdbarch): Add opaque declaration.
11424 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11425 * gdbarch.h: Regenerate.
11426
8cfda98c
ML
114272002-04-10 Michal Ludvig <mludvig@suse.cz>
11428
11429 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11430 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11431 (kernel_u_size): Added.
11432 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11433 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11434
ca439ad2 114352002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11436
ca439ad2
JI
11437 * valarith.c (find_size_for_pointer_math): New function, either returns
11438 the size for a pointer's target, returns 1 for void *, or errors for
11439 incomplete types.
11440 (value_add, value_sub): use find_size_for_pointer_math.
11441
2f2893d9
DJ
114422002-04-09 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * linux-low.c (linux_look_up_symbols): New hook.
11445 (linux_target_ops): Add linux_look_up_symbols.
11446 * remote-utils.c (decode_address): New function.
11447 (look_up_one_symbol): New function.
11448 * server.c (handle_query): Call target look_up_symbols hook.
11449 * server.h (look_up_one_symbol): Add prototype.
11450 * target.h (struct target_ops): Add look_up_symbols hook.
11451
96cb11df
AC
114522002-04-09 Andrew Cagney <ac131313@redhat.com>
11453
11454 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11455 override FP_REGNUM with frame->fp. Update copyright.
11456 * parse.c (num_std_regs, std_regs): Delete.
11457 (target_map_name_to_register): Do not search std_regs. Update
11458 function description.
11459 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11460 declarations. Update copyright.
11461 Fix PR gdb/251.
361d1df0 11462
97658e92
DJ
114632002-04-09 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11466 after the last symbol in a block.
11467
6044e3eb
PM
114682002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11469
11470 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11471 is non zero as a found symbol.
11472
0406ec40
AC
114732002-04-08 Andrew Cagney <ac131313@redhat.com>
11474
11475 * findvar.c: Include "builtin-regs.h".
11476 (value_of_register): Call value_of_builtin_reg when applicable.
11477 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11478 (target_map_name_to_register): Call
11479 builtin_reg_map_name_to_regnum.
11480 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11481 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11482 (builtin_regs_h): Define.
11483 (builtin-regs.o): New target.
11484 (findvar.o): Add $(builtin_regs_h).
11485 * builtin-regs.c, builtin-regs.h: New files.
11486 * std-regs.c: New file.
11487 Partial fix for PR gdb/251.
11488
56a6dfb9
KB
114892002-04-08 Kevin Buettner <kevinb@redhat.com>
11490
11491 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11492 it's no longer required.
11493
3a808432
AC
114942002-04-08 Andrew Cagney <ac131313@redhat.com>
11495
11496 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11497
7c40d541
KB
114982002-04-08 Kevin Buettner <kevinb@redhat.com>
11499
11500 From Jimi X <jimix@watson.ibm.com>:
11501 * rs6000-tdep.c (rs6000_software_single_step): Use
11502 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11503 and size. Use target_insert_breakpoint() and
11504 target_remove_breakpoint() to insert and remove breakpoints
11505 instead of explicit memory reads and writes.
11506
cc9836a8
KB
115072002-04-08 Kevin Buettner <kevinb@redhat.com>
11508
11509 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11510 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11511 ELF_OBJECT_FORMAT ifdef.
11512
7495d1dc
KB
115132002-04-08 Kevin Buettner <kevinb@redhat.com>
11514
11515 From Jimi X <jimix@watson.ibm.com>:
11516 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11517
4288e836
KB
115182002-04-08 Kevin Buettner <kevinb@redhat.com>
11519
11520 From Jimi X <jimix@watson.ibm.com>:
11521 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11522 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11523
a4e4e501
MK
115242002-04-07 Mark Kettenis <kettenis@gnu.org>
11525
11526 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11527 s/asprintf/xasprintf/.
11528 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11529
006defba
AC
115302002-04-07 Andrew Cagney <ac131313@redhat.com>
11531
11532 I believe Jeff Law denies responsability for this one:
11533 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11534 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11535 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11536 Work-around for PR gdb/366.
11537
7aa83cac
EZ
115382002-04-07 Elena Zannoni <ezannoni@redhat.com>
11539
11540 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11541 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11542 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11543
cf1fcca1
EZ
115442002-04-07 Elena Zannoni <ezannoni@redhat.com>
11545
11546 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11547 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11548 information.
11549
3f289e6f
AC
115502002-04-07 Andrew Cagney <ac131313@redhat.com>
11551
11552 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11553 maintainer.
11554
129188f6
AC
115552002-04-07 Andrew Cagney <ac131313@redhat.com>
11556
11557 * README (Reporting Bugs in GDB): Document the bug web page as the
11558 prefered way of submitting bugs.
11559 Fix PR gdb/402.
11560
1200cd6e
AC
115612002-04-06 Andrew Cagney <ac131313@redhat.com>
11562
11563 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11564 -1. Update comment.
11565 * gdbarch.h, gdbarch.c: Re-generate.
11566
2853c33c
AS
115672002-04-07 Andreas Schwab <schwab@suse.de>
11568
11569 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11570 buffer to regcache_collect.
11571
c2169756
AC
115722002-04-06 Andrew Cagney <ac131313@redhat.com>
11573
11574 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11575 * gdbarch.c, gdbarch.h: Re-generate.
11576
25f1b008
AC
115772002-04-06 Andrew Cagney <ac131313@redhat.com>
11578
11579 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11580 declaration. Fix -Werror.
11581
59263426
DJ
115822002-04-05 Daniel Jacobowitz <drow@mvista.com>
11583
11584 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11585 * gdbarch.c: Regenerate.
11586
f5db4da3
MS
115872002-04-05 Michael Snyder <msnyder@redhat.com>
11588
80f8a6eb
MS
11589 * breakpoint.c (clear_command): Rewrite middle section to
11590 combine two loops with identical control conditions.
11591 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11592 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11593
ad3dcc5c
L
115942002-04-05 H.J. Lu (hjl@gnu.org)
11595
11596 * solib-svr4.c (bkpt_names): Add "__start".
11597
f32e7a74
AC
115982002-04-04 Andrew Cagney <ac131313@redhat.com>
11599
11600 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11601 as test for 64 bit target.
11602
8227c0ff
AC
116032002-04-05 Andrew Cagney <ac131313@redhat.com>
11604
11605 * h8500-tdep.c (h8500_write_fp): Delete function.
11606 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11607 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11608 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11610 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11611 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11612 (s390_write_fp):
11613 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11614 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11615 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11616 (d10v_write_fp): Delete function.
11617 * inferior.h (write_fp, generic_target_write_fp): Delete
11618 declarations.
11619 * regcache.c (generic_target_write_fp): Delete function.
11620 (write_fp): Delete function.
11621 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11622 * gdbarch.h, gdbarch.c: Regenerate.
11623 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11624 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11625 (sparc64_write_fp): Delete declaration.
11626 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11627 (h8500_write_fp): Delete declaration.
11628
2757dd86
AC
116292002-04-04 Andrew Cagney <ac131313@redhat.com>
11630
11631 * sparc-tdep.c (sparc64_write_fp): Delete.
11632 (sparc_push_dummy_frame): Replace write_fp call with code to store
11633 the FP directly.
11634 (sparc_gdbarch_init): Do not initialize write_fp.
11635
c69255e1
KB
116362002-04-05 Kevin Buettner <kevinb@redhat.com>
11637
11638 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11639 clause.
11640
ae767bfb
JB
116412002-03-29 Jim Blandy <jimb@redhat.com>
11642
11643 * stack.c (get_selected_block): Add new argument `addr_in_block',
11644 used to return the exact code address we used to select the block,
11645 not just the block.
11646 * blockframe.c (get_frame_block, get_current_block): Same.
11647 * frame.h (get_frame_block, get_current_block,
11648 get_selected_block): Update declarations.
11649 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11650 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11651
84d2ac95
MS
116522002-04-05 Michael Snyder <msnyder@redhat.com>
11653
11654 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11655 warning message.
11656
596aa3bf
JB
116572002-04-05 J. Brobecker <brobecker@gnat.com>
11658
11659 * utils.c (xfullpath): New function.
11660 * defs.h (xfullpath): Add declaration.
11661 * source.c (openp): Use xfullpath in place of gdb_realpath to
11662 avoid resolving the basename part of filenames when the
11663 associated file is a symbolic link. This fixes a potential
11664 inconsistency between the filenames known to GDB and the
11665 filenames it prints in the annotations.
11666 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11667 to be able to match a filename with either the real filename, or
11668 the name of any symbolic link to this file.
11669 (lookup_partial_symtab): Ditto.
11670
c02f5703
MS
116712002-04-04 Michael Snyder <msnyder@redhat.com>
11672
11673 * breakpoint.c: Add support for hardware breakpoints in overlays.
11674 (overlay_events_enabled): New state variable.
11675 (insert_breakpoints): Use overlay_events_enabled to decide
11676 whether to attempt to set a breakpoint at the overlay load addr.
11677 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11678 (remove_breakpoint): Use overlay_events_enabled to decide
11679 whether breakpoints need to be removed from overlay load addr.
11680 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11681 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11682 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11683 disable_overlay_breakpoints): Update overlay_events_enabled.
11684
5fb290d7
DJ
116852002-04-04 Daniel Jacobowitz <drow@mvista.com>
11686
11687 * dwarf2read.c (struct function_range): New.
11688 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11689 (check_cu_functions): New.
11690 (read_file_scope): Initialize global function lists.
11691 Call dwarf_decode_line after processing children.
11692 (read_func_scope): Add to global function list.
11693 (dwarf_decode_lines): Call check_cu_functions everywhere
11694 record_line is called. Call record_line with a linenumber
11695 of 0 to mark sequence ends.
11696
7b3fabf0
ML
116972002-04-04 Michal Ludvig <mludvig@suse.cz>
11698
361d1df0 11699 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11700 change sync with glibc.
11701
bce58c09
JB
117022002-04-03 Jim Blandy <jimb@redhat.com>
11703
11704 * configure.in: Call AC_C_INLINE.
11705 * configure: Regenerated.
361d1df0 11706
2fccf04a
DJ
117072002-04-01 Daniel Jacobowitz <drow@mvista.com>
11708
11709 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11710 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11711
2d1bfe2e
MK
117122002-03-31 Mark Kettenis <kettenis@gnu.org>
11713
a5941fbf
MK
11714 * NEWS: Mention gcore support on FreeBSD/i386.
11715
a90cd31d
MK
11716 * fbsd-proc.c: New file.
11717 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11718 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11719
2d1bfe2e
MK
11720 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11721 while statement.
11722
9eb6e5a1
JB
117232002-03-29 Jim Blandy <jimb@redhat.com>
11724
11725 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11726 unescaped newlines in string literals, but newer ones don't. So
11727 escape them.
11728
f02df580
MS
117292002-03-26 Michael Snyder <msnyder@redhat.com>
11730 Andrew Cagney <cagney@redhat.com>
11731
361d1df0 11732 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11733 restore file to memory.
11734 * cli/cli-dump.h: New file.
11735 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11736 * NEWS: Mention new commands.
f02df580 11737
109f874e
MS
117382002-03-28 Michael Snyder <msnyder@redhat.com>
11739
11740 * symfile.c (symbol_file_add): Move test for null symbols to later.
11741
520f6ade
AC
117422002-03-27 Andrew Cagney <ac131313@redhat.com>
11743
11744 From veksler at il.ibm.com:
11745 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11746 the xstrduped original path.
11747 Fix PR gdb/417.
11748
d4654627
MS
117492002-03-27 Michael Snyder <msnyder@redhat.com>
11750
11751 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11752 * infcmd.c (_initialize_infcmd): Ditto.
11753 * language.c (_initialize_language): Ditto.
11754 * symfile.c (_initialize_symfile): Ditto.
11755 * top.c (_init_main): Ditto.
11756 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11757
6be8bc0c
EZ
117582002-03-27 Elena Zannoni <ezannoni@redhat.com>
11759
11760 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11761 vector registers handling.
11762 (skip_prologue): Handle new AltiVec instructions. Fill in new
11763 fields of frame data.
11764 (frame_get_saved_regs): Fill in information for AltiVec registers.
11765
12af6855
JB
117662002-03-27 Jim Blandy <jimb@redhat.com>
11767
11768 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11769 a function; leave this macro here to invoke that function.
11770 (symbol_init_mangled_name): Declaration for that function.
11771 * symtab.c (symbol_init_mangled_name): New function.
11772
dc672865
AC
117732002-03-27 Andrew Cagney <ac131313@redhat.com>
11774
11775 * valarith.c: Replace strerror with safe_strerror.
11776 * tracepoint.c: Ditto.
11777 * lin-lwp.c: Ditto.
11778 * go32-nat.c: Ditto.
11779 * inflow.c: Ditto.
11780 * gnu-nat.c: Ditto.
11781
d96429cd
AS
117822002-03-27 Andreas Schwab <schwab@suse.de>
11783
11784 * event-top.c (command_line_handler): Remove useless if.
11785
7e336ba1
AJ
117862002-03-27 Andreas Jaeger <aj@suse.de>
11787
11788 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11789 comment.
11790
de220d0f
ML
117912002-03-27 Michal Ludvig <mludvig@suse.cz>
11792
11793 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11794 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11795 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11796 (x86_64_linux_dr_get_status, supply_gregset),
11797 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11798 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11799 (x86_64_register_info_table): Add.
11800 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11801 (x86_64_register_raw_size, x86_64_register_virtual_type),
11802 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11803 general x86_64_register_info_table.
11804 (i386_gdbarch_init): gdbarch_register_bytes is now set
11805 dynamicaly during initialization.
11806 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11807 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11808
0e98d0a7
DJ
118092002-03-27 Daniel Jacobowitz <drow@mvista.com>
11810
11811 * gdbserver/server.c (main): Call target_signal_to_host_p
11812 and target_signal_to_host on signals received from the remote.
11813 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11814 target_signal_from_host on signals sent to the remote.
11815 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11816 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11817
3130066b
DJ
118182002-03-27 Daniel Jacobowitz <drow@mvista.com>
11819
11820 * signals/signals.c: Include "server.h" in gdbserver build.
11821 (target_signal_from_name): Don't use STREQ.
11822 (_initialize_signals): Likewise. Don't include function in
11823 gdbserver build.
11824
9aedf4f4
DJ
118252002-03-27 Daniel Jacobowitz <drow@mvista.com>
11826
11827 * signals.c: Moved to...
11828 * signals/signals.c: Here.
7e336ba1 11829 * Makefile (signals.o): Update.
9aedf4f4 11830
3fa41cdb
JL
118312002-03-26 Jeff Law (law@redhat.com)
11832
11833 * somread.c (som_symtab_read): Remove some commented out code and
11834 updated related comments. Do not set the minimal symbol table to
11835 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11836 in a dynamic executable.
11837 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11838 where we are unable to find the minimal symbol for the given
11839 PC value.
11840
ee677e8d
MS
118412002-03-25 Jeff Law (law@redhat.com)
11842
11843 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11844
e76e1718
ML
118452002-03-25 Michal Ludvig <mludvig@suse.cz>
11846
11847 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11848
18a642a1
AC
118492002-03-23 Andrew Cagney <ac131313@redhat.com>
11850
11851 * command.h: Update copyright.
11852 (struct cmd_list_element): Replace definition with opaque
11853 declaration.
11854 (enum cmd_types): Document that it will eventually be moved to
11855 cli/cli-decode.h
11856 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11857 (MALLOCED_REPLACEMENT): Delete macro.
11858 * Makefile.in (cli_decode_h): Add $(command_h).
11859 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11860 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11861 * completer.c: Include "cli/cli-decode.h".
11862 * maint.c: Include "cli/cli-decode.h".
11863 * cli/cli-decode.h: Include "command.h".
11864 (enum command_class): Delete.
11865 (enum cmd_types): Comment out.
11866 (enum cmd_auto_boolean): Delete.
11867 (enum var_types): Delete.
11868
b2875cc0
AC
118692002-03-23 Andrew Cagney <ac131313@redhat.com>
11870
11871 * cli/cli-decode.c: Include "gdb_assert.h".
11872 (add_set_or_show_cmd): New static function.
11873 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11874 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11875 all fields, such as func, from the set command.
11876
3b45974e
AC
118772002-03-23 Andrew Cagney <ac131313@redhat.com>
11878
11879 * MAINTAINERS (sh-elf): Change warning flag to -w.
11880
823ca731
AC
118812002-03-23 Andrew Cagney <cagney@redhat.com>
11882
11883 * defs.h (error): Add printf format attribute.
11884 * thread-db.c (thread_from_lwp): Fix error format string.
11885 * stack.c (parse_frame_specification): Ditto.
11886 * cli/cli-decode.c (undef_cmd_error): Ditto.
11887 * scm-lang.c (scm_lookup_name): Ditto.
11888 * tracepoint.c (trace_error): Ditto.
11889 * remote-utils.c (usage): Ditto.
11890 * remote.c (compare_sections_command): Ditto.
11891 Fix PR gdb/328.
11892
0e101458
AC
118932002-03-22 Andrew Cagney <ac131313@redhat.com>
11894
11895 * gdbtypes.c (append_composite_type_field): New function.
11896 (init_composite_type): New function.
11897 * gdbtypes.h (append_composite_type_field): Declare.
11898 (init_composite_type): Ditto.
11899
8e0662df
EZ
119002002-03-22 Elena Zannoni <ezannoni@redhat.com>
11901
11902 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11903 function.
8e0662df
EZ
11904 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11905 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11906 structure returning convention for SYSV ABI case, but not
11907 for GNU/Linux, FreeBSD, or NetBSD.
11908
3121eff0
DJ
119092002-03-22 Daniel Jacobowitz <drow@mvista.com>
11910
11911 * symtab.h (lookup_block_symbol): Add mangled_name argument
11912 to prototype.
11913
11914 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11915 with new mangled_name argument.
11916 * linespec.c (decode_line_1): Likewise.
11917 * valops (value_of_this): Likewise.
11918 * symtab.c (lookup_transparent_type): Likewise.
11919 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11920 (lookup_symbol): If we are given a mangled name, pass it down
11921 to lookup_symbol_aux.
11922 (lookup_block_symbol): If we are given a mangled name to check
11923 against, only return symbols which match it.
11924
349b409f
CF
119252002-03-22 Christopher Faylor <cgf@redhat.com>
11926
11927 * win32-nat.c (child_create_inferior): Check for proper shell to use
11928 here, in case the user changes it on the fly.
11929 (_initialize_inftarg): Remove shell path considerations.
11930
2a873819
EZ
119312002-03-21 Elena Zannoni <ezannoni@redhat.com>
11932
11933 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11934 for gdbarch_max_register_raw_size and max_register_virtual_size.
11935 Adjust copyright year.
11936
a1b9830c
DJ
119372002-03-21 Daniel Jacobowitz <drow@mvista.com>
11938
11939 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11940 in a function to cover the entire beginning of the function
11941 as well if it does not already.
11942
8b5790f2
TR
119432002-03-21 Tom Rix <trix@redhat.com>
11944
11945 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11946 (rs6000_ptrace64): Renamed from ptrace64.
11947
bdbe5747
MH
119482002-03-20 Martin M. Hunt <hunt@redhat.com>
11949
11950 * gdbserver/remote-utils.c (remote_open): Don't call
11951 getprotobyname, we're all using TCP here so just use
11952 IPPROTO_TCP.
7e336ba1 11953 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11954
119552002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11956
bdbe5747
MH
11957 * regcache.c (_initialize_regcache): No need to call
11958 build_regcache() at this time; it gets called whenever
11959 the gdbarch changes.
11960
7781cd62
DB
119612002-03-20 David O'Brien <obrien@FreeBSD.org>
11962
11963 * sparc-nat.c: Include sys/param.h where possible.
11964
f65ca430
DJ
119652002-03-20 Daniel Jacobowitz <drow@mvista.com>
11966
11967 Fix PR gdb/422.
11968 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11969 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11970 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11971 complex types.
11972 * stabsread.c (rs6000_builtin_type): Likewise.
11973 (read_sun_floating_type): Likewise.
11974
0c867556
PS
119752002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11976
11977 * stabsread.c (read_member_functions): Remove skip code for duplicate
11978 constructor/destructor methods. Use standard parsing for these
11979 methods and just do not chain them to the list of methods after
11980 parsing.
11981
12b9c64f
AO
119822002-03-19 Alexandre Oliva <aoliva@redhat.com>
11983
11984 * coffread.c: Remove redundant static declarations. Replace
11985 occurrences of `PTR' with `void *'.
11986 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11987 * top.h (quit_cover): Likewise.
11988 * defs.h (catch_errors): Likewise.
11989
349c5d5f
AC
119902002-03-18 Andrew Cagney <ac131313@redhat.com>
11991
11992 * defs.h (XMALLOC): Define.
11993 * gdb-events.sh (XMALLOC): Delete macro.
11994 * gdb-events.c, gdb-events.h: Regenerate.
11995 * gdbarch.sh (XMALLOC): Delete macro.
11996 * gdbarch.c: Regenerate.
11997 * serial.c (XMALLOC): Delete macro.
11998 * ui-file.c (XMALLOC): Ditto.
11999 * ser-unix.h (XMALLOC): Ditto.
12000 * sh-tdep.c (XMALLOC): Ditto.
12001 * ui-out.c (XMALLOC): Ditto.
12002 * utils.c (XMALLOC): Ditto.
12003 * i386-tdep.c (XMALLOC): Ditto.
12004 * gdb-events.c (XMALLOC): Ditto.
12005 * d10v-tdep.c (XMALLOC): Ditto.
12006 * cli-out.c (XMALLOC): Ditto.
12007
12008 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12009 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12010 * ui-file.c, ui-out.c: Ditto.
12011
7d0766f3
AC
120122002-03-18 Andrew Cagney <ac131313@redhat.com>
12013
12014 * command.h (struct cmd_list_element): Add field context.
12015 (set_cmd_context, get_cmd_context): Declare.
12016 * cli/cli-decode.h: Ditto.
12017 * cli/cli-decode.c (get_cmd_context): New function.
12018 (set_cmd_context): New function.
12019 (add_cmd): Initialize context.
12020 Part of fixing PR gdb/145 and PR gdb/146.
12021
5913bcb0
AC
120222002-03-17 Andrew Cagney <ac131313@redhat.com>
12023
1868c04e
AC
12024 * cli/cli-decode.c (cmd_type): New function.
12025 * command.h (cmd_type): Declare.
12026 * infrun.c (set_schedlock_func): Call function cmd_type.
12027 * kod.c (kod_set_os): Call cmd_type.
12028 * cris-tdep.c (cris_version_update): Use function cmd_type.
12029 (cris_mode_update, cris_abi_update): Ditto.
12030
5913bcb0
AC
12031 * command.h: (execute_cmd_post_hook): Declare.
12032 (execute_cmd_pre_hook): Declare.
12033 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12034 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12035 functions. Execute pre/post hook while ensuring that afterwords
12036 hook_in is cleared.
12037 * top.c (execute_command): Use execute_cmd_post_hook, and
12038 execute_cmd_pre_hook to execute pre/post commands.
12039 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12040 hook_stop_stub.
12041 (hook_stop_stub): Call execute_cmd_pre_hook.
12042
b51450c9
AC
120432002-03-17 Andrew Cagney <ac131313@redhat.com>
12044
12045 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12046 set'' and this leads to a core dump. Move xstrdup of
12047 operating_system to after check that it is not NULL.
12048
f66c9f11
AC
120492002-03-17 Andrew Cagney <ac131313@redhat.com>
12050
8e694ecf
AC
12051 * kod.c (kod_set_os): Remove unnecessary check that
12052 ``command->type'' is set_cmd.
12053
f66c9f11
AC
12054 * valprint.c (set_input_radix): Use input_radix.
12055 (set_output_radix): Use output_radix.
12056 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12057 isn't reverted.
12058
9d01611c
AC
120592002-03-16 Andrew Cagney <ac131313@redhat.com>
12060
12061 * value.h (struct value): Delete field ``substring_addr''. Change
12062 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
12063 force_core_addr_align and force_pointer_aligh.
12064
12065 * value.h (struct value): Fix typo in above change.
9d01611c 12066
4156bb53
PS
120672002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12068
12069 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12070 to fix internal_error from ``maintenance print architecture''.
12071
0e5e3ea6
PS
120722002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12073
12074 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12075 for gcc versions after gcc-2.8.1.
12076
9b013045
PS
120772002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12078
12079 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12080 for method resolution. Restore adjustment of ``this'' pointer after
12081 calling value_struct_elt, which was accidentally removed during the
12082 HP merge.
12083
376c9600
AC
120842002-03-15 Andrew Cagney <ac131313@redhat.com>
12085
12086 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12087 value_of_register.
12088 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12089 get_saved_register.
12090 * value.h (value_of_register): Update.
12091
a4db0f07
RH
120922002-03-14 Richard Henderson <rth@redhat.com>
12093
12094 * configure.in: Detect declaration for canonicalize_file_name.
12095 * utils.c (canonicalize_file_name): Declare, if needed.
12096 (gdb_realpath): Prefer realpath if available and usable.
12097 * config.in, configure: Rebuild.
12098
96383835
RH
120992002-03-14 Richard Henderson <rth@redhat.com>
12100
12101 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12102 a constant array bound.
12103
12104 * MAINTAINERS: Add myself to write-after-approval.
12105
75245b24
MS
121062002-03-14 Michael Snyder <msnyder@redhat.com>
12107
12108 * symfile.c (syms_from_objfile): Return immediately if no syms.
12109 (symbol_file_add): Return immediately if no syms.
12110 (find_sym_fns): Return immediately if no syms.
12111
e641a1ca
ML
121122002-03-13 Michal Ludvig <mludvig@suse.cz>
12113
12114 * gdbserver/remote-util.c (remote_open): Print remote-side's
12115 IP address when remote debugging over the network.
7e336ba1 12116
df08bfec
DB
121172002-03-12 David O'Brien <obrien@FreeBSD.org>
12118
12119 * config/sparc/fbsd.mh: Fix copyright.
12120 * config/sparc/fbsd.mt: Likewise.
12121
9a57864f
RE
121222002-03-11 Richard Earnshaw <rearnsha@arm.com>
12123
12124 * MAINTAINERS: Fix typo in name of gdb warnings option.
12125 (x86-64): Fix formating so that this can be parsed by awk.
12126
dd7bf85e
DJ
121272002-03-10 Daniel Jacobowitz <drow@mvista.com>
12128
12129 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12130 * defs.h: Include "gdb/signals.h".
12131 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12132
33a0a2ac
ML
121332002-03-10 Michal Ludvig <mludvig@suse.cz>
12134
12135 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 12136 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
12137 from x86-64-tdep.h
12138
dd824b04
DJ
121392002-03-10 Daniel Jacobowitz <drow@mvista.com>
12140 Don Howard <dhoward@redhat.com>
12141
12142 * mips-tdep.c (ST0_FR): Define.
12143 (mips2_fp_compat): New function, temporarily disabled.
12144 (mips_read_fp_register_single): New function.
12145 (mips_read_fp_register_double): New function.
12146 (mips_print_register): Use them.
12147 (do_fp_register_row): Likewise.
12148
6a41ff59
AC
121492002-03-09 Andrew Cagney <ac131313@redhat.com>
12150
12151 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12152 approval''.
12153
4ea09c10
PS
121542002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12155
12156 * stabsread.c (read_member_functions): Fix is_stub test for
12157 static member functions, improve comment.
12158
6ccc741d
RE
121592002-03-07 Richard Earnshaw <rearnsha@arm.com>
12160
12161 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12162 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12163 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12164 commands that set boolean values.
12165 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12166 (arm_rdi_resume): Always initialize PC.
12167 (arm_rdi_open): Don't use rslt as a boolean.
12168 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12169 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12170 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12171 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12172
438013df
AO
121732002-03-06 Alexandre Oliva <aoliva@redhat.com>
12174
12175 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12176 * configure: Rebuilt.
12177
70ed8774
SC
121782002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12179
12180 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12181 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12182
5ba2abeb
AC
121832002-03-06 Andrew Cagney <ac131313@redhat.com>
12184
12185 * cli/cli-decode.c (set_cmd_completer): New function.
12186 * command.h (set_cmd_completer): Declare.
12187 * cli/cli-decode.h (set_cmd_completer): Ditto.
12188
12189 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12190 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12191 * win32-nat.c (_initialize_inftarg): Ditto.
12192 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12193 * proc-api.c (_initialize_proc_api): Ditto.
12194 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12195 * source.c (_initialize_source): Ditto.
12196 * exec.c (_initialize_exec): Ditto.
12197 * solib.c (_initialize_solib): Ditto.
12198 * top.c (init_main): Ditto.
12199 * tracepoint.c (_initialize_tracepoint): Ditto.
12200 * symfile.c (_initialize_symfile): Ditto.
12201 * printcmd.c (_initialize_printcmd): Ditto.
12202 * infcmd.c (_initialize_infcmd): Ditto.
12203 * corefile.c (_initialize_core): Ditto.
12204
f779ca99
AC
122052002-03-05 Andrew Cagney <ac131313@redhat.com>
12206
12207 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12208
01a3934b
AC
122092002-03-05 Andrew Cagney <ac131313@redhat.com>
12210
12211 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12212
37057839
AC
122132002-03-05 Andrew Cagney <ac131313@redhat.com>
12214
12215 * NEWS: Update headings, 5.2 has branched.
12216
c6ecbae5
DJ
122172002-03-04 Daniel Jacobowitz <drow@mvista.com>
12218
12219 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12220 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12221 (register_addr, REGISTER_RAW_SIZE): Likewise.
12222 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12223 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12224
e9f30c21
ML
122252002-03-03 Michal Ludvig <mludvig@suse.cz>
12226
12227 * MAINTAINERS (x86-64): Add myself.
12228 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12229 changed value_ptr -> struct value *
12230
54394ac3
DB
122312002-03-01 David O'Brien <obrien@FreeBSD.org>
12232
12233 * configure.host (sparc64-*-freebsd): Add.
12234 * configure.tgt: Likewise.
12235 * config/sparc/fbsd.mh: New file.
12236 * config/sparc/fbsd.mt: Likewise.
12237 * config/sparc/nm-fbsd.h: Likewise.
12238 * config/sparc/tm-fbsd.h: Likewise.
12239
bfe95955
DJ
122402002-03-01 Daniel Jacobowitz <drow@mvista.com>
12241
12242 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12243 regformats/reg-s390x.dat.
12244
f33c6cbf
AC
122452002-03-01 Andrew Cagney <ac131313@redhat.com>
12246
12247 * utils.c: Add FIXME explaining true/false problem.
12248
5ecaa7dd
AC
122492002-02-28 Andrew Cagney <ac131313@redhat.com>
12250
12251 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12252
2a251cc2
MC
122532002-02-28 Michael Chastain <mec@shout.net>
12254
12255 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12256
6a8031a3 122572002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12258
12259 * gdbserver/linux-s390-low.c: New file.
12260 * regformats/reg-s390.dat: New file.
12261 * regformats/reg-s390x.dat: New file.
12262 * gdbserver/configure.srv: Add S/390.
12263 * gdbserver/Makefile.in: Add S/390.
12264 * configure.tgt: Enable gdbserver for S/390.
12265
ac469903
EZ
122662002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12267
12268 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12269 first line of the doc string for "info dos", except at the end of
12270 the sentence, since the short help stops at the first period.
12271
985cb1a3
JM
122722002-02-28 Jason Merrill <jason@redhat.com>
12273
12274 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12275
c570663e
FF
122762002-02-27 Fred Fish <fnf@redhat.com>
12277
12278 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12279 comment (dumy -> dummy).
12280
43630227
PS
122812002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12282
12283 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12284
b84911e8
RB
122852002-02-27 Rodney Brown <rbrown64@csc.com.au>
12286
12287 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12288
58caa3dc
DJ
122892002-02-27 Daniel Jacobowitz <drow@mvista.com>
12290
12291 * gdbserver/acconfig.h: New file.
12292 * gdbserver/i387-fp.c: New file.
12293 * gdbserver/i387-fp.h: New file.
12294 * gdbserver/linux-x86-64.c: New file.
12295 * regformats/reg-x86-64.dat: New file.
12296 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12297 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12298 * gdbserver/configure.in: Add support for regsets.
12299 * gdbserver/config.in: Regenerate.
12300 * gdbserver/configure: Regenerate.
12301 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12302 * gdbserver/linux-low.h: New file.
12303 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12304 for regsets.
12305 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12306 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12307 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12308 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12309 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12310 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12311 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12312 "i387-fp.h". Add PTRACE_GETREGS and friends.
12313 * gdbserver/regcache.c (supply_register): New function.
12314 (supply_register_by_name): New function.
12315 (collect_register): New function.
12316 (collect_register_by_name): New function.
12317
93652174
DJ
123182002-02-27 Daniel Jacobowitz <drow@mvista.com>
12319
12320 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12321 (config.status): Add configure.srv dependency.
12322 (server_h): Add config.h dependency.
12323
a02e4a61
DJ
123242002-02-27 Daniel Jacobowitz <drow@mvista.com>
12325
12326 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12327 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12328 * gdbserver/configure.srv: Change i386-*-linux* to use
12329 reg-i386-linux.o.
12330
ce0eebec
AC
123312002-02-26 Andrew Cagney <ac131313@redhat.com>
12332
12333 * x86-64-tdep.c: Re-indent. Update copyright date.
12334
82dbc5f7
AC
123352002-02-26 Andrew Cagney <ac131313@redhat.com>
12336
12337 From Michal Ludvig <mludvig@suse.cz>:
12338 * x86-64-tdep.c (value.h): Delete.
12339 (gdb_assert.h): Include.
12340 (x86_64_register_convert_to_virtual,
12341 x86_64_register_convert_to_raw ): Add check which lets only
12342 floating-point values to be converted.
12343 (value_push): Delete.
12344 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12345 (i386_gdbarch_init): Number of register_bytes fixed.
12346
e4621584
AC
123472002-02-26 Andrew Cagney <ac131313@redhat.com>
12348
12349 * MAINTAINERS: Add x86-64 target.
12350
81a9a963
AC
123512002-02-26 Andrew Cagney <ac131313@redhat.com>
12352
12353 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12354 * osfsolib.c (solib_map_sections): Ditto.
12355 * irix5-nat.c (solib_map_sections): Ditto.
12356 * corelow.c (gdb_check_format): Ditto.
12357 * symfile.c (symfile_bfd_open): Ditto.
12358 * solib.c (solib_map_sections): Ditto.
12359 Fix PR gdb/354.
7e336ba1 12360
0f017ab9
AC
123612002-02-26 Andrew Cagney <ac131313@redhat.com>
12362
12363 * remote.c (_initialize_remote): By default, disable ``e'' and
12364 ``E'' step out-of-range packets.
12365
75738c29
AS
123662002-02-26 Andreas Schwab <schwab@suse.de>
12367
12368 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12369 m68k_linux_frame_saved_pc.
12370 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12371 in_sigtramp.
12372 (SIGCONTEXT_PC_OFFSET): Remove.
12373 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12374 m68k_linux_sigtramp_saved_pc): New functions.
12375 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12376 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12377 (UCONTEXT_PC_OFFSET): Define.
12378 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12379 non-RT and RT signal trampolines.
12380
7e8ed687
RE
123812002-02-26 Richard Earnshaw <rearnsha@arm.com>
12382
12383 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12384 (TARGET_NBPG, STACK_END_ADDR): Delete
12385 (VARIABLES_INSIDE_BLOCK): Delete.
12386
6972bc8b
AC
123872002-02-25 Andrew Cagney <ac131313@redhat.com>
12388
12389 * utils.c (perror_with_name): Make string parameter constant.
12390 (print_sys_errmsg): Ditto.
12391 (query): Ditto.
12392 * defs.h (perror_with_name): Update.
12393 (print_sys_errmsg): Update.
12394 (query): Update.
12395
aa32f823
DJ
123962002-02-25 Daniel Jacobowitz <drow@mvista.com>
12397
12398 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12399 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12400
19caaa45
PS
124012002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12402
12403 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12404 if it already matches the current architecture from the exec file.
12405 Include arch-utils.h for gdbarch_info_init prototype.
12406 * Makefile.in (rs6000-nat.o): Update dependencies.
12407
d951901f
EZ
124082002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12409
12410 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12411 list of exported variables.
12412
7ea81414
DJ
124132002-02-24 Daniel Jacobowitz <drow@mvista.com>
12414
12415 * gdbserver/configure.srv: New file.
12416 * gdbserver/configure.in: Use configure.srv instead
12417 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12418 from it.
12419 * gdbserver/configure: Regenerated.
12420 * gdbserver/terminal.h: New file.
12421 * gdbserver/Makefile.in: Update for configure changes. Remove
12422 more unneeded include paths.
12423
080fe24b
AC
124242002-02-24 Andrew Cagney <ac131313@redhat.com>
12425
12426 From wiz at danbala:
12427 * config/sparc/tm-sp64.h: Fix grammar and typos.
12428 Fix PR gdb/287.
12429
8605d56e
AC
124302002-02-24 Andrew Cagney <ac131313@redhat.com>
12431
12432 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12433 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12434 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12435 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12436 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12437 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12438 * s390-tdep.c: Ditto.
92362027
AC
12439 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12440 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12441 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12442 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12443 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12444 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12445 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12446 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12447 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12448 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12449 Fix PR gdb/378.
7e336ba1 12450
8ed32cc0
AC
124512002-02-23 Andrew Cagney <ac131313@redhat.com>
12452
a3007b6f
AC
12453 * lin-thread.c: Delete file.
12454 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12455 to gdb_proc_service.h.
12456 * configure: Re-generate.
12457
50a9e2f1
AC
12458 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12459 * serial.c (serial_open): Delete check for "ocd".
12460 Fix PR gdb/349.
12461
8b6e7932
AC
12462 * Makefile.in (linux-thread.o): Delete target.
12463 * linux-thread.c: Delete file.
12464
d155c46b
AC
12465 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12466 renamed SH files to be consistent.
12467
8ed32cc0
AC
12468 * symtab.c (sort_search_symbols): Use xfree.
12469
0e18d038
RE
124702002-02-23 Richard Earnshaw <rearnsha@arm.com>
12471
12472 * arm-linux-tdep.c (arm_linux_init_abi): Register
12473 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12474 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12475 definition with undef, since we don't want the sysvr4 definition.
12476 (SKIP_TRAMPOLINE_CODE): Likewise.
12477
27aac7ff
AC
124782002-02-23 Andrew Cagney <ac131313@redhat.com>
12479
12480 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12481
12482 * configure.in: (AC_CHECK_FUNCS) Added test for
12483 canonicalize_file_name Regenerated.
12484 * config.in, configure: Regenerated.
12485 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12486 defined use canonicalize_file_name.
7e336ba1 12487
65a6e0ee
MC
124882002-02-23 Michael Chastain <mec@shout.net>
12489
12490 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12491
47b95330
AC
124922002-02-23 Andrew Cagney <ac131313@redhat.com>
12493
12494 * README: Remove references to cygnus.com.
12495 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12496 dot com'' form. Remove references to cygnus.com and sourceware.
12497
696f451b
AC
124982002-02-23 Andrew Cagney <ac131313@redhat.com>
12499
12500 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12501 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12502 1003.1-2001 no longer allows "head -1".
12503 * gdb/Makefile.in (version.c): Likewise.
12504 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12505 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12506 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12507
bbaca940
AC
125082002-02-23 Andrew Cagney <ac131313@redhat.com>
12509
12510 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12511 * command.h (cmd_cfunc_eq): Declare.
12512 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12513
12514 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12515 ``struct cmd_list_element *''.
12516 * cli/cli-cmds.c (is_complete_command): Update. Use
12517 cmd_cfunc_eq.
12518 * top.c (execute_command): Pass the command to
12519 is_complete_command.
12520 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12521
b8b8b047
AC
125222002-02-23 Andrew Cagney <ac131313@redhat.com>
12523
12524 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12525 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12526 architecture defines.
12527 * s390-tdep.c (s390_gdbarch_init): Likewise.
12528
19d3fc80
RE
125292002-02-23 Richard Earnshaw <rearnsha@arm.com>
12530
12531 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12532 (arm_linux_push_arguments): Likewise.
12533 (arm_linux_init_abi): Register them. Also register linux-specific
12534 call_dummy_words.
12535 (find_minsym_and_objfile): Use strcmp, not STREQ.
12536 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12537 (arm_linux_call_dummy_words): Delete declaration.
12538 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12539 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12540 declarations.
12541 (LOWEST_PC): Delete.
12542
3ab13650
PS
125432002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12544
12545 * maint.c (print_section_info): Do not prepend `0x' to filepos
12546 output, it will be handled by local_hex_string_custom.
12547
19d3fc80 125482002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12549
12550 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12551 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12552 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12553
d85a5daf
JB
125542002-02-22 Jim Blandy <jimb@redhat.com>
12555
12556 Indicate that the bcache functions don't change the strings
12557 they're passed.
12558 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12559 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12560
eeb25b8a
PM
125612002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12562
12563 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12564
6badb179
CF
125652002-02-21 Christopher Faylor <cgf@redhat.com>
12566
12567 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12568 find the complete path to a loaded DLL.
12569
e8717518
FF
125702002-02-21 Fred Fish <fnf@redhat.com>
12571
12572 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12573 that marks the end of the range of a function, enter a line number
12574 entry that has a line number of zero and a PC offset that matches
12575 the end of the function. This starts a range of PC's for which no
12576 line number information is known.
12577 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12578 PC's for which no line number info is found (line number is zero)
12579 then we didn't find any valid line information.
12580 * symtab.h: Document use of zero line number entry.
12581
9abe5450
EZ
125822002-02-21 Elena Zannoni <ezannoni@redhat.com>
12583
12584 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12585 (have_ptrace_getvrregs): Define for run time checks.
12586 (gdb_vrregset_t): New type for Altivec register handling.
12587 (fetch_register, store_register): Fetch/store altivec register
12588 when needed.
12589 (fetch_altivec_register, store_altivec_register): New functions.
12590 (supply_vrregset, fill_vrregset): New functions.
12591 (fetch_altivec_registers, store_altivec_registers): New functions.
12592 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12593 registers as well.
12594
aaa38bb5
AJ
125952002-02-21 Jiri Smid <smid@suse.cz>
12596
12597 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12598
b34db576
RE
125992002-02-21 Richard Earnshaw <rearnsha@arm.com>
12600
12601 * Makefile.in (armnbsd-nat.o): Update dependencies.
12602 * armnbsd-nat.c (supply_gregset): New function. Common code to
12603 supply the integer register set.
12604 (supply_fparegset): New function. Similar for FPA registers.
12605 (fetch_regs, fetch_fp_regs): Use them.
12606 (fetch_core_registers): Likewise.
12607 (fetch_elfcore_registers): New function.
12608 (arm_netbsd_elfcore_fns): New core-file type specification.
12609 (_initialize_arm_netbsd_nat): Register it.
12610
3e56fc4b
RE
126112002-02-21 Richard Earnshaw <rearnsha@arm.com>
12612
12613 * armnbsd-nat.c: Include gdbcore.h.
12614 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12615 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12616 'void' to declaration, to shut up ARI.
12617 (fetch_core_registers): Make static. Rewrite using supply_register.
12618 (arm_netbsd_core_fns): New core-file type specification.
12619 (_initialize_arm_netbsd_nat): New function.
12620
097f6b0b
CF
126212002-02-21 Christopher Faylor <cgf@redhat.com>
12622
12623 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12624 value.
12625
c914e0cc
CF
126262002-02-20 Christopher Faylor <cgf@redhat.com>
12627
12628 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12629 fails.
12630
385fa495
DJ
126312002-02-20 Daniel Jacobowitz <drow@mvista.com>
12632
12633 * jv-exp.y (parse_number): Change type of implicit longs
12634 to builtin_type_uint64.
12635
e5f1222d
DJ
126362002-02-20 Daniel Jacobowitz <drow@mvista.com>
12637
12638 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12639 to be an integer instead of a `union wait'.
12640
75c9abc6
DJ
126412002-02-20 Daniel Jacobowitz <drow@mvista.com>
12642
12643 * mips-linux-nat.c: Call the operating system GNU/Linux.
12644 * mips-linux-tdep.c: Likewise.
12645 * mips-tdep.c: Likewise.
12646
551792a5
DJ
126472002-02-20 Daniel Jacobowitz <drow@mvista.com>
12648
12649 Fix PR gdb/265.
12650 * jv-exp.y (parse_number): Handle 64-bit integers.
12651
ee6e2b82
DJ
126522002-02-20 Daniel Jacobowitz <drow@mvista.com>
12653
12654 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12655 AC_STDC_HEADERS to AC_HEADER_STDC.
12656 * gdbserver/configure: Regenerated.
12657
a48442a0
RE
126582002-02-20 Richard Earnshaw <rearnsha@arm.com>
12659
12660 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12661 is defined.
12662 * sparc-tdep.c (get_longjmp_target): Likewise.
12663
fe419ffc
RE
126642002-02-20 Richard Earnshaw <rearnsha@arm.com>
12665
12666 * News: Add news about ARM and Multi-arch. Mention the new target
12667 arm*-*-netbsd*.
12668
5832ed7e
JB
126692002-02-19 Jim Blandy <jimb@redhat.com>
12670
12671 * stabsread.c (error_type_complaint): Improve error message.
12672
84563040
DJ
126732002-02-19 Daniel Jacobowitz <drow@mvista.com>
12674
12675 * gdbserver/README: Update documentation.
12676 * gdbserver/configure.in: Update configury to match documentation.
12677 * gdbserver/Makefile.in: Likewise.
12678 * gdbserver/configure: Regenerated.
12679 * gdbserver/aclocal.m4: New file, generated by aclocal.
12680 * gdbserver/config.in: New file, generated by autoheader.
12681
375fd65b
RE
126822002-02-19 Richard Earnshaw <rearnsha@arm.com>
12683
12684 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12685 armnbsd-nat.c.
12686
08216dd7
RE
126872002-02-19 Richard Earnshaw <rearnsha@arm.com>
12688
12689 * arm-tdep.h (enum arm_float_model): New enum.
12690 (struct gdbarch_tdep): Add fp_model.
12691 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12692 up floating-point conversions until we know the floating-point model
12693 in use by the inferior. Don't complain about being unable to
12694 determine the ABI of the inferior when we don't have one.
12695 (arm_extract_return_value): Support different floating-point models.
12696 (arm_store_return_value): Likewise.
aaa38bb5 12697 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12698 ARM_FLOAT_SOFT.
12699 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12700
65d6d66a
PS
127012002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12702
12703 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12704 of ``current_gdbarch''.
12705
47221191
RE
127062002-02-19 Richard Earnshaw <rearnsha@arm.com>
12707
12708 * armnbsd-nat.c : ANSIfy all function declarations.
12709 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12710 (fetch_inferior_registers): Re-implement in terms of above.
12711 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12712 (store_inferior_registers): Re-implement in terms of above.
12713
fdf39c9a
RE
127142002-02-19 Richard Earnshaw <rearnsha@arm.com>
12715
aaa38bb5 12716 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12717 kernel.
12718 * arm-linux-tdep.c: Likewise.
12719 * config/arm/tm-linux.h: Likewise.
12720
93247f88
RE
127212002-02-19 Richard Earnshaw <rearnsha@arm.com>
12722
12723 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12724 * config/arm/nbsd.mt (TM_FILE): Delete.
12725 * config/arm/tm-nbsd.h: Delete.
12726
d7b486e7
RE
127272002-02-19 Richard Earnshaw <rearnsha@arm.com>
12728
12729 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12730 Initialize CALL_DUMMY_LENGTH.
12731
41d39a95
RE
127322002-02-19 Richard Earnshaw <rearnsha@arm.com>
12733
12734 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12735 function.
12736 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12737 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12738 defines one thing and that is incorrect for this port.
12739 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12740
e1195560
PM
127412002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12742
12743 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12744
c1748f97
PM
127452002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12746
12747 * win32-nat.c (display_selector): New function. Displays information
12748 about the information returned by GetThreadSelectorEntry API function.
12749 (display_selectors): New function. Displays the infomation of
12750 the selector given as argument, or of CS, DS ans FS selectors
12751 if no argument is given.
12752 ( _initialize_inftarg): Add "w32" as info prefix command.
12753 Add "info w32 selector" as command calling display_selectors.
12754
e41e6bbf
PM
127552002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12756
12757 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12758 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12759 if not defined.
12760
0d3a9f48
RE
127612002-02-18 Richard Earnshaw <rearnsha@arm.com>
12762
12763 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12764
3fb4b924
RE
127652002-02-18 Richard Earnshaw <rearnsha@arm.com>
12766
12767 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12768 (arm_fix_call_dummy): Call it.
12769 (arm_call_dummy_breakpoint_offset): Delete.
12770 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12771 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12772
7f55af32
AC
127732002-02-18 Andrew Cagney <ac131313@redhat.com>
12774
12775 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12776 Default to func_frame_chain_valid.
12777 * gdbarch.h, gdbarch.c: Re-generate.
12778 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12779
05f13b9c
EZ
127802002-02-18 Elena Zannoni <ezannoni@redhat.com>
12781
12782 * ppc-linux-nat.c: Update copyright.
12783 (fetch_register, store_register): Add tid parameter, don't compute
12784 tid here.
12785 (fetch_ppc_registers, store_ppc_registers): Add tid
12786 parameter. Pass it along to callees.
12787 (fetch_inferior_registers, store_inferior_registers): Compute tid
12788 here, and pass it to calleed functions.
12789 (fill_gregset, supply_fpregset): Clean up formatting.
12790
d7afb4c9
RE
127912002-02-18 Richard Earnshaw <rearnsha@arm.com>
12792
12793 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12794 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12795
9df628e0
RE
127962002-02-18 Richard Earnshaw <rearnsha@arm.com>
12797
12798 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12799 * gdbarch.c gdbarch.h: Regenerate.
12800 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12801 function.
12802 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12803 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12804 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12805
12806 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12807 * arm-tdep.c (arm_get_longjmp_target): New function.
12808 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12809 this to a positive value register arm_get_longjmp_target as the
12810 longjmp handler.
12811 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12812 (arm_linux_init_abi): Set up longjmp description in tdep.
12813 * armnbsd-nat.c (get_longjmp_target): Delete.
12814 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12815 description in tdep.
12816 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12817 (get_longjmp_target): Delete declaration.
12818 (GET_LONGJMP_TARGET): Delete.
12819 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12820 (GET_LONGJMP_TARGET): Delete.
12821
57bc8964
KB
128222002-02-17 Kevin Buettner <kevinb@redhat.com>
12823
12824 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12825 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12826 of ``current_gdbarch''.
12827
83d31a92
TT
128282002-02-17 Tom Tromey <tromey@redhat.com>
12829
12830 * cli/cli-cmds.c (compare_strings): New function.
12831 (complete_command): Only print each unique item once.
12832 * completer.h (complete_line): Declare.
12833 * completer.c (complete_line): New function.
12834 (line_completion_function): Use it.
12835
17ef5d92
AC
128362002-02-16 Andrew Cagney <ac131313@redhat.com>
12837
12838 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12839 * gdbarch.h, gdbarch.c: Re-generate.
12840
491b8946
DJ
128412002-02-16 Daniel Jacobowitz <drow@mvista.com>
12842
12843 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12844
128452002-02-16 Daniel Jacobowitz <drow@mvista.com>
12846
12847 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12848 * valops.c (value_arg_coerce): Don't take the address of a reference
12849 to convert an argument to a reference.
12850
dfe7f3ac
CF
128512002-02-15 Christopher Faylor <cgf@redhat.com>
12852
12853 * win32-nat.c (get_image_name): New function.
12854 (handle_load_dll): Use get_image_name function.
12855 (get_child_debug_event): Avoid registering debug events until possibly
12856 execed process is started.
12857 (child_create_inferior): Allow invocation via shell so that command
12858 line redirection, etc. works ok.
12859 (_initialize_inftarg): Add new command: "set shell" to control whether
12860 a shell is used to start a process.
12861
1d33e73a
DJ
128622002-02-15 Daniel Jacobowitz <drow@mvista.com>
12863
12864 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12865 instead of find_register_by_number.
12866 (cannot_store_register): Likewise.
12867
48cd0caa
PM
128682002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12869
aaa38bb5 12870 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12871 fprintf_unfiltered (gdb_stderr, ...).
12872
8656e7d8
DJ
128732002-02-15 Daniel Jacobowitz <drow@mvista.com>
12874
12875 * gdbserver/gdbserver.1: Document --attach.
12876
66e810cd
RE
128772002-02-15 Richard Earnshaw <rearnsha@arm.com>
12878
12879 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12880 descriptions.
12881 * arm-tdep.c (arm_default_arm_le_breakpoint)
12882 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12883 (arm_default_thumb_be_breakpoint): New. Initialize them from
12884 traditional breakpoint defines.
12885 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12886 (arm_gdbarch_init): Initialize new breakpoint variables.
12887 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12888 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12889 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12890 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12891 code out to ...
12892 (arm_netbsd_init_abi_common): ... here; new function.
12893 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12894 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12895 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12896 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12897
97e03143
RE
128982002-02-15 Richard Earnshaw <rearnsha@arm.com>
12899
12900 * arm-tdep.h (enum arm_abi): New enum.
12901 (struct gdbarch_tdep): New structure.
12902 (LOWEST_PC): Provide a default.
12903 (arm_gdbarch_register_os_abi): Declare new function.
12904 * arm-tdep.c (arm_abi_names): New array.
12905 (process_note_abi_tag_sections): New function.
12906 (get_elfosabi): New function.
12907 (arm_gdbarch_register_os_abi): New function.
12908 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12909 support for that ABI has been built in, then call the appropriate
12910 configuration routine. Use gdbarch_num_regs() to get the number
12911 of registers.
12912 (arm_dump_tdep): New function.
12913 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12914 place-holder functions.
12915 (_initialize_arm_tdep): Register them.
12916 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12917
12918 * armnbsd-tdep.c: New file.
12919 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12920 * config/arm/nbsd.mt (TDEPFILES): Add it.
12921 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12922
12923 * armnbsd-nat.c: Include regcache.h.
12924 * Makefile.in (armnbsd-nat.o): Update dependency list.
12925
12926 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12927
ad68be46
DJ
129282002-02-14 Daniel Jacobowitz <drow@mvista.com>
12929
12930 * gdbserver/Makefile.in: Fix typos in target rules.
12931
003d6d1d
DJ
129322002-02-14 Daniel Jacobowitz <drow@mvista.com>
12933
aaa38bb5 12934 Fix part of PR gdb/267.
003d6d1d
DJ
12935 * linespec.c (find_methods): Handle constructors specially for now.
12936
6b230f1b
CV
129372002-02-14 Corinna Vinschen <vinschen@redhat.com>
12938
12939 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12940 handling.
12941 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12942 standard_coerce_float_to_double().
12943
1ea98d12
CF
129442002-02-14 Christopher Faylor <cgf@redhat.com>
12945
12946 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12947 GDBINIT_FILENAME.
12948
dd47e6fd
EZ
129492002-02-14 Elena Zannoni <ezannoni@redhat.com>
12950
12951 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12952 find_variant_by_name, because it confuses the multiarch
12953 framework. Return NULL if there isn't an architecture with the
12954 user supplied name, instead of forcing a different one without
12955 recording the change with the multiarch machinery.
12956 (find_variant_by_name): Delete.
12957
d7e39b9e
PS
129582002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12959
12960 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12961 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12962
76e42a4f
MH
129632002-02-13 Martin M. Hunt <hunt@redhat.com>
12964
aaa38bb5 12965 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12966 print_frame_info_listing_hook, set current_source_symtab.
12967
0a30fbc4
DJ
129682002-02-14 Daniel Jacobowitz <drow@mvista.com>
12969
12970 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12971 and remove unused $(INCLUDE_DIR).
12972 Add regcache.c to OBS.
12973 Add generated register protocol files to clean target.
12974 Update dependencies for new objects, obsolete old target code.
12975
12976 * gdbserver/linux-low.c: Remove all platform-specific code to
12977 new files. Remove various dead code. Update to use regcache
12978 functionality.
12979 * gdbserver/remote-utils.c (fromhex): Add return statement
12980 to quiet warning.
12981 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12982 constant.
12983 (input_interrupt): Add integer parameter to match prototype
12984 of a signal handler.
12985 (outreg): Use register_data ().
12986 (prepare_resume_reply): Use gdbserver_expedite_regs.
12987 * gdbserver/server.c (main): Dynamically allocate own_buf because
12988 PBUFSIZ is no longer constant. Use registers_to_string () and
12989 registers_from_string ().
12990 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12991 for error (), fatal (), and warning (). Update definition of
12992 PBUFSIZ to use regcache functionality. Add include guard.
12993 * gdbserver/utils.c (fatal): Add missing ``const''.
12994 (warning): New function.
12995
12996 * regformats/regdat.sh: Include "regcache.h" in generated files.
12997 Provide init_registers () function.
12998 * regformats/regdef.h: Add prototype for set_register_cache ().
12999 Add include guard.
13000
13001 * gdbserver/linux-arm-low.c: New file.
13002 * gdbserver/linux-i386-low.c: New file.
13003 * gdbserver/linux-ia64-low.c: New file.
13004 * gdbserver/linux-m68k-low.c: New file.
13005 * gdbserver/linux-mips-low.c: New file.
13006 * gdbserver/linux-ppc-low.c: New file.
13007 * gdbserver/linux-sh-low.c: New file.
13008
13009 * gdbserver/regcache.c: New file.
13010 * gdbserver/regcache.h: New file.
13011
13012 * gdbserver/low-linux.c: Removed obsolete file.
13013
4cc841d0
DJ
130142002-02-14 Daniel Jacobowitz <drow@mvista.com>
13015
13016 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13017 * config/i386/linux.mt: Likewise.
13018 * config/ia64/linux.mt: Likewise.
13019 * config/m68k/linux.mh: Likewise.
13020 * config/powerpc/linux.mh: Likewise.
13021 * config/mips/linux.mt: Likewise.
13022
13023 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13024
13025 * config/i386/i386lynx.mh: Mark gdbserver variables
13026 as (currently) obsolete for this target.
13027 * config/i386/nbsd.mt: Likewise.
13028 * config/i386/nbsdelf.mt: Likewise.
13029 * config/m32r/m32r.mt: Likewise.
13030 * config/m68k/m68klynx.mh: Likewise.
13031 * config/m68k/nbsd.mt: Likewise.
13032 * config/m68k/sun3os4.mh: Likewise.
13033 * config/mips/vr5000.mt: Likewise.
13034 * config/ns32k/nbsd.mt: Likewise.
13035 * config/pa/hppabsd.mh: Likewise.
13036 * config/pa/hppaosf.mh: Likewise.
13037 * config/powerpc/nbsd.mt: Likewise.
13038 * config/rs6000/rs6000lynx.mh: Likewise.
13039 * config/s390/s390.mt: Likewise.
13040 * config/s390/s390x.mt: Likewise.
13041 * config/sparc/sparclynx.mh: Likewise.
13042 * config/sparc/sun4os4.mh: Likewise.
13043 * config/i386/x86-64linux.mt: Likewise.
13044 * config/sparc/linux.mh: Likewise.
13045
a85f51e7
DJ
130462002-02-14 Daniel Jacobowitz <drow@mvista.com>
13047
13048 * configure.tgt: Configure gdbserver only for known working
13049 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13050 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13051 SUBDIRS if it is configured. Update comment for ${nativefile}.
13052 * configure: Regenerated.
13053
65554fef
MS
130542002-02-13 Michael Snyder <msnyder@redhat.com>
13055
670a52db
MS
13056 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13057
6dbdc4a3
MS
13058 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13059 (default_gcore_mach): Just return 0, work around a problem in bfd.
13060 (default_gcore_target): OK to return NULL if exec_bfd is null.
13061 (make_mem_sec): Use a cast, avoid a warning.
13062
13063 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 13064 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
13065 sizeof (host pointer) != sizeof (target pointer)).
13066 (procfs_make_note_section): Avoid overflow in psargs string.
13067
aaa38bb5 13068 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
13069 implementation return an error.
13070
130712002-02-13 Rodney Brown <rbrown64@csc.com.au>
13072
13073 * procfs.c (procfs_make_note_section): Provide a default definition
13074 (for alpha-dec-osf4.0f). Fix typos.
13075
1e4d76e7
EZ
130762002-02-13 Elena Zannoni <ezannoni@redhat.com>
13077
13078 * linux-proc.c: Add include of regcache.h.
13079 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13080
b6d1a1d5
AC
130812002-02-13 Andrew Cagney <ac131313@redhat.com>
13082
13083 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
13084 * memattr.c (create_mem_region): Disallow useless empty region.
13085 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 13086 non-overlapping.
b6d1a1d5 13087
6c6ea35e
MC
130882002-02-13 Michael Chastain <mec@shout.net>
13089
13090 * defs.h: Kill CONST_PTR.
13091 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13092 * c-lang.c (c_builtin_types): Likewise.
13093 * ch-lang.c (ch_builtin_types): Likewise.
13094 * f-lang.c (f_builtin_types): Likewise.
13095 * language.c (unknown_builtin_types): Likewise.
13096 * m2-lang.c (m2_builtin_types): Likewise.
13097 * p-lang.c (pascal_builtin_types): Likewise.
13098 * scm-lang.c (c_builtin_types): Likewise.
13099
3e0b0f48
KS
131002002-02-13 Keith Seitz <keiths@redhat.com>
13101
13102 * arm-tdep.h (arm_get_next_pc): Add declaration.
13103
67255d04
RE
131042002-02-13 Richard Earnshaw <rearnsha@arm.com>
13105
13106 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13107 with other related struct-returning functions.
13108 (arm_extract_struct_value_address): New function.
13109 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13110 initialize float_format, double_format and long_double_format as
13111 appropriate to the endianness of the target.
13112 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13113 (arm_use_struct_convention): Delete declaration.
13114 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13115
079777f6
KS
131162002-02-13 Keith Seitz <keiths@redhat.com>
13117
13118 * defs.h (core_addr_to_string_nz): New function.
13119
34588f23
MK
131202002-02-13 Mark Kettenis <kettenis@gnu.org>
13121
13122 Apply missing bits of 2002-01-15 patch.
13123 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13124 (fill_fpregset): Use i387_fill_fsave.
13125
49b563f9
KS
131262002-02-12 Keith Seitz <keiths@redhat.com>
13127
49b563f9
KS
13128 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13129 (core_addr_to_string_nz): New function.
13130
aeb98c60
RE
131312002-02-11 Richard Earnshaw <rearnsha@arm.com>
13132
13133 * arm-linux-nat.c: Really include arm-tdep.h.
13134 * config/arm/tm-linux.h (struct type, struct value): Declare.
13135
65554fef
MS
131362002-02-11 Michael Snyder <msnyder@redhat.com>
13137
13138 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13139 (gcore section): Ifdef for Solaris and Unixware only.
13140 (procfs_do_thread_registers): Unixware needs one lwpstatus
13141 per thread (not one prstatus or pstatus).
13142 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13143 not over all gdb threads. For unixware, call elfcore_write_pstatus
13144 once before iterating over threads.
13145
34e8f22d
RE
131462002-02-11 Richard Earnshaw <rearnsha@arm.com>
13147
13148 * arm-tdep.h: New file.
13149 * arm-tdep.c: Include arm-tdep.h.
13150 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13151 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13152 (arm_print_float_info, arm_register_type, convert_to_extended)
13153 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13154 (arm_extract_return_value, arm_register_name): Make static.
13155 (arm_software_single_step): Similarly. Fix types in declaration.
13156 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13157 (arm_store_return_value, arm_store_struct_return): New functions.
13158 (arm_gdbarch_init): Register the above functions. Also register
13159 call_dummy_start_offset, sizeof_call_dummy_words,
13160 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13161 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 13162 max_register_virtual_size, register_size. Set up
34e8f22d
RE
13163 prologue_cache.saved_regs here, rather than ...
13164 (_initialize_arm_tdep): ... here.
13165 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13166 declarations.
13167 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13168 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13169 (arm_print_float_info, arm_register_type, convert_to_extended)
13170 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13171 (arm_extract_return_value, arm_register_name): Delete declarations.
13172 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13173 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13174 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13175 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13176 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13177 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13178 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13179 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13180 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13181 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13182 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13183 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13184 interface.
13185 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13186 * remote-rdi.c remote-rdp.c: Likewise.
13187 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13188 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13189 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13190 definition.
13191
13192 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13193 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13194 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13195 from non-ARM_ prefixed definitions.
13196 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13197 all uses of above.
13198 * remote-rdi.c remote-rdp.c: Likewise.
13199 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13200
148754e5
RE
132012002-02-11 Richard Earnshaw <rearnsha@arm.com>
13202
13203 * arm-tdep.c (arm_frameless_function_invocation)
13204 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13205 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13206 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13207 (arm_pop_frame, arm_get_next_pc): Make static.
13208 (arm_gdbarch_init): Register above in gdbarch structure.
13209 (arm_read_fp): Renamed from arm_target_read_fp.
13210 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13211 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13212 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13213 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13214 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13215 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13216 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13217 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13218 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13219 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13220 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13221
434d2d4f
DJ
132222002-02-10 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * symtab.c (compare_search_syms): New function.
13225 (sort_search_symbols): New function.
13226 (search_symbols): Sort symbols after searching rather than
13227 before.
13228
55241689
AC
132292002-02-10 Andrew Cagney <ac131313@redhat.com>
13230
13231 * NEWS: Linux -> GNU/Linux.
13232
028c194b
AC
132332002-02-10 Andrew Cagney <ac131313@redhat.com>
13234
13235 * gdbarch.sh: For for level one methods, disallow a definition
13236 when partially multi-arched. Add comments explaining rationale.
13237 * gdbarch.h: Re-generate.
13238
6acf50cd
AC
132392002-02-10 Andrew Cagney <ac131313@redhat.com>
13240
13241 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13242 multi-arch partial.
aaa38bb5 13243
50248794
AC
132442002-02-10 Andrew Cagney <ac131313@redhat.com>
13245
13246 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13247 field. Use diff -u.
13248 * gdbarch.c: Re-generate.
13249
c30e0066
AC
132502002-02-10 Andrew Cagney <ac131313@redhat.com>
13251
9b56c5f3 13252 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13253 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13254 partial.
13255
6e6d6484
AC
132562002-02-10 Andrew Cagney <ac131313@redhat.com>
13257
13258 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13259 multi-arch partial.
13260 (PUSH_ARGUMENTS): Switch to using predefault.
13261 * gdbarch.c: Regenerate.
13262
c203844d
AC
132632002-02-10 Andrew Cagney <ac131313@redhat.com>
13264
13265 * valops.c (PUSH_ARGUMENTS): Delete definition.
13266 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13267 partial. Default to default_push_arguments.
13268 * gdbarch.h, gdbarch.c: Regenerate.
13269
b5a2688f
AC
132702002-02-09 Andrew Cagney <ac131313@redhat.com>
13271
13272 * defs.h (throw_exception): Rename return_to_top_level. Update
13273 comments.
13274 * utils.c (error_stream, internal_verror, quit): Ditto.
13275 * top.c (throw_exception, catcher): Ditto.
13276 * sparclet-rom.c (sparclet_load): Ditto.
13277 * remote.c (interrupt_query, minitelnet): Ditto.
13278 * remote-sds.c (interrupt_query): Ditto.
13279 * remote-mips.c (mips_error, mips_kill): Ditto.
13280 * ocd.c (interrupt_query): Ditto.
13281 * monitor.c (monitor_interrupt_query): Ditto.
13282 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13283 * target.h: Update comment.
aaa38bb5 13284
b5a2688f 13285 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13286
2fa5c1e0
AC
132872002-02-09 Andrew Cagney <ac131313@redhat.com>
13288
13289 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13290 default_double_format.
13291 * gdbarch.h, gdbarch.c: Re-generate.
13292 * findvar.c (floatformat_unknown): Delete variable definition.
13293 * doublest.h (floatformat_unknown): Delete variable declaration.
13294
da966255
JB
132952002-02-09 Jim Blandy <jimb@redhat.com>
13296
13297 * stabsread.c (read_type): Add code to parse Sun's syntax for
13298 prototyped function types.
13299
123a4891
AC
133002002-02-09 Andrew Cagney <ac131313@redhat.com>
13301
13302 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13303 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13304
fb39c8f3
PS
133052002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13306
13307 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13308 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13309 now _initialize_xcoffsolib gets called again and overrides the
13310 commands from solib.c in a native configuration.
13311
0b87a11d
MK
133122002-02-09 Mark Kettenis <kettenis@gnu.org>
13313
13314 * doublest.c (store_typed_floating): Don't try to return a value.
13315 Fixes PR gdb/290.
13316
bdc2fc72
JB
133172002-02-08 Jim Blandy <jimb@redhat.com>
13318
13319 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13320 is prototyped and has no arguments, print its argument list as
13321 `(void)'.
13322
da69bbcf
CD
133232002-02-08 Chris Demetriou <cgd@broadcom.com>
13324
13325 * MAINTAINERS (write-after-approval): Add myself.
13326 (paper-trail): I've escaped!
aaa38bb5 13327
b69571f5
CF
133282002-02-08 Christopher Faylor <cgf@redhat.com>
13329
13330 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13331 changes.
13332 (_initialize_check_for_gdb_ini): Ditto.
13333
f6871398
MH
133342002-02-08 Martin M. Hunt <hunt@redhat.com>
13335
13336 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13337 xaprintf -> xasprintf.
13338
4e52d31c
PM
133392002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13340
13341 * win32-nat.c: Remove use of printf and sprintf functions.
13342
39bbf761
RE
133432002-02-08 Richard Earnshaw <rearnsha@arm.com>
13344
13345 * arm-tdep.c (arm_frame_chain_valid): Make static.
13346 (arm_push_arguments): Likewise.
13347 (arm_gdbarch_init): New function.
13348 (_initialize_arm_tdep): Call it.
13349 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13350 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13351 (FRAME_CHAIN_VALID): Delete.
13352 (arm_frame_chain_valid): Delete declaration.
13353 (PUSH_ARGUMENTS): Delete.
13354 (arm_push_arguments): Delete declaration.
13355 (CALL_DUMMY_P): Delete.
13356
9c9532c9
CV
133572002-02-08 Andrew Cagney <ac131313@redhat.com>
13358 Corinna Vinschen <vinschen@redhat.com>
13359
13360 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13361 on builtin float types.
13362
4e8f7a8b
DJ
133632002-02-08 Daniel Jacobowitz <drow@mvista.com>
13364
13365 * utils.c: Include <curses.h> before "bfd.h".
13366 * tui/tui-hooks.c: Likewise.
13367 * tui/tui.c: Likewise.
13368 * tui/tuiCommand.c: Likewise.
13369 * tui/tuiData.c: Likewise.
13370 * tui/tuiDataWin.c: Likewise.
13371 * tui/tuiDisassem.c: Likewise.
13372 * tui/tuiGeneralWin.c: Likewise.
13373 * tui/tuiIO.c: Likewise.
13374 * tui/tuiLayout.c: Likewise.
13375 * tui/tuiRegs.c: Likewise.
13376 * tui/tuiSource.c: Likewise.
13377 * tui/tuiSourceWin.c: Likewise.
13378 * tui/tuiStack.c: Likewise.
13379 * tui/tuiWin.c: Likewise.
13380
cd4bffcf
EZ
133812002-02-07 Elena Zannoni <ezannoni@redhat.com>
13382
13383 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13384 to include space for pseudoregs as well. Update loops accordingly.
13385 (sh_fp_frame_init_saved_regs): Ditto.
13386 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13387
26806ce2
AC
133882002-02-07 Andrew Cagney <ac131313@redhat.com>
13389
13390 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13391 Add Richard Earnshaw to Arm maintainers.
13392
97fdab62
AC
133932002-02-07 Andrew Cagney <ac131313@redhat.com>
13394
a6b98203
AC
13395 * defs.h (warning_begin): Delete declaration.
13396
97fdab62
AC
13397 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13398 Delete macro.
13399
78b29b40
MS
134002002-02-07 Michael Snyder <msnyder@redhat.com>
13401
aaa38bb5 13402 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13403 Logic bug, remove misplaced else.
13404
d8849953
KD
134052002-02-07 Klee Dienes <klee@apple.com>
13406
13407 * fork-inferior.c (fork_inferior): Add '!' to the list of
13408 characters that need to be quoted when building a string for the
13409 shell. Quote '!' specifically with a backslash, since CSH chokes
13410 when trying to evaluate "str!str".
aaa38bb5 13411
095778a0
NC
134122002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13413
13414 * rdi-share/host.h: Only provide a typedef for bool if it is not
13415 defined.
13416
1900040c
MS
134172002-02-04 Michael Snyder <msnyder@redhat.com>
13418
13419 * breakpoint.h (enum bptype): Add new overlay event bp type.
13420 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13421
1900040c
MS
13422 * breakpoint.c (create_internal_breakpoint): New function.
13423 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13424 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13425 (create_thread_event_breakpoint): Ditto.
13426 (create_solib_event_breakpoint): Ditto.
13427 (create_overlay_event_breakpoint): New function.
13428 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13429 (update_breakpoints_after_exec): Delete and re-initialize
13430 overlay event breakpoints after an exec. Add FIXME comment
13431 about longjmp breakpoint.
13432 (print_it_typical): Ignore overlay event breakpoints.
13433 (print_one_breakpoint): Ditto.
13434 (mention): Ditto.
13435 (bpstat_what): Do not stop for overlay event breakpoints.
13436 (delete_breakpoint): Don't delete overlay event breakpoints.
13437 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13438 (breakpoint_re_set): Re-create overlay event breakpoint.
13439
13440 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13441 (overlay_manual_command): Disable overlay breakpoints.
13442 (overlay_off_command): Disable overlay breakpoints.
13443
082fc60d
RE
134442002-02-06 Richard Earnshaw <rearnsha@arm.com>
13445
13446 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13447 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13448 to here from config/tm-arm.h.
13449 (coff_sym_is_thumb): Make static.
13450 (arm_elf_make_msymbol_special): New function.
13451 (arm_coff_make_msymbol_special): New function.
13452 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13453 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13454 (coff_sym_is_thumb): Delete declaration.
13455 (arm_elf_make_msymbol_special): Declare.
13456 (arm_coff_make_msymbol_special): Declare.
13457 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13458 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13459
039c5766
RE
134602002-02-06 Richard Earnshaw <rearnsha@arm.com>
13461
13462 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13463
134642002-02-06 Richard Earnshaw <rearnsha@arm.com>
13465
13466 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13467 * gdbarch.c gdbarch.h: Regenerate.
13468 * arch-utils.c (default_print_float_info): New function.
13469 * arch-utils.h (default_print_float_info): Prototype it.
13470 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13471 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13472 (PRINT_FLOAT_INFO): Document it.
13473
13474 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13475 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13476 (PRINT_FLOAT_INFO): Define.
13477
58fa08f0
PM
134782002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13479
aaa38bb5 13480 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13481 Add typecast to sprintf argument to suppress a warning.
13482
7393af7c
PM
134832002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13484
58fa08f0 13485 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13486 to allow easier handling of pass state.
13487 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13488 that gives exception name and address.
13489 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13490 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13491 exceptions added.
aaa38bb5
AJ
13492 (child_continue): Correctly report continue_status.
13493 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13494 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13495 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13496 the exception should be passed to debuggee or not.
13497
6af4589c
MS
134982002-02-05 Michael Snyder <msnyder@redhat.com>
13499
13500 * regcache.c (fetch_register): Call target_fetch_register
13501 only if we don't call FETCH_PSEUDO_REGISTER.
13502 (store_register): Call target_store_register only if we
13503 don't call STORE_PSEUDO_REGISTER.
13504
a2cf933a
EZ
135052002-02-05 Elena Zannoni <ezannoni@redhat.com>
13506
13507 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13508 ELF_MAKE_MSYMBOL_SPECIAL.
13509 * gdbarch.c, gdbarch.h: Regenerate.
13510 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13511 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13512 * elfread.c (elf_symtab_read): Compile use of
13513 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13514 multiarched.
13515 * coffread.c (coff_symtab_read): Ditto, for
13516 COFF_MAKE_MSYMBOL_SPECIAL.
13517
6bb7be43
JB
135182002-02-05 Jim Blandy <jimb@redhat.com>
13519
13520 * solib-svr4.c (svr4_truncate_ptr): New function.
13521 (svr4_relocate_section_addresses): Do the address arithmetic with
13522 the appropriate truncation for target addresses, even when
13523 CORE_ADDR is larger than a target address.
13524
e18651ec
DJ
135252002-02-05 Daniel Jacobowitz <drow@mvista.com>
13526
13527 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13528 to (int *).
13529
6b2725be
DJ
135302002-02-05 Daniel Jacobowitz <drow@mvista.com>
13531
13532 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13533 code.
13534
fca9e603
DJ
135352002-02-05 Daniel Jacobowitz <drow@mvista.com>
13536
13537 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13538
6c537a52
DJ
135392002-02-05 Daniel Jacobowitz <drow@mvista.com>
13540
13541 * gdbserver/linux-low.c: Remove unused include files.
13542
d844cde6
DJ
135432002-02-05 Daniel Jacobowitz <drow@mvista.com>
13544
13545 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13546 (read_inferior_memory): Use it.
13547 (write_inferior_memory): Likewise.
13548
d07c63e7
DJ
135492002-02-05 Daniel Jacobowitz <drow@mvista.com>
13550
13551 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13552 grubbing through sys_errlist.
13553
da6d8c04
DJ
135542002-02-05 Daniel Jacobowitz <drow@mvista.com>
13555
13556 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13557
5b421780
PM
135582002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13559 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13560
9f60d481
AC
135612002-02-04 Andrew Cagney <ac131313@redhat.com>
13562
13563 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13564 (do_sfunc, set_cmd_sfunc): New functions.
13565
13566 * command.h (struct cmd_list_element): Add field func.
13567 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13568 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13569 * cli/cli-decode.h: Ditto.
13570
13571 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13572 (help_all, help_cmd_list): Ditto.
13573 (find_cmd, complete_on_cmdlist): Ditto.
13574 * top.c (execute_command): Ditto.
13575
13576 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13577 function.sfunc.
13578
13579 * infcmd.c (notice_args_read): Fix function signature.
13580
13581 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13582 * cli/cli-decode.c (add_set_cmd): Ditto.
13583 * utils.c (initialize_utils): Ditto.
13584 * maint.c (_initialize_maint_cmds): Ditto.
13585 * infrun.c (_initialize_infrun): Ditto.
13586 * demangle.c (_initialize_demangler): Ditto.
13587 * remote.c (add_packet_config_cmd): Ditto.
13588 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13589 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13590 * proc-api.c (_initialize_proc_api): Ditto.
13591 * kod.c (_initialize_kod): Ditto.
13592 * valprint.c (_initialize_valprint): Ditto.
13593 * top.c (init_main): Ditto.
13594 * infcmd.c (_initialize_infcmd): Ditto.
13595 * corefile.c (_initialize_core): Ditto.
13596 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13597 * arch-utils.c (initialize_current_architecture): Ditto.
13598 (_initialize_gdbarch_utils): Ditto.
13599 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13600
13601 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13602 * wince.c (_initialize_inftarg): Ditto.
13603 * symfile.c (_initialize_symfile): Ditto.
13604 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13605 * language.c (_initialize_language): Ditto.
13606 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13607
f9ba0717
MS
136082002-02-04 Michael Snyder <msnyder@redhat.com>
13609
13610 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13611
0c74b2a7
DJ
136122002-02-04 Daniel Jacobowitz <drow@mvista.com>
13613
13614 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13615 Add rules for building the register data files.
13616
c638789f
DJ
136172002-02-04 Daniel Jacobowitz <drow@mvista.com>
13618
13619 * regformats/regdat.sh: Add braces to the definition of
13620 expedite_regs_${arch}.
13621
db253027
DJ
136222002-02-04 Daniel Jacobowitz <drow@mvista.com>
13623
13624 * regformats/regdef.h (struct reg): Add comment describing the
13625 requirements for offset and size fields.
13626
206be19c
AS
136272002-02-04 Andreas Schwab <schwab@suse.de>
13628
13629 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13630 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13631
181c1381
RE
136322002-02-04 Richard Earnshaw <rearnsha@arm.com>
13633
13634 * gdbarch.sh (copyright): Update years in generated header.
13635 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13636 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13637 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13638 * dbxread.c: Likewise.
13639 * dwarfread.c: Likewise.
13640 * elfread.c: Likewise.
13641 * somread.c: Likewise.
13642
13643 * arm-tdep.c (arm_smash_text_address): New function.
13644 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13645
fa4ba8da
PM
136462002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13647
13648 Add support for hardware watchpoints on win32 native.
aaa38bb5 13649 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13650 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13651 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13652 of debug registers.
13653 (debug_registers_changed): New variable. Reflects when debug registers
13654 are changed and need to be written to inferior.
aaa38bb5 13655 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13656 was set, used when new threads are created.
13657 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13658 i386-nat code.
13659 (thread_rec): Set dr array if id is the thread of current_event .
13660 (child_continue, child_resume): Change the debug registers for all
13661 threads if debug_registers_changed.
13662 (child_add_thread): Change the debug registers if debug_registers_used.
13663 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13664 Link nm.h to new nm-cygwin.h file.
13665 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13666 of hardware registers.
13667
a73c86fb
AC
136682002-02-03 Andrew Cagney <ac131313@redhat.com>
13669
13670 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13671 Restore behavour broken by 2002-01-20 Andrew Cagney
13672 <ac131313@redhat.com> IEEE_FLOAT removal.
13673
acf5ed49
DJ
136742002-02-03 Daniel Jacobowitz <drow@mvista.com>
13675
13676 * c-valprint.c (c_val_print): Pass a proper valaddr to
13677 cp_print_class_method.
13678 * valops.c (search_struct_method): If there is only one method
13679 and args is NULL, return that method.
13680
493d28d5
DJ
136812002-02-03 Daniel Jacobowitz <drow@mvista.com>
13682
13683 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13684 accessing tag_name directly.
13685
7495dfdb
DJ
136862002-02-03 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13689 of accessing tag_name directly.
13690
dd6bda65
DJ
136912002-02-03 Daniel Jacobowitz <drow@mvista.com>
13692
13693 PR gdb/280
13694 * gdbtypes.c (replace_type): New function.
13695 * gdbtypes.h (replace_type): Add prototype.
13696 * stabsread.c (read_type): Use replace_type.
13697
88fe217c
RE
136982002-02-03 Richard Earnshaw <rearnsha@arm.com>
13699
13700 * Makefile.in (memattr.o): Add missing dependencies rule.
13701
e5d66720
PS
137022002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13703
13704 * breakpoint.c (break_at_finish_command): Really export.
13705 (break_at_finish_at_depth_command): Ditto.
13706 (tbreak_at_finish_command): Ditto.
13707 * hppa-tdep.c: Include completer.h.
13708 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13709 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13710
fffee0be
AC
137112002-02-01 Andrew Cagney <ac131313@redhat.com>
13712
13713 * utils.c (do_write): New function.
13714 (error_stream): Rewrite combining the code from error_begin and
13715 verror.
13716 (verror): Rewrite using error_stream.
13717 (error_begin): Delete function.
13718
255e7dbf
AC
137192002-02-01 Andrew Cagney <ac131313@redhat.com>
13720
13721 * utils.c (error_begin): Make static.
13722 * defs.h (error_begin): Delete declaration.
13723
13724 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13725 (decode_line_1): Use cplusplus_error instead of error_begin,
13726 cplusplus_hint and return_to_top_level.
13727 * coffread.c (coff_symfile_read): Use error instead of error_begin
13728 and return_to_top_level.
13729 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13730
ddfe3c15
AC
137312002-02-01 Andrew Cagney <ac131313@redhat.com>
13732
13733 * language.h (type_error, range_error): Make string parameter
13734 constant.
13735 * language.c (warning_pre_print): Delete extern declaration.
13736 * dwarfread.c (warning_pre_print): Ditto.
13737 * language.c (type_error, range_error): Rewrite to use verror and
13738 vwarning instead of warning_begin.
13739
03ac34d5
MS
137402002-02-01 Michael Snyder <msnyder@redhat.com>
13741
261c4ca2
MS
13742 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13743 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13744
e00d1dc8
AC
137452002-02-01 Andrew Cagney <ac131313@redhat.com>
13746
13747 * command.h (NO_FUNCTION): Delete macro.
13748 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13749 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13750 * tracepoint.c (_initialize_tracepoint): Ditto.
13751 * cli/cli-decode.c (add_set_cmd): Ditto.
13752 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13753
76b79d6e
DJ
137542002-02-01 Daniel Jacobowitz <drow@mvista.com>
13755
13756 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13757 Update ``this'' pointer when calling virtual functions.
13758
799f9e91
MS
137592002-02-01 Michael Snyder <msnyder@redhat.com>
13760
c7bd442c 13761 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13762 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13763
3cf384d4
DJ
137642002-02-01 Daniel Jacobowitz <drow@mvista.com>
13765
13766 * regformats/reg-arm.dat: New file.
13767 * regformats/reg-i386.dat: New file.
13768 * regformats/reg-ia64.dat: New file.
13769 * regformats/reg-m68k.dat: New file.
13770 * regformats/reg-mips.dat: New file.
13771 * regformats/reg-ppc.dat: New file.
13772 * regformats/reg-sh.dat: New file.
13773 * regformats/regdef.h: New file.
13774 * regformats/regdat.sh: New file.
13775
0defa245
RE
137762002-02-01 Richard Earnshaw <reanrsha@arm.com>
13777
13778 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13779 (arm_frame_args_address, arm_frame_locals_address): New functions.
13780 (arm_frame_num_args): New function.
13781 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13782 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13783 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13784
405f26e6
MS
137852002-01-31 Michael Snyder <msnyder@redhat.com>
13786
502fd408
MS
13787 * breakpoint.c (break_at_finish_command): Export.
13788 (break_at_finish_at_depth_command): Export.
13789 (tbreak_at_finish_command): Export.
d6020d45 13790 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13791 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13792 "txbreak" commands, which are HPPA specific.
502fd408 13793
7d35e135
MS
13794 * printcmd.c (disassemble_command): Remove an ancient
13795 artifact of an old merge.
13796
aaa38bb5 13797 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13798 Define enum constant values for overlay mode.
13799 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13800 (overlay_is_mapped, overlay_auto_command,
13801 overlay_manual_command): Ditto.
d874f1e2 13802
aaa38bb5
AJ
13803 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13804 breakpoint_here_p, breakpoint_inserted_here_p,
13805 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13806 describe_other_breakpoints, check_duplicates, clear_command):
13807 Coding standard fixes.
13808
8add0441 13809 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13810 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13811 code: check bfd SEC_READONLY flag for section.
13812
e351066e
AC
138132002-01-31 Andrew Cagney <ac131313@redhat.com>
13814
7d35e135 13815 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13816
8a48e967
DJ
138172002-01-30 Daniel Jacobowitz <drow@mvista.com>
13818
13819 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13820 data symbols, since we search based on textlow and texthigh.
13821 (find_pc_sect_symtab): Likewise.
13822
f5a96129
AC
138232002-01-30 Andrew Cagney <ac131313@redhat.com>
13824
13825 * defs.h (vwarning): Declare.
f5a96129
AC
13826 * utils.c (vwarning): New function.
13827 (warning): Call vwarning.
13828 (warning_begin): Delete function.
13829
13830 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13831 the warning message.
13832 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13833 warning_begin.
13834
cefd4ef5
MS
138352002-01-30 Michael Snyder <msnyder@redhat.com>
13836
1a703748
MS
13837 * NEWS: Mention "set trust-readonly-sections" command.
13838 Mention generate-core-file command.
cefd4ef5 13839
3a11626d
MS
138402002-01-15 Michael Snyder <msnyder@redhat.com>
13841
13842 * target.c: New command, "set trust-readonly-sections on".
13843 (do_xfer_memory): Honor the suggestion to trust readonly sections
13844 by reading them from the object file instead of from the target.
13845 (initialize_targets): Register command "set trust-readonly-sections".
13846
d1c7e53b
AC
138472002-01-29 Andrew Cagney <ac131313@redhat.com>
13848
13849 * parse.c (target_map_name_to_register): Simplify, search regs and
13850 pseudo-regs using a single loop.
13851
e2c9a72c
AC
138522002-01-30 Andrew Cagney <ac131313@redhat.com>
13853
13854 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13855
69824b4e
MK
138562002-01-15 Rodney Brown <rbrown64@csc.com.au>
13857
13858 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13859 * config/i386/i386v42mp.mh: Add i387-nat.o .
13860 * i386v4-nat.c: Include i387-nat.h.
13861 (supply_fpregset): Use i387_supply_fsave.
13862 (fill_fpregset): Use i387_fill_fsave.
13863
6eb69eab
RE
138642002-01-30 Richard Earnshaw <rearnsha@arm.com>
13865
13866 * arm-tdep.c (arm_call_dummy_words): Define.
13867 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13868 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13869 (CALL_DUMMY_WORDS): Define.
13870 (arm_call_dummy_words): Declare.
13871 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13872 (arm_linux_call_dummy_words): Declare.
13873
9852326a
AS
138742002-01-30 Andreas Schwab <schwab@suse.de>
13875
13876 * m68klinux-nat.c: Fix last change to use regcache_collect
13877 instead of referencing registers[] directly.
13878
977a3030
AC
138792002-01-29 Andrew Cagney <ac131313@redhat.com>
13880
13881 * parse.c (target_map_name_to_register): Delete code wrapped in
13882 #ifdef REGISTER_NAME_ALIAS_HOOK.
13883
2076c72b
MS
138842002-01-28 Michael Snyder <msnyder@redhat.com>
13885
13886 * regcache.c (legacy_read_register_gen): Need to be able to
13887 read pseudo-register as well as real register.
13888 (legacy_write_register_gen): Ditto.
13889
8fcc723b
AC
138902002-01-28 Andrew Cagney <ac131313@redhat.com>
13891
13892 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13893 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13894 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13895 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13896 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13897 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13898 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13899 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13900 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13901 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13902 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13903 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13904 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13905 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13906 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13907 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13908 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13909 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13910 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13911 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13912
afe64c1a
AC
139132002-01-28 Andrew Cagney <ac131313@redhat.com>
13914
13915 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13916 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13917 (initialize_current_architecture): Update target_byte_order using
13918 information from BFD.
aaa38bb5 13919 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13920 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13921
75bc7ddf
AC
139222002-01-28 Andrew Cagney <ac131313@redhat.com>
13923
13924 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13925 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13926
13927 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13928 #ifdef INVALID_FLOAT.
13929 * infcmd.c (do_registers_info): Ditto.
13930 * values.c (unpack_double): Ditto. Add comment.
13931
13932 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13933 already commented out.
13934
0280a90a
AS
139352002-01-26 Andreas Schwab <schwab@suse.de>
13936
13937 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13938 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13939 registers and add support for PTRACE_GETREGS.
13940
7072a954
AC
139412002-01-24 Andrew Cagney <ac131313@redhat.com>
13942
13943 GDB 5.1.1 released from 5.1 branch.
13944 * NEWS: Add 5.1.1 news.
13945 * README: Sync with 5.1 branch.
13946
86f902e0
FF
139472002-01-23 Fred Fish <fnf@redhat.com>
13948
13949 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13950 stabstring on initial malloc. Reallocing will copy it for us,
13951 if necessary.
13952
8af51c36
EZ
139532002-01-23 Elena Zannoni <ezannoni@redhat.com>
13954
aaa38bb5 13955 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13956 (HFILES_NO_SRCDIR): Remove hpread.h.
13957 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13958 (hpread.o): Update dependencies.
13959 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13960
13961 * hp-psymtab-read.c: Remove file.
13962 * hp-symtab-read.c: Remove file.
13963 * hpread.h: Remove file.
13964
13965 * hpread.c: Merge all contents of hp-psymtab-read.c,
13966 hp-symtab-read.c and hpread.h into this file, as it was prior to
13967 January 1999.
13968
13969 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13970 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13971 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13972 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13973
dc5cfeb6
EZ
139742002-01-23 Elena Zannoni <ezannoni@redhat.com>
13975
13976 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13977 fill_gregset): Call gdbarch_tdep() just once, assign result to
13978 variable and use that, instead of calling the function several
13979 times.
13980
ea87b71b
AO
139812002-01-24 Alexandre Oliva <aoliva@redhat.com>
13982
13983 * configure.host: Accept sparcv9 as alias for sparc64.
13984 * configure.tgt: Likewise.
13985
13fc0c2f
KB
139862002-01-22 Kevin Buettner <kevinb@redhat.com>
13987
13988 * solib-aix5.c (build_so_list_from_mapfile)
13989 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13990 arguments is not reversed.
13991 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13992 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13993
7bd872fe
EZ
139942002-01-22 Elena Zannoni <ezannoni@redhat.com>
13995
13996 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13997 modified version of obsolete sh_fetch_pseudo_register.
13998 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13999 (sh4_register_read): New function.
14000 (sh_pseudo_register_write): New function. Renamed and modified
14001 version of obsolete sh_store_pseudo_register.
14002 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14003 (sh4_register_write): New function.
14004 (sh_gdbarch_init): Remove setting of gdbarch function
14005 fetch_pseudo_register and store_pseudo_register. Remove setting of
14006 register_convert_to_raw, register_convert_to_virtual,
14007 register_convertible.
14008 (sh_sh4_register_convertible): Delete. No longer needed. All is
14009 taken care by architecture specific functions
14010 register_read/register_write.
14011 (sh_sh4_register_convert_to_virtual): Make static.
14012 (sh_sh4_register_convert_to_raw): Ditto.
14013
069e84fd
AC
140142002-01-22 Andrew Cagney <ac131313@redhat.com>
14015
14016 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14017 (floatformat_is_nan, floatformat_mantissa): Ditto.
14018
14019 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14020 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14021 builtin_type_ieee_double_little,
14022 builtin_type_ieee_double_littlebyte_bigword,
14023 builtin_type_m68881_ext, builtin_type_i960_ext,
14024 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14025 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14026 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14027 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14028
211a4f69
CV
140292002-01-22 Corinna Vinschen <vinschen@redhat.com>
14030
14031 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14032 parameter. Set frameless flag if it exists and depended of
14033 whether the scanned function is frameless or not.
14034 (xstormy16_skip_prologue): If function is frameless, return
14035 result of xstormy16_scan_prologue().
14036 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14037 call.
14038
f81353e4
EZ
140392002-01-21 Elena Zannoni <ezannoni@redhat.com>
14040
14041 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14042 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14043 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14044 sh_sh4_register_byte, sh_sh4_register_raw_size,
14045 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14046 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14047 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14048 sh_store_pseudo_register, sh_do_pseudo_register): Call
14049 gdbarch_tdep() just once, assign result to variable and use that,
14050 instead of calling the function several times.
14051
63c73a17
MK
140522002-01-20 Mark Kettenis <kettenis@gnu.org>
14053
14054 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14055 macros instead of LAST_FPU_CTRL_REGNUM.
14056 (store_register): Likewise.
14057
39ad761d
JB
140582002-01-21 Jim Blandy <jimb@redhat.com>
14059
14060 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14061 is up-to-date before running the program, not just when a program
14062 exits.
14063
3d74b771
FF
140642002-01-21 Fred Fish <fnf@redhat.com>
14065
14066 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14067 when we have found all instructions we are looking for.
14068
966fbf70
RE
140692002-01-21 Richard Earnshaw <rearnsha@arm.com>
14070
14071 * arm-tdep.c (arm_register_name): New function.
14072 (arm_registers_names): Make static.
14073 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14074 (arm_register_name): Declare.
14075 (REGISTER_NAME): Use it.
14076
c3b4394c
RE
140772002-01-21 Richard Earnshaw <rearnsha@arm.com>
14078 Kevin Buettner <kevinb@redhat.com>
14079
14080 Convert arm targets to new FRAME interface.
14081 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14082 (arm_frame_find_save_regs): Delete.
14083 (arm_frame_init_saved_regs): New.
14084 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14085 Allocate extra_info as required. Convert all uses of fsr.regs
14086 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14087 to use extra_info.
14088 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14089 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14090 (check_prologue_cache, save_prologue_cache): Likewise.
14091 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14092 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14093 (FRAME_FIND_SAVED_REGS): Delete.
14094 (arm_frame_find_saved_regs): Delete prototype.
14095 (arm_frame_init_saved_regs): New prototype.
14096 (FRAME_INIT_SAVED_REGS): Define.
14097
61d99182
AC
140982002-01-20 Andrew Cagney <ac131313@redhat.com>
14099
14100 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14101
6aaea291
AC
141022002-01-20 Andrew Cagney <ac131313@redhat.com>
14103
14104 From Jeff Law <law@redhat.com>:
14105 * infttrace.c: Include <sys/pstat.h>.
14106 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14107 exec file if the ttrace equivalent fails.
14108
15f698d2
AC
141092002-01-20 Andrew Cagney <ac131313@redhat.com>
14110
14111 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14112 (closeLogFile): Ditto.
14113
f86ddd7c
MC
141142002-01-20 Michael Chastain <mec@shout.net>
14115
14116 * top.c (print_gdb_version): Bump copyright year to 2002.
14117
904507ce
AC
141182002-01-20 Andrew Cagney <ac131313@redhat.com>
14119
14120 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14121 Zannoni and Eli Zaretskii.
14122
d7f0b9ce
DJ
141232002-01-20 Daniel Jacobowitz <drow@mvista.com>
14124
14125 * buildsym.c: Update copyright years.
14126 * c-typeprint.c: Likewise.
14127 * dwarf2read.c: Likewise.
14128 * f-typeprint.c: Likewise.
14129 * gdbtypes.c: Likewise.
14130 * gdbtypes.h: Likewise.
14131 * hp-symtab-read.c: Likewise.
14132 * hpread.c: Likewise.
14133 * mdebugread.c: Likewise.
14134 * p-typeprint.c: Likewise.
14135
3fd3d7d2
AC
141362002-01-20 Andrew Cagney <ac131313@redhat.com>
14137
14138 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14139 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14140 byte-order selectable.
14141 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14142 * arch-utils.c: Ditto.
14143 (set_endian): Ditto.
14144 (set_endian_from_file): Ditto.
14145 * gdbserver/low-sim.c (create_inferior): Ditto.
14146 * gdbarch.sh: Ditto.
14147 * gdbarch.h: Re-generate.
aaa38bb5
AJ
14148 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14149 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14150 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14151 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14152 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14153 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14154 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
14155 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14156 macro definition.
14157 * config/mips/tm-wince.h: Remove #undef of macro
14158 TARGET_BYTE_ORDER_SELECTABLE.
14159 * config/sh/tm-wince.h: Ditto.
14160
b02dede2
DJ
141612002-01-20 Daniel Jacobowitz <drow@mvista.com>
14162
14163 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14164 member function fields. Add accessor macro
14165 TYPE_FN_FIELD_ARTIFICIAL.
14166 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14167 * c-typeprint.c (c_type_print_base): Skip artificial member
14168 functions.
14169
c3643761
DJ
141702002-01-20 Daniel Jacobowitz <drow@mvista.com>
14171
14172 * f-typeprint.c: Delete unused function f_type_print_args.
14173 * p-typeprint.c: Delete unused function pascal_type_print_args.
14174
8176bb6d
DJ
141752002-01-20 Daniel Jacobowitz <drow@mvista.com>
14176
14177 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14178 comment. Add ``artificial'' to ``union field_location''.
14179
14180 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14181
14182 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14183 * mdebugread.c (parse_symbol): Likewise.
14184 * stabsread.c (define_symbol): Likewise.
14185 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14186 initializing TYPE_FIELD_BITPOS to n (obsolete).
14187 (hpread_doc_function_type): Likewise.
14188 * hpread.c (hpread_function_type): Likewise.
14189
7fd60527
AC
141902002-01-20 Andrew Cagney <ac131313@redhat.com>
14191
14192 * configure.in (host_makefile_frag): Only require a host makefile
14193 fragment when a native build.
14194 * configure: Re-generate.
14195
c2f05ac9
AC
141962002-01-20 Andrew Cagney <ac131313@redhat.com>
14197
14198 * doublest.h (floatformat_from_type): Declare.
14199 * doublest.c (floatformat_from_type): New function.
14200 (convert_typed_floating): Use.
14201
14202 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14203 call to function floatformat_from_type.
14204
14205 * gdbarch.sh (IEEE_FLOAT): Delete.
14206 * gdbarch.h, gdbarch.c: Re-generate.
14207 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14208 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14209 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14210 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14211 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14212 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14213 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14214 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14215 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14216 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14217 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14218 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14219
14220 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14221 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14222 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14223 * sh-tdep.c (sh_gdbarch_init): Ditto.
14224 * mips-tdep.c (mips_gdbarch_init): Ditto.
14225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14226 * cris-tdep.c (cris_gdbarch_init): Ditto.
14227
abf22e64
AJ
142282002-01-20 Jiri Smid <smid@suse.cz>
14229
14230 * configure.host, configure.tgt: Support x86-64.
14231 * NEWS: Note new target x86-64.
14232
b7c4cbf8
AJ
14233 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14234 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14235 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14236 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14237 x86-64-linux-nat.o): Fix dependencies.
14238
82600034
AC
142392002-01-19 Andrew Cagney <ac131313@redhat.com>
14240
14241 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14242 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14243 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14244 * config/sparc/xm-sun4os4.h: Delete file.
14245 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14246
bbe5c628
AC
142472002-01-19 Andrew Cagney <ac131313@redhat.com>
14248
14249 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14250 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14251 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14252 * config/i386/i386lynx.mh (XM_FILE): Delete.
14253 * config/rs6000/xm-rs6000ly.h: Delete file.
14254 * config/sparc/xm-sparclynx.h: Delete file.
14255 * config/m68k/xm-m68klynx.h: Delete file.
14256 * config/i386/xm-i386lynx.h: Delete file.
14257 * config/xm-lynx.h: Delete file.
14258 * config/djgpp/fnchange.lst: Update.
14259
f8453e34
JT
142602002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14261
14262 * alpha-tdep.c (alpha_register_byte): New function.
14263 (alpha_register_raw_size): Ditto.
14264 (alpha_register_virtual_size): Ditto.
14265 (alpha_skip_prologue_internal): Renamed from
14266 alpha_skip_prologue.
14267 (alpha_skip_prologue): New version that calls
14268 alpha_skip_prologue_internal.
14269 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14270 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14271 second argument from alpha_skip_prologue.
14272 (REGISTER_BYTE): Use alpha_register_byte.
14273 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14274 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14275 (FRAMELESS_FUNCTION_INVOCATION): Use
14276 generic_frameless_function_invocation_not.
14277 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14278 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14279
52d9e613
AC
142802002-01-19 Andrew Cagney <ac131313@redhat.com>
14281
14282 * config/mips/xm-news-mips.h: Delete file.
14283 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14284
14285 * config/m88k/xm-m88k.h: Delete file.
14286 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14287 * config/m88k/xm-delta88v4.h: Ditto.
14288 * config/m88k/xm-delta88.h: Ditto.
14289
14290 * config/alpha/xm-fbsd.h: Delete file.
14291 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14292
14293 * config/sparc/xm-sparc.h: Delete file.
14294 * Makefile.in (xm-sun4os4.h): Delete dependency.
14295 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14296 * config/sparc/xm-sun4os4.h: Ditto.
14297 * config/sparc/xm-linux.h: Ditto.
14298
14299 * config/i386/xm-windows.h: Delete file.
14300
2d1b2124
AC
143012002-01-19 Andrew Cagney <ac131313@redhat.com>
14302
14303 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14304 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14305
ee1f65f0
JT
143062002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14307
14308 * alpha-tdep.c (alpha_call_dummy_words): New.
14309 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14310 (CALL_DUMMY_P): Define.
14311 (CALL_DUMMY_WORDS): Define.
14312 (SIZEOF_CALL_DUMMY_WORDS): Define.
14313
98081e55
PB
143142002-01-19 Per Bothner <per@bothner.com>
14315
14316 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14317 isn't NULL, which can happen with some gcj-3.x-produced code.
14318
0d056799
JT
143192002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14320
14321 * alpha-tdep.c (alpha_register_virtual_type): New function.
14322 (alpha_init_frame_pc_first): Ditto.
14323 (alpha_fix_call_dummy): Ditto.
14324 (alpha_store_struct_return): Ditto.
14325 (alpha_extract_struct_value_address): Ditto.
14326 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14327 alpha_register_virtual_type.
14328 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14329 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14330 alpha_extract_struct_value_address.
14331 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14332 (INIT_FRAME_PC): Use init_frame_pc_noop.
14333 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14334
4604bcad
MK
143352002-01-19 Mark Kettenis <kettenis@gnu.org>
14336
14337 * i386gnu-nat.c: Include "i386-tdep.h".
14338 (fetch_fpregs): Simplify code dealing with uninitialized floating
14339 point states such that it doesn't require FP7_REGNUM.
14340
140f9984
JT
143412002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14342
abf22e64
AJ
14343 * alpha-tdep.c (frame_extra_info): New.
14344 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14345 frame->extra_info.
14346 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14347 (alpha_frame_saved_pc): Use frame->extra_info.
14348 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14349 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14350 (init_extra_frame_info): Rename to...
14351 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14352 (alpha_print_extra_frame_info): New function.
140f9984
JT
14353 (alpha_frame_locals_address): Ditto.
14354 (alpha_frame_args_address): Ditto.
abf22e64 14355 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14356 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14357 alpha_frame_args_address.
abf22e64 14358 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14359 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14360 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14361 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14362 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14363 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14364
d734c450
JT
143652002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14366
14367 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14368 (alpha_cannot_fetch_register): Ditto.
14369 (alpha_cannot_store_register): Ditto.
14370 (alpha_register_convertible): Ditto.
14371 (alpha_use_struct_convention): Ditto.
14372 * config/alpha/tm-alpha.h: Update copyright years.
14373 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14374 (INNER_THAN): Use core_addr_lessthan.
14375 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14376 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14377 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14378 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14379 (FRAME_CHAIN): Remove unnecessary cast.
14380
b4ceaee6
AC
143812002-01-18 Andrew Cagney <ac131313@redhat.com>
14382
14383 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14384 obsolete.
14385
0a65a603
AC
143862002-01-18 Andrew Cagney <ac131313@redhat.com>
14387
14388 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14389 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14390 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14391 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14392 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14393 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14394 * x86-64-linux-nat.c: Ditto.
14395
636a6dfc
JT
143962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14397
abf22e64 14398 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14399 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14400 (REGISTER_NAME): Define.
14401
acceddb6
JT
144022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14403
14404 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14405
ec32e4be
JT
144062002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14407
14408 * alpha-tdep.c: Update copyright years.
14409 (alpha_next_pc): New function.
14410 (alpha_software_single_step): Ditto.
14411 * config/alpha/tm-alpha.h: Add prototype for
14412 alpha_software_single_step.
14413
e771a871
JT
144142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14415
14416 * alphabsd-nat.c: Update copyright years.
14417 (fill_gregset): Use regcache_collect.
14418 (fill_fpregset): Likewise.
14419 (fetch_inferior_registers): Only fetch integer registers
14420 if requested to do so.
14421 (store_inferior_registers): Only store integer registers
14422 if requested to do so.
14423
7708fa01
AC
144242002-01-17 Andrew Cagney <ac131313@redhat.com>
14425
14426 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14427 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14428 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14429 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14430 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14431 * config/arm/linux.mh (XDEPFILES): Delete.
14432 * config/arm/nbsd.mh (XDEPFILES): Delete.
14433 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14434 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14435 * config/i386/i386m3.mh (XDEPFILES): Delete.
14436 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14437 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14438 * config/i386/fbsd.mh (XDEPFILES): Delete.
14439 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14440 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14441 * config/i386/i386v4.mh (XDEPFILES): Delete.
14442 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14443 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14444 * config/i386/i386aix.mh (XDEPFILES): Delete.
14445 * config/i386/go32.mh (XDEPFILES): Delete.
14446 * config/i386/cygwin.mh (XDEPFILES): Delete.
14447 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14448 * config/i386/i386mach.mh (XDEPFILES): Delete.
14449 * config/i386/i386v32.mh (XDEPFILES): Delete.
14450 * config/i386/linux.mh (XDEPFILES): Delete.
14451 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14452 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14453 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14454 * config/i386/i386sco.mh (XDEPFILES): Delete.
14455 * config/i386/i386v.mh (XDEPFILES): Delete.
14456 * config/i386/nbsd.mh (XDEPFILES): Delete.
14457 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14458 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14459 * config/i386/symmetry.mh (XDEPFILES): Delete.
14460 * config/i386/obsd.mh (XDEPFILES): Delete.
14461 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14462 * config/ia64/linux.mh (XDEPFILES): Delete.
14463 * config/ia64/aix.mh (XDEPFILES): Delete.
14464 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14465 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14466 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14467 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14468 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14469 * config/m68k/linux.mh (XDEPFILES): Delete.
14470 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14471 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14472 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14473 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14474 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14475 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14476 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14477 * config/m88k/delta88.mh (XDEPFILES): Delete.
14478 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14479 * config/m88k/m88k.mh (XDEPFILES): Delete.
14480 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14481 * config/mips/linux.mh (XDEPFILES): Delete.
14482 * config/mips/irix6.mh (XDEPFILES): Delete.
14483 * config/mips/irix5.mh (XDEPFILES): Delete.
14484 * config/mips/irix4.mh (XDEPFILES): Delete.
14485 * config/mips/irix3.mh (XDEPFILES): Delete.
14486 * config/mips/decstation.mh (XDEPFILES): Delete.
14487 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14488 (NATDEPFILES): Move core-aout.o to here.
14489 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14490 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14491 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14492 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14493 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14494 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14495 * config/pa/hpux11.mh (XDEPFILES): Delete.
14496 * config/powerpc/aix.mh (XDEPFILES): Delete.
14497 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14498 * config/powerpc/linux.mh (XDEPFILES): Delete.
14499 * config/romp/rtbsd.mh: Rename XDEPFILES.
14500 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14501 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14502 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14503 * config/s390/s390.mh (XDEPFILES): Delete.
14504 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14505 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14506 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14507 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14508 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14509 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14510 * config/sparc/linux.mh (XDEPFILES): Delete.
14511 * config/vax/vaxult.mh (XDEPFILES): Delete.
14512 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14513 * Makefile.in (DEPFILES): Remove XDEPFILES.
14514
375fc983
AC
145152002-01-17 Andrew Cagney <ac131313@redhat.com>
14516
14517 * utils.c (internal_verror): Fix comments, default is yes not no.
14518 Update queries to match. Default to quit and dump core.
14519
8926118c
AC
145202002-01-17 Andrew Cagney <ac131313@redhat.com>
14521
14522 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14523 copyright.
14524 * defs.h, event-top.c, gdbcmd.h: Ditto.
14525 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14526 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14527 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14528 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14529 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14530 * mi/mi-main.c:Ditto.
14531
14532 * stack.c, symfile.c: Update copyright.
14533
45b7b345
DJ
145342002-01-17 Daniel Jacobowitz <drow@mvista.com>
14535
db728ff7
DJ
14536 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14537 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14538 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14539 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14540
db728ff7
DJ
145412002-01-17 Daniel Jacobowitz <drow@mvista.com>
14542
14543 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14544 * gdbserver/low-lynx.c (myattach): Likewise.
14545 * gdbserver/low-nbsd.c (myattach): Likewise.
14546 * gdbserver/low-sim.c (myattach): Likewise.
14547 * gdbserver/low-sparc.c (myattach): Likewise.
14548 * gdbserver/low-sun3.c (myattach): Likewise.
14549
14550 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14551
db728ff7 14552 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14553 (main): Handle "--attach".
14554
8de3c354
AC
145552002-01-16 Andrew Cagney <ac131313@redhat.com>
14556
14557 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14558 maintainer.
14559
b0129042
DJ
145602002-01-15 Daniel Jacobowitz <drow@mvista.com>
14561
14562 * c-typeprint.c (is_type_conversion_operator): Add additional
14563 check for non-conversion operators.
14564
ba8679fb 145652002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14566
14567 * linux-proc.c: Add "info proc" command, a la procfs.c.
14568 (read_mapping): New function, abstract and re-use code.
14569 (linux_find_memory_regions): Use new func read_mapping.
14570 (linux_info_proc_cmd): New function, implement "info proc".
14571 (_initialize_linux_proc): Add new command "info proc".
14572
e4f9b4d5
MS
145732002-01-15 Michael Snyder <msnyder@redhat.com>
14574
14575 * symfile.c (generic_load): Use bfd_map_over_sections method
14576 instead of manipulating bfd structure members directly.
14577 (add_section_size_callback): New function, bfd sections callback
14578 used by generic_load.
14579 (load_sections_callback): New function, bfd sections callback
14580 used by generic_load.
14581
08cf96df
EZ
145822002-01-15 Elena Zannoni <ezannoni@redhat.com>
14583
abf22e64 14584 [Based on work by Jim Blandy]
08cf96df
EZ
14585 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14586 (builtin_type_vec128): Export.
14587 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14588 types.
14589 (builtin_type_vec128): New builtin type for 128 bit vector
14590 registers.
14591 (build_gdbtypes): Initialize builtin_type_v16qi and
14592 builtin_type_v8hi. Create the vec128 register builtin type
14593 structure.
14594 (build_builtin_type_vec128): New function.
abf22e64 14595 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14596 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14597 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14598 AltiVec register to new builtin type.
14599
d7242108
DJ
146002001-01-15 Daniel Jacobowitz <drow@mvista.com>
14601
14602 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14603 to make_cv_type.
14604
4ee3352d
AC
146052002-01-14 Andrew Cagney <ac131313@redhat.com>
14606
14607 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14608 CLEAN_UP_REGISTER_VALUE.
14609 * regcache.c (supply_register): Update only call.
14610
f015b2e7
AC
146112002-01-14 Andrew Cagney <ac131313@redhat.com>
14612
14613 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14614 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14615 a29k-*-vxworks* targets as obsolete.
14616
356ae49d
MS
146172002-01-14 Michael Snyder <msnyder@redhat.com>
14618
14619 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14620 until we can resolve portability issues.
14621 * gregset.h: Remove references to fpxregs.
14622 * gcore.c (gcore_command): Initialize note_sec to NULL.
14623
ade8f45e
AC
146242002-01-13 Andrew Cagney <ac131313@redhat.com>
14625
14626 * signals.c (target_signal_to_name): Rewrite. Only use
14627 signals[].name when in bounds and non-NULL.
abf22e64 14628
89c49e7a
AC
146292002-01-13 Andrew Cagney <ac131313@redhat.com>
14630
14631 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14632 * signals.c (target_signal_to_name): Verify that SIG is within the
14633 bounds of the signals array.
14634
4daa9f9f
AC
146352002-01-13 Andrew Cagney <ac131313@redhat.com>
14636
14637 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14638
ba4bbdcb
KS
146392002-01-13 Keith Seitz <keiths@redhat.com>
14640
14641 * stack.c (print_frame_info_base): Print the frame's pc
14642 only if when print_frame_info_listing_hook is not defined.
14643
575bbeb6
KS
146442002-01-13 Keith Seitz <keiths@redhat.com>
14645
14646 * varobj.c (varobj_set_value): Make sure that there were no
14647 errors evaluating the object before attempting to set its
14648 value.
14649 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14650 so this offset adjustment is no longer necessary.
14651 (create_child): Don't set the error flag if the child is
14652 a CPLUS_FAKE_CHILD.
14653 (value_of_child): If value_fetch_lazy fails, return NULL
14654 so that callers will be notified that an error occurred.
14655 (c_value_of_variable): Delay check of variable's validity
14656 until later. We actually want all structs and unions to have
14657 the value "{...}".
14658 Do not return "???" for variables which could not be evaluated.
14659 This error condition must be returned to the caller so that it
14660 can get the error condition from gdb.
14661 (cplus_name_of_child): Adjust index for vptr before figuring
14662 out the name of the child.
14663 (cplus_value_of_child): If a child's (real) parent is not valid,
14664 don't even bother trying to give a value for it. Just return
14665 an error. Change all instances in this function.
14666 (cplus_type_of_child): If our parent is one of the "fake"
14667 parents, we need to get at the type of the real parent, and
14668 derive the child's true type using this information.
14669
b76898ab
AC
146702002-01-13 Andrew Cagney <ac131313@redhat.com>
14671
14672 From 2002-01-09 John Marshall <johnm@falch.net>:
14673 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14674 sources.redhat.com, and tweak some related URLs which had
14675 suffered from linkrot.
14676
b6649e88
AC
146772002-01-13 Andrew Cagney <ac131313@redhat.com>
14678
14679 From Jeff law:
14680 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14681 structures passed in registers.
14682
82cc5033
EZ
146832002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14684
14685 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14686 white space which prevented compilation. Reported by DSK
14687 <dsk@student.unsw.edu.au>.
14688
ba5f2f8a
MS
146892002-01-11 Michael Snyder <msnyder@redhat.com>
14690
fbd35540
MS
14691 * symfile.c (build_section_addr_info_from_section_tab):
14692 Use bfd access method instead of manipulating bfd directly.
14693 (syms_from_objfile): Ditto.
14694 (simple_overlay_update_1): Ditto.
14695 (simple_overlay_update): Ditto.
14696 (generic_load): Ditto.
14697 (overlay_unmapped_address): FIXME comment, bfd access methods.
14698 (sections_overlap): FIXME comment, bfd access methods.
14699 (pc_in_mapped_range): FIXME comment, bfd access methods.
14700 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14701 (section_is_mapped): FIXME comment, bfd access methods.
14702 (section_is_overlay): FIXME comment, bfd access methods.
14703
ba5f2f8a
MS
14704 * symfile.c (generic_load): Whitespace and long line cleanups.
14705 Remove duplicate variable, change several local variables to
14706 more appropriate data types.
14707 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14708
17df2af6
AC
147092002-01-12 Andrew Cagney <ac131313@redhat.com>
14710
14711 From Peter Schauer:
14712 * language.c (longest_local_hex_string_custom): Use phex_nz to
14713 convert NUM to a hex string.
14714
ec920329
EZ
147152002-01-12 Elena Zannoni <ezannoni@redhat.com>
14716
14717 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14718 the function.
538a76d6 14719 Update Copyright year.
ec920329 14720
3abd2e01
AC
147212002-01-12 Andrew Cagney <ac131313@redhat.com>
14722
14723 * language.c (longest_raw_hex_string): Delete unused function.
14724
b21b22e0
PS
147252002-01-11 Petr Sorfa <petrs@caldera.com>
14726
14727 * MAINTAINERS (write-after-approval): Add myself.
14728 * dwarf2read.c (read_tag_string_type): Handling of
14729 DW_AT_byte_size.
14730 (read_tag_string_type): FORTRAN fix to prevent propagation of
14731 first string size.
14732 (set_cu_language): Handling of DW_LANG_Fortran95
14733
747fe712
RE
147342002-01-11 Richard Earnshaw <rearnsha@arm.com>
14735
14736 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14737 GETPID(inferior_ptid).
14738 (store_inferior_registers): Likewise.
14739
f1bea926
JM
147402002-01-10 Jason Merrill <jason@redhat.com>
14741
14742 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14743 Fix DW_OP_minus.
14744
ae940673
AC
147452002-01-10 Andrew Cagney <ac131313@redhat.com>
14746
14747 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14748 and bfd/elf32-sh-nbsd.c.
14749
00546b04
MS
147502002-01-10 Michael Snyder <msnyder@redhat.com>
14751
352ed7b4
MS
14752 * NEWS: Mention --pid and corefile/proc-id behavior change.
14753
c18be923
MS
14754 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14755 * gcore.c: Include cli/cli-decode.h instead of command.h.
14756
00546b04
MS
14757 * main.c (captured_main): Add new command line option "--pid".
14758 If the second command line argument (following the symbol-file)
14759 begins with a digit, try to attach to it before trying to open
14760 it as a corefile.
14761 (print_gdb_help): Document the "--pid" argument.
14762
db60ec62
EZ
147632002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14764
14765 * completer.c (command_completer): New function.
14766
14767 * completer.h <command_completer>: Add prototype.
14768
14769 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14770 completer for the "help" command.
14771
39c22d1a
JM
147722002-01-09 Jason Merrill <jason@redhat.com>
14773
14774 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14775
c564377f
MS
147762002-01-09 Michael Snyder <msnyder@redhat.com>
14777
975aec09
MS
14778 * i386-linux-nat.c (fill_fpxregset): Make global.
14779 (store_fpxregset): Ditto.
14780
db4a10fa
MS
14781 * gregset.h (gdb_fpxregset_t): Define.
14782 (supply_fpxregset): Prototype.
14783 (fill_fpxregset): Prototype.
14784
c564377f
MS
14785 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14786
c3d45d70
RE
147872002-01-09 Richard Earnshaw <rearnsha@arm.com>
14788
14789 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14790 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14791 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14792
fcc87af1
AC
147932002-01-09 Andrew Cagney <ac131313@redhat.com>
14794
14795 * MAINTAINERS: Update target maintainer rules so that any
14796 Maintainer can approve a tested patch for a maintenance-only
14797 target.
14798
dd96c05b
RE
147992002-01-09 Richard Earnshaw <rearnsha@arm.com>
14800
d4297db9 14801 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14802
d4297db9 14803 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14804 IN_SIGTRAMP.
14805
145fdc6e
MS
148062002-01-08 Michael Snyder <msnyder@redhat.com>
14807
14808 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14809 real name of the executable, rather than the /proc name.
14810
be4d1333
MS
148112002-01-03 Michael Snyder <msnyder@redhat.com>
14812
14813 Implement a "generate-core-file" command in gdb, save target state.
14814 * gcore.c: New file. Implement new command 'generate-core-file'.
14815 Save a corefile image of the current state of the inferior.
14816 * linux-proc.c: Add linux-specific code for saving corefiles.
14817 * target.h (struct target_ops): Add new target vectors for saving
14818 corefiles; to_find_memory_regions and to_make_corefile_notes.
14819 (target_find_memory_regions): New macro.
14820 (target_make_corefile_notes): New macro.
14821 * target.c (update_current_target): Inherit new target methods.
14822 (dummy_find_memory_regions): New place-holder method.
14823 (dummy_make_corefile_notes): New place-holder method.
14824 (init_dummy_target): Initialize new dummy target vectors.
14825 * exec.c (exec_set_find_memory_regions): New function.
14826 Allow the exec_ops vector for memory regions to be taken over.
14827 (exec_make_note_section): New function, target vector method.
14828 * defs.h (exec_set_find_memory_regions): Export prototype.
14829 * procfs.c (proc_find_memory_regions): New function, corefile method.
14830 (procfs_make_note_section): New function, corefile method.
14831 (init_procfs_ops): Set new target vector pointers.
14832 (find_memory_regions_callback): New function.
14833 (procfs_do_thread_registers): New function.
14834 (procfs_corefile_thread_callback): New function.
14835 * sol-thread.c (sol_find_memory_regions): New function.
14836 (sol_make_note_section): New function.
14837 (init_sol_thread_ops): Initialize new target vectors.
14838 * inftarg.c (inftarg_set_find_memory_regions): New function.
14839 Allow to_find_memory_regions vector to be taken over.
14840 (inftarg_set_make_corefile_notes): New function.
14841 Allow to_make_corefile_notes vector to be taken over.
14842 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14843 interface layer if not target_has_execution (may be a corefile).
14844 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14845 * config/sparc/sun4sol2.mh: Ditto.
14846 * config/alpha/alpha-linux.mh: Ditto.
14847 * config/arm/linux.mh: Ditto.
14848 * config/i386/x86-64linux.mh: Ditto.
14849 * config/ia64/linux.mh: Ditto.
14850 * config/m68k/linux.mh: Ditto.
14851 * config/mips/linux.mh: Ditto.
14852 * config/powerpc/linux.mh: Ditto.
14853 * config/sparc/linux.mh: Ditto.
14854
c6b92abd
MS
148552002-01-07 Michael Snyder <msnyder@redhat.com>
14856
14857 * arm-linux-nat.c: Remove references to regcache.c internal data
14858 (registers[] and register_valid[]).
14859
4b09dc8c
MS
148602002-01-07 Michael Snyder <msnyder@redhat.com>
14861
abf22e64
AJ
14862 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14863 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14864 symbol file and shlibs.
14865 * Makefile.in: Add rule for linux-proc.o.
14866 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14867 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14868 * config/arm/linux.mh: Ditto.
14869 * config/i386/linux.mh: Ditto.
14870 * config/i386/x86-64linux.mh: Ditto.
14871 * config/ia64/linux.mh: Ditto.
14872 * config/m68k/linux.mh: Ditto.
14873 * config/mips/linux.mh: Ditto.
14874 * config/powerpc/linux.mh: Ditto.
14875 * config/sparc/linux.mh: Ditto.
14876
c25b74ac
PM
148772002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14878
14879 * win32-nat.c: Add i386-tdep.h dependency.
14880
94cd915f
MS
148812002-01-07 Michael Snyder <msnyder@redhat.com>
14882
c7cccb76
MS
14883 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14884 instead of bfd_get_arch_size. Don't bail out just because
14885 there's no exec_bfd.
abf22e64 14886
34c0bd93
MS
14887 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14888 * p-valprint.c (pascal_object_print_value): Ditto.
14889 * somread.c (som_symtab_read): Ditto.
14890 * symfile.c (simple_free_overlay_region_table): Ditto.
14891 * valops.c (value_assign): Ditto.
14892
21c1c920
MS
14893 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14894 use tilde_expand and strerror for opening save-tracepoints file.
14895
5bbd998e
MS
14896 * thread-db.c (thread_db_new_objfile): Indendation fix.
14897
94cd915f
MS
14898 * infptrace.c (GDB_MAX_ALLOCA): New define.
14899 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14900 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14901 can be overridden with whatever value is appropriate to the host).
14902 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14903 alloca to allocate potentially large buffer.
14904 * rs6000-nat.c (child_xfer_memory): Ditto.
14905 * symm-nat.c (child_xfer_memory): Ditto.
14906 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14907
494e8a93
JSC
149082002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14909
14910 From Nick Clifton <nickc@redhat.com>
14911 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14912
d0e1d48e
MS
149132002-01-07 Michael Snyder <msnyder@redhat.com>
14914
abf22e64 14915 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14916 Don't use exec_bfd if it's NULL.
14917
290b2c7a
MK
149182002-01-06 Mark Kettenis <kettenis@gnu.org>
14919
abf22e64 14920 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14921
aef21287
AC
149222002-01-06 Andrew Cagney <ac131313@redhat.com>
14923
14924 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14925 * gnu-nat.c: Ditto.
14926
30efa627
AC
149272002-01-06 Andrew Cagney <ac131313@redhat.com>
14928
14929 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14930 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14931 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14932 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14933 z8k-coff have not been multi-arched. Update z8k-coff build
14934 status.
14935
9b4ff276
AC
149362002-01-06 Andrew Cagney <ac131313@redhat.com>
14937
14938 * MAINTAINERS: Mark a29k target as obsolete.
14939 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14940 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14941 comments.
14942 * NEWS: Note that a29k targets are obsolete.
14943 * a29k-tdep.c: Mark as obsolete.
14944 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14945 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14946 a29k-*-vxworks* targets as obsolete.
14947 * remote-adapt.c: Obsolete.
14948 * remote-eb.c: Obsolete.
14949 * remote-mm.c: Obsolete.
14950 * remote-udi.c: Obsolete.
14951 * config/a29k/a29k-udi.mt: Obsolete.
14952 * config/a29k/a29k.mt: Obsolete.
14953 * config/a29k/tm-a29k.h: Obsolete.
14954 * config/a29k/tm-vx29k.h: Obsolete.
14955 * config/a29k/vx29k.mt: Obsolete.
14956
a9011d31
AC
149572002-01-05 Andrew Cagney <ac131313@redhat.com>
14958
14959 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14960 with BFD_ENDIAN_BIG.
14961
9299404e
AC
149622002-01-05 Andrew Cagney <ac131313@redhat.com>
14963
14964 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14965 * configure, config.in: Re-generate.
14966 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14967 * defs.h: Do not include <endian.h>.
14968
7e89e357
JT
149692002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14970
14971 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14972 * config.in: Regenerate.
14973 * configure.in: Update copyright years.
14974 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14975 * configure: Regenerate.
14976 * i386bsd-nat.c: Update copyright years.
14977 (fill_gregset): Use regcache_collect.
14978 (fetch_inferior_registers): Only fetch integer registers
14979 if requested to do so. Add support for XMM registers
14980 using PT_GETXMMREGS.
14981 (store_inferior_registers): Only store integer registers
14982 if requested to do so. Add support for XMM registers
14983 using PT_SETXMMREGS.
14984 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14985 (store_inferior_registers): Remove.
14986 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14987 (fetch_elfcore_registers): New function.
14988 (i386nbsd_elfcore_fns): New.
14989 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14990 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14991 i386bsd-nat.o.
14992 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14993 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14994 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14995 * config/i386/tm-nbsd.h: Update copyright years.
14996 (HAVE_SSE_REGS): Define.
14997 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14998 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14999 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15000 (SIGCONTEXT_PC_OFFSET): Remove.
15001 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15002
a752853e
AC
150032002-01-05 Andrew Cagney <ac131313@redhat.com>
15004
15005 * configure.tgt: Remove powerpc-*-macos* target.
15006 * config/m68k/xm-mpw.h: Delete file.
15007 * config/xm-mpw.h: Delete file.
15008 * ser-mac.c: Delete file.
15009 * mpw-make.sed: Delete file.
15010 * mpw-config.in: Delete file.
15011 * mac-xdep.c: Delete file.
15012 * mac-gdb.r: Delete file.
15013 * mac-defs.h: Delete file.
15014 * mac-nat.c: Delete file.
15015 * config/powerpc/macos.mh: Delete file.
15016 * config/powerpc/macos.mt: Delete file.
15017 * config/powerpc/nm-macos.h: Delete file.
15018 * config/powerpc/tm-macos.h: Delete file.
15019 * source.c (openp, open_source_file): Remove obsolete code.
15020 * top.c (gdb_readline): Ditto.
15021 * utils.c (query): Ditto.
15022 * event-top.c (display_gdb_prompt): Ditto.
15023 * Makefile.in (ser-mac.o): Delete obsolete target.
15024 * NEWS: Update.
15025
d7449b42
AC
150262002-01-04 Andrew Cagney <ac131313@redhat.com>
15027
15028 * defs.h (BIG_ENDIAN): Delete macro definition.
15029 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15030 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15031 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15032 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15033 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15034 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15035 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15036 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15037 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15038 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15039 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15040 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15041 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15042 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15043 * gdbarch.c: Re-generate.
15044
356374e8
DJ
150452002-01-04 Daniel Jacobowitz <drow@mvista.com>
15046
15047 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15048 for core files.
15049
a2b8f8f8
JT
150502002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15051
15052 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15053
12466af9
AC
150542002-01-04 Andrew Cagney <ac131313@redhat.com>
15055
15056 * value.h (value_ptr): Delete typedef.
15057
3549ab40
JT
150582002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15059
15060 * i386nbsd-nat.c: Update copyright years.
15061 Include i386-tdep.h.
15062
fedbd091
EZ
150632002-01-04 Elena Zannoni <ezannoni@redhat.com>
15064
15065 * stabsread.c: Update copyright years.
15066
15067 From Debashis Mahata <debashis.mahata@wipro.com>:
15068 (read_struct_fields): Deal with Sun C compiler erroneous stab
15069 output for structs and unions.
fec8b34f 15070 Fix PR gdb/269.
fedbd091 15071
eb43544b
DJ
150722002-01-04 Daniel Jacobowitz <drow@mvista.com>
15073
15074 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15075 prototype.
15076
1514d34e
DJ
150772002-01-04 Daniel Jacobowitz <drow@mvista.com>
15078
15079 * cp-abi.c: Fix whitespace.
15080 (baseclass_offset): New wrapper function.
15081 * cp-abi.h (baseclass_offset): Add prototype.
15082 (struct cp_abi_ops): Add baseclass_offset pointer.
15083
15084 * valops.c (vb_match): Move to...
15085 * gnu-v2-abi.c (vb_match): here.
15086 * valops.c (baseclass_offset): Move to...
15087 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15088
15089 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15090
15091 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15092 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15093 * hpacc-abi.c (init_hpacc_ops): Likewise.
15094
7f8c9282
DJ
150952002-01-04 Daniel Jacobowitz <drow@mvista.com>
15096
15097 * valops.c (find_overload_match): Accept obj as a
15098 reference parameter. Update it before returning.
15099 * value.h (find_overload_match): Update prototype.
15100 * eval.c (evaluate_subexp_standard): Pass object to
15101 find_overload_match by reference.
15102
f23631e4
AC
151032002-01-03 Andrew Cagney <ac131313@redhat.com>
15104
15105 * valarith.c: Replace value_ptr with struct value pointer. Remove
15106 register attribute from value declarations.
15107 * valops.c: Ditto.
15108 * value.h: Ditto.
15109 * scm-lang.c (scm_lookup_name): Ditto.
15110
79e10fab 151112002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 15112
79e10fab
AC
15113 Abstract the functionality of iterating over mapped memory
15114 regions into a general purpose iterator function.
abf22e64 15115 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
15116 iterator for memory sections.
15117 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15118 (solib_mappings_callback): New function, callback for above.
15119 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15120 (info_mappings_callback): New function, callback for above.
15121
15122 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15123
c5ad026a
MK
151242002-01-01 Mark Kettenis <kettenis@gnu.org>
15125
d2a7c97a
MK
15126 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15127 * i386-tdep.c: Include "elf-bfd.h".
15128 (process_note_abi_tag_sections): New function.
15129 (i386_gdbarch_init): Add code to recognize various OS/ABI
15130 combinations.
15131
c5ad026a
MK
15132 * maint.c (_initialize_maint_cmds): Add missing \ in
15133 string-literal.
15134
a1a5b71e 15135For older changes see ChangeLog-2001
c906108c
SS
15136\f
15137Local Variables:
15138mode: change-log
15139left-margin: 8
15140fill-column: 74
15141version-control: never
15142End:
This page took 1.315815 seconds and 4 git commands to generate.