* configure.in: Remove all use of the SUBDIRS variable; add
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-03 Mark Kettenis <kettenis@gnu.org>
2
3 * configure.in: Remove all use of the SUBDIRS variable; add
4 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
5 code providing the --enable-multi-ice option, and move it right in
6 front of the code that checks whether gdbserver is supported.
7 Polish that too.
8 * configure: Regenerated.
9 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10 @SUBDIRS@.
11
12 2003-01-03 Andrew Cagney <cagney@redhat.com>
13
14 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
15 * avr-tdep.c, cris-tdep.c: Ditto.
16 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
17 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
18
19 2003-01-03 Mark Kettenis <kettenis@gnu.org>
20
21 * configure.in: Remove --enable-netrom option.
22 * configure: Regenerated.
23
24 2003-01-03 Mark Kettenis <kettenis@gnu.org>
25
26 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
27 declaration for `struct re_pattern_buffer' instead.
28 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
29
30 2003-01-03 J. Brobecker <brobecker@gnat.com>
31
32 * mdebugread.c (parse_symbol): Count until the stEnd matching
33 the structure name.
34
35 2003-01-02 Mark Kettenis <kettenis@gnu.org>
36
37 * configure.in: Remove --with-cpu option.
38 subscripts. Remove evil changequotes here.
39 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
40 * config.in, configure: Regenerated.
41
42 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
43 * configure.in: Cleanup section that sources GDB and BFD configure
44 subscripts. Remove evil changequotes here.
45 * config.in, configure: Regenerated.
46
47 2003-01-02 Andrew Cagney <ac131313@redhat.com>
48
49 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
50 frame accessor methods.
51 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
52 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
53 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
54 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
55 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
56 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
57 * z8k-tdep.c: Ditto.
58
59 2003-01-02 Mark Kettenis <kettenis@gnu.org>
60
61 * configure.in: Remove UI_OUT configuration code.
62 * ada-lang.c: Update assuming UI_OUT is always true.
63 * Makefile.in (UIOUT_CFLAGS): Remove.
64 * configure: Regenerated.
65 * TODO: Remove blurb about elimination of -DUI_OUT.
66
67 * configure.in: Move code that provides the --enable-gdbcli,
68 --enable-gdbmi options right before the code that handles the
69 --enable-tui option. Polish a bit.
70 * configure: Regenerated.
71
72 * configure.in: Rewrite check for GNU regex and the
73 --without-included regex option, and move it into the "Checks for
74 library functions" section. This makes us use the system regex
75 again by default on systems with version 2 of the GNU C library.
76 This was apparently broken.
77 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
78 * acconfig.h (USE_INCLUDED_REGEX): Remove.
79 * config.in, configure: Regenerated.
80
81 * configure.in: Move code that provides the --enable-tui option
82 before the "Checks for libraries" section. Polish the code
83 somewhat and set need_curses to yes if we build the TUI. Rewrite
84 code that looks for a library providing termcap functionality to
85 match more closely what's done in the Readline library, and move
86 it into to the "Checks for libraries" section.
87 * configure: Regenerated.
88 * Makefile.in (TERMCAP): Remove variable.
89 * config/i386/go32.mh (TERMCAP): Remove variable.
90
91 2003-01-02 Andrew Cagney <ac131313@redhat.com>
92
93 * MAINTAINERS: Mention gdb_mbuild.sh.
94 * gdb_mbuild.sh: Rewrite.
95
96 2003-01-02 Mark Kettenis <kettenis@gnu.org>
97
98 * configure.in: Fix typo in last change.
99 * config.in, configure: Regenerated.
100
101 2003-01-02 Andrew Cagney <ac131313@redhat.com>
102
103 * valarith.c (value_binop): Delete obsolete code and comments.
104 * configure.host: Ditto.
105 * buildsym.h (make_blockvector): Ditto.
106 * buildsym.c (make_blockvector): Ditto.
107 * defs.h (enum language): Ditto.
108 (chill_demangle): Ditto.
109 * elfread.c (elf_symtab_read): Ditto.
110 * dwarfread.c (CHILL_PRODUCER): Ditto.
111 (set_cu_language): Ditto.
112 (handle_producer): Ditto.
113 * expprint.c (print_subexp): Ditto.
114 * gdbtypes.c (chill_varying_type): Ditto.
115 * gdbtypes.h (builtin_type_chill_bool): Ditto.
116 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
117 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
118 (chill_varying_type): Ditto.
119 * language.h (_LANG_chill): Ditto.
120 * language.c (binop_result_type, integral_type): Ditto.
121 (character_type, string_type, structured_type): Ditto.
122 (lang_bool_type, binop_type_check): Ditto.
123 * stabsread.h (os9k_stabs): Ditto.
124 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
125 (define_symbol, read_type, read_struct_fields): Ditto.
126 (read_array_type, read_enum_type, read_huge_number): Ditto.
127 (read_range_type, start_stabs): Ditto.
128 * symfile.c (init_filename_language_table): Ditto.
129 (add_psymbol_with_dem_name_to_list): Ditto.
130 * symtab.c (symbol_init_language_specific): Ditto.
131 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
132 * symtab.h (struct general_symbol_info): Ditto.
133 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
134 * typeprint.c (typedef_print): Ditto.
135 * utils.c (fprintf_symbol_filtered): Ditto.
136 * valops.c (value_cast, search_struct_field, value_slice): Delete
137 obsolete code.
138 (varying_to_slice): Delete function.
139 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
140 (varying_to_slice): Delete declaration.
141 * MAINTAINERS: Update.
142
143 2003-01-02 Mark Kettenis <kettenis@gnu.org>
144
145 * configure.in: Reorganize "Checks for library functions section"
146 a bit. Remove check for `btowc' and `isascii' functions.
147 * configure: Regenerated.
148
149 * acconfig.h (_MSE_INT_H): Remove.
150 * configure.in: Create "Checks for header files" section, and move
151 appropriate tests there. Don't check for objlist.h, wchar.h,
152 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
153 misdetection fix. Also add "Checks for types", "Checks for
154 compiler characteristics" and "Checks for library functions"
155 sections.
156 * config.in, configure: Regenerated.
157
158 * configure.in: Create "Checks for programs" section, and move
159 appropriate tests there.
160
161 2003-01-01 Mark Kettenis <kettenis@gnu.org>
162
163 * configure.in: Create "Checks for libraries" section, and move
164 appropriate tests there. Cleanup check for wctype in libw. Use
165 AC_SEARCH_LIBS to see whether we need libsocket.
166 * configure: Regenerated.
167
168 2002-12-31 Mark Kettenis <kettenis@gnu.org>
169
170 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
171 * config.in, configure: Regenerated.
172
173 2002-12-31 Mark Kettenis <kettenis@gnu.org>
174
175 * gdb_dirent.h: Cleanup and update code to match the example in
176 the Autoconf manual.
177 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
178 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
179 * configure: Regenerated.
180
181 2002-12-30 Adam Fedor <fedor@gnu.org>
182
183 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
184 (yylex): Initialize c to avoid uninitialized warning.
185
186 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
187
188 * doc/fdl.texi: Revert the last change.
189
190 2002-12-29 Mark Kettenis <kettenis@gnu.org>
191
192 * tracepoint.c (ISATTY): Removed.
193
194 2002-12-26 J. Brobecker <brobecker@gnat.com>
195
196 Continuing work to convert the hppa targets to multiarch partil.
197
198 * hppa-tdep.c: Add some missing forward declarations.
199 (frameless_function_invocation): Prefix the function name
200 by "hppa_" to avoid polluting the namespace. Update all calls
201 to use the new function name.
202 (saved_pc_after_call): Ditto.
203 (init_extra_frame_info): Ditto.
204 (frame_chain): Ditto.
205 (push_dummy_frame): Ditto.
206 (target_read_pc): Ditto.
207 (target_write_pc): Ditto.
208 (in_solib_call_trampoline): Ditto.
209 (in_solib_return_trampoline): Ditto.
210 (skip_trampoline_code): Ditto.
211 (hppa_read_fp): New function, renamed from target_read_fp.
212 (hppa_target_read_fp): New function, using hppa_read_fp.
213 This function conforms to the function profile for the
214 READ_FP gdbarch method.
215 (hppa_extract_struct_value_address): New function, extracted
216 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
217 macro.
218 (hppa_frame_num_args): New function.
219 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
220
221 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
222 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
223 for the switch to multiarch partial.
224 Update some of the macros definitions to match some changes
225 described above in the name of the function they are calling.
226 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
227 not be straightforward to convert. Do now wrap it inside
228 "#if !... #endif" to remember that this macro has still not
229 been taken care of.
230 (FIX_CALL_DUMMY): Likewise.
231
232 2002-12-26 J. Brobecker <brobecker@gnat.com>
233
234 Continuing work to convert the hppa targets to multiarch partial.
235
236 * hppa-tdep.c (hppa_register_raw_size): New function replacing
237 the body of macro REGISTER_RAW_SIZE.
238 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
239 config/pa/tm-hppah.h. These functions will be used to initialize
240 the gdbarch structure.
241 (hppa_hpux_pc_in_sigtramp): New function.
242 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
243 (hppa_hpux_frame_base_before_sigtramp): New function.
244 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
245 Add gdbcore.h #include.
246 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
247 of this gdbarch-eligible macro to a call to the new associated
248 function.
249 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
250 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
251 into a call to the new associated function.
252 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
253 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
254 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
255
256 2002-12-24 David Carlton <carlton@math.stanford.edu>
257
258 * config/sparc/tm-sparc.h: Delete duplicate definition of
259 DEPRECATED_PC_IN_CALL_DUMMY.
260
261 2002-12-24 Kevin Buettner <kevinb@redhat.com>
262
263 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
264 $(gdb_assert_h).
265 * configure.tgt: Recognize mips64*-*-linux*.
266 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
267 (supply_32_bit_reg): New function.
268 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
269 (fill_gregset): Use regcache_collect() instead of
270 deprecated_registers[].
271 (register_addr): Change name to mips_linux_register_addr().
272 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
273 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
274 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
275 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
276 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
277 (MIPS64_LINUX_JB_PC): New defines.
278 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
279 (mips64_elf_fpregset_t): New typedefs.
280 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
281 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
282 (mips64_linux_register_addr, set_mips_linux_register_addr)
283 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
284 (init_register_addr_data)
285 New functions.
286 (fetch_core_registers): Add support for core file formats with 64-bit
287 registers.
288 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
289 (register_addr_data): New static global variable.
290 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
291 gdbarch_register_osabi() for each MIPS machine.
292 * config/mips/linux64.mt: New file.
293 * config/mips/tm-linux64.h: New file.
294
295 2002-12-23 Adam Fedor <fedor@gnu.org>
296
297 * maint.c (maintenance_demangle): Add switch to demangle
298 ObjC language symbols as well.
299
300 2002-12-23 Adam Fedor <fedor@gnu.org>
301
302 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
303 last argument from complaint function call.
304
305 2002-12-23 Kevin Buettner <kevinb@redhat.com>
306
307 * exec.c (print_section_info): Add FIXME comments regarding format
308 string choices.
309
310 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
311
312 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
313 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
314
315 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
316
317 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
318
319 2002-12-23 David Carlton <carlton@math.stanford.edu>
320
321 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
322 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
323 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
324 information associated to a minsym, not lookup_symbol.
325
326 2002-12-21 Mark Kettenis <kettenis@gnu.org>
327
328 * x86-64-tdep.h (x86_64_init_abi): New prototype.
329 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
330 (x86_64_init_abi): Make non-static. Set number of pseudo
331 registers to 0.
332 (x86_64_gdbarch_init): Remove function.
333 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
334 Remove code dealing with dissambly.
335 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
336 (_initialize_x86_64_linux_tdep): New function.
337 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
338 i386-tdep.o.
339
340 2002-12-14 Mark Kettenis <kettenis@gnu.org>
341
342 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
343 (struct gdb_osabi_handler): Remove member `arch'. Add member
344 `arch_info'.
345 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
346 construct a `struct bfd_arch_info' and store it in the `struct
347 gdb_osabi_handler' that is created.
348 (gdbarch_init_osabi): Check for compatibility based on machine
349 type and architecture.
350 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
351 comment.
352 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
353 second argument in call to gdbarch_register_osabi.
354 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
355 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
356 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
357 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
358 * arm-tdep.c (_initialize_arm_tdep): Likewise.
359 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
360 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
361 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
362 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
363 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
364 * i386-tdep.c (_initialize_i386_tdep): Likewise.
365 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
366 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
367 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
368 _initialize_i386bsd_tdep and updated likewise.
369 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
370 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
371 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
372 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
373 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
374 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
375 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
376 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
377 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
378 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
379
380 2002-12-20 Kevin Buettner <kevinb@redhat.com>
381
382 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
383 DT_MIPS_RLD_MAP case for 64-bit targets.
384
385 2002-12-20 Kevin Buettner <kevinb@redhat.com>
386
387 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
388 ``temp_saved_regs'', not the pointer or other storage contiguous
389 to this pointer.
390
391 2002-12-20 Kevin Buettner <kevinb@redhat.com>
392
393 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
394 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
395 (mips_linux_get_longjmp_target): Delete declarations.
396 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
397 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
398 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
399 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
400 (mips_linux_get_longjmp_target)
401 (mips_linux_svr4_fetch_link_map_offsets): Make static.
402 (mips_linux_init_abi): New function.
403 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
404
405 2002-12-19 Keith Seitz <keiths@redhat.com>
406
407 patch committed by Elena Zannoni <ezannoni@redhat.com>
408 * thread.c (do_captured_list_thread_ids): Call prune_threads and
409 target_find_new_threads. Fix for PR mi/669.
410
411 2002-12-19 David Carlton <carlton@math.stanford.edu>
412
413 * linespec.c (decode_line_1): Move code into decode_all_digits.
414 (decode_all_digits): New function.
415
416 2002-12-19 Kevin Buettner <kevinb@redhat.com>
417
418 * exec.c (print_section_info): Select a format string to use with
419 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
420
421 2002-12-18 Andrew Cagney <ac131313@redhat.com>
422
423 * frame.c (deprecated_update_current_frame_pc_hack): Replace
424 deprecated_update_current_frame_pc_hack.
425 (deprecated_update_frame_base_hack): New function.
426 * frame.h (deprecated_update_frame_pc_hack): Replace
427 (deprecated_update_frame_base_hack): Declare.
428 * infrun.c (normal_stop): Update.
429
430 2002-12-18 Andrew Cagney <ac131313@redhat.com>
431
432 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
433 frame_extra_info_zalloc.
434 (rs6000_frame_args_address): Use get_frame_extra_info.
435 (frame_get_saved_regs): Use get_frame_saved_regs.
436 (frame_initial_stack_address): Use get_frame_saved_regs and
437 get_frame_extra_info.
438 (frame_initial_stack_address): Use get_frame_extra_info.
439
440 2002-12-17 Kevin Buettner <kevinb@redhat.com>
441
442 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
443 array size.
444 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
445 checks for r3900_regnames[].
446
447 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
448
449 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
450 All uses changed
451 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
452
453 2002-12-17 David Carlton <carlton@math.stanford.edu>
454
455 * symtab.c (lookup_partial_symbol): Don't search past the end of
456 the partial symbols.
457
458 2002-12-17 Andrew Cagney <ac131313@redhat.com>
459
460 * stack.c (frame_info): Use get_frame_saved_regs.
461 * breakpoint.c (until_break_command): Use get_frame_pc.
462
463 2002-12-16 Kevin Buettner <kevinb@redhat.com>
464
465 * buildsym.c (block_end_complaint, anon_block_end_complaint)
466 (innerblock_complaint, innerblock_anon_complaint)
467 (blockvector_complaint): Delete deprecated complaint structs.
468 (finish_block, make_blockvector, end_symtab): Replace calls
469 to complain() with calls to complaint().
470 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
471 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
472 (unexpected_type_complaint, bad_sclass_complaint)
473 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
474 Delete deprecated complaint structs.
475 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
476 Replace calls to complain() with calls to complaint().
477 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
478 (unknown_symtype_complaint, unknown_symchar_complaint)
479 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
480 (lbrac_mismatch_complaint, repeated_header_complaint)
481 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
482 Delete deprecated complaint structs.
483 (unknown_symtype_complaint, lbrac_mismatch_complaint)
484 (repeated_header_complaint)
485 (function_outside_compiliation_unit_complaint): New functions.
486 (add_old_header_file, find_corresponding_bincl_psymtab)
487 (set_namestring, find_stab_function_addr, read_dbx_symtab)
488 (process_one_symbol): Replace calls to complain() with, possibly
489 indirect, calls to complaint().
490 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
491 (unknown_attribute_form, unknown_attribute_length)
492 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
493 (const_ignored, botched_modified_type, op_deref2, op_deref4)
494 (basereg_not_handled, dup_user_type_allocation)
495 (dup_user_type_definition, missing_tag, bad_array_element_type)
496 (subscript_data_items, unhandled_array_subscript_format)
497 (unknown_array_subscript_format, not_row_major)
498 (missing_at_name): Delete deprecated complaint structs.
499 (bad_die_ref_complaint, unknown_attribute_form_complaint)
500 (dup_user_type_definition_complaint)
501 (bad_array_element_type_complaint): New functions.
502 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
503 (decode_subscript_data_item, dwarf_read_array_type)
504 (read_tag_string_type, read_subroutine_type, read_func_scope)
505 (locval, scan_partial_symbols, decode_modified_type)
506 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
507 (attribute_size): Replace calls to complain() with, possibly
508 indirect, calls to complaint().
509 * elfread.c (section_info_complaint, section_info_dup_complaint)
510 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
511 Delete deprecated complaint structs.
512 (elf_symtab_read, elfstab_offset_sections): Replace calls to
513 complain() with calls to complaint().
514 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
515 struct.
516 (stub_noname_complaint): New function.
517 (check_typedef, add_mangled_type): Replace calls to complain()
518 with calls to complaint().
519 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
520 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
521 (hpread_unhandled_type_complaint, hpread_struct_complaint)
522 (hpread_array_complaint, hpread_type_lookup_complaint)
523 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
524 (hpread_unhandled_common_complaint)
525 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
526 struct definitions and declarations.
527 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
528 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
529 Replace calls to complain() with, possibly indirect, calls to
530 complaint().
531 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
532 Likewise.
533 * mdebugread.c (bad_file_number_complaint, index_complaint)
534 (aux_index_complaint, block_index_complaint)
535 (unknown_ext_complaint, unknown_sym_complaint)
536 (unknown_st_complaint, block_overflow_complaint)
537 (basic_type_complaint, unknown_type_qual_complaint)
538 (array_index_type_complaint, bad_tag_guess_complaint)
539 (block_member_complaint, stEnd_complaint)
540 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
541 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
542 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
543 (bad_continued_complaint, bad_rfd_entry_complaint)
544 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
545 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
546 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
547 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
548 complaint structs.
549 (index_complaint, unknown_ext_complaint, basic_type_complaint)
550 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
551 (unexpected_type_code_complaint)
552 (function_outside_compilation_unit_complaint): New functions.
553 (parse_symbol, parse_type, upgrade_type, parse_procedure)
554 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
555 Replace calls to complain() with, possibly indirect calls to
556 complaint().
557 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
558 Delete deprecated complaint structs.
559 (lookup__objc_class, lookup_child_selector): Replace complain()
560 with complaint().
561 * remote-vx.c (cant_contact_target): Delete deprecated complaint
562 struct.
563 (vx_lookup_symbol): Replace complain() with complaint().
564 * stabsread.c (invalid_cpp_abbrev_complaint)
565 (invalid_cpp_type_complaint, member_fn_complaint)
566 (const_vol_complaint, error_type_complaint)
567 (invalid_member_complaint, range_type_base_complaint)
568 (reg_value_complaint, vtbl_notfound_complaint)
569 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
570 (unresolved_sym_chain_complaint, stabs_general_complaint)
571 (lrs_general_complaint, multiply_defined_struct): Delete
572 deprecated complaint structs.
573 (invalid_cpp_abbrev_complaint, ref_value_complaint)
574 (stabs_general_complaint, lrs_general_complaint)
575 (msg_unknown_complaint): New functions.
576 (dbx_lookup_type, read_cfront_baseclasses)
577 (read_cfront_member_functions, resolve_symbol_reference)
578 (define_symbol, resolve_live_range, add_live_range, read_type)
579 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
580 (read_one_struct_field, read_baseclasses, read_tilde_fields)
581 (read_cfront_static_fields, attach_fields_to_type)
582 (complain_about_struct_wipeout, read_range_type)
583 (common_block_start, common_block_end, cleanup_undefined_types)
584 (scan_file_globals): Replace complain() with complaint().
585 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
586 Delete deprecated complaint struct declarations.
587 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
588 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
589 (bf_not_found_complaint, ef_complaint, eb_complaint)
590 (function_outside_compilation_unit_complaint): New functions.
591 (record_include_begin, record_include_end, enter_line_range)
592 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
593 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
594 complain() with complaint().
595
596 2002-12-16 Andrew Cagney <ac131313@redhat.com>
597
598 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
599 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
600 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
601 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
602 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
603 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
604 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
605 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
606 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
607 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
608 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
609 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
610 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
611 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
612 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
613 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
614 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
615 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
616 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
617 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
618 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
619 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
620 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
621 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
622 * config/m88k/xm-dgux.h: Delete.
623 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
624 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
625 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
626 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
627 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
628 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
629 * ch-valprint.c: Delete.
630
631 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
632
633 * infrun.c (handle_inferior_event): Rearrange code to resume if
634 no catchpoint triggers for an event.
635
636 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
637
638 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
639 and TARGET_WAITKIND_VFORKED cases.
640
641 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
642
643 * infrun.c (handle_inferior_event): Assume that catchpoints
644 are not affected by DECR_PC_AFTER_BREAK.
645
646 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
647
648 * target.c (update_current_target): Don't inherit DONT_USE.
649 * target.h (struct target_ops): Remove DONT_USE.
650 (target_next): Remove macro.
651
652 2002-12-15 Mark Kettenis <kettenis@gnu.org>
653
654 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
655
656 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
657
658 * arm-tdep.c (convert_from_extended): New argument to hold the
659 type of floating point result we want to convert to. Make input
660 argument const. Fix all callers.
661 (convert_to_extended): Similarly.
662 (arm_extract_return_value): Now takes a regcache argument. Change
663 code to use regcache accessor functions. Correctly extract
664 smaller-than-word results on big-endian machines.
665 (arm_store_return_value): Now takes a regcache argument. Change
666 code to use regcache accessor functions. Correctly zero/sign extend
667 smaller than word results before storing into r0.
668 (arm_gdbarch_init): Register new-style extract_return_value and
669 store_return_value functions.
670
671 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
672
673 * thread-db.c (thread_from_lwp): Uniquify error msg.
674 (lwp_from_thread): Ditto.
675 (check_event): Ditto.
676 (find_new_threads_callback): Ditto.
677 (thread_db_pid_to_str): Ditto.
678
679 2002-12-13 Andrew Cagney <ac131313@redhat.com>
680
681 * frame.h (get_frame_saved_regs): Declare.
682 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
683 pointer.
684 * frame.c (get_frame_saved_regs): New function.
685 (frame_saved_regs_zalloc): Return the allocated saved_regs.
686
687 2002-12-13 Andrew Cagney <ac131313@redhat.com>
688
689 * frame.c (deprecated_update_current_frame_pc_hack): New
690 function.
691 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
692 * infrun.c (normal_stop): Use said function instead of directly
693 modifying the frame's PC.
694
695 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
696
697 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
698
699 2002-12-13 Kevin Buettner <kevinb@redhat.com>
700
701 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
702 config/mips/tm-irix6.h (NUM_REGS): Delete.
703 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
704 (temp_saved_regs): Declare as a pointer rather than an array.
705 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
706 that ``temp_saved_regs'' has storage allocated to it and that
707 it's the correct size.
708
709 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
710
711 * defs.h (init_last_source_visited): New prototype.
712 (add_path): Ditto.
713 * source.c (add_path): New function that adds to a specified path.
714 (mod_path): Change to call add_path.
715 (init_last_source_visited): New function to allow interfaces to
716 initialize static variable: last_source_visited. Part of fix
717 for PR gdb/741.
718 * Makefile.in: Add support for mi/mi-cmd-env.c.
719
720 2002-12-13 Andrew Cagney <ac131313@redhat.com>
721
722 * frame.h (frame_id_unwind): Declare.
723 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
724 id_unwind_cache.
725 (frame_id_unwind_ftype): Declare.
726 * frame.c (frame_id_unwind): New function.
727 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
728 (create_new_frame, get_prev_frame): Pass id_unwind to
729 set_unwind_by_pc.
730 (frame_saved_regs_id_unwind): New function.
731 (frame_saved_regs_id_unwind): New function.
732 * dummy-frame.c (dummy_frame_id_unwind): New function.
733 (struct dummy_frame): Add field id.
734 (generic_push_dummy_frame): Initialize `id'.
735 * dummy-frame.h (dummy_frame_id_unwind): Declare.
736
737 2002-12-13 Andrew Cagney <ac131313@redhat.com>
738
739 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
740 pass that to set_momentary_breakpoint. Move comments to where they
741 belong.
742 * frame.h (set_current_frame): Delete declaration.
743 * frame.c (set_current_frame): Delete function.
744
745 2002-12-13 Andrew Cagney <ac131313@redhat.com>
746
747 * frame.c (frame_extra_info_zalloc): New function.
748 * frame.h (frame_extra_info_zalloc): Declare.
749
750 2002-12-13 Joel Brobecker <brobecker@gnat.com>
751
752 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
753 in the previous prototype change to set_momentary_breakpoint.
754
755 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
756
757 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
758 and saw_child_exec.
759 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
760 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
761 (stop_stepping): Remove outdated check for child vfork events.
762
763 2002-12-12 Andrew Cagney <ac131313@redhat.com>
764
765 * GDB 5.3 released from gdb_5_3-branch.
766
767 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
768
769 * corelow.c (init_core_ops): Delete references to to_require_attach
770 and to_require_detach.
771 * exec.c (init_exec_ops): Likewise.
772 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
773 hppa_require_detach directly.
774 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
775 * inftarg.c (child_detach): Remove.
776 (child_detach_from_process): Rename to child_detach, remove
777 after_fork argument.
778 (child_attach): Remove.
779 (child_attach_to_process): Rename to child_attach, remove after_fork
780 argument.
781 (init_child_ops): Delete references to to_require_attach
782 and to_require_detach.
783 * infttrace.c (hppa_require_attach): Update comment.
784 * target.c (cleanup_target, update_current_target)
785 (init_dummy_target, setup_target_debug): Delete references to
786 to_require_attach and to_require_detach.
787 (find_default_require_detach, find_default_require_attach)
788 (debug_to_require_attach, debug_to_require_detach): Remove
789 functions.
790 * target.h (struct target_ops): Remove to_require_attach
791 and to_require_detach.
792 (target_require_attach, target_require_detach): Delete macros.
793 (find_default_require_detach, find_default_require_attach): Delete
794 prototypes.
795 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
796
797 2002-12-11 Andrew Cagney <ac131313@redhat.com>
798
799 * frame.c (get_frame_extra_info): New function.
800 * frame.h (get_frame_extra_info): Declare.
801
802 2002-12-11 Andrew Cagney <ac131313@redhat.com>
803
804 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
805 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
806 with `struct frame_id'.
807 (set_longjmp_resume_breakpoint): Ditto.
808 * infrun.c (handle_inferior_event): Update.
809 * breakpoint.c (watch_command_1, until_break_command): Update.
810 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
811 (handle_inferior_event, step_over_function): Update.
812 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
813 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
814 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
815 * infcmd.c (finish_command, run_stack_dummy): Update.
816
817 2002-12-11 Kevin Buettner <kevinb@redhat.com>
818
819 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
820 (dwarf2_non_const_array_bound_ignored)
821 (dwarf2_missing_line_number_section)
822 (dwarf2_statement_list_fits_in_line_number_section)
823 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
824 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
825 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
826 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
827 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
828 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
829 (dwarf2_missing_member_fn_type_complaint)
830 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
831 (dwarf2_const_value_length_mismatch)
832 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
833 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
834 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
835 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
836 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
837 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
838 complaints using deprecated struct..
839 (dwarf2_non_const_array_bound_ignored_complaint)
840 (dwarf2_complex_location_expr_complaint)
841 (dwarf2_unsupported_at_frame_base_complaint)
842 (dwarf2_const_value_length_mismatch_complaint)
843 (dwarf2_macros_too_long_complaint)
844 (dwarf2_macro_malformed_definition_complaint)
845 (dwarf2_invalid_attrib_class_complaint): New functions.
846 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
847 (read_structure_scope, read_array_type, read_common_block)
848 (read_tag_pointer_type, read_base_type, read_partial_die)
849 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
850 (new_symbol, dwarf2_const_value, read_type_die)
851 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
852 (parse_macro_definition, dwarf_decode_macros): Replace calls to
853 complain() with, possibly indirect, calls to complaint().
854
855 2002-12-11 Andrew Cagney <cagney@redhat.com>
856
857 * frame.c (deprecated_get_frame_saved_regs): Rename
858 get_frame_saved_regs.
859 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
860 * sparc-tdep.c: Update.
861 * hppa-tdep.c: Update.
862 * h8500-tdep.c: Update.
863
864 2002-12-11 Kevin Buettner <kevinb@redhat.com>
865
866 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
867 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
868 ``char *'' for return and parameter types.
869 * gdbarch.h, gdbarch.c: Regenerate.
870 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
871 return type from ``char *'' to ``const char *''.
872 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
873 const.
874
875 2002-12-11 Mark Kettenis <kettenis@gnu.org>
876
877 * i386-tdep.c: Include "dummy-frame.h".
878 (i386_frame_chain, i386_frame_saved_pc): Replace
879 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
880 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
881
882 2002-12-10 Andrew Cagney <cagney@redhat.com>
883
884 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
885 Change to a function with predicate.
886 * gdbarch.h, gdbarch.c: Re-generate.
887 * frame.c (get_prev_frame): Update. Test
888 DEPRECATED_INIT_FRAME_PC_P.
889 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
890 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
891 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
892 * alpha-tdep.c (alpha_gdbarch_init): Update.
893 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
894 * mips-tdep.c (mips_gdbarch_init): Update.
895 * i386-interix-tdep.c (i386_interix_init_abi): Update.
896 * arm-tdep.c: Update comments.
897 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
898 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
899 * frv-tdep.c (frv_gdbarch_init): Ditto.
900 * x86-64-tdep.c (x86_64_init_abi): Ditto.
901 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
902 * s390-tdep.c (s390_gdbarch_init): Ditto.
903 * v850-tdep.c (v850_gdbarch_init): Ditto.
904 * vax-tdep.c (vax_gdbarch_init): Ditto.
905 * sh-tdep.c (sh_gdbarch_init): Ditto.
906 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
907 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
910 * i386-tdep.c (i386_gdbarch_init): Ditto.
911 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
912 * cris-tdep.c (cris_gdbarch_init): Ditto.
913 * avr-tdep.c (avr_gdbarch_init): Ditto.
914 * arm-tdep.c (arm_gdbarch_init): Ditto.
915 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
916 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
917
918 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
919
920 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
921 CHILD_FOLLOW_FORK.
922 * hppah-nat.c (saved_vfork_pid): Add.
923 (child_post_follow_vfork): Remove.
924 (child_follow_fork): New function.
925 (child_wait): Call detach_breakpoints after receiving the child vfork.
926 Call child_resume directly instead of going through resume ().
927 Make sure we have the exec before reporting the vfork.
928 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
929 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
930 (follow_fork): New function. Call target_follow_fork.
931 (follow_inferior_reset_breakpoints): New function broken out from
932 old follow_inferior_fork.
933 (resume): Remove hack to follow exec after vfork.
934 * inftarg.c (child_post_follow_vfork): Remove.
935 (child_follow_fork): New function.
936 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
937 * target.c (cleanup_target): Replace to_post_follow_vfork with
938 to_follow_fork.
939 (update_current_target): Likewise.
940 (setup_target_debug): Likewise.
941 (debug_to_post_follow_vfork): Remove.
942 (debug_to_follow_fork): New function.
943 * target.h (struct target_ops): Replace to_post_folow_vfork with
944 to_follow_fork.
945 (child_post_follow_vfork): Remove prototype.
946 (child_follow_fork): Add prototype.
947 (target_post_follow_vfork): Remove macro.
948 (target_follow_fork): Add macro.
949
950 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
951
952 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
953 (child_post_follow_vfork): Cancel pending exec event if we follow
954 the parent.
955 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
956 events have been processed. Return a fake TARGET_WAITKIND_EXECD
957 event at the following wait call if necessary.
958 * infrun.c (follow_vfork): Don't follow_exec here.
959 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
960 case about HP/UX 10.20. Remove code pushed down to
961 hppah-nat.c:child_wait.
962 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
963 vfork_in_flight is set.
964
965 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
966
967 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
968 for the parent's fork event.
969 * infrun.c (handle_inferior_event): Only expect one fork event.
970 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
971 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
972
973 2002-12-10 Andrew Cagney <ac131313@redhat.com>
974
975 * PROBLEMS: Delete reference to PR gdb/725.
976
977 * MAINTAINERS (gdb.c++): Add David Carlton.
978
979 2002-12-09 David Carlton <carlton@math.stanford.edu>
980
981 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
982 * cli/cli-cmds.c: Ditto.
983
984 2002-12-09 Andrew Cagney <cagney@redhat.com>
985
986 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
987 function address in <>.
988 * gdbarch.c: Re-generate.
989
990 2002-12-09 David Carlton <carlton@math.stanford.edu>
991
992 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
993
994 2002-12-09 David Carlton <carlton@math.stanford.edu>
995
996 * linespec.c (symtab_from_filename): New function.
997 (decode_line_1): Move code into symtab_from_filename.
998
999 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1000
1001 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1002
1003 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1004
1005 * f-valprint.c (info_common_command): Use get_frame_pc.
1006 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1007 * ax-gdb.c (agent_command): Ditto.
1008 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1009 (rs6000_pop_frame): Ditto.
1010 (rs6000_frameless_function_invocation): Ditto.
1011 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1012 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1013 * macroscope.c (default_macro_scope): Ditto.
1014 * stack.c (print_frame_info_base): Ditto.
1015 (print_frame, frame_info, print_frame_label_vars): Ditto.
1016 (return_command, func_command, get_frame_language): Ditto.
1017 * infcmd.c (finish_command): Ditto.
1018 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1019 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1020 (break_at_finish_at_depth_command_1): Ditto.
1021 (break_at_finish_command_1): Ditto.
1022 (until_break_command, get_catch_sals): Ditto.
1023 * blockframe.c (func_frame_chain_valid): Ditto.
1024 (frameless_look_for_prologue): Ditto.
1025 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1026
1027 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1028
1029 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1030 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1031
1032 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1033
1034 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1035 to pure functions.
1036 * gdbarch.h, gdbarch.c: Re-generate.
1037 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1038 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1039
1040 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1041 declaration to a function returning a CORE_ADDR.
1042 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1043 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1044 (init_frame_pc_default): Ditto.
1045 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1046 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1047 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1048 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1049 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1050 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1051
1052 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1053 to init_frame_pc_noop.
1054 (i386_interix_init_frame_pc): Delete function.
1055 * z8k-tdep.c (init_frame_pc): Delete function.
1056 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1057 (INIT_FRAME_PC_FIRST): Ditto.
1058 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1059 (INIT_FRAME_PC_FIRST): Ditto.
1060 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1061 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1062 init_frame_pc_noop.
1063 (INIT_FRAME_PC_FIRST): Convert to an expression.
1064 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1065
1066 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1067
1068 * blockframe.c: Use get_frame_base instead of directly accessing
1069 the `struct frame_info' member frame.
1070 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1071 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1072
1073 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1074
1075 * Makefile.in (readline_h): Define.
1076 (completer.o): Depend on readline_h.
1077 (corelow.o): Ditto.
1078 (event-top.o): Ditto.
1079 (exec.o): Ditto.
1080 (solib.o): Ditto.
1081 (source.o): Ditto.
1082 (symfile.o): Ditto.
1083 (symmisc.o): Ditto.
1084 (top.o): Ditto.
1085 (tracepoint.o): Ditto.
1086 (utils.o): Ditto.
1087 (cli-dump.o): Ditto.
1088 (tui-hooks.o): Ditto.
1089 (tuiWin.o): Ditto.
1090
1091 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1092
1093 More cleanup from import of readline 4.3.
1094 * completer.h (complete_line, readline_line_completion_function):
1095 Update prototypes.
1096 (line_completion_function): Removed, not used outside of completer.c.
1097 * completer.c (readline_line_completion_function,
1098 complete_function, line_completion_function): Use const for first
1099 parameter.
1100 (line_completion_function): Make static.
1101 (filename_completer): filename_completion_function is now called
1102 rl_filename_completion_function
1103 * corelow.c: Include <readline/readline.h>.
1104 * exec.c: Ditto.
1105 * solib.c: Ditto.
1106 * source.c: Ditto.
1107 * symfile.c: Ditto.
1108 * symmisc.c: Ditto.
1109 * top.c (init_main): No need to coerce
1110 readline_line_completion_function anymore.
1111 * cli/cli-dump.c: Include <readline/readline.h>.
1112
1113 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1114
1115 * stack.c (frame_info): Use get_prev_frame.
1116 * blockframe.c (frame_address_in_block): Ditto.
1117 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1118 (rs6000_frameless_function_invocation): Ditto.
1119 (rs6000_frame_saved_pc): Ditto.
1120 (rs6000_frame_chain): Ditto.
1121 * arch-utils.c (init_frame_pc_default): Ditto.
1122
1123 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1124
1125 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1126 Delete redundant definition.
1127
1128 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1129
1130 Import of readline 4.3:
1131 * cli/cli-cmds.c: Include readline/tilde.h.
1132 * cli/cli-setshow.c: Ditto.
1133 * defs.h: Don't declare tilde_expand anymore, since readline
1134 exports it.
1135
1136 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1137
1138 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1139 -Werror on this file.
1140
1141 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1142
1143 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1144 the format name.
1145 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1146 * gdbarch.c: Regenerate.
1147
1148 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1149
1150 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1151 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1152 provide a default value.
1153 * gdbarch.h, gdbarch.c: Regenerate.
1154 * frame.c (get_prev_frame): Update. Check
1155 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1156 * s390-tdep.c (s390_gdbarch_init): Update.
1157 * mips-tdep.c (mips_gdbarch_init): Update.
1158 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1159 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1160 * alpha-tdep.c (alpha_gdbarch_init): Update.
1161
1162 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1163
1164 * ia64-linux-nat.c: Include gdb_string.h.
1165 * alpha-nat.c: Ditto.
1166 * ppc-linux-nat.c: Ditto.
1167 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1168 Update dependencies.
1169
1170 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1171
1172 * gdbthread.h: Include "frame.h".
1173 (struct thread_info): Replace step_frame_address with
1174 step_frame_id.
1175 * inferior.h: Include "frame.h".
1176 (step_frame_id): Replace external variable step_frame_address.
1177 * gdbthread.h (save_infrun_state): Replace step_frame_address
1178 parameter with step_frame_id parameter.
1179 (load_infrun_state): Ditto.
1180 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1181 * infcmd.c (step_frame_id, step_1, step_once): Update.
1182 * thread.c (load_infrun_state, save_infrun_state): Update.
1183 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1184 (handle_inferior_event, step_over_function): Update.
1185 (normal_stop, context_switch, restore_inferior_status): Update.
1186 (struct inferior_status): Replace step_frame_address with
1187 step_frame_id.
1188
1189 2002-12-05 David Carlton <carlton@math.stanford.edu>
1190
1191 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1192 DW_TAG_member as well as a declaration as being a C++ static data
1193 member.
1194 (read_structure_scope): Combine tests for DW_TAG_member and
1195 DW_TAG_variable.
1196
1197 2002-12-05 David Carlton <carlton@math.stanford.edu>
1198
1199 * linespec.c (decode_compound): New function.
1200 (decode_line_1): Move code into decode_compound.
1201
1202 2002-12-05 David Carlton <carlton@math.stanford.edu>
1203
1204 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1205 argument.
1206 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1207 the static block. See PR gdb/804.
1208
1209 2002-12-05 David Carlton <carlton@math.stanford.edu>
1210
1211 * symtab.c (lookup_symbol_aux_block): New function.
1212 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1213
1214 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1215
1216 * gdbarch.sh: Dump the predicate function and macro values.
1217 (read): Print error on standard error.
1218 * gdbarch.c: Regenerate.
1219
1220 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1221
1222 * Makefile.in (mips_tdep_h): Define.
1223 (mips-tdep.o): Add mips_tdep_h to dependency list.
1224 * mips-tdep.h: New file.
1225 * mips-tdep.c (mips-tdep.h): Include.
1226 (enum mips_abi): Move to mips-tdep.h.
1227 (mips_abi): New function.
1228
1229 2002-12-04 David Carlton <carlton@math.stanford.edu>
1230
1231 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1232
1233 2002-12-04 David Carlton <carlton@math.stanford.edu>
1234
1235 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1236 function.
1237 (lookup_symbol_aux_minsyms): New function.
1238
1239 2002-12-04 J. Brobecker <brobecker@gnat.com>
1240
1241 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1242
1243 2002-12-04 J. Brobecker <brobecker@gnat.com>
1244
1245 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1246 which is an obsolete macro name.
1247
1248 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1249
1250 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1251 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1252
1253 2002-12-03 H.J. Lu (hjl@gnu.org)
1254
1255 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1256 (create_breakpoints): Make sure the addr_string field is not
1257 NULL.
1258
1259 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1260
1261 * sparc-nat.c (fetch_inferior_registers)
1262 (store_inferior_registers): Add comment on problem of LWP vs
1263 threads.
1264
1265 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1266 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1267 (lin_lwp_store_registers): Remove.
1268 (init_lin_lwp_ops): Use fetch_inferior_registers
1269 and store_inferior_registers directly.
1270 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1271 (store_inferior_registers): Likewise.
1272 Fix PR gdb/725.
1273
1274 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1275
1276 * frame.h (get_frame_id): Convert to a function.
1277 (null_frame_id, frame_id_p): Declare.
1278 (frame_id_eq, frame_id_inner): Declare.
1279 (frame_id_build): New function.
1280 * frame.c (get_frame_id): Update. Use null_frame_id.
1281 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1282 frame_id_inner.
1283 (null_frame_id, frame_id_p): Define.
1284 (frame_id_eq, frame_id_inner): Define.
1285 (frame_id_build): New function.
1286 * varobj.c (varobj_create): Update.
1287 (varobj_update): Update.
1288 * valops.c (value_assign): Update.
1289 (new_root_variable): Update.
1290 * infrun.c (save_inferior_status): Update.
1291 * breakpoint.c (watch_command_1): Update.
1292
1293 2002-12-03 J. Brobecker <brobecker@gnat.com>
1294
1295 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1296 (SNAP2): Likewise.
1297
1298 2002-12-03 Andrew Cagney <cagney@redhat.com>
1299
1300 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1301 patch.
1302
1303 * PROBLEMS: Mention PR gdb/725.
1304
1305 2002-12-03 Andreas Schwab <schwab@suse.de>
1306
1307 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1308
1309 2002-12-02 Adam Fedor <fedor@gnu.org>
1310 Klee Dienes <kdienes@apple.com>
1311
1312 * objc-lang.c (objc_printstr): Add width arg to match
1313 printstr prototype.
1314 (compare_selectors): Add 'const' to arg types.
1315 (compare_classes): Likewise.
1316 (find_imps): Cast msym pointer to avoid compiler warning.
1317 (print_object_command): Validate the address before
1318 passing it to the print routine.
1319 (find_objc_msgcall_submethod): Change function argument to
1320 return an int.
1321 * objc-lang.h: Add 'extern' to all function declarations.
1322 (value_nsstring): Add declaration.
1323
1324 2002-12-02 J. Brobecker <brobecker@gnat.com>
1325
1326 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1327 Fixes a build failure on HP/UX.
1328
1329 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1330 failure on HP/UX.
1331 (hpread_has_name): Advance declaration to avoid a compilation warning.
1332 (pst_syms_count): Add missing variable type. By change, the compiler
1333 was defaulting to int, which seems a good choice. Fixes a compilation
1334 warning.
1335 (pst_syms_size): Likewise.
1336
1337 2002-12-02 J. Brobecker <brobecker@gnat.com>
1338
1339 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1340 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1341 later to set the proper gdbarch methods depending on the osabi.
1342 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1343
1344 2002-12-02 J. Brobecker <brobecker@gnat.com>
1345
1346 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1347 * osabi.c (gdb_osabi_name): Add strings images for the two new
1348 enum values.
1349 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1350
1351 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1352
1353 * MAINTAINERS (Java): Global maintainers are responible for Java.
1354 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1355 part Java maintainers.
1356
1357 2002-12-02 J. Brobecker <brobecker@gnat.com>
1358
1359 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1360 Fixes a compilation failure on AiX.
1361
1362 2002-12-02 J. Brobecker <brobecker@gnat.com>
1363
1364 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1365 why aix-thread.o is not listed.
1366
1367 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1368
1369 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1370 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1371 * gdbarch.h, gdbarch.c: Re-generate.
1372 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1373 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1374 * config/pa/tm-hppa.h, frame.h: Update.
1375 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1376 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1377 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1378 * cris-tdep.c, alpha-tdep.c: Update.
1379 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1380 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1381 (get_prev_frame): Ditto.
1382
1383 2002-11-30 Andrew Cagney <cagney@redhat.com>
1384
1385 * exec.c (xfer_memory): Replace boolean with int.
1386 * p-exp.y: Use 0 instead of false.
1387 * corelow.c (gdb_check_format): Change return type to int from
1388 boolean.
1389 * utils.c: Don't include <curses.h> or <term.h> first.
1390
1391 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1392
1393 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1394 (m68hc11_register_byte): Remove.
1395 (m68hc11_gdbarch_init): Don't set the above.
1396
1397 2002-11-29 Andrew Cagney <cagney@redhat.com>
1398
1399 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1400 by calling get_selected_frame.
1401 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1402 set_current_frame, create_new_frame, select_frame and
1403 get_current_frame.
1404 * remote-e7000.c (e7000_start_remote): Ditto.
1405 * remote-mips.c (common_open): Ditto
1406 * remote-rdp.c (remote_rdp_open): Ditto.
1407
1408 2002-11-29 Andreas Schwab <schwab@suse.de>
1409
1410 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1411 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1412 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1413 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1414 read_memory_unsigned_integer instead of read_memory_integer when
1415 dealing with addresses and instruction opcodes.
1416 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1417 (m68k_linux_frame_saved_pc): Likewise.
1418
1419 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1420
1421 * stack.c (selected_frame, select_frame): Move from here ...
1422 * frame.c (selected_frame, select_frame): ... to here. Include
1423 "language.h".
1424 * Makefile.in (frame.o): Update dependencies.
1425 * frame.c (get_selected_frame): New function.
1426 * frame.h (get_selected_frame): Declare.
1427 (deprecated_selected_frame): Rename selected_frame.
1428 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1429 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1430 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1431 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1432 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1433 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1434 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1435 * z8k-tdep.c, cli/cli-cmds.c: Update.
1436
1437 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1438
1439 * frame.h (get_selected_block): Add comments.
1440
1441 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1442
1443 * frame.c (pc_notcurrent): New function.
1444 (find_frame_sal): New function.
1445 * frame.h (find_frame_sal): Declare.
1446 (struct symtab_and_line): Add opaque declaration.
1447 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1448 find_pc_line.
1449 (frame_info): Ditto.
1450 * ada-lang.c (find_printable_frame): Ditto.
1451
1452 2002-11-28 J. Brobecker <brobecker@gnat.com>
1453
1454 * configure.in: Check that the pthdebug library is recent enough
1455 before enabling thread support on native AiX.
1456 * configure: Regenerate.
1457
1458 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1459 from the list of object files as it is now appended by configure
1460 if thread support is enabled.
1461 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1462 if thread support is enabled.
1463
1464 2002-11-28 Andrew Cagney <cagney@redhat.com>
1465
1466 * stack.c (get_selected_block): In-line get_current_block.
1467 * frame.h (get_current_block): Delete declaration.
1468 * blockframe.c (get_current_block): Delete function.
1469
1470 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1471
1472 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1473 USE_GENERIC_DUMMY_FRAMES.
1474 * gdbarch.h, gdbarch.c: Regenerate.
1475 * valops.c, frame.c: Update.
1476 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1477 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1478 * config/pa/tm-hppa.h, blockframe.c: Update.
1479 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1480 * m68k-tdep.c, alpha-tdep.c: Ditto.
1481
1482 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1483 * mips-tdep.c: Ditto.
1484
1485 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1486
1487 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1488 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1489 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1490 * gdbarch.c, gdbarch.h: Re-generate.
1491 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1492 (CALL_DUMMY_LOCATION): Delete macro definition.
1493 (PC_IN_CALL_DUMMY): Delete macro definitions.
1494
1495 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1496 default is already generic_pc_in_call_dummy.
1497 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1498 * v850-tdep.c (v850_gdbarch_init): Ditto.
1499 * sh-tdep.c (sh_gdbarch_init): Ditto.
1500 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1501 * mips-tdep.c (mips_gdbarch_init): Ditto.
1502 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1504 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1506 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1507 * avr-tdep.c (avr_gdbarch_init): Ditto.
1508
1509 * arm-tdep.c (arm_gdbarch_init): Do not set
1510 use_generic_dummy_frames, default is already 1.
1511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1512 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1513 * v850-tdep.c (v850_gdbarch_init): Ditto.
1514 * sh-tdep.c (sh_gdbarch_init): Ditto.
1515 * s390-tdep.c (s390_gdbarch_init): Ditto.
1516 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1517 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1518 * mips-tdep.c (mips_gdbarch_init): Ditto.
1519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1522 * i386-tdep.c (i386_gdbarch_init): Ditto.
1523 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1524 * frv-tdep.c (frv_gdbarch_init): Ditto.
1525 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1526 * cris-tdep.c (cris_gdbarch_init): Ditto.
1527 * avr-tdep.c (avr_gdbarch_init): Ditto.
1528
1529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1530 call_dummy_location, default is already AT_ENTRY_POINT.
1531 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1532 * v850-tdep.c (v850_gdbarch_init): Ditto.
1533 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1534 * sh-tdep.c (sh_gdbarch_init): Ditto.
1535 * s390-tdep.c (s390_gdbarch_init): Ditto.
1536 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1537 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1538 * mips-tdep.c (mips_gdbarch_init): Ditto.
1539 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1540 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1541 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1542 * i386-tdep.c (i386_gdbarch_init): Ditto.
1543 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1544 * frv-tdep.c (frv_gdbarch_init): Ditto.
1545 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1546 * cris-tdep.c (cris_gdbarch_init): Ditto.
1547 * avr-tdep.c (avr_gdbarch_init): Ditto.
1548 * arm-tdep.c (arm_gdbarch_init): Ditto.
1549 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1550
1551 2002-11-28 Andrew Cagney <cagney@redhat.com>
1552
1553 * frame.h: Update comments on set_current_frame, create_new_frame,
1554 flush_cached_frames, reinit_frame_cache, select_frame and
1555 selected_frame.
1556
1557 2002-11-27 Andrew Cagney <cagney@redhat.com>
1558
1559 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1560 deprecated pc_in_call_dummy function.
1561 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1562 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1563 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1564 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1565 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1566
1567 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1568
1569 * Makefile.in: Remove Tix dependencies.
1570 * acinclude.m4: Ditto.
1571 * aclocal.m4: Ditto.
1572 * configure.in: Ditto.
1573 * configure: Regenerated.
1574
1575 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1576
1577 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1578 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1579 * gdbarch.c: Re-generate.
1580
1581 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1582
1583 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1584 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1585 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1586 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1587 pc_in_call_dummy_at_entry_point.
1588 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1589 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1590 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1591 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1592 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1593 pc_in_call_dummy_on_stack.
1594 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1595 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1596 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1597 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1598 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1599
1600 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1601
1602 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1603 pc_in_call_dummy_before_text_end
1604 (deprecated_pc_in_call_dummy_after_text_end): Rename
1605 pc_in_call_dummy_after_text_end.
1606 (deprecated_pc_in_call_dummy_on_stack): Rename
1607 pc_in_call_dummy_on_stack.
1608 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1609 pc_in_call_dummy_at_entry_point.
1610 * m68k-tdep.c (m68k_gdbarch_init): Update.
1611 * s390-tdep.c (s390_gdbarch_init): Update.
1612 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1613 * vax-tdep.c (vax_gdbarch_init): Update.
1614 * sparc-tdep.c (sparc_gdbarch_init): Update.
1615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1616 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1617 * i386-tdep.c (i386_gdbarch_init): Update.
1618 * frv-tdep.c (frv_gdbarch_init): Update.
1619 * cris-tdep.c (cris_gdbarch_init): Update.
1620 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1621 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1622 (deprecated_pc_in_call_dummy_after_text_end)
1623 (deprecated_pc_in_call_dummy_on_stack)
1624 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1625 * alpha-tdep.c (alpha_gdbarch_init): Update.
1626
1627 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1628
1629 * acconfig.h (HAVE_PREAD64): Add.
1630 * configure.in: Check for pread64.
1631 * config.in: Regenerated.
1632 * configure: Regenerated.
1633 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1634 * linux-proc.c (linux_proc_xfer_memory): New function.
1635 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1636
1637 2002-11-25 David Carlton <carlton@math.stanford.edu>
1638
1639 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1640 pdi's with no name.
1641
1642 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1643
1644 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1645 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1646
1647 2002-11-25 Jim Blandy <jimb@redhat.com>
1648
1649 * symfile.c (init_objfile_sect_indices): New function.
1650 (default_symfile_offsets): Move the section-index-initializing
1651 stuff into init_objfile_sect_indices, and call that.
1652
1653 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1654 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1655
1656 * symfile.c (syms_from_objfile): Adjust indentation.
1657
1658 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1659 || info_verbose isn't true.
1660
1661 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1662
1663 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1664 default to get_frame_base.
1665 * gdbarch.h, gdbarch.c: Regenerate.
1666 * arch-utils.c (default_frame_address): Delete function.
1667 * arch-utils.h (default_frame_address): Delete declaration
1668
1669 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1670
1671 * varobj.c (find_frame_addr_in_frame_chain):
1672 Use get_frame_base instead of FRAME_FP,
1673 obvious fix.
1674
1675 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1676
1677 * frame.h (FRAME_FP): Delete macro.
1678 (get_frame_base): New function declaration.
1679 * frame.c (get_frame_base): New function.
1680 (get_frame_id): Use ->frame.
1681 (frame_find_by_id): Rewrite to use get_frame_id.
1682 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1683 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1684 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1685 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1686 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1687 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1688 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1689
1690 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1691
1692 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1693
1694 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1695
1696 * frame.c (set_unwind_by_pc): Revert change below, use
1697 PC_IN_CALL_DUMMY.
1698 (get_prev_frame): Ditto.
1699
1700 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1701
1702 * dummy-frame.c (pc_in_dummy_frame): New function.
1703 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1704 (find_dummy_frame): Update comment.
1705 (generic_pop_current_frame): Use get_frame_type.
1706 * dummy-frame.h (pc_in_dummy_frame): Declare.
1707 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1708 (create_new_frame): Use pc_in_dummy_frame.
1709 (get_prev_frame): Use pc_in_dummy_frame.
1710 (frame_saved_regs_register_unwind): Use get_prev_frame.
1711 (deprecated_generic_get_saved_register): Use get_prev_frame.
1712
1713 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1714
1715 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1716 from here ...
1717 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1718 (varobj_create): Note that frame ID should be used.
1719 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1720
1721 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1722
1723 * breakpoint.c: Include "gdb_assert.h".
1724 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1725 not being used.
1726 * Makefile.in (breakpoint.o): Update dependencies.
1727 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1728 deprecated_frame_in_dummy.
1729 * stack.c (print_frame_info_base): Ditto.
1730 (frame_info): Ditto.
1731 (print_frame_info_base): Ditto. Delete dead code.
1732
1733 2002-11-23 Andreas Schwab <schwab@suse.de>
1734
1735 * Makefile.in (m68k_tdep_h): Define.
1736 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1737 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1738 * m68k-tdep.c: Move register number enum ...
1739 * m68k-tdep.h: ... to this new file and rename the constants from
1740 E_* to M68K_*. All uses changed.
1741 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1742 * abug-rom.c: Include "m68k-tdep.h". Use
1743 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1744 * cpu32bug-rom.c: Likewise.
1745 * dbug-rom.c: Likewise.
1746 * m68k-tdep.c: Likewise.
1747 * m68klinux-nat.c: Likewise.
1748 * remote-est.c: Likewise.
1749 * rom68k-rom.c: Likewise.
1750 * config/m68k/tm-linux.h: Likewise.
1751
1752 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1753
1754 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1755 dummy frame initialization code.
1756 * mips-tdep.c (mips_gdbarch_init): Ditto.
1757
1758 2002-11-22 Christopher Faylor <cgf@redhat.com>
1759
1760 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1761 attach will hang.
1762
1763 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1764
1765 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1766 to default_frame_address.
1767 * gdbarch.h, gdbarch.c: Re-generate.
1768
1769 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1770 or frame_locals_address to default_frame_address.
1771 * m68k-tdep.c (m68k_gdbarch_init): Update.
1772 * i386-tdep.c (i386_gdbarch_init): Update.
1773 * frv-tdep.c (frv_gdbarch_init): Update.
1774 * sh-tdep.c (sh_gdbarch_init): Update.
1775 * v850-tdep.c (v850_gdbarch_init): Update.
1776 * sparc-tdep.c (sparc_gdbarch_init): Update.
1777 * mips-tdep.c (mips_gdbarch_init): Update.
1778 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1779 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1781
1782 * cris-tdep.c (cris_frame_args_address): Delete function.
1783 (cris_frame_locals_address): Delete function.
1784 (cris_gdbarch_init): Do not set frame_args_address or
1785 frame_locals_address.
1786
1787 2002-11-22 Michael Snyder <msnyder@redhat.com>
1788
1789 * thread-db.c (thread_db_load): Tell the user what's going on
1790 if dlopen fails on libthread_db.
1791
1792 2002-11-23 Andreas Schwab <schwab@suse.de>
1793
1794 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1795 invariant return values.
1796
1797 2002-11-22 Andreas Schwab <schwab@suse.de>
1798
1799 * valops.c (value_slice): Move declaration of `offset' to avoid
1800 warning.
1801
1802 2002-11-22 Christopher Faylor <cgf@redhat.com>
1803
1804 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1805 (struct so_stuff): Add end_addr field.
1806 (register_loaded_dll): Calculate and store end address of loaded dll.
1807 (solib_address): New function.
1808 (child_solib_loaded_library_pathname): Pass carefully constructed
1809 section info to safe_symbol_file_add rather than ignoring it.
1810 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1811 DLL is loaded.
1812 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1813 (child_create_inferior): Fix a compiler warning.
1814 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1815 (solib_address): Declare new function.
1816
1817 2002-11-22 Andreas Schwab <schwab@suse.de>
1818
1819 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1820 and FPS registers.
1821
1822 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1823
1824 * maint.c (_initialize_maint_cmds): Fix typo. From
1825 Francesco Potorti` <pot@gnu.org>.
1826
1827 2002-11-21 Andrew Cagney <cagney@redhat.com>
1828
1829 * mips-tdep.c (mips_dump_tdep): Delete references to
1830 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1831 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1832 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1833 * printcmd.c (build_address_symbolic): Delete calls to
1834 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1835 (address_info): Ditto.
1836 Fix PR gdb/773.
1837
1838 2002-11-19 Klee Dienes <kdienes@apple.com>
1839 Adam Fedor <fedor@gnu.org>
1840
1841 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1842 the ability to explicitly specify the quote characters and word
1843 break characters; if NULL is specified for either, use the old
1844 behavior of using the characters used by the completer.
1845 (skip_chars): New function. Convenience wrapper around
1846 skip_quoted_chars to provide the original skip_chars behavior.
1847 * completer.h (skip_quoted_chars): Add prototype.
1848
1849 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1850
1851 Problems reported by Paul Eggert.
1852 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1853
1854 2002-11-19 Andreas Schwab <schwab@suse.de>
1855
1856 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1857 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1858 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1859 (m68k_linux_frame_saved_pc): Move to ...
1860 * m68klinux-tdep.c: ... here. New file.
1861 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1862 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1863
1864 2002-11-19 Adam Fedor <fedor@gnu.org>
1865
1866 * objc-exp.y: Revert to old skip_quoted usage.
1867
1868 2002-11-19 Adam Fedor <fedor@gnu.org>
1869
1870 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1871 (objc_lang_h): Define.
1872 (YYFILES): Add objc-exp.tab.c.
1873 (local-maintainer-clean): Remove objc-exp.tab.c.
1874 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1875
1876 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1877
1878 * p-exp.y (typecast rule): Add automatic dereference of
1879 pascal classes if needed.
1880 (THIS): Set current_type.
1881 Automatically dereference pascal classes.
1882 (typebase rule): Add ^typebase recognition.
1883
1884 2002-11-18 Adam Fedor <fedor@gnu.org>
1885
1886 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1887 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1888 (op_name): Handle OP_OBJC_SELF.
1889 * Makefile.in (expprint.o): Add additional depends.
1890
1891 2002-11-18 Adam Fedor <fedor@gnu.org>
1892
1893 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1894 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1895 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1896 * objc-exp.y: Likewise.
1897
1898 2002-11-18 Adam Fedor <fedor@gnu.org>
1899
1900 * gdb/parser-defs.h: (struct objc_class_str): New structure
1901 for parsing ObjC classes.
1902
1903 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1904
1905 * stack.c (frame_relative_level): Copy function from here ...
1906 * frame.c (frame_relative_level): ...to here.
1907
1908 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1909
1910 * frame.h (enum frame_type): Define.
1911 (get_frame_type): Declare.
1912 (struct frame_info): Add field `type'. Delete field
1913 signal_handler_caller.
1914 (deprecated_set_frame_signal_handler_caller): Declare.
1915 * frame.c (get_frame_type): New function.
1916 (deprecated_set_frame_type): New function.
1917 (create_new_frame): Set the frame's type.
1918 (get_prev_frame): Similar.
1919 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1920 * s390-tdep.c: Ditto.
1921 * m68klinux-nat.c: Ditto.
1922 * ns32k-tdep.c: Ditto.
1923 * x86-64-linux-tdep.c: Ditto.
1924 * vax-tdep.c: Ditto.
1925 * rs6000-tdep.c: Ditto.
1926 * ppc-linux-tdep.c: Ditto.
1927 * i386-interix-tdep.c: Ditto.
1928 * mips-tdep.c: Ditto.
1929 * m68k-tdep.c: Ditto.
1930 * hppa-tdep.c: Ditto.
1931 * ia64-tdep.c: Ditto.
1932 * cris-tdep.c: Ditto.
1933 * arm-tdep.c: Ditto.
1934 * alpha-tdep.c: Ditto.
1935 * i386-tdep.c: Ditto.
1936 * stack.c: Ditto.
1937 * ada-lang.c: Ditto.
1938 * blockframe.c: Update.
1939 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1940 deprecated_set_frame_type instead of signal_handler_caller.
1941 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1942 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1943 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1944
1945 2002-11-18 Klee Dienes <kdienes@apple.com>
1946
1947 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1948
1949 2002-11-18 Klee Dienes <kdienes@apple.com>
1950
1951 * buildsym.c (pop_context): Add comment.
1952
1953 2002-11-18 Klee Dienes <kdienes@apple.com>
1954
1955 * buildsym.h (pop_context): Convert to function, defined in
1956 buildsym.c.
1957 * buildsym.c: Include gdb_assert.h.
1958 (pop_context): Implement as C function. Add check for stack
1959 underflow.
1960 * dbxread.c (process_one_symbol): Complain and stop processing
1961 that symbol if we are already at the top of the context stack for
1962 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1963 when processing N_RBRAC.
1964
1965 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1966
1967 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1968 define.
1969 (struct target_waitstatus): Add opaque definition.
1970 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1971 * exec.c (init_exec_ops): Likewise.
1972 * fork-child.c (clone_and_follow_inferior): Remove.
1973 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1974 * inferior.h (clone_and_follow_inferior): Remove prototype.
1975 * infrun.c (follow_fork_mode_both): Remove.
1976 (follow_fork_mode_kind_names): Remove commented out "both".
1977 (follow_inferior_fork): Remove follow_fork_mode_both support.
1978 * inftarg.c (child_clone_and_follow_inferior): Remove.
1979 (child_post_follow_inferior_by_clone): Remove.
1980 (init_child_ops): Don't set to_clone_and_follow_inferior
1981 or to_post_follow_inferior_by_clone.
1982 * target.c (default_clone_and_follow_inferior): Remove.
1983 (cleanup_target): Don't set to_clone_and_follow_inferior
1984 or to_post_follow_inferior_by_clone.
1985 (find_default_clone_and_follow_inferior): Remove.
1986 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1987 (debug_to_clone_and_follow_inferior): Remove.
1988 (debug_to_post_follow_inferior_by_clone): Remove.
1989 (setup_target_debug): Don't set to_clone_and_follow_inferior
1990 or to_post_follow_inferior_by_clone.
1991 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1992 and to_post_follow_inferior_by_clone.
1993 (child_clone_and_follow_inferior): Remove prototype.
1994 (child_post_follow_inferior_by_clone): Remove prototype.
1995 (target_clone_and_follow_inferior): Remove macro.
1996 (target_post_follow_inferior_by_clone): Remove macro.
1997 (find_default_clone_and_follow_inferior): Remove prototype.
1998
1999 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2000
2001 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2002 inferior_has_vforked, and inferior_has_execd instead of
2003 target_has_forked, target_has_vforked, and target_has_execd.
2004 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2005 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2006 (CHILD_WAIT): Define.
2007 (child_wait): Add prototype.
2008 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2009 Add prototype.
2010 (hpux_has_vforked): Likewise, from child_has_vforked.
2011 (hpux_has_execd): Likewise, from child_has_execd.
2012 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2013 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2014 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2015 and hpux_has_syscall_event instead of the target hooks.
2016 * infrun.c (inferior_has_forked, inferior_has_vforked)
2017 (inferior_has_execd): New functions.
2018 * inftarg.c (not_same_real_pid): Remove.
2019 (child_wait): Remove references to not_same_real_pid,
2020 target_has_forked, target_has_vforked, target_has_execd,
2021 and target_has_syscall_event.
2022 (child_has_forked, child_has_vforked, child_has_execd)
2023 (child_has_syscall_event): Remove.
2024 (init_child_ops): Remove references to child_has_forked,
2025 child_has_vforked, child_has_execd, and child_has_syscall_event.
2026 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2027 (hpux_has_vforked): Likewise, from child_has_vforked.
2028 (hpux_has_execd): Likewise, from child_has_execd.
2029 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2030 * target.c (cleanup_target): Remove references to
2031 to_has_forked, to_has_vforked, to_has_execd, and
2032 to_has_syscall_event.
2033 (update_current_target): Likewise.
2034 (setup_target_debug): Likewise.
2035 (debug_to_has_forked): Remove.
2036 (debug_to_has_vforked): Remove.
2037 (debug_to_has_execd): Remove.
2038 (debug_to_has_syscall_event): Remove.
2039 * target.h (struct target_ops): Remove to_has_forked.
2040 to_has_vforked, to_has_execd, and to_has_syscall_event.
2041 (child_has_forked, child_has_vforked, child_has_execd)
2042 (child_has_syscall_event): Remove prototypes.
2043 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2044 prototypes.
2045 (target_has_forked, target_has_vforked, target_has_execd)
2046 (target_has_syscall_event): Remove macros.
2047
2048 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2049
2050 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2051 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2052 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2053 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2054 * target.c (cleanup_target): Remove reference to
2055 to_can_follow_vfork_prior_to_exec.
2056 (update_current_target): Likewise.
2057 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2058 (setup_target_debug): Remove reference to
2059 to_can_follow_vfork_prior_to_exec.
2060 * target.h (struct target_ops): Remove
2061 to_can_follow_vfork_prior_to_exec.
2062 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2063 (target_can_follow_vfork_prior_to_exec): Remove definition.
2064 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2065 define.
2066 * infrun.c (follow_vfork_when_exec): Remove.
2067 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2068 (follow_exec): Likewise.
2069 (handle_inferior_event): Likewise.
2070 (keep_going): Likewise.
2071
2072 2002-11-15 Andrew Cagney <cagney@redhat.com>
2073
2074 * frame.c (generic_unwind_get_saved_register): Make static.
2075 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2076 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2077 defaults to generic_unwind_get_saved_register.
2078 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2079 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2080 * frv-tdep.c (frv_gdbarch_init): Ditto.
2081 * i386-tdep.c (i386_gdbarch_init): Ditto.
2082 * s390-tdep.c (s390_gdbarch_init): Ditto.
2083 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2084 * v850-tdep.c (v850_gdbarch_init): Ditto.
2085 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2086 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2087 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2088
2089 2002-11-15 Andrew Cagney <cagney@redhat.com>
2090
2091 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2092 i386-tdep.c.
2093
2094 2002-11-15 Andrew Cagney <cagney@redhat.com>
2095
2096 * frame.h (sigtramp_saved_pc): Delete declaration.
2097 * blockframe.c (sigtramp_saved_pc): Delete function.
2098 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2099 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2100 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2101 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2102
2103 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2104
2105 * frame.c (frame_pc_unwind): New function.
2106 (frame_saved_regs_pc_unwind): New function.
2107 (frame_register_unwind): Pass unwind_cache instead of
2108 register_unwind_cache.
2109 (set_unwind_by_pc): Add unwind_pc parameter, set.
2110 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2111 (get_prev_frame): Ditto.
2112 * frame.h (frame_pc_unwind_ftype): Declare.
2113 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2114 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2115 (frame_pc_unwind): Declare.
2116 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2117 (struct dummy_frame): Add comment mentioning that values are for
2118 previous frame.
2119 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2120 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2121 (generic_file_frame_chain_valid): Ditto.
2122 * stack.c (frame_info): Ditto.
2123
2124 2002-11-15 David Carlton <carlton@math.stanford.edu>
2125
2126 * linespec.c (locate_first_half): New function.
2127 (decode_line_1): Move code into locate_first_half.
2128
2129 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2130
2131 * complaints.h: Add comment explaining how to eliminate a
2132 deprecated_complain call.
2133 * complaints.h: Fix spelling errors.
2134
2135 2002-11-15 David Carlton <carlton@math.stanford.edu>
2136
2137 * printcmd.c: Remove #include "disasm.h".
2138
2139 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2140
2141 * frame.h: Move the most relevant interface functions to the start
2142 of the file.
2143
2144 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2145
2146 * regcache.h (deprecated_registers): Rename registers.
2147 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2148 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2149 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2150 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2151 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2152 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2153 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2154 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2155 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2156 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2157 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2158 * v850ice.c: Update.
2159
2160 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2161
2162 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2163 NULL buffer.
2164
2165 2002-11-13 Andrew Cagney <cagney@redhat.com>
2166
2167 * regcache.h (deprecated_read_register_bytes): Rename
2168 read_register_bytes.
2169 (deprecated_write_register_bytes): Rename write_register_bytes.
2170 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2171 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2172 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2173 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2174 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2175 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2176 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2177 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2178 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2179 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2180 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2181 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2182 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2183 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2184
2185 2002-11-13 Jim Blandy <jimb@redhat.com>
2186
2187 * findvar.c (read_var_value): Doc fix.
2188
2189 2002-11-13 Andrew Cagney <cagney@redhat.com>
2190
2191 * regcache.c (struct regcache): Replace passthough_p with
2192 readonly_p.
2193 (regcache_xmalloc): Initialize readonly_p.
2194 (build_regcache): Initialize readonly_p.
2195 (regcache_save): New function.
2196 (regcache_restore): New function.
2197 (regcache_cpy): Re-implement using regcache_save and
2198 regcache_restore.
2199 (regcache_raw_read): Update.
2200 (regcache_cooked_read): When a read-only cache, checked for cached
2201 pseudo register values.
2202 (regcache_raw_write): Assert that the cache is not read-only.
2203 Remove code handling a non-passthrough cache.
2204 * regcache.h (regcache_save): Declare.
2205 (regcache_restore): Declare.
2206
2207 2002-11-13 Andrew Cagney <cagney@redhat.com>
2208
2209 * regcache.c (struct regcache_descr): Add fields
2210 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2211 (init_legacy_regcache_descr): Compute the size of a cooked
2212 register cache and then assign that to sizeof_raw_registers. Set
2213 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2214 (init_legacy_regcache_descr): Ditto.
2215
2216 2002-11-13 Andrew Cagney <cagney@redhat.com>
2217
2218 * regcache.c (register_buffer): Move to near start of file, update
2219 description.
2220 (regcache_raw_read): Use.
2221 (regcache_raw_write): Use.
2222 (struct regcache): Rename raw_registers to registers and
2223 raw_register_valid_p to register_valid_p.
2224 (regcache_xmalloc): Update.
2225 (regcache_xfree): Update.
2226 (register_buffer): Update.
2227 (regcache_cpy): Update.
2228 (regcache_cpy_no_passthrough): Update.
2229 (regcache_valid_p): Update.
2230 (deprecated_grub_regcache_for_registers): Update.
2231 (deprecated_grub_regcache_for_register_valid): Update.
2232 (set_register_cached): Update.
2233 (regcache_raw_write): Update.
2234
2235 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2236
2237 * p-exp.y (name_not_typename): Use copy_name to
2238 set current_type variable for fields of THIS.
2239
2240 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2241
2242 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2243 * monitor.c (init_base_monitor_ops): Likewise.
2244 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2245 * remote-array.c (init_array_ops): Likewise.
2246 * remote-e7000.c (init_e7000_ops): Likewise.
2247 * remote-es.c (init_es1800_ops): Likewise.
2248 (init_es1800_child_ops): Likewise.
2249 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2250 * remote-sim.c (init_gdbsim_ops): Likewise.
2251 * remote-st.c (init_st2000_ops): Likewise.
2252 * sol-thread.c (init_sol_core_ops): Likewise.
2253 (init_sol_thread_ops): Likewise.
2254 * v850ice.c (init_850ice_ops): Likewise.
2255 * win32-nat.c (init_child_ops): Likewise.
2256 * wince.c (init_child_ops): Likewise.
2257
2258 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2259
2260 * utils.c (gdb_realpath): Make rp a constant pointer.
2261
2262 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2263
2264 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2265 a constant buffer; cannonicalize_file_name(); realpath() with a
2266 pathconf() defined buffer, xstrdup().
2267
2268 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2269
2270 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2271 to hang2.C; hang3.c to hang3.C.
2272
2273 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2274
2275 * findvar.c (read_var_value): Reenable TLS code.
2276
2277 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2278 Jim Blandy <jimb@redhat.com>
2279
2280 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2281 * target.c (update_current_target): Add
2282 to_get_thread_local_address.
2283 * target.h (to_get_thread_local_address): Export.
2284 (target_get_thread_local_address): Define.
2285 (target_get_thread_local_address_p): Define.
2286 * thread-db.c: Include solib-svr4.h.
2287 (td_thr_tls_get_addr_p): Define.
2288 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2289 (thread_db_get_thread_local_address): New function.
2290 (init_thread_db_ops): Initialize to_get_thread_local_address.
2291 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2292 * configure: Regenerate.
2293 * config.in: Regenerate.
2294
2295 2002-11-11 David Carlton <carlton@math.stanford.edu>
2296
2297 * linespec.c (set_flags): New function.
2298 (decode_line_1): Move code into set_flags.
2299
2300 2002-11-11 David Carlton <carlton@math.stanford.edu>
2301
2302 * linespec.c (decode_line_1): Move chunks of code to separate
2303 functions.
2304 (initialize_defaults): New function.
2305 (decode_indirect): New function.
2306
2307 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2308
2309 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2310 instead of void_code_ptr.
2311 (sigtramp_saved_pc): Ditto.
2312
2313 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2314 i386_fp_regnum_p.
2315
2316 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2317
2318 * gdbtypes.h (struct main_type): Move artificial flag out of
2319 loc. New member of ``struct field'' named static_kind. Reduce
2320 overloaded meaning of bitsize.
2321 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2322 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2323 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2324
2325 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2326 new fields.
2327 (template_to_fixed_record_type, template_to_static_fixed_type)
2328 (to_record_with_fixed_variant_part): Likewise.
2329 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2330 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2331 * dwarfread.c (struct_type, enum_type): Likewise.
2332 * hpread.c (hpread_read_enum_type)
2333 (hpread_read_function_type, hpread_read_doc_function_type)
2334 (hpread_read_struct_type): Likewise.
2335 * mdebugread.c (parse_symbol): Likewise.
2336
2337 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2338
2339 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2340 * stack.c (print_frame_info_base): Update.
2341 (print_frame_info_base, frame_info): Update.
2342 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2343 (sparc_frame_saved_pc): Update.
2344 * ada-lang.c (find_printable_frame): Update.
2345 * breakpoint.c (deprecated_frame_in_dummy): Update.
2346
2347 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2348
2349 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2350 defined.
2351 (regmap): Extend to cover all registers.
2352 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2353 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2354 definitions.
2355 (fetch_register, sore_register): Simplify.
2356 (old_fetch_inferior_registers, old_store_inferior_registers):
2357 Remove functions.
2358 (cannot_fetch_register, cannot_store_register): Change
2359 implementation to use regmap array to decide which registers
2360 cannot be fetched/stored. This removes $orig_eax from the
2361 registers that cannot be fetched/stored.
2362 (fetch_inferior_registers): Call fetch_register directly instead
2363 of calling old_fetch_inferior_registers.
2364 (store_inferior_registers): Call store_register directly instead
2365 of calling old_store_inferior_registers.
2366 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2367 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2368 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2369
2370 2002-11-09 Klee Dienes <kdienes@apple.com>
2371
2372 * i387-tdep.c (i387_supply_register): When called with NULL as a
2373 buffer, mark the register as not provided (to mirror the behavior
2374 of supply_register).
2375 (i387_supply_fxsave): Ditto.
2376 (i387_supply_fsave): Ditto (inherits the behavior from
2377 i387_supply_register).
2378
2379 2002-11-09 Klee Dienes <kdienes@apple.com>
2380
2381 * blockframe.c (sigtramp_saved_pc): Use
2382 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2383 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2384 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2385
2386 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2387
2388 * frame.c (get_prev_frame): Test prev_p to identify a previously
2389 unwound frame. Initialize prev_p.
2390 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2391 comment.
2392
2393 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2394
2395 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2396 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2397 more comments. Zap dead code.
2398
2399 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2400
2401 * infcmd.c (print_vector_info, print_float_info): Move code that
2402 checks whether the target has any registers and whether there is a
2403 selected frame up, such that it is also used if a target provides
2404 multi-arch definitions of these functions.
2405
2406 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2407
2408 * Makefile.in (DESTDIR): Define.
2409 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2410 prefix.
2411
2412 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2413 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2414
2415 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2416
2417 * i386-linux-tdep.c: Include "reggroups.h".
2418 (i386_linux_register_reggroup_p): New function.
2419 (i386_linux_init_abi): Set register_reggroup_p to
2420 i386_linux_register_reggroup_p.
2421 * i386-tdep.h (i386_register_reggroup_p): Declare.
2422 * i386-tdep.c: Include "reggroups.h".
2423 (i386_init_reggroups): New function.
2424 (i386_add_reggroups): New function.
2425 (i386_register_reggroup_p): New function.
2426 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2427 (_initialize_i386_tdep): Call i386_init_reggroups.
2428 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2429 specific reggroups.
2430
2431 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2432
2433 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2434 request that's available in *BSD.
2435
2436 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2437
2438 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2439 FDOFF_REGNUM.
2440
2441 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2442
2443 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2444 * dummy-frame.c (find_dummy_frame): Rename
2445 generic_find_dummy_frame, make static. Return the dummy frame
2446 instead of the regcache.
2447 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2448 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2449 (dummy_frame_register_unwind): Rename
2450 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2451 * dummy-frame.h (dummy_frame_register_unwind): Rename
2452 generic_call_dummy_register_unwind.
2453
2454 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2455
2456 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2457 except the inclusion of "i386/tm-i386.h", to...
2458 * config/i386/nm-i386v42mp.h: ...here.
2459 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2460
2461 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2462
2463 * Makefile.in (frame.o): Update dependencies.
2464 * blockframe.c (current_frame, frame_obstack_alloc)
2465 (frame_saved_regs_zalloc, get_current_frame)
2466 (set_current_frame, create_new_frame)
2467 (set_unwind_by_pc, get_next_frame)
2468 (flush_cached_frames, reinit_frame_cache)
2469 (frame_saved_regs_register_unwind)
2470 (deprecated_generic_get_saved_register)
2471 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2472 (_initialize_blockframe): Move frame code from here...
2473 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2474 "annotate.h" and "dummy-frame.h".
2475 (_initialize_frame): New function.
2476
2477 2002-11-08 Jim Blandy <jimb@redhat.com>
2478
2479 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2480 when we finish a function a context.
2481 * buildsym.h (outermost_context_p): New macro.
2482 (Bug analyzed by David Edelsohn.)
2483
2484 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2485
2486 * blockframe.c: Include "dummy-frame.h".
2487 (struct dummy_frame, dummy_frame_stack)
2488 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2489 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2490 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2491 (generic_save_call_dummy_addr, generic_pop_current_frame)
2492 (generic_pop_dummy_frame, generic_fix_call_dummy)
2493 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2494 dummy frame code from here...
2495 * dummy-frame.c: ...to here. New file.
2496 * dummy-frame.h: New file.
2497 (generic_call_dummy_register_unwind): Declare.
2498 (generic_find_dummy_frame): Declare.
2499 * Makefile.in (SFILES): Add dummy-frame.c.
2500 (dummy-frame.o): Specify dependencies.
2501 (dummy_frame_h): Define.
2502 (COMMON_OBS): Add dummy-frame.o.
2503 (blockframe.o): Update dependencies.
2504
2505 2002-11-08 Jim Blandy <jimb@redhat.com>
2506
2507 * dwarf2read.c (read_func_scope): Restore local_symbols and
2508 param_symbols after we finish the function context. (Based on a
2509 patch from David Edelsohn.)
2510
2511 2002-11-08 David Carlton <carlton@math.stanford.edu>
2512
2513 * linespec.c (symbol_found): New function.
2514 (minsym_found): New function.
2515 (decode_line_1): Separate out some code into separate functions.
2516
2517 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2518
2519 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2520 the benefit of the interix target.
2521 * i386-tdep.h (i386_frameless_signal_p): Declare.
2522
2523 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2524
2525 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2526 declaration that snuck in from change below.
2527
2528 2002-11-06 Andrew Cagney <cagney@redhat.com>
2529
2530 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2531 all callers.
2532 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2533 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2534 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2535 (i386_mxcsr_regnum_p): new function. Use instead of
2536 MXCSR_REGNUM_P.
2537 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2538 (i386_sse_regnum_p): Declare.
2539 (i386_mxcsr_regnum_p): Declare.
2540 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2541 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2542 (IS_FP_REGNUM): Update definition.
2543 (IS_FPU_CTRL_REGNUM): Update definition..
2544 (IS_SSE_REGNUM): Update definition..
2545 * i386v-nat.c (register_u_addr): Update.
2546 * go32-nat.c (fetch_register): Update.
2547 (store_register): Update.
2548
2549 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2550
2551 Preparation work to convert the hppa targets to multiarch partial.
2552
2553 * hppa-tdep.c: Add new functions replacing macro bodies from
2554 config/pa/tm-hppa.h. These function will be used to initialize
2555 the gdbarch structure. Import some comments from tm-hppa.h,
2556 and place them where appropriate, to avoid loosing them when
2557 we cleanup this file.
2558 (hppa_reg_struct_has_addr): New function.
2559 (hppa_inner_than): New function.
2560 (hppa_stack_align): New function.
2561 (hppa_pc_requires_run_before_use): New function.
2562 (hppa_instruction_nullified): New function.
2563 (hppa_register_byte): New function.
2564 (hppa_register_virtual_type): New function.
2565 (hppa_store_struct_return): New function.
2566 (hppa_cannot_store_register): New function.
2567 (hppa_frame_args_address): New function.
2568 (hppa_frame_locals_address): New function.
2569 (hppa_smash_text_address): New function.
2570 (hppa_coerce_float_to_double): New function. Requires the inclusion
2571 of "language.h".
2572
2573 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2574
2575 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2576 gdbarch-eligible macro to a call to the new associated function
2577 created in hppa-tdep.c.
2578 (INNER_THAN): Likewise.
2579 (STACK_ALIGN): Likewise.
2580 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2581 (INSTRUCTION_NULLIFIED): Likewise.
2582 (REGISTER_BYTE): Likewise.
2583 (REGISTER_VIRTUAL_TYPE): Likewise.
2584 (STORE_STRUCT_RETURN): Likewise.
2585 (CANNOT_STORE_REGISTER): Likewise.
2586 (FRAME_ARGS_ADDRESS): Likewise.
2587 (FRAME_LOCALS_ADDRESS): Likewise.
2588 (SMASH_TEXT_ADDRESS): Likewise.
2589 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2590 (ABOUT_TO_RETURN): Delete, as no longer used.
2591
2592 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2593
2594 * printcmd.c (disassemble_command): Remove obsolete function.
2595 (_initialize_printcmd): Do not create disassemble command here.
2596 * cli/cli-cmds.c (disassemble_command): New function. Implements
2597 disassemble command.
2598 (init_cli_cmds): Create disassemble command here instead.
2599
2600 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2601
2602 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2603
2604 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2605
2606 * regcache.h (regcache_cooked_read_using_offset_hack)
2607 (regcache_cooked_write_using_offset_hack): Delete declarations.
2608 (register_changed): Delete declaration.
2609 * regcache.c (regcache_cooked_read_using_offset_hack)
2610 (regcache_cooked_write_using_offset_hack): Delete functions.
2611 (cooked_xfer_using_offset_hack): Delete function.
2612 (register_changed): Delete function.
2613
2614 2002-11-07 Jim Blandy <jimb@redhat.com>
2615
2616 * macroscope.c: #include "complaints.h".
2617 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2618 but not in the macro table.
2619 * Makefile.in (macroscope.o): Record dependency.
2620
2621 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2622
2623 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2624
2625 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2626
2627 * regcache.c (deprecated_registers_fetched): Update.
2628 * regcache.h (deprecated_registers_fetched): Rename
2629 registers_fetched.
2630 * remote-vxsparc.c (vx_read_register): Update.
2631 * remote-vxmips.c (vx_read_register): Update.
2632 * remote-vx68.c (vx_read_register): Update.
2633 * irix5-nat.c (fetch_core_registers): Update.
2634 * mipsm3-nat.c (fetch_inferior_registers): Update.
2635 * sun3-nat.c (fetch_inferior_registers): Update.
2636 * symm-nat.c (fetch_inferior_registers): Update.
2637 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2638 (fetch_core_registers): Update.
2639 (fetch_kcore_registers): Update.
2640 * mips-nat.c (fetch_inferior_registers): Update.
2641 * corelow.c (get_core_registers): Update.
2642 * a68v-nat.c (fetch_inferior_registers): Update.
2643
2644 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2645
2646 Put in place the framework necessary for multiarching the hppa targets.
2647 * hppa-tdep.c (hppa_gdbarch_init): New function.
2648 (hppa_dump_tdep): New function.
2649 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2650 tdep structure dumper.
2651 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2652 until the multi-arching conversion has partially been completed.
2653
2654 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2655
2656 * valops.c (value_assign): Merge lval_register case into
2657 lval_reg_frame_relative. Use frame_register and
2658 regcache_cooked_write instead of get_saved_register and
2659 write_register_bytes. After flushing the register cache, try to
2660 re-select the selected frame.
2661
2662 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2663
2664 * regcache.h (deprecated_register_valid): Rename register_valid.
2665 * regcache.c: Update.
2666 * ia64-aix-nat.c: Update.
2667 * i386gnu-nat.c: Update.
2668 * alpha-nat.c: Update.
2669 * sparc-nat.c: Update.
2670 * lynx-nat.c: Update.
2671 * remote-mips.c: Update.
2672
2673 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2674
2675 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2676 to end of file, to be more consistent with the pratice followed
2677 by other targets.
2678
2679 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2680
2681 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2682 (print_float_info): Print registers in float_reggroup.
2683 (print_vector_info): Print registers in vector_reggroup.
2684 (default_print_registers_info): When all, print registers in
2685 all_reggroup. Otherwize, print registers in general_reggroup.
2686 (registers_info): Rewrite. Add support for register groups.
2687 Eliminate a goto.
2688
2689 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2690
2691 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2692 ages.
2693 (symtab_symbol_info): Remove eons old ifdeffed out code.
2694 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2695 command.
2696
2697 2002-11-06 Theodore A. Roth <troth@openavr.org>
2698
2699 * c-exp.y: Add missing semi-colons.
2700 * f-exp.y: Add missing semi-colons.
2701 * m2-exp.y: Add missing semi-colons.
2702 * p-exp.y: Add missing semi-colons.
2703 Add empty action to start rule to avoid a type clash error when
2704 building with bison >= 1.50.
2705
2706 2002-11-06 Jim Blandy <jimb@redhat.com>
2707
2708 * macrotab.h (struct macro_source_file): Doc fix.
2709
2710 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2711
2712 * varobj.c (child_exists, cplus_number_of_children): Change
2713 STREQ macro references to strcmp.
2714 (cplus_name_of_child): Change code to handle the fact that
2715 fields are not necessarily contiguous with regards to their
2716 access control. This is a fix for PR gdb/792.
2717
2718 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2719
2720 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2721 * gdbarch.h, gdbarch.c: Regnerate.
2722 * frame.h (frame_register): Declare.
2723 * frame.c (frame_register): New function.
2724 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2725 GET_SAVED_REGISTER, otherwize call
2726 generic_unwind_get_saved_register.
2727 (frame_register_read): Use frame_register instead of
2728 get_saved_register.
2729
2730 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2731
2732 From Jim Ingham <jingham@apple.com>:
2733 * event-top.c (gdb_disable_readline): New function.
2734 (_initialize_event_loop): Move comment.
2735
2736 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2737
2738 * event-loop.c (start_event_loop): Add comment.
2739 Update copyright.
2740
2741 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2742
2743 * infcmd.c (default_print_registers_info): Do not call
2744 PRINT_REGISTER_HOOK.
2745
2746 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2747
2748 * sparc-tdep.c (sparc_print_register_hook): Make static.
2749 (sparc_print_registers_info): New function.
2750 (sparc_do_registers_info): New function.
2751 (sparclet_print_registers_info): New function.
2752 (sparclet_do_registers_info): New function.
2753 (do_sparc_print_registers_info): New function.
2754 (sparc_print_registers): New static function, clone of infcmd.c's
2755 default_print_registers_info.
2756 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2757 (sparclet_do_registers_info): Declare.
2758 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2759 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2760 Re-define.
2761 (sparc_do_registers_info): Declare.
2762 (PRINT_REGISTER_HOOK): Delete macro.
2763 (sparc_print_register_hook): Delete declaration.
2764
2765 2002-11-05 David Carlton <carlton@math.stanford.edu>
2766
2767 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2768 functions.
2769 (lookup_symbol_aux_local): New function.
2770 (lookup_symbol_aux_symtabs): New function.
2771 (lookup_symbol_aux_psymtabs): New function.
2772
2773 2002-11-05 David Carlton <carlton@math.stanford.edu>
2774
2775 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2776 previous values of 'objfile' and 'block'.
2777
2778 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2779
2780 * values.c (value_change_enclosing_type): Set
2781 enclosing_type field correctly also for the case where
2782 more memory needs to be allocated.
2783
2784 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2785
2786 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2787 of puts_filtered.
2788
2789 * i387-tdep.c (i387_print_float_info): Replace calls to
2790 register_read and deprecated_read_register_gen with calls to
2791 frame_register_read, and make the necessary adjustments to the
2792 surrounding code.
2793
2794 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2795
2796 * gdbarch.sh (register_reggroup_p): Allow default value.
2797 * gdbarch.h, gdbarch.c: Regenerate.
2798
2799 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2800
2801 * regcache.h: Add coment indicating replacements for deprecated
2802 functions.
2803
2804 2002-11-02 Andrew Cagney <cagney@redhat.com>
2805
2806 * reggroups.h, reggroups.c: New files.
2807 * regcache.c: Include "reggroups.h".
2808 (enum regcache_dump_what): Add `regcache_dump_groups'.
2809 (regcache_dump): Contract size of the "Type" column. When
2810 specified, dump the register's groups.
2811 (maintenance_print_register_groups): New function.
2812 (_initialize_regcache): Add command `maint print register-groups'.
2813 * Makefile.in (COMMON_OBS): Add reggroups.o
2814 (SFILES): Add reggroups.c.
2815 (reggroups_h): Define.
2816 (regcache.o, gdbarch.o): Update dependencies.
2817 (reggroups.o): Specify dependencies.
2818 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2819 Add opaque declaration for `struct reggroup' in generated .h file.
2820 Include "reggroups.h" in generated .c file.
2821 gdbarch.h, gdbarch.c: Re-generate.
2822
2823 2002-11-02 Andrew Cagney <cagney@redhat.com>
2824
2825 * regcache.h (deprecated_read_register_gen): Rename
2826 read_register_gen.
2827 (deprecated_write_register_gen): Rename write_register_gen.
2828 * i387-tdep.c: Update.
2829 * x86-64-linux-nat.c: Update
2830 * wince.c: Update.
2831 * thread-db.c: Update.
2832 * win32-nat.c: Update.
2833 * mips-tdep.c: Update.
2834 * d10v-tdep.c: Update.
2835 * cris-tdep.c: Update.
2836 * remote-sim.c: Update.
2837 * remote-rdi.c: Update.
2838 * remote-rdp.c: Update.
2839 * frame.c: Update.
2840 * target.c: Update.
2841 * blockframe.c: Update.
2842 * x86-64-tdep.c: Update.
2843 * xstormy16-tdep.c: Update.
2844 * sh-tdep.c: Update.
2845 * s390-tdep.c: Update.
2846 * rs6000-tdep.c: Update.
2847 * sparc-tdep.c: Update.
2848 * i386-tdep.c: Update.
2849 * dwarf2cfi.c: Update.
2850 * regcache.c: Update.
2851
2852 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2853
2854 New interix-specific files:
2855 * config/i386/nm-interix.h: New file.
2856 * config/i386/interix.mh: New file.
2857 * config/i386/interix.mt: New file.
2858 * i386-interix-nat.c: New file.
2859 * i386-interix-tdep.c: New file.
2860
2861 2002-11-01 Andrew Cagney <cagney@redhat.com>
2862
2863 * frame.h (deprecated_generic_get_saved_register): Rename
2864 generic_get_saved_register.
2865 * blockframe.c (deprecated_generic_get_saved_register): Update.
2866 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2867 (xstormy16_frame_saved_register): Update.
2868 * sh-tdep.c (sh_gdbarch_init): Update.
2869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2870 * ia64-tdep.c (ia64_get_saved_register): Update.
2871 * cris-tdep.c (cris_gdbarch_init): Update.
2872 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2873 * arm-tdep.c (arm_gdbarch_init): Update.
2874
2875 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2876
2877 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2878
2879 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2880
2881 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2882 trampolines in sigaction.
2883
2884 2002-10-31 Andrew Cagney <cagney@redhat.com>
2885
2886 * h8300-tdep.c: Include "gdb_assert.h".
2887 (h8300_print_register): Add gdbarch, file and frame parameters.
2888 Use frame_read_unsigned_register to read the register's value.
2889 Use fprintf_filtered to display output.
2890 (h8300_print_registers_info): Replace h8300_do_registers_info.
2891 (h8300_gdbarch_init): Set print_registers_info.
2892
2893 2002-10-31 Andrew Cagney <cagney@redhat.com>
2894
2895 * frame.c (frame_read_unsigned_register): New function.
2896 (frame_read_signed_register): New function.
2897 * frame.h (frame_read_unsigned_register): Declare.
2898 (frame_read_signed_register): Declare.
2899
2900 2002-10-31 Andrew Cagney <cagney@redhat.com>
2901
2902 * h8500-tdep.c (h8500_print_registers_info): New static function,
2903 clone of infcmd.c's default_print_registers_info.
2904 (h8500_do_registers_info): New funtion.
2905 (h8500_print_register_hook): Rename print_register_hook, make
2906 static.
2907
2908 * config/h8500/tm-h8500.h: Update copyright.
2909 (DEPRECATED_DO_REGISTERS_INFO): Define.
2910 (h8500_do_registers_info: Declare.
2911 (PRINT_REGISTER_HOOK): Delete macro.
2912 (print_register_hook): Delete function.
2913
2914 2002-10-31 Andrew Cagney <cagney@redhat.com>
2915
2916 * z8k-tdep.c (z8k_print_register_hook): Make static.
2917 (z8k_print_registers_info): New static function, clone of
2918 infcmd.c's default_print_registers_info.
2919 (z8k_do_registers_info): New function. Wrap
2920 z8k_print_registers_info.
2921 * config/z8k/tm-z8k.h: Update copyright.
2922 (PRINT_REGISTER_HOOK): Delete macro.
2923 (z8k_print_register_hook): Delete declaration.
2924 (DEPRECATED_DO_REGISTERS_INFO): Define.
2925 (z8k_do_registers_info): Declare.
2926
2927 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2928
2929 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2930 as this is already provided by value.h, and was actually causing
2931 a compilation error because of a conflict in parameter type
2932 declaration due to a missing const keyword.
2933 (low_text_segment_addres): Fix a compilation warning.
2934
2935 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2936
2937 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2938 registers without a name.
2939 (mips_linux_cannot_store_register): Don't store registers without
2940 a name.
2941
2942 2002-10-28 David Carlton <carlton@math.stanford.edu>
2943
2944 * symtab.c (find_addr_symbol): Delete. (It was already commented
2945 out.)
2946 * symtab.h: Delete prototype for find_addr_symbol.
2947
2948 2002-10-26 Andrew Cagney <cagney@redhat.com>
2949
2950 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2951 DO_REGISTERS_INFO.
2952 gdbarch.h, gdbarch.c: Re-generate.
2953 * infcmd.c (default_print_registers_info): Update reference.
2954 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2955 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2956 * sh-tdep.c (sh_gdbarch_init): Ditto.
2957 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2958 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2959
2960 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2961
2962 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2963 cfi_init_extra_frame_info.
2964 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2965 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2966
2967 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2968 target where necessary. Add more comments and remove the ones
2969 that don't provide any useful information.
2970
2971 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2972 deprecated_read_register_dummy with
2973 frame_unwind_unsigned_register.
2974
2975 * i386-tdep.c (i386_extract_struct_value_address): Use
2976 regcache_raw_read_unsigned instead of
2977 regcache_cooked_read_unsigned since we know that the register
2978 we're reading isn't a pseudo register. Rename variable 'val' into
2979 the more descriptive 'addr'.
2980
2981 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2982 (x86_64_push_return_address): Add comment.
2983 (x86_64_pop_frame): Make static.
2984 (examine_argument): Clarify comment.
2985 (x86_64_skip_prologue): Make prolog_expact variable static.
2986
2987 * dwarf2cfi.c: Fix some formatting problems.
2988 (context_cpy, read_encoded_pointer): Clarify comments.
2989
2990 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2991 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2992 i386 target back into x86_64_gdbarch_init. Add some comments and
2993 remove meaningless ones.
2994
2995 2002-10-25 Andrew Cagney <cagney@redhat.com>
2996
2997 * complaints.h (struct deprecated_complaint): Rename `struct
2998 complaint'.
2999 * complaints.c (complain): Update.
3000 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3001 incorrect comment indicating that "symfile.h" was being included
3002 for the `struct complaint' definition.
3003 * remote-vx.c: Update.
3004 * objc-lang.c: Update.
3005 * xcoffread.c: Update.
3006 * hpread.c: Update.
3007 * mdebugread.c: Update.
3008 * stabsread.c: Update.
3009 * dwarf2read.c: Update.
3010 * dwarfread.c: Update.
3011 * elfread.c: Update.
3012 * coffread.c: Update.
3013 * stabsread.h: Update.
3014 * dbxread.c: Update.
3015 * buildsym.c: Update.
3016 * gdbtypes.c: Update.
3017 * macrotab.c: Update.
3018
3019 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3020
3021 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3022 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3023 (x86_64_init_abi): ...new function.
3024
3025 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3026 * i386v-nat.c: Include "i386-tdep.h".
3027
3028 2002-10-25 Andrew Cagney <cagney@redhat.com>
3029
3030 * gdbtypes.c (address_space_name_to_int): Update.
3031 (address_space_int_to_name): Update.
3032 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3033 multi-arch predicate.
3034 (address_class_name_to_type_flags): Ditto.
3035 * gdbarch.h, gdbarch.c: Re-generate.
3036
3037 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3038
3039 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3040
3041 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3042
3043 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3044
3045 * symtab.h (INIT_SAL): Delete macro.
3046 (init_sal): Export.
3047 * symtab.c (init_sal): New function.
3048
3049 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3050 to init_sal function call.
3051 (find_sal_from_funcs_and_line): Ditto.
3052 (all_sals_for_line): Ditto.
3053 * breakpoint.c (create_internal_breakpoint): Ditto.
3054 (create_fork_vfork_event_catchpoint): Ditto.
3055 (create_exec_event_catchpoint): Ditto.
3056 (parse_breakpoint_sals): Ditto.
3057 (watch_command_1): Ditto.
3058 (handle_gnu_4_16_catch_command): Ditto.
3059 (clear_command): Ditto.
3060 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3061 * infcmd.c (run_stack_dummy): Ditto.
3062 * infrun.c (process_event_stop_test): Ditto.
3063 (check_sigtramp2): Ditto.
3064 (step_over_function): Ditto.
3065 * linespec.c (decode_line_2): Ditto.
3066 (decode_line_1): Ditto.
3067 * source.c (line_info): Ditto.
3068 * symtab.c (find_pc_sect_line): Ditto.
3069
3070 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3071
3072 * dwarf2cfi.c (struct context)
3073 (struct context_reg): Moved to dwarf2cfi.h
3074 (context_alloc, frame_state_alloc, context_cpy):
3075 Made extern instead of static, removed prototypes.
3076 * dwarf2cfi.h (struct context)
3077 (struct context_reg): New, moved from dwarf2cfi.c
3078 (context_alloc, frame_state_alloc, context_cpy):
3079 New prototypes.
3080 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3081 Changed from static to extern.
3082 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3083 (LINUX_SIGCONTEXT_FP_OFFSET)
3084 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3085 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3086 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3087 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3088 set_gdbarch_*() calls now use x86-64 specific functions
3089 instead of DWARF2 CFI ones.
3090 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3091 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3092 (x86_64_init_extra_frame_info): New prototypes.
3093
3094 2002-10-23 David Carlton <carlton@math.stanford.edu>
3095
3096 * linespec.c: #include "parser-defs.h".
3097 Delete prototype for find_template_name_end.
3098 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3099
3100 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3101
3102 * NEWS: add recent mi fixes.
3103 * varobj.c (struct varobj): Add new "updated" flag.
3104 (new_variable): Default "updated" flag to 0.
3105 (varobj_set_value): Set "updated" flag to 1 if value
3106 changes.
3107 (varobj_update): Check varobj "updated" flag before
3108 comparing old and refreshed values. Fix for
3109 PR gdb/702.
3110
3111 2002-10-23 David Carlton <carlton@math.stanford.edu>
3112
3113 * parse.c (parse_exp_1): Use BLOCK_START.
3114 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3115 SYMBOL_BLOCK_VALUE.
3116 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3117
3118 2002-10-23 David Carlton <carlton@math.stanford.edu>
3119
3120 * symtab.c: Delete cplusplus_hint.
3121 Delete prototype for find_template_name_end.
3122
3123 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3124
3125 * symtab.h: Update comment.
3126
3127 2002-10-23 Michael Snyder <msnyder@redhat.com>
3128
3129 * printcmd.c (address_info): Restore quotes in output.
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_demangled_name): New function.
3135 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3136 turning most of it into a function.
3137 (symbol_demangled_name): Export.
3138
3139 2002-10-23 Michael Snyder <msnyder@redhat.com>
3140
3141 * valops.c (value_of_local): Restore quotes in error message.
3142
3143 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3144
3145 * symtab.c (symbol_init_language_specific): New function.
3146 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3147 turning most of it into a function.
3148 (symbol_init_language_specific): Export.
3149
3150 2002-10-23 David Carlton <carlton@math.stanford.edu>
3151
3152 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3153 (dwarf_attr_name): Ditto.
3154 (dwarf_type_encoding_name): Ditto.
3155 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3156 (process_die): Handle DW_TAG_namespace,
3157 DW_TAG_imported_declaration, DW_TAG_imported_module.
3158 (read_namespace): New function.
3159
3160 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3161
3162 * configure.in: Define NEW_PROC_API on Interix too.
3163 * configure: Regenerate.
3164
3165 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3166
3167 * configure: Regenerate using the proper version of autoconf.
3168
3169 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3170
3171 * findvar.c (read_var_value): Temporarily disable TLS code, until
3172 complete TLS support is added.
3173
3174 2002-10-21 Jim Blandy <jimb@redhat.com>
3175 Elena Zannoni <ezannoni@redhat.com>
3176
3177 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3178 for thread local storage locations.
3179 (struct symbol): Add objfile field.
3180 (SYMBOL_OBJFILE): Define.
3181 * dwarf2read.c (is_thread_local): New static variable.
3182 (new_symbol): If variable is in thread local fill in address class
3183 and objfile appropriately.
3184 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3185 stack operation.
3186 * printcmd.c (address_info): Print the information for thread
3187 local storage variable.
3188 * findvar.c (read_var_value): In case of thread local variable,
3189 defer to the target vector code to compute address.
3190
3191 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3192
3193 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3194 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3195
3196 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3197
3198 * symtab.h (address_class): Rename
3199 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3200 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3201 * printcmd.c (address_info): Ditto.
3202 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3203
3204 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3205
3206 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3207 DBREG_DRX macro to acces debug registers.
3208
3209 * Makefile.in (i386obsd-tdep.o): New target.
3210
3211 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3212 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3213
3214 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3215 * config/i386/obsd.mt: New file.
3216 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3217 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3218 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3219 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3220 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3221 * i386obsd-tdep.c: New file.
3222
3223 2002-10-19 Adam Fedor <fedor@gnu.org>
3224
3225 * objc-exp.y (name_not_typename): Fix invalid comment.
3226
3227 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3228
3229 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3230 to allocate partial syms and macro byte caches.
3231
3232 2002-10-18 David Carlton <carlton@math.stanford.edu>
3233
3234 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3235
3236 2002-10-18 Adam Fedor <fedor@gnu.org>
3237
3238 * stabsread.c (find_name_end): New function.
3239 (define_symbol): Use it.
3240
3241 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3242
3243 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3244 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3245 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3246 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3247
3248 2002-10-17 David Carlton <carlton@math.stanford.edu>
3249
3250 * symfile.h: Add opaque declaration for struct obstack.
3251 Declare obsavestring to take a const char *.
3252 * symfile.c (obsavestring): Make first argument a const char *.
3253
3254 2002-10-16 Adam Fedor <fedor@gnu.org>
3255
3256 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3257 names when matching breakpoints in current file.
3258
3259 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3260
3261 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3262 (read_tag_pointer_type): Add address class support.
3263 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3264 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3265 New methods.
3266 * gdbarch.h, gdbarch.c: Regenerate.
3267 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3268 (make_type_with_address_space, recursive_type_dump): Add address
3269 class support.
3270 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3271 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3272 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3273
3274 2002-10-16 Klee Dienes <kdienes@apple.com>
3275
3276 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3277 to get the last character of a char[] buffer, not
3278 name[sizeof(vptr_name)-1].
3279
3280 2002-10-14 Adam Fedor <fedor@gnu.org>
3281
3282 * symtab.h: New objc_specific struct.
3283 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3284 (SYMBOL_DEMANGLED_NAME): Likewise.
3285
3286 2002-10-14 Adam Fedor <fedor@gnu.org>
3287
3288 * symfile.c (init_filename_language_table): Add ObjC file extension.
3289
3290 2002-10-14 Adam Fedor <fedor@gnu.org>
3291
3292 * utils.c (puts_filtered_tabular): New function.
3293 (fprintf_symbol_filtered): Get ObjC demangled name.
3294 * defs.h (puts_filtered_tabular): Declared.
3295
3296 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3297
3298 * c-lang.h (c_type_print_varspec_prefix): Delete.
3299 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3300 ``need_post_space'' parameter. Adjust all callers.
3301
3302 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3305 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3306 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3307 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3308
3309 2002-10-13 Adam Fedor <fedor@gnu.org>
3310
3311 * source.c (print_source_lines): Update comments.
3312
3313 2002-10-13 Adam Fedor <fedor@gnu.org>
3314
3315 * valops.c (value_of_local): New function.
3316 (value_of_this): Use it.
3317 * value.h (value_of_local): Declared.
3318
3319 2002-10-13 Adam Fedor <fedor@gnu.org>
3320
3321 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3322 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3323
3324 2002-10-12 Adam Fedor <fedor@gnu.org>
3325
3326 * language.c (binop_result_type): Add language_objc to case.
3327 (integral_type): Likewise.
3328 (character_type): Likewise.
3329 (string_type): Likewise.
3330 (boolean_type): Likewise.
3331 (structured_type): Likewise.
3332 (binop_type_check): Likewise.
3333
3334 2002-10-11 Adam Fedor <fedor@gnu.org>
3335
3336 * printcmd.c (address_info): Print 'self' for ObjC.
3337
3338 2002-10-11 Adam Fedor <fedor@gnu.org>
3339
3340 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3341 OP_SELF.
3342
3343 2002-10-11 Adam Fedor <fedor@gnu.org>
3344
3345 * language.h (CAST_IS_CONVERSION): Add language_objc.
3346
3347 2002-10-11 Adam Fedor <fedor@gnu.org>
3348
3349 * defs.h (enum language): Add language_objc.
3350
3351 2002-10-11 Klee Dienes <kdienes@apple.com>
3352
3353 * corefile.c (read_memory_typed_address): New function.
3354 * gdbcore.h (read_memory_typed_address): Add prototype.
3355 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3356 to read a value destined for a CORE_ADDR, not read_memory_integer.
3357 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3358 (f77_get_dynamic_lowerbound): Ditto.
3359
3360 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3361
3362 * utils.c (string_to_core_addr): After turning string into
3363 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3364 which will do necessary sign-extension, etc.
3365
3366 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3367
3368 * c-exp.y (THIS): Delete token and grammar rule.
3369 (yylex): Don't return THIS.
3370 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3371 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3372 * demangle.c (cplus_markers): Update comment. Put '$'
3373 first. Remove CPLUS_MARKER.
3374 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3375 * jv-exp.y (THIS): Delete token and grammar rule.
3376 (yylex): Don't return THIS.
3377 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3378 * objc-exp.y (THIS): Delete token and grammar rule.
3379 (yylex): Don't return THIS.
3380 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3381 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3382 (read_member_functions): Likewise for opname.
3383 (read_tilde_fields): Use is_cplus_marker.
3384
3385 * defs.h (CPLUS_MARKER): Don't define.
3386 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3387 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3388 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3389 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3390 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3391
3392 * config/i386/tm-i386v4.h: Delete file.
3393 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3394 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3395 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3396 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3397 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3398 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3399 * config/i386/i386v4.mt (TM_FILE): Likewise.
3400 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3401
3402 2002-10-10 Marko Mlinar <markom@opencores.org>
3403
3404 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3405 accidentially not commited 2002-10-09
3406 * gdbarch.h, gdbarch.c: Re-generate.
3407
3408 2002-10-09 Marko Mlinar <markom@opencores.org>
3409
3410 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3411 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3412 * gdbarch.h, gdbarch.c: Re-generate.
3413
3414 2002-10-08 Petr Sorfa <petrs@caldera.com>
3415
3416 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3417
3418 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3419 so we can work on more than one compilation unit at a time. This
3420 helps prepare GDB to handle inter-CU die references.
3421 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3422 the code to be defined before struct comp_unit_head.
3423 (comp_unit_head): Added new members - offset, cu_head,
3424 begin_die, next and dwarf2_abbrevs.
3425 (dwarf2_abbrevs): Removed single static var; now member of
3426 struct comp_unit_head.
3427 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3428 members.
3429 (psymtab_to_symtab_1): Changed to work with the new
3430 struct comp_unit_head.
3431 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3432 constructs the dwarf2_abbrevs[] inside the cu_header.
3433 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3434 dwarf2_abbrev table to clean up.
3435 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3436 handling of dwarf2_abbrevs inside the cu_header.
3437 (read_partial_die): Now supports the call to the new
3438 dwarf2_lookup_abbrev.
3439 (read_full_die): Now supports the call to the new
3440 dwarf2_lookup_abbrev.
3441
3442 2002-10-06 Christopher Faylor <cgf@redhat.com>
3443
3444 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3445 insure that shell variables, such as "transformed_name" are propagated
3446 to later shell statements in rule.
3447
3448 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3449
3450 * config/i386/nm-i386sco.h: Add protection against
3451 multiple-inclusion. Include "i386/nm-i386v.h".
3452 (REGISTER_U_ADDR): Remove define.
3453 (i386_register_u_addr): Remove prototype.
3454
3455 2002-10-04 Michael Snyder <msnyder@redhat.com>
3456
3457 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3458 before treating it as a single-step event.
3459
3460 2002-10-03 Adam Fedor <fedor@gnu.org>
3461
3462 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3463 (objc_demangle): Remove assignment in if statements, Replace
3464 free with xfree.
3465 (add_msglist): Likewise.
3466 (end_msglist): Likewise.
3467 (complare_selectors): Likewise.
3468 (selectors_info): Likewise.
3469 (compare_classes): Likewise.
3470 (classes_info): Likewise.
3471 (print_object_command): Likewise.
3472 (find_objc_msgcall_submethod): Replace PTR with void *.
3473 * objc-lang.h: Remove check for __STDC__.
3474
3475 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3476
3477 * ui-out.h (ui_out_field_fmt_int): New prototype.
3478 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3479 of field width and alignment.
3480 * stack.c (print_frame_info_base): When printing frame level, use
3481 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3482 PR gdb/192
3483
3484 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3485
3486 * MAINTAINERS: Add self to Write After Approval list.
3487
3488 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3489
3490 * infcmd.c (interrupt_target_command_wrapper): Delete.
3491 (interrupt_target_command): Make non static.
3492 (nofp_registers_info): Make static.
3493 * stack.c (return_command_wrapper): Delete.
3494 (return_command): Make non static.
3495
3496 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3497
3498 * event-top.c (gdb_setup_readline): New function. Code moved from
3499 _initialize_event_loop().
3500 (_initialize_event_loop): Call gdb_setup_readline().
3501
3502 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3503
3504 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3505 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3506 * gdbarch.h, gdbarch.c: Re-generate.
3507
3508 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3509
3510 Fix PR gdb/778
3511 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3512 before recursing.
3513 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3514 of fill_in_vptr_fieldno.
3515
3516 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3517
3518 * inferior.h (registers_info, stepi_command, nexti_command,
3519 continue_command, interrupt_target_command): Export from infcmd.c.
3520 * frame.h (args_info, selected_frame_level_changed_hook,
3521 return_command): Export from stack.c.
3522 * v850ice.c (stepi_command, nexti_command, continue_command): use
3523 prototypes from inferior.h.
3524 * tracepoint.c (registers_info, args_info, locals_info): Use
3525 prototypes from frame.h and inferior.h.
3526 * Makefile.in (mi-main.o): Add dependency on frame.h.
3527
3528 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3529
3530 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3531 value in register 3 adjusted by ppc_gp0_regnum.
3532
3533 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3534
3535 2002-10-02 Marko Mlinar <markom@opencores.org>
3536
3537 * MAINTAINERS: Add myself to the Write After Approval list.
3538
3539 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3540
3541 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3542 of the section for the N64 ABI, fixed.
3543
3544 * config/mips/tm-irix6.h: Include solib.h.
3545
3546 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3547
3548 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3549 GNU operators.
3550
3551 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3552
3553 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3554 and that "mi0" syntax has been removed.
3555
3556 2002-09-30 David Carlton <carlton@math.stanford.edu>
3557
3558 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3559 * ppc-sysv-tdep.c: #include "gdb_string.h".
3560 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3561 pacify GCC.
3562
3563 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3564
3565 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3566 "vrsave"'s register number.
3567
3568 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3569
3570 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3571 use frame_unwind_signed_register to obtain the PC.
3572 (mips_frame_chain): Handle a generic dummy frame.
3573 (mips_init_extra_frame_info): When a generic dummy frame, don't
3574 re-compute the frame base.
3575 (mips_pop_frame): Handle generic dummy frames.
3576 (mips_gdbarch_init): When generic dummy frames, set
3577 use_generic_dummy_frames, push_dummy_frame to
3578 generic_push_dummy_frame, pc_in_call_dummy to
3579 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3580 generic_save_dummy_frame_tos.
3581
3582 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3583
3584 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3585 against TOP when TOP was explictly set.
3586 (generic_push_dummy_frame): Set TOP to zero.
3587
3588 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * event-loop.c (start_event_loop): Rename variable 'result' to
3591 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3592
3593 2002-09-30 Keith Seitz <keiths@redhat.com>
3594
3595 * gdb-events.sh (selected_thread_changed): New event.
3596 * gdb-events.c: Regenerated.
3597 * gdb-events.h: Regenerated.
3598
3599 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3600
3601 * MAINTAINERS: Add self to Write After Approval list.
3602
3603 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3604
3605 * disasm.c: New file.
3606 * disasm.h: New file.
3607 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3608 (compare_lines): Ditto.
3609 (dump_insns): Ditto.
3610 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3611 argument.
3612 (do_assembly_only): Ditto.
3613 (do_disassembly): Renamed to gdb_disassembly and moved to
3614 disasm.c. Sdded uiout argument.
3615 * Makefile.in: Add new files. Reorder SFILES list. Update
3616 dependencies. Include libgdb.a later in the insight executable.
3617
3618 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3619
3620 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3621 bfd/elf64-alpha-fbsd.c.
3622
3623 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3624
3625 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3626 i386gnu-tdep.c.
3627
3628 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3629
3630 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3631 __FUNCTION__.
3632 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3633 function name.
3634 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3635 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3636 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3637 (S_msg_sig_post_reply): Ditto.
3638
3639 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3640
3641 * sh-tdep.c (sh_use_struct_convention): Use definition according
3642 to ABI.
3643 (sh_push_arguments): Store in register with correct endianess.
3644 (sh_default_store_return_value): Ditto.
3645 (sh_gdbarch_init): Set sizeof long double to 8.
3646
3647 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3648
3649 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3650 Fix some whitespace problems.
3651
3652 2002-09-27 David Carlton <carlton@math.stanford.edu>
3653
3654 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3655 (mcore-tdep.o): Ditto.
3656 (ns32k-tdep.o): Ditto.
3657 (ns32knbsd-tdep.o): Ditto.
3658 (sh3-rom.o): Ditto.
3659 (vax-tdep.o): Ditto.
3660 * cris-tdep.c: #include "gdb_string.h"
3661 * mcore-tdep.c: Ditto.
3662 * ns32k-tdep.c: Ditto.
3663 * ns32knbsd-tdep.c: Ditto.
3664 * sh3-rom.c: Ditto.
3665 * vax-tdep.c: Ditto.
3666
3667 2002-09-27 David Carlton <carlton@math.stanford.edu>
3668
3669 * config/djgpp/fnchange.lst: Add entries for
3670 gdb/testsuite/gdb.c++/m-static files.
3671
3672 2002-09-27 Jim Wilson <wilson@redhat.com>
3673
3674 * MAINTAINERS: Add myself to the Write After Approval list.
3675
3676 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3677
3678 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3679
3680
3681 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3682
3683 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3684 frame.
3685
3686 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3687
3688 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3689 (rs6000_struct_return_address): Delete variable.
3690 (rs6000_store_struct_return): Update.
3691 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3692 deprecated_extract_struct_value_address.
3693 (rs6000_frame_align): New function.
3694 (rs6000_gdbarch_init): Set frame_align.
3695
3696 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3697
3698 From Grace Sainsbury <graces@redhat.com>:
3699 * Makefile.in (gdbtk-main.o): New target.
3700 (gdb.o): New target.
3701 (main_h): Define.
3702 (main.o): Update dependencies.
3703 (gdb$(EXEEXT)): Add gdb.o.
3704 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3705 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3706 (SUBDIR_GDBTK_CLEAN): Set.
3707 (install-gdbtk): Install the insight binary.
3708 (uninstall-gdbtk): New target.
3709 (all-gdbtk, clean-gdbtk): New rule.
3710 * top.c (use_windows): Default to zero.
3711 * main.c: Include "main.h".
3712 (main): Delete.
3713 (struct captured_main_args): Delete.
3714 (gdb_main): New function.
3715 * main.h: New file.
3716 * gdb.c: New File.
3717
3718 2002-09-25 Andrew Cagney <cagney@redhat.com>
3719
3720 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3721 (frame_map_regnum_to_name): New function.
3722 (frame_map_name_to_regnum): New function.
3723 * frame.h (frame_map_name_to_regnum): Declare.
3724 (frame_map_regnum_to_name): Declare.
3725 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3726 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3727 * parse.c: Do not include "builtin-regs.h".
3728 (target_map_name_to_register): Delete function.
3729 (write_dollar_variable): Use frame_map_name_to_regnum.
3730 * parser-defs.h (target_map_name_to_register): Delete declaration.
3731 * expprint.c: Include "frame.h".
3732 (print_subexp): Use frame_map_regnum_to_name.
3733 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3734 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3735
3736 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3737
3738 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3739 wasn't saved, and the next innermost frame is a dummy, return the
3740 dummy frame's link register.
3741
3742 2002-09-24 Jim Blandy <jimb@redhat.com>
3743
3744 Fix from Paul Breed:
3745 * main.c (captured_main): Add a `break' after the case for 'b'.
3746
3747 2002-09-24 Keith Seitz <keiths@redhat.com>
3748
3749 * varobj.c (c_type_of_child): Use get_target_type instead
3750 of TYPE_TARGET_TYPE.
3751
3752 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3753
3754 * source.c (get_current_or_default_source_symtab_and_line): Remove
3755 function.
3756 (set_default_source_symtab_and_line): New function. Attempts to
3757 determine a source file to list lines from if one is not currently
3758 defined.
3759 (get_current_source_symtab_and_line): Initialize sal.pc and
3760 sal.end fields.
3761 (set_current_source_symtab_and_line): Mark argument as const.
3762 * source.h: Update declarations and comments.
3763 * linespec.c (decode_line_1): Replace call to removed routine above.
3764 * stack.c (print_frame_info_base): Ditto.
3765 * cli/cli-cmds.c (edit_command): Ditto.
3766 (list_command): Ditto.
3767
3768 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3769
3770 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3771 sal.pc and sal.end fields.
3772 (get_current_or_default_source_symtab_and_line): Ditto.
3773 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3774 so we do not cause a new source symtab to be searched for (reverting an
3775 unintentional change from the 2002-09-20 patch).
3776 * scm-lang.c (scm_unpac): Ditto.
3777
3778 2002-09-21 Andrew Cagney <cagney@redhat.com>
3779
3780 * complaints.c (symfile_explanations): Remove new-line from
3781 ``isolated_message''.
3782 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3783 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3784
3785 2002-09-20 Nick Clifton <nickc@redhat.com>
3786
3787 * NEWS: Announce that V850EA ISA is no longer supported.
3788 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3789
3790 2002-09-20 David Carlton <carlton@math.stanford.edu>
3791
3792 * Makefile.in (c-lang.o): Correct dependencies.
3793 (utils.o): Gather dependencies.
3794 (charset.o): Move.
3795 * c-lang.c: #include "gdb_string.h"
3796
3797 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3798
3799 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3800 * cli/cli-cmds.c (list_command): New function. Implements the new
3801 cli edit command.
3802 (_init_cli_cmds): Add new command definition.
3803 * gdb.1: Document edit command.
3804 * doc/gdb.texinfo: Document edit command.
3805
3806 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3807
3808 * source.c: Make global variables current_source_symtab and
3809 current_source_line static.
3810 (list_command): Moved to cli/cli-cmds.c.
3811 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3812 (get_first_line_listed): New accessor function.
3813 (get_lines_to_list): New accessor function.
3814 (get_current_source_symtab_and_line): New function. Retrieves the
3815 position in the source code that we consider current.
3816 (get_current_or_default_source_symtab_and_line): New function.
3817 Like the above but attempts to determine a default position if one
3818 is not currently defined.
3819 (set_current_source_symtab_and_line): New function. Sets the source
3820 code position considered current and returns the previously set one.
3821 (clear_current_source_symtab_and_line): Reset stored information about
3822 a current source line.
3823 (_initialize_source): Remove registration for the "list" command and
3824 its alias.
3825 * source.h: Add declarations for the new functions above.
3826 * symtab.h: Remove declarations for the global variables mentioned
3827 above.
3828 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3829 obtain current source line.
3830 * linespec.c (decode_line_1): Ditto.
3831 * macroscope.c (default_macro_scope): Ditto.
3832 * scm-lang.c (scm_unpac): Ditto.
3833 * stack.c (print_frame_info_base): Ditto.
3834 * symfile.c (clear_symtab_users): Ditto.
3835 * symtab.c (decode_line_spec): Ditto.
3836 * cli/cli-cmds.c (list_command): Moved here from source.c.
3837 (ambiguous_line_spec): Moved here from source.c.
3838 (_init_cli_cmds): Add definition for "list" and its alias.
3839 * Makefile.in: Update dependencies.
3840
3841 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3842
3843 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3844 with what gcc thinks is correct.
3845
3846 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3847
3848 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3849 multiple register push instruction.
3850
3851 2002-09-19 Jim Blandy <jimb@redhat.com>
3852
3853 Add support for distinct host and target character sets.
3854 * charset.c, charset.h: New files.
3855 * c-exp.y: #include "charset.h".
3856 (yylex): Convert character and string literals to the target
3857 character set, before returning them as the semantic value of the
3858 token.
3859 * c-lang.c: #include "charset.h".
3860 (c_emit_char): Use charset-specific methods to recognize
3861 characters with backslash escape forms, to decide which characters
3862 to print literally and which to print using numeric escape
3863 sequences, and to convert target characters to host characters
3864 before printing.
3865 * utils.c: #include "charset.h".
3866 (no_control_char_error): New function.
3867 (parse_escape): Use charset-specific methods to recognize
3868 backslash escapes, parse `control character' notation, and convert
3869 characters from the host character set to the target character set.
3870 * configure.in: Set the default host character set.
3871 Check where to find iconv, and what its argument types might be.
3872 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3873 * Makefile.in (SFILES): List charset.c.
3874 (COMMON_OBS): List charset.o.
3875 (charset.o): New rule.
3876 (charset_h): New header dependency variable.
3877 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3878 (LIBICONV): New variable, set by configure.
3879 (CLIBS): Include $(LIBICONV) here.
3880 * aclocal.m4, config.in, configure: Regenerated.
3881
3882 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3883
3884 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3885 bison 1.35 warning.
3886
3887 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3888
3889 * gdb_mbuild.sh: New file.
3890
3891 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3892
3893 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3894
3895 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3896
3897 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3898 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3899 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3900 valops.c, value.h: Revert previous change.
3901
3902 2002-09-18 Michael Snyder <msnyder@redhat.com>
3903
3904 Preliminary support for Objective-C:
3905 * defs.h (language_objc): New enum value.
3906 (puts_filtered_tabular): Declaration only, exported from utils.c.
3907 (skip_quoted): Delete, declared in completer.h.
3908 * c-exp.y: Include completer.h.
3909 * p-exp.y: Ditto.
3910 * jv-exp.y: Ditto.
3911 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3912 New operator enum values.
3913 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3914 * language.c (binop_result_type): Handle language_objc case.
3915 (integral_type, character_type, string_type, boolean_type,
3916 structured_type, binop_type_check): Ditto.
3917 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3918 (struct objc_specific): Add to general_symbol_info.
3919 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3920 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3921 * parser-defs.h (struct objc_class_str): New struct type.
3922 (start_msglist, end_msglist, add_msglist): Declaration only,
3923 exported from objc-lang.c.
3924 * value.h (value_of_local, value_nsstring,
3925 call_function_by_hand_expecting_type): Exported from valops.c.
3926 * valops.c (find_function_addr): Export.
3927 (call_function_by_hand_expecting_type): New function.
3928 (value_of_local): New function.
3929 * symfile.c (init_filename_language_table): Add ".m" extension
3930 for Objective-C.
3931 * utils.c (puts_filtered_tabular): New function.
3932 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3933 (set/show demangle): Extend help-string to refer to ObjC.
3934 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3935 * stabsread.c (symbol_reference_defined): Objective-C symbols
3936 may contain colons: make allowances when scanning stabs strings
3937 for colons.
3938 (objc_find_colon): New function.
3939 * printcmd.c (address_info): If language == objc then print
3940 "self" instead of "this".
3941 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3942 OP_NSSTRING, and OP_SELF.
3943 (prefixify_subexp): Ditto.
3944 * source.c (print_source_lines): Mention objc in comment.
3945 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3946 method names.
3947
3948 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3949
3950 * complaints.h: Update copyright.
3951 (struct complaints): Declare.
3952 (struct complaint): Make `message' constant.
3953 (internal_complaint): Declare.
3954 (complaint): Declare.
3955 (complaint_root): Delete declaration.
3956 (symfile_complaints): Delete declaration.
3957 (struct complaints): Add opaque declaration.
3958 (clear_complaints): Add a complaints parameter.
3959 * complaints.c: Update copyright.
3960 (enum complaint_series): Define.
3961 (complaint_root): Delete.
3962 (struct complaints): Define.
3963 (complaint_sentinel, symfile_complaint_book): New variables.
3964 (symfile_explanations, symfile_complaints): New variables.
3965 New variables.
3966 (get_complaints): New function.
3967 (vcomplaint): New function.
3968 (complaint): New function.
3969 (internal_complaint): New function.
3970 (complain): Call vcomplain with symfile_complaint.
3971 (clear_complaints): Rewrite.
3972 (_initialize_complaints): Use add_setshow_command.
3973 * Makefile.in (complaints.o): Update dependencies.
3974 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3975 to call to clear_complaints.
3976 (new_symfile_objfile, reread_symbols): Ditto.
3977 (oldsyms_complaint): Delete.
3978 (empty_symtab_complaint, unknown_option_complaint): Delete.
3979 (free_named_symtabs): Use complaint instead of complain.
3980
3981 2002-09-18 Michael Snyder <msnyder@redhat.com>
3982
3983 Contributed by Apple Computer, Inc. Merged with current sources
3984 by Adam Fedor <fedor@doc.com> [cagney].
3985
3986 * objc-lang.c: First clean-up round: comments, indentation.
3987 * objc-lang.h: Ditto.
3988 * objc-lang.y: Ditto.
3989
3990 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3991
3992 * maint.c (maintenance_internal_error): Print the parameter as the
3993 error message.
3994 (maintenance_internal_warning): New function.
3995 (_initialize_maint_cmds): Add command `maint internal-warning'.
3996
3997 * defs.h (internal_warning, internal_vwarning): Declare.
3998 * utils.c (struct internal_problem): Define.
3999 (internal_vproblem): New function.
4000 (internal_warning): New function.
4001 (internal_vwarning): New function.
4002 (internal_warning_problem, internal_error_problem): New variables.
4003 (internal_verror): Just call internal_vproblem.
4004
4005 2002-09-18 Michael Snyder <msnyder@redhat.com>
4006
4007 * objc-lang.c: New file, support for Objective-C.
4008 Preliminary check-in, not yet integrated into gdb.
4009 * objc-lang.h: New file.
4010 * objc-exp.y: New file.
4011
4012 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4013
4014 * infrun.c (signal_stop_update): Convert definition to ISO C.
4015 (signal_print_update): Ditto.
4016 (signal_pass_update): Ditto.
4017 * inflow.c (terminal_save_ours): Ditto.
4018
4019 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4020 comments.
4021
4022 * config/djgpp/fnchange.lst: Handle name clashes between
4023 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4024 bfd/coff-tic80.c.
4025
4026 * i386-linux-tdep.h: Fix tipo.
4027
4028 2002-09-18 Adam Fedor <fedor@gnu.org>
4029
4030 * MAINTAINERS: Add myself to the Write After Approval list.
4031
4032 2002-09-18 Jim Blandy <jimb@redhat.com>
4033
4034 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4035 texthigh and textlow to reader-specific structs caused
4036 objfile_relocate to miss them. This is fixable, but the work that
4037 the change was supposed to prepare GDB for never got done anyway.
4038
4039 2002-09-18 David Carlton <carlton@math.stanford.edu>
4040
4041 * MAINTAINERS: Alphabetize Write After Approval list.
4042
4043 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4044
4045 Fix PR gdb/709
4046 * values.c (value_static_field): Call read_var_value.
4047
4048 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4049
4050 * valops.c (hand_function_call): Align the initial stack pointer
4051 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4052 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4053 return value.
4054 * mips-tdep.c (mips_frame_align): New function.
4055 (mips_gdbarch_init): Set frame_align.
4056 * gdbarch.sh (FRAME_ALIGN): New method.
4057 * gdbarch.h, gdbarch.c: Re-generate.
4058
4059 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4060
4061 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4062 registers.
4063
4064 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4065
4066 * NEWS: Mention that MIPS $fp behavior changed.
4067 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4068 reference to FP_REGNUM.
4069 (mipsnbsd_cannot_store_register): Ditto.
4070 * mips-linux-nat.c: Update copyright.
4071 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4072 (mips_linux_cannot_store_register): Ditto.
4073 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4074 * config/mips/tm-mips.h: Update copyright.
4075 (FP_REGNUM): Delete macro.
4076 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4077 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4078 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4079 (mips_r3041_reg_names, mips_r3051_reg_names)
4080 (mips_r3081_reg_names): Replace "fp" with "".
4081 Fix PR gdb/480.
4082
4083 2002-09-17 Theodore A. Roth <troth@verinet.com>
4084
4085 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4086 generic_read_register_dummy() (PR gdb/703).
4087 (avr_push_return_address): #if 0 out unused vars.
4088 (avr_gdbarch_init): Enable use of avr_push_return_address().
4089
4090 2002-09-17 Michael Snyder <msnyder@redhat.com>
4091
4092 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4093 RTE will take care of it.
4094
4095 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4096
4097 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4098 invalid, return SP_REGNUM.
4099
4100 2002-09-17 Michael Snyder <msnyder@redhat.com>
4101
4102 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4103 point registers without sign extension.
4104
4105 2002-09-17 Andrew Cagney <cagney@redhat.com>
4106
4107 * blockframe.c (deprecated_read_register_dummy): Rename
4108 generic_read_register_dummy.
4109 * frame.c (frame_unwind_signed_register): New function.
4110 (frame_unwind_unsigned_register): New function.
4111 * frame.h (frame_unwind_signed_register): Declare.
4112 (frame_unwind_unsigned_register): Declare.
4113 (deprecated_read_register_dummy): Rename
4114 generic_read_register_dummy.
4115
4116 * h8300-tdep.c (h8300_frame_chain): Update.
4117 (h8300_frame_saved_pc): Update.
4118 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4119 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4120 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4121 (s390_frame_chain): Update.
4122 * v850-tdep.c (v850_find_callers_reg): Update.
4123 (v850_frame_saved_pc): Update.
4124 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4125 (m32r_find_callers_reg): Update.
4126 (m32r_frame_saved_pc): Update.
4127 * sh-tdep.c (sh_find_callers_reg): Update.
4128 (sh64_get_saved_pr): Update.
4129 (sh_init_extra_frame_info): Update.
4130 (sh_init_extra_frame_info): Update.
4131 (sh64_init_extra_frame_info): Update.
4132 (sh64_init_extra_frame_info): Update.
4133 * mcore-tdep.c (mcore_find_callers_reg): Update.
4134 (mcore_frame_saved_pc): Update.
4135 (mcore_init_extra_frame_info): Update.
4136 * i386-tdep.c (i386_frame_saved_pc): Update.
4137 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4138 (ia64_init_extra_frame_info): Update.
4139 (ia64_init_extra_frame_info): Update.
4140 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4141 * cris-tdep.c (cris_init_extra_frame_info): Update.
4142 * avr-tdep.c (avr_frame_chain): Update.
4143 (avr_init_extra_frame_info): Update.
4144 (avr_frame_saved_pc): Update.
4145 * arm-tdep.c (arm_find_callers_reg): Update.
4146 (arm_init_extra_frame_info): Update.
4147 (arm_frame_saved_pc): Update.
4148
4149 2002-09-17 Tom Tromey <tromey@redhat.com>
4150
4151 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4152 is "'".
4153
4154 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4155
4156 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4157 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4158 NEXT_PROLOGUE_INSN.
4159 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4160 NEXT_PROLOGUE_INSN.
4161
4162 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4163
4164 * osfsolib.c: Remove file, replaced by solib-osf.c.
4165 * Makefile.in: Remove compilation rules for osfsolib.c.
4166
4167 2002-09-16 David Carlton <carlton@math.stanford.edu>
4168
4169 * cp-valprint.c (cp_print_class_method): Correct args to
4170 check_stub_method_group.
4171
4172 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4173
4174 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4175 `set architecture'. Unify naming convention of functions.
4176 (h8300_skip_prologue): Improve prologue analysis.
4177 (h8300_push_arguments): Rewritten to more closely match GCC's
4178 bizarre argument-passing behavior, along with the comment describing
4179 said behavior.
4180 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4181 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4182 sim, remote-e7000.c, remote-hms.c and remote.c
4183
4184 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4185
4186 * i386-tdep.c (gdb_print_insn_i386): Removed.
4187 (i386_print_insn): New function.
4188 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4189 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4190 tm_print_insn_info.
4191
4192 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4193
4194 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4195 zero.
4196
4197 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4198
4199 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4200 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4201 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4202
4203 2002-09-13 Christopher Faylor <cgf@redhat.com>
4204
4205 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4206
4207 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4208
4209 * gdbtypes.c (check_stub_method): Make static.
4210 (check_stub_method_group): New function.
4211 * gdbtypes.h: Update prototypes.
4212 * cp-support.c: New file.
4213 * cp-support.h: New file.
4214
4215 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4216 (update_method_name_from_physname): New function.
4217 (read_member_functions): Correct method names for operators
4218 and v3 constructors/destructors. Separate v2 constructors and
4219 destructors.
4220 * Makefile.in (stabsread.o): Update dependencies.
4221 (SFILES): Add cp-support.c.
4222 (COMMON_OBS): Add cp-support.o.
4223 (cp_support_h, cp-support.o): Add.
4224
4225 * cp-valprint.c (cp_print_class_method): Call
4226 check_stub_method_group instead of check_stub_method. Remove
4227 extraneous QUITs.
4228 * p-valprint.c (pascal_object_print_class_method): Likewise.
4229 * valops.c (search_struct_method): Likewise.
4230 (find_method_list, value_struct_elt_for_reference): Likewise.
4231
4232 2002-09-13 Andrew Cagney <cagney@redhat.com>
4233
4234 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4235 * gdbarch.h, gdbarch.c: Regenerate.
4236
4237 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4238
4239 * frame.c (find_saved_register): Delete function.
4240 * frame.h (find_saved_register): Delete declaration.
4241 Fix PR gdb/631.
4242
4243 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4244
4245 * mips-tdep.c (read_next_frame_reg): Re-hack using
4246 frame_register_unwind.
4247
4248 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4249
4250 * mips-tdep.c (mips_get_saved_register): Re-hack using
4251 frame_register_unwind.
4252
4253 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4254
4255 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4256 vector. Will be useful for Interix.
4257 * gdbarch.h, gdbarch.c: Regenerate.
4258
4259 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4260 name of the malloc function by NAME_OF_MALLOC.
4261
4262 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4263
4264 * value.h (find_function_in_inferior): Add const keyword to
4265 one of the parameters. Allows us to invoke this function with
4266 a const char *.
4267 * valops.c (find_function_in_inferior): Likewise.
4268
4269 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4270
4271 * exec.c (xfer_memory): Fix compilation warning with old versions
4272 of GCC.
4273 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4274
4275 2002-09-12 David Carlton <carlton@math.stanford.edu>
4276
4277 * symtab.h: Run through gdb_indent.h.
4278 Add 2002 to Copyright year list.
4279
4280 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4281
4282 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4283 mach constants.
4284 * MAINTAINERS: Add myself to write after approval list.
4285
4286 2002-09-11 J. Brobecker <brobecker@gnat.com>
4287
4288 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4289
4290 2002-09-11 J. Brobecker <brobecker@gnat.com>
4291
4292 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4293 Interix.
4294
4295 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4296
4297 * procfs.c (do_detach): Clear current signal, not just fault.
4298 Corrects problem with breakpoint trap signal leaking to detached
4299 process on Tru64.
4300
4301 2002-09-10 Michael Snyder <msnyder@redhat.com>
4302
4303 * buildsym.c (finish_block): Protect against null pointer.
4304
4305 2002-09-10 Andrew Cagney <cagney@redhat.com>
4306
4307 * infcmd.c (default_print_registers_info): Send all output to
4308 ``file'' instead of ``gdb_stdout''.
4309
4310 2002-09-10 Michael Snyder <msnyder@redhat.com>
4311
4312 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4313 LONGEST, and use signed register read (addresses are sign-
4314 extended for mips).
4315
4316 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4317
4318 * event-loop.c (gdb_do_one_event): Make public.
4319 * event-loop.h (gdb_do_one_event): Declare.
4320
4321 2002-09-10 Jeff Law <law@redhat.com>
4322
4323 * infttrace.c (child_resume): Simplify and rework to avoid
4324 TT_PROC_CONTINUE.
4325
4326 2002-09-09 Fred Fish <fnf@intrinsity.com>
4327
4328 * printcmd.c (print_scalar_formatted): "len" is the number of
4329 target bytes, NOT the number of target bits.
4330
4331 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4332
4333 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4334 * top.c (init_main): Set rl_terminal_name.
4335
4336 2002-09-08 Aidan Skinner <aidan@velvet.net>
4337
4338 * ada-lang.c (ada_array_bound, ada_type_match,
4339 _initialize_ada_language): Fix K&R definitions.
4340 * ada-tasks.c (get_current_task): Fix K&R definitions.
4341 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4342
4343 2002-09-07 Christopher Faylor <cgf@redhat.com>
4344
4345 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4346 Add XP.
4347
4348 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4349
4350 * i386-tdep.c (i386_register_virtual_type,
4351 i386_register_convertible, i386_register_convert_to_virtual,
4352 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4353 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4354 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4355 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4356 Don't set push_arguments twice.
4357
4358 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4359 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4360 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4361 sigtramp_end to NULL.
4362 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4363 defines.
4364 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4365
4366 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4367 whitespace.
4368
4369 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4370 * gdbarch.h, gdbarch.c: Re-generate.
4371 * blockframe.c (find_pc_sect_partial_function): Convert to use
4372 SIGTRAMP_START_P predicate.
4373
4374 2002-09-05 Michael Snyder <msnyder@redhat.com>
4375
4376 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4377 generic_dummy_frame method and old method. Also distinguish
4378 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4379 (arm_extract_return_value): Use new regcache method.
4380
4381 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4382 adjustment that doesn't conform to the ABI.
4383 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4384 saved regcache, not from current regcache.
4385
4386 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4387
4388 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4389 * README: Update.
4390
4391 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4392
4393 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4394 if arm_apcs_32 is false.
4395
4396 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4397
4398 GDB 5.3 branch created.
4399
4400 2002-09-03 Theodore A. Roth <troth@verinet.com>
4401
4402 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4403 generic_unwind_get_saved_register.
4404
4405 2002-09-03 David Carlton <carlton@math.stanford.edu>
4406
4407 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4408 argument (PR gdb/653). Update call to smash_to_method_type.
4409 (read_structure_scope): Update call to dwarf2_add_member_fn.
4410
4411 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4412
4413 * x86-64-linux-tdep.c: Include gdb_string.h
4414 * x86-64-linux-nat.c: Ditto.
4415
4416 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4417
4418 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4419 when YYDEBUG is set to 1.
4420 * c-exp.y: Likewise.
4421 * f-exp.y: Likewise.
4422 * jv-exp.y: Likewise.
4423 * m2-exp.y: Likewise.
4424 * p-exp.y: Likewise.
4425
4426 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4427
4428 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4429 dependency list.
4430 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4431 solib_svr4_fetch_link_map_offsets to
4432 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4433 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4434 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4435 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4436 solib-svr4.o, and solib-legacy.o.
4437 * config/i386/tm-nbsd.h: Include solib.h.
4438
4439 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4440
4441 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4442 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4443 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4444 comment noting that this needs its own target configuration.
4445 * config/i386/nbsd.mt: New file.
4446 * config/i386/nbsdaout.mt: Remove.
4447 * config/i386/nbsdelf.mt: Ditto.
4448 * config/i386/tm-nbsdaout.h: Ditto.
4449
4450 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4451
4452 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4453 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4454 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4455 tdep->sigtramp_end.
4456 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4457 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4458 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4459
4460 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4461
4462 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4463 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4464 * i386-tdep.h (i386bsd_init_abi): New prototype.
4465 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4466 function declaration.
4467 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4468 for NetBSD-a.out or NetBSD-ELF.
4469 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4470 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4471 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4472 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4473 and nbsd-tdep.h.
4474 (i386nbsd_pc_in_sigtramp): New function.
4475 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4476 i386nbsd_pc_in_sigtramp.
4477 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4478 and i386nbsdelf_init_abi OS ABI handlers.
4479 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4480 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4481
4482 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4483
4484 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4485 registers if the target really has them.
4486
4487 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4488
4489 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4490 than nbsd-tdep.h.
4491
4492 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4493
4494 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4495 list.
4496 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4497 (alphanbsd_skip_sigtramp_frame): New functions.
4498 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4499 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4500 to alphanbsd_sigcontext_addr.
4501
4502 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4503
4504 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4505 list.
4506 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4507 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4508 nbsd_pc_in_sigtramp.
4509 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4510 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4511 * nbsd-tdep.c: Include gdb_string.h.
4512 (nbsd_pc_in_sigtramp): New function.
4513 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4514 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4515 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4516 ppcnbsd_pc_in_sigtramp.
4517 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4518 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4519 shnbsd_pc_in_sigtramp.
4520 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4521 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4522 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4523
4524 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4525
4526 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4527 watchpoints to NULL.
4528 (insert_breakpoints): set val field of watchpoints if NULL.
4529
4530
4531 2002-08-29 Jim Blandy <jimb@redhat.com>
4532
4533 * symtab.c (lookup_symbol_aux): In the cases where we find a
4534 minimal symbol of an appropriate name and use its address to
4535 select a symtab to read and search, use `name' (as passed to us)
4536 as the demangled name when searching the symtab's global and
4537 static blocks, not the minsym's name.
4538
4539 2002-08-29 Keith Seitz <keiths@redhat.com>
4540
4541 * stack.c (print_frame_info_base): Always set current_source_symtab
4542 and current_source_line.
4543
4544 2002-08-29 Donn Terry <donnte@microsoft.com>
4545
4546 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4547
4548 2002-08-28 Keith Seitz <keiths@redhat.com>
4549
4550 * stack.c (select_frame): Add FIXME concerning selected-frame
4551 events.
4552 (select_frame_command): Send selected-frame-level-changed
4553 event notification, but only if the level actually changed.
4554 (up_silently_base): Add selected-frame-level-changed event
4555 notification.
4556 (down_silently_base): Likewise.
4557
4558 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4559
4560 * Makefile.in: Update dependencies for all gdb/*.c files.
4561
4562 2002-08-27 Tom Tromey <tromey@redhat.com>
4563
4564 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4565 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4566 Update dependencies.
4567 * i387-tdep.c: Include gdb_string.h.
4568 * osabi.c: Likewise.
4569 * i386-linux-nat.c: Likewise.
4570 * lin-lwp.c: Likewise.
4571 * ax-gdb.c: Likewise.
4572 * signals/signals.c: Likewise.
4573 * jv-valprint.c: Likewise.
4574 * p-lang.c: Likewise.
4575 * c-valprint.c: Likewise.
4576 * cp-abi.c: Likewise.
4577
4578 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4579
4580 * cli/cli-script.h (copy_command_lines): Export.
4581 * breakpoint.c: Include cli/cli-script.h.
4582 * Makefile.in (breakpoint.o): Update dependencies.
4583
4584 2002-08-26 Michael Snyder <msnyder@redhat.com>
4585
4586 * breakpoint.c (insert_breakpoints): Protect all references
4587 to 'process_warning'. Shorten long lines.
4588
4589 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4590
4591 * cli/cli-script.c (copy_command_lines): New function.
4592 * defs.h (copy_command_lines): Export.
4593 * testsuite/gdb.base/commands.exp: New tests for commands
4594 attached to a temporary breakpoint, and for commands that
4595 delete the breakpoint they are attached to.
4596
4597 2002-08-26 Michael Snyder <msnyder@redhat.com>
4598
4599 * breakpoint.c (bpstat_stop_status): Instead of copying the
4600 pointer to the breakpoint commands struct, make a new copy
4601 of the struct and point to that.
4602 (bpstat_clear): Free the commands struct.
4603 (bpstat_clear_actions): Free the commands struct.
4604 (bpstat_do_actions): Free the command actions. Also execute
4605 the local cleanups, instead of deleting them.
4606 (delete_breakpoint): Leave the commands field of the bpstat
4607 chain alone -- it will be freed later.
4608
4609 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4610
4611 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4612 deleted in 2002-08-20 commit. This function is still used by
4613 ppc-linux-nat.c.
4614
4615 2002-08-26 Keith Seitz <keiths@redhat.com>
4616
4617 * gdb-events.sh: Add selected-frame-level-changed event.
4618 * gdb-events.c: Regenerated.
4619 * gdb-events.h: Regenerated.
4620
4621 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4622
4623 Fix PR gdb/393:
4624 * inflow.c (terminal_save_ours): New function to save terminal
4625 settings.
4626 * inferior.h (terminal_save_ours): Declare.
4627 * target.c (debug_to_terminal_save_ours): New function.
4628 (cleanup_target): Defaults to_terminal_save_ours.
4629 (update_current_target): Inherit to_terminal_save_ours.
4630 (setup_target_debug): Set to_terminal_save_ours.
4631 * target.h (target_terminal_save_ours): New to save terminal settings.
4632 (target_ops): New member to_terminal_save_ours.
4633 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4634 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4635 * inftarg.c (init_child_ops): Likewise.
4636 * m3-nat.c (init_m3_ops): Likewise.
4637 * procfs.c (init_procfs_ops): Likewise.
4638 * wince.c (init_child_ops): Likewise.
4639 * win32-nat.c (init_child_ops): Likewise.
4640 * sol-thread.c (init_sol_thread_ops): Likewise.
4641
4642 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4643
4644 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4645 use regcache_* functions.
4646 (i386_gdbarch_init): Set store_return_value instead of
4647 deprecated_store_return_value.
4648
4649 * regcache.c (regcache_raw_write_signed,
4650 regcache_raw_write_unsigned): New functions.
4651 * regcache.h (regcache_raw_write_signed,
4652 regcache_raw_write_unsigned): New prototypes.
4653
4654 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4655
4656 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4657 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4658 source file dependencies. Cleanup corresponding generator rules.
4659
4660 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4661
4662 * regcache.h (register_offset_hack): Declare.
4663 (regcache_cooked_read_using_offset_hack): Declare.
4664 (regcache_cooked_write_using_offset_hack): Declare.
4665
4666 * regcache.c (register_offset_hack): New function.
4667 (regcache_cooked_read_using_offset_hack): New function.
4668 (regcache_cooked_write_using_offset_hack): New function.
4669 (regcache_dump): Check that the registers, according to their
4670 offset, are packed hard against each other.
4671 (cooked_xfer_using_offset_hack): New function.
4672
4673 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4674
4675 * regcache.c (struct regcache_descr): Add field register_type.
4676 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4677 in as a parameter
4678 (init_regcache_descr): Initialize register_type. Pass the descr
4679 to init_legacy_regcache_descr. Use register_type instead of
4680 REGISTER_VIRTUAL_TYPE.
4681 (register_type): New function.
4682 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4683 * regcache.h (register_type): Declare.
4684
4685 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4686
4687 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4688 instead of deprecated_store_return_value. Fix fallout from
4689 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4690
4691 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4692
4693 * regcache.c (max_register_size): New function.
4694 (init_legacy_regcache_descr): Ensure that max_register_size is
4695 large enough for REGISTER_VIRTUAL_SIZE.
4696 * regcache.h (max_register_size): Declare.
4697
4698 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4699
4700 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4701 store_return_value.
4702 (e500_extract_return_value): Change type of valbuf pointer to
4703 void.
4704
4705 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4706
4707 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4708 workaround.
4709
4710 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4711 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4712 long long) to prevent compiler warning on 64-bit systems.
4713
4714 2002-08-23 Andrew Cagney <cagney@redhat.com>
4715
4716 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4717 (DEPRECATED_STORE_RETURN_VALUE): New method.
4718 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4719 * gdbarch.h, gdbarch.c: Re-generate.
4720
4721 * values.c (set_return_value): Pass current_regcache to
4722 STORE_RETURN_VALUE.
4723 * arch-utils.h (legacy_store_return_value): Declare.
4724 * arch-utils.c (legacy_store_return_value): New function.
4725 (legacy_extract_return_value): Update parameters.
4726
4727 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4728 STORE_RETURN_VALUE.
4729 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4730 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4731 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4732 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4733 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4734 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4735 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4736 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4737 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4738 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4739
4740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4741 * i386-tdep.c (i386_extract_return_value): Update.
4742 * arch-utils.c (legacy_extract_return_value): Update.
4743 * frv-tdep.c (frv_gdbarch_init): Update.
4744 * cris-tdep.c (cris_gdbarch_init): Update.
4745 * d10v-tdep.c (d10v_gdbarch_init): Update.
4746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4747 * m68k-tdep.c (m68k_gdbarch_init): Update.
4748 * mcore-tdep.c (mcore_gdbarch_init): Update.
4749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4750 * s390-tdep.c (s390_gdbarch_init): Update.
4751 * sparc-tdep.c (sparc_gdbarch_init): Update.
4752 * sh-tdep.c (sh_gdbarch_init): Update.
4753 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4754 * v850-tdep.c (v850_gdbarch_init): Update.
4755 * avr-tdep.c (avr_gdbarch_init): Update.
4756 * ia64-tdep.c (ia64_gdbarch_init): Update.
4757 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4758 * vax-tdep.c (vax_gdbarch_init): Update.
4759 * alpha-tdep.c (alpha_gdbarch_init): Update.
4760 * arm-tdep.c (arm_gdbarch_init): Update.
4761 * mips-tdep.c (mips_gdbarch_init): Update.
4762 * i386-tdep.c (i386_gdbarch_init): Update.
4763
4764 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4765
4766 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4767 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4768
4769 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4770
4771 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4772 problems.
4773
4774 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4775
4776 * infrun.c (handle_inferior_event): Move a comment outside of a
4777 function call, in order to avoid indent reformatting this part
4778 of the code in an unreadable way.
4779
4780 2002-08-23 Grace Sainsbury <graces@redhat.com>
4781
4782 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4783 when breakpoints fail. Move general breakpoint error messages to
4784 insert_breakpoints.
4785 * breakpoint.c (insert_breakpoints): Change warnings when
4786 breakpoints are nto inserted to specify the type. Remove call to
4787 memory_error when hardware breakpoints can't be inserted. Remove
4788 multiple calls to warning so all messages are sent to the user at
4789 once.
4790 (delete_breakpoints): Make insert error messsages more explicit.
4791
4792 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4793
4794 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4795 gdbserver/ChangeLog.
4796
4797 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4798
4799 * i386-tdep.c: Include "objfiles.h".
4800 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4801 skip_trampoline_code.
4802 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4803 (CPLUS_MARKER): Define to '.'.
4804
4805 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4806 member.
4807 (linux_corefile_thread_callback): Increase args->num_notes.
4808 (linux_make_note_section): Initialize thread_args.num_notes, and
4809 use it to determine whether notes for any threads were created.
4810
4811 2002-08-23 Donn Terry <donnte@microsoft.com>
4812
4813 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4814 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4815 and PCUNKILL.
4816 (write_with_trace): Conditionalize out the switch branch handling
4817 PCSHOLD if the corresponding macro is not defined. Likewise for
4818 PRSABORT and PRSTOP.
4819 This change will be needed by the Interix port.
4820
4821 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4822
4823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4824 write_register wherever possible instead of manipulating the
4825 register bytes directly.
4826 Assign VALUE_CONTENTS to a variable and use that.
4827 The GPR numbers are now dependent on the architecture.
4828
4829 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4830
4831 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4832 ev_offset fields.
4833 (skip_prologue): Add support for BookE/e500 instructions.
4834 (e500_extract_return_value): New function.
4835 (frame_get_saved_regs): Add support for saving ev registers and
4836 pseudo gpr's.
4837 (e500_store_return_value): New function.
4838 (rs6000_gdbarch_init): Move up default intializations of
4839 deprecated_extract_return_value and store_return_value. Overwrite
4840 init of store_return_value with e500 specific version.
4841 Set extract_return_value for e500.
4842
4843 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4844
4845 * blockframe.c (generic_call_dummy_register_unwind): Use
4846 regcache_cooked_read to catch cases in which the variable is
4847 stored in a pseudo register.
4848
4849 2002-08-22 Andrew Cagney <cagney@redhat.com>
4850
4851 * NEWS: Mention that the i960 has been made obsolete.
4852 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4853 i960-tdep.c
4854 (remote-nrom.o): Obsolete target.
4855 (remote-nindy.o, i960-tdep.o): Ditto.
4856 * remote-nrom.c: Make file obsolete.
4857 * remote-nindy.c, remote-vx960.c: Ditto.
4858 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4859 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4860 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4861 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4862 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4863 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4864 i960-*-vxworks* obsolete.
4865 * MAINTAINERS: Note that the i960 is obsolete.
4866
4867 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4868
4869 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4870 detach to allow reinitialization.
4871
4872 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4873
4874 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4875 attempt).
4876
4877 2002-08-22 Jim Blandy <jimb@redhat.com>
4878
4879 * coffread.c (coff_symfile_read): Don't try to read the line
4880 number table from disk if the image file doesn't have a symbol
4881 table; we'll never actually look at the info anyway, and Windows
4882 ships DLL's with bogus file offsets for the line number data.
4883
4884 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4885
4886 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4887 an e500 executable.
4888
4889 2002-08-21 Michael Snyder <msnyder@redhat.com>
4890
4891 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4892 (MSYMBOL_SIZE): Replace macro with function.
4893 (DEFAULT_MIPS_TYPE): Delete unused macro.
4894 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4895 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4896
4897 2002-08-21 Jim Blandy <jimb@redhat.com>
4898
4899 * valops.c (value_cast): Simplify and correct logic for doing a
4900 static cast from a pointer to a base class to a pointer to a
4901 derived class.
4902
4903 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4904
4905 * infcmd.c (default_print_registers_info): Replace
4906 do_registers_info.
4907 (registers_info): Use gdbarch_print_registers_info instead of
4908 DO_REGISTERS_INFO.
4909 * inferior.h (default_print_registers_info): Replace
4910 do_registers_info.
4911 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4912 (DO_REGISTERS_INFO): Change to a predicate function.
4913 * gdbarch.h, gdbarch.c: Regenerate.
4914
4915 2002-08-21 Keith Seitz <keiths@redhat.com>
4916
4917 * gdb-events.sh: Add target-changed event.
4918 * gdb-events.c: Regenerated.
4919 * gdb-events.c: Regenerated.
4920 * valops.c (value_assign): Add target-changed event notification
4921 to inlval_register, lval_memory, and lval_reg_frame_relative.
4922
4923 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4924
4925 * NEWS: Add an entry regarding the improvement of the next/step
4926 operation on Alpha Tru64 multi-processor machines.
4927
4928 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4929
4930 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4931 directores.
4932 * Makefile.in: Update all _h macro definitions.
4933 * Makefile.in (install-gdbtk): Move to install section.
4934 (rdi-share/libangsd.a): Move to end of file.
4935
4936 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4937
4938 * frame.c (frame_register_unwind): When a register, set addrp to
4939 the register's byte.
4940
4941 2002-08-20 Michael Snyder <msnyder@redhat.com>
4942
4943 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4944 used locally, so move them from the target machine header to here.
4945 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4946 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4947 Make static.
4948 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4949
4950 2002-08-20 Andrew Cagney <cagney@redhat.com>
4951
4952 * NEWS: Mention that the Apollo line was made obsolete.
4953 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4954 m68*-hp-hpux* obsolete.
4955 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4956 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4957 * buildsym.c (make_blockvector): Make static.
4958 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4959 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4960 (ALLDEPFILES): Remove dstread.c.
4961 (dstread.o): Obsolete make rule.
4962 * dstread.c: Makefile obsolete.
4963 * dst.h: Ditto.
4964 * config/m68k/hp300hpux.mt: Ditto.
4965 * config/m68k/hp300hpux.mh: Ditto.
4966 * config/m68k/hp300bsd.mt: Ditto.
4967 * config/m68k/hp300bsd.mh: Ditto.
4968 * config/m68k/apollo68b.mt: Ditto.
4969 * config/m68k/apollo68v.mh: Ditto.
4970 * config/m68k/apollo68b.mh: Ditto.
4971
4972 2002-08-20 Michael Snyder <msnyder@redhat.com>
4973
4974 * mips-tdep.c (mips_in_return_stub): Make static.
4975 (mips_gdbarch_init): Set in_solib_return_trampoline.
4976 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4977
4978 2002-08-20 Michael Snyder <msnyder@redhat.com>
4979
4980 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4981 * gdbarch.c, gdbarch.h: Regenerate.
4982 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4983 Add.
4984 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4985
4986 2002-08-20 Michael Snyder <msnyder@redhat.com>
4987
4988 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4989 (mips_gdbarch_init): Set skip_trampoline_code,
4990 in_solib_call_trampoline.
4991 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4992 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4993
4994 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4995
4996 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4997
4998 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4999 vector type for ev registers.
5000 (e500_pseudo_register_read): New function.
5001 (e500_pseudo_register_write): New function.
5002 (e500_dwarf2_reg_to_regnum): New function.
5003 (PPC_UISA_NOFP_SPRS): New macro.
5004 (PPC_EV_REGS): New macro.
5005 (PPC_GPRS_PSEUDO_REGS): New macro.
5006 (registers_e500): New register set for e500.
5007 (variants): Add e500 variant.
5008 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5009 before setting architectural dependent variations. Initialize ev
5010 registers numbers. Add case for e500 architecture. Set the
5011 number of pseudo registers.
5012
5013 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5014
5015 * rs6000-tdep.c: Clean up comments.
5016
5017 2002-08-20 Andrew Cagney <cagney@redhat.com>
5018
5019 * h8300-tdep.c: Re-indent file.
5020
5021 2002-08-20 Jim Blandy <jimb@redhat.com>
5022
5023 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5024 default for this.
5025
5026 2002-08-20 Keith Seitz <keiths@redhat.com>
5027
5028 * breakpoints.c (watch_command_1): Use internal breakpoint
5029 when setting a watchpoint_scope breakpoint.
5030
5031 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5032
5033 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5034 (build_builtin_type_vec64i): Ditto.
5035 (build_builtin_type_vec128): Ditto.
5036 (build_builtin_type_vec128i): Ditto.
5037
5038 2002-08-19 Michael Snyder <msnyder@redhat.com>
5039
5040 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5041 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5042 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5043 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5044 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5045 CALL_DUMMY_ADDRESS): Delete.
5046 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5047 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5048 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5049 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5050 push_return_address.
5051 (mips_register_raw_size, mips_eabi_use_struct_convention,
5052 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5053 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5054 mips_init_extra_frame_info, mips_eabi_push_arguments,
5055 mips_n32n64_push_arguments, mips_push_return_address,
5056 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5057 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5058
5059 2002-08-19 Michael Snyder <msnyder@redhat.com>
5060
5061 * mips-tdep.c (mips_frame_num_args): New function.
5062 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5063 frame_saved_pc, frame_args_address, frame_locals_address,
5064 frame_num_args, and frame_args_skip.
5065 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5066 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5067 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5068 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5069
5070 2002-08-20 Michael Snyder <msnyder@redhat.com>
5071
5072 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5073 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5074 * mips-tdep.c (mips_store_struct_return): New function.
5075 (mips_extract_struct_value_address): New function.
5076 (mips_gdbarch_init): Set store_struct_return and
5077 extract_struct_value_address.
5078
5079 2002-08-20 David Carlton <carlton@math.stanford.edu>
5080
5081 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5082 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5083 (read_file_scope): Check that line_header is nonzero before
5084 decoding macro information.
5085
5086 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5087
5088 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5089 flag the general-purpose registers as floating-point on targets
5090 that don't support the floating-point registers.
5091
5092 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5093
5094 * rs6000-tdep.c (altivec_register_p): Delete.
5095 (rs6000_do_altivec_registers): Delete.
5096 (rs6000_altivec_registers_info): Delete.
5097 (rs6000_do_registers_info): Delete.
5098 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5099 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5100
5101 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5102
5103 * infcmd.c (do_registers_info): Print vector registers in hex
5104 format only.
5105 (print_vector_info): Check that printing registers
5106 makes sense.
5107 (print_float_info): Ditto.
5108
5109 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5110
5111 * mips-tdep.c (mips_gdbarch_init): Update.
5112 (mips_o32_extract_return_value): Rewrite.
5113 (mips_o32_store_return_value): Rewrite.
5114 (mips_o32_xfer_return_value): New function.
5115 (mips_xfer_register): Tweak debug print message. Allow for
5116 buf_offset when dumping the value transfered.
5117
5118 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5119
5120 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5121 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5122 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5123 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5124 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5125
5126 2002-08-14 Michael Snyder <msnyder@redhat.com>
5127
5128 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5129
5130 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5131
5132 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5133 register.
5134 (P): New macro to define a register as a pseudo register.
5135 (R, R4, R8, R16, FR32, R64, R0): Updated.
5136 (struct variant): Add new fields for number of pseudo registers
5137 and number of total registers.
5138 (tot_num_registers): New macro replacing....
5139 (num_registers): ...deleted macro.
5140 (num_registers): New function.
5141 (num_pseudo_registers): New function.
5142 (variants): Update all variants to intialize new fields correctly.
5143 Postpone initialization of number of pseudo regs and real regs.
5144 (init_variants): New function.
5145 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5146 registers offsets.
5147
5148 2002-08-19 David Carlton <carlton@math.stanford.edu>
5149
5150 * valops.c (search_struct_field): Change error message to treat
5151 return value of 0 from value_static_field as meaning that field is
5152 optimized out.
5153 (value_struct_elt_for_reference): Ditto.
5154 * values.c (value_static_field): Treat an unresolved location the
5155 same as a nonexistent symbol. Fix PR gdb/635.
5156 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5157 enclosed. Fix PR gdb/574.
5158 * MAINTAINERS: Add self to Write After Approval list.
5159
5160 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5161
5162 * mips-tdep.c (mips_xfer_register): New function.
5163 (mips_n32n64_extract_return_value): Rewrite.
5164 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5165 instead of deprecated_extract_return_value.
5166
5167 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5168
5169 * rs6000-tdep.c (TDEP): Delete macro.
5170 (branch_dest): Replace use of TDEP macro with its body.
5171 (rs6000_pop_frame): Ditto.
5172 (rs6000_push_arguments): Ditto.
5173 (rs6000_skip_trampoline_code): Ditto.
5174 (rs6000_frame_saved_pc): Ditto.
5175 (rs6000_frame_chain): Ditto.
5176 (rs6000_register_name): Ditto.
5177 (rs6000_register_byte): Ditto.
5178 (rs6000_register_raw_size): Ditto.
5179 (rs6000_register_virtual_type): Ditto.
5180 (rs6000_register_convertible): Ditto.
5181 (rs6000_convert_from_func_ptr_addr): Ditto.
5182
5183 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5184
5185 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5186 conditionally.
5187 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5188 MIPS_LINUX_JB_ELEMENT_SIZE.
5189 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5190 for MAX_REGISTER_RAW_SIZE arrays.
5191 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5192 MIPS_LINUX_JB_ELEMENT_SIZE.
5193
5194 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5195
5196 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5197
5198 2002-08-19 Aidan Skinner <aidan@velvet.net>
5199
5200 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5201 ada-valprint.c ada-tasks.c.
5202 (YYFILES): Add ada-exp.y.
5203 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5204 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5205 (ada-exp.tab.o): New target.
5206
5207 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5208
5209 * regcache.c (regcache_xfer_part): New function.
5210 (regcache_raw_read_part): New function.
5211 (regcache_raw_write_part): New function.
5212 (regcache_cooked_read_part): New function.
5213 (regcache_cooked_write_part): New function.
5214 * regcache.h (regcache_raw_read_part): Declare.
5215 (regcache_raw_write_part): Declare.
5216 (regcache_cooked_read_part): Declare.
5217 (regcache_cooked_write_part): Declare.
5218
5219 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5220
5221 * remote.c (remote_open_1): Add async_p.
5222 (remote_async_open_1): Delete.
5223 (open_remote_target): Delete.
5224 (remote_open, extended_remote_open): Update calls to remote_open_1.
5225 (remote_async_open, extended_remote_async_open): Call
5226 remote_open_1 instead of remote_async_open_1.
5227
5228 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5229
5230 * blockframe.c: Fix a few coding standard violations.
5231
5232 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5233
5234 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5235 here from ...
5236 * config/i386/tm-i386sco5.h: ... here. File removed.
5237 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5238
5239 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5240 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5241 (TM_FILE): Set to tm-i386.h.
5242 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5243 * config/i386/tm-i386v.h: Remove file.
5244 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5245 instead of "i386/tm-i386v.h".
5246 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5247 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5248 "i386/tm-i386v.h".
5249 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5250 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5251 "i386/tm-i386.h".
5252
5253 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5254
5255 * config/i386/nm-i386v.h: Add protection against
5256 multiple-inclusion.
5257 (i386_register_u_addr): Remove prototype.
5258 (register_u_addr): New prototype.
5259 (REGISTER_U_ADDR): Redefine accordingly.
5260 * i386v-nat.c: Improve several comments.
5261 (i386_register_u_addr): Change signature and rename to
5262 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5263 ubase variable.
5264
5265 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5266
5267 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5268 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5269 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5270 deprecated_extract_return_value.
5271 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5272 rename mips_o32o64_push_arguments.
5273 (mips_gdbarch_init): Update.
5274 (mips_extract_return_value): Delete.
5275 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5276 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5277 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5278 (mips_n32n64_extract_return_value): Clone
5279 mips_extract_return_value.
5280 (mips_store_return_value): Delete.
5281 (mips_o32_store_return_value): Clone mips_store_return_value.
5282 (mips_o64_store_return_value): Clone mips_store_return_value.
5283 (mips_eabi_store_return_value): Clone mips_store_return_value.
5284 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5285
5286 2002-08-18 Aidan Skinner <aidan@velvet.net>
5287
5288 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5289 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5290
5291 2002-08-18 Aidan Skinner <aidan@velvet.net>
5292
5293 * ada-lang.c: Run through gdb_indent.sh.
5294 * ada-lang.h: Run through gdb_indent.sh.
5295 * ada-tasks.c: Run through gdb_indent.sh.
5296 * ada-typeprint.c: Run through gdb_indent.sh.
5297 * ada-valprint.c: Run through gdb_indent.sh.
5298
5299 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5300
5301 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5302 ABI.
5303
5304 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5305
5306 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5307
5308 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5309 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5310
5311 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5312 write_register_gen instead of write_register_bytes.
5313
5314 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5315 i[3456]-*-osf1mk* configurations have been made obsolete.
5316 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5317 i[3456]86-*-osf1mk* hosts obsolete.
5318 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5319 targets obsolete.
5320 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5321 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5322 config/i386/i386m3.mt, config/i386/nm-m3.h,
5323 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5324 config/i386/i386mk.mh, config/i386/i386mk.mt,
5325 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5326 obsolete.
5327 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5328 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5329 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5330
5331 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5332
5333 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5334 (hppa_value_returned_from_stack): Declare.
5335 (hppa_extract_return_value): Declare.
5336 * config/pa/hppa.mt: New file.
5337 * configure.tgt: Recognize hppa*-*-*.
5338 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5339
5340 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5341
5342 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5343 comment.
5344
5345 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5346
5347 * top.c (gdb_rl_operate_and_get_next): Make sure
5348 operate-and-get-next functions correctly even when the history
5349 list is completely filled.
5350
5351 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5352
5353 * MAINTAINERS (Target Instruction Set Architectures): Rename
5354 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5355 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5356 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5357 already listed under Host/Native.
5358
5359 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5360 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5361 mips*-*-*.
5362
5363 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5364
5365 * config/ia64/ia64.mt: New file.
5366 * config/alpha/alpha.mt: New file.
5367 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5368 ia64-linux-gnu. Mention that ia64-elf is broken.
5369 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5370
5371 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5372
5373 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5374 generic_func_frame_valid instead of func_frame_valid.
5375
5376 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5377
5378 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5379 procfs appears to be broken when debugging on multi-processor
5380 machines. So enable software single stepping in order to avoid
5381 using the procfs interface to do next/step operations, using
5382 internal breakpoints instead.
5383
5384 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5385 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5386 make this pc address equal to the value it would have if the
5387 system stepping capability was used. Also set a new flag used
5388 to ensure that we don't readjust the PC one more time later.
5389
5390 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5391 address by DECR_PC_AFTER_BREAK when software single step is
5392 in use for this architecture, as this has already been taken
5393 care of in handle_inferior_event().
5394
5395 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5396
5397 * infrun.c (handle_inferior_event): Minor reformatting, to make
5398 a rather long condition expression easier to read.
5399
5400 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5401
5402 * Makefile.in (gdbtk.o): Move to end of file.
5403 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5404 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5405 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5406 (gdbtk-wrapper.o, gdbres.o): Ditto.
5407
5408 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5409
5410 * Makefile.in (copying.o): Separate out compile rule.
5411 (hpux-thread.o, procfs.o, signals.o): Ditto.
5412 (v850ice.o, z8k-tdep.o): Ditto.
5413 (tui-file.o): Move to TUI section.
5414 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5415 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5416
5417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5418
5419 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5420 skip_trampoline_code, for better namespace-proofing.
5421
5422 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5423
5424 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5425
5426 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5427
5428 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5429
5430 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5431 signal, check whether we hit a breakpoint before checking for a
5432 single step breakpoint. Otherwise, GDB fails to notice that a
5433 breakpoint has been hit when stepping onto a breakpoint.
5434
5435 2002-08-16 Keith Seitz <keiths@redhat.com>
5436
5437 * gdb-events.sh (clear_gdb_event_hooks): New function.
5438 * gdb-events.c: Regenerate.
5439 * gdb-events.h: Regenerate.
5440
5441 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5442
5443 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5444 not_a_sw_breakpoint.
5445 * breakpoint.h (bpstat_stop_status): Add parameter names.
5446
5447 2002-08-16 Grace Sainsbury <graces@redhat.com>
5448
5449 * remote.c (remote_insert_hw_breakpoint)
5450 (remote_remove_hw_breakpoint): Fix calculation of length field
5451 for Z-packet.
5452
5453 2002-08-15 Michael Snyder <msnyder@redhat.com>
5454
5455 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5456 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5457 (supply_fpregset): Ditto.
5458
5459 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5460 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5461 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5462 (TARGET_READ_SP): Delete.
5463 (DO_REGISTERS_INFO): Delete.
5464 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5465 Delete.
5466 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5467 from macros to functions.
5468
5469 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5470 (mips_register_convertible, mips_register_convert_to_virtual,
5471 mips_register_convert_to_raw): Make static.
5472 (mips_read_sp): New function.
5473 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5474 (mips_do_registers_info): Make static.
5475 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5476 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5477 (mips_register_convert_from_type, mips_register_convert_to_type):
5478 New functions.
5479 (mips_gdbarch_init): Set up function_start_offset,
5480 register_virtual_size, pc_in_sigtramp.
5481
5482 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5483
5484 * infcmd.c (vector_info): New function.
5485 (_initialize_infcmd): Add command "info vector".
5486 (print_vector_info): New function.
5487
5488 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5489 * gdbarch.h, gdbarch.c: Regenerate.
5490
5491 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5492
5493 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5494 ``print_all''. Only print vector registers when ``print_all''.
5495
5496 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5497
5498 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5499 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5500
5501 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5502 Add `args' parameter.
5503 * gdbarch.h, gdbarch.c: Regenerate.
5504
5505 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5506
5507 * infcmd.c (float_info): Call print_float_info.
5508 (print_float_info): New function. By default, print the
5509 floating-point registers.
5510
5511 * arch-utils.h (default_print_float_info): Delete declaration.
5512 * arch-utils.c (default_print_float_info): Delete function.
5513
5514 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5515
5516 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5517 out define.
5518
5519 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5520 FRAME.
5521
5522 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5523 * configure.host: Make i[3456]86-*-aix host obsolete.
5524 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5525 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5526 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5527 config/i386/xm-i386aix.h: Make files obsolete.
5528 * i386aix-nat.c: Make file obsolete.
5529 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5530 (i386aix-nat.o): Make target obsolete.
5531
5532 * config/i386/nm-gnu.h: Removed.
5533 * config/i386/nm-i386gnu.h: New file.
5534 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5535 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5536 Moved here from ...
5537 * config/i386/tm-i386gnu.h: ... here. Removed.
5538 * config/i386/xm-i386gnu.h: Removed.
5539 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5540 (NAT_FILE): Set to nm-i386gnu.h.
5541 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5542 * i386-tdep.c: New file.
5543 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5544 (i386gnu-tdep.o): Specify dependencies.
5545
5546 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5547
5548 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5549 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5550 Adjust a few comments to reflect reality a bit closer.
5551 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5552 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5553 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5554 target_insert_watchpoint, target_remove_watchpoint):
5555 Move defines to ...
5556 * config/i386/nm-i386sco5.h: ... here.
5557 (kernel_u_size): Add prototype. Improve a few comments and add
5558 protection against multiple inclusion.
5559
5560 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5561 out define.
5562
5563 * uw-thread.c (SP_ARG0): Define if not already defined.
5564 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5565
5566 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5567
5568 * config/i386/tm-i386.h: Don't include "regcache.h".
5569
5570 * i387-tdep.h (i387_print_float_info): New prototype.
5571 * i387-tdep.c (print_i387_value, print_i387_ext,
5572 print_i387_status_word, print_i387_control_word): Add `struct
5573 ui_file *' argument and use it for output.
5574 (i387_print_float_info): Renamed from i387_float_info. Add
5575 `struct gdbarch *' and `struct ui_file *' arguments and use the
5576 latter for output.
5577 * i386-tdep.c: Include "i387-tdep.h".
5578 (i386_gdbarch_init): Set print_float_info.
5579 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5580 (FLOAT_INFO): Remove define.
5581
5582 2002-08-13 Michael Snyder <msnyder@redhat.com>
5583
5584 * mips-tdep.c (mips_push_arguments): Rename to
5585 mips_eabi_push_arguments, and tune for EABI.
5586 (MIPS_REGS_HAVE_HOME_P): Delete.
5587 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5588 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5589 Delete references to mips_regs_have_home_p.
5590
5591 2002-08-14 Keith Seitz <keiths@redhat.com>
5592
5593 * Makefile.in (install-gdbtk): Create insight plugin directory.
5594 Install plugins.tcl file.
5595
5596 2002-08-14 Keith Seitz <keiths@redhat.com>
5597
5598 * configure.in: Move SUBDIRS to near top of the file so that
5599 --enable options may add things to it.
5600 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5601 * configure: Regenerate.
5602
5603 2002-08-13 Michael Snyder <msnyder@redhat.com>
5604
5605 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5606 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5607 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5608
5609 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5610
5611 * vax-tdep.c (vax_get_saved_register): Delete function.
5612 (vax_gdbarch_init): Update.
5613 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5614 (ns32k_gdbarch_init): Update.
5615 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5616 (alpha_gdbarch_init): Update.
5617
5618 2002-08-13 Andrew Cagney <cagney@redhat.com>
5619
5620 * regcache.c (init_regcache_descr): Overallocate the
5621 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5622 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5623 nr_raw_registers.
5624 (set_register_cached): Add range checking assertions. Use
5625 current_regcache.
5626
5627 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5628
5629 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5630 numbers for MMX registers.
5631
5632 2002-08-13 Andrew Cagney <cagney@redhat.com>
5633
5634 * i386-tdep.c (i386_gdbarch_init): Use
5635 generic_unwind_get_saved_register.
5636
5637 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5638
5639 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5640 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5641 target vector.
5642 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5643 Delete. Add comment regarding this now-deleted target method.
5644
5645 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5646
5647 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5648 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5649 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5650 real PC and the page number (if it's within the memory bank window).
5651 (m68hc11_pseudo_register_write): Likewise when saving.
5652 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5653 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5654 (m68hc11_register_raw_size): And use 32-bit for it.
5655 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5656 16K memory bank is used by the prog; also use the virtual pc.
5657
5658 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5659
5660 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5661 (m68hc11_gdbarch_init): Install it in gdbarch.
5662 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5663 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5664 (MSYMBOL_SIZE): New for documentation.
5665 (insn_return_kind): Enum to specify how a function returns.
5666 (frame_extra_info): Cleanup and record the return mode.
5667 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5668 register in address computation.
5669 (m68hc11_get_return_insn): New to obtain the return instruction used
5670 by the function.
5671 (m68hc11_frame_init_saved_regs): Take into account the return
5672 instruction used by the function for far and interrupt functions.
5673 (m68hc11_init_extra_frame_info): Take into account page register.
5674 (m68hc11_frame_args_address): Adjust according to the return mode.
5675 (show_regs): Print page register only when it's used.
5676
5677 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5678
5679 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5680 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5681 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5682 registers.
5683 (m68hc11_register_raw_size): Likewise.
5684
5685 2002-08-13 Andrew Cagney <cagney@redhat.com>
5686
5687 * i386-tdep.c (i386_register_name): Handle mmx registers.
5688 (mmx_regnum_p): New function.
5689 (i386_mmx_names): New array.
5690 (mmx_num_regs): New variable.
5691 (i386_pseudo_register_read): New function.
5692 (i386_pseudo_register_write): New function.
5693 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5694
5695 * regcache.c (regcache_raw_read_unsigned): New function.
5696 (regcache_raw_read_signed): New function.
5697 * regcache.h (regcache_raw_read_unsigned): Declare.
5698 (regcache_raw_read_signed): Declare.
5699
5700 2002-08-13 Andrew Cagney <cagney@redhat.com>
5701
5702 * regcache.c (regcache_raw_read_as_address): Delete function.
5703 (regcache_cooked_read_signed): New function.
5704 (regcache_cooked_read_unsigned): New function.
5705 * regcache.h (regcache_cooked_read_signed): Declare.
5706 (regcache_cooked_read_unsigned): Declare.
5707 (regcache_raw_read_as_address): Delete declaration.
5708
5709 * blockframe.c (generic_read_register_dummy): Use
5710 regcache_cooked_read_unsigned.
5711 * i386-tdep.c (i386_extract_struct_value_address): Use
5712 regcache_cooked_read_unsigned.
5713
5714 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5715
5716 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5717 double sizes according to ELF ABI flags.
5718 (gdbarch_tdep): Record elf_flags.
5719
5720 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5721
5722 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5723 (m6812_prolog): They can appear in 68HC12 function prologue.
5724 (m68hc11_frame_chain): Cleanup.
5725
5726 2002-08-12 Andrew Cagney <cagney@redhat.com>
5727
5728 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5729 declarations.
5730 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5731 (i386_linux_register_raw_size): Delete function.
5732 (i386_linux_init_abi): Update.
5733 * i386-tdep.c (i386_register_raw_size): Delete function.
5734 (i386_register_byte): Delete function.
5735 (i386_gdbarch_init): Update.
5736 (i386_register_size): Delete array.
5737 (i386_register_offset): Delete array.
5738
5739 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5740 (REGISTER_RAW_SIZE): Delete macro.
5741 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5742 (REGISTER_BYTE): Delete macro.
5743
5744 2002-08-11 Aidan Skinner <aidan@velvet.net>
5745
5746 * ada-lang.c (ada_lookup_partial_symbol)
5747 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5748 prototype names so that grep ^func works properly.
5749
5750 * ada-lang.c (ada_array_element_type)
5751 (ada_lookup_partial_symbol): Fix typos in parameter list.
5752
5753 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5754 Fix prototype names so that grep ^func works properly.
5755
5756 2002-08-10 Andrew Cagney <cagney@redhat.com>
5757 Elena Zannoni <ezannoni@redhat.com>
5758 Martin M. Hunt <hunt@redhat.com>
5759
5760 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5761 (build_builtin_type_vec128i): Set the vector bit.
5762 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5763 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5764 (build_builtin_type_vec64): New function.
5765 (build_builtin_type_vec64i): New function.
5766 (build_gdbtypes): Initialize builtin_type_vec64 and
5767 builtin_type_vec64i.
5768
5769 2002-08-09 Andrew Cagney <cagney@redhat.com>
5770
5771 * regcache.c (regcache_dump): Compare the register offset
5772 with REGISTER_BYTE.
5773 * arch-utils.c (generic_register_byte): New function.
5774 * arch-utils.h (generic_register_byte): Declare.
5775 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5776 * gdbarch.h, gdbarch.c: Regenerate.
5777
5778 2002-08-09 Andrew Cagney <cagney@redhat.com>
5779
5780 * regcache.c: Include "gdbcmd.h"
5781 (_initialize_regcache): Add commands "maintenance print
5782 registers", "maintenance print raw-registers" and "maintenance
5783 print cooked-registers".
5784 (enum regcache_dump_what): Define.
5785 (dump_endian_bytes): New function.
5786 (regcache_dump): New function.
5787 (regcache_print): New function.
5788 (maintenance_print_registers): New function.
5789 (maintenance_print_raw_registers): New function.
5790 (maintenance_print_cooked_registers): New function.
5791 * Makefile.in (regcache.o): Update dependencies.
5792
5793 2002-08-09 Michael Snyder <msnyder@redhat.com>
5794
5795 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5796 (mips_push_arguments): Correct some comments. Use paddr_nz
5797 for printing addresses in debug output. Replace static
5798 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5799 (mips_n32n64_push_arguments): New function, cloned from
5800 mips_push_arguments and tuned for the n32/n64 ABI.
5801 (mips_push_register): Buffer needs dynamic allocation.
5802 (mips_print_register): Ditto.
5803 (do_gp_register_row): Ditto.
5804 (mips_store_return_value): Ditto.
5805 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5806
5807 2002-08-09 Don Howard <dhoward@redhat.com>
5808
5809 * memattr.c (mem_info_command): Print special case of upper bound
5810 as max CORE_ADDR + 1.
5811
5812 2002-08-08 Michael Snyder <msnyder@redhat.com>
5813
5814 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5815 returns structs by ref if they're too big to fit in two registers.
5816
5817 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5818
5819 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5820 saved regs value.
5821 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5822 mips_find_saved_regs().
5823 (mips_pop_frame): Likewise.
5824
5825 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5826
5827 * blockframe.c (frame_saved_regs_register_unwind): Revise
5828 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5829 frames are in use.
5830
5831 2002-08-09 Grace Sainsbury <graces@redhat.com>
5832
5833 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5834 T-packets; the 'a' is not taken as a register number.
5835 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5836 (remote_stopped_data_address): New functions; add to target
5837 vector.
5838 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5839 prototypes to match other implementations of this
5840 function. replace integer argument with pointer -- the length
5841 field in the Z-packet is the length of what is pointed to or 1 if
5842 pointer is null. Add to target vector.
5843 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5844 target vector.
5845
5846 From Mark Salter:
5847 * remote.c (remote_wait): Add support to extract optional
5848 watchpoint information from T-packet. Ignore unrecognized
5849 optional info in T-packet.
5850 (remote_async_wait): Ditto.
5851
5852 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5853
5854 * cli/cli-dump.c: Change fopen modes to use binary open modes
5855 as defined in include/fopen-bin.h throughout.
5856
5857 2002-08-08 Michael Snyder <msnyder@redhat.com>
5858
5859 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5860
5861 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5862
5863 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5864 assertion failure by returning early after a warning.
5865
5866 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5867
5868 * mips-tdep.c (mips_find_saved_regs): Make static.
5869 (mips_frame_init_saved_regs): New function.
5870 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5871 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5872 (mips_find_saved_regs): Delete declaration.
5873
5874 2002-08-08 Grace Sainsbury <graces@redhat.com>
5875
5876 * remote.c (remote_wait, remote_async_wait): Change
5877 thread_num from int to ULONGEST.
5878 (unpack_varlen_hex): Change result parameter from
5879 int * to ULONGEST *.
5880
5881 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5882
5883 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5884 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5885 powerpc*-*-*.
5886 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5887
5888 2002-08-08 Andrew Cagney <cagney@redhat.com>
5889
5890 * gcore.c (override_derive_stack_segment): Delete variable.
5891 (preempt_derive_stack_segment): Delete function.
5892 (derive_stack_segment): Delete function.
5893 (default_derive_stack_segment): Renamed to derive_stack_segment.
5894 (override_derive_heap_segment): Delete variable.
5895 (preempt_derive_heap_segment): Delete function.
5896 (derive_heap_segment): Delete function.
5897 (default_derive_heap_segment): Rename to derive_heap_segment.
5898
5899 2002-08-06 Michael Snyder <msnyder@redhat.com>
5900
5901 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5902 * mips-tdep.c (mips_EABI_use_struct_convention,
5903 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5904 New functions. (mips_use_struct_convention): Delete.
5905 (mips_gdbarch_init): set use_gdbarch_convention.
5906
5907 2002-08-06 Michael Snyder <msnyder@redhat.com>
5908
5909 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5910 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5911 mips_o32_reg_struct_has_addr): New functions.
5912 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5913
5914 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5915
5916 * regcache.c (pseudo_register): Delete function.
5917 (fetch_register): Delete function.
5918 (store_register): Delete function.
5919 (regcache_raw_read, legacy_read_register_gen): Use
5920 target_fetch_registers instead of fetch_register.
5921 (legacy_write_register_gen, regcache_raw_write): Use
5922 target_store_register instead of store_register.
5923 (write_register_bytes): Ditto.
5924
5925 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5926 (STORE_PSEUDO_REGISTER): Delete.
5927 * gdbarch.h, gdbarch.c: Regenerate.
5928
5929 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5930
5931 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5932 write dump file binary.
5933
5934 2002-08-05 Michael Snyder <msnyder@redhat.com>
5935
5936 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5937 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5938 (mips_gdbarch_init): Set N32 target to be mips64.
5939
5940 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5941
5942 * frame.c (find_saved_register): Break out of loop once saved
5943 register address is found. Don't mention sparc in loop comment
5944 anymore.
5945
5946 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5947
5948 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5949 mips_default_saved_regsize to 8.
5950
5951 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5952
5953 * gcore.c: Do not include <sys/procfs.h>.
5954 * Makefile.in (gcore.o): Update dependencies.
5955
5956 2002-08-06 Andrew Cagney <cagney@redhat.com>
5957
5958 * configure.tgt: Make arc-*-* obsolete.
5959 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5960 * MAINTAINERS: Make arc-elf obsolete.
5961 * arc-tdep.c: Make file obsolete.
5962 * config/arc/arc.mt: Ditto.
5963 * config/arc/tm-arc.h: Ditto.
5964
5965 2002-08-05 Theodore A. Roth <troth@verinet.com>
5966
5967 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5968
5969 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5970
5971 * mcore-tdep.c (mcore_gdbarch_init): Use
5972 generic_unwind_get_saved_register instead of
5973 generic_get_saved_register.
5974 * v850-tdep.c (v850_gdbarch_init): Ditto.
5975 * frv-tdep.c (frv_gdbarch_init): Ditto.
5976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5977 * s390-tdep.c (s390_gdbarch_init): Ditto.
5978 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5979 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5980 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5981
5982 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5983
5984 * objfiles.h: Add missing #include "symfile.h"
5985
5986 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5987
5988 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5989
5990 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5991 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5992 of FIELD_BITSIZE.
5993
5994 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5995
5996 * NEWS: Cleanup and nitpick.
5997
5998 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5999
6000 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6001
6002 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6003
6004 * Makefile.in (gdbtk-bp.o): Update dependencies.
6005 (gdbtk-register.o): Ditto.
6006 (gdbtk-varobj.o): Ditto.
6007
6008 2002-08-03 Andrew Cagney <cagney@redhat.com>
6009
6010 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6011 m68hc11_fetch_pseudo_register.
6012 (m68hc11_pseudo_register_write): Replace
6013 m68hc11_store_pseudo_register.
6014 (m68hc11_gdbarch_init): Update.
6015
6016 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6017
6018 * gdbarch.sh: Include "gdb_string.h".
6019 * gdbarch.c: Regenerate.
6020
6021 * regcache.c: Include "gdb_string.h".
6022 * ax-general.c: Ditto.
6023 * varobj.c: Ditto.
6024 * std-regs.c: Ditto.
6025 * fbsd-proc.c: Ditto.
6026 * thread.c: Ditto.
6027
6028 * Makefile.in (regcache.o): Update dependencies.
6029 (thread.o, gdbarch.o): Ditto.
6030 (ax-general.o, gdbarch.o): Ditto.
6031 (varobj.o, std-regs.o): Ditto.
6032 (fbsd-proc.o): Specify dependencies.
6033
6034 2002-08-02 Andrew Cagney <cagney@redhat.com>
6035
6036 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6037 regnum.
6038 (regcache_cooked_write): Ditto.
6039
6040 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6041
6042 * regcache.c (regcache_cooked_read): New function.
6043 (regcache_cooked_write): New function.
6044 (read_register_gen): Rewrite using regcache_cooked_read.
6045 (write_register_gen): Rewrite using regcache_cooked_write.
6046
6047 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6048 Declare.
6049
6050 2002-08-02 Andrew Cagney <cagney@redhat.com>
6051
6052 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6053 Replace the architecture methods register_read and register_write.
6054 * gdbarch.h, gdbarch.c: Regenerate.
6055 * regcache.c (init_regcache_descr): Update.
6056 (read_register_gen): Update.
6057 (write_register_gen): Update.
6058 (supply_register): Update comment.
6059
6060 * sh-tdep.c (sh_gdbarch_init): Update.
6061 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6062 `regcache' and `gdbarch' parameters. Make `buffer' a void
6063 pointer. Update code.
6064 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6065 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6066 void pointer. Update code.
6067 (sh64_register_write): Delete.
6068 (sh4_register_read): Delete.
6069 (sh64_register_read): Delete.
6070 (sh4_register_write): Delete.
6071 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6072 void pointer, `to' parameter a void pointer.
6073 (sh_sh64_register_convert_to_raw): Ditto.
6074
6075 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6076
6077 * mips-tdep.c (mips_register_virtual_type): Use architecture
6078 invariant return values.
6079
6080 2002-08-01 Andrew Cagney <cagney@redhat.com>
6081
6082 * linux-proc.c: Include "gdb_string.h".
6083 * Makefile.in (linux-proc.o): Update dependency list.
6084
6085 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6086
6087 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6088 comment.
6089
6090 2002-08-01 Grace Sainsbury <graces@redhat.com>
6091
6092 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6093 to_insert_watchpoint, to_remove_watchpoint,
6094 to_stopped_by_watchpoint, to_stopped_data_address,
6095 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6096 target vecctor. Define their corresponding macros so they call
6097 them.
6098
6099 * target.c: Add default and debug versions of for
6100 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6101 to_insert_watchpoint, to_remove_watchpoint,
6102 to_stopped_by_watchpoint, to_stopped_data_address,
6103 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6104
6105 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6106
6107 * mips-tdep.c (mips_register_virtual_type): New function.
6108 (mips_gdbarch_init): Register mips_register_virtual_type()
6109 with gdbarch machinery.
6110 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6111 this file instead of tm-bigmips.h.
6112 (MIPS_REGSIZE): Delete this macro.
6113 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6114 multiarch version in mips-tdep.c will be found.
6115
6116 2002-08-01 Andrew Cagney <cagney@redhat.com>
6117
6118 * NEWS: Menion that CHILL has been made obsolete.
6119
6120 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6121 * stabsread.c (read_range_type): Ditto.
6122 * gdbtypes.h: Ditto.
6123 * language.c (binop_type_check): Ditto.
6124 (binop_result_type): Ditto.
6125 (integral_type): Ditto.
6126 (character_type): Ditto.
6127 (string_type): Ditto.
6128 (boolean_type): Ditto.
6129 (structured_type): Ditto.
6130 (lang_bool_type): Ditto.
6131 (binop_type_check): Ditto.
6132 * language.h (_LANG_chill): Ditto.
6133 * dwarfread.c (set_cu_language): Ditto.
6134 * dwarfread.c (CHILL_PRODUCER): Ditto.
6135 * dwarfread.c (handle_producer): Ditto.
6136 * expression.h (enum exp_opcode): Ditto.
6137 * eval.c: Ditto for comments.
6138 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6139 * expprint.c (print_subexp): Ditto.
6140 (print_subexp): Ditto.
6141 * valops.c (value_cast): Ditto.
6142 (search_struct_field): Ditto.
6143 * value.h (COERCE_VARYING_ARRAY): Ditto.
6144 * symfile.c (init_filename_language_table): Ditto.
6145 (add_psymbol_with_dem_name_to_list): Ditto.
6146 * valarith.c (value_binop): Ditto.
6147 (value_neg): Ditto.
6148 * valops.c (value_slice): Ditto.
6149 * symtab.h (union language_specific): Ditto.
6150 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6151 (SYMBOL_DEMANGLED_NAME): Ditto.
6152 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6153 * defs.h (enum language): Ditto.
6154 * symtab.c (got_symtab): Ditto.
6155 * utils.c (fprintf_symbol_filtered): Ditto.
6156
6157 * ch-typeprint.c: Make file obsolete.
6158 * ch-valprint.c: Make file obsolete.
6159 * ch-lang.h: Make file obsolete.
6160 * ch-exp.c: Make file obsolete.
6161 * ch-lang.c: Make file obsolete.
6162
6163 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6164 CHILL_LIB.
6165 (TARGET_FLAGS_TO_PASS): Ditto.
6166 (CHILLFLAGS): Obsolete.
6167 (CHILL): Obsolete.
6168 (CHILL_FOR_TARGET): Obsolete.
6169 (CHILL_LIB): Obsolete.
6170 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6171 ch-valprint.c.
6172 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6173 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6174 ch-lang.o.
6175 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6176 targets.
6177
6178 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6179
6180 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6181 This does not change anything at the moment, but will be helpful
6182 later when full Ada support is integrated.
6183
6184 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6185
6186 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6187 help message.
6188
6189 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6190
6191 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6192 and save it in a local variable. Use variable in later test.
6193
6194 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6195
6196 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6197 test. (Thanks to Daniel Jacobowitz.)
6198
6199 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6200
6201 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6202 (mips_abi_strings): Add "n64".
6203 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6204
6205 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6206
6207 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6208 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6209
6210 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6211
6212 * utils.c (host_pointer_to_address, address_to_host_pointer):
6213 Use gdb_assert() instead of explicit call to internal_error().
6214
6215 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6216
6217 * Makefile.in (rs6000-nat.o): Update dependencies.
6218
6219 From Nicholas Duffek:
6220 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6221 (aix-thread.o): New rule.
6222 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6223 * config/powerpc/aix432.mh: New file.
6224
6225 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6226
6227 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6228 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6229 (fetch_core_registers, ppc_linux_supply_gregset)
6230 (ppc_linux_supply_fpregset): New functions.
6231 (ppc_linux_regset_core_fns): New.
6232 (_initialize_ppc_linux_tdep): Call add_core_fns.
6233 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6234 and ppc_linux_supply_gregset.
6235 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6236 (supply_fpregset): Call ppc_linux_supply_fpregset.
6237 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6238 corelow.o.
6239 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6240
6241 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6242
6243 * symtab.c (lookup_symbol): Demangle before lowercasing.
6244
6245 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6246
6247 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6248 declaration.
6249 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6250 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6251 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6252 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6253 "gdb_string.h".
6254 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6255 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6256 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6257 (avr-tdep.o, mon960-rom.o): Ditto.
6258 (aout_stabs_gnu_h): Define.
6259 (symtab_h): Remove $(gdb_obstack_h).
6260
6261 2002-07-30 Jim Blandy <jimb@redhat.com>
6262
6263 Patch from David Carlton <carlton@math.stanford.edu>:
6264 * gdbinit.in: Move the `dir' commands that add GDB's own source
6265 directory to the search path to the end, so that the `gdb' source
6266 directory will be searched first.
6267
6268 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6269
6270 * gdb_obstack.h: New file.
6271 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6272 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6273 * objfiles.h: Include "gdb_obstack.h".
6274 * Makefile.in (gdb_obstack_h): Define.
6275 (symtab_h): Add $(gdb_obstack_h).
6276 (objfiles_h): Add $(gdb_obstack_h).
6277
6278 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6279 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6280 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6281 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6282 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6283 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6284 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6285 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6286
6287 * Makefile.in (bcache.o): Update dependencies.
6288 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6289 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6290 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6291 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6292 (stabsread.o, symfile.o, symmisc.o): Ditto.
6293 (symtab.o, typeprint.o, macroexp.o): Ditto.
6294 (macrotab.o, mdebugread.o): Ditto.
6295 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6296 (coff_ecoff_h, aout_aout64_h): Define.
6297 (aout_stabs_gnu_h, libaout_h): Define.
6298
6299 2002-07-29 Andrew Cagney <cagney@redhat.com>
6300
6301 * regcache.c (struct regcache_descr): Rename nr_registers to
6302 nr_cooked_registers. Revise comments describing the structure
6303 member fields.
6304 (init_regcache_descr): Update.
6305 (init_legacy_regcache_descr): Update.
6306 (read_register_gen, write_register_gen): When a cooked register in
6307 the raw register range, directly access the value from the raw
6308 register cache.
6309
6310 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6311
6312 * z8k-tdep.c: Do not include "obstack.h".
6313 * h8300-tdep.c, h8500-tdep.c: Ditto.
6314 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6315 * valprint.c, v850-tdep.c: Ditto.
6316 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6317 * mn10200-tdep.c: Ditto.
6318
6319 * Makefile.in (z8k-tdep.o): Update dependencies.
6320 (m68hc11-tdep.o, valprint.o): Ditto.
6321 (v850-tdep.o, d10v-tdep.o): Ditto.
6322 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6323 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6324 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6325 (sh_opc_h, gdb_sim_sh_h): Define.
6326 (elf_sh_h, elf_bfd_h): Define.
6327 (opcode_m68hc11_h): Define.
6328 (OPCODES_SRC, OPCODES_DIR): define.
6329 (OPCODES): Use $(OPCODES_DIR).
6330 (gdb_sim_d10v_h): Rename sim_d10v_h.
6331 (gdb_sim_arm_h): Rename sim_arm_h.
6332
6333 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6334
6335 * utils.c (host_pointer_to_address, address_to_host_pointer):
6336 Change internal_error() message to indicate function responsible
6337 for the error.
6338
6339 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6340
6341 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6342 calls to local_hex_string_custom().
6343
6344 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6345
6346 * irix5-nat.c: Move IRIX shared library support from here...
6347 * solib-irix.c: ...to here. Revised substantially to work with
6348 generic solib framework.
6349
6350 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6351 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6352 * mips-irix-tdep.c: New file.
6353
6354 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6355 (mips-irix-tdep.o, solib-irix.o): New rules.
6356 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6357 solib-irix.o.
6358 * config/mips/irix6.mt (TDEPFILES): Likewise.
6359 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6360
6361 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6362
6363 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6364 disabled (via ``#if 0'') includes.
6365
6366 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6367
6368 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6369 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6370 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6371 Add support for the fpscr register.
6372 * rs6000-nat.c (regmap, fetch_inferior_registers)
6373 (store_inferior_registers, fetch_core_registers): Likewise.
6374
6375 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6376
6377 * rs6000-nat.c (language.h): Include.
6378 (special_regs): Delete this array.
6379 (regmap): New function.
6380 (fetch_register, store_register): Use regmap() to map gdb
6381 register numbers to ptrace register numbers. Also, use
6382 outputs from regmap() to make decisions regarding type of
6383 ptrace() call to make. In particular, don't compare against
6384 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6385 (fetch_inferior_registers, store_inferior_registers): Where
6386 possible, obtain register numbers from tdep struct. Don't
6387 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6388 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6389 (LAST_UISA_SP_REGNUM): Delete.
6390
6391 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6392
6393 * rs6000-nat.c (ppc-tdep.h): Include.
6394 (fetch_registers, store_register, fetch_core_registers): Don't
6395 access registers[] directly. Instead, use supply_register() or
6396 regcache_collect() as appropriate.
6397 (find_toc_address): Format hex address with local_hex_string().
6398
6399 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6400
6401 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6402 bfd/elf32-frv.c.
6403
6404 2002-07-24 Tom Tromey <tromey@redhat.com>
6405
6406 * jv-exp.y: Marked all strings with _().
6407 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6408 internal_error.
6409 (MethodInvocation, CastExpression, parse_number, yyerror,
6410 java_type_from_name, push_expression_name, yylex): Typo fixes.
6411
6412 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6413
6414 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6415 (tee_file_flush, tee_file_write, tee_file_fputs)
6416 (tee_file_isatty): New.
6417 * ui-file.h (tee_file_new): Add prototype.
6418
6419 2002-07-24 Aidan Skinner <aidan@velvet.net>
6420
6421 * ada-lang.c: Change k&r style function definitions to prototyped
6422 form.
6423 * ada-typeprint.c: Change k&r style function definitions to prototyped
6424 form.
6425 * ada-valprint.c: Change k&r style function definitions to prototyped
6426 form.
6427
6428 2002-07-24 Andrew Cagney <cagney@redhat.com>
6429
6430 * README: Remove reference to remote-bug.
6431 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6432 remote-bug.c.
6433 (m88k-nat.o): Delete rule.
6434 (m88k-tdep.o): Delete rule.
6435 (remote-bug.o): Delete rule.
6436 * MAINTAINERS: Mark as obsolete.
6437 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6438 * m88k-tdep.c: Make file obsolete.
6439 * config/m88k/m88k.mh: Ditto.
6440 * config/m88k/delta88v4.mh: Ditto.
6441 * config/m88k/delta88v4.mt: Ditto.
6442 * config/m88k/delta88.mt: Ditto.
6443 * config/m88k/delta88.mh: Ditto.
6444 * remote-bug.c: Ditto.
6445 * config/m88k/tm-delta88.h: Ditto.
6446 * config/m88k/nm-delta88v4.h: Ditto.
6447 * config/m88k/xm-delta88.h: Ditto.
6448 * config/m88k/xm-dgux.h: Ditto.
6449 * config/m88k/tm-m88k.h: Ditto.
6450 * config/m88k/nm-m88k.h: Ditto.
6451 * config/m88k/tm-delta88v4.h: Ditto.
6452 * m88k-nat.c: Ditto.
6453 * cxux-nat.c: Ditto.
6454 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6455 and m88*-*-* obsolete.
6456 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6457 m88*-*-* obsolete.
6458
6459 2002-07-24 Andrew Cagney <cagney@redhat.com>
6460
6461 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6462 constant. Same for local pointer variables.
6463 (extract_signed_integer): Ditto.
6464 * defs.h (extract_unsigned_integer): Update.
6465 (extract_signed_integer): Update.
6466
6467 2002-07-24 Andrew Cagney <cagney@redhat.com>
6468
6469 * regcache.c (regcache_raw_write): Change buf parameter to a
6470 constant void pointer.
6471 (regcache_raw_read): Change buf parameter to a void pointer.
6472 (legacy_write_register_gen): Change myaddr parameter a constant
6473 void pointer.
6474 (supply_register): Change val parameter to a const void pointer.
6475 * regcache.h (regcache_raw_write): Update declaration.
6476 (regcache_raw_read): Update declaration.
6477 (supply_register): Update declaration.
6478
6479 2002-07-24 Tom Tromey <tromey@redhat.com>
6480
6481 * defs.h (gdb_readline_wrapper): Declare.
6482 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6483 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6484 * top.c (gdb_readline_wrapper): New function.
6485 (command_line_input): Use it.
6486
6487 2002-07-24 Andrew Cagney <cagney@redhat.com>
6488
6489 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6490 regcache_read and regcache_write.
6491 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6492 * regcache.c: Update.
6493 * sh-tdep.c (sh64_push_arguments): Update comment.
6494 (sh_pseudo_register_read): Update.
6495 (sh_pseudo_register_write): Update.
6496 (sh4_register_read): Update.
6497 (sh4_register_write): Update.
6498 (sh64_pseudo_register_read): Update.
6499 (sh64_pseudo_register_write): Update.
6500 (sh64_register_read): Update.
6501 (sh64_register_write): Update.
6502 * i386-tdep.c (i386_extract_return_value): Update.
6503 (i386_extract_struct_value_address): Update.
6504 (i386_extract_return_value): Update.
6505 * blockframe.c (generic_read_register_dummy): Update.
6506 (generic_call_dummy_register_unwind): Update
6507 * infrun.c (write_inferior_status_register): Update.
6508
6509 2002-07-23 Jim Blandy <jimb@redhat.com>
6510
6511 * parser-defs.h (expression_context_pc): Make this extern.
6512 (Thanks to Michael Snyder.)
6513
6514 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6515
6516 GDB 5.2.1 released from 5.2 branch.
6517 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6518 * README: Update to mention 5.2.1.
6519
6520 2002-07-23 Mark Salter <msalter@redhat.com>
6521
6522 * remote.c (remote_read_bytes): Fix check for error.
6523
6524 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6525
6526 * aix-thread.c (language.h): Include.
6527 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6528 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6529 Print newlines at end of debug messages.
6530 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6531 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6532
6533 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6534
6535 * aix-thread.c (ppc-tdep.h): Include.
6536 (special_register_p): New function.
6537 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6538 (store_regs_user_thread): Use register number information from
6539 gdbarch_tdep struct instead of hardcoded offsets relative to
6540 FIRST_UISA_SP_REGNUM.
6541 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6542 special_register_p() instead of using FPLAST_REGNUM and
6543 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6544 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6545 will be MQ's register number.
6546
6547 2002-07-22 Michael Snyder <msnyder@redhat.com>
6548
6549 * aix-thread.c (ops): Rename to aix_thread_ops.
6550 (base_ops): Rename to base_target.
6551 (ops_attach): Rename to aix_thread_attach.
6552 (ops_detach): Rename to aix_thread_detach.
6553 (ops_resume): Rename to aix_thread_detach.
6554 (ops_wait): Rename to aix_thread_wait.
6555 (ops_kill): Rename to aix_thread_kill.
6556 (init_ops): Rename to init_aix_thread_ops.
6557 (ops_fetch_register): Rename to aix_thread_fetch_register.
6558 (ops_store_register): Rename to aix_thread_store_register.
6559 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6560 (ops_thread_alive): Rename to aix_thread_thread_alive.
6561 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6562 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6563 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6564 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6565 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6566 (store_regs_lib): Rename to store_regs_user_thread.
6567 (store_regs_kern): Rename to store_regs_kernel_thread.
6568
6569 2002-07-22 Michael Snyder <msnyder@redhat.com>
6570
6571 * aix-thread.c (ops_prepare_to_store): Eliminate.
6572 (init_ops): Don't initialize ops.prepare_to_store.
6573 (store_regs_kern): Pre-fetch register buffers from child,
6574 because some registers may not be in the cache. Copy
6575 regs from register cache only if they are cached.
6576 (store_regs_lib): Copy regs from register cache only
6577 if they are cached.
6578 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6579 fill_gprs64): Ditto.
6580
6581 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6582
6583 * aix-thread.c (gdb_assert.h): Include.
6584 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6585 register sizes (from register cache) match size of buffer holding
6586 register data.
6587 (fill_sprs32): Change parameter types to match those in the ptrace()
6588 buffer.
6589 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6590 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6591
6592 2002-07-22 Michael Snyder <msnyder@redhat.com>
6593
6594 * aix-thread.c (supply_sprs64): Cosmetic change.
6595 (supply_sprs32): Cosmetic change.
6596 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6597 (fill_sprs64): Use regcache_collect instead of read_register.
6598 (store_regs_lib): Use regcache_collect instead of
6599 read_register. Use fill_sprs32 instead of fill_sprs64,
6600 if debugging a 32-bit architecture.
6601 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6602 out of the register cache, instead of passing a pointer into
6603 the register cache directly to ptrace. Use regcache_collect
6604 insteaad of read_register.
6605 (ops_prepare_to_store): Use target_read_registers instead
6606 of read_register_bytes.
6607
6608 2002-07-20 Aidan Skinner <aidan@velvet.net>
6609
6610 * MAINTAINERS: Add self under write after approval.
6611
6612 2002-07-20 Aidan Skinner <aidan@velvet.net>
6613
6614 * ada-tasks.c: Change k&r style function definitions to prototyped
6615 form.
6616
6617 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6618
6619 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6620 * x86-64-tdep.c: Include "objfiles.h".
6621 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6622 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6623
6624 2002-07-17 Michal Ludvig <michal@suse.cz>
6625
6626 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6627 (update_context): Initialise cfa variable.
6628
6629 2002-07-17 Michael Snyder <msnyder@redhat.com>
6630
6631 * aix-thread.c: Shorten some long lines.
6632 Bring comments into line with code spec.
6633
6634 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6635
6636 * infrun.c: Re-indent using gdb_indent.sh.
6637
6638 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6639
6640 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6641 Leave the indentation temporarily untouched, to minimize the diffs.
6642
6643 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6644
6645 * stabsread.c: Make os9k sections of the code obsolete,
6646 for real this time.
6647 * stabsread.h: Make os9k sections of the code obsolete.
6648
6649 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6650
6651 * linux-low.c (regsets_store_inferior_registers): Add free()
6652 at the end of a loop to prevent memory leak.
6653 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6654 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6655 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6656 line a comment.
6657 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6658
6659 2002-07-17 Jim Blandy <jimb@redhat.com>
6660
6661 * macrocmd.c (info_macro_command): Remove newline from error
6662 message.
6663
6664 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6665
6666 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6667 (sh_gdbarch_init): Use it for sh-dsp.
6668
6669 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6670
6671 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6672 64-bit DWARF2 format.
6673
6674 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6675
6676 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6677 <sys/proc.h> when not available.
6678
6679 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6680
6681 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6682 * stabsread.c: Make os9k sections of the code obsolete.
6683 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6684 * config/i386/i386os9k.mt: Make file obsolete.
6685 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6686 (COMMON_OBS): Remove os9kread.o
6687 (SFILES): Remove os9kread.c.
6688 (os9kread.o, remote-os9k.o): Make target obsolete.
6689 * remote-os9k.c: Make file obsolete.
6690 * os9kread.c: Make file obsolete.
6691 * Makefile.in
6692
6693 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6694
6695 * NEWS: Mention that the FR30 has been made obsolete.
6696 * fr30-tdep.c: Make file obsolete.
6697 * config/fr30/tm-fr30.h: Ditto.
6698 * config/fr30/fr30.mt: Ditto.
6699 * configure.tgt: Make fr30-*-elf obsolete.
6700 * MAINTAINERS: Make fr30-elf obsolete.
6701
6702 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6703
6704 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6705 found is not inside a section.
6706
6707 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6708
6709 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6710 strerror().
6711 (pdc_realloc): Use xrealloc() instead of realloc().
6712
6713 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6714
6715 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6716 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6717 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6718 macros.
6719
6720 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6721
6722 * aix-thread.c (ptrace_check): Eliminate goto.
6723 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6724 problem.
6725
6726 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6727
6728 * aix-thread.c (gdbcmd.h): Include.
6729 (DEBUG, DBG, DBG2, dbg): Eliminate.
6730 (debug_aix_thread): New static global.
6731 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6732 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6733 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6734 invocations to DBG and DBG2 macros to test against
6735 ``debug_aix_thread'' and call fprintf_unfiltered().
6736 (_initialize_aix_thread): Add new command "set debug aix-thread".
6737
6738 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6739
6740 From Gerhard Tonn <TON@de.ibm.com>:
6741 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6742 instead of supply_register.
6743
6744 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6745
6746 * dwarf2cfi.c: Include "gdb_assert.h".
6747 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6748 non-NULL.
6749 (update_context): Do not use __func__. Add missing ``break''.
6750 (update_context): Do not use __func__.
6751
6752 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6753
6754 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6755 and its setting. Set gdbarch instruction printing functions
6756 directly. For non-rs6000 case use new function
6757 gdb_print_insn_powerpc.
6758 (gdb_print_insn_powerpc): New function.
6759
6760 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6761
6762 * NEWS: Mention that the d30v has been marked obsolete.
6763 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6764 * configure.tgt: Mark d30v-*-* as obsolete.
6765 * d30v-tdep.c: Mark file as obsolete.
6766 * config/d30v/d30v.mt: Ditto.
6767 * config/d30v/tm-d30v.h: Ditto.
6768
6769 2002-07-13 Aidan Skinner <aidan@velvet.net>
6770
6771 * ada-tasks.c (add_task_entry): replace calls to
6772 malloc() with xmalloc
6773 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6774
6775 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6776 ada_finish_decode_line_1, all_sals_for_line
6777 ada_breakpoint_rewrite): replace calls to free() with xfree()
6778
6779 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6780
6781 From Nicholas Duffek (with minor changes by Martin Hunt,
6782 Louis Hamilton, and Kevin Buettner):
6783 * aix-thread.c: New file.
6784
6785 2002-07-12 Petr Sorfa <petrs@caldera.com>
6786
6787 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6788 complaint for invalid attribute class or form.
6789 (read_func_scope): DW_AT_frame_base
6790 better handling of DW_AT_block*.
6791 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6792 better handling of DW_AT_block*.
6793 (read_common_block): DW_AT_location
6794 better handling of DW_AT_block*.
6795 (read_partial_die): DW_AT_location better handling
6796 of DW_AT_block*.
6797 (new_symbol): DW_AT_external better handling of
6798 DW_AT_block*. Proper initialization of variable
6799 "addr".
6800 (attr_form_is_block): New function that returns true
6801 if the attribute's form is of DW_FORM_block*.
6802
6803 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6804
6805 * valops.c (find_method_list): Remove comment about
6806 removed STATIC_MEMFUNCP argument.
6807 (value_find_oload_method_list): Likewise.
6808
6809 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6810
6811 From Nicholas Duffek:
6812 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6813 target_new_objfile_hook.
6814
6815 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6816
6817 From Nicholas Duffek:
6818 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6819 csect.
6820
6821 2002-07-12 Andrew Cagney <cagney@redhat.com>
6822
6823 * MAINTAINERS: Mention --enable-sim-build-warnings.
6824 (m68hc11-elf): Disable sim build warnings.
6825 (m32r-elf): Mark as broken obsolete candidate.
6826 (x86_64-linux-gnu): Mark as buildable with -Werror.
6827 (arm-elf): Change -w to ``,'' which enables warnings but not
6828 -Werror.
6829
6830 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6831
6832 * bcache.h: Update copyright.
6833 (struct bstring, struct bcache): Move definition to "bcache.c".
6834 Replaced by opaque declaration.
6835 (bcache_xfree): Replace free_bcache.
6836 (bcache_xmalloc, bcache_memory_used): Declare.
6837
6838 * bcache.c: Update copyright.
6839 (struct bstring, struct bcache): Moved to here from "bcache.h".
6840 Update comments.
6841 (bcache_xmalloc, bcache_memory_used): New functions.
6842 (bcache_xfree): Replace function free_bcache.
6843
6844 * Makefile.in (objfiles.o): Add $(bcache_h).
6845 (objfiles_h): Remove $(bcache_h).
6846 (symfile.o): Add $(bcache_h).
6847
6848 * symmisc.c: Update copyright.
6849 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6850 (print_objfile_statistics): Use bcache_memory_used.
6851
6852 * symfile.c: Include "bcache.h".
6853 (reread_symbols): Use bcache_xfree.
6854 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6855 (add_psymbol_to_list): Pass psymbol_cache by value.
6856 (add_psymbol_with_dem_name_to_list): Ditto.
6857
6858 * objfiles.h: Update copyright.
6859 (struct bcache): Declare opaque. Do not include "bcache.h".
6860 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6861 bcache'' pointers.
6862 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6863
6864 * objfiles.c: Include "bcache.h". Update copyright.
6865 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6866 macro_cache.
6867 (free_objfile): Use bcache_xfree.
6868
6869 2002-07-11 Grace Sainsbury <graces@redhat.com>
6870
6871 * monitor.c (monitor_fetch_register): Make name a constant.
6872 (monitor_store_register): Same.
6873
6874 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6875
6876 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6877 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6878 (finish_block) For non-function blocks, hash the symbol table. For
6879 function blocks, mark the symbol table as unhashed.
6880 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6881 (msymbol_hash_iw): Likewise.
6882 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6883 value.
6884 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6885 (lookup_minimal_symbol): Likewise for both.
6886 * symtab.h (struct block): Add `hashtable' flag. Comment the
6887 hashtable.
6888 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6889 (ALL_BLOCK_SYMBOLS): Update.
6890 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6891 (struct symbol): Add `hash_next' pointer.
6892 * symtab.c (lookup_block_symbol): Search using the hash table when
6893 possible.
6894 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6895 (search_symbols, find_addr_symbol): Likewise.
6896
6897 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6898 (read_dst_symtab): Likewise.
6899 * jv-lang.c (get_java_class_symtab): Likewise.
6900 * mdebugread.c: Include "gdb_assert.h".
6901 (shrink_block): Assert that the block being modified is not hashed.
6902 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6903 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6904 symbols.
6905 (dump_symtab): Recognize hashed blocks.
6906 * printcmd.c (print_frame_args): Assert that function blocks do not
6907 have hashed symbol tables.
6908 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6909 (fill_in_ada_prototype, debug_print_block): Likewise.
6910 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6911
6912 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6913
6914 * stack.c (print_frame): Use result of frame_address_in_block()
6915 instead of fi->pc when evaluating symbols.
6916 (backtrace_command_1): Ditto.
6917
6918 2002-07-11 Andrew Cagney <cagney@redhat.com>
6919
6920 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6921 Make static.
6922
6923 * arm-tdep.c (arm_register_name): Make return type constant.
6924
6925 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6926
6927 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6928 prototype.
6929 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6930 * s390-tdep.c (s390_fp_regnum): Ditto.
6931 (s390_read_fp): Ditto.
6932 (s390_pop_frame): Ditto.
6933 (_initialize_s390_tdep): Ditto.
6934 * remote.c (get_remote_state): Ditto.
6935 * procfs.c (mappingflags): Ditto.
6936 * memattr.c (_initialize_mem): Ditto.
6937 * mcore-tdep.c (mcore_pop_frame): Ditto.
6938 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6939 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6940 * language.c (set_case_str): Ditto.
6941 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6942 * frv-tdep.c (new_variant): Ditto.
6943 (frv_stopped_data_address): Ditto.
6944 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6945 (context_alloc): Ditto.
6946 (frame_state_alloc): Ditto.
6947 (unwind_tmp_obstack_init): Ditto.
6948 (unwind_tmp_obstack_free): Ditto.
6949 (cfi_read_fp): Ditto.
6950 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6951 (cris_pop_frame): Ditto.
6952 * c-lang.c (scanning_macro_expansion): Ditto.
6953 (finished_macro_expansion): Ditto.
6954 (c_preprocess_and_parse): Ditto.
6955 * gdbarch.sh: Ditto.
6956 * gdbarch.h, gdbarch.c: Regenerate.
6957 * config/mn10200/tm-mn10200.h: Adjust indentation.
6958 * target.c: Adjust indentation.
6959 * symtab.h: Adjust indentation.
6960 * stabsread.h: Adjust indentation.
6961 * remote-es.c: Adjust indentation.
6962 * os9kread.c: Adjust indentation.
6963
6964 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6965
6966 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6967 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6968
6969 2002-07-10 Grace Sainsbury <graces@redhat.com>
6970
6971 * NEWS: Mention m68k, mcore multi-arching.
6972 * MAINTAINERS: Change status of m68k, mcore to reflect
6973 multi-arching.
6974
6975 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6976
6977 * valops.c (find_overload_match): Free oload_syms.
6978
6979 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6980
6981 Define HAVE_SYS_PROC_H if sys/proc.h exists
6982 * configure.in: Add check for sys/proc.h
6983 * config.in: Regenerate.
6984 * configure: Regenerate.
6985
6986 2002-07-09 Grace Sainsbury <graces@redhat.com>
6987
6988 * config/m68k/tm-m68k.h: Remove macros wrapped in
6989 #if !GDB_MULTI_ARCH.
6990
6991 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6992
6993 * config.in, configure: Regenerate.
6994
6995 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6996
6997 * dwarf2cfi.c: Include "gcore.h".
6998 (execute_stack_op): Fix implementation of the
6999 DW_OP_deref and DW_OP_deref_size operators by letting do their
7000 lookup in the target.
7001
7002 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7003
7004 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7005 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7006 tdep->sc_sp_offset.
7007
7008 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7009
7010 Fix PR gdb/595, gdb/602
7011 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7012 Don't call value_cast, just read the vtable pointer; update comments
7013 to match.
7014
7015 2002-07-05 Grace Sainsbury <graces@redhat.com>
7016
7017 * config/mcore/tm-mcore.h: Remove file.
7018 * config/mcore/mcore.mt: Remove definition of TM_FILE
7019 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7020
7021 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7022
7023 * i386bsd-tdep.c: Include "gdb_string.h".
7024
7025 2002-07-04 Grace Sainsbury <graces@redhat.com>
7026
7027 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7028 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7029 mcore-tdep.
7030 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7031 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7032 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7033 (RETVAL_REGNUM): Move macros from tm-mcore.h
7034 (mcore_reg_struct_has_addr): New function.
7035 (mcore_gdbarch_init): Added initializations for the macros removed
7036 from tm-mcore.h.
7037
7038 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7039
7040 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7041 traditonal string branding within the ELF header.
7042
7043 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7044
7045 * symtab.c (remove_params): New function.
7046 (make_symbol_overload_list): Use it instead of cplus_demangle.
7047 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7048
7049 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7050
7051 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7052
7053 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7054 New variables.
7055 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7056 and tdep->sigtramp_end.
7057 * i386obsd-nat.c: New file.
7058 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7059
7060 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7061 Don't call get_current_frame().
7062
7063 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7064
7065 * i386-nat.c (child_post_startup_inferior): New function
7066 calling i386_cleanup_dregs if
7067 I386_USE_GENERIC_WATCHPOINTS is defined.
7068 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7069 conditional to acknowledge that i386-nat.c has its
7070 own child_post_startup_inferior function.
7071
7072 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7073
7074 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7075 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7076 instead of MAX_REGISTER_RAW_SIZE.
7077 (i386_extract_return_value, i386_extract_struct_value_address):
7078 Convert to use regcache.
7079 (i386_gdbarch_init): Set max_register_raw_size and
7080 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7081 Set extract_return_value and extract_struct_value_address instead
7082 of their deprecated variants.
7083
7084 Convert i386 target to generic dummy frames.
7085 * i386-tdep.c: Include "symfile.h".
7086 (i386_frameless_signal_p): Consider a function to be frameless if
7087 the pc points at the first instruction of the function.
7088 (i386_frame_chain): Handle (generic) call dummies.
7089 (i386_frame_saved_pc): Likewise.
7090 (i386_frame_init_saved_regs): Remove code dealing with call
7091 dummies on the stack.
7092 (i386_push_dummy_frame): Removed.
7093 (i386_call_dummy_words): Removed.
7094 (i386_fix_call_dummy): Removed.
7095 (i386_push_return_address): New function.
7096 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7097 parameter, and don't call get_current_frame.
7098 (i386_pop_frame): New function.
7099 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7100 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7101 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7102 call_dummy_length to 0, set call_dummy_words to NULL, set
7103 sizeof_call_dummy_words to 0, set fix_call_dummy to
7104 generic_fix_call_dummy, set pc_in_call_dummy to
7105 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7106 generic_push_dummy_frame, set push_return_address to
7107 i386_push_return_address and set frame_chain_valid to
7108 generic_file_frame_chain_valid.
7109
7110 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7111
7112 * gdbarch.sh (struct regcache): Add opaque declaration.
7113 (EXTRACT_RETURN_VALUE): New architecture method.
7114 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7115 * gdbarch.h, gdbarch.c: Regenerate.
7116 * arch-utils.c (legacy_extract_return_value): New function.
7117 * arch-utils.h (legacy_extract_return_value): Declare.
7118 * values.c (value_being_returned): Re-enable code handling
7119 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7120 deprecated_grub_regcache_for_registers call to block handling
7121 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7122 (EXTRACT_RETURN_VALUE): Do not define.
7123
7124 2002-07-03 Grace Sainsbury <graces@redhat.com>
7125
7126 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7127 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7128 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7129 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7130 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7131 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7132 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7133 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7134 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7135 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7136 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7137 argument so the function fits the prototype in the architecture
7138 vector.
7139 (mcore_pop_frame): Remove argument so the function fits the
7140 prototype. Use get_current_frame instead of the argument.
7141 (mcore_push_arguments): Change type of struct_return so the
7142 function can be used in the architecture vector.
7143 (mcore_store_struct_return): Add.
7144 (mcore_frame_init_saved_regs): Add.
7145 (mcore_gdbarch_init): Add function calls to replace the macros
7146 removed from tm-mcore.h
7147
7148 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7149
7150 * infcmd.c (print_return_value): Remove compatibility code calling
7151 deprecated_grub_regcache_for_registers.
7152
7153 * values.c: Include "regcache.h".
7154 (value_being_returned): Update. Use
7155 deprecated_grub_regcache_for_registers to extract the register
7156 buffer address.
7157 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7158 ``struct regcache''.
7159 * Makefile.in (values.o): Add dependency on $(regcache_h).
7160
7161 * inferior.h (run_stack_dummy): Change type of second parameter to
7162 a ``struct regcache''.
7163 * valops.c (hand_function_call): Change type of retbuf to ``struct
7164 regcache''. Allocate using regcache_xmalloc, clean using
7165 make_cleanup_regcache_xfree.
7166 * infcmd.c (run_stack_dummy): Update. Use
7167 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7168
7169 * regcache.c (do_regcache_xfree): New function.
7170 (make_cleanup_regcache_xfree): New function.
7171 * regcache.h (make_cleanup_regcache_xfree): Declare.
7172
7173 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7174
7175 * event-top.c (command_line_handler): Don't read past
7176 beginning of buffer.
7177
7178 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7179
7180 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7181 struct frame_id.
7182 (varobj_create): Store frame_id for root.
7183 (varobj_gen_name): Use xasprintf.
7184 (varobj_update): Save and restore frame using get_frame_id() and
7185 frame_find_by_id().
7186 (create_child): Use xasprintf.
7187 (new_root_variable): Initialize frame_id.
7188 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7189 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7190 to prevent memory leak.
7191
7192 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7193
7194 * valops.c (hand_function_call): Move declaration of retbuf to
7195 start of function, allocate using malloc, add a cleanup but before
7196 the inf_status cleanup, cleanup the buffer. Rename local variable
7197 old_chain to inf_status_cleanup.
7198
7199 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7200
7201 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7202
7203 * cli/cli-decode.c (cmd_func_p): New function.
7204 (cmd_func): New function.
7205
7206 * command.h: Add cmd_func() and cmd_func_p().
7207
7208 2002-07-03 Grace Sainsbury <graces@redhat.com>
7209
7210 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7211 (REGISTER_SIZE): Remove.
7212 (MAX_REGISTER_RAW_SIZE): Remove.
7213 (REGISTER_VIRTUAL_TYPE): Remove.
7214 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7215 (REGISTER_NAME): Remove.
7216 (USE_GENERIC_DUMMY_FRAMES): Remove.
7217 (CALL_DUMMY): Remove.
7218 (CALL_DUMMY_START_OFFSET): Remove.
7219 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7220 (CALL_DUMMY_LOCATION): Remove.
7221 (FIX_CALL_DUMMY): Remove.
7222 (CALL_DUMMY_ADDRESS): Remove.
7223 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7224 (SAVE_DUMMY_FRAME_TOS): Remove.
7225 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7226 (mcore_register_virtual_type): New function.
7227 (mcore_register_byte): New function.
7228 (mcore_register_size): New function.
7229 (mcore_register_name): New function.
7230 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7231 macros removed from tm-mcore.h.
7232 (mcore_dump_tdep): Add.
7233 (_initialize_mcore_tdep): Add gdbarch_register call.
7234
7235 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7236
7237 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7238 frameless_look_for_prologue, such that we actually call this
7239 function.
7240
7241 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7242
7243 * frame.h (frame_address_in_block): New function.
7244
7245 * blockframe.c (frame_address_in_block): New function extracted
7246 from get_frame_block().
7247 (get_frame_block): Use frame_address_in_block().
7248 (block_innermost_frame): Use frame_address_in_block() to match
7249 the frame pc address against the block boundaries rather than
7250 the frame pc directly. This prevents a failure when a frame pc
7251 is actually a return-address pointing immediately after the end
7252 of the given block.
7253
7254 2002-07-02 Grace Sainsbury <graces@redhat.com>
7255
7256 * MAINTAINERS: Add self under write after approval.
7257
7258 2002-07-02 Grace Sainsbury <graces@redhat.com>
7259
7260 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7261 used in architecture vector. The default is
7262 m68k_local_breakpoint_from_pc.
7263 (m68k_local_breakpoint_from_pc): Add.
7264 (enum): Add register numbers from tm-m68k.h.
7265 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7266 vector.
7267 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7268 GDB_MULTI_ARCH_PARTIAL.
7269 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7270 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7271 m68k-tdep.c.
7272 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7273 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7274 to enum in m68k-tdep.c
7275
7276 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7277
7278 * solib-osf.c (open_map): Compute the list of shared libraries
7279 loaded by the inferior, rather than the list of libraries loaded
7280 by GDB itself. Otherwise, GDB ends up reading the symbols from
7281 the wrong shared libraries...
7282
7283 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7284
7285 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7286 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7287 macros.
7288 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7289 Remove functions.
7290 (FRAMELESS_SIGNAL): Remove function.
7291 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7292 i386_linux_saved_pc_after_call): Removed.
7293 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7294 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7295 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7296
7297 * i386-tdep.c (i386_frameless_signal_p): New function.
7298 (i386_frame_chain): Deal with frameless signals.
7299 (i386_sigtramp_saved_sp): New function.
7300 (i386_frame_saved_pc): Deal with frameless signals.
7301 (i386_saved_pc_after_call): Make sure the correct value is
7302 returned just after entry into a sigtramp.
7303 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7304 i386fbsd4_sc_sp_offset): New variables.
7305 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7306 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7307 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7308 similiar to what we already did for sc_pc_offset.
7309 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7310 tdep->sc_sp_offset.
7311
7312 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7313
7314 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7315
7316 * config/i386/tm-x86-64linux.h: New.
7317 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7318 definitions.
7319 * config/i386/nm-x86-64.h: Rename to ...
7320 * config/i386/nm-x86-64linux.h: ... this one.
7321 * config/i386/x86-64linux.mh: Reflect the above change.
7322
7323 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7324
7325 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7326 with sigcontext_addr. Add sc_sp_offset.
7327 (i386bsd_sigtramp_saved_pc): Remove prototype.
7328 (i386bsd_sicontext_addr): Add prototype.
7329 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7330 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7331 (i386_svr4_sigtramp_saved_pc): Removed.
7332 (i386_svr4_sigcontext_addr): New function.
7333 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7334 Initialize tdep->sigcontext_addr instead. Initialize
7335 tdep->sc_pc_offset and tdep->sc_sp_offset.
7336 (i386_gdbarch_init): Likewise.
7337 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7338 any more.
7339 (i386bsd_sigtramp_saved_pc): Remove function.
7340 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7341 Initialize tdep->sigcontext_addr instead. Initialize
7342 tdep->sc_pc_offset.
7343 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7344 of tdep->sigtramp_saved_pc.
7345 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7346 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7347 instead.
7348
7349 * i386-tdep.c (i386_frameless_function_invocation,
7350 i386_frame_num_args, i386_frame_init_saved_regs,
7351 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7352 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7353 i386_extract_return_value, i386_store_return_value,
7354 i386_extract_struct_value_address, i386_register_virtual_type,
7355 i386_register_convertible, i386_register_convert_to_virtual,
7356 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7357 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7358 static.
7359
7360 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7361
7362 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7363
7364 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7365 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7366 this macro. Include "value.h".
7367
7368 2002-06-30 Aidan Skinner <aidan@velvet.net>
7369
7370 * ada-exp.tab.c: remove as it's a generated file
7371 * ada-lex.c: remove as it's a generated file
7372
7373 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7374
7375 * config/i386/tm-i386.h (struct frame_info, struct
7376 frame_saved_regs, struct value, struct type): Remove forward
7377 declarations.
7378
7379 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7380 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7381 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7382 (FILL_FPXREGSET): Define.
7383
7384 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7385
7386 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7387 i[3456]86-*-netbsd* case.
7388 * config/i386/tm-obsd.h: Removed.
7389 * config/i386/obsd.mt: Removed.
7390 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7391 core-aout.o.
7392 (MH_CFLAGS): Add -DYYDEBUG=0.
7393
7394 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7395 i386nbsd_sc_pc_offset on OpenBSD too.
7396
7397 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7398 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7399 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7400 define.
7401 * i386bsd-tdep.c: Include "arch-utils.h".
7402 (i386bsd_aout_in_solib_call_trampoline): New function.
7403 (i386bsd_init_abi): Set in_solib_call_trampoline to
7404 i386bsd_aout_in_solib_call_trampoline.
7405 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7406 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7407
7408 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7409
7410 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7411 (struct obstack, struct bcache): Add opaque declarations.
7412 * Makefile.in (macrotab_h): Update
7413
7414 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7415
7416 * blockframe.c (generic_find_dummy_frame): Change return type to
7417 ``struct regcache''.
7418 (struct dummy_frame): Replace field ``registers'' with regcache, a
7419 struct regcache object.
7420 (generic_find_dummy_frame): Update.
7421 (generic_push_dummy_frame): Update. Use regcache_xfree,
7422 regcache_xmalloc and regcache_cpy.
7423 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7424 regcache_xfree.
7425 (deprecated_generic_find_dummy_frame): Update.
7426 (generic_read_register_dummy): Update. Use
7427 regcache_read_as_address.
7428 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7429 (generic_get_saved_register): Update. Use regcache_read.
7430
7431 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7432
7433 * Makefile.in (objfiles_h): Add $(bcache_h).
7434 * objfiles.h: Include "bcache.h".
7435
7436 * Makefile.in (symtab_h): Remove $(bcache_h).
7437 * symtab.h: Do not include "bcache.h".
7438
7439 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7440
7441 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7442 generic_func_frame_chain_valid.
7443
7444 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7445
7446 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7447 * config/i386/tm-fbsd.h: Likewise.
7448
7449 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7450
7451 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7452 generic_unwind_get_saved_register.
7453
7454 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7455
7456 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7457 * regcache.c (supply_register): Add missing argument to
7458 register_buffer call.
7459
7460 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7461
7462 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7463 Solaris /bin/grep does not not like it. From Peter Schauer.
7464
7465 2002-06-26 Tom Tromey <tromey@redhat.com>
7466
7467 * command.h (add_setshow_cmd): Declare.
7468 (add_setshow_cmd_full): Declare.
7469 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7470 returns void. Use add_setshow_cmd_full.
7471 (add_setshow_cmd_full): New function.
7472 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7473 (add_setshow_boolean_cmd): Likewise.
7474
7475 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7476
7477 * config/vax/tm-vax.h: Protect from multiple inclusion.
7478 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7479 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7480 * config/vax/tm-vaxbsd.h: ...here. New file.
7481 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7482
7483 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7484
7485 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7486 (BELIEVE_PCC_PROMOTION): Remove.
7487 (AP_REGNUM): Move to...
7488 * config/vax/nm-vax.h: ...here.
7489 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7490 (vax_breakpoint_from_pc): New function.
7491 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7492 and gdbarch_believe_pcc_promotion.
7493
7494 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * Makefile.in (vax_tdep_h): Define.
7497 (vax-tdep.o): Use $(vax_tdep_h).
7498 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7499 (vax_dump_tdep): New function.
7500 (_initialize_vax_tdep): Register vax_dump_tdep.
7501 * vax-tdep.h: Include osabi.h.
7502 (struct gdbarch_tdep): New.
7503
7504 2002-06-26 Andrew Cagney <cagney@redhat.com>
7505
7506 * frame.h (deprecated_generic_find_dummy_frame): Rename
7507 generic_find_dummy_frame.
7508 * blockframe.c (generic_find_dummy_frame): Make static.
7509 (deprecated_generic_find_dummy_frame): New function.
7510 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7511 generic_find_dummy_frame with deprecated_find_dummy_frame.
7512 (sh64_nofp_frame_init_saved_regs): Ditto.
7513 (sh_fp_frame_init_saved_regs): Ditto.
7514 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7515 (s390_frame_chain): Ditto.
7516 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7517
7518 2002-06-26 Grace Sainsbury <graces@redhat.com>
7519
7520 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7521 gdbarch vector are at the top.
7522 (NUM_REGS): Remove.
7523 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7524 (FRAME_ARGS_ADDRESS): Remove.
7525 (FRAME_LOCALS_ADDRESS): Remove.
7526 (FRAME_NUM_ARGS): Remove.
7527 (FRAME_ARGS_SKIP): Remove.
7528 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7529 (m68k_gdbarch_init): Add gdbarch initializations for macros
7530 undefined in tm-m68k.h
7531
7532 2002-06-26 Grace Sainsbury <graces@redhat.com>
7533
7534 * monitor.h: Add the function regname to monitor_ops
7535 structure. This way NUM_REGS does not have to be a constant.
7536 * monitor.c (monitor_fetch_register): Added support for regname
7537 function. The function is called if the array regnames is NULL.
7538 (monitor_store_register): Same.
7539 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7540 regnames array.
7541 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7542 cpu32bug_cmds.regname to point to new function.
7543 * abug-rom.c (abug_regname): Same as above.
7544 (init_abug_cmds): Same.
7545 * dbug-rom.c (dbug_regname): Same as above.
7546 (init_dbug_cmds): Same.
7547 * remote-est.c (est_regname): Same.
7548 (init_est_cmds): Same.
7549 * rom68k-rom.c (rom68k_regname): Same.
7550 (init_rom68k_cmds): Same.
7551
7552 2002-06-25 Tom Tromey <tromey@redhat.com>
7553
7554 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7555
7556 2002-06-25 Andrew Cagney <cagney@redhat.com>
7557
7558 * infrun.c (stop_registers): Change variable's type to ``struct
7559 regcache'''.
7560 (xmalloc_inferior_status): Delete function.
7561 (free_inferior_status): Delete function.
7562 (normal_stop): Use regcache_cpy.
7563 (struct inferior_status): Change type of fields ``stop_registers''
7564 and ``registers'' to ``struct regcache''.
7565 (write_inferior_status_register): Use regcache_write.
7566 (save_inferior_status): Instead of calling
7567 xmalloc_inferior_status, allocate the inf_status buffer directly.
7568 Use regcache_dup_no_passthrough and regcache_dup to save the
7569 buffers.
7570 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7571 Replace the stop_registers regcache instead of overriding it. Use
7572 regcache_xfree. Instead of calling free_inferior_status, xfree
7573 the buffer directly.
7574 (discard_inferior_status): Use regcache_xfree. Instead of calling
7575 free_inferior_status, xfree the buffer directly.
7576 (build_infrun): Use regcache_xmalloc.
7577 (_initialize_infrun): Delete redundant call to build_infrun.
7578
7579 * Makefile.in (infcmd.o): Add $(regcache_h).
7580
7581 * infcmd.c: Include "regcache.h".
7582 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7583 obtain the address of `stop_registers' register buffer.
7584 (print_return_value): Ditto.
7585
7586 * inferior.h (struct regcache): Add opaque declaration.
7587 (stop_registers): Change variable's declared type to ``struct
7588 regcache''.
7589
7590 2002-06-24 Tom Tromey <tromey@redhat.com>
7591
7592 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7593 * target.c (initialize_targets): Fixed typo in
7594 trust-readonly-sections `show' documentation.
7595
7596 * main.c: Marked all strings with _().
7597
7598 2002-06-24 Don Howard <dhoward@redhat.com>
7599
7600 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7601 that means max CORE_ADDR+1.
7602 (lookup_mem_region): Ditto.
7603 (mem_info_command): Ditto.
7604
7605 2002-06-24 Grace Sainsbury <graces@redhat.com>
7606
7607 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7608 (REGISTER_BYTES_OK): Remove.
7609 (REGISTER_BYTES): Remove.
7610 (STORE_STRUCT_RETURN): Remove.
7611 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7612 (STORE_RETURN_VALUE): Remove.
7613 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7614 (FRAME_CHAIN): Remove.
7615 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7616 (FRAME_SAVED_PC): Remove.
7617 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7618 (m68k_store_struct_return): Add.
7619 (m68k_deprecated_extract_return_value): Add.
7620 (m68k_deprecated_extract_struct_value_address): Add.
7621 (m68k_store_return_value): Add.
7622 (m68k_frame_chain): Add.
7623 (m68k_frameless_function_invocation): Add.
7624 (m68k_frame_saved_pc): Add.
7625 (m68k_gdbarch_init): added set_gdbarch calls for new
7626 functions and deleted macros.
7627
7628 2002-06-23 Tom Tromey <tromey@redhat.com>
7629
7630 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7631 (ALLDEPFILES): Likewise.
7632 (udiheaders): Removed.
7633 (udip2soc.o): Likewise.
7634 (udi2go32.o): Likewise.
7635 (udr.o): Likewise.
7636 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7637
7638 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7639
7640 * infrun.c (_initialize_infrun): Delete unnecessary call to
7641 build_infrun.
7642
7643 * regcache.h: Update comments describing the regcache_cpy family
7644 of functions.
7645 (regcache_save, regcache_restore): Delete declaration.
7646 (regcache_save_no_passthrough): Delete declaration.
7647 (regcache_restore_no_passthrough): Delete declaration.
7648 * regcache.c (regcache_save): Delete function.
7649 (regcache_save_no_passthrough): Delete function.
7650 (regcache_restore): Delete function.
7651 (regcache_restore_no_passthrough): Delete function.
7652
7653 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7654
7655 * config/m68k/tm-m68k.h: Fix typo.
7656 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7657 (m68k_frame_init_saved_regs): Declare.
7658
7659 2002-06-21 Jim Blandy <jimb@redhat.com>
7660
7661 Remove some vestiges of Harris 88k support.
7662 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7663 register numbering quirk.
7664 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7665 odd symbols occurring in Harris 88k ELF targets.
7666
7667 2002-06-21 Tom Tromey <tromey@redhat.com>
7668
7669 * gdb_locale.h: New file.
7670 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7671 (defs_h): Added gdb_locale.h.
7672 * configure, config.in: Rebuilt.
7673 * configure.in (PACKAGE): Define.
7674 * defs.h: Include gdb_locale.h.
7675 * main.c (captured_main): Call setlocale, bindtextdomain,
7676 textdomain.
7677
7678 2002-06-21 Dave Brolley <brolley@redhat.com>
7679
7680 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7681 * config/frv/frv.mt: New file.
7682 * config/frv/tm-frv.h: New file.
7683 * configure.tgt: Support frv-*-*.
7684 * Makefile.in (frv-tdep.o): New target.
7685 * frv-tdep.c: New file.
7686 * NEWS: Mention frv.
7687
7688 2002-06-21 Dave Brolley <brolley@redhat.com>
7689
7690 * MAINTAINERS: Add self to "Write After Approval" list.
7691
7692 2002-06-21 Grace Sainsbury <graces@redhat.com>
7693
7694 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7695 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7696 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7697 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7698 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7699
7700 * m68k-tdep.c: Include arch-utils.h
7701 (m68k_register_raw_size): Add.
7702 (m68k_register_virtual_size): Add.
7703 (m68k_register_virtual_type): Add.
7704 (m68k_register_name): Add.
7705 (m68k_stack_align): Add.
7706 (m68k_register_byte): Add.
7707 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7708 tm-m68k.h.
7709
7710 2002-06-21 Grace Sainsbury <graces@redhat.com>
7711
7712 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7713 m68k_find_saved_regs.
7714 (m68k_pop_frame): Removed saved_regs structure, and replaced
7715 references to it with frame->saved_regs.
7716 (m68k_gdbarch_init): Added function calls to initialize the
7717 gdbarch structure.
7718 (m68k_fix_call_dummy): Add.
7719 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7720 (CALL_DUMMY): Remove.
7721 (CALL_DUMMY_LENGTH): Remove.
7722 (CALL_DUMMY_START_OFFSET): Remove.
7723 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7724 (FIX_CALL_DUMMY): Remove.
7725 (PUSH_DUMMY_FRAME): Remove.
7726 (POP_FRAME): Remove.
7727
7728 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7729
7730 * parse.c (parse_fprintf): New function used to avoid calls to
7731 fprintf in bison parser generated debug code.
7732 * parser-defs.h: Declaration of new parse_fprintf function.
7733 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7734 Set YYDEBUG to 1 by default.
7735 Set YYFPRINTF as parse_fprintf.
7736
7737 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7738
7739 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7740 encoding anymore.
7741 (pointer_encoding, enum ptr_encoding): New.
7742 (execute_cfa_program): Take care about pointer encoding.
7743 (dwarf2_build_frame_info): Only call parse_frame_info for
7744 .debug_frame and .eh_frame.
7745 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7746 fixed augmentation handling, added relative addressing,
7747 ignore duplicate FDEs. Added comments.
7748 * dwarf2cfi.c: Reindented.
7749
7750 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7751
7752 * event-top.c (command_handler): Don't use space_at_cmd_start
7753 unless there is sbrk() on the host. Assign time and space data
7754 to union fields of the appropriate length.
7755
7756 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7757
7758 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7759 x86_64_register_name. Return type changed to 'const char *'.
7760 (x86_64_register_name2nr): Rename to x86_64_register_number.
7761 (x86_64_gdbarch_init): Update to reflect the change.
7762 * x86-64-tdep.h: Ditto.
7763 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7764 (supply_fpregset): Ditto.
7765
7766 2002-06-19 Andrew Cagney <cagney@redhat.com>
7767
7768 * regcache.h: Update copyright.
7769 (struct regcache, struct gdbarch): Add opaque declarations.
7770 (current_regcache): Declare global variable.
7771 (regcache_read, regcache_write): Add gdbarch parameter.
7772 (regcache_save, regcache_save_no_passthrough)
7773 (regcache_restore, regcache_restore_no_passthrough)
7774 (regcache_dup, regcache_dup_no_passthrough)
7775 (regcache_cpy, regcache_cpy_no_passthrough)
7776 (deprecated_grub_regcache_for_registers)
7777 (deprecated_grub_regcache_for_register_valid)
7778 (regcache_valid_p): Add function declarations.
7779
7780 * regcache.c: Update copyright.
7781 (regcache_descr_handle): New global variable.
7782 (struct regcache_descr): Define.
7783 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7784 (regcache_descr, xfree_regcache_descr): New functions.
7785 (struct regcache): Define.
7786 (regcache_xmalloc, regcache_xfree): New functions.
7787 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7788 (regcache_dup, regcache_dup_no_passthrough): New functions.
7789 (regcache_valid_p, regcache_read_as_address): New functions.
7790 (deprecated_grub_regcache_for_registers): New function.
7791 (deprecated_grub_regcache_for_register_valid): New function.
7792 (current_regcache): New global variable.
7793 (register_buffer): Add regcache parameter. Update calls.
7794 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7795 (read_register_gen, write_register_gen): Update register_buffer
7796 call. Test for legacy_p instead of gdbarch_register_read_p or
7797 gdbarch_register_write_p.
7798 (regcache_collect): Update register_buffer call.
7799 (build_regcache): Rewrite. Use deprecated grub functions.
7800 (regcache_save, regcache_save_no_passthrough): New functions.
7801 (regcache_restore, regcache_restore_no_passthrough): New
7802 functions.
7803 (_initialize_regcache): Create the regcache_data_handle. Swap
7804 current_regcache global variable.
7805
7806 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7807 parameter to regcache_read and regcache_write calls.
7808 (sh4_register_read): Ditto.
7809 (sh64_pseudo_register_read): Ditto.
7810 (sh64_register_read): Ditto.
7811 (sh_pseudo_register_write): Ditto.
7812 (sh4_register_write): Ditto.
7813 (sh64_pseudo_register_write): Ditto.
7814 (sh64_register_write): Ditto.
7815
7816 * defs.h (XCALLOC): Define.
7817
7818 2002-06-19 Grace Sainsbury <graces@redhat.com>
7819
7820 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7821 * m68k-tdep.c (m68k_gdbarch_init): Added.
7822 (m68k_dump_tdep): Added.
7823
7824 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7825
7826 * ada-lang.c (fill_in_ada_prototype): Update comment.
7827
7828 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7829
7830 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7831 MIPS_ABI_LAST.
7832 (mips_abi_string, mips_abi_strings): New.
7833 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7834 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7835 tdep->mips_abi_string. Honor mips_abi_string. Default to
7836 O32 if no ABI is found.
7837 (mips_dump_tdep): Use mips_abi_strings.
7838 (mips_abi_update): New function.
7839 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7840 ``set mips abi'' and ``show mips abi''. Check the size of
7841 mips_abi_strings.
7842
7843 2002-06-19 Andrew Cagney <cagney@redhat.com>
7844
7845 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7846 constant.
7847
7848 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7849
7850 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7851 current frame using only the first stack size adjustment. All
7852 subsequent size adjustments are not considered to be part of
7853 the "static" part of the current frame.
7854 Compute the address of the saved registers relative to the
7855 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7856 in use in this frame.
7857
7858 2002-06-18 Don Howard <dhoward@redhat.com>
7859
7860 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7861 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7862 suggesting this solution.
7863
7864 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7865
7866 * config/romp/xm-rtbsd.h: Delete file.
7867 * config/romp/rtbsd.mh: Delete file.
7868
7869 2002-06-18 Keith Seitz <keiths@redhat.com>
7870
7871 * breakpoint.c (condition_command): Post breakpoint_modify
7872 when a condition is added to an existing breakpoint.
7873 (commands_command): Likewise for commands.
7874 (set_ignore_count): Likewise for ignore counts.
7875 If no tty, do not simply return, still need to send event
7876 notification.
7877 (ignore_command): Only print a newline if the command came
7878 from a tty.
7879 Don't call breakpoints_changed, since this is now properly
7880 handled by set_ignore_count.
7881
7882 2002-06-18 Andrew Cagney <cagney@redhat.com>
7883
7884 * MAINTAINERS: Note that cris-elf target can be compiled with
7885 -Werror.
7886 * cris-tdep.c (cris_register_name): Make return type constant.
7887 (cris_breakpoint_from_pc): Ditto.
7888
7889 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7890
7891 * frame.h (struct frame_info): Change type of context to
7892 'struct context'.
7893
7894 2002-06-17 Andrew Cagney <cagney@redhat.com>
7895
7896 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7897 pointer.
7898 * gdbarch.h, gdbarch.c: Regenerate.
7899 * config/mips/tm-mips.h (mips_register_name): Update.
7900 * i386-tdep.h (i386_register_name): Update.
7901 * mips-tdep.c (mips_register_name): Update
7902 * alpha-tdep.c (alpha_register_name): Update.
7903 * arch-utils.c (legacy_register_name): Update.
7904 * arch-utils.h (legacy_register_name): Update.
7905 * avr-tdep.c (avr_register_name): Update.
7906 * ia64-tdep.c (ia64_register_name): Update.
7907 * i386-tdep.c (i386_register_name): Update.
7908 * sparc-tdep.c (sparc32_register_name): Update.
7909 (sparc64_register_name): Update.
7910 (sparclite_register_name): Update.
7911 (sparclet_register_name): Update.
7912 * sh-tdep.c (sh_generic_register_name): Update.
7913 (sh_sh_register_name): Update.
7914 (sh_sh3_register_name): Update.
7915 (sh_sh3e_register_name): Update.
7916 (sh_sh_dsp_register_name): Update.
7917 (sh_sh3_dsp_register_name): Update.
7918 (sh_sh4_register_name): Update.
7919 (sh_sh64_register_name): Update.
7920 * s390-tdep.c (s390_register_name): Update.
7921 * rs6000-tdep.c (rs6000_register_name): Update.
7922 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7923 (ns32k_register_name_32382): Update.
7924 * d10v-tdep.c (d10v_ts2_register_name): Update.
7925 (d10v_ts3_register_name): Update.
7926 * xstormy16-tdep.c (xstormy16_register_name): Update.
7927 * vax-tdep.c (vax_register_name): Update.
7928 * v850-tdep.c (v850_register_name): Update.
7929 * m68hc11-tdep.c (m68hc11_register_name): Update.
7930 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7931 (am33_register_name): Update.
7932
7933 2002-06-17 Grace Sainsbury <graces@redhat.com>
7934
7935 * m68k-tdep.c: Reindented.
7936
7937 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7938
7939 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7940 list of predefined types.
7941
7942 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7943
7944 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7945 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7946 REGISTER_CONVERT_TO_RAW): Remove defines.
7947 (i386_register_virtual_type, i386_register_convertible,
7948 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7949 Remove prototypes.
7950 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7951 macros mentioned above.
7952
7953 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7954 (i386lynx_saved_pc_after_call): Remove prototype.
7955 * i386ly-tdep.c: Include "i386-tdep.h".
7956 (i386lynx_saved_pc_after_call): Make static. Use
7957 read_memory_nobpt instead of read_memory. Use
7958 read_memory_unsigned_integer instead of read_memory_integer.
7959 (i386lynx_init_abi): New function.
7960 (i386lynx_coff_osabi_sniffer): New function.
7961 (_initialize_i386bsd_tdep): New function.
7962
7963 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7964 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7965 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7966 (i386_fix_call_dummy): Remove prototype.
7967 * i386-tdep.c (i386_call_dummy_words): New variable.
7968 (i386_gdbarch_init): Adjust for removal of the
7969 macros mentioned above.
7970
7971 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7972
7973 * command.h (add_setshow_auto_boolean_cmd): Replace
7974 add_set_auto_boolean_cmd.
7975 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7976 add_set_auto_boolean_cmd.
7977 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7978 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7979 mask-address'' command.
7980 (show_mask_address): Add cmd parameter.
7981 * remote.c (add_packet_config_cmd): Update. Change type of
7982 set_func and show_func to cmd_sfunc_ftype.
7983 (_initialize_remote): Update `set remote Z-packet'
7984 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7985 (show_remote_protocol_e_packet_cmd): Ditto.
7986 (show_remote_protocol_E_packet_cmd): Ditto.
7987 (show_remote_protocol_P_packet_cmd): Ditto.
7988 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7989 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7990 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7991 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7992 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7993 (show_remote_protocol_Z_packet_cmd): Ditto.
7994 (show_remote_protocol_binary_download_cmd): Ditto.
7995 (show_remote_cmd): Pass NULL to all of above.
7996
7997 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7998
7999 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8000 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8001 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8002 POP_FRAME): Remove defines.
8003 (i386_push_arguments, i386_store_struct_return,
8004 i386_extract_return_value, i386_store_return_value,
8005 i386_extract_struct_value_address, i386_push_dummy_frame,
8006 i386_pop_frame): Renove prototypes.
8007 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8008 macros mentioned above.
8009
8010 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8011
8012 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8013 add_set_boolean_cmd.
8014 (add_setshow_cmd): New function.
8015 * command.h (add_setshow_boolean_cmd): Replace
8016 add_set_boolean_cmd.
8017 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8018 and ``set rdiromatzero''.
8019 * maint.c (_initialize_maint_cmds): Update commented out code.
8020 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8021 * target.c (initialize_targets): Update `set
8022 trust-readonly-sections'.
8023 * remote.c (_initialize_remote): Update `set remotebreak'.
8024
8025 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8026
8027 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8028 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8029 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8030 fit into multi-arch framework.
8031 (i386_breakpoint_from_pc): New function.
8032 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8033 above.
8034
8035 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8036 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8037 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8038 (i386_frameless_function_invocation, i386_frame_num_args,
8039 i386_frame_init_saved_regs): Remove prototypes.
8040 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8041 macros mentioned above.
8042
8043 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8044
8045 * cli/cli-decode.c (set_cmd_cfunc): Update.
8046 (set_cmd_sfunc): Update.
8047 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8048 (set_cmd_sfunc, set_cmd_cfunc): Update.
8049 * cli/cli-decode.h: Update.
8050
8051 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8052
8053 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8054 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8055
8056 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8057
8058 * defs.h (auto_boolean): Declare enum.
8059 * command.h (cmd_auto_boolean): Delete enum.
8060 * mips-tdep.c (mask_address_var): Update.
8061 (mips_mask_address_p): Update.
8062 (show_mask_address): Update.
8063 * remote.c (struct packet_config): Update.
8064 (update_packet_config): Update.
8065 (show_packet_config_cmd): Update.
8066 (packet_ok): Update.
8067 (add_packet_config_cmd): Update.
8068 (_initialize_remote):
8069 * command.h: Update.
8070 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8071 (do_setshow_command): Update.
8072 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8073 * cli/cli-decode.h: Update.
8074
8075 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8076
8077 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8078 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8079 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8080 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8081 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8082 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8083
8084 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8085 list of DJGPP COFF targets.
8086
8087 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8088 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8089 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8090 (FP0_REGNUM): Remove define.
8091 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8092 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8093 (i386_register_virtual_size): Remove protoype.
8094 * i386-tdep.c (i386_register_virtual_size): Removed.
8095 (i386_extract_return_value, i386_store_return_value): Use
8096 FP0_REGNUM instead of NUM_FREGS to determine whether the
8097 floating-point registers are available.
8098 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8099 Adjust for removal of macros mentioned above.
8100
8101 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8102
8103 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8104 comments.
8105 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8106 Remove prototypes.
8107 (supply_gregset, fill_gregset): Remove use of register keyword and
8108 remove declaration for regmap. Use I386_NUM_GREGS instead of
8109 NUM_REGS and NUM_FREGS.
8110 (FPREGSET_FSAVE_OFFSET): Remove.
8111 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8112 NUM_FREGS to determine whether the floating-point registers are
8113 available.
8114
8115 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8116 gnu_store_registers): Replace usage of NUM_GREGS with
8117 I386_NUM_GREGS.
8118
8119 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8120 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8121 usage of NUM_GREGS with I386_NUM_GREGS.
8122
8123 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8124
8125 * i386bsd-nat.c: Include "i386-tdep.h".
8126 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8127 I386_NUM_GREGS.
8128
8129 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8130 and associated comment. They no longer make any sense, since we
8131 don't use this file anymore on Linux.
8132
8133 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8134 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8135 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8136 elements in these arrays.
8137 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8138 MAX_NUM_REGS.
8139
8140 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8141
8142 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8143 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8144
8145 2002-06-14 Andrew Cagney <cagney@redhat.com>
8146
8147 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8148 EXTRACT_RETURN_VALUE.
8149 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8150 EXTRACT_STRUCT_VALUE_ADDRESS.
8151 * gdbarch.h, gdbarch.c: Regenerate.
8152
8153 * values.c (value_being_returned): Handle
8154 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8155 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8156
8157 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8158 * arm-tdep.c (arm_gdbarch_init): Update.
8159 * avr-tdep.c (avr_gdbarch_init): Update.
8160 * cris-tdep.c (cris_gdbarch_init): Update.
8161 * d10v-tdep.c (d10v_gdbarch_init): Update.
8162 * ia64-tdep.c (ia64_gdbarch_init): Update.
8163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8164 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8165 * s390-tdep.c (s390_gdbarch_init): Update.
8166 * sh-tdep.c (sh_gdbarch_init): Update.
8167 * s390-tdep.c (s390_gdbarch_init): Update.
8168 * sparc-tdep.c (sparc_gdbarch_init): Update.
8169 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8170 * v850-tdep.c (v850_gdbarch_init): Update.
8171 * vax-tdep.c (vax_gdbarch_init): Update.
8172 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8174
8175 * config/arc/tm-arc.h: Update.
8176 * config/d30v/tm-d30v.h: Update.
8177 * config/fr30/tm-fr30.h: Update.
8178 * config/h8300/tm-h8300.h: Update.
8179 * config/h8500/tm-h8500.h: Update.
8180 * config/i386/tm-i386.h: Update.
8181 * config/i386/tm-ptx.h: Update.
8182 * config/i386/tm-symmetry.h: Update.
8183 * config/i960/tm-i960.h: Update.
8184 * config/m32r/tm-m32r.h: Update.
8185 * config/m68k/tm-delta68.h: Update.
8186 * config/m68k/tm-linux.h: Update.
8187 * config/m68k/tm-m68k.h: Update.
8188 * config/m88k/tm-m88k.h: Update.
8189 * config/mcore/tm-mcore.h: Update.
8190 * config/mips/tm-mips.h: Update.
8191 * config/mn10200/tm-mn10200.h: Update.
8192 * config/pa/tm-hppa.h: Update.
8193 * config/pa/tm-hppa64.h: Update.
8194 * config/sparc/tm-sp64.h: Update.
8195 * config/sparc/tm-sparc.h: Update.
8196 * config/sparc/tm-sparclet.h: Update.
8197 * config/z8k/tm-z8k.h: Update.
8198
8199 2002-06-14 Andrew Cagney <cagney@redhat.com>
8200
8201 * Makefile.in (i386_linux_tdep_h): Define.
8202 (i386_tdep_h, i387_tdep_h): Define.
8203 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8204 $(i386_tdep_h) and $(i387_tdep_h).
8205 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8206
8207 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8208
8209 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8210 Already covered by the default.
8211
8212 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8213 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8214 (i386_gdbarch_init): Initialize long_double_format and long_double
8215 bit.
8216
8217 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8218 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8219 Move these to ...
8220 * config/i386/i386sol2.mh: ... here.
8221 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8222 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8223 (SIGCONTEXT_PC_OFFSET): Remove define.
8224 (IN_SIGTRAMP): Remove define.
8225 * i386-sol2-tdep.c: New file.
8226
8227 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8228 * config/i386/tm-i386nw.h: Removed.
8229
8230 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8231 USE_STRUCT_CONVENTION): Remove defines.
8232 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8233 (get_longjmp_target): Remove prototype.
8234 (IN_SIGTRAMP): Remove define.
8235 (i386bsd_in_sigtramp): Remove prototype.
8236 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8237 function. Update comment accordingly
8238 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8239 (FRAME_SAVED_PC): Remove define.
8240 (i386bsd_frame_saved_pc): Remove prototype.
8241 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8242 GET_LONGJMP_TARGET): Remove defines.
8243 (get_longjmp_target): Remove prototype.
8244 (IN_SIGTRAMP): Remove define.
8245 (i386bsd_in_sigtramp): Remove prototype.
8246 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8247 function. Update comment accordingly
8248 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8249 (FRAME_SAVED_PC): Remove define.
8250 (i386bsd_frame_saved_pc): Remove prototype.
8251 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8252 Remove prototype.
8253 (USE_STRUCT_CONVENTION): Remove prototype.
8254 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8255 declaration.
8256 (_initialize_i386bsd_nat): Revise logic to determine some
8257 constants at compile time when compiling a native GDB. Warn if
8258 things don't match up with what we expect.
8259 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8260 Remove variables.
8261 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8262 to use date stored in `struct gdbarch_tdep'.
8263 (i386bsd_sigcontext_offset): Remove varaible.
8264 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8265 stored in `struct gdbarch_tdep'.
8266 (i386bsd_frame_saved_pc): Make static.
8267 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8268 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8269 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8270 i386fbsd4_sc_pc_offset): New variables.
8271 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8272 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8273 functions.
8274 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8275 functions.
8276 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8277 Modify the value of i386fbsd_sigtramp_start and
8278 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8279 i386fbsd_sigtramp_end.
8280 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8281 function.
8282
8283 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8284 define to i386-linux-tdep.h.
8285 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8286 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8287 defines.
8288 (i386_linux_register_name, i386_linux_register_byte,
8289 i386_linux_register_raw_size): Remove prototypes.
8290 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8291 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8292 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8293 TARGET_WRITE_PC): Remove defines.
8294 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8295 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8296 i386_linux_write_pc): Remove prototypes.
8297 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8298 (get_longjmp_target): Remove prototype.
8299 * i386-linux-tdep.h: New file.
8300 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8301 * i386-linux-tdep.c: Include "i386-tdep.h" and
8302 "i386-linux-tdep.h".
8303 (i386_linux_register_name, i386_linux_register_byte,
8304 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8305 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8306 Make static.
8307 (i386_linux_init_abi): New function.
8308 (_initialize_i386_linux_tdep): New function.
8309
8310 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8311 (i386_saved_pc_after_call): Remove prototype.
8312 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8313 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8314 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8315 (i386_register_name, i386_stab_reg_to_regnum,
8316 i386_dwarf_reg_to_regnum): Remove prototypes.
8317 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8318 SIZEOF_SSE_REGS): Remove defines.
8319 (REGISTER_BYTES): Remove define.
8320 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8321 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8322 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8323 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8324 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8325 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8326 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8327 (get_longjmp_target): Remove prototype.
8328 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8329 (sigtramp_saved_pc): Remove define.
8330 (i386v4_sigtramp_saved_pc): Remove prototype.
8331 * config/i386/tm-go32.h (FRAME_CHAIN,
8332 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8333 (i386go32_frame_saved_pc): Remove prototype.
8334 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8335 (get_longjmp_target): Remove prototype.
8336 * i386-tdep.h: Include "osabi.h".
8337 (enum i386_abi): Removed.
8338 (enum struct_return): New enum.
8339 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8340 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8341 sc_pc_offset members.
8342 (i386_gdbarch_register_os_abi): Remove prototype.
8343 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8344 I386_SSE_NUM_REGS): New defines.
8345 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8346 I386_SSE_SIZEOF_REGS): New defines.
8347 (i386_register_name, i386_register_byte, i386_register_raw_size):
8348 New prototypes.
8349 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8350 (i386bsd_sigtramp_saved_pc): New prototype.
8351 * i386-tdep.c: Don't include "elf-bfd.h".
8352 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8353 i386_frame_chain, i386_saved_pc_after_call): Make static.
8354 (i386_frame_saved_pc): Rewrite to call architecture dependent
8355 function to deal with signal handlers. Make static.
8356 (i386go32_frame_saved_pc): Removed.
8357 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8358 Removed.
8359 (i386_get_longjmp_target): New function.
8360 (default_struct_convention, pcc_struct_convention,
8361 reg_struct_convention, valid_conventions, struct_convention): New
8362 variables.
8363 (i386_use_struct_convention): New function.
8364 (i386v4_sigtramp_saved_pc): Renamed to
8365 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8366 (i386_pc_in_sigtramp): New function.
8367 (i386_abi_names): Removed.
8368 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8369 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8370 Removed.
8371 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8372 i386_gdbarch_register_os_abi): Removed.
8373 (struct i386_abi_handler): Removed.
8374 (i386_abi_handler_list): Removed.
8375 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8376 functions.
8377 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8378 i386_nw_init_abi): New functions.
8379 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8380 Use set_gdbarch_xxx() calls instead of relying on macros for a
8381 number of calls.
8382 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8383 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8384 Register the various architecture variants defined in this file.
8385
8386 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8387
8388 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8389 (struct main_type): Remove arg_types member. Update comments for
8390 struct field.
8391 (TYPE_ARG_TYPES): Remove.
8392 (TYPE_FN_FIELD_ARGS): Update.
8393 (smash_to_method_type): Update prototype.
8394
8395 * c-typeprint.c (cp_type_print_method_args): Take method type
8396 instead of argument list. Use new argument layout. Simplify.
8397 (c_type_print_args): Use new argument layout. Simplify.
8398 (c_type_print_base): Update call to cp_type_print_method_args.
8399 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8400 argument; use die->type instead. Update call to
8401 smash_to_method_type.
8402 (read_structure_scope): Update call to dwarf2_add_member_fn.
8403 * gdbtypes.c (allocate_stub_method): Update comment.
8404 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8405 Use new argument layout.
8406 (check_stub_method): Use new argument layout. Don't count
8407 void as an argument.
8408 (print_arg_types): Update comments. Use new argument layout.
8409 (recursive_dump_type): Don't print arg_types member.
8410 * hpread.c (hpread_read_struct_type): Use new argument layout.
8411 (fixup_class_method_type): Likewise.
8412 (hpread_type_lookup): Likewise.
8413 * stabsread.c (read_type): Update calls to read_args and
8414 smash_to_method_type.
8415 (read_args): Use new argument layout. Simplify.
8416 * valops.c (typecmp): Use new argument layout. Update parameters
8417 and comments. Simplify.
8418 (hand_function_call): Use new argument layout.
8419 (search_struct_method): Update call to typecmp.
8420 (find_overload_match): Use new argument layout.
8421
8422 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * NEWS: Mention multithreaded debug support for gdbserver.
8425
8426 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8427
8428 * MAINTAINERS: Mention NEWS.
8429
8430 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8431
8432 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8433 (struct mips_objfile_private, compare_pdr_entries): New.
8434 (non_heuristic_proc_desc): Read the ".pdr" section if it
8435 is present.
8436
8437 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8438
8439 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8440 (arm_debug): New static variable.
8441 (_initialize_arm_tdep): Add ``set debug arm'' command.
8442
8443 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8444
8445 * Makefile.in (sim_arm_h): Define.
8446 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8447 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8448 (arm_register_sim_regno): New function, map an internal REGNUM
8449 onto a simulator register number.
8450 (arm_gdbarch_init): Set register_sim_regno.
8451
8452 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8453
8454 * MAINTAINERS: Add self.
8455
8456 2002-06-11 Jim Blandy <jimb@redhat.com>
8457
8458 * source.c (source_info): Mention whether the symtab has
8459 information about preprocessor macros.
8460
8461 Call the command `info macro', not `show macro'.
8462 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8463 Fix error message.
8464 (_initialize_macrocmd): Register `info_macro_command' in
8465 `infolist', not `showlist'.
8466
8467 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8468
8469 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8470 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8471 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8472 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8473 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8474 unconditionally.
8475 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8476 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8477 (_initialize_mips_tdep): Remove dead code.
8478 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8479 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8480 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8481 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8482 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8483 MIPS_LAST_FP_ARG_REGNUM): Remove.
8484
8485 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8486
8487 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8488 (unwind_tmp_obstack_free, parse_frame_info)
8489 (update_context, cfi_read_fp, cfi_write_fp)
8490 (cfi_frame_chain, cfi_init_extra_frame_info)
8491 (cfi_virtual_frame_pointer): Use the above function.
8492 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8493
8494 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8495
8496 * v850-tdep.c (v850_type_is_scalar): New function.
8497 (v850_use_struct_convention): Match current gcc implementation
8498 as close as possible.
8499 (v850_push_arguments): Fix stack_offset handling. Don't write
8500 struct_addr into register. This is done by v850_store_struct_return.
8501 (v850_extract_return_value): Care for structs.
8502 (v850_store_return_value): Ditto.
8503 (v850_store_struct_return): Actually write address.
8504
8505 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8506
8507 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8508 without debug information too.
8509
8510 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8511
8512 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8513 Make multi-arch pure.
8514 * gdbarch.h, gdbarch.c: Re-generate.
8515 * arm-tdep.c (arm_print_float_info): Update.
8516 * arch-utils.h (default_print_float_info): Update.
8517 * arch-utils.c (default_print_float_info): Update.
8518 * infcmd.c (float_info): Update call.
8519
8520 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8521
8522 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8523 the front of the initialize list.
8524
8525 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8526
8527 * infrun.c (struct inferior_status): Replace fields
8528 selected_frame_address and selected_level with field
8529 selected_frame_id.
8530 (save_inferior_status): Update. Use get_frame_id.
8531 (struct restore_selected_frame_args): Delete.
8532 (restore_selected_frame): Update. Use frame_find_by_id.
8533 (restore_inferior_status): Update.
8534
8535 * breakpoint.h (struct breakpoint): Change type of
8536 watchpoint_frame to frame_id.
8537 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8538 call to get_current_frame.
8539 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8540 get_current_frame.
8541 (watchpoint_check): Use frame_find_by_id.
8542
8543 * frame.h (record_selected_frame): Delete declaration.
8544 * stack.c (record_selected_frame): Delete function.
8545
8546 * frame.h (struct frame_id): Define.
8547 (get_frame_id): Declare.
8548 (frame_find_by_id): Declare.
8549 * frame.c (frame_find_by_id): New function.
8550 (get_frame_id): New function.
8551
8552 2002-06-10 Andrey Volkov <avolkov@transas.com>
8553
8554 * ser-e7kpc.c: Fix duplicated define and call of
8555 _initialize_ser_e7000pc
8556
8557 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8558
8559 * signals/signals.c (target_signal_from_host): Fix #ifdef
8560 SIGRTMIN case.
8561 (do_target_signal_to_host): Likewise.
8562
8563 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8564
8565 * mips-tdep.c (mips_find_abi_section): New function.
8566 (mips_gdbarch_init): Call it.
8567
8568 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8569
8570 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8571 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8572 after Andrew's 2002-06-08 gdbarch change.
8573
8574 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8575
8576 * i386-linux-nat.c (suppy_gregset): Don't supply
8577 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8578 register cache.
8579 (fill_gregset): Don't fetch it under the same circumstances.
8580
8581 2002-06-09 Andrew Cagney <cagney@redhat.com>
8582
8583 * Makefile.in (callback_h): Define.
8584 (remote_sim_h): Update path to remote-sim.h.
8585 (remote-rdp.o): Add $(callback_h).
8586 (remote-sim.o): Use $(callback_h).
8587 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8588 * remote-rdp.c: Include "gdb/callback.h".
8589
8590 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8591
8592 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8593 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8594
8595 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8596
8597 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8598 * rdi-share/serpardr.c: Ditto.
8599 * rdi-share/unixcomm.c: Ditto.
8600 * rdi-share/serdrv.c: Ditto.
8601 * rdi-share/hostchan.h: Ditto.
8602 * rdi-share/hostchan.c: Ditto.
8603 * rdi-share/host.h: Ditto.
8604 * rdi-share/devsw.c: Ditto.
8605
8606 * objfiles.h: Change type of obj_private to void pointer.
8607 * pa64solib.c: Update copyright. Don't include "assert.h", use
8608 strcmp instead of STREQ, use LONGEST, do not use PTR
8609 * somsolib.c: Ditto.
8610
8611 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8612 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8613 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8614
8615 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8616
8617 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8618 (default_get_saved_register): Delete function.
8619 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8620 generic_unwind_get_saved_register.
8621 * gdbarch.h, gdbarch.c: Re-generate.
8622
8623 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8624
8625 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8626 generic_func_frame_chain_valid.
8627 * gdbarch.h, gdbarch.c: Re-generate.
8628 * blockframe.c (generic_func_frame_chain_valid): Only check
8629 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8630 passing FP to PC_IN_CALL_DUMMY.
8631 Fix PR gdb/360.
8632
8633 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8634
8635 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8636 (register_gdbarch_data): Initialize init_p.
8637 (gdbarch_data): Initialize data pointer using the init function.
8638 (init_gdbarch_data): Delete function.
8639 (gdbarch_update_p): Update.
8640 (initialize_non_multiarch): Update.
8641 (struct gdbarch): Add field initialized_p.
8642 * gdbarch.h, gdbarch.c: Re-generate.
8643
8644 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8645
8646 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8647 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8648 better do the things actually here.
8649 * x86-64-tdep.c (x86_64_register_name2nr): New.
8650 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8651 (x86_64_gdbarch_init): Respect the above change.
8652 * x86-64-tdep.h (x86_64_register_name2nr)
8653 (x86_64_register_nr2name): Add prototypes.
8654 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8655
8656 2002-06-06 Michael Snyder <msnyder@redhat.com>
8657
8658 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8659 Delete extra braces and re-indent.
8660 (d10v_store_return_value): Char return values
8661 must be shifted over by one byte in R0.
8662 (d10v_extract_return_value): Delete extra braces, re-indent.
8663
8664 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8665
8666 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8667 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8668 (d10v_integer_to_address): Rewrite.
8669 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8670 the d10v specific functions which take care of converting to the
8671 correct space.
8672
8673 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8674
8675 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8676 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8677
8678 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8679
8680 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8681 includes.
8682 * config/tm-linux.h: Ditto.
8683 * config/alpha/tm-alphalinux.h: Ditto.
8684 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8685 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8686 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8687 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8688 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8689 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8690 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8691 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8692 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8693 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8694 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8695 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8696 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8697 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8698 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8699 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8700 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8701 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8702 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8703 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8704 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8705 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8706 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8707 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8708 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8709 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8710 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8711 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8712 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8713 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8714 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8715 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8716 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8717 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8718 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8719 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8720 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8721
8722 2002-05-04 Aidan Skinner <aidan@velvet.net>
8723
8724 * ada-exp.tab.c: New file
8725 * ada-exp.y: New file
8726 * ada-lang.c: New file
8727 * ada-lang.h: New file
8728 * ada-lex.c: New file
8729 * ada-lex.l: New file
8730 * ada-tasks.c: New file
8731 * ada-typeprint.c: New file
8732 * ada-valprint.c: New file
8733
8734 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8735
8736 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8737 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8738
8739 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8740
8741 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8742 insetead of ppc-linux-tdep.o.
8743 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8744 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8745
8746 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8747
8748 2002-05-07 Christian Groessler <chris@groessler.org>
8749 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8750 bit register contents for little endian hosts.
8751
8752 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8753
8754 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8755 any maintainer.
8756
8757 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8758
8759 * gdbarch.h: Regenerate.
8760
8761 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8762
8763 * MAINTAINERS: Add everyone to write-after-approval list.
8764
8765 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8766
8767 * stack.c (frame_info): Use frame_register_unwind instead of
8768 saved_regs. Mention when the SP is on the stack or in a register.
8769
8770 * frame.h (frame_register_unwind_ftype): Define. Document.
8771 (struct frame_info): Add field register_unwind and
8772 register_unwind_cache.
8773 (frame_register_unwind): Declare.
8774 (generic_unwind_get_saved_register): Declare.
8775
8776 * frame.c (frame_register_unwind): New function.
8777 (generic_unwind_get_saved_register): New function.
8778
8779 * blockframe.c (generic_call_dummy_register_unwind): New function.
8780 (frame_saved_regs_register_unwind): New function.
8781 (set_unwind_by_pc): New function.
8782 (create_new_frame): New function.
8783 (get_prev_frame): New function.
8784
8785 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8786
8787 * a29k-share/: Delete directory.
8788 * remote-vx29k.c: Delete file.
8789
8790 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8791
8792 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8793 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8794
8795 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8796
8797 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8798 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8799 (sparc64nbsd-nat.o)
8800 (sparcnbsd-nat.o)
8801 (sparcnbsd-tdep.o): New dependency lists.
8802 * NEWS: Note new UltraSPARC NetBSD native configuration.
8803 * configure.host (sparc64-*-netbsd*): New host.
8804 * configure.tgt (sparc-*-netbsdelf*)
8805 (sparc-*-netbsd*): Set gdb_target to nbsd.
8806 (sparc64-*-netbsd*): New target.
8807 * sparc64nbsd-nat.c: New file.
8808 * sparcnbsd-nat.c: New file.
8809 * sparcnbsd-tdep.c: New file.
8810 * sparcnbsd-tdep.h: New file.
8811 * config/sparc/nbsd.mt: New file.
8812 * config/sparc/nbsd64.mh: New file.
8813 * config/sparc/nbsd64.mt: New file.
8814 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8815 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8816 (HOST_IPC): Remove.
8817 * config/sparc/nbsdaout.mt: Remove.
8818 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8819 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8820 (HOST_IPC): Remove.
8821 * config/sparc/nbsdelf.mt: Remove.
8822 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8823 sparc-nat.c compatiblity defines.
8824 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8825 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8826 * config/sparc/tm-nbsd64.h: New file.
8827 * config/sparc/tm-nbsdaout.h: Remove.
8828 * config/sparc/xm-nbsd.h: Remove.
8829
8830 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8831
8832 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8833 * sparc-tdep.c: Include osabi.h.
8834 (gdbarch_tdep): Add osabi member.
8835 (_initialize_sparc_tdep): Use gdbarch_register.
8836 (sparc_gdbarch_init): Use generic OS ABI framework.
8837 (sparc_dump_tdep): New function.
8838
8839 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8840
8841 * corefile.c (do_captured_read_memory_integer): Return non-zero
8842 result.
8843 (safe_read_memory_integer): Copy result of memory read when
8844 status is non-zero. Also, add comments.
8845
8846 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8847
8848 * Makefile.in (ppc_tdep_h): Define.
8849 (ppc-linux-nat.o)
8850 (ppc-linux-tdep.o)
8851 (rs6000-tdep.o): Use $(ppc_tdep_h).
8852 (ppc-sysv-tdep.o)
8853 (ppcnbsd-nat.o)
8854 (ppcnbsd-tdep.o): New dependency lists.
8855 * ppc-tdep.h: Use generic OS ABI framework.
8856 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8857 (ppc_linux_init_abi): New functions.
8858 (ppc_sysv_abi_broken_use_struct_convention)
8859 (ppc_sysv_abi_use_struct_convention)
8860 (ppc_sysv_abi_push_arguments): Move to...
8861 * ppc-sysv-tdep.c: ...here.
8862 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8863 * rs6000-tdep.c (process_note_abi_tag_sections)
8864 (get_elfosabi): Remove.
8865 (rs6000_gdbarch_init): Use generic OS ABI framework.
8866 (rs6000_dump_tdep): New function.
8867 (_initialize_rs6000_tdep): Use gdbarch_register.
8868 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8869 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8870 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8871 of ppc-linux-tdep.o.
8872 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8873 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8874 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8875 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8876 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8877 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8878
8879 2002-05-29 Jim Blandy <jimb@redhat.com>
8880
8881 * macroscope.c (default_macro_scope): Put `void' in empty argument
8882 list.
8883
8884 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8885
8886 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8887 * arch-utils.c: Include "sim-regno.h".
8888 * gdbarch.sh: Don't include "sim-regno.h".
8889 * gdbarch.h, gdbarch.c: Regenerate.
8890 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8891 here.
8892 * arch-utils.h (legacy_register_sim_regno): To here.
8893 * remote-sim.c (legacy_register_sim_regno): Move function from
8894 here.
8895 * arch-utils.c (legacy_register_sim_regno): To here.
8896
8897 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8898
8899 * sim-regno.h: New file.
8900 * Makefile.in (sim_regno_h): Define.
8901 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8902 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8903 (legacy_register_sim_regno): New function.
8904 (one2one_register_sim_regno): New function.
8905 (gdbsim_fetch_register): Rewrite.
8906 (gdbsim_store_register): Only store a register when
8907 REGISTER_SIM_REGNO is valid.
8908 * d10v-tdep.c: Include "sim-regno.h".
8909 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8910 (d10v_ts3_register_sim_regno): Ditto.
8911 * gdbarch.sh: Include "sim-regno.h".
8912 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8913 * gdbarch.h, gdbarch.c: Regenerate.
8914 * arch-utils.h (default_register_sim_regno): Delete declaration.
8915 * arch-utils.c (default_register_sim_regno): Delete function.
8916
8917 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8918
8919 * ppcnbsd-nat.c: Rewrite.
8920 * ppcnbsd-tdep.c: New file.
8921 * ppcnbsd-tdep.h: New file.
8922 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8923 solib.o, and solib-svr4.o.
8924 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8925 nbsd-tdep.o, and corelow.o.
8926
8927 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8928
8929 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8930 `tr' and `sed'. Mention that `broken' targets are not expected to
8931 build.
8932
8933 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8934
8935 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8936 Let PC point right after the prologue before looking up symbols.
8937
8938 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8939
8940 * i386-tdep.c (i386_register_virtual_type): Return
8941 builtin_type_vec128i for SSE registers.
8942
8943 * gdbtypes.h (builtin_type_vec128i): Declare.
8944
8945 * gdbtypes.c (build_builtin_type_vec128i): New function.
8946 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8947 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8948 (build_gdbtypes): Initialize new builtin vector types.
8949 (_initialize_gdbtypes): Register new vector types with gdbarch.
8950
8951 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8952
8953 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8954 since it has been multi-arch'd.
8955 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8956 Move Alpha and VAX multi-arch news entries to same section
8957 as other multi-arch news.
8958
8959 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8962 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8963 static. Rename some register numbers to put them in ns32k-tdep
8964 private namespace.
8965 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8966 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8967 functions.
8968 (_initialize_ns32k_tdep): Use gdbarch_register.
8969 * ns32k-tdep.h: New file.
8970 * ns32knbsd-tdep.c: New file.
8971 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8972 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8973 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8974 REGISTER_BYTES, REGISTER_BYTE): Remove.
8975 * config/ns32k/tm-ns32k.h: New file.
8976 * config/ns32k/tm-umax.h: Remove.
8977
8978 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8979
8980 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8981 ns32k_store_struct_return, ns32k_extract_return_value,
8982 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8983 functions.
8984 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8985 ns32k_saved_pc_after_call.
8986 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8987 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8988 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8989 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8990 ns32k_extract_struct_value_address.
8991
8992 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8993
8994 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8995 ns32k_fix_call_dummy): New.
8996 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8997 ns32k_call_dummy_words.
8998 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8999 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9000 CALL_DUMMY_NARGS): Remove.
9001 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9002
9003 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9004
9005 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9006 ns32k_frame_saved_pc, ns32k_frame_args_address,
9007 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9008 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9009 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9010 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9011 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9012 (BREAKPOINT): Remove..
9013 (FRAME_CHAIN): Define as ns32k_frame_chain.
9014 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9015 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9016 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9017 (FRAME_FIND_SAVED_REGS): Remove.
9018 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9019 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9020 (POP_FRAME): Define as ns32k_pop_frame.
9021
9022 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9023
9024 * ns32k-tdep.c (ns32k_register_byte_32082,
9025 ns32k_register_byte_32382, ns32k_register_raw_size,
9026 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9027 functions.
9028 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9029 ns32k_register_byte_32382.
9030 * config/ns32k/tm-umax.h: Update copyright years.
9031 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9032 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9033 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9034 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9035 (ns32k_get_enter_addr): Fix prototype.
9036
9037 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9038
9039 * ns32k-tdep.c: Update copyright years.
9040 (ns32k_register_name_32082): New function.
9041 (ns32k_register_name_32382): Ditto.
9042 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9043 (REGISTER_NAME): Define as ns32k_register_name_32382.
9044 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9045 (REGISTER_NAME): Define as ns32k_register_name_32082.
9046
9047 2002-05-24 Jim Blandy <jimb@redhat.com>
9048
9049 * dwarf2read.c (free_line_header): Use xfree, not free.
9050
9051 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9052
9053 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9054 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9055
9056 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9057
9058 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9059
9060 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9061
9062 From Ross Alexander at NEC Europe:
9063 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9064
9065 2002-05-23 Michael Snyder <msnyder@redhat.com>
9066
9067 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9068 for input, rather than parse_and_eval_address.
9069
9070 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9071
9072 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9073 * Makefile.in (sim_d10v_h): Update definition.
9074
9075 2002-05-24 Andrew Cagney <cagney@redhat.com>
9076
9077 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9078 change `2002-05-22 Michael Snyder' below.
9079 (d10v_push_arguments): Ditto.
9080 (d10v_extract_return_value): Ditto.
9081
9082 2002-05-23 Jim Blandy <jimb@redhat.com>
9083
9084 * macrotab.c (check_for_redefinition): Don't complain if the new
9085 definition is the same as the previous one. Take more arguments
9086 to allow the comparison.
9087 (macro_define_object, macro_define_function): Pass more arguments
9088 to check_for_redefinition.
9089
9090 2002-05-22 Michael Snyder <msnyder@redhat.com>
9091
9092 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9093 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9094 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9095 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9096 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9097 Add a temp variable to save a call (and a memory read).
9098 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9099 if possible (so that PC_IN_CALL_DUMMY will work).
9100
9101 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9102
9103 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9104
9105 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9106
9107 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9108 fde->cie_ptr.
9109 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9110 (dwarf2_build_frame_info): Add offset to fde->initial_location
9111 so that frames of shared libraries are mapped correctly.
9112 (execute_stack_op): Change type of 'result' from ULONGEST to
9113 CORE_ADDR.
9114
9115 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9116
9117 * config/alpha/tm-nbsd.h: Include solib.h.
9118
9119 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9120
9121 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9122 assumptions about the host's byte order.
9123
9124 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9125
9126 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9127 to dependency list.
9128 * alphanbsd-tdep.c: Include solib-svr4.h.
9129 * shnbsd-tdep.c: Ditto.
9130
9131 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9132
9133 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9134 nbsd-tdep.h to dependency list.
9135 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9136 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9137 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9138 nbsdaout.mh and nbsdelf.mh consistently.
9139 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9140 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9141 nbsdaout.mt and nbsdelf.mh consistently.
9142 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9143 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9144 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9145 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9146 a.out shared library stuff from here...
9147 * config/nm-nbsdaout.h: ...to here.
9148 * config/tm-nbsd.h: Remove.
9149 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9150 * config/arm/nbsd.mh: Remove.
9151 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9152 nbsd-tdep.o.
9153 * config/arm/nbsdaout.mh: New file.
9154 * config/arm/nbsdelf.mh: New file.
9155 * config/arm/nm-nbsdaout.h: New file.
9156 * config/i386/nbsd.mh: Remove.
9157 * config/i386/nbsd.mt: Remove.
9158 * config/i386/nbsdaout.mh: New file.
9159 * config/i386/nbsdaout.mt: New file.
9160 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9161 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9162 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9163 i386_register_u_addr): Remove.
9164 * config/i386/nm-nbsdaout.h: New file.
9165 * config/i386/nm-nbsdelf.h: Remove.
9166 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9167 (USE_STRUCT_CONVENTION): Remove.
9168 * config/i386/tm-nbsdaout.h: New file.
9169 * config/i386/tm-nbsdelf.h: Remove.
9170 * config/m68k/nbsd.mh: Remove.
9171 * config/m68k/nbsd.mt: Remove.
9172 * config/m68k/nbsdaout.mh: New file.
9173 * config/m68k/nbsdaout.mt: New file.
9174 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9175 * config/m68k/nm-nbsdaout.h: New file.
9176 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9177 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9178 * config/ns32k/nbsd.mh: Remove.
9179 * config/ns32k/nbsd.mt: Remove.
9180 * config/ns32k/nbsdaout.mh: New file.
9181 * config/ns32k/nbsdaout.mt: New file.
9182 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9183 * config/ns32k/nm-nbsdaout.h: New file.
9184 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9185 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9186 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9187 (SVR4_SHARED_LIBS): Remove.
9188 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9189 * config/sparc/nbsd.mh: Remove.
9190 * config/sparc/nbsd.mt: Remove.
9191 * config/sparc/nbsdaout.mh: New file.
9192 * config/sparc/nbsdaout.mt: New file.
9193 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9194 * config/sparc/nbsdelf.mt: New file.
9195 * config/sparc/nm-nbsdaout.h: New file.
9196 * config/sparc/nm-nbsdelf.h: Remove.
9197 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9198 * config/sparc/tm-nbsdaout.h: New file.
9199
9200 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9201
9202 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9203 mipsnbsd-tdep.c
9204 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9205
9206 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9207
9208 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9209 shnbsd-nat.c.
9210 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9211
9212 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9213
9214 * NEWS: Note new MIPS NetBSD native configuration.
9215 * configure.host (mips*-*-netbsd*): New host.
9216 * configure.tgt (mips*-*-netbsd*): New target.
9217 * mipsnbsd-nat.c: New file.
9218 * mipsnbsd-tdep.c: New file.
9219 * mipsnbsd-tdep.h: New file.
9220 * config/mips/nbsd.mh: New file.
9221 * config/mips/nbsd.mt: New file.
9222 * config/mips/nm-nbsd.h: New file.
9223 * config/mips/tm-nbsd.h: New file.
9224
9225 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9226
9227 * Makefile.in (SFILES): Add osabi.c.
9228 (COMMON_OBS): Add osabi.o.
9229 (osabi.o): New dependency list.
9230 * osabi.c: New file.
9231 * osabi.h: New file.
9232 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9233
9234 * Makefile.in (alpha_tdep_h): Define and use instead of
9235 alpha-tdep.h.
9236 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9237 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9238 Remove.
9239 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9240 * alpha-tdep.h: Include osabi.h.
9241 (alpha_abi): Remove.
9242 (gdbarch_tdep): Use generic OS ABI framework.
9243 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9244 gdbarch_register_osabi.
9245 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9246 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9247 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9248
9249 * Makefile.in (sh_tdep_h): Add osabi.h.
9250 * sh-tdep.h (sh_osabi): Remove.
9251 (gdbarch_tdep): Use generic OS ABI framework.
9252 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9253 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9254 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9255 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9256
9257 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9258 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9259 gdbarch_register_osabi.
9260 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9261 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9262 (get_elfosabi): Rename to...
9263 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9264 ABI framework support routines.
9265 (arm_gdbarch_init): Use generic OS ABI framework.
9266 (arm_dump_tdep): Likewise.
9267 (_initialize_arm_tdep): Likewise.
9268 * arm-tdep.h: Include osabi.h.
9269 (arm_abi): Remove.
9270 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9271 osabi member.
9272 (arm_gdbarch_register_os_abi): Remove prototype.
9273 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9274 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9275
9276 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9277 * mips-tdep.c: Include osabi.h.
9278 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9279 OS ABI framework.
9280
9281 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9282
9283 * h8300-tdep.c: Fix formatting.
9284
9285 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9286
9287 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9288 printing vector registers.
9289
9290 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9291
9292 From Fernando Nasser:
9293 * remote.c (remote_async_open_1): Re-throw the exception when the
9294 connection fails.
9295 (remote_cisco_open): Ditto.
9296 (remote_open_1): Ditto.
9297
9298 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9299
9300 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9301 (remote_start_remote): Add uiout parameter. Pass through to
9302 remote_start_remote_dummy.
9303 (remote_open_1): Use catch_exception instead of catch_errors.
9304 (remote_async_open_1): Ditto.
9305 (remote_cisco_open): Ditto.
9306
9307 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9308
9309 * remote.c (remote_start_remote): Replace PTR with void pointer.
9310 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9311 static.
9312
9313 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9314
9315 * gdb_indent.sh: Allow the script to be run in the sim directory.
9316
9317 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9318
9319 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9320 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9321
9322 * corelow.c (core_open): Only call set_gdbarch_from_file if
9323 exec_bfd is NULL.
9324
9325 2002-05-17 Andrey Volkov <avolkov@transas.com>
9326
9327 * h8300-tdep.c: Add support of EXR register
9328 * config/h8300/tm-h8300.h: Ditto.
9329
9330 2002-05-17 Andrey Volkov <avolkov@transas.com>
9331
9332 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9333
9334 2002-05-17 Andrey Volkov <avolkov@transas.com>
9335
9336 * h8300-tdep.c: Change literal regnums to REGNO.
9337
9338 2002-05-17 Jim Blandy <jimb@redhat.com>
9339
9340 * NEWS: Note addition of macro support.
9341
9342 Expand preprocessor macros in C expressions.
9343 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9344 (scan_macro_expansion, scanning_macro_expansion,
9345 finished_macro_expansion): New function declarations.
9346 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9347 variable declarations.
9348 * parser-defs.h (expression_context_pc): New declaration.
9349 * parse.c (expression_context_pc): New variable.
9350 (parse_exp_1): Set expression_context_pc, as well as
9351 expression_context_block.
9352 * c-exp.y (yylex): If we're not already reading the result of a
9353 macro expansion, try to macro-expand the next token. When we're
9354 done scanning a macro expansion, switch back to the mainline text.
9355 Commas and `if's in a macro's expansion don't terminate the input.
9356 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9357 (macro_original_text, macro_expanded_text,
9358 expression_macro_lookup_func, expression_macro_lookup_baton): New
9359 variables.
9360 (scan_macro_expansion, scanning_macro_expansion,
9361 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9362 c_preprocess_and_parse): New functions.
9363 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9364 c_preprocess_and_parse, instead of c_parse.
9365 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9366 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9367
9368 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9369
9370 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9371 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9372 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9373
9374 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9375
9376 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9377
9378 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9379
9380 * Makefile.in (sh_tdep_h): Define and use.
9381 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9382 register enum): Move to...
9383 * * sh-tdep.h: ...here.
9384 * sh-tdep.c: Include sh-tdep.h.
9385 * sh3-rom.c: Likewise.
9386 * shnbsd-tdep.c: Likewise.
9387
9388 2002-05-16 Michael Snyder <msnyder@redhat.com>
9389
9390 * arm-tdep.c: Spelling fix in comment.
9391
9392 2002-05-16 Jim Blandy <jimb@redhat.com>
9393
9394 Add commands for manually expanding macros and showing their
9395 definitions.
9396 * macrocmd.c, macroscope.c, macroscope.h: New files.
9397 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9398 (macroscope_h): New variable.
9399 (HFILES_NO_SRCDIR): Add macroscope.h.
9400 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9401 (macroscope.o, macrocmd.o): New rules.
9402
9403 Teach the Dwarf 2 reader to read macro information.
9404 * dwarf2read.c: #include "macrotab.h".
9405 (dwarf_macinfo_buffer): New variable.
9406 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9407 dwarf_macinfo_size.
9408 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9409 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9410 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9411 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9412 dwarf2_macro_spaces_in_definition): New complaints.
9413 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9414 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9415 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9416 the partial symbol table.
9417 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9418 from what's recorded in the partial symbol table.
9419 (read_file_scope): If the compilation unit has a
9420 `DW_AT_macro_info' attribute, read its macro information.
9421 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9422
9423 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9424
9425 Fix PR gdb/546
9426 * ser-tcp.c: Don't include <netinet/udp.h>.
9427
9428 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9429
9430 * MAINTAINERS: Update my email address.
9431
9432 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9433
9434 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9435 include file of the same name.
9436
9437 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9438
9439 * configure.tgt: Mark v850 as multi-arched.
9440 * config/v850/tm-v850.h: Remove file.
9441 * config/v850/v850.mt: Eliminate TM_FILE.
9442
9443 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9444
9445 * v850-tdep.c: Full multi-arch.
9446 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9447 Define GDB_MULTI_ARCH to 2.
9448
9449 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9450
9451 * p-exp.y (current_type): New static variable.
9452 Carries the type of the expression at the position that is parsed.
9453 (push_current_type, pop_current_type): Two new functions. Used
9454 to store/restore current_type in expression on specific tokens.
9455 (search_field): New static variable. Set to one after parsing a point
9456 as at that point only a FIELDNAME token should be searched.
9457 (FIELDNAME): New token. After a point only a token belonging to
9458 current_type type definition is allowed.
9459 (all over token rules): reset and change current_type according
9460 to rules.
9461 (exp '[' rule): insert implicit array index field if
9462 exp is a pascal string type.
9463
9464 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9465
9466 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9467 frame info. Use frame_info's saved_regs instead of matching member
9468 in extra_frame_info throughout.
9469 (v850_frame_init_saved_regs): New function.
9470 (v850_init_extra_frame_info): Move most functionality into
9471 v850_frame_init_saved_regs().
9472 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9473 (v850_frame_find_saved_regs): Remove declaration.
9474 (FRAME_FIND_SAVED_REGS): Remove definition.
9475 (v850_frame_init_saved_regs): Add declaration.
9476 (FRAME_INIT_SAVED_REGS): Add definition.
9477
9478 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9479
9480 * v850-tdep.c: Begin multi-arch'ing v850.
9481 (v850_target_architecture_hook): Remove function.
9482 (v850_gdbarch_init): New function. Add code previously in
9483 v850_target_architecture_hook().
9484 (_initialize_v850_tdep): Don't set target_architecture_hook.
9485 Call register_gdbarch_init() instead.
9486
9487 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9488
9489 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9490 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9491 (fixup_class_method_type): Likewise.
9492
9493 2002-05-15 Jim Blandy <jimb@redhat.com>
9494
9495 Add macro structures to GDB's symbol tables. Nobody puts anything
9496 in them yet.
9497 * symtab.h (struct symtab): New member: `macro_table'.
9498 * buildsym.h (pending_macros): New global variable.
9499 * buildsym.c: #include "macrotab.h".
9500 (buildsym_init): Initialize `pending_macros'.
9501 (end_symtab): If we found macro information while reading a CU's
9502 debugging info, do build a symtab structure for it. Make the
9503 symtab point to the macro information, and clear the
9504 `pending_macros' pointer which held it while we were reading the
9505 debug info.
9506 (really_free_pendings): Free any pending macro table.
9507 * objfiles.h (struct objfile): New member: `macro_cache'.
9508 * objfiles.c (allocate_objfile): Set allocate and free functions
9509 for the macro cache's objstack.
9510 (free_objfile): Empty the macro cache's obstack.
9511 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9512 set new allocate and free functions for it.
9513 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9514 free functions for the macro cache's objstack. (Why is this
9515 function building its own objfile?)
9516 * symmisc.c (print_objfile_statistics): Print statistics on the
9517 macro bcache.
9518 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9519
9520 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9521
9522 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9523 (REGISTER_U_ADDR): Delete definition.
9524 (arm_register_u_addr): Delete declaration.
9525
9526 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9527
9528 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9529 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9530
9531 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9532
9533 * regcache.c (register_valid): Revise comments refering to "Not
9534 available" and "unavailable".
9535 * frame.c (frame_register_read): Ditto.
9536 * findvar.c (value_of_register): Ditto.
9537
9538 2002-05-15 Andrew Cagney <cagney@redhat.com>
9539
9540 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9541 (remote-sim.o): Update dependencies.
9542 (d10v-tdep.o): Specify dependencies.
9543 (sim_d10v_h): Define.
9544
9545 2002-05-14 Jim Blandy <jimb@redhat.com>
9546
9547 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9548 * macrotab.c (macro_lookup_inclusion, find_definition,
9549 new_macro_table): Same.
9550
9551 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9552 not `! strcmp ()'. This is a dubious improvement.
9553 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9554
9555 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9556 although it's not necessary, to avoid a warning.
9557
9558 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9559
9560 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9561 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9562 TYPE_INSTANCE_FLAGS.
9563 (struct main_type): New.
9564 (struct type): Move most members to struct main_type. Change
9565 cv_type and as_type to new type_chain member. Add instance_flags.
9566 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9567 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9568 (finish_cv_type): Remove prototype.
9569 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9570 Set TYPE_CHAIN.
9571 (alloc_type_instance): New function.
9572 (smash_type): New function.
9573 (make_pointer_type, make_reference_type, make_function_type)
9574 (smash_to_member_type, smash_to_method_type): Call smash_type.
9575 (make_qualified_type): New function.
9576 (make_type_with_address_space): Call make_qualified_type.
9577 (make_cv_type): Likewise.
9578 (finish_cv_type): Remove unnecessary function.
9579 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9580 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9581 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9582 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9583 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9584 * hpread.c (hpread_read_struct_type): Likewise.
9585 * stabsread.c (read_struct_type): Likewise.
9586
9587 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9588
9589 * configure.tgt: Add a catch all sh* target, for cases like
9590 sh[2,3,4]-elf and sh-hms.
9591
9592 2002-05-14 Keith Seitz <keiths@redhat.com>
9593
9594 * event-loop.c (create_file_handler): Don't do anything but
9595 update data when we are given a fd which we are already
9596 monitoring.
9597
9598 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9599
9600 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9601 (update_context): Use __func__ in warnings.
9602
9603 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9604
9605 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9606 and tcp_close to net_open and net_close.
9607 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9608 using UDP if requested. Don't try to disable Nagle on UDP
9609 sockets.
9610 * remote.c (remote_serial_open): New function. Warn about UDP.
9611 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9612
9613 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9614
9615 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9616
9617 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9618
9619 * configure.tgt: Remove sh-hms target.
9620 * MAINTAINERS: Don't list sh-hms as a separate target.
9621
9622 2002-05-13 Jim Blandy <jimb@redhat.com>
9623
9624 Add first preprocessor macro-expansion files.
9625 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9626 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9627 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9628 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9629 (COMMON_OBS): Add macrotab.o, macroexp.o.
9630 (macroexp.o, macrotab.o): New rules.
9631
9632 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9633
9634 * config/m88k/tm-m88k.h: Update copyright.
9635 (m88k_target_write_pc): Declare
9636 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9637 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9638 (SHIFT_INST_REGS): Update definition.
9639 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9640 using old definition of TARGET_WRITE_PC.
9641 * regcache.c (generic_target_write_pc): Delete code handling
9642 NNPC_REGNUM.
9643 * gdbarch.sh (NNPC_REGNUM): Delete.
9644 * gdbarch.h, gdbarch.c: Regenerate.
9645
9646 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9647
9648 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9649 builtin reg number.
9650
9651 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9652
9653 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9654 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9655 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9656 access macros.
9657 * c-typeprint.c (cp_type_print_method_args): Likewise.
9658 (c_type_print_args): Likewise.
9659 * d10v-tdep.c (d10v_push_arguments): Likewise.
9660 (d10v_extract_return_value): Likewise.
9661 * expprint.c (print_subexp): Likewise.
9662 * gdbtypes.c (lookup_primitive_typename): Likewise.
9663 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9664 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9665 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9666 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9667 (TYPE_VECTOR): Likewise.
9668 * hpread.c (hpread_read_struct_type)
9669 (fix_static_member_physnames, fixup_class_method_type)
9670 (hpread_type_lookup): Likewise.
9671 * mdebugread.c (parse_symbol, parse_type): Likewise.
9672 * p-lang.c (is_pascal_string_type): Likewise.
9673 * valops.c (hand_function_call): Likewise.
9674 * x86-64-tdep.c (classify_argument): Likewise.
9675
9676 * hpread.c (hpread_read_function_type)
9677 (hpread_read_doc_function_type): Call replace_type.
9678 * dstread.c (create_new_type): Delete.
9679 (decode_dst_structure, process_dst_function): Call alloc_type.
9680 Use type access macros.
9681
9682 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9683
9684 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9685 the're not supported by the current architecture.
9686 (i387_fill_fxsave): Likewise.
9687
9688 2002-05-12 Fred Fish <fnf@redhat.com>
9689
9690 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9691 sect_index_xxx members to index the first slot in section_offsets
9692 if all of the section_offsets are zero.
9693
9694 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9695
9696 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9697 checked in with last change.
9698
9699 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9700
9701 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9702 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9703 config.sub.
9704
9705 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9706
9707 * Makefile.in: Update dependencies.
9708
9709 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9710
9711 * language.c (local_hex_string_custom): Simplify. Do not depend
9712 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9713
9714 * memattr.c (mem_info_command): Replace calls to
9715 longest_local_hex_string and longest_local_hex_string_custom.
9716 * buildsym.c (make_blockvector): Ditto.
9717 * solib.c (info_sharedlibrary_command): Ditto.
9718 * tracepoint.c (tracepoints_info): Ditto.
9719 * symtab.c (print_msymbol_info): Ditto.
9720
9721 * language.c (local_hex_string): Delete.
9722 (local_hex_string_custom): Delete.
9723 (longest_local_hex_string): Rename to local_hex_string.
9724 (longest_local_hex_string_custom): Rename to
9725 local_hex_string_custom.
9726 * language.h (local_hex_string): Change parameter type to LONGEST.
9727 (local_hex_string_custom): Ditto.
9728 (longest_local_hex_string): Delete declaration.
9729 (longest_local_hex_string_custom): Ditto.
9730
9731 * solib.c: Update copyright.
9732 * memattr.c: Update copyright.
9733
9734 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9735
9736 * arch-utils.h (legacy_register_to_value): Declare.
9737 (legacy_value_to_register): Declare.
9738 (legacy_convert_register_p): Declare.
9739 * arch-utils.c (legacy_register_to_value): New function.
9740 (legacy_value_to_register): New function.
9741 (legacy_convert_register_p): New function.
9742
9743 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9744 (VALUE_TO_REGISTER): Define.
9745 (CONVERT_REGISTER_P): Define.
9746 * gdbarch.h, gdbarch.c: Regenerate.
9747
9748 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9749 VALUE_TO_REGISTER.
9750 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9751 CONVERT_REGISTER_P.
9752
9753 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9754 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9755
9756 * Makefile.in: Update dependencies for valops.c.
9757 * valops.c: Include "gdb_assert.h".
9758 (typecmp): Skip THIS parameter to methods.
9759 (find_method_list): Remove static_memfuncp argument,
9760 update callers. Check for stub methods.
9761 (find_value_oload_method_list): Don't set *static_memfuncp.
9762 (find_overload_match): Don't check for stub methods. Assert
9763 that methods are not stubbed. Handle static methods.
9764 (value_find_oload_method_list): Remove static_memfuncp argument.
9765 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9766 to the argument list for static stub methods.
9767 * value.h (value_find_oload_method_list): Update prototype.
9768
9769 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9770
9771 * arch-utils.h (generic_register_size): Declare.
9772 (generic_register_raw_size, generic_register_virtual_size): Delete
9773 declarations.
9774 * arch-utils.c (generic_register_raw_size): Delete.
9775 (generic_register_size): New function.
9776 (generic_register_virtual_size): Delete.
9777
9778 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9779 default generic_register_size.
9780 * gdbarch.h, gdbarch.c: Re-generate.
9781
9782 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9783 register_virtual_size.
9784 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9786
9787 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9788
9789 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9790 * gdbarch.h, gdbarch.c: Regenerate.
9791 * gnu-v3-abi.c: Update copyright.
9792 (vtable_address_point_offset): Update.
9793 (gnuv3_rtti_type): Update.
9794 (gnuv3_baseclass_offset): Update.
9795 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9796 (init_fetch_link_map_offsets): Update.
9797 * remote.c (get_remote_state): Update.
9798
9799 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9800
9801 * TODO: Remove value_headof/value_from_vtable_info comment.
9802 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9803 * values.c (value_headof, value_from_vtable_info): Delete.
9804 * value.h (value_from_vtable_info): Delete prototype.
9805
9806 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9807
9808 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9809 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9810 $(gdb_regex_h).
9811 (gdb_assert_h): Define.
9812 (gdb_wait_h): Define.
9813 (gdb_regex_h): Define.
9814
9815 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9816
9817 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9818 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9819
9820 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9821
9822 * nbsd-tdep.c: Fix comment.
9823
9824 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9825
9826 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9827 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9828 (nbsd-tdep.o): New dependency list.
9829 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9830 nbsd-tdep.h.
9831 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9832 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9833 * nbsd-tdep.c: New file.
9834 * nbsd-tdep.h: New file.
9835 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9836 nbsd-tdep.h.
9837 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9838 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9839 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9840 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9841
9842 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9843
9844 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9845 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9846 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9847 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9848 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9849 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9850
9851 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9852
9853 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9854 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9855 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9856 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9857 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9858 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9859 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9860
9861 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9862
9863 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9864 fetch_elfcore_registers to...
9865 * i386nbsd-tdep.c: ...here.
9866 (i386nbsd_use_struct_convention): Rename to...
9867 (i386nbsd_aout_use_struct_convention): ...this.
9868 (i386nbsd_supply_reg): New function.
9869 (i386nbsd_fill_reg): New function.
9870 (fetch_core_registers): Use i386nbsd_supply_reg.
9871 (fetch_elfcore_registers): Likewise.
9872 (_initialize_i386nbsd_tdep): New function.
9873 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9874 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9875 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9876 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9877 (i386nbsd_aout_use_struct_convention): ...this.
9878
9879 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9880
9881 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9882 (store_inferior_registers): Use shnbsd_fill_reg.
9883 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9884 sh_nbsd_supply_register): Collapse into...
9885 (shnbsd_supply_reg): ...this.
9886 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9887 (shnbsd_fill_reg): ...this.
9888 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9889 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9890 (fetch_core_registers): Use shnbsd_supply_reg.
9891 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9892 (sh_nbsd_core_fns): Rename to...
9893 (shnbsd_core_fns): ...this.
9894 (sh_nbsd_elfcore_fns): Rename to...
9895 (shnbsd_elfcore_fns): ...this.
9896 (sh_nbsd_init_abi): Rename to...
9897 (shnbsd_init_abi): ...this.
9898 (_initialize_sh_nbsd_tdep): Rename to...
9899 (_initialize_shnbsd_tdep): ...this.
9900 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9901 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9902 sh_nbsd_fill_register): Remove prototypes.
9903 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9904
9905 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9906
9907 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9908 (i387-nat.o): Delete dependency list.
9909 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9910 (x86-64-linux-nat.o): Likewise.
9911 * i387-nat.c: Delete file, moving contents to...
9912 * i387-tdep.c: ...here.
9913 * i387-nat.h: Rename...
9914 * i387-tdep.h: ...to this.
9915 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9916 * i386-linux-nat.c: Likewise.
9917 * i386bsd-nat.c: Likewise.
9918 * i386gnu-nat.c: Likewise.
9919 * i386nbsd-nat.c: Likewise.
9920 * i386v4-nat.c: Likewise.
9921 * x86-64-linux-nat.c: Likewise.
9922 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9923 * config/i386/go32.mh (NATDEPFILES): Likewise.
9924 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9925 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9926 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9927 * config/i386/linux.mh (NATDEPFILES): Likewise.
9928 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9929 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9930 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9931 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9932
9933 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9934
9935 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9936 (alphanbsd-nat.o): Remove dependency list.
9937 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9938 * alphanbsd-nat.c: Delete. Contents moved to...
9939 * alphanbsd-tdep.c: ...here.
9940 (_initialize_alphanbsd_tdep): Register core functions.
9941 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9942
9943 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9944
9945 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9946 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9947 (alphanbsd-nat.o): Likewise.
9948 (alphabsd-tdep.o): New dependency list.
9949 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9950 (fill_gregset): Use alphabsd_fill_reg.
9951 (supply_fpregset): Use alphabsd_supply_fpreg.
9952 (fill_fpregset): Use alphabsd_fill_fpreg.
9953 (fetch_inferior_registers): Use struct reg and struct fpreg
9954 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9955 and alphabsd_supply_fpreg.
9956 (store_inferior_registers): Use struct reg and struct fpreg
9957 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9958 and alphabsd_fill_fpreg.
9959 * alphabsd-tdep.c: New file.
9960 * alphabsd-tdep.h: New file.
9961 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9962 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9963 alphabsd_supply_fpreg.
9964 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9965 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9966
9967 2002-05-11 Eric Christopher <echristo@redhat.com>
9968
9969 * mips-tdep.c (mips_double_register_type): Fix thinko.
9970 (mips_single_register_type): Ditto.
9971 * MAINTAINERS: Add self.
9972
9973 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9974
9975 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9976 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9977 right thing on architectures with different endianness and/or
9978 integer sizes.
9979
9980 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9981
9982 From Christian Limpach <chris@Pin.LU>
9983 * configure.in: Change sed expression which comments out
9984 NATDEPFILES to also comment out continuation lines.
9985 * configure: Regenerate.
9986
9987 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9988
9989 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9990 big patch.
9991
9992 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9993
9994 * sh-tdep.c: Include correct file.
9995
9996 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9997
9998 New support for sh64-elf (sh5) target.
9999
10000 * configure.tgt: For sh64-elf target, default to sh-elf.
10001
10002 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10003 (struct gdbarch_tdep): Add new fields for new registers and ABI
10004 info.
10005
10006 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10007 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10008 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10009 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10010 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10011 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10012 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10013 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10014 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10015 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10016 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10017 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10018 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10019 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10020 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10021 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10022 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10023 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10024 sign_extend, sh64_nofp_frame_init_saved_regs,
10025 sh64_init_extra_frame_info, sh64_get_saved_register,
10026 sh64_extract_struct_value_address, sh64_pop_frame,
10027 sh64_push_arguments, sh64_extract_return_value,
10028 sh64_store_return_value, sh64_show_media_regs,
10029 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10030 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10031 sh_sh64_register_virtual_type,
10032 sh_sh64_register_convert_to_virtual,
10033 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10034 sh64_register_read, sh64_pseudo_register_write,
10035 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10036 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10037 sh64_do_pseudo_register, sh_compact_do_registers_info,
10038 sh64_do_registers_info, sh_gdbarch_init): New functions.
10039
10040 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10041
10042 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10043
10044 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10045
10046 * linespec.c (decode_line_1): Check for a double quote after
10047 a filename correctly.
10048
10049 2002-05-10 Jim Blandy <jimb@redhat.com>
10050
10051 Properly track the size of the current objfile's .debug_line section.
10052 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10053 (DWARF_LINE_SIZE): New macro.
10054 (dwarf2_build_psymtabs_hard): Record the line section's size in
10055 the partial symbol table.
10056 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10057 symbol table.
10058
10059 2002-05-10 Petr Sorfa <petrs@caldera.com>
10060
10061 * ia64-tdep.c: Handle breakpoints on L instruction type
10062 in MLX instruction bundle by moving the breakpoint to
10063 the third slot (X instruction type) as L holds only data.
10064
10065 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10066
10067 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10068 (process_one_symbol): Complain about discarding local symbols
10069 due to a misplaced N_LBRAC entry.
10070
10071 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10072
10073 From Daniel Berlin <dan@cgsoftware.com>
10074 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10075 decrease the depth we are at, in the case of templates.
10076
10077 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10078
10079 * mips-tdep.c (mips_float_register_type): New function.
10080 (mips_double_register_type): New function.
10081 (mips_print_register): Use them.
10082 (do_fp_register_row): Likewise.
10083
10084 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * signals/signals.c (signals): Remove conditional compilation around
10087 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10088 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10089
10090 2002-05-09 Michael Snyder <msnyder@redhat.com>
10091
10092 * remote-rdp.c (remote_rdp_can_run): Remove.
10093
10094 2002-05-09 Tom Tromey <tromey@redhat.com>
10095
10096 * jv-valprint.c (java_val_print): Handle `char' as a special case
10097 of TYPE_CODE_INT.
10098
10099 2002-05-09 Michael Snyder <msnyder@redhat.com>
10100
10101 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10102 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10103 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10104 str r(0123),[sp,#nn].
10105 (arm_skip_prologue): Ditto. Also make disassembly
10106 order-independent by placing it in a loop.
10107
10108 2002-05-06 Michael Snyder <msnyder@redhat.com>
10109
10110 * stabsread.c (read_type): Add recognition for new attribute:
10111 "@V;" means that an array type is actually a vector.
10112 This is analogous to the vector flag that's been added to dwarf2.
10113
10114 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10115
10116 * i386-tdep.h (i386_abi): New enum.
10117 (struct gdbarch_tdep): Replace os_ident member with abi.
10118 (i386_gdbarch_register_os_abi): New prototype.
10119 * i386-tdep.c (i386_abi_names): New array.
10120 (process_note_abi_tag_sections): Removed.
10121 (process_note_sections): New function.
10122 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10123 (struct i386_abi_handler): New struct.
10124 (i386_abi_handler_list): New variable.
10125 (i386_gdbarch_register_os_abi): New function.
10126 (i386_gdbarch_init): Adapt for the changes given above.
10127
10128 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * gregset.h: Say "GNU/Linux".
10131
10132 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10133
10134 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10135 (build_gdbtypes): Build builtin_type_v2_float.
10136 (_initialize_gdbtypes): Register new builtin type.
10137
10138 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10139
10140 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10141 (clear_gdbarch_swap): New function.
10142 (initialize_non_multiarch): Call.
10143 (gdbarch_update_p): Before calling init(), swap out and clear the
10144 existing architecture.
10145 * gdbarch.c: Regenerate.
10146
10147 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10148
10149 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10150 alphanbsd-tdep.c.
10151
10152 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10153
10154 * sh-nbsd-nat.c: Rename to...
10155 * shnbsd-nat.c: ...this.
10156 * sh-nbsd-tdep.c: Rename to...
10157 * shnbsd-tdep.c: ...this.
10158 * sh-nbsd-tdep.h: Rename to...
10159 * shnbsd-tdep.h: ...this.
10160 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10161 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10162
10163 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10164
10165 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10166 concatenation for command help messages.
10167
10168 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10169
10170 * NEWS: Note new sh*-*-netbsdelf* configuration.
10171 * configure.host: Set gdb_host_cpu to sh for all sh*.
10172 (sh*-*-netbsdelf*): New host.
10173 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10174 (sh*-*-netbsdelf*): New target.
10175 * sh-nbsd-nat.c: New file.
10176 * sh-nbsd-tdep.c: New file.
10177 * sh-nbsd-tdep.h: New file.
10178 * config/sh/nbsd.mh: New file.
10179 * config/sh/nbsd.mt: New file.
10180 * config/sh/nm-nbsd.h: New file.
10181 * config/sh/tm-nbsd.h: New file.
10182
10183 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10184
10185 * sh-tdep.c (sh_osabi_names): Declare.
10186 (process_note_abi_tag_sections): New function.
10187 (get_elfosabi): Ditto.
10188 (sh_gdbarch_register_os_abi): Ditto.
10189 (sh_dump_tdep): Ditto.
10190 _initialize_sh_tdep): Use gdbarch_register to register
10191 sh_gdbarch_init and sh_dump_tdep.
10192 * config/sh/tm-sh.h (sh_osabi): Declare.
10193 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10194
10195 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10196
10197 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10198 (thumb_scan_prologue): Ditto.
10199 (arm_find_callers_reg): Ditto.
10200 (arm_frame_chain): Ditto.
10201 (arm_init_extra_frame_info): Ditto.
10202 (arm_frame_saved_pc): Ditto.
10203 (arm_pop_frame): Ditto.
10204 (arm_push_return_address): New function.
10205 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10206 call_dummy_location, call_dummy_breakpoint_offset_p,
10207 call_dummy_breakpoint_offset, call_dummy_p,
10208 call_dummy_stack_adjust_p, call_dummy_words,
10209 sizeof_call_dummy_words, call_dummy_start_offset,
10210 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10211 call_dummy_address, push_return_address and push_dummy_frame for
10212 generic dummy frames.
10213
10214 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10215
10216 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10217 size computation for alloca.
10218 (sh_fp_frame_init_saved_regs): Likewise.
10219
10220 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10221
10222 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10223 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10224 * arm-tdep.c (arm_store_return_value): Use them.
10225 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10226 * remote-rdp.c (remote_rdp_fetch_register): Use
10227 ARM_MAX_REGISTER_RAW_SIZE.
10228 (remote_rdp_store_register): Likewise.
10229
10230 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10231
10232 * dwarf2cfi.c: Code cleanup, removed unused variables,
10233 added default labels to switch {} statements.
10234 * x86-64-tdep.c: Ditto.
10235 * x86-64-linux-nat.c: Ditto.
10236
10237 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10238
10239 * solib.h: Protect against multiple inclusion.
10240
10241 2002-05-06 Jim Blandy <jimb@redhat.com>
10242
10243 Add first preprocessor macro-expansion files.
10244 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10245 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10246 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10247 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10248 (COMMON_OBS): Add macrotab.o, macroexp.o.
10249 (macroexp.o, macrotab.o): New rules.
10250
10251 Separate the job of reading the line number info statement program
10252 header (...expialidocious) out into its own function.
10253 * dwarf2read.c (struct line_head, struct filenames, struct
10254 directories): Replace with...
10255 (struct line_header): New structure, containing the full
10256 contents of the statement program header, including the
10257 include directory and file name tables.
10258 (read_file_scope): If we have line number info, instead of just
10259 calling dwarf_decode_lines to do all the work, call
10260 dwarf_decode_line_header first to get a `struct line_header'
10261 containing the data in the statement program header, and then
10262 pass that to dwarf_decode_lines, which will pick up where that
10263 left off. Be sure to clean up the `struct line_header' object.
10264 (dwarf_decode_line_header, free_line_header, add_include_dir,
10265 add_file_name): New functions.
10266 (dwarf_decode_lines): Move all the code to read the statement
10267 program header into dwarf_decode_line_header. Take the line
10268 header it built as the first argument, instead of the offset to
10269 the compilation unit's line number info. Use the new `struct
10270 line_header' type instead of the old structures. No need to do
10271 cleanups here now, since we don't allocate anything.
10272 (dwarf2_statement_list_fits_in_line_number_section,
10273 dwarf2_line_header_too_long): New complaints.
10274
10275 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10276
10277 * gdbtypes.c (init_vector_type): New function.
10278 (build_builtin_type_vec128): Simplify the representation of SIMD
10279 registers.
10280 (build_gdbtypes): Initialize new builtin vector types.
10281 (_initialize_gdbtypes): Register new vector types with gdbarch.
10282 (builtin_type_v4_float, builtin_type_v4_int32,
10283 builtin_type_v8_int16, builtin_type_v16_int8,
10284 builtin_type_v2_int32, builtin_type_v4_int16,
10285 builtin_type_v8_int8): New (renamed) SIMD types.
10286
10287 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10288
10289 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10290 (i387_fill_fxsave): Likewise.
10291
10292 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10293
10294 * alpha-tdep.c (alpha_extract_return_value): Don't use
10295 non-constant array size in prototype.
10296
10297 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10298
10299 From Brian Taylor <briant at model dot com>:
10300 * ui-out.c (ui_out_field_core_addr): Use the function
10301 longest_local_hex_string_custom'to format addresses > 32 bits
10302 wide.
10303
10304 * ui-out.c (ui_out_field_core_addr): Update comment.
10305
10306 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10307
10308 * stack.c (select_and_print_frame): Make static. Delete the
10309 parameter `level'.
10310 (func_command): Update call.
10311 (select_frame_command): Delete code computing the frame level.
10312 * frame.h (select_and_print_frame): Delete declaration.
10313
10314 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10315
10316 * sparc-tdep.c (sparc_get_saved_register): Comment why
10317 get_prev_frame call is safe.
10318
10319 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10320
10321 * frame.h (select_frame): Delete level parameter.
10322 * stack.c (select_frame): Update. Use frame_relative_level to
10323 obtain the frame's level.
10324 (select_and_print_frame): Update call.
10325 (select_frame_command): Ditto.
10326 (up_silently_base): Ditto.
10327 (down_silently_base): Ditto.
10328 * ocd.c (ocd_start_remote): Ditto.
10329 * remote-rdp.c (remote_rdp_open): Ditto.
10330 * remote-mips.c (mips_initialize): Ditto.
10331 (common_open): Ditto.
10332 * remote-e7000.c (e7000_start_remote): Ditto.
10333 * m3-nat.c (select_thread): Ditto.
10334 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10335 (child_get_current_exception_event): Ditto.
10336 * varobj.c (varobj_create): Ditto.
10337 (varobj_update): Ditto.
10338 (c_value_of_root): Ditto.
10339 * tracepoint.c (finish_tfind_command): Ditto.
10340 * corelow.c (core_open): Ditto.
10341 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10342 * thread.c (info_threads_command): Ditto.
10343 (switch_to_thread): Ditto.
10344 * infrun.c (normal_stop): Ditto.
10345 (restore_selected_frame): Ditto.
10346 (restore_inferior_status): Ditto.
10347 * breakpoint.c (insert_breakpoints): Ditto.
10348 (watchpoint_check): Ditto.
10349 (bpstat_stop_status): Ditto.
10350 (do_enable_breakpoint): Ditto.
10351 * blockframe.c (flush_cached_frames): Ditto.
10352 (reinit_frame_cache): Ditto.
10353
10354 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10355
10356 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10357 maintainer.
10358
10359 2002-05-04 Jim Blandy <jimb@redhat.com>
10360
10361 * gdbtypes.c (replace_type): Doc fix.
10362
10363 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10364
10365 * valprint.c (strcat_longest): Delete commented out function.
10366 Update copyright.
10367
10368 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10369
10370 * MAINTAINERS: Mark a29k as deleted.
10371 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10372 Move new configurations to the top.
10373 * configure.tgt: Remove a29k.
10374 * config/a29k/tm-vx29k.h: Delete.
10375 * config/a29k/vx29k.mt: Delete.
10376 * config/a29k/tm-a29k.h: Delete.
10377 * config/a29k/a29k-udi.mt: Delete.
10378 * config/a29k/a29k.mt: Delete.
10379 * a29k-tdep.c: Delete.
10380 * remote-udi.c: Delete.
10381 * remote-mm.c: Delete.
10382 * remote-eb.c: Delete.
10383 * remote-adapt.c: Delete.
10384 * Makefile.in: Remove obsolete code.
10385 * config/s390/s390x.mt: Ditto.
10386 * config/s390/s390.mt: Ditto.
10387 * config/sparc/sparclynx.mh: Ditto.
10388 * config/sparc/linux.mh: Ditto.
10389 * config/pa/hppaosf.mh: Ditto.
10390 * config/pa/hppabsd.mh: Ditto.
10391 * config/ns32k/nbsd.mt: Ditto.
10392 * config/mips/vr5000.mt: Ditto.
10393 * config/m68k/sun3os4.mh: Ditto.
10394 * config/m68k/nbsd.mt: Ditto.
10395 * config/m68k/m68klynx.mh: Ditto.
10396 * config/m32r/m32r.mt: Ditto.
10397 * config/i386/x86-64linux.mt: Ditto.
10398 * config/i386/nbsdelf.mt: Ditto.
10399 * config/i386/nbsd.mt: Ditto.
10400 * config/i386/i386lynx.mh: Ditto.
10401
10402 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10403
10404 * target.c (debug_print_register): New function. Handle oversize
10405 registers.
10406 (debug_to_fetch_registers): Call.
10407 (debug_to_store_registers): Call.
10408
10409 2002-05-03 Jim Blandy <jimb@redhat.com>
10410
10411 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10412 (read_type): Doc fix.
10413 * gdbtypes.c (replace_type): Doc fix.
10414
10415 * stabsread.c (multiply_defined_struct): New complaint.
10416 (read_struct_type): If the type we were passed isn't empty, or
10417 incomplete, don't read the new struct type into it; complain,
10418 and return the original type unchanged. Take a new `type_code'
10419 argument, which is the type code for the new type.
10420 (read_type): Rather than storing the type's type code here, pass
10421 it as an argument to read_struct_type, and let that take care of
10422 storing it. That way, we don't overwrite the original type code,
10423 so read_struct_type can use it to decide whether we're overwriting
10424 something we shouldn't.
10425 (complain_about_struct_wipeout): New function.
10426
10427 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10428
10429 * gdbarch.sh: Assert that gdbarch is non-NULL.
10430 * gdbarch.c: Regenerate.
10431
10432 2002-05-03 Jason Merrill <jason@redhat.com>
10433
10434 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10435 and return NULL.
10436
10437 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10438
10439 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10440 (x86_64_dwarf2gdb_regno_map_length),
10441 (x86_64_dwarf2_reg_to_regnum): Added.
10442 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10443 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10444 (_initialize_x86_64_tdep): Synced with the change above.
10445 (x86_64_skip_prologue): Reformulated message.
10446
10447 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10448
10449 * f-exp.y: Also use new prev_lexptr variable
10450 to improve error reporting. Based on Michael Snyder
10451 2002-04-24 dated patch to c-exp.y.
10452 * jv-exp.y: Likewise.
10453 * m2-exp.y: Likewise.
10454
10455 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10456
10457 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10458 we are dealing with vectors.
10459
10460 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10461
10462 * config/m68k/tm-nbsd.h: Obvious fix,
10463 correct machine name.
10464
10465 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10466
10467 * p-typeprint.c (pascal_type_print_base): Add support
10468 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10469
10470 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10471
10472 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10473 for fondamental pascal 'char' type.
10474
10475 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10476
10477 * p-lang.h (is_pascal_string_type): Declaration changed,
10478 new sixth argument of type char ** added.
10479 * p-lang.c (is_pascal_string_type): Implementation
10480 changed. Args length_pos, length_size, string_pos, char_size
10481 can now be NULL. New argument arrayname set to the field
10482 name of the char array. Return value set to char array
10483 field index plus one.
10484 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10485 is_pascal_string_type function.
10486
10487 2002-05-02 Andrew Cagney <cagney@redhat.com>
10488
10489 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10490 <cagney@redhat.com> change.
10491 * gdbarch.c: Regenerate.
10492
10493 2002-05-02 Andrew Cagney <cagney@redhat.com>
10494
10495 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10496 before probing for a new one. Detect errorenous gdbarch_init
10497 functions.
10498 * gdbarch.c: Regenerate.
10499
10500 2002-05-01 Andrew Cagney <cagney@redhat.com>
10501
10502 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10503 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10504 * config/v850/tm-v850.h: Ditto. Update copyright.
10505
10506 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10507
10508 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10509 current_gdbarch.
10510
10511 2002-04-30 Michael Snyder <msnyder@redhat.com>
10512
10513 * arm-tdep.c: Whitespace clean-ups.
10514 (arm_skip_prologue): Fix thinko; two lines
10515 should have been removed as part of 4/24 change.
10516
10517 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10518
10519 * rs6000-tdep.c: Added comment describing how fpscr register
10520 numbers were chosen.
10521
10522 2002-04-30 Michael Snyder <msnyder@redhat.com>
10523
10524 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10525
10526 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10527
10528 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10529 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10530 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10531
10532 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10533
10534 From Louis Hamilton <hamilton@redhat.com>:
10535 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10536 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10537 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10538 not bfd-private xcoff data, to determine wordsize.
10539 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10540
10541 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10542
10543 GDB 5.2 released from 5.2 branch.
10544
10545 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10546
10547 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10548 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10549 (x86_64_register_info_table): Added comments with register numbers.
10550
10551 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10552
10553 * rs6000-tdep.c (rs6000_extract_return_value,
10554 rs6000_store_return_value): Handle returning vectors.
10555 (rs6000_gdbarch_init): Use
10556 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10557 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10558 New function.
10559 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10560 vectors.
10561 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10562 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10563
10564 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10565
10566 * hpread.c (hpread_psymtab_to_symtab_1,
10567 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10568 with fprintf_unfiltered (gdb_stderr,...).
10569
10570 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10571
10572 * remote-array.c (printf_monitor, write_monitor,
10573 array_insert_breakpoint, array_remove_breakpoint ):
10574 Replace fprintf (stderr,...
10575 with fprintf_unfiltered (gdb_stderr,....
10576 * remote-es.c: Likewise.
10577 * remote-os9k.c: Likewise.
10578 * remote-st.c: Likewise.
10579
10580 2002-04-28 Andreas Schwab <schwab@suse.de>
10581
10582 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10583 linux-proc.o and gcore.o.
10584
10585 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10586
10587 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10588 code without frame pointers.
10589
10590 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10591
10592 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10593 ON_STACK is needed.
10594
10595 2002-04-26 Ben Elliston <bje@redhat.com>
10596
10597 * target.c (do_xfer_memory): Correct reference to the new option
10598 "trust-readonly-sections".
10599
10600 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10601
10602 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10603 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10604 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10605 vectors.
10606 (read_array_type): Record the fact that this array type is really a
10607 vector (i.e. are passed in by value).
10608
10609 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10610
10611 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10612 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10613 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10614 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10615 * alpha-linux-tdep.c: Include frame.h.
10616 (alpha_linux_sigcontext_addr): New function.
10617 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10618 alpha_linux_sigcontext_addr.
10619 * alpha-osf1-tdep.c: Include gdbcore.h.
10620 (alpha_osf1_sigcontext_addr): New function.
10621 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10622 alpha_osf1_sigcontext_addr.
10623 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10624 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10625
10626 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10627
10628 * stack.c (selected_frame_level):
10629 (select_frame): Do not set selected_frame_level.
10630 * frame.h (selected_frame_level): Delete declaration.
10631
10632 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10633
10634 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10635 convert_from_func_ptr-addr when AIX / PowerOpen.
10636
10637 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10638
10639 * valops.c (hand_function_call): Call
10640 generic_save_call_dummy_addr.
10641 * frame.h (generic_save_call_dummy_addr): Declare.
10642 * blockframe.c (struct dummy_frame): Add fields call_lo and
10643 call_hi.
10644 (generic_find_dummy_frame): Check for PC in range call_lo to
10645 call_hi instead of entry_point_address.
10646 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10647 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10648 (generic_save_call_dummy_addr): New function.
10649
10650 2002-04-24 David S. Miller <davem@redhat.com>
10651
10652 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10653 sparc_skip_prologue.
10654 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10655 information to find prologue when possible.
10656 (sparc_prologue_frameless_p): Call examine_prologue directly.
10657 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10658 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10659 second argument.
10660 (SKIP_PROLOGUE): Likewise.
10661
10662 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10663
10664 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10665 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10666 indicate that the condition it was testing is always true.
10667 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10668 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10669 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10670
10671 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10672
10673 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10674 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10675 tdep->jb_pc and tdep->jb_elt_size.
10676 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10677 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10678 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10679 * alpha-nat.c (get_longjmp_target): Remove.
10680 (JB_ELEMENT_SIZE): Ditto.
10681 (JB_PC): Ditto.
10682 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10683 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10684 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10685 to alpha_get_longjmp_target.
10686 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10687 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10688 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10689
10690 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10691
10692 * README: Update to GDB 5.2.
10693
10694 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10695
10696 * gdbarch.sh (LC_ALL): Set to `c'.
10697
10698 2002-04-25 Theodore A. Roth <troth@verinet.com>
10699
10700 * avr-tdep.c: Ran through gdb_indent.sh.
10701
10702 2002-04-25 Theodore A. Roth <troth@verinet.com>
10703
10704 * MAINTAINERS: Add myself as AVR maintainer.
10705 * NEWS: Note new target avr.
10706
10707 2002-04-25 Theodore A. Roth <troth@verinet.com>
10708
10709 * Makefile.in: Add support for AVR target.
10710 * configure.tgt: Add support for AVR target.
10711 * avr-tdep.c: New file
10712 * config/avr/avr.mt: New file.
10713
10714 2002-04-25 Theodore A. Roth <troth@verinet.com>
10715
10716 * MAINTAINERS: Add myself to write-after-approval.
10717
10718 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10719
10720 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10721 with fprintf_unfiltered (gdb_stderr,....
10722
10723 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10724
10725 Fix PR gdb/508.
10726 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10727
10728 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10729
10730 * p-exp.y: Also use new prev_lexptr variable
10731 to improve error reporting. Based on Michael Snyder
10732 2002-04-24 dated patch to c-exp.y.
10733
10734 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10735
10736 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10737 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10738 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10739 to 0.
10740 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10741 and struct value.
10742 (FUNCTION_START_OFFSET): Remove.
10743 (BREAKPOINT): Ditto.
10744
10745 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10746
10747 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10748 * NEWS: Ditto.
10749
10750 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10751
10752 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10753 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10754 alpha_linux_pc_in_sigtramp.
10755 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10756 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10757 alpha_osf1_pc_in_sigtramp.
10758 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10759 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10760 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10761 alphafbsd_pc_in_sigtramp.
10762 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10763 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10764 alphanbsd_pc_in_sigtramp.
10765 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10766 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10767
10768 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10769
10770 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10771
10772 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10773
10774 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10775 alphanbsd-tdep.c.
10776 (alphanbsd-nat.o): New dependency list.
10777 (alphanbsd-tdep.o): Ditto.
10778 * NEWS: Note new native NetBSD/alpha configuration.
10779 * alphanbsd-nat.c: New file.
10780 * alphanbsd-tdep.c: Ditto.
10781 * configure.host (alpha*-*-netbsd*): New host.
10782 * configure.tgt (alpha*-*-netbsd*): New target.
10783 * config/alpha/nbsd.mh: New file.
10784 * config/alpha/nbsd.mt: Ditto.
10785 * config/alpha/nm-nbsd.h: Ditto.
10786 * config/alpha/tm-nbsd.h: Ditto.
10787
10788 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10789
10790 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10791 (alpha-osf1-tdep.o): New dependency list.
10792 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10793 and skip_sigtramp_frame members.
10794 * alpha-linux-tdep.c: Include gdbcore.h.
10795 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10796 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10797 * alpha-osf1-tdep.c: New file.
10798 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10799 alpha-osf1-dep.c.
10800 (alpha_frame_past_sigtramp_frame): New function.
10801 (alpha_dynamic_sigtramp_offset): Ditto.
10802 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10803 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10804 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10805 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10806 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10807 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10808 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10809 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10810 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10811 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10812 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10813 to find_solib_trampoline_target.
10814 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10815 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10816 (SKIP_TRAMPOLINE_CODE): Remove.
10817 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10818 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10819 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10820 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10821 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10822 (PROC_SIGTRAMP_MAGIC): Ditto.
10823 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10824 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10825 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10826 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10827 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10828
10829 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10830
10831 * NEWS: Note that Alpha targets are now multi-arch.
10832
10833 2002-04-24 Michael Snyder <msnyder@redhat.com>
10834
10835 * parser-defs.h (prev_lexptr): New external variable.
10836 * parse.c (parse_exp_1): Set prev_lexptr to null before
10837 calling the language-specific parser.
10838 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10839 (yyerror): Use prev_lexptr in error reporting.
10840
10841 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10842
10843 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10844 * gregset.h: If FILL_FPXREGSET is defined, provide
10845 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10846 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10847 is defined, call fill_fpxregset.
10848
10849 2002-04-24 Roland McGrath <roland@frob.com>
10850
10851 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10852 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10853 (supply_gregset, supply_fpregset): New functions.
10854
10855 * gnu-nat.c (gnu_find_memory_regions): New function.
10856 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10857 (gnu_xfer_memory): Add a cast.
10858
10859 2002-04-24 Michael Snyder <msnyder@redhat.com>
10860
10861 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10862 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10863 of argument regs ("str r(0123), [r11, #-nn"]).
10864 (arm_skip_prologue): Better handling for frameless functions.
10865 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10866 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10867
10868 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10869
10870 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10871 NUM_PSEUDO_REGS can be used.
10872
10873 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10874
10875 * arch-utils.h: Update copyright.
10876
10877 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10878 * gdbarch.h, gdbarch.c: Re-generate.
10879
10880 * inferior.h (IN_SIGTRAMP): Delete definition.
10881 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10882 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10883
10884 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10885 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10886 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10887 (find_proc_framesize): Ditto.
10888 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10889 (alpha_init_extra_frame_info): Ditto.
10890 * infrun.c (handle_inferior_event): Ditto.
10891 (handle_inferior_event): Ditto.
10892 (check_sigtramp2): Ditto.
10893 * blockframe.c (create_new_frame): Ditto.
10894 (get_prev_frame): Ditto.
10895 * ppc-linux-tdep.c: Update comments.
10896 * i386-linux-tdep.c: Update comments.
10897 * breakpoint.c (bpstat_what): Update comment.
10898
10899 2002-04-24 David S. Miller <davem@redhat.com>
10900
10901 * i960-tdep.c (register_in_window_p): New function.
10902 (i960_find_saved_register): Use it instead of
10903 REGISTER_IN_WINDOW_P.
10904 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10905
10906 * symtab.h (find_stab_function_addr): Kill extern.
10907 * minsyms.c (find_stab_function_addr): Remove from here...
10908 * dbxread.c: ... to here, and mark it static.
10909
10910 2002-04-20 David S. Miller <davem@redhat.com>
10911
10912 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10913 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10914
10915 2002-04-21 David S. Miller <davem@redhat.com>
10916
10917 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10918 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10919 (vx_write_register): Likewise.
10920
10921 2002-04-23 J. Brobecker <brobecker@gnat.com>
10922
10923 * source.c (is_regular_file): New function.
10924 (openp): Check wether file to open is a regular file
10925 to avoid opening directories.
10926
10927 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10928
10929 * findvar.c (extract_signed_integer): Cast printf argument
10930 to suppress format warning.
10931 (extract_unsigned_integer): Likewise.
10932 * infcmd.c (registers_info): Likewise.
10933 * top.c (get_prompt_1): Likewise.
10934 * valops.c (value_assign): Likewise.
10935 * valprint.c (print_decimal): Likewise.
10936
10937 2002-04-22 H.J. Lu (hjl@gnu.org)
10938
10939 * c-exp.y (typebase): Support
10940
10941 [long|long long|short] [signed|unsigned] [int|]
10942
10943 and
10944
10945 signed [long|long long|short] int
10946
10947 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10948
10949 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10950 and vax-tdep.h.
10951 * vax-tdep.h: New file.
10952 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10953 Make several routines static.
10954 (vax_get_saved_register): New function.
10955 (vax_gdbarch_init): New function.
10956 (_initialize_vax_tdep): Register vax_gdbarch_init.
10957 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10958 Remove macros now under the control of gdbarch.
10959
10960 2002-04-22 Michael Snyder <msnyder@redhat.com>
10961
10962 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10963 Some whitespace and coding standards tweaks.
10964
10965 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10966
10967 * vax-tdep.c: Include regcache.h.
10968 (vax_call_dummy_words): New.
10969 (sizeof_vax_call_dummy_words): New.
10970 (vax_fix_call_dummy): New function.
10971 (vax_saved_pc_after_call): Ditto.
10972 * config/vax/tm-vax.h: Don't include regcache.h.
10973 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10974 (CALL_DUMMY): Remove.
10975 (CALL_DUMMY_WORDS): Define.
10976 (SIZEOF_CALL_DUMMY_WORDS): Define.
10977 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10978
10979 2002-04-18 Michael Snyder <msnyder@redhat.com>
10980
10981 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10982
10983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10984
10985 * vax-tdep.c (vax_frame_chain): New function.
10986 (vax_push_dummy_frame): Ditto.
10987 (vax_pop_frame): Ditto.
10988 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10989 (FRAMELESS_FUNCTION_INVOCATION): Use
10990 generic_frameless_function_invocation_not.
10991 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10992 (POP_FRAME): Use vax_pop_frame.
10993
10994 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10995
10996 * vax-tdep.c (vax_store_struct_return): New function.
10997 (vax_extract_return_value): Ditto.
10998 (vax_store_return_value): Ditto.
10999 (vax_extract_struct_value_address): Ditto.
11000 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11001 vax_store_struct_return.
11002 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11003 (STORE_RETURN_VALUE): Use vax_store_return_value.
11004 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11005
11006 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11007
11008 * vax-tdep.c (vax_frame_saved_pc): New function.
11009 (vax_frame_args_address_correct): Ditto.
11010 (vax_frame_args_address): Ditto.
11011 (vax_frame_locals_address): Ditto.
11012 (vax_frame_num_args): Move code to be in proximity to
11013 other frame-related functions.
11014 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11015 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11016 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11017 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11018 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11019
11020 2002-04-22 H.J. Lu (hjl@gnu.org)
11021
11022 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11023 includedir.
11024
11025 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11026
11027 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11028 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11029 (FRAME_INIT_SAVED_REGS): New macro.
11030
11031 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11032
11033 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11034
11035 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11036
11037 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11038 where needed.
11039 (fetch_osf_core_registers): Likewise.
11040 (supply_gregset): Likewise.
11041
11042 2002-04-22 J. Brobecker <brobecker@gnat.com>
11043
11044 * symfile.h (get_section_index): Define.
11045 * symfile.c (get_section_index): New function.
11046 * mdebugread.c (SC_IS_SBSS): New macro.
11047 (SC_IS_BSS): Return true for the scBss storage class only, as
11048 the scSBss storage class refers to the .sbss section.
11049 (parse_partial_symbols): Discard the symbols which associated
11050 section does not exist.
11051 Make sure to use the .sbss section index for symbols which
11052 storage class is scBss, rather than using the .bss section index.
11053
11054 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11055
11056 * vax-tdep.c: Update copyright years.
11057 (vax_register_name): New function.
11058 (vax_register_byte): Ditto.
11059 (vax_register_raw_size): Ditto.
11060 (vax_register_virtual_size): Ditto.
11061 (vax_register_virtual_type): Ditto.
11062 * config/vax/tm-vax.h: Update copyright years.
11063 (REGISTER_NAMES): Remove.
11064 (REGISTER_NAME): Define.
11065 (REGISTER_BYTE): Use vax_register_byte.
11066 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11067 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11068 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11069
11070 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11071
11072 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11073 declaration
11074 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11075
11076 2002-04-21 David S. Miller <davem@redhat.com>
11077
11078 * arch-utils.c (generic_prologue_frameless_p): Kill
11079 SKIP_PROLOGUE_FRAMELESS_P code.
11080 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11081 references.
11082 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11083 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11084 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11085 references.
11086 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11087 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11088 (sparc_gdbarch_init): Pass it to
11089 set_gdbarch_prologue_frameless_p.
11090
11091 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11092
11093 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11094 (alphabsd-nat.o): New dependency list.
11095
11096 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11097
11098 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11099 alphafbsd-tdep.c.
11100 (alpha-linux-tdep.o): New dependency list.
11101 (alphafbsd-tdep.o): Likewise.
11102
11103 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11104
11105 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11106 to here...
11107 * alpha-tdep.c: ...from here.
11108 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11109
11110 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11111
11112 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11113 prototype from here...
11114 * alpha-tdep.h: ...to here.
11115
11116 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11117
11118 * frame.h (selected_frame_level): Document as deprecated.
11119 (frame_relative_level): Declare.
11120 * stack.c (frame_relative_level): New function.
11121 (selected_frame_level): Document as deprecated.
11122 (select_frame): Do not set the selected_frame_level.
11123
11124 * stack.c (frame_info, record_selected_frame): Update.
11125 (frame_command, current_frame_command): Update.
11126 (up_silently_base, up_command, down_silently_base): Update.
11127 (down_command): Update.
11128 * inflow.c (kill_command): Update.
11129 * tracepoint.c (finish_tfind_command): Update.
11130 * corelow.c (core_open): Update.
11131 * thread.c (info_threads_command): Update.
11132 (do_captured_thread_select): Update.
11133 * infcmd.c (finish_command): Update.
11134 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11135
11136 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11137
11138 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11139
11140 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11141
11142 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11143 type const.
11144
11145 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11146
11147 * alphafbsd-tdep.c: Update copyright years. Include
11148 alpha-tdep.h.
11149 (alphafbsd_use_struct_convention): Make static.
11150 (alphafbsd_init_abi): New function.
11151 (_initialize_alphafbsd_tdep): New function.
11152 * config/alpha/tm-fbsd.h: Update copyright years.
11153 (USE_STRUCT_CONVENTION): Remove.
11154
11155 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11156
11157 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11158 an Alpha ABI variant.
11159 (alpha_abi_handler_list): Declare.
11160 (alpha_gdbarch_register_os_abi): New function.
11161 (alpha_gdbarch_init): Give registered ABI variant handlers a
11162 chance to tweak the gdbarch once we have set up defaults.
11163 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11164
11165 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11166
11167 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11168 to standard_coerce_float_to_double.
11169 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11170
11171 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11172
11173 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11174 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11175 from gdbarch_tdep rather than a constant.
11176 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11177 the default text address for all Alpha Unix ABIs.
11178 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11179 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11180
11181 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11182
11183 * alpha-tdep.h: New file. Includes several Alpha target constants
11184 taken from...
11185 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11186 let gdbarch deal with.
11187 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11188 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11189 to dependency list.
11190 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11191 Alpha target register names.
11192 * alphabsd-nat.c: Likewise.
11193 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11194 Alpha target register names. Make serveral routines static.
11195 (alpha_get_saved_register): New function.
11196 (alpha_abi_names): New.
11197 (process_note_abi_tag_sections): New function.
11198 (get_elfosabi): New function.
11199 (alpha_gdbarch_init): New function.
11200 (alpha_dump_tdep): New function.
11201 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11202
11203 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11204
11205 * frame.c (find_saved_register): Delete #ifdef
11206 HAVE_REGISTER_WINDOWS code.
11207 * config/sparc/tm-sparc.h: Update comments.
11208 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11209
11210 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11211
11212 * i960-tdep.c (i960_find_saved_register): New function.
11213 (i960_get_saved_register): New function.
11214 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11215 (i960_get_saved_register): Declare.
11216 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11217
11218 2002-04-20 David S. Miller <davem@redhat.com>
11219
11220 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11221
11222 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11223
11224 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11225 instead of NUM_PSEUDO_REGS.
11226
11227 2002-04-20 David S. Miller <davem@redhat.com>
11228
11229 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11230 GDB_MULTI_ARCH_PARTIAL
11231 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11232 define, let tm-sp64.h do it.
11233
11234 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11235
11236 * frame.c (find_saved_register): Avoid a NULL pointer
11237 dereference and actually walk the frame list.
11238
11239 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11240
11241 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11242 sorted in most most-recent-used order. Document.
11243 * gdbarch.h, gdbarch.c: Regenerate.
11244
11245 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11246
11247 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11248 instead of ->prev.
11249 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11250 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11251 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11252 instead of ->prev.
11253
11254 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11255
11256 Fix PR gdb/471.
11257 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11258 (build_builtin_type_vec128): Ditto.
11259 (append_composite_type_field): Fix calculation of type length in
11260 union case.
11261
11262 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11263
11264 * config/djgpp/README: Update.
11265
11266 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11267 compiler warnings.
11268
11269 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11270
11271 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11272 (alpha_setup_arbitrary_frame): ...to this.
11273 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11274 for alpha_setup_arbitrary_frame.
11275
11276 2002-04-18 Andrew Cagney <cagney@redhat.com>
11277
11278 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11279 * gdbarch.h, gdbarch.c: Regenerate.
11280
11281 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11282 * target.h (memory_breakpoint_from_pc): Update declaration.
11283 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11284
11285 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11286 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11287 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11288 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11289 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11290 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11291 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11292 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11293 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11294 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11295 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11296 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11297
11298 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11299 const pointer.
11300 * monitor.c (monitor_insert_breakpoint): Ditto.
11301 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11302
11303 * config/mcore/tm-mcore.h: Update copyright.
11304 * mem-break.c: Ditto.
11305 * xstormy16-tdep.c: Ditto.
11306
11307 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11308
11309 * p-exp.y: Add precedence rule for '^' token.
11310 This removes the shift/reduce conflicts.
11311 Remove the comment concerning these shift/reduce conflicts.
11312
11313 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11314
11315 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11316 (registers_powerpc_nofp): New register set for processors
11317 without floating point unit.
11318
11319 2002-04-18 David S. Miller <davem@redhat.com>
11320
11321 * MAINTAINERS: Add myself to write-after-approval.
11322
11323 2002-04-17 Michael Snyder <msnyder@redhat.com>
11324
11325 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11326
11327 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11328
11329 * rs6000-tdep.c (frame_initial_stack_address): Use
11330 frame_register_read to read the alloca_reg.
11331
11332 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11333
11334 * frame.c (find_saved_register): Find saved registers in the next
11335 not prev frame.
11336 Fix PR gdb/365.
11337
11338 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11339
11340 * gdbarch.sh (LANG): Set to ``c''.
11341
11342 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11343
11344 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11345
11346 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11347
11348 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11349 Update copyright.
11350
11351 * hpread.c (hpread_get_lntt): Add declaration.
11352 Also fix PR gdb/391.
11353
11354 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11355
11356 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11357 * aclocal.m4, configure: Re-generate.
11358 Fix PR gdb/391.
11359
11360 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11361
11362 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11363 instead of tm_print_insn.
11364
11365 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11366
11367 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11368
11369 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11370
11371 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11372 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11373 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11374
11375 2002-04-12 Don Howard <dhoward@redhat.com>
11376
11377 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11378 max_user_call_depth.
11379 (init_cmd_lists): Initialize the new value;
11380 * cli/cli-script.c (execute_user_command): Limit the call depth of
11381 user defined commands. This avoids a core-dump when user commands
11382 are infinitly recursive.
11383
11384 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11385
11386 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11387 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11388 from tdep struct instead of DEFAULT_LR_SAVE.
11389 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11390 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11391 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11392
11393 2002-04-12 Michael Snyder <msnyder@redhat.com>
11394
11395 * Remote.c: Spelling fix.
11396 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11397 If no symbol found for "sbrk", try "_sbrk".
11398 (make_output_phdrs): Use bfd_section_name.
11399 (gcore_copy_callback): Use bfd_section_name.
11400 * eval.c: Indentation fix-ups.
11401 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11402 in case it gets applied to an address that is already
11403 in the instruction space.
11404 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11405 * symfile.c: Fix indentation, long lines.
11406 * source.c: White space fix-up.
11407
11408 2002-04-12 Andrew Cagney <cagney@redhat.com>
11409
11410 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11411 * frame.c (frame_register_read): New function. Return non-zero on
11412 success.
11413 (read_relative_register_raw_bytes_for_frame): Delete.
11414 (read_relative_register_raw_bytes): Delete.
11415 * frame.h (frame_register_read): Declare.
11416 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11417 * sh-tdep.c: Ditto.
11418 * infcmd.c (do_registers_info): Ditto.
11419 * hppa-tdep.c: Ditto.
11420 * rs6000-tdep.c: Ditto.
11421 * h8500-tdep.c: Ditto.
11422 * mips-tdep.c: Ditto.
11423 * h8300-tdep.c: Ditto.
11424 * z8k-tdep.c: Ditto.
11425
11426 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11427
11428 From Jimi X <jimix@watson.ibm.com>:
11429 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11430 64-bit SysV ABI.
11431
11432 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11433
11434 From Jimi X <jimix@watson.ibm.com>:
11435 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11436 bfd info.
11437
11438 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11439
11440 From Jimi X <jimix@watson.ibm.com>:
11441 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11442 register sets for these processor variants.
11443
11444 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * regformats/reg-ppc.dat: Support FPSCR.
11447
11448 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11449
11450 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11451 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11452 Add fpscr as an invalid/unfetchable register.
11453 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11454 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11455 (fill_fpregset): Add support for register fpscr.
11456 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11457 (fill_gregset): Account for the fact that register ``mq'' might
11458 not exist.
11459 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11460 (registers_power): Add fpscr to register set at slot 71.
11461 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11462 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11463
11464 2002-04-11 Michael Snyder <msnyder@redhat.com>
11465
11466 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11467 * configure: Regenerate.
11468 * config.in: Regenerate.
11469 * acconfig.h: Add define for _SYSCALL32.
11470 * core-sol2.c: Remove #define _SYSCALL32.
11471 * solib-legacy.c: Remove #define _SYSCALL32.
11472
11473 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11474
11475 * stack.c (select_frame): Cleanup internal error message, do not
11476 use %p.
11477
11478 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11479
11480 * stack.c (select_frame): Check that selected_frame and the
11481 specified level are as expected.
11482 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11483 Update copyright.
11484 * frame.h (struct frame_info): Add field `level'. Update
11485 copyright.
11486 Work-in-progress PR gdb/464.
11487
11488 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11489
11490 * maint.c (maint_print_section_info): Rename print_section_info.
11491 (print_bfd_section_info, print_objfile_section_info): Update.
11492 * inferior.h (struct gdbarch): Add opaque declaration.
11493 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11494 * gdbarch.h: Regenerate.
11495
11496 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11497
11498 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11499 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11500 (kernel_u_size): Added.
11501 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11502 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11503
11504 2002-04-04 Jim Ingham <jingham@apple.com>
11505
11506 * valarith.c (find_size_for_pointer_math): New function, either returns
11507 the size for a pointer's target, returns 1 for void *, or errors for
11508 incomplete types.
11509 (value_add, value_sub): use find_size_for_pointer_math.
11510
11511 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11512
11513 * linux-low.c (linux_look_up_symbols): New hook.
11514 (linux_target_ops): Add linux_look_up_symbols.
11515 * remote-utils.c (decode_address): New function.
11516 (look_up_one_symbol): New function.
11517 * server.c (handle_query): Call target look_up_symbols hook.
11518 * server.h (look_up_one_symbol): Add prototype.
11519 * target.h (struct target_ops): Add look_up_symbols hook.
11520
11521 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11522
11523 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11524 override FP_REGNUM with frame->fp. Update copyright.
11525 * parse.c (num_std_regs, std_regs): Delete.
11526 (target_map_name_to_register): Do not search std_regs. Update
11527 function description.
11528 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11529 declarations. Update copyright.
11530 Fix PR gdb/251.
11531
11532 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11533
11534 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11535 after the last symbol in a block.
11536
11537 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11538
11539 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11540 is non zero as a found symbol.
11541
11542 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11543
11544 * findvar.c: Include "builtin-regs.h".
11545 (value_of_register): Call value_of_builtin_reg when applicable.
11546 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11547 (target_map_name_to_register): Call
11548 builtin_reg_map_name_to_regnum.
11549 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11550 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11551 (builtin_regs_h): Define.
11552 (builtin-regs.o): New target.
11553 (findvar.o): Add $(builtin_regs_h).
11554 * builtin-regs.c, builtin-regs.h: New files.
11555 * std-regs.c: New file.
11556 Partial fix for PR gdb/251.
11557
11558 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11559
11560 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11561 it's no longer required.
11562
11563 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11564
11565 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11566
11567 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11568
11569 From Jimi X <jimix@watson.ibm.com>:
11570 * rs6000-tdep.c (rs6000_software_single_step): Use
11571 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11572 and size. Use target_insert_breakpoint() and
11573 target_remove_breakpoint() to insert and remove breakpoints
11574 instead of explicit memory reads and writes.
11575
11576 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11577
11578 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11579 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11580 ELF_OBJECT_FORMAT ifdef.
11581
11582 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11583
11584 From Jimi X <jimix@watson.ibm.com>:
11585 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11586
11587 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11588
11589 From Jimi X <jimix@watson.ibm.com>:
11590 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11591 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11592
11593 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11594
11595 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11596 s/asprintf/xasprintf/.
11597 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11598
11599 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11600
11601 I believe Jeff Law denies responsability for this one:
11602 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11603 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11604 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11605 Work-around for PR gdb/366.
11606
11607 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11608
11609 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11610 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11611 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11612
11613 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11614
11615 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11616 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11617 information.
11618
11619 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11620
11621 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11622 maintainer.
11623
11624 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11625
11626 * README (Reporting Bugs in GDB): Document the bug web page as the
11627 prefered way of submitting bugs.
11628 Fix PR gdb/402.
11629
11630 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11631
11632 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11633 -1. Update comment.
11634 * gdbarch.h, gdbarch.c: Re-generate.
11635
11636 2002-04-07 Andreas Schwab <schwab@suse.de>
11637
11638 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11639 buffer to regcache_collect.
11640
11641 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11642
11643 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11644 * gdbarch.c, gdbarch.h: Re-generate.
11645
11646 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11647
11648 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11649 declaration. Fix -Werror.
11650
11651 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11654 * gdbarch.c: Regenerate.
11655
11656 2002-04-05 Michael Snyder <msnyder@redhat.com>
11657
11658 * breakpoint.c (clear_command): Rewrite middle section to
11659 combine two loops with identical control conditions.
11660 Add a cleanup to eliminate a memory leak.
11661 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11662
11663 2002-04-05 H.J. Lu (hjl@gnu.org)
11664
11665 * solib-svr4.c (bkpt_names): Add "__start".
11666
11667 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11668
11669 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11670 as test for 64 bit target.
11671
11672 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11673
11674 * h8500-tdep.c (h8500_write_fp): Delete function.
11675 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11676 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11677 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11679 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11680 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11681 (s390_write_fp):
11682 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11683 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11684 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11685 (d10v_write_fp): Delete function.
11686 * inferior.h (write_fp, generic_target_write_fp): Delete
11687 declarations.
11688 * regcache.c (generic_target_write_fp): Delete function.
11689 (write_fp): Delete function.
11690 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11691 * gdbarch.h, gdbarch.c: Regenerate.
11692 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11693 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11694 (sparc64_write_fp): Delete declaration.
11695 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11696 (h8500_write_fp): Delete declaration.
11697
11698 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11699
11700 * sparc-tdep.c (sparc64_write_fp): Delete.
11701 (sparc_push_dummy_frame): Replace write_fp call with code to store
11702 the FP directly.
11703 (sparc_gdbarch_init): Do not initialize write_fp.
11704
11705 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11706
11707 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11708 clause.
11709
11710 2002-03-29 Jim Blandy <jimb@redhat.com>
11711
11712 * stack.c (get_selected_block): Add new argument `addr_in_block',
11713 used to return the exact code address we used to select the block,
11714 not just the block.
11715 * blockframe.c (get_frame_block, get_current_block): Same.
11716 * frame.h (get_frame_block, get_current_block,
11717 get_selected_block): Update declarations.
11718 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11719 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11720
11721 2002-04-05 Michael Snyder <msnyder@redhat.com>
11722
11723 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11724 warning message.
11725
11726 2002-04-05 J. Brobecker <brobecker@gnat.com>
11727
11728 * utils.c (xfullpath): New function.
11729 * defs.h (xfullpath): Add declaration.
11730 * source.c (openp): Use xfullpath in place of gdb_realpath to
11731 avoid resolving the basename part of filenames when the
11732 associated file is a symbolic link. This fixes a potential
11733 inconsistency between the filenames known to GDB and the
11734 filenames it prints in the annotations.
11735 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11736 to be able to match a filename with either the real filename, or
11737 the name of any symbolic link to this file.
11738 (lookup_partial_symtab): Ditto.
11739
11740 2002-04-04 Michael Snyder <msnyder@redhat.com>
11741
11742 * breakpoint.c: Add support for hardware breakpoints in overlays.
11743 (overlay_events_enabled): New state variable.
11744 (insert_breakpoints): Use overlay_events_enabled to decide
11745 whether to attempt to set a breakpoint at the overlay load addr.
11746 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11747 (remove_breakpoint): Use overlay_events_enabled to decide
11748 whether breakpoints need to be removed from overlay load addr.
11749 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11750 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11751 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11752 disable_overlay_breakpoints): Update overlay_events_enabled.
11753
11754 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11755
11756 * dwarf2read.c (struct function_range): New.
11757 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11758 (check_cu_functions): New.
11759 (read_file_scope): Initialize global function lists.
11760 Call dwarf_decode_line after processing children.
11761 (read_func_scope): Add to global function list.
11762 (dwarf_decode_lines): Call check_cu_functions everywhere
11763 record_line is called. Call record_line with a linenumber
11764 of 0 to mark sequence ends.
11765
11766 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11767
11768 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11769 change sync with glibc.
11770
11771 2002-04-03 Jim Blandy <jimb@redhat.com>
11772
11773 * configure.in: Call AC_C_INLINE.
11774 * configure: Regenerated.
11775
11776 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11777
11778 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11779 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11780
11781 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11782
11783 * NEWS: Mention gcore support on FreeBSD/i386.
11784
11785 * fbsd-proc.c: New file.
11786 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11787 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11788
11789 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11790 while statement.
11791
11792 2002-03-29 Jim Blandy <jimb@redhat.com>
11793
11794 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11795 unescaped newlines in string literals, but newer ones don't. So
11796 escape them.
11797
11798 2002-03-26 Michael Snyder <msnyder@redhat.com>
11799 Andrew Cagney <cagney@redhat.com>
11800
11801 * cli/cli-dump.c: New file. Dump memory to file,
11802 restore file to memory.
11803 * cli/cli-dump.h: New file.
11804 * Makefile.in: Add rules, dependencies for cli-dump.o.
11805 * NEWS: Mention new commands.
11806
11807 2002-03-28 Michael Snyder <msnyder@redhat.com>
11808
11809 * symfile.c (symbol_file_add): Move test for null symbols to later.
11810
11811 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11812
11813 From veksler at il.ibm.com:
11814 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11815 the xstrduped original path.
11816 Fix PR gdb/417.
11817
11818 2002-03-27 Michael Snyder <msnyder@redhat.com>
11819
11820 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11821 * infcmd.c (_initialize_infcmd): Ditto.
11822 * language.c (_initialize_language): Ditto.
11823 * symfile.c (_initialize_symfile): Ditto.
11824 * top.c (_init_main): Ditto.
11825 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11826
11827 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11828
11829 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11830 vector registers handling.
11831 (skip_prologue): Handle new AltiVec instructions. Fill in new
11832 fields of frame data.
11833 (frame_get_saved_regs): Fill in information for AltiVec registers.
11834
11835 2002-03-27 Jim Blandy <jimb@redhat.com>
11836
11837 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11838 a function; leave this macro here to invoke that function.
11839 (symbol_init_mangled_name): Declaration for that function.
11840 * symtab.c (symbol_init_mangled_name): New function.
11841
11842 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11843
11844 * valarith.c: Replace strerror with safe_strerror.
11845 * tracepoint.c: Ditto.
11846 * lin-lwp.c: Ditto.
11847 * go32-nat.c: Ditto.
11848 * inflow.c: Ditto.
11849 * gnu-nat.c: Ditto.
11850
11851 2002-03-27 Andreas Schwab <schwab@suse.de>
11852
11853 * event-top.c (command_line_handler): Remove useless if.
11854
11855 2002-03-27 Andreas Jaeger <aj@suse.de>
11856
11857 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11858 comment.
11859
11860 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11861
11862 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11863 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11864 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11865 (x86_64_linux_dr_get_status, supply_gregset),
11866 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11867 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11868 (x86_64_register_info_table): Add.
11869 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11870 (x86_64_register_raw_size, x86_64_register_virtual_type),
11871 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11872 general x86_64_register_info_table.
11873 (i386_gdbarch_init): gdbarch_register_bytes is now set
11874 dynamicaly during initialization.
11875 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11876 * gdbserver/linux-x86-64-low.c: Ditto.
11877
11878 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11879
11880 * gdbserver/server.c (main): Call target_signal_to_host_p
11881 and target_signal_to_host on signals received from the remote.
11882 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11883 target_signal_from_host on signals sent to the remote.
11884 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11885 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11886
11887 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11888
11889 * signals/signals.c: Include "server.h" in gdbserver build.
11890 (target_signal_from_name): Don't use STREQ.
11891 (_initialize_signals): Likewise. Don't include function in
11892 gdbserver build.
11893
11894 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11895
11896 * signals.c: Moved to...
11897 * signals/signals.c: Here.
11898 * Makefile (signals.o): Update.
11899
11900 2002-03-26 Jeff Law (law@redhat.com)
11901
11902 * somread.c (som_symtab_read): Remove some commented out code and
11903 updated related comments. Do not set the minimal symbol table to
11904 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11905 in a dynamic executable.
11906 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11907 where we are unable to find the minimal symbol for the given
11908 PC value.
11909
11910 2002-03-25 Jeff Law (law@redhat.com)
11911
11912 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11913
11914 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11915
11916 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11917
11918 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11919
11920 * command.h: Update copyright.
11921 (struct cmd_list_element): Replace definition with opaque
11922 declaration.
11923 (enum cmd_types): Document that it will eventually be moved to
11924 cli/cli-decode.h
11925 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11926 (MALLOCED_REPLACEMENT): Delete macro.
11927 * Makefile.in (cli_decode_h): Add $(command_h).
11928 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11929 * top.c: Include "cli/cli-decode.h".
11930 * completer.c: Include "cli/cli-decode.h".
11931 * maint.c: Include "cli/cli-decode.h".
11932 * cli/cli-decode.h: Include "command.h".
11933 (enum command_class): Delete.
11934 (enum cmd_types): Comment out.
11935 (enum cmd_auto_boolean): Delete.
11936 (enum var_types): Delete.
11937
11938 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11939
11940 * cli/cli-decode.c: Include "gdb_assert.h".
11941 (add_set_or_show_cmd): New static function.
11942 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11943 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11944 all fields, such as func, from the set command.
11945
11946 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11947
11948 * MAINTAINERS (sh-elf): Change warning flag to -w.
11949
11950 2002-03-23 Andrew Cagney <cagney@redhat.com>
11951
11952 * defs.h (error): Add printf format attribute.
11953 * thread-db.c (thread_from_lwp): Fix error format string.
11954 * stack.c (parse_frame_specification): Ditto.
11955 * cli/cli-decode.c (undef_cmd_error): Ditto.
11956 * scm-lang.c (scm_lookup_name): Ditto.
11957 * tracepoint.c (trace_error): Ditto.
11958 * remote-utils.c (usage): Ditto.
11959 * remote.c (compare_sections_command): Ditto.
11960 Fix PR gdb/328.
11961
11962 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11963
11964 * gdbtypes.c (append_composite_type_field): New function.
11965 (init_composite_type): New function.
11966 * gdbtypes.h (append_composite_type_field): Declare.
11967 (init_composite_type): Ditto.
11968
11969 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11970
11971 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11972 function.
11973 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11974 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11975 structure returning convention for SYSV ABI case, but not
11976 for GNU/Linux, FreeBSD, or NetBSD.
11977
11978 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11979
11980 * symtab.h (lookup_block_symbol): Add mangled_name argument
11981 to prototype.
11982
11983 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11984 with new mangled_name argument.
11985 * linespec.c (decode_line_1): Likewise.
11986 * valops (value_of_this): Likewise.
11987 * symtab.c (lookup_transparent_type): Likewise.
11988 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11989 (lookup_symbol): If we are given a mangled name, pass it down
11990 to lookup_symbol_aux.
11991 (lookup_block_symbol): If we are given a mangled name to check
11992 against, only return symbols which match it.
11993
11994 2002-03-22 Christopher Faylor <cgf@redhat.com>
11995
11996 * win32-nat.c (child_create_inferior): Check for proper shell to use
11997 here, in case the user changes it on the fly.
11998 (_initialize_inftarg): Remove shell path considerations.
11999
12000 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12001
12002 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12003 for gdbarch_max_register_raw_size and max_register_virtual_size.
12004 Adjust copyright year.
12005
12006 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12007
12008 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12009 in a function to cover the entire beginning of the function
12010 as well if it does not already.
12011
12012 2002-03-21 Tom Rix <trix@redhat.com>
12013
12014 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12015 (rs6000_ptrace64): Renamed from ptrace64.
12016
12017 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12018
12019 * gdbserver/remote-utils.c (remote_open): Don't call
12020 getprotobyname, we're all using TCP here so just use
12021 IPPROTO_TCP.
12022 * gdbserver/gdbreplay.c (remote_open): Ditto.
12023
12024 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12025
12026 * regcache.c (_initialize_regcache): No need to call
12027 build_regcache() at this time; it gets called whenever
12028 the gdbarch changes.
12029
12030 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12031
12032 * sparc-nat.c: Include sys/param.h where possible.
12033
12034 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12035
12036 Fix PR gdb/422.
12037 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12038 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12039 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12040 complex types.
12041 * stabsread.c (rs6000_builtin_type): Likewise.
12042 (read_sun_floating_type): Likewise.
12043
12044 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12045
12046 * stabsread.c (read_member_functions): Remove skip code for duplicate
12047 constructor/destructor methods. Use standard parsing for these
12048 methods and just do not chain them to the list of methods after
12049 parsing.
12050
12051 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12052
12053 * coffread.c: Remove redundant static declarations. Replace
12054 occurrences of `PTR' with `void *'.
12055 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12056 * top.h (quit_cover): Likewise.
12057 * defs.h (catch_errors): Likewise.
12058
12059 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12060
12061 * defs.h (XMALLOC): Define.
12062 * gdb-events.sh (XMALLOC): Delete macro.
12063 * gdb-events.c, gdb-events.h: Regenerate.
12064 * gdbarch.sh (XMALLOC): Delete macro.
12065 * gdbarch.c: Regenerate.
12066 * serial.c (XMALLOC): Delete macro.
12067 * ui-file.c (XMALLOC): Ditto.
12068 * ser-unix.h (XMALLOC): Ditto.
12069 * sh-tdep.c (XMALLOC): Ditto.
12070 * ui-out.c (XMALLOC): Ditto.
12071 * utils.c (XMALLOC): Ditto.
12072 * i386-tdep.c (XMALLOC): Ditto.
12073 * gdb-events.c (XMALLOC): Ditto.
12074 * d10v-tdep.c (XMALLOC): Ditto.
12075 * cli-out.c (XMALLOC): Ditto.
12076
12077 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12078 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12079 * ui-file.c, ui-out.c: Ditto.
12080
12081 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12082
12083 * command.h (struct cmd_list_element): Add field context.
12084 (set_cmd_context, get_cmd_context): Declare.
12085 * cli/cli-decode.h: Ditto.
12086 * cli/cli-decode.c (get_cmd_context): New function.
12087 (set_cmd_context): New function.
12088 (add_cmd): Initialize context.
12089 Part of fixing PR gdb/145 and PR gdb/146.
12090
12091 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12092
12093 * cli/cli-decode.c (cmd_type): New function.
12094 * command.h (cmd_type): Declare.
12095 * infrun.c (set_schedlock_func): Call function cmd_type.
12096 * kod.c (kod_set_os): Call cmd_type.
12097 * cris-tdep.c (cris_version_update): Use function cmd_type.
12098 (cris_mode_update, cris_abi_update): Ditto.
12099
12100 * command.h: (execute_cmd_post_hook): Declare.
12101 (execute_cmd_pre_hook): Declare.
12102 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12103 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12104 functions. Execute pre/post hook while ensuring that afterwords
12105 hook_in is cleared.
12106 * top.c (execute_command): Use execute_cmd_post_hook, and
12107 execute_cmd_pre_hook to execute pre/post commands.
12108 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12109 hook_stop_stub.
12110 (hook_stop_stub): Call execute_cmd_pre_hook.
12111
12112 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12113
12114 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12115 set'' and this leads to a core dump. Move xstrdup of
12116 operating_system to after check that it is not NULL.
12117
12118 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12119
12120 * kod.c (kod_set_os): Remove unnecessary check that
12121 ``command->type'' is set_cmd.
12122
12123 * valprint.c (set_input_radix): Use input_radix.
12124 (set_output_radix): Use output_radix.
12125 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12126 isn't reverted.
12127
12128 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12129
12130 * value.h (struct value): Delete field ``substring_addr''. Change
12131 aligner fields to force_doublest_align, force_longest_align,
12132 force_core_addr_align and force_pointer_aligh.
12133
12134 * value.h (struct value): Fix typo in above change.
12135
12136 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12137
12138 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12139 to fix internal_error from ``maintenance print architecture''.
12140
12141 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12142
12143 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12144 for gcc versions after gcc-2.8.1.
12145
12146 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12147
12148 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12149 for method resolution. Restore adjustment of ``this'' pointer after
12150 calling value_struct_elt, which was accidentally removed during the
12151 HP merge.
12152
12153 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12154
12155 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12156 value_of_register.
12157 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12158 get_saved_register.
12159 * value.h (value_of_register): Update.
12160
12161 2002-03-14 Richard Henderson <rth@redhat.com>
12162
12163 * configure.in: Detect declaration for canonicalize_file_name.
12164 * utils.c (canonicalize_file_name): Declare, if needed.
12165 (gdb_realpath): Prefer realpath if available and usable.
12166 * config.in, configure: Rebuild.
12167
12168 2002-03-14 Richard Henderson <rth@redhat.com>
12169
12170 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12171 a constant array bound.
12172
12173 * MAINTAINERS: Add myself to write-after-approval.
12174
12175 2002-03-14 Michael Snyder <msnyder@redhat.com>
12176
12177 * symfile.c (syms_from_objfile): Return immediately if no syms.
12178 (symbol_file_add): Return immediately if no syms.
12179 (find_sym_fns): Return immediately if no syms.
12180
12181 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12182
12183 * gdbserver/remote-util.c (remote_open): Print remote-side's
12184 IP address when remote debugging over the network.
12185
12186 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12187
12188 * config/sparc/fbsd.mh: Fix copyright.
12189 * config/sparc/fbsd.mt: Likewise.
12190
12191 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12192
12193 * MAINTAINERS: Fix typo in name of gdb warnings option.
12194 (x86-64): Fix formating so that this can be parsed by awk.
12195
12196 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12197
12198 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12199 * defs.h: Include "gdb/signals.h".
12200 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12201
12202 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12203
12204 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12205 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12206 from x86-64-tdep.h
12207
12208 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12209 Don Howard <dhoward@redhat.com>
12210
12211 * mips-tdep.c (ST0_FR): Define.
12212 (mips2_fp_compat): New function, temporarily disabled.
12213 (mips_read_fp_register_single): New function.
12214 (mips_read_fp_register_double): New function.
12215 (mips_print_register): Use them.
12216 (do_fp_register_row): Likewise.
12217
12218 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12219
12220 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12221 approval''.
12222
12223 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12224
12225 * stabsread.c (read_member_functions): Fix is_stub test for
12226 static member functions, improve comment.
12227
12228 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12229
12230 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12231 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12232 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12233 commands that set boolean values.
12234 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12235 (arm_rdi_resume): Always initialize PC.
12236 (arm_rdi_open): Don't use rslt as a boolean.
12237 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12238 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12239 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12240 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12241
12242 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12243
12244 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12245 * configure: Rebuilt.
12246
12247 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12248
12249 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12250 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12251
12252 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12253
12254 * cli/cli-decode.c (set_cmd_completer): New function.
12255 * command.h (set_cmd_completer): Declare.
12256 * cli/cli-decode.h (set_cmd_completer): Ditto.
12257
12258 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12259 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12260 * win32-nat.c (_initialize_inftarg): Ditto.
12261 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12262 * proc-api.c (_initialize_proc_api): Ditto.
12263 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12264 * source.c (_initialize_source): Ditto.
12265 * exec.c (_initialize_exec): Ditto.
12266 * solib.c (_initialize_solib): Ditto.
12267 * top.c (init_main): Ditto.
12268 * tracepoint.c (_initialize_tracepoint): Ditto.
12269 * symfile.c (_initialize_symfile): Ditto.
12270 * printcmd.c (_initialize_printcmd): Ditto.
12271 * infcmd.c (_initialize_infcmd): Ditto.
12272 * corefile.c (_initialize_core): Ditto.
12273
12274 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12275
12276 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12277
12278 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12279
12280 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12281
12282 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12283
12284 * NEWS: Update headings, 5.2 has branched.
12285
12286 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12287
12288 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12289 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12290 (register_addr, REGISTER_RAW_SIZE): Likewise.
12291 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12292 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12293
12294 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12295
12296 * MAINTAINERS (x86-64): Add myself.
12297 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12298 changed value_ptr -> struct value *
12299
12300 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12301
12302 * configure.host (sparc64-*-freebsd): Add.
12303 * configure.tgt: Likewise.
12304 * config/sparc/fbsd.mh: New file.
12305 * config/sparc/fbsd.mt: Likewise.
12306 * config/sparc/nm-fbsd.h: Likewise.
12307 * config/sparc/tm-fbsd.h: Likewise.
12308
12309 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12310
12311 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12312 regformats/reg-s390x.dat.
12313
12314 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12315
12316 * utils.c: Add FIXME explaining true/false problem.
12317
12318 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12319
12320 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12321
12322 2002-02-28 Michael Chastain <mec@shout.net>
12323
12324 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12325
12326 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12327
12328 * gdbserver/linux-s390-low.c: New file.
12329 * regformats/reg-s390.dat: New file.
12330 * regformats/reg-s390x.dat: New file.
12331 * gdbserver/configure.srv: Add S/390.
12332 * gdbserver/Makefile.in: Add S/390.
12333 * configure.tgt: Enable gdbserver for S/390.
12334
12335 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12336
12337 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12338 first line of the doc string for "info dos", except at the end of
12339 the sentence, since the short help stops at the first period.
12340
12341 2002-02-28 Jason Merrill <jason@redhat.com>
12342
12343 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12344
12345 2002-02-27 Fred Fish <fnf@redhat.com>
12346
12347 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12348 comment (dumy -> dummy).
12349
12350 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12351
12352 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12353
12354 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12355
12356 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12357
12358 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12359
12360 * gdbserver/acconfig.h: New file.
12361 * gdbserver/i387-fp.c: New file.
12362 * gdbserver/i387-fp.h: New file.
12363 * gdbserver/linux-x86-64.c: New file.
12364 * regformats/reg-x86-64.dat: New file.
12365 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12366 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12367 * gdbserver/configure.in: Add support for regsets.
12368 * gdbserver/config.in: Regenerate.
12369 * gdbserver/configure: Regenerate.
12370 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12371 * gdbserver/linux-low.h: New file.
12372 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12373 for regsets.
12374 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12375 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12376 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12377 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12378 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12379 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12380 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12381 "i387-fp.h". Add PTRACE_GETREGS and friends.
12382 * gdbserver/regcache.c (supply_register): New function.
12383 (supply_register_by_name): New function.
12384 (collect_register): New function.
12385 (collect_register_by_name): New function.
12386
12387 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12388
12389 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12390 (config.status): Add configure.srv dependency.
12391 (server_h): Add config.h dependency.
12392
12393 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12394
12395 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12396 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12397 * gdbserver/configure.srv: Change i386-*-linux* to use
12398 reg-i386-linux.o.
12399
12400 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12401
12402 * x86-64-tdep.c: Re-indent. Update copyright date.
12403
12404 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12405
12406 From Michal Ludvig <mludvig@suse.cz>:
12407 * x86-64-tdep.c (value.h): Delete.
12408 (gdb_assert.h): Include.
12409 (x86_64_register_convert_to_virtual,
12410 x86_64_register_convert_to_raw ): Add check which lets only
12411 floating-point values to be converted.
12412 (value_push): Delete.
12413 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12414 (i386_gdbarch_init): Number of register_bytes fixed.
12415
12416 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12417
12418 * MAINTAINERS: Add x86-64 target.
12419
12420 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12421
12422 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12423 * osfsolib.c (solib_map_sections): Ditto.
12424 * irix5-nat.c (solib_map_sections): Ditto.
12425 * corelow.c (gdb_check_format): Ditto.
12426 * symfile.c (symfile_bfd_open): Ditto.
12427 * solib.c (solib_map_sections): Ditto.
12428 Fix PR gdb/354.
12429
12430 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12431
12432 * remote.c (_initialize_remote): By default, disable ``e'' and
12433 ``E'' step out-of-range packets.
12434
12435 2002-02-26 Andreas Schwab <schwab@suse.de>
12436
12437 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12438 m68k_linux_frame_saved_pc.
12439 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12440 in_sigtramp.
12441 (SIGCONTEXT_PC_OFFSET): Remove.
12442 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12443 m68k_linux_sigtramp_saved_pc): New functions.
12444 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12445 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12446 (UCONTEXT_PC_OFFSET): Define.
12447 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12448 non-RT and RT signal trampolines.
12449
12450 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12451
12452 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12453 (TARGET_NBPG, STACK_END_ADDR): Delete
12454 (VARIABLES_INSIDE_BLOCK): Delete.
12455
12456 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12457
12458 * utils.c (perror_with_name): Make string parameter constant.
12459 (print_sys_errmsg): Ditto.
12460 (query): Ditto.
12461 * defs.h (perror_with_name): Update.
12462 (print_sys_errmsg): Update.
12463 (query): Update.
12464
12465 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12466
12467 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12468 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12469
12470 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12471
12472 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12473 if it already matches the current architecture from the exec file.
12474 Include arch-utils.h for gdbarch_info_init prototype.
12475 * Makefile.in (rs6000-nat.o): Update dependencies.
12476
12477 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12478
12479 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12480 list of exported variables.
12481
12482 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12483
12484 * gdbserver/configure.srv: New file.
12485 * gdbserver/configure.in: Use configure.srv instead
12486 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12487 from it.
12488 * gdbserver/configure: Regenerated.
12489 * gdbserver/terminal.h: New file.
12490 * gdbserver/Makefile.in: Update for configure changes. Remove
12491 more unneeded include paths.
12492
12493 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12494
12495 From wiz at danbala:
12496 * config/sparc/tm-sp64.h: Fix grammar and typos.
12497 Fix PR gdb/287.
12498
12499 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12500
12501 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12502 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12503 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12504 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12505 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12506 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12507 * s390-tdep.c: Ditto.
12508 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12509 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12510 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12511 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12512 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12513 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12514 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12515 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12516 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12517 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12518 Fix PR gdb/378.
12519
12520 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12521
12522 * lin-thread.c: Delete file.
12523 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12524 to gdb_proc_service.h.
12525 * configure: Re-generate.
12526
12527 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12528 * serial.c (serial_open): Delete check for "ocd".
12529 Fix PR gdb/349.
12530
12531 * Makefile.in (linux-thread.o): Delete target.
12532 * linux-thread.c: Delete file.
12533
12534 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12535 renamed SH files to be consistent.
12536
12537 * symtab.c (sort_search_symbols): Use xfree.
12538
12539 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12540
12541 * arm-linux-tdep.c (arm_linux_init_abi): Register
12542 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12543 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12544 definition with undef, since we don't want the sysvr4 definition.
12545 (SKIP_TRAMPOLINE_CODE): Likewise.
12546
12547 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12548
12549 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12550
12551 * configure.in: (AC_CHECK_FUNCS) Added test for
12552 canonicalize_file_name Regenerated.
12553 * config.in, configure: Regenerated.
12554 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12555 defined use canonicalize_file_name.
12556
12557 2002-02-23 Michael Chastain <mec@shout.net>
12558
12559 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12560
12561 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12562
12563 * README: Remove references to cygnus.com.
12564 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12565 dot com'' form. Remove references to cygnus.com and sourceware.
12566
12567 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12568
12569 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12570 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12571 1003.1-2001 no longer allows "head -1".
12572 * gdb/Makefile.in (version.c): Likewise.
12573 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12574 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12575 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12576
12577 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12578
12579 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12580 * command.h (cmd_cfunc_eq): Declare.
12581 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12582
12583 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12584 ``struct cmd_list_element *''.
12585 * cli/cli-cmds.c (is_complete_command): Update. Use
12586 cmd_cfunc_eq.
12587 * top.c (execute_command): Pass the command to
12588 is_complete_command.
12589 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12590
12591 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12592
12593 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12594 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12595 architecture defines.
12596 * s390-tdep.c (s390_gdbarch_init): Likewise.
12597
12598 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12599
12600 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12601 (arm_linux_push_arguments): Likewise.
12602 (arm_linux_init_abi): Register them. Also register linux-specific
12603 call_dummy_words.
12604 (find_minsym_and_objfile): Use strcmp, not STREQ.
12605 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12606 (arm_linux_call_dummy_words): Delete declaration.
12607 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12608 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12609 declarations.
12610 (LOWEST_PC): Delete.
12611
12612 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12613
12614 * maint.c (print_section_info): Do not prepend `0x' to filepos
12615 output, it will be handled by local_hex_string_custom.
12616
12617 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12618
12619 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12620 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12621 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12622
12623 2002-02-22 Jim Blandy <jimb@redhat.com>
12624
12625 Indicate that the bcache functions don't change the strings
12626 they're passed.
12627 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12628 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12629
12630 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12631
12632 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12633
12634 2002-02-21 Christopher Faylor <cgf@redhat.com>
12635
12636 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12637 find the complete path to a loaded DLL.
12638
12639 2002-02-21 Fred Fish <fnf@redhat.com>
12640
12641 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12642 that marks the end of the range of a function, enter a line number
12643 entry that has a line number of zero and a PC offset that matches
12644 the end of the function. This starts a range of PC's for which no
12645 line number information is known.
12646 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12647 PC's for which no line number info is found (line number is zero)
12648 then we didn't find any valid line information.
12649 * symtab.h: Document use of zero line number entry.
12650
12651 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12652
12653 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12654 (have_ptrace_getvrregs): Define for run time checks.
12655 (gdb_vrregset_t): New type for Altivec register handling.
12656 (fetch_register, store_register): Fetch/store altivec register
12657 when needed.
12658 (fetch_altivec_register, store_altivec_register): New functions.
12659 (supply_vrregset, fill_vrregset): New functions.
12660 (fetch_altivec_registers, store_altivec_registers): New functions.
12661 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12662 registers as well.
12663
12664 2002-02-21 Jiri Smid <smid@suse.cz>
12665
12666 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12667
12668 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12669
12670 * Makefile.in (armnbsd-nat.o): Update dependencies.
12671 * armnbsd-nat.c (supply_gregset): New function. Common code to
12672 supply the integer register set.
12673 (supply_fparegset): New function. Similar for FPA registers.
12674 (fetch_regs, fetch_fp_regs): Use them.
12675 (fetch_core_registers): Likewise.
12676 (fetch_elfcore_registers): New function.
12677 (arm_netbsd_elfcore_fns): New core-file type specification.
12678 (_initialize_arm_netbsd_nat): Register it.
12679
12680 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12681
12682 * armnbsd-nat.c: Include gdbcore.h.
12683 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12684 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12685 'void' to declaration, to shut up ARI.
12686 (fetch_core_registers): Make static. Rewrite using supply_register.
12687 (arm_netbsd_core_fns): New core-file type specification.
12688 (_initialize_arm_netbsd_nat): New function.
12689
12690 2002-02-21 Christopher Faylor <cgf@redhat.com>
12691
12692 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12693 value.
12694
12695 2002-02-20 Christopher Faylor <cgf@redhat.com>
12696
12697 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12698 fails.
12699
12700 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12701
12702 * jv-exp.y (parse_number): Change type of implicit longs
12703 to builtin_type_uint64.
12704
12705 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12706
12707 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12708 to be an integer instead of a `union wait'.
12709
12710 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12711
12712 * mips-linux-nat.c: Call the operating system GNU/Linux.
12713 * mips-linux-tdep.c: Likewise.
12714 * mips-tdep.c: Likewise.
12715
12716 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12717
12718 Fix PR gdb/265.
12719 * jv-exp.y (parse_number): Handle 64-bit integers.
12720
12721 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12722
12723 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12724 AC_STDC_HEADERS to AC_HEADER_STDC.
12725 * gdbserver/configure: Regenerated.
12726
12727 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12728
12729 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12730 is defined.
12731 * sparc-tdep.c (get_longjmp_target): Likewise.
12732
12733 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12734
12735 * News: Add news about ARM and Multi-arch. Mention the new target
12736 arm*-*-netbsd*.
12737
12738 2002-02-19 Jim Blandy <jimb@redhat.com>
12739
12740 * stabsread.c (error_type_complaint): Improve error message.
12741
12742 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * gdbserver/README: Update documentation.
12745 * gdbserver/configure.in: Update configury to match documentation.
12746 * gdbserver/Makefile.in: Likewise.
12747 * gdbserver/configure: Regenerated.
12748 * gdbserver/aclocal.m4: New file, generated by aclocal.
12749 * gdbserver/config.in: New file, generated by autoheader.
12750
12751 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12752
12753 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12754 armnbsd-nat.c.
12755
12756 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12757
12758 * arm-tdep.h (enum arm_float_model): New enum.
12759 (struct gdbarch_tdep): Add fp_model.
12760 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12761 up floating-point conversions until we know the floating-point model
12762 in use by the inferior. Don't complain about being unable to
12763 determine the ABI of the inferior when we don't have one.
12764 (arm_extract_return_value): Support different floating-point models.
12765 (arm_store_return_value): Likewise.
12766 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12767 ARM_FLOAT_SOFT.
12768 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12769
12770 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12771
12772 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12773 of ``current_gdbarch''.
12774
12775 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12776
12777 * armnbsd-nat.c : ANSIfy all function declarations.
12778 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12779 (fetch_inferior_registers): Re-implement in terms of above.
12780 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12781 (store_inferior_registers): Re-implement in terms of above.
12782
12783 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12784
12785 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12786 kernel.
12787 * arm-linux-tdep.c: Likewise.
12788 * config/arm/tm-linux.h: Likewise.
12789
12790 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12791
12792 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12793 * config/arm/nbsd.mt (TM_FILE): Delete.
12794 * config/arm/tm-nbsd.h: Delete.
12795
12796 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12797
12798 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12799 Initialize CALL_DUMMY_LENGTH.
12800
12801 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12802
12803 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12804 function.
12805 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12806 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12807 defines one thing and that is incorrect for this port.
12808 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12809
12810 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12811
12812 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12813
12814 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12815
12816 * win32-nat.c (display_selector): New function. Displays information
12817 about the information returned by GetThreadSelectorEntry API function.
12818 (display_selectors): New function. Displays the infomation of
12819 the selector given as argument, or of CS, DS ans FS selectors
12820 if no argument is given.
12821 ( _initialize_inftarg): Add "w32" as info prefix command.
12822 Add "info w32 selector" as command calling display_selectors.
12823
12824 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12825
12826 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12827 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12828 if not defined.
12829
12830 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12831
12832 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12833
12834 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12835
12836 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12837 (arm_fix_call_dummy): Call it.
12838 (arm_call_dummy_breakpoint_offset): Delete.
12839 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12840 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12841
12842 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12843
12844 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12845 Default to func_frame_chain_valid.
12846 * gdbarch.h, gdbarch.c: Re-generate.
12847 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12848
12849 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12850
12851 * ppc-linux-nat.c: Update copyright.
12852 (fetch_register, store_register): Add tid parameter, don't compute
12853 tid here.
12854 (fetch_ppc_registers, store_ppc_registers): Add tid
12855 parameter. Pass it along to callees.
12856 (fetch_inferior_registers, store_inferior_registers): Compute tid
12857 here, and pass it to calleed functions.
12858 (fill_gregset, supply_fpregset): Clean up formatting.
12859
12860 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12861
12862 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12863 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12864
12865 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12866
12867 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12868 * gdbarch.c gdbarch.h: Regenerate.
12869 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12870 function.
12871 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12872 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12873 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12874
12875 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12876 * arm-tdep.c (arm_get_longjmp_target): New function.
12877 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12878 this to a positive value register arm_get_longjmp_target as the
12879 longjmp handler.
12880 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12881 (arm_linux_init_abi): Set up longjmp description in tdep.
12882 * armnbsd-nat.c (get_longjmp_target): Delete.
12883 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12884 description in tdep.
12885 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12886 (get_longjmp_target): Delete declaration.
12887 (GET_LONGJMP_TARGET): Delete.
12888 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12889 (GET_LONGJMP_TARGET): Delete.
12890
12891 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12892
12893 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12894 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12895 of ``current_gdbarch''.
12896
12897 2002-02-17 Tom Tromey <tromey@redhat.com>
12898
12899 * cli/cli-cmds.c (compare_strings): New function.
12900 (complete_command): Only print each unique item once.
12901 * completer.h (complete_line): Declare.
12902 * completer.c (complete_line): New function.
12903 (line_completion_function): Use it.
12904
12905 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12906
12907 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12908 * gdbarch.h, gdbarch.c: Re-generate.
12909
12910 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12911
12912 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12913
12914 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12915
12916 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12917 * valops.c (value_arg_coerce): Don't take the address of a reference
12918 to convert an argument to a reference.
12919
12920 2002-02-15 Christopher Faylor <cgf@redhat.com>
12921
12922 * win32-nat.c (get_image_name): New function.
12923 (handle_load_dll): Use get_image_name function.
12924 (get_child_debug_event): Avoid registering debug events until possibly
12925 execed process is started.
12926 (child_create_inferior): Allow invocation via shell so that command
12927 line redirection, etc. works ok.
12928 (_initialize_inftarg): Add new command: "set shell" to control whether
12929 a shell is used to start a process.
12930
12931 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12932
12933 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12934 instead of find_register_by_number.
12935 (cannot_store_register): Likewise.
12936
12937 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12938
12939 * dwarf2read.c: Replace fprintf (stderr, ...) by
12940 fprintf_unfiltered (gdb_stderr, ...).
12941
12942 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * gdbserver/gdbserver.1: Document --attach.
12945
12946 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12947
12948 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12949 descriptions.
12950 * arm-tdep.c (arm_default_arm_le_breakpoint)
12951 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12952 (arm_default_thumb_be_breakpoint): New. Initialize them from
12953 traditional breakpoint defines.
12954 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12955 (arm_gdbarch_init): Initialize new breakpoint variables.
12956 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12957 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12958 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12959 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12960 code out to ...
12961 (arm_netbsd_init_abi_common): ... here; new function.
12962 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12963 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12964 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12965 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12966
12967 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12968
12969 * arm-tdep.h (enum arm_abi): New enum.
12970 (struct gdbarch_tdep): New structure.
12971 (LOWEST_PC): Provide a default.
12972 (arm_gdbarch_register_os_abi): Declare new function.
12973 * arm-tdep.c (arm_abi_names): New array.
12974 (process_note_abi_tag_sections): New function.
12975 (get_elfosabi): New function.
12976 (arm_gdbarch_register_os_abi): New function.
12977 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12978 support for that ABI has been built in, then call the appropriate
12979 configuration routine. Use gdbarch_num_regs() to get the number
12980 of registers.
12981 (arm_dump_tdep): New function.
12982 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12983 place-holder functions.
12984 (_initialize_arm_tdep): Register them.
12985 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12986
12987 * armnbsd-tdep.c: New file.
12988 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12989 * config/arm/nbsd.mt (TDEPFILES): Add it.
12990 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12991
12992 * armnbsd-nat.c: Include regcache.h.
12993 * Makefile.in (armnbsd-nat.o): Update dependency list.
12994
12995 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12996
12997 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12998
12999 * gdbserver/Makefile.in: Fix typos in target rules.
13000
13001 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13002
13003 Fix part of PR gdb/267.
13004 * linespec.c (find_methods): Handle constructors specially for now.
13005
13006 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13007
13008 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13009 handling.
13010 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13011 standard_coerce_float_to_double().
13012
13013 2002-02-14 Christopher Faylor <cgf@redhat.com>
13014
13015 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13016 GDBINIT_FILENAME.
13017
13018 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13019
13020 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13021 find_variant_by_name, because it confuses the multiarch
13022 framework. Return NULL if there isn't an architecture with the
13023 user supplied name, instead of forcing a different one without
13024 recording the change with the multiarch machinery.
13025 (find_variant_by_name): Delete.
13026
13027 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13028
13029 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13030 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13031
13032 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13033
13034 * stack.c (print_frame_info_base): When calling
13035 print_frame_info_listing_hook, set current_source_symtab.
13036
13037 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13038
13039 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13040 and remove unused $(INCLUDE_DIR).
13041 Add regcache.c to OBS.
13042 Add generated register protocol files to clean target.
13043 Update dependencies for new objects, obsolete old target code.
13044
13045 * gdbserver/linux-low.c: Remove all platform-specific code to
13046 new files. Remove various dead code. Update to use regcache
13047 functionality.
13048 * gdbserver/remote-utils.c (fromhex): Add return statement
13049 to quiet warning.
13050 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13051 constant.
13052 (input_interrupt): Add integer parameter to match prototype
13053 of a signal handler.
13054 (outreg): Use register_data ().
13055 (prepare_resume_reply): Use gdbserver_expedite_regs.
13056 * gdbserver/server.c (main): Dynamically allocate own_buf because
13057 PBUFSIZ is no longer constant. Use registers_to_string () and
13058 registers_from_string ().
13059 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13060 for error (), fatal (), and warning (). Update definition of
13061 PBUFSIZ to use regcache functionality. Add include guard.
13062 * gdbserver/utils.c (fatal): Add missing ``const''.
13063 (warning): New function.
13064
13065 * regformats/regdat.sh: Include "regcache.h" in generated files.
13066 Provide init_registers () function.
13067 * regformats/regdef.h: Add prototype for set_register_cache ().
13068 Add include guard.
13069
13070 * gdbserver/linux-arm-low.c: New file.
13071 * gdbserver/linux-i386-low.c: New file.
13072 * gdbserver/linux-ia64-low.c: New file.
13073 * gdbserver/linux-m68k-low.c: New file.
13074 * gdbserver/linux-mips-low.c: New file.
13075 * gdbserver/linux-ppc-low.c: New file.
13076 * gdbserver/linux-sh-low.c: New file.
13077
13078 * gdbserver/regcache.c: New file.
13079 * gdbserver/regcache.h: New file.
13080
13081 * gdbserver/low-linux.c: Removed obsolete file.
13082
13083 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13084
13085 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13086 * config/i386/linux.mt: Likewise.
13087 * config/ia64/linux.mt: Likewise.
13088 * config/m68k/linux.mh: Likewise.
13089 * config/powerpc/linux.mh: Likewise.
13090 * config/mips/linux.mt: Likewise.
13091
13092 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13093
13094 * config/i386/i386lynx.mh: Mark gdbserver variables
13095 as (currently) obsolete for this target.
13096 * config/i386/nbsd.mt: Likewise.
13097 * config/i386/nbsdelf.mt: Likewise.
13098 * config/m32r/m32r.mt: Likewise.
13099 * config/m68k/m68klynx.mh: Likewise.
13100 * config/m68k/nbsd.mt: Likewise.
13101 * config/m68k/sun3os4.mh: Likewise.
13102 * config/mips/vr5000.mt: Likewise.
13103 * config/ns32k/nbsd.mt: Likewise.
13104 * config/pa/hppabsd.mh: Likewise.
13105 * config/pa/hppaosf.mh: Likewise.
13106 * config/powerpc/nbsd.mt: Likewise.
13107 * config/rs6000/rs6000lynx.mh: Likewise.
13108 * config/s390/s390.mt: Likewise.
13109 * config/s390/s390x.mt: Likewise.
13110 * config/sparc/sparclynx.mh: Likewise.
13111 * config/sparc/sun4os4.mh: Likewise.
13112 * config/i386/x86-64linux.mt: Likewise.
13113 * config/sparc/linux.mh: Likewise.
13114
13115 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13116
13117 * configure.tgt: Configure gdbserver only for known working
13118 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13119 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13120 SUBDIRS if it is configured. Update comment for ${nativefile}.
13121 * configure: Regenerated.
13122
13123 2002-02-13 Michael Snyder <msnyder@redhat.com>
13124
13125 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13126
13127 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13128 (default_gcore_mach): Just return 0, work around a problem in bfd.
13129 (default_gcore_target): OK to return NULL if exec_bfd is null.
13130 (make_mem_sec): Use a cast, avoid a warning.
13131
13132 * procfs.c (find_memory_regions_callback): Use a cast instead of
13133 calling host_pointer_to_address (which complains if
13134 sizeof (host pointer) != sizeof (target pointer)).
13135 (procfs_make_note_section): Avoid overflow in psargs string.
13136
13137 * procfs.c (procfs_make_note_section): Make the default
13138 implementation return an error.
13139
13140 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13141
13142 * procfs.c (procfs_make_note_section): Provide a default definition
13143 (for alpha-dec-osf4.0f). Fix typos.
13144
13145 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13146
13147 * linux-proc.c: Add include of regcache.h.
13148 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13149
13150 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13151
13152 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13153 * memattr.c (create_mem_region): Disallow useless empty region.
13154 Regions are half-open intervals, so allow [A..B) [B..C) as
13155 non-overlapping.
13156
13157 2002-02-13 Michael Chastain <mec@shout.net>
13158
13159 * defs.h: Kill CONST_PTR.
13160 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13161 * c-lang.c (c_builtin_types): Likewise.
13162 * ch-lang.c (ch_builtin_types): Likewise.
13163 * f-lang.c (f_builtin_types): Likewise.
13164 * language.c (unknown_builtin_types): Likewise.
13165 * m2-lang.c (m2_builtin_types): Likewise.
13166 * p-lang.c (pascal_builtin_types): Likewise.
13167 * scm-lang.c (c_builtin_types): Likewise.
13168
13169 2002-02-13 Keith Seitz <keiths@redhat.com>
13170
13171 * arm-tdep.h (arm_get_next_pc): Add declaration.
13172
13173 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13174
13175 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13176 with other related struct-returning functions.
13177 (arm_extract_struct_value_address): New function.
13178 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13179 initialize float_format, double_format and long_double_format as
13180 appropriate to the endianness of the target.
13181 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13182 (arm_use_struct_convention): Delete declaration.
13183 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13184
13185 2002-02-13 Keith Seitz <keiths@redhat.com>
13186
13187 * defs.h (core_addr_to_string_nz): New function.
13188
13189 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13190
13191 Apply missing bits of 2002-01-15 patch.
13192 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13193 (fill_fpregset): Use i387_fill_fsave.
13194
13195 2002-02-12 Keith Seitz <keiths@redhat.com>
13196
13197 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13198 (core_addr_to_string_nz): New function.
13199
13200 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13201
13202 * arm-linux-nat.c: Really include arm-tdep.h.
13203 * config/arm/tm-linux.h (struct type, struct value): Declare.
13204
13205 2002-02-11 Michael Snyder <msnyder@redhat.com>
13206
13207 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13208 (gcore section): Ifdef for Solaris and Unixware only.
13209 (procfs_do_thread_registers): Unixware needs one lwpstatus
13210 per thread (not one prstatus or pstatus).
13211 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13212 not over all gdb threads. For unixware, call elfcore_write_pstatus
13213 once before iterating over threads.
13214
13215 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13216
13217 * arm-tdep.h: New file.
13218 * arm-tdep.c: Include arm-tdep.h.
13219 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13220 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13221 (arm_print_float_info, arm_register_type, convert_to_extended)
13222 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13223 (arm_extract_return_value, arm_register_name): Make static.
13224 (arm_software_single_step): Similarly. Fix types in declaration.
13225 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13226 (arm_store_return_value, arm_store_struct_return): New functions.
13227 (arm_gdbarch_init): Register the above functions. Also register
13228 call_dummy_start_offset, sizeof_call_dummy_words,
13229 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13230 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13231 max_register_virtual_size, register_size. Set up
13232 prologue_cache.saved_regs here, rather than ...
13233 (_initialize_arm_tdep): ... here.
13234 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13235 declarations.
13236 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13237 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13238 (arm_print_float_info, arm_register_type, convert_to_extended)
13239 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13240 (arm_extract_return_value, arm_register_name): Delete declarations.
13241 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13242 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13243 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13244 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13245 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13246 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13247 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13248 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13249 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13250 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13251 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13252 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13253 interface.
13254 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13255 * remote-rdi.c remote-rdp.c: Likewise.
13256 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13257 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13258 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13259 definition.
13260
13261 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13262 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13263 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13264 from non-ARM_ prefixed definitions.
13265 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13266 all uses of above.
13267 * remote-rdi.c remote-rdp.c: Likewise.
13268 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13269
13270 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13271
13272 * arm-tdep.c (arm_frameless_function_invocation)
13273 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13274 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13275 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13276 (arm_pop_frame, arm_get_next_pc): Make static.
13277 (arm_gdbarch_init): Register above in gdbarch structure.
13278 (arm_read_fp): Renamed from arm_target_read_fp.
13279 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13280 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13281 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13282 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13283 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13284 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13285 (arm_pc_is_thumb_dummy): Delete declarations.
13286 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13287 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13288 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13289 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13290
13291 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13292
13293 * symtab.c (compare_search_syms): New function.
13294 (sort_search_symbols): New function.
13295 (search_symbols): Sort symbols after searching rather than
13296 before.
13297
13298 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13299
13300 * NEWS: Linux -> GNU/Linux.
13301
13302 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13303
13304 * gdbarch.sh: For for level one methods, disallow a definition
13305 when partially multi-arched. Add comments explaining rationale.
13306 * gdbarch.h: Re-generate.
13307
13308 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13309
13310 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13311 multi-arch partial.
13312
13313 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13314
13315 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13316 field. Use diff -u.
13317 * gdbarch.c: Re-generate.
13318
13319 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13320
13321 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13322 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13323 partial.
13324
13325 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13326
13327 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13328 multi-arch partial.
13329 (PUSH_ARGUMENTS): Switch to using predefault.
13330 * gdbarch.c: Regenerate.
13331
13332 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13333
13334 * valops.c (PUSH_ARGUMENTS): Delete definition.
13335 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13336 partial. Default to default_push_arguments.
13337 * gdbarch.h, gdbarch.c: Regenerate.
13338
13339 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13340
13341 * defs.h (throw_exception): Rename return_to_top_level. Update
13342 comments.
13343 * utils.c (error_stream, internal_verror, quit): Ditto.
13344 * top.c (throw_exception, catcher): Ditto.
13345 * sparclet-rom.c (sparclet_load): Ditto.
13346 * remote.c (interrupt_query, minitelnet): Ditto.
13347 * remote-sds.c (interrupt_query): Ditto.
13348 * remote-mips.c (mips_error, mips_kill): Ditto.
13349 * ocd.c (interrupt_query): Ditto.
13350 * monitor.c (monitor_interrupt_query): Ditto.
13351 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13352 * target.h: Update comment.
13353
13354 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13355
13356 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13357
13358 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13359 default_double_format.
13360 * gdbarch.h, gdbarch.c: Re-generate.
13361 * findvar.c (floatformat_unknown): Delete variable definition.
13362 * doublest.h (floatformat_unknown): Delete variable declaration.
13363
13364 2002-02-09 Jim Blandy <jimb@redhat.com>
13365
13366 * stabsread.c (read_type): Add code to parse Sun's syntax for
13367 prototyped function types.
13368
13369 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13370
13371 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13372 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13373
13374 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13375
13376 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13377 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13378 now _initialize_xcoffsolib gets called again and overrides the
13379 commands from solib.c in a native configuration.
13380
13381 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13382
13383 * doublest.c (store_typed_floating): Don't try to return a value.
13384 Fixes PR gdb/290.
13385
13386 2002-02-08 Jim Blandy <jimb@redhat.com>
13387
13388 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13389 is prototyped and has no arguments, print its argument list as
13390 `(void)'.
13391
13392 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13393
13394 * MAINTAINERS (write-after-approval): Add myself.
13395 (paper-trail): I've escaped!
13396
13397 2002-02-08 Christopher Faylor <cgf@redhat.com>
13398
13399 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13400 changes.
13401 (_initialize_check_for_gdb_ini): Ditto.
13402
13403 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13404
13405 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13406 xaprintf -> xasprintf.
13407
13408 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13409
13410 * win32-nat.c: Remove use of printf and sprintf functions.
13411
13412 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13413
13414 * arm-tdep.c (arm_frame_chain_valid): Make static.
13415 (arm_push_arguments): Likewise.
13416 (arm_gdbarch_init): New function.
13417 (_initialize_arm_tdep): Call it.
13418 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13419 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13420 (FRAME_CHAIN_VALID): Delete.
13421 (arm_frame_chain_valid): Delete declaration.
13422 (PUSH_ARGUMENTS): Delete.
13423 (arm_push_arguments): Delete declaration.
13424 (CALL_DUMMY_P): Delete.
13425
13426 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13427 Corinna Vinschen <vinschen@redhat.com>
13428
13429 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13430 on builtin float types.
13431
13432 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13433
13434 * utils.c: Include <curses.h> before "bfd.h".
13435 * tui/tui-hooks.c: Likewise.
13436 * tui/tui.c: Likewise.
13437 * tui/tuiCommand.c: Likewise.
13438 * tui/tuiData.c: Likewise.
13439 * tui/tuiDataWin.c: Likewise.
13440 * tui/tuiDisassem.c: Likewise.
13441 * tui/tuiGeneralWin.c: Likewise.
13442 * tui/tuiIO.c: Likewise.
13443 * tui/tuiLayout.c: Likewise.
13444 * tui/tuiRegs.c: Likewise.
13445 * tui/tuiSource.c: Likewise.
13446 * tui/tuiSourceWin.c: Likewise.
13447 * tui/tuiStack.c: Likewise.
13448 * tui/tuiWin.c: Likewise.
13449
13450 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13451
13452 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13453 to include space for pseudoregs as well. Update loops accordingly.
13454 (sh_fp_frame_init_saved_regs): Ditto.
13455 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13456
13457 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13458
13459 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13460 Add Richard Earnshaw to Arm maintainers.
13461
13462 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13463
13464 * defs.h (warning_begin): Delete declaration.
13465
13466 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13467 Delete macro.
13468
13469 2002-02-07 Michael Snyder <msnyder@redhat.com>
13470
13471 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13472 Logic bug, remove misplaced else.
13473
13474 2002-02-07 Klee Dienes <klee@apple.com>
13475
13476 * fork-inferior.c (fork_inferior): Add '!' to the list of
13477 characters that need to be quoted when building a string for the
13478 shell. Quote '!' specifically with a backslash, since CSH chokes
13479 when trying to evaluate "str!str".
13480
13481 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13482
13483 * rdi-share/host.h: Only provide a typedef for bool if it is not
13484 defined.
13485
13486 2002-02-04 Michael Snyder <msnyder@redhat.com>
13487
13488 * breakpoint.h (enum bptype): Add new overlay event bp type.
13489 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13490
13491 * breakpoint.c (create_internal_breakpoint): New function.
13492 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13493 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13494 (create_thread_event_breakpoint): Ditto.
13495 (create_solib_event_breakpoint): Ditto.
13496 (create_overlay_event_breakpoint): New function.
13497 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13498 (update_breakpoints_after_exec): Delete and re-initialize
13499 overlay event breakpoints after an exec. Add FIXME comment
13500 about longjmp breakpoint.
13501 (print_it_typical): Ignore overlay event breakpoints.
13502 (print_one_breakpoint): Ditto.
13503 (mention): Ditto.
13504 (bpstat_what): Do not stop for overlay event breakpoints.
13505 (delete_breakpoint): Don't delete overlay event breakpoints.
13506 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13507 (breakpoint_re_set): Re-create overlay event breakpoint.
13508
13509 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13510 (overlay_manual_command): Disable overlay breakpoints.
13511 (overlay_off_command): Disable overlay breakpoints.
13512
13513 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13514
13515 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13516 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13517 to here from config/tm-arm.h.
13518 (coff_sym_is_thumb): Make static.
13519 (arm_elf_make_msymbol_special): New function.
13520 (arm_coff_make_msymbol_special): New function.
13521 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13522 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13523 (coff_sym_is_thumb): Delete declaration.
13524 (arm_elf_make_msymbol_special): Declare.
13525 (arm_coff_make_msymbol_special): Declare.
13526 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13527 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13528
13529 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13530
13531 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13532
13533 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13534
13535 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13536 * gdbarch.c gdbarch.h: Regenerate.
13537 * arch-utils.c (default_print_float_info): New function.
13538 * arch-utils.h (default_print_float_info): Prototype it.
13539 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13540 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13541 (PRINT_FLOAT_INFO): Document it.
13542
13543 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13544 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13545 (PRINT_FLOAT_INFO): Define.
13546
13547 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13548
13549 * win32-nat.c (_initialize_check_for_gdb_ini):
13550 Add typecast to sprintf argument to suppress a warning.
13551
13552 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13553
13554 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13555 to allow easier handling of pass state.
13556 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13557 that gives exception name and address.
13558 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13559 and set last_sig value to ourstatus->value.sig. Some missing
13560 exceptions added.
13561 (child_continue): Correctly report continue_status.
13562 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13563 TARGET_SIGNAL_0 (new default value).
13564 (child_resume): consider sig argument passed to decide if
13565 the exception should be passed to debuggee or not.
13566
13567 2002-02-05 Michael Snyder <msnyder@redhat.com>
13568
13569 * regcache.c (fetch_register): Call target_fetch_register
13570 only if we don't call FETCH_PSEUDO_REGISTER.
13571 (store_register): Call target_store_register only if we
13572 don't call STORE_PSEUDO_REGISTER.
13573
13574 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13575
13576 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13577 ELF_MAKE_MSYMBOL_SPECIAL.
13578 * gdbarch.c, gdbarch.h: Regenerate.
13579 * arch-utils.c (default_make_msymbol_special): New function.
13580 * arch-utils.h (default_make_msymbol_special): Export.
13581 * elfread.c (elf_symtab_read): Compile use of
13582 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13583 multiarched.
13584 * coffread.c (coff_symtab_read): Ditto, for
13585 COFF_MAKE_MSYMBOL_SPECIAL.
13586
13587 2002-02-05 Jim Blandy <jimb@redhat.com>
13588
13589 * solib-svr4.c (svr4_truncate_ptr): New function.
13590 (svr4_relocate_section_addresses): Do the address arithmetic with
13591 the appropriate truncation for target addresses, even when
13592 CORE_ADDR is larger than a target address.
13593
13594 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13595
13596 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13597 to (int *).
13598
13599 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13600
13601 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13602 code.
13603
13604 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13605
13606 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13607
13608 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13609
13610 * gdbserver/linux-low.c: Remove unused include files.
13611
13612 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13613
13614 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13615 (read_inferior_memory): Use it.
13616 (write_inferior_memory): Likewise.
13617
13618 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13619
13620 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13621 grubbing through sys_errlist.
13622
13623 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13624
13625 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13626
13627 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13628 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13629
13630 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13631
13632 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13633 (do_sfunc, set_cmd_sfunc): New functions.
13634
13635 * command.h (struct cmd_list_element): Add field func.
13636 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13637 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13638 * cli/cli-decode.h: Ditto.
13639
13640 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13641 (help_all, help_cmd_list): Ditto.
13642 (find_cmd, complete_on_cmdlist): Ditto.
13643 * top.c (execute_command): Ditto.
13644
13645 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13646 function.sfunc.
13647
13648 * infcmd.c (notice_args_read): Fix function signature.
13649
13650 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13651 * cli/cli-decode.c (add_set_cmd): Ditto.
13652 * utils.c (initialize_utils): Ditto.
13653 * maint.c (_initialize_maint_cmds): Ditto.
13654 * infrun.c (_initialize_infrun): Ditto.
13655 * demangle.c (_initialize_demangler): Ditto.
13656 * remote.c (add_packet_config_cmd): Ditto.
13657 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13658 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13659 * proc-api.c (_initialize_proc_api): Ditto.
13660 * kod.c (_initialize_kod): Ditto.
13661 * valprint.c (_initialize_valprint): Ditto.
13662 * top.c (init_main): Ditto.
13663 * infcmd.c (_initialize_infcmd): Ditto.
13664 * corefile.c (_initialize_core): Ditto.
13665 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13666 * arch-utils.c (initialize_current_architecture): Ditto.
13667 (_initialize_gdbarch_utils): Ditto.
13668 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13669
13670 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13671 * wince.c (_initialize_inftarg): Ditto.
13672 * symfile.c (_initialize_symfile): Ditto.
13673 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13674 * language.c (_initialize_language): Ditto.
13675 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13676
13677 2002-02-04 Michael Snyder <msnyder@redhat.com>
13678
13679 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13680
13681 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13682
13683 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13684 Add rules for building the register data files.
13685
13686 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * regformats/regdat.sh: Add braces to the definition of
13689 expedite_regs_${arch}.
13690
13691 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13692
13693 * regformats/regdef.h (struct reg): Add comment describing the
13694 requirements for offset and size fields.
13695
13696 2002-02-04 Andreas Schwab <schwab@suse.de>
13697
13698 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13699 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13700
13701 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13702
13703 * gdbarch.sh (copyright): Update years in generated header.
13704 (SMASH_TEXT_ADDRESS): Add rule.
13705 * gdbarch.h, gdbarch.c: Re-generate.
13706 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13707 * dbxread.c: Likewise.
13708 * dwarfread.c: Likewise.
13709 * elfread.c: Likewise.
13710 * somread.c: Likewise.
13711
13712 * arm-tdep.c (arm_smash_text_address): New function.
13713 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13714
13715 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13716
13717 Add support for hardware watchpoints on win32 native.
13718 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13719 CONTEXT_DEBUG_REGISTERS.
13720 (dr variable): New variable. Static array containing a local copy
13721 of debug registers.
13722 (debug_registers_changed): New variable. Reflects when debug registers
13723 are changed and need to be written to inferior.
13724 (debug_registers_used): New variable. Reflects when any debug register
13725 was set, used when new threads are created.
13726 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13727 i386-nat code.
13728 (thread_rec): Set dr array if id is the thread of current_event .
13729 (child_continue, child_resume): Change the debug registers for all
13730 threads if debug_registers_changed.
13731 (child_add_thread): Change the debug registers if debug_registers_used.
13732 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13733 Link nm.h to new nm-cygwin.h file.
13734 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13735 of hardware registers.
13736
13737 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13738
13739 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13740 Restore behavour broken by 2002-01-20 Andrew Cagney
13741 <ac131313@redhat.com> IEEE_FLOAT removal.
13742
13743 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13744
13745 * c-valprint.c (c_val_print): Pass a proper valaddr to
13746 cp_print_class_method.
13747 * valops.c (search_struct_method): If there is only one method
13748 and args is NULL, return that method.
13749
13750 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13751
13752 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13753 accessing tag_name directly.
13754
13755 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13756
13757 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13758 of accessing tag_name directly.
13759
13760 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13761
13762 PR gdb/280
13763 * gdbtypes.c (replace_type): New function.
13764 * gdbtypes.h (replace_type): Add prototype.
13765 * stabsread.c (read_type): Use replace_type.
13766
13767 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13768
13769 * Makefile.in (memattr.o): Add missing dependencies rule.
13770
13771 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13772
13773 * breakpoint.c (break_at_finish_command): Really export.
13774 (break_at_finish_at_depth_command): Ditto.
13775 (tbreak_at_finish_command): Ditto.
13776 * hppa-tdep.c: Include completer.h.
13777 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13778 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13779
13780 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13781
13782 * utils.c (do_write): New function.
13783 (error_stream): Rewrite combining the code from error_begin and
13784 verror.
13785 (verror): Rewrite using error_stream.
13786 (error_begin): Delete function.
13787
13788 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13789
13790 * utils.c (error_begin): Make static.
13791 * defs.h (error_begin): Delete declaration.
13792
13793 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13794 (decode_line_1): Use cplusplus_error instead of error_begin,
13795 cplusplus_hint and return_to_top_level.
13796 * coffread.c (coff_symfile_read): Use error instead of error_begin
13797 and return_to_top_level.
13798 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13799
13800 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13801
13802 * language.h (type_error, range_error): Make string parameter
13803 constant.
13804 * language.c (warning_pre_print): Delete extern declaration.
13805 * dwarfread.c (warning_pre_print): Ditto.
13806 * language.c (type_error, range_error): Rewrite to use verror and
13807 vwarning instead of warning_begin.
13808
13809 2002-02-01 Michael Snyder <msnyder@redhat.com>
13810
13811 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13812 (set_ignore_count): Move misplaced comment back where it belongs.
13813
13814 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13815
13816 * command.h (NO_FUNCTION): Delete macro.
13817 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13818 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13819 * tracepoint.c (_initialize_tracepoint): Ditto.
13820 * cli/cli-decode.c (add_set_cmd): Ditto.
13821 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13822
13823 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13824
13825 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13826 Update ``this'' pointer when calling virtual functions.
13827
13828 2002-02-01 Michael Snyder <msnyder@redhat.com>
13829
13830 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13831 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13832
13833 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13834
13835 * regformats/reg-arm.dat: New file.
13836 * regformats/reg-i386.dat: New file.
13837 * regformats/reg-ia64.dat: New file.
13838 * regformats/reg-m68k.dat: New file.
13839 * regformats/reg-mips.dat: New file.
13840 * regformats/reg-ppc.dat: New file.
13841 * regformats/reg-sh.dat: New file.
13842 * regformats/regdef.h: New file.
13843 * regformats/regdat.sh: New file.
13844
13845 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13846
13847 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13848 (arm_frame_args_address, arm_frame_locals_address): New functions.
13849 (arm_frame_num_args): New function.
13850 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13851 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13852 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13853
13854 2002-01-31 Michael Snyder <msnyder@redhat.com>
13855
13856 * breakpoint.c (break_at_finish_command): Export.
13857 (break_at_finish_at_depth_command): Export.
13858 (tbreak_at_finish_command): Export.
13859 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13860 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13861 "txbreak" commands, which are HPPA specific.
13862
13863 * printcmd.c (disassemble_command): Remove an ancient
13864 artifact of an old merge.
13865
13866 * symfile.h (enum overlay_debugging_state):
13867 Define enum constant values for overlay mode.
13868 * symfile.c (overlay_debugging): Use enums instead of literals.
13869 (overlay_is_mapped, overlay_auto_command,
13870 overlay_manual_command): Ditto.
13871
13872 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13873 breakpoint_here_p, breakpoint_inserted_here_p,
13874 breakpoint_thread_match, bpstat_stop_status,
13875 describe_other_breakpoints, check_duplicates, clear_command):
13876 Coding standard fixes.
13877
13878 * target.c (target_xfer_memory): Add spaces, coding standard.
13879 (do_xfer_memory): Add missing line to trust-readonly
13880 code: check bfd SEC_READONLY flag for section.
13881
13882 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13883
13884 * PROBLEMS: Fix typo, 5.1->5.1.1.
13885
13886 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13887
13888 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13889 data symbols, since we search based on textlow and texthigh.
13890 (find_pc_sect_symtab): Likewise.
13891
13892 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13893
13894 * defs.h (vwarning): Declare.
13895 * utils.c (vwarning): New function.
13896 (warning): Call vwarning.
13897 (warning_begin): Delete function.
13898
13899 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13900 the warning message.
13901 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13902 warning_begin.
13903
13904 2002-01-30 Michael Snyder <msnyder@redhat.com>
13905
13906 * NEWS: Mention "set trust-readonly-sections" command.
13907 Mention generate-core-file command.
13908
13909 2002-01-15 Michael Snyder <msnyder@redhat.com>
13910
13911 * target.c: New command, "set trust-readonly-sections on".
13912 (do_xfer_memory): Honor the suggestion to trust readonly sections
13913 by reading them from the object file instead of from the target.
13914 (initialize_targets): Register command "set trust-readonly-sections".
13915
13916 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13917
13918 * parse.c (target_map_name_to_register): Simplify, search regs and
13919 pseudo-regs using a single loop.
13920
13921 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13922
13923 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13924
13925 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13926
13927 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13928 * config/i386/i386v42mp.mh: Add i387-nat.o .
13929 * i386v4-nat.c: Include i387-nat.h.
13930 (supply_fpregset): Use i387_supply_fsave.
13931 (fill_fpregset): Use i387_fill_fsave.
13932
13933 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13934
13935 * arm-tdep.c (arm_call_dummy_words): Define.
13936 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13937 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13938 (CALL_DUMMY_WORDS): Define.
13939 (arm_call_dummy_words): Declare.
13940 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13941 (arm_linux_call_dummy_words): Declare.
13942
13943 2002-01-30 Andreas Schwab <schwab@suse.de>
13944
13945 * m68klinux-nat.c: Fix last change to use regcache_collect
13946 instead of referencing registers[] directly.
13947
13948 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13949
13950 * parse.c (target_map_name_to_register): Delete code wrapped in
13951 #ifdef REGISTER_NAME_ALIAS_HOOK.
13952
13953 2002-01-28 Michael Snyder <msnyder@redhat.com>
13954
13955 * regcache.c (legacy_read_register_gen): Need to be able to
13956 read pseudo-register as well as real register.
13957 (legacy_write_register_gen): Ditto.
13958
13959 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13960
13961 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13962 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13963 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13964 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13965 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13966 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13967 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13968 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13969 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13970 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13971 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13972 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13973 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13974 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13975 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13976 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13977 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13978 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13979 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13980 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13981
13982 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13983
13984 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13985 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13986 (initialize_current_architecture): Update target_byte_order using
13987 information from BFD.
13988 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13989 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13990
13991 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13992
13993 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13994 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13995
13996 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13997 #ifdef INVALID_FLOAT.
13998 * infcmd.c (do_registers_info): Ditto.
13999 * values.c (unpack_double): Ditto. Add comment.
14000
14001 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14002 already commented out.
14003
14004 2002-01-26 Andreas Schwab <schwab@suse.de>
14005
14006 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14007 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14008 registers and add support for PTRACE_GETREGS.
14009
14010 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14011
14012 GDB 5.1.1 released from 5.1 branch.
14013 * NEWS: Add 5.1.1 news.
14014 * README: Sync with 5.1 branch.
14015
14016 2002-01-23 Fred Fish <fnf@redhat.com>
14017
14018 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14019 stabstring on initial malloc. Reallocing will copy it for us,
14020 if necessary.
14021
14022 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14023
14024 * Makefile.in (hpread_h): Delete.
14025 (HFILES_NO_SRCDIR): Remove hpread.h.
14026 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14027 (hpread.o): Update dependencies.
14028 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14029
14030 * hp-psymtab-read.c: Remove file.
14031 * hp-symtab-read.c: Remove file.
14032 * hpread.h: Remove file.
14033
14034 * hpread.c: Merge all contents of hp-psymtab-read.c,
14035 hp-symtab-read.c and hpread.h into this file, as it was prior to
14036 January 1999.
14037
14038 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14039 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14040 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14041 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14042
14043 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14044
14045 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14046 fill_gregset): Call gdbarch_tdep() just once, assign result to
14047 variable and use that, instead of calling the function several
14048 times.
14049
14050 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14051
14052 * configure.host: Accept sparcv9 as alias for sparc64.
14053 * configure.tgt: Likewise.
14054
14055 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14056
14057 * solib-aix5.c (build_so_list_from_mapfile)
14058 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14059 arguments is not reversed.
14060 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14061 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14062
14063 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14064
14065 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14066 modified version of obsolete sh_fetch_pseudo_register.
14067 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14068 (sh4_register_read): New function.
14069 (sh_pseudo_register_write): New function. Renamed and modified
14070 version of obsolete sh_store_pseudo_register.
14071 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14072 (sh4_register_write): New function.
14073 (sh_gdbarch_init): Remove setting of gdbarch function
14074 fetch_pseudo_register and store_pseudo_register. Remove setting of
14075 register_convert_to_raw, register_convert_to_virtual,
14076 register_convertible.
14077 (sh_sh4_register_convertible): Delete. No longer needed. All is
14078 taken care by architecture specific functions
14079 register_read/register_write.
14080 (sh_sh4_register_convert_to_virtual): Make static.
14081 (sh_sh4_register_convert_to_raw): Ditto.
14082
14083 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14084
14085 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14086 (floatformat_is_nan, floatformat_mantissa): Ditto.
14087
14088 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14089 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14090 builtin_type_ieee_double_little,
14091 builtin_type_ieee_double_littlebyte_bigword,
14092 builtin_type_m68881_ext, builtin_type_i960_ext,
14093 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14094 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14095 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14096 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14097
14098 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14099
14100 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14101 parameter. Set frameless flag if it exists and depended of
14102 whether the scanned function is frameless or not.
14103 (xstormy16_skip_prologue): If function is frameless, return
14104 result of xstormy16_scan_prologue().
14105 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14106 call.
14107
14108 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14109
14110 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14111 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14112 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14113 sh_sh4_register_byte, sh_sh4_register_raw_size,
14114 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14115 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14116 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14117 sh_store_pseudo_register, sh_do_pseudo_register): Call
14118 gdbarch_tdep() just once, assign result to variable and use that,
14119 instead of calling the function several times.
14120
14121 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14122
14123 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14124 macros instead of LAST_FPU_CTRL_REGNUM.
14125 (store_register): Likewise.
14126
14127 2002-01-21 Jim Blandy <jimb@redhat.com>
14128
14129 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14130 is up-to-date before running the program, not just when a program
14131 exits.
14132
14133 2002-01-21 Fred Fish <fnf@redhat.com>
14134
14135 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14136 when we have found all instructions we are looking for.
14137
14138 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14139
14140 * arm-tdep.c (arm_register_name): New function.
14141 (arm_registers_names): Make static.
14142 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14143 (arm_register_name): Declare.
14144 (REGISTER_NAME): Use it.
14145
14146 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14147 Kevin Buettner <kevinb@redhat.com>
14148
14149 Convert arm targets to new FRAME interface.
14150 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14151 (arm_frame_find_save_regs): Delete.
14152 (arm_frame_init_saved_regs): New.
14153 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14154 Allocate extra_info as required. Convert all uses of fsr.regs
14155 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14156 to use extra_info.
14157 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14158 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14159 (check_prologue_cache, save_prologue_cache): Likewise.
14160 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14161 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14162 (FRAME_FIND_SAVED_REGS): Delete.
14163 (arm_frame_find_saved_regs): Delete prototype.
14164 (arm_frame_init_saved_regs): New prototype.
14165 (FRAME_INIT_SAVED_REGS): Define.
14166
14167 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14168
14169 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14170
14171 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14172
14173 From Jeff Law <law@redhat.com>:
14174 * infttrace.c: Include <sys/pstat.h>.
14175 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14176 exec file if the ttrace equivalent fails.
14177
14178 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14179
14180 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14181 (closeLogFile): Ditto.
14182
14183 2002-01-20 Michael Chastain <mec@shout.net>
14184
14185 * top.c (print_gdb_version): Bump copyright year to 2002.
14186
14187 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14188
14189 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14190 Zannoni and Eli Zaretskii.
14191
14192 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14193
14194 * buildsym.c: Update copyright years.
14195 * c-typeprint.c: Likewise.
14196 * dwarf2read.c: Likewise.
14197 * f-typeprint.c: Likewise.
14198 * gdbtypes.c: Likewise.
14199 * gdbtypes.h: Likewise.
14200 * hp-symtab-read.c: Likewise.
14201 * hpread.c: Likewise.
14202 * mdebugread.c: Likewise.
14203 * p-typeprint.c: Likewise.
14204
14205 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14206
14207 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14208 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14209 byte-order selectable.
14210 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14211 * arch-utils.c: Ditto.
14212 (set_endian): Ditto.
14213 (set_endian_from_file): Ditto.
14214 * gdbserver/low-sim.c (create_inferior): Ditto.
14215 * gdbarch.sh: Ditto.
14216 * gdbarch.h: Re-generate.
14217 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14218 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14219 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14220 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14221 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14222 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14223 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14224 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14225 macro definition.
14226 * config/mips/tm-wince.h: Remove #undef of macro
14227 TARGET_BYTE_ORDER_SELECTABLE.
14228 * config/sh/tm-wince.h: Ditto.
14229
14230 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14231
14232 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14233 member function fields. Add accessor macro
14234 TYPE_FN_FIELD_ARTIFICIAL.
14235 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14236 * c-typeprint.c (c_type_print_base): Skip artificial member
14237 functions.
14238
14239 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14240
14241 * f-typeprint.c: Delete unused function f_type_print_args.
14242 * p-typeprint.c: Delete unused function pascal_type_print_args.
14243
14244 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14245
14246 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14247 comment. Add ``artificial'' to ``union field_location''.
14248
14249 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14250
14251 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14252 * mdebugread.c (parse_symbol): Likewise.
14253 * stabsread.c (define_symbol): Likewise.
14254 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14255 initializing TYPE_FIELD_BITPOS to n (obsolete).
14256 (hpread_doc_function_type): Likewise.
14257 * hpread.c (hpread_function_type): Likewise.
14258
14259 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14260
14261 * configure.in (host_makefile_frag): Only require a host makefile
14262 fragment when a native build.
14263 * configure: Re-generate.
14264
14265 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14266
14267 * doublest.h (floatformat_from_type): Declare.
14268 * doublest.c (floatformat_from_type): New function.
14269 (convert_typed_floating): Use.
14270
14271 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14272 call to function floatformat_from_type.
14273
14274 * gdbarch.sh (IEEE_FLOAT): Delete.
14275 * gdbarch.h, gdbarch.c: Re-generate.
14276 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14277 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14278 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14279 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14280 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14281 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14282 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14283 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14284 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14285 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14286 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14287 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14288
14289 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14290 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14292 * sh-tdep.c (sh_gdbarch_init): Ditto.
14293 * mips-tdep.c (mips_gdbarch_init): Ditto.
14294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14295 * cris-tdep.c (cris_gdbarch_init): Ditto.
14296
14297 2002-01-20 Jiri Smid <smid@suse.cz>
14298
14299 * configure.host, configure.tgt: Support x86-64.
14300 * NEWS: Note new target x86-64.
14301
14302 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14303 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14304 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14305 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14306 x86-64-linux-nat.o): Fix dependencies.
14307
14308 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14309
14310 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14311 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14312 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14313 * config/sparc/xm-sun4os4.h: Delete file.
14314 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14315
14316 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14317
14318 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14319 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14320 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14321 * config/i386/i386lynx.mh (XM_FILE): Delete.
14322 * config/rs6000/xm-rs6000ly.h: Delete file.
14323 * config/sparc/xm-sparclynx.h: Delete file.
14324 * config/m68k/xm-m68klynx.h: Delete file.
14325 * config/i386/xm-i386lynx.h: Delete file.
14326 * config/xm-lynx.h: Delete file.
14327 * config/djgpp/fnchange.lst: Update.
14328
14329 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14330
14331 * alpha-tdep.c (alpha_register_byte): New function.
14332 (alpha_register_raw_size): Ditto.
14333 (alpha_register_virtual_size): Ditto.
14334 (alpha_skip_prologue_internal): Renamed from
14335 alpha_skip_prologue.
14336 (alpha_skip_prologue): New version that calls
14337 alpha_skip_prologue_internal.
14338 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14339 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14340 second argument from alpha_skip_prologue.
14341 (REGISTER_BYTE): Use alpha_register_byte.
14342 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14343 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14344 (FRAMELESS_FUNCTION_INVOCATION): Use
14345 generic_frameless_function_invocation_not.
14346 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14347 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14348
14349 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14350
14351 * config/mips/xm-news-mips.h: Delete file.
14352 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14353
14354 * config/m88k/xm-m88k.h: Delete file.
14355 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14356 * config/m88k/xm-delta88v4.h: Ditto.
14357 * config/m88k/xm-delta88.h: Ditto.
14358
14359 * config/alpha/xm-fbsd.h: Delete file.
14360 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14361
14362 * config/sparc/xm-sparc.h: Delete file.
14363 * Makefile.in (xm-sun4os4.h): Delete dependency.
14364 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14365 * config/sparc/xm-sun4os4.h: Ditto.
14366 * config/sparc/xm-linux.h: Ditto.
14367
14368 * config/i386/xm-windows.h: Delete file.
14369
14370 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14371
14372 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14373 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14374
14375 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14376
14377 * alpha-tdep.c (alpha_call_dummy_words): New.
14378 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14379 (CALL_DUMMY_P): Define.
14380 (CALL_DUMMY_WORDS): Define.
14381 (SIZEOF_CALL_DUMMY_WORDS): Define.
14382
14383 2002-01-19 Per Bothner <per@bothner.com>
14384
14385 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14386 isn't NULL, which can happen with some gcj-3.x-produced code.
14387
14388 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14389
14390 * alpha-tdep.c (alpha_register_virtual_type): New function.
14391 (alpha_init_frame_pc_first): Ditto.
14392 (alpha_fix_call_dummy): Ditto.
14393 (alpha_store_struct_return): Ditto.
14394 (alpha_extract_struct_value_address): Ditto.
14395 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14396 alpha_register_virtual_type.
14397 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14398 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14399 alpha_extract_struct_value_address.
14400 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14401 (INIT_FRAME_PC): Use init_frame_pc_noop.
14402 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14403
14404 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14405
14406 * i386gnu-nat.c: Include "i386-tdep.h".
14407 (fetch_fpregs): Simplify code dealing with uninitialized floating
14408 point states such that it doesn't require FP7_REGNUM.
14409
14410 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14411
14412 * alpha-tdep.c (frame_extra_info): New.
14413 (alpha_find_saved_regs): Make static. Use
14414 frame->extra_info.
14415 (alpha_frame_init_saved_regs): New function.
14416 (alpha_frame_saved_pc): Use frame->extra_info.
14417 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14418 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14419 (init_extra_frame_info): Rename to...
14420 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14421 (alpha_print_extra_frame_info): New function.
14422 (alpha_frame_locals_address): Ditto.
14423 (alpha_frame_args_address): Ditto.
14424 (alpha_pop_frame): Use frame->extra_info.
14425 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14426 alpha_frame_args_address.
14427 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14428 (alpha_find_saved_regs): Remove prototype.
14429 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14430 (EXTRA_FRAME_INFO): Remove.
14431 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14432 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14433
14434 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14435
14436 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14437 (alpha_cannot_fetch_register): Ditto.
14438 (alpha_cannot_store_register): Ditto.
14439 (alpha_register_convertible): Ditto.
14440 (alpha_use_struct_convention): Ditto.
14441 * config/alpha/tm-alpha.h: Update copyright years.
14442 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14443 (INNER_THAN): Use core_addr_lessthan.
14444 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14445 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14446 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14447 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14448 (FRAME_CHAIN): Remove unnecessary cast.
14449
14450 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14451
14452 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14453 obsolete.
14454
14455 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14456
14457 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14458 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14459 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14460 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14461 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14462 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14463 * x86-64-linux-nat.c: Ditto.
14464
14465 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14466
14467 * alpha-tdep.c (alpha_register_name): New function.
14468 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14469 (REGISTER_NAME): Define.
14470
14471 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14472
14473 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14474
14475 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14476
14477 * alpha-tdep.c: Update copyright years.
14478 (alpha_next_pc): New function.
14479 (alpha_software_single_step): Ditto.
14480 * config/alpha/tm-alpha.h: Add prototype for
14481 alpha_software_single_step.
14482
14483 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14484
14485 * alphabsd-nat.c: Update copyright years.
14486 (fill_gregset): Use regcache_collect.
14487 (fill_fpregset): Likewise.
14488 (fetch_inferior_registers): Only fetch integer registers
14489 if requested to do so.
14490 (store_inferior_registers): Only store integer registers
14491 if requested to do so.
14492
14493 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14494
14495 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14496 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14497 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14498 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14499 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14500 * config/arm/linux.mh (XDEPFILES): Delete.
14501 * config/arm/nbsd.mh (XDEPFILES): Delete.
14502 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14503 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14504 * config/i386/i386m3.mh (XDEPFILES): Delete.
14505 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14506 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14507 * config/i386/fbsd.mh (XDEPFILES): Delete.
14508 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14509 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14510 * config/i386/i386v4.mh (XDEPFILES): Delete.
14511 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14512 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14513 * config/i386/i386aix.mh (XDEPFILES): Delete.
14514 * config/i386/go32.mh (XDEPFILES): Delete.
14515 * config/i386/cygwin.mh (XDEPFILES): Delete.
14516 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14517 * config/i386/i386mach.mh (XDEPFILES): Delete.
14518 * config/i386/i386v32.mh (XDEPFILES): Delete.
14519 * config/i386/linux.mh (XDEPFILES): Delete.
14520 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14521 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14522 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14523 * config/i386/i386sco.mh (XDEPFILES): Delete.
14524 * config/i386/i386v.mh (XDEPFILES): Delete.
14525 * config/i386/nbsd.mh (XDEPFILES): Delete.
14526 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14527 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14528 * config/i386/symmetry.mh (XDEPFILES): Delete.
14529 * config/i386/obsd.mh (XDEPFILES): Delete.
14530 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14531 * config/ia64/linux.mh (XDEPFILES): Delete.
14532 * config/ia64/aix.mh (XDEPFILES): Delete.
14533 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14534 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14535 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14536 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14537 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14538 * config/m68k/linux.mh (XDEPFILES): Delete.
14539 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14540 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14541 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14542 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14543 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14544 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14545 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14546 * config/m88k/delta88.mh (XDEPFILES): Delete.
14547 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14548 * config/m88k/m88k.mh (XDEPFILES): Delete.
14549 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14550 * config/mips/linux.mh (XDEPFILES): Delete.
14551 * config/mips/irix6.mh (XDEPFILES): Delete.
14552 * config/mips/irix5.mh (XDEPFILES): Delete.
14553 * config/mips/irix4.mh (XDEPFILES): Delete.
14554 * config/mips/irix3.mh (XDEPFILES): Delete.
14555 * config/mips/decstation.mh (XDEPFILES): Delete.
14556 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14557 (NATDEPFILES): Move core-aout.o to here.
14558 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14559 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14560 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14561 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14562 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14563 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14564 * config/pa/hpux11.mh (XDEPFILES): Delete.
14565 * config/powerpc/aix.mh (XDEPFILES): Delete.
14566 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14567 * config/powerpc/linux.mh (XDEPFILES): Delete.
14568 * config/romp/rtbsd.mh: Rename XDEPFILES.
14569 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14570 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14571 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14572 * config/s390/s390.mh (XDEPFILES): Delete.
14573 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14574 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14575 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14576 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14577 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14578 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14579 * config/sparc/linux.mh (XDEPFILES): Delete.
14580 * config/vax/vaxult.mh (XDEPFILES): Delete.
14581 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14582 * Makefile.in (DEPFILES): Remove XDEPFILES.
14583
14584 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14585
14586 * utils.c (internal_verror): Fix comments, default is yes not no.
14587 Update queries to match. Default to quit and dump core.
14588
14589 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14590
14591 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14592 copyright.
14593 * defs.h, event-top.c, gdbcmd.h: Ditto.
14594 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14595 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14596 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14597 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14598 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14599 * mi/mi-main.c:Ditto.
14600
14601 * stack.c, symfile.c: Update copyright.
14602
14603 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14604
14605 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14606 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14607 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14608 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14609
14610 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14611
14612 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14613 * gdbserver/low-lynx.c (myattach): Likewise.
14614 * gdbserver/low-nbsd.c (myattach): Likewise.
14615 * gdbserver/low-sim.c (myattach): Likewise.
14616 * gdbserver/low-sparc.c (myattach): Likewise.
14617 * gdbserver/low-sun3.c (myattach): Likewise.
14618
14619 * gdbserver/low-linux.c (myattach): New function.
14620
14621 * gdbserver/server.c (attach_inferior): New function.
14622 (main): Handle "--attach".
14623
14624 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14625
14626 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14627 maintainer.
14628
14629 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14630
14631 * c-typeprint.c (is_type_conversion_operator): Add additional
14632 check for non-conversion operators.
14633
14634 2002-01-15 Michael Snyder <msnyder@redhat.com>
14635
14636 * linux-proc.c: Add "info proc" command, a la procfs.c.
14637 (read_mapping): New function, abstract and re-use code.
14638 (linux_find_memory_regions): Use new func read_mapping.
14639 (linux_info_proc_cmd): New function, implement "info proc".
14640 (_initialize_linux_proc): Add new command "info proc".
14641
14642 2002-01-15 Michael Snyder <msnyder@redhat.com>
14643
14644 * symfile.c (generic_load): Use bfd_map_over_sections method
14645 instead of manipulating bfd structure members directly.
14646 (add_section_size_callback): New function, bfd sections callback
14647 used by generic_load.
14648 (load_sections_callback): New function, bfd sections callback
14649 used by generic_load.
14650
14651 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14652
14653 [Based on work by Jim Blandy]
14654 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14655 (builtin_type_vec128): Export.
14656 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14657 types.
14658 (builtin_type_vec128): New builtin type for 128 bit vector
14659 registers.
14660 (build_gdbtypes): Initialize builtin_type_v16qi and
14661 builtin_type_v8hi. Create the vec128 register builtin type
14662 structure.
14663 (build_builtin_type_vec128): New function.
14664 (_initialize_gdbtypes): Register builtin_type_v16qi and
14665 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14666 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14667 AltiVec register to new builtin type.
14668
14669 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14670
14671 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14672 to make_cv_type.
14673
14674 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14675
14676 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14677 CLEAN_UP_REGISTER_VALUE.
14678 * regcache.c (supply_register): Update only call.
14679
14680 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14681
14682 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14683 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14684 a29k-*-vxworks* targets as obsolete.
14685
14686 2002-01-14 Michael Snyder <msnyder@redhat.com>
14687
14688 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14689 until we can resolve portability issues.
14690 * gregset.h: Remove references to fpxregs.
14691 * gcore.c (gcore_command): Initialize note_sec to NULL.
14692
14693 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14694
14695 * signals.c (target_signal_to_name): Rewrite. Only use
14696 signals[].name when in bounds and non-NULL.
14697
14698 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14699
14700 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14701 * signals.c (target_signal_to_name): Verify that SIG is within the
14702 bounds of the signals array.
14703
14704 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14705
14706 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14707
14708 2002-01-13 Keith Seitz <keiths@redhat.com>
14709
14710 * stack.c (print_frame_info_base): Print the frame's pc
14711 only if when print_frame_info_listing_hook is not defined.
14712
14713 2002-01-13 Keith Seitz <keiths@redhat.com>
14714
14715 * varobj.c (varobj_set_value): Make sure that there were no
14716 errors evaluating the object before attempting to set its
14717 value.
14718 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14719 so this offset adjustment is no longer necessary.
14720 (create_child): Don't set the error flag if the child is
14721 a CPLUS_FAKE_CHILD.
14722 (value_of_child): If value_fetch_lazy fails, return NULL
14723 so that callers will be notified that an error occurred.
14724 (c_value_of_variable): Delay check of variable's validity
14725 until later. We actually want all structs and unions to have
14726 the value "{...}".
14727 Do not return "???" for variables which could not be evaluated.
14728 This error condition must be returned to the caller so that it
14729 can get the error condition from gdb.
14730 (cplus_name_of_child): Adjust index for vptr before figuring
14731 out the name of the child.
14732 (cplus_value_of_child): If a child's (real) parent is not valid,
14733 don't even bother trying to give a value for it. Just return
14734 an error. Change all instances in this function.
14735 (cplus_type_of_child): If our parent is one of the "fake"
14736 parents, we need to get at the type of the real parent, and
14737 derive the child's true type using this information.
14738
14739 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14740
14741 From 2002-01-09 John Marshall <johnm@falch.net>:
14742 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14743 sources.redhat.com, and tweak some related URLs which had
14744 suffered from linkrot.
14745
14746 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14747
14748 From Jeff law:
14749 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14750 structures passed in registers.
14751
14752 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14753
14754 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14755 white space which prevented compilation. Reported by DSK
14756 <dsk@student.unsw.edu.au>.
14757
14758 2002-01-11 Michael Snyder <msnyder@redhat.com>
14759
14760 * symfile.c (build_section_addr_info_from_section_tab):
14761 Use bfd access method instead of manipulating bfd directly.
14762 (syms_from_objfile): Ditto.
14763 (simple_overlay_update_1): Ditto.
14764 (simple_overlay_update): Ditto.
14765 (generic_load): Ditto.
14766 (overlay_unmapped_address): FIXME comment, bfd access methods.
14767 (sections_overlap): FIXME comment, bfd access methods.
14768 (pc_in_mapped_range): FIXME comment, bfd access methods.
14769 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14770 (section_is_mapped): FIXME comment, bfd access methods.
14771 (section_is_overlay): FIXME comment, bfd access methods.
14772
14773 * symfile.c (generic_load): Whitespace and long line cleanups.
14774 Remove duplicate variable, change several local variables to
14775 more appropriate data types.
14776 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14777
14778 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14779
14780 From Peter Schauer:
14781 * language.c (longest_local_hex_string_custom): Use phex_nz to
14782 convert NUM to a hex string.
14783
14784 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14785
14786 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14787 the function.
14788 Update Copyright year.
14789
14790 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14791
14792 * language.c (longest_raw_hex_string): Delete unused function.
14793
14794 2002-01-11 Petr Sorfa <petrs@caldera.com>
14795
14796 * MAINTAINERS (write-after-approval): Add myself.
14797 * dwarf2read.c (read_tag_string_type): Handling of
14798 DW_AT_byte_size.
14799 (read_tag_string_type): FORTRAN fix to prevent propagation of
14800 first string size.
14801 (set_cu_language): Handling of DW_LANG_Fortran95
14802
14803 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14804
14805 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14806 GETPID(inferior_ptid).
14807 (store_inferior_registers): Likewise.
14808
14809 2002-01-10 Jason Merrill <jason@redhat.com>
14810
14811 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14812 Fix DW_OP_minus.
14813
14814 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14815
14816 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14817 and bfd/elf32-sh-nbsd.c.
14818
14819 2002-01-10 Michael Snyder <msnyder@redhat.com>
14820
14821 * NEWS: Mention --pid and corefile/proc-id behavior change.
14822
14823 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14824 * gcore.c: Include cli/cli-decode.h instead of command.h.
14825
14826 * main.c (captured_main): Add new command line option "--pid".
14827 If the second command line argument (following the symbol-file)
14828 begins with a digit, try to attach to it before trying to open
14829 it as a corefile.
14830 (print_gdb_help): Document the "--pid" argument.
14831
14832 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14833
14834 * completer.c (command_completer): New function.
14835
14836 * completer.h <command_completer>: Add prototype.
14837
14838 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14839 completer for the "help" command.
14840
14841 2002-01-09 Jason Merrill <jason@redhat.com>
14842
14843 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14844
14845 2002-01-09 Michael Snyder <msnyder@redhat.com>
14846
14847 * i386-linux-nat.c (fill_fpxregset): Make global.
14848 (store_fpxregset): Ditto.
14849
14850 * gregset.h (gdb_fpxregset_t): Define.
14851 (supply_fpxregset): Prototype.
14852 (fill_fpxregset): Prototype.
14853
14854 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14855
14856 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14857
14858 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14859 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14860 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14861
14862 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14863
14864 * MAINTAINERS: Update target maintainer rules so that any
14865 Maintainer can approve a tested patch for a maintenance-only
14866 target.
14867
14868 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14869
14870 * MAINTAINERS (write-after-approval): Add myself.
14871
14872 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14873 IN_SIGTRAMP.
14874
14875 2002-01-08 Michael Snyder <msnyder@redhat.com>
14876
14877 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14878 real name of the executable, rather than the /proc name.
14879
14880 2002-01-03 Michael Snyder <msnyder@redhat.com>
14881
14882 Implement a "generate-core-file" command in gdb, save target state.
14883 * gcore.c: New file. Implement new command 'generate-core-file'.
14884 Save a corefile image of the current state of the inferior.
14885 * linux-proc.c: Add linux-specific code for saving corefiles.
14886 * target.h (struct target_ops): Add new target vectors for saving
14887 corefiles; to_find_memory_regions and to_make_corefile_notes.
14888 (target_find_memory_regions): New macro.
14889 (target_make_corefile_notes): New macro.
14890 * target.c (update_current_target): Inherit new target methods.
14891 (dummy_find_memory_regions): New place-holder method.
14892 (dummy_make_corefile_notes): New place-holder method.
14893 (init_dummy_target): Initialize new dummy target vectors.
14894 * exec.c (exec_set_find_memory_regions): New function.
14895 Allow the exec_ops vector for memory regions to be taken over.
14896 (exec_make_note_section): New function, target vector method.
14897 * defs.h (exec_set_find_memory_regions): Export prototype.
14898 * procfs.c (proc_find_memory_regions): New function, corefile method.
14899 (procfs_make_note_section): New function, corefile method.
14900 (init_procfs_ops): Set new target vector pointers.
14901 (find_memory_regions_callback): New function.
14902 (procfs_do_thread_registers): New function.
14903 (procfs_corefile_thread_callback): New function.
14904 * sol-thread.c (sol_find_memory_regions): New function.
14905 (sol_make_note_section): New function.
14906 (init_sol_thread_ops): Initialize new target vectors.
14907 * inftarg.c (inftarg_set_find_memory_regions): New function.
14908 Allow to_find_memory_regions vector to be taken over.
14909 (inftarg_set_make_corefile_notes): New function.
14910 Allow to_make_corefile_notes vector to be taken over.
14911 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14912 interface layer if not target_has_execution (may be a corefile).
14913 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14914 * config/sparc/sun4sol2.mh: Ditto.
14915 * config/alpha/alpha-linux.mh: Ditto.
14916 * config/arm/linux.mh: Ditto.
14917 * config/i386/x86-64linux.mh: Ditto.
14918 * config/ia64/linux.mh: Ditto.
14919 * config/m68k/linux.mh: Ditto.
14920 * config/mips/linux.mh: Ditto.
14921 * config/powerpc/linux.mh: Ditto.
14922 * config/sparc/linux.mh: Ditto.
14923
14924 2002-01-07 Michael Snyder <msnyder@redhat.com>
14925
14926 * arm-linux-nat.c: Remove references to regcache.c internal data
14927 (registers[] and register_valid[]).
14928
14929 2002-01-07 Michael Snyder <msnyder@redhat.com>
14930
14931 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14932 so that attaching to a pid will automatically read the process's
14933 symbol file and shlibs.
14934 * Makefile.in: Add rule for linux-proc.o.
14935 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14936 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14937 * config/arm/linux.mh: Ditto.
14938 * config/i386/linux.mh: Ditto.
14939 * config/i386/x86-64linux.mh: Ditto.
14940 * config/ia64/linux.mh: Ditto.
14941 * config/m68k/linux.mh: Ditto.
14942 * config/mips/linux.mh: Ditto.
14943 * config/powerpc/linux.mh: Ditto.
14944 * config/sparc/linux.mh: Ditto.
14945
14946 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14947
14948 * win32-nat.c: Add i386-tdep.h dependency.
14949
14950 2002-01-07 Michael Snyder <msnyder@redhat.com>
14951
14952 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14953 instead of bfd_get_arch_size. Don't bail out just because
14954 there's no exec_bfd.
14955
14956 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14957 * p-valprint.c (pascal_object_print_value): Ditto.
14958 * somread.c (som_symtab_read): Ditto.
14959 * symfile.c (simple_free_overlay_region_table): Ditto.
14960 * valops.c (value_assign): Ditto.
14961
14962 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14963 use tilde_expand and strerror for opening save-tracepoints file.
14964
14965 * thread-db.c (thread_db_new_objfile): Indendation fix.
14966
14967 * infptrace.c (GDB_MAX_ALLOCA): New define.
14968 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14969 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14970 can be overridden with whatever value is appropriate to the host).
14971 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14972 alloca to allocate potentially large buffer.
14973 * rs6000-nat.c (child_xfer_memory): Ditto.
14974 * symm-nat.c (child_xfer_memory): Ditto.
14975 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14976
14977 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14978
14979 From Nick Clifton <nickc@redhat.com>
14980 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14981
14982 2002-01-07 Michael Snyder <msnyder@redhat.com>
14983
14984 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14985 Don't use exec_bfd if it's NULL.
14986
14987 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14988
14989 * valops.c (value_arg_coerce): Fix formatting.
14990
14991 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14992
14993 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14994 * gnu-nat.c: Ditto.
14995
14996 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14997
14998 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14999 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15000 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15001 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15002 z8k-coff have not been multi-arched. Update z8k-coff build
15003 status.
15004
15005 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15006
15007 * MAINTAINERS: Mark a29k target as obsolete.
15008 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15009 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15010 comments.
15011 * NEWS: Note that a29k targets are obsolete.
15012 * a29k-tdep.c: Mark as obsolete.
15013 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15014 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15015 a29k-*-vxworks* targets as obsolete.
15016 * remote-adapt.c: Obsolete.
15017 * remote-eb.c: Obsolete.
15018 * remote-mm.c: Obsolete.
15019 * remote-udi.c: Obsolete.
15020 * config/a29k/a29k-udi.mt: Obsolete.
15021 * config/a29k/a29k.mt: Obsolete.
15022 * config/a29k/tm-a29k.h: Obsolete.
15023 * config/a29k/tm-vx29k.h: Obsolete.
15024 * config/a29k/vx29k.mt: Obsolete.
15025
15026 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15027
15028 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15029 with BFD_ENDIAN_BIG.
15030
15031 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15032
15033 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15034 * configure, config.in: Re-generate.
15035 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15036 * defs.h: Do not include <endian.h>.
15037
15038 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15039
15040 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15041 * config.in: Regenerate.
15042 * configure.in: Update copyright years.
15043 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15044 * configure: Regenerate.
15045 * i386bsd-nat.c: Update copyright years.
15046 (fill_gregset): Use regcache_collect.
15047 (fetch_inferior_registers): Only fetch integer registers
15048 if requested to do so. Add support for XMM registers
15049 using PT_GETXMMREGS.
15050 (store_inferior_registers): Only store integer registers
15051 if requested to do so. Add support for XMM registers
15052 using PT_SETXMMREGS.
15053 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15054 (store_inferior_registers): Remove.
15055 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15056 (fetch_elfcore_registers): New function.
15057 (i386nbsd_elfcore_fns): New.
15058 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15059 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15060 i386bsd-nat.o.
15061 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15062 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15063 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15064 * config/i386/tm-nbsd.h: Update copyright years.
15065 (HAVE_SSE_REGS): Define.
15066 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15067 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15068 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15069 (SIGCONTEXT_PC_OFFSET): Remove.
15070 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15071
15072 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15073
15074 * configure.tgt: Remove powerpc-*-macos* target.
15075 * config/m68k/xm-mpw.h: Delete file.
15076 * config/xm-mpw.h: Delete file.
15077 * ser-mac.c: Delete file.
15078 * mpw-make.sed: Delete file.
15079 * mpw-config.in: Delete file.
15080 * mac-xdep.c: Delete file.
15081 * mac-gdb.r: Delete file.
15082 * mac-defs.h: Delete file.
15083 * mac-nat.c: Delete file.
15084 * config/powerpc/macos.mh: Delete file.
15085 * config/powerpc/macos.mt: Delete file.
15086 * config/powerpc/nm-macos.h: Delete file.
15087 * config/powerpc/tm-macos.h: Delete file.
15088 * source.c (openp, open_source_file): Remove obsolete code.
15089 * top.c (gdb_readline): Ditto.
15090 * utils.c (query): Ditto.
15091 * event-top.c (display_gdb_prompt): Ditto.
15092 * Makefile.in (ser-mac.o): Delete obsolete target.
15093 * NEWS: Update.
15094
15095 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15096
15097 * defs.h (BIG_ENDIAN): Delete macro definition.
15098 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15099 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15100 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15101 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15102 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15103 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15104 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15105 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15106 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15107 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15108 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15109 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15110 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15111 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15112 * gdbarch.c: Re-generate.
15113
15114 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15115
15116 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15117 for core files.
15118
15119 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15120
15121 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15122
15123 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15124
15125 * value.h (value_ptr): Delete typedef.
15126
15127 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15128
15129 * i386nbsd-nat.c: Update copyright years.
15130 Include i386-tdep.h.
15131
15132 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15133
15134 * stabsread.c: Update copyright years.
15135
15136 From Debashis Mahata <debashis.mahata@wipro.com>:
15137 (read_struct_fields): Deal with Sun C compiler erroneous stab
15138 output for structs and unions.
15139 Fix PR gdb/269.
15140
15141 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15142
15143 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15144 prototype.
15145
15146 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15147
15148 * cp-abi.c: Fix whitespace.
15149 (baseclass_offset): New wrapper function.
15150 * cp-abi.h (baseclass_offset): Add prototype.
15151 (struct cp_abi_ops): Add baseclass_offset pointer.
15152
15153 * valops.c (vb_match): Move to...
15154 * gnu-v2-abi.c (vb_match): here.
15155 * valops.c (baseclass_offset): Move to...
15156 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15157
15158 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15159
15160 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15161 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15162 * hpacc-abi.c (init_hpacc_ops): Likewise.
15163
15164 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15165
15166 * valops.c (find_overload_match): Accept obj as a
15167 reference parameter. Update it before returning.
15168 * value.h (find_overload_match): Update prototype.
15169 * eval.c (evaluate_subexp_standard): Pass object to
15170 find_overload_match by reference.
15171
15172 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15173
15174 * valarith.c: Replace value_ptr with struct value pointer. Remove
15175 register attribute from value declarations.
15176 * valops.c: Ditto.
15177 * value.h: Ditto.
15178 * scm-lang.c (scm_lookup_name): Ditto.
15179
15180 2002-01-03 Michael Snyder <msnyder@redhat.com>
15181
15182 Abstract the functionality of iterating over mapped memory
15183 regions into a general purpose iterator function.
15184 * procfs.c (iterate_over_mappings): New function, general purpose
15185 iterator for memory sections.
15186 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15187 (solib_mappings_callback): New function, callback for above.
15188 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15189 (info_mappings_callback): New function, callback for above.
15190
15191 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15192
15193 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15194
15195 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15196 * i386-tdep.c: Include "elf-bfd.h".
15197 (process_note_abi_tag_sections): New function.
15198 (i386_gdbarch_init): Add code to recognize various OS/ABI
15199 combinations.
15200
15201 * maint.c (_initialize_maint_cmds): Add missing \ in
15202 string-literal.
15203
15204 For older changes see ChangeLog-2001
15205 \f
15206 Local Variables:
15207 mode: change-log
15208 left-margin: 8
15209 fill-column: 74
15210 version-control: never
15211 End:
This page took 0.343684 seconds and 4 git commands to generate.