* breakpoint.c (insert_breakpoints): Skip disabled breakpoints
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
2
3 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
4 entirely.
5 (breakpoint_re_set_one): Don't fetch the value for a disabled
6 watchpoint.
7
8 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
9
10 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12 (COERCE_FLOAT_TO_DOUBLE): Remove.
13 * gdbarch.c: Regenerate.
14 * gdbarch.h: Regenerate.
15 * Makefile.in: Remove value_h from gdbarch_h.
16 * valops.c (coerce_float_to_double): New variable.
17 (default_coerce_float_to_double): Remove.
18 (standard_coerce_float_to_double): Remove.
19 (value_arg_coerce): Use coerce_float_to_double.
20 (_initialize_valops): Add "set coerce-float-to-double".
21 * value.h (default_coerce_float_to_double): Remove prototype.
22 (standard_coerce_float_to_double): Remove prototype.
23
24 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
25 prototyped.
26 * mdebugread.c (parse_symbol): Likewise.
27 * stabsread.c (define_symbol): Mark all functions as prototyped.
28
29 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
30 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
31 set_gdbarch_coerce_float_to_double.
32 * arm-tdep.c (arm_gdbarch_init): Likewise.
33 * frv-tdep.c (frv_gdbarch_init): Likewise.
34 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
35 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
36 * mips-tdep.c (mips_gdbarch_init): Likewise.
37 (mips_coerce_float_to_double): Remove.
38 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
39 (rs6000_coerce_float_to_double): Remove.
40 * s390-tdep.c (s390_gdbarch_init): Likewise.
41 * sh-tdep.c (sh_gdbarch_init): Likewise.
42 (sh_coerce_float_to_double): Remove.
43 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
44 (sparc_coerce_float_to_double): Remove.
45 * v850-tdep.c (v850_gdbarch_init): Likewise.
46 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
47 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
48 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
49 (hppa_coerce_float_to_double): Remove prototype.
50 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
51
52 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
53
54 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
55
56 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
57
58 Suggested by Stewart Brown <sb24@avaya.com>:
59 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
60 in recursive calls. Handle TYPE_CODE_TYPEDEF.
61 (c_type_print_varspec_suffix): Likewise.
62
63 2003-01-04 Mark Kettenis <kettenis@gnu.org>
64
65 * configure.in: Don't set and AC_SUBST SUBDIRS.
66 * configure: Regenerated.
67
68 * configure.in: Remove code dealing with shared libraries.
69 * Makefile.in: Remove HLDFLAGS and HLDENV.
70 * configure: Regenerated.
71
72 2003-01-04 Andrew Cagney <ac131313@redhat.com>
73
74 * frame.c (deprecated_frame_xmalloc): New function.
75 (deprecated_set_frame_saved_regs_hack): New function.
76 (deprecated_set_frame_extra_info_hack): New function.
77 * frame.h (deprecated_frame_xmalloc): Declare.
78 (deprecated_set_frame_saved_regs_hack): Declare.
79 (deprecated_set_frame_extra_info_hack): Declare.
80
81 2003-01-04 Mark Kettenis <kettenis@gnu.org>
82
83 * configure.in: Move code that provides the --enable-gdbtk option
84 right after the code that handles the --enable-tui option, and
85 polish it somewhat.
86 * configure: Regenerated.
87
88 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
89 AC_CHECK_FUNCS and remove the old check for pread64.
90 * acinclude.m4 (AC_GNU_SOURCE): New macro.
91 * acconfig.h (_GNU_SOURCE): Add.
92 (HAVE_PREAD64): Remove.
93 * configure, aclocal.m4, config.in: Regenerated.
94
95 2003-01-03 Andrew Cagney <ac131313@redhat.com>
96
97 * alpha-tdep.c: Use get_frame_saved_regs.
98 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
99 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
100 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
101 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
102 * vax-tdep.c, xstormy16-tdep.c: Ditto.
103
104 2003-01-03 Mark Kettenis <kettenis@gnu.org>
105
106 * configure.in: Remove all use of the SUBDIRS variable; add
107 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
108 code providing the --enable-multi-ice option, and move it right in
109 front of the code that checks whether gdbserver is supported.
110 Polish that too.
111 * configure: Regenerated.
112 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
113 @SUBDIRS@.
114
115 2003-01-03 Andrew Cagney <cagney@redhat.com>
116
117 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
118 * avr-tdep.c, cris-tdep.c: Ditto.
119 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
120 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
121
122 2003-01-03 Mark Kettenis <kettenis@gnu.org>
123
124 * configure.in: Remove --enable-netrom option.
125 * configure: Regenerated.
126
127 2003-01-03 Mark Kettenis <kettenis@gnu.org>
128
129 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
130 declaration for `struct re_pattern_buffer' instead.
131 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
132
133 2003-01-03 J. Brobecker <brobecker@gnat.com>
134
135 * mdebugread.c (parse_symbol): Count until the stEnd matching
136 the structure name.
137
138 2003-01-02 Mark Kettenis <kettenis@gnu.org>
139
140 * configure.in: Remove --with-cpu option.
141 subscripts. Remove evil changequotes here.
142 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
143 * config.in, configure: Regenerated.
144
145 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
146 * configure.in: Cleanup section that sources GDB and BFD configure
147 subscripts. Remove evil changequotes here.
148 * config.in, configure: Regenerated.
149
150 2003-01-02 Andrew Cagney <ac131313@redhat.com>
151
152 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
153 frame accessor methods.
154 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
155 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
156 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
157 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
158 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
159 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
160 * z8k-tdep.c: Ditto.
161
162 2003-01-02 Mark Kettenis <kettenis@gnu.org>
163
164 * configure.in: Remove UI_OUT configuration code.
165 * ada-lang.c: Update assuming UI_OUT is always true.
166 * Makefile.in (UIOUT_CFLAGS): Remove.
167 * configure: Regenerated.
168 * TODO: Remove blurb about elimination of -DUI_OUT.
169
170 * configure.in: Move code that provides the --enable-gdbcli,
171 --enable-gdbmi options right before the code that handles the
172 --enable-tui option. Polish a bit.
173 * configure: Regenerated.
174
175 * configure.in: Rewrite check for GNU regex and the
176 --without-included regex option, and move it into the "Checks for
177 library functions" section. This makes us use the system regex
178 again by default on systems with version 2 of the GNU C library.
179 This was apparently broken.
180 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
181 * acconfig.h (USE_INCLUDED_REGEX): Remove.
182 * config.in, configure: Regenerated.
183
184 * configure.in: Move code that provides the --enable-tui option
185 before the "Checks for libraries" section. Polish the code
186 somewhat and set need_curses to yes if we build the TUI. Rewrite
187 code that looks for a library providing termcap functionality to
188 match more closely what's done in the Readline library, and move
189 it into to the "Checks for libraries" section.
190 * configure: Regenerated.
191 * Makefile.in (TERMCAP): Remove variable.
192 * config/i386/go32.mh (TERMCAP): Remove variable.
193
194 2003-01-02 Andrew Cagney <ac131313@redhat.com>
195
196 * MAINTAINERS: Mention gdb_mbuild.sh.
197 * gdb_mbuild.sh: Rewrite.
198
199 2003-01-02 Mark Kettenis <kettenis@gnu.org>
200
201 * configure.in: Fix typo in last change.
202 * config.in, configure: Regenerated.
203
204 2003-01-02 Andrew Cagney <ac131313@redhat.com>
205
206 * valarith.c (value_binop): Delete obsolete code and comments.
207 * configure.host: Ditto.
208 * buildsym.h (make_blockvector): Ditto.
209 * buildsym.c (make_blockvector): Ditto.
210 * defs.h (enum language): Ditto.
211 (chill_demangle): Ditto.
212 * elfread.c (elf_symtab_read): Ditto.
213 * dwarfread.c (CHILL_PRODUCER): Ditto.
214 (set_cu_language): Ditto.
215 (handle_producer): Ditto.
216 * expprint.c (print_subexp): Ditto.
217 * gdbtypes.c (chill_varying_type): Ditto.
218 * gdbtypes.h (builtin_type_chill_bool): Ditto.
219 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
220 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
221 (chill_varying_type): Ditto.
222 * language.h (_LANG_chill): Ditto.
223 * language.c (binop_result_type, integral_type): Ditto.
224 (character_type, string_type, structured_type): Ditto.
225 (lang_bool_type, binop_type_check): Ditto.
226 * stabsread.h (os9k_stabs): Ditto.
227 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
228 (define_symbol, read_type, read_struct_fields): Ditto.
229 (read_array_type, read_enum_type, read_huge_number): Ditto.
230 (read_range_type, start_stabs): Ditto.
231 * symfile.c (init_filename_language_table): Ditto.
232 (add_psymbol_with_dem_name_to_list): Ditto.
233 * symtab.c (symbol_init_language_specific): Ditto.
234 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
235 * symtab.h (struct general_symbol_info): Ditto.
236 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
237 * typeprint.c (typedef_print): Ditto.
238 * utils.c (fprintf_symbol_filtered): Ditto.
239 * valops.c (value_cast, search_struct_field, value_slice): Delete
240 obsolete code.
241 (varying_to_slice): Delete function.
242 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
243 (varying_to_slice): Delete declaration.
244 * MAINTAINERS: Update.
245
246 2003-01-02 Mark Kettenis <kettenis@gnu.org>
247
248 * configure.in: Reorganize "Checks for library functions section"
249 a bit. Remove check for `btowc' and `isascii' functions.
250 * configure: Regenerated.
251
252 * acconfig.h (_MSE_INT_H): Remove.
253 * configure.in: Create "Checks for header files" section, and move
254 appropriate tests there. Don't check for objlist.h, wchar.h,
255 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
256 misdetection fix. Also add "Checks for types", "Checks for
257 compiler characteristics" and "Checks for library functions"
258 sections.
259 * config.in, configure: Regenerated.
260
261 * configure.in: Create "Checks for programs" section, and move
262 appropriate tests there.
263
264 2003-01-01 Mark Kettenis <kettenis@gnu.org>
265
266 * configure.in: Create "Checks for libraries" section, and move
267 appropriate tests there. Cleanup check for wctype in libw. Use
268 AC_SEARCH_LIBS to see whether we need libsocket.
269 * configure: Regenerated.
270
271 2002-12-31 Mark Kettenis <kettenis@gnu.org>
272
273 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
274 * config.in, configure: Regenerated.
275
276 2002-12-31 Mark Kettenis <kettenis@gnu.org>
277
278 * gdb_dirent.h: Cleanup and update code to match the example in
279 the Autoconf manual.
280 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
281 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
282 * configure: Regenerated.
283
284 2002-12-30 Adam Fedor <fedor@gnu.org>
285
286 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
287 (yylex): Initialize c to avoid uninitialized warning.
288
289 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
290
291 * doc/fdl.texi: Revert the last change.
292
293 2002-12-29 Mark Kettenis <kettenis@gnu.org>
294
295 * tracepoint.c (ISATTY): Removed.
296
297 2002-12-26 J. Brobecker <brobecker@gnat.com>
298
299 Continuing work to convert the hppa targets to multiarch partil.
300
301 * hppa-tdep.c: Add some missing forward declarations.
302 (frameless_function_invocation): Prefix the function name
303 by "hppa_" to avoid polluting the namespace. Update all calls
304 to use the new function name.
305 (saved_pc_after_call): Ditto.
306 (init_extra_frame_info): Ditto.
307 (frame_chain): Ditto.
308 (push_dummy_frame): Ditto.
309 (target_read_pc): Ditto.
310 (target_write_pc): Ditto.
311 (in_solib_call_trampoline): Ditto.
312 (in_solib_return_trampoline): Ditto.
313 (skip_trampoline_code): Ditto.
314 (hppa_read_fp): New function, renamed from target_read_fp.
315 (hppa_target_read_fp): New function, using hppa_read_fp.
316 This function conforms to the function profile for the
317 READ_FP gdbarch method.
318 (hppa_extract_struct_value_address): New function, extracted
319 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
320 macro.
321 (hppa_frame_num_args): New function.
322 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
323
324 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
325 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
326 for the switch to multiarch partial.
327 Update some of the macros definitions to match some changes
328 described above in the name of the function they are calling.
329 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
330 not be straightforward to convert. Do now wrap it inside
331 "#if !... #endif" to remember that this macro has still not
332 been taken care of.
333 (FIX_CALL_DUMMY): Likewise.
334
335 2002-12-26 J. Brobecker <brobecker@gnat.com>
336
337 Continuing work to convert the hppa targets to multiarch partial.
338
339 * hppa-tdep.c (hppa_register_raw_size): New function replacing
340 the body of macro REGISTER_RAW_SIZE.
341 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
342 config/pa/tm-hppah.h. These functions will be used to initialize
343 the gdbarch structure.
344 (hppa_hpux_pc_in_sigtramp): New function.
345 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
346 (hppa_hpux_frame_base_before_sigtramp): New function.
347 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
348 Add gdbcore.h #include.
349 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
350 of this gdbarch-eligible macro to a call to the new associated
351 function.
352 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
353 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
354 into a call to the new associated function.
355 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
356 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
357 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
358
359 2002-12-24 David Carlton <carlton@math.stanford.edu>
360
361 * config/sparc/tm-sparc.h: Delete duplicate definition of
362 DEPRECATED_PC_IN_CALL_DUMMY.
363
364 2002-12-24 Kevin Buettner <kevinb@redhat.com>
365
366 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
367 $(gdb_assert_h).
368 * configure.tgt: Recognize mips64*-*-linux*.
369 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
370 (supply_32_bit_reg): New function.
371 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
372 (fill_gregset): Use regcache_collect() instead of
373 deprecated_registers[].
374 (register_addr): Change name to mips_linux_register_addr().
375 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
376 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
377 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
378 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
379 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
380 (MIPS64_LINUX_JB_PC): New defines.
381 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
382 (mips64_elf_fpregset_t): New typedefs.
383 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
384 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
385 (mips64_linux_register_addr, set_mips_linux_register_addr)
386 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
387 (init_register_addr_data)
388 New functions.
389 (fetch_core_registers): Add support for core file formats with 64-bit
390 registers.
391 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
392 (register_addr_data): New static global variable.
393 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
394 gdbarch_register_osabi() for each MIPS machine.
395 * config/mips/linux64.mt: New file.
396 * config/mips/tm-linux64.h: New file.
397
398 2002-12-23 Adam Fedor <fedor@gnu.org>
399
400 * maint.c (maintenance_demangle): Add switch to demangle
401 ObjC language symbols as well.
402
403 2002-12-23 Adam Fedor <fedor@gnu.org>
404
405 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
406 last argument from complaint function call.
407
408 2002-12-23 Kevin Buettner <kevinb@redhat.com>
409
410 * exec.c (print_section_info): Add FIXME comments regarding format
411 string choices.
412
413 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
414
415 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
416 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
417
418 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
419
420 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
421
422 2002-12-23 David Carlton <carlton@math.stanford.edu>
423
424 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
425 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
426 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
427 information associated to a minsym, not lookup_symbol.
428
429 2002-12-21 Mark Kettenis <kettenis@gnu.org>
430
431 * x86-64-tdep.h (x86_64_init_abi): New prototype.
432 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
433 (x86_64_init_abi): Make non-static. Set number of pseudo
434 registers to 0.
435 (x86_64_gdbarch_init): Remove function.
436 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
437 Remove code dealing with dissambly.
438 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
439 (_initialize_x86_64_linux_tdep): New function.
440 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
441 i386-tdep.o.
442
443 2002-12-14 Mark Kettenis <kettenis@gnu.org>
444
445 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
446 (struct gdb_osabi_handler): Remove member `arch'. Add member
447 `arch_info'.
448 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
449 construct a `struct bfd_arch_info' and store it in the `struct
450 gdb_osabi_handler' that is created.
451 (gdbarch_init_osabi): Check for compatibility based on machine
452 type and architecture.
453 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
454 comment.
455 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
456 second argument in call to gdbarch_register_osabi.
457 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
458 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
459 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
460 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
461 * arm-tdep.c (_initialize_arm_tdep): Likewise.
462 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
463 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
464 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
465 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
466 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
467 * i386-tdep.c (_initialize_i386_tdep): Likewise.
468 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
469 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
470 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
471 _initialize_i386bsd_tdep and updated likewise.
472 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
473 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
474 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
475 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
476 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
477 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
478 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
479 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
480 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
481 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
482
483 2002-12-20 Kevin Buettner <kevinb@redhat.com>
484
485 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
486 DT_MIPS_RLD_MAP case for 64-bit targets.
487
488 2002-12-20 Kevin Buettner <kevinb@redhat.com>
489
490 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
491 ``temp_saved_regs'', not the pointer or other storage contiguous
492 to this pointer.
493
494 2002-12-20 Kevin Buettner <kevinb@redhat.com>
495
496 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
497 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
498 (mips_linux_get_longjmp_target): Delete declarations.
499 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
500 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
501 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
502 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
503 (mips_linux_get_longjmp_target)
504 (mips_linux_svr4_fetch_link_map_offsets): Make static.
505 (mips_linux_init_abi): New function.
506 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
507
508 2002-12-19 Keith Seitz <keiths@redhat.com>
509
510 patch committed by Elena Zannoni <ezannoni@redhat.com>
511 * thread.c (do_captured_list_thread_ids): Call prune_threads and
512 target_find_new_threads. Fix for PR mi/669.
513
514 2002-12-19 David Carlton <carlton@math.stanford.edu>
515
516 * linespec.c (decode_line_1): Move code into decode_all_digits.
517 (decode_all_digits): New function.
518
519 2002-12-19 Kevin Buettner <kevinb@redhat.com>
520
521 * exec.c (print_section_info): Select a format string to use with
522 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
523
524 2002-12-18 Andrew Cagney <ac131313@redhat.com>
525
526 * frame.c (deprecated_update_current_frame_pc_hack): Replace
527 deprecated_update_current_frame_pc_hack.
528 (deprecated_update_frame_base_hack): New function.
529 * frame.h (deprecated_update_frame_pc_hack): Replace
530 (deprecated_update_frame_base_hack): Declare.
531 * infrun.c (normal_stop): Update.
532
533 2002-12-18 Andrew Cagney <ac131313@redhat.com>
534
535 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
536 frame_extra_info_zalloc.
537 (rs6000_frame_args_address): Use get_frame_extra_info.
538 (frame_get_saved_regs): Use get_frame_saved_regs.
539 (frame_initial_stack_address): Use get_frame_saved_regs and
540 get_frame_extra_info.
541 (frame_initial_stack_address): Use get_frame_extra_info.
542
543 2002-12-17 Kevin Buettner <kevinb@redhat.com>
544
545 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
546 array size.
547 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
548 checks for r3900_regnames[].
549
550 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
551
552 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
553 All uses changed
554 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
555
556 2002-12-17 David Carlton <carlton@math.stanford.edu>
557
558 * symtab.c (lookup_partial_symbol): Don't search past the end of
559 the partial symbols.
560
561 2002-12-17 Andrew Cagney <ac131313@redhat.com>
562
563 * stack.c (frame_info): Use get_frame_saved_regs.
564 * breakpoint.c (until_break_command): Use get_frame_pc.
565
566 2002-12-16 Kevin Buettner <kevinb@redhat.com>
567
568 * buildsym.c (block_end_complaint, anon_block_end_complaint)
569 (innerblock_complaint, innerblock_anon_complaint)
570 (blockvector_complaint): Delete deprecated complaint structs.
571 (finish_block, make_blockvector, end_symtab): Replace calls
572 to complain() with calls to complaint().
573 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
574 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
575 (unexpected_type_complaint, bad_sclass_complaint)
576 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
577 Delete deprecated complaint structs.
578 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
579 Replace calls to complain() with calls to complaint().
580 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
581 (unknown_symtype_complaint, unknown_symchar_complaint)
582 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
583 (lbrac_mismatch_complaint, repeated_header_complaint)
584 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
585 Delete deprecated complaint structs.
586 (unknown_symtype_complaint, lbrac_mismatch_complaint)
587 (repeated_header_complaint)
588 (function_outside_compiliation_unit_complaint): New functions.
589 (add_old_header_file, find_corresponding_bincl_psymtab)
590 (set_namestring, find_stab_function_addr, read_dbx_symtab)
591 (process_one_symbol): Replace calls to complain() with, possibly
592 indirect, calls to complaint().
593 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
594 (unknown_attribute_form, unknown_attribute_length)
595 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
596 (const_ignored, botched_modified_type, op_deref2, op_deref4)
597 (basereg_not_handled, dup_user_type_allocation)
598 (dup_user_type_definition, missing_tag, bad_array_element_type)
599 (subscript_data_items, unhandled_array_subscript_format)
600 (unknown_array_subscript_format, not_row_major)
601 (missing_at_name): Delete deprecated complaint structs.
602 (bad_die_ref_complaint, unknown_attribute_form_complaint)
603 (dup_user_type_definition_complaint)
604 (bad_array_element_type_complaint): New functions.
605 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
606 (decode_subscript_data_item, dwarf_read_array_type)
607 (read_tag_string_type, read_subroutine_type, read_func_scope)
608 (locval, scan_partial_symbols, decode_modified_type)
609 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
610 (attribute_size): Replace calls to complain() with, possibly
611 indirect, calls to complaint().
612 * elfread.c (section_info_complaint, section_info_dup_complaint)
613 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
614 Delete deprecated complaint structs.
615 (elf_symtab_read, elfstab_offset_sections): Replace calls to
616 complain() with calls to complaint().
617 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
618 struct.
619 (stub_noname_complaint): New function.
620 (check_typedef, add_mangled_type): Replace calls to complain()
621 with calls to complaint().
622 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
623 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
624 (hpread_unhandled_type_complaint, hpread_struct_complaint)
625 (hpread_array_complaint, hpread_type_lookup_complaint)
626 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
627 (hpread_unhandled_common_complaint)
628 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
629 struct definitions and declarations.
630 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
631 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
632 Replace calls to complain() with, possibly indirect, calls to
633 complaint().
634 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
635 Likewise.
636 * mdebugread.c (bad_file_number_complaint, index_complaint)
637 (aux_index_complaint, block_index_complaint)
638 (unknown_ext_complaint, unknown_sym_complaint)
639 (unknown_st_complaint, block_overflow_complaint)
640 (basic_type_complaint, unknown_type_qual_complaint)
641 (array_index_type_complaint, bad_tag_guess_complaint)
642 (block_member_complaint, stEnd_complaint)
643 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
644 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
645 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
646 (bad_continued_complaint, bad_rfd_entry_complaint)
647 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
648 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
649 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
650 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
651 complaint structs.
652 (index_complaint, unknown_ext_complaint, basic_type_complaint)
653 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
654 (unexpected_type_code_complaint)
655 (function_outside_compilation_unit_complaint): New functions.
656 (parse_symbol, parse_type, upgrade_type, parse_procedure)
657 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
658 Replace calls to complain() with, possibly indirect calls to
659 complaint().
660 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
661 Delete deprecated complaint structs.
662 (lookup__objc_class, lookup_child_selector): Replace complain()
663 with complaint().
664 * remote-vx.c (cant_contact_target): Delete deprecated complaint
665 struct.
666 (vx_lookup_symbol): Replace complain() with complaint().
667 * stabsread.c (invalid_cpp_abbrev_complaint)
668 (invalid_cpp_type_complaint, member_fn_complaint)
669 (const_vol_complaint, error_type_complaint)
670 (invalid_member_complaint, range_type_base_complaint)
671 (reg_value_complaint, vtbl_notfound_complaint)
672 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
673 (unresolved_sym_chain_complaint, stabs_general_complaint)
674 (lrs_general_complaint, multiply_defined_struct): Delete
675 deprecated complaint structs.
676 (invalid_cpp_abbrev_complaint, ref_value_complaint)
677 (stabs_general_complaint, lrs_general_complaint)
678 (msg_unknown_complaint): New functions.
679 (dbx_lookup_type, read_cfront_baseclasses)
680 (read_cfront_member_functions, resolve_symbol_reference)
681 (define_symbol, resolve_live_range, add_live_range, read_type)
682 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
683 (read_one_struct_field, read_baseclasses, read_tilde_fields)
684 (read_cfront_static_fields, attach_fields_to_type)
685 (complain_about_struct_wipeout, read_range_type)
686 (common_block_start, common_block_end, cleanup_undefined_types)
687 (scan_file_globals): Replace complain() with complaint().
688 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
689 Delete deprecated complaint struct declarations.
690 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
691 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
692 (bf_not_found_complaint, ef_complaint, eb_complaint)
693 (function_outside_compilation_unit_complaint): New functions.
694 (record_include_begin, record_include_end, enter_line_range)
695 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
696 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
697 complain() with complaint().
698
699 2002-12-16 Andrew Cagney <ac131313@redhat.com>
700
701 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
702 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
703 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
704 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
705 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
706 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
707 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
708 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
709 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
710 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
711 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
712 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
713 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
714 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
715 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
716 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
717 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
718 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
719 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
720 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
721 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
722 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
723 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
724 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
725 * config/m88k/xm-dgux.h: Delete.
726 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
727 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
728 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
729 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
730 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
731 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
732 * ch-valprint.c: Delete.
733
734 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
735
736 * infrun.c (handle_inferior_event): Rearrange code to resume if
737 no catchpoint triggers for an event.
738
739 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
740
741 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
742 and TARGET_WAITKIND_VFORKED cases.
743
744 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
745
746 * infrun.c (handle_inferior_event): Assume that catchpoints
747 are not affected by DECR_PC_AFTER_BREAK.
748
749 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
750
751 * target.c (update_current_target): Don't inherit DONT_USE.
752 * target.h (struct target_ops): Remove DONT_USE.
753 (target_next): Remove macro.
754
755 2002-12-15 Mark Kettenis <kettenis@gnu.org>
756
757 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
758
759 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
760
761 * arm-tdep.c (convert_from_extended): New argument to hold the
762 type of floating point result we want to convert to. Make input
763 argument const. Fix all callers.
764 (convert_to_extended): Similarly.
765 (arm_extract_return_value): Now takes a regcache argument. Change
766 code to use regcache accessor functions. Correctly extract
767 smaller-than-word results on big-endian machines.
768 (arm_store_return_value): Now takes a regcache argument. Change
769 code to use regcache accessor functions. Correctly zero/sign extend
770 smaller than word results before storing into r0.
771 (arm_gdbarch_init): Register new-style extract_return_value and
772 store_return_value functions.
773
774 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
775
776 * thread-db.c (thread_from_lwp): Uniquify error msg.
777 (lwp_from_thread): Ditto.
778 (check_event): Ditto.
779 (find_new_threads_callback): Ditto.
780 (thread_db_pid_to_str): Ditto.
781
782 2002-12-13 Andrew Cagney <ac131313@redhat.com>
783
784 * frame.h (get_frame_saved_regs): Declare.
785 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
786 pointer.
787 * frame.c (get_frame_saved_regs): New function.
788 (frame_saved_regs_zalloc): Return the allocated saved_regs.
789
790 2002-12-13 Andrew Cagney <ac131313@redhat.com>
791
792 * frame.c (deprecated_update_current_frame_pc_hack): New
793 function.
794 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
795 * infrun.c (normal_stop): Use said function instead of directly
796 modifying the frame's PC.
797
798 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
799
800 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
801
802 2002-12-13 Kevin Buettner <kevinb@redhat.com>
803
804 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
805 config/mips/tm-irix6.h (NUM_REGS): Delete.
806 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
807 (temp_saved_regs): Declare as a pointer rather than an array.
808 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
809 that ``temp_saved_regs'' has storage allocated to it and that
810 it's the correct size.
811
812 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
813
814 * defs.h (init_last_source_visited): New prototype.
815 (add_path): Ditto.
816 * source.c (add_path): New function that adds to a specified path.
817 (mod_path): Change to call add_path.
818 (init_last_source_visited): New function to allow interfaces to
819 initialize static variable: last_source_visited. Part of fix
820 for PR gdb/741.
821 * Makefile.in: Add support for mi/mi-cmd-env.c.
822
823 2002-12-13 Andrew Cagney <ac131313@redhat.com>
824
825 * frame.h (frame_id_unwind): Declare.
826 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
827 id_unwind_cache.
828 (frame_id_unwind_ftype): Declare.
829 * frame.c (frame_id_unwind): New function.
830 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
831 (create_new_frame, get_prev_frame): Pass id_unwind to
832 set_unwind_by_pc.
833 (frame_saved_regs_id_unwind): New function.
834 (frame_saved_regs_id_unwind): New function.
835 * dummy-frame.c (dummy_frame_id_unwind): New function.
836 (struct dummy_frame): Add field id.
837 (generic_push_dummy_frame): Initialize `id'.
838 * dummy-frame.h (dummy_frame_id_unwind): Declare.
839
840 2002-12-13 Andrew Cagney <ac131313@redhat.com>
841
842 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
843 pass that to set_momentary_breakpoint. Move comments to where they
844 belong.
845 * frame.h (set_current_frame): Delete declaration.
846 * frame.c (set_current_frame): Delete function.
847
848 2002-12-13 Andrew Cagney <ac131313@redhat.com>
849
850 * frame.c (frame_extra_info_zalloc): New function.
851 * frame.h (frame_extra_info_zalloc): Declare.
852
853 2002-12-13 Joel Brobecker <brobecker@gnat.com>
854
855 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
856 in the previous prototype change to set_momentary_breakpoint.
857
858 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
859
860 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
861 and saw_child_exec.
862 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
863 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
864 (stop_stepping): Remove outdated check for child vfork events.
865
866 2002-12-12 Andrew Cagney <ac131313@redhat.com>
867
868 * GDB 5.3 released from gdb_5_3-branch.
869
870 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
871
872 * corelow.c (init_core_ops): Delete references to to_require_attach
873 and to_require_detach.
874 * exec.c (init_exec_ops): Likewise.
875 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
876 hppa_require_detach directly.
877 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
878 * inftarg.c (child_detach): Remove.
879 (child_detach_from_process): Rename to child_detach, remove
880 after_fork argument.
881 (child_attach): Remove.
882 (child_attach_to_process): Rename to child_attach, remove after_fork
883 argument.
884 (init_child_ops): Delete references to to_require_attach
885 and to_require_detach.
886 * infttrace.c (hppa_require_attach): Update comment.
887 * target.c (cleanup_target, update_current_target)
888 (init_dummy_target, setup_target_debug): Delete references to
889 to_require_attach and to_require_detach.
890 (find_default_require_detach, find_default_require_attach)
891 (debug_to_require_attach, debug_to_require_detach): Remove
892 functions.
893 * target.h (struct target_ops): Remove to_require_attach
894 and to_require_detach.
895 (target_require_attach, target_require_detach): Delete macros.
896 (find_default_require_detach, find_default_require_attach): Delete
897 prototypes.
898 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
899
900 2002-12-11 Andrew Cagney <ac131313@redhat.com>
901
902 * frame.c (get_frame_extra_info): New function.
903 * frame.h (get_frame_extra_info): Declare.
904
905 2002-12-11 Andrew Cagney <ac131313@redhat.com>
906
907 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
908 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
909 with `struct frame_id'.
910 (set_longjmp_resume_breakpoint): Ditto.
911 * infrun.c (handle_inferior_event): Update.
912 * breakpoint.c (watch_command_1, until_break_command): Update.
913 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
914 (handle_inferior_event, step_over_function): Update.
915 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
916 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
917 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
918 * infcmd.c (finish_command, run_stack_dummy): Update.
919
920 2002-12-11 Kevin Buettner <kevinb@redhat.com>
921
922 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
923 (dwarf2_non_const_array_bound_ignored)
924 (dwarf2_missing_line_number_section)
925 (dwarf2_statement_list_fits_in_line_number_section)
926 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
927 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
928 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
929 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
930 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
931 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
932 (dwarf2_missing_member_fn_type_complaint)
933 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
934 (dwarf2_const_value_length_mismatch)
935 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
936 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
937 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
938 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
939 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
940 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
941 complaints using deprecated struct..
942 (dwarf2_non_const_array_bound_ignored_complaint)
943 (dwarf2_complex_location_expr_complaint)
944 (dwarf2_unsupported_at_frame_base_complaint)
945 (dwarf2_const_value_length_mismatch_complaint)
946 (dwarf2_macros_too_long_complaint)
947 (dwarf2_macro_malformed_definition_complaint)
948 (dwarf2_invalid_attrib_class_complaint): New functions.
949 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
950 (read_structure_scope, read_array_type, read_common_block)
951 (read_tag_pointer_type, read_base_type, read_partial_die)
952 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
953 (new_symbol, dwarf2_const_value, read_type_die)
954 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
955 (parse_macro_definition, dwarf_decode_macros): Replace calls to
956 complain() with, possibly indirect, calls to complaint().
957
958 2002-12-11 Andrew Cagney <cagney@redhat.com>
959
960 * frame.c (deprecated_get_frame_saved_regs): Rename
961 get_frame_saved_regs.
962 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
963 * sparc-tdep.c: Update.
964 * hppa-tdep.c: Update.
965 * h8500-tdep.c: Update.
966
967 2002-12-11 Kevin Buettner <kevinb@redhat.com>
968
969 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
970 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
971 ``char *'' for return and parameter types.
972 * gdbarch.h, gdbarch.c: Regenerate.
973 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
974 return type from ``char *'' to ``const char *''.
975 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
976 const.
977
978 2002-12-11 Mark Kettenis <kettenis@gnu.org>
979
980 * i386-tdep.c: Include "dummy-frame.h".
981 (i386_frame_chain, i386_frame_saved_pc): Replace
982 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
983 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
984
985 2002-12-10 Andrew Cagney <cagney@redhat.com>
986
987 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
988 Change to a function with predicate.
989 * gdbarch.h, gdbarch.c: Re-generate.
990 * frame.c (get_prev_frame): Update. Test
991 DEPRECATED_INIT_FRAME_PC_P.
992 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
993 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
994 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
995 * alpha-tdep.c (alpha_gdbarch_init): Update.
996 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
997 * mips-tdep.c (mips_gdbarch_init): Update.
998 * i386-interix-tdep.c (i386_interix_init_abi): Update.
999 * arm-tdep.c: Update comments.
1000 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1001 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1002 * frv-tdep.c (frv_gdbarch_init): Ditto.
1003 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1005 * s390-tdep.c (s390_gdbarch_init): Ditto.
1006 * v850-tdep.c (v850_gdbarch_init): Ditto.
1007 * vax-tdep.c (vax_gdbarch_init): Ditto.
1008 * sh-tdep.c (sh_gdbarch_init): Ditto.
1009 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1011 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1013 * i386-tdep.c (i386_gdbarch_init): Ditto.
1014 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1015 * cris-tdep.c (cris_gdbarch_init): Ditto.
1016 * avr-tdep.c (avr_gdbarch_init): Ditto.
1017 * arm-tdep.c (arm_gdbarch_init): Ditto.
1018 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1019 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1020
1021 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1022
1023 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1024 CHILD_FOLLOW_FORK.
1025 * hppah-nat.c (saved_vfork_pid): Add.
1026 (child_post_follow_vfork): Remove.
1027 (child_follow_fork): New function.
1028 (child_wait): Call detach_breakpoints after receiving the child vfork.
1029 Call child_resume directly instead of going through resume ().
1030 Make sure we have the exec before reporting the vfork.
1031 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1032 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1033 (follow_fork): New function. Call target_follow_fork.
1034 (follow_inferior_reset_breakpoints): New function broken out from
1035 old follow_inferior_fork.
1036 (resume): Remove hack to follow exec after vfork.
1037 * inftarg.c (child_post_follow_vfork): Remove.
1038 (child_follow_fork): New function.
1039 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1040 * target.c (cleanup_target): Replace to_post_follow_vfork with
1041 to_follow_fork.
1042 (update_current_target): Likewise.
1043 (setup_target_debug): Likewise.
1044 (debug_to_post_follow_vfork): Remove.
1045 (debug_to_follow_fork): New function.
1046 * target.h (struct target_ops): Replace to_post_folow_vfork with
1047 to_follow_fork.
1048 (child_post_follow_vfork): Remove prototype.
1049 (child_follow_fork): Add prototype.
1050 (target_post_follow_vfork): Remove macro.
1051 (target_follow_fork): Add macro.
1052
1053 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1054
1055 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1056 (child_post_follow_vfork): Cancel pending exec event if we follow
1057 the parent.
1058 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1059 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1060 event at the following wait call if necessary.
1061 * infrun.c (follow_vfork): Don't follow_exec here.
1062 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1063 case about HP/UX 10.20. Remove code pushed down to
1064 hppah-nat.c:child_wait.
1065 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1066 vfork_in_flight is set.
1067
1068 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1069
1070 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1071 for the parent's fork event.
1072 * infrun.c (handle_inferior_event): Only expect one fork event.
1073 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1074 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1075
1076 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1077
1078 * PROBLEMS: Delete reference to PR gdb/725.
1079
1080 * MAINTAINERS (gdb.c++): Add David Carlton.
1081
1082 2002-12-09 David Carlton <carlton@math.stanford.edu>
1083
1084 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1085 * cli/cli-cmds.c: Ditto.
1086
1087 2002-12-09 Andrew Cagney <cagney@redhat.com>
1088
1089 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1090 function address in <>.
1091 * gdbarch.c: Re-generate.
1092
1093 2002-12-09 David Carlton <carlton@math.stanford.edu>
1094
1095 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1096
1097 2002-12-09 David Carlton <carlton@math.stanford.edu>
1098
1099 * linespec.c (symtab_from_filename): New function.
1100 (decode_line_1): Move code into symtab_from_filename.
1101
1102 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1103
1104 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1105
1106 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1107
1108 * f-valprint.c (info_common_command): Use get_frame_pc.
1109 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1110 * ax-gdb.c (agent_command): Ditto.
1111 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1112 (rs6000_pop_frame): Ditto.
1113 (rs6000_frameless_function_invocation): Ditto.
1114 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1115 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1116 * macroscope.c (default_macro_scope): Ditto.
1117 * stack.c (print_frame_info_base): Ditto.
1118 (print_frame, frame_info, print_frame_label_vars): Ditto.
1119 (return_command, func_command, get_frame_language): Ditto.
1120 * infcmd.c (finish_command): Ditto.
1121 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1122 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1123 (break_at_finish_at_depth_command_1): Ditto.
1124 (break_at_finish_command_1): Ditto.
1125 (until_break_command, get_catch_sals): Ditto.
1126 * blockframe.c (func_frame_chain_valid): Ditto.
1127 (frameless_look_for_prologue): Ditto.
1128 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1129
1130 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1131
1132 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1133 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1134
1135 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1136
1137 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1138 to pure functions.
1139 * gdbarch.h, gdbarch.c: Re-generate.
1140 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1141 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1142
1143 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1144 declaration to a function returning a CORE_ADDR.
1145 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1146 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1147 (init_frame_pc_default): Ditto.
1148 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1149 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1150 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1151 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1152 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1153 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1154
1155 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1156 to init_frame_pc_noop.
1157 (i386_interix_init_frame_pc): Delete function.
1158 * z8k-tdep.c (init_frame_pc): Delete function.
1159 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1160 (INIT_FRAME_PC_FIRST): Ditto.
1161 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1162 (INIT_FRAME_PC_FIRST): Ditto.
1163 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1164 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1165 init_frame_pc_noop.
1166 (INIT_FRAME_PC_FIRST): Convert to an expression.
1167 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1168
1169 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1170
1171 * blockframe.c: Use get_frame_base instead of directly accessing
1172 the `struct frame_info' member frame.
1173 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1174 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1175
1176 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1177
1178 * Makefile.in (readline_h): Define.
1179 (completer.o): Depend on readline_h.
1180 (corelow.o): Ditto.
1181 (event-top.o): Ditto.
1182 (exec.o): Ditto.
1183 (solib.o): Ditto.
1184 (source.o): Ditto.
1185 (symfile.o): Ditto.
1186 (symmisc.o): Ditto.
1187 (top.o): Ditto.
1188 (tracepoint.o): Ditto.
1189 (utils.o): Ditto.
1190 (cli-dump.o): Ditto.
1191 (tui-hooks.o): Ditto.
1192 (tuiWin.o): Ditto.
1193
1194 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1195
1196 More cleanup from import of readline 4.3.
1197 * completer.h (complete_line, readline_line_completion_function):
1198 Update prototypes.
1199 (line_completion_function): Removed, not used outside of completer.c.
1200 * completer.c (readline_line_completion_function,
1201 complete_function, line_completion_function): Use const for first
1202 parameter.
1203 (line_completion_function): Make static.
1204 (filename_completer): filename_completion_function is now called
1205 rl_filename_completion_function
1206 * corelow.c: Include <readline/readline.h>.
1207 * exec.c: Ditto.
1208 * solib.c: Ditto.
1209 * source.c: Ditto.
1210 * symfile.c: Ditto.
1211 * symmisc.c: Ditto.
1212 * top.c (init_main): No need to coerce
1213 readline_line_completion_function anymore.
1214 * cli/cli-dump.c: Include <readline/readline.h>.
1215
1216 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1217
1218 * stack.c (frame_info): Use get_prev_frame.
1219 * blockframe.c (frame_address_in_block): Ditto.
1220 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1221 (rs6000_frameless_function_invocation): Ditto.
1222 (rs6000_frame_saved_pc): Ditto.
1223 (rs6000_frame_chain): Ditto.
1224 * arch-utils.c (init_frame_pc_default): Ditto.
1225
1226 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1227
1228 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1229 Delete redundant definition.
1230
1231 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1232
1233 Import of readline 4.3:
1234 * cli/cli-cmds.c: Include readline/tilde.h.
1235 * cli/cli-setshow.c: Ditto.
1236 * defs.h: Don't declare tilde_expand anymore, since readline
1237 exports it.
1238
1239 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1240
1241 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1242 -Werror on this file.
1243
1244 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1245
1246 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1247 the format name.
1248 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1249 * gdbarch.c: Regenerate.
1250
1251 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1252
1253 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1254 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1255 provide a default value.
1256 * gdbarch.h, gdbarch.c: Regenerate.
1257 * frame.c (get_prev_frame): Update. Check
1258 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1259 * s390-tdep.c (s390_gdbarch_init): Update.
1260 * mips-tdep.c (mips_gdbarch_init): Update.
1261 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1262 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1263 * alpha-tdep.c (alpha_gdbarch_init): Update.
1264
1265 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1266
1267 * ia64-linux-nat.c: Include gdb_string.h.
1268 * alpha-nat.c: Ditto.
1269 * ppc-linux-nat.c: Ditto.
1270 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1271 Update dependencies.
1272
1273 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1274
1275 * gdbthread.h: Include "frame.h".
1276 (struct thread_info): Replace step_frame_address with
1277 step_frame_id.
1278 * inferior.h: Include "frame.h".
1279 (step_frame_id): Replace external variable step_frame_address.
1280 * gdbthread.h (save_infrun_state): Replace step_frame_address
1281 parameter with step_frame_id parameter.
1282 (load_infrun_state): Ditto.
1283 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1284 * infcmd.c (step_frame_id, step_1, step_once): Update.
1285 * thread.c (load_infrun_state, save_infrun_state): Update.
1286 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1287 (handle_inferior_event, step_over_function): Update.
1288 (normal_stop, context_switch, restore_inferior_status): Update.
1289 (struct inferior_status): Replace step_frame_address with
1290 step_frame_id.
1291
1292 2002-12-05 David Carlton <carlton@math.stanford.edu>
1293
1294 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1295 DW_TAG_member as well as a declaration as being a C++ static data
1296 member.
1297 (read_structure_scope): Combine tests for DW_TAG_member and
1298 DW_TAG_variable.
1299
1300 2002-12-05 David Carlton <carlton@math.stanford.edu>
1301
1302 * linespec.c (decode_compound): New function.
1303 (decode_line_1): Move code into decode_compound.
1304
1305 2002-12-05 David Carlton <carlton@math.stanford.edu>
1306
1307 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1308 argument.
1309 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1310 the static block. See PR gdb/804.
1311
1312 2002-12-05 David Carlton <carlton@math.stanford.edu>
1313
1314 * symtab.c (lookup_symbol_aux_block): New function.
1315 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1316
1317 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1318
1319 * gdbarch.sh: Dump the predicate function and macro values.
1320 (read): Print error on standard error.
1321 * gdbarch.c: Regenerate.
1322
1323 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1324
1325 * Makefile.in (mips_tdep_h): Define.
1326 (mips-tdep.o): Add mips_tdep_h to dependency list.
1327 * mips-tdep.h: New file.
1328 * mips-tdep.c (mips-tdep.h): Include.
1329 (enum mips_abi): Move to mips-tdep.h.
1330 (mips_abi): New function.
1331
1332 2002-12-04 David Carlton <carlton@math.stanford.edu>
1333
1334 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1335
1336 2002-12-04 David Carlton <carlton@math.stanford.edu>
1337
1338 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1339 function.
1340 (lookup_symbol_aux_minsyms): New function.
1341
1342 2002-12-04 J. Brobecker <brobecker@gnat.com>
1343
1344 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1345
1346 2002-12-04 J. Brobecker <brobecker@gnat.com>
1347
1348 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1349 which is an obsolete macro name.
1350
1351 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1352
1353 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1354 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1355
1356 2002-12-03 H.J. Lu (hjl@gnu.org)
1357
1358 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1359 (create_breakpoints): Make sure the addr_string field is not
1360 NULL.
1361
1362 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1363
1364 * sparc-nat.c (fetch_inferior_registers)
1365 (store_inferior_registers): Add comment on problem of LWP vs
1366 threads.
1367
1368 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1369 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1370 (lin_lwp_store_registers): Remove.
1371 (init_lin_lwp_ops): Use fetch_inferior_registers
1372 and store_inferior_registers directly.
1373 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1374 (store_inferior_registers): Likewise.
1375 Fix PR gdb/725.
1376
1377 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1378
1379 * frame.h (get_frame_id): Convert to a function.
1380 (null_frame_id, frame_id_p): Declare.
1381 (frame_id_eq, frame_id_inner): Declare.
1382 (frame_id_build): New function.
1383 * frame.c (get_frame_id): Update. Use null_frame_id.
1384 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1385 frame_id_inner.
1386 (null_frame_id, frame_id_p): Define.
1387 (frame_id_eq, frame_id_inner): Define.
1388 (frame_id_build): New function.
1389 * varobj.c (varobj_create): Update.
1390 (varobj_update): Update.
1391 * valops.c (value_assign): Update.
1392 (new_root_variable): Update.
1393 * infrun.c (save_inferior_status): Update.
1394 * breakpoint.c (watch_command_1): Update.
1395
1396 2002-12-03 J. Brobecker <brobecker@gnat.com>
1397
1398 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1399 (SNAP2): Likewise.
1400
1401 2002-12-03 Andrew Cagney <cagney@redhat.com>
1402
1403 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1404 patch.
1405
1406 * PROBLEMS: Mention PR gdb/725.
1407
1408 2002-12-03 Andreas Schwab <schwab@suse.de>
1409
1410 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1411
1412 2002-12-02 Adam Fedor <fedor@gnu.org>
1413 Klee Dienes <kdienes@apple.com>
1414
1415 * objc-lang.c (objc_printstr): Add width arg to match
1416 printstr prototype.
1417 (compare_selectors): Add 'const' to arg types.
1418 (compare_classes): Likewise.
1419 (find_imps): Cast msym pointer to avoid compiler warning.
1420 (print_object_command): Validate the address before
1421 passing it to the print routine.
1422 (find_objc_msgcall_submethod): Change function argument to
1423 return an int.
1424 * objc-lang.h: Add 'extern' to all function declarations.
1425 (value_nsstring): Add declaration.
1426
1427 2002-12-02 J. Brobecker <brobecker@gnat.com>
1428
1429 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1430 Fixes a build failure on HP/UX.
1431
1432 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1433 failure on HP/UX.
1434 (hpread_has_name): Advance declaration to avoid a compilation warning.
1435 (pst_syms_count): Add missing variable type. By change, the compiler
1436 was defaulting to int, which seems a good choice. Fixes a compilation
1437 warning.
1438 (pst_syms_size): Likewise.
1439
1440 2002-12-02 J. Brobecker <brobecker@gnat.com>
1441
1442 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1443 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1444 later to set the proper gdbarch methods depending on the osabi.
1445 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1446
1447 2002-12-02 J. Brobecker <brobecker@gnat.com>
1448
1449 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1450 * osabi.c (gdb_osabi_name): Add strings images for the two new
1451 enum values.
1452 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1453
1454 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1455
1456 * MAINTAINERS (Java): Global maintainers are responible for Java.
1457 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1458 part Java maintainers.
1459
1460 2002-12-02 J. Brobecker <brobecker@gnat.com>
1461
1462 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1463 Fixes a compilation failure on AiX.
1464
1465 2002-12-02 J. Brobecker <brobecker@gnat.com>
1466
1467 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1468 why aix-thread.o is not listed.
1469
1470 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1471
1472 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1473 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1474 * gdbarch.h, gdbarch.c: Re-generate.
1475 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1476 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1477 * config/pa/tm-hppa.h, frame.h: Update.
1478 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1479 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1480 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1481 * cris-tdep.c, alpha-tdep.c: Update.
1482 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1483 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1484 (get_prev_frame): Ditto.
1485
1486 2002-11-30 Andrew Cagney <cagney@redhat.com>
1487
1488 * exec.c (xfer_memory): Replace boolean with int.
1489 * p-exp.y: Use 0 instead of false.
1490 * corelow.c (gdb_check_format): Change return type to int from
1491 boolean.
1492 * utils.c: Don't include <curses.h> or <term.h> first.
1493
1494 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1495
1496 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1497 (m68hc11_register_byte): Remove.
1498 (m68hc11_gdbarch_init): Don't set the above.
1499
1500 2002-11-29 Andrew Cagney <cagney@redhat.com>
1501
1502 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1503 by calling get_selected_frame.
1504 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1505 set_current_frame, create_new_frame, select_frame and
1506 get_current_frame.
1507 * remote-e7000.c (e7000_start_remote): Ditto.
1508 * remote-mips.c (common_open): Ditto
1509 * remote-rdp.c (remote_rdp_open): Ditto.
1510
1511 2002-11-29 Andreas Schwab <schwab@suse.de>
1512
1513 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1514 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1515 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1516 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1517 read_memory_unsigned_integer instead of read_memory_integer when
1518 dealing with addresses and instruction opcodes.
1519 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1520 (m68k_linux_frame_saved_pc): Likewise.
1521
1522 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1523
1524 * stack.c (selected_frame, select_frame): Move from here ...
1525 * frame.c (selected_frame, select_frame): ... to here. Include
1526 "language.h".
1527 * Makefile.in (frame.o): Update dependencies.
1528 * frame.c (get_selected_frame): New function.
1529 * frame.h (get_selected_frame): Declare.
1530 (deprecated_selected_frame): Rename selected_frame.
1531 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1532 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1533 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1534 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1535 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1536 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1537 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1538 * z8k-tdep.c, cli/cli-cmds.c: Update.
1539
1540 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1541
1542 * frame.h (get_selected_block): Add comments.
1543
1544 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1545
1546 * frame.c (pc_notcurrent): New function.
1547 (find_frame_sal): New function.
1548 * frame.h (find_frame_sal): Declare.
1549 (struct symtab_and_line): Add opaque declaration.
1550 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1551 find_pc_line.
1552 (frame_info): Ditto.
1553 * ada-lang.c (find_printable_frame): Ditto.
1554
1555 2002-11-28 J. Brobecker <brobecker@gnat.com>
1556
1557 * configure.in: Check that the pthdebug library is recent enough
1558 before enabling thread support on native AiX.
1559 * configure: Regenerate.
1560
1561 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1562 from the list of object files as it is now appended by configure
1563 if thread support is enabled.
1564 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1565 if thread support is enabled.
1566
1567 2002-11-28 Andrew Cagney <cagney@redhat.com>
1568
1569 * stack.c (get_selected_block): In-line get_current_block.
1570 * frame.h (get_current_block): Delete declaration.
1571 * blockframe.c (get_current_block): Delete function.
1572
1573 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1574
1575 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1576 USE_GENERIC_DUMMY_FRAMES.
1577 * gdbarch.h, gdbarch.c: Regenerate.
1578 * valops.c, frame.c: Update.
1579 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1580 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1581 * config/pa/tm-hppa.h, blockframe.c: Update.
1582 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1583 * m68k-tdep.c, alpha-tdep.c: Ditto.
1584
1585 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1586 * mips-tdep.c: Ditto.
1587
1588 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1589
1590 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1591 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1592 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1593 * gdbarch.c, gdbarch.h: Re-generate.
1594 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1595 (CALL_DUMMY_LOCATION): Delete macro definition.
1596 (PC_IN_CALL_DUMMY): Delete macro definitions.
1597
1598 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1599 default is already generic_pc_in_call_dummy.
1600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1601 * v850-tdep.c (v850_gdbarch_init): Ditto.
1602 * sh-tdep.c (sh_gdbarch_init): Ditto.
1603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1604 * mips-tdep.c (mips_gdbarch_init): Ditto.
1605 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1608 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1609 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1610 * avr-tdep.c (avr_gdbarch_init): Ditto.
1611
1612 * arm-tdep.c (arm_gdbarch_init): Do not set
1613 use_generic_dummy_frames, default is already 1.
1614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1615 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1616 * v850-tdep.c (v850_gdbarch_init): Ditto.
1617 * sh-tdep.c (sh_gdbarch_init): Ditto.
1618 * s390-tdep.c (s390_gdbarch_init): Ditto.
1619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1620 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1621 * mips-tdep.c (mips_gdbarch_init): Ditto.
1622 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1624 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1625 * i386-tdep.c (i386_gdbarch_init): Ditto.
1626 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1627 * frv-tdep.c (frv_gdbarch_init): Ditto.
1628 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1629 * cris-tdep.c (cris_gdbarch_init): Ditto.
1630 * avr-tdep.c (avr_gdbarch_init): Ditto.
1631
1632 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1633 call_dummy_location, default is already AT_ENTRY_POINT.
1634 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1635 * v850-tdep.c (v850_gdbarch_init): Ditto.
1636 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1637 * sh-tdep.c (sh_gdbarch_init): Ditto.
1638 * s390-tdep.c (s390_gdbarch_init): Ditto.
1639 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1641 * mips-tdep.c (mips_gdbarch_init): Ditto.
1642 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1644 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1645 * i386-tdep.c (i386_gdbarch_init): Ditto.
1646 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1647 * frv-tdep.c (frv_gdbarch_init): Ditto.
1648 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1649 * cris-tdep.c (cris_gdbarch_init): Ditto.
1650 * avr-tdep.c (avr_gdbarch_init): Ditto.
1651 * arm-tdep.c (arm_gdbarch_init): Ditto.
1652 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1653
1654 2002-11-28 Andrew Cagney <cagney@redhat.com>
1655
1656 * frame.h: Update comments on set_current_frame, create_new_frame,
1657 flush_cached_frames, reinit_frame_cache, select_frame and
1658 selected_frame.
1659
1660 2002-11-27 Andrew Cagney <cagney@redhat.com>
1661
1662 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1663 deprecated pc_in_call_dummy function.
1664 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1665 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1666 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1667 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1668 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1669
1670 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1671
1672 * Makefile.in: Remove Tix dependencies.
1673 * acinclude.m4: Ditto.
1674 * aclocal.m4: Ditto.
1675 * configure.in: Ditto.
1676 * configure: Regenerated.
1677
1678 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1679
1680 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1681 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1682 * gdbarch.c: Re-generate.
1683
1684 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1685
1686 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1687 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1688 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1689 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1690 pc_in_call_dummy_at_entry_point.
1691 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1692 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1693 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1694 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1695 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1696 pc_in_call_dummy_on_stack.
1697 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1698 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1699 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1700 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1701 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1702
1703 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1704
1705 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1706 pc_in_call_dummy_before_text_end
1707 (deprecated_pc_in_call_dummy_after_text_end): Rename
1708 pc_in_call_dummy_after_text_end.
1709 (deprecated_pc_in_call_dummy_on_stack): Rename
1710 pc_in_call_dummy_on_stack.
1711 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1712 pc_in_call_dummy_at_entry_point.
1713 * m68k-tdep.c (m68k_gdbarch_init): Update.
1714 * s390-tdep.c (s390_gdbarch_init): Update.
1715 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1716 * vax-tdep.c (vax_gdbarch_init): Update.
1717 * sparc-tdep.c (sparc_gdbarch_init): Update.
1718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1720 * i386-tdep.c (i386_gdbarch_init): Update.
1721 * frv-tdep.c (frv_gdbarch_init): Update.
1722 * cris-tdep.c (cris_gdbarch_init): Update.
1723 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1724 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1725 (deprecated_pc_in_call_dummy_after_text_end)
1726 (deprecated_pc_in_call_dummy_on_stack)
1727 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1728 * alpha-tdep.c (alpha_gdbarch_init): Update.
1729
1730 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * acconfig.h (HAVE_PREAD64): Add.
1733 * configure.in: Check for pread64.
1734 * config.in: Regenerated.
1735 * configure: Regenerated.
1736 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1737 * linux-proc.c (linux_proc_xfer_memory): New function.
1738 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1739
1740 2002-11-25 David Carlton <carlton@math.stanford.edu>
1741
1742 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1743 pdi's with no name.
1744
1745 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1746
1747 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1748 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1749
1750 2002-11-25 Jim Blandy <jimb@redhat.com>
1751
1752 * symfile.c (init_objfile_sect_indices): New function.
1753 (default_symfile_offsets): Move the section-index-initializing
1754 stuff into init_objfile_sect_indices, and call that.
1755
1756 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1757 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1758
1759 * symfile.c (syms_from_objfile): Adjust indentation.
1760
1761 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1762 || info_verbose isn't true.
1763
1764 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1765
1766 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1767 default to get_frame_base.
1768 * gdbarch.h, gdbarch.c: Regenerate.
1769 * arch-utils.c (default_frame_address): Delete function.
1770 * arch-utils.h (default_frame_address): Delete declaration
1771
1772 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1773
1774 * varobj.c (find_frame_addr_in_frame_chain):
1775 Use get_frame_base instead of FRAME_FP,
1776 obvious fix.
1777
1778 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1779
1780 * frame.h (FRAME_FP): Delete macro.
1781 (get_frame_base): New function declaration.
1782 * frame.c (get_frame_base): New function.
1783 (get_frame_id): Use ->frame.
1784 (frame_find_by_id): Rewrite to use get_frame_id.
1785 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1786 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1787 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1788 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1789 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1790 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1791 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1792
1793 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1794
1795 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1796
1797 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1798
1799 * frame.c (set_unwind_by_pc): Revert change below, use
1800 PC_IN_CALL_DUMMY.
1801 (get_prev_frame): Ditto.
1802
1803 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1804
1805 * dummy-frame.c (pc_in_dummy_frame): New function.
1806 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1807 (find_dummy_frame): Update comment.
1808 (generic_pop_current_frame): Use get_frame_type.
1809 * dummy-frame.h (pc_in_dummy_frame): Declare.
1810 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1811 (create_new_frame): Use pc_in_dummy_frame.
1812 (get_prev_frame): Use pc_in_dummy_frame.
1813 (frame_saved_regs_register_unwind): Use get_prev_frame.
1814 (deprecated_generic_get_saved_register): Use get_prev_frame.
1815
1816 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1817
1818 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1819 from here ...
1820 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1821 (varobj_create): Note that frame ID should be used.
1822 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1823
1824 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1825
1826 * breakpoint.c: Include "gdb_assert.h".
1827 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1828 not being used.
1829 * Makefile.in (breakpoint.o): Update dependencies.
1830 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1831 deprecated_frame_in_dummy.
1832 * stack.c (print_frame_info_base): Ditto.
1833 (frame_info): Ditto.
1834 (print_frame_info_base): Ditto. Delete dead code.
1835
1836 2002-11-23 Andreas Schwab <schwab@suse.de>
1837
1838 * Makefile.in (m68k_tdep_h): Define.
1839 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1840 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1841 * m68k-tdep.c: Move register number enum ...
1842 * m68k-tdep.h: ... to this new file and rename the constants from
1843 E_* to M68K_*. All uses changed.
1844 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1845 * abug-rom.c: Include "m68k-tdep.h". Use
1846 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1847 * cpu32bug-rom.c: Likewise.
1848 * dbug-rom.c: Likewise.
1849 * m68k-tdep.c: Likewise.
1850 * m68klinux-nat.c: Likewise.
1851 * remote-est.c: Likewise.
1852 * rom68k-rom.c: Likewise.
1853 * config/m68k/tm-linux.h: Likewise.
1854
1855 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1856
1857 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1858 dummy frame initialization code.
1859 * mips-tdep.c (mips_gdbarch_init): Ditto.
1860
1861 2002-11-22 Christopher Faylor <cgf@redhat.com>
1862
1863 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1864 attach will hang.
1865
1866 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1867
1868 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1869 to default_frame_address.
1870 * gdbarch.h, gdbarch.c: Re-generate.
1871
1872 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1873 or frame_locals_address to default_frame_address.
1874 * m68k-tdep.c (m68k_gdbarch_init): Update.
1875 * i386-tdep.c (i386_gdbarch_init): Update.
1876 * frv-tdep.c (frv_gdbarch_init): Update.
1877 * sh-tdep.c (sh_gdbarch_init): Update.
1878 * v850-tdep.c (v850_gdbarch_init): Update.
1879 * sparc-tdep.c (sparc_gdbarch_init): Update.
1880 * mips-tdep.c (mips_gdbarch_init): Update.
1881 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1882 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1884
1885 * cris-tdep.c (cris_frame_args_address): Delete function.
1886 (cris_frame_locals_address): Delete function.
1887 (cris_gdbarch_init): Do not set frame_args_address or
1888 frame_locals_address.
1889
1890 2002-11-22 Michael Snyder <msnyder@redhat.com>
1891
1892 * thread-db.c (thread_db_load): Tell the user what's going on
1893 if dlopen fails on libthread_db.
1894
1895 2002-11-23 Andreas Schwab <schwab@suse.de>
1896
1897 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1898 invariant return values.
1899
1900 2002-11-22 Andreas Schwab <schwab@suse.de>
1901
1902 * valops.c (value_slice): Move declaration of `offset' to avoid
1903 warning.
1904
1905 2002-11-22 Christopher Faylor <cgf@redhat.com>
1906
1907 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1908 (struct so_stuff): Add end_addr field.
1909 (register_loaded_dll): Calculate and store end address of loaded dll.
1910 (solib_address): New function.
1911 (child_solib_loaded_library_pathname): Pass carefully constructed
1912 section info to safe_symbol_file_add rather than ignoring it.
1913 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1914 DLL is loaded.
1915 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1916 (child_create_inferior): Fix a compiler warning.
1917 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1918 (solib_address): Declare new function.
1919
1920 2002-11-22 Andreas Schwab <schwab@suse.de>
1921
1922 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1923 and FPS registers.
1924
1925 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1926
1927 * maint.c (_initialize_maint_cmds): Fix typo. From
1928 Francesco Potorti` <pot@gnu.org>.
1929
1930 2002-11-21 Andrew Cagney <cagney@redhat.com>
1931
1932 * mips-tdep.c (mips_dump_tdep): Delete references to
1933 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1934 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1935 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1936 * printcmd.c (build_address_symbolic): Delete calls to
1937 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1938 (address_info): Ditto.
1939 Fix PR gdb/773.
1940
1941 2002-11-19 Klee Dienes <kdienes@apple.com>
1942 Adam Fedor <fedor@gnu.org>
1943
1944 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1945 the ability to explicitly specify the quote characters and word
1946 break characters; if NULL is specified for either, use the old
1947 behavior of using the characters used by the completer.
1948 (skip_chars): New function. Convenience wrapper around
1949 skip_quoted_chars to provide the original skip_chars behavior.
1950 * completer.h (skip_quoted_chars): Add prototype.
1951
1952 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1953
1954 Problems reported by Paul Eggert.
1955 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1956
1957 2002-11-19 Andreas Schwab <schwab@suse.de>
1958
1959 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1960 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1961 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1962 (m68k_linux_frame_saved_pc): Move to ...
1963 * m68klinux-tdep.c: ... here. New file.
1964 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1965 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1966
1967 2002-11-19 Adam Fedor <fedor@gnu.org>
1968
1969 * objc-exp.y: Revert to old skip_quoted usage.
1970
1971 2002-11-19 Adam Fedor <fedor@gnu.org>
1972
1973 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1974 (objc_lang_h): Define.
1975 (YYFILES): Add objc-exp.tab.c.
1976 (local-maintainer-clean): Remove objc-exp.tab.c.
1977 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1978
1979 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1980
1981 * p-exp.y (typecast rule): Add automatic dereference of
1982 pascal classes if needed.
1983 (THIS): Set current_type.
1984 Automatically dereference pascal classes.
1985 (typebase rule): Add ^typebase recognition.
1986
1987 2002-11-18 Adam Fedor <fedor@gnu.org>
1988
1989 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1990 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1991 (op_name): Handle OP_OBJC_SELF.
1992 * Makefile.in (expprint.o): Add additional depends.
1993
1994 2002-11-18 Adam Fedor <fedor@gnu.org>
1995
1996 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1997 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1998 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1999 * objc-exp.y: Likewise.
2000
2001 2002-11-18 Adam Fedor <fedor@gnu.org>
2002
2003 * gdb/parser-defs.h: (struct objc_class_str): New structure
2004 for parsing ObjC classes.
2005
2006 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2007
2008 * stack.c (frame_relative_level): Copy function from here ...
2009 * frame.c (frame_relative_level): ...to here.
2010
2011 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2012
2013 * frame.h (enum frame_type): Define.
2014 (get_frame_type): Declare.
2015 (struct frame_info): Add field `type'. Delete field
2016 signal_handler_caller.
2017 (deprecated_set_frame_signal_handler_caller): Declare.
2018 * frame.c (get_frame_type): New function.
2019 (deprecated_set_frame_type): New function.
2020 (create_new_frame): Set the frame's type.
2021 (get_prev_frame): Similar.
2022 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2023 * s390-tdep.c: Ditto.
2024 * m68klinux-nat.c: Ditto.
2025 * ns32k-tdep.c: Ditto.
2026 * x86-64-linux-tdep.c: Ditto.
2027 * vax-tdep.c: Ditto.
2028 * rs6000-tdep.c: Ditto.
2029 * ppc-linux-tdep.c: Ditto.
2030 * i386-interix-tdep.c: Ditto.
2031 * mips-tdep.c: Ditto.
2032 * m68k-tdep.c: Ditto.
2033 * hppa-tdep.c: Ditto.
2034 * ia64-tdep.c: Ditto.
2035 * cris-tdep.c: Ditto.
2036 * arm-tdep.c: Ditto.
2037 * alpha-tdep.c: Ditto.
2038 * i386-tdep.c: Ditto.
2039 * stack.c: Ditto.
2040 * ada-lang.c: Ditto.
2041 * blockframe.c: Update.
2042 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2043 deprecated_set_frame_type instead of signal_handler_caller.
2044 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2045 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2046 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2047
2048 2002-11-18 Klee Dienes <kdienes@apple.com>
2049
2050 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2051
2052 2002-11-18 Klee Dienes <kdienes@apple.com>
2053
2054 * buildsym.c (pop_context): Add comment.
2055
2056 2002-11-18 Klee Dienes <kdienes@apple.com>
2057
2058 * buildsym.h (pop_context): Convert to function, defined in
2059 buildsym.c.
2060 * buildsym.c: Include gdb_assert.h.
2061 (pop_context): Implement as C function. Add check for stack
2062 underflow.
2063 * dbxread.c (process_one_symbol): Complain and stop processing
2064 that symbol if we are already at the top of the context stack for
2065 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2066 when processing N_RBRAC.
2067
2068 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2069
2070 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2071 define.
2072 (struct target_waitstatus): Add opaque definition.
2073 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2074 * exec.c (init_exec_ops): Likewise.
2075 * fork-child.c (clone_and_follow_inferior): Remove.
2076 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2077 * inferior.h (clone_and_follow_inferior): Remove prototype.
2078 * infrun.c (follow_fork_mode_both): Remove.
2079 (follow_fork_mode_kind_names): Remove commented out "both".
2080 (follow_inferior_fork): Remove follow_fork_mode_both support.
2081 * inftarg.c (child_clone_and_follow_inferior): Remove.
2082 (child_post_follow_inferior_by_clone): Remove.
2083 (init_child_ops): Don't set to_clone_and_follow_inferior
2084 or to_post_follow_inferior_by_clone.
2085 * target.c (default_clone_and_follow_inferior): Remove.
2086 (cleanup_target): Don't set to_clone_and_follow_inferior
2087 or to_post_follow_inferior_by_clone.
2088 (find_default_clone_and_follow_inferior): Remove.
2089 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2090 (debug_to_clone_and_follow_inferior): Remove.
2091 (debug_to_post_follow_inferior_by_clone): Remove.
2092 (setup_target_debug): Don't set to_clone_and_follow_inferior
2093 or to_post_follow_inferior_by_clone.
2094 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2095 and to_post_follow_inferior_by_clone.
2096 (child_clone_and_follow_inferior): Remove prototype.
2097 (child_post_follow_inferior_by_clone): Remove prototype.
2098 (target_clone_and_follow_inferior): Remove macro.
2099 (target_post_follow_inferior_by_clone): Remove macro.
2100 (find_default_clone_and_follow_inferior): Remove prototype.
2101
2102 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2103
2104 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2105 inferior_has_vforked, and inferior_has_execd instead of
2106 target_has_forked, target_has_vforked, and target_has_execd.
2107 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2108 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2109 (CHILD_WAIT): Define.
2110 (child_wait): Add prototype.
2111 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2112 Add prototype.
2113 (hpux_has_vforked): Likewise, from child_has_vforked.
2114 (hpux_has_execd): Likewise, from child_has_execd.
2115 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2116 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2117 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2118 and hpux_has_syscall_event instead of the target hooks.
2119 * infrun.c (inferior_has_forked, inferior_has_vforked)
2120 (inferior_has_execd): New functions.
2121 * inftarg.c (not_same_real_pid): Remove.
2122 (child_wait): Remove references to not_same_real_pid,
2123 target_has_forked, target_has_vforked, target_has_execd,
2124 and target_has_syscall_event.
2125 (child_has_forked, child_has_vforked, child_has_execd)
2126 (child_has_syscall_event): Remove.
2127 (init_child_ops): Remove references to child_has_forked,
2128 child_has_vforked, child_has_execd, and child_has_syscall_event.
2129 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2130 (hpux_has_vforked): Likewise, from child_has_vforked.
2131 (hpux_has_execd): Likewise, from child_has_execd.
2132 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2133 * target.c (cleanup_target): Remove references to
2134 to_has_forked, to_has_vforked, to_has_execd, and
2135 to_has_syscall_event.
2136 (update_current_target): Likewise.
2137 (setup_target_debug): Likewise.
2138 (debug_to_has_forked): Remove.
2139 (debug_to_has_vforked): Remove.
2140 (debug_to_has_execd): Remove.
2141 (debug_to_has_syscall_event): Remove.
2142 * target.h (struct target_ops): Remove to_has_forked.
2143 to_has_vforked, to_has_execd, and to_has_syscall_event.
2144 (child_has_forked, child_has_vforked, child_has_execd)
2145 (child_has_syscall_event): Remove prototypes.
2146 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2147 prototypes.
2148 (target_has_forked, target_has_vforked, target_has_execd)
2149 (target_has_syscall_event): Remove macros.
2150
2151 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2152
2153 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2154 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2155 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2156 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2157 * target.c (cleanup_target): Remove reference to
2158 to_can_follow_vfork_prior_to_exec.
2159 (update_current_target): Likewise.
2160 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2161 (setup_target_debug): Remove reference to
2162 to_can_follow_vfork_prior_to_exec.
2163 * target.h (struct target_ops): Remove
2164 to_can_follow_vfork_prior_to_exec.
2165 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2166 (target_can_follow_vfork_prior_to_exec): Remove definition.
2167 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2168 define.
2169 * infrun.c (follow_vfork_when_exec): Remove.
2170 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2171 (follow_exec): Likewise.
2172 (handle_inferior_event): Likewise.
2173 (keep_going): Likewise.
2174
2175 2002-11-15 Andrew Cagney <cagney@redhat.com>
2176
2177 * frame.c (generic_unwind_get_saved_register): Make static.
2178 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2179 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2180 defaults to generic_unwind_get_saved_register.
2181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2183 * frv-tdep.c (frv_gdbarch_init): Ditto.
2184 * i386-tdep.c (i386_gdbarch_init): Ditto.
2185 * s390-tdep.c (s390_gdbarch_init): Ditto.
2186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2187 * v850-tdep.c (v850_gdbarch_init): Ditto.
2188 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2189 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2190 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2191
2192 2002-11-15 Andrew Cagney <cagney@redhat.com>
2193
2194 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2195 i386-tdep.c.
2196
2197 2002-11-15 Andrew Cagney <cagney@redhat.com>
2198
2199 * frame.h (sigtramp_saved_pc): Delete declaration.
2200 * blockframe.c (sigtramp_saved_pc): Delete function.
2201 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2202 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2203 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2204 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2205
2206 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2207
2208 * frame.c (frame_pc_unwind): New function.
2209 (frame_saved_regs_pc_unwind): New function.
2210 (frame_register_unwind): Pass unwind_cache instead of
2211 register_unwind_cache.
2212 (set_unwind_by_pc): Add unwind_pc parameter, set.
2213 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2214 (get_prev_frame): Ditto.
2215 * frame.h (frame_pc_unwind_ftype): Declare.
2216 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2217 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2218 (frame_pc_unwind): Declare.
2219 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2220 (struct dummy_frame): Add comment mentioning that values are for
2221 previous frame.
2222 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2223 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2224 (generic_file_frame_chain_valid): Ditto.
2225 * stack.c (frame_info): Ditto.
2226
2227 2002-11-15 David Carlton <carlton@math.stanford.edu>
2228
2229 * linespec.c (locate_first_half): New function.
2230 (decode_line_1): Move code into locate_first_half.
2231
2232 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2233
2234 * complaints.h: Add comment explaining how to eliminate a
2235 deprecated_complain call.
2236 * complaints.h: Fix spelling errors.
2237
2238 2002-11-15 David Carlton <carlton@math.stanford.edu>
2239
2240 * printcmd.c: Remove #include "disasm.h".
2241
2242 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2243
2244 * frame.h: Move the most relevant interface functions to the start
2245 of the file.
2246
2247 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2248
2249 * regcache.h (deprecated_registers): Rename registers.
2250 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2251 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2252 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2253 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2254 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2255 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2256 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2257 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2258 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2259 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2260 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2261 * v850ice.c: Update.
2262
2263 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2264
2265 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2266 NULL buffer.
2267
2268 2002-11-13 Andrew Cagney <cagney@redhat.com>
2269
2270 * regcache.h (deprecated_read_register_bytes): Rename
2271 read_register_bytes.
2272 (deprecated_write_register_bytes): Rename write_register_bytes.
2273 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2274 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2275 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2276 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2277 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2278 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2279 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2280 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2281 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2282 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2283 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2284 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2285 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2286 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2287
2288 2002-11-13 Jim Blandy <jimb@redhat.com>
2289
2290 * findvar.c (read_var_value): Doc fix.
2291
2292 2002-11-13 Andrew Cagney <cagney@redhat.com>
2293
2294 * regcache.c (struct regcache): Replace passthough_p with
2295 readonly_p.
2296 (regcache_xmalloc): Initialize readonly_p.
2297 (build_regcache): Initialize readonly_p.
2298 (regcache_save): New function.
2299 (regcache_restore): New function.
2300 (regcache_cpy): Re-implement using regcache_save and
2301 regcache_restore.
2302 (regcache_raw_read): Update.
2303 (regcache_cooked_read): When a read-only cache, checked for cached
2304 pseudo register values.
2305 (regcache_raw_write): Assert that the cache is not read-only.
2306 Remove code handling a non-passthrough cache.
2307 * regcache.h (regcache_save): Declare.
2308 (regcache_restore): Declare.
2309
2310 2002-11-13 Andrew Cagney <cagney@redhat.com>
2311
2312 * regcache.c (struct regcache_descr): Add fields
2313 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2314 (init_legacy_regcache_descr): Compute the size of a cooked
2315 register cache and then assign that to sizeof_raw_registers. Set
2316 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2317 (init_legacy_regcache_descr): Ditto.
2318
2319 2002-11-13 Andrew Cagney <cagney@redhat.com>
2320
2321 * regcache.c (register_buffer): Move to near start of file, update
2322 description.
2323 (regcache_raw_read): Use.
2324 (regcache_raw_write): Use.
2325 (struct regcache): Rename raw_registers to registers and
2326 raw_register_valid_p to register_valid_p.
2327 (regcache_xmalloc): Update.
2328 (regcache_xfree): Update.
2329 (register_buffer): Update.
2330 (regcache_cpy): Update.
2331 (regcache_cpy_no_passthrough): Update.
2332 (regcache_valid_p): Update.
2333 (deprecated_grub_regcache_for_registers): Update.
2334 (deprecated_grub_regcache_for_register_valid): Update.
2335 (set_register_cached): Update.
2336 (regcache_raw_write): Update.
2337
2338 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2339
2340 * p-exp.y (name_not_typename): Use copy_name to
2341 set current_type variable for fields of THIS.
2342
2343 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2344
2345 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2346 * monitor.c (init_base_monitor_ops): Likewise.
2347 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2348 * remote-array.c (init_array_ops): Likewise.
2349 * remote-e7000.c (init_e7000_ops): Likewise.
2350 * remote-es.c (init_es1800_ops): Likewise.
2351 (init_es1800_child_ops): Likewise.
2352 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2353 * remote-sim.c (init_gdbsim_ops): Likewise.
2354 * remote-st.c (init_st2000_ops): Likewise.
2355 * sol-thread.c (init_sol_core_ops): Likewise.
2356 (init_sol_thread_ops): Likewise.
2357 * v850ice.c (init_850ice_ops): Likewise.
2358 * win32-nat.c (init_child_ops): Likewise.
2359 * wince.c (init_child_ops): Likewise.
2360
2361 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2362
2363 * utils.c (gdb_realpath): Make rp a constant pointer.
2364
2365 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2366
2367 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2368 a constant buffer; cannonicalize_file_name(); realpath() with a
2369 pathconf() defined buffer, xstrdup().
2370
2371 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2372
2373 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2374 to hang2.C; hang3.c to hang3.C.
2375
2376 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2377
2378 * findvar.c (read_var_value): Reenable TLS code.
2379
2380 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2381 Jim Blandy <jimb@redhat.com>
2382
2383 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2384 * target.c (update_current_target): Add
2385 to_get_thread_local_address.
2386 * target.h (to_get_thread_local_address): Export.
2387 (target_get_thread_local_address): Define.
2388 (target_get_thread_local_address_p): Define.
2389 * thread-db.c: Include solib-svr4.h.
2390 (td_thr_tls_get_addr_p): Define.
2391 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2392 (thread_db_get_thread_local_address): New function.
2393 (init_thread_db_ops): Initialize to_get_thread_local_address.
2394 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2395 * configure: Regenerate.
2396 * config.in: Regenerate.
2397
2398 2002-11-11 David Carlton <carlton@math.stanford.edu>
2399
2400 * linespec.c (set_flags): New function.
2401 (decode_line_1): Move code into set_flags.
2402
2403 2002-11-11 David Carlton <carlton@math.stanford.edu>
2404
2405 * linespec.c (decode_line_1): Move chunks of code to separate
2406 functions.
2407 (initialize_defaults): New function.
2408 (decode_indirect): New function.
2409
2410 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2411
2412 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2413 instead of void_code_ptr.
2414 (sigtramp_saved_pc): Ditto.
2415
2416 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2417 i386_fp_regnum_p.
2418
2419 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2420
2421 * gdbtypes.h (struct main_type): Move artificial flag out of
2422 loc. New member of ``struct field'' named static_kind. Reduce
2423 overloaded meaning of bitsize.
2424 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2425 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2426 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2427
2428 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2429 new fields.
2430 (template_to_fixed_record_type, template_to_static_fixed_type)
2431 (to_record_with_fixed_variant_part): Likewise.
2432 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2433 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2434 * dwarfread.c (struct_type, enum_type): Likewise.
2435 * hpread.c (hpread_read_enum_type)
2436 (hpread_read_function_type, hpread_read_doc_function_type)
2437 (hpread_read_struct_type): Likewise.
2438 * mdebugread.c (parse_symbol): Likewise.
2439
2440 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2441
2442 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2443 * stack.c (print_frame_info_base): Update.
2444 (print_frame_info_base, frame_info): Update.
2445 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2446 (sparc_frame_saved_pc): Update.
2447 * ada-lang.c (find_printable_frame): Update.
2448 * breakpoint.c (deprecated_frame_in_dummy): Update.
2449
2450 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2451
2452 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2453 defined.
2454 (regmap): Extend to cover all registers.
2455 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2456 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2457 definitions.
2458 (fetch_register, sore_register): Simplify.
2459 (old_fetch_inferior_registers, old_store_inferior_registers):
2460 Remove functions.
2461 (cannot_fetch_register, cannot_store_register): Change
2462 implementation to use regmap array to decide which registers
2463 cannot be fetched/stored. This removes $orig_eax from the
2464 registers that cannot be fetched/stored.
2465 (fetch_inferior_registers): Call fetch_register directly instead
2466 of calling old_fetch_inferior_registers.
2467 (store_inferior_registers): Call store_register directly instead
2468 of calling old_store_inferior_registers.
2469 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2470 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2471 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2472
2473 2002-11-09 Klee Dienes <kdienes@apple.com>
2474
2475 * i387-tdep.c (i387_supply_register): When called with NULL as a
2476 buffer, mark the register as not provided (to mirror the behavior
2477 of supply_register).
2478 (i387_supply_fxsave): Ditto.
2479 (i387_supply_fsave): Ditto (inherits the behavior from
2480 i387_supply_register).
2481
2482 2002-11-09 Klee Dienes <kdienes@apple.com>
2483
2484 * blockframe.c (sigtramp_saved_pc): Use
2485 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2486 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2487 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2488
2489 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2490
2491 * frame.c (get_prev_frame): Test prev_p to identify a previously
2492 unwound frame. Initialize prev_p.
2493 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2494 comment.
2495
2496 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2497
2498 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2499 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2500 more comments. Zap dead code.
2501
2502 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2503
2504 * infcmd.c (print_vector_info, print_float_info): Move code that
2505 checks whether the target has any registers and whether there is a
2506 selected frame up, such that it is also used if a target provides
2507 multi-arch definitions of these functions.
2508
2509 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2510
2511 * Makefile.in (DESTDIR): Define.
2512 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2513 prefix.
2514
2515 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2516 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2517
2518 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2519
2520 * i386-linux-tdep.c: Include "reggroups.h".
2521 (i386_linux_register_reggroup_p): New function.
2522 (i386_linux_init_abi): Set register_reggroup_p to
2523 i386_linux_register_reggroup_p.
2524 * i386-tdep.h (i386_register_reggroup_p): Declare.
2525 * i386-tdep.c: Include "reggroups.h".
2526 (i386_init_reggroups): New function.
2527 (i386_add_reggroups): New function.
2528 (i386_register_reggroup_p): New function.
2529 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2530 (_initialize_i386_tdep): Call i386_init_reggroups.
2531 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2532 specific reggroups.
2533
2534 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2535
2536 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2537 request that's available in *BSD.
2538
2539 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2540
2541 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2542 FDOFF_REGNUM.
2543
2544 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2545
2546 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2547 * dummy-frame.c (find_dummy_frame): Rename
2548 generic_find_dummy_frame, make static. Return the dummy frame
2549 instead of the regcache.
2550 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2551 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2552 (dummy_frame_register_unwind): Rename
2553 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2554 * dummy-frame.h (dummy_frame_register_unwind): Rename
2555 generic_call_dummy_register_unwind.
2556
2557 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2558
2559 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2560 except the inclusion of "i386/tm-i386.h", to...
2561 * config/i386/nm-i386v42mp.h: ...here.
2562 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2563
2564 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2565
2566 * Makefile.in (frame.o): Update dependencies.
2567 * blockframe.c (current_frame, frame_obstack_alloc)
2568 (frame_saved_regs_zalloc, get_current_frame)
2569 (set_current_frame, create_new_frame)
2570 (set_unwind_by_pc, get_next_frame)
2571 (flush_cached_frames, reinit_frame_cache)
2572 (frame_saved_regs_register_unwind)
2573 (deprecated_generic_get_saved_register)
2574 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2575 (_initialize_blockframe): Move frame code from here...
2576 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2577 "annotate.h" and "dummy-frame.h".
2578 (_initialize_frame): New function.
2579
2580 2002-11-08 Jim Blandy <jimb@redhat.com>
2581
2582 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2583 when we finish a function a context.
2584 * buildsym.h (outermost_context_p): New macro.
2585 (Bug analyzed by David Edelsohn.)
2586
2587 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2588
2589 * blockframe.c: Include "dummy-frame.h".
2590 (struct dummy_frame, dummy_frame_stack)
2591 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2592 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2593 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2594 (generic_save_call_dummy_addr, generic_pop_current_frame)
2595 (generic_pop_dummy_frame, generic_fix_call_dummy)
2596 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2597 dummy frame code from here...
2598 * dummy-frame.c: ...to here. New file.
2599 * dummy-frame.h: New file.
2600 (generic_call_dummy_register_unwind): Declare.
2601 (generic_find_dummy_frame): Declare.
2602 * Makefile.in (SFILES): Add dummy-frame.c.
2603 (dummy-frame.o): Specify dependencies.
2604 (dummy_frame_h): Define.
2605 (COMMON_OBS): Add dummy-frame.o.
2606 (blockframe.o): Update dependencies.
2607
2608 2002-11-08 Jim Blandy <jimb@redhat.com>
2609
2610 * dwarf2read.c (read_func_scope): Restore local_symbols and
2611 param_symbols after we finish the function context. (Based on a
2612 patch from David Edelsohn.)
2613
2614 2002-11-08 David Carlton <carlton@math.stanford.edu>
2615
2616 * linespec.c (symbol_found): New function.
2617 (minsym_found): New function.
2618 (decode_line_1): Separate out some code into separate functions.
2619
2620 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2621
2622 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2623 the benefit of the interix target.
2624 * i386-tdep.h (i386_frameless_signal_p): Declare.
2625
2626 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2627
2628 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2629 declaration that snuck in from change below.
2630
2631 2002-11-06 Andrew Cagney <cagney@redhat.com>
2632
2633 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2634 all callers.
2635 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2636 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2637 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2638 (i386_mxcsr_regnum_p): new function. Use instead of
2639 MXCSR_REGNUM_P.
2640 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2641 (i386_sse_regnum_p): Declare.
2642 (i386_mxcsr_regnum_p): Declare.
2643 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2644 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2645 (IS_FP_REGNUM): Update definition.
2646 (IS_FPU_CTRL_REGNUM): Update definition..
2647 (IS_SSE_REGNUM): Update definition..
2648 * i386v-nat.c (register_u_addr): Update.
2649 * go32-nat.c (fetch_register): Update.
2650 (store_register): Update.
2651
2652 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2653
2654 Preparation work to convert the hppa targets to multiarch partial.
2655
2656 * hppa-tdep.c: Add new functions replacing macro bodies from
2657 config/pa/tm-hppa.h. These function will be used to initialize
2658 the gdbarch structure. Import some comments from tm-hppa.h,
2659 and place them where appropriate, to avoid loosing them when
2660 we cleanup this file.
2661 (hppa_reg_struct_has_addr): New function.
2662 (hppa_inner_than): New function.
2663 (hppa_stack_align): New function.
2664 (hppa_pc_requires_run_before_use): New function.
2665 (hppa_instruction_nullified): New function.
2666 (hppa_register_byte): New function.
2667 (hppa_register_virtual_type): New function.
2668 (hppa_store_struct_return): New function.
2669 (hppa_cannot_store_register): New function.
2670 (hppa_frame_args_address): New function.
2671 (hppa_frame_locals_address): New function.
2672 (hppa_smash_text_address): New function.
2673 (hppa_coerce_float_to_double): New function. Requires the inclusion
2674 of "language.h".
2675
2676 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2677
2678 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2679 gdbarch-eligible macro to a call to the new associated function
2680 created in hppa-tdep.c.
2681 (INNER_THAN): Likewise.
2682 (STACK_ALIGN): Likewise.
2683 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2684 (INSTRUCTION_NULLIFIED): Likewise.
2685 (REGISTER_BYTE): Likewise.
2686 (REGISTER_VIRTUAL_TYPE): Likewise.
2687 (STORE_STRUCT_RETURN): Likewise.
2688 (CANNOT_STORE_REGISTER): Likewise.
2689 (FRAME_ARGS_ADDRESS): Likewise.
2690 (FRAME_LOCALS_ADDRESS): Likewise.
2691 (SMASH_TEXT_ADDRESS): Likewise.
2692 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2693 (ABOUT_TO_RETURN): Delete, as no longer used.
2694
2695 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2696
2697 * printcmd.c (disassemble_command): Remove obsolete function.
2698 (_initialize_printcmd): Do not create disassemble command here.
2699 * cli/cli-cmds.c (disassemble_command): New function. Implements
2700 disassemble command.
2701 (init_cli_cmds): Create disassemble command here instead.
2702
2703 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2704
2705 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2706
2707 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2708
2709 * regcache.h (regcache_cooked_read_using_offset_hack)
2710 (regcache_cooked_write_using_offset_hack): Delete declarations.
2711 (register_changed): Delete declaration.
2712 * regcache.c (regcache_cooked_read_using_offset_hack)
2713 (regcache_cooked_write_using_offset_hack): Delete functions.
2714 (cooked_xfer_using_offset_hack): Delete function.
2715 (register_changed): Delete function.
2716
2717 2002-11-07 Jim Blandy <jimb@redhat.com>
2718
2719 * macroscope.c: #include "complaints.h".
2720 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2721 but not in the macro table.
2722 * Makefile.in (macroscope.o): Record dependency.
2723
2724 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2725
2726 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2727
2728 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2729
2730 * regcache.c (deprecated_registers_fetched): Update.
2731 * regcache.h (deprecated_registers_fetched): Rename
2732 registers_fetched.
2733 * remote-vxsparc.c (vx_read_register): Update.
2734 * remote-vxmips.c (vx_read_register): Update.
2735 * remote-vx68.c (vx_read_register): Update.
2736 * irix5-nat.c (fetch_core_registers): Update.
2737 * mipsm3-nat.c (fetch_inferior_registers): Update.
2738 * sun3-nat.c (fetch_inferior_registers): Update.
2739 * symm-nat.c (fetch_inferior_registers): Update.
2740 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2741 (fetch_core_registers): Update.
2742 (fetch_kcore_registers): Update.
2743 * mips-nat.c (fetch_inferior_registers): Update.
2744 * corelow.c (get_core_registers): Update.
2745 * a68v-nat.c (fetch_inferior_registers): Update.
2746
2747 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2748
2749 Put in place the framework necessary for multiarching the hppa targets.
2750 * hppa-tdep.c (hppa_gdbarch_init): New function.
2751 (hppa_dump_tdep): New function.
2752 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2753 tdep structure dumper.
2754 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2755 until the multi-arching conversion has partially been completed.
2756
2757 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2758
2759 * valops.c (value_assign): Merge lval_register case into
2760 lval_reg_frame_relative. Use frame_register and
2761 regcache_cooked_write instead of get_saved_register and
2762 write_register_bytes. After flushing the register cache, try to
2763 re-select the selected frame.
2764
2765 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2766
2767 * regcache.h (deprecated_register_valid): Rename register_valid.
2768 * regcache.c: Update.
2769 * ia64-aix-nat.c: Update.
2770 * i386gnu-nat.c: Update.
2771 * alpha-nat.c: Update.
2772 * sparc-nat.c: Update.
2773 * lynx-nat.c: Update.
2774 * remote-mips.c: Update.
2775
2776 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2777
2778 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2779 to end of file, to be more consistent with the pratice followed
2780 by other targets.
2781
2782 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2783
2784 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2785 (print_float_info): Print registers in float_reggroup.
2786 (print_vector_info): Print registers in vector_reggroup.
2787 (default_print_registers_info): When all, print registers in
2788 all_reggroup. Otherwize, print registers in general_reggroup.
2789 (registers_info): Rewrite. Add support for register groups.
2790 Eliminate a goto.
2791
2792 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2793
2794 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2795 ages.
2796 (symtab_symbol_info): Remove eons old ifdeffed out code.
2797 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2798 command.
2799
2800 2002-11-06 Theodore A. Roth <troth@openavr.org>
2801
2802 * c-exp.y: Add missing semi-colons.
2803 * f-exp.y: Add missing semi-colons.
2804 * m2-exp.y: Add missing semi-colons.
2805 * p-exp.y: Add missing semi-colons.
2806 Add empty action to start rule to avoid a type clash error when
2807 building with bison >= 1.50.
2808
2809 2002-11-06 Jim Blandy <jimb@redhat.com>
2810
2811 * macrotab.h (struct macro_source_file): Doc fix.
2812
2813 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2814
2815 * varobj.c (child_exists, cplus_number_of_children): Change
2816 STREQ macro references to strcmp.
2817 (cplus_name_of_child): Change code to handle the fact that
2818 fields are not necessarily contiguous with regards to their
2819 access control. This is a fix for PR gdb/792.
2820
2821 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2822
2823 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2824 * gdbarch.h, gdbarch.c: Regnerate.
2825 * frame.h (frame_register): Declare.
2826 * frame.c (frame_register): New function.
2827 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2828 GET_SAVED_REGISTER, otherwize call
2829 generic_unwind_get_saved_register.
2830 (frame_register_read): Use frame_register instead of
2831 get_saved_register.
2832
2833 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2834
2835 From Jim Ingham <jingham@apple.com>:
2836 * event-top.c (gdb_disable_readline): New function.
2837 (_initialize_event_loop): Move comment.
2838
2839 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2840
2841 * event-loop.c (start_event_loop): Add comment.
2842 Update copyright.
2843
2844 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2845
2846 * infcmd.c (default_print_registers_info): Do not call
2847 PRINT_REGISTER_HOOK.
2848
2849 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2850
2851 * sparc-tdep.c (sparc_print_register_hook): Make static.
2852 (sparc_print_registers_info): New function.
2853 (sparc_do_registers_info): New function.
2854 (sparclet_print_registers_info): New function.
2855 (sparclet_do_registers_info): New function.
2856 (do_sparc_print_registers_info): New function.
2857 (sparc_print_registers): New static function, clone of infcmd.c's
2858 default_print_registers_info.
2859 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2860 (sparclet_do_registers_info): Declare.
2861 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2862 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2863 Re-define.
2864 (sparc_do_registers_info): Declare.
2865 (PRINT_REGISTER_HOOK): Delete macro.
2866 (sparc_print_register_hook): Delete declaration.
2867
2868 2002-11-05 David Carlton <carlton@math.stanford.edu>
2869
2870 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2871 functions.
2872 (lookup_symbol_aux_local): New function.
2873 (lookup_symbol_aux_symtabs): New function.
2874 (lookup_symbol_aux_psymtabs): New function.
2875
2876 2002-11-05 David Carlton <carlton@math.stanford.edu>
2877
2878 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2879 previous values of 'objfile' and 'block'.
2880
2881 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2882
2883 * values.c (value_change_enclosing_type): Set
2884 enclosing_type field correctly also for the case where
2885 more memory needs to be allocated.
2886
2887 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2888
2889 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2890 of puts_filtered.
2891
2892 * i387-tdep.c (i387_print_float_info): Replace calls to
2893 register_read and deprecated_read_register_gen with calls to
2894 frame_register_read, and make the necessary adjustments to the
2895 surrounding code.
2896
2897 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2898
2899 * gdbarch.sh (register_reggroup_p): Allow default value.
2900 * gdbarch.h, gdbarch.c: Regenerate.
2901
2902 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2903
2904 * regcache.h: Add coment indicating replacements for deprecated
2905 functions.
2906
2907 2002-11-02 Andrew Cagney <cagney@redhat.com>
2908
2909 * reggroups.h, reggroups.c: New files.
2910 * regcache.c: Include "reggroups.h".
2911 (enum regcache_dump_what): Add `regcache_dump_groups'.
2912 (regcache_dump): Contract size of the "Type" column. When
2913 specified, dump the register's groups.
2914 (maintenance_print_register_groups): New function.
2915 (_initialize_regcache): Add command `maint print register-groups'.
2916 * Makefile.in (COMMON_OBS): Add reggroups.o
2917 (SFILES): Add reggroups.c.
2918 (reggroups_h): Define.
2919 (regcache.o, gdbarch.o): Update dependencies.
2920 (reggroups.o): Specify dependencies.
2921 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2922 Add opaque declaration for `struct reggroup' in generated .h file.
2923 Include "reggroups.h" in generated .c file.
2924 gdbarch.h, gdbarch.c: Re-generate.
2925
2926 2002-11-02 Andrew Cagney <cagney@redhat.com>
2927
2928 * regcache.h (deprecated_read_register_gen): Rename
2929 read_register_gen.
2930 (deprecated_write_register_gen): Rename write_register_gen.
2931 * i387-tdep.c: Update.
2932 * x86-64-linux-nat.c: Update
2933 * wince.c: Update.
2934 * thread-db.c: Update.
2935 * win32-nat.c: Update.
2936 * mips-tdep.c: Update.
2937 * d10v-tdep.c: Update.
2938 * cris-tdep.c: Update.
2939 * remote-sim.c: Update.
2940 * remote-rdi.c: Update.
2941 * remote-rdp.c: Update.
2942 * frame.c: Update.
2943 * target.c: Update.
2944 * blockframe.c: Update.
2945 * x86-64-tdep.c: Update.
2946 * xstormy16-tdep.c: Update.
2947 * sh-tdep.c: Update.
2948 * s390-tdep.c: Update.
2949 * rs6000-tdep.c: Update.
2950 * sparc-tdep.c: Update.
2951 * i386-tdep.c: Update.
2952 * dwarf2cfi.c: Update.
2953 * regcache.c: Update.
2954
2955 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2956
2957 New interix-specific files:
2958 * config/i386/nm-interix.h: New file.
2959 * config/i386/interix.mh: New file.
2960 * config/i386/interix.mt: New file.
2961 * i386-interix-nat.c: New file.
2962 * i386-interix-tdep.c: New file.
2963
2964 2002-11-01 Andrew Cagney <cagney@redhat.com>
2965
2966 * frame.h (deprecated_generic_get_saved_register): Rename
2967 generic_get_saved_register.
2968 * blockframe.c (deprecated_generic_get_saved_register): Update.
2969 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2970 (xstormy16_frame_saved_register): Update.
2971 * sh-tdep.c (sh_gdbarch_init): Update.
2972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2973 * ia64-tdep.c (ia64_get_saved_register): Update.
2974 * cris-tdep.c (cris_gdbarch_init): Update.
2975 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2976 * arm-tdep.c (arm_gdbarch_init): Update.
2977
2978 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2979
2980 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2981
2982 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2985 trampolines in sigaction.
2986
2987 2002-10-31 Andrew Cagney <cagney@redhat.com>
2988
2989 * h8300-tdep.c: Include "gdb_assert.h".
2990 (h8300_print_register): Add gdbarch, file and frame parameters.
2991 Use frame_read_unsigned_register to read the register's value.
2992 Use fprintf_filtered to display output.
2993 (h8300_print_registers_info): Replace h8300_do_registers_info.
2994 (h8300_gdbarch_init): Set print_registers_info.
2995
2996 2002-10-31 Andrew Cagney <cagney@redhat.com>
2997
2998 * frame.c (frame_read_unsigned_register): New function.
2999 (frame_read_signed_register): New function.
3000 * frame.h (frame_read_unsigned_register): Declare.
3001 (frame_read_signed_register): Declare.
3002
3003 2002-10-31 Andrew Cagney <cagney@redhat.com>
3004
3005 * h8500-tdep.c (h8500_print_registers_info): New static function,
3006 clone of infcmd.c's default_print_registers_info.
3007 (h8500_do_registers_info): New funtion.
3008 (h8500_print_register_hook): Rename print_register_hook, make
3009 static.
3010
3011 * config/h8500/tm-h8500.h: Update copyright.
3012 (DEPRECATED_DO_REGISTERS_INFO): Define.
3013 (h8500_do_registers_info: Declare.
3014 (PRINT_REGISTER_HOOK): Delete macro.
3015 (print_register_hook): Delete function.
3016
3017 2002-10-31 Andrew Cagney <cagney@redhat.com>
3018
3019 * z8k-tdep.c (z8k_print_register_hook): Make static.
3020 (z8k_print_registers_info): New static function, clone of
3021 infcmd.c's default_print_registers_info.
3022 (z8k_do_registers_info): New function. Wrap
3023 z8k_print_registers_info.
3024 * config/z8k/tm-z8k.h: Update copyright.
3025 (PRINT_REGISTER_HOOK): Delete macro.
3026 (z8k_print_register_hook): Delete declaration.
3027 (DEPRECATED_DO_REGISTERS_INFO): Define.
3028 (z8k_do_registers_info): Declare.
3029
3030 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3031
3032 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3033 as this is already provided by value.h, and was actually causing
3034 a compilation error because of a conflict in parameter type
3035 declaration due to a missing const keyword.
3036 (low_text_segment_addres): Fix a compilation warning.
3037
3038 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3039
3040 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3041 registers without a name.
3042 (mips_linux_cannot_store_register): Don't store registers without
3043 a name.
3044
3045 2002-10-28 David Carlton <carlton@math.stanford.edu>
3046
3047 * symtab.c (find_addr_symbol): Delete. (It was already commented
3048 out.)
3049 * symtab.h: Delete prototype for find_addr_symbol.
3050
3051 2002-10-26 Andrew Cagney <cagney@redhat.com>
3052
3053 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3054 DO_REGISTERS_INFO.
3055 gdbarch.h, gdbarch.c: Re-generate.
3056 * infcmd.c (default_print_registers_info): Update reference.
3057 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3058 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3059 * sh-tdep.c (sh_gdbarch_init): Ditto.
3060 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3062
3063 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3064
3065 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3066 cfi_init_extra_frame_info.
3067 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3068 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3069
3070 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3071 target where necessary. Add more comments and remove the ones
3072 that don't provide any useful information.
3073
3074 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3075 deprecated_read_register_dummy with
3076 frame_unwind_unsigned_register.
3077
3078 * i386-tdep.c (i386_extract_struct_value_address): Use
3079 regcache_raw_read_unsigned instead of
3080 regcache_cooked_read_unsigned since we know that the register
3081 we're reading isn't a pseudo register. Rename variable 'val' into
3082 the more descriptive 'addr'.
3083
3084 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3085 (x86_64_push_return_address): Add comment.
3086 (x86_64_pop_frame): Make static.
3087 (examine_argument): Clarify comment.
3088 (x86_64_skip_prologue): Make prolog_expact variable static.
3089
3090 * dwarf2cfi.c: Fix some formatting problems.
3091 (context_cpy, read_encoded_pointer): Clarify comments.
3092
3093 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3094 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3095 i386 target back into x86_64_gdbarch_init. Add some comments and
3096 remove meaningless ones.
3097
3098 2002-10-25 Andrew Cagney <cagney@redhat.com>
3099
3100 * complaints.h (struct deprecated_complaint): Rename `struct
3101 complaint'.
3102 * complaints.c (complain): Update.
3103 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3104 incorrect comment indicating that "symfile.h" was being included
3105 for the `struct complaint' definition.
3106 * remote-vx.c: Update.
3107 * objc-lang.c: Update.
3108 * xcoffread.c: Update.
3109 * hpread.c: Update.
3110 * mdebugread.c: Update.
3111 * stabsread.c: Update.
3112 * dwarf2read.c: Update.
3113 * dwarfread.c: Update.
3114 * elfread.c: Update.
3115 * coffread.c: Update.
3116 * stabsread.h: Update.
3117 * dbxread.c: Update.
3118 * buildsym.c: Update.
3119 * gdbtypes.c: Update.
3120 * macrotab.c: Update.
3121
3122 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3123
3124 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3125 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3126 (x86_64_init_abi): ...new function.
3127
3128 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3129 * i386v-nat.c: Include "i386-tdep.h".
3130
3131 2002-10-25 Andrew Cagney <cagney@redhat.com>
3132
3133 * gdbtypes.c (address_space_name_to_int): Update.
3134 (address_space_int_to_name): Update.
3135 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3136 multi-arch predicate.
3137 (address_class_name_to_type_flags): Ditto.
3138 * gdbarch.h, gdbarch.c: Re-generate.
3139
3140 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3141
3142 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3143
3144 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3145
3146 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3147
3148 * symtab.h (INIT_SAL): Delete macro.
3149 (init_sal): Export.
3150 * symtab.c (init_sal): New function.
3151
3152 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3153 to init_sal function call.
3154 (find_sal_from_funcs_and_line): Ditto.
3155 (all_sals_for_line): Ditto.
3156 * breakpoint.c (create_internal_breakpoint): Ditto.
3157 (create_fork_vfork_event_catchpoint): Ditto.
3158 (create_exec_event_catchpoint): Ditto.
3159 (parse_breakpoint_sals): Ditto.
3160 (watch_command_1): Ditto.
3161 (handle_gnu_4_16_catch_command): Ditto.
3162 (clear_command): Ditto.
3163 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3164 * infcmd.c (run_stack_dummy): Ditto.
3165 * infrun.c (process_event_stop_test): Ditto.
3166 (check_sigtramp2): Ditto.
3167 (step_over_function): Ditto.
3168 * linespec.c (decode_line_2): Ditto.
3169 (decode_line_1): Ditto.
3170 * source.c (line_info): Ditto.
3171 * symtab.c (find_pc_sect_line): Ditto.
3172
3173 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3174
3175 * dwarf2cfi.c (struct context)
3176 (struct context_reg): Moved to dwarf2cfi.h
3177 (context_alloc, frame_state_alloc, context_cpy):
3178 Made extern instead of static, removed prototypes.
3179 * dwarf2cfi.h (struct context)
3180 (struct context_reg): New, moved from dwarf2cfi.c
3181 (context_alloc, frame_state_alloc, context_cpy):
3182 New prototypes.
3183 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3184 Changed from static to extern.
3185 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3186 (LINUX_SIGCONTEXT_FP_OFFSET)
3187 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3188 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3189 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3190 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3191 set_gdbarch_*() calls now use x86-64 specific functions
3192 instead of DWARF2 CFI ones.
3193 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3194 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3195 (x86_64_init_extra_frame_info): New prototypes.
3196
3197 2002-10-23 David Carlton <carlton@math.stanford.edu>
3198
3199 * linespec.c: #include "parser-defs.h".
3200 Delete prototype for find_template_name_end.
3201 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3202
3203 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3204
3205 * NEWS: add recent mi fixes.
3206 * varobj.c (struct varobj): Add new "updated" flag.
3207 (new_variable): Default "updated" flag to 0.
3208 (varobj_set_value): Set "updated" flag to 1 if value
3209 changes.
3210 (varobj_update): Check varobj "updated" flag before
3211 comparing old and refreshed values. Fix for
3212 PR gdb/702.
3213
3214 2002-10-23 David Carlton <carlton@math.stanford.edu>
3215
3216 * parse.c (parse_exp_1): Use BLOCK_START.
3217 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3218 SYMBOL_BLOCK_VALUE.
3219 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3220
3221 2002-10-23 David Carlton <carlton@math.stanford.edu>
3222
3223 * symtab.c: Delete cplusplus_hint.
3224 Delete prototype for find_template_name_end.
3225
3226 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3227
3228 * symtab.h: Update comment.
3229
3230 2002-10-23 Michael Snyder <msnyder@redhat.com>
3231
3232 * printcmd.c (address_info): Restore quotes in output.
3233 * valops.c (value_of_local): Restore quotes in error message.
3234
3235 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3236
3237 * symtab.c (symbol_demangled_name): New function.
3238 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3239 turning most of it into a function.
3240 (symbol_demangled_name): Export.
3241
3242 2002-10-23 Michael Snyder <msnyder@redhat.com>
3243
3244 * valops.c (value_of_local): Restore quotes in error message.
3245
3246 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3247
3248 * symtab.c (symbol_init_language_specific): New function.
3249 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3250 turning most of it into a function.
3251 (symbol_init_language_specific): Export.
3252
3253 2002-10-23 David Carlton <carlton@math.stanford.edu>
3254
3255 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3256 (dwarf_attr_name): Ditto.
3257 (dwarf_type_encoding_name): Ditto.
3258 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3259 (process_die): Handle DW_TAG_namespace,
3260 DW_TAG_imported_declaration, DW_TAG_imported_module.
3261 (read_namespace): New function.
3262
3263 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3264
3265 * configure.in: Define NEW_PROC_API on Interix too.
3266 * configure: Regenerate.
3267
3268 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3269
3270 * configure: Regenerate using the proper version of autoconf.
3271
3272 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3273
3274 * findvar.c (read_var_value): Temporarily disable TLS code, until
3275 complete TLS support is added.
3276
3277 2002-10-21 Jim Blandy <jimb@redhat.com>
3278 Elena Zannoni <ezannoni@redhat.com>
3279
3280 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3281 for thread local storage locations.
3282 (struct symbol): Add objfile field.
3283 (SYMBOL_OBJFILE): Define.
3284 * dwarf2read.c (is_thread_local): New static variable.
3285 (new_symbol): If variable is in thread local fill in address class
3286 and objfile appropriately.
3287 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3288 stack operation.
3289 * printcmd.c (address_info): Print the information for thread
3290 local storage variable.
3291 * findvar.c (read_var_value): In case of thread local variable,
3292 defer to the target vector code to compute address.
3293
3294 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3295
3296 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3297 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3298
3299 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3300
3301 * symtab.h (address_class): Rename
3302 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3303 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3304 * printcmd.c (address_info): Ditto.
3305 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3306
3307 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3308
3309 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3310 DBREG_DRX macro to acces debug registers.
3311
3312 * Makefile.in (i386obsd-tdep.o): New target.
3313
3314 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3315 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3316
3317 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3318 * config/i386/obsd.mt: New file.
3319 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3320 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3321 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3322 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3323 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3324 * i386obsd-tdep.c: New file.
3325
3326 2002-10-19 Adam Fedor <fedor@gnu.org>
3327
3328 * objc-exp.y (name_not_typename): Fix invalid comment.
3329
3330 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3331
3332 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3333 to allocate partial syms and macro byte caches.
3334
3335 2002-10-18 David Carlton <carlton@math.stanford.edu>
3336
3337 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3338
3339 2002-10-18 Adam Fedor <fedor@gnu.org>
3340
3341 * stabsread.c (find_name_end): New function.
3342 (define_symbol): Use it.
3343
3344 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3345
3346 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3347 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3348 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3349 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3350
3351 2002-10-17 David Carlton <carlton@math.stanford.edu>
3352
3353 * symfile.h: Add opaque declaration for struct obstack.
3354 Declare obsavestring to take a const char *.
3355 * symfile.c (obsavestring): Make first argument a const char *.
3356
3357 2002-10-16 Adam Fedor <fedor@gnu.org>
3358
3359 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3360 names when matching breakpoints in current file.
3361
3362 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3363
3364 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3365 (read_tag_pointer_type): Add address class support.
3366 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3367 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3368 New methods.
3369 * gdbarch.h, gdbarch.c: Regenerate.
3370 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3371 (make_type_with_address_space, recursive_type_dump): Add address
3372 class support.
3373 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3374 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3375 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3376
3377 2002-10-16 Klee Dienes <kdienes@apple.com>
3378
3379 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3380 to get the last character of a char[] buffer, not
3381 name[sizeof(vptr_name)-1].
3382
3383 2002-10-14 Adam Fedor <fedor@gnu.org>
3384
3385 * symtab.h: New objc_specific struct.
3386 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3387 (SYMBOL_DEMANGLED_NAME): Likewise.
3388
3389 2002-10-14 Adam Fedor <fedor@gnu.org>
3390
3391 * symfile.c (init_filename_language_table): Add ObjC file extension.
3392
3393 2002-10-14 Adam Fedor <fedor@gnu.org>
3394
3395 * utils.c (puts_filtered_tabular): New function.
3396 (fprintf_symbol_filtered): Get ObjC demangled name.
3397 * defs.h (puts_filtered_tabular): Declared.
3398
3399 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3400
3401 * c-lang.h (c_type_print_varspec_prefix): Delete.
3402 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3403 ``need_post_space'' parameter. Adjust all callers.
3404
3405 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3406
3407 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3408 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3409 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3410 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3411
3412 2002-10-13 Adam Fedor <fedor@gnu.org>
3413
3414 * source.c (print_source_lines): Update comments.
3415
3416 2002-10-13 Adam Fedor <fedor@gnu.org>
3417
3418 * valops.c (value_of_local): New function.
3419 (value_of_this): Use it.
3420 * value.h (value_of_local): Declared.
3421
3422 2002-10-13 Adam Fedor <fedor@gnu.org>
3423
3424 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3425 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3426
3427 2002-10-12 Adam Fedor <fedor@gnu.org>
3428
3429 * language.c (binop_result_type): Add language_objc to case.
3430 (integral_type): Likewise.
3431 (character_type): Likewise.
3432 (string_type): Likewise.
3433 (boolean_type): Likewise.
3434 (structured_type): Likewise.
3435 (binop_type_check): Likewise.
3436
3437 2002-10-11 Adam Fedor <fedor@gnu.org>
3438
3439 * printcmd.c (address_info): Print 'self' for ObjC.
3440
3441 2002-10-11 Adam Fedor <fedor@gnu.org>
3442
3443 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3444 OP_SELF.
3445
3446 2002-10-11 Adam Fedor <fedor@gnu.org>
3447
3448 * language.h (CAST_IS_CONVERSION): Add language_objc.
3449
3450 2002-10-11 Adam Fedor <fedor@gnu.org>
3451
3452 * defs.h (enum language): Add language_objc.
3453
3454 2002-10-11 Klee Dienes <kdienes@apple.com>
3455
3456 * corefile.c (read_memory_typed_address): New function.
3457 * gdbcore.h (read_memory_typed_address): Add prototype.
3458 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3459 to read a value destined for a CORE_ADDR, not read_memory_integer.
3460 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3461 (f77_get_dynamic_lowerbound): Ditto.
3462
3463 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3464
3465 * utils.c (string_to_core_addr): After turning string into
3466 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3467 which will do necessary sign-extension, etc.
3468
3469 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3470
3471 * c-exp.y (THIS): Delete token and grammar rule.
3472 (yylex): Don't return THIS.
3473 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3474 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3475 * demangle.c (cplus_markers): Update comment. Put '$'
3476 first. Remove CPLUS_MARKER.
3477 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3478 * jv-exp.y (THIS): Delete token and grammar rule.
3479 (yylex): Don't return THIS.
3480 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3481 * objc-exp.y (THIS): Delete token and grammar rule.
3482 (yylex): Don't return THIS.
3483 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3484 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3485 (read_member_functions): Likewise for opname.
3486 (read_tilde_fields): Use is_cplus_marker.
3487
3488 * defs.h (CPLUS_MARKER): Don't define.
3489 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3490 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3491 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3492 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3493 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3494
3495 * config/i386/tm-i386v4.h: Delete file.
3496 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3497 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3498 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3499 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3500 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3501 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3502 * config/i386/i386v4.mt (TM_FILE): Likewise.
3503 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3504
3505 2002-10-10 Marko Mlinar <markom@opencores.org>
3506
3507 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3508 accidentially not commited 2002-10-09
3509 * gdbarch.h, gdbarch.c: Re-generate.
3510
3511 2002-10-09 Marko Mlinar <markom@opencores.org>
3512
3513 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3514 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3515 * gdbarch.h, gdbarch.c: Re-generate.
3516
3517 2002-10-08 Petr Sorfa <petrs@caldera.com>
3518
3519 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3520
3521 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3522 so we can work on more than one compilation unit at a time. This
3523 helps prepare GDB to handle inter-CU die references.
3524 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3525 the code to be defined before struct comp_unit_head.
3526 (comp_unit_head): Added new members - offset, cu_head,
3527 begin_die, next and dwarf2_abbrevs.
3528 (dwarf2_abbrevs): Removed single static var; now member of
3529 struct comp_unit_head.
3530 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3531 members.
3532 (psymtab_to_symtab_1): Changed to work with the new
3533 struct comp_unit_head.
3534 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3535 constructs the dwarf2_abbrevs[] inside the cu_header.
3536 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3537 dwarf2_abbrev table to clean up.
3538 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3539 handling of dwarf2_abbrevs inside the cu_header.
3540 (read_partial_die): Now supports the call to the new
3541 dwarf2_lookup_abbrev.
3542 (read_full_die): Now supports the call to the new
3543 dwarf2_lookup_abbrev.
3544
3545 2002-10-06 Christopher Faylor <cgf@redhat.com>
3546
3547 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3548 insure that shell variables, such as "transformed_name" are propagated
3549 to later shell statements in rule.
3550
3551 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3552
3553 * config/i386/nm-i386sco.h: Add protection against
3554 multiple-inclusion. Include "i386/nm-i386v.h".
3555 (REGISTER_U_ADDR): Remove define.
3556 (i386_register_u_addr): Remove prototype.
3557
3558 2002-10-04 Michael Snyder <msnyder@redhat.com>
3559
3560 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3561 before treating it as a single-step event.
3562
3563 2002-10-03 Adam Fedor <fedor@gnu.org>
3564
3565 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3566 (objc_demangle): Remove assignment in if statements, Replace
3567 free with xfree.
3568 (add_msglist): Likewise.
3569 (end_msglist): Likewise.
3570 (complare_selectors): Likewise.
3571 (selectors_info): Likewise.
3572 (compare_classes): Likewise.
3573 (classes_info): Likewise.
3574 (print_object_command): Likewise.
3575 (find_objc_msgcall_submethod): Replace PTR with void *.
3576 * objc-lang.h: Remove check for __STDC__.
3577
3578 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3579
3580 * ui-out.h (ui_out_field_fmt_int): New prototype.
3581 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3582 of field width and alignment.
3583 * stack.c (print_frame_info_base): When printing frame level, use
3584 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3585 PR gdb/192
3586
3587 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3588
3589 * MAINTAINERS: Add self to Write After Approval list.
3590
3591 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3592
3593 * infcmd.c (interrupt_target_command_wrapper): Delete.
3594 (interrupt_target_command): Make non static.
3595 (nofp_registers_info): Make static.
3596 * stack.c (return_command_wrapper): Delete.
3597 (return_command): Make non static.
3598
3599 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3600
3601 * event-top.c (gdb_setup_readline): New function. Code moved from
3602 _initialize_event_loop().
3603 (_initialize_event_loop): Call gdb_setup_readline().
3604
3605 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3606
3607 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3608 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3609 * gdbarch.h, gdbarch.c: Re-generate.
3610
3611 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3612
3613 Fix PR gdb/778
3614 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3615 before recursing.
3616 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3617 of fill_in_vptr_fieldno.
3618
3619 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3620
3621 * inferior.h (registers_info, stepi_command, nexti_command,
3622 continue_command, interrupt_target_command): Export from infcmd.c.
3623 * frame.h (args_info, selected_frame_level_changed_hook,
3624 return_command): Export from stack.c.
3625 * v850ice.c (stepi_command, nexti_command, continue_command): use
3626 prototypes from inferior.h.
3627 * tracepoint.c (registers_info, args_info, locals_info): Use
3628 prototypes from frame.h and inferior.h.
3629 * Makefile.in (mi-main.o): Add dependency on frame.h.
3630
3631 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3632
3633 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3634 value in register 3 adjusted by ppc_gp0_regnum.
3635
3636 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3637
3638 2002-10-02 Marko Mlinar <markom@opencores.org>
3639
3640 * MAINTAINERS: Add myself to the Write After Approval list.
3641
3642 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3643
3644 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3645 of the section for the N64 ABI, fixed.
3646
3647 * config/mips/tm-irix6.h: Include solib.h.
3648
3649 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3650
3651 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3652 GNU operators.
3653
3654 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3655
3656 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3657 and that "mi0" syntax has been removed.
3658
3659 2002-09-30 David Carlton <carlton@math.stanford.edu>
3660
3661 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3662 * ppc-sysv-tdep.c: #include "gdb_string.h".
3663 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3664 pacify GCC.
3665
3666 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3667
3668 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3669 "vrsave"'s register number.
3670
3671 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3672
3673 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3674 use frame_unwind_signed_register to obtain the PC.
3675 (mips_frame_chain): Handle a generic dummy frame.
3676 (mips_init_extra_frame_info): When a generic dummy frame, don't
3677 re-compute the frame base.
3678 (mips_pop_frame): Handle generic dummy frames.
3679 (mips_gdbarch_init): When generic dummy frames, set
3680 use_generic_dummy_frames, push_dummy_frame to
3681 generic_push_dummy_frame, pc_in_call_dummy to
3682 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3683 generic_save_dummy_frame_tos.
3684
3685 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3686
3687 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3688 against TOP when TOP was explictly set.
3689 (generic_push_dummy_frame): Set TOP to zero.
3690
3691 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3692
3693 * event-loop.c (start_event_loop): Rename variable 'result' to
3694 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3695
3696 2002-09-30 Keith Seitz <keiths@redhat.com>
3697
3698 * gdb-events.sh (selected_thread_changed): New event.
3699 * gdb-events.c: Regenerated.
3700 * gdb-events.h: Regenerated.
3701
3702 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3703
3704 * MAINTAINERS: Add self to Write After Approval list.
3705
3706 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3707
3708 * disasm.c: New file.
3709 * disasm.h: New file.
3710 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3711 (compare_lines): Ditto.
3712 (dump_insns): Ditto.
3713 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3714 argument.
3715 (do_assembly_only): Ditto.
3716 (do_disassembly): Renamed to gdb_disassembly and moved to
3717 disasm.c. Sdded uiout argument.
3718 * Makefile.in: Add new files. Reorder SFILES list. Update
3719 dependencies. Include libgdb.a later in the insight executable.
3720
3721 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3722
3723 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3724 bfd/elf64-alpha-fbsd.c.
3725
3726 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3727
3728 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3729 i386gnu-tdep.c.
3730
3731 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3732
3733 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3734 __FUNCTION__.
3735 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3736 function name.
3737 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3738 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3739 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3740 (S_msg_sig_post_reply): Ditto.
3741
3742 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3743
3744 * sh-tdep.c (sh_use_struct_convention): Use definition according
3745 to ABI.
3746 (sh_push_arguments): Store in register with correct endianess.
3747 (sh_default_store_return_value): Ditto.
3748 (sh_gdbarch_init): Set sizeof long double to 8.
3749
3750 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3751
3752 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3753 Fix some whitespace problems.
3754
3755 2002-09-27 David Carlton <carlton@math.stanford.edu>
3756
3757 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3758 (mcore-tdep.o): Ditto.
3759 (ns32k-tdep.o): Ditto.
3760 (ns32knbsd-tdep.o): Ditto.
3761 (sh3-rom.o): Ditto.
3762 (vax-tdep.o): Ditto.
3763 * cris-tdep.c: #include "gdb_string.h"
3764 * mcore-tdep.c: Ditto.
3765 * ns32k-tdep.c: Ditto.
3766 * ns32knbsd-tdep.c: Ditto.
3767 * sh3-rom.c: Ditto.
3768 * vax-tdep.c: Ditto.
3769
3770 2002-09-27 David Carlton <carlton@math.stanford.edu>
3771
3772 * config/djgpp/fnchange.lst: Add entries for
3773 gdb/testsuite/gdb.c++/m-static files.
3774
3775 2002-09-27 Jim Wilson <wilson@redhat.com>
3776
3777 * MAINTAINERS: Add myself to the Write After Approval list.
3778
3779 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3780
3781 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3782
3783
3784 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3785
3786 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3787 frame.
3788
3789 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3790
3791 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3792 (rs6000_struct_return_address): Delete variable.
3793 (rs6000_store_struct_return): Update.
3794 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3795 deprecated_extract_struct_value_address.
3796 (rs6000_frame_align): New function.
3797 (rs6000_gdbarch_init): Set frame_align.
3798
3799 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3800
3801 From Grace Sainsbury <graces@redhat.com>:
3802 * Makefile.in (gdbtk-main.o): New target.
3803 (gdb.o): New target.
3804 (main_h): Define.
3805 (main.o): Update dependencies.
3806 (gdb$(EXEEXT)): Add gdb.o.
3807 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3808 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3809 (SUBDIR_GDBTK_CLEAN): Set.
3810 (install-gdbtk): Install the insight binary.
3811 (uninstall-gdbtk): New target.
3812 (all-gdbtk, clean-gdbtk): New rule.
3813 * top.c (use_windows): Default to zero.
3814 * main.c: Include "main.h".
3815 (main): Delete.
3816 (struct captured_main_args): Delete.
3817 (gdb_main): New function.
3818 * main.h: New file.
3819 * gdb.c: New File.
3820
3821 2002-09-25 Andrew Cagney <cagney@redhat.com>
3822
3823 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3824 (frame_map_regnum_to_name): New function.
3825 (frame_map_name_to_regnum): New function.
3826 * frame.h (frame_map_name_to_regnum): Declare.
3827 (frame_map_regnum_to_name): Declare.
3828 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3829 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3830 * parse.c: Do not include "builtin-regs.h".
3831 (target_map_name_to_register): Delete function.
3832 (write_dollar_variable): Use frame_map_name_to_regnum.
3833 * parser-defs.h (target_map_name_to_register): Delete declaration.
3834 * expprint.c: Include "frame.h".
3835 (print_subexp): Use frame_map_regnum_to_name.
3836 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3837 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3838
3839 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3840
3841 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3842 wasn't saved, and the next innermost frame is a dummy, return the
3843 dummy frame's link register.
3844
3845 2002-09-24 Jim Blandy <jimb@redhat.com>
3846
3847 Fix from Paul Breed:
3848 * main.c (captured_main): Add a `break' after the case for 'b'.
3849
3850 2002-09-24 Keith Seitz <keiths@redhat.com>
3851
3852 * varobj.c (c_type_of_child): Use get_target_type instead
3853 of TYPE_TARGET_TYPE.
3854
3855 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3856
3857 * source.c (get_current_or_default_source_symtab_and_line): Remove
3858 function.
3859 (set_default_source_symtab_and_line): New function. Attempts to
3860 determine a source file to list lines from if one is not currently
3861 defined.
3862 (get_current_source_symtab_and_line): Initialize sal.pc and
3863 sal.end fields.
3864 (set_current_source_symtab_and_line): Mark argument as const.
3865 * source.h: Update declarations and comments.
3866 * linespec.c (decode_line_1): Replace call to removed routine above.
3867 * stack.c (print_frame_info_base): Ditto.
3868 * cli/cli-cmds.c (edit_command): Ditto.
3869 (list_command): Ditto.
3870
3871 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3872
3873 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3874 sal.pc and sal.end fields.
3875 (get_current_or_default_source_symtab_and_line): Ditto.
3876 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3877 so we do not cause a new source symtab to be searched for (reverting an
3878 unintentional change from the 2002-09-20 patch).
3879 * scm-lang.c (scm_unpac): Ditto.
3880
3881 2002-09-21 Andrew Cagney <cagney@redhat.com>
3882
3883 * complaints.c (symfile_explanations): Remove new-line from
3884 ``isolated_message''.
3885 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3886 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3887
3888 2002-09-20 Nick Clifton <nickc@redhat.com>
3889
3890 * NEWS: Announce that V850EA ISA is no longer supported.
3891 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3892
3893 2002-09-20 David Carlton <carlton@math.stanford.edu>
3894
3895 * Makefile.in (c-lang.o): Correct dependencies.
3896 (utils.o): Gather dependencies.
3897 (charset.o): Move.
3898 * c-lang.c: #include "gdb_string.h"
3899
3900 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3901
3902 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3903 * cli/cli-cmds.c (list_command): New function. Implements the new
3904 cli edit command.
3905 (_init_cli_cmds): Add new command definition.
3906 * gdb.1: Document edit command.
3907 * doc/gdb.texinfo: Document edit command.
3908
3909 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3910
3911 * source.c: Make global variables current_source_symtab and
3912 current_source_line static.
3913 (list_command): Moved to cli/cli-cmds.c.
3914 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3915 (get_first_line_listed): New accessor function.
3916 (get_lines_to_list): New accessor function.
3917 (get_current_source_symtab_and_line): New function. Retrieves the
3918 position in the source code that we consider current.
3919 (get_current_or_default_source_symtab_and_line): New function.
3920 Like the above but attempts to determine a default position if one
3921 is not currently defined.
3922 (set_current_source_symtab_and_line): New function. Sets the source
3923 code position considered current and returns the previously set one.
3924 (clear_current_source_symtab_and_line): Reset stored information about
3925 a current source line.
3926 (_initialize_source): Remove registration for the "list" command and
3927 its alias.
3928 * source.h: Add declarations for the new functions above.
3929 * symtab.h: Remove declarations for the global variables mentioned
3930 above.
3931 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3932 obtain current source line.
3933 * linespec.c (decode_line_1): Ditto.
3934 * macroscope.c (default_macro_scope): Ditto.
3935 * scm-lang.c (scm_unpac): Ditto.
3936 * stack.c (print_frame_info_base): Ditto.
3937 * symfile.c (clear_symtab_users): Ditto.
3938 * symtab.c (decode_line_spec): Ditto.
3939 * cli/cli-cmds.c (list_command): Moved here from source.c.
3940 (ambiguous_line_spec): Moved here from source.c.
3941 (_init_cli_cmds): Add definition for "list" and its alias.
3942 * Makefile.in: Update dependencies.
3943
3944 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3945
3946 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3947 with what gcc thinks is correct.
3948
3949 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3950
3951 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3952 multiple register push instruction.
3953
3954 2002-09-19 Jim Blandy <jimb@redhat.com>
3955
3956 Add support for distinct host and target character sets.
3957 * charset.c, charset.h: New files.
3958 * c-exp.y: #include "charset.h".
3959 (yylex): Convert character and string literals to the target
3960 character set, before returning them as the semantic value of the
3961 token.
3962 * c-lang.c: #include "charset.h".
3963 (c_emit_char): Use charset-specific methods to recognize
3964 characters with backslash escape forms, to decide which characters
3965 to print literally and which to print using numeric escape
3966 sequences, and to convert target characters to host characters
3967 before printing.
3968 * utils.c: #include "charset.h".
3969 (no_control_char_error): New function.
3970 (parse_escape): Use charset-specific methods to recognize
3971 backslash escapes, parse `control character' notation, and convert
3972 characters from the host character set to the target character set.
3973 * configure.in: Set the default host character set.
3974 Check where to find iconv, and what its argument types might be.
3975 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3976 * Makefile.in (SFILES): List charset.c.
3977 (COMMON_OBS): List charset.o.
3978 (charset.o): New rule.
3979 (charset_h): New header dependency variable.
3980 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3981 (LIBICONV): New variable, set by configure.
3982 (CLIBS): Include $(LIBICONV) here.
3983 * aclocal.m4, config.in, configure: Regenerated.
3984
3985 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3986
3987 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3988 bison 1.35 warning.
3989
3990 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3991
3992 * gdb_mbuild.sh: New file.
3993
3994 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3995
3996 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3997
3998 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3999
4000 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4001 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4002 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4003 valops.c, value.h: Revert previous change.
4004
4005 2002-09-18 Michael Snyder <msnyder@redhat.com>
4006
4007 Preliminary support for Objective-C:
4008 * defs.h (language_objc): New enum value.
4009 (puts_filtered_tabular): Declaration only, exported from utils.c.
4010 (skip_quoted): Delete, declared in completer.h.
4011 * c-exp.y: Include completer.h.
4012 * p-exp.y: Ditto.
4013 * jv-exp.y: Ditto.
4014 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4015 New operator enum values.
4016 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4017 * language.c (binop_result_type): Handle language_objc case.
4018 (integral_type, character_type, string_type, boolean_type,
4019 structured_type, binop_type_check): Ditto.
4020 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4021 (struct objc_specific): Add to general_symbol_info.
4022 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4023 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4024 * parser-defs.h (struct objc_class_str): New struct type.
4025 (start_msglist, end_msglist, add_msglist): Declaration only,
4026 exported from objc-lang.c.
4027 * value.h (value_of_local, value_nsstring,
4028 call_function_by_hand_expecting_type): Exported from valops.c.
4029 * valops.c (find_function_addr): Export.
4030 (call_function_by_hand_expecting_type): New function.
4031 (value_of_local): New function.
4032 * symfile.c (init_filename_language_table): Add ".m" extension
4033 for Objective-C.
4034 * utils.c (puts_filtered_tabular): New function.
4035 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4036 (set/show demangle): Extend help-string to refer to ObjC.
4037 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4038 * stabsread.c (symbol_reference_defined): Objective-C symbols
4039 may contain colons: make allowances when scanning stabs strings
4040 for colons.
4041 (objc_find_colon): New function.
4042 * printcmd.c (address_info): If language == objc then print
4043 "self" instead of "this".
4044 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4045 OP_NSSTRING, and OP_SELF.
4046 (prefixify_subexp): Ditto.
4047 * source.c (print_source_lines): Mention objc in comment.
4048 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4049 method names.
4050
4051 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4052
4053 * complaints.h: Update copyright.
4054 (struct complaints): Declare.
4055 (struct complaint): Make `message' constant.
4056 (internal_complaint): Declare.
4057 (complaint): Declare.
4058 (complaint_root): Delete declaration.
4059 (symfile_complaints): Delete declaration.
4060 (struct complaints): Add opaque declaration.
4061 (clear_complaints): Add a complaints parameter.
4062 * complaints.c: Update copyright.
4063 (enum complaint_series): Define.
4064 (complaint_root): Delete.
4065 (struct complaints): Define.
4066 (complaint_sentinel, symfile_complaint_book): New variables.
4067 (symfile_explanations, symfile_complaints): New variables.
4068 New variables.
4069 (get_complaints): New function.
4070 (vcomplaint): New function.
4071 (complaint): New function.
4072 (internal_complaint): New function.
4073 (complain): Call vcomplain with symfile_complaint.
4074 (clear_complaints): Rewrite.
4075 (_initialize_complaints): Use add_setshow_command.
4076 * Makefile.in (complaints.o): Update dependencies.
4077 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4078 to call to clear_complaints.
4079 (new_symfile_objfile, reread_symbols): Ditto.
4080 (oldsyms_complaint): Delete.
4081 (empty_symtab_complaint, unknown_option_complaint): Delete.
4082 (free_named_symtabs): Use complaint instead of complain.
4083
4084 2002-09-18 Michael Snyder <msnyder@redhat.com>
4085
4086 Contributed by Apple Computer, Inc. Merged with current sources
4087 by Adam Fedor <fedor@doc.com> [cagney].
4088
4089 * objc-lang.c: First clean-up round: comments, indentation.
4090 * objc-lang.h: Ditto.
4091 * objc-lang.y: Ditto.
4092
4093 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4094
4095 * maint.c (maintenance_internal_error): Print the parameter as the
4096 error message.
4097 (maintenance_internal_warning): New function.
4098 (_initialize_maint_cmds): Add command `maint internal-warning'.
4099
4100 * defs.h (internal_warning, internal_vwarning): Declare.
4101 * utils.c (struct internal_problem): Define.
4102 (internal_vproblem): New function.
4103 (internal_warning): New function.
4104 (internal_vwarning): New function.
4105 (internal_warning_problem, internal_error_problem): New variables.
4106 (internal_verror): Just call internal_vproblem.
4107
4108 2002-09-18 Michael Snyder <msnyder@redhat.com>
4109
4110 * objc-lang.c: New file, support for Objective-C.
4111 Preliminary check-in, not yet integrated into gdb.
4112 * objc-lang.h: New file.
4113 * objc-exp.y: New file.
4114
4115 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4116
4117 * infrun.c (signal_stop_update): Convert definition to ISO C.
4118 (signal_print_update): Ditto.
4119 (signal_pass_update): Ditto.
4120 * inflow.c (terminal_save_ours): Ditto.
4121
4122 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4123 comments.
4124
4125 * config/djgpp/fnchange.lst: Handle name clashes between
4126 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4127 bfd/coff-tic80.c.
4128
4129 * i386-linux-tdep.h: Fix tipo.
4130
4131 2002-09-18 Adam Fedor <fedor@gnu.org>
4132
4133 * MAINTAINERS: Add myself to the Write After Approval list.
4134
4135 2002-09-18 Jim Blandy <jimb@redhat.com>
4136
4137 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4138 texthigh and textlow to reader-specific structs caused
4139 objfile_relocate to miss them. This is fixable, but the work that
4140 the change was supposed to prepare GDB for never got done anyway.
4141
4142 2002-09-18 David Carlton <carlton@math.stanford.edu>
4143
4144 * MAINTAINERS: Alphabetize Write After Approval list.
4145
4146 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4147
4148 Fix PR gdb/709
4149 * values.c (value_static_field): Call read_var_value.
4150
4151 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4152
4153 * valops.c (hand_function_call): Align the initial stack pointer
4154 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4155 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4156 return value.
4157 * mips-tdep.c (mips_frame_align): New function.
4158 (mips_gdbarch_init): Set frame_align.
4159 * gdbarch.sh (FRAME_ALIGN): New method.
4160 * gdbarch.h, gdbarch.c: Re-generate.
4161
4162 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4163
4164 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4165 registers.
4166
4167 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4168
4169 * NEWS: Mention that MIPS $fp behavior changed.
4170 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4171 reference to FP_REGNUM.
4172 (mipsnbsd_cannot_store_register): Ditto.
4173 * mips-linux-nat.c: Update copyright.
4174 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4175 (mips_linux_cannot_store_register): Ditto.
4176 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4177 * config/mips/tm-mips.h: Update copyright.
4178 (FP_REGNUM): Delete macro.
4179 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4180 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4181 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4182 (mips_r3041_reg_names, mips_r3051_reg_names)
4183 (mips_r3081_reg_names): Replace "fp" with "".
4184 Fix PR gdb/480.
4185
4186 2002-09-17 Theodore A. Roth <troth@verinet.com>
4187
4188 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4189 generic_read_register_dummy() (PR gdb/703).
4190 (avr_push_return_address): #if 0 out unused vars.
4191 (avr_gdbarch_init): Enable use of avr_push_return_address().
4192
4193 2002-09-17 Michael Snyder <msnyder@redhat.com>
4194
4195 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4196 RTE will take care of it.
4197
4198 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4199
4200 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4201 invalid, return SP_REGNUM.
4202
4203 2002-09-17 Michael Snyder <msnyder@redhat.com>
4204
4205 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4206 point registers without sign extension.
4207
4208 2002-09-17 Andrew Cagney <cagney@redhat.com>
4209
4210 * blockframe.c (deprecated_read_register_dummy): Rename
4211 generic_read_register_dummy.
4212 * frame.c (frame_unwind_signed_register): New function.
4213 (frame_unwind_unsigned_register): New function.
4214 * frame.h (frame_unwind_signed_register): Declare.
4215 (frame_unwind_unsigned_register): Declare.
4216 (deprecated_read_register_dummy): Rename
4217 generic_read_register_dummy.
4218
4219 * h8300-tdep.c (h8300_frame_chain): Update.
4220 (h8300_frame_saved_pc): Update.
4221 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4222 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4223 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4224 (s390_frame_chain): Update.
4225 * v850-tdep.c (v850_find_callers_reg): Update.
4226 (v850_frame_saved_pc): Update.
4227 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4228 (m32r_find_callers_reg): Update.
4229 (m32r_frame_saved_pc): Update.
4230 * sh-tdep.c (sh_find_callers_reg): Update.
4231 (sh64_get_saved_pr): Update.
4232 (sh_init_extra_frame_info): Update.
4233 (sh_init_extra_frame_info): Update.
4234 (sh64_init_extra_frame_info): Update.
4235 (sh64_init_extra_frame_info): Update.
4236 * mcore-tdep.c (mcore_find_callers_reg): Update.
4237 (mcore_frame_saved_pc): Update.
4238 (mcore_init_extra_frame_info): Update.
4239 * i386-tdep.c (i386_frame_saved_pc): Update.
4240 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4241 (ia64_init_extra_frame_info): Update.
4242 (ia64_init_extra_frame_info): Update.
4243 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4244 * cris-tdep.c (cris_init_extra_frame_info): Update.
4245 * avr-tdep.c (avr_frame_chain): Update.
4246 (avr_init_extra_frame_info): Update.
4247 (avr_frame_saved_pc): Update.
4248 * arm-tdep.c (arm_find_callers_reg): Update.
4249 (arm_init_extra_frame_info): Update.
4250 (arm_frame_saved_pc): Update.
4251
4252 2002-09-17 Tom Tromey <tromey@redhat.com>
4253
4254 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4255 is "'".
4256
4257 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4258
4259 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4260 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4261 NEXT_PROLOGUE_INSN.
4262 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4263 NEXT_PROLOGUE_INSN.
4264
4265 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4266
4267 * osfsolib.c: Remove file, replaced by solib-osf.c.
4268 * Makefile.in: Remove compilation rules for osfsolib.c.
4269
4270 2002-09-16 David Carlton <carlton@math.stanford.edu>
4271
4272 * cp-valprint.c (cp_print_class_method): Correct args to
4273 check_stub_method_group.
4274
4275 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4276
4277 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4278 `set architecture'. Unify naming convention of functions.
4279 (h8300_skip_prologue): Improve prologue analysis.
4280 (h8300_push_arguments): Rewritten to more closely match GCC's
4281 bizarre argument-passing behavior, along with the comment describing
4282 said behavior.
4283 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4284 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4285 sim, remote-e7000.c, remote-hms.c and remote.c
4286
4287 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4288
4289 * i386-tdep.c (gdb_print_insn_i386): Removed.
4290 (i386_print_insn): New function.
4291 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4292 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4293 tm_print_insn_info.
4294
4295 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4296
4297 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4298 zero.
4299
4300 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4301
4302 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4303 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4304 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4305
4306 2002-09-13 Christopher Faylor <cgf@redhat.com>
4307
4308 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4309
4310 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4311
4312 * gdbtypes.c (check_stub_method): Make static.
4313 (check_stub_method_group): New function.
4314 * gdbtypes.h: Update prototypes.
4315 * cp-support.c: New file.
4316 * cp-support.h: New file.
4317
4318 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4319 (update_method_name_from_physname): New function.
4320 (read_member_functions): Correct method names for operators
4321 and v3 constructors/destructors. Separate v2 constructors and
4322 destructors.
4323 * Makefile.in (stabsread.o): Update dependencies.
4324 (SFILES): Add cp-support.c.
4325 (COMMON_OBS): Add cp-support.o.
4326 (cp_support_h, cp-support.o): Add.
4327
4328 * cp-valprint.c (cp_print_class_method): Call
4329 check_stub_method_group instead of check_stub_method. Remove
4330 extraneous QUITs.
4331 * p-valprint.c (pascal_object_print_class_method): Likewise.
4332 * valops.c (search_struct_method): Likewise.
4333 (find_method_list, value_struct_elt_for_reference): Likewise.
4334
4335 2002-09-13 Andrew Cagney <cagney@redhat.com>
4336
4337 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4338 * gdbarch.h, gdbarch.c: Regenerate.
4339
4340 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4341
4342 * frame.c (find_saved_register): Delete function.
4343 * frame.h (find_saved_register): Delete declaration.
4344 Fix PR gdb/631.
4345
4346 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4347
4348 * mips-tdep.c (read_next_frame_reg): Re-hack using
4349 frame_register_unwind.
4350
4351 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4352
4353 * mips-tdep.c (mips_get_saved_register): Re-hack using
4354 frame_register_unwind.
4355
4356 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4357
4358 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4359 vector. Will be useful for Interix.
4360 * gdbarch.h, gdbarch.c: Regenerate.
4361
4362 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4363 name of the malloc function by NAME_OF_MALLOC.
4364
4365 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4366
4367 * value.h (find_function_in_inferior): Add const keyword to
4368 one of the parameters. Allows us to invoke this function with
4369 a const char *.
4370 * valops.c (find_function_in_inferior): Likewise.
4371
4372 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4373
4374 * exec.c (xfer_memory): Fix compilation warning with old versions
4375 of GCC.
4376 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4377
4378 2002-09-12 David Carlton <carlton@math.stanford.edu>
4379
4380 * symtab.h: Run through gdb_indent.h.
4381 Add 2002 to Copyright year list.
4382
4383 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4384
4385 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4386 mach constants.
4387 * MAINTAINERS: Add myself to write after approval list.
4388
4389 2002-09-11 J. Brobecker <brobecker@gnat.com>
4390
4391 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4392
4393 2002-09-11 J. Brobecker <brobecker@gnat.com>
4394
4395 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4396 Interix.
4397
4398 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4399
4400 * procfs.c (do_detach): Clear current signal, not just fault.
4401 Corrects problem with breakpoint trap signal leaking to detached
4402 process on Tru64.
4403
4404 2002-09-10 Michael Snyder <msnyder@redhat.com>
4405
4406 * buildsym.c (finish_block): Protect against null pointer.
4407
4408 2002-09-10 Andrew Cagney <cagney@redhat.com>
4409
4410 * infcmd.c (default_print_registers_info): Send all output to
4411 ``file'' instead of ``gdb_stdout''.
4412
4413 2002-09-10 Michael Snyder <msnyder@redhat.com>
4414
4415 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4416 LONGEST, and use signed register read (addresses are sign-
4417 extended for mips).
4418
4419 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4420
4421 * event-loop.c (gdb_do_one_event): Make public.
4422 * event-loop.h (gdb_do_one_event): Declare.
4423
4424 2002-09-10 Jeff Law <law@redhat.com>
4425
4426 * infttrace.c (child_resume): Simplify and rework to avoid
4427 TT_PROC_CONTINUE.
4428
4429 2002-09-09 Fred Fish <fnf@intrinsity.com>
4430
4431 * printcmd.c (print_scalar_formatted): "len" is the number of
4432 target bytes, NOT the number of target bits.
4433
4434 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4435
4436 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4437 * top.c (init_main): Set rl_terminal_name.
4438
4439 2002-09-08 Aidan Skinner <aidan@velvet.net>
4440
4441 * ada-lang.c (ada_array_bound, ada_type_match,
4442 _initialize_ada_language): Fix K&R definitions.
4443 * ada-tasks.c (get_current_task): Fix K&R definitions.
4444 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4445
4446 2002-09-07 Christopher Faylor <cgf@redhat.com>
4447
4448 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4449 Add XP.
4450
4451 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4452
4453 * i386-tdep.c (i386_register_virtual_type,
4454 i386_register_convertible, i386_register_convert_to_virtual,
4455 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4456 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4457 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4458 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4459 Don't set push_arguments twice.
4460
4461 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4462 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4463 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4464 sigtramp_end to NULL.
4465 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4466 defines.
4467 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4468
4469 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4470 whitespace.
4471
4472 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4473 * gdbarch.h, gdbarch.c: Re-generate.
4474 * blockframe.c (find_pc_sect_partial_function): Convert to use
4475 SIGTRAMP_START_P predicate.
4476
4477 2002-09-05 Michael Snyder <msnyder@redhat.com>
4478
4479 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4480 generic_dummy_frame method and old method. Also distinguish
4481 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4482 (arm_extract_return_value): Use new regcache method.
4483
4484 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4485 adjustment that doesn't conform to the ABI.
4486 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4487 saved regcache, not from current regcache.
4488
4489 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4490
4491 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4492 * README: Update.
4493
4494 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4495
4496 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4497 if arm_apcs_32 is false.
4498
4499 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4500
4501 GDB 5.3 branch created.
4502
4503 2002-09-03 Theodore A. Roth <troth@verinet.com>
4504
4505 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4506 generic_unwind_get_saved_register.
4507
4508 2002-09-03 David Carlton <carlton@math.stanford.edu>
4509
4510 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4511 argument (PR gdb/653). Update call to smash_to_method_type.
4512 (read_structure_scope): Update call to dwarf2_add_member_fn.
4513
4514 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4515
4516 * x86-64-linux-tdep.c: Include gdb_string.h
4517 * x86-64-linux-nat.c: Ditto.
4518
4519 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4520
4521 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4522 when YYDEBUG is set to 1.
4523 * c-exp.y: Likewise.
4524 * f-exp.y: Likewise.
4525 * jv-exp.y: Likewise.
4526 * m2-exp.y: Likewise.
4527 * p-exp.y: Likewise.
4528
4529 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4530
4531 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4532 dependency list.
4533 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4534 solib_svr4_fetch_link_map_offsets to
4535 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4536 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4537 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4538 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4539 solib-svr4.o, and solib-legacy.o.
4540 * config/i386/tm-nbsd.h: Include solib.h.
4541
4542 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4543
4544 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4545 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4546 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4547 comment noting that this needs its own target configuration.
4548 * config/i386/nbsd.mt: New file.
4549 * config/i386/nbsdaout.mt: Remove.
4550 * config/i386/nbsdelf.mt: Ditto.
4551 * config/i386/tm-nbsdaout.h: Ditto.
4552
4553 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4554
4555 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4556 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4557 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4558 tdep->sigtramp_end.
4559 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4560 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4561 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4562
4563 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4564
4565 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4566 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4567 * i386-tdep.h (i386bsd_init_abi): New prototype.
4568 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4569 function declaration.
4570 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4571 for NetBSD-a.out or NetBSD-ELF.
4572 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4573 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4574 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4575 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4576 and nbsd-tdep.h.
4577 (i386nbsd_pc_in_sigtramp): New function.
4578 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4579 i386nbsd_pc_in_sigtramp.
4580 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4581 and i386nbsdelf_init_abi OS ABI handlers.
4582 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4583 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4584
4585 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4586
4587 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4588 registers if the target really has them.
4589
4590 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4591
4592 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4593 than nbsd-tdep.h.
4594
4595 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4596
4597 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4598 list.
4599 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4600 (alphanbsd_skip_sigtramp_frame): New functions.
4601 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4602 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4603 to alphanbsd_sigcontext_addr.
4604
4605 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4606
4607 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4608 list.
4609 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4610 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4611 nbsd_pc_in_sigtramp.
4612 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4613 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4614 * nbsd-tdep.c: Include gdb_string.h.
4615 (nbsd_pc_in_sigtramp): New function.
4616 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4617 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4618 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4619 ppcnbsd_pc_in_sigtramp.
4620 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4621 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4622 shnbsd_pc_in_sigtramp.
4623 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4624 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4625 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4626
4627 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4628
4629 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4630 watchpoints to NULL.
4631 (insert_breakpoints): set val field of watchpoints if NULL.
4632
4633
4634 2002-08-29 Jim Blandy <jimb@redhat.com>
4635
4636 * symtab.c (lookup_symbol_aux): In the cases where we find a
4637 minimal symbol of an appropriate name and use its address to
4638 select a symtab to read and search, use `name' (as passed to us)
4639 as the demangled name when searching the symtab's global and
4640 static blocks, not the minsym's name.
4641
4642 2002-08-29 Keith Seitz <keiths@redhat.com>
4643
4644 * stack.c (print_frame_info_base): Always set current_source_symtab
4645 and current_source_line.
4646
4647 2002-08-29 Donn Terry <donnte@microsoft.com>
4648
4649 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4650
4651 2002-08-28 Keith Seitz <keiths@redhat.com>
4652
4653 * stack.c (select_frame): Add FIXME concerning selected-frame
4654 events.
4655 (select_frame_command): Send selected-frame-level-changed
4656 event notification, but only if the level actually changed.
4657 (up_silently_base): Add selected-frame-level-changed event
4658 notification.
4659 (down_silently_base): Likewise.
4660
4661 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4662
4663 * Makefile.in: Update dependencies for all gdb/*.c files.
4664
4665 2002-08-27 Tom Tromey <tromey@redhat.com>
4666
4667 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4668 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4669 Update dependencies.
4670 * i387-tdep.c: Include gdb_string.h.
4671 * osabi.c: Likewise.
4672 * i386-linux-nat.c: Likewise.
4673 * lin-lwp.c: Likewise.
4674 * ax-gdb.c: Likewise.
4675 * signals/signals.c: Likewise.
4676 * jv-valprint.c: Likewise.
4677 * p-lang.c: Likewise.
4678 * c-valprint.c: Likewise.
4679 * cp-abi.c: Likewise.
4680
4681 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4682
4683 * cli/cli-script.h (copy_command_lines): Export.
4684 * breakpoint.c: Include cli/cli-script.h.
4685 * Makefile.in (breakpoint.o): Update dependencies.
4686
4687 2002-08-26 Michael Snyder <msnyder@redhat.com>
4688
4689 * breakpoint.c (insert_breakpoints): Protect all references
4690 to 'process_warning'. Shorten long lines.
4691
4692 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4693
4694 * cli/cli-script.c (copy_command_lines): New function.
4695 * defs.h (copy_command_lines): Export.
4696 * testsuite/gdb.base/commands.exp: New tests for commands
4697 attached to a temporary breakpoint, and for commands that
4698 delete the breakpoint they are attached to.
4699
4700 2002-08-26 Michael Snyder <msnyder@redhat.com>
4701
4702 * breakpoint.c (bpstat_stop_status): Instead of copying the
4703 pointer to the breakpoint commands struct, make a new copy
4704 of the struct and point to that.
4705 (bpstat_clear): Free the commands struct.
4706 (bpstat_clear_actions): Free the commands struct.
4707 (bpstat_do_actions): Free the command actions. Also execute
4708 the local cleanups, instead of deleting them.
4709 (delete_breakpoint): Leave the commands field of the bpstat
4710 chain alone -- it will be freed later.
4711
4712 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4713
4714 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4715 deleted in 2002-08-20 commit. This function is still used by
4716 ppc-linux-nat.c.
4717
4718 2002-08-26 Keith Seitz <keiths@redhat.com>
4719
4720 * gdb-events.sh: Add selected-frame-level-changed event.
4721 * gdb-events.c: Regenerated.
4722 * gdb-events.h: Regenerated.
4723
4724 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4725
4726 Fix PR gdb/393:
4727 * inflow.c (terminal_save_ours): New function to save terminal
4728 settings.
4729 * inferior.h (terminal_save_ours): Declare.
4730 * target.c (debug_to_terminal_save_ours): New function.
4731 (cleanup_target): Defaults to_terminal_save_ours.
4732 (update_current_target): Inherit to_terminal_save_ours.
4733 (setup_target_debug): Set to_terminal_save_ours.
4734 * target.h (target_terminal_save_ours): New to save terminal settings.
4735 (target_ops): New member to_terminal_save_ours.
4736 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4737 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4738 * inftarg.c (init_child_ops): Likewise.
4739 * m3-nat.c (init_m3_ops): Likewise.
4740 * procfs.c (init_procfs_ops): Likewise.
4741 * wince.c (init_child_ops): Likewise.
4742 * win32-nat.c (init_child_ops): Likewise.
4743 * sol-thread.c (init_sol_thread_ops): Likewise.
4744
4745 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4746
4747 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4748 use regcache_* functions.
4749 (i386_gdbarch_init): Set store_return_value instead of
4750 deprecated_store_return_value.
4751
4752 * regcache.c (regcache_raw_write_signed,
4753 regcache_raw_write_unsigned): New functions.
4754 * regcache.h (regcache_raw_write_signed,
4755 regcache_raw_write_unsigned): New prototypes.
4756
4757 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4758
4759 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4760 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4761 source file dependencies. Cleanup corresponding generator rules.
4762
4763 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4764
4765 * regcache.h (register_offset_hack): Declare.
4766 (regcache_cooked_read_using_offset_hack): Declare.
4767 (regcache_cooked_write_using_offset_hack): Declare.
4768
4769 * regcache.c (register_offset_hack): New function.
4770 (regcache_cooked_read_using_offset_hack): New function.
4771 (regcache_cooked_write_using_offset_hack): New function.
4772 (regcache_dump): Check that the registers, according to their
4773 offset, are packed hard against each other.
4774 (cooked_xfer_using_offset_hack): New function.
4775
4776 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4777
4778 * regcache.c (struct regcache_descr): Add field register_type.
4779 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4780 in as a parameter
4781 (init_regcache_descr): Initialize register_type. Pass the descr
4782 to init_legacy_regcache_descr. Use register_type instead of
4783 REGISTER_VIRTUAL_TYPE.
4784 (register_type): New function.
4785 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4786 * regcache.h (register_type): Declare.
4787
4788 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4789
4790 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4791 instead of deprecated_store_return_value. Fix fallout from
4792 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4793
4794 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4795
4796 * regcache.c (max_register_size): New function.
4797 (init_legacy_regcache_descr): Ensure that max_register_size is
4798 large enough for REGISTER_VIRTUAL_SIZE.
4799 * regcache.h (max_register_size): Declare.
4800
4801 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4802
4803 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4804 store_return_value.
4805 (e500_extract_return_value): Change type of valbuf pointer to
4806 void.
4807
4808 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4809
4810 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4811 workaround.
4812
4813 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4814 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4815 long long) to prevent compiler warning on 64-bit systems.
4816
4817 2002-08-23 Andrew Cagney <cagney@redhat.com>
4818
4819 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4820 (DEPRECATED_STORE_RETURN_VALUE): New method.
4821 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4822 * gdbarch.h, gdbarch.c: Re-generate.
4823
4824 * values.c (set_return_value): Pass current_regcache to
4825 STORE_RETURN_VALUE.
4826 * arch-utils.h (legacy_store_return_value): Declare.
4827 * arch-utils.c (legacy_store_return_value): New function.
4828 (legacy_extract_return_value): Update parameters.
4829
4830 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4831 STORE_RETURN_VALUE.
4832 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4833 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4834 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4835 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4836 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4837 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4838 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4839 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4840 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4841 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4842
4843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4844 * i386-tdep.c (i386_extract_return_value): Update.
4845 * arch-utils.c (legacy_extract_return_value): Update.
4846 * frv-tdep.c (frv_gdbarch_init): Update.
4847 * cris-tdep.c (cris_gdbarch_init): Update.
4848 * d10v-tdep.c (d10v_gdbarch_init): Update.
4849 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4850 * m68k-tdep.c (m68k_gdbarch_init): Update.
4851 * mcore-tdep.c (mcore_gdbarch_init): Update.
4852 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4853 * s390-tdep.c (s390_gdbarch_init): Update.
4854 * sparc-tdep.c (sparc_gdbarch_init): Update.
4855 * sh-tdep.c (sh_gdbarch_init): Update.
4856 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4857 * v850-tdep.c (v850_gdbarch_init): Update.
4858 * avr-tdep.c (avr_gdbarch_init): Update.
4859 * ia64-tdep.c (ia64_gdbarch_init): Update.
4860 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4861 * vax-tdep.c (vax_gdbarch_init): Update.
4862 * alpha-tdep.c (alpha_gdbarch_init): Update.
4863 * arm-tdep.c (arm_gdbarch_init): Update.
4864 * mips-tdep.c (mips_gdbarch_init): Update.
4865 * i386-tdep.c (i386_gdbarch_init): Update.
4866
4867 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4868
4869 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4870 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4871
4872 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4873
4874 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4875 problems.
4876
4877 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4878
4879 * infrun.c (handle_inferior_event): Move a comment outside of a
4880 function call, in order to avoid indent reformatting this part
4881 of the code in an unreadable way.
4882
4883 2002-08-23 Grace Sainsbury <graces@redhat.com>
4884
4885 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4886 when breakpoints fail. Move general breakpoint error messages to
4887 insert_breakpoints.
4888 * breakpoint.c (insert_breakpoints): Change warnings when
4889 breakpoints are nto inserted to specify the type. Remove call to
4890 memory_error when hardware breakpoints can't be inserted. Remove
4891 multiple calls to warning so all messages are sent to the user at
4892 once.
4893 (delete_breakpoints): Make insert error messsages more explicit.
4894
4895 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4896
4897 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4898 gdbserver/ChangeLog.
4899
4900 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4901
4902 * i386-tdep.c: Include "objfiles.h".
4903 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4904 skip_trampoline_code.
4905 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4906 (CPLUS_MARKER): Define to '.'.
4907
4908 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4909 member.
4910 (linux_corefile_thread_callback): Increase args->num_notes.
4911 (linux_make_note_section): Initialize thread_args.num_notes, and
4912 use it to determine whether notes for any threads were created.
4913
4914 2002-08-23 Donn Terry <donnte@microsoft.com>
4915
4916 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4917 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4918 and PCUNKILL.
4919 (write_with_trace): Conditionalize out the switch branch handling
4920 PCSHOLD if the corresponding macro is not defined. Likewise for
4921 PRSABORT and PRSTOP.
4922 This change will be needed by the Interix port.
4923
4924 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4925
4926 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4927 write_register wherever possible instead of manipulating the
4928 register bytes directly.
4929 Assign VALUE_CONTENTS to a variable and use that.
4930 The GPR numbers are now dependent on the architecture.
4931
4932 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4933
4934 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4935 ev_offset fields.
4936 (skip_prologue): Add support for BookE/e500 instructions.
4937 (e500_extract_return_value): New function.
4938 (frame_get_saved_regs): Add support for saving ev registers and
4939 pseudo gpr's.
4940 (e500_store_return_value): New function.
4941 (rs6000_gdbarch_init): Move up default intializations of
4942 deprecated_extract_return_value and store_return_value. Overwrite
4943 init of store_return_value with e500 specific version.
4944 Set extract_return_value for e500.
4945
4946 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4947
4948 * blockframe.c (generic_call_dummy_register_unwind): Use
4949 regcache_cooked_read to catch cases in which the variable is
4950 stored in a pseudo register.
4951
4952 2002-08-22 Andrew Cagney <cagney@redhat.com>
4953
4954 * NEWS: Mention that the i960 has been made obsolete.
4955 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4956 i960-tdep.c
4957 (remote-nrom.o): Obsolete target.
4958 (remote-nindy.o, i960-tdep.o): Ditto.
4959 * remote-nrom.c: Make file obsolete.
4960 * remote-nindy.c, remote-vx960.c: Ditto.
4961 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4962 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4963 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4964 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4965 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4966 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4967 i960-*-vxworks* obsolete.
4968 * MAINTAINERS: Note that the i960 is obsolete.
4969
4970 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4971
4972 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4973 detach to allow reinitialization.
4974
4975 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4976
4977 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4978 attempt).
4979
4980 2002-08-22 Jim Blandy <jimb@redhat.com>
4981
4982 * coffread.c (coff_symfile_read): Don't try to read the line
4983 number table from disk if the image file doesn't have a symbol
4984 table; we'll never actually look at the info anyway, and Windows
4985 ships DLL's with bogus file offsets for the line number data.
4986
4987 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4988
4989 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4990 an e500 executable.
4991
4992 2002-08-21 Michael Snyder <msnyder@redhat.com>
4993
4994 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4995 (MSYMBOL_SIZE): Replace macro with function.
4996 (DEFAULT_MIPS_TYPE): Delete unused macro.
4997 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4998 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4999
5000 2002-08-21 Jim Blandy <jimb@redhat.com>
5001
5002 * valops.c (value_cast): Simplify and correct logic for doing a
5003 static cast from a pointer to a base class to a pointer to a
5004 derived class.
5005
5006 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5007
5008 * infcmd.c (default_print_registers_info): Replace
5009 do_registers_info.
5010 (registers_info): Use gdbarch_print_registers_info instead of
5011 DO_REGISTERS_INFO.
5012 * inferior.h (default_print_registers_info): Replace
5013 do_registers_info.
5014 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5015 (DO_REGISTERS_INFO): Change to a predicate function.
5016 * gdbarch.h, gdbarch.c: Regenerate.
5017
5018 2002-08-21 Keith Seitz <keiths@redhat.com>
5019
5020 * gdb-events.sh: Add target-changed event.
5021 * gdb-events.c: Regenerated.
5022 * gdb-events.c: Regenerated.
5023 * valops.c (value_assign): Add target-changed event notification
5024 to inlval_register, lval_memory, and lval_reg_frame_relative.
5025
5026 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5027
5028 * NEWS: Add an entry regarding the improvement of the next/step
5029 operation on Alpha Tru64 multi-processor machines.
5030
5031 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5032
5033 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5034 directores.
5035 * Makefile.in: Update all _h macro definitions.
5036 * Makefile.in (install-gdbtk): Move to install section.
5037 (rdi-share/libangsd.a): Move to end of file.
5038
5039 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5040
5041 * frame.c (frame_register_unwind): When a register, set addrp to
5042 the register's byte.
5043
5044 2002-08-20 Michael Snyder <msnyder@redhat.com>
5045
5046 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5047 used locally, so move them from the target machine header to here.
5048 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5049 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5050 Make static.
5051 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5052
5053 2002-08-20 Andrew Cagney <cagney@redhat.com>
5054
5055 * NEWS: Mention that the Apollo line was made obsolete.
5056 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5057 m68*-hp-hpux* obsolete.
5058 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5059 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5060 * buildsym.c (make_blockvector): Make static.
5061 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5062 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5063 (ALLDEPFILES): Remove dstread.c.
5064 (dstread.o): Obsolete make rule.
5065 * dstread.c: Makefile obsolete.
5066 * dst.h: Ditto.
5067 * config/m68k/hp300hpux.mt: Ditto.
5068 * config/m68k/hp300hpux.mh: Ditto.
5069 * config/m68k/hp300bsd.mt: Ditto.
5070 * config/m68k/hp300bsd.mh: Ditto.
5071 * config/m68k/apollo68b.mt: Ditto.
5072 * config/m68k/apollo68v.mh: Ditto.
5073 * config/m68k/apollo68b.mh: Ditto.
5074
5075 2002-08-20 Michael Snyder <msnyder@redhat.com>
5076
5077 * mips-tdep.c (mips_in_return_stub): Make static.
5078 (mips_gdbarch_init): Set in_solib_return_trampoline.
5079 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5080
5081 2002-08-20 Michael Snyder <msnyder@redhat.com>
5082
5083 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5084 * gdbarch.c, gdbarch.h: Regenerate.
5085 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5086 Add.
5087 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5088
5089 2002-08-20 Michael Snyder <msnyder@redhat.com>
5090
5091 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5092 (mips_gdbarch_init): Set skip_trampoline_code,
5093 in_solib_call_trampoline.
5094 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5095 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5096
5097 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5098
5099 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5100
5101 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5102 vector type for ev registers.
5103 (e500_pseudo_register_read): New function.
5104 (e500_pseudo_register_write): New function.
5105 (e500_dwarf2_reg_to_regnum): New function.
5106 (PPC_UISA_NOFP_SPRS): New macro.
5107 (PPC_EV_REGS): New macro.
5108 (PPC_GPRS_PSEUDO_REGS): New macro.
5109 (registers_e500): New register set for e500.
5110 (variants): Add e500 variant.
5111 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5112 before setting architectural dependent variations. Initialize ev
5113 registers numbers. Add case for e500 architecture. Set the
5114 number of pseudo registers.
5115
5116 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5117
5118 * rs6000-tdep.c: Clean up comments.
5119
5120 2002-08-20 Andrew Cagney <cagney@redhat.com>
5121
5122 * h8300-tdep.c: Re-indent file.
5123
5124 2002-08-20 Jim Blandy <jimb@redhat.com>
5125
5126 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5127 default for this.
5128
5129 2002-08-20 Keith Seitz <keiths@redhat.com>
5130
5131 * breakpoints.c (watch_command_1): Use internal breakpoint
5132 when setting a watchpoint_scope breakpoint.
5133
5134 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5135
5136 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5137 (build_builtin_type_vec64i): Ditto.
5138 (build_builtin_type_vec128): Ditto.
5139 (build_builtin_type_vec128i): Ditto.
5140
5141 2002-08-19 Michael Snyder <msnyder@redhat.com>
5142
5143 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5144 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5145 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5146 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5147 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5148 CALL_DUMMY_ADDRESS): Delete.
5149 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5150 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5151 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5152 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5153 push_return_address.
5154 (mips_register_raw_size, mips_eabi_use_struct_convention,
5155 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5156 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5157 mips_init_extra_frame_info, mips_eabi_push_arguments,
5158 mips_n32n64_push_arguments, mips_push_return_address,
5159 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5160 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5161
5162 2002-08-19 Michael Snyder <msnyder@redhat.com>
5163
5164 * mips-tdep.c (mips_frame_num_args): New function.
5165 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5166 frame_saved_pc, frame_args_address, frame_locals_address,
5167 frame_num_args, and frame_args_skip.
5168 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5169 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5170 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5171 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5172
5173 2002-08-20 Michael Snyder <msnyder@redhat.com>
5174
5175 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5176 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5177 * mips-tdep.c (mips_store_struct_return): New function.
5178 (mips_extract_struct_value_address): New function.
5179 (mips_gdbarch_init): Set store_struct_return and
5180 extract_struct_value_address.
5181
5182 2002-08-20 David Carlton <carlton@math.stanford.edu>
5183
5184 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5185 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5186 (read_file_scope): Check that line_header is nonzero before
5187 decoding macro information.
5188
5189 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5190
5191 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5192 flag the general-purpose registers as floating-point on targets
5193 that don't support the floating-point registers.
5194
5195 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5196
5197 * rs6000-tdep.c (altivec_register_p): Delete.
5198 (rs6000_do_altivec_registers): Delete.
5199 (rs6000_altivec_registers_info): Delete.
5200 (rs6000_do_registers_info): Delete.
5201 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5202 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5203
5204 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5205
5206 * infcmd.c (do_registers_info): Print vector registers in hex
5207 format only.
5208 (print_vector_info): Check that printing registers
5209 makes sense.
5210 (print_float_info): Ditto.
5211
5212 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5213
5214 * mips-tdep.c (mips_gdbarch_init): Update.
5215 (mips_o32_extract_return_value): Rewrite.
5216 (mips_o32_store_return_value): Rewrite.
5217 (mips_o32_xfer_return_value): New function.
5218 (mips_xfer_register): Tweak debug print message. Allow for
5219 buf_offset when dumping the value transfered.
5220
5221 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5222
5223 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5224 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5225 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5226 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5227 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5228
5229 2002-08-14 Michael Snyder <msnyder@redhat.com>
5230
5231 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5232
5233 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5234
5235 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5236 register.
5237 (P): New macro to define a register as a pseudo register.
5238 (R, R4, R8, R16, FR32, R64, R0): Updated.
5239 (struct variant): Add new fields for number of pseudo registers
5240 and number of total registers.
5241 (tot_num_registers): New macro replacing....
5242 (num_registers): ...deleted macro.
5243 (num_registers): New function.
5244 (num_pseudo_registers): New function.
5245 (variants): Update all variants to intialize new fields correctly.
5246 Postpone initialization of number of pseudo regs and real regs.
5247 (init_variants): New function.
5248 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5249 registers offsets.
5250
5251 2002-08-19 David Carlton <carlton@math.stanford.edu>
5252
5253 * valops.c (search_struct_field): Change error message to treat
5254 return value of 0 from value_static_field as meaning that field is
5255 optimized out.
5256 (value_struct_elt_for_reference): Ditto.
5257 * values.c (value_static_field): Treat an unresolved location the
5258 same as a nonexistent symbol. Fix PR gdb/635.
5259 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5260 enclosed. Fix PR gdb/574.
5261 * MAINTAINERS: Add self to Write After Approval list.
5262
5263 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5264
5265 * mips-tdep.c (mips_xfer_register): New function.
5266 (mips_n32n64_extract_return_value): Rewrite.
5267 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5268 instead of deprecated_extract_return_value.
5269
5270 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5271
5272 * rs6000-tdep.c (TDEP): Delete macro.
5273 (branch_dest): Replace use of TDEP macro with its body.
5274 (rs6000_pop_frame): Ditto.
5275 (rs6000_push_arguments): Ditto.
5276 (rs6000_skip_trampoline_code): Ditto.
5277 (rs6000_frame_saved_pc): Ditto.
5278 (rs6000_frame_chain): Ditto.
5279 (rs6000_register_name): Ditto.
5280 (rs6000_register_byte): Ditto.
5281 (rs6000_register_raw_size): Ditto.
5282 (rs6000_register_virtual_type): Ditto.
5283 (rs6000_register_convertible): Ditto.
5284 (rs6000_convert_from_func_ptr_addr): Ditto.
5285
5286 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5287
5288 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5289 conditionally.
5290 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5291 MIPS_LINUX_JB_ELEMENT_SIZE.
5292 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5293 for MAX_REGISTER_RAW_SIZE arrays.
5294 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5295 MIPS_LINUX_JB_ELEMENT_SIZE.
5296
5297 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5298
5299 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5300
5301 2002-08-19 Aidan Skinner <aidan@velvet.net>
5302
5303 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5304 ada-valprint.c ada-tasks.c.
5305 (YYFILES): Add ada-exp.y.
5306 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5307 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5308 (ada-exp.tab.o): New target.
5309
5310 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5311
5312 * regcache.c (regcache_xfer_part): New function.
5313 (regcache_raw_read_part): New function.
5314 (regcache_raw_write_part): New function.
5315 (regcache_cooked_read_part): New function.
5316 (regcache_cooked_write_part): New function.
5317 * regcache.h (regcache_raw_read_part): Declare.
5318 (regcache_raw_write_part): Declare.
5319 (regcache_cooked_read_part): Declare.
5320 (regcache_cooked_write_part): Declare.
5321
5322 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5323
5324 * remote.c (remote_open_1): Add async_p.
5325 (remote_async_open_1): Delete.
5326 (open_remote_target): Delete.
5327 (remote_open, extended_remote_open): Update calls to remote_open_1.
5328 (remote_async_open, extended_remote_async_open): Call
5329 remote_open_1 instead of remote_async_open_1.
5330
5331 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5332
5333 * blockframe.c: Fix a few coding standard violations.
5334
5335 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5336
5337 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5338 here from ...
5339 * config/i386/tm-i386sco5.h: ... here. File removed.
5340 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5341
5342 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5343 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5344 (TM_FILE): Set to tm-i386.h.
5345 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5346 * config/i386/tm-i386v.h: Remove file.
5347 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5348 instead of "i386/tm-i386v.h".
5349 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5350 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5351 "i386/tm-i386v.h".
5352 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5353 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5354 "i386/tm-i386.h".
5355
5356 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5357
5358 * config/i386/nm-i386v.h: Add protection against
5359 multiple-inclusion.
5360 (i386_register_u_addr): Remove prototype.
5361 (register_u_addr): New prototype.
5362 (REGISTER_U_ADDR): Redefine accordingly.
5363 * i386v-nat.c: Improve several comments.
5364 (i386_register_u_addr): Change signature and rename to
5365 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5366 ubase variable.
5367
5368 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5369
5370 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5371 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5372 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5373 deprecated_extract_return_value.
5374 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5375 rename mips_o32o64_push_arguments.
5376 (mips_gdbarch_init): Update.
5377 (mips_extract_return_value): Delete.
5378 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5379 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5380 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5381 (mips_n32n64_extract_return_value): Clone
5382 mips_extract_return_value.
5383 (mips_store_return_value): Delete.
5384 (mips_o32_store_return_value): Clone mips_store_return_value.
5385 (mips_o64_store_return_value): Clone mips_store_return_value.
5386 (mips_eabi_store_return_value): Clone mips_store_return_value.
5387 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5388
5389 2002-08-18 Aidan Skinner <aidan@velvet.net>
5390
5391 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5392 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5393
5394 2002-08-18 Aidan Skinner <aidan@velvet.net>
5395
5396 * ada-lang.c: Run through gdb_indent.sh.
5397 * ada-lang.h: Run through gdb_indent.sh.
5398 * ada-tasks.c: Run through gdb_indent.sh.
5399 * ada-typeprint.c: Run through gdb_indent.sh.
5400 * ada-valprint.c: Run through gdb_indent.sh.
5401
5402 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5403
5404 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5405 ABI.
5406
5407 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5408
5409 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5410
5411 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5412 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5413
5414 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5415 write_register_gen instead of write_register_bytes.
5416
5417 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5418 i[3456]-*-osf1mk* configurations have been made obsolete.
5419 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5420 i[3456]86-*-osf1mk* hosts obsolete.
5421 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5422 targets obsolete.
5423 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5424 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5425 config/i386/i386m3.mt, config/i386/nm-m3.h,
5426 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5427 config/i386/i386mk.mh, config/i386/i386mk.mt,
5428 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5429 obsolete.
5430 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5431 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5432 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5433
5434 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5435
5436 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5437 (hppa_value_returned_from_stack): Declare.
5438 (hppa_extract_return_value): Declare.
5439 * config/pa/hppa.mt: New file.
5440 * configure.tgt: Recognize hppa*-*-*.
5441 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5442
5443 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5444
5445 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5446 comment.
5447
5448 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5449
5450 * top.c (gdb_rl_operate_and_get_next): Make sure
5451 operate-and-get-next functions correctly even when the history
5452 list is completely filled.
5453
5454 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5455
5456 * MAINTAINERS (Target Instruction Set Architectures): Rename
5457 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5458 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5459 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5460 already listed under Host/Native.
5461
5462 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5463 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5464 mips*-*-*.
5465
5466 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5467
5468 * config/ia64/ia64.mt: New file.
5469 * config/alpha/alpha.mt: New file.
5470 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5471 ia64-linux-gnu. Mention that ia64-elf is broken.
5472 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5473
5474 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5475
5476 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5477 generic_func_frame_valid instead of func_frame_valid.
5478
5479 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5480
5481 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5482 procfs appears to be broken when debugging on multi-processor
5483 machines. So enable software single stepping in order to avoid
5484 using the procfs interface to do next/step operations, using
5485 internal breakpoints instead.
5486
5487 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5488 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5489 make this pc address equal to the value it would have if the
5490 system stepping capability was used. Also set a new flag used
5491 to ensure that we don't readjust the PC one more time later.
5492
5493 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5494 address by DECR_PC_AFTER_BREAK when software single step is
5495 in use for this architecture, as this has already been taken
5496 care of in handle_inferior_event().
5497
5498 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5499
5500 * infrun.c (handle_inferior_event): Minor reformatting, to make
5501 a rather long condition expression easier to read.
5502
5503 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5504
5505 * Makefile.in (gdbtk.o): Move to end of file.
5506 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5507 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5508 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5509 (gdbtk-wrapper.o, gdbres.o): Ditto.
5510
5511 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5512
5513 * Makefile.in (copying.o): Separate out compile rule.
5514 (hpux-thread.o, procfs.o, signals.o): Ditto.
5515 (v850ice.o, z8k-tdep.o): Ditto.
5516 (tui-file.o): Move to TUI section.
5517 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5518 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5519
5520 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5521
5522 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5523 skip_trampoline_code, for better namespace-proofing.
5524
5525 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5526
5527 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5528
5529 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5530
5531 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5532
5533 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5534 signal, check whether we hit a breakpoint before checking for a
5535 single step breakpoint. Otherwise, GDB fails to notice that a
5536 breakpoint has been hit when stepping onto a breakpoint.
5537
5538 2002-08-16 Keith Seitz <keiths@redhat.com>
5539
5540 * gdb-events.sh (clear_gdb_event_hooks): New function.
5541 * gdb-events.c: Regenerate.
5542 * gdb-events.h: Regenerate.
5543
5544 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5545
5546 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5547 not_a_sw_breakpoint.
5548 * breakpoint.h (bpstat_stop_status): Add parameter names.
5549
5550 2002-08-16 Grace Sainsbury <graces@redhat.com>
5551
5552 * remote.c (remote_insert_hw_breakpoint)
5553 (remote_remove_hw_breakpoint): Fix calculation of length field
5554 for Z-packet.
5555
5556 2002-08-15 Michael Snyder <msnyder@redhat.com>
5557
5558 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5559 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5560 (supply_fpregset): Ditto.
5561
5562 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5563 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5564 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5565 (TARGET_READ_SP): Delete.
5566 (DO_REGISTERS_INFO): Delete.
5567 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5568 Delete.
5569 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5570 from macros to functions.
5571
5572 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5573 (mips_register_convertible, mips_register_convert_to_virtual,
5574 mips_register_convert_to_raw): Make static.
5575 (mips_read_sp): New function.
5576 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5577 (mips_do_registers_info): Make static.
5578 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5579 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5580 (mips_register_convert_from_type, mips_register_convert_to_type):
5581 New functions.
5582 (mips_gdbarch_init): Set up function_start_offset,
5583 register_virtual_size, pc_in_sigtramp.
5584
5585 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5586
5587 * infcmd.c (vector_info): New function.
5588 (_initialize_infcmd): Add command "info vector".
5589 (print_vector_info): New function.
5590
5591 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5592 * gdbarch.h, gdbarch.c: Regenerate.
5593
5594 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5595
5596 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5597 ``print_all''. Only print vector registers when ``print_all''.
5598
5599 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5600
5601 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5602 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5603
5604 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5605 Add `args' parameter.
5606 * gdbarch.h, gdbarch.c: Regenerate.
5607
5608 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5609
5610 * infcmd.c (float_info): Call print_float_info.
5611 (print_float_info): New function. By default, print the
5612 floating-point registers.
5613
5614 * arch-utils.h (default_print_float_info): Delete declaration.
5615 * arch-utils.c (default_print_float_info): Delete function.
5616
5617 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5618
5619 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5620 out define.
5621
5622 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5623 FRAME.
5624
5625 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5626 * configure.host: Make i[3456]86-*-aix host obsolete.
5627 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5628 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5629 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5630 config/i386/xm-i386aix.h: Make files obsolete.
5631 * i386aix-nat.c: Make file obsolete.
5632 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5633 (i386aix-nat.o): Make target obsolete.
5634
5635 * config/i386/nm-gnu.h: Removed.
5636 * config/i386/nm-i386gnu.h: New file.
5637 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5638 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5639 Moved here from ...
5640 * config/i386/tm-i386gnu.h: ... here. Removed.
5641 * config/i386/xm-i386gnu.h: Removed.
5642 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5643 (NAT_FILE): Set to nm-i386gnu.h.
5644 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5645 * i386-tdep.c: New file.
5646 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5647 (i386gnu-tdep.o): Specify dependencies.
5648
5649 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5650
5651 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5652 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5653 Adjust a few comments to reflect reality a bit closer.
5654 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5655 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5656 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5657 target_insert_watchpoint, target_remove_watchpoint):
5658 Move defines to ...
5659 * config/i386/nm-i386sco5.h: ... here.
5660 (kernel_u_size): Add prototype. Improve a few comments and add
5661 protection against multiple inclusion.
5662
5663 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5664 out define.
5665
5666 * uw-thread.c (SP_ARG0): Define if not already defined.
5667 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5668
5669 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5670
5671 * config/i386/tm-i386.h: Don't include "regcache.h".
5672
5673 * i387-tdep.h (i387_print_float_info): New prototype.
5674 * i387-tdep.c (print_i387_value, print_i387_ext,
5675 print_i387_status_word, print_i387_control_word): Add `struct
5676 ui_file *' argument and use it for output.
5677 (i387_print_float_info): Renamed from i387_float_info. Add
5678 `struct gdbarch *' and `struct ui_file *' arguments and use the
5679 latter for output.
5680 * i386-tdep.c: Include "i387-tdep.h".
5681 (i386_gdbarch_init): Set print_float_info.
5682 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5683 (FLOAT_INFO): Remove define.
5684
5685 2002-08-13 Michael Snyder <msnyder@redhat.com>
5686
5687 * mips-tdep.c (mips_push_arguments): Rename to
5688 mips_eabi_push_arguments, and tune for EABI.
5689 (MIPS_REGS_HAVE_HOME_P): Delete.
5690 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5691 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5692 Delete references to mips_regs_have_home_p.
5693
5694 2002-08-14 Keith Seitz <keiths@redhat.com>
5695
5696 * Makefile.in (install-gdbtk): Create insight plugin directory.
5697 Install plugins.tcl file.
5698
5699 2002-08-14 Keith Seitz <keiths@redhat.com>
5700
5701 * configure.in: Move SUBDIRS to near top of the file so that
5702 --enable options may add things to it.
5703 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5704 * configure: Regenerate.
5705
5706 2002-08-13 Michael Snyder <msnyder@redhat.com>
5707
5708 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5709 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5710 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5711
5712 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5713
5714 * vax-tdep.c (vax_get_saved_register): Delete function.
5715 (vax_gdbarch_init): Update.
5716 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5717 (ns32k_gdbarch_init): Update.
5718 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5719 (alpha_gdbarch_init): Update.
5720
5721 2002-08-13 Andrew Cagney <cagney@redhat.com>
5722
5723 * regcache.c (init_regcache_descr): Overallocate the
5724 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5725 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5726 nr_raw_registers.
5727 (set_register_cached): Add range checking assertions. Use
5728 current_regcache.
5729
5730 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5731
5732 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5733 numbers for MMX registers.
5734
5735 2002-08-13 Andrew Cagney <cagney@redhat.com>
5736
5737 * i386-tdep.c (i386_gdbarch_init): Use
5738 generic_unwind_get_saved_register.
5739
5740 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5741
5742 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5743 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5744 target vector.
5745 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5746 Delete. Add comment regarding this now-deleted target method.
5747
5748 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5749
5750 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5751 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5752 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5753 real PC and the page number (if it's within the memory bank window).
5754 (m68hc11_pseudo_register_write): Likewise when saving.
5755 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5756 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5757 (m68hc11_register_raw_size): And use 32-bit for it.
5758 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5759 16K memory bank is used by the prog; also use the virtual pc.
5760
5761 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5762
5763 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5764 (m68hc11_gdbarch_init): Install it in gdbarch.
5765 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5766 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5767 (MSYMBOL_SIZE): New for documentation.
5768 (insn_return_kind): Enum to specify how a function returns.
5769 (frame_extra_info): Cleanup and record the return mode.
5770 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5771 register in address computation.
5772 (m68hc11_get_return_insn): New to obtain the return instruction used
5773 by the function.
5774 (m68hc11_frame_init_saved_regs): Take into account the return
5775 instruction used by the function for far and interrupt functions.
5776 (m68hc11_init_extra_frame_info): Take into account page register.
5777 (m68hc11_frame_args_address): Adjust according to the return mode.
5778 (show_regs): Print page register only when it's used.
5779
5780 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5781
5782 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5783 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5784 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5785 registers.
5786 (m68hc11_register_raw_size): Likewise.
5787
5788 2002-08-13 Andrew Cagney <cagney@redhat.com>
5789
5790 * i386-tdep.c (i386_register_name): Handle mmx registers.
5791 (mmx_regnum_p): New function.
5792 (i386_mmx_names): New array.
5793 (mmx_num_regs): New variable.
5794 (i386_pseudo_register_read): New function.
5795 (i386_pseudo_register_write): New function.
5796 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5797
5798 * regcache.c (regcache_raw_read_unsigned): New function.
5799 (regcache_raw_read_signed): New function.
5800 * regcache.h (regcache_raw_read_unsigned): Declare.
5801 (regcache_raw_read_signed): Declare.
5802
5803 2002-08-13 Andrew Cagney <cagney@redhat.com>
5804
5805 * regcache.c (regcache_raw_read_as_address): Delete function.
5806 (regcache_cooked_read_signed): New function.
5807 (regcache_cooked_read_unsigned): New function.
5808 * regcache.h (regcache_cooked_read_signed): Declare.
5809 (regcache_cooked_read_unsigned): Declare.
5810 (regcache_raw_read_as_address): Delete declaration.
5811
5812 * blockframe.c (generic_read_register_dummy): Use
5813 regcache_cooked_read_unsigned.
5814 * i386-tdep.c (i386_extract_struct_value_address): Use
5815 regcache_cooked_read_unsigned.
5816
5817 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5818
5819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5820 double sizes according to ELF ABI flags.
5821 (gdbarch_tdep): Record elf_flags.
5822
5823 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5824
5825 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5826 (m6812_prolog): They can appear in 68HC12 function prologue.
5827 (m68hc11_frame_chain): Cleanup.
5828
5829 2002-08-12 Andrew Cagney <cagney@redhat.com>
5830
5831 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5832 declarations.
5833 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5834 (i386_linux_register_raw_size): Delete function.
5835 (i386_linux_init_abi): Update.
5836 * i386-tdep.c (i386_register_raw_size): Delete function.
5837 (i386_register_byte): Delete function.
5838 (i386_gdbarch_init): Update.
5839 (i386_register_size): Delete array.
5840 (i386_register_offset): Delete array.
5841
5842 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5843 (REGISTER_RAW_SIZE): Delete macro.
5844 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5845 (REGISTER_BYTE): Delete macro.
5846
5847 2002-08-11 Aidan Skinner <aidan@velvet.net>
5848
5849 * ada-lang.c (ada_lookup_partial_symbol)
5850 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5851 prototype names so that grep ^func works properly.
5852
5853 * ada-lang.c (ada_array_element_type)
5854 (ada_lookup_partial_symbol): Fix typos in parameter list.
5855
5856 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5857 Fix prototype names so that grep ^func works properly.
5858
5859 2002-08-10 Andrew Cagney <cagney@redhat.com>
5860 Elena Zannoni <ezannoni@redhat.com>
5861 Martin M. Hunt <hunt@redhat.com>
5862
5863 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5864 (build_builtin_type_vec128i): Set the vector bit.
5865 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5866 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5867 (build_builtin_type_vec64): New function.
5868 (build_builtin_type_vec64i): New function.
5869 (build_gdbtypes): Initialize builtin_type_vec64 and
5870 builtin_type_vec64i.
5871
5872 2002-08-09 Andrew Cagney <cagney@redhat.com>
5873
5874 * regcache.c (regcache_dump): Compare the register offset
5875 with REGISTER_BYTE.
5876 * arch-utils.c (generic_register_byte): New function.
5877 * arch-utils.h (generic_register_byte): Declare.
5878 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5879 * gdbarch.h, gdbarch.c: Regenerate.
5880
5881 2002-08-09 Andrew Cagney <cagney@redhat.com>
5882
5883 * regcache.c: Include "gdbcmd.h"
5884 (_initialize_regcache): Add commands "maintenance print
5885 registers", "maintenance print raw-registers" and "maintenance
5886 print cooked-registers".
5887 (enum regcache_dump_what): Define.
5888 (dump_endian_bytes): New function.
5889 (regcache_dump): New function.
5890 (regcache_print): New function.
5891 (maintenance_print_registers): New function.
5892 (maintenance_print_raw_registers): New function.
5893 (maintenance_print_cooked_registers): New function.
5894 * Makefile.in (regcache.o): Update dependencies.
5895
5896 2002-08-09 Michael Snyder <msnyder@redhat.com>
5897
5898 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5899 (mips_push_arguments): Correct some comments. Use paddr_nz
5900 for printing addresses in debug output. Replace static
5901 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5902 (mips_n32n64_push_arguments): New function, cloned from
5903 mips_push_arguments and tuned for the n32/n64 ABI.
5904 (mips_push_register): Buffer needs dynamic allocation.
5905 (mips_print_register): Ditto.
5906 (do_gp_register_row): Ditto.
5907 (mips_store_return_value): Ditto.
5908 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5909
5910 2002-08-09 Don Howard <dhoward@redhat.com>
5911
5912 * memattr.c (mem_info_command): Print special case of upper bound
5913 as max CORE_ADDR + 1.
5914
5915 2002-08-08 Michael Snyder <msnyder@redhat.com>
5916
5917 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5918 returns structs by ref if they're too big to fit in two registers.
5919
5920 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5921
5922 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5923 saved regs value.
5924 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5925 mips_find_saved_regs().
5926 (mips_pop_frame): Likewise.
5927
5928 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5929
5930 * blockframe.c (frame_saved_regs_register_unwind): Revise
5931 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5932 frames are in use.
5933
5934 2002-08-09 Grace Sainsbury <graces@redhat.com>
5935
5936 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5937 T-packets; the 'a' is not taken as a register number.
5938 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5939 (remote_stopped_data_address): New functions; add to target
5940 vector.
5941 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5942 prototypes to match other implementations of this
5943 function. replace integer argument with pointer -- the length
5944 field in the Z-packet is the length of what is pointed to or 1 if
5945 pointer is null. Add to target vector.
5946 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5947 target vector.
5948
5949 From Mark Salter:
5950 * remote.c (remote_wait): Add support to extract optional
5951 watchpoint information from T-packet. Ignore unrecognized
5952 optional info in T-packet.
5953 (remote_async_wait): Ditto.
5954
5955 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5956
5957 * cli/cli-dump.c: Change fopen modes to use binary open modes
5958 as defined in include/fopen-bin.h throughout.
5959
5960 2002-08-08 Michael Snyder <msnyder@redhat.com>
5961
5962 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5963
5964 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5965
5966 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5967 assertion failure by returning early after a warning.
5968
5969 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5970
5971 * mips-tdep.c (mips_find_saved_regs): Make static.
5972 (mips_frame_init_saved_regs): New function.
5973 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5974 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5975 (mips_find_saved_regs): Delete declaration.
5976
5977 2002-08-08 Grace Sainsbury <graces@redhat.com>
5978
5979 * remote.c (remote_wait, remote_async_wait): Change
5980 thread_num from int to ULONGEST.
5981 (unpack_varlen_hex): Change result parameter from
5982 int * to ULONGEST *.
5983
5984 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5985
5986 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5987 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5988 powerpc*-*-*.
5989 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5990
5991 2002-08-08 Andrew Cagney <cagney@redhat.com>
5992
5993 * gcore.c (override_derive_stack_segment): Delete variable.
5994 (preempt_derive_stack_segment): Delete function.
5995 (derive_stack_segment): Delete function.
5996 (default_derive_stack_segment): Renamed to derive_stack_segment.
5997 (override_derive_heap_segment): Delete variable.
5998 (preempt_derive_heap_segment): Delete function.
5999 (derive_heap_segment): Delete function.
6000 (default_derive_heap_segment): Rename to derive_heap_segment.
6001
6002 2002-08-06 Michael Snyder <msnyder@redhat.com>
6003
6004 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6005 * mips-tdep.c (mips_EABI_use_struct_convention,
6006 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6007 New functions. (mips_use_struct_convention): Delete.
6008 (mips_gdbarch_init): set use_gdbarch_convention.
6009
6010 2002-08-06 Michael Snyder <msnyder@redhat.com>
6011
6012 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6013 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6014 mips_o32_reg_struct_has_addr): New functions.
6015 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6016
6017 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6018
6019 * regcache.c (pseudo_register): Delete function.
6020 (fetch_register): Delete function.
6021 (store_register): Delete function.
6022 (regcache_raw_read, legacy_read_register_gen): Use
6023 target_fetch_registers instead of fetch_register.
6024 (legacy_write_register_gen, regcache_raw_write): Use
6025 target_store_register instead of store_register.
6026 (write_register_bytes): Ditto.
6027
6028 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6029 (STORE_PSEUDO_REGISTER): Delete.
6030 * gdbarch.h, gdbarch.c: Regenerate.
6031
6032 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6033
6034 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6035 write dump file binary.
6036
6037 2002-08-05 Michael Snyder <msnyder@redhat.com>
6038
6039 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6040 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6041 (mips_gdbarch_init): Set N32 target to be mips64.
6042
6043 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6044
6045 * frame.c (find_saved_register): Break out of loop once saved
6046 register address is found. Don't mention sparc in loop comment
6047 anymore.
6048
6049 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6050
6051 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6052 mips_default_saved_regsize to 8.
6053
6054 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6055
6056 * gcore.c: Do not include <sys/procfs.h>.
6057 * Makefile.in (gcore.o): Update dependencies.
6058
6059 2002-08-06 Andrew Cagney <cagney@redhat.com>
6060
6061 * configure.tgt: Make arc-*-* obsolete.
6062 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6063 * MAINTAINERS: Make arc-elf obsolete.
6064 * arc-tdep.c: Make file obsolete.
6065 * config/arc/arc.mt: Ditto.
6066 * config/arc/tm-arc.h: Ditto.
6067
6068 2002-08-05 Theodore A. Roth <troth@verinet.com>
6069
6070 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6071
6072 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6073
6074 * mcore-tdep.c (mcore_gdbarch_init): Use
6075 generic_unwind_get_saved_register instead of
6076 generic_get_saved_register.
6077 * v850-tdep.c (v850_gdbarch_init): Ditto.
6078 * frv-tdep.c (frv_gdbarch_init): Ditto.
6079 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6080 * s390-tdep.c (s390_gdbarch_init): Ditto.
6081 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6082 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6083 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6084
6085 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6086
6087 * objfiles.h: Add missing #include "symfile.h"
6088
6089 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6090
6091 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6092
6093 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6094 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6095 of FIELD_BITSIZE.
6096
6097 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6098
6099 * NEWS: Cleanup and nitpick.
6100
6101 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6102
6103 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6104
6105 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6106
6107 * Makefile.in (gdbtk-bp.o): Update dependencies.
6108 (gdbtk-register.o): Ditto.
6109 (gdbtk-varobj.o): Ditto.
6110
6111 2002-08-03 Andrew Cagney <cagney@redhat.com>
6112
6113 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6114 m68hc11_fetch_pseudo_register.
6115 (m68hc11_pseudo_register_write): Replace
6116 m68hc11_store_pseudo_register.
6117 (m68hc11_gdbarch_init): Update.
6118
6119 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6120
6121 * gdbarch.sh: Include "gdb_string.h".
6122 * gdbarch.c: Regenerate.
6123
6124 * regcache.c: Include "gdb_string.h".
6125 * ax-general.c: Ditto.
6126 * varobj.c: Ditto.
6127 * std-regs.c: Ditto.
6128 * fbsd-proc.c: Ditto.
6129 * thread.c: Ditto.
6130
6131 * Makefile.in (regcache.o): Update dependencies.
6132 (thread.o, gdbarch.o): Ditto.
6133 (ax-general.o, gdbarch.o): Ditto.
6134 (varobj.o, std-regs.o): Ditto.
6135 (fbsd-proc.o): Specify dependencies.
6136
6137 2002-08-02 Andrew Cagney <cagney@redhat.com>
6138
6139 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6140 regnum.
6141 (regcache_cooked_write): Ditto.
6142
6143 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6144
6145 * regcache.c (regcache_cooked_read): New function.
6146 (regcache_cooked_write): New function.
6147 (read_register_gen): Rewrite using regcache_cooked_read.
6148 (write_register_gen): Rewrite using regcache_cooked_write.
6149
6150 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6151 Declare.
6152
6153 2002-08-02 Andrew Cagney <cagney@redhat.com>
6154
6155 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6156 Replace the architecture methods register_read and register_write.
6157 * gdbarch.h, gdbarch.c: Regenerate.
6158 * regcache.c (init_regcache_descr): Update.
6159 (read_register_gen): Update.
6160 (write_register_gen): Update.
6161 (supply_register): Update comment.
6162
6163 * sh-tdep.c (sh_gdbarch_init): Update.
6164 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6165 `regcache' and `gdbarch' parameters. Make `buffer' a void
6166 pointer. Update code.
6167 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6168 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6169 void pointer. Update code.
6170 (sh64_register_write): Delete.
6171 (sh4_register_read): Delete.
6172 (sh64_register_read): Delete.
6173 (sh4_register_write): Delete.
6174 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6175 void pointer, `to' parameter a void pointer.
6176 (sh_sh64_register_convert_to_raw): Ditto.
6177
6178 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6179
6180 * mips-tdep.c (mips_register_virtual_type): Use architecture
6181 invariant return values.
6182
6183 2002-08-01 Andrew Cagney <cagney@redhat.com>
6184
6185 * linux-proc.c: Include "gdb_string.h".
6186 * Makefile.in (linux-proc.o): Update dependency list.
6187
6188 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6189
6190 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6191 comment.
6192
6193 2002-08-01 Grace Sainsbury <graces@redhat.com>
6194
6195 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6196 to_insert_watchpoint, to_remove_watchpoint,
6197 to_stopped_by_watchpoint, to_stopped_data_address,
6198 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6199 target vecctor. Define their corresponding macros so they call
6200 them.
6201
6202 * target.c: Add default and debug versions of for
6203 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6204 to_insert_watchpoint, to_remove_watchpoint,
6205 to_stopped_by_watchpoint, to_stopped_data_address,
6206 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6207
6208 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6209
6210 * mips-tdep.c (mips_register_virtual_type): New function.
6211 (mips_gdbarch_init): Register mips_register_virtual_type()
6212 with gdbarch machinery.
6213 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6214 this file instead of tm-bigmips.h.
6215 (MIPS_REGSIZE): Delete this macro.
6216 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6217 multiarch version in mips-tdep.c will be found.
6218
6219 2002-08-01 Andrew Cagney <cagney@redhat.com>
6220
6221 * NEWS: Menion that CHILL has been made obsolete.
6222
6223 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6224 * stabsread.c (read_range_type): Ditto.
6225 * gdbtypes.h: Ditto.
6226 * language.c (binop_type_check): Ditto.
6227 (binop_result_type): Ditto.
6228 (integral_type): Ditto.
6229 (character_type): Ditto.
6230 (string_type): Ditto.
6231 (boolean_type): Ditto.
6232 (structured_type): Ditto.
6233 (lang_bool_type): Ditto.
6234 (binop_type_check): Ditto.
6235 * language.h (_LANG_chill): Ditto.
6236 * dwarfread.c (set_cu_language): Ditto.
6237 * dwarfread.c (CHILL_PRODUCER): Ditto.
6238 * dwarfread.c (handle_producer): Ditto.
6239 * expression.h (enum exp_opcode): Ditto.
6240 * eval.c: Ditto for comments.
6241 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6242 * expprint.c (print_subexp): Ditto.
6243 (print_subexp): Ditto.
6244 * valops.c (value_cast): Ditto.
6245 (search_struct_field): Ditto.
6246 * value.h (COERCE_VARYING_ARRAY): Ditto.
6247 * symfile.c (init_filename_language_table): Ditto.
6248 (add_psymbol_with_dem_name_to_list): Ditto.
6249 * valarith.c (value_binop): Ditto.
6250 (value_neg): Ditto.
6251 * valops.c (value_slice): Ditto.
6252 * symtab.h (union language_specific): Ditto.
6253 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6254 (SYMBOL_DEMANGLED_NAME): Ditto.
6255 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6256 * defs.h (enum language): Ditto.
6257 * symtab.c (got_symtab): Ditto.
6258 * utils.c (fprintf_symbol_filtered): Ditto.
6259
6260 * ch-typeprint.c: Make file obsolete.
6261 * ch-valprint.c: Make file obsolete.
6262 * ch-lang.h: Make file obsolete.
6263 * ch-exp.c: Make file obsolete.
6264 * ch-lang.c: Make file obsolete.
6265
6266 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6267 CHILL_LIB.
6268 (TARGET_FLAGS_TO_PASS): Ditto.
6269 (CHILLFLAGS): Obsolete.
6270 (CHILL): Obsolete.
6271 (CHILL_FOR_TARGET): Obsolete.
6272 (CHILL_LIB): Obsolete.
6273 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6274 ch-valprint.c.
6275 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6276 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6277 ch-lang.o.
6278 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6279 targets.
6280
6281 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6282
6283 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6284 This does not change anything at the moment, but will be helpful
6285 later when full Ada support is integrated.
6286
6287 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6288
6289 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6290 help message.
6291
6292 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6293
6294 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6295 and save it in a local variable. Use variable in later test.
6296
6297 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6298
6299 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6300 test. (Thanks to Daniel Jacobowitz.)
6301
6302 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6303
6304 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6305 (mips_abi_strings): Add "n64".
6306 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6307
6308 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6309
6310 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6311 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6312
6313 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6314
6315 * utils.c (host_pointer_to_address, address_to_host_pointer):
6316 Use gdb_assert() instead of explicit call to internal_error().
6317
6318 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6319
6320 * Makefile.in (rs6000-nat.o): Update dependencies.
6321
6322 From Nicholas Duffek:
6323 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6324 (aix-thread.o): New rule.
6325 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6326 * config/powerpc/aix432.mh: New file.
6327
6328 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6329
6330 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6331 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6332 (fetch_core_registers, ppc_linux_supply_gregset)
6333 (ppc_linux_supply_fpregset): New functions.
6334 (ppc_linux_regset_core_fns): New.
6335 (_initialize_ppc_linux_tdep): Call add_core_fns.
6336 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6337 and ppc_linux_supply_gregset.
6338 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6339 (supply_fpregset): Call ppc_linux_supply_fpregset.
6340 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6341 corelow.o.
6342 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6343
6344 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6345
6346 * symtab.c (lookup_symbol): Demangle before lowercasing.
6347
6348 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6349
6350 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6351 declaration.
6352 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6353 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6354 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6355 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6356 "gdb_string.h".
6357 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6358 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6359 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6360 (avr-tdep.o, mon960-rom.o): Ditto.
6361 (aout_stabs_gnu_h): Define.
6362 (symtab_h): Remove $(gdb_obstack_h).
6363
6364 2002-07-30 Jim Blandy <jimb@redhat.com>
6365
6366 Patch from David Carlton <carlton@math.stanford.edu>:
6367 * gdbinit.in: Move the `dir' commands that add GDB's own source
6368 directory to the search path to the end, so that the `gdb' source
6369 directory will be searched first.
6370
6371 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6372
6373 * gdb_obstack.h: New file.
6374 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6375 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6376 * objfiles.h: Include "gdb_obstack.h".
6377 * Makefile.in (gdb_obstack_h): Define.
6378 (symtab_h): Add $(gdb_obstack_h).
6379 (objfiles_h): Add $(gdb_obstack_h).
6380
6381 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6382 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6383 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6384 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6385 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6386 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6387 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6388 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6389
6390 * Makefile.in (bcache.o): Update dependencies.
6391 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6392 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6393 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6394 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6395 (stabsread.o, symfile.o, symmisc.o): Ditto.
6396 (symtab.o, typeprint.o, macroexp.o): Ditto.
6397 (macrotab.o, mdebugread.o): Ditto.
6398 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6399 (coff_ecoff_h, aout_aout64_h): Define.
6400 (aout_stabs_gnu_h, libaout_h): Define.
6401
6402 2002-07-29 Andrew Cagney <cagney@redhat.com>
6403
6404 * regcache.c (struct regcache_descr): Rename nr_registers to
6405 nr_cooked_registers. Revise comments describing the structure
6406 member fields.
6407 (init_regcache_descr): Update.
6408 (init_legacy_regcache_descr): Update.
6409 (read_register_gen, write_register_gen): When a cooked register in
6410 the raw register range, directly access the value from the raw
6411 register cache.
6412
6413 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6414
6415 * z8k-tdep.c: Do not include "obstack.h".
6416 * h8300-tdep.c, h8500-tdep.c: Ditto.
6417 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6418 * valprint.c, v850-tdep.c: Ditto.
6419 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6420 * mn10200-tdep.c: Ditto.
6421
6422 * Makefile.in (z8k-tdep.o): Update dependencies.
6423 (m68hc11-tdep.o, valprint.o): Ditto.
6424 (v850-tdep.o, d10v-tdep.o): Ditto.
6425 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6426 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6427 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6428 (sh_opc_h, gdb_sim_sh_h): Define.
6429 (elf_sh_h, elf_bfd_h): Define.
6430 (opcode_m68hc11_h): Define.
6431 (OPCODES_SRC, OPCODES_DIR): define.
6432 (OPCODES): Use $(OPCODES_DIR).
6433 (gdb_sim_d10v_h): Rename sim_d10v_h.
6434 (gdb_sim_arm_h): Rename sim_arm_h.
6435
6436 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6437
6438 * utils.c (host_pointer_to_address, address_to_host_pointer):
6439 Change internal_error() message to indicate function responsible
6440 for the error.
6441
6442 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6443
6444 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6445 calls to local_hex_string_custom().
6446
6447 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6448
6449 * irix5-nat.c: Move IRIX shared library support from here...
6450 * solib-irix.c: ...to here. Revised substantially to work with
6451 generic solib framework.
6452
6453 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6454 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6455 * mips-irix-tdep.c: New file.
6456
6457 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6458 (mips-irix-tdep.o, solib-irix.o): New rules.
6459 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6460 solib-irix.o.
6461 * config/mips/irix6.mt (TDEPFILES): Likewise.
6462 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6463
6464 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6465
6466 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6467 disabled (via ``#if 0'') includes.
6468
6469 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6470
6471 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6472 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6473 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6474 Add support for the fpscr register.
6475 * rs6000-nat.c (regmap, fetch_inferior_registers)
6476 (store_inferior_registers, fetch_core_registers): Likewise.
6477
6478 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6479
6480 * rs6000-nat.c (language.h): Include.
6481 (special_regs): Delete this array.
6482 (regmap): New function.
6483 (fetch_register, store_register): Use regmap() to map gdb
6484 register numbers to ptrace register numbers. Also, use
6485 outputs from regmap() to make decisions regarding type of
6486 ptrace() call to make. In particular, don't compare against
6487 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6488 (fetch_inferior_registers, store_inferior_registers): Where
6489 possible, obtain register numbers from tdep struct. Don't
6490 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6491 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6492 (LAST_UISA_SP_REGNUM): Delete.
6493
6494 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6495
6496 * rs6000-nat.c (ppc-tdep.h): Include.
6497 (fetch_registers, store_register, fetch_core_registers): Don't
6498 access registers[] directly. Instead, use supply_register() or
6499 regcache_collect() as appropriate.
6500 (find_toc_address): Format hex address with local_hex_string().
6501
6502 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6503
6504 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6505 bfd/elf32-frv.c.
6506
6507 2002-07-24 Tom Tromey <tromey@redhat.com>
6508
6509 * jv-exp.y: Marked all strings with _().
6510 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6511 internal_error.
6512 (MethodInvocation, CastExpression, parse_number, yyerror,
6513 java_type_from_name, push_expression_name, yylex): Typo fixes.
6514
6515 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6516
6517 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6518 (tee_file_flush, tee_file_write, tee_file_fputs)
6519 (tee_file_isatty): New.
6520 * ui-file.h (tee_file_new): Add prototype.
6521
6522 2002-07-24 Aidan Skinner <aidan@velvet.net>
6523
6524 * ada-lang.c: Change k&r style function definitions to prototyped
6525 form.
6526 * ada-typeprint.c: Change k&r style function definitions to prototyped
6527 form.
6528 * ada-valprint.c: Change k&r style function definitions to prototyped
6529 form.
6530
6531 2002-07-24 Andrew Cagney <cagney@redhat.com>
6532
6533 * README: Remove reference to remote-bug.
6534 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6535 remote-bug.c.
6536 (m88k-nat.o): Delete rule.
6537 (m88k-tdep.o): Delete rule.
6538 (remote-bug.o): Delete rule.
6539 * MAINTAINERS: Mark as obsolete.
6540 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6541 * m88k-tdep.c: Make file obsolete.
6542 * config/m88k/m88k.mh: Ditto.
6543 * config/m88k/delta88v4.mh: Ditto.
6544 * config/m88k/delta88v4.mt: Ditto.
6545 * config/m88k/delta88.mt: Ditto.
6546 * config/m88k/delta88.mh: Ditto.
6547 * remote-bug.c: Ditto.
6548 * config/m88k/tm-delta88.h: Ditto.
6549 * config/m88k/nm-delta88v4.h: Ditto.
6550 * config/m88k/xm-delta88.h: Ditto.
6551 * config/m88k/xm-dgux.h: Ditto.
6552 * config/m88k/tm-m88k.h: Ditto.
6553 * config/m88k/nm-m88k.h: Ditto.
6554 * config/m88k/tm-delta88v4.h: Ditto.
6555 * m88k-nat.c: Ditto.
6556 * cxux-nat.c: Ditto.
6557 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6558 and m88*-*-* obsolete.
6559 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6560 m88*-*-* obsolete.
6561
6562 2002-07-24 Andrew Cagney <cagney@redhat.com>
6563
6564 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6565 constant. Same for local pointer variables.
6566 (extract_signed_integer): Ditto.
6567 * defs.h (extract_unsigned_integer): Update.
6568 (extract_signed_integer): Update.
6569
6570 2002-07-24 Andrew Cagney <cagney@redhat.com>
6571
6572 * regcache.c (regcache_raw_write): Change buf parameter to a
6573 constant void pointer.
6574 (regcache_raw_read): Change buf parameter to a void pointer.
6575 (legacy_write_register_gen): Change myaddr parameter a constant
6576 void pointer.
6577 (supply_register): Change val parameter to a const void pointer.
6578 * regcache.h (regcache_raw_write): Update declaration.
6579 (regcache_raw_read): Update declaration.
6580 (supply_register): Update declaration.
6581
6582 2002-07-24 Tom Tromey <tromey@redhat.com>
6583
6584 * defs.h (gdb_readline_wrapper): Declare.
6585 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6586 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6587 * top.c (gdb_readline_wrapper): New function.
6588 (command_line_input): Use it.
6589
6590 2002-07-24 Andrew Cagney <cagney@redhat.com>
6591
6592 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6593 regcache_read and regcache_write.
6594 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6595 * regcache.c: Update.
6596 * sh-tdep.c (sh64_push_arguments): Update comment.
6597 (sh_pseudo_register_read): Update.
6598 (sh_pseudo_register_write): Update.
6599 (sh4_register_read): Update.
6600 (sh4_register_write): Update.
6601 (sh64_pseudo_register_read): Update.
6602 (sh64_pseudo_register_write): Update.
6603 (sh64_register_read): Update.
6604 (sh64_register_write): Update.
6605 * i386-tdep.c (i386_extract_return_value): Update.
6606 (i386_extract_struct_value_address): Update.
6607 (i386_extract_return_value): Update.
6608 * blockframe.c (generic_read_register_dummy): Update.
6609 (generic_call_dummy_register_unwind): Update
6610 * infrun.c (write_inferior_status_register): Update.
6611
6612 2002-07-23 Jim Blandy <jimb@redhat.com>
6613
6614 * parser-defs.h (expression_context_pc): Make this extern.
6615 (Thanks to Michael Snyder.)
6616
6617 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6618
6619 GDB 5.2.1 released from 5.2 branch.
6620 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6621 * README: Update to mention 5.2.1.
6622
6623 2002-07-23 Mark Salter <msalter@redhat.com>
6624
6625 * remote.c (remote_read_bytes): Fix check for error.
6626
6627 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6628
6629 * aix-thread.c (language.h): Include.
6630 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6631 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6632 Print newlines at end of debug messages.
6633 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6634 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6635
6636 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6637
6638 * aix-thread.c (ppc-tdep.h): Include.
6639 (special_register_p): New function.
6640 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6641 (store_regs_user_thread): Use register number information from
6642 gdbarch_tdep struct instead of hardcoded offsets relative to
6643 FIRST_UISA_SP_REGNUM.
6644 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6645 special_register_p() instead of using FPLAST_REGNUM and
6646 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6647 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6648 will be MQ's register number.
6649
6650 2002-07-22 Michael Snyder <msnyder@redhat.com>
6651
6652 * aix-thread.c (ops): Rename to aix_thread_ops.
6653 (base_ops): Rename to base_target.
6654 (ops_attach): Rename to aix_thread_attach.
6655 (ops_detach): Rename to aix_thread_detach.
6656 (ops_resume): Rename to aix_thread_detach.
6657 (ops_wait): Rename to aix_thread_wait.
6658 (ops_kill): Rename to aix_thread_kill.
6659 (init_ops): Rename to init_aix_thread_ops.
6660 (ops_fetch_register): Rename to aix_thread_fetch_register.
6661 (ops_store_register): Rename to aix_thread_store_register.
6662 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6663 (ops_thread_alive): Rename to aix_thread_thread_alive.
6664 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6665 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6666 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6667 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6668 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6669 (store_regs_lib): Rename to store_regs_user_thread.
6670 (store_regs_kern): Rename to store_regs_kernel_thread.
6671
6672 2002-07-22 Michael Snyder <msnyder@redhat.com>
6673
6674 * aix-thread.c (ops_prepare_to_store): Eliminate.
6675 (init_ops): Don't initialize ops.prepare_to_store.
6676 (store_regs_kern): Pre-fetch register buffers from child,
6677 because some registers may not be in the cache. Copy
6678 regs from register cache only if they are cached.
6679 (store_regs_lib): Copy regs from register cache only
6680 if they are cached.
6681 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6682 fill_gprs64): Ditto.
6683
6684 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6685
6686 * aix-thread.c (gdb_assert.h): Include.
6687 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6688 register sizes (from register cache) match size of buffer holding
6689 register data.
6690 (fill_sprs32): Change parameter types to match those in the ptrace()
6691 buffer.
6692 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6693 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6694
6695 2002-07-22 Michael Snyder <msnyder@redhat.com>
6696
6697 * aix-thread.c (supply_sprs64): Cosmetic change.
6698 (supply_sprs32): Cosmetic change.
6699 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6700 (fill_sprs64): Use regcache_collect instead of read_register.
6701 (store_regs_lib): Use regcache_collect instead of
6702 read_register. Use fill_sprs32 instead of fill_sprs64,
6703 if debugging a 32-bit architecture.
6704 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6705 out of the register cache, instead of passing a pointer into
6706 the register cache directly to ptrace. Use regcache_collect
6707 insteaad of read_register.
6708 (ops_prepare_to_store): Use target_read_registers instead
6709 of read_register_bytes.
6710
6711 2002-07-20 Aidan Skinner <aidan@velvet.net>
6712
6713 * MAINTAINERS: Add self under write after approval.
6714
6715 2002-07-20 Aidan Skinner <aidan@velvet.net>
6716
6717 * ada-tasks.c: Change k&r style function definitions to prototyped
6718 form.
6719
6720 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6721
6722 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6723 * x86-64-tdep.c: Include "objfiles.h".
6724 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6725 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6726
6727 2002-07-17 Michal Ludvig <michal@suse.cz>
6728
6729 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6730 (update_context): Initialise cfa variable.
6731
6732 2002-07-17 Michael Snyder <msnyder@redhat.com>
6733
6734 * aix-thread.c: Shorten some long lines.
6735 Bring comments into line with code spec.
6736
6737 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6738
6739 * infrun.c: Re-indent using gdb_indent.sh.
6740
6741 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6742
6743 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6744 Leave the indentation temporarily untouched, to minimize the diffs.
6745
6746 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6747
6748 * stabsread.c: Make os9k sections of the code obsolete,
6749 for real this time.
6750 * stabsread.h: Make os9k sections of the code obsolete.
6751
6752 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6753
6754 * linux-low.c (regsets_store_inferior_registers): Add free()
6755 at the end of a loop to prevent memory leak.
6756 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6757 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6758 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6759 line a comment.
6760 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6761
6762 2002-07-17 Jim Blandy <jimb@redhat.com>
6763
6764 * macrocmd.c (info_macro_command): Remove newline from error
6765 message.
6766
6767 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6768
6769 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6770 (sh_gdbarch_init): Use it for sh-dsp.
6771
6772 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6773
6774 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6775 64-bit DWARF2 format.
6776
6777 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6778
6779 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6780 <sys/proc.h> when not available.
6781
6782 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6783
6784 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6785 * stabsread.c: Make os9k sections of the code obsolete.
6786 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6787 * config/i386/i386os9k.mt: Make file obsolete.
6788 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6789 (COMMON_OBS): Remove os9kread.o
6790 (SFILES): Remove os9kread.c.
6791 (os9kread.o, remote-os9k.o): Make target obsolete.
6792 * remote-os9k.c: Make file obsolete.
6793 * os9kread.c: Make file obsolete.
6794 * Makefile.in
6795
6796 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6797
6798 * NEWS: Mention that the FR30 has been made obsolete.
6799 * fr30-tdep.c: Make file obsolete.
6800 * config/fr30/tm-fr30.h: Ditto.
6801 * config/fr30/fr30.mt: Ditto.
6802 * configure.tgt: Make fr30-*-elf obsolete.
6803 * MAINTAINERS: Make fr30-elf obsolete.
6804
6805 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6806
6807 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6808 found is not inside a section.
6809
6810 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6811
6812 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6813 strerror().
6814 (pdc_realloc): Use xrealloc() instead of realloc().
6815
6816 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6817
6818 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6819 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6820 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6821 macros.
6822
6823 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6824
6825 * aix-thread.c (ptrace_check): Eliminate goto.
6826 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6827 problem.
6828
6829 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6830
6831 * aix-thread.c (gdbcmd.h): Include.
6832 (DEBUG, DBG, DBG2, dbg): Eliminate.
6833 (debug_aix_thread): New static global.
6834 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6835 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6836 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6837 invocations to DBG and DBG2 macros to test against
6838 ``debug_aix_thread'' and call fprintf_unfiltered().
6839 (_initialize_aix_thread): Add new command "set debug aix-thread".
6840
6841 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6842
6843 From Gerhard Tonn <TON@de.ibm.com>:
6844 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6845 instead of supply_register.
6846
6847 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6848
6849 * dwarf2cfi.c: Include "gdb_assert.h".
6850 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6851 non-NULL.
6852 (update_context): Do not use __func__. Add missing ``break''.
6853 (update_context): Do not use __func__.
6854
6855 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6856
6857 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6858 and its setting. Set gdbarch instruction printing functions
6859 directly. For non-rs6000 case use new function
6860 gdb_print_insn_powerpc.
6861 (gdb_print_insn_powerpc): New function.
6862
6863 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6864
6865 * NEWS: Mention that the d30v has been marked obsolete.
6866 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6867 * configure.tgt: Mark d30v-*-* as obsolete.
6868 * d30v-tdep.c: Mark file as obsolete.
6869 * config/d30v/d30v.mt: Ditto.
6870 * config/d30v/tm-d30v.h: Ditto.
6871
6872 2002-07-13 Aidan Skinner <aidan@velvet.net>
6873
6874 * ada-tasks.c (add_task_entry): replace calls to
6875 malloc() with xmalloc
6876 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6877
6878 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6879 ada_finish_decode_line_1, all_sals_for_line
6880 ada_breakpoint_rewrite): replace calls to free() with xfree()
6881
6882 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6883
6884 From Nicholas Duffek (with minor changes by Martin Hunt,
6885 Louis Hamilton, and Kevin Buettner):
6886 * aix-thread.c: New file.
6887
6888 2002-07-12 Petr Sorfa <petrs@caldera.com>
6889
6890 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6891 complaint for invalid attribute class or form.
6892 (read_func_scope): DW_AT_frame_base
6893 better handling of DW_AT_block*.
6894 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6895 better handling of DW_AT_block*.
6896 (read_common_block): DW_AT_location
6897 better handling of DW_AT_block*.
6898 (read_partial_die): DW_AT_location better handling
6899 of DW_AT_block*.
6900 (new_symbol): DW_AT_external better handling of
6901 DW_AT_block*. Proper initialization of variable
6902 "addr".
6903 (attr_form_is_block): New function that returns true
6904 if the attribute's form is of DW_FORM_block*.
6905
6906 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6907
6908 * valops.c (find_method_list): Remove comment about
6909 removed STATIC_MEMFUNCP argument.
6910 (value_find_oload_method_list): Likewise.
6911
6912 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6913
6914 From Nicholas Duffek:
6915 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6916 target_new_objfile_hook.
6917
6918 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6919
6920 From Nicholas Duffek:
6921 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6922 csect.
6923
6924 2002-07-12 Andrew Cagney <cagney@redhat.com>
6925
6926 * MAINTAINERS: Mention --enable-sim-build-warnings.
6927 (m68hc11-elf): Disable sim build warnings.
6928 (m32r-elf): Mark as broken obsolete candidate.
6929 (x86_64-linux-gnu): Mark as buildable with -Werror.
6930 (arm-elf): Change -w to ``,'' which enables warnings but not
6931 -Werror.
6932
6933 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6934
6935 * bcache.h: Update copyright.
6936 (struct bstring, struct bcache): Move definition to "bcache.c".
6937 Replaced by opaque declaration.
6938 (bcache_xfree): Replace free_bcache.
6939 (bcache_xmalloc, bcache_memory_used): Declare.
6940
6941 * bcache.c: Update copyright.
6942 (struct bstring, struct bcache): Moved to here from "bcache.h".
6943 Update comments.
6944 (bcache_xmalloc, bcache_memory_used): New functions.
6945 (bcache_xfree): Replace function free_bcache.
6946
6947 * Makefile.in (objfiles.o): Add $(bcache_h).
6948 (objfiles_h): Remove $(bcache_h).
6949 (symfile.o): Add $(bcache_h).
6950
6951 * symmisc.c: Update copyright.
6952 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6953 (print_objfile_statistics): Use bcache_memory_used.
6954
6955 * symfile.c: Include "bcache.h".
6956 (reread_symbols): Use bcache_xfree.
6957 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6958 (add_psymbol_to_list): Pass psymbol_cache by value.
6959 (add_psymbol_with_dem_name_to_list): Ditto.
6960
6961 * objfiles.h: Update copyright.
6962 (struct bcache): Declare opaque. Do not include "bcache.h".
6963 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6964 bcache'' pointers.
6965 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6966
6967 * objfiles.c: Include "bcache.h". Update copyright.
6968 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6969 macro_cache.
6970 (free_objfile): Use bcache_xfree.
6971
6972 2002-07-11 Grace Sainsbury <graces@redhat.com>
6973
6974 * monitor.c (monitor_fetch_register): Make name a constant.
6975 (monitor_store_register): Same.
6976
6977 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6978
6979 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6980 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6981 (finish_block) For non-function blocks, hash the symbol table. For
6982 function blocks, mark the symbol table as unhashed.
6983 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6984 (msymbol_hash_iw): Likewise.
6985 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6986 value.
6987 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6988 (lookup_minimal_symbol): Likewise for both.
6989 * symtab.h (struct block): Add `hashtable' flag. Comment the
6990 hashtable.
6991 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6992 (ALL_BLOCK_SYMBOLS): Update.
6993 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6994 (struct symbol): Add `hash_next' pointer.
6995 * symtab.c (lookup_block_symbol): Search using the hash table when
6996 possible.
6997 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6998 (search_symbols, find_addr_symbol): Likewise.
6999
7000 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7001 (read_dst_symtab): Likewise.
7002 * jv-lang.c (get_java_class_symtab): Likewise.
7003 * mdebugread.c: Include "gdb_assert.h".
7004 (shrink_block): Assert that the block being modified is not hashed.
7005 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7006 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7007 symbols.
7008 (dump_symtab): Recognize hashed blocks.
7009 * printcmd.c (print_frame_args): Assert that function blocks do not
7010 have hashed symbol tables.
7011 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7012 (fill_in_ada_prototype, debug_print_block): Likewise.
7013 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7014
7015 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7016
7017 * stack.c (print_frame): Use result of frame_address_in_block()
7018 instead of fi->pc when evaluating symbols.
7019 (backtrace_command_1): Ditto.
7020
7021 2002-07-11 Andrew Cagney <cagney@redhat.com>
7022
7023 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7024 Make static.
7025
7026 * arm-tdep.c (arm_register_name): Make return type constant.
7027
7028 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7029
7030 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7031 prototype.
7032 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7033 * s390-tdep.c (s390_fp_regnum): Ditto.
7034 (s390_read_fp): Ditto.
7035 (s390_pop_frame): Ditto.
7036 (_initialize_s390_tdep): Ditto.
7037 * remote.c (get_remote_state): Ditto.
7038 * procfs.c (mappingflags): Ditto.
7039 * memattr.c (_initialize_mem): Ditto.
7040 * mcore-tdep.c (mcore_pop_frame): Ditto.
7041 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7042 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7043 * language.c (set_case_str): Ditto.
7044 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7045 * frv-tdep.c (new_variant): Ditto.
7046 (frv_stopped_data_address): Ditto.
7047 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7048 (context_alloc): Ditto.
7049 (frame_state_alloc): Ditto.
7050 (unwind_tmp_obstack_init): Ditto.
7051 (unwind_tmp_obstack_free): Ditto.
7052 (cfi_read_fp): Ditto.
7053 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7054 (cris_pop_frame): Ditto.
7055 * c-lang.c (scanning_macro_expansion): Ditto.
7056 (finished_macro_expansion): Ditto.
7057 (c_preprocess_and_parse): Ditto.
7058 * gdbarch.sh: Ditto.
7059 * gdbarch.h, gdbarch.c: Regenerate.
7060 * config/mn10200/tm-mn10200.h: Adjust indentation.
7061 * target.c: Adjust indentation.
7062 * symtab.h: Adjust indentation.
7063 * stabsread.h: Adjust indentation.
7064 * remote-es.c: Adjust indentation.
7065 * os9kread.c: Adjust indentation.
7066
7067 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7068
7069 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7070 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7071
7072 2002-07-10 Grace Sainsbury <graces@redhat.com>
7073
7074 * NEWS: Mention m68k, mcore multi-arching.
7075 * MAINTAINERS: Change status of m68k, mcore to reflect
7076 multi-arching.
7077
7078 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7079
7080 * valops.c (find_overload_match): Free oload_syms.
7081
7082 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7083
7084 Define HAVE_SYS_PROC_H if sys/proc.h exists
7085 * configure.in: Add check for sys/proc.h
7086 * config.in: Regenerate.
7087 * configure: Regenerate.
7088
7089 2002-07-09 Grace Sainsbury <graces@redhat.com>
7090
7091 * config/m68k/tm-m68k.h: Remove macros wrapped in
7092 #if !GDB_MULTI_ARCH.
7093
7094 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7095
7096 * config.in, configure: Regenerate.
7097
7098 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7099
7100 * dwarf2cfi.c: Include "gcore.h".
7101 (execute_stack_op): Fix implementation of the
7102 DW_OP_deref and DW_OP_deref_size operators by letting do their
7103 lookup in the target.
7104
7105 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7106
7107 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7108 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7109 tdep->sc_sp_offset.
7110
7111 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7112
7113 Fix PR gdb/595, gdb/602
7114 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7115 Don't call value_cast, just read the vtable pointer; update comments
7116 to match.
7117
7118 2002-07-05 Grace Sainsbury <graces@redhat.com>
7119
7120 * config/mcore/tm-mcore.h: Remove file.
7121 * config/mcore/mcore.mt: Remove definition of TM_FILE
7122 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7123
7124 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7125
7126 * i386bsd-tdep.c: Include "gdb_string.h".
7127
7128 2002-07-04 Grace Sainsbury <graces@redhat.com>
7129
7130 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7131 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7132 mcore-tdep.
7133 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7134 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7135 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7136 (RETVAL_REGNUM): Move macros from tm-mcore.h
7137 (mcore_reg_struct_has_addr): New function.
7138 (mcore_gdbarch_init): Added initializations for the macros removed
7139 from tm-mcore.h.
7140
7141 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7142
7143 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7144 traditonal string branding within the ELF header.
7145
7146 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7147
7148 * symtab.c (remove_params): New function.
7149 (make_symbol_overload_list): Use it instead of cplus_demangle.
7150 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7151
7152 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7153
7154 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7155
7156 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7157 New variables.
7158 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7159 and tdep->sigtramp_end.
7160 * i386obsd-nat.c: New file.
7161 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7162
7163 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7164 Don't call get_current_frame().
7165
7166 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7167
7168 * i386-nat.c (child_post_startup_inferior): New function
7169 calling i386_cleanup_dregs if
7170 I386_USE_GENERIC_WATCHPOINTS is defined.
7171 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7172 conditional to acknowledge that i386-nat.c has its
7173 own child_post_startup_inferior function.
7174
7175 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7176
7177 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7178 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7179 instead of MAX_REGISTER_RAW_SIZE.
7180 (i386_extract_return_value, i386_extract_struct_value_address):
7181 Convert to use regcache.
7182 (i386_gdbarch_init): Set max_register_raw_size and
7183 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7184 Set extract_return_value and extract_struct_value_address instead
7185 of their deprecated variants.
7186
7187 Convert i386 target to generic dummy frames.
7188 * i386-tdep.c: Include "symfile.h".
7189 (i386_frameless_signal_p): Consider a function to be frameless if
7190 the pc points at the first instruction of the function.
7191 (i386_frame_chain): Handle (generic) call dummies.
7192 (i386_frame_saved_pc): Likewise.
7193 (i386_frame_init_saved_regs): Remove code dealing with call
7194 dummies on the stack.
7195 (i386_push_dummy_frame): Removed.
7196 (i386_call_dummy_words): Removed.
7197 (i386_fix_call_dummy): Removed.
7198 (i386_push_return_address): New function.
7199 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7200 parameter, and don't call get_current_frame.
7201 (i386_pop_frame): New function.
7202 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7203 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7204 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7205 call_dummy_length to 0, set call_dummy_words to NULL, set
7206 sizeof_call_dummy_words to 0, set fix_call_dummy to
7207 generic_fix_call_dummy, set pc_in_call_dummy to
7208 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7209 generic_push_dummy_frame, set push_return_address to
7210 i386_push_return_address and set frame_chain_valid to
7211 generic_file_frame_chain_valid.
7212
7213 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7214
7215 * gdbarch.sh (struct regcache): Add opaque declaration.
7216 (EXTRACT_RETURN_VALUE): New architecture method.
7217 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7218 * gdbarch.h, gdbarch.c: Regenerate.
7219 * arch-utils.c (legacy_extract_return_value): New function.
7220 * arch-utils.h (legacy_extract_return_value): Declare.
7221 * values.c (value_being_returned): Re-enable code handling
7222 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7223 deprecated_grub_regcache_for_registers call to block handling
7224 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7225 (EXTRACT_RETURN_VALUE): Do not define.
7226
7227 2002-07-03 Grace Sainsbury <graces@redhat.com>
7228
7229 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7230 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7231 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7232 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7233 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7234 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7235 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7236 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7237 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7238 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7239 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7240 argument so the function fits the prototype in the architecture
7241 vector.
7242 (mcore_pop_frame): Remove argument so the function fits the
7243 prototype. Use get_current_frame instead of the argument.
7244 (mcore_push_arguments): Change type of struct_return so the
7245 function can be used in the architecture vector.
7246 (mcore_store_struct_return): Add.
7247 (mcore_frame_init_saved_regs): Add.
7248 (mcore_gdbarch_init): Add function calls to replace the macros
7249 removed from tm-mcore.h
7250
7251 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7252
7253 * infcmd.c (print_return_value): Remove compatibility code calling
7254 deprecated_grub_regcache_for_registers.
7255
7256 * values.c: Include "regcache.h".
7257 (value_being_returned): Update. Use
7258 deprecated_grub_regcache_for_registers to extract the register
7259 buffer address.
7260 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7261 ``struct regcache''.
7262 * Makefile.in (values.o): Add dependency on $(regcache_h).
7263
7264 * inferior.h (run_stack_dummy): Change type of second parameter to
7265 a ``struct regcache''.
7266 * valops.c (hand_function_call): Change type of retbuf to ``struct
7267 regcache''. Allocate using regcache_xmalloc, clean using
7268 make_cleanup_regcache_xfree.
7269 * infcmd.c (run_stack_dummy): Update. Use
7270 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7271
7272 * regcache.c (do_regcache_xfree): New function.
7273 (make_cleanup_regcache_xfree): New function.
7274 * regcache.h (make_cleanup_regcache_xfree): Declare.
7275
7276 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7277
7278 * event-top.c (command_line_handler): Don't read past
7279 beginning of buffer.
7280
7281 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7282
7283 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7284 struct frame_id.
7285 (varobj_create): Store frame_id for root.
7286 (varobj_gen_name): Use xasprintf.
7287 (varobj_update): Save and restore frame using get_frame_id() and
7288 frame_find_by_id().
7289 (create_child): Use xasprintf.
7290 (new_root_variable): Initialize frame_id.
7291 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7292 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7293 to prevent memory leak.
7294
7295 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7296
7297 * valops.c (hand_function_call): Move declaration of retbuf to
7298 start of function, allocate using malloc, add a cleanup but before
7299 the inf_status cleanup, cleanup the buffer. Rename local variable
7300 old_chain to inf_status_cleanup.
7301
7302 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7303
7304 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7305
7306 * cli/cli-decode.c (cmd_func_p): New function.
7307 (cmd_func): New function.
7308
7309 * command.h: Add cmd_func() and cmd_func_p().
7310
7311 2002-07-03 Grace Sainsbury <graces@redhat.com>
7312
7313 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7314 (REGISTER_SIZE): Remove.
7315 (MAX_REGISTER_RAW_SIZE): Remove.
7316 (REGISTER_VIRTUAL_TYPE): Remove.
7317 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7318 (REGISTER_NAME): Remove.
7319 (USE_GENERIC_DUMMY_FRAMES): Remove.
7320 (CALL_DUMMY): Remove.
7321 (CALL_DUMMY_START_OFFSET): Remove.
7322 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7323 (CALL_DUMMY_LOCATION): Remove.
7324 (FIX_CALL_DUMMY): Remove.
7325 (CALL_DUMMY_ADDRESS): Remove.
7326 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7327 (SAVE_DUMMY_FRAME_TOS): Remove.
7328 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7329 (mcore_register_virtual_type): New function.
7330 (mcore_register_byte): New function.
7331 (mcore_register_size): New function.
7332 (mcore_register_name): New function.
7333 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7334 macros removed from tm-mcore.h.
7335 (mcore_dump_tdep): Add.
7336 (_initialize_mcore_tdep): Add gdbarch_register call.
7337
7338 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7339
7340 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7341 frameless_look_for_prologue, such that we actually call this
7342 function.
7343
7344 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7345
7346 * frame.h (frame_address_in_block): New function.
7347
7348 * blockframe.c (frame_address_in_block): New function extracted
7349 from get_frame_block().
7350 (get_frame_block): Use frame_address_in_block().
7351 (block_innermost_frame): Use frame_address_in_block() to match
7352 the frame pc address against the block boundaries rather than
7353 the frame pc directly. This prevents a failure when a frame pc
7354 is actually a return-address pointing immediately after the end
7355 of the given block.
7356
7357 2002-07-02 Grace Sainsbury <graces@redhat.com>
7358
7359 * MAINTAINERS: Add self under write after approval.
7360
7361 2002-07-02 Grace Sainsbury <graces@redhat.com>
7362
7363 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7364 used in architecture vector. The default is
7365 m68k_local_breakpoint_from_pc.
7366 (m68k_local_breakpoint_from_pc): Add.
7367 (enum): Add register numbers from tm-m68k.h.
7368 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7369 vector.
7370 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7371 GDB_MULTI_ARCH_PARTIAL.
7372 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7373 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7374 m68k-tdep.c.
7375 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7376 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7377 to enum in m68k-tdep.c
7378
7379 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7380
7381 * solib-osf.c (open_map): Compute the list of shared libraries
7382 loaded by the inferior, rather than the list of libraries loaded
7383 by GDB itself. Otherwise, GDB ends up reading the symbols from
7384 the wrong shared libraries...
7385
7386 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7387
7388 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7389 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7390 macros.
7391 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7392 Remove functions.
7393 (FRAMELESS_SIGNAL): Remove function.
7394 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7395 i386_linux_saved_pc_after_call): Removed.
7396 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7397 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7398 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7399
7400 * i386-tdep.c (i386_frameless_signal_p): New function.
7401 (i386_frame_chain): Deal with frameless signals.
7402 (i386_sigtramp_saved_sp): New function.
7403 (i386_frame_saved_pc): Deal with frameless signals.
7404 (i386_saved_pc_after_call): Make sure the correct value is
7405 returned just after entry into a sigtramp.
7406 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7407 i386fbsd4_sc_sp_offset): New variables.
7408 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7409 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7410 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7411 similiar to what we already did for sc_pc_offset.
7412 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7413 tdep->sc_sp_offset.
7414
7415 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7416
7417 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7418
7419 * config/i386/tm-x86-64linux.h: New.
7420 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7421 definitions.
7422 * config/i386/nm-x86-64.h: Rename to ...
7423 * config/i386/nm-x86-64linux.h: ... this one.
7424 * config/i386/x86-64linux.mh: Reflect the above change.
7425
7426 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7427
7428 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7429 with sigcontext_addr. Add sc_sp_offset.
7430 (i386bsd_sigtramp_saved_pc): Remove prototype.
7431 (i386bsd_sicontext_addr): Add prototype.
7432 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7433 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7434 (i386_svr4_sigtramp_saved_pc): Removed.
7435 (i386_svr4_sigcontext_addr): New function.
7436 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7437 Initialize tdep->sigcontext_addr instead. Initialize
7438 tdep->sc_pc_offset and tdep->sc_sp_offset.
7439 (i386_gdbarch_init): Likewise.
7440 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7441 any more.
7442 (i386bsd_sigtramp_saved_pc): Remove function.
7443 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7444 Initialize tdep->sigcontext_addr instead. Initialize
7445 tdep->sc_pc_offset.
7446 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7447 of tdep->sigtramp_saved_pc.
7448 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7449 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7450 instead.
7451
7452 * i386-tdep.c (i386_frameless_function_invocation,
7453 i386_frame_num_args, i386_frame_init_saved_regs,
7454 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7455 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7456 i386_extract_return_value, i386_store_return_value,
7457 i386_extract_struct_value_address, i386_register_virtual_type,
7458 i386_register_convertible, i386_register_convert_to_virtual,
7459 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7460 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7461 static.
7462
7463 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7464
7465 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7466
7467 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7468 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7469 this macro. Include "value.h".
7470
7471 2002-06-30 Aidan Skinner <aidan@velvet.net>
7472
7473 * ada-exp.tab.c: remove as it's a generated file
7474 * ada-lex.c: remove as it's a generated file
7475
7476 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7477
7478 * config/i386/tm-i386.h (struct frame_info, struct
7479 frame_saved_regs, struct value, struct type): Remove forward
7480 declarations.
7481
7482 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7483 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7484 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7485 (FILL_FPXREGSET): Define.
7486
7487 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7488
7489 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7490 i[3456]86-*-netbsd* case.
7491 * config/i386/tm-obsd.h: Removed.
7492 * config/i386/obsd.mt: Removed.
7493 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7494 core-aout.o.
7495 (MH_CFLAGS): Add -DYYDEBUG=0.
7496
7497 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7498 i386nbsd_sc_pc_offset on OpenBSD too.
7499
7500 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7501 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7502 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7503 define.
7504 * i386bsd-tdep.c: Include "arch-utils.h".
7505 (i386bsd_aout_in_solib_call_trampoline): New function.
7506 (i386bsd_init_abi): Set in_solib_call_trampoline to
7507 i386bsd_aout_in_solib_call_trampoline.
7508 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7509 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7510
7511 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7512
7513 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7514 (struct obstack, struct bcache): Add opaque declarations.
7515 * Makefile.in (macrotab_h): Update
7516
7517 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7518
7519 * blockframe.c (generic_find_dummy_frame): Change return type to
7520 ``struct regcache''.
7521 (struct dummy_frame): Replace field ``registers'' with regcache, a
7522 struct regcache object.
7523 (generic_find_dummy_frame): Update.
7524 (generic_push_dummy_frame): Update. Use regcache_xfree,
7525 regcache_xmalloc and regcache_cpy.
7526 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7527 regcache_xfree.
7528 (deprecated_generic_find_dummy_frame): Update.
7529 (generic_read_register_dummy): Update. Use
7530 regcache_read_as_address.
7531 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7532 (generic_get_saved_register): Update. Use regcache_read.
7533
7534 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7535
7536 * Makefile.in (objfiles_h): Add $(bcache_h).
7537 * objfiles.h: Include "bcache.h".
7538
7539 * Makefile.in (symtab_h): Remove $(bcache_h).
7540 * symtab.h: Do not include "bcache.h".
7541
7542 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7543
7544 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7545 generic_func_frame_chain_valid.
7546
7547 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7548
7549 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7550 * config/i386/tm-fbsd.h: Likewise.
7551
7552 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7553
7554 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7555 generic_unwind_get_saved_register.
7556
7557 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7558
7559 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7560 * regcache.c (supply_register): Add missing argument to
7561 register_buffer call.
7562
7563 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7564
7565 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7566 Solaris /bin/grep does not not like it. From Peter Schauer.
7567
7568 2002-06-26 Tom Tromey <tromey@redhat.com>
7569
7570 * command.h (add_setshow_cmd): Declare.
7571 (add_setshow_cmd_full): Declare.
7572 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7573 returns void. Use add_setshow_cmd_full.
7574 (add_setshow_cmd_full): New function.
7575 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7576 (add_setshow_boolean_cmd): Likewise.
7577
7578 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7579
7580 * config/vax/tm-vax.h: Protect from multiple inclusion.
7581 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7582 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7583 * config/vax/tm-vaxbsd.h: ...here. New file.
7584 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7585
7586 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7587
7588 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7589 (BELIEVE_PCC_PROMOTION): Remove.
7590 (AP_REGNUM): Move to...
7591 * config/vax/nm-vax.h: ...here.
7592 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7593 (vax_breakpoint_from_pc): New function.
7594 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7595 and gdbarch_believe_pcc_promotion.
7596
7597 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7598
7599 * Makefile.in (vax_tdep_h): Define.
7600 (vax-tdep.o): Use $(vax_tdep_h).
7601 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7602 (vax_dump_tdep): New function.
7603 (_initialize_vax_tdep): Register vax_dump_tdep.
7604 * vax-tdep.h: Include osabi.h.
7605 (struct gdbarch_tdep): New.
7606
7607 2002-06-26 Andrew Cagney <cagney@redhat.com>
7608
7609 * frame.h (deprecated_generic_find_dummy_frame): Rename
7610 generic_find_dummy_frame.
7611 * blockframe.c (generic_find_dummy_frame): Make static.
7612 (deprecated_generic_find_dummy_frame): New function.
7613 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7614 generic_find_dummy_frame with deprecated_find_dummy_frame.
7615 (sh64_nofp_frame_init_saved_regs): Ditto.
7616 (sh_fp_frame_init_saved_regs): Ditto.
7617 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7618 (s390_frame_chain): Ditto.
7619 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7620
7621 2002-06-26 Grace Sainsbury <graces@redhat.com>
7622
7623 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7624 gdbarch vector are at the top.
7625 (NUM_REGS): Remove.
7626 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7627 (FRAME_ARGS_ADDRESS): Remove.
7628 (FRAME_LOCALS_ADDRESS): Remove.
7629 (FRAME_NUM_ARGS): Remove.
7630 (FRAME_ARGS_SKIP): Remove.
7631 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7632 (m68k_gdbarch_init): Add gdbarch initializations for macros
7633 undefined in tm-m68k.h
7634
7635 2002-06-26 Grace Sainsbury <graces@redhat.com>
7636
7637 * monitor.h: Add the function regname to monitor_ops
7638 structure. This way NUM_REGS does not have to be a constant.
7639 * monitor.c (monitor_fetch_register): Added support for regname
7640 function. The function is called if the array regnames is NULL.
7641 (monitor_store_register): Same.
7642 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7643 regnames array.
7644 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7645 cpu32bug_cmds.regname to point to new function.
7646 * abug-rom.c (abug_regname): Same as above.
7647 (init_abug_cmds): Same.
7648 * dbug-rom.c (dbug_regname): Same as above.
7649 (init_dbug_cmds): Same.
7650 * remote-est.c (est_regname): Same.
7651 (init_est_cmds): Same.
7652 * rom68k-rom.c (rom68k_regname): Same.
7653 (init_rom68k_cmds): Same.
7654
7655 2002-06-25 Tom Tromey <tromey@redhat.com>
7656
7657 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7658
7659 2002-06-25 Andrew Cagney <cagney@redhat.com>
7660
7661 * infrun.c (stop_registers): Change variable's type to ``struct
7662 regcache'''.
7663 (xmalloc_inferior_status): Delete function.
7664 (free_inferior_status): Delete function.
7665 (normal_stop): Use regcache_cpy.
7666 (struct inferior_status): Change type of fields ``stop_registers''
7667 and ``registers'' to ``struct regcache''.
7668 (write_inferior_status_register): Use regcache_write.
7669 (save_inferior_status): Instead of calling
7670 xmalloc_inferior_status, allocate the inf_status buffer directly.
7671 Use regcache_dup_no_passthrough and regcache_dup to save the
7672 buffers.
7673 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7674 Replace the stop_registers regcache instead of overriding it. Use
7675 regcache_xfree. Instead of calling free_inferior_status, xfree
7676 the buffer directly.
7677 (discard_inferior_status): Use regcache_xfree. Instead of calling
7678 free_inferior_status, xfree the buffer directly.
7679 (build_infrun): Use regcache_xmalloc.
7680 (_initialize_infrun): Delete redundant call to build_infrun.
7681
7682 * Makefile.in (infcmd.o): Add $(regcache_h).
7683
7684 * infcmd.c: Include "regcache.h".
7685 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7686 obtain the address of `stop_registers' register buffer.
7687 (print_return_value): Ditto.
7688
7689 * inferior.h (struct regcache): Add opaque declaration.
7690 (stop_registers): Change variable's declared type to ``struct
7691 regcache''.
7692
7693 2002-06-24 Tom Tromey <tromey@redhat.com>
7694
7695 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7696 * target.c (initialize_targets): Fixed typo in
7697 trust-readonly-sections `show' documentation.
7698
7699 * main.c: Marked all strings with _().
7700
7701 2002-06-24 Don Howard <dhoward@redhat.com>
7702
7703 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7704 that means max CORE_ADDR+1.
7705 (lookup_mem_region): Ditto.
7706 (mem_info_command): Ditto.
7707
7708 2002-06-24 Grace Sainsbury <graces@redhat.com>
7709
7710 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7711 (REGISTER_BYTES_OK): Remove.
7712 (REGISTER_BYTES): Remove.
7713 (STORE_STRUCT_RETURN): Remove.
7714 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7715 (STORE_RETURN_VALUE): Remove.
7716 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7717 (FRAME_CHAIN): Remove.
7718 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7719 (FRAME_SAVED_PC): Remove.
7720 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7721 (m68k_store_struct_return): Add.
7722 (m68k_deprecated_extract_return_value): Add.
7723 (m68k_deprecated_extract_struct_value_address): Add.
7724 (m68k_store_return_value): Add.
7725 (m68k_frame_chain): Add.
7726 (m68k_frameless_function_invocation): Add.
7727 (m68k_frame_saved_pc): Add.
7728 (m68k_gdbarch_init): added set_gdbarch calls for new
7729 functions and deleted macros.
7730
7731 2002-06-23 Tom Tromey <tromey@redhat.com>
7732
7733 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7734 (ALLDEPFILES): Likewise.
7735 (udiheaders): Removed.
7736 (udip2soc.o): Likewise.
7737 (udi2go32.o): Likewise.
7738 (udr.o): Likewise.
7739 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7740
7741 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7742
7743 * infrun.c (_initialize_infrun): Delete unnecessary call to
7744 build_infrun.
7745
7746 * regcache.h: Update comments describing the regcache_cpy family
7747 of functions.
7748 (regcache_save, regcache_restore): Delete declaration.
7749 (regcache_save_no_passthrough): Delete declaration.
7750 (regcache_restore_no_passthrough): Delete declaration.
7751 * regcache.c (regcache_save): Delete function.
7752 (regcache_save_no_passthrough): Delete function.
7753 (regcache_restore): Delete function.
7754 (regcache_restore_no_passthrough): Delete function.
7755
7756 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7757
7758 * config/m68k/tm-m68k.h: Fix typo.
7759 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7760 (m68k_frame_init_saved_regs): Declare.
7761
7762 2002-06-21 Jim Blandy <jimb@redhat.com>
7763
7764 Remove some vestiges of Harris 88k support.
7765 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7766 register numbering quirk.
7767 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7768 odd symbols occurring in Harris 88k ELF targets.
7769
7770 2002-06-21 Tom Tromey <tromey@redhat.com>
7771
7772 * gdb_locale.h: New file.
7773 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7774 (defs_h): Added gdb_locale.h.
7775 * configure, config.in: Rebuilt.
7776 * configure.in (PACKAGE): Define.
7777 * defs.h: Include gdb_locale.h.
7778 * main.c (captured_main): Call setlocale, bindtextdomain,
7779 textdomain.
7780
7781 2002-06-21 Dave Brolley <brolley@redhat.com>
7782
7783 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7784 * config/frv/frv.mt: New file.
7785 * config/frv/tm-frv.h: New file.
7786 * configure.tgt: Support frv-*-*.
7787 * Makefile.in (frv-tdep.o): New target.
7788 * frv-tdep.c: New file.
7789 * NEWS: Mention frv.
7790
7791 2002-06-21 Dave Brolley <brolley@redhat.com>
7792
7793 * MAINTAINERS: Add self to "Write After Approval" list.
7794
7795 2002-06-21 Grace Sainsbury <graces@redhat.com>
7796
7797 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7798 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7799 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7800 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7801 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7802
7803 * m68k-tdep.c: Include arch-utils.h
7804 (m68k_register_raw_size): Add.
7805 (m68k_register_virtual_size): Add.
7806 (m68k_register_virtual_type): Add.
7807 (m68k_register_name): Add.
7808 (m68k_stack_align): Add.
7809 (m68k_register_byte): Add.
7810 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7811 tm-m68k.h.
7812
7813 2002-06-21 Grace Sainsbury <graces@redhat.com>
7814
7815 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7816 m68k_find_saved_regs.
7817 (m68k_pop_frame): Removed saved_regs structure, and replaced
7818 references to it with frame->saved_regs.
7819 (m68k_gdbarch_init): Added function calls to initialize the
7820 gdbarch structure.
7821 (m68k_fix_call_dummy): Add.
7822 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7823 (CALL_DUMMY): Remove.
7824 (CALL_DUMMY_LENGTH): Remove.
7825 (CALL_DUMMY_START_OFFSET): Remove.
7826 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7827 (FIX_CALL_DUMMY): Remove.
7828 (PUSH_DUMMY_FRAME): Remove.
7829 (POP_FRAME): Remove.
7830
7831 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7832
7833 * parse.c (parse_fprintf): New function used to avoid calls to
7834 fprintf in bison parser generated debug code.
7835 * parser-defs.h: Declaration of new parse_fprintf function.
7836 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7837 Set YYDEBUG to 1 by default.
7838 Set YYFPRINTF as parse_fprintf.
7839
7840 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7841
7842 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7843 encoding anymore.
7844 (pointer_encoding, enum ptr_encoding): New.
7845 (execute_cfa_program): Take care about pointer encoding.
7846 (dwarf2_build_frame_info): Only call parse_frame_info for
7847 .debug_frame and .eh_frame.
7848 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7849 fixed augmentation handling, added relative addressing,
7850 ignore duplicate FDEs. Added comments.
7851 * dwarf2cfi.c: Reindented.
7852
7853 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7854
7855 * event-top.c (command_handler): Don't use space_at_cmd_start
7856 unless there is sbrk() on the host. Assign time and space data
7857 to union fields of the appropriate length.
7858
7859 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7860
7861 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7862 x86_64_register_name. Return type changed to 'const char *'.
7863 (x86_64_register_name2nr): Rename to x86_64_register_number.
7864 (x86_64_gdbarch_init): Update to reflect the change.
7865 * x86-64-tdep.h: Ditto.
7866 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7867 (supply_fpregset): Ditto.
7868
7869 2002-06-19 Andrew Cagney <cagney@redhat.com>
7870
7871 * regcache.h: Update copyright.
7872 (struct regcache, struct gdbarch): Add opaque declarations.
7873 (current_regcache): Declare global variable.
7874 (regcache_read, regcache_write): Add gdbarch parameter.
7875 (regcache_save, regcache_save_no_passthrough)
7876 (regcache_restore, regcache_restore_no_passthrough)
7877 (regcache_dup, regcache_dup_no_passthrough)
7878 (regcache_cpy, regcache_cpy_no_passthrough)
7879 (deprecated_grub_regcache_for_registers)
7880 (deprecated_grub_regcache_for_register_valid)
7881 (regcache_valid_p): Add function declarations.
7882
7883 * regcache.c: Update copyright.
7884 (regcache_descr_handle): New global variable.
7885 (struct regcache_descr): Define.
7886 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7887 (regcache_descr, xfree_regcache_descr): New functions.
7888 (struct regcache): Define.
7889 (regcache_xmalloc, regcache_xfree): New functions.
7890 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7891 (regcache_dup, regcache_dup_no_passthrough): New functions.
7892 (regcache_valid_p, regcache_read_as_address): New functions.
7893 (deprecated_grub_regcache_for_registers): New function.
7894 (deprecated_grub_regcache_for_register_valid): New function.
7895 (current_regcache): New global variable.
7896 (register_buffer): Add regcache parameter. Update calls.
7897 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7898 (read_register_gen, write_register_gen): Update register_buffer
7899 call. Test for legacy_p instead of gdbarch_register_read_p or
7900 gdbarch_register_write_p.
7901 (regcache_collect): Update register_buffer call.
7902 (build_regcache): Rewrite. Use deprecated grub functions.
7903 (regcache_save, regcache_save_no_passthrough): New functions.
7904 (regcache_restore, regcache_restore_no_passthrough): New
7905 functions.
7906 (_initialize_regcache): Create the regcache_data_handle. Swap
7907 current_regcache global variable.
7908
7909 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7910 parameter to regcache_read and regcache_write calls.
7911 (sh4_register_read): Ditto.
7912 (sh64_pseudo_register_read): Ditto.
7913 (sh64_register_read): Ditto.
7914 (sh_pseudo_register_write): Ditto.
7915 (sh4_register_write): Ditto.
7916 (sh64_pseudo_register_write): Ditto.
7917 (sh64_register_write): Ditto.
7918
7919 * defs.h (XCALLOC): Define.
7920
7921 2002-06-19 Grace Sainsbury <graces@redhat.com>
7922
7923 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7924 * m68k-tdep.c (m68k_gdbarch_init): Added.
7925 (m68k_dump_tdep): Added.
7926
7927 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7928
7929 * ada-lang.c (fill_in_ada_prototype): Update comment.
7930
7931 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7932
7933 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7934 MIPS_ABI_LAST.
7935 (mips_abi_string, mips_abi_strings): New.
7936 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7937 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7938 tdep->mips_abi_string. Honor mips_abi_string. Default to
7939 O32 if no ABI is found.
7940 (mips_dump_tdep): Use mips_abi_strings.
7941 (mips_abi_update): New function.
7942 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7943 ``set mips abi'' and ``show mips abi''. Check the size of
7944 mips_abi_strings.
7945
7946 2002-06-19 Andrew Cagney <cagney@redhat.com>
7947
7948 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7949 constant.
7950
7951 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7952
7953 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7954 current frame using only the first stack size adjustment. All
7955 subsequent size adjustments are not considered to be part of
7956 the "static" part of the current frame.
7957 Compute the address of the saved registers relative to the
7958 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7959 in use in this frame.
7960
7961 2002-06-18 Don Howard <dhoward@redhat.com>
7962
7963 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7964 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7965 suggesting this solution.
7966
7967 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7968
7969 * config/romp/xm-rtbsd.h: Delete file.
7970 * config/romp/rtbsd.mh: Delete file.
7971
7972 2002-06-18 Keith Seitz <keiths@redhat.com>
7973
7974 * breakpoint.c (condition_command): Post breakpoint_modify
7975 when a condition is added to an existing breakpoint.
7976 (commands_command): Likewise for commands.
7977 (set_ignore_count): Likewise for ignore counts.
7978 If no tty, do not simply return, still need to send event
7979 notification.
7980 (ignore_command): Only print a newline if the command came
7981 from a tty.
7982 Don't call breakpoints_changed, since this is now properly
7983 handled by set_ignore_count.
7984
7985 2002-06-18 Andrew Cagney <cagney@redhat.com>
7986
7987 * MAINTAINERS: Note that cris-elf target can be compiled with
7988 -Werror.
7989 * cris-tdep.c (cris_register_name): Make return type constant.
7990 (cris_breakpoint_from_pc): Ditto.
7991
7992 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7993
7994 * frame.h (struct frame_info): Change type of context to
7995 'struct context'.
7996
7997 2002-06-17 Andrew Cagney <cagney@redhat.com>
7998
7999 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8000 pointer.
8001 * gdbarch.h, gdbarch.c: Regenerate.
8002 * config/mips/tm-mips.h (mips_register_name): Update.
8003 * i386-tdep.h (i386_register_name): Update.
8004 * mips-tdep.c (mips_register_name): Update
8005 * alpha-tdep.c (alpha_register_name): Update.
8006 * arch-utils.c (legacy_register_name): Update.
8007 * arch-utils.h (legacy_register_name): Update.
8008 * avr-tdep.c (avr_register_name): Update.
8009 * ia64-tdep.c (ia64_register_name): Update.
8010 * i386-tdep.c (i386_register_name): Update.
8011 * sparc-tdep.c (sparc32_register_name): Update.
8012 (sparc64_register_name): Update.
8013 (sparclite_register_name): Update.
8014 (sparclet_register_name): Update.
8015 * sh-tdep.c (sh_generic_register_name): Update.
8016 (sh_sh_register_name): Update.
8017 (sh_sh3_register_name): Update.
8018 (sh_sh3e_register_name): Update.
8019 (sh_sh_dsp_register_name): Update.
8020 (sh_sh3_dsp_register_name): Update.
8021 (sh_sh4_register_name): Update.
8022 (sh_sh64_register_name): Update.
8023 * s390-tdep.c (s390_register_name): Update.
8024 * rs6000-tdep.c (rs6000_register_name): Update.
8025 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8026 (ns32k_register_name_32382): Update.
8027 * d10v-tdep.c (d10v_ts2_register_name): Update.
8028 (d10v_ts3_register_name): Update.
8029 * xstormy16-tdep.c (xstormy16_register_name): Update.
8030 * vax-tdep.c (vax_register_name): Update.
8031 * v850-tdep.c (v850_register_name): Update.
8032 * m68hc11-tdep.c (m68hc11_register_name): Update.
8033 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8034 (am33_register_name): Update.
8035
8036 2002-06-17 Grace Sainsbury <graces@redhat.com>
8037
8038 * m68k-tdep.c: Reindented.
8039
8040 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8041
8042 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8043 list of predefined types.
8044
8045 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8046
8047 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8048 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8049 REGISTER_CONVERT_TO_RAW): Remove defines.
8050 (i386_register_virtual_type, i386_register_convertible,
8051 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8052 Remove prototypes.
8053 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8054 macros mentioned above.
8055
8056 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8057 (i386lynx_saved_pc_after_call): Remove prototype.
8058 * i386ly-tdep.c: Include "i386-tdep.h".
8059 (i386lynx_saved_pc_after_call): Make static. Use
8060 read_memory_nobpt instead of read_memory. Use
8061 read_memory_unsigned_integer instead of read_memory_integer.
8062 (i386lynx_init_abi): New function.
8063 (i386lynx_coff_osabi_sniffer): New function.
8064 (_initialize_i386bsd_tdep): New function.
8065
8066 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8067 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8068 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8069 (i386_fix_call_dummy): Remove prototype.
8070 * i386-tdep.c (i386_call_dummy_words): New variable.
8071 (i386_gdbarch_init): Adjust for removal of the
8072 macros mentioned above.
8073
8074 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8075
8076 * command.h (add_setshow_auto_boolean_cmd): Replace
8077 add_set_auto_boolean_cmd.
8078 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8079 add_set_auto_boolean_cmd.
8080 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8081 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8082 mask-address'' command.
8083 (show_mask_address): Add cmd parameter.
8084 * remote.c (add_packet_config_cmd): Update. Change type of
8085 set_func and show_func to cmd_sfunc_ftype.
8086 (_initialize_remote): Update `set remote Z-packet'
8087 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8088 (show_remote_protocol_e_packet_cmd): Ditto.
8089 (show_remote_protocol_E_packet_cmd): Ditto.
8090 (show_remote_protocol_P_packet_cmd): Ditto.
8091 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8092 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8093 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8094 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8095 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8096 (show_remote_protocol_Z_packet_cmd): Ditto.
8097 (show_remote_protocol_binary_download_cmd): Ditto.
8098 (show_remote_cmd): Pass NULL to all of above.
8099
8100 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8101
8102 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8103 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8104 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8105 POP_FRAME): Remove defines.
8106 (i386_push_arguments, i386_store_struct_return,
8107 i386_extract_return_value, i386_store_return_value,
8108 i386_extract_struct_value_address, i386_push_dummy_frame,
8109 i386_pop_frame): Renove prototypes.
8110 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8111 macros mentioned above.
8112
8113 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8114
8115 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8116 add_set_boolean_cmd.
8117 (add_setshow_cmd): New function.
8118 * command.h (add_setshow_boolean_cmd): Replace
8119 add_set_boolean_cmd.
8120 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8121 and ``set rdiromatzero''.
8122 * maint.c (_initialize_maint_cmds): Update commented out code.
8123 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8124 * target.c (initialize_targets): Update `set
8125 trust-readonly-sections'.
8126 * remote.c (_initialize_remote): Update `set remotebreak'.
8127
8128 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8129
8130 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8131 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8132 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8133 fit into multi-arch framework.
8134 (i386_breakpoint_from_pc): New function.
8135 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8136 above.
8137
8138 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8139 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8140 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8141 (i386_frameless_function_invocation, i386_frame_num_args,
8142 i386_frame_init_saved_regs): Remove prototypes.
8143 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8144 macros mentioned above.
8145
8146 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8147
8148 * cli/cli-decode.c (set_cmd_cfunc): Update.
8149 (set_cmd_sfunc): Update.
8150 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8151 (set_cmd_sfunc, set_cmd_cfunc): Update.
8152 * cli/cli-decode.h: Update.
8153
8154 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8155
8156 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8157 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8158
8159 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8160
8161 * defs.h (auto_boolean): Declare enum.
8162 * command.h (cmd_auto_boolean): Delete enum.
8163 * mips-tdep.c (mask_address_var): Update.
8164 (mips_mask_address_p): Update.
8165 (show_mask_address): Update.
8166 * remote.c (struct packet_config): Update.
8167 (update_packet_config): Update.
8168 (show_packet_config_cmd): Update.
8169 (packet_ok): Update.
8170 (add_packet_config_cmd): Update.
8171 (_initialize_remote):
8172 * command.h: Update.
8173 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8174 (do_setshow_command): Update.
8175 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8176 * cli/cli-decode.h: Update.
8177
8178 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8179
8180 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8181 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8182 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8183 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8184 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8185 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8186
8187 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8188 list of DJGPP COFF targets.
8189
8190 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8191 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8192 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8193 (FP0_REGNUM): Remove define.
8194 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8195 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8196 (i386_register_virtual_size): Remove protoype.
8197 * i386-tdep.c (i386_register_virtual_size): Removed.
8198 (i386_extract_return_value, i386_store_return_value): Use
8199 FP0_REGNUM instead of NUM_FREGS to determine whether the
8200 floating-point registers are available.
8201 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8202 Adjust for removal of macros mentioned above.
8203
8204 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8205
8206 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8207 comments.
8208 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8209 Remove prototypes.
8210 (supply_gregset, fill_gregset): Remove use of register keyword and
8211 remove declaration for regmap. Use I386_NUM_GREGS instead of
8212 NUM_REGS and NUM_FREGS.
8213 (FPREGSET_FSAVE_OFFSET): Remove.
8214 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8215 NUM_FREGS to determine whether the floating-point registers are
8216 available.
8217
8218 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8219 gnu_store_registers): Replace usage of NUM_GREGS with
8220 I386_NUM_GREGS.
8221
8222 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8223 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8224 usage of NUM_GREGS with I386_NUM_GREGS.
8225
8226 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8227
8228 * i386bsd-nat.c: Include "i386-tdep.h".
8229 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8230 I386_NUM_GREGS.
8231
8232 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8233 and associated comment. They no longer make any sense, since we
8234 don't use this file anymore on Linux.
8235
8236 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8237 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8238 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8239 elements in these arrays.
8240 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8241 MAX_NUM_REGS.
8242
8243 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8244
8245 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8246 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8247
8248 2002-06-14 Andrew Cagney <cagney@redhat.com>
8249
8250 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8251 EXTRACT_RETURN_VALUE.
8252 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8253 EXTRACT_STRUCT_VALUE_ADDRESS.
8254 * gdbarch.h, gdbarch.c: Regenerate.
8255
8256 * values.c (value_being_returned): Handle
8257 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8258 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8259
8260 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8261 * arm-tdep.c (arm_gdbarch_init): Update.
8262 * avr-tdep.c (avr_gdbarch_init): Update.
8263 * cris-tdep.c (cris_gdbarch_init): Update.
8264 * d10v-tdep.c (d10v_gdbarch_init): Update.
8265 * ia64-tdep.c (ia64_gdbarch_init): Update.
8266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8267 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8268 * s390-tdep.c (s390_gdbarch_init): Update.
8269 * sh-tdep.c (sh_gdbarch_init): Update.
8270 * s390-tdep.c (s390_gdbarch_init): Update.
8271 * sparc-tdep.c (sparc_gdbarch_init): Update.
8272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8273 * v850-tdep.c (v850_gdbarch_init): Update.
8274 * vax-tdep.c (vax_gdbarch_init): Update.
8275 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8276 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8277
8278 * config/arc/tm-arc.h: Update.
8279 * config/d30v/tm-d30v.h: Update.
8280 * config/fr30/tm-fr30.h: Update.
8281 * config/h8300/tm-h8300.h: Update.
8282 * config/h8500/tm-h8500.h: Update.
8283 * config/i386/tm-i386.h: Update.
8284 * config/i386/tm-ptx.h: Update.
8285 * config/i386/tm-symmetry.h: Update.
8286 * config/i960/tm-i960.h: Update.
8287 * config/m32r/tm-m32r.h: Update.
8288 * config/m68k/tm-delta68.h: Update.
8289 * config/m68k/tm-linux.h: Update.
8290 * config/m68k/tm-m68k.h: Update.
8291 * config/m88k/tm-m88k.h: Update.
8292 * config/mcore/tm-mcore.h: Update.
8293 * config/mips/tm-mips.h: Update.
8294 * config/mn10200/tm-mn10200.h: Update.
8295 * config/pa/tm-hppa.h: Update.
8296 * config/pa/tm-hppa64.h: Update.
8297 * config/sparc/tm-sp64.h: Update.
8298 * config/sparc/tm-sparc.h: Update.
8299 * config/sparc/tm-sparclet.h: Update.
8300 * config/z8k/tm-z8k.h: Update.
8301
8302 2002-06-14 Andrew Cagney <cagney@redhat.com>
8303
8304 * Makefile.in (i386_linux_tdep_h): Define.
8305 (i386_tdep_h, i387_tdep_h): Define.
8306 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8307 $(i386_tdep_h) and $(i387_tdep_h).
8308 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8309
8310 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8311
8312 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8313 Already covered by the default.
8314
8315 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8316 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8317 (i386_gdbarch_init): Initialize long_double_format and long_double
8318 bit.
8319
8320 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8321 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8322 Move these to ...
8323 * config/i386/i386sol2.mh: ... here.
8324 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8325 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8326 (SIGCONTEXT_PC_OFFSET): Remove define.
8327 (IN_SIGTRAMP): Remove define.
8328 * i386-sol2-tdep.c: New file.
8329
8330 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8331 * config/i386/tm-i386nw.h: Removed.
8332
8333 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8334 USE_STRUCT_CONVENTION): Remove defines.
8335 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8336 (get_longjmp_target): Remove prototype.
8337 (IN_SIGTRAMP): Remove define.
8338 (i386bsd_in_sigtramp): Remove prototype.
8339 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8340 function. Update comment accordingly
8341 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8342 (FRAME_SAVED_PC): Remove define.
8343 (i386bsd_frame_saved_pc): Remove prototype.
8344 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8345 GET_LONGJMP_TARGET): Remove defines.
8346 (get_longjmp_target): Remove prototype.
8347 (IN_SIGTRAMP): Remove define.
8348 (i386bsd_in_sigtramp): Remove prototype.
8349 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8350 function. Update comment accordingly
8351 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8352 (FRAME_SAVED_PC): Remove define.
8353 (i386bsd_frame_saved_pc): Remove prototype.
8354 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8355 Remove prototype.
8356 (USE_STRUCT_CONVENTION): Remove prototype.
8357 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8358 declaration.
8359 (_initialize_i386bsd_nat): Revise logic to determine some
8360 constants at compile time when compiling a native GDB. Warn if
8361 things don't match up with what we expect.
8362 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8363 Remove variables.
8364 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8365 to use date stored in `struct gdbarch_tdep'.
8366 (i386bsd_sigcontext_offset): Remove varaible.
8367 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8368 stored in `struct gdbarch_tdep'.
8369 (i386bsd_frame_saved_pc): Make static.
8370 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8371 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8372 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8373 i386fbsd4_sc_pc_offset): New variables.
8374 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8375 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8376 functions.
8377 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8378 functions.
8379 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8380 Modify the value of i386fbsd_sigtramp_start and
8381 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8382 i386fbsd_sigtramp_end.
8383 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8384 function.
8385
8386 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8387 define to i386-linux-tdep.h.
8388 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8389 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8390 defines.
8391 (i386_linux_register_name, i386_linux_register_byte,
8392 i386_linux_register_raw_size): Remove prototypes.
8393 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8394 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8395 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8396 TARGET_WRITE_PC): Remove defines.
8397 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8398 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8399 i386_linux_write_pc): Remove prototypes.
8400 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8401 (get_longjmp_target): Remove prototype.
8402 * i386-linux-tdep.h: New file.
8403 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8404 * i386-linux-tdep.c: Include "i386-tdep.h" and
8405 "i386-linux-tdep.h".
8406 (i386_linux_register_name, i386_linux_register_byte,
8407 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8408 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8409 Make static.
8410 (i386_linux_init_abi): New function.
8411 (_initialize_i386_linux_tdep): New function.
8412
8413 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8414 (i386_saved_pc_after_call): Remove prototype.
8415 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8416 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8417 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8418 (i386_register_name, i386_stab_reg_to_regnum,
8419 i386_dwarf_reg_to_regnum): Remove prototypes.
8420 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8421 SIZEOF_SSE_REGS): Remove defines.
8422 (REGISTER_BYTES): Remove define.
8423 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8424 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8425 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8426 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8427 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8428 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8429 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8430 (get_longjmp_target): Remove prototype.
8431 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8432 (sigtramp_saved_pc): Remove define.
8433 (i386v4_sigtramp_saved_pc): Remove prototype.
8434 * config/i386/tm-go32.h (FRAME_CHAIN,
8435 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8436 (i386go32_frame_saved_pc): Remove prototype.
8437 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8438 (get_longjmp_target): Remove prototype.
8439 * i386-tdep.h: Include "osabi.h".
8440 (enum i386_abi): Removed.
8441 (enum struct_return): New enum.
8442 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8443 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8444 sc_pc_offset members.
8445 (i386_gdbarch_register_os_abi): Remove prototype.
8446 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8447 I386_SSE_NUM_REGS): New defines.
8448 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8449 I386_SSE_SIZEOF_REGS): New defines.
8450 (i386_register_name, i386_register_byte, i386_register_raw_size):
8451 New prototypes.
8452 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8453 (i386bsd_sigtramp_saved_pc): New prototype.
8454 * i386-tdep.c: Don't include "elf-bfd.h".
8455 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8456 i386_frame_chain, i386_saved_pc_after_call): Make static.
8457 (i386_frame_saved_pc): Rewrite to call architecture dependent
8458 function to deal with signal handlers. Make static.
8459 (i386go32_frame_saved_pc): Removed.
8460 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8461 Removed.
8462 (i386_get_longjmp_target): New function.
8463 (default_struct_convention, pcc_struct_convention,
8464 reg_struct_convention, valid_conventions, struct_convention): New
8465 variables.
8466 (i386_use_struct_convention): New function.
8467 (i386v4_sigtramp_saved_pc): Renamed to
8468 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8469 (i386_pc_in_sigtramp): New function.
8470 (i386_abi_names): Removed.
8471 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8472 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8473 Removed.
8474 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8475 i386_gdbarch_register_os_abi): Removed.
8476 (struct i386_abi_handler): Removed.
8477 (i386_abi_handler_list): Removed.
8478 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8479 functions.
8480 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8481 i386_nw_init_abi): New functions.
8482 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8483 Use set_gdbarch_xxx() calls instead of relying on macros for a
8484 number of calls.
8485 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8486 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8487 Register the various architecture variants defined in this file.
8488
8489 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8490
8491 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8492 (struct main_type): Remove arg_types member. Update comments for
8493 struct field.
8494 (TYPE_ARG_TYPES): Remove.
8495 (TYPE_FN_FIELD_ARGS): Update.
8496 (smash_to_method_type): Update prototype.
8497
8498 * c-typeprint.c (cp_type_print_method_args): Take method type
8499 instead of argument list. Use new argument layout. Simplify.
8500 (c_type_print_args): Use new argument layout. Simplify.
8501 (c_type_print_base): Update call to cp_type_print_method_args.
8502 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8503 argument; use die->type instead. Update call to
8504 smash_to_method_type.
8505 (read_structure_scope): Update call to dwarf2_add_member_fn.
8506 * gdbtypes.c (allocate_stub_method): Update comment.
8507 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8508 Use new argument layout.
8509 (check_stub_method): Use new argument layout. Don't count
8510 void as an argument.
8511 (print_arg_types): Update comments. Use new argument layout.
8512 (recursive_dump_type): Don't print arg_types member.
8513 * hpread.c (hpread_read_struct_type): Use new argument layout.
8514 (fixup_class_method_type): Likewise.
8515 (hpread_type_lookup): Likewise.
8516 * stabsread.c (read_type): Update calls to read_args and
8517 smash_to_method_type.
8518 (read_args): Use new argument layout. Simplify.
8519 * valops.c (typecmp): Use new argument layout. Update parameters
8520 and comments. Simplify.
8521 (hand_function_call): Use new argument layout.
8522 (search_struct_method): Update call to typecmp.
8523 (find_overload_match): Use new argument layout.
8524
8525 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8526
8527 * NEWS: Mention multithreaded debug support for gdbserver.
8528
8529 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8530
8531 * MAINTAINERS: Mention NEWS.
8532
8533 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8534
8535 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8536 (struct mips_objfile_private, compare_pdr_entries): New.
8537 (non_heuristic_proc_desc): Read the ".pdr" section if it
8538 is present.
8539
8540 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8541
8542 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8543 (arm_debug): New static variable.
8544 (_initialize_arm_tdep): Add ``set debug arm'' command.
8545
8546 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8547
8548 * Makefile.in (sim_arm_h): Define.
8549 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8550 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8551 (arm_register_sim_regno): New function, map an internal REGNUM
8552 onto a simulator register number.
8553 (arm_gdbarch_init): Set register_sim_regno.
8554
8555 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8556
8557 * MAINTAINERS: Add self.
8558
8559 2002-06-11 Jim Blandy <jimb@redhat.com>
8560
8561 * source.c (source_info): Mention whether the symtab has
8562 information about preprocessor macros.
8563
8564 Call the command `info macro', not `show macro'.
8565 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8566 Fix error message.
8567 (_initialize_macrocmd): Register `info_macro_command' in
8568 `infolist', not `showlist'.
8569
8570 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8573 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8574 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8575 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8576 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8577 unconditionally.
8578 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8579 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8580 (_initialize_mips_tdep): Remove dead code.
8581 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8582 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8583 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8584 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8585 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8586 MIPS_LAST_FP_ARG_REGNUM): Remove.
8587
8588 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8589
8590 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8591 (unwind_tmp_obstack_free, parse_frame_info)
8592 (update_context, cfi_read_fp, cfi_write_fp)
8593 (cfi_frame_chain, cfi_init_extra_frame_info)
8594 (cfi_virtual_frame_pointer): Use the above function.
8595 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8596
8597 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8598
8599 * v850-tdep.c (v850_type_is_scalar): New function.
8600 (v850_use_struct_convention): Match current gcc implementation
8601 as close as possible.
8602 (v850_push_arguments): Fix stack_offset handling. Don't write
8603 struct_addr into register. This is done by v850_store_struct_return.
8604 (v850_extract_return_value): Care for structs.
8605 (v850_store_return_value): Ditto.
8606 (v850_store_struct_return): Actually write address.
8607
8608 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8609
8610 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8611 without debug information too.
8612
8613 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8614
8615 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8616 Make multi-arch pure.
8617 * gdbarch.h, gdbarch.c: Re-generate.
8618 * arm-tdep.c (arm_print_float_info): Update.
8619 * arch-utils.h (default_print_float_info): Update.
8620 * arch-utils.c (default_print_float_info): Update.
8621 * infcmd.c (float_info): Update call.
8622
8623 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8624
8625 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8626 the front of the initialize list.
8627
8628 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8629
8630 * infrun.c (struct inferior_status): Replace fields
8631 selected_frame_address and selected_level with field
8632 selected_frame_id.
8633 (save_inferior_status): Update. Use get_frame_id.
8634 (struct restore_selected_frame_args): Delete.
8635 (restore_selected_frame): Update. Use frame_find_by_id.
8636 (restore_inferior_status): Update.
8637
8638 * breakpoint.h (struct breakpoint): Change type of
8639 watchpoint_frame to frame_id.
8640 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8641 call to get_current_frame.
8642 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8643 get_current_frame.
8644 (watchpoint_check): Use frame_find_by_id.
8645
8646 * frame.h (record_selected_frame): Delete declaration.
8647 * stack.c (record_selected_frame): Delete function.
8648
8649 * frame.h (struct frame_id): Define.
8650 (get_frame_id): Declare.
8651 (frame_find_by_id): Declare.
8652 * frame.c (frame_find_by_id): New function.
8653 (get_frame_id): New function.
8654
8655 2002-06-10 Andrey Volkov <avolkov@transas.com>
8656
8657 * ser-e7kpc.c: Fix duplicated define and call of
8658 _initialize_ser_e7000pc
8659
8660 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8661
8662 * signals/signals.c (target_signal_from_host): Fix #ifdef
8663 SIGRTMIN case.
8664 (do_target_signal_to_host): Likewise.
8665
8666 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * mips-tdep.c (mips_find_abi_section): New function.
8669 (mips_gdbarch_init): Call it.
8670
8671 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8672
8673 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8674 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8675 after Andrew's 2002-06-08 gdbarch change.
8676
8677 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8678
8679 * i386-linux-nat.c (suppy_gregset): Don't supply
8680 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8681 register cache.
8682 (fill_gregset): Don't fetch it under the same circumstances.
8683
8684 2002-06-09 Andrew Cagney <cagney@redhat.com>
8685
8686 * Makefile.in (callback_h): Define.
8687 (remote_sim_h): Update path to remote-sim.h.
8688 (remote-rdp.o): Add $(callback_h).
8689 (remote-sim.o): Use $(callback_h).
8690 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8691 * remote-rdp.c: Include "gdb/callback.h".
8692
8693 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8694
8695 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8696 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8697
8698 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8699
8700 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8701 * rdi-share/serpardr.c: Ditto.
8702 * rdi-share/unixcomm.c: Ditto.
8703 * rdi-share/serdrv.c: Ditto.
8704 * rdi-share/hostchan.h: Ditto.
8705 * rdi-share/hostchan.c: Ditto.
8706 * rdi-share/host.h: Ditto.
8707 * rdi-share/devsw.c: Ditto.
8708
8709 * objfiles.h: Change type of obj_private to void pointer.
8710 * pa64solib.c: Update copyright. Don't include "assert.h", use
8711 strcmp instead of STREQ, use LONGEST, do not use PTR
8712 * somsolib.c: Ditto.
8713
8714 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8715 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8716 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8717
8718 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8719
8720 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8721 (default_get_saved_register): Delete function.
8722 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8723 generic_unwind_get_saved_register.
8724 * gdbarch.h, gdbarch.c: Re-generate.
8725
8726 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8727
8728 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8729 generic_func_frame_chain_valid.
8730 * gdbarch.h, gdbarch.c: Re-generate.
8731 * blockframe.c (generic_func_frame_chain_valid): Only check
8732 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8733 passing FP to PC_IN_CALL_DUMMY.
8734 Fix PR gdb/360.
8735
8736 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8737
8738 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8739 (register_gdbarch_data): Initialize init_p.
8740 (gdbarch_data): Initialize data pointer using the init function.
8741 (init_gdbarch_data): Delete function.
8742 (gdbarch_update_p): Update.
8743 (initialize_non_multiarch): Update.
8744 (struct gdbarch): Add field initialized_p.
8745 * gdbarch.h, gdbarch.c: Re-generate.
8746
8747 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8748
8749 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8750 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8751 better do the things actually here.
8752 * x86-64-tdep.c (x86_64_register_name2nr): New.
8753 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8754 (x86_64_gdbarch_init): Respect the above change.
8755 * x86-64-tdep.h (x86_64_register_name2nr)
8756 (x86_64_register_nr2name): Add prototypes.
8757 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8758
8759 2002-06-06 Michael Snyder <msnyder@redhat.com>
8760
8761 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8762 Delete extra braces and re-indent.
8763 (d10v_store_return_value): Char return values
8764 must be shifted over by one byte in R0.
8765 (d10v_extract_return_value): Delete extra braces, re-indent.
8766
8767 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8768
8769 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8770 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8771 (d10v_integer_to_address): Rewrite.
8772 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8773 the d10v specific functions which take care of converting to the
8774 correct space.
8775
8776 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8777
8778 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8779 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8780
8781 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8782
8783 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8784 includes.
8785 * config/tm-linux.h: Ditto.
8786 * config/alpha/tm-alphalinux.h: Ditto.
8787 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8788 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8789 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8790 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8791 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8792 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8793 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8794 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8795 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8796 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8797 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8798 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8799 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8800 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8801 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8802 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8803 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8804 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8805 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8806 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8807 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8808 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8809 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8810 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8811 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8812 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8813 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8814 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8815 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8816 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8817 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8818 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8819 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8820 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8821 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8822 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8823 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8824
8825 2002-05-04 Aidan Skinner <aidan@velvet.net>
8826
8827 * ada-exp.tab.c: New file
8828 * ada-exp.y: New file
8829 * ada-lang.c: New file
8830 * ada-lang.h: New file
8831 * ada-lex.c: New file
8832 * ada-lex.l: New file
8833 * ada-tasks.c: New file
8834 * ada-typeprint.c: New file
8835 * ada-valprint.c: New file
8836
8837 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8838
8839 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8840 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8841
8842 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8843
8844 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8845 insetead of ppc-linux-tdep.o.
8846 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8847 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8848
8849 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8850
8851 2002-05-07 Christian Groessler <chris@groessler.org>
8852 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8853 bit register contents for little endian hosts.
8854
8855 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8856
8857 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8858 any maintainer.
8859
8860 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8861
8862 * gdbarch.h: Regenerate.
8863
8864 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8865
8866 * MAINTAINERS: Add everyone to write-after-approval list.
8867
8868 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8869
8870 * stack.c (frame_info): Use frame_register_unwind instead of
8871 saved_regs. Mention when the SP is on the stack or in a register.
8872
8873 * frame.h (frame_register_unwind_ftype): Define. Document.
8874 (struct frame_info): Add field register_unwind and
8875 register_unwind_cache.
8876 (frame_register_unwind): Declare.
8877 (generic_unwind_get_saved_register): Declare.
8878
8879 * frame.c (frame_register_unwind): New function.
8880 (generic_unwind_get_saved_register): New function.
8881
8882 * blockframe.c (generic_call_dummy_register_unwind): New function.
8883 (frame_saved_regs_register_unwind): New function.
8884 (set_unwind_by_pc): New function.
8885 (create_new_frame): New function.
8886 (get_prev_frame): New function.
8887
8888 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8889
8890 * a29k-share/: Delete directory.
8891 * remote-vx29k.c: Delete file.
8892
8893 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8894
8895 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8896 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8897
8898 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8899
8900 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8901 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8902 (sparc64nbsd-nat.o)
8903 (sparcnbsd-nat.o)
8904 (sparcnbsd-tdep.o): New dependency lists.
8905 * NEWS: Note new UltraSPARC NetBSD native configuration.
8906 * configure.host (sparc64-*-netbsd*): New host.
8907 * configure.tgt (sparc-*-netbsdelf*)
8908 (sparc-*-netbsd*): Set gdb_target to nbsd.
8909 (sparc64-*-netbsd*): New target.
8910 * sparc64nbsd-nat.c: New file.
8911 * sparcnbsd-nat.c: New file.
8912 * sparcnbsd-tdep.c: New file.
8913 * sparcnbsd-tdep.h: New file.
8914 * config/sparc/nbsd.mt: New file.
8915 * config/sparc/nbsd64.mh: New file.
8916 * config/sparc/nbsd64.mt: New file.
8917 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8918 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8919 (HOST_IPC): Remove.
8920 * config/sparc/nbsdaout.mt: Remove.
8921 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8922 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8923 (HOST_IPC): Remove.
8924 * config/sparc/nbsdelf.mt: Remove.
8925 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8926 sparc-nat.c compatiblity defines.
8927 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8928 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8929 * config/sparc/tm-nbsd64.h: New file.
8930 * config/sparc/tm-nbsdaout.h: Remove.
8931 * config/sparc/xm-nbsd.h: Remove.
8932
8933 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8934
8935 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8936 * sparc-tdep.c: Include osabi.h.
8937 (gdbarch_tdep): Add osabi member.
8938 (_initialize_sparc_tdep): Use gdbarch_register.
8939 (sparc_gdbarch_init): Use generic OS ABI framework.
8940 (sparc_dump_tdep): New function.
8941
8942 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8943
8944 * corefile.c (do_captured_read_memory_integer): Return non-zero
8945 result.
8946 (safe_read_memory_integer): Copy result of memory read when
8947 status is non-zero. Also, add comments.
8948
8949 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * Makefile.in (ppc_tdep_h): Define.
8952 (ppc-linux-nat.o)
8953 (ppc-linux-tdep.o)
8954 (rs6000-tdep.o): Use $(ppc_tdep_h).
8955 (ppc-sysv-tdep.o)
8956 (ppcnbsd-nat.o)
8957 (ppcnbsd-tdep.o): New dependency lists.
8958 * ppc-tdep.h: Use generic OS ABI framework.
8959 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8960 (ppc_linux_init_abi): New functions.
8961 (ppc_sysv_abi_broken_use_struct_convention)
8962 (ppc_sysv_abi_use_struct_convention)
8963 (ppc_sysv_abi_push_arguments): Move to...
8964 * ppc-sysv-tdep.c: ...here.
8965 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8966 * rs6000-tdep.c (process_note_abi_tag_sections)
8967 (get_elfosabi): Remove.
8968 (rs6000_gdbarch_init): Use generic OS ABI framework.
8969 (rs6000_dump_tdep): New function.
8970 (_initialize_rs6000_tdep): Use gdbarch_register.
8971 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8972 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8973 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8974 of ppc-linux-tdep.o.
8975 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8976 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8977 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8978 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8979 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8980 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8981
8982 2002-05-29 Jim Blandy <jimb@redhat.com>
8983
8984 * macroscope.c (default_macro_scope): Put `void' in empty argument
8985 list.
8986
8987 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8988
8989 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8990 * arch-utils.c: Include "sim-regno.h".
8991 * gdbarch.sh: Don't include "sim-regno.h".
8992 * gdbarch.h, gdbarch.c: Regenerate.
8993 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8994 here.
8995 * arch-utils.h (legacy_register_sim_regno): To here.
8996 * remote-sim.c (legacy_register_sim_regno): Move function from
8997 here.
8998 * arch-utils.c (legacy_register_sim_regno): To here.
8999
9000 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9001
9002 * sim-regno.h: New file.
9003 * Makefile.in (sim_regno_h): Define.
9004 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9005 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9006 (legacy_register_sim_regno): New function.
9007 (one2one_register_sim_regno): New function.
9008 (gdbsim_fetch_register): Rewrite.
9009 (gdbsim_store_register): Only store a register when
9010 REGISTER_SIM_REGNO is valid.
9011 * d10v-tdep.c: Include "sim-regno.h".
9012 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9013 (d10v_ts3_register_sim_regno): Ditto.
9014 * gdbarch.sh: Include "sim-regno.h".
9015 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9016 * gdbarch.h, gdbarch.c: Regenerate.
9017 * arch-utils.h (default_register_sim_regno): Delete declaration.
9018 * arch-utils.c (default_register_sim_regno): Delete function.
9019
9020 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9021
9022 * ppcnbsd-nat.c: Rewrite.
9023 * ppcnbsd-tdep.c: New file.
9024 * ppcnbsd-tdep.h: New file.
9025 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9026 solib.o, and solib-svr4.o.
9027 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9028 nbsd-tdep.o, and corelow.o.
9029
9030 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9031
9032 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9033 `tr' and `sed'. Mention that `broken' targets are not expected to
9034 build.
9035
9036 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9037
9038 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9039 Let PC point right after the prologue before looking up symbols.
9040
9041 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9042
9043 * i386-tdep.c (i386_register_virtual_type): Return
9044 builtin_type_vec128i for SSE registers.
9045
9046 * gdbtypes.h (builtin_type_vec128i): Declare.
9047
9048 * gdbtypes.c (build_builtin_type_vec128i): New function.
9049 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9050 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9051 (build_gdbtypes): Initialize new builtin vector types.
9052 (_initialize_gdbtypes): Register new vector types with gdbarch.
9053
9054 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9055
9056 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9057 since it has been multi-arch'd.
9058 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9059 Move Alpha and VAX multi-arch news entries to same section
9060 as other multi-arch news.
9061
9062 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9063
9064 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9065 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9066 static. Rename some register numbers to put them in ns32k-tdep
9067 private namespace.
9068 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9069 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9070 functions.
9071 (_initialize_ns32k_tdep): Use gdbarch_register.
9072 * ns32k-tdep.h: New file.
9073 * ns32knbsd-tdep.c: New file.
9074 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9075 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9076 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9077 REGISTER_BYTES, REGISTER_BYTE): Remove.
9078 * config/ns32k/tm-ns32k.h: New file.
9079 * config/ns32k/tm-umax.h: Remove.
9080
9081 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9082
9083 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9084 ns32k_store_struct_return, ns32k_extract_return_value,
9085 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9086 functions.
9087 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9088 ns32k_saved_pc_after_call.
9089 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9090 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9091 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9092 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9093 ns32k_extract_struct_value_address.
9094
9095 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9096
9097 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9098 ns32k_fix_call_dummy): New.
9099 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9100 ns32k_call_dummy_words.
9101 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9102 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9103 CALL_DUMMY_NARGS): Remove.
9104 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9105
9106 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9107
9108 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9109 ns32k_frame_saved_pc, ns32k_frame_args_address,
9110 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9111 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9112 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9113 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9114 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9115 (BREAKPOINT): Remove..
9116 (FRAME_CHAIN): Define as ns32k_frame_chain.
9117 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9118 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9119 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9120 (FRAME_FIND_SAVED_REGS): Remove.
9121 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9122 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9123 (POP_FRAME): Define as ns32k_pop_frame.
9124
9125 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9126
9127 * ns32k-tdep.c (ns32k_register_byte_32082,
9128 ns32k_register_byte_32382, ns32k_register_raw_size,
9129 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9130 functions.
9131 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9132 ns32k_register_byte_32382.
9133 * config/ns32k/tm-umax.h: Update copyright years.
9134 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9135 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9136 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9137 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9138 (ns32k_get_enter_addr): Fix prototype.
9139
9140 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9141
9142 * ns32k-tdep.c: Update copyright years.
9143 (ns32k_register_name_32082): New function.
9144 (ns32k_register_name_32382): Ditto.
9145 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9146 (REGISTER_NAME): Define as ns32k_register_name_32382.
9147 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9148 (REGISTER_NAME): Define as ns32k_register_name_32082.
9149
9150 2002-05-24 Jim Blandy <jimb@redhat.com>
9151
9152 * dwarf2read.c (free_line_header): Use xfree, not free.
9153
9154 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9155
9156 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9157 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9158
9159 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9160
9161 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9162
9163 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9164
9165 From Ross Alexander at NEC Europe:
9166 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9167
9168 2002-05-23 Michael Snyder <msnyder@redhat.com>
9169
9170 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9171 for input, rather than parse_and_eval_address.
9172
9173 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9174
9175 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9176 * Makefile.in (sim_d10v_h): Update definition.
9177
9178 2002-05-24 Andrew Cagney <cagney@redhat.com>
9179
9180 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9181 change `2002-05-22 Michael Snyder' below.
9182 (d10v_push_arguments): Ditto.
9183 (d10v_extract_return_value): Ditto.
9184
9185 2002-05-23 Jim Blandy <jimb@redhat.com>
9186
9187 * macrotab.c (check_for_redefinition): Don't complain if the new
9188 definition is the same as the previous one. Take more arguments
9189 to allow the comparison.
9190 (macro_define_object, macro_define_function): Pass more arguments
9191 to check_for_redefinition.
9192
9193 2002-05-22 Michael Snyder <msnyder@redhat.com>
9194
9195 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9196 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9197 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9198 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9199 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9200 Add a temp variable to save a call (and a memory read).
9201 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9202 if possible (so that PC_IN_CALL_DUMMY will work).
9203
9204 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9205
9206 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9207
9208 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9209
9210 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9211 fde->cie_ptr.
9212 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9213 (dwarf2_build_frame_info): Add offset to fde->initial_location
9214 so that frames of shared libraries are mapped correctly.
9215 (execute_stack_op): Change type of 'result' from ULONGEST to
9216 CORE_ADDR.
9217
9218 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9219
9220 * config/alpha/tm-nbsd.h: Include solib.h.
9221
9222 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9223
9224 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9225 assumptions about the host's byte order.
9226
9227 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9230 to dependency list.
9231 * alphanbsd-tdep.c: Include solib-svr4.h.
9232 * shnbsd-tdep.c: Ditto.
9233
9234 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9235
9236 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9237 nbsd-tdep.h to dependency list.
9238 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9239 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9240 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9241 nbsdaout.mh and nbsdelf.mh consistently.
9242 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9243 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9244 nbsdaout.mt and nbsdelf.mh consistently.
9245 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9246 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9247 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9248 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9249 a.out shared library stuff from here...
9250 * config/nm-nbsdaout.h: ...to here.
9251 * config/tm-nbsd.h: Remove.
9252 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9253 * config/arm/nbsd.mh: Remove.
9254 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9255 nbsd-tdep.o.
9256 * config/arm/nbsdaout.mh: New file.
9257 * config/arm/nbsdelf.mh: New file.
9258 * config/arm/nm-nbsdaout.h: New file.
9259 * config/i386/nbsd.mh: Remove.
9260 * config/i386/nbsd.mt: Remove.
9261 * config/i386/nbsdaout.mh: New file.
9262 * config/i386/nbsdaout.mt: New file.
9263 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9264 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9265 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9266 i386_register_u_addr): Remove.
9267 * config/i386/nm-nbsdaout.h: New file.
9268 * config/i386/nm-nbsdelf.h: Remove.
9269 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9270 (USE_STRUCT_CONVENTION): Remove.
9271 * config/i386/tm-nbsdaout.h: New file.
9272 * config/i386/tm-nbsdelf.h: Remove.
9273 * config/m68k/nbsd.mh: Remove.
9274 * config/m68k/nbsd.mt: Remove.
9275 * config/m68k/nbsdaout.mh: New file.
9276 * config/m68k/nbsdaout.mt: New file.
9277 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9278 * config/m68k/nm-nbsdaout.h: New file.
9279 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9280 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9281 * config/ns32k/nbsd.mh: Remove.
9282 * config/ns32k/nbsd.mt: Remove.
9283 * config/ns32k/nbsdaout.mh: New file.
9284 * config/ns32k/nbsdaout.mt: New file.
9285 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9286 * config/ns32k/nm-nbsdaout.h: New file.
9287 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9288 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9289 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9290 (SVR4_SHARED_LIBS): Remove.
9291 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9292 * config/sparc/nbsd.mh: Remove.
9293 * config/sparc/nbsd.mt: Remove.
9294 * config/sparc/nbsdaout.mh: New file.
9295 * config/sparc/nbsdaout.mt: New file.
9296 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9297 * config/sparc/nbsdelf.mt: New file.
9298 * config/sparc/nm-nbsdaout.h: New file.
9299 * config/sparc/nm-nbsdelf.h: Remove.
9300 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9301 * config/sparc/tm-nbsdaout.h: New file.
9302
9303 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9304
9305 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9306 mipsnbsd-tdep.c
9307 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9308
9309 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9312 shnbsd-nat.c.
9313 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9314
9315 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9316
9317 * NEWS: Note new MIPS NetBSD native configuration.
9318 * configure.host (mips*-*-netbsd*): New host.
9319 * configure.tgt (mips*-*-netbsd*): New target.
9320 * mipsnbsd-nat.c: New file.
9321 * mipsnbsd-tdep.c: New file.
9322 * mipsnbsd-tdep.h: New file.
9323 * config/mips/nbsd.mh: New file.
9324 * config/mips/nbsd.mt: New file.
9325 * config/mips/nm-nbsd.h: New file.
9326 * config/mips/tm-nbsd.h: New file.
9327
9328 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9329
9330 * Makefile.in (SFILES): Add osabi.c.
9331 (COMMON_OBS): Add osabi.o.
9332 (osabi.o): New dependency list.
9333 * osabi.c: New file.
9334 * osabi.h: New file.
9335 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9336
9337 * Makefile.in (alpha_tdep_h): Define and use instead of
9338 alpha-tdep.h.
9339 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9340 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9341 Remove.
9342 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9343 * alpha-tdep.h: Include osabi.h.
9344 (alpha_abi): Remove.
9345 (gdbarch_tdep): Use generic OS ABI framework.
9346 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9347 gdbarch_register_osabi.
9348 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9349 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9350 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9351
9352 * Makefile.in (sh_tdep_h): Add osabi.h.
9353 * sh-tdep.h (sh_osabi): Remove.
9354 (gdbarch_tdep): Use generic OS ABI framework.
9355 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9356 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9357 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9358 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9359
9360 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9361 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9362 gdbarch_register_osabi.
9363 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9364 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9365 (get_elfosabi): Rename to...
9366 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9367 ABI framework support routines.
9368 (arm_gdbarch_init): Use generic OS ABI framework.
9369 (arm_dump_tdep): Likewise.
9370 (_initialize_arm_tdep): Likewise.
9371 * arm-tdep.h: Include osabi.h.
9372 (arm_abi): Remove.
9373 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9374 osabi member.
9375 (arm_gdbarch_register_os_abi): Remove prototype.
9376 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9377 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9378
9379 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9380 * mips-tdep.c: Include osabi.h.
9381 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9382 OS ABI framework.
9383
9384 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9385
9386 * h8300-tdep.c: Fix formatting.
9387
9388 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9389
9390 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9391 printing vector registers.
9392
9393 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9394
9395 From Fernando Nasser:
9396 * remote.c (remote_async_open_1): Re-throw the exception when the
9397 connection fails.
9398 (remote_cisco_open): Ditto.
9399 (remote_open_1): Ditto.
9400
9401 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9402
9403 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9404 (remote_start_remote): Add uiout parameter. Pass through to
9405 remote_start_remote_dummy.
9406 (remote_open_1): Use catch_exception instead of catch_errors.
9407 (remote_async_open_1): Ditto.
9408 (remote_cisco_open): Ditto.
9409
9410 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9411
9412 * remote.c (remote_start_remote): Replace PTR with void pointer.
9413 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9414 static.
9415
9416 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9417
9418 * gdb_indent.sh: Allow the script to be run in the sim directory.
9419
9420 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9421
9422 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9423 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9424
9425 * corelow.c (core_open): Only call set_gdbarch_from_file if
9426 exec_bfd is NULL.
9427
9428 2002-05-17 Andrey Volkov <avolkov@transas.com>
9429
9430 * h8300-tdep.c: Add support of EXR register
9431 * config/h8300/tm-h8300.h: Ditto.
9432
9433 2002-05-17 Andrey Volkov <avolkov@transas.com>
9434
9435 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9436
9437 2002-05-17 Andrey Volkov <avolkov@transas.com>
9438
9439 * h8300-tdep.c: Change literal regnums to REGNO.
9440
9441 2002-05-17 Jim Blandy <jimb@redhat.com>
9442
9443 * NEWS: Note addition of macro support.
9444
9445 Expand preprocessor macros in C expressions.
9446 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9447 (scan_macro_expansion, scanning_macro_expansion,
9448 finished_macro_expansion): New function declarations.
9449 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9450 variable declarations.
9451 * parser-defs.h (expression_context_pc): New declaration.
9452 * parse.c (expression_context_pc): New variable.
9453 (parse_exp_1): Set expression_context_pc, as well as
9454 expression_context_block.
9455 * c-exp.y (yylex): If we're not already reading the result of a
9456 macro expansion, try to macro-expand the next token. When we're
9457 done scanning a macro expansion, switch back to the mainline text.
9458 Commas and `if's in a macro's expansion don't terminate the input.
9459 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9460 (macro_original_text, macro_expanded_text,
9461 expression_macro_lookup_func, expression_macro_lookup_baton): New
9462 variables.
9463 (scan_macro_expansion, scanning_macro_expansion,
9464 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9465 c_preprocess_and_parse): New functions.
9466 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9467 c_preprocess_and_parse, instead of c_parse.
9468 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9469 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9470
9471 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9472
9473 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9474 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9475 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9476
9477 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9478
9479 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9480
9481 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * Makefile.in (sh_tdep_h): Define and use.
9484 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9485 register enum): Move to...
9486 * * sh-tdep.h: ...here.
9487 * sh-tdep.c: Include sh-tdep.h.
9488 * sh3-rom.c: Likewise.
9489 * shnbsd-tdep.c: Likewise.
9490
9491 2002-05-16 Michael Snyder <msnyder@redhat.com>
9492
9493 * arm-tdep.c: Spelling fix in comment.
9494
9495 2002-05-16 Jim Blandy <jimb@redhat.com>
9496
9497 Add commands for manually expanding macros and showing their
9498 definitions.
9499 * macrocmd.c, macroscope.c, macroscope.h: New files.
9500 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9501 (macroscope_h): New variable.
9502 (HFILES_NO_SRCDIR): Add macroscope.h.
9503 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9504 (macroscope.o, macrocmd.o): New rules.
9505
9506 Teach the Dwarf 2 reader to read macro information.
9507 * dwarf2read.c: #include "macrotab.h".
9508 (dwarf_macinfo_buffer): New variable.
9509 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9510 dwarf_macinfo_size.
9511 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9512 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9513 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9514 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9515 dwarf2_macro_spaces_in_definition): New complaints.
9516 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9517 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9518 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9519 the partial symbol table.
9520 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9521 from what's recorded in the partial symbol table.
9522 (read_file_scope): If the compilation unit has a
9523 `DW_AT_macro_info' attribute, read its macro information.
9524 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9525
9526 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9527
9528 Fix PR gdb/546
9529 * ser-tcp.c: Don't include <netinet/udp.h>.
9530
9531 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9532
9533 * MAINTAINERS: Update my email address.
9534
9535 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9538 include file of the same name.
9539
9540 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9541
9542 * configure.tgt: Mark v850 as multi-arched.
9543 * config/v850/tm-v850.h: Remove file.
9544 * config/v850/v850.mt: Eliminate TM_FILE.
9545
9546 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9547
9548 * v850-tdep.c: Full multi-arch.
9549 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9550 Define GDB_MULTI_ARCH to 2.
9551
9552 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9553
9554 * p-exp.y (current_type): New static variable.
9555 Carries the type of the expression at the position that is parsed.
9556 (push_current_type, pop_current_type): Two new functions. Used
9557 to store/restore current_type in expression on specific tokens.
9558 (search_field): New static variable. Set to one after parsing a point
9559 as at that point only a FIELDNAME token should be searched.
9560 (FIELDNAME): New token. After a point only a token belonging to
9561 current_type type definition is allowed.
9562 (all over token rules): reset and change current_type according
9563 to rules.
9564 (exp '[' rule): insert implicit array index field if
9565 exp is a pascal string type.
9566
9567 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9568
9569 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9570 frame info. Use frame_info's saved_regs instead of matching member
9571 in extra_frame_info throughout.
9572 (v850_frame_init_saved_regs): New function.
9573 (v850_init_extra_frame_info): Move most functionality into
9574 v850_frame_init_saved_regs().
9575 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9576 (v850_frame_find_saved_regs): Remove declaration.
9577 (FRAME_FIND_SAVED_REGS): Remove definition.
9578 (v850_frame_init_saved_regs): Add declaration.
9579 (FRAME_INIT_SAVED_REGS): Add definition.
9580
9581 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9582
9583 * v850-tdep.c: Begin multi-arch'ing v850.
9584 (v850_target_architecture_hook): Remove function.
9585 (v850_gdbarch_init): New function. Add code previously in
9586 v850_target_architecture_hook().
9587 (_initialize_v850_tdep): Don't set target_architecture_hook.
9588 Call register_gdbarch_init() instead.
9589
9590 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9591
9592 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9593 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9594 (fixup_class_method_type): Likewise.
9595
9596 2002-05-15 Jim Blandy <jimb@redhat.com>
9597
9598 Add macro structures to GDB's symbol tables. Nobody puts anything
9599 in them yet.
9600 * symtab.h (struct symtab): New member: `macro_table'.
9601 * buildsym.h (pending_macros): New global variable.
9602 * buildsym.c: #include "macrotab.h".
9603 (buildsym_init): Initialize `pending_macros'.
9604 (end_symtab): If we found macro information while reading a CU's
9605 debugging info, do build a symtab structure for it. Make the
9606 symtab point to the macro information, and clear the
9607 `pending_macros' pointer which held it while we were reading the
9608 debug info.
9609 (really_free_pendings): Free any pending macro table.
9610 * objfiles.h (struct objfile): New member: `macro_cache'.
9611 * objfiles.c (allocate_objfile): Set allocate and free functions
9612 for the macro cache's objstack.
9613 (free_objfile): Empty the macro cache's obstack.
9614 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9615 set new allocate and free functions for it.
9616 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9617 free functions for the macro cache's objstack. (Why is this
9618 function building its own objfile?)
9619 * symmisc.c (print_objfile_statistics): Print statistics on the
9620 macro bcache.
9621 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9622
9623 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9624
9625 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9626 (REGISTER_U_ADDR): Delete definition.
9627 (arm_register_u_addr): Delete declaration.
9628
9629 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9630
9631 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9632 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9633
9634 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9635
9636 * regcache.c (register_valid): Revise comments refering to "Not
9637 available" and "unavailable".
9638 * frame.c (frame_register_read): Ditto.
9639 * findvar.c (value_of_register): Ditto.
9640
9641 2002-05-15 Andrew Cagney <cagney@redhat.com>
9642
9643 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9644 (remote-sim.o): Update dependencies.
9645 (d10v-tdep.o): Specify dependencies.
9646 (sim_d10v_h): Define.
9647
9648 2002-05-14 Jim Blandy <jimb@redhat.com>
9649
9650 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9651 * macrotab.c (macro_lookup_inclusion, find_definition,
9652 new_macro_table): Same.
9653
9654 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9655 not `! strcmp ()'. This is a dubious improvement.
9656 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9657
9658 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9659 although it's not necessary, to avoid a warning.
9660
9661 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9662
9663 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9664 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9665 TYPE_INSTANCE_FLAGS.
9666 (struct main_type): New.
9667 (struct type): Move most members to struct main_type. Change
9668 cv_type and as_type to new type_chain member. Add instance_flags.
9669 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9670 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9671 (finish_cv_type): Remove prototype.
9672 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9673 Set TYPE_CHAIN.
9674 (alloc_type_instance): New function.
9675 (smash_type): New function.
9676 (make_pointer_type, make_reference_type, make_function_type)
9677 (smash_to_member_type, smash_to_method_type): Call smash_type.
9678 (make_qualified_type): New function.
9679 (make_type_with_address_space): Call make_qualified_type.
9680 (make_cv_type): Likewise.
9681 (finish_cv_type): Remove unnecessary function.
9682 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9683 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9684 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9685 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9686 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9687 * hpread.c (hpread_read_struct_type): Likewise.
9688 * stabsread.c (read_struct_type): Likewise.
9689
9690 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9691
9692 * configure.tgt: Add a catch all sh* target, for cases like
9693 sh[2,3,4]-elf and sh-hms.
9694
9695 2002-05-14 Keith Seitz <keiths@redhat.com>
9696
9697 * event-loop.c (create_file_handler): Don't do anything but
9698 update data when we are given a fd which we are already
9699 monitoring.
9700
9701 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9702
9703 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9704 (update_context): Use __func__ in warnings.
9705
9706 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9709 and tcp_close to net_open and net_close.
9710 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9711 using UDP if requested. Don't try to disable Nagle on UDP
9712 sockets.
9713 * remote.c (remote_serial_open): New function. Warn about UDP.
9714 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9715
9716 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9717
9718 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9719
9720 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9721
9722 * configure.tgt: Remove sh-hms target.
9723 * MAINTAINERS: Don't list sh-hms as a separate target.
9724
9725 2002-05-13 Jim Blandy <jimb@redhat.com>
9726
9727 Add first preprocessor macro-expansion files.
9728 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9729 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9730 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9731 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9732 (COMMON_OBS): Add macrotab.o, macroexp.o.
9733 (macroexp.o, macrotab.o): New rules.
9734
9735 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9736
9737 * config/m88k/tm-m88k.h: Update copyright.
9738 (m88k_target_write_pc): Declare
9739 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9740 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9741 (SHIFT_INST_REGS): Update definition.
9742 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9743 using old definition of TARGET_WRITE_PC.
9744 * regcache.c (generic_target_write_pc): Delete code handling
9745 NNPC_REGNUM.
9746 * gdbarch.sh (NNPC_REGNUM): Delete.
9747 * gdbarch.h, gdbarch.c: Regenerate.
9748
9749 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9750
9751 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9752 builtin reg number.
9753
9754 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9755
9756 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9757 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9758 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9759 access macros.
9760 * c-typeprint.c (cp_type_print_method_args): Likewise.
9761 (c_type_print_args): Likewise.
9762 * d10v-tdep.c (d10v_push_arguments): Likewise.
9763 (d10v_extract_return_value): Likewise.
9764 * expprint.c (print_subexp): Likewise.
9765 * gdbtypes.c (lookup_primitive_typename): Likewise.
9766 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9767 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9768 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9769 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9770 (TYPE_VECTOR): Likewise.
9771 * hpread.c (hpread_read_struct_type)
9772 (fix_static_member_physnames, fixup_class_method_type)
9773 (hpread_type_lookup): Likewise.
9774 * mdebugread.c (parse_symbol, parse_type): Likewise.
9775 * p-lang.c (is_pascal_string_type): Likewise.
9776 * valops.c (hand_function_call): Likewise.
9777 * x86-64-tdep.c (classify_argument): Likewise.
9778
9779 * hpread.c (hpread_read_function_type)
9780 (hpread_read_doc_function_type): Call replace_type.
9781 * dstread.c (create_new_type): Delete.
9782 (decode_dst_structure, process_dst_function): Call alloc_type.
9783 Use type access macros.
9784
9785 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9786
9787 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9788 the're not supported by the current architecture.
9789 (i387_fill_fxsave): Likewise.
9790
9791 2002-05-12 Fred Fish <fnf@redhat.com>
9792
9793 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9794 sect_index_xxx members to index the first slot in section_offsets
9795 if all of the section_offsets are zero.
9796
9797 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9798
9799 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9800 checked in with last change.
9801
9802 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9803
9804 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9805 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9806 config.sub.
9807
9808 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9809
9810 * Makefile.in: Update dependencies.
9811
9812 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9813
9814 * language.c (local_hex_string_custom): Simplify. Do not depend
9815 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9816
9817 * memattr.c (mem_info_command): Replace calls to
9818 longest_local_hex_string and longest_local_hex_string_custom.
9819 * buildsym.c (make_blockvector): Ditto.
9820 * solib.c (info_sharedlibrary_command): Ditto.
9821 * tracepoint.c (tracepoints_info): Ditto.
9822 * symtab.c (print_msymbol_info): Ditto.
9823
9824 * language.c (local_hex_string): Delete.
9825 (local_hex_string_custom): Delete.
9826 (longest_local_hex_string): Rename to local_hex_string.
9827 (longest_local_hex_string_custom): Rename to
9828 local_hex_string_custom.
9829 * language.h (local_hex_string): Change parameter type to LONGEST.
9830 (local_hex_string_custom): Ditto.
9831 (longest_local_hex_string): Delete declaration.
9832 (longest_local_hex_string_custom): Ditto.
9833
9834 * solib.c: Update copyright.
9835 * memattr.c: Update copyright.
9836
9837 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9838
9839 * arch-utils.h (legacy_register_to_value): Declare.
9840 (legacy_value_to_register): Declare.
9841 (legacy_convert_register_p): Declare.
9842 * arch-utils.c (legacy_register_to_value): New function.
9843 (legacy_value_to_register): New function.
9844 (legacy_convert_register_p): New function.
9845
9846 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9847 (VALUE_TO_REGISTER): Define.
9848 (CONVERT_REGISTER_P): Define.
9849 * gdbarch.h, gdbarch.c: Regenerate.
9850
9851 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9852 VALUE_TO_REGISTER.
9853 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9854 CONVERT_REGISTER_P.
9855
9856 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9857 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9858
9859 * Makefile.in: Update dependencies for valops.c.
9860 * valops.c: Include "gdb_assert.h".
9861 (typecmp): Skip THIS parameter to methods.
9862 (find_method_list): Remove static_memfuncp argument,
9863 update callers. Check for stub methods.
9864 (find_value_oload_method_list): Don't set *static_memfuncp.
9865 (find_overload_match): Don't check for stub methods. Assert
9866 that methods are not stubbed. Handle static methods.
9867 (value_find_oload_method_list): Remove static_memfuncp argument.
9868 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9869 to the argument list for static stub methods.
9870 * value.h (value_find_oload_method_list): Update prototype.
9871
9872 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9873
9874 * arch-utils.h (generic_register_size): Declare.
9875 (generic_register_raw_size, generic_register_virtual_size): Delete
9876 declarations.
9877 * arch-utils.c (generic_register_raw_size): Delete.
9878 (generic_register_size): New function.
9879 (generic_register_virtual_size): Delete.
9880
9881 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9882 default generic_register_size.
9883 * gdbarch.h, gdbarch.c: Re-generate.
9884
9885 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9886 register_virtual_size.
9887 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9888 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9889
9890 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9891
9892 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9893 * gdbarch.h, gdbarch.c: Regenerate.
9894 * gnu-v3-abi.c: Update copyright.
9895 (vtable_address_point_offset): Update.
9896 (gnuv3_rtti_type): Update.
9897 (gnuv3_baseclass_offset): Update.
9898 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9899 (init_fetch_link_map_offsets): Update.
9900 * remote.c (get_remote_state): Update.
9901
9902 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9903
9904 * TODO: Remove value_headof/value_from_vtable_info comment.
9905 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9906 * values.c (value_headof, value_from_vtable_info): Delete.
9907 * value.h (value_from_vtable_info): Delete prototype.
9908
9909 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9910
9911 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9912 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9913 $(gdb_regex_h).
9914 (gdb_assert_h): Define.
9915 (gdb_wait_h): Define.
9916 (gdb_regex_h): Define.
9917
9918 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9919
9920 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9921 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9922
9923 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9924
9925 * nbsd-tdep.c: Fix comment.
9926
9927 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9928
9929 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9930 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9931 (nbsd-tdep.o): New dependency list.
9932 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9933 nbsd-tdep.h.
9934 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9935 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9936 * nbsd-tdep.c: New file.
9937 * nbsd-tdep.h: New file.
9938 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9939 nbsd-tdep.h.
9940 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9941 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9942 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9943 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9944
9945 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9946
9947 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9948 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9949 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9950 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9951 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9952 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9953
9954 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9955
9956 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9957 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9958 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9959 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9960 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9961 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9962 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9963
9964 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9967 fetch_elfcore_registers to...
9968 * i386nbsd-tdep.c: ...here.
9969 (i386nbsd_use_struct_convention): Rename to...
9970 (i386nbsd_aout_use_struct_convention): ...this.
9971 (i386nbsd_supply_reg): New function.
9972 (i386nbsd_fill_reg): New function.
9973 (fetch_core_registers): Use i386nbsd_supply_reg.
9974 (fetch_elfcore_registers): Likewise.
9975 (_initialize_i386nbsd_tdep): New function.
9976 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9977 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9978 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9979 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9980 (i386nbsd_aout_use_struct_convention): ...this.
9981
9982 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9983
9984 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9985 (store_inferior_registers): Use shnbsd_fill_reg.
9986 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9987 sh_nbsd_supply_register): Collapse into...
9988 (shnbsd_supply_reg): ...this.
9989 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9990 (shnbsd_fill_reg): ...this.
9991 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9992 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9993 (fetch_core_registers): Use shnbsd_supply_reg.
9994 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9995 (sh_nbsd_core_fns): Rename to...
9996 (shnbsd_core_fns): ...this.
9997 (sh_nbsd_elfcore_fns): Rename to...
9998 (shnbsd_elfcore_fns): ...this.
9999 (sh_nbsd_init_abi): Rename to...
10000 (shnbsd_init_abi): ...this.
10001 (_initialize_sh_nbsd_tdep): Rename to...
10002 (_initialize_shnbsd_tdep): ...this.
10003 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10004 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10005 sh_nbsd_fill_register): Remove prototypes.
10006 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10007
10008 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10009
10010 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10011 (i387-nat.o): Delete dependency list.
10012 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10013 (x86-64-linux-nat.o): Likewise.
10014 * i387-nat.c: Delete file, moving contents to...
10015 * i387-tdep.c: ...here.
10016 * i387-nat.h: Rename...
10017 * i387-tdep.h: ...to this.
10018 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10019 * i386-linux-nat.c: Likewise.
10020 * i386bsd-nat.c: Likewise.
10021 * i386gnu-nat.c: Likewise.
10022 * i386nbsd-nat.c: Likewise.
10023 * i386v4-nat.c: Likewise.
10024 * x86-64-linux-nat.c: Likewise.
10025 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10026 * config/i386/go32.mh (NATDEPFILES): Likewise.
10027 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10028 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10029 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10030 * config/i386/linux.mh (NATDEPFILES): Likewise.
10031 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10032 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10033 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10034 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10035
10036 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10037
10038 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10039 (alphanbsd-nat.o): Remove dependency list.
10040 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10041 * alphanbsd-nat.c: Delete. Contents moved to...
10042 * alphanbsd-tdep.c: ...here.
10043 (_initialize_alphanbsd_tdep): Register core functions.
10044 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10045
10046 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10047
10048 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10049 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10050 (alphanbsd-nat.o): Likewise.
10051 (alphabsd-tdep.o): New dependency list.
10052 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10053 (fill_gregset): Use alphabsd_fill_reg.
10054 (supply_fpregset): Use alphabsd_supply_fpreg.
10055 (fill_fpregset): Use alphabsd_fill_fpreg.
10056 (fetch_inferior_registers): Use struct reg and struct fpreg
10057 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10058 and alphabsd_supply_fpreg.
10059 (store_inferior_registers): Use struct reg and struct fpreg
10060 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10061 and alphabsd_fill_fpreg.
10062 * alphabsd-tdep.c: New file.
10063 * alphabsd-tdep.h: New file.
10064 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10065 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10066 alphabsd_supply_fpreg.
10067 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10068 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10069
10070 2002-05-11 Eric Christopher <echristo@redhat.com>
10071
10072 * mips-tdep.c (mips_double_register_type): Fix thinko.
10073 (mips_single_register_type): Ditto.
10074 * MAINTAINERS: Add self.
10075
10076 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10077
10078 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10079 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10080 right thing on architectures with different endianness and/or
10081 integer sizes.
10082
10083 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10084
10085 From Christian Limpach <chris@Pin.LU>
10086 * configure.in: Change sed expression which comments out
10087 NATDEPFILES to also comment out continuation lines.
10088 * configure: Regenerate.
10089
10090 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10091
10092 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10093 big patch.
10094
10095 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10096
10097 * sh-tdep.c: Include correct file.
10098
10099 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10100
10101 New support for sh64-elf (sh5) target.
10102
10103 * configure.tgt: For sh64-elf target, default to sh-elf.
10104
10105 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10106 (struct gdbarch_tdep): Add new fields for new registers and ABI
10107 info.
10108
10109 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10110 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10111 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10112 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10113 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10114 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10115 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10116 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10117 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10118 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10119 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10120 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10121 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10122 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10123 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10124 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10125 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10126 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10127 sign_extend, sh64_nofp_frame_init_saved_regs,
10128 sh64_init_extra_frame_info, sh64_get_saved_register,
10129 sh64_extract_struct_value_address, sh64_pop_frame,
10130 sh64_push_arguments, sh64_extract_return_value,
10131 sh64_store_return_value, sh64_show_media_regs,
10132 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10133 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10134 sh_sh64_register_virtual_type,
10135 sh_sh64_register_convert_to_virtual,
10136 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10137 sh64_register_read, sh64_pseudo_register_write,
10138 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10139 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10140 sh64_do_pseudo_register, sh_compact_do_registers_info,
10141 sh64_do_registers_info, sh_gdbarch_init): New functions.
10142
10143 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10144
10145 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10146
10147 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * linespec.c (decode_line_1): Check for a double quote after
10150 a filename correctly.
10151
10152 2002-05-10 Jim Blandy <jimb@redhat.com>
10153
10154 Properly track the size of the current objfile's .debug_line section.
10155 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10156 (DWARF_LINE_SIZE): New macro.
10157 (dwarf2_build_psymtabs_hard): Record the line section's size in
10158 the partial symbol table.
10159 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10160 symbol table.
10161
10162 2002-05-10 Petr Sorfa <petrs@caldera.com>
10163
10164 * ia64-tdep.c: Handle breakpoints on L instruction type
10165 in MLX instruction bundle by moving the breakpoint to
10166 the third slot (X instruction type) as L holds only data.
10167
10168 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10169
10170 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10171 (process_one_symbol): Complain about discarding local symbols
10172 due to a misplaced N_LBRAC entry.
10173
10174 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10175
10176 From Daniel Berlin <dan@cgsoftware.com>
10177 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10178 decrease the depth we are at, in the case of templates.
10179
10180 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10181
10182 * mips-tdep.c (mips_float_register_type): New function.
10183 (mips_double_register_type): New function.
10184 (mips_print_register): Use them.
10185 (do_fp_register_row): Likewise.
10186
10187 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10188
10189 * signals/signals.c (signals): Remove conditional compilation around
10190 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10191 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10192
10193 2002-05-09 Michael Snyder <msnyder@redhat.com>
10194
10195 * remote-rdp.c (remote_rdp_can_run): Remove.
10196
10197 2002-05-09 Tom Tromey <tromey@redhat.com>
10198
10199 * jv-valprint.c (java_val_print): Handle `char' as a special case
10200 of TYPE_CODE_INT.
10201
10202 2002-05-09 Michael Snyder <msnyder@redhat.com>
10203
10204 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10205 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10206 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10207 str r(0123),[sp,#nn].
10208 (arm_skip_prologue): Ditto. Also make disassembly
10209 order-independent by placing it in a loop.
10210
10211 2002-05-06 Michael Snyder <msnyder@redhat.com>
10212
10213 * stabsread.c (read_type): Add recognition for new attribute:
10214 "@V;" means that an array type is actually a vector.
10215 This is analogous to the vector flag that's been added to dwarf2.
10216
10217 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10218
10219 * i386-tdep.h (i386_abi): New enum.
10220 (struct gdbarch_tdep): Replace os_ident member with abi.
10221 (i386_gdbarch_register_os_abi): New prototype.
10222 * i386-tdep.c (i386_abi_names): New array.
10223 (process_note_abi_tag_sections): Removed.
10224 (process_note_sections): New function.
10225 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10226 (struct i386_abi_handler): New struct.
10227 (i386_abi_handler_list): New variable.
10228 (i386_gdbarch_register_os_abi): New function.
10229 (i386_gdbarch_init): Adapt for the changes given above.
10230
10231 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10232
10233 * gregset.h: Say "GNU/Linux".
10234
10235 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10236
10237 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10238 (build_gdbtypes): Build builtin_type_v2_float.
10239 (_initialize_gdbtypes): Register new builtin type.
10240
10241 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10242
10243 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10244 (clear_gdbarch_swap): New function.
10245 (initialize_non_multiarch): Call.
10246 (gdbarch_update_p): Before calling init(), swap out and clear the
10247 existing architecture.
10248 * gdbarch.c: Regenerate.
10249
10250 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10251
10252 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10253 alphanbsd-tdep.c.
10254
10255 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10256
10257 * sh-nbsd-nat.c: Rename to...
10258 * shnbsd-nat.c: ...this.
10259 * sh-nbsd-tdep.c: Rename to...
10260 * shnbsd-tdep.c: ...this.
10261 * sh-nbsd-tdep.h: Rename to...
10262 * shnbsd-tdep.h: ...this.
10263 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10264 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10265
10266 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10267
10268 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10269 concatenation for command help messages.
10270
10271 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10272
10273 * NEWS: Note new sh*-*-netbsdelf* configuration.
10274 * configure.host: Set gdb_host_cpu to sh for all sh*.
10275 (sh*-*-netbsdelf*): New host.
10276 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10277 (sh*-*-netbsdelf*): New target.
10278 * sh-nbsd-nat.c: New file.
10279 * sh-nbsd-tdep.c: New file.
10280 * sh-nbsd-tdep.h: New file.
10281 * config/sh/nbsd.mh: New file.
10282 * config/sh/nbsd.mt: New file.
10283 * config/sh/nm-nbsd.h: New file.
10284 * config/sh/tm-nbsd.h: New file.
10285
10286 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10287
10288 * sh-tdep.c (sh_osabi_names): Declare.
10289 (process_note_abi_tag_sections): New function.
10290 (get_elfosabi): Ditto.
10291 (sh_gdbarch_register_os_abi): Ditto.
10292 (sh_dump_tdep): Ditto.
10293 _initialize_sh_tdep): Use gdbarch_register to register
10294 sh_gdbarch_init and sh_dump_tdep.
10295 * config/sh/tm-sh.h (sh_osabi): Declare.
10296 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10297
10298 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10299
10300 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10301 (thumb_scan_prologue): Ditto.
10302 (arm_find_callers_reg): Ditto.
10303 (arm_frame_chain): Ditto.
10304 (arm_init_extra_frame_info): Ditto.
10305 (arm_frame_saved_pc): Ditto.
10306 (arm_pop_frame): Ditto.
10307 (arm_push_return_address): New function.
10308 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10309 call_dummy_location, call_dummy_breakpoint_offset_p,
10310 call_dummy_breakpoint_offset, call_dummy_p,
10311 call_dummy_stack_adjust_p, call_dummy_words,
10312 sizeof_call_dummy_words, call_dummy_start_offset,
10313 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10314 call_dummy_address, push_return_address and push_dummy_frame for
10315 generic dummy frames.
10316
10317 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10318
10319 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10320 size computation for alloca.
10321 (sh_fp_frame_init_saved_regs): Likewise.
10322
10323 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10324
10325 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10326 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10327 * arm-tdep.c (arm_store_return_value): Use them.
10328 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10329 * remote-rdp.c (remote_rdp_fetch_register): Use
10330 ARM_MAX_REGISTER_RAW_SIZE.
10331 (remote_rdp_store_register): Likewise.
10332
10333 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10334
10335 * dwarf2cfi.c: Code cleanup, removed unused variables,
10336 added default labels to switch {} statements.
10337 * x86-64-tdep.c: Ditto.
10338 * x86-64-linux-nat.c: Ditto.
10339
10340 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10341
10342 * solib.h: Protect against multiple inclusion.
10343
10344 2002-05-06 Jim Blandy <jimb@redhat.com>
10345
10346 Add first preprocessor macro-expansion files.
10347 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10348 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10349 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10350 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10351 (COMMON_OBS): Add macrotab.o, macroexp.o.
10352 (macroexp.o, macrotab.o): New rules.
10353
10354 Separate the job of reading the line number info statement program
10355 header (...expialidocious) out into its own function.
10356 * dwarf2read.c (struct line_head, struct filenames, struct
10357 directories): Replace with...
10358 (struct line_header): New structure, containing the full
10359 contents of the statement program header, including the
10360 include directory and file name tables.
10361 (read_file_scope): If we have line number info, instead of just
10362 calling dwarf_decode_lines to do all the work, call
10363 dwarf_decode_line_header first to get a `struct line_header'
10364 containing the data in the statement program header, and then
10365 pass that to dwarf_decode_lines, which will pick up where that
10366 left off. Be sure to clean up the `struct line_header' object.
10367 (dwarf_decode_line_header, free_line_header, add_include_dir,
10368 add_file_name): New functions.
10369 (dwarf_decode_lines): Move all the code to read the statement
10370 program header into dwarf_decode_line_header. Take the line
10371 header it built as the first argument, instead of the offset to
10372 the compilation unit's line number info. Use the new `struct
10373 line_header' type instead of the old structures. No need to do
10374 cleanups here now, since we don't allocate anything.
10375 (dwarf2_statement_list_fits_in_line_number_section,
10376 dwarf2_line_header_too_long): New complaints.
10377
10378 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10379
10380 * gdbtypes.c (init_vector_type): New function.
10381 (build_builtin_type_vec128): Simplify the representation of SIMD
10382 registers.
10383 (build_gdbtypes): Initialize new builtin vector types.
10384 (_initialize_gdbtypes): Register new vector types with gdbarch.
10385 (builtin_type_v4_float, builtin_type_v4_int32,
10386 builtin_type_v8_int16, builtin_type_v16_int8,
10387 builtin_type_v2_int32, builtin_type_v4_int16,
10388 builtin_type_v8_int8): New (renamed) SIMD types.
10389
10390 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10391
10392 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10393 (i387_fill_fxsave): Likewise.
10394
10395 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10396
10397 * alpha-tdep.c (alpha_extract_return_value): Don't use
10398 non-constant array size in prototype.
10399
10400 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10401
10402 From Brian Taylor <briant at model dot com>:
10403 * ui-out.c (ui_out_field_core_addr): Use the function
10404 longest_local_hex_string_custom'to format addresses > 32 bits
10405 wide.
10406
10407 * ui-out.c (ui_out_field_core_addr): Update comment.
10408
10409 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10410
10411 * stack.c (select_and_print_frame): Make static. Delete the
10412 parameter `level'.
10413 (func_command): Update call.
10414 (select_frame_command): Delete code computing the frame level.
10415 * frame.h (select_and_print_frame): Delete declaration.
10416
10417 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10418
10419 * sparc-tdep.c (sparc_get_saved_register): Comment why
10420 get_prev_frame call is safe.
10421
10422 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10423
10424 * frame.h (select_frame): Delete level parameter.
10425 * stack.c (select_frame): Update. Use frame_relative_level to
10426 obtain the frame's level.
10427 (select_and_print_frame): Update call.
10428 (select_frame_command): Ditto.
10429 (up_silently_base): Ditto.
10430 (down_silently_base): Ditto.
10431 * ocd.c (ocd_start_remote): Ditto.
10432 * remote-rdp.c (remote_rdp_open): Ditto.
10433 * remote-mips.c (mips_initialize): Ditto.
10434 (common_open): Ditto.
10435 * remote-e7000.c (e7000_start_remote): Ditto.
10436 * m3-nat.c (select_thread): Ditto.
10437 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10438 (child_get_current_exception_event): Ditto.
10439 * varobj.c (varobj_create): Ditto.
10440 (varobj_update): Ditto.
10441 (c_value_of_root): Ditto.
10442 * tracepoint.c (finish_tfind_command): Ditto.
10443 * corelow.c (core_open): Ditto.
10444 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10445 * thread.c (info_threads_command): Ditto.
10446 (switch_to_thread): Ditto.
10447 * infrun.c (normal_stop): Ditto.
10448 (restore_selected_frame): Ditto.
10449 (restore_inferior_status): Ditto.
10450 * breakpoint.c (insert_breakpoints): Ditto.
10451 (watchpoint_check): Ditto.
10452 (bpstat_stop_status): Ditto.
10453 (do_enable_breakpoint): Ditto.
10454 * blockframe.c (flush_cached_frames): Ditto.
10455 (reinit_frame_cache): Ditto.
10456
10457 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10458
10459 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10460 maintainer.
10461
10462 2002-05-04 Jim Blandy <jimb@redhat.com>
10463
10464 * gdbtypes.c (replace_type): Doc fix.
10465
10466 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10467
10468 * valprint.c (strcat_longest): Delete commented out function.
10469 Update copyright.
10470
10471 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10472
10473 * MAINTAINERS: Mark a29k as deleted.
10474 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10475 Move new configurations to the top.
10476 * configure.tgt: Remove a29k.
10477 * config/a29k/tm-vx29k.h: Delete.
10478 * config/a29k/vx29k.mt: Delete.
10479 * config/a29k/tm-a29k.h: Delete.
10480 * config/a29k/a29k-udi.mt: Delete.
10481 * config/a29k/a29k.mt: Delete.
10482 * a29k-tdep.c: Delete.
10483 * remote-udi.c: Delete.
10484 * remote-mm.c: Delete.
10485 * remote-eb.c: Delete.
10486 * remote-adapt.c: Delete.
10487 * Makefile.in: Remove obsolete code.
10488 * config/s390/s390x.mt: Ditto.
10489 * config/s390/s390.mt: Ditto.
10490 * config/sparc/sparclynx.mh: Ditto.
10491 * config/sparc/linux.mh: Ditto.
10492 * config/pa/hppaosf.mh: Ditto.
10493 * config/pa/hppabsd.mh: Ditto.
10494 * config/ns32k/nbsd.mt: Ditto.
10495 * config/mips/vr5000.mt: Ditto.
10496 * config/m68k/sun3os4.mh: Ditto.
10497 * config/m68k/nbsd.mt: Ditto.
10498 * config/m68k/m68klynx.mh: Ditto.
10499 * config/m32r/m32r.mt: Ditto.
10500 * config/i386/x86-64linux.mt: Ditto.
10501 * config/i386/nbsdelf.mt: Ditto.
10502 * config/i386/nbsd.mt: Ditto.
10503 * config/i386/i386lynx.mh: Ditto.
10504
10505 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10506
10507 * target.c (debug_print_register): New function. Handle oversize
10508 registers.
10509 (debug_to_fetch_registers): Call.
10510 (debug_to_store_registers): Call.
10511
10512 2002-05-03 Jim Blandy <jimb@redhat.com>
10513
10514 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10515 (read_type): Doc fix.
10516 * gdbtypes.c (replace_type): Doc fix.
10517
10518 * stabsread.c (multiply_defined_struct): New complaint.
10519 (read_struct_type): If the type we were passed isn't empty, or
10520 incomplete, don't read the new struct type into it; complain,
10521 and return the original type unchanged. Take a new `type_code'
10522 argument, which is the type code for the new type.
10523 (read_type): Rather than storing the type's type code here, pass
10524 it as an argument to read_struct_type, and let that take care of
10525 storing it. That way, we don't overwrite the original type code,
10526 so read_struct_type can use it to decide whether we're overwriting
10527 something we shouldn't.
10528 (complain_about_struct_wipeout): New function.
10529
10530 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10531
10532 * gdbarch.sh: Assert that gdbarch is non-NULL.
10533 * gdbarch.c: Regenerate.
10534
10535 2002-05-03 Jason Merrill <jason@redhat.com>
10536
10537 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10538 and return NULL.
10539
10540 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10541
10542 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10543 (x86_64_dwarf2gdb_regno_map_length),
10544 (x86_64_dwarf2_reg_to_regnum): Added.
10545 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10546 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10547 (_initialize_x86_64_tdep): Synced with the change above.
10548 (x86_64_skip_prologue): Reformulated message.
10549
10550 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10551
10552 * f-exp.y: Also use new prev_lexptr variable
10553 to improve error reporting. Based on Michael Snyder
10554 2002-04-24 dated patch to c-exp.y.
10555 * jv-exp.y: Likewise.
10556 * m2-exp.y: Likewise.
10557
10558 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10559
10560 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10561 we are dealing with vectors.
10562
10563 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10564
10565 * config/m68k/tm-nbsd.h: Obvious fix,
10566 correct machine name.
10567
10568 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10569
10570 * p-typeprint.c (pascal_type_print_base): Add support
10571 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10572
10573 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10574
10575 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10576 for fondamental pascal 'char' type.
10577
10578 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10579
10580 * p-lang.h (is_pascal_string_type): Declaration changed,
10581 new sixth argument of type char ** added.
10582 * p-lang.c (is_pascal_string_type): Implementation
10583 changed. Args length_pos, length_size, string_pos, char_size
10584 can now be NULL. New argument arrayname set to the field
10585 name of the char array. Return value set to char array
10586 field index plus one.
10587 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10588 is_pascal_string_type function.
10589
10590 2002-05-02 Andrew Cagney <cagney@redhat.com>
10591
10592 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10593 <cagney@redhat.com> change.
10594 * gdbarch.c: Regenerate.
10595
10596 2002-05-02 Andrew Cagney <cagney@redhat.com>
10597
10598 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10599 before probing for a new one. Detect errorenous gdbarch_init
10600 functions.
10601 * gdbarch.c: Regenerate.
10602
10603 2002-05-01 Andrew Cagney <cagney@redhat.com>
10604
10605 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10606 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10607 * config/v850/tm-v850.h: Ditto. Update copyright.
10608
10609 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10610
10611 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10612 current_gdbarch.
10613
10614 2002-04-30 Michael Snyder <msnyder@redhat.com>
10615
10616 * arm-tdep.c: Whitespace clean-ups.
10617 (arm_skip_prologue): Fix thinko; two lines
10618 should have been removed as part of 4/24 change.
10619
10620 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10621
10622 * rs6000-tdep.c: Added comment describing how fpscr register
10623 numbers were chosen.
10624
10625 2002-04-30 Michael Snyder <msnyder@redhat.com>
10626
10627 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10628
10629 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10630
10631 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10632 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10633 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10634
10635 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10636
10637 From Louis Hamilton <hamilton@redhat.com>:
10638 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10639 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10640 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10641 not bfd-private xcoff data, to determine wordsize.
10642 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10643
10644 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10645
10646 GDB 5.2 released from 5.2 branch.
10647
10648 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10649
10650 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10651 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10652 (x86_64_register_info_table): Added comments with register numbers.
10653
10654 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10655
10656 * rs6000-tdep.c (rs6000_extract_return_value,
10657 rs6000_store_return_value): Handle returning vectors.
10658 (rs6000_gdbarch_init): Use
10659 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10660 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10661 New function.
10662 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10663 vectors.
10664 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10665 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10666
10667 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10668
10669 * hpread.c (hpread_psymtab_to_symtab_1,
10670 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10671 with fprintf_unfiltered (gdb_stderr,...).
10672
10673 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10674
10675 * remote-array.c (printf_monitor, write_monitor,
10676 array_insert_breakpoint, array_remove_breakpoint ):
10677 Replace fprintf (stderr,...
10678 with fprintf_unfiltered (gdb_stderr,....
10679 * remote-es.c: Likewise.
10680 * remote-os9k.c: Likewise.
10681 * remote-st.c: Likewise.
10682
10683 2002-04-28 Andreas Schwab <schwab@suse.de>
10684
10685 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10686 linux-proc.o and gcore.o.
10687
10688 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10689
10690 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10691 code without frame pointers.
10692
10693 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10694
10695 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10696 ON_STACK is needed.
10697
10698 2002-04-26 Ben Elliston <bje@redhat.com>
10699
10700 * target.c (do_xfer_memory): Correct reference to the new option
10701 "trust-readonly-sections".
10702
10703 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10704
10705 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10706 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10707 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10708 vectors.
10709 (read_array_type): Record the fact that this array type is really a
10710 vector (i.e. are passed in by value).
10711
10712 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10713
10714 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10715 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10716 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10717 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10718 * alpha-linux-tdep.c: Include frame.h.
10719 (alpha_linux_sigcontext_addr): New function.
10720 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10721 alpha_linux_sigcontext_addr.
10722 * alpha-osf1-tdep.c: Include gdbcore.h.
10723 (alpha_osf1_sigcontext_addr): New function.
10724 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10725 alpha_osf1_sigcontext_addr.
10726 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10727 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10728
10729 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10730
10731 * stack.c (selected_frame_level):
10732 (select_frame): Do not set selected_frame_level.
10733 * frame.h (selected_frame_level): Delete declaration.
10734
10735 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10736
10737 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10738 convert_from_func_ptr-addr when AIX / PowerOpen.
10739
10740 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10741
10742 * valops.c (hand_function_call): Call
10743 generic_save_call_dummy_addr.
10744 * frame.h (generic_save_call_dummy_addr): Declare.
10745 * blockframe.c (struct dummy_frame): Add fields call_lo and
10746 call_hi.
10747 (generic_find_dummy_frame): Check for PC in range call_lo to
10748 call_hi instead of entry_point_address.
10749 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10750 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10751 (generic_save_call_dummy_addr): New function.
10752
10753 2002-04-24 David S. Miller <davem@redhat.com>
10754
10755 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10756 sparc_skip_prologue.
10757 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10758 information to find prologue when possible.
10759 (sparc_prologue_frameless_p): Call examine_prologue directly.
10760 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10761 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10762 second argument.
10763 (SKIP_PROLOGUE): Likewise.
10764
10765 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10766
10767 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10768 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10769 indicate that the condition it was testing is always true.
10770 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10771 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10772 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10773
10774 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10775
10776 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10777 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10778 tdep->jb_pc and tdep->jb_elt_size.
10779 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10780 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10781 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10782 * alpha-nat.c (get_longjmp_target): Remove.
10783 (JB_ELEMENT_SIZE): Ditto.
10784 (JB_PC): Ditto.
10785 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10786 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10787 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10788 to alpha_get_longjmp_target.
10789 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10790 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10791 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10792
10793 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10794
10795 * README: Update to GDB 5.2.
10796
10797 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10798
10799 * gdbarch.sh (LC_ALL): Set to `c'.
10800
10801 2002-04-25 Theodore A. Roth <troth@verinet.com>
10802
10803 * avr-tdep.c: Ran through gdb_indent.sh.
10804
10805 2002-04-25 Theodore A. Roth <troth@verinet.com>
10806
10807 * MAINTAINERS: Add myself as AVR maintainer.
10808 * NEWS: Note new target avr.
10809
10810 2002-04-25 Theodore A. Roth <troth@verinet.com>
10811
10812 * Makefile.in: Add support for AVR target.
10813 * configure.tgt: Add support for AVR target.
10814 * avr-tdep.c: New file
10815 * config/avr/avr.mt: New file.
10816
10817 2002-04-25 Theodore A. Roth <troth@verinet.com>
10818
10819 * MAINTAINERS: Add myself to write-after-approval.
10820
10821 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10822
10823 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10824 with fprintf_unfiltered (gdb_stderr,....
10825
10826 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10827
10828 Fix PR gdb/508.
10829 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10830
10831 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10832
10833 * p-exp.y: Also use new prev_lexptr variable
10834 to improve error reporting. Based on Michael Snyder
10835 2002-04-24 dated patch to c-exp.y.
10836
10837 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10838
10839 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10840 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10841 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10842 to 0.
10843 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10844 and struct value.
10845 (FUNCTION_START_OFFSET): Remove.
10846 (BREAKPOINT): Ditto.
10847
10848 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10849
10850 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10851 * NEWS: Ditto.
10852
10853 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10854
10855 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10856 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10857 alpha_linux_pc_in_sigtramp.
10858 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10859 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10860 alpha_osf1_pc_in_sigtramp.
10861 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10862 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10863 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10864 alphafbsd_pc_in_sigtramp.
10865 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10866 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10867 alphanbsd_pc_in_sigtramp.
10868 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10869 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10870
10871 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10872
10873 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10874
10875 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10876
10877 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10878 alphanbsd-tdep.c.
10879 (alphanbsd-nat.o): New dependency list.
10880 (alphanbsd-tdep.o): Ditto.
10881 * NEWS: Note new native NetBSD/alpha configuration.
10882 * alphanbsd-nat.c: New file.
10883 * alphanbsd-tdep.c: Ditto.
10884 * configure.host (alpha*-*-netbsd*): New host.
10885 * configure.tgt (alpha*-*-netbsd*): New target.
10886 * config/alpha/nbsd.mh: New file.
10887 * config/alpha/nbsd.mt: Ditto.
10888 * config/alpha/nm-nbsd.h: Ditto.
10889 * config/alpha/tm-nbsd.h: Ditto.
10890
10891 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10892
10893 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10894 (alpha-osf1-tdep.o): New dependency list.
10895 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10896 and skip_sigtramp_frame members.
10897 * alpha-linux-tdep.c: Include gdbcore.h.
10898 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10899 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10900 * alpha-osf1-tdep.c: New file.
10901 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10902 alpha-osf1-dep.c.
10903 (alpha_frame_past_sigtramp_frame): New function.
10904 (alpha_dynamic_sigtramp_offset): Ditto.
10905 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10906 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10907 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10908 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10909 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10910 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10911 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10912 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10913 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10914 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10915 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10916 to find_solib_trampoline_target.
10917 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10918 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10919 (SKIP_TRAMPOLINE_CODE): Remove.
10920 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10921 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10922 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10923 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10924 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10925 (PROC_SIGTRAMP_MAGIC): Ditto.
10926 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10927 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10928 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10929 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10930 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10931
10932 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10933
10934 * NEWS: Note that Alpha targets are now multi-arch.
10935
10936 2002-04-24 Michael Snyder <msnyder@redhat.com>
10937
10938 * parser-defs.h (prev_lexptr): New external variable.
10939 * parse.c (parse_exp_1): Set prev_lexptr to null before
10940 calling the language-specific parser.
10941 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10942 (yyerror): Use prev_lexptr in error reporting.
10943
10944 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10945
10946 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10947 * gregset.h: If FILL_FPXREGSET is defined, provide
10948 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10949 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10950 is defined, call fill_fpxregset.
10951
10952 2002-04-24 Roland McGrath <roland@frob.com>
10953
10954 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10955 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10956 (supply_gregset, supply_fpregset): New functions.
10957
10958 * gnu-nat.c (gnu_find_memory_regions): New function.
10959 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10960 (gnu_xfer_memory): Add a cast.
10961
10962 2002-04-24 Michael Snyder <msnyder@redhat.com>
10963
10964 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10965 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10966 of argument regs ("str r(0123), [r11, #-nn"]).
10967 (arm_skip_prologue): Better handling for frameless functions.
10968 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10969 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10970
10971 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10972
10973 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10974 NUM_PSEUDO_REGS can be used.
10975
10976 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10977
10978 * arch-utils.h: Update copyright.
10979
10980 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10981 * gdbarch.h, gdbarch.c: Re-generate.
10982
10983 * inferior.h (IN_SIGTRAMP): Delete definition.
10984 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10985 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10986
10987 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10988 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10989 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10990 (find_proc_framesize): Ditto.
10991 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10992 (alpha_init_extra_frame_info): Ditto.
10993 * infrun.c (handle_inferior_event): Ditto.
10994 (handle_inferior_event): Ditto.
10995 (check_sigtramp2): Ditto.
10996 * blockframe.c (create_new_frame): Ditto.
10997 (get_prev_frame): Ditto.
10998 * ppc-linux-tdep.c: Update comments.
10999 * i386-linux-tdep.c: Update comments.
11000 * breakpoint.c (bpstat_what): Update comment.
11001
11002 2002-04-24 David S. Miller <davem@redhat.com>
11003
11004 * i960-tdep.c (register_in_window_p): New function.
11005 (i960_find_saved_register): Use it instead of
11006 REGISTER_IN_WINDOW_P.
11007 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11008
11009 * symtab.h (find_stab_function_addr): Kill extern.
11010 * minsyms.c (find_stab_function_addr): Remove from here...
11011 * dbxread.c: ... to here, and mark it static.
11012
11013 2002-04-20 David S. Miller <davem@redhat.com>
11014
11015 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11016 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11017
11018 2002-04-21 David S. Miller <davem@redhat.com>
11019
11020 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11021 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11022 (vx_write_register): Likewise.
11023
11024 2002-04-23 J. Brobecker <brobecker@gnat.com>
11025
11026 * source.c (is_regular_file): New function.
11027 (openp): Check wether file to open is a regular file
11028 to avoid opening directories.
11029
11030 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11031
11032 * findvar.c (extract_signed_integer): Cast printf argument
11033 to suppress format warning.
11034 (extract_unsigned_integer): Likewise.
11035 * infcmd.c (registers_info): Likewise.
11036 * top.c (get_prompt_1): Likewise.
11037 * valops.c (value_assign): Likewise.
11038 * valprint.c (print_decimal): Likewise.
11039
11040 2002-04-22 H.J. Lu (hjl@gnu.org)
11041
11042 * c-exp.y (typebase): Support
11043
11044 [long|long long|short] [signed|unsigned] [int|]
11045
11046 and
11047
11048 signed [long|long long|short] int
11049
11050 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11051
11052 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11053 and vax-tdep.h.
11054 * vax-tdep.h: New file.
11055 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11056 Make several routines static.
11057 (vax_get_saved_register): New function.
11058 (vax_gdbarch_init): New function.
11059 (_initialize_vax_tdep): Register vax_gdbarch_init.
11060 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11061 Remove macros now under the control of gdbarch.
11062
11063 2002-04-22 Michael Snyder <msnyder@redhat.com>
11064
11065 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11066 Some whitespace and coding standards tweaks.
11067
11068 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11069
11070 * vax-tdep.c: Include regcache.h.
11071 (vax_call_dummy_words): New.
11072 (sizeof_vax_call_dummy_words): New.
11073 (vax_fix_call_dummy): New function.
11074 (vax_saved_pc_after_call): Ditto.
11075 * config/vax/tm-vax.h: Don't include regcache.h.
11076 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11077 (CALL_DUMMY): Remove.
11078 (CALL_DUMMY_WORDS): Define.
11079 (SIZEOF_CALL_DUMMY_WORDS): Define.
11080 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11081
11082 2002-04-18 Michael Snyder <msnyder@redhat.com>
11083
11084 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11085
11086 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11087
11088 * vax-tdep.c (vax_frame_chain): New function.
11089 (vax_push_dummy_frame): Ditto.
11090 (vax_pop_frame): Ditto.
11091 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11092 (FRAMELESS_FUNCTION_INVOCATION): Use
11093 generic_frameless_function_invocation_not.
11094 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11095 (POP_FRAME): Use vax_pop_frame.
11096
11097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11098
11099 * vax-tdep.c (vax_store_struct_return): New function.
11100 (vax_extract_return_value): Ditto.
11101 (vax_store_return_value): Ditto.
11102 (vax_extract_struct_value_address): Ditto.
11103 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11104 vax_store_struct_return.
11105 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11106 (STORE_RETURN_VALUE): Use vax_store_return_value.
11107 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11108
11109 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11110
11111 * vax-tdep.c (vax_frame_saved_pc): New function.
11112 (vax_frame_args_address_correct): Ditto.
11113 (vax_frame_args_address): Ditto.
11114 (vax_frame_locals_address): Ditto.
11115 (vax_frame_num_args): Move code to be in proximity to
11116 other frame-related functions.
11117 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11118 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11119 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11120 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11121 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11122
11123 2002-04-22 H.J. Lu (hjl@gnu.org)
11124
11125 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11126 includedir.
11127
11128 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11129
11130 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11131 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11132 (FRAME_INIT_SAVED_REGS): New macro.
11133
11134 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11135
11136 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11137
11138 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11139
11140 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11141 where needed.
11142 (fetch_osf_core_registers): Likewise.
11143 (supply_gregset): Likewise.
11144
11145 2002-04-22 J. Brobecker <brobecker@gnat.com>
11146
11147 * symfile.h (get_section_index): Define.
11148 * symfile.c (get_section_index): New function.
11149 * mdebugread.c (SC_IS_SBSS): New macro.
11150 (SC_IS_BSS): Return true for the scBss storage class only, as
11151 the scSBss storage class refers to the .sbss section.
11152 (parse_partial_symbols): Discard the symbols which associated
11153 section does not exist.
11154 Make sure to use the .sbss section index for symbols which
11155 storage class is scBss, rather than using the .bss section index.
11156
11157 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11158
11159 * vax-tdep.c: Update copyright years.
11160 (vax_register_name): New function.
11161 (vax_register_byte): Ditto.
11162 (vax_register_raw_size): Ditto.
11163 (vax_register_virtual_size): Ditto.
11164 (vax_register_virtual_type): Ditto.
11165 * config/vax/tm-vax.h: Update copyright years.
11166 (REGISTER_NAMES): Remove.
11167 (REGISTER_NAME): Define.
11168 (REGISTER_BYTE): Use vax_register_byte.
11169 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11170 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11171 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11172
11173 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11174
11175 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11176 declaration
11177 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11178
11179 2002-04-21 David S. Miller <davem@redhat.com>
11180
11181 * arch-utils.c (generic_prologue_frameless_p): Kill
11182 SKIP_PROLOGUE_FRAMELESS_P code.
11183 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11184 references.
11185 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11186 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11187 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11188 references.
11189 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11190 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11191 (sparc_gdbarch_init): Pass it to
11192 set_gdbarch_prologue_frameless_p.
11193
11194 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11195
11196 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11197 (alphabsd-nat.o): New dependency list.
11198
11199 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11200
11201 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11202 alphafbsd-tdep.c.
11203 (alpha-linux-tdep.o): New dependency list.
11204 (alphafbsd-tdep.o): Likewise.
11205
11206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11207
11208 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11209 to here...
11210 * alpha-tdep.c: ...from here.
11211 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11212
11213 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11214
11215 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11216 prototype from here...
11217 * alpha-tdep.h: ...to here.
11218
11219 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11220
11221 * frame.h (selected_frame_level): Document as deprecated.
11222 (frame_relative_level): Declare.
11223 * stack.c (frame_relative_level): New function.
11224 (selected_frame_level): Document as deprecated.
11225 (select_frame): Do not set the selected_frame_level.
11226
11227 * stack.c (frame_info, record_selected_frame): Update.
11228 (frame_command, current_frame_command): Update.
11229 (up_silently_base, up_command, down_silently_base): Update.
11230 (down_command): Update.
11231 * inflow.c (kill_command): Update.
11232 * tracepoint.c (finish_tfind_command): Update.
11233 * corelow.c (core_open): Update.
11234 * thread.c (info_threads_command): Update.
11235 (do_captured_thread_select): Update.
11236 * infcmd.c (finish_command): Update.
11237 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11238
11239 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11240
11241 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11242
11243 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11244
11245 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11246 type const.
11247
11248 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11249
11250 * alphafbsd-tdep.c: Update copyright years. Include
11251 alpha-tdep.h.
11252 (alphafbsd_use_struct_convention): Make static.
11253 (alphafbsd_init_abi): New function.
11254 (_initialize_alphafbsd_tdep): New function.
11255 * config/alpha/tm-fbsd.h: Update copyright years.
11256 (USE_STRUCT_CONVENTION): Remove.
11257
11258 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11259
11260 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11261 an Alpha ABI variant.
11262 (alpha_abi_handler_list): Declare.
11263 (alpha_gdbarch_register_os_abi): New function.
11264 (alpha_gdbarch_init): Give registered ABI variant handlers a
11265 chance to tweak the gdbarch once we have set up defaults.
11266 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11267
11268 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11269
11270 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11271 to standard_coerce_float_to_double.
11272 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11273
11274 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11275
11276 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11277 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11278 from gdbarch_tdep rather than a constant.
11279 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11280 the default text address for all Alpha Unix ABIs.
11281 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11282 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11283
11284 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11285
11286 * alpha-tdep.h: New file. Includes several Alpha target constants
11287 taken from...
11288 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11289 let gdbarch deal with.
11290 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11291 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11292 to dependency list.
11293 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11294 Alpha target register names.
11295 * alphabsd-nat.c: Likewise.
11296 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11297 Alpha target register names. Make serveral routines static.
11298 (alpha_get_saved_register): New function.
11299 (alpha_abi_names): New.
11300 (process_note_abi_tag_sections): New function.
11301 (get_elfosabi): New function.
11302 (alpha_gdbarch_init): New function.
11303 (alpha_dump_tdep): New function.
11304 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11305
11306 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11307
11308 * frame.c (find_saved_register): Delete #ifdef
11309 HAVE_REGISTER_WINDOWS code.
11310 * config/sparc/tm-sparc.h: Update comments.
11311 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11312
11313 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11314
11315 * i960-tdep.c (i960_find_saved_register): New function.
11316 (i960_get_saved_register): New function.
11317 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11318 (i960_get_saved_register): Declare.
11319 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11320
11321 2002-04-20 David S. Miller <davem@redhat.com>
11322
11323 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11324
11325 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11326
11327 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11328 instead of NUM_PSEUDO_REGS.
11329
11330 2002-04-20 David S. Miller <davem@redhat.com>
11331
11332 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11333 GDB_MULTI_ARCH_PARTIAL
11334 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11335 define, let tm-sp64.h do it.
11336
11337 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11338
11339 * frame.c (find_saved_register): Avoid a NULL pointer
11340 dereference and actually walk the frame list.
11341
11342 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11343
11344 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11345 sorted in most most-recent-used order. Document.
11346 * gdbarch.h, gdbarch.c: Regenerate.
11347
11348 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11349
11350 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11351 instead of ->prev.
11352 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11353 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11354 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11355 instead of ->prev.
11356
11357 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11358
11359 Fix PR gdb/471.
11360 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11361 (build_builtin_type_vec128): Ditto.
11362 (append_composite_type_field): Fix calculation of type length in
11363 union case.
11364
11365 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11366
11367 * config/djgpp/README: Update.
11368
11369 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11370 compiler warnings.
11371
11372 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11373
11374 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11375 (alpha_setup_arbitrary_frame): ...to this.
11376 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11377 for alpha_setup_arbitrary_frame.
11378
11379 2002-04-18 Andrew Cagney <cagney@redhat.com>
11380
11381 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11382 * gdbarch.h, gdbarch.c: Regenerate.
11383
11384 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11385 * target.h (memory_breakpoint_from_pc): Update declaration.
11386 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11387
11388 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11389 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11390 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11391 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11392 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11393 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11394 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11395 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11396 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11397 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11398 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11399 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11400
11401 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11402 const pointer.
11403 * monitor.c (monitor_insert_breakpoint): Ditto.
11404 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11405
11406 * config/mcore/tm-mcore.h: Update copyright.
11407 * mem-break.c: Ditto.
11408 * xstormy16-tdep.c: Ditto.
11409
11410 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11411
11412 * p-exp.y: Add precedence rule for '^' token.
11413 This removes the shift/reduce conflicts.
11414 Remove the comment concerning these shift/reduce conflicts.
11415
11416 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11417
11418 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11419 (registers_powerpc_nofp): New register set for processors
11420 without floating point unit.
11421
11422 2002-04-18 David S. Miller <davem@redhat.com>
11423
11424 * MAINTAINERS: Add myself to write-after-approval.
11425
11426 2002-04-17 Michael Snyder <msnyder@redhat.com>
11427
11428 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11429
11430 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11431
11432 * rs6000-tdep.c (frame_initial_stack_address): Use
11433 frame_register_read to read the alloca_reg.
11434
11435 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11436
11437 * frame.c (find_saved_register): Find saved registers in the next
11438 not prev frame.
11439 Fix PR gdb/365.
11440
11441 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11442
11443 * gdbarch.sh (LANG): Set to ``c''.
11444
11445 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11446
11447 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11448
11449 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11450
11451 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11452 Update copyright.
11453
11454 * hpread.c (hpread_get_lntt): Add declaration.
11455 Also fix PR gdb/391.
11456
11457 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11458
11459 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11460 * aclocal.m4, configure: Re-generate.
11461 Fix PR gdb/391.
11462
11463 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11464
11465 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11466 instead of tm_print_insn.
11467
11468 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11469
11470 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11471
11472 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11473
11474 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11475 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11476 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11477
11478 2002-04-12 Don Howard <dhoward@redhat.com>
11479
11480 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11481 max_user_call_depth.
11482 (init_cmd_lists): Initialize the new value;
11483 * cli/cli-script.c (execute_user_command): Limit the call depth of
11484 user defined commands. This avoids a core-dump when user commands
11485 are infinitly recursive.
11486
11487 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11488
11489 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11490 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11491 from tdep struct instead of DEFAULT_LR_SAVE.
11492 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11493 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11494 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11495
11496 2002-04-12 Michael Snyder <msnyder@redhat.com>
11497
11498 * Remote.c: Spelling fix.
11499 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11500 If no symbol found for "sbrk", try "_sbrk".
11501 (make_output_phdrs): Use bfd_section_name.
11502 (gcore_copy_callback): Use bfd_section_name.
11503 * eval.c: Indentation fix-ups.
11504 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11505 in case it gets applied to an address that is already
11506 in the instruction space.
11507 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11508 * symfile.c: Fix indentation, long lines.
11509 * source.c: White space fix-up.
11510
11511 2002-04-12 Andrew Cagney <cagney@redhat.com>
11512
11513 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11514 * frame.c (frame_register_read): New function. Return non-zero on
11515 success.
11516 (read_relative_register_raw_bytes_for_frame): Delete.
11517 (read_relative_register_raw_bytes): Delete.
11518 * frame.h (frame_register_read): Declare.
11519 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11520 * sh-tdep.c: Ditto.
11521 * infcmd.c (do_registers_info): Ditto.
11522 * hppa-tdep.c: Ditto.
11523 * rs6000-tdep.c: Ditto.
11524 * h8500-tdep.c: Ditto.
11525 * mips-tdep.c: Ditto.
11526 * h8300-tdep.c: Ditto.
11527 * z8k-tdep.c: Ditto.
11528
11529 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11530
11531 From Jimi X <jimix@watson.ibm.com>:
11532 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11533 64-bit SysV ABI.
11534
11535 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11536
11537 From Jimi X <jimix@watson.ibm.com>:
11538 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11539 bfd info.
11540
11541 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11542
11543 From Jimi X <jimix@watson.ibm.com>:
11544 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11545 register sets for these processor variants.
11546
11547 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11548
11549 * regformats/reg-ppc.dat: Support FPSCR.
11550
11551 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11552
11553 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11554 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11555 Add fpscr as an invalid/unfetchable register.
11556 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11557 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11558 (fill_fpregset): Add support for register fpscr.
11559 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11560 (fill_gregset): Account for the fact that register ``mq'' might
11561 not exist.
11562 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11563 (registers_power): Add fpscr to register set at slot 71.
11564 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11565 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11566
11567 2002-04-11 Michael Snyder <msnyder@redhat.com>
11568
11569 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11570 * configure: Regenerate.
11571 * config.in: Regenerate.
11572 * acconfig.h: Add define for _SYSCALL32.
11573 * core-sol2.c: Remove #define _SYSCALL32.
11574 * solib-legacy.c: Remove #define _SYSCALL32.
11575
11576 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11577
11578 * stack.c (select_frame): Cleanup internal error message, do not
11579 use %p.
11580
11581 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11582
11583 * stack.c (select_frame): Check that selected_frame and the
11584 specified level are as expected.
11585 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11586 Update copyright.
11587 * frame.h (struct frame_info): Add field `level'. Update
11588 copyright.
11589 Work-in-progress PR gdb/464.
11590
11591 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11592
11593 * maint.c (maint_print_section_info): Rename print_section_info.
11594 (print_bfd_section_info, print_objfile_section_info): Update.
11595 * inferior.h (struct gdbarch): Add opaque declaration.
11596 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11597 * gdbarch.h: Regenerate.
11598
11599 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11600
11601 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11602 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11603 (kernel_u_size): Added.
11604 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11605 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11606
11607 2002-04-04 Jim Ingham <jingham@apple.com>
11608
11609 * valarith.c (find_size_for_pointer_math): New function, either returns
11610 the size for a pointer's target, returns 1 for void *, or errors for
11611 incomplete types.
11612 (value_add, value_sub): use find_size_for_pointer_math.
11613
11614 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11615
11616 * linux-low.c (linux_look_up_symbols): New hook.
11617 (linux_target_ops): Add linux_look_up_symbols.
11618 * remote-utils.c (decode_address): New function.
11619 (look_up_one_symbol): New function.
11620 * server.c (handle_query): Call target look_up_symbols hook.
11621 * server.h (look_up_one_symbol): Add prototype.
11622 * target.h (struct target_ops): Add look_up_symbols hook.
11623
11624 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11625
11626 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11627 override FP_REGNUM with frame->fp. Update copyright.
11628 * parse.c (num_std_regs, std_regs): Delete.
11629 (target_map_name_to_register): Do not search std_regs. Update
11630 function description.
11631 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11632 declarations. Update copyright.
11633 Fix PR gdb/251.
11634
11635 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11636
11637 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11638 after the last symbol in a block.
11639
11640 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11641
11642 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11643 is non zero as a found symbol.
11644
11645 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11646
11647 * findvar.c: Include "builtin-regs.h".
11648 (value_of_register): Call value_of_builtin_reg when applicable.
11649 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11650 (target_map_name_to_register): Call
11651 builtin_reg_map_name_to_regnum.
11652 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11653 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11654 (builtin_regs_h): Define.
11655 (builtin-regs.o): New target.
11656 (findvar.o): Add $(builtin_regs_h).
11657 * builtin-regs.c, builtin-regs.h: New files.
11658 * std-regs.c: New file.
11659 Partial fix for PR gdb/251.
11660
11661 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11662
11663 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11664 it's no longer required.
11665
11666 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11667
11668 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11669
11670 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11671
11672 From Jimi X <jimix@watson.ibm.com>:
11673 * rs6000-tdep.c (rs6000_software_single_step): Use
11674 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11675 and size. Use target_insert_breakpoint() and
11676 target_remove_breakpoint() to insert and remove breakpoints
11677 instead of explicit memory reads and writes.
11678
11679 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11680
11681 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11682 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11683 ELF_OBJECT_FORMAT ifdef.
11684
11685 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11686
11687 From Jimi X <jimix@watson.ibm.com>:
11688 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11689
11690 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11691
11692 From Jimi X <jimix@watson.ibm.com>:
11693 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11694 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11695
11696 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11697
11698 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11699 s/asprintf/xasprintf/.
11700 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11701
11702 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11703
11704 I believe Jeff Law denies responsability for this one:
11705 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11706 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11707 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11708 Work-around for PR gdb/366.
11709
11710 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11711
11712 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11713 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11714 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11715
11716 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11717
11718 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11719 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11720 information.
11721
11722 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11723
11724 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11725 maintainer.
11726
11727 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11728
11729 * README (Reporting Bugs in GDB): Document the bug web page as the
11730 prefered way of submitting bugs.
11731 Fix PR gdb/402.
11732
11733 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11734
11735 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11736 -1. Update comment.
11737 * gdbarch.h, gdbarch.c: Re-generate.
11738
11739 2002-04-07 Andreas Schwab <schwab@suse.de>
11740
11741 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11742 buffer to regcache_collect.
11743
11744 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11745
11746 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11747 * gdbarch.c, gdbarch.h: Re-generate.
11748
11749 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11750
11751 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11752 declaration. Fix -Werror.
11753
11754 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11755
11756 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11757 * gdbarch.c: Regenerate.
11758
11759 2002-04-05 Michael Snyder <msnyder@redhat.com>
11760
11761 * breakpoint.c (clear_command): Rewrite middle section to
11762 combine two loops with identical control conditions.
11763 Add a cleanup to eliminate a memory leak.
11764 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11765
11766 2002-04-05 H.J. Lu (hjl@gnu.org)
11767
11768 * solib-svr4.c (bkpt_names): Add "__start".
11769
11770 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11771
11772 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11773 as test for 64 bit target.
11774
11775 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11776
11777 * h8500-tdep.c (h8500_write_fp): Delete function.
11778 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11779 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11780 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11782 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11783 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11784 (s390_write_fp):
11785 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11786 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11787 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11788 (d10v_write_fp): Delete function.
11789 * inferior.h (write_fp, generic_target_write_fp): Delete
11790 declarations.
11791 * regcache.c (generic_target_write_fp): Delete function.
11792 (write_fp): Delete function.
11793 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11794 * gdbarch.h, gdbarch.c: Regenerate.
11795 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11796 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11797 (sparc64_write_fp): Delete declaration.
11798 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11799 (h8500_write_fp): Delete declaration.
11800
11801 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11802
11803 * sparc-tdep.c (sparc64_write_fp): Delete.
11804 (sparc_push_dummy_frame): Replace write_fp call with code to store
11805 the FP directly.
11806 (sparc_gdbarch_init): Do not initialize write_fp.
11807
11808 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11809
11810 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11811 clause.
11812
11813 2002-03-29 Jim Blandy <jimb@redhat.com>
11814
11815 * stack.c (get_selected_block): Add new argument `addr_in_block',
11816 used to return the exact code address we used to select the block,
11817 not just the block.
11818 * blockframe.c (get_frame_block, get_current_block): Same.
11819 * frame.h (get_frame_block, get_current_block,
11820 get_selected_block): Update declarations.
11821 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11822 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11823
11824 2002-04-05 Michael Snyder <msnyder@redhat.com>
11825
11826 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11827 warning message.
11828
11829 2002-04-05 J. Brobecker <brobecker@gnat.com>
11830
11831 * utils.c (xfullpath): New function.
11832 * defs.h (xfullpath): Add declaration.
11833 * source.c (openp): Use xfullpath in place of gdb_realpath to
11834 avoid resolving the basename part of filenames when the
11835 associated file is a symbolic link. This fixes a potential
11836 inconsistency between the filenames known to GDB and the
11837 filenames it prints in the annotations.
11838 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11839 to be able to match a filename with either the real filename, or
11840 the name of any symbolic link to this file.
11841 (lookup_partial_symtab): Ditto.
11842
11843 2002-04-04 Michael Snyder <msnyder@redhat.com>
11844
11845 * breakpoint.c: Add support for hardware breakpoints in overlays.
11846 (overlay_events_enabled): New state variable.
11847 (insert_breakpoints): Use overlay_events_enabled to decide
11848 whether to attempt to set a breakpoint at the overlay load addr.
11849 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11850 (remove_breakpoint): Use overlay_events_enabled to decide
11851 whether breakpoints need to be removed from overlay load addr.
11852 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11853 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11854 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11855 disable_overlay_breakpoints): Update overlay_events_enabled.
11856
11857 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * dwarf2read.c (struct function_range): New.
11860 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11861 (check_cu_functions): New.
11862 (read_file_scope): Initialize global function lists.
11863 Call dwarf_decode_line after processing children.
11864 (read_func_scope): Add to global function list.
11865 (dwarf_decode_lines): Call check_cu_functions everywhere
11866 record_line is called. Call record_line with a linenumber
11867 of 0 to mark sequence ends.
11868
11869 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11870
11871 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11872 change sync with glibc.
11873
11874 2002-04-03 Jim Blandy <jimb@redhat.com>
11875
11876 * configure.in: Call AC_C_INLINE.
11877 * configure: Regenerated.
11878
11879 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11880
11881 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11882 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11883
11884 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11885
11886 * NEWS: Mention gcore support on FreeBSD/i386.
11887
11888 * fbsd-proc.c: New file.
11889 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11890 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11891
11892 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11893 while statement.
11894
11895 2002-03-29 Jim Blandy <jimb@redhat.com>
11896
11897 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11898 unescaped newlines in string literals, but newer ones don't. So
11899 escape them.
11900
11901 2002-03-26 Michael Snyder <msnyder@redhat.com>
11902 Andrew Cagney <cagney@redhat.com>
11903
11904 * cli/cli-dump.c: New file. Dump memory to file,
11905 restore file to memory.
11906 * cli/cli-dump.h: New file.
11907 * Makefile.in: Add rules, dependencies for cli-dump.o.
11908 * NEWS: Mention new commands.
11909
11910 2002-03-28 Michael Snyder <msnyder@redhat.com>
11911
11912 * symfile.c (symbol_file_add): Move test for null symbols to later.
11913
11914 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11915
11916 From veksler at il.ibm.com:
11917 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11918 the xstrduped original path.
11919 Fix PR gdb/417.
11920
11921 2002-03-27 Michael Snyder <msnyder@redhat.com>
11922
11923 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11924 * infcmd.c (_initialize_infcmd): Ditto.
11925 * language.c (_initialize_language): Ditto.
11926 * symfile.c (_initialize_symfile): Ditto.
11927 * top.c (_init_main): Ditto.
11928 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11929
11930 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11931
11932 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11933 vector registers handling.
11934 (skip_prologue): Handle new AltiVec instructions. Fill in new
11935 fields of frame data.
11936 (frame_get_saved_regs): Fill in information for AltiVec registers.
11937
11938 2002-03-27 Jim Blandy <jimb@redhat.com>
11939
11940 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11941 a function; leave this macro here to invoke that function.
11942 (symbol_init_mangled_name): Declaration for that function.
11943 * symtab.c (symbol_init_mangled_name): New function.
11944
11945 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11946
11947 * valarith.c: Replace strerror with safe_strerror.
11948 * tracepoint.c: Ditto.
11949 * lin-lwp.c: Ditto.
11950 * go32-nat.c: Ditto.
11951 * inflow.c: Ditto.
11952 * gnu-nat.c: Ditto.
11953
11954 2002-03-27 Andreas Schwab <schwab@suse.de>
11955
11956 * event-top.c (command_line_handler): Remove useless if.
11957
11958 2002-03-27 Andreas Jaeger <aj@suse.de>
11959
11960 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11961 comment.
11962
11963 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11964
11965 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11966 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11967 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11968 (x86_64_linux_dr_get_status, supply_gregset),
11969 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11970 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11971 (x86_64_register_info_table): Add.
11972 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11973 (x86_64_register_raw_size, x86_64_register_virtual_type),
11974 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11975 general x86_64_register_info_table.
11976 (i386_gdbarch_init): gdbarch_register_bytes is now set
11977 dynamicaly during initialization.
11978 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11979 * gdbserver/linux-x86-64-low.c: Ditto.
11980
11981 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11982
11983 * gdbserver/server.c (main): Call target_signal_to_host_p
11984 and target_signal_to_host on signals received from the remote.
11985 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11986 target_signal_from_host on signals sent to the remote.
11987 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11988 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11989
11990 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11991
11992 * signals/signals.c: Include "server.h" in gdbserver build.
11993 (target_signal_from_name): Don't use STREQ.
11994 (_initialize_signals): Likewise. Don't include function in
11995 gdbserver build.
11996
11997 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * signals.c: Moved to...
12000 * signals/signals.c: Here.
12001 * Makefile (signals.o): Update.
12002
12003 2002-03-26 Jeff Law (law@redhat.com)
12004
12005 * somread.c (som_symtab_read): Remove some commented out code and
12006 updated related comments. Do not set the minimal symbol table to
12007 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12008 in a dynamic executable.
12009 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12010 where we are unable to find the minimal symbol for the given
12011 PC value.
12012
12013 2002-03-25 Jeff Law (law@redhat.com)
12014
12015 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12016
12017 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12018
12019 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12020
12021 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12022
12023 * command.h: Update copyright.
12024 (struct cmd_list_element): Replace definition with opaque
12025 declaration.
12026 (enum cmd_types): Document that it will eventually be moved to
12027 cli/cli-decode.h
12028 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12029 (MALLOCED_REPLACEMENT): Delete macro.
12030 * Makefile.in (cli_decode_h): Add $(command_h).
12031 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12032 * top.c: Include "cli/cli-decode.h".
12033 * completer.c: Include "cli/cli-decode.h".
12034 * maint.c: Include "cli/cli-decode.h".
12035 * cli/cli-decode.h: Include "command.h".
12036 (enum command_class): Delete.
12037 (enum cmd_types): Comment out.
12038 (enum cmd_auto_boolean): Delete.
12039 (enum var_types): Delete.
12040
12041 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12042
12043 * cli/cli-decode.c: Include "gdb_assert.h".
12044 (add_set_or_show_cmd): New static function.
12045 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12046 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12047 all fields, such as func, from the set command.
12048
12049 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12050
12051 * MAINTAINERS (sh-elf): Change warning flag to -w.
12052
12053 2002-03-23 Andrew Cagney <cagney@redhat.com>
12054
12055 * defs.h (error): Add printf format attribute.
12056 * thread-db.c (thread_from_lwp): Fix error format string.
12057 * stack.c (parse_frame_specification): Ditto.
12058 * cli/cli-decode.c (undef_cmd_error): Ditto.
12059 * scm-lang.c (scm_lookup_name): Ditto.
12060 * tracepoint.c (trace_error): Ditto.
12061 * remote-utils.c (usage): Ditto.
12062 * remote.c (compare_sections_command): Ditto.
12063 Fix PR gdb/328.
12064
12065 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12066
12067 * gdbtypes.c (append_composite_type_field): New function.
12068 (init_composite_type): New function.
12069 * gdbtypes.h (append_composite_type_field): Declare.
12070 (init_composite_type): Ditto.
12071
12072 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12073
12074 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12075 function.
12076 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12077 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12078 structure returning convention for SYSV ABI case, but not
12079 for GNU/Linux, FreeBSD, or NetBSD.
12080
12081 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12082
12083 * symtab.h (lookup_block_symbol): Add mangled_name argument
12084 to prototype.
12085
12086 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12087 with new mangled_name argument.
12088 * linespec.c (decode_line_1): Likewise.
12089 * valops (value_of_this): Likewise.
12090 * symtab.c (lookup_transparent_type): Likewise.
12091 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12092 (lookup_symbol): If we are given a mangled name, pass it down
12093 to lookup_symbol_aux.
12094 (lookup_block_symbol): If we are given a mangled name to check
12095 against, only return symbols which match it.
12096
12097 2002-03-22 Christopher Faylor <cgf@redhat.com>
12098
12099 * win32-nat.c (child_create_inferior): Check for proper shell to use
12100 here, in case the user changes it on the fly.
12101 (_initialize_inftarg): Remove shell path considerations.
12102
12103 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12104
12105 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12106 for gdbarch_max_register_raw_size and max_register_virtual_size.
12107 Adjust copyright year.
12108
12109 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12110
12111 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12112 in a function to cover the entire beginning of the function
12113 as well if it does not already.
12114
12115 2002-03-21 Tom Rix <trix@redhat.com>
12116
12117 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12118 (rs6000_ptrace64): Renamed from ptrace64.
12119
12120 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12121
12122 * gdbserver/remote-utils.c (remote_open): Don't call
12123 getprotobyname, we're all using TCP here so just use
12124 IPPROTO_TCP.
12125 * gdbserver/gdbreplay.c (remote_open): Ditto.
12126
12127 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12128
12129 * regcache.c (_initialize_regcache): No need to call
12130 build_regcache() at this time; it gets called whenever
12131 the gdbarch changes.
12132
12133 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12134
12135 * sparc-nat.c: Include sys/param.h where possible.
12136
12137 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12138
12139 Fix PR gdb/422.
12140 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12141 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12142 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12143 complex types.
12144 * stabsread.c (rs6000_builtin_type): Likewise.
12145 (read_sun_floating_type): Likewise.
12146
12147 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12148
12149 * stabsread.c (read_member_functions): Remove skip code for duplicate
12150 constructor/destructor methods. Use standard parsing for these
12151 methods and just do not chain them to the list of methods after
12152 parsing.
12153
12154 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12155
12156 * coffread.c: Remove redundant static declarations. Replace
12157 occurrences of `PTR' with `void *'.
12158 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12159 * top.h (quit_cover): Likewise.
12160 * defs.h (catch_errors): Likewise.
12161
12162 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12163
12164 * defs.h (XMALLOC): Define.
12165 * gdb-events.sh (XMALLOC): Delete macro.
12166 * gdb-events.c, gdb-events.h: Regenerate.
12167 * gdbarch.sh (XMALLOC): Delete macro.
12168 * gdbarch.c: Regenerate.
12169 * serial.c (XMALLOC): Delete macro.
12170 * ui-file.c (XMALLOC): Ditto.
12171 * ser-unix.h (XMALLOC): Ditto.
12172 * sh-tdep.c (XMALLOC): Ditto.
12173 * ui-out.c (XMALLOC): Ditto.
12174 * utils.c (XMALLOC): Ditto.
12175 * i386-tdep.c (XMALLOC): Ditto.
12176 * gdb-events.c (XMALLOC): Ditto.
12177 * d10v-tdep.c (XMALLOC): Ditto.
12178 * cli-out.c (XMALLOC): Ditto.
12179
12180 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12181 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12182 * ui-file.c, ui-out.c: Ditto.
12183
12184 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12185
12186 * command.h (struct cmd_list_element): Add field context.
12187 (set_cmd_context, get_cmd_context): Declare.
12188 * cli/cli-decode.h: Ditto.
12189 * cli/cli-decode.c (get_cmd_context): New function.
12190 (set_cmd_context): New function.
12191 (add_cmd): Initialize context.
12192 Part of fixing PR gdb/145 and PR gdb/146.
12193
12194 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12195
12196 * cli/cli-decode.c (cmd_type): New function.
12197 * command.h (cmd_type): Declare.
12198 * infrun.c (set_schedlock_func): Call function cmd_type.
12199 * kod.c (kod_set_os): Call cmd_type.
12200 * cris-tdep.c (cris_version_update): Use function cmd_type.
12201 (cris_mode_update, cris_abi_update): Ditto.
12202
12203 * command.h: (execute_cmd_post_hook): Declare.
12204 (execute_cmd_pre_hook): Declare.
12205 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12206 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12207 functions. Execute pre/post hook while ensuring that afterwords
12208 hook_in is cleared.
12209 * top.c (execute_command): Use execute_cmd_post_hook, and
12210 execute_cmd_pre_hook to execute pre/post commands.
12211 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12212 hook_stop_stub.
12213 (hook_stop_stub): Call execute_cmd_pre_hook.
12214
12215 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12216
12217 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12218 set'' and this leads to a core dump. Move xstrdup of
12219 operating_system to after check that it is not NULL.
12220
12221 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12222
12223 * kod.c (kod_set_os): Remove unnecessary check that
12224 ``command->type'' is set_cmd.
12225
12226 * valprint.c (set_input_radix): Use input_radix.
12227 (set_output_radix): Use output_radix.
12228 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12229 isn't reverted.
12230
12231 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12232
12233 * value.h (struct value): Delete field ``substring_addr''. Change
12234 aligner fields to force_doublest_align, force_longest_align,
12235 force_core_addr_align and force_pointer_aligh.
12236
12237 * value.h (struct value): Fix typo in above change.
12238
12239 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12240
12241 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12242 to fix internal_error from ``maintenance print architecture''.
12243
12244 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12245
12246 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12247 for gcc versions after gcc-2.8.1.
12248
12249 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12250
12251 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12252 for method resolution. Restore adjustment of ``this'' pointer after
12253 calling value_struct_elt, which was accidentally removed during the
12254 HP merge.
12255
12256 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12257
12258 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12259 value_of_register.
12260 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12261 get_saved_register.
12262 * value.h (value_of_register): Update.
12263
12264 2002-03-14 Richard Henderson <rth@redhat.com>
12265
12266 * configure.in: Detect declaration for canonicalize_file_name.
12267 * utils.c (canonicalize_file_name): Declare, if needed.
12268 (gdb_realpath): Prefer realpath if available and usable.
12269 * config.in, configure: Rebuild.
12270
12271 2002-03-14 Richard Henderson <rth@redhat.com>
12272
12273 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12274 a constant array bound.
12275
12276 * MAINTAINERS: Add myself to write-after-approval.
12277
12278 2002-03-14 Michael Snyder <msnyder@redhat.com>
12279
12280 * symfile.c (syms_from_objfile): Return immediately if no syms.
12281 (symbol_file_add): Return immediately if no syms.
12282 (find_sym_fns): Return immediately if no syms.
12283
12284 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12285
12286 * gdbserver/remote-util.c (remote_open): Print remote-side's
12287 IP address when remote debugging over the network.
12288
12289 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12290
12291 * config/sparc/fbsd.mh: Fix copyright.
12292 * config/sparc/fbsd.mt: Likewise.
12293
12294 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12295
12296 * MAINTAINERS: Fix typo in name of gdb warnings option.
12297 (x86-64): Fix formating so that this can be parsed by awk.
12298
12299 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12302 * defs.h: Include "gdb/signals.h".
12303 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12304
12305 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12306
12307 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12308 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12309 from x86-64-tdep.h
12310
12311 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12312 Don Howard <dhoward@redhat.com>
12313
12314 * mips-tdep.c (ST0_FR): Define.
12315 (mips2_fp_compat): New function, temporarily disabled.
12316 (mips_read_fp_register_single): New function.
12317 (mips_read_fp_register_double): New function.
12318 (mips_print_register): Use them.
12319 (do_fp_register_row): Likewise.
12320
12321 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12322
12323 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12324 approval''.
12325
12326 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12327
12328 * stabsread.c (read_member_functions): Fix is_stub test for
12329 static member functions, improve comment.
12330
12331 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12332
12333 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12334 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12335 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12336 commands that set boolean values.
12337 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12338 (arm_rdi_resume): Always initialize PC.
12339 (arm_rdi_open): Don't use rslt as a boolean.
12340 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12341 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12342 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12343 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12344
12345 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12346
12347 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12348 * configure: Rebuilt.
12349
12350 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12351
12352 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12353 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12354
12355 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12356
12357 * cli/cli-decode.c (set_cmd_completer): New function.
12358 * command.h (set_cmd_completer): Declare.
12359 * cli/cli-decode.h (set_cmd_completer): Ditto.
12360
12361 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12362 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12363 * win32-nat.c (_initialize_inftarg): Ditto.
12364 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12365 * proc-api.c (_initialize_proc_api): Ditto.
12366 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12367 * source.c (_initialize_source): Ditto.
12368 * exec.c (_initialize_exec): Ditto.
12369 * solib.c (_initialize_solib): Ditto.
12370 * top.c (init_main): Ditto.
12371 * tracepoint.c (_initialize_tracepoint): Ditto.
12372 * symfile.c (_initialize_symfile): Ditto.
12373 * printcmd.c (_initialize_printcmd): Ditto.
12374 * infcmd.c (_initialize_infcmd): Ditto.
12375 * corefile.c (_initialize_core): Ditto.
12376
12377 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12378
12379 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12380
12381 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12382
12383 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12384
12385 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12386
12387 * NEWS: Update headings, 5.2 has branched.
12388
12389 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12390
12391 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12392 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12393 (register_addr, REGISTER_RAW_SIZE): Likewise.
12394 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12395 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12396
12397 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12398
12399 * MAINTAINERS (x86-64): Add myself.
12400 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12401 changed value_ptr -> struct value *
12402
12403 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12404
12405 * configure.host (sparc64-*-freebsd): Add.
12406 * configure.tgt: Likewise.
12407 * config/sparc/fbsd.mh: New file.
12408 * config/sparc/fbsd.mt: Likewise.
12409 * config/sparc/nm-fbsd.h: Likewise.
12410 * config/sparc/tm-fbsd.h: Likewise.
12411
12412 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12413
12414 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12415 regformats/reg-s390x.dat.
12416
12417 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12418
12419 * utils.c: Add FIXME explaining true/false problem.
12420
12421 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12422
12423 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12424
12425 2002-02-28 Michael Chastain <mec@shout.net>
12426
12427 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12428
12429 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12430
12431 * gdbserver/linux-s390-low.c: New file.
12432 * regformats/reg-s390.dat: New file.
12433 * regformats/reg-s390x.dat: New file.
12434 * gdbserver/configure.srv: Add S/390.
12435 * gdbserver/Makefile.in: Add S/390.
12436 * configure.tgt: Enable gdbserver for S/390.
12437
12438 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12439
12440 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12441 first line of the doc string for "info dos", except at the end of
12442 the sentence, since the short help stops at the first period.
12443
12444 2002-02-28 Jason Merrill <jason@redhat.com>
12445
12446 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12447
12448 2002-02-27 Fred Fish <fnf@redhat.com>
12449
12450 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12451 comment (dumy -> dummy).
12452
12453 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12454
12455 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12456
12457 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12458
12459 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12460
12461 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12462
12463 * gdbserver/acconfig.h: New file.
12464 * gdbserver/i387-fp.c: New file.
12465 * gdbserver/i387-fp.h: New file.
12466 * gdbserver/linux-x86-64.c: New file.
12467 * regformats/reg-x86-64.dat: New file.
12468 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12469 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12470 * gdbserver/configure.in: Add support for regsets.
12471 * gdbserver/config.in: Regenerate.
12472 * gdbserver/configure: Regenerate.
12473 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12474 * gdbserver/linux-low.h: New file.
12475 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12476 for regsets.
12477 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12478 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12479 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12480 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12481 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12482 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12483 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12484 "i387-fp.h". Add PTRACE_GETREGS and friends.
12485 * gdbserver/regcache.c (supply_register): New function.
12486 (supply_register_by_name): New function.
12487 (collect_register): New function.
12488 (collect_register_by_name): New function.
12489
12490 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12493 (config.status): Add configure.srv dependency.
12494 (server_h): Add config.h dependency.
12495
12496 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12499 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12500 * gdbserver/configure.srv: Change i386-*-linux* to use
12501 reg-i386-linux.o.
12502
12503 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12504
12505 * x86-64-tdep.c: Re-indent. Update copyright date.
12506
12507 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12508
12509 From Michal Ludvig <mludvig@suse.cz>:
12510 * x86-64-tdep.c (value.h): Delete.
12511 (gdb_assert.h): Include.
12512 (x86_64_register_convert_to_virtual,
12513 x86_64_register_convert_to_raw ): Add check which lets only
12514 floating-point values to be converted.
12515 (value_push): Delete.
12516 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12517 (i386_gdbarch_init): Number of register_bytes fixed.
12518
12519 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12520
12521 * MAINTAINERS: Add x86-64 target.
12522
12523 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12524
12525 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12526 * osfsolib.c (solib_map_sections): Ditto.
12527 * irix5-nat.c (solib_map_sections): Ditto.
12528 * corelow.c (gdb_check_format): Ditto.
12529 * symfile.c (symfile_bfd_open): Ditto.
12530 * solib.c (solib_map_sections): Ditto.
12531 Fix PR gdb/354.
12532
12533 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12534
12535 * remote.c (_initialize_remote): By default, disable ``e'' and
12536 ``E'' step out-of-range packets.
12537
12538 2002-02-26 Andreas Schwab <schwab@suse.de>
12539
12540 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12541 m68k_linux_frame_saved_pc.
12542 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12543 in_sigtramp.
12544 (SIGCONTEXT_PC_OFFSET): Remove.
12545 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12546 m68k_linux_sigtramp_saved_pc): New functions.
12547 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12548 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12549 (UCONTEXT_PC_OFFSET): Define.
12550 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12551 non-RT and RT signal trampolines.
12552
12553 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12554
12555 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12556 (TARGET_NBPG, STACK_END_ADDR): Delete
12557 (VARIABLES_INSIDE_BLOCK): Delete.
12558
12559 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12560
12561 * utils.c (perror_with_name): Make string parameter constant.
12562 (print_sys_errmsg): Ditto.
12563 (query): Ditto.
12564 * defs.h (perror_with_name): Update.
12565 (print_sys_errmsg): Update.
12566 (query): Update.
12567
12568 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12569
12570 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12571 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12572
12573 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12574
12575 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12576 if it already matches the current architecture from the exec file.
12577 Include arch-utils.h for gdbarch_info_init prototype.
12578 * Makefile.in (rs6000-nat.o): Update dependencies.
12579
12580 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12581
12582 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12583 list of exported variables.
12584
12585 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12586
12587 * gdbserver/configure.srv: New file.
12588 * gdbserver/configure.in: Use configure.srv instead
12589 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12590 from it.
12591 * gdbserver/configure: Regenerated.
12592 * gdbserver/terminal.h: New file.
12593 * gdbserver/Makefile.in: Update for configure changes. Remove
12594 more unneeded include paths.
12595
12596 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12597
12598 From wiz at danbala:
12599 * config/sparc/tm-sp64.h: Fix grammar and typos.
12600 Fix PR gdb/287.
12601
12602 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12603
12604 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12605 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12606 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12607 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12608 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12609 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12610 * s390-tdep.c: Ditto.
12611 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12612 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12613 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12614 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12615 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12616 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12617 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12618 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12619 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12620 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12621 Fix PR gdb/378.
12622
12623 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12624
12625 * lin-thread.c: Delete file.
12626 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12627 to gdb_proc_service.h.
12628 * configure: Re-generate.
12629
12630 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12631 * serial.c (serial_open): Delete check for "ocd".
12632 Fix PR gdb/349.
12633
12634 * Makefile.in (linux-thread.o): Delete target.
12635 * linux-thread.c: Delete file.
12636
12637 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12638 renamed SH files to be consistent.
12639
12640 * symtab.c (sort_search_symbols): Use xfree.
12641
12642 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12643
12644 * arm-linux-tdep.c (arm_linux_init_abi): Register
12645 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12646 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12647 definition with undef, since we don't want the sysvr4 definition.
12648 (SKIP_TRAMPOLINE_CODE): Likewise.
12649
12650 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12651
12652 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12653
12654 * configure.in: (AC_CHECK_FUNCS) Added test for
12655 canonicalize_file_name Regenerated.
12656 * config.in, configure: Regenerated.
12657 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12658 defined use canonicalize_file_name.
12659
12660 2002-02-23 Michael Chastain <mec@shout.net>
12661
12662 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12663
12664 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12665
12666 * README: Remove references to cygnus.com.
12667 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12668 dot com'' form. Remove references to cygnus.com and sourceware.
12669
12670 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12671
12672 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12673 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12674 1003.1-2001 no longer allows "head -1".
12675 * gdb/Makefile.in (version.c): Likewise.
12676 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12677 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12678 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12679
12680 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12681
12682 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12683 * command.h (cmd_cfunc_eq): Declare.
12684 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12685
12686 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12687 ``struct cmd_list_element *''.
12688 * cli/cli-cmds.c (is_complete_command): Update. Use
12689 cmd_cfunc_eq.
12690 * top.c (execute_command): Pass the command to
12691 is_complete_command.
12692 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12693
12694 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12695
12696 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12697 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12698 architecture defines.
12699 * s390-tdep.c (s390_gdbarch_init): Likewise.
12700
12701 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12702
12703 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12704 (arm_linux_push_arguments): Likewise.
12705 (arm_linux_init_abi): Register them. Also register linux-specific
12706 call_dummy_words.
12707 (find_minsym_and_objfile): Use strcmp, not STREQ.
12708 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12709 (arm_linux_call_dummy_words): Delete declaration.
12710 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12711 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12712 declarations.
12713 (LOWEST_PC): Delete.
12714
12715 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12716
12717 * maint.c (print_section_info): Do not prepend `0x' to filepos
12718 output, it will be handled by local_hex_string_custom.
12719
12720 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12721
12722 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12723 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12724 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12725
12726 2002-02-22 Jim Blandy <jimb@redhat.com>
12727
12728 Indicate that the bcache functions don't change the strings
12729 they're passed.
12730 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12731 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12732
12733 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12734
12735 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12736
12737 2002-02-21 Christopher Faylor <cgf@redhat.com>
12738
12739 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12740 find the complete path to a loaded DLL.
12741
12742 2002-02-21 Fred Fish <fnf@redhat.com>
12743
12744 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12745 that marks the end of the range of a function, enter a line number
12746 entry that has a line number of zero and a PC offset that matches
12747 the end of the function. This starts a range of PC's for which no
12748 line number information is known.
12749 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12750 PC's for which no line number info is found (line number is zero)
12751 then we didn't find any valid line information.
12752 * symtab.h: Document use of zero line number entry.
12753
12754 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12755
12756 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12757 (have_ptrace_getvrregs): Define for run time checks.
12758 (gdb_vrregset_t): New type for Altivec register handling.
12759 (fetch_register, store_register): Fetch/store altivec register
12760 when needed.
12761 (fetch_altivec_register, store_altivec_register): New functions.
12762 (supply_vrregset, fill_vrregset): New functions.
12763 (fetch_altivec_registers, store_altivec_registers): New functions.
12764 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12765 registers as well.
12766
12767 2002-02-21 Jiri Smid <smid@suse.cz>
12768
12769 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12770
12771 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12772
12773 * Makefile.in (armnbsd-nat.o): Update dependencies.
12774 * armnbsd-nat.c (supply_gregset): New function. Common code to
12775 supply the integer register set.
12776 (supply_fparegset): New function. Similar for FPA registers.
12777 (fetch_regs, fetch_fp_regs): Use them.
12778 (fetch_core_registers): Likewise.
12779 (fetch_elfcore_registers): New function.
12780 (arm_netbsd_elfcore_fns): New core-file type specification.
12781 (_initialize_arm_netbsd_nat): Register it.
12782
12783 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12784
12785 * armnbsd-nat.c: Include gdbcore.h.
12786 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12787 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12788 'void' to declaration, to shut up ARI.
12789 (fetch_core_registers): Make static. Rewrite using supply_register.
12790 (arm_netbsd_core_fns): New core-file type specification.
12791 (_initialize_arm_netbsd_nat): New function.
12792
12793 2002-02-21 Christopher Faylor <cgf@redhat.com>
12794
12795 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12796 value.
12797
12798 2002-02-20 Christopher Faylor <cgf@redhat.com>
12799
12800 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12801 fails.
12802
12803 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12804
12805 * jv-exp.y (parse_number): Change type of implicit longs
12806 to builtin_type_uint64.
12807
12808 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12809
12810 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12811 to be an integer instead of a `union wait'.
12812
12813 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12814
12815 * mips-linux-nat.c: Call the operating system GNU/Linux.
12816 * mips-linux-tdep.c: Likewise.
12817 * mips-tdep.c: Likewise.
12818
12819 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12820
12821 Fix PR gdb/265.
12822 * jv-exp.y (parse_number): Handle 64-bit integers.
12823
12824 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12825
12826 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12827 AC_STDC_HEADERS to AC_HEADER_STDC.
12828 * gdbserver/configure: Regenerated.
12829
12830 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12831
12832 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12833 is defined.
12834 * sparc-tdep.c (get_longjmp_target): Likewise.
12835
12836 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12837
12838 * News: Add news about ARM and Multi-arch. Mention the new target
12839 arm*-*-netbsd*.
12840
12841 2002-02-19 Jim Blandy <jimb@redhat.com>
12842
12843 * stabsread.c (error_type_complaint): Improve error message.
12844
12845 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12846
12847 * gdbserver/README: Update documentation.
12848 * gdbserver/configure.in: Update configury to match documentation.
12849 * gdbserver/Makefile.in: Likewise.
12850 * gdbserver/configure: Regenerated.
12851 * gdbserver/aclocal.m4: New file, generated by aclocal.
12852 * gdbserver/config.in: New file, generated by autoheader.
12853
12854 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12855
12856 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12857 armnbsd-nat.c.
12858
12859 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12860
12861 * arm-tdep.h (enum arm_float_model): New enum.
12862 (struct gdbarch_tdep): Add fp_model.
12863 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12864 up floating-point conversions until we know the floating-point model
12865 in use by the inferior. Don't complain about being unable to
12866 determine the ABI of the inferior when we don't have one.
12867 (arm_extract_return_value): Support different floating-point models.
12868 (arm_store_return_value): Likewise.
12869 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12870 ARM_FLOAT_SOFT.
12871 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12872
12873 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12874
12875 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12876 of ``current_gdbarch''.
12877
12878 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12879
12880 * armnbsd-nat.c : ANSIfy all function declarations.
12881 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12882 (fetch_inferior_registers): Re-implement in terms of above.
12883 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12884 (store_inferior_registers): Re-implement in terms of above.
12885
12886 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12887
12888 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12889 kernel.
12890 * arm-linux-tdep.c: Likewise.
12891 * config/arm/tm-linux.h: Likewise.
12892
12893 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12894
12895 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12896 * config/arm/nbsd.mt (TM_FILE): Delete.
12897 * config/arm/tm-nbsd.h: Delete.
12898
12899 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12900
12901 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12902 Initialize CALL_DUMMY_LENGTH.
12903
12904 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12905
12906 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12907 function.
12908 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12909 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12910 defines one thing and that is incorrect for this port.
12911 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12912
12913 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12914
12915 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12916
12917 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12918
12919 * win32-nat.c (display_selector): New function. Displays information
12920 about the information returned by GetThreadSelectorEntry API function.
12921 (display_selectors): New function. Displays the infomation of
12922 the selector given as argument, or of CS, DS ans FS selectors
12923 if no argument is given.
12924 ( _initialize_inftarg): Add "w32" as info prefix command.
12925 Add "info w32 selector" as command calling display_selectors.
12926
12927 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12928
12929 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12930 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12931 if not defined.
12932
12933 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12934
12935 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12936
12937 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12938
12939 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12940 (arm_fix_call_dummy): Call it.
12941 (arm_call_dummy_breakpoint_offset): Delete.
12942 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12943 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12944
12945 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12946
12947 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12948 Default to func_frame_chain_valid.
12949 * gdbarch.h, gdbarch.c: Re-generate.
12950 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12951
12952 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12953
12954 * ppc-linux-nat.c: Update copyright.
12955 (fetch_register, store_register): Add tid parameter, don't compute
12956 tid here.
12957 (fetch_ppc_registers, store_ppc_registers): Add tid
12958 parameter. Pass it along to callees.
12959 (fetch_inferior_registers, store_inferior_registers): Compute tid
12960 here, and pass it to calleed functions.
12961 (fill_gregset, supply_fpregset): Clean up formatting.
12962
12963 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12964
12965 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12966 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12967
12968 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12969
12970 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12971 * gdbarch.c gdbarch.h: Regenerate.
12972 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12973 function.
12974 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12975 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12976 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12977
12978 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12979 * arm-tdep.c (arm_get_longjmp_target): New function.
12980 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12981 this to a positive value register arm_get_longjmp_target as the
12982 longjmp handler.
12983 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12984 (arm_linux_init_abi): Set up longjmp description in tdep.
12985 * armnbsd-nat.c (get_longjmp_target): Delete.
12986 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12987 description in tdep.
12988 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12989 (get_longjmp_target): Delete declaration.
12990 (GET_LONGJMP_TARGET): Delete.
12991 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12992 (GET_LONGJMP_TARGET): Delete.
12993
12994 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12995
12996 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12997 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12998 of ``current_gdbarch''.
12999
13000 2002-02-17 Tom Tromey <tromey@redhat.com>
13001
13002 * cli/cli-cmds.c (compare_strings): New function.
13003 (complete_command): Only print each unique item once.
13004 * completer.h (complete_line): Declare.
13005 * completer.c (complete_line): New function.
13006 (line_completion_function): Use it.
13007
13008 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13009
13010 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13011 * gdbarch.h, gdbarch.c: Re-generate.
13012
13013 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13014
13015 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13016
13017 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13018
13019 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13020 * valops.c (value_arg_coerce): Don't take the address of a reference
13021 to convert an argument to a reference.
13022
13023 2002-02-15 Christopher Faylor <cgf@redhat.com>
13024
13025 * win32-nat.c (get_image_name): New function.
13026 (handle_load_dll): Use get_image_name function.
13027 (get_child_debug_event): Avoid registering debug events until possibly
13028 execed process is started.
13029 (child_create_inferior): Allow invocation via shell so that command
13030 line redirection, etc. works ok.
13031 (_initialize_inftarg): Add new command: "set shell" to control whether
13032 a shell is used to start a process.
13033
13034 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13035
13036 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13037 instead of find_register_by_number.
13038 (cannot_store_register): Likewise.
13039
13040 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13041
13042 * dwarf2read.c: Replace fprintf (stderr, ...) by
13043 fprintf_unfiltered (gdb_stderr, ...).
13044
13045 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13046
13047 * gdbserver/gdbserver.1: Document --attach.
13048
13049 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13050
13051 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13052 descriptions.
13053 * arm-tdep.c (arm_default_arm_le_breakpoint)
13054 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13055 (arm_default_thumb_be_breakpoint): New. Initialize them from
13056 traditional breakpoint defines.
13057 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13058 (arm_gdbarch_init): Initialize new breakpoint variables.
13059 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13060 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13061 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13062 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13063 code out to ...
13064 (arm_netbsd_init_abi_common): ... here; new function.
13065 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13066 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13067 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13068 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13069
13070 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13071
13072 * arm-tdep.h (enum arm_abi): New enum.
13073 (struct gdbarch_tdep): New structure.
13074 (LOWEST_PC): Provide a default.
13075 (arm_gdbarch_register_os_abi): Declare new function.
13076 * arm-tdep.c (arm_abi_names): New array.
13077 (process_note_abi_tag_sections): New function.
13078 (get_elfosabi): New function.
13079 (arm_gdbarch_register_os_abi): New function.
13080 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13081 support for that ABI has been built in, then call the appropriate
13082 configuration routine. Use gdbarch_num_regs() to get the number
13083 of registers.
13084 (arm_dump_tdep): New function.
13085 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13086 place-holder functions.
13087 (_initialize_arm_tdep): Register them.
13088 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13089
13090 * armnbsd-tdep.c: New file.
13091 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13092 * config/arm/nbsd.mt (TDEPFILES): Add it.
13093 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13094
13095 * armnbsd-nat.c: Include regcache.h.
13096 * Makefile.in (armnbsd-nat.o): Update dependency list.
13097
13098 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13099
13100 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13101
13102 * gdbserver/Makefile.in: Fix typos in target rules.
13103
13104 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13105
13106 Fix part of PR gdb/267.
13107 * linespec.c (find_methods): Handle constructors specially for now.
13108
13109 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13110
13111 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13112 handling.
13113 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13114 standard_coerce_float_to_double().
13115
13116 2002-02-14 Christopher Faylor <cgf@redhat.com>
13117
13118 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13119 GDBINIT_FILENAME.
13120
13121 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13122
13123 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13124 find_variant_by_name, because it confuses the multiarch
13125 framework. Return NULL if there isn't an architecture with the
13126 user supplied name, instead of forcing a different one without
13127 recording the change with the multiarch machinery.
13128 (find_variant_by_name): Delete.
13129
13130 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13131
13132 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13133 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13134
13135 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13136
13137 * stack.c (print_frame_info_base): When calling
13138 print_frame_info_listing_hook, set current_source_symtab.
13139
13140 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13141
13142 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13143 and remove unused $(INCLUDE_DIR).
13144 Add regcache.c to OBS.
13145 Add generated register protocol files to clean target.
13146 Update dependencies for new objects, obsolete old target code.
13147
13148 * gdbserver/linux-low.c: Remove all platform-specific code to
13149 new files. Remove various dead code. Update to use regcache
13150 functionality.
13151 * gdbserver/remote-utils.c (fromhex): Add return statement
13152 to quiet warning.
13153 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13154 constant.
13155 (input_interrupt): Add integer parameter to match prototype
13156 of a signal handler.
13157 (outreg): Use register_data ().
13158 (prepare_resume_reply): Use gdbserver_expedite_regs.
13159 * gdbserver/server.c (main): Dynamically allocate own_buf because
13160 PBUFSIZ is no longer constant. Use registers_to_string () and
13161 registers_from_string ().
13162 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13163 for error (), fatal (), and warning (). Update definition of
13164 PBUFSIZ to use regcache functionality. Add include guard.
13165 * gdbserver/utils.c (fatal): Add missing ``const''.
13166 (warning): New function.
13167
13168 * regformats/regdat.sh: Include "regcache.h" in generated files.
13169 Provide init_registers () function.
13170 * regformats/regdef.h: Add prototype for set_register_cache ().
13171 Add include guard.
13172
13173 * gdbserver/linux-arm-low.c: New file.
13174 * gdbserver/linux-i386-low.c: New file.
13175 * gdbserver/linux-ia64-low.c: New file.
13176 * gdbserver/linux-m68k-low.c: New file.
13177 * gdbserver/linux-mips-low.c: New file.
13178 * gdbserver/linux-ppc-low.c: New file.
13179 * gdbserver/linux-sh-low.c: New file.
13180
13181 * gdbserver/regcache.c: New file.
13182 * gdbserver/regcache.h: New file.
13183
13184 * gdbserver/low-linux.c: Removed obsolete file.
13185
13186 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13187
13188 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13189 * config/i386/linux.mt: Likewise.
13190 * config/ia64/linux.mt: Likewise.
13191 * config/m68k/linux.mh: Likewise.
13192 * config/powerpc/linux.mh: Likewise.
13193 * config/mips/linux.mt: Likewise.
13194
13195 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13196
13197 * config/i386/i386lynx.mh: Mark gdbserver variables
13198 as (currently) obsolete for this target.
13199 * config/i386/nbsd.mt: Likewise.
13200 * config/i386/nbsdelf.mt: Likewise.
13201 * config/m32r/m32r.mt: Likewise.
13202 * config/m68k/m68klynx.mh: Likewise.
13203 * config/m68k/nbsd.mt: Likewise.
13204 * config/m68k/sun3os4.mh: Likewise.
13205 * config/mips/vr5000.mt: Likewise.
13206 * config/ns32k/nbsd.mt: Likewise.
13207 * config/pa/hppabsd.mh: Likewise.
13208 * config/pa/hppaosf.mh: Likewise.
13209 * config/powerpc/nbsd.mt: Likewise.
13210 * config/rs6000/rs6000lynx.mh: Likewise.
13211 * config/s390/s390.mt: Likewise.
13212 * config/s390/s390x.mt: Likewise.
13213 * config/sparc/sparclynx.mh: Likewise.
13214 * config/sparc/sun4os4.mh: Likewise.
13215 * config/i386/x86-64linux.mt: Likewise.
13216 * config/sparc/linux.mh: Likewise.
13217
13218 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13219
13220 * configure.tgt: Configure gdbserver only for known working
13221 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13222 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13223 SUBDIRS if it is configured. Update comment for ${nativefile}.
13224 * configure: Regenerated.
13225
13226 2002-02-13 Michael Snyder <msnyder@redhat.com>
13227
13228 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13229
13230 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13231 (default_gcore_mach): Just return 0, work around a problem in bfd.
13232 (default_gcore_target): OK to return NULL if exec_bfd is null.
13233 (make_mem_sec): Use a cast, avoid a warning.
13234
13235 * procfs.c (find_memory_regions_callback): Use a cast instead of
13236 calling host_pointer_to_address (which complains if
13237 sizeof (host pointer) != sizeof (target pointer)).
13238 (procfs_make_note_section): Avoid overflow in psargs string.
13239
13240 * procfs.c (procfs_make_note_section): Make the default
13241 implementation return an error.
13242
13243 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13244
13245 * procfs.c (procfs_make_note_section): Provide a default definition
13246 (for alpha-dec-osf4.0f). Fix typos.
13247
13248 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13249
13250 * linux-proc.c: Add include of regcache.h.
13251 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13252
13253 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13254
13255 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13256 * memattr.c (create_mem_region): Disallow useless empty region.
13257 Regions are half-open intervals, so allow [A..B) [B..C) as
13258 non-overlapping.
13259
13260 2002-02-13 Michael Chastain <mec@shout.net>
13261
13262 * defs.h: Kill CONST_PTR.
13263 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13264 * c-lang.c (c_builtin_types): Likewise.
13265 * ch-lang.c (ch_builtin_types): Likewise.
13266 * f-lang.c (f_builtin_types): Likewise.
13267 * language.c (unknown_builtin_types): Likewise.
13268 * m2-lang.c (m2_builtin_types): Likewise.
13269 * p-lang.c (pascal_builtin_types): Likewise.
13270 * scm-lang.c (c_builtin_types): Likewise.
13271
13272 2002-02-13 Keith Seitz <keiths@redhat.com>
13273
13274 * arm-tdep.h (arm_get_next_pc): Add declaration.
13275
13276 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13277
13278 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13279 with other related struct-returning functions.
13280 (arm_extract_struct_value_address): New function.
13281 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13282 initialize float_format, double_format and long_double_format as
13283 appropriate to the endianness of the target.
13284 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13285 (arm_use_struct_convention): Delete declaration.
13286 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13287
13288 2002-02-13 Keith Seitz <keiths@redhat.com>
13289
13290 * defs.h (core_addr_to_string_nz): New function.
13291
13292 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13293
13294 Apply missing bits of 2002-01-15 patch.
13295 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13296 (fill_fpregset): Use i387_fill_fsave.
13297
13298 2002-02-12 Keith Seitz <keiths@redhat.com>
13299
13300 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13301 (core_addr_to_string_nz): New function.
13302
13303 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13304
13305 * arm-linux-nat.c: Really include arm-tdep.h.
13306 * config/arm/tm-linux.h (struct type, struct value): Declare.
13307
13308 2002-02-11 Michael Snyder <msnyder@redhat.com>
13309
13310 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13311 (gcore section): Ifdef for Solaris and Unixware only.
13312 (procfs_do_thread_registers): Unixware needs one lwpstatus
13313 per thread (not one prstatus or pstatus).
13314 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13315 not over all gdb threads. For unixware, call elfcore_write_pstatus
13316 once before iterating over threads.
13317
13318 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13319
13320 * arm-tdep.h: New file.
13321 * arm-tdep.c: Include arm-tdep.h.
13322 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13323 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13324 (arm_print_float_info, arm_register_type, convert_to_extended)
13325 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13326 (arm_extract_return_value, arm_register_name): Make static.
13327 (arm_software_single_step): Similarly. Fix types in declaration.
13328 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13329 (arm_store_return_value, arm_store_struct_return): New functions.
13330 (arm_gdbarch_init): Register the above functions. Also register
13331 call_dummy_start_offset, sizeof_call_dummy_words,
13332 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13333 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13334 max_register_virtual_size, register_size. Set up
13335 prologue_cache.saved_regs here, rather than ...
13336 (_initialize_arm_tdep): ... here.
13337 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13338 declarations.
13339 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13340 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13341 (arm_print_float_info, arm_register_type, convert_to_extended)
13342 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13343 (arm_extract_return_value, arm_register_name): Delete declarations.
13344 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13345 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13346 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13347 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13348 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13349 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13350 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13351 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13352 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13353 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13354 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13355 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13356 interface.
13357 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13358 * remote-rdi.c remote-rdp.c: Likewise.
13359 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13360 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13361 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13362 definition.
13363
13364 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13365 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13366 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13367 from non-ARM_ prefixed definitions.
13368 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13369 all uses of above.
13370 * remote-rdi.c remote-rdp.c: Likewise.
13371 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13372
13373 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13374
13375 * arm-tdep.c (arm_frameless_function_invocation)
13376 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13377 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13378 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13379 (arm_pop_frame, arm_get_next_pc): Make static.
13380 (arm_gdbarch_init): Register above in gdbarch structure.
13381 (arm_read_fp): Renamed from arm_target_read_fp.
13382 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13383 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13384 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13385 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13386 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13387 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13388 (arm_pc_is_thumb_dummy): Delete declarations.
13389 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13390 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13391 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13392 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13393
13394 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13395
13396 * symtab.c (compare_search_syms): New function.
13397 (sort_search_symbols): New function.
13398 (search_symbols): Sort symbols after searching rather than
13399 before.
13400
13401 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13402
13403 * NEWS: Linux -> GNU/Linux.
13404
13405 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13406
13407 * gdbarch.sh: For for level one methods, disallow a definition
13408 when partially multi-arched. Add comments explaining rationale.
13409 * gdbarch.h: Re-generate.
13410
13411 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13412
13413 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13414 multi-arch partial.
13415
13416 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13417
13418 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13419 field. Use diff -u.
13420 * gdbarch.c: Re-generate.
13421
13422 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13423
13424 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13425 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13426 partial.
13427
13428 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13429
13430 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13431 multi-arch partial.
13432 (PUSH_ARGUMENTS): Switch to using predefault.
13433 * gdbarch.c: Regenerate.
13434
13435 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13436
13437 * valops.c (PUSH_ARGUMENTS): Delete definition.
13438 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13439 partial. Default to default_push_arguments.
13440 * gdbarch.h, gdbarch.c: Regenerate.
13441
13442 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13443
13444 * defs.h (throw_exception): Rename return_to_top_level. Update
13445 comments.
13446 * utils.c (error_stream, internal_verror, quit): Ditto.
13447 * top.c (throw_exception, catcher): Ditto.
13448 * sparclet-rom.c (sparclet_load): Ditto.
13449 * remote.c (interrupt_query, minitelnet): Ditto.
13450 * remote-sds.c (interrupt_query): Ditto.
13451 * remote-mips.c (mips_error, mips_kill): Ditto.
13452 * ocd.c (interrupt_query): Ditto.
13453 * monitor.c (monitor_interrupt_query): Ditto.
13454 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13455 * target.h: Update comment.
13456
13457 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13458
13459 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13460
13461 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13462 default_double_format.
13463 * gdbarch.h, gdbarch.c: Re-generate.
13464 * findvar.c (floatformat_unknown): Delete variable definition.
13465 * doublest.h (floatformat_unknown): Delete variable declaration.
13466
13467 2002-02-09 Jim Blandy <jimb@redhat.com>
13468
13469 * stabsread.c (read_type): Add code to parse Sun's syntax for
13470 prototyped function types.
13471
13472 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13473
13474 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13475 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13476
13477 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13478
13479 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13480 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13481 now _initialize_xcoffsolib gets called again and overrides the
13482 commands from solib.c in a native configuration.
13483
13484 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13485
13486 * doublest.c (store_typed_floating): Don't try to return a value.
13487 Fixes PR gdb/290.
13488
13489 2002-02-08 Jim Blandy <jimb@redhat.com>
13490
13491 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13492 is prototyped and has no arguments, print its argument list as
13493 `(void)'.
13494
13495 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13496
13497 * MAINTAINERS (write-after-approval): Add myself.
13498 (paper-trail): I've escaped!
13499
13500 2002-02-08 Christopher Faylor <cgf@redhat.com>
13501
13502 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13503 changes.
13504 (_initialize_check_for_gdb_ini): Ditto.
13505
13506 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13507
13508 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13509 xaprintf -> xasprintf.
13510
13511 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13512
13513 * win32-nat.c: Remove use of printf and sprintf functions.
13514
13515 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13516
13517 * arm-tdep.c (arm_frame_chain_valid): Make static.
13518 (arm_push_arguments): Likewise.
13519 (arm_gdbarch_init): New function.
13520 (_initialize_arm_tdep): Call it.
13521 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13522 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13523 (FRAME_CHAIN_VALID): Delete.
13524 (arm_frame_chain_valid): Delete declaration.
13525 (PUSH_ARGUMENTS): Delete.
13526 (arm_push_arguments): Delete declaration.
13527 (CALL_DUMMY_P): Delete.
13528
13529 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13530 Corinna Vinschen <vinschen@redhat.com>
13531
13532 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13533 on builtin float types.
13534
13535 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13536
13537 * utils.c: Include <curses.h> before "bfd.h".
13538 * tui/tui-hooks.c: Likewise.
13539 * tui/tui.c: Likewise.
13540 * tui/tuiCommand.c: Likewise.
13541 * tui/tuiData.c: Likewise.
13542 * tui/tuiDataWin.c: Likewise.
13543 * tui/tuiDisassem.c: Likewise.
13544 * tui/tuiGeneralWin.c: Likewise.
13545 * tui/tuiIO.c: Likewise.
13546 * tui/tuiLayout.c: Likewise.
13547 * tui/tuiRegs.c: Likewise.
13548 * tui/tuiSource.c: Likewise.
13549 * tui/tuiSourceWin.c: Likewise.
13550 * tui/tuiStack.c: Likewise.
13551 * tui/tuiWin.c: Likewise.
13552
13553 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13554
13555 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13556 to include space for pseudoregs as well. Update loops accordingly.
13557 (sh_fp_frame_init_saved_regs): Ditto.
13558 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13559
13560 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13561
13562 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13563 Add Richard Earnshaw to Arm maintainers.
13564
13565 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13566
13567 * defs.h (warning_begin): Delete declaration.
13568
13569 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13570 Delete macro.
13571
13572 2002-02-07 Michael Snyder <msnyder@redhat.com>
13573
13574 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13575 Logic bug, remove misplaced else.
13576
13577 2002-02-07 Klee Dienes <klee@apple.com>
13578
13579 * fork-inferior.c (fork_inferior): Add '!' to the list of
13580 characters that need to be quoted when building a string for the
13581 shell. Quote '!' specifically with a backslash, since CSH chokes
13582 when trying to evaluate "str!str".
13583
13584 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13585
13586 * rdi-share/host.h: Only provide a typedef for bool if it is not
13587 defined.
13588
13589 2002-02-04 Michael Snyder <msnyder@redhat.com>
13590
13591 * breakpoint.h (enum bptype): Add new overlay event bp type.
13592 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13593
13594 * breakpoint.c (create_internal_breakpoint): New function.
13595 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13596 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13597 (create_thread_event_breakpoint): Ditto.
13598 (create_solib_event_breakpoint): Ditto.
13599 (create_overlay_event_breakpoint): New function.
13600 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13601 (update_breakpoints_after_exec): Delete and re-initialize
13602 overlay event breakpoints after an exec. Add FIXME comment
13603 about longjmp breakpoint.
13604 (print_it_typical): Ignore overlay event breakpoints.
13605 (print_one_breakpoint): Ditto.
13606 (mention): Ditto.
13607 (bpstat_what): Do not stop for overlay event breakpoints.
13608 (delete_breakpoint): Don't delete overlay event breakpoints.
13609 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13610 (breakpoint_re_set): Re-create overlay event breakpoint.
13611
13612 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13613 (overlay_manual_command): Disable overlay breakpoints.
13614 (overlay_off_command): Disable overlay breakpoints.
13615
13616 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13617
13618 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13619 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13620 to here from config/tm-arm.h.
13621 (coff_sym_is_thumb): Make static.
13622 (arm_elf_make_msymbol_special): New function.
13623 (arm_coff_make_msymbol_special): New function.
13624 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13625 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13626 (coff_sym_is_thumb): Delete declaration.
13627 (arm_elf_make_msymbol_special): Declare.
13628 (arm_coff_make_msymbol_special): Declare.
13629 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13630 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13631
13632 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13633
13634 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13635
13636 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13637
13638 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13639 * gdbarch.c gdbarch.h: Regenerate.
13640 * arch-utils.c (default_print_float_info): New function.
13641 * arch-utils.h (default_print_float_info): Prototype it.
13642 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13643 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13644 (PRINT_FLOAT_INFO): Document it.
13645
13646 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13647 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13648 (PRINT_FLOAT_INFO): Define.
13649
13650 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13651
13652 * win32-nat.c (_initialize_check_for_gdb_ini):
13653 Add typecast to sprintf argument to suppress a warning.
13654
13655 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13656
13657 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13658 to allow easier handling of pass state.
13659 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13660 that gives exception name and address.
13661 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13662 and set last_sig value to ourstatus->value.sig. Some missing
13663 exceptions added.
13664 (child_continue): Correctly report continue_status.
13665 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13666 TARGET_SIGNAL_0 (new default value).
13667 (child_resume): consider sig argument passed to decide if
13668 the exception should be passed to debuggee or not.
13669
13670 2002-02-05 Michael Snyder <msnyder@redhat.com>
13671
13672 * regcache.c (fetch_register): Call target_fetch_register
13673 only if we don't call FETCH_PSEUDO_REGISTER.
13674 (store_register): Call target_store_register only if we
13675 don't call STORE_PSEUDO_REGISTER.
13676
13677 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13678
13679 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13680 ELF_MAKE_MSYMBOL_SPECIAL.
13681 * gdbarch.c, gdbarch.h: Regenerate.
13682 * arch-utils.c (default_make_msymbol_special): New function.
13683 * arch-utils.h (default_make_msymbol_special): Export.
13684 * elfread.c (elf_symtab_read): Compile use of
13685 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13686 multiarched.
13687 * coffread.c (coff_symtab_read): Ditto, for
13688 COFF_MAKE_MSYMBOL_SPECIAL.
13689
13690 2002-02-05 Jim Blandy <jimb@redhat.com>
13691
13692 * solib-svr4.c (svr4_truncate_ptr): New function.
13693 (svr4_relocate_section_addresses): Do the address arithmetic with
13694 the appropriate truncation for target addresses, even when
13695 CORE_ADDR is larger than a target address.
13696
13697 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13698
13699 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13700 to (int *).
13701
13702 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13703
13704 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13705 code.
13706
13707 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13708
13709 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13710
13711 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13712
13713 * gdbserver/linux-low.c: Remove unused include files.
13714
13715 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13716
13717 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13718 (read_inferior_memory): Use it.
13719 (write_inferior_memory): Likewise.
13720
13721 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13722
13723 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13724 grubbing through sys_errlist.
13725
13726 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13727
13728 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13729
13730 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13731 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13732
13733 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13734
13735 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13736 (do_sfunc, set_cmd_sfunc): New functions.
13737
13738 * command.h (struct cmd_list_element): Add field func.
13739 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13740 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13741 * cli/cli-decode.h: Ditto.
13742
13743 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13744 (help_all, help_cmd_list): Ditto.
13745 (find_cmd, complete_on_cmdlist): Ditto.
13746 * top.c (execute_command): Ditto.
13747
13748 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13749 function.sfunc.
13750
13751 * infcmd.c (notice_args_read): Fix function signature.
13752
13753 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13754 * cli/cli-decode.c (add_set_cmd): Ditto.
13755 * utils.c (initialize_utils): Ditto.
13756 * maint.c (_initialize_maint_cmds): Ditto.
13757 * infrun.c (_initialize_infrun): Ditto.
13758 * demangle.c (_initialize_demangler): Ditto.
13759 * remote.c (add_packet_config_cmd): Ditto.
13760 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13761 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13762 * proc-api.c (_initialize_proc_api): Ditto.
13763 * kod.c (_initialize_kod): Ditto.
13764 * valprint.c (_initialize_valprint): Ditto.
13765 * top.c (init_main): Ditto.
13766 * infcmd.c (_initialize_infcmd): Ditto.
13767 * corefile.c (_initialize_core): Ditto.
13768 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13769 * arch-utils.c (initialize_current_architecture): Ditto.
13770 (_initialize_gdbarch_utils): Ditto.
13771 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13772
13773 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13774 * wince.c (_initialize_inftarg): Ditto.
13775 * symfile.c (_initialize_symfile): Ditto.
13776 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13777 * language.c (_initialize_language): Ditto.
13778 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13779
13780 2002-02-04 Michael Snyder <msnyder@redhat.com>
13781
13782 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13783
13784 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13785
13786 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13787 Add rules for building the register data files.
13788
13789 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13790
13791 * regformats/regdat.sh: Add braces to the definition of
13792 expedite_regs_${arch}.
13793
13794 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13795
13796 * regformats/regdef.h (struct reg): Add comment describing the
13797 requirements for offset and size fields.
13798
13799 2002-02-04 Andreas Schwab <schwab@suse.de>
13800
13801 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13802 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13803
13804 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13805
13806 * gdbarch.sh (copyright): Update years in generated header.
13807 (SMASH_TEXT_ADDRESS): Add rule.
13808 * gdbarch.h, gdbarch.c: Re-generate.
13809 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13810 * dbxread.c: Likewise.
13811 * dwarfread.c: Likewise.
13812 * elfread.c: Likewise.
13813 * somread.c: Likewise.
13814
13815 * arm-tdep.c (arm_smash_text_address): New function.
13816 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13817
13818 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13819
13820 Add support for hardware watchpoints on win32 native.
13821 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13822 CONTEXT_DEBUG_REGISTERS.
13823 (dr variable): New variable. Static array containing a local copy
13824 of debug registers.
13825 (debug_registers_changed): New variable. Reflects when debug registers
13826 are changed and need to be written to inferior.
13827 (debug_registers_used): New variable. Reflects when any debug register
13828 was set, used when new threads are created.
13829 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13830 i386-nat code.
13831 (thread_rec): Set dr array if id is the thread of current_event .
13832 (child_continue, child_resume): Change the debug registers for all
13833 threads if debug_registers_changed.
13834 (child_add_thread): Change the debug registers if debug_registers_used.
13835 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13836 Link nm.h to new nm-cygwin.h file.
13837 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13838 of hardware registers.
13839
13840 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13841
13842 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13843 Restore behavour broken by 2002-01-20 Andrew Cagney
13844 <ac131313@redhat.com> IEEE_FLOAT removal.
13845
13846 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13847
13848 * c-valprint.c (c_val_print): Pass a proper valaddr to
13849 cp_print_class_method.
13850 * valops.c (search_struct_method): If there is only one method
13851 and args is NULL, return that method.
13852
13853 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13854
13855 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13856 accessing tag_name directly.
13857
13858 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13859
13860 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13861 of accessing tag_name directly.
13862
13863 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13864
13865 PR gdb/280
13866 * gdbtypes.c (replace_type): New function.
13867 * gdbtypes.h (replace_type): Add prototype.
13868 * stabsread.c (read_type): Use replace_type.
13869
13870 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13871
13872 * Makefile.in (memattr.o): Add missing dependencies rule.
13873
13874 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13875
13876 * breakpoint.c (break_at_finish_command): Really export.
13877 (break_at_finish_at_depth_command): Ditto.
13878 (tbreak_at_finish_command): Ditto.
13879 * hppa-tdep.c: Include completer.h.
13880 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13881 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13882
13883 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13884
13885 * utils.c (do_write): New function.
13886 (error_stream): Rewrite combining the code from error_begin and
13887 verror.
13888 (verror): Rewrite using error_stream.
13889 (error_begin): Delete function.
13890
13891 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13892
13893 * utils.c (error_begin): Make static.
13894 * defs.h (error_begin): Delete declaration.
13895
13896 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13897 (decode_line_1): Use cplusplus_error instead of error_begin,
13898 cplusplus_hint and return_to_top_level.
13899 * coffread.c (coff_symfile_read): Use error instead of error_begin
13900 and return_to_top_level.
13901 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13902
13903 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13904
13905 * language.h (type_error, range_error): Make string parameter
13906 constant.
13907 * language.c (warning_pre_print): Delete extern declaration.
13908 * dwarfread.c (warning_pre_print): Ditto.
13909 * language.c (type_error, range_error): Rewrite to use verror and
13910 vwarning instead of warning_begin.
13911
13912 2002-02-01 Michael Snyder <msnyder@redhat.com>
13913
13914 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13915 (set_ignore_count): Move misplaced comment back where it belongs.
13916
13917 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13918
13919 * command.h (NO_FUNCTION): Delete macro.
13920 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13921 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13922 * tracepoint.c (_initialize_tracepoint): Ditto.
13923 * cli/cli-decode.c (add_set_cmd): Ditto.
13924 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13925
13926 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13927
13928 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13929 Update ``this'' pointer when calling virtual functions.
13930
13931 2002-02-01 Michael Snyder <msnyder@redhat.com>
13932
13933 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13934 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13935
13936 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13937
13938 * regformats/reg-arm.dat: New file.
13939 * regformats/reg-i386.dat: New file.
13940 * regformats/reg-ia64.dat: New file.
13941 * regformats/reg-m68k.dat: New file.
13942 * regformats/reg-mips.dat: New file.
13943 * regformats/reg-ppc.dat: New file.
13944 * regformats/reg-sh.dat: New file.
13945 * regformats/regdef.h: New file.
13946 * regformats/regdat.sh: New file.
13947
13948 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13949
13950 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13951 (arm_frame_args_address, arm_frame_locals_address): New functions.
13952 (arm_frame_num_args): New function.
13953 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13954 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13955 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13956
13957 2002-01-31 Michael Snyder <msnyder@redhat.com>
13958
13959 * breakpoint.c (break_at_finish_command): Export.
13960 (break_at_finish_at_depth_command): Export.
13961 (tbreak_at_finish_command): Export.
13962 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13963 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13964 "txbreak" commands, which are HPPA specific.
13965
13966 * printcmd.c (disassemble_command): Remove an ancient
13967 artifact of an old merge.
13968
13969 * symfile.h (enum overlay_debugging_state):
13970 Define enum constant values for overlay mode.
13971 * symfile.c (overlay_debugging): Use enums instead of literals.
13972 (overlay_is_mapped, overlay_auto_command,
13973 overlay_manual_command): Ditto.
13974
13975 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13976 breakpoint_here_p, breakpoint_inserted_here_p,
13977 breakpoint_thread_match, bpstat_stop_status,
13978 describe_other_breakpoints, check_duplicates, clear_command):
13979 Coding standard fixes.
13980
13981 * target.c (target_xfer_memory): Add spaces, coding standard.
13982 (do_xfer_memory): Add missing line to trust-readonly
13983 code: check bfd SEC_READONLY flag for section.
13984
13985 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13986
13987 * PROBLEMS: Fix typo, 5.1->5.1.1.
13988
13989 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13990
13991 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13992 data symbols, since we search based on textlow and texthigh.
13993 (find_pc_sect_symtab): Likewise.
13994
13995 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13996
13997 * defs.h (vwarning): Declare.
13998 * utils.c (vwarning): New function.
13999 (warning): Call vwarning.
14000 (warning_begin): Delete function.
14001
14002 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14003 the warning message.
14004 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14005 warning_begin.
14006
14007 2002-01-30 Michael Snyder <msnyder@redhat.com>
14008
14009 * NEWS: Mention "set trust-readonly-sections" command.
14010 Mention generate-core-file command.
14011
14012 2002-01-15 Michael Snyder <msnyder@redhat.com>
14013
14014 * target.c: New command, "set trust-readonly-sections on".
14015 (do_xfer_memory): Honor the suggestion to trust readonly sections
14016 by reading them from the object file instead of from the target.
14017 (initialize_targets): Register command "set trust-readonly-sections".
14018
14019 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14020
14021 * parse.c (target_map_name_to_register): Simplify, search regs and
14022 pseudo-regs using a single loop.
14023
14024 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14025
14026 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14027
14028 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14029
14030 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14031 * config/i386/i386v42mp.mh: Add i387-nat.o .
14032 * i386v4-nat.c: Include i387-nat.h.
14033 (supply_fpregset): Use i387_supply_fsave.
14034 (fill_fpregset): Use i387_fill_fsave.
14035
14036 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14037
14038 * arm-tdep.c (arm_call_dummy_words): Define.
14039 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14040 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14041 (CALL_DUMMY_WORDS): Define.
14042 (arm_call_dummy_words): Declare.
14043 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14044 (arm_linux_call_dummy_words): Declare.
14045
14046 2002-01-30 Andreas Schwab <schwab@suse.de>
14047
14048 * m68klinux-nat.c: Fix last change to use regcache_collect
14049 instead of referencing registers[] directly.
14050
14051 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14052
14053 * parse.c (target_map_name_to_register): Delete code wrapped in
14054 #ifdef REGISTER_NAME_ALIAS_HOOK.
14055
14056 2002-01-28 Michael Snyder <msnyder@redhat.com>
14057
14058 * regcache.c (legacy_read_register_gen): Need to be able to
14059 read pseudo-register as well as real register.
14060 (legacy_write_register_gen): Ditto.
14061
14062 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14063
14064 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14065 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14066 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14067 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14068 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14069 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14070 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14071 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14072 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14073 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14074 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14075 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14076 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14077 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14078 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14079 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14080 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14081 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14082 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14083 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14084
14085 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14086
14087 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14088 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14089 (initialize_current_architecture): Update target_byte_order using
14090 information from BFD.
14091 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14092 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14093
14094 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14095
14096 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14097 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14098
14099 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14100 #ifdef INVALID_FLOAT.
14101 * infcmd.c (do_registers_info): Ditto.
14102 * values.c (unpack_double): Ditto. Add comment.
14103
14104 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14105 already commented out.
14106
14107 2002-01-26 Andreas Schwab <schwab@suse.de>
14108
14109 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14110 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14111 registers and add support for PTRACE_GETREGS.
14112
14113 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14114
14115 GDB 5.1.1 released from 5.1 branch.
14116 * NEWS: Add 5.1.1 news.
14117 * README: Sync with 5.1 branch.
14118
14119 2002-01-23 Fred Fish <fnf@redhat.com>
14120
14121 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14122 stabstring on initial malloc. Reallocing will copy it for us,
14123 if necessary.
14124
14125 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14126
14127 * Makefile.in (hpread_h): Delete.
14128 (HFILES_NO_SRCDIR): Remove hpread.h.
14129 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14130 (hpread.o): Update dependencies.
14131 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14132
14133 * hp-psymtab-read.c: Remove file.
14134 * hp-symtab-read.c: Remove file.
14135 * hpread.h: Remove file.
14136
14137 * hpread.c: Merge all contents of hp-psymtab-read.c,
14138 hp-symtab-read.c and hpread.h into this file, as it was prior to
14139 January 1999.
14140
14141 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14142 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14143 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14144 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14145
14146 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14147
14148 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14149 fill_gregset): Call gdbarch_tdep() just once, assign result to
14150 variable and use that, instead of calling the function several
14151 times.
14152
14153 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14154
14155 * configure.host: Accept sparcv9 as alias for sparc64.
14156 * configure.tgt: Likewise.
14157
14158 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14159
14160 * solib-aix5.c (build_so_list_from_mapfile)
14161 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14162 arguments is not reversed.
14163 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14164 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14165
14166 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14167
14168 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14169 modified version of obsolete sh_fetch_pseudo_register.
14170 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14171 (sh4_register_read): New function.
14172 (sh_pseudo_register_write): New function. Renamed and modified
14173 version of obsolete sh_store_pseudo_register.
14174 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14175 (sh4_register_write): New function.
14176 (sh_gdbarch_init): Remove setting of gdbarch function
14177 fetch_pseudo_register and store_pseudo_register. Remove setting of
14178 register_convert_to_raw, register_convert_to_virtual,
14179 register_convertible.
14180 (sh_sh4_register_convertible): Delete. No longer needed. All is
14181 taken care by architecture specific functions
14182 register_read/register_write.
14183 (sh_sh4_register_convert_to_virtual): Make static.
14184 (sh_sh4_register_convert_to_raw): Ditto.
14185
14186 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14187
14188 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14189 (floatformat_is_nan, floatformat_mantissa): Ditto.
14190
14191 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14192 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14193 builtin_type_ieee_double_little,
14194 builtin_type_ieee_double_littlebyte_bigword,
14195 builtin_type_m68881_ext, builtin_type_i960_ext,
14196 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14197 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14198 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14199 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14200
14201 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14202
14203 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14204 parameter. Set frameless flag if it exists and depended of
14205 whether the scanned function is frameless or not.
14206 (xstormy16_skip_prologue): If function is frameless, return
14207 result of xstormy16_scan_prologue().
14208 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14209 call.
14210
14211 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14212
14213 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14214 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14215 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14216 sh_sh4_register_byte, sh_sh4_register_raw_size,
14217 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14218 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14219 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14220 sh_store_pseudo_register, sh_do_pseudo_register): Call
14221 gdbarch_tdep() just once, assign result to variable and use that,
14222 instead of calling the function several times.
14223
14224 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14225
14226 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14227 macros instead of LAST_FPU_CTRL_REGNUM.
14228 (store_register): Likewise.
14229
14230 2002-01-21 Jim Blandy <jimb@redhat.com>
14231
14232 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14233 is up-to-date before running the program, not just when a program
14234 exits.
14235
14236 2002-01-21 Fred Fish <fnf@redhat.com>
14237
14238 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14239 when we have found all instructions we are looking for.
14240
14241 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14242
14243 * arm-tdep.c (arm_register_name): New function.
14244 (arm_registers_names): Make static.
14245 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14246 (arm_register_name): Declare.
14247 (REGISTER_NAME): Use it.
14248
14249 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14250 Kevin Buettner <kevinb@redhat.com>
14251
14252 Convert arm targets to new FRAME interface.
14253 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14254 (arm_frame_find_save_regs): Delete.
14255 (arm_frame_init_saved_regs): New.
14256 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14257 Allocate extra_info as required. Convert all uses of fsr.regs
14258 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14259 to use extra_info.
14260 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14261 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14262 (check_prologue_cache, save_prologue_cache): Likewise.
14263 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14264 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14265 (FRAME_FIND_SAVED_REGS): Delete.
14266 (arm_frame_find_saved_regs): Delete prototype.
14267 (arm_frame_init_saved_regs): New prototype.
14268 (FRAME_INIT_SAVED_REGS): Define.
14269
14270 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14271
14272 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14273
14274 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14275
14276 From Jeff Law <law@redhat.com>:
14277 * infttrace.c: Include <sys/pstat.h>.
14278 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14279 exec file if the ttrace equivalent fails.
14280
14281 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14282
14283 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14284 (closeLogFile): Ditto.
14285
14286 2002-01-20 Michael Chastain <mec@shout.net>
14287
14288 * top.c (print_gdb_version): Bump copyright year to 2002.
14289
14290 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14291
14292 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14293 Zannoni and Eli Zaretskii.
14294
14295 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14296
14297 * buildsym.c: Update copyright years.
14298 * c-typeprint.c: Likewise.
14299 * dwarf2read.c: Likewise.
14300 * f-typeprint.c: Likewise.
14301 * gdbtypes.c: Likewise.
14302 * gdbtypes.h: Likewise.
14303 * hp-symtab-read.c: Likewise.
14304 * hpread.c: Likewise.
14305 * mdebugread.c: Likewise.
14306 * p-typeprint.c: Likewise.
14307
14308 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14309
14310 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14311 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14312 byte-order selectable.
14313 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14314 * arch-utils.c: Ditto.
14315 (set_endian): Ditto.
14316 (set_endian_from_file): Ditto.
14317 * gdbserver/low-sim.c (create_inferior): Ditto.
14318 * gdbarch.sh: Ditto.
14319 * gdbarch.h: Re-generate.
14320 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14321 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14322 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14323 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14324 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14325 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14326 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14327 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14328 macro definition.
14329 * config/mips/tm-wince.h: Remove #undef of macro
14330 TARGET_BYTE_ORDER_SELECTABLE.
14331 * config/sh/tm-wince.h: Ditto.
14332
14333 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14334
14335 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14336 member function fields. Add accessor macro
14337 TYPE_FN_FIELD_ARTIFICIAL.
14338 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14339 * c-typeprint.c (c_type_print_base): Skip artificial member
14340 functions.
14341
14342 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14343
14344 * f-typeprint.c: Delete unused function f_type_print_args.
14345 * p-typeprint.c: Delete unused function pascal_type_print_args.
14346
14347 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14348
14349 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14350 comment. Add ``artificial'' to ``union field_location''.
14351
14352 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14353
14354 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14355 * mdebugread.c (parse_symbol): Likewise.
14356 * stabsread.c (define_symbol): Likewise.
14357 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14358 initializing TYPE_FIELD_BITPOS to n (obsolete).
14359 (hpread_doc_function_type): Likewise.
14360 * hpread.c (hpread_function_type): Likewise.
14361
14362 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14363
14364 * configure.in (host_makefile_frag): Only require a host makefile
14365 fragment when a native build.
14366 * configure: Re-generate.
14367
14368 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14369
14370 * doublest.h (floatformat_from_type): Declare.
14371 * doublest.c (floatformat_from_type): New function.
14372 (convert_typed_floating): Use.
14373
14374 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14375 call to function floatformat_from_type.
14376
14377 * gdbarch.sh (IEEE_FLOAT): Delete.
14378 * gdbarch.h, gdbarch.c: Re-generate.
14379 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14380 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14381 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14382 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14383 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14384 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14385 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14386 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14387 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14388 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14389 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14390 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14391
14392 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14393 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14394 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14395 * sh-tdep.c (sh_gdbarch_init): Ditto.
14396 * mips-tdep.c (mips_gdbarch_init): Ditto.
14397 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14398 * cris-tdep.c (cris_gdbarch_init): Ditto.
14399
14400 2002-01-20 Jiri Smid <smid@suse.cz>
14401
14402 * configure.host, configure.tgt: Support x86-64.
14403 * NEWS: Note new target x86-64.
14404
14405 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14406 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14407 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14408 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14409 x86-64-linux-nat.o): Fix dependencies.
14410
14411 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14412
14413 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14414 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14415 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14416 * config/sparc/xm-sun4os4.h: Delete file.
14417 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14418
14419 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14420
14421 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14422 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14423 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14424 * config/i386/i386lynx.mh (XM_FILE): Delete.
14425 * config/rs6000/xm-rs6000ly.h: Delete file.
14426 * config/sparc/xm-sparclynx.h: Delete file.
14427 * config/m68k/xm-m68klynx.h: Delete file.
14428 * config/i386/xm-i386lynx.h: Delete file.
14429 * config/xm-lynx.h: Delete file.
14430 * config/djgpp/fnchange.lst: Update.
14431
14432 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14433
14434 * alpha-tdep.c (alpha_register_byte): New function.
14435 (alpha_register_raw_size): Ditto.
14436 (alpha_register_virtual_size): Ditto.
14437 (alpha_skip_prologue_internal): Renamed from
14438 alpha_skip_prologue.
14439 (alpha_skip_prologue): New version that calls
14440 alpha_skip_prologue_internal.
14441 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14442 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14443 second argument from alpha_skip_prologue.
14444 (REGISTER_BYTE): Use alpha_register_byte.
14445 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14446 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14447 (FRAMELESS_FUNCTION_INVOCATION): Use
14448 generic_frameless_function_invocation_not.
14449 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14450 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14451
14452 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14453
14454 * config/mips/xm-news-mips.h: Delete file.
14455 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14456
14457 * config/m88k/xm-m88k.h: Delete file.
14458 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14459 * config/m88k/xm-delta88v4.h: Ditto.
14460 * config/m88k/xm-delta88.h: Ditto.
14461
14462 * config/alpha/xm-fbsd.h: Delete file.
14463 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14464
14465 * config/sparc/xm-sparc.h: Delete file.
14466 * Makefile.in (xm-sun4os4.h): Delete dependency.
14467 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14468 * config/sparc/xm-sun4os4.h: Ditto.
14469 * config/sparc/xm-linux.h: Ditto.
14470
14471 * config/i386/xm-windows.h: Delete file.
14472
14473 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14474
14475 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14476 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14477
14478 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14479
14480 * alpha-tdep.c (alpha_call_dummy_words): New.
14481 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14482 (CALL_DUMMY_P): Define.
14483 (CALL_DUMMY_WORDS): Define.
14484 (SIZEOF_CALL_DUMMY_WORDS): Define.
14485
14486 2002-01-19 Per Bothner <per@bothner.com>
14487
14488 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14489 isn't NULL, which can happen with some gcj-3.x-produced code.
14490
14491 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14492
14493 * alpha-tdep.c (alpha_register_virtual_type): New function.
14494 (alpha_init_frame_pc_first): Ditto.
14495 (alpha_fix_call_dummy): Ditto.
14496 (alpha_store_struct_return): Ditto.
14497 (alpha_extract_struct_value_address): Ditto.
14498 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14499 alpha_register_virtual_type.
14500 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14501 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14502 alpha_extract_struct_value_address.
14503 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14504 (INIT_FRAME_PC): Use init_frame_pc_noop.
14505 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14506
14507 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14508
14509 * i386gnu-nat.c: Include "i386-tdep.h".
14510 (fetch_fpregs): Simplify code dealing with uninitialized floating
14511 point states such that it doesn't require FP7_REGNUM.
14512
14513 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14514
14515 * alpha-tdep.c (frame_extra_info): New.
14516 (alpha_find_saved_regs): Make static. Use
14517 frame->extra_info.
14518 (alpha_frame_init_saved_regs): New function.
14519 (alpha_frame_saved_pc): Use frame->extra_info.
14520 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14521 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14522 (init_extra_frame_info): Rename to...
14523 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14524 (alpha_print_extra_frame_info): New function.
14525 (alpha_frame_locals_address): Ditto.
14526 (alpha_frame_args_address): Ditto.
14527 (alpha_pop_frame): Use frame->extra_info.
14528 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14529 alpha_frame_args_address.
14530 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14531 (alpha_find_saved_regs): Remove prototype.
14532 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14533 (EXTRA_FRAME_INFO): Remove.
14534 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14535 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14536
14537 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14538
14539 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14540 (alpha_cannot_fetch_register): Ditto.
14541 (alpha_cannot_store_register): Ditto.
14542 (alpha_register_convertible): Ditto.
14543 (alpha_use_struct_convention): Ditto.
14544 * config/alpha/tm-alpha.h: Update copyright years.
14545 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14546 (INNER_THAN): Use core_addr_lessthan.
14547 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14548 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14549 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14550 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14551 (FRAME_CHAIN): Remove unnecessary cast.
14552
14553 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14554
14555 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14556 obsolete.
14557
14558 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14559
14560 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14561 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14562 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14563 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14564 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14565 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14566 * x86-64-linux-nat.c: Ditto.
14567
14568 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14569
14570 * alpha-tdep.c (alpha_register_name): New function.
14571 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14572 (REGISTER_NAME): Define.
14573
14574 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14575
14576 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14577
14578 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14579
14580 * alpha-tdep.c: Update copyright years.
14581 (alpha_next_pc): New function.
14582 (alpha_software_single_step): Ditto.
14583 * config/alpha/tm-alpha.h: Add prototype for
14584 alpha_software_single_step.
14585
14586 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14587
14588 * alphabsd-nat.c: Update copyright years.
14589 (fill_gregset): Use regcache_collect.
14590 (fill_fpregset): Likewise.
14591 (fetch_inferior_registers): Only fetch integer registers
14592 if requested to do so.
14593 (store_inferior_registers): Only store integer registers
14594 if requested to do so.
14595
14596 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14597
14598 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14599 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14600 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14601 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14602 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14603 * config/arm/linux.mh (XDEPFILES): Delete.
14604 * config/arm/nbsd.mh (XDEPFILES): Delete.
14605 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14606 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14607 * config/i386/i386m3.mh (XDEPFILES): Delete.
14608 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14609 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14610 * config/i386/fbsd.mh (XDEPFILES): Delete.
14611 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14612 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14613 * config/i386/i386v4.mh (XDEPFILES): Delete.
14614 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14615 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14616 * config/i386/i386aix.mh (XDEPFILES): Delete.
14617 * config/i386/go32.mh (XDEPFILES): Delete.
14618 * config/i386/cygwin.mh (XDEPFILES): Delete.
14619 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14620 * config/i386/i386mach.mh (XDEPFILES): Delete.
14621 * config/i386/i386v32.mh (XDEPFILES): Delete.
14622 * config/i386/linux.mh (XDEPFILES): Delete.
14623 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14624 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14625 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14626 * config/i386/i386sco.mh (XDEPFILES): Delete.
14627 * config/i386/i386v.mh (XDEPFILES): Delete.
14628 * config/i386/nbsd.mh (XDEPFILES): Delete.
14629 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14630 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14631 * config/i386/symmetry.mh (XDEPFILES): Delete.
14632 * config/i386/obsd.mh (XDEPFILES): Delete.
14633 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14634 * config/ia64/linux.mh (XDEPFILES): Delete.
14635 * config/ia64/aix.mh (XDEPFILES): Delete.
14636 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14637 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14638 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14639 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14640 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14641 * config/m68k/linux.mh (XDEPFILES): Delete.
14642 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14643 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14644 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14645 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14646 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14647 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14648 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14649 * config/m88k/delta88.mh (XDEPFILES): Delete.
14650 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14651 * config/m88k/m88k.mh (XDEPFILES): Delete.
14652 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14653 * config/mips/linux.mh (XDEPFILES): Delete.
14654 * config/mips/irix6.mh (XDEPFILES): Delete.
14655 * config/mips/irix5.mh (XDEPFILES): Delete.
14656 * config/mips/irix4.mh (XDEPFILES): Delete.
14657 * config/mips/irix3.mh (XDEPFILES): Delete.
14658 * config/mips/decstation.mh (XDEPFILES): Delete.
14659 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14660 (NATDEPFILES): Move core-aout.o to here.
14661 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14662 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14663 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14664 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14665 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14666 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14667 * config/pa/hpux11.mh (XDEPFILES): Delete.
14668 * config/powerpc/aix.mh (XDEPFILES): Delete.
14669 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14670 * config/powerpc/linux.mh (XDEPFILES): Delete.
14671 * config/romp/rtbsd.mh: Rename XDEPFILES.
14672 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14673 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14674 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14675 * config/s390/s390.mh (XDEPFILES): Delete.
14676 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14677 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14678 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14679 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14680 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14681 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14682 * config/sparc/linux.mh (XDEPFILES): Delete.
14683 * config/vax/vaxult.mh (XDEPFILES): Delete.
14684 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14685 * Makefile.in (DEPFILES): Remove XDEPFILES.
14686
14687 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14688
14689 * utils.c (internal_verror): Fix comments, default is yes not no.
14690 Update queries to match. Default to quit and dump core.
14691
14692 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14693
14694 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14695 copyright.
14696 * defs.h, event-top.c, gdbcmd.h: Ditto.
14697 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14698 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14699 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14700 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14701 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14702 * mi/mi-main.c:Ditto.
14703
14704 * stack.c, symfile.c: Update copyright.
14705
14706 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14707
14708 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14709 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14710 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14711 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14712
14713 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14714
14715 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14716 * gdbserver/low-lynx.c (myattach): Likewise.
14717 * gdbserver/low-nbsd.c (myattach): Likewise.
14718 * gdbserver/low-sim.c (myattach): Likewise.
14719 * gdbserver/low-sparc.c (myattach): Likewise.
14720 * gdbserver/low-sun3.c (myattach): Likewise.
14721
14722 * gdbserver/low-linux.c (myattach): New function.
14723
14724 * gdbserver/server.c (attach_inferior): New function.
14725 (main): Handle "--attach".
14726
14727 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14728
14729 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14730 maintainer.
14731
14732 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14733
14734 * c-typeprint.c (is_type_conversion_operator): Add additional
14735 check for non-conversion operators.
14736
14737 2002-01-15 Michael Snyder <msnyder@redhat.com>
14738
14739 * linux-proc.c: Add "info proc" command, a la procfs.c.
14740 (read_mapping): New function, abstract and re-use code.
14741 (linux_find_memory_regions): Use new func read_mapping.
14742 (linux_info_proc_cmd): New function, implement "info proc".
14743 (_initialize_linux_proc): Add new command "info proc".
14744
14745 2002-01-15 Michael Snyder <msnyder@redhat.com>
14746
14747 * symfile.c (generic_load): Use bfd_map_over_sections method
14748 instead of manipulating bfd structure members directly.
14749 (add_section_size_callback): New function, bfd sections callback
14750 used by generic_load.
14751 (load_sections_callback): New function, bfd sections callback
14752 used by generic_load.
14753
14754 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14755
14756 [Based on work by Jim Blandy]
14757 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14758 (builtin_type_vec128): Export.
14759 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14760 types.
14761 (builtin_type_vec128): New builtin type for 128 bit vector
14762 registers.
14763 (build_gdbtypes): Initialize builtin_type_v16qi and
14764 builtin_type_v8hi. Create the vec128 register builtin type
14765 structure.
14766 (build_builtin_type_vec128): New function.
14767 (_initialize_gdbtypes): Register builtin_type_v16qi and
14768 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14769 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14770 AltiVec register to new builtin type.
14771
14772 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14773
14774 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14775 to make_cv_type.
14776
14777 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14778
14779 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14780 CLEAN_UP_REGISTER_VALUE.
14781 * regcache.c (supply_register): Update only call.
14782
14783 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14784
14785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14787 a29k-*-vxworks* targets as obsolete.
14788
14789 2002-01-14 Michael Snyder <msnyder@redhat.com>
14790
14791 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14792 until we can resolve portability issues.
14793 * gregset.h: Remove references to fpxregs.
14794 * gcore.c (gcore_command): Initialize note_sec to NULL.
14795
14796 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14797
14798 * signals.c (target_signal_to_name): Rewrite. Only use
14799 signals[].name when in bounds and non-NULL.
14800
14801 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14802
14803 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14804 * signals.c (target_signal_to_name): Verify that SIG is within the
14805 bounds of the signals array.
14806
14807 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14808
14809 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14810
14811 2002-01-13 Keith Seitz <keiths@redhat.com>
14812
14813 * stack.c (print_frame_info_base): Print the frame's pc
14814 only if when print_frame_info_listing_hook is not defined.
14815
14816 2002-01-13 Keith Seitz <keiths@redhat.com>
14817
14818 * varobj.c (varobj_set_value): Make sure that there were no
14819 errors evaluating the object before attempting to set its
14820 value.
14821 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14822 so this offset adjustment is no longer necessary.
14823 (create_child): Don't set the error flag if the child is
14824 a CPLUS_FAKE_CHILD.
14825 (value_of_child): If value_fetch_lazy fails, return NULL
14826 so that callers will be notified that an error occurred.
14827 (c_value_of_variable): Delay check of variable's validity
14828 until later. We actually want all structs and unions to have
14829 the value "{...}".
14830 Do not return "???" for variables which could not be evaluated.
14831 This error condition must be returned to the caller so that it
14832 can get the error condition from gdb.
14833 (cplus_name_of_child): Adjust index for vptr before figuring
14834 out the name of the child.
14835 (cplus_value_of_child): If a child's (real) parent is not valid,
14836 don't even bother trying to give a value for it. Just return
14837 an error. Change all instances in this function.
14838 (cplus_type_of_child): If our parent is one of the "fake"
14839 parents, we need to get at the type of the real parent, and
14840 derive the child's true type using this information.
14841
14842 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14843
14844 From 2002-01-09 John Marshall <johnm@falch.net>:
14845 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14846 sources.redhat.com, and tweak some related URLs which had
14847 suffered from linkrot.
14848
14849 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14850
14851 From Jeff law:
14852 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14853 structures passed in registers.
14854
14855 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14856
14857 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14858 white space which prevented compilation. Reported by DSK
14859 <dsk@student.unsw.edu.au>.
14860
14861 2002-01-11 Michael Snyder <msnyder@redhat.com>
14862
14863 * symfile.c (build_section_addr_info_from_section_tab):
14864 Use bfd access method instead of manipulating bfd directly.
14865 (syms_from_objfile): Ditto.
14866 (simple_overlay_update_1): Ditto.
14867 (simple_overlay_update): Ditto.
14868 (generic_load): Ditto.
14869 (overlay_unmapped_address): FIXME comment, bfd access methods.
14870 (sections_overlap): FIXME comment, bfd access methods.
14871 (pc_in_mapped_range): FIXME comment, bfd access methods.
14872 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14873 (section_is_mapped): FIXME comment, bfd access methods.
14874 (section_is_overlay): FIXME comment, bfd access methods.
14875
14876 * symfile.c (generic_load): Whitespace and long line cleanups.
14877 Remove duplicate variable, change several local variables to
14878 more appropriate data types.
14879 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14880
14881 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14882
14883 From Peter Schauer:
14884 * language.c (longest_local_hex_string_custom): Use phex_nz to
14885 convert NUM to a hex string.
14886
14887 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14888
14889 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14890 the function.
14891 Update Copyright year.
14892
14893 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14894
14895 * language.c (longest_raw_hex_string): Delete unused function.
14896
14897 2002-01-11 Petr Sorfa <petrs@caldera.com>
14898
14899 * MAINTAINERS (write-after-approval): Add myself.
14900 * dwarf2read.c (read_tag_string_type): Handling of
14901 DW_AT_byte_size.
14902 (read_tag_string_type): FORTRAN fix to prevent propagation of
14903 first string size.
14904 (set_cu_language): Handling of DW_LANG_Fortran95
14905
14906 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14907
14908 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14909 GETPID(inferior_ptid).
14910 (store_inferior_registers): Likewise.
14911
14912 2002-01-10 Jason Merrill <jason@redhat.com>
14913
14914 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14915 Fix DW_OP_minus.
14916
14917 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14918
14919 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14920 and bfd/elf32-sh-nbsd.c.
14921
14922 2002-01-10 Michael Snyder <msnyder@redhat.com>
14923
14924 * NEWS: Mention --pid and corefile/proc-id behavior change.
14925
14926 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14927 * gcore.c: Include cli/cli-decode.h instead of command.h.
14928
14929 * main.c (captured_main): Add new command line option "--pid".
14930 If the second command line argument (following the symbol-file)
14931 begins with a digit, try to attach to it before trying to open
14932 it as a corefile.
14933 (print_gdb_help): Document the "--pid" argument.
14934
14935 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14936
14937 * completer.c (command_completer): New function.
14938
14939 * completer.h <command_completer>: Add prototype.
14940
14941 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14942 completer for the "help" command.
14943
14944 2002-01-09 Jason Merrill <jason@redhat.com>
14945
14946 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14947
14948 2002-01-09 Michael Snyder <msnyder@redhat.com>
14949
14950 * i386-linux-nat.c (fill_fpxregset): Make global.
14951 (store_fpxregset): Ditto.
14952
14953 * gregset.h (gdb_fpxregset_t): Define.
14954 (supply_fpxregset): Prototype.
14955 (fill_fpxregset): Prototype.
14956
14957 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14958
14959 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14960
14961 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14962 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14963 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14964
14965 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14966
14967 * MAINTAINERS: Update target maintainer rules so that any
14968 Maintainer can approve a tested patch for a maintenance-only
14969 target.
14970
14971 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14972
14973 * MAINTAINERS (write-after-approval): Add myself.
14974
14975 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14976 IN_SIGTRAMP.
14977
14978 2002-01-08 Michael Snyder <msnyder@redhat.com>
14979
14980 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14981 real name of the executable, rather than the /proc name.
14982
14983 2002-01-03 Michael Snyder <msnyder@redhat.com>
14984
14985 Implement a "generate-core-file" command in gdb, save target state.
14986 * gcore.c: New file. Implement new command 'generate-core-file'.
14987 Save a corefile image of the current state of the inferior.
14988 * linux-proc.c: Add linux-specific code for saving corefiles.
14989 * target.h (struct target_ops): Add new target vectors for saving
14990 corefiles; to_find_memory_regions and to_make_corefile_notes.
14991 (target_find_memory_regions): New macro.
14992 (target_make_corefile_notes): New macro.
14993 * target.c (update_current_target): Inherit new target methods.
14994 (dummy_find_memory_regions): New place-holder method.
14995 (dummy_make_corefile_notes): New place-holder method.
14996 (init_dummy_target): Initialize new dummy target vectors.
14997 * exec.c (exec_set_find_memory_regions): New function.
14998 Allow the exec_ops vector for memory regions to be taken over.
14999 (exec_make_note_section): New function, target vector method.
15000 * defs.h (exec_set_find_memory_regions): Export prototype.
15001 * procfs.c (proc_find_memory_regions): New function, corefile method.
15002 (procfs_make_note_section): New function, corefile method.
15003 (init_procfs_ops): Set new target vector pointers.
15004 (find_memory_regions_callback): New function.
15005 (procfs_do_thread_registers): New function.
15006 (procfs_corefile_thread_callback): New function.
15007 * sol-thread.c (sol_find_memory_regions): New function.
15008 (sol_make_note_section): New function.
15009 (init_sol_thread_ops): Initialize new target vectors.
15010 * inftarg.c (inftarg_set_find_memory_regions): New function.
15011 Allow to_find_memory_regions vector to be taken over.
15012 (inftarg_set_make_corefile_notes): New function.
15013 Allow to_make_corefile_notes vector to be taken over.
15014 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15015 interface layer if not target_has_execution (may be a corefile).
15016 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15017 * config/sparc/sun4sol2.mh: Ditto.
15018 * config/alpha/alpha-linux.mh: Ditto.
15019 * config/arm/linux.mh: Ditto.
15020 * config/i386/x86-64linux.mh: Ditto.
15021 * config/ia64/linux.mh: Ditto.
15022 * config/m68k/linux.mh: Ditto.
15023 * config/mips/linux.mh: Ditto.
15024 * config/powerpc/linux.mh: Ditto.
15025 * config/sparc/linux.mh: Ditto.
15026
15027 2002-01-07 Michael Snyder <msnyder@redhat.com>
15028
15029 * arm-linux-nat.c: Remove references to regcache.c internal data
15030 (registers[] and register_valid[]).
15031
15032 2002-01-07 Michael Snyder <msnyder@redhat.com>
15033
15034 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15035 so that attaching to a pid will automatically read the process's
15036 symbol file and shlibs.
15037 * Makefile.in: Add rule for linux-proc.o.
15038 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15039 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15040 * config/arm/linux.mh: Ditto.
15041 * config/i386/linux.mh: Ditto.
15042 * config/i386/x86-64linux.mh: Ditto.
15043 * config/ia64/linux.mh: Ditto.
15044 * config/m68k/linux.mh: Ditto.
15045 * config/mips/linux.mh: Ditto.
15046 * config/powerpc/linux.mh: Ditto.
15047 * config/sparc/linux.mh: Ditto.
15048
15049 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15050
15051 * win32-nat.c: Add i386-tdep.h dependency.
15052
15053 2002-01-07 Michael Snyder <msnyder@redhat.com>
15054
15055 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15056 instead of bfd_get_arch_size. Don't bail out just because
15057 there's no exec_bfd.
15058
15059 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15060 * p-valprint.c (pascal_object_print_value): Ditto.
15061 * somread.c (som_symtab_read): Ditto.
15062 * symfile.c (simple_free_overlay_region_table): Ditto.
15063 * valops.c (value_assign): Ditto.
15064
15065 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15066 use tilde_expand and strerror for opening save-tracepoints file.
15067
15068 * thread-db.c (thread_db_new_objfile): Indendation fix.
15069
15070 * infptrace.c (GDB_MAX_ALLOCA): New define.
15071 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15072 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15073 can be overridden with whatever value is appropriate to the host).
15074 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15075 alloca to allocate potentially large buffer.
15076 * rs6000-nat.c (child_xfer_memory): Ditto.
15077 * symm-nat.c (child_xfer_memory): Ditto.
15078 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15079
15080 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15081
15082 From Nick Clifton <nickc@redhat.com>
15083 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15084
15085 2002-01-07 Michael Snyder <msnyder@redhat.com>
15086
15087 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15088 Don't use exec_bfd if it's NULL.
15089
15090 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15091
15092 * valops.c (value_arg_coerce): Fix formatting.
15093
15094 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15095
15096 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15097 * gnu-nat.c: Ditto.
15098
15099 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15100
15101 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15102 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15103 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15104 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15105 z8k-coff have not been multi-arched. Update z8k-coff build
15106 status.
15107
15108 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15109
15110 * MAINTAINERS: Mark a29k target as obsolete.
15111 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15112 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15113 comments.
15114 * NEWS: Note that a29k targets are obsolete.
15115 * a29k-tdep.c: Mark as obsolete.
15116 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15117 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15118 a29k-*-vxworks* targets as obsolete.
15119 * remote-adapt.c: Obsolete.
15120 * remote-eb.c: Obsolete.
15121 * remote-mm.c: Obsolete.
15122 * remote-udi.c: Obsolete.
15123 * config/a29k/a29k-udi.mt: Obsolete.
15124 * config/a29k/a29k.mt: Obsolete.
15125 * config/a29k/tm-a29k.h: Obsolete.
15126 * config/a29k/tm-vx29k.h: Obsolete.
15127 * config/a29k/vx29k.mt: Obsolete.
15128
15129 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15130
15131 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15132 with BFD_ENDIAN_BIG.
15133
15134 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15135
15136 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15137 * configure, config.in: Re-generate.
15138 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15139 * defs.h: Do not include <endian.h>.
15140
15141 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15142
15143 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15144 * config.in: Regenerate.
15145 * configure.in: Update copyright years.
15146 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15147 * configure: Regenerate.
15148 * i386bsd-nat.c: Update copyright years.
15149 (fill_gregset): Use regcache_collect.
15150 (fetch_inferior_registers): Only fetch integer registers
15151 if requested to do so. Add support for XMM registers
15152 using PT_GETXMMREGS.
15153 (store_inferior_registers): Only store integer registers
15154 if requested to do so. Add support for XMM registers
15155 using PT_SETXMMREGS.
15156 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15157 (store_inferior_registers): Remove.
15158 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15159 (fetch_elfcore_registers): New function.
15160 (i386nbsd_elfcore_fns): New.
15161 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15162 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15163 i386bsd-nat.o.
15164 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15165 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15166 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15167 * config/i386/tm-nbsd.h: Update copyright years.
15168 (HAVE_SSE_REGS): Define.
15169 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15170 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15171 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15172 (SIGCONTEXT_PC_OFFSET): Remove.
15173 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15174
15175 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15176
15177 * configure.tgt: Remove powerpc-*-macos* target.
15178 * config/m68k/xm-mpw.h: Delete file.
15179 * config/xm-mpw.h: Delete file.
15180 * ser-mac.c: Delete file.
15181 * mpw-make.sed: Delete file.
15182 * mpw-config.in: Delete file.
15183 * mac-xdep.c: Delete file.
15184 * mac-gdb.r: Delete file.
15185 * mac-defs.h: Delete file.
15186 * mac-nat.c: Delete file.
15187 * config/powerpc/macos.mh: Delete file.
15188 * config/powerpc/macos.mt: Delete file.
15189 * config/powerpc/nm-macos.h: Delete file.
15190 * config/powerpc/tm-macos.h: Delete file.
15191 * source.c (openp, open_source_file): Remove obsolete code.
15192 * top.c (gdb_readline): Ditto.
15193 * utils.c (query): Ditto.
15194 * event-top.c (display_gdb_prompt): Ditto.
15195 * Makefile.in (ser-mac.o): Delete obsolete target.
15196 * NEWS: Update.
15197
15198 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15199
15200 * defs.h (BIG_ENDIAN): Delete macro definition.
15201 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15202 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15203 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15204 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15205 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15206 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15207 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15208 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15209 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15210 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15211 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15212 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15213 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15214 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15215 * gdbarch.c: Re-generate.
15216
15217 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15218
15219 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15220 for core files.
15221
15222 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15223
15224 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15225
15226 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15227
15228 * value.h (value_ptr): Delete typedef.
15229
15230 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15231
15232 * i386nbsd-nat.c: Update copyright years.
15233 Include i386-tdep.h.
15234
15235 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15236
15237 * stabsread.c: Update copyright years.
15238
15239 From Debashis Mahata <debashis.mahata@wipro.com>:
15240 (read_struct_fields): Deal with Sun C compiler erroneous stab
15241 output for structs and unions.
15242 Fix PR gdb/269.
15243
15244 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15245
15246 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15247 prototype.
15248
15249 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15250
15251 * cp-abi.c: Fix whitespace.
15252 (baseclass_offset): New wrapper function.
15253 * cp-abi.h (baseclass_offset): Add prototype.
15254 (struct cp_abi_ops): Add baseclass_offset pointer.
15255
15256 * valops.c (vb_match): Move to...
15257 * gnu-v2-abi.c (vb_match): here.
15258 * valops.c (baseclass_offset): Move to...
15259 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15260
15261 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15262
15263 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15264 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15265 * hpacc-abi.c (init_hpacc_ops): Likewise.
15266
15267 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15268
15269 * valops.c (find_overload_match): Accept obj as a
15270 reference parameter. Update it before returning.
15271 * value.h (find_overload_match): Update prototype.
15272 * eval.c (evaluate_subexp_standard): Pass object to
15273 find_overload_match by reference.
15274
15275 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15276
15277 * valarith.c: Replace value_ptr with struct value pointer. Remove
15278 register attribute from value declarations.
15279 * valops.c: Ditto.
15280 * value.h: Ditto.
15281 * scm-lang.c (scm_lookup_name): Ditto.
15282
15283 2002-01-03 Michael Snyder <msnyder@redhat.com>
15284
15285 Abstract the functionality of iterating over mapped memory
15286 regions into a general purpose iterator function.
15287 * procfs.c (iterate_over_mappings): New function, general purpose
15288 iterator for memory sections.
15289 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15290 (solib_mappings_callback): New function, callback for above.
15291 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15292 (info_mappings_callback): New function, callback for above.
15293
15294 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15295
15296 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15297
15298 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15299 * i386-tdep.c: Include "elf-bfd.h".
15300 (process_note_abi_tag_sections): New function.
15301 (i386_gdbarch_init): Add code to recognize various OS/ABI
15302 combinations.
15303
15304 * maint.c (_initialize_maint_cmds): Add missing \ in
15305 string-literal.
15306
15307 For older changes see ChangeLog-2001
15308 \f
15309 Local Variables:
15310 mode: change-log
15311 left-margin: 8
15312 fill-column: 74
15313 version-control: never
15314 End:
This page took 0.333859 seconds and 5 git commands to generate.