* Makefile.in (acconfig_h): Remove incorrect macro.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
2
3 * Makefile.in (acconfig_h): Remove incorrect macro.
4 (config_h): Define.
5 (osabi.o): Update dependencies.
6 * configure.tgt: Set gdb_osabi based on target triplet.
7 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
8 * configure: Regenerated.
9 * config.in: Regenerated.
10 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11 (GDB_OSABI_DEFAULT): Define if not already defined.
12 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
13 (set_osabi_string): New variables.
14 (gdbarch_register_osabi): Add new OS ABI to
15 gdb_osabi_available_names.
16 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
17 (set_osabi, show_osabi): New functions.
18 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
19
20 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
21
22 * arch-utils.c (gdbarch_info_init): Set osabi to
23 GDB_OSABI_UNINITIALIZED.
24 * gdbarch.sh: Add osabi to struct gdbarch and to struct
25 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
26 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
27 * gdbarch.c: Regenerated.
28 * gdbarch.h: Regenerated.
29 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
30 there's no BFD.
31 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
32 * osabi.h (enum gdb_osabi): Move to defs.h.
33 (gdbarch_init_osabi): Update prototype.
34 * defs.h (enum gdb_osabi): Moved here.
35 * Makefile.in: Update dependencies.
36
37 * alpha-tdep.h: Don't include "osabi.h".
38 (struct gdbarch_tdep): Remove osabi member.
39 * alpha-tdep.c: Include "osabi.h".
40 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
41 iterate over arches. Update call to gdbarch_init_osabi.
42 (alpha_dump_tdep): Don't dump osabi.
43 * alpha-linux-tdep.c: Include "osabi.h".
44 * alpha-osf1-tdep.c: Include "osabi.h".
45 * alphafbsd-tdep.c: Include "osabi.h".
46 * alphanbsd-tdep.c: Include "osabi.h".
47
48 * arm-tdep.h: Don't include "osabi.h".
49 (struct gdbarch_tdep): Remove osabi member.
50 * arm-tdep.c: Include "osabi.h".
51 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
52 iterate over arches. Update call to gdbarch_init_osabi.
53 (arm_dump_tdep): Don't dump osabi.
54 * arm-linux-tdep.c: Include "osabi.h".
55 * armnbsd-tdep.c: Include "osabi.h".
56
57 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
58 Update call to gdbarch_init_osabi.
59
60 * i386-tdep.h: Don't include "osabi.h".
61 (struct gdbarch_tdep): Remove osabi member.
62 * i386-tdep.c: Include "osabi.h".
63 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
64 iterate over arches. Update call to gdbarch_init_osabi.
65 (i386_dump_tdep): Don't dump osabi.
66 * i386-linux-tdep.c: Include "osabi.h".
67 * i386-sol2-tdep.c: Include "osabi.h".
68 * i386bsd-tdep.c: Include "osabi.h".
69 * i386gnu-tdep.c: Include "osabi.h".
70 * i386ly-tdep.c: Include "osabi.h".
71 * i386nbsd-tdep.c: Include "osabi.h".
72 * i386obsd-tdep.c: Include "osabi.h".
73
74 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
75 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
76 check osabi when iterating over arches. Update call to
77 gdbarch_init_osabi.
78 (mips_dump_tdep): Don't dump osabi.
79
80 * ns32k-tdep.h: Don't include "osabi.h".
81 (struct gdbarch_tdep): Remove.
82 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
83 gdbarch_lookup_osabi. Don't iterate over arches. Don't
84 allocate tdep. Update call to gdbarch_init_osabi.
85 (ns32k_dump_tdep): Remove.
86 (_initialize_ns32k_tdep): Update call to gdbarch_register.
87 * ns32knbsd-tdep.c: Include "osabi.h".
88
89 * ppc-tdep.h: Don't include "osabi.h".
90 (struct gdbarch_tdep): Remove osabi member.
91 * rs6000-tdep.c: Include "osabi.h".
92 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
93 osabi when iterating over arches. Update call to
94 gdbarch_init_osabi.
95 (rs6000_dump_tdep): Don't dump osabi.
96 * ppc-linux-tdep.c: Include "osabi.h".
97 * ppcnbsd-tdep.c: Include "osabi.h".
98
99 * sh-tdep.h: Don't include "osabi.h".
100 (struct gdbarch_tdep): Remove osabi member.
101 * sh-tdep.c: Include "osabi.h".
102 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
103 iterate over arches. Update call to gdbarch_init_osabi.
104 (sh_dump_tdep): Don't dump osabi.
105 * shnbsd-tdep.c: Include "osabi.h".
106
107 * sparc-tdep.c: Include "osabi.h".
108 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
109 iterate over arches. Update call to gdbarch_init_osabi.
110 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
111 tdep structure.
112
113 * vax-tdep.h: Don't include "osabi.h".
114 (struct gdbarch_tdep): Remove.
115 * vax-tdep.c: Include "osabi.h".
116 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
117 iterate over arches. Don't allocate tdep. Update call
118 to gdbarch_init_osabi.
119 (vax_dump_tdep): Remove.
120 (_initialize_vax_tdep): Update call to gdbarch_register.
121
122 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
123
124 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
125 entirely.
126 (breakpoint_re_set_one): Don't fetch the value for a disabled
127 watchpoint.
128
129 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
130
131 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
132 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
133 (COERCE_FLOAT_TO_DOUBLE): Remove.
134 * gdbarch.c: Regenerate.
135 * gdbarch.h: Regenerate.
136 * Makefile.in: Remove value_h from gdbarch_h.
137 * valops.c (coerce_float_to_double): New variable.
138 (default_coerce_float_to_double): Remove.
139 (standard_coerce_float_to_double): Remove.
140 (value_arg_coerce): Use coerce_float_to_double.
141 (_initialize_valops): Add "set coerce-float-to-double".
142 * value.h (default_coerce_float_to_double): Remove prototype.
143 (standard_coerce_float_to_double): Remove prototype.
144
145 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
146 prototyped.
147 * mdebugread.c (parse_symbol): Likewise.
148 * stabsread.c (define_symbol): Mark all functions as prototyped.
149
150 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
151 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
152 set_gdbarch_coerce_float_to_double.
153 * arm-tdep.c (arm_gdbarch_init): Likewise.
154 * frv-tdep.c (frv_gdbarch_init): Likewise.
155 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
156 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
157 * mips-tdep.c (mips_gdbarch_init): Likewise.
158 (mips_coerce_float_to_double): Remove.
159 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
160 (rs6000_coerce_float_to_double): Remove.
161 * s390-tdep.c (s390_gdbarch_init): Likewise.
162 * sh-tdep.c (sh_gdbarch_init): Likewise.
163 (sh_coerce_float_to_double): Remove.
164 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
165 (sparc_coerce_float_to_double): Remove.
166 * v850-tdep.c (v850_gdbarch_init): Likewise.
167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
168 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
169 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
170 (hppa_coerce_float_to_double): Remove prototype.
171 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
172
173 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
174
175 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
176
177 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
178
179 Suggested by Stewart Brown <sb24@avaya.com>:
180 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
181 in recursive calls. Handle TYPE_CODE_TYPEDEF.
182 (c_type_print_varspec_suffix): Likewise.
183
184 2003-01-04 Mark Kettenis <kettenis@gnu.org>
185
186 * configure.in: Don't set and AC_SUBST SUBDIRS.
187 * configure: Regenerated.
188
189 * configure.in: Remove code dealing with shared libraries.
190 * Makefile.in: Remove HLDFLAGS and HLDENV.
191 * configure: Regenerated.
192
193 2003-01-04 Andrew Cagney <ac131313@redhat.com>
194
195 * frame.c (deprecated_frame_xmalloc): New function.
196 (deprecated_set_frame_saved_regs_hack): New function.
197 (deprecated_set_frame_extra_info_hack): New function.
198 * frame.h (deprecated_frame_xmalloc): Declare.
199 (deprecated_set_frame_saved_regs_hack): Declare.
200 (deprecated_set_frame_extra_info_hack): Declare.
201
202 2003-01-04 Mark Kettenis <kettenis@gnu.org>
203
204 * configure.in: Move code that provides the --enable-gdbtk option
205 right after the code that handles the --enable-tui option, and
206 polish it somewhat.
207 * configure: Regenerated.
208
209 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
210 AC_CHECK_FUNCS and remove the old check for pread64.
211 * acinclude.m4 (AC_GNU_SOURCE): New macro.
212 * acconfig.h (_GNU_SOURCE): Add.
213 (HAVE_PREAD64): Remove.
214 * configure, aclocal.m4, config.in: Regenerated.
215
216 2003-01-03 Andrew Cagney <ac131313@redhat.com>
217
218 * alpha-tdep.c: Use get_frame_saved_regs.
219 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
220 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
221 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
222 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
223 * vax-tdep.c, xstormy16-tdep.c: Ditto.
224
225 2003-01-03 Mark Kettenis <kettenis@gnu.org>
226
227 * configure.in: Remove all use of the SUBDIRS variable; add
228 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
229 code providing the --enable-multi-ice option, and move it right in
230 front of the code that checks whether gdbserver is supported.
231 Polish that too.
232 * configure: Regenerated.
233 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
234 @SUBDIRS@.
235
236 2003-01-03 Andrew Cagney <cagney@redhat.com>
237
238 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
239 * avr-tdep.c, cris-tdep.c: Ditto.
240 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
241 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
242
243 2003-01-03 Mark Kettenis <kettenis@gnu.org>
244
245 * configure.in: Remove --enable-netrom option.
246 * configure: Regenerated.
247
248 2003-01-03 Mark Kettenis <kettenis@gnu.org>
249
250 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
251 declaration for `struct re_pattern_buffer' instead.
252 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
253
254 2003-01-03 J. Brobecker <brobecker@gnat.com>
255
256 * mdebugread.c (parse_symbol): Count until the stEnd matching
257 the structure name.
258
259 2003-01-02 Mark Kettenis <kettenis@gnu.org>
260
261 * configure.in: Remove --with-cpu option.
262 subscripts. Remove evil changequotes here.
263 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
264 * config.in, configure: Regenerated.
265
266 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
267 * configure.in: Cleanup section that sources GDB and BFD configure
268 subscripts. Remove evil changequotes here.
269 * config.in, configure: Regenerated.
270
271 2003-01-02 Andrew Cagney <ac131313@redhat.com>
272
273 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
274 frame accessor methods.
275 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
276 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
277 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
278 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
279 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
280 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
281 * z8k-tdep.c: Ditto.
282
283 2003-01-02 Mark Kettenis <kettenis@gnu.org>
284
285 * configure.in: Remove UI_OUT configuration code.
286 * ada-lang.c: Update assuming UI_OUT is always true.
287 * Makefile.in (UIOUT_CFLAGS): Remove.
288 * configure: Regenerated.
289 * TODO: Remove blurb about elimination of -DUI_OUT.
290
291 * configure.in: Move code that provides the --enable-gdbcli,
292 --enable-gdbmi options right before the code that handles the
293 --enable-tui option. Polish a bit.
294 * configure: Regenerated.
295
296 * configure.in: Rewrite check for GNU regex and the
297 --without-included regex option, and move it into the "Checks for
298 library functions" section. This makes us use the system regex
299 again by default on systems with version 2 of the GNU C library.
300 This was apparently broken.
301 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
302 * acconfig.h (USE_INCLUDED_REGEX): Remove.
303 * config.in, configure: Regenerated.
304
305 * configure.in: Move code that provides the --enable-tui option
306 before the "Checks for libraries" section. Polish the code
307 somewhat and set need_curses to yes if we build the TUI. Rewrite
308 code that looks for a library providing termcap functionality to
309 match more closely what's done in the Readline library, and move
310 it into to the "Checks for libraries" section.
311 * configure: Regenerated.
312 * Makefile.in (TERMCAP): Remove variable.
313 * config/i386/go32.mh (TERMCAP): Remove variable.
314
315 2003-01-02 Andrew Cagney <ac131313@redhat.com>
316
317 * MAINTAINERS: Mention gdb_mbuild.sh.
318 * gdb_mbuild.sh: Rewrite.
319
320 2003-01-02 Mark Kettenis <kettenis@gnu.org>
321
322 * configure.in: Fix typo in last change.
323 * config.in, configure: Regenerated.
324
325 2003-01-02 Andrew Cagney <ac131313@redhat.com>
326
327 * valarith.c (value_binop): Delete obsolete code and comments.
328 * configure.host: Ditto.
329 * buildsym.h (make_blockvector): Ditto.
330 * buildsym.c (make_blockvector): Ditto.
331 * defs.h (enum language): Ditto.
332 (chill_demangle): Ditto.
333 * elfread.c (elf_symtab_read): Ditto.
334 * dwarfread.c (CHILL_PRODUCER): Ditto.
335 (set_cu_language): Ditto.
336 (handle_producer): Ditto.
337 * expprint.c (print_subexp): Ditto.
338 * gdbtypes.c (chill_varying_type): Ditto.
339 * gdbtypes.h (builtin_type_chill_bool): Ditto.
340 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
341 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
342 (chill_varying_type): Ditto.
343 * language.h (_LANG_chill): Ditto.
344 * language.c (binop_result_type, integral_type): Ditto.
345 (character_type, string_type, structured_type): Ditto.
346 (lang_bool_type, binop_type_check): Ditto.
347 * stabsread.h (os9k_stabs): Ditto.
348 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
349 (define_symbol, read_type, read_struct_fields): Ditto.
350 (read_array_type, read_enum_type, read_huge_number): Ditto.
351 (read_range_type, start_stabs): Ditto.
352 * symfile.c (init_filename_language_table): Ditto.
353 (add_psymbol_with_dem_name_to_list): Ditto.
354 * symtab.c (symbol_init_language_specific): Ditto.
355 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
356 * symtab.h (struct general_symbol_info): Ditto.
357 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
358 * typeprint.c (typedef_print): Ditto.
359 * utils.c (fprintf_symbol_filtered): Ditto.
360 * valops.c (value_cast, search_struct_field, value_slice): Delete
361 obsolete code.
362 (varying_to_slice): Delete function.
363 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
364 (varying_to_slice): Delete declaration.
365 * MAINTAINERS: Update.
366
367 2003-01-02 Mark Kettenis <kettenis@gnu.org>
368
369 * configure.in: Reorganize "Checks for library functions section"
370 a bit. Remove check for `btowc' and `isascii' functions.
371 * configure: Regenerated.
372
373 * acconfig.h (_MSE_INT_H): Remove.
374 * configure.in: Create "Checks for header files" section, and move
375 appropriate tests there. Don't check for objlist.h, wchar.h,
376 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
377 misdetection fix. Also add "Checks for types", "Checks for
378 compiler characteristics" and "Checks for library functions"
379 sections.
380 * config.in, configure: Regenerated.
381
382 * configure.in: Create "Checks for programs" section, and move
383 appropriate tests there.
384
385 2003-01-01 Mark Kettenis <kettenis@gnu.org>
386
387 * configure.in: Create "Checks for libraries" section, and move
388 appropriate tests there. Cleanup check for wctype in libw. Use
389 AC_SEARCH_LIBS to see whether we need libsocket.
390 * configure: Regenerated.
391
392 2002-12-31 Mark Kettenis <kettenis@gnu.org>
393
394 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
395 * config.in, configure: Regenerated.
396
397 2002-12-31 Mark Kettenis <kettenis@gnu.org>
398
399 * gdb_dirent.h: Cleanup and update code to match the example in
400 the Autoconf manual.
401 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
402 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
403 * configure: Regenerated.
404
405 2002-12-30 Adam Fedor <fedor@gnu.org>
406
407 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
408 (yylex): Initialize c to avoid uninitialized warning.
409
410 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
411
412 * doc/fdl.texi: Revert the last change.
413
414 2002-12-29 Mark Kettenis <kettenis@gnu.org>
415
416 * tracepoint.c (ISATTY): Removed.
417
418 2002-12-26 J. Brobecker <brobecker@gnat.com>
419
420 Continuing work to convert the hppa targets to multiarch partil.
421
422 * hppa-tdep.c: Add some missing forward declarations.
423 (frameless_function_invocation): Prefix the function name
424 by "hppa_" to avoid polluting the namespace. Update all calls
425 to use the new function name.
426 (saved_pc_after_call): Ditto.
427 (init_extra_frame_info): Ditto.
428 (frame_chain): Ditto.
429 (push_dummy_frame): Ditto.
430 (target_read_pc): Ditto.
431 (target_write_pc): Ditto.
432 (in_solib_call_trampoline): Ditto.
433 (in_solib_return_trampoline): Ditto.
434 (skip_trampoline_code): Ditto.
435 (hppa_read_fp): New function, renamed from target_read_fp.
436 (hppa_target_read_fp): New function, using hppa_read_fp.
437 This function conforms to the function profile for the
438 READ_FP gdbarch method.
439 (hppa_extract_struct_value_address): New function, extracted
440 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
441 macro.
442 (hppa_frame_num_args): New function.
443 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
444
445 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
446 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
447 for the switch to multiarch partial.
448 Update some of the macros definitions to match some changes
449 described above in the name of the function they are calling.
450 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
451 not be straightforward to convert. Do now wrap it inside
452 "#if !... #endif" to remember that this macro has still not
453 been taken care of.
454 (FIX_CALL_DUMMY): Likewise.
455
456 2002-12-26 J. Brobecker <brobecker@gnat.com>
457
458 Continuing work to convert the hppa targets to multiarch partial.
459
460 * hppa-tdep.c (hppa_register_raw_size): New function replacing
461 the body of macro REGISTER_RAW_SIZE.
462 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
463 config/pa/tm-hppah.h. These functions will be used to initialize
464 the gdbarch structure.
465 (hppa_hpux_pc_in_sigtramp): New function.
466 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
467 (hppa_hpux_frame_base_before_sigtramp): New function.
468 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
469 Add gdbcore.h #include.
470 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
471 of this gdbarch-eligible macro to a call to the new associated
472 function.
473 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
474 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
475 into a call to the new associated function.
476 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
477 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
478 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
479
480 2002-12-24 David Carlton <carlton@math.stanford.edu>
481
482 * config/sparc/tm-sparc.h: Delete duplicate definition of
483 DEPRECATED_PC_IN_CALL_DUMMY.
484
485 2002-12-24 Kevin Buettner <kevinb@redhat.com>
486
487 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
488 $(gdb_assert_h).
489 * configure.tgt: Recognize mips64*-*-linux*.
490 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
491 (supply_32_bit_reg): New function.
492 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
493 (fill_gregset): Use regcache_collect() instead of
494 deprecated_registers[].
495 (register_addr): Change name to mips_linux_register_addr().
496 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
497 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
498 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
499 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
500 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
501 (MIPS64_LINUX_JB_PC): New defines.
502 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
503 (mips64_elf_fpregset_t): New typedefs.
504 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
505 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
506 (mips64_linux_register_addr, set_mips_linux_register_addr)
507 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
508 (init_register_addr_data)
509 New functions.
510 (fetch_core_registers): Add support for core file formats with 64-bit
511 registers.
512 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
513 (register_addr_data): New static global variable.
514 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
515 gdbarch_register_osabi() for each MIPS machine.
516 * config/mips/linux64.mt: New file.
517 * config/mips/tm-linux64.h: New file.
518
519 2002-12-23 Adam Fedor <fedor@gnu.org>
520
521 * maint.c (maintenance_demangle): Add switch to demangle
522 ObjC language symbols as well.
523
524 2002-12-23 Adam Fedor <fedor@gnu.org>
525
526 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
527 last argument from complaint function call.
528
529 2002-12-23 Kevin Buettner <kevinb@redhat.com>
530
531 * exec.c (print_section_info): Add FIXME comments regarding format
532 string choices.
533
534 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
535
536 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
537 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
538
539 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
540
541 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
542
543 2002-12-23 David Carlton <carlton@math.stanford.edu>
544
545 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
546 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
547 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
548 information associated to a minsym, not lookup_symbol.
549
550 2002-12-21 Mark Kettenis <kettenis@gnu.org>
551
552 * x86-64-tdep.h (x86_64_init_abi): New prototype.
553 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
554 (x86_64_init_abi): Make non-static. Set number of pseudo
555 registers to 0.
556 (x86_64_gdbarch_init): Remove function.
557 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
558 Remove code dealing with dissambly.
559 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
560 (_initialize_x86_64_linux_tdep): New function.
561 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
562 i386-tdep.o.
563
564 2002-12-14 Mark Kettenis <kettenis@gnu.org>
565
566 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
567 (struct gdb_osabi_handler): Remove member `arch'. Add member
568 `arch_info'.
569 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
570 construct a `struct bfd_arch_info' and store it in the `struct
571 gdb_osabi_handler' that is created.
572 (gdbarch_init_osabi): Check for compatibility based on machine
573 type and architecture.
574 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
575 comment.
576 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
577 second argument in call to gdbarch_register_osabi.
578 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
579 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
580 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
581 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
582 * arm-tdep.c (_initialize_arm_tdep): Likewise.
583 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
584 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
585 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
586 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
587 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
588 * i386-tdep.c (_initialize_i386_tdep): Likewise.
589 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
590 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
591 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
592 _initialize_i386bsd_tdep and updated likewise.
593 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
594 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
595 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
596 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
597 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
598 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
599 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
600 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
601 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
602 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
603
604 2002-12-20 Kevin Buettner <kevinb@redhat.com>
605
606 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
607 DT_MIPS_RLD_MAP case for 64-bit targets.
608
609 2002-12-20 Kevin Buettner <kevinb@redhat.com>
610
611 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
612 ``temp_saved_regs'', not the pointer or other storage contiguous
613 to this pointer.
614
615 2002-12-20 Kevin Buettner <kevinb@redhat.com>
616
617 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
618 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
619 (mips_linux_get_longjmp_target): Delete declarations.
620 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
621 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
622 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
623 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
624 (mips_linux_get_longjmp_target)
625 (mips_linux_svr4_fetch_link_map_offsets): Make static.
626 (mips_linux_init_abi): New function.
627 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
628
629 2002-12-19 Keith Seitz <keiths@redhat.com>
630
631 patch committed by Elena Zannoni <ezannoni@redhat.com>
632 * thread.c (do_captured_list_thread_ids): Call prune_threads and
633 target_find_new_threads. Fix for PR mi/669.
634
635 2002-12-19 David Carlton <carlton@math.stanford.edu>
636
637 * linespec.c (decode_line_1): Move code into decode_all_digits.
638 (decode_all_digits): New function.
639
640 2002-12-19 Kevin Buettner <kevinb@redhat.com>
641
642 * exec.c (print_section_info): Select a format string to use with
643 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
644
645 2002-12-18 Andrew Cagney <ac131313@redhat.com>
646
647 * frame.c (deprecated_update_current_frame_pc_hack): Replace
648 deprecated_update_current_frame_pc_hack.
649 (deprecated_update_frame_base_hack): New function.
650 * frame.h (deprecated_update_frame_pc_hack): Replace
651 (deprecated_update_frame_base_hack): Declare.
652 * infrun.c (normal_stop): Update.
653
654 2002-12-18 Andrew Cagney <ac131313@redhat.com>
655
656 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
657 frame_extra_info_zalloc.
658 (rs6000_frame_args_address): Use get_frame_extra_info.
659 (frame_get_saved_regs): Use get_frame_saved_regs.
660 (frame_initial_stack_address): Use get_frame_saved_regs and
661 get_frame_extra_info.
662 (frame_initial_stack_address): Use get_frame_extra_info.
663
664 2002-12-17 Kevin Buettner <kevinb@redhat.com>
665
666 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
667 array size.
668 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
669 checks for r3900_regnames[].
670
671 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
672
673 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
674 All uses changed
675 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
676
677 2002-12-17 David Carlton <carlton@math.stanford.edu>
678
679 * symtab.c (lookup_partial_symbol): Don't search past the end of
680 the partial symbols.
681
682 2002-12-17 Andrew Cagney <ac131313@redhat.com>
683
684 * stack.c (frame_info): Use get_frame_saved_regs.
685 * breakpoint.c (until_break_command): Use get_frame_pc.
686
687 2002-12-16 Kevin Buettner <kevinb@redhat.com>
688
689 * buildsym.c (block_end_complaint, anon_block_end_complaint)
690 (innerblock_complaint, innerblock_anon_complaint)
691 (blockvector_complaint): Delete deprecated complaint structs.
692 (finish_block, make_blockvector, end_symtab): Replace calls
693 to complain() with calls to complaint().
694 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
695 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
696 (unexpected_type_complaint, bad_sclass_complaint)
697 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
698 Delete deprecated complaint structs.
699 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
700 Replace calls to complain() with calls to complaint().
701 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
702 (unknown_symtype_complaint, unknown_symchar_complaint)
703 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
704 (lbrac_mismatch_complaint, repeated_header_complaint)
705 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
706 Delete deprecated complaint structs.
707 (unknown_symtype_complaint, lbrac_mismatch_complaint)
708 (repeated_header_complaint)
709 (function_outside_compiliation_unit_complaint): New functions.
710 (add_old_header_file, find_corresponding_bincl_psymtab)
711 (set_namestring, find_stab_function_addr, read_dbx_symtab)
712 (process_one_symbol): Replace calls to complain() with, possibly
713 indirect, calls to complaint().
714 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
715 (unknown_attribute_form, unknown_attribute_length)
716 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
717 (const_ignored, botched_modified_type, op_deref2, op_deref4)
718 (basereg_not_handled, dup_user_type_allocation)
719 (dup_user_type_definition, missing_tag, bad_array_element_type)
720 (subscript_data_items, unhandled_array_subscript_format)
721 (unknown_array_subscript_format, not_row_major)
722 (missing_at_name): Delete deprecated complaint structs.
723 (bad_die_ref_complaint, unknown_attribute_form_complaint)
724 (dup_user_type_definition_complaint)
725 (bad_array_element_type_complaint): New functions.
726 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
727 (decode_subscript_data_item, dwarf_read_array_type)
728 (read_tag_string_type, read_subroutine_type, read_func_scope)
729 (locval, scan_partial_symbols, decode_modified_type)
730 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
731 (attribute_size): Replace calls to complain() with, possibly
732 indirect, calls to complaint().
733 * elfread.c (section_info_complaint, section_info_dup_complaint)
734 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
735 Delete deprecated complaint structs.
736 (elf_symtab_read, elfstab_offset_sections): Replace calls to
737 complain() with calls to complaint().
738 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
739 struct.
740 (stub_noname_complaint): New function.
741 (check_typedef, add_mangled_type): Replace calls to complain()
742 with calls to complaint().
743 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
744 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
745 (hpread_unhandled_type_complaint, hpread_struct_complaint)
746 (hpread_array_complaint, hpread_type_lookup_complaint)
747 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
748 (hpread_unhandled_common_complaint)
749 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
750 struct definitions and declarations.
751 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
752 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
753 Replace calls to complain() with, possibly indirect, calls to
754 complaint().
755 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
756 Likewise.
757 * mdebugread.c (bad_file_number_complaint, index_complaint)
758 (aux_index_complaint, block_index_complaint)
759 (unknown_ext_complaint, unknown_sym_complaint)
760 (unknown_st_complaint, block_overflow_complaint)
761 (basic_type_complaint, unknown_type_qual_complaint)
762 (array_index_type_complaint, bad_tag_guess_complaint)
763 (block_member_complaint, stEnd_complaint)
764 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
765 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
766 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
767 (bad_continued_complaint, bad_rfd_entry_complaint)
768 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
769 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
770 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
771 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
772 complaint structs.
773 (index_complaint, unknown_ext_complaint, basic_type_complaint)
774 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
775 (unexpected_type_code_complaint)
776 (function_outside_compilation_unit_complaint): New functions.
777 (parse_symbol, parse_type, upgrade_type, parse_procedure)
778 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
779 Replace calls to complain() with, possibly indirect calls to
780 complaint().
781 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
782 Delete deprecated complaint structs.
783 (lookup__objc_class, lookup_child_selector): Replace complain()
784 with complaint().
785 * remote-vx.c (cant_contact_target): Delete deprecated complaint
786 struct.
787 (vx_lookup_symbol): Replace complain() with complaint().
788 * stabsread.c (invalid_cpp_abbrev_complaint)
789 (invalid_cpp_type_complaint, member_fn_complaint)
790 (const_vol_complaint, error_type_complaint)
791 (invalid_member_complaint, range_type_base_complaint)
792 (reg_value_complaint, vtbl_notfound_complaint)
793 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
794 (unresolved_sym_chain_complaint, stabs_general_complaint)
795 (lrs_general_complaint, multiply_defined_struct): Delete
796 deprecated complaint structs.
797 (invalid_cpp_abbrev_complaint, ref_value_complaint)
798 (stabs_general_complaint, lrs_general_complaint)
799 (msg_unknown_complaint): New functions.
800 (dbx_lookup_type, read_cfront_baseclasses)
801 (read_cfront_member_functions, resolve_symbol_reference)
802 (define_symbol, resolve_live_range, add_live_range, read_type)
803 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
804 (read_one_struct_field, read_baseclasses, read_tilde_fields)
805 (read_cfront_static_fields, attach_fields_to_type)
806 (complain_about_struct_wipeout, read_range_type)
807 (common_block_start, common_block_end, cleanup_undefined_types)
808 (scan_file_globals): Replace complain() with complaint().
809 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
810 Delete deprecated complaint struct declarations.
811 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
812 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
813 (bf_not_found_complaint, ef_complaint, eb_complaint)
814 (function_outside_compilation_unit_complaint): New functions.
815 (record_include_begin, record_include_end, enter_line_range)
816 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
817 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
818 complain() with complaint().
819
820 2002-12-16 Andrew Cagney <ac131313@redhat.com>
821
822 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
823 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
824 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
825 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
826 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
827 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
828 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
829 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
830 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
831 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
832 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
833 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
834 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
835 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
836 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
837 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
838 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
839 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
840 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
841 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
842 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
843 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
844 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
845 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
846 * config/m88k/xm-dgux.h: Delete.
847 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
848 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
849 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
850 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
851 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
852 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
853 * ch-valprint.c: Delete.
854
855 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
856
857 * infrun.c (handle_inferior_event): Rearrange code to resume if
858 no catchpoint triggers for an event.
859
860 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
861
862 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
863 and TARGET_WAITKIND_VFORKED cases.
864
865 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
866
867 * infrun.c (handle_inferior_event): Assume that catchpoints
868 are not affected by DECR_PC_AFTER_BREAK.
869
870 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
871
872 * target.c (update_current_target): Don't inherit DONT_USE.
873 * target.h (struct target_ops): Remove DONT_USE.
874 (target_next): Remove macro.
875
876 2002-12-15 Mark Kettenis <kettenis@gnu.org>
877
878 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
879
880 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
881
882 * arm-tdep.c (convert_from_extended): New argument to hold the
883 type of floating point result we want to convert to. Make input
884 argument const. Fix all callers.
885 (convert_to_extended): Similarly.
886 (arm_extract_return_value): Now takes a regcache argument. Change
887 code to use regcache accessor functions. Correctly extract
888 smaller-than-word results on big-endian machines.
889 (arm_store_return_value): Now takes a regcache argument. Change
890 code to use regcache accessor functions. Correctly zero/sign extend
891 smaller than word results before storing into r0.
892 (arm_gdbarch_init): Register new-style extract_return_value and
893 store_return_value functions.
894
895 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
896
897 * thread-db.c (thread_from_lwp): Uniquify error msg.
898 (lwp_from_thread): Ditto.
899 (check_event): Ditto.
900 (find_new_threads_callback): Ditto.
901 (thread_db_pid_to_str): Ditto.
902
903 2002-12-13 Andrew Cagney <ac131313@redhat.com>
904
905 * frame.h (get_frame_saved_regs): Declare.
906 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
907 pointer.
908 * frame.c (get_frame_saved_regs): New function.
909 (frame_saved_regs_zalloc): Return the allocated saved_regs.
910
911 2002-12-13 Andrew Cagney <ac131313@redhat.com>
912
913 * frame.c (deprecated_update_current_frame_pc_hack): New
914 function.
915 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
916 * infrun.c (normal_stop): Use said function instead of directly
917 modifying the frame's PC.
918
919 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
920
921 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
922
923 2002-12-13 Kevin Buettner <kevinb@redhat.com>
924
925 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
926 config/mips/tm-irix6.h (NUM_REGS): Delete.
927 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
928 (temp_saved_regs): Declare as a pointer rather than an array.
929 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
930 that ``temp_saved_regs'' has storage allocated to it and that
931 it's the correct size.
932
933 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
934
935 * defs.h (init_last_source_visited): New prototype.
936 (add_path): Ditto.
937 * source.c (add_path): New function that adds to a specified path.
938 (mod_path): Change to call add_path.
939 (init_last_source_visited): New function to allow interfaces to
940 initialize static variable: last_source_visited. Part of fix
941 for PR gdb/741.
942 * Makefile.in: Add support for mi/mi-cmd-env.c.
943
944 2002-12-13 Andrew Cagney <ac131313@redhat.com>
945
946 * frame.h (frame_id_unwind): Declare.
947 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
948 id_unwind_cache.
949 (frame_id_unwind_ftype): Declare.
950 * frame.c (frame_id_unwind): New function.
951 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
952 (create_new_frame, get_prev_frame): Pass id_unwind to
953 set_unwind_by_pc.
954 (frame_saved_regs_id_unwind): New function.
955 (frame_saved_regs_id_unwind): New function.
956 * dummy-frame.c (dummy_frame_id_unwind): New function.
957 (struct dummy_frame): Add field id.
958 (generic_push_dummy_frame): Initialize `id'.
959 * dummy-frame.h (dummy_frame_id_unwind): Declare.
960
961 2002-12-13 Andrew Cagney <ac131313@redhat.com>
962
963 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
964 pass that to set_momentary_breakpoint. Move comments to where they
965 belong.
966 * frame.h (set_current_frame): Delete declaration.
967 * frame.c (set_current_frame): Delete function.
968
969 2002-12-13 Andrew Cagney <ac131313@redhat.com>
970
971 * frame.c (frame_extra_info_zalloc): New function.
972 * frame.h (frame_extra_info_zalloc): Declare.
973
974 2002-12-13 Joel Brobecker <brobecker@gnat.com>
975
976 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
977 in the previous prototype change to set_momentary_breakpoint.
978
979 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
980
981 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
982 and saw_child_exec.
983 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
984 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
985 (stop_stepping): Remove outdated check for child vfork events.
986
987 2002-12-12 Andrew Cagney <ac131313@redhat.com>
988
989 * GDB 5.3 released from gdb_5_3-branch.
990
991 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
992
993 * corelow.c (init_core_ops): Delete references to to_require_attach
994 and to_require_detach.
995 * exec.c (init_exec_ops): Likewise.
996 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
997 hppa_require_detach directly.
998 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
999 * inftarg.c (child_detach): Remove.
1000 (child_detach_from_process): Rename to child_detach, remove
1001 after_fork argument.
1002 (child_attach): Remove.
1003 (child_attach_to_process): Rename to child_attach, remove after_fork
1004 argument.
1005 (init_child_ops): Delete references to to_require_attach
1006 and to_require_detach.
1007 * infttrace.c (hppa_require_attach): Update comment.
1008 * target.c (cleanup_target, update_current_target)
1009 (init_dummy_target, setup_target_debug): Delete references to
1010 to_require_attach and to_require_detach.
1011 (find_default_require_detach, find_default_require_attach)
1012 (debug_to_require_attach, debug_to_require_detach): Remove
1013 functions.
1014 * target.h (struct target_ops): Remove to_require_attach
1015 and to_require_detach.
1016 (target_require_attach, target_require_detach): Delete macros.
1017 (find_default_require_detach, find_default_require_attach): Delete
1018 prototypes.
1019 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1020
1021 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1022
1023 * frame.c (get_frame_extra_info): New function.
1024 * frame.h (get_frame_extra_info): Declare.
1025
1026 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1027
1028 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1029 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1030 with `struct frame_id'.
1031 (set_longjmp_resume_breakpoint): Ditto.
1032 * infrun.c (handle_inferior_event): Update.
1033 * breakpoint.c (watch_command_1, until_break_command): Update.
1034 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1035 (handle_inferior_event, step_over_function): Update.
1036 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1037 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1038 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1039 * infcmd.c (finish_command, run_stack_dummy): Update.
1040
1041 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1042
1043 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1044 (dwarf2_non_const_array_bound_ignored)
1045 (dwarf2_missing_line_number_section)
1046 (dwarf2_statement_list_fits_in_line_number_section)
1047 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1048 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1049 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1050 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1051 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1052 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1053 (dwarf2_missing_member_fn_type_complaint)
1054 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1055 (dwarf2_const_value_length_mismatch)
1056 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1057 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1058 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1059 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1060 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1061 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1062 complaints using deprecated struct..
1063 (dwarf2_non_const_array_bound_ignored_complaint)
1064 (dwarf2_complex_location_expr_complaint)
1065 (dwarf2_unsupported_at_frame_base_complaint)
1066 (dwarf2_const_value_length_mismatch_complaint)
1067 (dwarf2_macros_too_long_complaint)
1068 (dwarf2_macro_malformed_definition_complaint)
1069 (dwarf2_invalid_attrib_class_complaint): New functions.
1070 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1071 (read_structure_scope, read_array_type, read_common_block)
1072 (read_tag_pointer_type, read_base_type, read_partial_die)
1073 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1074 (new_symbol, dwarf2_const_value, read_type_die)
1075 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1076 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1077 complain() with, possibly indirect, calls to complaint().
1078
1079 2002-12-11 Andrew Cagney <cagney@redhat.com>
1080
1081 * frame.c (deprecated_get_frame_saved_regs): Rename
1082 get_frame_saved_regs.
1083 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1084 * sparc-tdep.c: Update.
1085 * hppa-tdep.c: Update.
1086 * h8500-tdep.c: Update.
1087
1088 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1089
1090 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1091 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1092 ``char *'' for return and parameter types.
1093 * gdbarch.h, gdbarch.c: Regenerate.
1094 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1095 return type from ``char *'' to ``const char *''.
1096 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1097 const.
1098
1099 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1100
1101 * i386-tdep.c: Include "dummy-frame.h".
1102 (i386_frame_chain, i386_frame_saved_pc): Replace
1103 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1104 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1105
1106 2002-12-10 Andrew Cagney <cagney@redhat.com>
1107
1108 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1109 Change to a function with predicate.
1110 * gdbarch.h, gdbarch.c: Re-generate.
1111 * frame.c (get_prev_frame): Update. Test
1112 DEPRECATED_INIT_FRAME_PC_P.
1113 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1114 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1115 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1116 * alpha-tdep.c (alpha_gdbarch_init): Update.
1117 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1118 * mips-tdep.c (mips_gdbarch_init): Update.
1119 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1120 * arm-tdep.c: Update comments.
1121 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1122 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1123 * frv-tdep.c (frv_gdbarch_init): Ditto.
1124 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1125 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1126 * s390-tdep.c (s390_gdbarch_init): Ditto.
1127 * v850-tdep.c (v850_gdbarch_init): Ditto.
1128 * vax-tdep.c (vax_gdbarch_init): Ditto.
1129 * sh-tdep.c (sh_gdbarch_init): Ditto.
1130 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1132 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1134 * i386-tdep.c (i386_gdbarch_init): Ditto.
1135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1136 * cris-tdep.c (cris_gdbarch_init): Ditto.
1137 * avr-tdep.c (avr_gdbarch_init): Ditto.
1138 * arm-tdep.c (arm_gdbarch_init): Ditto.
1139 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1140 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1141
1142 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1143
1144 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1145 CHILD_FOLLOW_FORK.
1146 * hppah-nat.c (saved_vfork_pid): Add.
1147 (child_post_follow_vfork): Remove.
1148 (child_follow_fork): New function.
1149 (child_wait): Call detach_breakpoints after receiving the child vfork.
1150 Call child_resume directly instead of going through resume ().
1151 Make sure we have the exec before reporting the vfork.
1152 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1153 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1154 (follow_fork): New function. Call target_follow_fork.
1155 (follow_inferior_reset_breakpoints): New function broken out from
1156 old follow_inferior_fork.
1157 (resume): Remove hack to follow exec after vfork.
1158 * inftarg.c (child_post_follow_vfork): Remove.
1159 (child_follow_fork): New function.
1160 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1161 * target.c (cleanup_target): Replace to_post_follow_vfork with
1162 to_follow_fork.
1163 (update_current_target): Likewise.
1164 (setup_target_debug): Likewise.
1165 (debug_to_post_follow_vfork): Remove.
1166 (debug_to_follow_fork): New function.
1167 * target.h (struct target_ops): Replace to_post_folow_vfork with
1168 to_follow_fork.
1169 (child_post_follow_vfork): Remove prototype.
1170 (child_follow_fork): Add prototype.
1171 (target_post_follow_vfork): Remove macro.
1172 (target_follow_fork): Add macro.
1173
1174 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1175
1176 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1177 (child_post_follow_vfork): Cancel pending exec event if we follow
1178 the parent.
1179 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1180 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1181 event at the following wait call if necessary.
1182 * infrun.c (follow_vfork): Don't follow_exec here.
1183 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1184 case about HP/UX 10.20. Remove code pushed down to
1185 hppah-nat.c:child_wait.
1186 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1187 vfork_in_flight is set.
1188
1189 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1190
1191 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1192 for the parent's fork event.
1193 * infrun.c (handle_inferior_event): Only expect one fork event.
1194 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1195 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1196
1197 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1198
1199 * PROBLEMS: Delete reference to PR gdb/725.
1200
1201 * MAINTAINERS (gdb.c++): Add David Carlton.
1202
1203 2002-12-09 David Carlton <carlton@math.stanford.edu>
1204
1205 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1206 * cli/cli-cmds.c: Ditto.
1207
1208 2002-12-09 Andrew Cagney <cagney@redhat.com>
1209
1210 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1211 function address in <>.
1212 * gdbarch.c: Re-generate.
1213
1214 2002-12-09 David Carlton <carlton@math.stanford.edu>
1215
1216 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1217
1218 2002-12-09 David Carlton <carlton@math.stanford.edu>
1219
1220 * linespec.c (symtab_from_filename): New function.
1221 (decode_line_1): Move code into symtab_from_filename.
1222
1223 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1224
1225 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1226
1227 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1228
1229 * f-valprint.c (info_common_command): Use get_frame_pc.
1230 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1231 * ax-gdb.c (agent_command): Ditto.
1232 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1233 (rs6000_pop_frame): Ditto.
1234 (rs6000_frameless_function_invocation): Ditto.
1235 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1236 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1237 * macroscope.c (default_macro_scope): Ditto.
1238 * stack.c (print_frame_info_base): Ditto.
1239 (print_frame, frame_info, print_frame_label_vars): Ditto.
1240 (return_command, func_command, get_frame_language): Ditto.
1241 * infcmd.c (finish_command): Ditto.
1242 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1243 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1244 (break_at_finish_at_depth_command_1): Ditto.
1245 (break_at_finish_command_1): Ditto.
1246 (until_break_command, get_catch_sals): Ditto.
1247 * blockframe.c (func_frame_chain_valid): Ditto.
1248 (frameless_look_for_prologue): Ditto.
1249 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1250
1251 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1252
1253 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1254 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1255
1256 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1257
1258 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1259 to pure functions.
1260 * gdbarch.h, gdbarch.c: Re-generate.
1261 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1262 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1263
1264 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1265 declaration to a function returning a CORE_ADDR.
1266 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1267 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1268 (init_frame_pc_default): Ditto.
1269 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1270 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1271 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1272 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1273 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1274 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1275
1276 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1277 to init_frame_pc_noop.
1278 (i386_interix_init_frame_pc): Delete function.
1279 * z8k-tdep.c (init_frame_pc): Delete function.
1280 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1281 (INIT_FRAME_PC_FIRST): Ditto.
1282 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1283 (INIT_FRAME_PC_FIRST): Ditto.
1284 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1285 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1286 init_frame_pc_noop.
1287 (INIT_FRAME_PC_FIRST): Convert to an expression.
1288 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1289
1290 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1291
1292 * blockframe.c: Use get_frame_base instead of directly accessing
1293 the `struct frame_info' member frame.
1294 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1295 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1296
1297 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1298
1299 * Makefile.in (readline_h): Define.
1300 (completer.o): Depend on readline_h.
1301 (corelow.o): Ditto.
1302 (event-top.o): Ditto.
1303 (exec.o): Ditto.
1304 (solib.o): Ditto.
1305 (source.o): Ditto.
1306 (symfile.o): Ditto.
1307 (symmisc.o): Ditto.
1308 (top.o): Ditto.
1309 (tracepoint.o): Ditto.
1310 (utils.o): Ditto.
1311 (cli-dump.o): Ditto.
1312 (tui-hooks.o): Ditto.
1313 (tuiWin.o): Ditto.
1314
1315 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1316
1317 More cleanup from import of readline 4.3.
1318 * completer.h (complete_line, readline_line_completion_function):
1319 Update prototypes.
1320 (line_completion_function): Removed, not used outside of completer.c.
1321 * completer.c (readline_line_completion_function,
1322 complete_function, line_completion_function): Use const for first
1323 parameter.
1324 (line_completion_function): Make static.
1325 (filename_completer): filename_completion_function is now called
1326 rl_filename_completion_function
1327 * corelow.c: Include <readline/readline.h>.
1328 * exec.c: Ditto.
1329 * solib.c: Ditto.
1330 * source.c: Ditto.
1331 * symfile.c: Ditto.
1332 * symmisc.c: Ditto.
1333 * top.c (init_main): No need to coerce
1334 readline_line_completion_function anymore.
1335 * cli/cli-dump.c: Include <readline/readline.h>.
1336
1337 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1338
1339 * stack.c (frame_info): Use get_prev_frame.
1340 * blockframe.c (frame_address_in_block): Ditto.
1341 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1342 (rs6000_frameless_function_invocation): Ditto.
1343 (rs6000_frame_saved_pc): Ditto.
1344 (rs6000_frame_chain): Ditto.
1345 * arch-utils.c (init_frame_pc_default): Ditto.
1346
1347 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1348
1349 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1350 Delete redundant definition.
1351
1352 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1353
1354 Import of readline 4.3:
1355 * cli/cli-cmds.c: Include readline/tilde.h.
1356 * cli/cli-setshow.c: Ditto.
1357 * defs.h: Don't declare tilde_expand anymore, since readline
1358 exports it.
1359
1360 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1363 -Werror on this file.
1364
1365 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1366
1367 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1368 the format name.
1369 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1370 * gdbarch.c: Regenerate.
1371
1372 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1373
1374 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1375 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1376 provide a default value.
1377 * gdbarch.h, gdbarch.c: Regenerate.
1378 * frame.c (get_prev_frame): Update. Check
1379 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1380 * s390-tdep.c (s390_gdbarch_init): Update.
1381 * mips-tdep.c (mips_gdbarch_init): Update.
1382 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1383 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1384 * alpha-tdep.c (alpha_gdbarch_init): Update.
1385
1386 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1387
1388 * ia64-linux-nat.c: Include gdb_string.h.
1389 * alpha-nat.c: Ditto.
1390 * ppc-linux-nat.c: Ditto.
1391 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1392 Update dependencies.
1393
1394 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1395
1396 * gdbthread.h: Include "frame.h".
1397 (struct thread_info): Replace step_frame_address with
1398 step_frame_id.
1399 * inferior.h: Include "frame.h".
1400 (step_frame_id): Replace external variable step_frame_address.
1401 * gdbthread.h (save_infrun_state): Replace step_frame_address
1402 parameter with step_frame_id parameter.
1403 (load_infrun_state): Ditto.
1404 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1405 * infcmd.c (step_frame_id, step_1, step_once): Update.
1406 * thread.c (load_infrun_state, save_infrun_state): Update.
1407 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1408 (handle_inferior_event, step_over_function): Update.
1409 (normal_stop, context_switch, restore_inferior_status): Update.
1410 (struct inferior_status): Replace step_frame_address with
1411 step_frame_id.
1412
1413 2002-12-05 David Carlton <carlton@math.stanford.edu>
1414
1415 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1416 DW_TAG_member as well as a declaration as being a C++ static data
1417 member.
1418 (read_structure_scope): Combine tests for DW_TAG_member and
1419 DW_TAG_variable.
1420
1421 2002-12-05 David Carlton <carlton@math.stanford.edu>
1422
1423 * linespec.c (decode_compound): New function.
1424 (decode_line_1): Move code into decode_compound.
1425
1426 2002-12-05 David Carlton <carlton@math.stanford.edu>
1427
1428 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1429 argument.
1430 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1431 the static block. See PR gdb/804.
1432
1433 2002-12-05 David Carlton <carlton@math.stanford.edu>
1434
1435 * symtab.c (lookup_symbol_aux_block): New function.
1436 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1437
1438 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1439
1440 * gdbarch.sh: Dump the predicate function and macro values.
1441 (read): Print error on standard error.
1442 * gdbarch.c: Regenerate.
1443
1444 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1445
1446 * Makefile.in (mips_tdep_h): Define.
1447 (mips-tdep.o): Add mips_tdep_h to dependency list.
1448 * mips-tdep.h: New file.
1449 * mips-tdep.c (mips-tdep.h): Include.
1450 (enum mips_abi): Move to mips-tdep.h.
1451 (mips_abi): New function.
1452
1453 2002-12-04 David Carlton <carlton@math.stanford.edu>
1454
1455 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1456
1457 2002-12-04 David Carlton <carlton@math.stanford.edu>
1458
1459 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1460 function.
1461 (lookup_symbol_aux_minsyms): New function.
1462
1463 2002-12-04 J. Brobecker <brobecker@gnat.com>
1464
1465 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1466
1467 2002-12-04 J. Brobecker <brobecker@gnat.com>
1468
1469 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1470 which is an obsolete macro name.
1471
1472 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1473
1474 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1475 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1476
1477 2002-12-03 H.J. Lu (hjl@gnu.org)
1478
1479 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1480 (create_breakpoints): Make sure the addr_string field is not
1481 NULL.
1482
1483 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1484
1485 * sparc-nat.c (fetch_inferior_registers)
1486 (store_inferior_registers): Add comment on problem of LWP vs
1487 threads.
1488
1489 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1490 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1491 (lin_lwp_store_registers): Remove.
1492 (init_lin_lwp_ops): Use fetch_inferior_registers
1493 and store_inferior_registers directly.
1494 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1495 (store_inferior_registers): Likewise.
1496 Fix PR gdb/725.
1497
1498 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1499
1500 * frame.h (get_frame_id): Convert to a function.
1501 (null_frame_id, frame_id_p): Declare.
1502 (frame_id_eq, frame_id_inner): Declare.
1503 (frame_id_build): New function.
1504 * frame.c (get_frame_id): Update. Use null_frame_id.
1505 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1506 frame_id_inner.
1507 (null_frame_id, frame_id_p): Define.
1508 (frame_id_eq, frame_id_inner): Define.
1509 (frame_id_build): New function.
1510 * varobj.c (varobj_create): Update.
1511 (varobj_update): Update.
1512 * valops.c (value_assign): Update.
1513 (new_root_variable): Update.
1514 * infrun.c (save_inferior_status): Update.
1515 * breakpoint.c (watch_command_1): Update.
1516
1517 2002-12-03 J. Brobecker <brobecker@gnat.com>
1518
1519 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1520 (SNAP2): Likewise.
1521
1522 2002-12-03 Andrew Cagney <cagney@redhat.com>
1523
1524 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1525 patch.
1526
1527 * PROBLEMS: Mention PR gdb/725.
1528
1529 2002-12-03 Andreas Schwab <schwab@suse.de>
1530
1531 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1532
1533 2002-12-02 Adam Fedor <fedor@gnu.org>
1534 Klee Dienes <kdienes@apple.com>
1535
1536 * objc-lang.c (objc_printstr): Add width arg to match
1537 printstr prototype.
1538 (compare_selectors): Add 'const' to arg types.
1539 (compare_classes): Likewise.
1540 (find_imps): Cast msym pointer to avoid compiler warning.
1541 (print_object_command): Validate the address before
1542 passing it to the print routine.
1543 (find_objc_msgcall_submethod): Change function argument to
1544 return an int.
1545 * objc-lang.h: Add 'extern' to all function declarations.
1546 (value_nsstring): Add declaration.
1547
1548 2002-12-02 J. Brobecker <brobecker@gnat.com>
1549
1550 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1551 Fixes a build failure on HP/UX.
1552
1553 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1554 failure on HP/UX.
1555 (hpread_has_name): Advance declaration to avoid a compilation warning.
1556 (pst_syms_count): Add missing variable type. By change, the compiler
1557 was defaulting to int, which seems a good choice. Fixes a compilation
1558 warning.
1559 (pst_syms_size): Likewise.
1560
1561 2002-12-02 J. Brobecker <brobecker@gnat.com>
1562
1563 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1564 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1565 later to set the proper gdbarch methods depending on the osabi.
1566 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1567
1568 2002-12-02 J. Brobecker <brobecker@gnat.com>
1569
1570 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1571 * osabi.c (gdb_osabi_name): Add strings images for the two new
1572 enum values.
1573 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1574
1575 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1576
1577 * MAINTAINERS (Java): Global maintainers are responible for Java.
1578 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1579 part Java maintainers.
1580
1581 2002-12-02 J. Brobecker <brobecker@gnat.com>
1582
1583 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1584 Fixes a compilation failure on AiX.
1585
1586 2002-12-02 J. Brobecker <brobecker@gnat.com>
1587
1588 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1589 why aix-thread.o is not listed.
1590
1591 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1592
1593 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1594 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1595 * gdbarch.h, gdbarch.c: Re-generate.
1596 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1597 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1598 * config/pa/tm-hppa.h, frame.h: Update.
1599 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1600 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1601 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1602 * cris-tdep.c, alpha-tdep.c: Update.
1603 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1604 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1605 (get_prev_frame): Ditto.
1606
1607 2002-11-30 Andrew Cagney <cagney@redhat.com>
1608
1609 * exec.c (xfer_memory): Replace boolean with int.
1610 * p-exp.y: Use 0 instead of false.
1611 * corelow.c (gdb_check_format): Change return type to int from
1612 boolean.
1613 * utils.c: Don't include <curses.h> or <term.h> first.
1614
1615 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1616
1617 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1618 (m68hc11_register_byte): Remove.
1619 (m68hc11_gdbarch_init): Don't set the above.
1620
1621 2002-11-29 Andrew Cagney <cagney@redhat.com>
1622
1623 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1624 by calling get_selected_frame.
1625 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1626 set_current_frame, create_new_frame, select_frame and
1627 get_current_frame.
1628 * remote-e7000.c (e7000_start_remote): Ditto.
1629 * remote-mips.c (common_open): Ditto
1630 * remote-rdp.c (remote_rdp_open): Ditto.
1631
1632 2002-11-29 Andreas Schwab <schwab@suse.de>
1633
1634 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1635 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1636 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1637 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1638 read_memory_unsigned_integer instead of read_memory_integer when
1639 dealing with addresses and instruction opcodes.
1640 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1641 (m68k_linux_frame_saved_pc): Likewise.
1642
1643 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1644
1645 * stack.c (selected_frame, select_frame): Move from here ...
1646 * frame.c (selected_frame, select_frame): ... to here. Include
1647 "language.h".
1648 * Makefile.in (frame.o): Update dependencies.
1649 * frame.c (get_selected_frame): New function.
1650 * frame.h (get_selected_frame): Declare.
1651 (deprecated_selected_frame): Rename selected_frame.
1652 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1653 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1654 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1655 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1656 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1657 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1658 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1659 * z8k-tdep.c, cli/cli-cmds.c: Update.
1660
1661 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1662
1663 * frame.h (get_selected_block): Add comments.
1664
1665 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1666
1667 * frame.c (pc_notcurrent): New function.
1668 (find_frame_sal): New function.
1669 * frame.h (find_frame_sal): Declare.
1670 (struct symtab_and_line): Add opaque declaration.
1671 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1672 find_pc_line.
1673 (frame_info): Ditto.
1674 * ada-lang.c (find_printable_frame): Ditto.
1675
1676 2002-11-28 J. Brobecker <brobecker@gnat.com>
1677
1678 * configure.in: Check that the pthdebug library is recent enough
1679 before enabling thread support on native AiX.
1680 * configure: Regenerate.
1681
1682 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1683 from the list of object files as it is now appended by configure
1684 if thread support is enabled.
1685 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1686 if thread support is enabled.
1687
1688 2002-11-28 Andrew Cagney <cagney@redhat.com>
1689
1690 * stack.c (get_selected_block): In-line get_current_block.
1691 * frame.h (get_current_block): Delete declaration.
1692 * blockframe.c (get_current_block): Delete function.
1693
1694 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1695
1696 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1697 USE_GENERIC_DUMMY_FRAMES.
1698 * gdbarch.h, gdbarch.c: Regenerate.
1699 * valops.c, frame.c: Update.
1700 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1701 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1702 * config/pa/tm-hppa.h, blockframe.c: Update.
1703 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1704 * m68k-tdep.c, alpha-tdep.c: Ditto.
1705
1706 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1707 * mips-tdep.c: Ditto.
1708
1709 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1710
1711 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1712 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1713 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1714 * gdbarch.c, gdbarch.h: Re-generate.
1715 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1716 (CALL_DUMMY_LOCATION): Delete macro definition.
1717 (PC_IN_CALL_DUMMY): Delete macro definitions.
1718
1719 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1720 default is already generic_pc_in_call_dummy.
1721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1722 * v850-tdep.c (v850_gdbarch_init): Ditto.
1723 * sh-tdep.c (sh_gdbarch_init): Ditto.
1724 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1725 * mips-tdep.c (mips_gdbarch_init): Ditto.
1726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1729 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1730 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1731 * avr-tdep.c (avr_gdbarch_init): Ditto.
1732
1733 * arm-tdep.c (arm_gdbarch_init): Do not set
1734 use_generic_dummy_frames, default is already 1.
1735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1736 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1737 * v850-tdep.c (v850_gdbarch_init): Ditto.
1738 * sh-tdep.c (sh_gdbarch_init): Ditto.
1739 * s390-tdep.c (s390_gdbarch_init): Ditto.
1740 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1741 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1742 * mips-tdep.c (mips_gdbarch_init): Ditto.
1743 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1745 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1746 * i386-tdep.c (i386_gdbarch_init): Ditto.
1747 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1748 * frv-tdep.c (frv_gdbarch_init): Ditto.
1749 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1750 * cris-tdep.c (cris_gdbarch_init): Ditto.
1751 * avr-tdep.c (avr_gdbarch_init): Ditto.
1752
1753 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1754 call_dummy_location, default is already AT_ENTRY_POINT.
1755 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1756 * v850-tdep.c (v850_gdbarch_init): Ditto.
1757 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1758 * sh-tdep.c (sh_gdbarch_init): Ditto.
1759 * s390-tdep.c (s390_gdbarch_init): Ditto.
1760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1761 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1762 * mips-tdep.c (mips_gdbarch_init): Ditto.
1763 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1765 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1766 * i386-tdep.c (i386_gdbarch_init): Ditto.
1767 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1768 * frv-tdep.c (frv_gdbarch_init): Ditto.
1769 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1770 * cris-tdep.c (cris_gdbarch_init): Ditto.
1771 * avr-tdep.c (avr_gdbarch_init): Ditto.
1772 * arm-tdep.c (arm_gdbarch_init): Ditto.
1773 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1774
1775 2002-11-28 Andrew Cagney <cagney@redhat.com>
1776
1777 * frame.h: Update comments on set_current_frame, create_new_frame,
1778 flush_cached_frames, reinit_frame_cache, select_frame and
1779 selected_frame.
1780
1781 2002-11-27 Andrew Cagney <cagney@redhat.com>
1782
1783 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1784 deprecated pc_in_call_dummy function.
1785 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1786 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1787 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1788 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1789 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1790
1791 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1792
1793 * Makefile.in: Remove Tix dependencies.
1794 * acinclude.m4: Ditto.
1795 * aclocal.m4: Ditto.
1796 * configure.in: Ditto.
1797 * configure: Regenerated.
1798
1799 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1800
1801 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1802 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1803 * gdbarch.c: Re-generate.
1804
1805 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1806
1807 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1808 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1809 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1810 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1811 pc_in_call_dummy_at_entry_point.
1812 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1813 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1814 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1815 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1816 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1817 pc_in_call_dummy_on_stack.
1818 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1819 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1820 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1821 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1822 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1823
1824 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1825
1826 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1827 pc_in_call_dummy_before_text_end
1828 (deprecated_pc_in_call_dummy_after_text_end): Rename
1829 pc_in_call_dummy_after_text_end.
1830 (deprecated_pc_in_call_dummy_on_stack): Rename
1831 pc_in_call_dummy_on_stack.
1832 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1833 pc_in_call_dummy_at_entry_point.
1834 * m68k-tdep.c (m68k_gdbarch_init): Update.
1835 * s390-tdep.c (s390_gdbarch_init): Update.
1836 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1837 * vax-tdep.c (vax_gdbarch_init): Update.
1838 * sparc-tdep.c (sparc_gdbarch_init): Update.
1839 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1841 * i386-tdep.c (i386_gdbarch_init): Update.
1842 * frv-tdep.c (frv_gdbarch_init): Update.
1843 * cris-tdep.c (cris_gdbarch_init): Update.
1844 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1845 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1846 (deprecated_pc_in_call_dummy_after_text_end)
1847 (deprecated_pc_in_call_dummy_on_stack)
1848 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1849 * alpha-tdep.c (alpha_gdbarch_init): Update.
1850
1851 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1852
1853 * acconfig.h (HAVE_PREAD64): Add.
1854 * configure.in: Check for pread64.
1855 * config.in: Regenerated.
1856 * configure: Regenerated.
1857 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1858 * linux-proc.c (linux_proc_xfer_memory): New function.
1859 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1860
1861 2002-11-25 David Carlton <carlton@math.stanford.edu>
1862
1863 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1864 pdi's with no name.
1865
1866 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1867
1868 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1869 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1870
1871 2002-11-25 Jim Blandy <jimb@redhat.com>
1872
1873 * symfile.c (init_objfile_sect_indices): New function.
1874 (default_symfile_offsets): Move the section-index-initializing
1875 stuff into init_objfile_sect_indices, and call that.
1876
1877 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1878 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1879
1880 * symfile.c (syms_from_objfile): Adjust indentation.
1881
1882 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1883 || info_verbose isn't true.
1884
1885 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1886
1887 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1888 default to get_frame_base.
1889 * gdbarch.h, gdbarch.c: Regenerate.
1890 * arch-utils.c (default_frame_address): Delete function.
1891 * arch-utils.h (default_frame_address): Delete declaration
1892
1893 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1894
1895 * varobj.c (find_frame_addr_in_frame_chain):
1896 Use get_frame_base instead of FRAME_FP,
1897 obvious fix.
1898
1899 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1900
1901 * frame.h (FRAME_FP): Delete macro.
1902 (get_frame_base): New function declaration.
1903 * frame.c (get_frame_base): New function.
1904 (get_frame_id): Use ->frame.
1905 (frame_find_by_id): Rewrite to use get_frame_id.
1906 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1907 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1908 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1909 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1910 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1911 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1912 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1913
1914 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1915
1916 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1917
1918 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1919
1920 * frame.c (set_unwind_by_pc): Revert change below, use
1921 PC_IN_CALL_DUMMY.
1922 (get_prev_frame): Ditto.
1923
1924 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1925
1926 * dummy-frame.c (pc_in_dummy_frame): New function.
1927 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1928 (find_dummy_frame): Update comment.
1929 (generic_pop_current_frame): Use get_frame_type.
1930 * dummy-frame.h (pc_in_dummy_frame): Declare.
1931 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1932 (create_new_frame): Use pc_in_dummy_frame.
1933 (get_prev_frame): Use pc_in_dummy_frame.
1934 (frame_saved_regs_register_unwind): Use get_prev_frame.
1935 (deprecated_generic_get_saved_register): Use get_prev_frame.
1936
1937 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1938
1939 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1940 from here ...
1941 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1942 (varobj_create): Note that frame ID should be used.
1943 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1944
1945 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1946
1947 * breakpoint.c: Include "gdb_assert.h".
1948 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1949 not being used.
1950 * Makefile.in (breakpoint.o): Update dependencies.
1951 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1952 deprecated_frame_in_dummy.
1953 * stack.c (print_frame_info_base): Ditto.
1954 (frame_info): Ditto.
1955 (print_frame_info_base): Ditto. Delete dead code.
1956
1957 2002-11-23 Andreas Schwab <schwab@suse.de>
1958
1959 * Makefile.in (m68k_tdep_h): Define.
1960 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1961 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1962 * m68k-tdep.c: Move register number enum ...
1963 * m68k-tdep.h: ... to this new file and rename the constants from
1964 E_* to M68K_*. All uses changed.
1965 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1966 * abug-rom.c: Include "m68k-tdep.h". Use
1967 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1968 * cpu32bug-rom.c: Likewise.
1969 * dbug-rom.c: Likewise.
1970 * m68k-tdep.c: Likewise.
1971 * m68klinux-nat.c: Likewise.
1972 * remote-est.c: Likewise.
1973 * rom68k-rom.c: Likewise.
1974 * config/m68k/tm-linux.h: Likewise.
1975
1976 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1977
1978 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1979 dummy frame initialization code.
1980 * mips-tdep.c (mips_gdbarch_init): Ditto.
1981
1982 2002-11-22 Christopher Faylor <cgf@redhat.com>
1983
1984 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1985 attach will hang.
1986
1987 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1988
1989 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1990 to default_frame_address.
1991 * gdbarch.h, gdbarch.c: Re-generate.
1992
1993 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1994 or frame_locals_address to default_frame_address.
1995 * m68k-tdep.c (m68k_gdbarch_init): Update.
1996 * i386-tdep.c (i386_gdbarch_init): Update.
1997 * frv-tdep.c (frv_gdbarch_init): Update.
1998 * sh-tdep.c (sh_gdbarch_init): Update.
1999 * v850-tdep.c (v850_gdbarch_init): Update.
2000 * sparc-tdep.c (sparc_gdbarch_init): Update.
2001 * mips-tdep.c (mips_gdbarch_init): Update.
2002 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2003 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2004 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2005
2006 * cris-tdep.c (cris_frame_args_address): Delete function.
2007 (cris_frame_locals_address): Delete function.
2008 (cris_gdbarch_init): Do not set frame_args_address or
2009 frame_locals_address.
2010
2011 2002-11-22 Michael Snyder <msnyder@redhat.com>
2012
2013 * thread-db.c (thread_db_load): Tell the user what's going on
2014 if dlopen fails on libthread_db.
2015
2016 2002-11-23 Andreas Schwab <schwab@suse.de>
2017
2018 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2019 invariant return values.
2020
2021 2002-11-22 Andreas Schwab <schwab@suse.de>
2022
2023 * valops.c (value_slice): Move declaration of `offset' to avoid
2024 warning.
2025
2026 2002-11-22 Christopher Faylor <cgf@redhat.com>
2027
2028 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2029 (struct so_stuff): Add end_addr field.
2030 (register_loaded_dll): Calculate and store end address of loaded dll.
2031 (solib_address): New function.
2032 (child_solib_loaded_library_pathname): Pass carefully constructed
2033 section info to safe_symbol_file_add rather than ignoring it.
2034 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2035 DLL is loaded.
2036 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2037 (child_create_inferior): Fix a compiler warning.
2038 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2039 (solib_address): Declare new function.
2040
2041 2002-11-22 Andreas Schwab <schwab@suse.de>
2042
2043 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2044 and FPS registers.
2045
2046 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2047
2048 * maint.c (_initialize_maint_cmds): Fix typo. From
2049 Francesco Potorti` <pot@gnu.org>.
2050
2051 2002-11-21 Andrew Cagney <cagney@redhat.com>
2052
2053 * mips-tdep.c (mips_dump_tdep): Delete references to
2054 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2055 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2056 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2057 * printcmd.c (build_address_symbolic): Delete calls to
2058 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2059 (address_info): Ditto.
2060 Fix PR gdb/773.
2061
2062 2002-11-19 Klee Dienes <kdienes@apple.com>
2063 Adam Fedor <fedor@gnu.org>
2064
2065 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2066 the ability to explicitly specify the quote characters and word
2067 break characters; if NULL is specified for either, use the old
2068 behavior of using the characters used by the completer.
2069 (skip_chars): New function. Convenience wrapper around
2070 skip_quoted_chars to provide the original skip_chars behavior.
2071 * completer.h (skip_quoted_chars): Add prototype.
2072
2073 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2074
2075 Problems reported by Paul Eggert.
2076 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2077
2078 2002-11-19 Andreas Schwab <schwab@suse.de>
2079
2080 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2081 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2082 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2083 (m68k_linux_frame_saved_pc): Move to ...
2084 * m68klinux-tdep.c: ... here. New file.
2085 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2086 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2087
2088 2002-11-19 Adam Fedor <fedor@gnu.org>
2089
2090 * objc-exp.y: Revert to old skip_quoted usage.
2091
2092 2002-11-19 Adam Fedor <fedor@gnu.org>
2093
2094 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2095 (objc_lang_h): Define.
2096 (YYFILES): Add objc-exp.tab.c.
2097 (local-maintainer-clean): Remove objc-exp.tab.c.
2098 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2099
2100 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2101
2102 * p-exp.y (typecast rule): Add automatic dereference of
2103 pascal classes if needed.
2104 (THIS): Set current_type.
2105 Automatically dereference pascal classes.
2106 (typebase rule): Add ^typebase recognition.
2107
2108 2002-11-18 Adam Fedor <fedor@gnu.org>
2109
2110 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2111 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2112 (op_name): Handle OP_OBJC_SELF.
2113 * Makefile.in (expprint.o): Add additional depends.
2114
2115 2002-11-18 Adam Fedor <fedor@gnu.org>
2116
2117 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2118 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2119 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2120 * objc-exp.y: Likewise.
2121
2122 2002-11-18 Adam Fedor <fedor@gnu.org>
2123
2124 * gdb/parser-defs.h: (struct objc_class_str): New structure
2125 for parsing ObjC classes.
2126
2127 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2128
2129 * stack.c (frame_relative_level): Copy function from here ...
2130 * frame.c (frame_relative_level): ...to here.
2131
2132 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2133
2134 * frame.h (enum frame_type): Define.
2135 (get_frame_type): Declare.
2136 (struct frame_info): Add field `type'. Delete field
2137 signal_handler_caller.
2138 (deprecated_set_frame_signal_handler_caller): Declare.
2139 * frame.c (get_frame_type): New function.
2140 (deprecated_set_frame_type): New function.
2141 (create_new_frame): Set the frame's type.
2142 (get_prev_frame): Similar.
2143 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2144 * s390-tdep.c: Ditto.
2145 * m68klinux-nat.c: Ditto.
2146 * ns32k-tdep.c: Ditto.
2147 * x86-64-linux-tdep.c: Ditto.
2148 * vax-tdep.c: Ditto.
2149 * rs6000-tdep.c: Ditto.
2150 * ppc-linux-tdep.c: Ditto.
2151 * i386-interix-tdep.c: Ditto.
2152 * mips-tdep.c: Ditto.
2153 * m68k-tdep.c: Ditto.
2154 * hppa-tdep.c: Ditto.
2155 * ia64-tdep.c: Ditto.
2156 * cris-tdep.c: Ditto.
2157 * arm-tdep.c: Ditto.
2158 * alpha-tdep.c: Ditto.
2159 * i386-tdep.c: Ditto.
2160 * stack.c: Ditto.
2161 * ada-lang.c: Ditto.
2162 * blockframe.c: Update.
2163 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2164 deprecated_set_frame_type instead of signal_handler_caller.
2165 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2166 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2167 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2168
2169 2002-11-18 Klee Dienes <kdienes@apple.com>
2170
2171 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2172
2173 2002-11-18 Klee Dienes <kdienes@apple.com>
2174
2175 * buildsym.c (pop_context): Add comment.
2176
2177 2002-11-18 Klee Dienes <kdienes@apple.com>
2178
2179 * buildsym.h (pop_context): Convert to function, defined in
2180 buildsym.c.
2181 * buildsym.c: Include gdb_assert.h.
2182 (pop_context): Implement as C function. Add check for stack
2183 underflow.
2184 * dbxread.c (process_one_symbol): Complain and stop processing
2185 that symbol if we are already at the top of the context stack for
2186 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2187 when processing N_RBRAC.
2188
2189 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2190
2191 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2192 define.
2193 (struct target_waitstatus): Add opaque definition.
2194 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2195 * exec.c (init_exec_ops): Likewise.
2196 * fork-child.c (clone_and_follow_inferior): Remove.
2197 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2198 * inferior.h (clone_and_follow_inferior): Remove prototype.
2199 * infrun.c (follow_fork_mode_both): Remove.
2200 (follow_fork_mode_kind_names): Remove commented out "both".
2201 (follow_inferior_fork): Remove follow_fork_mode_both support.
2202 * inftarg.c (child_clone_and_follow_inferior): Remove.
2203 (child_post_follow_inferior_by_clone): Remove.
2204 (init_child_ops): Don't set to_clone_and_follow_inferior
2205 or to_post_follow_inferior_by_clone.
2206 * target.c (default_clone_and_follow_inferior): Remove.
2207 (cleanup_target): Don't set to_clone_and_follow_inferior
2208 or to_post_follow_inferior_by_clone.
2209 (find_default_clone_and_follow_inferior): Remove.
2210 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2211 (debug_to_clone_and_follow_inferior): Remove.
2212 (debug_to_post_follow_inferior_by_clone): Remove.
2213 (setup_target_debug): Don't set to_clone_and_follow_inferior
2214 or to_post_follow_inferior_by_clone.
2215 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2216 and to_post_follow_inferior_by_clone.
2217 (child_clone_and_follow_inferior): Remove prototype.
2218 (child_post_follow_inferior_by_clone): Remove prototype.
2219 (target_clone_and_follow_inferior): Remove macro.
2220 (target_post_follow_inferior_by_clone): Remove macro.
2221 (find_default_clone_and_follow_inferior): Remove prototype.
2222
2223 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2224
2225 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2226 inferior_has_vforked, and inferior_has_execd instead of
2227 target_has_forked, target_has_vforked, and target_has_execd.
2228 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2229 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2230 (CHILD_WAIT): Define.
2231 (child_wait): Add prototype.
2232 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2233 Add prototype.
2234 (hpux_has_vforked): Likewise, from child_has_vforked.
2235 (hpux_has_execd): Likewise, from child_has_execd.
2236 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2237 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2238 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2239 and hpux_has_syscall_event instead of the target hooks.
2240 * infrun.c (inferior_has_forked, inferior_has_vforked)
2241 (inferior_has_execd): New functions.
2242 * inftarg.c (not_same_real_pid): Remove.
2243 (child_wait): Remove references to not_same_real_pid,
2244 target_has_forked, target_has_vforked, target_has_execd,
2245 and target_has_syscall_event.
2246 (child_has_forked, child_has_vforked, child_has_execd)
2247 (child_has_syscall_event): Remove.
2248 (init_child_ops): Remove references to child_has_forked,
2249 child_has_vforked, child_has_execd, and child_has_syscall_event.
2250 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2251 (hpux_has_vforked): Likewise, from child_has_vforked.
2252 (hpux_has_execd): Likewise, from child_has_execd.
2253 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2254 * target.c (cleanup_target): Remove references to
2255 to_has_forked, to_has_vforked, to_has_execd, and
2256 to_has_syscall_event.
2257 (update_current_target): Likewise.
2258 (setup_target_debug): Likewise.
2259 (debug_to_has_forked): Remove.
2260 (debug_to_has_vforked): Remove.
2261 (debug_to_has_execd): Remove.
2262 (debug_to_has_syscall_event): Remove.
2263 * target.h (struct target_ops): Remove to_has_forked.
2264 to_has_vforked, to_has_execd, and to_has_syscall_event.
2265 (child_has_forked, child_has_vforked, child_has_execd)
2266 (child_has_syscall_event): Remove prototypes.
2267 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2268 prototypes.
2269 (target_has_forked, target_has_vforked, target_has_execd)
2270 (target_has_syscall_event): Remove macros.
2271
2272 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2273
2274 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2275 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2276 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2277 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2278 * target.c (cleanup_target): Remove reference to
2279 to_can_follow_vfork_prior_to_exec.
2280 (update_current_target): Likewise.
2281 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2282 (setup_target_debug): Remove reference to
2283 to_can_follow_vfork_prior_to_exec.
2284 * target.h (struct target_ops): Remove
2285 to_can_follow_vfork_prior_to_exec.
2286 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2287 (target_can_follow_vfork_prior_to_exec): Remove definition.
2288 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2289 define.
2290 * infrun.c (follow_vfork_when_exec): Remove.
2291 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2292 (follow_exec): Likewise.
2293 (handle_inferior_event): Likewise.
2294 (keep_going): Likewise.
2295
2296 2002-11-15 Andrew Cagney <cagney@redhat.com>
2297
2298 * frame.c (generic_unwind_get_saved_register): Make static.
2299 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2300 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2301 defaults to generic_unwind_get_saved_register.
2302 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2304 * frv-tdep.c (frv_gdbarch_init): Ditto.
2305 * i386-tdep.c (i386_gdbarch_init): Ditto.
2306 * s390-tdep.c (s390_gdbarch_init): Ditto.
2307 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2308 * v850-tdep.c (v850_gdbarch_init): Ditto.
2309 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2310 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2311 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2312
2313 2002-11-15 Andrew Cagney <cagney@redhat.com>
2314
2315 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2316 i386-tdep.c.
2317
2318 2002-11-15 Andrew Cagney <cagney@redhat.com>
2319
2320 * frame.h (sigtramp_saved_pc): Delete declaration.
2321 * blockframe.c (sigtramp_saved_pc): Delete function.
2322 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2323 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2324 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2325 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2326
2327 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2328
2329 * frame.c (frame_pc_unwind): New function.
2330 (frame_saved_regs_pc_unwind): New function.
2331 (frame_register_unwind): Pass unwind_cache instead of
2332 register_unwind_cache.
2333 (set_unwind_by_pc): Add unwind_pc parameter, set.
2334 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2335 (get_prev_frame): Ditto.
2336 * frame.h (frame_pc_unwind_ftype): Declare.
2337 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2338 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2339 (frame_pc_unwind): Declare.
2340 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2341 (struct dummy_frame): Add comment mentioning that values are for
2342 previous frame.
2343 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2344 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2345 (generic_file_frame_chain_valid): Ditto.
2346 * stack.c (frame_info): Ditto.
2347
2348 2002-11-15 David Carlton <carlton@math.stanford.edu>
2349
2350 * linespec.c (locate_first_half): New function.
2351 (decode_line_1): Move code into locate_first_half.
2352
2353 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2354
2355 * complaints.h: Add comment explaining how to eliminate a
2356 deprecated_complain call.
2357 * complaints.h: Fix spelling errors.
2358
2359 2002-11-15 David Carlton <carlton@math.stanford.edu>
2360
2361 * printcmd.c: Remove #include "disasm.h".
2362
2363 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2364
2365 * frame.h: Move the most relevant interface functions to the start
2366 of the file.
2367
2368 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2369
2370 * regcache.h (deprecated_registers): Rename registers.
2371 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2372 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2373 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2374 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2375 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2376 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2377 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2378 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2379 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2380 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2381 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2382 * v850ice.c: Update.
2383
2384 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2385
2386 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2387 NULL buffer.
2388
2389 2002-11-13 Andrew Cagney <cagney@redhat.com>
2390
2391 * regcache.h (deprecated_read_register_bytes): Rename
2392 read_register_bytes.
2393 (deprecated_write_register_bytes): Rename write_register_bytes.
2394 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2395 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2396 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2397 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2398 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2399 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2400 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2401 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2402 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2403 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2404 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2405 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2406 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2407 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2408
2409 2002-11-13 Jim Blandy <jimb@redhat.com>
2410
2411 * findvar.c (read_var_value): Doc fix.
2412
2413 2002-11-13 Andrew Cagney <cagney@redhat.com>
2414
2415 * regcache.c (struct regcache): Replace passthough_p with
2416 readonly_p.
2417 (regcache_xmalloc): Initialize readonly_p.
2418 (build_regcache): Initialize readonly_p.
2419 (regcache_save): New function.
2420 (regcache_restore): New function.
2421 (regcache_cpy): Re-implement using regcache_save and
2422 regcache_restore.
2423 (regcache_raw_read): Update.
2424 (regcache_cooked_read): When a read-only cache, checked for cached
2425 pseudo register values.
2426 (regcache_raw_write): Assert that the cache is not read-only.
2427 Remove code handling a non-passthrough cache.
2428 * regcache.h (regcache_save): Declare.
2429 (regcache_restore): Declare.
2430
2431 2002-11-13 Andrew Cagney <cagney@redhat.com>
2432
2433 * regcache.c (struct regcache_descr): Add fields
2434 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2435 (init_legacy_regcache_descr): Compute the size of a cooked
2436 register cache and then assign that to sizeof_raw_registers. Set
2437 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2438 (init_legacy_regcache_descr): Ditto.
2439
2440 2002-11-13 Andrew Cagney <cagney@redhat.com>
2441
2442 * regcache.c (register_buffer): Move to near start of file, update
2443 description.
2444 (regcache_raw_read): Use.
2445 (regcache_raw_write): Use.
2446 (struct regcache): Rename raw_registers to registers and
2447 raw_register_valid_p to register_valid_p.
2448 (regcache_xmalloc): Update.
2449 (regcache_xfree): Update.
2450 (register_buffer): Update.
2451 (regcache_cpy): Update.
2452 (regcache_cpy_no_passthrough): Update.
2453 (regcache_valid_p): Update.
2454 (deprecated_grub_regcache_for_registers): Update.
2455 (deprecated_grub_regcache_for_register_valid): Update.
2456 (set_register_cached): Update.
2457 (regcache_raw_write): Update.
2458
2459 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2460
2461 * p-exp.y (name_not_typename): Use copy_name to
2462 set current_type variable for fields of THIS.
2463
2464 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2465
2466 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2467 * monitor.c (init_base_monitor_ops): Likewise.
2468 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2469 * remote-array.c (init_array_ops): Likewise.
2470 * remote-e7000.c (init_e7000_ops): Likewise.
2471 * remote-es.c (init_es1800_ops): Likewise.
2472 (init_es1800_child_ops): Likewise.
2473 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2474 * remote-sim.c (init_gdbsim_ops): Likewise.
2475 * remote-st.c (init_st2000_ops): Likewise.
2476 * sol-thread.c (init_sol_core_ops): Likewise.
2477 (init_sol_thread_ops): Likewise.
2478 * v850ice.c (init_850ice_ops): Likewise.
2479 * win32-nat.c (init_child_ops): Likewise.
2480 * wince.c (init_child_ops): Likewise.
2481
2482 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2483
2484 * utils.c (gdb_realpath): Make rp a constant pointer.
2485
2486 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2487
2488 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2489 a constant buffer; cannonicalize_file_name(); realpath() with a
2490 pathconf() defined buffer, xstrdup().
2491
2492 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2493
2494 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2495 to hang2.C; hang3.c to hang3.C.
2496
2497 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2498
2499 * findvar.c (read_var_value): Reenable TLS code.
2500
2501 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2502 Jim Blandy <jimb@redhat.com>
2503
2504 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2505 * target.c (update_current_target): Add
2506 to_get_thread_local_address.
2507 * target.h (to_get_thread_local_address): Export.
2508 (target_get_thread_local_address): Define.
2509 (target_get_thread_local_address_p): Define.
2510 * thread-db.c: Include solib-svr4.h.
2511 (td_thr_tls_get_addr_p): Define.
2512 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2513 (thread_db_get_thread_local_address): New function.
2514 (init_thread_db_ops): Initialize to_get_thread_local_address.
2515 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2516 * configure: Regenerate.
2517 * config.in: Regenerate.
2518
2519 2002-11-11 David Carlton <carlton@math.stanford.edu>
2520
2521 * linespec.c (set_flags): New function.
2522 (decode_line_1): Move code into set_flags.
2523
2524 2002-11-11 David Carlton <carlton@math.stanford.edu>
2525
2526 * linespec.c (decode_line_1): Move chunks of code to separate
2527 functions.
2528 (initialize_defaults): New function.
2529 (decode_indirect): New function.
2530
2531 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2532
2533 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2534 instead of void_code_ptr.
2535 (sigtramp_saved_pc): Ditto.
2536
2537 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2538 i386_fp_regnum_p.
2539
2540 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2541
2542 * gdbtypes.h (struct main_type): Move artificial flag out of
2543 loc. New member of ``struct field'' named static_kind. Reduce
2544 overloaded meaning of bitsize.
2545 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2546 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2547 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2548
2549 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2550 new fields.
2551 (template_to_fixed_record_type, template_to_static_fixed_type)
2552 (to_record_with_fixed_variant_part): Likewise.
2553 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2554 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2555 * dwarfread.c (struct_type, enum_type): Likewise.
2556 * hpread.c (hpread_read_enum_type)
2557 (hpread_read_function_type, hpread_read_doc_function_type)
2558 (hpread_read_struct_type): Likewise.
2559 * mdebugread.c (parse_symbol): Likewise.
2560
2561 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2562
2563 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2564 * stack.c (print_frame_info_base): Update.
2565 (print_frame_info_base, frame_info): Update.
2566 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2567 (sparc_frame_saved_pc): Update.
2568 * ada-lang.c (find_printable_frame): Update.
2569 * breakpoint.c (deprecated_frame_in_dummy): Update.
2570
2571 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2572
2573 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2574 defined.
2575 (regmap): Extend to cover all registers.
2576 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2577 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2578 definitions.
2579 (fetch_register, sore_register): Simplify.
2580 (old_fetch_inferior_registers, old_store_inferior_registers):
2581 Remove functions.
2582 (cannot_fetch_register, cannot_store_register): Change
2583 implementation to use regmap array to decide which registers
2584 cannot be fetched/stored. This removes $orig_eax from the
2585 registers that cannot be fetched/stored.
2586 (fetch_inferior_registers): Call fetch_register directly instead
2587 of calling old_fetch_inferior_registers.
2588 (store_inferior_registers): Call store_register directly instead
2589 of calling old_store_inferior_registers.
2590 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2591 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2592 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2593
2594 2002-11-09 Klee Dienes <kdienes@apple.com>
2595
2596 * i387-tdep.c (i387_supply_register): When called with NULL as a
2597 buffer, mark the register as not provided (to mirror the behavior
2598 of supply_register).
2599 (i387_supply_fxsave): Ditto.
2600 (i387_supply_fsave): Ditto (inherits the behavior from
2601 i387_supply_register).
2602
2603 2002-11-09 Klee Dienes <kdienes@apple.com>
2604
2605 * blockframe.c (sigtramp_saved_pc): Use
2606 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2607 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2608 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2609
2610 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2611
2612 * frame.c (get_prev_frame): Test prev_p to identify a previously
2613 unwound frame. Initialize prev_p.
2614 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2615 comment.
2616
2617 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2618
2619 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2620 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2621 more comments. Zap dead code.
2622
2623 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2624
2625 * infcmd.c (print_vector_info, print_float_info): Move code that
2626 checks whether the target has any registers and whether there is a
2627 selected frame up, such that it is also used if a target provides
2628 multi-arch definitions of these functions.
2629
2630 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2631
2632 * Makefile.in (DESTDIR): Define.
2633 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2634 prefix.
2635
2636 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2637 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2638
2639 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2640
2641 * i386-linux-tdep.c: Include "reggroups.h".
2642 (i386_linux_register_reggroup_p): New function.
2643 (i386_linux_init_abi): Set register_reggroup_p to
2644 i386_linux_register_reggroup_p.
2645 * i386-tdep.h (i386_register_reggroup_p): Declare.
2646 * i386-tdep.c: Include "reggroups.h".
2647 (i386_init_reggroups): New function.
2648 (i386_add_reggroups): New function.
2649 (i386_register_reggroup_p): New function.
2650 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2651 (_initialize_i386_tdep): Call i386_init_reggroups.
2652 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2653 specific reggroups.
2654
2655 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2656
2657 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2658 request that's available in *BSD.
2659
2660 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2661
2662 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2663 FDOFF_REGNUM.
2664
2665 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2666
2667 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2668 * dummy-frame.c (find_dummy_frame): Rename
2669 generic_find_dummy_frame, make static. Return the dummy frame
2670 instead of the regcache.
2671 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2672 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2673 (dummy_frame_register_unwind): Rename
2674 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2675 * dummy-frame.h (dummy_frame_register_unwind): Rename
2676 generic_call_dummy_register_unwind.
2677
2678 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2679
2680 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2681 except the inclusion of "i386/tm-i386.h", to...
2682 * config/i386/nm-i386v42mp.h: ...here.
2683 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2684
2685 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2686
2687 * Makefile.in (frame.o): Update dependencies.
2688 * blockframe.c (current_frame, frame_obstack_alloc)
2689 (frame_saved_regs_zalloc, get_current_frame)
2690 (set_current_frame, create_new_frame)
2691 (set_unwind_by_pc, get_next_frame)
2692 (flush_cached_frames, reinit_frame_cache)
2693 (frame_saved_regs_register_unwind)
2694 (deprecated_generic_get_saved_register)
2695 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2696 (_initialize_blockframe): Move frame code from here...
2697 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2698 "annotate.h" and "dummy-frame.h".
2699 (_initialize_frame): New function.
2700
2701 2002-11-08 Jim Blandy <jimb@redhat.com>
2702
2703 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2704 when we finish a function a context.
2705 * buildsym.h (outermost_context_p): New macro.
2706 (Bug analyzed by David Edelsohn.)
2707
2708 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2709
2710 * blockframe.c: Include "dummy-frame.h".
2711 (struct dummy_frame, dummy_frame_stack)
2712 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2713 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2714 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2715 (generic_save_call_dummy_addr, generic_pop_current_frame)
2716 (generic_pop_dummy_frame, generic_fix_call_dummy)
2717 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2718 dummy frame code from here...
2719 * dummy-frame.c: ...to here. New file.
2720 * dummy-frame.h: New file.
2721 (generic_call_dummy_register_unwind): Declare.
2722 (generic_find_dummy_frame): Declare.
2723 * Makefile.in (SFILES): Add dummy-frame.c.
2724 (dummy-frame.o): Specify dependencies.
2725 (dummy_frame_h): Define.
2726 (COMMON_OBS): Add dummy-frame.o.
2727 (blockframe.o): Update dependencies.
2728
2729 2002-11-08 Jim Blandy <jimb@redhat.com>
2730
2731 * dwarf2read.c (read_func_scope): Restore local_symbols and
2732 param_symbols after we finish the function context. (Based on a
2733 patch from David Edelsohn.)
2734
2735 2002-11-08 David Carlton <carlton@math.stanford.edu>
2736
2737 * linespec.c (symbol_found): New function.
2738 (minsym_found): New function.
2739 (decode_line_1): Separate out some code into separate functions.
2740
2741 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2742
2743 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2744 the benefit of the interix target.
2745 * i386-tdep.h (i386_frameless_signal_p): Declare.
2746
2747 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2748
2749 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2750 declaration that snuck in from change below.
2751
2752 2002-11-06 Andrew Cagney <cagney@redhat.com>
2753
2754 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2755 all callers.
2756 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2757 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2758 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2759 (i386_mxcsr_regnum_p): new function. Use instead of
2760 MXCSR_REGNUM_P.
2761 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2762 (i386_sse_regnum_p): Declare.
2763 (i386_mxcsr_regnum_p): Declare.
2764 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2765 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2766 (IS_FP_REGNUM): Update definition.
2767 (IS_FPU_CTRL_REGNUM): Update definition..
2768 (IS_SSE_REGNUM): Update definition..
2769 * i386v-nat.c (register_u_addr): Update.
2770 * go32-nat.c (fetch_register): Update.
2771 (store_register): Update.
2772
2773 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2774
2775 Preparation work to convert the hppa targets to multiarch partial.
2776
2777 * hppa-tdep.c: Add new functions replacing macro bodies from
2778 config/pa/tm-hppa.h. These function will be used to initialize
2779 the gdbarch structure. Import some comments from tm-hppa.h,
2780 and place them where appropriate, to avoid loosing them when
2781 we cleanup this file.
2782 (hppa_reg_struct_has_addr): New function.
2783 (hppa_inner_than): New function.
2784 (hppa_stack_align): New function.
2785 (hppa_pc_requires_run_before_use): New function.
2786 (hppa_instruction_nullified): New function.
2787 (hppa_register_byte): New function.
2788 (hppa_register_virtual_type): New function.
2789 (hppa_store_struct_return): New function.
2790 (hppa_cannot_store_register): New function.
2791 (hppa_frame_args_address): New function.
2792 (hppa_frame_locals_address): New function.
2793 (hppa_smash_text_address): New function.
2794 (hppa_coerce_float_to_double): New function. Requires the inclusion
2795 of "language.h".
2796
2797 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2798
2799 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2800 gdbarch-eligible macro to a call to the new associated function
2801 created in hppa-tdep.c.
2802 (INNER_THAN): Likewise.
2803 (STACK_ALIGN): Likewise.
2804 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2805 (INSTRUCTION_NULLIFIED): Likewise.
2806 (REGISTER_BYTE): Likewise.
2807 (REGISTER_VIRTUAL_TYPE): Likewise.
2808 (STORE_STRUCT_RETURN): Likewise.
2809 (CANNOT_STORE_REGISTER): Likewise.
2810 (FRAME_ARGS_ADDRESS): Likewise.
2811 (FRAME_LOCALS_ADDRESS): Likewise.
2812 (SMASH_TEXT_ADDRESS): Likewise.
2813 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2814 (ABOUT_TO_RETURN): Delete, as no longer used.
2815
2816 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2817
2818 * printcmd.c (disassemble_command): Remove obsolete function.
2819 (_initialize_printcmd): Do not create disassemble command here.
2820 * cli/cli-cmds.c (disassemble_command): New function. Implements
2821 disassemble command.
2822 (init_cli_cmds): Create disassemble command here instead.
2823
2824 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2825
2826 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2827
2828 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2829
2830 * regcache.h (regcache_cooked_read_using_offset_hack)
2831 (regcache_cooked_write_using_offset_hack): Delete declarations.
2832 (register_changed): Delete declaration.
2833 * regcache.c (regcache_cooked_read_using_offset_hack)
2834 (regcache_cooked_write_using_offset_hack): Delete functions.
2835 (cooked_xfer_using_offset_hack): Delete function.
2836 (register_changed): Delete function.
2837
2838 2002-11-07 Jim Blandy <jimb@redhat.com>
2839
2840 * macroscope.c: #include "complaints.h".
2841 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2842 but not in the macro table.
2843 * Makefile.in (macroscope.o): Record dependency.
2844
2845 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2846
2847 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2848
2849 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2850
2851 * regcache.c (deprecated_registers_fetched): Update.
2852 * regcache.h (deprecated_registers_fetched): Rename
2853 registers_fetched.
2854 * remote-vxsparc.c (vx_read_register): Update.
2855 * remote-vxmips.c (vx_read_register): Update.
2856 * remote-vx68.c (vx_read_register): Update.
2857 * irix5-nat.c (fetch_core_registers): Update.
2858 * mipsm3-nat.c (fetch_inferior_registers): Update.
2859 * sun3-nat.c (fetch_inferior_registers): Update.
2860 * symm-nat.c (fetch_inferior_registers): Update.
2861 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2862 (fetch_core_registers): Update.
2863 (fetch_kcore_registers): Update.
2864 * mips-nat.c (fetch_inferior_registers): Update.
2865 * corelow.c (get_core_registers): Update.
2866 * a68v-nat.c (fetch_inferior_registers): Update.
2867
2868 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2869
2870 Put in place the framework necessary for multiarching the hppa targets.
2871 * hppa-tdep.c (hppa_gdbarch_init): New function.
2872 (hppa_dump_tdep): New function.
2873 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2874 tdep structure dumper.
2875 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2876 until the multi-arching conversion has partially been completed.
2877
2878 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2879
2880 * valops.c (value_assign): Merge lval_register case into
2881 lval_reg_frame_relative. Use frame_register and
2882 regcache_cooked_write instead of get_saved_register and
2883 write_register_bytes. After flushing the register cache, try to
2884 re-select the selected frame.
2885
2886 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2887
2888 * regcache.h (deprecated_register_valid): Rename register_valid.
2889 * regcache.c: Update.
2890 * ia64-aix-nat.c: Update.
2891 * i386gnu-nat.c: Update.
2892 * alpha-nat.c: Update.
2893 * sparc-nat.c: Update.
2894 * lynx-nat.c: Update.
2895 * remote-mips.c: Update.
2896
2897 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2898
2899 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2900 to end of file, to be more consistent with the pratice followed
2901 by other targets.
2902
2903 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2904
2905 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2906 (print_float_info): Print registers in float_reggroup.
2907 (print_vector_info): Print registers in vector_reggroup.
2908 (default_print_registers_info): When all, print registers in
2909 all_reggroup. Otherwize, print registers in general_reggroup.
2910 (registers_info): Rewrite. Add support for register groups.
2911 Eliminate a goto.
2912
2913 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2914
2915 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2916 ages.
2917 (symtab_symbol_info): Remove eons old ifdeffed out code.
2918 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2919 command.
2920
2921 2002-11-06 Theodore A. Roth <troth@openavr.org>
2922
2923 * c-exp.y: Add missing semi-colons.
2924 * f-exp.y: Add missing semi-colons.
2925 * m2-exp.y: Add missing semi-colons.
2926 * p-exp.y: Add missing semi-colons.
2927 Add empty action to start rule to avoid a type clash error when
2928 building with bison >= 1.50.
2929
2930 2002-11-06 Jim Blandy <jimb@redhat.com>
2931
2932 * macrotab.h (struct macro_source_file): Doc fix.
2933
2934 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2935
2936 * varobj.c (child_exists, cplus_number_of_children): Change
2937 STREQ macro references to strcmp.
2938 (cplus_name_of_child): Change code to handle the fact that
2939 fields are not necessarily contiguous with regards to their
2940 access control. This is a fix for PR gdb/792.
2941
2942 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2943
2944 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2945 * gdbarch.h, gdbarch.c: Regnerate.
2946 * frame.h (frame_register): Declare.
2947 * frame.c (frame_register): New function.
2948 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2949 GET_SAVED_REGISTER, otherwize call
2950 generic_unwind_get_saved_register.
2951 (frame_register_read): Use frame_register instead of
2952 get_saved_register.
2953
2954 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2955
2956 From Jim Ingham <jingham@apple.com>:
2957 * event-top.c (gdb_disable_readline): New function.
2958 (_initialize_event_loop): Move comment.
2959
2960 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2961
2962 * event-loop.c (start_event_loop): Add comment.
2963 Update copyright.
2964
2965 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2966
2967 * infcmd.c (default_print_registers_info): Do not call
2968 PRINT_REGISTER_HOOK.
2969
2970 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2971
2972 * sparc-tdep.c (sparc_print_register_hook): Make static.
2973 (sparc_print_registers_info): New function.
2974 (sparc_do_registers_info): New function.
2975 (sparclet_print_registers_info): New function.
2976 (sparclet_do_registers_info): New function.
2977 (do_sparc_print_registers_info): New function.
2978 (sparc_print_registers): New static function, clone of infcmd.c's
2979 default_print_registers_info.
2980 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2981 (sparclet_do_registers_info): Declare.
2982 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2983 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2984 Re-define.
2985 (sparc_do_registers_info): Declare.
2986 (PRINT_REGISTER_HOOK): Delete macro.
2987 (sparc_print_register_hook): Delete declaration.
2988
2989 2002-11-05 David Carlton <carlton@math.stanford.edu>
2990
2991 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2992 functions.
2993 (lookup_symbol_aux_local): New function.
2994 (lookup_symbol_aux_symtabs): New function.
2995 (lookup_symbol_aux_psymtabs): New function.
2996
2997 2002-11-05 David Carlton <carlton@math.stanford.edu>
2998
2999 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3000 previous values of 'objfile' and 'block'.
3001
3002 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3003
3004 * values.c (value_change_enclosing_type): Set
3005 enclosing_type field correctly also for the case where
3006 more memory needs to be allocated.
3007
3008 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3009
3010 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3011 of puts_filtered.
3012
3013 * i387-tdep.c (i387_print_float_info): Replace calls to
3014 register_read and deprecated_read_register_gen with calls to
3015 frame_register_read, and make the necessary adjustments to the
3016 surrounding code.
3017
3018 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3019
3020 * gdbarch.sh (register_reggroup_p): Allow default value.
3021 * gdbarch.h, gdbarch.c: Regenerate.
3022
3023 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3024
3025 * regcache.h: Add coment indicating replacements for deprecated
3026 functions.
3027
3028 2002-11-02 Andrew Cagney <cagney@redhat.com>
3029
3030 * reggroups.h, reggroups.c: New files.
3031 * regcache.c: Include "reggroups.h".
3032 (enum regcache_dump_what): Add `regcache_dump_groups'.
3033 (regcache_dump): Contract size of the "Type" column. When
3034 specified, dump the register's groups.
3035 (maintenance_print_register_groups): New function.
3036 (_initialize_regcache): Add command `maint print register-groups'.
3037 * Makefile.in (COMMON_OBS): Add reggroups.o
3038 (SFILES): Add reggroups.c.
3039 (reggroups_h): Define.
3040 (regcache.o, gdbarch.o): Update dependencies.
3041 (reggroups.o): Specify dependencies.
3042 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3043 Add opaque declaration for `struct reggroup' in generated .h file.
3044 Include "reggroups.h" in generated .c file.
3045 gdbarch.h, gdbarch.c: Re-generate.
3046
3047 2002-11-02 Andrew Cagney <cagney@redhat.com>
3048
3049 * regcache.h (deprecated_read_register_gen): Rename
3050 read_register_gen.
3051 (deprecated_write_register_gen): Rename write_register_gen.
3052 * i387-tdep.c: Update.
3053 * x86-64-linux-nat.c: Update
3054 * wince.c: Update.
3055 * thread-db.c: Update.
3056 * win32-nat.c: Update.
3057 * mips-tdep.c: Update.
3058 * d10v-tdep.c: Update.
3059 * cris-tdep.c: Update.
3060 * remote-sim.c: Update.
3061 * remote-rdi.c: Update.
3062 * remote-rdp.c: Update.
3063 * frame.c: Update.
3064 * target.c: Update.
3065 * blockframe.c: Update.
3066 * x86-64-tdep.c: Update.
3067 * xstormy16-tdep.c: Update.
3068 * sh-tdep.c: Update.
3069 * s390-tdep.c: Update.
3070 * rs6000-tdep.c: Update.
3071 * sparc-tdep.c: Update.
3072 * i386-tdep.c: Update.
3073 * dwarf2cfi.c: Update.
3074 * regcache.c: Update.
3075
3076 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3077
3078 New interix-specific files:
3079 * config/i386/nm-interix.h: New file.
3080 * config/i386/interix.mh: New file.
3081 * config/i386/interix.mt: New file.
3082 * i386-interix-nat.c: New file.
3083 * i386-interix-tdep.c: New file.
3084
3085 2002-11-01 Andrew Cagney <cagney@redhat.com>
3086
3087 * frame.h (deprecated_generic_get_saved_register): Rename
3088 generic_get_saved_register.
3089 * blockframe.c (deprecated_generic_get_saved_register): Update.
3090 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3091 (xstormy16_frame_saved_register): Update.
3092 * sh-tdep.c (sh_gdbarch_init): Update.
3093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3094 * ia64-tdep.c (ia64_get_saved_register): Update.
3095 * cris-tdep.c (cris_gdbarch_init): Update.
3096 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3097 * arm-tdep.c (arm_gdbarch_init): Update.
3098
3099 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3100
3101 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3102
3103 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3104
3105 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3106 trampolines in sigaction.
3107
3108 2002-10-31 Andrew Cagney <cagney@redhat.com>
3109
3110 * h8300-tdep.c: Include "gdb_assert.h".
3111 (h8300_print_register): Add gdbarch, file and frame parameters.
3112 Use frame_read_unsigned_register to read the register's value.
3113 Use fprintf_filtered to display output.
3114 (h8300_print_registers_info): Replace h8300_do_registers_info.
3115 (h8300_gdbarch_init): Set print_registers_info.
3116
3117 2002-10-31 Andrew Cagney <cagney@redhat.com>
3118
3119 * frame.c (frame_read_unsigned_register): New function.
3120 (frame_read_signed_register): New function.
3121 * frame.h (frame_read_unsigned_register): Declare.
3122 (frame_read_signed_register): Declare.
3123
3124 2002-10-31 Andrew Cagney <cagney@redhat.com>
3125
3126 * h8500-tdep.c (h8500_print_registers_info): New static function,
3127 clone of infcmd.c's default_print_registers_info.
3128 (h8500_do_registers_info): New funtion.
3129 (h8500_print_register_hook): Rename print_register_hook, make
3130 static.
3131
3132 * config/h8500/tm-h8500.h: Update copyright.
3133 (DEPRECATED_DO_REGISTERS_INFO): Define.
3134 (h8500_do_registers_info: Declare.
3135 (PRINT_REGISTER_HOOK): Delete macro.
3136 (print_register_hook): Delete function.
3137
3138 2002-10-31 Andrew Cagney <cagney@redhat.com>
3139
3140 * z8k-tdep.c (z8k_print_register_hook): Make static.
3141 (z8k_print_registers_info): New static function, clone of
3142 infcmd.c's default_print_registers_info.
3143 (z8k_do_registers_info): New function. Wrap
3144 z8k_print_registers_info.
3145 * config/z8k/tm-z8k.h: Update copyright.
3146 (PRINT_REGISTER_HOOK): Delete macro.
3147 (z8k_print_register_hook): Delete declaration.
3148 (DEPRECATED_DO_REGISTERS_INFO): Define.
3149 (z8k_do_registers_info): Declare.
3150
3151 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3152
3153 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3154 as this is already provided by value.h, and was actually causing
3155 a compilation error because of a conflict in parameter type
3156 declaration due to a missing const keyword.
3157 (low_text_segment_addres): Fix a compilation warning.
3158
3159 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3160
3161 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3162 registers without a name.
3163 (mips_linux_cannot_store_register): Don't store registers without
3164 a name.
3165
3166 2002-10-28 David Carlton <carlton@math.stanford.edu>
3167
3168 * symtab.c (find_addr_symbol): Delete. (It was already commented
3169 out.)
3170 * symtab.h: Delete prototype for find_addr_symbol.
3171
3172 2002-10-26 Andrew Cagney <cagney@redhat.com>
3173
3174 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3175 DO_REGISTERS_INFO.
3176 gdbarch.h, gdbarch.c: Re-generate.
3177 * infcmd.c (default_print_registers_info): Update reference.
3178 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3179 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3180 * sh-tdep.c (sh_gdbarch_init): Ditto.
3181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3183
3184 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3185
3186 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3187 cfi_init_extra_frame_info.
3188 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3189 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3190
3191 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3192 target where necessary. Add more comments and remove the ones
3193 that don't provide any useful information.
3194
3195 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3196 deprecated_read_register_dummy with
3197 frame_unwind_unsigned_register.
3198
3199 * i386-tdep.c (i386_extract_struct_value_address): Use
3200 regcache_raw_read_unsigned instead of
3201 regcache_cooked_read_unsigned since we know that the register
3202 we're reading isn't a pseudo register. Rename variable 'val' into
3203 the more descriptive 'addr'.
3204
3205 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3206 (x86_64_push_return_address): Add comment.
3207 (x86_64_pop_frame): Make static.
3208 (examine_argument): Clarify comment.
3209 (x86_64_skip_prologue): Make prolog_expact variable static.
3210
3211 * dwarf2cfi.c: Fix some formatting problems.
3212 (context_cpy, read_encoded_pointer): Clarify comments.
3213
3214 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3215 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3216 i386 target back into x86_64_gdbarch_init. Add some comments and
3217 remove meaningless ones.
3218
3219 2002-10-25 Andrew Cagney <cagney@redhat.com>
3220
3221 * complaints.h (struct deprecated_complaint): Rename `struct
3222 complaint'.
3223 * complaints.c (complain): Update.
3224 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3225 incorrect comment indicating that "symfile.h" was being included
3226 for the `struct complaint' definition.
3227 * remote-vx.c: Update.
3228 * objc-lang.c: Update.
3229 * xcoffread.c: Update.
3230 * hpread.c: Update.
3231 * mdebugread.c: Update.
3232 * stabsread.c: Update.
3233 * dwarf2read.c: Update.
3234 * dwarfread.c: Update.
3235 * elfread.c: Update.
3236 * coffread.c: Update.
3237 * stabsread.h: Update.
3238 * dbxread.c: Update.
3239 * buildsym.c: Update.
3240 * gdbtypes.c: Update.
3241 * macrotab.c: Update.
3242
3243 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3244
3245 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3246 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3247 (x86_64_init_abi): ...new function.
3248
3249 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3250 * i386v-nat.c: Include "i386-tdep.h".
3251
3252 2002-10-25 Andrew Cagney <cagney@redhat.com>
3253
3254 * gdbtypes.c (address_space_name_to_int): Update.
3255 (address_space_int_to_name): Update.
3256 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3257 multi-arch predicate.
3258 (address_class_name_to_type_flags): Ditto.
3259 * gdbarch.h, gdbarch.c: Re-generate.
3260
3261 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3262
3263 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3264
3265 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3266
3267 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3268
3269 * symtab.h (INIT_SAL): Delete macro.
3270 (init_sal): Export.
3271 * symtab.c (init_sal): New function.
3272
3273 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3274 to init_sal function call.
3275 (find_sal_from_funcs_and_line): Ditto.
3276 (all_sals_for_line): Ditto.
3277 * breakpoint.c (create_internal_breakpoint): Ditto.
3278 (create_fork_vfork_event_catchpoint): Ditto.
3279 (create_exec_event_catchpoint): Ditto.
3280 (parse_breakpoint_sals): Ditto.
3281 (watch_command_1): Ditto.
3282 (handle_gnu_4_16_catch_command): Ditto.
3283 (clear_command): Ditto.
3284 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3285 * infcmd.c (run_stack_dummy): Ditto.
3286 * infrun.c (process_event_stop_test): Ditto.
3287 (check_sigtramp2): Ditto.
3288 (step_over_function): Ditto.
3289 * linespec.c (decode_line_2): Ditto.
3290 (decode_line_1): Ditto.
3291 * source.c (line_info): Ditto.
3292 * symtab.c (find_pc_sect_line): Ditto.
3293
3294 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3295
3296 * dwarf2cfi.c (struct context)
3297 (struct context_reg): Moved to dwarf2cfi.h
3298 (context_alloc, frame_state_alloc, context_cpy):
3299 Made extern instead of static, removed prototypes.
3300 * dwarf2cfi.h (struct context)
3301 (struct context_reg): New, moved from dwarf2cfi.c
3302 (context_alloc, frame_state_alloc, context_cpy):
3303 New prototypes.
3304 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3305 Changed from static to extern.
3306 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3307 (LINUX_SIGCONTEXT_FP_OFFSET)
3308 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3309 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3310 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3311 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3312 set_gdbarch_*() calls now use x86-64 specific functions
3313 instead of DWARF2 CFI ones.
3314 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3315 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3316 (x86_64_init_extra_frame_info): New prototypes.
3317
3318 2002-10-23 David Carlton <carlton@math.stanford.edu>
3319
3320 * linespec.c: #include "parser-defs.h".
3321 Delete prototype for find_template_name_end.
3322 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3323
3324 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3325
3326 * NEWS: add recent mi fixes.
3327 * varobj.c (struct varobj): Add new "updated" flag.
3328 (new_variable): Default "updated" flag to 0.
3329 (varobj_set_value): Set "updated" flag to 1 if value
3330 changes.
3331 (varobj_update): Check varobj "updated" flag before
3332 comparing old and refreshed values. Fix for
3333 PR gdb/702.
3334
3335 2002-10-23 David Carlton <carlton@math.stanford.edu>
3336
3337 * parse.c (parse_exp_1): Use BLOCK_START.
3338 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3339 SYMBOL_BLOCK_VALUE.
3340 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3341
3342 2002-10-23 David Carlton <carlton@math.stanford.edu>
3343
3344 * symtab.c: Delete cplusplus_hint.
3345 Delete prototype for find_template_name_end.
3346
3347 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3348
3349 * symtab.h: Update comment.
3350
3351 2002-10-23 Michael Snyder <msnyder@redhat.com>
3352
3353 * printcmd.c (address_info): Restore quotes in output.
3354 * valops.c (value_of_local): Restore quotes in error message.
3355
3356 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3357
3358 * symtab.c (symbol_demangled_name): New function.
3359 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3360 turning most of it into a function.
3361 (symbol_demangled_name): Export.
3362
3363 2002-10-23 Michael Snyder <msnyder@redhat.com>
3364
3365 * valops.c (value_of_local): Restore quotes in error message.
3366
3367 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3368
3369 * symtab.c (symbol_init_language_specific): New function.
3370 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3371 turning most of it into a function.
3372 (symbol_init_language_specific): Export.
3373
3374 2002-10-23 David Carlton <carlton@math.stanford.edu>
3375
3376 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3377 (dwarf_attr_name): Ditto.
3378 (dwarf_type_encoding_name): Ditto.
3379 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3380 (process_die): Handle DW_TAG_namespace,
3381 DW_TAG_imported_declaration, DW_TAG_imported_module.
3382 (read_namespace): New function.
3383
3384 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3385
3386 * configure.in: Define NEW_PROC_API on Interix too.
3387 * configure: Regenerate.
3388
3389 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3390
3391 * configure: Regenerate using the proper version of autoconf.
3392
3393 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3394
3395 * findvar.c (read_var_value): Temporarily disable TLS code, until
3396 complete TLS support is added.
3397
3398 2002-10-21 Jim Blandy <jimb@redhat.com>
3399 Elena Zannoni <ezannoni@redhat.com>
3400
3401 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3402 for thread local storage locations.
3403 (struct symbol): Add objfile field.
3404 (SYMBOL_OBJFILE): Define.
3405 * dwarf2read.c (is_thread_local): New static variable.
3406 (new_symbol): If variable is in thread local fill in address class
3407 and objfile appropriately.
3408 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3409 stack operation.
3410 * printcmd.c (address_info): Print the information for thread
3411 local storage variable.
3412 * findvar.c (read_var_value): In case of thread local variable,
3413 defer to the target vector code to compute address.
3414
3415 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3416
3417 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3418 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3419
3420 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3421
3422 * symtab.h (address_class): Rename
3423 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3424 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3425 * printcmd.c (address_info): Ditto.
3426 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3427
3428 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3429
3430 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3431 DBREG_DRX macro to acces debug registers.
3432
3433 * Makefile.in (i386obsd-tdep.o): New target.
3434
3435 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3436 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3437
3438 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3439 * config/i386/obsd.mt: New file.
3440 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3441 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3442 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3443 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3444 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3445 * i386obsd-tdep.c: New file.
3446
3447 2002-10-19 Adam Fedor <fedor@gnu.org>
3448
3449 * objc-exp.y (name_not_typename): Fix invalid comment.
3450
3451 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3452
3453 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3454 to allocate partial syms and macro byte caches.
3455
3456 2002-10-18 David Carlton <carlton@math.stanford.edu>
3457
3458 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3459
3460 2002-10-18 Adam Fedor <fedor@gnu.org>
3461
3462 * stabsread.c (find_name_end): New function.
3463 (define_symbol): Use it.
3464
3465 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3466
3467 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3468 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3469 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3470 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3471
3472 2002-10-17 David Carlton <carlton@math.stanford.edu>
3473
3474 * symfile.h: Add opaque declaration for struct obstack.
3475 Declare obsavestring to take a const char *.
3476 * symfile.c (obsavestring): Make first argument a const char *.
3477
3478 2002-10-16 Adam Fedor <fedor@gnu.org>
3479
3480 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3481 names when matching breakpoints in current file.
3482
3483 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3484
3485 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3486 (read_tag_pointer_type): Add address class support.
3487 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3488 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3489 New methods.
3490 * gdbarch.h, gdbarch.c: Regenerate.
3491 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3492 (make_type_with_address_space, recursive_type_dump): Add address
3493 class support.
3494 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3495 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3496 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3497
3498 2002-10-16 Klee Dienes <kdienes@apple.com>
3499
3500 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3501 to get the last character of a char[] buffer, not
3502 name[sizeof(vptr_name)-1].
3503
3504 2002-10-14 Adam Fedor <fedor@gnu.org>
3505
3506 * symtab.h: New objc_specific struct.
3507 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3508 (SYMBOL_DEMANGLED_NAME): Likewise.
3509
3510 2002-10-14 Adam Fedor <fedor@gnu.org>
3511
3512 * symfile.c (init_filename_language_table): Add ObjC file extension.
3513
3514 2002-10-14 Adam Fedor <fedor@gnu.org>
3515
3516 * utils.c (puts_filtered_tabular): New function.
3517 (fprintf_symbol_filtered): Get ObjC demangled name.
3518 * defs.h (puts_filtered_tabular): Declared.
3519
3520 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3521
3522 * c-lang.h (c_type_print_varspec_prefix): Delete.
3523 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3524 ``need_post_space'' parameter. Adjust all callers.
3525
3526 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3527
3528 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3529 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3530 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3531 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3532
3533 2002-10-13 Adam Fedor <fedor@gnu.org>
3534
3535 * source.c (print_source_lines): Update comments.
3536
3537 2002-10-13 Adam Fedor <fedor@gnu.org>
3538
3539 * valops.c (value_of_local): New function.
3540 (value_of_this): Use it.
3541 * value.h (value_of_local): Declared.
3542
3543 2002-10-13 Adam Fedor <fedor@gnu.org>
3544
3545 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3546 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3547
3548 2002-10-12 Adam Fedor <fedor@gnu.org>
3549
3550 * language.c (binop_result_type): Add language_objc to case.
3551 (integral_type): Likewise.
3552 (character_type): Likewise.
3553 (string_type): Likewise.
3554 (boolean_type): Likewise.
3555 (structured_type): Likewise.
3556 (binop_type_check): Likewise.
3557
3558 2002-10-11 Adam Fedor <fedor@gnu.org>
3559
3560 * printcmd.c (address_info): Print 'self' for ObjC.
3561
3562 2002-10-11 Adam Fedor <fedor@gnu.org>
3563
3564 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3565 OP_SELF.
3566
3567 2002-10-11 Adam Fedor <fedor@gnu.org>
3568
3569 * language.h (CAST_IS_CONVERSION): Add language_objc.
3570
3571 2002-10-11 Adam Fedor <fedor@gnu.org>
3572
3573 * defs.h (enum language): Add language_objc.
3574
3575 2002-10-11 Klee Dienes <kdienes@apple.com>
3576
3577 * corefile.c (read_memory_typed_address): New function.
3578 * gdbcore.h (read_memory_typed_address): Add prototype.
3579 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3580 to read a value destined for a CORE_ADDR, not read_memory_integer.
3581 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3582 (f77_get_dynamic_lowerbound): Ditto.
3583
3584 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3585
3586 * utils.c (string_to_core_addr): After turning string into
3587 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3588 which will do necessary sign-extension, etc.
3589
3590 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3591
3592 * c-exp.y (THIS): Delete token and grammar rule.
3593 (yylex): Don't return THIS.
3594 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3595 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3596 * demangle.c (cplus_markers): Update comment. Put '$'
3597 first. Remove CPLUS_MARKER.
3598 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3599 * jv-exp.y (THIS): Delete token and grammar rule.
3600 (yylex): Don't return THIS.
3601 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3602 * objc-exp.y (THIS): Delete token and grammar rule.
3603 (yylex): Don't return THIS.
3604 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3605 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3606 (read_member_functions): Likewise for opname.
3607 (read_tilde_fields): Use is_cplus_marker.
3608
3609 * defs.h (CPLUS_MARKER): Don't define.
3610 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3611 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3612 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3613 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3614 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3615
3616 * config/i386/tm-i386v4.h: Delete file.
3617 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3618 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3619 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3620 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3621 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3622 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3623 * config/i386/i386v4.mt (TM_FILE): Likewise.
3624 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3625
3626 2002-10-10 Marko Mlinar <markom@opencores.org>
3627
3628 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3629 accidentially not commited 2002-10-09
3630 * gdbarch.h, gdbarch.c: Re-generate.
3631
3632 2002-10-09 Marko Mlinar <markom@opencores.org>
3633
3634 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3635 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3636 * gdbarch.h, gdbarch.c: Re-generate.
3637
3638 2002-10-08 Petr Sorfa <petrs@caldera.com>
3639
3640 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3641
3642 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3643 so we can work on more than one compilation unit at a time. This
3644 helps prepare GDB to handle inter-CU die references.
3645 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3646 the code to be defined before struct comp_unit_head.
3647 (comp_unit_head): Added new members - offset, cu_head,
3648 begin_die, next and dwarf2_abbrevs.
3649 (dwarf2_abbrevs): Removed single static var; now member of
3650 struct comp_unit_head.
3651 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3652 members.
3653 (psymtab_to_symtab_1): Changed to work with the new
3654 struct comp_unit_head.
3655 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3656 constructs the dwarf2_abbrevs[] inside the cu_header.
3657 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3658 dwarf2_abbrev table to clean up.
3659 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3660 handling of dwarf2_abbrevs inside the cu_header.
3661 (read_partial_die): Now supports the call to the new
3662 dwarf2_lookup_abbrev.
3663 (read_full_die): Now supports the call to the new
3664 dwarf2_lookup_abbrev.
3665
3666 2002-10-06 Christopher Faylor <cgf@redhat.com>
3667
3668 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3669 insure that shell variables, such as "transformed_name" are propagated
3670 to later shell statements in rule.
3671
3672 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3673
3674 * config/i386/nm-i386sco.h: Add protection against
3675 multiple-inclusion. Include "i386/nm-i386v.h".
3676 (REGISTER_U_ADDR): Remove define.
3677 (i386_register_u_addr): Remove prototype.
3678
3679 2002-10-04 Michael Snyder <msnyder@redhat.com>
3680
3681 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3682 before treating it as a single-step event.
3683
3684 2002-10-03 Adam Fedor <fedor@gnu.org>
3685
3686 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3687 (objc_demangle): Remove assignment in if statements, Replace
3688 free with xfree.
3689 (add_msglist): Likewise.
3690 (end_msglist): Likewise.
3691 (complare_selectors): Likewise.
3692 (selectors_info): Likewise.
3693 (compare_classes): Likewise.
3694 (classes_info): Likewise.
3695 (print_object_command): Likewise.
3696 (find_objc_msgcall_submethod): Replace PTR with void *.
3697 * objc-lang.h: Remove check for __STDC__.
3698
3699 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3700
3701 * ui-out.h (ui_out_field_fmt_int): New prototype.
3702 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3703 of field width and alignment.
3704 * stack.c (print_frame_info_base): When printing frame level, use
3705 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3706 PR gdb/192
3707
3708 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3709
3710 * MAINTAINERS: Add self to Write After Approval list.
3711
3712 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3713
3714 * infcmd.c (interrupt_target_command_wrapper): Delete.
3715 (interrupt_target_command): Make non static.
3716 (nofp_registers_info): Make static.
3717 * stack.c (return_command_wrapper): Delete.
3718 (return_command): Make non static.
3719
3720 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3721
3722 * event-top.c (gdb_setup_readline): New function. Code moved from
3723 _initialize_event_loop().
3724 (_initialize_event_loop): Call gdb_setup_readline().
3725
3726 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3727
3728 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3729 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3730 * gdbarch.h, gdbarch.c: Re-generate.
3731
3732 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3733
3734 Fix PR gdb/778
3735 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3736 before recursing.
3737 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3738 of fill_in_vptr_fieldno.
3739
3740 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3741
3742 * inferior.h (registers_info, stepi_command, nexti_command,
3743 continue_command, interrupt_target_command): Export from infcmd.c.
3744 * frame.h (args_info, selected_frame_level_changed_hook,
3745 return_command): Export from stack.c.
3746 * v850ice.c (stepi_command, nexti_command, continue_command): use
3747 prototypes from inferior.h.
3748 * tracepoint.c (registers_info, args_info, locals_info): Use
3749 prototypes from frame.h and inferior.h.
3750 * Makefile.in (mi-main.o): Add dependency on frame.h.
3751
3752 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3753
3754 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3755 value in register 3 adjusted by ppc_gp0_regnum.
3756
3757 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3758
3759 2002-10-02 Marko Mlinar <markom@opencores.org>
3760
3761 * MAINTAINERS: Add myself to the Write After Approval list.
3762
3763 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3764
3765 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3766 of the section for the N64 ABI, fixed.
3767
3768 * config/mips/tm-irix6.h: Include solib.h.
3769
3770 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3771
3772 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3773 GNU operators.
3774
3775 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3776
3777 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3778 and that "mi0" syntax has been removed.
3779
3780 2002-09-30 David Carlton <carlton@math.stanford.edu>
3781
3782 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3783 * ppc-sysv-tdep.c: #include "gdb_string.h".
3784 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3785 pacify GCC.
3786
3787 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3788
3789 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3790 "vrsave"'s register number.
3791
3792 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3793
3794 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3795 use frame_unwind_signed_register to obtain the PC.
3796 (mips_frame_chain): Handle a generic dummy frame.
3797 (mips_init_extra_frame_info): When a generic dummy frame, don't
3798 re-compute the frame base.
3799 (mips_pop_frame): Handle generic dummy frames.
3800 (mips_gdbarch_init): When generic dummy frames, set
3801 use_generic_dummy_frames, push_dummy_frame to
3802 generic_push_dummy_frame, pc_in_call_dummy to
3803 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3804 generic_save_dummy_frame_tos.
3805
3806 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3807
3808 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3809 against TOP when TOP was explictly set.
3810 (generic_push_dummy_frame): Set TOP to zero.
3811
3812 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * event-loop.c (start_event_loop): Rename variable 'result' to
3815 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3816
3817 2002-09-30 Keith Seitz <keiths@redhat.com>
3818
3819 * gdb-events.sh (selected_thread_changed): New event.
3820 * gdb-events.c: Regenerated.
3821 * gdb-events.h: Regenerated.
3822
3823 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3824
3825 * MAINTAINERS: Add self to Write After Approval list.
3826
3827 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3828
3829 * disasm.c: New file.
3830 * disasm.h: New file.
3831 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3832 (compare_lines): Ditto.
3833 (dump_insns): Ditto.
3834 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3835 argument.
3836 (do_assembly_only): Ditto.
3837 (do_disassembly): Renamed to gdb_disassembly and moved to
3838 disasm.c. Sdded uiout argument.
3839 * Makefile.in: Add new files. Reorder SFILES list. Update
3840 dependencies. Include libgdb.a later in the insight executable.
3841
3842 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3843
3844 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3845 bfd/elf64-alpha-fbsd.c.
3846
3847 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3848
3849 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3850 i386gnu-tdep.c.
3851
3852 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3853
3854 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3855 __FUNCTION__.
3856 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3857 function name.
3858 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3859 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3860 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3861 (S_msg_sig_post_reply): Ditto.
3862
3863 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3864
3865 * sh-tdep.c (sh_use_struct_convention): Use definition according
3866 to ABI.
3867 (sh_push_arguments): Store in register with correct endianess.
3868 (sh_default_store_return_value): Ditto.
3869 (sh_gdbarch_init): Set sizeof long double to 8.
3870
3871 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3872
3873 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3874 Fix some whitespace problems.
3875
3876 2002-09-27 David Carlton <carlton@math.stanford.edu>
3877
3878 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3879 (mcore-tdep.o): Ditto.
3880 (ns32k-tdep.o): Ditto.
3881 (ns32knbsd-tdep.o): Ditto.
3882 (sh3-rom.o): Ditto.
3883 (vax-tdep.o): Ditto.
3884 * cris-tdep.c: #include "gdb_string.h"
3885 * mcore-tdep.c: Ditto.
3886 * ns32k-tdep.c: Ditto.
3887 * ns32knbsd-tdep.c: Ditto.
3888 * sh3-rom.c: Ditto.
3889 * vax-tdep.c: Ditto.
3890
3891 2002-09-27 David Carlton <carlton@math.stanford.edu>
3892
3893 * config/djgpp/fnchange.lst: Add entries for
3894 gdb/testsuite/gdb.c++/m-static files.
3895
3896 2002-09-27 Jim Wilson <wilson@redhat.com>
3897
3898 * MAINTAINERS: Add myself to the Write After Approval list.
3899
3900 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3901
3902 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3903
3904
3905 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3906
3907 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3908 frame.
3909
3910 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3911
3912 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3913 (rs6000_struct_return_address): Delete variable.
3914 (rs6000_store_struct_return): Update.
3915 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3916 deprecated_extract_struct_value_address.
3917 (rs6000_frame_align): New function.
3918 (rs6000_gdbarch_init): Set frame_align.
3919
3920 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3921
3922 From Grace Sainsbury <graces@redhat.com>:
3923 * Makefile.in (gdbtk-main.o): New target.
3924 (gdb.o): New target.
3925 (main_h): Define.
3926 (main.o): Update dependencies.
3927 (gdb$(EXEEXT)): Add gdb.o.
3928 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3929 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3930 (SUBDIR_GDBTK_CLEAN): Set.
3931 (install-gdbtk): Install the insight binary.
3932 (uninstall-gdbtk): New target.
3933 (all-gdbtk, clean-gdbtk): New rule.
3934 * top.c (use_windows): Default to zero.
3935 * main.c: Include "main.h".
3936 (main): Delete.
3937 (struct captured_main_args): Delete.
3938 (gdb_main): New function.
3939 * main.h: New file.
3940 * gdb.c: New File.
3941
3942 2002-09-25 Andrew Cagney <cagney@redhat.com>
3943
3944 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3945 (frame_map_regnum_to_name): New function.
3946 (frame_map_name_to_regnum): New function.
3947 * frame.h (frame_map_name_to_regnum): Declare.
3948 (frame_map_regnum_to_name): Declare.
3949 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3950 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3951 * parse.c: Do not include "builtin-regs.h".
3952 (target_map_name_to_register): Delete function.
3953 (write_dollar_variable): Use frame_map_name_to_regnum.
3954 * parser-defs.h (target_map_name_to_register): Delete declaration.
3955 * expprint.c: Include "frame.h".
3956 (print_subexp): Use frame_map_regnum_to_name.
3957 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3958 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3959
3960 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3961
3962 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3963 wasn't saved, and the next innermost frame is a dummy, return the
3964 dummy frame's link register.
3965
3966 2002-09-24 Jim Blandy <jimb@redhat.com>
3967
3968 Fix from Paul Breed:
3969 * main.c (captured_main): Add a `break' after the case for 'b'.
3970
3971 2002-09-24 Keith Seitz <keiths@redhat.com>
3972
3973 * varobj.c (c_type_of_child): Use get_target_type instead
3974 of TYPE_TARGET_TYPE.
3975
3976 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3977
3978 * source.c (get_current_or_default_source_symtab_and_line): Remove
3979 function.
3980 (set_default_source_symtab_and_line): New function. Attempts to
3981 determine a source file to list lines from if one is not currently
3982 defined.
3983 (get_current_source_symtab_and_line): Initialize sal.pc and
3984 sal.end fields.
3985 (set_current_source_symtab_and_line): Mark argument as const.
3986 * source.h: Update declarations and comments.
3987 * linespec.c (decode_line_1): Replace call to removed routine above.
3988 * stack.c (print_frame_info_base): Ditto.
3989 * cli/cli-cmds.c (edit_command): Ditto.
3990 (list_command): Ditto.
3991
3992 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3993
3994 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3995 sal.pc and sal.end fields.
3996 (get_current_or_default_source_symtab_and_line): Ditto.
3997 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3998 so we do not cause a new source symtab to be searched for (reverting an
3999 unintentional change from the 2002-09-20 patch).
4000 * scm-lang.c (scm_unpac): Ditto.
4001
4002 2002-09-21 Andrew Cagney <cagney@redhat.com>
4003
4004 * complaints.c (symfile_explanations): Remove new-line from
4005 ``isolated_message''.
4006 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4007 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4008
4009 2002-09-20 Nick Clifton <nickc@redhat.com>
4010
4011 * NEWS: Announce that V850EA ISA is no longer supported.
4012 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4013
4014 2002-09-20 David Carlton <carlton@math.stanford.edu>
4015
4016 * Makefile.in (c-lang.o): Correct dependencies.
4017 (utils.o): Gather dependencies.
4018 (charset.o): Move.
4019 * c-lang.c: #include "gdb_string.h"
4020
4021 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4022
4023 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4024 * cli/cli-cmds.c (list_command): New function. Implements the new
4025 cli edit command.
4026 (_init_cli_cmds): Add new command definition.
4027 * gdb.1: Document edit command.
4028 * doc/gdb.texinfo: Document edit command.
4029
4030 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4031
4032 * source.c: Make global variables current_source_symtab and
4033 current_source_line static.
4034 (list_command): Moved to cli/cli-cmds.c.
4035 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4036 (get_first_line_listed): New accessor function.
4037 (get_lines_to_list): New accessor function.
4038 (get_current_source_symtab_and_line): New function. Retrieves the
4039 position in the source code that we consider current.
4040 (get_current_or_default_source_symtab_and_line): New function.
4041 Like the above but attempts to determine a default position if one
4042 is not currently defined.
4043 (set_current_source_symtab_and_line): New function. Sets the source
4044 code position considered current and returns the previously set one.
4045 (clear_current_source_symtab_and_line): Reset stored information about
4046 a current source line.
4047 (_initialize_source): Remove registration for the "list" command and
4048 its alias.
4049 * source.h: Add declarations for the new functions above.
4050 * symtab.h: Remove declarations for the global variables mentioned
4051 above.
4052 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4053 obtain current source line.
4054 * linespec.c (decode_line_1): Ditto.
4055 * macroscope.c (default_macro_scope): Ditto.
4056 * scm-lang.c (scm_unpac): Ditto.
4057 * stack.c (print_frame_info_base): Ditto.
4058 * symfile.c (clear_symtab_users): Ditto.
4059 * symtab.c (decode_line_spec): Ditto.
4060 * cli/cli-cmds.c (list_command): Moved here from source.c.
4061 (ambiguous_line_spec): Moved here from source.c.
4062 (_init_cli_cmds): Add definition for "list" and its alias.
4063 * Makefile.in: Update dependencies.
4064
4065 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4066
4067 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4068 with what gcc thinks is correct.
4069
4070 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4071
4072 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4073 multiple register push instruction.
4074
4075 2002-09-19 Jim Blandy <jimb@redhat.com>
4076
4077 Add support for distinct host and target character sets.
4078 * charset.c, charset.h: New files.
4079 * c-exp.y: #include "charset.h".
4080 (yylex): Convert character and string literals to the target
4081 character set, before returning them as the semantic value of the
4082 token.
4083 * c-lang.c: #include "charset.h".
4084 (c_emit_char): Use charset-specific methods to recognize
4085 characters with backslash escape forms, to decide which characters
4086 to print literally and which to print using numeric escape
4087 sequences, and to convert target characters to host characters
4088 before printing.
4089 * utils.c: #include "charset.h".
4090 (no_control_char_error): New function.
4091 (parse_escape): Use charset-specific methods to recognize
4092 backslash escapes, parse `control character' notation, and convert
4093 characters from the host character set to the target character set.
4094 * configure.in: Set the default host character set.
4095 Check where to find iconv, and what its argument types might be.
4096 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4097 * Makefile.in (SFILES): List charset.c.
4098 (COMMON_OBS): List charset.o.
4099 (charset.o): New rule.
4100 (charset_h): New header dependency variable.
4101 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4102 (LIBICONV): New variable, set by configure.
4103 (CLIBS): Include $(LIBICONV) here.
4104 * aclocal.m4, config.in, configure: Regenerated.
4105
4106 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4107
4108 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4109 bison 1.35 warning.
4110
4111 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4112
4113 * gdb_mbuild.sh: New file.
4114
4115 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4116
4117 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4118
4119 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4120
4121 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4122 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4123 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4124 valops.c, value.h: Revert previous change.
4125
4126 2002-09-18 Michael Snyder <msnyder@redhat.com>
4127
4128 Preliminary support for Objective-C:
4129 * defs.h (language_objc): New enum value.
4130 (puts_filtered_tabular): Declaration only, exported from utils.c.
4131 (skip_quoted): Delete, declared in completer.h.
4132 * c-exp.y: Include completer.h.
4133 * p-exp.y: Ditto.
4134 * jv-exp.y: Ditto.
4135 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4136 New operator enum values.
4137 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4138 * language.c (binop_result_type): Handle language_objc case.
4139 (integral_type, character_type, string_type, boolean_type,
4140 structured_type, binop_type_check): Ditto.
4141 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4142 (struct objc_specific): Add to general_symbol_info.
4143 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4144 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4145 * parser-defs.h (struct objc_class_str): New struct type.
4146 (start_msglist, end_msglist, add_msglist): Declaration only,
4147 exported from objc-lang.c.
4148 * value.h (value_of_local, value_nsstring,
4149 call_function_by_hand_expecting_type): Exported from valops.c.
4150 * valops.c (find_function_addr): Export.
4151 (call_function_by_hand_expecting_type): New function.
4152 (value_of_local): New function.
4153 * symfile.c (init_filename_language_table): Add ".m" extension
4154 for Objective-C.
4155 * utils.c (puts_filtered_tabular): New function.
4156 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4157 (set/show demangle): Extend help-string to refer to ObjC.
4158 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4159 * stabsread.c (symbol_reference_defined): Objective-C symbols
4160 may contain colons: make allowances when scanning stabs strings
4161 for colons.
4162 (objc_find_colon): New function.
4163 * printcmd.c (address_info): If language == objc then print
4164 "self" instead of "this".
4165 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4166 OP_NSSTRING, and OP_SELF.
4167 (prefixify_subexp): Ditto.
4168 * source.c (print_source_lines): Mention objc in comment.
4169 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4170 method names.
4171
4172 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4173
4174 * complaints.h: Update copyright.
4175 (struct complaints): Declare.
4176 (struct complaint): Make `message' constant.
4177 (internal_complaint): Declare.
4178 (complaint): Declare.
4179 (complaint_root): Delete declaration.
4180 (symfile_complaints): Delete declaration.
4181 (struct complaints): Add opaque declaration.
4182 (clear_complaints): Add a complaints parameter.
4183 * complaints.c: Update copyright.
4184 (enum complaint_series): Define.
4185 (complaint_root): Delete.
4186 (struct complaints): Define.
4187 (complaint_sentinel, symfile_complaint_book): New variables.
4188 (symfile_explanations, symfile_complaints): New variables.
4189 New variables.
4190 (get_complaints): New function.
4191 (vcomplaint): New function.
4192 (complaint): New function.
4193 (internal_complaint): New function.
4194 (complain): Call vcomplain with symfile_complaint.
4195 (clear_complaints): Rewrite.
4196 (_initialize_complaints): Use add_setshow_command.
4197 * Makefile.in (complaints.o): Update dependencies.
4198 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4199 to call to clear_complaints.
4200 (new_symfile_objfile, reread_symbols): Ditto.
4201 (oldsyms_complaint): Delete.
4202 (empty_symtab_complaint, unknown_option_complaint): Delete.
4203 (free_named_symtabs): Use complaint instead of complain.
4204
4205 2002-09-18 Michael Snyder <msnyder@redhat.com>
4206
4207 Contributed by Apple Computer, Inc. Merged with current sources
4208 by Adam Fedor <fedor@doc.com> [cagney].
4209
4210 * objc-lang.c: First clean-up round: comments, indentation.
4211 * objc-lang.h: Ditto.
4212 * objc-lang.y: Ditto.
4213
4214 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4215
4216 * maint.c (maintenance_internal_error): Print the parameter as the
4217 error message.
4218 (maintenance_internal_warning): New function.
4219 (_initialize_maint_cmds): Add command `maint internal-warning'.
4220
4221 * defs.h (internal_warning, internal_vwarning): Declare.
4222 * utils.c (struct internal_problem): Define.
4223 (internal_vproblem): New function.
4224 (internal_warning): New function.
4225 (internal_vwarning): New function.
4226 (internal_warning_problem, internal_error_problem): New variables.
4227 (internal_verror): Just call internal_vproblem.
4228
4229 2002-09-18 Michael Snyder <msnyder@redhat.com>
4230
4231 * objc-lang.c: New file, support for Objective-C.
4232 Preliminary check-in, not yet integrated into gdb.
4233 * objc-lang.h: New file.
4234 * objc-exp.y: New file.
4235
4236 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4237
4238 * infrun.c (signal_stop_update): Convert definition to ISO C.
4239 (signal_print_update): Ditto.
4240 (signal_pass_update): Ditto.
4241 * inflow.c (terminal_save_ours): Ditto.
4242
4243 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4244 comments.
4245
4246 * config/djgpp/fnchange.lst: Handle name clashes between
4247 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4248 bfd/coff-tic80.c.
4249
4250 * i386-linux-tdep.h: Fix tipo.
4251
4252 2002-09-18 Adam Fedor <fedor@gnu.org>
4253
4254 * MAINTAINERS: Add myself to the Write After Approval list.
4255
4256 2002-09-18 Jim Blandy <jimb@redhat.com>
4257
4258 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4259 texthigh and textlow to reader-specific structs caused
4260 objfile_relocate to miss them. This is fixable, but the work that
4261 the change was supposed to prepare GDB for never got done anyway.
4262
4263 2002-09-18 David Carlton <carlton@math.stanford.edu>
4264
4265 * MAINTAINERS: Alphabetize Write After Approval list.
4266
4267 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4268
4269 Fix PR gdb/709
4270 * values.c (value_static_field): Call read_var_value.
4271
4272 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4273
4274 * valops.c (hand_function_call): Align the initial stack pointer
4275 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4276 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4277 return value.
4278 * mips-tdep.c (mips_frame_align): New function.
4279 (mips_gdbarch_init): Set frame_align.
4280 * gdbarch.sh (FRAME_ALIGN): New method.
4281 * gdbarch.h, gdbarch.c: Re-generate.
4282
4283 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4284
4285 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4286 registers.
4287
4288 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4289
4290 * NEWS: Mention that MIPS $fp behavior changed.
4291 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4292 reference to FP_REGNUM.
4293 (mipsnbsd_cannot_store_register): Ditto.
4294 * mips-linux-nat.c: Update copyright.
4295 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4296 (mips_linux_cannot_store_register): Ditto.
4297 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4298 * config/mips/tm-mips.h: Update copyright.
4299 (FP_REGNUM): Delete macro.
4300 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4301 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4302 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4303 (mips_r3041_reg_names, mips_r3051_reg_names)
4304 (mips_r3081_reg_names): Replace "fp" with "".
4305 Fix PR gdb/480.
4306
4307 2002-09-17 Theodore A. Roth <troth@verinet.com>
4308
4309 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4310 generic_read_register_dummy() (PR gdb/703).
4311 (avr_push_return_address): #if 0 out unused vars.
4312 (avr_gdbarch_init): Enable use of avr_push_return_address().
4313
4314 2002-09-17 Michael Snyder <msnyder@redhat.com>
4315
4316 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4317 RTE will take care of it.
4318
4319 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4320
4321 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4322 invalid, return SP_REGNUM.
4323
4324 2002-09-17 Michael Snyder <msnyder@redhat.com>
4325
4326 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4327 point registers without sign extension.
4328
4329 2002-09-17 Andrew Cagney <cagney@redhat.com>
4330
4331 * blockframe.c (deprecated_read_register_dummy): Rename
4332 generic_read_register_dummy.
4333 * frame.c (frame_unwind_signed_register): New function.
4334 (frame_unwind_unsigned_register): New function.
4335 * frame.h (frame_unwind_signed_register): Declare.
4336 (frame_unwind_unsigned_register): Declare.
4337 (deprecated_read_register_dummy): Rename
4338 generic_read_register_dummy.
4339
4340 * h8300-tdep.c (h8300_frame_chain): Update.
4341 (h8300_frame_saved_pc): Update.
4342 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4343 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4344 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4345 (s390_frame_chain): Update.
4346 * v850-tdep.c (v850_find_callers_reg): Update.
4347 (v850_frame_saved_pc): Update.
4348 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4349 (m32r_find_callers_reg): Update.
4350 (m32r_frame_saved_pc): Update.
4351 * sh-tdep.c (sh_find_callers_reg): Update.
4352 (sh64_get_saved_pr): Update.
4353 (sh_init_extra_frame_info): Update.
4354 (sh_init_extra_frame_info): Update.
4355 (sh64_init_extra_frame_info): Update.
4356 (sh64_init_extra_frame_info): Update.
4357 * mcore-tdep.c (mcore_find_callers_reg): Update.
4358 (mcore_frame_saved_pc): Update.
4359 (mcore_init_extra_frame_info): Update.
4360 * i386-tdep.c (i386_frame_saved_pc): Update.
4361 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4362 (ia64_init_extra_frame_info): Update.
4363 (ia64_init_extra_frame_info): Update.
4364 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4365 * cris-tdep.c (cris_init_extra_frame_info): Update.
4366 * avr-tdep.c (avr_frame_chain): Update.
4367 (avr_init_extra_frame_info): Update.
4368 (avr_frame_saved_pc): Update.
4369 * arm-tdep.c (arm_find_callers_reg): Update.
4370 (arm_init_extra_frame_info): Update.
4371 (arm_frame_saved_pc): Update.
4372
4373 2002-09-17 Tom Tromey <tromey@redhat.com>
4374
4375 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4376 is "'".
4377
4378 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4379
4380 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4381 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4382 NEXT_PROLOGUE_INSN.
4383 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4384 NEXT_PROLOGUE_INSN.
4385
4386 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4387
4388 * osfsolib.c: Remove file, replaced by solib-osf.c.
4389 * Makefile.in: Remove compilation rules for osfsolib.c.
4390
4391 2002-09-16 David Carlton <carlton@math.stanford.edu>
4392
4393 * cp-valprint.c (cp_print_class_method): Correct args to
4394 check_stub_method_group.
4395
4396 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4397
4398 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4399 `set architecture'. Unify naming convention of functions.
4400 (h8300_skip_prologue): Improve prologue analysis.
4401 (h8300_push_arguments): Rewritten to more closely match GCC's
4402 bizarre argument-passing behavior, along with the comment describing
4403 said behavior.
4404 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4405 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4406 sim, remote-e7000.c, remote-hms.c and remote.c
4407
4408 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4409
4410 * i386-tdep.c (gdb_print_insn_i386): Removed.
4411 (i386_print_insn): New function.
4412 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4413 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4414 tm_print_insn_info.
4415
4416 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4417
4418 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4419 zero.
4420
4421 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4422
4423 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4424 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4425 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4426
4427 2002-09-13 Christopher Faylor <cgf@redhat.com>
4428
4429 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4430
4431 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4432
4433 * gdbtypes.c (check_stub_method): Make static.
4434 (check_stub_method_group): New function.
4435 * gdbtypes.h: Update prototypes.
4436 * cp-support.c: New file.
4437 * cp-support.h: New file.
4438
4439 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4440 (update_method_name_from_physname): New function.
4441 (read_member_functions): Correct method names for operators
4442 and v3 constructors/destructors. Separate v2 constructors and
4443 destructors.
4444 * Makefile.in (stabsread.o): Update dependencies.
4445 (SFILES): Add cp-support.c.
4446 (COMMON_OBS): Add cp-support.o.
4447 (cp_support_h, cp-support.o): Add.
4448
4449 * cp-valprint.c (cp_print_class_method): Call
4450 check_stub_method_group instead of check_stub_method. Remove
4451 extraneous QUITs.
4452 * p-valprint.c (pascal_object_print_class_method): Likewise.
4453 * valops.c (search_struct_method): Likewise.
4454 (find_method_list, value_struct_elt_for_reference): Likewise.
4455
4456 2002-09-13 Andrew Cagney <cagney@redhat.com>
4457
4458 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4459 * gdbarch.h, gdbarch.c: Regenerate.
4460
4461 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4462
4463 * frame.c (find_saved_register): Delete function.
4464 * frame.h (find_saved_register): Delete declaration.
4465 Fix PR gdb/631.
4466
4467 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4468
4469 * mips-tdep.c (read_next_frame_reg): Re-hack using
4470 frame_register_unwind.
4471
4472 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4473
4474 * mips-tdep.c (mips_get_saved_register): Re-hack using
4475 frame_register_unwind.
4476
4477 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4478
4479 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4480 vector. Will be useful for Interix.
4481 * gdbarch.h, gdbarch.c: Regenerate.
4482
4483 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4484 name of the malloc function by NAME_OF_MALLOC.
4485
4486 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4487
4488 * value.h (find_function_in_inferior): Add const keyword to
4489 one of the parameters. Allows us to invoke this function with
4490 a const char *.
4491 * valops.c (find_function_in_inferior): Likewise.
4492
4493 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4494
4495 * exec.c (xfer_memory): Fix compilation warning with old versions
4496 of GCC.
4497 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4498
4499 2002-09-12 David Carlton <carlton@math.stanford.edu>
4500
4501 * symtab.h: Run through gdb_indent.h.
4502 Add 2002 to Copyright year list.
4503
4504 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4505
4506 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4507 mach constants.
4508 * MAINTAINERS: Add myself to write after approval list.
4509
4510 2002-09-11 J. Brobecker <brobecker@gnat.com>
4511
4512 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4513
4514 2002-09-11 J. Brobecker <brobecker@gnat.com>
4515
4516 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4517 Interix.
4518
4519 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4520
4521 * procfs.c (do_detach): Clear current signal, not just fault.
4522 Corrects problem with breakpoint trap signal leaking to detached
4523 process on Tru64.
4524
4525 2002-09-10 Michael Snyder <msnyder@redhat.com>
4526
4527 * buildsym.c (finish_block): Protect against null pointer.
4528
4529 2002-09-10 Andrew Cagney <cagney@redhat.com>
4530
4531 * infcmd.c (default_print_registers_info): Send all output to
4532 ``file'' instead of ``gdb_stdout''.
4533
4534 2002-09-10 Michael Snyder <msnyder@redhat.com>
4535
4536 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4537 LONGEST, and use signed register read (addresses are sign-
4538 extended for mips).
4539
4540 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4541
4542 * event-loop.c (gdb_do_one_event): Make public.
4543 * event-loop.h (gdb_do_one_event): Declare.
4544
4545 2002-09-10 Jeff Law <law@redhat.com>
4546
4547 * infttrace.c (child_resume): Simplify and rework to avoid
4548 TT_PROC_CONTINUE.
4549
4550 2002-09-09 Fred Fish <fnf@intrinsity.com>
4551
4552 * printcmd.c (print_scalar_formatted): "len" is the number of
4553 target bytes, NOT the number of target bits.
4554
4555 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4556
4557 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4558 * top.c (init_main): Set rl_terminal_name.
4559
4560 2002-09-08 Aidan Skinner <aidan@velvet.net>
4561
4562 * ada-lang.c (ada_array_bound, ada_type_match,
4563 _initialize_ada_language): Fix K&R definitions.
4564 * ada-tasks.c (get_current_task): Fix K&R definitions.
4565 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4566
4567 2002-09-07 Christopher Faylor <cgf@redhat.com>
4568
4569 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4570 Add XP.
4571
4572 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4573
4574 * i386-tdep.c (i386_register_virtual_type,
4575 i386_register_convertible, i386_register_convert_to_virtual,
4576 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4577 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4578 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4579 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4580 Don't set push_arguments twice.
4581
4582 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4583 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4584 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4585 sigtramp_end to NULL.
4586 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4587 defines.
4588 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4589
4590 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4591 whitespace.
4592
4593 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4594 * gdbarch.h, gdbarch.c: Re-generate.
4595 * blockframe.c (find_pc_sect_partial_function): Convert to use
4596 SIGTRAMP_START_P predicate.
4597
4598 2002-09-05 Michael Snyder <msnyder@redhat.com>
4599
4600 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4601 generic_dummy_frame method and old method. Also distinguish
4602 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4603 (arm_extract_return_value): Use new regcache method.
4604
4605 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4606 adjustment that doesn't conform to the ABI.
4607 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4608 saved regcache, not from current regcache.
4609
4610 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4611
4612 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4613 * README: Update.
4614
4615 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4616
4617 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4618 if arm_apcs_32 is false.
4619
4620 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4621
4622 GDB 5.3 branch created.
4623
4624 2002-09-03 Theodore A. Roth <troth@verinet.com>
4625
4626 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4627 generic_unwind_get_saved_register.
4628
4629 2002-09-03 David Carlton <carlton@math.stanford.edu>
4630
4631 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4632 argument (PR gdb/653). Update call to smash_to_method_type.
4633 (read_structure_scope): Update call to dwarf2_add_member_fn.
4634
4635 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4636
4637 * x86-64-linux-tdep.c: Include gdb_string.h
4638 * x86-64-linux-nat.c: Ditto.
4639
4640 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4641
4642 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4643 when YYDEBUG is set to 1.
4644 * c-exp.y: Likewise.
4645 * f-exp.y: Likewise.
4646 * jv-exp.y: Likewise.
4647 * m2-exp.y: Likewise.
4648 * p-exp.y: Likewise.
4649
4650 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4651
4652 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4653 dependency list.
4654 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4655 solib_svr4_fetch_link_map_offsets to
4656 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4657 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4658 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4659 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4660 solib-svr4.o, and solib-legacy.o.
4661 * config/i386/tm-nbsd.h: Include solib.h.
4662
4663 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4664
4665 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4666 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4667 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4668 comment noting that this needs its own target configuration.
4669 * config/i386/nbsd.mt: New file.
4670 * config/i386/nbsdaout.mt: Remove.
4671 * config/i386/nbsdelf.mt: Ditto.
4672 * config/i386/tm-nbsdaout.h: Ditto.
4673
4674 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4675
4676 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4677 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4678 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4679 tdep->sigtramp_end.
4680 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4681 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4682 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4683
4684 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4685
4686 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4687 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4688 * i386-tdep.h (i386bsd_init_abi): New prototype.
4689 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4690 function declaration.
4691 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4692 for NetBSD-a.out or NetBSD-ELF.
4693 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4694 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4695 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4696 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4697 and nbsd-tdep.h.
4698 (i386nbsd_pc_in_sigtramp): New function.
4699 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4700 i386nbsd_pc_in_sigtramp.
4701 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4702 and i386nbsdelf_init_abi OS ABI handlers.
4703 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4704 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4705
4706 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4707
4708 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4709 registers if the target really has them.
4710
4711 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4712
4713 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4714 than nbsd-tdep.h.
4715
4716 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4717
4718 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4719 list.
4720 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4721 (alphanbsd_skip_sigtramp_frame): New functions.
4722 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4723 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4724 to alphanbsd_sigcontext_addr.
4725
4726 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4727
4728 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4729 list.
4730 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4731 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4732 nbsd_pc_in_sigtramp.
4733 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4734 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4735 * nbsd-tdep.c: Include gdb_string.h.
4736 (nbsd_pc_in_sigtramp): New function.
4737 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4738 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4739 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4740 ppcnbsd_pc_in_sigtramp.
4741 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4742 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4743 shnbsd_pc_in_sigtramp.
4744 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4745 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4746 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4747
4748 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4749
4750 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4751 watchpoints to NULL.
4752 (insert_breakpoints): set val field of watchpoints if NULL.
4753
4754
4755 2002-08-29 Jim Blandy <jimb@redhat.com>
4756
4757 * symtab.c (lookup_symbol_aux): In the cases where we find a
4758 minimal symbol of an appropriate name and use its address to
4759 select a symtab to read and search, use `name' (as passed to us)
4760 as the demangled name when searching the symtab's global and
4761 static blocks, not the minsym's name.
4762
4763 2002-08-29 Keith Seitz <keiths@redhat.com>
4764
4765 * stack.c (print_frame_info_base): Always set current_source_symtab
4766 and current_source_line.
4767
4768 2002-08-29 Donn Terry <donnte@microsoft.com>
4769
4770 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4771
4772 2002-08-28 Keith Seitz <keiths@redhat.com>
4773
4774 * stack.c (select_frame): Add FIXME concerning selected-frame
4775 events.
4776 (select_frame_command): Send selected-frame-level-changed
4777 event notification, but only if the level actually changed.
4778 (up_silently_base): Add selected-frame-level-changed event
4779 notification.
4780 (down_silently_base): Likewise.
4781
4782 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4783
4784 * Makefile.in: Update dependencies for all gdb/*.c files.
4785
4786 2002-08-27 Tom Tromey <tromey@redhat.com>
4787
4788 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4789 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4790 Update dependencies.
4791 * i387-tdep.c: Include gdb_string.h.
4792 * osabi.c: Likewise.
4793 * i386-linux-nat.c: Likewise.
4794 * lin-lwp.c: Likewise.
4795 * ax-gdb.c: Likewise.
4796 * signals/signals.c: Likewise.
4797 * jv-valprint.c: Likewise.
4798 * p-lang.c: Likewise.
4799 * c-valprint.c: Likewise.
4800 * cp-abi.c: Likewise.
4801
4802 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4803
4804 * cli/cli-script.h (copy_command_lines): Export.
4805 * breakpoint.c: Include cli/cli-script.h.
4806 * Makefile.in (breakpoint.o): Update dependencies.
4807
4808 2002-08-26 Michael Snyder <msnyder@redhat.com>
4809
4810 * breakpoint.c (insert_breakpoints): Protect all references
4811 to 'process_warning'. Shorten long lines.
4812
4813 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4814
4815 * cli/cli-script.c (copy_command_lines): New function.
4816 * defs.h (copy_command_lines): Export.
4817 * testsuite/gdb.base/commands.exp: New tests for commands
4818 attached to a temporary breakpoint, and for commands that
4819 delete the breakpoint they are attached to.
4820
4821 2002-08-26 Michael Snyder <msnyder@redhat.com>
4822
4823 * breakpoint.c (bpstat_stop_status): Instead of copying the
4824 pointer to the breakpoint commands struct, make a new copy
4825 of the struct and point to that.
4826 (bpstat_clear): Free the commands struct.
4827 (bpstat_clear_actions): Free the commands struct.
4828 (bpstat_do_actions): Free the command actions. Also execute
4829 the local cleanups, instead of deleting them.
4830 (delete_breakpoint): Leave the commands field of the bpstat
4831 chain alone -- it will be freed later.
4832
4833 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4834
4835 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4836 deleted in 2002-08-20 commit. This function is still used by
4837 ppc-linux-nat.c.
4838
4839 2002-08-26 Keith Seitz <keiths@redhat.com>
4840
4841 * gdb-events.sh: Add selected-frame-level-changed event.
4842 * gdb-events.c: Regenerated.
4843 * gdb-events.h: Regenerated.
4844
4845 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4846
4847 Fix PR gdb/393:
4848 * inflow.c (terminal_save_ours): New function to save terminal
4849 settings.
4850 * inferior.h (terminal_save_ours): Declare.
4851 * target.c (debug_to_terminal_save_ours): New function.
4852 (cleanup_target): Defaults to_terminal_save_ours.
4853 (update_current_target): Inherit to_terminal_save_ours.
4854 (setup_target_debug): Set to_terminal_save_ours.
4855 * target.h (target_terminal_save_ours): New to save terminal settings.
4856 (target_ops): New member to_terminal_save_ours.
4857 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4858 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4859 * inftarg.c (init_child_ops): Likewise.
4860 * m3-nat.c (init_m3_ops): Likewise.
4861 * procfs.c (init_procfs_ops): Likewise.
4862 * wince.c (init_child_ops): Likewise.
4863 * win32-nat.c (init_child_ops): Likewise.
4864 * sol-thread.c (init_sol_thread_ops): Likewise.
4865
4866 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4867
4868 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4869 use regcache_* functions.
4870 (i386_gdbarch_init): Set store_return_value instead of
4871 deprecated_store_return_value.
4872
4873 * regcache.c (regcache_raw_write_signed,
4874 regcache_raw_write_unsigned): New functions.
4875 * regcache.h (regcache_raw_write_signed,
4876 regcache_raw_write_unsigned): New prototypes.
4877
4878 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4879
4880 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4881 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4882 source file dependencies. Cleanup corresponding generator rules.
4883
4884 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4885
4886 * regcache.h (register_offset_hack): Declare.
4887 (regcache_cooked_read_using_offset_hack): Declare.
4888 (regcache_cooked_write_using_offset_hack): Declare.
4889
4890 * regcache.c (register_offset_hack): New function.
4891 (regcache_cooked_read_using_offset_hack): New function.
4892 (regcache_cooked_write_using_offset_hack): New function.
4893 (regcache_dump): Check that the registers, according to their
4894 offset, are packed hard against each other.
4895 (cooked_xfer_using_offset_hack): New function.
4896
4897 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4898
4899 * regcache.c (struct regcache_descr): Add field register_type.
4900 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4901 in as a parameter
4902 (init_regcache_descr): Initialize register_type. Pass the descr
4903 to init_legacy_regcache_descr. Use register_type instead of
4904 REGISTER_VIRTUAL_TYPE.
4905 (register_type): New function.
4906 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4907 * regcache.h (register_type): Declare.
4908
4909 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4910
4911 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4912 instead of deprecated_store_return_value. Fix fallout from
4913 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4914
4915 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4916
4917 * regcache.c (max_register_size): New function.
4918 (init_legacy_regcache_descr): Ensure that max_register_size is
4919 large enough for REGISTER_VIRTUAL_SIZE.
4920 * regcache.h (max_register_size): Declare.
4921
4922 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4923
4924 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4925 store_return_value.
4926 (e500_extract_return_value): Change type of valbuf pointer to
4927 void.
4928
4929 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4930
4931 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4932 workaround.
4933
4934 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4935 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4936 long long) to prevent compiler warning on 64-bit systems.
4937
4938 2002-08-23 Andrew Cagney <cagney@redhat.com>
4939
4940 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4941 (DEPRECATED_STORE_RETURN_VALUE): New method.
4942 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4943 * gdbarch.h, gdbarch.c: Re-generate.
4944
4945 * values.c (set_return_value): Pass current_regcache to
4946 STORE_RETURN_VALUE.
4947 * arch-utils.h (legacy_store_return_value): Declare.
4948 * arch-utils.c (legacy_store_return_value): New function.
4949 (legacy_extract_return_value): Update parameters.
4950
4951 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4952 STORE_RETURN_VALUE.
4953 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4954 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4955 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4956 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4957 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4958 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4959 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4960 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4961 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4962 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4963
4964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4965 * i386-tdep.c (i386_extract_return_value): Update.
4966 * arch-utils.c (legacy_extract_return_value): Update.
4967 * frv-tdep.c (frv_gdbarch_init): Update.
4968 * cris-tdep.c (cris_gdbarch_init): Update.
4969 * d10v-tdep.c (d10v_gdbarch_init): Update.
4970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4971 * m68k-tdep.c (m68k_gdbarch_init): Update.
4972 * mcore-tdep.c (mcore_gdbarch_init): Update.
4973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4974 * s390-tdep.c (s390_gdbarch_init): Update.
4975 * sparc-tdep.c (sparc_gdbarch_init): Update.
4976 * sh-tdep.c (sh_gdbarch_init): Update.
4977 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4978 * v850-tdep.c (v850_gdbarch_init): Update.
4979 * avr-tdep.c (avr_gdbarch_init): Update.
4980 * ia64-tdep.c (ia64_gdbarch_init): Update.
4981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4982 * vax-tdep.c (vax_gdbarch_init): Update.
4983 * alpha-tdep.c (alpha_gdbarch_init): Update.
4984 * arm-tdep.c (arm_gdbarch_init): Update.
4985 * mips-tdep.c (mips_gdbarch_init): Update.
4986 * i386-tdep.c (i386_gdbarch_init): Update.
4987
4988 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4989
4990 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4991 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4992
4993 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4994
4995 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4996 problems.
4997
4998 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4999
5000 * infrun.c (handle_inferior_event): Move a comment outside of a
5001 function call, in order to avoid indent reformatting this part
5002 of the code in an unreadable way.
5003
5004 2002-08-23 Grace Sainsbury <graces@redhat.com>
5005
5006 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5007 when breakpoints fail. Move general breakpoint error messages to
5008 insert_breakpoints.
5009 * breakpoint.c (insert_breakpoints): Change warnings when
5010 breakpoints are nto inserted to specify the type. Remove call to
5011 memory_error when hardware breakpoints can't be inserted. Remove
5012 multiple calls to warning so all messages are sent to the user at
5013 once.
5014 (delete_breakpoints): Make insert error messsages more explicit.
5015
5016 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5017
5018 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5019 gdbserver/ChangeLog.
5020
5021 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5022
5023 * i386-tdep.c: Include "objfiles.h".
5024 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5025 skip_trampoline_code.
5026 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5027 (CPLUS_MARKER): Define to '.'.
5028
5029 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5030 member.
5031 (linux_corefile_thread_callback): Increase args->num_notes.
5032 (linux_make_note_section): Initialize thread_args.num_notes, and
5033 use it to determine whether notes for any threads were created.
5034
5035 2002-08-23 Donn Terry <donnte@microsoft.com>
5036
5037 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5038 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5039 and PCUNKILL.
5040 (write_with_trace): Conditionalize out the switch branch handling
5041 PCSHOLD if the corresponding macro is not defined. Likewise for
5042 PRSABORT and PRSTOP.
5043 This change will be needed by the Interix port.
5044
5045 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5046
5047 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5048 write_register wherever possible instead of manipulating the
5049 register bytes directly.
5050 Assign VALUE_CONTENTS to a variable and use that.
5051 The GPR numbers are now dependent on the architecture.
5052
5053 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5054
5055 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5056 ev_offset fields.
5057 (skip_prologue): Add support for BookE/e500 instructions.
5058 (e500_extract_return_value): New function.
5059 (frame_get_saved_regs): Add support for saving ev registers and
5060 pseudo gpr's.
5061 (e500_store_return_value): New function.
5062 (rs6000_gdbarch_init): Move up default intializations of
5063 deprecated_extract_return_value and store_return_value. Overwrite
5064 init of store_return_value with e500 specific version.
5065 Set extract_return_value for e500.
5066
5067 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5068
5069 * blockframe.c (generic_call_dummy_register_unwind): Use
5070 regcache_cooked_read to catch cases in which the variable is
5071 stored in a pseudo register.
5072
5073 2002-08-22 Andrew Cagney <cagney@redhat.com>
5074
5075 * NEWS: Mention that the i960 has been made obsolete.
5076 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5077 i960-tdep.c
5078 (remote-nrom.o): Obsolete target.
5079 (remote-nindy.o, i960-tdep.o): Ditto.
5080 * remote-nrom.c: Make file obsolete.
5081 * remote-nindy.c, remote-vx960.c: Ditto.
5082 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5083 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5084 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5085 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5086 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5087 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5088 i960-*-vxworks* obsolete.
5089 * MAINTAINERS: Note that the i960 is obsolete.
5090
5091 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5092
5093 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5094 detach to allow reinitialization.
5095
5096 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5097
5098 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5099 attempt).
5100
5101 2002-08-22 Jim Blandy <jimb@redhat.com>
5102
5103 * coffread.c (coff_symfile_read): Don't try to read the line
5104 number table from disk if the image file doesn't have a symbol
5105 table; we'll never actually look at the info anyway, and Windows
5106 ships DLL's with bogus file offsets for the line number data.
5107
5108 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5109
5110 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5111 an e500 executable.
5112
5113 2002-08-21 Michael Snyder <msnyder@redhat.com>
5114
5115 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5116 (MSYMBOL_SIZE): Replace macro with function.
5117 (DEFAULT_MIPS_TYPE): Delete unused macro.
5118 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5119 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5120
5121 2002-08-21 Jim Blandy <jimb@redhat.com>
5122
5123 * valops.c (value_cast): Simplify and correct logic for doing a
5124 static cast from a pointer to a base class to a pointer to a
5125 derived class.
5126
5127 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5128
5129 * infcmd.c (default_print_registers_info): Replace
5130 do_registers_info.
5131 (registers_info): Use gdbarch_print_registers_info instead of
5132 DO_REGISTERS_INFO.
5133 * inferior.h (default_print_registers_info): Replace
5134 do_registers_info.
5135 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5136 (DO_REGISTERS_INFO): Change to a predicate function.
5137 * gdbarch.h, gdbarch.c: Regenerate.
5138
5139 2002-08-21 Keith Seitz <keiths@redhat.com>
5140
5141 * gdb-events.sh: Add target-changed event.
5142 * gdb-events.c: Regenerated.
5143 * gdb-events.c: Regenerated.
5144 * valops.c (value_assign): Add target-changed event notification
5145 to inlval_register, lval_memory, and lval_reg_frame_relative.
5146
5147 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5148
5149 * NEWS: Add an entry regarding the improvement of the next/step
5150 operation on Alpha Tru64 multi-processor machines.
5151
5152 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5153
5154 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5155 directores.
5156 * Makefile.in: Update all _h macro definitions.
5157 * Makefile.in (install-gdbtk): Move to install section.
5158 (rdi-share/libangsd.a): Move to end of file.
5159
5160 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5161
5162 * frame.c (frame_register_unwind): When a register, set addrp to
5163 the register's byte.
5164
5165 2002-08-20 Michael Snyder <msnyder@redhat.com>
5166
5167 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5168 used locally, so move them from the target machine header to here.
5169 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5170 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5171 Make static.
5172 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5173
5174 2002-08-20 Andrew Cagney <cagney@redhat.com>
5175
5176 * NEWS: Mention that the Apollo line was made obsolete.
5177 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5178 m68*-hp-hpux* obsolete.
5179 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5180 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5181 * buildsym.c (make_blockvector): Make static.
5182 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5183 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5184 (ALLDEPFILES): Remove dstread.c.
5185 (dstread.o): Obsolete make rule.
5186 * dstread.c: Makefile obsolete.
5187 * dst.h: Ditto.
5188 * config/m68k/hp300hpux.mt: Ditto.
5189 * config/m68k/hp300hpux.mh: Ditto.
5190 * config/m68k/hp300bsd.mt: Ditto.
5191 * config/m68k/hp300bsd.mh: Ditto.
5192 * config/m68k/apollo68b.mt: Ditto.
5193 * config/m68k/apollo68v.mh: Ditto.
5194 * config/m68k/apollo68b.mh: Ditto.
5195
5196 2002-08-20 Michael Snyder <msnyder@redhat.com>
5197
5198 * mips-tdep.c (mips_in_return_stub): Make static.
5199 (mips_gdbarch_init): Set in_solib_return_trampoline.
5200 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5201
5202 2002-08-20 Michael Snyder <msnyder@redhat.com>
5203
5204 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5205 * gdbarch.c, gdbarch.h: Regenerate.
5206 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5207 Add.
5208 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5209
5210 2002-08-20 Michael Snyder <msnyder@redhat.com>
5211
5212 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5213 (mips_gdbarch_init): Set skip_trampoline_code,
5214 in_solib_call_trampoline.
5215 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5216 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5217
5218 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5219
5220 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5221
5222 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5223 vector type for ev registers.
5224 (e500_pseudo_register_read): New function.
5225 (e500_pseudo_register_write): New function.
5226 (e500_dwarf2_reg_to_regnum): New function.
5227 (PPC_UISA_NOFP_SPRS): New macro.
5228 (PPC_EV_REGS): New macro.
5229 (PPC_GPRS_PSEUDO_REGS): New macro.
5230 (registers_e500): New register set for e500.
5231 (variants): Add e500 variant.
5232 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5233 before setting architectural dependent variations. Initialize ev
5234 registers numbers. Add case for e500 architecture. Set the
5235 number of pseudo registers.
5236
5237 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5238
5239 * rs6000-tdep.c: Clean up comments.
5240
5241 2002-08-20 Andrew Cagney <cagney@redhat.com>
5242
5243 * h8300-tdep.c: Re-indent file.
5244
5245 2002-08-20 Jim Blandy <jimb@redhat.com>
5246
5247 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5248 default for this.
5249
5250 2002-08-20 Keith Seitz <keiths@redhat.com>
5251
5252 * breakpoints.c (watch_command_1): Use internal breakpoint
5253 when setting a watchpoint_scope breakpoint.
5254
5255 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5256
5257 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5258 (build_builtin_type_vec64i): Ditto.
5259 (build_builtin_type_vec128): Ditto.
5260 (build_builtin_type_vec128i): Ditto.
5261
5262 2002-08-19 Michael Snyder <msnyder@redhat.com>
5263
5264 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5265 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5266 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5267 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5268 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5269 CALL_DUMMY_ADDRESS): Delete.
5270 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5271 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5272 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5273 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5274 push_return_address.
5275 (mips_register_raw_size, mips_eabi_use_struct_convention,
5276 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5277 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5278 mips_init_extra_frame_info, mips_eabi_push_arguments,
5279 mips_n32n64_push_arguments, mips_push_return_address,
5280 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5281 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5282
5283 2002-08-19 Michael Snyder <msnyder@redhat.com>
5284
5285 * mips-tdep.c (mips_frame_num_args): New function.
5286 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5287 frame_saved_pc, frame_args_address, frame_locals_address,
5288 frame_num_args, and frame_args_skip.
5289 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5290 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5291 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5292 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5293
5294 2002-08-20 Michael Snyder <msnyder@redhat.com>
5295
5296 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5297 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5298 * mips-tdep.c (mips_store_struct_return): New function.
5299 (mips_extract_struct_value_address): New function.
5300 (mips_gdbarch_init): Set store_struct_return and
5301 extract_struct_value_address.
5302
5303 2002-08-20 David Carlton <carlton@math.stanford.edu>
5304
5305 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5306 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5307 (read_file_scope): Check that line_header is nonzero before
5308 decoding macro information.
5309
5310 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5311
5312 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5313 flag the general-purpose registers as floating-point on targets
5314 that don't support the floating-point registers.
5315
5316 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5317
5318 * rs6000-tdep.c (altivec_register_p): Delete.
5319 (rs6000_do_altivec_registers): Delete.
5320 (rs6000_altivec_registers_info): Delete.
5321 (rs6000_do_registers_info): Delete.
5322 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5323 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5324
5325 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5326
5327 * infcmd.c (do_registers_info): Print vector registers in hex
5328 format only.
5329 (print_vector_info): Check that printing registers
5330 makes sense.
5331 (print_float_info): Ditto.
5332
5333 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5334
5335 * mips-tdep.c (mips_gdbarch_init): Update.
5336 (mips_o32_extract_return_value): Rewrite.
5337 (mips_o32_store_return_value): Rewrite.
5338 (mips_o32_xfer_return_value): New function.
5339 (mips_xfer_register): Tweak debug print message. Allow for
5340 buf_offset when dumping the value transfered.
5341
5342 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5343
5344 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5345 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5346 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5347 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5348 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5349
5350 2002-08-14 Michael Snyder <msnyder@redhat.com>
5351
5352 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5353
5354 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5355
5356 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5357 register.
5358 (P): New macro to define a register as a pseudo register.
5359 (R, R4, R8, R16, FR32, R64, R0): Updated.
5360 (struct variant): Add new fields for number of pseudo registers
5361 and number of total registers.
5362 (tot_num_registers): New macro replacing....
5363 (num_registers): ...deleted macro.
5364 (num_registers): New function.
5365 (num_pseudo_registers): New function.
5366 (variants): Update all variants to intialize new fields correctly.
5367 Postpone initialization of number of pseudo regs and real regs.
5368 (init_variants): New function.
5369 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5370 registers offsets.
5371
5372 2002-08-19 David Carlton <carlton@math.stanford.edu>
5373
5374 * valops.c (search_struct_field): Change error message to treat
5375 return value of 0 from value_static_field as meaning that field is
5376 optimized out.
5377 (value_struct_elt_for_reference): Ditto.
5378 * values.c (value_static_field): Treat an unresolved location the
5379 same as a nonexistent symbol. Fix PR gdb/635.
5380 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5381 enclosed. Fix PR gdb/574.
5382 * MAINTAINERS: Add self to Write After Approval list.
5383
5384 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5385
5386 * mips-tdep.c (mips_xfer_register): New function.
5387 (mips_n32n64_extract_return_value): Rewrite.
5388 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5389 instead of deprecated_extract_return_value.
5390
5391 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5392
5393 * rs6000-tdep.c (TDEP): Delete macro.
5394 (branch_dest): Replace use of TDEP macro with its body.
5395 (rs6000_pop_frame): Ditto.
5396 (rs6000_push_arguments): Ditto.
5397 (rs6000_skip_trampoline_code): Ditto.
5398 (rs6000_frame_saved_pc): Ditto.
5399 (rs6000_frame_chain): Ditto.
5400 (rs6000_register_name): Ditto.
5401 (rs6000_register_byte): Ditto.
5402 (rs6000_register_raw_size): Ditto.
5403 (rs6000_register_virtual_type): Ditto.
5404 (rs6000_register_convertible): Ditto.
5405 (rs6000_convert_from_func_ptr_addr): Ditto.
5406
5407 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5408
5409 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5410 conditionally.
5411 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5412 MIPS_LINUX_JB_ELEMENT_SIZE.
5413 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5414 for MAX_REGISTER_RAW_SIZE arrays.
5415 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5416 MIPS_LINUX_JB_ELEMENT_SIZE.
5417
5418 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5419
5420 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5421
5422 2002-08-19 Aidan Skinner <aidan@velvet.net>
5423
5424 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5425 ada-valprint.c ada-tasks.c.
5426 (YYFILES): Add ada-exp.y.
5427 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5428 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5429 (ada-exp.tab.o): New target.
5430
5431 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5432
5433 * regcache.c (regcache_xfer_part): New function.
5434 (regcache_raw_read_part): New function.
5435 (regcache_raw_write_part): New function.
5436 (regcache_cooked_read_part): New function.
5437 (regcache_cooked_write_part): New function.
5438 * regcache.h (regcache_raw_read_part): Declare.
5439 (regcache_raw_write_part): Declare.
5440 (regcache_cooked_read_part): Declare.
5441 (regcache_cooked_write_part): Declare.
5442
5443 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5444
5445 * remote.c (remote_open_1): Add async_p.
5446 (remote_async_open_1): Delete.
5447 (open_remote_target): Delete.
5448 (remote_open, extended_remote_open): Update calls to remote_open_1.
5449 (remote_async_open, extended_remote_async_open): Call
5450 remote_open_1 instead of remote_async_open_1.
5451
5452 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5453
5454 * blockframe.c: Fix a few coding standard violations.
5455
5456 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5457
5458 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5459 here from ...
5460 * config/i386/tm-i386sco5.h: ... here. File removed.
5461 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5462
5463 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5464 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5465 (TM_FILE): Set to tm-i386.h.
5466 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5467 * config/i386/tm-i386v.h: Remove file.
5468 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5469 instead of "i386/tm-i386v.h".
5470 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5471 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5472 "i386/tm-i386v.h".
5473 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5474 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5475 "i386/tm-i386.h".
5476
5477 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5478
5479 * config/i386/nm-i386v.h: Add protection against
5480 multiple-inclusion.
5481 (i386_register_u_addr): Remove prototype.
5482 (register_u_addr): New prototype.
5483 (REGISTER_U_ADDR): Redefine accordingly.
5484 * i386v-nat.c: Improve several comments.
5485 (i386_register_u_addr): Change signature and rename to
5486 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5487 ubase variable.
5488
5489 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5490
5491 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5492 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5493 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5494 deprecated_extract_return_value.
5495 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5496 rename mips_o32o64_push_arguments.
5497 (mips_gdbarch_init): Update.
5498 (mips_extract_return_value): Delete.
5499 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5500 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5501 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5502 (mips_n32n64_extract_return_value): Clone
5503 mips_extract_return_value.
5504 (mips_store_return_value): Delete.
5505 (mips_o32_store_return_value): Clone mips_store_return_value.
5506 (mips_o64_store_return_value): Clone mips_store_return_value.
5507 (mips_eabi_store_return_value): Clone mips_store_return_value.
5508 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5509
5510 2002-08-18 Aidan Skinner <aidan@velvet.net>
5511
5512 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5513 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5514
5515 2002-08-18 Aidan Skinner <aidan@velvet.net>
5516
5517 * ada-lang.c: Run through gdb_indent.sh.
5518 * ada-lang.h: Run through gdb_indent.sh.
5519 * ada-tasks.c: Run through gdb_indent.sh.
5520 * ada-typeprint.c: Run through gdb_indent.sh.
5521 * ada-valprint.c: Run through gdb_indent.sh.
5522
5523 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5524
5525 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5526 ABI.
5527
5528 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5529
5530 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5531
5532 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5533 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5534
5535 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5536 write_register_gen instead of write_register_bytes.
5537
5538 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5539 i[3456]-*-osf1mk* configurations have been made obsolete.
5540 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5541 i[3456]86-*-osf1mk* hosts obsolete.
5542 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5543 targets obsolete.
5544 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5545 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5546 config/i386/i386m3.mt, config/i386/nm-m3.h,
5547 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5548 config/i386/i386mk.mh, config/i386/i386mk.mt,
5549 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5550 obsolete.
5551 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5552 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5553 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5554
5555 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5556
5557 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5558 (hppa_value_returned_from_stack): Declare.
5559 (hppa_extract_return_value): Declare.
5560 * config/pa/hppa.mt: New file.
5561 * configure.tgt: Recognize hppa*-*-*.
5562 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5563
5564 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5565
5566 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5567 comment.
5568
5569 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5570
5571 * top.c (gdb_rl_operate_and_get_next): Make sure
5572 operate-and-get-next functions correctly even when the history
5573 list is completely filled.
5574
5575 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5576
5577 * MAINTAINERS (Target Instruction Set Architectures): Rename
5578 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5579 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5580 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5581 already listed under Host/Native.
5582
5583 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5584 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5585 mips*-*-*.
5586
5587 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5588
5589 * config/ia64/ia64.mt: New file.
5590 * config/alpha/alpha.mt: New file.
5591 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5592 ia64-linux-gnu. Mention that ia64-elf is broken.
5593 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5594
5595 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5596
5597 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5598 generic_func_frame_valid instead of func_frame_valid.
5599
5600 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5601
5602 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5603 procfs appears to be broken when debugging on multi-processor
5604 machines. So enable software single stepping in order to avoid
5605 using the procfs interface to do next/step operations, using
5606 internal breakpoints instead.
5607
5608 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5609 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5610 make this pc address equal to the value it would have if the
5611 system stepping capability was used. Also set a new flag used
5612 to ensure that we don't readjust the PC one more time later.
5613
5614 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5615 address by DECR_PC_AFTER_BREAK when software single step is
5616 in use for this architecture, as this has already been taken
5617 care of in handle_inferior_event().
5618
5619 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5620
5621 * infrun.c (handle_inferior_event): Minor reformatting, to make
5622 a rather long condition expression easier to read.
5623
5624 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5625
5626 * Makefile.in (gdbtk.o): Move to end of file.
5627 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5628 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5629 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5630 (gdbtk-wrapper.o, gdbres.o): Ditto.
5631
5632 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5633
5634 * Makefile.in (copying.o): Separate out compile rule.
5635 (hpux-thread.o, procfs.o, signals.o): Ditto.
5636 (v850ice.o, z8k-tdep.o): Ditto.
5637 (tui-file.o): Move to TUI section.
5638 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5639 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5640
5641 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5642
5643 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5644 skip_trampoline_code, for better namespace-proofing.
5645
5646 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5647
5648 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5649
5650 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5651
5652 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5653
5654 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5655 signal, check whether we hit a breakpoint before checking for a
5656 single step breakpoint. Otherwise, GDB fails to notice that a
5657 breakpoint has been hit when stepping onto a breakpoint.
5658
5659 2002-08-16 Keith Seitz <keiths@redhat.com>
5660
5661 * gdb-events.sh (clear_gdb_event_hooks): New function.
5662 * gdb-events.c: Regenerate.
5663 * gdb-events.h: Regenerate.
5664
5665 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5666
5667 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5668 not_a_sw_breakpoint.
5669 * breakpoint.h (bpstat_stop_status): Add parameter names.
5670
5671 2002-08-16 Grace Sainsbury <graces@redhat.com>
5672
5673 * remote.c (remote_insert_hw_breakpoint)
5674 (remote_remove_hw_breakpoint): Fix calculation of length field
5675 for Z-packet.
5676
5677 2002-08-15 Michael Snyder <msnyder@redhat.com>
5678
5679 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5680 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5681 (supply_fpregset): Ditto.
5682
5683 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5684 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5685 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5686 (TARGET_READ_SP): Delete.
5687 (DO_REGISTERS_INFO): Delete.
5688 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5689 Delete.
5690 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5691 from macros to functions.
5692
5693 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5694 (mips_register_convertible, mips_register_convert_to_virtual,
5695 mips_register_convert_to_raw): Make static.
5696 (mips_read_sp): New function.
5697 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5698 (mips_do_registers_info): Make static.
5699 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5700 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5701 (mips_register_convert_from_type, mips_register_convert_to_type):
5702 New functions.
5703 (mips_gdbarch_init): Set up function_start_offset,
5704 register_virtual_size, pc_in_sigtramp.
5705
5706 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5707
5708 * infcmd.c (vector_info): New function.
5709 (_initialize_infcmd): Add command "info vector".
5710 (print_vector_info): New function.
5711
5712 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5713 * gdbarch.h, gdbarch.c: Regenerate.
5714
5715 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5716
5717 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5718 ``print_all''. Only print vector registers when ``print_all''.
5719
5720 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5721
5722 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5723 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5724
5725 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5726 Add `args' parameter.
5727 * gdbarch.h, gdbarch.c: Regenerate.
5728
5729 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5730
5731 * infcmd.c (float_info): Call print_float_info.
5732 (print_float_info): New function. By default, print the
5733 floating-point registers.
5734
5735 * arch-utils.h (default_print_float_info): Delete declaration.
5736 * arch-utils.c (default_print_float_info): Delete function.
5737
5738 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5739
5740 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5741 out define.
5742
5743 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5744 FRAME.
5745
5746 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5747 * configure.host: Make i[3456]86-*-aix host obsolete.
5748 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5749 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5750 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5751 config/i386/xm-i386aix.h: Make files obsolete.
5752 * i386aix-nat.c: Make file obsolete.
5753 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5754 (i386aix-nat.o): Make target obsolete.
5755
5756 * config/i386/nm-gnu.h: Removed.
5757 * config/i386/nm-i386gnu.h: New file.
5758 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5759 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5760 Moved here from ...
5761 * config/i386/tm-i386gnu.h: ... here. Removed.
5762 * config/i386/xm-i386gnu.h: Removed.
5763 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5764 (NAT_FILE): Set to nm-i386gnu.h.
5765 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5766 * i386-tdep.c: New file.
5767 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5768 (i386gnu-tdep.o): Specify dependencies.
5769
5770 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5771
5772 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5773 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5774 Adjust a few comments to reflect reality a bit closer.
5775 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5776 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5777 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5778 target_insert_watchpoint, target_remove_watchpoint):
5779 Move defines to ...
5780 * config/i386/nm-i386sco5.h: ... here.
5781 (kernel_u_size): Add prototype. Improve a few comments and add
5782 protection against multiple inclusion.
5783
5784 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5785 out define.
5786
5787 * uw-thread.c (SP_ARG0): Define if not already defined.
5788 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5789
5790 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5791
5792 * config/i386/tm-i386.h: Don't include "regcache.h".
5793
5794 * i387-tdep.h (i387_print_float_info): New prototype.
5795 * i387-tdep.c (print_i387_value, print_i387_ext,
5796 print_i387_status_word, print_i387_control_word): Add `struct
5797 ui_file *' argument and use it for output.
5798 (i387_print_float_info): Renamed from i387_float_info. Add
5799 `struct gdbarch *' and `struct ui_file *' arguments and use the
5800 latter for output.
5801 * i386-tdep.c: Include "i387-tdep.h".
5802 (i386_gdbarch_init): Set print_float_info.
5803 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5804 (FLOAT_INFO): Remove define.
5805
5806 2002-08-13 Michael Snyder <msnyder@redhat.com>
5807
5808 * mips-tdep.c (mips_push_arguments): Rename to
5809 mips_eabi_push_arguments, and tune for EABI.
5810 (MIPS_REGS_HAVE_HOME_P): Delete.
5811 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5812 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5813 Delete references to mips_regs_have_home_p.
5814
5815 2002-08-14 Keith Seitz <keiths@redhat.com>
5816
5817 * Makefile.in (install-gdbtk): Create insight plugin directory.
5818 Install plugins.tcl file.
5819
5820 2002-08-14 Keith Seitz <keiths@redhat.com>
5821
5822 * configure.in: Move SUBDIRS to near top of the file so that
5823 --enable options may add things to it.
5824 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5825 * configure: Regenerate.
5826
5827 2002-08-13 Michael Snyder <msnyder@redhat.com>
5828
5829 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5830 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5831 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5832
5833 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5834
5835 * vax-tdep.c (vax_get_saved_register): Delete function.
5836 (vax_gdbarch_init): Update.
5837 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5838 (ns32k_gdbarch_init): Update.
5839 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5840 (alpha_gdbarch_init): Update.
5841
5842 2002-08-13 Andrew Cagney <cagney@redhat.com>
5843
5844 * regcache.c (init_regcache_descr): Overallocate the
5845 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5846 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5847 nr_raw_registers.
5848 (set_register_cached): Add range checking assertions. Use
5849 current_regcache.
5850
5851 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5852
5853 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5854 numbers for MMX registers.
5855
5856 2002-08-13 Andrew Cagney <cagney@redhat.com>
5857
5858 * i386-tdep.c (i386_gdbarch_init): Use
5859 generic_unwind_get_saved_register.
5860
5861 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5862
5863 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5864 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5865 target vector.
5866 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5867 Delete. Add comment regarding this now-deleted target method.
5868
5869 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5870
5871 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5872 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5873 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5874 real PC and the page number (if it's within the memory bank window).
5875 (m68hc11_pseudo_register_write): Likewise when saving.
5876 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5877 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5878 (m68hc11_register_raw_size): And use 32-bit for it.
5879 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5880 16K memory bank is used by the prog; also use the virtual pc.
5881
5882 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5883
5884 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5885 (m68hc11_gdbarch_init): Install it in gdbarch.
5886 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5887 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5888 (MSYMBOL_SIZE): New for documentation.
5889 (insn_return_kind): Enum to specify how a function returns.
5890 (frame_extra_info): Cleanup and record the return mode.
5891 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5892 register in address computation.
5893 (m68hc11_get_return_insn): New to obtain the return instruction used
5894 by the function.
5895 (m68hc11_frame_init_saved_regs): Take into account the return
5896 instruction used by the function for far and interrupt functions.
5897 (m68hc11_init_extra_frame_info): Take into account page register.
5898 (m68hc11_frame_args_address): Adjust according to the return mode.
5899 (show_regs): Print page register only when it's used.
5900
5901 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5902
5903 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5904 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5905 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5906 registers.
5907 (m68hc11_register_raw_size): Likewise.
5908
5909 2002-08-13 Andrew Cagney <cagney@redhat.com>
5910
5911 * i386-tdep.c (i386_register_name): Handle mmx registers.
5912 (mmx_regnum_p): New function.
5913 (i386_mmx_names): New array.
5914 (mmx_num_regs): New variable.
5915 (i386_pseudo_register_read): New function.
5916 (i386_pseudo_register_write): New function.
5917 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5918
5919 * regcache.c (regcache_raw_read_unsigned): New function.
5920 (regcache_raw_read_signed): New function.
5921 * regcache.h (regcache_raw_read_unsigned): Declare.
5922 (regcache_raw_read_signed): Declare.
5923
5924 2002-08-13 Andrew Cagney <cagney@redhat.com>
5925
5926 * regcache.c (regcache_raw_read_as_address): Delete function.
5927 (regcache_cooked_read_signed): New function.
5928 (regcache_cooked_read_unsigned): New function.
5929 * regcache.h (regcache_cooked_read_signed): Declare.
5930 (regcache_cooked_read_unsigned): Declare.
5931 (regcache_raw_read_as_address): Delete declaration.
5932
5933 * blockframe.c (generic_read_register_dummy): Use
5934 regcache_cooked_read_unsigned.
5935 * i386-tdep.c (i386_extract_struct_value_address): Use
5936 regcache_cooked_read_unsigned.
5937
5938 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5939
5940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5941 double sizes according to ELF ABI flags.
5942 (gdbarch_tdep): Record elf_flags.
5943
5944 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5945
5946 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5947 (m6812_prolog): They can appear in 68HC12 function prologue.
5948 (m68hc11_frame_chain): Cleanup.
5949
5950 2002-08-12 Andrew Cagney <cagney@redhat.com>
5951
5952 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5953 declarations.
5954 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5955 (i386_linux_register_raw_size): Delete function.
5956 (i386_linux_init_abi): Update.
5957 * i386-tdep.c (i386_register_raw_size): Delete function.
5958 (i386_register_byte): Delete function.
5959 (i386_gdbarch_init): Update.
5960 (i386_register_size): Delete array.
5961 (i386_register_offset): Delete array.
5962
5963 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5964 (REGISTER_RAW_SIZE): Delete macro.
5965 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5966 (REGISTER_BYTE): Delete macro.
5967
5968 2002-08-11 Aidan Skinner <aidan@velvet.net>
5969
5970 * ada-lang.c (ada_lookup_partial_symbol)
5971 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5972 prototype names so that grep ^func works properly.
5973
5974 * ada-lang.c (ada_array_element_type)
5975 (ada_lookup_partial_symbol): Fix typos in parameter list.
5976
5977 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5978 Fix prototype names so that grep ^func works properly.
5979
5980 2002-08-10 Andrew Cagney <cagney@redhat.com>
5981 Elena Zannoni <ezannoni@redhat.com>
5982 Martin M. Hunt <hunt@redhat.com>
5983
5984 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5985 (build_builtin_type_vec128i): Set the vector bit.
5986 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5987 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5988 (build_builtin_type_vec64): New function.
5989 (build_builtin_type_vec64i): New function.
5990 (build_gdbtypes): Initialize builtin_type_vec64 and
5991 builtin_type_vec64i.
5992
5993 2002-08-09 Andrew Cagney <cagney@redhat.com>
5994
5995 * regcache.c (regcache_dump): Compare the register offset
5996 with REGISTER_BYTE.
5997 * arch-utils.c (generic_register_byte): New function.
5998 * arch-utils.h (generic_register_byte): Declare.
5999 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6000 * gdbarch.h, gdbarch.c: Regenerate.
6001
6002 2002-08-09 Andrew Cagney <cagney@redhat.com>
6003
6004 * regcache.c: Include "gdbcmd.h"
6005 (_initialize_regcache): Add commands "maintenance print
6006 registers", "maintenance print raw-registers" and "maintenance
6007 print cooked-registers".
6008 (enum regcache_dump_what): Define.
6009 (dump_endian_bytes): New function.
6010 (regcache_dump): New function.
6011 (regcache_print): New function.
6012 (maintenance_print_registers): New function.
6013 (maintenance_print_raw_registers): New function.
6014 (maintenance_print_cooked_registers): New function.
6015 * Makefile.in (regcache.o): Update dependencies.
6016
6017 2002-08-09 Michael Snyder <msnyder@redhat.com>
6018
6019 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6020 (mips_push_arguments): Correct some comments. Use paddr_nz
6021 for printing addresses in debug output. Replace static
6022 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6023 (mips_n32n64_push_arguments): New function, cloned from
6024 mips_push_arguments and tuned for the n32/n64 ABI.
6025 (mips_push_register): Buffer needs dynamic allocation.
6026 (mips_print_register): Ditto.
6027 (do_gp_register_row): Ditto.
6028 (mips_store_return_value): Ditto.
6029 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6030
6031 2002-08-09 Don Howard <dhoward@redhat.com>
6032
6033 * memattr.c (mem_info_command): Print special case of upper bound
6034 as max CORE_ADDR + 1.
6035
6036 2002-08-08 Michael Snyder <msnyder@redhat.com>
6037
6038 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6039 returns structs by ref if they're too big to fit in two registers.
6040
6041 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6042
6043 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6044 saved regs value.
6045 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6046 mips_find_saved_regs().
6047 (mips_pop_frame): Likewise.
6048
6049 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6050
6051 * blockframe.c (frame_saved_regs_register_unwind): Revise
6052 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6053 frames are in use.
6054
6055 2002-08-09 Grace Sainsbury <graces@redhat.com>
6056
6057 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6058 T-packets; the 'a' is not taken as a register number.
6059 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6060 (remote_stopped_data_address): New functions; add to target
6061 vector.
6062 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6063 prototypes to match other implementations of this
6064 function. replace integer argument with pointer -- the length
6065 field in the Z-packet is the length of what is pointed to or 1 if
6066 pointer is null. Add to target vector.
6067 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6068 target vector.
6069
6070 From Mark Salter:
6071 * remote.c (remote_wait): Add support to extract optional
6072 watchpoint information from T-packet. Ignore unrecognized
6073 optional info in T-packet.
6074 (remote_async_wait): Ditto.
6075
6076 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6077
6078 * cli/cli-dump.c: Change fopen modes to use binary open modes
6079 as defined in include/fopen-bin.h throughout.
6080
6081 2002-08-08 Michael Snyder <msnyder@redhat.com>
6082
6083 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6084
6085 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6086
6087 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6088 assertion failure by returning early after a warning.
6089
6090 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6091
6092 * mips-tdep.c (mips_find_saved_regs): Make static.
6093 (mips_frame_init_saved_regs): New function.
6094 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6095 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6096 (mips_find_saved_regs): Delete declaration.
6097
6098 2002-08-08 Grace Sainsbury <graces@redhat.com>
6099
6100 * remote.c (remote_wait, remote_async_wait): Change
6101 thread_num from int to ULONGEST.
6102 (unpack_varlen_hex): Change result parameter from
6103 int * to ULONGEST *.
6104
6105 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6106
6107 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6108 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6109 powerpc*-*-*.
6110 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6111
6112 2002-08-08 Andrew Cagney <cagney@redhat.com>
6113
6114 * gcore.c (override_derive_stack_segment): Delete variable.
6115 (preempt_derive_stack_segment): Delete function.
6116 (derive_stack_segment): Delete function.
6117 (default_derive_stack_segment): Renamed to derive_stack_segment.
6118 (override_derive_heap_segment): Delete variable.
6119 (preempt_derive_heap_segment): Delete function.
6120 (derive_heap_segment): Delete function.
6121 (default_derive_heap_segment): Rename to derive_heap_segment.
6122
6123 2002-08-06 Michael Snyder <msnyder@redhat.com>
6124
6125 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6126 * mips-tdep.c (mips_EABI_use_struct_convention,
6127 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6128 New functions. (mips_use_struct_convention): Delete.
6129 (mips_gdbarch_init): set use_gdbarch_convention.
6130
6131 2002-08-06 Michael Snyder <msnyder@redhat.com>
6132
6133 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6134 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6135 mips_o32_reg_struct_has_addr): New functions.
6136 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6137
6138 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6139
6140 * regcache.c (pseudo_register): Delete function.
6141 (fetch_register): Delete function.
6142 (store_register): Delete function.
6143 (regcache_raw_read, legacy_read_register_gen): Use
6144 target_fetch_registers instead of fetch_register.
6145 (legacy_write_register_gen, regcache_raw_write): Use
6146 target_store_register instead of store_register.
6147 (write_register_bytes): Ditto.
6148
6149 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6150 (STORE_PSEUDO_REGISTER): Delete.
6151 * gdbarch.h, gdbarch.c: Regenerate.
6152
6153 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6154
6155 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6156 write dump file binary.
6157
6158 2002-08-05 Michael Snyder <msnyder@redhat.com>
6159
6160 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6161 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6162 (mips_gdbarch_init): Set N32 target to be mips64.
6163
6164 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6165
6166 * frame.c (find_saved_register): Break out of loop once saved
6167 register address is found. Don't mention sparc in loop comment
6168 anymore.
6169
6170 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6171
6172 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6173 mips_default_saved_regsize to 8.
6174
6175 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6176
6177 * gcore.c: Do not include <sys/procfs.h>.
6178 * Makefile.in (gcore.o): Update dependencies.
6179
6180 2002-08-06 Andrew Cagney <cagney@redhat.com>
6181
6182 * configure.tgt: Make arc-*-* obsolete.
6183 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6184 * MAINTAINERS: Make arc-elf obsolete.
6185 * arc-tdep.c: Make file obsolete.
6186 * config/arc/arc.mt: Ditto.
6187 * config/arc/tm-arc.h: Ditto.
6188
6189 2002-08-05 Theodore A. Roth <troth@verinet.com>
6190
6191 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6192
6193 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6194
6195 * mcore-tdep.c (mcore_gdbarch_init): Use
6196 generic_unwind_get_saved_register instead of
6197 generic_get_saved_register.
6198 * v850-tdep.c (v850_gdbarch_init): Ditto.
6199 * frv-tdep.c (frv_gdbarch_init): Ditto.
6200 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6201 * s390-tdep.c (s390_gdbarch_init): Ditto.
6202 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6203 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6204 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6205
6206 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6207
6208 * objfiles.h: Add missing #include "symfile.h"
6209
6210 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6211
6212 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6213
6214 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6215 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6216 of FIELD_BITSIZE.
6217
6218 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6219
6220 * NEWS: Cleanup and nitpick.
6221
6222 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6223
6224 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6225
6226 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6227
6228 * Makefile.in (gdbtk-bp.o): Update dependencies.
6229 (gdbtk-register.o): Ditto.
6230 (gdbtk-varobj.o): Ditto.
6231
6232 2002-08-03 Andrew Cagney <cagney@redhat.com>
6233
6234 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6235 m68hc11_fetch_pseudo_register.
6236 (m68hc11_pseudo_register_write): Replace
6237 m68hc11_store_pseudo_register.
6238 (m68hc11_gdbarch_init): Update.
6239
6240 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6241
6242 * gdbarch.sh: Include "gdb_string.h".
6243 * gdbarch.c: Regenerate.
6244
6245 * regcache.c: Include "gdb_string.h".
6246 * ax-general.c: Ditto.
6247 * varobj.c: Ditto.
6248 * std-regs.c: Ditto.
6249 * fbsd-proc.c: Ditto.
6250 * thread.c: Ditto.
6251
6252 * Makefile.in (regcache.o): Update dependencies.
6253 (thread.o, gdbarch.o): Ditto.
6254 (ax-general.o, gdbarch.o): Ditto.
6255 (varobj.o, std-regs.o): Ditto.
6256 (fbsd-proc.o): Specify dependencies.
6257
6258 2002-08-02 Andrew Cagney <cagney@redhat.com>
6259
6260 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6261 regnum.
6262 (regcache_cooked_write): Ditto.
6263
6264 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6265
6266 * regcache.c (regcache_cooked_read): New function.
6267 (regcache_cooked_write): New function.
6268 (read_register_gen): Rewrite using regcache_cooked_read.
6269 (write_register_gen): Rewrite using regcache_cooked_write.
6270
6271 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6272 Declare.
6273
6274 2002-08-02 Andrew Cagney <cagney@redhat.com>
6275
6276 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6277 Replace the architecture methods register_read and register_write.
6278 * gdbarch.h, gdbarch.c: Regenerate.
6279 * regcache.c (init_regcache_descr): Update.
6280 (read_register_gen): Update.
6281 (write_register_gen): Update.
6282 (supply_register): Update comment.
6283
6284 * sh-tdep.c (sh_gdbarch_init): Update.
6285 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6286 `regcache' and `gdbarch' parameters. Make `buffer' a void
6287 pointer. Update code.
6288 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6289 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6290 void pointer. Update code.
6291 (sh64_register_write): Delete.
6292 (sh4_register_read): Delete.
6293 (sh64_register_read): Delete.
6294 (sh4_register_write): Delete.
6295 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6296 void pointer, `to' parameter a void pointer.
6297 (sh_sh64_register_convert_to_raw): Ditto.
6298
6299 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6300
6301 * mips-tdep.c (mips_register_virtual_type): Use architecture
6302 invariant return values.
6303
6304 2002-08-01 Andrew Cagney <cagney@redhat.com>
6305
6306 * linux-proc.c: Include "gdb_string.h".
6307 * Makefile.in (linux-proc.o): Update dependency list.
6308
6309 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6310
6311 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6312 comment.
6313
6314 2002-08-01 Grace Sainsbury <graces@redhat.com>
6315
6316 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6317 to_insert_watchpoint, to_remove_watchpoint,
6318 to_stopped_by_watchpoint, to_stopped_data_address,
6319 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6320 target vecctor. Define their corresponding macros so they call
6321 them.
6322
6323 * target.c: Add default and debug versions of for
6324 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6325 to_insert_watchpoint, to_remove_watchpoint,
6326 to_stopped_by_watchpoint, to_stopped_data_address,
6327 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6328
6329 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6330
6331 * mips-tdep.c (mips_register_virtual_type): New function.
6332 (mips_gdbarch_init): Register mips_register_virtual_type()
6333 with gdbarch machinery.
6334 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6335 this file instead of tm-bigmips.h.
6336 (MIPS_REGSIZE): Delete this macro.
6337 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6338 multiarch version in mips-tdep.c will be found.
6339
6340 2002-08-01 Andrew Cagney <cagney@redhat.com>
6341
6342 * NEWS: Menion that CHILL has been made obsolete.
6343
6344 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6345 * stabsread.c (read_range_type): Ditto.
6346 * gdbtypes.h: Ditto.
6347 * language.c (binop_type_check): Ditto.
6348 (binop_result_type): Ditto.
6349 (integral_type): Ditto.
6350 (character_type): Ditto.
6351 (string_type): Ditto.
6352 (boolean_type): Ditto.
6353 (structured_type): Ditto.
6354 (lang_bool_type): Ditto.
6355 (binop_type_check): Ditto.
6356 * language.h (_LANG_chill): Ditto.
6357 * dwarfread.c (set_cu_language): Ditto.
6358 * dwarfread.c (CHILL_PRODUCER): Ditto.
6359 * dwarfread.c (handle_producer): Ditto.
6360 * expression.h (enum exp_opcode): Ditto.
6361 * eval.c: Ditto for comments.
6362 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6363 * expprint.c (print_subexp): Ditto.
6364 (print_subexp): Ditto.
6365 * valops.c (value_cast): Ditto.
6366 (search_struct_field): Ditto.
6367 * value.h (COERCE_VARYING_ARRAY): Ditto.
6368 * symfile.c (init_filename_language_table): Ditto.
6369 (add_psymbol_with_dem_name_to_list): Ditto.
6370 * valarith.c (value_binop): Ditto.
6371 (value_neg): Ditto.
6372 * valops.c (value_slice): Ditto.
6373 * symtab.h (union language_specific): Ditto.
6374 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6375 (SYMBOL_DEMANGLED_NAME): Ditto.
6376 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6377 * defs.h (enum language): Ditto.
6378 * symtab.c (got_symtab): Ditto.
6379 * utils.c (fprintf_symbol_filtered): Ditto.
6380
6381 * ch-typeprint.c: Make file obsolete.
6382 * ch-valprint.c: Make file obsolete.
6383 * ch-lang.h: Make file obsolete.
6384 * ch-exp.c: Make file obsolete.
6385 * ch-lang.c: Make file obsolete.
6386
6387 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6388 CHILL_LIB.
6389 (TARGET_FLAGS_TO_PASS): Ditto.
6390 (CHILLFLAGS): Obsolete.
6391 (CHILL): Obsolete.
6392 (CHILL_FOR_TARGET): Obsolete.
6393 (CHILL_LIB): Obsolete.
6394 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6395 ch-valprint.c.
6396 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6397 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6398 ch-lang.o.
6399 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6400 targets.
6401
6402 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6403
6404 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6405 This does not change anything at the moment, but will be helpful
6406 later when full Ada support is integrated.
6407
6408 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6409
6410 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6411 help message.
6412
6413 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6414
6415 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6416 and save it in a local variable. Use variable in later test.
6417
6418 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6419
6420 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6421 test. (Thanks to Daniel Jacobowitz.)
6422
6423 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6424
6425 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6426 (mips_abi_strings): Add "n64".
6427 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6428
6429 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6430
6431 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6432 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6433
6434 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6435
6436 * utils.c (host_pointer_to_address, address_to_host_pointer):
6437 Use gdb_assert() instead of explicit call to internal_error().
6438
6439 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6440
6441 * Makefile.in (rs6000-nat.o): Update dependencies.
6442
6443 From Nicholas Duffek:
6444 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6445 (aix-thread.o): New rule.
6446 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6447 * config/powerpc/aix432.mh: New file.
6448
6449 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6450
6451 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6452 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6453 (fetch_core_registers, ppc_linux_supply_gregset)
6454 (ppc_linux_supply_fpregset): New functions.
6455 (ppc_linux_regset_core_fns): New.
6456 (_initialize_ppc_linux_tdep): Call add_core_fns.
6457 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6458 and ppc_linux_supply_gregset.
6459 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6460 (supply_fpregset): Call ppc_linux_supply_fpregset.
6461 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6462 corelow.o.
6463 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6464
6465 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6466
6467 * symtab.c (lookup_symbol): Demangle before lowercasing.
6468
6469 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6470
6471 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6472 declaration.
6473 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6474 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6475 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6476 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6477 "gdb_string.h".
6478 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6479 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6480 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6481 (avr-tdep.o, mon960-rom.o): Ditto.
6482 (aout_stabs_gnu_h): Define.
6483 (symtab_h): Remove $(gdb_obstack_h).
6484
6485 2002-07-30 Jim Blandy <jimb@redhat.com>
6486
6487 Patch from David Carlton <carlton@math.stanford.edu>:
6488 * gdbinit.in: Move the `dir' commands that add GDB's own source
6489 directory to the search path to the end, so that the `gdb' source
6490 directory will be searched first.
6491
6492 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6493
6494 * gdb_obstack.h: New file.
6495 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6496 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6497 * objfiles.h: Include "gdb_obstack.h".
6498 * Makefile.in (gdb_obstack_h): Define.
6499 (symtab_h): Add $(gdb_obstack_h).
6500 (objfiles_h): Add $(gdb_obstack_h).
6501
6502 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6503 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6504 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6505 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6506 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6507 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6508 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6509 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6510
6511 * Makefile.in (bcache.o): Update dependencies.
6512 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6513 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6514 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6515 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6516 (stabsread.o, symfile.o, symmisc.o): Ditto.
6517 (symtab.o, typeprint.o, macroexp.o): Ditto.
6518 (macrotab.o, mdebugread.o): Ditto.
6519 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6520 (coff_ecoff_h, aout_aout64_h): Define.
6521 (aout_stabs_gnu_h, libaout_h): Define.
6522
6523 2002-07-29 Andrew Cagney <cagney@redhat.com>
6524
6525 * regcache.c (struct regcache_descr): Rename nr_registers to
6526 nr_cooked_registers. Revise comments describing the structure
6527 member fields.
6528 (init_regcache_descr): Update.
6529 (init_legacy_regcache_descr): Update.
6530 (read_register_gen, write_register_gen): When a cooked register in
6531 the raw register range, directly access the value from the raw
6532 register cache.
6533
6534 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6535
6536 * z8k-tdep.c: Do not include "obstack.h".
6537 * h8300-tdep.c, h8500-tdep.c: Ditto.
6538 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6539 * valprint.c, v850-tdep.c: Ditto.
6540 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6541 * mn10200-tdep.c: Ditto.
6542
6543 * Makefile.in (z8k-tdep.o): Update dependencies.
6544 (m68hc11-tdep.o, valprint.o): Ditto.
6545 (v850-tdep.o, d10v-tdep.o): Ditto.
6546 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6547 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6548 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6549 (sh_opc_h, gdb_sim_sh_h): Define.
6550 (elf_sh_h, elf_bfd_h): Define.
6551 (opcode_m68hc11_h): Define.
6552 (OPCODES_SRC, OPCODES_DIR): define.
6553 (OPCODES): Use $(OPCODES_DIR).
6554 (gdb_sim_d10v_h): Rename sim_d10v_h.
6555 (gdb_sim_arm_h): Rename sim_arm_h.
6556
6557 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6558
6559 * utils.c (host_pointer_to_address, address_to_host_pointer):
6560 Change internal_error() message to indicate function responsible
6561 for the error.
6562
6563 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6564
6565 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6566 calls to local_hex_string_custom().
6567
6568 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6569
6570 * irix5-nat.c: Move IRIX shared library support from here...
6571 * solib-irix.c: ...to here. Revised substantially to work with
6572 generic solib framework.
6573
6574 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6575 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6576 * mips-irix-tdep.c: New file.
6577
6578 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6579 (mips-irix-tdep.o, solib-irix.o): New rules.
6580 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6581 solib-irix.o.
6582 * config/mips/irix6.mt (TDEPFILES): Likewise.
6583 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6584
6585 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6586
6587 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6588 disabled (via ``#if 0'') includes.
6589
6590 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6591
6592 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6593 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6594 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6595 Add support for the fpscr register.
6596 * rs6000-nat.c (regmap, fetch_inferior_registers)
6597 (store_inferior_registers, fetch_core_registers): Likewise.
6598
6599 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6600
6601 * rs6000-nat.c (language.h): Include.
6602 (special_regs): Delete this array.
6603 (regmap): New function.
6604 (fetch_register, store_register): Use regmap() to map gdb
6605 register numbers to ptrace register numbers. Also, use
6606 outputs from regmap() to make decisions regarding type of
6607 ptrace() call to make. In particular, don't compare against
6608 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6609 (fetch_inferior_registers, store_inferior_registers): Where
6610 possible, obtain register numbers from tdep struct. Don't
6611 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6612 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6613 (LAST_UISA_SP_REGNUM): Delete.
6614
6615 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6616
6617 * rs6000-nat.c (ppc-tdep.h): Include.
6618 (fetch_registers, store_register, fetch_core_registers): Don't
6619 access registers[] directly. Instead, use supply_register() or
6620 regcache_collect() as appropriate.
6621 (find_toc_address): Format hex address with local_hex_string().
6622
6623 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6624
6625 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6626 bfd/elf32-frv.c.
6627
6628 2002-07-24 Tom Tromey <tromey@redhat.com>
6629
6630 * jv-exp.y: Marked all strings with _().
6631 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6632 internal_error.
6633 (MethodInvocation, CastExpression, parse_number, yyerror,
6634 java_type_from_name, push_expression_name, yylex): Typo fixes.
6635
6636 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6639 (tee_file_flush, tee_file_write, tee_file_fputs)
6640 (tee_file_isatty): New.
6641 * ui-file.h (tee_file_new): Add prototype.
6642
6643 2002-07-24 Aidan Skinner <aidan@velvet.net>
6644
6645 * ada-lang.c: Change k&r style function definitions to prototyped
6646 form.
6647 * ada-typeprint.c: Change k&r style function definitions to prototyped
6648 form.
6649 * ada-valprint.c: Change k&r style function definitions to prototyped
6650 form.
6651
6652 2002-07-24 Andrew Cagney <cagney@redhat.com>
6653
6654 * README: Remove reference to remote-bug.
6655 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6656 remote-bug.c.
6657 (m88k-nat.o): Delete rule.
6658 (m88k-tdep.o): Delete rule.
6659 (remote-bug.o): Delete rule.
6660 * MAINTAINERS: Mark as obsolete.
6661 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6662 * m88k-tdep.c: Make file obsolete.
6663 * config/m88k/m88k.mh: Ditto.
6664 * config/m88k/delta88v4.mh: Ditto.
6665 * config/m88k/delta88v4.mt: Ditto.
6666 * config/m88k/delta88.mt: Ditto.
6667 * config/m88k/delta88.mh: Ditto.
6668 * remote-bug.c: Ditto.
6669 * config/m88k/tm-delta88.h: Ditto.
6670 * config/m88k/nm-delta88v4.h: Ditto.
6671 * config/m88k/xm-delta88.h: Ditto.
6672 * config/m88k/xm-dgux.h: Ditto.
6673 * config/m88k/tm-m88k.h: Ditto.
6674 * config/m88k/nm-m88k.h: Ditto.
6675 * config/m88k/tm-delta88v4.h: Ditto.
6676 * m88k-nat.c: Ditto.
6677 * cxux-nat.c: Ditto.
6678 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6679 and m88*-*-* obsolete.
6680 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6681 m88*-*-* obsolete.
6682
6683 2002-07-24 Andrew Cagney <cagney@redhat.com>
6684
6685 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6686 constant. Same for local pointer variables.
6687 (extract_signed_integer): Ditto.
6688 * defs.h (extract_unsigned_integer): Update.
6689 (extract_signed_integer): Update.
6690
6691 2002-07-24 Andrew Cagney <cagney@redhat.com>
6692
6693 * regcache.c (regcache_raw_write): Change buf parameter to a
6694 constant void pointer.
6695 (regcache_raw_read): Change buf parameter to a void pointer.
6696 (legacy_write_register_gen): Change myaddr parameter a constant
6697 void pointer.
6698 (supply_register): Change val parameter to a const void pointer.
6699 * regcache.h (regcache_raw_write): Update declaration.
6700 (regcache_raw_read): Update declaration.
6701 (supply_register): Update declaration.
6702
6703 2002-07-24 Tom Tromey <tromey@redhat.com>
6704
6705 * defs.h (gdb_readline_wrapper): Declare.
6706 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6707 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6708 * top.c (gdb_readline_wrapper): New function.
6709 (command_line_input): Use it.
6710
6711 2002-07-24 Andrew Cagney <cagney@redhat.com>
6712
6713 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6714 regcache_read and regcache_write.
6715 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6716 * regcache.c: Update.
6717 * sh-tdep.c (sh64_push_arguments): Update comment.
6718 (sh_pseudo_register_read): Update.
6719 (sh_pseudo_register_write): Update.
6720 (sh4_register_read): Update.
6721 (sh4_register_write): Update.
6722 (sh64_pseudo_register_read): Update.
6723 (sh64_pseudo_register_write): Update.
6724 (sh64_register_read): Update.
6725 (sh64_register_write): Update.
6726 * i386-tdep.c (i386_extract_return_value): Update.
6727 (i386_extract_struct_value_address): Update.
6728 (i386_extract_return_value): Update.
6729 * blockframe.c (generic_read_register_dummy): Update.
6730 (generic_call_dummy_register_unwind): Update
6731 * infrun.c (write_inferior_status_register): Update.
6732
6733 2002-07-23 Jim Blandy <jimb@redhat.com>
6734
6735 * parser-defs.h (expression_context_pc): Make this extern.
6736 (Thanks to Michael Snyder.)
6737
6738 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6739
6740 GDB 5.2.1 released from 5.2 branch.
6741 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6742 * README: Update to mention 5.2.1.
6743
6744 2002-07-23 Mark Salter <msalter@redhat.com>
6745
6746 * remote.c (remote_read_bytes): Fix check for error.
6747
6748 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6749
6750 * aix-thread.c (language.h): Include.
6751 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6752 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6753 Print newlines at end of debug messages.
6754 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6755 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6756
6757 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6758
6759 * aix-thread.c (ppc-tdep.h): Include.
6760 (special_register_p): New function.
6761 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6762 (store_regs_user_thread): Use register number information from
6763 gdbarch_tdep struct instead of hardcoded offsets relative to
6764 FIRST_UISA_SP_REGNUM.
6765 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6766 special_register_p() instead of using FPLAST_REGNUM and
6767 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6768 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6769 will be MQ's register number.
6770
6771 2002-07-22 Michael Snyder <msnyder@redhat.com>
6772
6773 * aix-thread.c (ops): Rename to aix_thread_ops.
6774 (base_ops): Rename to base_target.
6775 (ops_attach): Rename to aix_thread_attach.
6776 (ops_detach): Rename to aix_thread_detach.
6777 (ops_resume): Rename to aix_thread_detach.
6778 (ops_wait): Rename to aix_thread_wait.
6779 (ops_kill): Rename to aix_thread_kill.
6780 (init_ops): Rename to init_aix_thread_ops.
6781 (ops_fetch_register): Rename to aix_thread_fetch_register.
6782 (ops_store_register): Rename to aix_thread_store_register.
6783 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6784 (ops_thread_alive): Rename to aix_thread_thread_alive.
6785 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6786 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6787 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6788 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6789 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6790 (store_regs_lib): Rename to store_regs_user_thread.
6791 (store_regs_kern): Rename to store_regs_kernel_thread.
6792
6793 2002-07-22 Michael Snyder <msnyder@redhat.com>
6794
6795 * aix-thread.c (ops_prepare_to_store): Eliminate.
6796 (init_ops): Don't initialize ops.prepare_to_store.
6797 (store_regs_kern): Pre-fetch register buffers from child,
6798 because some registers may not be in the cache. Copy
6799 regs from register cache only if they are cached.
6800 (store_regs_lib): Copy regs from register cache only
6801 if they are cached.
6802 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6803 fill_gprs64): Ditto.
6804
6805 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6806
6807 * aix-thread.c (gdb_assert.h): Include.
6808 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6809 register sizes (from register cache) match size of buffer holding
6810 register data.
6811 (fill_sprs32): Change parameter types to match those in the ptrace()
6812 buffer.
6813 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6814 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6815
6816 2002-07-22 Michael Snyder <msnyder@redhat.com>
6817
6818 * aix-thread.c (supply_sprs64): Cosmetic change.
6819 (supply_sprs32): Cosmetic change.
6820 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6821 (fill_sprs64): Use regcache_collect instead of read_register.
6822 (store_regs_lib): Use regcache_collect instead of
6823 read_register. Use fill_sprs32 instead of fill_sprs64,
6824 if debugging a 32-bit architecture.
6825 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6826 out of the register cache, instead of passing a pointer into
6827 the register cache directly to ptrace. Use regcache_collect
6828 insteaad of read_register.
6829 (ops_prepare_to_store): Use target_read_registers instead
6830 of read_register_bytes.
6831
6832 2002-07-20 Aidan Skinner <aidan@velvet.net>
6833
6834 * MAINTAINERS: Add self under write after approval.
6835
6836 2002-07-20 Aidan Skinner <aidan@velvet.net>
6837
6838 * ada-tasks.c: Change k&r style function definitions to prototyped
6839 form.
6840
6841 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6842
6843 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6844 * x86-64-tdep.c: Include "objfiles.h".
6845 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6846 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6847
6848 2002-07-17 Michal Ludvig <michal@suse.cz>
6849
6850 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6851 (update_context): Initialise cfa variable.
6852
6853 2002-07-17 Michael Snyder <msnyder@redhat.com>
6854
6855 * aix-thread.c: Shorten some long lines.
6856 Bring comments into line with code spec.
6857
6858 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6859
6860 * infrun.c: Re-indent using gdb_indent.sh.
6861
6862 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6863
6864 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6865 Leave the indentation temporarily untouched, to minimize the diffs.
6866
6867 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6868
6869 * stabsread.c: Make os9k sections of the code obsolete,
6870 for real this time.
6871 * stabsread.h: Make os9k sections of the code obsolete.
6872
6873 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6874
6875 * linux-low.c (regsets_store_inferior_registers): Add free()
6876 at the end of a loop to prevent memory leak.
6877 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6878 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6879 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6880 line a comment.
6881 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6882
6883 2002-07-17 Jim Blandy <jimb@redhat.com>
6884
6885 * macrocmd.c (info_macro_command): Remove newline from error
6886 message.
6887
6888 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6889
6890 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6891 (sh_gdbarch_init): Use it for sh-dsp.
6892
6893 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6894
6895 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6896 64-bit DWARF2 format.
6897
6898 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6899
6900 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6901 <sys/proc.h> when not available.
6902
6903 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6904
6905 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6906 * stabsread.c: Make os9k sections of the code obsolete.
6907 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6908 * config/i386/i386os9k.mt: Make file obsolete.
6909 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6910 (COMMON_OBS): Remove os9kread.o
6911 (SFILES): Remove os9kread.c.
6912 (os9kread.o, remote-os9k.o): Make target obsolete.
6913 * remote-os9k.c: Make file obsolete.
6914 * os9kread.c: Make file obsolete.
6915 * Makefile.in
6916
6917 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6918
6919 * NEWS: Mention that the FR30 has been made obsolete.
6920 * fr30-tdep.c: Make file obsolete.
6921 * config/fr30/tm-fr30.h: Ditto.
6922 * config/fr30/fr30.mt: Ditto.
6923 * configure.tgt: Make fr30-*-elf obsolete.
6924 * MAINTAINERS: Make fr30-elf obsolete.
6925
6926 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6927
6928 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6929 found is not inside a section.
6930
6931 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6932
6933 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6934 strerror().
6935 (pdc_realloc): Use xrealloc() instead of realloc().
6936
6937 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6938
6939 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6940 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6941 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6942 macros.
6943
6944 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6945
6946 * aix-thread.c (ptrace_check): Eliminate goto.
6947 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6948 problem.
6949
6950 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6951
6952 * aix-thread.c (gdbcmd.h): Include.
6953 (DEBUG, DBG, DBG2, dbg): Eliminate.
6954 (debug_aix_thread): New static global.
6955 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6956 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6957 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6958 invocations to DBG and DBG2 macros to test against
6959 ``debug_aix_thread'' and call fprintf_unfiltered().
6960 (_initialize_aix_thread): Add new command "set debug aix-thread".
6961
6962 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6963
6964 From Gerhard Tonn <TON@de.ibm.com>:
6965 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6966 instead of supply_register.
6967
6968 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6969
6970 * dwarf2cfi.c: Include "gdb_assert.h".
6971 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6972 non-NULL.
6973 (update_context): Do not use __func__. Add missing ``break''.
6974 (update_context): Do not use __func__.
6975
6976 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6977
6978 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6979 and its setting. Set gdbarch instruction printing functions
6980 directly. For non-rs6000 case use new function
6981 gdb_print_insn_powerpc.
6982 (gdb_print_insn_powerpc): New function.
6983
6984 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6985
6986 * NEWS: Mention that the d30v has been marked obsolete.
6987 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6988 * configure.tgt: Mark d30v-*-* as obsolete.
6989 * d30v-tdep.c: Mark file as obsolete.
6990 * config/d30v/d30v.mt: Ditto.
6991 * config/d30v/tm-d30v.h: Ditto.
6992
6993 2002-07-13 Aidan Skinner <aidan@velvet.net>
6994
6995 * ada-tasks.c (add_task_entry): replace calls to
6996 malloc() with xmalloc
6997 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6998
6999 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7000 ada_finish_decode_line_1, all_sals_for_line
7001 ada_breakpoint_rewrite): replace calls to free() with xfree()
7002
7003 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7004
7005 From Nicholas Duffek (with minor changes by Martin Hunt,
7006 Louis Hamilton, and Kevin Buettner):
7007 * aix-thread.c: New file.
7008
7009 2002-07-12 Petr Sorfa <petrs@caldera.com>
7010
7011 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7012 complaint for invalid attribute class or form.
7013 (read_func_scope): DW_AT_frame_base
7014 better handling of DW_AT_block*.
7015 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7016 better handling of DW_AT_block*.
7017 (read_common_block): DW_AT_location
7018 better handling of DW_AT_block*.
7019 (read_partial_die): DW_AT_location better handling
7020 of DW_AT_block*.
7021 (new_symbol): DW_AT_external better handling of
7022 DW_AT_block*. Proper initialization of variable
7023 "addr".
7024 (attr_form_is_block): New function that returns true
7025 if the attribute's form is of DW_FORM_block*.
7026
7027 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7028
7029 * valops.c (find_method_list): Remove comment about
7030 removed STATIC_MEMFUNCP argument.
7031 (value_find_oload_method_list): Likewise.
7032
7033 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7034
7035 From Nicholas Duffek:
7036 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7037 target_new_objfile_hook.
7038
7039 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7040
7041 From Nicholas Duffek:
7042 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7043 csect.
7044
7045 2002-07-12 Andrew Cagney <cagney@redhat.com>
7046
7047 * MAINTAINERS: Mention --enable-sim-build-warnings.
7048 (m68hc11-elf): Disable sim build warnings.
7049 (m32r-elf): Mark as broken obsolete candidate.
7050 (x86_64-linux-gnu): Mark as buildable with -Werror.
7051 (arm-elf): Change -w to ``,'' which enables warnings but not
7052 -Werror.
7053
7054 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7055
7056 * bcache.h: Update copyright.
7057 (struct bstring, struct bcache): Move definition to "bcache.c".
7058 Replaced by opaque declaration.
7059 (bcache_xfree): Replace free_bcache.
7060 (bcache_xmalloc, bcache_memory_used): Declare.
7061
7062 * bcache.c: Update copyright.
7063 (struct bstring, struct bcache): Moved to here from "bcache.h".
7064 Update comments.
7065 (bcache_xmalloc, bcache_memory_used): New functions.
7066 (bcache_xfree): Replace function free_bcache.
7067
7068 * Makefile.in (objfiles.o): Add $(bcache_h).
7069 (objfiles_h): Remove $(bcache_h).
7070 (symfile.o): Add $(bcache_h).
7071
7072 * symmisc.c: Update copyright.
7073 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7074 (print_objfile_statistics): Use bcache_memory_used.
7075
7076 * symfile.c: Include "bcache.h".
7077 (reread_symbols): Use bcache_xfree.
7078 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7079 (add_psymbol_to_list): Pass psymbol_cache by value.
7080 (add_psymbol_with_dem_name_to_list): Ditto.
7081
7082 * objfiles.h: Update copyright.
7083 (struct bcache): Declare opaque. Do not include "bcache.h".
7084 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7085 bcache'' pointers.
7086 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7087
7088 * objfiles.c: Include "bcache.h". Update copyright.
7089 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7090 macro_cache.
7091 (free_objfile): Use bcache_xfree.
7092
7093 2002-07-11 Grace Sainsbury <graces@redhat.com>
7094
7095 * monitor.c (monitor_fetch_register): Make name a constant.
7096 (monitor_store_register): Same.
7097
7098 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7099
7100 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7101 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7102 (finish_block) For non-function blocks, hash the symbol table. For
7103 function blocks, mark the symbol table as unhashed.
7104 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7105 (msymbol_hash_iw): Likewise.
7106 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7107 value.
7108 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7109 (lookup_minimal_symbol): Likewise for both.
7110 * symtab.h (struct block): Add `hashtable' flag. Comment the
7111 hashtable.
7112 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7113 (ALL_BLOCK_SYMBOLS): Update.
7114 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7115 (struct symbol): Add `hash_next' pointer.
7116 * symtab.c (lookup_block_symbol): Search using the hash table when
7117 possible.
7118 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7119 (search_symbols, find_addr_symbol): Likewise.
7120
7121 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7122 (read_dst_symtab): Likewise.
7123 * jv-lang.c (get_java_class_symtab): Likewise.
7124 * mdebugread.c: Include "gdb_assert.h".
7125 (shrink_block): Assert that the block being modified is not hashed.
7126 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7127 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7128 symbols.
7129 (dump_symtab): Recognize hashed blocks.
7130 * printcmd.c (print_frame_args): Assert that function blocks do not
7131 have hashed symbol tables.
7132 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7133 (fill_in_ada_prototype, debug_print_block): Likewise.
7134 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7135
7136 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7137
7138 * stack.c (print_frame): Use result of frame_address_in_block()
7139 instead of fi->pc when evaluating symbols.
7140 (backtrace_command_1): Ditto.
7141
7142 2002-07-11 Andrew Cagney <cagney@redhat.com>
7143
7144 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7145 Make static.
7146
7147 * arm-tdep.c (arm_register_name): Make return type constant.
7148
7149 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7150
7151 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7152 prototype.
7153 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7154 * s390-tdep.c (s390_fp_regnum): Ditto.
7155 (s390_read_fp): Ditto.
7156 (s390_pop_frame): Ditto.
7157 (_initialize_s390_tdep): Ditto.
7158 * remote.c (get_remote_state): Ditto.
7159 * procfs.c (mappingflags): Ditto.
7160 * memattr.c (_initialize_mem): Ditto.
7161 * mcore-tdep.c (mcore_pop_frame): Ditto.
7162 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7163 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7164 * language.c (set_case_str): Ditto.
7165 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7166 * frv-tdep.c (new_variant): Ditto.
7167 (frv_stopped_data_address): Ditto.
7168 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7169 (context_alloc): Ditto.
7170 (frame_state_alloc): Ditto.
7171 (unwind_tmp_obstack_init): Ditto.
7172 (unwind_tmp_obstack_free): Ditto.
7173 (cfi_read_fp): Ditto.
7174 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7175 (cris_pop_frame): Ditto.
7176 * c-lang.c (scanning_macro_expansion): Ditto.
7177 (finished_macro_expansion): Ditto.
7178 (c_preprocess_and_parse): Ditto.
7179 * gdbarch.sh: Ditto.
7180 * gdbarch.h, gdbarch.c: Regenerate.
7181 * config/mn10200/tm-mn10200.h: Adjust indentation.
7182 * target.c: Adjust indentation.
7183 * symtab.h: Adjust indentation.
7184 * stabsread.h: Adjust indentation.
7185 * remote-es.c: Adjust indentation.
7186 * os9kread.c: Adjust indentation.
7187
7188 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7189
7190 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7191 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7192
7193 2002-07-10 Grace Sainsbury <graces@redhat.com>
7194
7195 * NEWS: Mention m68k, mcore multi-arching.
7196 * MAINTAINERS: Change status of m68k, mcore to reflect
7197 multi-arching.
7198
7199 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7200
7201 * valops.c (find_overload_match): Free oload_syms.
7202
7203 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7204
7205 Define HAVE_SYS_PROC_H if sys/proc.h exists
7206 * configure.in: Add check for sys/proc.h
7207 * config.in: Regenerate.
7208 * configure: Regenerate.
7209
7210 2002-07-09 Grace Sainsbury <graces@redhat.com>
7211
7212 * config/m68k/tm-m68k.h: Remove macros wrapped in
7213 #if !GDB_MULTI_ARCH.
7214
7215 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7216
7217 * config.in, configure: Regenerate.
7218
7219 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7220
7221 * dwarf2cfi.c: Include "gcore.h".
7222 (execute_stack_op): Fix implementation of the
7223 DW_OP_deref and DW_OP_deref_size operators by letting do their
7224 lookup in the target.
7225
7226 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7227
7228 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7229 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7230 tdep->sc_sp_offset.
7231
7232 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7233
7234 Fix PR gdb/595, gdb/602
7235 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7236 Don't call value_cast, just read the vtable pointer; update comments
7237 to match.
7238
7239 2002-07-05 Grace Sainsbury <graces@redhat.com>
7240
7241 * config/mcore/tm-mcore.h: Remove file.
7242 * config/mcore/mcore.mt: Remove definition of TM_FILE
7243 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7244
7245 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7246
7247 * i386bsd-tdep.c: Include "gdb_string.h".
7248
7249 2002-07-04 Grace Sainsbury <graces@redhat.com>
7250
7251 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7252 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7253 mcore-tdep.
7254 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7255 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7256 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7257 (RETVAL_REGNUM): Move macros from tm-mcore.h
7258 (mcore_reg_struct_has_addr): New function.
7259 (mcore_gdbarch_init): Added initializations for the macros removed
7260 from tm-mcore.h.
7261
7262 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7263
7264 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7265 traditonal string branding within the ELF header.
7266
7267 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7268
7269 * symtab.c (remove_params): New function.
7270 (make_symbol_overload_list): Use it instead of cplus_demangle.
7271 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7272
7273 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7274
7275 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7276
7277 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7278 New variables.
7279 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7280 and tdep->sigtramp_end.
7281 * i386obsd-nat.c: New file.
7282 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7283
7284 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7285 Don't call get_current_frame().
7286
7287 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7288
7289 * i386-nat.c (child_post_startup_inferior): New function
7290 calling i386_cleanup_dregs if
7291 I386_USE_GENERIC_WATCHPOINTS is defined.
7292 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7293 conditional to acknowledge that i386-nat.c has its
7294 own child_post_startup_inferior function.
7295
7296 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7297
7298 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7299 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7300 instead of MAX_REGISTER_RAW_SIZE.
7301 (i386_extract_return_value, i386_extract_struct_value_address):
7302 Convert to use regcache.
7303 (i386_gdbarch_init): Set max_register_raw_size and
7304 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7305 Set extract_return_value and extract_struct_value_address instead
7306 of their deprecated variants.
7307
7308 Convert i386 target to generic dummy frames.
7309 * i386-tdep.c: Include "symfile.h".
7310 (i386_frameless_signal_p): Consider a function to be frameless if
7311 the pc points at the first instruction of the function.
7312 (i386_frame_chain): Handle (generic) call dummies.
7313 (i386_frame_saved_pc): Likewise.
7314 (i386_frame_init_saved_regs): Remove code dealing with call
7315 dummies on the stack.
7316 (i386_push_dummy_frame): Removed.
7317 (i386_call_dummy_words): Removed.
7318 (i386_fix_call_dummy): Removed.
7319 (i386_push_return_address): New function.
7320 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7321 parameter, and don't call get_current_frame.
7322 (i386_pop_frame): New function.
7323 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7324 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7325 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7326 call_dummy_length to 0, set call_dummy_words to NULL, set
7327 sizeof_call_dummy_words to 0, set fix_call_dummy to
7328 generic_fix_call_dummy, set pc_in_call_dummy to
7329 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7330 generic_push_dummy_frame, set push_return_address to
7331 i386_push_return_address and set frame_chain_valid to
7332 generic_file_frame_chain_valid.
7333
7334 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7335
7336 * gdbarch.sh (struct regcache): Add opaque declaration.
7337 (EXTRACT_RETURN_VALUE): New architecture method.
7338 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7339 * gdbarch.h, gdbarch.c: Regenerate.
7340 * arch-utils.c (legacy_extract_return_value): New function.
7341 * arch-utils.h (legacy_extract_return_value): Declare.
7342 * values.c (value_being_returned): Re-enable code handling
7343 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7344 deprecated_grub_regcache_for_registers call to block handling
7345 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7346 (EXTRACT_RETURN_VALUE): Do not define.
7347
7348 2002-07-03 Grace Sainsbury <graces@redhat.com>
7349
7350 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7351 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7352 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7353 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7354 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7355 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7356 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7357 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7358 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7359 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7360 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7361 argument so the function fits the prototype in the architecture
7362 vector.
7363 (mcore_pop_frame): Remove argument so the function fits the
7364 prototype. Use get_current_frame instead of the argument.
7365 (mcore_push_arguments): Change type of struct_return so the
7366 function can be used in the architecture vector.
7367 (mcore_store_struct_return): Add.
7368 (mcore_frame_init_saved_regs): Add.
7369 (mcore_gdbarch_init): Add function calls to replace the macros
7370 removed from tm-mcore.h
7371
7372 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7373
7374 * infcmd.c (print_return_value): Remove compatibility code calling
7375 deprecated_grub_regcache_for_registers.
7376
7377 * values.c: Include "regcache.h".
7378 (value_being_returned): Update. Use
7379 deprecated_grub_regcache_for_registers to extract the register
7380 buffer address.
7381 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7382 ``struct regcache''.
7383 * Makefile.in (values.o): Add dependency on $(regcache_h).
7384
7385 * inferior.h (run_stack_dummy): Change type of second parameter to
7386 a ``struct regcache''.
7387 * valops.c (hand_function_call): Change type of retbuf to ``struct
7388 regcache''. Allocate using regcache_xmalloc, clean using
7389 make_cleanup_regcache_xfree.
7390 * infcmd.c (run_stack_dummy): Update. Use
7391 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7392
7393 * regcache.c (do_regcache_xfree): New function.
7394 (make_cleanup_regcache_xfree): New function.
7395 * regcache.h (make_cleanup_regcache_xfree): Declare.
7396
7397 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7398
7399 * event-top.c (command_line_handler): Don't read past
7400 beginning of buffer.
7401
7402 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7403
7404 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7405 struct frame_id.
7406 (varobj_create): Store frame_id for root.
7407 (varobj_gen_name): Use xasprintf.
7408 (varobj_update): Save and restore frame using get_frame_id() and
7409 frame_find_by_id().
7410 (create_child): Use xasprintf.
7411 (new_root_variable): Initialize frame_id.
7412 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7413 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7414 to prevent memory leak.
7415
7416 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7417
7418 * valops.c (hand_function_call): Move declaration of retbuf to
7419 start of function, allocate using malloc, add a cleanup but before
7420 the inf_status cleanup, cleanup the buffer. Rename local variable
7421 old_chain to inf_status_cleanup.
7422
7423 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7424
7425 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7426
7427 * cli/cli-decode.c (cmd_func_p): New function.
7428 (cmd_func): New function.
7429
7430 * command.h: Add cmd_func() and cmd_func_p().
7431
7432 2002-07-03 Grace Sainsbury <graces@redhat.com>
7433
7434 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7435 (REGISTER_SIZE): Remove.
7436 (MAX_REGISTER_RAW_SIZE): Remove.
7437 (REGISTER_VIRTUAL_TYPE): Remove.
7438 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7439 (REGISTER_NAME): Remove.
7440 (USE_GENERIC_DUMMY_FRAMES): Remove.
7441 (CALL_DUMMY): Remove.
7442 (CALL_DUMMY_START_OFFSET): Remove.
7443 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7444 (CALL_DUMMY_LOCATION): Remove.
7445 (FIX_CALL_DUMMY): Remove.
7446 (CALL_DUMMY_ADDRESS): Remove.
7447 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7448 (SAVE_DUMMY_FRAME_TOS): Remove.
7449 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7450 (mcore_register_virtual_type): New function.
7451 (mcore_register_byte): New function.
7452 (mcore_register_size): New function.
7453 (mcore_register_name): New function.
7454 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7455 macros removed from tm-mcore.h.
7456 (mcore_dump_tdep): Add.
7457 (_initialize_mcore_tdep): Add gdbarch_register call.
7458
7459 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7460
7461 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7462 frameless_look_for_prologue, such that we actually call this
7463 function.
7464
7465 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7466
7467 * frame.h (frame_address_in_block): New function.
7468
7469 * blockframe.c (frame_address_in_block): New function extracted
7470 from get_frame_block().
7471 (get_frame_block): Use frame_address_in_block().
7472 (block_innermost_frame): Use frame_address_in_block() to match
7473 the frame pc address against the block boundaries rather than
7474 the frame pc directly. This prevents a failure when a frame pc
7475 is actually a return-address pointing immediately after the end
7476 of the given block.
7477
7478 2002-07-02 Grace Sainsbury <graces@redhat.com>
7479
7480 * MAINTAINERS: Add self under write after approval.
7481
7482 2002-07-02 Grace Sainsbury <graces@redhat.com>
7483
7484 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7485 used in architecture vector. The default is
7486 m68k_local_breakpoint_from_pc.
7487 (m68k_local_breakpoint_from_pc): Add.
7488 (enum): Add register numbers from tm-m68k.h.
7489 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7490 vector.
7491 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7492 GDB_MULTI_ARCH_PARTIAL.
7493 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7494 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7495 m68k-tdep.c.
7496 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7497 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7498 to enum in m68k-tdep.c
7499
7500 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7501
7502 * solib-osf.c (open_map): Compute the list of shared libraries
7503 loaded by the inferior, rather than the list of libraries loaded
7504 by GDB itself. Otherwise, GDB ends up reading the symbols from
7505 the wrong shared libraries...
7506
7507 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7508
7509 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7510 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7511 macros.
7512 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7513 Remove functions.
7514 (FRAMELESS_SIGNAL): Remove function.
7515 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7516 i386_linux_saved_pc_after_call): Removed.
7517 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7518 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7519 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7520
7521 * i386-tdep.c (i386_frameless_signal_p): New function.
7522 (i386_frame_chain): Deal with frameless signals.
7523 (i386_sigtramp_saved_sp): New function.
7524 (i386_frame_saved_pc): Deal with frameless signals.
7525 (i386_saved_pc_after_call): Make sure the correct value is
7526 returned just after entry into a sigtramp.
7527 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7528 i386fbsd4_sc_sp_offset): New variables.
7529 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7530 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7531 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7532 similiar to what we already did for sc_pc_offset.
7533 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7534 tdep->sc_sp_offset.
7535
7536 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7537
7538 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7539
7540 * config/i386/tm-x86-64linux.h: New.
7541 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7542 definitions.
7543 * config/i386/nm-x86-64.h: Rename to ...
7544 * config/i386/nm-x86-64linux.h: ... this one.
7545 * config/i386/x86-64linux.mh: Reflect the above change.
7546
7547 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7548
7549 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7550 with sigcontext_addr. Add sc_sp_offset.
7551 (i386bsd_sigtramp_saved_pc): Remove prototype.
7552 (i386bsd_sicontext_addr): Add prototype.
7553 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7554 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7555 (i386_svr4_sigtramp_saved_pc): Removed.
7556 (i386_svr4_sigcontext_addr): New function.
7557 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7558 Initialize tdep->sigcontext_addr instead. Initialize
7559 tdep->sc_pc_offset and tdep->sc_sp_offset.
7560 (i386_gdbarch_init): Likewise.
7561 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7562 any more.
7563 (i386bsd_sigtramp_saved_pc): Remove function.
7564 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7565 Initialize tdep->sigcontext_addr instead. Initialize
7566 tdep->sc_pc_offset.
7567 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7568 of tdep->sigtramp_saved_pc.
7569 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7570 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7571 instead.
7572
7573 * i386-tdep.c (i386_frameless_function_invocation,
7574 i386_frame_num_args, i386_frame_init_saved_regs,
7575 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7576 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7577 i386_extract_return_value, i386_store_return_value,
7578 i386_extract_struct_value_address, i386_register_virtual_type,
7579 i386_register_convertible, i386_register_convert_to_virtual,
7580 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7581 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7582 static.
7583
7584 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7585
7586 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7587
7588 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7589 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7590 this macro. Include "value.h".
7591
7592 2002-06-30 Aidan Skinner <aidan@velvet.net>
7593
7594 * ada-exp.tab.c: remove as it's a generated file
7595 * ada-lex.c: remove as it's a generated file
7596
7597 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7598
7599 * config/i386/tm-i386.h (struct frame_info, struct
7600 frame_saved_regs, struct value, struct type): Remove forward
7601 declarations.
7602
7603 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7604 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7605 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7606 (FILL_FPXREGSET): Define.
7607
7608 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7609
7610 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7611 i[3456]86-*-netbsd* case.
7612 * config/i386/tm-obsd.h: Removed.
7613 * config/i386/obsd.mt: Removed.
7614 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7615 core-aout.o.
7616 (MH_CFLAGS): Add -DYYDEBUG=0.
7617
7618 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7619 i386nbsd_sc_pc_offset on OpenBSD too.
7620
7621 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7622 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7623 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7624 define.
7625 * i386bsd-tdep.c: Include "arch-utils.h".
7626 (i386bsd_aout_in_solib_call_trampoline): New function.
7627 (i386bsd_init_abi): Set in_solib_call_trampoline to
7628 i386bsd_aout_in_solib_call_trampoline.
7629 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7630 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7631
7632 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7633
7634 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7635 (struct obstack, struct bcache): Add opaque declarations.
7636 * Makefile.in (macrotab_h): Update
7637
7638 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7639
7640 * blockframe.c (generic_find_dummy_frame): Change return type to
7641 ``struct regcache''.
7642 (struct dummy_frame): Replace field ``registers'' with regcache, a
7643 struct regcache object.
7644 (generic_find_dummy_frame): Update.
7645 (generic_push_dummy_frame): Update. Use regcache_xfree,
7646 regcache_xmalloc and regcache_cpy.
7647 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7648 regcache_xfree.
7649 (deprecated_generic_find_dummy_frame): Update.
7650 (generic_read_register_dummy): Update. Use
7651 regcache_read_as_address.
7652 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7653 (generic_get_saved_register): Update. Use regcache_read.
7654
7655 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7656
7657 * Makefile.in (objfiles_h): Add $(bcache_h).
7658 * objfiles.h: Include "bcache.h".
7659
7660 * Makefile.in (symtab_h): Remove $(bcache_h).
7661 * symtab.h: Do not include "bcache.h".
7662
7663 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7664
7665 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7666 generic_func_frame_chain_valid.
7667
7668 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7669
7670 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7671 * config/i386/tm-fbsd.h: Likewise.
7672
7673 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7674
7675 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7676 generic_unwind_get_saved_register.
7677
7678 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7679
7680 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7681 * regcache.c (supply_register): Add missing argument to
7682 register_buffer call.
7683
7684 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7685
7686 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7687 Solaris /bin/grep does not not like it. From Peter Schauer.
7688
7689 2002-06-26 Tom Tromey <tromey@redhat.com>
7690
7691 * command.h (add_setshow_cmd): Declare.
7692 (add_setshow_cmd_full): Declare.
7693 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7694 returns void. Use add_setshow_cmd_full.
7695 (add_setshow_cmd_full): New function.
7696 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7697 (add_setshow_boolean_cmd): Likewise.
7698
7699 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7700
7701 * config/vax/tm-vax.h: Protect from multiple inclusion.
7702 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7703 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7704 * config/vax/tm-vaxbsd.h: ...here. New file.
7705 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7706
7707 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7708
7709 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7710 (BELIEVE_PCC_PROMOTION): Remove.
7711 (AP_REGNUM): Move to...
7712 * config/vax/nm-vax.h: ...here.
7713 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7714 (vax_breakpoint_from_pc): New function.
7715 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7716 and gdbarch_believe_pcc_promotion.
7717
7718 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7719
7720 * Makefile.in (vax_tdep_h): Define.
7721 (vax-tdep.o): Use $(vax_tdep_h).
7722 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7723 (vax_dump_tdep): New function.
7724 (_initialize_vax_tdep): Register vax_dump_tdep.
7725 * vax-tdep.h: Include osabi.h.
7726 (struct gdbarch_tdep): New.
7727
7728 2002-06-26 Andrew Cagney <cagney@redhat.com>
7729
7730 * frame.h (deprecated_generic_find_dummy_frame): Rename
7731 generic_find_dummy_frame.
7732 * blockframe.c (generic_find_dummy_frame): Make static.
7733 (deprecated_generic_find_dummy_frame): New function.
7734 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7735 generic_find_dummy_frame with deprecated_find_dummy_frame.
7736 (sh64_nofp_frame_init_saved_regs): Ditto.
7737 (sh_fp_frame_init_saved_regs): Ditto.
7738 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7739 (s390_frame_chain): Ditto.
7740 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7741
7742 2002-06-26 Grace Sainsbury <graces@redhat.com>
7743
7744 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7745 gdbarch vector are at the top.
7746 (NUM_REGS): Remove.
7747 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7748 (FRAME_ARGS_ADDRESS): Remove.
7749 (FRAME_LOCALS_ADDRESS): Remove.
7750 (FRAME_NUM_ARGS): Remove.
7751 (FRAME_ARGS_SKIP): Remove.
7752 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7753 (m68k_gdbarch_init): Add gdbarch initializations for macros
7754 undefined in tm-m68k.h
7755
7756 2002-06-26 Grace Sainsbury <graces@redhat.com>
7757
7758 * monitor.h: Add the function regname to monitor_ops
7759 structure. This way NUM_REGS does not have to be a constant.
7760 * monitor.c (monitor_fetch_register): Added support for regname
7761 function. The function is called if the array regnames is NULL.
7762 (monitor_store_register): Same.
7763 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7764 regnames array.
7765 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7766 cpu32bug_cmds.regname to point to new function.
7767 * abug-rom.c (abug_regname): Same as above.
7768 (init_abug_cmds): Same.
7769 * dbug-rom.c (dbug_regname): Same as above.
7770 (init_dbug_cmds): Same.
7771 * remote-est.c (est_regname): Same.
7772 (init_est_cmds): Same.
7773 * rom68k-rom.c (rom68k_regname): Same.
7774 (init_rom68k_cmds): Same.
7775
7776 2002-06-25 Tom Tromey <tromey@redhat.com>
7777
7778 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7779
7780 2002-06-25 Andrew Cagney <cagney@redhat.com>
7781
7782 * infrun.c (stop_registers): Change variable's type to ``struct
7783 regcache'''.
7784 (xmalloc_inferior_status): Delete function.
7785 (free_inferior_status): Delete function.
7786 (normal_stop): Use regcache_cpy.
7787 (struct inferior_status): Change type of fields ``stop_registers''
7788 and ``registers'' to ``struct regcache''.
7789 (write_inferior_status_register): Use regcache_write.
7790 (save_inferior_status): Instead of calling
7791 xmalloc_inferior_status, allocate the inf_status buffer directly.
7792 Use regcache_dup_no_passthrough and regcache_dup to save the
7793 buffers.
7794 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7795 Replace the stop_registers regcache instead of overriding it. Use
7796 regcache_xfree. Instead of calling free_inferior_status, xfree
7797 the buffer directly.
7798 (discard_inferior_status): Use regcache_xfree. Instead of calling
7799 free_inferior_status, xfree the buffer directly.
7800 (build_infrun): Use regcache_xmalloc.
7801 (_initialize_infrun): Delete redundant call to build_infrun.
7802
7803 * Makefile.in (infcmd.o): Add $(regcache_h).
7804
7805 * infcmd.c: Include "regcache.h".
7806 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7807 obtain the address of `stop_registers' register buffer.
7808 (print_return_value): Ditto.
7809
7810 * inferior.h (struct regcache): Add opaque declaration.
7811 (stop_registers): Change variable's declared type to ``struct
7812 regcache''.
7813
7814 2002-06-24 Tom Tromey <tromey@redhat.com>
7815
7816 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7817 * target.c (initialize_targets): Fixed typo in
7818 trust-readonly-sections `show' documentation.
7819
7820 * main.c: Marked all strings with _().
7821
7822 2002-06-24 Don Howard <dhoward@redhat.com>
7823
7824 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7825 that means max CORE_ADDR+1.
7826 (lookup_mem_region): Ditto.
7827 (mem_info_command): Ditto.
7828
7829 2002-06-24 Grace Sainsbury <graces@redhat.com>
7830
7831 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7832 (REGISTER_BYTES_OK): Remove.
7833 (REGISTER_BYTES): Remove.
7834 (STORE_STRUCT_RETURN): Remove.
7835 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7836 (STORE_RETURN_VALUE): Remove.
7837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7838 (FRAME_CHAIN): Remove.
7839 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7840 (FRAME_SAVED_PC): Remove.
7841 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7842 (m68k_store_struct_return): Add.
7843 (m68k_deprecated_extract_return_value): Add.
7844 (m68k_deprecated_extract_struct_value_address): Add.
7845 (m68k_store_return_value): Add.
7846 (m68k_frame_chain): Add.
7847 (m68k_frameless_function_invocation): Add.
7848 (m68k_frame_saved_pc): Add.
7849 (m68k_gdbarch_init): added set_gdbarch calls for new
7850 functions and deleted macros.
7851
7852 2002-06-23 Tom Tromey <tromey@redhat.com>
7853
7854 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7855 (ALLDEPFILES): Likewise.
7856 (udiheaders): Removed.
7857 (udip2soc.o): Likewise.
7858 (udi2go32.o): Likewise.
7859 (udr.o): Likewise.
7860 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7861
7862 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7863
7864 * infrun.c (_initialize_infrun): Delete unnecessary call to
7865 build_infrun.
7866
7867 * regcache.h: Update comments describing the regcache_cpy family
7868 of functions.
7869 (regcache_save, regcache_restore): Delete declaration.
7870 (regcache_save_no_passthrough): Delete declaration.
7871 (regcache_restore_no_passthrough): Delete declaration.
7872 * regcache.c (regcache_save): Delete function.
7873 (regcache_save_no_passthrough): Delete function.
7874 (regcache_restore): Delete function.
7875 (regcache_restore_no_passthrough): Delete function.
7876
7877 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7878
7879 * config/m68k/tm-m68k.h: Fix typo.
7880 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7881 (m68k_frame_init_saved_regs): Declare.
7882
7883 2002-06-21 Jim Blandy <jimb@redhat.com>
7884
7885 Remove some vestiges of Harris 88k support.
7886 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7887 register numbering quirk.
7888 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7889 odd symbols occurring in Harris 88k ELF targets.
7890
7891 2002-06-21 Tom Tromey <tromey@redhat.com>
7892
7893 * gdb_locale.h: New file.
7894 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7895 (defs_h): Added gdb_locale.h.
7896 * configure, config.in: Rebuilt.
7897 * configure.in (PACKAGE): Define.
7898 * defs.h: Include gdb_locale.h.
7899 * main.c (captured_main): Call setlocale, bindtextdomain,
7900 textdomain.
7901
7902 2002-06-21 Dave Brolley <brolley@redhat.com>
7903
7904 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7905 * config/frv/frv.mt: New file.
7906 * config/frv/tm-frv.h: New file.
7907 * configure.tgt: Support frv-*-*.
7908 * Makefile.in (frv-tdep.o): New target.
7909 * frv-tdep.c: New file.
7910 * NEWS: Mention frv.
7911
7912 2002-06-21 Dave Brolley <brolley@redhat.com>
7913
7914 * MAINTAINERS: Add self to "Write After Approval" list.
7915
7916 2002-06-21 Grace Sainsbury <graces@redhat.com>
7917
7918 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7919 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7920 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7921 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7922 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7923
7924 * m68k-tdep.c: Include arch-utils.h
7925 (m68k_register_raw_size): Add.
7926 (m68k_register_virtual_size): Add.
7927 (m68k_register_virtual_type): Add.
7928 (m68k_register_name): Add.
7929 (m68k_stack_align): Add.
7930 (m68k_register_byte): Add.
7931 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7932 tm-m68k.h.
7933
7934 2002-06-21 Grace Sainsbury <graces@redhat.com>
7935
7936 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7937 m68k_find_saved_regs.
7938 (m68k_pop_frame): Removed saved_regs structure, and replaced
7939 references to it with frame->saved_regs.
7940 (m68k_gdbarch_init): Added function calls to initialize the
7941 gdbarch structure.
7942 (m68k_fix_call_dummy): Add.
7943 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7944 (CALL_DUMMY): Remove.
7945 (CALL_DUMMY_LENGTH): Remove.
7946 (CALL_DUMMY_START_OFFSET): Remove.
7947 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7948 (FIX_CALL_DUMMY): Remove.
7949 (PUSH_DUMMY_FRAME): Remove.
7950 (POP_FRAME): Remove.
7951
7952 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7953
7954 * parse.c (parse_fprintf): New function used to avoid calls to
7955 fprintf in bison parser generated debug code.
7956 * parser-defs.h: Declaration of new parse_fprintf function.
7957 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7958 Set YYDEBUG to 1 by default.
7959 Set YYFPRINTF as parse_fprintf.
7960
7961 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7962
7963 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7964 encoding anymore.
7965 (pointer_encoding, enum ptr_encoding): New.
7966 (execute_cfa_program): Take care about pointer encoding.
7967 (dwarf2_build_frame_info): Only call parse_frame_info for
7968 .debug_frame and .eh_frame.
7969 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7970 fixed augmentation handling, added relative addressing,
7971 ignore duplicate FDEs. Added comments.
7972 * dwarf2cfi.c: Reindented.
7973
7974 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7975
7976 * event-top.c (command_handler): Don't use space_at_cmd_start
7977 unless there is sbrk() on the host. Assign time and space data
7978 to union fields of the appropriate length.
7979
7980 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7981
7982 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7983 x86_64_register_name. Return type changed to 'const char *'.
7984 (x86_64_register_name2nr): Rename to x86_64_register_number.
7985 (x86_64_gdbarch_init): Update to reflect the change.
7986 * x86-64-tdep.h: Ditto.
7987 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7988 (supply_fpregset): Ditto.
7989
7990 2002-06-19 Andrew Cagney <cagney@redhat.com>
7991
7992 * regcache.h: Update copyright.
7993 (struct regcache, struct gdbarch): Add opaque declarations.
7994 (current_regcache): Declare global variable.
7995 (regcache_read, regcache_write): Add gdbarch parameter.
7996 (regcache_save, regcache_save_no_passthrough)
7997 (regcache_restore, regcache_restore_no_passthrough)
7998 (regcache_dup, regcache_dup_no_passthrough)
7999 (regcache_cpy, regcache_cpy_no_passthrough)
8000 (deprecated_grub_regcache_for_registers)
8001 (deprecated_grub_regcache_for_register_valid)
8002 (regcache_valid_p): Add function declarations.
8003
8004 * regcache.c: Update copyright.
8005 (regcache_descr_handle): New global variable.
8006 (struct regcache_descr): Define.
8007 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8008 (regcache_descr, xfree_regcache_descr): New functions.
8009 (struct regcache): Define.
8010 (regcache_xmalloc, regcache_xfree): New functions.
8011 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8012 (regcache_dup, regcache_dup_no_passthrough): New functions.
8013 (regcache_valid_p, regcache_read_as_address): New functions.
8014 (deprecated_grub_regcache_for_registers): New function.
8015 (deprecated_grub_regcache_for_register_valid): New function.
8016 (current_regcache): New global variable.
8017 (register_buffer): Add regcache parameter. Update calls.
8018 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8019 (read_register_gen, write_register_gen): Update register_buffer
8020 call. Test for legacy_p instead of gdbarch_register_read_p or
8021 gdbarch_register_write_p.
8022 (regcache_collect): Update register_buffer call.
8023 (build_regcache): Rewrite. Use deprecated grub functions.
8024 (regcache_save, regcache_save_no_passthrough): New functions.
8025 (regcache_restore, regcache_restore_no_passthrough): New
8026 functions.
8027 (_initialize_regcache): Create the regcache_data_handle. Swap
8028 current_regcache global variable.
8029
8030 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8031 parameter to regcache_read and regcache_write calls.
8032 (sh4_register_read): Ditto.
8033 (sh64_pseudo_register_read): Ditto.
8034 (sh64_register_read): Ditto.
8035 (sh_pseudo_register_write): Ditto.
8036 (sh4_register_write): Ditto.
8037 (sh64_pseudo_register_write): Ditto.
8038 (sh64_register_write): Ditto.
8039
8040 * defs.h (XCALLOC): Define.
8041
8042 2002-06-19 Grace Sainsbury <graces@redhat.com>
8043
8044 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8045 * m68k-tdep.c (m68k_gdbarch_init): Added.
8046 (m68k_dump_tdep): Added.
8047
8048 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * ada-lang.c (fill_in_ada_prototype): Update comment.
8051
8052 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8053
8054 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8055 MIPS_ABI_LAST.
8056 (mips_abi_string, mips_abi_strings): New.
8057 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8058 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8059 tdep->mips_abi_string. Honor mips_abi_string. Default to
8060 O32 if no ABI is found.
8061 (mips_dump_tdep): Use mips_abi_strings.
8062 (mips_abi_update): New function.
8063 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8064 ``set mips abi'' and ``show mips abi''. Check the size of
8065 mips_abi_strings.
8066
8067 2002-06-19 Andrew Cagney <cagney@redhat.com>
8068
8069 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8070 constant.
8071
8072 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8073
8074 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8075 current frame using only the first stack size adjustment. All
8076 subsequent size adjustments are not considered to be part of
8077 the "static" part of the current frame.
8078 Compute the address of the saved registers relative to the
8079 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8080 in use in this frame.
8081
8082 2002-06-18 Don Howard <dhoward@redhat.com>
8083
8084 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8085 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8086 suggesting this solution.
8087
8088 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8089
8090 * config/romp/xm-rtbsd.h: Delete file.
8091 * config/romp/rtbsd.mh: Delete file.
8092
8093 2002-06-18 Keith Seitz <keiths@redhat.com>
8094
8095 * breakpoint.c (condition_command): Post breakpoint_modify
8096 when a condition is added to an existing breakpoint.
8097 (commands_command): Likewise for commands.
8098 (set_ignore_count): Likewise for ignore counts.
8099 If no tty, do not simply return, still need to send event
8100 notification.
8101 (ignore_command): Only print a newline if the command came
8102 from a tty.
8103 Don't call breakpoints_changed, since this is now properly
8104 handled by set_ignore_count.
8105
8106 2002-06-18 Andrew Cagney <cagney@redhat.com>
8107
8108 * MAINTAINERS: Note that cris-elf target can be compiled with
8109 -Werror.
8110 * cris-tdep.c (cris_register_name): Make return type constant.
8111 (cris_breakpoint_from_pc): Ditto.
8112
8113 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8114
8115 * frame.h (struct frame_info): Change type of context to
8116 'struct context'.
8117
8118 2002-06-17 Andrew Cagney <cagney@redhat.com>
8119
8120 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8121 pointer.
8122 * gdbarch.h, gdbarch.c: Regenerate.
8123 * config/mips/tm-mips.h (mips_register_name): Update.
8124 * i386-tdep.h (i386_register_name): Update.
8125 * mips-tdep.c (mips_register_name): Update
8126 * alpha-tdep.c (alpha_register_name): Update.
8127 * arch-utils.c (legacy_register_name): Update.
8128 * arch-utils.h (legacy_register_name): Update.
8129 * avr-tdep.c (avr_register_name): Update.
8130 * ia64-tdep.c (ia64_register_name): Update.
8131 * i386-tdep.c (i386_register_name): Update.
8132 * sparc-tdep.c (sparc32_register_name): Update.
8133 (sparc64_register_name): Update.
8134 (sparclite_register_name): Update.
8135 (sparclet_register_name): Update.
8136 * sh-tdep.c (sh_generic_register_name): Update.
8137 (sh_sh_register_name): Update.
8138 (sh_sh3_register_name): Update.
8139 (sh_sh3e_register_name): Update.
8140 (sh_sh_dsp_register_name): Update.
8141 (sh_sh3_dsp_register_name): Update.
8142 (sh_sh4_register_name): Update.
8143 (sh_sh64_register_name): Update.
8144 * s390-tdep.c (s390_register_name): Update.
8145 * rs6000-tdep.c (rs6000_register_name): Update.
8146 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8147 (ns32k_register_name_32382): Update.
8148 * d10v-tdep.c (d10v_ts2_register_name): Update.
8149 (d10v_ts3_register_name): Update.
8150 * xstormy16-tdep.c (xstormy16_register_name): Update.
8151 * vax-tdep.c (vax_register_name): Update.
8152 * v850-tdep.c (v850_register_name): Update.
8153 * m68hc11-tdep.c (m68hc11_register_name): Update.
8154 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8155 (am33_register_name): Update.
8156
8157 2002-06-17 Grace Sainsbury <graces@redhat.com>
8158
8159 * m68k-tdep.c: Reindented.
8160
8161 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8162
8163 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8164 list of predefined types.
8165
8166 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8167
8168 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8169 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8170 REGISTER_CONVERT_TO_RAW): Remove defines.
8171 (i386_register_virtual_type, i386_register_convertible,
8172 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8173 Remove prototypes.
8174 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8175 macros mentioned above.
8176
8177 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8178 (i386lynx_saved_pc_after_call): Remove prototype.
8179 * i386ly-tdep.c: Include "i386-tdep.h".
8180 (i386lynx_saved_pc_after_call): Make static. Use
8181 read_memory_nobpt instead of read_memory. Use
8182 read_memory_unsigned_integer instead of read_memory_integer.
8183 (i386lynx_init_abi): New function.
8184 (i386lynx_coff_osabi_sniffer): New function.
8185 (_initialize_i386bsd_tdep): New function.
8186
8187 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8188 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8189 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8190 (i386_fix_call_dummy): Remove prototype.
8191 * i386-tdep.c (i386_call_dummy_words): New variable.
8192 (i386_gdbarch_init): Adjust for removal of the
8193 macros mentioned above.
8194
8195 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8196
8197 * command.h (add_setshow_auto_boolean_cmd): Replace
8198 add_set_auto_boolean_cmd.
8199 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8200 add_set_auto_boolean_cmd.
8201 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8202 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8203 mask-address'' command.
8204 (show_mask_address): Add cmd parameter.
8205 * remote.c (add_packet_config_cmd): Update. Change type of
8206 set_func and show_func to cmd_sfunc_ftype.
8207 (_initialize_remote): Update `set remote Z-packet'
8208 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8209 (show_remote_protocol_e_packet_cmd): Ditto.
8210 (show_remote_protocol_E_packet_cmd): Ditto.
8211 (show_remote_protocol_P_packet_cmd): Ditto.
8212 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8213 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8214 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8215 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8216 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8217 (show_remote_protocol_Z_packet_cmd): Ditto.
8218 (show_remote_protocol_binary_download_cmd): Ditto.
8219 (show_remote_cmd): Pass NULL to all of above.
8220
8221 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8222
8223 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8224 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8225 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8226 POP_FRAME): Remove defines.
8227 (i386_push_arguments, i386_store_struct_return,
8228 i386_extract_return_value, i386_store_return_value,
8229 i386_extract_struct_value_address, i386_push_dummy_frame,
8230 i386_pop_frame): Renove prototypes.
8231 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8232 macros mentioned above.
8233
8234 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8235
8236 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8237 add_set_boolean_cmd.
8238 (add_setshow_cmd): New function.
8239 * command.h (add_setshow_boolean_cmd): Replace
8240 add_set_boolean_cmd.
8241 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8242 and ``set rdiromatzero''.
8243 * maint.c (_initialize_maint_cmds): Update commented out code.
8244 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8245 * target.c (initialize_targets): Update `set
8246 trust-readonly-sections'.
8247 * remote.c (_initialize_remote): Update `set remotebreak'.
8248
8249 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8250
8251 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8252 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8253 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8254 fit into multi-arch framework.
8255 (i386_breakpoint_from_pc): New function.
8256 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8257 above.
8258
8259 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8260 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8261 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8262 (i386_frameless_function_invocation, i386_frame_num_args,
8263 i386_frame_init_saved_regs): Remove prototypes.
8264 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8265 macros mentioned above.
8266
8267 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8268
8269 * cli/cli-decode.c (set_cmd_cfunc): Update.
8270 (set_cmd_sfunc): Update.
8271 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8272 (set_cmd_sfunc, set_cmd_cfunc): Update.
8273 * cli/cli-decode.h: Update.
8274
8275 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8276
8277 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8278 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8279
8280 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8281
8282 * defs.h (auto_boolean): Declare enum.
8283 * command.h (cmd_auto_boolean): Delete enum.
8284 * mips-tdep.c (mask_address_var): Update.
8285 (mips_mask_address_p): Update.
8286 (show_mask_address): Update.
8287 * remote.c (struct packet_config): Update.
8288 (update_packet_config): Update.
8289 (show_packet_config_cmd): Update.
8290 (packet_ok): Update.
8291 (add_packet_config_cmd): Update.
8292 (_initialize_remote):
8293 * command.h: Update.
8294 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8295 (do_setshow_command): Update.
8296 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8297 * cli/cli-decode.h: Update.
8298
8299 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8300
8301 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8302 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8303 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8304 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8305 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8306 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8307
8308 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8309 list of DJGPP COFF targets.
8310
8311 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8312 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8313 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8314 (FP0_REGNUM): Remove define.
8315 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8316 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8317 (i386_register_virtual_size): Remove protoype.
8318 * i386-tdep.c (i386_register_virtual_size): Removed.
8319 (i386_extract_return_value, i386_store_return_value): Use
8320 FP0_REGNUM instead of NUM_FREGS to determine whether the
8321 floating-point registers are available.
8322 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8323 Adjust for removal of macros mentioned above.
8324
8325 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8326
8327 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8328 comments.
8329 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8330 Remove prototypes.
8331 (supply_gregset, fill_gregset): Remove use of register keyword and
8332 remove declaration for regmap. Use I386_NUM_GREGS instead of
8333 NUM_REGS and NUM_FREGS.
8334 (FPREGSET_FSAVE_OFFSET): Remove.
8335 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8336 NUM_FREGS to determine whether the floating-point registers are
8337 available.
8338
8339 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8340 gnu_store_registers): Replace usage of NUM_GREGS with
8341 I386_NUM_GREGS.
8342
8343 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8344 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8345 usage of NUM_GREGS with I386_NUM_GREGS.
8346
8347 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8348
8349 * i386bsd-nat.c: Include "i386-tdep.h".
8350 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8351 I386_NUM_GREGS.
8352
8353 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8354 and associated comment. They no longer make any sense, since we
8355 don't use this file anymore on Linux.
8356
8357 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8358 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8359 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8360 elements in these arrays.
8361 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8362 MAX_NUM_REGS.
8363
8364 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8365
8366 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8367 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8368
8369 2002-06-14 Andrew Cagney <cagney@redhat.com>
8370
8371 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8372 EXTRACT_RETURN_VALUE.
8373 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8374 EXTRACT_STRUCT_VALUE_ADDRESS.
8375 * gdbarch.h, gdbarch.c: Regenerate.
8376
8377 * values.c (value_being_returned): Handle
8378 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8379 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8380
8381 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8382 * arm-tdep.c (arm_gdbarch_init): Update.
8383 * avr-tdep.c (avr_gdbarch_init): Update.
8384 * cris-tdep.c (cris_gdbarch_init): Update.
8385 * d10v-tdep.c (d10v_gdbarch_init): Update.
8386 * ia64-tdep.c (ia64_gdbarch_init): Update.
8387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8388 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8389 * s390-tdep.c (s390_gdbarch_init): Update.
8390 * sh-tdep.c (sh_gdbarch_init): Update.
8391 * s390-tdep.c (s390_gdbarch_init): Update.
8392 * sparc-tdep.c (sparc_gdbarch_init): Update.
8393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8394 * v850-tdep.c (v850_gdbarch_init): Update.
8395 * vax-tdep.c (vax_gdbarch_init): Update.
8396 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8398
8399 * config/arc/tm-arc.h: Update.
8400 * config/d30v/tm-d30v.h: Update.
8401 * config/fr30/tm-fr30.h: Update.
8402 * config/h8300/tm-h8300.h: Update.
8403 * config/h8500/tm-h8500.h: Update.
8404 * config/i386/tm-i386.h: Update.
8405 * config/i386/tm-ptx.h: Update.
8406 * config/i386/tm-symmetry.h: Update.
8407 * config/i960/tm-i960.h: Update.
8408 * config/m32r/tm-m32r.h: Update.
8409 * config/m68k/tm-delta68.h: Update.
8410 * config/m68k/tm-linux.h: Update.
8411 * config/m68k/tm-m68k.h: Update.
8412 * config/m88k/tm-m88k.h: Update.
8413 * config/mcore/tm-mcore.h: Update.
8414 * config/mips/tm-mips.h: Update.
8415 * config/mn10200/tm-mn10200.h: Update.
8416 * config/pa/tm-hppa.h: Update.
8417 * config/pa/tm-hppa64.h: Update.
8418 * config/sparc/tm-sp64.h: Update.
8419 * config/sparc/tm-sparc.h: Update.
8420 * config/sparc/tm-sparclet.h: Update.
8421 * config/z8k/tm-z8k.h: Update.
8422
8423 2002-06-14 Andrew Cagney <cagney@redhat.com>
8424
8425 * Makefile.in (i386_linux_tdep_h): Define.
8426 (i386_tdep_h, i387_tdep_h): Define.
8427 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8428 $(i386_tdep_h) and $(i387_tdep_h).
8429 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8430
8431 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8432
8433 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8434 Already covered by the default.
8435
8436 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8437 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8438 (i386_gdbarch_init): Initialize long_double_format and long_double
8439 bit.
8440
8441 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8442 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8443 Move these to ...
8444 * config/i386/i386sol2.mh: ... here.
8445 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8446 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8447 (SIGCONTEXT_PC_OFFSET): Remove define.
8448 (IN_SIGTRAMP): Remove define.
8449 * i386-sol2-tdep.c: New file.
8450
8451 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8452 * config/i386/tm-i386nw.h: Removed.
8453
8454 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8455 USE_STRUCT_CONVENTION): Remove defines.
8456 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8457 (get_longjmp_target): Remove prototype.
8458 (IN_SIGTRAMP): Remove define.
8459 (i386bsd_in_sigtramp): Remove prototype.
8460 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8461 function. Update comment accordingly
8462 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8463 (FRAME_SAVED_PC): Remove define.
8464 (i386bsd_frame_saved_pc): Remove prototype.
8465 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8466 GET_LONGJMP_TARGET): Remove defines.
8467 (get_longjmp_target): Remove prototype.
8468 (IN_SIGTRAMP): Remove define.
8469 (i386bsd_in_sigtramp): Remove prototype.
8470 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8471 function. Update comment accordingly
8472 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8473 (FRAME_SAVED_PC): Remove define.
8474 (i386bsd_frame_saved_pc): Remove prototype.
8475 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8476 Remove prototype.
8477 (USE_STRUCT_CONVENTION): Remove prototype.
8478 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8479 declaration.
8480 (_initialize_i386bsd_nat): Revise logic to determine some
8481 constants at compile time when compiling a native GDB. Warn if
8482 things don't match up with what we expect.
8483 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8484 Remove variables.
8485 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8486 to use date stored in `struct gdbarch_tdep'.
8487 (i386bsd_sigcontext_offset): Remove varaible.
8488 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8489 stored in `struct gdbarch_tdep'.
8490 (i386bsd_frame_saved_pc): Make static.
8491 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8492 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8493 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8494 i386fbsd4_sc_pc_offset): New variables.
8495 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8496 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8497 functions.
8498 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8499 functions.
8500 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8501 Modify the value of i386fbsd_sigtramp_start and
8502 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8503 i386fbsd_sigtramp_end.
8504 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8505 function.
8506
8507 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8508 define to i386-linux-tdep.h.
8509 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8510 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8511 defines.
8512 (i386_linux_register_name, i386_linux_register_byte,
8513 i386_linux_register_raw_size): Remove prototypes.
8514 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8515 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8516 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8517 TARGET_WRITE_PC): Remove defines.
8518 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8519 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8520 i386_linux_write_pc): Remove prototypes.
8521 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8522 (get_longjmp_target): Remove prototype.
8523 * i386-linux-tdep.h: New file.
8524 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8525 * i386-linux-tdep.c: Include "i386-tdep.h" and
8526 "i386-linux-tdep.h".
8527 (i386_linux_register_name, i386_linux_register_byte,
8528 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8529 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8530 Make static.
8531 (i386_linux_init_abi): New function.
8532 (_initialize_i386_linux_tdep): New function.
8533
8534 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8535 (i386_saved_pc_after_call): Remove prototype.
8536 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8537 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8538 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8539 (i386_register_name, i386_stab_reg_to_regnum,
8540 i386_dwarf_reg_to_regnum): Remove prototypes.
8541 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8542 SIZEOF_SSE_REGS): Remove defines.
8543 (REGISTER_BYTES): Remove define.
8544 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8545 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8546 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8547 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8548 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8549 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8550 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8551 (get_longjmp_target): Remove prototype.
8552 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8553 (sigtramp_saved_pc): Remove define.
8554 (i386v4_sigtramp_saved_pc): Remove prototype.
8555 * config/i386/tm-go32.h (FRAME_CHAIN,
8556 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8557 (i386go32_frame_saved_pc): Remove prototype.
8558 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8559 (get_longjmp_target): Remove prototype.
8560 * i386-tdep.h: Include "osabi.h".
8561 (enum i386_abi): Removed.
8562 (enum struct_return): New enum.
8563 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8564 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8565 sc_pc_offset members.
8566 (i386_gdbarch_register_os_abi): Remove prototype.
8567 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8568 I386_SSE_NUM_REGS): New defines.
8569 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8570 I386_SSE_SIZEOF_REGS): New defines.
8571 (i386_register_name, i386_register_byte, i386_register_raw_size):
8572 New prototypes.
8573 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8574 (i386bsd_sigtramp_saved_pc): New prototype.
8575 * i386-tdep.c: Don't include "elf-bfd.h".
8576 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8577 i386_frame_chain, i386_saved_pc_after_call): Make static.
8578 (i386_frame_saved_pc): Rewrite to call architecture dependent
8579 function to deal with signal handlers. Make static.
8580 (i386go32_frame_saved_pc): Removed.
8581 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8582 Removed.
8583 (i386_get_longjmp_target): New function.
8584 (default_struct_convention, pcc_struct_convention,
8585 reg_struct_convention, valid_conventions, struct_convention): New
8586 variables.
8587 (i386_use_struct_convention): New function.
8588 (i386v4_sigtramp_saved_pc): Renamed to
8589 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8590 (i386_pc_in_sigtramp): New function.
8591 (i386_abi_names): Removed.
8592 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8593 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8594 Removed.
8595 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8596 i386_gdbarch_register_os_abi): Removed.
8597 (struct i386_abi_handler): Removed.
8598 (i386_abi_handler_list): Removed.
8599 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8600 functions.
8601 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8602 i386_nw_init_abi): New functions.
8603 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8604 Use set_gdbarch_xxx() calls instead of relying on macros for a
8605 number of calls.
8606 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8607 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8608 Register the various architecture variants defined in this file.
8609
8610 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8611
8612 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8613 (struct main_type): Remove arg_types member. Update comments for
8614 struct field.
8615 (TYPE_ARG_TYPES): Remove.
8616 (TYPE_FN_FIELD_ARGS): Update.
8617 (smash_to_method_type): Update prototype.
8618
8619 * c-typeprint.c (cp_type_print_method_args): Take method type
8620 instead of argument list. Use new argument layout. Simplify.
8621 (c_type_print_args): Use new argument layout. Simplify.
8622 (c_type_print_base): Update call to cp_type_print_method_args.
8623 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8624 argument; use die->type instead. Update call to
8625 smash_to_method_type.
8626 (read_structure_scope): Update call to dwarf2_add_member_fn.
8627 * gdbtypes.c (allocate_stub_method): Update comment.
8628 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8629 Use new argument layout.
8630 (check_stub_method): Use new argument layout. Don't count
8631 void as an argument.
8632 (print_arg_types): Update comments. Use new argument layout.
8633 (recursive_dump_type): Don't print arg_types member.
8634 * hpread.c (hpread_read_struct_type): Use new argument layout.
8635 (fixup_class_method_type): Likewise.
8636 (hpread_type_lookup): Likewise.
8637 * stabsread.c (read_type): Update calls to read_args and
8638 smash_to_method_type.
8639 (read_args): Use new argument layout. Simplify.
8640 * valops.c (typecmp): Use new argument layout. Update parameters
8641 and comments. Simplify.
8642 (hand_function_call): Use new argument layout.
8643 (search_struct_method): Update call to typecmp.
8644 (find_overload_match): Use new argument layout.
8645
8646 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8647
8648 * NEWS: Mention multithreaded debug support for gdbserver.
8649
8650 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8651
8652 * MAINTAINERS: Mention NEWS.
8653
8654 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8655
8656 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8657 (struct mips_objfile_private, compare_pdr_entries): New.
8658 (non_heuristic_proc_desc): Read the ".pdr" section if it
8659 is present.
8660
8661 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8662
8663 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8664 (arm_debug): New static variable.
8665 (_initialize_arm_tdep): Add ``set debug arm'' command.
8666
8667 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8668
8669 * Makefile.in (sim_arm_h): Define.
8670 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8671 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8672 (arm_register_sim_regno): New function, map an internal REGNUM
8673 onto a simulator register number.
8674 (arm_gdbarch_init): Set register_sim_regno.
8675
8676 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8677
8678 * MAINTAINERS: Add self.
8679
8680 2002-06-11 Jim Blandy <jimb@redhat.com>
8681
8682 * source.c (source_info): Mention whether the symtab has
8683 information about preprocessor macros.
8684
8685 Call the command `info macro', not `show macro'.
8686 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8687 Fix error message.
8688 (_initialize_macrocmd): Register `info_macro_command' in
8689 `infolist', not `showlist'.
8690
8691 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8692
8693 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8694 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8695 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8696 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8697 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8698 unconditionally.
8699 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8700 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8701 (_initialize_mips_tdep): Remove dead code.
8702 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8703 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8704 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8705 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8706 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8707 MIPS_LAST_FP_ARG_REGNUM): Remove.
8708
8709 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8710
8711 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8712 (unwind_tmp_obstack_free, parse_frame_info)
8713 (update_context, cfi_read_fp, cfi_write_fp)
8714 (cfi_frame_chain, cfi_init_extra_frame_info)
8715 (cfi_virtual_frame_pointer): Use the above function.
8716 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8717
8718 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8719
8720 * v850-tdep.c (v850_type_is_scalar): New function.
8721 (v850_use_struct_convention): Match current gcc implementation
8722 as close as possible.
8723 (v850_push_arguments): Fix stack_offset handling. Don't write
8724 struct_addr into register. This is done by v850_store_struct_return.
8725 (v850_extract_return_value): Care for structs.
8726 (v850_store_return_value): Ditto.
8727 (v850_store_struct_return): Actually write address.
8728
8729 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8730
8731 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8732 without debug information too.
8733
8734 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8735
8736 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8737 Make multi-arch pure.
8738 * gdbarch.h, gdbarch.c: Re-generate.
8739 * arm-tdep.c (arm_print_float_info): Update.
8740 * arch-utils.h (default_print_float_info): Update.
8741 * arch-utils.c (default_print_float_info): Update.
8742 * infcmd.c (float_info): Update call.
8743
8744 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8745
8746 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8747 the front of the initialize list.
8748
8749 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8750
8751 * infrun.c (struct inferior_status): Replace fields
8752 selected_frame_address and selected_level with field
8753 selected_frame_id.
8754 (save_inferior_status): Update. Use get_frame_id.
8755 (struct restore_selected_frame_args): Delete.
8756 (restore_selected_frame): Update. Use frame_find_by_id.
8757 (restore_inferior_status): Update.
8758
8759 * breakpoint.h (struct breakpoint): Change type of
8760 watchpoint_frame to frame_id.
8761 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8762 call to get_current_frame.
8763 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8764 get_current_frame.
8765 (watchpoint_check): Use frame_find_by_id.
8766
8767 * frame.h (record_selected_frame): Delete declaration.
8768 * stack.c (record_selected_frame): Delete function.
8769
8770 * frame.h (struct frame_id): Define.
8771 (get_frame_id): Declare.
8772 (frame_find_by_id): Declare.
8773 * frame.c (frame_find_by_id): New function.
8774 (get_frame_id): New function.
8775
8776 2002-06-10 Andrey Volkov <avolkov@transas.com>
8777
8778 * ser-e7kpc.c: Fix duplicated define and call of
8779 _initialize_ser_e7000pc
8780
8781 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8782
8783 * signals/signals.c (target_signal_from_host): Fix #ifdef
8784 SIGRTMIN case.
8785 (do_target_signal_to_host): Likewise.
8786
8787 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * mips-tdep.c (mips_find_abi_section): New function.
8790 (mips_gdbarch_init): Call it.
8791
8792 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8793
8794 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8795 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8796 after Andrew's 2002-06-08 gdbarch change.
8797
8798 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8799
8800 * i386-linux-nat.c (suppy_gregset): Don't supply
8801 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8802 register cache.
8803 (fill_gregset): Don't fetch it under the same circumstances.
8804
8805 2002-06-09 Andrew Cagney <cagney@redhat.com>
8806
8807 * Makefile.in (callback_h): Define.
8808 (remote_sim_h): Update path to remote-sim.h.
8809 (remote-rdp.o): Add $(callback_h).
8810 (remote-sim.o): Use $(callback_h).
8811 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8812 * remote-rdp.c: Include "gdb/callback.h".
8813
8814 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8815
8816 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8817 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8818
8819 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8820
8821 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8822 * rdi-share/serpardr.c: Ditto.
8823 * rdi-share/unixcomm.c: Ditto.
8824 * rdi-share/serdrv.c: Ditto.
8825 * rdi-share/hostchan.h: Ditto.
8826 * rdi-share/hostchan.c: Ditto.
8827 * rdi-share/host.h: Ditto.
8828 * rdi-share/devsw.c: Ditto.
8829
8830 * objfiles.h: Change type of obj_private to void pointer.
8831 * pa64solib.c: Update copyright. Don't include "assert.h", use
8832 strcmp instead of STREQ, use LONGEST, do not use PTR
8833 * somsolib.c: Ditto.
8834
8835 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8836 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8837 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8838
8839 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8840
8841 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8842 (default_get_saved_register): Delete function.
8843 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8844 generic_unwind_get_saved_register.
8845 * gdbarch.h, gdbarch.c: Re-generate.
8846
8847 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8848
8849 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8850 generic_func_frame_chain_valid.
8851 * gdbarch.h, gdbarch.c: Re-generate.
8852 * blockframe.c (generic_func_frame_chain_valid): Only check
8853 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8854 passing FP to PC_IN_CALL_DUMMY.
8855 Fix PR gdb/360.
8856
8857 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8858
8859 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8860 (register_gdbarch_data): Initialize init_p.
8861 (gdbarch_data): Initialize data pointer using the init function.
8862 (init_gdbarch_data): Delete function.
8863 (gdbarch_update_p): Update.
8864 (initialize_non_multiarch): Update.
8865 (struct gdbarch): Add field initialized_p.
8866 * gdbarch.h, gdbarch.c: Re-generate.
8867
8868 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8869
8870 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8871 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8872 better do the things actually here.
8873 * x86-64-tdep.c (x86_64_register_name2nr): New.
8874 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8875 (x86_64_gdbarch_init): Respect the above change.
8876 * x86-64-tdep.h (x86_64_register_name2nr)
8877 (x86_64_register_nr2name): Add prototypes.
8878 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8879
8880 2002-06-06 Michael Snyder <msnyder@redhat.com>
8881
8882 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8883 Delete extra braces and re-indent.
8884 (d10v_store_return_value): Char return values
8885 must be shifted over by one byte in R0.
8886 (d10v_extract_return_value): Delete extra braces, re-indent.
8887
8888 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8889
8890 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8891 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8892 (d10v_integer_to_address): Rewrite.
8893 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8894 the d10v specific functions which take care of converting to the
8895 correct space.
8896
8897 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8898
8899 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8900 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8901
8902 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8903
8904 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8905 includes.
8906 * config/tm-linux.h: Ditto.
8907 * config/alpha/tm-alphalinux.h: Ditto.
8908 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8909 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8910 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8911 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8912 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8913 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8914 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8915 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8916 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8917 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8918 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8919 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8920 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8921 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8922 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8923 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8924 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8925 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8926 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8927 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8928 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8929 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8930 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8931 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8932 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8933 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8934 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8935 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8936 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8937 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8938 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8939 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8940 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8941 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8942 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8943 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8944 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8945
8946 2002-05-04 Aidan Skinner <aidan@velvet.net>
8947
8948 * ada-exp.tab.c: New file
8949 * ada-exp.y: New file
8950 * ada-lang.c: New file
8951 * ada-lang.h: New file
8952 * ada-lex.c: New file
8953 * ada-lex.l: New file
8954 * ada-tasks.c: New file
8955 * ada-typeprint.c: New file
8956 * ada-valprint.c: New file
8957
8958 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8959
8960 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8961 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8962
8963 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8964
8965 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8966 insetead of ppc-linux-tdep.o.
8967 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8968 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8969
8970 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8971
8972 2002-05-07 Christian Groessler <chris@groessler.org>
8973 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8974 bit register contents for little endian hosts.
8975
8976 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8977
8978 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8979 any maintainer.
8980
8981 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8982
8983 * gdbarch.h: Regenerate.
8984
8985 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8986
8987 * MAINTAINERS: Add everyone to write-after-approval list.
8988
8989 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8990
8991 * stack.c (frame_info): Use frame_register_unwind instead of
8992 saved_regs. Mention when the SP is on the stack or in a register.
8993
8994 * frame.h (frame_register_unwind_ftype): Define. Document.
8995 (struct frame_info): Add field register_unwind and
8996 register_unwind_cache.
8997 (frame_register_unwind): Declare.
8998 (generic_unwind_get_saved_register): Declare.
8999
9000 * frame.c (frame_register_unwind): New function.
9001 (generic_unwind_get_saved_register): New function.
9002
9003 * blockframe.c (generic_call_dummy_register_unwind): New function.
9004 (frame_saved_regs_register_unwind): New function.
9005 (set_unwind_by_pc): New function.
9006 (create_new_frame): New function.
9007 (get_prev_frame): New function.
9008
9009 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9010
9011 * a29k-share/: Delete directory.
9012 * remote-vx29k.c: Delete file.
9013
9014 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9015
9016 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9017 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9018
9019 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9020
9021 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9022 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9023 (sparc64nbsd-nat.o)
9024 (sparcnbsd-nat.o)
9025 (sparcnbsd-tdep.o): New dependency lists.
9026 * NEWS: Note new UltraSPARC NetBSD native configuration.
9027 * configure.host (sparc64-*-netbsd*): New host.
9028 * configure.tgt (sparc-*-netbsdelf*)
9029 (sparc-*-netbsd*): Set gdb_target to nbsd.
9030 (sparc64-*-netbsd*): New target.
9031 * sparc64nbsd-nat.c: New file.
9032 * sparcnbsd-nat.c: New file.
9033 * sparcnbsd-tdep.c: New file.
9034 * sparcnbsd-tdep.h: New file.
9035 * config/sparc/nbsd.mt: New file.
9036 * config/sparc/nbsd64.mh: New file.
9037 * config/sparc/nbsd64.mt: New file.
9038 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9039 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9040 (HOST_IPC): Remove.
9041 * config/sparc/nbsdaout.mt: Remove.
9042 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9043 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9044 (HOST_IPC): Remove.
9045 * config/sparc/nbsdelf.mt: Remove.
9046 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9047 sparc-nat.c compatiblity defines.
9048 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9049 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9050 * config/sparc/tm-nbsd64.h: New file.
9051 * config/sparc/tm-nbsdaout.h: Remove.
9052 * config/sparc/xm-nbsd.h: Remove.
9053
9054 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9055
9056 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9057 * sparc-tdep.c: Include osabi.h.
9058 (gdbarch_tdep): Add osabi member.
9059 (_initialize_sparc_tdep): Use gdbarch_register.
9060 (sparc_gdbarch_init): Use generic OS ABI framework.
9061 (sparc_dump_tdep): New function.
9062
9063 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9064
9065 * corefile.c (do_captured_read_memory_integer): Return non-zero
9066 result.
9067 (safe_read_memory_integer): Copy result of memory read when
9068 status is non-zero. Also, add comments.
9069
9070 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9071
9072 * Makefile.in (ppc_tdep_h): Define.
9073 (ppc-linux-nat.o)
9074 (ppc-linux-tdep.o)
9075 (rs6000-tdep.o): Use $(ppc_tdep_h).
9076 (ppc-sysv-tdep.o)
9077 (ppcnbsd-nat.o)
9078 (ppcnbsd-tdep.o): New dependency lists.
9079 * ppc-tdep.h: Use generic OS ABI framework.
9080 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9081 (ppc_linux_init_abi): New functions.
9082 (ppc_sysv_abi_broken_use_struct_convention)
9083 (ppc_sysv_abi_use_struct_convention)
9084 (ppc_sysv_abi_push_arguments): Move to...
9085 * ppc-sysv-tdep.c: ...here.
9086 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9087 * rs6000-tdep.c (process_note_abi_tag_sections)
9088 (get_elfosabi): Remove.
9089 (rs6000_gdbarch_init): Use generic OS ABI framework.
9090 (rs6000_dump_tdep): New function.
9091 (_initialize_rs6000_tdep): Use gdbarch_register.
9092 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9093 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9094 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9095 of ppc-linux-tdep.o.
9096 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9097 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9098 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9099 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9100 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9101 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9102
9103 2002-05-29 Jim Blandy <jimb@redhat.com>
9104
9105 * macroscope.c (default_macro_scope): Put `void' in empty argument
9106 list.
9107
9108 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9109
9110 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9111 * arch-utils.c: Include "sim-regno.h".
9112 * gdbarch.sh: Don't include "sim-regno.h".
9113 * gdbarch.h, gdbarch.c: Regenerate.
9114 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9115 here.
9116 * arch-utils.h (legacy_register_sim_regno): To here.
9117 * remote-sim.c (legacy_register_sim_regno): Move function from
9118 here.
9119 * arch-utils.c (legacy_register_sim_regno): To here.
9120
9121 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9122
9123 * sim-regno.h: New file.
9124 * Makefile.in (sim_regno_h): Define.
9125 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9126 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9127 (legacy_register_sim_regno): New function.
9128 (one2one_register_sim_regno): New function.
9129 (gdbsim_fetch_register): Rewrite.
9130 (gdbsim_store_register): Only store a register when
9131 REGISTER_SIM_REGNO is valid.
9132 * d10v-tdep.c: Include "sim-regno.h".
9133 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9134 (d10v_ts3_register_sim_regno): Ditto.
9135 * gdbarch.sh: Include "sim-regno.h".
9136 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9137 * gdbarch.h, gdbarch.c: Regenerate.
9138 * arch-utils.h (default_register_sim_regno): Delete declaration.
9139 * arch-utils.c (default_register_sim_regno): Delete function.
9140
9141 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9142
9143 * ppcnbsd-nat.c: Rewrite.
9144 * ppcnbsd-tdep.c: New file.
9145 * ppcnbsd-tdep.h: New file.
9146 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9147 solib.o, and solib-svr4.o.
9148 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9149 nbsd-tdep.o, and corelow.o.
9150
9151 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9152
9153 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9154 `tr' and `sed'. Mention that `broken' targets are not expected to
9155 build.
9156
9157 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9158
9159 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9160 Let PC point right after the prologue before looking up symbols.
9161
9162 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9163
9164 * i386-tdep.c (i386_register_virtual_type): Return
9165 builtin_type_vec128i for SSE registers.
9166
9167 * gdbtypes.h (builtin_type_vec128i): Declare.
9168
9169 * gdbtypes.c (build_builtin_type_vec128i): New function.
9170 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9171 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9172 (build_gdbtypes): Initialize new builtin vector types.
9173 (_initialize_gdbtypes): Register new vector types with gdbarch.
9174
9175 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9176
9177 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9178 since it has been multi-arch'd.
9179 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9180 Move Alpha and VAX multi-arch news entries to same section
9181 as other multi-arch news.
9182
9183 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9184
9185 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9186 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9187 static. Rename some register numbers to put them in ns32k-tdep
9188 private namespace.
9189 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9190 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9191 functions.
9192 (_initialize_ns32k_tdep): Use gdbarch_register.
9193 * ns32k-tdep.h: New file.
9194 * ns32knbsd-tdep.c: New file.
9195 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9196 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9197 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9198 REGISTER_BYTES, REGISTER_BYTE): Remove.
9199 * config/ns32k/tm-ns32k.h: New file.
9200 * config/ns32k/tm-umax.h: Remove.
9201
9202 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9203
9204 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9205 ns32k_store_struct_return, ns32k_extract_return_value,
9206 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9207 functions.
9208 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9209 ns32k_saved_pc_after_call.
9210 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9211 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9212 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9213 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9214 ns32k_extract_struct_value_address.
9215
9216 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9217
9218 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9219 ns32k_fix_call_dummy): New.
9220 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9221 ns32k_call_dummy_words.
9222 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9223 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9224 CALL_DUMMY_NARGS): Remove.
9225 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9226
9227 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9230 ns32k_frame_saved_pc, ns32k_frame_args_address,
9231 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9232 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9233 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9234 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9235 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9236 (BREAKPOINT): Remove..
9237 (FRAME_CHAIN): Define as ns32k_frame_chain.
9238 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9239 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9240 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9241 (FRAME_FIND_SAVED_REGS): Remove.
9242 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9243 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9244 (POP_FRAME): Define as ns32k_pop_frame.
9245
9246 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9247
9248 * ns32k-tdep.c (ns32k_register_byte_32082,
9249 ns32k_register_byte_32382, ns32k_register_raw_size,
9250 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9251 functions.
9252 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9253 ns32k_register_byte_32382.
9254 * config/ns32k/tm-umax.h: Update copyright years.
9255 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9256 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9257 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9258 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9259 (ns32k_get_enter_addr): Fix prototype.
9260
9261 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9262
9263 * ns32k-tdep.c: Update copyright years.
9264 (ns32k_register_name_32082): New function.
9265 (ns32k_register_name_32382): Ditto.
9266 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9267 (REGISTER_NAME): Define as ns32k_register_name_32382.
9268 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9269 (REGISTER_NAME): Define as ns32k_register_name_32082.
9270
9271 2002-05-24 Jim Blandy <jimb@redhat.com>
9272
9273 * dwarf2read.c (free_line_header): Use xfree, not free.
9274
9275 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9276
9277 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9278 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9279
9280 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9281
9282 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9283
9284 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9285
9286 From Ross Alexander at NEC Europe:
9287 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9288
9289 2002-05-23 Michael Snyder <msnyder@redhat.com>
9290
9291 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9292 for input, rather than parse_and_eval_address.
9293
9294 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9295
9296 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9297 * Makefile.in (sim_d10v_h): Update definition.
9298
9299 2002-05-24 Andrew Cagney <cagney@redhat.com>
9300
9301 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9302 change `2002-05-22 Michael Snyder' below.
9303 (d10v_push_arguments): Ditto.
9304 (d10v_extract_return_value): Ditto.
9305
9306 2002-05-23 Jim Blandy <jimb@redhat.com>
9307
9308 * macrotab.c (check_for_redefinition): Don't complain if the new
9309 definition is the same as the previous one. Take more arguments
9310 to allow the comparison.
9311 (macro_define_object, macro_define_function): Pass more arguments
9312 to check_for_redefinition.
9313
9314 2002-05-22 Michael Snyder <msnyder@redhat.com>
9315
9316 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9317 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9318 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9319 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9320 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9321 Add a temp variable to save a call (and a memory read).
9322 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9323 if possible (so that PC_IN_CALL_DUMMY will work).
9324
9325 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9326
9327 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9328
9329 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9330
9331 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9332 fde->cie_ptr.
9333 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9334 (dwarf2_build_frame_info): Add offset to fde->initial_location
9335 so that frames of shared libraries are mapped correctly.
9336 (execute_stack_op): Change type of 'result' from ULONGEST to
9337 CORE_ADDR.
9338
9339 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * config/alpha/tm-nbsd.h: Include solib.h.
9342
9343 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9344
9345 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9346 assumptions about the host's byte order.
9347
9348 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9349
9350 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9351 to dependency list.
9352 * alphanbsd-tdep.c: Include solib-svr4.h.
9353 * shnbsd-tdep.c: Ditto.
9354
9355 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9356
9357 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9358 nbsd-tdep.h to dependency list.
9359 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9360 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9361 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9362 nbsdaout.mh and nbsdelf.mh consistently.
9363 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9364 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9365 nbsdaout.mt and nbsdelf.mh consistently.
9366 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9367 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9368 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9369 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9370 a.out shared library stuff from here...
9371 * config/nm-nbsdaout.h: ...to here.
9372 * config/tm-nbsd.h: Remove.
9373 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9374 * config/arm/nbsd.mh: Remove.
9375 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9376 nbsd-tdep.o.
9377 * config/arm/nbsdaout.mh: New file.
9378 * config/arm/nbsdelf.mh: New file.
9379 * config/arm/nm-nbsdaout.h: New file.
9380 * config/i386/nbsd.mh: Remove.
9381 * config/i386/nbsd.mt: Remove.
9382 * config/i386/nbsdaout.mh: New file.
9383 * config/i386/nbsdaout.mt: New file.
9384 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9385 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9386 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9387 i386_register_u_addr): Remove.
9388 * config/i386/nm-nbsdaout.h: New file.
9389 * config/i386/nm-nbsdelf.h: Remove.
9390 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9391 (USE_STRUCT_CONVENTION): Remove.
9392 * config/i386/tm-nbsdaout.h: New file.
9393 * config/i386/tm-nbsdelf.h: Remove.
9394 * config/m68k/nbsd.mh: Remove.
9395 * config/m68k/nbsd.mt: Remove.
9396 * config/m68k/nbsdaout.mh: New file.
9397 * config/m68k/nbsdaout.mt: New file.
9398 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9399 * config/m68k/nm-nbsdaout.h: New file.
9400 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9401 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9402 * config/ns32k/nbsd.mh: Remove.
9403 * config/ns32k/nbsd.mt: Remove.
9404 * config/ns32k/nbsdaout.mh: New file.
9405 * config/ns32k/nbsdaout.mt: New file.
9406 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9407 * config/ns32k/nm-nbsdaout.h: New file.
9408 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9409 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9410 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9411 (SVR4_SHARED_LIBS): Remove.
9412 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9413 * config/sparc/nbsd.mh: Remove.
9414 * config/sparc/nbsd.mt: Remove.
9415 * config/sparc/nbsdaout.mh: New file.
9416 * config/sparc/nbsdaout.mt: New file.
9417 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9418 * config/sparc/nbsdelf.mt: New file.
9419 * config/sparc/nm-nbsdaout.h: New file.
9420 * config/sparc/nm-nbsdelf.h: Remove.
9421 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9422 * config/sparc/tm-nbsdaout.h: New file.
9423
9424 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9425
9426 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9427 mipsnbsd-tdep.c
9428 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9429
9430 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9431
9432 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9433 shnbsd-nat.c.
9434 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9435
9436 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9437
9438 * NEWS: Note new MIPS NetBSD native configuration.
9439 * configure.host (mips*-*-netbsd*): New host.
9440 * configure.tgt (mips*-*-netbsd*): New target.
9441 * mipsnbsd-nat.c: New file.
9442 * mipsnbsd-tdep.c: New file.
9443 * mipsnbsd-tdep.h: New file.
9444 * config/mips/nbsd.mh: New file.
9445 * config/mips/nbsd.mt: New file.
9446 * config/mips/nm-nbsd.h: New file.
9447 * config/mips/tm-nbsd.h: New file.
9448
9449 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9450
9451 * Makefile.in (SFILES): Add osabi.c.
9452 (COMMON_OBS): Add osabi.o.
9453 (osabi.o): New dependency list.
9454 * osabi.c: New file.
9455 * osabi.h: New file.
9456 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9457
9458 * Makefile.in (alpha_tdep_h): Define and use instead of
9459 alpha-tdep.h.
9460 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9461 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9462 Remove.
9463 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9464 * alpha-tdep.h: Include osabi.h.
9465 (alpha_abi): Remove.
9466 (gdbarch_tdep): Use generic OS ABI framework.
9467 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9468 gdbarch_register_osabi.
9469 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9470 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9471 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9472
9473 * Makefile.in (sh_tdep_h): Add osabi.h.
9474 * sh-tdep.h (sh_osabi): Remove.
9475 (gdbarch_tdep): Use generic OS ABI framework.
9476 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9477 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9478 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9479 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9480
9481 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9482 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9483 gdbarch_register_osabi.
9484 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9485 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9486 (get_elfosabi): Rename to...
9487 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9488 ABI framework support routines.
9489 (arm_gdbarch_init): Use generic OS ABI framework.
9490 (arm_dump_tdep): Likewise.
9491 (_initialize_arm_tdep): Likewise.
9492 * arm-tdep.h: Include osabi.h.
9493 (arm_abi): Remove.
9494 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9495 osabi member.
9496 (arm_gdbarch_register_os_abi): Remove prototype.
9497 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9498 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9499
9500 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9501 * mips-tdep.c: Include osabi.h.
9502 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9503 OS ABI framework.
9504
9505 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9506
9507 * h8300-tdep.c: Fix formatting.
9508
9509 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9510
9511 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9512 printing vector registers.
9513
9514 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9515
9516 From Fernando Nasser:
9517 * remote.c (remote_async_open_1): Re-throw the exception when the
9518 connection fails.
9519 (remote_cisco_open): Ditto.
9520 (remote_open_1): Ditto.
9521
9522 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9523
9524 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9525 (remote_start_remote): Add uiout parameter. Pass through to
9526 remote_start_remote_dummy.
9527 (remote_open_1): Use catch_exception instead of catch_errors.
9528 (remote_async_open_1): Ditto.
9529 (remote_cisco_open): Ditto.
9530
9531 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9532
9533 * remote.c (remote_start_remote): Replace PTR with void pointer.
9534 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9535 static.
9536
9537 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9538
9539 * gdb_indent.sh: Allow the script to be run in the sim directory.
9540
9541 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9542
9543 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9544 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9545
9546 * corelow.c (core_open): Only call set_gdbarch_from_file if
9547 exec_bfd is NULL.
9548
9549 2002-05-17 Andrey Volkov <avolkov@transas.com>
9550
9551 * h8300-tdep.c: Add support of EXR register
9552 * config/h8300/tm-h8300.h: Ditto.
9553
9554 2002-05-17 Andrey Volkov <avolkov@transas.com>
9555
9556 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9557
9558 2002-05-17 Andrey Volkov <avolkov@transas.com>
9559
9560 * h8300-tdep.c: Change literal regnums to REGNO.
9561
9562 2002-05-17 Jim Blandy <jimb@redhat.com>
9563
9564 * NEWS: Note addition of macro support.
9565
9566 Expand preprocessor macros in C expressions.
9567 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9568 (scan_macro_expansion, scanning_macro_expansion,
9569 finished_macro_expansion): New function declarations.
9570 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9571 variable declarations.
9572 * parser-defs.h (expression_context_pc): New declaration.
9573 * parse.c (expression_context_pc): New variable.
9574 (parse_exp_1): Set expression_context_pc, as well as
9575 expression_context_block.
9576 * c-exp.y (yylex): If we're not already reading the result of a
9577 macro expansion, try to macro-expand the next token. When we're
9578 done scanning a macro expansion, switch back to the mainline text.
9579 Commas and `if's in a macro's expansion don't terminate the input.
9580 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9581 (macro_original_text, macro_expanded_text,
9582 expression_macro_lookup_func, expression_macro_lookup_baton): New
9583 variables.
9584 (scan_macro_expansion, scanning_macro_expansion,
9585 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9586 c_preprocess_and_parse): New functions.
9587 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9588 c_preprocess_and_parse, instead of c_parse.
9589 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9590 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9591
9592 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9593
9594 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9595 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9596 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9597
9598 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9599
9600 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9601
9602 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9603
9604 * Makefile.in (sh_tdep_h): Define and use.
9605 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9606 register enum): Move to...
9607 * * sh-tdep.h: ...here.
9608 * sh-tdep.c: Include sh-tdep.h.
9609 * sh3-rom.c: Likewise.
9610 * shnbsd-tdep.c: Likewise.
9611
9612 2002-05-16 Michael Snyder <msnyder@redhat.com>
9613
9614 * arm-tdep.c: Spelling fix in comment.
9615
9616 2002-05-16 Jim Blandy <jimb@redhat.com>
9617
9618 Add commands for manually expanding macros and showing their
9619 definitions.
9620 * macrocmd.c, macroscope.c, macroscope.h: New files.
9621 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9622 (macroscope_h): New variable.
9623 (HFILES_NO_SRCDIR): Add macroscope.h.
9624 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9625 (macroscope.o, macrocmd.o): New rules.
9626
9627 Teach the Dwarf 2 reader to read macro information.
9628 * dwarf2read.c: #include "macrotab.h".
9629 (dwarf_macinfo_buffer): New variable.
9630 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9631 dwarf_macinfo_size.
9632 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9633 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9634 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9635 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9636 dwarf2_macro_spaces_in_definition): New complaints.
9637 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9638 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9639 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9640 the partial symbol table.
9641 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9642 from what's recorded in the partial symbol table.
9643 (read_file_scope): If the compilation unit has a
9644 `DW_AT_macro_info' attribute, read its macro information.
9645 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9646
9647 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9648
9649 Fix PR gdb/546
9650 * ser-tcp.c: Don't include <netinet/udp.h>.
9651
9652 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9653
9654 * MAINTAINERS: Update my email address.
9655
9656 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9657
9658 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9659 include file of the same name.
9660
9661 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9662
9663 * configure.tgt: Mark v850 as multi-arched.
9664 * config/v850/tm-v850.h: Remove file.
9665 * config/v850/v850.mt: Eliminate TM_FILE.
9666
9667 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9668
9669 * v850-tdep.c: Full multi-arch.
9670 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9671 Define GDB_MULTI_ARCH to 2.
9672
9673 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9674
9675 * p-exp.y (current_type): New static variable.
9676 Carries the type of the expression at the position that is parsed.
9677 (push_current_type, pop_current_type): Two new functions. Used
9678 to store/restore current_type in expression on specific tokens.
9679 (search_field): New static variable. Set to one after parsing a point
9680 as at that point only a FIELDNAME token should be searched.
9681 (FIELDNAME): New token. After a point only a token belonging to
9682 current_type type definition is allowed.
9683 (all over token rules): reset and change current_type according
9684 to rules.
9685 (exp '[' rule): insert implicit array index field if
9686 exp is a pascal string type.
9687
9688 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9689
9690 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9691 frame info. Use frame_info's saved_regs instead of matching member
9692 in extra_frame_info throughout.
9693 (v850_frame_init_saved_regs): New function.
9694 (v850_init_extra_frame_info): Move most functionality into
9695 v850_frame_init_saved_regs().
9696 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9697 (v850_frame_find_saved_regs): Remove declaration.
9698 (FRAME_FIND_SAVED_REGS): Remove definition.
9699 (v850_frame_init_saved_regs): Add declaration.
9700 (FRAME_INIT_SAVED_REGS): Add definition.
9701
9702 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9703
9704 * v850-tdep.c: Begin multi-arch'ing v850.
9705 (v850_target_architecture_hook): Remove function.
9706 (v850_gdbarch_init): New function. Add code previously in
9707 v850_target_architecture_hook().
9708 (_initialize_v850_tdep): Don't set target_architecture_hook.
9709 Call register_gdbarch_init() instead.
9710
9711 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9712
9713 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9714 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9715 (fixup_class_method_type): Likewise.
9716
9717 2002-05-15 Jim Blandy <jimb@redhat.com>
9718
9719 Add macro structures to GDB's symbol tables. Nobody puts anything
9720 in them yet.
9721 * symtab.h (struct symtab): New member: `macro_table'.
9722 * buildsym.h (pending_macros): New global variable.
9723 * buildsym.c: #include "macrotab.h".
9724 (buildsym_init): Initialize `pending_macros'.
9725 (end_symtab): If we found macro information while reading a CU's
9726 debugging info, do build a symtab structure for it. Make the
9727 symtab point to the macro information, and clear the
9728 `pending_macros' pointer which held it while we were reading the
9729 debug info.
9730 (really_free_pendings): Free any pending macro table.
9731 * objfiles.h (struct objfile): New member: `macro_cache'.
9732 * objfiles.c (allocate_objfile): Set allocate and free functions
9733 for the macro cache's objstack.
9734 (free_objfile): Empty the macro cache's obstack.
9735 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9736 set new allocate and free functions for it.
9737 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9738 free functions for the macro cache's objstack. (Why is this
9739 function building its own objfile?)
9740 * symmisc.c (print_objfile_statistics): Print statistics on the
9741 macro bcache.
9742 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9743
9744 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9745
9746 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9747 (REGISTER_U_ADDR): Delete definition.
9748 (arm_register_u_addr): Delete declaration.
9749
9750 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9751
9752 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9753 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9754
9755 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9756
9757 * regcache.c (register_valid): Revise comments refering to "Not
9758 available" and "unavailable".
9759 * frame.c (frame_register_read): Ditto.
9760 * findvar.c (value_of_register): Ditto.
9761
9762 2002-05-15 Andrew Cagney <cagney@redhat.com>
9763
9764 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9765 (remote-sim.o): Update dependencies.
9766 (d10v-tdep.o): Specify dependencies.
9767 (sim_d10v_h): Define.
9768
9769 2002-05-14 Jim Blandy <jimb@redhat.com>
9770
9771 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9772 * macrotab.c (macro_lookup_inclusion, find_definition,
9773 new_macro_table): Same.
9774
9775 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9776 not `! strcmp ()'. This is a dubious improvement.
9777 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9778
9779 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9780 although it's not necessary, to avoid a warning.
9781
9782 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9785 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9786 TYPE_INSTANCE_FLAGS.
9787 (struct main_type): New.
9788 (struct type): Move most members to struct main_type. Change
9789 cv_type and as_type to new type_chain member. Add instance_flags.
9790 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9791 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9792 (finish_cv_type): Remove prototype.
9793 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9794 Set TYPE_CHAIN.
9795 (alloc_type_instance): New function.
9796 (smash_type): New function.
9797 (make_pointer_type, make_reference_type, make_function_type)
9798 (smash_to_member_type, smash_to_method_type): Call smash_type.
9799 (make_qualified_type): New function.
9800 (make_type_with_address_space): Call make_qualified_type.
9801 (make_cv_type): Likewise.
9802 (finish_cv_type): Remove unnecessary function.
9803 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9804 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9805 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9806 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9807 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9808 * hpread.c (hpread_read_struct_type): Likewise.
9809 * stabsread.c (read_struct_type): Likewise.
9810
9811 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9812
9813 * configure.tgt: Add a catch all sh* target, for cases like
9814 sh[2,3,4]-elf and sh-hms.
9815
9816 2002-05-14 Keith Seitz <keiths@redhat.com>
9817
9818 * event-loop.c (create_file_handler): Don't do anything but
9819 update data when we are given a fd which we are already
9820 monitoring.
9821
9822 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9823
9824 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9825 (update_context): Use __func__ in warnings.
9826
9827 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9828
9829 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9830 and tcp_close to net_open and net_close.
9831 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9832 using UDP if requested. Don't try to disable Nagle on UDP
9833 sockets.
9834 * remote.c (remote_serial_open): New function. Warn about UDP.
9835 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9836
9837 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9838
9839 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9840
9841 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9842
9843 * configure.tgt: Remove sh-hms target.
9844 * MAINTAINERS: Don't list sh-hms as a separate target.
9845
9846 2002-05-13 Jim Blandy <jimb@redhat.com>
9847
9848 Add first preprocessor macro-expansion files.
9849 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9850 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9851 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9852 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9853 (COMMON_OBS): Add macrotab.o, macroexp.o.
9854 (macroexp.o, macrotab.o): New rules.
9855
9856 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9857
9858 * config/m88k/tm-m88k.h: Update copyright.
9859 (m88k_target_write_pc): Declare
9860 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9861 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9862 (SHIFT_INST_REGS): Update definition.
9863 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9864 using old definition of TARGET_WRITE_PC.
9865 * regcache.c (generic_target_write_pc): Delete code handling
9866 NNPC_REGNUM.
9867 * gdbarch.sh (NNPC_REGNUM): Delete.
9868 * gdbarch.h, gdbarch.c: Regenerate.
9869
9870 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9873 builtin reg number.
9874
9875 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9878 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9879 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9880 access macros.
9881 * c-typeprint.c (cp_type_print_method_args): Likewise.
9882 (c_type_print_args): Likewise.
9883 * d10v-tdep.c (d10v_push_arguments): Likewise.
9884 (d10v_extract_return_value): Likewise.
9885 * expprint.c (print_subexp): Likewise.
9886 * gdbtypes.c (lookup_primitive_typename): Likewise.
9887 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9888 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9889 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9890 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9891 (TYPE_VECTOR): Likewise.
9892 * hpread.c (hpread_read_struct_type)
9893 (fix_static_member_physnames, fixup_class_method_type)
9894 (hpread_type_lookup): Likewise.
9895 * mdebugread.c (parse_symbol, parse_type): Likewise.
9896 * p-lang.c (is_pascal_string_type): Likewise.
9897 * valops.c (hand_function_call): Likewise.
9898 * x86-64-tdep.c (classify_argument): Likewise.
9899
9900 * hpread.c (hpread_read_function_type)
9901 (hpread_read_doc_function_type): Call replace_type.
9902 * dstread.c (create_new_type): Delete.
9903 (decode_dst_structure, process_dst_function): Call alloc_type.
9904 Use type access macros.
9905
9906 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9907
9908 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9909 the're not supported by the current architecture.
9910 (i387_fill_fxsave): Likewise.
9911
9912 2002-05-12 Fred Fish <fnf@redhat.com>
9913
9914 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9915 sect_index_xxx members to index the first slot in section_offsets
9916 if all of the section_offsets are zero.
9917
9918 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9919
9920 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9921 checked in with last change.
9922
9923 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9924
9925 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9926 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9927 config.sub.
9928
9929 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * Makefile.in: Update dependencies.
9932
9933 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9934
9935 * language.c (local_hex_string_custom): Simplify. Do not depend
9936 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9937
9938 * memattr.c (mem_info_command): Replace calls to
9939 longest_local_hex_string and longest_local_hex_string_custom.
9940 * buildsym.c (make_blockvector): Ditto.
9941 * solib.c (info_sharedlibrary_command): Ditto.
9942 * tracepoint.c (tracepoints_info): Ditto.
9943 * symtab.c (print_msymbol_info): Ditto.
9944
9945 * language.c (local_hex_string): Delete.
9946 (local_hex_string_custom): Delete.
9947 (longest_local_hex_string): Rename to local_hex_string.
9948 (longest_local_hex_string_custom): Rename to
9949 local_hex_string_custom.
9950 * language.h (local_hex_string): Change parameter type to LONGEST.
9951 (local_hex_string_custom): Ditto.
9952 (longest_local_hex_string): Delete declaration.
9953 (longest_local_hex_string_custom): Ditto.
9954
9955 * solib.c: Update copyright.
9956 * memattr.c: Update copyright.
9957
9958 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9959
9960 * arch-utils.h (legacy_register_to_value): Declare.
9961 (legacy_value_to_register): Declare.
9962 (legacy_convert_register_p): Declare.
9963 * arch-utils.c (legacy_register_to_value): New function.
9964 (legacy_value_to_register): New function.
9965 (legacy_convert_register_p): New function.
9966
9967 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9968 (VALUE_TO_REGISTER): Define.
9969 (CONVERT_REGISTER_P): Define.
9970 * gdbarch.h, gdbarch.c: Regenerate.
9971
9972 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9973 VALUE_TO_REGISTER.
9974 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9975 CONVERT_REGISTER_P.
9976
9977 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9978 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9979
9980 * Makefile.in: Update dependencies for valops.c.
9981 * valops.c: Include "gdb_assert.h".
9982 (typecmp): Skip THIS parameter to methods.
9983 (find_method_list): Remove static_memfuncp argument,
9984 update callers. Check for stub methods.
9985 (find_value_oload_method_list): Don't set *static_memfuncp.
9986 (find_overload_match): Don't check for stub methods. Assert
9987 that methods are not stubbed. Handle static methods.
9988 (value_find_oload_method_list): Remove static_memfuncp argument.
9989 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9990 to the argument list for static stub methods.
9991 * value.h (value_find_oload_method_list): Update prototype.
9992
9993 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9994
9995 * arch-utils.h (generic_register_size): Declare.
9996 (generic_register_raw_size, generic_register_virtual_size): Delete
9997 declarations.
9998 * arch-utils.c (generic_register_raw_size): Delete.
9999 (generic_register_size): New function.
10000 (generic_register_virtual_size): Delete.
10001
10002 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10003 default generic_register_size.
10004 * gdbarch.h, gdbarch.c: Re-generate.
10005
10006 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10007 register_virtual_size.
10008 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10009 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10010
10011 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10012
10013 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10014 * gdbarch.h, gdbarch.c: Regenerate.
10015 * gnu-v3-abi.c: Update copyright.
10016 (vtable_address_point_offset): Update.
10017 (gnuv3_rtti_type): Update.
10018 (gnuv3_baseclass_offset): Update.
10019 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10020 (init_fetch_link_map_offsets): Update.
10021 * remote.c (get_remote_state): Update.
10022
10023 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10024
10025 * TODO: Remove value_headof/value_from_vtable_info comment.
10026 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10027 * values.c (value_headof, value_from_vtable_info): Delete.
10028 * value.h (value_from_vtable_info): Delete prototype.
10029
10030 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10031
10032 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10033 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10034 $(gdb_regex_h).
10035 (gdb_assert_h): Define.
10036 (gdb_wait_h): Define.
10037 (gdb_regex_h): Define.
10038
10039 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10040
10041 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10042 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10043
10044 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10045
10046 * nbsd-tdep.c: Fix comment.
10047
10048 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10049
10050 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10051 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10052 (nbsd-tdep.o): New dependency list.
10053 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10054 nbsd-tdep.h.
10055 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10056 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10057 * nbsd-tdep.c: New file.
10058 * nbsd-tdep.h: New file.
10059 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10060 nbsd-tdep.h.
10061 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10062 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10063 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10064 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10065
10066 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10067
10068 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10069 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10070 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10071 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10072 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10073 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10074
10075 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10076
10077 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10078 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10079 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10080 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10081 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10082 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10083 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10084
10085 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10086
10087 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10088 fetch_elfcore_registers to...
10089 * i386nbsd-tdep.c: ...here.
10090 (i386nbsd_use_struct_convention): Rename to...
10091 (i386nbsd_aout_use_struct_convention): ...this.
10092 (i386nbsd_supply_reg): New function.
10093 (i386nbsd_fill_reg): New function.
10094 (fetch_core_registers): Use i386nbsd_supply_reg.
10095 (fetch_elfcore_registers): Likewise.
10096 (_initialize_i386nbsd_tdep): New function.
10097 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10098 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10099 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10100 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10101 (i386nbsd_aout_use_struct_convention): ...this.
10102
10103 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10104
10105 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10106 (store_inferior_registers): Use shnbsd_fill_reg.
10107 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10108 sh_nbsd_supply_register): Collapse into...
10109 (shnbsd_supply_reg): ...this.
10110 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10111 (shnbsd_fill_reg): ...this.
10112 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10113 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10114 (fetch_core_registers): Use shnbsd_supply_reg.
10115 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10116 (sh_nbsd_core_fns): Rename to...
10117 (shnbsd_core_fns): ...this.
10118 (sh_nbsd_elfcore_fns): Rename to...
10119 (shnbsd_elfcore_fns): ...this.
10120 (sh_nbsd_init_abi): Rename to...
10121 (shnbsd_init_abi): ...this.
10122 (_initialize_sh_nbsd_tdep): Rename to...
10123 (_initialize_shnbsd_tdep): ...this.
10124 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10125 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10126 sh_nbsd_fill_register): Remove prototypes.
10127 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10128
10129 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10130
10131 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10132 (i387-nat.o): Delete dependency list.
10133 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10134 (x86-64-linux-nat.o): Likewise.
10135 * i387-nat.c: Delete file, moving contents to...
10136 * i387-tdep.c: ...here.
10137 * i387-nat.h: Rename...
10138 * i387-tdep.h: ...to this.
10139 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10140 * i386-linux-nat.c: Likewise.
10141 * i386bsd-nat.c: Likewise.
10142 * i386gnu-nat.c: Likewise.
10143 * i386nbsd-nat.c: Likewise.
10144 * i386v4-nat.c: Likewise.
10145 * x86-64-linux-nat.c: Likewise.
10146 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10147 * config/i386/go32.mh (NATDEPFILES): Likewise.
10148 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10149 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10150 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10151 * config/i386/linux.mh (NATDEPFILES): Likewise.
10152 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10153 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10154 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10155 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10156
10157 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10158
10159 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10160 (alphanbsd-nat.o): Remove dependency list.
10161 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10162 * alphanbsd-nat.c: Delete. Contents moved to...
10163 * alphanbsd-tdep.c: ...here.
10164 (_initialize_alphanbsd_tdep): Register core functions.
10165 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10166
10167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10168
10169 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10170 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10171 (alphanbsd-nat.o): Likewise.
10172 (alphabsd-tdep.o): New dependency list.
10173 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10174 (fill_gregset): Use alphabsd_fill_reg.
10175 (supply_fpregset): Use alphabsd_supply_fpreg.
10176 (fill_fpregset): Use alphabsd_fill_fpreg.
10177 (fetch_inferior_registers): Use struct reg and struct fpreg
10178 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10179 and alphabsd_supply_fpreg.
10180 (store_inferior_registers): Use struct reg and struct fpreg
10181 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10182 and alphabsd_fill_fpreg.
10183 * alphabsd-tdep.c: New file.
10184 * alphabsd-tdep.h: New file.
10185 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10186 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10187 alphabsd_supply_fpreg.
10188 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10189 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10190
10191 2002-05-11 Eric Christopher <echristo@redhat.com>
10192
10193 * mips-tdep.c (mips_double_register_type): Fix thinko.
10194 (mips_single_register_type): Ditto.
10195 * MAINTAINERS: Add self.
10196
10197 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10198
10199 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10200 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10201 right thing on architectures with different endianness and/or
10202 integer sizes.
10203
10204 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10205
10206 From Christian Limpach <chris@Pin.LU>
10207 * configure.in: Change sed expression which comments out
10208 NATDEPFILES to also comment out continuation lines.
10209 * configure: Regenerate.
10210
10211 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10212
10213 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10214 big patch.
10215
10216 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10217
10218 * sh-tdep.c: Include correct file.
10219
10220 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10221
10222 New support for sh64-elf (sh5) target.
10223
10224 * configure.tgt: For sh64-elf target, default to sh-elf.
10225
10226 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10227 (struct gdbarch_tdep): Add new fields for new registers and ABI
10228 info.
10229
10230 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10231 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10232 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10233 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10234 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10235 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10236 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10237 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10238 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10239 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10240 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10241 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10242 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10243 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10244 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10245 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10246 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10247 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10248 sign_extend, sh64_nofp_frame_init_saved_regs,
10249 sh64_init_extra_frame_info, sh64_get_saved_register,
10250 sh64_extract_struct_value_address, sh64_pop_frame,
10251 sh64_push_arguments, sh64_extract_return_value,
10252 sh64_store_return_value, sh64_show_media_regs,
10253 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10254 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10255 sh_sh64_register_virtual_type,
10256 sh_sh64_register_convert_to_virtual,
10257 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10258 sh64_register_read, sh64_pseudo_register_write,
10259 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10260 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10261 sh64_do_pseudo_register, sh_compact_do_registers_info,
10262 sh64_do_registers_info, sh_gdbarch_init): New functions.
10263
10264 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10265
10266 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10267
10268 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10269
10270 * linespec.c (decode_line_1): Check for a double quote after
10271 a filename correctly.
10272
10273 2002-05-10 Jim Blandy <jimb@redhat.com>
10274
10275 Properly track the size of the current objfile's .debug_line section.
10276 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10277 (DWARF_LINE_SIZE): New macro.
10278 (dwarf2_build_psymtabs_hard): Record the line section's size in
10279 the partial symbol table.
10280 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10281 symbol table.
10282
10283 2002-05-10 Petr Sorfa <petrs@caldera.com>
10284
10285 * ia64-tdep.c: Handle breakpoints on L instruction type
10286 in MLX instruction bundle by moving the breakpoint to
10287 the third slot (X instruction type) as L holds only data.
10288
10289 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10290
10291 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10292 (process_one_symbol): Complain about discarding local symbols
10293 due to a misplaced N_LBRAC entry.
10294
10295 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10296
10297 From Daniel Berlin <dan@cgsoftware.com>
10298 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10299 decrease the depth we are at, in the case of templates.
10300
10301 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10302
10303 * mips-tdep.c (mips_float_register_type): New function.
10304 (mips_double_register_type): New function.
10305 (mips_print_register): Use them.
10306 (do_fp_register_row): Likewise.
10307
10308 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10309
10310 * signals/signals.c (signals): Remove conditional compilation around
10311 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10312 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10313
10314 2002-05-09 Michael Snyder <msnyder@redhat.com>
10315
10316 * remote-rdp.c (remote_rdp_can_run): Remove.
10317
10318 2002-05-09 Tom Tromey <tromey@redhat.com>
10319
10320 * jv-valprint.c (java_val_print): Handle `char' as a special case
10321 of TYPE_CODE_INT.
10322
10323 2002-05-09 Michael Snyder <msnyder@redhat.com>
10324
10325 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10326 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10327 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10328 str r(0123),[sp,#nn].
10329 (arm_skip_prologue): Ditto. Also make disassembly
10330 order-independent by placing it in a loop.
10331
10332 2002-05-06 Michael Snyder <msnyder@redhat.com>
10333
10334 * stabsread.c (read_type): Add recognition for new attribute:
10335 "@V;" means that an array type is actually a vector.
10336 This is analogous to the vector flag that's been added to dwarf2.
10337
10338 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10339
10340 * i386-tdep.h (i386_abi): New enum.
10341 (struct gdbarch_tdep): Replace os_ident member with abi.
10342 (i386_gdbarch_register_os_abi): New prototype.
10343 * i386-tdep.c (i386_abi_names): New array.
10344 (process_note_abi_tag_sections): Removed.
10345 (process_note_sections): New function.
10346 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10347 (struct i386_abi_handler): New struct.
10348 (i386_abi_handler_list): New variable.
10349 (i386_gdbarch_register_os_abi): New function.
10350 (i386_gdbarch_init): Adapt for the changes given above.
10351
10352 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10353
10354 * gregset.h: Say "GNU/Linux".
10355
10356 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10357
10358 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10359 (build_gdbtypes): Build builtin_type_v2_float.
10360 (_initialize_gdbtypes): Register new builtin type.
10361
10362 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10363
10364 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10365 (clear_gdbarch_swap): New function.
10366 (initialize_non_multiarch): Call.
10367 (gdbarch_update_p): Before calling init(), swap out and clear the
10368 existing architecture.
10369 * gdbarch.c: Regenerate.
10370
10371 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10372
10373 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10374 alphanbsd-tdep.c.
10375
10376 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10377
10378 * sh-nbsd-nat.c: Rename to...
10379 * shnbsd-nat.c: ...this.
10380 * sh-nbsd-tdep.c: Rename to...
10381 * shnbsd-tdep.c: ...this.
10382 * sh-nbsd-tdep.h: Rename to...
10383 * shnbsd-tdep.h: ...this.
10384 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10385 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10386
10387 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10388
10389 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10390 concatenation for command help messages.
10391
10392 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10393
10394 * NEWS: Note new sh*-*-netbsdelf* configuration.
10395 * configure.host: Set gdb_host_cpu to sh for all sh*.
10396 (sh*-*-netbsdelf*): New host.
10397 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10398 (sh*-*-netbsdelf*): New target.
10399 * sh-nbsd-nat.c: New file.
10400 * sh-nbsd-tdep.c: New file.
10401 * sh-nbsd-tdep.h: New file.
10402 * config/sh/nbsd.mh: New file.
10403 * config/sh/nbsd.mt: New file.
10404 * config/sh/nm-nbsd.h: New file.
10405 * config/sh/tm-nbsd.h: New file.
10406
10407 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10408
10409 * sh-tdep.c (sh_osabi_names): Declare.
10410 (process_note_abi_tag_sections): New function.
10411 (get_elfosabi): Ditto.
10412 (sh_gdbarch_register_os_abi): Ditto.
10413 (sh_dump_tdep): Ditto.
10414 _initialize_sh_tdep): Use gdbarch_register to register
10415 sh_gdbarch_init and sh_dump_tdep.
10416 * config/sh/tm-sh.h (sh_osabi): Declare.
10417 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10418
10419 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10420
10421 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10422 (thumb_scan_prologue): Ditto.
10423 (arm_find_callers_reg): Ditto.
10424 (arm_frame_chain): Ditto.
10425 (arm_init_extra_frame_info): Ditto.
10426 (arm_frame_saved_pc): Ditto.
10427 (arm_pop_frame): Ditto.
10428 (arm_push_return_address): New function.
10429 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10430 call_dummy_location, call_dummy_breakpoint_offset_p,
10431 call_dummy_breakpoint_offset, call_dummy_p,
10432 call_dummy_stack_adjust_p, call_dummy_words,
10433 sizeof_call_dummy_words, call_dummy_start_offset,
10434 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10435 call_dummy_address, push_return_address and push_dummy_frame for
10436 generic dummy frames.
10437
10438 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10439
10440 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10441 size computation for alloca.
10442 (sh_fp_frame_init_saved_regs): Likewise.
10443
10444 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10445
10446 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10447 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10448 * arm-tdep.c (arm_store_return_value): Use them.
10449 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10450 * remote-rdp.c (remote_rdp_fetch_register): Use
10451 ARM_MAX_REGISTER_RAW_SIZE.
10452 (remote_rdp_store_register): Likewise.
10453
10454 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10455
10456 * dwarf2cfi.c: Code cleanup, removed unused variables,
10457 added default labels to switch {} statements.
10458 * x86-64-tdep.c: Ditto.
10459 * x86-64-linux-nat.c: Ditto.
10460
10461 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10462
10463 * solib.h: Protect against multiple inclusion.
10464
10465 2002-05-06 Jim Blandy <jimb@redhat.com>
10466
10467 Add first preprocessor macro-expansion files.
10468 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10469 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10470 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10471 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10472 (COMMON_OBS): Add macrotab.o, macroexp.o.
10473 (macroexp.o, macrotab.o): New rules.
10474
10475 Separate the job of reading the line number info statement program
10476 header (...expialidocious) out into its own function.
10477 * dwarf2read.c (struct line_head, struct filenames, struct
10478 directories): Replace with...
10479 (struct line_header): New structure, containing the full
10480 contents of the statement program header, including the
10481 include directory and file name tables.
10482 (read_file_scope): If we have line number info, instead of just
10483 calling dwarf_decode_lines to do all the work, call
10484 dwarf_decode_line_header first to get a `struct line_header'
10485 containing the data in the statement program header, and then
10486 pass that to dwarf_decode_lines, which will pick up where that
10487 left off. Be sure to clean up the `struct line_header' object.
10488 (dwarf_decode_line_header, free_line_header, add_include_dir,
10489 add_file_name): New functions.
10490 (dwarf_decode_lines): Move all the code to read the statement
10491 program header into dwarf_decode_line_header. Take the line
10492 header it built as the first argument, instead of the offset to
10493 the compilation unit's line number info. Use the new `struct
10494 line_header' type instead of the old structures. No need to do
10495 cleanups here now, since we don't allocate anything.
10496 (dwarf2_statement_list_fits_in_line_number_section,
10497 dwarf2_line_header_too_long): New complaints.
10498
10499 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10500
10501 * gdbtypes.c (init_vector_type): New function.
10502 (build_builtin_type_vec128): Simplify the representation of SIMD
10503 registers.
10504 (build_gdbtypes): Initialize new builtin vector types.
10505 (_initialize_gdbtypes): Register new vector types with gdbarch.
10506 (builtin_type_v4_float, builtin_type_v4_int32,
10507 builtin_type_v8_int16, builtin_type_v16_int8,
10508 builtin_type_v2_int32, builtin_type_v4_int16,
10509 builtin_type_v8_int8): New (renamed) SIMD types.
10510
10511 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10512
10513 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10514 (i387_fill_fxsave): Likewise.
10515
10516 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10517
10518 * alpha-tdep.c (alpha_extract_return_value): Don't use
10519 non-constant array size in prototype.
10520
10521 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10522
10523 From Brian Taylor <briant at model dot com>:
10524 * ui-out.c (ui_out_field_core_addr): Use the function
10525 longest_local_hex_string_custom'to format addresses > 32 bits
10526 wide.
10527
10528 * ui-out.c (ui_out_field_core_addr): Update comment.
10529
10530 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10531
10532 * stack.c (select_and_print_frame): Make static. Delete the
10533 parameter `level'.
10534 (func_command): Update call.
10535 (select_frame_command): Delete code computing the frame level.
10536 * frame.h (select_and_print_frame): Delete declaration.
10537
10538 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10539
10540 * sparc-tdep.c (sparc_get_saved_register): Comment why
10541 get_prev_frame call is safe.
10542
10543 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10544
10545 * frame.h (select_frame): Delete level parameter.
10546 * stack.c (select_frame): Update. Use frame_relative_level to
10547 obtain the frame's level.
10548 (select_and_print_frame): Update call.
10549 (select_frame_command): Ditto.
10550 (up_silently_base): Ditto.
10551 (down_silently_base): Ditto.
10552 * ocd.c (ocd_start_remote): Ditto.
10553 * remote-rdp.c (remote_rdp_open): Ditto.
10554 * remote-mips.c (mips_initialize): Ditto.
10555 (common_open): Ditto.
10556 * remote-e7000.c (e7000_start_remote): Ditto.
10557 * m3-nat.c (select_thread): Ditto.
10558 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10559 (child_get_current_exception_event): Ditto.
10560 * varobj.c (varobj_create): Ditto.
10561 (varobj_update): Ditto.
10562 (c_value_of_root): Ditto.
10563 * tracepoint.c (finish_tfind_command): Ditto.
10564 * corelow.c (core_open): Ditto.
10565 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10566 * thread.c (info_threads_command): Ditto.
10567 (switch_to_thread): Ditto.
10568 * infrun.c (normal_stop): Ditto.
10569 (restore_selected_frame): Ditto.
10570 (restore_inferior_status): Ditto.
10571 * breakpoint.c (insert_breakpoints): Ditto.
10572 (watchpoint_check): Ditto.
10573 (bpstat_stop_status): Ditto.
10574 (do_enable_breakpoint): Ditto.
10575 * blockframe.c (flush_cached_frames): Ditto.
10576 (reinit_frame_cache): Ditto.
10577
10578 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10579
10580 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10581 maintainer.
10582
10583 2002-05-04 Jim Blandy <jimb@redhat.com>
10584
10585 * gdbtypes.c (replace_type): Doc fix.
10586
10587 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10588
10589 * valprint.c (strcat_longest): Delete commented out function.
10590 Update copyright.
10591
10592 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10593
10594 * MAINTAINERS: Mark a29k as deleted.
10595 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10596 Move new configurations to the top.
10597 * configure.tgt: Remove a29k.
10598 * config/a29k/tm-vx29k.h: Delete.
10599 * config/a29k/vx29k.mt: Delete.
10600 * config/a29k/tm-a29k.h: Delete.
10601 * config/a29k/a29k-udi.mt: Delete.
10602 * config/a29k/a29k.mt: Delete.
10603 * a29k-tdep.c: Delete.
10604 * remote-udi.c: Delete.
10605 * remote-mm.c: Delete.
10606 * remote-eb.c: Delete.
10607 * remote-adapt.c: Delete.
10608 * Makefile.in: Remove obsolete code.
10609 * config/s390/s390x.mt: Ditto.
10610 * config/s390/s390.mt: Ditto.
10611 * config/sparc/sparclynx.mh: Ditto.
10612 * config/sparc/linux.mh: Ditto.
10613 * config/pa/hppaosf.mh: Ditto.
10614 * config/pa/hppabsd.mh: Ditto.
10615 * config/ns32k/nbsd.mt: Ditto.
10616 * config/mips/vr5000.mt: Ditto.
10617 * config/m68k/sun3os4.mh: Ditto.
10618 * config/m68k/nbsd.mt: Ditto.
10619 * config/m68k/m68klynx.mh: Ditto.
10620 * config/m32r/m32r.mt: Ditto.
10621 * config/i386/x86-64linux.mt: Ditto.
10622 * config/i386/nbsdelf.mt: Ditto.
10623 * config/i386/nbsd.mt: Ditto.
10624 * config/i386/i386lynx.mh: Ditto.
10625
10626 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10627
10628 * target.c (debug_print_register): New function. Handle oversize
10629 registers.
10630 (debug_to_fetch_registers): Call.
10631 (debug_to_store_registers): Call.
10632
10633 2002-05-03 Jim Blandy <jimb@redhat.com>
10634
10635 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10636 (read_type): Doc fix.
10637 * gdbtypes.c (replace_type): Doc fix.
10638
10639 * stabsread.c (multiply_defined_struct): New complaint.
10640 (read_struct_type): If the type we were passed isn't empty, or
10641 incomplete, don't read the new struct type into it; complain,
10642 and return the original type unchanged. Take a new `type_code'
10643 argument, which is the type code for the new type.
10644 (read_type): Rather than storing the type's type code here, pass
10645 it as an argument to read_struct_type, and let that take care of
10646 storing it. That way, we don't overwrite the original type code,
10647 so read_struct_type can use it to decide whether we're overwriting
10648 something we shouldn't.
10649 (complain_about_struct_wipeout): New function.
10650
10651 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10652
10653 * gdbarch.sh: Assert that gdbarch is non-NULL.
10654 * gdbarch.c: Regenerate.
10655
10656 2002-05-03 Jason Merrill <jason@redhat.com>
10657
10658 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10659 and return NULL.
10660
10661 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10662
10663 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10664 (x86_64_dwarf2gdb_regno_map_length),
10665 (x86_64_dwarf2_reg_to_regnum): Added.
10666 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10667 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10668 (_initialize_x86_64_tdep): Synced with the change above.
10669 (x86_64_skip_prologue): Reformulated message.
10670
10671 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10672
10673 * f-exp.y: Also use new prev_lexptr variable
10674 to improve error reporting. Based on Michael Snyder
10675 2002-04-24 dated patch to c-exp.y.
10676 * jv-exp.y: Likewise.
10677 * m2-exp.y: Likewise.
10678
10679 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10680
10681 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10682 we are dealing with vectors.
10683
10684 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10685
10686 * config/m68k/tm-nbsd.h: Obvious fix,
10687 correct machine name.
10688
10689 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10690
10691 * p-typeprint.c (pascal_type_print_base): Add support
10692 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10693
10694 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10695
10696 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10697 for fondamental pascal 'char' type.
10698
10699 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10700
10701 * p-lang.h (is_pascal_string_type): Declaration changed,
10702 new sixth argument of type char ** added.
10703 * p-lang.c (is_pascal_string_type): Implementation
10704 changed. Args length_pos, length_size, string_pos, char_size
10705 can now be NULL. New argument arrayname set to the field
10706 name of the char array. Return value set to char array
10707 field index plus one.
10708 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10709 is_pascal_string_type function.
10710
10711 2002-05-02 Andrew Cagney <cagney@redhat.com>
10712
10713 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10714 <cagney@redhat.com> change.
10715 * gdbarch.c: Regenerate.
10716
10717 2002-05-02 Andrew Cagney <cagney@redhat.com>
10718
10719 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10720 before probing for a new one. Detect errorenous gdbarch_init
10721 functions.
10722 * gdbarch.c: Regenerate.
10723
10724 2002-05-01 Andrew Cagney <cagney@redhat.com>
10725
10726 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10727 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10728 * config/v850/tm-v850.h: Ditto. Update copyright.
10729
10730 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10731
10732 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10733 current_gdbarch.
10734
10735 2002-04-30 Michael Snyder <msnyder@redhat.com>
10736
10737 * arm-tdep.c: Whitespace clean-ups.
10738 (arm_skip_prologue): Fix thinko; two lines
10739 should have been removed as part of 4/24 change.
10740
10741 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10742
10743 * rs6000-tdep.c: Added comment describing how fpscr register
10744 numbers were chosen.
10745
10746 2002-04-30 Michael Snyder <msnyder@redhat.com>
10747
10748 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10749
10750 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10751
10752 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10753 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10754 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10755
10756 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10757
10758 From Louis Hamilton <hamilton@redhat.com>:
10759 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10760 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10761 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10762 not bfd-private xcoff data, to determine wordsize.
10763 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10764
10765 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10766
10767 GDB 5.2 released from 5.2 branch.
10768
10769 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10770
10771 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10772 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10773 (x86_64_register_info_table): Added comments with register numbers.
10774
10775 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10776
10777 * rs6000-tdep.c (rs6000_extract_return_value,
10778 rs6000_store_return_value): Handle returning vectors.
10779 (rs6000_gdbarch_init): Use
10780 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10781 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10782 New function.
10783 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10784 vectors.
10785 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10786 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10787
10788 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10789
10790 * hpread.c (hpread_psymtab_to_symtab_1,
10791 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10792 with fprintf_unfiltered (gdb_stderr,...).
10793
10794 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10795
10796 * remote-array.c (printf_monitor, write_monitor,
10797 array_insert_breakpoint, array_remove_breakpoint ):
10798 Replace fprintf (stderr,...
10799 with fprintf_unfiltered (gdb_stderr,....
10800 * remote-es.c: Likewise.
10801 * remote-os9k.c: Likewise.
10802 * remote-st.c: Likewise.
10803
10804 2002-04-28 Andreas Schwab <schwab@suse.de>
10805
10806 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10807 linux-proc.o and gcore.o.
10808
10809 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10810
10811 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10812 code without frame pointers.
10813
10814 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10815
10816 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10817 ON_STACK is needed.
10818
10819 2002-04-26 Ben Elliston <bje@redhat.com>
10820
10821 * target.c (do_xfer_memory): Correct reference to the new option
10822 "trust-readonly-sections".
10823
10824 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10825
10826 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10827 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10828 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10829 vectors.
10830 (read_array_type): Record the fact that this array type is really a
10831 vector (i.e. are passed in by value).
10832
10833 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10834
10835 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10836 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10837 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10838 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10839 * alpha-linux-tdep.c: Include frame.h.
10840 (alpha_linux_sigcontext_addr): New function.
10841 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10842 alpha_linux_sigcontext_addr.
10843 * alpha-osf1-tdep.c: Include gdbcore.h.
10844 (alpha_osf1_sigcontext_addr): New function.
10845 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10846 alpha_osf1_sigcontext_addr.
10847 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10848 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10849
10850 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10851
10852 * stack.c (selected_frame_level):
10853 (select_frame): Do not set selected_frame_level.
10854 * frame.h (selected_frame_level): Delete declaration.
10855
10856 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10857
10858 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10859 convert_from_func_ptr-addr when AIX / PowerOpen.
10860
10861 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10862
10863 * valops.c (hand_function_call): Call
10864 generic_save_call_dummy_addr.
10865 * frame.h (generic_save_call_dummy_addr): Declare.
10866 * blockframe.c (struct dummy_frame): Add fields call_lo and
10867 call_hi.
10868 (generic_find_dummy_frame): Check for PC in range call_lo to
10869 call_hi instead of entry_point_address.
10870 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10871 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10872 (generic_save_call_dummy_addr): New function.
10873
10874 2002-04-24 David S. Miller <davem@redhat.com>
10875
10876 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10877 sparc_skip_prologue.
10878 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10879 information to find prologue when possible.
10880 (sparc_prologue_frameless_p): Call examine_prologue directly.
10881 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10882 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10883 second argument.
10884 (SKIP_PROLOGUE): Likewise.
10885
10886 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10887
10888 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10889 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10890 indicate that the condition it was testing is always true.
10891 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10892 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10893 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10894
10895 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10896
10897 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10898 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10899 tdep->jb_pc and tdep->jb_elt_size.
10900 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10901 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10902 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10903 * alpha-nat.c (get_longjmp_target): Remove.
10904 (JB_ELEMENT_SIZE): Ditto.
10905 (JB_PC): Ditto.
10906 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10907 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10908 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10909 to alpha_get_longjmp_target.
10910 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10911 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10912 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10913
10914 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10915
10916 * README: Update to GDB 5.2.
10917
10918 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10919
10920 * gdbarch.sh (LC_ALL): Set to `c'.
10921
10922 2002-04-25 Theodore A. Roth <troth@verinet.com>
10923
10924 * avr-tdep.c: Ran through gdb_indent.sh.
10925
10926 2002-04-25 Theodore A. Roth <troth@verinet.com>
10927
10928 * MAINTAINERS: Add myself as AVR maintainer.
10929 * NEWS: Note new target avr.
10930
10931 2002-04-25 Theodore A. Roth <troth@verinet.com>
10932
10933 * Makefile.in: Add support for AVR target.
10934 * configure.tgt: Add support for AVR target.
10935 * avr-tdep.c: New file
10936 * config/avr/avr.mt: New file.
10937
10938 2002-04-25 Theodore A. Roth <troth@verinet.com>
10939
10940 * MAINTAINERS: Add myself to write-after-approval.
10941
10942 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10943
10944 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10945 with fprintf_unfiltered (gdb_stderr,....
10946
10947 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10948
10949 Fix PR gdb/508.
10950 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10951
10952 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10953
10954 * p-exp.y: Also use new prev_lexptr variable
10955 to improve error reporting. Based on Michael Snyder
10956 2002-04-24 dated patch to c-exp.y.
10957
10958 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10959
10960 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10961 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10962 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10963 to 0.
10964 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10965 and struct value.
10966 (FUNCTION_START_OFFSET): Remove.
10967 (BREAKPOINT): Ditto.
10968
10969 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10970
10971 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10972 * NEWS: Ditto.
10973
10974 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10975
10976 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10977 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10978 alpha_linux_pc_in_sigtramp.
10979 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10980 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10981 alpha_osf1_pc_in_sigtramp.
10982 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10983 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10984 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10985 alphafbsd_pc_in_sigtramp.
10986 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10987 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10988 alphanbsd_pc_in_sigtramp.
10989 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10990 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10991
10992 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10993
10994 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10995
10996 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10997
10998 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10999 alphanbsd-tdep.c.
11000 (alphanbsd-nat.o): New dependency list.
11001 (alphanbsd-tdep.o): Ditto.
11002 * NEWS: Note new native NetBSD/alpha configuration.
11003 * alphanbsd-nat.c: New file.
11004 * alphanbsd-tdep.c: Ditto.
11005 * configure.host (alpha*-*-netbsd*): New host.
11006 * configure.tgt (alpha*-*-netbsd*): New target.
11007 * config/alpha/nbsd.mh: New file.
11008 * config/alpha/nbsd.mt: Ditto.
11009 * config/alpha/nm-nbsd.h: Ditto.
11010 * config/alpha/tm-nbsd.h: Ditto.
11011
11012 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11013
11014 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11015 (alpha-osf1-tdep.o): New dependency list.
11016 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11017 and skip_sigtramp_frame members.
11018 * alpha-linux-tdep.c: Include gdbcore.h.
11019 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11020 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11021 * alpha-osf1-tdep.c: New file.
11022 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11023 alpha-osf1-dep.c.
11024 (alpha_frame_past_sigtramp_frame): New function.
11025 (alpha_dynamic_sigtramp_offset): Ditto.
11026 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11027 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11028 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11029 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11030 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11031 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11032 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11033 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11034 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11035 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11036 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11037 to find_solib_trampoline_target.
11038 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11039 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11040 (SKIP_TRAMPOLINE_CODE): Remove.
11041 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11042 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11043 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11044 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11045 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11046 (PROC_SIGTRAMP_MAGIC): Ditto.
11047 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11048 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11049 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11050 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11051 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11052
11053 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11054
11055 * NEWS: Note that Alpha targets are now multi-arch.
11056
11057 2002-04-24 Michael Snyder <msnyder@redhat.com>
11058
11059 * parser-defs.h (prev_lexptr): New external variable.
11060 * parse.c (parse_exp_1): Set prev_lexptr to null before
11061 calling the language-specific parser.
11062 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11063 (yyerror): Use prev_lexptr in error reporting.
11064
11065 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11066
11067 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11068 * gregset.h: If FILL_FPXREGSET is defined, provide
11069 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11070 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11071 is defined, call fill_fpxregset.
11072
11073 2002-04-24 Roland McGrath <roland@frob.com>
11074
11075 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11076 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11077 (supply_gregset, supply_fpregset): New functions.
11078
11079 * gnu-nat.c (gnu_find_memory_regions): New function.
11080 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11081 (gnu_xfer_memory): Add a cast.
11082
11083 2002-04-24 Michael Snyder <msnyder@redhat.com>
11084
11085 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11086 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11087 of argument regs ("str r(0123), [r11, #-nn"]).
11088 (arm_skip_prologue): Better handling for frameless functions.
11089 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11090 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11091
11092 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11093
11094 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11095 NUM_PSEUDO_REGS can be used.
11096
11097 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11098
11099 * arch-utils.h: Update copyright.
11100
11101 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11102 * gdbarch.h, gdbarch.c: Re-generate.
11103
11104 * inferior.h (IN_SIGTRAMP): Delete definition.
11105 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11106 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11107
11108 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11109 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11110 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11111 (find_proc_framesize): Ditto.
11112 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11113 (alpha_init_extra_frame_info): Ditto.
11114 * infrun.c (handle_inferior_event): Ditto.
11115 (handle_inferior_event): Ditto.
11116 (check_sigtramp2): Ditto.
11117 * blockframe.c (create_new_frame): Ditto.
11118 (get_prev_frame): Ditto.
11119 * ppc-linux-tdep.c: Update comments.
11120 * i386-linux-tdep.c: Update comments.
11121 * breakpoint.c (bpstat_what): Update comment.
11122
11123 2002-04-24 David S. Miller <davem@redhat.com>
11124
11125 * i960-tdep.c (register_in_window_p): New function.
11126 (i960_find_saved_register): Use it instead of
11127 REGISTER_IN_WINDOW_P.
11128 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11129
11130 * symtab.h (find_stab_function_addr): Kill extern.
11131 * minsyms.c (find_stab_function_addr): Remove from here...
11132 * dbxread.c: ... to here, and mark it static.
11133
11134 2002-04-20 David S. Miller <davem@redhat.com>
11135
11136 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11137 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11138
11139 2002-04-21 David S. Miller <davem@redhat.com>
11140
11141 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11142 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11143 (vx_write_register): Likewise.
11144
11145 2002-04-23 J. Brobecker <brobecker@gnat.com>
11146
11147 * source.c (is_regular_file): New function.
11148 (openp): Check wether file to open is a regular file
11149 to avoid opening directories.
11150
11151 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11152
11153 * findvar.c (extract_signed_integer): Cast printf argument
11154 to suppress format warning.
11155 (extract_unsigned_integer): Likewise.
11156 * infcmd.c (registers_info): Likewise.
11157 * top.c (get_prompt_1): Likewise.
11158 * valops.c (value_assign): Likewise.
11159 * valprint.c (print_decimal): Likewise.
11160
11161 2002-04-22 H.J. Lu (hjl@gnu.org)
11162
11163 * c-exp.y (typebase): Support
11164
11165 [long|long long|short] [signed|unsigned] [int|]
11166
11167 and
11168
11169 signed [long|long long|short] int
11170
11171 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11172
11173 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11174 and vax-tdep.h.
11175 * vax-tdep.h: New file.
11176 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11177 Make several routines static.
11178 (vax_get_saved_register): New function.
11179 (vax_gdbarch_init): New function.
11180 (_initialize_vax_tdep): Register vax_gdbarch_init.
11181 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11182 Remove macros now under the control of gdbarch.
11183
11184 2002-04-22 Michael Snyder <msnyder@redhat.com>
11185
11186 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11187 Some whitespace and coding standards tweaks.
11188
11189 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11190
11191 * vax-tdep.c: Include regcache.h.
11192 (vax_call_dummy_words): New.
11193 (sizeof_vax_call_dummy_words): New.
11194 (vax_fix_call_dummy): New function.
11195 (vax_saved_pc_after_call): Ditto.
11196 * config/vax/tm-vax.h: Don't include regcache.h.
11197 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11198 (CALL_DUMMY): Remove.
11199 (CALL_DUMMY_WORDS): Define.
11200 (SIZEOF_CALL_DUMMY_WORDS): Define.
11201 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11202
11203 2002-04-18 Michael Snyder <msnyder@redhat.com>
11204
11205 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11206
11207 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11208
11209 * vax-tdep.c (vax_frame_chain): New function.
11210 (vax_push_dummy_frame): Ditto.
11211 (vax_pop_frame): Ditto.
11212 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11213 (FRAMELESS_FUNCTION_INVOCATION): Use
11214 generic_frameless_function_invocation_not.
11215 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11216 (POP_FRAME): Use vax_pop_frame.
11217
11218 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11219
11220 * vax-tdep.c (vax_store_struct_return): New function.
11221 (vax_extract_return_value): Ditto.
11222 (vax_store_return_value): Ditto.
11223 (vax_extract_struct_value_address): Ditto.
11224 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11225 vax_store_struct_return.
11226 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11227 (STORE_RETURN_VALUE): Use vax_store_return_value.
11228 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11229
11230 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11231
11232 * vax-tdep.c (vax_frame_saved_pc): New function.
11233 (vax_frame_args_address_correct): Ditto.
11234 (vax_frame_args_address): Ditto.
11235 (vax_frame_locals_address): Ditto.
11236 (vax_frame_num_args): Move code to be in proximity to
11237 other frame-related functions.
11238 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11239 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11240 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11241 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11242 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11243
11244 2002-04-22 H.J. Lu (hjl@gnu.org)
11245
11246 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11247 includedir.
11248
11249 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11250
11251 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11252 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11253 (FRAME_INIT_SAVED_REGS): New macro.
11254
11255 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11256
11257 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11258
11259 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11260
11261 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11262 where needed.
11263 (fetch_osf_core_registers): Likewise.
11264 (supply_gregset): Likewise.
11265
11266 2002-04-22 J. Brobecker <brobecker@gnat.com>
11267
11268 * symfile.h (get_section_index): Define.
11269 * symfile.c (get_section_index): New function.
11270 * mdebugread.c (SC_IS_SBSS): New macro.
11271 (SC_IS_BSS): Return true for the scBss storage class only, as
11272 the scSBss storage class refers to the .sbss section.
11273 (parse_partial_symbols): Discard the symbols which associated
11274 section does not exist.
11275 Make sure to use the .sbss section index for symbols which
11276 storage class is scBss, rather than using the .bss section index.
11277
11278 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11279
11280 * vax-tdep.c: Update copyright years.
11281 (vax_register_name): New function.
11282 (vax_register_byte): Ditto.
11283 (vax_register_raw_size): Ditto.
11284 (vax_register_virtual_size): Ditto.
11285 (vax_register_virtual_type): Ditto.
11286 * config/vax/tm-vax.h: Update copyright years.
11287 (REGISTER_NAMES): Remove.
11288 (REGISTER_NAME): Define.
11289 (REGISTER_BYTE): Use vax_register_byte.
11290 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11291 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11292 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11293
11294 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11295
11296 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11297 declaration
11298 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11299
11300 2002-04-21 David S. Miller <davem@redhat.com>
11301
11302 * arch-utils.c (generic_prologue_frameless_p): Kill
11303 SKIP_PROLOGUE_FRAMELESS_P code.
11304 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11305 references.
11306 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11307 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11308 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11309 references.
11310 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11311 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11312 (sparc_gdbarch_init): Pass it to
11313 set_gdbarch_prologue_frameless_p.
11314
11315 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11316
11317 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11318 (alphabsd-nat.o): New dependency list.
11319
11320 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11321
11322 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11323 alphafbsd-tdep.c.
11324 (alpha-linux-tdep.o): New dependency list.
11325 (alphafbsd-tdep.o): Likewise.
11326
11327 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11328
11329 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11330 to here...
11331 * alpha-tdep.c: ...from here.
11332 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11333
11334 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11335
11336 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11337 prototype from here...
11338 * alpha-tdep.h: ...to here.
11339
11340 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11341
11342 * frame.h (selected_frame_level): Document as deprecated.
11343 (frame_relative_level): Declare.
11344 * stack.c (frame_relative_level): New function.
11345 (selected_frame_level): Document as deprecated.
11346 (select_frame): Do not set the selected_frame_level.
11347
11348 * stack.c (frame_info, record_selected_frame): Update.
11349 (frame_command, current_frame_command): Update.
11350 (up_silently_base, up_command, down_silently_base): Update.
11351 (down_command): Update.
11352 * inflow.c (kill_command): Update.
11353 * tracepoint.c (finish_tfind_command): Update.
11354 * corelow.c (core_open): Update.
11355 * thread.c (info_threads_command): Update.
11356 (do_captured_thread_select): Update.
11357 * infcmd.c (finish_command): Update.
11358 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11359
11360 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11361
11362 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11363
11364 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11365
11366 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11367 type const.
11368
11369 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11370
11371 * alphafbsd-tdep.c: Update copyright years. Include
11372 alpha-tdep.h.
11373 (alphafbsd_use_struct_convention): Make static.
11374 (alphafbsd_init_abi): New function.
11375 (_initialize_alphafbsd_tdep): New function.
11376 * config/alpha/tm-fbsd.h: Update copyright years.
11377 (USE_STRUCT_CONVENTION): Remove.
11378
11379 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11380
11381 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11382 an Alpha ABI variant.
11383 (alpha_abi_handler_list): Declare.
11384 (alpha_gdbarch_register_os_abi): New function.
11385 (alpha_gdbarch_init): Give registered ABI variant handlers a
11386 chance to tweak the gdbarch once we have set up defaults.
11387 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11388
11389 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11390
11391 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11392 to standard_coerce_float_to_double.
11393 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11394
11395 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11396
11397 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11398 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11399 from gdbarch_tdep rather than a constant.
11400 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11401 the default text address for all Alpha Unix ABIs.
11402 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11403 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11404
11405 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11406
11407 * alpha-tdep.h: New file. Includes several Alpha target constants
11408 taken from...
11409 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11410 let gdbarch deal with.
11411 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11412 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11413 to dependency list.
11414 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11415 Alpha target register names.
11416 * alphabsd-nat.c: Likewise.
11417 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11418 Alpha target register names. Make serveral routines static.
11419 (alpha_get_saved_register): New function.
11420 (alpha_abi_names): New.
11421 (process_note_abi_tag_sections): New function.
11422 (get_elfosabi): New function.
11423 (alpha_gdbarch_init): New function.
11424 (alpha_dump_tdep): New function.
11425 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11426
11427 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11428
11429 * frame.c (find_saved_register): Delete #ifdef
11430 HAVE_REGISTER_WINDOWS code.
11431 * config/sparc/tm-sparc.h: Update comments.
11432 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11433
11434 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11435
11436 * i960-tdep.c (i960_find_saved_register): New function.
11437 (i960_get_saved_register): New function.
11438 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11439 (i960_get_saved_register): Declare.
11440 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11441
11442 2002-04-20 David S. Miller <davem@redhat.com>
11443
11444 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11445
11446 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11447
11448 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11449 instead of NUM_PSEUDO_REGS.
11450
11451 2002-04-20 David S. Miller <davem@redhat.com>
11452
11453 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11454 GDB_MULTI_ARCH_PARTIAL
11455 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11456 define, let tm-sp64.h do it.
11457
11458 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11459
11460 * frame.c (find_saved_register): Avoid a NULL pointer
11461 dereference and actually walk the frame list.
11462
11463 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11464
11465 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11466 sorted in most most-recent-used order. Document.
11467 * gdbarch.h, gdbarch.c: Regenerate.
11468
11469 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11470
11471 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11472 instead of ->prev.
11473 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11474 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11475 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11476 instead of ->prev.
11477
11478 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11479
11480 Fix PR gdb/471.
11481 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11482 (build_builtin_type_vec128): Ditto.
11483 (append_composite_type_field): Fix calculation of type length in
11484 union case.
11485
11486 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11487
11488 * config/djgpp/README: Update.
11489
11490 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11491 compiler warnings.
11492
11493 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11494
11495 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11496 (alpha_setup_arbitrary_frame): ...to this.
11497 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11498 for alpha_setup_arbitrary_frame.
11499
11500 2002-04-18 Andrew Cagney <cagney@redhat.com>
11501
11502 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11503 * gdbarch.h, gdbarch.c: Regenerate.
11504
11505 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11506 * target.h (memory_breakpoint_from_pc): Update declaration.
11507 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11508
11509 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11510 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11511 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11512 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11513 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11514 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11515 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11516 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11517 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11518 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11519 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11520 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11521
11522 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11523 const pointer.
11524 * monitor.c (monitor_insert_breakpoint): Ditto.
11525 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11526
11527 * config/mcore/tm-mcore.h: Update copyright.
11528 * mem-break.c: Ditto.
11529 * xstormy16-tdep.c: Ditto.
11530
11531 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11532
11533 * p-exp.y: Add precedence rule for '^' token.
11534 This removes the shift/reduce conflicts.
11535 Remove the comment concerning these shift/reduce conflicts.
11536
11537 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11538
11539 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11540 (registers_powerpc_nofp): New register set for processors
11541 without floating point unit.
11542
11543 2002-04-18 David S. Miller <davem@redhat.com>
11544
11545 * MAINTAINERS: Add myself to write-after-approval.
11546
11547 2002-04-17 Michael Snyder <msnyder@redhat.com>
11548
11549 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11550
11551 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11552
11553 * rs6000-tdep.c (frame_initial_stack_address): Use
11554 frame_register_read to read the alloca_reg.
11555
11556 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11557
11558 * frame.c (find_saved_register): Find saved registers in the next
11559 not prev frame.
11560 Fix PR gdb/365.
11561
11562 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11563
11564 * gdbarch.sh (LANG): Set to ``c''.
11565
11566 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11567
11568 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11569
11570 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11571
11572 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11573 Update copyright.
11574
11575 * hpread.c (hpread_get_lntt): Add declaration.
11576 Also fix PR gdb/391.
11577
11578 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11579
11580 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11581 * aclocal.m4, configure: Re-generate.
11582 Fix PR gdb/391.
11583
11584 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11585
11586 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11587 instead of tm_print_insn.
11588
11589 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11590
11591 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11592
11593 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11594
11595 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11596 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11597 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11598
11599 2002-04-12 Don Howard <dhoward@redhat.com>
11600
11601 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11602 max_user_call_depth.
11603 (init_cmd_lists): Initialize the new value;
11604 * cli/cli-script.c (execute_user_command): Limit the call depth of
11605 user defined commands. This avoids a core-dump when user commands
11606 are infinitly recursive.
11607
11608 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11609
11610 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11611 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11612 from tdep struct instead of DEFAULT_LR_SAVE.
11613 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11614 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11615 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11616
11617 2002-04-12 Michael Snyder <msnyder@redhat.com>
11618
11619 * Remote.c: Spelling fix.
11620 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11621 If no symbol found for "sbrk", try "_sbrk".
11622 (make_output_phdrs): Use bfd_section_name.
11623 (gcore_copy_callback): Use bfd_section_name.
11624 * eval.c: Indentation fix-ups.
11625 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11626 in case it gets applied to an address that is already
11627 in the instruction space.
11628 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11629 * symfile.c: Fix indentation, long lines.
11630 * source.c: White space fix-up.
11631
11632 2002-04-12 Andrew Cagney <cagney@redhat.com>
11633
11634 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11635 * frame.c (frame_register_read): New function. Return non-zero on
11636 success.
11637 (read_relative_register_raw_bytes_for_frame): Delete.
11638 (read_relative_register_raw_bytes): Delete.
11639 * frame.h (frame_register_read): Declare.
11640 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11641 * sh-tdep.c: Ditto.
11642 * infcmd.c (do_registers_info): Ditto.
11643 * hppa-tdep.c: Ditto.
11644 * rs6000-tdep.c: Ditto.
11645 * h8500-tdep.c: Ditto.
11646 * mips-tdep.c: Ditto.
11647 * h8300-tdep.c: Ditto.
11648 * z8k-tdep.c: Ditto.
11649
11650 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11651
11652 From Jimi X <jimix@watson.ibm.com>:
11653 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11654 64-bit SysV ABI.
11655
11656 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11657
11658 From Jimi X <jimix@watson.ibm.com>:
11659 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11660 bfd info.
11661
11662 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11663
11664 From Jimi X <jimix@watson.ibm.com>:
11665 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11666 register sets for these processor variants.
11667
11668 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11669
11670 * regformats/reg-ppc.dat: Support FPSCR.
11671
11672 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11673
11674 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11675 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11676 Add fpscr as an invalid/unfetchable register.
11677 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11678 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11679 (fill_fpregset): Add support for register fpscr.
11680 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11681 (fill_gregset): Account for the fact that register ``mq'' might
11682 not exist.
11683 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11684 (registers_power): Add fpscr to register set at slot 71.
11685 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11686 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11687
11688 2002-04-11 Michael Snyder <msnyder@redhat.com>
11689
11690 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11691 * configure: Regenerate.
11692 * config.in: Regenerate.
11693 * acconfig.h: Add define for _SYSCALL32.
11694 * core-sol2.c: Remove #define _SYSCALL32.
11695 * solib-legacy.c: Remove #define _SYSCALL32.
11696
11697 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11698
11699 * stack.c (select_frame): Cleanup internal error message, do not
11700 use %p.
11701
11702 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11703
11704 * stack.c (select_frame): Check that selected_frame and the
11705 specified level are as expected.
11706 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11707 Update copyright.
11708 * frame.h (struct frame_info): Add field `level'. Update
11709 copyright.
11710 Work-in-progress PR gdb/464.
11711
11712 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11713
11714 * maint.c (maint_print_section_info): Rename print_section_info.
11715 (print_bfd_section_info, print_objfile_section_info): Update.
11716 * inferior.h (struct gdbarch): Add opaque declaration.
11717 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11718 * gdbarch.h: Regenerate.
11719
11720 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11721
11722 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11723 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11724 (kernel_u_size): Added.
11725 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11726 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11727
11728 2002-04-04 Jim Ingham <jingham@apple.com>
11729
11730 * valarith.c (find_size_for_pointer_math): New function, either returns
11731 the size for a pointer's target, returns 1 for void *, or errors for
11732 incomplete types.
11733 (value_add, value_sub): use find_size_for_pointer_math.
11734
11735 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11736
11737 * linux-low.c (linux_look_up_symbols): New hook.
11738 (linux_target_ops): Add linux_look_up_symbols.
11739 * remote-utils.c (decode_address): New function.
11740 (look_up_one_symbol): New function.
11741 * server.c (handle_query): Call target look_up_symbols hook.
11742 * server.h (look_up_one_symbol): Add prototype.
11743 * target.h (struct target_ops): Add look_up_symbols hook.
11744
11745 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11746
11747 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11748 override FP_REGNUM with frame->fp. Update copyright.
11749 * parse.c (num_std_regs, std_regs): Delete.
11750 (target_map_name_to_register): Do not search std_regs. Update
11751 function description.
11752 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11753 declarations. Update copyright.
11754 Fix PR gdb/251.
11755
11756 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11759 after the last symbol in a block.
11760
11761 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11762
11763 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11764 is non zero as a found symbol.
11765
11766 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11767
11768 * findvar.c: Include "builtin-regs.h".
11769 (value_of_register): Call value_of_builtin_reg when applicable.
11770 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11771 (target_map_name_to_register): Call
11772 builtin_reg_map_name_to_regnum.
11773 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11774 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11775 (builtin_regs_h): Define.
11776 (builtin-regs.o): New target.
11777 (findvar.o): Add $(builtin_regs_h).
11778 * builtin-regs.c, builtin-regs.h: New files.
11779 * std-regs.c: New file.
11780 Partial fix for PR gdb/251.
11781
11782 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11783
11784 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11785 it's no longer required.
11786
11787 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11788
11789 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11790
11791 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11792
11793 From Jimi X <jimix@watson.ibm.com>:
11794 * rs6000-tdep.c (rs6000_software_single_step): Use
11795 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11796 and size. Use target_insert_breakpoint() and
11797 target_remove_breakpoint() to insert and remove breakpoints
11798 instead of explicit memory reads and writes.
11799
11800 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11801
11802 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11803 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11804 ELF_OBJECT_FORMAT ifdef.
11805
11806 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11807
11808 From Jimi X <jimix@watson.ibm.com>:
11809 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11810
11811 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11812
11813 From Jimi X <jimix@watson.ibm.com>:
11814 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11815 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11816
11817 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11818
11819 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11820 s/asprintf/xasprintf/.
11821 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11822
11823 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11824
11825 I believe Jeff Law denies responsability for this one:
11826 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11827 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11828 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11829 Work-around for PR gdb/366.
11830
11831 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11832
11833 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11834 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11835 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11836
11837 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11838
11839 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11840 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11841 information.
11842
11843 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11844
11845 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11846 maintainer.
11847
11848 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11849
11850 * README (Reporting Bugs in GDB): Document the bug web page as the
11851 prefered way of submitting bugs.
11852 Fix PR gdb/402.
11853
11854 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11855
11856 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11857 -1. Update comment.
11858 * gdbarch.h, gdbarch.c: Re-generate.
11859
11860 2002-04-07 Andreas Schwab <schwab@suse.de>
11861
11862 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11863 buffer to regcache_collect.
11864
11865 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11866
11867 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11868 * gdbarch.c, gdbarch.h: Re-generate.
11869
11870 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11871
11872 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11873 declaration. Fix -Werror.
11874
11875 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11876
11877 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11878 * gdbarch.c: Regenerate.
11879
11880 2002-04-05 Michael Snyder <msnyder@redhat.com>
11881
11882 * breakpoint.c (clear_command): Rewrite middle section to
11883 combine two loops with identical control conditions.
11884 Add a cleanup to eliminate a memory leak.
11885 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11886
11887 2002-04-05 H.J. Lu (hjl@gnu.org)
11888
11889 * solib-svr4.c (bkpt_names): Add "__start".
11890
11891 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11892
11893 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11894 as test for 64 bit target.
11895
11896 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11897
11898 * h8500-tdep.c (h8500_write_fp): Delete function.
11899 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11900 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11901 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11903 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11904 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11905 (s390_write_fp):
11906 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11907 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11908 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11909 (d10v_write_fp): Delete function.
11910 * inferior.h (write_fp, generic_target_write_fp): Delete
11911 declarations.
11912 * regcache.c (generic_target_write_fp): Delete function.
11913 (write_fp): Delete function.
11914 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11915 * gdbarch.h, gdbarch.c: Regenerate.
11916 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11917 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11918 (sparc64_write_fp): Delete declaration.
11919 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11920 (h8500_write_fp): Delete declaration.
11921
11922 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11923
11924 * sparc-tdep.c (sparc64_write_fp): Delete.
11925 (sparc_push_dummy_frame): Replace write_fp call with code to store
11926 the FP directly.
11927 (sparc_gdbarch_init): Do not initialize write_fp.
11928
11929 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11930
11931 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11932 clause.
11933
11934 2002-03-29 Jim Blandy <jimb@redhat.com>
11935
11936 * stack.c (get_selected_block): Add new argument `addr_in_block',
11937 used to return the exact code address we used to select the block,
11938 not just the block.
11939 * blockframe.c (get_frame_block, get_current_block): Same.
11940 * frame.h (get_frame_block, get_current_block,
11941 get_selected_block): Update declarations.
11942 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11943 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11944
11945 2002-04-05 Michael Snyder <msnyder@redhat.com>
11946
11947 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11948 warning message.
11949
11950 2002-04-05 J. Brobecker <brobecker@gnat.com>
11951
11952 * utils.c (xfullpath): New function.
11953 * defs.h (xfullpath): Add declaration.
11954 * source.c (openp): Use xfullpath in place of gdb_realpath to
11955 avoid resolving the basename part of filenames when the
11956 associated file is a symbolic link. This fixes a potential
11957 inconsistency between the filenames known to GDB and the
11958 filenames it prints in the annotations.
11959 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11960 to be able to match a filename with either the real filename, or
11961 the name of any symbolic link to this file.
11962 (lookup_partial_symtab): Ditto.
11963
11964 2002-04-04 Michael Snyder <msnyder@redhat.com>
11965
11966 * breakpoint.c: Add support for hardware breakpoints in overlays.
11967 (overlay_events_enabled): New state variable.
11968 (insert_breakpoints): Use overlay_events_enabled to decide
11969 whether to attempt to set a breakpoint at the overlay load addr.
11970 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11971 (remove_breakpoint): Use overlay_events_enabled to decide
11972 whether breakpoints need to be removed from overlay load addr.
11973 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11974 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11975 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11976 disable_overlay_breakpoints): Update overlay_events_enabled.
11977
11978 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11979
11980 * dwarf2read.c (struct function_range): New.
11981 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11982 (check_cu_functions): New.
11983 (read_file_scope): Initialize global function lists.
11984 Call dwarf_decode_line after processing children.
11985 (read_func_scope): Add to global function list.
11986 (dwarf_decode_lines): Call check_cu_functions everywhere
11987 record_line is called. Call record_line with a linenumber
11988 of 0 to mark sequence ends.
11989
11990 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11991
11992 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11993 change sync with glibc.
11994
11995 2002-04-03 Jim Blandy <jimb@redhat.com>
11996
11997 * configure.in: Call AC_C_INLINE.
11998 * configure: Regenerated.
11999
12000 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12001
12002 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12003 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12004
12005 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12006
12007 * NEWS: Mention gcore support on FreeBSD/i386.
12008
12009 * fbsd-proc.c: New file.
12010 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12011 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12012
12013 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12014 while statement.
12015
12016 2002-03-29 Jim Blandy <jimb@redhat.com>
12017
12018 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12019 unescaped newlines in string literals, but newer ones don't. So
12020 escape them.
12021
12022 2002-03-26 Michael Snyder <msnyder@redhat.com>
12023 Andrew Cagney <cagney@redhat.com>
12024
12025 * cli/cli-dump.c: New file. Dump memory to file,
12026 restore file to memory.
12027 * cli/cli-dump.h: New file.
12028 * Makefile.in: Add rules, dependencies for cli-dump.o.
12029 * NEWS: Mention new commands.
12030
12031 2002-03-28 Michael Snyder <msnyder@redhat.com>
12032
12033 * symfile.c (symbol_file_add): Move test for null symbols to later.
12034
12035 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12036
12037 From veksler at il.ibm.com:
12038 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12039 the xstrduped original path.
12040 Fix PR gdb/417.
12041
12042 2002-03-27 Michael Snyder <msnyder@redhat.com>
12043
12044 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12045 * infcmd.c (_initialize_infcmd): Ditto.
12046 * language.c (_initialize_language): Ditto.
12047 * symfile.c (_initialize_symfile): Ditto.
12048 * top.c (_init_main): Ditto.
12049 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12050
12051 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12052
12053 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12054 vector registers handling.
12055 (skip_prologue): Handle new AltiVec instructions. Fill in new
12056 fields of frame data.
12057 (frame_get_saved_regs): Fill in information for AltiVec registers.
12058
12059 2002-03-27 Jim Blandy <jimb@redhat.com>
12060
12061 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12062 a function; leave this macro here to invoke that function.
12063 (symbol_init_mangled_name): Declaration for that function.
12064 * symtab.c (symbol_init_mangled_name): New function.
12065
12066 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12067
12068 * valarith.c: Replace strerror with safe_strerror.
12069 * tracepoint.c: Ditto.
12070 * lin-lwp.c: Ditto.
12071 * go32-nat.c: Ditto.
12072 * inflow.c: Ditto.
12073 * gnu-nat.c: Ditto.
12074
12075 2002-03-27 Andreas Schwab <schwab@suse.de>
12076
12077 * event-top.c (command_line_handler): Remove useless if.
12078
12079 2002-03-27 Andreas Jaeger <aj@suse.de>
12080
12081 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12082 comment.
12083
12084 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12085
12086 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12087 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12088 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12089 (x86_64_linux_dr_get_status, supply_gregset),
12090 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12091 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12092 (x86_64_register_info_table): Add.
12093 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12094 (x86_64_register_raw_size, x86_64_register_virtual_type),
12095 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12096 general x86_64_register_info_table.
12097 (i386_gdbarch_init): gdbarch_register_bytes is now set
12098 dynamicaly during initialization.
12099 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12100 * gdbserver/linux-x86-64-low.c: Ditto.
12101
12102 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12103
12104 * gdbserver/server.c (main): Call target_signal_to_host_p
12105 and target_signal_to_host on signals received from the remote.
12106 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12107 target_signal_from_host on signals sent to the remote.
12108 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12109 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12110
12111 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12112
12113 * signals/signals.c: Include "server.h" in gdbserver build.
12114 (target_signal_from_name): Don't use STREQ.
12115 (_initialize_signals): Likewise. Don't include function in
12116 gdbserver build.
12117
12118 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12119
12120 * signals.c: Moved to...
12121 * signals/signals.c: Here.
12122 * Makefile (signals.o): Update.
12123
12124 2002-03-26 Jeff Law (law@redhat.com)
12125
12126 * somread.c (som_symtab_read): Remove some commented out code and
12127 updated related comments. Do not set the minimal symbol table to
12128 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12129 in a dynamic executable.
12130 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12131 where we are unable to find the minimal symbol for the given
12132 PC value.
12133
12134 2002-03-25 Jeff Law (law@redhat.com)
12135
12136 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12137
12138 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12139
12140 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12141
12142 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12143
12144 * command.h: Update copyright.
12145 (struct cmd_list_element): Replace definition with opaque
12146 declaration.
12147 (enum cmd_types): Document that it will eventually be moved to
12148 cli/cli-decode.h
12149 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12150 (MALLOCED_REPLACEMENT): Delete macro.
12151 * Makefile.in (cli_decode_h): Add $(command_h).
12152 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12153 * top.c: Include "cli/cli-decode.h".
12154 * completer.c: Include "cli/cli-decode.h".
12155 * maint.c: Include "cli/cli-decode.h".
12156 * cli/cli-decode.h: Include "command.h".
12157 (enum command_class): Delete.
12158 (enum cmd_types): Comment out.
12159 (enum cmd_auto_boolean): Delete.
12160 (enum var_types): Delete.
12161
12162 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12163
12164 * cli/cli-decode.c: Include "gdb_assert.h".
12165 (add_set_or_show_cmd): New static function.
12166 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12167 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12168 all fields, such as func, from the set command.
12169
12170 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12171
12172 * MAINTAINERS (sh-elf): Change warning flag to -w.
12173
12174 2002-03-23 Andrew Cagney <cagney@redhat.com>
12175
12176 * defs.h (error): Add printf format attribute.
12177 * thread-db.c (thread_from_lwp): Fix error format string.
12178 * stack.c (parse_frame_specification): Ditto.
12179 * cli/cli-decode.c (undef_cmd_error): Ditto.
12180 * scm-lang.c (scm_lookup_name): Ditto.
12181 * tracepoint.c (trace_error): Ditto.
12182 * remote-utils.c (usage): Ditto.
12183 * remote.c (compare_sections_command): Ditto.
12184 Fix PR gdb/328.
12185
12186 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12187
12188 * gdbtypes.c (append_composite_type_field): New function.
12189 (init_composite_type): New function.
12190 * gdbtypes.h (append_composite_type_field): Declare.
12191 (init_composite_type): Ditto.
12192
12193 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12194
12195 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12196 function.
12197 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12198 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12199 structure returning convention for SYSV ABI case, but not
12200 for GNU/Linux, FreeBSD, or NetBSD.
12201
12202 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12203
12204 * symtab.h (lookup_block_symbol): Add mangled_name argument
12205 to prototype.
12206
12207 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12208 with new mangled_name argument.
12209 * linespec.c (decode_line_1): Likewise.
12210 * valops (value_of_this): Likewise.
12211 * symtab.c (lookup_transparent_type): Likewise.
12212 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12213 (lookup_symbol): If we are given a mangled name, pass it down
12214 to lookup_symbol_aux.
12215 (lookup_block_symbol): If we are given a mangled name to check
12216 against, only return symbols which match it.
12217
12218 2002-03-22 Christopher Faylor <cgf@redhat.com>
12219
12220 * win32-nat.c (child_create_inferior): Check for proper shell to use
12221 here, in case the user changes it on the fly.
12222 (_initialize_inftarg): Remove shell path considerations.
12223
12224 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12225
12226 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12227 for gdbarch_max_register_raw_size and max_register_virtual_size.
12228 Adjust copyright year.
12229
12230 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12231
12232 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12233 in a function to cover the entire beginning of the function
12234 as well if it does not already.
12235
12236 2002-03-21 Tom Rix <trix@redhat.com>
12237
12238 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12239 (rs6000_ptrace64): Renamed from ptrace64.
12240
12241 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12242
12243 * gdbserver/remote-utils.c (remote_open): Don't call
12244 getprotobyname, we're all using TCP here so just use
12245 IPPROTO_TCP.
12246 * gdbserver/gdbreplay.c (remote_open): Ditto.
12247
12248 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12249
12250 * regcache.c (_initialize_regcache): No need to call
12251 build_regcache() at this time; it gets called whenever
12252 the gdbarch changes.
12253
12254 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12255
12256 * sparc-nat.c: Include sys/param.h where possible.
12257
12258 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12259
12260 Fix PR gdb/422.
12261 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12262 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12263 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12264 complex types.
12265 * stabsread.c (rs6000_builtin_type): Likewise.
12266 (read_sun_floating_type): Likewise.
12267
12268 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12269
12270 * stabsread.c (read_member_functions): Remove skip code for duplicate
12271 constructor/destructor methods. Use standard parsing for these
12272 methods and just do not chain them to the list of methods after
12273 parsing.
12274
12275 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12276
12277 * coffread.c: Remove redundant static declarations. Replace
12278 occurrences of `PTR' with `void *'.
12279 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12280 * top.h (quit_cover): Likewise.
12281 * defs.h (catch_errors): Likewise.
12282
12283 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12284
12285 * defs.h (XMALLOC): Define.
12286 * gdb-events.sh (XMALLOC): Delete macro.
12287 * gdb-events.c, gdb-events.h: Regenerate.
12288 * gdbarch.sh (XMALLOC): Delete macro.
12289 * gdbarch.c: Regenerate.
12290 * serial.c (XMALLOC): Delete macro.
12291 * ui-file.c (XMALLOC): Ditto.
12292 * ser-unix.h (XMALLOC): Ditto.
12293 * sh-tdep.c (XMALLOC): Ditto.
12294 * ui-out.c (XMALLOC): Ditto.
12295 * utils.c (XMALLOC): Ditto.
12296 * i386-tdep.c (XMALLOC): Ditto.
12297 * gdb-events.c (XMALLOC): Ditto.
12298 * d10v-tdep.c (XMALLOC): Ditto.
12299 * cli-out.c (XMALLOC): Ditto.
12300
12301 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12302 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12303 * ui-file.c, ui-out.c: Ditto.
12304
12305 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12306
12307 * command.h (struct cmd_list_element): Add field context.
12308 (set_cmd_context, get_cmd_context): Declare.
12309 * cli/cli-decode.h: Ditto.
12310 * cli/cli-decode.c (get_cmd_context): New function.
12311 (set_cmd_context): New function.
12312 (add_cmd): Initialize context.
12313 Part of fixing PR gdb/145 and PR gdb/146.
12314
12315 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12316
12317 * cli/cli-decode.c (cmd_type): New function.
12318 * command.h (cmd_type): Declare.
12319 * infrun.c (set_schedlock_func): Call function cmd_type.
12320 * kod.c (kod_set_os): Call cmd_type.
12321 * cris-tdep.c (cris_version_update): Use function cmd_type.
12322 (cris_mode_update, cris_abi_update): Ditto.
12323
12324 * command.h: (execute_cmd_post_hook): Declare.
12325 (execute_cmd_pre_hook): Declare.
12326 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12327 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12328 functions. Execute pre/post hook while ensuring that afterwords
12329 hook_in is cleared.
12330 * top.c (execute_command): Use execute_cmd_post_hook, and
12331 execute_cmd_pre_hook to execute pre/post commands.
12332 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12333 hook_stop_stub.
12334 (hook_stop_stub): Call execute_cmd_pre_hook.
12335
12336 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12337
12338 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12339 set'' and this leads to a core dump. Move xstrdup of
12340 operating_system to after check that it is not NULL.
12341
12342 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12343
12344 * kod.c (kod_set_os): Remove unnecessary check that
12345 ``command->type'' is set_cmd.
12346
12347 * valprint.c (set_input_radix): Use input_radix.
12348 (set_output_radix): Use output_radix.
12349 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12350 isn't reverted.
12351
12352 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12353
12354 * value.h (struct value): Delete field ``substring_addr''. Change
12355 aligner fields to force_doublest_align, force_longest_align,
12356 force_core_addr_align and force_pointer_aligh.
12357
12358 * value.h (struct value): Fix typo in above change.
12359
12360 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12361
12362 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12363 to fix internal_error from ``maintenance print architecture''.
12364
12365 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12366
12367 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12368 for gcc versions after gcc-2.8.1.
12369
12370 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12371
12372 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12373 for method resolution. Restore adjustment of ``this'' pointer after
12374 calling value_struct_elt, which was accidentally removed during the
12375 HP merge.
12376
12377 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12378
12379 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12380 value_of_register.
12381 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12382 get_saved_register.
12383 * value.h (value_of_register): Update.
12384
12385 2002-03-14 Richard Henderson <rth@redhat.com>
12386
12387 * configure.in: Detect declaration for canonicalize_file_name.
12388 * utils.c (canonicalize_file_name): Declare, if needed.
12389 (gdb_realpath): Prefer realpath if available and usable.
12390 * config.in, configure: Rebuild.
12391
12392 2002-03-14 Richard Henderson <rth@redhat.com>
12393
12394 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12395 a constant array bound.
12396
12397 * MAINTAINERS: Add myself to write-after-approval.
12398
12399 2002-03-14 Michael Snyder <msnyder@redhat.com>
12400
12401 * symfile.c (syms_from_objfile): Return immediately if no syms.
12402 (symbol_file_add): Return immediately if no syms.
12403 (find_sym_fns): Return immediately if no syms.
12404
12405 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12406
12407 * gdbserver/remote-util.c (remote_open): Print remote-side's
12408 IP address when remote debugging over the network.
12409
12410 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12411
12412 * config/sparc/fbsd.mh: Fix copyright.
12413 * config/sparc/fbsd.mt: Likewise.
12414
12415 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12416
12417 * MAINTAINERS: Fix typo in name of gdb warnings option.
12418 (x86-64): Fix formating so that this can be parsed by awk.
12419
12420 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12421
12422 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12423 * defs.h: Include "gdb/signals.h".
12424 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12425
12426 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12427
12428 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12429 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12430 from x86-64-tdep.h
12431
12432 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12433 Don Howard <dhoward@redhat.com>
12434
12435 * mips-tdep.c (ST0_FR): Define.
12436 (mips2_fp_compat): New function, temporarily disabled.
12437 (mips_read_fp_register_single): New function.
12438 (mips_read_fp_register_double): New function.
12439 (mips_print_register): Use them.
12440 (do_fp_register_row): Likewise.
12441
12442 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12443
12444 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12445 approval''.
12446
12447 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12448
12449 * stabsread.c (read_member_functions): Fix is_stub test for
12450 static member functions, improve comment.
12451
12452 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12453
12454 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12455 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12456 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12457 commands that set boolean values.
12458 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12459 (arm_rdi_resume): Always initialize PC.
12460 (arm_rdi_open): Don't use rslt as a boolean.
12461 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12462 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12463 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12464 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12465
12466 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12467
12468 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12469 * configure: Rebuilt.
12470
12471 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12472
12473 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12474 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12475
12476 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12477
12478 * cli/cli-decode.c (set_cmd_completer): New function.
12479 * command.h (set_cmd_completer): Declare.
12480 * cli/cli-decode.h (set_cmd_completer): Ditto.
12481
12482 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12483 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12484 * win32-nat.c (_initialize_inftarg): Ditto.
12485 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12486 * proc-api.c (_initialize_proc_api): Ditto.
12487 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12488 * source.c (_initialize_source): Ditto.
12489 * exec.c (_initialize_exec): Ditto.
12490 * solib.c (_initialize_solib): Ditto.
12491 * top.c (init_main): Ditto.
12492 * tracepoint.c (_initialize_tracepoint): Ditto.
12493 * symfile.c (_initialize_symfile): Ditto.
12494 * printcmd.c (_initialize_printcmd): Ditto.
12495 * infcmd.c (_initialize_infcmd): Ditto.
12496 * corefile.c (_initialize_core): Ditto.
12497
12498 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12499
12500 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12501
12502 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12503
12504 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12505
12506 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12507
12508 * NEWS: Update headings, 5.2 has branched.
12509
12510 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12511
12512 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12513 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12514 (register_addr, REGISTER_RAW_SIZE): Likewise.
12515 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12516 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12517
12518 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12519
12520 * MAINTAINERS (x86-64): Add myself.
12521 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12522 changed value_ptr -> struct value *
12523
12524 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12525
12526 * configure.host (sparc64-*-freebsd): Add.
12527 * configure.tgt: Likewise.
12528 * config/sparc/fbsd.mh: New file.
12529 * config/sparc/fbsd.mt: Likewise.
12530 * config/sparc/nm-fbsd.h: Likewise.
12531 * config/sparc/tm-fbsd.h: Likewise.
12532
12533 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12534
12535 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12536 regformats/reg-s390x.dat.
12537
12538 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12539
12540 * utils.c: Add FIXME explaining true/false problem.
12541
12542 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12543
12544 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12545
12546 2002-02-28 Michael Chastain <mec@shout.net>
12547
12548 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12549
12550 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12551
12552 * gdbserver/linux-s390-low.c: New file.
12553 * regformats/reg-s390.dat: New file.
12554 * regformats/reg-s390x.dat: New file.
12555 * gdbserver/configure.srv: Add S/390.
12556 * gdbserver/Makefile.in: Add S/390.
12557 * configure.tgt: Enable gdbserver for S/390.
12558
12559 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12560
12561 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12562 first line of the doc string for "info dos", except at the end of
12563 the sentence, since the short help stops at the first period.
12564
12565 2002-02-28 Jason Merrill <jason@redhat.com>
12566
12567 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12568
12569 2002-02-27 Fred Fish <fnf@redhat.com>
12570
12571 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12572 comment (dumy -> dummy).
12573
12574 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12575
12576 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12577
12578 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12579
12580 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12581
12582 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12583
12584 * gdbserver/acconfig.h: New file.
12585 * gdbserver/i387-fp.c: New file.
12586 * gdbserver/i387-fp.h: New file.
12587 * gdbserver/linux-x86-64.c: New file.
12588 * regformats/reg-x86-64.dat: New file.
12589 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12590 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12591 * gdbserver/configure.in: Add support for regsets.
12592 * gdbserver/config.in: Regenerate.
12593 * gdbserver/configure: Regenerate.
12594 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12595 * gdbserver/linux-low.h: New file.
12596 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12597 for regsets.
12598 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12599 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12600 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12601 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12602 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12603 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12604 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12605 "i387-fp.h". Add PTRACE_GETREGS and friends.
12606 * gdbserver/regcache.c (supply_register): New function.
12607 (supply_register_by_name): New function.
12608 (collect_register): New function.
12609 (collect_register_by_name): New function.
12610
12611 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12612
12613 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12614 (config.status): Add configure.srv dependency.
12615 (server_h): Add config.h dependency.
12616
12617 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12618
12619 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12620 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12621 * gdbserver/configure.srv: Change i386-*-linux* to use
12622 reg-i386-linux.o.
12623
12624 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12625
12626 * x86-64-tdep.c: Re-indent. Update copyright date.
12627
12628 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12629
12630 From Michal Ludvig <mludvig@suse.cz>:
12631 * x86-64-tdep.c (value.h): Delete.
12632 (gdb_assert.h): Include.
12633 (x86_64_register_convert_to_virtual,
12634 x86_64_register_convert_to_raw ): Add check which lets only
12635 floating-point values to be converted.
12636 (value_push): Delete.
12637 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12638 (i386_gdbarch_init): Number of register_bytes fixed.
12639
12640 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12641
12642 * MAINTAINERS: Add x86-64 target.
12643
12644 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12645
12646 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12647 * osfsolib.c (solib_map_sections): Ditto.
12648 * irix5-nat.c (solib_map_sections): Ditto.
12649 * corelow.c (gdb_check_format): Ditto.
12650 * symfile.c (symfile_bfd_open): Ditto.
12651 * solib.c (solib_map_sections): Ditto.
12652 Fix PR gdb/354.
12653
12654 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12655
12656 * remote.c (_initialize_remote): By default, disable ``e'' and
12657 ``E'' step out-of-range packets.
12658
12659 2002-02-26 Andreas Schwab <schwab@suse.de>
12660
12661 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12662 m68k_linux_frame_saved_pc.
12663 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12664 in_sigtramp.
12665 (SIGCONTEXT_PC_OFFSET): Remove.
12666 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12667 m68k_linux_sigtramp_saved_pc): New functions.
12668 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12669 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12670 (UCONTEXT_PC_OFFSET): Define.
12671 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12672 non-RT and RT signal trampolines.
12673
12674 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12675
12676 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12677 (TARGET_NBPG, STACK_END_ADDR): Delete
12678 (VARIABLES_INSIDE_BLOCK): Delete.
12679
12680 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12681
12682 * utils.c (perror_with_name): Make string parameter constant.
12683 (print_sys_errmsg): Ditto.
12684 (query): Ditto.
12685 * defs.h (perror_with_name): Update.
12686 (print_sys_errmsg): Update.
12687 (query): Update.
12688
12689 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12690
12691 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12692 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12693
12694 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12695
12696 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12697 if it already matches the current architecture from the exec file.
12698 Include arch-utils.h for gdbarch_info_init prototype.
12699 * Makefile.in (rs6000-nat.o): Update dependencies.
12700
12701 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12702
12703 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12704 list of exported variables.
12705
12706 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12707
12708 * gdbserver/configure.srv: New file.
12709 * gdbserver/configure.in: Use configure.srv instead
12710 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12711 from it.
12712 * gdbserver/configure: Regenerated.
12713 * gdbserver/terminal.h: New file.
12714 * gdbserver/Makefile.in: Update for configure changes. Remove
12715 more unneeded include paths.
12716
12717 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12718
12719 From wiz at danbala:
12720 * config/sparc/tm-sp64.h: Fix grammar and typos.
12721 Fix PR gdb/287.
12722
12723 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12724
12725 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12726 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12727 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12728 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12729 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12730 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12731 * s390-tdep.c: Ditto.
12732 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12733 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12734 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12735 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12736 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12737 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12738 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12739 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12740 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12741 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12742 Fix PR gdb/378.
12743
12744 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12745
12746 * lin-thread.c: Delete file.
12747 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12748 to gdb_proc_service.h.
12749 * configure: Re-generate.
12750
12751 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12752 * serial.c (serial_open): Delete check for "ocd".
12753 Fix PR gdb/349.
12754
12755 * Makefile.in (linux-thread.o): Delete target.
12756 * linux-thread.c: Delete file.
12757
12758 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12759 renamed SH files to be consistent.
12760
12761 * symtab.c (sort_search_symbols): Use xfree.
12762
12763 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12764
12765 * arm-linux-tdep.c (arm_linux_init_abi): Register
12766 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12767 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12768 definition with undef, since we don't want the sysvr4 definition.
12769 (SKIP_TRAMPOLINE_CODE): Likewise.
12770
12771 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12772
12773 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12774
12775 * configure.in: (AC_CHECK_FUNCS) Added test for
12776 canonicalize_file_name Regenerated.
12777 * config.in, configure: Regenerated.
12778 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12779 defined use canonicalize_file_name.
12780
12781 2002-02-23 Michael Chastain <mec@shout.net>
12782
12783 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12784
12785 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12786
12787 * README: Remove references to cygnus.com.
12788 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12789 dot com'' form. Remove references to cygnus.com and sourceware.
12790
12791 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12792
12793 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12794 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12795 1003.1-2001 no longer allows "head -1".
12796 * gdb/Makefile.in (version.c): Likewise.
12797 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12798 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12799 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12800
12801 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12802
12803 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12804 * command.h (cmd_cfunc_eq): Declare.
12805 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12806
12807 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12808 ``struct cmd_list_element *''.
12809 * cli/cli-cmds.c (is_complete_command): Update. Use
12810 cmd_cfunc_eq.
12811 * top.c (execute_command): Pass the command to
12812 is_complete_command.
12813 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12814
12815 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12816
12817 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12818 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12819 architecture defines.
12820 * s390-tdep.c (s390_gdbarch_init): Likewise.
12821
12822 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12823
12824 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12825 (arm_linux_push_arguments): Likewise.
12826 (arm_linux_init_abi): Register them. Also register linux-specific
12827 call_dummy_words.
12828 (find_minsym_and_objfile): Use strcmp, not STREQ.
12829 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12830 (arm_linux_call_dummy_words): Delete declaration.
12831 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12832 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12833 declarations.
12834 (LOWEST_PC): Delete.
12835
12836 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12837
12838 * maint.c (print_section_info): Do not prepend `0x' to filepos
12839 output, it will be handled by local_hex_string_custom.
12840
12841 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12842
12843 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12844 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12845 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12846
12847 2002-02-22 Jim Blandy <jimb@redhat.com>
12848
12849 Indicate that the bcache functions don't change the strings
12850 they're passed.
12851 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12852 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12853
12854 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12855
12856 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12857
12858 2002-02-21 Christopher Faylor <cgf@redhat.com>
12859
12860 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12861 find the complete path to a loaded DLL.
12862
12863 2002-02-21 Fred Fish <fnf@redhat.com>
12864
12865 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12866 that marks the end of the range of a function, enter a line number
12867 entry that has a line number of zero and a PC offset that matches
12868 the end of the function. This starts a range of PC's for which no
12869 line number information is known.
12870 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12871 PC's for which no line number info is found (line number is zero)
12872 then we didn't find any valid line information.
12873 * symtab.h: Document use of zero line number entry.
12874
12875 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12876
12877 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12878 (have_ptrace_getvrregs): Define for run time checks.
12879 (gdb_vrregset_t): New type for Altivec register handling.
12880 (fetch_register, store_register): Fetch/store altivec register
12881 when needed.
12882 (fetch_altivec_register, store_altivec_register): New functions.
12883 (supply_vrregset, fill_vrregset): New functions.
12884 (fetch_altivec_registers, store_altivec_registers): New functions.
12885 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12886 registers as well.
12887
12888 2002-02-21 Jiri Smid <smid@suse.cz>
12889
12890 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12891
12892 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12893
12894 * Makefile.in (armnbsd-nat.o): Update dependencies.
12895 * armnbsd-nat.c (supply_gregset): New function. Common code to
12896 supply the integer register set.
12897 (supply_fparegset): New function. Similar for FPA registers.
12898 (fetch_regs, fetch_fp_regs): Use them.
12899 (fetch_core_registers): Likewise.
12900 (fetch_elfcore_registers): New function.
12901 (arm_netbsd_elfcore_fns): New core-file type specification.
12902 (_initialize_arm_netbsd_nat): Register it.
12903
12904 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12905
12906 * armnbsd-nat.c: Include gdbcore.h.
12907 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12908 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12909 'void' to declaration, to shut up ARI.
12910 (fetch_core_registers): Make static. Rewrite using supply_register.
12911 (arm_netbsd_core_fns): New core-file type specification.
12912 (_initialize_arm_netbsd_nat): New function.
12913
12914 2002-02-21 Christopher Faylor <cgf@redhat.com>
12915
12916 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12917 value.
12918
12919 2002-02-20 Christopher Faylor <cgf@redhat.com>
12920
12921 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12922 fails.
12923
12924 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12925
12926 * jv-exp.y (parse_number): Change type of implicit longs
12927 to builtin_type_uint64.
12928
12929 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12930
12931 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12932 to be an integer instead of a `union wait'.
12933
12934 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12935
12936 * mips-linux-nat.c: Call the operating system GNU/Linux.
12937 * mips-linux-tdep.c: Likewise.
12938 * mips-tdep.c: Likewise.
12939
12940 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12941
12942 Fix PR gdb/265.
12943 * jv-exp.y (parse_number): Handle 64-bit integers.
12944
12945 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12946
12947 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12948 AC_STDC_HEADERS to AC_HEADER_STDC.
12949 * gdbserver/configure: Regenerated.
12950
12951 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12952
12953 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12954 is defined.
12955 * sparc-tdep.c (get_longjmp_target): Likewise.
12956
12957 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12958
12959 * News: Add news about ARM and Multi-arch. Mention the new target
12960 arm*-*-netbsd*.
12961
12962 2002-02-19 Jim Blandy <jimb@redhat.com>
12963
12964 * stabsread.c (error_type_complaint): Improve error message.
12965
12966 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12967
12968 * gdbserver/README: Update documentation.
12969 * gdbserver/configure.in: Update configury to match documentation.
12970 * gdbserver/Makefile.in: Likewise.
12971 * gdbserver/configure: Regenerated.
12972 * gdbserver/aclocal.m4: New file, generated by aclocal.
12973 * gdbserver/config.in: New file, generated by autoheader.
12974
12975 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12976
12977 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12978 armnbsd-nat.c.
12979
12980 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12981
12982 * arm-tdep.h (enum arm_float_model): New enum.
12983 (struct gdbarch_tdep): Add fp_model.
12984 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12985 up floating-point conversions until we know the floating-point model
12986 in use by the inferior. Don't complain about being unable to
12987 determine the ABI of the inferior when we don't have one.
12988 (arm_extract_return_value): Support different floating-point models.
12989 (arm_store_return_value): Likewise.
12990 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12991 ARM_FLOAT_SOFT.
12992 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12993
12994 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12995
12996 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12997 of ``current_gdbarch''.
12998
12999 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13000
13001 * armnbsd-nat.c : ANSIfy all function declarations.
13002 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13003 (fetch_inferior_registers): Re-implement in terms of above.
13004 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13005 (store_inferior_registers): Re-implement in terms of above.
13006
13007 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13008
13009 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13010 kernel.
13011 * arm-linux-tdep.c: Likewise.
13012 * config/arm/tm-linux.h: Likewise.
13013
13014 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13015
13016 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13017 * config/arm/nbsd.mt (TM_FILE): Delete.
13018 * config/arm/tm-nbsd.h: Delete.
13019
13020 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13021
13022 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13023 Initialize CALL_DUMMY_LENGTH.
13024
13025 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13026
13027 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13028 function.
13029 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13030 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13031 defines one thing and that is incorrect for this port.
13032 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13033
13034 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13035
13036 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13037
13038 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13039
13040 * win32-nat.c (display_selector): New function. Displays information
13041 about the information returned by GetThreadSelectorEntry API function.
13042 (display_selectors): New function. Displays the infomation of
13043 the selector given as argument, or of CS, DS ans FS selectors
13044 if no argument is given.
13045 ( _initialize_inftarg): Add "w32" as info prefix command.
13046 Add "info w32 selector" as command calling display_selectors.
13047
13048 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13049
13050 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13051 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13052 if not defined.
13053
13054 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13055
13056 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13057
13058 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13059
13060 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13061 (arm_fix_call_dummy): Call it.
13062 (arm_call_dummy_breakpoint_offset): Delete.
13063 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13064 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13065
13066 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13067
13068 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13069 Default to func_frame_chain_valid.
13070 * gdbarch.h, gdbarch.c: Re-generate.
13071 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13072
13073 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13074
13075 * ppc-linux-nat.c: Update copyright.
13076 (fetch_register, store_register): Add tid parameter, don't compute
13077 tid here.
13078 (fetch_ppc_registers, store_ppc_registers): Add tid
13079 parameter. Pass it along to callees.
13080 (fetch_inferior_registers, store_inferior_registers): Compute tid
13081 here, and pass it to calleed functions.
13082 (fill_gregset, supply_fpregset): Clean up formatting.
13083
13084 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13085
13086 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13087 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13088
13089 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13090
13091 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13092 * gdbarch.c gdbarch.h: Regenerate.
13093 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13094 function.
13095 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13096 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13097 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13098
13099 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13100 * arm-tdep.c (arm_get_longjmp_target): New function.
13101 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13102 this to a positive value register arm_get_longjmp_target as the
13103 longjmp handler.
13104 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13105 (arm_linux_init_abi): Set up longjmp description in tdep.
13106 * armnbsd-nat.c (get_longjmp_target): Delete.
13107 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13108 description in tdep.
13109 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13110 (get_longjmp_target): Delete declaration.
13111 (GET_LONGJMP_TARGET): Delete.
13112 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13113 (GET_LONGJMP_TARGET): Delete.
13114
13115 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13116
13117 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13118 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13119 of ``current_gdbarch''.
13120
13121 2002-02-17 Tom Tromey <tromey@redhat.com>
13122
13123 * cli/cli-cmds.c (compare_strings): New function.
13124 (complete_command): Only print each unique item once.
13125 * completer.h (complete_line): Declare.
13126 * completer.c (complete_line): New function.
13127 (line_completion_function): Use it.
13128
13129 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13130
13131 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13132 * gdbarch.h, gdbarch.c: Re-generate.
13133
13134 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13135
13136 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13137
13138 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13139
13140 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13141 * valops.c (value_arg_coerce): Don't take the address of a reference
13142 to convert an argument to a reference.
13143
13144 2002-02-15 Christopher Faylor <cgf@redhat.com>
13145
13146 * win32-nat.c (get_image_name): New function.
13147 (handle_load_dll): Use get_image_name function.
13148 (get_child_debug_event): Avoid registering debug events until possibly
13149 execed process is started.
13150 (child_create_inferior): Allow invocation via shell so that command
13151 line redirection, etc. works ok.
13152 (_initialize_inftarg): Add new command: "set shell" to control whether
13153 a shell is used to start a process.
13154
13155 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13156
13157 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13158 instead of find_register_by_number.
13159 (cannot_store_register): Likewise.
13160
13161 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13162
13163 * dwarf2read.c: Replace fprintf (stderr, ...) by
13164 fprintf_unfiltered (gdb_stderr, ...).
13165
13166 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13167
13168 * gdbserver/gdbserver.1: Document --attach.
13169
13170 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13171
13172 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13173 descriptions.
13174 * arm-tdep.c (arm_default_arm_le_breakpoint)
13175 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13176 (arm_default_thumb_be_breakpoint): New. Initialize them from
13177 traditional breakpoint defines.
13178 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13179 (arm_gdbarch_init): Initialize new breakpoint variables.
13180 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13181 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13182 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13183 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13184 code out to ...
13185 (arm_netbsd_init_abi_common): ... here; new function.
13186 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13187 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13188 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13189 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13190
13191 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13192
13193 * arm-tdep.h (enum arm_abi): New enum.
13194 (struct gdbarch_tdep): New structure.
13195 (LOWEST_PC): Provide a default.
13196 (arm_gdbarch_register_os_abi): Declare new function.
13197 * arm-tdep.c (arm_abi_names): New array.
13198 (process_note_abi_tag_sections): New function.
13199 (get_elfosabi): New function.
13200 (arm_gdbarch_register_os_abi): New function.
13201 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13202 support for that ABI has been built in, then call the appropriate
13203 configuration routine. Use gdbarch_num_regs() to get the number
13204 of registers.
13205 (arm_dump_tdep): New function.
13206 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13207 place-holder functions.
13208 (_initialize_arm_tdep): Register them.
13209 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13210
13211 * armnbsd-tdep.c: New file.
13212 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13213 * config/arm/nbsd.mt (TDEPFILES): Add it.
13214 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13215
13216 * armnbsd-nat.c: Include regcache.h.
13217 * Makefile.in (armnbsd-nat.o): Update dependency list.
13218
13219 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13220
13221 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13222
13223 * gdbserver/Makefile.in: Fix typos in target rules.
13224
13225 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13226
13227 Fix part of PR gdb/267.
13228 * linespec.c (find_methods): Handle constructors specially for now.
13229
13230 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13231
13232 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13233 handling.
13234 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13235 standard_coerce_float_to_double().
13236
13237 2002-02-14 Christopher Faylor <cgf@redhat.com>
13238
13239 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13240 GDBINIT_FILENAME.
13241
13242 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13243
13244 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13245 find_variant_by_name, because it confuses the multiarch
13246 framework. Return NULL if there isn't an architecture with the
13247 user supplied name, instead of forcing a different one without
13248 recording the change with the multiarch machinery.
13249 (find_variant_by_name): Delete.
13250
13251 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13252
13253 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13254 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13255
13256 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13257
13258 * stack.c (print_frame_info_base): When calling
13259 print_frame_info_listing_hook, set current_source_symtab.
13260
13261 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13262
13263 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13264 and remove unused $(INCLUDE_DIR).
13265 Add regcache.c to OBS.
13266 Add generated register protocol files to clean target.
13267 Update dependencies for new objects, obsolete old target code.
13268
13269 * gdbserver/linux-low.c: Remove all platform-specific code to
13270 new files. Remove various dead code. Update to use regcache
13271 functionality.
13272 * gdbserver/remote-utils.c (fromhex): Add return statement
13273 to quiet warning.
13274 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13275 constant.
13276 (input_interrupt): Add integer parameter to match prototype
13277 of a signal handler.
13278 (outreg): Use register_data ().
13279 (prepare_resume_reply): Use gdbserver_expedite_regs.
13280 * gdbserver/server.c (main): Dynamically allocate own_buf because
13281 PBUFSIZ is no longer constant. Use registers_to_string () and
13282 registers_from_string ().
13283 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13284 for error (), fatal (), and warning (). Update definition of
13285 PBUFSIZ to use regcache functionality. Add include guard.
13286 * gdbserver/utils.c (fatal): Add missing ``const''.
13287 (warning): New function.
13288
13289 * regformats/regdat.sh: Include "regcache.h" in generated files.
13290 Provide init_registers () function.
13291 * regformats/regdef.h: Add prototype for set_register_cache ().
13292 Add include guard.
13293
13294 * gdbserver/linux-arm-low.c: New file.
13295 * gdbserver/linux-i386-low.c: New file.
13296 * gdbserver/linux-ia64-low.c: New file.
13297 * gdbserver/linux-m68k-low.c: New file.
13298 * gdbserver/linux-mips-low.c: New file.
13299 * gdbserver/linux-ppc-low.c: New file.
13300 * gdbserver/linux-sh-low.c: New file.
13301
13302 * gdbserver/regcache.c: New file.
13303 * gdbserver/regcache.h: New file.
13304
13305 * gdbserver/low-linux.c: Removed obsolete file.
13306
13307 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13308
13309 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13310 * config/i386/linux.mt: Likewise.
13311 * config/ia64/linux.mt: Likewise.
13312 * config/m68k/linux.mh: Likewise.
13313 * config/powerpc/linux.mh: Likewise.
13314 * config/mips/linux.mt: Likewise.
13315
13316 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13317
13318 * config/i386/i386lynx.mh: Mark gdbserver variables
13319 as (currently) obsolete for this target.
13320 * config/i386/nbsd.mt: Likewise.
13321 * config/i386/nbsdelf.mt: Likewise.
13322 * config/m32r/m32r.mt: Likewise.
13323 * config/m68k/m68klynx.mh: Likewise.
13324 * config/m68k/nbsd.mt: Likewise.
13325 * config/m68k/sun3os4.mh: Likewise.
13326 * config/mips/vr5000.mt: Likewise.
13327 * config/ns32k/nbsd.mt: Likewise.
13328 * config/pa/hppabsd.mh: Likewise.
13329 * config/pa/hppaosf.mh: Likewise.
13330 * config/powerpc/nbsd.mt: Likewise.
13331 * config/rs6000/rs6000lynx.mh: Likewise.
13332 * config/s390/s390.mt: Likewise.
13333 * config/s390/s390x.mt: Likewise.
13334 * config/sparc/sparclynx.mh: Likewise.
13335 * config/sparc/sun4os4.mh: Likewise.
13336 * config/i386/x86-64linux.mt: Likewise.
13337 * config/sparc/linux.mh: Likewise.
13338
13339 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13340
13341 * configure.tgt: Configure gdbserver only for known working
13342 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13343 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13344 SUBDIRS if it is configured. Update comment for ${nativefile}.
13345 * configure: Regenerated.
13346
13347 2002-02-13 Michael Snyder <msnyder@redhat.com>
13348
13349 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13350
13351 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13352 (default_gcore_mach): Just return 0, work around a problem in bfd.
13353 (default_gcore_target): OK to return NULL if exec_bfd is null.
13354 (make_mem_sec): Use a cast, avoid a warning.
13355
13356 * procfs.c (find_memory_regions_callback): Use a cast instead of
13357 calling host_pointer_to_address (which complains if
13358 sizeof (host pointer) != sizeof (target pointer)).
13359 (procfs_make_note_section): Avoid overflow in psargs string.
13360
13361 * procfs.c (procfs_make_note_section): Make the default
13362 implementation return an error.
13363
13364 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13365
13366 * procfs.c (procfs_make_note_section): Provide a default definition
13367 (for alpha-dec-osf4.0f). Fix typos.
13368
13369 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13370
13371 * linux-proc.c: Add include of regcache.h.
13372 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13373
13374 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13375
13376 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13377 * memattr.c (create_mem_region): Disallow useless empty region.
13378 Regions are half-open intervals, so allow [A..B) [B..C) as
13379 non-overlapping.
13380
13381 2002-02-13 Michael Chastain <mec@shout.net>
13382
13383 * defs.h: Kill CONST_PTR.
13384 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13385 * c-lang.c (c_builtin_types): Likewise.
13386 * ch-lang.c (ch_builtin_types): Likewise.
13387 * f-lang.c (f_builtin_types): Likewise.
13388 * language.c (unknown_builtin_types): Likewise.
13389 * m2-lang.c (m2_builtin_types): Likewise.
13390 * p-lang.c (pascal_builtin_types): Likewise.
13391 * scm-lang.c (c_builtin_types): Likewise.
13392
13393 2002-02-13 Keith Seitz <keiths@redhat.com>
13394
13395 * arm-tdep.h (arm_get_next_pc): Add declaration.
13396
13397 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13398
13399 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13400 with other related struct-returning functions.
13401 (arm_extract_struct_value_address): New function.
13402 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13403 initialize float_format, double_format and long_double_format as
13404 appropriate to the endianness of the target.
13405 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13406 (arm_use_struct_convention): Delete declaration.
13407 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13408
13409 2002-02-13 Keith Seitz <keiths@redhat.com>
13410
13411 * defs.h (core_addr_to_string_nz): New function.
13412
13413 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13414
13415 Apply missing bits of 2002-01-15 patch.
13416 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13417 (fill_fpregset): Use i387_fill_fsave.
13418
13419 2002-02-12 Keith Seitz <keiths@redhat.com>
13420
13421 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13422 (core_addr_to_string_nz): New function.
13423
13424 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13425
13426 * arm-linux-nat.c: Really include arm-tdep.h.
13427 * config/arm/tm-linux.h (struct type, struct value): Declare.
13428
13429 2002-02-11 Michael Snyder <msnyder@redhat.com>
13430
13431 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13432 (gcore section): Ifdef for Solaris and Unixware only.
13433 (procfs_do_thread_registers): Unixware needs one lwpstatus
13434 per thread (not one prstatus or pstatus).
13435 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13436 not over all gdb threads. For unixware, call elfcore_write_pstatus
13437 once before iterating over threads.
13438
13439 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13440
13441 * arm-tdep.h: New file.
13442 * arm-tdep.c: Include arm-tdep.h.
13443 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13444 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13445 (arm_print_float_info, arm_register_type, convert_to_extended)
13446 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13447 (arm_extract_return_value, arm_register_name): Make static.
13448 (arm_software_single_step): Similarly. Fix types in declaration.
13449 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13450 (arm_store_return_value, arm_store_struct_return): New functions.
13451 (arm_gdbarch_init): Register the above functions. Also register
13452 call_dummy_start_offset, sizeof_call_dummy_words,
13453 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13454 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13455 max_register_virtual_size, register_size. Set up
13456 prologue_cache.saved_regs here, rather than ...
13457 (_initialize_arm_tdep): ... here.
13458 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13459 declarations.
13460 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13461 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13462 (arm_print_float_info, arm_register_type, convert_to_extended)
13463 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13464 (arm_extract_return_value, arm_register_name): Delete declarations.
13465 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13466 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13467 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13468 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13469 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13470 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13471 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13472 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13473 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13474 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13475 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13476 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13477 interface.
13478 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13479 * remote-rdi.c remote-rdp.c: Likewise.
13480 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13481 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13482 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13483 definition.
13484
13485 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13486 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13487 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13488 from non-ARM_ prefixed definitions.
13489 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13490 all uses of above.
13491 * remote-rdi.c remote-rdp.c: Likewise.
13492 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13493
13494 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13495
13496 * arm-tdep.c (arm_frameless_function_invocation)
13497 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13498 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13499 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13500 (arm_pop_frame, arm_get_next_pc): Make static.
13501 (arm_gdbarch_init): Register above in gdbarch structure.
13502 (arm_read_fp): Renamed from arm_target_read_fp.
13503 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13504 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13505 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13506 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13507 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13508 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13509 (arm_pc_is_thumb_dummy): Delete declarations.
13510 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13511 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13512 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13513 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13514
13515 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13516
13517 * symtab.c (compare_search_syms): New function.
13518 (sort_search_symbols): New function.
13519 (search_symbols): Sort symbols after searching rather than
13520 before.
13521
13522 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13523
13524 * NEWS: Linux -> GNU/Linux.
13525
13526 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13527
13528 * gdbarch.sh: For for level one methods, disallow a definition
13529 when partially multi-arched. Add comments explaining rationale.
13530 * gdbarch.h: Re-generate.
13531
13532 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13533
13534 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13535 multi-arch partial.
13536
13537 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13538
13539 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13540 field. Use diff -u.
13541 * gdbarch.c: Re-generate.
13542
13543 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13544
13545 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13546 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13547 partial.
13548
13549 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13550
13551 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13552 multi-arch partial.
13553 (PUSH_ARGUMENTS): Switch to using predefault.
13554 * gdbarch.c: Regenerate.
13555
13556 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13557
13558 * valops.c (PUSH_ARGUMENTS): Delete definition.
13559 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13560 partial. Default to default_push_arguments.
13561 * gdbarch.h, gdbarch.c: Regenerate.
13562
13563 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13564
13565 * defs.h (throw_exception): Rename return_to_top_level. Update
13566 comments.
13567 * utils.c (error_stream, internal_verror, quit): Ditto.
13568 * top.c (throw_exception, catcher): Ditto.
13569 * sparclet-rom.c (sparclet_load): Ditto.
13570 * remote.c (interrupt_query, minitelnet): Ditto.
13571 * remote-sds.c (interrupt_query): Ditto.
13572 * remote-mips.c (mips_error, mips_kill): Ditto.
13573 * ocd.c (interrupt_query): Ditto.
13574 * monitor.c (monitor_interrupt_query): Ditto.
13575 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13576 * target.h: Update comment.
13577
13578 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13579
13580 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13581
13582 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13583 default_double_format.
13584 * gdbarch.h, gdbarch.c: Re-generate.
13585 * findvar.c (floatformat_unknown): Delete variable definition.
13586 * doublest.h (floatformat_unknown): Delete variable declaration.
13587
13588 2002-02-09 Jim Blandy <jimb@redhat.com>
13589
13590 * stabsread.c (read_type): Add code to parse Sun's syntax for
13591 prototyped function types.
13592
13593 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13594
13595 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13596 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13597
13598 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13599
13600 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13601 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13602 now _initialize_xcoffsolib gets called again and overrides the
13603 commands from solib.c in a native configuration.
13604
13605 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13606
13607 * doublest.c (store_typed_floating): Don't try to return a value.
13608 Fixes PR gdb/290.
13609
13610 2002-02-08 Jim Blandy <jimb@redhat.com>
13611
13612 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13613 is prototyped and has no arguments, print its argument list as
13614 `(void)'.
13615
13616 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13617
13618 * MAINTAINERS (write-after-approval): Add myself.
13619 (paper-trail): I've escaped!
13620
13621 2002-02-08 Christopher Faylor <cgf@redhat.com>
13622
13623 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13624 changes.
13625 (_initialize_check_for_gdb_ini): Ditto.
13626
13627 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13628
13629 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13630 xaprintf -> xasprintf.
13631
13632 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13633
13634 * win32-nat.c: Remove use of printf and sprintf functions.
13635
13636 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13637
13638 * arm-tdep.c (arm_frame_chain_valid): Make static.
13639 (arm_push_arguments): Likewise.
13640 (arm_gdbarch_init): New function.
13641 (_initialize_arm_tdep): Call it.
13642 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13643 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13644 (FRAME_CHAIN_VALID): Delete.
13645 (arm_frame_chain_valid): Delete declaration.
13646 (PUSH_ARGUMENTS): Delete.
13647 (arm_push_arguments): Delete declaration.
13648 (CALL_DUMMY_P): Delete.
13649
13650 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13651 Corinna Vinschen <vinschen@redhat.com>
13652
13653 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13654 on builtin float types.
13655
13656 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13657
13658 * utils.c: Include <curses.h> before "bfd.h".
13659 * tui/tui-hooks.c: Likewise.
13660 * tui/tui.c: Likewise.
13661 * tui/tuiCommand.c: Likewise.
13662 * tui/tuiData.c: Likewise.
13663 * tui/tuiDataWin.c: Likewise.
13664 * tui/tuiDisassem.c: Likewise.
13665 * tui/tuiGeneralWin.c: Likewise.
13666 * tui/tuiIO.c: Likewise.
13667 * tui/tuiLayout.c: Likewise.
13668 * tui/tuiRegs.c: Likewise.
13669 * tui/tuiSource.c: Likewise.
13670 * tui/tuiSourceWin.c: Likewise.
13671 * tui/tuiStack.c: Likewise.
13672 * tui/tuiWin.c: Likewise.
13673
13674 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13675
13676 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13677 to include space for pseudoregs as well. Update loops accordingly.
13678 (sh_fp_frame_init_saved_regs): Ditto.
13679 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13680
13681 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13682
13683 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13684 Add Richard Earnshaw to Arm maintainers.
13685
13686 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13687
13688 * defs.h (warning_begin): Delete declaration.
13689
13690 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13691 Delete macro.
13692
13693 2002-02-07 Michael Snyder <msnyder@redhat.com>
13694
13695 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13696 Logic bug, remove misplaced else.
13697
13698 2002-02-07 Klee Dienes <klee@apple.com>
13699
13700 * fork-inferior.c (fork_inferior): Add '!' to the list of
13701 characters that need to be quoted when building a string for the
13702 shell. Quote '!' specifically with a backslash, since CSH chokes
13703 when trying to evaluate "str!str".
13704
13705 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13706
13707 * rdi-share/host.h: Only provide a typedef for bool if it is not
13708 defined.
13709
13710 2002-02-04 Michael Snyder <msnyder@redhat.com>
13711
13712 * breakpoint.h (enum bptype): Add new overlay event bp type.
13713 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13714
13715 * breakpoint.c (create_internal_breakpoint): New function.
13716 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13717 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13718 (create_thread_event_breakpoint): Ditto.
13719 (create_solib_event_breakpoint): Ditto.
13720 (create_overlay_event_breakpoint): New function.
13721 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13722 (update_breakpoints_after_exec): Delete and re-initialize
13723 overlay event breakpoints after an exec. Add FIXME comment
13724 about longjmp breakpoint.
13725 (print_it_typical): Ignore overlay event breakpoints.
13726 (print_one_breakpoint): Ditto.
13727 (mention): Ditto.
13728 (bpstat_what): Do not stop for overlay event breakpoints.
13729 (delete_breakpoint): Don't delete overlay event breakpoints.
13730 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13731 (breakpoint_re_set): Re-create overlay event breakpoint.
13732
13733 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13734 (overlay_manual_command): Disable overlay breakpoints.
13735 (overlay_off_command): Disable overlay breakpoints.
13736
13737 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13738
13739 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13740 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13741 to here from config/tm-arm.h.
13742 (coff_sym_is_thumb): Make static.
13743 (arm_elf_make_msymbol_special): New function.
13744 (arm_coff_make_msymbol_special): New function.
13745 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13746 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13747 (coff_sym_is_thumb): Delete declaration.
13748 (arm_elf_make_msymbol_special): Declare.
13749 (arm_coff_make_msymbol_special): Declare.
13750 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13751 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13752
13753 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13754
13755 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13756
13757 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13758
13759 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13760 * gdbarch.c gdbarch.h: Regenerate.
13761 * arch-utils.c (default_print_float_info): New function.
13762 * arch-utils.h (default_print_float_info): Prototype it.
13763 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13764 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13765 (PRINT_FLOAT_INFO): Document it.
13766
13767 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13768 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13769 (PRINT_FLOAT_INFO): Define.
13770
13771 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13772
13773 * win32-nat.c (_initialize_check_for_gdb_ini):
13774 Add typecast to sprintf argument to suppress a warning.
13775
13776 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13777
13778 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13779 to allow easier handling of pass state.
13780 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13781 that gives exception name and address.
13782 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13783 and set last_sig value to ourstatus->value.sig. Some missing
13784 exceptions added.
13785 (child_continue): Correctly report continue_status.
13786 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13787 TARGET_SIGNAL_0 (new default value).
13788 (child_resume): consider sig argument passed to decide if
13789 the exception should be passed to debuggee or not.
13790
13791 2002-02-05 Michael Snyder <msnyder@redhat.com>
13792
13793 * regcache.c (fetch_register): Call target_fetch_register
13794 only if we don't call FETCH_PSEUDO_REGISTER.
13795 (store_register): Call target_store_register only if we
13796 don't call STORE_PSEUDO_REGISTER.
13797
13798 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13799
13800 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13801 ELF_MAKE_MSYMBOL_SPECIAL.
13802 * gdbarch.c, gdbarch.h: Regenerate.
13803 * arch-utils.c (default_make_msymbol_special): New function.
13804 * arch-utils.h (default_make_msymbol_special): Export.
13805 * elfread.c (elf_symtab_read): Compile use of
13806 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13807 multiarched.
13808 * coffread.c (coff_symtab_read): Ditto, for
13809 COFF_MAKE_MSYMBOL_SPECIAL.
13810
13811 2002-02-05 Jim Blandy <jimb@redhat.com>
13812
13813 * solib-svr4.c (svr4_truncate_ptr): New function.
13814 (svr4_relocate_section_addresses): Do the address arithmetic with
13815 the appropriate truncation for target addresses, even when
13816 CORE_ADDR is larger than a target address.
13817
13818 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13819
13820 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13821 to (int *).
13822
13823 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13824
13825 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13826 code.
13827
13828 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13829
13830 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13831
13832 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13833
13834 * gdbserver/linux-low.c: Remove unused include files.
13835
13836 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13837
13838 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13839 (read_inferior_memory): Use it.
13840 (write_inferior_memory): Likewise.
13841
13842 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13843
13844 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13845 grubbing through sys_errlist.
13846
13847 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13848
13849 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13850
13851 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13852 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13853
13854 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13855
13856 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13857 (do_sfunc, set_cmd_sfunc): New functions.
13858
13859 * command.h (struct cmd_list_element): Add field func.
13860 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13861 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13862 * cli/cli-decode.h: Ditto.
13863
13864 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13865 (help_all, help_cmd_list): Ditto.
13866 (find_cmd, complete_on_cmdlist): Ditto.
13867 * top.c (execute_command): Ditto.
13868
13869 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13870 function.sfunc.
13871
13872 * infcmd.c (notice_args_read): Fix function signature.
13873
13874 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13875 * cli/cli-decode.c (add_set_cmd): Ditto.
13876 * utils.c (initialize_utils): Ditto.
13877 * maint.c (_initialize_maint_cmds): Ditto.
13878 * infrun.c (_initialize_infrun): Ditto.
13879 * demangle.c (_initialize_demangler): Ditto.
13880 * remote.c (add_packet_config_cmd): Ditto.
13881 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13882 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13883 * proc-api.c (_initialize_proc_api): Ditto.
13884 * kod.c (_initialize_kod): Ditto.
13885 * valprint.c (_initialize_valprint): Ditto.
13886 * top.c (init_main): Ditto.
13887 * infcmd.c (_initialize_infcmd): Ditto.
13888 * corefile.c (_initialize_core): Ditto.
13889 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13890 * arch-utils.c (initialize_current_architecture): Ditto.
13891 (_initialize_gdbarch_utils): Ditto.
13892 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13893
13894 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13895 * wince.c (_initialize_inftarg): Ditto.
13896 * symfile.c (_initialize_symfile): Ditto.
13897 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13898 * language.c (_initialize_language): Ditto.
13899 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13900
13901 2002-02-04 Michael Snyder <msnyder@redhat.com>
13902
13903 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13904
13905 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13906
13907 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13908 Add rules for building the register data files.
13909
13910 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13911
13912 * regformats/regdat.sh: Add braces to the definition of
13913 expedite_regs_${arch}.
13914
13915 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13916
13917 * regformats/regdef.h (struct reg): Add comment describing the
13918 requirements for offset and size fields.
13919
13920 2002-02-04 Andreas Schwab <schwab@suse.de>
13921
13922 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13923 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13924
13925 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13926
13927 * gdbarch.sh (copyright): Update years in generated header.
13928 (SMASH_TEXT_ADDRESS): Add rule.
13929 * gdbarch.h, gdbarch.c: Re-generate.
13930 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13931 * dbxread.c: Likewise.
13932 * dwarfread.c: Likewise.
13933 * elfread.c: Likewise.
13934 * somread.c: Likewise.
13935
13936 * arm-tdep.c (arm_smash_text_address): New function.
13937 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13938
13939 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13940
13941 Add support for hardware watchpoints on win32 native.
13942 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13943 CONTEXT_DEBUG_REGISTERS.
13944 (dr variable): New variable. Static array containing a local copy
13945 of debug registers.
13946 (debug_registers_changed): New variable. Reflects when debug registers
13947 are changed and need to be written to inferior.
13948 (debug_registers_used): New variable. Reflects when any debug register
13949 was set, used when new threads are created.
13950 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13951 i386-nat code.
13952 (thread_rec): Set dr array if id is the thread of current_event .
13953 (child_continue, child_resume): Change the debug registers for all
13954 threads if debug_registers_changed.
13955 (child_add_thread): Change the debug registers if debug_registers_used.
13956 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13957 Link nm.h to new nm-cygwin.h file.
13958 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13959 of hardware registers.
13960
13961 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13962
13963 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13964 Restore behavour broken by 2002-01-20 Andrew Cagney
13965 <ac131313@redhat.com> IEEE_FLOAT removal.
13966
13967 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13968
13969 * c-valprint.c (c_val_print): Pass a proper valaddr to
13970 cp_print_class_method.
13971 * valops.c (search_struct_method): If there is only one method
13972 and args is NULL, return that method.
13973
13974 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13975
13976 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13977 accessing tag_name directly.
13978
13979 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13980
13981 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13982 of accessing tag_name directly.
13983
13984 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13985
13986 PR gdb/280
13987 * gdbtypes.c (replace_type): New function.
13988 * gdbtypes.h (replace_type): Add prototype.
13989 * stabsread.c (read_type): Use replace_type.
13990
13991 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13992
13993 * Makefile.in (memattr.o): Add missing dependencies rule.
13994
13995 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13996
13997 * breakpoint.c (break_at_finish_command): Really export.
13998 (break_at_finish_at_depth_command): Ditto.
13999 (tbreak_at_finish_command): Ditto.
14000 * hppa-tdep.c: Include completer.h.
14001 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14002 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14003
14004 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14005
14006 * utils.c (do_write): New function.
14007 (error_stream): Rewrite combining the code from error_begin and
14008 verror.
14009 (verror): Rewrite using error_stream.
14010 (error_begin): Delete function.
14011
14012 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14013
14014 * utils.c (error_begin): Make static.
14015 * defs.h (error_begin): Delete declaration.
14016
14017 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14018 (decode_line_1): Use cplusplus_error instead of error_begin,
14019 cplusplus_hint and return_to_top_level.
14020 * coffread.c (coff_symfile_read): Use error instead of error_begin
14021 and return_to_top_level.
14022 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14023
14024 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14025
14026 * language.h (type_error, range_error): Make string parameter
14027 constant.
14028 * language.c (warning_pre_print): Delete extern declaration.
14029 * dwarfread.c (warning_pre_print): Ditto.
14030 * language.c (type_error, range_error): Rewrite to use verror and
14031 vwarning instead of warning_begin.
14032
14033 2002-02-01 Michael Snyder <msnyder@redhat.com>
14034
14035 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14036 (set_ignore_count): Move misplaced comment back where it belongs.
14037
14038 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14039
14040 * command.h (NO_FUNCTION): Delete macro.
14041 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14042 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14043 * tracepoint.c (_initialize_tracepoint): Ditto.
14044 * cli/cli-decode.c (add_set_cmd): Ditto.
14045 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14046
14047 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14048
14049 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14050 Update ``this'' pointer when calling virtual functions.
14051
14052 2002-02-01 Michael Snyder <msnyder@redhat.com>
14053
14054 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14055 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14056
14057 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14058
14059 * regformats/reg-arm.dat: New file.
14060 * regformats/reg-i386.dat: New file.
14061 * regformats/reg-ia64.dat: New file.
14062 * regformats/reg-m68k.dat: New file.
14063 * regformats/reg-mips.dat: New file.
14064 * regformats/reg-ppc.dat: New file.
14065 * regformats/reg-sh.dat: New file.
14066 * regformats/regdef.h: New file.
14067 * regformats/regdat.sh: New file.
14068
14069 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14070
14071 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14072 (arm_frame_args_address, arm_frame_locals_address): New functions.
14073 (arm_frame_num_args): New function.
14074 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14075 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14076 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14077
14078 2002-01-31 Michael Snyder <msnyder@redhat.com>
14079
14080 * breakpoint.c (break_at_finish_command): Export.
14081 (break_at_finish_at_depth_command): Export.
14082 (tbreak_at_finish_command): Export.
14083 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14084 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14085 "txbreak" commands, which are HPPA specific.
14086
14087 * printcmd.c (disassemble_command): Remove an ancient
14088 artifact of an old merge.
14089
14090 * symfile.h (enum overlay_debugging_state):
14091 Define enum constant values for overlay mode.
14092 * symfile.c (overlay_debugging): Use enums instead of literals.
14093 (overlay_is_mapped, overlay_auto_command,
14094 overlay_manual_command): Ditto.
14095
14096 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14097 breakpoint_here_p, breakpoint_inserted_here_p,
14098 breakpoint_thread_match, bpstat_stop_status,
14099 describe_other_breakpoints, check_duplicates, clear_command):
14100 Coding standard fixes.
14101
14102 * target.c (target_xfer_memory): Add spaces, coding standard.
14103 (do_xfer_memory): Add missing line to trust-readonly
14104 code: check bfd SEC_READONLY flag for section.
14105
14106 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14107
14108 * PROBLEMS: Fix typo, 5.1->5.1.1.
14109
14110 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14111
14112 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14113 data symbols, since we search based on textlow and texthigh.
14114 (find_pc_sect_symtab): Likewise.
14115
14116 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14117
14118 * defs.h (vwarning): Declare.
14119 * utils.c (vwarning): New function.
14120 (warning): Call vwarning.
14121 (warning_begin): Delete function.
14122
14123 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14124 the warning message.
14125 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14126 warning_begin.
14127
14128 2002-01-30 Michael Snyder <msnyder@redhat.com>
14129
14130 * NEWS: Mention "set trust-readonly-sections" command.
14131 Mention generate-core-file command.
14132
14133 2002-01-15 Michael Snyder <msnyder@redhat.com>
14134
14135 * target.c: New command, "set trust-readonly-sections on".
14136 (do_xfer_memory): Honor the suggestion to trust readonly sections
14137 by reading them from the object file instead of from the target.
14138 (initialize_targets): Register command "set trust-readonly-sections".
14139
14140 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14141
14142 * parse.c (target_map_name_to_register): Simplify, search regs and
14143 pseudo-regs using a single loop.
14144
14145 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14146
14147 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14148
14149 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14150
14151 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14152 * config/i386/i386v42mp.mh: Add i387-nat.o .
14153 * i386v4-nat.c: Include i387-nat.h.
14154 (supply_fpregset): Use i387_supply_fsave.
14155 (fill_fpregset): Use i387_fill_fsave.
14156
14157 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14158
14159 * arm-tdep.c (arm_call_dummy_words): Define.
14160 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14161 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14162 (CALL_DUMMY_WORDS): Define.
14163 (arm_call_dummy_words): Declare.
14164 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14165 (arm_linux_call_dummy_words): Declare.
14166
14167 2002-01-30 Andreas Schwab <schwab@suse.de>
14168
14169 * m68klinux-nat.c: Fix last change to use regcache_collect
14170 instead of referencing registers[] directly.
14171
14172 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14173
14174 * parse.c (target_map_name_to_register): Delete code wrapped in
14175 #ifdef REGISTER_NAME_ALIAS_HOOK.
14176
14177 2002-01-28 Michael Snyder <msnyder@redhat.com>
14178
14179 * regcache.c (legacy_read_register_gen): Need to be able to
14180 read pseudo-register as well as real register.
14181 (legacy_write_register_gen): Ditto.
14182
14183 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14184
14185 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14186 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14187 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14188 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14189 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14190 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14191 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14192 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14193 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14194 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14195 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14196 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14197 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14198 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14199 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14200 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14201 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14202 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14203 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14204 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14205
14206 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14207
14208 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14209 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14210 (initialize_current_architecture): Update target_byte_order using
14211 information from BFD.
14212 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14213 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14214
14215 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14216
14217 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14218 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14219
14220 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14221 #ifdef INVALID_FLOAT.
14222 * infcmd.c (do_registers_info): Ditto.
14223 * values.c (unpack_double): Ditto. Add comment.
14224
14225 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14226 already commented out.
14227
14228 2002-01-26 Andreas Schwab <schwab@suse.de>
14229
14230 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14231 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14232 registers and add support for PTRACE_GETREGS.
14233
14234 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14235
14236 GDB 5.1.1 released from 5.1 branch.
14237 * NEWS: Add 5.1.1 news.
14238 * README: Sync with 5.1 branch.
14239
14240 2002-01-23 Fred Fish <fnf@redhat.com>
14241
14242 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14243 stabstring on initial malloc. Reallocing will copy it for us,
14244 if necessary.
14245
14246 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14247
14248 * Makefile.in (hpread_h): Delete.
14249 (HFILES_NO_SRCDIR): Remove hpread.h.
14250 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14251 (hpread.o): Update dependencies.
14252 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14253
14254 * hp-psymtab-read.c: Remove file.
14255 * hp-symtab-read.c: Remove file.
14256 * hpread.h: Remove file.
14257
14258 * hpread.c: Merge all contents of hp-psymtab-read.c,
14259 hp-symtab-read.c and hpread.h into this file, as it was prior to
14260 January 1999.
14261
14262 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14263 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14264 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14265 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14266
14267 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14268
14269 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14270 fill_gregset): Call gdbarch_tdep() just once, assign result to
14271 variable and use that, instead of calling the function several
14272 times.
14273
14274 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14275
14276 * configure.host: Accept sparcv9 as alias for sparc64.
14277 * configure.tgt: Likewise.
14278
14279 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14280
14281 * solib-aix5.c (build_so_list_from_mapfile)
14282 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14283 arguments is not reversed.
14284 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14285 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14286
14287 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14288
14289 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14290 modified version of obsolete sh_fetch_pseudo_register.
14291 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14292 (sh4_register_read): New function.
14293 (sh_pseudo_register_write): New function. Renamed and modified
14294 version of obsolete sh_store_pseudo_register.
14295 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14296 (sh4_register_write): New function.
14297 (sh_gdbarch_init): Remove setting of gdbarch function
14298 fetch_pseudo_register and store_pseudo_register. Remove setting of
14299 register_convert_to_raw, register_convert_to_virtual,
14300 register_convertible.
14301 (sh_sh4_register_convertible): Delete. No longer needed. All is
14302 taken care by architecture specific functions
14303 register_read/register_write.
14304 (sh_sh4_register_convert_to_virtual): Make static.
14305 (sh_sh4_register_convert_to_raw): Ditto.
14306
14307 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14308
14309 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14310 (floatformat_is_nan, floatformat_mantissa): Ditto.
14311
14312 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14313 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14314 builtin_type_ieee_double_little,
14315 builtin_type_ieee_double_littlebyte_bigword,
14316 builtin_type_m68881_ext, builtin_type_i960_ext,
14317 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14318 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14319 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14320 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14321
14322 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14323
14324 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14325 parameter. Set frameless flag if it exists and depended of
14326 whether the scanned function is frameless or not.
14327 (xstormy16_skip_prologue): If function is frameless, return
14328 result of xstormy16_scan_prologue().
14329 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14330 call.
14331
14332 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14333
14334 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14335 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14336 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14337 sh_sh4_register_byte, sh_sh4_register_raw_size,
14338 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14339 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14340 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14341 sh_store_pseudo_register, sh_do_pseudo_register): Call
14342 gdbarch_tdep() just once, assign result to variable and use that,
14343 instead of calling the function several times.
14344
14345 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14346
14347 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14348 macros instead of LAST_FPU_CTRL_REGNUM.
14349 (store_register): Likewise.
14350
14351 2002-01-21 Jim Blandy <jimb@redhat.com>
14352
14353 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14354 is up-to-date before running the program, not just when a program
14355 exits.
14356
14357 2002-01-21 Fred Fish <fnf@redhat.com>
14358
14359 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14360 when we have found all instructions we are looking for.
14361
14362 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14363
14364 * arm-tdep.c (arm_register_name): New function.
14365 (arm_registers_names): Make static.
14366 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14367 (arm_register_name): Declare.
14368 (REGISTER_NAME): Use it.
14369
14370 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14371 Kevin Buettner <kevinb@redhat.com>
14372
14373 Convert arm targets to new FRAME interface.
14374 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14375 (arm_frame_find_save_regs): Delete.
14376 (arm_frame_init_saved_regs): New.
14377 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14378 Allocate extra_info as required. Convert all uses of fsr.regs
14379 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14380 to use extra_info.
14381 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14382 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14383 (check_prologue_cache, save_prologue_cache): Likewise.
14384 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14385 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14386 (FRAME_FIND_SAVED_REGS): Delete.
14387 (arm_frame_find_saved_regs): Delete prototype.
14388 (arm_frame_init_saved_regs): New prototype.
14389 (FRAME_INIT_SAVED_REGS): Define.
14390
14391 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14392
14393 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14394
14395 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14396
14397 From Jeff Law <law@redhat.com>:
14398 * infttrace.c: Include <sys/pstat.h>.
14399 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14400 exec file if the ttrace equivalent fails.
14401
14402 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14403
14404 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14405 (closeLogFile): Ditto.
14406
14407 2002-01-20 Michael Chastain <mec@shout.net>
14408
14409 * top.c (print_gdb_version): Bump copyright year to 2002.
14410
14411 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14412
14413 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14414 Zannoni and Eli Zaretskii.
14415
14416 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14417
14418 * buildsym.c: Update copyright years.
14419 * c-typeprint.c: Likewise.
14420 * dwarf2read.c: Likewise.
14421 * f-typeprint.c: Likewise.
14422 * gdbtypes.c: Likewise.
14423 * gdbtypes.h: Likewise.
14424 * hp-symtab-read.c: Likewise.
14425 * hpread.c: Likewise.
14426 * mdebugread.c: Likewise.
14427 * p-typeprint.c: Likewise.
14428
14429 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14430
14431 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14432 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14433 byte-order selectable.
14434 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14435 * arch-utils.c: Ditto.
14436 (set_endian): Ditto.
14437 (set_endian_from_file): Ditto.
14438 * gdbserver/low-sim.c (create_inferior): Ditto.
14439 * gdbarch.sh: Ditto.
14440 * gdbarch.h: Re-generate.
14441 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14442 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14443 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14444 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14445 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14446 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14447 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14448 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14449 macro definition.
14450 * config/mips/tm-wince.h: Remove #undef of macro
14451 TARGET_BYTE_ORDER_SELECTABLE.
14452 * config/sh/tm-wince.h: Ditto.
14453
14454 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14455
14456 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14457 member function fields. Add accessor macro
14458 TYPE_FN_FIELD_ARTIFICIAL.
14459 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14460 * c-typeprint.c (c_type_print_base): Skip artificial member
14461 functions.
14462
14463 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14464
14465 * f-typeprint.c: Delete unused function f_type_print_args.
14466 * p-typeprint.c: Delete unused function pascal_type_print_args.
14467
14468 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14469
14470 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14471 comment. Add ``artificial'' to ``union field_location''.
14472
14473 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14474
14475 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14476 * mdebugread.c (parse_symbol): Likewise.
14477 * stabsread.c (define_symbol): Likewise.
14478 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14479 initializing TYPE_FIELD_BITPOS to n (obsolete).
14480 (hpread_doc_function_type): Likewise.
14481 * hpread.c (hpread_function_type): Likewise.
14482
14483 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14484
14485 * configure.in (host_makefile_frag): Only require a host makefile
14486 fragment when a native build.
14487 * configure: Re-generate.
14488
14489 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14490
14491 * doublest.h (floatformat_from_type): Declare.
14492 * doublest.c (floatformat_from_type): New function.
14493 (convert_typed_floating): Use.
14494
14495 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14496 call to function floatformat_from_type.
14497
14498 * gdbarch.sh (IEEE_FLOAT): Delete.
14499 * gdbarch.h, gdbarch.c: Re-generate.
14500 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14501 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14502 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14503 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14504 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14505 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14506 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14507 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14508 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14509 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14510 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14511 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14512
14513 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14514 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14515 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14516 * sh-tdep.c (sh_gdbarch_init): Ditto.
14517 * mips-tdep.c (mips_gdbarch_init): Ditto.
14518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14519 * cris-tdep.c (cris_gdbarch_init): Ditto.
14520
14521 2002-01-20 Jiri Smid <smid@suse.cz>
14522
14523 * configure.host, configure.tgt: Support x86-64.
14524 * NEWS: Note new target x86-64.
14525
14526 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14527 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14528 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14529 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14530 x86-64-linux-nat.o): Fix dependencies.
14531
14532 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14533
14534 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14535 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14536 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14537 * config/sparc/xm-sun4os4.h: Delete file.
14538 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14539
14540 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14541
14542 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14543 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14544 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14545 * config/i386/i386lynx.mh (XM_FILE): Delete.
14546 * config/rs6000/xm-rs6000ly.h: Delete file.
14547 * config/sparc/xm-sparclynx.h: Delete file.
14548 * config/m68k/xm-m68klynx.h: Delete file.
14549 * config/i386/xm-i386lynx.h: Delete file.
14550 * config/xm-lynx.h: Delete file.
14551 * config/djgpp/fnchange.lst: Update.
14552
14553 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14554
14555 * alpha-tdep.c (alpha_register_byte): New function.
14556 (alpha_register_raw_size): Ditto.
14557 (alpha_register_virtual_size): Ditto.
14558 (alpha_skip_prologue_internal): Renamed from
14559 alpha_skip_prologue.
14560 (alpha_skip_prologue): New version that calls
14561 alpha_skip_prologue_internal.
14562 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14563 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14564 second argument from alpha_skip_prologue.
14565 (REGISTER_BYTE): Use alpha_register_byte.
14566 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14567 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14568 (FRAMELESS_FUNCTION_INVOCATION): Use
14569 generic_frameless_function_invocation_not.
14570 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14571 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14572
14573 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14574
14575 * config/mips/xm-news-mips.h: Delete file.
14576 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14577
14578 * config/m88k/xm-m88k.h: Delete file.
14579 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14580 * config/m88k/xm-delta88v4.h: Ditto.
14581 * config/m88k/xm-delta88.h: Ditto.
14582
14583 * config/alpha/xm-fbsd.h: Delete file.
14584 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14585
14586 * config/sparc/xm-sparc.h: Delete file.
14587 * Makefile.in (xm-sun4os4.h): Delete dependency.
14588 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14589 * config/sparc/xm-sun4os4.h: Ditto.
14590 * config/sparc/xm-linux.h: Ditto.
14591
14592 * config/i386/xm-windows.h: Delete file.
14593
14594 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14595
14596 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14597 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14598
14599 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14600
14601 * alpha-tdep.c (alpha_call_dummy_words): New.
14602 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14603 (CALL_DUMMY_P): Define.
14604 (CALL_DUMMY_WORDS): Define.
14605 (SIZEOF_CALL_DUMMY_WORDS): Define.
14606
14607 2002-01-19 Per Bothner <per@bothner.com>
14608
14609 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14610 isn't NULL, which can happen with some gcj-3.x-produced code.
14611
14612 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14613
14614 * alpha-tdep.c (alpha_register_virtual_type): New function.
14615 (alpha_init_frame_pc_first): Ditto.
14616 (alpha_fix_call_dummy): Ditto.
14617 (alpha_store_struct_return): Ditto.
14618 (alpha_extract_struct_value_address): Ditto.
14619 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14620 alpha_register_virtual_type.
14621 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14622 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14623 alpha_extract_struct_value_address.
14624 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14625 (INIT_FRAME_PC): Use init_frame_pc_noop.
14626 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14627
14628 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14629
14630 * i386gnu-nat.c: Include "i386-tdep.h".
14631 (fetch_fpregs): Simplify code dealing with uninitialized floating
14632 point states such that it doesn't require FP7_REGNUM.
14633
14634 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14635
14636 * alpha-tdep.c (frame_extra_info): New.
14637 (alpha_find_saved_regs): Make static. Use
14638 frame->extra_info.
14639 (alpha_frame_init_saved_regs): New function.
14640 (alpha_frame_saved_pc): Use frame->extra_info.
14641 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14642 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14643 (init_extra_frame_info): Rename to...
14644 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14645 (alpha_print_extra_frame_info): New function.
14646 (alpha_frame_locals_address): Ditto.
14647 (alpha_frame_args_address): Ditto.
14648 (alpha_pop_frame): Use frame->extra_info.
14649 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14650 alpha_frame_args_address.
14651 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14652 (alpha_find_saved_regs): Remove prototype.
14653 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14654 (EXTRA_FRAME_INFO): Remove.
14655 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14656 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14657
14658 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14659
14660 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14661 (alpha_cannot_fetch_register): Ditto.
14662 (alpha_cannot_store_register): Ditto.
14663 (alpha_register_convertible): Ditto.
14664 (alpha_use_struct_convention): Ditto.
14665 * config/alpha/tm-alpha.h: Update copyright years.
14666 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14667 (INNER_THAN): Use core_addr_lessthan.
14668 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14669 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14670 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14671 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14672 (FRAME_CHAIN): Remove unnecessary cast.
14673
14674 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14675
14676 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14677 obsolete.
14678
14679 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14680
14681 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14682 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14683 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14684 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14685 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14686 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14687 * x86-64-linux-nat.c: Ditto.
14688
14689 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14690
14691 * alpha-tdep.c (alpha_register_name): New function.
14692 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14693 (REGISTER_NAME): Define.
14694
14695 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14696
14697 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14698
14699 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14700
14701 * alpha-tdep.c: Update copyright years.
14702 (alpha_next_pc): New function.
14703 (alpha_software_single_step): Ditto.
14704 * config/alpha/tm-alpha.h: Add prototype for
14705 alpha_software_single_step.
14706
14707 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14708
14709 * alphabsd-nat.c: Update copyright years.
14710 (fill_gregset): Use regcache_collect.
14711 (fill_fpregset): Likewise.
14712 (fetch_inferior_registers): Only fetch integer registers
14713 if requested to do so.
14714 (store_inferior_registers): Only store integer registers
14715 if requested to do so.
14716
14717 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14718
14719 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14720 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14721 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14722 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14723 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14724 * config/arm/linux.mh (XDEPFILES): Delete.
14725 * config/arm/nbsd.mh (XDEPFILES): Delete.
14726 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14727 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14728 * config/i386/i386m3.mh (XDEPFILES): Delete.
14729 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14730 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14731 * config/i386/fbsd.mh (XDEPFILES): Delete.
14732 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14733 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14734 * config/i386/i386v4.mh (XDEPFILES): Delete.
14735 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14736 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14737 * config/i386/i386aix.mh (XDEPFILES): Delete.
14738 * config/i386/go32.mh (XDEPFILES): Delete.
14739 * config/i386/cygwin.mh (XDEPFILES): Delete.
14740 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14741 * config/i386/i386mach.mh (XDEPFILES): Delete.
14742 * config/i386/i386v32.mh (XDEPFILES): Delete.
14743 * config/i386/linux.mh (XDEPFILES): Delete.
14744 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14745 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14746 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14747 * config/i386/i386sco.mh (XDEPFILES): Delete.
14748 * config/i386/i386v.mh (XDEPFILES): Delete.
14749 * config/i386/nbsd.mh (XDEPFILES): Delete.
14750 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14751 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14752 * config/i386/symmetry.mh (XDEPFILES): Delete.
14753 * config/i386/obsd.mh (XDEPFILES): Delete.
14754 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14755 * config/ia64/linux.mh (XDEPFILES): Delete.
14756 * config/ia64/aix.mh (XDEPFILES): Delete.
14757 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14758 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14759 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14760 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14761 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14762 * config/m68k/linux.mh (XDEPFILES): Delete.
14763 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14764 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14765 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14766 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14767 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14768 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14769 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14770 * config/m88k/delta88.mh (XDEPFILES): Delete.
14771 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14772 * config/m88k/m88k.mh (XDEPFILES): Delete.
14773 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14774 * config/mips/linux.mh (XDEPFILES): Delete.
14775 * config/mips/irix6.mh (XDEPFILES): Delete.
14776 * config/mips/irix5.mh (XDEPFILES): Delete.
14777 * config/mips/irix4.mh (XDEPFILES): Delete.
14778 * config/mips/irix3.mh (XDEPFILES): Delete.
14779 * config/mips/decstation.mh (XDEPFILES): Delete.
14780 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14781 (NATDEPFILES): Move core-aout.o to here.
14782 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14783 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14784 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14785 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14786 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14787 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14788 * config/pa/hpux11.mh (XDEPFILES): Delete.
14789 * config/powerpc/aix.mh (XDEPFILES): Delete.
14790 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14791 * config/powerpc/linux.mh (XDEPFILES): Delete.
14792 * config/romp/rtbsd.mh: Rename XDEPFILES.
14793 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14794 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14795 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14796 * config/s390/s390.mh (XDEPFILES): Delete.
14797 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14798 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14799 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14800 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14801 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14802 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14803 * config/sparc/linux.mh (XDEPFILES): Delete.
14804 * config/vax/vaxult.mh (XDEPFILES): Delete.
14805 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14806 * Makefile.in (DEPFILES): Remove XDEPFILES.
14807
14808 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14809
14810 * utils.c (internal_verror): Fix comments, default is yes not no.
14811 Update queries to match. Default to quit and dump core.
14812
14813 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14814
14815 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14816 copyright.
14817 * defs.h, event-top.c, gdbcmd.h: Ditto.
14818 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14819 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14820 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14821 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14822 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14823 * mi/mi-main.c:Ditto.
14824
14825 * stack.c, symfile.c: Update copyright.
14826
14827 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14828
14829 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14830 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14831 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14832 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14833
14834 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14835
14836 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14837 * gdbserver/low-lynx.c (myattach): Likewise.
14838 * gdbserver/low-nbsd.c (myattach): Likewise.
14839 * gdbserver/low-sim.c (myattach): Likewise.
14840 * gdbserver/low-sparc.c (myattach): Likewise.
14841 * gdbserver/low-sun3.c (myattach): Likewise.
14842
14843 * gdbserver/low-linux.c (myattach): New function.
14844
14845 * gdbserver/server.c (attach_inferior): New function.
14846 (main): Handle "--attach".
14847
14848 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14849
14850 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14851 maintainer.
14852
14853 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14854
14855 * c-typeprint.c (is_type_conversion_operator): Add additional
14856 check for non-conversion operators.
14857
14858 2002-01-15 Michael Snyder <msnyder@redhat.com>
14859
14860 * linux-proc.c: Add "info proc" command, a la procfs.c.
14861 (read_mapping): New function, abstract and re-use code.
14862 (linux_find_memory_regions): Use new func read_mapping.
14863 (linux_info_proc_cmd): New function, implement "info proc".
14864 (_initialize_linux_proc): Add new command "info proc".
14865
14866 2002-01-15 Michael Snyder <msnyder@redhat.com>
14867
14868 * symfile.c (generic_load): Use bfd_map_over_sections method
14869 instead of manipulating bfd structure members directly.
14870 (add_section_size_callback): New function, bfd sections callback
14871 used by generic_load.
14872 (load_sections_callback): New function, bfd sections callback
14873 used by generic_load.
14874
14875 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14876
14877 [Based on work by Jim Blandy]
14878 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14879 (builtin_type_vec128): Export.
14880 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14881 types.
14882 (builtin_type_vec128): New builtin type for 128 bit vector
14883 registers.
14884 (build_gdbtypes): Initialize builtin_type_v16qi and
14885 builtin_type_v8hi. Create the vec128 register builtin type
14886 structure.
14887 (build_builtin_type_vec128): New function.
14888 (_initialize_gdbtypes): Register builtin_type_v16qi and
14889 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14890 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14891 AltiVec register to new builtin type.
14892
14893 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14894
14895 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14896 to make_cv_type.
14897
14898 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14899
14900 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14901 CLEAN_UP_REGISTER_VALUE.
14902 * regcache.c (supply_register): Update only call.
14903
14904 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14905
14906 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14907 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14908 a29k-*-vxworks* targets as obsolete.
14909
14910 2002-01-14 Michael Snyder <msnyder@redhat.com>
14911
14912 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14913 until we can resolve portability issues.
14914 * gregset.h: Remove references to fpxregs.
14915 * gcore.c (gcore_command): Initialize note_sec to NULL.
14916
14917 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14918
14919 * signals.c (target_signal_to_name): Rewrite. Only use
14920 signals[].name when in bounds and non-NULL.
14921
14922 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14923
14924 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14925 * signals.c (target_signal_to_name): Verify that SIG is within the
14926 bounds of the signals array.
14927
14928 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14929
14930 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14931
14932 2002-01-13 Keith Seitz <keiths@redhat.com>
14933
14934 * stack.c (print_frame_info_base): Print the frame's pc
14935 only if when print_frame_info_listing_hook is not defined.
14936
14937 2002-01-13 Keith Seitz <keiths@redhat.com>
14938
14939 * varobj.c (varobj_set_value): Make sure that there were no
14940 errors evaluating the object before attempting to set its
14941 value.
14942 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14943 so this offset adjustment is no longer necessary.
14944 (create_child): Don't set the error flag if the child is
14945 a CPLUS_FAKE_CHILD.
14946 (value_of_child): If value_fetch_lazy fails, return NULL
14947 so that callers will be notified that an error occurred.
14948 (c_value_of_variable): Delay check of variable's validity
14949 until later. We actually want all structs and unions to have
14950 the value "{...}".
14951 Do not return "???" for variables which could not be evaluated.
14952 This error condition must be returned to the caller so that it
14953 can get the error condition from gdb.
14954 (cplus_name_of_child): Adjust index for vptr before figuring
14955 out the name of the child.
14956 (cplus_value_of_child): If a child's (real) parent is not valid,
14957 don't even bother trying to give a value for it. Just return
14958 an error. Change all instances in this function.
14959 (cplus_type_of_child): If our parent is one of the "fake"
14960 parents, we need to get at the type of the real parent, and
14961 derive the child's true type using this information.
14962
14963 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14964
14965 From 2002-01-09 John Marshall <johnm@falch.net>:
14966 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14967 sources.redhat.com, and tweak some related URLs which had
14968 suffered from linkrot.
14969
14970 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14971
14972 From Jeff law:
14973 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14974 structures passed in registers.
14975
14976 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14977
14978 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14979 white space which prevented compilation. Reported by DSK
14980 <dsk@student.unsw.edu.au>.
14981
14982 2002-01-11 Michael Snyder <msnyder@redhat.com>
14983
14984 * symfile.c (build_section_addr_info_from_section_tab):
14985 Use bfd access method instead of manipulating bfd directly.
14986 (syms_from_objfile): Ditto.
14987 (simple_overlay_update_1): Ditto.
14988 (simple_overlay_update): Ditto.
14989 (generic_load): Ditto.
14990 (overlay_unmapped_address): FIXME comment, bfd access methods.
14991 (sections_overlap): FIXME comment, bfd access methods.
14992 (pc_in_mapped_range): FIXME comment, bfd access methods.
14993 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14994 (section_is_mapped): FIXME comment, bfd access methods.
14995 (section_is_overlay): FIXME comment, bfd access methods.
14996
14997 * symfile.c (generic_load): Whitespace and long line cleanups.
14998 Remove duplicate variable, change several local variables to
14999 more appropriate data types.
15000 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15001
15002 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15003
15004 From Peter Schauer:
15005 * language.c (longest_local_hex_string_custom): Use phex_nz to
15006 convert NUM to a hex string.
15007
15008 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15009
15010 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15011 the function.
15012 Update Copyright year.
15013
15014 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15015
15016 * language.c (longest_raw_hex_string): Delete unused function.
15017
15018 2002-01-11 Petr Sorfa <petrs@caldera.com>
15019
15020 * MAINTAINERS (write-after-approval): Add myself.
15021 * dwarf2read.c (read_tag_string_type): Handling of
15022 DW_AT_byte_size.
15023 (read_tag_string_type): FORTRAN fix to prevent propagation of
15024 first string size.
15025 (set_cu_language): Handling of DW_LANG_Fortran95
15026
15027 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15028
15029 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15030 GETPID(inferior_ptid).
15031 (store_inferior_registers): Likewise.
15032
15033 2002-01-10 Jason Merrill <jason@redhat.com>
15034
15035 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15036 Fix DW_OP_minus.
15037
15038 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15039
15040 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15041 and bfd/elf32-sh-nbsd.c.
15042
15043 2002-01-10 Michael Snyder <msnyder@redhat.com>
15044
15045 * NEWS: Mention --pid and corefile/proc-id behavior change.
15046
15047 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15048 * gcore.c: Include cli/cli-decode.h instead of command.h.
15049
15050 * main.c (captured_main): Add new command line option "--pid".
15051 If the second command line argument (following the symbol-file)
15052 begins with a digit, try to attach to it before trying to open
15053 it as a corefile.
15054 (print_gdb_help): Document the "--pid" argument.
15055
15056 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15057
15058 * completer.c (command_completer): New function.
15059
15060 * completer.h <command_completer>: Add prototype.
15061
15062 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15063 completer for the "help" command.
15064
15065 2002-01-09 Jason Merrill <jason@redhat.com>
15066
15067 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15068
15069 2002-01-09 Michael Snyder <msnyder@redhat.com>
15070
15071 * i386-linux-nat.c (fill_fpxregset): Make global.
15072 (store_fpxregset): Ditto.
15073
15074 * gregset.h (gdb_fpxregset_t): Define.
15075 (supply_fpxregset): Prototype.
15076 (fill_fpxregset): Prototype.
15077
15078 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15079
15080 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15081
15082 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15083 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15084 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15085
15086 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15087
15088 * MAINTAINERS: Update target maintainer rules so that any
15089 Maintainer can approve a tested patch for a maintenance-only
15090 target.
15091
15092 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15093
15094 * MAINTAINERS (write-after-approval): Add myself.
15095
15096 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15097 IN_SIGTRAMP.
15098
15099 2002-01-08 Michael Snyder <msnyder@redhat.com>
15100
15101 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15102 real name of the executable, rather than the /proc name.
15103
15104 2002-01-03 Michael Snyder <msnyder@redhat.com>
15105
15106 Implement a "generate-core-file" command in gdb, save target state.
15107 * gcore.c: New file. Implement new command 'generate-core-file'.
15108 Save a corefile image of the current state of the inferior.
15109 * linux-proc.c: Add linux-specific code for saving corefiles.
15110 * target.h (struct target_ops): Add new target vectors for saving
15111 corefiles; to_find_memory_regions and to_make_corefile_notes.
15112 (target_find_memory_regions): New macro.
15113 (target_make_corefile_notes): New macro.
15114 * target.c (update_current_target): Inherit new target methods.
15115 (dummy_find_memory_regions): New place-holder method.
15116 (dummy_make_corefile_notes): New place-holder method.
15117 (init_dummy_target): Initialize new dummy target vectors.
15118 * exec.c (exec_set_find_memory_regions): New function.
15119 Allow the exec_ops vector for memory regions to be taken over.
15120 (exec_make_note_section): New function, target vector method.
15121 * defs.h (exec_set_find_memory_regions): Export prototype.
15122 * procfs.c (proc_find_memory_regions): New function, corefile method.
15123 (procfs_make_note_section): New function, corefile method.
15124 (init_procfs_ops): Set new target vector pointers.
15125 (find_memory_regions_callback): New function.
15126 (procfs_do_thread_registers): New function.
15127 (procfs_corefile_thread_callback): New function.
15128 * sol-thread.c (sol_find_memory_regions): New function.
15129 (sol_make_note_section): New function.
15130 (init_sol_thread_ops): Initialize new target vectors.
15131 * inftarg.c (inftarg_set_find_memory_regions): New function.
15132 Allow to_find_memory_regions vector to be taken over.
15133 (inftarg_set_make_corefile_notes): New function.
15134 Allow to_make_corefile_notes vector to be taken over.
15135 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15136 interface layer if not target_has_execution (may be a corefile).
15137 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15138 * config/sparc/sun4sol2.mh: Ditto.
15139 * config/alpha/alpha-linux.mh: Ditto.
15140 * config/arm/linux.mh: Ditto.
15141 * config/i386/x86-64linux.mh: Ditto.
15142 * config/ia64/linux.mh: Ditto.
15143 * config/m68k/linux.mh: Ditto.
15144 * config/mips/linux.mh: Ditto.
15145 * config/powerpc/linux.mh: Ditto.
15146 * config/sparc/linux.mh: Ditto.
15147
15148 2002-01-07 Michael Snyder <msnyder@redhat.com>
15149
15150 * arm-linux-nat.c: Remove references to regcache.c internal data
15151 (registers[] and register_valid[]).
15152
15153 2002-01-07 Michael Snyder <msnyder@redhat.com>
15154
15155 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15156 so that attaching to a pid will automatically read the process's
15157 symbol file and shlibs.
15158 * Makefile.in: Add rule for linux-proc.o.
15159 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15160 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15161 * config/arm/linux.mh: Ditto.
15162 * config/i386/linux.mh: Ditto.
15163 * config/i386/x86-64linux.mh: Ditto.
15164 * config/ia64/linux.mh: Ditto.
15165 * config/m68k/linux.mh: Ditto.
15166 * config/mips/linux.mh: Ditto.
15167 * config/powerpc/linux.mh: Ditto.
15168 * config/sparc/linux.mh: Ditto.
15169
15170 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15171
15172 * win32-nat.c: Add i386-tdep.h dependency.
15173
15174 2002-01-07 Michael Snyder <msnyder@redhat.com>
15175
15176 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15177 instead of bfd_get_arch_size. Don't bail out just because
15178 there's no exec_bfd.
15179
15180 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15181 * p-valprint.c (pascal_object_print_value): Ditto.
15182 * somread.c (som_symtab_read): Ditto.
15183 * symfile.c (simple_free_overlay_region_table): Ditto.
15184 * valops.c (value_assign): Ditto.
15185
15186 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15187 use tilde_expand and strerror for opening save-tracepoints file.
15188
15189 * thread-db.c (thread_db_new_objfile): Indendation fix.
15190
15191 * infptrace.c (GDB_MAX_ALLOCA): New define.
15192 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15193 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15194 can be overridden with whatever value is appropriate to the host).
15195 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15196 alloca to allocate potentially large buffer.
15197 * rs6000-nat.c (child_xfer_memory): Ditto.
15198 * symm-nat.c (child_xfer_memory): Ditto.
15199 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15200
15201 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15202
15203 From Nick Clifton <nickc@redhat.com>
15204 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15205
15206 2002-01-07 Michael Snyder <msnyder@redhat.com>
15207
15208 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15209 Don't use exec_bfd if it's NULL.
15210
15211 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15212
15213 * valops.c (value_arg_coerce): Fix formatting.
15214
15215 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15216
15217 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15218 * gnu-nat.c: Ditto.
15219
15220 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15221
15222 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15223 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15224 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15225 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15226 z8k-coff have not been multi-arched. Update z8k-coff build
15227 status.
15228
15229 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15230
15231 * MAINTAINERS: Mark a29k target as obsolete.
15232 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15233 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15234 comments.
15235 * NEWS: Note that a29k targets are obsolete.
15236 * a29k-tdep.c: Mark as obsolete.
15237 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15238 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15239 a29k-*-vxworks* targets as obsolete.
15240 * remote-adapt.c: Obsolete.
15241 * remote-eb.c: Obsolete.
15242 * remote-mm.c: Obsolete.
15243 * remote-udi.c: Obsolete.
15244 * config/a29k/a29k-udi.mt: Obsolete.
15245 * config/a29k/a29k.mt: Obsolete.
15246 * config/a29k/tm-a29k.h: Obsolete.
15247 * config/a29k/tm-vx29k.h: Obsolete.
15248 * config/a29k/vx29k.mt: Obsolete.
15249
15250 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15251
15252 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15253 with BFD_ENDIAN_BIG.
15254
15255 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15256
15257 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15258 * configure, config.in: Re-generate.
15259 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15260 * defs.h: Do not include <endian.h>.
15261
15262 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15263
15264 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15265 * config.in: Regenerate.
15266 * configure.in: Update copyright years.
15267 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15268 * configure: Regenerate.
15269 * i386bsd-nat.c: Update copyright years.
15270 (fill_gregset): Use regcache_collect.
15271 (fetch_inferior_registers): Only fetch integer registers
15272 if requested to do so. Add support for XMM registers
15273 using PT_GETXMMREGS.
15274 (store_inferior_registers): Only store integer registers
15275 if requested to do so. Add support for XMM registers
15276 using PT_SETXMMREGS.
15277 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15278 (store_inferior_registers): Remove.
15279 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15280 (fetch_elfcore_registers): New function.
15281 (i386nbsd_elfcore_fns): New.
15282 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15283 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15284 i386bsd-nat.o.
15285 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15286 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15287 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15288 * config/i386/tm-nbsd.h: Update copyright years.
15289 (HAVE_SSE_REGS): Define.
15290 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15291 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15292 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15293 (SIGCONTEXT_PC_OFFSET): Remove.
15294 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15295
15296 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15297
15298 * configure.tgt: Remove powerpc-*-macos* target.
15299 * config/m68k/xm-mpw.h: Delete file.
15300 * config/xm-mpw.h: Delete file.
15301 * ser-mac.c: Delete file.
15302 * mpw-make.sed: Delete file.
15303 * mpw-config.in: Delete file.
15304 * mac-xdep.c: Delete file.
15305 * mac-gdb.r: Delete file.
15306 * mac-defs.h: Delete file.
15307 * mac-nat.c: Delete file.
15308 * config/powerpc/macos.mh: Delete file.
15309 * config/powerpc/macos.mt: Delete file.
15310 * config/powerpc/nm-macos.h: Delete file.
15311 * config/powerpc/tm-macos.h: Delete file.
15312 * source.c (openp, open_source_file): Remove obsolete code.
15313 * top.c (gdb_readline): Ditto.
15314 * utils.c (query): Ditto.
15315 * event-top.c (display_gdb_prompt): Ditto.
15316 * Makefile.in (ser-mac.o): Delete obsolete target.
15317 * NEWS: Update.
15318
15319 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15320
15321 * defs.h (BIG_ENDIAN): Delete macro definition.
15322 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15323 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15324 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15325 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15326 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15327 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15328 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15329 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15330 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15331 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15332 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15333 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15334 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15335 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15336 * gdbarch.c: Re-generate.
15337
15338 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15339
15340 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15341 for core files.
15342
15343 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15344
15345 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15346
15347 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15348
15349 * value.h (value_ptr): Delete typedef.
15350
15351 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15352
15353 * i386nbsd-nat.c: Update copyright years.
15354 Include i386-tdep.h.
15355
15356 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15357
15358 * stabsread.c: Update copyright years.
15359
15360 From Debashis Mahata <debashis.mahata@wipro.com>:
15361 (read_struct_fields): Deal with Sun C compiler erroneous stab
15362 output for structs and unions.
15363 Fix PR gdb/269.
15364
15365 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15366
15367 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15368 prototype.
15369
15370 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15371
15372 * cp-abi.c: Fix whitespace.
15373 (baseclass_offset): New wrapper function.
15374 * cp-abi.h (baseclass_offset): Add prototype.
15375 (struct cp_abi_ops): Add baseclass_offset pointer.
15376
15377 * valops.c (vb_match): Move to...
15378 * gnu-v2-abi.c (vb_match): here.
15379 * valops.c (baseclass_offset): Move to...
15380 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15381
15382 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15383
15384 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15385 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15386 * hpacc-abi.c (init_hpacc_ops): Likewise.
15387
15388 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15389
15390 * valops.c (find_overload_match): Accept obj as a
15391 reference parameter. Update it before returning.
15392 * value.h (find_overload_match): Update prototype.
15393 * eval.c (evaluate_subexp_standard): Pass object to
15394 find_overload_match by reference.
15395
15396 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15397
15398 * valarith.c: Replace value_ptr with struct value pointer. Remove
15399 register attribute from value declarations.
15400 * valops.c: Ditto.
15401 * value.h: Ditto.
15402 * scm-lang.c (scm_lookup_name): Ditto.
15403
15404 2002-01-03 Michael Snyder <msnyder@redhat.com>
15405
15406 Abstract the functionality of iterating over mapped memory
15407 regions into a general purpose iterator function.
15408 * procfs.c (iterate_over_mappings): New function, general purpose
15409 iterator for memory sections.
15410 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15411 (solib_mappings_callback): New function, callback for above.
15412 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15413 (info_mappings_callback): New function, callback for above.
15414
15415 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15416
15417 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15418
15419 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15420 * i386-tdep.c: Include "elf-bfd.h".
15421 (process_note_abi_tag_sections): New function.
15422 (i386_gdbarch_init): Add code to recognize various OS/ABI
15423 combinations.
15424
15425 * maint.c (_initialize_maint_cmds): Add missing \ in
15426 string-literal.
15427
15428 For older changes see ChangeLog-2001
15429 \f
15430 Local Variables:
15431 mode: change-log
15432 left-margin: 8
15433 fill-column: 74
15434 version-control: never
15435 End:
This page took 0.362061 seconds and 5 git commands to generate.