a0fb3f37d4f8598cc3c8ab1723012709d2c9c238
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-03 Andrew Cagney <cagney@redhat.com>
2
3 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
4 * avr-tdep.c, cris-tdep.c: Ditto.
5 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7
8 2003-01-03 Mark Kettenis <kettenis@gnu.org>
9
10 * configure.in: Remove --enable-netrom option.
11 * configure: Regenerated.
12
13 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14
15 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
16 declaration for `struct re_pattern_buffer' instead.
17 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
18
19 2003-01-03 J. Brobecker <brobecker@gnat.com>
20
21 * mdebugread.c (parse_symbol): Count until the stEnd matching
22 the structure name.
23
24 2003-01-02 Mark Kettenis <kettenis@gnu.org>
25
26 * configure.in: Remove --with-cpu option.
27 subscripts. Remove evil changequotes here.
28 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
29 * config.in, configure: Regenerated.
30
31 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
32 * configure.in: Cleanup section that sources GDB and BFD configure
33 subscripts. Remove evil changequotes here.
34 * config.in, configure: Regenerated.
35
36 2003-01-02 Andrew Cagney <ac131313@redhat.com>
37
38 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
39 frame accessor methods.
40 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
41 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
42 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
43 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
44 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
45 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
46 * z8k-tdep.c: Ditto.
47
48 2003-01-02 Mark Kettenis <kettenis@gnu.org>
49
50 * configure.in: Remove UI_OUT configuration code.
51 * ada-lang.c: Update assuming UI_OUT is always true.
52 * Makefile.in (UIOUT_CFLAGS): Remove.
53 * configure: Regenerated.
54 * TODO: Remove blurb about elimination of -DUI_OUT.
55
56 * configure.in: Move code that provides the --enable-gdbcli,
57 --enable-gdbmi options right before the code that handles the
58 --enable-tui option. Polish a bit.
59 * configure: Regenerated.
60
61 * configure.in: Rewrite check for GNU regex and the
62 --without-included regex option, and move it into the "Checks for
63 library functions" section. This makes us use the system regex
64 again by default on systems with version 2 of the GNU C library.
65 This was apparently broken.
66 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
67 * acconfig.h (USE_INCLUDED_REGEX): Remove.
68 * config.in, configure: Regenerated.
69
70 * configure.in: Move code that provides the --enable-tui option
71 before the "Checks for libraries" section. Polish the code
72 somewhat and set need_curses to yes if we build the TUI. Rewrite
73 code that looks for a library providing termcap functionality to
74 match more closely what's done in the Readline library, and move
75 it into to the "Checks for libraries" section.
76 * configure: Regenerated.
77 * Makefile.in (TERMCAP): Remove variable.
78 * config/i386/go32.mh (TERMCAP): Remove variable.
79
80 2003-01-02 Andrew Cagney <ac131313@redhat.com>
81
82 * MAINTAINERS: Mention gdb_mbuild.sh.
83 * gdb_mbuild.sh: Rewrite.
84
85 2003-01-02 Mark Kettenis <kettenis@gnu.org>
86
87 * configure.in: Fix typo in last change.
88 * config.in, configure: Regenerated.
89
90 2003-01-02 Andrew Cagney <ac131313@redhat.com>
91
92 * valarith.c (value_binop): Delete obsolete code and comments.
93 * configure.host: Ditto.
94 * buildsym.h (make_blockvector): Ditto.
95 * buildsym.c (make_blockvector): Ditto.
96 * defs.h (enum language): Ditto.
97 (chill_demangle): Ditto.
98 * elfread.c (elf_symtab_read): Ditto.
99 * dwarfread.c (CHILL_PRODUCER): Ditto.
100 (set_cu_language): Ditto.
101 (handle_producer): Ditto.
102 * expprint.c (print_subexp): Ditto.
103 * gdbtypes.c (chill_varying_type): Ditto.
104 * gdbtypes.h (builtin_type_chill_bool): Ditto.
105 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
106 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
107 (chill_varying_type): Ditto.
108 * language.h (_LANG_chill): Ditto.
109 * language.c (binop_result_type, integral_type): Ditto.
110 (character_type, string_type, structured_type): Ditto.
111 (lang_bool_type, binop_type_check): Ditto.
112 * stabsread.h (os9k_stabs): Ditto.
113 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
114 (define_symbol, read_type, read_struct_fields): Ditto.
115 (read_array_type, read_enum_type, read_huge_number): Ditto.
116 (read_range_type, start_stabs): Ditto.
117 * symfile.c (init_filename_language_table): Ditto.
118 (add_psymbol_with_dem_name_to_list): Ditto.
119 * symtab.c (symbol_init_language_specific): Ditto.
120 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
121 * symtab.h (struct general_symbol_info): Ditto.
122 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
123 * typeprint.c (typedef_print): Ditto.
124 * utils.c (fprintf_symbol_filtered): Ditto.
125 * valops.c (value_cast, search_struct_field, value_slice): Delete
126 obsolete code.
127 (varying_to_slice): Delete function.
128 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
129 (varying_to_slice): Delete declaration.
130 * MAINTAINERS: Update.
131
132 2003-01-02 Mark Kettenis <kettenis@gnu.org>
133
134 * configure.in: Reorganize "Checks for library functions section"
135 a bit. Remove check for `btowc' and `isascii' functions.
136 * configure: Regenerated.
137
138 * acconfig.h (_MSE_INT_H): Remove.
139 * configure.in: Create "Checks for header files" section, and move
140 appropriate tests there. Don't check for objlist.h, wchar.h,
141 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
142 misdetection fix. Also add "Checks for types", "Checks for
143 compiler characteristics" and "Checks for library functions"
144 sections.
145 * config.in, configure: Regenerated.
146
147 * configure.in: Create "Checks for programs" section, and move
148 appropriate tests there.
149
150 2003-01-01 Mark Kettenis <kettenis@gnu.org>
151
152 * configure.in: Create "Checks for libraries" section, and move
153 appropriate tests there. Cleanup check for wctype in libw. Use
154 AC_SEARCH_LIBS to see whether we need libsocket.
155 * configure: Regenerated.
156
157 2002-12-31 Mark Kettenis <kettenis@gnu.org>
158
159 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
160 * config.in, configure: Regenerated.
161
162 2002-12-31 Mark Kettenis <kettenis@gnu.org>
163
164 * gdb_dirent.h: Cleanup and update code to match the example in
165 the Autoconf manual.
166 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
167 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
168 * configure: Regenerated.
169
170 2002-12-30 Adam Fedor <fedor@gnu.org>
171
172 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
173 (yylex): Initialize c to avoid uninitialized warning.
174
175 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
176
177 * doc/fdl.texi: Revert the last change.
178
179 2002-12-29 Mark Kettenis <kettenis@gnu.org>
180
181 * tracepoint.c (ISATTY): Removed.
182
183 2002-12-26 J. Brobecker <brobecker@gnat.com>
184
185 Continuing work to convert the hppa targets to multiarch partil.
186
187 * hppa-tdep.c: Add some missing forward declarations.
188 (frameless_function_invocation): Prefix the function name
189 by "hppa_" to avoid polluting the namespace. Update all calls
190 to use the new function name.
191 (saved_pc_after_call): Ditto.
192 (init_extra_frame_info): Ditto.
193 (frame_chain): Ditto.
194 (push_dummy_frame): Ditto.
195 (target_read_pc): Ditto.
196 (target_write_pc): Ditto.
197 (in_solib_call_trampoline): Ditto.
198 (in_solib_return_trampoline): Ditto.
199 (skip_trampoline_code): Ditto.
200 (hppa_read_fp): New function, renamed from target_read_fp.
201 (hppa_target_read_fp): New function, using hppa_read_fp.
202 This function conforms to the function profile for the
203 READ_FP gdbarch method.
204 (hppa_extract_struct_value_address): New function, extracted
205 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
206 macro.
207 (hppa_frame_num_args): New function.
208 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
209
210 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
211 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
212 for the switch to multiarch partial.
213 Update some of the macros definitions to match some changes
214 described above in the name of the function they are calling.
215 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
216 not be straightforward to convert. Do now wrap it inside
217 "#if !... #endif" to remember that this macro has still not
218 been taken care of.
219 (FIX_CALL_DUMMY): Likewise.
220
221 2002-12-26 J. Brobecker <brobecker@gnat.com>
222
223 Continuing work to convert the hppa targets to multiarch partial.
224
225 * hppa-tdep.c (hppa_register_raw_size): New function replacing
226 the body of macro REGISTER_RAW_SIZE.
227 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
228 config/pa/tm-hppah.h. These functions will be used to initialize
229 the gdbarch structure.
230 (hppa_hpux_pc_in_sigtramp): New function.
231 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
232 (hppa_hpux_frame_base_before_sigtramp): New function.
233 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
234 Add gdbcore.h #include.
235 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
236 of this gdbarch-eligible macro to a call to the new associated
237 function.
238 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
239 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
240 into a call to the new associated function.
241 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
242 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
243 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
244
245 2002-12-24 David Carlton <carlton@math.stanford.edu>
246
247 * config/sparc/tm-sparc.h: Delete duplicate definition of
248 DEPRECATED_PC_IN_CALL_DUMMY.
249
250 2002-12-24 Kevin Buettner <kevinb@redhat.com>
251
252 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
253 $(gdb_assert_h).
254 * configure.tgt: Recognize mips64*-*-linux*.
255 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
256 (supply_32_bit_reg): New function.
257 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
258 (fill_gregset): Use regcache_collect() instead of
259 deprecated_registers[].
260 (register_addr): Change name to mips_linux_register_addr().
261 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
262 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
263 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
264 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
265 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
266 (MIPS64_LINUX_JB_PC): New defines.
267 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
268 (mips64_elf_fpregset_t): New typedefs.
269 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
270 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
271 (mips64_linux_register_addr, set_mips_linux_register_addr)
272 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
273 (init_register_addr_data)
274 New functions.
275 (fetch_core_registers): Add support for core file formats with 64-bit
276 registers.
277 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
278 (register_addr_data): New static global variable.
279 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
280 gdbarch_register_osabi() for each MIPS machine.
281 * config/mips/linux64.mt: New file.
282 * config/mips/tm-linux64.h: New file.
283
284 2002-12-23 Adam Fedor <fedor@gnu.org>
285
286 * maint.c (maintenance_demangle): Add switch to demangle
287 ObjC language symbols as well.
288
289 2002-12-23 Adam Fedor <fedor@gnu.org>
290
291 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
292 last argument from complaint function call.
293
294 2002-12-23 Kevin Buettner <kevinb@redhat.com>
295
296 * exec.c (print_section_info): Add FIXME comments regarding format
297 string choices.
298
299 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
300
301 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
302 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
303
304 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
305
306 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
307
308 2002-12-23 David Carlton <carlton@math.stanford.edu>
309
310 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
311 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
312 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
313 information associated to a minsym, not lookup_symbol.
314
315 2002-12-21 Mark Kettenis <kettenis@gnu.org>
316
317 * x86-64-tdep.h (x86_64_init_abi): New prototype.
318 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
319 (x86_64_init_abi): Make non-static. Set number of pseudo
320 registers to 0.
321 (x86_64_gdbarch_init): Remove function.
322 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
323 Remove code dealing with dissambly.
324 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
325 (_initialize_x86_64_linux_tdep): New function.
326 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
327 i386-tdep.o.
328
329 2002-12-14 Mark Kettenis <kettenis@gnu.org>
330
331 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
332 (struct gdb_osabi_handler): Remove member `arch'. Add member
333 `arch_info'.
334 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
335 construct a `struct bfd_arch_info' and store it in the `struct
336 gdb_osabi_handler' that is created.
337 (gdbarch_init_osabi): Check for compatibility based on machine
338 type and architecture.
339 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
340 comment.
341 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
342 second argument in call to gdbarch_register_osabi.
343 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
344 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
345 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
346 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
347 * arm-tdep.c (_initialize_arm_tdep): Likewise.
348 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
349 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
350 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
351 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
352 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
353 * i386-tdep.c (_initialize_i386_tdep): Likewise.
354 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
355 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
356 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
357 _initialize_i386bsd_tdep and updated likewise.
358 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
359 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
360 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
361 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
362 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
363 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
364 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
365 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
366 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
367 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
368
369 2002-12-20 Kevin Buettner <kevinb@redhat.com>
370
371 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
372 DT_MIPS_RLD_MAP case for 64-bit targets.
373
374 2002-12-20 Kevin Buettner <kevinb@redhat.com>
375
376 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
377 ``temp_saved_regs'', not the pointer or other storage contiguous
378 to this pointer.
379
380 2002-12-20 Kevin Buettner <kevinb@redhat.com>
381
382 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
383 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
384 (mips_linux_get_longjmp_target): Delete declarations.
385 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
386 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
387 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
388 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
389 (mips_linux_get_longjmp_target)
390 (mips_linux_svr4_fetch_link_map_offsets): Make static.
391 (mips_linux_init_abi): New function.
392 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
393
394 2002-12-19 Keith Seitz <keiths@redhat.com>
395
396 patch committed by Elena Zannoni <ezannoni@redhat.com>
397 * thread.c (do_captured_list_thread_ids): Call prune_threads and
398 target_find_new_threads. Fix for PR mi/669.
399
400 2002-12-19 David Carlton <carlton@math.stanford.edu>
401
402 * linespec.c (decode_line_1): Move code into decode_all_digits.
403 (decode_all_digits): New function.
404
405 2002-12-19 Kevin Buettner <kevinb@redhat.com>
406
407 * exec.c (print_section_info): Select a format string to use with
408 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
409
410 2002-12-18 Andrew Cagney <ac131313@redhat.com>
411
412 * frame.c (deprecated_update_current_frame_pc_hack): Replace
413 deprecated_update_current_frame_pc_hack.
414 (deprecated_update_frame_base_hack): New function.
415 * frame.h (deprecated_update_frame_pc_hack): Replace
416 (deprecated_update_frame_base_hack): Declare.
417 * infrun.c (normal_stop): Update.
418
419 2002-12-18 Andrew Cagney <ac131313@redhat.com>
420
421 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
422 frame_extra_info_zalloc.
423 (rs6000_frame_args_address): Use get_frame_extra_info.
424 (frame_get_saved_regs): Use get_frame_saved_regs.
425 (frame_initial_stack_address): Use get_frame_saved_regs and
426 get_frame_extra_info.
427 (frame_initial_stack_address): Use get_frame_extra_info.
428
429 2002-12-17 Kevin Buettner <kevinb@redhat.com>
430
431 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
432 array size.
433 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
434 checks for r3900_regnames[].
435
436 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
437
438 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
439 All uses changed
440 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
441
442 2002-12-17 David Carlton <carlton@math.stanford.edu>
443
444 * symtab.c (lookup_partial_symbol): Don't search past the end of
445 the partial symbols.
446
447 2002-12-17 Andrew Cagney <ac131313@redhat.com>
448
449 * stack.c (frame_info): Use get_frame_saved_regs.
450 * breakpoint.c (until_break_command): Use get_frame_pc.
451
452 2002-12-16 Kevin Buettner <kevinb@redhat.com>
453
454 * buildsym.c (block_end_complaint, anon_block_end_complaint)
455 (innerblock_complaint, innerblock_anon_complaint)
456 (blockvector_complaint): Delete deprecated complaint structs.
457 (finish_block, make_blockvector, end_symtab): Replace calls
458 to complain() with calls to complaint().
459 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
460 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
461 (unexpected_type_complaint, bad_sclass_complaint)
462 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
463 Delete deprecated complaint structs.
464 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
465 Replace calls to complain() with calls to complaint().
466 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
467 (unknown_symtype_complaint, unknown_symchar_complaint)
468 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
469 (lbrac_mismatch_complaint, repeated_header_complaint)
470 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
471 Delete deprecated complaint structs.
472 (unknown_symtype_complaint, lbrac_mismatch_complaint)
473 (repeated_header_complaint)
474 (function_outside_compiliation_unit_complaint): New functions.
475 (add_old_header_file, find_corresponding_bincl_psymtab)
476 (set_namestring, find_stab_function_addr, read_dbx_symtab)
477 (process_one_symbol): Replace calls to complain() with, possibly
478 indirect, calls to complaint().
479 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
480 (unknown_attribute_form, unknown_attribute_length)
481 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
482 (const_ignored, botched_modified_type, op_deref2, op_deref4)
483 (basereg_not_handled, dup_user_type_allocation)
484 (dup_user_type_definition, missing_tag, bad_array_element_type)
485 (subscript_data_items, unhandled_array_subscript_format)
486 (unknown_array_subscript_format, not_row_major)
487 (missing_at_name): Delete deprecated complaint structs.
488 (bad_die_ref_complaint, unknown_attribute_form_complaint)
489 (dup_user_type_definition_complaint)
490 (bad_array_element_type_complaint): New functions.
491 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
492 (decode_subscript_data_item, dwarf_read_array_type)
493 (read_tag_string_type, read_subroutine_type, read_func_scope)
494 (locval, scan_partial_symbols, decode_modified_type)
495 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
496 (attribute_size): Replace calls to complain() with, possibly
497 indirect, calls to complaint().
498 * elfread.c (section_info_complaint, section_info_dup_complaint)
499 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
500 Delete deprecated complaint structs.
501 (elf_symtab_read, elfstab_offset_sections): Replace calls to
502 complain() with calls to complaint().
503 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
504 struct.
505 (stub_noname_complaint): New function.
506 (check_typedef, add_mangled_type): Replace calls to complain()
507 with calls to complaint().
508 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
509 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
510 (hpread_unhandled_type_complaint, hpread_struct_complaint)
511 (hpread_array_complaint, hpread_type_lookup_complaint)
512 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
513 (hpread_unhandled_common_complaint)
514 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
515 struct definitions and declarations.
516 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
517 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
518 Replace calls to complain() with, possibly indirect, calls to
519 complaint().
520 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
521 Likewise.
522 * mdebugread.c (bad_file_number_complaint, index_complaint)
523 (aux_index_complaint, block_index_complaint)
524 (unknown_ext_complaint, unknown_sym_complaint)
525 (unknown_st_complaint, block_overflow_complaint)
526 (basic_type_complaint, unknown_type_qual_complaint)
527 (array_index_type_complaint, bad_tag_guess_complaint)
528 (block_member_complaint, stEnd_complaint)
529 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
530 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
531 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
532 (bad_continued_complaint, bad_rfd_entry_complaint)
533 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
534 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
535 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
536 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
537 complaint structs.
538 (index_complaint, unknown_ext_complaint, basic_type_complaint)
539 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
540 (unexpected_type_code_complaint)
541 (function_outside_compilation_unit_complaint): New functions.
542 (parse_symbol, parse_type, upgrade_type, parse_procedure)
543 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
544 Replace calls to complain() with, possibly indirect calls to
545 complaint().
546 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
547 Delete deprecated complaint structs.
548 (lookup__objc_class, lookup_child_selector): Replace complain()
549 with complaint().
550 * remote-vx.c (cant_contact_target): Delete deprecated complaint
551 struct.
552 (vx_lookup_symbol): Replace complain() with complaint().
553 * stabsread.c (invalid_cpp_abbrev_complaint)
554 (invalid_cpp_type_complaint, member_fn_complaint)
555 (const_vol_complaint, error_type_complaint)
556 (invalid_member_complaint, range_type_base_complaint)
557 (reg_value_complaint, vtbl_notfound_complaint)
558 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
559 (unresolved_sym_chain_complaint, stabs_general_complaint)
560 (lrs_general_complaint, multiply_defined_struct): Delete
561 deprecated complaint structs.
562 (invalid_cpp_abbrev_complaint, ref_value_complaint)
563 (stabs_general_complaint, lrs_general_complaint)
564 (msg_unknown_complaint): New functions.
565 (dbx_lookup_type, read_cfront_baseclasses)
566 (read_cfront_member_functions, resolve_symbol_reference)
567 (define_symbol, resolve_live_range, add_live_range, read_type)
568 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
569 (read_one_struct_field, read_baseclasses, read_tilde_fields)
570 (read_cfront_static_fields, attach_fields_to_type)
571 (complain_about_struct_wipeout, read_range_type)
572 (common_block_start, common_block_end, cleanup_undefined_types)
573 (scan_file_globals): Replace complain() with complaint().
574 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
575 Delete deprecated complaint struct declarations.
576 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
577 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
578 (bf_not_found_complaint, ef_complaint, eb_complaint)
579 (function_outside_compilation_unit_complaint): New functions.
580 (record_include_begin, record_include_end, enter_line_range)
581 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
582 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
583 complain() with complaint().
584
585 2002-12-16 Andrew Cagney <ac131313@redhat.com>
586
587 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
588 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
589 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
590 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
591 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
592 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
593 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
594 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
595 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
596 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
597 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
598 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
599 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
600 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
601 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
602 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
603 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
604 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
605 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
606 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
607 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
608 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
609 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
610 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
611 * config/m88k/xm-dgux.h: Delete.
612 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
613 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
614 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
615 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
616 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
617 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
618 * ch-valprint.c: Delete.
619
620 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
621
622 * infrun.c (handle_inferior_event): Rearrange code to resume if
623 no catchpoint triggers for an event.
624
625 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
626
627 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
628 and TARGET_WAITKIND_VFORKED cases.
629
630 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
631
632 * infrun.c (handle_inferior_event): Assume that catchpoints
633 are not affected by DECR_PC_AFTER_BREAK.
634
635 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
636
637 * target.c (update_current_target): Don't inherit DONT_USE.
638 * target.h (struct target_ops): Remove DONT_USE.
639 (target_next): Remove macro.
640
641 2002-12-15 Mark Kettenis <kettenis@gnu.org>
642
643 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
644
645 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
646
647 * arm-tdep.c (convert_from_extended): New argument to hold the
648 type of floating point result we want to convert to. Make input
649 argument const. Fix all callers.
650 (convert_to_extended): Similarly.
651 (arm_extract_return_value): Now takes a regcache argument. Change
652 code to use regcache accessor functions. Correctly extract
653 smaller-than-word results on big-endian machines.
654 (arm_store_return_value): Now takes a regcache argument. Change
655 code to use regcache accessor functions. Correctly zero/sign extend
656 smaller than word results before storing into r0.
657 (arm_gdbarch_init): Register new-style extract_return_value and
658 store_return_value functions.
659
660 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
661
662 * thread-db.c (thread_from_lwp): Uniquify error msg.
663 (lwp_from_thread): Ditto.
664 (check_event): Ditto.
665 (find_new_threads_callback): Ditto.
666 (thread_db_pid_to_str): Ditto.
667
668 2002-12-13 Andrew Cagney <ac131313@redhat.com>
669
670 * frame.h (get_frame_saved_regs): Declare.
671 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
672 pointer.
673 * frame.c (get_frame_saved_regs): New function.
674 (frame_saved_regs_zalloc): Return the allocated saved_regs.
675
676 2002-12-13 Andrew Cagney <ac131313@redhat.com>
677
678 * frame.c (deprecated_update_current_frame_pc_hack): New
679 function.
680 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
681 * infrun.c (normal_stop): Use said function instead of directly
682 modifying the frame's PC.
683
684 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
685
686 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
687
688 2002-12-13 Kevin Buettner <kevinb@redhat.com>
689
690 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
691 config/mips/tm-irix6.h (NUM_REGS): Delete.
692 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
693 (temp_saved_regs): Declare as a pointer rather than an array.
694 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
695 that ``temp_saved_regs'' has storage allocated to it and that
696 it's the correct size.
697
698 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
699
700 * defs.h (init_last_source_visited): New prototype.
701 (add_path): Ditto.
702 * source.c (add_path): New function that adds to a specified path.
703 (mod_path): Change to call add_path.
704 (init_last_source_visited): New function to allow interfaces to
705 initialize static variable: last_source_visited. Part of fix
706 for PR gdb/741.
707 * Makefile.in: Add support for mi/mi-cmd-env.c.
708
709 2002-12-13 Andrew Cagney <ac131313@redhat.com>
710
711 * frame.h (frame_id_unwind): Declare.
712 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
713 id_unwind_cache.
714 (frame_id_unwind_ftype): Declare.
715 * frame.c (frame_id_unwind): New function.
716 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
717 (create_new_frame, get_prev_frame): Pass id_unwind to
718 set_unwind_by_pc.
719 (frame_saved_regs_id_unwind): New function.
720 (frame_saved_regs_id_unwind): New function.
721 * dummy-frame.c (dummy_frame_id_unwind): New function.
722 (struct dummy_frame): Add field id.
723 (generic_push_dummy_frame): Initialize `id'.
724 * dummy-frame.h (dummy_frame_id_unwind): Declare.
725
726 2002-12-13 Andrew Cagney <ac131313@redhat.com>
727
728 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
729 pass that to set_momentary_breakpoint. Move comments to where they
730 belong.
731 * frame.h (set_current_frame): Delete declaration.
732 * frame.c (set_current_frame): Delete function.
733
734 2002-12-13 Andrew Cagney <ac131313@redhat.com>
735
736 * frame.c (frame_extra_info_zalloc): New function.
737 * frame.h (frame_extra_info_zalloc): Declare.
738
739 2002-12-13 Joel Brobecker <brobecker@gnat.com>
740
741 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
742 in the previous prototype change to set_momentary_breakpoint.
743
744 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
745
746 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
747 and saw_child_exec.
748 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
749 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
750 (stop_stepping): Remove outdated check for child vfork events.
751
752 2002-12-12 Andrew Cagney <ac131313@redhat.com>
753
754 * GDB 5.3 released from gdb_5_3-branch.
755
756 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
757
758 * corelow.c (init_core_ops): Delete references to to_require_attach
759 and to_require_detach.
760 * exec.c (init_exec_ops): Likewise.
761 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
762 hppa_require_detach directly.
763 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
764 * inftarg.c (child_detach): Remove.
765 (child_detach_from_process): Rename to child_detach, remove
766 after_fork argument.
767 (child_attach): Remove.
768 (child_attach_to_process): Rename to child_attach, remove after_fork
769 argument.
770 (init_child_ops): Delete references to to_require_attach
771 and to_require_detach.
772 * infttrace.c (hppa_require_attach): Update comment.
773 * target.c (cleanup_target, update_current_target)
774 (init_dummy_target, setup_target_debug): Delete references to
775 to_require_attach and to_require_detach.
776 (find_default_require_detach, find_default_require_attach)
777 (debug_to_require_attach, debug_to_require_detach): Remove
778 functions.
779 * target.h (struct target_ops): Remove to_require_attach
780 and to_require_detach.
781 (target_require_attach, target_require_detach): Delete macros.
782 (find_default_require_detach, find_default_require_attach): Delete
783 prototypes.
784 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
785
786 2002-12-11 Andrew Cagney <ac131313@redhat.com>
787
788 * frame.c (get_frame_extra_info): New function.
789 * frame.h (get_frame_extra_info): Declare.
790
791 2002-12-11 Andrew Cagney <ac131313@redhat.com>
792
793 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
794 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
795 with `struct frame_id'.
796 (set_longjmp_resume_breakpoint): Ditto.
797 * infrun.c (handle_inferior_event): Update.
798 * breakpoint.c (watch_command_1, until_break_command): Update.
799 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
800 (handle_inferior_event, step_over_function): Update.
801 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
802 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
803 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
804 * infcmd.c (finish_command, run_stack_dummy): Update.
805
806 2002-12-11 Kevin Buettner <kevinb@redhat.com>
807
808 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
809 (dwarf2_non_const_array_bound_ignored)
810 (dwarf2_missing_line_number_section)
811 (dwarf2_statement_list_fits_in_line_number_section)
812 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
813 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
814 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
815 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
816 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
817 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
818 (dwarf2_missing_member_fn_type_complaint)
819 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
820 (dwarf2_const_value_length_mismatch)
821 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
822 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
823 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
824 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
825 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
826 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
827 complaints using deprecated struct..
828 (dwarf2_non_const_array_bound_ignored_complaint)
829 (dwarf2_complex_location_expr_complaint)
830 (dwarf2_unsupported_at_frame_base_complaint)
831 (dwarf2_const_value_length_mismatch_complaint)
832 (dwarf2_macros_too_long_complaint)
833 (dwarf2_macro_malformed_definition_complaint)
834 (dwarf2_invalid_attrib_class_complaint): New functions.
835 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
836 (read_structure_scope, read_array_type, read_common_block)
837 (read_tag_pointer_type, read_base_type, read_partial_die)
838 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
839 (new_symbol, dwarf2_const_value, read_type_die)
840 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
841 (parse_macro_definition, dwarf_decode_macros): Replace calls to
842 complain() with, possibly indirect, calls to complaint().
843
844 2002-12-11 Andrew Cagney <cagney@redhat.com>
845
846 * frame.c (deprecated_get_frame_saved_regs): Rename
847 get_frame_saved_regs.
848 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
849 * sparc-tdep.c: Update.
850 * hppa-tdep.c: Update.
851 * h8500-tdep.c: Update.
852
853 2002-12-11 Kevin Buettner <kevinb@redhat.com>
854
855 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
856 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
857 ``char *'' for return and parameter types.
858 * gdbarch.h, gdbarch.c: Regenerate.
859 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
860 return type from ``char *'' to ``const char *''.
861 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
862 const.
863
864 2002-12-11 Mark Kettenis <kettenis@gnu.org>
865
866 * i386-tdep.c: Include "dummy-frame.h".
867 (i386_frame_chain, i386_frame_saved_pc): Replace
868 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
869 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
870
871 2002-12-10 Andrew Cagney <cagney@redhat.com>
872
873 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
874 Change to a function with predicate.
875 * gdbarch.h, gdbarch.c: Re-generate.
876 * frame.c (get_prev_frame): Update. Test
877 DEPRECATED_INIT_FRAME_PC_P.
878 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
879 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
880 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
881 * alpha-tdep.c (alpha_gdbarch_init): Update.
882 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
883 * mips-tdep.c (mips_gdbarch_init): Update.
884 * i386-interix-tdep.c (i386_interix_init_abi): Update.
885 * arm-tdep.c: Update comments.
886 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
887 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
888 * frv-tdep.c (frv_gdbarch_init): Ditto.
889 * x86-64-tdep.c (x86_64_init_abi): Ditto.
890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
891 * s390-tdep.c (s390_gdbarch_init): Ditto.
892 * v850-tdep.c (v850_gdbarch_init): Ditto.
893 * vax-tdep.c (vax_gdbarch_init): Ditto.
894 * sh-tdep.c (sh_gdbarch_init): Ditto.
895 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
898 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
899 * i386-tdep.c (i386_gdbarch_init): Ditto.
900 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
901 * cris-tdep.c (cris_gdbarch_init): Ditto.
902 * avr-tdep.c (avr_gdbarch_init): Ditto.
903 * arm-tdep.c (arm_gdbarch_init): Ditto.
904 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
905 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
906
907 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
908
909 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
910 CHILD_FOLLOW_FORK.
911 * hppah-nat.c (saved_vfork_pid): Add.
912 (child_post_follow_vfork): Remove.
913 (child_follow_fork): New function.
914 (child_wait): Call detach_breakpoints after receiving the child vfork.
915 Call child_resume directly instead of going through resume ().
916 Make sure we have the exec before reporting the vfork.
917 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
918 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
919 (follow_fork): New function. Call target_follow_fork.
920 (follow_inferior_reset_breakpoints): New function broken out from
921 old follow_inferior_fork.
922 (resume): Remove hack to follow exec after vfork.
923 * inftarg.c (child_post_follow_vfork): Remove.
924 (child_follow_fork): New function.
925 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
926 * target.c (cleanup_target): Replace to_post_follow_vfork with
927 to_follow_fork.
928 (update_current_target): Likewise.
929 (setup_target_debug): Likewise.
930 (debug_to_post_follow_vfork): Remove.
931 (debug_to_follow_fork): New function.
932 * target.h (struct target_ops): Replace to_post_folow_vfork with
933 to_follow_fork.
934 (child_post_follow_vfork): Remove prototype.
935 (child_follow_fork): Add prototype.
936 (target_post_follow_vfork): Remove macro.
937 (target_follow_fork): Add macro.
938
939 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
940
941 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
942 (child_post_follow_vfork): Cancel pending exec event if we follow
943 the parent.
944 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
945 events have been processed. Return a fake TARGET_WAITKIND_EXECD
946 event at the following wait call if necessary.
947 * infrun.c (follow_vfork): Don't follow_exec here.
948 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
949 case about HP/UX 10.20. Remove code pushed down to
950 hppah-nat.c:child_wait.
951 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
952 vfork_in_flight is set.
953
954 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
955
956 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
957 for the parent's fork event.
958 * infrun.c (handle_inferior_event): Only expect one fork event.
959 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
960 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
961
962 2002-12-10 Andrew Cagney <ac131313@redhat.com>
963
964 * PROBLEMS: Delete reference to PR gdb/725.
965
966 * MAINTAINERS (gdb.c++): Add David Carlton.
967
968 2002-12-09 David Carlton <carlton@math.stanford.edu>
969
970 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
971 * cli/cli-cmds.c: Ditto.
972
973 2002-12-09 Andrew Cagney <cagney@redhat.com>
974
975 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
976 function address in <>.
977 * gdbarch.c: Re-generate.
978
979 2002-12-09 David Carlton <carlton@math.stanford.edu>
980
981 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
982
983 2002-12-09 David Carlton <carlton@math.stanford.edu>
984
985 * linespec.c (symtab_from_filename): New function.
986 (decode_line_1): Move code into symtab_from_filename.
987
988 2002-12-09 Kevin Buettner <kevinb@redhat.com>
989
990 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
991
992 2002-12-07 Andrew Cagney <ac131313@redhat.com>
993
994 * f-valprint.c (info_common_command): Use get_frame_pc.
995 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
996 * ax-gdb.c (agent_command): Ditto.
997 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
998 (rs6000_pop_frame): Ditto.
999 (rs6000_frameless_function_invocation): Ditto.
1000 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1001 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1002 * macroscope.c (default_macro_scope): Ditto.
1003 * stack.c (print_frame_info_base): Ditto.
1004 (print_frame, frame_info, print_frame_label_vars): Ditto.
1005 (return_command, func_command, get_frame_language): Ditto.
1006 * infcmd.c (finish_command): Ditto.
1007 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1008 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1009 (break_at_finish_at_depth_command_1): Ditto.
1010 (break_at_finish_command_1): Ditto.
1011 (until_break_command, get_catch_sals): Ditto.
1012 * blockframe.c (func_frame_chain_valid): Ditto.
1013 (frameless_look_for_prologue): Ditto.
1014 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1015
1016 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1017
1018 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1019 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1020
1021 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1022
1023 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1024 to pure functions.
1025 * gdbarch.h, gdbarch.c: Re-generate.
1026 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1027 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1028
1029 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1030 declaration to a function returning a CORE_ADDR.
1031 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1032 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1033 (init_frame_pc_default): Ditto.
1034 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1035 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1036 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1037 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1038 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1039 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1040
1041 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1042 to init_frame_pc_noop.
1043 (i386_interix_init_frame_pc): Delete function.
1044 * z8k-tdep.c (init_frame_pc): Delete function.
1045 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1046 (INIT_FRAME_PC_FIRST): Ditto.
1047 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1048 (INIT_FRAME_PC_FIRST): Ditto.
1049 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1050 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1051 init_frame_pc_noop.
1052 (INIT_FRAME_PC_FIRST): Convert to an expression.
1053 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1054
1055 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1056
1057 * blockframe.c: Use get_frame_base instead of directly accessing
1058 the `struct frame_info' member frame.
1059 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1060 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1061
1062 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1063
1064 * Makefile.in (readline_h): Define.
1065 (completer.o): Depend on readline_h.
1066 (corelow.o): Ditto.
1067 (event-top.o): Ditto.
1068 (exec.o): Ditto.
1069 (solib.o): Ditto.
1070 (source.o): Ditto.
1071 (symfile.o): Ditto.
1072 (symmisc.o): Ditto.
1073 (top.o): Ditto.
1074 (tracepoint.o): Ditto.
1075 (utils.o): Ditto.
1076 (cli-dump.o): Ditto.
1077 (tui-hooks.o): Ditto.
1078 (tuiWin.o): Ditto.
1079
1080 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1081
1082 More cleanup from import of readline 4.3.
1083 * completer.h (complete_line, readline_line_completion_function):
1084 Update prototypes.
1085 (line_completion_function): Removed, not used outside of completer.c.
1086 * completer.c (readline_line_completion_function,
1087 complete_function, line_completion_function): Use const for first
1088 parameter.
1089 (line_completion_function): Make static.
1090 (filename_completer): filename_completion_function is now called
1091 rl_filename_completion_function
1092 * corelow.c: Include <readline/readline.h>.
1093 * exec.c: Ditto.
1094 * solib.c: Ditto.
1095 * source.c: Ditto.
1096 * symfile.c: Ditto.
1097 * symmisc.c: Ditto.
1098 * top.c (init_main): No need to coerce
1099 readline_line_completion_function anymore.
1100 * cli/cli-dump.c: Include <readline/readline.h>.
1101
1102 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1103
1104 * stack.c (frame_info): Use get_prev_frame.
1105 * blockframe.c (frame_address_in_block): Ditto.
1106 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1107 (rs6000_frameless_function_invocation): Ditto.
1108 (rs6000_frame_saved_pc): Ditto.
1109 (rs6000_frame_chain): Ditto.
1110 * arch-utils.c (init_frame_pc_default): Ditto.
1111
1112 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1113
1114 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1115 Delete redundant definition.
1116
1117 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1118
1119 Import of readline 4.3:
1120 * cli/cli-cmds.c: Include readline/tilde.h.
1121 * cli/cli-setshow.c: Ditto.
1122 * defs.h: Don't declare tilde_expand anymore, since readline
1123 exports it.
1124
1125 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1126
1127 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1128 -Werror on this file.
1129
1130 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1131
1132 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1133 the format name.
1134 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1135 * gdbarch.c: Regenerate.
1136
1137 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1138
1139 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1140 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1141 provide a default value.
1142 * gdbarch.h, gdbarch.c: Regenerate.
1143 * frame.c (get_prev_frame): Update. Check
1144 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1145 * s390-tdep.c (s390_gdbarch_init): Update.
1146 * mips-tdep.c (mips_gdbarch_init): Update.
1147 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1148 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1149 * alpha-tdep.c (alpha_gdbarch_init): Update.
1150
1151 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1152
1153 * ia64-linux-nat.c: Include gdb_string.h.
1154 * alpha-nat.c: Ditto.
1155 * ppc-linux-nat.c: Ditto.
1156 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1157 Update dependencies.
1158
1159 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1160
1161 * gdbthread.h: Include "frame.h".
1162 (struct thread_info): Replace step_frame_address with
1163 step_frame_id.
1164 * inferior.h: Include "frame.h".
1165 (step_frame_id): Replace external variable step_frame_address.
1166 * gdbthread.h (save_infrun_state): Replace step_frame_address
1167 parameter with step_frame_id parameter.
1168 (load_infrun_state): Ditto.
1169 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1170 * infcmd.c (step_frame_id, step_1, step_once): Update.
1171 * thread.c (load_infrun_state, save_infrun_state): Update.
1172 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1173 (handle_inferior_event, step_over_function): Update.
1174 (normal_stop, context_switch, restore_inferior_status): Update.
1175 (struct inferior_status): Replace step_frame_address with
1176 step_frame_id.
1177
1178 2002-12-05 David Carlton <carlton@math.stanford.edu>
1179
1180 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1181 DW_TAG_member as well as a declaration as being a C++ static data
1182 member.
1183 (read_structure_scope): Combine tests for DW_TAG_member and
1184 DW_TAG_variable.
1185
1186 2002-12-05 David Carlton <carlton@math.stanford.edu>
1187
1188 * linespec.c (decode_compound): New function.
1189 (decode_line_1): Move code into decode_compound.
1190
1191 2002-12-05 David Carlton <carlton@math.stanford.edu>
1192
1193 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1194 argument.
1195 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1196 the static block. See PR gdb/804.
1197
1198 2002-12-05 David Carlton <carlton@math.stanford.edu>
1199
1200 * symtab.c (lookup_symbol_aux_block): New function.
1201 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1202
1203 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1204
1205 * gdbarch.sh: Dump the predicate function and macro values.
1206 (read): Print error on standard error.
1207 * gdbarch.c: Regenerate.
1208
1209 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1210
1211 * Makefile.in (mips_tdep_h): Define.
1212 (mips-tdep.o): Add mips_tdep_h to dependency list.
1213 * mips-tdep.h: New file.
1214 * mips-tdep.c (mips-tdep.h): Include.
1215 (enum mips_abi): Move to mips-tdep.h.
1216 (mips_abi): New function.
1217
1218 2002-12-04 David Carlton <carlton@math.stanford.edu>
1219
1220 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1221
1222 2002-12-04 David Carlton <carlton@math.stanford.edu>
1223
1224 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1225 function.
1226 (lookup_symbol_aux_minsyms): New function.
1227
1228 2002-12-04 J. Brobecker <brobecker@gnat.com>
1229
1230 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1231
1232 2002-12-04 J. Brobecker <brobecker@gnat.com>
1233
1234 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1235 which is an obsolete macro name.
1236
1237 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1240 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1241
1242 2002-12-03 H.J. Lu (hjl@gnu.org)
1243
1244 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1245 (create_breakpoints): Make sure the addr_string field is not
1246 NULL.
1247
1248 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1249
1250 * sparc-nat.c (fetch_inferior_registers)
1251 (store_inferior_registers): Add comment on problem of LWP vs
1252 threads.
1253
1254 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1255 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1256 (lin_lwp_store_registers): Remove.
1257 (init_lin_lwp_ops): Use fetch_inferior_registers
1258 and store_inferior_registers directly.
1259 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1260 (store_inferior_registers): Likewise.
1261 Fix PR gdb/725.
1262
1263 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1264
1265 * frame.h (get_frame_id): Convert to a function.
1266 (null_frame_id, frame_id_p): Declare.
1267 (frame_id_eq, frame_id_inner): Declare.
1268 (frame_id_build): New function.
1269 * frame.c (get_frame_id): Update. Use null_frame_id.
1270 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1271 frame_id_inner.
1272 (null_frame_id, frame_id_p): Define.
1273 (frame_id_eq, frame_id_inner): Define.
1274 (frame_id_build): New function.
1275 * varobj.c (varobj_create): Update.
1276 (varobj_update): Update.
1277 * valops.c (value_assign): Update.
1278 (new_root_variable): Update.
1279 * infrun.c (save_inferior_status): Update.
1280 * breakpoint.c (watch_command_1): Update.
1281
1282 2002-12-03 J. Brobecker <brobecker@gnat.com>
1283
1284 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1285 (SNAP2): Likewise.
1286
1287 2002-12-03 Andrew Cagney <cagney@redhat.com>
1288
1289 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1290 patch.
1291
1292 * PROBLEMS: Mention PR gdb/725.
1293
1294 2002-12-03 Andreas Schwab <schwab@suse.de>
1295
1296 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1297
1298 2002-12-02 Adam Fedor <fedor@gnu.org>
1299 Klee Dienes <kdienes@apple.com>
1300
1301 * objc-lang.c (objc_printstr): Add width arg to match
1302 printstr prototype.
1303 (compare_selectors): Add 'const' to arg types.
1304 (compare_classes): Likewise.
1305 (find_imps): Cast msym pointer to avoid compiler warning.
1306 (print_object_command): Validate the address before
1307 passing it to the print routine.
1308 (find_objc_msgcall_submethod): Change function argument to
1309 return an int.
1310 * objc-lang.h: Add 'extern' to all function declarations.
1311 (value_nsstring): Add declaration.
1312
1313 2002-12-02 J. Brobecker <brobecker@gnat.com>
1314
1315 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1316 Fixes a build failure on HP/UX.
1317
1318 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1319 failure on HP/UX.
1320 (hpread_has_name): Advance declaration to avoid a compilation warning.
1321 (pst_syms_count): Add missing variable type. By change, the compiler
1322 was defaulting to int, which seems a good choice. Fixes a compilation
1323 warning.
1324 (pst_syms_size): Likewise.
1325
1326 2002-12-02 J. Brobecker <brobecker@gnat.com>
1327
1328 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1329 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1330 later to set the proper gdbarch methods depending on the osabi.
1331 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1332
1333 2002-12-02 J. Brobecker <brobecker@gnat.com>
1334
1335 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1336 * osabi.c (gdb_osabi_name): Add strings images for the two new
1337 enum values.
1338 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1339
1340 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1341
1342 * MAINTAINERS (Java): Global maintainers are responible for Java.
1343 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1344 part Java maintainers.
1345
1346 2002-12-02 J. Brobecker <brobecker@gnat.com>
1347
1348 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1349 Fixes a compilation failure on AiX.
1350
1351 2002-12-02 J. Brobecker <brobecker@gnat.com>
1352
1353 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1354 why aix-thread.o is not listed.
1355
1356 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1357
1358 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1359 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1360 * gdbarch.h, gdbarch.c: Re-generate.
1361 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1362 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1363 * config/pa/tm-hppa.h, frame.h: Update.
1364 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1365 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1366 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1367 * cris-tdep.c, alpha-tdep.c: Update.
1368 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1369 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1370 (get_prev_frame): Ditto.
1371
1372 2002-11-30 Andrew Cagney <cagney@redhat.com>
1373
1374 * exec.c (xfer_memory): Replace boolean with int.
1375 * p-exp.y: Use 0 instead of false.
1376 * corelow.c (gdb_check_format): Change return type to int from
1377 boolean.
1378 * utils.c: Don't include <curses.h> or <term.h> first.
1379
1380 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1381
1382 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1383 (m68hc11_register_byte): Remove.
1384 (m68hc11_gdbarch_init): Don't set the above.
1385
1386 2002-11-29 Andrew Cagney <cagney@redhat.com>
1387
1388 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1389 by calling get_selected_frame.
1390 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1391 set_current_frame, create_new_frame, select_frame and
1392 get_current_frame.
1393 * remote-e7000.c (e7000_start_remote): Ditto.
1394 * remote-mips.c (common_open): Ditto
1395 * remote-rdp.c (remote_rdp_open): Ditto.
1396
1397 2002-11-29 Andreas Schwab <schwab@suse.de>
1398
1399 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1400 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1401 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1402 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1403 read_memory_unsigned_integer instead of read_memory_integer when
1404 dealing with addresses and instruction opcodes.
1405 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1406 (m68k_linux_frame_saved_pc): Likewise.
1407
1408 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1409
1410 * stack.c (selected_frame, select_frame): Move from here ...
1411 * frame.c (selected_frame, select_frame): ... to here. Include
1412 "language.h".
1413 * Makefile.in (frame.o): Update dependencies.
1414 * frame.c (get_selected_frame): New function.
1415 * frame.h (get_selected_frame): Declare.
1416 (deprecated_selected_frame): Rename selected_frame.
1417 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1418 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1419 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1420 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1421 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1422 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1423 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1424 * z8k-tdep.c, cli/cli-cmds.c: Update.
1425
1426 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1427
1428 * frame.h (get_selected_block): Add comments.
1429
1430 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1431
1432 * frame.c (pc_notcurrent): New function.
1433 (find_frame_sal): New function.
1434 * frame.h (find_frame_sal): Declare.
1435 (struct symtab_and_line): Add opaque declaration.
1436 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1437 find_pc_line.
1438 (frame_info): Ditto.
1439 * ada-lang.c (find_printable_frame): Ditto.
1440
1441 2002-11-28 J. Brobecker <brobecker@gnat.com>
1442
1443 * configure.in: Check that the pthdebug library is recent enough
1444 before enabling thread support on native AiX.
1445 * configure: Regenerate.
1446
1447 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1448 from the list of object files as it is now appended by configure
1449 if thread support is enabled.
1450 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1451 if thread support is enabled.
1452
1453 2002-11-28 Andrew Cagney <cagney@redhat.com>
1454
1455 * stack.c (get_selected_block): In-line get_current_block.
1456 * frame.h (get_current_block): Delete declaration.
1457 * blockframe.c (get_current_block): Delete function.
1458
1459 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1460
1461 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1462 USE_GENERIC_DUMMY_FRAMES.
1463 * gdbarch.h, gdbarch.c: Regenerate.
1464 * valops.c, frame.c: Update.
1465 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1466 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1467 * config/pa/tm-hppa.h, blockframe.c: Update.
1468 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1469 * m68k-tdep.c, alpha-tdep.c: Ditto.
1470
1471 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1472 * mips-tdep.c: Ditto.
1473
1474 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1475
1476 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1477 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1478 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1479 * gdbarch.c, gdbarch.h: Re-generate.
1480 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1481 (CALL_DUMMY_LOCATION): Delete macro definition.
1482 (PC_IN_CALL_DUMMY): Delete macro definitions.
1483
1484 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1485 default is already generic_pc_in_call_dummy.
1486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1487 * v850-tdep.c (v850_gdbarch_init): Ditto.
1488 * sh-tdep.c (sh_gdbarch_init): Ditto.
1489 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1490 * mips-tdep.c (mips_gdbarch_init): Ditto.
1491 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1493 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1495 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1496 * avr-tdep.c (avr_gdbarch_init): Ditto.
1497
1498 * arm-tdep.c (arm_gdbarch_init): Do not set
1499 use_generic_dummy_frames, default is already 1.
1500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1501 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1502 * v850-tdep.c (v850_gdbarch_init): Ditto.
1503 * sh-tdep.c (sh_gdbarch_init): Ditto.
1504 * s390-tdep.c (s390_gdbarch_init): Ditto.
1505 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1506 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1507 * mips-tdep.c (mips_gdbarch_init): Ditto.
1508 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1510 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1511 * i386-tdep.c (i386_gdbarch_init): Ditto.
1512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1513 * frv-tdep.c (frv_gdbarch_init): Ditto.
1514 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1515 * cris-tdep.c (cris_gdbarch_init): Ditto.
1516 * avr-tdep.c (avr_gdbarch_init): Ditto.
1517
1518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1519 call_dummy_location, default is already AT_ENTRY_POINT.
1520 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1521 * v850-tdep.c (v850_gdbarch_init): Ditto.
1522 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1523 * sh-tdep.c (sh_gdbarch_init): Ditto.
1524 * s390-tdep.c (s390_gdbarch_init): Ditto.
1525 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1526 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1527 * mips-tdep.c (mips_gdbarch_init): Ditto.
1528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1530 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1531 * i386-tdep.c (i386_gdbarch_init): Ditto.
1532 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1533 * frv-tdep.c (frv_gdbarch_init): Ditto.
1534 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1535 * cris-tdep.c (cris_gdbarch_init): Ditto.
1536 * avr-tdep.c (avr_gdbarch_init): Ditto.
1537 * arm-tdep.c (arm_gdbarch_init): Ditto.
1538 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1539
1540 2002-11-28 Andrew Cagney <cagney@redhat.com>
1541
1542 * frame.h: Update comments on set_current_frame, create_new_frame,
1543 flush_cached_frames, reinit_frame_cache, select_frame and
1544 selected_frame.
1545
1546 2002-11-27 Andrew Cagney <cagney@redhat.com>
1547
1548 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1549 deprecated pc_in_call_dummy function.
1550 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1551 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1552 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1553 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1554 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1555
1556 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1557
1558 * Makefile.in: Remove Tix dependencies.
1559 * acinclude.m4: Ditto.
1560 * aclocal.m4: Ditto.
1561 * configure.in: Ditto.
1562 * configure: Regenerated.
1563
1564 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1565
1566 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1567 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1568 * gdbarch.c: Re-generate.
1569
1570 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1571
1572 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1573 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1574 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1575 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1576 pc_in_call_dummy_at_entry_point.
1577 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1578 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1579 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1580 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1581 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1582 pc_in_call_dummy_on_stack.
1583 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1584 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1585 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1586 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1587 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1588
1589 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1590
1591 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1592 pc_in_call_dummy_before_text_end
1593 (deprecated_pc_in_call_dummy_after_text_end): Rename
1594 pc_in_call_dummy_after_text_end.
1595 (deprecated_pc_in_call_dummy_on_stack): Rename
1596 pc_in_call_dummy_on_stack.
1597 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1598 pc_in_call_dummy_at_entry_point.
1599 * m68k-tdep.c (m68k_gdbarch_init): Update.
1600 * s390-tdep.c (s390_gdbarch_init): Update.
1601 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1602 * vax-tdep.c (vax_gdbarch_init): Update.
1603 * sparc-tdep.c (sparc_gdbarch_init): Update.
1604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1606 * i386-tdep.c (i386_gdbarch_init): Update.
1607 * frv-tdep.c (frv_gdbarch_init): Update.
1608 * cris-tdep.c (cris_gdbarch_init): Update.
1609 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1610 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1611 (deprecated_pc_in_call_dummy_after_text_end)
1612 (deprecated_pc_in_call_dummy_on_stack)
1613 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1614 * alpha-tdep.c (alpha_gdbarch_init): Update.
1615
1616 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1617
1618 * acconfig.h (HAVE_PREAD64): Add.
1619 * configure.in: Check for pread64.
1620 * config.in: Regenerated.
1621 * configure: Regenerated.
1622 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1623 * linux-proc.c (linux_proc_xfer_memory): New function.
1624 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1625
1626 2002-11-25 David Carlton <carlton@math.stanford.edu>
1627
1628 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1629 pdi's with no name.
1630
1631 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1632
1633 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1634 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1635
1636 2002-11-25 Jim Blandy <jimb@redhat.com>
1637
1638 * symfile.c (init_objfile_sect_indices): New function.
1639 (default_symfile_offsets): Move the section-index-initializing
1640 stuff into init_objfile_sect_indices, and call that.
1641
1642 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1643 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1644
1645 * symfile.c (syms_from_objfile): Adjust indentation.
1646
1647 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1648 || info_verbose isn't true.
1649
1650 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1651
1652 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1653 default to get_frame_base.
1654 * gdbarch.h, gdbarch.c: Regenerate.
1655 * arch-utils.c (default_frame_address): Delete function.
1656 * arch-utils.h (default_frame_address): Delete declaration
1657
1658 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1659
1660 * varobj.c (find_frame_addr_in_frame_chain):
1661 Use get_frame_base instead of FRAME_FP,
1662 obvious fix.
1663
1664 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1665
1666 * frame.h (FRAME_FP): Delete macro.
1667 (get_frame_base): New function declaration.
1668 * frame.c (get_frame_base): New function.
1669 (get_frame_id): Use ->frame.
1670 (frame_find_by_id): Rewrite to use get_frame_id.
1671 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1672 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1673 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1674 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1675 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1676 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1677 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1678
1679 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1680
1681 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1682
1683 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1684
1685 * frame.c (set_unwind_by_pc): Revert change below, use
1686 PC_IN_CALL_DUMMY.
1687 (get_prev_frame): Ditto.
1688
1689 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1690
1691 * dummy-frame.c (pc_in_dummy_frame): New function.
1692 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1693 (find_dummy_frame): Update comment.
1694 (generic_pop_current_frame): Use get_frame_type.
1695 * dummy-frame.h (pc_in_dummy_frame): Declare.
1696 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1697 (create_new_frame): Use pc_in_dummy_frame.
1698 (get_prev_frame): Use pc_in_dummy_frame.
1699 (frame_saved_regs_register_unwind): Use get_prev_frame.
1700 (deprecated_generic_get_saved_register): Use get_prev_frame.
1701
1702 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1703
1704 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1705 from here ...
1706 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1707 (varobj_create): Note that frame ID should be used.
1708 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1709
1710 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1711
1712 * breakpoint.c: Include "gdb_assert.h".
1713 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1714 not being used.
1715 * Makefile.in (breakpoint.o): Update dependencies.
1716 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1717 deprecated_frame_in_dummy.
1718 * stack.c (print_frame_info_base): Ditto.
1719 (frame_info): Ditto.
1720 (print_frame_info_base): Ditto. Delete dead code.
1721
1722 2002-11-23 Andreas Schwab <schwab@suse.de>
1723
1724 * Makefile.in (m68k_tdep_h): Define.
1725 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1726 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1727 * m68k-tdep.c: Move register number enum ...
1728 * m68k-tdep.h: ... to this new file and rename the constants from
1729 E_* to M68K_*. All uses changed.
1730 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1731 * abug-rom.c: Include "m68k-tdep.h". Use
1732 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1733 * cpu32bug-rom.c: Likewise.
1734 * dbug-rom.c: Likewise.
1735 * m68k-tdep.c: Likewise.
1736 * m68klinux-nat.c: Likewise.
1737 * remote-est.c: Likewise.
1738 * rom68k-rom.c: Likewise.
1739 * config/m68k/tm-linux.h: Likewise.
1740
1741 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1742
1743 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1744 dummy frame initialization code.
1745 * mips-tdep.c (mips_gdbarch_init): Ditto.
1746
1747 2002-11-22 Christopher Faylor <cgf@redhat.com>
1748
1749 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1750 attach will hang.
1751
1752 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1753
1754 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1755 to default_frame_address.
1756 * gdbarch.h, gdbarch.c: Re-generate.
1757
1758 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1759 or frame_locals_address to default_frame_address.
1760 * m68k-tdep.c (m68k_gdbarch_init): Update.
1761 * i386-tdep.c (i386_gdbarch_init): Update.
1762 * frv-tdep.c (frv_gdbarch_init): Update.
1763 * sh-tdep.c (sh_gdbarch_init): Update.
1764 * v850-tdep.c (v850_gdbarch_init): Update.
1765 * sparc-tdep.c (sparc_gdbarch_init): Update.
1766 * mips-tdep.c (mips_gdbarch_init): Update.
1767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1768 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1769 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1770
1771 * cris-tdep.c (cris_frame_args_address): Delete function.
1772 (cris_frame_locals_address): Delete function.
1773 (cris_gdbarch_init): Do not set frame_args_address or
1774 frame_locals_address.
1775
1776 2002-11-22 Michael Snyder <msnyder@redhat.com>
1777
1778 * thread-db.c (thread_db_load): Tell the user what's going on
1779 if dlopen fails on libthread_db.
1780
1781 2002-11-23 Andreas Schwab <schwab@suse.de>
1782
1783 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1784 invariant return values.
1785
1786 2002-11-22 Andreas Schwab <schwab@suse.de>
1787
1788 * valops.c (value_slice): Move declaration of `offset' to avoid
1789 warning.
1790
1791 2002-11-22 Christopher Faylor <cgf@redhat.com>
1792
1793 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1794 (struct so_stuff): Add end_addr field.
1795 (register_loaded_dll): Calculate and store end address of loaded dll.
1796 (solib_address): New function.
1797 (child_solib_loaded_library_pathname): Pass carefully constructed
1798 section info to safe_symbol_file_add rather than ignoring it.
1799 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1800 DLL is loaded.
1801 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1802 (child_create_inferior): Fix a compiler warning.
1803 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1804 (solib_address): Declare new function.
1805
1806 2002-11-22 Andreas Schwab <schwab@suse.de>
1807
1808 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1809 and FPS registers.
1810
1811 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * maint.c (_initialize_maint_cmds): Fix typo. From
1814 Francesco Potorti` <pot@gnu.org>.
1815
1816 2002-11-21 Andrew Cagney <cagney@redhat.com>
1817
1818 * mips-tdep.c (mips_dump_tdep): Delete references to
1819 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1820 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1821 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1822 * printcmd.c (build_address_symbolic): Delete calls to
1823 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1824 (address_info): Ditto.
1825 Fix PR gdb/773.
1826
1827 2002-11-19 Klee Dienes <kdienes@apple.com>
1828 Adam Fedor <fedor@gnu.org>
1829
1830 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1831 the ability to explicitly specify the quote characters and word
1832 break characters; if NULL is specified for either, use the old
1833 behavior of using the characters used by the completer.
1834 (skip_chars): New function. Convenience wrapper around
1835 skip_quoted_chars to provide the original skip_chars behavior.
1836 * completer.h (skip_quoted_chars): Add prototype.
1837
1838 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1839
1840 Problems reported by Paul Eggert.
1841 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1842
1843 2002-11-19 Andreas Schwab <schwab@suse.de>
1844
1845 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1846 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1847 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1848 (m68k_linux_frame_saved_pc): Move to ...
1849 * m68klinux-tdep.c: ... here. New file.
1850 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1851 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1852
1853 2002-11-19 Adam Fedor <fedor@gnu.org>
1854
1855 * objc-exp.y: Revert to old skip_quoted usage.
1856
1857 2002-11-19 Adam Fedor <fedor@gnu.org>
1858
1859 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1860 (objc_lang_h): Define.
1861 (YYFILES): Add objc-exp.tab.c.
1862 (local-maintainer-clean): Remove objc-exp.tab.c.
1863 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1864
1865 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1866
1867 * p-exp.y (typecast rule): Add automatic dereference of
1868 pascal classes if needed.
1869 (THIS): Set current_type.
1870 Automatically dereference pascal classes.
1871 (typebase rule): Add ^typebase recognition.
1872
1873 2002-11-18 Adam Fedor <fedor@gnu.org>
1874
1875 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1876 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1877 (op_name): Handle OP_OBJC_SELF.
1878 * Makefile.in (expprint.o): Add additional depends.
1879
1880 2002-11-18 Adam Fedor <fedor@gnu.org>
1881
1882 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1883 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1884 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1885 * objc-exp.y: Likewise.
1886
1887 2002-11-18 Adam Fedor <fedor@gnu.org>
1888
1889 * gdb/parser-defs.h: (struct objc_class_str): New structure
1890 for parsing ObjC classes.
1891
1892 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1893
1894 * stack.c (frame_relative_level): Copy function from here ...
1895 * frame.c (frame_relative_level): ...to here.
1896
1897 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1898
1899 * frame.h (enum frame_type): Define.
1900 (get_frame_type): Declare.
1901 (struct frame_info): Add field `type'. Delete field
1902 signal_handler_caller.
1903 (deprecated_set_frame_signal_handler_caller): Declare.
1904 * frame.c (get_frame_type): New function.
1905 (deprecated_set_frame_type): New function.
1906 (create_new_frame): Set the frame's type.
1907 (get_prev_frame): Similar.
1908 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1909 * s390-tdep.c: Ditto.
1910 * m68klinux-nat.c: Ditto.
1911 * ns32k-tdep.c: Ditto.
1912 * x86-64-linux-tdep.c: Ditto.
1913 * vax-tdep.c: Ditto.
1914 * rs6000-tdep.c: Ditto.
1915 * ppc-linux-tdep.c: Ditto.
1916 * i386-interix-tdep.c: Ditto.
1917 * mips-tdep.c: Ditto.
1918 * m68k-tdep.c: Ditto.
1919 * hppa-tdep.c: Ditto.
1920 * ia64-tdep.c: Ditto.
1921 * cris-tdep.c: Ditto.
1922 * arm-tdep.c: Ditto.
1923 * alpha-tdep.c: Ditto.
1924 * i386-tdep.c: Ditto.
1925 * stack.c: Ditto.
1926 * ada-lang.c: Ditto.
1927 * blockframe.c: Update.
1928 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1929 deprecated_set_frame_type instead of signal_handler_caller.
1930 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1931 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1932 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1933
1934 2002-11-18 Klee Dienes <kdienes@apple.com>
1935
1936 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1937
1938 2002-11-18 Klee Dienes <kdienes@apple.com>
1939
1940 * buildsym.c (pop_context): Add comment.
1941
1942 2002-11-18 Klee Dienes <kdienes@apple.com>
1943
1944 * buildsym.h (pop_context): Convert to function, defined in
1945 buildsym.c.
1946 * buildsym.c: Include gdb_assert.h.
1947 (pop_context): Implement as C function. Add check for stack
1948 underflow.
1949 * dbxread.c (process_one_symbol): Complain and stop processing
1950 that symbol if we are already at the top of the context stack for
1951 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1952 when processing N_RBRAC.
1953
1954 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1957 define.
1958 (struct target_waitstatus): Add opaque definition.
1959 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1960 * exec.c (init_exec_ops): Likewise.
1961 * fork-child.c (clone_and_follow_inferior): Remove.
1962 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1963 * inferior.h (clone_and_follow_inferior): Remove prototype.
1964 * infrun.c (follow_fork_mode_both): Remove.
1965 (follow_fork_mode_kind_names): Remove commented out "both".
1966 (follow_inferior_fork): Remove follow_fork_mode_both support.
1967 * inftarg.c (child_clone_and_follow_inferior): Remove.
1968 (child_post_follow_inferior_by_clone): Remove.
1969 (init_child_ops): Don't set to_clone_and_follow_inferior
1970 or to_post_follow_inferior_by_clone.
1971 * target.c (default_clone_and_follow_inferior): Remove.
1972 (cleanup_target): Don't set to_clone_and_follow_inferior
1973 or to_post_follow_inferior_by_clone.
1974 (find_default_clone_and_follow_inferior): Remove.
1975 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1976 (debug_to_clone_and_follow_inferior): Remove.
1977 (debug_to_post_follow_inferior_by_clone): Remove.
1978 (setup_target_debug): Don't set to_clone_and_follow_inferior
1979 or to_post_follow_inferior_by_clone.
1980 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1981 and to_post_follow_inferior_by_clone.
1982 (child_clone_and_follow_inferior): Remove prototype.
1983 (child_post_follow_inferior_by_clone): Remove prototype.
1984 (target_clone_and_follow_inferior): Remove macro.
1985 (target_post_follow_inferior_by_clone): Remove macro.
1986 (find_default_clone_and_follow_inferior): Remove prototype.
1987
1988 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1991 inferior_has_vforked, and inferior_has_execd instead of
1992 target_has_forked, target_has_vforked, and target_has_execd.
1993 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1994 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1995 (CHILD_WAIT): Define.
1996 (child_wait): Add prototype.
1997 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1998 Add prototype.
1999 (hpux_has_vforked): Likewise, from child_has_vforked.
2000 (hpux_has_execd): Likewise, from child_has_execd.
2001 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2002 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2003 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2004 and hpux_has_syscall_event instead of the target hooks.
2005 * infrun.c (inferior_has_forked, inferior_has_vforked)
2006 (inferior_has_execd): New functions.
2007 * inftarg.c (not_same_real_pid): Remove.
2008 (child_wait): Remove references to not_same_real_pid,
2009 target_has_forked, target_has_vforked, target_has_execd,
2010 and target_has_syscall_event.
2011 (child_has_forked, child_has_vforked, child_has_execd)
2012 (child_has_syscall_event): Remove.
2013 (init_child_ops): Remove references to child_has_forked,
2014 child_has_vforked, child_has_execd, and child_has_syscall_event.
2015 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2016 (hpux_has_vforked): Likewise, from child_has_vforked.
2017 (hpux_has_execd): Likewise, from child_has_execd.
2018 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2019 * target.c (cleanup_target): Remove references to
2020 to_has_forked, to_has_vforked, to_has_execd, and
2021 to_has_syscall_event.
2022 (update_current_target): Likewise.
2023 (setup_target_debug): Likewise.
2024 (debug_to_has_forked): Remove.
2025 (debug_to_has_vforked): Remove.
2026 (debug_to_has_execd): Remove.
2027 (debug_to_has_syscall_event): Remove.
2028 * target.h (struct target_ops): Remove to_has_forked.
2029 to_has_vforked, to_has_execd, and to_has_syscall_event.
2030 (child_has_forked, child_has_vforked, child_has_execd)
2031 (child_has_syscall_event): Remove prototypes.
2032 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2033 prototypes.
2034 (target_has_forked, target_has_vforked, target_has_execd)
2035 (target_has_syscall_event): Remove macros.
2036
2037 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2038
2039 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2040 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2041 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2042 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2043 * target.c (cleanup_target): Remove reference to
2044 to_can_follow_vfork_prior_to_exec.
2045 (update_current_target): Likewise.
2046 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2047 (setup_target_debug): Remove reference to
2048 to_can_follow_vfork_prior_to_exec.
2049 * target.h (struct target_ops): Remove
2050 to_can_follow_vfork_prior_to_exec.
2051 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2052 (target_can_follow_vfork_prior_to_exec): Remove definition.
2053 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2054 define.
2055 * infrun.c (follow_vfork_when_exec): Remove.
2056 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2057 (follow_exec): Likewise.
2058 (handle_inferior_event): Likewise.
2059 (keep_going): Likewise.
2060
2061 2002-11-15 Andrew Cagney <cagney@redhat.com>
2062
2063 * frame.c (generic_unwind_get_saved_register): Make static.
2064 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2065 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2066 defaults to generic_unwind_get_saved_register.
2067 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2069 * frv-tdep.c (frv_gdbarch_init): Ditto.
2070 * i386-tdep.c (i386_gdbarch_init): Ditto.
2071 * s390-tdep.c (s390_gdbarch_init): Ditto.
2072 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2073 * v850-tdep.c (v850_gdbarch_init): Ditto.
2074 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2075 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2076 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2077
2078 2002-11-15 Andrew Cagney <cagney@redhat.com>
2079
2080 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2081 i386-tdep.c.
2082
2083 2002-11-15 Andrew Cagney <cagney@redhat.com>
2084
2085 * frame.h (sigtramp_saved_pc): Delete declaration.
2086 * blockframe.c (sigtramp_saved_pc): Delete function.
2087 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2088 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2089 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2090 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2091
2092 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2093
2094 * frame.c (frame_pc_unwind): New function.
2095 (frame_saved_regs_pc_unwind): New function.
2096 (frame_register_unwind): Pass unwind_cache instead of
2097 register_unwind_cache.
2098 (set_unwind_by_pc): Add unwind_pc parameter, set.
2099 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2100 (get_prev_frame): Ditto.
2101 * frame.h (frame_pc_unwind_ftype): Declare.
2102 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2103 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2104 (frame_pc_unwind): Declare.
2105 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2106 (struct dummy_frame): Add comment mentioning that values are for
2107 previous frame.
2108 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2109 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2110 (generic_file_frame_chain_valid): Ditto.
2111 * stack.c (frame_info): Ditto.
2112
2113 2002-11-15 David Carlton <carlton@math.stanford.edu>
2114
2115 * linespec.c (locate_first_half): New function.
2116 (decode_line_1): Move code into locate_first_half.
2117
2118 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2119
2120 * complaints.h: Add comment explaining how to eliminate a
2121 deprecated_complain call.
2122 * complaints.h: Fix spelling errors.
2123
2124 2002-11-15 David Carlton <carlton@math.stanford.edu>
2125
2126 * printcmd.c: Remove #include "disasm.h".
2127
2128 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2129
2130 * frame.h: Move the most relevant interface functions to the start
2131 of the file.
2132
2133 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2134
2135 * regcache.h (deprecated_registers): Rename registers.
2136 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2137 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2138 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2139 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2140 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2141 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2142 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2143 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2144 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2145 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2146 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2147 * v850ice.c: Update.
2148
2149 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2150
2151 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2152 NULL buffer.
2153
2154 2002-11-13 Andrew Cagney <cagney@redhat.com>
2155
2156 * regcache.h (deprecated_read_register_bytes): Rename
2157 read_register_bytes.
2158 (deprecated_write_register_bytes): Rename write_register_bytes.
2159 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2160 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2161 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2162 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2163 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2164 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2165 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2166 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2167 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2168 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2169 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2170 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2171 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2172 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2173
2174 2002-11-13 Jim Blandy <jimb@redhat.com>
2175
2176 * findvar.c (read_var_value): Doc fix.
2177
2178 2002-11-13 Andrew Cagney <cagney@redhat.com>
2179
2180 * regcache.c (struct regcache): Replace passthough_p with
2181 readonly_p.
2182 (regcache_xmalloc): Initialize readonly_p.
2183 (build_regcache): Initialize readonly_p.
2184 (regcache_save): New function.
2185 (regcache_restore): New function.
2186 (regcache_cpy): Re-implement using regcache_save and
2187 regcache_restore.
2188 (regcache_raw_read): Update.
2189 (regcache_cooked_read): When a read-only cache, checked for cached
2190 pseudo register values.
2191 (regcache_raw_write): Assert that the cache is not read-only.
2192 Remove code handling a non-passthrough cache.
2193 * regcache.h (regcache_save): Declare.
2194 (regcache_restore): Declare.
2195
2196 2002-11-13 Andrew Cagney <cagney@redhat.com>
2197
2198 * regcache.c (struct regcache_descr): Add fields
2199 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2200 (init_legacy_regcache_descr): Compute the size of a cooked
2201 register cache and then assign that to sizeof_raw_registers. Set
2202 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2203 (init_legacy_regcache_descr): Ditto.
2204
2205 2002-11-13 Andrew Cagney <cagney@redhat.com>
2206
2207 * regcache.c (register_buffer): Move to near start of file, update
2208 description.
2209 (regcache_raw_read): Use.
2210 (regcache_raw_write): Use.
2211 (struct regcache): Rename raw_registers to registers and
2212 raw_register_valid_p to register_valid_p.
2213 (regcache_xmalloc): Update.
2214 (regcache_xfree): Update.
2215 (register_buffer): Update.
2216 (regcache_cpy): Update.
2217 (regcache_cpy_no_passthrough): Update.
2218 (regcache_valid_p): Update.
2219 (deprecated_grub_regcache_for_registers): Update.
2220 (deprecated_grub_regcache_for_register_valid): Update.
2221 (set_register_cached): Update.
2222 (regcache_raw_write): Update.
2223
2224 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2225
2226 * p-exp.y (name_not_typename): Use copy_name to
2227 set current_type variable for fields of THIS.
2228
2229 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2230
2231 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2232 * monitor.c (init_base_monitor_ops): Likewise.
2233 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2234 * remote-array.c (init_array_ops): Likewise.
2235 * remote-e7000.c (init_e7000_ops): Likewise.
2236 * remote-es.c (init_es1800_ops): Likewise.
2237 (init_es1800_child_ops): Likewise.
2238 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2239 * remote-sim.c (init_gdbsim_ops): Likewise.
2240 * remote-st.c (init_st2000_ops): Likewise.
2241 * sol-thread.c (init_sol_core_ops): Likewise.
2242 (init_sol_thread_ops): Likewise.
2243 * v850ice.c (init_850ice_ops): Likewise.
2244 * win32-nat.c (init_child_ops): Likewise.
2245 * wince.c (init_child_ops): Likewise.
2246
2247 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2248
2249 * utils.c (gdb_realpath): Make rp a constant pointer.
2250
2251 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2252
2253 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2254 a constant buffer; cannonicalize_file_name(); realpath() with a
2255 pathconf() defined buffer, xstrdup().
2256
2257 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2258
2259 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2260 to hang2.C; hang3.c to hang3.C.
2261
2262 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2263
2264 * findvar.c (read_var_value): Reenable TLS code.
2265
2266 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2267 Jim Blandy <jimb@redhat.com>
2268
2269 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2270 * target.c (update_current_target): Add
2271 to_get_thread_local_address.
2272 * target.h (to_get_thread_local_address): Export.
2273 (target_get_thread_local_address): Define.
2274 (target_get_thread_local_address_p): Define.
2275 * thread-db.c: Include solib-svr4.h.
2276 (td_thr_tls_get_addr_p): Define.
2277 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2278 (thread_db_get_thread_local_address): New function.
2279 (init_thread_db_ops): Initialize to_get_thread_local_address.
2280 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2281 * configure: Regenerate.
2282 * config.in: Regenerate.
2283
2284 2002-11-11 David Carlton <carlton@math.stanford.edu>
2285
2286 * linespec.c (set_flags): New function.
2287 (decode_line_1): Move code into set_flags.
2288
2289 2002-11-11 David Carlton <carlton@math.stanford.edu>
2290
2291 * linespec.c (decode_line_1): Move chunks of code to separate
2292 functions.
2293 (initialize_defaults): New function.
2294 (decode_indirect): New function.
2295
2296 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2297
2298 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2299 instead of void_code_ptr.
2300 (sigtramp_saved_pc): Ditto.
2301
2302 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2303 i386_fp_regnum_p.
2304
2305 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * gdbtypes.h (struct main_type): Move artificial flag out of
2308 loc. New member of ``struct field'' named static_kind. Reduce
2309 overloaded meaning of bitsize.
2310 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2311 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2312 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2313
2314 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2315 new fields.
2316 (template_to_fixed_record_type, template_to_static_fixed_type)
2317 (to_record_with_fixed_variant_part): Likewise.
2318 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2319 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2320 * dwarfread.c (struct_type, enum_type): Likewise.
2321 * hpread.c (hpread_read_enum_type)
2322 (hpread_read_function_type, hpread_read_doc_function_type)
2323 (hpread_read_struct_type): Likewise.
2324 * mdebugread.c (parse_symbol): Likewise.
2325
2326 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2327
2328 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2329 * stack.c (print_frame_info_base): Update.
2330 (print_frame_info_base, frame_info): Update.
2331 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2332 (sparc_frame_saved_pc): Update.
2333 * ada-lang.c (find_printable_frame): Update.
2334 * breakpoint.c (deprecated_frame_in_dummy): Update.
2335
2336 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2337
2338 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2339 defined.
2340 (regmap): Extend to cover all registers.
2341 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2342 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2343 definitions.
2344 (fetch_register, sore_register): Simplify.
2345 (old_fetch_inferior_registers, old_store_inferior_registers):
2346 Remove functions.
2347 (cannot_fetch_register, cannot_store_register): Change
2348 implementation to use regmap array to decide which registers
2349 cannot be fetched/stored. This removes $orig_eax from the
2350 registers that cannot be fetched/stored.
2351 (fetch_inferior_registers): Call fetch_register directly instead
2352 of calling old_fetch_inferior_registers.
2353 (store_inferior_registers): Call store_register directly instead
2354 of calling old_store_inferior_registers.
2355 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2356 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2357 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2358
2359 2002-11-09 Klee Dienes <kdienes@apple.com>
2360
2361 * i387-tdep.c (i387_supply_register): When called with NULL as a
2362 buffer, mark the register as not provided (to mirror the behavior
2363 of supply_register).
2364 (i387_supply_fxsave): Ditto.
2365 (i387_supply_fsave): Ditto (inherits the behavior from
2366 i387_supply_register).
2367
2368 2002-11-09 Klee Dienes <kdienes@apple.com>
2369
2370 * blockframe.c (sigtramp_saved_pc): Use
2371 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2372 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2373 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2374
2375 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2376
2377 * frame.c (get_prev_frame): Test prev_p to identify a previously
2378 unwound frame. Initialize prev_p.
2379 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2380 comment.
2381
2382 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2383
2384 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2385 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2386 more comments. Zap dead code.
2387
2388 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2389
2390 * infcmd.c (print_vector_info, print_float_info): Move code that
2391 checks whether the target has any registers and whether there is a
2392 selected frame up, such that it is also used if a target provides
2393 multi-arch definitions of these functions.
2394
2395 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2396
2397 * Makefile.in (DESTDIR): Define.
2398 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2399 prefix.
2400
2401 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2402 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2403
2404 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2405
2406 * i386-linux-tdep.c: Include "reggroups.h".
2407 (i386_linux_register_reggroup_p): New function.
2408 (i386_linux_init_abi): Set register_reggroup_p to
2409 i386_linux_register_reggroup_p.
2410 * i386-tdep.h (i386_register_reggroup_p): Declare.
2411 * i386-tdep.c: Include "reggroups.h".
2412 (i386_init_reggroups): New function.
2413 (i386_add_reggroups): New function.
2414 (i386_register_reggroup_p): New function.
2415 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2416 (_initialize_i386_tdep): Call i386_init_reggroups.
2417 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2418 specific reggroups.
2419
2420 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2421
2422 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2423 request that's available in *BSD.
2424
2425 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2426
2427 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2428 FDOFF_REGNUM.
2429
2430 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2431
2432 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2433 * dummy-frame.c (find_dummy_frame): Rename
2434 generic_find_dummy_frame, make static. Return the dummy frame
2435 instead of the regcache.
2436 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2437 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2438 (dummy_frame_register_unwind): Rename
2439 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2440 * dummy-frame.h (dummy_frame_register_unwind): Rename
2441 generic_call_dummy_register_unwind.
2442
2443 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2444
2445 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2446 except the inclusion of "i386/tm-i386.h", to...
2447 * config/i386/nm-i386v42mp.h: ...here.
2448 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2449
2450 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2451
2452 * Makefile.in (frame.o): Update dependencies.
2453 * blockframe.c (current_frame, frame_obstack_alloc)
2454 (frame_saved_regs_zalloc, get_current_frame)
2455 (set_current_frame, create_new_frame)
2456 (set_unwind_by_pc, get_next_frame)
2457 (flush_cached_frames, reinit_frame_cache)
2458 (frame_saved_regs_register_unwind)
2459 (deprecated_generic_get_saved_register)
2460 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2461 (_initialize_blockframe): Move frame code from here...
2462 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2463 "annotate.h" and "dummy-frame.h".
2464 (_initialize_frame): New function.
2465
2466 2002-11-08 Jim Blandy <jimb@redhat.com>
2467
2468 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2469 when we finish a function a context.
2470 * buildsym.h (outermost_context_p): New macro.
2471 (Bug analyzed by David Edelsohn.)
2472
2473 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2474
2475 * blockframe.c: Include "dummy-frame.h".
2476 (struct dummy_frame, dummy_frame_stack)
2477 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2478 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2479 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2480 (generic_save_call_dummy_addr, generic_pop_current_frame)
2481 (generic_pop_dummy_frame, generic_fix_call_dummy)
2482 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2483 dummy frame code from here...
2484 * dummy-frame.c: ...to here. New file.
2485 * dummy-frame.h: New file.
2486 (generic_call_dummy_register_unwind): Declare.
2487 (generic_find_dummy_frame): Declare.
2488 * Makefile.in (SFILES): Add dummy-frame.c.
2489 (dummy-frame.o): Specify dependencies.
2490 (dummy_frame_h): Define.
2491 (COMMON_OBS): Add dummy-frame.o.
2492 (blockframe.o): Update dependencies.
2493
2494 2002-11-08 Jim Blandy <jimb@redhat.com>
2495
2496 * dwarf2read.c (read_func_scope): Restore local_symbols and
2497 param_symbols after we finish the function context. (Based on a
2498 patch from David Edelsohn.)
2499
2500 2002-11-08 David Carlton <carlton@math.stanford.edu>
2501
2502 * linespec.c (symbol_found): New function.
2503 (minsym_found): New function.
2504 (decode_line_1): Separate out some code into separate functions.
2505
2506 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2507
2508 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2509 the benefit of the interix target.
2510 * i386-tdep.h (i386_frameless_signal_p): Declare.
2511
2512 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2513
2514 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2515 declaration that snuck in from change below.
2516
2517 2002-11-06 Andrew Cagney <cagney@redhat.com>
2518
2519 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2520 all callers.
2521 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2522 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2523 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2524 (i386_mxcsr_regnum_p): new function. Use instead of
2525 MXCSR_REGNUM_P.
2526 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2527 (i386_sse_regnum_p): Declare.
2528 (i386_mxcsr_regnum_p): Declare.
2529 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2530 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2531 (IS_FP_REGNUM): Update definition.
2532 (IS_FPU_CTRL_REGNUM): Update definition..
2533 (IS_SSE_REGNUM): Update definition..
2534 * i386v-nat.c (register_u_addr): Update.
2535 * go32-nat.c (fetch_register): Update.
2536 (store_register): Update.
2537
2538 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2539
2540 Preparation work to convert the hppa targets to multiarch partial.
2541
2542 * hppa-tdep.c: Add new functions replacing macro bodies from
2543 config/pa/tm-hppa.h. These function will be used to initialize
2544 the gdbarch structure. Import some comments from tm-hppa.h,
2545 and place them where appropriate, to avoid loosing them when
2546 we cleanup this file.
2547 (hppa_reg_struct_has_addr): New function.
2548 (hppa_inner_than): New function.
2549 (hppa_stack_align): New function.
2550 (hppa_pc_requires_run_before_use): New function.
2551 (hppa_instruction_nullified): New function.
2552 (hppa_register_byte): New function.
2553 (hppa_register_virtual_type): New function.
2554 (hppa_store_struct_return): New function.
2555 (hppa_cannot_store_register): New function.
2556 (hppa_frame_args_address): New function.
2557 (hppa_frame_locals_address): New function.
2558 (hppa_smash_text_address): New function.
2559 (hppa_coerce_float_to_double): New function. Requires the inclusion
2560 of "language.h".
2561
2562 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2563
2564 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2565 gdbarch-eligible macro to a call to the new associated function
2566 created in hppa-tdep.c.
2567 (INNER_THAN): Likewise.
2568 (STACK_ALIGN): Likewise.
2569 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2570 (INSTRUCTION_NULLIFIED): Likewise.
2571 (REGISTER_BYTE): Likewise.
2572 (REGISTER_VIRTUAL_TYPE): Likewise.
2573 (STORE_STRUCT_RETURN): Likewise.
2574 (CANNOT_STORE_REGISTER): Likewise.
2575 (FRAME_ARGS_ADDRESS): Likewise.
2576 (FRAME_LOCALS_ADDRESS): Likewise.
2577 (SMASH_TEXT_ADDRESS): Likewise.
2578 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2579 (ABOUT_TO_RETURN): Delete, as no longer used.
2580
2581 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2582
2583 * printcmd.c (disassemble_command): Remove obsolete function.
2584 (_initialize_printcmd): Do not create disassemble command here.
2585 * cli/cli-cmds.c (disassemble_command): New function. Implements
2586 disassemble command.
2587 (init_cli_cmds): Create disassemble command here instead.
2588
2589 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2590
2591 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2592
2593 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2594
2595 * regcache.h (regcache_cooked_read_using_offset_hack)
2596 (regcache_cooked_write_using_offset_hack): Delete declarations.
2597 (register_changed): Delete declaration.
2598 * regcache.c (regcache_cooked_read_using_offset_hack)
2599 (regcache_cooked_write_using_offset_hack): Delete functions.
2600 (cooked_xfer_using_offset_hack): Delete function.
2601 (register_changed): Delete function.
2602
2603 2002-11-07 Jim Blandy <jimb@redhat.com>
2604
2605 * macroscope.c: #include "complaints.h".
2606 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2607 but not in the macro table.
2608 * Makefile.in (macroscope.o): Record dependency.
2609
2610 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2611
2612 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2613
2614 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2615
2616 * regcache.c (deprecated_registers_fetched): Update.
2617 * regcache.h (deprecated_registers_fetched): Rename
2618 registers_fetched.
2619 * remote-vxsparc.c (vx_read_register): Update.
2620 * remote-vxmips.c (vx_read_register): Update.
2621 * remote-vx68.c (vx_read_register): Update.
2622 * irix5-nat.c (fetch_core_registers): Update.
2623 * mipsm3-nat.c (fetch_inferior_registers): Update.
2624 * sun3-nat.c (fetch_inferior_registers): Update.
2625 * symm-nat.c (fetch_inferior_registers): Update.
2626 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2627 (fetch_core_registers): Update.
2628 (fetch_kcore_registers): Update.
2629 * mips-nat.c (fetch_inferior_registers): Update.
2630 * corelow.c (get_core_registers): Update.
2631 * a68v-nat.c (fetch_inferior_registers): Update.
2632
2633 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2634
2635 Put in place the framework necessary for multiarching the hppa targets.
2636 * hppa-tdep.c (hppa_gdbarch_init): New function.
2637 (hppa_dump_tdep): New function.
2638 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2639 tdep structure dumper.
2640 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2641 until the multi-arching conversion has partially been completed.
2642
2643 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2644
2645 * valops.c (value_assign): Merge lval_register case into
2646 lval_reg_frame_relative. Use frame_register and
2647 regcache_cooked_write instead of get_saved_register and
2648 write_register_bytes. After flushing the register cache, try to
2649 re-select the selected frame.
2650
2651 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2652
2653 * regcache.h (deprecated_register_valid): Rename register_valid.
2654 * regcache.c: Update.
2655 * ia64-aix-nat.c: Update.
2656 * i386gnu-nat.c: Update.
2657 * alpha-nat.c: Update.
2658 * sparc-nat.c: Update.
2659 * lynx-nat.c: Update.
2660 * remote-mips.c: Update.
2661
2662 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2663
2664 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2665 to end of file, to be more consistent with the pratice followed
2666 by other targets.
2667
2668 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2669
2670 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2671 (print_float_info): Print registers in float_reggroup.
2672 (print_vector_info): Print registers in vector_reggroup.
2673 (default_print_registers_info): When all, print registers in
2674 all_reggroup. Otherwize, print registers in general_reggroup.
2675 (registers_info): Rewrite. Add support for register groups.
2676 Eliminate a goto.
2677
2678 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2679
2680 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2681 ages.
2682 (symtab_symbol_info): Remove eons old ifdeffed out code.
2683 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2684 command.
2685
2686 2002-11-06 Theodore A. Roth <troth@openavr.org>
2687
2688 * c-exp.y: Add missing semi-colons.
2689 * f-exp.y: Add missing semi-colons.
2690 * m2-exp.y: Add missing semi-colons.
2691 * p-exp.y: Add missing semi-colons.
2692 Add empty action to start rule to avoid a type clash error when
2693 building with bison >= 1.50.
2694
2695 2002-11-06 Jim Blandy <jimb@redhat.com>
2696
2697 * macrotab.h (struct macro_source_file): Doc fix.
2698
2699 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2700
2701 * varobj.c (child_exists, cplus_number_of_children): Change
2702 STREQ macro references to strcmp.
2703 (cplus_name_of_child): Change code to handle the fact that
2704 fields are not necessarily contiguous with regards to their
2705 access control. This is a fix for PR gdb/792.
2706
2707 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2708
2709 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2710 * gdbarch.h, gdbarch.c: Regnerate.
2711 * frame.h (frame_register): Declare.
2712 * frame.c (frame_register): New function.
2713 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2714 GET_SAVED_REGISTER, otherwize call
2715 generic_unwind_get_saved_register.
2716 (frame_register_read): Use frame_register instead of
2717 get_saved_register.
2718
2719 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2720
2721 From Jim Ingham <jingham@apple.com>:
2722 * event-top.c (gdb_disable_readline): New function.
2723 (_initialize_event_loop): Move comment.
2724
2725 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * event-loop.c (start_event_loop): Add comment.
2728 Update copyright.
2729
2730 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2731
2732 * infcmd.c (default_print_registers_info): Do not call
2733 PRINT_REGISTER_HOOK.
2734
2735 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2736
2737 * sparc-tdep.c (sparc_print_register_hook): Make static.
2738 (sparc_print_registers_info): New function.
2739 (sparc_do_registers_info): New function.
2740 (sparclet_print_registers_info): New function.
2741 (sparclet_do_registers_info): New function.
2742 (do_sparc_print_registers_info): New function.
2743 (sparc_print_registers): New static function, clone of infcmd.c's
2744 default_print_registers_info.
2745 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2746 (sparclet_do_registers_info): Declare.
2747 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2748 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2749 Re-define.
2750 (sparc_do_registers_info): Declare.
2751 (PRINT_REGISTER_HOOK): Delete macro.
2752 (sparc_print_register_hook): Delete declaration.
2753
2754 2002-11-05 David Carlton <carlton@math.stanford.edu>
2755
2756 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2757 functions.
2758 (lookup_symbol_aux_local): New function.
2759 (lookup_symbol_aux_symtabs): New function.
2760 (lookup_symbol_aux_psymtabs): New function.
2761
2762 2002-11-05 David Carlton <carlton@math.stanford.edu>
2763
2764 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2765 previous values of 'objfile' and 'block'.
2766
2767 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2768
2769 * values.c (value_change_enclosing_type): Set
2770 enclosing_type field correctly also for the case where
2771 more memory needs to be allocated.
2772
2773 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2774
2775 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2776 of puts_filtered.
2777
2778 * i387-tdep.c (i387_print_float_info): Replace calls to
2779 register_read and deprecated_read_register_gen with calls to
2780 frame_register_read, and make the necessary adjustments to the
2781 surrounding code.
2782
2783 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2784
2785 * gdbarch.sh (register_reggroup_p): Allow default value.
2786 * gdbarch.h, gdbarch.c: Regenerate.
2787
2788 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2789
2790 * regcache.h: Add coment indicating replacements for deprecated
2791 functions.
2792
2793 2002-11-02 Andrew Cagney <cagney@redhat.com>
2794
2795 * reggroups.h, reggroups.c: New files.
2796 * regcache.c: Include "reggroups.h".
2797 (enum regcache_dump_what): Add `regcache_dump_groups'.
2798 (regcache_dump): Contract size of the "Type" column. When
2799 specified, dump the register's groups.
2800 (maintenance_print_register_groups): New function.
2801 (_initialize_regcache): Add command `maint print register-groups'.
2802 * Makefile.in (COMMON_OBS): Add reggroups.o
2803 (SFILES): Add reggroups.c.
2804 (reggroups_h): Define.
2805 (regcache.o, gdbarch.o): Update dependencies.
2806 (reggroups.o): Specify dependencies.
2807 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2808 Add opaque declaration for `struct reggroup' in generated .h file.
2809 Include "reggroups.h" in generated .c file.
2810 gdbarch.h, gdbarch.c: Re-generate.
2811
2812 2002-11-02 Andrew Cagney <cagney@redhat.com>
2813
2814 * regcache.h (deprecated_read_register_gen): Rename
2815 read_register_gen.
2816 (deprecated_write_register_gen): Rename write_register_gen.
2817 * i387-tdep.c: Update.
2818 * x86-64-linux-nat.c: Update
2819 * wince.c: Update.
2820 * thread-db.c: Update.
2821 * win32-nat.c: Update.
2822 * mips-tdep.c: Update.
2823 * d10v-tdep.c: Update.
2824 * cris-tdep.c: Update.
2825 * remote-sim.c: Update.
2826 * remote-rdi.c: Update.
2827 * remote-rdp.c: Update.
2828 * frame.c: Update.
2829 * target.c: Update.
2830 * blockframe.c: Update.
2831 * x86-64-tdep.c: Update.
2832 * xstormy16-tdep.c: Update.
2833 * sh-tdep.c: Update.
2834 * s390-tdep.c: Update.
2835 * rs6000-tdep.c: Update.
2836 * sparc-tdep.c: Update.
2837 * i386-tdep.c: Update.
2838 * dwarf2cfi.c: Update.
2839 * regcache.c: Update.
2840
2841 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2842
2843 New interix-specific files:
2844 * config/i386/nm-interix.h: New file.
2845 * config/i386/interix.mh: New file.
2846 * config/i386/interix.mt: New file.
2847 * i386-interix-nat.c: New file.
2848 * i386-interix-tdep.c: New file.
2849
2850 2002-11-01 Andrew Cagney <cagney@redhat.com>
2851
2852 * frame.h (deprecated_generic_get_saved_register): Rename
2853 generic_get_saved_register.
2854 * blockframe.c (deprecated_generic_get_saved_register): Update.
2855 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2856 (xstormy16_frame_saved_register): Update.
2857 * sh-tdep.c (sh_gdbarch_init): Update.
2858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2859 * ia64-tdep.c (ia64_get_saved_register): Update.
2860 * cris-tdep.c (cris_gdbarch_init): Update.
2861 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2862 * arm-tdep.c (arm_gdbarch_init): Update.
2863
2864 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2865
2866 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2867
2868 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2869
2870 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2871 trampolines in sigaction.
2872
2873 2002-10-31 Andrew Cagney <cagney@redhat.com>
2874
2875 * h8300-tdep.c: Include "gdb_assert.h".
2876 (h8300_print_register): Add gdbarch, file and frame parameters.
2877 Use frame_read_unsigned_register to read the register's value.
2878 Use fprintf_filtered to display output.
2879 (h8300_print_registers_info): Replace h8300_do_registers_info.
2880 (h8300_gdbarch_init): Set print_registers_info.
2881
2882 2002-10-31 Andrew Cagney <cagney@redhat.com>
2883
2884 * frame.c (frame_read_unsigned_register): New function.
2885 (frame_read_signed_register): New function.
2886 * frame.h (frame_read_unsigned_register): Declare.
2887 (frame_read_signed_register): Declare.
2888
2889 2002-10-31 Andrew Cagney <cagney@redhat.com>
2890
2891 * h8500-tdep.c (h8500_print_registers_info): New static function,
2892 clone of infcmd.c's default_print_registers_info.
2893 (h8500_do_registers_info): New funtion.
2894 (h8500_print_register_hook): Rename print_register_hook, make
2895 static.
2896
2897 * config/h8500/tm-h8500.h: Update copyright.
2898 (DEPRECATED_DO_REGISTERS_INFO): Define.
2899 (h8500_do_registers_info: Declare.
2900 (PRINT_REGISTER_HOOK): Delete macro.
2901 (print_register_hook): Delete function.
2902
2903 2002-10-31 Andrew Cagney <cagney@redhat.com>
2904
2905 * z8k-tdep.c (z8k_print_register_hook): Make static.
2906 (z8k_print_registers_info): New static function, clone of
2907 infcmd.c's default_print_registers_info.
2908 (z8k_do_registers_info): New function. Wrap
2909 z8k_print_registers_info.
2910 * config/z8k/tm-z8k.h: Update copyright.
2911 (PRINT_REGISTER_HOOK): Delete macro.
2912 (z8k_print_register_hook): Delete declaration.
2913 (DEPRECATED_DO_REGISTERS_INFO): Define.
2914 (z8k_do_registers_info): Declare.
2915
2916 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2917
2918 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2919 as this is already provided by value.h, and was actually causing
2920 a compilation error because of a conflict in parameter type
2921 declaration due to a missing const keyword.
2922 (low_text_segment_addres): Fix a compilation warning.
2923
2924 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2925
2926 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2927 registers without a name.
2928 (mips_linux_cannot_store_register): Don't store registers without
2929 a name.
2930
2931 2002-10-28 David Carlton <carlton@math.stanford.edu>
2932
2933 * symtab.c (find_addr_symbol): Delete. (It was already commented
2934 out.)
2935 * symtab.h: Delete prototype for find_addr_symbol.
2936
2937 2002-10-26 Andrew Cagney <cagney@redhat.com>
2938
2939 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2940 DO_REGISTERS_INFO.
2941 gdbarch.h, gdbarch.c: Re-generate.
2942 * infcmd.c (default_print_registers_info): Update reference.
2943 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2944 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2945 * sh-tdep.c (sh_gdbarch_init): Ditto.
2946 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2948
2949 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2950
2951 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2952 cfi_init_extra_frame_info.
2953 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2954 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2955
2956 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2957 target where necessary. Add more comments and remove the ones
2958 that don't provide any useful information.
2959
2960 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2961 deprecated_read_register_dummy with
2962 frame_unwind_unsigned_register.
2963
2964 * i386-tdep.c (i386_extract_struct_value_address): Use
2965 regcache_raw_read_unsigned instead of
2966 regcache_cooked_read_unsigned since we know that the register
2967 we're reading isn't a pseudo register. Rename variable 'val' into
2968 the more descriptive 'addr'.
2969
2970 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2971 (x86_64_push_return_address): Add comment.
2972 (x86_64_pop_frame): Make static.
2973 (examine_argument): Clarify comment.
2974 (x86_64_skip_prologue): Make prolog_expact variable static.
2975
2976 * dwarf2cfi.c: Fix some formatting problems.
2977 (context_cpy, read_encoded_pointer): Clarify comments.
2978
2979 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2980 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2981 i386 target back into x86_64_gdbarch_init. Add some comments and
2982 remove meaningless ones.
2983
2984 2002-10-25 Andrew Cagney <cagney@redhat.com>
2985
2986 * complaints.h (struct deprecated_complaint): Rename `struct
2987 complaint'.
2988 * complaints.c (complain): Update.
2989 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2990 incorrect comment indicating that "symfile.h" was being included
2991 for the `struct complaint' definition.
2992 * remote-vx.c: Update.
2993 * objc-lang.c: Update.
2994 * xcoffread.c: Update.
2995 * hpread.c: Update.
2996 * mdebugread.c: Update.
2997 * stabsread.c: Update.
2998 * dwarf2read.c: Update.
2999 * dwarfread.c: Update.
3000 * elfread.c: Update.
3001 * coffread.c: Update.
3002 * stabsread.h: Update.
3003 * dbxread.c: Update.
3004 * buildsym.c: Update.
3005 * gdbtypes.c: Update.
3006 * macrotab.c: Update.
3007
3008 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3009
3010 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3011 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3012 (x86_64_init_abi): ...new function.
3013
3014 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3015 * i386v-nat.c: Include "i386-tdep.h".
3016
3017 2002-10-25 Andrew Cagney <cagney@redhat.com>
3018
3019 * gdbtypes.c (address_space_name_to_int): Update.
3020 (address_space_int_to_name): Update.
3021 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3022 multi-arch predicate.
3023 (address_class_name_to_type_flags): Ditto.
3024 * gdbarch.h, gdbarch.c: Re-generate.
3025
3026 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3027
3028 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3029
3030 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3031
3032 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3033
3034 * symtab.h (INIT_SAL): Delete macro.
3035 (init_sal): Export.
3036 * symtab.c (init_sal): New function.
3037
3038 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3039 to init_sal function call.
3040 (find_sal_from_funcs_and_line): Ditto.
3041 (all_sals_for_line): Ditto.
3042 * breakpoint.c (create_internal_breakpoint): Ditto.
3043 (create_fork_vfork_event_catchpoint): Ditto.
3044 (create_exec_event_catchpoint): Ditto.
3045 (parse_breakpoint_sals): Ditto.
3046 (watch_command_1): Ditto.
3047 (handle_gnu_4_16_catch_command): Ditto.
3048 (clear_command): Ditto.
3049 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3050 * infcmd.c (run_stack_dummy): Ditto.
3051 * infrun.c (process_event_stop_test): Ditto.
3052 (check_sigtramp2): Ditto.
3053 (step_over_function): Ditto.
3054 * linespec.c (decode_line_2): Ditto.
3055 (decode_line_1): Ditto.
3056 * source.c (line_info): Ditto.
3057 * symtab.c (find_pc_sect_line): Ditto.
3058
3059 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3060
3061 * dwarf2cfi.c (struct context)
3062 (struct context_reg): Moved to dwarf2cfi.h
3063 (context_alloc, frame_state_alloc, context_cpy):
3064 Made extern instead of static, removed prototypes.
3065 * dwarf2cfi.h (struct context)
3066 (struct context_reg): New, moved from dwarf2cfi.c
3067 (context_alloc, frame_state_alloc, context_cpy):
3068 New prototypes.
3069 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3070 Changed from static to extern.
3071 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3072 (LINUX_SIGCONTEXT_FP_OFFSET)
3073 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3074 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3075 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3076 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3077 set_gdbarch_*() calls now use x86-64 specific functions
3078 instead of DWARF2 CFI ones.
3079 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3080 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3081 (x86_64_init_extra_frame_info): New prototypes.
3082
3083 2002-10-23 David Carlton <carlton@math.stanford.edu>
3084
3085 * linespec.c: #include "parser-defs.h".
3086 Delete prototype for find_template_name_end.
3087 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3088
3089 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3090
3091 * NEWS: add recent mi fixes.
3092 * varobj.c (struct varobj): Add new "updated" flag.
3093 (new_variable): Default "updated" flag to 0.
3094 (varobj_set_value): Set "updated" flag to 1 if value
3095 changes.
3096 (varobj_update): Check varobj "updated" flag before
3097 comparing old and refreshed values. Fix for
3098 PR gdb/702.
3099
3100 2002-10-23 David Carlton <carlton@math.stanford.edu>
3101
3102 * parse.c (parse_exp_1): Use BLOCK_START.
3103 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3104 SYMBOL_BLOCK_VALUE.
3105 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3106
3107 2002-10-23 David Carlton <carlton@math.stanford.edu>
3108
3109 * symtab.c: Delete cplusplus_hint.
3110 Delete prototype for find_template_name_end.
3111
3112 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3113
3114 * symtab.h: Update comment.
3115
3116 2002-10-23 Michael Snyder <msnyder@redhat.com>
3117
3118 * printcmd.c (address_info): Restore quotes in output.
3119 * valops.c (value_of_local): Restore quotes in error message.
3120
3121 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3122
3123 * symtab.c (symbol_demangled_name): New function.
3124 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3125 turning most of it into a function.
3126 (symbol_demangled_name): Export.
3127
3128 2002-10-23 Michael Snyder <msnyder@redhat.com>
3129
3130 * valops.c (value_of_local): Restore quotes in error message.
3131
3132 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3133
3134 * symtab.c (symbol_init_language_specific): New function.
3135 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3136 turning most of it into a function.
3137 (symbol_init_language_specific): Export.
3138
3139 2002-10-23 David Carlton <carlton@math.stanford.edu>
3140
3141 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3142 (dwarf_attr_name): Ditto.
3143 (dwarf_type_encoding_name): Ditto.
3144 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3145 (process_die): Handle DW_TAG_namespace,
3146 DW_TAG_imported_declaration, DW_TAG_imported_module.
3147 (read_namespace): New function.
3148
3149 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3150
3151 * configure.in: Define NEW_PROC_API on Interix too.
3152 * configure: Regenerate.
3153
3154 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3155
3156 * configure: Regenerate using the proper version of autoconf.
3157
3158 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3159
3160 * findvar.c (read_var_value): Temporarily disable TLS code, until
3161 complete TLS support is added.
3162
3163 2002-10-21 Jim Blandy <jimb@redhat.com>
3164 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3167 for thread local storage locations.
3168 (struct symbol): Add objfile field.
3169 (SYMBOL_OBJFILE): Define.
3170 * dwarf2read.c (is_thread_local): New static variable.
3171 (new_symbol): If variable is in thread local fill in address class
3172 and objfile appropriately.
3173 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3174 stack operation.
3175 * printcmd.c (address_info): Print the information for thread
3176 local storage variable.
3177 * findvar.c (read_var_value): In case of thread local variable,
3178 defer to the target vector code to compute address.
3179
3180 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3181
3182 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3183 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3184
3185 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3186
3187 * symtab.h (address_class): Rename
3188 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3189 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3190 * printcmd.c (address_info): Ditto.
3191 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3192
3193 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3194
3195 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3196 DBREG_DRX macro to acces debug registers.
3197
3198 * Makefile.in (i386obsd-tdep.o): New target.
3199
3200 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3201 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3202
3203 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3204 * config/i386/obsd.mt: New file.
3205 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3206 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3207 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3208 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3209 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3210 * i386obsd-tdep.c: New file.
3211
3212 2002-10-19 Adam Fedor <fedor@gnu.org>
3213
3214 * objc-exp.y (name_not_typename): Fix invalid comment.
3215
3216 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3217
3218 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3219 to allocate partial syms and macro byte caches.
3220
3221 2002-10-18 David Carlton <carlton@math.stanford.edu>
3222
3223 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3224
3225 2002-10-18 Adam Fedor <fedor@gnu.org>
3226
3227 * stabsread.c (find_name_end): New function.
3228 (define_symbol): Use it.
3229
3230 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3231
3232 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3233 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3234 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3235 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3236
3237 2002-10-17 David Carlton <carlton@math.stanford.edu>
3238
3239 * symfile.h: Add opaque declaration for struct obstack.
3240 Declare obsavestring to take a const char *.
3241 * symfile.c (obsavestring): Make first argument a const char *.
3242
3243 2002-10-16 Adam Fedor <fedor@gnu.org>
3244
3245 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3246 names when matching breakpoints in current file.
3247
3248 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3249
3250 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3251 (read_tag_pointer_type): Add address class support.
3252 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3253 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3254 New methods.
3255 * gdbarch.h, gdbarch.c: Regenerate.
3256 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3257 (make_type_with_address_space, recursive_type_dump): Add address
3258 class support.
3259 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3260 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3261 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3262
3263 2002-10-16 Klee Dienes <kdienes@apple.com>
3264
3265 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3266 to get the last character of a char[] buffer, not
3267 name[sizeof(vptr_name)-1].
3268
3269 2002-10-14 Adam Fedor <fedor@gnu.org>
3270
3271 * symtab.h: New objc_specific struct.
3272 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3273 (SYMBOL_DEMANGLED_NAME): Likewise.
3274
3275 2002-10-14 Adam Fedor <fedor@gnu.org>
3276
3277 * symfile.c (init_filename_language_table): Add ObjC file extension.
3278
3279 2002-10-14 Adam Fedor <fedor@gnu.org>
3280
3281 * utils.c (puts_filtered_tabular): New function.
3282 (fprintf_symbol_filtered): Get ObjC demangled name.
3283 * defs.h (puts_filtered_tabular): Declared.
3284
3285 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3286
3287 * c-lang.h (c_type_print_varspec_prefix): Delete.
3288 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3289 ``need_post_space'' parameter. Adjust all callers.
3290
3291 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3292
3293 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3294 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3295 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3296 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3297
3298 2002-10-13 Adam Fedor <fedor@gnu.org>
3299
3300 * source.c (print_source_lines): Update comments.
3301
3302 2002-10-13 Adam Fedor <fedor@gnu.org>
3303
3304 * valops.c (value_of_local): New function.
3305 (value_of_this): Use it.
3306 * value.h (value_of_local): Declared.
3307
3308 2002-10-13 Adam Fedor <fedor@gnu.org>
3309
3310 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3311 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3312
3313 2002-10-12 Adam Fedor <fedor@gnu.org>
3314
3315 * language.c (binop_result_type): Add language_objc to case.
3316 (integral_type): Likewise.
3317 (character_type): Likewise.
3318 (string_type): Likewise.
3319 (boolean_type): Likewise.
3320 (structured_type): Likewise.
3321 (binop_type_check): Likewise.
3322
3323 2002-10-11 Adam Fedor <fedor@gnu.org>
3324
3325 * printcmd.c (address_info): Print 'self' for ObjC.
3326
3327 2002-10-11 Adam Fedor <fedor@gnu.org>
3328
3329 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3330 OP_SELF.
3331
3332 2002-10-11 Adam Fedor <fedor@gnu.org>
3333
3334 * language.h (CAST_IS_CONVERSION): Add language_objc.
3335
3336 2002-10-11 Adam Fedor <fedor@gnu.org>
3337
3338 * defs.h (enum language): Add language_objc.
3339
3340 2002-10-11 Klee Dienes <kdienes@apple.com>
3341
3342 * corefile.c (read_memory_typed_address): New function.
3343 * gdbcore.h (read_memory_typed_address): Add prototype.
3344 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3345 to read a value destined for a CORE_ADDR, not read_memory_integer.
3346 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3347 (f77_get_dynamic_lowerbound): Ditto.
3348
3349 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3350
3351 * utils.c (string_to_core_addr): After turning string into
3352 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3353 which will do necessary sign-extension, etc.
3354
3355 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3356
3357 * c-exp.y (THIS): Delete token and grammar rule.
3358 (yylex): Don't return THIS.
3359 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3360 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3361 * demangle.c (cplus_markers): Update comment. Put '$'
3362 first. Remove CPLUS_MARKER.
3363 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3364 * jv-exp.y (THIS): Delete token and grammar rule.
3365 (yylex): Don't return THIS.
3366 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3367 * objc-exp.y (THIS): Delete token and grammar rule.
3368 (yylex): Don't return THIS.
3369 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3370 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3371 (read_member_functions): Likewise for opname.
3372 (read_tilde_fields): Use is_cplus_marker.
3373
3374 * defs.h (CPLUS_MARKER): Don't define.
3375 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3376 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3377 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3378 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3379 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3380
3381 * config/i386/tm-i386v4.h: Delete file.
3382 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3383 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3384 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3385 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3386 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3387 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3388 * config/i386/i386v4.mt (TM_FILE): Likewise.
3389 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3390
3391 2002-10-10 Marko Mlinar <markom@opencores.org>
3392
3393 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3394 accidentially not commited 2002-10-09
3395 * gdbarch.h, gdbarch.c: Re-generate.
3396
3397 2002-10-09 Marko Mlinar <markom@opencores.org>
3398
3399 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3400 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3401 * gdbarch.h, gdbarch.c: Re-generate.
3402
3403 2002-10-08 Petr Sorfa <petrs@caldera.com>
3404
3405 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3406
3407 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3408 so we can work on more than one compilation unit at a time. This
3409 helps prepare GDB to handle inter-CU die references.
3410 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3411 the code to be defined before struct comp_unit_head.
3412 (comp_unit_head): Added new members - offset, cu_head,
3413 begin_die, next and dwarf2_abbrevs.
3414 (dwarf2_abbrevs): Removed single static var; now member of
3415 struct comp_unit_head.
3416 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3417 members.
3418 (psymtab_to_symtab_1): Changed to work with the new
3419 struct comp_unit_head.
3420 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3421 constructs the dwarf2_abbrevs[] inside the cu_header.
3422 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3423 dwarf2_abbrev table to clean up.
3424 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3425 handling of dwarf2_abbrevs inside the cu_header.
3426 (read_partial_die): Now supports the call to the new
3427 dwarf2_lookup_abbrev.
3428 (read_full_die): Now supports the call to the new
3429 dwarf2_lookup_abbrev.
3430
3431 2002-10-06 Christopher Faylor <cgf@redhat.com>
3432
3433 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3434 insure that shell variables, such as "transformed_name" are propagated
3435 to later shell statements in rule.
3436
3437 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3438
3439 * config/i386/nm-i386sco.h: Add protection against
3440 multiple-inclusion. Include "i386/nm-i386v.h".
3441 (REGISTER_U_ADDR): Remove define.
3442 (i386_register_u_addr): Remove prototype.
3443
3444 2002-10-04 Michael Snyder <msnyder@redhat.com>
3445
3446 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3447 before treating it as a single-step event.
3448
3449 2002-10-03 Adam Fedor <fedor@gnu.org>
3450
3451 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3452 (objc_demangle): Remove assignment in if statements, Replace
3453 free with xfree.
3454 (add_msglist): Likewise.
3455 (end_msglist): Likewise.
3456 (complare_selectors): Likewise.
3457 (selectors_info): Likewise.
3458 (compare_classes): Likewise.
3459 (classes_info): Likewise.
3460 (print_object_command): Likewise.
3461 (find_objc_msgcall_submethod): Replace PTR with void *.
3462 * objc-lang.h: Remove check for __STDC__.
3463
3464 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3465
3466 * ui-out.h (ui_out_field_fmt_int): New prototype.
3467 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3468 of field width and alignment.
3469 * stack.c (print_frame_info_base): When printing frame level, use
3470 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3471 PR gdb/192
3472
3473 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3474
3475 * MAINTAINERS: Add self to Write After Approval list.
3476
3477 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3478
3479 * infcmd.c (interrupt_target_command_wrapper): Delete.
3480 (interrupt_target_command): Make non static.
3481 (nofp_registers_info): Make static.
3482 * stack.c (return_command_wrapper): Delete.
3483 (return_command): Make non static.
3484
3485 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3486
3487 * event-top.c (gdb_setup_readline): New function. Code moved from
3488 _initialize_event_loop().
3489 (_initialize_event_loop): Call gdb_setup_readline().
3490
3491 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3492
3493 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3494 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3495 * gdbarch.h, gdbarch.c: Re-generate.
3496
3497 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3498
3499 Fix PR gdb/778
3500 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3501 before recursing.
3502 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3503 of fill_in_vptr_fieldno.
3504
3505 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3506
3507 * inferior.h (registers_info, stepi_command, nexti_command,
3508 continue_command, interrupt_target_command): Export from infcmd.c.
3509 * frame.h (args_info, selected_frame_level_changed_hook,
3510 return_command): Export from stack.c.
3511 * v850ice.c (stepi_command, nexti_command, continue_command): use
3512 prototypes from inferior.h.
3513 * tracepoint.c (registers_info, args_info, locals_info): Use
3514 prototypes from frame.h and inferior.h.
3515 * Makefile.in (mi-main.o): Add dependency on frame.h.
3516
3517 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3518
3519 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3520 value in register 3 adjusted by ppc_gp0_regnum.
3521
3522 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3523
3524 2002-10-02 Marko Mlinar <markom@opencores.org>
3525
3526 * MAINTAINERS: Add myself to the Write After Approval list.
3527
3528 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3529
3530 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3531 of the section for the N64 ABI, fixed.
3532
3533 * config/mips/tm-irix6.h: Include solib.h.
3534
3535 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3536
3537 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3538 GNU operators.
3539
3540 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3541
3542 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3543 and that "mi0" syntax has been removed.
3544
3545 2002-09-30 David Carlton <carlton@math.stanford.edu>
3546
3547 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3548 * ppc-sysv-tdep.c: #include "gdb_string.h".
3549 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3550 pacify GCC.
3551
3552 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3553
3554 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3555 "vrsave"'s register number.
3556
3557 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3558
3559 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3560 use frame_unwind_signed_register to obtain the PC.
3561 (mips_frame_chain): Handle a generic dummy frame.
3562 (mips_init_extra_frame_info): When a generic dummy frame, don't
3563 re-compute the frame base.
3564 (mips_pop_frame): Handle generic dummy frames.
3565 (mips_gdbarch_init): When generic dummy frames, set
3566 use_generic_dummy_frames, push_dummy_frame to
3567 generic_push_dummy_frame, pc_in_call_dummy to
3568 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3569 generic_save_dummy_frame_tos.
3570
3571 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3572
3573 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3574 against TOP when TOP was explictly set.
3575 (generic_push_dummy_frame): Set TOP to zero.
3576
3577 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3578
3579 * event-loop.c (start_event_loop): Rename variable 'result' to
3580 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3581
3582 2002-09-30 Keith Seitz <keiths@redhat.com>
3583
3584 * gdb-events.sh (selected_thread_changed): New event.
3585 * gdb-events.c: Regenerated.
3586 * gdb-events.h: Regenerated.
3587
3588 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3589
3590 * MAINTAINERS: Add self to Write After Approval list.
3591
3592 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3593
3594 * disasm.c: New file.
3595 * disasm.h: New file.
3596 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3597 (compare_lines): Ditto.
3598 (dump_insns): Ditto.
3599 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3600 argument.
3601 (do_assembly_only): Ditto.
3602 (do_disassembly): Renamed to gdb_disassembly and moved to
3603 disasm.c. Sdded uiout argument.
3604 * Makefile.in: Add new files. Reorder SFILES list. Update
3605 dependencies. Include libgdb.a later in the insight executable.
3606
3607 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3608
3609 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3610 bfd/elf64-alpha-fbsd.c.
3611
3612 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3613
3614 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3615 i386gnu-tdep.c.
3616
3617 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3618
3619 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3620 __FUNCTION__.
3621 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3622 function name.
3623 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3624 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3625 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3626 (S_msg_sig_post_reply): Ditto.
3627
3628 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3629
3630 * sh-tdep.c (sh_use_struct_convention): Use definition according
3631 to ABI.
3632 (sh_push_arguments): Store in register with correct endianess.
3633 (sh_default_store_return_value): Ditto.
3634 (sh_gdbarch_init): Set sizeof long double to 8.
3635
3636 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3637
3638 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3639 Fix some whitespace problems.
3640
3641 2002-09-27 David Carlton <carlton@math.stanford.edu>
3642
3643 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3644 (mcore-tdep.o): Ditto.
3645 (ns32k-tdep.o): Ditto.
3646 (ns32knbsd-tdep.o): Ditto.
3647 (sh3-rom.o): Ditto.
3648 (vax-tdep.o): Ditto.
3649 * cris-tdep.c: #include "gdb_string.h"
3650 * mcore-tdep.c: Ditto.
3651 * ns32k-tdep.c: Ditto.
3652 * ns32knbsd-tdep.c: Ditto.
3653 * sh3-rom.c: Ditto.
3654 * vax-tdep.c: Ditto.
3655
3656 2002-09-27 David Carlton <carlton@math.stanford.edu>
3657
3658 * config/djgpp/fnchange.lst: Add entries for
3659 gdb/testsuite/gdb.c++/m-static files.
3660
3661 2002-09-27 Jim Wilson <wilson@redhat.com>
3662
3663 * MAINTAINERS: Add myself to the Write After Approval list.
3664
3665 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3666
3667 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3668
3669
3670 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3671
3672 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3673 frame.
3674
3675 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3676
3677 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3678 (rs6000_struct_return_address): Delete variable.
3679 (rs6000_store_struct_return): Update.
3680 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3681 deprecated_extract_struct_value_address.
3682 (rs6000_frame_align): New function.
3683 (rs6000_gdbarch_init): Set frame_align.
3684
3685 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3686
3687 From Grace Sainsbury <graces@redhat.com>:
3688 * Makefile.in (gdbtk-main.o): New target.
3689 (gdb.o): New target.
3690 (main_h): Define.
3691 (main.o): Update dependencies.
3692 (gdb$(EXEEXT)): Add gdb.o.
3693 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3694 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3695 (SUBDIR_GDBTK_CLEAN): Set.
3696 (install-gdbtk): Install the insight binary.
3697 (uninstall-gdbtk): New target.
3698 (all-gdbtk, clean-gdbtk): New rule.
3699 * top.c (use_windows): Default to zero.
3700 * main.c: Include "main.h".
3701 (main): Delete.
3702 (struct captured_main_args): Delete.
3703 (gdb_main): New function.
3704 * main.h: New file.
3705 * gdb.c: New File.
3706
3707 2002-09-25 Andrew Cagney <cagney@redhat.com>
3708
3709 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3710 (frame_map_regnum_to_name): New function.
3711 (frame_map_name_to_regnum): New function.
3712 * frame.h (frame_map_name_to_regnum): Declare.
3713 (frame_map_regnum_to_name): Declare.
3714 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3715 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3716 * parse.c: Do not include "builtin-regs.h".
3717 (target_map_name_to_register): Delete function.
3718 (write_dollar_variable): Use frame_map_name_to_regnum.
3719 * parser-defs.h (target_map_name_to_register): Delete declaration.
3720 * expprint.c: Include "frame.h".
3721 (print_subexp): Use frame_map_regnum_to_name.
3722 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3723 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3724
3725 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3726
3727 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3728 wasn't saved, and the next innermost frame is a dummy, return the
3729 dummy frame's link register.
3730
3731 2002-09-24 Jim Blandy <jimb@redhat.com>
3732
3733 Fix from Paul Breed:
3734 * main.c (captured_main): Add a `break' after the case for 'b'.
3735
3736 2002-09-24 Keith Seitz <keiths@redhat.com>
3737
3738 * varobj.c (c_type_of_child): Use get_target_type instead
3739 of TYPE_TARGET_TYPE.
3740
3741 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3742
3743 * source.c (get_current_or_default_source_symtab_and_line): Remove
3744 function.
3745 (set_default_source_symtab_and_line): New function. Attempts to
3746 determine a source file to list lines from if one is not currently
3747 defined.
3748 (get_current_source_symtab_and_line): Initialize sal.pc and
3749 sal.end fields.
3750 (set_current_source_symtab_and_line): Mark argument as const.
3751 * source.h: Update declarations and comments.
3752 * linespec.c (decode_line_1): Replace call to removed routine above.
3753 * stack.c (print_frame_info_base): Ditto.
3754 * cli/cli-cmds.c (edit_command): Ditto.
3755 (list_command): Ditto.
3756
3757 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3758
3759 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3760 sal.pc and sal.end fields.
3761 (get_current_or_default_source_symtab_and_line): Ditto.
3762 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3763 so we do not cause a new source symtab to be searched for (reverting an
3764 unintentional change from the 2002-09-20 patch).
3765 * scm-lang.c (scm_unpac): Ditto.
3766
3767 2002-09-21 Andrew Cagney <cagney@redhat.com>
3768
3769 * complaints.c (symfile_explanations): Remove new-line from
3770 ``isolated_message''.
3771 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3772 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3773
3774 2002-09-20 Nick Clifton <nickc@redhat.com>
3775
3776 * NEWS: Announce that V850EA ISA is no longer supported.
3777 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3778
3779 2002-09-20 David Carlton <carlton@math.stanford.edu>
3780
3781 * Makefile.in (c-lang.o): Correct dependencies.
3782 (utils.o): Gather dependencies.
3783 (charset.o): Move.
3784 * c-lang.c: #include "gdb_string.h"
3785
3786 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3787
3788 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3789 * cli/cli-cmds.c (list_command): New function. Implements the new
3790 cli edit command.
3791 (_init_cli_cmds): Add new command definition.
3792 * gdb.1: Document edit command.
3793 * doc/gdb.texinfo: Document edit command.
3794
3795 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3796
3797 * source.c: Make global variables current_source_symtab and
3798 current_source_line static.
3799 (list_command): Moved to cli/cli-cmds.c.
3800 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3801 (get_first_line_listed): New accessor function.
3802 (get_lines_to_list): New accessor function.
3803 (get_current_source_symtab_and_line): New function. Retrieves the
3804 position in the source code that we consider current.
3805 (get_current_or_default_source_symtab_and_line): New function.
3806 Like the above but attempts to determine a default position if one
3807 is not currently defined.
3808 (set_current_source_symtab_and_line): New function. Sets the source
3809 code position considered current and returns the previously set one.
3810 (clear_current_source_symtab_and_line): Reset stored information about
3811 a current source line.
3812 (_initialize_source): Remove registration for the "list" command and
3813 its alias.
3814 * source.h: Add declarations for the new functions above.
3815 * symtab.h: Remove declarations for the global variables mentioned
3816 above.
3817 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3818 obtain current source line.
3819 * linespec.c (decode_line_1): Ditto.
3820 * macroscope.c (default_macro_scope): Ditto.
3821 * scm-lang.c (scm_unpac): Ditto.
3822 * stack.c (print_frame_info_base): Ditto.
3823 * symfile.c (clear_symtab_users): Ditto.
3824 * symtab.c (decode_line_spec): Ditto.
3825 * cli/cli-cmds.c (list_command): Moved here from source.c.
3826 (ambiguous_line_spec): Moved here from source.c.
3827 (_init_cli_cmds): Add definition for "list" and its alias.
3828 * Makefile.in: Update dependencies.
3829
3830 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3831
3832 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3833 with what gcc thinks is correct.
3834
3835 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3836
3837 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3838 multiple register push instruction.
3839
3840 2002-09-19 Jim Blandy <jimb@redhat.com>
3841
3842 Add support for distinct host and target character sets.
3843 * charset.c, charset.h: New files.
3844 * c-exp.y: #include "charset.h".
3845 (yylex): Convert character and string literals to the target
3846 character set, before returning them as the semantic value of the
3847 token.
3848 * c-lang.c: #include "charset.h".
3849 (c_emit_char): Use charset-specific methods to recognize
3850 characters with backslash escape forms, to decide which characters
3851 to print literally and which to print using numeric escape
3852 sequences, and to convert target characters to host characters
3853 before printing.
3854 * utils.c: #include "charset.h".
3855 (no_control_char_error): New function.
3856 (parse_escape): Use charset-specific methods to recognize
3857 backslash escapes, parse `control character' notation, and convert
3858 characters from the host character set to the target character set.
3859 * configure.in: Set the default host character set.
3860 Check where to find iconv, and what its argument types might be.
3861 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3862 * Makefile.in (SFILES): List charset.c.
3863 (COMMON_OBS): List charset.o.
3864 (charset.o): New rule.
3865 (charset_h): New header dependency variable.
3866 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3867 (LIBICONV): New variable, set by configure.
3868 (CLIBS): Include $(LIBICONV) here.
3869 * aclocal.m4, config.in, configure: Regenerated.
3870
3871 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3872
3873 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3874 bison 1.35 warning.
3875
3876 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3877
3878 * gdb_mbuild.sh: New file.
3879
3880 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3881
3882 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3883
3884 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3885
3886 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3887 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3888 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3889 valops.c, value.h: Revert previous change.
3890
3891 2002-09-18 Michael Snyder <msnyder@redhat.com>
3892
3893 Preliminary support for Objective-C:
3894 * defs.h (language_objc): New enum value.
3895 (puts_filtered_tabular): Declaration only, exported from utils.c.
3896 (skip_quoted): Delete, declared in completer.h.
3897 * c-exp.y: Include completer.h.
3898 * p-exp.y: Ditto.
3899 * jv-exp.y: Ditto.
3900 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3901 New operator enum values.
3902 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3903 * language.c (binop_result_type): Handle language_objc case.
3904 (integral_type, character_type, string_type, boolean_type,
3905 structured_type, binop_type_check): Ditto.
3906 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3907 (struct objc_specific): Add to general_symbol_info.
3908 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3909 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3910 * parser-defs.h (struct objc_class_str): New struct type.
3911 (start_msglist, end_msglist, add_msglist): Declaration only,
3912 exported from objc-lang.c.
3913 * value.h (value_of_local, value_nsstring,
3914 call_function_by_hand_expecting_type): Exported from valops.c.
3915 * valops.c (find_function_addr): Export.
3916 (call_function_by_hand_expecting_type): New function.
3917 (value_of_local): New function.
3918 * symfile.c (init_filename_language_table): Add ".m" extension
3919 for Objective-C.
3920 * utils.c (puts_filtered_tabular): New function.
3921 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3922 (set/show demangle): Extend help-string to refer to ObjC.
3923 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3924 * stabsread.c (symbol_reference_defined): Objective-C symbols
3925 may contain colons: make allowances when scanning stabs strings
3926 for colons.
3927 (objc_find_colon): New function.
3928 * printcmd.c (address_info): If language == objc then print
3929 "self" instead of "this".
3930 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3931 OP_NSSTRING, and OP_SELF.
3932 (prefixify_subexp): Ditto.
3933 * source.c (print_source_lines): Mention objc in comment.
3934 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3935 method names.
3936
3937 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3938
3939 * complaints.h: Update copyright.
3940 (struct complaints): Declare.
3941 (struct complaint): Make `message' constant.
3942 (internal_complaint): Declare.
3943 (complaint): Declare.
3944 (complaint_root): Delete declaration.
3945 (symfile_complaints): Delete declaration.
3946 (struct complaints): Add opaque declaration.
3947 (clear_complaints): Add a complaints parameter.
3948 * complaints.c: Update copyright.
3949 (enum complaint_series): Define.
3950 (complaint_root): Delete.
3951 (struct complaints): Define.
3952 (complaint_sentinel, symfile_complaint_book): New variables.
3953 (symfile_explanations, symfile_complaints): New variables.
3954 New variables.
3955 (get_complaints): New function.
3956 (vcomplaint): New function.
3957 (complaint): New function.
3958 (internal_complaint): New function.
3959 (complain): Call vcomplain with symfile_complaint.
3960 (clear_complaints): Rewrite.
3961 (_initialize_complaints): Use add_setshow_command.
3962 * Makefile.in (complaints.o): Update dependencies.
3963 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3964 to call to clear_complaints.
3965 (new_symfile_objfile, reread_symbols): Ditto.
3966 (oldsyms_complaint): Delete.
3967 (empty_symtab_complaint, unknown_option_complaint): Delete.
3968 (free_named_symtabs): Use complaint instead of complain.
3969
3970 2002-09-18 Michael Snyder <msnyder@redhat.com>
3971
3972 Contributed by Apple Computer, Inc. Merged with current sources
3973 by Adam Fedor <fedor@doc.com> [cagney].
3974
3975 * objc-lang.c: First clean-up round: comments, indentation.
3976 * objc-lang.h: Ditto.
3977 * objc-lang.y: Ditto.
3978
3979 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3980
3981 * maint.c (maintenance_internal_error): Print the parameter as the
3982 error message.
3983 (maintenance_internal_warning): New function.
3984 (_initialize_maint_cmds): Add command `maint internal-warning'.
3985
3986 * defs.h (internal_warning, internal_vwarning): Declare.
3987 * utils.c (struct internal_problem): Define.
3988 (internal_vproblem): New function.
3989 (internal_warning): New function.
3990 (internal_vwarning): New function.
3991 (internal_warning_problem, internal_error_problem): New variables.
3992 (internal_verror): Just call internal_vproblem.
3993
3994 2002-09-18 Michael Snyder <msnyder@redhat.com>
3995
3996 * objc-lang.c: New file, support for Objective-C.
3997 Preliminary check-in, not yet integrated into gdb.
3998 * objc-lang.h: New file.
3999 * objc-exp.y: New file.
4000
4001 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4002
4003 * infrun.c (signal_stop_update): Convert definition to ISO C.
4004 (signal_print_update): Ditto.
4005 (signal_pass_update): Ditto.
4006 * inflow.c (terminal_save_ours): Ditto.
4007
4008 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4009 comments.
4010
4011 * config/djgpp/fnchange.lst: Handle name clashes between
4012 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4013 bfd/coff-tic80.c.
4014
4015 * i386-linux-tdep.h: Fix tipo.
4016
4017 2002-09-18 Adam Fedor <fedor@gnu.org>
4018
4019 * MAINTAINERS: Add myself to the Write After Approval list.
4020
4021 2002-09-18 Jim Blandy <jimb@redhat.com>
4022
4023 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4024 texthigh and textlow to reader-specific structs caused
4025 objfile_relocate to miss them. This is fixable, but the work that
4026 the change was supposed to prepare GDB for never got done anyway.
4027
4028 2002-09-18 David Carlton <carlton@math.stanford.edu>
4029
4030 * MAINTAINERS: Alphabetize Write After Approval list.
4031
4032 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4033
4034 Fix PR gdb/709
4035 * values.c (value_static_field): Call read_var_value.
4036
4037 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4038
4039 * valops.c (hand_function_call): Align the initial stack pointer
4040 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4041 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4042 return value.
4043 * mips-tdep.c (mips_frame_align): New function.
4044 (mips_gdbarch_init): Set frame_align.
4045 * gdbarch.sh (FRAME_ALIGN): New method.
4046 * gdbarch.h, gdbarch.c: Re-generate.
4047
4048 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4049
4050 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4051 registers.
4052
4053 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4054
4055 * NEWS: Mention that MIPS $fp behavior changed.
4056 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4057 reference to FP_REGNUM.
4058 (mipsnbsd_cannot_store_register): Ditto.
4059 * mips-linux-nat.c: Update copyright.
4060 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4061 (mips_linux_cannot_store_register): Ditto.
4062 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4063 * config/mips/tm-mips.h: Update copyright.
4064 (FP_REGNUM): Delete macro.
4065 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4066 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4067 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4068 (mips_r3041_reg_names, mips_r3051_reg_names)
4069 (mips_r3081_reg_names): Replace "fp" with "".
4070 Fix PR gdb/480.
4071
4072 2002-09-17 Theodore A. Roth <troth@verinet.com>
4073
4074 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4075 generic_read_register_dummy() (PR gdb/703).
4076 (avr_push_return_address): #if 0 out unused vars.
4077 (avr_gdbarch_init): Enable use of avr_push_return_address().
4078
4079 2002-09-17 Michael Snyder <msnyder@redhat.com>
4080
4081 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4082 RTE will take care of it.
4083
4084 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4085
4086 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4087 invalid, return SP_REGNUM.
4088
4089 2002-09-17 Michael Snyder <msnyder@redhat.com>
4090
4091 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4092 point registers without sign extension.
4093
4094 2002-09-17 Andrew Cagney <cagney@redhat.com>
4095
4096 * blockframe.c (deprecated_read_register_dummy): Rename
4097 generic_read_register_dummy.
4098 * frame.c (frame_unwind_signed_register): New function.
4099 (frame_unwind_unsigned_register): New function.
4100 * frame.h (frame_unwind_signed_register): Declare.
4101 (frame_unwind_unsigned_register): Declare.
4102 (deprecated_read_register_dummy): Rename
4103 generic_read_register_dummy.
4104
4105 * h8300-tdep.c (h8300_frame_chain): Update.
4106 (h8300_frame_saved_pc): Update.
4107 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4108 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4109 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4110 (s390_frame_chain): Update.
4111 * v850-tdep.c (v850_find_callers_reg): Update.
4112 (v850_frame_saved_pc): Update.
4113 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4114 (m32r_find_callers_reg): Update.
4115 (m32r_frame_saved_pc): Update.
4116 * sh-tdep.c (sh_find_callers_reg): Update.
4117 (sh64_get_saved_pr): Update.
4118 (sh_init_extra_frame_info): Update.
4119 (sh_init_extra_frame_info): Update.
4120 (sh64_init_extra_frame_info): Update.
4121 (sh64_init_extra_frame_info): Update.
4122 * mcore-tdep.c (mcore_find_callers_reg): Update.
4123 (mcore_frame_saved_pc): Update.
4124 (mcore_init_extra_frame_info): Update.
4125 * i386-tdep.c (i386_frame_saved_pc): Update.
4126 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4127 (ia64_init_extra_frame_info): Update.
4128 (ia64_init_extra_frame_info): Update.
4129 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4130 * cris-tdep.c (cris_init_extra_frame_info): Update.
4131 * avr-tdep.c (avr_frame_chain): Update.
4132 (avr_init_extra_frame_info): Update.
4133 (avr_frame_saved_pc): Update.
4134 * arm-tdep.c (arm_find_callers_reg): Update.
4135 (arm_init_extra_frame_info): Update.
4136 (arm_frame_saved_pc): Update.
4137
4138 2002-09-17 Tom Tromey <tromey@redhat.com>
4139
4140 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4141 is "'".
4142
4143 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4144
4145 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4146 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4147 NEXT_PROLOGUE_INSN.
4148 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4149 NEXT_PROLOGUE_INSN.
4150
4151 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4152
4153 * osfsolib.c: Remove file, replaced by solib-osf.c.
4154 * Makefile.in: Remove compilation rules for osfsolib.c.
4155
4156 2002-09-16 David Carlton <carlton@math.stanford.edu>
4157
4158 * cp-valprint.c (cp_print_class_method): Correct args to
4159 check_stub_method_group.
4160
4161 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4162
4163 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4164 `set architecture'. Unify naming convention of functions.
4165 (h8300_skip_prologue): Improve prologue analysis.
4166 (h8300_push_arguments): Rewritten to more closely match GCC's
4167 bizarre argument-passing behavior, along with the comment describing
4168 said behavior.
4169 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4170 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4171 sim, remote-e7000.c, remote-hms.c and remote.c
4172
4173 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4174
4175 * i386-tdep.c (gdb_print_insn_i386): Removed.
4176 (i386_print_insn): New function.
4177 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4178 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4179 tm_print_insn_info.
4180
4181 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4182
4183 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4184 zero.
4185
4186 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4187
4188 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4189 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4190 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4191
4192 2002-09-13 Christopher Faylor <cgf@redhat.com>
4193
4194 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4195
4196 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4197
4198 * gdbtypes.c (check_stub_method): Make static.
4199 (check_stub_method_group): New function.
4200 * gdbtypes.h: Update prototypes.
4201 * cp-support.c: New file.
4202 * cp-support.h: New file.
4203
4204 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4205 (update_method_name_from_physname): New function.
4206 (read_member_functions): Correct method names for operators
4207 and v3 constructors/destructors. Separate v2 constructors and
4208 destructors.
4209 * Makefile.in (stabsread.o): Update dependencies.
4210 (SFILES): Add cp-support.c.
4211 (COMMON_OBS): Add cp-support.o.
4212 (cp_support_h, cp-support.o): Add.
4213
4214 * cp-valprint.c (cp_print_class_method): Call
4215 check_stub_method_group instead of check_stub_method. Remove
4216 extraneous QUITs.
4217 * p-valprint.c (pascal_object_print_class_method): Likewise.
4218 * valops.c (search_struct_method): Likewise.
4219 (find_method_list, value_struct_elt_for_reference): Likewise.
4220
4221 2002-09-13 Andrew Cagney <cagney@redhat.com>
4222
4223 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4224 * gdbarch.h, gdbarch.c: Regenerate.
4225
4226 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4227
4228 * frame.c (find_saved_register): Delete function.
4229 * frame.h (find_saved_register): Delete declaration.
4230 Fix PR gdb/631.
4231
4232 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4233
4234 * mips-tdep.c (read_next_frame_reg): Re-hack using
4235 frame_register_unwind.
4236
4237 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4238
4239 * mips-tdep.c (mips_get_saved_register): Re-hack using
4240 frame_register_unwind.
4241
4242 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4243
4244 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4245 vector. Will be useful for Interix.
4246 * gdbarch.h, gdbarch.c: Regenerate.
4247
4248 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4249 name of the malloc function by NAME_OF_MALLOC.
4250
4251 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4252
4253 * value.h (find_function_in_inferior): Add const keyword to
4254 one of the parameters. Allows us to invoke this function with
4255 a const char *.
4256 * valops.c (find_function_in_inferior): Likewise.
4257
4258 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4259
4260 * exec.c (xfer_memory): Fix compilation warning with old versions
4261 of GCC.
4262 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4263
4264 2002-09-12 David Carlton <carlton@math.stanford.edu>
4265
4266 * symtab.h: Run through gdb_indent.h.
4267 Add 2002 to Copyright year list.
4268
4269 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4270
4271 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4272 mach constants.
4273 * MAINTAINERS: Add myself to write after approval list.
4274
4275 2002-09-11 J. Brobecker <brobecker@gnat.com>
4276
4277 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4278
4279 2002-09-11 J. Brobecker <brobecker@gnat.com>
4280
4281 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4282 Interix.
4283
4284 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4285
4286 * procfs.c (do_detach): Clear current signal, not just fault.
4287 Corrects problem with breakpoint trap signal leaking to detached
4288 process on Tru64.
4289
4290 2002-09-10 Michael Snyder <msnyder@redhat.com>
4291
4292 * buildsym.c (finish_block): Protect against null pointer.
4293
4294 2002-09-10 Andrew Cagney <cagney@redhat.com>
4295
4296 * infcmd.c (default_print_registers_info): Send all output to
4297 ``file'' instead of ``gdb_stdout''.
4298
4299 2002-09-10 Michael Snyder <msnyder@redhat.com>
4300
4301 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4302 LONGEST, and use signed register read (addresses are sign-
4303 extended for mips).
4304
4305 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4306
4307 * event-loop.c (gdb_do_one_event): Make public.
4308 * event-loop.h (gdb_do_one_event): Declare.
4309
4310 2002-09-10 Jeff Law <law@redhat.com>
4311
4312 * infttrace.c (child_resume): Simplify and rework to avoid
4313 TT_PROC_CONTINUE.
4314
4315 2002-09-09 Fred Fish <fnf@intrinsity.com>
4316
4317 * printcmd.c (print_scalar_formatted): "len" is the number of
4318 target bytes, NOT the number of target bits.
4319
4320 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4321
4322 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4323 * top.c (init_main): Set rl_terminal_name.
4324
4325 2002-09-08 Aidan Skinner <aidan@velvet.net>
4326
4327 * ada-lang.c (ada_array_bound, ada_type_match,
4328 _initialize_ada_language): Fix K&R definitions.
4329 * ada-tasks.c (get_current_task): Fix K&R definitions.
4330 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4331
4332 2002-09-07 Christopher Faylor <cgf@redhat.com>
4333
4334 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4335 Add XP.
4336
4337 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4338
4339 * i386-tdep.c (i386_register_virtual_type,
4340 i386_register_convertible, i386_register_convert_to_virtual,
4341 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4342 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4343 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4344 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4345 Don't set push_arguments twice.
4346
4347 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4348 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4349 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4350 sigtramp_end to NULL.
4351 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4352 defines.
4353 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4354
4355 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4356 whitespace.
4357
4358 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360 * blockframe.c (find_pc_sect_partial_function): Convert to use
4361 SIGTRAMP_START_P predicate.
4362
4363 2002-09-05 Michael Snyder <msnyder@redhat.com>
4364
4365 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4366 generic_dummy_frame method and old method. Also distinguish
4367 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4368 (arm_extract_return_value): Use new regcache method.
4369
4370 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4371 adjustment that doesn't conform to the ABI.
4372 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4373 saved regcache, not from current regcache.
4374
4375 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4376
4377 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4378 * README: Update.
4379
4380 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4381
4382 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4383 if arm_apcs_32 is false.
4384
4385 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4386
4387 GDB 5.3 branch created.
4388
4389 2002-09-03 Theodore A. Roth <troth@verinet.com>
4390
4391 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4392 generic_unwind_get_saved_register.
4393
4394 2002-09-03 David Carlton <carlton@math.stanford.edu>
4395
4396 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4397 argument (PR gdb/653). Update call to smash_to_method_type.
4398 (read_structure_scope): Update call to dwarf2_add_member_fn.
4399
4400 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4401
4402 * x86-64-linux-tdep.c: Include gdb_string.h
4403 * x86-64-linux-nat.c: Ditto.
4404
4405 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4406
4407 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4408 when YYDEBUG is set to 1.
4409 * c-exp.y: Likewise.
4410 * f-exp.y: Likewise.
4411 * jv-exp.y: Likewise.
4412 * m2-exp.y: Likewise.
4413 * p-exp.y: Likewise.
4414
4415 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4416
4417 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4418 dependency list.
4419 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4420 solib_svr4_fetch_link_map_offsets to
4421 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4422 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4423 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4424 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4425 solib-svr4.o, and solib-legacy.o.
4426 * config/i386/tm-nbsd.h: Include solib.h.
4427
4428 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4429
4430 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4431 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4432 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4433 comment noting that this needs its own target configuration.
4434 * config/i386/nbsd.mt: New file.
4435 * config/i386/nbsdaout.mt: Remove.
4436 * config/i386/nbsdelf.mt: Ditto.
4437 * config/i386/tm-nbsdaout.h: Ditto.
4438
4439 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4440
4441 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4442 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4443 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4444 tdep->sigtramp_end.
4445 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4446 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4447 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4448
4449 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4450
4451 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4452 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4453 * i386-tdep.h (i386bsd_init_abi): New prototype.
4454 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4455 function declaration.
4456 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4457 for NetBSD-a.out or NetBSD-ELF.
4458 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4459 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4460 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4461 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4462 and nbsd-tdep.h.
4463 (i386nbsd_pc_in_sigtramp): New function.
4464 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4465 i386nbsd_pc_in_sigtramp.
4466 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4467 and i386nbsdelf_init_abi OS ABI handlers.
4468 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4469 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4470
4471 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4472
4473 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4474 registers if the target really has them.
4475
4476 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4477
4478 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4479 than nbsd-tdep.h.
4480
4481 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4482
4483 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4484 list.
4485 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4486 (alphanbsd_skip_sigtramp_frame): New functions.
4487 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4488 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4489 to alphanbsd_sigcontext_addr.
4490
4491 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4492
4493 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4494 list.
4495 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4496 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4497 nbsd_pc_in_sigtramp.
4498 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4499 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4500 * nbsd-tdep.c: Include gdb_string.h.
4501 (nbsd_pc_in_sigtramp): New function.
4502 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4503 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4504 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4505 ppcnbsd_pc_in_sigtramp.
4506 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4507 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4508 shnbsd_pc_in_sigtramp.
4509 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4510 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4511 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4512
4513 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4514
4515 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4516 watchpoints to NULL.
4517 (insert_breakpoints): set val field of watchpoints if NULL.
4518
4519
4520 2002-08-29 Jim Blandy <jimb@redhat.com>
4521
4522 * symtab.c (lookup_symbol_aux): In the cases where we find a
4523 minimal symbol of an appropriate name and use its address to
4524 select a symtab to read and search, use `name' (as passed to us)
4525 as the demangled name when searching the symtab's global and
4526 static blocks, not the minsym's name.
4527
4528 2002-08-29 Keith Seitz <keiths@redhat.com>
4529
4530 * stack.c (print_frame_info_base): Always set current_source_symtab
4531 and current_source_line.
4532
4533 2002-08-29 Donn Terry <donnte@microsoft.com>
4534
4535 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4536
4537 2002-08-28 Keith Seitz <keiths@redhat.com>
4538
4539 * stack.c (select_frame): Add FIXME concerning selected-frame
4540 events.
4541 (select_frame_command): Send selected-frame-level-changed
4542 event notification, but only if the level actually changed.
4543 (up_silently_base): Add selected-frame-level-changed event
4544 notification.
4545 (down_silently_base): Likewise.
4546
4547 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4548
4549 * Makefile.in: Update dependencies for all gdb/*.c files.
4550
4551 2002-08-27 Tom Tromey <tromey@redhat.com>
4552
4553 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4554 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4555 Update dependencies.
4556 * i387-tdep.c: Include gdb_string.h.
4557 * osabi.c: Likewise.
4558 * i386-linux-nat.c: Likewise.
4559 * lin-lwp.c: Likewise.
4560 * ax-gdb.c: Likewise.
4561 * signals/signals.c: Likewise.
4562 * jv-valprint.c: Likewise.
4563 * p-lang.c: Likewise.
4564 * c-valprint.c: Likewise.
4565 * cp-abi.c: Likewise.
4566
4567 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4568
4569 * cli/cli-script.h (copy_command_lines): Export.
4570 * breakpoint.c: Include cli/cli-script.h.
4571 * Makefile.in (breakpoint.o): Update dependencies.
4572
4573 2002-08-26 Michael Snyder <msnyder@redhat.com>
4574
4575 * breakpoint.c (insert_breakpoints): Protect all references
4576 to 'process_warning'. Shorten long lines.
4577
4578 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4579
4580 * cli/cli-script.c (copy_command_lines): New function.
4581 * defs.h (copy_command_lines): Export.
4582 * testsuite/gdb.base/commands.exp: New tests for commands
4583 attached to a temporary breakpoint, and for commands that
4584 delete the breakpoint they are attached to.
4585
4586 2002-08-26 Michael Snyder <msnyder@redhat.com>
4587
4588 * breakpoint.c (bpstat_stop_status): Instead of copying the
4589 pointer to the breakpoint commands struct, make a new copy
4590 of the struct and point to that.
4591 (bpstat_clear): Free the commands struct.
4592 (bpstat_clear_actions): Free the commands struct.
4593 (bpstat_do_actions): Free the command actions. Also execute
4594 the local cleanups, instead of deleting them.
4595 (delete_breakpoint): Leave the commands field of the bpstat
4596 chain alone -- it will be freed later.
4597
4598 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4599
4600 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4601 deleted in 2002-08-20 commit. This function is still used by
4602 ppc-linux-nat.c.
4603
4604 2002-08-26 Keith Seitz <keiths@redhat.com>
4605
4606 * gdb-events.sh: Add selected-frame-level-changed event.
4607 * gdb-events.c: Regenerated.
4608 * gdb-events.h: Regenerated.
4609
4610 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4611
4612 Fix PR gdb/393:
4613 * inflow.c (terminal_save_ours): New function to save terminal
4614 settings.
4615 * inferior.h (terminal_save_ours): Declare.
4616 * target.c (debug_to_terminal_save_ours): New function.
4617 (cleanup_target): Defaults to_terminal_save_ours.
4618 (update_current_target): Inherit to_terminal_save_ours.
4619 (setup_target_debug): Set to_terminal_save_ours.
4620 * target.h (target_terminal_save_ours): New to save terminal settings.
4621 (target_ops): New member to_terminal_save_ours.
4622 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4623 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4624 * inftarg.c (init_child_ops): Likewise.
4625 * m3-nat.c (init_m3_ops): Likewise.
4626 * procfs.c (init_procfs_ops): Likewise.
4627 * wince.c (init_child_ops): Likewise.
4628 * win32-nat.c (init_child_ops): Likewise.
4629 * sol-thread.c (init_sol_thread_ops): Likewise.
4630
4631 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4632
4633 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4634 use regcache_* functions.
4635 (i386_gdbarch_init): Set store_return_value instead of
4636 deprecated_store_return_value.
4637
4638 * regcache.c (regcache_raw_write_signed,
4639 regcache_raw_write_unsigned): New functions.
4640 * regcache.h (regcache_raw_write_signed,
4641 regcache_raw_write_unsigned): New prototypes.
4642
4643 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4644
4645 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4646 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4647 source file dependencies. Cleanup corresponding generator rules.
4648
4649 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4650
4651 * regcache.h (register_offset_hack): Declare.
4652 (regcache_cooked_read_using_offset_hack): Declare.
4653 (regcache_cooked_write_using_offset_hack): Declare.
4654
4655 * regcache.c (register_offset_hack): New function.
4656 (regcache_cooked_read_using_offset_hack): New function.
4657 (regcache_cooked_write_using_offset_hack): New function.
4658 (regcache_dump): Check that the registers, according to their
4659 offset, are packed hard against each other.
4660 (cooked_xfer_using_offset_hack): New function.
4661
4662 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4663
4664 * regcache.c (struct regcache_descr): Add field register_type.
4665 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4666 in as a parameter
4667 (init_regcache_descr): Initialize register_type. Pass the descr
4668 to init_legacy_regcache_descr. Use register_type instead of
4669 REGISTER_VIRTUAL_TYPE.
4670 (register_type): New function.
4671 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4672 * regcache.h (register_type): Declare.
4673
4674 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4675
4676 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4677 instead of deprecated_store_return_value. Fix fallout from
4678 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4679
4680 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4681
4682 * regcache.c (max_register_size): New function.
4683 (init_legacy_regcache_descr): Ensure that max_register_size is
4684 large enough for REGISTER_VIRTUAL_SIZE.
4685 * regcache.h (max_register_size): Declare.
4686
4687 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4688
4689 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4690 store_return_value.
4691 (e500_extract_return_value): Change type of valbuf pointer to
4692 void.
4693
4694 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4695
4696 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4697 workaround.
4698
4699 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4700 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4701 long long) to prevent compiler warning on 64-bit systems.
4702
4703 2002-08-23 Andrew Cagney <cagney@redhat.com>
4704
4705 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4706 (DEPRECATED_STORE_RETURN_VALUE): New method.
4707 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4708 * gdbarch.h, gdbarch.c: Re-generate.
4709
4710 * values.c (set_return_value): Pass current_regcache to
4711 STORE_RETURN_VALUE.
4712 * arch-utils.h (legacy_store_return_value): Declare.
4713 * arch-utils.c (legacy_store_return_value): New function.
4714 (legacy_extract_return_value): Update parameters.
4715
4716 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4717 STORE_RETURN_VALUE.
4718 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4719 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4720 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4721 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4722 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4723 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4724 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4725 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4726 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4727 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4728
4729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4730 * i386-tdep.c (i386_extract_return_value): Update.
4731 * arch-utils.c (legacy_extract_return_value): Update.
4732 * frv-tdep.c (frv_gdbarch_init): Update.
4733 * cris-tdep.c (cris_gdbarch_init): Update.
4734 * d10v-tdep.c (d10v_gdbarch_init): Update.
4735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4736 * m68k-tdep.c (m68k_gdbarch_init): Update.
4737 * mcore-tdep.c (mcore_gdbarch_init): Update.
4738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4739 * s390-tdep.c (s390_gdbarch_init): Update.
4740 * sparc-tdep.c (sparc_gdbarch_init): Update.
4741 * sh-tdep.c (sh_gdbarch_init): Update.
4742 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4743 * v850-tdep.c (v850_gdbarch_init): Update.
4744 * avr-tdep.c (avr_gdbarch_init): Update.
4745 * ia64-tdep.c (ia64_gdbarch_init): Update.
4746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4747 * vax-tdep.c (vax_gdbarch_init): Update.
4748 * alpha-tdep.c (alpha_gdbarch_init): Update.
4749 * arm-tdep.c (arm_gdbarch_init): Update.
4750 * mips-tdep.c (mips_gdbarch_init): Update.
4751 * i386-tdep.c (i386_gdbarch_init): Update.
4752
4753 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4754
4755 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4756 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4757
4758 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4759
4760 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4761 problems.
4762
4763 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4764
4765 * infrun.c (handle_inferior_event): Move a comment outside of a
4766 function call, in order to avoid indent reformatting this part
4767 of the code in an unreadable way.
4768
4769 2002-08-23 Grace Sainsbury <graces@redhat.com>
4770
4771 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4772 when breakpoints fail. Move general breakpoint error messages to
4773 insert_breakpoints.
4774 * breakpoint.c (insert_breakpoints): Change warnings when
4775 breakpoints are nto inserted to specify the type. Remove call to
4776 memory_error when hardware breakpoints can't be inserted. Remove
4777 multiple calls to warning so all messages are sent to the user at
4778 once.
4779 (delete_breakpoints): Make insert error messsages more explicit.
4780
4781 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4782
4783 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4784 gdbserver/ChangeLog.
4785
4786 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4787
4788 * i386-tdep.c: Include "objfiles.h".
4789 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4790 skip_trampoline_code.
4791 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4792 (CPLUS_MARKER): Define to '.'.
4793
4794 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4795 member.
4796 (linux_corefile_thread_callback): Increase args->num_notes.
4797 (linux_make_note_section): Initialize thread_args.num_notes, and
4798 use it to determine whether notes for any threads were created.
4799
4800 2002-08-23 Donn Terry <donnte@microsoft.com>
4801
4802 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4803 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4804 and PCUNKILL.
4805 (write_with_trace): Conditionalize out the switch branch handling
4806 PCSHOLD if the corresponding macro is not defined. Likewise for
4807 PRSABORT and PRSTOP.
4808 This change will be needed by the Interix port.
4809
4810 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4811
4812 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4813 write_register wherever possible instead of manipulating the
4814 register bytes directly.
4815 Assign VALUE_CONTENTS to a variable and use that.
4816 The GPR numbers are now dependent on the architecture.
4817
4818 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4819
4820 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4821 ev_offset fields.
4822 (skip_prologue): Add support for BookE/e500 instructions.
4823 (e500_extract_return_value): New function.
4824 (frame_get_saved_regs): Add support for saving ev registers and
4825 pseudo gpr's.
4826 (e500_store_return_value): New function.
4827 (rs6000_gdbarch_init): Move up default intializations of
4828 deprecated_extract_return_value and store_return_value. Overwrite
4829 init of store_return_value with e500 specific version.
4830 Set extract_return_value for e500.
4831
4832 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4833
4834 * blockframe.c (generic_call_dummy_register_unwind): Use
4835 regcache_cooked_read to catch cases in which the variable is
4836 stored in a pseudo register.
4837
4838 2002-08-22 Andrew Cagney <cagney@redhat.com>
4839
4840 * NEWS: Mention that the i960 has been made obsolete.
4841 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4842 i960-tdep.c
4843 (remote-nrom.o): Obsolete target.
4844 (remote-nindy.o, i960-tdep.o): Ditto.
4845 * remote-nrom.c: Make file obsolete.
4846 * remote-nindy.c, remote-vx960.c: Ditto.
4847 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4848 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4849 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4850 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4851 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4852 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4853 i960-*-vxworks* obsolete.
4854 * MAINTAINERS: Note that the i960 is obsolete.
4855
4856 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4857
4858 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4859 detach to allow reinitialization.
4860
4861 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4862
4863 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4864 attempt).
4865
4866 2002-08-22 Jim Blandy <jimb@redhat.com>
4867
4868 * coffread.c (coff_symfile_read): Don't try to read the line
4869 number table from disk if the image file doesn't have a symbol
4870 table; we'll never actually look at the info anyway, and Windows
4871 ships DLL's with bogus file offsets for the line number data.
4872
4873 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4874
4875 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4876 an e500 executable.
4877
4878 2002-08-21 Michael Snyder <msnyder@redhat.com>
4879
4880 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4881 (MSYMBOL_SIZE): Replace macro with function.
4882 (DEFAULT_MIPS_TYPE): Delete unused macro.
4883 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4884 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4885
4886 2002-08-21 Jim Blandy <jimb@redhat.com>
4887
4888 * valops.c (value_cast): Simplify and correct logic for doing a
4889 static cast from a pointer to a base class to a pointer to a
4890 derived class.
4891
4892 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4893
4894 * infcmd.c (default_print_registers_info): Replace
4895 do_registers_info.
4896 (registers_info): Use gdbarch_print_registers_info instead of
4897 DO_REGISTERS_INFO.
4898 * inferior.h (default_print_registers_info): Replace
4899 do_registers_info.
4900 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4901 (DO_REGISTERS_INFO): Change to a predicate function.
4902 * gdbarch.h, gdbarch.c: Regenerate.
4903
4904 2002-08-21 Keith Seitz <keiths@redhat.com>
4905
4906 * gdb-events.sh: Add target-changed event.
4907 * gdb-events.c: Regenerated.
4908 * gdb-events.c: Regenerated.
4909 * valops.c (value_assign): Add target-changed event notification
4910 to inlval_register, lval_memory, and lval_reg_frame_relative.
4911
4912 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4913
4914 * NEWS: Add an entry regarding the improvement of the next/step
4915 operation on Alpha Tru64 multi-processor machines.
4916
4917 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4918
4919 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4920 directores.
4921 * Makefile.in: Update all _h macro definitions.
4922 * Makefile.in (install-gdbtk): Move to install section.
4923 (rdi-share/libangsd.a): Move to end of file.
4924
4925 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4926
4927 * frame.c (frame_register_unwind): When a register, set addrp to
4928 the register's byte.
4929
4930 2002-08-20 Michael Snyder <msnyder@redhat.com>
4931
4932 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4933 used locally, so move them from the target machine header to here.
4934 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4935 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4936 Make static.
4937 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4938
4939 2002-08-20 Andrew Cagney <cagney@redhat.com>
4940
4941 * NEWS: Mention that the Apollo line was made obsolete.
4942 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4943 m68*-hp-hpux* obsolete.
4944 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4945 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4946 * buildsym.c (make_blockvector): Make static.
4947 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4948 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4949 (ALLDEPFILES): Remove dstread.c.
4950 (dstread.o): Obsolete make rule.
4951 * dstread.c: Makefile obsolete.
4952 * dst.h: Ditto.
4953 * config/m68k/hp300hpux.mt: Ditto.
4954 * config/m68k/hp300hpux.mh: Ditto.
4955 * config/m68k/hp300bsd.mt: Ditto.
4956 * config/m68k/hp300bsd.mh: Ditto.
4957 * config/m68k/apollo68b.mt: Ditto.
4958 * config/m68k/apollo68v.mh: Ditto.
4959 * config/m68k/apollo68b.mh: Ditto.
4960
4961 2002-08-20 Michael Snyder <msnyder@redhat.com>
4962
4963 * mips-tdep.c (mips_in_return_stub): Make static.
4964 (mips_gdbarch_init): Set in_solib_return_trampoline.
4965 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4966
4967 2002-08-20 Michael Snyder <msnyder@redhat.com>
4968
4969 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4970 * gdbarch.c, gdbarch.h: Regenerate.
4971 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4972 Add.
4973 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4974
4975 2002-08-20 Michael Snyder <msnyder@redhat.com>
4976
4977 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4978 (mips_gdbarch_init): Set skip_trampoline_code,
4979 in_solib_call_trampoline.
4980 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4981 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4982
4983 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4984
4985 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4986
4987 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4988 vector type for ev registers.
4989 (e500_pseudo_register_read): New function.
4990 (e500_pseudo_register_write): New function.
4991 (e500_dwarf2_reg_to_regnum): New function.
4992 (PPC_UISA_NOFP_SPRS): New macro.
4993 (PPC_EV_REGS): New macro.
4994 (PPC_GPRS_PSEUDO_REGS): New macro.
4995 (registers_e500): New register set for e500.
4996 (variants): Add e500 variant.
4997 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4998 before setting architectural dependent variations. Initialize ev
4999 registers numbers. Add case for e500 architecture. Set the
5000 number of pseudo registers.
5001
5002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5003
5004 * rs6000-tdep.c: Clean up comments.
5005
5006 2002-08-20 Andrew Cagney <cagney@redhat.com>
5007
5008 * h8300-tdep.c: Re-indent file.
5009
5010 2002-08-20 Jim Blandy <jimb@redhat.com>
5011
5012 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5013 default for this.
5014
5015 2002-08-20 Keith Seitz <keiths@redhat.com>
5016
5017 * breakpoints.c (watch_command_1): Use internal breakpoint
5018 when setting a watchpoint_scope breakpoint.
5019
5020 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5021
5022 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5023 (build_builtin_type_vec64i): Ditto.
5024 (build_builtin_type_vec128): Ditto.
5025 (build_builtin_type_vec128i): Ditto.
5026
5027 2002-08-19 Michael Snyder <msnyder@redhat.com>
5028
5029 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5030 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5031 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5032 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5033 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5034 CALL_DUMMY_ADDRESS): Delete.
5035 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5036 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5037 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5038 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5039 push_return_address.
5040 (mips_register_raw_size, mips_eabi_use_struct_convention,
5041 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5042 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5043 mips_init_extra_frame_info, mips_eabi_push_arguments,
5044 mips_n32n64_push_arguments, mips_push_return_address,
5045 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5046 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5047
5048 2002-08-19 Michael Snyder <msnyder@redhat.com>
5049
5050 * mips-tdep.c (mips_frame_num_args): New function.
5051 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5052 frame_saved_pc, frame_args_address, frame_locals_address,
5053 frame_num_args, and frame_args_skip.
5054 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5055 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5056 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5057 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5058
5059 2002-08-20 Michael Snyder <msnyder@redhat.com>
5060
5061 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5062 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5063 * mips-tdep.c (mips_store_struct_return): New function.
5064 (mips_extract_struct_value_address): New function.
5065 (mips_gdbarch_init): Set store_struct_return and
5066 extract_struct_value_address.
5067
5068 2002-08-20 David Carlton <carlton@math.stanford.edu>
5069
5070 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5071 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5072 (read_file_scope): Check that line_header is nonzero before
5073 decoding macro information.
5074
5075 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5076
5077 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5078 flag the general-purpose registers as floating-point on targets
5079 that don't support the floating-point registers.
5080
5081 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5082
5083 * rs6000-tdep.c (altivec_register_p): Delete.
5084 (rs6000_do_altivec_registers): Delete.
5085 (rs6000_altivec_registers_info): Delete.
5086 (rs6000_do_registers_info): Delete.
5087 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5088 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5089
5090 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5091
5092 * infcmd.c (do_registers_info): Print vector registers in hex
5093 format only.
5094 (print_vector_info): Check that printing registers
5095 makes sense.
5096 (print_float_info): Ditto.
5097
5098 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5099
5100 * mips-tdep.c (mips_gdbarch_init): Update.
5101 (mips_o32_extract_return_value): Rewrite.
5102 (mips_o32_store_return_value): Rewrite.
5103 (mips_o32_xfer_return_value): New function.
5104 (mips_xfer_register): Tweak debug print message. Allow for
5105 buf_offset when dumping the value transfered.
5106
5107 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5108
5109 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5110 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5111 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5112 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5113 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5114
5115 2002-08-14 Michael Snyder <msnyder@redhat.com>
5116
5117 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5118
5119 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5120
5121 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5122 register.
5123 (P): New macro to define a register as a pseudo register.
5124 (R, R4, R8, R16, FR32, R64, R0): Updated.
5125 (struct variant): Add new fields for number of pseudo registers
5126 and number of total registers.
5127 (tot_num_registers): New macro replacing....
5128 (num_registers): ...deleted macro.
5129 (num_registers): New function.
5130 (num_pseudo_registers): New function.
5131 (variants): Update all variants to intialize new fields correctly.
5132 Postpone initialization of number of pseudo regs and real regs.
5133 (init_variants): New function.
5134 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5135 registers offsets.
5136
5137 2002-08-19 David Carlton <carlton@math.stanford.edu>
5138
5139 * valops.c (search_struct_field): Change error message to treat
5140 return value of 0 from value_static_field as meaning that field is
5141 optimized out.
5142 (value_struct_elt_for_reference): Ditto.
5143 * values.c (value_static_field): Treat an unresolved location the
5144 same as a nonexistent symbol. Fix PR gdb/635.
5145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5146 enclosed. Fix PR gdb/574.
5147 * MAINTAINERS: Add self to Write After Approval list.
5148
5149 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5150
5151 * mips-tdep.c (mips_xfer_register): New function.
5152 (mips_n32n64_extract_return_value): Rewrite.
5153 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5154 instead of deprecated_extract_return_value.
5155
5156 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5157
5158 * rs6000-tdep.c (TDEP): Delete macro.
5159 (branch_dest): Replace use of TDEP macro with its body.
5160 (rs6000_pop_frame): Ditto.
5161 (rs6000_push_arguments): Ditto.
5162 (rs6000_skip_trampoline_code): Ditto.
5163 (rs6000_frame_saved_pc): Ditto.
5164 (rs6000_frame_chain): Ditto.
5165 (rs6000_register_name): Ditto.
5166 (rs6000_register_byte): Ditto.
5167 (rs6000_register_raw_size): Ditto.
5168 (rs6000_register_virtual_type): Ditto.
5169 (rs6000_register_convertible): Ditto.
5170 (rs6000_convert_from_func_ptr_addr): Ditto.
5171
5172 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5173
5174 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5175 conditionally.
5176 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5177 MIPS_LINUX_JB_ELEMENT_SIZE.
5178 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5179 for MAX_REGISTER_RAW_SIZE arrays.
5180 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5181 MIPS_LINUX_JB_ELEMENT_SIZE.
5182
5183 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5184
5185 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5186
5187 2002-08-19 Aidan Skinner <aidan@velvet.net>
5188
5189 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5190 ada-valprint.c ada-tasks.c.
5191 (YYFILES): Add ada-exp.y.
5192 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5193 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5194 (ada-exp.tab.o): New target.
5195
5196 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5197
5198 * regcache.c (regcache_xfer_part): New function.
5199 (regcache_raw_read_part): New function.
5200 (regcache_raw_write_part): New function.
5201 (regcache_cooked_read_part): New function.
5202 (regcache_cooked_write_part): New function.
5203 * regcache.h (regcache_raw_read_part): Declare.
5204 (regcache_raw_write_part): Declare.
5205 (regcache_cooked_read_part): Declare.
5206 (regcache_cooked_write_part): Declare.
5207
5208 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5209
5210 * remote.c (remote_open_1): Add async_p.
5211 (remote_async_open_1): Delete.
5212 (open_remote_target): Delete.
5213 (remote_open, extended_remote_open): Update calls to remote_open_1.
5214 (remote_async_open, extended_remote_async_open): Call
5215 remote_open_1 instead of remote_async_open_1.
5216
5217 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5218
5219 * blockframe.c: Fix a few coding standard violations.
5220
5221 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5222
5223 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5224 here from ...
5225 * config/i386/tm-i386sco5.h: ... here. File removed.
5226 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5227
5228 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5229 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5230 (TM_FILE): Set to tm-i386.h.
5231 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5232 * config/i386/tm-i386v.h: Remove file.
5233 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5234 instead of "i386/tm-i386v.h".
5235 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5236 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5237 "i386/tm-i386v.h".
5238 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5239 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5240 "i386/tm-i386.h".
5241
5242 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5243
5244 * config/i386/nm-i386v.h: Add protection against
5245 multiple-inclusion.
5246 (i386_register_u_addr): Remove prototype.
5247 (register_u_addr): New prototype.
5248 (REGISTER_U_ADDR): Redefine accordingly.
5249 * i386v-nat.c: Improve several comments.
5250 (i386_register_u_addr): Change signature and rename to
5251 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5252 ubase variable.
5253
5254 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5255
5256 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5257 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5258 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5259 deprecated_extract_return_value.
5260 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5261 rename mips_o32o64_push_arguments.
5262 (mips_gdbarch_init): Update.
5263 (mips_extract_return_value): Delete.
5264 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5265 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5266 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5267 (mips_n32n64_extract_return_value): Clone
5268 mips_extract_return_value.
5269 (mips_store_return_value): Delete.
5270 (mips_o32_store_return_value): Clone mips_store_return_value.
5271 (mips_o64_store_return_value): Clone mips_store_return_value.
5272 (mips_eabi_store_return_value): Clone mips_store_return_value.
5273 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5274
5275 2002-08-18 Aidan Skinner <aidan@velvet.net>
5276
5277 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5278 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5279
5280 2002-08-18 Aidan Skinner <aidan@velvet.net>
5281
5282 * ada-lang.c: Run through gdb_indent.sh.
5283 * ada-lang.h: Run through gdb_indent.sh.
5284 * ada-tasks.c: Run through gdb_indent.sh.
5285 * ada-typeprint.c: Run through gdb_indent.sh.
5286 * ada-valprint.c: Run through gdb_indent.sh.
5287
5288 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5289
5290 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5291 ABI.
5292
5293 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5294
5295 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5296
5297 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5298 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5299
5300 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5301 write_register_gen instead of write_register_bytes.
5302
5303 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5304 i[3456]-*-osf1mk* configurations have been made obsolete.
5305 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5306 i[3456]86-*-osf1mk* hosts obsolete.
5307 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5308 targets obsolete.
5309 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5310 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5311 config/i386/i386m3.mt, config/i386/nm-m3.h,
5312 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5313 config/i386/i386mk.mh, config/i386/i386mk.mt,
5314 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5315 obsolete.
5316 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5317 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5318 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5319
5320 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5321
5322 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5323 (hppa_value_returned_from_stack): Declare.
5324 (hppa_extract_return_value): Declare.
5325 * config/pa/hppa.mt: New file.
5326 * configure.tgt: Recognize hppa*-*-*.
5327 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5328
5329 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5330
5331 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5332 comment.
5333
5334 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5335
5336 * top.c (gdb_rl_operate_and_get_next): Make sure
5337 operate-and-get-next functions correctly even when the history
5338 list is completely filled.
5339
5340 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5341
5342 * MAINTAINERS (Target Instruction Set Architectures): Rename
5343 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5344 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5345 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5346 already listed under Host/Native.
5347
5348 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5349 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5350 mips*-*-*.
5351
5352 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5353
5354 * config/ia64/ia64.mt: New file.
5355 * config/alpha/alpha.mt: New file.
5356 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5357 ia64-linux-gnu. Mention that ia64-elf is broken.
5358 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5359
5360 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5361
5362 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5363 generic_func_frame_valid instead of func_frame_valid.
5364
5365 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5366
5367 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5368 procfs appears to be broken when debugging on multi-processor
5369 machines. So enable software single stepping in order to avoid
5370 using the procfs interface to do next/step operations, using
5371 internal breakpoints instead.
5372
5373 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5374 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5375 make this pc address equal to the value it would have if the
5376 system stepping capability was used. Also set a new flag used
5377 to ensure that we don't readjust the PC one more time later.
5378
5379 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5380 address by DECR_PC_AFTER_BREAK when software single step is
5381 in use for this architecture, as this has already been taken
5382 care of in handle_inferior_event().
5383
5384 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5385
5386 * infrun.c (handle_inferior_event): Minor reformatting, to make
5387 a rather long condition expression easier to read.
5388
5389 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5390
5391 * Makefile.in (gdbtk.o): Move to end of file.
5392 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5393 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5394 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5395 (gdbtk-wrapper.o, gdbres.o): Ditto.
5396
5397 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5398
5399 * Makefile.in (copying.o): Separate out compile rule.
5400 (hpux-thread.o, procfs.o, signals.o): Ditto.
5401 (v850ice.o, z8k-tdep.o): Ditto.
5402 (tui-file.o): Move to TUI section.
5403 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5404 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5405
5406 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5407
5408 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5409 skip_trampoline_code, for better namespace-proofing.
5410
5411 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5412
5413 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5414
5415 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5416
5417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5418
5419 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5420 signal, check whether we hit a breakpoint before checking for a
5421 single step breakpoint. Otherwise, GDB fails to notice that a
5422 breakpoint has been hit when stepping onto a breakpoint.
5423
5424 2002-08-16 Keith Seitz <keiths@redhat.com>
5425
5426 * gdb-events.sh (clear_gdb_event_hooks): New function.
5427 * gdb-events.c: Regenerate.
5428 * gdb-events.h: Regenerate.
5429
5430 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5431
5432 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5433 not_a_sw_breakpoint.
5434 * breakpoint.h (bpstat_stop_status): Add parameter names.
5435
5436 2002-08-16 Grace Sainsbury <graces@redhat.com>
5437
5438 * remote.c (remote_insert_hw_breakpoint)
5439 (remote_remove_hw_breakpoint): Fix calculation of length field
5440 for Z-packet.
5441
5442 2002-08-15 Michael Snyder <msnyder@redhat.com>
5443
5444 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5445 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5446 (supply_fpregset): Ditto.
5447
5448 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5449 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5450 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5451 (TARGET_READ_SP): Delete.
5452 (DO_REGISTERS_INFO): Delete.
5453 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5454 Delete.
5455 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5456 from macros to functions.
5457
5458 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5459 (mips_register_convertible, mips_register_convert_to_virtual,
5460 mips_register_convert_to_raw): Make static.
5461 (mips_read_sp): New function.
5462 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5463 (mips_do_registers_info): Make static.
5464 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5465 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5466 (mips_register_convert_from_type, mips_register_convert_to_type):
5467 New functions.
5468 (mips_gdbarch_init): Set up function_start_offset,
5469 register_virtual_size, pc_in_sigtramp.
5470
5471 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5472
5473 * infcmd.c (vector_info): New function.
5474 (_initialize_infcmd): Add command "info vector".
5475 (print_vector_info): New function.
5476
5477 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5478 * gdbarch.h, gdbarch.c: Regenerate.
5479
5480 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5481
5482 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5483 ``print_all''. Only print vector registers when ``print_all''.
5484
5485 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5486
5487 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5488 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5489
5490 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5491 Add `args' parameter.
5492 * gdbarch.h, gdbarch.c: Regenerate.
5493
5494 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5495
5496 * infcmd.c (float_info): Call print_float_info.
5497 (print_float_info): New function. By default, print the
5498 floating-point registers.
5499
5500 * arch-utils.h (default_print_float_info): Delete declaration.
5501 * arch-utils.c (default_print_float_info): Delete function.
5502
5503 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5504
5505 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5506 out define.
5507
5508 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5509 FRAME.
5510
5511 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5512 * configure.host: Make i[3456]86-*-aix host obsolete.
5513 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5514 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5515 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5516 config/i386/xm-i386aix.h: Make files obsolete.
5517 * i386aix-nat.c: Make file obsolete.
5518 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5519 (i386aix-nat.o): Make target obsolete.
5520
5521 * config/i386/nm-gnu.h: Removed.
5522 * config/i386/nm-i386gnu.h: New file.
5523 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5524 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5525 Moved here from ...
5526 * config/i386/tm-i386gnu.h: ... here. Removed.
5527 * config/i386/xm-i386gnu.h: Removed.
5528 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5529 (NAT_FILE): Set to nm-i386gnu.h.
5530 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5531 * i386-tdep.c: New file.
5532 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5533 (i386gnu-tdep.o): Specify dependencies.
5534
5535 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5536
5537 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5538 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5539 Adjust a few comments to reflect reality a bit closer.
5540 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5541 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5542 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5543 target_insert_watchpoint, target_remove_watchpoint):
5544 Move defines to ...
5545 * config/i386/nm-i386sco5.h: ... here.
5546 (kernel_u_size): Add prototype. Improve a few comments and add
5547 protection against multiple inclusion.
5548
5549 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5550 out define.
5551
5552 * uw-thread.c (SP_ARG0): Define if not already defined.
5553 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5554
5555 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5556
5557 * config/i386/tm-i386.h: Don't include "regcache.h".
5558
5559 * i387-tdep.h (i387_print_float_info): New prototype.
5560 * i387-tdep.c (print_i387_value, print_i387_ext,
5561 print_i387_status_word, print_i387_control_word): Add `struct
5562 ui_file *' argument and use it for output.
5563 (i387_print_float_info): Renamed from i387_float_info. Add
5564 `struct gdbarch *' and `struct ui_file *' arguments and use the
5565 latter for output.
5566 * i386-tdep.c: Include "i387-tdep.h".
5567 (i386_gdbarch_init): Set print_float_info.
5568 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5569 (FLOAT_INFO): Remove define.
5570
5571 2002-08-13 Michael Snyder <msnyder@redhat.com>
5572
5573 * mips-tdep.c (mips_push_arguments): Rename to
5574 mips_eabi_push_arguments, and tune for EABI.
5575 (MIPS_REGS_HAVE_HOME_P): Delete.
5576 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5577 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5578 Delete references to mips_regs_have_home_p.
5579
5580 2002-08-14 Keith Seitz <keiths@redhat.com>
5581
5582 * Makefile.in (install-gdbtk): Create insight plugin directory.
5583 Install plugins.tcl file.
5584
5585 2002-08-14 Keith Seitz <keiths@redhat.com>
5586
5587 * configure.in: Move SUBDIRS to near top of the file so that
5588 --enable options may add things to it.
5589 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5590 * configure: Regenerate.
5591
5592 2002-08-13 Michael Snyder <msnyder@redhat.com>
5593
5594 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5595 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5596 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5597
5598 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5599
5600 * vax-tdep.c (vax_get_saved_register): Delete function.
5601 (vax_gdbarch_init): Update.
5602 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5603 (ns32k_gdbarch_init): Update.
5604 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5605 (alpha_gdbarch_init): Update.
5606
5607 2002-08-13 Andrew Cagney <cagney@redhat.com>
5608
5609 * regcache.c (init_regcache_descr): Overallocate the
5610 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5611 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5612 nr_raw_registers.
5613 (set_register_cached): Add range checking assertions. Use
5614 current_regcache.
5615
5616 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5617
5618 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5619 numbers for MMX registers.
5620
5621 2002-08-13 Andrew Cagney <cagney@redhat.com>
5622
5623 * i386-tdep.c (i386_gdbarch_init): Use
5624 generic_unwind_get_saved_register.
5625
5626 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5627
5628 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5629 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5630 target vector.
5631 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5632 Delete. Add comment regarding this now-deleted target method.
5633
5634 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5635
5636 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5637 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5638 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5639 real PC and the page number (if it's within the memory bank window).
5640 (m68hc11_pseudo_register_write): Likewise when saving.
5641 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5642 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5643 (m68hc11_register_raw_size): And use 32-bit for it.
5644 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5645 16K memory bank is used by the prog; also use the virtual pc.
5646
5647 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5648
5649 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5650 (m68hc11_gdbarch_init): Install it in gdbarch.
5651 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5652 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5653 (MSYMBOL_SIZE): New for documentation.
5654 (insn_return_kind): Enum to specify how a function returns.
5655 (frame_extra_info): Cleanup and record the return mode.
5656 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5657 register in address computation.
5658 (m68hc11_get_return_insn): New to obtain the return instruction used
5659 by the function.
5660 (m68hc11_frame_init_saved_regs): Take into account the return
5661 instruction used by the function for far and interrupt functions.
5662 (m68hc11_init_extra_frame_info): Take into account page register.
5663 (m68hc11_frame_args_address): Adjust according to the return mode.
5664 (show_regs): Print page register only when it's used.
5665
5666 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5667
5668 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5669 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5670 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5671 registers.
5672 (m68hc11_register_raw_size): Likewise.
5673
5674 2002-08-13 Andrew Cagney <cagney@redhat.com>
5675
5676 * i386-tdep.c (i386_register_name): Handle mmx registers.
5677 (mmx_regnum_p): New function.
5678 (i386_mmx_names): New array.
5679 (mmx_num_regs): New variable.
5680 (i386_pseudo_register_read): New function.
5681 (i386_pseudo_register_write): New function.
5682 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5683
5684 * regcache.c (regcache_raw_read_unsigned): New function.
5685 (regcache_raw_read_signed): New function.
5686 * regcache.h (regcache_raw_read_unsigned): Declare.
5687 (regcache_raw_read_signed): Declare.
5688
5689 2002-08-13 Andrew Cagney <cagney@redhat.com>
5690
5691 * regcache.c (regcache_raw_read_as_address): Delete function.
5692 (regcache_cooked_read_signed): New function.
5693 (regcache_cooked_read_unsigned): New function.
5694 * regcache.h (regcache_cooked_read_signed): Declare.
5695 (regcache_cooked_read_unsigned): Declare.
5696 (regcache_raw_read_as_address): Delete declaration.
5697
5698 * blockframe.c (generic_read_register_dummy): Use
5699 regcache_cooked_read_unsigned.
5700 * i386-tdep.c (i386_extract_struct_value_address): Use
5701 regcache_cooked_read_unsigned.
5702
5703 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5704
5705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5706 double sizes according to ELF ABI flags.
5707 (gdbarch_tdep): Record elf_flags.
5708
5709 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5710
5711 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5712 (m6812_prolog): They can appear in 68HC12 function prologue.
5713 (m68hc11_frame_chain): Cleanup.
5714
5715 2002-08-12 Andrew Cagney <cagney@redhat.com>
5716
5717 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5718 declarations.
5719 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5720 (i386_linux_register_raw_size): Delete function.
5721 (i386_linux_init_abi): Update.
5722 * i386-tdep.c (i386_register_raw_size): Delete function.
5723 (i386_register_byte): Delete function.
5724 (i386_gdbarch_init): Update.
5725 (i386_register_size): Delete array.
5726 (i386_register_offset): Delete array.
5727
5728 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5729 (REGISTER_RAW_SIZE): Delete macro.
5730 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5731 (REGISTER_BYTE): Delete macro.
5732
5733 2002-08-11 Aidan Skinner <aidan@velvet.net>
5734
5735 * ada-lang.c (ada_lookup_partial_symbol)
5736 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5737 prototype names so that grep ^func works properly.
5738
5739 * ada-lang.c (ada_array_element_type)
5740 (ada_lookup_partial_symbol): Fix typos in parameter list.
5741
5742 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5743 Fix prototype names so that grep ^func works properly.
5744
5745 2002-08-10 Andrew Cagney <cagney@redhat.com>
5746 Elena Zannoni <ezannoni@redhat.com>
5747 Martin M. Hunt <hunt@redhat.com>
5748
5749 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5750 (build_builtin_type_vec128i): Set the vector bit.
5751 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5752 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5753 (build_builtin_type_vec64): New function.
5754 (build_builtin_type_vec64i): New function.
5755 (build_gdbtypes): Initialize builtin_type_vec64 and
5756 builtin_type_vec64i.
5757
5758 2002-08-09 Andrew Cagney <cagney@redhat.com>
5759
5760 * regcache.c (regcache_dump): Compare the register offset
5761 with REGISTER_BYTE.
5762 * arch-utils.c (generic_register_byte): New function.
5763 * arch-utils.h (generic_register_byte): Declare.
5764 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5765 * gdbarch.h, gdbarch.c: Regenerate.
5766
5767 2002-08-09 Andrew Cagney <cagney@redhat.com>
5768
5769 * regcache.c: Include "gdbcmd.h"
5770 (_initialize_regcache): Add commands "maintenance print
5771 registers", "maintenance print raw-registers" and "maintenance
5772 print cooked-registers".
5773 (enum regcache_dump_what): Define.
5774 (dump_endian_bytes): New function.
5775 (regcache_dump): New function.
5776 (regcache_print): New function.
5777 (maintenance_print_registers): New function.
5778 (maintenance_print_raw_registers): New function.
5779 (maintenance_print_cooked_registers): New function.
5780 * Makefile.in (regcache.o): Update dependencies.
5781
5782 2002-08-09 Michael Snyder <msnyder@redhat.com>
5783
5784 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5785 (mips_push_arguments): Correct some comments. Use paddr_nz
5786 for printing addresses in debug output. Replace static
5787 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5788 (mips_n32n64_push_arguments): New function, cloned from
5789 mips_push_arguments and tuned for the n32/n64 ABI.
5790 (mips_push_register): Buffer needs dynamic allocation.
5791 (mips_print_register): Ditto.
5792 (do_gp_register_row): Ditto.
5793 (mips_store_return_value): Ditto.
5794 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5795
5796 2002-08-09 Don Howard <dhoward@redhat.com>
5797
5798 * memattr.c (mem_info_command): Print special case of upper bound
5799 as max CORE_ADDR + 1.
5800
5801 2002-08-08 Michael Snyder <msnyder@redhat.com>
5802
5803 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5804 returns structs by ref if they're too big to fit in two registers.
5805
5806 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5807
5808 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5809 saved regs value.
5810 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5811 mips_find_saved_regs().
5812 (mips_pop_frame): Likewise.
5813
5814 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5815
5816 * blockframe.c (frame_saved_regs_register_unwind): Revise
5817 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5818 frames are in use.
5819
5820 2002-08-09 Grace Sainsbury <graces@redhat.com>
5821
5822 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5823 T-packets; the 'a' is not taken as a register number.
5824 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5825 (remote_stopped_data_address): New functions; add to target
5826 vector.
5827 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5828 prototypes to match other implementations of this
5829 function. replace integer argument with pointer -- the length
5830 field in the Z-packet is the length of what is pointed to or 1 if
5831 pointer is null. Add to target vector.
5832 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5833 target vector.
5834
5835 From Mark Salter:
5836 * remote.c (remote_wait): Add support to extract optional
5837 watchpoint information from T-packet. Ignore unrecognized
5838 optional info in T-packet.
5839 (remote_async_wait): Ditto.
5840
5841 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5842
5843 * cli/cli-dump.c: Change fopen modes to use binary open modes
5844 as defined in include/fopen-bin.h throughout.
5845
5846 2002-08-08 Michael Snyder <msnyder@redhat.com>
5847
5848 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5849
5850 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5851
5852 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5853 assertion failure by returning early after a warning.
5854
5855 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5856
5857 * mips-tdep.c (mips_find_saved_regs): Make static.
5858 (mips_frame_init_saved_regs): New function.
5859 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5860 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5861 (mips_find_saved_regs): Delete declaration.
5862
5863 2002-08-08 Grace Sainsbury <graces@redhat.com>
5864
5865 * remote.c (remote_wait, remote_async_wait): Change
5866 thread_num from int to ULONGEST.
5867 (unpack_varlen_hex): Change result parameter from
5868 int * to ULONGEST *.
5869
5870 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5871
5872 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5873 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5874 powerpc*-*-*.
5875 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5876
5877 2002-08-08 Andrew Cagney <cagney@redhat.com>
5878
5879 * gcore.c (override_derive_stack_segment): Delete variable.
5880 (preempt_derive_stack_segment): Delete function.
5881 (derive_stack_segment): Delete function.
5882 (default_derive_stack_segment): Renamed to derive_stack_segment.
5883 (override_derive_heap_segment): Delete variable.
5884 (preempt_derive_heap_segment): Delete function.
5885 (derive_heap_segment): Delete function.
5886 (default_derive_heap_segment): Rename to derive_heap_segment.
5887
5888 2002-08-06 Michael Snyder <msnyder@redhat.com>
5889
5890 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5891 * mips-tdep.c (mips_EABI_use_struct_convention,
5892 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5893 New functions. (mips_use_struct_convention): Delete.
5894 (mips_gdbarch_init): set use_gdbarch_convention.
5895
5896 2002-08-06 Michael Snyder <msnyder@redhat.com>
5897
5898 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5899 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5900 mips_o32_reg_struct_has_addr): New functions.
5901 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5902
5903 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5904
5905 * regcache.c (pseudo_register): Delete function.
5906 (fetch_register): Delete function.
5907 (store_register): Delete function.
5908 (regcache_raw_read, legacy_read_register_gen): Use
5909 target_fetch_registers instead of fetch_register.
5910 (legacy_write_register_gen, regcache_raw_write): Use
5911 target_store_register instead of store_register.
5912 (write_register_bytes): Ditto.
5913
5914 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5915 (STORE_PSEUDO_REGISTER): Delete.
5916 * gdbarch.h, gdbarch.c: Regenerate.
5917
5918 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5919
5920 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5921 write dump file binary.
5922
5923 2002-08-05 Michael Snyder <msnyder@redhat.com>
5924
5925 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5926 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5927 (mips_gdbarch_init): Set N32 target to be mips64.
5928
5929 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5930
5931 * frame.c (find_saved_register): Break out of loop once saved
5932 register address is found. Don't mention sparc in loop comment
5933 anymore.
5934
5935 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5936
5937 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5938 mips_default_saved_regsize to 8.
5939
5940 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5941
5942 * gcore.c: Do not include <sys/procfs.h>.
5943 * Makefile.in (gcore.o): Update dependencies.
5944
5945 2002-08-06 Andrew Cagney <cagney@redhat.com>
5946
5947 * configure.tgt: Make arc-*-* obsolete.
5948 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5949 * MAINTAINERS: Make arc-elf obsolete.
5950 * arc-tdep.c: Make file obsolete.
5951 * config/arc/arc.mt: Ditto.
5952 * config/arc/tm-arc.h: Ditto.
5953
5954 2002-08-05 Theodore A. Roth <troth@verinet.com>
5955
5956 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5957
5958 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5959
5960 * mcore-tdep.c (mcore_gdbarch_init): Use
5961 generic_unwind_get_saved_register instead of
5962 generic_get_saved_register.
5963 * v850-tdep.c (v850_gdbarch_init): Ditto.
5964 * frv-tdep.c (frv_gdbarch_init): Ditto.
5965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5966 * s390-tdep.c (s390_gdbarch_init): Ditto.
5967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5968 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5969 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5970
5971 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5972
5973 * objfiles.h: Add missing #include "symfile.h"
5974
5975 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5976
5977 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5978
5979 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5980 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5981 of FIELD_BITSIZE.
5982
5983 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5984
5985 * NEWS: Cleanup and nitpick.
5986
5987 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5988
5989 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5990
5991 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5992
5993 * Makefile.in (gdbtk-bp.o): Update dependencies.
5994 (gdbtk-register.o): Ditto.
5995 (gdbtk-varobj.o): Ditto.
5996
5997 2002-08-03 Andrew Cagney <cagney@redhat.com>
5998
5999 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6000 m68hc11_fetch_pseudo_register.
6001 (m68hc11_pseudo_register_write): Replace
6002 m68hc11_store_pseudo_register.
6003 (m68hc11_gdbarch_init): Update.
6004
6005 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6006
6007 * gdbarch.sh: Include "gdb_string.h".
6008 * gdbarch.c: Regenerate.
6009
6010 * regcache.c: Include "gdb_string.h".
6011 * ax-general.c: Ditto.
6012 * varobj.c: Ditto.
6013 * std-regs.c: Ditto.
6014 * fbsd-proc.c: Ditto.
6015 * thread.c: Ditto.
6016
6017 * Makefile.in (regcache.o): Update dependencies.
6018 (thread.o, gdbarch.o): Ditto.
6019 (ax-general.o, gdbarch.o): Ditto.
6020 (varobj.o, std-regs.o): Ditto.
6021 (fbsd-proc.o): Specify dependencies.
6022
6023 2002-08-02 Andrew Cagney <cagney@redhat.com>
6024
6025 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6026 regnum.
6027 (regcache_cooked_write): Ditto.
6028
6029 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6030
6031 * regcache.c (regcache_cooked_read): New function.
6032 (regcache_cooked_write): New function.
6033 (read_register_gen): Rewrite using regcache_cooked_read.
6034 (write_register_gen): Rewrite using regcache_cooked_write.
6035
6036 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6037 Declare.
6038
6039 2002-08-02 Andrew Cagney <cagney@redhat.com>
6040
6041 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6042 Replace the architecture methods register_read and register_write.
6043 * gdbarch.h, gdbarch.c: Regenerate.
6044 * regcache.c (init_regcache_descr): Update.
6045 (read_register_gen): Update.
6046 (write_register_gen): Update.
6047 (supply_register): Update comment.
6048
6049 * sh-tdep.c (sh_gdbarch_init): Update.
6050 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6051 `regcache' and `gdbarch' parameters. Make `buffer' a void
6052 pointer. Update code.
6053 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6054 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6055 void pointer. Update code.
6056 (sh64_register_write): Delete.
6057 (sh4_register_read): Delete.
6058 (sh64_register_read): Delete.
6059 (sh4_register_write): Delete.
6060 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6061 void pointer, `to' parameter a void pointer.
6062 (sh_sh64_register_convert_to_raw): Ditto.
6063
6064 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6065
6066 * mips-tdep.c (mips_register_virtual_type): Use architecture
6067 invariant return values.
6068
6069 2002-08-01 Andrew Cagney <cagney@redhat.com>
6070
6071 * linux-proc.c: Include "gdb_string.h".
6072 * Makefile.in (linux-proc.o): Update dependency list.
6073
6074 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6075
6076 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6077 comment.
6078
6079 2002-08-01 Grace Sainsbury <graces@redhat.com>
6080
6081 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6082 to_insert_watchpoint, to_remove_watchpoint,
6083 to_stopped_by_watchpoint, to_stopped_data_address,
6084 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6085 target vecctor. Define their corresponding macros so they call
6086 them.
6087
6088 * target.c: Add default and debug versions of for
6089 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6090 to_insert_watchpoint, to_remove_watchpoint,
6091 to_stopped_by_watchpoint, to_stopped_data_address,
6092 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6093
6094 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6095
6096 * mips-tdep.c (mips_register_virtual_type): New function.
6097 (mips_gdbarch_init): Register mips_register_virtual_type()
6098 with gdbarch machinery.
6099 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6100 this file instead of tm-bigmips.h.
6101 (MIPS_REGSIZE): Delete this macro.
6102 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6103 multiarch version in mips-tdep.c will be found.
6104
6105 2002-08-01 Andrew Cagney <cagney@redhat.com>
6106
6107 * NEWS: Menion that CHILL has been made obsolete.
6108
6109 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6110 * stabsread.c (read_range_type): Ditto.
6111 * gdbtypes.h: Ditto.
6112 * language.c (binop_type_check): Ditto.
6113 (binop_result_type): Ditto.
6114 (integral_type): Ditto.
6115 (character_type): Ditto.
6116 (string_type): Ditto.
6117 (boolean_type): Ditto.
6118 (structured_type): Ditto.
6119 (lang_bool_type): Ditto.
6120 (binop_type_check): Ditto.
6121 * language.h (_LANG_chill): Ditto.
6122 * dwarfread.c (set_cu_language): Ditto.
6123 * dwarfread.c (CHILL_PRODUCER): Ditto.
6124 * dwarfread.c (handle_producer): Ditto.
6125 * expression.h (enum exp_opcode): Ditto.
6126 * eval.c: Ditto for comments.
6127 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6128 * expprint.c (print_subexp): Ditto.
6129 (print_subexp): Ditto.
6130 * valops.c (value_cast): Ditto.
6131 (search_struct_field): Ditto.
6132 * value.h (COERCE_VARYING_ARRAY): Ditto.
6133 * symfile.c (init_filename_language_table): Ditto.
6134 (add_psymbol_with_dem_name_to_list): Ditto.
6135 * valarith.c (value_binop): Ditto.
6136 (value_neg): Ditto.
6137 * valops.c (value_slice): Ditto.
6138 * symtab.h (union language_specific): Ditto.
6139 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6140 (SYMBOL_DEMANGLED_NAME): Ditto.
6141 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6142 * defs.h (enum language): Ditto.
6143 * symtab.c (got_symtab): Ditto.
6144 * utils.c (fprintf_symbol_filtered): Ditto.
6145
6146 * ch-typeprint.c: Make file obsolete.
6147 * ch-valprint.c: Make file obsolete.
6148 * ch-lang.h: Make file obsolete.
6149 * ch-exp.c: Make file obsolete.
6150 * ch-lang.c: Make file obsolete.
6151
6152 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6153 CHILL_LIB.
6154 (TARGET_FLAGS_TO_PASS): Ditto.
6155 (CHILLFLAGS): Obsolete.
6156 (CHILL): Obsolete.
6157 (CHILL_FOR_TARGET): Obsolete.
6158 (CHILL_LIB): Obsolete.
6159 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6160 ch-valprint.c.
6161 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6162 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6163 ch-lang.o.
6164 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6165 targets.
6166
6167 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6168
6169 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6170 This does not change anything at the moment, but will be helpful
6171 later when full Ada support is integrated.
6172
6173 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6174
6175 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6176 help message.
6177
6178 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6179
6180 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6181 and save it in a local variable. Use variable in later test.
6182
6183 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6184
6185 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6186 test. (Thanks to Daniel Jacobowitz.)
6187
6188 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6189
6190 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6191 (mips_abi_strings): Add "n64".
6192 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6193
6194 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6195
6196 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6197 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6198
6199 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6200
6201 * utils.c (host_pointer_to_address, address_to_host_pointer):
6202 Use gdb_assert() instead of explicit call to internal_error().
6203
6204 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6205
6206 * Makefile.in (rs6000-nat.o): Update dependencies.
6207
6208 From Nicholas Duffek:
6209 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6210 (aix-thread.o): New rule.
6211 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6212 * config/powerpc/aix432.mh: New file.
6213
6214 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6215
6216 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6217 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6218 (fetch_core_registers, ppc_linux_supply_gregset)
6219 (ppc_linux_supply_fpregset): New functions.
6220 (ppc_linux_regset_core_fns): New.
6221 (_initialize_ppc_linux_tdep): Call add_core_fns.
6222 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6223 and ppc_linux_supply_gregset.
6224 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6225 (supply_fpregset): Call ppc_linux_supply_fpregset.
6226 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6227 corelow.o.
6228 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6229
6230 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6231
6232 * symtab.c (lookup_symbol): Demangle before lowercasing.
6233
6234 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6235
6236 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6237 declaration.
6238 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6239 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6240 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6241 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6242 "gdb_string.h".
6243 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6244 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6245 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6246 (avr-tdep.o, mon960-rom.o): Ditto.
6247 (aout_stabs_gnu_h): Define.
6248 (symtab_h): Remove $(gdb_obstack_h).
6249
6250 2002-07-30 Jim Blandy <jimb@redhat.com>
6251
6252 Patch from David Carlton <carlton@math.stanford.edu>:
6253 * gdbinit.in: Move the `dir' commands that add GDB's own source
6254 directory to the search path to the end, so that the `gdb' source
6255 directory will be searched first.
6256
6257 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6258
6259 * gdb_obstack.h: New file.
6260 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6261 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6262 * objfiles.h: Include "gdb_obstack.h".
6263 * Makefile.in (gdb_obstack_h): Define.
6264 (symtab_h): Add $(gdb_obstack_h).
6265 (objfiles_h): Add $(gdb_obstack_h).
6266
6267 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6268 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6269 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6270 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6271 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6272 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6273 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6274 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6275
6276 * Makefile.in (bcache.o): Update dependencies.
6277 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6278 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6279 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6280 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6281 (stabsread.o, symfile.o, symmisc.o): Ditto.
6282 (symtab.o, typeprint.o, macroexp.o): Ditto.
6283 (macrotab.o, mdebugread.o): Ditto.
6284 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6285 (coff_ecoff_h, aout_aout64_h): Define.
6286 (aout_stabs_gnu_h, libaout_h): Define.
6287
6288 2002-07-29 Andrew Cagney <cagney@redhat.com>
6289
6290 * regcache.c (struct regcache_descr): Rename nr_registers to
6291 nr_cooked_registers. Revise comments describing the structure
6292 member fields.
6293 (init_regcache_descr): Update.
6294 (init_legacy_regcache_descr): Update.
6295 (read_register_gen, write_register_gen): When a cooked register in
6296 the raw register range, directly access the value from the raw
6297 register cache.
6298
6299 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6300
6301 * z8k-tdep.c: Do not include "obstack.h".
6302 * h8300-tdep.c, h8500-tdep.c: Ditto.
6303 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6304 * valprint.c, v850-tdep.c: Ditto.
6305 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6306 * mn10200-tdep.c: Ditto.
6307
6308 * Makefile.in (z8k-tdep.o): Update dependencies.
6309 (m68hc11-tdep.o, valprint.o): Ditto.
6310 (v850-tdep.o, d10v-tdep.o): Ditto.
6311 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6312 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6313 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6314 (sh_opc_h, gdb_sim_sh_h): Define.
6315 (elf_sh_h, elf_bfd_h): Define.
6316 (opcode_m68hc11_h): Define.
6317 (OPCODES_SRC, OPCODES_DIR): define.
6318 (OPCODES): Use $(OPCODES_DIR).
6319 (gdb_sim_d10v_h): Rename sim_d10v_h.
6320 (gdb_sim_arm_h): Rename sim_arm_h.
6321
6322 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6323
6324 * utils.c (host_pointer_to_address, address_to_host_pointer):
6325 Change internal_error() message to indicate function responsible
6326 for the error.
6327
6328 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6329
6330 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6331 calls to local_hex_string_custom().
6332
6333 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6334
6335 * irix5-nat.c: Move IRIX shared library support from here...
6336 * solib-irix.c: ...to here. Revised substantially to work with
6337 generic solib framework.
6338
6339 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6340 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6341 * mips-irix-tdep.c: New file.
6342
6343 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6344 (mips-irix-tdep.o, solib-irix.o): New rules.
6345 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6346 solib-irix.o.
6347 * config/mips/irix6.mt (TDEPFILES): Likewise.
6348 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6349
6350 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6351
6352 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6353 disabled (via ``#if 0'') includes.
6354
6355 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6356
6357 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6358 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6359 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6360 Add support for the fpscr register.
6361 * rs6000-nat.c (regmap, fetch_inferior_registers)
6362 (store_inferior_registers, fetch_core_registers): Likewise.
6363
6364 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6365
6366 * rs6000-nat.c (language.h): Include.
6367 (special_regs): Delete this array.
6368 (regmap): New function.
6369 (fetch_register, store_register): Use regmap() to map gdb
6370 register numbers to ptrace register numbers. Also, use
6371 outputs from regmap() to make decisions regarding type of
6372 ptrace() call to make. In particular, don't compare against
6373 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6374 (fetch_inferior_registers, store_inferior_registers): Where
6375 possible, obtain register numbers from tdep struct. Don't
6376 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6377 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6378 (LAST_UISA_SP_REGNUM): Delete.
6379
6380 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6381
6382 * rs6000-nat.c (ppc-tdep.h): Include.
6383 (fetch_registers, store_register, fetch_core_registers): Don't
6384 access registers[] directly. Instead, use supply_register() or
6385 regcache_collect() as appropriate.
6386 (find_toc_address): Format hex address with local_hex_string().
6387
6388 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6389
6390 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6391 bfd/elf32-frv.c.
6392
6393 2002-07-24 Tom Tromey <tromey@redhat.com>
6394
6395 * jv-exp.y: Marked all strings with _().
6396 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6397 internal_error.
6398 (MethodInvocation, CastExpression, parse_number, yyerror,
6399 java_type_from_name, push_expression_name, yylex): Typo fixes.
6400
6401 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6402
6403 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6404 (tee_file_flush, tee_file_write, tee_file_fputs)
6405 (tee_file_isatty): New.
6406 * ui-file.h (tee_file_new): Add prototype.
6407
6408 2002-07-24 Aidan Skinner <aidan@velvet.net>
6409
6410 * ada-lang.c: Change k&r style function definitions to prototyped
6411 form.
6412 * ada-typeprint.c: Change k&r style function definitions to prototyped
6413 form.
6414 * ada-valprint.c: Change k&r style function definitions to prototyped
6415 form.
6416
6417 2002-07-24 Andrew Cagney <cagney@redhat.com>
6418
6419 * README: Remove reference to remote-bug.
6420 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6421 remote-bug.c.
6422 (m88k-nat.o): Delete rule.
6423 (m88k-tdep.o): Delete rule.
6424 (remote-bug.o): Delete rule.
6425 * MAINTAINERS: Mark as obsolete.
6426 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6427 * m88k-tdep.c: Make file obsolete.
6428 * config/m88k/m88k.mh: Ditto.
6429 * config/m88k/delta88v4.mh: Ditto.
6430 * config/m88k/delta88v4.mt: Ditto.
6431 * config/m88k/delta88.mt: Ditto.
6432 * config/m88k/delta88.mh: Ditto.
6433 * remote-bug.c: Ditto.
6434 * config/m88k/tm-delta88.h: Ditto.
6435 * config/m88k/nm-delta88v4.h: Ditto.
6436 * config/m88k/xm-delta88.h: Ditto.
6437 * config/m88k/xm-dgux.h: Ditto.
6438 * config/m88k/tm-m88k.h: Ditto.
6439 * config/m88k/nm-m88k.h: Ditto.
6440 * config/m88k/tm-delta88v4.h: Ditto.
6441 * m88k-nat.c: Ditto.
6442 * cxux-nat.c: Ditto.
6443 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6444 and m88*-*-* obsolete.
6445 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6446 m88*-*-* obsolete.
6447
6448 2002-07-24 Andrew Cagney <cagney@redhat.com>
6449
6450 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6451 constant. Same for local pointer variables.
6452 (extract_signed_integer): Ditto.
6453 * defs.h (extract_unsigned_integer): Update.
6454 (extract_signed_integer): Update.
6455
6456 2002-07-24 Andrew Cagney <cagney@redhat.com>
6457
6458 * regcache.c (regcache_raw_write): Change buf parameter to a
6459 constant void pointer.
6460 (regcache_raw_read): Change buf parameter to a void pointer.
6461 (legacy_write_register_gen): Change myaddr parameter a constant
6462 void pointer.
6463 (supply_register): Change val parameter to a const void pointer.
6464 * regcache.h (regcache_raw_write): Update declaration.
6465 (regcache_raw_read): Update declaration.
6466 (supply_register): Update declaration.
6467
6468 2002-07-24 Tom Tromey <tromey@redhat.com>
6469
6470 * defs.h (gdb_readline_wrapper): Declare.
6471 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6472 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6473 * top.c (gdb_readline_wrapper): New function.
6474 (command_line_input): Use it.
6475
6476 2002-07-24 Andrew Cagney <cagney@redhat.com>
6477
6478 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6479 regcache_read and regcache_write.
6480 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6481 * regcache.c: Update.
6482 * sh-tdep.c (sh64_push_arguments): Update comment.
6483 (sh_pseudo_register_read): Update.
6484 (sh_pseudo_register_write): Update.
6485 (sh4_register_read): Update.
6486 (sh4_register_write): Update.
6487 (sh64_pseudo_register_read): Update.
6488 (sh64_pseudo_register_write): Update.
6489 (sh64_register_read): Update.
6490 (sh64_register_write): Update.
6491 * i386-tdep.c (i386_extract_return_value): Update.
6492 (i386_extract_struct_value_address): Update.
6493 (i386_extract_return_value): Update.
6494 * blockframe.c (generic_read_register_dummy): Update.
6495 (generic_call_dummy_register_unwind): Update
6496 * infrun.c (write_inferior_status_register): Update.
6497
6498 2002-07-23 Jim Blandy <jimb@redhat.com>
6499
6500 * parser-defs.h (expression_context_pc): Make this extern.
6501 (Thanks to Michael Snyder.)
6502
6503 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6504
6505 GDB 5.2.1 released from 5.2 branch.
6506 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6507 * README: Update to mention 5.2.1.
6508
6509 2002-07-23 Mark Salter <msalter@redhat.com>
6510
6511 * remote.c (remote_read_bytes): Fix check for error.
6512
6513 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6514
6515 * aix-thread.c (language.h): Include.
6516 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6517 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6518 Print newlines at end of debug messages.
6519 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6520 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6521
6522 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6523
6524 * aix-thread.c (ppc-tdep.h): Include.
6525 (special_register_p): New function.
6526 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6527 (store_regs_user_thread): Use register number information from
6528 gdbarch_tdep struct instead of hardcoded offsets relative to
6529 FIRST_UISA_SP_REGNUM.
6530 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6531 special_register_p() instead of using FPLAST_REGNUM and
6532 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6533 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6534 will be MQ's register number.
6535
6536 2002-07-22 Michael Snyder <msnyder@redhat.com>
6537
6538 * aix-thread.c (ops): Rename to aix_thread_ops.
6539 (base_ops): Rename to base_target.
6540 (ops_attach): Rename to aix_thread_attach.
6541 (ops_detach): Rename to aix_thread_detach.
6542 (ops_resume): Rename to aix_thread_detach.
6543 (ops_wait): Rename to aix_thread_wait.
6544 (ops_kill): Rename to aix_thread_kill.
6545 (init_ops): Rename to init_aix_thread_ops.
6546 (ops_fetch_register): Rename to aix_thread_fetch_register.
6547 (ops_store_register): Rename to aix_thread_store_register.
6548 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6549 (ops_thread_alive): Rename to aix_thread_thread_alive.
6550 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6551 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6552 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6553 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6554 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6555 (store_regs_lib): Rename to store_regs_user_thread.
6556 (store_regs_kern): Rename to store_regs_kernel_thread.
6557
6558 2002-07-22 Michael Snyder <msnyder@redhat.com>
6559
6560 * aix-thread.c (ops_prepare_to_store): Eliminate.
6561 (init_ops): Don't initialize ops.prepare_to_store.
6562 (store_regs_kern): Pre-fetch register buffers from child,
6563 because some registers may not be in the cache. Copy
6564 regs from register cache only if they are cached.
6565 (store_regs_lib): Copy regs from register cache only
6566 if they are cached.
6567 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6568 fill_gprs64): Ditto.
6569
6570 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6571
6572 * aix-thread.c (gdb_assert.h): Include.
6573 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6574 register sizes (from register cache) match size of buffer holding
6575 register data.
6576 (fill_sprs32): Change parameter types to match those in the ptrace()
6577 buffer.
6578 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6579 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6580
6581 2002-07-22 Michael Snyder <msnyder@redhat.com>
6582
6583 * aix-thread.c (supply_sprs64): Cosmetic change.
6584 (supply_sprs32): Cosmetic change.
6585 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6586 (fill_sprs64): Use regcache_collect instead of read_register.
6587 (store_regs_lib): Use regcache_collect instead of
6588 read_register. Use fill_sprs32 instead of fill_sprs64,
6589 if debugging a 32-bit architecture.
6590 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6591 out of the register cache, instead of passing a pointer into
6592 the register cache directly to ptrace. Use regcache_collect
6593 insteaad of read_register.
6594 (ops_prepare_to_store): Use target_read_registers instead
6595 of read_register_bytes.
6596
6597 2002-07-20 Aidan Skinner <aidan@velvet.net>
6598
6599 * MAINTAINERS: Add self under write after approval.
6600
6601 2002-07-20 Aidan Skinner <aidan@velvet.net>
6602
6603 * ada-tasks.c: Change k&r style function definitions to prototyped
6604 form.
6605
6606 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6607
6608 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6609 * x86-64-tdep.c: Include "objfiles.h".
6610 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6611 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6612
6613 2002-07-17 Michal Ludvig <michal@suse.cz>
6614
6615 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6616 (update_context): Initialise cfa variable.
6617
6618 2002-07-17 Michael Snyder <msnyder@redhat.com>
6619
6620 * aix-thread.c: Shorten some long lines.
6621 Bring comments into line with code spec.
6622
6623 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6624
6625 * infrun.c: Re-indent using gdb_indent.sh.
6626
6627 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6628
6629 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6630 Leave the indentation temporarily untouched, to minimize the diffs.
6631
6632 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6633
6634 * stabsread.c: Make os9k sections of the code obsolete,
6635 for real this time.
6636 * stabsread.h: Make os9k sections of the code obsolete.
6637
6638 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6639
6640 * linux-low.c (regsets_store_inferior_registers): Add free()
6641 at the end of a loop to prevent memory leak.
6642 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6643 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6644 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6645 line a comment.
6646 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6647
6648 2002-07-17 Jim Blandy <jimb@redhat.com>
6649
6650 * macrocmd.c (info_macro_command): Remove newline from error
6651 message.
6652
6653 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6654
6655 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6656 (sh_gdbarch_init): Use it for sh-dsp.
6657
6658 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6659
6660 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6661 64-bit DWARF2 format.
6662
6663 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6664
6665 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6666 <sys/proc.h> when not available.
6667
6668 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6669
6670 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6671 * stabsread.c: Make os9k sections of the code obsolete.
6672 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6673 * config/i386/i386os9k.mt: Make file obsolete.
6674 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6675 (COMMON_OBS): Remove os9kread.o
6676 (SFILES): Remove os9kread.c.
6677 (os9kread.o, remote-os9k.o): Make target obsolete.
6678 * remote-os9k.c: Make file obsolete.
6679 * os9kread.c: Make file obsolete.
6680 * Makefile.in
6681
6682 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6683
6684 * NEWS: Mention that the FR30 has been made obsolete.
6685 * fr30-tdep.c: Make file obsolete.
6686 * config/fr30/tm-fr30.h: Ditto.
6687 * config/fr30/fr30.mt: Ditto.
6688 * configure.tgt: Make fr30-*-elf obsolete.
6689 * MAINTAINERS: Make fr30-elf obsolete.
6690
6691 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6692
6693 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6694 found is not inside a section.
6695
6696 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6697
6698 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6699 strerror().
6700 (pdc_realloc): Use xrealloc() instead of realloc().
6701
6702 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6703
6704 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6705 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6706 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6707 macros.
6708
6709 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6710
6711 * aix-thread.c (ptrace_check): Eliminate goto.
6712 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6713 problem.
6714
6715 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6716
6717 * aix-thread.c (gdbcmd.h): Include.
6718 (DEBUG, DBG, DBG2, dbg): Eliminate.
6719 (debug_aix_thread): New static global.
6720 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6721 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6722 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6723 invocations to DBG and DBG2 macros to test against
6724 ``debug_aix_thread'' and call fprintf_unfiltered().
6725 (_initialize_aix_thread): Add new command "set debug aix-thread".
6726
6727 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6728
6729 From Gerhard Tonn <TON@de.ibm.com>:
6730 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6731 instead of supply_register.
6732
6733 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6734
6735 * dwarf2cfi.c: Include "gdb_assert.h".
6736 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6737 non-NULL.
6738 (update_context): Do not use __func__. Add missing ``break''.
6739 (update_context): Do not use __func__.
6740
6741 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6742
6743 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6744 and its setting. Set gdbarch instruction printing functions
6745 directly. For non-rs6000 case use new function
6746 gdb_print_insn_powerpc.
6747 (gdb_print_insn_powerpc): New function.
6748
6749 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6750
6751 * NEWS: Mention that the d30v has been marked obsolete.
6752 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6753 * configure.tgt: Mark d30v-*-* as obsolete.
6754 * d30v-tdep.c: Mark file as obsolete.
6755 * config/d30v/d30v.mt: Ditto.
6756 * config/d30v/tm-d30v.h: Ditto.
6757
6758 2002-07-13 Aidan Skinner <aidan@velvet.net>
6759
6760 * ada-tasks.c (add_task_entry): replace calls to
6761 malloc() with xmalloc
6762 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6763
6764 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6765 ada_finish_decode_line_1, all_sals_for_line
6766 ada_breakpoint_rewrite): replace calls to free() with xfree()
6767
6768 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6769
6770 From Nicholas Duffek (with minor changes by Martin Hunt,
6771 Louis Hamilton, and Kevin Buettner):
6772 * aix-thread.c: New file.
6773
6774 2002-07-12 Petr Sorfa <petrs@caldera.com>
6775
6776 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6777 complaint for invalid attribute class or form.
6778 (read_func_scope): DW_AT_frame_base
6779 better handling of DW_AT_block*.
6780 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6781 better handling of DW_AT_block*.
6782 (read_common_block): DW_AT_location
6783 better handling of DW_AT_block*.
6784 (read_partial_die): DW_AT_location better handling
6785 of DW_AT_block*.
6786 (new_symbol): DW_AT_external better handling of
6787 DW_AT_block*. Proper initialization of variable
6788 "addr".
6789 (attr_form_is_block): New function that returns true
6790 if the attribute's form is of DW_FORM_block*.
6791
6792 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6793
6794 * valops.c (find_method_list): Remove comment about
6795 removed STATIC_MEMFUNCP argument.
6796 (value_find_oload_method_list): Likewise.
6797
6798 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6799
6800 From Nicholas Duffek:
6801 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6802 target_new_objfile_hook.
6803
6804 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6805
6806 From Nicholas Duffek:
6807 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6808 csect.
6809
6810 2002-07-12 Andrew Cagney <cagney@redhat.com>
6811
6812 * MAINTAINERS: Mention --enable-sim-build-warnings.
6813 (m68hc11-elf): Disable sim build warnings.
6814 (m32r-elf): Mark as broken obsolete candidate.
6815 (x86_64-linux-gnu): Mark as buildable with -Werror.
6816 (arm-elf): Change -w to ``,'' which enables warnings but not
6817 -Werror.
6818
6819 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6820
6821 * bcache.h: Update copyright.
6822 (struct bstring, struct bcache): Move definition to "bcache.c".
6823 Replaced by opaque declaration.
6824 (bcache_xfree): Replace free_bcache.
6825 (bcache_xmalloc, bcache_memory_used): Declare.
6826
6827 * bcache.c: Update copyright.
6828 (struct bstring, struct bcache): Moved to here from "bcache.h".
6829 Update comments.
6830 (bcache_xmalloc, bcache_memory_used): New functions.
6831 (bcache_xfree): Replace function free_bcache.
6832
6833 * Makefile.in (objfiles.o): Add $(bcache_h).
6834 (objfiles_h): Remove $(bcache_h).
6835 (symfile.o): Add $(bcache_h).
6836
6837 * symmisc.c: Update copyright.
6838 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6839 (print_objfile_statistics): Use bcache_memory_used.
6840
6841 * symfile.c: Include "bcache.h".
6842 (reread_symbols): Use bcache_xfree.
6843 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6844 (add_psymbol_to_list): Pass psymbol_cache by value.
6845 (add_psymbol_with_dem_name_to_list): Ditto.
6846
6847 * objfiles.h: Update copyright.
6848 (struct bcache): Declare opaque. Do not include "bcache.h".
6849 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6850 bcache'' pointers.
6851 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6852
6853 * objfiles.c: Include "bcache.h". Update copyright.
6854 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6855 macro_cache.
6856 (free_objfile): Use bcache_xfree.
6857
6858 2002-07-11 Grace Sainsbury <graces@redhat.com>
6859
6860 * monitor.c (monitor_fetch_register): Make name a constant.
6861 (monitor_store_register): Same.
6862
6863 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6864
6865 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6866 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6867 (finish_block) For non-function blocks, hash the symbol table. For
6868 function blocks, mark the symbol table as unhashed.
6869 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6870 (msymbol_hash_iw): Likewise.
6871 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6872 value.
6873 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6874 (lookup_minimal_symbol): Likewise for both.
6875 * symtab.h (struct block): Add `hashtable' flag. Comment the
6876 hashtable.
6877 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6878 (ALL_BLOCK_SYMBOLS): Update.
6879 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6880 (struct symbol): Add `hash_next' pointer.
6881 * symtab.c (lookup_block_symbol): Search using the hash table when
6882 possible.
6883 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6884 (search_symbols, find_addr_symbol): Likewise.
6885
6886 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6887 (read_dst_symtab): Likewise.
6888 * jv-lang.c (get_java_class_symtab): Likewise.
6889 * mdebugread.c: Include "gdb_assert.h".
6890 (shrink_block): Assert that the block being modified is not hashed.
6891 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6892 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6893 symbols.
6894 (dump_symtab): Recognize hashed blocks.
6895 * printcmd.c (print_frame_args): Assert that function blocks do not
6896 have hashed symbol tables.
6897 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6898 (fill_in_ada_prototype, debug_print_block): Likewise.
6899 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6900
6901 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6902
6903 * stack.c (print_frame): Use result of frame_address_in_block()
6904 instead of fi->pc when evaluating symbols.
6905 (backtrace_command_1): Ditto.
6906
6907 2002-07-11 Andrew Cagney <cagney@redhat.com>
6908
6909 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6910 Make static.
6911
6912 * arm-tdep.c (arm_register_name): Make return type constant.
6913
6914 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6915
6916 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6917 prototype.
6918 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6919 * s390-tdep.c (s390_fp_regnum): Ditto.
6920 (s390_read_fp): Ditto.
6921 (s390_pop_frame): Ditto.
6922 (_initialize_s390_tdep): Ditto.
6923 * remote.c (get_remote_state): Ditto.
6924 * procfs.c (mappingflags): Ditto.
6925 * memattr.c (_initialize_mem): Ditto.
6926 * mcore-tdep.c (mcore_pop_frame): Ditto.
6927 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6928 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6929 * language.c (set_case_str): Ditto.
6930 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6931 * frv-tdep.c (new_variant): Ditto.
6932 (frv_stopped_data_address): Ditto.
6933 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6934 (context_alloc): Ditto.
6935 (frame_state_alloc): Ditto.
6936 (unwind_tmp_obstack_init): Ditto.
6937 (unwind_tmp_obstack_free): Ditto.
6938 (cfi_read_fp): Ditto.
6939 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6940 (cris_pop_frame): Ditto.
6941 * c-lang.c (scanning_macro_expansion): Ditto.
6942 (finished_macro_expansion): Ditto.
6943 (c_preprocess_and_parse): Ditto.
6944 * gdbarch.sh: Ditto.
6945 * gdbarch.h, gdbarch.c: Regenerate.
6946 * config/mn10200/tm-mn10200.h: Adjust indentation.
6947 * target.c: Adjust indentation.
6948 * symtab.h: Adjust indentation.
6949 * stabsread.h: Adjust indentation.
6950 * remote-es.c: Adjust indentation.
6951 * os9kread.c: Adjust indentation.
6952
6953 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6954
6955 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6956 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6957
6958 2002-07-10 Grace Sainsbury <graces@redhat.com>
6959
6960 * NEWS: Mention m68k, mcore multi-arching.
6961 * MAINTAINERS: Change status of m68k, mcore to reflect
6962 multi-arching.
6963
6964 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6965
6966 * valops.c (find_overload_match): Free oload_syms.
6967
6968 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6969
6970 Define HAVE_SYS_PROC_H if sys/proc.h exists
6971 * configure.in: Add check for sys/proc.h
6972 * config.in: Regenerate.
6973 * configure: Regenerate.
6974
6975 2002-07-09 Grace Sainsbury <graces@redhat.com>
6976
6977 * config/m68k/tm-m68k.h: Remove macros wrapped in
6978 #if !GDB_MULTI_ARCH.
6979
6980 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6981
6982 * config.in, configure: Regenerate.
6983
6984 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6985
6986 * dwarf2cfi.c: Include "gcore.h".
6987 (execute_stack_op): Fix implementation of the
6988 DW_OP_deref and DW_OP_deref_size operators by letting do their
6989 lookup in the target.
6990
6991 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6992
6993 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6994 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6995 tdep->sc_sp_offset.
6996
6997 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6998
6999 Fix PR gdb/595, gdb/602
7000 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7001 Don't call value_cast, just read the vtable pointer; update comments
7002 to match.
7003
7004 2002-07-05 Grace Sainsbury <graces@redhat.com>
7005
7006 * config/mcore/tm-mcore.h: Remove file.
7007 * config/mcore/mcore.mt: Remove definition of TM_FILE
7008 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7009
7010 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7011
7012 * i386bsd-tdep.c: Include "gdb_string.h".
7013
7014 2002-07-04 Grace Sainsbury <graces@redhat.com>
7015
7016 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7017 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7018 mcore-tdep.
7019 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7020 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7021 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7022 (RETVAL_REGNUM): Move macros from tm-mcore.h
7023 (mcore_reg_struct_has_addr): New function.
7024 (mcore_gdbarch_init): Added initializations for the macros removed
7025 from tm-mcore.h.
7026
7027 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7028
7029 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7030 traditonal string branding within the ELF header.
7031
7032 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7033
7034 * symtab.c (remove_params): New function.
7035 (make_symbol_overload_list): Use it instead of cplus_demangle.
7036 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7037
7038 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7039
7040 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7041
7042 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7043 New variables.
7044 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7045 and tdep->sigtramp_end.
7046 * i386obsd-nat.c: New file.
7047 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7048
7049 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7050 Don't call get_current_frame().
7051
7052 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 * i386-nat.c (child_post_startup_inferior): New function
7055 calling i386_cleanup_dregs if
7056 I386_USE_GENERIC_WATCHPOINTS is defined.
7057 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7058 conditional to acknowledge that i386-nat.c has its
7059 own child_post_startup_inferior function.
7060
7061 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7062
7063 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7064 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7065 instead of MAX_REGISTER_RAW_SIZE.
7066 (i386_extract_return_value, i386_extract_struct_value_address):
7067 Convert to use regcache.
7068 (i386_gdbarch_init): Set max_register_raw_size and
7069 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7070 Set extract_return_value and extract_struct_value_address instead
7071 of their deprecated variants.
7072
7073 Convert i386 target to generic dummy frames.
7074 * i386-tdep.c: Include "symfile.h".
7075 (i386_frameless_signal_p): Consider a function to be frameless if
7076 the pc points at the first instruction of the function.
7077 (i386_frame_chain): Handle (generic) call dummies.
7078 (i386_frame_saved_pc): Likewise.
7079 (i386_frame_init_saved_regs): Remove code dealing with call
7080 dummies on the stack.
7081 (i386_push_dummy_frame): Removed.
7082 (i386_call_dummy_words): Removed.
7083 (i386_fix_call_dummy): Removed.
7084 (i386_push_return_address): New function.
7085 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7086 parameter, and don't call get_current_frame.
7087 (i386_pop_frame): New function.
7088 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7089 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7090 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7091 call_dummy_length to 0, set call_dummy_words to NULL, set
7092 sizeof_call_dummy_words to 0, set fix_call_dummy to
7093 generic_fix_call_dummy, set pc_in_call_dummy to
7094 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7095 generic_push_dummy_frame, set push_return_address to
7096 i386_push_return_address and set frame_chain_valid to
7097 generic_file_frame_chain_valid.
7098
7099 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7100
7101 * gdbarch.sh (struct regcache): Add opaque declaration.
7102 (EXTRACT_RETURN_VALUE): New architecture method.
7103 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7104 * gdbarch.h, gdbarch.c: Regenerate.
7105 * arch-utils.c (legacy_extract_return_value): New function.
7106 * arch-utils.h (legacy_extract_return_value): Declare.
7107 * values.c (value_being_returned): Re-enable code handling
7108 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7109 deprecated_grub_regcache_for_registers call to block handling
7110 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7111 (EXTRACT_RETURN_VALUE): Do not define.
7112
7113 2002-07-03 Grace Sainsbury <graces@redhat.com>
7114
7115 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7116 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7117 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7118 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7119 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7120 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7121 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7122 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7123 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7124 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7125 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7126 argument so the function fits the prototype in the architecture
7127 vector.
7128 (mcore_pop_frame): Remove argument so the function fits the
7129 prototype. Use get_current_frame instead of the argument.
7130 (mcore_push_arguments): Change type of struct_return so the
7131 function can be used in the architecture vector.
7132 (mcore_store_struct_return): Add.
7133 (mcore_frame_init_saved_regs): Add.
7134 (mcore_gdbarch_init): Add function calls to replace the macros
7135 removed from tm-mcore.h
7136
7137 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7138
7139 * infcmd.c (print_return_value): Remove compatibility code calling
7140 deprecated_grub_regcache_for_registers.
7141
7142 * values.c: Include "regcache.h".
7143 (value_being_returned): Update. Use
7144 deprecated_grub_regcache_for_registers to extract the register
7145 buffer address.
7146 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7147 ``struct regcache''.
7148 * Makefile.in (values.o): Add dependency on $(regcache_h).
7149
7150 * inferior.h (run_stack_dummy): Change type of second parameter to
7151 a ``struct regcache''.
7152 * valops.c (hand_function_call): Change type of retbuf to ``struct
7153 regcache''. Allocate using regcache_xmalloc, clean using
7154 make_cleanup_regcache_xfree.
7155 * infcmd.c (run_stack_dummy): Update. Use
7156 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7157
7158 * regcache.c (do_regcache_xfree): New function.
7159 (make_cleanup_regcache_xfree): New function.
7160 * regcache.h (make_cleanup_regcache_xfree): Declare.
7161
7162 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7163
7164 * event-top.c (command_line_handler): Don't read past
7165 beginning of buffer.
7166
7167 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7168
7169 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7170 struct frame_id.
7171 (varobj_create): Store frame_id for root.
7172 (varobj_gen_name): Use xasprintf.
7173 (varobj_update): Save and restore frame using get_frame_id() and
7174 frame_find_by_id().
7175 (create_child): Use xasprintf.
7176 (new_root_variable): Initialize frame_id.
7177 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7178 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7179 to prevent memory leak.
7180
7181 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7182
7183 * valops.c (hand_function_call): Move declaration of retbuf to
7184 start of function, allocate using malloc, add a cleanup but before
7185 the inf_status cleanup, cleanup the buffer. Rename local variable
7186 old_chain to inf_status_cleanup.
7187
7188 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7189
7190 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7191
7192 * cli/cli-decode.c (cmd_func_p): New function.
7193 (cmd_func): New function.
7194
7195 * command.h: Add cmd_func() and cmd_func_p().
7196
7197 2002-07-03 Grace Sainsbury <graces@redhat.com>
7198
7199 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7200 (REGISTER_SIZE): Remove.
7201 (MAX_REGISTER_RAW_SIZE): Remove.
7202 (REGISTER_VIRTUAL_TYPE): Remove.
7203 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7204 (REGISTER_NAME): Remove.
7205 (USE_GENERIC_DUMMY_FRAMES): Remove.
7206 (CALL_DUMMY): Remove.
7207 (CALL_DUMMY_START_OFFSET): Remove.
7208 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7209 (CALL_DUMMY_LOCATION): Remove.
7210 (FIX_CALL_DUMMY): Remove.
7211 (CALL_DUMMY_ADDRESS): Remove.
7212 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7213 (SAVE_DUMMY_FRAME_TOS): Remove.
7214 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7215 (mcore_register_virtual_type): New function.
7216 (mcore_register_byte): New function.
7217 (mcore_register_size): New function.
7218 (mcore_register_name): New function.
7219 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7220 macros removed from tm-mcore.h.
7221 (mcore_dump_tdep): Add.
7222 (_initialize_mcore_tdep): Add gdbarch_register call.
7223
7224 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7225
7226 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7227 frameless_look_for_prologue, such that we actually call this
7228 function.
7229
7230 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7231
7232 * frame.h (frame_address_in_block): New function.
7233
7234 * blockframe.c (frame_address_in_block): New function extracted
7235 from get_frame_block().
7236 (get_frame_block): Use frame_address_in_block().
7237 (block_innermost_frame): Use frame_address_in_block() to match
7238 the frame pc address against the block boundaries rather than
7239 the frame pc directly. This prevents a failure when a frame pc
7240 is actually a return-address pointing immediately after the end
7241 of the given block.
7242
7243 2002-07-02 Grace Sainsbury <graces@redhat.com>
7244
7245 * MAINTAINERS: Add self under write after approval.
7246
7247 2002-07-02 Grace Sainsbury <graces@redhat.com>
7248
7249 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7250 used in architecture vector. The default is
7251 m68k_local_breakpoint_from_pc.
7252 (m68k_local_breakpoint_from_pc): Add.
7253 (enum): Add register numbers from tm-m68k.h.
7254 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7255 vector.
7256 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7257 GDB_MULTI_ARCH_PARTIAL.
7258 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7259 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7260 m68k-tdep.c.
7261 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7262 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7263 to enum in m68k-tdep.c
7264
7265 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7266
7267 * solib-osf.c (open_map): Compute the list of shared libraries
7268 loaded by the inferior, rather than the list of libraries loaded
7269 by GDB itself. Otherwise, GDB ends up reading the symbols from
7270 the wrong shared libraries...
7271
7272 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7273
7274 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7275 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7276 macros.
7277 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7278 Remove functions.
7279 (FRAMELESS_SIGNAL): Remove function.
7280 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7281 i386_linux_saved_pc_after_call): Removed.
7282 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7283 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7284 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7285
7286 * i386-tdep.c (i386_frameless_signal_p): New function.
7287 (i386_frame_chain): Deal with frameless signals.
7288 (i386_sigtramp_saved_sp): New function.
7289 (i386_frame_saved_pc): Deal with frameless signals.
7290 (i386_saved_pc_after_call): Make sure the correct value is
7291 returned just after entry into a sigtramp.
7292 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7293 i386fbsd4_sc_sp_offset): New variables.
7294 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7295 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7296 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7297 similiar to what we already did for sc_pc_offset.
7298 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7299 tdep->sc_sp_offset.
7300
7301 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7302
7303 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7304
7305 * config/i386/tm-x86-64linux.h: New.
7306 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7307 definitions.
7308 * config/i386/nm-x86-64.h: Rename to ...
7309 * config/i386/nm-x86-64linux.h: ... this one.
7310 * config/i386/x86-64linux.mh: Reflect the above change.
7311
7312 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7313
7314 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7315 with sigcontext_addr. Add sc_sp_offset.
7316 (i386bsd_sigtramp_saved_pc): Remove prototype.
7317 (i386bsd_sicontext_addr): Add prototype.
7318 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7319 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7320 (i386_svr4_sigtramp_saved_pc): Removed.
7321 (i386_svr4_sigcontext_addr): New function.
7322 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7323 Initialize tdep->sigcontext_addr instead. Initialize
7324 tdep->sc_pc_offset and tdep->sc_sp_offset.
7325 (i386_gdbarch_init): Likewise.
7326 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7327 any more.
7328 (i386bsd_sigtramp_saved_pc): Remove function.
7329 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7330 Initialize tdep->sigcontext_addr instead. Initialize
7331 tdep->sc_pc_offset.
7332 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7333 of tdep->sigtramp_saved_pc.
7334 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7335 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7336 instead.
7337
7338 * i386-tdep.c (i386_frameless_function_invocation,
7339 i386_frame_num_args, i386_frame_init_saved_regs,
7340 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7341 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7342 i386_extract_return_value, i386_store_return_value,
7343 i386_extract_struct_value_address, i386_register_virtual_type,
7344 i386_register_convertible, i386_register_convert_to_virtual,
7345 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7346 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7347 static.
7348
7349 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7350
7351 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7352
7353 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7354 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7355 this macro. Include "value.h".
7356
7357 2002-06-30 Aidan Skinner <aidan@velvet.net>
7358
7359 * ada-exp.tab.c: remove as it's a generated file
7360 * ada-lex.c: remove as it's a generated file
7361
7362 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7363
7364 * config/i386/tm-i386.h (struct frame_info, struct
7365 frame_saved_regs, struct value, struct type): Remove forward
7366 declarations.
7367
7368 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7369 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7370 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7371 (FILL_FPXREGSET): Define.
7372
7373 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7374
7375 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7376 i[3456]86-*-netbsd* case.
7377 * config/i386/tm-obsd.h: Removed.
7378 * config/i386/obsd.mt: Removed.
7379 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7380 core-aout.o.
7381 (MH_CFLAGS): Add -DYYDEBUG=0.
7382
7383 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7384 i386nbsd_sc_pc_offset on OpenBSD too.
7385
7386 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7387 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7388 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7389 define.
7390 * i386bsd-tdep.c: Include "arch-utils.h".
7391 (i386bsd_aout_in_solib_call_trampoline): New function.
7392 (i386bsd_init_abi): Set in_solib_call_trampoline to
7393 i386bsd_aout_in_solib_call_trampoline.
7394 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7395 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7396
7397 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7398
7399 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7400 (struct obstack, struct bcache): Add opaque declarations.
7401 * Makefile.in (macrotab_h): Update
7402
7403 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7404
7405 * blockframe.c (generic_find_dummy_frame): Change return type to
7406 ``struct regcache''.
7407 (struct dummy_frame): Replace field ``registers'' with regcache, a
7408 struct regcache object.
7409 (generic_find_dummy_frame): Update.
7410 (generic_push_dummy_frame): Update. Use regcache_xfree,
7411 regcache_xmalloc and regcache_cpy.
7412 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7413 regcache_xfree.
7414 (deprecated_generic_find_dummy_frame): Update.
7415 (generic_read_register_dummy): Update. Use
7416 regcache_read_as_address.
7417 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7418 (generic_get_saved_register): Update. Use regcache_read.
7419
7420 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7421
7422 * Makefile.in (objfiles_h): Add $(bcache_h).
7423 * objfiles.h: Include "bcache.h".
7424
7425 * Makefile.in (symtab_h): Remove $(bcache_h).
7426 * symtab.h: Do not include "bcache.h".
7427
7428 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7429
7430 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7431 generic_func_frame_chain_valid.
7432
7433 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7434
7435 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7436 * config/i386/tm-fbsd.h: Likewise.
7437
7438 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7439
7440 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7441 generic_unwind_get_saved_register.
7442
7443 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7444
7445 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7446 * regcache.c (supply_register): Add missing argument to
7447 register_buffer call.
7448
7449 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7450
7451 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7452 Solaris /bin/grep does not not like it. From Peter Schauer.
7453
7454 2002-06-26 Tom Tromey <tromey@redhat.com>
7455
7456 * command.h (add_setshow_cmd): Declare.
7457 (add_setshow_cmd_full): Declare.
7458 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7459 returns void. Use add_setshow_cmd_full.
7460 (add_setshow_cmd_full): New function.
7461 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7462 (add_setshow_boolean_cmd): Likewise.
7463
7464 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7465
7466 * config/vax/tm-vax.h: Protect from multiple inclusion.
7467 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7468 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7469 * config/vax/tm-vaxbsd.h: ...here. New file.
7470 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7471
7472 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7473
7474 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7475 (BELIEVE_PCC_PROMOTION): Remove.
7476 (AP_REGNUM): Move to...
7477 * config/vax/nm-vax.h: ...here.
7478 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7479 (vax_breakpoint_from_pc): New function.
7480 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7481 and gdbarch_believe_pcc_promotion.
7482
7483 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * Makefile.in (vax_tdep_h): Define.
7486 (vax-tdep.o): Use $(vax_tdep_h).
7487 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7488 (vax_dump_tdep): New function.
7489 (_initialize_vax_tdep): Register vax_dump_tdep.
7490 * vax-tdep.h: Include osabi.h.
7491 (struct gdbarch_tdep): New.
7492
7493 2002-06-26 Andrew Cagney <cagney@redhat.com>
7494
7495 * frame.h (deprecated_generic_find_dummy_frame): Rename
7496 generic_find_dummy_frame.
7497 * blockframe.c (generic_find_dummy_frame): Make static.
7498 (deprecated_generic_find_dummy_frame): New function.
7499 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7500 generic_find_dummy_frame with deprecated_find_dummy_frame.
7501 (sh64_nofp_frame_init_saved_regs): Ditto.
7502 (sh_fp_frame_init_saved_regs): Ditto.
7503 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7504 (s390_frame_chain): Ditto.
7505 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7506
7507 2002-06-26 Grace Sainsbury <graces@redhat.com>
7508
7509 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7510 gdbarch vector are at the top.
7511 (NUM_REGS): Remove.
7512 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7513 (FRAME_ARGS_ADDRESS): Remove.
7514 (FRAME_LOCALS_ADDRESS): Remove.
7515 (FRAME_NUM_ARGS): Remove.
7516 (FRAME_ARGS_SKIP): Remove.
7517 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7518 (m68k_gdbarch_init): Add gdbarch initializations for macros
7519 undefined in tm-m68k.h
7520
7521 2002-06-26 Grace Sainsbury <graces@redhat.com>
7522
7523 * monitor.h: Add the function regname to monitor_ops
7524 structure. This way NUM_REGS does not have to be a constant.
7525 * monitor.c (monitor_fetch_register): Added support for regname
7526 function. The function is called if the array regnames is NULL.
7527 (monitor_store_register): Same.
7528 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7529 regnames array.
7530 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7531 cpu32bug_cmds.regname to point to new function.
7532 * abug-rom.c (abug_regname): Same as above.
7533 (init_abug_cmds): Same.
7534 * dbug-rom.c (dbug_regname): Same as above.
7535 (init_dbug_cmds): Same.
7536 * remote-est.c (est_regname): Same.
7537 (init_est_cmds): Same.
7538 * rom68k-rom.c (rom68k_regname): Same.
7539 (init_rom68k_cmds): Same.
7540
7541 2002-06-25 Tom Tromey <tromey@redhat.com>
7542
7543 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7544
7545 2002-06-25 Andrew Cagney <cagney@redhat.com>
7546
7547 * infrun.c (stop_registers): Change variable's type to ``struct
7548 regcache'''.
7549 (xmalloc_inferior_status): Delete function.
7550 (free_inferior_status): Delete function.
7551 (normal_stop): Use regcache_cpy.
7552 (struct inferior_status): Change type of fields ``stop_registers''
7553 and ``registers'' to ``struct regcache''.
7554 (write_inferior_status_register): Use regcache_write.
7555 (save_inferior_status): Instead of calling
7556 xmalloc_inferior_status, allocate the inf_status buffer directly.
7557 Use regcache_dup_no_passthrough and regcache_dup to save the
7558 buffers.
7559 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7560 Replace the stop_registers regcache instead of overriding it. Use
7561 regcache_xfree. Instead of calling free_inferior_status, xfree
7562 the buffer directly.
7563 (discard_inferior_status): Use regcache_xfree. Instead of calling
7564 free_inferior_status, xfree the buffer directly.
7565 (build_infrun): Use regcache_xmalloc.
7566 (_initialize_infrun): Delete redundant call to build_infrun.
7567
7568 * Makefile.in (infcmd.o): Add $(regcache_h).
7569
7570 * infcmd.c: Include "regcache.h".
7571 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7572 obtain the address of `stop_registers' register buffer.
7573 (print_return_value): Ditto.
7574
7575 * inferior.h (struct regcache): Add opaque declaration.
7576 (stop_registers): Change variable's declared type to ``struct
7577 regcache''.
7578
7579 2002-06-24 Tom Tromey <tromey@redhat.com>
7580
7581 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7582 * target.c (initialize_targets): Fixed typo in
7583 trust-readonly-sections `show' documentation.
7584
7585 * main.c: Marked all strings with _().
7586
7587 2002-06-24 Don Howard <dhoward@redhat.com>
7588
7589 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7590 that means max CORE_ADDR+1.
7591 (lookup_mem_region): Ditto.
7592 (mem_info_command): Ditto.
7593
7594 2002-06-24 Grace Sainsbury <graces@redhat.com>
7595
7596 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7597 (REGISTER_BYTES_OK): Remove.
7598 (REGISTER_BYTES): Remove.
7599 (STORE_STRUCT_RETURN): Remove.
7600 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7601 (STORE_RETURN_VALUE): Remove.
7602 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7603 (FRAME_CHAIN): Remove.
7604 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7605 (FRAME_SAVED_PC): Remove.
7606 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7607 (m68k_store_struct_return): Add.
7608 (m68k_deprecated_extract_return_value): Add.
7609 (m68k_deprecated_extract_struct_value_address): Add.
7610 (m68k_store_return_value): Add.
7611 (m68k_frame_chain): Add.
7612 (m68k_frameless_function_invocation): Add.
7613 (m68k_frame_saved_pc): Add.
7614 (m68k_gdbarch_init): added set_gdbarch calls for new
7615 functions and deleted macros.
7616
7617 2002-06-23 Tom Tromey <tromey@redhat.com>
7618
7619 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7620 (ALLDEPFILES): Likewise.
7621 (udiheaders): Removed.
7622 (udip2soc.o): Likewise.
7623 (udi2go32.o): Likewise.
7624 (udr.o): Likewise.
7625 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7626
7627 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7628
7629 * infrun.c (_initialize_infrun): Delete unnecessary call to
7630 build_infrun.
7631
7632 * regcache.h: Update comments describing the regcache_cpy family
7633 of functions.
7634 (regcache_save, regcache_restore): Delete declaration.
7635 (regcache_save_no_passthrough): Delete declaration.
7636 (regcache_restore_no_passthrough): Delete declaration.
7637 * regcache.c (regcache_save): Delete function.
7638 (regcache_save_no_passthrough): Delete function.
7639 (regcache_restore): Delete function.
7640 (regcache_restore_no_passthrough): Delete function.
7641
7642 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7643
7644 * config/m68k/tm-m68k.h: Fix typo.
7645 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7646 (m68k_frame_init_saved_regs): Declare.
7647
7648 2002-06-21 Jim Blandy <jimb@redhat.com>
7649
7650 Remove some vestiges of Harris 88k support.
7651 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7652 register numbering quirk.
7653 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7654 odd symbols occurring in Harris 88k ELF targets.
7655
7656 2002-06-21 Tom Tromey <tromey@redhat.com>
7657
7658 * gdb_locale.h: New file.
7659 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7660 (defs_h): Added gdb_locale.h.
7661 * configure, config.in: Rebuilt.
7662 * configure.in (PACKAGE): Define.
7663 * defs.h: Include gdb_locale.h.
7664 * main.c (captured_main): Call setlocale, bindtextdomain,
7665 textdomain.
7666
7667 2002-06-21 Dave Brolley <brolley@redhat.com>
7668
7669 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7670 * config/frv/frv.mt: New file.
7671 * config/frv/tm-frv.h: New file.
7672 * configure.tgt: Support frv-*-*.
7673 * Makefile.in (frv-tdep.o): New target.
7674 * frv-tdep.c: New file.
7675 * NEWS: Mention frv.
7676
7677 2002-06-21 Dave Brolley <brolley@redhat.com>
7678
7679 * MAINTAINERS: Add self to "Write After Approval" list.
7680
7681 2002-06-21 Grace Sainsbury <graces@redhat.com>
7682
7683 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7684 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7685 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7686 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7687 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7688
7689 * m68k-tdep.c: Include arch-utils.h
7690 (m68k_register_raw_size): Add.
7691 (m68k_register_virtual_size): Add.
7692 (m68k_register_virtual_type): Add.
7693 (m68k_register_name): Add.
7694 (m68k_stack_align): Add.
7695 (m68k_register_byte): Add.
7696 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7697 tm-m68k.h.
7698
7699 2002-06-21 Grace Sainsbury <graces@redhat.com>
7700
7701 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7702 m68k_find_saved_regs.
7703 (m68k_pop_frame): Removed saved_regs structure, and replaced
7704 references to it with frame->saved_regs.
7705 (m68k_gdbarch_init): Added function calls to initialize the
7706 gdbarch structure.
7707 (m68k_fix_call_dummy): Add.
7708 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7709 (CALL_DUMMY): Remove.
7710 (CALL_DUMMY_LENGTH): Remove.
7711 (CALL_DUMMY_START_OFFSET): Remove.
7712 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7713 (FIX_CALL_DUMMY): Remove.
7714 (PUSH_DUMMY_FRAME): Remove.
7715 (POP_FRAME): Remove.
7716
7717 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7718
7719 * parse.c (parse_fprintf): New function used to avoid calls to
7720 fprintf in bison parser generated debug code.
7721 * parser-defs.h: Declaration of new parse_fprintf function.
7722 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7723 Set YYDEBUG to 1 by default.
7724 Set YYFPRINTF as parse_fprintf.
7725
7726 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7727
7728 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7729 encoding anymore.
7730 (pointer_encoding, enum ptr_encoding): New.
7731 (execute_cfa_program): Take care about pointer encoding.
7732 (dwarf2_build_frame_info): Only call parse_frame_info for
7733 .debug_frame and .eh_frame.
7734 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7735 fixed augmentation handling, added relative addressing,
7736 ignore duplicate FDEs. Added comments.
7737 * dwarf2cfi.c: Reindented.
7738
7739 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7740
7741 * event-top.c (command_handler): Don't use space_at_cmd_start
7742 unless there is sbrk() on the host. Assign time and space data
7743 to union fields of the appropriate length.
7744
7745 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7746
7747 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7748 x86_64_register_name. Return type changed to 'const char *'.
7749 (x86_64_register_name2nr): Rename to x86_64_register_number.
7750 (x86_64_gdbarch_init): Update to reflect the change.
7751 * x86-64-tdep.h: Ditto.
7752 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7753 (supply_fpregset): Ditto.
7754
7755 2002-06-19 Andrew Cagney <cagney@redhat.com>
7756
7757 * regcache.h: Update copyright.
7758 (struct regcache, struct gdbarch): Add opaque declarations.
7759 (current_regcache): Declare global variable.
7760 (regcache_read, regcache_write): Add gdbarch parameter.
7761 (regcache_save, regcache_save_no_passthrough)
7762 (regcache_restore, regcache_restore_no_passthrough)
7763 (regcache_dup, regcache_dup_no_passthrough)
7764 (regcache_cpy, regcache_cpy_no_passthrough)
7765 (deprecated_grub_regcache_for_registers)
7766 (deprecated_grub_regcache_for_register_valid)
7767 (regcache_valid_p): Add function declarations.
7768
7769 * regcache.c: Update copyright.
7770 (regcache_descr_handle): New global variable.
7771 (struct regcache_descr): Define.
7772 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7773 (regcache_descr, xfree_regcache_descr): New functions.
7774 (struct regcache): Define.
7775 (regcache_xmalloc, regcache_xfree): New functions.
7776 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7777 (regcache_dup, regcache_dup_no_passthrough): New functions.
7778 (regcache_valid_p, regcache_read_as_address): New functions.
7779 (deprecated_grub_regcache_for_registers): New function.
7780 (deprecated_grub_regcache_for_register_valid): New function.
7781 (current_regcache): New global variable.
7782 (register_buffer): Add regcache parameter. Update calls.
7783 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7784 (read_register_gen, write_register_gen): Update register_buffer
7785 call. Test for legacy_p instead of gdbarch_register_read_p or
7786 gdbarch_register_write_p.
7787 (regcache_collect): Update register_buffer call.
7788 (build_regcache): Rewrite. Use deprecated grub functions.
7789 (regcache_save, regcache_save_no_passthrough): New functions.
7790 (regcache_restore, regcache_restore_no_passthrough): New
7791 functions.
7792 (_initialize_regcache): Create the regcache_data_handle. Swap
7793 current_regcache global variable.
7794
7795 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7796 parameter to regcache_read and regcache_write calls.
7797 (sh4_register_read): Ditto.
7798 (sh64_pseudo_register_read): Ditto.
7799 (sh64_register_read): Ditto.
7800 (sh_pseudo_register_write): Ditto.
7801 (sh4_register_write): Ditto.
7802 (sh64_pseudo_register_write): Ditto.
7803 (sh64_register_write): Ditto.
7804
7805 * defs.h (XCALLOC): Define.
7806
7807 2002-06-19 Grace Sainsbury <graces@redhat.com>
7808
7809 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7810 * m68k-tdep.c (m68k_gdbarch_init): Added.
7811 (m68k_dump_tdep): Added.
7812
7813 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7814
7815 * ada-lang.c (fill_in_ada_prototype): Update comment.
7816
7817 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7818
7819 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7820 MIPS_ABI_LAST.
7821 (mips_abi_string, mips_abi_strings): New.
7822 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7823 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7824 tdep->mips_abi_string. Honor mips_abi_string. Default to
7825 O32 if no ABI is found.
7826 (mips_dump_tdep): Use mips_abi_strings.
7827 (mips_abi_update): New function.
7828 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7829 ``set mips abi'' and ``show mips abi''. Check the size of
7830 mips_abi_strings.
7831
7832 2002-06-19 Andrew Cagney <cagney@redhat.com>
7833
7834 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7835 constant.
7836
7837 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7838
7839 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7840 current frame using only the first stack size adjustment. All
7841 subsequent size adjustments are not considered to be part of
7842 the "static" part of the current frame.
7843 Compute the address of the saved registers relative to the
7844 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7845 in use in this frame.
7846
7847 2002-06-18 Don Howard <dhoward@redhat.com>
7848
7849 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7850 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7851 suggesting this solution.
7852
7853 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7854
7855 * config/romp/xm-rtbsd.h: Delete file.
7856 * config/romp/rtbsd.mh: Delete file.
7857
7858 2002-06-18 Keith Seitz <keiths@redhat.com>
7859
7860 * breakpoint.c (condition_command): Post breakpoint_modify
7861 when a condition is added to an existing breakpoint.
7862 (commands_command): Likewise for commands.
7863 (set_ignore_count): Likewise for ignore counts.
7864 If no tty, do not simply return, still need to send event
7865 notification.
7866 (ignore_command): Only print a newline if the command came
7867 from a tty.
7868 Don't call breakpoints_changed, since this is now properly
7869 handled by set_ignore_count.
7870
7871 2002-06-18 Andrew Cagney <cagney@redhat.com>
7872
7873 * MAINTAINERS: Note that cris-elf target can be compiled with
7874 -Werror.
7875 * cris-tdep.c (cris_register_name): Make return type constant.
7876 (cris_breakpoint_from_pc): Ditto.
7877
7878 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7879
7880 * frame.h (struct frame_info): Change type of context to
7881 'struct context'.
7882
7883 2002-06-17 Andrew Cagney <cagney@redhat.com>
7884
7885 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7886 pointer.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888 * config/mips/tm-mips.h (mips_register_name): Update.
7889 * i386-tdep.h (i386_register_name): Update.
7890 * mips-tdep.c (mips_register_name): Update
7891 * alpha-tdep.c (alpha_register_name): Update.
7892 * arch-utils.c (legacy_register_name): Update.
7893 * arch-utils.h (legacy_register_name): Update.
7894 * avr-tdep.c (avr_register_name): Update.
7895 * ia64-tdep.c (ia64_register_name): Update.
7896 * i386-tdep.c (i386_register_name): Update.
7897 * sparc-tdep.c (sparc32_register_name): Update.
7898 (sparc64_register_name): Update.
7899 (sparclite_register_name): Update.
7900 (sparclet_register_name): Update.
7901 * sh-tdep.c (sh_generic_register_name): Update.
7902 (sh_sh_register_name): Update.
7903 (sh_sh3_register_name): Update.
7904 (sh_sh3e_register_name): Update.
7905 (sh_sh_dsp_register_name): Update.
7906 (sh_sh3_dsp_register_name): Update.
7907 (sh_sh4_register_name): Update.
7908 (sh_sh64_register_name): Update.
7909 * s390-tdep.c (s390_register_name): Update.
7910 * rs6000-tdep.c (rs6000_register_name): Update.
7911 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7912 (ns32k_register_name_32382): Update.
7913 * d10v-tdep.c (d10v_ts2_register_name): Update.
7914 (d10v_ts3_register_name): Update.
7915 * xstormy16-tdep.c (xstormy16_register_name): Update.
7916 * vax-tdep.c (vax_register_name): Update.
7917 * v850-tdep.c (v850_register_name): Update.
7918 * m68hc11-tdep.c (m68hc11_register_name): Update.
7919 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7920 (am33_register_name): Update.
7921
7922 2002-06-17 Grace Sainsbury <graces@redhat.com>
7923
7924 * m68k-tdep.c: Reindented.
7925
7926 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7927
7928 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7929 list of predefined types.
7930
7931 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7932
7933 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7934 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7935 REGISTER_CONVERT_TO_RAW): Remove defines.
7936 (i386_register_virtual_type, i386_register_convertible,
7937 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7938 Remove prototypes.
7939 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7940 macros mentioned above.
7941
7942 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7943 (i386lynx_saved_pc_after_call): Remove prototype.
7944 * i386ly-tdep.c: Include "i386-tdep.h".
7945 (i386lynx_saved_pc_after_call): Make static. Use
7946 read_memory_nobpt instead of read_memory. Use
7947 read_memory_unsigned_integer instead of read_memory_integer.
7948 (i386lynx_init_abi): New function.
7949 (i386lynx_coff_osabi_sniffer): New function.
7950 (_initialize_i386bsd_tdep): New function.
7951
7952 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7953 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7954 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7955 (i386_fix_call_dummy): Remove prototype.
7956 * i386-tdep.c (i386_call_dummy_words): New variable.
7957 (i386_gdbarch_init): Adjust for removal of the
7958 macros mentioned above.
7959
7960 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7961
7962 * command.h (add_setshow_auto_boolean_cmd): Replace
7963 add_set_auto_boolean_cmd.
7964 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7965 add_set_auto_boolean_cmd.
7966 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7967 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7968 mask-address'' command.
7969 (show_mask_address): Add cmd parameter.
7970 * remote.c (add_packet_config_cmd): Update. Change type of
7971 set_func and show_func to cmd_sfunc_ftype.
7972 (_initialize_remote): Update `set remote Z-packet'
7973 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7974 (show_remote_protocol_e_packet_cmd): Ditto.
7975 (show_remote_protocol_E_packet_cmd): Ditto.
7976 (show_remote_protocol_P_packet_cmd): Ditto.
7977 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7978 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7979 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7980 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7981 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7982 (show_remote_protocol_Z_packet_cmd): Ditto.
7983 (show_remote_protocol_binary_download_cmd): Ditto.
7984 (show_remote_cmd): Pass NULL to all of above.
7985
7986 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7987
7988 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7989 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7991 POP_FRAME): Remove defines.
7992 (i386_push_arguments, i386_store_struct_return,
7993 i386_extract_return_value, i386_store_return_value,
7994 i386_extract_struct_value_address, i386_push_dummy_frame,
7995 i386_pop_frame): Renove prototypes.
7996 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7997 macros mentioned above.
7998
7999 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8000
8001 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8002 add_set_boolean_cmd.
8003 (add_setshow_cmd): New function.
8004 * command.h (add_setshow_boolean_cmd): Replace
8005 add_set_boolean_cmd.
8006 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8007 and ``set rdiromatzero''.
8008 * maint.c (_initialize_maint_cmds): Update commented out code.
8009 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8010 * target.c (initialize_targets): Update `set
8011 trust-readonly-sections'.
8012 * remote.c (_initialize_remote): Update `set remotebreak'.
8013
8014 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8015
8016 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8017 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8018 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8019 fit into multi-arch framework.
8020 (i386_breakpoint_from_pc): New function.
8021 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8022 above.
8023
8024 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8025 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8026 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8027 (i386_frameless_function_invocation, i386_frame_num_args,
8028 i386_frame_init_saved_regs): Remove prototypes.
8029 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8030 macros mentioned above.
8031
8032 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8033
8034 * cli/cli-decode.c (set_cmd_cfunc): Update.
8035 (set_cmd_sfunc): Update.
8036 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8037 (set_cmd_sfunc, set_cmd_cfunc): Update.
8038 * cli/cli-decode.h: Update.
8039
8040 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8041
8042 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8043 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8044
8045 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8046
8047 * defs.h (auto_boolean): Declare enum.
8048 * command.h (cmd_auto_boolean): Delete enum.
8049 * mips-tdep.c (mask_address_var): Update.
8050 (mips_mask_address_p): Update.
8051 (show_mask_address): Update.
8052 * remote.c (struct packet_config): Update.
8053 (update_packet_config): Update.
8054 (show_packet_config_cmd): Update.
8055 (packet_ok): Update.
8056 (add_packet_config_cmd): Update.
8057 (_initialize_remote):
8058 * command.h: Update.
8059 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8060 (do_setshow_command): Update.
8061 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8062 * cli/cli-decode.h: Update.
8063
8064 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8065
8066 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8067 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8068 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8069 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8070 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8071 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8072
8073 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8074 list of DJGPP COFF targets.
8075
8076 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8077 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8078 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8079 (FP0_REGNUM): Remove define.
8080 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8081 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8082 (i386_register_virtual_size): Remove protoype.
8083 * i386-tdep.c (i386_register_virtual_size): Removed.
8084 (i386_extract_return_value, i386_store_return_value): Use
8085 FP0_REGNUM instead of NUM_FREGS to determine whether the
8086 floating-point registers are available.
8087 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8088 Adjust for removal of macros mentioned above.
8089
8090 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8091
8092 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8093 comments.
8094 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8095 Remove prototypes.
8096 (supply_gregset, fill_gregset): Remove use of register keyword and
8097 remove declaration for regmap. Use I386_NUM_GREGS instead of
8098 NUM_REGS and NUM_FREGS.
8099 (FPREGSET_FSAVE_OFFSET): Remove.
8100 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8101 NUM_FREGS to determine whether the floating-point registers are
8102 available.
8103
8104 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8105 gnu_store_registers): Replace usage of NUM_GREGS with
8106 I386_NUM_GREGS.
8107
8108 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8109 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8110 usage of NUM_GREGS with I386_NUM_GREGS.
8111
8112 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8113
8114 * i386bsd-nat.c: Include "i386-tdep.h".
8115 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8116 I386_NUM_GREGS.
8117
8118 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8119 and associated comment. They no longer make any sense, since we
8120 don't use this file anymore on Linux.
8121
8122 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8123 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8124 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8125 elements in these arrays.
8126 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8127 MAX_NUM_REGS.
8128
8129 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8130
8131 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8132 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8133
8134 2002-06-14 Andrew Cagney <cagney@redhat.com>
8135
8136 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8137 EXTRACT_RETURN_VALUE.
8138 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8139 EXTRACT_STRUCT_VALUE_ADDRESS.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141
8142 * values.c (value_being_returned): Handle
8143 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8144 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8145
8146 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8147 * arm-tdep.c (arm_gdbarch_init): Update.
8148 * avr-tdep.c (avr_gdbarch_init): Update.
8149 * cris-tdep.c (cris_gdbarch_init): Update.
8150 * d10v-tdep.c (d10v_gdbarch_init): Update.
8151 * ia64-tdep.c (ia64_gdbarch_init): Update.
8152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8154 * s390-tdep.c (s390_gdbarch_init): Update.
8155 * sh-tdep.c (sh_gdbarch_init): Update.
8156 * s390-tdep.c (s390_gdbarch_init): Update.
8157 * sparc-tdep.c (sparc_gdbarch_init): Update.
8158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8159 * v850-tdep.c (v850_gdbarch_init): Update.
8160 * vax-tdep.c (vax_gdbarch_init): Update.
8161 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8163
8164 * config/arc/tm-arc.h: Update.
8165 * config/d30v/tm-d30v.h: Update.
8166 * config/fr30/tm-fr30.h: Update.
8167 * config/h8300/tm-h8300.h: Update.
8168 * config/h8500/tm-h8500.h: Update.
8169 * config/i386/tm-i386.h: Update.
8170 * config/i386/tm-ptx.h: Update.
8171 * config/i386/tm-symmetry.h: Update.
8172 * config/i960/tm-i960.h: Update.
8173 * config/m32r/tm-m32r.h: Update.
8174 * config/m68k/tm-delta68.h: Update.
8175 * config/m68k/tm-linux.h: Update.
8176 * config/m68k/tm-m68k.h: Update.
8177 * config/m88k/tm-m88k.h: Update.
8178 * config/mcore/tm-mcore.h: Update.
8179 * config/mips/tm-mips.h: Update.
8180 * config/mn10200/tm-mn10200.h: Update.
8181 * config/pa/tm-hppa.h: Update.
8182 * config/pa/tm-hppa64.h: Update.
8183 * config/sparc/tm-sp64.h: Update.
8184 * config/sparc/tm-sparc.h: Update.
8185 * config/sparc/tm-sparclet.h: Update.
8186 * config/z8k/tm-z8k.h: Update.
8187
8188 2002-06-14 Andrew Cagney <cagney@redhat.com>
8189
8190 * Makefile.in (i386_linux_tdep_h): Define.
8191 (i386_tdep_h, i387_tdep_h): Define.
8192 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8193 $(i386_tdep_h) and $(i387_tdep_h).
8194 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8195
8196 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8197
8198 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8199 Already covered by the default.
8200
8201 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8202 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8203 (i386_gdbarch_init): Initialize long_double_format and long_double
8204 bit.
8205
8206 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8207 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8208 Move these to ...
8209 * config/i386/i386sol2.mh: ... here.
8210 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8211 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8212 (SIGCONTEXT_PC_OFFSET): Remove define.
8213 (IN_SIGTRAMP): Remove define.
8214 * i386-sol2-tdep.c: New file.
8215
8216 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8217 * config/i386/tm-i386nw.h: Removed.
8218
8219 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8220 USE_STRUCT_CONVENTION): Remove defines.
8221 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8222 (get_longjmp_target): Remove prototype.
8223 (IN_SIGTRAMP): Remove define.
8224 (i386bsd_in_sigtramp): Remove prototype.
8225 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8226 function. Update comment accordingly
8227 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8228 (FRAME_SAVED_PC): Remove define.
8229 (i386bsd_frame_saved_pc): Remove prototype.
8230 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8231 GET_LONGJMP_TARGET): Remove defines.
8232 (get_longjmp_target): Remove prototype.
8233 (IN_SIGTRAMP): Remove define.
8234 (i386bsd_in_sigtramp): Remove prototype.
8235 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8236 function. Update comment accordingly
8237 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8238 (FRAME_SAVED_PC): Remove define.
8239 (i386bsd_frame_saved_pc): Remove prototype.
8240 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8241 Remove prototype.
8242 (USE_STRUCT_CONVENTION): Remove prototype.
8243 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8244 declaration.
8245 (_initialize_i386bsd_nat): Revise logic to determine some
8246 constants at compile time when compiling a native GDB. Warn if
8247 things don't match up with what we expect.
8248 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8249 Remove variables.
8250 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8251 to use date stored in `struct gdbarch_tdep'.
8252 (i386bsd_sigcontext_offset): Remove varaible.
8253 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8254 stored in `struct gdbarch_tdep'.
8255 (i386bsd_frame_saved_pc): Make static.
8256 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8257 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8258 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8259 i386fbsd4_sc_pc_offset): New variables.
8260 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8261 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8262 functions.
8263 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8264 functions.
8265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8266 Modify the value of i386fbsd_sigtramp_start and
8267 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8268 i386fbsd_sigtramp_end.
8269 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8270 function.
8271
8272 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8273 define to i386-linux-tdep.h.
8274 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8275 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8276 defines.
8277 (i386_linux_register_name, i386_linux_register_byte,
8278 i386_linux_register_raw_size): Remove prototypes.
8279 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8280 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8281 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8282 TARGET_WRITE_PC): Remove defines.
8283 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8284 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8285 i386_linux_write_pc): Remove prototypes.
8286 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8287 (get_longjmp_target): Remove prototype.
8288 * i386-linux-tdep.h: New file.
8289 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8290 * i386-linux-tdep.c: Include "i386-tdep.h" and
8291 "i386-linux-tdep.h".
8292 (i386_linux_register_name, i386_linux_register_byte,
8293 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8294 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8295 Make static.
8296 (i386_linux_init_abi): New function.
8297 (_initialize_i386_linux_tdep): New function.
8298
8299 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8300 (i386_saved_pc_after_call): Remove prototype.
8301 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8302 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8303 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8304 (i386_register_name, i386_stab_reg_to_regnum,
8305 i386_dwarf_reg_to_regnum): Remove prototypes.
8306 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8307 SIZEOF_SSE_REGS): Remove defines.
8308 (REGISTER_BYTES): Remove define.
8309 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8310 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8311 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8312 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8313 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8314 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8315 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8316 (get_longjmp_target): Remove prototype.
8317 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8318 (sigtramp_saved_pc): Remove define.
8319 (i386v4_sigtramp_saved_pc): Remove prototype.
8320 * config/i386/tm-go32.h (FRAME_CHAIN,
8321 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8322 (i386go32_frame_saved_pc): Remove prototype.
8323 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8324 (get_longjmp_target): Remove prototype.
8325 * i386-tdep.h: Include "osabi.h".
8326 (enum i386_abi): Removed.
8327 (enum struct_return): New enum.
8328 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8329 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8330 sc_pc_offset members.
8331 (i386_gdbarch_register_os_abi): Remove prototype.
8332 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8333 I386_SSE_NUM_REGS): New defines.
8334 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8335 I386_SSE_SIZEOF_REGS): New defines.
8336 (i386_register_name, i386_register_byte, i386_register_raw_size):
8337 New prototypes.
8338 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8339 (i386bsd_sigtramp_saved_pc): New prototype.
8340 * i386-tdep.c: Don't include "elf-bfd.h".
8341 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8342 i386_frame_chain, i386_saved_pc_after_call): Make static.
8343 (i386_frame_saved_pc): Rewrite to call architecture dependent
8344 function to deal with signal handlers. Make static.
8345 (i386go32_frame_saved_pc): Removed.
8346 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8347 Removed.
8348 (i386_get_longjmp_target): New function.
8349 (default_struct_convention, pcc_struct_convention,
8350 reg_struct_convention, valid_conventions, struct_convention): New
8351 variables.
8352 (i386_use_struct_convention): New function.
8353 (i386v4_sigtramp_saved_pc): Renamed to
8354 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8355 (i386_pc_in_sigtramp): New function.
8356 (i386_abi_names): Removed.
8357 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8358 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8359 Removed.
8360 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8361 i386_gdbarch_register_os_abi): Removed.
8362 (struct i386_abi_handler): Removed.
8363 (i386_abi_handler_list): Removed.
8364 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8365 functions.
8366 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8367 i386_nw_init_abi): New functions.
8368 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8369 Use set_gdbarch_xxx() calls instead of relying on macros for a
8370 number of calls.
8371 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8372 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8373 Register the various architecture variants defined in this file.
8374
8375 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8378 (struct main_type): Remove arg_types member. Update comments for
8379 struct field.
8380 (TYPE_ARG_TYPES): Remove.
8381 (TYPE_FN_FIELD_ARGS): Update.
8382 (smash_to_method_type): Update prototype.
8383
8384 * c-typeprint.c (cp_type_print_method_args): Take method type
8385 instead of argument list. Use new argument layout. Simplify.
8386 (c_type_print_args): Use new argument layout. Simplify.
8387 (c_type_print_base): Update call to cp_type_print_method_args.
8388 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8389 argument; use die->type instead. Update call to
8390 smash_to_method_type.
8391 (read_structure_scope): Update call to dwarf2_add_member_fn.
8392 * gdbtypes.c (allocate_stub_method): Update comment.
8393 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8394 Use new argument layout.
8395 (check_stub_method): Use new argument layout. Don't count
8396 void as an argument.
8397 (print_arg_types): Update comments. Use new argument layout.
8398 (recursive_dump_type): Don't print arg_types member.
8399 * hpread.c (hpread_read_struct_type): Use new argument layout.
8400 (fixup_class_method_type): Likewise.
8401 (hpread_type_lookup): Likewise.
8402 * stabsread.c (read_type): Update calls to read_args and
8403 smash_to_method_type.
8404 (read_args): Use new argument layout. Simplify.
8405 * valops.c (typecmp): Use new argument layout. Update parameters
8406 and comments. Simplify.
8407 (hand_function_call): Use new argument layout.
8408 (search_struct_method): Update call to typecmp.
8409 (find_overload_match): Use new argument layout.
8410
8411 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8412
8413 * NEWS: Mention multithreaded debug support for gdbserver.
8414
8415 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * MAINTAINERS: Mention NEWS.
8418
8419 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8422 (struct mips_objfile_private, compare_pdr_entries): New.
8423 (non_heuristic_proc_desc): Read the ".pdr" section if it
8424 is present.
8425
8426 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8427
8428 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8429 (arm_debug): New static variable.
8430 (_initialize_arm_tdep): Add ``set debug arm'' command.
8431
8432 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8433
8434 * Makefile.in (sim_arm_h): Define.
8435 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8436 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8437 (arm_register_sim_regno): New function, map an internal REGNUM
8438 onto a simulator register number.
8439 (arm_gdbarch_init): Set register_sim_regno.
8440
8441 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8442
8443 * MAINTAINERS: Add self.
8444
8445 2002-06-11 Jim Blandy <jimb@redhat.com>
8446
8447 * source.c (source_info): Mention whether the symtab has
8448 information about preprocessor macros.
8449
8450 Call the command `info macro', not `show macro'.
8451 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8452 Fix error message.
8453 (_initialize_macrocmd): Register `info_macro_command' in
8454 `infolist', not `showlist'.
8455
8456 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8457
8458 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8459 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8460 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8461 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8462 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8463 unconditionally.
8464 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8465 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8466 (_initialize_mips_tdep): Remove dead code.
8467 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8468 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8469 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8470 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8471 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8472 MIPS_LAST_FP_ARG_REGNUM): Remove.
8473
8474 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8475
8476 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8477 (unwind_tmp_obstack_free, parse_frame_info)
8478 (update_context, cfi_read_fp, cfi_write_fp)
8479 (cfi_frame_chain, cfi_init_extra_frame_info)
8480 (cfi_virtual_frame_pointer): Use the above function.
8481 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8482
8483 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8484
8485 * v850-tdep.c (v850_type_is_scalar): New function.
8486 (v850_use_struct_convention): Match current gcc implementation
8487 as close as possible.
8488 (v850_push_arguments): Fix stack_offset handling. Don't write
8489 struct_addr into register. This is done by v850_store_struct_return.
8490 (v850_extract_return_value): Care for structs.
8491 (v850_store_return_value): Ditto.
8492 (v850_store_struct_return): Actually write address.
8493
8494 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8495
8496 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8497 without debug information too.
8498
8499 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8500
8501 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8502 Make multi-arch pure.
8503 * gdbarch.h, gdbarch.c: Re-generate.
8504 * arm-tdep.c (arm_print_float_info): Update.
8505 * arch-utils.h (default_print_float_info): Update.
8506 * arch-utils.c (default_print_float_info): Update.
8507 * infcmd.c (float_info): Update call.
8508
8509 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8510
8511 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8512 the front of the initialize list.
8513
8514 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8515
8516 * infrun.c (struct inferior_status): Replace fields
8517 selected_frame_address and selected_level with field
8518 selected_frame_id.
8519 (save_inferior_status): Update. Use get_frame_id.
8520 (struct restore_selected_frame_args): Delete.
8521 (restore_selected_frame): Update. Use frame_find_by_id.
8522 (restore_inferior_status): Update.
8523
8524 * breakpoint.h (struct breakpoint): Change type of
8525 watchpoint_frame to frame_id.
8526 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8527 call to get_current_frame.
8528 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8529 get_current_frame.
8530 (watchpoint_check): Use frame_find_by_id.
8531
8532 * frame.h (record_selected_frame): Delete declaration.
8533 * stack.c (record_selected_frame): Delete function.
8534
8535 * frame.h (struct frame_id): Define.
8536 (get_frame_id): Declare.
8537 (frame_find_by_id): Declare.
8538 * frame.c (frame_find_by_id): New function.
8539 (get_frame_id): New function.
8540
8541 2002-06-10 Andrey Volkov <avolkov@transas.com>
8542
8543 * ser-e7kpc.c: Fix duplicated define and call of
8544 _initialize_ser_e7000pc
8545
8546 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8547
8548 * signals/signals.c (target_signal_from_host): Fix #ifdef
8549 SIGRTMIN case.
8550 (do_target_signal_to_host): Likewise.
8551
8552 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8553
8554 * mips-tdep.c (mips_find_abi_section): New function.
8555 (mips_gdbarch_init): Call it.
8556
8557 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8558
8559 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8560 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8561 after Andrew's 2002-06-08 gdbarch change.
8562
8563 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8564
8565 * i386-linux-nat.c (suppy_gregset): Don't supply
8566 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8567 register cache.
8568 (fill_gregset): Don't fetch it under the same circumstances.
8569
8570 2002-06-09 Andrew Cagney <cagney@redhat.com>
8571
8572 * Makefile.in (callback_h): Define.
8573 (remote_sim_h): Update path to remote-sim.h.
8574 (remote-rdp.o): Add $(callback_h).
8575 (remote-sim.o): Use $(callback_h).
8576 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8577 * remote-rdp.c: Include "gdb/callback.h".
8578
8579 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8580
8581 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8582 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8583
8584 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8585
8586 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8587 * rdi-share/serpardr.c: Ditto.
8588 * rdi-share/unixcomm.c: Ditto.
8589 * rdi-share/serdrv.c: Ditto.
8590 * rdi-share/hostchan.h: Ditto.
8591 * rdi-share/hostchan.c: Ditto.
8592 * rdi-share/host.h: Ditto.
8593 * rdi-share/devsw.c: Ditto.
8594
8595 * objfiles.h: Change type of obj_private to void pointer.
8596 * pa64solib.c: Update copyright. Don't include "assert.h", use
8597 strcmp instead of STREQ, use LONGEST, do not use PTR
8598 * somsolib.c: Ditto.
8599
8600 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8601 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8602 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8603
8604 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8605
8606 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8607 (default_get_saved_register): Delete function.
8608 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8609 generic_unwind_get_saved_register.
8610 * gdbarch.h, gdbarch.c: Re-generate.
8611
8612 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8613
8614 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8615 generic_func_frame_chain_valid.
8616 * gdbarch.h, gdbarch.c: Re-generate.
8617 * blockframe.c (generic_func_frame_chain_valid): Only check
8618 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8619 passing FP to PC_IN_CALL_DUMMY.
8620 Fix PR gdb/360.
8621
8622 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8623
8624 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8625 (register_gdbarch_data): Initialize init_p.
8626 (gdbarch_data): Initialize data pointer using the init function.
8627 (init_gdbarch_data): Delete function.
8628 (gdbarch_update_p): Update.
8629 (initialize_non_multiarch): Update.
8630 (struct gdbarch): Add field initialized_p.
8631 * gdbarch.h, gdbarch.c: Re-generate.
8632
8633 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8634
8635 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8636 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8637 better do the things actually here.
8638 * x86-64-tdep.c (x86_64_register_name2nr): New.
8639 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8640 (x86_64_gdbarch_init): Respect the above change.
8641 * x86-64-tdep.h (x86_64_register_name2nr)
8642 (x86_64_register_nr2name): Add prototypes.
8643 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8644
8645 2002-06-06 Michael Snyder <msnyder@redhat.com>
8646
8647 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8648 Delete extra braces and re-indent.
8649 (d10v_store_return_value): Char return values
8650 must be shifted over by one byte in R0.
8651 (d10v_extract_return_value): Delete extra braces, re-indent.
8652
8653 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8654
8655 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8656 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8657 (d10v_integer_to_address): Rewrite.
8658 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8659 the d10v specific functions which take care of converting to the
8660 correct space.
8661
8662 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8663
8664 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8665 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8666
8667 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8668
8669 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8670 includes.
8671 * config/tm-linux.h: Ditto.
8672 * config/alpha/tm-alphalinux.h: Ditto.
8673 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8674 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8675 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8676 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8677 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8678 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8679 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8680 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8681 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8682 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8683 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8684 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8685 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8686 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8687 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8688 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8689 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8690 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8691 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8692 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8693 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8694 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8695 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8696 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8697 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8698 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8699 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8700 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8701 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8702 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8703 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8704 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8705 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8706 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8707 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8708 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8709 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8710
8711 2002-05-04 Aidan Skinner <aidan@velvet.net>
8712
8713 * ada-exp.tab.c: New file
8714 * ada-exp.y: New file
8715 * ada-lang.c: New file
8716 * ada-lang.h: New file
8717 * ada-lex.c: New file
8718 * ada-lex.l: New file
8719 * ada-tasks.c: New file
8720 * ada-typeprint.c: New file
8721 * ada-valprint.c: New file
8722
8723 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8724
8725 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8726 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8727
8728 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8729
8730 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8731 insetead of ppc-linux-tdep.o.
8732 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8733 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8734
8735 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8736
8737 2002-05-07 Christian Groessler <chris@groessler.org>
8738 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8739 bit register contents for little endian hosts.
8740
8741 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8742
8743 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8744 any maintainer.
8745
8746 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8747
8748 * gdbarch.h: Regenerate.
8749
8750 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8751
8752 * MAINTAINERS: Add everyone to write-after-approval list.
8753
8754 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8755
8756 * stack.c (frame_info): Use frame_register_unwind instead of
8757 saved_regs. Mention when the SP is on the stack or in a register.
8758
8759 * frame.h (frame_register_unwind_ftype): Define. Document.
8760 (struct frame_info): Add field register_unwind and
8761 register_unwind_cache.
8762 (frame_register_unwind): Declare.
8763 (generic_unwind_get_saved_register): Declare.
8764
8765 * frame.c (frame_register_unwind): New function.
8766 (generic_unwind_get_saved_register): New function.
8767
8768 * blockframe.c (generic_call_dummy_register_unwind): New function.
8769 (frame_saved_regs_register_unwind): New function.
8770 (set_unwind_by_pc): New function.
8771 (create_new_frame): New function.
8772 (get_prev_frame): New function.
8773
8774 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8775
8776 * a29k-share/: Delete directory.
8777 * remote-vx29k.c: Delete file.
8778
8779 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8782 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8783
8784 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8785
8786 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8787 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8788 (sparc64nbsd-nat.o)
8789 (sparcnbsd-nat.o)
8790 (sparcnbsd-tdep.o): New dependency lists.
8791 * NEWS: Note new UltraSPARC NetBSD native configuration.
8792 * configure.host (sparc64-*-netbsd*): New host.
8793 * configure.tgt (sparc-*-netbsdelf*)
8794 (sparc-*-netbsd*): Set gdb_target to nbsd.
8795 (sparc64-*-netbsd*): New target.
8796 * sparc64nbsd-nat.c: New file.
8797 * sparcnbsd-nat.c: New file.
8798 * sparcnbsd-tdep.c: New file.
8799 * sparcnbsd-tdep.h: New file.
8800 * config/sparc/nbsd.mt: New file.
8801 * config/sparc/nbsd64.mh: New file.
8802 * config/sparc/nbsd64.mt: New file.
8803 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8804 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8805 (HOST_IPC): Remove.
8806 * config/sparc/nbsdaout.mt: Remove.
8807 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8808 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8809 (HOST_IPC): Remove.
8810 * config/sparc/nbsdelf.mt: Remove.
8811 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8812 sparc-nat.c compatiblity defines.
8813 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8814 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8815 * config/sparc/tm-nbsd64.h: New file.
8816 * config/sparc/tm-nbsdaout.h: Remove.
8817 * config/sparc/xm-nbsd.h: Remove.
8818
8819 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8822 * sparc-tdep.c: Include osabi.h.
8823 (gdbarch_tdep): Add osabi member.
8824 (_initialize_sparc_tdep): Use gdbarch_register.
8825 (sparc_gdbarch_init): Use generic OS ABI framework.
8826 (sparc_dump_tdep): New function.
8827
8828 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8829
8830 * corefile.c (do_captured_read_memory_integer): Return non-zero
8831 result.
8832 (safe_read_memory_integer): Copy result of memory read when
8833 status is non-zero. Also, add comments.
8834
8835 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * Makefile.in (ppc_tdep_h): Define.
8838 (ppc-linux-nat.o)
8839 (ppc-linux-tdep.o)
8840 (rs6000-tdep.o): Use $(ppc_tdep_h).
8841 (ppc-sysv-tdep.o)
8842 (ppcnbsd-nat.o)
8843 (ppcnbsd-tdep.o): New dependency lists.
8844 * ppc-tdep.h: Use generic OS ABI framework.
8845 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8846 (ppc_linux_init_abi): New functions.
8847 (ppc_sysv_abi_broken_use_struct_convention)
8848 (ppc_sysv_abi_use_struct_convention)
8849 (ppc_sysv_abi_push_arguments): Move to...
8850 * ppc-sysv-tdep.c: ...here.
8851 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8852 * rs6000-tdep.c (process_note_abi_tag_sections)
8853 (get_elfosabi): Remove.
8854 (rs6000_gdbarch_init): Use generic OS ABI framework.
8855 (rs6000_dump_tdep): New function.
8856 (_initialize_rs6000_tdep): Use gdbarch_register.
8857 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8858 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8859 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8860 of ppc-linux-tdep.o.
8861 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8862 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8863 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8864 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8865 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8866 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8867
8868 2002-05-29 Jim Blandy <jimb@redhat.com>
8869
8870 * macroscope.c (default_macro_scope): Put `void' in empty argument
8871 list.
8872
8873 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8874
8875 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8876 * arch-utils.c: Include "sim-regno.h".
8877 * gdbarch.sh: Don't include "sim-regno.h".
8878 * gdbarch.h, gdbarch.c: Regenerate.
8879 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8880 here.
8881 * arch-utils.h (legacy_register_sim_regno): To here.
8882 * remote-sim.c (legacy_register_sim_regno): Move function from
8883 here.
8884 * arch-utils.c (legacy_register_sim_regno): To here.
8885
8886 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8887
8888 * sim-regno.h: New file.
8889 * Makefile.in (sim_regno_h): Define.
8890 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8891 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8892 (legacy_register_sim_regno): New function.
8893 (one2one_register_sim_regno): New function.
8894 (gdbsim_fetch_register): Rewrite.
8895 (gdbsim_store_register): Only store a register when
8896 REGISTER_SIM_REGNO is valid.
8897 * d10v-tdep.c: Include "sim-regno.h".
8898 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8899 (d10v_ts3_register_sim_regno): Ditto.
8900 * gdbarch.sh: Include "sim-regno.h".
8901 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * arch-utils.h (default_register_sim_regno): Delete declaration.
8904 * arch-utils.c (default_register_sim_regno): Delete function.
8905
8906 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8907
8908 * ppcnbsd-nat.c: Rewrite.
8909 * ppcnbsd-tdep.c: New file.
8910 * ppcnbsd-tdep.h: New file.
8911 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8912 solib.o, and solib-svr4.o.
8913 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8914 nbsd-tdep.o, and corelow.o.
8915
8916 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8917
8918 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8919 `tr' and `sed'. Mention that `broken' targets are not expected to
8920 build.
8921
8922 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8923
8924 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8925 Let PC point right after the prologue before looking up symbols.
8926
8927 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8928
8929 * i386-tdep.c (i386_register_virtual_type): Return
8930 builtin_type_vec128i for SSE registers.
8931
8932 * gdbtypes.h (builtin_type_vec128i): Declare.
8933
8934 * gdbtypes.c (build_builtin_type_vec128i): New function.
8935 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8936 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8937 (build_gdbtypes): Initialize new builtin vector types.
8938 (_initialize_gdbtypes): Register new vector types with gdbarch.
8939
8940 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8941
8942 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8943 since it has been multi-arch'd.
8944 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8945 Move Alpha and VAX multi-arch news entries to same section
8946 as other multi-arch news.
8947
8948 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8949
8950 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8951 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8952 static. Rename some register numbers to put them in ns32k-tdep
8953 private namespace.
8954 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8955 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8956 functions.
8957 (_initialize_ns32k_tdep): Use gdbarch_register.
8958 * ns32k-tdep.h: New file.
8959 * ns32knbsd-tdep.c: New file.
8960 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8961 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8962 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8963 REGISTER_BYTES, REGISTER_BYTE): Remove.
8964 * config/ns32k/tm-ns32k.h: New file.
8965 * config/ns32k/tm-umax.h: Remove.
8966
8967 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8968
8969 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8970 ns32k_store_struct_return, ns32k_extract_return_value,
8971 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8972 functions.
8973 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8974 ns32k_saved_pc_after_call.
8975 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8976 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8977 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8978 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8979 ns32k_extract_struct_value_address.
8980
8981 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8982
8983 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8984 ns32k_fix_call_dummy): New.
8985 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8986 ns32k_call_dummy_words.
8987 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8988 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8989 CALL_DUMMY_NARGS): Remove.
8990 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8991
8992 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8993
8994 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8995 ns32k_frame_saved_pc, ns32k_frame_args_address,
8996 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8997 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8998 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8999 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9000 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9001 (BREAKPOINT): Remove..
9002 (FRAME_CHAIN): Define as ns32k_frame_chain.
9003 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9004 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9005 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9006 (FRAME_FIND_SAVED_REGS): Remove.
9007 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9008 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9009 (POP_FRAME): Define as ns32k_pop_frame.
9010
9011 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9012
9013 * ns32k-tdep.c (ns32k_register_byte_32082,
9014 ns32k_register_byte_32382, ns32k_register_raw_size,
9015 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9016 functions.
9017 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9018 ns32k_register_byte_32382.
9019 * config/ns32k/tm-umax.h: Update copyright years.
9020 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9021 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9022 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9023 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9024 (ns32k_get_enter_addr): Fix prototype.
9025
9026 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9027
9028 * ns32k-tdep.c: Update copyright years.
9029 (ns32k_register_name_32082): New function.
9030 (ns32k_register_name_32382): Ditto.
9031 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9032 (REGISTER_NAME): Define as ns32k_register_name_32382.
9033 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9034 (REGISTER_NAME): Define as ns32k_register_name_32082.
9035
9036 2002-05-24 Jim Blandy <jimb@redhat.com>
9037
9038 * dwarf2read.c (free_line_header): Use xfree, not free.
9039
9040 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9041
9042 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9043 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9044
9045 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9046
9047 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9048
9049 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9050
9051 From Ross Alexander at NEC Europe:
9052 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9053
9054 2002-05-23 Michael Snyder <msnyder@redhat.com>
9055
9056 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9057 for input, rather than parse_and_eval_address.
9058
9059 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9060
9061 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9062 * Makefile.in (sim_d10v_h): Update definition.
9063
9064 2002-05-24 Andrew Cagney <cagney@redhat.com>
9065
9066 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9067 change `2002-05-22 Michael Snyder' below.
9068 (d10v_push_arguments): Ditto.
9069 (d10v_extract_return_value): Ditto.
9070
9071 2002-05-23 Jim Blandy <jimb@redhat.com>
9072
9073 * macrotab.c (check_for_redefinition): Don't complain if the new
9074 definition is the same as the previous one. Take more arguments
9075 to allow the comparison.
9076 (macro_define_object, macro_define_function): Pass more arguments
9077 to check_for_redefinition.
9078
9079 2002-05-22 Michael Snyder <msnyder@redhat.com>
9080
9081 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9082 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9083 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9084 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9085 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9086 Add a temp variable to save a call (and a memory read).
9087 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9088 if possible (so that PC_IN_CALL_DUMMY will work).
9089
9090 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9091
9092 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9093
9094 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9095
9096 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9097 fde->cie_ptr.
9098 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9099 (dwarf2_build_frame_info): Add offset to fde->initial_location
9100 so that frames of shared libraries are mapped correctly.
9101 (execute_stack_op): Change type of 'result' from ULONGEST to
9102 CORE_ADDR.
9103
9104 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9105
9106 * config/alpha/tm-nbsd.h: Include solib.h.
9107
9108 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9109
9110 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9111 assumptions about the host's byte order.
9112
9113 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9114
9115 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9116 to dependency list.
9117 * alphanbsd-tdep.c: Include solib-svr4.h.
9118 * shnbsd-tdep.c: Ditto.
9119
9120 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9121
9122 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9123 nbsd-tdep.h to dependency list.
9124 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9125 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9126 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9127 nbsdaout.mh and nbsdelf.mh consistently.
9128 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9129 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9130 nbsdaout.mt and nbsdelf.mh consistently.
9131 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9132 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9133 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9134 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9135 a.out shared library stuff from here...
9136 * config/nm-nbsdaout.h: ...to here.
9137 * config/tm-nbsd.h: Remove.
9138 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9139 * config/arm/nbsd.mh: Remove.
9140 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9141 nbsd-tdep.o.
9142 * config/arm/nbsdaout.mh: New file.
9143 * config/arm/nbsdelf.mh: New file.
9144 * config/arm/nm-nbsdaout.h: New file.
9145 * config/i386/nbsd.mh: Remove.
9146 * config/i386/nbsd.mt: Remove.
9147 * config/i386/nbsdaout.mh: New file.
9148 * config/i386/nbsdaout.mt: New file.
9149 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9150 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9151 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9152 i386_register_u_addr): Remove.
9153 * config/i386/nm-nbsdaout.h: New file.
9154 * config/i386/nm-nbsdelf.h: Remove.
9155 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9156 (USE_STRUCT_CONVENTION): Remove.
9157 * config/i386/tm-nbsdaout.h: New file.
9158 * config/i386/tm-nbsdelf.h: Remove.
9159 * config/m68k/nbsd.mh: Remove.
9160 * config/m68k/nbsd.mt: Remove.
9161 * config/m68k/nbsdaout.mh: New file.
9162 * config/m68k/nbsdaout.mt: New file.
9163 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9164 * config/m68k/nm-nbsdaout.h: New file.
9165 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9166 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9167 * config/ns32k/nbsd.mh: Remove.
9168 * config/ns32k/nbsd.mt: Remove.
9169 * config/ns32k/nbsdaout.mh: New file.
9170 * config/ns32k/nbsdaout.mt: New file.
9171 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9172 * config/ns32k/nm-nbsdaout.h: New file.
9173 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9174 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9175 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9176 (SVR4_SHARED_LIBS): Remove.
9177 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9178 * config/sparc/nbsd.mh: Remove.
9179 * config/sparc/nbsd.mt: Remove.
9180 * config/sparc/nbsdaout.mh: New file.
9181 * config/sparc/nbsdaout.mt: New file.
9182 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9183 * config/sparc/nbsdelf.mt: New file.
9184 * config/sparc/nm-nbsdaout.h: New file.
9185 * config/sparc/nm-nbsdelf.h: Remove.
9186 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9187 * config/sparc/tm-nbsdaout.h: New file.
9188
9189 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9190
9191 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9192 mipsnbsd-tdep.c
9193 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9194
9195 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9198 shnbsd-nat.c.
9199 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9200
9201 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9202
9203 * NEWS: Note new MIPS NetBSD native configuration.
9204 * configure.host (mips*-*-netbsd*): New host.
9205 * configure.tgt (mips*-*-netbsd*): New target.
9206 * mipsnbsd-nat.c: New file.
9207 * mipsnbsd-tdep.c: New file.
9208 * mipsnbsd-tdep.h: New file.
9209 * config/mips/nbsd.mh: New file.
9210 * config/mips/nbsd.mt: New file.
9211 * config/mips/nm-nbsd.h: New file.
9212 * config/mips/tm-nbsd.h: New file.
9213
9214 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9215
9216 * Makefile.in (SFILES): Add osabi.c.
9217 (COMMON_OBS): Add osabi.o.
9218 (osabi.o): New dependency list.
9219 * osabi.c: New file.
9220 * osabi.h: New file.
9221 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9222
9223 * Makefile.in (alpha_tdep_h): Define and use instead of
9224 alpha-tdep.h.
9225 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9226 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9227 Remove.
9228 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9229 * alpha-tdep.h: Include osabi.h.
9230 (alpha_abi): Remove.
9231 (gdbarch_tdep): Use generic OS ABI framework.
9232 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9233 gdbarch_register_osabi.
9234 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9235 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9236 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9237
9238 * Makefile.in (sh_tdep_h): Add osabi.h.
9239 * sh-tdep.h (sh_osabi): Remove.
9240 (gdbarch_tdep): Use generic OS ABI framework.
9241 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9242 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9243 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9244 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9245
9246 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9247 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9248 gdbarch_register_osabi.
9249 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9250 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9251 (get_elfosabi): Rename to...
9252 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9253 ABI framework support routines.
9254 (arm_gdbarch_init): Use generic OS ABI framework.
9255 (arm_dump_tdep): Likewise.
9256 (_initialize_arm_tdep): Likewise.
9257 * arm-tdep.h: Include osabi.h.
9258 (arm_abi): Remove.
9259 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9260 osabi member.
9261 (arm_gdbarch_register_os_abi): Remove prototype.
9262 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9263 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9264
9265 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9266 * mips-tdep.c: Include osabi.h.
9267 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9268 OS ABI framework.
9269
9270 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9271
9272 * h8300-tdep.c: Fix formatting.
9273
9274 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9275
9276 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9277 printing vector registers.
9278
9279 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9280
9281 From Fernando Nasser:
9282 * remote.c (remote_async_open_1): Re-throw the exception when the
9283 connection fails.
9284 (remote_cisco_open): Ditto.
9285 (remote_open_1): Ditto.
9286
9287 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9288
9289 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9290 (remote_start_remote): Add uiout parameter. Pass through to
9291 remote_start_remote_dummy.
9292 (remote_open_1): Use catch_exception instead of catch_errors.
9293 (remote_async_open_1): Ditto.
9294 (remote_cisco_open): Ditto.
9295
9296 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9297
9298 * remote.c (remote_start_remote): Replace PTR with void pointer.
9299 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9300 static.
9301
9302 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9303
9304 * gdb_indent.sh: Allow the script to be run in the sim directory.
9305
9306 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9307
9308 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9309 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9310
9311 * corelow.c (core_open): Only call set_gdbarch_from_file if
9312 exec_bfd is NULL.
9313
9314 2002-05-17 Andrey Volkov <avolkov@transas.com>
9315
9316 * h8300-tdep.c: Add support of EXR register
9317 * config/h8300/tm-h8300.h: Ditto.
9318
9319 2002-05-17 Andrey Volkov <avolkov@transas.com>
9320
9321 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9322
9323 2002-05-17 Andrey Volkov <avolkov@transas.com>
9324
9325 * h8300-tdep.c: Change literal regnums to REGNO.
9326
9327 2002-05-17 Jim Blandy <jimb@redhat.com>
9328
9329 * NEWS: Note addition of macro support.
9330
9331 Expand preprocessor macros in C expressions.
9332 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9333 (scan_macro_expansion, scanning_macro_expansion,
9334 finished_macro_expansion): New function declarations.
9335 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9336 variable declarations.
9337 * parser-defs.h (expression_context_pc): New declaration.
9338 * parse.c (expression_context_pc): New variable.
9339 (parse_exp_1): Set expression_context_pc, as well as
9340 expression_context_block.
9341 * c-exp.y (yylex): If we're not already reading the result of a
9342 macro expansion, try to macro-expand the next token. When we're
9343 done scanning a macro expansion, switch back to the mainline text.
9344 Commas and `if's in a macro's expansion don't terminate the input.
9345 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9346 (macro_original_text, macro_expanded_text,
9347 expression_macro_lookup_func, expression_macro_lookup_baton): New
9348 variables.
9349 (scan_macro_expansion, scanning_macro_expansion,
9350 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9351 c_preprocess_and_parse): New functions.
9352 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9353 c_preprocess_and_parse, instead of c_parse.
9354 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9355 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9356
9357 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9358
9359 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9360 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9361 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9362
9363 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9364
9365 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9366
9367 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9368
9369 * Makefile.in (sh_tdep_h): Define and use.
9370 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9371 register enum): Move to...
9372 * * sh-tdep.h: ...here.
9373 * sh-tdep.c: Include sh-tdep.h.
9374 * sh3-rom.c: Likewise.
9375 * shnbsd-tdep.c: Likewise.
9376
9377 2002-05-16 Michael Snyder <msnyder@redhat.com>
9378
9379 * arm-tdep.c: Spelling fix in comment.
9380
9381 2002-05-16 Jim Blandy <jimb@redhat.com>
9382
9383 Add commands for manually expanding macros and showing their
9384 definitions.
9385 * macrocmd.c, macroscope.c, macroscope.h: New files.
9386 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9387 (macroscope_h): New variable.
9388 (HFILES_NO_SRCDIR): Add macroscope.h.
9389 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9390 (macroscope.o, macrocmd.o): New rules.
9391
9392 Teach the Dwarf 2 reader to read macro information.
9393 * dwarf2read.c: #include "macrotab.h".
9394 (dwarf_macinfo_buffer): New variable.
9395 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9396 dwarf_macinfo_size.
9397 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9398 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9399 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9400 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9401 dwarf2_macro_spaces_in_definition): New complaints.
9402 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9403 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9404 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9405 the partial symbol table.
9406 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9407 from what's recorded in the partial symbol table.
9408 (read_file_scope): If the compilation unit has a
9409 `DW_AT_macro_info' attribute, read its macro information.
9410 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9411
9412 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9413
9414 Fix PR gdb/546
9415 * ser-tcp.c: Don't include <netinet/udp.h>.
9416
9417 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9418
9419 * MAINTAINERS: Update my email address.
9420
9421 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9422
9423 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9424 include file of the same name.
9425
9426 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9427
9428 * configure.tgt: Mark v850 as multi-arched.
9429 * config/v850/tm-v850.h: Remove file.
9430 * config/v850/v850.mt: Eliminate TM_FILE.
9431
9432 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9433
9434 * v850-tdep.c: Full multi-arch.
9435 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9436 Define GDB_MULTI_ARCH to 2.
9437
9438 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9439
9440 * p-exp.y (current_type): New static variable.
9441 Carries the type of the expression at the position that is parsed.
9442 (push_current_type, pop_current_type): Two new functions. Used
9443 to store/restore current_type in expression on specific tokens.
9444 (search_field): New static variable. Set to one after parsing a point
9445 as at that point only a FIELDNAME token should be searched.
9446 (FIELDNAME): New token. After a point only a token belonging to
9447 current_type type definition is allowed.
9448 (all over token rules): reset and change current_type according
9449 to rules.
9450 (exp '[' rule): insert implicit array index field if
9451 exp is a pascal string type.
9452
9453 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9454
9455 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9456 frame info. Use frame_info's saved_regs instead of matching member
9457 in extra_frame_info throughout.
9458 (v850_frame_init_saved_regs): New function.
9459 (v850_init_extra_frame_info): Move most functionality into
9460 v850_frame_init_saved_regs().
9461 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9462 (v850_frame_find_saved_regs): Remove declaration.
9463 (FRAME_FIND_SAVED_REGS): Remove definition.
9464 (v850_frame_init_saved_regs): Add declaration.
9465 (FRAME_INIT_SAVED_REGS): Add definition.
9466
9467 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9468
9469 * v850-tdep.c: Begin multi-arch'ing v850.
9470 (v850_target_architecture_hook): Remove function.
9471 (v850_gdbarch_init): New function. Add code previously in
9472 v850_target_architecture_hook().
9473 (_initialize_v850_tdep): Don't set target_architecture_hook.
9474 Call register_gdbarch_init() instead.
9475
9476 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9477
9478 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9479 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9480 (fixup_class_method_type): Likewise.
9481
9482 2002-05-15 Jim Blandy <jimb@redhat.com>
9483
9484 Add macro structures to GDB's symbol tables. Nobody puts anything
9485 in them yet.
9486 * symtab.h (struct symtab): New member: `macro_table'.
9487 * buildsym.h (pending_macros): New global variable.
9488 * buildsym.c: #include "macrotab.h".
9489 (buildsym_init): Initialize `pending_macros'.
9490 (end_symtab): If we found macro information while reading a CU's
9491 debugging info, do build a symtab structure for it. Make the
9492 symtab point to the macro information, and clear the
9493 `pending_macros' pointer which held it while we were reading the
9494 debug info.
9495 (really_free_pendings): Free any pending macro table.
9496 * objfiles.h (struct objfile): New member: `macro_cache'.
9497 * objfiles.c (allocate_objfile): Set allocate and free functions
9498 for the macro cache's objstack.
9499 (free_objfile): Empty the macro cache's obstack.
9500 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9501 set new allocate and free functions for it.
9502 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9503 free functions for the macro cache's objstack. (Why is this
9504 function building its own objfile?)
9505 * symmisc.c (print_objfile_statistics): Print statistics on the
9506 macro bcache.
9507 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9508
9509 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9510
9511 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9512 (REGISTER_U_ADDR): Delete definition.
9513 (arm_register_u_addr): Delete declaration.
9514
9515 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9516
9517 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9518 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9519
9520 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9521
9522 * regcache.c (register_valid): Revise comments refering to "Not
9523 available" and "unavailable".
9524 * frame.c (frame_register_read): Ditto.
9525 * findvar.c (value_of_register): Ditto.
9526
9527 2002-05-15 Andrew Cagney <cagney@redhat.com>
9528
9529 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9530 (remote-sim.o): Update dependencies.
9531 (d10v-tdep.o): Specify dependencies.
9532 (sim_d10v_h): Define.
9533
9534 2002-05-14 Jim Blandy <jimb@redhat.com>
9535
9536 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9537 * macrotab.c (macro_lookup_inclusion, find_definition,
9538 new_macro_table): Same.
9539
9540 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9541 not `! strcmp ()'. This is a dubious improvement.
9542 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9543
9544 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9545 although it's not necessary, to avoid a warning.
9546
9547 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9548
9549 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9550 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9551 TYPE_INSTANCE_FLAGS.
9552 (struct main_type): New.
9553 (struct type): Move most members to struct main_type. Change
9554 cv_type and as_type to new type_chain member. Add instance_flags.
9555 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9556 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9557 (finish_cv_type): Remove prototype.
9558 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9559 Set TYPE_CHAIN.
9560 (alloc_type_instance): New function.
9561 (smash_type): New function.
9562 (make_pointer_type, make_reference_type, make_function_type)
9563 (smash_to_member_type, smash_to_method_type): Call smash_type.
9564 (make_qualified_type): New function.
9565 (make_type_with_address_space): Call make_qualified_type.
9566 (make_cv_type): Likewise.
9567 (finish_cv_type): Remove unnecessary function.
9568 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9569 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9570 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9571 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9572 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9573 * hpread.c (hpread_read_struct_type): Likewise.
9574 * stabsread.c (read_struct_type): Likewise.
9575
9576 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9577
9578 * configure.tgt: Add a catch all sh* target, for cases like
9579 sh[2,3,4]-elf and sh-hms.
9580
9581 2002-05-14 Keith Seitz <keiths@redhat.com>
9582
9583 * event-loop.c (create_file_handler): Don't do anything but
9584 update data when we are given a fd which we are already
9585 monitoring.
9586
9587 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9588
9589 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9590 (update_context): Use __func__ in warnings.
9591
9592 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9595 and tcp_close to net_open and net_close.
9596 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9597 using UDP if requested. Don't try to disable Nagle on UDP
9598 sockets.
9599 * remote.c (remote_serial_open): New function. Warn about UDP.
9600 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9601
9602 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9603
9604 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9605
9606 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9607
9608 * configure.tgt: Remove sh-hms target.
9609 * MAINTAINERS: Don't list sh-hms as a separate target.
9610
9611 2002-05-13 Jim Blandy <jimb@redhat.com>
9612
9613 Add first preprocessor macro-expansion files.
9614 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9615 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9616 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9617 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9618 (COMMON_OBS): Add macrotab.o, macroexp.o.
9619 (macroexp.o, macrotab.o): New rules.
9620
9621 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9622
9623 * config/m88k/tm-m88k.h: Update copyright.
9624 (m88k_target_write_pc): Declare
9625 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9626 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9627 (SHIFT_INST_REGS): Update definition.
9628 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9629 using old definition of TARGET_WRITE_PC.
9630 * regcache.c (generic_target_write_pc): Delete code handling
9631 NNPC_REGNUM.
9632 * gdbarch.sh (NNPC_REGNUM): Delete.
9633 * gdbarch.h, gdbarch.c: Regenerate.
9634
9635 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9636
9637 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9638 builtin reg number.
9639
9640 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9643 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9644 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9645 access macros.
9646 * c-typeprint.c (cp_type_print_method_args): Likewise.
9647 (c_type_print_args): Likewise.
9648 * d10v-tdep.c (d10v_push_arguments): Likewise.
9649 (d10v_extract_return_value): Likewise.
9650 * expprint.c (print_subexp): Likewise.
9651 * gdbtypes.c (lookup_primitive_typename): Likewise.
9652 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9653 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9654 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9655 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9656 (TYPE_VECTOR): Likewise.
9657 * hpread.c (hpread_read_struct_type)
9658 (fix_static_member_physnames, fixup_class_method_type)
9659 (hpread_type_lookup): Likewise.
9660 * mdebugread.c (parse_symbol, parse_type): Likewise.
9661 * p-lang.c (is_pascal_string_type): Likewise.
9662 * valops.c (hand_function_call): Likewise.
9663 * x86-64-tdep.c (classify_argument): Likewise.
9664
9665 * hpread.c (hpread_read_function_type)
9666 (hpread_read_doc_function_type): Call replace_type.
9667 * dstread.c (create_new_type): Delete.
9668 (decode_dst_structure, process_dst_function): Call alloc_type.
9669 Use type access macros.
9670
9671 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9672
9673 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9674 the're not supported by the current architecture.
9675 (i387_fill_fxsave): Likewise.
9676
9677 2002-05-12 Fred Fish <fnf@redhat.com>
9678
9679 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9680 sect_index_xxx members to index the first slot in section_offsets
9681 if all of the section_offsets are zero.
9682
9683 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9684
9685 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9686 checked in with last change.
9687
9688 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9689
9690 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9691 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9692 config.sub.
9693
9694 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * Makefile.in: Update dependencies.
9697
9698 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9699
9700 * language.c (local_hex_string_custom): Simplify. Do not depend
9701 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9702
9703 * memattr.c (mem_info_command): Replace calls to
9704 longest_local_hex_string and longest_local_hex_string_custom.
9705 * buildsym.c (make_blockvector): Ditto.
9706 * solib.c (info_sharedlibrary_command): Ditto.
9707 * tracepoint.c (tracepoints_info): Ditto.
9708 * symtab.c (print_msymbol_info): Ditto.
9709
9710 * language.c (local_hex_string): Delete.
9711 (local_hex_string_custom): Delete.
9712 (longest_local_hex_string): Rename to local_hex_string.
9713 (longest_local_hex_string_custom): Rename to
9714 local_hex_string_custom.
9715 * language.h (local_hex_string): Change parameter type to LONGEST.
9716 (local_hex_string_custom): Ditto.
9717 (longest_local_hex_string): Delete declaration.
9718 (longest_local_hex_string_custom): Ditto.
9719
9720 * solib.c: Update copyright.
9721 * memattr.c: Update copyright.
9722
9723 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9724
9725 * arch-utils.h (legacy_register_to_value): Declare.
9726 (legacy_value_to_register): Declare.
9727 (legacy_convert_register_p): Declare.
9728 * arch-utils.c (legacy_register_to_value): New function.
9729 (legacy_value_to_register): New function.
9730 (legacy_convert_register_p): New function.
9731
9732 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9733 (VALUE_TO_REGISTER): Define.
9734 (CONVERT_REGISTER_P): Define.
9735 * gdbarch.h, gdbarch.c: Regenerate.
9736
9737 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9738 VALUE_TO_REGISTER.
9739 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9740 CONVERT_REGISTER_P.
9741
9742 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9743 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9744
9745 * Makefile.in: Update dependencies for valops.c.
9746 * valops.c: Include "gdb_assert.h".
9747 (typecmp): Skip THIS parameter to methods.
9748 (find_method_list): Remove static_memfuncp argument,
9749 update callers. Check for stub methods.
9750 (find_value_oload_method_list): Don't set *static_memfuncp.
9751 (find_overload_match): Don't check for stub methods. Assert
9752 that methods are not stubbed. Handle static methods.
9753 (value_find_oload_method_list): Remove static_memfuncp argument.
9754 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9755 to the argument list for static stub methods.
9756 * value.h (value_find_oload_method_list): Update prototype.
9757
9758 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9759
9760 * arch-utils.h (generic_register_size): Declare.
9761 (generic_register_raw_size, generic_register_virtual_size): Delete
9762 declarations.
9763 * arch-utils.c (generic_register_raw_size): Delete.
9764 (generic_register_size): New function.
9765 (generic_register_virtual_size): Delete.
9766
9767 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9768 default generic_register_size.
9769 * gdbarch.h, gdbarch.c: Re-generate.
9770
9771 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9772 register_virtual_size.
9773 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9775
9776 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9777
9778 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9779 * gdbarch.h, gdbarch.c: Regenerate.
9780 * gnu-v3-abi.c: Update copyright.
9781 (vtable_address_point_offset): Update.
9782 (gnuv3_rtti_type): Update.
9783 (gnuv3_baseclass_offset): Update.
9784 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9785 (init_fetch_link_map_offsets): Update.
9786 * remote.c (get_remote_state): Update.
9787
9788 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9789
9790 * TODO: Remove value_headof/value_from_vtable_info comment.
9791 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9792 * values.c (value_headof, value_from_vtable_info): Delete.
9793 * value.h (value_from_vtable_info): Delete prototype.
9794
9795 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9796
9797 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9798 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9799 $(gdb_regex_h).
9800 (gdb_assert_h): Define.
9801 (gdb_wait_h): Define.
9802 (gdb_regex_h): Define.
9803
9804 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9805
9806 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9807 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9808
9809 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9810
9811 * nbsd-tdep.c: Fix comment.
9812
9813 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9814
9815 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9816 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9817 (nbsd-tdep.o): New dependency list.
9818 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9819 nbsd-tdep.h.
9820 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9821 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9822 * nbsd-tdep.c: New file.
9823 * nbsd-tdep.h: New file.
9824 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9825 nbsd-tdep.h.
9826 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9827 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9828 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9829 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9830
9831 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9832
9833 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9834 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9835 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9836 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9837 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9838 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9839
9840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9841
9842 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9843 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9844 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9845 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9846 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9847 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9848 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9849
9850 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9851
9852 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9853 fetch_elfcore_registers to...
9854 * i386nbsd-tdep.c: ...here.
9855 (i386nbsd_use_struct_convention): Rename to...
9856 (i386nbsd_aout_use_struct_convention): ...this.
9857 (i386nbsd_supply_reg): New function.
9858 (i386nbsd_fill_reg): New function.
9859 (fetch_core_registers): Use i386nbsd_supply_reg.
9860 (fetch_elfcore_registers): Likewise.
9861 (_initialize_i386nbsd_tdep): New function.
9862 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9863 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9864 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9865 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9866 (i386nbsd_aout_use_struct_convention): ...this.
9867
9868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9869
9870 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9871 (store_inferior_registers): Use shnbsd_fill_reg.
9872 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9873 sh_nbsd_supply_register): Collapse into...
9874 (shnbsd_supply_reg): ...this.
9875 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9876 (shnbsd_fill_reg): ...this.
9877 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9878 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9879 (fetch_core_registers): Use shnbsd_supply_reg.
9880 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9881 (sh_nbsd_core_fns): Rename to...
9882 (shnbsd_core_fns): ...this.
9883 (sh_nbsd_elfcore_fns): Rename to...
9884 (shnbsd_elfcore_fns): ...this.
9885 (sh_nbsd_init_abi): Rename to...
9886 (shnbsd_init_abi): ...this.
9887 (_initialize_sh_nbsd_tdep): Rename to...
9888 (_initialize_shnbsd_tdep): ...this.
9889 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9890 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9891 sh_nbsd_fill_register): Remove prototypes.
9892 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9893
9894 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9895
9896 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9897 (i387-nat.o): Delete dependency list.
9898 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9899 (x86-64-linux-nat.o): Likewise.
9900 * i387-nat.c: Delete file, moving contents to...
9901 * i387-tdep.c: ...here.
9902 * i387-nat.h: Rename...
9903 * i387-tdep.h: ...to this.
9904 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9905 * i386-linux-nat.c: Likewise.
9906 * i386bsd-nat.c: Likewise.
9907 * i386gnu-nat.c: Likewise.
9908 * i386nbsd-nat.c: Likewise.
9909 * i386v4-nat.c: Likewise.
9910 * x86-64-linux-nat.c: Likewise.
9911 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9912 * config/i386/go32.mh (NATDEPFILES): Likewise.
9913 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9914 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9915 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9916 * config/i386/linux.mh (NATDEPFILES): Likewise.
9917 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9918 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9919 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9920 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9921
9922 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9923
9924 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9925 (alphanbsd-nat.o): Remove dependency list.
9926 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9927 * alphanbsd-nat.c: Delete. Contents moved to...
9928 * alphanbsd-tdep.c: ...here.
9929 (_initialize_alphanbsd_tdep): Register core functions.
9930 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9931
9932 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9933
9934 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9935 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9936 (alphanbsd-nat.o): Likewise.
9937 (alphabsd-tdep.o): New dependency list.
9938 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9939 (fill_gregset): Use alphabsd_fill_reg.
9940 (supply_fpregset): Use alphabsd_supply_fpreg.
9941 (fill_fpregset): Use alphabsd_fill_fpreg.
9942 (fetch_inferior_registers): Use struct reg and struct fpreg
9943 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9944 and alphabsd_supply_fpreg.
9945 (store_inferior_registers): Use struct reg and struct fpreg
9946 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9947 and alphabsd_fill_fpreg.
9948 * alphabsd-tdep.c: New file.
9949 * alphabsd-tdep.h: New file.
9950 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9951 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9952 alphabsd_supply_fpreg.
9953 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9954 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9955
9956 2002-05-11 Eric Christopher <echristo@redhat.com>
9957
9958 * mips-tdep.c (mips_double_register_type): Fix thinko.
9959 (mips_single_register_type): Ditto.
9960 * MAINTAINERS: Add self.
9961
9962 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9963
9964 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9965 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9966 right thing on architectures with different endianness and/or
9967 integer sizes.
9968
9969 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9970
9971 From Christian Limpach <chris@Pin.LU>
9972 * configure.in: Change sed expression which comments out
9973 NATDEPFILES to also comment out continuation lines.
9974 * configure: Regenerate.
9975
9976 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9977
9978 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9979 big patch.
9980
9981 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9982
9983 * sh-tdep.c: Include correct file.
9984
9985 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9986
9987 New support for sh64-elf (sh5) target.
9988
9989 * configure.tgt: For sh64-elf target, default to sh-elf.
9990
9991 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9992 (struct gdbarch_tdep): Add new fields for new registers and ABI
9993 info.
9994
9995 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9996 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9997 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9998 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9999 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10000 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10001 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10002 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10003 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10004 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10005 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10006 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10007 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10008 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10009 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10010 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10011 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10012 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10013 sign_extend, sh64_nofp_frame_init_saved_regs,
10014 sh64_init_extra_frame_info, sh64_get_saved_register,
10015 sh64_extract_struct_value_address, sh64_pop_frame,
10016 sh64_push_arguments, sh64_extract_return_value,
10017 sh64_store_return_value, sh64_show_media_regs,
10018 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10019 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10020 sh_sh64_register_virtual_type,
10021 sh_sh64_register_convert_to_virtual,
10022 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10023 sh64_register_read, sh64_pseudo_register_write,
10024 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10025 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10026 sh64_do_pseudo_register, sh_compact_do_registers_info,
10027 sh64_do_registers_info, sh_gdbarch_init): New functions.
10028
10029 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10030
10031 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10032
10033 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10034
10035 * linespec.c (decode_line_1): Check for a double quote after
10036 a filename correctly.
10037
10038 2002-05-10 Jim Blandy <jimb@redhat.com>
10039
10040 Properly track the size of the current objfile's .debug_line section.
10041 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10042 (DWARF_LINE_SIZE): New macro.
10043 (dwarf2_build_psymtabs_hard): Record the line section's size in
10044 the partial symbol table.
10045 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10046 symbol table.
10047
10048 2002-05-10 Petr Sorfa <petrs@caldera.com>
10049
10050 * ia64-tdep.c: Handle breakpoints on L instruction type
10051 in MLX instruction bundle by moving the breakpoint to
10052 the third slot (X instruction type) as L holds only data.
10053
10054 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10055
10056 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10057 (process_one_symbol): Complain about discarding local symbols
10058 due to a misplaced N_LBRAC entry.
10059
10060 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10061
10062 From Daniel Berlin <dan@cgsoftware.com>
10063 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10064 decrease the depth we are at, in the case of templates.
10065
10066 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * mips-tdep.c (mips_float_register_type): New function.
10069 (mips_double_register_type): New function.
10070 (mips_print_register): Use them.
10071 (do_fp_register_row): Likewise.
10072
10073 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10074
10075 * signals/signals.c (signals): Remove conditional compilation around
10076 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10077 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10078
10079 2002-05-09 Michael Snyder <msnyder@redhat.com>
10080
10081 * remote-rdp.c (remote_rdp_can_run): Remove.
10082
10083 2002-05-09 Tom Tromey <tromey@redhat.com>
10084
10085 * jv-valprint.c (java_val_print): Handle `char' as a special case
10086 of TYPE_CODE_INT.
10087
10088 2002-05-09 Michael Snyder <msnyder@redhat.com>
10089
10090 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10091 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10092 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10093 str r(0123),[sp,#nn].
10094 (arm_skip_prologue): Ditto. Also make disassembly
10095 order-independent by placing it in a loop.
10096
10097 2002-05-06 Michael Snyder <msnyder@redhat.com>
10098
10099 * stabsread.c (read_type): Add recognition for new attribute:
10100 "@V;" means that an array type is actually a vector.
10101 This is analogous to the vector flag that's been added to dwarf2.
10102
10103 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10104
10105 * i386-tdep.h (i386_abi): New enum.
10106 (struct gdbarch_tdep): Replace os_ident member with abi.
10107 (i386_gdbarch_register_os_abi): New prototype.
10108 * i386-tdep.c (i386_abi_names): New array.
10109 (process_note_abi_tag_sections): Removed.
10110 (process_note_sections): New function.
10111 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10112 (struct i386_abi_handler): New struct.
10113 (i386_abi_handler_list): New variable.
10114 (i386_gdbarch_register_os_abi): New function.
10115 (i386_gdbarch_init): Adapt for the changes given above.
10116
10117 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10118
10119 * gregset.h: Say "GNU/Linux".
10120
10121 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10122
10123 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10124 (build_gdbtypes): Build builtin_type_v2_float.
10125 (_initialize_gdbtypes): Register new builtin type.
10126
10127 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10128
10129 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10130 (clear_gdbarch_swap): New function.
10131 (initialize_non_multiarch): Call.
10132 (gdbarch_update_p): Before calling init(), swap out and clear the
10133 existing architecture.
10134 * gdbarch.c: Regenerate.
10135
10136 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10137
10138 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10139 alphanbsd-tdep.c.
10140
10141 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10142
10143 * sh-nbsd-nat.c: Rename to...
10144 * shnbsd-nat.c: ...this.
10145 * sh-nbsd-tdep.c: Rename to...
10146 * shnbsd-tdep.c: ...this.
10147 * sh-nbsd-tdep.h: Rename to...
10148 * shnbsd-tdep.h: ...this.
10149 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10150 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10151
10152 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10153
10154 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10155 concatenation for command help messages.
10156
10157 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10158
10159 * NEWS: Note new sh*-*-netbsdelf* configuration.
10160 * configure.host: Set gdb_host_cpu to sh for all sh*.
10161 (sh*-*-netbsdelf*): New host.
10162 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10163 (sh*-*-netbsdelf*): New target.
10164 * sh-nbsd-nat.c: New file.
10165 * sh-nbsd-tdep.c: New file.
10166 * sh-nbsd-tdep.h: New file.
10167 * config/sh/nbsd.mh: New file.
10168 * config/sh/nbsd.mt: New file.
10169 * config/sh/nm-nbsd.h: New file.
10170 * config/sh/tm-nbsd.h: New file.
10171
10172 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10173
10174 * sh-tdep.c (sh_osabi_names): Declare.
10175 (process_note_abi_tag_sections): New function.
10176 (get_elfosabi): Ditto.
10177 (sh_gdbarch_register_os_abi): Ditto.
10178 (sh_dump_tdep): Ditto.
10179 _initialize_sh_tdep): Use gdbarch_register to register
10180 sh_gdbarch_init and sh_dump_tdep.
10181 * config/sh/tm-sh.h (sh_osabi): Declare.
10182 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10183
10184 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10185
10186 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10187 (thumb_scan_prologue): Ditto.
10188 (arm_find_callers_reg): Ditto.
10189 (arm_frame_chain): Ditto.
10190 (arm_init_extra_frame_info): Ditto.
10191 (arm_frame_saved_pc): Ditto.
10192 (arm_pop_frame): Ditto.
10193 (arm_push_return_address): New function.
10194 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10195 call_dummy_location, call_dummy_breakpoint_offset_p,
10196 call_dummy_breakpoint_offset, call_dummy_p,
10197 call_dummy_stack_adjust_p, call_dummy_words,
10198 sizeof_call_dummy_words, call_dummy_start_offset,
10199 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10200 call_dummy_address, push_return_address and push_dummy_frame for
10201 generic dummy frames.
10202
10203 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10206 size computation for alloca.
10207 (sh_fp_frame_init_saved_regs): Likewise.
10208
10209 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10210
10211 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10212 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10213 * arm-tdep.c (arm_store_return_value): Use them.
10214 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10215 * remote-rdp.c (remote_rdp_fetch_register): Use
10216 ARM_MAX_REGISTER_RAW_SIZE.
10217 (remote_rdp_store_register): Likewise.
10218
10219 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10220
10221 * dwarf2cfi.c: Code cleanup, removed unused variables,
10222 added default labels to switch {} statements.
10223 * x86-64-tdep.c: Ditto.
10224 * x86-64-linux-nat.c: Ditto.
10225
10226 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10227
10228 * solib.h: Protect against multiple inclusion.
10229
10230 2002-05-06 Jim Blandy <jimb@redhat.com>
10231
10232 Add first preprocessor macro-expansion files.
10233 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10234 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10235 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10236 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10237 (COMMON_OBS): Add macrotab.o, macroexp.o.
10238 (macroexp.o, macrotab.o): New rules.
10239
10240 Separate the job of reading the line number info statement program
10241 header (...expialidocious) out into its own function.
10242 * dwarf2read.c (struct line_head, struct filenames, struct
10243 directories): Replace with...
10244 (struct line_header): New structure, containing the full
10245 contents of the statement program header, including the
10246 include directory and file name tables.
10247 (read_file_scope): If we have line number info, instead of just
10248 calling dwarf_decode_lines to do all the work, call
10249 dwarf_decode_line_header first to get a `struct line_header'
10250 containing the data in the statement program header, and then
10251 pass that to dwarf_decode_lines, which will pick up where that
10252 left off. Be sure to clean up the `struct line_header' object.
10253 (dwarf_decode_line_header, free_line_header, add_include_dir,
10254 add_file_name): New functions.
10255 (dwarf_decode_lines): Move all the code to read the statement
10256 program header into dwarf_decode_line_header. Take the line
10257 header it built as the first argument, instead of the offset to
10258 the compilation unit's line number info. Use the new `struct
10259 line_header' type instead of the old structures. No need to do
10260 cleanups here now, since we don't allocate anything.
10261 (dwarf2_statement_list_fits_in_line_number_section,
10262 dwarf2_line_header_too_long): New complaints.
10263
10264 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10265
10266 * gdbtypes.c (init_vector_type): New function.
10267 (build_builtin_type_vec128): Simplify the representation of SIMD
10268 registers.
10269 (build_gdbtypes): Initialize new builtin vector types.
10270 (_initialize_gdbtypes): Register new vector types with gdbarch.
10271 (builtin_type_v4_float, builtin_type_v4_int32,
10272 builtin_type_v8_int16, builtin_type_v16_int8,
10273 builtin_type_v2_int32, builtin_type_v4_int16,
10274 builtin_type_v8_int8): New (renamed) SIMD types.
10275
10276 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10277
10278 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10279 (i387_fill_fxsave): Likewise.
10280
10281 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10282
10283 * alpha-tdep.c (alpha_extract_return_value): Don't use
10284 non-constant array size in prototype.
10285
10286 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10287
10288 From Brian Taylor <briant at model dot com>:
10289 * ui-out.c (ui_out_field_core_addr): Use the function
10290 longest_local_hex_string_custom'to format addresses > 32 bits
10291 wide.
10292
10293 * ui-out.c (ui_out_field_core_addr): Update comment.
10294
10295 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10296
10297 * stack.c (select_and_print_frame): Make static. Delete the
10298 parameter `level'.
10299 (func_command): Update call.
10300 (select_frame_command): Delete code computing the frame level.
10301 * frame.h (select_and_print_frame): Delete declaration.
10302
10303 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10304
10305 * sparc-tdep.c (sparc_get_saved_register): Comment why
10306 get_prev_frame call is safe.
10307
10308 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10309
10310 * frame.h (select_frame): Delete level parameter.
10311 * stack.c (select_frame): Update. Use frame_relative_level to
10312 obtain the frame's level.
10313 (select_and_print_frame): Update call.
10314 (select_frame_command): Ditto.
10315 (up_silently_base): Ditto.
10316 (down_silently_base): Ditto.
10317 * ocd.c (ocd_start_remote): Ditto.
10318 * remote-rdp.c (remote_rdp_open): Ditto.
10319 * remote-mips.c (mips_initialize): Ditto.
10320 (common_open): Ditto.
10321 * remote-e7000.c (e7000_start_remote): Ditto.
10322 * m3-nat.c (select_thread): Ditto.
10323 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10324 (child_get_current_exception_event): Ditto.
10325 * varobj.c (varobj_create): Ditto.
10326 (varobj_update): Ditto.
10327 (c_value_of_root): Ditto.
10328 * tracepoint.c (finish_tfind_command): Ditto.
10329 * corelow.c (core_open): Ditto.
10330 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10331 * thread.c (info_threads_command): Ditto.
10332 (switch_to_thread): Ditto.
10333 * infrun.c (normal_stop): Ditto.
10334 (restore_selected_frame): Ditto.
10335 (restore_inferior_status): Ditto.
10336 * breakpoint.c (insert_breakpoints): Ditto.
10337 (watchpoint_check): Ditto.
10338 (bpstat_stop_status): Ditto.
10339 (do_enable_breakpoint): Ditto.
10340 * blockframe.c (flush_cached_frames): Ditto.
10341 (reinit_frame_cache): Ditto.
10342
10343 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10344
10345 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10346 maintainer.
10347
10348 2002-05-04 Jim Blandy <jimb@redhat.com>
10349
10350 * gdbtypes.c (replace_type): Doc fix.
10351
10352 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10353
10354 * valprint.c (strcat_longest): Delete commented out function.
10355 Update copyright.
10356
10357 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10358
10359 * MAINTAINERS: Mark a29k as deleted.
10360 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10361 Move new configurations to the top.
10362 * configure.tgt: Remove a29k.
10363 * config/a29k/tm-vx29k.h: Delete.
10364 * config/a29k/vx29k.mt: Delete.
10365 * config/a29k/tm-a29k.h: Delete.
10366 * config/a29k/a29k-udi.mt: Delete.
10367 * config/a29k/a29k.mt: Delete.
10368 * a29k-tdep.c: Delete.
10369 * remote-udi.c: Delete.
10370 * remote-mm.c: Delete.
10371 * remote-eb.c: Delete.
10372 * remote-adapt.c: Delete.
10373 * Makefile.in: Remove obsolete code.
10374 * config/s390/s390x.mt: Ditto.
10375 * config/s390/s390.mt: Ditto.
10376 * config/sparc/sparclynx.mh: Ditto.
10377 * config/sparc/linux.mh: Ditto.
10378 * config/pa/hppaosf.mh: Ditto.
10379 * config/pa/hppabsd.mh: Ditto.
10380 * config/ns32k/nbsd.mt: Ditto.
10381 * config/mips/vr5000.mt: Ditto.
10382 * config/m68k/sun3os4.mh: Ditto.
10383 * config/m68k/nbsd.mt: Ditto.
10384 * config/m68k/m68klynx.mh: Ditto.
10385 * config/m32r/m32r.mt: Ditto.
10386 * config/i386/x86-64linux.mt: Ditto.
10387 * config/i386/nbsdelf.mt: Ditto.
10388 * config/i386/nbsd.mt: Ditto.
10389 * config/i386/i386lynx.mh: Ditto.
10390
10391 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10392
10393 * target.c (debug_print_register): New function. Handle oversize
10394 registers.
10395 (debug_to_fetch_registers): Call.
10396 (debug_to_store_registers): Call.
10397
10398 2002-05-03 Jim Blandy <jimb@redhat.com>
10399
10400 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10401 (read_type): Doc fix.
10402 * gdbtypes.c (replace_type): Doc fix.
10403
10404 * stabsread.c (multiply_defined_struct): New complaint.
10405 (read_struct_type): If the type we were passed isn't empty, or
10406 incomplete, don't read the new struct type into it; complain,
10407 and return the original type unchanged. Take a new `type_code'
10408 argument, which is the type code for the new type.
10409 (read_type): Rather than storing the type's type code here, pass
10410 it as an argument to read_struct_type, and let that take care of
10411 storing it. That way, we don't overwrite the original type code,
10412 so read_struct_type can use it to decide whether we're overwriting
10413 something we shouldn't.
10414 (complain_about_struct_wipeout): New function.
10415
10416 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10417
10418 * gdbarch.sh: Assert that gdbarch is non-NULL.
10419 * gdbarch.c: Regenerate.
10420
10421 2002-05-03 Jason Merrill <jason@redhat.com>
10422
10423 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10424 and return NULL.
10425
10426 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10427
10428 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10429 (x86_64_dwarf2gdb_regno_map_length),
10430 (x86_64_dwarf2_reg_to_regnum): Added.
10431 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10432 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10433 (_initialize_x86_64_tdep): Synced with the change above.
10434 (x86_64_skip_prologue): Reformulated message.
10435
10436 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10437
10438 * f-exp.y: Also use new prev_lexptr variable
10439 to improve error reporting. Based on Michael Snyder
10440 2002-04-24 dated patch to c-exp.y.
10441 * jv-exp.y: Likewise.
10442 * m2-exp.y: Likewise.
10443
10444 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10445
10446 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10447 we are dealing with vectors.
10448
10449 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10450
10451 * config/m68k/tm-nbsd.h: Obvious fix,
10452 correct machine name.
10453
10454 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10455
10456 * p-typeprint.c (pascal_type_print_base): Add support
10457 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10458
10459 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10460
10461 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10462 for fondamental pascal 'char' type.
10463
10464 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10465
10466 * p-lang.h (is_pascal_string_type): Declaration changed,
10467 new sixth argument of type char ** added.
10468 * p-lang.c (is_pascal_string_type): Implementation
10469 changed. Args length_pos, length_size, string_pos, char_size
10470 can now be NULL. New argument arrayname set to the field
10471 name of the char array. Return value set to char array
10472 field index plus one.
10473 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10474 is_pascal_string_type function.
10475
10476 2002-05-02 Andrew Cagney <cagney@redhat.com>
10477
10478 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10479 <cagney@redhat.com> change.
10480 * gdbarch.c: Regenerate.
10481
10482 2002-05-02 Andrew Cagney <cagney@redhat.com>
10483
10484 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10485 before probing for a new one. Detect errorenous gdbarch_init
10486 functions.
10487 * gdbarch.c: Regenerate.
10488
10489 2002-05-01 Andrew Cagney <cagney@redhat.com>
10490
10491 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10492 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10493 * config/v850/tm-v850.h: Ditto. Update copyright.
10494
10495 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10496
10497 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10498 current_gdbarch.
10499
10500 2002-04-30 Michael Snyder <msnyder@redhat.com>
10501
10502 * arm-tdep.c: Whitespace clean-ups.
10503 (arm_skip_prologue): Fix thinko; two lines
10504 should have been removed as part of 4/24 change.
10505
10506 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10507
10508 * rs6000-tdep.c: Added comment describing how fpscr register
10509 numbers were chosen.
10510
10511 2002-04-30 Michael Snyder <msnyder@redhat.com>
10512
10513 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10514
10515 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10516
10517 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10518 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10519 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10520
10521 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10522
10523 From Louis Hamilton <hamilton@redhat.com>:
10524 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10525 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10526 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10527 not bfd-private xcoff data, to determine wordsize.
10528 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10529
10530 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10531
10532 GDB 5.2 released from 5.2 branch.
10533
10534 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10535
10536 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10537 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10538 (x86_64_register_info_table): Added comments with register numbers.
10539
10540 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10541
10542 * rs6000-tdep.c (rs6000_extract_return_value,
10543 rs6000_store_return_value): Handle returning vectors.
10544 (rs6000_gdbarch_init): Use
10545 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10546 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10547 New function.
10548 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10549 vectors.
10550 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10551 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10552
10553 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10554
10555 * hpread.c (hpread_psymtab_to_symtab_1,
10556 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10557 with fprintf_unfiltered (gdb_stderr,...).
10558
10559 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10560
10561 * remote-array.c (printf_monitor, write_monitor,
10562 array_insert_breakpoint, array_remove_breakpoint ):
10563 Replace fprintf (stderr,...
10564 with fprintf_unfiltered (gdb_stderr,....
10565 * remote-es.c: Likewise.
10566 * remote-os9k.c: Likewise.
10567 * remote-st.c: Likewise.
10568
10569 2002-04-28 Andreas Schwab <schwab@suse.de>
10570
10571 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10572 linux-proc.o and gcore.o.
10573
10574 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10575
10576 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10577 code without frame pointers.
10578
10579 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10580
10581 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10582 ON_STACK is needed.
10583
10584 2002-04-26 Ben Elliston <bje@redhat.com>
10585
10586 * target.c (do_xfer_memory): Correct reference to the new option
10587 "trust-readonly-sections".
10588
10589 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10590
10591 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10592 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10593 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10594 vectors.
10595 (read_array_type): Record the fact that this array type is really a
10596 vector (i.e. are passed in by value).
10597
10598 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10599
10600 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10601 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10602 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10603 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10604 * alpha-linux-tdep.c: Include frame.h.
10605 (alpha_linux_sigcontext_addr): New function.
10606 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10607 alpha_linux_sigcontext_addr.
10608 * alpha-osf1-tdep.c: Include gdbcore.h.
10609 (alpha_osf1_sigcontext_addr): New function.
10610 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10611 alpha_osf1_sigcontext_addr.
10612 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10613 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10614
10615 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10616
10617 * stack.c (selected_frame_level):
10618 (select_frame): Do not set selected_frame_level.
10619 * frame.h (selected_frame_level): Delete declaration.
10620
10621 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10622
10623 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10624 convert_from_func_ptr-addr when AIX / PowerOpen.
10625
10626 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10627
10628 * valops.c (hand_function_call): Call
10629 generic_save_call_dummy_addr.
10630 * frame.h (generic_save_call_dummy_addr): Declare.
10631 * blockframe.c (struct dummy_frame): Add fields call_lo and
10632 call_hi.
10633 (generic_find_dummy_frame): Check for PC in range call_lo to
10634 call_hi instead of entry_point_address.
10635 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10636 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10637 (generic_save_call_dummy_addr): New function.
10638
10639 2002-04-24 David S. Miller <davem@redhat.com>
10640
10641 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10642 sparc_skip_prologue.
10643 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10644 information to find prologue when possible.
10645 (sparc_prologue_frameless_p): Call examine_prologue directly.
10646 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10647 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10648 second argument.
10649 (SKIP_PROLOGUE): Likewise.
10650
10651 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10652
10653 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10654 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10655 indicate that the condition it was testing is always true.
10656 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10657 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10658 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10659
10660 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10661
10662 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10663 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10664 tdep->jb_pc and tdep->jb_elt_size.
10665 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10666 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10667 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10668 * alpha-nat.c (get_longjmp_target): Remove.
10669 (JB_ELEMENT_SIZE): Ditto.
10670 (JB_PC): Ditto.
10671 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10672 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10673 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10674 to alpha_get_longjmp_target.
10675 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10676 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10677 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10678
10679 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10680
10681 * README: Update to GDB 5.2.
10682
10683 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10684
10685 * gdbarch.sh (LC_ALL): Set to `c'.
10686
10687 2002-04-25 Theodore A. Roth <troth@verinet.com>
10688
10689 * avr-tdep.c: Ran through gdb_indent.sh.
10690
10691 2002-04-25 Theodore A. Roth <troth@verinet.com>
10692
10693 * MAINTAINERS: Add myself as AVR maintainer.
10694 * NEWS: Note new target avr.
10695
10696 2002-04-25 Theodore A. Roth <troth@verinet.com>
10697
10698 * Makefile.in: Add support for AVR target.
10699 * configure.tgt: Add support for AVR target.
10700 * avr-tdep.c: New file
10701 * config/avr/avr.mt: New file.
10702
10703 2002-04-25 Theodore A. Roth <troth@verinet.com>
10704
10705 * MAINTAINERS: Add myself to write-after-approval.
10706
10707 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10708
10709 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10710 with fprintf_unfiltered (gdb_stderr,....
10711
10712 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10713
10714 Fix PR gdb/508.
10715 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10716
10717 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10718
10719 * p-exp.y: Also use new prev_lexptr variable
10720 to improve error reporting. Based on Michael Snyder
10721 2002-04-24 dated patch to c-exp.y.
10722
10723 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10724
10725 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10726 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10727 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10728 to 0.
10729 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10730 and struct value.
10731 (FUNCTION_START_OFFSET): Remove.
10732 (BREAKPOINT): Ditto.
10733
10734 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10735
10736 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10737 * NEWS: Ditto.
10738
10739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10740
10741 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10742 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10743 alpha_linux_pc_in_sigtramp.
10744 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10745 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10746 alpha_osf1_pc_in_sigtramp.
10747 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10748 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10749 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10750 alphafbsd_pc_in_sigtramp.
10751 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10752 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10753 alphanbsd_pc_in_sigtramp.
10754 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10755 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10756
10757 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10758
10759 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10760
10761 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10762
10763 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10764 alphanbsd-tdep.c.
10765 (alphanbsd-nat.o): New dependency list.
10766 (alphanbsd-tdep.o): Ditto.
10767 * NEWS: Note new native NetBSD/alpha configuration.
10768 * alphanbsd-nat.c: New file.
10769 * alphanbsd-tdep.c: Ditto.
10770 * configure.host (alpha*-*-netbsd*): New host.
10771 * configure.tgt (alpha*-*-netbsd*): New target.
10772 * config/alpha/nbsd.mh: New file.
10773 * config/alpha/nbsd.mt: Ditto.
10774 * config/alpha/nm-nbsd.h: Ditto.
10775 * config/alpha/tm-nbsd.h: Ditto.
10776
10777 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10778
10779 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10780 (alpha-osf1-tdep.o): New dependency list.
10781 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10782 and skip_sigtramp_frame members.
10783 * alpha-linux-tdep.c: Include gdbcore.h.
10784 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10785 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10786 * alpha-osf1-tdep.c: New file.
10787 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10788 alpha-osf1-dep.c.
10789 (alpha_frame_past_sigtramp_frame): New function.
10790 (alpha_dynamic_sigtramp_offset): Ditto.
10791 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10792 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10793 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10794 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10795 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10796 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10797 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10798 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10799 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10800 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10801 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10802 to find_solib_trampoline_target.
10803 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10804 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10805 (SKIP_TRAMPOLINE_CODE): Remove.
10806 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10807 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10808 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10809 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10810 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10811 (PROC_SIGTRAMP_MAGIC): Ditto.
10812 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10813 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10814 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10815 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10816 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10817
10818 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10819
10820 * NEWS: Note that Alpha targets are now multi-arch.
10821
10822 2002-04-24 Michael Snyder <msnyder@redhat.com>
10823
10824 * parser-defs.h (prev_lexptr): New external variable.
10825 * parse.c (parse_exp_1): Set prev_lexptr to null before
10826 calling the language-specific parser.
10827 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10828 (yyerror): Use prev_lexptr in error reporting.
10829
10830 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10831
10832 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10833 * gregset.h: If FILL_FPXREGSET is defined, provide
10834 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10835 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10836 is defined, call fill_fpxregset.
10837
10838 2002-04-24 Roland McGrath <roland@frob.com>
10839
10840 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10841 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10842 (supply_gregset, supply_fpregset): New functions.
10843
10844 * gnu-nat.c (gnu_find_memory_regions): New function.
10845 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10846 (gnu_xfer_memory): Add a cast.
10847
10848 2002-04-24 Michael Snyder <msnyder@redhat.com>
10849
10850 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10851 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10852 of argument regs ("str r(0123), [r11, #-nn"]).
10853 (arm_skip_prologue): Better handling for frameless functions.
10854 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10855 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10856
10857 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10858
10859 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10860 NUM_PSEUDO_REGS can be used.
10861
10862 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10863
10864 * arch-utils.h: Update copyright.
10865
10866 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10867 * gdbarch.h, gdbarch.c: Re-generate.
10868
10869 * inferior.h (IN_SIGTRAMP): Delete definition.
10870 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10871 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10872
10873 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10874 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10875 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10876 (find_proc_framesize): Ditto.
10877 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10878 (alpha_init_extra_frame_info): Ditto.
10879 * infrun.c (handle_inferior_event): Ditto.
10880 (handle_inferior_event): Ditto.
10881 (check_sigtramp2): Ditto.
10882 * blockframe.c (create_new_frame): Ditto.
10883 (get_prev_frame): Ditto.
10884 * ppc-linux-tdep.c: Update comments.
10885 * i386-linux-tdep.c: Update comments.
10886 * breakpoint.c (bpstat_what): Update comment.
10887
10888 2002-04-24 David S. Miller <davem@redhat.com>
10889
10890 * i960-tdep.c (register_in_window_p): New function.
10891 (i960_find_saved_register): Use it instead of
10892 REGISTER_IN_WINDOW_P.
10893 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10894
10895 * symtab.h (find_stab_function_addr): Kill extern.
10896 * minsyms.c (find_stab_function_addr): Remove from here...
10897 * dbxread.c: ... to here, and mark it static.
10898
10899 2002-04-20 David S. Miller <davem@redhat.com>
10900
10901 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10902 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10903
10904 2002-04-21 David S. Miller <davem@redhat.com>
10905
10906 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10907 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10908 (vx_write_register): Likewise.
10909
10910 2002-04-23 J. Brobecker <brobecker@gnat.com>
10911
10912 * source.c (is_regular_file): New function.
10913 (openp): Check wether file to open is a regular file
10914 to avoid opening directories.
10915
10916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10917
10918 * findvar.c (extract_signed_integer): Cast printf argument
10919 to suppress format warning.
10920 (extract_unsigned_integer): Likewise.
10921 * infcmd.c (registers_info): Likewise.
10922 * top.c (get_prompt_1): Likewise.
10923 * valops.c (value_assign): Likewise.
10924 * valprint.c (print_decimal): Likewise.
10925
10926 2002-04-22 H.J. Lu (hjl@gnu.org)
10927
10928 * c-exp.y (typebase): Support
10929
10930 [long|long long|short] [signed|unsigned] [int|]
10931
10932 and
10933
10934 signed [long|long long|short] int
10935
10936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10937
10938 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10939 and vax-tdep.h.
10940 * vax-tdep.h: New file.
10941 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10942 Make several routines static.
10943 (vax_get_saved_register): New function.
10944 (vax_gdbarch_init): New function.
10945 (_initialize_vax_tdep): Register vax_gdbarch_init.
10946 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10947 Remove macros now under the control of gdbarch.
10948
10949 2002-04-22 Michael Snyder <msnyder@redhat.com>
10950
10951 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10952 Some whitespace and coding standards tweaks.
10953
10954 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10955
10956 * vax-tdep.c: Include regcache.h.
10957 (vax_call_dummy_words): New.
10958 (sizeof_vax_call_dummy_words): New.
10959 (vax_fix_call_dummy): New function.
10960 (vax_saved_pc_after_call): Ditto.
10961 * config/vax/tm-vax.h: Don't include regcache.h.
10962 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10963 (CALL_DUMMY): Remove.
10964 (CALL_DUMMY_WORDS): Define.
10965 (SIZEOF_CALL_DUMMY_WORDS): Define.
10966 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10967
10968 2002-04-18 Michael Snyder <msnyder@redhat.com>
10969
10970 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10971
10972 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10973
10974 * vax-tdep.c (vax_frame_chain): New function.
10975 (vax_push_dummy_frame): Ditto.
10976 (vax_pop_frame): Ditto.
10977 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10978 (FRAMELESS_FUNCTION_INVOCATION): Use
10979 generic_frameless_function_invocation_not.
10980 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10981 (POP_FRAME): Use vax_pop_frame.
10982
10983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10984
10985 * vax-tdep.c (vax_store_struct_return): New function.
10986 (vax_extract_return_value): Ditto.
10987 (vax_store_return_value): Ditto.
10988 (vax_extract_struct_value_address): Ditto.
10989 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10990 vax_store_struct_return.
10991 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10992 (STORE_RETURN_VALUE): Use vax_store_return_value.
10993 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10994
10995 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10996
10997 * vax-tdep.c (vax_frame_saved_pc): New function.
10998 (vax_frame_args_address_correct): Ditto.
10999 (vax_frame_args_address): Ditto.
11000 (vax_frame_locals_address): Ditto.
11001 (vax_frame_num_args): Move code to be in proximity to
11002 other frame-related functions.
11003 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11004 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11005 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11006 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11007 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11008
11009 2002-04-22 H.J. Lu (hjl@gnu.org)
11010
11011 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11012 includedir.
11013
11014 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11015
11016 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11017 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11018 (FRAME_INIT_SAVED_REGS): New macro.
11019
11020 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11021
11022 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11023
11024 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11025
11026 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11027 where needed.
11028 (fetch_osf_core_registers): Likewise.
11029 (supply_gregset): Likewise.
11030
11031 2002-04-22 J. Brobecker <brobecker@gnat.com>
11032
11033 * symfile.h (get_section_index): Define.
11034 * symfile.c (get_section_index): New function.
11035 * mdebugread.c (SC_IS_SBSS): New macro.
11036 (SC_IS_BSS): Return true for the scBss storage class only, as
11037 the scSBss storage class refers to the .sbss section.
11038 (parse_partial_symbols): Discard the symbols which associated
11039 section does not exist.
11040 Make sure to use the .sbss section index for symbols which
11041 storage class is scBss, rather than using the .bss section index.
11042
11043 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11044
11045 * vax-tdep.c: Update copyright years.
11046 (vax_register_name): New function.
11047 (vax_register_byte): Ditto.
11048 (vax_register_raw_size): Ditto.
11049 (vax_register_virtual_size): Ditto.
11050 (vax_register_virtual_type): Ditto.
11051 * config/vax/tm-vax.h: Update copyright years.
11052 (REGISTER_NAMES): Remove.
11053 (REGISTER_NAME): Define.
11054 (REGISTER_BYTE): Use vax_register_byte.
11055 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11056 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11057 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11058
11059 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11060
11061 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11062 declaration
11063 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11064
11065 2002-04-21 David S. Miller <davem@redhat.com>
11066
11067 * arch-utils.c (generic_prologue_frameless_p): Kill
11068 SKIP_PROLOGUE_FRAMELESS_P code.
11069 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11070 references.
11071 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11072 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11073 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11074 references.
11075 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11076 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11077 (sparc_gdbarch_init): Pass it to
11078 set_gdbarch_prologue_frameless_p.
11079
11080 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11081
11082 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11083 (alphabsd-nat.o): New dependency list.
11084
11085 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11086
11087 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11088 alphafbsd-tdep.c.
11089 (alpha-linux-tdep.o): New dependency list.
11090 (alphafbsd-tdep.o): Likewise.
11091
11092 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11095 to here...
11096 * alpha-tdep.c: ...from here.
11097 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11098
11099 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11100
11101 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11102 prototype from here...
11103 * alpha-tdep.h: ...to here.
11104
11105 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11106
11107 * frame.h (selected_frame_level): Document as deprecated.
11108 (frame_relative_level): Declare.
11109 * stack.c (frame_relative_level): New function.
11110 (selected_frame_level): Document as deprecated.
11111 (select_frame): Do not set the selected_frame_level.
11112
11113 * stack.c (frame_info, record_selected_frame): Update.
11114 (frame_command, current_frame_command): Update.
11115 (up_silently_base, up_command, down_silently_base): Update.
11116 (down_command): Update.
11117 * inflow.c (kill_command): Update.
11118 * tracepoint.c (finish_tfind_command): Update.
11119 * corelow.c (core_open): Update.
11120 * thread.c (info_threads_command): Update.
11121 (do_captured_thread_select): Update.
11122 * infcmd.c (finish_command): Update.
11123 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11124
11125 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11126
11127 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11128
11129 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11130
11131 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11132 type const.
11133
11134 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11135
11136 * alphafbsd-tdep.c: Update copyright years. Include
11137 alpha-tdep.h.
11138 (alphafbsd_use_struct_convention): Make static.
11139 (alphafbsd_init_abi): New function.
11140 (_initialize_alphafbsd_tdep): New function.
11141 * config/alpha/tm-fbsd.h: Update copyright years.
11142 (USE_STRUCT_CONVENTION): Remove.
11143
11144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11145
11146 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11147 an Alpha ABI variant.
11148 (alpha_abi_handler_list): Declare.
11149 (alpha_gdbarch_register_os_abi): New function.
11150 (alpha_gdbarch_init): Give registered ABI variant handlers a
11151 chance to tweak the gdbarch once we have set up defaults.
11152 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11153
11154 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11155
11156 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11157 to standard_coerce_float_to_double.
11158 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11159
11160 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11161
11162 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11163 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11164 from gdbarch_tdep rather than a constant.
11165 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11166 the default text address for all Alpha Unix ABIs.
11167 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11168 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11169
11170 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11171
11172 * alpha-tdep.h: New file. Includes several Alpha target constants
11173 taken from...
11174 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11175 let gdbarch deal with.
11176 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11177 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11178 to dependency list.
11179 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11180 Alpha target register names.
11181 * alphabsd-nat.c: Likewise.
11182 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11183 Alpha target register names. Make serveral routines static.
11184 (alpha_get_saved_register): New function.
11185 (alpha_abi_names): New.
11186 (process_note_abi_tag_sections): New function.
11187 (get_elfosabi): New function.
11188 (alpha_gdbarch_init): New function.
11189 (alpha_dump_tdep): New function.
11190 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11191
11192 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11193
11194 * frame.c (find_saved_register): Delete #ifdef
11195 HAVE_REGISTER_WINDOWS code.
11196 * config/sparc/tm-sparc.h: Update comments.
11197 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11198
11199 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11200
11201 * i960-tdep.c (i960_find_saved_register): New function.
11202 (i960_get_saved_register): New function.
11203 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11204 (i960_get_saved_register): Declare.
11205 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11206
11207 2002-04-20 David S. Miller <davem@redhat.com>
11208
11209 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11210
11211 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11212
11213 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11214 instead of NUM_PSEUDO_REGS.
11215
11216 2002-04-20 David S. Miller <davem@redhat.com>
11217
11218 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11219 GDB_MULTI_ARCH_PARTIAL
11220 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11221 define, let tm-sp64.h do it.
11222
11223 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11224
11225 * frame.c (find_saved_register): Avoid a NULL pointer
11226 dereference and actually walk the frame list.
11227
11228 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11229
11230 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11231 sorted in most most-recent-used order. Document.
11232 * gdbarch.h, gdbarch.c: Regenerate.
11233
11234 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11235
11236 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11237 instead of ->prev.
11238 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11239 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11240 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11241 instead of ->prev.
11242
11243 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11244
11245 Fix PR gdb/471.
11246 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11247 (build_builtin_type_vec128): Ditto.
11248 (append_composite_type_field): Fix calculation of type length in
11249 union case.
11250
11251 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11252
11253 * config/djgpp/README: Update.
11254
11255 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11256 compiler warnings.
11257
11258 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11259
11260 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11261 (alpha_setup_arbitrary_frame): ...to this.
11262 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11263 for alpha_setup_arbitrary_frame.
11264
11265 2002-04-18 Andrew Cagney <cagney@redhat.com>
11266
11267 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11268 * gdbarch.h, gdbarch.c: Regenerate.
11269
11270 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11271 * target.h (memory_breakpoint_from_pc): Update declaration.
11272 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11273
11274 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11275 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11276 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11277 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11278 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11279 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11280 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11281 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11282 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11283 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11284 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11285 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11286
11287 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11288 const pointer.
11289 * monitor.c (monitor_insert_breakpoint): Ditto.
11290 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11291
11292 * config/mcore/tm-mcore.h: Update copyright.
11293 * mem-break.c: Ditto.
11294 * xstormy16-tdep.c: Ditto.
11295
11296 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11297
11298 * p-exp.y: Add precedence rule for '^' token.
11299 This removes the shift/reduce conflicts.
11300 Remove the comment concerning these shift/reduce conflicts.
11301
11302 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11303
11304 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11305 (registers_powerpc_nofp): New register set for processors
11306 without floating point unit.
11307
11308 2002-04-18 David S. Miller <davem@redhat.com>
11309
11310 * MAINTAINERS: Add myself to write-after-approval.
11311
11312 2002-04-17 Michael Snyder <msnyder@redhat.com>
11313
11314 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11315
11316 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11317
11318 * rs6000-tdep.c (frame_initial_stack_address): Use
11319 frame_register_read to read the alloca_reg.
11320
11321 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11322
11323 * frame.c (find_saved_register): Find saved registers in the next
11324 not prev frame.
11325 Fix PR gdb/365.
11326
11327 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11328
11329 * gdbarch.sh (LANG): Set to ``c''.
11330
11331 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11332
11333 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11334
11335 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11336
11337 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11338 Update copyright.
11339
11340 * hpread.c (hpread_get_lntt): Add declaration.
11341 Also fix PR gdb/391.
11342
11343 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11344
11345 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11346 * aclocal.m4, configure: Re-generate.
11347 Fix PR gdb/391.
11348
11349 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11350
11351 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11352 instead of tm_print_insn.
11353
11354 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11355
11356 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11357
11358 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11359
11360 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11361 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11362 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11363
11364 2002-04-12 Don Howard <dhoward@redhat.com>
11365
11366 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11367 max_user_call_depth.
11368 (init_cmd_lists): Initialize the new value;
11369 * cli/cli-script.c (execute_user_command): Limit the call depth of
11370 user defined commands. This avoids a core-dump when user commands
11371 are infinitly recursive.
11372
11373 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11374
11375 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11376 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11377 from tdep struct instead of DEFAULT_LR_SAVE.
11378 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11379 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11380 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11381
11382 2002-04-12 Michael Snyder <msnyder@redhat.com>
11383
11384 * Remote.c: Spelling fix.
11385 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11386 If no symbol found for "sbrk", try "_sbrk".
11387 (make_output_phdrs): Use bfd_section_name.
11388 (gcore_copy_callback): Use bfd_section_name.
11389 * eval.c: Indentation fix-ups.
11390 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11391 in case it gets applied to an address that is already
11392 in the instruction space.
11393 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11394 * symfile.c: Fix indentation, long lines.
11395 * source.c: White space fix-up.
11396
11397 2002-04-12 Andrew Cagney <cagney@redhat.com>
11398
11399 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11400 * frame.c (frame_register_read): New function. Return non-zero on
11401 success.
11402 (read_relative_register_raw_bytes_for_frame): Delete.
11403 (read_relative_register_raw_bytes): Delete.
11404 * frame.h (frame_register_read): Declare.
11405 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11406 * sh-tdep.c: Ditto.
11407 * infcmd.c (do_registers_info): Ditto.
11408 * hppa-tdep.c: Ditto.
11409 * rs6000-tdep.c: Ditto.
11410 * h8500-tdep.c: Ditto.
11411 * mips-tdep.c: Ditto.
11412 * h8300-tdep.c: Ditto.
11413 * z8k-tdep.c: Ditto.
11414
11415 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11416
11417 From Jimi X <jimix@watson.ibm.com>:
11418 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11419 64-bit SysV ABI.
11420
11421 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11422
11423 From Jimi X <jimix@watson.ibm.com>:
11424 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11425 bfd info.
11426
11427 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11428
11429 From Jimi X <jimix@watson.ibm.com>:
11430 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11431 register sets for these processor variants.
11432
11433 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11434
11435 * regformats/reg-ppc.dat: Support FPSCR.
11436
11437 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11438
11439 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11440 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11441 Add fpscr as an invalid/unfetchable register.
11442 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11443 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11444 (fill_fpregset): Add support for register fpscr.
11445 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11446 (fill_gregset): Account for the fact that register ``mq'' might
11447 not exist.
11448 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11449 (registers_power): Add fpscr to register set at slot 71.
11450 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11451 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11452
11453 2002-04-11 Michael Snyder <msnyder@redhat.com>
11454
11455 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11456 * configure: Regenerate.
11457 * config.in: Regenerate.
11458 * acconfig.h: Add define for _SYSCALL32.
11459 * core-sol2.c: Remove #define _SYSCALL32.
11460 * solib-legacy.c: Remove #define _SYSCALL32.
11461
11462 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11463
11464 * stack.c (select_frame): Cleanup internal error message, do not
11465 use %p.
11466
11467 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11468
11469 * stack.c (select_frame): Check that selected_frame and the
11470 specified level are as expected.
11471 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11472 Update copyright.
11473 * frame.h (struct frame_info): Add field `level'. Update
11474 copyright.
11475 Work-in-progress PR gdb/464.
11476
11477 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11478
11479 * maint.c (maint_print_section_info): Rename print_section_info.
11480 (print_bfd_section_info, print_objfile_section_info): Update.
11481 * inferior.h (struct gdbarch): Add opaque declaration.
11482 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11483 * gdbarch.h: Regenerate.
11484
11485 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11486
11487 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11488 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11489 (kernel_u_size): Added.
11490 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11491 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11492
11493 2002-04-04 Jim Ingham <jingham@apple.com>
11494
11495 * valarith.c (find_size_for_pointer_math): New function, either returns
11496 the size for a pointer's target, returns 1 for void *, or errors for
11497 incomplete types.
11498 (value_add, value_sub): use find_size_for_pointer_math.
11499
11500 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11501
11502 * linux-low.c (linux_look_up_symbols): New hook.
11503 (linux_target_ops): Add linux_look_up_symbols.
11504 * remote-utils.c (decode_address): New function.
11505 (look_up_one_symbol): New function.
11506 * server.c (handle_query): Call target look_up_symbols hook.
11507 * server.h (look_up_one_symbol): Add prototype.
11508 * target.h (struct target_ops): Add look_up_symbols hook.
11509
11510 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11511
11512 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11513 override FP_REGNUM with frame->fp. Update copyright.
11514 * parse.c (num_std_regs, std_regs): Delete.
11515 (target_map_name_to_register): Do not search std_regs. Update
11516 function description.
11517 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11518 declarations. Update copyright.
11519 Fix PR gdb/251.
11520
11521 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11522
11523 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11524 after the last symbol in a block.
11525
11526 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11527
11528 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11529 is non zero as a found symbol.
11530
11531 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11532
11533 * findvar.c: Include "builtin-regs.h".
11534 (value_of_register): Call value_of_builtin_reg when applicable.
11535 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11536 (target_map_name_to_register): Call
11537 builtin_reg_map_name_to_regnum.
11538 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11539 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11540 (builtin_regs_h): Define.
11541 (builtin-regs.o): New target.
11542 (findvar.o): Add $(builtin_regs_h).
11543 * builtin-regs.c, builtin-regs.h: New files.
11544 * std-regs.c: New file.
11545 Partial fix for PR gdb/251.
11546
11547 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11548
11549 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11550 it's no longer required.
11551
11552 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11553
11554 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11555
11556 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11557
11558 From Jimi X <jimix@watson.ibm.com>:
11559 * rs6000-tdep.c (rs6000_software_single_step): Use
11560 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11561 and size. Use target_insert_breakpoint() and
11562 target_remove_breakpoint() to insert and remove breakpoints
11563 instead of explicit memory reads and writes.
11564
11565 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11566
11567 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11568 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11569 ELF_OBJECT_FORMAT ifdef.
11570
11571 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11572
11573 From Jimi X <jimix@watson.ibm.com>:
11574 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11575
11576 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11577
11578 From Jimi X <jimix@watson.ibm.com>:
11579 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11580 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11581
11582 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11583
11584 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11585 s/asprintf/xasprintf/.
11586 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11587
11588 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11589
11590 I believe Jeff Law denies responsability for this one:
11591 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11592 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11593 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11594 Work-around for PR gdb/366.
11595
11596 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11597
11598 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11599 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11600 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11601
11602 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11603
11604 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11605 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11606 information.
11607
11608 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11609
11610 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11611 maintainer.
11612
11613 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11614
11615 * README (Reporting Bugs in GDB): Document the bug web page as the
11616 prefered way of submitting bugs.
11617 Fix PR gdb/402.
11618
11619 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11620
11621 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11622 -1. Update comment.
11623 * gdbarch.h, gdbarch.c: Re-generate.
11624
11625 2002-04-07 Andreas Schwab <schwab@suse.de>
11626
11627 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11628 buffer to regcache_collect.
11629
11630 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11631
11632 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11633 * gdbarch.c, gdbarch.h: Re-generate.
11634
11635 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11636
11637 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11638 declaration. Fix -Werror.
11639
11640 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11641
11642 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11643 * gdbarch.c: Regenerate.
11644
11645 2002-04-05 Michael Snyder <msnyder@redhat.com>
11646
11647 * breakpoint.c (clear_command): Rewrite middle section to
11648 combine two loops with identical control conditions.
11649 Add a cleanup to eliminate a memory leak.
11650 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11651
11652 2002-04-05 H.J. Lu (hjl@gnu.org)
11653
11654 * solib-svr4.c (bkpt_names): Add "__start".
11655
11656 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11657
11658 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11659 as test for 64 bit target.
11660
11661 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11662
11663 * h8500-tdep.c (h8500_write_fp): Delete function.
11664 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11665 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11666 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11668 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11669 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11670 (s390_write_fp):
11671 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11672 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11673 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11674 (d10v_write_fp): Delete function.
11675 * inferior.h (write_fp, generic_target_write_fp): Delete
11676 declarations.
11677 * regcache.c (generic_target_write_fp): Delete function.
11678 (write_fp): Delete function.
11679 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11680 * gdbarch.h, gdbarch.c: Regenerate.
11681 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11682 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11683 (sparc64_write_fp): Delete declaration.
11684 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11685 (h8500_write_fp): Delete declaration.
11686
11687 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11688
11689 * sparc-tdep.c (sparc64_write_fp): Delete.
11690 (sparc_push_dummy_frame): Replace write_fp call with code to store
11691 the FP directly.
11692 (sparc_gdbarch_init): Do not initialize write_fp.
11693
11694 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11695
11696 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11697 clause.
11698
11699 2002-03-29 Jim Blandy <jimb@redhat.com>
11700
11701 * stack.c (get_selected_block): Add new argument `addr_in_block',
11702 used to return the exact code address we used to select the block,
11703 not just the block.
11704 * blockframe.c (get_frame_block, get_current_block): Same.
11705 * frame.h (get_frame_block, get_current_block,
11706 get_selected_block): Update declarations.
11707 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11708 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11709
11710 2002-04-05 Michael Snyder <msnyder@redhat.com>
11711
11712 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11713 warning message.
11714
11715 2002-04-05 J. Brobecker <brobecker@gnat.com>
11716
11717 * utils.c (xfullpath): New function.
11718 * defs.h (xfullpath): Add declaration.
11719 * source.c (openp): Use xfullpath in place of gdb_realpath to
11720 avoid resolving the basename part of filenames when the
11721 associated file is a symbolic link. This fixes a potential
11722 inconsistency between the filenames known to GDB and the
11723 filenames it prints in the annotations.
11724 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11725 to be able to match a filename with either the real filename, or
11726 the name of any symbolic link to this file.
11727 (lookup_partial_symtab): Ditto.
11728
11729 2002-04-04 Michael Snyder <msnyder@redhat.com>
11730
11731 * breakpoint.c: Add support for hardware breakpoints in overlays.
11732 (overlay_events_enabled): New state variable.
11733 (insert_breakpoints): Use overlay_events_enabled to decide
11734 whether to attempt to set a breakpoint at the overlay load addr.
11735 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11736 (remove_breakpoint): Use overlay_events_enabled to decide
11737 whether breakpoints need to be removed from overlay load addr.
11738 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11739 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11740 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11741 disable_overlay_breakpoints): Update overlay_events_enabled.
11742
11743 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * dwarf2read.c (struct function_range): New.
11746 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11747 (check_cu_functions): New.
11748 (read_file_scope): Initialize global function lists.
11749 Call dwarf_decode_line after processing children.
11750 (read_func_scope): Add to global function list.
11751 (dwarf_decode_lines): Call check_cu_functions everywhere
11752 record_line is called. Call record_line with a linenumber
11753 of 0 to mark sequence ends.
11754
11755 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11756
11757 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11758 change sync with glibc.
11759
11760 2002-04-03 Jim Blandy <jimb@redhat.com>
11761
11762 * configure.in: Call AC_C_INLINE.
11763 * configure: Regenerated.
11764
11765 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11766
11767 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11768 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11769
11770 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11771
11772 * NEWS: Mention gcore support on FreeBSD/i386.
11773
11774 * fbsd-proc.c: New file.
11775 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11776 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11777
11778 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11779 while statement.
11780
11781 2002-03-29 Jim Blandy <jimb@redhat.com>
11782
11783 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11784 unescaped newlines in string literals, but newer ones don't. So
11785 escape them.
11786
11787 2002-03-26 Michael Snyder <msnyder@redhat.com>
11788 Andrew Cagney <cagney@redhat.com>
11789
11790 * cli/cli-dump.c: New file. Dump memory to file,
11791 restore file to memory.
11792 * cli/cli-dump.h: New file.
11793 * Makefile.in: Add rules, dependencies for cli-dump.o.
11794 * NEWS: Mention new commands.
11795
11796 2002-03-28 Michael Snyder <msnyder@redhat.com>
11797
11798 * symfile.c (symbol_file_add): Move test for null symbols to later.
11799
11800 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11801
11802 From veksler at il.ibm.com:
11803 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11804 the xstrduped original path.
11805 Fix PR gdb/417.
11806
11807 2002-03-27 Michael Snyder <msnyder@redhat.com>
11808
11809 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11810 * infcmd.c (_initialize_infcmd): Ditto.
11811 * language.c (_initialize_language): Ditto.
11812 * symfile.c (_initialize_symfile): Ditto.
11813 * top.c (_init_main): Ditto.
11814 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11815
11816 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11817
11818 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11819 vector registers handling.
11820 (skip_prologue): Handle new AltiVec instructions. Fill in new
11821 fields of frame data.
11822 (frame_get_saved_regs): Fill in information for AltiVec registers.
11823
11824 2002-03-27 Jim Blandy <jimb@redhat.com>
11825
11826 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11827 a function; leave this macro here to invoke that function.
11828 (symbol_init_mangled_name): Declaration for that function.
11829 * symtab.c (symbol_init_mangled_name): New function.
11830
11831 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11832
11833 * valarith.c: Replace strerror with safe_strerror.
11834 * tracepoint.c: Ditto.
11835 * lin-lwp.c: Ditto.
11836 * go32-nat.c: Ditto.
11837 * inflow.c: Ditto.
11838 * gnu-nat.c: Ditto.
11839
11840 2002-03-27 Andreas Schwab <schwab@suse.de>
11841
11842 * event-top.c (command_line_handler): Remove useless if.
11843
11844 2002-03-27 Andreas Jaeger <aj@suse.de>
11845
11846 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11847 comment.
11848
11849 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11850
11851 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11852 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11853 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11854 (x86_64_linux_dr_get_status, supply_gregset),
11855 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11856 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11857 (x86_64_register_info_table): Add.
11858 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11859 (x86_64_register_raw_size, x86_64_register_virtual_type),
11860 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11861 general x86_64_register_info_table.
11862 (i386_gdbarch_init): gdbarch_register_bytes is now set
11863 dynamicaly during initialization.
11864 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11865 * gdbserver/linux-x86-64-low.c: Ditto.
11866
11867 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11868
11869 * gdbserver/server.c (main): Call target_signal_to_host_p
11870 and target_signal_to_host on signals received from the remote.
11871 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11872 target_signal_from_host on signals sent to the remote.
11873 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11874 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11875
11876 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * signals/signals.c: Include "server.h" in gdbserver build.
11879 (target_signal_from_name): Don't use STREQ.
11880 (_initialize_signals): Likewise. Don't include function in
11881 gdbserver build.
11882
11883 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * signals.c: Moved to...
11886 * signals/signals.c: Here.
11887 * Makefile (signals.o): Update.
11888
11889 2002-03-26 Jeff Law (law@redhat.com)
11890
11891 * somread.c (som_symtab_read): Remove some commented out code and
11892 updated related comments. Do not set the minimal symbol table to
11893 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11894 in a dynamic executable.
11895 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11896 where we are unable to find the minimal symbol for the given
11897 PC value.
11898
11899 2002-03-25 Jeff Law (law@redhat.com)
11900
11901 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11902
11903 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11904
11905 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11906
11907 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11908
11909 * command.h: Update copyright.
11910 (struct cmd_list_element): Replace definition with opaque
11911 declaration.
11912 (enum cmd_types): Document that it will eventually be moved to
11913 cli/cli-decode.h
11914 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11915 (MALLOCED_REPLACEMENT): Delete macro.
11916 * Makefile.in (cli_decode_h): Add $(command_h).
11917 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11918 * top.c: Include "cli/cli-decode.h".
11919 * completer.c: Include "cli/cli-decode.h".
11920 * maint.c: Include "cli/cli-decode.h".
11921 * cli/cli-decode.h: Include "command.h".
11922 (enum command_class): Delete.
11923 (enum cmd_types): Comment out.
11924 (enum cmd_auto_boolean): Delete.
11925 (enum var_types): Delete.
11926
11927 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11928
11929 * cli/cli-decode.c: Include "gdb_assert.h".
11930 (add_set_or_show_cmd): New static function.
11931 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11932 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11933 all fields, such as func, from the set command.
11934
11935 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11936
11937 * MAINTAINERS (sh-elf): Change warning flag to -w.
11938
11939 2002-03-23 Andrew Cagney <cagney@redhat.com>
11940
11941 * defs.h (error): Add printf format attribute.
11942 * thread-db.c (thread_from_lwp): Fix error format string.
11943 * stack.c (parse_frame_specification): Ditto.
11944 * cli/cli-decode.c (undef_cmd_error): Ditto.
11945 * scm-lang.c (scm_lookup_name): Ditto.
11946 * tracepoint.c (trace_error): Ditto.
11947 * remote-utils.c (usage): Ditto.
11948 * remote.c (compare_sections_command): Ditto.
11949 Fix PR gdb/328.
11950
11951 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11952
11953 * gdbtypes.c (append_composite_type_field): New function.
11954 (init_composite_type): New function.
11955 * gdbtypes.h (append_composite_type_field): Declare.
11956 (init_composite_type): Ditto.
11957
11958 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11959
11960 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11961 function.
11962 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11963 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11964 structure returning convention for SYSV ABI case, but not
11965 for GNU/Linux, FreeBSD, or NetBSD.
11966
11967 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11968
11969 * symtab.h (lookup_block_symbol): Add mangled_name argument
11970 to prototype.
11971
11972 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11973 with new mangled_name argument.
11974 * linespec.c (decode_line_1): Likewise.
11975 * valops (value_of_this): Likewise.
11976 * symtab.c (lookup_transparent_type): Likewise.
11977 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11978 (lookup_symbol): If we are given a mangled name, pass it down
11979 to lookup_symbol_aux.
11980 (lookup_block_symbol): If we are given a mangled name to check
11981 against, only return symbols which match it.
11982
11983 2002-03-22 Christopher Faylor <cgf@redhat.com>
11984
11985 * win32-nat.c (child_create_inferior): Check for proper shell to use
11986 here, in case the user changes it on the fly.
11987 (_initialize_inftarg): Remove shell path considerations.
11988
11989 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11990
11991 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11992 for gdbarch_max_register_raw_size and max_register_virtual_size.
11993 Adjust copyright year.
11994
11995 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11996
11997 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11998 in a function to cover the entire beginning of the function
11999 as well if it does not already.
12000
12001 2002-03-21 Tom Rix <trix@redhat.com>
12002
12003 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12004 (rs6000_ptrace64): Renamed from ptrace64.
12005
12006 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12007
12008 * gdbserver/remote-utils.c (remote_open): Don't call
12009 getprotobyname, we're all using TCP here so just use
12010 IPPROTO_TCP.
12011 * gdbserver/gdbreplay.c (remote_open): Ditto.
12012
12013 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12014
12015 * regcache.c (_initialize_regcache): No need to call
12016 build_regcache() at this time; it gets called whenever
12017 the gdbarch changes.
12018
12019 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12020
12021 * sparc-nat.c: Include sys/param.h where possible.
12022
12023 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12024
12025 Fix PR gdb/422.
12026 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12027 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12028 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12029 complex types.
12030 * stabsread.c (rs6000_builtin_type): Likewise.
12031 (read_sun_floating_type): Likewise.
12032
12033 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12034
12035 * stabsread.c (read_member_functions): Remove skip code for duplicate
12036 constructor/destructor methods. Use standard parsing for these
12037 methods and just do not chain them to the list of methods after
12038 parsing.
12039
12040 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12041
12042 * coffread.c: Remove redundant static declarations. Replace
12043 occurrences of `PTR' with `void *'.
12044 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12045 * top.h (quit_cover): Likewise.
12046 * defs.h (catch_errors): Likewise.
12047
12048 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12049
12050 * defs.h (XMALLOC): Define.
12051 * gdb-events.sh (XMALLOC): Delete macro.
12052 * gdb-events.c, gdb-events.h: Regenerate.
12053 * gdbarch.sh (XMALLOC): Delete macro.
12054 * gdbarch.c: Regenerate.
12055 * serial.c (XMALLOC): Delete macro.
12056 * ui-file.c (XMALLOC): Ditto.
12057 * ser-unix.h (XMALLOC): Ditto.
12058 * sh-tdep.c (XMALLOC): Ditto.
12059 * ui-out.c (XMALLOC): Ditto.
12060 * utils.c (XMALLOC): Ditto.
12061 * i386-tdep.c (XMALLOC): Ditto.
12062 * gdb-events.c (XMALLOC): Ditto.
12063 * d10v-tdep.c (XMALLOC): Ditto.
12064 * cli-out.c (XMALLOC): Ditto.
12065
12066 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12067 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12068 * ui-file.c, ui-out.c: Ditto.
12069
12070 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12071
12072 * command.h (struct cmd_list_element): Add field context.
12073 (set_cmd_context, get_cmd_context): Declare.
12074 * cli/cli-decode.h: Ditto.
12075 * cli/cli-decode.c (get_cmd_context): New function.
12076 (set_cmd_context): New function.
12077 (add_cmd): Initialize context.
12078 Part of fixing PR gdb/145 and PR gdb/146.
12079
12080 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12081
12082 * cli/cli-decode.c (cmd_type): New function.
12083 * command.h (cmd_type): Declare.
12084 * infrun.c (set_schedlock_func): Call function cmd_type.
12085 * kod.c (kod_set_os): Call cmd_type.
12086 * cris-tdep.c (cris_version_update): Use function cmd_type.
12087 (cris_mode_update, cris_abi_update): Ditto.
12088
12089 * command.h: (execute_cmd_post_hook): Declare.
12090 (execute_cmd_pre_hook): Declare.
12091 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12092 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12093 functions. Execute pre/post hook while ensuring that afterwords
12094 hook_in is cleared.
12095 * top.c (execute_command): Use execute_cmd_post_hook, and
12096 execute_cmd_pre_hook to execute pre/post commands.
12097 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12098 hook_stop_stub.
12099 (hook_stop_stub): Call execute_cmd_pre_hook.
12100
12101 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12102
12103 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12104 set'' and this leads to a core dump. Move xstrdup of
12105 operating_system to after check that it is not NULL.
12106
12107 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12108
12109 * kod.c (kod_set_os): Remove unnecessary check that
12110 ``command->type'' is set_cmd.
12111
12112 * valprint.c (set_input_radix): Use input_radix.
12113 (set_output_radix): Use output_radix.
12114 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12115 isn't reverted.
12116
12117 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12118
12119 * value.h (struct value): Delete field ``substring_addr''. Change
12120 aligner fields to force_doublest_align, force_longest_align,
12121 force_core_addr_align and force_pointer_aligh.
12122
12123 * value.h (struct value): Fix typo in above change.
12124
12125 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12126
12127 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12128 to fix internal_error from ``maintenance print architecture''.
12129
12130 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12131
12132 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12133 for gcc versions after gcc-2.8.1.
12134
12135 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12136
12137 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12138 for method resolution. Restore adjustment of ``this'' pointer after
12139 calling value_struct_elt, which was accidentally removed during the
12140 HP merge.
12141
12142 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12143
12144 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12145 value_of_register.
12146 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12147 get_saved_register.
12148 * value.h (value_of_register): Update.
12149
12150 2002-03-14 Richard Henderson <rth@redhat.com>
12151
12152 * configure.in: Detect declaration for canonicalize_file_name.
12153 * utils.c (canonicalize_file_name): Declare, if needed.
12154 (gdb_realpath): Prefer realpath if available and usable.
12155 * config.in, configure: Rebuild.
12156
12157 2002-03-14 Richard Henderson <rth@redhat.com>
12158
12159 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12160 a constant array bound.
12161
12162 * MAINTAINERS: Add myself to write-after-approval.
12163
12164 2002-03-14 Michael Snyder <msnyder@redhat.com>
12165
12166 * symfile.c (syms_from_objfile): Return immediately if no syms.
12167 (symbol_file_add): Return immediately if no syms.
12168 (find_sym_fns): Return immediately if no syms.
12169
12170 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12171
12172 * gdbserver/remote-util.c (remote_open): Print remote-side's
12173 IP address when remote debugging over the network.
12174
12175 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12176
12177 * config/sparc/fbsd.mh: Fix copyright.
12178 * config/sparc/fbsd.mt: Likewise.
12179
12180 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * MAINTAINERS: Fix typo in name of gdb warnings option.
12183 (x86-64): Fix formating so that this can be parsed by awk.
12184
12185 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12186
12187 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12188 * defs.h: Include "gdb/signals.h".
12189 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12190
12191 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12192
12193 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12194 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12195 from x86-64-tdep.h
12196
12197 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12198 Don Howard <dhoward@redhat.com>
12199
12200 * mips-tdep.c (ST0_FR): Define.
12201 (mips2_fp_compat): New function, temporarily disabled.
12202 (mips_read_fp_register_single): New function.
12203 (mips_read_fp_register_double): New function.
12204 (mips_print_register): Use them.
12205 (do_fp_register_row): Likewise.
12206
12207 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12208
12209 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12210 approval''.
12211
12212 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12213
12214 * stabsread.c (read_member_functions): Fix is_stub test for
12215 static member functions, improve comment.
12216
12217 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12218
12219 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12220 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12221 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12222 commands that set boolean values.
12223 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12224 (arm_rdi_resume): Always initialize PC.
12225 (arm_rdi_open): Don't use rslt as a boolean.
12226 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12227 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12228 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12229 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12230
12231 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12232
12233 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12234 * configure: Rebuilt.
12235
12236 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12237
12238 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12239 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12240
12241 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12242
12243 * cli/cli-decode.c (set_cmd_completer): New function.
12244 * command.h (set_cmd_completer): Declare.
12245 * cli/cli-decode.h (set_cmd_completer): Ditto.
12246
12247 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12248 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12249 * win32-nat.c (_initialize_inftarg): Ditto.
12250 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12251 * proc-api.c (_initialize_proc_api): Ditto.
12252 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12253 * source.c (_initialize_source): Ditto.
12254 * exec.c (_initialize_exec): Ditto.
12255 * solib.c (_initialize_solib): Ditto.
12256 * top.c (init_main): Ditto.
12257 * tracepoint.c (_initialize_tracepoint): Ditto.
12258 * symfile.c (_initialize_symfile): Ditto.
12259 * printcmd.c (_initialize_printcmd): Ditto.
12260 * infcmd.c (_initialize_infcmd): Ditto.
12261 * corefile.c (_initialize_core): Ditto.
12262
12263 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12264
12265 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12266
12267 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12268
12269 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12270
12271 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12272
12273 * NEWS: Update headings, 5.2 has branched.
12274
12275 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12276
12277 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12278 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12279 (register_addr, REGISTER_RAW_SIZE): Likewise.
12280 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12281 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12282
12283 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12284
12285 * MAINTAINERS (x86-64): Add myself.
12286 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12287 changed value_ptr -> struct value *
12288
12289 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12290
12291 * configure.host (sparc64-*-freebsd): Add.
12292 * configure.tgt: Likewise.
12293 * config/sparc/fbsd.mh: New file.
12294 * config/sparc/fbsd.mt: Likewise.
12295 * config/sparc/nm-fbsd.h: Likewise.
12296 * config/sparc/tm-fbsd.h: Likewise.
12297
12298 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12301 regformats/reg-s390x.dat.
12302
12303 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12304
12305 * utils.c: Add FIXME explaining true/false problem.
12306
12307 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12308
12309 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12310
12311 2002-02-28 Michael Chastain <mec@shout.net>
12312
12313 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12314
12315 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * gdbserver/linux-s390-low.c: New file.
12318 * regformats/reg-s390.dat: New file.
12319 * regformats/reg-s390x.dat: New file.
12320 * gdbserver/configure.srv: Add S/390.
12321 * gdbserver/Makefile.in: Add S/390.
12322 * configure.tgt: Enable gdbserver for S/390.
12323
12324 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12325
12326 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12327 first line of the doc string for "info dos", except at the end of
12328 the sentence, since the short help stops at the first period.
12329
12330 2002-02-28 Jason Merrill <jason@redhat.com>
12331
12332 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12333
12334 2002-02-27 Fred Fish <fnf@redhat.com>
12335
12336 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12337 comment (dumy -> dummy).
12338
12339 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12340
12341 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12342
12343 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12344
12345 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12346
12347 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12348
12349 * gdbserver/acconfig.h: New file.
12350 * gdbserver/i387-fp.c: New file.
12351 * gdbserver/i387-fp.h: New file.
12352 * gdbserver/linux-x86-64.c: New file.
12353 * regformats/reg-x86-64.dat: New file.
12354 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12355 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12356 * gdbserver/configure.in: Add support for regsets.
12357 * gdbserver/config.in: Regenerate.
12358 * gdbserver/configure: Regenerate.
12359 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12360 * gdbserver/linux-low.h: New file.
12361 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12362 for regsets.
12363 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12364 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12365 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12366 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12367 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12368 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12369 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12370 "i387-fp.h". Add PTRACE_GETREGS and friends.
12371 * gdbserver/regcache.c (supply_register): New function.
12372 (supply_register_by_name): New function.
12373 (collect_register): New function.
12374 (collect_register_by_name): New function.
12375
12376 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12377
12378 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12379 (config.status): Add configure.srv dependency.
12380 (server_h): Add config.h dependency.
12381
12382 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12385 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12386 * gdbserver/configure.srv: Change i386-*-linux* to use
12387 reg-i386-linux.o.
12388
12389 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12390
12391 * x86-64-tdep.c: Re-indent. Update copyright date.
12392
12393 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12394
12395 From Michal Ludvig <mludvig@suse.cz>:
12396 * x86-64-tdep.c (value.h): Delete.
12397 (gdb_assert.h): Include.
12398 (x86_64_register_convert_to_virtual,
12399 x86_64_register_convert_to_raw ): Add check which lets only
12400 floating-point values to be converted.
12401 (value_push): Delete.
12402 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12403 (i386_gdbarch_init): Number of register_bytes fixed.
12404
12405 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12406
12407 * MAINTAINERS: Add x86-64 target.
12408
12409 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12410
12411 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12412 * osfsolib.c (solib_map_sections): Ditto.
12413 * irix5-nat.c (solib_map_sections): Ditto.
12414 * corelow.c (gdb_check_format): Ditto.
12415 * symfile.c (symfile_bfd_open): Ditto.
12416 * solib.c (solib_map_sections): Ditto.
12417 Fix PR gdb/354.
12418
12419 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12420
12421 * remote.c (_initialize_remote): By default, disable ``e'' and
12422 ``E'' step out-of-range packets.
12423
12424 2002-02-26 Andreas Schwab <schwab@suse.de>
12425
12426 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12427 m68k_linux_frame_saved_pc.
12428 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12429 in_sigtramp.
12430 (SIGCONTEXT_PC_OFFSET): Remove.
12431 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12432 m68k_linux_sigtramp_saved_pc): New functions.
12433 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12434 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12435 (UCONTEXT_PC_OFFSET): Define.
12436 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12437 non-RT and RT signal trampolines.
12438
12439 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12440
12441 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12442 (TARGET_NBPG, STACK_END_ADDR): Delete
12443 (VARIABLES_INSIDE_BLOCK): Delete.
12444
12445 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12446
12447 * utils.c (perror_with_name): Make string parameter constant.
12448 (print_sys_errmsg): Ditto.
12449 (query): Ditto.
12450 * defs.h (perror_with_name): Update.
12451 (print_sys_errmsg): Update.
12452 (query): Update.
12453
12454 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12455
12456 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12457 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12458
12459 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12460
12461 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12462 if it already matches the current architecture from the exec file.
12463 Include arch-utils.h for gdbarch_info_init prototype.
12464 * Makefile.in (rs6000-nat.o): Update dependencies.
12465
12466 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12467
12468 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12469 list of exported variables.
12470
12471 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12472
12473 * gdbserver/configure.srv: New file.
12474 * gdbserver/configure.in: Use configure.srv instead
12475 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12476 from it.
12477 * gdbserver/configure: Regenerated.
12478 * gdbserver/terminal.h: New file.
12479 * gdbserver/Makefile.in: Update for configure changes. Remove
12480 more unneeded include paths.
12481
12482 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12483
12484 From wiz at danbala:
12485 * config/sparc/tm-sp64.h: Fix grammar and typos.
12486 Fix PR gdb/287.
12487
12488 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12489
12490 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12491 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12492 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12493 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12494 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12495 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12496 * s390-tdep.c: Ditto.
12497 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12498 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12499 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12500 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12501 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12502 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12503 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12504 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12505 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12506 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12507 Fix PR gdb/378.
12508
12509 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12510
12511 * lin-thread.c: Delete file.
12512 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12513 to gdb_proc_service.h.
12514 * configure: Re-generate.
12515
12516 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12517 * serial.c (serial_open): Delete check for "ocd".
12518 Fix PR gdb/349.
12519
12520 * Makefile.in (linux-thread.o): Delete target.
12521 * linux-thread.c: Delete file.
12522
12523 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12524 renamed SH files to be consistent.
12525
12526 * symtab.c (sort_search_symbols): Use xfree.
12527
12528 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12529
12530 * arm-linux-tdep.c (arm_linux_init_abi): Register
12531 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12532 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12533 definition with undef, since we don't want the sysvr4 definition.
12534 (SKIP_TRAMPOLINE_CODE): Likewise.
12535
12536 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12537
12538 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12539
12540 * configure.in: (AC_CHECK_FUNCS) Added test for
12541 canonicalize_file_name Regenerated.
12542 * config.in, configure: Regenerated.
12543 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12544 defined use canonicalize_file_name.
12545
12546 2002-02-23 Michael Chastain <mec@shout.net>
12547
12548 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12549
12550 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12551
12552 * README: Remove references to cygnus.com.
12553 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12554 dot com'' form. Remove references to cygnus.com and sourceware.
12555
12556 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12557
12558 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12559 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12560 1003.1-2001 no longer allows "head -1".
12561 * gdb/Makefile.in (version.c): Likewise.
12562 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12563 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12564 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12565
12566 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12567
12568 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12569 * command.h (cmd_cfunc_eq): Declare.
12570 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12571
12572 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12573 ``struct cmd_list_element *''.
12574 * cli/cli-cmds.c (is_complete_command): Update. Use
12575 cmd_cfunc_eq.
12576 * top.c (execute_command): Pass the command to
12577 is_complete_command.
12578 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12579
12580 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12581
12582 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12583 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12584 architecture defines.
12585 * s390-tdep.c (s390_gdbarch_init): Likewise.
12586
12587 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12588
12589 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12590 (arm_linux_push_arguments): Likewise.
12591 (arm_linux_init_abi): Register them. Also register linux-specific
12592 call_dummy_words.
12593 (find_minsym_and_objfile): Use strcmp, not STREQ.
12594 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12595 (arm_linux_call_dummy_words): Delete declaration.
12596 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12597 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12598 declarations.
12599 (LOWEST_PC): Delete.
12600
12601 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12602
12603 * maint.c (print_section_info): Do not prepend `0x' to filepos
12604 output, it will be handled by local_hex_string_custom.
12605
12606 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12607
12608 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12609 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12610 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12611
12612 2002-02-22 Jim Blandy <jimb@redhat.com>
12613
12614 Indicate that the bcache functions don't change the strings
12615 they're passed.
12616 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12617 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12618
12619 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12620
12621 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12622
12623 2002-02-21 Christopher Faylor <cgf@redhat.com>
12624
12625 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12626 find the complete path to a loaded DLL.
12627
12628 2002-02-21 Fred Fish <fnf@redhat.com>
12629
12630 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12631 that marks the end of the range of a function, enter a line number
12632 entry that has a line number of zero and a PC offset that matches
12633 the end of the function. This starts a range of PC's for which no
12634 line number information is known.
12635 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12636 PC's for which no line number info is found (line number is zero)
12637 then we didn't find any valid line information.
12638 * symtab.h: Document use of zero line number entry.
12639
12640 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12641
12642 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12643 (have_ptrace_getvrregs): Define for run time checks.
12644 (gdb_vrregset_t): New type for Altivec register handling.
12645 (fetch_register, store_register): Fetch/store altivec register
12646 when needed.
12647 (fetch_altivec_register, store_altivec_register): New functions.
12648 (supply_vrregset, fill_vrregset): New functions.
12649 (fetch_altivec_registers, store_altivec_registers): New functions.
12650 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12651 registers as well.
12652
12653 2002-02-21 Jiri Smid <smid@suse.cz>
12654
12655 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12656
12657 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12658
12659 * Makefile.in (armnbsd-nat.o): Update dependencies.
12660 * armnbsd-nat.c (supply_gregset): New function. Common code to
12661 supply the integer register set.
12662 (supply_fparegset): New function. Similar for FPA registers.
12663 (fetch_regs, fetch_fp_regs): Use them.
12664 (fetch_core_registers): Likewise.
12665 (fetch_elfcore_registers): New function.
12666 (arm_netbsd_elfcore_fns): New core-file type specification.
12667 (_initialize_arm_netbsd_nat): Register it.
12668
12669 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12670
12671 * armnbsd-nat.c: Include gdbcore.h.
12672 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12673 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12674 'void' to declaration, to shut up ARI.
12675 (fetch_core_registers): Make static. Rewrite using supply_register.
12676 (arm_netbsd_core_fns): New core-file type specification.
12677 (_initialize_arm_netbsd_nat): New function.
12678
12679 2002-02-21 Christopher Faylor <cgf@redhat.com>
12680
12681 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12682 value.
12683
12684 2002-02-20 Christopher Faylor <cgf@redhat.com>
12685
12686 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12687 fails.
12688
12689 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12690
12691 * jv-exp.y (parse_number): Change type of implicit longs
12692 to builtin_type_uint64.
12693
12694 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12695
12696 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12697 to be an integer instead of a `union wait'.
12698
12699 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12700
12701 * mips-linux-nat.c: Call the operating system GNU/Linux.
12702 * mips-linux-tdep.c: Likewise.
12703 * mips-tdep.c: Likewise.
12704
12705 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12706
12707 Fix PR gdb/265.
12708 * jv-exp.y (parse_number): Handle 64-bit integers.
12709
12710 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12711
12712 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12713 AC_STDC_HEADERS to AC_HEADER_STDC.
12714 * gdbserver/configure: Regenerated.
12715
12716 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12717
12718 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12719 is defined.
12720 * sparc-tdep.c (get_longjmp_target): Likewise.
12721
12722 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12723
12724 * News: Add news about ARM and Multi-arch. Mention the new target
12725 arm*-*-netbsd*.
12726
12727 2002-02-19 Jim Blandy <jimb@redhat.com>
12728
12729 * stabsread.c (error_type_complaint): Improve error message.
12730
12731 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * gdbserver/README: Update documentation.
12734 * gdbserver/configure.in: Update configury to match documentation.
12735 * gdbserver/Makefile.in: Likewise.
12736 * gdbserver/configure: Regenerated.
12737 * gdbserver/aclocal.m4: New file, generated by aclocal.
12738 * gdbserver/config.in: New file, generated by autoheader.
12739
12740 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12741
12742 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12743 armnbsd-nat.c.
12744
12745 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12746
12747 * arm-tdep.h (enum arm_float_model): New enum.
12748 (struct gdbarch_tdep): Add fp_model.
12749 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12750 up floating-point conversions until we know the floating-point model
12751 in use by the inferior. Don't complain about being unable to
12752 determine the ABI of the inferior when we don't have one.
12753 (arm_extract_return_value): Support different floating-point models.
12754 (arm_store_return_value): Likewise.
12755 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12756 ARM_FLOAT_SOFT.
12757 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12758
12759 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12760
12761 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12762 of ``current_gdbarch''.
12763
12764 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12765
12766 * armnbsd-nat.c : ANSIfy all function declarations.
12767 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12768 (fetch_inferior_registers): Re-implement in terms of above.
12769 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12770 (store_inferior_registers): Re-implement in terms of above.
12771
12772 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12773
12774 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12775 kernel.
12776 * arm-linux-tdep.c: Likewise.
12777 * config/arm/tm-linux.h: Likewise.
12778
12779 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12780
12781 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12782 * config/arm/nbsd.mt (TM_FILE): Delete.
12783 * config/arm/tm-nbsd.h: Delete.
12784
12785 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12786
12787 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12788 Initialize CALL_DUMMY_LENGTH.
12789
12790 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12791
12792 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12793 function.
12794 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12795 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12796 defines one thing and that is incorrect for this port.
12797 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12798
12799 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12800
12801 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12802
12803 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12804
12805 * win32-nat.c (display_selector): New function. Displays information
12806 about the information returned by GetThreadSelectorEntry API function.
12807 (display_selectors): New function. Displays the infomation of
12808 the selector given as argument, or of CS, DS ans FS selectors
12809 if no argument is given.
12810 ( _initialize_inftarg): Add "w32" as info prefix command.
12811 Add "info w32 selector" as command calling display_selectors.
12812
12813 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12814
12815 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12816 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12817 if not defined.
12818
12819 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12820
12821 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12822
12823 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12824
12825 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12826 (arm_fix_call_dummy): Call it.
12827 (arm_call_dummy_breakpoint_offset): Delete.
12828 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12829 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12830
12831 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12832
12833 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12834 Default to func_frame_chain_valid.
12835 * gdbarch.h, gdbarch.c: Re-generate.
12836 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12837
12838 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12839
12840 * ppc-linux-nat.c: Update copyright.
12841 (fetch_register, store_register): Add tid parameter, don't compute
12842 tid here.
12843 (fetch_ppc_registers, store_ppc_registers): Add tid
12844 parameter. Pass it along to callees.
12845 (fetch_inferior_registers, store_inferior_registers): Compute tid
12846 here, and pass it to calleed functions.
12847 (fill_gregset, supply_fpregset): Clean up formatting.
12848
12849 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12850
12851 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12852 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12853
12854 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12855
12856 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12857 * gdbarch.c gdbarch.h: Regenerate.
12858 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12859 function.
12860 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12861 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12862 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12863
12864 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12865 * arm-tdep.c (arm_get_longjmp_target): New function.
12866 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12867 this to a positive value register arm_get_longjmp_target as the
12868 longjmp handler.
12869 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12870 (arm_linux_init_abi): Set up longjmp description in tdep.
12871 * armnbsd-nat.c (get_longjmp_target): Delete.
12872 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12873 description in tdep.
12874 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12875 (get_longjmp_target): Delete declaration.
12876 (GET_LONGJMP_TARGET): Delete.
12877 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12878 (GET_LONGJMP_TARGET): Delete.
12879
12880 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12881
12882 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12883 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12884 of ``current_gdbarch''.
12885
12886 2002-02-17 Tom Tromey <tromey@redhat.com>
12887
12888 * cli/cli-cmds.c (compare_strings): New function.
12889 (complete_command): Only print each unique item once.
12890 * completer.h (complete_line): Declare.
12891 * completer.c (complete_line): New function.
12892 (line_completion_function): Use it.
12893
12894 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12895
12896 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12897 * gdbarch.h, gdbarch.c: Re-generate.
12898
12899 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12900
12901 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12902
12903 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12904
12905 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12906 * valops.c (value_arg_coerce): Don't take the address of a reference
12907 to convert an argument to a reference.
12908
12909 2002-02-15 Christopher Faylor <cgf@redhat.com>
12910
12911 * win32-nat.c (get_image_name): New function.
12912 (handle_load_dll): Use get_image_name function.
12913 (get_child_debug_event): Avoid registering debug events until possibly
12914 execed process is started.
12915 (child_create_inferior): Allow invocation via shell so that command
12916 line redirection, etc. works ok.
12917 (_initialize_inftarg): Add new command: "set shell" to control whether
12918 a shell is used to start a process.
12919
12920 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12921
12922 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12923 instead of find_register_by_number.
12924 (cannot_store_register): Likewise.
12925
12926 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12927
12928 * dwarf2read.c: Replace fprintf (stderr, ...) by
12929 fprintf_unfiltered (gdb_stderr, ...).
12930
12931 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * gdbserver/gdbserver.1: Document --attach.
12934
12935 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12936
12937 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12938 descriptions.
12939 * arm-tdep.c (arm_default_arm_le_breakpoint)
12940 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12941 (arm_default_thumb_be_breakpoint): New. Initialize them from
12942 traditional breakpoint defines.
12943 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12944 (arm_gdbarch_init): Initialize new breakpoint variables.
12945 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12946 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12947 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12948 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12949 code out to ...
12950 (arm_netbsd_init_abi_common): ... here; new function.
12951 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12952 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12953 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12954 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12955
12956 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12957
12958 * arm-tdep.h (enum arm_abi): New enum.
12959 (struct gdbarch_tdep): New structure.
12960 (LOWEST_PC): Provide a default.
12961 (arm_gdbarch_register_os_abi): Declare new function.
12962 * arm-tdep.c (arm_abi_names): New array.
12963 (process_note_abi_tag_sections): New function.
12964 (get_elfosabi): New function.
12965 (arm_gdbarch_register_os_abi): New function.
12966 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12967 support for that ABI has been built in, then call the appropriate
12968 configuration routine. Use gdbarch_num_regs() to get the number
12969 of registers.
12970 (arm_dump_tdep): New function.
12971 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12972 place-holder functions.
12973 (_initialize_arm_tdep): Register them.
12974 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12975
12976 * armnbsd-tdep.c: New file.
12977 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12978 * config/arm/nbsd.mt (TDEPFILES): Add it.
12979 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12980
12981 * armnbsd-nat.c: Include regcache.h.
12982 * Makefile.in (armnbsd-nat.o): Update dependency list.
12983
12984 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12985
12986 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * gdbserver/Makefile.in: Fix typos in target rules.
12989
12990 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12991
12992 Fix part of PR gdb/267.
12993 * linespec.c (find_methods): Handle constructors specially for now.
12994
12995 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12996
12997 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12998 handling.
12999 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13000 standard_coerce_float_to_double().
13001
13002 2002-02-14 Christopher Faylor <cgf@redhat.com>
13003
13004 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13005 GDBINIT_FILENAME.
13006
13007 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13008
13009 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13010 find_variant_by_name, because it confuses the multiarch
13011 framework. Return NULL if there isn't an architecture with the
13012 user supplied name, instead of forcing a different one without
13013 recording the change with the multiarch machinery.
13014 (find_variant_by_name): Delete.
13015
13016 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13017
13018 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13019 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13020
13021 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13022
13023 * stack.c (print_frame_info_base): When calling
13024 print_frame_info_listing_hook, set current_source_symtab.
13025
13026 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13027
13028 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13029 and remove unused $(INCLUDE_DIR).
13030 Add regcache.c to OBS.
13031 Add generated register protocol files to clean target.
13032 Update dependencies for new objects, obsolete old target code.
13033
13034 * gdbserver/linux-low.c: Remove all platform-specific code to
13035 new files. Remove various dead code. Update to use regcache
13036 functionality.
13037 * gdbserver/remote-utils.c (fromhex): Add return statement
13038 to quiet warning.
13039 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13040 constant.
13041 (input_interrupt): Add integer parameter to match prototype
13042 of a signal handler.
13043 (outreg): Use register_data ().
13044 (prepare_resume_reply): Use gdbserver_expedite_regs.
13045 * gdbserver/server.c (main): Dynamically allocate own_buf because
13046 PBUFSIZ is no longer constant. Use registers_to_string () and
13047 registers_from_string ().
13048 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13049 for error (), fatal (), and warning (). Update definition of
13050 PBUFSIZ to use regcache functionality. Add include guard.
13051 * gdbserver/utils.c (fatal): Add missing ``const''.
13052 (warning): New function.
13053
13054 * regformats/regdat.sh: Include "regcache.h" in generated files.
13055 Provide init_registers () function.
13056 * regformats/regdef.h: Add prototype for set_register_cache ().
13057 Add include guard.
13058
13059 * gdbserver/linux-arm-low.c: New file.
13060 * gdbserver/linux-i386-low.c: New file.
13061 * gdbserver/linux-ia64-low.c: New file.
13062 * gdbserver/linux-m68k-low.c: New file.
13063 * gdbserver/linux-mips-low.c: New file.
13064 * gdbserver/linux-ppc-low.c: New file.
13065 * gdbserver/linux-sh-low.c: New file.
13066
13067 * gdbserver/regcache.c: New file.
13068 * gdbserver/regcache.h: New file.
13069
13070 * gdbserver/low-linux.c: Removed obsolete file.
13071
13072 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13073
13074 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13075 * config/i386/linux.mt: Likewise.
13076 * config/ia64/linux.mt: Likewise.
13077 * config/m68k/linux.mh: Likewise.
13078 * config/powerpc/linux.mh: Likewise.
13079 * config/mips/linux.mt: Likewise.
13080
13081 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13082
13083 * config/i386/i386lynx.mh: Mark gdbserver variables
13084 as (currently) obsolete for this target.
13085 * config/i386/nbsd.mt: Likewise.
13086 * config/i386/nbsdelf.mt: Likewise.
13087 * config/m32r/m32r.mt: Likewise.
13088 * config/m68k/m68klynx.mh: Likewise.
13089 * config/m68k/nbsd.mt: Likewise.
13090 * config/m68k/sun3os4.mh: Likewise.
13091 * config/mips/vr5000.mt: Likewise.
13092 * config/ns32k/nbsd.mt: Likewise.
13093 * config/pa/hppabsd.mh: Likewise.
13094 * config/pa/hppaosf.mh: Likewise.
13095 * config/powerpc/nbsd.mt: Likewise.
13096 * config/rs6000/rs6000lynx.mh: Likewise.
13097 * config/s390/s390.mt: Likewise.
13098 * config/s390/s390x.mt: Likewise.
13099 * config/sparc/sparclynx.mh: Likewise.
13100 * config/sparc/sun4os4.mh: Likewise.
13101 * config/i386/x86-64linux.mt: Likewise.
13102 * config/sparc/linux.mh: Likewise.
13103
13104 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13105
13106 * configure.tgt: Configure gdbserver only for known working
13107 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13108 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13109 SUBDIRS if it is configured. Update comment for ${nativefile}.
13110 * configure: Regenerated.
13111
13112 2002-02-13 Michael Snyder <msnyder@redhat.com>
13113
13114 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13115
13116 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13117 (default_gcore_mach): Just return 0, work around a problem in bfd.
13118 (default_gcore_target): OK to return NULL if exec_bfd is null.
13119 (make_mem_sec): Use a cast, avoid a warning.
13120
13121 * procfs.c (find_memory_regions_callback): Use a cast instead of
13122 calling host_pointer_to_address (which complains if
13123 sizeof (host pointer) != sizeof (target pointer)).
13124 (procfs_make_note_section): Avoid overflow in psargs string.
13125
13126 * procfs.c (procfs_make_note_section): Make the default
13127 implementation return an error.
13128
13129 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13130
13131 * procfs.c (procfs_make_note_section): Provide a default definition
13132 (for alpha-dec-osf4.0f). Fix typos.
13133
13134 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * linux-proc.c: Add include of regcache.h.
13137 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13138
13139 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13140
13141 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13142 * memattr.c (create_mem_region): Disallow useless empty region.
13143 Regions are half-open intervals, so allow [A..B) [B..C) as
13144 non-overlapping.
13145
13146 2002-02-13 Michael Chastain <mec@shout.net>
13147
13148 * defs.h: Kill CONST_PTR.
13149 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13150 * c-lang.c (c_builtin_types): Likewise.
13151 * ch-lang.c (ch_builtin_types): Likewise.
13152 * f-lang.c (f_builtin_types): Likewise.
13153 * language.c (unknown_builtin_types): Likewise.
13154 * m2-lang.c (m2_builtin_types): Likewise.
13155 * p-lang.c (pascal_builtin_types): Likewise.
13156 * scm-lang.c (c_builtin_types): Likewise.
13157
13158 2002-02-13 Keith Seitz <keiths@redhat.com>
13159
13160 * arm-tdep.h (arm_get_next_pc): Add declaration.
13161
13162 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13163
13164 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13165 with other related struct-returning functions.
13166 (arm_extract_struct_value_address): New function.
13167 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13168 initialize float_format, double_format and long_double_format as
13169 appropriate to the endianness of the target.
13170 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13171 (arm_use_struct_convention): Delete declaration.
13172 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13173
13174 2002-02-13 Keith Seitz <keiths@redhat.com>
13175
13176 * defs.h (core_addr_to_string_nz): New function.
13177
13178 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13179
13180 Apply missing bits of 2002-01-15 patch.
13181 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13182 (fill_fpregset): Use i387_fill_fsave.
13183
13184 2002-02-12 Keith Seitz <keiths@redhat.com>
13185
13186 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13187 (core_addr_to_string_nz): New function.
13188
13189 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13190
13191 * arm-linux-nat.c: Really include arm-tdep.h.
13192 * config/arm/tm-linux.h (struct type, struct value): Declare.
13193
13194 2002-02-11 Michael Snyder <msnyder@redhat.com>
13195
13196 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13197 (gcore section): Ifdef for Solaris and Unixware only.
13198 (procfs_do_thread_registers): Unixware needs one lwpstatus
13199 per thread (not one prstatus or pstatus).
13200 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13201 not over all gdb threads. For unixware, call elfcore_write_pstatus
13202 once before iterating over threads.
13203
13204 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13205
13206 * arm-tdep.h: New file.
13207 * arm-tdep.c: Include arm-tdep.h.
13208 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13209 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13210 (arm_print_float_info, arm_register_type, convert_to_extended)
13211 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13212 (arm_extract_return_value, arm_register_name): Make static.
13213 (arm_software_single_step): Similarly. Fix types in declaration.
13214 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13215 (arm_store_return_value, arm_store_struct_return): New functions.
13216 (arm_gdbarch_init): Register the above functions. Also register
13217 call_dummy_start_offset, sizeof_call_dummy_words,
13218 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13219 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13220 max_register_virtual_size, register_size. Set up
13221 prologue_cache.saved_regs here, rather than ...
13222 (_initialize_arm_tdep): ... here.
13223 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13224 declarations.
13225 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13226 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13227 (arm_print_float_info, arm_register_type, convert_to_extended)
13228 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13229 (arm_extract_return_value, arm_register_name): Delete declarations.
13230 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13231 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13232 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13233 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13234 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13235 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13236 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13237 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13238 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13239 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13240 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13241 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13242 interface.
13243 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13244 * remote-rdi.c remote-rdp.c: Likewise.
13245 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13246 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13247 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13248 definition.
13249
13250 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13251 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13252 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13253 from non-ARM_ prefixed definitions.
13254 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13255 all uses of above.
13256 * remote-rdi.c remote-rdp.c: Likewise.
13257 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13258
13259 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13260
13261 * arm-tdep.c (arm_frameless_function_invocation)
13262 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13263 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13264 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13265 (arm_pop_frame, arm_get_next_pc): Make static.
13266 (arm_gdbarch_init): Register above in gdbarch structure.
13267 (arm_read_fp): Renamed from arm_target_read_fp.
13268 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13269 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13270 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13271 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13272 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13273 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13274 (arm_pc_is_thumb_dummy): Delete declarations.
13275 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13276 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13277 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13278 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13279
13280 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13281
13282 * symtab.c (compare_search_syms): New function.
13283 (sort_search_symbols): New function.
13284 (search_symbols): Sort symbols after searching rather than
13285 before.
13286
13287 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13288
13289 * NEWS: Linux -> GNU/Linux.
13290
13291 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13292
13293 * gdbarch.sh: For for level one methods, disallow a definition
13294 when partially multi-arched. Add comments explaining rationale.
13295 * gdbarch.h: Re-generate.
13296
13297 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13298
13299 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13300 multi-arch partial.
13301
13302 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13303
13304 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13305 field. Use diff -u.
13306 * gdbarch.c: Re-generate.
13307
13308 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13309
13310 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13311 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13312 partial.
13313
13314 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13315
13316 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13317 multi-arch partial.
13318 (PUSH_ARGUMENTS): Switch to using predefault.
13319 * gdbarch.c: Regenerate.
13320
13321 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13322
13323 * valops.c (PUSH_ARGUMENTS): Delete definition.
13324 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13325 partial. Default to default_push_arguments.
13326 * gdbarch.h, gdbarch.c: Regenerate.
13327
13328 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13329
13330 * defs.h (throw_exception): Rename return_to_top_level. Update
13331 comments.
13332 * utils.c (error_stream, internal_verror, quit): Ditto.
13333 * top.c (throw_exception, catcher): Ditto.
13334 * sparclet-rom.c (sparclet_load): Ditto.
13335 * remote.c (interrupt_query, minitelnet): Ditto.
13336 * remote-sds.c (interrupt_query): Ditto.
13337 * remote-mips.c (mips_error, mips_kill): Ditto.
13338 * ocd.c (interrupt_query): Ditto.
13339 * monitor.c (monitor_interrupt_query): Ditto.
13340 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13341 * target.h: Update comment.
13342
13343 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13344
13345 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13346
13347 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13348 default_double_format.
13349 * gdbarch.h, gdbarch.c: Re-generate.
13350 * findvar.c (floatformat_unknown): Delete variable definition.
13351 * doublest.h (floatformat_unknown): Delete variable declaration.
13352
13353 2002-02-09 Jim Blandy <jimb@redhat.com>
13354
13355 * stabsread.c (read_type): Add code to parse Sun's syntax for
13356 prototyped function types.
13357
13358 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13359
13360 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13361 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13362
13363 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13364
13365 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13366 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13367 now _initialize_xcoffsolib gets called again and overrides the
13368 commands from solib.c in a native configuration.
13369
13370 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13371
13372 * doublest.c (store_typed_floating): Don't try to return a value.
13373 Fixes PR gdb/290.
13374
13375 2002-02-08 Jim Blandy <jimb@redhat.com>
13376
13377 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13378 is prototyped and has no arguments, print its argument list as
13379 `(void)'.
13380
13381 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13382
13383 * MAINTAINERS (write-after-approval): Add myself.
13384 (paper-trail): I've escaped!
13385
13386 2002-02-08 Christopher Faylor <cgf@redhat.com>
13387
13388 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13389 changes.
13390 (_initialize_check_for_gdb_ini): Ditto.
13391
13392 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13393
13394 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13395 xaprintf -> xasprintf.
13396
13397 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13398
13399 * win32-nat.c: Remove use of printf and sprintf functions.
13400
13401 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13402
13403 * arm-tdep.c (arm_frame_chain_valid): Make static.
13404 (arm_push_arguments): Likewise.
13405 (arm_gdbarch_init): New function.
13406 (_initialize_arm_tdep): Call it.
13407 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13408 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13409 (FRAME_CHAIN_VALID): Delete.
13410 (arm_frame_chain_valid): Delete declaration.
13411 (PUSH_ARGUMENTS): Delete.
13412 (arm_push_arguments): Delete declaration.
13413 (CALL_DUMMY_P): Delete.
13414
13415 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13416 Corinna Vinschen <vinschen@redhat.com>
13417
13418 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13419 on builtin float types.
13420
13421 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13422
13423 * utils.c: Include <curses.h> before "bfd.h".
13424 * tui/tui-hooks.c: Likewise.
13425 * tui/tui.c: Likewise.
13426 * tui/tuiCommand.c: Likewise.
13427 * tui/tuiData.c: Likewise.
13428 * tui/tuiDataWin.c: Likewise.
13429 * tui/tuiDisassem.c: Likewise.
13430 * tui/tuiGeneralWin.c: Likewise.
13431 * tui/tuiIO.c: Likewise.
13432 * tui/tuiLayout.c: Likewise.
13433 * tui/tuiRegs.c: Likewise.
13434 * tui/tuiSource.c: Likewise.
13435 * tui/tuiSourceWin.c: Likewise.
13436 * tui/tuiStack.c: Likewise.
13437 * tui/tuiWin.c: Likewise.
13438
13439 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13440
13441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13442 to include space for pseudoregs as well. Update loops accordingly.
13443 (sh_fp_frame_init_saved_regs): Ditto.
13444 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13445
13446 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13447
13448 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13449 Add Richard Earnshaw to Arm maintainers.
13450
13451 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13452
13453 * defs.h (warning_begin): Delete declaration.
13454
13455 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13456 Delete macro.
13457
13458 2002-02-07 Michael Snyder <msnyder@redhat.com>
13459
13460 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13461 Logic bug, remove misplaced else.
13462
13463 2002-02-07 Klee Dienes <klee@apple.com>
13464
13465 * fork-inferior.c (fork_inferior): Add '!' to the list of
13466 characters that need to be quoted when building a string for the
13467 shell. Quote '!' specifically with a backslash, since CSH chokes
13468 when trying to evaluate "str!str".
13469
13470 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13471
13472 * rdi-share/host.h: Only provide a typedef for bool if it is not
13473 defined.
13474
13475 2002-02-04 Michael Snyder <msnyder@redhat.com>
13476
13477 * breakpoint.h (enum bptype): Add new overlay event bp type.
13478 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13479
13480 * breakpoint.c (create_internal_breakpoint): New function.
13481 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13482 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13483 (create_thread_event_breakpoint): Ditto.
13484 (create_solib_event_breakpoint): Ditto.
13485 (create_overlay_event_breakpoint): New function.
13486 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13487 (update_breakpoints_after_exec): Delete and re-initialize
13488 overlay event breakpoints after an exec. Add FIXME comment
13489 about longjmp breakpoint.
13490 (print_it_typical): Ignore overlay event breakpoints.
13491 (print_one_breakpoint): Ditto.
13492 (mention): Ditto.
13493 (bpstat_what): Do not stop for overlay event breakpoints.
13494 (delete_breakpoint): Don't delete overlay event breakpoints.
13495 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13496 (breakpoint_re_set): Re-create overlay event breakpoint.
13497
13498 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13499 (overlay_manual_command): Disable overlay breakpoints.
13500 (overlay_off_command): Disable overlay breakpoints.
13501
13502 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13503
13504 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13505 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13506 to here from config/tm-arm.h.
13507 (coff_sym_is_thumb): Make static.
13508 (arm_elf_make_msymbol_special): New function.
13509 (arm_coff_make_msymbol_special): New function.
13510 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13511 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13512 (coff_sym_is_thumb): Delete declaration.
13513 (arm_elf_make_msymbol_special): Declare.
13514 (arm_coff_make_msymbol_special): Declare.
13515 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13516 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13517
13518 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13519
13520 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13521
13522 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13523
13524 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13525 * gdbarch.c gdbarch.h: Regenerate.
13526 * arch-utils.c (default_print_float_info): New function.
13527 * arch-utils.h (default_print_float_info): Prototype it.
13528 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13529 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13530 (PRINT_FLOAT_INFO): Document it.
13531
13532 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13533 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13534 (PRINT_FLOAT_INFO): Define.
13535
13536 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13537
13538 * win32-nat.c (_initialize_check_for_gdb_ini):
13539 Add typecast to sprintf argument to suppress a warning.
13540
13541 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13542
13543 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13544 to allow easier handling of pass state.
13545 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13546 that gives exception name and address.
13547 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13548 and set last_sig value to ourstatus->value.sig. Some missing
13549 exceptions added.
13550 (child_continue): Correctly report continue_status.
13551 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13552 TARGET_SIGNAL_0 (new default value).
13553 (child_resume): consider sig argument passed to decide if
13554 the exception should be passed to debuggee or not.
13555
13556 2002-02-05 Michael Snyder <msnyder@redhat.com>
13557
13558 * regcache.c (fetch_register): Call target_fetch_register
13559 only if we don't call FETCH_PSEUDO_REGISTER.
13560 (store_register): Call target_store_register only if we
13561 don't call STORE_PSEUDO_REGISTER.
13562
13563 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13564
13565 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13566 ELF_MAKE_MSYMBOL_SPECIAL.
13567 * gdbarch.c, gdbarch.h: Regenerate.
13568 * arch-utils.c (default_make_msymbol_special): New function.
13569 * arch-utils.h (default_make_msymbol_special): Export.
13570 * elfread.c (elf_symtab_read): Compile use of
13571 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13572 multiarched.
13573 * coffread.c (coff_symtab_read): Ditto, for
13574 COFF_MAKE_MSYMBOL_SPECIAL.
13575
13576 2002-02-05 Jim Blandy <jimb@redhat.com>
13577
13578 * solib-svr4.c (svr4_truncate_ptr): New function.
13579 (svr4_relocate_section_addresses): Do the address arithmetic with
13580 the appropriate truncation for target addresses, even when
13581 CORE_ADDR is larger than a target address.
13582
13583 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13584
13585 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13586 to (int *).
13587
13588 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13589
13590 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13591 code.
13592
13593 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13594
13595 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13596
13597 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13598
13599 * gdbserver/linux-low.c: Remove unused include files.
13600
13601 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13602
13603 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13604 (read_inferior_memory): Use it.
13605 (write_inferior_memory): Likewise.
13606
13607 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13608
13609 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13610 grubbing through sys_errlist.
13611
13612 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13613
13614 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13615
13616 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13617 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13618
13619 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13620
13621 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13622 (do_sfunc, set_cmd_sfunc): New functions.
13623
13624 * command.h (struct cmd_list_element): Add field func.
13625 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13626 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13627 * cli/cli-decode.h: Ditto.
13628
13629 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13630 (help_all, help_cmd_list): Ditto.
13631 (find_cmd, complete_on_cmdlist): Ditto.
13632 * top.c (execute_command): Ditto.
13633
13634 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13635 function.sfunc.
13636
13637 * infcmd.c (notice_args_read): Fix function signature.
13638
13639 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13640 * cli/cli-decode.c (add_set_cmd): Ditto.
13641 * utils.c (initialize_utils): Ditto.
13642 * maint.c (_initialize_maint_cmds): Ditto.
13643 * infrun.c (_initialize_infrun): Ditto.
13644 * demangle.c (_initialize_demangler): Ditto.
13645 * remote.c (add_packet_config_cmd): Ditto.
13646 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13647 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13648 * proc-api.c (_initialize_proc_api): Ditto.
13649 * kod.c (_initialize_kod): Ditto.
13650 * valprint.c (_initialize_valprint): Ditto.
13651 * top.c (init_main): Ditto.
13652 * infcmd.c (_initialize_infcmd): Ditto.
13653 * corefile.c (_initialize_core): Ditto.
13654 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13655 * arch-utils.c (initialize_current_architecture): Ditto.
13656 (_initialize_gdbarch_utils): Ditto.
13657 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13658
13659 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13660 * wince.c (_initialize_inftarg): Ditto.
13661 * symfile.c (_initialize_symfile): Ditto.
13662 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13663 * language.c (_initialize_language): Ditto.
13664 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13665
13666 2002-02-04 Michael Snyder <msnyder@redhat.com>
13667
13668 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13669
13670 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13671
13672 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13673 Add rules for building the register data files.
13674
13675 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13676
13677 * regformats/regdat.sh: Add braces to the definition of
13678 expedite_regs_${arch}.
13679
13680 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13681
13682 * regformats/regdef.h (struct reg): Add comment describing the
13683 requirements for offset and size fields.
13684
13685 2002-02-04 Andreas Schwab <schwab@suse.de>
13686
13687 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13688 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13689
13690 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13691
13692 * gdbarch.sh (copyright): Update years in generated header.
13693 (SMASH_TEXT_ADDRESS): Add rule.
13694 * gdbarch.h, gdbarch.c: Re-generate.
13695 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13696 * dbxread.c: Likewise.
13697 * dwarfread.c: Likewise.
13698 * elfread.c: Likewise.
13699 * somread.c: Likewise.
13700
13701 * arm-tdep.c (arm_smash_text_address): New function.
13702 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13703
13704 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13705
13706 Add support for hardware watchpoints on win32 native.
13707 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13708 CONTEXT_DEBUG_REGISTERS.
13709 (dr variable): New variable. Static array containing a local copy
13710 of debug registers.
13711 (debug_registers_changed): New variable. Reflects when debug registers
13712 are changed and need to be written to inferior.
13713 (debug_registers_used): New variable. Reflects when any debug register
13714 was set, used when new threads are created.
13715 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13716 i386-nat code.
13717 (thread_rec): Set dr array if id is the thread of current_event .
13718 (child_continue, child_resume): Change the debug registers for all
13719 threads if debug_registers_changed.
13720 (child_add_thread): Change the debug registers if debug_registers_used.
13721 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13722 Link nm.h to new nm-cygwin.h file.
13723 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13724 of hardware registers.
13725
13726 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13727
13728 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13729 Restore behavour broken by 2002-01-20 Andrew Cagney
13730 <ac131313@redhat.com> IEEE_FLOAT removal.
13731
13732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13733
13734 * c-valprint.c (c_val_print): Pass a proper valaddr to
13735 cp_print_class_method.
13736 * valops.c (search_struct_method): If there is only one method
13737 and args is NULL, return that method.
13738
13739 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13740
13741 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13742 accessing tag_name directly.
13743
13744 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13745
13746 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13747 of accessing tag_name directly.
13748
13749 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13750
13751 PR gdb/280
13752 * gdbtypes.c (replace_type): New function.
13753 * gdbtypes.h (replace_type): Add prototype.
13754 * stabsread.c (read_type): Use replace_type.
13755
13756 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13757
13758 * Makefile.in (memattr.o): Add missing dependencies rule.
13759
13760 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13761
13762 * breakpoint.c (break_at_finish_command): Really export.
13763 (break_at_finish_at_depth_command): Ditto.
13764 (tbreak_at_finish_command): Ditto.
13765 * hppa-tdep.c: Include completer.h.
13766 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13767 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13768
13769 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13770
13771 * utils.c (do_write): New function.
13772 (error_stream): Rewrite combining the code from error_begin and
13773 verror.
13774 (verror): Rewrite using error_stream.
13775 (error_begin): Delete function.
13776
13777 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13778
13779 * utils.c (error_begin): Make static.
13780 * defs.h (error_begin): Delete declaration.
13781
13782 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13783 (decode_line_1): Use cplusplus_error instead of error_begin,
13784 cplusplus_hint and return_to_top_level.
13785 * coffread.c (coff_symfile_read): Use error instead of error_begin
13786 and return_to_top_level.
13787 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13788
13789 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13790
13791 * language.h (type_error, range_error): Make string parameter
13792 constant.
13793 * language.c (warning_pre_print): Delete extern declaration.
13794 * dwarfread.c (warning_pre_print): Ditto.
13795 * language.c (type_error, range_error): Rewrite to use verror and
13796 vwarning instead of warning_begin.
13797
13798 2002-02-01 Michael Snyder <msnyder@redhat.com>
13799
13800 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13801 (set_ignore_count): Move misplaced comment back where it belongs.
13802
13803 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13804
13805 * command.h (NO_FUNCTION): Delete macro.
13806 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13807 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13808 * tracepoint.c (_initialize_tracepoint): Ditto.
13809 * cli/cli-decode.c (add_set_cmd): Ditto.
13810 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13811
13812 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13813
13814 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13815 Update ``this'' pointer when calling virtual functions.
13816
13817 2002-02-01 Michael Snyder <msnyder@redhat.com>
13818
13819 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13820 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13821
13822 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13823
13824 * regformats/reg-arm.dat: New file.
13825 * regformats/reg-i386.dat: New file.
13826 * regformats/reg-ia64.dat: New file.
13827 * regformats/reg-m68k.dat: New file.
13828 * regformats/reg-mips.dat: New file.
13829 * regformats/reg-ppc.dat: New file.
13830 * regformats/reg-sh.dat: New file.
13831 * regformats/regdef.h: New file.
13832 * regformats/regdat.sh: New file.
13833
13834 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13835
13836 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13837 (arm_frame_args_address, arm_frame_locals_address): New functions.
13838 (arm_frame_num_args): New function.
13839 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13840 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13841 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13842
13843 2002-01-31 Michael Snyder <msnyder@redhat.com>
13844
13845 * breakpoint.c (break_at_finish_command): Export.
13846 (break_at_finish_at_depth_command): Export.
13847 (tbreak_at_finish_command): Export.
13848 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13849 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13850 "txbreak" commands, which are HPPA specific.
13851
13852 * printcmd.c (disassemble_command): Remove an ancient
13853 artifact of an old merge.
13854
13855 * symfile.h (enum overlay_debugging_state):
13856 Define enum constant values for overlay mode.
13857 * symfile.c (overlay_debugging): Use enums instead of literals.
13858 (overlay_is_mapped, overlay_auto_command,
13859 overlay_manual_command): Ditto.
13860
13861 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13862 breakpoint_here_p, breakpoint_inserted_here_p,
13863 breakpoint_thread_match, bpstat_stop_status,
13864 describe_other_breakpoints, check_duplicates, clear_command):
13865 Coding standard fixes.
13866
13867 * target.c (target_xfer_memory): Add spaces, coding standard.
13868 (do_xfer_memory): Add missing line to trust-readonly
13869 code: check bfd SEC_READONLY flag for section.
13870
13871 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13872
13873 * PROBLEMS: Fix typo, 5.1->5.1.1.
13874
13875 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13876
13877 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13878 data symbols, since we search based on textlow and texthigh.
13879 (find_pc_sect_symtab): Likewise.
13880
13881 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13882
13883 * defs.h (vwarning): Declare.
13884 * utils.c (vwarning): New function.
13885 (warning): Call vwarning.
13886 (warning_begin): Delete function.
13887
13888 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13889 the warning message.
13890 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13891 warning_begin.
13892
13893 2002-01-30 Michael Snyder <msnyder@redhat.com>
13894
13895 * NEWS: Mention "set trust-readonly-sections" command.
13896 Mention generate-core-file command.
13897
13898 2002-01-15 Michael Snyder <msnyder@redhat.com>
13899
13900 * target.c: New command, "set trust-readonly-sections on".
13901 (do_xfer_memory): Honor the suggestion to trust readonly sections
13902 by reading them from the object file instead of from the target.
13903 (initialize_targets): Register command "set trust-readonly-sections".
13904
13905 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13906
13907 * parse.c (target_map_name_to_register): Simplify, search regs and
13908 pseudo-regs using a single loop.
13909
13910 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13911
13912 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13913
13914 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13915
13916 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13917 * config/i386/i386v42mp.mh: Add i387-nat.o .
13918 * i386v4-nat.c: Include i387-nat.h.
13919 (supply_fpregset): Use i387_supply_fsave.
13920 (fill_fpregset): Use i387_fill_fsave.
13921
13922 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13923
13924 * arm-tdep.c (arm_call_dummy_words): Define.
13925 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13926 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13927 (CALL_DUMMY_WORDS): Define.
13928 (arm_call_dummy_words): Declare.
13929 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13930 (arm_linux_call_dummy_words): Declare.
13931
13932 2002-01-30 Andreas Schwab <schwab@suse.de>
13933
13934 * m68klinux-nat.c: Fix last change to use regcache_collect
13935 instead of referencing registers[] directly.
13936
13937 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13938
13939 * parse.c (target_map_name_to_register): Delete code wrapped in
13940 #ifdef REGISTER_NAME_ALIAS_HOOK.
13941
13942 2002-01-28 Michael Snyder <msnyder@redhat.com>
13943
13944 * regcache.c (legacy_read_register_gen): Need to be able to
13945 read pseudo-register as well as real register.
13946 (legacy_write_register_gen): Ditto.
13947
13948 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13949
13950 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13951 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13952 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13953 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13954 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13955 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13956 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13957 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13958 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13959 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13960 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13961 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13962 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13963 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13964 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13965 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13966 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13967 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13968 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13969 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13970
13971 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13972
13973 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13974 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13975 (initialize_current_architecture): Update target_byte_order using
13976 information from BFD.
13977 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13978 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13979
13980 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13981
13982 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13983 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13984
13985 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13986 #ifdef INVALID_FLOAT.
13987 * infcmd.c (do_registers_info): Ditto.
13988 * values.c (unpack_double): Ditto. Add comment.
13989
13990 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13991 already commented out.
13992
13993 2002-01-26 Andreas Schwab <schwab@suse.de>
13994
13995 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13996 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13997 registers and add support for PTRACE_GETREGS.
13998
13999 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14000
14001 GDB 5.1.1 released from 5.1 branch.
14002 * NEWS: Add 5.1.1 news.
14003 * README: Sync with 5.1 branch.
14004
14005 2002-01-23 Fred Fish <fnf@redhat.com>
14006
14007 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14008 stabstring on initial malloc. Reallocing will copy it for us,
14009 if necessary.
14010
14011 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14012
14013 * Makefile.in (hpread_h): Delete.
14014 (HFILES_NO_SRCDIR): Remove hpread.h.
14015 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14016 (hpread.o): Update dependencies.
14017 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14018
14019 * hp-psymtab-read.c: Remove file.
14020 * hp-symtab-read.c: Remove file.
14021 * hpread.h: Remove file.
14022
14023 * hpread.c: Merge all contents of hp-psymtab-read.c,
14024 hp-symtab-read.c and hpread.h into this file, as it was prior to
14025 January 1999.
14026
14027 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14028 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14029 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14030 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14031
14032 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14033
14034 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14035 fill_gregset): Call gdbarch_tdep() just once, assign result to
14036 variable and use that, instead of calling the function several
14037 times.
14038
14039 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14040
14041 * configure.host: Accept sparcv9 as alias for sparc64.
14042 * configure.tgt: Likewise.
14043
14044 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14045
14046 * solib-aix5.c (build_so_list_from_mapfile)
14047 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14048 arguments is not reversed.
14049 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14050 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14051
14052 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14053
14054 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14055 modified version of obsolete sh_fetch_pseudo_register.
14056 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14057 (sh4_register_read): New function.
14058 (sh_pseudo_register_write): New function. Renamed and modified
14059 version of obsolete sh_store_pseudo_register.
14060 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14061 (sh4_register_write): New function.
14062 (sh_gdbarch_init): Remove setting of gdbarch function
14063 fetch_pseudo_register and store_pseudo_register. Remove setting of
14064 register_convert_to_raw, register_convert_to_virtual,
14065 register_convertible.
14066 (sh_sh4_register_convertible): Delete. No longer needed. All is
14067 taken care by architecture specific functions
14068 register_read/register_write.
14069 (sh_sh4_register_convert_to_virtual): Make static.
14070 (sh_sh4_register_convert_to_raw): Ditto.
14071
14072 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14073
14074 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14075 (floatformat_is_nan, floatformat_mantissa): Ditto.
14076
14077 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14078 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14079 builtin_type_ieee_double_little,
14080 builtin_type_ieee_double_littlebyte_bigword,
14081 builtin_type_m68881_ext, builtin_type_i960_ext,
14082 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14083 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14084 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14085 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14086
14087 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14088
14089 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14090 parameter. Set frameless flag if it exists and depended of
14091 whether the scanned function is frameless or not.
14092 (xstormy16_skip_prologue): If function is frameless, return
14093 result of xstormy16_scan_prologue().
14094 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14095 call.
14096
14097 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14098
14099 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14100 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14101 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14102 sh_sh4_register_byte, sh_sh4_register_raw_size,
14103 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14104 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14105 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14106 sh_store_pseudo_register, sh_do_pseudo_register): Call
14107 gdbarch_tdep() just once, assign result to variable and use that,
14108 instead of calling the function several times.
14109
14110 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14111
14112 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14113 macros instead of LAST_FPU_CTRL_REGNUM.
14114 (store_register): Likewise.
14115
14116 2002-01-21 Jim Blandy <jimb@redhat.com>
14117
14118 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14119 is up-to-date before running the program, not just when a program
14120 exits.
14121
14122 2002-01-21 Fred Fish <fnf@redhat.com>
14123
14124 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14125 when we have found all instructions we are looking for.
14126
14127 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14128
14129 * arm-tdep.c (arm_register_name): New function.
14130 (arm_registers_names): Make static.
14131 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14132 (arm_register_name): Declare.
14133 (REGISTER_NAME): Use it.
14134
14135 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14136 Kevin Buettner <kevinb@redhat.com>
14137
14138 Convert arm targets to new FRAME interface.
14139 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14140 (arm_frame_find_save_regs): Delete.
14141 (arm_frame_init_saved_regs): New.
14142 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14143 Allocate extra_info as required. Convert all uses of fsr.regs
14144 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14145 to use extra_info.
14146 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14147 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14148 (check_prologue_cache, save_prologue_cache): Likewise.
14149 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14150 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14151 (FRAME_FIND_SAVED_REGS): Delete.
14152 (arm_frame_find_saved_regs): Delete prototype.
14153 (arm_frame_init_saved_regs): New prototype.
14154 (FRAME_INIT_SAVED_REGS): Define.
14155
14156 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14157
14158 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14159
14160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14161
14162 From Jeff Law <law@redhat.com>:
14163 * infttrace.c: Include <sys/pstat.h>.
14164 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14165 exec file if the ttrace equivalent fails.
14166
14167 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14168
14169 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14170 (closeLogFile): Ditto.
14171
14172 2002-01-20 Michael Chastain <mec@shout.net>
14173
14174 * top.c (print_gdb_version): Bump copyright year to 2002.
14175
14176 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14177
14178 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14179 Zannoni and Eli Zaretskii.
14180
14181 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14182
14183 * buildsym.c: Update copyright years.
14184 * c-typeprint.c: Likewise.
14185 * dwarf2read.c: Likewise.
14186 * f-typeprint.c: Likewise.
14187 * gdbtypes.c: Likewise.
14188 * gdbtypes.h: Likewise.
14189 * hp-symtab-read.c: Likewise.
14190 * hpread.c: Likewise.
14191 * mdebugread.c: Likewise.
14192 * p-typeprint.c: Likewise.
14193
14194 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14195
14196 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14197 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14198 byte-order selectable.
14199 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14200 * arch-utils.c: Ditto.
14201 (set_endian): Ditto.
14202 (set_endian_from_file): Ditto.
14203 * gdbserver/low-sim.c (create_inferior): Ditto.
14204 * gdbarch.sh: Ditto.
14205 * gdbarch.h: Re-generate.
14206 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14207 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14208 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14209 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14210 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14211 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14212 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14213 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14214 macro definition.
14215 * config/mips/tm-wince.h: Remove #undef of macro
14216 TARGET_BYTE_ORDER_SELECTABLE.
14217 * config/sh/tm-wince.h: Ditto.
14218
14219 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14220
14221 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14222 member function fields. Add accessor macro
14223 TYPE_FN_FIELD_ARTIFICIAL.
14224 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14225 * c-typeprint.c (c_type_print_base): Skip artificial member
14226 functions.
14227
14228 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14229
14230 * f-typeprint.c: Delete unused function f_type_print_args.
14231 * p-typeprint.c: Delete unused function pascal_type_print_args.
14232
14233 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14236 comment. Add ``artificial'' to ``union field_location''.
14237
14238 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14239
14240 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14241 * mdebugread.c (parse_symbol): Likewise.
14242 * stabsread.c (define_symbol): Likewise.
14243 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14244 initializing TYPE_FIELD_BITPOS to n (obsolete).
14245 (hpread_doc_function_type): Likewise.
14246 * hpread.c (hpread_function_type): Likewise.
14247
14248 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14249
14250 * configure.in (host_makefile_frag): Only require a host makefile
14251 fragment when a native build.
14252 * configure: Re-generate.
14253
14254 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14255
14256 * doublest.h (floatformat_from_type): Declare.
14257 * doublest.c (floatformat_from_type): New function.
14258 (convert_typed_floating): Use.
14259
14260 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14261 call to function floatformat_from_type.
14262
14263 * gdbarch.sh (IEEE_FLOAT): Delete.
14264 * gdbarch.h, gdbarch.c: Re-generate.
14265 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14266 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14267 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14268 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14269 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14270 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14271 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14272 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14273 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14274 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14275 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14276 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14277
14278 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14279 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14280 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14281 * sh-tdep.c (sh_gdbarch_init): Ditto.
14282 * mips-tdep.c (mips_gdbarch_init): Ditto.
14283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14284 * cris-tdep.c (cris_gdbarch_init): Ditto.
14285
14286 2002-01-20 Jiri Smid <smid@suse.cz>
14287
14288 * configure.host, configure.tgt: Support x86-64.
14289 * NEWS: Note new target x86-64.
14290
14291 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14292 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14293 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14294 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14295 x86-64-linux-nat.o): Fix dependencies.
14296
14297 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14298
14299 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14300 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14301 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14302 * config/sparc/xm-sun4os4.h: Delete file.
14303 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14304
14305 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14306
14307 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14308 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14309 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14310 * config/i386/i386lynx.mh (XM_FILE): Delete.
14311 * config/rs6000/xm-rs6000ly.h: Delete file.
14312 * config/sparc/xm-sparclynx.h: Delete file.
14313 * config/m68k/xm-m68klynx.h: Delete file.
14314 * config/i386/xm-i386lynx.h: Delete file.
14315 * config/xm-lynx.h: Delete file.
14316 * config/djgpp/fnchange.lst: Update.
14317
14318 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14319
14320 * alpha-tdep.c (alpha_register_byte): New function.
14321 (alpha_register_raw_size): Ditto.
14322 (alpha_register_virtual_size): Ditto.
14323 (alpha_skip_prologue_internal): Renamed from
14324 alpha_skip_prologue.
14325 (alpha_skip_prologue): New version that calls
14326 alpha_skip_prologue_internal.
14327 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14328 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14329 second argument from alpha_skip_prologue.
14330 (REGISTER_BYTE): Use alpha_register_byte.
14331 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14332 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14333 (FRAMELESS_FUNCTION_INVOCATION): Use
14334 generic_frameless_function_invocation_not.
14335 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14336 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14337
14338 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14339
14340 * config/mips/xm-news-mips.h: Delete file.
14341 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14342
14343 * config/m88k/xm-m88k.h: Delete file.
14344 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14345 * config/m88k/xm-delta88v4.h: Ditto.
14346 * config/m88k/xm-delta88.h: Ditto.
14347
14348 * config/alpha/xm-fbsd.h: Delete file.
14349 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14350
14351 * config/sparc/xm-sparc.h: Delete file.
14352 * Makefile.in (xm-sun4os4.h): Delete dependency.
14353 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14354 * config/sparc/xm-sun4os4.h: Ditto.
14355 * config/sparc/xm-linux.h: Ditto.
14356
14357 * config/i386/xm-windows.h: Delete file.
14358
14359 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14360
14361 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14362 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14363
14364 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14365
14366 * alpha-tdep.c (alpha_call_dummy_words): New.
14367 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14368 (CALL_DUMMY_P): Define.
14369 (CALL_DUMMY_WORDS): Define.
14370 (SIZEOF_CALL_DUMMY_WORDS): Define.
14371
14372 2002-01-19 Per Bothner <per@bothner.com>
14373
14374 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14375 isn't NULL, which can happen with some gcj-3.x-produced code.
14376
14377 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14378
14379 * alpha-tdep.c (alpha_register_virtual_type): New function.
14380 (alpha_init_frame_pc_first): Ditto.
14381 (alpha_fix_call_dummy): Ditto.
14382 (alpha_store_struct_return): Ditto.
14383 (alpha_extract_struct_value_address): Ditto.
14384 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14385 alpha_register_virtual_type.
14386 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14387 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14388 alpha_extract_struct_value_address.
14389 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14390 (INIT_FRAME_PC): Use init_frame_pc_noop.
14391 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14392
14393 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14394
14395 * i386gnu-nat.c: Include "i386-tdep.h".
14396 (fetch_fpregs): Simplify code dealing with uninitialized floating
14397 point states such that it doesn't require FP7_REGNUM.
14398
14399 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14400
14401 * alpha-tdep.c (frame_extra_info): New.
14402 (alpha_find_saved_regs): Make static. Use
14403 frame->extra_info.
14404 (alpha_frame_init_saved_regs): New function.
14405 (alpha_frame_saved_pc): Use frame->extra_info.
14406 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14407 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14408 (init_extra_frame_info): Rename to...
14409 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14410 (alpha_print_extra_frame_info): New function.
14411 (alpha_frame_locals_address): Ditto.
14412 (alpha_frame_args_address): Ditto.
14413 (alpha_pop_frame): Use frame->extra_info.
14414 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14415 alpha_frame_args_address.
14416 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14417 (alpha_find_saved_regs): Remove prototype.
14418 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14419 (EXTRA_FRAME_INFO): Remove.
14420 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14421 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14422
14423 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14424
14425 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14426 (alpha_cannot_fetch_register): Ditto.
14427 (alpha_cannot_store_register): Ditto.
14428 (alpha_register_convertible): Ditto.
14429 (alpha_use_struct_convention): Ditto.
14430 * config/alpha/tm-alpha.h: Update copyright years.
14431 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14432 (INNER_THAN): Use core_addr_lessthan.
14433 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14434 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14435 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14436 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14437 (FRAME_CHAIN): Remove unnecessary cast.
14438
14439 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14440
14441 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14442 obsolete.
14443
14444 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14445
14446 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14447 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14448 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14449 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14450 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14451 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14452 * x86-64-linux-nat.c: Ditto.
14453
14454 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14455
14456 * alpha-tdep.c (alpha_register_name): New function.
14457 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14458 (REGISTER_NAME): Define.
14459
14460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14461
14462 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14463
14464 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14465
14466 * alpha-tdep.c: Update copyright years.
14467 (alpha_next_pc): New function.
14468 (alpha_software_single_step): Ditto.
14469 * config/alpha/tm-alpha.h: Add prototype for
14470 alpha_software_single_step.
14471
14472 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14473
14474 * alphabsd-nat.c: Update copyright years.
14475 (fill_gregset): Use regcache_collect.
14476 (fill_fpregset): Likewise.
14477 (fetch_inferior_registers): Only fetch integer registers
14478 if requested to do so.
14479 (store_inferior_registers): Only store integer registers
14480 if requested to do so.
14481
14482 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14483
14484 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14485 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14486 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14487 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14488 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14489 * config/arm/linux.mh (XDEPFILES): Delete.
14490 * config/arm/nbsd.mh (XDEPFILES): Delete.
14491 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14492 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14493 * config/i386/i386m3.mh (XDEPFILES): Delete.
14494 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14495 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14496 * config/i386/fbsd.mh (XDEPFILES): Delete.
14497 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14498 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14499 * config/i386/i386v4.mh (XDEPFILES): Delete.
14500 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14501 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14502 * config/i386/i386aix.mh (XDEPFILES): Delete.
14503 * config/i386/go32.mh (XDEPFILES): Delete.
14504 * config/i386/cygwin.mh (XDEPFILES): Delete.
14505 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14506 * config/i386/i386mach.mh (XDEPFILES): Delete.
14507 * config/i386/i386v32.mh (XDEPFILES): Delete.
14508 * config/i386/linux.mh (XDEPFILES): Delete.
14509 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14510 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14511 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14512 * config/i386/i386sco.mh (XDEPFILES): Delete.
14513 * config/i386/i386v.mh (XDEPFILES): Delete.
14514 * config/i386/nbsd.mh (XDEPFILES): Delete.
14515 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14516 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14517 * config/i386/symmetry.mh (XDEPFILES): Delete.
14518 * config/i386/obsd.mh (XDEPFILES): Delete.
14519 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14520 * config/ia64/linux.mh (XDEPFILES): Delete.
14521 * config/ia64/aix.mh (XDEPFILES): Delete.
14522 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14523 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14524 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14525 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14526 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14527 * config/m68k/linux.mh (XDEPFILES): Delete.
14528 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14529 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14530 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14531 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14532 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14533 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14534 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14535 * config/m88k/delta88.mh (XDEPFILES): Delete.
14536 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14537 * config/m88k/m88k.mh (XDEPFILES): Delete.
14538 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14539 * config/mips/linux.mh (XDEPFILES): Delete.
14540 * config/mips/irix6.mh (XDEPFILES): Delete.
14541 * config/mips/irix5.mh (XDEPFILES): Delete.
14542 * config/mips/irix4.mh (XDEPFILES): Delete.
14543 * config/mips/irix3.mh (XDEPFILES): Delete.
14544 * config/mips/decstation.mh (XDEPFILES): Delete.
14545 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14546 (NATDEPFILES): Move core-aout.o to here.
14547 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14548 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14549 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14550 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14551 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14552 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14553 * config/pa/hpux11.mh (XDEPFILES): Delete.
14554 * config/powerpc/aix.mh (XDEPFILES): Delete.
14555 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14556 * config/powerpc/linux.mh (XDEPFILES): Delete.
14557 * config/romp/rtbsd.mh: Rename XDEPFILES.
14558 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14559 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14560 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14561 * config/s390/s390.mh (XDEPFILES): Delete.
14562 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14563 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14564 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14565 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14566 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14567 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14568 * config/sparc/linux.mh (XDEPFILES): Delete.
14569 * config/vax/vaxult.mh (XDEPFILES): Delete.
14570 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14571 * Makefile.in (DEPFILES): Remove XDEPFILES.
14572
14573 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14574
14575 * utils.c (internal_verror): Fix comments, default is yes not no.
14576 Update queries to match. Default to quit and dump core.
14577
14578 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14579
14580 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14581 copyright.
14582 * defs.h, event-top.c, gdbcmd.h: Ditto.
14583 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14584 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14585 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14586 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14587 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14588 * mi/mi-main.c:Ditto.
14589
14590 * stack.c, symfile.c: Update copyright.
14591
14592 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14593
14594 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14595 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14596 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14597 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14598
14599 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14600
14601 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14602 * gdbserver/low-lynx.c (myattach): Likewise.
14603 * gdbserver/low-nbsd.c (myattach): Likewise.
14604 * gdbserver/low-sim.c (myattach): Likewise.
14605 * gdbserver/low-sparc.c (myattach): Likewise.
14606 * gdbserver/low-sun3.c (myattach): Likewise.
14607
14608 * gdbserver/low-linux.c (myattach): New function.
14609
14610 * gdbserver/server.c (attach_inferior): New function.
14611 (main): Handle "--attach".
14612
14613 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14614
14615 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14616 maintainer.
14617
14618 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14619
14620 * c-typeprint.c (is_type_conversion_operator): Add additional
14621 check for non-conversion operators.
14622
14623 2002-01-15 Michael Snyder <msnyder@redhat.com>
14624
14625 * linux-proc.c: Add "info proc" command, a la procfs.c.
14626 (read_mapping): New function, abstract and re-use code.
14627 (linux_find_memory_regions): Use new func read_mapping.
14628 (linux_info_proc_cmd): New function, implement "info proc".
14629 (_initialize_linux_proc): Add new command "info proc".
14630
14631 2002-01-15 Michael Snyder <msnyder@redhat.com>
14632
14633 * symfile.c (generic_load): Use bfd_map_over_sections method
14634 instead of manipulating bfd structure members directly.
14635 (add_section_size_callback): New function, bfd sections callback
14636 used by generic_load.
14637 (load_sections_callback): New function, bfd sections callback
14638 used by generic_load.
14639
14640 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14641
14642 [Based on work by Jim Blandy]
14643 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14644 (builtin_type_vec128): Export.
14645 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14646 types.
14647 (builtin_type_vec128): New builtin type for 128 bit vector
14648 registers.
14649 (build_gdbtypes): Initialize builtin_type_v16qi and
14650 builtin_type_v8hi. Create the vec128 register builtin type
14651 structure.
14652 (build_builtin_type_vec128): New function.
14653 (_initialize_gdbtypes): Register builtin_type_v16qi and
14654 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14655 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14656 AltiVec register to new builtin type.
14657
14658 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14659
14660 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14661 to make_cv_type.
14662
14663 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14664
14665 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14666 CLEAN_UP_REGISTER_VALUE.
14667 * regcache.c (supply_register): Update only call.
14668
14669 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14670
14671 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14672 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14673 a29k-*-vxworks* targets as obsolete.
14674
14675 2002-01-14 Michael Snyder <msnyder@redhat.com>
14676
14677 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14678 until we can resolve portability issues.
14679 * gregset.h: Remove references to fpxregs.
14680 * gcore.c (gcore_command): Initialize note_sec to NULL.
14681
14682 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14683
14684 * signals.c (target_signal_to_name): Rewrite. Only use
14685 signals[].name when in bounds and non-NULL.
14686
14687 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14688
14689 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14690 * signals.c (target_signal_to_name): Verify that SIG is within the
14691 bounds of the signals array.
14692
14693 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14694
14695 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14696
14697 2002-01-13 Keith Seitz <keiths@redhat.com>
14698
14699 * stack.c (print_frame_info_base): Print the frame's pc
14700 only if when print_frame_info_listing_hook is not defined.
14701
14702 2002-01-13 Keith Seitz <keiths@redhat.com>
14703
14704 * varobj.c (varobj_set_value): Make sure that there were no
14705 errors evaluating the object before attempting to set its
14706 value.
14707 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14708 so this offset adjustment is no longer necessary.
14709 (create_child): Don't set the error flag if the child is
14710 a CPLUS_FAKE_CHILD.
14711 (value_of_child): If value_fetch_lazy fails, return NULL
14712 so that callers will be notified that an error occurred.
14713 (c_value_of_variable): Delay check of variable's validity
14714 until later. We actually want all structs and unions to have
14715 the value "{...}".
14716 Do not return "???" for variables which could not be evaluated.
14717 This error condition must be returned to the caller so that it
14718 can get the error condition from gdb.
14719 (cplus_name_of_child): Adjust index for vptr before figuring
14720 out the name of the child.
14721 (cplus_value_of_child): If a child's (real) parent is not valid,
14722 don't even bother trying to give a value for it. Just return
14723 an error. Change all instances in this function.
14724 (cplus_type_of_child): If our parent is one of the "fake"
14725 parents, we need to get at the type of the real parent, and
14726 derive the child's true type using this information.
14727
14728 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14729
14730 From 2002-01-09 John Marshall <johnm@falch.net>:
14731 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14732 sources.redhat.com, and tweak some related URLs which had
14733 suffered from linkrot.
14734
14735 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14736
14737 From Jeff law:
14738 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14739 structures passed in registers.
14740
14741 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14742
14743 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14744 white space which prevented compilation. Reported by DSK
14745 <dsk@student.unsw.edu.au>.
14746
14747 2002-01-11 Michael Snyder <msnyder@redhat.com>
14748
14749 * symfile.c (build_section_addr_info_from_section_tab):
14750 Use bfd access method instead of manipulating bfd directly.
14751 (syms_from_objfile): Ditto.
14752 (simple_overlay_update_1): Ditto.
14753 (simple_overlay_update): Ditto.
14754 (generic_load): Ditto.
14755 (overlay_unmapped_address): FIXME comment, bfd access methods.
14756 (sections_overlap): FIXME comment, bfd access methods.
14757 (pc_in_mapped_range): FIXME comment, bfd access methods.
14758 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14759 (section_is_mapped): FIXME comment, bfd access methods.
14760 (section_is_overlay): FIXME comment, bfd access methods.
14761
14762 * symfile.c (generic_load): Whitespace and long line cleanups.
14763 Remove duplicate variable, change several local variables to
14764 more appropriate data types.
14765 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14766
14767 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14768
14769 From Peter Schauer:
14770 * language.c (longest_local_hex_string_custom): Use phex_nz to
14771 convert NUM to a hex string.
14772
14773 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14774
14775 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14776 the function.
14777 Update Copyright year.
14778
14779 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14780
14781 * language.c (longest_raw_hex_string): Delete unused function.
14782
14783 2002-01-11 Petr Sorfa <petrs@caldera.com>
14784
14785 * MAINTAINERS (write-after-approval): Add myself.
14786 * dwarf2read.c (read_tag_string_type): Handling of
14787 DW_AT_byte_size.
14788 (read_tag_string_type): FORTRAN fix to prevent propagation of
14789 first string size.
14790 (set_cu_language): Handling of DW_LANG_Fortran95
14791
14792 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14793
14794 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14795 GETPID(inferior_ptid).
14796 (store_inferior_registers): Likewise.
14797
14798 2002-01-10 Jason Merrill <jason@redhat.com>
14799
14800 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14801 Fix DW_OP_minus.
14802
14803 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14804
14805 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14806 and bfd/elf32-sh-nbsd.c.
14807
14808 2002-01-10 Michael Snyder <msnyder@redhat.com>
14809
14810 * NEWS: Mention --pid and corefile/proc-id behavior change.
14811
14812 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14813 * gcore.c: Include cli/cli-decode.h instead of command.h.
14814
14815 * main.c (captured_main): Add new command line option "--pid".
14816 If the second command line argument (following the symbol-file)
14817 begins with a digit, try to attach to it before trying to open
14818 it as a corefile.
14819 (print_gdb_help): Document the "--pid" argument.
14820
14821 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14822
14823 * completer.c (command_completer): New function.
14824
14825 * completer.h <command_completer>: Add prototype.
14826
14827 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14828 completer for the "help" command.
14829
14830 2002-01-09 Jason Merrill <jason@redhat.com>
14831
14832 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14833
14834 2002-01-09 Michael Snyder <msnyder@redhat.com>
14835
14836 * i386-linux-nat.c (fill_fpxregset): Make global.
14837 (store_fpxregset): Ditto.
14838
14839 * gregset.h (gdb_fpxregset_t): Define.
14840 (supply_fpxregset): Prototype.
14841 (fill_fpxregset): Prototype.
14842
14843 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14844
14845 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14846
14847 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14848 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14849 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14850
14851 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14852
14853 * MAINTAINERS: Update target maintainer rules so that any
14854 Maintainer can approve a tested patch for a maintenance-only
14855 target.
14856
14857 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14858
14859 * MAINTAINERS (write-after-approval): Add myself.
14860
14861 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14862 IN_SIGTRAMP.
14863
14864 2002-01-08 Michael Snyder <msnyder@redhat.com>
14865
14866 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14867 real name of the executable, rather than the /proc name.
14868
14869 2002-01-03 Michael Snyder <msnyder@redhat.com>
14870
14871 Implement a "generate-core-file" command in gdb, save target state.
14872 * gcore.c: New file. Implement new command 'generate-core-file'.
14873 Save a corefile image of the current state of the inferior.
14874 * linux-proc.c: Add linux-specific code for saving corefiles.
14875 * target.h (struct target_ops): Add new target vectors for saving
14876 corefiles; to_find_memory_regions and to_make_corefile_notes.
14877 (target_find_memory_regions): New macro.
14878 (target_make_corefile_notes): New macro.
14879 * target.c (update_current_target): Inherit new target methods.
14880 (dummy_find_memory_regions): New place-holder method.
14881 (dummy_make_corefile_notes): New place-holder method.
14882 (init_dummy_target): Initialize new dummy target vectors.
14883 * exec.c (exec_set_find_memory_regions): New function.
14884 Allow the exec_ops vector for memory regions to be taken over.
14885 (exec_make_note_section): New function, target vector method.
14886 * defs.h (exec_set_find_memory_regions): Export prototype.
14887 * procfs.c (proc_find_memory_regions): New function, corefile method.
14888 (procfs_make_note_section): New function, corefile method.
14889 (init_procfs_ops): Set new target vector pointers.
14890 (find_memory_regions_callback): New function.
14891 (procfs_do_thread_registers): New function.
14892 (procfs_corefile_thread_callback): New function.
14893 * sol-thread.c (sol_find_memory_regions): New function.
14894 (sol_make_note_section): New function.
14895 (init_sol_thread_ops): Initialize new target vectors.
14896 * inftarg.c (inftarg_set_find_memory_regions): New function.
14897 Allow to_find_memory_regions vector to be taken over.
14898 (inftarg_set_make_corefile_notes): New function.
14899 Allow to_make_corefile_notes vector to be taken over.
14900 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14901 interface layer if not target_has_execution (may be a corefile).
14902 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14903 * config/sparc/sun4sol2.mh: Ditto.
14904 * config/alpha/alpha-linux.mh: Ditto.
14905 * config/arm/linux.mh: Ditto.
14906 * config/i386/x86-64linux.mh: Ditto.
14907 * config/ia64/linux.mh: Ditto.
14908 * config/m68k/linux.mh: Ditto.
14909 * config/mips/linux.mh: Ditto.
14910 * config/powerpc/linux.mh: Ditto.
14911 * config/sparc/linux.mh: Ditto.
14912
14913 2002-01-07 Michael Snyder <msnyder@redhat.com>
14914
14915 * arm-linux-nat.c: Remove references to regcache.c internal data
14916 (registers[] and register_valid[]).
14917
14918 2002-01-07 Michael Snyder <msnyder@redhat.com>
14919
14920 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14921 so that attaching to a pid will automatically read the process's
14922 symbol file and shlibs.
14923 * Makefile.in: Add rule for linux-proc.o.
14924 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14925 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14926 * config/arm/linux.mh: Ditto.
14927 * config/i386/linux.mh: Ditto.
14928 * config/i386/x86-64linux.mh: Ditto.
14929 * config/ia64/linux.mh: Ditto.
14930 * config/m68k/linux.mh: Ditto.
14931 * config/mips/linux.mh: Ditto.
14932 * config/powerpc/linux.mh: Ditto.
14933 * config/sparc/linux.mh: Ditto.
14934
14935 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14936
14937 * win32-nat.c: Add i386-tdep.h dependency.
14938
14939 2002-01-07 Michael Snyder <msnyder@redhat.com>
14940
14941 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14942 instead of bfd_get_arch_size. Don't bail out just because
14943 there's no exec_bfd.
14944
14945 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14946 * p-valprint.c (pascal_object_print_value): Ditto.
14947 * somread.c (som_symtab_read): Ditto.
14948 * symfile.c (simple_free_overlay_region_table): Ditto.
14949 * valops.c (value_assign): Ditto.
14950
14951 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14952 use tilde_expand and strerror for opening save-tracepoints file.
14953
14954 * thread-db.c (thread_db_new_objfile): Indendation fix.
14955
14956 * infptrace.c (GDB_MAX_ALLOCA): New define.
14957 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14958 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14959 can be overridden with whatever value is appropriate to the host).
14960 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14961 alloca to allocate potentially large buffer.
14962 * rs6000-nat.c (child_xfer_memory): Ditto.
14963 * symm-nat.c (child_xfer_memory): Ditto.
14964 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14965
14966 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14967
14968 From Nick Clifton <nickc@redhat.com>
14969 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14970
14971 2002-01-07 Michael Snyder <msnyder@redhat.com>
14972
14973 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14974 Don't use exec_bfd if it's NULL.
14975
14976 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14977
14978 * valops.c (value_arg_coerce): Fix formatting.
14979
14980 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14981
14982 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14983 * gnu-nat.c: Ditto.
14984
14985 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14986
14987 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14988 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14989 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14990 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14991 z8k-coff have not been multi-arched. Update z8k-coff build
14992 status.
14993
14994 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14995
14996 * MAINTAINERS: Mark a29k target as obsolete.
14997 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14998 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14999 comments.
15000 * NEWS: Note that a29k targets are obsolete.
15001 * a29k-tdep.c: Mark as obsolete.
15002 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15003 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15004 a29k-*-vxworks* targets as obsolete.
15005 * remote-adapt.c: Obsolete.
15006 * remote-eb.c: Obsolete.
15007 * remote-mm.c: Obsolete.
15008 * remote-udi.c: Obsolete.
15009 * config/a29k/a29k-udi.mt: Obsolete.
15010 * config/a29k/a29k.mt: Obsolete.
15011 * config/a29k/tm-a29k.h: Obsolete.
15012 * config/a29k/tm-vx29k.h: Obsolete.
15013 * config/a29k/vx29k.mt: Obsolete.
15014
15015 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15016
15017 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15018 with BFD_ENDIAN_BIG.
15019
15020 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15021
15022 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15023 * configure, config.in: Re-generate.
15024 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15025 * defs.h: Do not include <endian.h>.
15026
15027 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15028
15029 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15030 * config.in: Regenerate.
15031 * configure.in: Update copyright years.
15032 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15033 * configure: Regenerate.
15034 * i386bsd-nat.c: Update copyright years.
15035 (fill_gregset): Use regcache_collect.
15036 (fetch_inferior_registers): Only fetch integer registers
15037 if requested to do so. Add support for XMM registers
15038 using PT_GETXMMREGS.
15039 (store_inferior_registers): Only store integer registers
15040 if requested to do so. Add support for XMM registers
15041 using PT_SETXMMREGS.
15042 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15043 (store_inferior_registers): Remove.
15044 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15045 (fetch_elfcore_registers): New function.
15046 (i386nbsd_elfcore_fns): New.
15047 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15048 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15049 i386bsd-nat.o.
15050 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15051 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15052 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15053 * config/i386/tm-nbsd.h: Update copyright years.
15054 (HAVE_SSE_REGS): Define.
15055 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15056 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15057 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15058 (SIGCONTEXT_PC_OFFSET): Remove.
15059 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15060
15061 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15062
15063 * configure.tgt: Remove powerpc-*-macos* target.
15064 * config/m68k/xm-mpw.h: Delete file.
15065 * config/xm-mpw.h: Delete file.
15066 * ser-mac.c: Delete file.
15067 * mpw-make.sed: Delete file.
15068 * mpw-config.in: Delete file.
15069 * mac-xdep.c: Delete file.
15070 * mac-gdb.r: Delete file.
15071 * mac-defs.h: Delete file.
15072 * mac-nat.c: Delete file.
15073 * config/powerpc/macos.mh: Delete file.
15074 * config/powerpc/macos.mt: Delete file.
15075 * config/powerpc/nm-macos.h: Delete file.
15076 * config/powerpc/tm-macos.h: Delete file.
15077 * source.c (openp, open_source_file): Remove obsolete code.
15078 * top.c (gdb_readline): Ditto.
15079 * utils.c (query): Ditto.
15080 * event-top.c (display_gdb_prompt): Ditto.
15081 * Makefile.in (ser-mac.o): Delete obsolete target.
15082 * NEWS: Update.
15083
15084 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15085
15086 * defs.h (BIG_ENDIAN): Delete macro definition.
15087 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15088 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15089 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15090 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15091 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15092 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15093 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15094 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15095 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15096 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15097 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15098 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15099 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15100 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15101 * gdbarch.c: Re-generate.
15102
15103 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15104
15105 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15106 for core files.
15107
15108 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15109
15110 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15111
15112 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15113
15114 * value.h (value_ptr): Delete typedef.
15115
15116 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15117
15118 * i386nbsd-nat.c: Update copyright years.
15119 Include i386-tdep.h.
15120
15121 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15122
15123 * stabsread.c: Update copyright years.
15124
15125 From Debashis Mahata <debashis.mahata@wipro.com>:
15126 (read_struct_fields): Deal with Sun C compiler erroneous stab
15127 output for structs and unions.
15128 Fix PR gdb/269.
15129
15130 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15131
15132 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15133 prototype.
15134
15135 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15136
15137 * cp-abi.c: Fix whitespace.
15138 (baseclass_offset): New wrapper function.
15139 * cp-abi.h (baseclass_offset): Add prototype.
15140 (struct cp_abi_ops): Add baseclass_offset pointer.
15141
15142 * valops.c (vb_match): Move to...
15143 * gnu-v2-abi.c (vb_match): here.
15144 * valops.c (baseclass_offset): Move to...
15145 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15146
15147 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15148
15149 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15150 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15151 * hpacc-abi.c (init_hpacc_ops): Likewise.
15152
15153 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15154
15155 * valops.c (find_overload_match): Accept obj as a
15156 reference parameter. Update it before returning.
15157 * value.h (find_overload_match): Update prototype.
15158 * eval.c (evaluate_subexp_standard): Pass object to
15159 find_overload_match by reference.
15160
15161 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15162
15163 * valarith.c: Replace value_ptr with struct value pointer. Remove
15164 register attribute from value declarations.
15165 * valops.c: Ditto.
15166 * value.h: Ditto.
15167 * scm-lang.c (scm_lookup_name): Ditto.
15168
15169 2002-01-03 Michael Snyder <msnyder@redhat.com>
15170
15171 Abstract the functionality of iterating over mapped memory
15172 regions into a general purpose iterator function.
15173 * procfs.c (iterate_over_mappings): New function, general purpose
15174 iterator for memory sections.
15175 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15176 (solib_mappings_callback): New function, callback for above.
15177 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15178 (info_mappings_callback): New function, callback for above.
15179
15180 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15181
15182 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15183
15184 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15185 * i386-tdep.c: Include "elf-bfd.h".
15186 (process_note_abi_tag_sections): New function.
15187 (i386_gdbarch_init): Add code to recognize various OS/ABI
15188 combinations.
15189
15190 * maint.c (_initialize_maint_cmds): Add missing \ in
15191 string-literal.
15192
15193 For older changes see ChangeLog-2001
15194 \f
15195 Local Variables:
15196 mode: change-log
15197 left-margin: 8
15198 fill-column: 74
15199 version-control: never
15200 End:
This page took 0.344511 seconds and 4 git commands to generate.