* configure.in: Call AC_CONFIG_HEADER. Don't call
[binutils-gdb.git] / gdb / ChangeLog
1 2003-01-04 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.c (deprecated_frame_xmalloc): New function.
4 (deprecated_set_frame_saved_regs_hack): New function.
5 (deprecated_set_frame_extra_info_hack): New function.
6 * frame.h (deprecated_frame_xmalloc): Declare.
7 (deprecated_set_frame_saved_regs_hack): Declare.
8 (deprecated_set_frame_extra_info_hack): Declare.
9
10 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11
12 * configure.in: Move code that provides the --enable-gdbtk option
13 right after the code that handles the --enable-tui option, and
14 polish it somewhat.
15 * configure: Regenerated.
16
17 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
18 AC_CHECK_FUNCS and remove the old check for pread64.
19 * acinclude.m4 (AC_GNU_SOURCE): New macro.
20 * acconfig.h (_GNU_SOURCE): Add.
21 (HAVE_PREAD64): Remove.
22 * configure, aclocal.m4, config.in: Regenerated.
23
24 2003-01-03 Andrew Cagney <ac131313@redhat.com>
25
26 * alpha-tdep.c: Use get_frame_saved_regs.
27 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
28 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
29 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
30 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
31 * vax-tdep.c, xstormy16-tdep.c: Ditto.
32
33 2003-01-03 Mark Kettenis <kettenis@gnu.org>
34
35 * configure.in: Remove all use of the SUBDIRS variable; add
36 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
37 code providing the --enable-multi-ice option, and move it right in
38 front of the code that checks whether gdbserver is supported.
39 Polish that too.
40 * configure: Regenerated.
41 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
42 @SUBDIRS@.
43
44 2003-01-03 Andrew Cagney <cagney@redhat.com>
45
46 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
47 * avr-tdep.c, cris-tdep.c: Ditto.
48 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
49 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
50
51 2003-01-03 Mark Kettenis <kettenis@gnu.org>
52
53 * configure.in: Remove --enable-netrom option.
54 * configure: Regenerated.
55
56 2003-01-03 Mark Kettenis <kettenis@gnu.org>
57
58 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
59 declaration for `struct re_pattern_buffer' instead.
60 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
61
62 2003-01-03 J. Brobecker <brobecker@gnat.com>
63
64 * mdebugread.c (parse_symbol): Count until the stEnd matching
65 the structure name.
66
67 2003-01-02 Mark Kettenis <kettenis@gnu.org>
68
69 * configure.in: Remove --with-cpu option.
70 subscripts. Remove evil changequotes here.
71 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
72 * config.in, configure: Regenerated.
73
74 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
75 * configure.in: Cleanup section that sources GDB and BFD configure
76 subscripts. Remove evil changequotes here.
77 * config.in, configure: Regenerated.
78
79 2003-01-02 Andrew Cagney <ac131313@redhat.com>
80
81 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
82 frame accessor methods.
83 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
84 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
85 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
86 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
87 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
88 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
89 * z8k-tdep.c: Ditto.
90
91 2003-01-02 Mark Kettenis <kettenis@gnu.org>
92
93 * configure.in: Remove UI_OUT configuration code.
94 * ada-lang.c: Update assuming UI_OUT is always true.
95 * Makefile.in (UIOUT_CFLAGS): Remove.
96 * configure: Regenerated.
97 * TODO: Remove blurb about elimination of -DUI_OUT.
98
99 * configure.in: Move code that provides the --enable-gdbcli,
100 --enable-gdbmi options right before the code that handles the
101 --enable-tui option. Polish a bit.
102 * configure: Regenerated.
103
104 * configure.in: Rewrite check for GNU regex and the
105 --without-included regex option, and move it into the "Checks for
106 library functions" section. This makes us use the system regex
107 again by default on systems with version 2 of the GNU C library.
108 This was apparently broken.
109 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
110 * acconfig.h (USE_INCLUDED_REGEX): Remove.
111 * config.in, configure: Regenerated.
112
113 * configure.in: Move code that provides the --enable-tui option
114 before the "Checks for libraries" section. Polish the code
115 somewhat and set need_curses to yes if we build the TUI. Rewrite
116 code that looks for a library providing termcap functionality to
117 match more closely what's done in the Readline library, and move
118 it into to the "Checks for libraries" section.
119 * configure: Regenerated.
120 * Makefile.in (TERMCAP): Remove variable.
121 * config/i386/go32.mh (TERMCAP): Remove variable.
122
123 2003-01-02 Andrew Cagney <ac131313@redhat.com>
124
125 * MAINTAINERS: Mention gdb_mbuild.sh.
126 * gdb_mbuild.sh: Rewrite.
127
128 2003-01-02 Mark Kettenis <kettenis@gnu.org>
129
130 * configure.in: Fix typo in last change.
131 * config.in, configure: Regenerated.
132
133 2003-01-02 Andrew Cagney <ac131313@redhat.com>
134
135 * valarith.c (value_binop): Delete obsolete code and comments.
136 * configure.host: Ditto.
137 * buildsym.h (make_blockvector): Ditto.
138 * buildsym.c (make_blockvector): Ditto.
139 * defs.h (enum language): Ditto.
140 (chill_demangle): Ditto.
141 * elfread.c (elf_symtab_read): Ditto.
142 * dwarfread.c (CHILL_PRODUCER): Ditto.
143 (set_cu_language): Ditto.
144 (handle_producer): Ditto.
145 * expprint.c (print_subexp): Ditto.
146 * gdbtypes.c (chill_varying_type): Ditto.
147 * gdbtypes.h (builtin_type_chill_bool): Ditto.
148 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
149 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
150 (chill_varying_type): Ditto.
151 * language.h (_LANG_chill): Ditto.
152 * language.c (binop_result_type, integral_type): Ditto.
153 (character_type, string_type, structured_type): Ditto.
154 (lang_bool_type, binop_type_check): Ditto.
155 * stabsread.h (os9k_stabs): Ditto.
156 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
157 (define_symbol, read_type, read_struct_fields): Ditto.
158 (read_array_type, read_enum_type, read_huge_number): Ditto.
159 (read_range_type, start_stabs): Ditto.
160 * symfile.c (init_filename_language_table): Ditto.
161 (add_psymbol_with_dem_name_to_list): Ditto.
162 * symtab.c (symbol_init_language_specific): Ditto.
163 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
164 * symtab.h (struct general_symbol_info): Ditto.
165 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
166 * typeprint.c (typedef_print): Ditto.
167 * utils.c (fprintf_symbol_filtered): Ditto.
168 * valops.c (value_cast, search_struct_field, value_slice): Delete
169 obsolete code.
170 (varying_to_slice): Delete function.
171 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
172 (varying_to_slice): Delete declaration.
173 * MAINTAINERS: Update.
174
175 2003-01-02 Mark Kettenis <kettenis@gnu.org>
176
177 * configure.in: Reorganize "Checks for library functions section"
178 a bit. Remove check for `btowc' and `isascii' functions.
179 * configure: Regenerated.
180
181 * acconfig.h (_MSE_INT_H): Remove.
182 * configure.in: Create "Checks for header files" section, and move
183 appropriate tests there. Don't check for objlist.h, wchar.h,
184 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
185 misdetection fix. Also add "Checks for types", "Checks for
186 compiler characteristics" and "Checks for library functions"
187 sections.
188 * config.in, configure: Regenerated.
189
190 * configure.in: Create "Checks for programs" section, and move
191 appropriate tests there.
192
193 2003-01-01 Mark Kettenis <kettenis@gnu.org>
194
195 * configure.in: Create "Checks for libraries" section, and move
196 appropriate tests there. Cleanup check for wctype in libw. Use
197 AC_SEARCH_LIBS to see whether we need libsocket.
198 * configure: Regenerated.
199
200 2002-12-31 Mark Kettenis <kettenis@gnu.org>
201
202 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
203 * config.in, configure: Regenerated.
204
205 2002-12-31 Mark Kettenis <kettenis@gnu.org>
206
207 * gdb_dirent.h: Cleanup and update code to match the example in
208 the Autoconf manual.
209 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
210 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
211 * configure: Regenerated.
212
213 2002-12-30 Adam Fedor <fedor@gnu.org>
214
215 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
216 (yylex): Initialize c to avoid uninitialized warning.
217
218 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
219
220 * doc/fdl.texi: Revert the last change.
221
222 2002-12-29 Mark Kettenis <kettenis@gnu.org>
223
224 * tracepoint.c (ISATTY): Removed.
225
226 2002-12-26 J. Brobecker <brobecker@gnat.com>
227
228 Continuing work to convert the hppa targets to multiarch partil.
229
230 * hppa-tdep.c: Add some missing forward declarations.
231 (frameless_function_invocation): Prefix the function name
232 by "hppa_" to avoid polluting the namespace. Update all calls
233 to use the new function name.
234 (saved_pc_after_call): Ditto.
235 (init_extra_frame_info): Ditto.
236 (frame_chain): Ditto.
237 (push_dummy_frame): Ditto.
238 (target_read_pc): Ditto.
239 (target_write_pc): Ditto.
240 (in_solib_call_trampoline): Ditto.
241 (in_solib_return_trampoline): Ditto.
242 (skip_trampoline_code): Ditto.
243 (hppa_read_fp): New function, renamed from target_read_fp.
244 (hppa_target_read_fp): New function, using hppa_read_fp.
245 This function conforms to the function profile for the
246 READ_FP gdbarch method.
247 (hppa_extract_struct_value_address): New function, extracted
248 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
249 macro.
250 (hppa_frame_num_args): New function.
251 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
252
253 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
254 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
255 for the switch to multiarch partial.
256 Update some of the macros definitions to match some changes
257 described above in the name of the function they are calling.
258 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
259 not be straightforward to convert. Do now wrap it inside
260 "#if !... #endif" to remember that this macro has still not
261 been taken care of.
262 (FIX_CALL_DUMMY): Likewise.
263
264 2002-12-26 J. Brobecker <brobecker@gnat.com>
265
266 Continuing work to convert the hppa targets to multiarch partial.
267
268 * hppa-tdep.c (hppa_register_raw_size): New function replacing
269 the body of macro REGISTER_RAW_SIZE.
270 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
271 config/pa/tm-hppah.h. These functions will be used to initialize
272 the gdbarch structure.
273 (hppa_hpux_pc_in_sigtramp): New function.
274 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
275 (hppa_hpux_frame_base_before_sigtramp): New function.
276 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
277 Add gdbcore.h #include.
278 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
279 of this gdbarch-eligible macro to a call to the new associated
280 function.
281 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
282 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
283 into a call to the new associated function.
284 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
285 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
286 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
287
288 2002-12-24 David Carlton <carlton@math.stanford.edu>
289
290 * config/sparc/tm-sparc.h: Delete duplicate definition of
291 DEPRECATED_PC_IN_CALL_DUMMY.
292
293 2002-12-24 Kevin Buettner <kevinb@redhat.com>
294
295 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
296 $(gdb_assert_h).
297 * configure.tgt: Recognize mips64*-*-linux*.
298 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
299 (supply_32_bit_reg): New function.
300 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
301 (fill_gregset): Use regcache_collect() instead of
302 deprecated_registers[].
303 (register_addr): Change name to mips_linux_register_addr().
304 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
305 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
306 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
307 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
308 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
309 (MIPS64_LINUX_JB_PC): New defines.
310 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
311 (mips64_elf_fpregset_t): New typedefs.
312 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
313 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
314 (mips64_linux_register_addr, set_mips_linux_register_addr)
315 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
316 (init_register_addr_data)
317 New functions.
318 (fetch_core_registers): Add support for core file formats with 64-bit
319 registers.
320 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
321 (register_addr_data): New static global variable.
322 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
323 gdbarch_register_osabi() for each MIPS machine.
324 * config/mips/linux64.mt: New file.
325 * config/mips/tm-linux64.h: New file.
326
327 2002-12-23 Adam Fedor <fedor@gnu.org>
328
329 * maint.c (maintenance_demangle): Add switch to demangle
330 ObjC language symbols as well.
331
332 2002-12-23 Adam Fedor <fedor@gnu.org>
333
334 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
335 last argument from complaint function call.
336
337 2002-12-23 Kevin Buettner <kevinb@redhat.com>
338
339 * exec.c (print_section_info): Add FIXME comments regarding format
340 string choices.
341
342 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
343
344 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
345 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
346
347 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
348
349 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
350
351 2002-12-23 David Carlton <carlton@math.stanford.edu>
352
353 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
354 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
355 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
356 information associated to a minsym, not lookup_symbol.
357
358 2002-12-21 Mark Kettenis <kettenis@gnu.org>
359
360 * x86-64-tdep.h (x86_64_init_abi): New prototype.
361 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
362 (x86_64_init_abi): Make non-static. Set number of pseudo
363 registers to 0.
364 (x86_64_gdbarch_init): Remove function.
365 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
366 Remove code dealing with dissambly.
367 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
368 (_initialize_x86_64_linux_tdep): New function.
369 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
370 i386-tdep.o.
371
372 2002-12-14 Mark Kettenis <kettenis@gnu.org>
373
374 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
375 (struct gdb_osabi_handler): Remove member `arch'. Add member
376 `arch_info'.
377 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
378 construct a `struct bfd_arch_info' and store it in the `struct
379 gdb_osabi_handler' that is created.
380 (gdbarch_init_osabi): Check for compatibility based on machine
381 type and architecture.
382 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
383 comment.
384 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
385 second argument in call to gdbarch_register_osabi.
386 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
387 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
388 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
389 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
390 * arm-tdep.c (_initialize_arm_tdep): Likewise.
391 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
392 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
393 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
394 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
395 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
396 * i386-tdep.c (_initialize_i386_tdep): Likewise.
397 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
398 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
399 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
400 _initialize_i386bsd_tdep and updated likewise.
401 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
402 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
403 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
404 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
405 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
406 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
407 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
408 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
409 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
410 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
411
412 2002-12-20 Kevin Buettner <kevinb@redhat.com>
413
414 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
415 DT_MIPS_RLD_MAP case for 64-bit targets.
416
417 2002-12-20 Kevin Buettner <kevinb@redhat.com>
418
419 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
420 ``temp_saved_regs'', not the pointer or other storage contiguous
421 to this pointer.
422
423 2002-12-20 Kevin Buettner <kevinb@redhat.com>
424
425 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
426 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
427 (mips_linux_get_longjmp_target): Delete declarations.
428 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
429 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
430 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
431 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
432 (mips_linux_get_longjmp_target)
433 (mips_linux_svr4_fetch_link_map_offsets): Make static.
434 (mips_linux_init_abi): New function.
435 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
436
437 2002-12-19 Keith Seitz <keiths@redhat.com>
438
439 patch committed by Elena Zannoni <ezannoni@redhat.com>
440 * thread.c (do_captured_list_thread_ids): Call prune_threads and
441 target_find_new_threads. Fix for PR mi/669.
442
443 2002-12-19 David Carlton <carlton@math.stanford.edu>
444
445 * linespec.c (decode_line_1): Move code into decode_all_digits.
446 (decode_all_digits): New function.
447
448 2002-12-19 Kevin Buettner <kevinb@redhat.com>
449
450 * exec.c (print_section_info): Select a format string to use with
451 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
452
453 2002-12-18 Andrew Cagney <ac131313@redhat.com>
454
455 * frame.c (deprecated_update_current_frame_pc_hack): Replace
456 deprecated_update_current_frame_pc_hack.
457 (deprecated_update_frame_base_hack): New function.
458 * frame.h (deprecated_update_frame_pc_hack): Replace
459 (deprecated_update_frame_base_hack): Declare.
460 * infrun.c (normal_stop): Update.
461
462 2002-12-18 Andrew Cagney <ac131313@redhat.com>
463
464 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
465 frame_extra_info_zalloc.
466 (rs6000_frame_args_address): Use get_frame_extra_info.
467 (frame_get_saved_regs): Use get_frame_saved_regs.
468 (frame_initial_stack_address): Use get_frame_saved_regs and
469 get_frame_extra_info.
470 (frame_initial_stack_address): Use get_frame_extra_info.
471
472 2002-12-17 Kevin Buettner <kevinb@redhat.com>
473
474 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
475 array size.
476 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
477 checks for r3900_regnames[].
478
479 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
480
481 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
482 All uses changed
483 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
484
485 2002-12-17 David Carlton <carlton@math.stanford.edu>
486
487 * symtab.c (lookup_partial_symbol): Don't search past the end of
488 the partial symbols.
489
490 2002-12-17 Andrew Cagney <ac131313@redhat.com>
491
492 * stack.c (frame_info): Use get_frame_saved_regs.
493 * breakpoint.c (until_break_command): Use get_frame_pc.
494
495 2002-12-16 Kevin Buettner <kevinb@redhat.com>
496
497 * buildsym.c (block_end_complaint, anon_block_end_complaint)
498 (innerblock_complaint, innerblock_anon_complaint)
499 (blockvector_complaint): Delete deprecated complaint structs.
500 (finish_block, make_blockvector, end_symtab): Replace calls
501 to complain() with calls to complaint().
502 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
503 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
504 (unexpected_type_complaint, bad_sclass_complaint)
505 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
506 Delete deprecated complaint structs.
507 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
508 Replace calls to complain() with calls to complaint().
509 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
510 (unknown_symtype_complaint, unknown_symchar_complaint)
511 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
512 (lbrac_mismatch_complaint, repeated_header_complaint)
513 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
514 Delete deprecated complaint structs.
515 (unknown_symtype_complaint, lbrac_mismatch_complaint)
516 (repeated_header_complaint)
517 (function_outside_compiliation_unit_complaint): New functions.
518 (add_old_header_file, find_corresponding_bincl_psymtab)
519 (set_namestring, find_stab_function_addr, read_dbx_symtab)
520 (process_one_symbol): Replace calls to complain() with, possibly
521 indirect, calls to complaint().
522 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
523 (unknown_attribute_form, unknown_attribute_length)
524 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
525 (const_ignored, botched_modified_type, op_deref2, op_deref4)
526 (basereg_not_handled, dup_user_type_allocation)
527 (dup_user_type_definition, missing_tag, bad_array_element_type)
528 (subscript_data_items, unhandled_array_subscript_format)
529 (unknown_array_subscript_format, not_row_major)
530 (missing_at_name): Delete deprecated complaint structs.
531 (bad_die_ref_complaint, unknown_attribute_form_complaint)
532 (dup_user_type_definition_complaint)
533 (bad_array_element_type_complaint): New functions.
534 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
535 (decode_subscript_data_item, dwarf_read_array_type)
536 (read_tag_string_type, read_subroutine_type, read_func_scope)
537 (locval, scan_partial_symbols, decode_modified_type)
538 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
539 (attribute_size): Replace calls to complain() with, possibly
540 indirect, calls to complaint().
541 * elfread.c (section_info_complaint, section_info_dup_complaint)
542 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
543 Delete deprecated complaint structs.
544 (elf_symtab_read, elfstab_offset_sections): Replace calls to
545 complain() with calls to complaint().
546 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
547 struct.
548 (stub_noname_complaint): New function.
549 (check_typedef, add_mangled_type): Replace calls to complain()
550 with calls to complaint().
551 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
552 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
553 (hpread_unhandled_type_complaint, hpread_struct_complaint)
554 (hpread_array_complaint, hpread_type_lookup_complaint)
555 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
556 (hpread_unhandled_common_complaint)
557 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
558 struct definitions and declarations.
559 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
560 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
561 Replace calls to complain() with, possibly indirect, calls to
562 complaint().
563 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
564 Likewise.
565 * mdebugread.c (bad_file_number_complaint, index_complaint)
566 (aux_index_complaint, block_index_complaint)
567 (unknown_ext_complaint, unknown_sym_complaint)
568 (unknown_st_complaint, block_overflow_complaint)
569 (basic_type_complaint, unknown_type_qual_complaint)
570 (array_index_type_complaint, bad_tag_guess_complaint)
571 (block_member_complaint, stEnd_complaint)
572 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
573 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
574 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
575 (bad_continued_complaint, bad_rfd_entry_complaint)
576 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
577 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
578 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
579 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
580 complaint structs.
581 (index_complaint, unknown_ext_complaint, basic_type_complaint)
582 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
583 (unexpected_type_code_complaint)
584 (function_outside_compilation_unit_complaint): New functions.
585 (parse_symbol, parse_type, upgrade_type, parse_procedure)
586 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
587 Replace calls to complain() with, possibly indirect calls to
588 complaint().
589 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
590 Delete deprecated complaint structs.
591 (lookup__objc_class, lookup_child_selector): Replace complain()
592 with complaint().
593 * remote-vx.c (cant_contact_target): Delete deprecated complaint
594 struct.
595 (vx_lookup_symbol): Replace complain() with complaint().
596 * stabsread.c (invalid_cpp_abbrev_complaint)
597 (invalid_cpp_type_complaint, member_fn_complaint)
598 (const_vol_complaint, error_type_complaint)
599 (invalid_member_complaint, range_type_base_complaint)
600 (reg_value_complaint, vtbl_notfound_complaint)
601 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
602 (unresolved_sym_chain_complaint, stabs_general_complaint)
603 (lrs_general_complaint, multiply_defined_struct): Delete
604 deprecated complaint structs.
605 (invalid_cpp_abbrev_complaint, ref_value_complaint)
606 (stabs_general_complaint, lrs_general_complaint)
607 (msg_unknown_complaint): New functions.
608 (dbx_lookup_type, read_cfront_baseclasses)
609 (read_cfront_member_functions, resolve_symbol_reference)
610 (define_symbol, resolve_live_range, add_live_range, read_type)
611 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
612 (read_one_struct_field, read_baseclasses, read_tilde_fields)
613 (read_cfront_static_fields, attach_fields_to_type)
614 (complain_about_struct_wipeout, read_range_type)
615 (common_block_start, common_block_end, cleanup_undefined_types)
616 (scan_file_globals): Replace complain() with complaint().
617 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
618 Delete deprecated complaint struct declarations.
619 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
620 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
621 (bf_not_found_complaint, ef_complaint, eb_complaint)
622 (function_outside_compilation_unit_complaint): New functions.
623 (record_include_begin, record_include_end, enter_line_range)
624 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
625 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
626 complain() with complaint().
627
628 2002-12-16 Andrew Cagney <ac131313@redhat.com>
629
630 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
631 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
632 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
633 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
634 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
635 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
636 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
637 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
638 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
639 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
640 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
641 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
642 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
643 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
644 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
645 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
646 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
647 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
648 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
649 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
650 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
651 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
652 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
653 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
654 * config/m88k/xm-dgux.h: Delete.
655 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
656 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
657 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
658 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
659 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
660 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
661 * ch-valprint.c: Delete.
662
663 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
664
665 * infrun.c (handle_inferior_event): Rearrange code to resume if
666 no catchpoint triggers for an event.
667
668 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
669
670 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
671 and TARGET_WAITKIND_VFORKED cases.
672
673 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
674
675 * infrun.c (handle_inferior_event): Assume that catchpoints
676 are not affected by DECR_PC_AFTER_BREAK.
677
678 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
679
680 * target.c (update_current_target): Don't inherit DONT_USE.
681 * target.h (struct target_ops): Remove DONT_USE.
682 (target_next): Remove macro.
683
684 2002-12-15 Mark Kettenis <kettenis@gnu.org>
685
686 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
687
688 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
689
690 * arm-tdep.c (convert_from_extended): New argument to hold the
691 type of floating point result we want to convert to. Make input
692 argument const. Fix all callers.
693 (convert_to_extended): Similarly.
694 (arm_extract_return_value): Now takes a regcache argument. Change
695 code to use regcache accessor functions. Correctly extract
696 smaller-than-word results on big-endian machines.
697 (arm_store_return_value): Now takes a regcache argument. Change
698 code to use regcache accessor functions. Correctly zero/sign extend
699 smaller than word results before storing into r0.
700 (arm_gdbarch_init): Register new-style extract_return_value and
701 store_return_value functions.
702
703 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
704
705 * thread-db.c (thread_from_lwp): Uniquify error msg.
706 (lwp_from_thread): Ditto.
707 (check_event): Ditto.
708 (find_new_threads_callback): Ditto.
709 (thread_db_pid_to_str): Ditto.
710
711 2002-12-13 Andrew Cagney <ac131313@redhat.com>
712
713 * frame.h (get_frame_saved_regs): Declare.
714 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
715 pointer.
716 * frame.c (get_frame_saved_regs): New function.
717 (frame_saved_regs_zalloc): Return the allocated saved_regs.
718
719 2002-12-13 Andrew Cagney <ac131313@redhat.com>
720
721 * frame.c (deprecated_update_current_frame_pc_hack): New
722 function.
723 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
724 * infrun.c (normal_stop): Use said function instead of directly
725 modifying the frame's PC.
726
727 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
728
729 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
730
731 2002-12-13 Kevin Buettner <kevinb@redhat.com>
732
733 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
734 config/mips/tm-irix6.h (NUM_REGS): Delete.
735 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
736 (temp_saved_regs): Declare as a pointer rather than an array.
737 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
738 that ``temp_saved_regs'' has storage allocated to it and that
739 it's the correct size.
740
741 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
742
743 * defs.h (init_last_source_visited): New prototype.
744 (add_path): Ditto.
745 * source.c (add_path): New function that adds to a specified path.
746 (mod_path): Change to call add_path.
747 (init_last_source_visited): New function to allow interfaces to
748 initialize static variable: last_source_visited. Part of fix
749 for PR gdb/741.
750 * Makefile.in: Add support for mi/mi-cmd-env.c.
751
752 2002-12-13 Andrew Cagney <ac131313@redhat.com>
753
754 * frame.h (frame_id_unwind): Declare.
755 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
756 id_unwind_cache.
757 (frame_id_unwind_ftype): Declare.
758 * frame.c (frame_id_unwind): New function.
759 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
760 (create_new_frame, get_prev_frame): Pass id_unwind to
761 set_unwind_by_pc.
762 (frame_saved_regs_id_unwind): New function.
763 (frame_saved_regs_id_unwind): New function.
764 * dummy-frame.c (dummy_frame_id_unwind): New function.
765 (struct dummy_frame): Add field id.
766 (generic_push_dummy_frame): Initialize `id'.
767 * dummy-frame.h (dummy_frame_id_unwind): Declare.
768
769 2002-12-13 Andrew Cagney <ac131313@redhat.com>
770
771 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
772 pass that to set_momentary_breakpoint. Move comments to where they
773 belong.
774 * frame.h (set_current_frame): Delete declaration.
775 * frame.c (set_current_frame): Delete function.
776
777 2002-12-13 Andrew Cagney <ac131313@redhat.com>
778
779 * frame.c (frame_extra_info_zalloc): New function.
780 * frame.h (frame_extra_info_zalloc): Declare.
781
782 2002-12-13 Joel Brobecker <brobecker@gnat.com>
783
784 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
785 in the previous prototype change to set_momentary_breakpoint.
786
787 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
788
789 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
790 and saw_child_exec.
791 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
792 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
793 (stop_stepping): Remove outdated check for child vfork events.
794
795 2002-12-12 Andrew Cagney <ac131313@redhat.com>
796
797 * GDB 5.3 released from gdb_5_3-branch.
798
799 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
800
801 * corelow.c (init_core_ops): Delete references to to_require_attach
802 and to_require_detach.
803 * exec.c (init_exec_ops): Likewise.
804 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
805 hppa_require_detach directly.
806 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
807 * inftarg.c (child_detach): Remove.
808 (child_detach_from_process): Rename to child_detach, remove
809 after_fork argument.
810 (child_attach): Remove.
811 (child_attach_to_process): Rename to child_attach, remove after_fork
812 argument.
813 (init_child_ops): Delete references to to_require_attach
814 and to_require_detach.
815 * infttrace.c (hppa_require_attach): Update comment.
816 * target.c (cleanup_target, update_current_target)
817 (init_dummy_target, setup_target_debug): Delete references to
818 to_require_attach and to_require_detach.
819 (find_default_require_detach, find_default_require_attach)
820 (debug_to_require_attach, debug_to_require_detach): Remove
821 functions.
822 * target.h (struct target_ops): Remove to_require_attach
823 and to_require_detach.
824 (target_require_attach, target_require_detach): Delete macros.
825 (find_default_require_detach, find_default_require_attach): Delete
826 prototypes.
827 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
828
829 2002-12-11 Andrew Cagney <ac131313@redhat.com>
830
831 * frame.c (get_frame_extra_info): New function.
832 * frame.h (get_frame_extra_info): Declare.
833
834 2002-12-11 Andrew Cagney <ac131313@redhat.com>
835
836 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
837 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
838 with `struct frame_id'.
839 (set_longjmp_resume_breakpoint): Ditto.
840 * infrun.c (handle_inferior_event): Update.
841 * breakpoint.c (watch_command_1, until_break_command): Update.
842 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
843 (handle_inferior_event, step_over_function): Update.
844 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
845 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
846 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
847 * infcmd.c (finish_command, run_stack_dummy): Update.
848
849 2002-12-11 Kevin Buettner <kevinb@redhat.com>
850
851 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
852 (dwarf2_non_const_array_bound_ignored)
853 (dwarf2_missing_line_number_section)
854 (dwarf2_statement_list_fits_in_line_number_section)
855 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
856 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
857 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
858 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
859 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
860 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
861 (dwarf2_missing_member_fn_type_complaint)
862 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
863 (dwarf2_const_value_length_mismatch)
864 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
865 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
866 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
867 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
868 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
869 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
870 complaints using deprecated struct..
871 (dwarf2_non_const_array_bound_ignored_complaint)
872 (dwarf2_complex_location_expr_complaint)
873 (dwarf2_unsupported_at_frame_base_complaint)
874 (dwarf2_const_value_length_mismatch_complaint)
875 (dwarf2_macros_too_long_complaint)
876 (dwarf2_macro_malformed_definition_complaint)
877 (dwarf2_invalid_attrib_class_complaint): New functions.
878 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
879 (read_structure_scope, read_array_type, read_common_block)
880 (read_tag_pointer_type, read_base_type, read_partial_die)
881 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
882 (new_symbol, dwarf2_const_value, read_type_die)
883 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
884 (parse_macro_definition, dwarf_decode_macros): Replace calls to
885 complain() with, possibly indirect, calls to complaint().
886
887 2002-12-11 Andrew Cagney <cagney@redhat.com>
888
889 * frame.c (deprecated_get_frame_saved_regs): Rename
890 get_frame_saved_regs.
891 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
892 * sparc-tdep.c: Update.
893 * hppa-tdep.c: Update.
894 * h8500-tdep.c: Update.
895
896 2002-12-11 Kevin Buettner <kevinb@redhat.com>
897
898 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
899 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
900 ``char *'' for return and parameter types.
901 * gdbarch.h, gdbarch.c: Regenerate.
902 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
903 return type from ``char *'' to ``const char *''.
904 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
905 const.
906
907 2002-12-11 Mark Kettenis <kettenis@gnu.org>
908
909 * i386-tdep.c: Include "dummy-frame.h".
910 (i386_frame_chain, i386_frame_saved_pc): Replace
911 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
912 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
913
914 2002-12-10 Andrew Cagney <cagney@redhat.com>
915
916 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
917 Change to a function with predicate.
918 * gdbarch.h, gdbarch.c: Re-generate.
919 * frame.c (get_prev_frame): Update. Test
920 DEPRECATED_INIT_FRAME_PC_P.
921 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
922 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
923 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
924 * alpha-tdep.c (alpha_gdbarch_init): Update.
925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
926 * mips-tdep.c (mips_gdbarch_init): Update.
927 * i386-interix-tdep.c (i386_interix_init_abi): Update.
928 * arm-tdep.c: Update comments.
929 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
930 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
931 * frv-tdep.c (frv_gdbarch_init): Ditto.
932 * x86-64-tdep.c (x86_64_init_abi): Ditto.
933 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
934 * s390-tdep.c (s390_gdbarch_init): Ditto.
935 * v850-tdep.c (v850_gdbarch_init): Ditto.
936 * vax-tdep.c (vax_gdbarch_init): Ditto.
937 * sh-tdep.c (sh_gdbarch_init): Ditto.
938 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
940 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
942 * i386-tdep.c (i386_gdbarch_init): Ditto.
943 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
944 * cris-tdep.c (cris_gdbarch_init): Ditto.
945 * avr-tdep.c (avr_gdbarch_init): Ditto.
946 * arm-tdep.c (arm_gdbarch_init): Ditto.
947 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
948 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
949
950 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
951
952 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
953 CHILD_FOLLOW_FORK.
954 * hppah-nat.c (saved_vfork_pid): Add.
955 (child_post_follow_vfork): Remove.
956 (child_follow_fork): New function.
957 (child_wait): Call detach_breakpoints after receiving the child vfork.
958 Call child_resume directly instead of going through resume ().
959 Make sure we have the exec before reporting the vfork.
960 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
961 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
962 (follow_fork): New function. Call target_follow_fork.
963 (follow_inferior_reset_breakpoints): New function broken out from
964 old follow_inferior_fork.
965 (resume): Remove hack to follow exec after vfork.
966 * inftarg.c (child_post_follow_vfork): Remove.
967 (child_follow_fork): New function.
968 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
969 * target.c (cleanup_target): Replace to_post_follow_vfork with
970 to_follow_fork.
971 (update_current_target): Likewise.
972 (setup_target_debug): Likewise.
973 (debug_to_post_follow_vfork): Remove.
974 (debug_to_follow_fork): New function.
975 * target.h (struct target_ops): Replace to_post_folow_vfork with
976 to_follow_fork.
977 (child_post_follow_vfork): Remove prototype.
978 (child_follow_fork): Add prototype.
979 (target_post_follow_vfork): Remove macro.
980 (target_follow_fork): Add macro.
981
982 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
983
984 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
985 (child_post_follow_vfork): Cancel pending exec event if we follow
986 the parent.
987 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
988 events have been processed. Return a fake TARGET_WAITKIND_EXECD
989 event at the following wait call if necessary.
990 * infrun.c (follow_vfork): Don't follow_exec here.
991 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
992 case about HP/UX 10.20. Remove code pushed down to
993 hppah-nat.c:child_wait.
994 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
995 vfork_in_flight is set.
996
997 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
998
999 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1000 for the parent's fork event.
1001 * infrun.c (handle_inferior_event): Only expect one fork event.
1002 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1003 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1004
1005 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1006
1007 * PROBLEMS: Delete reference to PR gdb/725.
1008
1009 * MAINTAINERS (gdb.c++): Add David Carlton.
1010
1011 2002-12-09 David Carlton <carlton@math.stanford.edu>
1012
1013 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1014 * cli/cli-cmds.c: Ditto.
1015
1016 2002-12-09 Andrew Cagney <cagney@redhat.com>
1017
1018 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1019 function address in <>.
1020 * gdbarch.c: Re-generate.
1021
1022 2002-12-09 David Carlton <carlton@math.stanford.edu>
1023
1024 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1025
1026 2002-12-09 David Carlton <carlton@math.stanford.edu>
1027
1028 * linespec.c (symtab_from_filename): New function.
1029 (decode_line_1): Move code into symtab_from_filename.
1030
1031 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1032
1033 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1034
1035 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1036
1037 * f-valprint.c (info_common_command): Use get_frame_pc.
1038 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1039 * ax-gdb.c (agent_command): Ditto.
1040 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1041 (rs6000_pop_frame): Ditto.
1042 (rs6000_frameless_function_invocation): Ditto.
1043 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1044 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1045 * macroscope.c (default_macro_scope): Ditto.
1046 * stack.c (print_frame_info_base): Ditto.
1047 (print_frame, frame_info, print_frame_label_vars): Ditto.
1048 (return_command, func_command, get_frame_language): Ditto.
1049 * infcmd.c (finish_command): Ditto.
1050 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1051 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1052 (break_at_finish_at_depth_command_1): Ditto.
1053 (break_at_finish_command_1): Ditto.
1054 (until_break_command, get_catch_sals): Ditto.
1055 * blockframe.c (func_frame_chain_valid): Ditto.
1056 (frameless_look_for_prologue): Ditto.
1057 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1058
1059 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1060
1061 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1062 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1063
1064 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1065
1066 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1067 to pure functions.
1068 * gdbarch.h, gdbarch.c: Re-generate.
1069 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1070 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1071
1072 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1073 declaration to a function returning a CORE_ADDR.
1074 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1075 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1076 (init_frame_pc_default): Ditto.
1077 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1078 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1079 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1080 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1081 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1082 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1083
1084 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1085 to init_frame_pc_noop.
1086 (i386_interix_init_frame_pc): Delete function.
1087 * z8k-tdep.c (init_frame_pc): Delete function.
1088 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1089 (INIT_FRAME_PC_FIRST): Ditto.
1090 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1091 (INIT_FRAME_PC_FIRST): Ditto.
1092 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1093 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1094 init_frame_pc_noop.
1095 (INIT_FRAME_PC_FIRST): Convert to an expression.
1096 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1097
1098 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1099
1100 * blockframe.c: Use get_frame_base instead of directly accessing
1101 the `struct frame_info' member frame.
1102 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1103 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1104
1105 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1106
1107 * Makefile.in (readline_h): Define.
1108 (completer.o): Depend on readline_h.
1109 (corelow.o): Ditto.
1110 (event-top.o): Ditto.
1111 (exec.o): Ditto.
1112 (solib.o): Ditto.
1113 (source.o): Ditto.
1114 (symfile.o): Ditto.
1115 (symmisc.o): Ditto.
1116 (top.o): Ditto.
1117 (tracepoint.o): Ditto.
1118 (utils.o): Ditto.
1119 (cli-dump.o): Ditto.
1120 (tui-hooks.o): Ditto.
1121 (tuiWin.o): Ditto.
1122
1123 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1124
1125 More cleanup from import of readline 4.3.
1126 * completer.h (complete_line, readline_line_completion_function):
1127 Update prototypes.
1128 (line_completion_function): Removed, not used outside of completer.c.
1129 * completer.c (readline_line_completion_function,
1130 complete_function, line_completion_function): Use const for first
1131 parameter.
1132 (line_completion_function): Make static.
1133 (filename_completer): filename_completion_function is now called
1134 rl_filename_completion_function
1135 * corelow.c: Include <readline/readline.h>.
1136 * exec.c: Ditto.
1137 * solib.c: Ditto.
1138 * source.c: Ditto.
1139 * symfile.c: Ditto.
1140 * symmisc.c: Ditto.
1141 * top.c (init_main): No need to coerce
1142 readline_line_completion_function anymore.
1143 * cli/cli-dump.c: Include <readline/readline.h>.
1144
1145 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1146
1147 * stack.c (frame_info): Use get_prev_frame.
1148 * blockframe.c (frame_address_in_block): Ditto.
1149 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1150 (rs6000_frameless_function_invocation): Ditto.
1151 (rs6000_frame_saved_pc): Ditto.
1152 (rs6000_frame_chain): Ditto.
1153 * arch-utils.c (init_frame_pc_default): Ditto.
1154
1155 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1156
1157 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1158 Delete redundant definition.
1159
1160 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1161
1162 Import of readline 4.3:
1163 * cli/cli-cmds.c: Include readline/tilde.h.
1164 * cli/cli-setshow.c: Ditto.
1165 * defs.h: Don't declare tilde_expand anymore, since readline
1166 exports it.
1167
1168 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1169
1170 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1171 -Werror on this file.
1172
1173 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1174
1175 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1176 the format name.
1177 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1178 * gdbarch.c: Regenerate.
1179
1180 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1181
1182 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1183 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1184 provide a default value.
1185 * gdbarch.h, gdbarch.c: Regenerate.
1186 * frame.c (get_prev_frame): Update. Check
1187 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1188 * s390-tdep.c (s390_gdbarch_init): Update.
1189 * mips-tdep.c (mips_gdbarch_init): Update.
1190 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1191 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1192 * alpha-tdep.c (alpha_gdbarch_init): Update.
1193
1194 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1195
1196 * ia64-linux-nat.c: Include gdb_string.h.
1197 * alpha-nat.c: Ditto.
1198 * ppc-linux-nat.c: Ditto.
1199 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1200 Update dependencies.
1201
1202 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1203
1204 * gdbthread.h: Include "frame.h".
1205 (struct thread_info): Replace step_frame_address with
1206 step_frame_id.
1207 * inferior.h: Include "frame.h".
1208 (step_frame_id): Replace external variable step_frame_address.
1209 * gdbthread.h (save_infrun_state): Replace step_frame_address
1210 parameter with step_frame_id parameter.
1211 (load_infrun_state): Ditto.
1212 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1213 * infcmd.c (step_frame_id, step_1, step_once): Update.
1214 * thread.c (load_infrun_state, save_infrun_state): Update.
1215 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1216 (handle_inferior_event, step_over_function): Update.
1217 (normal_stop, context_switch, restore_inferior_status): Update.
1218 (struct inferior_status): Replace step_frame_address with
1219 step_frame_id.
1220
1221 2002-12-05 David Carlton <carlton@math.stanford.edu>
1222
1223 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1224 DW_TAG_member as well as a declaration as being a C++ static data
1225 member.
1226 (read_structure_scope): Combine tests for DW_TAG_member and
1227 DW_TAG_variable.
1228
1229 2002-12-05 David Carlton <carlton@math.stanford.edu>
1230
1231 * linespec.c (decode_compound): New function.
1232 (decode_line_1): Move code into decode_compound.
1233
1234 2002-12-05 David Carlton <carlton@math.stanford.edu>
1235
1236 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1237 argument.
1238 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1239 the static block. See PR gdb/804.
1240
1241 2002-12-05 David Carlton <carlton@math.stanford.edu>
1242
1243 * symtab.c (lookup_symbol_aux_block): New function.
1244 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1245
1246 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1247
1248 * gdbarch.sh: Dump the predicate function and macro values.
1249 (read): Print error on standard error.
1250 * gdbarch.c: Regenerate.
1251
1252 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1253
1254 * Makefile.in (mips_tdep_h): Define.
1255 (mips-tdep.o): Add mips_tdep_h to dependency list.
1256 * mips-tdep.h: New file.
1257 * mips-tdep.c (mips-tdep.h): Include.
1258 (enum mips_abi): Move to mips-tdep.h.
1259 (mips_abi): New function.
1260
1261 2002-12-04 David Carlton <carlton@math.stanford.edu>
1262
1263 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1264
1265 2002-12-04 David Carlton <carlton@math.stanford.edu>
1266
1267 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1268 function.
1269 (lookup_symbol_aux_minsyms): New function.
1270
1271 2002-12-04 J. Brobecker <brobecker@gnat.com>
1272
1273 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1274
1275 2002-12-04 J. Brobecker <brobecker@gnat.com>
1276
1277 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1278 which is an obsolete macro name.
1279
1280 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1281
1282 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1283 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1284
1285 2002-12-03 H.J. Lu (hjl@gnu.org)
1286
1287 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1288 (create_breakpoints): Make sure the addr_string field is not
1289 NULL.
1290
1291 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1292
1293 * sparc-nat.c (fetch_inferior_registers)
1294 (store_inferior_registers): Add comment on problem of LWP vs
1295 threads.
1296
1297 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1298 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1299 (lin_lwp_store_registers): Remove.
1300 (init_lin_lwp_ops): Use fetch_inferior_registers
1301 and store_inferior_registers directly.
1302 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1303 (store_inferior_registers): Likewise.
1304 Fix PR gdb/725.
1305
1306 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1307
1308 * frame.h (get_frame_id): Convert to a function.
1309 (null_frame_id, frame_id_p): Declare.
1310 (frame_id_eq, frame_id_inner): Declare.
1311 (frame_id_build): New function.
1312 * frame.c (get_frame_id): Update. Use null_frame_id.
1313 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1314 frame_id_inner.
1315 (null_frame_id, frame_id_p): Define.
1316 (frame_id_eq, frame_id_inner): Define.
1317 (frame_id_build): New function.
1318 * varobj.c (varobj_create): Update.
1319 (varobj_update): Update.
1320 * valops.c (value_assign): Update.
1321 (new_root_variable): Update.
1322 * infrun.c (save_inferior_status): Update.
1323 * breakpoint.c (watch_command_1): Update.
1324
1325 2002-12-03 J. Brobecker <brobecker@gnat.com>
1326
1327 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1328 (SNAP2): Likewise.
1329
1330 2002-12-03 Andrew Cagney <cagney@redhat.com>
1331
1332 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1333 patch.
1334
1335 * PROBLEMS: Mention PR gdb/725.
1336
1337 2002-12-03 Andreas Schwab <schwab@suse.de>
1338
1339 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1340
1341 2002-12-02 Adam Fedor <fedor@gnu.org>
1342 Klee Dienes <kdienes@apple.com>
1343
1344 * objc-lang.c (objc_printstr): Add width arg to match
1345 printstr prototype.
1346 (compare_selectors): Add 'const' to arg types.
1347 (compare_classes): Likewise.
1348 (find_imps): Cast msym pointer to avoid compiler warning.
1349 (print_object_command): Validate the address before
1350 passing it to the print routine.
1351 (find_objc_msgcall_submethod): Change function argument to
1352 return an int.
1353 * objc-lang.h: Add 'extern' to all function declarations.
1354 (value_nsstring): Add declaration.
1355
1356 2002-12-02 J. Brobecker <brobecker@gnat.com>
1357
1358 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1359 Fixes a build failure on HP/UX.
1360
1361 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1362 failure on HP/UX.
1363 (hpread_has_name): Advance declaration to avoid a compilation warning.
1364 (pst_syms_count): Add missing variable type. By change, the compiler
1365 was defaulting to int, which seems a good choice. Fixes a compilation
1366 warning.
1367 (pst_syms_size): Likewise.
1368
1369 2002-12-02 J. Brobecker <brobecker@gnat.com>
1370
1371 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1372 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1373 later to set the proper gdbarch methods depending on the osabi.
1374 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1375
1376 2002-12-02 J. Brobecker <brobecker@gnat.com>
1377
1378 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1379 * osabi.c (gdb_osabi_name): Add strings images for the two new
1380 enum values.
1381 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1382
1383 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1384
1385 * MAINTAINERS (Java): Global maintainers are responible for Java.
1386 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1387 part Java maintainers.
1388
1389 2002-12-02 J. Brobecker <brobecker@gnat.com>
1390
1391 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1392 Fixes a compilation failure on AiX.
1393
1394 2002-12-02 J. Brobecker <brobecker@gnat.com>
1395
1396 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1397 why aix-thread.o is not listed.
1398
1399 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1400
1401 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1402 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1403 * gdbarch.h, gdbarch.c: Re-generate.
1404 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1405 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1406 * config/pa/tm-hppa.h, frame.h: Update.
1407 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1408 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1409 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1410 * cris-tdep.c, alpha-tdep.c: Update.
1411 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1412 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1413 (get_prev_frame): Ditto.
1414
1415 2002-11-30 Andrew Cagney <cagney@redhat.com>
1416
1417 * exec.c (xfer_memory): Replace boolean with int.
1418 * p-exp.y: Use 0 instead of false.
1419 * corelow.c (gdb_check_format): Change return type to int from
1420 boolean.
1421 * utils.c: Don't include <curses.h> or <term.h> first.
1422
1423 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1424
1425 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1426 (m68hc11_register_byte): Remove.
1427 (m68hc11_gdbarch_init): Don't set the above.
1428
1429 2002-11-29 Andrew Cagney <cagney@redhat.com>
1430
1431 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1432 by calling get_selected_frame.
1433 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1434 set_current_frame, create_new_frame, select_frame and
1435 get_current_frame.
1436 * remote-e7000.c (e7000_start_remote): Ditto.
1437 * remote-mips.c (common_open): Ditto
1438 * remote-rdp.c (remote_rdp_open): Ditto.
1439
1440 2002-11-29 Andreas Schwab <schwab@suse.de>
1441
1442 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1443 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1444 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1445 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1446 read_memory_unsigned_integer instead of read_memory_integer when
1447 dealing with addresses and instruction opcodes.
1448 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1449 (m68k_linux_frame_saved_pc): Likewise.
1450
1451 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1452
1453 * stack.c (selected_frame, select_frame): Move from here ...
1454 * frame.c (selected_frame, select_frame): ... to here. Include
1455 "language.h".
1456 * Makefile.in (frame.o): Update dependencies.
1457 * frame.c (get_selected_frame): New function.
1458 * frame.h (get_selected_frame): Declare.
1459 (deprecated_selected_frame): Rename selected_frame.
1460 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1461 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1462 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1463 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1464 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1465 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1466 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1467 * z8k-tdep.c, cli/cli-cmds.c: Update.
1468
1469 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1470
1471 * frame.h (get_selected_block): Add comments.
1472
1473 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1474
1475 * frame.c (pc_notcurrent): New function.
1476 (find_frame_sal): New function.
1477 * frame.h (find_frame_sal): Declare.
1478 (struct symtab_and_line): Add opaque declaration.
1479 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1480 find_pc_line.
1481 (frame_info): Ditto.
1482 * ada-lang.c (find_printable_frame): Ditto.
1483
1484 2002-11-28 J. Brobecker <brobecker@gnat.com>
1485
1486 * configure.in: Check that the pthdebug library is recent enough
1487 before enabling thread support on native AiX.
1488 * configure: Regenerate.
1489
1490 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1491 from the list of object files as it is now appended by configure
1492 if thread support is enabled.
1493 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1494 if thread support is enabled.
1495
1496 2002-11-28 Andrew Cagney <cagney@redhat.com>
1497
1498 * stack.c (get_selected_block): In-line get_current_block.
1499 * frame.h (get_current_block): Delete declaration.
1500 * blockframe.c (get_current_block): Delete function.
1501
1502 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1503
1504 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1505 USE_GENERIC_DUMMY_FRAMES.
1506 * gdbarch.h, gdbarch.c: Regenerate.
1507 * valops.c, frame.c: Update.
1508 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1509 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1510 * config/pa/tm-hppa.h, blockframe.c: Update.
1511 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1512 * m68k-tdep.c, alpha-tdep.c: Ditto.
1513
1514 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1515 * mips-tdep.c: Ditto.
1516
1517 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1518
1519 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1520 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1521 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1522 * gdbarch.c, gdbarch.h: Re-generate.
1523 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1524 (CALL_DUMMY_LOCATION): Delete macro definition.
1525 (PC_IN_CALL_DUMMY): Delete macro definitions.
1526
1527 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1528 default is already generic_pc_in_call_dummy.
1529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1530 * v850-tdep.c (v850_gdbarch_init): Ditto.
1531 * sh-tdep.c (sh_gdbarch_init): Ditto.
1532 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1533 * mips-tdep.c (mips_gdbarch_init): Ditto.
1534 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1535 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1536 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1537 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1538 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1539 * avr-tdep.c (avr_gdbarch_init): Ditto.
1540
1541 * arm-tdep.c (arm_gdbarch_init): Do not set
1542 use_generic_dummy_frames, default is already 1.
1543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1544 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1545 * v850-tdep.c (v850_gdbarch_init): Ditto.
1546 * sh-tdep.c (sh_gdbarch_init): Ditto.
1547 * s390-tdep.c (s390_gdbarch_init): Ditto.
1548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1549 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1550 * mips-tdep.c (mips_gdbarch_init): Ditto.
1551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1553 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1554 * i386-tdep.c (i386_gdbarch_init): Ditto.
1555 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1556 * frv-tdep.c (frv_gdbarch_init): Ditto.
1557 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1558 * cris-tdep.c (cris_gdbarch_init): Ditto.
1559 * avr-tdep.c (avr_gdbarch_init): Ditto.
1560
1561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1562 call_dummy_location, default is already AT_ENTRY_POINT.
1563 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1564 * v850-tdep.c (v850_gdbarch_init): Ditto.
1565 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1566 * sh-tdep.c (sh_gdbarch_init): Ditto.
1567 * s390-tdep.c (s390_gdbarch_init): Ditto.
1568 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1569 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1570 * mips-tdep.c (mips_gdbarch_init): Ditto.
1571 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1574 * i386-tdep.c (i386_gdbarch_init): Ditto.
1575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1576 * frv-tdep.c (frv_gdbarch_init): Ditto.
1577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1578 * cris-tdep.c (cris_gdbarch_init): Ditto.
1579 * avr-tdep.c (avr_gdbarch_init): Ditto.
1580 * arm-tdep.c (arm_gdbarch_init): Ditto.
1581 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1582
1583 2002-11-28 Andrew Cagney <cagney@redhat.com>
1584
1585 * frame.h: Update comments on set_current_frame, create_new_frame,
1586 flush_cached_frames, reinit_frame_cache, select_frame and
1587 selected_frame.
1588
1589 2002-11-27 Andrew Cagney <cagney@redhat.com>
1590
1591 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1592 deprecated pc_in_call_dummy function.
1593 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1594 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1595 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1596 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1597 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1598
1599 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1600
1601 * Makefile.in: Remove Tix dependencies.
1602 * acinclude.m4: Ditto.
1603 * aclocal.m4: Ditto.
1604 * configure.in: Ditto.
1605 * configure: Regenerated.
1606
1607 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1608
1609 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1610 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1611 * gdbarch.c: Re-generate.
1612
1613 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1614
1615 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1616 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1617 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1618 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1619 pc_in_call_dummy_at_entry_point.
1620 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1621 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1622 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1623 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1624 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1625 pc_in_call_dummy_on_stack.
1626 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1627 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1628 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1629 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1630 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1631
1632 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1633
1634 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1635 pc_in_call_dummy_before_text_end
1636 (deprecated_pc_in_call_dummy_after_text_end): Rename
1637 pc_in_call_dummy_after_text_end.
1638 (deprecated_pc_in_call_dummy_on_stack): Rename
1639 pc_in_call_dummy_on_stack.
1640 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1641 pc_in_call_dummy_at_entry_point.
1642 * m68k-tdep.c (m68k_gdbarch_init): Update.
1643 * s390-tdep.c (s390_gdbarch_init): Update.
1644 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1645 * vax-tdep.c (vax_gdbarch_init): Update.
1646 * sparc-tdep.c (sparc_gdbarch_init): Update.
1647 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1648 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1649 * i386-tdep.c (i386_gdbarch_init): Update.
1650 * frv-tdep.c (frv_gdbarch_init): Update.
1651 * cris-tdep.c (cris_gdbarch_init): Update.
1652 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1653 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1654 (deprecated_pc_in_call_dummy_after_text_end)
1655 (deprecated_pc_in_call_dummy_on_stack)
1656 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1657 * alpha-tdep.c (alpha_gdbarch_init): Update.
1658
1659 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1660
1661 * acconfig.h (HAVE_PREAD64): Add.
1662 * configure.in: Check for pread64.
1663 * config.in: Regenerated.
1664 * configure: Regenerated.
1665 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1666 * linux-proc.c (linux_proc_xfer_memory): New function.
1667 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1668
1669 2002-11-25 David Carlton <carlton@math.stanford.edu>
1670
1671 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1672 pdi's with no name.
1673
1674 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1675
1676 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1677 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1678
1679 2002-11-25 Jim Blandy <jimb@redhat.com>
1680
1681 * symfile.c (init_objfile_sect_indices): New function.
1682 (default_symfile_offsets): Move the section-index-initializing
1683 stuff into init_objfile_sect_indices, and call that.
1684
1685 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1686 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1687
1688 * symfile.c (syms_from_objfile): Adjust indentation.
1689
1690 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1691 || info_verbose isn't true.
1692
1693 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1694
1695 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1696 default to get_frame_base.
1697 * gdbarch.h, gdbarch.c: Regenerate.
1698 * arch-utils.c (default_frame_address): Delete function.
1699 * arch-utils.h (default_frame_address): Delete declaration
1700
1701 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1702
1703 * varobj.c (find_frame_addr_in_frame_chain):
1704 Use get_frame_base instead of FRAME_FP,
1705 obvious fix.
1706
1707 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1708
1709 * frame.h (FRAME_FP): Delete macro.
1710 (get_frame_base): New function declaration.
1711 * frame.c (get_frame_base): New function.
1712 (get_frame_id): Use ->frame.
1713 (frame_find_by_id): Rewrite to use get_frame_id.
1714 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1715 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1716 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1717 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1718 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1719 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1720 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1721
1722 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1723
1724 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1725
1726 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1727
1728 * frame.c (set_unwind_by_pc): Revert change below, use
1729 PC_IN_CALL_DUMMY.
1730 (get_prev_frame): Ditto.
1731
1732 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1733
1734 * dummy-frame.c (pc_in_dummy_frame): New function.
1735 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1736 (find_dummy_frame): Update comment.
1737 (generic_pop_current_frame): Use get_frame_type.
1738 * dummy-frame.h (pc_in_dummy_frame): Declare.
1739 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1740 (create_new_frame): Use pc_in_dummy_frame.
1741 (get_prev_frame): Use pc_in_dummy_frame.
1742 (frame_saved_regs_register_unwind): Use get_prev_frame.
1743 (deprecated_generic_get_saved_register): Use get_prev_frame.
1744
1745 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1746
1747 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1748 from here ...
1749 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1750 (varobj_create): Note that frame ID should be used.
1751 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1752
1753 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1754
1755 * breakpoint.c: Include "gdb_assert.h".
1756 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1757 not being used.
1758 * Makefile.in (breakpoint.o): Update dependencies.
1759 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1760 deprecated_frame_in_dummy.
1761 * stack.c (print_frame_info_base): Ditto.
1762 (frame_info): Ditto.
1763 (print_frame_info_base): Ditto. Delete dead code.
1764
1765 2002-11-23 Andreas Schwab <schwab@suse.de>
1766
1767 * Makefile.in (m68k_tdep_h): Define.
1768 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1769 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1770 * m68k-tdep.c: Move register number enum ...
1771 * m68k-tdep.h: ... to this new file and rename the constants from
1772 E_* to M68K_*. All uses changed.
1773 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1774 * abug-rom.c: Include "m68k-tdep.h". Use
1775 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1776 * cpu32bug-rom.c: Likewise.
1777 * dbug-rom.c: Likewise.
1778 * m68k-tdep.c: Likewise.
1779 * m68klinux-nat.c: Likewise.
1780 * remote-est.c: Likewise.
1781 * rom68k-rom.c: Likewise.
1782 * config/m68k/tm-linux.h: Likewise.
1783
1784 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1785
1786 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1787 dummy frame initialization code.
1788 * mips-tdep.c (mips_gdbarch_init): Ditto.
1789
1790 2002-11-22 Christopher Faylor <cgf@redhat.com>
1791
1792 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1793 attach will hang.
1794
1795 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1796
1797 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1798 to default_frame_address.
1799 * gdbarch.h, gdbarch.c: Re-generate.
1800
1801 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1802 or frame_locals_address to default_frame_address.
1803 * m68k-tdep.c (m68k_gdbarch_init): Update.
1804 * i386-tdep.c (i386_gdbarch_init): Update.
1805 * frv-tdep.c (frv_gdbarch_init): Update.
1806 * sh-tdep.c (sh_gdbarch_init): Update.
1807 * v850-tdep.c (v850_gdbarch_init): Update.
1808 * sparc-tdep.c (sparc_gdbarch_init): Update.
1809 * mips-tdep.c (mips_gdbarch_init): Update.
1810 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1811 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1812 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1813
1814 * cris-tdep.c (cris_frame_args_address): Delete function.
1815 (cris_frame_locals_address): Delete function.
1816 (cris_gdbarch_init): Do not set frame_args_address or
1817 frame_locals_address.
1818
1819 2002-11-22 Michael Snyder <msnyder@redhat.com>
1820
1821 * thread-db.c (thread_db_load): Tell the user what's going on
1822 if dlopen fails on libthread_db.
1823
1824 2002-11-23 Andreas Schwab <schwab@suse.de>
1825
1826 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1827 invariant return values.
1828
1829 2002-11-22 Andreas Schwab <schwab@suse.de>
1830
1831 * valops.c (value_slice): Move declaration of `offset' to avoid
1832 warning.
1833
1834 2002-11-22 Christopher Faylor <cgf@redhat.com>
1835
1836 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1837 (struct so_stuff): Add end_addr field.
1838 (register_loaded_dll): Calculate and store end address of loaded dll.
1839 (solib_address): New function.
1840 (child_solib_loaded_library_pathname): Pass carefully constructed
1841 section info to safe_symbol_file_add rather than ignoring it.
1842 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1843 DLL is loaded.
1844 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1845 (child_create_inferior): Fix a compiler warning.
1846 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1847 (solib_address): Declare new function.
1848
1849 2002-11-22 Andreas Schwab <schwab@suse.de>
1850
1851 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1852 and FPS registers.
1853
1854 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1855
1856 * maint.c (_initialize_maint_cmds): Fix typo. From
1857 Francesco Potorti` <pot@gnu.org>.
1858
1859 2002-11-21 Andrew Cagney <cagney@redhat.com>
1860
1861 * mips-tdep.c (mips_dump_tdep): Delete references to
1862 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1863 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1864 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1865 * printcmd.c (build_address_symbolic): Delete calls to
1866 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1867 (address_info): Ditto.
1868 Fix PR gdb/773.
1869
1870 2002-11-19 Klee Dienes <kdienes@apple.com>
1871 Adam Fedor <fedor@gnu.org>
1872
1873 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1874 the ability to explicitly specify the quote characters and word
1875 break characters; if NULL is specified for either, use the old
1876 behavior of using the characters used by the completer.
1877 (skip_chars): New function. Convenience wrapper around
1878 skip_quoted_chars to provide the original skip_chars behavior.
1879 * completer.h (skip_quoted_chars): Add prototype.
1880
1881 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1882
1883 Problems reported by Paul Eggert.
1884 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1885
1886 2002-11-19 Andreas Schwab <schwab@suse.de>
1887
1888 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1889 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1890 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1891 (m68k_linux_frame_saved_pc): Move to ...
1892 * m68klinux-tdep.c: ... here. New file.
1893 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1894 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1895
1896 2002-11-19 Adam Fedor <fedor@gnu.org>
1897
1898 * objc-exp.y: Revert to old skip_quoted usage.
1899
1900 2002-11-19 Adam Fedor <fedor@gnu.org>
1901
1902 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1903 (objc_lang_h): Define.
1904 (YYFILES): Add objc-exp.tab.c.
1905 (local-maintainer-clean): Remove objc-exp.tab.c.
1906 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1907
1908 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1909
1910 * p-exp.y (typecast rule): Add automatic dereference of
1911 pascal classes if needed.
1912 (THIS): Set current_type.
1913 Automatically dereference pascal classes.
1914 (typebase rule): Add ^typebase recognition.
1915
1916 2002-11-18 Adam Fedor <fedor@gnu.org>
1917
1918 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1919 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1920 (op_name): Handle OP_OBJC_SELF.
1921 * Makefile.in (expprint.o): Add additional depends.
1922
1923 2002-11-18 Adam Fedor <fedor@gnu.org>
1924
1925 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1926 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1927 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1928 * objc-exp.y: Likewise.
1929
1930 2002-11-18 Adam Fedor <fedor@gnu.org>
1931
1932 * gdb/parser-defs.h: (struct objc_class_str): New structure
1933 for parsing ObjC classes.
1934
1935 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1936
1937 * stack.c (frame_relative_level): Copy function from here ...
1938 * frame.c (frame_relative_level): ...to here.
1939
1940 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1941
1942 * frame.h (enum frame_type): Define.
1943 (get_frame_type): Declare.
1944 (struct frame_info): Add field `type'. Delete field
1945 signal_handler_caller.
1946 (deprecated_set_frame_signal_handler_caller): Declare.
1947 * frame.c (get_frame_type): New function.
1948 (deprecated_set_frame_type): New function.
1949 (create_new_frame): Set the frame's type.
1950 (get_prev_frame): Similar.
1951 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1952 * s390-tdep.c: Ditto.
1953 * m68klinux-nat.c: Ditto.
1954 * ns32k-tdep.c: Ditto.
1955 * x86-64-linux-tdep.c: Ditto.
1956 * vax-tdep.c: Ditto.
1957 * rs6000-tdep.c: Ditto.
1958 * ppc-linux-tdep.c: Ditto.
1959 * i386-interix-tdep.c: Ditto.
1960 * mips-tdep.c: Ditto.
1961 * m68k-tdep.c: Ditto.
1962 * hppa-tdep.c: Ditto.
1963 * ia64-tdep.c: Ditto.
1964 * cris-tdep.c: Ditto.
1965 * arm-tdep.c: Ditto.
1966 * alpha-tdep.c: Ditto.
1967 * i386-tdep.c: Ditto.
1968 * stack.c: Ditto.
1969 * ada-lang.c: Ditto.
1970 * blockframe.c: Update.
1971 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1972 deprecated_set_frame_type instead of signal_handler_caller.
1973 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1974 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1975 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1976
1977 2002-11-18 Klee Dienes <kdienes@apple.com>
1978
1979 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1980
1981 2002-11-18 Klee Dienes <kdienes@apple.com>
1982
1983 * buildsym.c (pop_context): Add comment.
1984
1985 2002-11-18 Klee Dienes <kdienes@apple.com>
1986
1987 * buildsym.h (pop_context): Convert to function, defined in
1988 buildsym.c.
1989 * buildsym.c: Include gdb_assert.h.
1990 (pop_context): Implement as C function. Add check for stack
1991 underflow.
1992 * dbxread.c (process_one_symbol): Complain and stop processing
1993 that symbol if we are already at the top of the context stack for
1994 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1995 when processing N_RBRAC.
1996
1997 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1998
1999 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2000 define.
2001 (struct target_waitstatus): Add opaque definition.
2002 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2003 * exec.c (init_exec_ops): Likewise.
2004 * fork-child.c (clone_and_follow_inferior): Remove.
2005 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2006 * inferior.h (clone_and_follow_inferior): Remove prototype.
2007 * infrun.c (follow_fork_mode_both): Remove.
2008 (follow_fork_mode_kind_names): Remove commented out "both".
2009 (follow_inferior_fork): Remove follow_fork_mode_both support.
2010 * inftarg.c (child_clone_and_follow_inferior): Remove.
2011 (child_post_follow_inferior_by_clone): Remove.
2012 (init_child_ops): Don't set to_clone_and_follow_inferior
2013 or to_post_follow_inferior_by_clone.
2014 * target.c (default_clone_and_follow_inferior): Remove.
2015 (cleanup_target): Don't set to_clone_and_follow_inferior
2016 or to_post_follow_inferior_by_clone.
2017 (find_default_clone_and_follow_inferior): Remove.
2018 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2019 (debug_to_clone_and_follow_inferior): Remove.
2020 (debug_to_post_follow_inferior_by_clone): Remove.
2021 (setup_target_debug): Don't set to_clone_and_follow_inferior
2022 or to_post_follow_inferior_by_clone.
2023 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2024 and to_post_follow_inferior_by_clone.
2025 (child_clone_and_follow_inferior): Remove prototype.
2026 (child_post_follow_inferior_by_clone): Remove prototype.
2027 (target_clone_and_follow_inferior): Remove macro.
2028 (target_post_follow_inferior_by_clone): Remove macro.
2029 (find_default_clone_and_follow_inferior): Remove prototype.
2030
2031 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2032
2033 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2034 inferior_has_vforked, and inferior_has_execd instead of
2035 target_has_forked, target_has_vforked, and target_has_execd.
2036 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2037 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2038 (CHILD_WAIT): Define.
2039 (child_wait): Add prototype.
2040 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2041 Add prototype.
2042 (hpux_has_vforked): Likewise, from child_has_vforked.
2043 (hpux_has_execd): Likewise, from child_has_execd.
2044 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2045 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2046 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2047 and hpux_has_syscall_event instead of the target hooks.
2048 * infrun.c (inferior_has_forked, inferior_has_vforked)
2049 (inferior_has_execd): New functions.
2050 * inftarg.c (not_same_real_pid): Remove.
2051 (child_wait): Remove references to not_same_real_pid,
2052 target_has_forked, target_has_vforked, target_has_execd,
2053 and target_has_syscall_event.
2054 (child_has_forked, child_has_vforked, child_has_execd)
2055 (child_has_syscall_event): Remove.
2056 (init_child_ops): Remove references to child_has_forked,
2057 child_has_vforked, child_has_execd, and child_has_syscall_event.
2058 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2059 (hpux_has_vforked): Likewise, from child_has_vforked.
2060 (hpux_has_execd): Likewise, from child_has_execd.
2061 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2062 * target.c (cleanup_target): Remove references to
2063 to_has_forked, to_has_vforked, to_has_execd, and
2064 to_has_syscall_event.
2065 (update_current_target): Likewise.
2066 (setup_target_debug): Likewise.
2067 (debug_to_has_forked): Remove.
2068 (debug_to_has_vforked): Remove.
2069 (debug_to_has_execd): Remove.
2070 (debug_to_has_syscall_event): Remove.
2071 * target.h (struct target_ops): Remove to_has_forked.
2072 to_has_vforked, to_has_execd, and to_has_syscall_event.
2073 (child_has_forked, child_has_vforked, child_has_execd)
2074 (child_has_syscall_event): Remove prototypes.
2075 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2076 prototypes.
2077 (target_has_forked, target_has_vforked, target_has_execd)
2078 (target_has_syscall_event): Remove macros.
2079
2080 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2081
2082 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2083 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2084 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2085 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2086 * target.c (cleanup_target): Remove reference to
2087 to_can_follow_vfork_prior_to_exec.
2088 (update_current_target): Likewise.
2089 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2090 (setup_target_debug): Remove reference to
2091 to_can_follow_vfork_prior_to_exec.
2092 * target.h (struct target_ops): Remove
2093 to_can_follow_vfork_prior_to_exec.
2094 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2095 (target_can_follow_vfork_prior_to_exec): Remove definition.
2096 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2097 define.
2098 * infrun.c (follow_vfork_when_exec): Remove.
2099 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2100 (follow_exec): Likewise.
2101 (handle_inferior_event): Likewise.
2102 (keep_going): Likewise.
2103
2104 2002-11-15 Andrew Cagney <cagney@redhat.com>
2105
2106 * frame.c (generic_unwind_get_saved_register): Make static.
2107 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2108 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2109 defaults to generic_unwind_get_saved_register.
2110 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2111 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2112 * frv-tdep.c (frv_gdbarch_init): Ditto.
2113 * i386-tdep.c (i386_gdbarch_init): Ditto.
2114 * s390-tdep.c (s390_gdbarch_init): Ditto.
2115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2116 * v850-tdep.c (v850_gdbarch_init): Ditto.
2117 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2118 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2119 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2120
2121 2002-11-15 Andrew Cagney <cagney@redhat.com>
2122
2123 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2124 i386-tdep.c.
2125
2126 2002-11-15 Andrew Cagney <cagney@redhat.com>
2127
2128 * frame.h (sigtramp_saved_pc): Delete declaration.
2129 * blockframe.c (sigtramp_saved_pc): Delete function.
2130 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2131 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2132 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2133 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2134
2135 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2136
2137 * frame.c (frame_pc_unwind): New function.
2138 (frame_saved_regs_pc_unwind): New function.
2139 (frame_register_unwind): Pass unwind_cache instead of
2140 register_unwind_cache.
2141 (set_unwind_by_pc): Add unwind_pc parameter, set.
2142 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2143 (get_prev_frame): Ditto.
2144 * frame.h (frame_pc_unwind_ftype): Declare.
2145 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2146 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2147 (frame_pc_unwind): Declare.
2148 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2149 (struct dummy_frame): Add comment mentioning that values are for
2150 previous frame.
2151 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2152 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2153 (generic_file_frame_chain_valid): Ditto.
2154 * stack.c (frame_info): Ditto.
2155
2156 2002-11-15 David Carlton <carlton@math.stanford.edu>
2157
2158 * linespec.c (locate_first_half): New function.
2159 (decode_line_1): Move code into locate_first_half.
2160
2161 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2162
2163 * complaints.h: Add comment explaining how to eliminate a
2164 deprecated_complain call.
2165 * complaints.h: Fix spelling errors.
2166
2167 2002-11-15 David Carlton <carlton@math.stanford.edu>
2168
2169 * printcmd.c: Remove #include "disasm.h".
2170
2171 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2172
2173 * frame.h: Move the most relevant interface functions to the start
2174 of the file.
2175
2176 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2177
2178 * regcache.h (deprecated_registers): Rename registers.
2179 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2180 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2181 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2182 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2183 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2184 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2185 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2186 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2187 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2188 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2189 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2190 * v850ice.c: Update.
2191
2192 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2193
2194 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2195 NULL buffer.
2196
2197 2002-11-13 Andrew Cagney <cagney@redhat.com>
2198
2199 * regcache.h (deprecated_read_register_bytes): Rename
2200 read_register_bytes.
2201 (deprecated_write_register_bytes): Rename write_register_bytes.
2202 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2203 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2204 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2205 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2206 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2207 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2208 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2209 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2210 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2211 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2212 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2213 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2214 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2215 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2216
2217 2002-11-13 Jim Blandy <jimb@redhat.com>
2218
2219 * findvar.c (read_var_value): Doc fix.
2220
2221 2002-11-13 Andrew Cagney <cagney@redhat.com>
2222
2223 * regcache.c (struct regcache): Replace passthough_p with
2224 readonly_p.
2225 (regcache_xmalloc): Initialize readonly_p.
2226 (build_regcache): Initialize readonly_p.
2227 (regcache_save): New function.
2228 (regcache_restore): New function.
2229 (regcache_cpy): Re-implement using regcache_save and
2230 regcache_restore.
2231 (regcache_raw_read): Update.
2232 (regcache_cooked_read): When a read-only cache, checked for cached
2233 pseudo register values.
2234 (regcache_raw_write): Assert that the cache is not read-only.
2235 Remove code handling a non-passthrough cache.
2236 * regcache.h (regcache_save): Declare.
2237 (regcache_restore): Declare.
2238
2239 2002-11-13 Andrew Cagney <cagney@redhat.com>
2240
2241 * regcache.c (struct regcache_descr): Add fields
2242 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2243 (init_legacy_regcache_descr): Compute the size of a cooked
2244 register cache and then assign that to sizeof_raw_registers. Set
2245 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2246 (init_legacy_regcache_descr): Ditto.
2247
2248 2002-11-13 Andrew Cagney <cagney@redhat.com>
2249
2250 * regcache.c (register_buffer): Move to near start of file, update
2251 description.
2252 (regcache_raw_read): Use.
2253 (regcache_raw_write): Use.
2254 (struct regcache): Rename raw_registers to registers and
2255 raw_register_valid_p to register_valid_p.
2256 (regcache_xmalloc): Update.
2257 (regcache_xfree): Update.
2258 (register_buffer): Update.
2259 (regcache_cpy): Update.
2260 (regcache_cpy_no_passthrough): Update.
2261 (regcache_valid_p): Update.
2262 (deprecated_grub_regcache_for_registers): Update.
2263 (deprecated_grub_regcache_for_register_valid): Update.
2264 (set_register_cached): Update.
2265 (regcache_raw_write): Update.
2266
2267 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2268
2269 * p-exp.y (name_not_typename): Use copy_name to
2270 set current_type variable for fields of THIS.
2271
2272 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2275 * monitor.c (init_base_monitor_ops): Likewise.
2276 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2277 * remote-array.c (init_array_ops): Likewise.
2278 * remote-e7000.c (init_e7000_ops): Likewise.
2279 * remote-es.c (init_es1800_ops): Likewise.
2280 (init_es1800_child_ops): Likewise.
2281 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2282 * remote-sim.c (init_gdbsim_ops): Likewise.
2283 * remote-st.c (init_st2000_ops): Likewise.
2284 * sol-thread.c (init_sol_core_ops): Likewise.
2285 (init_sol_thread_ops): Likewise.
2286 * v850ice.c (init_850ice_ops): Likewise.
2287 * win32-nat.c (init_child_ops): Likewise.
2288 * wince.c (init_child_ops): Likewise.
2289
2290 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2291
2292 * utils.c (gdb_realpath): Make rp a constant pointer.
2293
2294 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2295
2296 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2297 a constant buffer; cannonicalize_file_name(); realpath() with a
2298 pathconf() defined buffer, xstrdup().
2299
2300 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2301
2302 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2303 to hang2.C; hang3.c to hang3.C.
2304
2305 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2306
2307 * findvar.c (read_var_value): Reenable TLS code.
2308
2309 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2310 Jim Blandy <jimb@redhat.com>
2311
2312 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2313 * target.c (update_current_target): Add
2314 to_get_thread_local_address.
2315 * target.h (to_get_thread_local_address): Export.
2316 (target_get_thread_local_address): Define.
2317 (target_get_thread_local_address_p): Define.
2318 * thread-db.c: Include solib-svr4.h.
2319 (td_thr_tls_get_addr_p): Define.
2320 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2321 (thread_db_get_thread_local_address): New function.
2322 (init_thread_db_ops): Initialize to_get_thread_local_address.
2323 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2324 * configure: Regenerate.
2325 * config.in: Regenerate.
2326
2327 2002-11-11 David Carlton <carlton@math.stanford.edu>
2328
2329 * linespec.c (set_flags): New function.
2330 (decode_line_1): Move code into set_flags.
2331
2332 2002-11-11 David Carlton <carlton@math.stanford.edu>
2333
2334 * linespec.c (decode_line_1): Move chunks of code to separate
2335 functions.
2336 (initialize_defaults): New function.
2337 (decode_indirect): New function.
2338
2339 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2340
2341 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2342 instead of void_code_ptr.
2343 (sigtramp_saved_pc): Ditto.
2344
2345 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2346 i386_fp_regnum_p.
2347
2348 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2349
2350 * gdbtypes.h (struct main_type): Move artificial flag out of
2351 loc. New member of ``struct field'' named static_kind. Reduce
2352 overloaded meaning of bitsize.
2353 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2354 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2355 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2356
2357 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2358 new fields.
2359 (template_to_fixed_record_type, template_to_static_fixed_type)
2360 (to_record_with_fixed_variant_part): Likewise.
2361 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2362 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2363 * dwarfread.c (struct_type, enum_type): Likewise.
2364 * hpread.c (hpread_read_enum_type)
2365 (hpread_read_function_type, hpread_read_doc_function_type)
2366 (hpread_read_struct_type): Likewise.
2367 * mdebugread.c (parse_symbol): Likewise.
2368
2369 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2370
2371 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2372 * stack.c (print_frame_info_base): Update.
2373 (print_frame_info_base, frame_info): Update.
2374 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2375 (sparc_frame_saved_pc): Update.
2376 * ada-lang.c (find_printable_frame): Update.
2377 * breakpoint.c (deprecated_frame_in_dummy): Update.
2378
2379 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2380
2381 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2382 defined.
2383 (regmap): Extend to cover all registers.
2384 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2385 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2386 definitions.
2387 (fetch_register, sore_register): Simplify.
2388 (old_fetch_inferior_registers, old_store_inferior_registers):
2389 Remove functions.
2390 (cannot_fetch_register, cannot_store_register): Change
2391 implementation to use regmap array to decide which registers
2392 cannot be fetched/stored. This removes $orig_eax from the
2393 registers that cannot be fetched/stored.
2394 (fetch_inferior_registers): Call fetch_register directly instead
2395 of calling old_fetch_inferior_registers.
2396 (store_inferior_registers): Call store_register directly instead
2397 of calling old_store_inferior_registers.
2398 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2399 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2400 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2401
2402 2002-11-09 Klee Dienes <kdienes@apple.com>
2403
2404 * i387-tdep.c (i387_supply_register): When called with NULL as a
2405 buffer, mark the register as not provided (to mirror the behavior
2406 of supply_register).
2407 (i387_supply_fxsave): Ditto.
2408 (i387_supply_fsave): Ditto (inherits the behavior from
2409 i387_supply_register).
2410
2411 2002-11-09 Klee Dienes <kdienes@apple.com>
2412
2413 * blockframe.c (sigtramp_saved_pc): Use
2414 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2415 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2416 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2417
2418 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2419
2420 * frame.c (get_prev_frame): Test prev_p to identify a previously
2421 unwound frame. Initialize prev_p.
2422 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2423 comment.
2424
2425 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2426
2427 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2428 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2429 more comments. Zap dead code.
2430
2431 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2432
2433 * infcmd.c (print_vector_info, print_float_info): Move code that
2434 checks whether the target has any registers and whether there is a
2435 selected frame up, such that it is also used if a target provides
2436 multi-arch definitions of these functions.
2437
2438 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2439
2440 * Makefile.in (DESTDIR): Define.
2441 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2442 prefix.
2443
2444 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2445 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2446
2447 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2448
2449 * i386-linux-tdep.c: Include "reggroups.h".
2450 (i386_linux_register_reggroup_p): New function.
2451 (i386_linux_init_abi): Set register_reggroup_p to
2452 i386_linux_register_reggroup_p.
2453 * i386-tdep.h (i386_register_reggroup_p): Declare.
2454 * i386-tdep.c: Include "reggroups.h".
2455 (i386_init_reggroups): New function.
2456 (i386_add_reggroups): New function.
2457 (i386_register_reggroup_p): New function.
2458 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2459 (_initialize_i386_tdep): Call i386_init_reggroups.
2460 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2461 specific reggroups.
2462
2463 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2464
2465 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2466 request that's available in *BSD.
2467
2468 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2469
2470 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2471 FDOFF_REGNUM.
2472
2473 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2474
2475 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2476 * dummy-frame.c (find_dummy_frame): Rename
2477 generic_find_dummy_frame, make static. Return the dummy frame
2478 instead of the regcache.
2479 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2480 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2481 (dummy_frame_register_unwind): Rename
2482 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2483 * dummy-frame.h (dummy_frame_register_unwind): Rename
2484 generic_call_dummy_register_unwind.
2485
2486 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2487
2488 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2489 except the inclusion of "i386/tm-i386.h", to...
2490 * config/i386/nm-i386v42mp.h: ...here.
2491 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2492
2493 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2494
2495 * Makefile.in (frame.o): Update dependencies.
2496 * blockframe.c (current_frame, frame_obstack_alloc)
2497 (frame_saved_regs_zalloc, get_current_frame)
2498 (set_current_frame, create_new_frame)
2499 (set_unwind_by_pc, get_next_frame)
2500 (flush_cached_frames, reinit_frame_cache)
2501 (frame_saved_regs_register_unwind)
2502 (deprecated_generic_get_saved_register)
2503 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2504 (_initialize_blockframe): Move frame code from here...
2505 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2506 "annotate.h" and "dummy-frame.h".
2507 (_initialize_frame): New function.
2508
2509 2002-11-08 Jim Blandy <jimb@redhat.com>
2510
2511 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2512 when we finish a function a context.
2513 * buildsym.h (outermost_context_p): New macro.
2514 (Bug analyzed by David Edelsohn.)
2515
2516 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2517
2518 * blockframe.c: Include "dummy-frame.h".
2519 (struct dummy_frame, dummy_frame_stack)
2520 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2521 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2522 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2523 (generic_save_call_dummy_addr, generic_pop_current_frame)
2524 (generic_pop_dummy_frame, generic_fix_call_dummy)
2525 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2526 dummy frame code from here...
2527 * dummy-frame.c: ...to here. New file.
2528 * dummy-frame.h: New file.
2529 (generic_call_dummy_register_unwind): Declare.
2530 (generic_find_dummy_frame): Declare.
2531 * Makefile.in (SFILES): Add dummy-frame.c.
2532 (dummy-frame.o): Specify dependencies.
2533 (dummy_frame_h): Define.
2534 (COMMON_OBS): Add dummy-frame.o.
2535 (blockframe.o): Update dependencies.
2536
2537 2002-11-08 Jim Blandy <jimb@redhat.com>
2538
2539 * dwarf2read.c (read_func_scope): Restore local_symbols and
2540 param_symbols after we finish the function context. (Based on a
2541 patch from David Edelsohn.)
2542
2543 2002-11-08 David Carlton <carlton@math.stanford.edu>
2544
2545 * linespec.c (symbol_found): New function.
2546 (minsym_found): New function.
2547 (decode_line_1): Separate out some code into separate functions.
2548
2549 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2550
2551 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2552 the benefit of the interix target.
2553 * i386-tdep.h (i386_frameless_signal_p): Declare.
2554
2555 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2556
2557 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2558 declaration that snuck in from change below.
2559
2560 2002-11-06 Andrew Cagney <cagney@redhat.com>
2561
2562 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2563 all callers.
2564 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2565 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2566 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2567 (i386_mxcsr_regnum_p): new function. Use instead of
2568 MXCSR_REGNUM_P.
2569 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2570 (i386_sse_regnum_p): Declare.
2571 (i386_mxcsr_regnum_p): Declare.
2572 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2573 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2574 (IS_FP_REGNUM): Update definition.
2575 (IS_FPU_CTRL_REGNUM): Update definition..
2576 (IS_SSE_REGNUM): Update definition..
2577 * i386v-nat.c (register_u_addr): Update.
2578 * go32-nat.c (fetch_register): Update.
2579 (store_register): Update.
2580
2581 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2582
2583 Preparation work to convert the hppa targets to multiarch partial.
2584
2585 * hppa-tdep.c: Add new functions replacing macro bodies from
2586 config/pa/tm-hppa.h. These function will be used to initialize
2587 the gdbarch structure. Import some comments from tm-hppa.h,
2588 and place them where appropriate, to avoid loosing them when
2589 we cleanup this file.
2590 (hppa_reg_struct_has_addr): New function.
2591 (hppa_inner_than): New function.
2592 (hppa_stack_align): New function.
2593 (hppa_pc_requires_run_before_use): New function.
2594 (hppa_instruction_nullified): New function.
2595 (hppa_register_byte): New function.
2596 (hppa_register_virtual_type): New function.
2597 (hppa_store_struct_return): New function.
2598 (hppa_cannot_store_register): New function.
2599 (hppa_frame_args_address): New function.
2600 (hppa_frame_locals_address): New function.
2601 (hppa_smash_text_address): New function.
2602 (hppa_coerce_float_to_double): New function. Requires the inclusion
2603 of "language.h".
2604
2605 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2606
2607 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2608 gdbarch-eligible macro to a call to the new associated function
2609 created in hppa-tdep.c.
2610 (INNER_THAN): Likewise.
2611 (STACK_ALIGN): Likewise.
2612 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2613 (INSTRUCTION_NULLIFIED): Likewise.
2614 (REGISTER_BYTE): Likewise.
2615 (REGISTER_VIRTUAL_TYPE): Likewise.
2616 (STORE_STRUCT_RETURN): Likewise.
2617 (CANNOT_STORE_REGISTER): Likewise.
2618 (FRAME_ARGS_ADDRESS): Likewise.
2619 (FRAME_LOCALS_ADDRESS): Likewise.
2620 (SMASH_TEXT_ADDRESS): Likewise.
2621 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2622 (ABOUT_TO_RETURN): Delete, as no longer used.
2623
2624 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2625
2626 * printcmd.c (disassemble_command): Remove obsolete function.
2627 (_initialize_printcmd): Do not create disassemble command here.
2628 * cli/cli-cmds.c (disassemble_command): New function. Implements
2629 disassemble command.
2630 (init_cli_cmds): Create disassemble command here instead.
2631
2632 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2633
2634 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2635
2636 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2637
2638 * regcache.h (regcache_cooked_read_using_offset_hack)
2639 (regcache_cooked_write_using_offset_hack): Delete declarations.
2640 (register_changed): Delete declaration.
2641 * regcache.c (regcache_cooked_read_using_offset_hack)
2642 (regcache_cooked_write_using_offset_hack): Delete functions.
2643 (cooked_xfer_using_offset_hack): Delete function.
2644 (register_changed): Delete function.
2645
2646 2002-11-07 Jim Blandy <jimb@redhat.com>
2647
2648 * macroscope.c: #include "complaints.h".
2649 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2650 but not in the macro table.
2651 * Makefile.in (macroscope.o): Record dependency.
2652
2653 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2654
2655 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2656
2657 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2658
2659 * regcache.c (deprecated_registers_fetched): Update.
2660 * regcache.h (deprecated_registers_fetched): Rename
2661 registers_fetched.
2662 * remote-vxsparc.c (vx_read_register): Update.
2663 * remote-vxmips.c (vx_read_register): Update.
2664 * remote-vx68.c (vx_read_register): Update.
2665 * irix5-nat.c (fetch_core_registers): Update.
2666 * mipsm3-nat.c (fetch_inferior_registers): Update.
2667 * sun3-nat.c (fetch_inferior_registers): Update.
2668 * symm-nat.c (fetch_inferior_registers): Update.
2669 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2670 (fetch_core_registers): Update.
2671 (fetch_kcore_registers): Update.
2672 * mips-nat.c (fetch_inferior_registers): Update.
2673 * corelow.c (get_core_registers): Update.
2674 * a68v-nat.c (fetch_inferior_registers): Update.
2675
2676 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2677
2678 Put in place the framework necessary for multiarching the hppa targets.
2679 * hppa-tdep.c (hppa_gdbarch_init): New function.
2680 (hppa_dump_tdep): New function.
2681 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2682 tdep structure dumper.
2683 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2684 until the multi-arching conversion has partially been completed.
2685
2686 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2687
2688 * valops.c (value_assign): Merge lval_register case into
2689 lval_reg_frame_relative. Use frame_register and
2690 regcache_cooked_write instead of get_saved_register and
2691 write_register_bytes. After flushing the register cache, try to
2692 re-select the selected frame.
2693
2694 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2695
2696 * regcache.h (deprecated_register_valid): Rename register_valid.
2697 * regcache.c: Update.
2698 * ia64-aix-nat.c: Update.
2699 * i386gnu-nat.c: Update.
2700 * alpha-nat.c: Update.
2701 * sparc-nat.c: Update.
2702 * lynx-nat.c: Update.
2703 * remote-mips.c: Update.
2704
2705 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2706
2707 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2708 to end of file, to be more consistent with the pratice followed
2709 by other targets.
2710
2711 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2712
2713 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2714 (print_float_info): Print registers in float_reggroup.
2715 (print_vector_info): Print registers in vector_reggroup.
2716 (default_print_registers_info): When all, print registers in
2717 all_reggroup. Otherwize, print registers in general_reggroup.
2718 (registers_info): Rewrite. Add support for register groups.
2719 Eliminate a goto.
2720
2721 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2722
2723 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2724 ages.
2725 (symtab_symbol_info): Remove eons old ifdeffed out code.
2726 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2727 command.
2728
2729 2002-11-06 Theodore A. Roth <troth@openavr.org>
2730
2731 * c-exp.y: Add missing semi-colons.
2732 * f-exp.y: Add missing semi-colons.
2733 * m2-exp.y: Add missing semi-colons.
2734 * p-exp.y: Add missing semi-colons.
2735 Add empty action to start rule to avoid a type clash error when
2736 building with bison >= 1.50.
2737
2738 2002-11-06 Jim Blandy <jimb@redhat.com>
2739
2740 * macrotab.h (struct macro_source_file): Doc fix.
2741
2742 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2743
2744 * varobj.c (child_exists, cplus_number_of_children): Change
2745 STREQ macro references to strcmp.
2746 (cplus_name_of_child): Change code to handle the fact that
2747 fields are not necessarily contiguous with regards to their
2748 access control. This is a fix for PR gdb/792.
2749
2750 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2751
2752 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2753 * gdbarch.h, gdbarch.c: Regnerate.
2754 * frame.h (frame_register): Declare.
2755 * frame.c (frame_register): New function.
2756 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2757 GET_SAVED_REGISTER, otherwize call
2758 generic_unwind_get_saved_register.
2759 (frame_register_read): Use frame_register instead of
2760 get_saved_register.
2761
2762 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2763
2764 From Jim Ingham <jingham@apple.com>:
2765 * event-top.c (gdb_disable_readline): New function.
2766 (_initialize_event_loop): Move comment.
2767
2768 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2769
2770 * event-loop.c (start_event_loop): Add comment.
2771 Update copyright.
2772
2773 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2774
2775 * infcmd.c (default_print_registers_info): Do not call
2776 PRINT_REGISTER_HOOK.
2777
2778 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2779
2780 * sparc-tdep.c (sparc_print_register_hook): Make static.
2781 (sparc_print_registers_info): New function.
2782 (sparc_do_registers_info): New function.
2783 (sparclet_print_registers_info): New function.
2784 (sparclet_do_registers_info): New function.
2785 (do_sparc_print_registers_info): New function.
2786 (sparc_print_registers): New static function, clone of infcmd.c's
2787 default_print_registers_info.
2788 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2789 (sparclet_do_registers_info): Declare.
2790 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2791 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2792 Re-define.
2793 (sparc_do_registers_info): Declare.
2794 (PRINT_REGISTER_HOOK): Delete macro.
2795 (sparc_print_register_hook): Delete declaration.
2796
2797 2002-11-05 David Carlton <carlton@math.stanford.edu>
2798
2799 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2800 functions.
2801 (lookup_symbol_aux_local): New function.
2802 (lookup_symbol_aux_symtabs): New function.
2803 (lookup_symbol_aux_psymtabs): New function.
2804
2805 2002-11-05 David Carlton <carlton@math.stanford.edu>
2806
2807 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2808 previous values of 'objfile' and 'block'.
2809
2810 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2811
2812 * values.c (value_change_enclosing_type): Set
2813 enclosing_type field correctly also for the case where
2814 more memory needs to be allocated.
2815
2816 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2817
2818 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2819 of puts_filtered.
2820
2821 * i387-tdep.c (i387_print_float_info): Replace calls to
2822 register_read and deprecated_read_register_gen with calls to
2823 frame_register_read, and make the necessary adjustments to the
2824 surrounding code.
2825
2826 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2827
2828 * gdbarch.sh (register_reggroup_p): Allow default value.
2829 * gdbarch.h, gdbarch.c: Regenerate.
2830
2831 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2832
2833 * regcache.h: Add coment indicating replacements for deprecated
2834 functions.
2835
2836 2002-11-02 Andrew Cagney <cagney@redhat.com>
2837
2838 * reggroups.h, reggroups.c: New files.
2839 * regcache.c: Include "reggroups.h".
2840 (enum regcache_dump_what): Add `regcache_dump_groups'.
2841 (regcache_dump): Contract size of the "Type" column. When
2842 specified, dump the register's groups.
2843 (maintenance_print_register_groups): New function.
2844 (_initialize_regcache): Add command `maint print register-groups'.
2845 * Makefile.in (COMMON_OBS): Add reggroups.o
2846 (SFILES): Add reggroups.c.
2847 (reggroups_h): Define.
2848 (regcache.o, gdbarch.o): Update dependencies.
2849 (reggroups.o): Specify dependencies.
2850 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2851 Add opaque declaration for `struct reggroup' in generated .h file.
2852 Include "reggroups.h" in generated .c file.
2853 gdbarch.h, gdbarch.c: Re-generate.
2854
2855 2002-11-02 Andrew Cagney <cagney@redhat.com>
2856
2857 * regcache.h (deprecated_read_register_gen): Rename
2858 read_register_gen.
2859 (deprecated_write_register_gen): Rename write_register_gen.
2860 * i387-tdep.c: Update.
2861 * x86-64-linux-nat.c: Update
2862 * wince.c: Update.
2863 * thread-db.c: Update.
2864 * win32-nat.c: Update.
2865 * mips-tdep.c: Update.
2866 * d10v-tdep.c: Update.
2867 * cris-tdep.c: Update.
2868 * remote-sim.c: Update.
2869 * remote-rdi.c: Update.
2870 * remote-rdp.c: Update.
2871 * frame.c: Update.
2872 * target.c: Update.
2873 * blockframe.c: Update.
2874 * x86-64-tdep.c: Update.
2875 * xstormy16-tdep.c: Update.
2876 * sh-tdep.c: Update.
2877 * s390-tdep.c: Update.
2878 * rs6000-tdep.c: Update.
2879 * sparc-tdep.c: Update.
2880 * i386-tdep.c: Update.
2881 * dwarf2cfi.c: Update.
2882 * regcache.c: Update.
2883
2884 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2885
2886 New interix-specific files:
2887 * config/i386/nm-interix.h: New file.
2888 * config/i386/interix.mh: New file.
2889 * config/i386/interix.mt: New file.
2890 * i386-interix-nat.c: New file.
2891 * i386-interix-tdep.c: New file.
2892
2893 2002-11-01 Andrew Cagney <cagney@redhat.com>
2894
2895 * frame.h (deprecated_generic_get_saved_register): Rename
2896 generic_get_saved_register.
2897 * blockframe.c (deprecated_generic_get_saved_register): Update.
2898 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2899 (xstormy16_frame_saved_register): Update.
2900 * sh-tdep.c (sh_gdbarch_init): Update.
2901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2902 * ia64-tdep.c (ia64_get_saved_register): Update.
2903 * cris-tdep.c (cris_gdbarch_init): Update.
2904 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2905 * arm-tdep.c (arm_gdbarch_init): Update.
2906
2907 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2910
2911 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2912
2913 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2914 trampolines in sigaction.
2915
2916 2002-10-31 Andrew Cagney <cagney@redhat.com>
2917
2918 * h8300-tdep.c: Include "gdb_assert.h".
2919 (h8300_print_register): Add gdbarch, file and frame parameters.
2920 Use frame_read_unsigned_register to read the register's value.
2921 Use fprintf_filtered to display output.
2922 (h8300_print_registers_info): Replace h8300_do_registers_info.
2923 (h8300_gdbarch_init): Set print_registers_info.
2924
2925 2002-10-31 Andrew Cagney <cagney@redhat.com>
2926
2927 * frame.c (frame_read_unsigned_register): New function.
2928 (frame_read_signed_register): New function.
2929 * frame.h (frame_read_unsigned_register): Declare.
2930 (frame_read_signed_register): Declare.
2931
2932 2002-10-31 Andrew Cagney <cagney@redhat.com>
2933
2934 * h8500-tdep.c (h8500_print_registers_info): New static function,
2935 clone of infcmd.c's default_print_registers_info.
2936 (h8500_do_registers_info): New funtion.
2937 (h8500_print_register_hook): Rename print_register_hook, make
2938 static.
2939
2940 * config/h8500/tm-h8500.h: Update copyright.
2941 (DEPRECATED_DO_REGISTERS_INFO): Define.
2942 (h8500_do_registers_info: Declare.
2943 (PRINT_REGISTER_HOOK): Delete macro.
2944 (print_register_hook): Delete function.
2945
2946 2002-10-31 Andrew Cagney <cagney@redhat.com>
2947
2948 * z8k-tdep.c (z8k_print_register_hook): Make static.
2949 (z8k_print_registers_info): New static function, clone of
2950 infcmd.c's default_print_registers_info.
2951 (z8k_do_registers_info): New function. Wrap
2952 z8k_print_registers_info.
2953 * config/z8k/tm-z8k.h: Update copyright.
2954 (PRINT_REGISTER_HOOK): Delete macro.
2955 (z8k_print_register_hook): Delete declaration.
2956 (DEPRECATED_DO_REGISTERS_INFO): Define.
2957 (z8k_do_registers_info): Declare.
2958
2959 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2960
2961 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2962 as this is already provided by value.h, and was actually causing
2963 a compilation error because of a conflict in parameter type
2964 declaration due to a missing const keyword.
2965 (low_text_segment_addres): Fix a compilation warning.
2966
2967 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2968
2969 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2970 registers without a name.
2971 (mips_linux_cannot_store_register): Don't store registers without
2972 a name.
2973
2974 2002-10-28 David Carlton <carlton@math.stanford.edu>
2975
2976 * symtab.c (find_addr_symbol): Delete. (It was already commented
2977 out.)
2978 * symtab.h: Delete prototype for find_addr_symbol.
2979
2980 2002-10-26 Andrew Cagney <cagney@redhat.com>
2981
2982 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2983 DO_REGISTERS_INFO.
2984 gdbarch.h, gdbarch.c: Re-generate.
2985 * infcmd.c (default_print_registers_info): Update reference.
2986 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2987 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2988 * sh-tdep.c (sh_gdbarch_init): Ditto.
2989 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2990 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2991
2992 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2993
2994 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2995 cfi_init_extra_frame_info.
2996 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2997 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2998
2999 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3000 target where necessary. Add more comments and remove the ones
3001 that don't provide any useful information.
3002
3003 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3004 deprecated_read_register_dummy with
3005 frame_unwind_unsigned_register.
3006
3007 * i386-tdep.c (i386_extract_struct_value_address): Use
3008 regcache_raw_read_unsigned instead of
3009 regcache_cooked_read_unsigned since we know that the register
3010 we're reading isn't a pseudo register. Rename variable 'val' into
3011 the more descriptive 'addr'.
3012
3013 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3014 (x86_64_push_return_address): Add comment.
3015 (x86_64_pop_frame): Make static.
3016 (examine_argument): Clarify comment.
3017 (x86_64_skip_prologue): Make prolog_expact variable static.
3018
3019 * dwarf2cfi.c: Fix some formatting problems.
3020 (context_cpy, read_encoded_pointer): Clarify comments.
3021
3022 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3023 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3024 i386 target back into x86_64_gdbarch_init. Add some comments and
3025 remove meaningless ones.
3026
3027 2002-10-25 Andrew Cagney <cagney@redhat.com>
3028
3029 * complaints.h (struct deprecated_complaint): Rename `struct
3030 complaint'.
3031 * complaints.c (complain): Update.
3032 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3033 incorrect comment indicating that "symfile.h" was being included
3034 for the `struct complaint' definition.
3035 * remote-vx.c: Update.
3036 * objc-lang.c: Update.
3037 * xcoffread.c: Update.
3038 * hpread.c: Update.
3039 * mdebugread.c: Update.
3040 * stabsread.c: Update.
3041 * dwarf2read.c: Update.
3042 * dwarfread.c: Update.
3043 * elfread.c: Update.
3044 * coffread.c: Update.
3045 * stabsread.h: Update.
3046 * dbxread.c: Update.
3047 * buildsym.c: Update.
3048 * gdbtypes.c: Update.
3049 * macrotab.c: Update.
3050
3051 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3052
3053 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3054 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3055 (x86_64_init_abi): ...new function.
3056
3057 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3058 * i386v-nat.c: Include "i386-tdep.h".
3059
3060 2002-10-25 Andrew Cagney <cagney@redhat.com>
3061
3062 * gdbtypes.c (address_space_name_to_int): Update.
3063 (address_space_int_to_name): Update.
3064 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3065 multi-arch predicate.
3066 (address_class_name_to_type_flags): Ditto.
3067 * gdbarch.h, gdbarch.c: Re-generate.
3068
3069 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3070
3071 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3072
3073 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3074
3075 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3076
3077 * symtab.h (INIT_SAL): Delete macro.
3078 (init_sal): Export.
3079 * symtab.c (init_sal): New function.
3080
3081 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3082 to init_sal function call.
3083 (find_sal_from_funcs_and_line): Ditto.
3084 (all_sals_for_line): Ditto.
3085 * breakpoint.c (create_internal_breakpoint): Ditto.
3086 (create_fork_vfork_event_catchpoint): Ditto.
3087 (create_exec_event_catchpoint): Ditto.
3088 (parse_breakpoint_sals): Ditto.
3089 (watch_command_1): Ditto.
3090 (handle_gnu_4_16_catch_command): Ditto.
3091 (clear_command): Ditto.
3092 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3093 * infcmd.c (run_stack_dummy): Ditto.
3094 * infrun.c (process_event_stop_test): Ditto.
3095 (check_sigtramp2): Ditto.
3096 (step_over_function): Ditto.
3097 * linespec.c (decode_line_2): Ditto.
3098 (decode_line_1): Ditto.
3099 * source.c (line_info): Ditto.
3100 * symtab.c (find_pc_sect_line): Ditto.
3101
3102 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3103
3104 * dwarf2cfi.c (struct context)
3105 (struct context_reg): Moved to dwarf2cfi.h
3106 (context_alloc, frame_state_alloc, context_cpy):
3107 Made extern instead of static, removed prototypes.
3108 * dwarf2cfi.h (struct context)
3109 (struct context_reg): New, moved from dwarf2cfi.c
3110 (context_alloc, frame_state_alloc, context_cpy):
3111 New prototypes.
3112 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3113 Changed from static to extern.
3114 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3115 (LINUX_SIGCONTEXT_FP_OFFSET)
3116 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3117 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3118 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3119 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3120 set_gdbarch_*() calls now use x86-64 specific functions
3121 instead of DWARF2 CFI ones.
3122 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3123 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3124 (x86_64_init_extra_frame_info): New prototypes.
3125
3126 2002-10-23 David Carlton <carlton@math.stanford.edu>
3127
3128 * linespec.c: #include "parser-defs.h".
3129 Delete prototype for find_template_name_end.
3130 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3131
3132 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3133
3134 * NEWS: add recent mi fixes.
3135 * varobj.c (struct varobj): Add new "updated" flag.
3136 (new_variable): Default "updated" flag to 0.
3137 (varobj_set_value): Set "updated" flag to 1 if value
3138 changes.
3139 (varobj_update): Check varobj "updated" flag before
3140 comparing old and refreshed values. Fix for
3141 PR gdb/702.
3142
3143 2002-10-23 David Carlton <carlton@math.stanford.edu>
3144
3145 * parse.c (parse_exp_1): Use BLOCK_START.
3146 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3147 SYMBOL_BLOCK_VALUE.
3148 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3149
3150 2002-10-23 David Carlton <carlton@math.stanford.edu>
3151
3152 * symtab.c: Delete cplusplus_hint.
3153 Delete prototype for find_template_name_end.
3154
3155 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3156
3157 * symtab.h: Update comment.
3158
3159 2002-10-23 Michael Snyder <msnyder@redhat.com>
3160
3161 * printcmd.c (address_info): Restore quotes in output.
3162 * valops.c (value_of_local): Restore quotes in error message.
3163
3164 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3165
3166 * symtab.c (symbol_demangled_name): New function.
3167 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3168 turning most of it into a function.
3169 (symbol_demangled_name): Export.
3170
3171 2002-10-23 Michael Snyder <msnyder@redhat.com>
3172
3173 * valops.c (value_of_local): Restore quotes in error message.
3174
3175 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3176
3177 * symtab.c (symbol_init_language_specific): New function.
3178 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3179 turning most of it into a function.
3180 (symbol_init_language_specific): Export.
3181
3182 2002-10-23 David Carlton <carlton@math.stanford.edu>
3183
3184 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3185 (dwarf_attr_name): Ditto.
3186 (dwarf_type_encoding_name): Ditto.
3187 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3188 (process_die): Handle DW_TAG_namespace,
3189 DW_TAG_imported_declaration, DW_TAG_imported_module.
3190 (read_namespace): New function.
3191
3192 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3193
3194 * configure.in: Define NEW_PROC_API on Interix too.
3195 * configure: Regenerate.
3196
3197 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3198
3199 * configure: Regenerate using the proper version of autoconf.
3200
3201 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3202
3203 * findvar.c (read_var_value): Temporarily disable TLS code, until
3204 complete TLS support is added.
3205
3206 2002-10-21 Jim Blandy <jimb@redhat.com>
3207 Elena Zannoni <ezannoni@redhat.com>
3208
3209 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3210 for thread local storage locations.
3211 (struct symbol): Add objfile field.
3212 (SYMBOL_OBJFILE): Define.
3213 * dwarf2read.c (is_thread_local): New static variable.
3214 (new_symbol): If variable is in thread local fill in address class
3215 and objfile appropriately.
3216 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3217 stack operation.
3218 * printcmd.c (address_info): Print the information for thread
3219 local storage variable.
3220 * findvar.c (read_var_value): In case of thread local variable,
3221 defer to the target vector code to compute address.
3222
3223 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3224
3225 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3226 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3227
3228 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3229
3230 * symtab.h (address_class): Rename
3231 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3232 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3233 * printcmd.c (address_info): Ditto.
3234 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3235
3236 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3237
3238 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3239 DBREG_DRX macro to acces debug registers.
3240
3241 * Makefile.in (i386obsd-tdep.o): New target.
3242
3243 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3244 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3245
3246 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3247 * config/i386/obsd.mt: New file.
3248 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3249 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3250 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3251 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3252 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3253 * i386obsd-tdep.c: New file.
3254
3255 2002-10-19 Adam Fedor <fedor@gnu.org>
3256
3257 * objc-exp.y (name_not_typename): Fix invalid comment.
3258
3259 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3260
3261 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3262 to allocate partial syms and macro byte caches.
3263
3264 2002-10-18 David Carlton <carlton@math.stanford.edu>
3265
3266 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3267
3268 2002-10-18 Adam Fedor <fedor@gnu.org>
3269
3270 * stabsread.c (find_name_end): New function.
3271 (define_symbol): Use it.
3272
3273 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3274
3275 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3276 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3277 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3278 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3279
3280 2002-10-17 David Carlton <carlton@math.stanford.edu>
3281
3282 * symfile.h: Add opaque declaration for struct obstack.
3283 Declare obsavestring to take a const char *.
3284 * symfile.c (obsavestring): Make first argument a const char *.
3285
3286 2002-10-16 Adam Fedor <fedor@gnu.org>
3287
3288 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3289 names when matching breakpoints in current file.
3290
3291 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3292
3293 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3294 (read_tag_pointer_type): Add address class support.
3295 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3296 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3297 New methods.
3298 * gdbarch.h, gdbarch.c: Regenerate.
3299 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3300 (make_type_with_address_space, recursive_type_dump): Add address
3301 class support.
3302 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3303 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3304 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3305
3306 2002-10-16 Klee Dienes <kdienes@apple.com>
3307
3308 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3309 to get the last character of a char[] buffer, not
3310 name[sizeof(vptr_name)-1].
3311
3312 2002-10-14 Adam Fedor <fedor@gnu.org>
3313
3314 * symtab.h: New objc_specific struct.
3315 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3316 (SYMBOL_DEMANGLED_NAME): Likewise.
3317
3318 2002-10-14 Adam Fedor <fedor@gnu.org>
3319
3320 * symfile.c (init_filename_language_table): Add ObjC file extension.
3321
3322 2002-10-14 Adam Fedor <fedor@gnu.org>
3323
3324 * utils.c (puts_filtered_tabular): New function.
3325 (fprintf_symbol_filtered): Get ObjC demangled name.
3326 * defs.h (puts_filtered_tabular): Declared.
3327
3328 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3329
3330 * c-lang.h (c_type_print_varspec_prefix): Delete.
3331 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3332 ``need_post_space'' parameter. Adjust all callers.
3333
3334 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3335
3336 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3337 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3338 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3339 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3340
3341 2002-10-13 Adam Fedor <fedor@gnu.org>
3342
3343 * source.c (print_source_lines): Update comments.
3344
3345 2002-10-13 Adam Fedor <fedor@gnu.org>
3346
3347 * valops.c (value_of_local): New function.
3348 (value_of_this): Use it.
3349 * value.h (value_of_local): Declared.
3350
3351 2002-10-13 Adam Fedor <fedor@gnu.org>
3352
3353 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3354 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3355
3356 2002-10-12 Adam Fedor <fedor@gnu.org>
3357
3358 * language.c (binop_result_type): Add language_objc to case.
3359 (integral_type): Likewise.
3360 (character_type): Likewise.
3361 (string_type): Likewise.
3362 (boolean_type): Likewise.
3363 (structured_type): Likewise.
3364 (binop_type_check): Likewise.
3365
3366 2002-10-11 Adam Fedor <fedor@gnu.org>
3367
3368 * printcmd.c (address_info): Print 'self' for ObjC.
3369
3370 2002-10-11 Adam Fedor <fedor@gnu.org>
3371
3372 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3373 OP_SELF.
3374
3375 2002-10-11 Adam Fedor <fedor@gnu.org>
3376
3377 * language.h (CAST_IS_CONVERSION): Add language_objc.
3378
3379 2002-10-11 Adam Fedor <fedor@gnu.org>
3380
3381 * defs.h (enum language): Add language_objc.
3382
3383 2002-10-11 Klee Dienes <kdienes@apple.com>
3384
3385 * corefile.c (read_memory_typed_address): New function.
3386 * gdbcore.h (read_memory_typed_address): Add prototype.
3387 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3388 to read a value destined for a CORE_ADDR, not read_memory_integer.
3389 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3390 (f77_get_dynamic_lowerbound): Ditto.
3391
3392 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3393
3394 * utils.c (string_to_core_addr): After turning string into
3395 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3396 which will do necessary sign-extension, etc.
3397
3398 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3399
3400 * c-exp.y (THIS): Delete token and grammar rule.
3401 (yylex): Don't return THIS.
3402 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3403 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3404 * demangle.c (cplus_markers): Update comment. Put '$'
3405 first. Remove CPLUS_MARKER.
3406 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3407 * jv-exp.y (THIS): Delete token and grammar rule.
3408 (yylex): Don't return THIS.
3409 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3410 * objc-exp.y (THIS): Delete token and grammar rule.
3411 (yylex): Don't return THIS.
3412 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3413 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3414 (read_member_functions): Likewise for opname.
3415 (read_tilde_fields): Use is_cplus_marker.
3416
3417 * defs.h (CPLUS_MARKER): Don't define.
3418 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3419 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3420 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3421 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3422 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3423
3424 * config/i386/tm-i386v4.h: Delete file.
3425 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3426 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3427 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3428 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3429 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3430 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3431 * config/i386/i386v4.mt (TM_FILE): Likewise.
3432 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3433
3434 2002-10-10 Marko Mlinar <markom@opencores.org>
3435
3436 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3437 accidentially not commited 2002-10-09
3438 * gdbarch.h, gdbarch.c: Re-generate.
3439
3440 2002-10-09 Marko Mlinar <markom@opencores.org>
3441
3442 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3443 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3444 * gdbarch.h, gdbarch.c: Re-generate.
3445
3446 2002-10-08 Petr Sorfa <petrs@caldera.com>
3447
3448 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3449
3450 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3451 so we can work on more than one compilation unit at a time. This
3452 helps prepare GDB to handle inter-CU die references.
3453 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3454 the code to be defined before struct comp_unit_head.
3455 (comp_unit_head): Added new members - offset, cu_head,
3456 begin_die, next and dwarf2_abbrevs.
3457 (dwarf2_abbrevs): Removed single static var; now member of
3458 struct comp_unit_head.
3459 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3460 members.
3461 (psymtab_to_symtab_1): Changed to work with the new
3462 struct comp_unit_head.
3463 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3464 constructs the dwarf2_abbrevs[] inside the cu_header.
3465 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3466 dwarf2_abbrev table to clean up.
3467 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3468 handling of dwarf2_abbrevs inside the cu_header.
3469 (read_partial_die): Now supports the call to the new
3470 dwarf2_lookup_abbrev.
3471 (read_full_die): Now supports the call to the new
3472 dwarf2_lookup_abbrev.
3473
3474 2002-10-06 Christopher Faylor <cgf@redhat.com>
3475
3476 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3477 insure that shell variables, such as "transformed_name" are propagated
3478 to later shell statements in rule.
3479
3480 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3481
3482 * config/i386/nm-i386sco.h: Add protection against
3483 multiple-inclusion. Include "i386/nm-i386v.h".
3484 (REGISTER_U_ADDR): Remove define.
3485 (i386_register_u_addr): Remove prototype.
3486
3487 2002-10-04 Michael Snyder <msnyder@redhat.com>
3488
3489 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3490 before treating it as a single-step event.
3491
3492 2002-10-03 Adam Fedor <fedor@gnu.org>
3493
3494 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3495 (objc_demangle): Remove assignment in if statements, Replace
3496 free with xfree.
3497 (add_msglist): Likewise.
3498 (end_msglist): Likewise.
3499 (complare_selectors): Likewise.
3500 (selectors_info): Likewise.
3501 (compare_classes): Likewise.
3502 (classes_info): Likewise.
3503 (print_object_command): Likewise.
3504 (find_objc_msgcall_submethod): Replace PTR with void *.
3505 * objc-lang.h: Remove check for __STDC__.
3506
3507 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3508
3509 * ui-out.h (ui_out_field_fmt_int): New prototype.
3510 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3511 of field width and alignment.
3512 * stack.c (print_frame_info_base): When printing frame level, use
3513 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3514 PR gdb/192
3515
3516 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3517
3518 * MAINTAINERS: Add self to Write After Approval list.
3519
3520 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3521
3522 * infcmd.c (interrupt_target_command_wrapper): Delete.
3523 (interrupt_target_command): Make non static.
3524 (nofp_registers_info): Make static.
3525 * stack.c (return_command_wrapper): Delete.
3526 (return_command): Make non static.
3527
3528 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3529
3530 * event-top.c (gdb_setup_readline): New function. Code moved from
3531 _initialize_event_loop().
3532 (_initialize_event_loop): Call gdb_setup_readline().
3533
3534 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3535
3536 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3537 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3538 * gdbarch.h, gdbarch.c: Re-generate.
3539
3540 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3541
3542 Fix PR gdb/778
3543 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3544 before recursing.
3545 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3546 of fill_in_vptr_fieldno.
3547
3548 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3549
3550 * inferior.h (registers_info, stepi_command, nexti_command,
3551 continue_command, interrupt_target_command): Export from infcmd.c.
3552 * frame.h (args_info, selected_frame_level_changed_hook,
3553 return_command): Export from stack.c.
3554 * v850ice.c (stepi_command, nexti_command, continue_command): use
3555 prototypes from inferior.h.
3556 * tracepoint.c (registers_info, args_info, locals_info): Use
3557 prototypes from frame.h and inferior.h.
3558 * Makefile.in (mi-main.o): Add dependency on frame.h.
3559
3560 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3561
3562 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3563 value in register 3 adjusted by ppc_gp0_regnum.
3564
3565 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3566
3567 2002-10-02 Marko Mlinar <markom@opencores.org>
3568
3569 * MAINTAINERS: Add myself to the Write After Approval list.
3570
3571 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3572
3573 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3574 of the section for the N64 ABI, fixed.
3575
3576 * config/mips/tm-irix6.h: Include solib.h.
3577
3578 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3579
3580 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3581 GNU operators.
3582
3583 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3584
3585 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3586 and that "mi0" syntax has been removed.
3587
3588 2002-09-30 David Carlton <carlton@math.stanford.edu>
3589
3590 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3591 * ppc-sysv-tdep.c: #include "gdb_string.h".
3592 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3593 pacify GCC.
3594
3595 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3596
3597 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3598 "vrsave"'s register number.
3599
3600 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3601
3602 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3603 use frame_unwind_signed_register to obtain the PC.
3604 (mips_frame_chain): Handle a generic dummy frame.
3605 (mips_init_extra_frame_info): When a generic dummy frame, don't
3606 re-compute the frame base.
3607 (mips_pop_frame): Handle generic dummy frames.
3608 (mips_gdbarch_init): When generic dummy frames, set
3609 use_generic_dummy_frames, push_dummy_frame to
3610 generic_push_dummy_frame, pc_in_call_dummy to
3611 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3612 generic_save_dummy_frame_tos.
3613
3614 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3615
3616 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3617 against TOP when TOP was explictly set.
3618 (generic_push_dummy_frame): Set TOP to zero.
3619
3620 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * event-loop.c (start_event_loop): Rename variable 'result' to
3623 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3624
3625 2002-09-30 Keith Seitz <keiths@redhat.com>
3626
3627 * gdb-events.sh (selected_thread_changed): New event.
3628 * gdb-events.c: Regenerated.
3629 * gdb-events.h: Regenerated.
3630
3631 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3632
3633 * MAINTAINERS: Add self to Write After Approval list.
3634
3635 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3636
3637 * disasm.c: New file.
3638 * disasm.h: New file.
3639 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3640 (compare_lines): Ditto.
3641 (dump_insns): Ditto.
3642 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3643 argument.
3644 (do_assembly_only): Ditto.
3645 (do_disassembly): Renamed to gdb_disassembly and moved to
3646 disasm.c. Sdded uiout argument.
3647 * Makefile.in: Add new files. Reorder SFILES list. Update
3648 dependencies. Include libgdb.a later in the insight executable.
3649
3650 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3651
3652 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3653 bfd/elf64-alpha-fbsd.c.
3654
3655 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3656
3657 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3658 i386gnu-tdep.c.
3659
3660 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3661
3662 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3663 __FUNCTION__.
3664 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3665 function name.
3666 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3667 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3668 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3669 (S_msg_sig_post_reply): Ditto.
3670
3671 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3672
3673 * sh-tdep.c (sh_use_struct_convention): Use definition according
3674 to ABI.
3675 (sh_push_arguments): Store in register with correct endianess.
3676 (sh_default_store_return_value): Ditto.
3677 (sh_gdbarch_init): Set sizeof long double to 8.
3678
3679 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3680
3681 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3682 Fix some whitespace problems.
3683
3684 2002-09-27 David Carlton <carlton@math.stanford.edu>
3685
3686 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3687 (mcore-tdep.o): Ditto.
3688 (ns32k-tdep.o): Ditto.
3689 (ns32knbsd-tdep.o): Ditto.
3690 (sh3-rom.o): Ditto.
3691 (vax-tdep.o): Ditto.
3692 * cris-tdep.c: #include "gdb_string.h"
3693 * mcore-tdep.c: Ditto.
3694 * ns32k-tdep.c: Ditto.
3695 * ns32knbsd-tdep.c: Ditto.
3696 * sh3-rom.c: Ditto.
3697 * vax-tdep.c: Ditto.
3698
3699 2002-09-27 David Carlton <carlton@math.stanford.edu>
3700
3701 * config/djgpp/fnchange.lst: Add entries for
3702 gdb/testsuite/gdb.c++/m-static files.
3703
3704 2002-09-27 Jim Wilson <wilson@redhat.com>
3705
3706 * MAINTAINERS: Add myself to the Write After Approval list.
3707
3708 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3709
3710 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3711
3712
3713 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3714
3715 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3716 frame.
3717
3718 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3719
3720 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3721 (rs6000_struct_return_address): Delete variable.
3722 (rs6000_store_struct_return): Update.
3723 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3724 deprecated_extract_struct_value_address.
3725 (rs6000_frame_align): New function.
3726 (rs6000_gdbarch_init): Set frame_align.
3727
3728 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3729
3730 From Grace Sainsbury <graces@redhat.com>:
3731 * Makefile.in (gdbtk-main.o): New target.
3732 (gdb.o): New target.
3733 (main_h): Define.
3734 (main.o): Update dependencies.
3735 (gdb$(EXEEXT)): Add gdb.o.
3736 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3737 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3738 (SUBDIR_GDBTK_CLEAN): Set.
3739 (install-gdbtk): Install the insight binary.
3740 (uninstall-gdbtk): New target.
3741 (all-gdbtk, clean-gdbtk): New rule.
3742 * top.c (use_windows): Default to zero.
3743 * main.c: Include "main.h".
3744 (main): Delete.
3745 (struct captured_main_args): Delete.
3746 (gdb_main): New function.
3747 * main.h: New file.
3748 * gdb.c: New File.
3749
3750 2002-09-25 Andrew Cagney <cagney@redhat.com>
3751
3752 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3753 (frame_map_regnum_to_name): New function.
3754 (frame_map_name_to_regnum): New function.
3755 * frame.h (frame_map_name_to_regnum): Declare.
3756 (frame_map_regnum_to_name): Declare.
3757 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3758 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3759 * parse.c: Do not include "builtin-regs.h".
3760 (target_map_name_to_register): Delete function.
3761 (write_dollar_variable): Use frame_map_name_to_regnum.
3762 * parser-defs.h (target_map_name_to_register): Delete declaration.
3763 * expprint.c: Include "frame.h".
3764 (print_subexp): Use frame_map_regnum_to_name.
3765 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3766 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3767
3768 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3769
3770 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3771 wasn't saved, and the next innermost frame is a dummy, return the
3772 dummy frame's link register.
3773
3774 2002-09-24 Jim Blandy <jimb@redhat.com>
3775
3776 Fix from Paul Breed:
3777 * main.c (captured_main): Add a `break' after the case for 'b'.
3778
3779 2002-09-24 Keith Seitz <keiths@redhat.com>
3780
3781 * varobj.c (c_type_of_child): Use get_target_type instead
3782 of TYPE_TARGET_TYPE.
3783
3784 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3785
3786 * source.c (get_current_or_default_source_symtab_and_line): Remove
3787 function.
3788 (set_default_source_symtab_and_line): New function. Attempts to
3789 determine a source file to list lines from if one is not currently
3790 defined.
3791 (get_current_source_symtab_and_line): Initialize sal.pc and
3792 sal.end fields.
3793 (set_current_source_symtab_and_line): Mark argument as const.
3794 * source.h: Update declarations and comments.
3795 * linespec.c (decode_line_1): Replace call to removed routine above.
3796 * stack.c (print_frame_info_base): Ditto.
3797 * cli/cli-cmds.c (edit_command): Ditto.
3798 (list_command): Ditto.
3799
3800 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3801
3802 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3803 sal.pc and sal.end fields.
3804 (get_current_or_default_source_symtab_and_line): Ditto.
3805 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3806 so we do not cause a new source symtab to be searched for (reverting an
3807 unintentional change from the 2002-09-20 patch).
3808 * scm-lang.c (scm_unpac): Ditto.
3809
3810 2002-09-21 Andrew Cagney <cagney@redhat.com>
3811
3812 * complaints.c (symfile_explanations): Remove new-line from
3813 ``isolated_message''.
3814 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3815 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3816
3817 2002-09-20 Nick Clifton <nickc@redhat.com>
3818
3819 * NEWS: Announce that V850EA ISA is no longer supported.
3820 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3821
3822 2002-09-20 David Carlton <carlton@math.stanford.edu>
3823
3824 * Makefile.in (c-lang.o): Correct dependencies.
3825 (utils.o): Gather dependencies.
3826 (charset.o): Move.
3827 * c-lang.c: #include "gdb_string.h"
3828
3829 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3830
3831 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3832 * cli/cli-cmds.c (list_command): New function. Implements the new
3833 cli edit command.
3834 (_init_cli_cmds): Add new command definition.
3835 * gdb.1: Document edit command.
3836 * doc/gdb.texinfo: Document edit command.
3837
3838 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3839
3840 * source.c: Make global variables current_source_symtab and
3841 current_source_line static.
3842 (list_command): Moved to cli/cli-cmds.c.
3843 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3844 (get_first_line_listed): New accessor function.
3845 (get_lines_to_list): New accessor function.
3846 (get_current_source_symtab_and_line): New function. Retrieves the
3847 position in the source code that we consider current.
3848 (get_current_or_default_source_symtab_and_line): New function.
3849 Like the above but attempts to determine a default position if one
3850 is not currently defined.
3851 (set_current_source_symtab_and_line): New function. Sets the source
3852 code position considered current and returns the previously set one.
3853 (clear_current_source_symtab_and_line): Reset stored information about
3854 a current source line.
3855 (_initialize_source): Remove registration for the "list" command and
3856 its alias.
3857 * source.h: Add declarations for the new functions above.
3858 * symtab.h: Remove declarations for the global variables mentioned
3859 above.
3860 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3861 obtain current source line.
3862 * linespec.c (decode_line_1): Ditto.
3863 * macroscope.c (default_macro_scope): Ditto.
3864 * scm-lang.c (scm_unpac): Ditto.
3865 * stack.c (print_frame_info_base): Ditto.
3866 * symfile.c (clear_symtab_users): Ditto.
3867 * symtab.c (decode_line_spec): Ditto.
3868 * cli/cli-cmds.c (list_command): Moved here from source.c.
3869 (ambiguous_line_spec): Moved here from source.c.
3870 (_init_cli_cmds): Add definition for "list" and its alias.
3871 * Makefile.in: Update dependencies.
3872
3873 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3874
3875 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3876 with what gcc thinks is correct.
3877
3878 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3879
3880 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3881 multiple register push instruction.
3882
3883 2002-09-19 Jim Blandy <jimb@redhat.com>
3884
3885 Add support for distinct host and target character sets.
3886 * charset.c, charset.h: New files.
3887 * c-exp.y: #include "charset.h".
3888 (yylex): Convert character and string literals to the target
3889 character set, before returning them as the semantic value of the
3890 token.
3891 * c-lang.c: #include "charset.h".
3892 (c_emit_char): Use charset-specific methods to recognize
3893 characters with backslash escape forms, to decide which characters
3894 to print literally and which to print using numeric escape
3895 sequences, and to convert target characters to host characters
3896 before printing.
3897 * utils.c: #include "charset.h".
3898 (no_control_char_error): New function.
3899 (parse_escape): Use charset-specific methods to recognize
3900 backslash escapes, parse `control character' notation, and convert
3901 characters from the host character set to the target character set.
3902 * configure.in: Set the default host character set.
3903 Check where to find iconv, and what its argument types might be.
3904 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3905 * Makefile.in (SFILES): List charset.c.
3906 (COMMON_OBS): List charset.o.
3907 (charset.o): New rule.
3908 (charset_h): New header dependency variable.
3909 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3910 (LIBICONV): New variable, set by configure.
3911 (CLIBS): Include $(LIBICONV) here.
3912 * aclocal.m4, config.in, configure: Regenerated.
3913
3914 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3915
3916 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3917 bison 1.35 warning.
3918
3919 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3920
3921 * gdb_mbuild.sh: New file.
3922
3923 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3924
3925 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3926
3927 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3928
3929 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3930 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3931 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3932 valops.c, value.h: Revert previous change.
3933
3934 2002-09-18 Michael Snyder <msnyder@redhat.com>
3935
3936 Preliminary support for Objective-C:
3937 * defs.h (language_objc): New enum value.
3938 (puts_filtered_tabular): Declaration only, exported from utils.c.
3939 (skip_quoted): Delete, declared in completer.h.
3940 * c-exp.y: Include completer.h.
3941 * p-exp.y: Ditto.
3942 * jv-exp.y: Ditto.
3943 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3944 New operator enum values.
3945 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3946 * language.c (binop_result_type): Handle language_objc case.
3947 (integral_type, character_type, string_type, boolean_type,
3948 structured_type, binop_type_check): Ditto.
3949 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3950 (struct objc_specific): Add to general_symbol_info.
3951 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3952 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3953 * parser-defs.h (struct objc_class_str): New struct type.
3954 (start_msglist, end_msglist, add_msglist): Declaration only,
3955 exported from objc-lang.c.
3956 * value.h (value_of_local, value_nsstring,
3957 call_function_by_hand_expecting_type): Exported from valops.c.
3958 * valops.c (find_function_addr): Export.
3959 (call_function_by_hand_expecting_type): New function.
3960 (value_of_local): New function.
3961 * symfile.c (init_filename_language_table): Add ".m" extension
3962 for Objective-C.
3963 * utils.c (puts_filtered_tabular): New function.
3964 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3965 (set/show demangle): Extend help-string to refer to ObjC.
3966 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3967 * stabsread.c (symbol_reference_defined): Objective-C symbols
3968 may contain colons: make allowances when scanning stabs strings
3969 for colons.
3970 (objc_find_colon): New function.
3971 * printcmd.c (address_info): If language == objc then print
3972 "self" instead of "this".
3973 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3974 OP_NSSTRING, and OP_SELF.
3975 (prefixify_subexp): Ditto.
3976 * source.c (print_source_lines): Mention objc in comment.
3977 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3978 method names.
3979
3980 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3981
3982 * complaints.h: Update copyright.
3983 (struct complaints): Declare.
3984 (struct complaint): Make `message' constant.
3985 (internal_complaint): Declare.
3986 (complaint): Declare.
3987 (complaint_root): Delete declaration.
3988 (symfile_complaints): Delete declaration.
3989 (struct complaints): Add opaque declaration.
3990 (clear_complaints): Add a complaints parameter.
3991 * complaints.c: Update copyright.
3992 (enum complaint_series): Define.
3993 (complaint_root): Delete.
3994 (struct complaints): Define.
3995 (complaint_sentinel, symfile_complaint_book): New variables.
3996 (symfile_explanations, symfile_complaints): New variables.
3997 New variables.
3998 (get_complaints): New function.
3999 (vcomplaint): New function.
4000 (complaint): New function.
4001 (internal_complaint): New function.
4002 (complain): Call vcomplain with symfile_complaint.
4003 (clear_complaints): Rewrite.
4004 (_initialize_complaints): Use add_setshow_command.
4005 * Makefile.in (complaints.o): Update dependencies.
4006 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4007 to call to clear_complaints.
4008 (new_symfile_objfile, reread_symbols): Ditto.
4009 (oldsyms_complaint): Delete.
4010 (empty_symtab_complaint, unknown_option_complaint): Delete.
4011 (free_named_symtabs): Use complaint instead of complain.
4012
4013 2002-09-18 Michael Snyder <msnyder@redhat.com>
4014
4015 Contributed by Apple Computer, Inc. Merged with current sources
4016 by Adam Fedor <fedor@doc.com> [cagney].
4017
4018 * objc-lang.c: First clean-up round: comments, indentation.
4019 * objc-lang.h: Ditto.
4020 * objc-lang.y: Ditto.
4021
4022 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4023
4024 * maint.c (maintenance_internal_error): Print the parameter as the
4025 error message.
4026 (maintenance_internal_warning): New function.
4027 (_initialize_maint_cmds): Add command `maint internal-warning'.
4028
4029 * defs.h (internal_warning, internal_vwarning): Declare.
4030 * utils.c (struct internal_problem): Define.
4031 (internal_vproblem): New function.
4032 (internal_warning): New function.
4033 (internal_vwarning): New function.
4034 (internal_warning_problem, internal_error_problem): New variables.
4035 (internal_verror): Just call internal_vproblem.
4036
4037 2002-09-18 Michael Snyder <msnyder@redhat.com>
4038
4039 * objc-lang.c: New file, support for Objective-C.
4040 Preliminary check-in, not yet integrated into gdb.
4041 * objc-lang.h: New file.
4042 * objc-exp.y: New file.
4043
4044 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4045
4046 * infrun.c (signal_stop_update): Convert definition to ISO C.
4047 (signal_print_update): Ditto.
4048 (signal_pass_update): Ditto.
4049 * inflow.c (terminal_save_ours): Ditto.
4050
4051 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4052 comments.
4053
4054 * config/djgpp/fnchange.lst: Handle name clashes between
4055 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4056 bfd/coff-tic80.c.
4057
4058 * i386-linux-tdep.h: Fix tipo.
4059
4060 2002-09-18 Adam Fedor <fedor@gnu.org>
4061
4062 * MAINTAINERS: Add myself to the Write After Approval list.
4063
4064 2002-09-18 Jim Blandy <jimb@redhat.com>
4065
4066 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4067 texthigh and textlow to reader-specific structs caused
4068 objfile_relocate to miss them. This is fixable, but the work that
4069 the change was supposed to prepare GDB for never got done anyway.
4070
4071 2002-09-18 David Carlton <carlton@math.stanford.edu>
4072
4073 * MAINTAINERS: Alphabetize Write After Approval list.
4074
4075 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4076
4077 Fix PR gdb/709
4078 * values.c (value_static_field): Call read_var_value.
4079
4080 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4081
4082 * valops.c (hand_function_call): Align the initial stack pointer
4083 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4084 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4085 return value.
4086 * mips-tdep.c (mips_frame_align): New function.
4087 (mips_gdbarch_init): Set frame_align.
4088 * gdbarch.sh (FRAME_ALIGN): New method.
4089 * gdbarch.h, gdbarch.c: Re-generate.
4090
4091 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4092
4093 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4094 registers.
4095
4096 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4097
4098 * NEWS: Mention that MIPS $fp behavior changed.
4099 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4100 reference to FP_REGNUM.
4101 (mipsnbsd_cannot_store_register): Ditto.
4102 * mips-linux-nat.c: Update copyright.
4103 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4104 (mips_linux_cannot_store_register): Ditto.
4105 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4106 * config/mips/tm-mips.h: Update copyright.
4107 (FP_REGNUM): Delete macro.
4108 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4109 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4110 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4111 (mips_r3041_reg_names, mips_r3051_reg_names)
4112 (mips_r3081_reg_names): Replace "fp" with "".
4113 Fix PR gdb/480.
4114
4115 2002-09-17 Theodore A. Roth <troth@verinet.com>
4116
4117 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4118 generic_read_register_dummy() (PR gdb/703).
4119 (avr_push_return_address): #if 0 out unused vars.
4120 (avr_gdbarch_init): Enable use of avr_push_return_address().
4121
4122 2002-09-17 Michael Snyder <msnyder@redhat.com>
4123
4124 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4125 RTE will take care of it.
4126
4127 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4128
4129 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4130 invalid, return SP_REGNUM.
4131
4132 2002-09-17 Michael Snyder <msnyder@redhat.com>
4133
4134 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4135 point registers without sign extension.
4136
4137 2002-09-17 Andrew Cagney <cagney@redhat.com>
4138
4139 * blockframe.c (deprecated_read_register_dummy): Rename
4140 generic_read_register_dummy.
4141 * frame.c (frame_unwind_signed_register): New function.
4142 (frame_unwind_unsigned_register): New function.
4143 * frame.h (frame_unwind_signed_register): Declare.
4144 (frame_unwind_unsigned_register): Declare.
4145 (deprecated_read_register_dummy): Rename
4146 generic_read_register_dummy.
4147
4148 * h8300-tdep.c (h8300_frame_chain): Update.
4149 (h8300_frame_saved_pc): Update.
4150 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4151 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4152 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4153 (s390_frame_chain): Update.
4154 * v850-tdep.c (v850_find_callers_reg): Update.
4155 (v850_frame_saved_pc): Update.
4156 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4157 (m32r_find_callers_reg): Update.
4158 (m32r_frame_saved_pc): Update.
4159 * sh-tdep.c (sh_find_callers_reg): Update.
4160 (sh64_get_saved_pr): Update.
4161 (sh_init_extra_frame_info): Update.
4162 (sh_init_extra_frame_info): Update.
4163 (sh64_init_extra_frame_info): Update.
4164 (sh64_init_extra_frame_info): Update.
4165 * mcore-tdep.c (mcore_find_callers_reg): Update.
4166 (mcore_frame_saved_pc): Update.
4167 (mcore_init_extra_frame_info): Update.
4168 * i386-tdep.c (i386_frame_saved_pc): Update.
4169 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4170 (ia64_init_extra_frame_info): Update.
4171 (ia64_init_extra_frame_info): Update.
4172 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4173 * cris-tdep.c (cris_init_extra_frame_info): Update.
4174 * avr-tdep.c (avr_frame_chain): Update.
4175 (avr_init_extra_frame_info): Update.
4176 (avr_frame_saved_pc): Update.
4177 * arm-tdep.c (arm_find_callers_reg): Update.
4178 (arm_init_extra_frame_info): Update.
4179 (arm_frame_saved_pc): Update.
4180
4181 2002-09-17 Tom Tromey <tromey@redhat.com>
4182
4183 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4184 is "'".
4185
4186 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4187
4188 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4189 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4190 NEXT_PROLOGUE_INSN.
4191 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4192 NEXT_PROLOGUE_INSN.
4193
4194 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4195
4196 * osfsolib.c: Remove file, replaced by solib-osf.c.
4197 * Makefile.in: Remove compilation rules for osfsolib.c.
4198
4199 2002-09-16 David Carlton <carlton@math.stanford.edu>
4200
4201 * cp-valprint.c (cp_print_class_method): Correct args to
4202 check_stub_method_group.
4203
4204 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4205
4206 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4207 `set architecture'. Unify naming convention of functions.
4208 (h8300_skip_prologue): Improve prologue analysis.
4209 (h8300_push_arguments): Rewritten to more closely match GCC's
4210 bizarre argument-passing behavior, along with the comment describing
4211 said behavior.
4212 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4213 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4214 sim, remote-e7000.c, remote-hms.c and remote.c
4215
4216 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4217
4218 * i386-tdep.c (gdb_print_insn_i386): Removed.
4219 (i386_print_insn): New function.
4220 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4221 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4222 tm_print_insn_info.
4223
4224 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4225
4226 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4227 zero.
4228
4229 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4230
4231 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4232 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4233 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4234
4235 2002-09-13 Christopher Faylor <cgf@redhat.com>
4236
4237 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4238
4239 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4240
4241 * gdbtypes.c (check_stub_method): Make static.
4242 (check_stub_method_group): New function.
4243 * gdbtypes.h: Update prototypes.
4244 * cp-support.c: New file.
4245 * cp-support.h: New file.
4246
4247 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4248 (update_method_name_from_physname): New function.
4249 (read_member_functions): Correct method names for operators
4250 and v3 constructors/destructors. Separate v2 constructors and
4251 destructors.
4252 * Makefile.in (stabsread.o): Update dependencies.
4253 (SFILES): Add cp-support.c.
4254 (COMMON_OBS): Add cp-support.o.
4255 (cp_support_h, cp-support.o): Add.
4256
4257 * cp-valprint.c (cp_print_class_method): Call
4258 check_stub_method_group instead of check_stub_method. Remove
4259 extraneous QUITs.
4260 * p-valprint.c (pascal_object_print_class_method): Likewise.
4261 * valops.c (search_struct_method): Likewise.
4262 (find_method_list, value_struct_elt_for_reference): Likewise.
4263
4264 2002-09-13 Andrew Cagney <cagney@redhat.com>
4265
4266 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4267 * gdbarch.h, gdbarch.c: Regenerate.
4268
4269 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4270
4271 * frame.c (find_saved_register): Delete function.
4272 * frame.h (find_saved_register): Delete declaration.
4273 Fix PR gdb/631.
4274
4275 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4276
4277 * mips-tdep.c (read_next_frame_reg): Re-hack using
4278 frame_register_unwind.
4279
4280 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4281
4282 * mips-tdep.c (mips_get_saved_register): Re-hack using
4283 frame_register_unwind.
4284
4285 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4286
4287 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4288 vector. Will be useful for Interix.
4289 * gdbarch.h, gdbarch.c: Regenerate.
4290
4291 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4292 name of the malloc function by NAME_OF_MALLOC.
4293
4294 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4295
4296 * value.h (find_function_in_inferior): Add const keyword to
4297 one of the parameters. Allows us to invoke this function with
4298 a const char *.
4299 * valops.c (find_function_in_inferior): Likewise.
4300
4301 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4302
4303 * exec.c (xfer_memory): Fix compilation warning with old versions
4304 of GCC.
4305 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4306
4307 2002-09-12 David Carlton <carlton@math.stanford.edu>
4308
4309 * symtab.h: Run through gdb_indent.h.
4310 Add 2002 to Copyright year list.
4311
4312 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4313
4314 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4315 mach constants.
4316 * MAINTAINERS: Add myself to write after approval list.
4317
4318 2002-09-11 J. Brobecker <brobecker@gnat.com>
4319
4320 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4321
4322 2002-09-11 J. Brobecker <brobecker@gnat.com>
4323
4324 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4325 Interix.
4326
4327 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4328
4329 * procfs.c (do_detach): Clear current signal, not just fault.
4330 Corrects problem with breakpoint trap signal leaking to detached
4331 process on Tru64.
4332
4333 2002-09-10 Michael Snyder <msnyder@redhat.com>
4334
4335 * buildsym.c (finish_block): Protect against null pointer.
4336
4337 2002-09-10 Andrew Cagney <cagney@redhat.com>
4338
4339 * infcmd.c (default_print_registers_info): Send all output to
4340 ``file'' instead of ``gdb_stdout''.
4341
4342 2002-09-10 Michael Snyder <msnyder@redhat.com>
4343
4344 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4345 LONGEST, and use signed register read (addresses are sign-
4346 extended for mips).
4347
4348 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4349
4350 * event-loop.c (gdb_do_one_event): Make public.
4351 * event-loop.h (gdb_do_one_event): Declare.
4352
4353 2002-09-10 Jeff Law <law@redhat.com>
4354
4355 * infttrace.c (child_resume): Simplify and rework to avoid
4356 TT_PROC_CONTINUE.
4357
4358 2002-09-09 Fred Fish <fnf@intrinsity.com>
4359
4360 * printcmd.c (print_scalar_formatted): "len" is the number of
4361 target bytes, NOT the number of target bits.
4362
4363 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4364
4365 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4366 * top.c (init_main): Set rl_terminal_name.
4367
4368 2002-09-08 Aidan Skinner <aidan@velvet.net>
4369
4370 * ada-lang.c (ada_array_bound, ada_type_match,
4371 _initialize_ada_language): Fix K&R definitions.
4372 * ada-tasks.c (get_current_task): Fix K&R definitions.
4373 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4374
4375 2002-09-07 Christopher Faylor <cgf@redhat.com>
4376
4377 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4378 Add XP.
4379
4380 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4381
4382 * i386-tdep.c (i386_register_virtual_type,
4383 i386_register_convertible, i386_register_convert_to_virtual,
4384 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4385 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4386 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4387 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4388 Don't set push_arguments twice.
4389
4390 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4391 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4392 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4393 sigtramp_end to NULL.
4394 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4395 defines.
4396 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4397
4398 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4399 whitespace.
4400
4401 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4402 * gdbarch.h, gdbarch.c: Re-generate.
4403 * blockframe.c (find_pc_sect_partial_function): Convert to use
4404 SIGTRAMP_START_P predicate.
4405
4406 2002-09-05 Michael Snyder <msnyder@redhat.com>
4407
4408 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4409 generic_dummy_frame method and old method. Also distinguish
4410 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4411 (arm_extract_return_value): Use new regcache method.
4412
4413 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4414 adjustment that doesn't conform to the ABI.
4415 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4416 saved regcache, not from current regcache.
4417
4418 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4419
4420 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4421 * README: Update.
4422
4423 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4424
4425 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4426 if arm_apcs_32 is false.
4427
4428 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4429
4430 GDB 5.3 branch created.
4431
4432 2002-09-03 Theodore A. Roth <troth@verinet.com>
4433
4434 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4435 generic_unwind_get_saved_register.
4436
4437 2002-09-03 David Carlton <carlton@math.stanford.edu>
4438
4439 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4440 argument (PR gdb/653). Update call to smash_to_method_type.
4441 (read_structure_scope): Update call to dwarf2_add_member_fn.
4442
4443 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4444
4445 * x86-64-linux-tdep.c: Include gdb_string.h
4446 * x86-64-linux-nat.c: Ditto.
4447
4448 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4449
4450 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4451 when YYDEBUG is set to 1.
4452 * c-exp.y: Likewise.
4453 * f-exp.y: Likewise.
4454 * jv-exp.y: Likewise.
4455 * m2-exp.y: Likewise.
4456 * p-exp.y: Likewise.
4457
4458 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4459
4460 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4461 dependency list.
4462 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4463 solib_svr4_fetch_link_map_offsets to
4464 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4465 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4466 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4467 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4468 solib-svr4.o, and solib-legacy.o.
4469 * config/i386/tm-nbsd.h: Include solib.h.
4470
4471 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4472
4473 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4474 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4475 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4476 comment noting that this needs its own target configuration.
4477 * config/i386/nbsd.mt: New file.
4478 * config/i386/nbsdaout.mt: Remove.
4479 * config/i386/nbsdelf.mt: Ditto.
4480 * config/i386/tm-nbsdaout.h: Ditto.
4481
4482 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4483
4484 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4485 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4486 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4487 tdep->sigtramp_end.
4488 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4489 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4490 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4491
4492 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4493
4494 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4495 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4496 * i386-tdep.h (i386bsd_init_abi): New prototype.
4497 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4498 function declaration.
4499 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4500 for NetBSD-a.out or NetBSD-ELF.
4501 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4502 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4503 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4504 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4505 and nbsd-tdep.h.
4506 (i386nbsd_pc_in_sigtramp): New function.
4507 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4508 i386nbsd_pc_in_sigtramp.
4509 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4510 and i386nbsdelf_init_abi OS ABI handlers.
4511 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4512 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4513
4514 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4515
4516 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4517 registers if the target really has them.
4518
4519 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4520
4521 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4522 than nbsd-tdep.h.
4523
4524 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4525
4526 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4527 list.
4528 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4529 (alphanbsd_skip_sigtramp_frame): New functions.
4530 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4531 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4532 to alphanbsd_sigcontext_addr.
4533
4534 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4535
4536 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4537 list.
4538 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4539 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4540 nbsd_pc_in_sigtramp.
4541 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4542 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4543 * nbsd-tdep.c: Include gdb_string.h.
4544 (nbsd_pc_in_sigtramp): New function.
4545 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4546 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4547 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4548 ppcnbsd_pc_in_sigtramp.
4549 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4550 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4551 shnbsd_pc_in_sigtramp.
4552 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4553 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4554 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4555
4556 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4557
4558 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4559 watchpoints to NULL.
4560 (insert_breakpoints): set val field of watchpoints if NULL.
4561
4562
4563 2002-08-29 Jim Blandy <jimb@redhat.com>
4564
4565 * symtab.c (lookup_symbol_aux): In the cases where we find a
4566 minimal symbol of an appropriate name and use its address to
4567 select a symtab to read and search, use `name' (as passed to us)
4568 as the demangled name when searching the symtab's global and
4569 static blocks, not the minsym's name.
4570
4571 2002-08-29 Keith Seitz <keiths@redhat.com>
4572
4573 * stack.c (print_frame_info_base): Always set current_source_symtab
4574 and current_source_line.
4575
4576 2002-08-29 Donn Terry <donnte@microsoft.com>
4577
4578 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4579
4580 2002-08-28 Keith Seitz <keiths@redhat.com>
4581
4582 * stack.c (select_frame): Add FIXME concerning selected-frame
4583 events.
4584 (select_frame_command): Send selected-frame-level-changed
4585 event notification, but only if the level actually changed.
4586 (up_silently_base): Add selected-frame-level-changed event
4587 notification.
4588 (down_silently_base): Likewise.
4589
4590 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4591
4592 * Makefile.in: Update dependencies for all gdb/*.c files.
4593
4594 2002-08-27 Tom Tromey <tromey@redhat.com>
4595
4596 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4597 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4598 Update dependencies.
4599 * i387-tdep.c: Include gdb_string.h.
4600 * osabi.c: Likewise.
4601 * i386-linux-nat.c: Likewise.
4602 * lin-lwp.c: Likewise.
4603 * ax-gdb.c: Likewise.
4604 * signals/signals.c: Likewise.
4605 * jv-valprint.c: Likewise.
4606 * p-lang.c: Likewise.
4607 * c-valprint.c: Likewise.
4608 * cp-abi.c: Likewise.
4609
4610 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4611
4612 * cli/cli-script.h (copy_command_lines): Export.
4613 * breakpoint.c: Include cli/cli-script.h.
4614 * Makefile.in (breakpoint.o): Update dependencies.
4615
4616 2002-08-26 Michael Snyder <msnyder@redhat.com>
4617
4618 * breakpoint.c (insert_breakpoints): Protect all references
4619 to 'process_warning'. Shorten long lines.
4620
4621 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4622
4623 * cli/cli-script.c (copy_command_lines): New function.
4624 * defs.h (copy_command_lines): Export.
4625 * testsuite/gdb.base/commands.exp: New tests for commands
4626 attached to a temporary breakpoint, and for commands that
4627 delete the breakpoint they are attached to.
4628
4629 2002-08-26 Michael Snyder <msnyder@redhat.com>
4630
4631 * breakpoint.c (bpstat_stop_status): Instead of copying the
4632 pointer to the breakpoint commands struct, make a new copy
4633 of the struct and point to that.
4634 (bpstat_clear): Free the commands struct.
4635 (bpstat_clear_actions): Free the commands struct.
4636 (bpstat_do_actions): Free the command actions. Also execute
4637 the local cleanups, instead of deleting them.
4638 (delete_breakpoint): Leave the commands field of the bpstat
4639 chain alone -- it will be freed later.
4640
4641 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4642
4643 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4644 deleted in 2002-08-20 commit. This function is still used by
4645 ppc-linux-nat.c.
4646
4647 2002-08-26 Keith Seitz <keiths@redhat.com>
4648
4649 * gdb-events.sh: Add selected-frame-level-changed event.
4650 * gdb-events.c: Regenerated.
4651 * gdb-events.h: Regenerated.
4652
4653 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4654
4655 Fix PR gdb/393:
4656 * inflow.c (terminal_save_ours): New function to save terminal
4657 settings.
4658 * inferior.h (terminal_save_ours): Declare.
4659 * target.c (debug_to_terminal_save_ours): New function.
4660 (cleanup_target): Defaults to_terminal_save_ours.
4661 (update_current_target): Inherit to_terminal_save_ours.
4662 (setup_target_debug): Set to_terminal_save_ours.
4663 * target.h (target_terminal_save_ours): New to save terminal settings.
4664 (target_ops): New member to_terminal_save_ours.
4665 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4666 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4667 * inftarg.c (init_child_ops): Likewise.
4668 * m3-nat.c (init_m3_ops): Likewise.
4669 * procfs.c (init_procfs_ops): Likewise.
4670 * wince.c (init_child_ops): Likewise.
4671 * win32-nat.c (init_child_ops): Likewise.
4672 * sol-thread.c (init_sol_thread_ops): Likewise.
4673
4674 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4675
4676 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4677 use regcache_* functions.
4678 (i386_gdbarch_init): Set store_return_value instead of
4679 deprecated_store_return_value.
4680
4681 * regcache.c (regcache_raw_write_signed,
4682 regcache_raw_write_unsigned): New functions.
4683 * regcache.h (regcache_raw_write_signed,
4684 regcache_raw_write_unsigned): New prototypes.
4685
4686 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4687
4688 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4689 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4690 source file dependencies. Cleanup corresponding generator rules.
4691
4692 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4693
4694 * regcache.h (register_offset_hack): Declare.
4695 (regcache_cooked_read_using_offset_hack): Declare.
4696 (regcache_cooked_write_using_offset_hack): Declare.
4697
4698 * regcache.c (register_offset_hack): New function.
4699 (regcache_cooked_read_using_offset_hack): New function.
4700 (regcache_cooked_write_using_offset_hack): New function.
4701 (regcache_dump): Check that the registers, according to their
4702 offset, are packed hard against each other.
4703 (cooked_xfer_using_offset_hack): New function.
4704
4705 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4706
4707 * regcache.c (struct regcache_descr): Add field register_type.
4708 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4709 in as a parameter
4710 (init_regcache_descr): Initialize register_type. Pass the descr
4711 to init_legacy_regcache_descr. Use register_type instead of
4712 REGISTER_VIRTUAL_TYPE.
4713 (register_type): New function.
4714 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4715 * regcache.h (register_type): Declare.
4716
4717 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4718
4719 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4720 instead of deprecated_store_return_value. Fix fallout from
4721 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4722
4723 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4724
4725 * regcache.c (max_register_size): New function.
4726 (init_legacy_regcache_descr): Ensure that max_register_size is
4727 large enough for REGISTER_VIRTUAL_SIZE.
4728 * regcache.h (max_register_size): Declare.
4729
4730 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4731
4732 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4733 store_return_value.
4734 (e500_extract_return_value): Change type of valbuf pointer to
4735 void.
4736
4737 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4738
4739 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4740 workaround.
4741
4742 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4743 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4744 long long) to prevent compiler warning on 64-bit systems.
4745
4746 2002-08-23 Andrew Cagney <cagney@redhat.com>
4747
4748 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4749 (DEPRECATED_STORE_RETURN_VALUE): New method.
4750 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4751 * gdbarch.h, gdbarch.c: Re-generate.
4752
4753 * values.c (set_return_value): Pass current_regcache to
4754 STORE_RETURN_VALUE.
4755 * arch-utils.h (legacy_store_return_value): Declare.
4756 * arch-utils.c (legacy_store_return_value): New function.
4757 (legacy_extract_return_value): Update parameters.
4758
4759 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4760 STORE_RETURN_VALUE.
4761 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4762 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4763 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4764 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4765 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4766 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4767 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4768 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4769 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4770 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4771
4772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4773 * i386-tdep.c (i386_extract_return_value): Update.
4774 * arch-utils.c (legacy_extract_return_value): Update.
4775 * frv-tdep.c (frv_gdbarch_init): Update.
4776 * cris-tdep.c (cris_gdbarch_init): Update.
4777 * d10v-tdep.c (d10v_gdbarch_init): Update.
4778 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4779 * m68k-tdep.c (m68k_gdbarch_init): Update.
4780 * mcore-tdep.c (mcore_gdbarch_init): Update.
4781 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4782 * s390-tdep.c (s390_gdbarch_init): Update.
4783 * sparc-tdep.c (sparc_gdbarch_init): Update.
4784 * sh-tdep.c (sh_gdbarch_init): Update.
4785 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4786 * v850-tdep.c (v850_gdbarch_init): Update.
4787 * avr-tdep.c (avr_gdbarch_init): Update.
4788 * ia64-tdep.c (ia64_gdbarch_init): Update.
4789 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4790 * vax-tdep.c (vax_gdbarch_init): Update.
4791 * alpha-tdep.c (alpha_gdbarch_init): Update.
4792 * arm-tdep.c (arm_gdbarch_init): Update.
4793 * mips-tdep.c (mips_gdbarch_init): Update.
4794 * i386-tdep.c (i386_gdbarch_init): Update.
4795
4796 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4797
4798 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4799 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4800
4801 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4802
4803 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4804 problems.
4805
4806 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4807
4808 * infrun.c (handle_inferior_event): Move a comment outside of a
4809 function call, in order to avoid indent reformatting this part
4810 of the code in an unreadable way.
4811
4812 2002-08-23 Grace Sainsbury <graces@redhat.com>
4813
4814 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4815 when breakpoints fail. Move general breakpoint error messages to
4816 insert_breakpoints.
4817 * breakpoint.c (insert_breakpoints): Change warnings when
4818 breakpoints are nto inserted to specify the type. Remove call to
4819 memory_error when hardware breakpoints can't be inserted. Remove
4820 multiple calls to warning so all messages are sent to the user at
4821 once.
4822 (delete_breakpoints): Make insert error messsages more explicit.
4823
4824 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4825
4826 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4827 gdbserver/ChangeLog.
4828
4829 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4830
4831 * i386-tdep.c: Include "objfiles.h".
4832 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4833 skip_trampoline_code.
4834 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4835 (CPLUS_MARKER): Define to '.'.
4836
4837 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4838 member.
4839 (linux_corefile_thread_callback): Increase args->num_notes.
4840 (linux_make_note_section): Initialize thread_args.num_notes, and
4841 use it to determine whether notes for any threads were created.
4842
4843 2002-08-23 Donn Terry <donnte@microsoft.com>
4844
4845 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4846 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4847 and PCUNKILL.
4848 (write_with_trace): Conditionalize out the switch branch handling
4849 PCSHOLD if the corresponding macro is not defined. Likewise for
4850 PRSABORT and PRSTOP.
4851 This change will be needed by the Interix port.
4852
4853 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4854
4855 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4856 write_register wherever possible instead of manipulating the
4857 register bytes directly.
4858 Assign VALUE_CONTENTS to a variable and use that.
4859 The GPR numbers are now dependent on the architecture.
4860
4861 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4862
4863 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4864 ev_offset fields.
4865 (skip_prologue): Add support for BookE/e500 instructions.
4866 (e500_extract_return_value): New function.
4867 (frame_get_saved_regs): Add support for saving ev registers and
4868 pseudo gpr's.
4869 (e500_store_return_value): New function.
4870 (rs6000_gdbarch_init): Move up default intializations of
4871 deprecated_extract_return_value and store_return_value. Overwrite
4872 init of store_return_value with e500 specific version.
4873 Set extract_return_value for e500.
4874
4875 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4876
4877 * blockframe.c (generic_call_dummy_register_unwind): Use
4878 regcache_cooked_read to catch cases in which the variable is
4879 stored in a pseudo register.
4880
4881 2002-08-22 Andrew Cagney <cagney@redhat.com>
4882
4883 * NEWS: Mention that the i960 has been made obsolete.
4884 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4885 i960-tdep.c
4886 (remote-nrom.o): Obsolete target.
4887 (remote-nindy.o, i960-tdep.o): Ditto.
4888 * remote-nrom.c: Make file obsolete.
4889 * remote-nindy.c, remote-vx960.c: Ditto.
4890 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4891 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4892 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4893 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4894 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4895 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4896 i960-*-vxworks* obsolete.
4897 * MAINTAINERS: Note that the i960 is obsolete.
4898
4899 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4900
4901 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4902 detach to allow reinitialization.
4903
4904 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4905
4906 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4907 attempt).
4908
4909 2002-08-22 Jim Blandy <jimb@redhat.com>
4910
4911 * coffread.c (coff_symfile_read): Don't try to read the line
4912 number table from disk if the image file doesn't have a symbol
4913 table; we'll never actually look at the info anyway, and Windows
4914 ships DLL's with bogus file offsets for the line number data.
4915
4916 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4917
4918 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4919 an e500 executable.
4920
4921 2002-08-21 Michael Snyder <msnyder@redhat.com>
4922
4923 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4924 (MSYMBOL_SIZE): Replace macro with function.
4925 (DEFAULT_MIPS_TYPE): Delete unused macro.
4926 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4927 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4928
4929 2002-08-21 Jim Blandy <jimb@redhat.com>
4930
4931 * valops.c (value_cast): Simplify and correct logic for doing a
4932 static cast from a pointer to a base class to a pointer to a
4933 derived class.
4934
4935 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4936
4937 * infcmd.c (default_print_registers_info): Replace
4938 do_registers_info.
4939 (registers_info): Use gdbarch_print_registers_info instead of
4940 DO_REGISTERS_INFO.
4941 * inferior.h (default_print_registers_info): Replace
4942 do_registers_info.
4943 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4944 (DO_REGISTERS_INFO): Change to a predicate function.
4945 * gdbarch.h, gdbarch.c: Regenerate.
4946
4947 2002-08-21 Keith Seitz <keiths@redhat.com>
4948
4949 * gdb-events.sh: Add target-changed event.
4950 * gdb-events.c: Regenerated.
4951 * gdb-events.c: Regenerated.
4952 * valops.c (value_assign): Add target-changed event notification
4953 to inlval_register, lval_memory, and lval_reg_frame_relative.
4954
4955 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4956
4957 * NEWS: Add an entry regarding the improvement of the next/step
4958 operation on Alpha Tru64 multi-processor machines.
4959
4960 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4961
4962 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4963 directores.
4964 * Makefile.in: Update all _h macro definitions.
4965 * Makefile.in (install-gdbtk): Move to install section.
4966 (rdi-share/libangsd.a): Move to end of file.
4967
4968 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4969
4970 * frame.c (frame_register_unwind): When a register, set addrp to
4971 the register's byte.
4972
4973 2002-08-20 Michael Snyder <msnyder@redhat.com>
4974
4975 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4976 used locally, so move them from the target machine header to here.
4977 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4978 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4979 Make static.
4980 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4981
4982 2002-08-20 Andrew Cagney <cagney@redhat.com>
4983
4984 * NEWS: Mention that the Apollo line was made obsolete.
4985 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4986 m68*-hp-hpux* obsolete.
4987 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4988 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4989 * buildsym.c (make_blockvector): Make static.
4990 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4991 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4992 (ALLDEPFILES): Remove dstread.c.
4993 (dstread.o): Obsolete make rule.
4994 * dstread.c: Makefile obsolete.
4995 * dst.h: Ditto.
4996 * config/m68k/hp300hpux.mt: Ditto.
4997 * config/m68k/hp300hpux.mh: Ditto.
4998 * config/m68k/hp300bsd.mt: Ditto.
4999 * config/m68k/hp300bsd.mh: Ditto.
5000 * config/m68k/apollo68b.mt: Ditto.
5001 * config/m68k/apollo68v.mh: Ditto.
5002 * config/m68k/apollo68b.mh: Ditto.
5003
5004 2002-08-20 Michael Snyder <msnyder@redhat.com>
5005
5006 * mips-tdep.c (mips_in_return_stub): Make static.
5007 (mips_gdbarch_init): Set in_solib_return_trampoline.
5008 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5009
5010 2002-08-20 Michael Snyder <msnyder@redhat.com>
5011
5012 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5013 * gdbarch.c, gdbarch.h: Regenerate.
5014 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5015 Add.
5016 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5017
5018 2002-08-20 Michael Snyder <msnyder@redhat.com>
5019
5020 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5021 (mips_gdbarch_init): Set skip_trampoline_code,
5022 in_solib_call_trampoline.
5023 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5024 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5025
5026 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5027
5028 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5029
5030 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5031 vector type for ev registers.
5032 (e500_pseudo_register_read): New function.
5033 (e500_pseudo_register_write): New function.
5034 (e500_dwarf2_reg_to_regnum): New function.
5035 (PPC_UISA_NOFP_SPRS): New macro.
5036 (PPC_EV_REGS): New macro.
5037 (PPC_GPRS_PSEUDO_REGS): New macro.
5038 (registers_e500): New register set for e500.
5039 (variants): Add e500 variant.
5040 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5041 before setting architectural dependent variations. Initialize ev
5042 registers numbers. Add case for e500 architecture. Set the
5043 number of pseudo registers.
5044
5045 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5046
5047 * rs6000-tdep.c: Clean up comments.
5048
5049 2002-08-20 Andrew Cagney <cagney@redhat.com>
5050
5051 * h8300-tdep.c: Re-indent file.
5052
5053 2002-08-20 Jim Blandy <jimb@redhat.com>
5054
5055 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5056 default for this.
5057
5058 2002-08-20 Keith Seitz <keiths@redhat.com>
5059
5060 * breakpoints.c (watch_command_1): Use internal breakpoint
5061 when setting a watchpoint_scope breakpoint.
5062
5063 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5064
5065 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5066 (build_builtin_type_vec64i): Ditto.
5067 (build_builtin_type_vec128): Ditto.
5068 (build_builtin_type_vec128i): Ditto.
5069
5070 2002-08-19 Michael Snyder <msnyder@redhat.com>
5071
5072 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5073 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5074 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5075 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5076 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5077 CALL_DUMMY_ADDRESS): Delete.
5078 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5079 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5080 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5081 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5082 push_return_address.
5083 (mips_register_raw_size, mips_eabi_use_struct_convention,
5084 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5085 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5086 mips_init_extra_frame_info, mips_eabi_push_arguments,
5087 mips_n32n64_push_arguments, mips_push_return_address,
5088 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5089 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5090
5091 2002-08-19 Michael Snyder <msnyder@redhat.com>
5092
5093 * mips-tdep.c (mips_frame_num_args): New function.
5094 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5095 frame_saved_pc, frame_args_address, frame_locals_address,
5096 frame_num_args, and frame_args_skip.
5097 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5098 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5099 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5100 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5101
5102 2002-08-20 Michael Snyder <msnyder@redhat.com>
5103
5104 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5105 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5106 * mips-tdep.c (mips_store_struct_return): New function.
5107 (mips_extract_struct_value_address): New function.
5108 (mips_gdbarch_init): Set store_struct_return and
5109 extract_struct_value_address.
5110
5111 2002-08-20 David Carlton <carlton@math.stanford.edu>
5112
5113 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5114 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5115 (read_file_scope): Check that line_header is nonzero before
5116 decoding macro information.
5117
5118 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5119
5120 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5121 flag the general-purpose registers as floating-point on targets
5122 that don't support the floating-point registers.
5123
5124 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5125
5126 * rs6000-tdep.c (altivec_register_p): Delete.
5127 (rs6000_do_altivec_registers): Delete.
5128 (rs6000_altivec_registers_info): Delete.
5129 (rs6000_do_registers_info): Delete.
5130 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5131 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5132
5133 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5134
5135 * infcmd.c (do_registers_info): Print vector registers in hex
5136 format only.
5137 (print_vector_info): Check that printing registers
5138 makes sense.
5139 (print_float_info): Ditto.
5140
5141 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5142
5143 * mips-tdep.c (mips_gdbarch_init): Update.
5144 (mips_o32_extract_return_value): Rewrite.
5145 (mips_o32_store_return_value): Rewrite.
5146 (mips_o32_xfer_return_value): New function.
5147 (mips_xfer_register): Tweak debug print message. Allow for
5148 buf_offset when dumping the value transfered.
5149
5150 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5151
5152 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5153 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5154 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5155 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5156 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5157
5158 2002-08-14 Michael Snyder <msnyder@redhat.com>
5159
5160 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5161
5162 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5163
5164 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5165 register.
5166 (P): New macro to define a register as a pseudo register.
5167 (R, R4, R8, R16, FR32, R64, R0): Updated.
5168 (struct variant): Add new fields for number of pseudo registers
5169 and number of total registers.
5170 (tot_num_registers): New macro replacing....
5171 (num_registers): ...deleted macro.
5172 (num_registers): New function.
5173 (num_pseudo_registers): New function.
5174 (variants): Update all variants to intialize new fields correctly.
5175 Postpone initialization of number of pseudo regs and real regs.
5176 (init_variants): New function.
5177 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5178 registers offsets.
5179
5180 2002-08-19 David Carlton <carlton@math.stanford.edu>
5181
5182 * valops.c (search_struct_field): Change error message to treat
5183 return value of 0 from value_static_field as meaning that field is
5184 optimized out.
5185 (value_struct_elt_for_reference): Ditto.
5186 * values.c (value_static_field): Treat an unresolved location the
5187 same as a nonexistent symbol. Fix PR gdb/635.
5188 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5189 enclosed. Fix PR gdb/574.
5190 * MAINTAINERS: Add self to Write After Approval list.
5191
5192 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5193
5194 * mips-tdep.c (mips_xfer_register): New function.
5195 (mips_n32n64_extract_return_value): Rewrite.
5196 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5197 instead of deprecated_extract_return_value.
5198
5199 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5200
5201 * rs6000-tdep.c (TDEP): Delete macro.
5202 (branch_dest): Replace use of TDEP macro with its body.
5203 (rs6000_pop_frame): Ditto.
5204 (rs6000_push_arguments): Ditto.
5205 (rs6000_skip_trampoline_code): Ditto.
5206 (rs6000_frame_saved_pc): Ditto.
5207 (rs6000_frame_chain): Ditto.
5208 (rs6000_register_name): Ditto.
5209 (rs6000_register_byte): Ditto.
5210 (rs6000_register_raw_size): Ditto.
5211 (rs6000_register_virtual_type): Ditto.
5212 (rs6000_register_convertible): Ditto.
5213 (rs6000_convert_from_func_ptr_addr): Ditto.
5214
5215 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5216
5217 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5218 conditionally.
5219 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5220 MIPS_LINUX_JB_ELEMENT_SIZE.
5221 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5222 for MAX_REGISTER_RAW_SIZE arrays.
5223 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5224 MIPS_LINUX_JB_ELEMENT_SIZE.
5225
5226 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5227
5228 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5229
5230 2002-08-19 Aidan Skinner <aidan@velvet.net>
5231
5232 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5233 ada-valprint.c ada-tasks.c.
5234 (YYFILES): Add ada-exp.y.
5235 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5236 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5237 (ada-exp.tab.o): New target.
5238
5239 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5240
5241 * regcache.c (regcache_xfer_part): New function.
5242 (regcache_raw_read_part): New function.
5243 (regcache_raw_write_part): New function.
5244 (regcache_cooked_read_part): New function.
5245 (regcache_cooked_write_part): New function.
5246 * regcache.h (regcache_raw_read_part): Declare.
5247 (regcache_raw_write_part): Declare.
5248 (regcache_cooked_read_part): Declare.
5249 (regcache_cooked_write_part): Declare.
5250
5251 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5252
5253 * remote.c (remote_open_1): Add async_p.
5254 (remote_async_open_1): Delete.
5255 (open_remote_target): Delete.
5256 (remote_open, extended_remote_open): Update calls to remote_open_1.
5257 (remote_async_open, extended_remote_async_open): Call
5258 remote_open_1 instead of remote_async_open_1.
5259
5260 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5261
5262 * blockframe.c: Fix a few coding standard violations.
5263
5264 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5265
5266 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5267 here from ...
5268 * config/i386/tm-i386sco5.h: ... here. File removed.
5269 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5270
5271 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5272 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5273 (TM_FILE): Set to tm-i386.h.
5274 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5275 * config/i386/tm-i386v.h: Remove file.
5276 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5277 instead of "i386/tm-i386v.h".
5278 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5279 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5280 "i386/tm-i386v.h".
5281 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5282 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5283 "i386/tm-i386.h".
5284
5285 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5286
5287 * config/i386/nm-i386v.h: Add protection against
5288 multiple-inclusion.
5289 (i386_register_u_addr): Remove prototype.
5290 (register_u_addr): New prototype.
5291 (REGISTER_U_ADDR): Redefine accordingly.
5292 * i386v-nat.c: Improve several comments.
5293 (i386_register_u_addr): Change signature and rename to
5294 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5295 ubase variable.
5296
5297 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5298
5299 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5300 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5301 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5302 deprecated_extract_return_value.
5303 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5304 rename mips_o32o64_push_arguments.
5305 (mips_gdbarch_init): Update.
5306 (mips_extract_return_value): Delete.
5307 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5308 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5309 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5310 (mips_n32n64_extract_return_value): Clone
5311 mips_extract_return_value.
5312 (mips_store_return_value): Delete.
5313 (mips_o32_store_return_value): Clone mips_store_return_value.
5314 (mips_o64_store_return_value): Clone mips_store_return_value.
5315 (mips_eabi_store_return_value): Clone mips_store_return_value.
5316 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5317
5318 2002-08-18 Aidan Skinner <aidan@velvet.net>
5319
5320 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5321 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5322
5323 2002-08-18 Aidan Skinner <aidan@velvet.net>
5324
5325 * ada-lang.c: Run through gdb_indent.sh.
5326 * ada-lang.h: Run through gdb_indent.sh.
5327 * ada-tasks.c: Run through gdb_indent.sh.
5328 * ada-typeprint.c: Run through gdb_indent.sh.
5329 * ada-valprint.c: Run through gdb_indent.sh.
5330
5331 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5332
5333 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5334 ABI.
5335
5336 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5337
5338 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5339
5340 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5341 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5342
5343 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5344 write_register_gen instead of write_register_bytes.
5345
5346 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5347 i[3456]-*-osf1mk* configurations have been made obsolete.
5348 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5349 i[3456]86-*-osf1mk* hosts obsolete.
5350 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5351 targets obsolete.
5352 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5353 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5354 config/i386/i386m3.mt, config/i386/nm-m3.h,
5355 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5356 config/i386/i386mk.mh, config/i386/i386mk.mt,
5357 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5358 obsolete.
5359 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5360 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5361 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5362
5363 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5364
5365 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5366 (hppa_value_returned_from_stack): Declare.
5367 (hppa_extract_return_value): Declare.
5368 * config/pa/hppa.mt: New file.
5369 * configure.tgt: Recognize hppa*-*-*.
5370 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5371
5372 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5373
5374 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5375 comment.
5376
5377 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5378
5379 * top.c (gdb_rl_operate_and_get_next): Make sure
5380 operate-and-get-next functions correctly even when the history
5381 list is completely filled.
5382
5383 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5384
5385 * MAINTAINERS (Target Instruction Set Architectures): Rename
5386 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5387 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5388 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5389 already listed under Host/Native.
5390
5391 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5392 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5393 mips*-*-*.
5394
5395 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5396
5397 * config/ia64/ia64.mt: New file.
5398 * config/alpha/alpha.mt: New file.
5399 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5400 ia64-linux-gnu. Mention that ia64-elf is broken.
5401 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5402
5403 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5404
5405 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5406 generic_func_frame_valid instead of func_frame_valid.
5407
5408 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5409
5410 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5411 procfs appears to be broken when debugging on multi-processor
5412 machines. So enable software single stepping in order to avoid
5413 using the procfs interface to do next/step operations, using
5414 internal breakpoints instead.
5415
5416 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5417 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5418 make this pc address equal to the value it would have if the
5419 system stepping capability was used. Also set a new flag used
5420 to ensure that we don't readjust the PC one more time later.
5421
5422 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5423 address by DECR_PC_AFTER_BREAK when software single step is
5424 in use for this architecture, as this has already been taken
5425 care of in handle_inferior_event().
5426
5427 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5428
5429 * infrun.c (handle_inferior_event): Minor reformatting, to make
5430 a rather long condition expression easier to read.
5431
5432 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5433
5434 * Makefile.in (gdbtk.o): Move to end of file.
5435 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5436 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5437 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5438 (gdbtk-wrapper.o, gdbres.o): Ditto.
5439
5440 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5441
5442 * Makefile.in (copying.o): Separate out compile rule.
5443 (hpux-thread.o, procfs.o, signals.o): Ditto.
5444 (v850ice.o, z8k-tdep.o): Ditto.
5445 (tui-file.o): Move to TUI section.
5446 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5447 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5448
5449 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5450
5451 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5452 skip_trampoline_code, for better namespace-proofing.
5453
5454 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5455
5456 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5457
5458 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5459
5460 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5461
5462 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5463 signal, check whether we hit a breakpoint before checking for a
5464 single step breakpoint. Otherwise, GDB fails to notice that a
5465 breakpoint has been hit when stepping onto a breakpoint.
5466
5467 2002-08-16 Keith Seitz <keiths@redhat.com>
5468
5469 * gdb-events.sh (clear_gdb_event_hooks): New function.
5470 * gdb-events.c: Regenerate.
5471 * gdb-events.h: Regenerate.
5472
5473 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5474
5475 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5476 not_a_sw_breakpoint.
5477 * breakpoint.h (bpstat_stop_status): Add parameter names.
5478
5479 2002-08-16 Grace Sainsbury <graces@redhat.com>
5480
5481 * remote.c (remote_insert_hw_breakpoint)
5482 (remote_remove_hw_breakpoint): Fix calculation of length field
5483 for Z-packet.
5484
5485 2002-08-15 Michael Snyder <msnyder@redhat.com>
5486
5487 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5488 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5489 (supply_fpregset): Ditto.
5490
5491 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5492 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5493 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5494 (TARGET_READ_SP): Delete.
5495 (DO_REGISTERS_INFO): Delete.
5496 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5497 Delete.
5498 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5499 from macros to functions.
5500
5501 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5502 (mips_register_convertible, mips_register_convert_to_virtual,
5503 mips_register_convert_to_raw): Make static.
5504 (mips_read_sp): New function.
5505 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5506 (mips_do_registers_info): Make static.
5507 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5508 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5509 (mips_register_convert_from_type, mips_register_convert_to_type):
5510 New functions.
5511 (mips_gdbarch_init): Set up function_start_offset,
5512 register_virtual_size, pc_in_sigtramp.
5513
5514 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5515
5516 * infcmd.c (vector_info): New function.
5517 (_initialize_infcmd): Add command "info vector".
5518 (print_vector_info): New function.
5519
5520 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5521 * gdbarch.h, gdbarch.c: Regenerate.
5522
5523 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5524
5525 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5526 ``print_all''. Only print vector registers when ``print_all''.
5527
5528 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5529
5530 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5531 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5532
5533 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5534 Add `args' parameter.
5535 * gdbarch.h, gdbarch.c: Regenerate.
5536
5537 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5538
5539 * infcmd.c (float_info): Call print_float_info.
5540 (print_float_info): New function. By default, print the
5541 floating-point registers.
5542
5543 * arch-utils.h (default_print_float_info): Delete declaration.
5544 * arch-utils.c (default_print_float_info): Delete function.
5545
5546 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5547
5548 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5549 out define.
5550
5551 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5552 FRAME.
5553
5554 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5555 * configure.host: Make i[3456]86-*-aix host obsolete.
5556 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5557 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5558 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5559 config/i386/xm-i386aix.h: Make files obsolete.
5560 * i386aix-nat.c: Make file obsolete.
5561 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5562 (i386aix-nat.o): Make target obsolete.
5563
5564 * config/i386/nm-gnu.h: Removed.
5565 * config/i386/nm-i386gnu.h: New file.
5566 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5567 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5568 Moved here from ...
5569 * config/i386/tm-i386gnu.h: ... here. Removed.
5570 * config/i386/xm-i386gnu.h: Removed.
5571 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5572 (NAT_FILE): Set to nm-i386gnu.h.
5573 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5574 * i386-tdep.c: New file.
5575 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5576 (i386gnu-tdep.o): Specify dependencies.
5577
5578 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5579
5580 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5581 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5582 Adjust a few comments to reflect reality a bit closer.
5583 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5584 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5585 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5586 target_insert_watchpoint, target_remove_watchpoint):
5587 Move defines to ...
5588 * config/i386/nm-i386sco5.h: ... here.
5589 (kernel_u_size): Add prototype. Improve a few comments and add
5590 protection against multiple inclusion.
5591
5592 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5593 out define.
5594
5595 * uw-thread.c (SP_ARG0): Define if not already defined.
5596 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5597
5598 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5599
5600 * config/i386/tm-i386.h: Don't include "regcache.h".
5601
5602 * i387-tdep.h (i387_print_float_info): New prototype.
5603 * i387-tdep.c (print_i387_value, print_i387_ext,
5604 print_i387_status_word, print_i387_control_word): Add `struct
5605 ui_file *' argument and use it for output.
5606 (i387_print_float_info): Renamed from i387_float_info. Add
5607 `struct gdbarch *' and `struct ui_file *' arguments and use the
5608 latter for output.
5609 * i386-tdep.c: Include "i387-tdep.h".
5610 (i386_gdbarch_init): Set print_float_info.
5611 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5612 (FLOAT_INFO): Remove define.
5613
5614 2002-08-13 Michael Snyder <msnyder@redhat.com>
5615
5616 * mips-tdep.c (mips_push_arguments): Rename to
5617 mips_eabi_push_arguments, and tune for EABI.
5618 (MIPS_REGS_HAVE_HOME_P): Delete.
5619 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5620 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5621 Delete references to mips_regs_have_home_p.
5622
5623 2002-08-14 Keith Seitz <keiths@redhat.com>
5624
5625 * Makefile.in (install-gdbtk): Create insight plugin directory.
5626 Install plugins.tcl file.
5627
5628 2002-08-14 Keith Seitz <keiths@redhat.com>
5629
5630 * configure.in: Move SUBDIRS to near top of the file so that
5631 --enable options may add things to it.
5632 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5633 * configure: Regenerate.
5634
5635 2002-08-13 Michael Snyder <msnyder@redhat.com>
5636
5637 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5638 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5639 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5640
5641 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5642
5643 * vax-tdep.c (vax_get_saved_register): Delete function.
5644 (vax_gdbarch_init): Update.
5645 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5646 (ns32k_gdbarch_init): Update.
5647 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5648 (alpha_gdbarch_init): Update.
5649
5650 2002-08-13 Andrew Cagney <cagney@redhat.com>
5651
5652 * regcache.c (init_regcache_descr): Overallocate the
5653 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5654 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5655 nr_raw_registers.
5656 (set_register_cached): Add range checking assertions. Use
5657 current_regcache.
5658
5659 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5660
5661 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5662 numbers for MMX registers.
5663
5664 2002-08-13 Andrew Cagney <cagney@redhat.com>
5665
5666 * i386-tdep.c (i386_gdbarch_init): Use
5667 generic_unwind_get_saved_register.
5668
5669 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5670
5671 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5672 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5673 target vector.
5674 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5675 Delete. Add comment regarding this now-deleted target method.
5676
5677 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5678
5679 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5680 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5681 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5682 real PC and the page number (if it's within the memory bank window).
5683 (m68hc11_pseudo_register_write): Likewise when saving.
5684 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5685 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5686 (m68hc11_register_raw_size): And use 32-bit for it.
5687 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5688 16K memory bank is used by the prog; also use the virtual pc.
5689
5690 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5691
5692 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5693 (m68hc11_gdbarch_init): Install it in gdbarch.
5694 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5695 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5696 (MSYMBOL_SIZE): New for documentation.
5697 (insn_return_kind): Enum to specify how a function returns.
5698 (frame_extra_info): Cleanup and record the return mode.
5699 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5700 register in address computation.
5701 (m68hc11_get_return_insn): New to obtain the return instruction used
5702 by the function.
5703 (m68hc11_frame_init_saved_regs): Take into account the return
5704 instruction used by the function for far and interrupt functions.
5705 (m68hc11_init_extra_frame_info): Take into account page register.
5706 (m68hc11_frame_args_address): Adjust according to the return mode.
5707 (show_regs): Print page register only when it's used.
5708
5709 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5710
5711 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5712 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5713 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5714 registers.
5715 (m68hc11_register_raw_size): Likewise.
5716
5717 2002-08-13 Andrew Cagney <cagney@redhat.com>
5718
5719 * i386-tdep.c (i386_register_name): Handle mmx registers.
5720 (mmx_regnum_p): New function.
5721 (i386_mmx_names): New array.
5722 (mmx_num_regs): New variable.
5723 (i386_pseudo_register_read): New function.
5724 (i386_pseudo_register_write): New function.
5725 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5726
5727 * regcache.c (regcache_raw_read_unsigned): New function.
5728 (regcache_raw_read_signed): New function.
5729 * regcache.h (regcache_raw_read_unsigned): Declare.
5730 (regcache_raw_read_signed): Declare.
5731
5732 2002-08-13 Andrew Cagney <cagney@redhat.com>
5733
5734 * regcache.c (regcache_raw_read_as_address): Delete function.
5735 (regcache_cooked_read_signed): New function.
5736 (regcache_cooked_read_unsigned): New function.
5737 * regcache.h (regcache_cooked_read_signed): Declare.
5738 (regcache_cooked_read_unsigned): Declare.
5739 (regcache_raw_read_as_address): Delete declaration.
5740
5741 * blockframe.c (generic_read_register_dummy): Use
5742 regcache_cooked_read_unsigned.
5743 * i386-tdep.c (i386_extract_struct_value_address): Use
5744 regcache_cooked_read_unsigned.
5745
5746 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5747
5748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5749 double sizes according to ELF ABI flags.
5750 (gdbarch_tdep): Record elf_flags.
5751
5752 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5753
5754 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5755 (m6812_prolog): They can appear in 68HC12 function prologue.
5756 (m68hc11_frame_chain): Cleanup.
5757
5758 2002-08-12 Andrew Cagney <cagney@redhat.com>
5759
5760 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5761 declarations.
5762 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5763 (i386_linux_register_raw_size): Delete function.
5764 (i386_linux_init_abi): Update.
5765 * i386-tdep.c (i386_register_raw_size): Delete function.
5766 (i386_register_byte): Delete function.
5767 (i386_gdbarch_init): Update.
5768 (i386_register_size): Delete array.
5769 (i386_register_offset): Delete array.
5770
5771 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5772 (REGISTER_RAW_SIZE): Delete macro.
5773 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5774 (REGISTER_BYTE): Delete macro.
5775
5776 2002-08-11 Aidan Skinner <aidan@velvet.net>
5777
5778 * ada-lang.c (ada_lookup_partial_symbol)
5779 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5780 prototype names so that grep ^func works properly.
5781
5782 * ada-lang.c (ada_array_element_type)
5783 (ada_lookup_partial_symbol): Fix typos in parameter list.
5784
5785 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5786 Fix prototype names so that grep ^func works properly.
5787
5788 2002-08-10 Andrew Cagney <cagney@redhat.com>
5789 Elena Zannoni <ezannoni@redhat.com>
5790 Martin M. Hunt <hunt@redhat.com>
5791
5792 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5793 (build_builtin_type_vec128i): Set the vector bit.
5794 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5795 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5796 (build_builtin_type_vec64): New function.
5797 (build_builtin_type_vec64i): New function.
5798 (build_gdbtypes): Initialize builtin_type_vec64 and
5799 builtin_type_vec64i.
5800
5801 2002-08-09 Andrew Cagney <cagney@redhat.com>
5802
5803 * regcache.c (regcache_dump): Compare the register offset
5804 with REGISTER_BYTE.
5805 * arch-utils.c (generic_register_byte): New function.
5806 * arch-utils.h (generic_register_byte): Declare.
5807 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5808 * gdbarch.h, gdbarch.c: Regenerate.
5809
5810 2002-08-09 Andrew Cagney <cagney@redhat.com>
5811
5812 * regcache.c: Include "gdbcmd.h"
5813 (_initialize_regcache): Add commands "maintenance print
5814 registers", "maintenance print raw-registers" and "maintenance
5815 print cooked-registers".
5816 (enum regcache_dump_what): Define.
5817 (dump_endian_bytes): New function.
5818 (regcache_dump): New function.
5819 (regcache_print): New function.
5820 (maintenance_print_registers): New function.
5821 (maintenance_print_raw_registers): New function.
5822 (maintenance_print_cooked_registers): New function.
5823 * Makefile.in (regcache.o): Update dependencies.
5824
5825 2002-08-09 Michael Snyder <msnyder@redhat.com>
5826
5827 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5828 (mips_push_arguments): Correct some comments. Use paddr_nz
5829 for printing addresses in debug output. Replace static
5830 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5831 (mips_n32n64_push_arguments): New function, cloned from
5832 mips_push_arguments and tuned for the n32/n64 ABI.
5833 (mips_push_register): Buffer needs dynamic allocation.
5834 (mips_print_register): Ditto.
5835 (do_gp_register_row): Ditto.
5836 (mips_store_return_value): Ditto.
5837 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5838
5839 2002-08-09 Don Howard <dhoward@redhat.com>
5840
5841 * memattr.c (mem_info_command): Print special case of upper bound
5842 as max CORE_ADDR + 1.
5843
5844 2002-08-08 Michael Snyder <msnyder@redhat.com>
5845
5846 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5847 returns structs by ref if they're too big to fit in two registers.
5848
5849 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5850
5851 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5852 saved regs value.
5853 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5854 mips_find_saved_regs().
5855 (mips_pop_frame): Likewise.
5856
5857 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5858
5859 * blockframe.c (frame_saved_regs_register_unwind): Revise
5860 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5861 frames are in use.
5862
5863 2002-08-09 Grace Sainsbury <graces@redhat.com>
5864
5865 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5866 T-packets; the 'a' is not taken as a register number.
5867 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5868 (remote_stopped_data_address): New functions; add to target
5869 vector.
5870 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5871 prototypes to match other implementations of this
5872 function. replace integer argument with pointer -- the length
5873 field in the Z-packet is the length of what is pointed to or 1 if
5874 pointer is null. Add to target vector.
5875 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5876 target vector.
5877
5878 From Mark Salter:
5879 * remote.c (remote_wait): Add support to extract optional
5880 watchpoint information from T-packet. Ignore unrecognized
5881 optional info in T-packet.
5882 (remote_async_wait): Ditto.
5883
5884 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5885
5886 * cli/cli-dump.c: Change fopen modes to use binary open modes
5887 as defined in include/fopen-bin.h throughout.
5888
5889 2002-08-08 Michael Snyder <msnyder@redhat.com>
5890
5891 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5892
5893 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5894
5895 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5896 assertion failure by returning early after a warning.
5897
5898 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5899
5900 * mips-tdep.c (mips_find_saved_regs): Make static.
5901 (mips_frame_init_saved_regs): New function.
5902 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5903 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5904 (mips_find_saved_regs): Delete declaration.
5905
5906 2002-08-08 Grace Sainsbury <graces@redhat.com>
5907
5908 * remote.c (remote_wait, remote_async_wait): Change
5909 thread_num from int to ULONGEST.
5910 (unpack_varlen_hex): Change result parameter from
5911 int * to ULONGEST *.
5912
5913 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5914
5915 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5916 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5917 powerpc*-*-*.
5918 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5919
5920 2002-08-08 Andrew Cagney <cagney@redhat.com>
5921
5922 * gcore.c (override_derive_stack_segment): Delete variable.
5923 (preempt_derive_stack_segment): Delete function.
5924 (derive_stack_segment): Delete function.
5925 (default_derive_stack_segment): Renamed to derive_stack_segment.
5926 (override_derive_heap_segment): Delete variable.
5927 (preempt_derive_heap_segment): Delete function.
5928 (derive_heap_segment): Delete function.
5929 (default_derive_heap_segment): Rename to derive_heap_segment.
5930
5931 2002-08-06 Michael Snyder <msnyder@redhat.com>
5932
5933 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5934 * mips-tdep.c (mips_EABI_use_struct_convention,
5935 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5936 New functions. (mips_use_struct_convention): Delete.
5937 (mips_gdbarch_init): set use_gdbarch_convention.
5938
5939 2002-08-06 Michael Snyder <msnyder@redhat.com>
5940
5941 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5942 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5943 mips_o32_reg_struct_has_addr): New functions.
5944 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5945
5946 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5947
5948 * regcache.c (pseudo_register): Delete function.
5949 (fetch_register): Delete function.
5950 (store_register): Delete function.
5951 (regcache_raw_read, legacy_read_register_gen): Use
5952 target_fetch_registers instead of fetch_register.
5953 (legacy_write_register_gen, regcache_raw_write): Use
5954 target_store_register instead of store_register.
5955 (write_register_bytes): Ditto.
5956
5957 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5958 (STORE_PSEUDO_REGISTER): Delete.
5959 * gdbarch.h, gdbarch.c: Regenerate.
5960
5961 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5962
5963 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5964 write dump file binary.
5965
5966 2002-08-05 Michael Snyder <msnyder@redhat.com>
5967
5968 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5969 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5970 (mips_gdbarch_init): Set N32 target to be mips64.
5971
5972 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5973
5974 * frame.c (find_saved_register): Break out of loop once saved
5975 register address is found. Don't mention sparc in loop comment
5976 anymore.
5977
5978 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5979
5980 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5981 mips_default_saved_regsize to 8.
5982
5983 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5984
5985 * gcore.c: Do not include <sys/procfs.h>.
5986 * Makefile.in (gcore.o): Update dependencies.
5987
5988 2002-08-06 Andrew Cagney <cagney@redhat.com>
5989
5990 * configure.tgt: Make arc-*-* obsolete.
5991 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5992 * MAINTAINERS: Make arc-elf obsolete.
5993 * arc-tdep.c: Make file obsolete.
5994 * config/arc/arc.mt: Ditto.
5995 * config/arc/tm-arc.h: Ditto.
5996
5997 2002-08-05 Theodore A. Roth <troth@verinet.com>
5998
5999 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6000
6001 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6002
6003 * mcore-tdep.c (mcore_gdbarch_init): Use
6004 generic_unwind_get_saved_register instead of
6005 generic_get_saved_register.
6006 * v850-tdep.c (v850_gdbarch_init): Ditto.
6007 * frv-tdep.c (frv_gdbarch_init): Ditto.
6008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6009 * s390-tdep.c (s390_gdbarch_init): Ditto.
6010 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6011 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6012 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6013
6014 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6015
6016 * objfiles.h: Add missing #include "symfile.h"
6017
6018 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6019
6020 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6021
6022 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6023 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6024 of FIELD_BITSIZE.
6025
6026 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6027
6028 * NEWS: Cleanup and nitpick.
6029
6030 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6031
6032 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6033
6034 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6035
6036 * Makefile.in (gdbtk-bp.o): Update dependencies.
6037 (gdbtk-register.o): Ditto.
6038 (gdbtk-varobj.o): Ditto.
6039
6040 2002-08-03 Andrew Cagney <cagney@redhat.com>
6041
6042 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6043 m68hc11_fetch_pseudo_register.
6044 (m68hc11_pseudo_register_write): Replace
6045 m68hc11_store_pseudo_register.
6046 (m68hc11_gdbarch_init): Update.
6047
6048 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6049
6050 * gdbarch.sh: Include "gdb_string.h".
6051 * gdbarch.c: Regenerate.
6052
6053 * regcache.c: Include "gdb_string.h".
6054 * ax-general.c: Ditto.
6055 * varobj.c: Ditto.
6056 * std-regs.c: Ditto.
6057 * fbsd-proc.c: Ditto.
6058 * thread.c: Ditto.
6059
6060 * Makefile.in (regcache.o): Update dependencies.
6061 (thread.o, gdbarch.o): Ditto.
6062 (ax-general.o, gdbarch.o): Ditto.
6063 (varobj.o, std-regs.o): Ditto.
6064 (fbsd-proc.o): Specify dependencies.
6065
6066 2002-08-02 Andrew Cagney <cagney@redhat.com>
6067
6068 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6069 regnum.
6070 (regcache_cooked_write): Ditto.
6071
6072 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6073
6074 * regcache.c (regcache_cooked_read): New function.
6075 (regcache_cooked_write): New function.
6076 (read_register_gen): Rewrite using regcache_cooked_read.
6077 (write_register_gen): Rewrite using regcache_cooked_write.
6078
6079 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6080 Declare.
6081
6082 2002-08-02 Andrew Cagney <cagney@redhat.com>
6083
6084 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6085 Replace the architecture methods register_read and register_write.
6086 * gdbarch.h, gdbarch.c: Regenerate.
6087 * regcache.c (init_regcache_descr): Update.
6088 (read_register_gen): Update.
6089 (write_register_gen): Update.
6090 (supply_register): Update comment.
6091
6092 * sh-tdep.c (sh_gdbarch_init): Update.
6093 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6094 `regcache' and `gdbarch' parameters. Make `buffer' a void
6095 pointer. Update code.
6096 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6097 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6098 void pointer. Update code.
6099 (sh64_register_write): Delete.
6100 (sh4_register_read): Delete.
6101 (sh64_register_read): Delete.
6102 (sh4_register_write): Delete.
6103 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6104 void pointer, `to' parameter a void pointer.
6105 (sh_sh64_register_convert_to_raw): Ditto.
6106
6107 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6108
6109 * mips-tdep.c (mips_register_virtual_type): Use architecture
6110 invariant return values.
6111
6112 2002-08-01 Andrew Cagney <cagney@redhat.com>
6113
6114 * linux-proc.c: Include "gdb_string.h".
6115 * Makefile.in (linux-proc.o): Update dependency list.
6116
6117 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6118
6119 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6120 comment.
6121
6122 2002-08-01 Grace Sainsbury <graces@redhat.com>
6123
6124 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6125 to_insert_watchpoint, to_remove_watchpoint,
6126 to_stopped_by_watchpoint, to_stopped_data_address,
6127 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6128 target vecctor. Define their corresponding macros so they call
6129 them.
6130
6131 * target.c: Add default and debug versions of for
6132 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6133 to_insert_watchpoint, to_remove_watchpoint,
6134 to_stopped_by_watchpoint, to_stopped_data_address,
6135 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6136
6137 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6138
6139 * mips-tdep.c (mips_register_virtual_type): New function.
6140 (mips_gdbarch_init): Register mips_register_virtual_type()
6141 with gdbarch machinery.
6142 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6143 this file instead of tm-bigmips.h.
6144 (MIPS_REGSIZE): Delete this macro.
6145 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6146 multiarch version in mips-tdep.c will be found.
6147
6148 2002-08-01 Andrew Cagney <cagney@redhat.com>
6149
6150 * NEWS: Menion that CHILL has been made obsolete.
6151
6152 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6153 * stabsread.c (read_range_type): Ditto.
6154 * gdbtypes.h: Ditto.
6155 * language.c (binop_type_check): Ditto.
6156 (binop_result_type): Ditto.
6157 (integral_type): Ditto.
6158 (character_type): Ditto.
6159 (string_type): Ditto.
6160 (boolean_type): Ditto.
6161 (structured_type): Ditto.
6162 (lang_bool_type): Ditto.
6163 (binop_type_check): Ditto.
6164 * language.h (_LANG_chill): Ditto.
6165 * dwarfread.c (set_cu_language): Ditto.
6166 * dwarfread.c (CHILL_PRODUCER): Ditto.
6167 * dwarfread.c (handle_producer): Ditto.
6168 * expression.h (enum exp_opcode): Ditto.
6169 * eval.c: Ditto for comments.
6170 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6171 * expprint.c (print_subexp): Ditto.
6172 (print_subexp): Ditto.
6173 * valops.c (value_cast): Ditto.
6174 (search_struct_field): Ditto.
6175 * value.h (COERCE_VARYING_ARRAY): Ditto.
6176 * symfile.c (init_filename_language_table): Ditto.
6177 (add_psymbol_with_dem_name_to_list): Ditto.
6178 * valarith.c (value_binop): Ditto.
6179 (value_neg): Ditto.
6180 * valops.c (value_slice): Ditto.
6181 * symtab.h (union language_specific): Ditto.
6182 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6183 (SYMBOL_DEMANGLED_NAME): Ditto.
6184 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6185 * defs.h (enum language): Ditto.
6186 * symtab.c (got_symtab): Ditto.
6187 * utils.c (fprintf_symbol_filtered): Ditto.
6188
6189 * ch-typeprint.c: Make file obsolete.
6190 * ch-valprint.c: Make file obsolete.
6191 * ch-lang.h: Make file obsolete.
6192 * ch-exp.c: Make file obsolete.
6193 * ch-lang.c: Make file obsolete.
6194
6195 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6196 CHILL_LIB.
6197 (TARGET_FLAGS_TO_PASS): Ditto.
6198 (CHILLFLAGS): Obsolete.
6199 (CHILL): Obsolete.
6200 (CHILL_FOR_TARGET): Obsolete.
6201 (CHILL_LIB): Obsolete.
6202 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6203 ch-valprint.c.
6204 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6205 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6206 ch-lang.o.
6207 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6208 targets.
6209
6210 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6211
6212 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6213 This does not change anything at the moment, but will be helpful
6214 later when full Ada support is integrated.
6215
6216 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6217
6218 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6219 help message.
6220
6221 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6222
6223 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6224 and save it in a local variable. Use variable in later test.
6225
6226 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6227
6228 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6229 test. (Thanks to Daniel Jacobowitz.)
6230
6231 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6232
6233 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6234 (mips_abi_strings): Add "n64".
6235 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6236
6237 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6238
6239 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6240 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6241
6242 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6243
6244 * utils.c (host_pointer_to_address, address_to_host_pointer):
6245 Use gdb_assert() instead of explicit call to internal_error().
6246
6247 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6248
6249 * Makefile.in (rs6000-nat.o): Update dependencies.
6250
6251 From Nicholas Duffek:
6252 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6253 (aix-thread.o): New rule.
6254 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6255 * config/powerpc/aix432.mh: New file.
6256
6257 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6258
6259 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6260 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6261 (fetch_core_registers, ppc_linux_supply_gregset)
6262 (ppc_linux_supply_fpregset): New functions.
6263 (ppc_linux_regset_core_fns): New.
6264 (_initialize_ppc_linux_tdep): Call add_core_fns.
6265 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6266 and ppc_linux_supply_gregset.
6267 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6268 (supply_fpregset): Call ppc_linux_supply_fpregset.
6269 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6270 corelow.o.
6271 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6272
6273 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6274
6275 * symtab.c (lookup_symbol): Demangle before lowercasing.
6276
6277 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6278
6279 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6280 declaration.
6281 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6282 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6283 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6284 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6285 "gdb_string.h".
6286 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6287 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6288 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6289 (avr-tdep.o, mon960-rom.o): Ditto.
6290 (aout_stabs_gnu_h): Define.
6291 (symtab_h): Remove $(gdb_obstack_h).
6292
6293 2002-07-30 Jim Blandy <jimb@redhat.com>
6294
6295 Patch from David Carlton <carlton@math.stanford.edu>:
6296 * gdbinit.in: Move the `dir' commands that add GDB's own source
6297 directory to the search path to the end, so that the `gdb' source
6298 directory will be searched first.
6299
6300 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6301
6302 * gdb_obstack.h: New file.
6303 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6304 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6305 * objfiles.h: Include "gdb_obstack.h".
6306 * Makefile.in (gdb_obstack_h): Define.
6307 (symtab_h): Add $(gdb_obstack_h).
6308 (objfiles_h): Add $(gdb_obstack_h).
6309
6310 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6311 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6312 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6313 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6314 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6315 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6316 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6317 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6318
6319 * Makefile.in (bcache.o): Update dependencies.
6320 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6321 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6322 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6323 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6324 (stabsread.o, symfile.o, symmisc.o): Ditto.
6325 (symtab.o, typeprint.o, macroexp.o): Ditto.
6326 (macrotab.o, mdebugread.o): Ditto.
6327 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6328 (coff_ecoff_h, aout_aout64_h): Define.
6329 (aout_stabs_gnu_h, libaout_h): Define.
6330
6331 2002-07-29 Andrew Cagney <cagney@redhat.com>
6332
6333 * regcache.c (struct regcache_descr): Rename nr_registers to
6334 nr_cooked_registers. Revise comments describing the structure
6335 member fields.
6336 (init_regcache_descr): Update.
6337 (init_legacy_regcache_descr): Update.
6338 (read_register_gen, write_register_gen): When a cooked register in
6339 the raw register range, directly access the value from the raw
6340 register cache.
6341
6342 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6343
6344 * z8k-tdep.c: Do not include "obstack.h".
6345 * h8300-tdep.c, h8500-tdep.c: Ditto.
6346 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6347 * valprint.c, v850-tdep.c: Ditto.
6348 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6349 * mn10200-tdep.c: Ditto.
6350
6351 * Makefile.in (z8k-tdep.o): Update dependencies.
6352 (m68hc11-tdep.o, valprint.o): Ditto.
6353 (v850-tdep.o, d10v-tdep.o): Ditto.
6354 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6355 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6356 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6357 (sh_opc_h, gdb_sim_sh_h): Define.
6358 (elf_sh_h, elf_bfd_h): Define.
6359 (opcode_m68hc11_h): Define.
6360 (OPCODES_SRC, OPCODES_DIR): define.
6361 (OPCODES): Use $(OPCODES_DIR).
6362 (gdb_sim_d10v_h): Rename sim_d10v_h.
6363 (gdb_sim_arm_h): Rename sim_arm_h.
6364
6365 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6366
6367 * utils.c (host_pointer_to_address, address_to_host_pointer):
6368 Change internal_error() message to indicate function responsible
6369 for the error.
6370
6371 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6372
6373 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6374 calls to local_hex_string_custom().
6375
6376 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6377
6378 * irix5-nat.c: Move IRIX shared library support from here...
6379 * solib-irix.c: ...to here. Revised substantially to work with
6380 generic solib framework.
6381
6382 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6383 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6384 * mips-irix-tdep.c: New file.
6385
6386 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6387 (mips-irix-tdep.o, solib-irix.o): New rules.
6388 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6389 solib-irix.o.
6390 * config/mips/irix6.mt (TDEPFILES): Likewise.
6391 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6392
6393 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6394
6395 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6396 disabled (via ``#if 0'') includes.
6397
6398 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6399
6400 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6401 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6402 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6403 Add support for the fpscr register.
6404 * rs6000-nat.c (regmap, fetch_inferior_registers)
6405 (store_inferior_registers, fetch_core_registers): Likewise.
6406
6407 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6408
6409 * rs6000-nat.c (language.h): Include.
6410 (special_regs): Delete this array.
6411 (regmap): New function.
6412 (fetch_register, store_register): Use regmap() to map gdb
6413 register numbers to ptrace register numbers. Also, use
6414 outputs from regmap() to make decisions regarding type of
6415 ptrace() call to make. In particular, don't compare against
6416 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6417 (fetch_inferior_registers, store_inferior_registers): Where
6418 possible, obtain register numbers from tdep struct. Don't
6419 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6420 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6421 (LAST_UISA_SP_REGNUM): Delete.
6422
6423 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6424
6425 * rs6000-nat.c (ppc-tdep.h): Include.
6426 (fetch_registers, store_register, fetch_core_registers): Don't
6427 access registers[] directly. Instead, use supply_register() or
6428 regcache_collect() as appropriate.
6429 (find_toc_address): Format hex address with local_hex_string().
6430
6431 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6432
6433 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6434 bfd/elf32-frv.c.
6435
6436 2002-07-24 Tom Tromey <tromey@redhat.com>
6437
6438 * jv-exp.y: Marked all strings with _().
6439 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6440 internal_error.
6441 (MethodInvocation, CastExpression, parse_number, yyerror,
6442 java_type_from_name, push_expression_name, yylex): Typo fixes.
6443
6444 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6445
6446 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6447 (tee_file_flush, tee_file_write, tee_file_fputs)
6448 (tee_file_isatty): New.
6449 * ui-file.h (tee_file_new): Add prototype.
6450
6451 2002-07-24 Aidan Skinner <aidan@velvet.net>
6452
6453 * ada-lang.c: Change k&r style function definitions to prototyped
6454 form.
6455 * ada-typeprint.c: Change k&r style function definitions to prototyped
6456 form.
6457 * ada-valprint.c: Change k&r style function definitions to prototyped
6458 form.
6459
6460 2002-07-24 Andrew Cagney <cagney@redhat.com>
6461
6462 * README: Remove reference to remote-bug.
6463 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6464 remote-bug.c.
6465 (m88k-nat.o): Delete rule.
6466 (m88k-tdep.o): Delete rule.
6467 (remote-bug.o): Delete rule.
6468 * MAINTAINERS: Mark as obsolete.
6469 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6470 * m88k-tdep.c: Make file obsolete.
6471 * config/m88k/m88k.mh: Ditto.
6472 * config/m88k/delta88v4.mh: Ditto.
6473 * config/m88k/delta88v4.mt: Ditto.
6474 * config/m88k/delta88.mt: Ditto.
6475 * config/m88k/delta88.mh: Ditto.
6476 * remote-bug.c: Ditto.
6477 * config/m88k/tm-delta88.h: Ditto.
6478 * config/m88k/nm-delta88v4.h: Ditto.
6479 * config/m88k/xm-delta88.h: Ditto.
6480 * config/m88k/xm-dgux.h: Ditto.
6481 * config/m88k/tm-m88k.h: Ditto.
6482 * config/m88k/nm-m88k.h: Ditto.
6483 * config/m88k/tm-delta88v4.h: Ditto.
6484 * m88k-nat.c: Ditto.
6485 * cxux-nat.c: Ditto.
6486 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6487 and m88*-*-* obsolete.
6488 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6489 m88*-*-* obsolete.
6490
6491 2002-07-24 Andrew Cagney <cagney@redhat.com>
6492
6493 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6494 constant. Same for local pointer variables.
6495 (extract_signed_integer): Ditto.
6496 * defs.h (extract_unsigned_integer): Update.
6497 (extract_signed_integer): Update.
6498
6499 2002-07-24 Andrew Cagney <cagney@redhat.com>
6500
6501 * regcache.c (regcache_raw_write): Change buf parameter to a
6502 constant void pointer.
6503 (regcache_raw_read): Change buf parameter to a void pointer.
6504 (legacy_write_register_gen): Change myaddr parameter a constant
6505 void pointer.
6506 (supply_register): Change val parameter to a const void pointer.
6507 * regcache.h (regcache_raw_write): Update declaration.
6508 (regcache_raw_read): Update declaration.
6509 (supply_register): Update declaration.
6510
6511 2002-07-24 Tom Tromey <tromey@redhat.com>
6512
6513 * defs.h (gdb_readline_wrapper): Declare.
6514 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6515 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6516 * top.c (gdb_readline_wrapper): New function.
6517 (command_line_input): Use it.
6518
6519 2002-07-24 Andrew Cagney <cagney@redhat.com>
6520
6521 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6522 regcache_read and regcache_write.
6523 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6524 * regcache.c: Update.
6525 * sh-tdep.c (sh64_push_arguments): Update comment.
6526 (sh_pseudo_register_read): Update.
6527 (sh_pseudo_register_write): Update.
6528 (sh4_register_read): Update.
6529 (sh4_register_write): Update.
6530 (sh64_pseudo_register_read): Update.
6531 (sh64_pseudo_register_write): Update.
6532 (sh64_register_read): Update.
6533 (sh64_register_write): Update.
6534 * i386-tdep.c (i386_extract_return_value): Update.
6535 (i386_extract_struct_value_address): Update.
6536 (i386_extract_return_value): Update.
6537 * blockframe.c (generic_read_register_dummy): Update.
6538 (generic_call_dummy_register_unwind): Update
6539 * infrun.c (write_inferior_status_register): Update.
6540
6541 2002-07-23 Jim Blandy <jimb@redhat.com>
6542
6543 * parser-defs.h (expression_context_pc): Make this extern.
6544 (Thanks to Michael Snyder.)
6545
6546 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6547
6548 GDB 5.2.1 released from 5.2 branch.
6549 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6550 * README: Update to mention 5.2.1.
6551
6552 2002-07-23 Mark Salter <msalter@redhat.com>
6553
6554 * remote.c (remote_read_bytes): Fix check for error.
6555
6556 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6557
6558 * aix-thread.c (language.h): Include.
6559 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6560 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6561 Print newlines at end of debug messages.
6562 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6563 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6564
6565 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6566
6567 * aix-thread.c (ppc-tdep.h): Include.
6568 (special_register_p): New function.
6569 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6570 (store_regs_user_thread): Use register number information from
6571 gdbarch_tdep struct instead of hardcoded offsets relative to
6572 FIRST_UISA_SP_REGNUM.
6573 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6574 special_register_p() instead of using FPLAST_REGNUM and
6575 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6576 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6577 will be MQ's register number.
6578
6579 2002-07-22 Michael Snyder <msnyder@redhat.com>
6580
6581 * aix-thread.c (ops): Rename to aix_thread_ops.
6582 (base_ops): Rename to base_target.
6583 (ops_attach): Rename to aix_thread_attach.
6584 (ops_detach): Rename to aix_thread_detach.
6585 (ops_resume): Rename to aix_thread_detach.
6586 (ops_wait): Rename to aix_thread_wait.
6587 (ops_kill): Rename to aix_thread_kill.
6588 (init_ops): Rename to init_aix_thread_ops.
6589 (ops_fetch_register): Rename to aix_thread_fetch_register.
6590 (ops_store_register): Rename to aix_thread_store_register.
6591 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6592 (ops_thread_alive): Rename to aix_thread_thread_alive.
6593 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6594 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6595 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6596 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6597 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6598 (store_regs_lib): Rename to store_regs_user_thread.
6599 (store_regs_kern): Rename to store_regs_kernel_thread.
6600
6601 2002-07-22 Michael Snyder <msnyder@redhat.com>
6602
6603 * aix-thread.c (ops_prepare_to_store): Eliminate.
6604 (init_ops): Don't initialize ops.prepare_to_store.
6605 (store_regs_kern): Pre-fetch register buffers from child,
6606 because some registers may not be in the cache. Copy
6607 regs from register cache only if they are cached.
6608 (store_regs_lib): Copy regs from register cache only
6609 if they are cached.
6610 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6611 fill_gprs64): Ditto.
6612
6613 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6614
6615 * aix-thread.c (gdb_assert.h): Include.
6616 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6617 register sizes (from register cache) match size of buffer holding
6618 register data.
6619 (fill_sprs32): Change parameter types to match those in the ptrace()
6620 buffer.
6621 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6622 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6623
6624 2002-07-22 Michael Snyder <msnyder@redhat.com>
6625
6626 * aix-thread.c (supply_sprs64): Cosmetic change.
6627 (supply_sprs32): Cosmetic change.
6628 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6629 (fill_sprs64): Use regcache_collect instead of read_register.
6630 (store_regs_lib): Use regcache_collect instead of
6631 read_register. Use fill_sprs32 instead of fill_sprs64,
6632 if debugging a 32-bit architecture.
6633 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6634 out of the register cache, instead of passing a pointer into
6635 the register cache directly to ptrace. Use regcache_collect
6636 insteaad of read_register.
6637 (ops_prepare_to_store): Use target_read_registers instead
6638 of read_register_bytes.
6639
6640 2002-07-20 Aidan Skinner <aidan@velvet.net>
6641
6642 * MAINTAINERS: Add self under write after approval.
6643
6644 2002-07-20 Aidan Skinner <aidan@velvet.net>
6645
6646 * ada-tasks.c: Change k&r style function definitions to prototyped
6647 form.
6648
6649 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6650
6651 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6652 * x86-64-tdep.c: Include "objfiles.h".
6653 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6654 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6655
6656 2002-07-17 Michal Ludvig <michal@suse.cz>
6657
6658 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6659 (update_context): Initialise cfa variable.
6660
6661 2002-07-17 Michael Snyder <msnyder@redhat.com>
6662
6663 * aix-thread.c: Shorten some long lines.
6664 Bring comments into line with code spec.
6665
6666 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6667
6668 * infrun.c: Re-indent using gdb_indent.sh.
6669
6670 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6671
6672 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6673 Leave the indentation temporarily untouched, to minimize the diffs.
6674
6675 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6676
6677 * stabsread.c: Make os9k sections of the code obsolete,
6678 for real this time.
6679 * stabsread.h: Make os9k sections of the code obsolete.
6680
6681 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6682
6683 * linux-low.c (regsets_store_inferior_registers): Add free()
6684 at the end of a loop to prevent memory leak.
6685 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6686 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6687 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6688 line a comment.
6689 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6690
6691 2002-07-17 Jim Blandy <jimb@redhat.com>
6692
6693 * macrocmd.c (info_macro_command): Remove newline from error
6694 message.
6695
6696 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6697
6698 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6699 (sh_gdbarch_init): Use it for sh-dsp.
6700
6701 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6702
6703 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6704 64-bit DWARF2 format.
6705
6706 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6707
6708 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6709 <sys/proc.h> when not available.
6710
6711 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6712
6713 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6714 * stabsread.c: Make os9k sections of the code obsolete.
6715 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6716 * config/i386/i386os9k.mt: Make file obsolete.
6717 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6718 (COMMON_OBS): Remove os9kread.o
6719 (SFILES): Remove os9kread.c.
6720 (os9kread.o, remote-os9k.o): Make target obsolete.
6721 * remote-os9k.c: Make file obsolete.
6722 * os9kread.c: Make file obsolete.
6723 * Makefile.in
6724
6725 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6726
6727 * NEWS: Mention that the FR30 has been made obsolete.
6728 * fr30-tdep.c: Make file obsolete.
6729 * config/fr30/tm-fr30.h: Ditto.
6730 * config/fr30/fr30.mt: Ditto.
6731 * configure.tgt: Make fr30-*-elf obsolete.
6732 * MAINTAINERS: Make fr30-elf obsolete.
6733
6734 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6735
6736 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6737 found is not inside a section.
6738
6739 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6740
6741 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6742 strerror().
6743 (pdc_realloc): Use xrealloc() instead of realloc().
6744
6745 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6746
6747 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6748 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6749 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6750 macros.
6751
6752 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6753
6754 * aix-thread.c (ptrace_check): Eliminate goto.
6755 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6756 problem.
6757
6758 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6759
6760 * aix-thread.c (gdbcmd.h): Include.
6761 (DEBUG, DBG, DBG2, dbg): Eliminate.
6762 (debug_aix_thread): New static global.
6763 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6764 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6765 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6766 invocations to DBG and DBG2 macros to test against
6767 ``debug_aix_thread'' and call fprintf_unfiltered().
6768 (_initialize_aix_thread): Add new command "set debug aix-thread".
6769
6770 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6771
6772 From Gerhard Tonn <TON@de.ibm.com>:
6773 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6774 instead of supply_register.
6775
6776 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6777
6778 * dwarf2cfi.c: Include "gdb_assert.h".
6779 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6780 non-NULL.
6781 (update_context): Do not use __func__. Add missing ``break''.
6782 (update_context): Do not use __func__.
6783
6784 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6785
6786 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6787 and its setting. Set gdbarch instruction printing functions
6788 directly. For non-rs6000 case use new function
6789 gdb_print_insn_powerpc.
6790 (gdb_print_insn_powerpc): New function.
6791
6792 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6793
6794 * NEWS: Mention that the d30v has been marked obsolete.
6795 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6796 * configure.tgt: Mark d30v-*-* as obsolete.
6797 * d30v-tdep.c: Mark file as obsolete.
6798 * config/d30v/d30v.mt: Ditto.
6799 * config/d30v/tm-d30v.h: Ditto.
6800
6801 2002-07-13 Aidan Skinner <aidan@velvet.net>
6802
6803 * ada-tasks.c (add_task_entry): replace calls to
6804 malloc() with xmalloc
6805 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6806
6807 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6808 ada_finish_decode_line_1, all_sals_for_line
6809 ada_breakpoint_rewrite): replace calls to free() with xfree()
6810
6811 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6812
6813 From Nicholas Duffek (with minor changes by Martin Hunt,
6814 Louis Hamilton, and Kevin Buettner):
6815 * aix-thread.c: New file.
6816
6817 2002-07-12 Petr Sorfa <petrs@caldera.com>
6818
6819 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6820 complaint for invalid attribute class or form.
6821 (read_func_scope): DW_AT_frame_base
6822 better handling of DW_AT_block*.
6823 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6824 better handling of DW_AT_block*.
6825 (read_common_block): DW_AT_location
6826 better handling of DW_AT_block*.
6827 (read_partial_die): DW_AT_location better handling
6828 of DW_AT_block*.
6829 (new_symbol): DW_AT_external better handling of
6830 DW_AT_block*. Proper initialization of variable
6831 "addr".
6832 (attr_form_is_block): New function that returns true
6833 if the attribute's form is of DW_FORM_block*.
6834
6835 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6836
6837 * valops.c (find_method_list): Remove comment about
6838 removed STATIC_MEMFUNCP argument.
6839 (value_find_oload_method_list): Likewise.
6840
6841 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6842
6843 From Nicholas Duffek:
6844 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6845 target_new_objfile_hook.
6846
6847 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6848
6849 From Nicholas Duffek:
6850 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6851 csect.
6852
6853 2002-07-12 Andrew Cagney <cagney@redhat.com>
6854
6855 * MAINTAINERS: Mention --enable-sim-build-warnings.
6856 (m68hc11-elf): Disable sim build warnings.
6857 (m32r-elf): Mark as broken obsolete candidate.
6858 (x86_64-linux-gnu): Mark as buildable with -Werror.
6859 (arm-elf): Change -w to ``,'' which enables warnings but not
6860 -Werror.
6861
6862 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6863
6864 * bcache.h: Update copyright.
6865 (struct bstring, struct bcache): Move definition to "bcache.c".
6866 Replaced by opaque declaration.
6867 (bcache_xfree): Replace free_bcache.
6868 (bcache_xmalloc, bcache_memory_used): Declare.
6869
6870 * bcache.c: Update copyright.
6871 (struct bstring, struct bcache): Moved to here from "bcache.h".
6872 Update comments.
6873 (bcache_xmalloc, bcache_memory_used): New functions.
6874 (bcache_xfree): Replace function free_bcache.
6875
6876 * Makefile.in (objfiles.o): Add $(bcache_h).
6877 (objfiles_h): Remove $(bcache_h).
6878 (symfile.o): Add $(bcache_h).
6879
6880 * symmisc.c: Update copyright.
6881 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6882 (print_objfile_statistics): Use bcache_memory_used.
6883
6884 * symfile.c: Include "bcache.h".
6885 (reread_symbols): Use bcache_xfree.
6886 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6887 (add_psymbol_to_list): Pass psymbol_cache by value.
6888 (add_psymbol_with_dem_name_to_list): Ditto.
6889
6890 * objfiles.h: Update copyright.
6891 (struct bcache): Declare opaque. Do not include "bcache.h".
6892 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6893 bcache'' pointers.
6894 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6895
6896 * objfiles.c: Include "bcache.h". Update copyright.
6897 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6898 macro_cache.
6899 (free_objfile): Use bcache_xfree.
6900
6901 2002-07-11 Grace Sainsbury <graces@redhat.com>
6902
6903 * monitor.c (monitor_fetch_register): Make name a constant.
6904 (monitor_store_register): Same.
6905
6906 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6907
6908 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6909 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6910 (finish_block) For non-function blocks, hash the symbol table. For
6911 function blocks, mark the symbol table as unhashed.
6912 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6913 (msymbol_hash_iw): Likewise.
6914 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6915 value.
6916 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6917 (lookup_minimal_symbol): Likewise for both.
6918 * symtab.h (struct block): Add `hashtable' flag. Comment the
6919 hashtable.
6920 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6921 (ALL_BLOCK_SYMBOLS): Update.
6922 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6923 (struct symbol): Add `hash_next' pointer.
6924 * symtab.c (lookup_block_symbol): Search using the hash table when
6925 possible.
6926 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6927 (search_symbols, find_addr_symbol): Likewise.
6928
6929 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6930 (read_dst_symtab): Likewise.
6931 * jv-lang.c (get_java_class_symtab): Likewise.
6932 * mdebugread.c: Include "gdb_assert.h".
6933 (shrink_block): Assert that the block being modified is not hashed.
6934 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6935 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6936 symbols.
6937 (dump_symtab): Recognize hashed blocks.
6938 * printcmd.c (print_frame_args): Assert that function blocks do not
6939 have hashed symbol tables.
6940 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6941 (fill_in_ada_prototype, debug_print_block): Likewise.
6942 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6943
6944 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6945
6946 * stack.c (print_frame): Use result of frame_address_in_block()
6947 instead of fi->pc when evaluating symbols.
6948 (backtrace_command_1): Ditto.
6949
6950 2002-07-11 Andrew Cagney <cagney@redhat.com>
6951
6952 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6953 Make static.
6954
6955 * arm-tdep.c (arm_register_name): Make return type constant.
6956
6957 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6958
6959 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6960 prototype.
6961 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6962 * s390-tdep.c (s390_fp_regnum): Ditto.
6963 (s390_read_fp): Ditto.
6964 (s390_pop_frame): Ditto.
6965 (_initialize_s390_tdep): Ditto.
6966 * remote.c (get_remote_state): Ditto.
6967 * procfs.c (mappingflags): Ditto.
6968 * memattr.c (_initialize_mem): Ditto.
6969 * mcore-tdep.c (mcore_pop_frame): Ditto.
6970 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6971 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6972 * language.c (set_case_str): Ditto.
6973 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6974 * frv-tdep.c (new_variant): Ditto.
6975 (frv_stopped_data_address): Ditto.
6976 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6977 (context_alloc): Ditto.
6978 (frame_state_alloc): Ditto.
6979 (unwind_tmp_obstack_init): Ditto.
6980 (unwind_tmp_obstack_free): Ditto.
6981 (cfi_read_fp): Ditto.
6982 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6983 (cris_pop_frame): Ditto.
6984 * c-lang.c (scanning_macro_expansion): Ditto.
6985 (finished_macro_expansion): Ditto.
6986 (c_preprocess_and_parse): Ditto.
6987 * gdbarch.sh: Ditto.
6988 * gdbarch.h, gdbarch.c: Regenerate.
6989 * config/mn10200/tm-mn10200.h: Adjust indentation.
6990 * target.c: Adjust indentation.
6991 * symtab.h: Adjust indentation.
6992 * stabsread.h: Adjust indentation.
6993 * remote-es.c: Adjust indentation.
6994 * os9kread.c: Adjust indentation.
6995
6996 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6997
6998 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6999 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7000
7001 2002-07-10 Grace Sainsbury <graces@redhat.com>
7002
7003 * NEWS: Mention m68k, mcore multi-arching.
7004 * MAINTAINERS: Change status of m68k, mcore to reflect
7005 multi-arching.
7006
7007 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7008
7009 * valops.c (find_overload_match): Free oload_syms.
7010
7011 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7012
7013 Define HAVE_SYS_PROC_H if sys/proc.h exists
7014 * configure.in: Add check for sys/proc.h
7015 * config.in: Regenerate.
7016 * configure: Regenerate.
7017
7018 2002-07-09 Grace Sainsbury <graces@redhat.com>
7019
7020 * config/m68k/tm-m68k.h: Remove macros wrapped in
7021 #if !GDB_MULTI_ARCH.
7022
7023 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7024
7025 * config.in, configure: Regenerate.
7026
7027 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7028
7029 * dwarf2cfi.c: Include "gcore.h".
7030 (execute_stack_op): Fix implementation of the
7031 DW_OP_deref and DW_OP_deref_size operators by letting do their
7032 lookup in the target.
7033
7034 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7035
7036 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7037 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7038 tdep->sc_sp_offset.
7039
7040 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7041
7042 Fix PR gdb/595, gdb/602
7043 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7044 Don't call value_cast, just read the vtable pointer; update comments
7045 to match.
7046
7047 2002-07-05 Grace Sainsbury <graces@redhat.com>
7048
7049 * config/mcore/tm-mcore.h: Remove file.
7050 * config/mcore/mcore.mt: Remove definition of TM_FILE
7051 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7052
7053 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7054
7055 * i386bsd-tdep.c: Include "gdb_string.h".
7056
7057 2002-07-04 Grace Sainsbury <graces@redhat.com>
7058
7059 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7060 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7061 mcore-tdep.
7062 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7063 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7064 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7065 (RETVAL_REGNUM): Move macros from tm-mcore.h
7066 (mcore_reg_struct_has_addr): New function.
7067 (mcore_gdbarch_init): Added initializations for the macros removed
7068 from tm-mcore.h.
7069
7070 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7071
7072 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7073 traditonal string branding within the ELF header.
7074
7075 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7076
7077 * symtab.c (remove_params): New function.
7078 (make_symbol_overload_list): Use it instead of cplus_demangle.
7079 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7080
7081 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7082
7083 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7084
7085 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7086 New variables.
7087 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7088 and tdep->sigtramp_end.
7089 * i386obsd-nat.c: New file.
7090 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7091
7092 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7093 Don't call get_current_frame().
7094
7095 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7096
7097 * i386-nat.c (child_post_startup_inferior): New function
7098 calling i386_cleanup_dregs if
7099 I386_USE_GENERIC_WATCHPOINTS is defined.
7100 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7101 conditional to acknowledge that i386-nat.c has its
7102 own child_post_startup_inferior function.
7103
7104 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7105
7106 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7107 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7108 instead of MAX_REGISTER_RAW_SIZE.
7109 (i386_extract_return_value, i386_extract_struct_value_address):
7110 Convert to use regcache.
7111 (i386_gdbarch_init): Set max_register_raw_size and
7112 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7113 Set extract_return_value and extract_struct_value_address instead
7114 of their deprecated variants.
7115
7116 Convert i386 target to generic dummy frames.
7117 * i386-tdep.c: Include "symfile.h".
7118 (i386_frameless_signal_p): Consider a function to be frameless if
7119 the pc points at the first instruction of the function.
7120 (i386_frame_chain): Handle (generic) call dummies.
7121 (i386_frame_saved_pc): Likewise.
7122 (i386_frame_init_saved_regs): Remove code dealing with call
7123 dummies on the stack.
7124 (i386_push_dummy_frame): Removed.
7125 (i386_call_dummy_words): Removed.
7126 (i386_fix_call_dummy): Removed.
7127 (i386_push_return_address): New function.
7128 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7129 parameter, and don't call get_current_frame.
7130 (i386_pop_frame): New function.
7131 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7132 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7133 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7134 call_dummy_length to 0, set call_dummy_words to NULL, set
7135 sizeof_call_dummy_words to 0, set fix_call_dummy to
7136 generic_fix_call_dummy, set pc_in_call_dummy to
7137 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7138 generic_push_dummy_frame, set push_return_address to
7139 i386_push_return_address and set frame_chain_valid to
7140 generic_file_frame_chain_valid.
7141
7142 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7143
7144 * gdbarch.sh (struct regcache): Add opaque declaration.
7145 (EXTRACT_RETURN_VALUE): New architecture method.
7146 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7147 * gdbarch.h, gdbarch.c: Regenerate.
7148 * arch-utils.c (legacy_extract_return_value): New function.
7149 * arch-utils.h (legacy_extract_return_value): Declare.
7150 * values.c (value_being_returned): Re-enable code handling
7151 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7152 deprecated_grub_regcache_for_registers call to block handling
7153 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7154 (EXTRACT_RETURN_VALUE): Do not define.
7155
7156 2002-07-03 Grace Sainsbury <graces@redhat.com>
7157
7158 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7159 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7160 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7161 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7162 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7163 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7164 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7165 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7166 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7167 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7168 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7169 argument so the function fits the prototype in the architecture
7170 vector.
7171 (mcore_pop_frame): Remove argument so the function fits the
7172 prototype. Use get_current_frame instead of the argument.
7173 (mcore_push_arguments): Change type of struct_return so the
7174 function can be used in the architecture vector.
7175 (mcore_store_struct_return): Add.
7176 (mcore_frame_init_saved_regs): Add.
7177 (mcore_gdbarch_init): Add function calls to replace the macros
7178 removed from tm-mcore.h
7179
7180 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7181
7182 * infcmd.c (print_return_value): Remove compatibility code calling
7183 deprecated_grub_regcache_for_registers.
7184
7185 * values.c: Include "regcache.h".
7186 (value_being_returned): Update. Use
7187 deprecated_grub_regcache_for_registers to extract the register
7188 buffer address.
7189 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7190 ``struct regcache''.
7191 * Makefile.in (values.o): Add dependency on $(regcache_h).
7192
7193 * inferior.h (run_stack_dummy): Change type of second parameter to
7194 a ``struct regcache''.
7195 * valops.c (hand_function_call): Change type of retbuf to ``struct
7196 regcache''. Allocate using regcache_xmalloc, clean using
7197 make_cleanup_regcache_xfree.
7198 * infcmd.c (run_stack_dummy): Update. Use
7199 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7200
7201 * regcache.c (do_regcache_xfree): New function.
7202 (make_cleanup_regcache_xfree): New function.
7203 * regcache.h (make_cleanup_regcache_xfree): Declare.
7204
7205 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7206
7207 * event-top.c (command_line_handler): Don't read past
7208 beginning of buffer.
7209
7210 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7211
7212 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7213 struct frame_id.
7214 (varobj_create): Store frame_id for root.
7215 (varobj_gen_name): Use xasprintf.
7216 (varobj_update): Save and restore frame using get_frame_id() and
7217 frame_find_by_id().
7218 (create_child): Use xasprintf.
7219 (new_root_variable): Initialize frame_id.
7220 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7221 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7222 to prevent memory leak.
7223
7224 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7225
7226 * valops.c (hand_function_call): Move declaration of retbuf to
7227 start of function, allocate using malloc, add a cleanup but before
7228 the inf_status cleanup, cleanup the buffer. Rename local variable
7229 old_chain to inf_status_cleanup.
7230
7231 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7232
7233 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7234
7235 * cli/cli-decode.c (cmd_func_p): New function.
7236 (cmd_func): New function.
7237
7238 * command.h: Add cmd_func() and cmd_func_p().
7239
7240 2002-07-03 Grace Sainsbury <graces@redhat.com>
7241
7242 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7243 (REGISTER_SIZE): Remove.
7244 (MAX_REGISTER_RAW_SIZE): Remove.
7245 (REGISTER_VIRTUAL_TYPE): Remove.
7246 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7247 (REGISTER_NAME): Remove.
7248 (USE_GENERIC_DUMMY_FRAMES): Remove.
7249 (CALL_DUMMY): Remove.
7250 (CALL_DUMMY_START_OFFSET): Remove.
7251 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7252 (CALL_DUMMY_LOCATION): Remove.
7253 (FIX_CALL_DUMMY): Remove.
7254 (CALL_DUMMY_ADDRESS): Remove.
7255 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7256 (SAVE_DUMMY_FRAME_TOS): Remove.
7257 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7258 (mcore_register_virtual_type): New function.
7259 (mcore_register_byte): New function.
7260 (mcore_register_size): New function.
7261 (mcore_register_name): New function.
7262 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7263 macros removed from tm-mcore.h.
7264 (mcore_dump_tdep): Add.
7265 (_initialize_mcore_tdep): Add gdbarch_register call.
7266
7267 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7268
7269 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7270 frameless_look_for_prologue, such that we actually call this
7271 function.
7272
7273 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7274
7275 * frame.h (frame_address_in_block): New function.
7276
7277 * blockframe.c (frame_address_in_block): New function extracted
7278 from get_frame_block().
7279 (get_frame_block): Use frame_address_in_block().
7280 (block_innermost_frame): Use frame_address_in_block() to match
7281 the frame pc address against the block boundaries rather than
7282 the frame pc directly. This prevents a failure when a frame pc
7283 is actually a return-address pointing immediately after the end
7284 of the given block.
7285
7286 2002-07-02 Grace Sainsbury <graces@redhat.com>
7287
7288 * MAINTAINERS: Add self under write after approval.
7289
7290 2002-07-02 Grace Sainsbury <graces@redhat.com>
7291
7292 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7293 used in architecture vector. The default is
7294 m68k_local_breakpoint_from_pc.
7295 (m68k_local_breakpoint_from_pc): Add.
7296 (enum): Add register numbers from tm-m68k.h.
7297 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7298 vector.
7299 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7300 GDB_MULTI_ARCH_PARTIAL.
7301 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7302 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7303 m68k-tdep.c.
7304 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7305 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7306 to enum in m68k-tdep.c
7307
7308 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7309
7310 * solib-osf.c (open_map): Compute the list of shared libraries
7311 loaded by the inferior, rather than the list of libraries loaded
7312 by GDB itself. Otherwise, GDB ends up reading the symbols from
7313 the wrong shared libraries...
7314
7315 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7316
7317 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7318 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7319 macros.
7320 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7321 Remove functions.
7322 (FRAMELESS_SIGNAL): Remove function.
7323 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7324 i386_linux_saved_pc_after_call): Removed.
7325 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7326 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7327 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7328
7329 * i386-tdep.c (i386_frameless_signal_p): New function.
7330 (i386_frame_chain): Deal with frameless signals.
7331 (i386_sigtramp_saved_sp): New function.
7332 (i386_frame_saved_pc): Deal with frameless signals.
7333 (i386_saved_pc_after_call): Make sure the correct value is
7334 returned just after entry into a sigtramp.
7335 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7336 i386fbsd4_sc_sp_offset): New variables.
7337 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7338 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7339 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7340 similiar to what we already did for sc_pc_offset.
7341 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7342 tdep->sc_sp_offset.
7343
7344 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7345
7346 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7347
7348 * config/i386/tm-x86-64linux.h: New.
7349 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7350 definitions.
7351 * config/i386/nm-x86-64.h: Rename to ...
7352 * config/i386/nm-x86-64linux.h: ... this one.
7353 * config/i386/x86-64linux.mh: Reflect the above change.
7354
7355 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7356
7357 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7358 with sigcontext_addr. Add sc_sp_offset.
7359 (i386bsd_sigtramp_saved_pc): Remove prototype.
7360 (i386bsd_sicontext_addr): Add prototype.
7361 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7362 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7363 (i386_svr4_sigtramp_saved_pc): Removed.
7364 (i386_svr4_sigcontext_addr): New function.
7365 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7366 Initialize tdep->sigcontext_addr instead. Initialize
7367 tdep->sc_pc_offset and tdep->sc_sp_offset.
7368 (i386_gdbarch_init): Likewise.
7369 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7370 any more.
7371 (i386bsd_sigtramp_saved_pc): Remove function.
7372 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7373 Initialize tdep->sigcontext_addr instead. Initialize
7374 tdep->sc_pc_offset.
7375 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7376 of tdep->sigtramp_saved_pc.
7377 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7378 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7379 instead.
7380
7381 * i386-tdep.c (i386_frameless_function_invocation,
7382 i386_frame_num_args, i386_frame_init_saved_regs,
7383 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7384 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7385 i386_extract_return_value, i386_store_return_value,
7386 i386_extract_struct_value_address, i386_register_virtual_type,
7387 i386_register_convertible, i386_register_convert_to_virtual,
7388 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7389 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7390 static.
7391
7392 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7393
7394 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7395
7396 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7397 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7398 this macro. Include "value.h".
7399
7400 2002-06-30 Aidan Skinner <aidan@velvet.net>
7401
7402 * ada-exp.tab.c: remove as it's a generated file
7403 * ada-lex.c: remove as it's a generated file
7404
7405 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7406
7407 * config/i386/tm-i386.h (struct frame_info, struct
7408 frame_saved_regs, struct value, struct type): Remove forward
7409 declarations.
7410
7411 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7412 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7413 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7414 (FILL_FPXREGSET): Define.
7415
7416 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7417
7418 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7419 i[3456]86-*-netbsd* case.
7420 * config/i386/tm-obsd.h: Removed.
7421 * config/i386/obsd.mt: Removed.
7422 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7423 core-aout.o.
7424 (MH_CFLAGS): Add -DYYDEBUG=0.
7425
7426 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7427 i386nbsd_sc_pc_offset on OpenBSD too.
7428
7429 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7430 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7431 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7432 define.
7433 * i386bsd-tdep.c: Include "arch-utils.h".
7434 (i386bsd_aout_in_solib_call_trampoline): New function.
7435 (i386bsd_init_abi): Set in_solib_call_trampoline to
7436 i386bsd_aout_in_solib_call_trampoline.
7437 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7438 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7439
7440 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7441
7442 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7443 (struct obstack, struct bcache): Add opaque declarations.
7444 * Makefile.in (macrotab_h): Update
7445
7446 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7447
7448 * blockframe.c (generic_find_dummy_frame): Change return type to
7449 ``struct regcache''.
7450 (struct dummy_frame): Replace field ``registers'' with regcache, a
7451 struct regcache object.
7452 (generic_find_dummy_frame): Update.
7453 (generic_push_dummy_frame): Update. Use regcache_xfree,
7454 regcache_xmalloc and regcache_cpy.
7455 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7456 regcache_xfree.
7457 (deprecated_generic_find_dummy_frame): Update.
7458 (generic_read_register_dummy): Update. Use
7459 regcache_read_as_address.
7460 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7461 (generic_get_saved_register): Update. Use regcache_read.
7462
7463 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7464
7465 * Makefile.in (objfiles_h): Add $(bcache_h).
7466 * objfiles.h: Include "bcache.h".
7467
7468 * Makefile.in (symtab_h): Remove $(bcache_h).
7469 * symtab.h: Do not include "bcache.h".
7470
7471 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7472
7473 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7474 generic_func_frame_chain_valid.
7475
7476 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7477
7478 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7479 * config/i386/tm-fbsd.h: Likewise.
7480
7481 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7482
7483 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7484 generic_unwind_get_saved_register.
7485
7486 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7487
7488 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7489 * regcache.c (supply_register): Add missing argument to
7490 register_buffer call.
7491
7492 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7493
7494 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7495 Solaris /bin/grep does not not like it. From Peter Schauer.
7496
7497 2002-06-26 Tom Tromey <tromey@redhat.com>
7498
7499 * command.h (add_setshow_cmd): Declare.
7500 (add_setshow_cmd_full): Declare.
7501 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7502 returns void. Use add_setshow_cmd_full.
7503 (add_setshow_cmd_full): New function.
7504 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7505 (add_setshow_boolean_cmd): Likewise.
7506
7507 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7508
7509 * config/vax/tm-vax.h: Protect from multiple inclusion.
7510 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7511 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7512 * config/vax/tm-vaxbsd.h: ...here. New file.
7513 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7514
7515 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7516
7517 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7518 (BELIEVE_PCC_PROMOTION): Remove.
7519 (AP_REGNUM): Move to...
7520 * config/vax/nm-vax.h: ...here.
7521 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7522 (vax_breakpoint_from_pc): New function.
7523 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7524 and gdbarch_believe_pcc_promotion.
7525
7526 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7527
7528 * Makefile.in (vax_tdep_h): Define.
7529 (vax-tdep.o): Use $(vax_tdep_h).
7530 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7531 (vax_dump_tdep): New function.
7532 (_initialize_vax_tdep): Register vax_dump_tdep.
7533 * vax-tdep.h: Include osabi.h.
7534 (struct gdbarch_tdep): New.
7535
7536 2002-06-26 Andrew Cagney <cagney@redhat.com>
7537
7538 * frame.h (deprecated_generic_find_dummy_frame): Rename
7539 generic_find_dummy_frame.
7540 * blockframe.c (generic_find_dummy_frame): Make static.
7541 (deprecated_generic_find_dummy_frame): New function.
7542 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7543 generic_find_dummy_frame with deprecated_find_dummy_frame.
7544 (sh64_nofp_frame_init_saved_regs): Ditto.
7545 (sh_fp_frame_init_saved_regs): Ditto.
7546 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7547 (s390_frame_chain): Ditto.
7548 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7549
7550 2002-06-26 Grace Sainsbury <graces@redhat.com>
7551
7552 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7553 gdbarch vector are at the top.
7554 (NUM_REGS): Remove.
7555 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7556 (FRAME_ARGS_ADDRESS): Remove.
7557 (FRAME_LOCALS_ADDRESS): Remove.
7558 (FRAME_NUM_ARGS): Remove.
7559 (FRAME_ARGS_SKIP): Remove.
7560 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7561 (m68k_gdbarch_init): Add gdbarch initializations for macros
7562 undefined in tm-m68k.h
7563
7564 2002-06-26 Grace Sainsbury <graces@redhat.com>
7565
7566 * monitor.h: Add the function regname to monitor_ops
7567 structure. This way NUM_REGS does not have to be a constant.
7568 * monitor.c (monitor_fetch_register): Added support for regname
7569 function. The function is called if the array regnames is NULL.
7570 (monitor_store_register): Same.
7571 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7572 regnames array.
7573 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7574 cpu32bug_cmds.regname to point to new function.
7575 * abug-rom.c (abug_regname): Same as above.
7576 (init_abug_cmds): Same.
7577 * dbug-rom.c (dbug_regname): Same as above.
7578 (init_dbug_cmds): Same.
7579 * remote-est.c (est_regname): Same.
7580 (init_est_cmds): Same.
7581 * rom68k-rom.c (rom68k_regname): Same.
7582 (init_rom68k_cmds): Same.
7583
7584 2002-06-25 Tom Tromey <tromey@redhat.com>
7585
7586 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7587
7588 2002-06-25 Andrew Cagney <cagney@redhat.com>
7589
7590 * infrun.c (stop_registers): Change variable's type to ``struct
7591 regcache'''.
7592 (xmalloc_inferior_status): Delete function.
7593 (free_inferior_status): Delete function.
7594 (normal_stop): Use regcache_cpy.
7595 (struct inferior_status): Change type of fields ``stop_registers''
7596 and ``registers'' to ``struct regcache''.
7597 (write_inferior_status_register): Use regcache_write.
7598 (save_inferior_status): Instead of calling
7599 xmalloc_inferior_status, allocate the inf_status buffer directly.
7600 Use regcache_dup_no_passthrough and regcache_dup to save the
7601 buffers.
7602 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7603 Replace the stop_registers regcache instead of overriding it. Use
7604 regcache_xfree. Instead of calling free_inferior_status, xfree
7605 the buffer directly.
7606 (discard_inferior_status): Use regcache_xfree. Instead of calling
7607 free_inferior_status, xfree the buffer directly.
7608 (build_infrun): Use regcache_xmalloc.
7609 (_initialize_infrun): Delete redundant call to build_infrun.
7610
7611 * Makefile.in (infcmd.o): Add $(regcache_h).
7612
7613 * infcmd.c: Include "regcache.h".
7614 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7615 obtain the address of `stop_registers' register buffer.
7616 (print_return_value): Ditto.
7617
7618 * inferior.h (struct regcache): Add opaque declaration.
7619 (stop_registers): Change variable's declared type to ``struct
7620 regcache''.
7621
7622 2002-06-24 Tom Tromey <tromey@redhat.com>
7623
7624 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7625 * target.c (initialize_targets): Fixed typo in
7626 trust-readonly-sections `show' documentation.
7627
7628 * main.c: Marked all strings with _().
7629
7630 2002-06-24 Don Howard <dhoward@redhat.com>
7631
7632 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7633 that means max CORE_ADDR+1.
7634 (lookup_mem_region): Ditto.
7635 (mem_info_command): Ditto.
7636
7637 2002-06-24 Grace Sainsbury <graces@redhat.com>
7638
7639 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7640 (REGISTER_BYTES_OK): Remove.
7641 (REGISTER_BYTES): Remove.
7642 (STORE_STRUCT_RETURN): Remove.
7643 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7644 (STORE_RETURN_VALUE): Remove.
7645 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7646 (FRAME_CHAIN): Remove.
7647 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7648 (FRAME_SAVED_PC): Remove.
7649 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7650 (m68k_store_struct_return): Add.
7651 (m68k_deprecated_extract_return_value): Add.
7652 (m68k_deprecated_extract_struct_value_address): Add.
7653 (m68k_store_return_value): Add.
7654 (m68k_frame_chain): Add.
7655 (m68k_frameless_function_invocation): Add.
7656 (m68k_frame_saved_pc): Add.
7657 (m68k_gdbarch_init): added set_gdbarch calls for new
7658 functions and deleted macros.
7659
7660 2002-06-23 Tom Tromey <tromey@redhat.com>
7661
7662 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7663 (ALLDEPFILES): Likewise.
7664 (udiheaders): Removed.
7665 (udip2soc.o): Likewise.
7666 (udi2go32.o): Likewise.
7667 (udr.o): Likewise.
7668 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7669
7670 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7671
7672 * infrun.c (_initialize_infrun): Delete unnecessary call to
7673 build_infrun.
7674
7675 * regcache.h: Update comments describing the regcache_cpy family
7676 of functions.
7677 (regcache_save, regcache_restore): Delete declaration.
7678 (regcache_save_no_passthrough): Delete declaration.
7679 (regcache_restore_no_passthrough): Delete declaration.
7680 * regcache.c (regcache_save): Delete function.
7681 (regcache_save_no_passthrough): Delete function.
7682 (regcache_restore): Delete function.
7683 (regcache_restore_no_passthrough): Delete function.
7684
7685 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7686
7687 * config/m68k/tm-m68k.h: Fix typo.
7688 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7689 (m68k_frame_init_saved_regs): Declare.
7690
7691 2002-06-21 Jim Blandy <jimb@redhat.com>
7692
7693 Remove some vestiges of Harris 88k support.
7694 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7695 register numbering quirk.
7696 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7697 odd symbols occurring in Harris 88k ELF targets.
7698
7699 2002-06-21 Tom Tromey <tromey@redhat.com>
7700
7701 * gdb_locale.h: New file.
7702 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7703 (defs_h): Added gdb_locale.h.
7704 * configure, config.in: Rebuilt.
7705 * configure.in (PACKAGE): Define.
7706 * defs.h: Include gdb_locale.h.
7707 * main.c (captured_main): Call setlocale, bindtextdomain,
7708 textdomain.
7709
7710 2002-06-21 Dave Brolley <brolley@redhat.com>
7711
7712 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7713 * config/frv/frv.mt: New file.
7714 * config/frv/tm-frv.h: New file.
7715 * configure.tgt: Support frv-*-*.
7716 * Makefile.in (frv-tdep.o): New target.
7717 * frv-tdep.c: New file.
7718 * NEWS: Mention frv.
7719
7720 2002-06-21 Dave Brolley <brolley@redhat.com>
7721
7722 * MAINTAINERS: Add self to "Write After Approval" list.
7723
7724 2002-06-21 Grace Sainsbury <graces@redhat.com>
7725
7726 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7727 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7728 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7729 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7730 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7731
7732 * m68k-tdep.c: Include arch-utils.h
7733 (m68k_register_raw_size): Add.
7734 (m68k_register_virtual_size): Add.
7735 (m68k_register_virtual_type): Add.
7736 (m68k_register_name): Add.
7737 (m68k_stack_align): Add.
7738 (m68k_register_byte): Add.
7739 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7740 tm-m68k.h.
7741
7742 2002-06-21 Grace Sainsbury <graces@redhat.com>
7743
7744 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7745 m68k_find_saved_regs.
7746 (m68k_pop_frame): Removed saved_regs structure, and replaced
7747 references to it with frame->saved_regs.
7748 (m68k_gdbarch_init): Added function calls to initialize the
7749 gdbarch structure.
7750 (m68k_fix_call_dummy): Add.
7751 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7752 (CALL_DUMMY): Remove.
7753 (CALL_DUMMY_LENGTH): Remove.
7754 (CALL_DUMMY_START_OFFSET): Remove.
7755 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7756 (FIX_CALL_DUMMY): Remove.
7757 (PUSH_DUMMY_FRAME): Remove.
7758 (POP_FRAME): Remove.
7759
7760 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7761
7762 * parse.c (parse_fprintf): New function used to avoid calls to
7763 fprintf in bison parser generated debug code.
7764 * parser-defs.h: Declaration of new parse_fprintf function.
7765 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7766 Set YYDEBUG to 1 by default.
7767 Set YYFPRINTF as parse_fprintf.
7768
7769 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7770
7771 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7772 encoding anymore.
7773 (pointer_encoding, enum ptr_encoding): New.
7774 (execute_cfa_program): Take care about pointer encoding.
7775 (dwarf2_build_frame_info): Only call parse_frame_info for
7776 .debug_frame and .eh_frame.
7777 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7778 fixed augmentation handling, added relative addressing,
7779 ignore duplicate FDEs. Added comments.
7780 * dwarf2cfi.c: Reindented.
7781
7782 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7783
7784 * event-top.c (command_handler): Don't use space_at_cmd_start
7785 unless there is sbrk() on the host. Assign time and space data
7786 to union fields of the appropriate length.
7787
7788 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7789
7790 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7791 x86_64_register_name. Return type changed to 'const char *'.
7792 (x86_64_register_name2nr): Rename to x86_64_register_number.
7793 (x86_64_gdbarch_init): Update to reflect the change.
7794 * x86-64-tdep.h: Ditto.
7795 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7796 (supply_fpregset): Ditto.
7797
7798 2002-06-19 Andrew Cagney <cagney@redhat.com>
7799
7800 * regcache.h: Update copyright.
7801 (struct regcache, struct gdbarch): Add opaque declarations.
7802 (current_regcache): Declare global variable.
7803 (regcache_read, regcache_write): Add gdbarch parameter.
7804 (regcache_save, regcache_save_no_passthrough)
7805 (regcache_restore, regcache_restore_no_passthrough)
7806 (regcache_dup, regcache_dup_no_passthrough)
7807 (regcache_cpy, regcache_cpy_no_passthrough)
7808 (deprecated_grub_regcache_for_registers)
7809 (deprecated_grub_regcache_for_register_valid)
7810 (regcache_valid_p): Add function declarations.
7811
7812 * regcache.c: Update copyright.
7813 (regcache_descr_handle): New global variable.
7814 (struct regcache_descr): Define.
7815 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7816 (regcache_descr, xfree_regcache_descr): New functions.
7817 (struct regcache): Define.
7818 (regcache_xmalloc, regcache_xfree): New functions.
7819 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7820 (regcache_dup, regcache_dup_no_passthrough): New functions.
7821 (regcache_valid_p, regcache_read_as_address): New functions.
7822 (deprecated_grub_regcache_for_registers): New function.
7823 (deprecated_grub_regcache_for_register_valid): New function.
7824 (current_regcache): New global variable.
7825 (register_buffer): Add regcache parameter. Update calls.
7826 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7827 (read_register_gen, write_register_gen): Update register_buffer
7828 call. Test for legacy_p instead of gdbarch_register_read_p or
7829 gdbarch_register_write_p.
7830 (regcache_collect): Update register_buffer call.
7831 (build_regcache): Rewrite. Use deprecated grub functions.
7832 (regcache_save, regcache_save_no_passthrough): New functions.
7833 (regcache_restore, regcache_restore_no_passthrough): New
7834 functions.
7835 (_initialize_regcache): Create the regcache_data_handle. Swap
7836 current_regcache global variable.
7837
7838 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7839 parameter to regcache_read and regcache_write calls.
7840 (sh4_register_read): Ditto.
7841 (sh64_pseudo_register_read): Ditto.
7842 (sh64_register_read): Ditto.
7843 (sh_pseudo_register_write): Ditto.
7844 (sh4_register_write): Ditto.
7845 (sh64_pseudo_register_write): Ditto.
7846 (sh64_register_write): Ditto.
7847
7848 * defs.h (XCALLOC): Define.
7849
7850 2002-06-19 Grace Sainsbury <graces@redhat.com>
7851
7852 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7853 * m68k-tdep.c (m68k_gdbarch_init): Added.
7854 (m68k_dump_tdep): Added.
7855
7856 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7857
7858 * ada-lang.c (fill_in_ada_prototype): Update comment.
7859
7860 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7863 MIPS_ABI_LAST.
7864 (mips_abi_string, mips_abi_strings): New.
7865 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7866 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7867 tdep->mips_abi_string. Honor mips_abi_string. Default to
7868 O32 if no ABI is found.
7869 (mips_dump_tdep): Use mips_abi_strings.
7870 (mips_abi_update): New function.
7871 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7872 ``set mips abi'' and ``show mips abi''. Check the size of
7873 mips_abi_strings.
7874
7875 2002-06-19 Andrew Cagney <cagney@redhat.com>
7876
7877 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7878 constant.
7879
7880 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7881
7882 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7883 current frame using only the first stack size adjustment. All
7884 subsequent size adjustments are not considered to be part of
7885 the "static" part of the current frame.
7886 Compute the address of the saved registers relative to the
7887 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7888 in use in this frame.
7889
7890 2002-06-18 Don Howard <dhoward@redhat.com>
7891
7892 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7893 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7894 suggesting this solution.
7895
7896 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7897
7898 * config/romp/xm-rtbsd.h: Delete file.
7899 * config/romp/rtbsd.mh: Delete file.
7900
7901 2002-06-18 Keith Seitz <keiths@redhat.com>
7902
7903 * breakpoint.c (condition_command): Post breakpoint_modify
7904 when a condition is added to an existing breakpoint.
7905 (commands_command): Likewise for commands.
7906 (set_ignore_count): Likewise for ignore counts.
7907 If no tty, do not simply return, still need to send event
7908 notification.
7909 (ignore_command): Only print a newline if the command came
7910 from a tty.
7911 Don't call breakpoints_changed, since this is now properly
7912 handled by set_ignore_count.
7913
7914 2002-06-18 Andrew Cagney <cagney@redhat.com>
7915
7916 * MAINTAINERS: Note that cris-elf target can be compiled with
7917 -Werror.
7918 * cris-tdep.c (cris_register_name): Make return type constant.
7919 (cris_breakpoint_from_pc): Ditto.
7920
7921 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7922
7923 * frame.h (struct frame_info): Change type of context to
7924 'struct context'.
7925
7926 2002-06-17 Andrew Cagney <cagney@redhat.com>
7927
7928 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7929 pointer.
7930 * gdbarch.h, gdbarch.c: Regenerate.
7931 * config/mips/tm-mips.h (mips_register_name): Update.
7932 * i386-tdep.h (i386_register_name): Update.
7933 * mips-tdep.c (mips_register_name): Update
7934 * alpha-tdep.c (alpha_register_name): Update.
7935 * arch-utils.c (legacy_register_name): Update.
7936 * arch-utils.h (legacy_register_name): Update.
7937 * avr-tdep.c (avr_register_name): Update.
7938 * ia64-tdep.c (ia64_register_name): Update.
7939 * i386-tdep.c (i386_register_name): Update.
7940 * sparc-tdep.c (sparc32_register_name): Update.
7941 (sparc64_register_name): Update.
7942 (sparclite_register_name): Update.
7943 (sparclet_register_name): Update.
7944 * sh-tdep.c (sh_generic_register_name): Update.
7945 (sh_sh_register_name): Update.
7946 (sh_sh3_register_name): Update.
7947 (sh_sh3e_register_name): Update.
7948 (sh_sh_dsp_register_name): Update.
7949 (sh_sh3_dsp_register_name): Update.
7950 (sh_sh4_register_name): Update.
7951 (sh_sh64_register_name): Update.
7952 * s390-tdep.c (s390_register_name): Update.
7953 * rs6000-tdep.c (rs6000_register_name): Update.
7954 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7955 (ns32k_register_name_32382): Update.
7956 * d10v-tdep.c (d10v_ts2_register_name): Update.
7957 (d10v_ts3_register_name): Update.
7958 * xstormy16-tdep.c (xstormy16_register_name): Update.
7959 * vax-tdep.c (vax_register_name): Update.
7960 * v850-tdep.c (v850_register_name): Update.
7961 * m68hc11-tdep.c (m68hc11_register_name): Update.
7962 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7963 (am33_register_name): Update.
7964
7965 2002-06-17 Grace Sainsbury <graces@redhat.com>
7966
7967 * m68k-tdep.c: Reindented.
7968
7969 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7970
7971 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7972 list of predefined types.
7973
7974 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7975
7976 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7977 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7978 REGISTER_CONVERT_TO_RAW): Remove defines.
7979 (i386_register_virtual_type, i386_register_convertible,
7980 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7981 Remove prototypes.
7982 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7983 macros mentioned above.
7984
7985 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7986 (i386lynx_saved_pc_after_call): Remove prototype.
7987 * i386ly-tdep.c: Include "i386-tdep.h".
7988 (i386lynx_saved_pc_after_call): Make static. Use
7989 read_memory_nobpt instead of read_memory. Use
7990 read_memory_unsigned_integer instead of read_memory_integer.
7991 (i386lynx_init_abi): New function.
7992 (i386lynx_coff_osabi_sniffer): New function.
7993 (_initialize_i386bsd_tdep): New function.
7994
7995 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7996 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7997 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7998 (i386_fix_call_dummy): Remove prototype.
7999 * i386-tdep.c (i386_call_dummy_words): New variable.
8000 (i386_gdbarch_init): Adjust for removal of the
8001 macros mentioned above.
8002
8003 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8004
8005 * command.h (add_setshow_auto_boolean_cmd): Replace
8006 add_set_auto_boolean_cmd.
8007 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8008 add_set_auto_boolean_cmd.
8009 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8010 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8011 mask-address'' command.
8012 (show_mask_address): Add cmd parameter.
8013 * remote.c (add_packet_config_cmd): Update. Change type of
8014 set_func and show_func to cmd_sfunc_ftype.
8015 (_initialize_remote): Update `set remote Z-packet'
8016 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8017 (show_remote_protocol_e_packet_cmd): Ditto.
8018 (show_remote_protocol_E_packet_cmd): Ditto.
8019 (show_remote_protocol_P_packet_cmd): Ditto.
8020 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8021 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8022 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8023 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8024 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8025 (show_remote_protocol_Z_packet_cmd): Ditto.
8026 (show_remote_protocol_binary_download_cmd): Ditto.
8027 (show_remote_cmd): Pass NULL to all of above.
8028
8029 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8030
8031 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8032 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8033 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8034 POP_FRAME): Remove defines.
8035 (i386_push_arguments, i386_store_struct_return,
8036 i386_extract_return_value, i386_store_return_value,
8037 i386_extract_struct_value_address, i386_push_dummy_frame,
8038 i386_pop_frame): Renove prototypes.
8039 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8040 macros mentioned above.
8041
8042 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8043
8044 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8045 add_set_boolean_cmd.
8046 (add_setshow_cmd): New function.
8047 * command.h (add_setshow_boolean_cmd): Replace
8048 add_set_boolean_cmd.
8049 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8050 and ``set rdiromatzero''.
8051 * maint.c (_initialize_maint_cmds): Update commented out code.
8052 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8053 * target.c (initialize_targets): Update `set
8054 trust-readonly-sections'.
8055 * remote.c (_initialize_remote): Update `set remotebreak'.
8056
8057 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8058
8059 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8060 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8061 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8062 fit into multi-arch framework.
8063 (i386_breakpoint_from_pc): New function.
8064 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8065 above.
8066
8067 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8068 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8069 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8070 (i386_frameless_function_invocation, i386_frame_num_args,
8071 i386_frame_init_saved_regs): Remove prototypes.
8072 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8073 macros mentioned above.
8074
8075 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8076
8077 * cli/cli-decode.c (set_cmd_cfunc): Update.
8078 (set_cmd_sfunc): Update.
8079 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8080 (set_cmd_sfunc, set_cmd_cfunc): Update.
8081 * cli/cli-decode.h: Update.
8082
8083 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8084
8085 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8086 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8087
8088 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8089
8090 * defs.h (auto_boolean): Declare enum.
8091 * command.h (cmd_auto_boolean): Delete enum.
8092 * mips-tdep.c (mask_address_var): Update.
8093 (mips_mask_address_p): Update.
8094 (show_mask_address): Update.
8095 * remote.c (struct packet_config): Update.
8096 (update_packet_config): Update.
8097 (show_packet_config_cmd): Update.
8098 (packet_ok): Update.
8099 (add_packet_config_cmd): Update.
8100 (_initialize_remote):
8101 * command.h: Update.
8102 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8103 (do_setshow_command): Update.
8104 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8105 * cli/cli-decode.h: Update.
8106
8107 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8108
8109 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8110 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8111 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8112 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8113 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8114 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8115
8116 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8117 list of DJGPP COFF targets.
8118
8119 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8120 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8121 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8122 (FP0_REGNUM): Remove define.
8123 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8124 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8125 (i386_register_virtual_size): Remove protoype.
8126 * i386-tdep.c (i386_register_virtual_size): Removed.
8127 (i386_extract_return_value, i386_store_return_value): Use
8128 FP0_REGNUM instead of NUM_FREGS to determine whether the
8129 floating-point registers are available.
8130 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8131 Adjust for removal of macros mentioned above.
8132
8133 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8134
8135 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8136 comments.
8137 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8138 Remove prototypes.
8139 (supply_gregset, fill_gregset): Remove use of register keyword and
8140 remove declaration for regmap. Use I386_NUM_GREGS instead of
8141 NUM_REGS and NUM_FREGS.
8142 (FPREGSET_FSAVE_OFFSET): Remove.
8143 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8144 NUM_FREGS to determine whether the floating-point registers are
8145 available.
8146
8147 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8148 gnu_store_registers): Replace usage of NUM_GREGS with
8149 I386_NUM_GREGS.
8150
8151 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8152 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8153 usage of NUM_GREGS with I386_NUM_GREGS.
8154
8155 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8156
8157 * i386bsd-nat.c: Include "i386-tdep.h".
8158 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8159 I386_NUM_GREGS.
8160
8161 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8162 and associated comment. They no longer make any sense, since we
8163 don't use this file anymore on Linux.
8164
8165 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8166 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8167 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8168 elements in these arrays.
8169 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8170 MAX_NUM_REGS.
8171
8172 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8173
8174 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8175 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8176
8177 2002-06-14 Andrew Cagney <cagney@redhat.com>
8178
8179 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8180 EXTRACT_RETURN_VALUE.
8181 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8182 EXTRACT_STRUCT_VALUE_ADDRESS.
8183 * gdbarch.h, gdbarch.c: Regenerate.
8184
8185 * values.c (value_being_returned): Handle
8186 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8187 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8188
8189 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8190 * arm-tdep.c (arm_gdbarch_init): Update.
8191 * avr-tdep.c (avr_gdbarch_init): Update.
8192 * cris-tdep.c (cris_gdbarch_init): Update.
8193 * d10v-tdep.c (d10v_gdbarch_init): Update.
8194 * ia64-tdep.c (ia64_gdbarch_init): Update.
8195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8197 * s390-tdep.c (s390_gdbarch_init): Update.
8198 * sh-tdep.c (sh_gdbarch_init): Update.
8199 * s390-tdep.c (s390_gdbarch_init): Update.
8200 * sparc-tdep.c (sparc_gdbarch_init): Update.
8201 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8202 * v850-tdep.c (v850_gdbarch_init): Update.
8203 * vax-tdep.c (vax_gdbarch_init): Update.
8204 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8206
8207 * config/arc/tm-arc.h: Update.
8208 * config/d30v/tm-d30v.h: Update.
8209 * config/fr30/tm-fr30.h: Update.
8210 * config/h8300/tm-h8300.h: Update.
8211 * config/h8500/tm-h8500.h: Update.
8212 * config/i386/tm-i386.h: Update.
8213 * config/i386/tm-ptx.h: Update.
8214 * config/i386/tm-symmetry.h: Update.
8215 * config/i960/tm-i960.h: Update.
8216 * config/m32r/tm-m32r.h: Update.
8217 * config/m68k/tm-delta68.h: Update.
8218 * config/m68k/tm-linux.h: Update.
8219 * config/m68k/tm-m68k.h: Update.
8220 * config/m88k/tm-m88k.h: Update.
8221 * config/mcore/tm-mcore.h: Update.
8222 * config/mips/tm-mips.h: Update.
8223 * config/mn10200/tm-mn10200.h: Update.
8224 * config/pa/tm-hppa.h: Update.
8225 * config/pa/tm-hppa64.h: Update.
8226 * config/sparc/tm-sp64.h: Update.
8227 * config/sparc/tm-sparc.h: Update.
8228 * config/sparc/tm-sparclet.h: Update.
8229 * config/z8k/tm-z8k.h: Update.
8230
8231 2002-06-14 Andrew Cagney <cagney@redhat.com>
8232
8233 * Makefile.in (i386_linux_tdep_h): Define.
8234 (i386_tdep_h, i387_tdep_h): Define.
8235 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8236 $(i386_tdep_h) and $(i387_tdep_h).
8237 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8238
8239 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8240
8241 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8242 Already covered by the default.
8243
8244 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8245 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8246 (i386_gdbarch_init): Initialize long_double_format and long_double
8247 bit.
8248
8249 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8250 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8251 Move these to ...
8252 * config/i386/i386sol2.mh: ... here.
8253 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8254 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8255 (SIGCONTEXT_PC_OFFSET): Remove define.
8256 (IN_SIGTRAMP): Remove define.
8257 * i386-sol2-tdep.c: New file.
8258
8259 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8260 * config/i386/tm-i386nw.h: Removed.
8261
8262 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8263 USE_STRUCT_CONVENTION): Remove defines.
8264 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8265 (get_longjmp_target): Remove prototype.
8266 (IN_SIGTRAMP): Remove define.
8267 (i386bsd_in_sigtramp): Remove prototype.
8268 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8269 function. Update comment accordingly
8270 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8271 (FRAME_SAVED_PC): Remove define.
8272 (i386bsd_frame_saved_pc): Remove prototype.
8273 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8274 GET_LONGJMP_TARGET): Remove defines.
8275 (get_longjmp_target): Remove prototype.
8276 (IN_SIGTRAMP): Remove define.
8277 (i386bsd_in_sigtramp): Remove prototype.
8278 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8279 function. Update comment accordingly
8280 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8281 (FRAME_SAVED_PC): Remove define.
8282 (i386bsd_frame_saved_pc): Remove prototype.
8283 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8284 Remove prototype.
8285 (USE_STRUCT_CONVENTION): Remove prototype.
8286 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8287 declaration.
8288 (_initialize_i386bsd_nat): Revise logic to determine some
8289 constants at compile time when compiling a native GDB. Warn if
8290 things don't match up with what we expect.
8291 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8292 Remove variables.
8293 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8294 to use date stored in `struct gdbarch_tdep'.
8295 (i386bsd_sigcontext_offset): Remove varaible.
8296 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8297 stored in `struct gdbarch_tdep'.
8298 (i386bsd_frame_saved_pc): Make static.
8299 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8300 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8301 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8302 i386fbsd4_sc_pc_offset): New variables.
8303 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8304 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8305 functions.
8306 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8307 functions.
8308 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8309 Modify the value of i386fbsd_sigtramp_start and
8310 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8311 i386fbsd_sigtramp_end.
8312 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8313 function.
8314
8315 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8316 define to i386-linux-tdep.h.
8317 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8318 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8319 defines.
8320 (i386_linux_register_name, i386_linux_register_byte,
8321 i386_linux_register_raw_size): Remove prototypes.
8322 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8323 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8324 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8325 TARGET_WRITE_PC): Remove defines.
8326 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8327 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8328 i386_linux_write_pc): Remove prototypes.
8329 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8330 (get_longjmp_target): Remove prototype.
8331 * i386-linux-tdep.h: New file.
8332 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8333 * i386-linux-tdep.c: Include "i386-tdep.h" and
8334 "i386-linux-tdep.h".
8335 (i386_linux_register_name, i386_linux_register_byte,
8336 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8337 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8338 Make static.
8339 (i386_linux_init_abi): New function.
8340 (_initialize_i386_linux_tdep): New function.
8341
8342 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8343 (i386_saved_pc_after_call): Remove prototype.
8344 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8345 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8346 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8347 (i386_register_name, i386_stab_reg_to_regnum,
8348 i386_dwarf_reg_to_regnum): Remove prototypes.
8349 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8350 SIZEOF_SSE_REGS): Remove defines.
8351 (REGISTER_BYTES): Remove define.
8352 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8353 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8354 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8355 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8356 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8357 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8358 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8359 (get_longjmp_target): Remove prototype.
8360 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8361 (sigtramp_saved_pc): Remove define.
8362 (i386v4_sigtramp_saved_pc): Remove prototype.
8363 * config/i386/tm-go32.h (FRAME_CHAIN,
8364 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8365 (i386go32_frame_saved_pc): Remove prototype.
8366 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8367 (get_longjmp_target): Remove prototype.
8368 * i386-tdep.h: Include "osabi.h".
8369 (enum i386_abi): Removed.
8370 (enum struct_return): New enum.
8371 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8372 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8373 sc_pc_offset members.
8374 (i386_gdbarch_register_os_abi): Remove prototype.
8375 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8376 I386_SSE_NUM_REGS): New defines.
8377 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8378 I386_SSE_SIZEOF_REGS): New defines.
8379 (i386_register_name, i386_register_byte, i386_register_raw_size):
8380 New prototypes.
8381 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8382 (i386bsd_sigtramp_saved_pc): New prototype.
8383 * i386-tdep.c: Don't include "elf-bfd.h".
8384 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8385 i386_frame_chain, i386_saved_pc_after_call): Make static.
8386 (i386_frame_saved_pc): Rewrite to call architecture dependent
8387 function to deal with signal handlers. Make static.
8388 (i386go32_frame_saved_pc): Removed.
8389 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8390 Removed.
8391 (i386_get_longjmp_target): New function.
8392 (default_struct_convention, pcc_struct_convention,
8393 reg_struct_convention, valid_conventions, struct_convention): New
8394 variables.
8395 (i386_use_struct_convention): New function.
8396 (i386v4_sigtramp_saved_pc): Renamed to
8397 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8398 (i386_pc_in_sigtramp): New function.
8399 (i386_abi_names): Removed.
8400 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8401 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8402 Removed.
8403 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8404 i386_gdbarch_register_os_abi): Removed.
8405 (struct i386_abi_handler): Removed.
8406 (i386_abi_handler_list): Removed.
8407 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8408 functions.
8409 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8410 i386_nw_init_abi): New functions.
8411 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8412 Use set_gdbarch_xxx() calls instead of relying on macros for a
8413 number of calls.
8414 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8415 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8416 Register the various architecture variants defined in this file.
8417
8418 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8419
8420 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8421 (struct main_type): Remove arg_types member. Update comments for
8422 struct field.
8423 (TYPE_ARG_TYPES): Remove.
8424 (TYPE_FN_FIELD_ARGS): Update.
8425 (smash_to_method_type): Update prototype.
8426
8427 * c-typeprint.c (cp_type_print_method_args): Take method type
8428 instead of argument list. Use new argument layout. Simplify.
8429 (c_type_print_args): Use new argument layout. Simplify.
8430 (c_type_print_base): Update call to cp_type_print_method_args.
8431 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8432 argument; use die->type instead. Update call to
8433 smash_to_method_type.
8434 (read_structure_scope): Update call to dwarf2_add_member_fn.
8435 * gdbtypes.c (allocate_stub_method): Update comment.
8436 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8437 Use new argument layout.
8438 (check_stub_method): Use new argument layout. Don't count
8439 void as an argument.
8440 (print_arg_types): Update comments. Use new argument layout.
8441 (recursive_dump_type): Don't print arg_types member.
8442 * hpread.c (hpread_read_struct_type): Use new argument layout.
8443 (fixup_class_method_type): Likewise.
8444 (hpread_type_lookup): Likewise.
8445 * stabsread.c (read_type): Update calls to read_args and
8446 smash_to_method_type.
8447 (read_args): Use new argument layout. Simplify.
8448 * valops.c (typecmp): Use new argument layout. Update parameters
8449 and comments. Simplify.
8450 (hand_function_call): Use new argument layout.
8451 (search_struct_method): Update call to typecmp.
8452 (find_overload_match): Use new argument layout.
8453
8454 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8455
8456 * NEWS: Mention multithreaded debug support for gdbserver.
8457
8458 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8459
8460 * MAINTAINERS: Mention NEWS.
8461
8462 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8463
8464 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8465 (struct mips_objfile_private, compare_pdr_entries): New.
8466 (non_heuristic_proc_desc): Read the ".pdr" section if it
8467 is present.
8468
8469 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8470
8471 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8472 (arm_debug): New static variable.
8473 (_initialize_arm_tdep): Add ``set debug arm'' command.
8474
8475 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8476
8477 * Makefile.in (sim_arm_h): Define.
8478 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8479 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8480 (arm_register_sim_regno): New function, map an internal REGNUM
8481 onto a simulator register number.
8482 (arm_gdbarch_init): Set register_sim_regno.
8483
8484 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8485
8486 * MAINTAINERS: Add self.
8487
8488 2002-06-11 Jim Blandy <jimb@redhat.com>
8489
8490 * source.c (source_info): Mention whether the symtab has
8491 information about preprocessor macros.
8492
8493 Call the command `info macro', not `show macro'.
8494 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8495 Fix error message.
8496 (_initialize_macrocmd): Register `info_macro_command' in
8497 `infolist', not `showlist'.
8498
8499 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8502 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8503 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8504 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8505 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8506 unconditionally.
8507 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8508 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8509 (_initialize_mips_tdep): Remove dead code.
8510 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8511 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8512 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8513 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8514 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8515 MIPS_LAST_FP_ARG_REGNUM): Remove.
8516
8517 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8518
8519 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8520 (unwind_tmp_obstack_free, parse_frame_info)
8521 (update_context, cfi_read_fp, cfi_write_fp)
8522 (cfi_frame_chain, cfi_init_extra_frame_info)
8523 (cfi_virtual_frame_pointer): Use the above function.
8524 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8525
8526 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8527
8528 * v850-tdep.c (v850_type_is_scalar): New function.
8529 (v850_use_struct_convention): Match current gcc implementation
8530 as close as possible.
8531 (v850_push_arguments): Fix stack_offset handling. Don't write
8532 struct_addr into register. This is done by v850_store_struct_return.
8533 (v850_extract_return_value): Care for structs.
8534 (v850_store_return_value): Ditto.
8535 (v850_store_struct_return): Actually write address.
8536
8537 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8538
8539 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8540 without debug information too.
8541
8542 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8543
8544 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8545 Make multi-arch pure.
8546 * gdbarch.h, gdbarch.c: Re-generate.
8547 * arm-tdep.c (arm_print_float_info): Update.
8548 * arch-utils.h (default_print_float_info): Update.
8549 * arch-utils.c (default_print_float_info): Update.
8550 * infcmd.c (float_info): Update call.
8551
8552 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8553
8554 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8555 the front of the initialize list.
8556
8557 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8558
8559 * infrun.c (struct inferior_status): Replace fields
8560 selected_frame_address and selected_level with field
8561 selected_frame_id.
8562 (save_inferior_status): Update. Use get_frame_id.
8563 (struct restore_selected_frame_args): Delete.
8564 (restore_selected_frame): Update. Use frame_find_by_id.
8565 (restore_inferior_status): Update.
8566
8567 * breakpoint.h (struct breakpoint): Change type of
8568 watchpoint_frame to frame_id.
8569 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8570 call to get_current_frame.
8571 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8572 get_current_frame.
8573 (watchpoint_check): Use frame_find_by_id.
8574
8575 * frame.h (record_selected_frame): Delete declaration.
8576 * stack.c (record_selected_frame): Delete function.
8577
8578 * frame.h (struct frame_id): Define.
8579 (get_frame_id): Declare.
8580 (frame_find_by_id): Declare.
8581 * frame.c (frame_find_by_id): New function.
8582 (get_frame_id): New function.
8583
8584 2002-06-10 Andrey Volkov <avolkov@transas.com>
8585
8586 * ser-e7kpc.c: Fix duplicated define and call of
8587 _initialize_ser_e7000pc
8588
8589 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8590
8591 * signals/signals.c (target_signal_from_host): Fix #ifdef
8592 SIGRTMIN case.
8593 (do_target_signal_to_host): Likewise.
8594
8595 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8596
8597 * mips-tdep.c (mips_find_abi_section): New function.
8598 (mips_gdbarch_init): Call it.
8599
8600 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8601
8602 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8603 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8604 after Andrew's 2002-06-08 gdbarch change.
8605
8606 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8607
8608 * i386-linux-nat.c (suppy_gregset): Don't supply
8609 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8610 register cache.
8611 (fill_gregset): Don't fetch it under the same circumstances.
8612
8613 2002-06-09 Andrew Cagney <cagney@redhat.com>
8614
8615 * Makefile.in (callback_h): Define.
8616 (remote_sim_h): Update path to remote-sim.h.
8617 (remote-rdp.o): Add $(callback_h).
8618 (remote-sim.o): Use $(callback_h).
8619 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8620 * remote-rdp.c: Include "gdb/callback.h".
8621
8622 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8623
8624 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8625 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8626
8627 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8628
8629 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8630 * rdi-share/serpardr.c: Ditto.
8631 * rdi-share/unixcomm.c: Ditto.
8632 * rdi-share/serdrv.c: Ditto.
8633 * rdi-share/hostchan.h: Ditto.
8634 * rdi-share/hostchan.c: Ditto.
8635 * rdi-share/host.h: Ditto.
8636 * rdi-share/devsw.c: Ditto.
8637
8638 * objfiles.h: Change type of obj_private to void pointer.
8639 * pa64solib.c: Update copyright. Don't include "assert.h", use
8640 strcmp instead of STREQ, use LONGEST, do not use PTR
8641 * somsolib.c: Ditto.
8642
8643 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8644 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8645 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8646
8647 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8648
8649 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8650 (default_get_saved_register): Delete function.
8651 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8652 generic_unwind_get_saved_register.
8653 * gdbarch.h, gdbarch.c: Re-generate.
8654
8655 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8656
8657 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8658 generic_func_frame_chain_valid.
8659 * gdbarch.h, gdbarch.c: Re-generate.
8660 * blockframe.c (generic_func_frame_chain_valid): Only check
8661 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8662 passing FP to PC_IN_CALL_DUMMY.
8663 Fix PR gdb/360.
8664
8665 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8666
8667 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8668 (register_gdbarch_data): Initialize init_p.
8669 (gdbarch_data): Initialize data pointer using the init function.
8670 (init_gdbarch_data): Delete function.
8671 (gdbarch_update_p): Update.
8672 (initialize_non_multiarch): Update.
8673 (struct gdbarch): Add field initialized_p.
8674 * gdbarch.h, gdbarch.c: Re-generate.
8675
8676 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8677
8678 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8679 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8680 better do the things actually here.
8681 * x86-64-tdep.c (x86_64_register_name2nr): New.
8682 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8683 (x86_64_gdbarch_init): Respect the above change.
8684 * x86-64-tdep.h (x86_64_register_name2nr)
8685 (x86_64_register_nr2name): Add prototypes.
8686 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8687
8688 2002-06-06 Michael Snyder <msnyder@redhat.com>
8689
8690 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8691 Delete extra braces and re-indent.
8692 (d10v_store_return_value): Char return values
8693 must be shifted over by one byte in R0.
8694 (d10v_extract_return_value): Delete extra braces, re-indent.
8695
8696 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8697
8698 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8699 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8700 (d10v_integer_to_address): Rewrite.
8701 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8702 the d10v specific functions which take care of converting to the
8703 correct space.
8704
8705 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8706
8707 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8708 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8709
8710 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8711
8712 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8713 includes.
8714 * config/tm-linux.h: Ditto.
8715 * config/alpha/tm-alphalinux.h: Ditto.
8716 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8717 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8718 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8719 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8720 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8721 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8722 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8723 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8724 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8725 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8726 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8727 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8728 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8729 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8730 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8731 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8732 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8733 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8734 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8735 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8736 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8737 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8738 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8739 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8740 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8741 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8742 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8743 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8744 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8745 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8746 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8747 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8748 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8749 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8750 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8751 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8752 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8753
8754 2002-05-04 Aidan Skinner <aidan@velvet.net>
8755
8756 * ada-exp.tab.c: New file
8757 * ada-exp.y: New file
8758 * ada-lang.c: New file
8759 * ada-lang.h: New file
8760 * ada-lex.c: New file
8761 * ada-lex.l: New file
8762 * ada-tasks.c: New file
8763 * ada-typeprint.c: New file
8764 * ada-valprint.c: New file
8765
8766 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8767
8768 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8769 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8770
8771 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8772
8773 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8774 insetead of ppc-linux-tdep.o.
8775 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8776 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8777
8778 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8779
8780 2002-05-07 Christian Groessler <chris@groessler.org>
8781 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8782 bit register contents for little endian hosts.
8783
8784 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8785
8786 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8787 any maintainer.
8788
8789 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8790
8791 * gdbarch.h: Regenerate.
8792
8793 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8794
8795 * MAINTAINERS: Add everyone to write-after-approval list.
8796
8797 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8798
8799 * stack.c (frame_info): Use frame_register_unwind instead of
8800 saved_regs. Mention when the SP is on the stack or in a register.
8801
8802 * frame.h (frame_register_unwind_ftype): Define. Document.
8803 (struct frame_info): Add field register_unwind and
8804 register_unwind_cache.
8805 (frame_register_unwind): Declare.
8806 (generic_unwind_get_saved_register): Declare.
8807
8808 * frame.c (frame_register_unwind): New function.
8809 (generic_unwind_get_saved_register): New function.
8810
8811 * blockframe.c (generic_call_dummy_register_unwind): New function.
8812 (frame_saved_regs_register_unwind): New function.
8813 (set_unwind_by_pc): New function.
8814 (create_new_frame): New function.
8815 (get_prev_frame): New function.
8816
8817 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8818
8819 * a29k-share/: Delete directory.
8820 * remote-vx29k.c: Delete file.
8821
8822 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8823
8824 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8825 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8826
8827 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8828
8829 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8830 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8831 (sparc64nbsd-nat.o)
8832 (sparcnbsd-nat.o)
8833 (sparcnbsd-tdep.o): New dependency lists.
8834 * NEWS: Note new UltraSPARC NetBSD native configuration.
8835 * configure.host (sparc64-*-netbsd*): New host.
8836 * configure.tgt (sparc-*-netbsdelf*)
8837 (sparc-*-netbsd*): Set gdb_target to nbsd.
8838 (sparc64-*-netbsd*): New target.
8839 * sparc64nbsd-nat.c: New file.
8840 * sparcnbsd-nat.c: New file.
8841 * sparcnbsd-tdep.c: New file.
8842 * sparcnbsd-tdep.h: New file.
8843 * config/sparc/nbsd.mt: New file.
8844 * config/sparc/nbsd64.mh: New file.
8845 * config/sparc/nbsd64.mt: New file.
8846 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8847 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8848 (HOST_IPC): Remove.
8849 * config/sparc/nbsdaout.mt: Remove.
8850 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8851 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8852 (HOST_IPC): Remove.
8853 * config/sparc/nbsdelf.mt: Remove.
8854 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8855 sparc-nat.c compatiblity defines.
8856 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8857 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8858 * config/sparc/tm-nbsd64.h: New file.
8859 * config/sparc/tm-nbsdaout.h: Remove.
8860 * config/sparc/xm-nbsd.h: Remove.
8861
8862 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8863
8864 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8865 * sparc-tdep.c: Include osabi.h.
8866 (gdbarch_tdep): Add osabi member.
8867 (_initialize_sparc_tdep): Use gdbarch_register.
8868 (sparc_gdbarch_init): Use generic OS ABI framework.
8869 (sparc_dump_tdep): New function.
8870
8871 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8872
8873 * corefile.c (do_captured_read_memory_integer): Return non-zero
8874 result.
8875 (safe_read_memory_integer): Copy result of memory read when
8876 status is non-zero. Also, add comments.
8877
8878 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8879
8880 * Makefile.in (ppc_tdep_h): Define.
8881 (ppc-linux-nat.o)
8882 (ppc-linux-tdep.o)
8883 (rs6000-tdep.o): Use $(ppc_tdep_h).
8884 (ppc-sysv-tdep.o)
8885 (ppcnbsd-nat.o)
8886 (ppcnbsd-tdep.o): New dependency lists.
8887 * ppc-tdep.h: Use generic OS ABI framework.
8888 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8889 (ppc_linux_init_abi): New functions.
8890 (ppc_sysv_abi_broken_use_struct_convention)
8891 (ppc_sysv_abi_use_struct_convention)
8892 (ppc_sysv_abi_push_arguments): Move to...
8893 * ppc-sysv-tdep.c: ...here.
8894 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8895 * rs6000-tdep.c (process_note_abi_tag_sections)
8896 (get_elfosabi): Remove.
8897 (rs6000_gdbarch_init): Use generic OS ABI framework.
8898 (rs6000_dump_tdep): New function.
8899 (_initialize_rs6000_tdep): Use gdbarch_register.
8900 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8901 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8902 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8903 of ppc-linux-tdep.o.
8904 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8905 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8906 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8907 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8908 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8909 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8910
8911 2002-05-29 Jim Blandy <jimb@redhat.com>
8912
8913 * macroscope.c (default_macro_scope): Put `void' in empty argument
8914 list.
8915
8916 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8917
8918 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8919 * arch-utils.c: Include "sim-regno.h".
8920 * gdbarch.sh: Don't include "sim-regno.h".
8921 * gdbarch.h, gdbarch.c: Regenerate.
8922 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8923 here.
8924 * arch-utils.h (legacy_register_sim_regno): To here.
8925 * remote-sim.c (legacy_register_sim_regno): Move function from
8926 here.
8927 * arch-utils.c (legacy_register_sim_regno): To here.
8928
8929 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8930
8931 * sim-regno.h: New file.
8932 * Makefile.in (sim_regno_h): Define.
8933 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8934 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8935 (legacy_register_sim_regno): New function.
8936 (one2one_register_sim_regno): New function.
8937 (gdbsim_fetch_register): Rewrite.
8938 (gdbsim_store_register): Only store a register when
8939 REGISTER_SIM_REGNO is valid.
8940 * d10v-tdep.c: Include "sim-regno.h".
8941 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8942 (d10v_ts3_register_sim_regno): Ditto.
8943 * gdbarch.sh: Include "sim-regno.h".
8944 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8945 * gdbarch.h, gdbarch.c: Regenerate.
8946 * arch-utils.h (default_register_sim_regno): Delete declaration.
8947 * arch-utils.c (default_register_sim_regno): Delete function.
8948
8949 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * ppcnbsd-nat.c: Rewrite.
8952 * ppcnbsd-tdep.c: New file.
8953 * ppcnbsd-tdep.h: New file.
8954 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8955 solib.o, and solib-svr4.o.
8956 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8957 nbsd-tdep.o, and corelow.o.
8958
8959 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8960
8961 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8962 `tr' and `sed'. Mention that `broken' targets are not expected to
8963 build.
8964
8965 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8966
8967 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8968 Let PC point right after the prologue before looking up symbols.
8969
8970 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8971
8972 * i386-tdep.c (i386_register_virtual_type): Return
8973 builtin_type_vec128i for SSE registers.
8974
8975 * gdbtypes.h (builtin_type_vec128i): Declare.
8976
8977 * gdbtypes.c (build_builtin_type_vec128i): New function.
8978 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8979 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8980 (build_gdbtypes): Initialize new builtin vector types.
8981 (_initialize_gdbtypes): Register new vector types with gdbarch.
8982
8983 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8984
8985 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8986 since it has been multi-arch'd.
8987 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8988 Move Alpha and VAX multi-arch news entries to same section
8989 as other multi-arch news.
8990
8991 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8992
8993 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8994 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8995 static. Rename some register numbers to put them in ns32k-tdep
8996 private namespace.
8997 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8998 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8999 functions.
9000 (_initialize_ns32k_tdep): Use gdbarch_register.
9001 * ns32k-tdep.h: New file.
9002 * ns32knbsd-tdep.c: New file.
9003 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9004 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9005 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9006 REGISTER_BYTES, REGISTER_BYTE): Remove.
9007 * config/ns32k/tm-ns32k.h: New file.
9008 * config/ns32k/tm-umax.h: Remove.
9009
9010 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9011
9012 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9013 ns32k_store_struct_return, ns32k_extract_return_value,
9014 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9015 functions.
9016 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9017 ns32k_saved_pc_after_call.
9018 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9019 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9020 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9021 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9022 ns32k_extract_struct_value_address.
9023
9024 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9025
9026 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9027 ns32k_fix_call_dummy): New.
9028 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9029 ns32k_call_dummy_words.
9030 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9031 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9032 CALL_DUMMY_NARGS): Remove.
9033 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9034
9035 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9036
9037 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9038 ns32k_frame_saved_pc, ns32k_frame_args_address,
9039 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9040 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9041 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9042 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9043 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9044 (BREAKPOINT): Remove..
9045 (FRAME_CHAIN): Define as ns32k_frame_chain.
9046 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9047 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9048 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9049 (FRAME_FIND_SAVED_REGS): Remove.
9050 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9051 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9052 (POP_FRAME): Define as ns32k_pop_frame.
9053
9054 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9055
9056 * ns32k-tdep.c (ns32k_register_byte_32082,
9057 ns32k_register_byte_32382, ns32k_register_raw_size,
9058 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9059 functions.
9060 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9061 ns32k_register_byte_32382.
9062 * config/ns32k/tm-umax.h: Update copyright years.
9063 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9064 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9065 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9066 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9067 (ns32k_get_enter_addr): Fix prototype.
9068
9069 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9070
9071 * ns32k-tdep.c: Update copyright years.
9072 (ns32k_register_name_32082): New function.
9073 (ns32k_register_name_32382): Ditto.
9074 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9075 (REGISTER_NAME): Define as ns32k_register_name_32382.
9076 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9077 (REGISTER_NAME): Define as ns32k_register_name_32082.
9078
9079 2002-05-24 Jim Blandy <jimb@redhat.com>
9080
9081 * dwarf2read.c (free_line_header): Use xfree, not free.
9082
9083 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9084
9085 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9086 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9087
9088 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9089
9090 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9091
9092 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9093
9094 From Ross Alexander at NEC Europe:
9095 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9096
9097 2002-05-23 Michael Snyder <msnyder@redhat.com>
9098
9099 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9100 for input, rather than parse_and_eval_address.
9101
9102 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9103
9104 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9105 * Makefile.in (sim_d10v_h): Update definition.
9106
9107 2002-05-24 Andrew Cagney <cagney@redhat.com>
9108
9109 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9110 change `2002-05-22 Michael Snyder' below.
9111 (d10v_push_arguments): Ditto.
9112 (d10v_extract_return_value): Ditto.
9113
9114 2002-05-23 Jim Blandy <jimb@redhat.com>
9115
9116 * macrotab.c (check_for_redefinition): Don't complain if the new
9117 definition is the same as the previous one. Take more arguments
9118 to allow the comparison.
9119 (macro_define_object, macro_define_function): Pass more arguments
9120 to check_for_redefinition.
9121
9122 2002-05-22 Michael Snyder <msnyder@redhat.com>
9123
9124 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9125 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9126 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9127 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9128 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9129 Add a temp variable to save a call (and a memory read).
9130 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9131 if possible (so that PC_IN_CALL_DUMMY will work).
9132
9133 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9134
9135 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9136
9137 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9138
9139 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9140 fde->cie_ptr.
9141 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9142 (dwarf2_build_frame_info): Add offset to fde->initial_location
9143 so that frames of shared libraries are mapped correctly.
9144 (execute_stack_op): Change type of 'result' from ULONGEST to
9145 CORE_ADDR.
9146
9147 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9148
9149 * config/alpha/tm-nbsd.h: Include solib.h.
9150
9151 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9152
9153 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9154 assumptions about the host's byte order.
9155
9156 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9159 to dependency list.
9160 * alphanbsd-tdep.c: Include solib-svr4.h.
9161 * shnbsd-tdep.c: Ditto.
9162
9163 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9164
9165 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9166 nbsd-tdep.h to dependency list.
9167 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9168 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9169 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9170 nbsdaout.mh and nbsdelf.mh consistently.
9171 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9172 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9173 nbsdaout.mt and nbsdelf.mh consistently.
9174 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9175 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9176 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9177 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9178 a.out shared library stuff from here...
9179 * config/nm-nbsdaout.h: ...to here.
9180 * config/tm-nbsd.h: Remove.
9181 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9182 * config/arm/nbsd.mh: Remove.
9183 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9184 nbsd-tdep.o.
9185 * config/arm/nbsdaout.mh: New file.
9186 * config/arm/nbsdelf.mh: New file.
9187 * config/arm/nm-nbsdaout.h: New file.
9188 * config/i386/nbsd.mh: Remove.
9189 * config/i386/nbsd.mt: Remove.
9190 * config/i386/nbsdaout.mh: New file.
9191 * config/i386/nbsdaout.mt: New file.
9192 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9193 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9194 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9195 i386_register_u_addr): Remove.
9196 * config/i386/nm-nbsdaout.h: New file.
9197 * config/i386/nm-nbsdelf.h: Remove.
9198 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9199 (USE_STRUCT_CONVENTION): Remove.
9200 * config/i386/tm-nbsdaout.h: New file.
9201 * config/i386/tm-nbsdelf.h: Remove.
9202 * config/m68k/nbsd.mh: Remove.
9203 * config/m68k/nbsd.mt: Remove.
9204 * config/m68k/nbsdaout.mh: New file.
9205 * config/m68k/nbsdaout.mt: New file.
9206 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9207 * config/m68k/nm-nbsdaout.h: New file.
9208 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9209 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9210 * config/ns32k/nbsd.mh: Remove.
9211 * config/ns32k/nbsd.mt: Remove.
9212 * config/ns32k/nbsdaout.mh: New file.
9213 * config/ns32k/nbsdaout.mt: New file.
9214 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9215 * config/ns32k/nm-nbsdaout.h: New file.
9216 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9217 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9218 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9219 (SVR4_SHARED_LIBS): Remove.
9220 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9221 * config/sparc/nbsd.mh: Remove.
9222 * config/sparc/nbsd.mt: Remove.
9223 * config/sparc/nbsdaout.mh: New file.
9224 * config/sparc/nbsdaout.mt: New file.
9225 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9226 * config/sparc/nbsdelf.mt: New file.
9227 * config/sparc/nm-nbsdaout.h: New file.
9228 * config/sparc/nm-nbsdelf.h: Remove.
9229 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9230 * config/sparc/tm-nbsdaout.h: New file.
9231
9232 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9233
9234 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9235 mipsnbsd-tdep.c
9236 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9237
9238 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9239
9240 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9241 shnbsd-nat.c.
9242 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9243
9244 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 * NEWS: Note new MIPS NetBSD native configuration.
9247 * configure.host (mips*-*-netbsd*): New host.
9248 * configure.tgt (mips*-*-netbsd*): New target.
9249 * mipsnbsd-nat.c: New file.
9250 * mipsnbsd-tdep.c: New file.
9251 * mipsnbsd-tdep.h: New file.
9252 * config/mips/nbsd.mh: New file.
9253 * config/mips/nbsd.mt: New file.
9254 * config/mips/nm-nbsd.h: New file.
9255 * config/mips/tm-nbsd.h: New file.
9256
9257 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9258
9259 * Makefile.in (SFILES): Add osabi.c.
9260 (COMMON_OBS): Add osabi.o.
9261 (osabi.o): New dependency list.
9262 * osabi.c: New file.
9263 * osabi.h: New file.
9264 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9265
9266 * Makefile.in (alpha_tdep_h): Define and use instead of
9267 alpha-tdep.h.
9268 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9269 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9270 Remove.
9271 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9272 * alpha-tdep.h: Include osabi.h.
9273 (alpha_abi): Remove.
9274 (gdbarch_tdep): Use generic OS ABI framework.
9275 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9276 gdbarch_register_osabi.
9277 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9278 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9279 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9280
9281 * Makefile.in (sh_tdep_h): Add osabi.h.
9282 * sh-tdep.h (sh_osabi): Remove.
9283 (gdbarch_tdep): Use generic OS ABI framework.
9284 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9285 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9286 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9287 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9288
9289 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9290 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9291 gdbarch_register_osabi.
9292 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9293 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9294 (get_elfosabi): Rename to...
9295 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9296 ABI framework support routines.
9297 (arm_gdbarch_init): Use generic OS ABI framework.
9298 (arm_dump_tdep): Likewise.
9299 (_initialize_arm_tdep): Likewise.
9300 * arm-tdep.h: Include osabi.h.
9301 (arm_abi): Remove.
9302 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9303 osabi member.
9304 (arm_gdbarch_register_os_abi): Remove prototype.
9305 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9306 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9307
9308 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9309 * mips-tdep.c: Include osabi.h.
9310 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9311 OS ABI framework.
9312
9313 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9314
9315 * h8300-tdep.c: Fix formatting.
9316
9317 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9318
9319 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9320 printing vector registers.
9321
9322 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9323
9324 From Fernando Nasser:
9325 * remote.c (remote_async_open_1): Re-throw the exception when the
9326 connection fails.
9327 (remote_cisco_open): Ditto.
9328 (remote_open_1): Ditto.
9329
9330 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9331
9332 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9333 (remote_start_remote): Add uiout parameter. Pass through to
9334 remote_start_remote_dummy.
9335 (remote_open_1): Use catch_exception instead of catch_errors.
9336 (remote_async_open_1): Ditto.
9337 (remote_cisco_open): Ditto.
9338
9339 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9340
9341 * remote.c (remote_start_remote): Replace PTR with void pointer.
9342 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9343 static.
9344
9345 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9346
9347 * gdb_indent.sh: Allow the script to be run in the sim directory.
9348
9349 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9350
9351 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9352 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9353
9354 * corelow.c (core_open): Only call set_gdbarch_from_file if
9355 exec_bfd is NULL.
9356
9357 2002-05-17 Andrey Volkov <avolkov@transas.com>
9358
9359 * h8300-tdep.c: Add support of EXR register
9360 * config/h8300/tm-h8300.h: Ditto.
9361
9362 2002-05-17 Andrey Volkov <avolkov@transas.com>
9363
9364 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9365
9366 2002-05-17 Andrey Volkov <avolkov@transas.com>
9367
9368 * h8300-tdep.c: Change literal regnums to REGNO.
9369
9370 2002-05-17 Jim Blandy <jimb@redhat.com>
9371
9372 * NEWS: Note addition of macro support.
9373
9374 Expand preprocessor macros in C expressions.
9375 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9376 (scan_macro_expansion, scanning_macro_expansion,
9377 finished_macro_expansion): New function declarations.
9378 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9379 variable declarations.
9380 * parser-defs.h (expression_context_pc): New declaration.
9381 * parse.c (expression_context_pc): New variable.
9382 (parse_exp_1): Set expression_context_pc, as well as
9383 expression_context_block.
9384 * c-exp.y (yylex): If we're not already reading the result of a
9385 macro expansion, try to macro-expand the next token. When we're
9386 done scanning a macro expansion, switch back to the mainline text.
9387 Commas and `if's in a macro's expansion don't terminate the input.
9388 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9389 (macro_original_text, macro_expanded_text,
9390 expression_macro_lookup_func, expression_macro_lookup_baton): New
9391 variables.
9392 (scan_macro_expansion, scanning_macro_expansion,
9393 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9394 c_preprocess_and_parse): New functions.
9395 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9396 c_preprocess_and_parse, instead of c_parse.
9397 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9398 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9399
9400 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9401
9402 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9403 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9404 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9405
9406 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9407
9408 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9409
9410 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9411
9412 * Makefile.in (sh_tdep_h): Define and use.
9413 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9414 register enum): Move to...
9415 * * sh-tdep.h: ...here.
9416 * sh-tdep.c: Include sh-tdep.h.
9417 * sh3-rom.c: Likewise.
9418 * shnbsd-tdep.c: Likewise.
9419
9420 2002-05-16 Michael Snyder <msnyder@redhat.com>
9421
9422 * arm-tdep.c: Spelling fix in comment.
9423
9424 2002-05-16 Jim Blandy <jimb@redhat.com>
9425
9426 Add commands for manually expanding macros and showing their
9427 definitions.
9428 * macrocmd.c, macroscope.c, macroscope.h: New files.
9429 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9430 (macroscope_h): New variable.
9431 (HFILES_NO_SRCDIR): Add macroscope.h.
9432 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9433 (macroscope.o, macrocmd.o): New rules.
9434
9435 Teach the Dwarf 2 reader to read macro information.
9436 * dwarf2read.c: #include "macrotab.h".
9437 (dwarf_macinfo_buffer): New variable.
9438 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9439 dwarf_macinfo_size.
9440 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9441 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9442 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9443 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9444 dwarf2_macro_spaces_in_definition): New complaints.
9445 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9446 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9447 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9448 the partial symbol table.
9449 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9450 from what's recorded in the partial symbol table.
9451 (read_file_scope): If the compilation unit has a
9452 `DW_AT_macro_info' attribute, read its macro information.
9453 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9454
9455 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9456
9457 Fix PR gdb/546
9458 * ser-tcp.c: Don't include <netinet/udp.h>.
9459
9460 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9461
9462 * MAINTAINERS: Update my email address.
9463
9464 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9465
9466 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9467 include file of the same name.
9468
9469 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9470
9471 * configure.tgt: Mark v850 as multi-arched.
9472 * config/v850/tm-v850.h: Remove file.
9473 * config/v850/v850.mt: Eliminate TM_FILE.
9474
9475 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9476
9477 * v850-tdep.c: Full multi-arch.
9478 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9479 Define GDB_MULTI_ARCH to 2.
9480
9481 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9482
9483 * p-exp.y (current_type): New static variable.
9484 Carries the type of the expression at the position that is parsed.
9485 (push_current_type, pop_current_type): Two new functions. Used
9486 to store/restore current_type in expression on specific tokens.
9487 (search_field): New static variable. Set to one after parsing a point
9488 as at that point only a FIELDNAME token should be searched.
9489 (FIELDNAME): New token. After a point only a token belonging to
9490 current_type type definition is allowed.
9491 (all over token rules): reset and change current_type according
9492 to rules.
9493 (exp '[' rule): insert implicit array index field if
9494 exp is a pascal string type.
9495
9496 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9497
9498 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9499 frame info. Use frame_info's saved_regs instead of matching member
9500 in extra_frame_info throughout.
9501 (v850_frame_init_saved_regs): New function.
9502 (v850_init_extra_frame_info): Move most functionality into
9503 v850_frame_init_saved_regs().
9504 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9505 (v850_frame_find_saved_regs): Remove declaration.
9506 (FRAME_FIND_SAVED_REGS): Remove definition.
9507 (v850_frame_init_saved_regs): Add declaration.
9508 (FRAME_INIT_SAVED_REGS): Add definition.
9509
9510 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9511
9512 * v850-tdep.c: Begin multi-arch'ing v850.
9513 (v850_target_architecture_hook): Remove function.
9514 (v850_gdbarch_init): New function. Add code previously in
9515 v850_target_architecture_hook().
9516 (_initialize_v850_tdep): Don't set target_architecture_hook.
9517 Call register_gdbarch_init() instead.
9518
9519 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9520
9521 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9522 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9523 (fixup_class_method_type): Likewise.
9524
9525 2002-05-15 Jim Blandy <jimb@redhat.com>
9526
9527 Add macro structures to GDB's symbol tables. Nobody puts anything
9528 in them yet.
9529 * symtab.h (struct symtab): New member: `macro_table'.
9530 * buildsym.h (pending_macros): New global variable.
9531 * buildsym.c: #include "macrotab.h".
9532 (buildsym_init): Initialize `pending_macros'.
9533 (end_symtab): If we found macro information while reading a CU's
9534 debugging info, do build a symtab structure for it. Make the
9535 symtab point to the macro information, and clear the
9536 `pending_macros' pointer which held it while we were reading the
9537 debug info.
9538 (really_free_pendings): Free any pending macro table.
9539 * objfiles.h (struct objfile): New member: `macro_cache'.
9540 * objfiles.c (allocate_objfile): Set allocate and free functions
9541 for the macro cache's objstack.
9542 (free_objfile): Empty the macro cache's obstack.
9543 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9544 set new allocate and free functions for it.
9545 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9546 free functions for the macro cache's objstack. (Why is this
9547 function building its own objfile?)
9548 * symmisc.c (print_objfile_statistics): Print statistics on the
9549 macro bcache.
9550 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9551
9552 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9553
9554 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9555 (REGISTER_U_ADDR): Delete definition.
9556 (arm_register_u_addr): Delete declaration.
9557
9558 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9559
9560 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9561 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9562
9563 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9564
9565 * regcache.c (register_valid): Revise comments refering to "Not
9566 available" and "unavailable".
9567 * frame.c (frame_register_read): Ditto.
9568 * findvar.c (value_of_register): Ditto.
9569
9570 2002-05-15 Andrew Cagney <cagney@redhat.com>
9571
9572 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9573 (remote-sim.o): Update dependencies.
9574 (d10v-tdep.o): Specify dependencies.
9575 (sim_d10v_h): Define.
9576
9577 2002-05-14 Jim Blandy <jimb@redhat.com>
9578
9579 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9580 * macrotab.c (macro_lookup_inclusion, find_definition,
9581 new_macro_table): Same.
9582
9583 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9584 not `! strcmp ()'. This is a dubious improvement.
9585 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9586
9587 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9588 although it's not necessary, to avoid a warning.
9589
9590 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9593 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9594 TYPE_INSTANCE_FLAGS.
9595 (struct main_type): New.
9596 (struct type): Move most members to struct main_type. Change
9597 cv_type and as_type to new type_chain member. Add instance_flags.
9598 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9599 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9600 (finish_cv_type): Remove prototype.
9601 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9602 Set TYPE_CHAIN.
9603 (alloc_type_instance): New function.
9604 (smash_type): New function.
9605 (make_pointer_type, make_reference_type, make_function_type)
9606 (smash_to_member_type, smash_to_method_type): Call smash_type.
9607 (make_qualified_type): New function.
9608 (make_type_with_address_space): Call make_qualified_type.
9609 (make_cv_type): Likewise.
9610 (finish_cv_type): Remove unnecessary function.
9611 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9612 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9613 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9614 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9615 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9616 * hpread.c (hpread_read_struct_type): Likewise.
9617 * stabsread.c (read_struct_type): Likewise.
9618
9619 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9620
9621 * configure.tgt: Add a catch all sh* target, for cases like
9622 sh[2,3,4]-elf and sh-hms.
9623
9624 2002-05-14 Keith Seitz <keiths@redhat.com>
9625
9626 * event-loop.c (create_file_handler): Don't do anything but
9627 update data when we are given a fd which we are already
9628 monitoring.
9629
9630 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9631
9632 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9633 (update_context): Use __func__ in warnings.
9634
9635 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9636
9637 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9638 and tcp_close to net_open and net_close.
9639 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9640 using UDP if requested. Don't try to disable Nagle on UDP
9641 sockets.
9642 * remote.c (remote_serial_open): New function. Warn about UDP.
9643 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9644
9645 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9646
9647 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9648
9649 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9650
9651 * configure.tgt: Remove sh-hms target.
9652 * MAINTAINERS: Don't list sh-hms as a separate target.
9653
9654 2002-05-13 Jim Blandy <jimb@redhat.com>
9655
9656 Add first preprocessor macro-expansion files.
9657 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9658 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9659 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9660 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9661 (COMMON_OBS): Add macrotab.o, macroexp.o.
9662 (macroexp.o, macrotab.o): New rules.
9663
9664 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9665
9666 * config/m88k/tm-m88k.h: Update copyright.
9667 (m88k_target_write_pc): Declare
9668 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9669 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9670 (SHIFT_INST_REGS): Update definition.
9671 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9672 using old definition of TARGET_WRITE_PC.
9673 * regcache.c (generic_target_write_pc): Delete code handling
9674 NNPC_REGNUM.
9675 * gdbarch.sh (NNPC_REGNUM): Delete.
9676 * gdbarch.h, gdbarch.c: Regenerate.
9677
9678 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9679
9680 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9681 builtin reg number.
9682
9683 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9684
9685 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9686 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9687 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9688 access macros.
9689 * c-typeprint.c (cp_type_print_method_args): Likewise.
9690 (c_type_print_args): Likewise.
9691 * d10v-tdep.c (d10v_push_arguments): Likewise.
9692 (d10v_extract_return_value): Likewise.
9693 * expprint.c (print_subexp): Likewise.
9694 * gdbtypes.c (lookup_primitive_typename): Likewise.
9695 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9696 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9697 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9698 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9699 (TYPE_VECTOR): Likewise.
9700 * hpread.c (hpread_read_struct_type)
9701 (fix_static_member_physnames, fixup_class_method_type)
9702 (hpread_type_lookup): Likewise.
9703 * mdebugread.c (parse_symbol, parse_type): Likewise.
9704 * p-lang.c (is_pascal_string_type): Likewise.
9705 * valops.c (hand_function_call): Likewise.
9706 * x86-64-tdep.c (classify_argument): Likewise.
9707
9708 * hpread.c (hpread_read_function_type)
9709 (hpread_read_doc_function_type): Call replace_type.
9710 * dstread.c (create_new_type): Delete.
9711 (decode_dst_structure, process_dst_function): Call alloc_type.
9712 Use type access macros.
9713
9714 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9715
9716 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9717 the're not supported by the current architecture.
9718 (i387_fill_fxsave): Likewise.
9719
9720 2002-05-12 Fred Fish <fnf@redhat.com>
9721
9722 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9723 sect_index_xxx members to index the first slot in section_offsets
9724 if all of the section_offsets are zero.
9725
9726 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9727
9728 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9729 checked in with last change.
9730
9731 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9732
9733 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9734 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9735 config.sub.
9736
9737 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * Makefile.in: Update dependencies.
9740
9741 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9742
9743 * language.c (local_hex_string_custom): Simplify. Do not depend
9744 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9745
9746 * memattr.c (mem_info_command): Replace calls to
9747 longest_local_hex_string and longest_local_hex_string_custom.
9748 * buildsym.c (make_blockvector): Ditto.
9749 * solib.c (info_sharedlibrary_command): Ditto.
9750 * tracepoint.c (tracepoints_info): Ditto.
9751 * symtab.c (print_msymbol_info): Ditto.
9752
9753 * language.c (local_hex_string): Delete.
9754 (local_hex_string_custom): Delete.
9755 (longest_local_hex_string): Rename to local_hex_string.
9756 (longest_local_hex_string_custom): Rename to
9757 local_hex_string_custom.
9758 * language.h (local_hex_string): Change parameter type to LONGEST.
9759 (local_hex_string_custom): Ditto.
9760 (longest_local_hex_string): Delete declaration.
9761 (longest_local_hex_string_custom): Ditto.
9762
9763 * solib.c: Update copyright.
9764 * memattr.c: Update copyright.
9765
9766 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9767
9768 * arch-utils.h (legacy_register_to_value): Declare.
9769 (legacy_value_to_register): Declare.
9770 (legacy_convert_register_p): Declare.
9771 * arch-utils.c (legacy_register_to_value): New function.
9772 (legacy_value_to_register): New function.
9773 (legacy_convert_register_p): New function.
9774
9775 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9776 (VALUE_TO_REGISTER): Define.
9777 (CONVERT_REGISTER_P): Define.
9778 * gdbarch.h, gdbarch.c: Regenerate.
9779
9780 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9781 VALUE_TO_REGISTER.
9782 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9783 CONVERT_REGISTER_P.
9784
9785 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9786 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9787
9788 * Makefile.in: Update dependencies for valops.c.
9789 * valops.c: Include "gdb_assert.h".
9790 (typecmp): Skip THIS parameter to methods.
9791 (find_method_list): Remove static_memfuncp argument,
9792 update callers. Check for stub methods.
9793 (find_value_oload_method_list): Don't set *static_memfuncp.
9794 (find_overload_match): Don't check for stub methods. Assert
9795 that methods are not stubbed. Handle static methods.
9796 (value_find_oload_method_list): Remove static_memfuncp argument.
9797 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9798 to the argument list for static stub methods.
9799 * value.h (value_find_oload_method_list): Update prototype.
9800
9801 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9802
9803 * arch-utils.h (generic_register_size): Declare.
9804 (generic_register_raw_size, generic_register_virtual_size): Delete
9805 declarations.
9806 * arch-utils.c (generic_register_raw_size): Delete.
9807 (generic_register_size): New function.
9808 (generic_register_virtual_size): Delete.
9809
9810 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9811 default generic_register_size.
9812 * gdbarch.h, gdbarch.c: Re-generate.
9813
9814 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9815 register_virtual_size.
9816 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9818
9819 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9820
9821 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9822 * gdbarch.h, gdbarch.c: Regenerate.
9823 * gnu-v3-abi.c: Update copyright.
9824 (vtable_address_point_offset): Update.
9825 (gnuv3_rtti_type): Update.
9826 (gnuv3_baseclass_offset): Update.
9827 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9828 (init_fetch_link_map_offsets): Update.
9829 * remote.c (get_remote_state): Update.
9830
9831 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9832
9833 * TODO: Remove value_headof/value_from_vtable_info comment.
9834 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9835 * values.c (value_headof, value_from_vtable_info): Delete.
9836 * value.h (value_from_vtable_info): Delete prototype.
9837
9838 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9839
9840 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9841 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9842 $(gdb_regex_h).
9843 (gdb_assert_h): Define.
9844 (gdb_wait_h): Define.
9845 (gdb_regex_h): Define.
9846
9847 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9848
9849 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9850 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9851
9852 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9853
9854 * nbsd-tdep.c: Fix comment.
9855
9856 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9857
9858 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9859 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9860 (nbsd-tdep.o): New dependency list.
9861 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9862 nbsd-tdep.h.
9863 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9864 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9865 * nbsd-tdep.c: New file.
9866 * nbsd-tdep.h: New file.
9867 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9868 nbsd-tdep.h.
9869 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9870 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9871 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9872 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9873
9874 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9875
9876 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9877 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9878 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9879 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9880 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9881 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9882
9883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9884
9885 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9886 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9887 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9888 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9889 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9890 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9891 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9892
9893 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9894
9895 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9896 fetch_elfcore_registers to...
9897 * i386nbsd-tdep.c: ...here.
9898 (i386nbsd_use_struct_convention): Rename to...
9899 (i386nbsd_aout_use_struct_convention): ...this.
9900 (i386nbsd_supply_reg): New function.
9901 (i386nbsd_fill_reg): New function.
9902 (fetch_core_registers): Use i386nbsd_supply_reg.
9903 (fetch_elfcore_registers): Likewise.
9904 (_initialize_i386nbsd_tdep): New function.
9905 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9906 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9907 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9908 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9909 (i386nbsd_aout_use_struct_convention): ...this.
9910
9911 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9912
9913 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9914 (store_inferior_registers): Use shnbsd_fill_reg.
9915 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9916 sh_nbsd_supply_register): Collapse into...
9917 (shnbsd_supply_reg): ...this.
9918 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9919 (shnbsd_fill_reg): ...this.
9920 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9921 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9922 (fetch_core_registers): Use shnbsd_supply_reg.
9923 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9924 (sh_nbsd_core_fns): Rename to...
9925 (shnbsd_core_fns): ...this.
9926 (sh_nbsd_elfcore_fns): Rename to...
9927 (shnbsd_elfcore_fns): ...this.
9928 (sh_nbsd_init_abi): Rename to...
9929 (shnbsd_init_abi): ...this.
9930 (_initialize_sh_nbsd_tdep): Rename to...
9931 (_initialize_shnbsd_tdep): ...this.
9932 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9933 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9934 sh_nbsd_fill_register): Remove prototypes.
9935 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9936
9937 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9938
9939 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9940 (i387-nat.o): Delete dependency list.
9941 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9942 (x86-64-linux-nat.o): Likewise.
9943 * i387-nat.c: Delete file, moving contents to...
9944 * i387-tdep.c: ...here.
9945 * i387-nat.h: Rename...
9946 * i387-tdep.h: ...to this.
9947 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9948 * i386-linux-nat.c: Likewise.
9949 * i386bsd-nat.c: Likewise.
9950 * i386gnu-nat.c: Likewise.
9951 * i386nbsd-nat.c: Likewise.
9952 * i386v4-nat.c: Likewise.
9953 * x86-64-linux-nat.c: Likewise.
9954 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9955 * config/i386/go32.mh (NATDEPFILES): Likewise.
9956 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9957 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9958 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9959 * config/i386/linux.mh (NATDEPFILES): Likewise.
9960 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9961 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9962 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9963 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9964
9965 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9966
9967 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9968 (alphanbsd-nat.o): Remove dependency list.
9969 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9970 * alphanbsd-nat.c: Delete. Contents moved to...
9971 * alphanbsd-tdep.c: ...here.
9972 (_initialize_alphanbsd_tdep): Register core functions.
9973 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9974
9975 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9978 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9979 (alphanbsd-nat.o): Likewise.
9980 (alphabsd-tdep.o): New dependency list.
9981 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9982 (fill_gregset): Use alphabsd_fill_reg.
9983 (supply_fpregset): Use alphabsd_supply_fpreg.
9984 (fill_fpregset): Use alphabsd_fill_fpreg.
9985 (fetch_inferior_registers): Use struct reg and struct fpreg
9986 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9987 and alphabsd_supply_fpreg.
9988 (store_inferior_registers): Use struct reg and struct fpreg
9989 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9990 and alphabsd_fill_fpreg.
9991 * alphabsd-tdep.c: New file.
9992 * alphabsd-tdep.h: New file.
9993 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9994 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9995 alphabsd_supply_fpreg.
9996 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9997 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9998
9999 2002-05-11 Eric Christopher <echristo@redhat.com>
10000
10001 * mips-tdep.c (mips_double_register_type): Fix thinko.
10002 (mips_single_register_type): Ditto.
10003 * MAINTAINERS: Add self.
10004
10005 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10006
10007 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10008 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10009 right thing on architectures with different endianness and/or
10010 integer sizes.
10011
10012 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10013
10014 From Christian Limpach <chris@Pin.LU>
10015 * configure.in: Change sed expression which comments out
10016 NATDEPFILES to also comment out continuation lines.
10017 * configure: Regenerate.
10018
10019 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10020
10021 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10022 big patch.
10023
10024 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10025
10026 * sh-tdep.c: Include correct file.
10027
10028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10029
10030 New support for sh64-elf (sh5) target.
10031
10032 * configure.tgt: For sh64-elf target, default to sh-elf.
10033
10034 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10035 (struct gdbarch_tdep): Add new fields for new registers and ABI
10036 info.
10037
10038 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10039 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10040 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10041 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10042 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10043 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10044 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10045 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10046 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10047 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10048 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10049 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10050 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10051 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10052 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10053 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10054 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10055 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10056 sign_extend, sh64_nofp_frame_init_saved_regs,
10057 sh64_init_extra_frame_info, sh64_get_saved_register,
10058 sh64_extract_struct_value_address, sh64_pop_frame,
10059 sh64_push_arguments, sh64_extract_return_value,
10060 sh64_store_return_value, sh64_show_media_regs,
10061 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10062 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10063 sh_sh64_register_virtual_type,
10064 sh_sh64_register_convert_to_virtual,
10065 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10066 sh64_register_read, sh64_pseudo_register_write,
10067 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10068 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10069 sh64_do_pseudo_register, sh_compact_do_registers_info,
10070 sh64_do_registers_info, sh_gdbarch_init): New functions.
10071
10072 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10073
10074 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10075
10076 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10077
10078 * linespec.c (decode_line_1): Check for a double quote after
10079 a filename correctly.
10080
10081 2002-05-10 Jim Blandy <jimb@redhat.com>
10082
10083 Properly track the size of the current objfile's .debug_line section.
10084 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10085 (DWARF_LINE_SIZE): New macro.
10086 (dwarf2_build_psymtabs_hard): Record the line section's size in
10087 the partial symbol table.
10088 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10089 symbol table.
10090
10091 2002-05-10 Petr Sorfa <petrs@caldera.com>
10092
10093 * ia64-tdep.c: Handle breakpoints on L instruction type
10094 in MLX instruction bundle by moving the breakpoint to
10095 the third slot (X instruction type) as L holds only data.
10096
10097 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10098
10099 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10100 (process_one_symbol): Complain about discarding local symbols
10101 due to a misplaced N_LBRAC entry.
10102
10103 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10104
10105 From Daniel Berlin <dan@cgsoftware.com>
10106 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10107 decrease the depth we are at, in the case of templates.
10108
10109 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10110
10111 * mips-tdep.c (mips_float_register_type): New function.
10112 (mips_double_register_type): New function.
10113 (mips_print_register): Use them.
10114 (do_fp_register_row): Likewise.
10115
10116 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10117
10118 * signals/signals.c (signals): Remove conditional compilation around
10119 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10120 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10121
10122 2002-05-09 Michael Snyder <msnyder@redhat.com>
10123
10124 * remote-rdp.c (remote_rdp_can_run): Remove.
10125
10126 2002-05-09 Tom Tromey <tromey@redhat.com>
10127
10128 * jv-valprint.c (java_val_print): Handle `char' as a special case
10129 of TYPE_CODE_INT.
10130
10131 2002-05-09 Michael Snyder <msnyder@redhat.com>
10132
10133 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10134 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10135 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10136 str r(0123),[sp,#nn].
10137 (arm_skip_prologue): Ditto. Also make disassembly
10138 order-independent by placing it in a loop.
10139
10140 2002-05-06 Michael Snyder <msnyder@redhat.com>
10141
10142 * stabsread.c (read_type): Add recognition for new attribute:
10143 "@V;" means that an array type is actually a vector.
10144 This is analogous to the vector flag that's been added to dwarf2.
10145
10146 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10147
10148 * i386-tdep.h (i386_abi): New enum.
10149 (struct gdbarch_tdep): Replace os_ident member with abi.
10150 (i386_gdbarch_register_os_abi): New prototype.
10151 * i386-tdep.c (i386_abi_names): New array.
10152 (process_note_abi_tag_sections): Removed.
10153 (process_note_sections): New function.
10154 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10155 (struct i386_abi_handler): New struct.
10156 (i386_abi_handler_list): New variable.
10157 (i386_gdbarch_register_os_abi): New function.
10158 (i386_gdbarch_init): Adapt for the changes given above.
10159
10160 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10161
10162 * gregset.h: Say "GNU/Linux".
10163
10164 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10165
10166 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10167 (build_gdbtypes): Build builtin_type_v2_float.
10168 (_initialize_gdbtypes): Register new builtin type.
10169
10170 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10171
10172 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10173 (clear_gdbarch_swap): New function.
10174 (initialize_non_multiarch): Call.
10175 (gdbarch_update_p): Before calling init(), swap out and clear the
10176 existing architecture.
10177 * gdbarch.c: Regenerate.
10178
10179 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10180
10181 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10182 alphanbsd-tdep.c.
10183
10184 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10185
10186 * sh-nbsd-nat.c: Rename to...
10187 * shnbsd-nat.c: ...this.
10188 * sh-nbsd-tdep.c: Rename to...
10189 * shnbsd-tdep.c: ...this.
10190 * sh-nbsd-tdep.h: Rename to...
10191 * shnbsd-tdep.h: ...this.
10192 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10193 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10194
10195 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10196
10197 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10198 concatenation for command help messages.
10199
10200 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10201
10202 * NEWS: Note new sh*-*-netbsdelf* configuration.
10203 * configure.host: Set gdb_host_cpu to sh for all sh*.
10204 (sh*-*-netbsdelf*): New host.
10205 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10206 (sh*-*-netbsdelf*): New target.
10207 * sh-nbsd-nat.c: New file.
10208 * sh-nbsd-tdep.c: New file.
10209 * sh-nbsd-tdep.h: New file.
10210 * config/sh/nbsd.mh: New file.
10211 * config/sh/nbsd.mt: New file.
10212 * config/sh/nm-nbsd.h: New file.
10213 * config/sh/tm-nbsd.h: New file.
10214
10215 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10216
10217 * sh-tdep.c (sh_osabi_names): Declare.
10218 (process_note_abi_tag_sections): New function.
10219 (get_elfosabi): Ditto.
10220 (sh_gdbarch_register_os_abi): Ditto.
10221 (sh_dump_tdep): Ditto.
10222 _initialize_sh_tdep): Use gdbarch_register to register
10223 sh_gdbarch_init and sh_dump_tdep.
10224 * config/sh/tm-sh.h (sh_osabi): Declare.
10225 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10226
10227 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10228
10229 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10230 (thumb_scan_prologue): Ditto.
10231 (arm_find_callers_reg): Ditto.
10232 (arm_frame_chain): Ditto.
10233 (arm_init_extra_frame_info): Ditto.
10234 (arm_frame_saved_pc): Ditto.
10235 (arm_pop_frame): Ditto.
10236 (arm_push_return_address): New function.
10237 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10238 call_dummy_location, call_dummy_breakpoint_offset_p,
10239 call_dummy_breakpoint_offset, call_dummy_p,
10240 call_dummy_stack_adjust_p, call_dummy_words,
10241 sizeof_call_dummy_words, call_dummy_start_offset,
10242 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10243 call_dummy_address, push_return_address and push_dummy_frame for
10244 generic dummy frames.
10245
10246 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10247
10248 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10249 size computation for alloca.
10250 (sh_fp_frame_init_saved_regs): Likewise.
10251
10252 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10255 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10256 * arm-tdep.c (arm_store_return_value): Use them.
10257 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10258 * remote-rdp.c (remote_rdp_fetch_register): Use
10259 ARM_MAX_REGISTER_RAW_SIZE.
10260 (remote_rdp_store_register): Likewise.
10261
10262 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10263
10264 * dwarf2cfi.c: Code cleanup, removed unused variables,
10265 added default labels to switch {} statements.
10266 * x86-64-tdep.c: Ditto.
10267 * x86-64-linux-nat.c: Ditto.
10268
10269 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10270
10271 * solib.h: Protect against multiple inclusion.
10272
10273 2002-05-06 Jim Blandy <jimb@redhat.com>
10274
10275 Add first preprocessor macro-expansion files.
10276 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10277 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10278 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10279 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10280 (COMMON_OBS): Add macrotab.o, macroexp.o.
10281 (macroexp.o, macrotab.o): New rules.
10282
10283 Separate the job of reading the line number info statement program
10284 header (...expialidocious) out into its own function.
10285 * dwarf2read.c (struct line_head, struct filenames, struct
10286 directories): Replace with...
10287 (struct line_header): New structure, containing the full
10288 contents of the statement program header, including the
10289 include directory and file name tables.
10290 (read_file_scope): If we have line number info, instead of just
10291 calling dwarf_decode_lines to do all the work, call
10292 dwarf_decode_line_header first to get a `struct line_header'
10293 containing the data in the statement program header, and then
10294 pass that to dwarf_decode_lines, which will pick up where that
10295 left off. Be sure to clean up the `struct line_header' object.
10296 (dwarf_decode_line_header, free_line_header, add_include_dir,
10297 add_file_name): New functions.
10298 (dwarf_decode_lines): Move all the code to read the statement
10299 program header into dwarf_decode_line_header. Take the line
10300 header it built as the first argument, instead of the offset to
10301 the compilation unit's line number info. Use the new `struct
10302 line_header' type instead of the old structures. No need to do
10303 cleanups here now, since we don't allocate anything.
10304 (dwarf2_statement_list_fits_in_line_number_section,
10305 dwarf2_line_header_too_long): New complaints.
10306
10307 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10308
10309 * gdbtypes.c (init_vector_type): New function.
10310 (build_builtin_type_vec128): Simplify the representation of SIMD
10311 registers.
10312 (build_gdbtypes): Initialize new builtin vector types.
10313 (_initialize_gdbtypes): Register new vector types with gdbarch.
10314 (builtin_type_v4_float, builtin_type_v4_int32,
10315 builtin_type_v8_int16, builtin_type_v16_int8,
10316 builtin_type_v2_int32, builtin_type_v4_int16,
10317 builtin_type_v8_int8): New (renamed) SIMD types.
10318
10319 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10320
10321 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10322 (i387_fill_fxsave): Likewise.
10323
10324 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10325
10326 * alpha-tdep.c (alpha_extract_return_value): Don't use
10327 non-constant array size in prototype.
10328
10329 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10330
10331 From Brian Taylor <briant at model dot com>:
10332 * ui-out.c (ui_out_field_core_addr): Use the function
10333 longest_local_hex_string_custom'to format addresses > 32 bits
10334 wide.
10335
10336 * ui-out.c (ui_out_field_core_addr): Update comment.
10337
10338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10339
10340 * stack.c (select_and_print_frame): Make static. Delete the
10341 parameter `level'.
10342 (func_command): Update call.
10343 (select_frame_command): Delete code computing the frame level.
10344 * frame.h (select_and_print_frame): Delete declaration.
10345
10346 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10347
10348 * sparc-tdep.c (sparc_get_saved_register): Comment why
10349 get_prev_frame call is safe.
10350
10351 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10352
10353 * frame.h (select_frame): Delete level parameter.
10354 * stack.c (select_frame): Update. Use frame_relative_level to
10355 obtain the frame's level.
10356 (select_and_print_frame): Update call.
10357 (select_frame_command): Ditto.
10358 (up_silently_base): Ditto.
10359 (down_silently_base): Ditto.
10360 * ocd.c (ocd_start_remote): Ditto.
10361 * remote-rdp.c (remote_rdp_open): Ditto.
10362 * remote-mips.c (mips_initialize): Ditto.
10363 (common_open): Ditto.
10364 * remote-e7000.c (e7000_start_remote): Ditto.
10365 * m3-nat.c (select_thread): Ditto.
10366 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10367 (child_get_current_exception_event): Ditto.
10368 * varobj.c (varobj_create): Ditto.
10369 (varobj_update): Ditto.
10370 (c_value_of_root): Ditto.
10371 * tracepoint.c (finish_tfind_command): Ditto.
10372 * corelow.c (core_open): Ditto.
10373 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10374 * thread.c (info_threads_command): Ditto.
10375 (switch_to_thread): Ditto.
10376 * infrun.c (normal_stop): Ditto.
10377 (restore_selected_frame): Ditto.
10378 (restore_inferior_status): Ditto.
10379 * breakpoint.c (insert_breakpoints): Ditto.
10380 (watchpoint_check): Ditto.
10381 (bpstat_stop_status): Ditto.
10382 (do_enable_breakpoint): Ditto.
10383 * blockframe.c (flush_cached_frames): Ditto.
10384 (reinit_frame_cache): Ditto.
10385
10386 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10387
10388 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10389 maintainer.
10390
10391 2002-05-04 Jim Blandy <jimb@redhat.com>
10392
10393 * gdbtypes.c (replace_type): Doc fix.
10394
10395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10396
10397 * valprint.c (strcat_longest): Delete commented out function.
10398 Update copyright.
10399
10400 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10401
10402 * MAINTAINERS: Mark a29k as deleted.
10403 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10404 Move new configurations to the top.
10405 * configure.tgt: Remove a29k.
10406 * config/a29k/tm-vx29k.h: Delete.
10407 * config/a29k/vx29k.mt: Delete.
10408 * config/a29k/tm-a29k.h: Delete.
10409 * config/a29k/a29k-udi.mt: Delete.
10410 * config/a29k/a29k.mt: Delete.
10411 * a29k-tdep.c: Delete.
10412 * remote-udi.c: Delete.
10413 * remote-mm.c: Delete.
10414 * remote-eb.c: Delete.
10415 * remote-adapt.c: Delete.
10416 * Makefile.in: Remove obsolete code.
10417 * config/s390/s390x.mt: Ditto.
10418 * config/s390/s390.mt: Ditto.
10419 * config/sparc/sparclynx.mh: Ditto.
10420 * config/sparc/linux.mh: Ditto.
10421 * config/pa/hppaosf.mh: Ditto.
10422 * config/pa/hppabsd.mh: Ditto.
10423 * config/ns32k/nbsd.mt: Ditto.
10424 * config/mips/vr5000.mt: Ditto.
10425 * config/m68k/sun3os4.mh: Ditto.
10426 * config/m68k/nbsd.mt: Ditto.
10427 * config/m68k/m68klynx.mh: Ditto.
10428 * config/m32r/m32r.mt: Ditto.
10429 * config/i386/x86-64linux.mt: Ditto.
10430 * config/i386/nbsdelf.mt: Ditto.
10431 * config/i386/nbsd.mt: Ditto.
10432 * config/i386/i386lynx.mh: Ditto.
10433
10434 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10435
10436 * target.c (debug_print_register): New function. Handle oversize
10437 registers.
10438 (debug_to_fetch_registers): Call.
10439 (debug_to_store_registers): Call.
10440
10441 2002-05-03 Jim Blandy <jimb@redhat.com>
10442
10443 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10444 (read_type): Doc fix.
10445 * gdbtypes.c (replace_type): Doc fix.
10446
10447 * stabsread.c (multiply_defined_struct): New complaint.
10448 (read_struct_type): If the type we were passed isn't empty, or
10449 incomplete, don't read the new struct type into it; complain,
10450 and return the original type unchanged. Take a new `type_code'
10451 argument, which is the type code for the new type.
10452 (read_type): Rather than storing the type's type code here, pass
10453 it as an argument to read_struct_type, and let that take care of
10454 storing it. That way, we don't overwrite the original type code,
10455 so read_struct_type can use it to decide whether we're overwriting
10456 something we shouldn't.
10457 (complain_about_struct_wipeout): New function.
10458
10459 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10460
10461 * gdbarch.sh: Assert that gdbarch is non-NULL.
10462 * gdbarch.c: Regenerate.
10463
10464 2002-05-03 Jason Merrill <jason@redhat.com>
10465
10466 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10467 and return NULL.
10468
10469 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10470
10471 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10472 (x86_64_dwarf2gdb_regno_map_length),
10473 (x86_64_dwarf2_reg_to_regnum): Added.
10474 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10475 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10476 (_initialize_x86_64_tdep): Synced with the change above.
10477 (x86_64_skip_prologue): Reformulated message.
10478
10479 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10480
10481 * f-exp.y: Also use new prev_lexptr variable
10482 to improve error reporting. Based on Michael Snyder
10483 2002-04-24 dated patch to c-exp.y.
10484 * jv-exp.y: Likewise.
10485 * m2-exp.y: Likewise.
10486
10487 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10488
10489 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10490 we are dealing with vectors.
10491
10492 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10493
10494 * config/m68k/tm-nbsd.h: Obvious fix,
10495 correct machine name.
10496
10497 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10498
10499 * p-typeprint.c (pascal_type_print_base): Add support
10500 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10501
10502 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10503
10504 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10505 for fondamental pascal 'char' type.
10506
10507 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10508
10509 * p-lang.h (is_pascal_string_type): Declaration changed,
10510 new sixth argument of type char ** added.
10511 * p-lang.c (is_pascal_string_type): Implementation
10512 changed. Args length_pos, length_size, string_pos, char_size
10513 can now be NULL. New argument arrayname set to the field
10514 name of the char array. Return value set to char array
10515 field index plus one.
10516 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10517 is_pascal_string_type function.
10518
10519 2002-05-02 Andrew Cagney <cagney@redhat.com>
10520
10521 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10522 <cagney@redhat.com> change.
10523 * gdbarch.c: Regenerate.
10524
10525 2002-05-02 Andrew Cagney <cagney@redhat.com>
10526
10527 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10528 before probing for a new one. Detect errorenous gdbarch_init
10529 functions.
10530 * gdbarch.c: Regenerate.
10531
10532 2002-05-01 Andrew Cagney <cagney@redhat.com>
10533
10534 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10535 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10536 * config/v850/tm-v850.h: Ditto. Update copyright.
10537
10538 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10539
10540 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10541 current_gdbarch.
10542
10543 2002-04-30 Michael Snyder <msnyder@redhat.com>
10544
10545 * arm-tdep.c: Whitespace clean-ups.
10546 (arm_skip_prologue): Fix thinko; two lines
10547 should have been removed as part of 4/24 change.
10548
10549 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10550
10551 * rs6000-tdep.c: Added comment describing how fpscr register
10552 numbers were chosen.
10553
10554 2002-04-30 Michael Snyder <msnyder@redhat.com>
10555
10556 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10557
10558 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10559
10560 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10561 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10562 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10563
10564 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10565
10566 From Louis Hamilton <hamilton@redhat.com>:
10567 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10568 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10569 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10570 not bfd-private xcoff data, to determine wordsize.
10571 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10572
10573 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10574
10575 GDB 5.2 released from 5.2 branch.
10576
10577 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10578
10579 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10580 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10581 (x86_64_register_info_table): Added comments with register numbers.
10582
10583 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10584
10585 * rs6000-tdep.c (rs6000_extract_return_value,
10586 rs6000_store_return_value): Handle returning vectors.
10587 (rs6000_gdbarch_init): Use
10588 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10589 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10590 New function.
10591 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10592 vectors.
10593 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10594 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10595
10596 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10597
10598 * hpread.c (hpread_psymtab_to_symtab_1,
10599 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10600 with fprintf_unfiltered (gdb_stderr,...).
10601
10602 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10603
10604 * remote-array.c (printf_monitor, write_monitor,
10605 array_insert_breakpoint, array_remove_breakpoint ):
10606 Replace fprintf (stderr,...
10607 with fprintf_unfiltered (gdb_stderr,....
10608 * remote-es.c: Likewise.
10609 * remote-os9k.c: Likewise.
10610 * remote-st.c: Likewise.
10611
10612 2002-04-28 Andreas Schwab <schwab@suse.de>
10613
10614 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10615 linux-proc.o and gcore.o.
10616
10617 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10618
10619 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10620 code without frame pointers.
10621
10622 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10623
10624 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10625 ON_STACK is needed.
10626
10627 2002-04-26 Ben Elliston <bje@redhat.com>
10628
10629 * target.c (do_xfer_memory): Correct reference to the new option
10630 "trust-readonly-sections".
10631
10632 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10633
10634 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10635 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10636 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10637 vectors.
10638 (read_array_type): Record the fact that this array type is really a
10639 vector (i.e. are passed in by value).
10640
10641 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10642
10643 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10644 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10645 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10646 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10647 * alpha-linux-tdep.c: Include frame.h.
10648 (alpha_linux_sigcontext_addr): New function.
10649 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10650 alpha_linux_sigcontext_addr.
10651 * alpha-osf1-tdep.c: Include gdbcore.h.
10652 (alpha_osf1_sigcontext_addr): New function.
10653 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10654 alpha_osf1_sigcontext_addr.
10655 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10656 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10657
10658 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10659
10660 * stack.c (selected_frame_level):
10661 (select_frame): Do not set selected_frame_level.
10662 * frame.h (selected_frame_level): Delete declaration.
10663
10664 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10665
10666 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10667 convert_from_func_ptr-addr when AIX / PowerOpen.
10668
10669 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10670
10671 * valops.c (hand_function_call): Call
10672 generic_save_call_dummy_addr.
10673 * frame.h (generic_save_call_dummy_addr): Declare.
10674 * blockframe.c (struct dummy_frame): Add fields call_lo and
10675 call_hi.
10676 (generic_find_dummy_frame): Check for PC in range call_lo to
10677 call_hi instead of entry_point_address.
10678 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10679 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10680 (generic_save_call_dummy_addr): New function.
10681
10682 2002-04-24 David S. Miller <davem@redhat.com>
10683
10684 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10685 sparc_skip_prologue.
10686 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10687 information to find prologue when possible.
10688 (sparc_prologue_frameless_p): Call examine_prologue directly.
10689 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10690 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10691 second argument.
10692 (SKIP_PROLOGUE): Likewise.
10693
10694 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10695
10696 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10697 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10698 indicate that the condition it was testing is always true.
10699 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10700 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10701 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10702
10703 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10704
10705 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10706 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10707 tdep->jb_pc and tdep->jb_elt_size.
10708 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10709 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10710 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10711 * alpha-nat.c (get_longjmp_target): Remove.
10712 (JB_ELEMENT_SIZE): Ditto.
10713 (JB_PC): Ditto.
10714 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10715 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10716 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10717 to alpha_get_longjmp_target.
10718 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10719 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10720 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10721
10722 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10723
10724 * README: Update to GDB 5.2.
10725
10726 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10727
10728 * gdbarch.sh (LC_ALL): Set to `c'.
10729
10730 2002-04-25 Theodore A. Roth <troth@verinet.com>
10731
10732 * avr-tdep.c: Ran through gdb_indent.sh.
10733
10734 2002-04-25 Theodore A. Roth <troth@verinet.com>
10735
10736 * MAINTAINERS: Add myself as AVR maintainer.
10737 * NEWS: Note new target avr.
10738
10739 2002-04-25 Theodore A. Roth <troth@verinet.com>
10740
10741 * Makefile.in: Add support for AVR target.
10742 * configure.tgt: Add support for AVR target.
10743 * avr-tdep.c: New file
10744 * config/avr/avr.mt: New file.
10745
10746 2002-04-25 Theodore A. Roth <troth@verinet.com>
10747
10748 * MAINTAINERS: Add myself to write-after-approval.
10749
10750 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10751
10752 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10753 with fprintf_unfiltered (gdb_stderr,....
10754
10755 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10756
10757 Fix PR gdb/508.
10758 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10759
10760 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10761
10762 * p-exp.y: Also use new prev_lexptr variable
10763 to improve error reporting. Based on Michael Snyder
10764 2002-04-24 dated patch to c-exp.y.
10765
10766 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10767
10768 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10769 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10770 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10771 to 0.
10772 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10773 and struct value.
10774 (FUNCTION_START_OFFSET): Remove.
10775 (BREAKPOINT): Ditto.
10776
10777 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10778
10779 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10780 * NEWS: Ditto.
10781
10782 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10783
10784 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10785 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10786 alpha_linux_pc_in_sigtramp.
10787 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10788 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10789 alpha_osf1_pc_in_sigtramp.
10790 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10791 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10792 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10793 alphafbsd_pc_in_sigtramp.
10794 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10795 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10796 alphanbsd_pc_in_sigtramp.
10797 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10798 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10799
10800 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10801
10802 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10803
10804 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10805
10806 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10807 alphanbsd-tdep.c.
10808 (alphanbsd-nat.o): New dependency list.
10809 (alphanbsd-tdep.o): Ditto.
10810 * NEWS: Note new native NetBSD/alpha configuration.
10811 * alphanbsd-nat.c: New file.
10812 * alphanbsd-tdep.c: Ditto.
10813 * configure.host (alpha*-*-netbsd*): New host.
10814 * configure.tgt (alpha*-*-netbsd*): New target.
10815 * config/alpha/nbsd.mh: New file.
10816 * config/alpha/nbsd.mt: Ditto.
10817 * config/alpha/nm-nbsd.h: Ditto.
10818 * config/alpha/tm-nbsd.h: Ditto.
10819
10820 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10821
10822 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10823 (alpha-osf1-tdep.o): New dependency list.
10824 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10825 and skip_sigtramp_frame members.
10826 * alpha-linux-tdep.c: Include gdbcore.h.
10827 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10828 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10829 * alpha-osf1-tdep.c: New file.
10830 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10831 alpha-osf1-dep.c.
10832 (alpha_frame_past_sigtramp_frame): New function.
10833 (alpha_dynamic_sigtramp_offset): Ditto.
10834 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10835 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10836 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10837 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10838 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10839 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10840 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10841 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10842 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10843 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10844 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10845 to find_solib_trampoline_target.
10846 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10847 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10848 (SKIP_TRAMPOLINE_CODE): Remove.
10849 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10850 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10851 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10852 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10853 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10854 (PROC_SIGTRAMP_MAGIC): Ditto.
10855 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10856 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10857 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10858 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10859 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10860
10861 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10862
10863 * NEWS: Note that Alpha targets are now multi-arch.
10864
10865 2002-04-24 Michael Snyder <msnyder@redhat.com>
10866
10867 * parser-defs.h (prev_lexptr): New external variable.
10868 * parse.c (parse_exp_1): Set prev_lexptr to null before
10869 calling the language-specific parser.
10870 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10871 (yyerror): Use prev_lexptr in error reporting.
10872
10873 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10876 * gregset.h: If FILL_FPXREGSET is defined, provide
10877 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10878 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10879 is defined, call fill_fpxregset.
10880
10881 2002-04-24 Roland McGrath <roland@frob.com>
10882
10883 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10884 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10885 (supply_gregset, supply_fpregset): New functions.
10886
10887 * gnu-nat.c (gnu_find_memory_regions): New function.
10888 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10889 (gnu_xfer_memory): Add a cast.
10890
10891 2002-04-24 Michael Snyder <msnyder@redhat.com>
10892
10893 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10894 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10895 of argument regs ("str r(0123), [r11, #-nn"]).
10896 (arm_skip_prologue): Better handling for frameless functions.
10897 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10898 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10899
10900 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10901
10902 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10903 NUM_PSEUDO_REGS can be used.
10904
10905 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10906
10907 * arch-utils.h: Update copyright.
10908
10909 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10910 * gdbarch.h, gdbarch.c: Re-generate.
10911
10912 * inferior.h (IN_SIGTRAMP): Delete definition.
10913 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10914 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10915
10916 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10917 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10918 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10919 (find_proc_framesize): Ditto.
10920 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10921 (alpha_init_extra_frame_info): Ditto.
10922 * infrun.c (handle_inferior_event): Ditto.
10923 (handle_inferior_event): Ditto.
10924 (check_sigtramp2): Ditto.
10925 * blockframe.c (create_new_frame): Ditto.
10926 (get_prev_frame): Ditto.
10927 * ppc-linux-tdep.c: Update comments.
10928 * i386-linux-tdep.c: Update comments.
10929 * breakpoint.c (bpstat_what): Update comment.
10930
10931 2002-04-24 David S. Miller <davem@redhat.com>
10932
10933 * i960-tdep.c (register_in_window_p): New function.
10934 (i960_find_saved_register): Use it instead of
10935 REGISTER_IN_WINDOW_P.
10936 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10937
10938 * symtab.h (find_stab_function_addr): Kill extern.
10939 * minsyms.c (find_stab_function_addr): Remove from here...
10940 * dbxread.c: ... to here, and mark it static.
10941
10942 2002-04-20 David S. Miller <davem@redhat.com>
10943
10944 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10945 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10946
10947 2002-04-21 David S. Miller <davem@redhat.com>
10948
10949 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10950 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10951 (vx_write_register): Likewise.
10952
10953 2002-04-23 J. Brobecker <brobecker@gnat.com>
10954
10955 * source.c (is_regular_file): New function.
10956 (openp): Check wether file to open is a regular file
10957 to avoid opening directories.
10958
10959 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10960
10961 * findvar.c (extract_signed_integer): Cast printf argument
10962 to suppress format warning.
10963 (extract_unsigned_integer): Likewise.
10964 * infcmd.c (registers_info): Likewise.
10965 * top.c (get_prompt_1): Likewise.
10966 * valops.c (value_assign): Likewise.
10967 * valprint.c (print_decimal): Likewise.
10968
10969 2002-04-22 H.J. Lu (hjl@gnu.org)
10970
10971 * c-exp.y (typebase): Support
10972
10973 [long|long long|short] [signed|unsigned] [int|]
10974
10975 and
10976
10977 signed [long|long long|short] int
10978
10979 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10980
10981 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10982 and vax-tdep.h.
10983 * vax-tdep.h: New file.
10984 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10985 Make several routines static.
10986 (vax_get_saved_register): New function.
10987 (vax_gdbarch_init): New function.
10988 (_initialize_vax_tdep): Register vax_gdbarch_init.
10989 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10990 Remove macros now under the control of gdbarch.
10991
10992 2002-04-22 Michael Snyder <msnyder@redhat.com>
10993
10994 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10995 Some whitespace and coding standards tweaks.
10996
10997 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10998
10999 * vax-tdep.c: Include regcache.h.
11000 (vax_call_dummy_words): New.
11001 (sizeof_vax_call_dummy_words): New.
11002 (vax_fix_call_dummy): New function.
11003 (vax_saved_pc_after_call): Ditto.
11004 * config/vax/tm-vax.h: Don't include regcache.h.
11005 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11006 (CALL_DUMMY): Remove.
11007 (CALL_DUMMY_WORDS): Define.
11008 (SIZEOF_CALL_DUMMY_WORDS): Define.
11009 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11010
11011 2002-04-18 Michael Snyder <msnyder@redhat.com>
11012
11013 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11014
11015 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11016
11017 * vax-tdep.c (vax_frame_chain): New function.
11018 (vax_push_dummy_frame): Ditto.
11019 (vax_pop_frame): Ditto.
11020 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11021 (FRAMELESS_FUNCTION_INVOCATION): Use
11022 generic_frameless_function_invocation_not.
11023 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11024 (POP_FRAME): Use vax_pop_frame.
11025
11026 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11027
11028 * vax-tdep.c (vax_store_struct_return): New function.
11029 (vax_extract_return_value): Ditto.
11030 (vax_store_return_value): Ditto.
11031 (vax_extract_struct_value_address): Ditto.
11032 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11033 vax_store_struct_return.
11034 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11035 (STORE_RETURN_VALUE): Use vax_store_return_value.
11036 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11037
11038 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11039
11040 * vax-tdep.c (vax_frame_saved_pc): New function.
11041 (vax_frame_args_address_correct): Ditto.
11042 (vax_frame_args_address): Ditto.
11043 (vax_frame_locals_address): Ditto.
11044 (vax_frame_num_args): Move code to be in proximity to
11045 other frame-related functions.
11046 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11047 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11048 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11049 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11050 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11051
11052 2002-04-22 H.J. Lu (hjl@gnu.org)
11053
11054 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11055 includedir.
11056
11057 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11058
11059 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11060 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11061 (FRAME_INIT_SAVED_REGS): New macro.
11062
11063 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11064
11065 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11066
11067 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11068
11069 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11070 where needed.
11071 (fetch_osf_core_registers): Likewise.
11072 (supply_gregset): Likewise.
11073
11074 2002-04-22 J. Brobecker <brobecker@gnat.com>
11075
11076 * symfile.h (get_section_index): Define.
11077 * symfile.c (get_section_index): New function.
11078 * mdebugread.c (SC_IS_SBSS): New macro.
11079 (SC_IS_BSS): Return true for the scBss storage class only, as
11080 the scSBss storage class refers to the .sbss section.
11081 (parse_partial_symbols): Discard the symbols which associated
11082 section does not exist.
11083 Make sure to use the .sbss section index for symbols which
11084 storage class is scBss, rather than using the .bss section index.
11085
11086 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11087
11088 * vax-tdep.c: Update copyright years.
11089 (vax_register_name): New function.
11090 (vax_register_byte): Ditto.
11091 (vax_register_raw_size): Ditto.
11092 (vax_register_virtual_size): Ditto.
11093 (vax_register_virtual_type): Ditto.
11094 * config/vax/tm-vax.h: Update copyright years.
11095 (REGISTER_NAMES): Remove.
11096 (REGISTER_NAME): Define.
11097 (REGISTER_BYTE): Use vax_register_byte.
11098 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11099 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11100 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11101
11102 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11103
11104 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11105 declaration
11106 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11107
11108 2002-04-21 David S. Miller <davem@redhat.com>
11109
11110 * arch-utils.c (generic_prologue_frameless_p): Kill
11111 SKIP_PROLOGUE_FRAMELESS_P code.
11112 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11113 references.
11114 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11115 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11116 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11117 references.
11118 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11119 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11120 (sparc_gdbarch_init): Pass it to
11121 set_gdbarch_prologue_frameless_p.
11122
11123 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11124
11125 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11126 (alphabsd-nat.o): New dependency list.
11127
11128 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11129
11130 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11131 alphafbsd-tdep.c.
11132 (alpha-linux-tdep.o): New dependency list.
11133 (alphafbsd-tdep.o): Likewise.
11134
11135 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11136
11137 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11138 to here...
11139 * alpha-tdep.c: ...from here.
11140 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11141
11142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11143
11144 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11145 prototype from here...
11146 * alpha-tdep.h: ...to here.
11147
11148 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11149
11150 * frame.h (selected_frame_level): Document as deprecated.
11151 (frame_relative_level): Declare.
11152 * stack.c (frame_relative_level): New function.
11153 (selected_frame_level): Document as deprecated.
11154 (select_frame): Do not set the selected_frame_level.
11155
11156 * stack.c (frame_info, record_selected_frame): Update.
11157 (frame_command, current_frame_command): Update.
11158 (up_silently_base, up_command, down_silently_base): Update.
11159 (down_command): Update.
11160 * inflow.c (kill_command): Update.
11161 * tracepoint.c (finish_tfind_command): Update.
11162 * corelow.c (core_open): Update.
11163 * thread.c (info_threads_command): Update.
11164 (do_captured_thread_select): Update.
11165 * infcmd.c (finish_command): Update.
11166 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11167
11168 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11169
11170 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11171
11172 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11173
11174 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11175 type const.
11176
11177 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11178
11179 * alphafbsd-tdep.c: Update copyright years. Include
11180 alpha-tdep.h.
11181 (alphafbsd_use_struct_convention): Make static.
11182 (alphafbsd_init_abi): New function.
11183 (_initialize_alphafbsd_tdep): New function.
11184 * config/alpha/tm-fbsd.h: Update copyright years.
11185 (USE_STRUCT_CONVENTION): Remove.
11186
11187 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11188
11189 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11190 an Alpha ABI variant.
11191 (alpha_abi_handler_list): Declare.
11192 (alpha_gdbarch_register_os_abi): New function.
11193 (alpha_gdbarch_init): Give registered ABI variant handlers a
11194 chance to tweak the gdbarch once we have set up defaults.
11195 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11196
11197 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11198
11199 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11200 to standard_coerce_float_to_double.
11201 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11202
11203 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11204
11205 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11206 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11207 from gdbarch_tdep rather than a constant.
11208 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11209 the default text address for all Alpha Unix ABIs.
11210 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11211 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11212
11213 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11214
11215 * alpha-tdep.h: New file. Includes several Alpha target constants
11216 taken from...
11217 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11218 let gdbarch deal with.
11219 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11220 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11221 to dependency list.
11222 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11223 Alpha target register names.
11224 * alphabsd-nat.c: Likewise.
11225 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11226 Alpha target register names. Make serveral routines static.
11227 (alpha_get_saved_register): New function.
11228 (alpha_abi_names): New.
11229 (process_note_abi_tag_sections): New function.
11230 (get_elfosabi): New function.
11231 (alpha_gdbarch_init): New function.
11232 (alpha_dump_tdep): New function.
11233 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11234
11235 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11236
11237 * frame.c (find_saved_register): Delete #ifdef
11238 HAVE_REGISTER_WINDOWS code.
11239 * config/sparc/tm-sparc.h: Update comments.
11240 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11241
11242 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11243
11244 * i960-tdep.c (i960_find_saved_register): New function.
11245 (i960_get_saved_register): New function.
11246 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11247 (i960_get_saved_register): Declare.
11248 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11249
11250 2002-04-20 David S. Miller <davem@redhat.com>
11251
11252 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11253
11254 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11255
11256 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11257 instead of NUM_PSEUDO_REGS.
11258
11259 2002-04-20 David S. Miller <davem@redhat.com>
11260
11261 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11262 GDB_MULTI_ARCH_PARTIAL
11263 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11264 define, let tm-sp64.h do it.
11265
11266 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11267
11268 * frame.c (find_saved_register): Avoid a NULL pointer
11269 dereference and actually walk the frame list.
11270
11271 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11272
11273 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11274 sorted in most most-recent-used order. Document.
11275 * gdbarch.h, gdbarch.c: Regenerate.
11276
11277 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11278
11279 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11280 instead of ->prev.
11281 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11282 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11283 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11284 instead of ->prev.
11285
11286 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11287
11288 Fix PR gdb/471.
11289 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11290 (build_builtin_type_vec128): Ditto.
11291 (append_composite_type_field): Fix calculation of type length in
11292 union case.
11293
11294 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11295
11296 * config/djgpp/README: Update.
11297
11298 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11299 compiler warnings.
11300
11301 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11302
11303 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11304 (alpha_setup_arbitrary_frame): ...to this.
11305 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11306 for alpha_setup_arbitrary_frame.
11307
11308 2002-04-18 Andrew Cagney <cagney@redhat.com>
11309
11310 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11311 * gdbarch.h, gdbarch.c: Regenerate.
11312
11313 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11314 * target.h (memory_breakpoint_from_pc): Update declaration.
11315 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11316
11317 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11318 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11319 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11320 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11321 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11322 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11323 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11324 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11325 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11326 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11327 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11328 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11329
11330 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11331 const pointer.
11332 * monitor.c (monitor_insert_breakpoint): Ditto.
11333 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11334
11335 * config/mcore/tm-mcore.h: Update copyright.
11336 * mem-break.c: Ditto.
11337 * xstormy16-tdep.c: Ditto.
11338
11339 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11340
11341 * p-exp.y: Add precedence rule for '^' token.
11342 This removes the shift/reduce conflicts.
11343 Remove the comment concerning these shift/reduce conflicts.
11344
11345 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11346
11347 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11348 (registers_powerpc_nofp): New register set for processors
11349 without floating point unit.
11350
11351 2002-04-18 David S. Miller <davem@redhat.com>
11352
11353 * MAINTAINERS: Add myself to write-after-approval.
11354
11355 2002-04-17 Michael Snyder <msnyder@redhat.com>
11356
11357 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11358
11359 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11360
11361 * rs6000-tdep.c (frame_initial_stack_address): Use
11362 frame_register_read to read the alloca_reg.
11363
11364 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11365
11366 * frame.c (find_saved_register): Find saved registers in the next
11367 not prev frame.
11368 Fix PR gdb/365.
11369
11370 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11371
11372 * gdbarch.sh (LANG): Set to ``c''.
11373
11374 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11375
11376 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11377
11378 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11379
11380 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11381 Update copyright.
11382
11383 * hpread.c (hpread_get_lntt): Add declaration.
11384 Also fix PR gdb/391.
11385
11386 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11387
11388 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11389 * aclocal.m4, configure: Re-generate.
11390 Fix PR gdb/391.
11391
11392 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11393
11394 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11395 instead of tm_print_insn.
11396
11397 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11398
11399 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11400
11401 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11402
11403 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11404 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11405 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11406
11407 2002-04-12 Don Howard <dhoward@redhat.com>
11408
11409 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11410 max_user_call_depth.
11411 (init_cmd_lists): Initialize the new value;
11412 * cli/cli-script.c (execute_user_command): Limit the call depth of
11413 user defined commands. This avoids a core-dump when user commands
11414 are infinitly recursive.
11415
11416 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11417
11418 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11419 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11420 from tdep struct instead of DEFAULT_LR_SAVE.
11421 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11422 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11423 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11424
11425 2002-04-12 Michael Snyder <msnyder@redhat.com>
11426
11427 * Remote.c: Spelling fix.
11428 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11429 If no symbol found for "sbrk", try "_sbrk".
11430 (make_output_phdrs): Use bfd_section_name.
11431 (gcore_copy_callback): Use bfd_section_name.
11432 * eval.c: Indentation fix-ups.
11433 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11434 in case it gets applied to an address that is already
11435 in the instruction space.
11436 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11437 * symfile.c: Fix indentation, long lines.
11438 * source.c: White space fix-up.
11439
11440 2002-04-12 Andrew Cagney <cagney@redhat.com>
11441
11442 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11443 * frame.c (frame_register_read): New function. Return non-zero on
11444 success.
11445 (read_relative_register_raw_bytes_for_frame): Delete.
11446 (read_relative_register_raw_bytes): Delete.
11447 * frame.h (frame_register_read): Declare.
11448 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11449 * sh-tdep.c: Ditto.
11450 * infcmd.c (do_registers_info): Ditto.
11451 * hppa-tdep.c: Ditto.
11452 * rs6000-tdep.c: Ditto.
11453 * h8500-tdep.c: Ditto.
11454 * mips-tdep.c: Ditto.
11455 * h8300-tdep.c: Ditto.
11456 * z8k-tdep.c: Ditto.
11457
11458 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11459
11460 From Jimi X <jimix@watson.ibm.com>:
11461 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11462 64-bit SysV ABI.
11463
11464 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11465
11466 From Jimi X <jimix@watson.ibm.com>:
11467 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11468 bfd info.
11469
11470 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11471
11472 From Jimi X <jimix@watson.ibm.com>:
11473 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11474 register sets for these processor variants.
11475
11476 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11477
11478 * regformats/reg-ppc.dat: Support FPSCR.
11479
11480 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11481
11482 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11483 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11484 Add fpscr as an invalid/unfetchable register.
11485 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11486 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11487 (fill_fpregset): Add support for register fpscr.
11488 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11489 (fill_gregset): Account for the fact that register ``mq'' might
11490 not exist.
11491 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11492 (registers_power): Add fpscr to register set at slot 71.
11493 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11494 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11495
11496 2002-04-11 Michael Snyder <msnyder@redhat.com>
11497
11498 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11499 * configure: Regenerate.
11500 * config.in: Regenerate.
11501 * acconfig.h: Add define for _SYSCALL32.
11502 * core-sol2.c: Remove #define _SYSCALL32.
11503 * solib-legacy.c: Remove #define _SYSCALL32.
11504
11505 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11506
11507 * stack.c (select_frame): Cleanup internal error message, do not
11508 use %p.
11509
11510 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11511
11512 * stack.c (select_frame): Check that selected_frame and the
11513 specified level are as expected.
11514 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11515 Update copyright.
11516 * frame.h (struct frame_info): Add field `level'. Update
11517 copyright.
11518 Work-in-progress PR gdb/464.
11519
11520 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11521
11522 * maint.c (maint_print_section_info): Rename print_section_info.
11523 (print_bfd_section_info, print_objfile_section_info): Update.
11524 * inferior.h (struct gdbarch): Add opaque declaration.
11525 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11526 * gdbarch.h: Regenerate.
11527
11528 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11529
11530 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11531 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11532 (kernel_u_size): Added.
11533 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11534 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11535
11536 2002-04-04 Jim Ingham <jingham@apple.com>
11537
11538 * valarith.c (find_size_for_pointer_math): New function, either returns
11539 the size for a pointer's target, returns 1 for void *, or errors for
11540 incomplete types.
11541 (value_add, value_sub): use find_size_for_pointer_math.
11542
11543 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11544
11545 * linux-low.c (linux_look_up_symbols): New hook.
11546 (linux_target_ops): Add linux_look_up_symbols.
11547 * remote-utils.c (decode_address): New function.
11548 (look_up_one_symbol): New function.
11549 * server.c (handle_query): Call target look_up_symbols hook.
11550 * server.h (look_up_one_symbol): Add prototype.
11551 * target.h (struct target_ops): Add look_up_symbols hook.
11552
11553 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11554
11555 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11556 override FP_REGNUM with frame->fp. Update copyright.
11557 * parse.c (num_std_regs, std_regs): Delete.
11558 (target_map_name_to_register): Do not search std_regs. Update
11559 function description.
11560 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11561 declarations. Update copyright.
11562 Fix PR gdb/251.
11563
11564 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11565
11566 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11567 after the last symbol in a block.
11568
11569 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11570
11571 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11572 is non zero as a found symbol.
11573
11574 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11575
11576 * findvar.c: Include "builtin-regs.h".
11577 (value_of_register): Call value_of_builtin_reg when applicable.
11578 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11579 (target_map_name_to_register): Call
11580 builtin_reg_map_name_to_regnum.
11581 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11582 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11583 (builtin_regs_h): Define.
11584 (builtin-regs.o): New target.
11585 (findvar.o): Add $(builtin_regs_h).
11586 * builtin-regs.c, builtin-regs.h: New files.
11587 * std-regs.c: New file.
11588 Partial fix for PR gdb/251.
11589
11590 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11591
11592 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11593 it's no longer required.
11594
11595 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11596
11597 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11598
11599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11600
11601 From Jimi X <jimix@watson.ibm.com>:
11602 * rs6000-tdep.c (rs6000_software_single_step): Use
11603 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11604 and size. Use target_insert_breakpoint() and
11605 target_remove_breakpoint() to insert and remove breakpoints
11606 instead of explicit memory reads and writes.
11607
11608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11609
11610 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11611 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11612 ELF_OBJECT_FORMAT ifdef.
11613
11614 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11615
11616 From Jimi X <jimix@watson.ibm.com>:
11617 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11618
11619 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11620
11621 From Jimi X <jimix@watson.ibm.com>:
11622 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11623 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11624
11625 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11626
11627 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11628 s/asprintf/xasprintf/.
11629 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11630
11631 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11632
11633 I believe Jeff Law denies responsability for this one:
11634 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11635 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11636 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11637 Work-around for PR gdb/366.
11638
11639 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11640
11641 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11642 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11643 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11644
11645 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11646
11647 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11648 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11649 information.
11650
11651 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11652
11653 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11654 maintainer.
11655
11656 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11657
11658 * README (Reporting Bugs in GDB): Document the bug web page as the
11659 prefered way of submitting bugs.
11660 Fix PR gdb/402.
11661
11662 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11663
11664 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11665 -1. Update comment.
11666 * gdbarch.h, gdbarch.c: Re-generate.
11667
11668 2002-04-07 Andreas Schwab <schwab@suse.de>
11669
11670 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11671 buffer to regcache_collect.
11672
11673 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11674
11675 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11676 * gdbarch.c, gdbarch.h: Re-generate.
11677
11678 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11679
11680 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11681 declaration. Fix -Werror.
11682
11683 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11684
11685 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11686 * gdbarch.c: Regenerate.
11687
11688 2002-04-05 Michael Snyder <msnyder@redhat.com>
11689
11690 * breakpoint.c (clear_command): Rewrite middle section to
11691 combine two loops with identical control conditions.
11692 Add a cleanup to eliminate a memory leak.
11693 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11694
11695 2002-04-05 H.J. Lu (hjl@gnu.org)
11696
11697 * solib-svr4.c (bkpt_names): Add "__start".
11698
11699 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11700
11701 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11702 as test for 64 bit target.
11703
11704 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11705
11706 * h8500-tdep.c (h8500_write_fp): Delete function.
11707 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11708 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11709 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11711 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11712 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11713 (s390_write_fp):
11714 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11715 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11716 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11717 (d10v_write_fp): Delete function.
11718 * inferior.h (write_fp, generic_target_write_fp): Delete
11719 declarations.
11720 * regcache.c (generic_target_write_fp): Delete function.
11721 (write_fp): Delete function.
11722 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11723 * gdbarch.h, gdbarch.c: Regenerate.
11724 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11725 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11726 (sparc64_write_fp): Delete declaration.
11727 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11728 (h8500_write_fp): Delete declaration.
11729
11730 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11731
11732 * sparc-tdep.c (sparc64_write_fp): Delete.
11733 (sparc_push_dummy_frame): Replace write_fp call with code to store
11734 the FP directly.
11735 (sparc_gdbarch_init): Do not initialize write_fp.
11736
11737 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11738
11739 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11740 clause.
11741
11742 2002-03-29 Jim Blandy <jimb@redhat.com>
11743
11744 * stack.c (get_selected_block): Add new argument `addr_in_block',
11745 used to return the exact code address we used to select the block,
11746 not just the block.
11747 * blockframe.c (get_frame_block, get_current_block): Same.
11748 * frame.h (get_frame_block, get_current_block,
11749 get_selected_block): Update declarations.
11750 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11751 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11752
11753 2002-04-05 Michael Snyder <msnyder@redhat.com>
11754
11755 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11756 warning message.
11757
11758 2002-04-05 J. Brobecker <brobecker@gnat.com>
11759
11760 * utils.c (xfullpath): New function.
11761 * defs.h (xfullpath): Add declaration.
11762 * source.c (openp): Use xfullpath in place of gdb_realpath to
11763 avoid resolving the basename part of filenames when the
11764 associated file is a symbolic link. This fixes a potential
11765 inconsistency between the filenames known to GDB and the
11766 filenames it prints in the annotations.
11767 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11768 to be able to match a filename with either the real filename, or
11769 the name of any symbolic link to this file.
11770 (lookup_partial_symtab): Ditto.
11771
11772 2002-04-04 Michael Snyder <msnyder@redhat.com>
11773
11774 * breakpoint.c: Add support for hardware breakpoints in overlays.
11775 (overlay_events_enabled): New state variable.
11776 (insert_breakpoints): Use overlay_events_enabled to decide
11777 whether to attempt to set a breakpoint at the overlay load addr.
11778 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11779 (remove_breakpoint): Use overlay_events_enabled to decide
11780 whether breakpoints need to be removed from overlay load addr.
11781 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11782 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11783 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11784 disable_overlay_breakpoints): Update overlay_events_enabled.
11785
11786 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11787
11788 * dwarf2read.c (struct function_range): New.
11789 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11790 (check_cu_functions): New.
11791 (read_file_scope): Initialize global function lists.
11792 Call dwarf_decode_line after processing children.
11793 (read_func_scope): Add to global function list.
11794 (dwarf_decode_lines): Call check_cu_functions everywhere
11795 record_line is called. Call record_line with a linenumber
11796 of 0 to mark sequence ends.
11797
11798 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11799
11800 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11801 change sync with glibc.
11802
11803 2002-04-03 Jim Blandy <jimb@redhat.com>
11804
11805 * configure.in: Call AC_C_INLINE.
11806 * configure: Regenerated.
11807
11808 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11809
11810 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11811 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11812
11813 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11814
11815 * NEWS: Mention gcore support on FreeBSD/i386.
11816
11817 * fbsd-proc.c: New file.
11818 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11819 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11820
11821 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11822 while statement.
11823
11824 2002-03-29 Jim Blandy <jimb@redhat.com>
11825
11826 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11827 unescaped newlines in string literals, but newer ones don't. So
11828 escape them.
11829
11830 2002-03-26 Michael Snyder <msnyder@redhat.com>
11831 Andrew Cagney <cagney@redhat.com>
11832
11833 * cli/cli-dump.c: New file. Dump memory to file,
11834 restore file to memory.
11835 * cli/cli-dump.h: New file.
11836 * Makefile.in: Add rules, dependencies for cli-dump.o.
11837 * NEWS: Mention new commands.
11838
11839 2002-03-28 Michael Snyder <msnyder@redhat.com>
11840
11841 * symfile.c (symbol_file_add): Move test for null symbols to later.
11842
11843 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11844
11845 From veksler at il.ibm.com:
11846 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11847 the xstrduped original path.
11848 Fix PR gdb/417.
11849
11850 2002-03-27 Michael Snyder <msnyder@redhat.com>
11851
11852 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11853 * infcmd.c (_initialize_infcmd): Ditto.
11854 * language.c (_initialize_language): Ditto.
11855 * symfile.c (_initialize_symfile): Ditto.
11856 * top.c (_init_main): Ditto.
11857 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11858
11859 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11860
11861 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11862 vector registers handling.
11863 (skip_prologue): Handle new AltiVec instructions. Fill in new
11864 fields of frame data.
11865 (frame_get_saved_regs): Fill in information for AltiVec registers.
11866
11867 2002-03-27 Jim Blandy <jimb@redhat.com>
11868
11869 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11870 a function; leave this macro here to invoke that function.
11871 (symbol_init_mangled_name): Declaration for that function.
11872 * symtab.c (symbol_init_mangled_name): New function.
11873
11874 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11875
11876 * valarith.c: Replace strerror with safe_strerror.
11877 * tracepoint.c: Ditto.
11878 * lin-lwp.c: Ditto.
11879 * go32-nat.c: Ditto.
11880 * inflow.c: Ditto.
11881 * gnu-nat.c: Ditto.
11882
11883 2002-03-27 Andreas Schwab <schwab@suse.de>
11884
11885 * event-top.c (command_line_handler): Remove useless if.
11886
11887 2002-03-27 Andreas Jaeger <aj@suse.de>
11888
11889 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11890 comment.
11891
11892 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11893
11894 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11895 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11896 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11897 (x86_64_linux_dr_get_status, supply_gregset),
11898 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11899 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11900 (x86_64_register_info_table): Add.
11901 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11902 (x86_64_register_raw_size, x86_64_register_virtual_type),
11903 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11904 general x86_64_register_info_table.
11905 (i386_gdbarch_init): gdbarch_register_bytes is now set
11906 dynamicaly during initialization.
11907 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11908 * gdbserver/linux-x86-64-low.c: Ditto.
11909
11910 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11911
11912 * gdbserver/server.c (main): Call target_signal_to_host_p
11913 and target_signal_to_host on signals received from the remote.
11914 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11915 target_signal_from_host on signals sent to the remote.
11916 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11917 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11918
11919 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * signals/signals.c: Include "server.h" in gdbserver build.
11922 (target_signal_from_name): Don't use STREQ.
11923 (_initialize_signals): Likewise. Don't include function in
11924 gdbserver build.
11925
11926 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11927
11928 * signals.c: Moved to...
11929 * signals/signals.c: Here.
11930 * Makefile (signals.o): Update.
11931
11932 2002-03-26 Jeff Law (law@redhat.com)
11933
11934 * somread.c (som_symtab_read): Remove some commented out code and
11935 updated related comments. Do not set the minimal symbol table to
11936 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11937 in a dynamic executable.
11938 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11939 where we are unable to find the minimal symbol for the given
11940 PC value.
11941
11942 2002-03-25 Jeff Law (law@redhat.com)
11943
11944 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11945
11946 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11947
11948 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11949
11950 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11951
11952 * command.h: Update copyright.
11953 (struct cmd_list_element): Replace definition with opaque
11954 declaration.
11955 (enum cmd_types): Document that it will eventually be moved to
11956 cli/cli-decode.h
11957 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11958 (MALLOCED_REPLACEMENT): Delete macro.
11959 * Makefile.in (cli_decode_h): Add $(command_h).
11960 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11961 * top.c: Include "cli/cli-decode.h".
11962 * completer.c: Include "cli/cli-decode.h".
11963 * maint.c: Include "cli/cli-decode.h".
11964 * cli/cli-decode.h: Include "command.h".
11965 (enum command_class): Delete.
11966 (enum cmd_types): Comment out.
11967 (enum cmd_auto_boolean): Delete.
11968 (enum var_types): Delete.
11969
11970 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11971
11972 * cli/cli-decode.c: Include "gdb_assert.h".
11973 (add_set_or_show_cmd): New static function.
11974 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11975 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11976 all fields, such as func, from the set command.
11977
11978 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11979
11980 * MAINTAINERS (sh-elf): Change warning flag to -w.
11981
11982 2002-03-23 Andrew Cagney <cagney@redhat.com>
11983
11984 * defs.h (error): Add printf format attribute.
11985 * thread-db.c (thread_from_lwp): Fix error format string.
11986 * stack.c (parse_frame_specification): Ditto.
11987 * cli/cli-decode.c (undef_cmd_error): Ditto.
11988 * scm-lang.c (scm_lookup_name): Ditto.
11989 * tracepoint.c (trace_error): Ditto.
11990 * remote-utils.c (usage): Ditto.
11991 * remote.c (compare_sections_command): Ditto.
11992 Fix PR gdb/328.
11993
11994 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11995
11996 * gdbtypes.c (append_composite_type_field): New function.
11997 (init_composite_type): New function.
11998 * gdbtypes.h (append_composite_type_field): Declare.
11999 (init_composite_type): Ditto.
12000
12001 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12002
12003 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12004 function.
12005 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12006 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12007 structure returning convention for SYSV ABI case, but not
12008 for GNU/Linux, FreeBSD, or NetBSD.
12009
12010 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12011
12012 * symtab.h (lookup_block_symbol): Add mangled_name argument
12013 to prototype.
12014
12015 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12016 with new mangled_name argument.
12017 * linespec.c (decode_line_1): Likewise.
12018 * valops (value_of_this): Likewise.
12019 * symtab.c (lookup_transparent_type): Likewise.
12020 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12021 (lookup_symbol): If we are given a mangled name, pass it down
12022 to lookup_symbol_aux.
12023 (lookup_block_symbol): If we are given a mangled name to check
12024 against, only return symbols which match it.
12025
12026 2002-03-22 Christopher Faylor <cgf@redhat.com>
12027
12028 * win32-nat.c (child_create_inferior): Check for proper shell to use
12029 here, in case the user changes it on the fly.
12030 (_initialize_inftarg): Remove shell path considerations.
12031
12032 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12033
12034 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12035 for gdbarch_max_register_raw_size and max_register_virtual_size.
12036 Adjust copyright year.
12037
12038 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12039
12040 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12041 in a function to cover the entire beginning of the function
12042 as well if it does not already.
12043
12044 2002-03-21 Tom Rix <trix@redhat.com>
12045
12046 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12047 (rs6000_ptrace64): Renamed from ptrace64.
12048
12049 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12050
12051 * gdbserver/remote-utils.c (remote_open): Don't call
12052 getprotobyname, we're all using TCP here so just use
12053 IPPROTO_TCP.
12054 * gdbserver/gdbreplay.c (remote_open): Ditto.
12055
12056 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12057
12058 * regcache.c (_initialize_regcache): No need to call
12059 build_regcache() at this time; it gets called whenever
12060 the gdbarch changes.
12061
12062 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12063
12064 * sparc-nat.c: Include sys/param.h where possible.
12065
12066 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12067
12068 Fix PR gdb/422.
12069 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12070 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12071 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12072 complex types.
12073 * stabsread.c (rs6000_builtin_type): Likewise.
12074 (read_sun_floating_type): Likewise.
12075
12076 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12077
12078 * stabsread.c (read_member_functions): Remove skip code for duplicate
12079 constructor/destructor methods. Use standard parsing for these
12080 methods and just do not chain them to the list of methods after
12081 parsing.
12082
12083 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12084
12085 * coffread.c: Remove redundant static declarations. Replace
12086 occurrences of `PTR' with `void *'.
12087 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12088 * top.h (quit_cover): Likewise.
12089 * defs.h (catch_errors): Likewise.
12090
12091 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12092
12093 * defs.h (XMALLOC): Define.
12094 * gdb-events.sh (XMALLOC): Delete macro.
12095 * gdb-events.c, gdb-events.h: Regenerate.
12096 * gdbarch.sh (XMALLOC): Delete macro.
12097 * gdbarch.c: Regenerate.
12098 * serial.c (XMALLOC): Delete macro.
12099 * ui-file.c (XMALLOC): Ditto.
12100 * ser-unix.h (XMALLOC): Ditto.
12101 * sh-tdep.c (XMALLOC): Ditto.
12102 * ui-out.c (XMALLOC): Ditto.
12103 * utils.c (XMALLOC): Ditto.
12104 * i386-tdep.c (XMALLOC): Ditto.
12105 * gdb-events.c (XMALLOC): Ditto.
12106 * d10v-tdep.c (XMALLOC): Ditto.
12107 * cli-out.c (XMALLOC): Ditto.
12108
12109 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12110 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12111 * ui-file.c, ui-out.c: Ditto.
12112
12113 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12114
12115 * command.h (struct cmd_list_element): Add field context.
12116 (set_cmd_context, get_cmd_context): Declare.
12117 * cli/cli-decode.h: Ditto.
12118 * cli/cli-decode.c (get_cmd_context): New function.
12119 (set_cmd_context): New function.
12120 (add_cmd): Initialize context.
12121 Part of fixing PR gdb/145 and PR gdb/146.
12122
12123 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12124
12125 * cli/cli-decode.c (cmd_type): New function.
12126 * command.h (cmd_type): Declare.
12127 * infrun.c (set_schedlock_func): Call function cmd_type.
12128 * kod.c (kod_set_os): Call cmd_type.
12129 * cris-tdep.c (cris_version_update): Use function cmd_type.
12130 (cris_mode_update, cris_abi_update): Ditto.
12131
12132 * command.h: (execute_cmd_post_hook): Declare.
12133 (execute_cmd_pre_hook): Declare.
12134 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12135 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12136 functions. Execute pre/post hook while ensuring that afterwords
12137 hook_in is cleared.
12138 * top.c (execute_command): Use execute_cmd_post_hook, and
12139 execute_cmd_pre_hook to execute pre/post commands.
12140 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12141 hook_stop_stub.
12142 (hook_stop_stub): Call execute_cmd_pre_hook.
12143
12144 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12145
12146 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12147 set'' and this leads to a core dump. Move xstrdup of
12148 operating_system to after check that it is not NULL.
12149
12150 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12151
12152 * kod.c (kod_set_os): Remove unnecessary check that
12153 ``command->type'' is set_cmd.
12154
12155 * valprint.c (set_input_radix): Use input_radix.
12156 (set_output_radix): Use output_radix.
12157 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12158 isn't reverted.
12159
12160 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12161
12162 * value.h (struct value): Delete field ``substring_addr''. Change
12163 aligner fields to force_doublest_align, force_longest_align,
12164 force_core_addr_align and force_pointer_aligh.
12165
12166 * value.h (struct value): Fix typo in above change.
12167
12168 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12169
12170 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12171 to fix internal_error from ``maintenance print architecture''.
12172
12173 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12174
12175 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12176 for gcc versions after gcc-2.8.1.
12177
12178 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12179
12180 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12181 for method resolution. Restore adjustment of ``this'' pointer after
12182 calling value_struct_elt, which was accidentally removed during the
12183 HP merge.
12184
12185 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12186
12187 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12188 value_of_register.
12189 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12190 get_saved_register.
12191 * value.h (value_of_register): Update.
12192
12193 2002-03-14 Richard Henderson <rth@redhat.com>
12194
12195 * configure.in: Detect declaration for canonicalize_file_name.
12196 * utils.c (canonicalize_file_name): Declare, if needed.
12197 (gdb_realpath): Prefer realpath if available and usable.
12198 * config.in, configure: Rebuild.
12199
12200 2002-03-14 Richard Henderson <rth@redhat.com>
12201
12202 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12203 a constant array bound.
12204
12205 * MAINTAINERS: Add myself to write-after-approval.
12206
12207 2002-03-14 Michael Snyder <msnyder@redhat.com>
12208
12209 * symfile.c (syms_from_objfile): Return immediately if no syms.
12210 (symbol_file_add): Return immediately if no syms.
12211 (find_sym_fns): Return immediately if no syms.
12212
12213 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12214
12215 * gdbserver/remote-util.c (remote_open): Print remote-side's
12216 IP address when remote debugging over the network.
12217
12218 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12219
12220 * config/sparc/fbsd.mh: Fix copyright.
12221 * config/sparc/fbsd.mt: Likewise.
12222
12223 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12224
12225 * MAINTAINERS: Fix typo in name of gdb warnings option.
12226 (x86-64): Fix formating so that this can be parsed by awk.
12227
12228 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12231 * defs.h: Include "gdb/signals.h".
12232 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12233
12234 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12235
12236 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12237 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12238 from x86-64-tdep.h
12239
12240 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12241 Don Howard <dhoward@redhat.com>
12242
12243 * mips-tdep.c (ST0_FR): Define.
12244 (mips2_fp_compat): New function, temporarily disabled.
12245 (mips_read_fp_register_single): New function.
12246 (mips_read_fp_register_double): New function.
12247 (mips_print_register): Use them.
12248 (do_fp_register_row): Likewise.
12249
12250 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12251
12252 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12253 approval''.
12254
12255 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12256
12257 * stabsread.c (read_member_functions): Fix is_stub test for
12258 static member functions, improve comment.
12259
12260 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12261
12262 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12263 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12264 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12265 commands that set boolean values.
12266 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12267 (arm_rdi_resume): Always initialize PC.
12268 (arm_rdi_open): Don't use rslt as a boolean.
12269 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12270 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12271 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12272 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12273
12274 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12275
12276 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12277 * configure: Rebuilt.
12278
12279 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12280
12281 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12282 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12283
12284 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12285
12286 * cli/cli-decode.c (set_cmd_completer): New function.
12287 * command.h (set_cmd_completer): Declare.
12288 * cli/cli-decode.h (set_cmd_completer): Ditto.
12289
12290 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12291 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12292 * win32-nat.c (_initialize_inftarg): Ditto.
12293 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12294 * proc-api.c (_initialize_proc_api): Ditto.
12295 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12296 * source.c (_initialize_source): Ditto.
12297 * exec.c (_initialize_exec): Ditto.
12298 * solib.c (_initialize_solib): Ditto.
12299 * top.c (init_main): Ditto.
12300 * tracepoint.c (_initialize_tracepoint): Ditto.
12301 * symfile.c (_initialize_symfile): Ditto.
12302 * printcmd.c (_initialize_printcmd): Ditto.
12303 * infcmd.c (_initialize_infcmd): Ditto.
12304 * corefile.c (_initialize_core): Ditto.
12305
12306 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12307
12308 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12309
12310 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12311
12312 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12313
12314 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12315
12316 * NEWS: Update headings, 5.2 has branched.
12317
12318 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12319
12320 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12321 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12322 (register_addr, REGISTER_RAW_SIZE): Likewise.
12323 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12324 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12325
12326 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12327
12328 * MAINTAINERS (x86-64): Add myself.
12329 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12330 changed value_ptr -> struct value *
12331
12332 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12333
12334 * configure.host (sparc64-*-freebsd): Add.
12335 * configure.tgt: Likewise.
12336 * config/sparc/fbsd.mh: New file.
12337 * config/sparc/fbsd.mt: Likewise.
12338 * config/sparc/nm-fbsd.h: Likewise.
12339 * config/sparc/tm-fbsd.h: Likewise.
12340
12341 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12342
12343 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12344 regformats/reg-s390x.dat.
12345
12346 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12347
12348 * utils.c: Add FIXME explaining true/false problem.
12349
12350 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12351
12352 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12353
12354 2002-02-28 Michael Chastain <mec@shout.net>
12355
12356 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12357
12358 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12359
12360 * gdbserver/linux-s390-low.c: New file.
12361 * regformats/reg-s390.dat: New file.
12362 * regformats/reg-s390x.dat: New file.
12363 * gdbserver/configure.srv: Add S/390.
12364 * gdbserver/Makefile.in: Add S/390.
12365 * configure.tgt: Enable gdbserver for S/390.
12366
12367 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12368
12369 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12370 first line of the doc string for "info dos", except at the end of
12371 the sentence, since the short help stops at the first period.
12372
12373 2002-02-28 Jason Merrill <jason@redhat.com>
12374
12375 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12376
12377 2002-02-27 Fred Fish <fnf@redhat.com>
12378
12379 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12380 comment (dumy -> dummy).
12381
12382 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12383
12384 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12385
12386 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12387
12388 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12389
12390 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12391
12392 * gdbserver/acconfig.h: New file.
12393 * gdbserver/i387-fp.c: New file.
12394 * gdbserver/i387-fp.h: New file.
12395 * gdbserver/linux-x86-64.c: New file.
12396 * regformats/reg-x86-64.dat: New file.
12397 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12398 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12399 * gdbserver/configure.in: Add support for regsets.
12400 * gdbserver/config.in: Regenerate.
12401 * gdbserver/configure: Regenerate.
12402 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12403 * gdbserver/linux-low.h: New file.
12404 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12405 for regsets.
12406 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12407 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12408 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12409 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12410 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12411 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12412 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12413 "i387-fp.h". Add PTRACE_GETREGS and friends.
12414 * gdbserver/regcache.c (supply_register): New function.
12415 (supply_register_by_name): New function.
12416 (collect_register): New function.
12417 (collect_register_by_name): New function.
12418
12419 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12420
12421 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12422 (config.status): Add configure.srv dependency.
12423 (server_h): Add config.h dependency.
12424
12425 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12426
12427 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12428 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12429 * gdbserver/configure.srv: Change i386-*-linux* to use
12430 reg-i386-linux.o.
12431
12432 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12433
12434 * x86-64-tdep.c: Re-indent. Update copyright date.
12435
12436 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12437
12438 From Michal Ludvig <mludvig@suse.cz>:
12439 * x86-64-tdep.c (value.h): Delete.
12440 (gdb_assert.h): Include.
12441 (x86_64_register_convert_to_virtual,
12442 x86_64_register_convert_to_raw ): Add check which lets only
12443 floating-point values to be converted.
12444 (value_push): Delete.
12445 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12446 (i386_gdbarch_init): Number of register_bytes fixed.
12447
12448 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12449
12450 * MAINTAINERS: Add x86-64 target.
12451
12452 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12453
12454 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12455 * osfsolib.c (solib_map_sections): Ditto.
12456 * irix5-nat.c (solib_map_sections): Ditto.
12457 * corelow.c (gdb_check_format): Ditto.
12458 * symfile.c (symfile_bfd_open): Ditto.
12459 * solib.c (solib_map_sections): Ditto.
12460 Fix PR gdb/354.
12461
12462 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12463
12464 * remote.c (_initialize_remote): By default, disable ``e'' and
12465 ``E'' step out-of-range packets.
12466
12467 2002-02-26 Andreas Schwab <schwab@suse.de>
12468
12469 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12470 m68k_linux_frame_saved_pc.
12471 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12472 in_sigtramp.
12473 (SIGCONTEXT_PC_OFFSET): Remove.
12474 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12475 m68k_linux_sigtramp_saved_pc): New functions.
12476 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12477 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12478 (UCONTEXT_PC_OFFSET): Define.
12479 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12480 non-RT and RT signal trampolines.
12481
12482 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12483
12484 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12485 (TARGET_NBPG, STACK_END_ADDR): Delete
12486 (VARIABLES_INSIDE_BLOCK): Delete.
12487
12488 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12489
12490 * utils.c (perror_with_name): Make string parameter constant.
12491 (print_sys_errmsg): Ditto.
12492 (query): Ditto.
12493 * defs.h (perror_with_name): Update.
12494 (print_sys_errmsg): Update.
12495 (query): Update.
12496
12497 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12498
12499 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12500 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12501
12502 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12503
12504 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12505 if it already matches the current architecture from the exec file.
12506 Include arch-utils.h for gdbarch_info_init prototype.
12507 * Makefile.in (rs6000-nat.o): Update dependencies.
12508
12509 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12510
12511 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12512 list of exported variables.
12513
12514 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12515
12516 * gdbserver/configure.srv: New file.
12517 * gdbserver/configure.in: Use configure.srv instead
12518 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12519 from it.
12520 * gdbserver/configure: Regenerated.
12521 * gdbserver/terminal.h: New file.
12522 * gdbserver/Makefile.in: Update for configure changes. Remove
12523 more unneeded include paths.
12524
12525 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12526
12527 From wiz at danbala:
12528 * config/sparc/tm-sp64.h: Fix grammar and typos.
12529 Fix PR gdb/287.
12530
12531 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12532
12533 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12534 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12535 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12536 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12537 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12538 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12539 * s390-tdep.c: Ditto.
12540 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12541 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12542 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12543 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12544 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12545 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12546 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12547 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12548 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12549 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12550 Fix PR gdb/378.
12551
12552 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12553
12554 * lin-thread.c: Delete file.
12555 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12556 to gdb_proc_service.h.
12557 * configure: Re-generate.
12558
12559 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12560 * serial.c (serial_open): Delete check for "ocd".
12561 Fix PR gdb/349.
12562
12563 * Makefile.in (linux-thread.o): Delete target.
12564 * linux-thread.c: Delete file.
12565
12566 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12567 renamed SH files to be consistent.
12568
12569 * symtab.c (sort_search_symbols): Use xfree.
12570
12571 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12572
12573 * arm-linux-tdep.c (arm_linux_init_abi): Register
12574 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12575 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12576 definition with undef, since we don't want the sysvr4 definition.
12577 (SKIP_TRAMPOLINE_CODE): Likewise.
12578
12579 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12580
12581 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12582
12583 * configure.in: (AC_CHECK_FUNCS) Added test for
12584 canonicalize_file_name Regenerated.
12585 * config.in, configure: Regenerated.
12586 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12587 defined use canonicalize_file_name.
12588
12589 2002-02-23 Michael Chastain <mec@shout.net>
12590
12591 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12592
12593 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12594
12595 * README: Remove references to cygnus.com.
12596 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12597 dot com'' form. Remove references to cygnus.com and sourceware.
12598
12599 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12600
12601 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12602 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12603 1003.1-2001 no longer allows "head -1".
12604 * gdb/Makefile.in (version.c): Likewise.
12605 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12606 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12607 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12608
12609 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12610
12611 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12612 * command.h (cmd_cfunc_eq): Declare.
12613 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12614
12615 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12616 ``struct cmd_list_element *''.
12617 * cli/cli-cmds.c (is_complete_command): Update. Use
12618 cmd_cfunc_eq.
12619 * top.c (execute_command): Pass the command to
12620 is_complete_command.
12621 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12622
12623 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12624
12625 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12626 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12627 architecture defines.
12628 * s390-tdep.c (s390_gdbarch_init): Likewise.
12629
12630 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12631
12632 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12633 (arm_linux_push_arguments): Likewise.
12634 (arm_linux_init_abi): Register them. Also register linux-specific
12635 call_dummy_words.
12636 (find_minsym_and_objfile): Use strcmp, not STREQ.
12637 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12638 (arm_linux_call_dummy_words): Delete declaration.
12639 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12640 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12641 declarations.
12642 (LOWEST_PC): Delete.
12643
12644 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12645
12646 * maint.c (print_section_info): Do not prepend `0x' to filepos
12647 output, it will be handled by local_hex_string_custom.
12648
12649 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12650
12651 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12652 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12653 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12654
12655 2002-02-22 Jim Blandy <jimb@redhat.com>
12656
12657 Indicate that the bcache functions don't change the strings
12658 they're passed.
12659 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12660 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12661
12662 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12663
12664 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12665
12666 2002-02-21 Christopher Faylor <cgf@redhat.com>
12667
12668 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12669 find the complete path to a loaded DLL.
12670
12671 2002-02-21 Fred Fish <fnf@redhat.com>
12672
12673 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12674 that marks the end of the range of a function, enter a line number
12675 entry that has a line number of zero and a PC offset that matches
12676 the end of the function. This starts a range of PC's for which no
12677 line number information is known.
12678 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12679 PC's for which no line number info is found (line number is zero)
12680 then we didn't find any valid line information.
12681 * symtab.h: Document use of zero line number entry.
12682
12683 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12684
12685 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12686 (have_ptrace_getvrregs): Define for run time checks.
12687 (gdb_vrregset_t): New type for Altivec register handling.
12688 (fetch_register, store_register): Fetch/store altivec register
12689 when needed.
12690 (fetch_altivec_register, store_altivec_register): New functions.
12691 (supply_vrregset, fill_vrregset): New functions.
12692 (fetch_altivec_registers, store_altivec_registers): New functions.
12693 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12694 registers as well.
12695
12696 2002-02-21 Jiri Smid <smid@suse.cz>
12697
12698 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12699
12700 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12701
12702 * Makefile.in (armnbsd-nat.o): Update dependencies.
12703 * armnbsd-nat.c (supply_gregset): New function. Common code to
12704 supply the integer register set.
12705 (supply_fparegset): New function. Similar for FPA registers.
12706 (fetch_regs, fetch_fp_regs): Use them.
12707 (fetch_core_registers): Likewise.
12708 (fetch_elfcore_registers): New function.
12709 (arm_netbsd_elfcore_fns): New core-file type specification.
12710 (_initialize_arm_netbsd_nat): Register it.
12711
12712 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12713
12714 * armnbsd-nat.c: Include gdbcore.h.
12715 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12716 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12717 'void' to declaration, to shut up ARI.
12718 (fetch_core_registers): Make static. Rewrite using supply_register.
12719 (arm_netbsd_core_fns): New core-file type specification.
12720 (_initialize_arm_netbsd_nat): New function.
12721
12722 2002-02-21 Christopher Faylor <cgf@redhat.com>
12723
12724 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12725 value.
12726
12727 2002-02-20 Christopher Faylor <cgf@redhat.com>
12728
12729 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12730 fails.
12731
12732 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12733
12734 * jv-exp.y (parse_number): Change type of implicit longs
12735 to builtin_type_uint64.
12736
12737 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12740 to be an integer instead of a `union wait'.
12741
12742 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12743
12744 * mips-linux-nat.c: Call the operating system GNU/Linux.
12745 * mips-linux-tdep.c: Likewise.
12746 * mips-tdep.c: Likewise.
12747
12748 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12749
12750 Fix PR gdb/265.
12751 * jv-exp.y (parse_number): Handle 64-bit integers.
12752
12753 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12754
12755 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12756 AC_STDC_HEADERS to AC_HEADER_STDC.
12757 * gdbserver/configure: Regenerated.
12758
12759 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12760
12761 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12762 is defined.
12763 * sparc-tdep.c (get_longjmp_target): Likewise.
12764
12765 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12766
12767 * News: Add news about ARM and Multi-arch. Mention the new target
12768 arm*-*-netbsd*.
12769
12770 2002-02-19 Jim Blandy <jimb@redhat.com>
12771
12772 * stabsread.c (error_type_complaint): Improve error message.
12773
12774 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12775
12776 * gdbserver/README: Update documentation.
12777 * gdbserver/configure.in: Update configury to match documentation.
12778 * gdbserver/Makefile.in: Likewise.
12779 * gdbserver/configure: Regenerated.
12780 * gdbserver/aclocal.m4: New file, generated by aclocal.
12781 * gdbserver/config.in: New file, generated by autoheader.
12782
12783 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12784
12785 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12786 armnbsd-nat.c.
12787
12788 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12789
12790 * arm-tdep.h (enum arm_float_model): New enum.
12791 (struct gdbarch_tdep): Add fp_model.
12792 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12793 up floating-point conversions until we know the floating-point model
12794 in use by the inferior. Don't complain about being unable to
12795 determine the ABI of the inferior when we don't have one.
12796 (arm_extract_return_value): Support different floating-point models.
12797 (arm_store_return_value): Likewise.
12798 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12799 ARM_FLOAT_SOFT.
12800 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12801
12802 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12803
12804 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12805 of ``current_gdbarch''.
12806
12807 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12808
12809 * armnbsd-nat.c : ANSIfy all function declarations.
12810 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12811 (fetch_inferior_registers): Re-implement in terms of above.
12812 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12813 (store_inferior_registers): Re-implement in terms of above.
12814
12815 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12816
12817 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12818 kernel.
12819 * arm-linux-tdep.c: Likewise.
12820 * config/arm/tm-linux.h: Likewise.
12821
12822 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12823
12824 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12825 * config/arm/nbsd.mt (TM_FILE): Delete.
12826 * config/arm/tm-nbsd.h: Delete.
12827
12828 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12829
12830 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12831 Initialize CALL_DUMMY_LENGTH.
12832
12833 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12834
12835 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12836 function.
12837 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12838 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12839 defines one thing and that is incorrect for this port.
12840 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12841
12842 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12843
12844 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12845
12846 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12847
12848 * win32-nat.c (display_selector): New function. Displays information
12849 about the information returned by GetThreadSelectorEntry API function.
12850 (display_selectors): New function. Displays the infomation of
12851 the selector given as argument, or of CS, DS ans FS selectors
12852 if no argument is given.
12853 ( _initialize_inftarg): Add "w32" as info prefix command.
12854 Add "info w32 selector" as command calling display_selectors.
12855
12856 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12857
12858 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12859 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12860 if not defined.
12861
12862 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12863
12864 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12865
12866 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12867
12868 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12869 (arm_fix_call_dummy): Call it.
12870 (arm_call_dummy_breakpoint_offset): Delete.
12871 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12872 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12873
12874 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12875
12876 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12877 Default to func_frame_chain_valid.
12878 * gdbarch.h, gdbarch.c: Re-generate.
12879 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12880
12881 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12882
12883 * ppc-linux-nat.c: Update copyright.
12884 (fetch_register, store_register): Add tid parameter, don't compute
12885 tid here.
12886 (fetch_ppc_registers, store_ppc_registers): Add tid
12887 parameter. Pass it along to callees.
12888 (fetch_inferior_registers, store_inferior_registers): Compute tid
12889 here, and pass it to calleed functions.
12890 (fill_gregset, supply_fpregset): Clean up formatting.
12891
12892 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12893
12894 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12895 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12896
12897 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12898
12899 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12900 * gdbarch.c gdbarch.h: Regenerate.
12901 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12902 function.
12903 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12904 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12905 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12906
12907 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12908 * arm-tdep.c (arm_get_longjmp_target): New function.
12909 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12910 this to a positive value register arm_get_longjmp_target as the
12911 longjmp handler.
12912 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12913 (arm_linux_init_abi): Set up longjmp description in tdep.
12914 * armnbsd-nat.c (get_longjmp_target): Delete.
12915 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12916 description in tdep.
12917 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12918 (get_longjmp_target): Delete declaration.
12919 (GET_LONGJMP_TARGET): Delete.
12920 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12921 (GET_LONGJMP_TARGET): Delete.
12922
12923 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12924
12925 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12926 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12927 of ``current_gdbarch''.
12928
12929 2002-02-17 Tom Tromey <tromey@redhat.com>
12930
12931 * cli/cli-cmds.c (compare_strings): New function.
12932 (complete_command): Only print each unique item once.
12933 * completer.h (complete_line): Declare.
12934 * completer.c (complete_line): New function.
12935 (line_completion_function): Use it.
12936
12937 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12938
12939 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12940 * gdbarch.h, gdbarch.c: Re-generate.
12941
12942 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12943
12944 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12945
12946 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12947
12948 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12949 * valops.c (value_arg_coerce): Don't take the address of a reference
12950 to convert an argument to a reference.
12951
12952 2002-02-15 Christopher Faylor <cgf@redhat.com>
12953
12954 * win32-nat.c (get_image_name): New function.
12955 (handle_load_dll): Use get_image_name function.
12956 (get_child_debug_event): Avoid registering debug events until possibly
12957 execed process is started.
12958 (child_create_inferior): Allow invocation via shell so that command
12959 line redirection, etc. works ok.
12960 (_initialize_inftarg): Add new command: "set shell" to control whether
12961 a shell is used to start a process.
12962
12963 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12964
12965 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12966 instead of find_register_by_number.
12967 (cannot_store_register): Likewise.
12968
12969 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12970
12971 * dwarf2read.c: Replace fprintf (stderr, ...) by
12972 fprintf_unfiltered (gdb_stderr, ...).
12973
12974 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12975
12976 * gdbserver/gdbserver.1: Document --attach.
12977
12978 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12979
12980 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12981 descriptions.
12982 * arm-tdep.c (arm_default_arm_le_breakpoint)
12983 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12984 (arm_default_thumb_be_breakpoint): New. Initialize them from
12985 traditional breakpoint defines.
12986 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12987 (arm_gdbarch_init): Initialize new breakpoint variables.
12988 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12989 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12990 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12991 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12992 code out to ...
12993 (arm_netbsd_init_abi_common): ... here; new function.
12994 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12995 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12996 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12997 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12998
12999 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13000
13001 * arm-tdep.h (enum arm_abi): New enum.
13002 (struct gdbarch_tdep): New structure.
13003 (LOWEST_PC): Provide a default.
13004 (arm_gdbarch_register_os_abi): Declare new function.
13005 * arm-tdep.c (arm_abi_names): New array.
13006 (process_note_abi_tag_sections): New function.
13007 (get_elfosabi): New function.
13008 (arm_gdbarch_register_os_abi): New function.
13009 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13010 support for that ABI has been built in, then call the appropriate
13011 configuration routine. Use gdbarch_num_regs() to get the number
13012 of registers.
13013 (arm_dump_tdep): New function.
13014 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13015 place-holder functions.
13016 (_initialize_arm_tdep): Register them.
13017 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13018
13019 * armnbsd-tdep.c: New file.
13020 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13021 * config/arm/nbsd.mt (TDEPFILES): Add it.
13022 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13023
13024 * armnbsd-nat.c: Include regcache.h.
13025 * Makefile.in (armnbsd-nat.o): Update dependency list.
13026
13027 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13028
13029 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13030
13031 * gdbserver/Makefile.in: Fix typos in target rules.
13032
13033 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13034
13035 Fix part of PR gdb/267.
13036 * linespec.c (find_methods): Handle constructors specially for now.
13037
13038 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13039
13040 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13041 handling.
13042 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13043 standard_coerce_float_to_double().
13044
13045 2002-02-14 Christopher Faylor <cgf@redhat.com>
13046
13047 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13048 GDBINIT_FILENAME.
13049
13050 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13051
13052 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13053 find_variant_by_name, because it confuses the multiarch
13054 framework. Return NULL if there isn't an architecture with the
13055 user supplied name, instead of forcing a different one without
13056 recording the change with the multiarch machinery.
13057 (find_variant_by_name): Delete.
13058
13059 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13060
13061 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13062 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13063
13064 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13065
13066 * stack.c (print_frame_info_base): When calling
13067 print_frame_info_listing_hook, set current_source_symtab.
13068
13069 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13070
13071 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13072 and remove unused $(INCLUDE_DIR).
13073 Add regcache.c to OBS.
13074 Add generated register protocol files to clean target.
13075 Update dependencies for new objects, obsolete old target code.
13076
13077 * gdbserver/linux-low.c: Remove all platform-specific code to
13078 new files. Remove various dead code. Update to use regcache
13079 functionality.
13080 * gdbserver/remote-utils.c (fromhex): Add return statement
13081 to quiet warning.
13082 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13083 constant.
13084 (input_interrupt): Add integer parameter to match prototype
13085 of a signal handler.
13086 (outreg): Use register_data ().
13087 (prepare_resume_reply): Use gdbserver_expedite_regs.
13088 * gdbserver/server.c (main): Dynamically allocate own_buf because
13089 PBUFSIZ is no longer constant. Use registers_to_string () and
13090 registers_from_string ().
13091 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13092 for error (), fatal (), and warning (). Update definition of
13093 PBUFSIZ to use regcache functionality. Add include guard.
13094 * gdbserver/utils.c (fatal): Add missing ``const''.
13095 (warning): New function.
13096
13097 * regformats/regdat.sh: Include "regcache.h" in generated files.
13098 Provide init_registers () function.
13099 * regformats/regdef.h: Add prototype for set_register_cache ().
13100 Add include guard.
13101
13102 * gdbserver/linux-arm-low.c: New file.
13103 * gdbserver/linux-i386-low.c: New file.
13104 * gdbserver/linux-ia64-low.c: New file.
13105 * gdbserver/linux-m68k-low.c: New file.
13106 * gdbserver/linux-mips-low.c: New file.
13107 * gdbserver/linux-ppc-low.c: New file.
13108 * gdbserver/linux-sh-low.c: New file.
13109
13110 * gdbserver/regcache.c: New file.
13111 * gdbserver/regcache.h: New file.
13112
13113 * gdbserver/low-linux.c: Removed obsolete file.
13114
13115 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13116
13117 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13118 * config/i386/linux.mt: Likewise.
13119 * config/ia64/linux.mt: Likewise.
13120 * config/m68k/linux.mh: Likewise.
13121 * config/powerpc/linux.mh: Likewise.
13122 * config/mips/linux.mt: Likewise.
13123
13124 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13125
13126 * config/i386/i386lynx.mh: Mark gdbserver variables
13127 as (currently) obsolete for this target.
13128 * config/i386/nbsd.mt: Likewise.
13129 * config/i386/nbsdelf.mt: Likewise.
13130 * config/m32r/m32r.mt: Likewise.
13131 * config/m68k/m68klynx.mh: Likewise.
13132 * config/m68k/nbsd.mt: Likewise.
13133 * config/m68k/sun3os4.mh: Likewise.
13134 * config/mips/vr5000.mt: Likewise.
13135 * config/ns32k/nbsd.mt: Likewise.
13136 * config/pa/hppabsd.mh: Likewise.
13137 * config/pa/hppaosf.mh: Likewise.
13138 * config/powerpc/nbsd.mt: Likewise.
13139 * config/rs6000/rs6000lynx.mh: Likewise.
13140 * config/s390/s390.mt: Likewise.
13141 * config/s390/s390x.mt: Likewise.
13142 * config/sparc/sparclynx.mh: Likewise.
13143 * config/sparc/sun4os4.mh: Likewise.
13144 * config/i386/x86-64linux.mt: Likewise.
13145 * config/sparc/linux.mh: Likewise.
13146
13147 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13148
13149 * configure.tgt: Configure gdbserver only for known working
13150 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13151 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13152 SUBDIRS if it is configured. Update comment for ${nativefile}.
13153 * configure: Regenerated.
13154
13155 2002-02-13 Michael Snyder <msnyder@redhat.com>
13156
13157 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13158
13159 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13160 (default_gcore_mach): Just return 0, work around a problem in bfd.
13161 (default_gcore_target): OK to return NULL if exec_bfd is null.
13162 (make_mem_sec): Use a cast, avoid a warning.
13163
13164 * procfs.c (find_memory_regions_callback): Use a cast instead of
13165 calling host_pointer_to_address (which complains if
13166 sizeof (host pointer) != sizeof (target pointer)).
13167 (procfs_make_note_section): Avoid overflow in psargs string.
13168
13169 * procfs.c (procfs_make_note_section): Make the default
13170 implementation return an error.
13171
13172 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13173
13174 * procfs.c (procfs_make_note_section): Provide a default definition
13175 (for alpha-dec-osf4.0f). Fix typos.
13176
13177 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13178
13179 * linux-proc.c: Add include of regcache.h.
13180 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13181
13182 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13183
13184 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13185 * memattr.c (create_mem_region): Disallow useless empty region.
13186 Regions are half-open intervals, so allow [A..B) [B..C) as
13187 non-overlapping.
13188
13189 2002-02-13 Michael Chastain <mec@shout.net>
13190
13191 * defs.h: Kill CONST_PTR.
13192 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13193 * c-lang.c (c_builtin_types): Likewise.
13194 * ch-lang.c (ch_builtin_types): Likewise.
13195 * f-lang.c (f_builtin_types): Likewise.
13196 * language.c (unknown_builtin_types): Likewise.
13197 * m2-lang.c (m2_builtin_types): Likewise.
13198 * p-lang.c (pascal_builtin_types): Likewise.
13199 * scm-lang.c (c_builtin_types): Likewise.
13200
13201 2002-02-13 Keith Seitz <keiths@redhat.com>
13202
13203 * arm-tdep.h (arm_get_next_pc): Add declaration.
13204
13205 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13206
13207 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13208 with other related struct-returning functions.
13209 (arm_extract_struct_value_address): New function.
13210 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13211 initialize float_format, double_format and long_double_format as
13212 appropriate to the endianness of the target.
13213 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13214 (arm_use_struct_convention): Delete declaration.
13215 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13216
13217 2002-02-13 Keith Seitz <keiths@redhat.com>
13218
13219 * defs.h (core_addr_to_string_nz): New function.
13220
13221 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13222
13223 Apply missing bits of 2002-01-15 patch.
13224 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13225 (fill_fpregset): Use i387_fill_fsave.
13226
13227 2002-02-12 Keith Seitz <keiths@redhat.com>
13228
13229 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13230 (core_addr_to_string_nz): New function.
13231
13232 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13233
13234 * arm-linux-nat.c: Really include arm-tdep.h.
13235 * config/arm/tm-linux.h (struct type, struct value): Declare.
13236
13237 2002-02-11 Michael Snyder <msnyder@redhat.com>
13238
13239 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13240 (gcore section): Ifdef for Solaris and Unixware only.
13241 (procfs_do_thread_registers): Unixware needs one lwpstatus
13242 per thread (not one prstatus or pstatus).
13243 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13244 not over all gdb threads. For unixware, call elfcore_write_pstatus
13245 once before iterating over threads.
13246
13247 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13248
13249 * arm-tdep.h: New file.
13250 * arm-tdep.c: Include arm-tdep.h.
13251 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13252 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13253 (arm_print_float_info, arm_register_type, convert_to_extended)
13254 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13255 (arm_extract_return_value, arm_register_name): Make static.
13256 (arm_software_single_step): Similarly. Fix types in declaration.
13257 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13258 (arm_store_return_value, arm_store_struct_return): New functions.
13259 (arm_gdbarch_init): Register the above functions. Also register
13260 call_dummy_start_offset, sizeof_call_dummy_words,
13261 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13262 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13263 max_register_virtual_size, register_size. Set up
13264 prologue_cache.saved_regs here, rather than ...
13265 (_initialize_arm_tdep): ... here.
13266 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13267 declarations.
13268 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13269 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13270 (arm_print_float_info, arm_register_type, convert_to_extended)
13271 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13272 (arm_extract_return_value, arm_register_name): Delete declarations.
13273 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13274 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13275 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13276 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13277 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13278 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13279 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13280 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13281 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13282 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13283 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13284 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13285 interface.
13286 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13287 * remote-rdi.c remote-rdp.c: Likewise.
13288 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13289 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13290 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13291 definition.
13292
13293 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13294 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13295 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13296 from non-ARM_ prefixed definitions.
13297 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13298 all uses of above.
13299 * remote-rdi.c remote-rdp.c: Likewise.
13300 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13301
13302 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13303
13304 * arm-tdep.c (arm_frameless_function_invocation)
13305 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13306 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13307 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13308 (arm_pop_frame, arm_get_next_pc): Make static.
13309 (arm_gdbarch_init): Register above in gdbarch structure.
13310 (arm_read_fp): Renamed from arm_target_read_fp.
13311 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13312 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13313 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13314 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13315 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13316 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13317 (arm_pc_is_thumb_dummy): Delete declarations.
13318 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13319 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13320 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13321 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13322
13323 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13324
13325 * symtab.c (compare_search_syms): New function.
13326 (sort_search_symbols): New function.
13327 (search_symbols): Sort symbols after searching rather than
13328 before.
13329
13330 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13331
13332 * NEWS: Linux -> GNU/Linux.
13333
13334 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13335
13336 * gdbarch.sh: For for level one methods, disallow a definition
13337 when partially multi-arched. Add comments explaining rationale.
13338 * gdbarch.h: Re-generate.
13339
13340 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13341
13342 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13343 multi-arch partial.
13344
13345 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13346
13347 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13348 field. Use diff -u.
13349 * gdbarch.c: Re-generate.
13350
13351 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13352
13353 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13354 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13355 partial.
13356
13357 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13358
13359 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13360 multi-arch partial.
13361 (PUSH_ARGUMENTS): Switch to using predefault.
13362 * gdbarch.c: Regenerate.
13363
13364 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13365
13366 * valops.c (PUSH_ARGUMENTS): Delete definition.
13367 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13368 partial. Default to default_push_arguments.
13369 * gdbarch.h, gdbarch.c: Regenerate.
13370
13371 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13372
13373 * defs.h (throw_exception): Rename return_to_top_level. Update
13374 comments.
13375 * utils.c (error_stream, internal_verror, quit): Ditto.
13376 * top.c (throw_exception, catcher): Ditto.
13377 * sparclet-rom.c (sparclet_load): Ditto.
13378 * remote.c (interrupt_query, minitelnet): Ditto.
13379 * remote-sds.c (interrupt_query): Ditto.
13380 * remote-mips.c (mips_error, mips_kill): Ditto.
13381 * ocd.c (interrupt_query): Ditto.
13382 * monitor.c (monitor_interrupt_query): Ditto.
13383 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13384 * target.h: Update comment.
13385
13386 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13387
13388 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13389
13390 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13391 default_double_format.
13392 * gdbarch.h, gdbarch.c: Re-generate.
13393 * findvar.c (floatformat_unknown): Delete variable definition.
13394 * doublest.h (floatformat_unknown): Delete variable declaration.
13395
13396 2002-02-09 Jim Blandy <jimb@redhat.com>
13397
13398 * stabsread.c (read_type): Add code to parse Sun's syntax for
13399 prototyped function types.
13400
13401 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13402
13403 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13404 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13405
13406 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13407
13408 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13409 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13410 now _initialize_xcoffsolib gets called again and overrides the
13411 commands from solib.c in a native configuration.
13412
13413 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13414
13415 * doublest.c (store_typed_floating): Don't try to return a value.
13416 Fixes PR gdb/290.
13417
13418 2002-02-08 Jim Blandy <jimb@redhat.com>
13419
13420 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13421 is prototyped and has no arguments, print its argument list as
13422 `(void)'.
13423
13424 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13425
13426 * MAINTAINERS (write-after-approval): Add myself.
13427 (paper-trail): I've escaped!
13428
13429 2002-02-08 Christopher Faylor <cgf@redhat.com>
13430
13431 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13432 changes.
13433 (_initialize_check_for_gdb_ini): Ditto.
13434
13435 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13436
13437 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13438 xaprintf -> xasprintf.
13439
13440 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13441
13442 * win32-nat.c: Remove use of printf and sprintf functions.
13443
13444 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13445
13446 * arm-tdep.c (arm_frame_chain_valid): Make static.
13447 (arm_push_arguments): Likewise.
13448 (arm_gdbarch_init): New function.
13449 (_initialize_arm_tdep): Call it.
13450 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13451 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13452 (FRAME_CHAIN_VALID): Delete.
13453 (arm_frame_chain_valid): Delete declaration.
13454 (PUSH_ARGUMENTS): Delete.
13455 (arm_push_arguments): Delete declaration.
13456 (CALL_DUMMY_P): Delete.
13457
13458 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13459 Corinna Vinschen <vinschen@redhat.com>
13460
13461 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13462 on builtin float types.
13463
13464 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13465
13466 * utils.c: Include <curses.h> before "bfd.h".
13467 * tui/tui-hooks.c: Likewise.
13468 * tui/tui.c: Likewise.
13469 * tui/tuiCommand.c: Likewise.
13470 * tui/tuiData.c: Likewise.
13471 * tui/tuiDataWin.c: Likewise.
13472 * tui/tuiDisassem.c: Likewise.
13473 * tui/tuiGeneralWin.c: Likewise.
13474 * tui/tuiIO.c: Likewise.
13475 * tui/tuiLayout.c: Likewise.
13476 * tui/tuiRegs.c: Likewise.
13477 * tui/tuiSource.c: Likewise.
13478 * tui/tuiSourceWin.c: Likewise.
13479 * tui/tuiStack.c: Likewise.
13480 * tui/tuiWin.c: Likewise.
13481
13482 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13483
13484 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13485 to include space for pseudoregs as well. Update loops accordingly.
13486 (sh_fp_frame_init_saved_regs): Ditto.
13487 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13488
13489 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13490
13491 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13492 Add Richard Earnshaw to Arm maintainers.
13493
13494 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13495
13496 * defs.h (warning_begin): Delete declaration.
13497
13498 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13499 Delete macro.
13500
13501 2002-02-07 Michael Snyder <msnyder@redhat.com>
13502
13503 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13504 Logic bug, remove misplaced else.
13505
13506 2002-02-07 Klee Dienes <klee@apple.com>
13507
13508 * fork-inferior.c (fork_inferior): Add '!' to the list of
13509 characters that need to be quoted when building a string for the
13510 shell. Quote '!' specifically with a backslash, since CSH chokes
13511 when trying to evaluate "str!str".
13512
13513 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13514
13515 * rdi-share/host.h: Only provide a typedef for bool if it is not
13516 defined.
13517
13518 2002-02-04 Michael Snyder <msnyder@redhat.com>
13519
13520 * breakpoint.h (enum bptype): Add new overlay event bp type.
13521 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13522
13523 * breakpoint.c (create_internal_breakpoint): New function.
13524 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13525 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13526 (create_thread_event_breakpoint): Ditto.
13527 (create_solib_event_breakpoint): Ditto.
13528 (create_overlay_event_breakpoint): New function.
13529 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13530 (update_breakpoints_after_exec): Delete and re-initialize
13531 overlay event breakpoints after an exec. Add FIXME comment
13532 about longjmp breakpoint.
13533 (print_it_typical): Ignore overlay event breakpoints.
13534 (print_one_breakpoint): Ditto.
13535 (mention): Ditto.
13536 (bpstat_what): Do not stop for overlay event breakpoints.
13537 (delete_breakpoint): Don't delete overlay event breakpoints.
13538 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13539 (breakpoint_re_set): Re-create overlay event breakpoint.
13540
13541 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13542 (overlay_manual_command): Disable overlay breakpoints.
13543 (overlay_off_command): Disable overlay breakpoints.
13544
13545 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13546
13547 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13548 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13549 to here from config/tm-arm.h.
13550 (coff_sym_is_thumb): Make static.
13551 (arm_elf_make_msymbol_special): New function.
13552 (arm_coff_make_msymbol_special): New function.
13553 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13554 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13555 (coff_sym_is_thumb): Delete declaration.
13556 (arm_elf_make_msymbol_special): Declare.
13557 (arm_coff_make_msymbol_special): Declare.
13558 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13559 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13560
13561 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13562
13563 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13564
13565 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13566
13567 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13568 * gdbarch.c gdbarch.h: Regenerate.
13569 * arch-utils.c (default_print_float_info): New function.
13570 * arch-utils.h (default_print_float_info): Prototype it.
13571 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13572 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13573 (PRINT_FLOAT_INFO): Document it.
13574
13575 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13576 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13577 (PRINT_FLOAT_INFO): Define.
13578
13579 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13580
13581 * win32-nat.c (_initialize_check_for_gdb_ini):
13582 Add typecast to sprintf argument to suppress a warning.
13583
13584 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13585
13586 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13587 to allow easier handling of pass state.
13588 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13589 that gives exception name and address.
13590 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13591 and set last_sig value to ourstatus->value.sig. Some missing
13592 exceptions added.
13593 (child_continue): Correctly report continue_status.
13594 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13595 TARGET_SIGNAL_0 (new default value).
13596 (child_resume): consider sig argument passed to decide if
13597 the exception should be passed to debuggee or not.
13598
13599 2002-02-05 Michael Snyder <msnyder@redhat.com>
13600
13601 * regcache.c (fetch_register): Call target_fetch_register
13602 only if we don't call FETCH_PSEUDO_REGISTER.
13603 (store_register): Call target_store_register only if we
13604 don't call STORE_PSEUDO_REGISTER.
13605
13606 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13607
13608 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13609 ELF_MAKE_MSYMBOL_SPECIAL.
13610 * gdbarch.c, gdbarch.h: Regenerate.
13611 * arch-utils.c (default_make_msymbol_special): New function.
13612 * arch-utils.h (default_make_msymbol_special): Export.
13613 * elfread.c (elf_symtab_read): Compile use of
13614 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13615 multiarched.
13616 * coffread.c (coff_symtab_read): Ditto, for
13617 COFF_MAKE_MSYMBOL_SPECIAL.
13618
13619 2002-02-05 Jim Blandy <jimb@redhat.com>
13620
13621 * solib-svr4.c (svr4_truncate_ptr): New function.
13622 (svr4_relocate_section_addresses): Do the address arithmetic with
13623 the appropriate truncation for target addresses, even when
13624 CORE_ADDR is larger than a target address.
13625
13626 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13627
13628 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13629 to (int *).
13630
13631 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13632
13633 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13634 code.
13635
13636 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13637
13638 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13639
13640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13641
13642 * gdbserver/linux-low.c: Remove unused include files.
13643
13644 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13645
13646 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13647 (read_inferior_memory): Use it.
13648 (write_inferior_memory): Likewise.
13649
13650 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13651
13652 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13653 grubbing through sys_errlist.
13654
13655 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13656
13657 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13658
13659 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13660 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13661
13662 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13663
13664 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13665 (do_sfunc, set_cmd_sfunc): New functions.
13666
13667 * command.h (struct cmd_list_element): Add field func.
13668 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13669 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13670 * cli/cli-decode.h: Ditto.
13671
13672 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13673 (help_all, help_cmd_list): Ditto.
13674 (find_cmd, complete_on_cmdlist): Ditto.
13675 * top.c (execute_command): Ditto.
13676
13677 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13678 function.sfunc.
13679
13680 * infcmd.c (notice_args_read): Fix function signature.
13681
13682 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13683 * cli/cli-decode.c (add_set_cmd): Ditto.
13684 * utils.c (initialize_utils): Ditto.
13685 * maint.c (_initialize_maint_cmds): Ditto.
13686 * infrun.c (_initialize_infrun): Ditto.
13687 * demangle.c (_initialize_demangler): Ditto.
13688 * remote.c (add_packet_config_cmd): Ditto.
13689 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13690 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13691 * proc-api.c (_initialize_proc_api): Ditto.
13692 * kod.c (_initialize_kod): Ditto.
13693 * valprint.c (_initialize_valprint): Ditto.
13694 * top.c (init_main): Ditto.
13695 * infcmd.c (_initialize_infcmd): Ditto.
13696 * corefile.c (_initialize_core): Ditto.
13697 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13698 * arch-utils.c (initialize_current_architecture): Ditto.
13699 (_initialize_gdbarch_utils): Ditto.
13700 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13701
13702 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13703 * wince.c (_initialize_inftarg): Ditto.
13704 * symfile.c (_initialize_symfile): Ditto.
13705 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13706 * language.c (_initialize_language): Ditto.
13707 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13708
13709 2002-02-04 Michael Snyder <msnyder@redhat.com>
13710
13711 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13712
13713 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13714
13715 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13716 Add rules for building the register data files.
13717
13718 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13719
13720 * regformats/regdat.sh: Add braces to the definition of
13721 expedite_regs_${arch}.
13722
13723 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13724
13725 * regformats/regdef.h (struct reg): Add comment describing the
13726 requirements for offset and size fields.
13727
13728 2002-02-04 Andreas Schwab <schwab@suse.de>
13729
13730 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13731 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13732
13733 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13734
13735 * gdbarch.sh (copyright): Update years in generated header.
13736 (SMASH_TEXT_ADDRESS): Add rule.
13737 * gdbarch.h, gdbarch.c: Re-generate.
13738 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13739 * dbxread.c: Likewise.
13740 * dwarfread.c: Likewise.
13741 * elfread.c: Likewise.
13742 * somread.c: Likewise.
13743
13744 * arm-tdep.c (arm_smash_text_address): New function.
13745 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13746
13747 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13748
13749 Add support for hardware watchpoints on win32 native.
13750 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13751 CONTEXT_DEBUG_REGISTERS.
13752 (dr variable): New variable. Static array containing a local copy
13753 of debug registers.
13754 (debug_registers_changed): New variable. Reflects when debug registers
13755 are changed and need to be written to inferior.
13756 (debug_registers_used): New variable. Reflects when any debug register
13757 was set, used when new threads are created.
13758 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13759 i386-nat code.
13760 (thread_rec): Set dr array if id is the thread of current_event .
13761 (child_continue, child_resume): Change the debug registers for all
13762 threads if debug_registers_changed.
13763 (child_add_thread): Change the debug registers if debug_registers_used.
13764 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13765 Link nm.h to new nm-cygwin.h file.
13766 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13767 of hardware registers.
13768
13769 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13770
13771 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13772 Restore behavour broken by 2002-01-20 Andrew Cagney
13773 <ac131313@redhat.com> IEEE_FLOAT removal.
13774
13775 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13776
13777 * c-valprint.c (c_val_print): Pass a proper valaddr to
13778 cp_print_class_method.
13779 * valops.c (search_struct_method): If there is only one method
13780 and args is NULL, return that method.
13781
13782 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13785 accessing tag_name directly.
13786
13787 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13788
13789 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13790 of accessing tag_name directly.
13791
13792 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13793
13794 PR gdb/280
13795 * gdbtypes.c (replace_type): New function.
13796 * gdbtypes.h (replace_type): Add prototype.
13797 * stabsread.c (read_type): Use replace_type.
13798
13799 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13800
13801 * Makefile.in (memattr.o): Add missing dependencies rule.
13802
13803 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13804
13805 * breakpoint.c (break_at_finish_command): Really export.
13806 (break_at_finish_at_depth_command): Ditto.
13807 (tbreak_at_finish_command): Ditto.
13808 * hppa-tdep.c: Include completer.h.
13809 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13810 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13811
13812 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13813
13814 * utils.c (do_write): New function.
13815 (error_stream): Rewrite combining the code from error_begin and
13816 verror.
13817 (verror): Rewrite using error_stream.
13818 (error_begin): Delete function.
13819
13820 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13821
13822 * utils.c (error_begin): Make static.
13823 * defs.h (error_begin): Delete declaration.
13824
13825 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13826 (decode_line_1): Use cplusplus_error instead of error_begin,
13827 cplusplus_hint and return_to_top_level.
13828 * coffread.c (coff_symfile_read): Use error instead of error_begin
13829 and return_to_top_level.
13830 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13831
13832 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13833
13834 * language.h (type_error, range_error): Make string parameter
13835 constant.
13836 * language.c (warning_pre_print): Delete extern declaration.
13837 * dwarfread.c (warning_pre_print): Ditto.
13838 * language.c (type_error, range_error): Rewrite to use verror and
13839 vwarning instead of warning_begin.
13840
13841 2002-02-01 Michael Snyder <msnyder@redhat.com>
13842
13843 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13844 (set_ignore_count): Move misplaced comment back where it belongs.
13845
13846 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13847
13848 * command.h (NO_FUNCTION): Delete macro.
13849 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13850 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13851 * tracepoint.c (_initialize_tracepoint): Ditto.
13852 * cli/cli-decode.c (add_set_cmd): Ditto.
13853 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13854
13855 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13856
13857 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13858 Update ``this'' pointer when calling virtual functions.
13859
13860 2002-02-01 Michael Snyder <msnyder@redhat.com>
13861
13862 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13863 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13864
13865 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13866
13867 * regformats/reg-arm.dat: New file.
13868 * regformats/reg-i386.dat: New file.
13869 * regformats/reg-ia64.dat: New file.
13870 * regformats/reg-m68k.dat: New file.
13871 * regformats/reg-mips.dat: New file.
13872 * regformats/reg-ppc.dat: New file.
13873 * regformats/reg-sh.dat: New file.
13874 * regformats/regdef.h: New file.
13875 * regformats/regdat.sh: New file.
13876
13877 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13878
13879 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13880 (arm_frame_args_address, arm_frame_locals_address): New functions.
13881 (arm_frame_num_args): New function.
13882 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13883 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13884 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13885
13886 2002-01-31 Michael Snyder <msnyder@redhat.com>
13887
13888 * breakpoint.c (break_at_finish_command): Export.
13889 (break_at_finish_at_depth_command): Export.
13890 (tbreak_at_finish_command): Export.
13891 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13892 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13893 "txbreak" commands, which are HPPA specific.
13894
13895 * printcmd.c (disassemble_command): Remove an ancient
13896 artifact of an old merge.
13897
13898 * symfile.h (enum overlay_debugging_state):
13899 Define enum constant values for overlay mode.
13900 * symfile.c (overlay_debugging): Use enums instead of literals.
13901 (overlay_is_mapped, overlay_auto_command,
13902 overlay_manual_command): Ditto.
13903
13904 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13905 breakpoint_here_p, breakpoint_inserted_here_p,
13906 breakpoint_thread_match, bpstat_stop_status,
13907 describe_other_breakpoints, check_duplicates, clear_command):
13908 Coding standard fixes.
13909
13910 * target.c (target_xfer_memory): Add spaces, coding standard.
13911 (do_xfer_memory): Add missing line to trust-readonly
13912 code: check bfd SEC_READONLY flag for section.
13913
13914 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13915
13916 * PROBLEMS: Fix typo, 5.1->5.1.1.
13917
13918 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13919
13920 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13921 data symbols, since we search based on textlow and texthigh.
13922 (find_pc_sect_symtab): Likewise.
13923
13924 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13925
13926 * defs.h (vwarning): Declare.
13927 * utils.c (vwarning): New function.
13928 (warning): Call vwarning.
13929 (warning_begin): Delete function.
13930
13931 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13932 the warning message.
13933 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13934 warning_begin.
13935
13936 2002-01-30 Michael Snyder <msnyder@redhat.com>
13937
13938 * NEWS: Mention "set trust-readonly-sections" command.
13939 Mention generate-core-file command.
13940
13941 2002-01-15 Michael Snyder <msnyder@redhat.com>
13942
13943 * target.c: New command, "set trust-readonly-sections on".
13944 (do_xfer_memory): Honor the suggestion to trust readonly sections
13945 by reading them from the object file instead of from the target.
13946 (initialize_targets): Register command "set trust-readonly-sections".
13947
13948 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13949
13950 * parse.c (target_map_name_to_register): Simplify, search regs and
13951 pseudo-regs using a single loop.
13952
13953 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13954
13955 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13956
13957 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13958
13959 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13960 * config/i386/i386v42mp.mh: Add i387-nat.o .
13961 * i386v4-nat.c: Include i387-nat.h.
13962 (supply_fpregset): Use i387_supply_fsave.
13963 (fill_fpregset): Use i387_fill_fsave.
13964
13965 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13966
13967 * arm-tdep.c (arm_call_dummy_words): Define.
13968 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13969 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13970 (CALL_DUMMY_WORDS): Define.
13971 (arm_call_dummy_words): Declare.
13972 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13973 (arm_linux_call_dummy_words): Declare.
13974
13975 2002-01-30 Andreas Schwab <schwab@suse.de>
13976
13977 * m68klinux-nat.c: Fix last change to use regcache_collect
13978 instead of referencing registers[] directly.
13979
13980 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13981
13982 * parse.c (target_map_name_to_register): Delete code wrapped in
13983 #ifdef REGISTER_NAME_ALIAS_HOOK.
13984
13985 2002-01-28 Michael Snyder <msnyder@redhat.com>
13986
13987 * regcache.c (legacy_read_register_gen): Need to be able to
13988 read pseudo-register as well as real register.
13989 (legacy_write_register_gen): Ditto.
13990
13991 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13992
13993 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13994 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13995 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13996 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13997 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13998 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13999 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14000 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14001 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14002 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14003 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14004 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14005 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14006 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14007 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14008 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14009 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14010 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14011 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14012 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14013
14014 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14015
14016 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14017 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14018 (initialize_current_architecture): Update target_byte_order using
14019 information from BFD.
14020 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14021 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14022
14023 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14024
14025 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14026 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14027
14028 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14029 #ifdef INVALID_FLOAT.
14030 * infcmd.c (do_registers_info): Ditto.
14031 * values.c (unpack_double): Ditto. Add comment.
14032
14033 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14034 already commented out.
14035
14036 2002-01-26 Andreas Schwab <schwab@suse.de>
14037
14038 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14039 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14040 registers and add support for PTRACE_GETREGS.
14041
14042 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14043
14044 GDB 5.1.1 released from 5.1 branch.
14045 * NEWS: Add 5.1.1 news.
14046 * README: Sync with 5.1 branch.
14047
14048 2002-01-23 Fred Fish <fnf@redhat.com>
14049
14050 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14051 stabstring on initial malloc. Reallocing will copy it for us,
14052 if necessary.
14053
14054 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14055
14056 * Makefile.in (hpread_h): Delete.
14057 (HFILES_NO_SRCDIR): Remove hpread.h.
14058 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14059 (hpread.o): Update dependencies.
14060 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14061
14062 * hp-psymtab-read.c: Remove file.
14063 * hp-symtab-read.c: Remove file.
14064 * hpread.h: Remove file.
14065
14066 * hpread.c: Merge all contents of hp-psymtab-read.c,
14067 hp-symtab-read.c and hpread.h into this file, as it was prior to
14068 January 1999.
14069
14070 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14071 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14072 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14073 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14074
14075 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14076
14077 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14078 fill_gregset): Call gdbarch_tdep() just once, assign result to
14079 variable and use that, instead of calling the function several
14080 times.
14081
14082 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14083
14084 * configure.host: Accept sparcv9 as alias for sparc64.
14085 * configure.tgt: Likewise.
14086
14087 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14088
14089 * solib-aix5.c (build_so_list_from_mapfile)
14090 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14091 arguments is not reversed.
14092 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14093 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14094
14095 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14096
14097 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14098 modified version of obsolete sh_fetch_pseudo_register.
14099 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14100 (sh4_register_read): New function.
14101 (sh_pseudo_register_write): New function. Renamed and modified
14102 version of obsolete sh_store_pseudo_register.
14103 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14104 (sh4_register_write): New function.
14105 (sh_gdbarch_init): Remove setting of gdbarch function
14106 fetch_pseudo_register and store_pseudo_register. Remove setting of
14107 register_convert_to_raw, register_convert_to_virtual,
14108 register_convertible.
14109 (sh_sh4_register_convertible): Delete. No longer needed. All is
14110 taken care by architecture specific functions
14111 register_read/register_write.
14112 (sh_sh4_register_convert_to_virtual): Make static.
14113 (sh_sh4_register_convert_to_raw): Ditto.
14114
14115 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14116
14117 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14118 (floatformat_is_nan, floatformat_mantissa): Ditto.
14119
14120 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14121 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14122 builtin_type_ieee_double_little,
14123 builtin_type_ieee_double_littlebyte_bigword,
14124 builtin_type_m68881_ext, builtin_type_i960_ext,
14125 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14126 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14127 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14128 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14129
14130 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14131
14132 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14133 parameter. Set frameless flag if it exists and depended of
14134 whether the scanned function is frameless or not.
14135 (xstormy16_skip_prologue): If function is frameless, return
14136 result of xstormy16_scan_prologue().
14137 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14138 call.
14139
14140 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14141
14142 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14143 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14144 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14145 sh_sh4_register_byte, sh_sh4_register_raw_size,
14146 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14147 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14148 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14149 sh_store_pseudo_register, sh_do_pseudo_register): Call
14150 gdbarch_tdep() just once, assign result to variable and use that,
14151 instead of calling the function several times.
14152
14153 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14154
14155 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14156 macros instead of LAST_FPU_CTRL_REGNUM.
14157 (store_register): Likewise.
14158
14159 2002-01-21 Jim Blandy <jimb@redhat.com>
14160
14161 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14162 is up-to-date before running the program, not just when a program
14163 exits.
14164
14165 2002-01-21 Fred Fish <fnf@redhat.com>
14166
14167 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14168 when we have found all instructions we are looking for.
14169
14170 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14171
14172 * arm-tdep.c (arm_register_name): New function.
14173 (arm_registers_names): Make static.
14174 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14175 (arm_register_name): Declare.
14176 (REGISTER_NAME): Use it.
14177
14178 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14179 Kevin Buettner <kevinb@redhat.com>
14180
14181 Convert arm targets to new FRAME interface.
14182 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14183 (arm_frame_find_save_regs): Delete.
14184 (arm_frame_init_saved_regs): New.
14185 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14186 Allocate extra_info as required. Convert all uses of fsr.regs
14187 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14188 to use extra_info.
14189 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14190 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14191 (check_prologue_cache, save_prologue_cache): Likewise.
14192 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14193 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14194 (FRAME_FIND_SAVED_REGS): Delete.
14195 (arm_frame_find_saved_regs): Delete prototype.
14196 (arm_frame_init_saved_regs): New prototype.
14197 (FRAME_INIT_SAVED_REGS): Define.
14198
14199 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14200
14201 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14202
14203 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14204
14205 From Jeff Law <law@redhat.com>:
14206 * infttrace.c: Include <sys/pstat.h>.
14207 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14208 exec file if the ttrace equivalent fails.
14209
14210 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14211
14212 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14213 (closeLogFile): Ditto.
14214
14215 2002-01-20 Michael Chastain <mec@shout.net>
14216
14217 * top.c (print_gdb_version): Bump copyright year to 2002.
14218
14219 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14220
14221 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14222 Zannoni and Eli Zaretskii.
14223
14224 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14225
14226 * buildsym.c: Update copyright years.
14227 * c-typeprint.c: Likewise.
14228 * dwarf2read.c: Likewise.
14229 * f-typeprint.c: Likewise.
14230 * gdbtypes.c: Likewise.
14231 * gdbtypes.h: Likewise.
14232 * hp-symtab-read.c: Likewise.
14233 * hpread.c: Likewise.
14234 * mdebugread.c: Likewise.
14235 * p-typeprint.c: Likewise.
14236
14237 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14238
14239 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14240 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14241 byte-order selectable.
14242 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14243 * arch-utils.c: Ditto.
14244 (set_endian): Ditto.
14245 (set_endian_from_file): Ditto.
14246 * gdbserver/low-sim.c (create_inferior): Ditto.
14247 * gdbarch.sh: Ditto.
14248 * gdbarch.h: Re-generate.
14249 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14250 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14251 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14252 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14253 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14254 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14255 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14256 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14257 macro definition.
14258 * config/mips/tm-wince.h: Remove #undef of macro
14259 TARGET_BYTE_ORDER_SELECTABLE.
14260 * config/sh/tm-wince.h: Ditto.
14261
14262 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14263
14264 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14265 member function fields. Add accessor macro
14266 TYPE_FN_FIELD_ARTIFICIAL.
14267 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14268 * c-typeprint.c (c_type_print_base): Skip artificial member
14269 functions.
14270
14271 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14272
14273 * f-typeprint.c: Delete unused function f_type_print_args.
14274 * p-typeprint.c: Delete unused function pascal_type_print_args.
14275
14276 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14277
14278 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14279 comment. Add ``artificial'' to ``union field_location''.
14280
14281 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14282
14283 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14284 * mdebugread.c (parse_symbol): Likewise.
14285 * stabsread.c (define_symbol): Likewise.
14286 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14287 initializing TYPE_FIELD_BITPOS to n (obsolete).
14288 (hpread_doc_function_type): Likewise.
14289 * hpread.c (hpread_function_type): Likewise.
14290
14291 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14292
14293 * configure.in (host_makefile_frag): Only require a host makefile
14294 fragment when a native build.
14295 * configure: Re-generate.
14296
14297 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14298
14299 * doublest.h (floatformat_from_type): Declare.
14300 * doublest.c (floatformat_from_type): New function.
14301 (convert_typed_floating): Use.
14302
14303 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14304 call to function floatformat_from_type.
14305
14306 * gdbarch.sh (IEEE_FLOAT): Delete.
14307 * gdbarch.h, gdbarch.c: Re-generate.
14308 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14309 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14310 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14311 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14312 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14313 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14314 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14315 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14316 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14317 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14318 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14319 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14320
14321 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14322 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14323 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14324 * sh-tdep.c (sh_gdbarch_init): Ditto.
14325 * mips-tdep.c (mips_gdbarch_init): Ditto.
14326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14327 * cris-tdep.c (cris_gdbarch_init): Ditto.
14328
14329 2002-01-20 Jiri Smid <smid@suse.cz>
14330
14331 * configure.host, configure.tgt: Support x86-64.
14332 * NEWS: Note new target x86-64.
14333
14334 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14335 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14336 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14337 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14338 x86-64-linux-nat.o): Fix dependencies.
14339
14340 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14341
14342 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14343 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14344 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14345 * config/sparc/xm-sun4os4.h: Delete file.
14346 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14347
14348 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14349
14350 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14351 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14352 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14353 * config/i386/i386lynx.mh (XM_FILE): Delete.
14354 * config/rs6000/xm-rs6000ly.h: Delete file.
14355 * config/sparc/xm-sparclynx.h: Delete file.
14356 * config/m68k/xm-m68klynx.h: Delete file.
14357 * config/i386/xm-i386lynx.h: Delete file.
14358 * config/xm-lynx.h: Delete file.
14359 * config/djgpp/fnchange.lst: Update.
14360
14361 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14362
14363 * alpha-tdep.c (alpha_register_byte): New function.
14364 (alpha_register_raw_size): Ditto.
14365 (alpha_register_virtual_size): Ditto.
14366 (alpha_skip_prologue_internal): Renamed from
14367 alpha_skip_prologue.
14368 (alpha_skip_prologue): New version that calls
14369 alpha_skip_prologue_internal.
14370 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14371 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14372 second argument from alpha_skip_prologue.
14373 (REGISTER_BYTE): Use alpha_register_byte.
14374 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14375 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14376 (FRAMELESS_FUNCTION_INVOCATION): Use
14377 generic_frameless_function_invocation_not.
14378 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14379 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14380
14381 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14382
14383 * config/mips/xm-news-mips.h: Delete file.
14384 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14385
14386 * config/m88k/xm-m88k.h: Delete file.
14387 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14388 * config/m88k/xm-delta88v4.h: Ditto.
14389 * config/m88k/xm-delta88.h: Ditto.
14390
14391 * config/alpha/xm-fbsd.h: Delete file.
14392 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14393
14394 * config/sparc/xm-sparc.h: Delete file.
14395 * Makefile.in (xm-sun4os4.h): Delete dependency.
14396 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14397 * config/sparc/xm-sun4os4.h: Ditto.
14398 * config/sparc/xm-linux.h: Ditto.
14399
14400 * config/i386/xm-windows.h: Delete file.
14401
14402 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14403
14404 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14405 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14406
14407 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14408
14409 * alpha-tdep.c (alpha_call_dummy_words): New.
14410 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14411 (CALL_DUMMY_P): Define.
14412 (CALL_DUMMY_WORDS): Define.
14413 (SIZEOF_CALL_DUMMY_WORDS): Define.
14414
14415 2002-01-19 Per Bothner <per@bothner.com>
14416
14417 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14418 isn't NULL, which can happen with some gcj-3.x-produced code.
14419
14420 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14421
14422 * alpha-tdep.c (alpha_register_virtual_type): New function.
14423 (alpha_init_frame_pc_first): Ditto.
14424 (alpha_fix_call_dummy): Ditto.
14425 (alpha_store_struct_return): Ditto.
14426 (alpha_extract_struct_value_address): Ditto.
14427 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14428 alpha_register_virtual_type.
14429 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14430 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14431 alpha_extract_struct_value_address.
14432 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14433 (INIT_FRAME_PC): Use init_frame_pc_noop.
14434 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14435
14436 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14437
14438 * i386gnu-nat.c: Include "i386-tdep.h".
14439 (fetch_fpregs): Simplify code dealing with uninitialized floating
14440 point states such that it doesn't require FP7_REGNUM.
14441
14442 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14443
14444 * alpha-tdep.c (frame_extra_info): New.
14445 (alpha_find_saved_regs): Make static. Use
14446 frame->extra_info.
14447 (alpha_frame_init_saved_regs): New function.
14448 (alpha_frame_saved_pc): Use frame->extra_info.
14449 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14450 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14451 (init_extra_frame_info): Rename to...
14452 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14453 (alpha_print_extra_frame_info): New function.
14454 (alpha_frame_locals_address): Ditto.
14455 (alpha_frame_args_address): Ditto.
14456 (alpha_pop_frame): Use frame->extra_info.
14457 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14458 alpha_frame_args_address.
14459 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14460 (alpha_find_saved_regs): Remove prototype.
14461 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14462 (EXTRA_FRAME_INFO): Remove.
14463 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14464 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14465
14466 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14467
14468 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14469 (alpha_cannot_fetch_register): Ditto.
14470 (alpha_cannot_store_register): Ditto.
14471 (alpha_register_convertible): Ditto.
14472 (alpha_use_struct_convention): Ditto.
14473 * config/alpha/tm-alpha.h: Update copyright years.
14474 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14475 (INNER_THAN): Use core_addr_lessthan.
14476 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14477 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14478 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14479 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14480 (FRAME_CHAIN): Remove unnecessary cast.
14481
14482 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14483
14484 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14485 obsolete.
14486
14487 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14488
14489 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14490 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14491 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14492 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14493 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14494 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14495 * x86-64-linux-nat.c: Ditto.
14496
14497 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14498
14499 * alpha-tdep.c (alpha_register_name): New function.
14500 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14501 (REGISTER_NAME): Define.
14502
14503 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14504
14505 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14506
14507 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14508
14509 * alpha-tdep.c: Update copyright years.
14510 (alpha_next_pc): New function.
14511 (alpha_software_single_step): Ditto.
14512 * config/alpha/tm-alpha.h: Add prototype for
14513 alpha_software_single_step.
14514
14515 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14516
14517 * alphabsd-nat.c: Update copyright years.
14518 (fill_gregset): Use regcache_collect.
14519 (fill_fpregset): Likewise.
14520 (fetch_inferior_registers): Only fetch integer registers
14521 if requested to do so.
14522 (store_inferior_registers): Only store integer registers
14523 if requested to do so.
14524
14525 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14526
14527 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14528 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14529 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14530 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14531 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14532 * config/arm/linux.mh (XDEPFILES): Delete.
14533 * config/arm/nbsd.mh (XDEPFILES): Delete.
14534 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14535 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14536 * config/i386/i386m3.mh (XDEPFILES): Delete.
14537 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14538 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14539 * config/i386/fbsd.mh (XDEPFILES): Delete.
14540 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14541 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14542 * config/i386/i386v4.mh (XDEPFILES): Delete.
14543 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14544 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14545 * config/i386/i386aix.mh (XDEPFILES): Delete.
14546 * config/i386/go32.mh (XDEPFILES): Delete.
14547 * config/i386/cygwin.mh (XDEPFILES): Delete.
14548 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14549 * config/i386/i386mach.mh (XDEPFILES): Delete.
14550 * config/i386/i386v32.mh (XDEPFILES): Delete.
14551 * config/i386/linux.mh (XDEPFILES): Delete.
14552 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14553 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14554 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14555 * config/i386/i386sco.mh (XDEPFILES): Delete.
14556 * config/i386/i386v.mh (XDEPFILES): Delete.
14557 * config/i386/nbsd.mh (XDEPFILES): Delete.
14558 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14559 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14560 * config/i386/symmetry.mh (XDEPFILES): Delete.
14561 * config/i386/obsd.mh (XDEPFILES): Delete.
14562 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14563 * config/ia64/linux.mh (XDEPFILES): Delete.
14564 * config/ia64/aix.mh (XDEPFILES): Delete.
14565 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14566 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14567 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14568 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14569 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14570 * config/m68k/linux.mh (XDEPFILES): Delete.
14571 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14572 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14573 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14574 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14575 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14576 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14577 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14578 * config/m88k/delta88.mh (XDEPFILES): Delete.
14579 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14580 * config/m88k/m88k.mh (XDEPFILES): Delete.
14581 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14582 * config/mips/linux.mh (XDEPFILES): Delete.
14583 * config/mips/irix6.mh (XDEPFILES): Delete.
14584 * config/mips/irix5.mh (XDEPFILES): Delete.
14585 * config/mips/irix4.mh (XDEPFILES): Delete.
14586 * config/mips/irix3.mh (XDEPFILES): Delete.
14587 * config/mips/decstation.mh (XDEPFILES): Delete.
14588 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14589 (NATDEPFILES): Move core-aout.o to here.
14590 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14591 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14592 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14593 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14594 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14595 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14596 * config/pa/hpux11.mh (XDEPFILES): Delete.
14597 * config/powerpc/aix.mh (XDEPFILES): Delete.
14598 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14599 * config/powerpc/linux.mh (XDEPFILES): Delete.
14600 * config/romp/rtbsd.mh: Rename XDEPFILES.
14601 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14602 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14603 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14604 * config/s390/s390.mh (XDEPFILES): Delete.
14605 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14606 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14607 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14608 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14609 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14610 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14611 * config/sparc/linux.mh (XDEPFILES): Delete.
14612 * config/vax/vaxult.mh (XDEPFILES): Delete.
14613 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14614 * Makefile.in (DEPFILES): Remove XDEPFILES.
14615
14616 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14617
14618 * utils.c (internal_verror): Fix comments, default is yes not no.
14619 Update queries to match. Default to quit and dump core.
14620
14621 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14622
14623 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14624 copyright.
14625 * defs.h, event-top.c, gdbcmd.h: Ditto.
14626 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14627 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14628 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14629 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14630 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14631 * mi/mi-main.c:Ditto.
14632
14633 * stack.c, symfile.c: Update copyright.
14634
14635 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14636
14637 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14638 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14639 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14640 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14641
14642 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14643
14644 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14645 * gdbserver/low-lynx.c (myattach): Likewise.
14646 * gdbserver/low-nbsd.c (myattach): Likewise.
14647 * gdbserver/low-sim.c (myattach): Likewise.
14648 * gdbserver/low-sparc.c (myattach): Likewise.
14649 * gdbserver/low-sun3.c (myattach): Likewise.
14650
14651 * gdbserver/low-linux.c (myattach): New function.
14652
14653 * gdbserver/server.c (attach_inferior): New function.
14654 (main): Handle "--attach".
14655
14656 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14657
14658 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14659 maintainer.
14660
14661 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14662
14663 * c-typeprint.c (is_type_conversion_operator): Add additional
14664 check for non-conversion operators.
14665
14666 2002-01-15 Michael Snyder <msnyder@redhat.com>
14667
14668 * linux-proc.c: Add "info proc" command, a la procfs.c.
14669 (read_mapping): New function, abstract and re-use code.
14670 (linux_find_memory_regions): Use new func read_mapping.
14671 (linux_info_proc_cmd): New function, implement "info proc".
14672 (_initialize_linux_proc): Add new command "info proc".
14673
14674 2002-01-15 Michael Snyder <msnyder@redhat.com>
14675
14676 * symfile.c (generic_load): Use bfd_map_over_sections method
14677 instead of manipulating bfd structure members directly.
14678 (add_section_size_callback): New function, bfd sections callback
14679 used by generic_load.
14680 (load_sections_callback): New function, bfd sections callback
14681 used by generic_load.
14682
14683 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14684
14685 [Based on work by Jim Blandy]
14686 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14687 (builtin_type_vec128): Export.
14688 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14689 types.
14690 (builtin_type_vec128): New builtin type for 128 bit vector
14691 registers.
14692 (build_gdbtypes): Initialize builtin_type_v16qi and
14693 builtin_type_v8hi. Create the vec128 register builtin type
14694 structure.
14695 (build_builtin_type_vec128): New function.
14696 (_initialize_gdbtypes): Register builtin_type_v16qi and
14697 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14698 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14699 AltiVec register to new builtin type.
14700
14701 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14702
14703 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14704 to make_cv_type.
14705
14706 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14707
14708 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14709 CLEAN_UP_REGISTER_VALUE.
14710 * regcache.c (supply_register): Update only call.
14711
14712 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14713
14714 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14715 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14716 a29k-*-vxworks* targets as obsolete.
14717
14718 2002-01-14 Michael Snyder <msnyder@redhat.com>
14719
14720 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14721 until we can resolve portability issues.
14722 * gregset.h: Remove references to fpxregs.
14723 * gcore.c (gcore_command): Initialize note_sec to NULL.
14724
14725 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14726
14727 * signals.c (target_signal_to_name): Rewrite. Only use
14728 signals[].name when in bounds and non-NULL.
14729
14730 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14731
14732 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14733 * signals.c (target_signal_to_name): Verify that SIG is within the
14734 bounds of the signals array.
14735
14736 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14737
14738 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14739
14740 2002-01-13 Keith Seitz <keiths@redhat.com>
14741
14742 * stack.c (print_frame_info_base): Print the frame's pc
14743 only if when print_frame_info_listing_hook is not defined.
14744
14745 2002-01-13 Keith Seitz <keiths@redhat.com>
14746
14747 * varobj.c (varobj_set_value): Make sure that there were no
14748 errors evaluating the object before attempting to set its
14749 value.
14750 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14751 so this offset adjustment is no longer necessary.
14752 (create_child): Don't set the error flag if the child is
14753 a CPLUS_FAKE_CHILD.
14754 (value_of_child): If value_fetch_lazy fails, return NULL
14755 so that callers will be notified that an error occurred.
14756 (c_value_of_variable): Delay check of variable's validity
14757 until later. We actually want all structs and unions to have
14758 the value "{...}".
14759 Do not return "???" for variables which could not be evaluated.
14760 This error condition must be returned to the caller so that it
14761 can get the error condition from gdb.
14762 (cplus_name_of_child): Adjust index for vptr before figuring
14763 out the name of the child.
14764 (cplus_value_of_child): If a child's (real) parent is not valid,
14765 don't even bother trying to give a value for it. Just return
14766 an error. Change all instances in this function.
14767 (cplus_type_of_child): If our parent is one of the "fake"
14768 parents, we need to get at the type of the real parent, and
14769 derive the child's true type using this information.
14770
14771 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14772
14773 From 2002-01-09 John Marshall <johnm@falch.net>:
14774 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14775 sources.redhat.com, and tweak some related URLs which had
14776 suffered from linkrot.
14777
14778 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14779
14780 From Jeff law:
14781 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14782 structures passed in registers.
14783
14784 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14785
14786 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14787 white space which prevented compilation. Reported by DSK
14788 <dsk@student.unsw.edu.au>.
14789
14790 2002-01-11 Michael Snyder <msnyder@redhat.com>
14791
14792 * symfile.c (build_section_addr_info_from_section_tab):
14793 Use bfd access method instead of manipulating bfd directly.
14794 (syms_from_objfile): Ditto.
14795 (simple_overlay_update_1): Ditto.
14796 (simple_overlay_update): Ditto.
14797 (generic_load): Ditto.
14798 (overlay_unmapped_address): FIXME comment, bfd access methods.
14799 (sections_overlap): FIXME comment, bfd access methods.
14800 (pc_in_mapped_range): FIXME comment, bfd access methods.
14801 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14802 (section_is_mapped): FIXME comment, bfd access methods.
14803 (section_is_overlay): FIXME comment, bfd access methods.
14804
14805 * symfile.c (generic_load): Whitespace and long line cleanups.
14806 Remove duplicate variable, change several local variables to
14807 more appropriate data types.
14808 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14809
14810 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14811
14812 From Peter Schauer:
14813 * language.c (longest_local_hex_string_custom): Use phex_nz to
14814 convert NUM to a hex string.
14815
14816 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14817
14818 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14819 the function.
14820 Update Copyright year.
14821
14822 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14823
14824 * language.c (longest_raw_hex_string): Delete unused function.
14825
14826 2002-01-11 Petr Sorfa <petrs@caldera.com>
14827
14828 * MAINTAINERS (write-after-approval): Add myself.
14829 * dwarf2read.c (read_tag_string_type): Handling of
14830 DW_AT_byte_size.
14831 (read_tag_string_type): FORTRAN fix to prevent propagation of
14832 first string size.
14833 (set_cu_language): Handling of DW_LANG_Fortran95
14834
14835 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14836
14837 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14838 GETPID(inferior_ptid).
14839 (store_inferior_registers): Likewise.
14840
14841 2002-01-10 Jason Merrill <jason@redhat.com>
14842
14843 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14844 Fix DW_OP_minus.
14845
14846 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14847
14848 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14849 and bfd/elf32-sh-nbsd.c.
14850
14851 2002-01-10 Michael Snyder <msnyder@redhat.com>
14852
14853 * NEWS: Mention --pid and corefile/proc-id behavior change.
14854
14855 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14856 * gcore.c: Include cli/cli-decode.h instead of command.h.
14857
14858 * main.c (captured_main): Add new command line option "--pid".
14859 If the second command line argument (following the symbol-file)
14860 begins with a digit, try to attach to it before trying to open
14861 it as a corefile.
14862 (print_gdb_help): Document the "--pid" argument.
14863
14864 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14865
14866 * completer.c (command_completer): New function.
14867
14868 * completer.h <command_completer>: Add prototype.
14869
14870 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14871 completer for the "help" command.
14872
14873 2002-01-09 Jason Merrill <jason@redhat.com>
14874
14875 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14876
14877 2002-01-09 Michael Snyder <msnyder@redhat.com>
14878
14879 * i386-linux-nat.c (fill_fpxregset): Make global.
14880 (store_fpxregset): Ditto.
14881
14882 * gregset.h (gdb_fpxregset_t): Define.
14883 (supply_fpxregset): Prototype.
14884 (fill_fpxregset): Prototype.
14885
14886 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14887
14888 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14889
14890 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14891 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14892 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14893
14894 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14895
14896 * MAINTAINERS: Update target maintainer rules so that any
14897 Maintainer can approve a tested patch for a maintenance-only
14898 target.
14899
14900 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14901
14902 * MAINTAINERS (write-after-approval): Add myself.
14903
14904 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14905 IN_SIGTRAMP.
14906
14907 2002-01-08 Michael Snyder <msnyder@redhat.com>
14908
14909 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14910 real name of the executable, rather than the /proc name.
14911
14912 2002-01-03 Michael Snyder <msnyder@redhat.com>
14913
14914 Implement a "generate-core-file" command in gdb, save target state.
14915 * gcore.c: New file. Implement new command 'generate-core-file'.
14916 Save a corefile image of the current state of the inferior.
14917 * linux-proc.c: Add linux-specific code for saving corefiles.
14918 * target.h (struct target_ops): Add new target vectors for saving
14919 corefiles; to_find_memory_regions and to_make_corefile_notes.
14920 (target_find_memory_regions): New macro.
14921 (target_make_corefile_notes): New macro.
14922 * target.c (update_current_target): Inherit new target methods.
14923 (dummy_find_memory_regions): New place-holder method.
14924 (dummy_make_corefile_notes): New place-holder method.
14925 (init_dummy_target): Initialize new dummy target vectors.
14926 * exec.c (exec_set_find_memory_regions): New function.
14927 Allow the exec_ops vector for memory regions to be taken over.
14928 (exec_make_note_section): New function, target vector method.
14929 * defs.h (exec_set_find_memory_regions): Export prototype.
14930 * procfs.c (proc_find_memory_regions): New function, corefile method.
14931 (procfs_make_note_section): New function, corefile method.
14932 (init_procfs_ops): Set new target vector pointers.
14933 (find_memory_regions_callback): New function.
14934 (procfs_do_thread_registers): New function.
14935 (procfs_corefile_thread_callback): New function.
14936 * sol-thread.c (sol_find_memory_regions): New function.
14937 (sol_make_note_section): New function.
14938 (init_sol_thread_ops): Initialize new target vectors.
14939 * inftarg.c (inftarg_set_find_memory_regions): New function.
14940 Allow to_find_memory_regions vector to be taken over.
14941 (inftarg_set_make_corefile_notes): New function.
14942 Allow to_make_corefile_notes vector to be taken over.
14943 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14944 interface layer if not target_has_execution (may be a corefile).
14945 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14946 * config/sparc/sun4sol2.mh: Ditto.
14947 * config/alpha/alpha-linux.mh: Ditto.
14948 * config/arm/linux.mh: Ditto.
14949 * config/i386/x86-64linux.mh: Ditto.
14950 * config/ia64/linux.mh: Ditto.
14951 * config/m68k/linux.mh: Ditto.
14952 * config/mips/linux.mh: Ditto.
14953 * config/powerpc/linux.mh: Ditto.
14954 * config/sparc/linux.mh: Ditto.
14955
14956 2002-01-07 Michael Snyder <msnyder@redhat.com>
14957
14958 * arm-linux-nat.c: Remove references to regcache.c internal data
14959 (registers[] and register_valid[]).
14960
14961 2002-01-07 Michael Snyder <msnyder@redhat.com>
14962
14963 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14964 so that attaching to a pid will automatically read the process's
14965 symbol file and shlibs.
14966 * Makefile.in: Add rule for linux-proc.o.
14967 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14968 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14969 * config/arm/linux.mh: Ditto.
14970 * config/i386/linux.mh: Ditto.
14971 * config/i386/x86-64linux.mh: Ditto.
14972 * config/ia64/linux.mh: Ditto.
14973 * config/m68k/linux.mh: Ditto.
14974 * config/mips/linux.mh: Ditto.
14975 * config/powerpc/linux.mh: Ditto.
14976 * config/sparc/linux.mh: Ditto.
14977
14978 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14979
14980 * win32-nat.c: Add i386-tdep.h dependency.
14981
14982 2002-01-07 Michael Snyder <msnyder@redhat.com>
14983
14984 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14985 instead of bfd_get_arch_size. Don't bail out just because
14986 there's no exec_bfd.
14987
14988 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14989 * p-valprint.c (pascal_object_print_value): Ditto.
14990 * somread.c (som_symtab_read): Ditto.
14991 * symfile.c (simple_free_overlay_region_table): Ditto.
14992 * valops.c (value_assign): Ditto.
14993
14994 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14995 use tilde_expand and strerror for opening save-tracepoints file.
14996
14997 * thread-db.c (thread_db_new_objfile): Indendation fix.
14998
14999 * infptrace.c (GDB_MAX_ALLOCA): New define.
15000 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15001 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15002 can be overridden with whatever value is appropriate to the host).
15003 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15004 alloca to allocate potentially large buffer.
15005 * rs6000-nat.c (child_xfer_memory): Ditto.
15006 * symm-nat.c (child_xfer_memory): Ditto.
15007 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15008
15009 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15010
15011 From Nick Clifton <nickc@redhat.com>
15012 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15013
15014 2002-01-07 Michael Snyder <msnyder@redhat.com>
15015
15016 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15017 Don't use exec_bfd if it's NULL.
15018
15019 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15020
15021 * valops.c (value_arg_coerce): Fix formatting.
15022
15023 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15024
15025 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15026 * gnu-nat.c: Ditto.
15027
15028 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15029
15030 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15031 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15032 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15033 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15034 z8k-coff have not been multi-arched. Update z8k-coff build
15035 status.
15036
15037 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15038
15039 * MAINTAINERS: Mark a29k target as obsolete.
15040 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15041 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15042 comments.
15043 * NEWS: Note that a29k targets are obsolete.
15044 * a29k-tdep.c: Mark as obsolete.
15045 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15046 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15047 a29k-*-vxworks* targets as obsolete.
15048 * remote-adapt.c: Obsolete.
15049 * remote-eb.c: Obsolete.
15050 * remote-mm.c: Obsolete.
15051 * remote-udi.c: Obsolete.
15052 * config/a29k/a29k-udi.mt: Obsolete.
15053 * config/a29k/a29k.mt: Obsolete.
15054 * config/a29k/tm-a29k.h: Obsolete.
15055 * config/a29k/tm-vx29k.h: Obsolete.
15056 * config/a29k/vx29k.mt: Obsolete.
15057
15058 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15059
15060 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15061 with BFD_ENDIAN_BIG.
15062
15063 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15064
15065 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15066 * configure, config.in: Re-generate.
15067 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15068 * defs.h: Do not include <endian.h>.
15069
15070 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15071
15072 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15073 * config.in: Regenerate.
15074 * configure.in: Update copyright years.
15075 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15076 * configure: Regenerate.
15077 * i386bsd-nat.c: Update copyright years.
15078 (fill_gregset): Use regcache_collect.
15079 (fetch_inferior_registers): Only fetch integer registers
15080 if requested to do so. Add support for XMM registers
15081 using PT_GETXMMREGS.
15082 (store_inferior_registers): Only store integer registers
15083 if requested to do so. Add support for XMM registers
15084 using PT_SETXMMREGS.
15085 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15086 (store_inferior_registers): Remove.
15087 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15088 (fetch_elfcore_registers): New function.
15089 (i386nbsd_elfcore_fns): New.
15090 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15091 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15092 i386bsd-nat.o.
15093 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15094 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15095 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15096 * config/i386/tm-nbsd.h: Update copyright years.
15097 (HAVE_SSE_REGS): Define.
15098 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15099 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15100 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15101 (SIGCONTEXT_PC_OFFSET): Remove.
15102 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15103
15104 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15105
15106 * configure.tgt: Remove powerpc-*-macos* target.
15107 * config/m68k/xm-mpw.h: Delete file.
15108 * config/xm-mpw.h: Delete file.
15109 * ser-mac.c: Delete file.
15110 * mpw-make.sed: Delete file.
15111 * mpw-config.in: Delete file.
15112 * mac-xdep.c: Delete file.
15113 * mac-gdb.r: Delete file.
15114 * mac-defs.h: Delete file.
15115 * mac-nat.c: Delete file.
15116 * config/powerpc/macos.mh: Delete file.
15117 * config/powerpc/macos.mt: Delete file.
15118 * config/powerpc/nm-macos.h: Delete file.
15119 * config/powerpc/tm-macos.h: Delete file.
15120 * source.c (openp, open_source_file): Remove obsolete code.
15121 * top.c (gdb_readline): Ditto.
15122 * utils.c (query): Ditto.
15123 * event-top.c (display_gdb_prompt): Ditto.
15124 * Makefile.in (ser-mac.o): Delete obsolete target.
15125 * NEWS: Update.
15126
15127 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15128
15129 * defs.h (BIG_ENDIAN): Delete macro definition.
15130 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15131 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15132 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15133 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15134 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15135 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15136 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15137 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15138 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15139 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15140 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15141 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15142 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15143 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15144 * gdbarch.c: Re-generate.
15145
15146 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15147
15148 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15149 for core files.
15150
15151 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15152
15153 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15154
15155 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15156
15157 * value.h (value_ptr): Delete typedef.
15158
15159 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15160
15161 * i386nbsd-nat.c: Update copyright years.
15162 Include i386-tdep.h.
15163
15164 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15165
15166 * stabsread.c: Update copyright years.
15167
15168 From Debashis Mahata <debashis.mahata@wipro.com>:
15169 (read_struct_fields): Deal with Sun C compiler erroneous stab
15170 output for structs and unions.
15171 Fix PR gdb/269.
15172
15173 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15174
15175 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15176 prototype.
15177
15178 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15179
15180 * cp-abi.c: Fix whitespace.
15181 (baseclass_offset): New wrapper function.
15182 * cp-abi.h (baseclass_offset): Add prototype.
15183 (struct cp_abi_ops): Add baseclass_offset pointer.
15184
15185 * valops.c (vb_match): Move to...
15186 * gnu-v2-abi.c (vb_match): here.
15187 * valops.c (baseclass_offset): Move to...
15188 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15189
15190 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15191
15192 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15193 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15194 * hpacc-abi.c (init_hpacc_ops): Likewise.
15195
15196 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15197
15198 * valops.c (find_overload_match): Accept obj as a
15199 reference parameter. Update it before returning.
15200 * value.h (find_overload_match): Update prototype.
15201 * eval.c (evaluate_subexp_standard): Pass object to
15202 find_overload_match by reference.
15203
15204 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15205
15206 * valarith.c: Replace value_ptr with struct value pointer. Remove
15207 register attribute from value declarations.
15208 * valops.c: Ditto.
15209 * value.h: Ditto.
15210 * scm-lang.c (scm_lookup_name): Ditto.
15211
15212 2002-01-03 Michael Snyder <msnyder@redhat.com>
15213
15214 Abstract the functionality of iterating over mapped memory
15215 regions into a general purpose iterator function.
15216 * procfs.c (iterate_over_mappings): New function, general purpose
15217 iterator for memory sections.
15218 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15219 (solib_mappings_callback): New function, callback for above.
15220 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15221 (info_mappings_callback): New function, callback for above.
15222
15223 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15224
15225 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15226
15227 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15228 * i386-tdep.c: Include "elf-bfd.h".
15229 (process_note_abi_tag_sections): New function.
15230 (i386_gdbarch_init): Add code to recognize various OS/ABI
15231 combinations.
15232
15233 * maint.c (_initialize_maint_cmds): Add missing \ in
15234 string-literal.
15235
15236 For older changes see ChangeLog-2001
15237 \f
15238 Local Variables:
15239 mode: change-log
15240 left-margin: 8
15241 fill-column: 74
15242 version-control: never
15243 End: